@2uinc/frontend-component-xpert-chatbot 1.15.4-beta.1 → 1.15.4-beta.2
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/dist/lib/index.min.js +460 -460
- package/package.json +1 -1
package/dist/lib/index.min.js
CHANGED
@@ -1,4 +1,4 @@
|
|
1
|
-
import nt, { createContext as is, useMemo as os, useState as ye, useEffect as
|
1
|
+
import nt, { createContext as is, useMemo as os, useState as ye, useEffect as Me, useContext as Le, useRef as We, forwardRef as Io, createElement as sr, useCallback as Ht } from "react";
|
2
2
|
const as = {
|
3
3
|
xpertKey: "edx",
|
4
4
|
chatApi: {
|
@@ -496,7 +496,7 @@ var en = typeof globalThis < "u" ? globalThis : typeof window < "u" ? window : t
|
|
496
496
|
function it(e) {
|
497
497
|
return e && e.__esModule && Object.prototype.hasOwnProperty.call(e, "default") ? e.default : e;
|
498
498
|
}
|
499
|
-
function
|
499
|
+
function No(e) {
|
500
500
|
if (e.__esModule)
|
501
501
|
return e;
|
502
502
|
var t = e.default;
|
@@ -651,7 +651,7 @@ function ur(e, t) {
|
|
651
651
|
}
|
652
652
|
);
|
653
653
|
}
|
654
|
-
var
|
654
|
+
var Ee = ur(Ms, { path: "/" }), Co = { exports: {} }, xs = "SECRET_DO_NOT_PASS_THIS_OR_YOU_WILL_BE_FIRED", ws = xs, vs = ws;
|
655
655
|
function Ao() {
|
656
656
|
}
|
657
657
|
function So() {
|
@@ -701,16 +701,16 @@ const N = /* @__PURE__ */ it(B);
|
|
701
701
|
var dn = { exports: {} };
|
702
702
|
dn.exports;
|
703
703
|
(function(e, t) {
|
704
|
-
var n = 200, r = "__lodash_hash_undefined__", i = 800, o = 16, a = 9007199254740991, l = "[object Arguments]", s = "[object Array]", u = "[object AsyncFunction]", c = "[object Boolean]", f = "[object Date]", m = "[object Error]", p = "[object Function]", T = "[object GeneratorFunction]", x = "[object Map]", k = "[object Number]", b = "[object Null]", z = "[object Object]", E = "[object Proxy]", _ = "[object RegExp]", Q = "[object Set]", M = "[object String]", L = "[object Undefined]", Y = "[object WeakMap]", q = "[object ArrayBuffer]", J = "[object DataView]", S = "[object Float32Array]", w = "[object Float64Array]", j = "[object Int8Array]", O = "[object Int16Array]", P = "[object Int32Array]", $ = "[object Uint8Array]", G = "[object Uint8ClampedArray]", Z = "[object Uint16Array]", ie = "[object Uint32Array]", h = /[\\^$.*+?()[\]{}|]/g, ne = /^\[object .+?Constructor\]$/,
|
704
|
+
var n = 200, r = "__lodash_hash_undefined__", i = 800, o = 16, a = 9007199254740991, l = "[object Arguments]", s = "[object Array]", u = "[object AsyncFunction]", c = "[object Boolean]", f = "[object Date]", m = "[object Error]", p = "[object Function]", T = "[object GeneratorFunction]", x = "[object Map]", k = "[object Number]", b = "[object Null]", z = "[object Object]", E = "[object Proxy]", _ = "[object RegExp]", Q = "[object Set]", M = "[object String]", L = "[object Undefined]", Y = "[object WeakMap]", q = "[object ArrayBuffer]", J = "[object DataView]", S = "[object Float32Array]", w = "[object Float64Array]", j = "[object Int8Array]", O = "[object Int16Array]", P = "[object Int32Array]", $ = "[object Uint8Array]", G = "[object Uint8ClampedArray]", Z = "[object Uint16Array]", ie = "[object Uint32Array]", h = /[\\^$.*+?()[\]{}|]/g, ne = /^\[object .+?Constructor\]$/, we = /^(?:0|[1-9]\d*)$/, g = {};
|
705
705
|
g[S] = g[w] = g[j] = g[O] = g[P] = g[$] = g[G] = g[Z] = g[ie] = !0, g[l] = g[s] = g[q] = g[c] = g[J] = g[f] = g[m] = g[p] = g[x] = g[k] = g[z] = g[_] = g[Q] = g[M] = g[Y] = !1;
|
706
|
-
var me = typeof en == "object" && en && en.Object === Object && en, De = typeof self == "object" && self && self.Object === Object && self,
|
706
|
+
var me = typeof en == "object" && en && en.Object === Object && en, De = typeof self == "object" && self && self.Object === Object && self, ae = me || De || Function("return this")(), Ie = t && !t.nodeType && t, ve = Ie && !0 && e && !e.nodeType && e, Fe = ve && ve.exports === Ie, Pe = Fe && me.process, Ke = function() {
|
707
707
|
try {
|
708
|
-
var d =
|
709
|
-
return d ||
|
708
|
+
var d = ve && ve.require && ve.require("util").types;
|
709
|
+
return d || Pe && Pe.binding && Pe.binding("util");
|
710
710
|
} catch {
|
711
711
|
}
|
712
712
|
}(), lt = Ke && Ke.isTypedArray;
|
713
|
-
function
|
713
|
+
function It(d, y, D) {
|
714
714
|
switch (D.length) {
|
715
715
|
case 0:
|
716
716
|
return d.call(y);
|
@@ -723,7 +723,7 @@ dn.exports;
|
|
723
723
|
}
|
724
724
|
return d.apply(y, D);
|
725
725
|
}
|
726
|
-
function
|
726
|
+
function Nt(d, y) {
|
727
727
|
for (var D = -1, R = Array(d); ++D < d; )
|
728
728
|
R[D] = y(D);
|
729
729
|
return R;
|
@@ -741,25 +741,25 @@ dn.exports;
|
|
741
741
|
return d(y(D));
|
742
742
|
};
|
743
743
|
}
|
744
|
-
var Je = Array.prototype, jt = Function.prototype, $e = Object.prototype, Ze =
|
744
|
+
var Je = Array.prototype, jt = Function.prototype, $e = Object.prototype, Ze = ae["__core-js_shared__"], F = jt.toString, W = $e.hasOwnProperty, be = function() {
|
745
745
|
var d = /[^.]+$/.exec(Ze && Ze.keys && Ze.keys.IE_PROTO || "");
|
746
746
|
return d ? "Symbol(src)_1." + d : "";
|
747
|
-
}(),
|
747
|
+
}(), se = $e.toString, Te = F.call(Object), I = RegExp(
|
748
748
|
"^" + F.call(W).replace(h, "\\$&").replace(/hasOwnProperty|(function).*?(?=\\\()| for .+?(?=\\\])/g, "$1.*?") + "$"
|
749
|
-
), C =
|
749
|
+
), C = Fe ? ae.Buffer : void 0, U = ae.Symbol, K = ae.Uint8Array, ee = C ? C.allocUnsafe : void 0, de = yt(Object.getPrototypeOf, Object), Ne = Object.create, ke = $e.propertyIsEnumerable, st = Je.splice, Ae = U ? U.toStringTag : void 0, ce = function() {
|
750
750
|
try {
|
751
751
|
var d = Bn(Object, "defineProperty");
|
752
752
|
return d({}, "", {}), d;
|
753
753
|
} catch {
|
754
754
|
}
|
755
|
-
}(), Et = C ? C.isBuffer : void 0,
|
755
|
+
}(), Et = C ? C.isBuffer : void 0, Re = Math.max, rl = Date.now, ri = Bn(ae, "Map"), Ct = Bn(Object, "create"), il = function() {
|
756
756
|
function d() {
|
757
757
|
}
|
758
758
|
return function(y) {
|
759
759
|
if (!ct(y))
|
760
760
|
return {};
|
761
|
-
if (
|
762
|
-
return
|
761
|
+
if (Ne)
|
762
|
+
return Ne(y);
|
763
763
|
d.prototype = y;
|
764
764
|
var D = new d();
|
765
765
|
return d.prototype = void 0, D;
|
@@ -882,20 +882,20 @@ dn.exports;
|
|
882
882
|
return D.set(d, y), this.size = D.size, this;
|
883
883
|
}
|
884
884
|
Mt.prototype.clear = xl, Mt.prototype.delete = wl, Mt.prototype.get = vl, Mt.prototype.has = Tl, Mt.prototype.set = Dl;
|
885
|
-
function
|
886
|
-
var D = Hn(d), R = !D && Yn(d), re = !D && !R && si(d), ue = !D && !R && !re && ci(d), he = D || R || re || ue, te = he ?
|
887
|
-
for (var
|
888
|
-
(y || W.call(d,
|
889
|
-
(
|
890
|
-
re && (
|
891
|
-
ue && (
|
892
|
-
ai(
|
885
|
+
function Il(d, y) {
|
886
|
+
var D = Hn(d), R = !D && Yn(d), re = !D && !R && si(d), ue = !D && !R && !re && ci(d), he = D || R || re || ue, te = he ? Nt(d.length, String) : [], ge = te.length;
|
887
|
+
for (var Ue in d)
|
888
|
+
(y || W.call(d, Ue)) && !(he && // Safari 9 has enumerable `arguments.length` in strict mode.
|
889
|
+
(Ue == "length" || // Node.js 0.10 has enumerable non-index properties on buffers.
|
890
|
+
re && (Ue == "offset" || Ue == "parent") || // PhantomJS 2 has enumerable non-index properties on typed arrays.
|
891
|
+
ue && (Ue == "buffer" || Ue == "byteLength" || Ue == "byteOffset") || // Skip index properties.
|
892
|
+
ai(Ue, ge))) && te.push(Ue);
|
893
893
|
return te;
|
894
894
|
}
|
895
895
|
function Rn(d, y, D) {
|
896
896
|
(D !== void 0 && !Jt(d[y], D) || D === void 0 && !(y in d)) && Un(d, y, D);
|
897
897
|
}
|
898
|
-
function
|
898
|
+
function Nl(d, y, D) {
|
899
899
|
var R = d[y];
|
900
900
|
(!(W.call(d, y) && Jt(R, D)) || D === void 0 && !(y in d)) && Un(d, y, D);
|
901
901
|
}
|
@@ -915,7 +915,7 @@ dn.exports;
|
|
915
915
|
}
|
916
916
|
var kl = Ul();
|
917
917
|
function Xt(d) {
|
918
|
-
return d == null ? d === void 0 ? L : b :
|
918
|
+
return d == null ? d === void 0 ? L : b : Ae && Ae in Object(d) ? Bl(d) : Vl(d);
|
919
919
|
}
|
920
920
|
function ii(d) {
|
921
921
|
return At(d) && Xt(d) == l;
|
@@ -948,17 +948,17 @@ dn.exports;
|
|
948
948
|
}, pi);
|
949
949
|
}
|
950
950
|
function Al(d, y, D, R, re, ue, he) {
|
951
|
-
var te = Qn(d, D), ge = Qn(y, D),
|
952
|
-
if (
|
953
|
-
Rn(d, D,
|
951
|
+
var te = Qn(d, D), ge = Qn(y, D), Ue = he.get(ge);
|
952
|
+
if (Ue) {
|
953
|
+
Rn(d, D, Ue);
|
954
954
|
return;
|
955
955
|
}
|
956
|
-
var
|
956
|
+
var Se = ue ? ue(te, ge, D + "", d, y, he) : void 0, St = Se === void 0;
|
957
957
|
if (St) {
|
958
958
|
var Vn = Hn(ge), Wn = !Vn && si(ge), di = !Vn && !Wn && ci(ge);
|
959
|
-
|
959
|
+
Se = ge, Vn || Wn || di ? Hn(te) ? Se = te : Kl(te) ? Se = Fl(te) : Wn ? (St = !1, Se = zl(ge, !0)) : di ? (St = !1, Se = _l(ge, !0)) : Se = [] : Jl(ge) || Yn(ge) ? (Se = te, Yn(te) ? Se = es(te) : (!ct(te) || qn(te)) && (Se = Ql(ge))) : St = !1;
|
960
960
|
}
|
961
|
-
St && (he.set(ge,
|
961
|
+
St && (he.set(ge, Se), re(Se, ge, R, ue, he), he.delete(ge)), Rn(d, D, Se);
|
962
962
|
}
|
963
963
|
function Sl(d, y) {
|
964
964
|
return Gl(Wl(d, y, fi), d + "");
|
@@ -996,7 +996,7 @@ dn.exports;
|
|
996
996
|
D || (D = {});
|
997
997
|
for (var ue = -1, he = y.length; ++ue < he; ) {
|
998
998
|
var te = y[ue], ge = R ? R(D[te], d[te], te, D, d) : void 0;
|
999
|
-
ge === void 0 && (ge = d[te]), re ? Un(D, te, ge) :
|
999
|
+
ge === void 0 && (ge = d[te]), re ? Un(D, te, ge) : Nl(D, te, ge);
|
1000
1000
|
}
|
1001
1001
|
return D;
|
1002
1002
|
}
|
@@ -1029,21 +1029,21 @@ dn.exports;
|
|
1029
1029
|
return jl(D) ? D : void 0;
|
1030
1030
|
}
|
1031
1031
|
function Bl(d) {
|
1032
|
-
var y = W.call(d,
|
1032
|
+
var y = W.call(d, Ae), D = d[Ae];
|
1033
1033
|
try {
|
1034
|
-
d[
|
1034
|
+
d[Ae] = void 0;
|
1035
1035
|
var R = !0;
|
1036
1036
|
} catch {
|
1037
1037
|
}
|
1038
|
-
var re =
|
1039
|
-
return R && (y ? d[
|
1038
|
+
var re = se.call(d);
|
1039
|
+
return R && (y ? d[Ae] = D : delete d[Ae]), re;
|
1040
1040
|
}
|
1041
1041
|
function Ql(d) {
|
1042
|
-
return typeof d.constructor == "function" && !li(d) ? il(
|
1042
|
+
return typeof d.constructor == "function" && !li(d) ? il(de(d)) : {};
|
1043
1043
|
}
|
1044
1044
|
function ai(d, y) {
|
1045
1045
|
var D = typeof d;
|
1046
|
-
return y = y ?? a, !!y && (D == "number" || D != "symbol" &&
|
1046
|
+
return y = y ?? a, !!y && (D == "number" || D != "symbol" && we.test(d)) && d > -1 && d % 1 == 0 && d < y;
|
1047
1047
|
}
|
1048
1048
|
function Yl(d, y, D) {
|
1049
1049
|
if (!ct(D))
|
@@ -1070,16 +1070,16 @@ dn.exports;
|
|
1070
1070
|
return y;
|
1071
1071
|
}
|
1072
1072
|
function Vl(d) {
|
1073
|
-
return
|
1073
|
+
return se.call(d);
|
1074
1074
|
}
|
1075
1075
|
function Wl(d, y, D) {
|
1076
|
-
return y =
|
1077
|
-
for (var R = arguments, re = -1, ue =
|
1076
|
+
return y = Re(y === void 0 ? d.length - 1 : y, 0), function() {
|
1077
|
+
for (var R = arguments, re = -1, ue = Re(R.length - y, 0), he = Array(ue); ++re < ue; )
|
1078
1078
|
he[re] = R[y + re];
|
1079
1079
|
re = -1;
|
1080
1080
|
for (var te = Array(y + 1); ++re < y; )
|
1081
1081
|
te[re] = R[re];
|
1082
|
-
return te[y] = D(he),
|
1082
|
+
return te[y] = D(he), It(d, this, te);
|
1083
1083
|
};
|
1084
1084
|
}
|
1085
1085
|
function Qn(d, y) {
|
@@ -1118,7 +1118,7 @@ dn.exports;
|
|
1118
1118
|
var Yn = ii(function() {
|
1119
1119
|
return arguments;
|
1120
1120
|
}()) ? ii : function(d) {
|
1121
|
-
return At(d) && W.call(d, "callee") && !
|
1121
|
+
return At(d) && W.call(d, "callee") && !ke.call(d, "callee");
|
1122
1122
|
}, Hn = Array.isArray;
|
1123
1123
|
function $n(d) {
|
1124
1124
|
return d != null && ui(d.length) && !qn(d);
|
@@ -1146,18 +1146,18 @@ dn.exports;
|
|
1146
1146
|
function Jl(d) {
|
1147
1147
|
if (!At(d) || Xt(d) != z)
|
1148
1148
|
return !1;
|
1149
|
-
var y =
|
1149
|
+
var y = de(d);
|
1150
1150
|
if (y === null)
|
1151
1151
|
return !0;
|
1152
1152
|
var D = W.call(y, "constructor") && y.constructor;
|
1153
|
-
return typeof D == "function" && D instanceof D && F.call(D) ==
|
1153
|
+
return typeof D == "function" && D instanceof D && F.call(D) == Te;
|
1154
1154
|
}
|
1155
1155
|
var ci = lt ? kt(lt) : El;
|
1156
1156
|
function es(d) {
|
1157
1157
|
return Pl(d, pi(d));
|
1158
1158
|
}
|
1159
1159
|
function pi(d) {
|
1160
|
-
return $n(d) ?
|
1160
|
+
return $n(d) ? Il(d, !0) : Cl(d);
|
1161
1161
|
}
|
1162
1162
|
var ts = Rl(function(d, y, D) {
|
1163
1163
|
oi(d, y, D);
|
@@ -1176,7 +1176,7 @@ dn.exports;
|
|
1176
1176
|
e.exports = ts;
|
1177
1177
|
})(dn, dn.exports);
|
1178
1178
|
var Ds = dn.exports;
|
1179
|
-
const Oo = /* @__PURE__ */ it(Ds),
|
1179
|
+
const Oo = /* @__PURE__ */ it(Ds), Is = {
|
1180
1180
|
xpertKey: "exec-ed-ss-olc-moodle",
|
1181
1181
|
chatApi: {
|
1182
1182
|
endpoint: "https://xpert-platform-services-api.prod.ai.2u.com/xpert/omnichannel",
|
@@ -1288,17 +1288,17 @@ const Oo = /* @__PURE__ */ it(Ds), Ns = {
|
|
1288
1288
|
}
|
1289
1289
|
}
|
1290
1290
|
}
|
1291
|
-
},
|
1291
|
+
}, Ns = {
|
1292
1292
|
edx: as,
|
1293
1293
|
"get-smarter": ss,
|
1294
1294
|
"speech-emerson": ls,
|
1295
|
-
"exec-ed-ss-olc-moodle":
|
1295
|
+
"exec-ed-ss-olc-moodle": Is,
|
1296
1296
|
"degrees-canvas-support": us,
|
1297
1297
|
"degrees-moodle-support": cs
|
1298
1298
|
}, ks = (e, t = {}) => {
|
1299
1299
|
if (!e && (!t || Object.keys(t).length === 0))
|
1300
1300
|
throw new Error("xpertKey or configurations is required");
|
1301
|
-
const n =
|
1301
|
+
const n = Ns[e] || {};
|
1302
1302
|
return Oo(n, t);
|
1303
1303
|
}, js = ks, zo = is({}), Lo = ({
|
1304
1304
|
children: e,
|
@@ -1388,7 +1388,7 @@ Lo.propTypes = {
|
|
1388
1388
|
}).isRequired
|
1389
1389
|
})
|
1390
1390
|
};
|
1391
|
-
const
|
1391
|
+
const _e = zo;
|
1392
1392
|
var _o = { exports: {} };
|
1393
1393
|
/*!
|
1394
1394
|
Copyright (c) 2018 Jed Watson.
|
@@ -1430,7 +1430,7 @@ const Fo = /* @__PURE__ */ it(Es), mi = 991, Cs = () => {
|
|
1430
1430
|
const [e, t] = ye(
|
1431
1431
|
window.innerWidth < mi
|
1432
1432
|
);
|
1433
|
-
return
|
1433
|
+
return Me(() => {
|
1434
1434
|
const n = () => {
|
1435
1435
|
t(window.innerWidth < mi);
|
1436
1436
|
};
|
@@ -1487,7 +1487,7 @@ const Ot = "data:image/svg+xml;base64,PHN2ZyB4bWxucz0iaHR0cDovL3d3dy53My5vcmcvMj
|
|
1487
1487
|
"degrees-moodle-support": Ot
|
1488
1488
|
}, jr = ({ handleFloatingActionButtonClick: e }) => {
|
1489
1489
|
var i, o;
|
1490
|
-
const { xpertKey: t, launchButton: n } =
|
1490
|
+
const { xpertKey: t, launchButton: n } = Le(_e), r = ot();
|
1491
1491
|
return /* @__PURE__ */ v.jsx(
|
1492
1492
|
wn,
|
1493
1493
|
{
|
@@ -1523,10 +1523,10 @@ eyes follow your mouse when you hover near it.`, Er = ({
|
|
1523
1523
|
handleFloatingActionButtonClick: e
|
1524
1524
|
}) => {
|
1525
1525
|
var m, p, T, x, k, b, z;
|
1526
|
-
const { xpertKey: t, launchButton: n } =
|
1526
|
+
const { xpertKey: t, launchButton: n } = Le(_e), r = !Ee.get(
|
1527
1527
|
`${t}-proactive-message-xpert-chatbot`
|
1528
1528
|
), i = We(null), o = We(!1), a = r ? (m = n.animatedGraduate) == null ? void 0 : m.delayMs : ((p = n.animatedGraduate) == null ? void 0 : p.delayMs) * 2, [l, s] = ye(!1), u = ot();
|
1529
|
-
|
1529
|
+
Me(() => {
|
1530
1530
|
const _ = setTimeout(
|
1531
1531
|
() => {
|
1532
1532
|
s(!0);
|
@@ -1536,7 +1536,7 @@ eyes follow your mouse when you hover near it.`, Er = ({
|
|
1536
1536
|
return () => {
|
1537
1537
|
clearTimeout(_);
|
1538
1538
|
};
|
1539
|
-
}, [a]),
|
1539
|
+
}, [a]), Me(() => {
|
1540
1540
|
const E = (_) => {
|
1541
1541
|
const Q = window.matchMedia(
|
1542
1542
|
`(max-width: ${Os}px)`
|
@@ -1731,7 +1731,7 @@ Er.defaultProps = {
|
|
1731
1731
|
const Ls = Er;
|
1732
1732
|
const _s = () => {
|
1733
1733
|
var n;
|
1734
|
-
const e = ot(), { launchButton: t } =
|
1734
|
+
const e = ot(), { launchButton: t } = Le(_e);
|
1735
1735
|
return (n = t.message) != null && n.enabled ? /* @__PURE__ */ v.jsx(
|
1736
1736
|
"div",
|
1737
1737
|
{
|
@@ -2158,12 +2158,12 @@ var xi = {
|
|
2158
2158
|
* @returns {HTMLElement|undefined} The next tabbable node, if any.
|
2159
2159
|
*/
|
2160
2160
|
nextTabbableNode: function(ne) {
|
2161
|
-
var
|
2162
|
-
return g < 0 ?
|
2161
|
+
var we = arguments.length > 1 && arguments[1] !== void 0 ? arguments[1] : !0, g = j.indexOf(ne);
|
2162
|
+
return g < 0 ? we ? O.slice(O.indexOf(ne) + 1).find(function(me) {
|
2163
2163
|
return pt(me);
|
2164
2164
|
}) : O.slice(0, O.indexOf(ne)).reverse().find(function(me) {
|
2165
2165
|
return pt(me);
|
2166
|
-
}) : j[g + (
|
2166
|
+
}) : j[g + (we ? 1 : -1)];
|
2167
2167
|
}
|
2168
2168
|
};
|
2169
2169
|
}), a.tabbableGroups = a.containerGroups.filter(function(w) {
|
@@ -2200,19 +2200,19 @@ var xi = {
|
|
2200
2200
|
if (Z < 0)
|
2201
2201
|
$ ? G = a.tabbableGroups[a.tabbableGroups.length - 1].lastTabbableNode : G = a.tabbableGroups[0].firstTabbableNode;
|
2202
2202
|
else if ($) {
|
2203
|
-
var h = vi(a.tabbableGroups, function(
|
2204
|
-
var
|
2205
|
-
return j ===
|
2203
|
+
var h = vi(a.tabbableGroups, function(ae) {
|
2204
|
+
var Ie = ae.firstTabbableNode;
|
2205
|
+
return j === Ie;
|
2206
2206
|
});
|
2207
2207
|
if (h < 0 && (ie.container === j || sn(j, o.tabbableOptions) && !pt(j, o.tabbableOptions) && !ie.nextTabbableNode(j, !1)) && (h = Z), h >= 0) {
|
2208
|
-
var ne = h === 0 ? a.tabbableGroups.length - 1 : h - 1,
|
2209
|
-
G = tt(j) >= 0 ?
|
2208
|
+
var ne = h === 0 ? a.tabbableGroups.length - 1 : h - 1, we = a.tabbableGroups[ne];
|
2209
|
+
G = tt(j) >= 0 ? we.lastTabbableNode : we.lastDomTabbableNode;
|
2210
2210
|
} else
|
2211
2211
|
Rt(O) || (G = ie.nextTabbableNode(j, !1));
|
2212
2212
|
} else {
|
2213
|
-
var g = vi(a.tabbableGroups, function(
|
2214
|
-
var
|
2215
|
-
return j ===
|
2213
|
+
var g = vi(a.tabbableGroups, function(ae) {
|
2214
|
+
var Ie = ae.lastTabbableNode;
|
2215
|
+
return j === Ie;
|
2216
2216
|
});
|
2217
2217
|
if (g < 0 && (ie.container === j || sn(j, o.tabbableOptions) && !pt(j, o.tabbableOptions) && !ie.nextTabbableNode(j)) && (g = Z), g >= 0) {
|
2218
2218
|
var me = g === a.tabbableGroups.length - 1 ? 0 : g + 1, De = a.tabbableGroups[me];
|
@@ -2383,7 +2383,7 @@ var xi = {
|
|
2383
2383
|
const uu = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineProperty({
|
2384
2384
|
__proto__: null,
|
2385
2385
|
createFocusTrap: su
|
2386
|
-
}, Symbol.toStringTag, { value: "Module" })), cu = /* @__PURE__ */
|
2386
|
+
}, Symbol.toStringTag, { value: "Module" })), cu = /* @__PURE__ */ No(uu), pu = /* @__PURE__ */ No(Js);
|
2387
2387
|
function vt(e) {
|
2388
2388
|
"@babel/helpers - typeof";
|
2389
2389
|
return vt = typeof Symbol == "function" && typeof Symbol.iterator == "symbol" ? function(t) {
|
@@ -2718,7 +2718,7 @@ Cr.defaultProps = {
|
|
2718
2718
|
_createFocusTrap: wu
|
2719
2719
|
};
|
2720
2720
|
var Du = Cr;
|
2721
|
-
const
|
2721
|
+
const Iu = /* @__PURE__ */ it(Du);
|
2722
2722
|
function Ar({
|
2723
2723
|
style: e,
|
2724
2724
|
className: t,
|
@@ -2728,7 +2728,7 @@ function Ar({
|
|
2728
2728
|
}) {
|
2729
2729
|
const o = ot(), a = We(null);
|
2730
2730
|
return /* @__PURE__ */ v.jsx(
|
2731
|
-
|
2731
|
+
Iu,
|
2732
2732
|
{
|
2733
2733
|
focusTrapOptions: {
|
2734
2734
|
clickOutsideDeactivates: !0,
|
@@ -2791,14 +2791,14 @@ const Wo = Object.freeze(
|
|
2791
2791
|
body: "",
|
2792
2792
|
hidden: !1
|
2793
2793
|
});
|
2794
|
-
function
|
2794
|
+
function Nu(e, t) {
|
2795
2795
|
const n = {};
|
2796
2796
|
!e.hFlip != !t.hFlip && (n.hFlip = !0), !e.vFlip != !t.vFlip && (n.vFlip = !0);
|
2797
2797
|
const r = ((e.rotate || 0) + (t.rotate || 0)) % 4;
|
2798
2798
|
return r && (n.rotate = r), n;
|
2799
2799
|
}
|
2800
2800
|
function Di(e, t) {
|
2801
|
-
const n =
|
2801
|
+
const n = Nu(e, t);
|
2802
2802
|
for (const r in fr)
|
2803
2803
|
r in Mn ? r in e && !(r in n) && (n[r] = Mn[r]) : r in t ? n[r] = t[r] : r in e && (n[r] = e[r]);
|
2804
2804
|
return n;
|
@@ -2916,7 +2916,7 @@ function Zo(e) {
|
|
2916
2916
|
}
|
2917
2917
|
return t;
|
2918
2918
|
}
|
2919
|
-
const
|
2919
|
+
const Ii = /* @__PURE__ */ Object.create(null);
|
2920
2920
|
function Cu(e, t) {
|
2921
2921
|
return {
|
2922
2922
|
provider: e,
|
@@ -2926,7 +2926,7 @@ function Cu(e, t) {
|
|
2926
2926
|
};
|
2927
2927
|
}
|
2928
2928
|
function ht(e, t) {
|
2929
|
-
const n =
|
2929
|
+
const n = Ii[e] || (Ii[e] = /* @__PURE__ */ Object.create(null));
|
2930
2930
|
return n[t] || (n[t] = Cu(e, t));
|
2931
2931
|
}
|
2932
2932
|
function Or(e, t) {
|
@@ -2946,7 +2946,7 @@ let $t = !1;
|
|
2946
2946
|
function Xo(e) {
|
2947
2947
|
return typeof e == "boolean" && ($t = e), $t;
|
2948
2948
|
}
|
2949
|
-
function
|
2949
|
+
function Ni(e) {
|
2950
2950
|
const t = typeof e == "string" ? vn(e, !0, $t) : e;
|
2951
2951
|
if (t) {
|
2952
2952
|
const n = ht(t.provider, t.prefix), r = t.name;
|
@@ -3809,7 +3809,7 @@ function Dc(e) {
|
|
3809
3809
|
return 'url("' + Tc(e) + '")';
|
3810
3810
|
}
|
3811
3811
|
let Bt;
|
3812
|
-
function
|
3812
|
+
function Ic() {
|
3813
3813
|
try {
|
3814
3814
|
Bt = window.trustedTypes.createPolicy("iconify", {
|
3815
3815
|
// eslint-disable-next-line @typescript-eslint/no-unsafe-return
|
@@ -3819,8 +3819,8 @@ function Nc() {
|
|
3819
3819
|
Bt = null;
|
3820
3820
|
}
|
3821
3821
|
}
|
3822
|
-
function
|
3823
|
-
return Bt === void 0 &&
|
3822
|
+
function Nc(e) {
|
3823
|
+
return Bt === void 0 && Ic(), Bt ? Bt.createHTML(e) : e;
|
3824
3824
|
}
|
3825
3825
|
const sa = {
|
3826
3826
|
...Jo,
|
@@ -3920,7 +3920,7 @@ const Cc = (e, t, n) => {
|
|
3920
3920
|
}, Object.assign(s, c);
|
3921
3921
|
let k = 0, b = t.id;
|
3922
3922
|
return typeof b == "string" && (b = b.replace(/-/g, "_")), s.dangerouslySetInnerHTML = {
|
3923
|
-
__html:
|
3923
|
+
__html: Nc(Hu(u.body, b ? () => b + "ID" + k++ : "iconifyReact"))
|
3924
3924
|
}, sr("svg", s);
|
3925
3925
|
}
|
3926
3926
|
const { body: f, width: m, height: p } = e, T = o === "mask" || (o === "bg" ? !1 : f.indexOf("currentColor") !== -1), x = wc(f, {
|
@@ -3982,7 +3982,7 @@ function ca(e) {
|
|
3982
3982
|
name: "",
|
3983
3983
|
data: T
|
3984
3984
|
};
|
3985
|
-
const x =
|
3985
|
+
const x = Ni(T);
|
3986
3986
|
if (x)
|
3987
3987
|
return {
|
3988
3988
|
name: T,
|
@@ -4012,7 +4012,7 @@ function ca(e) {
|
|
4012
4012
|
});
|
4013
4013
|
return;
|
4014
4014
|
}
|
4015
|
-
const x =
|
4015
|
+
const x = Ni(T);
|
4016
4016
|
if (u({
|
4017
4017
|
name: T,
|
4018
4018
|
data: x
|
@@ -4025,7 +4025,7 @@ function ca(e) {
|
|
4025
4025
|
} else
|
4026
4026
|
x && ((p = e.onLoad) === null || p === void 0 || p.call(e, T));
|
4027
4027
|
}
|
4028
|
-
|
4028
|
+
Me(() => (n(!0), s), []), Me(() => {
|
4029
4029
|
t && c();
|
4030
4030
|
}, [e.icon, t]);
|
4031
4031
|
const { name: f, data: m } = a;
|
@@ -4034,11 +4034,11 @@ function ca(e) {
|
|
4034
4034
|
...m
|
4035
4035
|
}, e, f) : e.children ? e.children : sr("span", {});
|
4036
4036
|
}
|
4037
|
-
const rt =
|
4037
|
+
const rt = Io((e, t) => ca({
|
4038
4038
|
...e,
|
4039
4039
|
_ref: t
|
4040
4040
|
}));
|
4041
|
-
|
4041
|
+
Io((e, t) => ca({
|
4042
4042
|
inline: !0,
|
4043
4043
|
...e,
|
4044
4044
|
_ref: t
|
@@ -4208,7 +4208,7 @@ function da({
|
|
4208
4208
|
onClose: i
|
4209
4209
|
}) {
|
4210
4210
|
var s, u, c, f, m, p, T, x, k;
|
4211
|
-
const { primaryColor: o, conversationScreen: a } =
|
4211
|
+
const { primaryColor: o, conversationScreen: a } = Le(_e), l = ot();
|
4212
4212
|
return /* @__PURE__ */ v.jsxs(
|
4213
4213
|
"div",
|
4214
4214
|
{
|
@@ -4317,7 +4317,7 @@ function Pi(e) {
|
|
4317
4317
|
function Ri(e) {
|
4318
4318
|
return e && typeof e == "number" ? e : 1;
|
4319
4319
|
}
|
4320
|
-
class
|
4320
|
+
class Qe extends Error {
|
4321
4321
|
/**
|
4322
4322
|
* Create a message for `reason` at `place` from `origin`.
|
4323
4323
|
*
|
@@ -4351,17 +4351,17 @@ class Ue extends Error {
|
|
4351
4351
|
n && ("type" in n || "position" in n ? n.position && (o = n.position) : "start" in n || "end" in n ? o = n : ("line" in n || "column" in n) && (o.start = n)), this.name = Qt(n) || "1:1", this.message = typeof t == "object" ? t.message : t, this.stack = "", typeof t == "object" && t.stack && (this.stack = t.stack), this.reason = this.message, this.fatal, this.line = o.start.line, this.column = o.start.column, this.position = o, this.source = i[0], this.ruleId = i[1], this.file, this.actual, this.expected, this.url, this.note;
|
4352
4352
|
}
|
4353
4353
|
}
|
4354
|
-
|
4355
|
-
|
4356
|
-
|
4357
|
-
|
4358
|
-
|
4359
|
-
|
4360
|
-
|
4361
|
-
|
4362
|
-
|
4363
|
-
|
4364
|
-
|
4354
|
+
Qe.prototype.file = "";
|
4355
|
+
Qe.prototype.name = "";
|
4356
|
+
Qe.prototype.reason = "";
|
4357
|
+
Qe.prototype.message = "";
|
4358
|
+
Qe.prototype.stack = "";
|
4359
|
+
Qe.prototype.fatal = null;
|
4360
|
+
Qe.prototype.column = null;
|
4361
|
+
Qe.prototype.line = null;
|
4362
|
+
Qe.prototype.source = null;
|
4363
|
+
Qe.prototype.ruleId = null;
|
4364
|
+
Qe.prototype.position = null;
|
4365
4365
|
const qe = { basename: _c, dirname: Fc, extname: Pc, join: Rc, sep: "/" };
|
4366
4366
|
function _c(e, t) {
|
4367
4367
|
if (t !== void 0 && typeof t != "string")
|
@@ -4673,7 +4673,7 @@ class ga {
|
|
4673
4673
|
* Message.
|
4674
4674
|
*/
|
4675
4675
|
message(t, n, r) {
|
4676
|
-
const i = new
|
4676
|
+
const i = new Qe(t, n, r);
|
4677
4677
|
return this.path && (i.name = this.path + ":" + i.name, i.file = this.path), i.fatal = !1, this.messages.push(i), i;
|
4678
4678
|
}
|
4679
4679
|
/**
|
@@ -5055,7 +5055,7 @@ function Ge(e, t, n, r) {
|
|
5055
5055
|
for (n && e.splice(t, n); o < r.length; )
|
5056
5056
|
a = r.slice(o, o + 1e4), a.unshift(t, 0), e.splice(...a), o += 1e4, t += 1e4;
|
5057
5057
|
}
|
5058
|
-
function
|
5058
|
+
function Be(e, t) {
|
5059
5059
|
return e.length > 0 ? (Ge(e, e.length, 0, t), e) : t;
|
5060
5060
|
}
|
5061
5061
|
const Ji = {}.hasOwnProperty;
|
@@ -5090,7 +5090,7 @@ function op(e, t) {
|
|
5090
5090
|
(t[n].add === "after" ? e : r).push(t[n]);
|
5091
5091
|
Ge(e, 0, 0, r);
|
5092
5092
|
}
|
5093
|
-
const ap = /[!-\/:-@\[-`\{-~\xA1\xA7\xAB\xB6\xB7\xBB\xBF\u037E\u0387\u055A-\u055F\u0589\u058A\u05BE\u05C0\u05C3\u05C6\u05F3\u05F4\u0609\u060A\u060C\u060D\u061B\u061D-\u061F\u066A-\u066D\u06D4\u0700-\u070D\u07F7-\u07F9\u0830-\u083E\u085E\u0964\u0965\u0970\u09FD\u0A76\u0AF0\u0C77\u0C84\u0DF4\u0E4F\u0E5A\u0E5B\u0F04-\u0F12\u0F14\u0F3A-\u0F3D\u0F85\u0FD0-\u0FD4\u0FD9\u0FDA\u104A-\u104F\u10FB\u1360-\u1368\u1400\u166E\u169B\u169C\u16EB-\u16ED\u1735\u1736\u17D4-\u17D6\u17D8-\u17DA\u1800-\u180A\u1944\u1945\u1A1E\u1A1F\u1AA0-\u1AA6\u1AA8-\u1AAD\u1B5A-\u1B60\u1B7D\u1B7E\u1BFC-\u1BFF\u1C3B-\u1C3F\u1C7E\u1C7F\u1CC0-\u1CC7\u1CD3\u2010-\u2027\u2030-\u2043\u2045-\u2051\u2053-\u205E\u207D\u207E\u208D\u208E\u2308-\u230B\u2329\u232A\u2768-\u2775\u27C5\u27C6\u27E6-\u27EF\u2983-\u2998\u29D8-\u29DB\u29FC\u29FD\u2CF9-\u2CFC\u2CFE\u2CFF\u2D70\u2E00-\u2E2E\u2E30-\u2E4F\u2E52-\u2E5D\u3001-\u3003\u3008-\u3011\u3014-\u301F\u3030\u303D\u30A0\u30FB\uA4FE\uA4FF\uA60D-\uA60F\uA673\uA67E\uA6F2-\uA6F7\uA874-\uA877\uA8CE\uA8CF\uA8F8-\uA8FA\uA8FC\uA92E\uA92F\uA95F\uA9C1-\uA9CD\uA9DE\uA9DF\uAA5C-\uAA5F\uAADE\uAADF\uAAF0\uAAF1\uABEB\uFD3E\uFD3F\uFE10-\uFE19\uFE30-\uFE52\uFE54-\uFE61\uFE63\uFE68\uFE6A\uFE6B\uFF01-\uFF03\uFF05-\uFF0A\uFF0C-\uFF0F\uFF1A\uFF1B\uFF1F\uFF20\uFF3B-\uFF3D\uFF3F\uFF5B\uFF5D\uFF5F-\uFF65]/, Ve = at(/[A-Za-z]/),
|
5093
|
+
const ap = /[!-\/:-@\[-`\{-~\xA1\xA7\xAB\xB6\xB7\xBB\xBF\u037E\u0387\u055A-\u055F\u0589\u058A\u05BE\u05C0\u05C3\u05C6\u05F3\u05F4\u0609\u060A\u060C\u060D\u061B\u061D-\u061F\u066A-\u066D\u06D4\u0700-\u070D\u07F7-\u07F9\u0830-\u083E\u085E\u0964\u0965\u0970\u09FD\u0A76\u0AF0\u0C77\u0C84\u0DF4\u0E4F\u0E5A\u0E5B\u0F04-\u0F12\u0F14\u0F3A-\u0F3D\u0F85\u0FD0-\u0FD4\u0FD9\u0FDA\u104A-\u104F\u10FB\u1360-\u1368\u1400\u166E\u169B\u169C\u16EB-\u16ED\u1735\u1736\u17D4-\u17D6\u17D8-\u17DA\u1800-\u180A\u1944\u1945\u1A1E\u1A1F\u1AA0-\u1AA6\u1AA8-\u1AAD\u1B5A-\u1B60\u1B7D\u1B7E\u1BFC-\u1BFF\u1C3B-\u1C3F\u1C7E\u1C7F\u1CC0-\u1CC7\u1CD3\u2010-\u2027\u2030-\u2043\u2045-\u2051\u2053-\u205E\u207D\u207E\u208D\u208E\u2308-\u230B\u2329\u232A\u2768-\u2775\u27C5\u27C6\u27E6-\u27EF\u2983-\u2998\u29D8-\u29DB\u29FC\u29FD\u2CF9-\u2CFC\u2CFE\u2CFF\u2D70\u2E00-\u2E2E\u2E30-\u2E4F\u2E52-\u2E5D\u3001-\u3003\u3008-\u3011\u3014-\u301F\u3030\u303D\u30A0\u30FB\uA4FE\uA4FF\uA60D-\uA60F\uA673\uA67E\uA6F2-\uA6F7\uA874-\uA877\uA8CE\uA8CF\uA8F8-\uA8FA\uA8FC\uA92E\uA92F\uA95F\uA9C1-\uA9CD\uA9DE\uA9DF\uAA5C-\uAA5F\uAADE\uAADF\uAAF0\uAAF1\uABEB\uFD3E\uFD3F\uFE10-\uFE19\uFE30-\uFE52\uFE54-\uFE61\uFE63\uFE68\uFE6A\uFE6B\uFF01-\uFF03\uFF05-\uFF0A\uFF0C-\uFF0F\uFF1A\uFF1B\uFF1F\uFF20\uFF3B-\uFF3D\uFF3F\uFF5B\uFF5D\uFF5F-\uFF65]/, Ve = at(/[A-Za-z]/), ze = at(/[\dA-Za-z]/), lp = at(/[#-'*+\--9=?A-Z^-~]/);
|
5094
5094
|
function vr(e) {
|
5095
5095
|
return (
|
5096
5096
|
// Special whitespace codes (which have negative values), C0 and Control
|
@@ -5102,10 +5102,10 @@ const Tr = at(/\d/), sp = at(/[\dA-Fa-f]/), up = at(/[!-/:-@[-`{-~]/);
|
|
5102
5102
|
function V(e) {
|
5103
5103
|
return e !== null && e < -2;
|
5104
5104
|
}
|
5105
|
-
function
|
5105
|
+
function Ce(e) {
|
5106
5106
|
return e !== null && (e < 0 || e === 32);
|
5107
5107
|
}
|
5108
|
-
function
|
5108
|
+
function oe(e) {
|
5109
5109
|
return e === -2 || e === -1 || e === 32;
|
5110
5110
|
}
|
5111
5111
|
const cp = at(ap), pp = at(/\s/);
|
@@ -5120,10 +5120,10 @@ function fe(e, t, n, r) {
|
|
5120
5120
|
let o = 0;
|
5121
5121
|
return a;
|
5122
5122
|
function a(s) {
|
5123
|
-
return
|
5123
|
+
return oe(s) ? (e.enter(n), l(s)) : t(s);
|
5124
5124
|
}
|
5125
5125
|
function l(s) {
|
5126
|
-
return
|
5126
|
+
return oe(s) && o++ < i ? (e.consume(s), l) : (e.exit(n), t(s));
|
5127
5127
|
}
|
5128
5128
|
}
|
5129
5129
|
const fp = {
|
@@ -5306,7 +5306,7 @@ function mp(e, t, n) {
|
|
5306
5306
|
);
|
5307
5307
|
}
|
5308
5308
|
function to(e) {
|
5309
|
-
if (e === null ||
|
5309
|
+
if (e === null || Ce(e) || pp(e))
|
5310
5310
|
return 1;
|
5311
5311
|
if (cp(e))
|
5312
5312
|
return 2;
|
@@ -5352,27 +5352,27 @@ function yp(e, t) {
|
|
5352
5352
|
type: s > 1 ? "strong" : "emphasis",
|
5353
5353
|
start: Object.assign({}, a.start),
|
5354
5354
|
end: Object.assign({}, l.end)
|
5355
|
-
}, e[r][1].end = Object.assign({}, a.start), e[n][1].start = Object.assign({}, l.end), u = [], e[r][1].end.offset - e[r][1].start.offset && (u =
|
5355
|
+
}, e[r][1].end = Object.assign({}, a.start), e[n][1].start = Object.assign({}, l.end), u = [], e[r][1].end.offset - e[r][1].start.offset && (u = Be(u, [
|
5356
5356
|
["enter", e[r][1], t],
|
5357
5357
|
["exit", e[r][1], t]
|
5358
|
-
])), u =
|
5358
|
+
])), u = Be(u, [
|
5359
5359
|
["enter", i, t],
|
5360
5360
|
["enter", a, t],
|
5361
5361
|
["exit", a, t],
|
5362
5362
|
["enter", o, t]
|
5363
|
-
]), u =
|
5363
|
+
]), u = Be(
|
5364
5364
|
u,
|
5365
5365
|
Ur(
|
5366
5366
|
t.parser.constructs.insideSpan.null,
|
5367
5367
|
e.slice(r + 1, n),
|
5368
5368
|
t
|
5369
5369
|
)
|
5370
|
-
), u =
|
5370
|
+
), u = Be(u, [
|
5371
5371
|
["exit", o, t],
|
5372
5372
|
["enter", l, t],
|
5373
5373
|
["exit", l, t],
|
5374
5374
|
["exit", i, t]
|
5375
|
-
]), e[n][1].end.offset - e[n][1].start.offset ? (c = 2, u =
|
5375
|
+
]), e[n][1].end.offset - e[n][1].start.offset ? (c = 2, u = Be(u, [
|
5376
5376
|
["enter", e[n][1], t],
|
5377
5377
|
["exit", e[n][1], t]
|
5378
5378
|
])) : c = 0, Ge(e, r - 1, n - r + 3, u), n = r + u.length - c - 2;
|
@@ -5414,10 +5414,10 @@ function xp(e, t, n) {
|
|
5414
5414
|
return Ve(p) ? (e.consume(p), a) : u(p);
|
5415
5415
|
}
|
5416
5416
|
function a(p) {
|
5417
|
-
return p === 43 || p === 45 || p === 46 ||
|
5417
|
+
return p === 43 || p === 45 || p === 46 || ze(p) ? (r = 1, l(p)) : u(p);
|
5418
5418
|
}
|
5419
5419
|
function l(p) {
|
5420
|
-
return p === 58 ? (e.consume(p), r = 0, s) : (p === 43 || p === 45 || p === 46 ||
|
5420
|
+
return p === 58 ? (e.consume(p), r = 0, s) : (p === 43 || p === 45 || p === 46 || ze(p)) && r++ < 32 ? (e.consume(p), l) : (r = 0, u(p));
|
5421
5421
|
}
|
5422
5422
|
function s(p) {
|
5423
5423
|
return p === 62 ? (e.exit("autolinkProtocol"), e.enter("autolinkMarker"), e.consume(p), e.exit("autolinkMarker"), e.exit("autolink"), t) : p === null || p === 32 || p === 60 || vr(p) ? n(p) : (e.consume(p), s);
|
@@ -5426,13 +5426,13 @@ function xp(e, t, n) {
|
|
5426
5426
|
return p === 64 ? (e.consume(p), c) : lp(p) ? (e.consume(p), u) : n(p);
|
5427
5427
|
}
|
5428
5428
|
function c(p) {
|
5429
|
-
return
|
5429
|
+
return ze(p) ? f(p) : n(p);
|
5430
5430
|
}
|
5431
5431
|
function f(p) {
|
5432
5432
|
return p === 46 ? (e.consume(p), r = 0, c) : p === 62 ? (e.exit("autolinkProtocol").type = "autolinkEmail", e.enter("autolinkMarker"), e.consume(p), e.exit("autolinkMarker"), e.exit("autolink"), t) : m(p);
|
5433
5433
|
}
|
5434
5434
|
function m(p) {
|
5435
|
-
if ((p === 45 ||
|
5435
|
+
if ((p === 45 || ze(p)) && r++ < 63) {
|
5436
5436
|
const T = p === 45 ? m : f;
|
5437
5437
|
return e.consume(p), T;
|
5438
5438
|
}
|
@@ -5446,7 +5446,7 @@ const Dn = {
|
|
5446
5446
|
function wp(e, t, n) {
|
5447
5447
|
return r;
|
5448
5448
|
function r(o) {
|
5449
|
-
return
|
5449
|
+
return oe(o) ? fe(e, i, "linePrefix")(o) : i(o);
|
5450
5450
|
}
|
5451
5451
|
function i(o) {
|
5452
5452
|
return o === null || V(o) ? t(o) : n(o);
|
@@ -5473,14 +5473,14 @@ function vp(e, t, n) {
|
|
5473
5473
|
return n(a);
|
5474
5474
|
}
|
5475
5475
|
function o(a) {
|
5476
|
-
return
|
5476
|
+
return oe(a) ? (e.enter("blockQuotePrefixWhitespace"), e.consume(a), e.exit("blockQuotePrefixWhitespace"), e.exit("blockQuotePrefix"), t) : (e.exit("blockQuotePrefix"), t(a));
|
5477
5477
|
}
|
5478
5478
|
}
|
5479
5479
|
function Tp(e, t, n) {
|
5480
5480
|
const r = this;
|
5481
5481
|
return i;
|
5482
5482
|
function i(a) {
|
5483
|
-
return
|
5483
|
+
return oe(a) ? fe(
|
5484
5484
|
e,
|
5485
5485
|
o,
|
5486
5486
|
"linePrefix",
|
@@ -5496,9 +5496,9 @@ function Dp(e) {
|
|
5496
5496
|
}
|
5497
5497
|
const wa = {
|
5498
5498
|
name: "characterEscape",
|
5499
|
-
tokenize:
|
5499
|
+
tokenize: Ip
|
5500
5500
|
};
|
5501
|
-
function
|
5501
|
+
function Ip(e, t, n) {
|
5502
5502
|
return r;
|
5503
5503
|
function r(o) {
|
5504
5504
|
return e.enter("characterEscape"), e.enter("escapeMarker"), e.consume(o), e.exit("escapeMarker"), i;
|
@@ -5516,9 +5516,9 @@ function Br(e) {
|
|
5516
5516
|
}
|
5517
5517
|
const va = {
|
5518
5518
|
name: "characterReference",
|
5519
|
-
tokenize:
|
5519
|
+
tokenize: Np
|
5520
5520
|
};
|
5521
|
-
function
|
5521
|
+
function Np(e, t, n) {
|
5522
5522
|
const r = this;
|
5523
5523
|
let i = 0, o, a;
|
5524
5524
|
return l;
|
@@ -5526,7 +5526,7 @@ function Ip(e, t, n) {
|
|
5526
5526
|
return e.enter("characterReference"), e.enter("characterReferenceMarker"), e.consume(f), e.exit("characterReferenceMarker"), s;
|
5527
5527
|
}
|
5528
5528
|
function s(f) {
|
5529
|
-
return f === 35 ? (e.enter("characterReferenceMarkerNumeric"), e.consume(f), e.exit("characterReferenceMarkerNumeric"), u) : (e.enter("characterReferenceValue"), o = 31, a =
|
5529
|
+
return f === 35 ? (e.enter("characterReferenceMarkerNumeric"), e.consume(f), e.exit("characterReferenceMarkerNumeric"), u) : (e.enter("characterReferenceValue"), o = 31, a = ze, c(f));
|
5530
5530
|
}
|
5531
5531
|
function u(f) {
|
5532
5532
|
return f === 88 || f === 120 ? (e.enter("characterReferenceMarkerHexadecimal"), e.consume(f), e.exit("characterReferenceMarkerHexadecimal"), e.enter("characterReferenceValue"), o = 6, a = sp, c) : (e.enter("characterReferenceValue"), o = 7, a = Tr, c(f));
|
@@ -5534,7 +5534,7 @@ function Ip(e, t, n) {
|
|
5534
5534
|
function c(f) {
|
5535
5535
|
if (f === 59 && i) {
|
5536
5536
|
const m = e.exit("characterReferenceValue");
|
5537
|
-
return a ===
|
5537
|
+
return a === ze && !Br(r.sliceSerialize(m)) ? n(f) : (e.enter("characterReferenceMarker"), e.consume(f), e.exit("characterReferenceMarker"), e.exit("characterReference"), t);
|
5538
5538
|
}
|
5539
5539
|
return a(f) && i++ < o ? (e.consume(f), c) : n(f);
|
5540
5540
|
}
|
@@ -5562,7 +5562,7 @@ function kp(e, t, n) {
|
|
5562
5562
|
return o = L && L[1].type === "linePrefix" ? L[2].sliceSerialize(L[1], !0).length : 0, l = M, e.enter("codeFenced"), e.enter("codeFencedFence"), e.enter("codeFencedFenceSequence"), c(M);
|
5563
5563
|
}
|
5564
5564
|
function c(M) {
|
5565
|
-
return M === l ? (a++, e.consume(M), c) : a < 3 ? n(M) : (e.exit("codeFencedFenceSequence"),
|
5565
|
+
return M === l ? (a++, e.consume(M), c) : a < 3 ? n(M) : (e.exit("codeFencedFenceSequence"), oe(M) ? fe(e, f, "whitespace")(M) : f(M));
|
5566
5566
|
}
|
5567
5567
|
function f(M) {
|
5568
5568
|
return M === null || V(M) ? (e.exit("codeFencedFence"), r.interrupt ? t(M) : e.check(io, x, _)(M)) : (e.enter("codeFencedFenceInfo"), e.enter("chunkString", {
|
@@ -5570,7 +5570,7 @@ function kp(e, t, n) {
|
|
5570
5570
|
}), m(M));
|
5571
5571
|
}
|
5572
5572
|
function m(M) {
|
5573
|
-
return M === null || V(M) ? (e.exit("chunkString"), e.exit("codeFencedFenceInfo"), f(M)) :
|
5573
|
+
return M === null || V(M) ? (e.exit("chunkString"), e.exit("codeFencedFenceInfo"), f(M)) : oe(M) ? (e.exit("chunkString"), e.exit("codeFencedFenceInfo"), fe(e, p, "whitespace")(M)) : M === 96 && M === l ? n(M) : (e.consume(M), m);
|
5574
5574
|
}
|
5575
5575
|
function p(M) {
|
5576
5576
|
return M === null || V(M) ? f(M) : (e.enter("codeFencedFenceMeta"), e.enter("chunkString", {
|
@@ -5587,7 +5587,7 @@ function kp(e, t, n) {
|
|
5587
5587
|
return e.enter("lineEnding"), e.consume(M), e.exit("lineEnding"), b;
|
5588
5588
|
}
|
5589
5589
|
function b(M) {
|
5590
|
-
return o > 0 &&
|
5590
|
+
return o > 0 && oe(M) ? fe(
|
5591
5591
|
e,
|
5592
5592
|
z,
|
5593
5593
|
"linePrefix",
|
@@ -5610,7 +5610,7 @@ function kp(e, t, n) {
|
|
5610
5610
|
return M.enter("lineEnding"), M.consume(P), M.exit("lineEnding"), S;
|
5611
5611
|
}
|
5612
5612
|
function S(P) {
|
5613
|
-
return M.enter("codeFencedFence"),
|
5613
|
+
return M.enter("codeFencedFence"), oe(P) ? fe(
|
5614
5614
|
M,
|
5615
5615
|
w,
|
5616
5616
|
"linePrefix",
|
@@ -5621,7 +5621,7 @@ function kp(e, t, n) {
|
|
5621
5621
|
return P === l ? (M.enter("codeFencedFenceSequence"), j(P)) : Y(P);
|
5622
5622
|
}
|
5623
5623
|
function j(P) {
|
5624
|
-
return P === l ? (q++, M.consume(P), j) : q >= a ? (M.exit("codeFencedFenceSequence"),
|
5624
|
+
return P === l ? (q++, M.consume(P), j) : q >= a ? (M.exit("codeFencedFenceSequence"), oe(P) ? fe(M, O, "whitespace")(P) : O(P)) : Y(P);
|
5625
5625
|
}
|
5626
5626
|
function O(P) {
|
5627
5627
|
return P === null || V(P) ? (M.exit("codeFencedFence"), L(P)) : Y(P);
|
@@ -5827,13 +5827,13 @@ function Da(e, t, n, r, i, o, a, l, s) {
|
|
5827
5827
|
return b === 60 || b === 62 || b === 92 ? (e.consume(b), p) : p(b);
|
5828
5828
|
}
|
5829
5829
|
function x(b) {
|
5830
|
-
return !c && (b === null || b === 41 ||
|
5830
|
+
return !c && (b === null || b === 41 || Ce(b)) ? (e.exit("chunkString"), e.exit(l), e.exit(a), e.exit(r), t(b)) : c < u && b === 40 ? (e.consume(b), c++, x) : b === 41 ? (e.consume(b), c--, x) : b === null || b === 32 || b === 40 || vr(b) ? n(b) : (e.consume(b), b === 92 ? k : x);
|
5831
5831
|
}
|
5832
5832
|
function k(b) {
|
5833
5833
|
return b === 40 || b === 41 || b === 92 ? (e.consume(b), x) : x(b);
|
5834
5834
|
}
|
5835
5835
|
}
|
5836
|
-
function
|
5836
|
+
function Ia(e, t, n, r, i, o) {
|
5837
5837
|
const a = this;
|
5838
5838
|
let l = 0, s;
|
5839
5839
|
return u;
|
@@ -5851,13 +5851,13 @@ function Na(e, t, n, r, i, o) {
|
|
5851
5851
|
}), f(p));
|
5852
5852
|
}
|
5853
5853
|
function f(p) {
|
5854
|
-
return p === null || p === 91 || p === 93 || V(p) || l++ > 999 ? (e.exit("chunkString"), c(p)) : (e.consume(p), s || (s = !
|
5854
|
+
return p === null || p === 91 || p === 93 || V(p) || l++ > 999 ? (e.exit("chunkString"), c(p)) : (e.consume(p), s || (s = !oe(p)), p === 92 ? m : f);
|
5855
5855
|
}
|
5856
5856
|
function m(p) {
|
5857
5857
|
return p === 91 || p === 92 || p === 93 ? (e.consume(p), l++, f) : f(p);
|
5858
5858
|
}
|
5859
5859
|
}
|
5860
|
-
function
|
5860
|
+
function Na(e, t, n, r, i, o) {
|
5861
5861
|
let a;
|
5862
5862
|
return l;
|
5863
5863
|
function l(m) {
|
@@ -5882,7 +5882,7 @@ function Yt(e, t) {
|
|
5882
5882
|
let n;
|
5883
5883
|
return r;
|
5884
5884
|
function r(i) {
|
5885
|
-
return V(i) ? (e.enter("lineEnding"), e.consume(i), e.exit("lineEnding"), n = !0, r) :
|
5885
|
+
return V(i) ? (e.enter("lineEnding"), e.consume(i), e.exit("lineEnding"), n = !0, r) : oe(i) ? fe(
|
5886
5886
|
e,
|
5887
5887
|
r,
|
5888
5888
|
n ? "linePrefix" : "lineSuffix"
|
@@ -5907,7 +5907,7 @@ function Hp(e, t, n) {
|
|
5907
5907
|
return e.enter("definition"), a(p);
|
5908
5908
|
}
|
5909
5909
|
function a(p) {
|
5910
|
-
return
|
5910
|
+
return Ia.call(
|
5911
5911
|
r,
|
5912
5912
|
e,
|
5913
5913
|
l,
|
@@ -5924,7 +5924,7 @@ function Hp(e, t, n) {
|
|
5924
5924
|
), p === 58 ? (e.enter("definitionMarker"), e.consume(p), e.exit("definitionMarker"), s) : n(p);
|
5925
5925
|
}
|
5926
5926
|
function s(p) {
|
5927
|
-
return
|
5927
|
+
return Ce(p) ? Yt(e, u)(p) : u(p);
|
5928
5928
|
}
|
5929
5929
|
function u(p) {
|
5930
5930
|
return Da(
|
@@ -5943,7 +5943,7 @@ function Hp(e, t, n) {
|
|
5943
5943
|
return e.attempt(Yp, f, f)(p);
|
5944
5944
|
}
|
5945
5945
|
function f(p) {
|
5946
|
-
return
|
5946
|
+
return oe(p) ? fe(e, m, "whitespace")(p) : m(p);
|
5947
5947
|
}
|
5948
5948
|
function m(p) {
|
5949
5949
|
return p === null || V(p) ? (e.exit("definition"), r.parser.defined.push(i), t(p)) : n(p);
|
@@ -5952,10 +5952,10 @@ function Hp(e, t, n) {
|
|
5952
5952
|
function $p(e, t, n) {
|
5953
5953
|
return r;
|
5954
5954
|
function r(l) {
|
5955
|
-
return
|
5955
|
+
return Ce(l) ? Yt(e, i)(l) : n(l);
|
5956
5956
|
}
|
5957
5957
|
function i(l) {
|
5958
|
-
return
|
5958
|
+
return Na(
|
5959
5959
|
e,
|
5960
5960
|
o,
|
5961
5961
|
n,
|
@@ -5965,7 +5965,7 @@ function $p(e, t, n) {
|
|
5965
5965
|
)(l);
|
5966
5966
|
}
|
5967
5967
|
function o(l) {
|
5968
|
-
return
|
5968
|
+
return oe(l) ? fe(e, a, "whitespace")(l) : a(l);
|
5969
5969
|
}
|
5970
5970
|
function a(l) {
|
5971
5971
|
return l === null || V(l) ? t(l) : n(l);
|
@@ -6017,16 +6017,16 @@ function Zp(e, t, n) {
|
|
6017
6017
|
return e.enter("atxHeadingSequence"), a(c);
|
6018
6018
|
}
|
6019
6019
|
function a(c) {
|
6020
|
-
return c === 35 && r++ < 6 ? (e.consume(c), a) : c === null ||
|
6020
|
+
return c === 35 && r++ < 6 ? (e.consume(c), a) : c === null || Ce(c) ? (e.exit("atxHeadingSequence"), l(c)) : n(c);
|
6021
6021
|
}
|
6022
6022
|
function l(c) {
|
6023
|
-
return c === 35 ? (e.enter("atxHeadingSequence"), s(c)) : c === null || V(c) ? (e.exit("atxHeading"), t(c)) :
|
6023
|
+
return c === 35 ? (e.enter("atxHeadingSequence"), s(c)) : c === null || V(c) ? (e.exit("atxHeading"), t(c)) : oe(c) ? fe(e, l, "whitespace")(c) : (e.enter("atxHeadingText"), u(c));
|
6024
6024
|
}
|
6025
6025
|
function s(c) {
|
6026
6026
|
return c === 35 ? (e.consume(c), s) : (e.exit("atxHeadingSequence"), l(c));
|
6027
6027
|
}
|
6028
6028
|
function u(c) {
|
6029
|
-
return c === null || c === 35 ||
|
6029
|
+
return c === null || c === 35 || Ce(c) ? (e.exit("atxHeadingText"), l(c)) : (e.consume(c), u);
|
6030
6030
|
}
|
6031
6031
|
}
|
6032
6032
|
const Xp = [
|
@@ -6137,49 +6137,49 @@ function nf(e, t, n) {
|
|
6137
6137
|
return Ve(g) ? (e.consume(g), a = String.fromCharCode(g), k) : n(g);
|
6138
6138
|
}
|
6139
6139
|
function k(g) {
|
6140
|
-
if (g === null || g === 47 || g === 62 ||
|
6140
|
+
if (g === null || g === 47 || g === 62 || Ce(g)) {
|
6141
6141
|
const me = g === 47, De = a.toLowerCase();
|
6142
6142
|
return !me && !o && ao.includes(De) ? (i = 1, r.interrupt ? t(g) : w(g)) : Xp.includes(a.toLowerCase()) ? (i = 6, me ? (e.consume(g), b) : r.interrupt ? t(g) : w(g)) : (i = 7, r.interrupt && !r.parser.lazy[r.now().line] ? n(g) : o ? z(g) : E(g));
|
6143
6143
|
}
|
6144
|
-
return g === 45 ||
|
6144
|
+
return g === 45 || ze(g) ? (e.consume(g), a += String.fromCharCode(g), k) : n(g);
|
6145
6145
|
}
|
6146
6146
|
function b(g) {
|
6147
6147
|
return g === 62 ? (e.consume(g), r.interrupt ? t : w) : n(g);
|
6148
6148
|
}
|
6149
6149
|
function z(g) {
|
6150
|
-
return
|
6150
|
+
return oe(g) ? (e.consume(g), z) : J(g);
|
6151
6151
|
}
|
6152
6152
|
function E(g) {
|
6153
|
-
return g === 47 ? (e.consume(g), J) : g === 58 || g === 95 || Ve(g) ? (e.consume(g), _) :
|
6153
|
+
return g === 47 ? (e.consume(g), J) : g === 58 || g === 95 || Ve(g) ? (e.consume(g), _) : oe(g) ? (e.consume(g), E) : J(g);
|
6154
6154
|
}
|
6155
6155
|
function _(g) {
|
6156
|
-
return g === 45 || g === 46 || g === 58 || g === 95 ||
|
6156
|
+
return g === 45 || g === 46 || g === 58 || g === 95 || ze(g) ? (e.consume(g), _) : Q(g);
|
6157
6157
|
}
|
6158
6158
|
function Q(g) {
|
6159
|
-
return g === 61 ? (e.consume(g), M) :
|
6159
|
+
return g === 61 ? (e.consume(g), M) : oe(g) ? (e.consume(g), Q) : E(g);
|
6160
6160
|
}
|
6161
6161
|
function M(g) {
|
6162
|
-
return g === null || g === 60 || g === 61 || g === 62 || g === 96 ? n(g) : g === 34 || g === 39 ? (e.consume(g), s = g, L) :
|
6162
|
+
return g === null || g === 60 || g === 61 || g === 62 || g === 96 ? n(g) : g === 34 || g === 39 ? (e.consume(g), s = g, L) : oe(g) ? (e.consume(g), M) : Y(g);
|
6163
6163
|
}
|
6164
6164
|
function L(g) {
|
6165
6165
|
return g === s ? (e.consume(g), s = null, q) : g === null || V(g) ? n(g) : (e.consume(g), L);
|
6166
6166
|
}
|
6167
6167
|
function Y(g) {
|
6168
|
-
return g === null || g === 34 || g === 39 || g === 47 || g === 60 || g === 61 || g === 62 || g === 96 ||
|
6168
|
+
return g === null || g === 34 || g === 39 || g === 47 || g === 60 || g === 61 || g === 62 || g === 96 || Ce(g) ? Q(g) : (e.consume(g), Y);
|
6169
6169
|
}
|
6170
6170
|
function q(g) {
|
6171
|
-
return g === 47 || g === 62 ||
|
6171
|
+
return g === 47 || g === 62 || oe(g) ? E(g) : n(g);
|
6172
6172
|
}
|
6173
6173
|
function J(g) {
|
6174
6174
|
return g === 62 ? (e.consume(g), S) : n(g);
|
6175
6175
|
}
|
6176
6176
|
function S(g) {
|
6177
|
-
return g === null || V(g) ? w(g) :
|
6177
|
+
return g === null || V(g) ? w(g) : oe(g) ? (e.consume(g), S) : n(g);
|
6178
6178
|
}
|
6179
6179
|
function w(g) {
|
6180
6180
|
return g === 45 && i === 2 ? (e.consume(g), $) : g === 60 && i === 1 ? (e.consume(g), G) : g === 62 && i === 4 ? (e.consume(g), ne) : g === 63 && i === 3 ? (e.consume(g), h) : g === 93 && i === 5 ? (e.consume(g), ie) : V(g) && (i === 6 || i === 7) ? (e.exit("htmlFlowData"), e.check(
|
6181
6181
|
Jp,
|
6182
|
-
|
6182
|
+
we,
|
6183
6183
|
j
|
6184
6184
|
)(g)) : g === null || V(g) ? (e.exit("htmlFlowData"), j(g)) : (e.consume(g), w);
|
6185
6185
|
}
|
@@ -6187,7 +6187,7 @@ function nf(e, t, n) {
|
|
6187
6187
|
return e.check(
|
6188
6188
|
ef,
|
6189
6189
|
O,
|
6190
|
-
|
6190
|
+
we
|
6191
6191
|
)(g);
|
6192
6192
|
}
|
6193
6193
|
function O(g) {
|
@@ -6216,9 +6216,9 @@ function nf(e, t, n) {
|
|
6216
6216
|
return g === 62 ? (e.consume(g), ne) : g === 45 && i === 2 ? (e.consume(g), h) : w(g);
|
6217
6217
|
}
|
6218
6218
|
function ne(g) {
|
6219
|
-
return g === null || V(g) ? (e.exit("htmlFlowData"),
|
6219
|
+
return g === null || V(g) ? (e.exit("htmlFlowData"), we(g)) : (e.consume(g), ne);
|
6220
6220
|
}
|
6221
|
-
function
|
6221
|
+
function we(g) {
|
6222
6222
|
return e.exit("htmlFlow"), t(g);
|
6223
6223
|
}
|
6224
6224
|
}
|
@@ -6293,34 +6293,34 @@ function lf(e, t, n) {
|
|
6293
6293
|
return Ve(h) ? (e.consume(h), M) : n(h);
|
6294
6294
|
}
|
6295
6295
|
function M(h) {
|
6296
|
-
return h === 45 ||
|
6296
|
+
return h === 45 || ze(h) ? (e.consume(h), M) : L(h);
|
6297
6297
|
}
|
6298
6298
|
function L(h) {
|
6299
|
-
return V(h) ? (a = L, G(h)) :
|
6299
|
+
return V(h) ? (a = L, G(h)) : oe(h) ? (e.consume(h), L) : $(h);
|
6300
6300
|
}
|
6301
6301
|
function Y(h) {
|
6302
|
-
return h === 45 ||
|
6302
|
+
return h === 45 || ze(h) ? (e.consume(h), Y) : h === 47 || h === 62 || Ce(h) ? q(h) : n(h);
|
6303
6303
|
}
|
6304
6304
|
function q(h) {
|
6305
|
-
return h === 47 ? (e.consume(h), $) : h === 58 || h === 95 || Ve(h) ? (e.consume(h), J) : V(h) ? (a = q, G(h)) :
|
6305
|
+
return h === 47 ? (e.consume(h), $) : h === 58 || h === 95 || Ve(h) ? (e.consume(h), J) : V(h) ? (a = q, G(h)) : oe(h) ? (e.consume(h), q) : $(h);
|
6306
6306
|
}
|
6307
6307
|
function J(h) {
|
6308
|
-
return h === 45 || h === 46 || h === 58 || h === 95 ||
|
6308
|
+
return h === 45 || h === 46 || h === 58 || h === 95 || ze(h) ? (e.consume(h), J) : S(h);
|
6309
6309
|
}
|
6310
6310
|
function S(h) {
|
6311
|
-
return h === 61 ? (e.consume(h), w) : V(h) ? (a = S, G(h)) :
|
6311
|
+
return h === 61 ? (e.consume(h), w) : V(h) ? (a = S, G(h)) : oe(h) ? (e.consume(h), S) : q(h);
|
6312
6312
|
}
|
6313
6313
|
function w(h) {
|
6314
|
-
return h === null || h === 60 || h === 61 || h === 62 || h === 96 ? n(h) : h === 34 || h === 39 ? (e.consume(h), i = h, j) : V(h) ? (a = w, G(h)) :
|
6314
|
+
return h === null || h === 60 || h === 61 || h === 62 || h === 96 ? n(h) : h === 34 || h === 39 ? (e.consume(h), i = h, j) : V(h) ? (a = w, G(h)) : oe(h) ? (e.consume(h), w) : (e.consume(h), O);
|
6315
6315
|
}
|
6316
6316
|
function j(h) {
|
6317
6317
|
return h === i ? (e.consume(h), i = void 0, P) : h === null ? n(h) : V(h) ? (a = j, G(h)) : (e.consume(h), j);
|
6318
6318
|
}
|
6319
6319
|
function O(h) {
|
6320
|
-
return h === null || h === 34 || h === 39 || h === 60 || h === 61 || h === 96 ? n(h) : h === 47 || h === 62 ||
|
6320
|
+
return h === null || h === 34 || h === 39 || h === 60 || h === 61 || h === 96 ? n(h) : h === 47 || h === 62 || Ce(h) ? q(h) : (e.consume(h), O);
|
6321
6321
|
}
|
6322
6322
|
function P(h) {
|
6323
|
-
return h === 47 || h === 62 ||
|
6323
|
+
return h === 47 || h === 62 || Ce(h) ? q(h) : n(h);
|
6324
6324
|
}
|
6325
6325
|
function $(h) {
|
6326
6326
|
return h === 62 ? (e.consume(h), e.exit("htmlTextData"), e.exit("htmlText"), t) : n(h);
|
@@ -6329,7 +6329,7 @@ function lf(e, t, n) {
|
|
6329
6329
|
return e.exit("htmlTextData"), e.enter("lineEnding"), e.consume(h), e.exit("lineEnding"), Z;
|
6330
6330
|
}
|
6331
6331
|
function Z(h) {
|
6332
|
-
return
|
6332
|
+
return oe(h) ? fe(
|
6333
6333
|
e,
|
6334
6334
|
ie,
|
6335
6335
|
"linePrefix",
|
@@ -6390,19 +6390,19 @@ function ff(e, t) {
|
|
6390
6390
|
return l = [
|
6391
6391
|
["enter", s, t],
|
6392
6392
|
["enter", u, t]
|
6393
|
-
], l =
|
6393
|
+
], l = Be(l, e.slice(o + 1, o + r + 3)), l = Be(l, [["enter", c, t]]), l = Be(
|
6394
6394
|
l,
|
6395
6395
|
Ur(
|
6396
6396
|
t.parser.constructs.insideSpan.null,
|
6397
6397
|
e.slice(o + r + 4, a - 3),
|
6398
6398
|
t
|
6399
6399
|
)
|
6400
|
-
), l =
|
6400
|
+
), l = Be(l, [
|
6401
6401
|
["exit", c, t],
|
6402
6402
|
e[a - 2],
|
6403
6403
|
e[a - 1],
|
6404
6404
|
["exit", u, t]
|
6405
|
-
]), l =
|
6405
|
+
]), l = Be(l, e.slice(a + 1)), l = Be(l, [["exit", s, t]]), Ge(e, o, e.length, l), e;
|
6406
6406
|
}
|
6407
6407
|
function df(e, t, n) {
|
6408
6408
|
const r = this;
|
@@ -6454,7 +6454,7 @@ function hf(e, t, n) {
|
|
6454
6454
|
return e.enter("resource"), e.enter("resourceMarker"), e.consume(f), e.exit("resourceMarker"), i;
|
6455
6455
|
}
|
6456
6456
|
function i(f) {
|
6457
|
-
return
|
6457
|
+
return Ce(f) ? Yt(e, o)(f) : o(f);
|
6458
6458
|
}
|
6459
6459
|
function o(f) {
|
6460
6460
|
return f === 41 ? c(f) : Da(
|
@@ -6470,13 +6470,13 @@ function hf(e, t, n) {
|
|
6470
6470
|
)(f);
|
6471
6471
|
}
|
6472
6472
|
function a(f) {
|
6473
|
-
return
|
6473
|
+
return Ce(f) ? Yt(e, s)(f) : c(f);
|
6474
6474
|
}
|
6475
6475
|
function l(f) {
|
6476
6476
|
return n(f);
|
6477
6477
|
}
|
6478
6478
|
function s(f) {
|
6479
|
-
return f === 34 || f === 39 || f === 40 ?
|
6479
|
+
return f === 34 || f === 39 || f === 40 ? Na(
|
6480
6480
|
e,
|
6481
6481
|
u,
|
6482
6482
|
n,
|
@@ -6486,7 +6486,7 @@ function hf(e, t, n) {
|
|
6486
6486
|
)(f) : c(f);
|
6487
6487
|
}
|
6488
6488
|
function u(f) {
|
6489
|
-
return
|
6489
|
+
return Ce(f) ? Yt(e, c)(f) : c(f);
|
6490
6490
|
}
|
6491
6491
|
function c(f) {
|
6492
6492
|
return f === 41 ? (e.enter("resourceMarker"), e.consume(f), e.exit("resourceMarker"), e.exit("resource"), t) : n(f);
|
@@ -6496,7 +6496,7 @@ function gf(e, t, n) {
|
|
6496
6496
|
const r = this;
|
6497
6497
|
return i;
|
6498
6498
|
function i(l) {
|
6499
|
-
return
|
6499
|
+
return Ia.call(
|
6500
6500
|
r,
|
6501
6501
|
e,
|
6502
6502
|
o,
|
@@ -6586,14 +6586,14 @@ function vf(e, t, n) {
|
|
6586
6586
|
return u === i ? (e.enter("thematicBreakSequence"), s(u)) : r >= 3 && (u === null || V(u)) ? (e.exit("thematicBreak"), t(u)) : n(u);
|
6587
6587
|
}
|
6588
6588
|
function s(u) {
|
6589
|
-
return u === i ? (e.consume(u), r++, s) : (e.exit("thematicBreakSequence"),
|
6589
|
+
return u === i ? (e.consume(u), r++, s) : (e.exit("thematicBreakSequence"), oe(u) ? fe(e, l, "whitespace")(u) : l(u));
|
6590
6590
|
}
|
6591
6591
|
}
|
6592
|
-
const
|
6592
|
+
const je = {
|
6593
6593
|
name: "list",
|
6594
|
-
tokenize:
|
6594
|
+
tokenize: If,
|
6595
6595
|
continuation: {
|
6596
|
-
tokenize:
|
6596
|
+
tokenize: Nf
|
6597
6597
|
},
|
6598
6598
|
exit: jf
|
6599
6599
|
}, Tf = {
|
@@ -6603,7 +6603,7 @@ const Ie = {
|
|
6603
6603
|
tokenize: kf,
|
6604
6604
|
partial: !0
|
6605
6605
|
};
|
6606
|
-
function
|
6606
|
+
function If(e, t, n) {
|
6607
6607
|
const r = this, i = r.events[r.events.length - 1];
|
6608
6608
|
let o = i && i[1].type === "linePrefix" ? i[2].sliceSerialize(i[1], !0).length : 0, a = 0;
|
6609
6609
|
return l;
|
@@ -6638,13 +6638,13 @@ function Nf(e, t, n) {
|
|
6638
6638
|
return r.containerState.initialBlankLine = !0, o++, m(p);
|
6639
6639
|
}
|
6640
6640
|
function f(p) {
|
6641
|
-
return
|
6641
|
+
return oe(p) ? (e.enter("listItemPrefixWhitespace"), e.consume(p), e.exit("listItemPrefixWhitespace"), m) : n(p);
|
6642
6642
|
}
|
6643
6643
|
function m(p) {
|
6644
6644
|
return r.containerState.size = o + r.sliceSerialize(e.exit("listItemPrefix"), !0).length, t(p);
|
6645
6645
|
}
|
6646
6646
|
}
|
6647
|
-
function
|
6647
|
+
function Nf(e, t, n) {
|
6648
6648
|
const r = this;
|
6649
6649
|
return r.containerState._closeFlow = void 0, e.check(Dn, i, o);
|
6650
6650
|
function i(l) {
|
@@ -6656,12 +6656,12 @@ function If(e, t, n) {
|
|
6656
6656
|
)(l);
|
6657
6657
|
}
|
6658
6658
|
function o(l) {
|
6659
|
-
return r.containerState.furtherBlankLines || !
|
6659
|
+
return r.containerState.furtherBlankLines || !oe(l) ? (r.containerState.furtherBlankLines = void 0, r.containerState.initialBlankLine = void 0, a(l)) : (r.containerState.furtherBlankLines = void 0, r.containerState.initialBlankLine = void 0, e.attempt(Df, t, a)(l));
|
6660
6660
|
}
|
6661
6661
|
function a(l) {
|
6662
6662
|
return r.containerState._closeFlow = !0, r.interrupt = void 0, fe(
|
6663
6663
|
e,
|
6664
|
-
e.attempt(
|
6664
|
+
e.attempt(je, t, n),
|
6665
6665
|
"linePrefix",
|
6666
6666
|
r.parser.constructs.disable.null.includes("codeIndented") ? void 0 : 4
|
6667
6667
|
)(l);
|
@@ -6693,7 +6693,7 @@ function Ef(e, t, n) {
|
|
6693
6693
|
);
|
6694
6694
|
function i(o) {
|
6695
6695
|
const a = r.events[r.events.length - 1];
|
6696
|
-
return !
|
6696
|
+
return !oe(o) && a && a[1].type === "listItemPrefixWhitespace" ? t(o) : n(o);
|
6697
6697
|
}
|
6698
6698
|
}
|
6699
6699
|
const lo = {
|
@@ -6736,7 +6736,7 @@ function Af(e, t, n) {
|
|
6736
6736
|
return e.enter("setextHeadingLineSequence"), l(u);
|
6737
6737
|
}
|
6738
6738
|
function l(u) {
|
6739
|
-
return u === i ? (e.consume(u), l) : (e.exit("setextHeadingLineSequence"),
|
6739
|
+
return u === i ? (e.consume(u), l) : (e.exit("setextHeadingLineSequence"), oe(u) ? fe(e, s, "lineSuffix")(u) : s(u));
|
6740
6740
|
}
|
6741
6741
|
function s(u) {
|
6742
6742
|
return u === null || V(u) ? (e.exit("setextHeadingLine"), t(u)) : n(u);
|
@@ -6913,7 +6913,7 @@ function Pf(e, t, n) {
|
|
6913
6913
|
let c = t.tokenize.call(u, s);
|
6914
6914
|
return t.resolveAll && o.push(t), u;
|
6915
6915
|
function f(S) {
|
6916
|
-
return a =
|
6916
|
+
return a = Be(a, S), k(), a[a.length - 1] !== null ? [] : (Y(t, 0), u.events = Ur(o, u.events, u), u.events);
|
6917
6917
|
}
|
6918
6918
|
function m(S, w) {
|
6919
6919
|
return Uf(p(S), w);
|
@@ -6969,29 +6969,29 @@ function Pf(e, t, n) {
|
|
6969
6969
|
return j;
|
6970
6970
|
function j(O, P, $) {
|
6971
6971
|
let G, Z, ie, h;
|
6972
|
-
return Array.isArray(O) ?
|
6972
|
+
return Array.isArray(O) ? we(O) : "tokenize" in O ? (
|
6973
6973
|
// @ts-expect-error Looks like a construct.
|
6974
|
-
|
6974
|
+
we([O])
|
6975
6975
|
) : ne(O);
|
6976
|
-
function ne(
|
6977
|
-
return
|
6978
|
-
function
|
6979
|
-
const
|
6976
|
+
function ne(ae) {
|
6977
|
+
return Ie;
|
6978
|
+
function Ie(ve) {
|
6979
|
+
const Fe = ve !== null && ae[ve], Pe = ve !== null && ae.null, Ke = [
|
6980
6980
|
// To do: add more extension tests.
|
6981
6981
|
/* c8 ignore next 2 */
|
6982
|
-
...Array.isArray(
|
6983
|
-
...Array.isArray(
|
6982
|
+
...Array.isArray(Fe) ? Fe : Fe ? [Fe] : [],
|
6983
|
+
...Array.isArray(Pe) ? Pe : Pe ? [Pe] : []
|
6984
6984
|
];
|
6985
|
-
return
|
6985
|
+
return we(Ke)(ve);
|
6986
6986
|
}
|
6987
6987
|
}
|
6988
|
-
function
|
6989
|
-
return G =
|
6988
|
+
function we(ae) {
|
6989
|
+
return G = ae, Z = 0, ae.length === 0 ? $ : g(ae[Z]);
|
6990
6990
|
}
|
6991
|
-
function g(
|
6992
|
-
return
|
6993
|
-
function
|
6994
|
-
return h = q(), ie =
|
6991
|
+
function g(ae) {
|
6992
|
+
return Ie;
|
6993
|
+
function Ie(ve) {
|
6994
|
+
return h = q(), ie = ae, ae.partial || (u.currentConstruct = ae), ae.name && u.parser.constructs.disable.null.includes(ae.name) ? De() : ae.tokenize.call(
|
6995
6995
|
// If we do have fields, create an object w/ `context` as its
|
6996
6996
|
// prototype.
|
6997
6997
|
// This allows a “live binding”, which is needed for `interrupt`.
|
@@ -6999,13 +6999,13 @@ function Pf(e, t, n) {
|
|
6999
6999
|
s,
|
7000
7000
|
me,
|
7001
7001
|
De
|
7002
|
-
)(
|
7002
|
+
)(ve);
|
7003
7003
|
}
|
7004
7004
|
}
|
7005
|
-
function me(
|
7005
|
+
function me(ae) {
|
7006
7006
|
return S(ie, h), P;
|
7007
7007
|
}
|
7008
|
-
function De(
|
7008
|
+
function De(ae) {
|
7009
7009
|
return h.restore(), ++Z < G.length ? g(G[Z]) : $;
|
7010
7010
|
}
|
7011
7011
|
}
|
@@ -7089,19 +7089,19 @@ function Uf(e, t) {
|
|
7089
7089
|
return r.join("");
|
7090
7090
|
}
|
7091
7091
|
const Bf = {
|
7092
|
-
42:
|
7093
|
-
43:
|
7094
|
-
45:
|
7095
|
-
48:
|
7096
|
-
49:
|
7097
|
-
50:
|
7098
|
-
51:
|
7099
|
-
52:
|
7100
|
-
53:
|
7101
|
-
54:
|
7102
|
-
55:
|
7103
|
-
56:
|
7104
|
-
57:
|
7092
|
+
42: je,
|
7093
|
+
43: je,
|
7094
|
+
45: je,
|
7095
|
+
48: je,
|
7096
|
+
49: je,
|
7097
|
+
50: je,
|
7098
|
+
51: je,
|
7099
|
+
52: je,
|
7100
|
+
53: je,
|
7101
|
+
54: je,
|
7102
|
+
55: je,
|
7103
|
+
56: je,
|
7104
|
+
57: je,
|
7105
7105
|
62: xa
|
7106
7106
|
}, Qf = {
|
7107
7107
|
91: Qp
|
@@ -7277,11 +7277,11 @@ function id(e) {
|
|
7277
7277
|
codeFencedFenceInfo: s,
|
7278
7278
|
codeFencedFenceMeta: s,
|
7279
7279
|
codeIndented: l(lt, s),
|
7280
|
-
codeText: l(
|
7280
|
+
codeText: l(It, s),
|
7281
7281
|
codeTextData: S,
|
7282
7282
|
data: S,
|
7283
7283
|
codeFlowValue: S,
|
7284
|
-
definition: l(
|
7284
|
+
definition: l(Nt),
|
7285
7285
|
definitionDestinationString: s,
|
7286
7286
|
definitionLabelString: s,
|
7287
7287
|
definitionTitleString: s,
|
@@ -7306,19 +7306,19 @@ function id(e) {
|
|
7306
7306
|
resourceTitleString: s,
|
7307
7307
|
setextHeading: l(mt),
|
7308
7308
|
strong: l(be),
|
7309
|
-
thematicBreak: l(
|
7309
|
+
thematicBreak: l(Te)
|
7310
7310
|
},
|
7311
7311
|
exit: {
|
7312
7312
|
atxHeading: c(),
|
7313
7313
|
atxHeadingSequence: L,
|
7314
7314
|
autolink: c(),
|
7315
|
-
autolinkEmail:
|
7316
|
-
autolinkProtocol:
|
7315
|
+
autolinkEmail: Pe,
|
7316
|
+
autolinkProtocol: Fe,
|
7317
7317
|
blockQuote: c(),
|
7318
7318
|
characterEscapeValue: w,
|
7319
|
-
characterReferenceMarkerHexadecimal:
|
7320
|
-
characterReferenceMarkerNumeric:
|
7321
|
-
characterReferenceValue:
|
7319
|
+
characterReferenceMarkerHexadecimal: Ie,
|
7320
|
+
characterReferenceMarkerNumeric: Ie,
|
7321
|
+
characterReferenceValue: ve,
|
7322
7322
|
codeFenced: c(z),
|
7323
7323
|
codeFencedFence: b,
|
7324
7324
|
codeFencedFenceInfo: x,
|
@@ -7348,8 +7348,8 @@ function id(e) {
|
|
7348
7348
|
listOrdered: c(),
|
7349
7349
|
listUnordered: c(),
|
7350
7350
|
paragraph: c(),
|
7351
|
-
referenceString:
|
7352
|
-
resourceDestinationString:
|
7351
|
+
referenceString: ae,
|
7352
|
+
resourceDestinationString: we,
|
7353
7353
|
resourceTitleString: g,
|
7354
7354
|
resource: me,
|
7355
7355
|
setextHeading: c(J),
|
@@ -7384,12 +7384,12 @@ function id(e) {
|
|
7384
7384
|
if (I[ee][0] === "enter")
|
7385
7385
|
K.push(ee);
|
7386
7386
|
else {
|
7387
|
-
const
|
7388
|
-
ee = i(I,
|
7387
|
+
const de = K.pop();
|
7388
|
+
ee = i(I, de, ee);
|
7389
7389
|
}
|
7390
7390
|
for (ee = -1; ++ee < I.length; ) {
|
7391
|
-
const
|
7392
|
-
Ca.call(
|
7391
|
+
const de = t[I[ee][0]];
|
7392
|
+
Ca.call(de, I[ee][1].type) && de[I[ee][1].type].call(
|
7393
7393
|
Object.assign(
|
7394
7394
|
{
|
7395
7395
|
sliceSerialize: I[ee][2].sliceSerialize
|
@@ -7400,8 +7400,8 @@ function id(e) {
|
|
7400
7400
|
);
|
7401
7401
|
}
|
7402
7402
|
if (U.tokenStack.length > 0) {
|
7403
|
-
const
|
7404
|
-
(
|
7403
|
+
const de = U.tokenStack[U.tokenStack.length - 1];
|
7404
|
+
(de[1] || uo).call(U, void 0, de[0]);
|
7405
7405
|
}
|
7406
7406
|
for (C.position = {
|
7407
7407
|
start: et(
|
@@ -7423,36 +7423,36 @@ function id(e) {
|
|
7423
7423
|
return C;
|
7424
7424
|
}
|
7425
7425
|
function i(I, C, U) {
|
7426
|
-
let K = C - 1, ee = -1,
|
7426
|
+
let K = C - 1, ee = -1, de = !1, Ne, ke, st, Ae;
|
7427
7427
|
for (; ++K <= U; ) {
|
7428
7428
|
const ce = I[K];
|
7429
|
-
if (ce[1].type === "listUnordered" || ce[1].type === "listOrdered" || ce[1].type === "blockQuote" ? (ce[0] === "enter" ? ee++ : ee--,
|
7430
|
-
if (
|
7429
|
+
if (ce[1].type === "listUnordered" || ce[1].type === "listOrdered" || ce[1].type === "blockQuote" ? (ce[0] === "enter" ? ee++ : ee--, Ae = void 0) : ce[1].type === "lineEndingBlank" ? ce[0] === "enter" && (Ne && !Ae && !ee && !st && (st = K), Ae = void 0) : ce[1].type === "linePrefix" || ce[1].type === "listItemValue" || ce[1].type === "listItemMarker" || ce[1].type === "listItemPrefix" || ce[1].type === "listItemPrefixWhitespace" || (Ae = void 0), !ee && ce[0] === "enter" && ce[1].type === "listItemPrefix" || ee === -1 && ce[0] === "exit" && (ce[1].type === "listUnordered" || ce[1].type === "listOrdered")) {
|
7430
|
+
if (Ne) {
|
7431
7431
|
let Et = K;
|
7432
|
-
for (
|
7433
|
-
const
|
7434
|
-
if (
|
7435
|
-
if (
|
7432
|
+
for (ke = void 0; Et--; ) {
|
7433
|
+
const Re = I[Et];
|
7434
|
+
if (Re[1].type === "lineEnding" || Re[1].type === "lineEndingBlank") {
|
7435
|
+
if (Re[0] === "exit")
|
7436
7436
|
continue;
|
7437
|
-
|
7438
|
-
} else if (!(
|
7437
|
+
ke && (I[ke][1].type = "lineEndingBlank", de = !0), Re[1].type = "lineEnding", ke = Et;
|
7438
|
+
} else if (!(Re[1].type === "linePrefix" || Re[1].type === "blockQuotePrefix" || Re[1].type === "blockQuotePrefixWhitespace" || Re[1].type === "blockQuoteMarker" || Re[1].type === "listItemIndent"))
|
7439
7439
|
break;
|
7440
7440
|
}
|
7441
|
-
st && (!
|
7441
|
+
st && (!ke || st < ke) && (Ne._spread = !0), Ne.end = Object.assign(
|
7442
7442
|
{},
|
7443
|
-
|
7444
|
-
), I.splice(
|
7443
|
+
ke ? I[ke][1].start : ce[1].end
|
7444
|
+
), I.splice(ke || K, 0, ["exit", Ne, ce[2]]), K++, U++;
|
7445
7445
|
}
|
7446
|
-
ce[1].type === "listItemPrefix" && (
|
7446
|
+
ce[1].type === "listItemPrefix" && (Ne = {
|
7447
7447
|
type: "listItem",
|
7448
7448
|
_spread: !1,
|
7449
7449
|
start: Object.assign({}, ce[1].start),
|
7450
7450
|
// @ts-expect-error: we’ll add `end` in a second.
|
7451
7451
|
end: void 0
|
7452
|
-
}, I.splice(K, 0, ["enter",
|
7452
|
+
}, I.splice(K, 0, ["enter", Ne, ce[2]]), K++, U++, st = void 0, Ae = !0);
|
7453
7453
|
}
|
7454
7454
|
}
|
7455
|
-
return I[C][1]._spread =
|
7455
|
+
return I[C][1]._spread = de, U;
|
7456
7456
|
}
|
7457
7457
|
function o(I, C) {
|
7458
7458
|
n[I] = C;
|
@@ -7561,7 +7561,7 @@ function id(e) {
|
|
7561
7561
|
function S(I) {
|
7562
7562
|
const C = this.stack[this.stack.length - 1];
|
7563
7563
|
let U = C.children[C.children.length - 1];
|
7564
|
-
(!U || U.type !== "text") && (U =
|
7564
|
+
(!U || U.type !== "text") && (U = se(), U.position = {
|
7565
7565
|
start: et(I.start)
|
7566
7566
|
}, C.children.push(U)), this.stack.push(U);
|
7567
7567
|
}
|
@@ -7623,7 +7623,7 @@ function id(e) {
|
|
7623
7623
|
} else
|
7624
7624
|
U.alt = C;
|
7625
7625
|
}
|
7626
|
-
function
|
7626
|
+
function we() {
|
7627
7627
|
const I = this.resume(), C = this.stack[this.stack.length - 1];
|
7628
7628
|
C.url = I;
|
7629
7629
|
}
|
@@ -7637,16 +7637,16 @@ function id(e) {
|
|
7637
7637
|
function De() {
|
7638
7638
|
o("referenceType", "collapsed");
|
7639
7639
|
}
|
7640
|
-
function
|
7640
|
+
function ae(I) {
|
7641
7641
|
const C = this.resume(), U = this.stack[this.stack.length - 1];
|
7642
7642
|
U.label = C, U.identifier = xt(
|
7643
7643
|
this.sliceSerialize(I)
|
7644
7644
|
).toLowerCase(), o("referenceType", "full");
|
7645
7645
|
}
|
7646
|
-
function
|
7646
|
+
function Ie(I) {
|
7647
7647
|
o("characterReferenceType", I.type);
|
7648
7648
|
}
|
7649
|
-
function
|
7649
|
+
function ve(I) {
|
7650
7650
|
const C = this.sliceSerialize(I), U = a("characterReferenceType");
|
7651
7651
|
let K;
|
7652
7652
|
U ? (K = Ea(
|
@@ -7656,12 +7656,12 @@ function id(e) {
|
|
7656
7656
|
const ee = this.stack.pop();
|
7657
7657
|
ee.value += K, ee.position.end = et(I.end);
|
7658
7658
|
}
|
7659
|
-
function
|
7659
|
+
function Fe(I) {
|
7660
7660
|
w.call(this, I);
|
7661
7661
|
const C = this.stack[this.stack.length - 1];
|
7662
7662
|
C.url = this.sliceSerialize(I);
|
7663
7663
|
}
|
7664
|
-
function
|
7664
|
+
function Pe(I) {
|
7665
7665
|
w.call(this, I);
|
7666
7666
|
const C = this.stack[this.stack.length - 1];
|
7667
7667
|
C.url = "mailto:" + this.sliceSerialize(I);
|
@@ -7680,13 +7680,13 @@ function id(e) {
|
|
7680
7680
|
value: ""
|
7681
7681
|
};
|
7682
7682
|
}
|
7683
|
-
function
|
7683
|
+
function It() {
|
7684
7684
|
return {
|
7685
7685
|
type: "inlineCode",
|
7686
7686
|
value: ""
|
7687
7687
|
};
|
7688
7688
|
}
|
7689
|
-
function
|
7689
|
+
function Nt() {
|
7690
7690
|
return {
|
7691
7691
|
type: "definition",
|
7692
7692
|
identifier: "",
|
@@ -7764,13 +7764,13 @@ function id(e) {
|
|
7764
7764
|
children: []
|
7765
7765
|
};
|
7766
7766
|
}
|
7767
|
-
function
|
7767
|
+
function se() {
|
7768
7768
|
return {
|
7769
7769
|
type: "text",
|
7770
7770
|
value: ""
|
7771
7771
|
};
|
7772
7772
|
}
|
7773
|
-
function
|
7773
|
+
function Te() {
|
7774
7774
|
return {
|
7775
7775
|
type: "thematicBreak"
|
7776
7776
|
};
|
@@ -7890,7 +7890,7 @@ function Tt(e) {
|
|
7890
7890
|
for (; ++n < e.length; ) {
|
7891
7891
|
const o = e.charCodeAt(n);
|
7892
7892
|
let a = "";
|
7893
|
-
if (o === 37 &&
|
7893
|
+
if (o === 37 && ze(e.charCodeAt(n + 1)) && ze(e.charCodeAt(n + 2)))
|
7894
7894
|
i = 2;
|
7895
7895
|
else if (o < 128)
|
7896
7896
|
/[!#$&-;=?-Z_a-z~]/.test(String.fromCharCode(o)) || (a = String.fromCharCode(o));
|
@@ -8091,7 +8091,7 @@ function Dd(e, t) {
|
|
8091
8091
|
const n = { type: "root", children: e.wrap(e.all(t)) };
|
8092
8092
|
return e.patch(t, n), e.applyData(t, n);
|
8093
8093
|
}
|
8094
|
-
function
|
8094
|
+
function Id(e, t) {
|
8095
8095
|
const n = {
|
8096
8096
|
type: "element",
|
8097
8097
|
tagName: "strong",
|
@@ -8101,7 +8101,7 @@ function Nd(e, t) {
|
|
8101
8101
|
return e.patch(t, n), e.applyData(t, n);
|
8102
8102
|
}
|
8103
8103
|
const Yr = La("start"), Hr = La("end");
|
8104
|
-
function
|
8104
|
+
function Nd(e) {
|
8105
8105
|
return { start: Yr(e), end: Hr(e) };
|
8106
8106
|
}
|
8107
8107
|
function La(e) {
|
@@ -8232,7 +8232,7 @@ const Od = {
|
|
8232
8232
|
list: vd,
|
8233
8233
|
paragraph: Td,
|
8234
8234
|
root: Dd,
|
8235
|
-
strong:
|
8235
|
+
strong: Id,
|
8236
8236
|
table: kd,
|
8237
8237
|
tableCell: Ed,
|
8238
8238
|
tableRow: jd,
|
@@ -8265,7 +8265,7 @@ const _a = (
|
|
8265
8265
|
if (typeof e == "object")
|
8266
8266
|
return Array.isArray(e) ? zd(e) : Ld(e);
|
8267
8267
|
if (typeof e == "function")
|
8268
|
-
return
|
8268
|
+
return In(e);
|
8269
8269
|
throw new Error("Expected function, string, or object as test");
|
8270
8270
|
}
|
8271
8271
|
);
|
@@ -8274,7 +8274,7 @@ function zd(e) {
|
|
8274
8274
|
let n = -1;
|
8275
8275
|
for (; ++n < e.length; )
|
8276
8276
|
t[n] = _a(e[n]);
|
8277
|
-
return
|
8277
|
+
return In(r);
|
8278
8278
|
function r(...i) {
|
8279
8279
|
let o = -1;
|
8280
8280
|
for (; ++o < t.length; )
|
@@ -8284,7 +8284,7 @@ function zd(e) {
|
|
8284
8284
|
}
|
8285
8285
|
}
|
8286
8286
|
function Ld(e) {
|
8287
|
-
return
|
8287
|
+
return In(t);
|
8288
8288
|
function t(n) {
|
8289
8289
|
let r;
|
8290
8290
|
for (r in e)
|
@@ -8294,12 +8294,12 @@ function Ld(e) {
|
|
8294
8294
|
}
|
8295
8295
|
}
|
8296
8296
|
function _d(e) {
|
8297
|
-
return
|
8297
|
+
return In(t);
|
8298
8298
|
function t(n) {
|
8299
8299
|
return n && n.type === e;
|
8300
8300
|
}
|
8301
8301
|
}
|
8302
|
-
function
|
8302
|
+
function In(e) {
|
8303
8303
|
return t;
|
8304
8304
|
function t(n, ...r) {
|
8305
8305
|
return !!(n && typeof n == "object" && "type" in n && e.call(this, n, ...r));
|
@@ -8446,7 +8446,7 @@ function Hd(e, t) {
|
|
8446
8446
|
}
|
8447
8447
|
}
|
8448
8448
|
function $d(e, t) {
|
8449
|
-
e.position && (t.position =
|
8449
|
+
e.position && (t.position = Nd(e));
|
8450
8450
|
}
|
8451
8451
|
function qd(e, t) {
|
8452
8452
|
let n = t;
|
@@ -8617,10 +8617,10 @@ function Ra(e, t) {
|
|
8617
8617
|
Object.assign(n, e[i].property), Object.assign(r, e[i].normal);
|
8618
8618
|
return new Gt(n, r, t);
|
8619
8619
|
}
|
8620
|
-
function
|
8620
|
+
function Ir(e) {
|
8621
8621
|
return e.toLowerCase();
|
8622
8622
|
}
|
8623
|
-
class
|
8623
|
+
class Ye {
|
8624
8624
|
/**
|
8625
8625
|
* @constructor
|
8626
8626
|
* @param {string} property
|
@@ -8630,32 +8630,32 @@ class Be {
|
|
8630
8630
|
this.property = t, this.attribute = n;
|
8631
8631
|
}
|
8632
8632
|
}
|
8633
|
-
|
8634
|
-
|
8635
|
-
|
8636
|
-
|
8637
|
-
|
8638
|
-
|
8639
|
-
|
8640
|
-
|
8641
|
-
|
8642
|
-
|
8633
|
+
Ye.prototype.space = null;
|
8634
|
+
Ye.prototype.boolean = !1;
|
8635
|
+
Ye.prototype.booleanish = !1;
|
8636
|
+
Ye.prototype.overloadedBoolean = !1;
|
8637
|
+
Ye.prototype.number = !1;
|
8638
|
+
Ye.prototype.commaSeparated = !1;
|
8639
|
+
Ye.prototype.spaceSeparated = !1;
|
8640
|
+
Ye.prototype.commaOrSpaceSeparated = !1;
|
8641
|
+
Ye.prototype.mustUseProperty = !1;
|
8642
|
+
Ye.prototype.defined = !1;
|
8643
8643
|
let eh = 0;
|
8644
|
-
const X = gt(),
|
8644
|
+
const X = gt(), xe = gt(), Ua = gt(), A = gt(), pe = gt(), wt = gt(), Oe = gt();
|
8645
8645
|
function gt() {
|
8646
8646
|
return 2 ** ++eh;
|
8647
8647
|
}
|
8648
|
-
const
|
8648
|
+
const Nr = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineProperty({
|
8649
8649
|
__proto__: null,
|
8650
8650
|
boolean: X,
|
8651
|
-
booleanish:
|
8652
|
-
commaOrSpaceSeparated:
|
8651
|
+
booleanish: xe,
|
8652
|
+
commaOrSpaceSeparated: Oe,
|
8653
8653
|
commaSeparated: wt,
|
8654
8654
|
number: A,
|
8655
8655
|
overloadedBoolean: Ua,
|
8656
8656
|
spaceSeparated: pe
|
8657
|
-
}, Symbol.toStringTag, { value: "Module" })), or = Object.keys(
|
8658
|
-
class Vr extends
|
8657
|
+
}, Symbol.toStringTag, { value: "Module" })), or = Object.keys(Nr);
|
8658
|
+
class Vr extends Ye {
|
8659
8659
|
/**
|
8660
8660
|
* @constructor
|
8661
8661
|
* @param {string} property
|
@@ -8668,7 +8668,7 @@ class Vr extends Be {
|
|
8668
8668
|
if (super(t, n), yo(this, "space", i), typeof r == "number")
|
8669
8669
|
for (; ++o < or.length; ) {
|
8670
8670
|
const a = or[o];
|
8671
|
-
yo(this, or[o], (r &
|
8671
|
+
yo(this, or[o], (r & Nr[a]) === Nr[a]);
|
8672
8672
|
}
|
8673
8673
|
}
|
8674
8674
|
}
|
@@ -8688,7 +8688,7 @@ function Dt(e) {
|
|
8688
8688
|
i,
|
8689
8689
|
e.space
|
8690
8690
|
);
|
8691
|
-
e.mustUseProperty && e.mustUseProperty.includes(r) && (o.mustUseProperty = !0), t[r] = o, n[
|
8691
|
+
e.mustUseProperty && e.mustUseProperty.includes(r) && (o.mustUseProperty = !0), t[r] = o, n[Ir(r)] = r, n[Ir(o.attribute)] = r;
|
8692
8692
|
}
|
8693
8693
|
return new Gt(t, n, e.space);
|
8694
8694
|
}
|
@@ -8730,10 +8730,10 @@ const $a = Dt({
|
|
8730
8730
|
},
|
8731
8731
|
properties: {
|
8732
8732
|
ariaActiveDescendant: null,
|
8733
|
-
ariaAtomic:
|
8733
|
+
ariaAtomic: xe,
|
8734
8734
|
ariaAutoComplete: null,
|
8735
|
-
ariaBusy:
|
8736
|
-
ariaChecked:
|
8735
|
+
ariaBusy: xe,
|
8736
|
+
ariaChecked: xe,
|
8737
8737
|
ariaColCount: A,
|
8738
8738
|
ariaColIndex: A,
|
8739
8739
|
ariaColSpan: A,
|
@@ -8741,36 +8741,36 @@ const $a = Dt({
|
|
8741
8741
|
ariaCurrent: null,
|
8742
8742
|
ariaDescribedBy: pe,
|
8743
8743
|
ariaDetails: null,
|
8744
|
-
ariaDisabled:
|
8744
|
+
ariaDisabled: xe,
|
8745
8745
|
ariaDropEffect: pe,
|
8746
8746
|
ariaErrorMessage: null,
|
8747
|
-
ariaExpanded:
|
8747
|
+
ariaExpanded: xe,
|
8748
8748
|
ariaFlowTo: pe,
|
8749
|
-
ariaGrabbed:
|
8749
|
+
ariaGrabbed: xe,
|
8750
8750
|
ariaHasPopup: null,
|
8751
|
-
ariaHidden:
|
8751
|
+
ariaHidden: xe,
|
8752
8752
|
ariaInvalid: null,
|
8753
8753
|
ariaKeyShortcuts: null,
|
8754
8754
|
ariaLabel: null,
|
8755
8755
|
ariaLabelledBy: pe,
|
8756
8756
|
ariaLevel: A,
|
8757
8757
|
ariaLive: null,
|
8758
|
-
ariaModal:
|
8759
|
-
ariaMultiLine:
|
8760
|
-
ariaMultiSelectable:
|
8758
|
+
ariaModal: xe,
|
8759
|
+
ariaMultiLine: xe,
|
8760
|
+
ariaMultiSelectable: xe,
|
8761
8761
|
ariaOrientation: null,
|
8762
8762
|
ariaOwns: pe,
|
8763
8763
|
ariaPlaceholder: null,
|
8764
8764
|
ariaPosInSet: A,
|
8765
|
-
ariaPressed:
|
8766
|
-
ariaReadOnly:
|
8765
|
+
ariaPressed: xe,
|
8766
|
+
ariaReadOnly: xe,
|
8767
8767
|
ariaRelevant: null,
|
8768
|
-
ariaRequired:
|
8768
|
+
ariaRequired: xe,
|
8769
8769
|
ariaRoleDescription: pe,
|
8770
8770
|
ariaRowCount: A,
|
8771
8771
|
ariaRowIndex: A,
|
8772
8772
|
ariaRowSpan: A,
|
8773
|
-
ariaSelected:
|
8773
|
+
ariaSelected: xe,
|
8774
8774
|
ariaSetSize: A,
|
8775
8775
|
ariaSort: null,
|
8776
8776
|
ariaValueMax: A,
|
@@ -8816,7 +8816,7 @@ const $a = Dt({
|
|
8816
8816
|
cols: A,
|
8817
8817
|
colSpan: null,
|
8818
8818
|
content: null,
|
8819
|
-
contentEditable:
|
8819
|
+
contentEditable: xe,
|
8820
8820
|
controls: X,
|
8821
8821
|
controlsList: pe,
|
8822
8822
|
coords: A | wt,
|
@@ -8830,7 +8830,7 @@ const $a = Dt({
|
|
8830
8830
|
dirName: null,
|
8831
8831
|
disabled: X,
|
8832
8832
|
download: Ua,
|
8833
|
-
draggable:
|
8833
|
+
draggable: xe,
|
8834
8834
|
encType: null,
|
8835
8835
|
enterKeyHint: null,
|
8836
8836
|
fetchPriority: null,
|
@@ -9000,7 +9000,7 @@ const $a = Dt({
|
|
9000
9000
|
sizes: null,
|
9001
9001
|
slot: null,
|
9002
9002
|
span: A,
|
9003
|
-
spellCheck:
|
9003
|
+
spellCheck: xe,
|
9004
9004
|
src: null,
|
9005
9005
|
srcDoc: null,
|
9006
9006
|
srcLang: null,
|
@@ -9015,7 +9015,7 @@ const $a = Dt({
|
|
9015
9015
|
type: null,
|
9016
9016
|
typeMustMatch: X,
|
9017
9017
|
useMap: null,
|
9018
|
-
value:
|
9018
|
+
value: xe,
|
9019
9019
|
width: A,
|
9020
9020
|
wrap: null,
|
9021
9021
|
// Legacy.
|
@@ -9106,7 +9106,7 @@ const $a = Dt({
|
|
9106
9106
|
// `<table>`
|
9107
9107
|
scheme: null,
|
9108
9108
|
// `<meta>`
|
9109
|
-
scrolling:
|
9109
|
+
scrolling: xe,
|
9110
9110
|
// `<frame>`. Use overflow in the child context
|
9111
9111
|
standby: null,
|
9112
9112
|
// `<object>`
|
@@ -9317,7 +9317,7 @@ const $a = Dt({
|
|
9317
9317
|
},
|
9318
9318
|
transform: Ya,
|
9319
9319
|
properties: {
|
9320
|
-
about:
|
9320
|
+
about: Oe,
|
9321
9321
|
accentHeight: A,
|
9322
9322
|
accumulate: null,
|
9323
9323
|
additive: null,
|
@@ -9429,7 +9429,7 @@ const $a = Dt({
|
|
9429
9429
|
k2: A,
|
9430
9430
|
k3: A,
|
9431
9431
|
k4: A,
|
9432
|
-
kernelMatrix:
|
9432
|
+
kernelMatrix: Oe,
|
9433
9433
|
kernelUnitLength: null,
|
9434
9434
|
keyPoints: null,
|
9435
9435
|
// SEMI_COLON_SEPARATED
|
@@ -9586,21 +9586,21 @@ const $a = Dt({
|
|
9586
9586
|
preserveAspectRatio: null,
|
9587
9587
|
primitiveUnits: null,
|
9588
9588
|
propagate: null,
|
9589
|
-
property:
|
9589
|
+
property: Oe,
|
9590
9590
|
r: null,
|
9591
9591
|
radius: null,
|
9592
9592
|
referrerPolicy: null,
|
9593
9593
|
refX: null,
|
9594
9594
|
refY: null,
|
9595
|
-
rel:
|
9596
|
-
rev:
|
9595
|
+
rel: Oe,
|
9596
|
+
rev: Oe,
|
9597
9597
|
renderingIntent: null,
|
9598
9598
|
repeatCount: null,
|
9599
9599
|
repeatDur: null,
|
9600
|
-
requiredExtensions:
|
9601
|
-
requiredFeatures:
|
9602
|
-
requiredFonts:
|
9603
|
-
requiredFormats:
|
9600
|
+
requiredExtensions: Oe,
|
9601
|
+
requiredFeatures: Oe,
|
9602
|
+
requiredFonts: Oe,
|
9603
|
+
requiredFormats: Oe,
|
9604
9604
|
resource: null,
|
9605
9605
|
restart: null,
|
9606
9606
|
result: null,
|
@@ -9628,7 +9628,7 @@ const $a = Dt({
|
|
9628
9628
|
strikethroughThickness: A,
|
9629
9629
|
string: null,
|
9630
9630
|
stroke: null,
|
9631
|
-
strokeDashArray:
|
9631
|
+
strokeDashArray: Oe,
|
9632
9632
|
strokeDashOffset: null,
|
9633
9633
|
strokeLineCap: null,
|
9634
9634
|
strokeLineJoin: null,
|
@@ -9642,7 +9642,7 @@ const $a = Dt({
|
|
9642
9642
|
syncMaster: null,
|
9643
9643
|
syncTolerance: null,
|
9644
9644
|
syncToleranceDefault: null,
|
9645
|
-
systemLanguage:
|
9645
|
+
systemLanguage: Oe,
|
9646
9646
|
tabIndex: A,
|
9647
9647
|
tableValues: null,
|
9648
9648
|
target: null,
|
@@ -9656,7 +9656,7 @@ const $a = Dt({
|
|
9656
9656
|
title: null,
|
9657
9657
|
transformBehavior: null,
|
9658
9658
|
type: null,
|
9659
|
-
typeOf:
|
9659
|
+
typeOf: Oe,
|
9660
9660
|
to: null,
|
9661
9661
|
transform: null,
|
9662
9662
|
transformOrigin: null,
|
@@ -9699,8 +9699,8 @@ const $a = Dt({
|
|
9699
9699
|
}
|
9700
9700
|
}), ih = /^data[-\w.:]+$/i, bo = /-[a-z]/g, oh = /[A-Z]/g;
|
9701
9701
|
function ah(e, t) {
|
9702
|
-
const n =
|
9703
|
-
let r = t, i =
|
9702
|
+
const n = Ir(t);
|
9703
|
+
let r = t, i = Ye;
|
9704
9704
|
if (n in e.normal)
|
9705
9705
|
return e.property[e.normal[n]];
|
9706
9706
|
if (n.length > 4 && n.slice(0, 4) === "data" && ih.test(t)) {
|
@@ -9761,7 +9761,7 @@ function ph(e) {
|
|
9761
9761
|
});
|
9762
9762
|
};
|
9763
9763
|
}
|
9764
|
-
var Va = { exports: {} },
|
9764
|
+
var Va = { exports: {} }, le = {};
|
9765
9765
|
/**
|
9766
9766
|
* @license React
|
9767
9767
|
* react-is.production.min.js
|
@@ -9771,15 +9771,15 @@ var Va = { exports: {} }, se = {};
|
|
9771
9771
|
* This source code is licensed under the MIT license found in the
|
9772
9772
|
* LICENSE file in the root directory of this source tree.
|
9773
9773
|
*/
|
9774
|
-
var Wr = Symbol.for("react.element"), Gr = Symbol.for("react.portal"),
|
9774
|
+
var Wr = Symbol.for("react.element"), Gr = Symbol.for("react.portal"), Nn = Symbol.for("react.fragment"), kn = Symbol.for("react.strict_mode"), jn = Symbol.for("react.profiler"), En = Symbol.for("react.provider"), Cn = Symbol.for("react.context"), fh = Symbol.for("react.server_context"), An = Symbol.for("react.forward_ref"), Sn = Symbol.for("react.suspense"), On = Symbol.for("react.suspense_list"), zn = Symbol.for("react.memo"), Ln = Symbol.for("react.lazy"), dh = Symbol.for("react.offscreen"), Wa;
|
9775
9775
|
Wa = Symbol.for("react.module.reference");
|
9776
|
-
function
|
9776
|
+
function He(e) {
|
9777
9777
|
if (typeof e == "object" && e !== null) {
|
9778
9778
|
var t = e.$$typeof;
|
9779
9779
|
switch (t) {
|
9780
9780
|
case Wr:
|
9781
9781
|
switch (e = e.type, e) {
|
9782
|
-
case
|
9782
|
+
case Nn:
|
9783
9783
|
case jn:
|
9784
9784
|
case kn:
|
9785
9785
|
case Sn:
|
@@ -9803,65 +9803,65 @@ function Qe(e) {
|
|
9803
9803
|
}
|
9804
9804
|
}
|
9805
9805
|
}
|
9806
|
-
|
9807
|
-
|
9808
|
-
|
9809
|
-
|
9810
|
-
|
9811
|
-
|
9812
|
-
|
9813
|
-
|
9814
|
-
|
9815
|
-
|
9816
|
-
|
9817
|
-
|
9818
|
-
|
9806
|
+
le.ContextConsumer = Cn;
|
9807
|
+
le.ContextProvider = En;
|
9808
|
+
le.Element = Wr;
|
9809
|
+
le.ForwardRef = An;
|
9810
|
+
le.Fragment = Nn;
|
9811
|
+
le.Lazy = Ln;
|
9812
|
+
le.Memo = zn;
|
9813
|
+
le.Portal = Gr;
|
9814
|
+
le.Profiler = jn;
|
9815
|
+
le.StrictMode = kn;
|
9816
|
+
le.Suspense = Sn;
|
9817
|
+
le.SuspenseList = On;
|
9818
|
+
le.isAsyncMode = function() {
|
9819
9819
|
return !1;
|
9820
9820
|
};
|
9821
|
-
|
9821
|
+
le.isConcurrentMode = function() {
|
9822
9822
|
return !1;
|
9823
9823
|
};
|
9824
|
-
|
9825
|
-
return
|
9824
|
+
le.isContextConsumer = function(e) {
|
9825
|
+
return He(e) === Cn;
|
9826
9826
|
};
|
9827
|
-
|
9828
|
-
return
|
9827
|
+
le.isContextProvider = function(e) {
|
9828
|
+
return He(e) === En;
|
9829
9829
|
};
|
9830
|
-
|
9830
|
+
le.isElement = function(e) {
|
9831
9831
|
return typeof e == "object" && e !== null && e.$$typeof === Wr;
|
9832
9832
|
};
|
9833
|
-
|
9834
|
-
return
|
9833
|
+
le.isForwardRef = function(e) {
|
9834
|
+
return He(e) === An;
|
9835
9835
|
};
|
9836
|
-
|
9837
|
-
return
|
9836
|
+
le.isFragment = function(e) {
|
9837
|
+
return He(e) === Nn;
|
9838
9838
|
};
|
9839
|
-
|
9840
|
-
return
|
9839
|
+
le.isLazy = function(e) {
|
9840
|
+
return He(e) === Ln;
|
9841
9841
|
};
|
9842
|
-
|
9843
|
-
return
|
9842
|
+
le.isMemo = function(e) {
|
9843
|
+
return He(e) === zn;
|
9844
9844
|
};
|
9845
|
-
|
9846
|
-
return
|
9845
|
+
le.isPortal = function(e) {
|
9846
|
+
return He(e) === Gr;
|
9847
9847
|
};
|
9848
|
-
|
9849
|
-
return
|
9848
|
+
le.isProfiler = function(e) {
|
9849
|
+
return He(e) === jn;
|
9850
9850
|
};
|
9851
|
-
|
9852
|
-
return
|
9851
|
+
le.isStrictMode = function(e) {
|
9852
|
+
return He(e) === kn;
|
9853
9853
|
};
|
9854
|
-
|
9855
|
-
return
|
9854
|
+
le.isSuspense = function(e) {
|
9855
|
+
return He(e) === Sn;
|
9856
9856
|
};
|
9857
|
-
|
9858
|
-
return
|
9857
|
+
le.isSuspenseList = function(e) {
|
9858
|
+
return He(e) === On;
|
9859
9859
|
};
|
9860
|
-
|
9861
|
-
return typeof e == "string" || typeof e == "function" || e ===
|
9860
|
+
le.isValidElementType = function(e) {
|
9861
|
+
return typeof e == "string" || typeof e == "function" || e === Nn || e === jn || e === kn || e === Sn || e === On || e === dh || typeof e == "object" && e !== null && (e.$$typeof === Ln || e.$$typeof === zn || e.$$typeof === En || e.$$typeof === Cn || e.$$typeof === An || e.$$typeof === Wa || e.getModuleId !== void 0);
|
9862
9862
|
};
|
9863
|
-
|
9864
|
-
Va.exports =
|
9863
|
+
le.typeOf = He;
|
9864
|
+
Va.exports = le;
|
9865
9865
|
var hh = Va.exports;
|
9866
9866
|
const gh = /* @__PURE__ */ it(hh);
|
9867
9867
|
function mh(e) {
|
@@ -9883,7 +9883,7 @@ function bh(e, t) {
|
|
9883
9883
|
(n.padRight ? " " : "") + "," + (n.padLeft === !1 ? "" : " ")
|
9884
9884
|
).trim();
|
9885
9885
|
}
|
9886
|
-
var Zr = { exports: {} }, xo = /\/\*[^*]*\*+([^/*][^*]*\*+)*\//g, Mh = /\n/g, xh = /^\s*/, wh = /^(\*?[-#/*\\\w]+(\[[0-9a-z_-]+\])?)\s*/, vh = /^:\s*/, Th = /^((?:'(?:\\'|.)*?'|"(?:\\"|.)*?"|\([^)]*?\)|[^};])+)/, Dh = /^[;\s]*/,
|
9886
|
+
var Zr = { exports: {} }, xo = /\/\*[^*]*\*+([^/*][^*]*\*+)*\//g, Mh = /\n/g, xh = /^\s*/, wh = /^(\*?[-#/*\\\w]+(\[[0-9a-z_-]+\])?)\s*/, vh = /^:\s*/, Th = /^((?:'(?:\\'|.)*?'|"(?:\\"|.)*?"|\([^)]*?\)|[^};])+)/, Dh = /^[;\s]*/, Ih = /^\s+|\s+$/g, Nh = `
|
9887
9887
|
`, wo = "/", vo = "*", ft = "", kh = "comment", jh = "declaration", Eh = function(e, t) {
|
9888
9888
|
if (typeof e != "string")
|
9889
9889
|
throw new TypeError("First argument must be a string");
|
@@ -9894,7 +9894,7 @@ var Zr = { exports: {} }, xo = /\/\*[^*]*\*+([^/*][^*]*\*+)*\//g, Mh = /\n/g, xh
|
|
9894
9894
|
function i(T) {
|
9895
9895
|
var x = T.match(Mh);
|
9896
9896
|
x && (n += x.length);
|
9897
|
-
var k = T.lastIndexOf(
|
9897
|
+
var k = T.lastIndexOf(Nh);
|
9898
9898
|
r = ~k ? T.length - k : r + T.length;
|
9899
9899
|
}
|
9900
9900
|
function o() {
|
@@ -9967,7 +9967,7 @@ var Zr = { exports: {} }, xo = /\/\*[^*]*\*+([^/*][^*]*\*+)*\//g, Mh = /\n/g, xh
|
|
9967
9967
|
return u(), p();
|
9968
9968
|
};
|
9969
9969
|
function To(e) {
|
9970
|
-
return e ? e.replace(
|
9970
|
+
return e ? e.replace(Ih, ft) : ft;
|
9971
9971
|
}
|
9972
9972
|
var Ch = Eh;
|
9973
9973
|
function Ga(e, t) {
|
@@ -10180,15 +10180,15 @@ Xr.propTypes = {
|
|
10180
10180
|
};
|
10181
10181
|
const Xa = () => {
|
10182
10182
|
var s, u, c;
|
10183
|
-
const { conversationScreen: e, xpertKey: t } =
|
10184
|
-
|
10183
|
+
const { conversationScreen: e, xpertKey: t } = Le(_e), n = `${t}-maintenance-banner`, [r, i] = ye(
|
10184
|
+
Ee.get(n) === void 0
|
10185
10185
|
), o = /* @__PURE__ */ new Date(), a = new Date(
|
10186
10186
|
(s = e == null ? void 0 : e.maintenanceBanner) == null ? void 0 : s.endDateTime
|
10187
10187
|
);
|
10188
10188
|
if (!((u = e == null ? void 0 : e.maintenanceBanner) != null && u.enabled) || !((c = e == null ? void 0 : e.maintenanceBanner) != null && c.text) || o > a || !r)
|
10189
10189
|
return null;
|
10190
10190
|
const l = () => {
|
10191
|
-
|
10191
|
+
Ee.set(n, "1", { expires: 1 }), i(!1);
|
10192
10192
|
};
|
10193
10193
|
return /* @__PURE__ */ v.jsxs(
|
10194
10194
|
"div",
|
@@ -10244,8 +10244,8 @@ function Kr({
|
|
10244
10244
|
loading: s,
|
10245
10245
|
userInput: u
|
10246
10246
|
}) {
|
10247
|
-
const { primaryColor: c } =
|
10248
|
-
return
|
10247
|
+
const { primaryColor: c } = Le(_e);
|
10248
|
+
return Me(() => {
|
10249
10249
|
var f;
|
10250
10250
|
(o || a) && ((f = l.current) == null || f.focus());
|
10251
10251
|
}, [a, o, l]), /* @__PURE__ */ v.jsxs("div", { className: "xpert-chatbot-popup__input--group", style: e, children: [
|
@@ -10378,13 +10378,13 @@ function _n({
|
|
10378
10378
|
text: a,
|
10379
10379
|
userTrackingName: l
|
10380
10380
|
}) {
|
10381
|
-
const [s, u] = ye(!0), { primaryColor: c, xpertKey: f, userTracking: m, conversationScreen: p } =
|
10381
|
+
const [s, u] = ye(!0), { primaryColor: c, xpertKey: f, userTracking: m, conversationScreen: p } = Le(_e), T = Ht(
|
10382
10382
|
(b) => {
|
10383
10383
|
var z, E, _, Q;
|
10384
|
-
((z = b == null ? void 0 : b.data) == null ? void 0 : z.who) === "customer" && (!(window != null && window.OnetrustActiveGroups) || (E = window == null ? void 0 : window.OnetrustActiveGroups) != null && E.includes("C0003")) &&
|
10384
|
+
((z = b == null ? void 0 : b.data) == null ? void 0 : z.who) === "customer" && (!(window != null && window.OnetrustActiveGroups) || (E = window == null ? void 0 : window.OnetrustActiveGroups) != null && E.includes("C0003")) && Ee.set(`${f}-live-chat-open`, 1, {
|
10385
10385
|
expires: 1,
|
10386
10386
|
path: "/"
|
10387
|
-
}), ((_ = b == null ? void 0 : b.data) == null ? void 0 : _.type) === "connection" && ((Q = b == null ? void 0 : b.data) == null ? void 0 : Q.state) === "disconnected" &&
|
10387
|
+
}), ((_ = b == null ? void 0 : b.data) == null ? void 0 : _.type) === "connection" && ((Q = b == null ? void 0 : b.data) == null ? void 0 : Q.state) === "disconnected" && Ee.remove(`${f}-live-chat-open`);
|
10388
10388
|
},
|
10389
10389
|
[f]
|
10390
10390
|
), x = Ht(
|
@@ -10394,7 +10394,7 @@ function _n({
|
|
10394
10394
|
},
|
10395
10395
|
[t]
|
10396
10396
|
);
|
10397
|
-
|
10397
|
+
Me(() => {
|
10398
10398
|
let b, z;
|
10399
10399
|
return p.liveChat.enabled && (window.Five9ChatPlugin || (b = document.createElement("script"), b.type = "text/javascript", b.src = p.liveChat.sourceCode, b.async = !0, b.onload = () => {
|
10400
10400
|
window.Five9ChatPlugin(p.liveChat.options);
|
@@ -10566,8 +10566,8 @@ Fn.defaultProps = {
|
|
10566
10566
|
};
|
10567
10567
|
Fn.displayName = "AssistantMessageBubble";
|
10568
10568
|
const Vh = Fn, Ja = () => {
|
10569
|
-
const { disclaimer: e } =
|
10570
|
-
return
|
10569
|
+
const { disclaimer: e } = Le(_e), t = We(null);
|
10570
|
+
return Me(() => {
|
10571
10571
|
var n;
|
10572
10572
|
(n = t == null ? void 0 : t.current) == null || n.focus();
|
10573
10573
|
}, []), /* @__PURE__ */ v.jsxs(
|
@@ -10600,7 +10600,7 @@ const Vh = Fn, Ja = () => {
|
|
10600
10600
|
Ja.displayName = "ConversationScreenDisclaimer";
|
10601
10601
|
const Wh = Ja, Jr = ({ loading: e, onPromptClick: t }) => {
|
10602
10602
|
var i;
|
10603
|
-
const { primaryColor: n, conversationScreen: r } =
|
10603
|
+
const { primaryColor: n, conversationScreen: r } = Le(_e);
|
10604
10604
|
return /* @__PURE__ */ v.jsxs(v.Fragment, { children: [
|
10605
10605
|
/* @__PURE__ */ v.jsx("div", { style: { fontWeight: 700, fontSize: "0.75rem" }, children: "Some things I can help you with" }),
|
10606
10606
|
(i = r.prompts) == null ? void 0 : i.map((o) => {
|
@@ -10645,7 +10645,7 @@ ei.propTypes = {
|
|
10645
10645
|
ei.displayName = "SystemMessageBubble";
|
10646
10646
|
const Zh = ei, ti = ({ content: e, isNormalSize: t }) => {
|
10647
10647
|
var i;
|
10648
|
-
const { primaryColor: n, conversationScreen: r } =
|
10648
|
+
const { primaryColor: n, conversationScreen: r } = Le(_e);
|
10649
10649
|
return /* @__PURE__ */ v.jsx(
|
10650
10650
|
"section",
|
10651
10651
|
{
|
@@ -10676,8 +10676,8 @@ const Xh = ti, Pn = ({
|
|
10676
10676
|
setLiveChatOpen: l,
|
10677
10677
|
isTestUser: s
|
10678
10678
|
}) => {
|
10679
|
-
const { conversationScreen: u } =
|
10680
|
-
return
|
10679
|
+
const { conversationScreen: u } = Le(_e), { prompts: c, systemMessage: f } = u, m = We(null);
|
10680
|
+
return Me(() => {
|
10681
10681
|
var p;
|
10682
10682
|
(p = m.current) == null || p.scrollIntoView({
|
10683
10683
|
behavior: "instant",
|
@@ -10759,7 +10759,7 @@ Pn.displayName = "ConversationsMessages";
|
|
10759
10759
|
const Kh = Pn;
|
10760
10760
|
function el({ disableScroll: e }) {
|
10761
10761
|
const t = We(null);
|
10762
|
-
return
|
10762
|
+
return Me(() => {
|
10763
10763
|
var n;
|
10764
10764
|
e || (n = t.current) == null || n.scrollIntoView({
|
10765
10765
|
behavior: "smooth",
|
@@ -10785,7 +10785,7 @@ el.propTypes = {
|
|
10785
10785
|
};
|
10786
10786
|
const Jh = () => {
|
10787
10787
|
const e = We(null);
|
10788
|
-
return
|
10788
|
+
return Me(() => {
|
10789
10789
|
var t;
|
10790
10790
|
(t = e.current) == null || t.scrollIntoView({
|
10791
10791
|
behavior: "instant"
|
@@ -10856,17 +10856,17 @@ function tl({
|
|
10856
10856
|
style: o = {}
|
10857
10857
|
}) {
|
10858
10858
|
var T;
|
10859
|
-
const { proactiveMessage: a } =
|
10860
|
-
|
10859
|
+
const { proactiveMessage: a } = Le(_e), [l, s] = ye(!0), [u, c] = ye(!1), f = l && (!(window != null && window.OnetrustActiveGroups) || ((T = window == null ? void 0 : window.OnetrustActiveGroups) == null ? void 0 : T.includes("C0003"))) && Ee.get(t) === void 0;
|
10860
|
+
Me(() => {
|
10861
10861
|
var x;
|
10862
10862
|
(x = window == null ? void 0 : window.OneTrust) == null || x.OnConsentChanged(() => {
|
10863
10863
|
var k;
|
10864
|
-
!((k = window == null ? void 0 : window.OnetrustActiveGroups) != null && k.includes("C0003")) &&
|
10864
|
+
!((k = window == null ? void 0 : window.OnetrustActiveGroups) != null && k.includes("C0003")) && Ee.get(t) !== void 0 && Ee.remove(t);
|
10865
10865
|
});
|
10866
|
-
}, [t]),
|
10866
|
+
}, [t]), Me(() => {
|
10867
10867
|
var x;
|
10868
10868
|
i || (!(window != null && window.OnetrustActiveGroups) || (x = window == null ? void 0 : window.OnetrustActiveGroups) != null && x.includes("C0003")) && p(t, 1, 1);
|
10869
|
-
}, [t, i]),
|
10869
|
+
}, [t, i]), Me(() => {
|
10870
10870
|
if (a.enabled && a.delayMs > 0) {
|
10871
10871
|
const x = setTimeout(() => {
|
10872
10872
|
c(!0);
|
@@ -10883,7 +10883,7 @@ function tl({
|
|
10883
10883
|
expires: b,
|
10884
10884
|
path: "/"
|
10885
10885
|
};
|
10886
|
-
|
10886
|
+
Ee.set(x, k, z);
|
10887
10887
|
};
|
10888
10888
|
return !u || !f ? null : /* @__PURE__ */ v.jsx("div", { children: /* @__PURE__ */ v.jsxs(
|
10889
10889
|
"div",
|
@@ -10944,9 +10944,9 @@ function eg(e, t, n) {
|
|
10944
10944
|
},
|
10945
10945
|
[n]
|
10946
10946
|
);
|
10947
|
-
|
10947
|
+
Me(() => (e && window.addEventListener("message", r), () => {
|
10948
10948
|
window.removeEventListener("message", r);
|
10949
|
-
}), [e, r]),
|
10949
|
+
}), [e, r]), Me(() => {
|
10950
10950
|
let i;
|
10951
10951
|
return e && (i = document.createElement("style"), document.head.appendChild(i), ((a) => {
|
10952
10952
|
i.innerHTML = `
|
@@ -10968,7 +10968,7 @@ function eg(e, t, n) {
|
|
10968
10968
|
}
|
10969
10969
|
function tg(e) {
|
10970
10970
|
const [t, n] = ye(null);
|
10971
|
-
return
|
10971
|
+
return Me(() => {
|
10972
10972
|
try {
|
10973
10973
|
(() => {
|
10974
10974
|
var i, o, a;
|
@@ -10997,7 +10997,7 @@ function tg(e) {
|
|
10997
10997
|
), t;
|
10998
10998
|
}
|
10999
10999
|
function ng(e) {
|
11000
|
-
|
11000
|
+
Me(() => {
|
11001
11001
|
e();
|
11002
11002
|
const t = () => document.visibilityState === "visible" && e();
|
11003
11003
|
return document.addEventListener("visibilitychange", t), () => {
|
@@ -11030,7 +11030,7 @@ function ni({ submitEventExternal: e }) {
|
|
11030
11030
|
userTracking: o,
|
11031
11031
|
webExperimentation: a,
|
11032
11032
|
xpertKey: l
|
11033
|
-
} =
|
11033
|
+
} = Le(_e), s = ot(), [, u] = ye(!1), [, c] = ye(!1), [f, m] = ye(!1), [p, T] = ye(ag), [x, k] = ye(!1), [b, z] = ye(!1), [E, _] = ye(!1), [Q, M] = ye(""), [L, Y] = ye(!1), [q, J] = ye(!0), [S, w] = ye(!1), [j, O] = ye(!1), [P, $] = ye(!1), G = We(null), Z = We(null), ie = We(null), h = Ee.get(`${l}-test`) === "1";
|
11034
11034
|
eg(
|
11035
11035
|
n.liveChat.enabled,
|
11036
11036
|
E,
|
@@ -11046,10 +11046,10 @@ function ni({ submitEventExternal: e }) {
|
|
11046
11046
|
);
|
11047
11047
|
},
|
11048
11048
|
[e, o.payloadParams]
|
11049
|
-
),
|
11049
|
+
), we = Ht(async () => {
|
11050
11050
|
if (window != null && window.OnetrustActiveGroups && window.OnetrustActiveGroups.split(",").includes("C0003"))
|
11051
11051
|
try {
|
11052
|
-
const F =
|
11052
|
+
const F = Ee.get(
|
11053
11053
|
`${l}-conversation-history-id`
|
11054
11054
|
);
|
11055
11055
|
if (!F)
|
@@ -11065,15 +11065,15 @@ function ni({ submitEventExternal: e }) {
|
|
11065
11065
|
}
|
11066
11066
|
);
|
11067
11067
|
if (W.status === 404) {
|
11068
|
-
|
11068
|
+
Ee.remove(`${l}-conversation-history-id`);
|
11069
11069
|
return;
|
11070
11070
|
}
|
11071
11071
|
if (!W.ok)
|
11072
11072
|
throw new lr(`HTTPError: ${W.status} ${W.statusText}`);
|
11073
11073
|
const be = await W.json();
|
11074
11074
|
T(
|
11075
|
-
be.map((
|
11076
|
-
...
|
11075
|
+
be.map((se) => ({
|
11076
|
+
...se,
|
11077
11077
|
disableFeedback: !0
|
11078
11078
|
}))
|
11079
11079
|
), O(!0), $(!0);
|
@@ -11083,17 +11083,17 @@ function ni({ submitEventExternal: e }) {
|
|
11083
11083
|
k(!1);
|
11084
11084
|
}
|
11085
11085
|
}, [l, t.endpoint]);
|
11086
|
-
ng(
|
11086
|
+
ng(we), Me(() => {
|
11087
11087
|
let F, W;
|
11088
11088
|
return o.enabled && (F = setInterval(() => {
|
11089
|
-
var
|
11090
|
-
console.log("Chatbot - Finding Segment"), (
|
11089
|
+
var se;
|
11090
|
+
console.log("Chatbot - Finding Segment"), (se = window.analytics) != null && se.track && (console.log("Chatbot - Segment found"), ie.current = window.analytics, clearInterval(F), clearTimeout(W), u(!0));
|
11091
11091
|
}, 1e3), W = setTimeout(() => {
|
11092
11092
|
clearInterval(F);
|
11093
11093
|
}, 6e4)), () => {
|
11094
11094
|
clearInterval(F), clearTimeout(W);
|
11095
11095
|
};
|
11096
|
-
}, [o.enabled, o.prefix]),
|
11096
|
+
}, [o.enabled, o.prefix]), Me(() => {
|
11097
11097
|
let F, W;
|
11098
11098
|
return F = setInterval(() => {
|
11099
11099
|
a.enabled && (console.log("Chatbot - Finding Optimizely"), window.optimizely && window.experiments && (console.log("Chatbot - Optimizely found"), clearInterval(F), clearTimeout(W), c(!0)));
|
@@ -11102,40 +11102,40 @@ function ni({ submitEventExternal: e }) {
|
|
11102
11102
|
}, 6e4), () => {
|
11103
11103
|
clearInterval(F), clearTimeout(W);
|
11104
11104
|
};
|
11105
|
-
}, [a.enabled, a.experimentName]),
|
11105
|
+
}, [a.enabled, a.experimentName]), Me(() => {
|
11106
11106
|
let F, W;
|
11107
11107
|
return F = setInterval(() => {
|
11108
|
-
var
|
11108
|
+
var C, U, K, ee, de;
|
11109
11109
|
console.log(
|
11110
11110
|
"Chatbot - Finding Mobile banners",
|
11111
11111
|
s,
|
11112
11112
|
f
|
11113
11113
|
);
|
11114
|
-
const
|
11115
|
-
|
11116
|
-
),
|
11114
|
+
const se = (C = document.querySelectorAll(".branch-banner-ios")) == null ? void 0 : C[0], Te = (U = document.querySelectorAll(
|
11115
|
+
".branch-banner-android"
|
11116
|
+
)) == null ? void 0 : U[0], I = (K = document.querySelectorAll(
|
11117
11117
|
".onetrust-banner-sdk"
|
11118
|
-
)) == null ? void 0 :
|
11119
|
-
if ((
|
11118
|
+
)) == null ? void 0 : K[0];
|
11119
|
+
if ((se || Te || I && ((ee = I == null ? void 0 : I.style) == null ? void 0 : ee.display) !== "none") && s && !f && (console.log("Chatbot - Mobile banners found"), m(!0)), !se && !Te && (!I || ((de = I == null ? void 0 : I.style) == null ? void 0 : de.display) === "none") && s && f) {
|
11120
11120
|
console.log("Chatbot - Mobile banners not found");
|
11121
|
-
const
|
11121
|
+
const Ne = document.getElementById(
|
11122
11122
|
"xpert_chatbot__proactive-message"
|
11123
11123
|
);
|
11124
|
-
|
11125
|
-
const
|
11124
|
+
Ne && (Ne.style.bottom = "6rem");
|
11125
|
+
const ke = document.getElementById(
|
11126
11126
|
"xpert_chatbot__floating-action-btn"
|
11127
11127
|
);
|
11128
|
-
|
11128
|
+
ke && (ke.style.bottom = "0rem"), clearInterval(F), clearTimeout(W);
|
11129
11129
|
}
|
11130
11130
|
}, 1e3), W = setTimeout(() => {
|
11131
11131
|
var I, C;
|
11132
11132
|
console.log("Chatbot - Mobile banner search time out"), clearInterval(F);
|
11133
|
-
const
|
11133
|
+
const se = document.querySelectorAll(
|
11134
11134
|
'[class^="branch-banner"]'
|
11135
|
-
),
|
11135
|
+
), Te = (I = document.querySelectorAll(
|
11136
11136
|
".onetrust-banner-sdk"
|
11137
11137
|
)) == null ? void 0 : I[0];
|
11138
|
-
if ((
|
11138
|
+
if ((se == null ? void 0 : se.length) === 0 && (!Te || ((C = Te == null ? void 0 : Te.style) == null ? void 0 : C.display) === "none") && s) {
|
11139
11139
|
console.log("Chatbot - Mobile banners not found");
|
11140
11140
|
const U = document.getElementById(
|
11141
11141
|
"xpert_chatbot__proactive-message"
|
@@ -11172,7 +11172,7 @@ function ni({ submitEventExternal: e }) {
|
|
11172
11172
|
return console.log(`Chatbot - Segment not setup: ${l}`), null;
|
11173
11173
|
const De = () => {
|
11174
11174
|
M(""), Z.current.value = "", Z.current.style.height = "auto";
|
11175
|
-
},
|
11175
|
+
}, ae = (F, W) => {
|
11176
11176
|
ne({
|
11177
11177
|
name: `${o.prefix}.bi.xpert.chatbot.popup.chat.message.response`,
|
11178
11178
|
payload: {
|
@@ -11184,12 +11184,12 @@ function ni({ submitEventExternal: e }) {
|
|
11184
11184
|
conversationHistoryId: W
|
11185
11185
|
}
|
11186
11186
|
});
|
11187
|
-
},
|
11187
|
+
}, Ie = ({
|
11188
11188
|
conversationSize: F,
|
11189
11189
|
userInputMessage: W,
|
11190
11190
|
apiResponseMessage: be,
|
11191
|
-
elapsedSeconds:
|
11192
|
-
conversationByteSize:
|
11191
|
+
elapsedSeconds: se,
|
11192
|
+
conversationByteSize: Te
|
11193
11193
|
}) => {
|
11194
11194
|
ne({
|
11195
11195
|
name: `${o.prefix}.bi.xpert.chatbot.popup.chat.message.elapsed.seconds`,
|
@@ -11200,17 +11200,17 @@ function ni({ submitEventExternal: e }) {
|
|
11200
11200
|
conversationSize: F,
|
11201
11201
|
userInputMessage: W,
|
11202
11202
|
apiResponseMessage: be,
|
11203
|
-
elapsedSeconds:
|
11204
|
-
conversationByteSize:
|
11203
|
+
elapsedSeconds: se,
|
11204
|
+
conversationByteSize: Te
|
11205
11205
|
}
|
11206
11206
|
});
|
11207
|
-
},
|
11207
|
+
}, ve = async (F) => {
|
11208
11208
|
try {
|
11209
11209
|
if (F.trim().length === 0)
|
11210
11210
|
return;
|
11211
11211
|
const W = /* @__PURE__ */ new Date();
|
11212
11212
|
$(!1), Y(!1);
|
11213
|
-
const be = p.filter((
|
11213
|
+
const be = p.filter((de) => de.role === "user").length + 1;
|
11214
11214
|
ne({
|
11215
11215
|
name: `${o.prefix}.bi.xpert.chatbot.popup.chat.message.sent`,
|
11216
11216
|
payload: {
|
@@ -11221,8 +11221,8 @@ function ni({ submitEventExternal: e }) {
|
|
11221
11221
|
isTestUser: h
|
11222
11222
|
}
|
11223
11223
|
}), De();
|
11224
|
-
let
|
11225
|
-
!
|
11224
|
+
let se = Ee.get(`${l}-conversation-history-id`) || "";
|
11225
|
+
!se && n.conversationHistory.enabled ? T([
|
11226
11226
|
{
|
11227
11227
|
role: "user",
|
11228
11228
|
content: F
|
@@ -11234,44 +11234,44 @@ function ni({ submitEventExternal: e }) {
|
|
11234
11234
|
content: F
|
11235
11235
|
}
|
11236
11236
|
]), k(!0);
|
11237
|
-
const
|
11237
|
+
const Te = [
|
11238
11238
|
...p,
|
11239
11239
|
{
|
11240
11240
|
role: "user",
|
11241
11241
|
content: F
|
11242
11242
|
}
|
11243
|
-
].map((
|
11244
|
-
role:
|
11245
|
-
content:
|
11243
|
+
].map((de) => ({
|
11244
|
+
role: de.role,
|
11245
|
+
content: de.content
|
11246
11246
|
})), I = await fetch(t.endpoint, {
|
11247
11247
|
method: "POST",
|
11248
11248
|
headers: {
|
11249
11249
|
"Content-Type": "application/json",
|
11250
|
-
"Conversation-History-Id":
|
11250
|
+
"Conversation-History-Id": se
|
11251
11251
|
},
|
11252
11252
|
body: JSON.stringify({
|
11253
|
-
message_list:
|
11253
|
+
message_list: Te,
|
11254
11254
|
...t.payloadParams
|
11255
11255
|
})
|
11256
11256
|
});
|
11257
11257
|
if (!I.ok)
|
11258
11258
|
throw new lr(`HTTPError: ${I.status} ${I.statusText}`);
|
11259
|
-
|
11259
|
+
se = I.headers.get("Conversation-History-Id"), se && Ee.set(
|
11260
11260
|
`${l}-conversation-history-id`,
|
11261
|
-
|
11261
|
+
se,
|
11262
11262
|
{ expires: 1 }
|
11263
11263
|
);
|
11264
11264
|
const C = await I.json(), U = C.content, K = C.live_agent;
|
11265
|
-
|
11265
|
+
ae(U, se);
|
11266
11266
|
const ee = /* @__PURE__ */ new Date();
|
11267
|
-
|
11268
|
-
conversationByteSize: og(JSON.stringify(
|
11267
|
+
Ie({
|
11268
|
+
conversationByteSize: og(JSON.stringify(Te)),
|
11269
11269
|
conversationSize: p.length + 2,
|
11270
11270
|
userInputMessage: F,
|
11271
11271
|
apiResponseMessage: U,
|
11272
11272
|
elapsedSeconds: rg(W, ee)
|
11273
|
-
}), T((
|
11274
|
-
...
|
11273
|
+
}), T((de) => [
|
11274
|
+
...de,
|
11275
11275
|
{
|
11276
11276
|
role: "assistant",
|
11277
11277
|
content: U,
|
@@ -11282,7 +11282,7 @@ function ni({ submitEventExternal: e }) {
|
|
11282
11282
|
} catch (W) {
|
11283
11283
|
k(!1), De(), Y(!0), console.error(W);
|
11284
11284
|
}
|
11285
|
-
},
|
11285
|
+
}, Fe = () => {
|
11286
11286
|
_(!1), z(!0), ne({
|
11287
11287
|
name: `${o.prefix}.bi.xpert.chatbot.action.button.clicked`,
|
11288
11288
|
payload: {
|
@@ -11291,7 +11291,7 @@ function ni({ submitEventExternal: e }) {
|
|
11291
11291
|
isTestUser: h
|
11292
11292
|
}
|
11293
11293
|
});
|
11294
|
-
},
|
11294
|
+
}, Pe = (F) => {
|
11295
11295
|
ne({
|
11296
11296
|
name: `${o.prefix}.bi.xpert.chatbot.${F ? "normal" : "expand"}.size.button.clicked`,
|
11297
11297
|
payload: {
|
@@ -11318,7 +11318,7 @@ function ni({ submitEventExternal: e }) {
|
|
11318
11318
|
isTestUser: h
|
11319
11319
|
}
|
11320
11320
|
});
|
11321
|
-
},
|
11321
|
+
}, It = () => {
|
11322
11322
|
z(!1), w(!1), ne({
|
11323
11323
|
name: `${o.prefix}.bi.xpert.chatbot.popup.chat.minimized`,
|
11324
11324
|
payload: {
|
@@ -11327,7 +11327,7 @@ function ni({ submitEventExternal: e }) {
|
|
11327
11327
|
isTestUser: h
|
11328
11328
|
}
|
11329
11329
|
});
|
11330
|
-
},
|
11330
|
+
}, Nt = () => {
|
11331
11331
|
var F;
|
11332
11332
|
/* istanbul ignore next @preserve */
|
11333
11333
|
Z.current && (Z.current.style.height = "auto", Z.current.style.height = `${Math.min(
|
@@ -11337,9 +11337,9 @@ function ni({ submitEventExternal: e }) {
|
|
11337
11337
|
}, kt = (F) => {
|
11338
11338
|
M(F.target.value);
|
11339
11339
|
}, mt = (F) => {
|
11340
|
-
F.key === "Enter" && Q.trim() === "" || F.key === "Enter" && !F.shiftKey && (F.preventDefault(),
|
11340
|
+
F.key === "Enter" && Q.trim() === "" || F.key === "Enter" && !F.shiftKey && (F.preventDefault(), ve(Q));
|
11341
11341
|
}, yt = (F, W = "") => {
|
11342
|
-
const be = p.map((
|
11342
|
+
const be = p.map((se, Te) => F === Te ? (ne({
|
11343
11343
|
name: `${o.prefix}.bi.xpert.chatbot.feedback.thumbs.${W.toLowerCase()}.clicked`,
|
11344
11344
|
payload: {
|
11345
11345
|
category: "2u",
|
@@ -11350,9 +11350,9 @@ function ni({ submitEventExternal: e }) {
|
|
11350
11350
|
isTestUser: h
|
11351
11351
|
}
|
11352
11352
|
}), {
|
11353
|
-
...
|
11353
|
+
...se,
|
11354
11354
|
feedbackThumbType: W
|
11355
|
-
}) :
|
11355
|
+
}) : se);
|
11356
11356
|
T(be), O(!1);
|
11357
11357
|
}, Je = ((Ze = r.animatedGraduate) == null ? void 0 : Ze.enabled) && a.enabled && me === "A", jt = i.enabled ? Je ? s ? i.style.mobile.animatedGraduateExperiment : i.style.animatedGraduateExperiment : s ? i.style.mobile : i.style : null;
|
11358
11358
|
return (
|
@@ -11395,13 +11395,13 @@ function ni({ submitEventExternal: e }) {
|
|
11395
11395
|
Je && /* @__PURE__ */ v.jsx(
|
11396
11396
|
Ls,
|
11397
11397
|
{
|
11398
|
-
handleFloatingActionButtonClick:
|
11398
|
+
handleFloatingActionButtonClick: Fe
|
11399
11399
|
}
|
11400
11400
|
),
|
11401
11401
|
!Je && /* @__PURE__ */ v.jsx(
|
11402
11402
|
Ss,
|
11403
11403
|
{
|
11404
|
-
handleFloatingActionButtonClick:
|
11404
|
+
handleFloatingActionButtonClick: Fe
|
11405
11405
|
}
|
11406
11406
|
),
|
11407
11407
|
/* @__PURE__ */ v.jsx(Fs, {}),
|
@@ -11416,11 +11416,11 @@ function ni({ submitEventExternal: e }) {
|
|
11416
11416
|
/* @__PURE__ */ v.jsx(
|
11417
11417
|
da,
|
11418
11418
|
{
|
11419
|
-
onClose:
|
11419
|
+
onClose: It,
|
11420
11420
|
isMounted: S,
|
11421
11421
|
isNormalSize: q,
|
11422
11422
|
setIsMounted: w,
|
11423
|
-
setIsNormalSize:
|
11423
|
+
setIsNormalSize: Pe
|
11424
11424
|
}
|
11425
11425
|
),
|
11426
11426
|
/* @__PURE__ */ v.jsxs(
|
@@ -11440,7 +11440,7 @@ function ni({ submitEventExternal: e }) {
|
|
11440
11440
|
loading: x,
|
11441
11441
|
isNormalSize: s || q,
|
11442
11442
|
onFeedbackThumbSelection: yt,
|
11443
|
-
onPromptClick:
|
11443
|
+
onPromptClick: ve,
|
11444
11444
|
handleMessageLinkClicked: g,
|
11445
11445
|
submitEvent: ne,
|
11446
11446
|
setLiveChatOpen: _,
|
@@ -11472,8 +11472,8 @@ function ni({ submitEventExternal: e }) {
|
|
11472
11472
|
hasXpertMessages: P,
|
11473
11473
|
hasError: L,
|
11474
11474
|
userInput: Q,
|
11475
|
-
handleSend:
|
11476
|
-
handleInput:
|
11475
|
+
handleSend: ve,
|
11476
|
+
handleInput: Nt,
|
11477
11477
|
handleChange: kt,
|
11478
11478
|
handleKeyDown: mt
|
11479
11479
|
}
|