@2uinc/frontend-component-xpert-chatbot 1.15.1 → 1.15.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 +339 -339
- package/package.json +1 -1
package/dist/lib/index.min.js
CHANGED
@@ -1,4 +1,4 @@
|
|
1
|
-
import tt, { createContext as rs, useMemo as is, useState as ye, useCallback as Tt, useEffect as
|
1
|
+
import tt, { createContext as rs, useMemo as is, useState as ye, useCallback as Tt, useEffect as xe, useContext as Se, useRef as We, forwardRef as To, createElement as sr } from "react";
|
2
2
|
const os = {
|
3
3
|
xpertKey: "edx",
|
4
4
|
chatApi: {
|
@@ -113,7 +113,7 @@ const os = {
|
|
113
113
|
maintenanceBanner: {
|
114
114
|
enabled: !0,
|
115
115
|
header: "Planned Maintenance",
|
116
|
-
text: "Xpert
|
116
|
+
text: "Xpert Chat undergo maintenance on Aug. 15 at 7 AM EDT (~1hr). If needed, you may contact edX support through [Help Center](https://support.edx.org/hc/en-us)",
|
117
117
|
endDateTime: "2024-08-15T12:00:00Z"
|
118
118
|
},
|
119
119
|
liveChat: {
|
@@ -210,7 +210,7 @@ const os = {
|
|
210
210
|
maintenanceBanner: {
|
211
211
|
enabled: !0,
|
212
212
|
header: "Planned Maintenance",
|
213
|
-
text: "
|
213
|
+
text: "On Aug. 15 at 7AM EDT (~1 hr), Xpert Chat will be unavailable for maintenance. Thanks for your patience!",
|
214
214
|
endDateTime: "2024-08-15T12:00:00Z"
|
215
215
|
},
|
216
216
|
liveChat: {
|
@@ -307,7 +307,7 @@ const os = {
|
|
307
307
|
maintenanceBanner: {
|
308
308
|
enabled: !0,
|
309
309
|
header: "Planned Maintenance",
|
310
|
-
text: "Xpert
|
310
|
+
text: "On Aug. 15 at 7AM EDT (~1 hr), Xpert Chat will be unavailable for maintenance. You may still connect with a live agent by selecting the button below.",
|
311
311
|
endDateTime: "2024-08-15T12:00:00Z"
|
312
312
|
},
|
313
313
|
liveChat: {
|
@@ -393,7 +393,7 @@ const os = {
|
|
393
393
|
maintenanceBanner: {
|
394
394
|
enabled: !0,
|
395
395
|
header: "Planned Maintenance",
|
396
|
-
text: "Xpert
|
396
|
+
text: "On Aug. 15 at 7AM EDT (~1 hr), Xpert Chat will be unavailable for maintenance. You may still connect with a live agent by selecting the button below.",
|
397
397
|
endDateTime: "2024-08-15T12:00:00Z"
|
398
398
|
},
|
399
399
|
liveChat: {
|
@@ -479,7 +479,7 @@ const os = {
|
|
479
479
|
maintenanceBanner: {
|
480
480
|
enabled: !0,
|
481
481
|
header: "Planned Maintenance",
|
482
|
-
text: "Xpert
|
482
|
+
text: "On Aug. 15 at 7AM EDT (~1 hr), Xpert Chat will be unavailable for maintenance. You may still connect with a live agent by selecting the button below.",
|
483
483
|
endDateTime: "2024-08-15T12:00:00Z"
|
484
484
|
},
|
485
485
|
liveChat: {
|
@@ -651,7 +651,7 @@ function ur(e, t) {
|
|
651
651
|
}
|
652
652
|
);
|
653
653
|
}
|
654
|
-
var Ne = ur(Ms, { path: "/" }), jo = { exports: {} },
|
654
|
+
var Ne = ur(Ms, { path: "/" }), jo = { exports: {} }, bs = "SECRET_DO_NOT_PASS_THIS_OR_YOU_WILL_BE_FIRED", xs = bs, ws = xs;
|
655
655
|
function Eo() {
|
656
656
|
}
|
657
657
|
function Co() {
|
@@ -701,8 +701,8 @@ const N = /* @__PURE__ */ rt(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]", p = "[object Date]", m = "[object Error]", f = "[object Function]", T = "[object GeneratorFunction]",
|
705
|
-
h[A] = h[w] = h[j] = h[O] = h[F] = h[Q] = h[V] = h[q] = h[X] = !0, h[l] = h[s] = h[W] = h[c] = h[K] = h[p] = h[m] = h[f] = h[
|
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]", p = "[object Date]", m = "[object Error]", f = "[object Function]", T = "[object GeneratorFunction]", x = "[object Map]", k = "[object Number]", M = "[object Null]", z = "[object Object]", E = "[object Proxy]", _ = "[object RegExp]", U = "[object Set]", b = "[object String]", L = "[object Undefined]", $ = "[object WeakMap]", W = "[object ArrayBuffer]", K = "[object DataView]", A = "[object Float32Array]", w = "[object Float64Array]", j = "[object Int8Array]", O = "[object Int16Array]", F = "[object Int32Array]", Q = "[object Uint8Array]", V = "[object Uint8ClampedArray]", q = "[object Uint16Array]", X = "[object Uint32Array]", g = /[\\^$.*+?()[\]{}|]/g, he = /^\[object .+?Constructor\]$/, Me = /^(?:0|[1-9]\d*)$/, h = {};
|
705
|
+
h[A] = h[w] = h[j] = h[O] = h[F] = h[Q] = h[V] = h[q] = h[X] = !0, h[l] = h[s] = h[W] = h[c] = h[K] = h[p] = h[m] = h[f] = h[x] = h[k] = h[z] = h[_] = h[U] = h[b] = h[$] = !1;
|
706
706
|
var ge = typeof en == "object" && en && en.Object === Object && en, ke = typeof self == "object" && self && self.Object === Object && self, re = ge || ke || Function("return this")(), we = t && !t.nodeType && t, ve = we && !0 && e && !e.nodeType && e, Ue = ve && ve.exports === we, ze = Ue && ge.process, Xe = function() {
|
707
707
|
try {
|
708
708
|
var d = ve && ve.require && ve.require("util").types;
|
@@ -825,7 +825,7 @@ dn.exports;
|
|
825
825
|
return P < 0 ? (++this.size, D.push([d, y])) : D[P][1] = y, this;
|
826
826
|
}
|
827
827
|
Ze.prototype.clear = ul, Ze.prototype.delete = cl, Ze.prototype.get = pl, Ze.prototype.has = fl, Ze.prototype.set = dl;
|
828
|
-
function
|
828
|
+
function bt(d) {
|
829
829
|
var y = -1, D = d == null ? 0 : d.length;
|
830
830
|
for (this.clear(); ++y < D; ) {
|
831
831
|
var P = d[y];
|
@@ -853,15 +853,15 @@ dn.exports;
|
|
853
853
|
var D = Kt(this, d), P = D.size;
|
854
854
|
return D.set(d, y), this.size += D.size == P ? 0 : 1, this;
|
855
855
|
}
|
856
|
-
|
857
|
-
function
|
856
|
+
bt.prototype.clear = hl, bt.prototype.delete = gl, bt.prototype.get = ml, bt.prototype.has = yl, bt.prototype.set = Ml;
|
857
|
+
function xt(d) {
|
858
858
|
var y = this.__data__ = new Ze(d);
|
859
859
|
this.size = y.size;
|
860
860
|
}
|
861
|
-
function
|
861
|
+
function bl() {
|
862
862
|
this.__data__ = new Ze(), this.size = 0;
|
863
863
|
}
|
864
|
-
function
|
864
|
+
function xl(d) {
|
865
865
|
var y = this.__data__, D = y.delete(d);
|
866
866
|
return this.size = y.size, D;
|
867
867
|
}
|
@@ -877,11 +877,11 @@ dn.exports;
|
|
877
877
|
var P = D.__data__;
|
878
878
|
if (!ni || P.length < n - 1)
|
879
879
|
return P.push([d, y]), this.size = ++D.size, this;
|
880
|
-
D = this.__data__ = new
|
880
|
+
D = this.__data__ = new bt(P);
|
881
881
|
}
|
882
882
|
return D.set(d, y), this.size = D.size, this;
|
883
883
|
}
|
884
|
-
|
884
|
+
xt.prototype.clear = bl, xt.prototype.delete = xl, xt.prototype.get = wl, xt.prototype.has = vl, xt.prototype.set = Tl;
|
885
885
|
function Dl(d, y) {
|
886
886
|
var D = Hn(d), P = !D && Yn(d), ne = !D && !P && li(d), se = !D && !P && !ne && ui(d), fe = D || P || ne || se, te = fe ? jt(d.length, String) : [], de = te.length;
|
887
887
|
for (var _e in d)
|
@@ -939,7 +939,7 @@ dn.exports;
|
|
939
939
|
}
|
940
940
|
function ii(d, y, D, P, ne) {
|
941
941
|
d !== y && Il(y, function(se, fe) {
|
942
|
-
if (ne || (ne = new
|
942
|
+
if (ne || (ne = new xt()), ct(se))
|
943
943
|
Cl(d, y, fe, D, ii, P, ne);
|
944
944
|
else {
|
945
945
|
var te = P ? P(Qn(d, fe), se, fe + "", d, y, ne) : void 0;
|
@@ -1276,7 +1276,7 @@ const Ao = /* @__PURE__ */ rt(Ts), Ds = {
|
|
1276
1276
|
maintenanceBanner: {
|
1277
1277
|
enabled: !0,
|
1278
1278
|
header: "Planned Maintenance",
|
1279
|
-
text: "Xpert
|
1279
|
+
text: "On Aug. 15 at 7AM EDT (~1 hr), Xpert Chat will be unavailable for maintenance. You may still connect with a live agent by selecting the button below.",
|
1280
1280
|
endDateTime: "2024-08-15T12:00:00Z"
|
1281
1281
|
},
|
1282
1282
|
liveChat: {
|
@@ -1434,7 +1434,7 @@ const Lo = /* @__PURE__ */ rt(js), Es = 576, Cs = (e) => {
|
|
1434
1434
|
).matches
|
1435
1435
|
);
|
1436
1436
|
}, [e]);
|
1437
|
-
return
|
1437
|
+
return xe(() => (r(), window.addEventListener("resize", r), () => window.removeEventListener("resize", r)), [r]), t;
|
1438
1438
|
}, it = Cs, As = 991;
|
1439
1439
|
function wn({
|
1440
1440
|
label: e,
|
@@ -1521,11 +1521,11 @@ const Ls = 991, _s = 1500, Fs = `The parent container is wider than the chatbot
|
|
1521
1521
|
eyes follow your mouse when you hover near it.`, Er = ({
|
1522
1522
|
handleFloatingActionButtonClick: e
|
1523
1523
|
}) => {
|
1524
|
-
var m, f, T,
|
1524
|
+
var m, f, T, x, k, M, z;
|
1525
1525
|
const { xpertKey: t, launchButton: n } = Se(Oe), r = !Ne.get(
|
1526
1526
|
`${t}-proactive-message-xpert-chatbot`
|
1527
1527
|
), i = We(null), o = We(!1), a = r ? (m = n.animatedGraduate) == null ? void 0 : m.delayMs : ((f = n.animatedGraduate) == null ? void 0 : f.delayMs) * 2, [l, s] = ye(!1), u = it(Ls);
|
1528
|
-
|
1528
|
+
xe(() => {
|
1529
1529
|
const _ = setTimeout(
|
1530
1530
|
() => {
|
1531
1531
|
s(!0);
|
@@ -1535,12 +1535,12 @@ eyes follow your mouse when you hover near it.`, Er = ({
|
|
1535
1535
|
return () => {
|
1536
1536
|
clearTimeout(_);
|
1537
1537
|
};
|
1538
|
-
}, [a]),
|
1538
|
+
}, [a]), xe(() => {
|
1539
1539
|
const E = (_) => {
|
1540
1540
|
const U = window.matchMedia(
|
1541
1541
|
`(max-width: ${_s}px)`
|
1542
|
-
).matches,
|
1543
|
-
if (!(o != null && o.current) || U ||
|
1542
|
+
).matches, b = window.devicePixelRatio > 1.5;
|
1543
|
+
if (!(o != null && o.current) || U || b)
|
1544
1544
|
return;
|
1545
1545
|
i.current.querySelectorAll(
|
1546
1546
|
".xpert_chatbot__animated_graduate__pupil"
|
@@ -1574,7 +1574,7 @@ eyes follow your mouse when you hover near it.`, Er = ({
|
|
1574
1574
|
onClick: e,
|
1575
1575
|
label: "Open XPERT Chatbot",
|
1576
1576
|
className: "xpert-chatbot-button__animated_graduate__launch-button",
|
1577
|
-
style: u ? { ...(
|
1577
|
+
style: u ? { ...(x = (T = n.style) == null ? void 0 : T.mobile) == null ? void 0 : x.animatedGraduateExperiment } : { ...(k = n.style) == null ? void 0 : k.animatedGraduateExperiment },
|
1578
1578
|
"aria-haspopup": "dialog",
|
1579
1579
|
"aria-expanded": open,
|
1580
1580
|
children: /* @__PURE__ */ v.jsx("div", { ref: i, children: /* @__PURE__ */ v.jsxs(
|
@@ -2018,9 +2018,9 @@ var Mi = {
|
|
2018
2018
|
return Bt(t) && !t.shiftKey;
|
2019
2019
|
}, cu = function(t) {
|
2020
2020
|
return Bt(t) && t.shiftKey;
|
2021
|
-
},
|
2021
|
+
}, bi = function(t) {
|
2022
2022
|
return setTimeout(t, 0);
|
2023
|
-
},
|
2023
|
+
}, xi = function(t, n) {
|
2024
2024
|
var r = -1;
|
2025
2025
|
return t.every(function(i, o) {
|
2026
2026
|
return n(i) ? (r = o, !1) : !0;
|
@@ -2187,7 +2187,7 @@ var Mi = {
|
|
2187
2187
|
preventScroll: !!o.preventScroll
|
2188
2188
|
}), a.mostRecentlyFocusedNode = w, lu(w) && w.select();
|
2189
2189
|
}
|
2190
|
-
},
|
2190
|
+
}, x = function(w) {
|
2191
2191
|
var j = c("setReturnFocus", w);
|
2192
2192
|
return j || (j === !1 ? !1 : w);
|
2193
2193
|
}, k = function(w) {
|
@@ -2199,7 +2199,7 @@ var Mi = {
|
|
2199
2199
|
if (q < 0)
|
2200
2200
|
Q ? V = a.tabbableGroups[a.tabbableGroups.length - 1].lastTabbableNode : V = a.tabbableGroups[0].firstTabbableNode;
|
2201
2201
|
else if (Q) {
|
2202
|
-
var g =
|
2202
|
+
var g = xi(a.tabbableGroups, function(re) {
|
2203
2203
|
var we = re.firstTabbableNode;
|
2204
2204
|
return j === we;
|
2205
2205
|
});
|
@@ -2209,7 +2209,7 @@ var Mi = {
|
|
2209
2209
|
} else
|
2210
2210
|
Bt(O) || (V = X.nextTabbableNode(j, !1));
|
2211
2211
|
} else {
|
2212
|
-
var h =
|
2212
|
+
var h = xi(a.tabbableGroups, function(re) {
|
2213
2213
|
var we = re.lastTabbableNode;
|
2214
2214
|
return j === we;
|
2215
2215
|
});
|
@@ -2288,9 +2288,9 @@ var Mi = {
|
|
2288
2288
|
}, U = function(w) {
|
2289
2289
|
var j = nn(w);
|
2290
2290
|
u(j, w) >= 0 || Lt(o.clickOutsideDeactivates, w) || Lt(o.allowOutsideClick, w) || (w.preventDefault(), w.stopImmediatePropagation());
|
2291
|
-
},
|
2291
|
+
}, b = function() {
|
2292
2292
|
if (a.active)
|
2293
|
-
return Mi.activateTrap(i, l), a.delayInitialFocusTimer = o.delayInitialFocus ?
|
2293
|
+
return Mi.activateTrap(i, l), a.delayInitialFocusTimer = o.delayInitialFocus ? bi(function() {
|
2294
2294
|
T(p());
|
2295
2295
|
}) : T(p()), r.addEventListener("focusin", z, !0), r.addEventListener("mousedown", M, {
|
2296
2296
|
capture: !0,
|
@@ -2337,7 +2337,7 @@ var Mi = {
|
|
2337
2337
|
var j = s(w, "onActivate"), O = s(w, "onPostActivate"), F = s(w, "checkCanFocusTrap");
|
2338
2338
|
F || m(), a.active = !0, a.paused = !1, a.nodeFocusedBeforeActivation = r.activeElement, j == null || j();
|
2339
2339
|
var Q = function() {
|
2340
|
-
F && m(),
|
2340
|
+
F && m(), b(), K(), O == null || O();
|
2341
2341
|
};
|
2342
2342
|
return F ? (F(a.containers.concat()).then(Q, Q), this) : (Q(), this);
|
2343
2343
|
},
|
@@ -2353,11 +2353,11 @@ var Mi = {
|
|
2353
2353
|
var O = s(j, "onDeactivate"), F = s(j, "onPostDeactivate"), Q = s(j, "checkCanReturnFocus"), V = s(j, "returnFocus", "returnFocusOnDeactivate");
|
2354
2354
|
O == null || O();
|
2355
2355
|
var q = function() {
|
2356
|
-
|
2357
|
-
V && T(
|
2356
|
+
bi(function() {
|
2357
|
+
V && T(x(a.nodeFocusedBeforeActivation)), F == null || F();
|
2358
2358
|
});
|
2359
2359
|
};
|
2360
|
-
return V && Q ? (Q(
|
2360
|
+
return V && Q ? (Q(x(a.nodeFocusedBeforeActivation)).then(q, q), this) : (q(), this);
|
2361
2361
|
},
|
2362
2362
|
pause: function(w) {
|
2363
2363
|
if (a.paused || !a.active)
|
@@ -2369,7 +2369,7 @@ var Mi = {
|
|
2369
2369
|
if (!a.paused || !a.active)
|
2370
2370
|
return this;
|
2371
2371
|
var j = s(w, "onUnpause"), O = s(w, "onPostUnpause");
|
2372
|
-
return a.paused = !1, j == null || j(), m(),
|
2372
|
+
return a.paused = !1, j == null || j(), m(), b(), K(), O == null || O(), this;
|
2373
2373
|
},
|
2374
2374
|
updateContainerElements: function(w) {
|
2375
2375
|
var j = [].concat(w).filter(Boolean);
|
@@ -2414,7 +2414,7 @@ function pr(e, t) {
|
|
2414
2414
|
return r.__proto__ = i, r;
|
2415
2415
|
}, pr(e, t);
|
2416
2416
|
}
|
2417
|
-
function
|
2417
|
+
function bu(e) {
|
2418
2418
|
var t = wu();
|
2419
2419
|
return function() {
|
2420
2420
|
var r = Mn(e), i;
|
@@ -2423,10 +2423,10 @@ function xu(e) {
|
|
2423
2423
|
i = Reflect.construct(r, arguments, o);
|
2424
2424
|
} else
|
2425
2425
|
i = r.apply(this, arguments);
|
2426
|
-
return
|
2426
|
+
return xu(this, i);
|
2427
2427
|
};
|
2428
2428
|
}
|
2429
|
-
function
|
2429
|
+
function xu(e, t) {
|
2430
2430
|
if (t && (Dt(t) === "object" || typeof t == "function"))
|
2431
2431
|
return t;
|
2432
2432
|
if (t !== void 0)
|
@@ -2476,7 +2476,7 @@ function Tu(e, t) {
|
|
2476
2476
|
}
|
2477
2477
|
var rn = tt, H = B, Du = hu, Nu = Du.createFocusTrap, Iu = gu, ku = Iu.isFocusable, Cr = /* @__PURE__ */ function(e) {
|
2478
2478
|
Mu(n, e);
|
2479
|
-
var t =
|
2479
|
+
var t = bu(n);
|
2480
2480
|
function n(r) {
|
2481
2481
|
var i;
|
2482
2482
|
mu(this, n), i = t.call(this, r), vu(Rt(i), "getNodeForOption", function(l) {
|
@@ -2779,13 +2779,13 @@ const qo = Object.freeze(
|
|
2779
2779
|
width: 16,
|
2780
2780
|
height: 16
|
2781
2781
|
}
|
2782
|
-
),
|
2782
|
+
), bn = Object.freeze({
|
2783
2783
|
rotate: 0,
|
2784
2784
|
vFlip: !1,
|
2785
2785
|
hFlip: !1
|
2786
2786
|
}), Sr = Object.freeze({
|
2787
2787
|
...qo,
|
2788
|
-
...
|
2788
|
+
...bn
|
2789
2789
|
}), fr = Object.freeze({
|
2790
2790
|
...Sr,
|
2791
2791
|
body: "",
|
@@ -2800,7 +2800,7 @@ function Au(e, t) {
|
|
2800
2800
|
function vi(e, t) {
|
2801
2801
|
const n = Au(e, t);
|
2802
2802
|
for (const r in fr)
|
2803
|
-
r in
|
2803
|
+
r in bn ? r in e && !(r in n) && (n[r] = bn[r]) : r in t ? n[r] = t[r] : r in e && (n[r] = e[r]);
|
2804
2804
|
return n;
|
2805
2805
|
}
|
2806
2806
|
function Su(e, t) {
|
@@ -2986,7 +2986,7 @@ const Zo = Object.freeze({
|
|
2986
2986
|
// Dimensions
|
2987
2987
|
...Zo,
|
2988
2988
|
// Transformations
|
2989
|
-
...
|
2989
|
+
...bn
|
2990
2990
|
}), Ru = /(-?[0-9.]*[0-9]+[0-9.]*)/g, Bu = /^-?[0-9.]*[0-9]+[0-9.]*$/g;
|
2991
2991
|
function Ni(e, t, n) {
|
2992
2992
|
if (t === 1)
|
@@ -3050,9 +3050,9 @@ function $u(e, t) {
|
|
3050
3050
|
height: n.height
|
3051
3051
|
};
|
3052
3052
|
let o = n.body;
|
3053
|
-
[n, r].forEach((
|
3054
|
-
const k = [], M =
|
3055
|
-
let E =
|
3053
|
+
[n, r].forEach((x) => {
|
3054
|
+
const k = [], M = x.hFlip, z = x.vFlip;
|
3055
|
+
let E = x.rotate;
|
3056
3056
|
M ? z ? E += 2 : (k.push(
|
3057
3057
|
"translate(" + (i.width + i.left).toString() + " " + (0 - i.top).toString() + ")"
|
3058
3058
|
), k.push("scale(-1 1)"), i.top = i.left = 0) : z && (k.push(
|
@@ -3085,8 +3085,8 @@ function $u(e, t) {
|
|
3085
3085
|
const a = r.width, l = r.height, s = i.width, u = i.height;
|
3086
3086
|
let c, p;
|
3087
3087
|
a === null ? (p = l === null ? "1em" : l === "auto" ? u : l, c = Ni(p, s / u)) : (c = a === "auto" ? s : a, p = l === null ? Ni(c, u / s) : l === "auto" ? u : l);
|
3088
|
-
const m = {}, f = (
|
3089
|
-
Hu(k) || (m[
|
3088
|
+
const m = {}, f = (x, k) => {
|
3089
|
+
Hu(k) || (m[x] = k.toString());
|
3090
3090
|
};
|
3091
3091
|
f("width", c), f("height", p);
|
3092
3092
|
const T = [i.left, i.top, s, u];
|
@@ -3373,12 +3373,12 @@ function pc(e, t, n, r) {
|
|
3373
3373
|
const i = e.resources.length, o = e.random ? Math.floor(Math.random() * i) : e.index;
|
3374
3374
|
let a;
|
3375
3375
|
if (e.random) {
|
3376
|
-
let
|
3377
|
-
for (a = [];
|
3378
|
-
const L = Math.floor(Math.random() *
|
3379
|
-
a.push(
|
3376
|
+
let b = e.resources.slice(0);
|
3377
|
+
for (a = []; b.length > 1; ) {
|
3378
|
+
const L = Math.floor(Math.random() * b.length);
|
3379
|
+
a.push(b[L]), b = b.slice(0, L).concat(b.slice(L + 1));
|
3380
3380
|
}
|
3381
|
-
a = a.concat(
|
3381
|
+
a = a.concat(b);
|
3382
3382
|
} else
|
3383
3383
|
a = e.resources.slice(o).concat(e.resources.slice(0, o));
|
3384
3384
|
const l = Date.now();
|
@@ -3387,13 +3387,13 @@ function pc(e, t, n, r) {
|
|
3387
3387
|
function T() {
|
3388
3388
|
p && (clearTimeout(p), p = null);
|
3389
3389
|
}
|
3390
|
-
function
|
3391
|
-
s === "pending" && (s = "aborted"), T(), m.forEach((
|
3392
|
-
|
3390
|
+
function x() {
|
3391
|
+
s === "pending" && (s = "aborted"), T(), m.forEach((b) => {
|
3392
|
+
b.status === "pending" && (b.status = "aborted");
|
3393
3393
|
}), m = [];
|
3394
3394
|
}
|
3395
|
-
function k(
|
3396
|
-
L && (f = []), typeof
|
3395
|
+
function k(b, L) {
|
3396
|
+
L && (f = []), typeof b == "function" && f.push(b);
|
3397
3397
|
}
|
3398
3398
|
function M() {
|
3399
3399
|
return {
|
@@ -3403,22 +3403,22 @@ function pc(e, t, n, r) {
|
|
3403
3403
|
queriesSent: u,
|
3404
3404
|
queriesPending: m.length,
|
3405
3405
|
subscribe: k,
|
3406
|
-
abort:
|
3406
|
+
abort: x
|
3407
3407
|
};
|
3408
3408
|
}
|
3409
3409
|
function z() {
|
3410
|
-
s = "failed", f.forEach((
|
3411
|
-
|
3410
|
+
s = "failed", f.forEach((b) => {
|
3411
|
+
b(void 0, c);
|
3412
3412
|
});
|
3413
3413
|
}
|
3414
3414
|
function E() {
|
3415
|
-
m.forEach((
|
3416
|
-
|
3415
|
+
m.forEach((b) => {
|
3416
|
+
b.status === "pending" && (b.status = "aborted");
|
3417
3417
|
}), m = [];
|
3418
3418
|
}
|
3419
|
-
function _(
|
3419
|
+
function _(b, L, $) {
|
3420
3420
|
const W = L !== "success";
|
3421
|
-
switch (m = m.filter((K) => K !==
|
3421
|
+
switch (m = m.filter((K) => K !== b), s) {
|
3422
3422
|
case "pending":
|
3423
3423
|
break;
|
3424
3424
|
case "failed":
|
@@ -3437,7 +3437,7 @@ function pc(e, t, n, r) {
|
|
3437
3437
|
return;
|
3438
3438
|
}
|
3439
3439
|
if (T(), E(), !e.random) {
|
3440
|
-
const K = e.resources.indexOf(
|
3440
|
+
const K = e.resources.indexOf(b.resource);
|
3441
3441
|
K !== -1 && K !== e.index && (e.index = K);
|
3442
3442
|
}
|
3443
3443
|
s = "completed", f.forEach((K) => {
|
@@ -3448,8 +3448,8 @@ function pc(e, t, n, r) {
|
|
3448
3448
|
if (s !== "pending")
|
3449
3449
|
return;
|
3450
3450
|
T();
|
3451
|
-
const
|
3452
|
-
if (
|
3451
|
+
const b = a.shift();
|
3452
|
+
if (b === void 0) {
|
3453
3453
|
if (m.length) {
|
3454
3454
|
p = setTimeout(() => {
|
3455
3455
|
T(), s === "pending" && (E(), z());
|
@@ -3461,12 +3461,12 @@ function pc(e, t, n, r) {
|
|
3461
3461
|
}
|
3462
3462
|
const L = {
|
3463
3463
|
status: "pending",
|
3464
|
-
resource:
|
3464
|
+
resource: b,
|
3465
3465
|
callback: ($, W) => {
|
3466
3466
|
_(L, $, W);
|
3467
3467
|
}
|
3468
3468
|
};
|
3469
|
-
m.push(L), u++, p = setTimeout(U, e.rotate), n(
|
3469
|
+
m.push(L), u++, p = setTimeout(U, e.rotate), n(b, t, L.callback);
|
3470
3470
|
}
|
3471
3471
|
return setTimeout(U), M;
|
3472
3472
|
}
|
@@ -3673,12 +3673,12 @@ function Mc(e, t) {
|
|
3673
3673
|
}
|
3674
3674
|
function Ai() {
|
3675
3675
|
}
|
3676
|
-
function
|
3676
|
+
function bc(e) {
|
3677
3677
|
e.iconsLoaderFlag || (e.iconsLoaderFlag = !0, setTimeout(() => {
|
3678
3678
|
e.iconsLoaderFlag = !1, ac(e);
|
3679
3679
|
}));
|
3680
3680
|
}
|
3681
|
-
function
|
3681
|
+
function xc(e, t) {
|
3682
3682
|
e.iconsToLoad ? e.iconsToLoad = e.iconsToLoad.concat(t).sort() : e.iconsToLoad = t, e.iconsQueueFlag || (e.iconsQueueFlag = !0, setTimeout(() => {
|
3683
3683
|
e.iconsQueueFlag = !1;
|
3684
3684
|
const { provider: n, prefix: r } = e, i = e.iconsToLoad;
|
@@ -3707,7 +3707,7 @@ function bc(e, t) {
|
|
3707
3707
|
} catch (u) {
|
3708
3708
|
console.error(u);
|
3709
3709
|
}
|
3710
|
-
|
3710
|
+
bc(e);
|
3711
3711
|
});
|
3712
3712
|
});
|
3713
3713
|
}));
|
@@ -3741,7 +3741,7 @@ const wc = (e, t) => {
|
|
3741
3741
|
f.has(p) || (f.add(p), i[u][c].push(p));
|
3742
3742
|
}), o.forEach((s) => {
|
3743
3743
|
const { provider: u, prefix: c } = s;
|
3744
|
-
i[u][c].length &&
|
3744
|
+
i[u][c].length && xc(s, i[u][c]);
|
3745
3745
|
}), t ? sc(t, r, o) : Ai;
|
3746
3746
|
};
|
3747
3747
|
function vc(e, t) {
|
@@ -3923,14 +3923,14 @@ const Lc = (e, t, n) => {
|
|
3923
3923
|
__html: Ac(Gu(u.body, M ? () => M + "ID" + k++ : "iconifyReact"))
|
3924
3924
|
}, sr("svg", s);
|
3925
3925
|
}
|
3926
|
-
const { body: p, width: m, height: f } = e, T = o === "mask" || (o === "bg" ? !1 : p.indexOf("currentColor") !== -1),
|
3926
|
+
const { body: p, width: m, height: f } = e, T = o === "mask" || (o === "bg" ? !1 : p.indexOf("currentColor") !== -1), x = Ic(p, {
|
3927
3927
|
...c,
|
3928
3928
|
width: m + "",
|
3929
3929
|
height: f + ""
|
3930
3930
|
});
|
3931
3931
|
return s.style = {
|
3932
3932
|
...a,
|
3933
|
-
"--svg": Ec(
|
3933
|
+
"--svg": Ec(x),
|
3934
3934
|
width: zi(c.width),
|
3935
3935
|
height: zi(c.height),
|
3936
3936
|
...Oc,
|
@@ -3982,11 +3982,11 @@ function sa(e) {
|
|
3982
3982
|
name: "",
|
3983
3983
|
data: T
|
3984
3984
|
};
|
3985
|
-
const
|
3986
|
-
if (
|
3985
|
+
const x = Di(T);
|
3986
|
+
if (x)
|
3987
3987
|
return {
|
3988
3988
|
name: T,
|
3989
|
-
data:
|
3989
|
+
data: x
|
3990
3990
|
};
|
3991
3991
|
}
|
3992
3992
|
return {
|
@@ -4012,20 +4012,20 @@ function sa(e) {
|
|
4012
4012
|
});
|
4013
4013
|
return;
|
4014
4014
|
}
|
4015
|
-
const
|
4015
|
+
const x = Di(T);
|
4016
4016
|
if (u({
|
4017
4017
|
name: T,
|
4018
|
-
data:
|
4018
|
+
data: x
|
4019
4019
|
}))
|
4020
|
-
if (
|
4020
|
+
if (x === void 0) {
|
4021
4021
|
const k = wc([T], c);
|
4022
4022
|
i({
|
4023
4023
|
callback: k
|
4024
4024
|
});
|
4025
4025
|
} else
|
4026
|
-
|
4026
|
+
x && ((f = e.onLoad) === null || f === void 0 || f.call(e, T));
|
4027
4027
|
}
|
4028
|
-
|
4028
|
+
xe(() => (n(!0), s), []), xe(() => {
|
4029
4029
|
t && c();
|
4030
4030
|
}, [e.icon, t]);
|
4031
4031
|
const { name: p, data: m } = a;
|
@@ -4208,7 +4208,7 @@ function pa({
|
|
4208
4208
|
setIsMounted: r,
|
4209
4209
|
onClose: i
|
4210
4210
|
}) {
|
4211
|
-
var s, u, c, p, m, f, T,
|
4211
|
+
var s, u, c, p, m, f, T, x, k;
|
4212
4212
|
const { primaryColor: o, conversationScreen: a } = Se(Oe), l = it(Bc);
|
4213
4213
|
return /* @__PURE__ */ v.jsxs(
|
4214
4214
|
"div",
|
@@ -4265,7 +4265,7 @@ function pa({
|
|
4265
4265
|
className: "xpert-chatbot-popup__header_container",
|
4266
4266
|
style: {
|
4267
4267
|
right: 0,
|
4268
|
-
background: ((k = (
|
4268
|
+
background: ((k = (x = a.header.container) == null ? void 0 : x.style) == null ? void 0 : k.backgroun) || o
|
4269
4269
|
}
|
4270
4270
|
}
|
4271
4271
|
)
|
@@ -4347,7 +4347,7 @@ function Br({
|
|
4347
4347
|
userInput: u
|
4348
4348
|
}) {
|
4349
4349
|
const { primaryColor: c } = Se(Oe);
|
4350
|
-
return
|
4350
|
+
return xe(() => {
|
4351
4351
|
var p;
|
4352
4352
|
(o || a) && ((p = l.current) == null || p.focus());
|
4353
4353
|
}, [a, o, l]), /* @__PURE__ */ v.jsxs("div", { className: "xpert-chatbot-popup__input--group", style: e, children: [
|
@@ -4438,13 +4438,13 @@ var Yc = function(t) {
|
|
4438
4438
|
};
|
4439
4439
|
const da = /* @__PURE__ */ rt(Yc);
|
4440
4440
|
function Yt(e) {
|
4441
|
-
return !e || typeof e != "object" ? "" : "position" in e || "type" in e ? _i(e.position) : "start" in e || "end" in e ? _i(e) : "line" in e || "column" in e ?
|
4441
|
+
return !e || typeof e != "object" ? "" : "position" in e || "type" in e ? _i(e.position) : "start" in e || "end" in e ? _i(e) : "line" in e || "column" in e ? br(e) : "";
|
4442
4442
|
}
|
4443
|
-
function
|
4443
|
+
function br(e) {
|
4444
4444
|
return Fi(e && e.line) + ":" + Fi(e && e.column);
|
4445
4445
|
}
|
4446
4446
|
function _i(e) {
|
4447
|
-
return
|
4447
|
+
return br(e && e.start) + "-" + br(e && e.end);
|
4448
4448
|
}
|
4449
4449
|
function Fi(e) {
|
4450
4450
|
return e && typeof e == "number" ? e : 1;
|
@@ -4611,7 +4611,7 @@ const Zc = { cwd: Xc };
|
|
4611
4611
|
function Xc() {
|
4612
4612
|
return "/";
|
4613
4613
|
}
|
4614
|
-
function
|
4614
|
+
function xr(e) {
|
4615
4615
|
return e !== null && typeof e == "object" && // @ts-expect-error: indexable.
|
4616
4616
|
e.href && // @ts-expect-error: indexable.
|
4617
4617
|
e.origin;
|
@@ -4619,7 +4619,7 @@ function br(e) {
|
|
4619
4619
|
function Kc(e) {
|
4620
4620
|
if (typeof e == "string")
|
4621
4621
|
e = new URL(e);
|
4622
|
-
else if (!
|
4622
|
+
else if (!xr(e)) {
|
4623
4623
|
const t = new TypeError(
|
4624
4624
|
'The "path" argument must be of type string or an instance of URL. Received `' + e + "`"
|
4625
4625
|
);
|
@@ -4678,7 +4678,7 @@ class ha {
|
|
4678
4678
|
*/
|
4679
4679
|
constructor(t) {
|
4680
4680
|
let n;
|
4681
|
-
t ? typeof t == "string" || ep(t) ? n = { value: t } :
|
4681
|
+
t ? typeof t == "string" || ep(t) ? n = { value: t } : xr(t) ? n = { path: t } : n = t : n = {}, this.data = {}, this.messages = [], this.history = [], this.cwd = Zc.cwd(), this.value, this.stored, this.result, this.map;
|
4682
4682
|
let r = -1;
|
4683
4683
|
for (; ++r < Xn.length; ) {
|
4684
4684
|
const o = Xn[r];
|
@@ -4706,7 +4706,7 @@ class ha {
|
|
4706
4706
|
* @param {string | URL} path
|
4707
4707
|
*/
|
4708
4708
|
set path(t) {
|
4709
|
-
|
4709
|
+
xr(t) && (t = Kc(t)), Jn(t, "path"), this.path !== t && this.history.push(t);
|
4710
4710
|
}
|
4711
4711
|
/**
|
4712
4712
|
* Get the parent path (example: `'~'`).
|
@@ -4978,125 +4978,125 @@ function ya() {
|
|
4978
4978
|
let n = {}, r, i = -1;
|
4979
4979
|
return o.data = a, o.Parser = void 0, o.Compiler = void 0, o.freeze = l, o.attachers = t, o.use = s, o.parse = u, o.stringify = c, o.run = p, o.runSync = m, o.process = f, o.processSync = T, o;
|
4980
4980
|
function o() {
|
4981
|
-
const
|
4981
|
+
const x = ya();
|
4982
4982
|
let k = -1;
|
4983
4983
|
for (; ++k < t.length; )
|
4984
|
-
|
4985
|
-
return
|
4984
|
+
x.use(...t[k]);
|
4985
|
+
return x.data(qi(!0, {}, n)), x;
|
4986
4986
|
}
|
4987
|
-
function a(
|
4988
|
-
return typeof
|
4987
|
+
function a(x, k) {
|
4988
|
+
return typeof x == "string" ? arguments.length === 2 ? (nr("data", r), n[x] = k, o) : ma.call(n, x) && n[x] || null : x ? (nr("data", r), n = x, o) : n;
|
4989
4989
|
}
|
4990
4990
|
function l() {
|
4991
4991
|
if (r)
|
4992
4992
|
return o;
|
4993
4993
|
for (; ++i < t.length; ) {
|
4994
|
-
const [
|
4994
|
+
const [x, ...k] = t[i];
|
4995
4995
|
if (k[0] === !1)
|
4996
4996
|
continue;
|
4997
4997
|
k[0] === !0 && (k[0] = void 0);
|
4998
|
-
const M =
|
4998
|
+
const M = x.call(o, ...k);
|
4999
4999
|
typeof M == "function" && e.use(M);
|
5000
5000
|
}
|
5001
5001
|
return r = !0, i = Number.POSITIVE_INFINITY, o;
|
5002
5002
|
}
|
5003
|
-
function s(
|
5003
|
+
function s(x, ...k) {
|
5004
5004
|
let M;
|
5005
|
-
if (nr("use", r),
|
5006
|
-
if (typeof b == "function")
|
5007
|
-
U(b, ...k);
|
5008
|
-
else if (typeof b == "object")
|
5009
|
-
Array.isArray(b) ? _(b) : E(b);
|
5010
|
-
else
|
5011
|
-
throw new TypeError("Expected usable value, not `" + b + "`");
|
5012
|
-
return M && (n.settings = Object.assign(n.settings || {}, M)), o;
|
5013
|
-
function z(x) {
|
5005
|
+
if (nr("use", r), x != null)
|
5014
5006
|
if (typeof x == "function")
|
5015
|
-
U(x);
|
5007
|
+
U(x, ...k);
|
5016
5008
|
else if (typeof x == "object")
|
5017
|
-
|
5018
|
-
|
5009
|
+
Array.isArray(x) ? _(x) : E(x);
|
5010
|
+
else
|
5011
|
+
throw new TypeError("Expected usable value, not `" + x + "`");
|
5012
|
+
return M && (n.settings = Object.assign(n.settings || {}, M)), o;
|
5013
|
+
function z(b) {
|
5014
|
+
if (typeof b == "function")
|
5015
|
+
U(b);
|
5016
|
+
else if (typeof b == "object")
|
5017
|
+
if (Array.isArray(b)) {
|
5018
|
+
const [L, ...$] = b;
|
5019
5019
|
U(L, ...$);
|
5020
5020
|
} else
|
5021
|
-
E(
|
5021
|
+
E(b);
|
5022
5022
|
else
|
5023
|
-
throw new TypeError("Expected usable value, not `" +
|
5023
|
+
throw new TypeError("Expected usable value, not `" + b + "`");
|
5024
5024
|
}
|
5025
|
-
function E(
|
5026
|
-
_(
|
5025
|
+
function E(b) {
|
5026
|
+
_(b.plugins), b.settings && (M = Object.assign(M || {}, b.settings));
|
5027
5027
|
}
|
5028
|
-
function _(
|
5028
|
+
function _(b) {
|
5029
5029
|
let L = -1;
|
5030
|
-
if (
|
5031
|
-
if (Array.isArray(
|
5032
|
-
for (; ++L <
|
5033
|
-
const $ =
|
5030
|
+
if (b != null)
|
5031
|
+
if (Array.isArray(b))
|
5032
|
+
for (; ++L < b.length; ) {
|
5033
|
+
const $ = b[L];
|
5034
5034
|
z($);
|
5035
5035
|
}
|
5036
5036
|
else
|
5037
|
-
throw new TypeError("Expected a list of plugins, not `" +
|
5037
|
+
throw new TypeError("Expected a list of plugins, not `" + b + "`");
|
5038
5038
|
}
|
5039
|
-
function U(
|
5039
|
+
function U(b, L) {
|
5040
5040
|
let $ = -1, W;
|
5041
5041
|
for (; ++$ < t.length; )
|
5042
|
-
if (t[$][0] ===
|
5042
|
+
if (t[$][0] === b) {
|
5043
5043
|
W = t[$];
|
5044
5044
|
break;
|
5045
5045
|
}
|
5046
5046
|
W ? (wr(W[1]) && wr(L) && (L = qi(!0, W[1], L)), W[1] = L) : t.push([...arguments]);
|
5047
5047
|
}
|
5048
5048
|
}
|
5049
|
-
function u(
|
5049
|
+
function u(x) {
|
5050
5050
|
o.freeze();
|
5051
|
-
const k = Pt(
|
5051
|
+
const k = Pt(x), M = o.Parser;
|
5052
5052
|
return er("parse", M), Vi(M, "parse") ? new M(String(k), k).parse() : M(String(k), k);
|
5053
5053
|
}
|
5054
|
-
function c(
|
5054
|
+
function c(x, k) {
|
5055
5055
|
o.freeze();
|
5056
5056
|
const M = Pt(k), z = o.Compiler;
|
5057
|
-
return tr("stringify", z), Wi(
|
5057
|
+
return tr("stringify", z), Wi(x), Vi(z, "compile") ? new z(x, M).compile() : z(x, M);
|
5058
5058
|
}
|
5059
|
-
function p(
|
5060
|
-
if (Wi(
|
5059
|
+
function p(x, k, M) {
|
5060
|
+
if (Wi(x), o.freeze(), !M && typeof k == "function" && (M = k, k = void 0), !M)
|
5061
5061
|
return new Promise(z);
|
5062
5062
|
z(null, M);
|
5063
5063
|
function z(E, _) {
|
5064
|
-
e.run(
|
5065
|
-
function U(
|
5066
|
-
L = L ||
|
5064
|
+
e.run(x, Pt(k), U);
|
5065
|
+
function U(b, L, $) {
|
5066
|
+
L = L || x, b ? _(b) : E ? E(L) : M(null, L, $);
|
5067
5067
|
}
|
5068
5068
|
}
|
5069
5069
|
}
|
5070
|
-
function m(
|
5070
|
+
function m(x, k) {
|
5071
5071
|
let M, z;
|
5072
|
-
return o.run(
|
5072
|
+
return o.run(x, k, E), Gi("runSync", "run", z), M;
|
5073
5073
|
function E(_, U) {
|
5074
5074
|
Ri(_), M = U, z = !0;
|
5075
5075
|
}
|
5076
5076
|
}
|
5077
|
-
function f(
|
5077
|
+
function f(x, k) {
|
5078
5078
|
if (o.freeze(), er("process", o.Parser), tr("process", o.Compiler), !k)
|
5079
5079
|
return new Promise(M);
|
5080
5080
|
M(null, k);
|
5081
5081
|
function M(z, E) {
|
5082
|
-
const _ = Pt(
|
5083
|
-
o.run(o.parse(_), _, (
|
5084
|
-
if (
|
5085
|
-
U(
|
5082
|
+
const _ = Pt(x);
|
5083
|
+
o.run(o.parse(_), _, (b, L, $) => {
|
5084
|
+
if (b || !L || !$)
|
5085
|
+
U(b);
|
5086
5086
|
else {
|
5087
5087
|
const W = o.stringify(L, $);
|
5088
|
-
W == null || (lp(W) ? $.value = W : $.result = W), U(
|
5088
|
+
W == null || (lp(W) ? $.value = W : $.result = W), U(b, $);
|
5089
5089
|
}
|
5090
5090
|
});
|
5091
|
-
function U(
|
5092
|
-
|
5091
|
+
function U(b, L) {
|
5092
|
+
b || !L ? E(b) : z ? z(L) : k(null, L);
|
5093
5093
|
}
|
5094
5094
|
}
|
5095
5095
|
}
|
5096
|
-
function T(
|
5096
|
+
function T(x) {
|
5097
5097
|
let k;
|
5098
5098
|
o.freeze(), er("processSync", o.Parser), tr("processSync", o.Compiler);
|
5099
|
-
const M = Pt(
|
5099
|
+
const M = Pt(x);
|
5100
5100
|
return o.process(M, z), Gi("processSync", "process", k), M;
|
5101
5101
|
function z(E) {
|
5102
5102
|
k = !0, Ri(E);
|
@@ -5240,7 +5240,7 @@ function Ie(e) {
|
|
5240
5240
|
function ie(e) {
|
5241
5241
|
return e === -2 || e === -1 || e === 32;
|
5242
5242
|
}
|
5243
|
-
const Mp = ot(hp),
|
5243
|
+
const Mp = ot(hp), bp = ot(/\s/);
|
5244
5244
|
function ot(e) {
|
5245
5245
|
return t;
|
5246
5246
|
function t(n) {
|
@@ -5258,7 +5258,7 @@ function pe(e, t, n, r) {
|
|
5258
5258
|
return ie(s) && o++ < i ? (e.consume(s), l) : (e.exit(n), t(s));
|
5259
5259
|
}
|
5260
5260
|
}
|
5261
|
-
const
|
5261
|
+
const xp = {
|
5262
5262
|
tokenize: wp
|
5263
5263
|
};
|
5264
5264
|
function wp(e) {
|
@@ -5318,16 +5318,16 @@ function Tp(e) {
|
|
5318
5318
|
if (r++, t.containerState._closeFlow) {
|
5319
5319
|
t.containerState._closeFlow = void 0, i && z();
|
5320
5320
|
const _ = t.events.length;
|
5321
|
-
let U = _,
|
5321
|
+
let U = _, b;
|
5322
5322
|
for (; U--; )
|
5323
5323
|
if (t.events[U][0] === "exit" && t.events[U][1].type === "chunkFlow") {
|
5324
|
-
|
5324
|
+
b = t.events[U][1].end;
|
5325
5325
|
break;
|
5326
5326
|
}
|
5327
5327
|
M(r);
|
5328
5328
|
let L = _;
|
5329
5329
|
for (; L < t.events.length; )
|
5330
|
-
t.events[L][1].end = Object.assign({},
|
5330
|
+
t.events[L][1].end = Object.assign({}, b), L++;
|
5331
5331
|
return Ge(
|
5332
5332
|
t.events,
|
5333
5333
|
U + 1,
|
@@ -5376,25 +5376,25 @@ function Tp(e) {
|
|
5376
5376
|
contentType: "flow",
|
5377
5377
|
previous: o,
|
5378
5378
|
_tokenizer: i
|
5379
|
-
}),
|
5379
|
+
}), x(E);
|
5380
5380
|
}
|
5381
|
-
function
|
5381
|
+
function x(E) {
|
5382
5382
|
if (E === null) {
|
5383
5383
|
k(e.exit("chunkFlow"), !0), M(0), e.consume(E);
|
5384
5384
|
return;
|
5385
5385
|
}
|
5386
|
-
return G(E) ? (e.consume(E), k(e.exit("chunkFlow")), r = 0, t.interrupt = void 0, l) : (e.consume(E),
|
5386
|
+
return G(E) ? (e.consume(E), k(e.exit("chunkFlow")), r = 0, t.interrupt = void 0, l) : (e.consume(E), x);
|
5387
5387
|
}
|
5388
5388
|
function k(E, _) {
|
5389
5389
|
const U = t.sliceStream(E);
|
5390
5390
|
if (_ && U.push(null), E.previous = o, o && (o.next = E), o = E, i.defineSkip(E.start), i.write(U), t.parser.lazy[E.start.line]) {
|
5391
|
-
let
|
5392
|
-
for (;
|
5391
|
+
let b = i.events.length;
|
5392
|
+
for (; b--; )
|
5393
5393
|
if (
|
5394
5394
|
// The token starts before the line ending…
|
5395
|
-
i.events[
|
5396
|
-
(!i.events[
|
5397
|
-
i.events[
|
5395
|
+
i.events[b][1].start.offset < a && // …and either is not ended yet…
|
5396
|
+
(!i.events[b][1].end || // …or ends after it.
|
5397
|
+
i.events[b][1].end.offset > a)
|
5398
5398
|
)
|
5399
5399
|
return;
|
5400
5400
|
const L = t.events.length;
|
@@ -5407,14 +5407,14 @@ function Tp(e) {
|
|
5407
5407
|
}
|
5408
5408
|
W = !0;
|
5409
5409
|
}
|
5410
|
-
for (M(r),
|
5411
|
-
t.events[
|
5410
|
+
for (M(r), b = L; b < t.events.length; )
|
5411
|
+
t.events[b][1].end = Object.assign({}, K), b++;
|
5412
5412
|
Ge(
|
5413
5413
|
t.events,
|
5414
5414
|
$ + 1,
|
5415
5415
|
0,
|
5416
5416
|
t.events.slice(L)
|
5417
|
-
), t.events.length =
|
5417
|
+
), t.events.length = b;
|
5418
5418
|
}
|
5419
5419
|
}
|
5420
5420
|
function M(E) {
|
@@ -5438,7 +5438,7 @@ function Dp(e, t, n) {
|
|
5438
5438
|
);
|
5439
5439
|
}
|
5440
5440
|
function Ji(e) {
|
5441
|
-
if (e === null || Ie(e) ||
|
5441
|
+
if (e === null || Ie(e) || bp(e))
|
5442
5442
|
return 1;
|
5443
5443
|
if (Mp(e))
|
5444
5444
|
return 2;
|
@@ -5584,7 +5584,7 @@ function Ep(e, t, n) {
|
|
5584
5584
|
return o === null || G(o) ? t(o) : n(o);
|
5585
5585
|
}
|
5586
5586
|
}
|
5587
|
-
const
|
5587
|
+
const ba = {
|
5588
5588
|
name: "blockQuote",
|
5589
5589
|
tokenize: Cp,
|
5590
5590
|
continuation: {
|
@@ -5620,13 +5620,13 @@ function Ap(e, t, n) {
|
|
5620
5620
|
)(a) : o(a);
|
5621
5621
|
}
|
5622
5622
|
function o(a) {
|
5623
|
-
return e.attempt(
|
5623
|
+
return e.attempt(ba, t, n)(a);
|
5624
5624
|
}
|
5625
5625
|
}
|
5626
5626
|
function Sp(e) {
|
5627
5627
|
e.exit("blockQuote");
|
5628
5628
|
}
|
5629
|
-
const
|
5629
|
+
const xa = {
|
5630
5630
|
name: "characterEscape",
|
5631
5631
|
tokenize: Op
|
5632
5632
|
};
|
@@ -5686,77 +5686,77 @@ function Lp(e, t, n) {
|
|
5686
5686
|
};
|
5687
5687
|
let o = 0, a = 0, l;
|
5688
5688
|
return s;
|
5689
|
-
function s(
|
5690
|
-
return u(
|
5689
|
+
function s(b) {
|
5690
|
+
return u(b);
|
5691
5691
|
}
|
5692
|
-
function u(
|
5692
|
+
function u(b) {
|
5693
5693
|
const L = r.events[r.events.length - 1];
|
5694
|
-
return o = L && L[1].type === "linePrefix" ? L[2].sliceSerialize(L[1], !0).length : 0, l =
|
5694
|
+
return o = L && L[1].type === "linePrefix" ? L[2].sliceSerialize(L[1], !0).length : 0, l = b, e.enter("codeFenced"), e.enter("codeFencedFence"), e.enter("codeFencedFenceSequence"), c(b);
|
5695
5695
|
}
|
5696
|
-
function c(
|
5697
|
-
return
|
5696
|
+
function c(b) {
|
5697
|
+
return b === l ? (a++, e.consume(b), c) : a < 3 ? n(b) : (e.exit("codeFencedFenceSequence"), ie(b) ? pe(e, p, "whitespace")(b) : p(b));
|
5698
5698
|
}
|
5699
|
-
function p(
|
5700
|
-
return
|
5699
|
+
function p(b) {
|
5700
|
+
return b === null || G(b) ? (e.exit("codeFencedFence"), r.interrupt ? t(b) : e.check(no, x, _)(b)) : (e.enter("codeFencedFenceInfo"), e.enter("chunkString", {
|
5701
5701
|
contentType: "string"
|
5702
|
-
}), m(
|
5702
|
+
}), m(b));
|
5703
5703
|
}
|
5704
|
-
function m(
|
5705
|
-
return
|
5704
|
+
function m(b) {
|
5705
|
+
return b === null || G(b) ? (e.exit("chunkString"), e.exit("codeFencedFenceInfo"), p(b)) : ie(b) ? (e.exit("chunkString"), e.exit("codeFencedFenceInfo"), pe(e, f, "whitespace")(b)) : b === 96 && b === l ? n(b) : (e.consume(b), m);
|
5706
5706
|
}
|
5707
|
-
function f(
|
5708
|
-
return
|
5707
|
+
function f(b) {
|
5708
|
+
return b === null || G(b) ? p(b) : (e.enter("codeFencedFenceMeta"), e.enter("chunkString", {
|
5709
5709
|
contentType: "string"
|
5710
|
-
}), T(
|
5710
|
+
}), T(b));
|
5711
5711
|
}
|
5712
|
-
function T(
|
5713
|
-
return
|
5712
|
+
function T(b) {
|
5713
|
+
return b === null || G(b) ? (e.exit("chunkString"), e.exit("codeFencedFenceMeta"), p(b)) : b === 96 && b === l ? n(b) : (e.consume(b), T);
|
5714
5714
|
}
|
5715
|
-
function b
|
5716
|
-
return e.attempt(i, _, k)(
|
5715
|
+
function x(b) {
|
5716
|
+
return e.attempt(i, _, k)(b);
|
5717
5717
|
}
|
5718
|
-
function k(
|
5719
|
-
return e.enter("lineEnding"), e.consume(
|
5718
|
+
function k(b) {
|
5719
|
+
return e.enter("lineEnding"), e.consume(b), e.exit("lineEnding"), M;
|
5720
5720
|
}
|
5721
|
-
function M(
|
5722
|
-
return o > 0 && ie(
|
5721
|
+
function M(b) {
|
5722
|
+
return o > 0 && ie(b) ? pe(
|
5723
5723
|
e,
|
5724
5724
|
z,
|
5725
5725
|
"linePrefix",
|
5726
5726
|
o + 1
|
5727
|
-
)(
|
5727
|
+
)(b) : z(b);
|
5728
5728
|
}
|
5729
|
-
function z(
|
5730
|
-
return
|
5729
|
+
function z(b) {
|
5730
|
+
return b === null || G(b) ? e.check(no, x, _)(b) : (e.enter("codeFlowValue"), E(b));
|
5731
5731
|
}
|
5732
|
-
function E(
|
5733
|
-
return
|
5732
|
+
function E(b) {
|
5733
|
+
return b === null || G(b) ? (e.exit("codeFlowValue"), z(b)) : (e.consume(b), E);
|
5734
5734
|
}
|
5735
|
-
function _(
|
5736
|
-
return e.exit("codeFenced"), t(
|
5735
|
+
function _(b) {
|
5736
|
+
return e.exit("codeFenced"), t(b);
|
5737
5737
|
}
|
5738
|
-
function U(
|
5738
|
+
function U(b, L, $) {
|
5739
5739
|
let W = 0;
|
5740
5740
|
return K;
|
5741
5741
|
function K(F) {
|
5742
|
-
return
|
5742
|
+
return b.enter("lineEnding"), b.consume(F), b.exit("lineEnding"), A;
|
5743
5743
|
}
|
5744
5744
|
function A(F) {
|
5745
|
-
return
|
5746
|
-
|
5745
|
+
return b.enter("codeFencedFence"), ie(F) ? pe(
|
5746
|
+
b,
|
5747
5747
|
w,
|
5748
5748
|
"linePrefix",
|
5749
5749
|
r.parser.constructs.disable.null.includes("codeIndented") ? void 0 : 4
|
5750
5750
|
)(F) : w(F);
|
5751
5751
|
}
|
5752
5752
|
function w(F) {
|
5753
|
-
return F === l ? (
|
5753
|
+
return F === l ? (b.enter("codeFencedFenceSequence"), j(F)) : $(F);
|
5754
5754
|
}
|
5755
5755
|
function j(F) {
|
5756
|
-
return F === l ? (W++,
|
5756
|
+
return F === l ? (W++, b.consume(F), j) : W >= a ? (b.exit("codeFencedFenceSequence"), ie(F) ? pe(b, O, "whitespace")(F) : O(F)) : $(F);
|
5757
5757
|
}
|
5758
5758
|
function O(F) {
|
5759
|
-
return F === null || G(F) ? (
|
5759
|
+
return F === null || G(F) ? (b.exit("codeFencedFence"), L(F)) : $(F);
|
5760
5760
|
}
|
5761
5761
|
}
|
5762
5762
|
}
|
@@ -5872,8 +5872,8 @@ function Hp(e, t) {
|
|
5872
5872
|
const n = e[t][1], r = e[t][2];
|
5873
5873
|
let i = t - 1;
|
5874
5874
|
const o = [], a = n._tokenizer || r.parser[n.contentType](n.start), l = a.events, s = [], u = {};
|
5875
|
-
let c, p, m = -1, f = n, T = 0,
|
5876
|
-
const k = [
|
5875
|
+
let c, p, m = -1, f = n, T = 0, x = 0;
|
5876
|
+
const k = [x];
|
5877
5877
|
for (; f; ) {
|
5878
5878
|
for (; e[++i][1] !== f; )
|
5879
5879
|
;
|
@@ -5881,7 +5881,7 @@ function Hp(e, t) {
|
|
5881
5881
|
}
|
5882
5882
|
for (f = n; ++m < l.length; )
|
5883
5883
|
// Find a void token that includes a break.
|
5884
|
-
l[m][0] === "exit" && l[m - 1][0] === "enter" && l[m][1].type === l[m - 1][1].type && l[m][1].start.line !== l[m][1].end.line && (
|
5884
|
+
l[m][0] === "exit" && l[m - 1][0] === "enter" && l[m][1].type === l[m - 1][1].type && l[m][1].start.line !== l[m][1].end.line && (x = m + 1, k.push(x), f._tokenizer = void 0, f.previous = void 0, f = f.next);
|
5885
5885
|
for (a.events = [], f ? (f._tokenizer = void 0, f.previous = void 0) : k.pop(), m = k.length; m--; ) {
|
5886
5886
|
const M = l.slice(k[m], k[m + 1]), z = o.pop();
|
5887
5887
|
s.unshift([z, z + M.length - 1]), Ge(e, z, 2, M);
|
@@ -5945,7 +5945,7 @@ function Ta(e, t, n, r, i, o, a, l, s) {
|
|
5945
5945
|
function p(M) {
|
5946
5946
|
return M === 60 ? (e.enter(r), e.enter(i), e.enter(o), e.consume(M), e.exit(o), m) : M === null || M === 32 || M === 41 || vr(M) ? n(M) : (e.enter(r), e.enter(a), e.enter(l), e.enter("chunkString", {
|
5947
5947
|
contentType: "string"
|
5948
|
-
}),
|
5948
|
+
}), x(M));
|
5949
5949
|
}
|
5950
5950
|
function m(M) {
|
5951
5951
|
return M === 62 ? (e.enter(o), e.consume(M), e.exit(o), e.exit(i), e.exit(r), t) : (e.enter(l), e.enter("chunkString", {
|
@@ -5958,11 +5958,11 @@ function Ta(e, t, n, r, i, o, a, l, s) {
|
|
5958
5958
|
function T(M) {
|
5959
5959
|
return M === 60 || M === 62 || M === 92 ? (e.consume(M), f) : f(M);
|
5960
5960
|
}
|
5961
|
-
function
|
5962
|
-
return !c && (M === null || M === 41 || Ie(M)) ? (e.exit("chunkString"), e.exit(l), e.exit(a), e.exit(r), t(M)) : c < u && M === 40 ? (e.consume(M), c++,
|
5961
|
+
function x(M) {
|
5962
|
+
return !c && (M === null || M === 41 || Ie(M)) ? (e.exit("chunkString"), e.exit(l), e.exit(a), e.exit(r), t(M)) : c < u && M === 40 ? (e.consume(M), c++, x) : M === 41 ? (e.consume(M), c--, x) : M === null || M === 32 || M === 40 || vr(M) ? n(M) : (e.consume(M), M === 92 ? k : x);
|
5963
5963
|
}
|
5964
5964
|
function k(M) {
|
5965
|
-
return M === 40 || M === 41 || M === 92 ? (e.consume(M),
|
5965
|
+
return M === 40 || M === 41 || M === 92 ? (e.consume(M), x) : x(M);
|
5966
5966
|
}
|
5967
5967
|
}
|
5968
5968
|
function Da(e, t, n, r, i, o) {
|
@@ -6253,7 +6253,7 @@ function pf(e, t, n) {
|
|
6253
6253
|
return e.enter("htmlFlow"), e.enter("htmlFlowData"), e.consume(h), p;
|
6254
6254
|
}
|
6255
6255
|
function p(h) {
|
6256
|
-
return h === 33 ? (e.consume(h), m) : h === 47 ? (e.consume(h), o = !0,
|
6256
|
+
return h === 33 ? (e.consume(h), m) : h === 47 ? (e.consume(h), o = !0, x) : h === 63 ? (e.consume(h), i = 3, r.interrupt ? t : g) : Ve(h) ? (e.consume(h), a = String.fromCharCode(h), k) : n(h);
|
6257
6257
|
}
|
6258
6258
|
function m(h) {
|
6259
6259
|
return h === 45 ? (e.consume(h), i = 2, f) : h === 91 ? (e.consume(h), i = 5, l = 0, T) : Ve(h) ? (e.consume(h), i = 4, r.interrupt ? t : g) : n(h);
|
@@ -6265,7 +6265,7 @@ function pf(e, t, n) {
|
|
6265
6265
|
const ge = "CDATA[";
|
6266
6266
|
return h === ge.charCodeAt(l++) ? (e.consume(h), l === ge.length ? r.interrupt ? t : w : T) : n(h);
|
6267
6267
|
}
|
6268
|
-
function
|
6268
|
+
function x(h) {
|
6269
6269
|
return Ve(h) ? (e.consume(h), a = String.fromCharCode(h), k) : n(h);
|
6270
6270
|
}
|
6271
6271
|
function k(h) {
|
@@ -6288,10 +6288,10 @@ function pf(e, t, n) {
|
|
6288
6288
|
return h === 45 || h === 46 || h === 58 || h === 95 || Ae(h) ? (e.consume(h), _) : U(h);
|
6289
6289
|
}
|
6290
6290
|
function U(h) {
|
6291
|
-
return h === 61 ? (e.consume(h),
|
6291
|
+
return h === 61 ? (e.consume(h), b) : ie(h) ? (e.consume(h), U) : E(h);
|
6292
6292
|
}
|
6293
|
-
function
|
6294
|
-
return h === null || h === 60 || h === 61 || h === 62 || h === 96 ? n(h) : h === 34 || h === 39 ? (e.consume(h), s = h, L) : ie(h) ? (e.consume(h),
|
6293
|
+
function b(h) {
|
6294
|
+
return h === null || h === 60 || h === 61 || h === 62 || h === 96 ? n(h) : h === 34 || h === 39 ? (e.consume(h), s = h, L) : ie(h) ? (e.consume(h), b) : $(h);
|
6295
6295
|
}
|
6296
6296
|
function L(h) {
|
6297
6297
|
return h === s ? (e.consume(h), s = null, W) : h === null || G(h) ? n(h) : (e.consume(h), L);
|
@@ -6401,16 +6401,16 @@ function gf(e, t, n) {
|
|
6401
6401
|
}
|
6402
6402
|
function T(g) {
|
6403
6403
|
const he = "CDATA[";
|
6404
|
-
return g === he.charCodeAt(o++) ? (e.consume(g), o === he.length ?
|
6404
|
+
return g === he.charCodeAt(o++) ? (e.consume(g), o === he.length ? x : T) : n(g);
|
6405
6405
|
}
|
6406
|
-
function
|
6407
|
-
return g === null ? n(g) : g === 93 ? (e.consume(g), k) : G(g) ? (a =
|
6406
|
+
function x(g) {
|
6407
|
+
return g === null ? n(g) : g === 93 ? (e.consume(g), k) : G(g) ? (a = x, V(g)) : (e.consume(g), x);
|
6408
6408
|
}
|
6409
6409
|
function k(g) {
|
6410
|
-
return g === 93 ? (e.consume(g), M) :
|
6410
|
+
return g === 93 ? (e.consume(g), M) : x(g);
|
6411
6411
|
}
|
6412
6412
|
function M(g) {
|
6413
|
-
return g === 62 ? Q(g) : g === 93 ? (e.consume(g), M) :
|
6413
|
+
return g === 62 ? Q(g) : g === 93 ? (e.consume(g), M) : x(g);
|
6414
6414
|
}
|
6415
6415
|
function z(g) {
|
6416
6416
|
return g === null || g === 62 ? Q(g) : G(g) ? (a = z, V(g)) : (e.consume(g), z);
|
@@ -6422,10 +6422,10 @@ function gf(e, t, n) {
|
|
6422
6422
|
return g === 62 ? Q(g) : E(g);
|
6423
6423
|
}
|
6424
6424
|
function U(g) {
|
6425
|
-
return Ve(g) ? (e.consume(g),
|
6425
|
+
return Ve(g) ? (e.consume(g), b) : n(g);
|
6426
6426
|
}
|
6427
|
-
function
|
6428
|
-
return g === 45 || Ae(g) ? (e.consume(g),
|
6427
|
+
function b(g) {
|
6428
|
+
return g === 45 || Ae(g) ? (e.consume(g), b) : L(g);
|
6429
6429
|
}
|
6430
6430
|
function L(g) {
|
6431
6431
|
return G(g) ? (a = L, V(g)) : ie(g) ? (e.consume(g), L) : Q(g);
|
@@ -6475,8 +6475,8 @@ function gf(e, t, n) {
|
|
6475
6475
|
const Yr = {
|
6476
6476
|
name: "labelEnd",
|
6477
6477
|
tokenize: wf,
|
6478
|
-
resolveTo:
|
6479
|
-
resolveAll:
|
6478
|
+
resolveTo: xf,
|
6479
|
+
resolveAll: bf
|
6480
6480
|
}, mf = {
|
6481
6481
|
tokenize: vf
|
6482
6482
|
}, yf = {
|
@@ -6484,7 +6484,7 @@ const Yr = {
|
|
6484
6484
|
}, Mf = {
|
6485
6485
|
tokenize: Df
|
6486
6486
|
};
|
6487
|
-
function
|
6487
|
+
function bf(e) {
|
6488
6488
|
let t = -1;
|
6489
6489
|
for (; ++t < e.length; ) {
|
6490
6490
|
const n = e[t][1];
|
@@ -6492,7 +6492,7 @@ function xf(e) {
|
|
6492
6492
|
}
|
6493
6493
|
return e;
|
6494
6494
|
}
|
6495
|
-
function
|
6495
|
+
function xf(e, t) {
|
6496
6496
|
let n = e.length, r = 0, i, o, a, l;
|
6497
6497
|
for (; n--; )
|
6498
6498
|
if (i = e[n][1], o) {
|
@@ -7026,8 +7026,8 @@ function qf(e, t, n) {
|
|
7026
7026
|
enter: E,
|
7027
7027
|
exit: _,
|
7028
7028
|
attempt: L(U),
|
7029
|
-
check: L(
|
7030
|
-
interrupt: L(
|
7029
|
+
check: L(b),
|
7030
|
+
interrupt: L(b, {
|
7031
7031
|
interrupt: !0
|
7032
7032
|
})
|
7033
7033
|
}, u = {
|
@@ -7039,7 +7039,7 @@ function qf(e, t, n) {
|
|
7039
7039
|
sliceStream: f,
|
7040
7040
|
sliceSerialize: m,
|
7041
7041
|
now: T,
|
7042
|
-
defineSkip:
|
7042
|
+
defineSkip: x,
|
7043
7043
|
write: p
|
7044
7044
|
};
|
7045
7045
|
let c = t.tokenize.call(u, s);
|
@@ -7063,7 +7063,7 @@ function qf(e, t, n) {
|
|
7063
7063
|
_bufferIndex: F
|
7064
7064
|
};
|
7065
7065
|
}
|
7066
|
-
function
|
7066
|
+
function x(A) {
|
7067
7067
|
i[A.line] = A.column, K();
|
7068
7068
|
}
|
7069
7069
|
function k() {
|
@@ -7094,7 +7094,7 @@ function qf(e, t, n) {
|
|
7094
7094
|
function U(A, w) {
|
7095
7095
|
$(A, w.from);
|
7096
7096
|
}
|
7097
|
-
function
|
7097
|
+
function b(A, w) {
|
7098
7098
|
w.restore();
|
7099
7099
|
}
|
7100
7100
|
function L(A, w) {
|
@@ -7234,7 +7234,7 @@ const Gf = {
|
|
7234
7234
|
55: De,
|
7235
7235
|
56: De,
|
7236
7236
|
57: De,
|
7237
|
-
62:
|
7237
|
+
62: ba
|
7238
7238
|
}, Zf = {
|
7239
7239
|
91: Zp
|
7240
7240
|
}, Xf = {
|
@@ -7252,7 +7252,7 @@ const Gf = {
|
|
7252
7252
|
126: ro
|
7253
7253
|
}, Jf = {
|
7254
7254
|
38: wa,
|
7255
|
-
92:
|
7255
|
+
92: xa
|
7256
7256
|
}, ed = {
|
7257
7257
|
[-5]: ir,
|
7258
7258
|
[-4]: ir,
|
@@ -7262,7 +7262,7 @@ const Gf = {
|
|
7262
7262
|
42: Dr,
|
7263
7263
|
60: [kp, hf],
|
7264
7264
|
91: kf,
|
7265
|
-
92: [ef,
|
7265
|
+
92: [ef, xa],
|
7266
7266
|
93: Yr,
|
7267
7267
|
95: Dr,
|
7268
7268
|
96: Bp
|
@@ -7292,7 +7292,7 @@ function od(e) {
|
|
7292
7292
|
defined: [],
|
7293
7293
|
lazy: {},
|
7294
7294
|
constructs: n,
|
7295
|
-
content: i(
|
7295
|
+
content: i(xp),
|
7296
7296
|
document: i(vp),
|
7297
7297
|
flow: i(Bf),
|
7298
7298
|
string: i(Yf),
|
@@ -7453,7 +7453,7 @@ function fd(e) {
|
|
7453
7453
|
characterReferenceValue: ve,
|
7454
7454
|
codeFenced: c(z),
|
7455
7455
|
codeFencedFence: M,
|
7456
|
-
codeFencedFenceInfo:
|
7456
|
+
codeFencedFenceInfo: x,
|
7457
7457
|
codeFencedFenceMeta: k,
|
7458
7458
|
codeFlowValue: w,
|
7459
7459
|
codeIndented: c(E),
|
@@ -7461,7 +7461,7 @@ function fd(e) {
|
|
7461
7461
|
codeTextData: w,
|
7462
7462
|
data: w,
|
7463
7463
|
definition: c(),
|
7464
|
-
definitionDestinationString:
|
7464
|
+
definitionDestinationString: b,
|
7465
7465
|
definitionLabelString: _,
|
7466
7466
|
definitionTitleString: U,
|
7467
7467
|
emphasis: c(),
|
@@ -7640,7 +7640,7 @@ function fd(e) {
|
|
7640
7640
|
S.start = Number.parseInt(this.sliceSerialize(I), 10), o("expectingFirstListItemValue");
|
7641
7641
|
}
|
7642
7642
|
}
|
7643
|
-
function
|
7643
|
+
function x() {
|
7644
7644
|
const I = this.resume(), S = this.stack[this.stack.length - 1];
|
7645
7645
|
S.lang = I;
|
7646
7646
|
}
|
@@ -7669,7 +7669,7 @@ function fd(e) {
|
|
7669
7669
|
const I = this.resume(), S = this.stack[this.stack.length - 1];
|
7670
7670
|
S.title = I;
|
7671
7671
|
}
|
7672
|
-
function
|
7672
|
+
function b() {
|
7673
7673
|
const I = this.resume(), S = this.stack[this.stack.length - 1];
|
7674
7674
|
S.url = I;
|
7675
7675
|
}
|
@@ -8007,7 +8007,7 @@ function Md(e, t) {
|
|
8007
8007
|
};
|
8008
8008
|
return e.patch(t, n), e.applyData(t, n);
|
8009
8009
|
}
|
8010
|
-
function
|
8010
|
+
function bd(e, t) {
|
8011
8011
|
const n = {
|
8012
8012
|
type: "element",
|
8013
8013
|
tagName: "em",
|
@@ -8059,7 +8059,7 @@ function Aa(e, t) {
|
|
8059
8059
|
};
|
8060
8060
|
return e.patch(t, s), e.applyData(t, s);
|
8061
8061
|
}
|
8062
|
-
function
|
8062
|
+
function xd(e, t) {
|
8063
8063
|
const n = e.footnoteById;
|
8064
8064
|
let r = 1;
|
8065
8065
|
for (; r in n; )
|
@@ -8350,9 +8350,9 @@ const Ud = {
|
|
8350
8350
|
break: md,
|
8351
8351
|
code: yd,
|
8352
8352
|
delete: Md,
|
8353
|
-
emphasis:
|
8353
|
+
emphasis: bd,
|
8354
8354
|
footnoteReference: Aa,
|
8355
|
-
footnote:
|
8355
|
+
footnote: xd,
|
8356
8356
|
heading: wd,
|
8357
8357
|
html: vd,
|
8358
8358
|
imageReference: Td,
|
@@ -8474,12 +8474,12 @@ const qd = !0, po = !1, Vd = "skip", Wd = (
|
|
8474
8474
|
}
|
8475
8475
|
return p;
|
8476
8476
|
function p() {
|
8477
|
-
let m = [], f, T,
|
8477
|
+
let m = [], f, T, x;
|
8478
8478
|
if ((!t || i(l, s, u[u.length - 1] || null)) && (m = Gd(n(l, u)), m[0] === po))
|
8479
8479
|
return m;
|
8480
8480
|
if (l.children && m[0] !== Vd)
|
8481
|
-
for (T = (r ? l.children.length : -1) + o,
|
8482
|
-
if (f = a(l.children[T], T,
|
8481
|
+
for (T = (r ? l.children.length : -1) + o, x = u.concat(l); T > -1 && T < l.children.length; ) {
|
8482
|
+
if (f = a(l.children[T], T, x)(), f[0] === po)
|
8483
8483
|
return f;
|
8484
8484
|
T = typeof f[1] == "number" ? f[1] : T + o;
|
8485
8485
|
}
|
@@ -8537,14 +8537,14 @@ function Xd(e) {
|
|
8537
8537
|
function ho(e) {
|
8538
8538
|
return String(e || "").toUpperCase();
|
8539
8539
|
}
|
8540
|
-
const
|
8540
|
+
const xn = {}.hasOwnProperty;
|
8541
8541
|
function Kd(e, t) {
|
8542
8542
|
const n = t || {}, r = n.allowDangerousHtml || !1, i = {};
|
8543
8543
|
return a.dangerous = r, a.clobberPrefix = n.clobberPrefix === void 0 || n.clobberPrefix === null ? "user-content-" : n.clobberPrefix, a.footnoteLabel = n.footnoteLabel || "Footnotes", a.footnoteLabelTagName = n.footnoteLabelTagName || "h2", a.footnoteLabelProperties = n.footnoteLabelProperties || {
|
8544
8544
|
className: ["sr-only"]
|
8545
8545
|
}, a.footnoteBackLabel = n.footnoteBackLabel || "Back to content", a.unknownHandler = n.unknownHandler, a.passThrough = n.passThrough, a.handlers = { ...Ud, ...n.handlers }, a.definition = Xd(e), a.footnoteById = i, a.footnoteOrder = [], a.footnoteCounts = {}, a.patch = Jd, a.applyData = eh, a.one = l, a.all = s, a.wrap = nh, a.augment = o, qr(e, "footnoteDefinition", (u) => {
|
8546
8546
|
const c = String(u.identifier).toUpperCase();
|
8547
|
-
|
8547
|
+
xn.call(i, c) || (i[c] = u);
|
8548
8548
|
}), a;
|
8549
8549
|
function o(u, c) {
|
8550
8550
|
if (u && "data" in u && u.data) {
|
@@ -8597,7 +8597,7 @@ function _a(e, t, n) {
|
|
8597
8597
|
const r = t && t.type;
|
8598
8598
|
if (!r)
|
8599
8599
|
throw new Error("Expected node, got `" + t + "`");
|
8600
|
-
return
|
8600
|
+
return xn.call(e.handlers, r) ? e.handlers[r](e, t, n) : e.passThrough && e.passThrough.includes(r) ? "children" in t ? { ...t, children: Vr(e, t) } : t : e.unknownHandler ? e.unknownHandler(e, t, n) : th(e, t);
|
8601
8601
|
}
|
8602
8602
|
function Vr(e, t) {
|
8603
8603
|
const n = [];
|
@@ -8618,7 +8618,7 @@ function Vr(e, t) {
|
|
8618
8618
|
return n;
|
8619
8619
|
}
|
8620
8620
|
function th(e, t) {
|
8621
|
-
const n = t.data || {}, r = "value" in t && !(
|
8621
|
+
const n = t.data || {}, r = "value" in t && !(xn.call(n, "hProperties") || xn.call(n, "hChildren")) ? { type: "text", value: t.value } : {
|
8622
8622
|
type: "element",
|
8623
8623
|
tagName: "div",
|
8624
8624
|
properties: {},
|
@@ -8773,14 +8773,14 @@ Re.prototype.commaOrSpaceSeparated = !1;
|
|
8773
8773
|
Re.prototype.mustUseProperty = !1;
|
8774
8774
|
Re.prototype.defined = !1;
|
8775
8775
|
let sh = 0;
|
8776
|
-
const Z = gt(),
|
8776
|
+
const Z = gt(), be = gt(), Ra = gt(), C = gt(), ce = gt(), vt = gt(), Ce = gt();
|
8777
8777
|
function gt() {
|
8778
8778
|
return 2 ** ++sh;
|
8779
8779
|
}
|
8780
8780
|
const Ir = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineProperty({
|
8781
8781
|
__proto__: null,
|
8782
8782
|
boolean: Z,
|
8783
|
-
booleanish:
|
8783
|
+
booleanish: be,
|
8784
8784
|
commaOrSpaceSeparated: Ce,
|
8785
8785
|
commaSeparated: vt,
|
8786
8786
|
number: C,
|
@@ -8862,10 +8862,10 @@ const Ha = It({
|
|
8862
8862
|
},
|
8863
8863
|
properties: {
|
8864
8864
|
ariaActiveDescendant: null,
|
8865
|
-
ariaAtomic:
|
8865
|
+
ariaAtomic: be,
|
8866
8866
|
ariaAutoComplete: null,
|
8867
|
-
ariaBusy:
|
8868
|
-
ariaChecked:
|
8867
|
+
ariaBusy: be,
|
8868
|
+
ariaChecked: be,
|
8869
8869
|
ariaColCount: C,
|
8870
8870
|
ariaColIndex: C,
|
8871
8871
|
ariaColSpan: C,
|
@@ -8873,36 +8873,36 @@ const Ha = It({
|
|
8873
8873
|
ariaCurrent: null,
|
8874
8874
|
ariaDescribedBy: ce,
|
8875
8875
|
ariaDetails: null,
|
8876
|
-
ariaDisabled:
|
8876
|
+
ariaDisabled: be,
|
8877
8877
|
ariaDropEffect: ce,
|
8878
8878
|
ariaErrorMessage: null,
|
8879
|
-
ariaExpanded:
|
8879
|
+
ariaExpanded: be,
|
8880
8880
|
ariaFlowTo: ce,
|
8881
|
-
ariaGrabbed:
|
8881
|
+
ariaGrabbed: be,
|
8882
8882
|
ariaHasPopup: null,
|
8883
|
-
ariaHidden:
|
8883
|
+
ariaHidden: be,
|
8884
8884
|
ariaInvalid: null,
|
8885
8885
|
ariaKeyShortcuts: null,
|
8886
8886
|
ariaLabel: null,
|
8887
8887
|
ariaLabelledBy: ce,
|
8888
8888
|
ariaLevel: C,
|
8889
8889
|
ariaLive: null,
|
8890
|
-
ariaModal:
|
8891
|
-
ariaMultiLine:
|
8892
|
-
ariaMultiSelectable:
|
8890
|
+
ariaModal: be,
|
8891
|
+
ariaMultiLine: be,
|
8892
|
+
ariaMultiSelectable: be,
|
8893
8893
|
ariaOrientation: null,
|
8894
8894
|
ariaOwns: ce,
|
8895
8895
|
ariaPlaceholder: null,
|
8896
8896
|
ariaPosInSet: C,
|
8897
|
-
ariaPressed:
|
8898
|
-
ariaReadOnly:
|
8897
|
+
ariaPressed: be,
|
8898
|
+
ariaReadOnly: be,
|
8899
8899
|
ariaRelevant: null,
|
8900
|
-
ariaRequired:
|
8900
|
+
ariaRequired: be,
|
8901
8901
|
ariaRoleDescription: ce,
|
8902
8902
|
ariaRowCount: C,
|
8903
8903
|
ariaRowIndex: C,
|
8904
8904
|
ariaRowSpan: C,
|
8905
|
-
ariaSelected:
|
8905
|
+
ariaSelected: be,
|
8906
8906
|
ariaSetSize: C,
|
8907
8907
|
ariaSort: null,
|
8908
8908
|
ariaValueMax: C,
|
@@ -8948,7 +8948,7 @@ const Ha = It({
|
|
8948
8948
|
cols: C,
|
8949
8949
|
colSpan: null,
|
8950
8950
|
content: null,
|
8951
|
-
contentEditable:
|
8951
|
+
contentEditable: be,
|
8952
8952
|
controls: Z,
|
8953
8953
|
controlsList: ce,
|
8954
8954
|
coords: C | vt,
|
@@ -8962,7 +8962,7 @@ const Ha = It({
|
|
8962
8962
|
dirName: null,
|
8963
8963
|
disabled: Z,
|
8964
8964
|
download: Ra,
|
8965
|
-
draggable:
|
8965
|
+
draggable: be,
|
8966
8966
|
encType: null,
|
8967
8967
|
enterKeyHint: null,
|
8968
8968
|
fetchPriority: null,
|
@@ -9132,7 +9132,7 @@ const Ha = It({
|
|
9132
9132
|
sizes: null,
|
9133
9133
|
slot: null,
|
9134
9134
|
span: C,
|
9135
|
-
spellCheck:
|
9135
|
+
spellCheck: be,
|
9136
9136
|
src: null,
|
9137
9137
|
srcDoc: null,
|
9138
9138
|
srcLang: null,
|
@@ -9147,7 +9147,7 @@ const Ha = It({
|
|
9147
9147
|
type: null,
|
9148
9148
|
typeMustMatch: Z,
|
9149
9149
|
useMap: null,
|
9150
|
-
value:
|
9150
|
+
value: be,
|
9151
9151
|
width: C,
|
9152
9152
|
wrap: null,
|
9153
9153
|
// Legacy.
|
@@ -9238,7 +9238,7 @@ const Ha = It({
|
|
9238
9238
|
// `<table>`
|
9239
9239
|
scheme: null,
|
9240
9240
|
// `<meta>`
|
9241
|
-
scrolling:
|
9241
|
+
scrolling: be,
|
9242
9242
|
// `<frame>`. Use overflow in the child context
|
9243
9243
|
standby: null,
|
9244
9244
|
// `<object>`
|
@@ -9875,7 +9875,7 @@ const yo = {
|
|
9875
9875
|
xLinkType: "xlinkType",
|
9876
9876
|
xmlnsXLink: "xmlnsXlink"
|
9877
9877
|
}, yh = Pa([Ua, Ba, Ha, $a, ch], "html"), Mh = Pa([Ua, Ba, Ha, $a, ph], "svg");
|
9878
|
-
function
|
9878
|
+
function bh(e) {
|
9879
9879
|
if (e.allowedElements && e.disallowedElements)
|
9880
9880
|
throw new TypeError(
|
9881
9881
|
"Only one of `allowedElements` and `disallowedElements` should be defined"
|
@@ -9903,7 +9903,7 @@ var qa = { exports: {} }, ae = {};
|
|
9903
9903
|
* This source code is licensed under the MIT license found in the
|
9904
9904
|
* LICENSE file in the root directory of this source tree.
|
9905
9905
|
*/
|
9906
|
-
var Gr = Symbol.for("react.element"), Zr = Symbol.for("react.portal"), In = 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"),
|
9906
|
+
var Gr = Symbol.for("react.element"), Zr = Symbol.for("react.portal"), In = 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"), xh = 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"), wh = Symbol.for("react.offscreen"), Va;
|
9907
9907
|
Va = Symbol.for("react.module.reference");
|
9908
9908
|
function Be(e) {
|
9909
9909
|
if (typeof e == "object" && e !== null) {
|
@@ -9919,7 +9919,7 @@ function Be(e) {
|
|
9919
9919
|
return e;
|
9920
9920
|
default:
|
9921
9921
|
switch (e = e && e.$$typeof, e) {
|
9922
|
-
case
|
9922
|
+
case xh:
|
9923
9923
|
case Cn:
|
9924
9924
|
case An:
|
9925
9925
|
case Ln:
|
@@ -10016,7 +10016,7 @@ function Ih(e, t) {
|
|
10016
10016
|
).trim();
|
10017
10017
|
}
|
10018
10018
|
var Xr = { exports: {} }, Mo = /\/\*[^*]*\*+([^/*][^*]*\*+)*\//g, kh = /\n/g, jh = /^\s*/, Eh = /^(\*?[-#/*\\\w]+(\[[0-9a-z_-]+\])?)\s*/, Ch = /^:\s*/, Ah = /^((?:'(?:\\'|.)*?'|"(?:\\"|.)*?"|\([^)]*?\)|[^};])+)/, Sh = /^[;\s]*/, Oh = /^\s+|\s+$/g, zh = `
|
10019
|
-
`,
|
10019
|
+
`, bo = "/", xo = "*", ft = "", Lh = "comment", _h = "declaration", Fh = function(e, t) {
|
10020
10020
|
if (typeof e != "string")
|
10021
10021
|
throw new TypeError("First argument must be a string");
|
10022
10022
|
if (!e)
|
@@ -10024,15 +10024,15 @@ var Xr = { exports: {} }, Mo = /\/\*[^*]*\*+([^/*][^*]*\*+)*\//g, kh = /\n/g, jh
|
|
10024
10024
|
t = t || {};
|
10025
10025
|
var n = 1, r = 1;
|
10026
10026
|
function i(T) {
|
10027
|
-
var
|
10028
|
-
|
10027
|
+
var x = T.match(kh);
|
10028
|
+
x && (n += x.length);
|
10029
10029
|
var k = T.lastIndexOf(zh);
|
10030
10030
|
r = ~k ? T.length - k : r + T.length;
|
10031
10031
|
}
|
10032
10032
|
function o() {
|
10033
10033
|
var T = { line: n, column: r };
|
10034
|
-
return function(
|
10035
|
-
return
|
10034
|
+
return function(x) {
|
10035
|
+
return x.position = new a(T), u(), x;
|
10036
10036
|
};
|
10037
10037
|
}
|
10038
10038
|
function a(T) {
|
@@ -10040,50 +10040,50 @@ var Xr = { exports: {} }, Mo = /\/\*[^*]*\*+([^/*][^*]*\*+)*\//g, kh = /\n/g, jh
|
|
10040
10040
|
}
|
10041
10041
|
a.prototype.content = e;
|
10042
10042
|
function l(T) {
|
10043
|
-
var
|
10043
|
+
var x = new Error(
|
10044
10044
|
t.source + ":" + n + ":" + r + ": " + T
|
10045
10045
|
);
|
10046
|
-
if (
|
10047
|
-
throw
|
10046
|
+
if (x.reason = T, x.filename = t.source, x.line = n, x.column = r, x.source = e, !t.silent)
|
10047
|
+
throw x;
|
10048
10048
|
}
|
10049
10049
|
function s(T) {
|
10050
|
-
var
|
10051
|
-
if (
|
10052
|
-
var k =
|
10053
|
-
return i(k), e = e.slice(k.length),
|
10050
|
+
var x = T.exec(e);
|
10051
|
+
if (x) {
|
10052
|
+
var k = x[0];
|
10053
|
+
return i(k), e = e.slice(k.length), x;
|
10054
10054
|
}
|
10055
10055
|
}
|
10056
10056
|
function u() {
|
10057
10057
|
s(jh);
|
10058
10058
|
}
|
10059
10059
|
function c(T) {
|
10060
|
-
var
|
10061
|
-
for (T = T || [];
|
10062
|
-
|
10060
|
+
var x;
|
10061
|
+
for (T = T || []; x = p(); )
|
10062
|
+
x !== !1 && T.push(x);
|
10063
10063
|
return T;
|
10064
10064
|
}
|
10065
10065
|
function p() {
|
10066
10066
|
var T = o();
|
10067
|
-
if (!(
|
10068
|
-
for (var
|
10069
|
-
++
|
10070
|
-
if (
|
10067
|
+
if (!(bo != e.charAt(0) || xo != e.charAt(1))) {
|
10068
|
+
for (var x = 2; ft != e.charAt(x) && (xo != e.charAt(x) || bo != e.charAt(x + 1)); )
|
10069
|
+
++x;
|
10070
|
+
if (x += 2, ft === e.charAt(x - 1))
|
10071
10071
|
return l("End of comment missing");
|
10072
|
-
var k = e.slice(2,
|
10073
|
-
return r += 2, i(k), e = e.slice(
|
10072
|
+
var k = e.slice(2, x - 2);
|
10073
|
+
return r += 2, i(k), e = e.slice(x), r += 2, T({
|
10074
10074
|
type: Lh,
|
10075
10075
|
comment: k
|
10076
10076
|
});
|
10077
10077
|
}
|
10078
10078
|
}
|
10079
10079
|
function m() {
|
10080
|
-
var T = o(),
|
10081
|
-
if (
|
10080
|
+
var T = o(), x = s(Eh);
|
10081
|
+
if (x) {
|
10082
10082
|
if (p(), !s(Ch))
|
10083
10083
|
return l("property missing ':'");
|
10084
10084
|
var k = s(Ah), M = T({
|
10085
10085
|
type: _h,
|
10086
|
-
property: wo(
|
10086
|
+
property: wo(x[0].replace(Mo, ft)),
|
10087
10087
|
value: k ? wo(k[0].replace(Mo, ft)) : ft
|
10088
10088
|
});
|
10089
10089
|
return s(Sh), M;
|
@@ -10092,8 +10092,8 @@ var Xr = { exports: {} }, Mo = /\/\*[^*]*\*+([^/*][^*]*\*+)*\//g, kh = /\n/g, jh
|
|
10092
10092
|
function f() {
|
10093
10093
|
var T = [];
|
10094
10094
|
c(T);
|
10095
|
-
for (var
|
10096
|
-
|
10095
|
+
for (var x; x = m(); )
|
10096
|
+
x !== !1 && (T.push(x), c(T));
|
10097
10097
|
return T;
|
10098
10098
|
}
|
10099
10099
|
return u(), f();
|
@@ -10151,8 +10151,8 @@ function Qh(e, t, n, r) {
|
|
10151
10151
|
String(s.alt || ""),
|
10152
10152
|
typeof s.title == "string" ? s.title : null
|
10153
10153
|
)), !T && l === "li" && r.type === "element") {
|
10154
|
-
const
|
10155
|
-
s.checked =
|
10154
|
+
const x = Yh(t);
|
10155
|
+
s.checked = x && x.properties ? !!x.properties.checked : null, s.index = ar(r, t), s.ordered = r.tagName === "ol";
|
10156
10156
|
}
|
10157
10157
|
return !T && (l === "ol" || l === "ul") && (s.ordered = l === "ol", s.depth = e.listDepth), (l === "td" || l === "th") && (s.align && (s.style || (s.style = {}), s.style.textAlign = s.align, delete s.align), T || (s.isHeader = l === "th")), !T && l === "tr" && r.type === "element" && (s.isHeader = r.tagName === "thead"), i.sourcePos && (s["data-sourcepos"] = Vh(m)), !T && i.rawSourcePos && (s.sourcePosition = t.position), !T && i.includeElementIndex && (s.index = ar(r, t), s.siblingCount = ar(r)), T || (s.node = t), p.length > 0 ? tt.createElement(f, s, p) : tt.createElement(f, s);
|
10158
10158
|
}
|
@@ -10237,7 +10237,7 @@ function Za(e) {
|
|
10237
10237
|
const t = ip().use(hd).use(e.remarkPlugins || []).use(oh, {
|
10238
10238
|
...e.remarkRehypeOptions,
|
10239
10239
|
allowDangerousHtml: !0
|
10240
|
-
}).use(e.rehypePlugins || []).use(
|
10240
|
+
}).use(e.rehypePlugins || []).use(bh, e), n = new ha();
|
10241
10241
|
typeof e.children == "string" ? n.value = e.children : e.children !== void 0 && e.children !== null && console.warn(
|
10242
10242
|
`[react-markdown] Warning: please pass a string as \`children\` (not: \`${e.children}\`)`
|
10243
10243
|
);
|
@@ -10388,28 +10388,28 @@ function _n({
|
|
10388
10388
|
}), ((_ = M == null ? void 0 : M.data) == null ? void 0 : _.type) === "connection" && ((U = M == null ? void 0 : M.data) == null ? void 0 : U.state) === "disconnected" && Ne.remove(`${p}-live-chat-open`);
|
10389
10389
|
},
|
10390
10390
|
[p]
|
10391
|
-
),
|
10391
|
+
), x = Tt(
|
10392
10392
|
(M) => {
|
10393
10393
|
var z, E, _, U;
|
10394
10394
|
((z = M == null ? void 0 : M.data) == null ? void 0 : z.type) === "unhide" && ((E = M == null ? void 0 : M.data) == null ? void 0 : E.reason) === "pop-out" && t(!0), ((_ = M == null ? void 0 : M.data) == null ? void 0 : _.type) === "open" && ((U = M == null ? void 0 : M.data) == null ? void 0 : U.chatState) === !0 && t(!0);
|
10395
10395
|
},
|
10396
10396
|
[t]
|
10397
10397
|
);
|
10398
|
-
|
10398
|
+
xe(() => {
|
10399
10399
|
let M, z;
|
10400
10400
|
return f.liveChat.enabled && (window.Five9ChatPlugin || (M = document.createElement("script"), M.type = "text/javascript", M.src = f.liveChat.sourceCode, M.async = !0, M.onload = () => {
|
10401
10401
|
window.Five9ChatPlugin(f.liveChat.options);
|
10402
|
-
}, document.body.appendChild(M)), window.addEventListener("message", T), window.addEventListener("message",
|
10402
|
+
}, document.body.appendChild(M)), window.addEventListener("message", T), window.addEventListener("message", x), z = setTimeout(() => {
|
10403
10403
|
u(!1);
|
10404
10404
|
}, 3e3)), () => {
|
10405
|
-
f.liveChat.enabled && (window.removeEventListener("message", T), window.removeEventListener("message",
|
10405
|
+
f.liveChat.enabled && (window.removeEventListener("message", T), window.removeEventListener("message", x), clearTimeout(z));
|
10406
10406
|
};
|
10407
10407
|
}, [
|
10408
10408
|
f.liveChat.enabled,
|
10409
10409
|
f.liveChat.options,
|
10410
10410
|
f.liveChat.sourceCode,
|
10411
10411
|
T,
|
10412
|
-
|
10412
|
+
x
|
10413
10413
|
]);
|
10414
10414
|
const k = () => {
|
10415
10415
|
e({
|
@@ -10568,7 +10568,7 @@ Fn.defaultProps = {
|
|
10568
10568
|
Fn.displayName = "AssistantMessageBubble";
|
10569
10569
|
const eg = Fn, Ka = () => {
|
10570
10570
|
const { disclaimer: e } = Se(Oe), t = We(null);
|
10571
|
-
return
|
10571
|
+
return xe(() => {
|
10572
10572
|
var n;
|
10573
10573
|
(n = t == null ? void 0 : t.current) == null || n.focus();
|
10574
10574
|
}, []), /* @__PURE__ */ v.jsxs(
|
@@ -10678,7 +10678,7 @@ const ig = ei, Pn = ({
|
|
10678
10678
|
isTestUser: s
|
10679
10679
|
}) => {
|
10680
10680
|
const { conversationScreen: u } = Se(Oe), { prompts: c, systemMessage: p } = u, m = We(null);
|
10681
|
-
return
|
10681
|
+
return xe(() => {
|
10682
10682
|
var f;
|
10683
10683
|
(f = m.current) == null || f.scrollIntoView({
|
10684
10684
|
behavior: "instant",
|
@@ -10760,7 +10760,7 @@ Pn.displayName = "ConversationsMessages";
|
|
10760
10760
|
const og = Pn;
|
10761
10761
|
function Ja({ disableScroll: e }) {
|
10762
10762
|
const t = We(null);
|
10763
|
-
return
|
10763
|
+
return xe(() => {
|
10764
10764
|
var n;
|
10765
10765
|
e || (n = t.current) == null || n.scrollIntoView({
|
10766
10766
|
behavior: "smooth",
|
@@ -10786,7 +10786,7 @@ Ja.propTypes = {
|
|
10786
10786
|
};
|
10787
10787
|
const ag = () => {
|
10788
10788
|
const e = We(null);
|
10789
|
-
return
|
10789
|
+
return xe(() => {
|
10790
10790
|
var t;
|
10791
10791
|
(t = e.current) == null || t.scrollIntoView({
|
10792
10792
|
behavior: "instant"
|
@@ -10858,33 +10858,33 @@ function el({
|
|
10858
10858
|
}) {
|
10859
10859
|
var T;
|
10860
10860
|
const { proactiveMessage: a } = Se(Oe), [l, s] = ye(!0), [u, c] = ye(!1), p = l && (!(window != null && window.OnetrustActiveGroups) || ((T = window == null ? void 0 : window.OnetrustActiveGroups) == null ? void 0 : T.includes("C0003"))) && Ne.get(t) === void 0;
|
10861
|
-
|
10862
|
-
var
|
10863
|
-
(
|
10861
|
+
xe(() => {
|
10862
|
+
var x;
|
10863
|
+
(x = window == null ? void 0 : window.OneTrust) == null || x.OnConsentChanged(() => {
|
10864
10864
|
var k;
|
10865
10865
|
!((k = window == null ? void 0 : window.OnetrustActiveGroups) != null && k.includes("C0003")) && Ne.get(t) !== void 0 && Ne.remove(t);
|
10866
10866
|
});
|
10867
|
-
}, [t]),
|
10868
|
-
var
|
10869
|
-
i || (!(window != null && window.OnetrustActiveGroups) || (
|
10870
|
-
}, [t, i]),
|
10867
|
+
}, [t]), xe(() => {
|
10868
|
+
var x;
|
10869
|
+
i || (!(window != null && window.OnetrustActiveGroups) || (x = window == null ? void 0 : window.OnetrustActiveGroups) != null && x.includes("C0003")) && f(t, 1, 1);
|
10870
|
+
}, [t, i]), xe(() => {
|
10871
10871
|
if (a.enabled && a.delayMs > 0) {
|
10872
|
-
const
|
10872
|
+
const x = setTimeout(() => {
|
10873
10873
|
c(!0);
|
10874
10874
|
}, a.delayMs);
|
10875
|
-
return () => clearTimeout(
|
10875
|
+
return () => clearTimeout(x);
|
10876
10876
|
} else
|
10877
10877
|
c(!0);
|
10878
10878
|
}, [a.delayMs, a.enabled]);
|
10879
10879
|
const m = () => {
|
10880
|
-
var
|
10881
|
-
s(!1), (!(window != null && window.OnetrustActiveGroups) || (
|
10882
|
-
}, f = (
|
10880
|
+
var x;
|
10881
|
+
s(!1), (!(window != null && window.OnetrustActiveGroups) || (x = window == null ? void 0 : window.OnetrustActiveGroups) != null && x.includes("C0003")) && f(t, 1, 1), r();
|
10882
|
+
}, f = (x, k, M) => {
|
10883
10883
|
const z = {
|
10884
10884
|
expires: M,
|
10885
10885
|
path: "/"
|
10886
10886
|
};
|
10887
|
-
Ne.set(
|
10887
|
+
Ne.set(x, k, z);
|
10888
10888
|
};
|
10889
10889
|
return !u || !p ? null : /* @__PURE__ */ v.jsx("div", { children: /* @__PURE__ */ v.jsxs(
|
10890
10890
|
"div",
|
@@ -10944,9 +10944,9 @@ function lg(e, t, n) {
|
|
10944
10944
|
},
|
10945
10945
|
[n]
|
10946
10946
|
);
|
10947
|
-
|
10947
|
+
xe(() => (e && window.addEventListener("message", r), () => {
|
10948
10948
|
window.removeEventListener("message", r);
|
10949
|
-
}), [e, r]),
|
10949
|
+
}), [e, r]), xe(() => {
|
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 lg(e, t, n) {
|
|
10968
10968
|
}
|
10969
10969
|
function sg(e) {
|
10970
10970
|
const [t, n] = ye(null);
|
10971
|
-
return
|
10971
|
+
return xe(() => {
|
10972
10972
|
try {
|
10973
10973
|
(() => {
|
10974
10974
|
var i, o, a;
|
@@ -10997,7 +10997,7 @@ function sg(e) {
|
|
10997
10997
|
), t;
|
10998
10998
|
}
|
10999
10999
|
function ug(e) {
|
11000
|
-
|
11000
|
+
xe(() => {
|
11001
11001
|
e();
|
11002
11002
|
const t = () => document.visibilityState === "visible" && e();
|
11003
11003
|
return document.addEventListener("visibilitychange", t), () => {
|
@@ -11030,7 +11030,7 @@ function ti({ submitEventExternal: e }) {
|
|
11030
11030
|
userTracking: o,
|
11031
11031
|
webExperimentation: a,
|
11032
11032
|
xpertKey: l
|
11033
|
-
} = Se(Oe), s = it(dg), [, u] = ye(!1), [, c] = ye(!1), [p, m] = ye(hg), [f, T] = ye(!1), [
|
11033
|
+
} = Se(Oe), s = it(dg), [, u] = ye(!1), [, c] = ye(!1), [p, m] = ye(hg), [f, T] = ye(!1), [x, k] = ye(!1), [M, z] = ye(!1), [E, _] = ye(""), [U, b] = ye(!1), [L, $] = ye(!0), [W, K] = ye(!1), [A, w] = ye(!1), [j, O] = ye(!1), F = We(null), Q = We(null), V = We(null), q = Ne.get(`${l}-test`) === "1";
|
11034
11034
|
lg(
|
11035
11035
|
n.liveChat.enabled,
|
11036
11036
|
M,
|
@@ -11083,7 +11083,7 @@ function ti({ submitEventExternal: e }) {
|
|
11083
11083
|
T(!1);
|
11084
11084
|
}
|
11085
11085
|
}, [l, t.endpoint]);
|
11086
|
-
ug(g),
|
11086
|
+
ug(g), xe(() => {
|
11087
11087
|
let R, ee;
|
11088
11088
|
return o.enabled && (R = setInterval(() => {
|
11089
11089
|
var le;
|
@@ -11093,7 +11093,7 @@ function ti({ submitEventExternal: e }) {
|
|
11093
11093
|
}, 6e4)), () => {
|
11094
11094
|
clearInterval(R), clearTimeout(ee);
|
11095
11095
|
};
|
11096
|
-
}, [o.enabled, o.prefix]),
|
11096
|
+
}, [o.enabled, o.prefix]), xe(() => {
|
11097
11097
|
let R, ee;
|
11098
11098
|
return R = setInterval(() => {
|
11099
11099
|
a.enabled && (console.log("Chatbot - Finding Optimizely"), window.optimizely && window.experiments && (console.log("Chatbot - Optimizely found"), clearInterval(R), clearTimeout(ee), c(!0)));
|
@@ -11162,7 +11162,7 @@ function ti({ submitEventExternal: e }) {
|
|
11162
11162
|
if (R.trim().length === 0)
|
11163
11163
|
return;
|
11164
11164
|
const ee = /* @__PURE__ */ new Date();
|
11165
|
-
O(!1),
|
11165
|
+
O(!1), b(!1);
|
11166
11166
|
const me = p.filter((J) => J.role === "user").length + 1;
|
11167
11167
|
X({
|
11168
11168
|
name: `${o.prefix}.bi.xpert.chatbot.popup.chat.message.sent`,
|
@@ -11233,7 +11233,7 @@ function ti({ submitEventExternal: e }) {
|
|
11233
11233
|
}
|
11234
11234
|
]), w(!1), T(!1), h(), O(!0);
|
11235
11235
|
} catch (ee) {
|
11236
|
-
T(!1), h(),
|
11236
|
+
T(!1), h(), b(!0), console.error(ee);
|
11237
11237
|
}
|
11238
11238
|
}, we = () => {
|
11239
11239
|
z(!1), k(!0), X({
|
@@ -11314,7 +11314,7 @@ function ti({ submitEventExternal: e }) {
|
|
11314
11314
|
i.enabled && /* @__PURE__ */ v.jsx(
|
11315
11315
|
el,
|
11316
11316
|
{
|
11317
|
-
showMessage: !
|
11317
|
+
showMessage: !x,
|
11318
11318
|
style: mt,
|
11319
11319
|
onClose: ze,
|
11320
11320
|
onClick: Ue,
|
@@ -11358,7 +11358,7 @@ function ti({ submitEventExternal: e }) {
|
|
11358
11358
|
}
|
11359
11359
|
),
|
11360
11360
|
/* @__PURE__ */ v.jsx(Us, {}),
|
11361
|
-
|
11361
|
+
x && !M && /* @__PURE__ */ v.jsx(Ar, { isNormalSize: L, isMounted: W, children: /* @__PURE__ */ v.jsx(
|
11362
11362
|
"div",
|
11363
11363
|
{
|
11364
11364
|
ref: F,
|