lr-chatbot 0.35.5 → 0.36.0
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 +532 -554
- package/index.js.map +1 -1
- package/package.json +1 -1
package/index.js
CHANGED
|
@@ -12,7 +12,7 @@ function xh(t) {
|
|
|
12
12
|
if (typeof Symbol < "u" && t[Symbol.iterator] != null || t["@@iterator"] != null) return Array.from(t);
|
|
13
13
|
}
|
|
14
14
|
function Eh(t) {
|
|
15
|
-
if (Array.isArray(t)) return
|
|
15
|
+
if (Array.isArray(t)) return rs(t);
|
|
16
16
|
}
|
|
17
17
|
function Ah(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 uu(t, r) {
|
|
50
50
|
if (t) {
|
|
51
|
-
if (typeof t == "string") return
|
|
51
|
+
if (typeof t == "string") return rs(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) ? rs(t, r) : void 0;
|
|
54
54
|
}
|
|
55
55
|
}
|
|
56
|
-
function
|
|
56
|
+
function rs(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 is(t) {
|
|
62
62
|
var r = typeof Map == "function" ? /* @__PURE__ */ new Map() : void 0;
|
|
63
|
-
return
|
|
63
|
+
return is = function(n) {
|
|
64
64
|
if (n === null || !Rh(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,10 +71,10 @@ function as(t) {
|
|
|
71
71
|
return Th(n, arguments, ur(this).constructor);
|
|
72
72
|
}
|
|
73
73
|
return i.prototype = Object.create(n.prototype, { constructor: { value: i, enumerable: !1, writable: !0, configurable: !0 } }), dr(i, n);
|
|
74
|
-
},
|
|
74
|
+
}, is(t);
|
|
75
75
|
}
|
|
76
76
|
function Th(t, r, e) {
|
|
77
|
-
if (
|
|
77
|
+
if ($s()) return Reflect.construct.apply(null, arguments);
|
|
78
78
|
var n = [null];
|
|
79
79
|
n.push.apply(n, r);
|
|
80
80
|
var i = new (t.bind.apply(t, n))();
|
|
@@ -88,7 +88,7 @@ function Rh(t) {
|
|
|
88
88
|
}
|
|
89
89
|
}
|
|
90
90
|
function W(t, r, e) {
|
|
91
|
-
return r = ur(r), Oh(t,
|
|
91
|
+
return r = ur(r), Oh(t, $s() ? Reflect.construct(r, e || [], ur(t).constructor) : r.apply(t, e));
|
|
92
92
|
}
|
|
93
93
|
function Oh(t, r) {
|
|
94
94
|
if (r && (V(r) == "object" || typeof r == "function")) return r;
|
|
@@ -99,13 +99,13 @@ function cr(t) {
|
|
|
99
99
|
if (t === void 0) throw new ReferenceError("this hasn't been initialised - super() hasn't been called");
|
|
100
100
|
return t;
|
|
101
101
|
}
|
|
102
|
-
function
|
|
102
|
+
function $s() {
|
|
103
103
|
try {
|
|
104
104
|
var t = !Boolean.prototype.valueOf.call(Reflect.construct(Boolean, [], function() {
|
|
105
105
|
}));
|
|
106
106
|
} catch {
|
|
107
107
|
}
|
|
108
|
-
return (
|
|
108
|
+
return ($s = function() {
|
|
109
109
|
return !!t;
|
|
110
110
|
})();
|
|
111
111
|
}
|
|
@@ -398,14 +398,14 @@ function ie(t) {
|
|
|
398
398
|
for (var r = 1; r < arguments.length; r++) {
|
|
399
399
|
var e = arguments[r] != null ? arguments[r] : {};
|
|
400
400
|
r % 2 ? Lo(Object(e), !0).forEach(function(n) {
|
|
401
|
-
|
|
401
|
+
Fs(t, n, e[n]);
|
|
402
402
|
}) : Object.getOwnPropertyDescriptors ? Object.defineProperties(t, Object.getOwnPropertyDescriptors(e)) : Lo(Object(e)).forEach(function(n) {
|
|
403
403
|
Object.defineProperty(t, n, Object.getOwnPropertyDescriptor(e, n));
|
|
404
404
|
});
|
|
405
405
|
}
|
|
406
406
|
return t;
|
|
407
407
|
}
|
|
408
|
-
function
|
|
408
|
+
function Fs(t, r, e) {
|
|
409
409
|
return (r = du(r)) in t ? Object.defineProperty(t, r, { value: e, enumerable: !0, configurable: !0, writable: !0 }) : t[r] = e, t;
|
|
410
410
|
}
|
|
411
411
|
function V(t) {
|
|
@@ -540,7 +540,7 @@ var Ih = /* @__PURE__ */ function() {
|
|
|
540
540
|
}
|
|
541
541
|
}
|
|
542
542
|
}]);
|
|
543
|
-
}(),
|
|
543
|
+
}(), as = /* @__PURE__ */ function() {
|
|
544
544
|
function t() {
|
|
545
545
|
_(this, t);
|
|
546
546
|
}
|
|
@@ -559,8 +559,8 @@ var Ih = /* @__PURE__ */ function() {
|
|
|
559
559
|
}
|
|
560
560
|
}]);
|
|
561
561
|
}();
|
|
562
|
-
|
|
563
|
-
var hu =
|
|
562
|
+
as.FONT_URL = "https://fonts.googleapis.com/css2?family=Inter:wght@400;600&display=swap", as.DEFAULT_FONT_FAMILY = "'Inter', sans-serif, Avenir, Helvetica, Arial";
|
|
563
|
+
var hu = as, pu = /* @__PURE__ */ function() {
|
|
564
564
|
function t() {
|
|
565
565
|
_(this, t);
|
|
566
566
|
}
|
|
@@ -606,7 +606,7 @@ pu.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 _a = pu, 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 || {}), jr, Sn = (jr = /* @__PURE__ */ S(function t() {
|
|
612
612
|
_(this, t);
|
|
@@ -660,7 +660,7 @@ var Ph = fu, $h = /* @__PURE__ */ function() {
|
|
|
660
660
|
a && ((i = document.execCommand) == null || i.call(document, "insertText", !1, a));
|
|
661
661
|
}
|
|
662
662
|
}]);
|
|
663
|
-
}(),
|
|
663
|
+
}(), ss = /* @__PURE__ */ function() {
|
|
664
664
|
function t(r, e, n) {
|
|
665
665
|
var i = this;
|
|
666
666
|
_(this, t);
|
|
@@ -757,8 +757,8 @@ var Ph = fu, $h = /* @__PURE__ */ function() {
|
|
|
757
757
|
}
|
|
758
758
|
}]);
|
|
759
759
|
}();
|
|
760
|
-
|
|
761
|
-
var hr =
|
|
760
|
+
ss.TEXT_INPUT_ID = "text-input", ss.PLACEHOLDER_TEXT_CLASS = "text-input-placeholder";
|
|
761
|
+
var hr = ss, mu = /* @__PURE__ */ function() {
|
|
762
762
|
function t() {
|
|
763
763
|
_(this, t);
|
|
764
764
|
}
|
|
@@ -784,7 +784,7 @@ function Mo(t) {
|
|
|
784
784
|
function Fh(t) {
|
|
785
785
|
return t && JSON.stringify(t);
|
|
786
786
|
}
|
|
787
|
-
function
|
|
787
|
+
function Ns(t, r, e, n) {
|
|
788
788
|
var i = `
|
|
789
789
|
`.concat(Mo(r), " message: ").concat(JSON.stringify(t), `
|
|
790
790
|
`), a = e ? "".concat(Mo(r), " message after interceptor: ").concat(Fh(n), `
|
|
@@ -792,16 +792,16 @@ function Ds(t, r, e, n) {
|
|
|
792
792
|
return i + a;
|
|
793
793
|
}
|
|
794
794
|
function Nh(t, r, e, n) {
|
|
795
|
-
return "".concat(
|
|
795
|
+
return "".concat(Ns(t, r, e, n), "Make sure the ").concat(r, ` message is using the Response format: https://deepchat.dev/docs/connect/#Response
|
|
796
796
|
You can also augment it using the responseInterceptor property: https://deepchat.dev/docs/interceptors#responseInterceptor`);
|
|
797
797
|
}
|
|
798
798
|
function Dh(t, r, e) {
|
|
799
799
|
var n = "response";
|
|
800
|
-
return "".concat(
|
|
800
|
+
return "".concat(Ns(t, n, r, e), "Make sure the ").concat(n, ' message is using the {text: string} format, e.g: {text: "Model Response"}');
|
|
801
801
|
}
|
|
802
802
|
function Bh(t, r) {
|
|
803
803
|
var e = "request";
|
|
804
|
-
return "".concat(
|
|
804
|
+
return "".concat(Ns(t, e, r), "Make sure the ").concat(e, ' message is using the {body: {text: string}} format, e.g: {body: {text: "Model Response"}}');
|
|
805
805
|
}
|
|
806
806
|
var Po = `Make sure the events are using {text: string} or {html: string} format.
|
|
807
807
|
You can also augment them using the responseInterceptor property: https://deepchat.dev/docs/interceptors#responseInterceptor`, ge = {
|
|
@@ -1170,7 +1170,7 @@ var Y = Kr, wu = /* @__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
|
-
}(), Uh = "deep-chat-temporary-message", zh = "deep-chat-suggestion-button",
|
|
1173
|
+
}(), Uh = "deep-chat-temporary-message", zh = "deep-chat-suggestion-button", os = {
|
|
1174
1174
|
"deep-chat-button": {
|
|
1175
1175
|
styles: {
|
|
1176
1176
|
default: {
|
|
@@ -1190,7 +1190,7 @@ var Y = Kr, wu = /* @__PURE__ */ function() {
|
|
|
1190
1190
|
}
|
|
1191
1191
|
}
|
|
1192
1192
|
}
|
|
1193
|
-
}, No = Object.keys(
|
|
1193
|
+
}, No = Object.keys(os), fi = /* @__PURE__ */ function() {
|
|
1194
1194
|
function t() {
|
|
1195
1195
|
_(this, t);
|
|
1196
1196
|
}
|
|
@@ -1222,7 +1222,7 @@ var Y = Kr, wu = /* @__PURE__ */ function() {
|
|
|
1222
1222
|
}, {
|
|
1223
1223
|
key: "applyEvents",
|
|
1224
1224
|
value: function(e, n) {
|
|
1225
|
-
var i =
|
|
1225
|
+
var i = os[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 Y = Kr, wu = /* @__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 = os[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 Y = Kr, wu = /* @__PURE__ */ function() {
|
|
|
1312
1312
|
}), i;
|
|
1313
1313
|
}
|
|
1314
1314
|
}]);
|
|
1315
|
-
}(),
|
|
1315
|
+
}(), ls = /* @__PURE__ */ function() {
|
|
1316
1316
|
function t() {
|
|
1317
1317
|
_(this, t);
|
|
1318
1318
|
}
|
|
@@ -1373,7 +1373,7 @@ function pr(t) {
|
|
|
1373
1373
|
function Su(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 cs(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 us(t) {
|
|
|
1384
1384
|
var Gh = /&([a-z#][a-z0-9]{1,31});/gi, Kh = /^#((?:x[a-f0-9]{1,8}|[0-9]{1,8}))/i;
|
|
1385
1385
|
function Jh(t, r) {
|
|
1386
1386
|
var e = 0, n = ku(r);
|
|
1387
|
-
return r !== n ? n : r.charCodeAt(0) === 35 && Kh.test(r) && (e = r[1].toLowerCase() === "x" ? parseInt(r.slice(2), 16) : parseInt(r.slice(1), 10), Su(e)) ?
|
|
1387
|
+
return r !== n ? n : r.charCodeAt(0) === 35 && Kh.test(r) && (e = r[1].toLowerCase() === "x" ? parseInt(r.slice(2), 16) : parseInt(r.slice(1), 10), Su(e)) ? cs(e) : t;
|
|
1388
1388
|
}
|
|
1389
1389
|
function Vt(t) {
|
|
1390
1390
|
return t.indexOf("&") < 0 ? t : t.replace(Gh, Jh);
|
|
@@ -1636,14 +1636,14 @@ var Xt = N.getBreak = function(t, r) {
|
|
|
1636
1636
|
return r = Cu(t, r), r < t.length && t[r].type === "list_item_close" ? "" : `
|
|
1637
1637
|
`;
|
|
1638
1638
|
};
|
|
1639
|
-
function
|
|
1639
|
+
function Ds() {
|
|
1640
1640
|
this.rules = _u({}, N), this.getBreak = N.getBreak;
|
|
1641
1641
|
}
|
|
1642
|
-
|
|
1642
|
+
Ds.prototype.renderInline = function(t, r, e) {
|
|
1643
1643
|
for (var n = this.rules, i = t.length, a = 0, s = ""; i--; ) s += n[t[a].type](t, a++, r, e, this);
|
|
1644
1644
|
return s;
|
|
1645
1645
|
};
|
|
1646
|
-
|
|
1646
|
+
Ds.prototype.render = function(t, r, e) {
|
|
1647
1647
|
for (var n = this.rules, i = t.length, a = -1, s = ""; ++a < i; ) t[a].type === "inline" ? s += this.renderInline(t[a].children, r, e) : s += n[t[a].type](t, a, r, e, this);
|
|
1648
1648
|
return s;
|
|
1649
1649
|
};
|
|
@@ -1777,7 +1777,7 @@ function np(t) {
|
|
|
1777
1777
|
}
|
|
1778
1778
|
}
|
|
1779
1779
|
}
|
|
1780
|
-
function
|
|
1780
|
+
function us(t) {
|
|
1781
1781
|
var r = Vt(t);
|
|
1782
1782
|
try {
|
|
1783
1783
|
r = decodeURI(r);
|
|
@@ -1790,7 +1790,7 @@ function xu(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 = us(pr(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 sp(t) {
|
|
|
1895
1895
|
}
|
|
1896
1896
|
var Do = `
|
|
1897
1897
|
()[]'".,!?-`;
|
|
1898
|
-
function
|
|
1898
|
+
function Sa(t) {
|
|
1899
1899
|
return t.replace(/([-()\[\]{}+?*.$\^|,:#<!\\])/g, "\\$1");
|
|
1900
1900
|
}
|
|
1901
1901
|
function op(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 = "(^|[" + Do.split("").map(
|
|
1904
|
+
for (t.env.abbrRegExp || (h = "(^|[" + Do.split("").map(Sa).join("") + "])(" + Object.keys(t.env.abbreviations).map(function(f) {
|
|
1905
1905
|
return f.substr(1);
|
|
1906
1906
|
}).sort(function(f, y) {
|
|
1907
1907
|
return y.length - f.length;
|
|
1908
|
-
}).map(
|
|
1908
|
+
}).map(Sa).join("|") + ")($|[" + Do.split("").map(Sa).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 mp(t) {
|
|
|
1985
1985
|
}
|
|
1986
1986
|
}
|
|
1987
1987
|
}
|
|
1988
|
-
var
|
|
1988
|
+
var Ca = [["block", ep], ["abbr", np], ["references", ip], ["inline", ap], ["footnote_tail", sp], ["abbr2", op], ["replacements", hp], ["smartquotes", mp]];
|
|
1989
1989
|
function Tu() {
|
|
1990
1990
|
this.options = {}, this.ruler = new qe();
|
|
1991
|
-
for (var t = 0; t <
|
|
1991
|
+
for (var t = 0; t < Ca.length; t++) this.ruler.push(Ca[t][0], Ca[t][1]);
|
|
1992
1992
|
}
|
|
1993
1993
|
Tu.prototype.process = function(t) {
|
|
1994
1994
|
var r, e, n;
|
|
@@ -2254,13 +2254,13 @@ function Tp(t, r, e, n) {
|
|
|
2254
2254
|
content: t.getLines(r, s, 0, !0)
|
|
2255
2255
|
}), !0;
|
|
2256
2256
|
}
|
|
2257
|
-
function
|
|
2257
|
+
function xa(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 Rp(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 = xa(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 Rp(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 = xa(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 Rp(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 = xa(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++
|
|
@@ -2417,13 +2417,13 @@ function Ip(t, r) {
|
|
|
2417
2417
|
})), !0;
|
|
2418
2418
|
}
|
|
2419
2419
|
var zr = [["code", gp], ["fences", vp, ["paragraph", "blockquote", "list"]], ["blockquote", yp, ["paragraph", "blockquote", "list"]], ["hr", bp, ["paragraph", "blockquote", "list"]], ["list", kp, ["paragraph", "blockquote"]], ["footnote", _p, ["paragraph"]], ["heading", Sp, ["paragraph", "blockquote"]], ["lheading", Cp], ["htmlblock", Tp, ["paragraph", "blockquote"]], ["table", Rp, ["paragraph"]], ["deflist", Lp, ["paragraph"]], ["paragraph", Ip]];
|
|
2420
|
-
function
|
|
2420
|
+
function Bs() {
|
|
2421
2421
|
this.ruler = new qe();
|
|
2422
2422
|
for (var t = 0; t < zr.length; t++) this.ruler.push(zr[t][0], zr[t][1], {
|
|
2423
2423
|
alt: (zr[t][2] || []).slice()
|
|
2424
2424
|
});
|
|
2425
2425
|
}
|
|
2426
|
-
|
|
2426
|
+
Bs.prototype.tokenize = function(t, r, e) {
|
|
2427
2427
|
for (var n = this.ruler.getRules(""), i = n.length, a = r, s = !1, o, l; a < e && (t.line = a = t.skipEmptyLines(a), !(a >= e || t.tShift[a] < t.blkIndent)); ) {
|
|
2428
2428
|
for (l = 0; l < i && (o = n[l](t, a, e, !1), !o); l++) ;
|
|
2429
2429
|
if (t.tight = !s, t.isEmpty(t.line - 1) && (s = !0), a = t.line, a < e && t.isEmpty(a)) {
|
|
@@ -2433,7 +2433,7 @@ js.prototype.tokenize = function(t, r, e) {
|
|
|
2433
2433
|
}
|
|
2434
2434
|
};
|
|
2435
2435
|
var Mp = /[\n\t]/g, Pp = /\r[\n\u0085]|[\u2424\u2028\u0085]/g, $p = /\u00a0/g;
|
|
2436
|
-
|
|
2436
|
+
Bs.prototype.parse = function(t, r, e, n) {
|
|
2437
2437
|
var i, a = 0, s = 0;
|
|
2438
2438
|
if (!t) return [];
|
|
2439
2439
|
t = t.replace($p, " "), t = t.replace(Pp, `
|
|
@@ -2498,16 +2498,16 @@ function Dp(t, r) {
|
|
|
2498
2498
|
for (i++; i < n && t.src.charCodeAt(i) === 32; ) i++;
|
|
2499
2499
|
return t.pos = i, !0;
|
|
2500
2500
|
}
|
|
2501
|
-
var
|
|
2502
|
-
for (var qo = 0; qo < 256; qo++)
|
|
2501
|
+
var js = [];
|
|
2502
|
+
for (var qo = 0; qo < 256; qo++) js.push(0);
|
|
2503
2503
|
"\\!\"#$%&'()*+,./:;<=>?@[]^_`{|}~-".split("").forEach(function(t) {
|
|
2504
|
-
|
|
2504
|
+
js[t.charCodeAt(0)] = 1;
|
|
2505
2505
|
});
|
|
2506
2506
|
function Bp(t, r) {
|
|
2507
2507
|
var e, n = t.pos, i = t.posMax;
|
|
2508
2508
|
if (t.src.charCodeAt(n) !== 92) return !1;
|
|
2509
2509
|
if (n++, n < i) {
|
|
2510
|
-
if (e = t.src.charCodeAt(n), e < 256 &&
|
|
2510
|
+
if (e = t.src.charCodeAt(n), e < 256 && js[e] !== 0) return r || (t.pending += t.src[n]), t.pos += 2, !0;
|
|
2511
2511
|
if (e === 10) {
|
|
2512
2512
|
for (r || t.push({
|
|
2513
2513
|
type: "hardbreak",
|
|
@@ -2744,7 +2744,7 @@ function Yp(t, r) {
|
|
|
2744
2744
|
var Xp = ["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"], Qp = /^<([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])?)*)>/, ef = /^<([a-zA-Z.\-]{1,25}):([^<>\x00-\x20]*)>/;
|
|
2745
2745
|
function tf(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(ef), n ? Xp.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(ef), n ? Xp.indexOf(n[1].toLowerCase()) < 0 || (a = n[0].slice(1, -1), s = us(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 tf(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(Qp), i ? (a = i[0].slice(1, -1), s =
|
|
2758
|
+
})), t.pos += n[0].length, !0) : (i = e.match(Qp), i ? (a = i[0].slice(1, -1), s = us("mailto:" + a), t.parser.validateLink(s) ? (r || (t.push({
|
|
2759
2759
|
type: "link_open",
|
|
2760
2760
|
href: s,
|
|
2761
2761
|
level: t.level
|
|
@@ -2768,12 +2768,12 @@ function tf(t, r) {
|
|
|
2768
2768
|
level: t.level
|
|
2769
2769
|
})), t.pos += i[0].length, !0) : !1) : !1));
|
|
2770
2770
|
}
|
|
2771
|
-
function
|
|
2771
|
+
function Ii(t, r) {
|
|
2772
2772
|
return t = t.source, r = r || "", function e(n, i) {
|
|
2773
2773
|
return n ? (i = i.source || i, t = t.replace(n, i), e) : new RegExp(t, r);
|
|
2774
2774
|
};
|
|
2775
2775
|
}
|
|
2776
|
-
var nf = /[a-zA-Z_:][a-zA-Z0-9:._-]*/, rf = /[^"'=<>`\x00-\x20]+/, af = /'[^']*'/, sf = /"[^"]*"/, of =
|
|
2776
|
+
var nf = /[a-zA-Z_:][a-zA-Z0-9:._-]*/, rf = /[^"'=<>`\x00-\x20]+/, af = /'[^']*'/, sf = /"[^"]*"/, of = Ii(/(?:unquoted|single_quoted|double_quoted)/)("unquoted", rf)("single_quoted", af)("double_quoted", sf)(), lf = Ii(/(?:\s+attr_name(?:\s*=\s*attr_value)?)/)("attr_name", nf)("attr_value", of)(), cf = Ii(/<[A-Za-z][A-Za-z0-9]*attribute*\s*\/?>/)("attribute", lf)(), uf = /<\/[A-Za-z][A-Za-z0-9]*\s*>/, df = /<!---->|<!--(?:-?[^>-])(?:-?[^-])*-->/, hf = /<[?].*?[?]>/, pf = /<![A-Z]+\s+[^>]*>/, ff = /<!\[CDATA\[[\s\S]*?\]\]>/, mf = Ii(/^(?:open_tag|close_tag|comment|processing|declaration|cdata)/)("open_tag", cf)("close_tag", uf)("comment", df)("processing", hf)("declaration", pf)("cdata", ff)();
|
|
2777
2777
|
function gf(t) {
|
|
2778
2778
|
var r = t | 32;
|
|
2779
2779
|
return r >= 97 && r <= 122;
|
|
@@ -2792,7 +2792,7 @@ function wf(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(yf), i) return r || (n = i[1][0].toLowerCase() === "x" ? parseInt(i[1].slice(1), 16) : parseInt(i[1], 10), t.pending += Su(n) ?
|
|
2795
|
+
if (i = t.src.slice(a).match(yf), i) return r || (n = i[1][0].toLowerCase() === "x" ? parseInt(i[1].slice(1), 16) : parseInt(i[1], 10), t.pending += Su(n) ? cs(n) : cs(65533)), t.pos += i[0].length, !0;
|
|
2796
2796
|
} else if (i = t.src.slice(a).match(bf), i) {
|
|
2797
2797
|
var o = ku(i[1]);
|
|
2798
2798
|
if (i[1] !== o) return r || (t.pending += o), t.pos += i[0].length, !0;
|
|
@@ -2800,13 +2800,13 @@ function wf(t, r) {
|
|
|
2800
2800
|
}
|
|
2801
2801
|
return r || (t.pending += "&"), t.pos++, !0;
|
|
2802
2802
|
}
|
|
2803
|
-
var
|
|
2804
|
-
function
|
|
2803
|
+
var Ea = [["text", Np], ["newline", Dp], ["escape", Bp], ["backticks", jp], ["del", Hp], ["ins", Up], ["mark", zp], ["emphasis", qp], ["sub", Wp], ["sup", Kp], ["links", Jp], ["footnote_inline", Zp], ["footnote_ref", Yp], ["autolink", tf], ["htmltag", vf], ["entity", wf]];
|
|
2804
|
+
function Mi() {
|
|
2805
2805
|
this.ruler = new qe();
|
|
2806
|
-
for (var t = 0; t <
|
|
2806
|
+
for (var t = 0; t < Ea.length; t++) this.ruler.push(Ea[t][0], Ea[t][1]);
|
|
2807
2807
|
this.validateLink = kf;
|
|
2808
2808
|
}
|
|
2809
|
-
|
|
2809
|
+
Mi.prototype.skipToken = function(t) {
|
|
2810
2810
|
var r = this.ruler.getRules(""), e = r.length, n = t.pos, i, a;
|
|
2811
2811
|
if ((a = t.cacheGet(n)) > 0) {
|
|
2812
2812
|
t.pos = a;
|
|
@@ -2818,7 +2818,7 @@ Pi.prototype.skipToken = function(t) {
|
|
|
2818
2818
|
}
|
|
2819
2819
|
t.pos++, t.cacheSet(n, t.pos);
|
|
2820
2820
|
};
|
|
2821
|
-
|
|
2821
|
+
Mi.prototype.tokenize = function(t) {
|
|
2822
2822
|
for (var r = this.ruler.getRules(""), e = r.length, n = t.posMax, i, a; t.pos < n; ) {
|
|
2823
2823
|
for (a = 0; a < e && (i = r[a](t, !1), !i); a++) ;
|
|
2824
2824
|
if (i) {
|
|
@@ -2829,7 +2829,7 @@ Pi.prototype.tokenize = function(t) {
|
|
|
2829
2829
|
}
|
|
2830
2830
|
t.pending && t.pushPending();
|
|
2831
2831
|
};
|
|
2832
|
-
|
|
2832
|
+
Mi.prototype.parse = function(t, r, e, n) {
|
|
2833
2833
|
var i = new Qt(t, this, r, e, n);
|
|
2834
2834
|
this.tokenize(i);
|
|
2835
2835
|
};
|
|
@@ -2957,7 +2957,7 @@ function gt(t, r) {
|
|
|
2957
2957
|
import Remarkable from 'remarkable';
|
|
2958
2958
|
import linkify from 'remarkable/linkify';
|
|
2959
2959
|
new Remarkable().use(linkify)
|
|
2960
|
-
`), this.inline = new
|
|
2960
|
+
`), this.inline = new Mi(), this.block = new Bs(), this.core = new Tu(), this.renderer = new Ds(), this.ruler = new qe(), this.options = {}, this.configure(xf[t]), this.set(r || {});
|
|
2961
2961
|
}
|
|
2962
2962
|
gt.prototype.set = function(t) {
|
|
2963
2963
|
_u(this.options, t);
|
|
@@ -2986,7 +2986,7 @@ gt.prototype.parseInline = function(t, r) {
|
|
|
2986
2986
|
gt.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 ds = /* @__PURE__ */ function() {
|
|
2990
2990
|
function t() {
|
|
2991
2991
|
_(this, t);
|
|
2992
2992
|
}
|
|
@@ -3214,7 +3214,7 @@ var Fe = Lu, mi = /* @__PURE__ */ function() {
|
|
|
3214
3214
|
}(), Iu = /* @__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 = ds.createNew(), this._avatars = r.avatars, this._names = r.names, this._onMessage = mi.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 Fe = Lu, mi = /* @__PURE__ */ function() {
|
|
|
3323
3323
|
key: "refreshTextMessages",
|
|
3324
3324
|
value: function() {
|
|
3325
3325
|
var e = this;
|
|
3326
|
-
this._remarkable =
|
|
3326
|
+
this._remarkable = ds.createNew(), this.textElementsToText.forEach(function(n) {
|
|
3327
3327
|
e.renderText(n[0].bubbleElement, n[1]);
|
|
3328
3328
|
});
|
|
3329
3329
|
}
|
|
@@ -3359,7 +3359,7 @@ var Fe = Lu, mi = /* @__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
|
+
}(), hs = /* @__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 Fe = Lu, mi = /* @__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 = Y.AI_ROLE), this._elements = e === "text" ? this._messages.addNewTextMessage(n, i) :
|
|
3385
|
+
this._streamType = e, (a = i) !== null && a !== void 0 || (i = Y.AI_ROLE), this._elements = e === "text" ? this._messages.addNewTextMessage(n, i) : ls.add(this._messages, n, i, this._messages.messageElementRefs), this._elements.bubbleElement.classList.add(t.MESSAGE_CLASS), this._streamedContent = n, this._activeMessageRole = i, this._message = Fs({
|
|
3386
3386
|
role: this._activeMessageRole
|
|
3387
3387
|
}, e, this._streamedContent), this._messages.messages.push(this._message);
|
|
3388
3388
|
}
|
|
@@ -3452,8 +3452,8 @@ var Fe = Lu, mi = /* @__PURE__ */ function() {
|
|
|
3452
3452
|
}()
|
|
3453
3453
|
}]);
|
|
3454
3454
|
}();
|
|
3455
|
-
|
|
3456
|
-
var _t =
|
|
3455
|
+
hs.MESSAGE_CLASS = "streamed-message", hs.HTML_CONTENT_PLACEHOLDER = "htmlplaceholder";
|
|
3456
|
+
var _t = hs, Mu = /* @__PURE__ */ function() {
|
|
3457
3457
|
function t() {
|
|
3458
3458
|
_(this, t);
|
|
3459
3459
|
}
|
|
@@ -3571,10 +3571,10 @@ var _t = ps, Mu = /* @__PURE__ */ function() {
|
|
|
3571
3571
|
Mu.CONTENT_TYPE = "Content-Type";
|
|
3572
3572
|
var ee = Mu;
|
|
3573
3573
|
function Ef(t, r) {
|
|
3574
|
-
return
|
|
3574
|
+
return ps.apply(this, arguments);
|
|
3575
3575
|
}
|
|
3576
|
-
function
|
|
3577
|
-
return
|
|
3576
|
+
function ps() {
|
|
3577
|
+
return ps = E(/* @__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 fs() {
|
|
|
3596
3596
|
return s.stop();
|
|
3597
3597
|
}
|
|
3598
3598
|
}, t);
|
|
3599
|
-
})),
|
|
3599
|
+
})), ps.apply(this, arguments);
|
|
3600
3600
|
}
|
|
3601
3601
|
function Af(t) {
|
|
3602
3602
|
var r, e, n, i = !1;
|
|
@@ -3662,12 +3662,12 @@ var Of = 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
|
+
}, fs = "text/event-stream", Lf = 1e3, Ko = "last-event-id";
|
|
3666
3666
|
function If(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 = Of(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 = fs);
|
|
3671
3671
|
var f;
|
|
3672
3672
|
function y() {
|
|
3673
3673
|
f.abort(), document.hidden || A();
|
|
@@ -3723,7 +3723,7 @@ function If(t, r) {
|
|
|
3723
3723
|
}
|
|
3724
3724
|
function Mf(t) {
|
|
3725
3725
|
var r = t.headers.get("content-type");
|
|
3726
|
-
if (!(r != null && r.startsWith(
|
|
3726
|
+
if (!(r != null && r.startsWith(fs))) throw new Error("Expected content-type to be ".concat(fs, ", Actual: ").concat(r));
|
|
3727
3727
|
}
|
|
3728
3728
|
var we = /* @__PURE__ */ function() {
|
|
3729
3729
|
function t() {
|
|
@@ -3754,7 +3754,7 @@ var we = /* @__PURE__ */ function() {
|
|
|
3754
3754
|
Z.next = 17;
|
|
3755
3755
|
break;
|
|
3756
3756
|
}
|
|
3757
|
-
return Z.abrupt("return",
|
|
3757
|
+
return Z.abrupt("return", Hs.stream(i, v, s));
|
|
3758
3758
|
case 17:
|
|
3759
3759
|
if (((d = i.connectSettings) == null ? void 0 : d.url) !== St.URL) {
|
|
3760
3760
|
Z.next = 19;
|
|
@@ -3880,7 +3880,7 @@ var we = /* @__PURE__ */ function() {
|
|
|
3880
3880
|
value: function(e, n, i, a) {
|
|
3881
3881
|
var s = arguments.length > 4 && arguments[4] !== void 0 ? arguments[4] : 0, o = e[s];
|
|
3882
3882
|
if (o) {
|
|
3883
|
-
n.upsertStreamedMessage(
|
|
3883
|
+
n.upsertStreamedMessage(Fs({}, a, o));
|
|
3884
3884
|
var l = setTimeout(function() {
|
|
3885
3885
|
t.populateMessages(e, n, i, a, s + 1);
|
|
3886
3886
|
}, i.simulationInterim || 6);
|
|
@@ -4007,7 +4007,7 @@ var St = Pu, mr = /* @__PURE__ */ function() {
|
|
|
4007
4007
|
if (t.isElementPresentInDOM(e.deepChat)) {
|
|
4008
4008
|
var i = e.connectSettings.websocket;
|
|
4009
4009
|
if (i) {
|
|
4010
|
-
if (e.connectSettings.handler) return
|
|
4010
|
+
if (e.connectSettings.handler) return Hs.websocket(e, n);
|
|
4011
4011
|
try {
|
|
4012
4012
|
var a = typeof i != "boolean" ? i : void 0, s = new WebSocket(e.connectSettings.url || "", a);
|
|
4013
4013
|
e.websocket = s, e.websocket.onopen = function() {
|
|
@@ -4149,7 +4149,7 @@ var St = Pu, mr = /* @__PURE__ */ function() {
|
|
|
4149
4149
|
}
|
|
4150
4150
|
}
|
|
4151
4151
|
}]);
|
|
4152
|
-
}(),
|
|
4152
|
+
}(), Hs = /* @__PURE__ */ function() {
|
|
4153
4153
|
function t() {
|
|
4154
4154
|
_(this, t);
|
|
4155
4155
|
}
|
|
@@ -4367,7 +4367,7 @@ var St = Pu, mr = /* @__PURE__ */ function() {
|
|
|
4367
4367
|
A.next = 13;
|
|
4368
4368
|
break;
|
|
4369
4369
|
}
|
|
4370
|
-
return A.abrupt("return",
|
|
4370
|
+
return A.abrupt("return", Hs.request(i, p, s));
|
|
4371
4371
|
case 13:
|
|
4372
4372
|
if (((u = i.connectSettings) == null ? void 0 : u.url) !== St.URL) {
|
|
4373
4373
|
A.next = 15;
|
|
@@ -4536,7 +4536,7 @@ var St = Pu, mr = /* @__PURE__ */ function() {
|
|
|
4536
4536
|
});
|
|
4537
4537
|
}
|
|
4538
4538
|
}]);
|
|
4539
|
-
}(),
|
|
4539
|
+
}(), Us = /* @__PURE__ */ function() {
|
|
4540
4540
|
function t() {
|
|
4541
4541
|
_(this, t);
|
|
4542
4542
|
}
|
|
@@ -4669,7 +4669,7 @@ var St = Pu, mr = /* @__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 = ds.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
|
}]);
|
|
@@ -4795,7 +4795,7 @@ var St = Pu, mr = /* @__PURE__ */ function() {
|
|
|
4795
4795
|
}
|
|
4796
4796
|
throw new Error("Request settings have not been set up");
|
|
4797
4797
|
case 2:
|
|
4798
|
-
s =
|
|
4798
|
+
s = Us.processMessages(a.messages, this.maxMessages, this.totalMessagesMaxCharLength), this.connectSettings.websocket ? (o = ie({
|
|
4799
4799
|
messages: s
|
|
4800
4800
|
}, this.rawBody), mr.sendWebsocket(this, o, a, !1)) : this.callServiceAPI(a, s, i.files);
|
|
4801
4801
|
case 4:
|
|
@@ -4929,7 +4929,7 @@ var St = Pu, mr = /* @__PURE__ */ function() {
|
|
|
4929
4929
|
e._propUpdated_ = !0, e._waitingToRender_ || (e._waitingToRender_ = !0, t.waitForPropertiesToBeUpdatedBeforeRender(e));
|
|
4930
4930
|
}
|
|
4931
4931
|
}]);
|
|
4932
|
-
}(),
|
|
4932
|
+
}(), ms = /* @__PURE__ */ function(t) {
|
|
4933
4933
|
function r() {
|
|
4934
4934
|
var e;
|
|
4935
4935
|
return _(this, r), e = W(this, r), e._waitingToRender_ = !1, e._propUpdated_ = !1, Object.keys(r._attributeToProperty_).forEach(function(n) {
|
|
@@ -4971,9 +4971,9 @@ var St = Pu, mr = /* @__PURE__ */ function() {
|
|
|
4971
4971
|
return Object.keys(r._attributes_) || [];
|
|
4972
4972
|
}
|
|
4973
4973
|
}]);
|
|
4974
|
-
}(/* @__PURE__ */
|
|
4975
|
-
|
|
4976
|
-
var Ff =
|
|
4974
|
+
}(/* @__PURE__ */ is(HTMLElement));
|
|
4975
|
+
ms._attributes_ = {}, ms._attributeToProperty_ = {};
|
|
4976
|
+
var Ff = ms, Nf = `<?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"
|
|
@@ -5177,7 +5177,7 @@ var Bf = $u, jf = /* @__PURE__ */ function() {
|
|
|
5177
5177
|
key: "enableButtons",
|
|
5178
5178
|
value: function(e, n) {
|
|
5179
5179
|
var i = arguments.length > 2 && arguments[2] !== void 0 ? arguments[2] : 0;
|
|
5180
|
-
window.webLLM ? (e && (e.disabled = !1), n && (n.disabled = !1)) : i <
|
|
5180
|
+
window.webLLM ? (e && (e.disabled = !1), n && (n.disabled = !1)) : i < zs.MODULE_SEARCH_LIMIT_S * 4 && setTimeout(function() {
|
|
5181
5181
|
return t.enableButtons(e, n, i + 1);
|
|
5182
5182
|
}, 250);
|
|
5183
5183
|
}
|
|
@@ -5837,7 +5837,7 @@ var Jo = er, Zo = {
|
|
|
5837
5837
|
}]);
|
|
5838
5838
|
}(gi);
|
|
5839
5839
|
bn.GENERIC_ERROR = "Error, please check the [troubleshooting](https://deepchat.dev/docs/webModel#troubleshooting) section of documentation for help.", bn.MULTIPLE_MODELS_ERROR = "Cannot run multiple web models", bn.WEB_LLM_NOT_FOUND_ERROR = "WebLLM module not found", bn.DEFAULT_MODEL = "Llama-2-7b-chat-hf-q4f32_1", bn.MODULE_SEARCH_LIMIT_S = 5;
|
|
5840
|
-
var
|
|
5840
|
+
var zs = bn, Yo = /* @__PURE__ */ function() {
|
|
5841
5841
|
function t() {
|
|
5842
5842
|
_(this, t);
|
|
5843
5843
|
}
|
|
@@ -5911,7 +5911,7 @@ var qs = bn, Yo = /* @__PURE__ */ function() {
|
|
|
5911
5911
|
}]);
|
|
5912
5912
|
}(Ie);
|
|
5913
5913
|
Fu.URL_PREFIX = "https://api-inference.huggingface.co/models/";
|
|
5914
|
-
var tn = Fu,
|
|
5914
|
+
var tn = Fu, qs = /* @__PURE__ */ function(t) {
|
|
5915
5915
|
function r(e, n, i, a, s, o) {
|
|
5916
5916
|
var l;
|
|
5917
5917
|
return _(this, r), l = W(this, r, [e, n, i, a, s, o]), l.isTextInputDisabled = !0, l.canSendMessage = r.canSendFile, l;
|
|
@@ -6004,7 +6004,7 @@ var tn = Fu, Vs = /* @__PURE__ */ function(t) {
|
|
|
6004
6004
|
return n;
|
|
6005
6005
|
}()
|
|
6006
6006
|
}]);
|
|
6007
|
-
}(
|
|
6007
|
+
}(qs), Uf = /* @__PURE__ */ function(t) {
|
|
6008
6008
|
function r(e) {
|
|
6009
6009
|
_(this, r);
|
|
6010
6010
|
var n, i, a, s = (i = (n = e.directConnection) == null ? void 0 : n.huggingFace) == null ? void 0 : i.imageClassification, o = (a = e.directConnection) == null ? void 0 : a.huggingFace;
|
|
@@ -6049,7 +6049,7 @@ var tn = Fu, Vs = /* @__PURE__ */ function(t) {
|
|
|
6049
6049
|
return n;
|
|
6050
6050
|
}()
|
|
6051
6051
|
}]);
|
|
6052
|
-
}(
|
|
6052
|
+
}(qs), xr = "data:image/png;base64,", Et = /* @__PURE__ */ function() {
|
|
6053
6053
|
function t() {
|
|
6054
6054
|
_(this, t);
|
|
6055
6055
|
}
|
|
@@ -6077,7 +6077,7 @@ var tn = Fu, Vs = /* @__PURE__ */ function(t) {
|
|
|
6077
6077
|
};
|
|
6078
6078
|
}
|
|
6079
6079
|
}]);
|
|
6080
|
-
}(),
|
|
6080
|
+
}(), Pi = /* @__PURE__ */ function(t) {
|
|
6081
6081
|
function r(e, n, i, a, s) {
|
|
6082
6082
|
var o;
|
|
6083
6083
|
return _(this, r), o = W(this, r, [e, n, i, a, s]), o.insertKeyPlaceholderText = "Stability AI API Key", o.keyHelpUrl = "https://platform.stability.ai/docs/getting-started/authentication", o.permittedErrorPrefixes = ["Incorrect", "invalid_"], o;
|
|
@@ -6187,7 +6187,7 @@ var tn = Fu, Vs = /* @__PURE__ */ function(t) {
|
|
|
6187
6187
|
return !!(i != null && i[0]);
|
|
6188
6188
|
}
|
|
6189
6189
|
}]);
|
|
6190
|
-
}(
|
|
6190
|
+
}(Pi), qf = /* @__PURE__ */ function(t) {
|
|
6191
6191
|
function r(e) {
|
|
6192
6192
|
var n;
|
|
6193
6193
|
_(this, r);
|
|
@@ -6291,7 +6291,7 @@ var tn = Fu, Vs = /* @__PURE__ */ function(t) {
|
|
|
6291
6291
|
return !!(i != null && i[0]) && !!(n && n.trim() !== "");
|
|
6292
6292
|
}
|
|
6293
6293
|
}]);
|
|
6294
|
-
}(
|
|
6294
|
+
}(Pi), Vf = /* @__PURE__ */ function(t) {
|
|
6295
6295
|
function r(e) {
|
|
6296
6296
|
_(this, r);
|
|
6297
6297
|
var n, i, a, s = (i = (n = e.directConnection) == null ? void 0 : n.huggingFace) == null ? void 0 : i.audioSpeechRecognition, o = (a = e.directConnection) == null ? void 0 : a.huggingFace;
|
|
@@ -6335,7 +6335,7 @@ var tn = Fu, Vs = /* @__PURE__ */ function(t) {
|
|
|
6335
6335
|
return n;
|
|
6336
6336
|
}()
|
|
6337
6337
|
}]);
|
|
6338
|
-
}(
|
|
6338
|
+
}(qs), Wf = /* @__PURE__ */ function(t) {
|
|
6339
6339
|
function r(e) {
|
|
6340
6340
|
_(this, r);
|
|
6341
6341
|
var n, i, a, s = (i = (n = e.directConnection) == null ? void 0 : n.huggingFace) == null ? void 0 : i.textGeneration, o = (a = e.directConnection) == null ? void 0 : a.huggingFace;
|
|
@@ -6628,7 +6628,7 @@ var tn = Fu, Vs = /* @__PURE__ */ function(t) {
|
|
|
6628
6628
|
return !!(i != null && i[0]) && !!(n && n.trim() !== "");
|
|
6629
6629
|
}
|
|
6630
6630
|
}]);
|
|
6631
|
-
}(
|
|
6631
|
+
}(Pi), Yf = /* @__PURE__ */ function(t) {
|
|
6632
6632
|
function r(e) {
|
|
6633
6633
|
_(this, r);
|
|
6634
6634
|
var n, i, a, s = (i = (n = e.directConnection) == null ? void 0 : n.huggingFace) == null ? void 0 : i.translation, o = (a = e.directConnection) == null ? void 0 : a.huggingFace;
|
|
@@ -6752,7 +6752,7 @@ var tn = Fu, Vs = /* @__PURE__ */ function(t) {
|
|
|
6752
6752
|
return !!(n && n.trim() !== "");
|
|
6753
6753
|
}
|
|
6754
6754
|
}]);
|
|
6755
|
-
}(
|
|
6755
|
+
}(Pi), Qf = /* @__PURE__ */ function(t) {
|
|
6756
6756
|
function r(e) {
|
|
6757
6757
|
var n;
|
|
6758
6758
|
_(this, r);
|
|
@@ -6824,7 +6824,7 @@ var tn = Fu, Vs = /* @__PURE__ */ function(t) {
|
|
|
6824
6824
|
};
|
|
6825
6825
|
}
|
|
6826
6826
|
}]);
|
|
6827
|
-
}(),
|
|
6827
|
+
}(), Vs = /* @__PURE__ */ function(t) {
|
|
6828
6828
|
function r(e, n, i, a, s) {
|
|
6829
6829
|
var o;
|
|
6830
6830
|
return _(this, r), o = W(this, r, [e, Xo.buildKeyVerificationDetails(), Xo.buildHeaders, s]), o.insertKeyPlaceholderText = "Cohere API Key", o.keyHelpUrl = "https://dashboard.cohere.ai/api-keys", o.permittedErrorPrefixes = ["invalid"], o.url = n, o.textInputPlaceholderText = i, a && V(a) == "object" && Object.assign(o.rawBody, a), o;
|
|
@@ -6899,7 +6899,7 @@ var tn = Fu, Vs = /* @__PURE__ */ function(t) {
|
|
|
6899
6899
|
return n;
|
|
6900
6900
|
}()
|
|
6901
6901
|
}]);
|
|
6902
|
-
}(
|
|
6902
|
+
}(Vs), tm = /* @__PURE__ */ function(t) {
|
|
6903
6903
|
function r(e) {
|
|
6904
6904
|
_(this, r);
|
|
6905
6905
|
var n, i, a, s = (i = (n = e.directConnection) == null ? void 0 : n.cohere) == null ? void 0 : i.summarization, o = (a = e.directConnection) == null ? void 0 : a.cohere;
|
|
@@ -6967,7 +6967,7 @@ var tn = Fu, Vs = /* @__PURE__ */ function(t) {
|
|
|
6967
6967
|
return n;
|
|
6968
6968
|
}()
|
|
6969
6969
|
}]);
|
|
6970
|
-
}(
|
|
6970
|
+
}(Vs), Re = /* @__PURE__ */ function() {
|
|
6971
6971
|
function t() {
|
|
6972
6972
|
_(this, t);
|
|
6973
6973
|
}
|
|
@@ -7027,7 +7027,7 @@ var tn = Fu, Vs = /* @__PURE__ */ function(t) {
|
|
|
7027
7027
|
return e;
|
|
7028
7028
|
}()
|
|
7029
7029
|
}]);
|
|
7030
|
-
}(),
|
|
7030
|
+
}(), gs = /* @__PURE__ */ function(t) {
|
|
7031
7031
|
function r(e) {
|
|
7032
7032
|
var n, i, a;
|
|
7033
7033
|
_(this, r);
|
|
@@ -7116,8 +7116,8 @@ var tn = Fu, Vs = /* @__PURE__ */ function(t) {
|
|
|
7116
7116
|
}()
|
|
7117
7117
|
}]);
|
|
7118
7118
|
}(Ie);
|
|
7119
|
-
|
|
7120
|
-
var nm =
|
|
7119
|
+
gs.DEFAULT_MODEL = "tts-1", gs.DEFAULT_VOIDE = "alloy";
|
|
7120
|
+
var nm = gs, Zr = /* @__PURE__ */ function(t) {
|
|
7121
7121
|
function r(e) {
|
|
7122
7122
|
var n, i;
|
|
7123
7123
|
_(this, r);
|
|
@@ -7470,7 +7470,7 @@ var rm = Zr, Wt = /* @__PURE__ */ function() {
|
|
|
7470
7470
|
return n;
|
|
7471
7471
|
}()
|
|
7472
7472
|
}]);
|
|
7473
|
-
}(im),
|
|
7473
|
+
}(im), Aa = /* @__PURE__ */ function() {
|
|
7474
7474
|
function t() {
|
|
7475
7475
|
_(this, t);
|
|
7476
7476
|
}
|
|
@@ -7569,7 +7569,7 @@ var rm = Zr, Wt = /* @__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 = W(this, r, [e,
|
|
7572
|
+
return n = W(this, r, [e, Aa.buildKeyVerificationDetails(), Aa.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 rm = Zr, Wt = /* @__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, Aa.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 lm = Bu, cm = /* @__PURE__ */ function(t) {
|
|
|
7893
7893
|
return n;
|
|
7894
7894
|
}()
|
|
7895
7895
|
}]);
|
|
7896
|
-
}(Ie),
|
|
7896
|
+
}(Ie), vs = /* @__PURE__ */ function() {
|
|
7897
7897
|
function t() {
|
|
7898
7898
|
_(this, t);
|
|
7899
7899
|
}
|
|
@@ -8186,8 +8186,8 @@ var lm = Bu, cm = /* @__PURE__ */ function(t) {
|
|
|
8186
8186
|
}()
|
|
8187
8187
|
}]);
|
|
8188
8188
|
}();
|
|
8189
|
-
|
|
8190
|
-
var $t =
|
|
8189
|
+
vs.FILES_WITH_TEXT_ERROR = "content with type `text` must have `text` values", vs.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 $t = vs, Yr = /* @__PURE__ */ function(t) {
|
|
8191
8191
|
function r(e) {
|
|
8192
8192
|
var n, i, a;
|
|
8193
8193
|
_(this, r);
|
|
@@ -8236,7 +8236,7 @@ var $t = ys, Yr = /* @__PURE__ */ function(t) {
|
|
|
8236
8236
|
}, {
|
|
8237
8237
|
key: "processMessage",
|
|
8238
8238
|
value: function(n, i) {
|
|
8239
|
-
var a = this.totalMessagesMaxCharLength || -1, s =
|
|
8239
|
+
var a = this.totalMessagesMaxCharLength || -1, s = Us.getCharacterLimitMessages(n, a)[0];
|
|
8240
8240
|
if (i && i.length > 0) {
|
|
8241
8241
|
var o = this.filesToolType;
|
|
8242
8242
|
if (typeof this.filesToolType == "function") {
|
|
@@ -8933,7 +8933,7 @@ var dm = Xr, hm = /* @__PURE__ */ function(t) {
|
|
|
8933
8933
|
value: (
|
|
8934
8934
|
// prettier-ignore
|
|
8935
8935
|
function(n, i) {
|
|
8936
|
-
var a, s = JSON.parse(JSON.stringify(n)), o =
|
|
8936
|
+
var a, s = JSON.parse(JSON.stringify(n)), o = Us.getCharacterLimitMessages(i, this.totalMessagesMaxCharLength ? this.totalMessagesMaxCharLength - this._systemMessage.content.length : -1).map(function(l) {
|
|
8937
8937
|
return {
|
|
8938
8938
|
content: r.getContent(l),
|
|
8939
8939
|
role: l.role === Y.USER_ROLE ? "user" : "assistant"
|
|
@@ -9229,7 +9229,7 @@ var dm = Xr, hm = /* @__PURE__ */ function(t) {
|
|
|
9229
9229
|
return n;
|
|
9230
9230
|
}()
|
|
9231
9231
|
}]);
|
|
9232
|
-
}(
|
|
9232
|
+
}(Vs), Qo = /* @__PURE__ */ function() {
|
|
9233
9233
|
function t() {
|
|
9234
9234
|
_(this, t);
|
|
9235
9235
|
}
|
|
@@ -9349,7 +9349,7 @@ var dm = Xr, hm = /* @__PURE__ */ function(t) {
|
|
|
9349
9349
|
// this should only be called when no _activeService is set or is demo as otherwise we don't want to reconnect
|
|
9350
9350
|
function(e) {
|
|
9351
9351
|
var n = e.directConnection, i = e.connect, a = e.demo, s = e.webModel;
|
|
9352
|
-
if (s) return new
|
|
9352
|
+
if (s) return new zs(e);
|
|
9353
9353
|
if (n) {
|
|
9354
9354
|
if (n.openAI) return n.openAI.images ? new dm(e) : n.openAI.speechToText ? new rm(e) : n.openAI.textToSpeech ? new nm(e) : n.openAI.assistant ? new um(e) : new hm(e);
|
|
9355
9355
|
if (n.assemblyAI) return new sm(e);
|
|
@@ -9746,7 +9746,7 @@ var vm = /* @__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, Y.AI_ROLE) : o != null && o.html && (l =
|
|
9749
|
+
o != null && o.text ? l = this.createAndAppendNewMessageElement(o.text, Y.AI_ROLE) : o != null && o.html && (l = ls.add(this, o.html, Y.AI_ROLE, this.messageElementRefs)), l && (this.applyCustomStyles(l, Y.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 vm = /* @__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 !== Y.USER_ROLE && Gr.speak(s.text, this.textToSpeech)), s.files && Array.isArray(s.files) && _m.addMessages(this, s.files, s.role, a), s.html !== void 0 && s.html !== null) {
|
|
9772
|
-
var l =
|
|
9772
|
+
var l = ls.add(this, s.html, s.role, this.messageElementRefs, o, a);
|
|
9773
9773
|
fi.isElementTemporary(l) && delete s.html;
|
|
9774
9774
|
}
|
|
9775
9775
|
return this.isValidMessageContent(s) && !a && this.updateStateOnMessage(s, n.overwrite, n.sendUpdate, i), s;
|
|
@@ -10497,12 +10497,12 @@ var Cm = tr, vi = /* @__PURE__ */ function() {
|
|
|
10497
10497
|
return n.id = "microphone-icon", n;
|
|
10498
10498
|
}
|
|
10499
10499
|
}]);
|
|
10500
|
-
}(Er), Uu = {},
|
|
10500
|
+
}(Er), Uu = {}, $i = {}, Fi = {}, Ar = {}, nn = {};
|
|
10501
10501
|
Object.defineProperty(nn, "__esModule", {
|
|
10502
10502
|
value: !0
|
|
10503
10503
|
});
|
|
10504
10504
|
nn.Text = void 0;
|
|
10505
|
-
var
|
|
10505
|
+
var Ni = /* @__PURE__ */ function() {
|
|
10506
10506
|
function t() {
|
|
10507
10507
|
_(this, t);
|
|
10508
10508
|
}
|
|
@@ -10532,10 +10532,10 @@ var Di = /* @__PURE__ */ function() {
|
|
|
10532
10532
|
}
|
|
10533
10533
|
}]);
|
|
10534
10534
|
}();
|
|
10535
|
-
nn.Text =
|
|
10536
|
-
|
|
10537
|
-
|
|
10538
|
-
|
|
10535
|
+
nn.Text = Ni;
|
|
10536
|
+
Ni.FIRST_CHAR_REGEX = /\S/;
|
|
10537
|
+
Ni.DOUBLE_LINE = /\n\n/g;
|
|
10538
|
+
Ni.ONE_LINE = /\n/g;
|
|
10539
10539
|
Object.defineProperty(Ar, "__esModule", {
|
|
10540
10540
|
value: !0
|
|
10541
10541
|
});
|
|
@@ -10553,10 +10553,10 @@ var $m = nn, Fm = /* @__PURE__ */ function() {
|
|
|
10553
10553
|
}]);
|
|
10554
10554
|
}();
|
|
10555
10555
|
Ar.Translate = Fm;
|
|
10556
|
-
Object.defineProperty(
|
|
10556
|
+
Object.defineProperty(Fi, "__esModule", {
|
|
10557
10557
|
value: !0
|
|
10558
10558
|
});
|
|
10559
|
-
|
|
10559
|
+
Fi.WebSpeechTranscript = void 0;
|
|
10560
10560
|
var rl = Ar, Nm = /* @__PURE__ */ function() {
|
|
10561
10561
|
function t() {
|
|
10562
10562
|
_(this, t);
|
|
@@ -10589,7 +10589,7 @@ var rl = Ar, Nm = /* @__PURE__ */ function() {
|
|
|
10589
10589
|
}
|
|
10590
10590
|
}]);
|
|
10591
10591
|
}();
|
|
10592
|
-
|
|
10592
|
+
Fi.WebSpeechTranscript = Nm;
|
|
10593
10593
|
var Mn = {};
|
|
10594
10594
|
Object.defineProperty(Mn, "__esModule", {
|
|
10595
10595
|
value: !0
|
|
@@ -10602,11 +10602,11 @@ Mn.Browser = nr;
|
|
|
10602
10602
|
nr.IS_SAFARI = function() {
|
|
10603
10603
|
return nr._IS_SAFARI === void 0 && (nr._IS_SAFARI = /^((?!chrome|android).)*safari/i.test(navigator.userAgent)), nr._IS_SAFARI;
|
|
10604
10604
|
};
|
|
10605
|
-
var Tr = {},
|
|
10606
|
-
Object.defineProperty(
|
|
10605
|
+
var Tr = {}, Di = {};
|
|
10606
|
+
Object.defineProperty(Di, "__esModule", {
|
|
10607
10607
|
value: !0
|
|
10608
10608
|
});
|
|
10609
|
-
|
|
10609
|
+
Di.EventListeners = void 0;
|
|
10610
10610
|
var zu = /* @__PURE__ */ function() {
|
|
10611
10611
|
function t() {
|
|
10612
10612
|
_(this, t);
|
|
@@ -10649,13 +10649,13 @@ var zu = /* @__PURE__ */ function() {
|
|
|
10649
10649
|
}
|
|
10650
10650
|
}]);
|
|
10651
10651
|
}();
|
|
10652
|
-
|
|
10652
|
+
Di.EventListeners = zu;
|
|
10653
10653
|
zu.KEY_DOWN_TIMEOUT = null;
|
|
10654
|
-
var
|
|
10655
|
-
Object.defineProperty(
|
|
10654
|
+
var Bi = {};
|
|
10655
|
+
Object.defineProperty(Bi, "__esModule", {
|
|
10656
10656
|
value: !0
|
|
10657
10657
|
});
|
|
10658
|
-
|
|
10658
|
+
Bi.PreResultUtils = void 0;
|
|
10659
10659
|
var Dm = /* @__PURE__ */ function() {
|
|
10660
10660
|
function t() {
|
|
10661
10661
|
_(this, t);
|
|
@@ -10670,7 +10670,7 @@ var Dm = /* @__PURE__ */ function() {
|
|
|
10670
10670
|
}
|
|
10671
10671
|
}]);
|
|
10672
10672
|
}();
|
|
10673
|
-
|
|
10673
|
+
Bi.PreResultUtils = Dm;
|
|
10674
10674
|
var Rr = {}, Or = {};
|
|
10675
10675
|
Object.defineProperty(Or, "__esModule", {
|
|
10676
10676
|
value: !0
|
|
@@ -10942,11 +10942,11 @@ var il = Or, Um = rn, zm = Mn, al = an, sl = nn, qm = /* @__PURE__ */ function()
|
|
|
10942
10942
|
}]);
|
|
10943
10943
|
}();
|
|
10944
10944
|
Rr.CommandUtils = qm;
|
|
10945
|
-
var
|
|
10946
|
-
Object.defineProperty(
|
|
10945
|
+
var ji = {};
|
|
10946
|
+
Object.defineProperty(ji, "__esModule", {
|
|
10947
10947
|
value: !0
|
|
10948
10948
|
});
|
|
10949
|
-
|
|
10949
|
+
ji.Highlight = void 0;
|
|
10950
10950
|
var Vm = rn, Bn = an, Wm = /* @__PURE__ */ function() {
|
|
10951
10951
|
function t() {
|
|
10952
10952
|
_(this, t);
|
|
@@ -10992,12 +10992,12 @@ var Vm = rn, Bn = an, Wm = /* @__PURE__ */ function() {
|
|
|
10992
10992
|
}
|
|
10993
10993
|
}]);
|
|
10994
10994
|
}();
|
|
10995
|
-
|
|
10996
|
-
var
|
|
10997
|
-
Object.defineProperty(
|
|
10995
|
+
ji.Highlight = Wm;
|
|
10996
|
+
var Hi = {};
|
|
10997
|
+
Object.defineProperty(Hi, "__esModule", {
|
|
10998
10998
|
value: !0
|
|
10999
10999
|
});
|
|
11000
|
-
|
|
11000
|
+
Hi.Padding = void 0;
|
|
11001
11001
|
var Gm = rn, ol = an, un = nn, Km = /* @__PURE__ */ function() {
|
|
11002
11002
|
function t() {
|
|
11003
11003
|
_(this, t);
|
|
@@ -11049,12 +11049,12 @@ var Gm = rn, ol = an, un = nn, Km = /* @__PURE__ */ function() {
|
|
|
11049
11049
|
}
|
|
11050
11050
|
}]);
|
|
11051
11051
|
}();
|
|
11052
|
-
|
|
11052
|
+
Hi.Padding = Km;
|
|
11053
11053
|
Object.defineProperty(Tr, "__esModule", {
|
|
11054
11054
|
value: !0
|
|
11055
11055
|
});
|
|
11056
11056
|
Tr.Speech = void 0;
|
|
11057
|
-
var ll =
|
|
11057
|
+
var ll = Di, Jm = Bi, cl = Rr, qr = Or, Ta = ji, it = rn, Ra = Hi, ul = Mn, dl = an, Oa = nn, Zm = /* @__PURE__ */ function() {
|
|
11058
11058
|
function t() {
|
|
11059
11059
|
_(this, t), this.finalTranscript = "", this.interimSpan = it.Elements.createInterimSpan(), this.finalSpan = it.Elements.createGenericSpan(), this.scrollingSpan = it.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 ll = Bi, Jm = ji, cl = Rr, qr = Or, Ra = Hi, it = rn, Oa = Ui, ul = Mn, dl =
|
|
|
11074
11074
|
}, {
|
|
11075
11075
|
key: "prepare",
|
|
11076
11076
|
value: function(e) {
|
|
11077
|
-
|
|
11077
|
+
Ra.Padding.setState(this, e), Ta.Highlight.setState(this, e), this.isTargetInShadow = it.Elements.isInsideShadowDOM(e), it.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 ll = Bi, Jm = ji, cl = Rr, qr = Or, Ra = Hi, it = rn, Oa = Ui, ul = Mn, dl =
|
|
|
11088
11088
|
}, {
|
|
11089
11089
|
key: "updateElements",
|
|
11090
11090
|
value: function(e, n, i) {
|
|
11091
|
-
var a, s =
|
|
11091
|
+
var a, s = Oa.Text.capitalize(n);
|
|
11092
11092
|
if (!(this.finalTranscript === s && e === "")) {
|
|
11093
11093
|
Jm.PreResultUtils.process(this, i, e === "", this._onPreResult, this._options) && (e = "", i = "");
|
|
11094
11094
|
var o = this.commands && cl.CommandUtils.execCommand(this, i, this._options, this._primitiveElement || this._genericElement, this._originalText);
|
|
@@ -11108,7 +11108,7 @@ var ll = Bi, Jm = ji, cl = Rr, qr = Or, Ra = Hi, it = rn, Oa = Ui, ul = Mn, dl =
|
|
|
11108
11108
|
}, {
|
|
11109
11109
|
key: "updatePrimitiveElement",
|
|
11110
11110
|
value: function(e, n, i) {
|
|
11111
|
-
this.isHighlighted &&
|
|
11111
|
+
this.isHighlighted && Ta.Highlight.removeForPrimitive(this, e), this.primitiveTextRecorded || Ra.Padding.adjustStateAfterRecodingPrimitiveElement(this, e), i && Ra.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 ll = Bi, Jm = ji, cl = Rr, qr = Or, Ra = Hi, it = rn, Oa = Ui, ul = Mn, dl =
|
|
|
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 && Ta.Highlight.removeForGeneric(this, e), this.spansPopulated || it.Elements.appendSpans(this, e);
|
|
11123
|
+
var a = (i ? "" : this.startPadding) + Oa.Text.lineBreak(this.finalTranscript);
|
|
11124
11124
|
this.finalSpan.innerHTML = a;
|
|
11125
11125
|
var s = qr.AutoScroll.isRequired(this.autoScroll, e);
|
|
11126
11126
|
qr.AutoScroll.changeStateIfNeeded(this, s);
|
|
11127
|
-
var o =
|
|
11127
|
+
var o = Oa.Text.lineBreak(n) + (i ? "" : this.endPadding);
|
|
11128
11128
|
this.interimSpan.innerHTML = o, ul.Browser.IS_SAFARI() && this.insertInCursorLocation && dl.Cursor.setOffsetForSafariGeneric(e, a.length + o.length), s && qr.AutoScroll.scrollGeneric(this, e), i && (this.scrollingSpan.innerHTML = "");
|
|
11129
11129
|
}
|
|
11130
11130
|
}, {
|
|
@@ -11163,11 +11163,11 @@ var ll = Bi, Jm = ji, cl = Rr, qr = Or, Ra = Hi, it = rn, Oa = Ui, ul = Mn, dl =
|
|
|
11163
11163
|
}]);
|
|
11164
11164
|
}();
|
|
11165
11165
|
Tr.Speech = Zm;
|
|
11166
|
-
Object.defineProperty(
|
|
11166
|
+
Object.defineProperty($i, "__esModule", {
|
|
11167
11167
|
value: !0
|
|
11168
11168
|
});
|
|
11169
|
-
|
|
11170
|
-
var hl =
|
|
11169
|
+
$i.WebSpeech = void 0;
|
|
11170
|
+
var hl = Fi, pl = Mn, Ym = Tr, Xm = /* @__PURE__ */ function(t) {
|
|
11171
11171
|
function r() {
|
|
11172
11172
|
return _(this, r), W(this, r);
|
|
11173
11173
|
}
|
|
@@ -11226,12 +11226,12 @@ var hl = Ni, pl = Mn, Ym = Tr, Xm = /* @__PURE__ */ function(t) {
|
|
|
11226
11226
|
}
|
|
11227
11227
|
}]);
|
|
11228
11228
|
}(Ym.Speech);
|
|
11229
|
-
|
|
11230
|
-
var
|
|
11231
|
-
Object.defineProperty(
|
|
11229
|
+
$i.WebSpeech = Xm;
|
|
11230
|
+
var Ui = {};
|
|
11231
|
+
Object.defineProperty(Ui, "__esModule", {
|
|
11232
11232
|
value: !0
|
|
11233
11233
|
});
|
|
11234
|
-
|
|
11234
|
+
Ui.GlobalState = void 0;
|
|
11235
11235
|
var qu = /* @__PURE__ */ function() {
|
|
11236
11236
|
function t() {
|
|
11237
11237
|
_(this, t);
|
|
@@ -11245,13 +11245,13 @@ var qu = /* @__PURE__ */ function() {
|
|
|
11245
11245
|
}
|
|
11246
11246
|
}]);
|
|
11247
11247
|
}();
|
|
11248
|
-
|
|
11248
|
+
Ui.GlobalState = qu;
|
|
11249
11249
|
qu.doubleClickPending = !1;
|
|
11250
|
-
var
|
|
11251
|
-
Object.defineProperty(
|
|
11250
|
+
var zi = {}, qi = {};
|
|
11251
|
+
Object.defineProperty(qi, "__esModule", {
|
|
11252
11252
|
value: !0
|
|
11253
11253
|
});
|
|
11254
|
-
|
|
11254
|
+
qi.PreventConnectionStop = void 0;
|
|
11255
11255
|
var Qm = /* @__PURE__ */ function() {
|
|
11256
11256
|
function t() {
|
|
11257
11257
|
_(this, t);
|
|
@@ -11270,25 +11270,25 @@ var Qm = /* @__PURE__ */ function() {
|
|
|
11270
11270
|
}
|
|
11271
11271
|
}]);
|
|
11272
11272
|
}();
|
|
11273
|
-
|
|
11274
|
-
var
|
|
11275
|
-
Object.defineProperty(
|
|
11273
|
+
qi.PreventConnectionStop = Qm;
|
|
11274
|
+
var Vi = {}, Wi = {};
|
|
11275
|
+
Object.defineProperty(Wi, "__esModule", {
|
|
11276
11276
|
value: !0
|
|
11277
11277
|
});
|
|
11278
|
-
|
|
11279
|
-
|
|
11280
|
-
Object.defineProperty(
|
|
11278
|
+
Wi.README_URL = void 0;
|
|
11279
|
+
Wi.README_URL = "https://github.com/OvidijusParsiunas/speech-to-element";
|
|
11280
|
+
Object.defineProperty(Vi, "__esModule", {
|
|
11281
11281
|
value: !0
|
|
11282
11282
|
});
|
|
11283
|
-
|
|
11284
|
-
var
|
|
11283
|
+
Vi.AzureSpeechConfig = void 0;
|
|
11284
|
+
var La = Wi, eg = /* @__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(La.README_URL)), !1) : n.region ? !0 : (e("Please define a 'region' property - more info: ".concat(La.README_URL)), !1) : (e("Please provide subscription details - more info: ".concat(La.README_URL)), !1);
|
|
11292
11292
|
}
|
|
11293
11293
|
}, {
|
|
11294
11294
|
key: "getNewSpeechConfig",
|
|
@@ -11346,12 +11346,12 @@ var Ia = Gi, eg = /* @__PURE__ */ function() {
|
|
|
11346
11346
|
}()
|
|
11347
11347
|
}]);
|
|
11348
11348
|
}();
|
|
11349
|
-
|
|
11350
|
-
var
|
|
11351
|
-
Object.defineProperty(
|
|
11349
|
+
Vi.AzureSpeechConfig = eg;
|
|
11350
|
+
var Gi = {};
|
|
11351
|
+
Object.defineProperty(Gi, "__esModule", {
|
|
11352
11352
|
value: !0
|
|
11353
11353
|
});
|
|
11354
|
-
|
|
11354
|
+
Gi.StopTimeout = void 0;
|
|
11355
11355
|
var Vu = /* @__PURE__ */ function() {
|
|
11356
11356
|
function t() {
|
|
11357
11357
|
_(this, t);
|
|
@@ -11370,13 +11370,13 @@ var Vu = /* @__PURE__ */ function() {
|
|
|
11370
11370
|
}
|
|
11371
11371
|
}]);
|
|
11372
11372
|
}();
|
|
11373
|
-
|
|
11373
|
+
Gi.StopTimeout = Vu;
|
|
11374
11374
|
Vu.DEFAULT_MS = 2e4;
|
|
11375
|
-
var
|
|
11376
|
-
Object.defineProperty(
|
|
11375
|
+
var Ki = {};
|
|
11376
|
+
Object.defineProperty(Ki, "__esModule", {
|
|
11377
11377
|
value: !0
|
|
11378
11378
|
});
|
|
11379
|
-
|
|
11379
|
+
Ki.AzureTranscript = void 0;
|
|
11380
11380
|
var tg = Ar, ng = /* @__PURE__ */ function() {
|
|
11381
11381
|
function t() {
|
|
11382
11382
|
_(this, t);
|
|
@@ -11399,12 +11399,12 @@ var tg = Ar, ng = /* @__PURE__ */ function() {
|
|
|
11399
11399
|
)
|
|
11400
11400
|
}]);
|
|
11401
11401
|
}();
|
|
11402
|
-
|
|
11403
|
-
Object.defineProperty(
|
|
11402
|
+
Ki.AzureTranscript = ng;
|
|
11403
|
+
Object.defineProperty(zi, "__esModule", {
|
|
11404
11404
|
value: !0
|
|
11405
11405
|
});
|
|
11406
|
-
|
|
11407
|
-
var fl =
|
|
11406
|
+
zi.Azure = void 0;
|
|
11407
|
+
var fl = qi, ml = Vi, Ia = Gi, gl = Ki, rg = Tr, ig = /* @__PURE__ */ function(t) {
|
|
11408
11408
|
function r() {
|
|
11409
11409
|
var e;
|
|
11410
11410
|
return _(this, r), e = W(this, r, arguments), e._newTextPadding = "", e;
|
|
@@ -11412,7 +11412,7 @@ var fl = Vi, ml = Wi, Ma = Ki, gl = Ji, rg = Tr, ig = /* @__PURE__ */ function(t
|
|
|
11412
11412
|
return G(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 && Ia.StopTimeout.reset(this, n == null ? void 0 : n.stopAfterSilenceMs), this.prepareBeforeStart(n), this.startAsync(n), i || fl.PreventConnectionStop.applyPrevention(this);
|
|
11416
11416
|
}
|
|
11417
11417
|
}, {
|
|
11418
11418
|
key: "startAsync",
|
|
@@ -11479,7 +11479,7 @@ var fl = Vi, ml = Wi, Ma = Ki, gl = Ji, rg = Tr, ig = /* @__PURE__ */ function(t
|
|
|
11479
11479
|
value: function(n, i) {
|
|
11480
11480
|
if (!this._stopping) {
|
|
11481
11481
|
var a = gl.AzureTranscript.extract(this._newTextPadding + i.result.text, this.finalTranscript, !1, this._translations), s = a.interimTranscript, o = a.finalTranscript, l = a.newText;
|
|
11482
|
-
|
|
11482
|
+
Ia.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 fl = Vi, ml = Wi, Ma = Ki, gl = Ji, rg = Tr, ig = /* @__PURE__ */ function(t
|
|
|
11498
11498
|
case window.SpeechSDK.ResultReason.RecognizedSpeech:
|
|
11499
11499
|
if (a.text && !this._stopping) {
|
|
11500
11500
|
var s = gl.AzureTranscript.extract(this._newTextPadding + a.text, this.finalTranscript, !0, this._translations), o = s.interimTranscript, l = s.finalTranscript, c = s.newText;
|
|
11501
|
-
|
|
11501
|
+
Ia.StopTimeout.reset(this, this.stopTimeoutMS), this.updateElements(o, l, c), l !== "" && (this._newTextPadding = " ");
|
|
11502
11502
|
}
|
|
11503
11503
|
break;
|
|
11504
11504
|
}
|
|
@@ -11553,11 +11553,11 @@ var fl = Vi, ml = Wi, Ma = Ki, gl = Ji, rg = Tr, ig = /* @__PURE__ */ function(t
|
|
|
11553
11553
|
}
|
|
11554
11554
|
}]);
|
|
11555
11555
|
}(rg.Speech);
|
|
11556
|
-
|
|
11556
|
+
zi.Azure = ig;
|
|
11557
11557
|
Object.defineProperty(Uu, "__esModule", {
|
|
11558
11558
|
value: !0
|
|
11559
11559
|
});
|
|
11560
|
-
var vl =
|
|
11560
|
+
var vl = $i, ag = Rr, Ze = Ui, sg = zi, og = /* @__PURE__ */ function() {
|
|
11561
11561
|
function t() {
|
|
11562
11562
|
_(this, t);
|
|
11563
11563
|
}
|
|
@@ -11605,7 +11605,7 @@ var vl = Fi, ag = Rr, Ze = zi, sg = qi, og = /* @__PURE__ */ function() {
|
|
|
11605
11605
|
var i = this;
|
|
11606
11606
|
this._silenceTimeout = setTimeout(function() {
|
|
11607
11607
|
var a;
|
|
11608
|
-
(a = e.submit) == null || a.call(e), Qr.stop(), i.stop || setTimeout(n,
|
|
11608
|
+
(a = e.submit) == null || a.call(e), Qr.stop(), i.stop || setTimeout(n, Ws.MICROPHONE_RESET_TIMEOUT_MS);
|
|
11609
11609
|
}, this.silenceMS);
|
|
11610
11610
|
}
|
|
11611
11611
|
}, {
|
|
@@ -11726,7 +11726,7 @@ var vl = Fi, ag = Rr, Ze = zi, sg = qi, og = /* @__PURE__ */ function() {
|
|
|
11726
11726
|
}]);
|
|
11727
11727
|
}(Hu);
|
|
11728
11728
|
Wu.MICROPHONE_RESET_TIMEOUT_MS = 300;
|
|
11729
|
-
var
|
|
11729
|
+
var Ws = Wu, Gs = /* @__PURE__ */ function() {
|
|
11730
11730
|
function t(r, e, n, i) {
|
|
11731
11731
|
var a = this;
|
|
11732
11732
|
_(this, t), this._attachments = [], this._fileCountLimit = 99, this._acceptedFormat = "", e.maxNumberOfFiles && (this._fileCountLimit = e.maxNumberOfFiles), this._toggleContainerDisplay = n, this._fileAttachmentsContainerRef = i, e.acceptedFormats && (this._acceptedFormat = e.acceptedFormats), setTimeout(function() {
|
|
@@ -11746,7 +11746,7 @@ var Gs = Wu, Ks = /* @__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 = ys.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 Gs = Wu, Ks = /* @__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), ys.stopAttachmentPlayback(a), a.remove(), this._toggleContainerDisplay(!1), (n = this._validationHandler) == null || n.call(this);
|
|
11788
11788
|
}
|
|
11789
11789
|
}, {
|
|
11790
11790
|
key: "getFiles",
|
|
@@ -11959,9 +11959,9 @@ var Gs = Wu, Ks = /* @__PURE__ */ function() {
|
|
|
11959
11959
|
(s = (a = (i = n.children[0]) == null ? void 0 : i.children) == null ? void 0 : a[0]) != null && s.classList.contains("stop-icon") && n.children[0].click();
|
|
11960
11960
|
}
|
|
11961
11961
|
}]);
|
|
11962
|
-
}(
|
|
11962
|
+
}(Gs);
|
|
11963
11963
|
Gu.TIMER_LIMIT_S = 5999;
|
|
11964
|
-
var
|
|
11964
|
+
var ys = Gu, ug = /* @__PURE__ */ function() {
|
|
11965
11965
|
function t() {
|
|
11966
11966
|
_(this, t);
|
|
11967
11967
|
}
|
|
@@ -11970,11 +11970,11 @@ var bs = Gu, ug = /* @__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 ys(e, n, i, a) : new Gs(e, n, i, a);
|
|
11974
11974
|
}
|
|
11975
11975
|
)
|
|
11976
11976
|
}]);
|
|
11977
|
-
}(),
|
|
11977
|
+
}(), Ks = /* @__PURE__ */ function() {
|
|
11978
11978
|
function t(r, e, n) {
|
|
11979
11979
|
_(this, t), this._fileAttachmentsTypes = [], this.elementRef = this.createAttachmentContainer();
|
|
11980
11980
|
var i = V(n) == "object" && !!n.displayFileAttachmentContainer;
|
|
@@ -12200,7 +12200,7 @@ var rr = Ku, dg = /* @__PURE__ */ function(t) {
|
|
|
12200
12200
|
}, {
|
|
12201
12201
|
key: "import",
|
|
12202
12202
|
value: function(n) {
|
|
12203
|
-
|
|
12203
|
+
Ks.addFilesToType(Array.from(n.files || []), [this._fileAttachmentsType]), n.value = "";
|
|
12204
12204
|
}
|
|
12205
12205
|
}, {
|
|
12206
12206
|
key: "addClickEvent",
|
|
@@ -12635,7 +12635,7 @@ var rr = Ku, dg = /* @__PURE__ */ function(t) {
|
|
|
12635
12635
|
}, a.files && (o.files = Array.from(a.files).map(function(u) {
|
|
12636
12636
|
return {
|
|
12637
12637
|
file: u,
|
|
12638
|
-
type:
|
|
12638
|
+
type: Gs.getTypeFromBlob(u)
|
|
12639
12639
|
};
|
|
12640
12640
|
})), setTimeout(function() {
|
|
12641
12641
|
return s.attemptSubmit(o, !0);
|
|
@@ -12743,7 +12743,7 @@ var rr = Ku, dg = /* @__PURE__ */ function(t) {
|
|
|
12743
12743
|
var n = this;
|
|
12744
12744
|
this.elementRef.classList.contains(r.SUBMIT_CLASS) || (this.elementRef.classList.remove(r.LOADING_CLASS, r.DISABLED_CLASS), this.elementRef.classList.add(r.SUBMIT_CLASS), this.elementRef.replaceChildren(this._innerElements.submit), wl.resetSubmit(this, this.status.loadingActive), this.elementRef.onclick = function() {
|
|
12745
12745
|
var i;
|
|
12746
|
-
n.submitFromInput(), (i = n._microphoneButton) != null && i.isActive &&
|
|
12746
|
+
n.submitFromInput(), (i = n._microphoneButton) != null && i.isActive && Ws.toggleSpeechAfterSubmit(n._microphoneButton.elementRef, !!n._stopSTTAfterSubmit);
|
|
12747
12747
|
});
|
|
12748
12748
|
}
|
|
12749
12749
|
// called every time when user triggers an input via ValidationHandler - hence use class to check if not already present
|
|
@@ -12831,7 +12831,7 @@ var mg = ei, gg = `<?xml version="1.0" encoding="utf-8"?>
|
|
|
12831
12831
|
o.capture();
|
|
12832
12832
|
}, i.addEventListener("click", this.stop.bind(this)), a.onclick = function() {
|
|
12833
12833
|
var l = o.getFile();
|
|
12834
|
-
l &&
|
|
12834
|
+
l && Ks.addFilesToType([l], [s]), o.stop(), o.close();
|
|
12835
12835
|
};
|
|
12836
12836
|
}
|
|
12837
12837
|
}, {
|
|
@@ -12950,7 +12950,7 @@ var mg = ei, gg = `<?xml version="1.0" encoding="utf-8"?>
|
|
|
12950
12950
|
_(this, t), this.elementRef = t.createPanelElement(r.inputAreaStyle);
|
|
12951
12951
|
var a = {}, s = this.createFileUploadComponents(r, n, i, a), o = new hr(r, n, s);
|
|
12952
12952
|
r.speechToText && !a.microphone && (a.microphone = {
|
|
12953
|
-
button: new
|
|
12953
|
+
button: new Ws(r, o, e.addNewErrorMessage.bind(e))
|
|
12954
12954
|
});
|
|
12955
12955
|
var l = new mg(r, o.inputElementRef, e, n, s, a);
|
|
12956
12956
|
o.submit = l.submitFromInput.bind(l), hg.attach(r, n, o, s, l), r.submitUserMessage = l.programmaticSubmit.bind(l), a.submit = {
|
|
@@ -12962,7 +12962,7 @@ var mg = ei, gg = `<?xml version="1.0" encoding="utf-8"?>
|
|
|
12962
12962
|
value: (
|
|
12963
12963
|
// prettier-ignore
|
|
12964
12964
|
function(e, n, i, a) {
|
|
12965
|
-
var s, o, l, c, u = new
|
|
12965
|
+
var s, o, l, c, u = new Ks(this.elementRef, e.attachmentContainerStyle, n.demo);
|
|
12966
12966
|
if (t.createUploadButtons(e, n.fileTypes || {}, u, i, a), (s = n.camera) != null && s.files) {
|
|
12967
12967
|
var d = ((o = a.images) == null ? void 0 : o.fileType) || u.addType(e, n.camera.files, "images");
|
|
12968
12968
|
a.camera = {
|
|
@@ -13056,7 +13056,7 @@ var mg = ei, gg = `<?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), _a.apply(xg, e.shadowRoot), setTimeout(function() {
|
|
13060
13060
|
e._hasBeenRendered || e.onRender();
|
|
13061
13061
|
}, 20), e;
|
|
13062
13062
|
}
|
|
@@ -13070,12 +13070,12 @@ var mg = ei, gg = `<?xml version="1.0" encoding="utf-8"?>
|
|
|
13070
13070
|
key: "onRender",
|
|
13071
13071
|
value: function() {
|
|
13072
13072
|
var n;
|
|
13073
|
-
hu.attemptAppendStyleSheetToHead(this.style), Ue.processConnect(this), (!this._activeService || this._activeService.demo) && (this._activeService = mm.create(this)), this.auxiliaryStyle && !this._auxiliaryStyleApplied && (
|
|
13073
|
+
hu.attemptAppendStyleSheetToHead(this.style), Ue.processConnect(this), (!this._activeService || this._activeService.demo) && (this._activeService = mm.create(this)), this.auxiliaryStyle && !this._auxiliaryStyleApplied && (_a.apply(this.auxiliaryStyle, this.shadowRoot), this._auxiliaryStyleApplied = !0), _a.applyDefaultStyleToComponent(this.style, this.chatStyle), Ue.checkForContainerStyles(this, this._elementRef), this._activeService.key && this._activeService.validateKeyProperty ? Mh.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]), Cg.render(this, this._elementRef, this._activeService, this._childElement)) : this._activeService instanceof Ie && jf.render(this._elementRef, this.changeToChatView.bind(this), this._activeService), this._hasBeenRendered = !0, mi.onRender(this);
|
|
13074
13074
|
}
|
|
13075
13075
|
}, {
|
|
13076
13076
|
key: "disconnectedCallback",
|
|
13077
13077
|
value: function() {
|
|
13078
|
-
|
|
13078
|
+
zs.chat = void 0;
|
|
13079
13079
|
}
|
|
13080
13080
|
}]);
|
|
13081
13081
|
}(Ff);
|
|
@@ -13142,7 +13142,7 @@ function sn(t) {
|
|
|
13142
13142
|
return t != null && typeof t == "object";
|
|
13143
13143
|
}
|
|
13144
13144
|
var Fg = "[object Symbol]";
|
|
13145
|
-
function
|
|
13145
|
+
function Ji(t) {
|
|
13146
13146
|
return typeof t == "symbol" || sn(t) && Lr(t) == Fg;
|
|
13147
13147
|
}
|
|
13148
13148
|
function Ng(t, r) {
|
|
@@ -13156,7 +13156,7 @@ function Xu(t) {
|
|
|
13156
13156
|
return t;
|
|
13157
13157
|
if (vt(t))
|
|
13158
13158
|
return Ng(t, Xu) + "";
|
|
13159
|
-
if (
|
|
13159
|
+
if (Ji(t))
|
|
13160
13160
|
return Sl ? Sl.call(t) : "";
|
|
13161
13161
|
var r = t + "";
|
|
13162
13162
|
return r == "0" && 1 / t == -1 / 0 ? "-0" : r;
|
|
@@ -13179,7 +13179,7 @@ var Cl = NaN, Ug = /^[-+]0x[0-9a-f]+$/i, zg = /^0b[01]+$/i, qg = /^0o[0-7]+$/i,
|
|
|
13179
13179
|
function Wg(t) {
|
|
13180
13180
|
if (typeof t == "number")
|
|
13181
13181
|
return t;
|
|
13182
|
-
if (
|
|
13182
|
+
if (Ji(t))
|
|
13183
13183
|
return Cl;
|
|
13184
13184
|
if (Je(t)) {
|
|
13185
13185
|
var r = typeof t.valueOf == "function" ? t.valueOf() : t;
|
|
@@ -13205,18 +13205,18 @@ function El(t) {
|
|
|
13205
13205
|
var r = Kg(t), e = r % 1;
|
|
13206
13206
|
return r === r ? e ? r - e : r : 0;
|
|
13207
13207
|
}
|
|
13208
|
-
function
|
|
13208
|
+
function Js(t) {
|
|
13209
13209
|
return t;
|
|
13210
13210
|
}
|
|
13211
13211
|
var Jg = "[object AsyncFunction]", Zg = "[object Function]", Yg = "[object GeneratorFunction]", Xg = "[object Proxy]";
|
|
13212
|
-
function
|
|
13212
|
+
function Zs(t) {
|
|
13213
13213
|
if (!Je(t))
|
|
13214
13214
|
return !1;
|
|
13215
13215
|
var r = Lr(t);
|
|
13216
13216
|
return r == Zg || r == Yg || r == Jg || r == Xg;
|
|
13217
13217
|
}
|
|
13218
|
-
var
|
|
13219
|
-
var t = /[^.]+$/.exec(
|
|
13218
|
+
var Ma = Qe["__core-js_shared__"], Al = function() {
|
|
13219
|
+
var t = /[^.]+$/.exec(Ma && Ma.keys && Ma.keys.IE_PROTO || "");
|
|
13220
13220
|
return t ? "Symbol(src)_1." + t : "";
|
|
13221
13221
|
}();
|
|
13222
13222
|
function Qg(t) {
|
|
@@ -13242,19 +13242,19 @@ var r0 = /[\\^$.*+?()[\]{}|]/g, i0 = /^\[object .+?Constructor\]$/, a0 = Functio
|
|
|
13242
13242
|
function u0(t) {
|
|
13243
13243
|
if (!Je(t) || Qg(t))
|
|
13244
13244
|
return !1;
|
|
13245
|
-
var r =
|
|
13245
|
+
var r = Zs(t) ? c0 : i0;
|
|
13246
13246
|
return r.test(n0(t));
|
|
13247
13247
|
}
|
|
13248
13248
|
function d0(t, r) {
|
|
13249
13249
|
return t == null ? void 0 : t[r];
|
|
13250
13250
|
}
|
|
13251
|
-
function
|
|
13251
|
+
function Zi(t, r) {
|
|
13252
13252
|
var e = d0(t, r);
|
|
13253
13253
|
return u0(e) ? e : void 0;
|
|
13254
13254
|
}
|
|
13255
|
-
var Tl =
|
|
13255
|
+
var Tl = Zi(Qe, "WeakMap"), yi = Tl && new Tl(), Qu = yi ? function(t, r) {
|
|
13256
13256
|
return yi.set(t, r), t;
|
|
13257
|
-
} :
|
|
13257
|
+
} : Js, Rl = Object.create, Yi = /* @__PURE__ */ function() {
|
|
13258
13258
|
function t() {
|
|
13259
13259
|
}
|
|
13260
13260
|
return function(r) {
|
|
@@ -13288,7 +13288,7 @@ function gr(t) {
|
|
|
13288
13288
|
case 7:
|
|
13289
13289
|
return new t(r[0], r[1], r[2], r[3], r[4], r[5], r[6]);
|
|
13290
13290
|
}
|
|
13291
|
-
var e =
|
|
13291
|
+
var e = Yi(t.prototype), n = t.apply(e, r);
|
|
13292
13292
|
return Je(n) ? n : e;
|
|
13293
13293
|
};
|
|
13294
13294
|
}
|
|
@@ -13301,7 +13301,7 @@ function p0(t, r, e) {
|
|
|
13301
13301
|
}
|
|
13302
13302
|
return a;
|
|
13303
13303
|
}
|
|
13304
|
-
function
|
|
13304
|
+
function Ys(t, r, e) {
|
|
13305
13305
|
switch (e.length) {
|
|
13306
13306
|
case 0:
|
|
13307
13307
|
return t.call(r);
|
|
@@ -13339,13 +13339,13 @@ function g0(t, r) {
|
|
|
13339
13339
|
t[e] === r && ++n;
|
|
13340
13340
|
return n;
|
|
13341
13341
|
}
|
|
13342
|
-
function
|
|
13342
|
+
function Xs() {
|
|
13343
13343
|
}
|
|
13344
13344
|
var v0 = 4294967295;
|
|
13345
13345
|
function En(t) {
|
|
13346
13346
|
this.__wrapped__ = t, this.__actions__ = [], this.__dir__ = 1, this.__filtered__ = !1, this.__iteratees__ = [], this.__takeCount__ = v0, this.__views__ = [];
|
|
13347
13347
|
}
|
|
13348
|
-
En.prototype =
|
|
13348
|
+
En.prototype = Yi(Xs.prototype);
|
|
13349
13349
|
En.prototype.constructor = En;
|
|
13350
13350
|
function y0() {
|
|
13351
13351
|
}
|
|
@@ -13363,9 +13363,9 @@ function k0(t) {
|
|
|
13363
13363
|
function An(t, r) {
|
|
13364
13364
|
this.__wrapped__ = t, this.__actions__ = [], this.__chain__ = !!r, this.__index__ = 0, this.__values__ = void 0;
|
|
13365
13365
|
}
|
|
13366
|
-
An.prototype =
|
|
13366
|
+
An.prototype = Yi(Xs.prototype);
|
|
13367
13367
|
An.prototype.constructor = An;
|
|
13368
|
-
function
|
|
13368
|
+
function Qs(t, r) {
|
|
13369
13369
|
var e = -1, n = t.length;
|
|
13370
13370
|
for (r || (r = Array(n)); ++e < n; )
|
|
13371
13371
|
r[e] = t[e];
|
|
@@ -13375,7 +13375,7 @@ function _0(t) {
|
|
|
13375
13375
|
if (t instanceof En)
|
|
13376
13376
|
return t.clone();
|
|
13377
13377
|
var r = new An(t.__wrapped__, t.__chain__);
|
|
13378
|
-
return r.__actions__ =
|
|
13378
|
+
return r.__actions__ = Qs(t.__actions__), r.__index__ = t.__index__, r.__values__ = t.__values__, r;
|
|
13379
13379
|
}
|
|
13380
13380
|
var S0 = Object.prototype, C0 = S0.hasOwnProperty;
|
|
13381
13381
|
function bi(t) {
|
|
@@ -13387,7 +13387,7 @@ function bi(t) {
|
|
|
13387
13387
|
}
|
|
13388
13388
|
return new An(t);
|
|
13389
13389
|
}
|
|
13390
|
-
bi.prototype =
|
|
13390
|
+
bi.prototype = Xs.prototype;
|
|
13391
13391
|
bi.prototype.constructor = bi;
|
|
13392
13392
|
function x0(t) {
|
|
13393
13393
|
var r = k0(t), e = bi[r];
|
|
@@ -13433,7 +13433,7 @@ function P0(t) {
|
|
|
13433
13433
|
}
|
|
13434
13434
|
var wi = function() {
|
|
13435
13435
|
try {
|
|
13436
|
-
var t =
|
|
13436
|
+
var t = Zi(Object, "defineProperty");
|
|
13437
13437
|
return t({}, "", {}), t;
|
|
13438
13438
|
} catch {
|
|
13439
13439
|
}
|
|
@@ -13444,7 +13444,7 @@ var wi = function() {
|
|
|
13444
13444
|
value: P0(r),
|
|
13445
13445
|
writable: !0
|
|
13446
13446
|
});
|
|
13447
|
-
} :
|
|
13447
|
+
} : Js, eo = rd($0);
|
|
13448
13448
|
function F0(t, r) {
|
|
13449
13449
|
for (var e = -1, n = t == null ? 0 : t.length; ++e < n && r(t[e], e, t) !== !1; )
|
|
13450
13450
|
;
|
|
@@ -13491,7 +13491,7 @@ function X0(t, r) {
|
|
|
13491
13491
|
}
|
|
13492
13492
|
function ad(t, r, e) {
|
|
13493
13493
|
var n = r + "";
|
|
13494
|
-
return
|
|
13494
|
+
return eo(t, M0(n, X0(L0(n), e)));
|
|
13495
13495
|
}
|
|
13496
13496
|
var Q0 = 4, ev = 8, Ll = 32, Il = 64;
|
|
13497
13497
|
function sd(t, r, e, n, i, a, s, o, l, c) {
|
|
@@ -13522,7 +13522,7 @@ function Ir(t, r) {
|
|
|
13522
13522
|
}
|
|
13523
13523
|
var rv = Math.min;
|
|
13524
13524
|
function iv(t, r) {
|
|
13525
|
-
for (var e = t.length, n = rv(r.length, e), i =
|
|
13525
|
+
for (var e = t.length, n = rv(r.length, e), i = Qs(t); n--; ) {
|
|
13526
13526
|
var a = r[n];
|
|
13527
13527
|
t[n] = Ir(a, e) ? i[a] : void 0;
|
|
13528
13528
|
}
|
|
@@ -13537,7 +13537,7 @@ function ki(t, r) {
|
|
|
13537
13537
|
return a;
|
|
13538
13538
|
}
|
|
13539
13539
|
var av = 1, sv = 2, ov = 8, lv = 16, cv = 128, uv = 512;
|
|
13540
|
-
function
|
|
13540
|
+
function to(t, r, e, n, i, a, s, o, l, c) {
|
|
13541
13541
|
var u = r & cv, d = r & av, h = r & sv, p = r & (ov | lv), f = r & uv, y = h ? void 0 : gr(t);
|
|
13542
13542
|
function g() {
|
|
13543
13543
|
for (var v = arguments.length, b = Array(v), C = v; C--; )
|
|
@@ -13549,7 +13549,7 @@ function no(t, r, e, n, i, a, s, o, l, c) {
|
|
|
13549
13549
|
return sd(
|
|
13550
13550
|
t,
|
|
13551
13551
|
r,
|
|
13552
|
-
|
|
13552
|
+
to,
|
|
13553
13553
|
g.placeholder,
|
|
13554
13554
|
e,
|
|
13555
13555
|
b,
|
|
@@ -13574,7 +13574,7 @@ function dv(t, r, e) {
|
|
|
13574
13574
|
return sd(
|
|
13575
13575
|
t,
|
|
13576
13576
|
r,
|
|
13577
|
-
|
|
13577
|
+
to,
|
|
13578
13578
|
i.placeholder,
|
|
13579
13579
|
void 0,
|
|
13580
13580
|
s,
|
|
@@ -13584,7 +13584,7 @@ function dv(t, r, e) {
|
|
|
13584
13584
|
e - a
|
|
13585
13585
|
);
|
|
13586
13586
|
var u = this && this !== Qe && this instanceof i ? n : t;
|
|
13587
|
-
return
|
|
13587
|
+
return Ys(u, this, s);
|
|
13588
13588
|
}
|
|
13589
13589
|
return i;
|
|
13590
13590
|
}
|
|
@@ -13596,16 +13596,16 @@ function pv(t, r, e, n) {
|
|
|
13596
13596
|
d[c] = n[c];
|
|
13597
13597
|
for (; l--; )
|
|
13598
13598
|
d[c++] = arguments[++o];
|
|
13599
|
-
return
|
|
13599
|
+
return Ys(h, i ? e : this, d);
|
|
13600
13600
|
}
|
|
13601
13601
|
return s;
|
|
13602
13602
|
}
|
|
13603
|
-
var Pl = "__lodash_placeholder__",
|
|
13603
|
+
var Pl = "__lodash_placeholder__", Pa = 1, fv = 2, mv = 4, $l = 8, Hn = 128, Fl = 256, gv = Math.min;
|
|
13604
13604
|
function vv(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 < (Pa | fv | Hn), s = n == Hn && e == $l || n == Hn && e == Fl && t[7].length <= r[8] || n == (Hn | Fl) && r[7].length <= r[8] && e == $l;
|
|
13606
13606
|
if (!(a || s))
|
|
13607
13607
|
return t;
|
|
13608
|
-
n &
|
|
13608
|
+
n & Pa && (t[2] = r[2], i |= e & Pa ? 0 : mv);
|
|
13609
13609
|
var o = r[3];
|
|
13610
13610
|
if (o) {
|
|
13611
13611
|
var l = t[3];
|
|
@@ -13637,11 +13637,11 @@ function kv(t, r, e, n, i, a, s, o) {
|
|
|
13637
13637
|
];
|
|
13638
13638
|
if (h && vv(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 : Hl(p[9] - c, 0), !o && r & (Dl | Bl) && (r &= -25), !r || r == Nl)
|
|
13639
13639
|
var f = p0(t, r, e);
|
|
13640
|
-
else r == Dl || r == Bl ? f = dv(t, r, o) : (r == jl || r == (Nl | jl)) && !i.length ? f = pv(t, r, e, n) : f =
|
|
13640
|
+
else r == Dl || r == Bl ? f = dv(t, r, o) : (r == jl || r == (Nl | jl)) && !i.length ? f = pv(t, r, e, n) : f = to.apply(void 0, p);
|
|
13641
13641
|
var y = h ? Qu : id;
|
|
13642
13642
|
return ad(y(f, p), t, r);
|
|
13643
13643
|
}
|
|
13644
|
-
function
|
|
13644
|
+
function no(t, r, e) {
|
|
13645
13645
|
r == "__proto__" && wi ? wi(t, r, {
|
|
13646
13646
|
configurable: !0,
|
|
13647
13647
|
enumerable: !0,
|
|
@@ -13649,20 +13649,20 @@ function ro(t, r, e) {
|
|
|
13649
13649
|
writable: !0
|
|
13650
13650
|
}) : t[r] = e;
|
|
13651
13651
|
}
|
|
13652
|
-
function
|
|
13652
|
+
function Xi(t, r) {
|
|
13653
13653
|
return t === r || t !== t && r !== r;
|
|
13654
13654
|
}
|
|
13655
13655
|
var _v = Object.prototype, Sv = _v.hasOwnProperty;
|
|
13656
13656
|
function ld(t, r, e) {
|
|
13657
13657
|
var n = t[r];
|
|
13658
|
-
(!(Sv.call(t, r) &&
|
|
13658
|
+
(!(Sv.call(t, r) && Xi(n, e)) || e === void 0 && !(r in t)) && no(t, r, e);
|
|
13659
13659
|
}
|
|
13660
13660
|
function Cv(t, r, e, n) {
|
|
13661
13661
|
var i = !e;
|
|
13662
13662
|
e || (e = {});
|
|
13663
13663
|
for (var a = -1, s = r.length; ++a < s; ) {
|
|
13664
13664
|
var o = r[a], l = void 0;
|
|
13665
|
-
l === void 0 && (l = t[o]), i ?
|
|
13665
|
+
l === void 0 && (l = t[o]), i ? no(e, o, l) : ld(e, o, l);
|
|
13666
13666
|
}
|
|
13667
13667
|
return e;
|
|
13668
13668
|
}
|
|
@@ -13674,24 +13674,24 @@ function cd(t, r, e) {
|
|
|
13674
13674
|
i = -1;
|
|
13675
13675
|
for (var o = Array(r + 1); ++i < r; )
|
|
13676
13676
|
o[i] = n[i];
|
|
13677
|
-
return o[r] = e(s),
|
|
13677
|
+
return o[r] = e(s), Ys(t, this, o);
|
|
13678
13678
|
};
|
|
13679
13679
|
}
|
|
13680
13680
|
function xv(t, r) {
|
|
13681
|
-
return
|
|
13681
|
+
return eo(cd(t, r, Js), t + "");
|
|
13682
13682
|
}
|
|
13683
13683
|
var Ev = 9007199254740991;
|
|
13684
|
-
function
|
|
13684
|
+
function ro(t) {
|
|
13685
13685
|
return typeof t == "number" && t > -1 && t % 1 == 0 && t <= Ev;
|
|
13686
13686
|
}
|
|
13687
|
-
function
|
|
13688
|
-
return t != null &&
|
|
13687
|
+
function io(t) {
|
|
13688
|
+
return t != null && ro(t.length) && !Zs(t);
|
|
13689
13689
|
}
|
|
13690
13690
|
function Av(t, r, e) {
|
|
13691
13691
|
if (!Je(e))
|
|
13692
13692
|
return !1;
|
|
13693
13693
|
var n = typeof r;
|
|
13694
|
-
return (n == "number" ?
|
|
13694
|
+
return (n == "number" ? io(e) && Ir(r, e.length) : n == "string" && r in e) ? Xi(e[r], t) : !1;
|
|
13695
13695
|
}
|
|
13696
13696
|
function Tv(t) {
|
|
13697
13697
|
return xv(function(r, e) {
|
|
@@ -13729,17 +13729,17 @@ var hd = typeof exports == "object" && exports && !exports.nodeType && exports,
|
|
|
13729
13729
|
he[Xv] = he[Qv] = he[e1] = he[t1] = he[n1] = he[r1] = he[i1] = he[a1] = he[s1] = !0;
|
|
13730
13730
|
he[Nv] = he[Dv] = he[Zv] = he[Bv] = he[Yv] = he[jv] = he[Hv] = he[Uv] = he[zv] = he[qv] = he[Vv] = he[Wv] = he[Gv] = he[Kv] = he[Jv] = !1;
|
|
13731
13731
|
function o1(t) {
|
|
13732
|
-
return sn(t) &&
|
|
13732
|
+
return sn(t) && ro(t.length) && !!he[Lr(t)];
|
|
13733
13733
|
}
|
|
13734
13734
|
function l1(t) {
|
|
13735
13735
|
return function(r) {
|
|
13736
13736
|
return t(r);
|
|
13737
13737
|
};
|
|
13738
13738
|
}
|
|
13739
|
-
var fd = typeof exports == "object" && exports && !exports.nodeType && exports, ir = fd && typeof module == "object" && module && !module.nodeType && module, c1 = ir && ir.exports === fd,
|
|
13739
|
+
var fd = typeof exports == "object" && exports && !exports.nodeType && exports, ir = fd && typeof module == "object" && module && !module.nodeType && module, c1 = ir && ir.exports === fd, $a = c1 && Zu.process, Wl = function() {
|
|
13740
13740
|
try {
|
|
13741
13741
|
var t = ir && ir.require && ir.require("util").types;
|
|
13742
|
-
return t ||
|
|
13742
|
+
return t || $a && $a.binding && $a.binding("util");
|
|
13743
13743
|
} catch {
|
|
13744
13744
|
}
|
|
13745
13745
|
}(), Gl = Wl && Wl.isTypedArray, md = Gl ? l1(Gl) : o1;
|
|
@@ -13775,16 +13775,16 @@ function m1(t) {
|
|
|
13775
13775
|
return e;
|
|
13776
13776
|
}
|
|
13777
13777
|
function gd(t) {
|
|
13778
|
-
return
|
|
13778
|
+
return io(t) ? u1(t) : m1(t);
|
|
13779
13779
|
}
|
|
13780
13780
|
var g1 = /\.|\[(?:[^[\]]*|(["'])(?:(?!\1)[^\\]|\\.)*?\1)\]/, v1 = /^\w*$/;
|
|
13781
13781
|
function y1(t, r) {
|
|
13782
13782
|
if (vt(t))
|
|
13783
13783
|
return !1;
|
|
13784
13784
|
var e = typeof t;
|
|
13785
|
-
return e == "number" || e == "symbol" || e == "boolean" || t == null ||
|
|
13785
|
+
return e == "number" || e == "symbol" || e == "boolean" || t == null || Ji(t) ? !0 : v1.test(t) || !g1.test(t) || r != null && t in Object(r);
|
|
13786
13786
|
}
|
|
13787
|
-
var yr =
|
|
13787
|
+
var yr = Zi(Object, "create");
|
|
13788
13788
|
function b1() {
|
|
13789
13789
|
this.__data__ = yr ? yr(null) : {}, this.size = 0;
|
|
13790
13790
|
}
|
|
@@ -13826,29 +13826,29 @@ Gt.prototype.set = R1;
|
|
|
13826
13826
|
function O1() {
|
|
13827
13827
|
this.__data__ = [], this.size = 0;
|
|
13828
13828
|
}
|
|
13829
|
-
function
|
|
13829
|
+
function Qi(t, r) {
|
|
13830
13830
|
for (var e = t.length; e--; )
|
|
13831
|
-
if (
|
|
13831
|
+
if (Xi(t[e][0], r))
|
|
13832
13832
|
return e;
|
|
13833
13833
|
return -1;
|
|
13834
13834
|
}
|
|
13835
13835
|
var L1 = Array.prototype, I1 = L1.splice;
|
|
13836
13836
|
function M1(t) {
|
|
13837
|
-
var r = this.__data__, e =
|
|
13837
|
+
var r = this.__data__, e = Qi(r, t);
|
|
13838
13838
|
if (e < 0)
|
|
13839
13839
|
return !1;
|
|
13840
13840
|
var n = r.length - 1;
|
|
13841
13841
|
return e == n ? r.pop() : I1.call(r, e, 1), --this.size, !0;
|
|
13842
13842
|
}
|
|
13843
13843
|
function P1(t) {
|
|
13844
|
-
var r = this.__data__, e =
|
|
13844
|
+
var r = this.__data__, e = Qi(r, t);
|
|
13845
13845
|
return e < 0 ? void 0 : r[e][1];
|
|
13846
13846
|
}
|
|
13847
13847
|
function $1(t) {
|
|
13848
|
-
return
|
|
13848
|
+
return Qi(this.__data__, t) > -1;
|
|
13849
13849
|
}
|
|
13850
13850
|
function F1(t, r) {
|
|
13851
|
-
var e = this.__data__, n =
|
|
13851
|
+
var e = this.__data__, n = Qi(e, t);
|
|
13852
13852
|
return n < 0 ? (++this.size, e.push([t, r])) : e[n][1] = r, this;
|
|
13853
13853
|
}
|
|
13854
13854
|
function bt(t) {
|
|
@@ -13863,7 +13863,7 @@ bt.prototype.delete = M1;
|
|
|
13863
13863
|
bt.prototype.get = P1;
|
|
13864
13864
|
bt.prototype.has = $1;
|
|
13865
13865
|
bt.prototype.set = F1;
|
|
13866
|
-
var vd =
|
|
13866
|
+
var vd = Zi(Qe, "Map");
|
|
13867
13867
|
function N1() {
|
|
13868
13868
|
this.size = 0, this.__data__ = {
|
|
13869
13869
|
hash: new Gt(),
|
|
@@ -13875,22 +13875,22 @@ function D1(t) {
|
|
|
13875
13875
|
var r = typeof t;
|
|
13876
13876
|
return r == "string" || r == "number" || r == "symbol" || r == "boolean" ? t !== "__proto__" : t === null;
|
|
13877
13877
|
}
|
|
13878
|
-
function
|
|
13878
|
+
function ea(t, r) {
|
|
13879
13879
|
var e = t.__data__;
|
|
13880
13880
|
return D1(r) ? e[typeof r == "string" ? "string" : "hash"] : e.map;
|
|
13881
13881
|
}
|
|
13882
13882
|
function B1(t) {
|
|
13883
|
-
var r =
|
|
13883
|
+
var r = ea(this, t).delete(t);
|
|
13884
13884
|
return this.size -= r ? 1 : 0, r;
|
|
13885
13885
|
}
|
|
13886
13886
|
function j1(t) {
|
|
13887
|
-
return
|
|
13887
|
+
return ea(this, t).get(t);
|
|
13888
13888
|
}
|
|
13889
13889
|
function H1(t) {
|
|
13890
|
-
return
|
|
13890
|
+
return ea(this, t).has(t);
|
|
13891
13891
|
}
|
|
13892
13892
|
function U1(t, r) {
|
|
13893
|
-
var e =
|
|
13893
|
+
var e = ea(this, t), n = e.size;
|
|
13894
13894
|
return e.set(t, r), this.size += e.size == n ? 0 : 1, this;
|
|
13895
13895
|
}
|
|
13896
13896
|
function Mt(t) {
|
|
@@ -13906,7 +13906,7 @@ Mt.prototype.get = j1;
|
|
|
13906
13906
|
Mt.prototype.has = H1;
|
|
13907
13907
|
Mt.prototype.set = U1;
|
|
13908
13908
|
var z1 = "Expected a function";
|
|
13909
|
-
function
|
|
13909
|
+
function ao(t, r) {
|
|
13910
13910
|
if (typeof t != "function" || r != null && typeof r != "function")
|
|
13911
13911
|
throw new TypeError(z1);
|
|
13912
13912
|
var e = function() {
|
|
@@ -13916,12 +13916,12 @@ function so(t, r) {
|
|
|
13916
13916
|
var s = t.apply(this, n);
|
|
13917
13917
|
return e.cache = a.set(i, s) || a, s;
|
|
13918
13918
|
};
|
|
13919
|
-
return e.cache = new (
|
|
13919
|
+
return e.cache = new (ao.Cache || Mt)(), e;
|
|
13920
13920
|
}
|
|
13921
|
-
|
|
13921
|
+
ao.Cache = Mt;
|
|
13922
13922
|
var q1 = 500;
|
|
13923
13923
|
function V1(t) {
|
|
13924
|
-
var r =
|
|
13924
|
+
var r = ao(t, function(n) {
|
|
13925
13925
|
return e.size === q1 && e.clear(), n;
|
|
13926
13926
|
}), e = r.cache;
|
|
13927
13927
|
return r;
|
|
@@ -13935,19 +13935,19 @@ var W1 = /[^.[\]]+|\[(?:(-?\d+(?:\.\d+)?)|(["'])((?:(?!\2)[^\\]|\\.)*?)\2)\]|(?=
|
|
|
13935
13935
|
function J1(t) {
|
|
13936
13936
|
return t == null ? "" : Xu(t);
|
|
13937
13937
|
}
|
|
13938
|
-
function
|
|
13938
|
+
function ta(t, r) {
|
|
13939
13939
|
return vt(t) ? t : y1(t, r) ? [t] : K1(J1(t));
|
|
13940
13940
|
}
|
|
13941
|
-
function
|
|
13942
|
-
if (typeof t == "string" ||
|
|
13941
|
+
function so(t) {
|
|
13942
|
+
if (typeof t == "string" || Ji(t))
|
|
13943
13943
|
return t;
|
|
13944
13944
|
var r = t + "";
|
|
13945
13945
|
return r == "0" && 1 / t == -1 / 0 ? "-0" : r;
|
|
13946
13946
|
}
|
|
13947
13947
|
function Z1(t, r) {
|
|
13948
|
-
r =
|
|
13948
|
+
r = ta(r, t);
|
|
13949
13949
|
for (var e = 0, n = r.length; t != null && e < n; )
|
|
13950
|
-
t = t[
|
|
13950
|
+
t = t[so(r[e++])];
|
|
13951
13951
|
return e && e == n ? t : void 0;
|
|
13952
13952
|
}
|
|
13953
13953
|
function Y1(t, r) {
|
|
@@ -13972,7 +13972,7 @@ function e2(t) {
|
|
|
13972
13972
|
return r ? Q1(t) : [];
|
|
13973
13973
|
}
|
|
13974
13974
|
function t2(t) {
|
|
13975
|
-
return
|
|
13975
|
+
return eo(cd(t, void 0, e2), t + "");
|
|
13976
13976
|
}
|
|
13977
13977
|
var yd = d1(Object.getPrototypeOf, Object), n2 = "[object Object]", r2 = Function.prototype, i2 = Object.prototype, bd = r2.toString, a2 = i2.hasOwnProperty, s2 = bd.call(Object);
|
|
13978
13978
|
function o2(t) {
|
|
@@ -14032,20 +14032,20 @@ function v2(t, r) {
|
|
|
14032
14032
|
return new t.constructor(e, t.byteOffset, t.length);
|
|
14033
14033
|
}
|
|
14034
14034
|
function y2(t) {
|
|
14035
|
-
return typeof t.constructor == "function" && !ud(t) ?
|
|
14035
|
+
return typeof t.constructor == "function" && !ud(t) ? Yi(yd(t)) : {};
|
|
14036
14036
|
}
|
|
14037
14037
|
function b2(t, r) {
|
|
14038
14038
|
return t != null && r in Object(t);
|
|
14039
14039
|
}
|
|
14040
14040
|
function w2(t, r, e) {
|
|
14041
|
-
r =
|
|
14041
|
+
r = ta(r, t);
|
|
14042
14042
|
for (var n = -1, i = r.length, a = !1; ++n < i; ) {
|
|
14043
|
-
var s =
|
|
14043
|
+
var s = so(r[n]);
|
|
14044
14044
|
if (!(a = t != null && e(t, s)))
|
|
14045
14045
|
break;
|
|
14046
14046
|
t = t[s];
|
|
14047
14047
|
}
|
|
14048
|
-
return a || ++n != i ? a : (i = t == null ? 0 : t.length, !!i &&
|
|
14048
|
+
return a || ++n != i ? a : (i = t == null ? 0 : t.length, !!i && ro(i) && Ir(s, i) && (vt(t) || vr(t)));
|
|
14049
14049
|
}
|
|
14050
14050
|
function k2(t, r) {
|
|
14051
14051
|
return t != null && w2(t, r, b2);
|
|
@@ -14067,13 +14067,13 @@ function Mr(t, r, e) {
|
|
|
14067
14067
|
return n.placeholder = Mr.placeholder, n;
|
|
14068
14068
|
}
|
|
14069
14069
|
Mr.placeholder = {};
|
|
14070
|
-
function
|
|
14071
|
-
(e !== void 0 && !
|
|
14070
|
+
function bs(t, r, e) {
|
|
14071
|
+
(e !== void 0 && !Xi(t[r], e) || e === void 0 && !(r in t)) && no(t, r, e);
|
|
14072
14072
|
}
|
|
14073
14073
|
function x2(t) {
|
|
14074
|
-
return sn(t) &&
|
|
14074
|
+
return sn(t) && io(t);
|
|
14075
14075
|
}
|
|
14076
|
-
function
|
|
14076
|
+
function ws(t, r) {
|
|
14077
14077
|
if (!(r === "constructor" && typeof t[r] == "function") && r != "__proto__")
|
|
14078
14078
|
return t[r];
|
|
14079
14079
|
}
|
|
@@ -14081,25 +14081,25 @@ function E2(t) {
|
|
|
14081
14081
|
return Cv(t, gd(t));
|
|
14082
14082
|
}
|
|
14083
14083
|
function A2(t, r, e, n, i, a, s) {
|
|
14084
|
-
var o =
|
|
14084
|
+
var o = ws(t, e), l = ws(r, e), c = s.get(l);
|
|
14085
14085
|
if (c) {
|
|
14086
|
-
|
|
14086
|
+
bs(t, e, c);
|
|
14087
14087
|
return;
|
|
14088
14088
|
}
|
|
14089
14089
|
var u = a ? a(o, l, e + "", t, r, s) : void 0, d = u === void 0;
|
|
14090
14090
|
if (d) {
|
|
14091
14091
|
var h = vt(l), p = !h && pd(l), f = !h && !p && md(l);
|
|
14092
|
-
u = l, h || p || f ? vt(o) ? u = o : x2(o) ? u =
|
|
14092
|
+
u = l, h || p || f ? vt(o) ? u = o : x2(o) ? u = Qs(o) : p ? (d = !1, u = m2(l)) : f ? (d = !1, u = v2(l)) : u = [] : o2(l) || vr(l) ? (u = o, vr(o) ? u = E2(o) : (!Je(o) || Zs(o)) && (u = y2(l))) : d = !1;
|
|
14093
14093
|
}
|
|
14094
|
-
d && (s.set(l, u), i(u, l, n, a, s), s.delete(l)),
|
|
14094
|
+
d && (s.set(l, u), i(u, l, n, a, s), s.delete(l)), bs(t, e, u);
|
|
14095
14095
|
}
|
|
14096
14096
|
function kd(t, r, e, n, i) {
|
|
14097
14097
|
t !== r && S2(r, function(a, s) {
|
|
14098
14098
|
if (i || (i = new Pn()), Je(a))
|
|
14099
14099
|
A2(t, r, s, e, kd, n, i);
|
|
14100
14100
|
else {
|
|
14101
|
-
var o = n ? n(
|
|
14102
|
-
o === void 0 && (o = a),
|
|
14101
|
+
var o = n ? n(ws(t, s), a, s + "", t, r, i) : void 0;
|
|
14102
|
+
o === void 0 && (o = a), bs(t, s, o);
|
|
14103
14103
|
}
|
|
14104
14104
|
}, gd);
|
|
14105
14105
|
}
|
|
@@ -14109,9 +14109,9 @@ var T2 = Tv(function(t, r, e) {
|
|
|
14109
14109
|
function _d(t, r, e, n) {
|
|
14110
14110
|
if (!Je(t))
|
|
14111
14111
|
return t;
|
|
14112
|
-
r =
|
|
14112
|
+
r = ta(r, t);
|
|
14113
14113
|
for (var i = -1, a = r.length, s = a - 1, o = t; o != null && ++i < a; ) {
|
|
14114
|
-
var l =
|
|
14114
|
+
var l = so(r[i]), c = e;
|
|
14115
14115
|
if (l === "__proto__" || l === "constructor" || l === "prototype")
|
|
14116
14116
|
return t;
|
|
14117
14117
|
if (i != s) {
|
|
@@ -14125,7 +14125,7 @@ function _d(t, r, e, n) {
|
|
|
14125
14125
|
function R2(t, r, e) {
|
|
14126
14126
|
for (var n = -1, i = r.length, a = {}; ++n < i; ) {
|
|
14127
14127
|
var s = r[n], o = Z1(t, s);
|
|
14128
|
-
e(o, s) && _d(a,
|
|
14128
|
+
e(o, s) && _d(a, ta(s, t), o);
|
|
14129
14129
|
}
|
|
14130
14130
|
return a;
|
|
14131
14131
|
}
|
|
@@ -14172,11 +14172,11 @@ const P2 = (t) => (r, e = "16px") => {
|
|
|
14172
14172
|
throw new lt(72, e, t);
|
|
14173
14173
|
return `${n / i}${t}`;
|
|
14174
14174
|
};
|
|
14175
|
-
function
|
|
14175
|
+
function Fa(t) {
|
|
14176
14176
|
return Math.round(t * 255);
|
|
14177
14177
|
}
|
|
14178
14178
|
function $2(t, r, e) {
|
|
14179
|
-
return `${
|
|
14179
|
+
return `${Fa(t)},${Fa(r)},${Fa(e)}`;
|
|
14180
14180
|
}
|
|
14181
14181
|
function ec(t, r, e, n = $2) {
|
|
14182
14182
|
if (r === 0)
|
|
@@ -14380,7 +14380,7 @@ const D2 = Mr(function(t, r, e) {
|
|
|
14380
14380
|
Mr(function(t, r) {
|
|
14381
14381
|
return r === "transparent" ? r : D2(parseFloat(t.toString()), "rgb(0, 0, 0)", r);
|
|
14382
14382
|
});
|
|
14383
|
-
const B2 = /^#[a-fA-F0-9]{6}$/, j2 = /^#[a-fA-F0-9]{8}$/, H2 = /^#[a-fA-F0-9]{3}$/, U2 = /^#[a-fA-F0-9]{4}$/,
|
|
14383
|
+
const B2 = /^#[a-fA-F0-9]{6}$/, j2 = /^#[a-fA-F0-9]{8}$/, H2 = /^#[a-fA-F0-9]{3}$/, U2 = /^#[a-fA-F0-9]{4}$/, Na = /^rgb\(\s*(\d{1,3})\s*(?:,)?\s*(\d{1,3})\s*(?:,)?\s*(\d{1,3})\s*\)$/i, z2 = /^rgb(?:a)?\(\s*(\d{1,3})\s*(?:,)?\s*(\d{1,3})\s*(?:,)?\s*(\d{1,3})\s*(?:,|\/)\s*([-+]?\d*[.]?\d+[%]?)\s*\)$/i, q2 = /^hsl\(\s*(\d{0,3}[.]?[0-9]+(?:deg)?)\s*(?:,)?\s*(\d{1,3}[.]?[0-9]?)%\s*(?:,)?\s*(\d{1,3}[.]?[0-9]?)%\s*\)$/i, V2 = /^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;
|
|
14384
14384
|
function me(t, r, e, n) {
|
|
14385
14385
|
if (typeof t == "string" && typeof r == "number") {
|
|
14386
14386
|
const i = _i(t);
|
|
@@ -14430,7 +14430,7 @@ function _i(t) {
|
|
|
14430
14430
|
alpha: s
|
|
14431
14431
|
};
|
|
14432
14432
|
}
|
|
14433
|
-
const e =
|
|
14433
|
+
const e = Na.exec(r);
|
|
14434
14434
|
if (e)
|
|
14435
14435
|
return {
|
|
14436
14436
|
red: parseInt(`${e[1]}`, 10),
|
|
@@ -14447,7 +14447,7 @@ function _i(t) {
|
|
|
14447
14447
|
};
|
|
14448
14448
|
const i = q2.exec(r);
|
|
14449
14449
|
if (i) {
|
|
14450
|
-
const s = parseInt(`${i[1]}`, 10), o = parseInt(`${i[2]}`, 10) / 100, l = parseInt(`${i[3]}`, 10) / 100, c = `rgb(${ec(s, o, l)})`, u =
|
|
14450
|
+
const s = parseInt(`${i[1]}`, 10), o = parseInt(`${i[2]}`, 10) / 100, l = parseInt(`${i[3]}`, 10) / 100, c = `rgb(${ec(s, o, l)})`, u = Na.exec(c);
|
|
14451
14451
|
if (!u)
|
|
14452
14452
|
throw new lt(4, r, c);
|
|
14453
14453
|
return {
|
|
@@ -14458,7 +14458,7 @@ function _i(t) {
|
|
|
14458
14458
|
}
|
|
14459
14459
|
const a = V2.exec(r.substring(0, 50));
|
|
14460
14460
|
if (a) {
|
|
14461
|
-
const s = parseInt(`${a[1]}`, 10), o = parseInt(`${a[2]}`, 10) / 100, l = parseInt(`${a[3]}`, 10) / 100, c = `rgb(${ec(s, o, l)})`, u =
|
|
14461
|
+
const s = parseInt(`${a[1]}`, 10), o = parseInt(`${a[2]}`, 10) / 100, l = parseInt(`${a[3]}`, 10) / 100, c = `rgb(${ec(s, o, l)})`, u = Na.exec(c);
|
|
14462
14462
|
if (!u)
|
|
14463
14463
|
throw new lt(4, r, c);
|
|
14464
14464
|
return {
|
|
@@ -15450,16 +15450,16 @@ const w = {
|
|
|
15450
15450
|
* Copyright 2019 Google LLC
|
|
15451
15451
|
* SPDX-License-Identifier: BSD-3-Clause
|
|
15452
15452
|
*/
|
|
15453
|
-
const ti = globalThis,
|
|
15453
|
+
const ti = globalThis, oo = ti.ShadowRoot && (ti.ShadyCSS === void 0 || ti.ShadyCSS.nativeShadow) && "adoptedStyleSheets" in Document.prototype && "replace" in CSSStyleSheet.prototype, lo = Symbol(), rc = /* @__PURE__ */ new WeakMap();
|
|
15454
15454
|
let Cd = class {
|
|
15455
15455
|
constructor(r, e, n) {
|
|
15456
|
-
if (this._$cssResult$ = !0, n !==
|
|
15456
|
+
if (this._$cssResult$ = !0, n !== lo) throw Error("CSSResult is not constructable. Use `unsafeCSS` or `css` instead.");
|
|
15457
15457
|
this.cssText = r, this.t = e;
|
|
15458
15458
|
}
|
|
15459
15459
|
get styleSheet() {
|
|
15460
15460
|
let r = this.o;
|
|
15461
15461
|
const e = this.t;
|
|
15462
|
-
if (
|
|
15462
|
+
if (oo && r === void 0) {
|
|
15463
15463
|
const n = e !== void 0 && e.length === 1;
|
|
15464
15464
|
n && (r = rc.get(e)), r === void 0 && ((this.o = r = new CSSStyleSheet()).replaceSync(this.cssText), n && rc.set(e, r));
|
|
15465
15465
|
}
|
|
@@ -15469,20 +15469,20 @@ let Cd = class {
|
|
|
15469
15469
|
return this.cssText;
|
|
15470
15470
|
}
|
|
15471
15471
|
};
|
|
15472
|
-
const k = (t) => new Cd(typeof t == "string" ? t : t + "", void 0,
|
|
15472
|
+
const k = (t) => new Cd(typeof t == "string" ? t : t + "", void 0, lo), _e = (t, ...r) => {
|
|
15473
15473
|
const e = t.length === 1 ? t[0] : r.reduce((n, i, a) => n + ((s) => {
|
|
15474
15474
|
if (s._$cssResult$ === !0) return s.cssText;
|
|
15475
15475
|
if (typeof s == "number") return s;
|
|
15476
15476
|
throw Error("Value passed to 'css' function must be a 'css' function result: " + s + ". Use 'unsafeCSS' to pass non-literal values, but take care to ensure page security.");
|
|
15477
15477
|
})(i) + t[a + 1], t[0]);
|
|
15478
|
-
return new Cd(e, t,
|
|
15478
|
+
return new Cd(e, t, lo);
|
|
15479
15479
|
}, ry = (t, r) => {
|
|
15480
|
-
if (
|
|
15480
|
+
if (oo) t.adoptedStyleSheets = r.map((e) => e instanceof CSSStyleSheet ? e : e.styleSheet);
|
|
15481
15481
|
else for (const e of r) {
|
|
15482
15482
|
const n = document.createElement("style"), i = ti.litNonce;
|
|
15483
15483
|
i !== void 0 && n.setAttribute("nonce", i), n.textContent = e.cssText, t.appendChild(n);
|
|
15484
15484
|
}
|
|
15485
|
-
}, ic =
|
|
15485
|
+
}, ic = oo ? (t) => t : (t) => t instanceof CSSStyleSheet ? ((r) => {
|
|
15486
15486
|
let e = "";
|
|
15487
15487
|
for (const n of r.cssRules) e += n.cssText;
|
|
15488
15488
|
return k(e);
|
|
@@ -15492,7 +15492,7 @@ const k = (t) => new Cd(typeof t == "string" ? t : t + "", void 0, co), _e = (t,
|
|
|
15492
15492
|
* Copyright 2017 Google LLC
|
|
15493
15493
|
* SPDX-License-Identifier: BSD-3-Clause
|
|
15494
15494
|
*/
|
|
15495
|
-
const { is: iy, defineProperty: ay, getOwnPropertyDescriptor: sy, getOwnPropertyNames: oy, getOwnPropertySymbols: ly, getPrototypeOf: cy } = Object, Ct = globalThis, ac = Ct.trustedTypes, uy = ac ? ac.emptyScript : "",
|
|
15495
|
+
const { is: iy, defineProperty: ay, getOwnPropertyDescriptor: sy, getOwnPropertyNames: oy, getOwnPropertySymbols: ly, getPrototypeOf: cy } = Object, Ct = globalThis, ac = Ct.trustedTypes, uy = ac ? ac.emptyScript : "", Da = Ct.reactiveElementPolyfillSupport, ar = (t, r) => t, Si = { toAttribute(t, r) {
|
|
15496
15496
|
switch (r) {
|
|
15497
15497
|
case Boolean:
|
|
15498
15498
|
t = t ? uy : null;
|
|
@@ -15520,7 +15520,7 @@ const { is: iy, defineProperty: ay, getOwnPropertyDescriptor: sy, getOwnProperty
|
|
|
15520
15520
|
}
|
|
15521
15521
|
}
|
|
15522
15522
|
return e;
|
|
15523
|
-
} },
|
|
15523
|
+
} }, na = (t, r) => !iy(t, r), sc = { attribute: !0, type: String, converter: Si, reflect: !1, useDefault: !1, hasChanged: na };
|
|
15524
15524
|
Symbol.metadata ?? (Symbol.metadata = Symbol("metadata")), Ct.litPropertyMetadata ?? (Ct.litPropertyMetadata = /* @__PURE__ */ new WeakMap());
|
|
15525
15525
|
let wn = class extends HTMLElement {
|
|
15526
15526
|
static addInitializer(r) {
|
|
@@ -15649,7 +15649,7 @@ let wn = class extends HTMLElement {
|
|
|
15649
15649
|
var i;
|
|
15650
15650
|
if (r !== void 0) {
|
|
15651
15651
|
const a = this.constructor, s = this[r];
|
|
15652
|
-
if (n ?? (n = a.getPropertyOptions(r)), !((n.hasChanged ??
|
|
15652
|
+
if (n ?? (n = a.getPropertyOptions(r)), !((n.hasChanged ?? na)(s, e) || n.useDefault && n.reflect && s === ((i = this._$Ej) == null ? void 0 : i.get(r)) && !this.hasAttribute(a._$Eu(r, n)))) return;
|
|
15653
15653
|
this.C(r, e, n);
|
|
15654
15654
|
}
|
|
15655
15655
|
this.isUpdatePending === !1 && (this._$ES = this._$EP());
|
|
@@ -15725,17 +15725,17 @@ let wn = class extends HTMLElement {
|
|
|
15725
15725
|
firstUpdated(r) {
|
|
15726
15726
|
}
|
|
15727
15727
|
};
|
|
15728
|
-
wn.elementStyles = [], wn.shadowRootOptions = { mode: "open" }, wn[ar("elementProperties")] = /* @__PURE__ */ new Map(), wn[ar("finalized")] = /* @__PURE__ */ new Map(),
|
|
15728
|
+
wn.elementStyles = [], wn.shadowRootOptions = { mode: "open" }, wn[ar("elementProperties")] = /* @__PURE__ */ new Map(), wn[ar("finalized")] = /* @__PURE__ */ new Map(), Da == null || Da({ ReactiveElement: wn }), (Ct.reactiveElementVersions ?? (Ct.reactiveElementVersions = [])).push("2.1.1");
|
|
15729
15729
|
/**
|
|
15730
15730
|
* @license
|
|
15731
15731
|
* Copyright 2017 Google LLC
|
|
15732
15732
|
* SPDX-License-Identifier: BSD-3-Clause
|
|
15733
15733
|
*/
|
|
15734
|
-
const sr = globalThis, Ci = sr.trustedTypes, oc = Ci ? Ci.createPolicy("lit-html", { createHTML: (t) => t }) : void 0, xd = "$lit$", kt = `lit$${Math.random().toFixed(9).slice(2)}$`, Ed = "?" + kt, dy = `<${Ed}>`, Kt = document, br = () => Kt.createComment(""), wr = (t) => t === null || typeof t != "object" && typeof t != "function",
|
|
15735
|
-
\f\r]`, Un = /<(?:(!--|\/[^a-zA-Z])|(\/?[a-zA-Z][^>\s]*)|(\/?$))/g, lc = /-->/g, cc = />/g, Dt = RegExp(`>|${
|
|
15734
|
+
const sr = globalThis, Ci = sr.trustedTypes, oc = Ci ? Ci.createPolicy("lit-html", { createHTML: (t) => t }) : void 0, xd = "$lit$", kt = `lit$${Math.random().toFixed(9).slice(2)}$`, Ed = "?" + kt, dy = `<${Ed}>`, Kt = document, br = () => Kt.createComment(""), wr = (t) => t === null || typeof t != "object" && typeof t != "function", co = Array.isArray, hy = (t) => co(t) || typeof (t == null ? void 0 : t[Symbol.iterator]) == "function", Ba = `[
|
|
15735
|
+
\f\r]`, Un = /<(?:(!--|\/[^a-zA-Z])|(\/?[a-zA-Z][^>\s]*)|(\/?$))/g, lc = /-->/g, cc = />/g, Dt = RegExp(`>|${Ba}(?:([^\\s"'>=/]+)(${Ba}*=${Ba}*(?:[^
|
|
15736
15736
|
\f\r"'\`<>=]|("|')|))|$)`, "g"), uc = /'/g, dc = /"/g, Ad = /^(?:script|style|textarea|title)$/i, Td = (t) => (r, ...e) => ({ _$litType$: t, strings: r, values: e }), pe = Td(1), et = Td(2), Tt = Symbol.for("lit-noChange"), se = Symbol.for("lit-nothing"), hc = /* @__PURE__ */ new WeakMap(), jt = Kt.createTreeWalker(Kt, 129);
|
|
15737
15737
|
function Rd(t, r) {
|
|
15738
|
-
if (!
|
|
15738
|
+
if (!co(t) || !t.hasOwnProperty("raw")) throw Error("invalid template strings array");
|
|
15739
15739
|
return oc !== void 0 ? oc.createHTML(r) : r;
|
|
15740
15740
|
}
|
|
15741
15741
|
const py = (t, r) => {
|
|
@@ -15750,7 +15750,7 @@ const py = (t, r) => {
|
|
|
15750
15750
|
}
|
|
15751
15751
|
return [Rd(t, a + (t[e] || "<?>") + (r === 2 ? "</svg>" : r === 3 ? "</math>" : "")), n];
|
|
15752
15752
|
};
|
|
15753
|
-
let
|
|
15753
|
+
let ks = class Od {
|
|
15754
15754
|
constructor({ strings: r, _$litType$: e }, n) {
|
|
15755
15755
|
let i;
|
|
15756
15756
|
this.parts = [];
|
|
@@ -15764,7 +15764,7 @@ let _s = class Od {
|
|
|
15764
15764
|
if (i.nodeType === 1) {
|
|
15765
15765
|
if (i.hasAttributes()) for (const d of i.getAttributeNames()) if (d.endsWith(xd)) {
|
|
15766
15766
|
const h = u[s++], p = i.getAttribute(d).split(kt), f = /([.?@])?(.*)/.exec(h);
|
|
15767
|
-
l.push({ type: 1, index: a, name: f[2], strings: p, ctor: f[1] === "." ? my : f[1] === "?" ? gy : f[1] === "@" ? vy :
|
|
15767
|
+
l.push({ type: 1, index: a, name: f[2], strings: p, ctor: f[1] === "." ? my : f[1] === "?" ? gy : f[1] === "@" ? vy : ra }), i.removeAttribute(d);
|
|
15768
15768
|
} else d.startsWith(kt) && (l.push({ type: 6, index: a }), i.removeAttribute(d));
|
|
15769
15769
|
if (Ad.test(i.tagName)) {
|
|
15770
15770
|
const d = i.textContent.split(kt), h = d.length - 1;
|
|
@@ -15855,7 +15855,7 @@ class Pr {
|
|
|
15855
15855
|
}
|
|
15856
15856
|
$(r) {
|
|
15857
15857
|
var a;
|
|
15858
|
-
const { values: e, _$litType$: n } = r, i = typeof n == "number" ? this._$AC(r) : (n.el === void 0 && (n.el =
|
|
15858
|
+
const { values: e, _$litType$: n } = r, i = typeof n == "number" ? this._$AC(r) : (n.el === void 0 && (n.el = ks.createElement(Rd(n.h, n.h[0]), this.options)), n);
|
|
15859
15859
|
if (((a = this._$AH) == null ? void 0 : a._$AD) === i) this._$AH.p(e);
|
|
15860
15860
|
else {
|
|
15861
15861
|
const s = new fy(i, this), o = s.u(this.options);
|
|
@@ -15864,10 +15864,10 @@ class Pr {
|
|
|
15864
15864
|
}
|
|
15865
15865
|
_$AC(r) {
|
|
15866
15866
|
let e = hc.get(r.strings);
|
|
15867
|
-
return e === void 0 && hc.set(r.strings, e = new
|
|
15867
|
+
return e === void 0 && hc.set(r.strings, e = new ks(r)), e;
|
|
15868
15868
|
}
|
|
15869
15869
|
k(r) {
|
|
15870
|
-
|
|
15870
|
+
co(this._$AH) || (this._$AH = [], this._$AR());
|
|
15871
15871
|
const e = this._$AH;
|
|
15872
15872
|
let n, i = 0;
|
|
15873
15873
|
for (const a of r) i === e.length ? e.push(n = new Pr(this.O(br()), this.O(br()), this, this.options)) : n = e[i], n._$AI(a), i++;
|
|
@@ -15885,7 +15885,7 @@ class Pr {
|
|
|
15885
15885
|
this._$AM === void 0 && (this._$Cv = r, (e = this._$AP) == null || e.call(this, r));
|
|
15886
15886
|
}
|
|
15887
15887
|
}
|
|
15888
|
-
class
|
|
15888
|
+
class ra {
|
|
15889
15889
|
get tagName() {
|
|
15890
15890
|
return this.element.tagName;
|
|
15891
15891
|
}
|
|
@@ -15910,7 +15910,7 @@ class ia {
|
|
|
15910
15910
|
r === se ? this.element.removeAttribute(this.name) : this.element.setAttribute(this.name, r ?? "");
|
|
15911
15911
|
}
|
|
15912
15912
|
}
|
|
15913
|
-
class my extends
|
|
15913
|
+
class my extends ra {
|
|
15914
15914
|
constructor() {
|
|
15915
15915
|
super(...arguments), this.type = 3;
|
|
15916
15916
|
}
|
|
@@ -15918,7 +15918,7 @@ class my extends ia {
|
|
|
15918
15918
|
this.element[this.name] = r === se ? void 0 : r;
|
|
15919
15919
|
}
|
|
15920
15920
|
}
|
|
15921
|
-
class gy extends
|
|
15921
|
+
class gy extends ra {
|
|
15922
15922
|
constructor() {
|
|
15923
15923
|
super(...arguments), this.type = 4;
|
|
15924
15924
|
}
|
|
@@ -15926,7 +15926,7 @@ class gy extends ia {
|
|
|
15926
15926
|
this.element.toggleAttribute(this.name, !!r && r !== se);
|
|
15927
15927
|
}
|
|
15928
15928
|
}
|
|
15929
|
-
class vy extends
|
|
15929
|
+
class vy extends ra {
|
|
15930
15930
|
constructor(r, e, n, i, a) {
|
|
15931
15931
|
super(r, e, n, i, a), this.type = 5;
|
|
15932
15932
|
}
|
|
@@ -15951,8 +15951,8 @@ class yy {
|
|
|
15951
15951
|
Tn(this, r);
|
|
15952
15952
|
}
|
|
15953
15953
|
}
|
|
15954
|
-
const
|
|
15955
|
-
|
|
15954
|
+
const ja = sr.litHtmlPolyfillSupport;
|
|
15955
|
+
ja == null || ja(ks, Pr), (sr.litHtmlVersions ?? (sr.litHtmlVersions = [])).push("3.3.1");
|
|
15956
15956
|
const by = (t, r, e) => {
|
|
15957
15957
|
const n = (e == null ? void 0 : e.renderBefore) ?? r;
|
|
15958
15958
|
let i = n._$litPart$;
|
|
@@ -15995,8 +15995,8 @@ let or = class extends wn {
|
|
|
15995
15995
|
};
|
|
15996
15996
|
var lu;
|
|
15997
15997
|
or._$litElement$ = !0, or.finalized = !0, (lu = zt.litElementHydrateSupport) == null || lu.call(zt, { LitElement: or });
|
|
15998
|
-
const
|
|
15999
|
-
|
|
15998
|
+
const Ha = zt.litElementPolyfillSupport;
|
|
15999
|
+
Ha == null || Ha({ LitElement: or });
|
|
16000
16000
|
(zt.litElementVersions ?? (zt.litElementVersions = [])).push("4.2.1");
|
|
16001
16001
|
const wy = _e`
|
|
16002
16002
|
:host {
|
|
@@ -16286,7 +16286,7 @@ const Me = (t) => (r, e) => {
|
|
|
16286
16286
|
* Copyright 2017 Google LLC
|
|
16287
16287
|
* SPDX-License-Identifier: BSD-3-Clause
|
|
16288
16288
|
*/
|
|
16289
|
-
const _y = { attribute: !0, type: String, converter: Si, reflect: !1, hasChanged:
|
|
16289
|
+
const _y = { attribute: !0, type: String, converter: Si, reflect: !1, hasChanged: na }, Sy = (t = _y, r, e) => {
|
|
16290
16290
|
const { kind: n, metadata: i } = e;
|
|
16291
16291
|
let a = globalThis.litPropertyMetadata.get(i);
|
|
16292
16292
|
if (a === void 0 && globalThis.litPropertyMetadata.set(i, a = /* @__PURE__ */ new Map()), n === "setter" && ((t = Object.create(t)).wrapped = !0), a.set(e.name, t), n === "accessor") {
|
|
@@ -16332,8 +16332,8 @@ const Cn = (t) => t ?? se;
|
|
|
16332
16332
|
* Copyright 2017 Google LLC
|
|
16333
16333
|
* SPDX-License-Identifier: BSD-3-Clause
|
|
16334
16334
|
*/
|
|
16335
|
-
const
|
|
16336
|
-
let
|
|
16335
|
+
const ia = { ATTRIBUTE: 1, CHILD: 2 }, aa = (t) => (...r) => ({ _$litDirective$: t, values: r });
|
|
16336
|
+
let uo = class {
|
|
16337
16337
|
constructor(r) {
|
|
16338
16338
|
}
|
|
16339
16339
|
get _$AU() {
|
|
@@ -16354,10 +16354,10 @@ let ho = class {
|
|
|
16354
16354
|
* Copyright 2018 Google LLC
|
|
16355
16355
|
* SPDX-License-Identifier: BSD-3-Clause
|
|
16356
16356
|
*/
|
|
16357
|
-
const
|
|
16357
|
+
const sa = aa(class extends uo {
|
|
16358
16358
|
constructor(t) {
|
|
16359
16359
|
var r;
|
|
16360
|
-
if (super(t), t.type !==
|
|
16360
|
+
if (super(t), t.type !== ia.ATTRIBUTE || t.name !== "class" || ((r = t.strings) == null ? void 0 : r.length) > 2) throw Error("`classMap()` can only be used in the `class` attribute and must be the only part in the attribute.");
|
|
16361
16361
|
}
|
|
16362
16362
|
render(t) {
|
|
16363
16363
|
return " " + Object.keys(t).filter((r) => t[r]).join(" ") + " ";
|
|
@@ -16689,12 +16689,12 @@ function xt(t) {
|
|
|
16689
16689
|
if (t === void 0) throw new ReferenceError("this hasn't been initialised - super() hasn't been called");
|
|
16690
16690
|
return t;
|
|
16691
16691
|
}
|
|
16692
|
-
function
|
|
16693
|
-
return
|
|
16692
|
+
function _s(t, r) {
|
|
16693
|
+
return _s = Object.setPrototypeOf ? Object.setPrototypeOf.bind() : function(e, n) {
|
|
16694
16694
|
return e.__proto__ = n, e;
|
|
16695
|
-
},
|
|
16695
|
+
}, _s(t, r);
|
|
16696
16696
|
}
|
|
16697
|
-
function
|
|
16697
|
+
function oa(t, r) {
|
|
16698
16698
|
if (typeof r != "function" && r !== null) throw new TypeError("Super expression must either be null or a function");
|
|
16699
16699
|
t.prototype = Object.create(r && r.prototype, {
|
|
16700
16700
|
constructor: {
|
|
@@ -16704,7 +16704,7 @@ function la(t, r) {
|
|
|
16704
16704
|
}
|
|
16705
16705
|
}), Object.defineProperty(t, "prototype", {
|
|
16706
16706
|
writable: !1
|
|
16707
|
-
}), r &&
|
|
16707
|
+
}), r && _s(t, r);
|
|
16708
16708
|
}
|
|
16709
16709
|
function $r(t, r) {
|
|
16710
16710
|
if (r && (Ke(r) == "object" || typeof r == "function")) return r;
|
|
@@ -16905,7 +16905,7 @@ function Py(t, r, e) {
|
|
|
16905
16905
|
r[n] && (e[n] = r[n]);
|
|
16906
16906
|
});
|
|
16907
16907
|
}
|
|
16908
|
-
function
|
|
16908
|
+
function ho(t, r, e) {
|
|
16909
16909
|
function n(o) {
|
|
16910
16910
|
return o && o.indexOf("###") > -1 ? o.replace(/###/g, ".") : o;
|
|
16911
16911
|
}
|
|
@@ -16923,15 +16923,15 @@ function po(t, r, e) {
|
|
|
16923
16923
|
};
|
|
16924
16924
|
}
|
|
16925
16925
|
function yc(t, r, e) {
|
|
16926
|
-
var n =
|
|
16926
|
+
var n = ho(t, r, Object), i = n.obj, a = n.k;
|
|
16927
16927
|
i[a] = e;
|
|
16928
16928
|
}
|
|
16929
16929
|
function $y(t, r, e, n) {
|
|
16930
|
-
var i =
|
|
16930
|
+
var i = ho(t, r, Object), a = i.obj, s = i.k;
|
|
16931
16931
|
a[s] = a[s] || [], a[s].push(e);
|
|
16932
16932
|
}
|
|
16933
16933
|
function xi(t, r) {
|
|
16934
|
-
var e =
|
|
16934
|
+
var e = ho(t, r), n = e.obj, i = e.k;
|
|
16935
16935
|
if (n)
|
|
16936
16936
|
return n[i];
|
|
16937
16937
|
}
|
|
@@ -16960,7 +16960,7 @@ function Dy(t) {
|
|
|
16960
16960
|
return Ny[r];
|
|
16961
16961
|
}) : t;
|
|
16962
16962
|
}
|
|
16963
|
-
var
|
|
16963
|
+
var la = typeof window < "u" && window.navigator && typeof window.navigator.userAgentData > "u" && window.navigator.userAgent && window.navigator.userAgent.indexOf("MSIE") > -1, By = [" ", ",", "?", "!", ";"];
|
|
16964
16964
|
function jy(t, r, e) {
|
|
16965
16965
|
r = r || "", e = e || "";
|
|
16966
16966
|
var n = By.filter(function(o) {
|
|
@@ -17044,14 +17044,14 @@ function Uy() {
|
|
|
17044
17044
|
}
|
|
17045
17045
|
}
|
|
17046
17046
|
var zy = function(t) {
|
|
17047
|
-
|
|
17047
|
+
oa(e, t);
|
|
17048
17048
|
var r = Hy(e);
|
|
17049
17049
|
function e(n) {
|
|
17050
17050
|
var i, a = arguments.length > 1 && arguments[1] !== void 0 ? arguments[1] : {
|
|
17051
17051
|
ns: ["translation"],
|
|
17052
17052
|
defaultNS: "translation"
|
|
17053
17053
|
};
|
|
17054
|
-
return ht(this, e), i = r.call(this),
|
|
17054
|
+
return ht(this, e), i = r.call(this), la && Rt.call(xt(i)), i.data = n || {}, i.options = a, i.options.keySeparator === void 0 && (i.options.keySeparator = "."), i.options.ignoreJSONStructure === void 0 && (i.options.ignoreJSONStructure = !0), i;
|
|
17055
17055
|
}
|
|
17056
17056
|
return pt(e, [{
|
|
17057
17057
|
key: "addNamespaces",
|
|
@@ -17192,11 +17192,11 @@ function Vy() {
|
|
|
17192
17192
|
}
|
|
17193
17193
|
}
|
|
17194
17194
|
var kc = {}, _c = function(t) {
|
|
17195
|
-
|
|
17195
|
+
oa(e, t);
|
|
17196
17196
|
var r = qy(e);
|
|
17197
17197
|
function e(n) {
|
|
17198
17198
|
var i, a = arguments.length > 1 && arguments[1] !== void 0 ? arguments[1] : {};
|
|
17199
|
-
return ht(this, e), i = r.call(this),
|
|
17199
|
+
return ht(this, e), i = r.call(this), la && Rt.call(xt(i)), Py(["resourceStore", "languageUtils", "pluralResolver", "interpolator", "backendConnector", "i18nFormat", "utils"], n, xt(i)), i.options = a, i.options.keySeparator === void 0 && (i.options.keySeparator = "."), i.logger = ct.create("translator"), i;
|
|
17200
17200
|
}
|
|
17201
17201
|
return pt(e, [{
|
|
17202
17202
|
key: "changeLanguage",
|
|
@@ -17297,16 +17297,16 @@ var kc = {}, _c = function(t) {
|
|
|
17297
17297
|
}
|
|
17298
17298
|
var $e = [], We = this.languageUtils.getFallbackCodes(this.options.fallbackLng, a.lng || this.language);
|
|
17299
17299
|
if (this.options.saveMissingTo === "fallback" && We && We[0])
|
|
17300
|
-
for (var
|
|
17301
|
-
$e.push(We[
|
|
17300
|
+
for (var ba = 0; ba < We.length; ba++)
|
|
17301
|
+
$e.push(We[ba]);
|
|
17302
17302
|
else this.options.saveMissingTo === "all" ? $e = this.languageUtils.toResolveHierarchy(a.lng || this.language) : $e.push(a.lng || this.language);
|
|
17303
|
-
var Ao = function(ln,
|
|
17303
|
+
var Ao = function(ln, ka, To) {
|
|
17304
17304
|
var Ro = j && To !== b ? To : de;
|
|
17305
|
-
o.options.missingKeyHandler ? o.options.missingKeyHandler(ln, p,
|
|
17305
|
+
o.options.missingKeyHandler ? o.options.missingKeyHandler(ln, p, ka, Ro, ye, a) : o.backendConnector && o.backendConnector.saveMissing && o.backendConnector.saveMissing(ln, p, ka, Ro, ye, a), o.emit("missingKey", ln, p, ka, b);
|
|
17306
17306
|
};
|
|
17307
|
-
this.options.saveMissing && (this.options.saveMissingPlurals && $ ? $e.forEach(function(
|
|
17308
|
-
o.pluralResolver.getSuffixes(
|
|
17309
|
-
Ao([
|
|
17307
|
+
this.options.saveMissing && (this.options.saveMissingPlurals && $ ? $e.forEach(function(wa) {
|
|
17308
|
+
o.pluralResolver.getSuffixes(wa, a).forEach(function(ln) {
|
|
17309
|
+
Ao([wa], d + ln, a["defaultValue".concat(ln)] || z);
|
|
17310
17310
|
});
|
|
17311
17311
|
}) : Ao($e, d, z));
|
|
17312
17312
|
}
|
|
@@ -17410,7 +17410,7 @@ var kc = {}, _c = function(t) {
|
|
|
17410
17410
|
}
|
|
17411
17411
|
}]), e;
|
|
17412
17412
|
}(Rt);
|
|
17413
|
-
function
|
|
17413
|
+
function Ua(t) {
|
|
17414
17414
|
return t.charAt(0).toUpperCase() + t.slice(1);
|
|
17415
17415
|
}
|
|
17416
17416
|
var Sc = function() {
|
|
@@ -17438,7 +17438,7 @@ var Sc = function() {
|
|
|
17438
17438
|
var n = ["hans", "hant", "latn", "cyrl", "cans", "mong", "arab"], i = e.split("-");
|
|
17439
17439
|
return this.options.lowerCaseLng ? i = i.map(function(a) {
|
|
17440
17440
|
return a.toLowerCase();
|
|
17441
|
-
}) : i.length === 2 ? (i[0] = i[0].toLowerCase(), i[1] = i[1].toUpperCase(), n.indexOf(i[1].toLowerCase()) > -1 && (i[1] =
|
|
17441
|
+
}) : i.length === 2 ? (i[0] = i[0].toLowerCase(), i[1] = i[1].toUpperCase(), n.indexOf(i[1].toLowerCase()) > -1 && (i[1] = Ua(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] = Ua(i[1].toLowerCase())), n.indexOf(i[2].toLowerCase()) > -1 && (i[2] = Ua(i[2].toLowerCase()))), i.join("-");
|
|
17442
17442
|
}
|
|
17443
17443
|
return this.options.cleanCode || this.options.lowerCaseLng ? e.toLowerCase() : e;
|
|
17444
17444
|
}
|
|
@@ -18067,11 +18067,11 @@ function nb(t, r) {
|
|
|
18067
18067
|
t.pending[r] !== void 0 && (delete t.pending[r], t.pendingCount--);
|
|
18068
18068
|
}
|
|
18069
18069
|
var rb = function(t) {
|
|
18070
|
-
|
|
18070
|
+
oa(e, t);
|
|
18071
18071
|
var r = eb(e);
|
|
18072
18072
|
function e(n, i, a) {
|
|
18073
18073
|
var s, o = arguments.length > 3 && arguments[3] !== void 0 ? arguments[3] : {};
|
|
18074
|
-
return ht(this, e), s = r.call(this),
|
|
18074
|
+
return ht(this, e), s = r.call(this), la && Rt.call(xt(s)), s.backend = n, s.store = i, s.services = a, s.languageUtils = a.languageUtils, s.options = o, s.logger = ct.create("backendConnector"), s.waitingReads = [], s.maxParallelReads = o.maxParallelReads || 10, s.readingCalls = 0, s.maxRetries = o.maxRetries >= 0 ? o.maxRetries : 5, s.retryTimeout = o.retryTimeout >= 1 ? o.retryTimeout : 350, s.state = {}, s.queue = [], s.backend && s.backend.init && s.backend.init(a, o.backend, o), s;
|
|
18075
18075
|
}
|
|
18076
18076
|
return pt(e, [{
|
|
18077
18077
|
key: "queueLoad",
|
|
@@ -18338,11 +18338,11 @@ function sb(t) {
|
|
|
18338
18338
|
});
|
|
18339
18339
|
}
|
|
18340
18340
|
var Ai = function(t) {
|
|
18341
|
-
|
|
18341
|
+
oa(e, t);
|
|
18342
18342
|
var r = ib(e);
|
|
18343
18343
|
function e() {
|
|
18344
18344
|
var n, i = arguments.length > 0 && arguments[0] !== void 0 ? arguments[0] : {}, a = arguments.length > 1 ? arguments[1] : void 0;
|
|
18345
|
-
if (ht(this, e), n = r.call(this),
|
|
18345
|
+
if (ht(this, e), n = r.call(this), la && Rt.call(xt(n)), n.options = Lc(i), n.services = {}, n.logger = ct, n.modules = {
|
|
18346
18346
|
external: []
|
|
18347
18347
|
}, sb(xt(n)), a && !n.isInitialized && !i.isClone) {
|
|
18348
18348
|
if (!n.options.initImmediate)
|
|
@@ -18655,7 +18655,7 @@ const ob = {
|
|
|
18655
18655
|
* Copyright 2017 Google LLC
|
|
18656
18656
|
* SPDX-License-Identifier: BSD-3-Clause
|
|
18657
18657
|
*/
|
|
18658
|
-
const
|
|
18658
|
+
const za = { INITIAL: 0, PENDING: 1, ERROR: 3 }, lb = Symbol();
|
|
18659
18659
|
let Pd = class {
|
|
18660
18660
|
get taskComplete() {
|
|
18661
18661
|
return this.t || (this.i === 1 ? this.t = new Promise((r, e) => {
|
|
@@ -18746,7 +18746,7 @@ let Pd = class {
|
|
|
18746
18746
|
}
|
|
18747
18747
|
}
|
|
18748
18748
|
};
|
|
18749
|
-
const cb = (t, r) => t === r || t.length === r.length && t.every((e, n) => !
|
|
18749
|
+
const cb = (t, r) => t === r || t.length === r.length && t.every((e, n) => !na(e, r[n]));
|
|
18750
18750
|
class ub extends Pd {
|
|
18751
18751
|
constructor(r, e, n, i = !1) {
|
|
18752
18752
|
super(r, {
|
|
@@ -18923,7 +18923,7 @@ function fb() {
|
|
|
18923
18923
|
return qn;
|
|
18924
18924
|
}
|
|
18925
18925
|
var mb = fb();
|
|
18926
|
-
const
|
|
18926
|
+
const qa = {
|
|
18927
18927
|
be: ["fr-BE", "nl-BE"],
|
|
18928
18928
|
ch: ["fr-CH", "de-CH", "it-CH", "en-CH"],
|
|
18929
18929
|
com: ["en-GB", "fr-FR", "de-DE", "da-DK", "nb-NO", "pl-PL", "sv-SE"],
|
|
@@ -18936,7 +18936,7 @@ const Va = {
|
|
|
18936
18936
|
pt: "pt-PT",
|
|
18937
18937
|
ru: "ru-RU",
|
|
18938
18938
|
uk: "en-GB"
|
|
18939
|
-
},
|
|
18939
|
+
}, Va = {
|
|
18940
18940
|
be: [],
|
|
18941
18941
|
ch: [],
|
|
18942
18942
|
com: ["da-DK", "nb-NO", "pl-PL", "sv-SE"],
|
|
@@ -18988,7 +18988,7 @@ function yb(t, r, e = {}) {
|
|
|
18988
18988
|
}
|
|
18989
18989
|
return null;
|
|
18990
18990
|
}
|
|
18991
|
-
const on = (t) => (Array.isArray(
|
|
18991
|
+
const on = (t) => (Array.isArray(qa[t]) ? qa[t] : [qa[t]]).filter((e) => !!e), bb = (t) => (Array.isArray(Va[t]) ? Va[t] : [Va[t]]).filter((e) => !!e), wb = (t, r) => !!on(t).find((n) => n === r), Ss = (t, r) => !!bb(t).find((n) => n === r), kb = (t, r) => {
|
|
18992
18992
|
if (!t) return null;
|
|
18993
18993
|
const e = on(r);
|
|
18994
18994
|
return yb(e, t);
|
|
@@ -19002,7 +19002,7 @@ const on = (t) => (Array.isArray(Va[t]) ? Va[t] : [Va[t]]).filter((e) => !!e), b
|
|
|
19002
19002
|
if (!t || !r) return null;
|
|
19003
19003
|
const e = t.match(/^\/([a-z]{2})(\/|$)/i), n = (a = e == null ? void 0 : e[1]) == null ? void 0 : a.toLowerCase();
|
|
19004
19004
|
return n ? on(r).find((s) => s.toLowerCase().startsWith(n)) ?? null : null;
|
|
19005
|
-
}, Cb = (t, r) => on(r).find((i) => i.toLowerCase().startsWith(`${t}-${r}`.toLowerCase())), xb = (t, r) => on(r).filter((i) =>
|
|
19005
|
+
}, Cb = (t, r) => on(r).find((i) => i.toLowerCase().startsWith(`${t}-${r}`.toLowerCase())), xb = (t, r) => on(r).filter((i) => Ss(r, i)).find((i) => i.toLowerCase() === t.toLowerCase()), Eb = (t) => {
|
|
19006
19006
|
const r = on(t);
|
|
19007
19007
|
return r.length > 0 ? r[0] : "fr-FR";
|
|
19008
19008
|
}, Ab = (t) => {
|
|
@@ -19029,10 +19029,10 @@ function $d(t, r) {
|
|
|
19029
19029
|
return t.apply(r, arguments);
|
|
19030
19030
|
};
|
|
19031
19031
|
}
|
|
19032
|
-
const { toString: Tb } = Object.prototype, { getPrototypeOf:
|
|
19032
|
+
const { toString: Tb } = Object.prototype, { getPrototypeOf: po } = Object, { iterator: ca, toStringTag: Fd } = Symbol, ua = /* @__PURE__ */ ((t) => (r) => {
|
|
19033
19033
|
const e = Tb.call(r);
|
|
19034
19034
|
return t[e] || (t[e] = e.slice(8, -1).toLowerCase());
|
|
19035
|
-
})(/* @__PURE__ */ Object.create(null)), tt = (t) => (t = t.toLowerCase(), (r) =>
|
|
19035
|
+
})(/* @__PURE__ */ Object.create(null)), tt = (t) => (t = t.toLowerCase(), (r) => ua(r) === t), da = (t) => (r) => typeof r === t, { isArray: $n } = Array, kr = da("undefined");
|
|
19036
19036
|
function Rb(t) {
|
|
19037
19037
|
return t !== null && !kr(t) && t.constructor !== null && !kr(t.constructor) && De(t.constructor.isBuffer) && t.constructor.isBuffer(t);
|
|
19038
19038
|
}
|
|
@@ -19041,14 +19041,14 @@ function Ob(t) {
|
|
|
19041
19041
|
let r;
|
|
19042
19042
|
return typeof ArrayBuffer < "u" && ArrayBuffer.isView ? r = ArrayBuffer.isView(t) : r = t && t.buffer && Nd(t.buffer), r;
|
|
19043
19043
|
}
|
|
19044
|
-
const Lb =
|
|
19045
|
-
if (
|
|
19044
|
+
const Lb = da("string"), De = da("function"), Dd = da("number"), ha = (t) => t !== null && typeof t == "object", Ib = (t) => t === !0 || t === !1, ni = (t) => {
|
|
19045
|
+
if (ua(t) !== "object")
|
|
19046
19046
|
return !1;
|
|
19047
|
-
const r =
|
|
19048
|
-
return (r === null || r === Object.prototype || Object.getPrototypeOf(r) === null) && !(Fd in t) && !(
|
|
19049
|
-
}, Mb = tt("Date"), Pb = tt("File"), $b = tt("Blob"), Fb = tt("FileList"), Nb = (t) =>
|
|
19047
|
+
const r = po(t);
|
|
19048
|
+
return (r === null || r === Object.prototype || Object.getPrototypeOf(r) === null) && !(Fd in t) && !(ca in t);
|
|
19049
|
+
}, Mb = tt("Date"), Pb = tt("File"), $b = tt("Blob"), Fb = tt("FileList"), Nb = (t) => ha(t) && De(t.pipe), Db = (t) => {
|
|
19050
19050
|
let r;
|
|
19051
|
-
return t && (typeof FormData == "function" && t instanceof FormData || De(t.append) && ((r =
|
|
19051
|
+
return t && (typeof FormData == "function" && t instanceof FormData || De(t.append) && ((r = ua(t)) === "formdata" || // detect form-data instance
|
|
19052
19052
|
r === "object" && De(t.toString) && t.toString() === "[object FormData]"));
|
|
19053
19053
|
}, Bb = tt("URLSearchParams"), [jb, Hb, Ub, zb] = ["ReadableStream", "Request", "Response", "Headers"].map(tt), qb = (t) => t.trim ? t.trim() : t.replace(/^[\s\uFEFF\xA0]+|[\s\uFEFF\xA0]+$/g, "");
|
|
19054
19054
|
function Fr(t, r, { allOwnKeys: e = !1 } = {}) {
|
|
@@ -19075,10 +19075,10 @@ function Bd(t, r) {
|
|
|
19075
19075
|
return null;
|
|
19076
19076
|
}
|
|
19077
19077
|
const Ht = typeof globalThis < "u" ? globalThis : typeof self < "u" ? self : typeof window < "u" ? window : global, jd = (t) => !kr(t) && t !== Ht;
|
|
19078
|
-
function
|
|
19078
|
+
function Cs() {
|
|
19079
19079
|
const { caseless: t } = jd(this) && this || {}, r = {}, e = (n, i) => {
|
|
19080
19080
|
const a = t && Bd(r, i) || i;
|
|
19081
|
-
ni(r[a]) && ni(n) ? r[a] =
|
|
19081
|
+
ni(r[a]) && ni(n) ? r[a] = Cs(r[a], n) : ni(n) ? r[a] = Cs({}, n) : $n(n) ? r[a] = n.slice() : r[a] = n;
|
|
19082
19082
|
};
|
|
19083
19083
|
for (let n = 0, i = arguments.length; n < i; n++)
|
|
19084
19084
|
arguments[n] && Fr(arguments[n], e);
|
|
@@ -19097,7 +19097,7 @@ const Vb = (t, r, e, { allOwnKeys: n } = {}) => (Fr(r, (i, a) => {
|
|
|
19097
19097
|
do {
|
|
19098
19098
|
for (i = Object.getOwnPropertyNames(t), a = i.length; a-- > 0; )
|
|
19099
19099
|
s = i[a], (!n || n(s, t, r)) && !o[s] && (r[s] = t[s], o[s] = !0);
|
|
19100
|
-
t = e !== !1 &&
|
|
19100
|
+
t = e !== !1 && po(t);
|
|
19101
19101
|
} while (t && (!e || e(t, r)) && t !== Object.prototype);
|
|
19102
19102
|
return r;
|
|
19103
19103
|
}, Jb = (t, r, e) => {
|
|
@@ -19113,8 +19113,8 @@ const Vb = (t, r, e, { allOwnKeys: n } = {}) => (Fr(r, (i, a) => {
|
|
|
19113
19113
|
for (; r-- > 0; )
|
|
19114
19114
|
e[r] = t[r];
|
|
19115
19115
|
return e;
|
|
19116
|
-
}, Yb = /* @__PURE__ */ ((t) => (r) => t && r instanceof t)(typeof Uint8Array < "u" &&
|
|
19117
|
-
const n = (t && t[
|
|
19116
|
+
}, Yb = /* @__PURE__ */ ((t) => (r) => t && r instanceof t)(typeof Uint8Array < "u" && po(Uint8Array)), Xb = (t, r) => {
|
|
19117
|
+
const n = (t && t[ca]).call(t);
|
|
19118
19118
|
let i;
|
|
19119
19119
|
for (; (i = n.next()) && !i.done; ) {
|
|
19120
19120
|
const a = i.value;
|
|
@@ -19162,11 +19162,11 @@ const Vb = (t, r, e, { allOwnKeys: n } = {}) => (Fr(r, (i, a) => {
|
|
|
19162
19162
|
}, a3 = () => {
|
|
19163
19163
|
}, s3 = (t, r) => t != null && Number.isFinite(t = +t) ? t : r;
|
|
19164
19164
|
function o3(t) {
|
|
19165
|
-
return !!(t && De(t.append) && t[Fd] === "FormData" && t[
|
|
19165
|
+
return !!(t && De(t.append) && t[Fd] === "FormData" && t[ca]);
|
|
19166
19166
|
}
|
|
19167
19167
|
const l3 = (t) => {
|
|
19168
19168
|
const r = new Array(10), e = (n, i) => {
|
|
19169
|
-
if (
|
|
19169
|
+
if (ha(n)) {
|
|
19170
19170
|
if (r.indexOf(n) >= 0)
|
|
19171
19171
|
return;
|
|
19172
19172
|
if (!("toJSON" in n)) {
|
|
@@ -19181,14 +19181,14 @@ const l3 = (t) => {
|
|
|
19181
19181
|
return n;
|
|
19182
19182
|
};
|
|
19183
19183
|
return e(t, 0);
|
|
19184
|
-
}, c3 = tt("AsyncFunction"), u3 = (t) => t && (
|
|
19184
|
+
}, c3 = tt("AsyncFunction"), u3 = (t) => t && (ha(t) || De(t)) && De(t.then) && De(t.catch), Ud = ((t, r) => t ? setImmediate : r ? ((e, n) => (Ht.addEventListener("message", ({ source: i, data: a }) => {
|
|
19185
19185
|
i === Ht && a === e && n.length && n.shift()();
|
|
19186
19186
|
}, !1), (i) => {
|
|
19187
19187
|
n.push(i), Ht.postMessage(e, "*");
|
|
19188
19188
|
}))(`axios@${Math.random()}`, []) : (e) => setTimeout(e))(
|
|
19189
19189
|
typeof setImmediate == "function",
|
|
19190
19190
|
De(Ht.postMessage)
|
|
19191
|
-
), d3 = typeof queueMicrotask < "u" ? queueMicrotask.bind(Ht) : typeof process < "u" && process.nextTick || Ud, h3 = (t) => t != null && De(t[
|
|
19191
|
+
), d3 = typeof queueMicrotask < "u" ? queueMicrotask.bind(Ht) : typeof process < "u" && process.nextTick || Ud, h3 = (t) => t != null && De(t[ca]), x = {
|
|
19192
19192
|
isArray: $n,
|
|
19193
19193
|
isArrayBuffer: Nd,
|
|
19194
19194
|
isBuffer: Rb,
|
|
@@ -19197,7 +19197,7 @@ const l3 = (t) => {
|
|
|
19197
19197
|
isString: Lb,
|
|
19198
19198
|
isNumber: Dd,
|
|
19199
19199
|
isBoolean: Ib,
|
|
19200
|
-
isObject:
|
|
19200
|
+
isObject: ha,
|
|
19201
19201
|
isPlainObject: ni,
|
|
19202
19202
|
isReadableStream: jb,
|
|
19203
19203
|
isRequest: Hb,
|
|
@@ -19214,13 +19214,13 @@ const l3 = (t) => {
|
|
|
19214
19214
|
isTypedArray: Yb,
|
|
19215
19215
|
isFileList: Fb,
|
|
19216
19216
|
forEach: Fr,
|
|
19217
|
-
merge:
|
|
19217
|
+
merge: Cs,
|
|
19218
19218
|
extend: Vb,
|
|
19219
19219
|
trim: qb,
|
|
19220
19220
|
stripBOM: Wb,
|
|
19221
19221
|
inherits: Gb,
|
|
19222
19222
|
toFlatObject: Kb,
|
|
19223
|
-
kindOf:
|
|
19223
|
+
kindOf: ua,
|
|
19224
19224
|
kindOfTest: tt,
|
|
19225
19225
|
endsWith: Jb,
|
|
19226
19226
|
toArray: Zb,
|
|
@@ -19298,7 +19298,7 @@ X.from = (t, r, e, n, i, a) => {
|
|
|
19298
19298
|
}, (o) => o !== "isAxiosError"), X.call(s, t.message, r, e, n, i), s.cause = t, s.name = t.name, a && Object.assign(s, a), s;
|
|
19299
19299
|
};
|
|
19300
19300
|
const p3 = null;
|
|
19301
|
-
function
|
|
19301
|
+
function xs(t) {
|
|
19302
19302
|
return x.isPlainObject(t) || x.isArray(t);
|
|
19303
19303
|
}
|
|
19304
19304
|
function Vd(t) {
|
|
@@ -19310,12 +19310,12 @@ function Fc(t, r, e) {
|
|
|
19310
19310
|
}).join(e ? "." : "") : r;
|
|
19311
19311
|
}
|
|
19312
19312
|
function f3(t) {
|
|
19313
|
-
return x.isArray(t) && !t.some(
|
|
19313
|
+
return x.isArray(t) && !t.some(xs);
|
|
19314
19314
|
}
|
|
19315
19315
|
const m3 = x.toFlatObject(x, {}, null, function(r) {
|
|
19316
19316
|
return /^is[A-Z]/.test(r);
|
|
19317
19317
|
});
|
|
19318
|
-
function
|
|
19318
|
+
function pa(t, r, e) {
|
|
19319
19319
|
if (!x.isObject(t))
|
|
19320
19320
|
throw new TypeError("target must be an object");
|
|
19321
19321
|
r = r || new FormData(), e = x.toFlatObject(e, {
|
|
@@ -19350,12 +19350,12 @@ function fa(t, r, e) {
|
|
|
19350
19350
|
);
|
|
19351
19351
|
}), !1;
|
|
19352
19352
|
}
|
|
19353
|
-
return
|
|
19353
|
+
return xs(f) ? !0 : (r.append(Fc(g, y, a), c(f)), !1);
|
|
19354
19354
|
}
|
|
19355
19355
|
const d = [], h = Object.assign(m3, {
|
|
19356
19356
|
defaultVisitor: u,
|
|
19357
19357
|
convertValue: c,
|
|
19358
|
-
isVisitable:
|
|
19358
|
+
isVisitable: xs
|
|
19359
19359
|
});
|
|
19360
19360
|
function p(f, y) {
|
|
19361
19361
|
if (!x.isUndefined(f)) {
|
|
@@ -19390,10 +19390,10 @@ function Nc(t) {
|
|
|
19390
19390
|
return r[n];
|
|
19391
19391
|
});
|
|
19392
19392
|
}
|
|
19393
|
-
function
|
|
19394
|
-
this._pairs = [], t &&
|
|
19393
|
+
function fo(t, r) {
|
|
19394
|
+
this._pairs = [], t && pa(t, this, r);
|
|
19395
19395
|
}
|
|
19396
|
-
const Wd =
|
|
19396
|
+
const Wd = fo.prototype;
|
|
19397
19397
|
Wd.append = function(r, e) {
|
|
19398
19398
|
this._pairs.push([r, e]);
|
|
19399
19399
|
};
|
|
@@ -19417,7 +19417,7 @@ function Gd(t, r, e) {
|
|
|
19417
19417
|
});
|
|
19418
19418
|
const i = e && e.serialize;
|
|
19419
19419
|
let a;
|
|
19420
|
-
if (i ? a = i(r, e) : a = x.isURLSearchParams(r) ? r.toString() : new
|
|
19420
|
+
if (i ? a = i(r, e) : a = x.isURLSearchParams(r) ? r.toString() : new fo(r, e).toString(n), a) {
|
|
19421
19421
|
const s = t.indexOf("#");
|
|
19422
19422
|
s !== -1 && (t = t.slice(0, s)), t += (t.indexOf("?") === -1 ? "?" : "&") + a;
|
|
19423
19423
|
}
|
|
@@ -19481,7 +19481,7 @@ const Kd = {
|
|
|
19481
19481
|
silentJSONParsing: !0,
|
|
19482
19482
|
forcedJSONParsing: !0,
|
|
19483
19483
|
clarifyTimeoutError: !1
|
|
19484
|
-
}, v3 = typeof URLSearchParams < "u" ? URLSearchParams :
|
|
19484
|
+
}, v3 = typeof URLSearchParams < "u" ? URLSearchParams : fo, y3 = typeof FormData < "u" ? FormData : null, b3 = typeof Blob < "u" ? Blob : null, w3 = {
|
|
19485
19485
|
isBrowser: !0,
|
|
19486
19486
|
classes: {
|
|
19487
19487
|
URLSearchParams: v3,
|
|
@@ -19489,20 +19489,20 @@ const Kd = {
|
|
|
19489
19489
|
Blob: b3
|
|
19490
19490
|
},
|
|
19491
19491
|
protocols: ["http", "https", "file", "blob", "url", "data"]
|
|
19492
|
-
},
|
|
19493
|
-
self instanceof WorkerGlobalScope && typeof self.importScripts == "function", S3 =
|
|
19492
|
+
}, mo = typeof window < "u" && typeof document < "u", Es = typeof navigator == "object" && navigator || void 0, k3 = mo && (!Es || ["ReactNative", "NativeScript", "NS"].indexOf(Es.product) < 0), _3 = typeof WorkerGlobalScope < "u" && // eslint-disable-next-line no-undef
|
|
19493
|
+
self instanceof WorkerGlobalScope && typeof self.importScripts == "function", S3 = mo && window.location.href || "http://localhost", C3 = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineProperty({
|
|
19494
19494
|
__proto__: null,
|
|
19495
|
-
hasBrowserEnv:
|
|
19495
|
+
hasBrowserEnv: mo,
|
|
19496
19496
|
hasStandardBrowserEnv: k3,
|
|
19497
19497
|
hasStandardBrowserWebWorkerEnv: _3,
|
|
19498
|
-
navigator:
|
|
19498
|
+
navigator: Es,
|
|
19499
19499
|
origin: S3
|
|
19500
19500
|
}, Symbol.toStringTag, { value: "Module" })), Oe = {
|
|
19501
19501
|
...C3,
|
|
19502
19502
|
...w3
|
|
19503
19503
|
};
|
|
19504
19504
|
function x3(t, r) {
|
|
19505
|
-
return
|
|
19505
|
+
return pa(t, new Oe.classes.URLSearchParams(), Object.assign({
|
|
19506
19506
|
visitor: function(e, n, i, a) {
|
|
19507
19507
|
return Oe.isNode && x.isBuffer(e) ? (this.append(n, e.toString("base64")), !1) : a.defaultVisitor.apply(this, arguments);
|
|
19508
19508
|
}
|
|
@@ -19564,7 +19564,7 @@ const Nr = {
|
|
|
19564
19564
|
return x3(r, this.formSerializer).toString();
|
|
19565
19565
|
if ((o = x.isFileList(r)) || n.indexOf("multipart/form-data") > -1) {
|
|
19566
19566
|
const l = this.env && this.env.FormData;
|
|
19567
|
-
return
|
|
19567
|
+
return pa(
|
|
19568
19568
|
o ? { "files[]": r } : r,
|
|
19569
19569
|
l && new l(),
|
|
19570
19570
|
this.formSerializer
|
|
@@ -19654,7 +19654,7 @@ function L3(t) {
|
|
|
19654
19654
|
return r;
|
|
19655
19655
|
}
|
|
19656
19656
|
const I3 = (t) => /^[-_a-zA-Z0-9^`|~,!#$%&'*+.]+$/.test(t.trim());
|
|
19657
|
-
function
|
|
19657
|
+
function Wa(t, r, e, n, i) {
|
|
19658
19658
|
if (x.isFunction(n))
|
|
19659
19659
|
return n.call(this, r, e);
|
|
19660
19660
|
if (i && (r = e), !!x.isString(r)) {
|
|
@@ -19728,7 +19728,7 @@ let Be = class {
|
|
|
19728
19728
|
has(r, e) {
|
|
19729
19729
|
if (r = Vn(r), r) {
|
|
19730
19730
|
const n = x.findKey(this, r);
|
|
19731
|
-
return !!(n && this[n] !== void 0 && (!e ||
|
|
19731
|
+
return !!(n && this[n] !== void 0 && (!e || Wa(this, this[n], n, e)));
|
|
19732
19732
|
}
|
|
19733
19733
|
return !1;
|
|
19734
19734
|
}
|
|
@@ -19738,7 +19738,7 @@ let Be = class {
|
|
|
19738
19738
|
function a(s) {
|
|
19739
19739
|
if (s = Vn(s), s) {
|
|
19740
19740
|
const o = x.findKey(n, s);
|
|
19741
|
-
o && (!e ||
|
|
19741
|
+
o && (!e || Wa(n, n[o], o, e)) && (delete n[o], i = !0);
|
|
19742
19742
|
}
|
|
19743
19743
|
}
|
|
19744
19744
|
return x.isArray(r) ? r.forEach(a) : a(r), i;
|
|
@@ -19748,7 +19748,7 @@ let Be = class {
|
|
|
19748
19748
|
let n = e.length, i = !1;
|
|
19749
19749
|
for (; n--; ) {
|
|
19750
19750
|
const a = e[n];
|
|
19751
|
-
(!r ||
|
|
19751
|
+
(!r || Wa(this, this[a], a, r, !0)) && (delete this[a], i = !0);
|
|
19752
19752
|
}
|
|
19753
19753
|
return i;
|
|
19754
19754
|
}
|
|
@@ -19815,7 +19815,7 @@ x.reduceDescriptors(Be.prototype, ({ value: t }, r) => {
|
|
|
19815
19815
|
};
|
|
19816
19816
|
});
|
|
19817
19817
|
x.freezeMethods(Be);
|
|
19818
|
-
function
|
|
19818
|
+
function Ga(t, r) {
|
|
19819
19819
|
const e = this || Nr, n = r || e, i = Be.from(n.headers);
|
|
19820
19820
|
let a = n.data;
|
|
19821
19821
|
return x.forEach(t, function(o) {
|
|
@@ -20162,7 +20162,7 @@ const Qd = (t) => {
|
|
|
20162
20162
|
}, {
|
|
20163
20163
|
highWaterMark: 2
|
|
20164
20164
|
});
|
|
20165
|
-
},
|
|
20165
|
+
}, fa = typeof fetch == "function" && typeof Request == "function" && typeof Response == "function", eh = fa && typeof ReadableStream == "function", K3 = fa && (typeof TextEncoder == "function" ? /* @__PURE__ */ ((t) => (r) => t.encode(r))(new TextEncoder()) : async (t) => new Uint8Array(await new Response(t).arrayBuffer())), th = (t, ...r) => {
|
|
20166
20166
|
try {
|
|
20167
20167
|
return !!t(...r);
|
|
20168
20168
|
} catch {
|
|
@@ -20178,10 +20178,10 @@ const Qd = (t) => {
|
|
|
20178
20178
|
}
|
|
20179
20179
|
}).headers.has("Content-Type");
|
|
20180
20180
|
return t && !r;
|
|
20181
|
-
}), qc = 64 * 1024,
|
|
20182
|
-
stream:
|
|
20181
|
+
}), qc = 64 * 1024, As = eh && th(() => x.isReadableStream(new Response("").body)), Ri = {
|
|
20182
|
+
stream: As && ((t) => t.body)
|
|
20183
20183
|
};
|
|
20184
|
-
|
|
20184
|
+
fa && ((t) => {
|
|
20185
20185
|
["text", "arrayBuffer", "blob", "formData", "stream"].forEach((r) => {
|
|
20186
20186
|
!Ri[r] && (Ri[r] = x.isFunction(t[r]) ? (e) => e[r]() : (e, n) => {
|
|
20187
20187
|
throw new X(`Response type '${r}' is not supported`, X.ERR_NOT_SUPPORT, n);
|
|
@@ -20205,7 +20205,7 @@ const Z3 = async (t) => {
|
|
|
20205
20205
|
}, Y3 = async (t, r) => {
|
|
20206
20206
|
const e = x.toFiniteNumber(t.getContentLength());
|
|
20207
20207
|
return e ?? Z3(r);
|
|
20208
|
-
}, X3 =
|
|
20208
|
+
}, X3 = fa && (async (t) => {
|
|
20209
20209
|
let {
|
|
20210
20210
|
url: r,
|
|
20211
20211
|
method: e,
|
|
@@ -20253,8 +20253,8 @@ const Z3 = async (t) => {
|
|
|
20253
20253
|
credentials: v ? d : void 0
|
|
20254
20254
|
});
|
|
20255
20255
|
let b = await fetch(f);
|
|
20256
|
-
const C =
|
|
20257
|
-
if (
|
|
20256
|
+
const C = As && (c === "stream" || c === "response");
|
|
20257
|
+
if (As && (o || C && y)) {
|
|
20258
20258
|
const A = {};
|
|
20259
20259
|
["status", "statusText", "headers"].forEach((le) => {
|
|
20260
20260
|
A[le] = b[le];
|
|
@@ -20290,12 +20290,12 @@ const Z3 = async (t) => {
|
|
|
20290
20290
|
}
|
|
20291
20291
|
) : X.from(v, v && v.code, t, f);
|
|
20292
20292
|
}
|
|
20293
|
-
}),
|
|
20293
|
+
}), Ts = {
|
|
20294
20294
|
http: p3,
|
|
20295
20295
|
xhr: z3,
|
|
20296
20296
|
fetch: X3
|
|
20297
20297
|
};
|
|
20298
|
-
x.forEach(
|
|
20298
|
+
x.forEach(Ts, (t, r) => {
|
|
20299
20299
|
if (t) {
|
|
20300
20300
|
try {
|
|
20301
20301
|
Object.defineProperty(t, "name", { value: r });
|
|
@@ -20313,7 +20313,7 @@ const Vc = (t) => `- ${t}`, Q3 = (t) => x.isFunction(t) || t === null || t === !
|
|
|
20313
20313
|
for (let a = 0; a < r; a++) {
|
|
20314
20314
|
e = t[a];
|
|
20315
20315
|
let s;
|
|
20316
|
-
if (n = e, !Q3(e) && (n =
|
|
20316
|
+
if (n = e, !Q3(e) && (n = Ts[(s = String(e)).toLowerCase()], n === void 0))
|
|
20317
20317
|
throw new X(`Unknown adapter '${s}'`);
|
|
20318
20318
|
if (n)
|
|
20319
20319
|
break;
|
|
@@ -20333,38 +20333,38 @@ const Vc = (t) => `- ${t}`, Q3 = (t) => x.isFunction(t) || t === null || t === !
|
|
|
20333
20333
|
}
|
|
20334
20334
|
return n;
|
|
20335
20335
|
},
|
|
20336
|
-
adapters:
|
|
20336
|
+
adapters: Ts
|
|
20337
20337
|
};
|
|
20338
|
-
function
|
|
20338
|
+
function Ka(t) {
|
|
20339
20339
|
if (t.cancelToken && t.cancelToken.throwIfRequested(), t.signal && t.signal.aborted)
|
|
20340
20340
|
throw new Fn(null, t);
|
|
20341
20341
|
}
|
|
20342
20342
|
function Wc(t) {
|
|
20343
|
-
return
|
|
20343
|
+
return Ka(t), t.headers = Be.from(t.headers), t.data = Ga.call(
|
|
20344
20344
|
t,
|
|
20345
20345
|
t.transformRequest
|
|
20346
20346
|
), ["post", "put", "patch"].indexOf(t.method) !== -1 && t.headers.setContentType("application/x-www-form-urlencoded", !1), nh.getAdapter(t.adapter || Nr.adapter)(t).then(function(n) {
|
|
20347
|
-
return
|
|
20347
|
+
return Ka(t), n.data = Ga.call(
|
|
20348
20348
|
t,
|
|
20349
20349
|
t.transformResponse,
|
|
20350
20350
|
n
|
|
20351
20351
|
), n.headers = Be.from(n.headers), n;
|
|
20352
20352
|
}, function(n) {
|
|
20353
|
-
return Zd(n) || (
|
|
20353
|
+
return Zd(n) || (Ka(t), n && n.response && (n.response.data = Ga.call(
|
|
20354
20354
|
t,
|
|
20355
20355
|
t.transformResponse,
|
|
20356
20356
|
n.response
|
|
20357
20357
|
), n.response.headers = Be.from(n.response.headers))), Promise.reject(n);
|
|
20358
20358
|
});
|
|
20359
20359
|
}
|
|
20360
|
-
const rh = "1.9.0",
|
|
20360
|
+
const rh = "1.9.0", ma = {};
|
|
20361
20361
|
["object", "boolean", "number", "function", "string", "symbol"].forEach((t, r) => {
|
|
20362
|
-
|
|
20362
|
+
ma[t] = function(n) {
|
|
20363
20363
|
return typeof n === t || "a" + (r < 1 ? "n " : " ") + t;
|
|
20364
20364
|
};
|
|
20365
20365
|
});
|
|
20366
20366
|
const Gc = {};
|
|
20367
|
-
|
|
20367
|
+
ma.transitional = function(r, e, n) {
|
|
20368
20368
|
function i(a, s) {
|
|
20369
20369
|
return "[Axios v" + rh + "] Transitional option '" + a + "'" + s + (n ? ". " + n : "");
|
|
20370
20370
|
}
|
|
@@ -20382,7 +20382,7 @@ ga.transitional = function(r, e, n) {
|
|
|
20382
20382
|
)), r ? r(a, s, o) : !0;
|
|
20383
20383
|
};
|
|
20384
20384
|
};
|
|
20385
|
-
|
|
20385
|
+
ma.spelling = function(r) {
|
|
20386
20386
|
return (e, n) => (console.warn(`${n} is likely a misspelling of ${r}`), !0);
|
|
20387
20387
|
};
|
|
20388
20388
|
function ew(t, r, e) {
|
|
@@ -20404,7 +20404,7 @@ function ew(t, r, e) {
|
|
|
20404
20404
|
}
|
|
20405
20405
|
const ii = {
|
|
20406
20406
|
assertOptions: ew,
|
|
20407
|
-
validators:
|
|
20407
|
+
validators: ma
|
|
20408
20408
|
}, st = ii.validators;
|
|
20409
20409
|
let qt = class {
|
|
20410
20410
|
constructor(r) {
|
|
@@ -20611,7 +20611,7 @@ function nw(t) {
|
|
|
20611
20611
|
function rw(t) {
|
|
20612
20612
|
return x.isObject(t) && t.isAxiosError === !0;
|
|
20613
20613
|
}
|
|
20614
|
-
const
|
|
20614
|
+
const Rs = {
|
|
20615
20615
|
Continue: 100,
|
|
20616
20616
|
SwitchingProtocols: 101,
|
|
20617
20617
|
Processing: 102,
|
|
@@ -20676,8 +20676,8 @@ const Os = {
|
|
|
20676
20676
|
NotExtended: 510,
|
|
20677
20677
|
NetworkAuthenticationRequired: 511
|
|
20678
20678
|
};
|
|
20679
|
-
Object.entries(
|
|
20680
|
-
|
|
20679
|
+
Object.entries(Rs).forEach(([t, r]) => {
|
|
20680
|
+
Rs[r] = t;
|
|
20681
20681
|
});
|
|
20682
20682
|
function ah(t) {
|
|
20683
20683
|
const r = new qt(t), e = $d(qt.prototype.request, r);
|
|
@@ -20691,7 +20691,7 @@ H.CanceledError = Fn;
|
|
|
20691
20691
|
H.CancelToken = tw;
|
|
20692
20692
|
H.isCancel = Zd;
|
|
20693
20693
|
H.VERSION = rh;
|
|
20694
|
-
H.toFormData =
|
|
20694
|
+
H.toFormData = pa;
|
|
20695
20695
|
H.AxiosError = X;
|
|
20696
20696
|
H.Cancel = H.CanceledError;
|
|
20697
20697
|
H.all = function(r) {
|
|
@@ -20703,7 +20703,7 @@ H.mergeConfig = Jt;
|
|
|
20703
20703
|
H.AxiosHeaders = Be;
|
|
20704
20704
|
H.formToJSON = (t) => Jd(x.isHTMLForm(t) ? new FormData(t) : t);
|
|
20705
20705
|
H.getAdapter = nh.getAdapter;
|
|
20706
|
-
H.HttpStatusCode =
|
|
20706
|
+
H.HttpStatusCode = Rs;
|
|
20707
20707
|
H.default = H;
|
|
20708
20708
|
const {
|
|
20709
20709
|
Axios: S4,
|
|
@@ -20723,7 +20723,7 @@ const {
|
|
|
20723
20723
|
getAdapter: N4,
|
|
20724
20724
|
mergeConfig: D4
|
|
20725
20725
|
} = H;
|
|
20726
|
-
class
|
|
20726
|
+
class go {
|
|
20727
20727
|
constructor({ format: r, successHandler: e, ...n } = {}) {
|
|
20728
20728
|
B(this, "instance");
|
|
20729
20729
|
B(this, "format");
|
|
@@ -20787,7 +20787,7 @@ class vo {
|
|
|
20787
20787
|
}, new FormData());
|
|
20788
20788
|
}
|
|
20789
20789
|
}
|
|
20790
|
-
B(
|
|
20790
|
+
B(go, "setDefaults", (r, e) => {
|
|
20791
20791
|
H.defaults.baseURL = r, H.defaults.withCredentials = !0, e && Object.entries(e).forEach(([n, i]) => {
|
|
20792
20792
|
H.defaults.headers.common[n] = i;
|
|
20793
20793
|
});
|
|
@@ -20797,12 +20797,12 @@ const oe = (t, r) => {
|
|
|
20797
20797
|
return H.isAxiosError(t) && ((e = t == null ? void 0 : t.response) == null ? void 0 : e.status) === r;
|
|
20798
20798
|
};
|
|
20799
20799
|
var Yn, fn;
|
|
20800
|
-
class
|
|
20800
|
+
class Os {
|
|
20801
20801
|
}
|
|
20802
|
-
B(
|
|
20803
|
-
}, B(Yn, "isBadRequestProblemDetail", (r) => H.isAxiosError(r) && oe(r, 400)), B(Yn, "isUnauthorizeProblemDetail", (r) => H.isAxiosError(r) && oe(r, 401)), B(Yn, "isProblemDetails", (r) => H.isAxiosError(r) && oe(r, 500)), Yn)), B(
|
|
20802
|
+
B(Os, "ContentTranslationGet", (Yn = class {
|
|
20803
|
+
}, B(Yn, "isBadRequestProblemDetail", (r) => H.isAxiosError(r) && oe(r, 400)), B(Yn, "isUnauthorizeProblemDetail", (r) => H.isAxiosError(r) && oe(r, 401)), B(Yn, "isProblemDetails", (r) => H.isAxiosError(r) && oe(r, 500)), Yn)), B(Os, "ContentReportPost", (fn = class {
|
|
20804
20804
|
}, B(fn, "isBadRequestProblemDetail", (r) => H.isAxiosError(r) && oe(r, 400)), B(fn, "isUnauthorizeProblemDetail", (r) => H.isAxiosError(r) && oe(r, 401)), B(fn, "isValidationProblemDetails", (r) => H.isAxiosError(r) && oe(r, 422)), B(fn, "isProblemDetails", (r) => H.isAxiosError(r) && oe(r, 500)), fn));
|
|
20805
|
-
const _n = class _n extends
|
|
20805
|
+
const _n = class _n extends go {
|
|
20806
20806
|
constructor() {
|
|
20807
20807
|
super(...arguments);
|
|
20808
20808
|
/** ContentService API methods */
|
|
@@ -20840,23 +20840,23 @@ B(_n, "Endpoints", {
|
|
|
20840
20840
|
contentTranslationGet: "/api/content/translation",
|
|
20841
20841
|
contentReportPost: "/api/content/report"
|
|
20842
20842
|
}), /** ContentService API static errors typeguards */
|
|
20843
|
-
B(_n, "Errors",
|
|
20844
|
-
let
|
|
20843
|
+
B(_n, "Errors", Os);
|
|
20844
|
+
let Ls = _n;
|
|
20845
20845
|
const iw = function(t) {
|
|
20846
20846
|
const r = (n) => Object.fromEntries(Object.entries(n).filter(([i, a]) => a != null));
|
|
20847
20847
|
let e = {};
|
|
20848
20848
|
return Object.keys(t).forEach((n) => {
|
|
20849
20849
|
const i = sh(n);
|
|
20850
20850
|
e[i] = t[n];
|
|
20851
|
-
}), e = r(e), e =
|
|
20851
|
+
}), e = r(e), e = vo(e), e;
|
|
20852
20852
|
}, sh = (t) => {
|
|
20853
20853
|
const r = t.replace(/^(Uxeng)/, "");
|
|
20854
20854
|
return r.charAt(0).toLowerCase() + r.slice(1);
|
|
20855
20855
|
};
|
|
20856
|
-
function
|
|
20856
|
+
function vo(t) {
|
|
20857
20857
|
const r = {};
|
|
20858
20858
|
for (const e in t)
|
|
20859
|
-
t.hasOwnProperty(e) && (typeof t[e] == "object" ? r[e] =
|
|
20859
|
+
t.hasOwnProperty(e) && (typeof t[e] == "object" ? r[e] = vo(t[e]) : I2(r, e, t[e]));
|
|
20860
20860
|
return r;
|
|
20861
20861
|
}
|
|
20862
20862
|
class aw {
|
|
@@ -20874,14 +20874,14 @@ class aw {
|
|
|
20874
20874
|
const s = await this.getServerTranslations();
|
|
20875
20875
|
a = e ? T2(a, s) : s;
|
|
20876
20876
|
} catch (s) {
|
|
20877
|
-
if (console.error("Unable to retrieve translations from server"), console.error(s),
|
|
20877
|
+
if (console.error("Unable to retrieve translations from server"), console.error(s), Ss(n, i))
|
|
20878
20878
|
throw s;
|
|
20879
20879
|
}
|
|
20880
20880
|
return a;
|
|
20881
20881
|
}
|
|
20882
20882
|
async getFallbacks() {
|
|
20883
20883
|
const { country: r, language: e, scopes: n } = this.config;
|
|
20884
|
-
if (wb(r, e) || console.warn(`Language not configured for this country : ${r}/${e}`),
|
|
20884
|
+
if (wb(r, e) || console.warn(`Language not configured for this country : ${r}/${e}`), Ss(r, e)) {
|
|
20885
20885
|
console.debug("Language is auto-translated");
|
|
20886
20886
|
return;
|
|
20887
20887
|
}
|
|
@@ -20892,12 +20892,12 @@ class aw {
|
|
|
20892
20892
|
s,
|
|
20893
20893
|
n.map((l) => sh(l))
|
|
20894
20894
|
);
|
|
20895
|
-
return o =
|
|
20895
|
+
return o = vo(o), o;
|
|
20896
20896
|
} else
|
|
20897
20897
|
throw new Error(`Translations fallbacks for ${e} not found.`);
|
|
20898
20898
|
}
|
|
20899
20899
|
async getServerTranslations() {
|
|
20900
|
-
const { scopes: r, apiConfig: e } = this.config, n = await import("./index-Cj-euKFF.js").then((a) => a.i), i = await new
|
|
20900
|
+
const { scopes: r, apiConfig: e } = this.config, n = await import("./index-Cj-euKFF.js").then((a) => a.i), i = await new Ls().contentTranslationGet(
|
|
20901
20901
|
{ scopes: r },
|
|
20902
20902
|
{
|
|
20903
20903
|
...e,
|
|
@@ -20937,7 +20937,7 @@ let fe = xo;
|
|
|
20937
20937
|
*/
|
|
20938
20938
|
const oh = Symbol.for(""), sw = (t) => {
|
|
20939
20939
|
if ((t == null ? void 0 : t.r) === oh) return t == null ? void 0 : t._$litStatic$;
|
|
20940
|
-
},
|
|
20940
|
+
}, Is = (t) => ({ _$litStatic$: t, r: oh }), Kc = /* @__PURE__ */ new Map(), ow = (t) => (r, ...e) => {
|
|
20941
20941
|
const n = e.length;
|
|
20942
20942
|
let i, a;
|
|
20943
20943
|
const s = [], o = [];
|
|
@@ -20964,7 +20964,7 @@ function lw(t, r) {
|
|
|
20964
20964
|
return t.dispatchEvent(i), i;
|
|
20965
20965
|
};
|
|
20966
20966
|
}
|
|
20967
|
-
function
|
|
20967
|
+
function yo(t) {
|
|
20968
20968
|
return (r, e) => {
|
|
20969
20969
|
Object.defineProperty(r, e, {
|
|
20970
20970
|
get() {
|
|
@@ -21043,7 +21043,7 @@ function nt(t, r) {
|
|
|
21043
21043
|
}
|
|
21044
21044
|
customElements.define(t, e);
|
|
21045
21045
|
}
|
|
21046
|
-
var hw = Object.defineProperty, pw = Object.getOwnPropertyDescriptor,
|
|
21046
|
+
var hw = Object.defineProperty, pw = Object.getOwnPropertyDescriptor, bo = (t, r, e, n) => {
|
|
21047
21047
|
for (var i = n > 1 ? void 0 : n ? pw(r, e) : r, a = t.length - 1, s; a >= 0; a--)
|
|
21048
21048
|
(s = t[a]) && (i = (n ? s(r, e, i) : s(i)) || i);
|
|
21049
21049
|
return n && i && hw(r, e, i), i;
|
|
@@ -21073,13 +21073,13 @@ let Sr = class extends fe {
|
|
|
21073
21073
|
}
|
|
21074
21074
|
};
|
|
21075
21075
|
Sr.styles = [fe.styles, cw];
|
|
21076
|
-
|
|
21076
|
+
bo([
|
|
21077
21077
|
q({ type: String, reflect: !0 })
|
|
21078
21078
|
], Sr.prototype, "size", 2);
|
|
21079
|
-
|
|
21079
|
+
bo([
|
|
21080
21080
|
q({ type: String })
|
|
21081
21081
|
], Sr.prototype, "dataCerberus", 2);
|
|
21082
|
-
Sr =
|
|
21082
|
+
Sr = bo([
|
|
21083
21083
|
Me("lr-spinner")
|
|
21084
21084
|
], Sr);
|
|
21085
21085
|
const fw = globalThis.SubmitEvent = typeof globalThis.SubmitEvent < "u" ? SubmitEvent : Event, ch = (t) => {
|
|
@@ -21096,7 +21096,7 @@ var mw = Object.defineProperty, gw = Object.getOwnPropertyDescriptor, Le = (t, r
|
|
|
21096
21096
|
(s = t[a]) && (i = (n ? s(r, e, i) : s(i)) || i);
|
|
21097
21097
|
return n && i && mw(r, e, i), i;
|
|
21098
21098
|
};
|
|
21099
|
-
const
|
|
21099
|
+
const Li = class Li extends fe {
|
|
21100
21100
|
constructor() {
|
|
21101
21101
|
super(), this.disabled = !1, this.size = "medium", this.iconPosition = "left", this.type = "button", this.reversed = !1, this.target = "_self", this.loading = !1, this.internals = this.attachInternals();
|
|
21102
21102
|
}
|
|
@@ -21113,10 +21113,10 @@ const Ii = class Ii extends fe {
|
|
|
21113
21113
|
r && ch(r);
|
|
21114
21114
|
}
|
|
21115
21115
|
renderElement() {
|
|
21116
|
-
const r = !!this.href, e = this.disabled, n =
|
|
21116
|
+
const r = !!this.href, e = this.disabled, n = sa({
|
|
21117
21117
|
button: !0,
|
|
21118
21118
|
"has-content": this._hasDefaultSlot
|
|
21119
|
-
}), i = this.loading && this.loadingText ? this.loadingText : Bt`<slot></slot>`, a = this.icon ? Bt`<${
|
|
21119
|
+
}), i = this.loading && this.loadingText ? this.loadingText : Bt`<slot></slot>`, a = this.icon ? Bt`<${Is(`lr-icon-${this.icon}`)} class="icon" size=${this.size}></${Is(
|
|
21120
21120
|
`lr-icon-${this.icon}`
|
|
21121
21121
|
)}>` : null, s = Bt`<lr-spinner class="loading-spinner" size="${this.size}"></lr-spinner>`, o = Bt`<slot name="icon">${this.loading ? s : a ?? ""}</slot>
|
|
21122
21122
|
<span class="text">${i}</span>`;
|
|
@@ -21140,8 +21140,8 @@ const Ii = class Ii extends fe {
|
|
|
21140
21140
|
</button>`;
|
|
21141
21141
|
}
|
|
21142
21142
|
};
|
|
21143
|
-
|
|
21144
|
-
let xe =
|
|
21143
|
+
Li.formAssociated = !0, Li.styles = [fe.styles, wy];
|
|
21144
|
+
let xe = Li;
|
|
21145
21145
|
Le([
|
|
21146
21146
|
q({ type: Boolean, reflect: !0 })
|
|
21147
21147
|
], xe.prototype, "disabled", 2);
|
|
@@ -21173,7 +21173,7 @@ Le([
|
|
|
21173
21173
|
q({ type: String })
|
|
21174
21174
|
], xe.prototype, "loadingText", 2);
|
|
21175
21175
|
Le([
|
|
21176
|
-
|
|
21176
|
+
yo("on-click")
|
|
21177
21177
|
], xe.prototype, "clickEventDispatcher", 2);
|
|
21178
21178
|
let yt = class extends xe {
|
|
21179
21179
|
constructor() {
|
|
@@ -21246,7 +21246,7 @@ const vw = _e`
|
|
|
21246
21246
|
user-select: text;
|
|
21247
21247
|
}
|
|
21248
21248
|
`;
|
|
21249
|
-
var yw = Object.defineProperty, bw = Object.getOwnPropertyDescriptor,
|
|
21249
|
+
var yw = Object.defineProperty, bw = Object.getOwnPropertyDescriptor, wo = (t, r, e, n) => {
|
|
21250
21250
|
for (var i = n > 1 ? void 0 : n ? bw(r, e) : r, a = t.length - 1, s; a >= 0; a--)
|
|
21251
21251
|
(s = t[a]) && (i = (n ? s(r, e, i) : s(i)) || i);
|
|
21252
21252
|
return n && i && yw(r, e, i), i;
|
|
@@ -21264,13 +21264,13 @@ let Rn = class extends fe {
|
|
|
21264
21264
|
}
|
|
21265
21265
|
};
|
|
21266
21266
|
Rn.styles = [fe.styles, vw];
|
|
21267
|
-
|
|
21267
|
+
wo([
|
|
21268
21268
|
q({ type: Boolean, reflect: !0 })
|
|
21269
21269
|
], Rn.prototype, "active", 2);
|
|
21270
|
-
|
|
21270
|
+
wo([
|
|
21271
21271
|
q({ type: Boolean, reflect: !0 })
|
|
21272
21272
|
], Rn.prototype, "blurring", 2);
|
|
21273
|
-
Rn =
|
|
21273
|
+
Rn = wo([
|
|
21274
21274
|
Me("lr-dimmer")
|
|
21275
21275
|
], Rn);
|
|
21276
21276
|
var ww = Object.getOwnPropertyDescriptor, kw = (t, r, e, n) => {
|
|
@@ -21367,9 +21367,9 @@ function Cw(t, r = !1, e = 0) {
|
|
|
21367
21367
|
else lr(this, t);
|
|
21368
21368
|
}
|
|
21369
21369
|
const xw = (t) => {
|
|
21370
|
-
t.type ==
|
|
21370
|
+
t.type == ia.CHILD && (t._$AP ?? (t._$AP = Cw), t._$AQ ?? (t._$AQ = Sw));
|
|
21371
21371
|
};
|
|
21372
|
-
let dh = class extends
|
|
21372
|
+
let dh = class extends uo {
|
|
21373
21373
|
constructor() {
|
|
21374
21374
|
super(...arguments), this._$AN = void 0;
|
|
21375
21375
|
}
|
|
@@ -21392,7 +21392,7 @@ let dh = class extends ho {
|
|
|
21392
21392
|
reconnected() {
|
|
21393
21393
|
}
|
|
21394
21394
|
};
|
|
21395
|
-
const
|
|
21395
|
+
const Ja = /* @__PURE__ */ new WeakMap(), Ew = aa(class extends dh {
|
|
21396
21396
|
render(t) {
|
|
21397
21397
|
return se;
|
|
21398
21398
|
}
|
|
@@ -21404,13 +21404,13 @@ const Za = /* @__PURE__ */ new WeakMap(), Ew = sa(class extends dh {
|
|
|
21404
21404
|
rt(t) {
|
|
21405
21405
|
if (this.isConnected || (t = void 0), typeof this.G == "function") {
|
|
21406
21406
|
const r = this.ht ?? globalThis;
|
|
21407
|
-
let e =
|
|
21408
|
-
e === void 0 && (e = /* @__PURE__ */ new WeakMap(),
|
|
21407
|
+
let e = Ja.get(r);
|
|
21408
|
+
e === void 0 && (e = /* @__PURE__ */ new WeakMap(), Ja.set(r, e)), e.get(this.G) !== void 0 && this.G.call(this.ht, void 0), e.set(this.G, t), t !== void 0 && this.G.call(this.ht, t);
|
|
21409
21409
|
} else this.G.value = t;
|
|
21410
21410
|
}
|
|
21411
21411
|
get lt() {
|
|
21412
21412
|
var t, r;
|
|
21413
|
-
return typeof this.G == "function" ? (t =
|
|
21413
|
+
return typeof this.G == "function" ? (t = Ja.get(this.ht ?? globalThis)) == null ? void 0 : t.get(this.G) : (r = this.G) == null ? void 0 : r.value;
|
|
21414
21414
|
}
|
|
21415
21415
|
disconnected() {
|
|
21416
21416
|
this.lt === this.ct && this.rt(void 0);
|
|
@@ -21572,7 +21572,6 @@ const Za = /* @__PURE__ */ new WeakMap(), Ew = sa(class extends dh {
|
|
|
21572
21572
|
}
|
|
21573
21573
|
|
|
21574
21574
|
&.isDraggable {
|
|
21575
|
-
position: absolute;
|
|
21576
21575
|
cursor: grab;
|
|
21577
21576
|
user-select: none;
|
|
21578
21577
|
}
|
|
@@ -21831,7 +21830,7 @@ const Za = /* @__PURE__ */ new WeakMap(), Ew = sa(class extends dh {
|
|
|
21831
21830
|
}
|
|
21832
21831
|
`
|
|
21833
21832
|
};
|
|
21834
|
-
var Xn, Qn, mn, gn, vn, yn,
|
|
21833
|
+
var Xn, Qn, mn, gn, vn, yn, ts, ns;
|
|
21835
21834
|
class mt {
|
|
21836
21835
|
}
|
|
21837
21836
|
B(mt, "ChatbotConversationsGet", (Xn = class {
|
|
@@ -21840,10 +21839,10 @@ B(mt, "ChatbotConversationsGet", (Xn = class {
|
|
|
21840
21839
|
}, B(mn, "isBadRequestProblemDetails", (r) => H.isAxiosError(r) && oe(r, 400)), B(mn, "isNotFoundProblemDetails", (r) => H.isAxiosError(r) && oe(r, 404)), B(mn, "isInternalServerErrorProblemDetails", (r) => H.isAxiosError(r) && oe(r, 500)), B(mn, "isServiceUnavailableProblemDetails", (r) => H.isAxiosError(r) && oe(r, 503)), mn)), B(mt, "ChatbotConversationsRatePost", (gn = class {
|
|
21841
21840
|
}, B(gn, "isBadRequestProblemDetails", (r) => H.isAxiosError(r) && oe(r, 400)), B(gn, "isNotFoundProblemDetails", (r) => H.isAxiosError(r) && oe(r, 404)), B(gn, "isInternalServerErrorProblemDetails", (r) => H.isAxiosError(r) && oe(r, 500)), B(gn, "isServiceUnavailableProblemDetails", (r) => H.isAxiosError(r) && oe(r, 503)), gn)), B(mt, "ChatbotConversationsMessagesRatePost", (vn = class {
|
|
21842
21841
|
}, B(vn, "isBadRequestProblemDetails", (r) => H.isAxiosError(r) && oe(r, 400)), B(vn, "isNotFoundProblemDetails", (r) => H.isAxiosError(r) && oe(r, 404)), B(vn, "isInternalServerErrorProblemDetails", (r) => H.isAxiosError(r) && oe(r, 500)), B(vn, "isServiceUnavailableProblemDetails", (r) => H.isAxiosError(r) && oe(r, 503)), vn)), B(mt, "ChatbotConversationsInteractionsSummarizePost", (yn = class {
|
|
21843
|
-
}, B(yn, "isBadRequestProblemDetails", (r) => H.isAxiosError(r) && oe(r, 400)), B(yn, "isNotFoundProblemDetails", (r) => H.isAxiosError(r) && oe(r, 404)), B(yn, "isInternalServerErrorProblemDetails", (r) => H.isAxiosError(r) && oe(r, 500)), B(yn, "isServiceUnavailableProblemDetails", (r) => H.isAxiosError(r) && oe(r, 503)), yn)), B(mt, "ChatbotIntegrationsPost", (
|
|
21844
|
-
}, B(
|
|
21845
|
-
}, B(
|
|
21846
|
-
const Ge = class Ge extends
|
|
21842
|
+
}, B(yn, "isBadRequestProblemDetails", (r) => H.isAxiosError(r) && oe(r, 400)), B(yn, "isNotFoundProblemDetails", (r) => H.isAxiosError(r) && oe(r, 404)), B(yn, "isInternalServerErrorProblemDetails", (r) => H.isAxiosError(r) && oe(r, 500)), B(yn, "isServiceUnavailableProblemDetails", (r) => H.isAxiosError(r) && oe(r, 503)), yn)), B(mt, "ChatbotIntegrationsPost", (ts = class {
|
|
21843
|
+
}, B(ts, "isUnauthorizedProblemDetails", (r) => H.isAxiosError(r) && oe(r, 401)), ts)), B(mt, "ChatbotIntegrationsGet", (ns = class {
|
|
21844
|
+
}, B(ns, "isUnauthorizedProblemDetails", (r) => H.isAxiosError(r) && oe(r, 401)), ns));
|
|
21845
|
+
const Ge = class Ge extends go {
|
|
21847
21846
|
constructor() {
|
|
21848
21847
|
super(...arguments);
|
|
21849
21848
|
/** ChatbotService API methods */
|
|
@@ -21976,13 +21975,13 @@ B(Ge, "Errors", mt);
|
|
|
21976
21975
|
let Zt = Ge;
|
|
21977
21976
|
const Aw = /* @__PURE__ */ new WeakMap();
|
|
21978
21977
|
let Zc = 0;
|
|
21979
|
-
const
|
|
21978
|
+
const Za = /* @__PURE__ */ new Map(), Yc = /* @__PURE__ */ new WeakSet(), Xc = () => new Promise((t) => requestAnimationFrame(t)), Qc = [{ transform: "translateY(100%) scale(0)", opacity: 0 }], eu = [{ opacity: 0 }], tu = [{ opacity: 0 }, { opacity: 1 }], nu = (t, r) => {
|
|
21980
21979
|
const e = t - r;
|
|
21981
21980
|
return e === 0 ? void 0 : e;
|
|
21982
21981
|
}, ru = (t, r) => {
|
|
21983
21982
|
const e = t / r;
|
|
21984
21983
|
return e === 1 ? void 0 : e;
|
|
21985
|
-
},
|
|
21984
|
+
}, Ya = { left: (t, r) => {
|
|
21986
21985
|
const e = nu(t, r);
|
|
21987
21986
|
return { value: e, transform: e == null || isNaN(e) ? void 0 : `translateX(${e}px)` };
|
|
21988
21987
|
}, top: (t, r) => {
|
|
@@ -22001,7 +22000,7 @@ const Ya = /* @__PURE__ */ new Map(), Yc = /* @__PURE__ */ new WeakSet(), Xc = (
|
|
|
22001
22000
|
} }, Tw = { duration: 333, easing: "ease-in-out" }, Rw = ["left", "top", "width", "height", "opacity", "color", "background"], iu = /* @__PURE__ */ new WeakMap();
|
|
22002
22001
|
class Ow extends dh {
|
|
22003
22002
|
constructor(r) {
|
|
22004
|
-
if (super(r), this.t = !1, this.i = null, this.o = null, this.h = !0, this.shouldLog = !1, r.type ===
|
|
22003
|
+
if (super(r), this.t = !1, this.i = null, this.o = null, this.h = !0, this.shouldLog = !1, r.type === ia.CHILD) throw Error("The `animate` directive must be used in attribute position.");
|
|
22005
22004
|
this.createFinished();
|
|
22006
22005
|
}
|
|
22007
22006
|
createFinished() {
|
|
@@ -22037,7 +22036,7 @@ class Ow extends dh {
|
|
|
22037
22036
|
m() {
|
|
22038
22037
|
const r = {}, e = this.element.getBoundingClientRect(), n = getComputedStyle(this.element);
|
|
22039
22038
|
return this.options.properties.forEach((i) => {
|
|
22040
|
-
const a = e[i] ?? (
|
|
22039
|
+
const a = e[i] ?? (Ya[i] ? void 0 : n[i]), s = Number(a);
|
|
22041
22040
|
r[i] = isNaN(s) ? a + "" : s;
|
|
22042
22041
|
}), r;
|
|
22043
22042
|
}
|
|
@@ -22062,9 +22061,9 @@ class Ow extends dh {
|
|
|
22062
22061
|
const { from: a, to: s } = this.N(this.A, i, e);
|
|
22063
22062
|
this.log("measured", [this.A, i, a, s]), r = this.calculateKeyframes(a, s);
|
|
22064
22063
|
} else {
|
|
22065
|
-
const a =
|
|
22064
|
+
const a = Za.get(this.options.inId);
|
|
22066
22065
|
if (a) {
|
|
22067
|
-
|
|
22066
|
+
Za.delete(this.options.inId);
|
|
22068
22067
|
const { from: s, to: o } = this.N(a, i, e);
|
|
22069
22068
|
r = this.calculateKeyframes(s, o), r = this.options.in ? [{ ...this.options.in[0], ...r[0] }, ...this.options.in.slice(1), r[1]] : r, Zc++, r.forEach((l) => l.zIndex = Zc);
|
|
22070
22069
|
} else this.options.in && (r = [...this.options.in, {}]);
|
|
@@ -22082,7 +22081,7 @@ class Ow extends dh {
|
|
|
22082
22081
|
}
|
|
22083
22082
|
async disconnected() {
|
|
22084
22083
|
var e;
|
|
22085
|
-
if (!this.h || (this.options.id !== void 0 &&
|
|
22084
|
+
if (!this.h || (this.options.id !== void 0 && Za.set(this.options.id, this.A), this.options.out === void 0)) return;
|
|
22086
22085
|
if (this.prepare(), await Xc(), (e = this.i) == null ? void 0 : e.isConnected) {
|
|
22087
22086
|
const n = this.o && this.o.parentNode === this.i ? this.o : null;
|
|
22088
22087
|
if (this.i.insertBefore(this.element, n), this.options.stabilizeOut) {
|
|
@@ -22138,8 +22137,8 @@ class Ow extends dh {
|
|
|
22138
22137
|
const o = {};
|
|
22139
22138
|
for (const l in e) {
|
|
22140
22139
|
const c = r[l], u = e[l];
|
|
22141
|
-
if (l in
|
|
22142
|
-
const d =
|
|
22140
|
+
if (l in Ya) {
|
|
22141
|
+
const d = Ya[l];
|
|
22143
22142
|
if (c === void 0 || u === void 0) continue;
|
|
22144
22143
|
const h = d(c, u);
|
|
22145
22144
|
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));
|
|
@@ -22170,7 +22169,7 @@ class Ow extends dh {
|
|
|
22170
22169
|
this.shouldLog && !this.isDisabled() && console.log(r, this.options.id, e);
|
|
22171
22170
|
}
|
|
22172
22171
|
}
|
|
22173
|
-
const ai =
|
|
22172
|
+
const ai = aa(Ow);
|
|
22174
22173
|
class Lw extends aw {
|
|
22175
22174
|
constructor(r, e, n) {
|
|
22176
22175
|
super({
|
|
@@ -22268,28 +22267,28 @@ function Iw() {
|
|
|
22268
22267
|
}
|
|
22269
22268
|
var ph = (t) => {
|
|
22270
22269
|
throw TypeError(t);
|
|
22271
|
-
}, fh = (t, r, e) => r.has(t) || ph("Cannot " + e),
|
|
22270
|
+
}, fh = (t, r, e) => r.has(t) || ph("Cannot " + e), Xa = (t, r, e) => (fh(t, r, "read from private field"), e ? e.call(t) : r.get(t)), Qa = (t, r, e) => r.has(t) ? ph("Cannot add the same private member more than once") : r instanceof WeakSet ? r.add(t) : r.set(t, e), es = (t, r, e, n) => (fh(t, r, "write to private field"), r.set(t, e), e), si, oi, li;
|
|
22272
22271
|
class mh {
|
|
22273
22272
|
constructor(r, e) {
|
|
22274
|
-
|
|
22273
|
+
Qa(this, si, Iw()), Qa(this, oi, null), Qa(this, li, null), this.enableSending = !0, this.host = r, this.host.addController(this), this.channel = new BroadcastChannel(e), this.registerOnMessageHandler();
|
|
22275
22274
|
}
|
|
22276
22275
|
get sourceId() {
|
|
22277
|
-
return
|
|
22276
|
+
return Xa(this, si);
|
|
22278
22277
|
}
|
|
22279
22278
|
set sourceId(r) {
|
|
22280
|
-
|
|
22279
|
+
es(this, si, r);
|
|
22281
22280
|
}
|
|
22282
22281
|
get onMessage() {
|
|
22283
|
-
return
|
|
22282
|
+
return Xa(this, oi);
|
|
22284
22283
|
}
|
|
22285
22284
|
set onMessage(r) {
|
|
22286
|
-
|
|
22285
|
+
es(this, oi, r);
|
|
22287
22286
|
}
|
|
22288
22287
|
get onError() {
|
|
22289
|
-
return
|
|
22288
|
+
return Xa(this, li);
|
|
22290
22289
|
}
|
|
22291
22290
|
set onError(r) {
|
|
22292
|
-
|
|
22291
|
+
es(this, li, r);
|
|
22293
22292
|
}
|
|
22294
22293
|
registerOnMessageHandler() {
|
|
22295
22294
|
this.channel && (this.channel.onmessageerror = (r) => {
|
|
@@ -22312,7 +22311,7 @@ class mh {
|
|
|
22312
22311
|
si = /* @__PURE__ */ new WeakMap();
|
|
22313
22312
|
oi = /* @__PURE__ */ new WeakMap();
|
|
22314
22313
|
li = /* @__PURE__ */ new WeakMap();
|
|
22315
|
-
function
|
|
22314
|
+
function ko() {
|
|
22316
22315
|
return /Android|webOS|iPhone|iPad|iPod|BlackBerry|IEMobile|Opera Mini/i.test(navigator.userAgent);
|
|
22317
22316
|
}
|
|
22318
22317
|
function Mw() {
|
|
@@ -22337,9 +22336,9 @@ const au = (t) => Object.entries(t).map(([r, e]) => `${r}:${e}`).join(";"), Pw =
|
|
|
22337
22336
|
* Copyright 2017 Google LLC
|
|
22338
22337
|
* SPDX-License-Identifier: BSD-3-Clause
|
|
22339
22338
|
*/
|
|
22340
|
-
let
|
|
22339
|
+
let Ms = class extends uo {
|
|
22341
22340
|
constructor(r) {
|
|
22342
|
-
if (super(r), this.it = se, r.type !==
|
|
22341
|
+
if (super(r), this.it = se, r.type !== ia.CHILD) throw Error(this.constructor.directiveName + "() can only be used in child bindings");
|
|
22343
22342
|
}
|
|
22344
22343
|
render(r) {
|
|
22345
22344
|
if (r === se || r == null) return this._t = void 0, this.it = r;
|
|
@@ -22351,8 +22350,8 @@ let Ps = class extends ho {
|
|
|
22351
22350
|
return e.raw = e, this._t = { _$litType$: this.constructor.resultType, strings: e, values: [] };
|
|
22352
22351
|
}
|
|
22353
22352
|
};
|
|
22354
|
-
|
|
22355
|
-
const gh =
|
|
22353
|
+
Ms.directiveName = "unsafeHTML", Ms.resultType = 1;
|
|
22354
|
+
const gh = aa(Ms);
|
|
22356
22355
|
/**
|
|
22357
22356
|
* @license
|
|
22358
22357
|
* Copyright 2021 Google LLC
|
|
@@ -22565,8 +22564,8 @@ yh([
|
|
|
22565
22564
|
On = yh([
|
|
22566
22565
|
Me("lr-pill")
|
|
22567
22566
|
], On);
|
|
22568
|
-
const
|
|
22569
|
-
var Uw = Object.defineProperty, zw = Object.getOwnPropertyDescriptor,
|
|
22567
|
+
const ga = Symbol("lr-chatbot-message-context");
|
|
22568
|
+
var Uw = Object.defineProperty, zw = Object.getOwnPropertyDescriptor, va = (t, r, e, n) => {
|
|
22570
22569
|
for (var i = n > 1 ? void 0 : n ? zw(r, e) : r, a = t.length - 1, s; a >= 0; a--)
|
|
22571
22570
|
(s = t[a]) && (i = (n ? s(r, e, i) : s(i)) || i);
|
|
22572
22571
|
return n && i && Uw(r, e, i), i;
|
|
@@ -22618,16 +22617,16 @@ let Ln = class extends On {
|
|
|
22618
22617
|
}
|
|
22619
22618
|
};
|
|
22620
22619
|
Ln.styles = [On.styles, Dw];
|
|
22621
|
-
|
|
22620
|
+
va([
|
|
22622
22621
|
q({ type: String })
|
|
22623
22622
|
], Ln.prototype, "channel", 2);
|
|
22624
|
-
|
|
22623
|
+
va([
|
|
22625
22624
|
q({ type: Boolean })
|
|
22626
22625
|
], Ln.prototype, "shouldGetSummary", 2);
|
|
22627
|
-
|
|
22628
|
-
So({ context:
|
|
22626
|
+
va([
|
|
22627
|
+
So({ context: ga })
|
|
22629
22628
|
], Ln.prototype, "messageContext", 2);
|
|
22630
|
-
Ln =
|
|
22629
|
+
Ln = va([
|
|
22631
22630
|
Me("lr-chatbot-escalation-pill")
|
|
22632
22631
|
], Ln);
|
|
22633
22632
|
const qw = _e`
|
|
@@ -22673,12 +22672,12 @@ var Ww = Object.getOwnPropertyDescriptor, Gw = (t, r, e, n) => {
|
|
|
22673
22672
|
(s = t[a]) && (i = s(i) || i);
|
|
22674
22673
|
return i;
|
|
22675
22674
|
};
|
|
22676
|
-
let
|
|
22675
|
+
let Ps = class extends yt {
|
|
22677
22676
|
};
|
|
22678
|
-
|
|
22679
|
-
|
|
22677
|
+
Ps.styles = [yt.styles, Vw];
|
|
22678
|
+
Ps = Gw([
|
|
22680
22679
|
Me("lr-icon-button")
|
|
22681
|
-
],
|
|
22680
|
+
], Ps);
|
|
22682
22681
|
var Kw = Object.defineProperty, Jw = Object.getOwnPropertyDescriptor, Dr = (t, r, e, n) => {
|
|
22683
22682
|
for (var i = n > 1 ? void 0 : n ? Jw(r, e) : r, a = t.length - 1, s; a >= 0; a--)
|
|
22684
22683
|
(s = t[a]) && (i = (n ? s(r, e, i) : s(i)) || i);
|
|
@@ -22740,7 +22739,7 @@ let Yt = class extends fe {
|
|
|
22740
22739
|
};
|
|
22741
22740
|
Yt.styles = [fe.styles, qw];
|
|
22742
22741
|
Dr([
|
|
22743
|
-
So({ context:
|
|
22742
|
+
So({ context: ga })
|
|
22744
22743
|
], Yt.prototype, "messageContext", 2);
|
|
22745
22744
|
Dr([
|
|
22746
22745
|
dt()
|
|
@@ -22841,7 +22840,7 @@ let Ot = class extends fe {
|
|
|
22841
22840
|
this.value = t;
|
|
22842
22841
|
}
|
|
22843
22842
|
renderElement() {
|
|
22844
|
-
const t =
|
|
22843
|
+
const t = sa({
|
|
22845
22844
|
disabled: this.value > 0
|
|
22846
22845
|
});
|
|
22847
22846
|
return pe`
|
|
@@ -23014,11 +23013,11 @@ let Ee = class extends fe {
|
|
|
23014
23013
|
this.focused = !1;
|
|
23015
23014
|
}
|
|
23016
23015
|
renderElement() {
|
|
23017
|
-
const t =
|
|
23016
|
+
const t = sa({
|
|
23018
23017
|
"input-wrapper": !0,
|
|
23019
23018
|
"has-icon": !!this.icon,
|
|
23020
23019
|
[`icon-${this.iconPosition}`]: !!this.icon
|
|
23021
|
-
}), r =
|
|
23020
|
+
}), r = Is(`${this.icon}`), e = this.icon ? Bt`<${r} class='icon' size=${this.size}></${r}>` : null;
|
|
23022
23021
|
return pe`
|
|
23023
23022
|
<div class=${t}>
|
|
23024
23023
|
${this.label ? pe`<label for="input">${this.label}</label>` : se}
|
|
@@ -23078,10 +23077,10 @@ je([
|
|
|
23078
23077
|
dt()
|
|
23079
23078
|
], Ee.prototype, "focused", 2);
|
|
23080
23079
|
je([
|
|
23081
|
-
|
|
23080
|
+
yo("on-input")
|
|
23082
23081
|
], Ee.prototype, "onInput", 2);
|
|
23083
23082
|
je([
|
|
23084
|
-
|
|
23083
|
+
yo("on-change")
|
|
23085
23084
|
], Ee.prototype, "onChange", 2);
|
|
23086
23085
|
Ee = je([
|
|
23087
23086
|
Me("lr-input")
|
|
@@ -23158,7 +23157,7 @@ let Lt = class extends fe {
|
|
|
23158
23157
|
}
|
|
23159
23158
|
}
|
|
23160
23159
|
renderFeedbackElement() {
|
|
23161
|
-
const t = !!(this.score && this.score <= 3), r = this.feedback && !this.score && !t, e =
|
|
23160
|
+
const t = !!(this.score && this.score <= 3), r = this.feedback && !this.score && !t, e = sa({
|
|
23162
23161
|
feedback: !0,
|
|
23163
23162
|
"feedback-content": t,
|
|
23164
23163
|
"feedback-confirm": r
|
|
@@ -23192,7 +23191,7 @@ let Lt = class extends fe {
|
|
|
23192
23191
|
};
|
|
23193
23192
|
Lt.styles = [a4];
|
|
23194
23193
|
Nn([
|
|
23195
|
-
So({ context:
|
|
23194
|
+
So({ context: ga })
|
|
23196
23195
|
], Lt.prototype, "messageContext", 2);
|
|
23197
23196
|
Nn([
|
|
23198
23197
|
dt()
|
|
@@ -23236,7 +23235,7 @@ let Xe = class extends fe {
|
|
|
23236
23235
|
${this.showEscalation ? pe`<div class="button-container">
|
|
23237
23236
|
${gh(
|
|
23238
23237
|
be("chatbot:escalation.suggestions", {
|
|
23239
|
-
context:
|
|
23238
|
+
context: ko() ? "mobile" : ""
|
|
23240
23239
|
})
|
|
23241
23240
|
)}
|
|
23242
23241
|
</div>` : se}
|
|
@@ -23267,7 +23266,7 @@ wt([
|
|
|
23267
23266
|
q({ type: Boolean })
|
|
23268
23267
|
], Xe.prototype, "showConversationRating", 2);
|
|
23269
23268
|
wt([
|
|
23270
|
-
Nw({ context:
|
|
23269
|
+
Nw({ context: ga })
|
|
23271
23270
|
], Xe.prototype, "messageContext", 2);
|
|
23272
23271
|
Xe = wt([
|
|
23273
23272
|
Me("lr-chatbot-message")
|
|
@@ -23286,16 +23285,14 @@ const Wn = (t) => {
|
|
|
23286
23285
|
${e}
|
|
23287
23286
|
</lr-chatbot-message>`;
|
|
23288
23287
|
};
|
|
23289
|
-
var d4 = Object.defineProperty, h4 = Object.getOwnPropertyDescriptor,
|
|
23288
|
+
var d4 = Object.defineProperty, h4 = Object.getOwnPropertyDescriptor, ya = (t, r, e, n) => {
|
|
23290
23289
|
for (var i = n > 1 ? void 0 : n ? h4(r, e) : r, a = t.length - 1, s; a >= 0; a--)
|
|
23291
23290
|
(s = t[a]) && (i = (n ? s(r, e, i) : s(i)) || i);
|
|
23292
23291
|
return n && i && d4(r, e, i), i;
|
|
23293
23292
|
};
|
|
23294
23293
|
let In = class extends fe {
|
|
23295
23294
|
constructor() {
|
|
23296
|
-
super(...arguments), this._isDragging = !1, this._chatbotMinimizedElement = document.createElement("div"), this._isEventDraggableSet = !1, this._isClickEventRemoved = !1, this._lastX = 0, this._lastY = 0, this.
|
|
23297
|
-
Li() ? this.setMobileEventListener() : this.setDeviceEventListener();
|
|
23298
|
-
}, this.handleTouchStart = (t) => {
|
|
23295
|
+
super(...arguments), this._isDragging = !1, this._chatbotMinimizedElement = document.createElement("div"), this._isEventDraggableSet = !1, this._isClickEventRemoved = !1, this._lastX = 0, this._lastY = 0, this._isMobileDevice = ko(), this.handleTouchStart = (t) => {
|
|
23299
23296
|
this._isDragging = !0, this._lastX = t.touches[0].clientX, this._lastY = t.touches[0].clientY;
|
|
23300
23297
|
}, this.handleTouchMove = (t) => {
|
|
23301
23298
|
if (!this._isDragging) return;
|
|
@@ -23304,9 +23301,9 @@ let In = class extends fe {
|
|
|
23304
23301
|
), i = parseInt(
|
|
23305
23302
|
window.getComputedStyle(this._chatbotMinimizedElement).getPropertyValue("top")
|
|
23306
23303
|
);
|
|
23307
|
-
this._chatbotMinimizedElement.style.bottom = "", this._chatbotMinimizedElement.style.left = `${n + r}px`, this._chatbotMinimizedElement.style.top = `${i + e}px`, this._lastX = t.touches[0].clientX, this._lastY = t.touches[0].clientY, this._isClickEventRemoved || (this._isClickEventRemoved = !0);
|
|
23304
|
+
this._chatbotMinimizedElement.style.bottom = "", this._chatbotMinimizedElement.style.position = "absolute", this._chatbotMinimizedElement.style.cursor = "grabbing", this._chatbotMinimizedElement.style.left = `${n + r}px`, this._chatbotMinimizedElement.style.top = `${i + e}px`, this._lastX = t.touches[0].clientX, this._lastY = t.touches[0].clientY, this._isClickEventRemoved || (this._isClickEventRemoved = !0);
|
|
23308
23305
|
}, this.handleTouchEnd = () => {
|
|
23309
|
-
this._isDragging && (this._isDragging = !1, this._chatbotMinimizedElement.style.cursor = "grab");
|
|
23306
|
+
this._isDragging && (this._isDragging = !1, this._chatbotMinimizedElement.style.position = "fixed", this._chatbotMinimizedElement.style.cursor = "grab");
|
|
23310
23307
|
}, this.setElement = async () => {
|
|
23311
23308
|
const t = document.querySelector("#chatbot"), r = t == null ? void 0 : t.shadowRoot, e = r == null ? void 0 : r.querySelector("#chat-minimizerd-wrapper"), n = e == null ? void 0 : e.shadowRoot, i = n == null ? void 0 : n.querySelector("#chat-minimized.isDraggable");
|
|
23312
23309
|
i instanceof HTMLElement ? this._chatbotMinimizedElement = i : console.warn("Chatbot minimized element not found in shadow DOM");
|
|
@@ -23314,46 +23311,27 @@ let In = class extends fe {
|
|
|
23314
23311
|
this._chatbotMinimizedElement && (this._chatbotMinimizedElement.addEventListener("touchstart", this.handleTouchStart), this._chatbotMinimizedElement.addEventListener("touchmove", this.handleTouchMove), this._chatbotMinimizedElement.addEventListener("touchend", this.handleTouchEnd), this._isEventDraggableSet = !0);
|
|
23315
23312
|
}, this.removeMobileEventListener = () => {
|
|
23316
23313
|
this._chatbotMinimizedElement && (this._chatbotMinimizedElement.removeEventListener("touchstart", this.handleTouchStart), this._chatbotMinimizedElement.removeEventListener("touchmove", this.handleTouchMove), this._chatbotMinimizedElement.removeEventListener("touchend", this.handleTouchEnd), this._isEventDraggableSet = !1);
|
|
23317
|
-
}, this.handleMouseDown = (t) => {
|
|
23318
|
-
this._isDragging = !0, this._lastX = t.clientX, this._lastY = t.clientY;
|
|
23319
|
-
}, this.handleMouseMove = (t) => {
|
|
23320
|
-
if (!this._isDragging) return;
|
|
23321
|
-
const r = t.clientX - this._lastX, e = t.clientY - this._lastY, n = parseInt(
|
|
23322
|
-
window.getComputedStyle(this._chatbotMinimizedElement).getPropertyValue("left")
|
|
23323
|
-
), i = parseInt(
|
|
23324
|
-
window.getComputedStyle(this._chatbotMinimizedElement).getPropertyValue("top")
|
|
23325
|
-
);
|
|
23326
|
-
this._chatbotMinimizedElement.style.bottom = "", this._chatbotMinimizedElement.style.left = `${n + r}px`, this._chatbotMinimizedElement.style.top = `${i + e}px`, this._lastX = t.clientX, this._lastY = t.clientY, this._isClickEventRemoved || (this._isClickEventRemoved = !0);
|
|
23327
|
-
}, this.handleMouseUp = () => {
|
|
23328
|
-
this._isDragging && (this._isDragging = !1, this._chatbotMinimizedElement.style.cursor = "grab");
|
|
23329
|
-
}, this.setDeviceEventListener = () => {
|
|
23330
|
-
this._chatbotMinimizedElement && (this._chatbotMinimizedElement.addEventListener("mousedown", this.handleMouseDown), this._chatbotMinimizedElement.addEventListener("mousemove", this.handleMouseMove), this._chatbotMinimizedElement.addEventListener("mouseup", this.handleMouseUp), this._isEventDraggableSet = !0);
|
|
23331
|
-
}, this.removeDeviceEventListener = () => {
|
|
23332
|
-
this._chatbotMinimizedElement && (this._chatbotMinimizedElement.removeEventListener("mouseup", this.handleMouseUp), this._chatbotMinimizedElement.removeEventListener("mousemove", this.handleMouseMove), this._chatbotMinimizedElement.removeEventListener("mousedown", this.handleMouseDown), this._isEventDraggableSet = !1);
|
|
23333
23314
|
}, this.handleClick = () => {
|
|
23334
23315
|
var t;
|
|
23335
|
-
this._isClickEventRemoved || (this.
|
|
23316
|
+
this._isClickEventRemoved || (this._isMobileDevice && this.removeMobileEventListener(), (t = this.open) == null || t.call(this));
|
|
23336
23317
|
};
|
|
23337
23318
|
}
|
|
23338
23319
|
disconnectedCallback() {
|
|
23339
|
-
this.
|
|
23320
|
+
this._isMobileDevice && this.removeMobileEventListener();
|
|
23340
23321
|
}
|
|
23341
23322
|
firstUpdated() {
|
|
23342
|
-
this.setElement();
|
|
23323
|
+
this._isMobileDevice && this.setElement();
|
|
23343
23324
|
}
|
|
23344
23325
|
updated(t) {
|
|
23345
23326
|
t.has("_isDragging") && !this._isDragging && this._isClickEventRemoved && setTimeout(() => {
|
|
23346
23327
|
this._isClickEventRemoved = !1;
|
|
23347
|
-
}, 200), t.has("_chatbotMinimizedElement") && (this._chatbotMinimizedElement.classList.contains("isDraggable") && !this._isEventDraggableSet ? this.
|
|
23348
|
-
}
|
|
23349
|
-
handleRemoveEventDraggable() {
|
|
23350
|
-
Li() ? this.removeMobileEventListener() : this.removeDeviceEventListener();
|
|
23328
|
+
}, 200), t.has("_chatbotMinimizedElement") && this._isMobileDevice && (this._chatbotMinimizedElement.classList.contains("isDraggable") && !this._isEventDraggableSet ? this.setMobileEventListener() : this.setElement());
|
|
23351
23329
|
}
|
|
23352
23330
|
renderElement() {
|
|
23353
23331
|
return pe`
|
|
23354
23332
|
<div
|
|
23355
23333
|
id="chat-minimized"
|
|
23356
|
-
class
|
|
23334
|
+
class=${this._isMobileDevice ? "isDraggable" : ""}
|
|
23357
23335
|
@click=${this.handleClick}
|
|
23358
23336
|
aria-hidden="false"
|
|
23359
23337
|
aria-label="${be("chatbot:minimized.ariaLabel")}"
|
|
@@ -23371,16 +23349,16 @@ let In = class extends fe {
|
|
|
23371
23349
|
}
|
|
23372
23350
|
};
|
|
23373
23351
|
In.styles = [fe.styles, hh];
|
|
23374
|
-
|
|
23352
|
+
ya([
|
|
23375
23353
|
q({ attribute: !1 })
|
|
23376
23354
|
], In.prototype, "open", 2);
|
|
23377
|
-
|
|
23355
|
+
ya([
|
|
23378
23356
|
dt()
|
|
23379
23357
|
], In.prototype, "_isDragging", 2);
|
|
23380
|
-
|
|
23358
|
+
ya([
|
|
23381
23359
|
dt()
|
|
23382
23360
|
], In.prototype, "_chatbotMinimizedElement", 2);
|
|
23383
|
-
In =
|
|
23361
|
+
In = ya([
|
|
23384
23362
|
Me("lr-chatbot-minimized")
|
|
23385
23363
|
], In);
|
|
23386
23364
|
var p4 = Object.defineProperty, f4 = Object.getOwnPropertyDescriptor, bh = (t) => {
|
|
@@ -23432,7 +23410,7 @@ let It = class extends fe {
|
|
|
23432
23410
|
Jn(this, pi, t);
|
|
23433
23411
|
}
|
|
23434
23412
|
getVersion() {
|
|
23435
|
-
return "LR Chatbot - v0.
|
|
23413
|
+
return "LR Chatbot - v0.36.0";
|
|
23436
23414
|
}
|
|
23437
23415
|
async connectedCallback() {
|
|
23438
23416
|
super.connectedCallback(), this._conversationHistoryTask.run();
|
|
@@ -23516,7 +23494,7 @@ let It = class extends fe {
|
|
|
23516
23494
|
async setDeepChatHistory() {
|
|
23517
23495
|
if (!this.deepChat)
|
|
23518
23496
|
throw Error("Deep Chat should be initialized at this point");
|
|
23519
|
-
this.disableDeepChatTextInput(), [
|
|
23497
|
+
this.disableDeepChatTextInput(), [za.INITIAL, za.ERROR].includes(this._conversationHistoryTask.status) && this._conversationHistoryTask.run();
|
|
23520
23498
|
let t = await this._conversationHistoryTask.taskComplete;
|
|
23521
23499
|
this.setInitialMessages(), t != null && t.messages && (this.deepChat.history = [
|
|
23522
23500
|
...this.deepChat.history ?? [],
|
|
@@ -23579,7 +23557,7 @@ let It = class extends fe {
|
|
|
23579
23557
|
language: this.language.split("-")[0].toLocaleUpperCase(),
|
|
23580
23558
|
question: e,
|
|
23581
23559
|
source: {
|
|
23582
|
-
platform:
|
|
23560
|
+
platform: ko() ? Mw() ? "application_webview" : "mobile_website" : "website",
|
|
23583
23561
|
channel: "web"
|
|
23584
23562
|
},
|
|
23585
23563
|
context: []
|
|
@@ -23743,7 +23721,7 @@ let It = class extends fe {
|
|
|
23743
23721
|
</div>
|
|
23744
23722
|
<div id="chat-wrapper-content">
|
|
23745
23723
|
${this.exitOverlay ? this.renderExitOverlay() : se}
|
|
23746
|
-
${this._conversationHistoryTask.status ===
|
|
23724
|
+
${this._conversationHistoryTask.status === za.PENDING ? pe`<lr-loading-overlay
|
|
23747
23725
|
${ai({
|
|
23748
23726
|
in: tu,
|
|
23749
23727
|
out: eu
|