@2uinc/frontend-component-xpert-chatbot 1.36.0-alpha.22 → 1.36.0-alpha.24
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 +482 -494
- package/package.json +1 -1
package/dist/lib/index.min.js
CHANGED
@@ -1,10 +1,10 @@
|
|
1
|
-
import yt, { createContext as Kr, useState as ce, useCallback as st, useEffect as
|
2
|
-
import
|
1
|
+
import yt, { createContext as Kr, useState as ce, useCallback as st, useEffect as Re, useMemo as cn, useRef as tt, useContext as se, forwardRef as Rs, createElement as Za, useLayoutEffect as O0, memo as I0, Suspense as N0, Fragment as k0, StrictMode as L0 } from "react";
|
2
|
+
import R0, { render as w0 } from "react-dom";
|
3
3
|
var Sr = typeof globalThis < "u" ? globalThis : typeof window < "u" ? window : typeof global < "u" ? global : typeof self < "u" ? self : {};
|
4
4
|
function Mt(e) {
|
5
5
|
return e && e.__esModule && Object.prototype.hasOwnProperty.call(e, "default") ? e.default : e;
|
6
6
|
}
|
7
|
-
function
|
7
|
+
function ws(e) {
|
8
8
|
if (Object.prototype.hasOwnProperty.call(e, "__esModule")) return e;
|
9
9
|
var t = e.default;
|
10
10
|
if (typeof t == "function") {
|
@@ -243,8 +243,8 @@ Jn.exports;
|
|
243
243
|
var Ou;
|
244
244
|
function j0() {
|
245
245
|
return Ou || (Ou = 1, function(e, t) {
|
246
|
-
var n = 200, r = "__lodash_hash_undefined__", a = 800, i = 16, u = 9007199254740991, s = "[object Arguments]", l = "[object Array]", c = "[object AsyncFunction]", d = "[object Boolean]", f = "[object Date]", p = "[object Error]", h = "[object Function]", g = "[object GeneratorFunction]", m = "[object Map]", y = "[object Number]", E = "[object Null]", P = "[object Object]", M = "[object Proxy]", W = "[object RegExp]",
|
247
|
-
x[Y] = x[$] = x[L] = x[I] = x[
|
246
|
+
var n = 200, r = "__lodash_hash_undefined__", a = 800, i = 16, u = 9007199254740991, s = "[object Arguments]", l = "[object Array]", c = "[object AsyncFunction]", d = "[object Boolean]", f = "[object Date]", p = "[object Error]", h = "[object Function]", g = "[object GeneratorFunction]", m = "[object Map]", y = "[object Number]", E = "[object Null]", P = "[object Object]", M = "[object Proxy]", W = "[object RegExp]", w = "[object Set]", _ = "[object String]", N = "[object Undefined]", V = "[object WeakMap]", H = "[object ArrayBuffer]", te = "[object DataView]", Y = "[object Float32Array]", $ = "[object Float64Array]", L = "[object Int8Array]", I = "[object Int16Array]", R = "[object Int32Array]", B = "[object Uint8Array]", G = "[object Uint8ClampedArray]", j = "[object Uint16Array]", q = "[object Uint32Array]", b = /[\\^$.*+?()[\]{}|]/g, ne = /^\[object .+?Constructor\]$/, le = /^(?:0|[1-9]\d*)$/, x = {};
|
247
|
+
x[Y] = x[$] = x[L] = x[I] = x[R] = x[B] = x[G] = x[j] = x[q] = !0, x[s] = x[l] = x[H] = x[d] = x[te] = x[f] = x[p] = x[h] = x[m] = x[y] = x[P] = x[W] = x[w] = x[_] = x[V] = !1;
|
248
248
|
var oe = typeof Sr == "object" && Sr && Sr.Object === Object && Sr, ye = typeof self == "object" && self && self.Object === Object && self, me = oe || ye || Function("return this")(), Ae = t && !t.nodeType && t, xe = Ae && !0 && e && !e.nodeType && e, je = xe && xe.exports === Ae, ve = je && oe.process, Ze = function() {
|
249
249
|
try {
|
250
250
|
var A = xe && xe.require && xe.require("util").types;
|
@@ -290,7 +290,7 @@ function j0() {
|
|
290
290
|
"^" + Ht.call(ie).replace(b, "\\$&").replace(/hasOwnProperty|(function).*?(?=\\\()| for .+?(?=\\\])/g, "$1.*?") + "$"
|
291
291
|
), X = je ? me.Buffer : void 0, re = me.Symbol, ue = me.Uint8Array;
|
292
292
|
X && X.allocUnsafe;
|
293
|
-
var pe = Tn(Object.getPrototypeOf, Object),
|
293
|
+
var pe = Tn(Object.getPrototypeOf, Object), we = Object.create, Xe = Nt.propertyIsEnumerable, Ne = en.splice, Je = re ? re.toStringTag : void 0, it = function() {
|
294
294
|
try {
|
295
295
|
var A = ca(Object, "defineProperty");
|
296
296
|
return A({}, "", {}), A;
|
@@ -302,8 +302,8 @@ function j0() {
|
|
302
302
|
return function(k) {
|
303
303
|
if (!rn(k))
|
304
304
|
return {};
|
305
|
-
if (
|
306
|
-
return
|
305
|
+
if (we)
|
306
|
+
return we(k);
|
307
307
|
A.prototype = k;
|
308
308
|
var U = new A();
|
309
309
|
return A.prototype = void 0, U;
|
@@ -335,11 +335,11 @@ function j0() {
|
|
335
335
|
var k = this.__data__;
|
336
336
|
return tn ? k[A] !== void 0 : ie.call(k, A);
|
337
337
|
}
|
338
|
-
function
|
338
|
+
function Rd(A, k) {
|
339
339
|
var U = this.__data__;
|
340
340
|
return this.size += this.has(A) ? 0 : 1, U[A] = tn && k === void 0 ? r : k, this;
|
341
341
|
}
|
342
|
-
nn.prototype.clear = Id, nn.prototype.delete = Nd, nn.prototype.get = kd, nn.prototype.has = Ld, nn.prototype.set =
|
342
|
+
nn.prototype.clear = Id, nn.prototype.delete = Nd, nn.prototype.get = kd, nn.prototype.has = Ld, nn.prototype.set = Rd;
|
343
343
|
function Ut(A) {
|
344
344
|
var k = -1, U = A == null ? 0 : A.length;
|
345
345
|
for (this.clear(); ++k < U; ) {
|
@@ -347,7 +347,7 @@ function j0() {
|
|
347
347
|
this.set(ae[0], ae[1]);
|
348
348
|
}
|
349
349
|
}
|
350
|
-
function
|
350
|
+
function wd() {
|
351
351
|
this.__data__ = [], this.size = 0;
|
352
352
|
}
|
353
353
|
function Dd(A) {
|
@@ -355,7 +355,7 @@ function j0() {
|
|
355
355
|
if (U < 0)
|
356
356
|
return !1;
|
357
357
|
var ae = k.length - 1;
|
358
|
-
return U == ae ? k.pop() :
|
358
|
+
return U == ae ? k.pop() : Ne.call(k, U, 1), --this.size, !0;
|
359
359
|
}
|
360
360
|
function Pd(A) {
|
361
361
|
var k = this.__data__, U = yr(k, A);
|
@@ -368,7 +368,7 @@ function j0() {
|
|
368
368
|
var U = this.__data__, ae = yr(U, A);
|
369
369
|
return ae < 0 ? (++this.size, U.push([A, k])) : U[ae][1] = k, this;
|
370
370
|
}
|
371
|
-
Ut.prototype.clear =
|
371
|
+
Ut.prototype.clear = wd, Ut.prototype.delete = Dd, Ut.prototype.get = Pd, Ut.prototype.has = Md, Ut.prototype.set = Fd;
|
372
372
|
function _n(A) {
|
373
373
|
var k = -1, U = A == null ? 0 : A.length;
|
374
374
|
for (this.clear(); ++k < U; ) {
|
@@ -427,12 +427,12 @@ function j0() {
|
|
427
427
|
}
|
428
428
|
Cn.prototype.clear = zd, Cn.prototype.delete = Yd, Cn.prototype.get = $d, Cn.prototype.has = Vd, Cn.prototype.set = Wd;
|
429
429
|
function Gd(A, k) {
|
430
|
-
var U = ha(A), ae = !U && fa(A), Te = !U && !ae && mu(A),
|
430
|
+
var U = ha(A), ae = !U && fa(A), Te = !U && !ae && mu(A), ke = !U && !ae && !Te && bu(A), Be = U || ae || Te || ke, _e = Be ? Un(A.length, String) : [], He = _e.length;
|
431
431
|
for (var St in A)
|
432
432
|
Be && // Safari 9 has enumerable `arguments.length` in strict mode.
|
433
433
|
(St == "length" || // Node.js 0.10 has enumerable non-index properties on buffers.
|
434
434
|
Te && (St == "offset" || St == "parent") || // PhantomJS 2 has enumerable non-index properties on typed arrays.
|
435
|
-
|
435
|
+
ke && (St == "buffer" || St == "byteLength" || St == "byteOffset") || // Skip index properties.
|
436
436
|
hu(St, He)) || _e.push(St);
|
437
437
|
return _e;
|
438
438
|
}
|
@@ -482,27 +482,27 @@ function j0() {
|
|
482
482
|
return U;
|
483
483
|
}
|
484
484
|
function fu(A, k, U, ae, Te) {
|
485
|
-
A !== k && Kd(k, function(
|
486
|
-
if (Te || (Te = new Cn()), rn(
|
485
|
+
A !== k && Kd(k, function(ke, Be) {
|
486
|
+
if (Te || (Te = new Cn()), rn(ke))
|
487
487
|
e0(A, k, Be, U, fu, ae, Te);
|
488
488
|
else {
|
489
|
-
var _e = ae ? ae(da(A, Be),
|
490
|
-
_e === void 0 && (_e =
|
489
|
+
var _e = ae ? ae(da(A, Be), ke, Be + "", A, k, Te) : void 0;
|
490
|
+
_e === void 0 && (_e = ke), sa(A, Be, _e);
|
491
491
|
}
|
492
492
|
}, Eu);
|
493
493
|
}
|
494
|
-
function e0(A, k, U, ae, Te,
|
494
|
+
function e0(A, k, U, ae, Te, ke, Be) {
|
495
495
|
var _e = da(A, U), He = da(k, U), St = Be.get(He);
|
496
496
|
if (St) {
|
497
497
|
sa(A, U, St);
|
498
498
|
return;
|
499
499
|
}
|
500
|
-
var ht =
|
500
|
+
var ht = ke ? ke(_e, He, U + "", A, k, Be) : void 0, zn = ht === void 0;
|
501
501
|
if (zn) {
|
502
502
|
var ga = ha(He), ba = !ga && mu(He), yu = !ga && !ba && bu(He);
|
503
503
|
ht = He, ga || ba || yu ? ha(_e) ? ht = _e : _0(_e) ? ht = u0(_e) : ba ? (zn = !1, ht = r0(He)) : yu ? (zn = !1, ht = i0(He)) : ht = [] : C0(He) || fa(He) ? (ht = _e, fa(_e) ? ht = A0(_e) : (!rn(_e) || ma(_e)) && (ht = d0(He))) : zn = !1;
|
504
504
|
}
|
505
|
-
zn && (Be.set(He, ht), Te(ht, He, ae,
|
505
|
+
zn && (Be.set(He, ht), Te(ht, He, ae, ke, Be), Be.delete(He)), sa(A, U, ht);
|
506
506
|
}
|
507
507
|
function t0(A, k) {
|
508
508
|
return E0(b0(A, k, Tu), A + "");
|
@@ -535,27 +535,27 @@ function j0() {
|
|
535
535
|
function o0(A, k, U, ae) {
|
536
536
|
var Te = !U;
|
537
537
|
U || (U = {});
|
538
|
-
for (var
|
539
|
-
var _e = k[
|
538
|
+
for (var ke = -1, Be = k.length; ++ke < Be; ) {
|
539
|
+
var _e = k[ke], He = void 0;
|
540
540
|
He === void 0 && (He = A[_e]), Te ? la(U, _e, He) : Xd(U, _e, He);
|
541
541
|
}
|
542
542
|
return U;
|
543
543
|
}
|
544
544
|
function s0(A) {
|
545
545
|
return t0(function(k, U) {
|
546
|
-
var ae = -1, Te = U.length,
|
547
|
-
for (
|
546
|
+
var ae = -1, Te = U.length, ke = Te > 1 ? U[Te - 1] : void 0, Be = Te > 2 ? U[2] : void 0;
|
547
|
+
for (ke = A.length > 3 && typeof ke == "function" ? (Te--, ke) : void 0, Be && f0(U[0], U[1], Be) && (ke = Te < 3 ? void 0 : ke, Te = 1), k = Object(k); ++ae < Te; ) {
|
548
548
|
var _e = U[ae];
|
549
|
-
_e && A(k, _e, ae,
|
549
|
+
_e && A(k, _e, ae, ke);
|
550
550
|
}
|
551
551
|
return k;
|
552
552
|
});
|
553
553
|
}
|
554
554
|
function l0(A) {
|
555
555
|
return function(k, U, ae) {
|
556
|
-
for (var Te = -1,
|
556
|
+
for (var Te = -1, ke = Object(k), Be = ae(k), _e = Be.length; _e--; ) {
|
557
557
|
var He = Be[++Te];
|
558
|
-
if (U(
|
558
|
+
if (U(ke[He], He, ke) === !1)
|
559
559
|
break;
|
560
560
|
}
|
561
561
|
return k;
|
@@ -615,7 +615,7 @@ function j0() {
|
|
615
615
|
}
|
616
616
|
function b0(A, k, U) {
|
617
617
|
return k = rt(k === void 0 ? A.length - 1 : k, 0), function() {
|
618
|
-
for (var ae = arguments, Te = -1,
|
618
|
+
for (var ae = arguments, Te = -1, ke = rt(ae.length - k, 0), Be = Array(ke); ++Te < ke; )
|
619
619
|
Be[Te] = ae[k + Te];
|
620
620
|
Te = -1;
|
621
621
|
for (var _e = Array(k + 1); ++Te < k; )
|
@@ -1471,7 +1471,7 @@ const Ps = /* @__PURE__ */ Mt(q0), z0 = {
|
|
1471
1471
|
u(!0);
|
1472
1472
|
}
|
1473
1473
|
}, [t, r]);
|
1474
|
-
|
1474
|
+
Re(() => {
|
1475
1475
|
c();
|
1476
1476
|
}, [c]);
|
1477
1477
|
const d = cn(
|
@@ -1645,7 +1645,7 @@ const Iu = 991, Z0 = () => {
|
|
1645
1645
|
const [e, t] = ce(
|
1646
1646
|
window.innerWidth < Iu
|
1647
1647
|
);
|
1648
|
-
return
|
1648
|
+
return Re(() => {
|
1649
1649
|
const n = () => {
|
1650
1650
|
t(window.innerWidth < Iu);
|
1651
1651
|
};
|
@@ -1771,7 +1771,7 @@ eyes follow your mouse when you hover near it.`, qs = ({
|
|
1771
1771
|
), i = tt(null), u = tt(!1), s = a ? (h = n == null ? void 0 : n.animatedGraduate) == null ? void 0 : h.delayMs : ((g = n == null ? void 0 : n.animatedGraduate) == null ? void 0 : g.delayMs) * 2, [l, c] = ce(!1), d = window.matchMedia(
|
1772
1772
|
`(max-width: ${tf}px)`
|
1773
1773
|
).matches;
|
1774
|
-
|
1774
|
+
Re(() => {
|
1775
1775
|
const P = setTimeout(
|
1776
1776
|
() => {
|
1777
1777
|
c(!0);
|
@@ -1781,16 +1781,16 @@ eyes follow your mouse when you hover near it.`, qs = ({
|
|
1781
1781
|
return () => {
|
1782
1782
|
clearTimeout(P);
|
1783
1783
|
};
|
1784
|
-
}, [s]),
|
1784
|
+
}, [s]), Re(() => {
|
1785
1785
|
const E = (P) => {
|
1786
1786
|
const M = window.devicePixelRatio > 1.5;
|
1787
1787
|
if (!(u != null && u.current) || d || M)
|
1788
1788
|
return;
|
1789
1789
|
i.current.querySelectorAll(
|
1790
1790
|
".xpert_chatbot__animated_graduate__pupil"
|
1791
|
-
).forEach((
|
1792
|
-
const _ =
|
1793
|
-
|
1791
|
+
).forEach((w) => {
|
1792
|
+
const _ = w.getBoundingClientRect(), N = (P.pageX - window.scrollX - _.left) / 30 / 16 + "rem", V = (P.pageY - window.scrollY - _.top) / 30 / 16 + "rem";
|
1793
|
+
w.style.transform = "translate3d(" + N + "," + V + ", 0rem)";
|
1794
1794
|
});
|
1795
1795
|
};
|
1796
1796
|
return window.addEventListener("mousemove", E), () => {
|
@@ -2192,7 +2192,7 @@ var $s = ["input:not([inert])", "select:not([inert])", "textarea:not([inert])",
|
|
2192
2192
|
if (n = n || {}, !t)
|
2193
2193
|
throw new Error("No node provided");
|
2194
2194
|
return fn.call(t, Ur) === !1 ? !1 : ei(n, t);
|
2195
|
-
}, yf = /* @__PURE__ */ $s.concat("iframe").join(","),
|
2195
|
+
}, yf = /* @__PURE__ */ $s.concat("iframe").join(","), wr = function(t, n) {
|
2196
2196
|
if (n = n || {}, !t)
|
2197
2197
|
throw new Error("No node provided");
|
2198
2198
|
return fn.call(t, yf) === !1 ? !1 : zr(n, t);
|
@@ -2201,7 +2201,7 @@ const _f = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineProperty({
|
|
2201
2201
|
__proto__: null,
|
2202
2202
|
focusable: Zs,
|
2203
2203
|
getTabIndex: Kt,
|
2204
|
-
isFocusable:
|
2204
|
+
isFocusable: wr,
|
2205
2205
|
isTabbable: sn,
|
2206
2206
|
tabbable: Qs
|
2207
2207
|
}, Symbol.toStringTag, { value: "Module" }));
|
@@ -2242,7 +2242,7 @@ function Lu(e, t) {
|
|
2242
2242
|
}
|
2243
2243
|
return n;
|
2244
2244
|
}
|
2245
|
-
function
|
2245
|
+
function Ru(e) {
|
2246
2246
|
for (var t = 1; t < arguments.length; t++) {
|
2247
2247
|
var n = arguments[t] != null ? arguments[t] : {};
|
2248
2248
|
t % 2 ? Lu(Object(n), !0).forEach(function(r) {
|
@@ -2277,7 +2277,7 @@ function Nf(e, t) {
|
|
2277
2277
|
return n === "Object" && e.constructor && (n = e.constructor.name), n === "Map" || n === "Set" ? Array.from(e) : n === "Arguments" || /^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n) ? ti(e, t) : void 0;
|
2278
2278
|
}
|
2279
2279
|
}
|
2280
|
-
var
|
2280
|
+
var wu = {
|
2281
2281
|
activateTrap: function(t, n) {
|
2282
2282
|
if (t.length > 0) {
|
2283
2283
|
var r = t[t.length - 1];
|
@@ -2296,9 +2296,9 @@ var Ru = {
|
|
2296
2296
|
return (t == null ? void 0 : t.key) === "Escape" || (t == null ? void 0 : t.key) === "Esc" || (t == null ? void 0 : t.keyCode) === 27;
|
2297
2297
|
}, tr = function(t) {
|
2298
2298
|
return (t == null ? void 0 : t.key) === "Tab" || (t == null ? void 0 : t.keyCode) === 9;
|
2299
|
-
}, wf = function(t) {
|
2300
|
-
return tr(t) && !t.shiftKey;
|
2301
2299
|
}, Rf = function(t) {
|
2300
|
+
return tr(t) && !t.shiftKey;
|
2301
|
+
}, wf = function(t) {
|
2302
2302
|
return tr(t) && t.shiftKey;
|
2303
2303
|
}, Du = function(t) {
|
2304
2304
|
return setTimeout(t, 0);
|
@@ -2309,12 +2309,12 @@ var Ru = {
|
|
2309
2309
|
}, vr = function(t) {
|
2310
2310
|
return t.target.shadowRoot && typeof t.composedPath == "function" ? t.composedPath()[0] : t.target;
|
2311
2311
|
}, Df = [], Pf = function(t, n) {
|
2312
|
-
var r = (n == null ? void 0 : n.document) || document, a = (n == null ? void 0 : n.trapStack) || Df, i =
|
2312
|
+
var r = (n == null ? void 0 : n.document) || document, a = (n == null ? void 0 : n.trapStack) || Df, i = Ru({
|
2313
2313
|
returnFocusOnDeactivate: !0,
|
2314
2314
|
escapeDeactivates: !0,
|
2315
2315
|
delayInitialFocus: !0,
|
2316
|
-
isKeyForward:
|
2317
|
-
isKeyBackward:
|
2316
|
+
isKeyForward: Rf,
|
2317
|
+
isKeyBackward: wf
|
2318
2318
|
}, n), u = {
|
2319
2319
|
// containers given to createFocusTrap()
|
2320
2320
|
// @type {Array<HTMLElement>}
|
@@ -2352,22 +2352,22 @@ var Ru = {
|
|
2352
2352
|
delayInitialFocusTimer: void 0,
|
2353
2353
|
// the most recent KeyboardEvent for the configured nav key (typically [SHIFT+]TAB), if any
|
2354
2354
|
recentNavEvent: void 0
|
2355
|
-
}, s, l = function(L, I,
|
2356
|
-
return L && L[I] !== void 0 ? L[I] : i[
|
2355
|
+
}, s, l = function(L, I, R) {
|
2356
|
+
return L && L[I] !== void 0 ? L[I] : i[R || I];
|
2357
2357
|
}, c = function(L, I) {
|
2358
|
-
var
|
2358
|
+
var R = typeof (I == null ? void 0 : I.composedPath) == "function" ? I.composedPath() : void 0;
|
2359
2359
|
return u.containerGroups.findIndex(function(B) {
|
2360
2360
|
var G = B.container, j = B.tabbableNodes;
|
2361
2361
|
return G.contains(L) || // fall back to explicit tabbable search which will take into consideration any
|
2362
2362
|
// web components if the `tabbableOptions.getShadowRoot` option was used for
|
2363
2363
|
// the trap, enabling shadow DOM support in tabbable (`Node.contains()` doesn't
|
2364
2364
|
// look inside web components even if open)
|
2365
|
-
(
|
2365
|
+
(R == null ? void 0 : R.includes(G)) || j.find(function(q) {
|
2366
2366
|
return q === L;
|
2367
2367
|
});
|
2368
2368
|
});
|
2369
2369
|
}, d = function(L) {
|
2370
|
-
var I = arguments.length > 1 && arguments[1] !== void 0 ? arguments[1] : {},
|
2370
|
+
var I = arguments.length > 1 && arguments[1] !== void 0 ? arguments[1] : {}, R = I.hasFallback, B = R === void 0 ? !1 : R, G = I.params, j = G === void 0 ? [] : G, q = i[L];
|
2371
2371
|
if (typeof q == "function" && (q = q.apply(void 0, vf(j))), q === !0 && (q = void 0), !q) {
|
2372
2372
|
if (q === void 0 || q === !1)
|
2373
2373
|
return q;
|
@@ -2390,12 +2390,12 @@ var Ru = {
|
|
2390
2390
|
});
|
2391
2391
|
if (L === !1)
|
2392
2392
|
return !1;
|
2393
|
-
if (L === void 0 || L && !
|
2393
|
+
if (L === void 0 || L && !wr(L, i.tabbableOptions))
|
2394
2394
|
if (c(r.activeElement) >= 0)
|
2395
2395
|
L = r.activeElement;
|
2396
2396
|
else {
|
2397
|
-
var I = u.tabbableGroups[0],
|
2398
|
-
L =
|
2397
|
+
var I = u.tabbableGroups[0], R = I && I.firstTabbableNode;
|
2398
|
+
L = R || d("fallbackFocus");
|
2399
2399
|
}
|
2400
2400
|
else L === null && (L = d("fallbackFocus"));
|
2401
2401
|
if (!L)
|
@@ -2403,9 +2403,9 @@ var Ru = {
|
|
2403
2403
|
return L;
|
2404
2404
|
}, p = function() {
|
2405
2405
|
if (u.containerGroups = u.containers.map(function(L) {
|
2406
|
-
var I = Qs(L, i.tabbableOptions),
|
2406
|
+
var I = Qs(L, i.tabbableOptions), R = Zs(L, i.tabbableOptions), B = I.length > 0 ? I[0] : void 0, G = I.length > 0 ? I[I.length - 1] : void 0, j = R.find(function(ne) {
|
2407
2407
|
return sn(ne);
|
2408
|
-
}), q =
|
2408
|
+
}), q = R.slice().reverse().find(function(ne) {
|
2409
2409
|
return sn(ne);
|
2410
2410
|
}), b = !!I.find(function(ne) {
|
2411
2411
|
return Kt(ne) > 0;
|
@@ -2413,7 +2413,7 @@ var Ru = {
|
|
2413
2413
|
return {
|
2414
2414
|
container: L,
|
2415
2415
|
tabbableNodes: I,
|
2416
|
-
focusableNodes:
|
2416
|
+
focusableNodes: R,
|
2417
2417
|
/** True if at least one node with positive `tabindex` was found in this container. */
|
2418
2418
|
posTabIndexesFound: b,
|
2419
2419
|
/** First tabbable node in container, __tabindex__ order; `undefined` if none. */
|
@@ -2441,9 +2441,9 @@ var Ru = {
|
|
2441
2441
|
*/
|
2442
2442
|
nextTabbableNode: function(le) {
|
2443
2443
|
var x = arguments.length > 1 && arguments[1] !== void 0 ? arguments[1] : !0, oe = I.indexOf(le);
|
2444
|
-
return oe < 0 ? x ?
|
2444
|
+
return oe < 0 ? x ? R.slice(R.indexOf(le) + 1).find(function(ye) {
|
2445
2445
|
return sn(ye);
|
2446
|
-
}) :
|
2446
|
+
}) : R.slice(0, R.indexOf(le)).reverse().find(function(ye) {
|
2447
2447
|
return sn(ye);
|
2448
2448
|
}) : I[oe + (x ? 1 : -1)];
|
2449
2449
|
}
|
@@ -2476,11 +2476,11 @@ var Ru = {
|
|
2476
2476
|
});
|
2477
2477
|
return I || (I === !1 ? !1 : L);
|
2478
2478
|
}, y = function(L) {
|
2479
|
-
var I = L.target,
|
2480
|
-
I = I || vr(
|
2479
|
+
var I = L.target, R = L.event, B = L.isBackward, G = B === void 0 ? !1 : B;
|
2480
|
+
I = I || vr(R), p();
|
2481
2481
|
var j = null;
|
2482
2482
|
if (u.tabbableGroups.length > 0) {
|
2483
|
-
var q = c(I,
|
2483
|
+
var q = c(I, R), b = q >= 0 ? u.containerGroups[q] : void 0;
|
2484
2484
|
if (q < 0)
|
2485
2485
|
G ? j = u.tabbableGroups[u.tabbableGroups.length - 1].lastTabbableNode : j = u.tabbableGroups[0].firstTabbableNode;
|
2486
2486
|
else if (G) {
|
@@ -2488,19 +2488,19 @@ var Ru = {
|
|
2488
2488
|
var xe = Ae.firstTabbableNode;
|
2489
2489
|
return I === xe;
|
2490
2490
|
});
|
2491
|
-
if (ne < 0 && (b.container === I ||
|
2491
|
+
if (ne < 0 && (b.container === I || wr(I, i.tabbableOptions) && !sn(I, i.tabbableOptions) && !b.nextTabbableNode(I, !1)) && (ne = q), ne >= 0) {
|
2492
2492
|
var le = ne === 0 ? u.tabbableGroups.length - 1 : ne - 1, x = u.tabbableGroups[le];
|
2493
2493
|
j = Kt(I) >= 0 ? x.lastTabbableNode : x.lastDomTabbableNode;
|
2494
|
-
} else tr(
|
2494
|
+
} else tr(R) || (j = b.nextTabbableNode(I, !1));
|
2495
2495
|
} else {
|
2496
2496
|
var oe = u.tabbableGroups.findIndex(function(Ae) {
|
2497
2497
|
var xe = Ae.lastTabbableNode;
|
2498
2498
|
return I === xe;
|
2499
2499
|
});
|
2500
|
-
if (oe < 0 && (b.container === I ||
|
2500
|
+
if (oe < 0 && (b.container === I || wr(I, i.tabbableOptions) && !sn(I, i.tabbableOptions) && !b.nextTabbableNode(I)) && (oe = q), oe >= 0) {
|
2501
2501
|
var ye = oe === u.tabbableGroups.length - 1 ? 0 : oe + 1, me = u.tabbableGroups[ye];
|
2502
2502
|
j = Kt(I) >= 0 ? me.firstTabbableNode : me.firstDomTabbableNode;
|
2503
|
-
} else tr(
|
2503
|
+
} else tr(R) || (j = b.nextTabbableNode(I));
|
2504
2504
|
}
|
2505
2505
|
} else
|
2506
2506
|
j = d("fallbackFocus");
|
@@ -2523,9 +2523,9 @@ var Ru = {
|
|
2523
2523
|
Yn(i.allowOutsideClick, L) || L.preventDefault();
|
2524
2524
|
}
|
2525
2525
|
}, P = function(L) {
|
2526
|
-
var I = vr(L),
|
2527
|
-
if (
|
2528
|
-
|
2526
|
+
var I = vr(L), R = c(I, L) >= 0;
|
2527
|
+
if (R || I instanceof Document)
|
2528
|
+
R && (u.mostRecentlyFocusedNode = I);
|
2529
2529
|
else {
|
2530
2530
|
L.stopImmediatePropagation();
|
2531
2531
|
var B, G = !0;
|
@@ -2557,21 +2557,21 @@ var Ru = {
|
|
2557
2557
|
}, M = function(L) {
|
2558
2558
|
var I = arguments.length > 1 && arguments[1] !== void 0 ? arguments[1] : !1;
|
2559
2559
|
u.recentNavEvent = L;
|
2560
|
-
var
|
2560
|
+
var R = y({
|
2561
2561
|
event: L,
|
2562
2562
|
isBackward: I
|
2563
2563
|
});
|
2564
|
-
|
2564
|
+
R && (tr(L) && L.preventDefault(), g(R));
|
2565
2565
|
}, W = function(L) {
|
2566
2566
|
(i.isKeyForward(L) || i.isKeyBackward(L)) && M(L, i.isKeyBackward(L));
|
2567
|
-
},
|
2567
|
+
}, w = function(L) {
|
2568
2568
|
Lf(L) && Yn(i.escapeDeactivates, L) !== !1 && (L.preventDefault(), s.deactivate());
|
2569
2569
|
}, _ = function(L) {
|
2570
2570
|
var I = vr(L);
|
2571
2571
|
c(I, L) >= 0 || Yn(i.clickOutsideDeactivates, L) || Yn(i.allowOutsideClick, L) || (L.preventDefault(), L.stopImmediatePropagation());
|
2572
2572
|
}, N = function() {
|
2573
2573
|
if (u.active)
|
2574
|
-
return
|
2574
|
+
return wu.activateTrap(a, s), u.delayInitialFocusTimer = i.delayInitialFocus ? Du(function() {
|
2575
2575
|
g(f());
|
2576
2576
|
}) : g(f()), r.addEventListener("focusin", P, !0), r.addEventListener("mousedown", E, {
|
2577
2577
|
capture: !0,
|
@@ -2585,13 +2585,13 @@ var Ru = {
|
|
2585
2585
|
}), r.addEventListener("keydown", W, {
|
2586
2586
|
capture: !0,
|
2587
2587
|
passive: !1
|
2588
|
-
}), r.addEventListener("keydown",
|
2588
|
+
}), r.addEventListener("keydown", w), s;
|
2589
2589
|
}, V = function() {
|
2590
2590
|
if (u.active)
|
2591
|
-
return r.removeEventListener("focusin", P, !0), r.removeEventListener("mousedown", E, !0), r.removeEventListener("touchstart", E, !0), r.removeEventListener("click", _, !0), r.removeEventListener("keydown", W, !0), r.removeEventListener("keydown",
|
2591
|
+
return r.removeEventListener("focusin", P, !0), r.removeEventListener("mousedown", E, !0), r.removeEventListener("touchstart", E, !0), r.removeEventListener("click", _, !0), r.removeEventListener("keydown", W, !0), r.removeEventListener("keydown", w), s;
|
2592
2592
|
}, H = function(L) {
|
2593
|
-
var I = L.some(function(
|
2594
|
-
var B = Array.from(
|
2593
|
+
var I = L.some(function(R) {
|
2594
|
+
var B = Array.from(R.removedNodes);
|
2595
2595
|
return B.some(function(G) {
|
2596
2596
|
return G === u.mostRecentlyFocusedNode;
|
2597
2597
|
});
|
@@ -2615,24 +2615,24 @@ var Ru = {
|
|
2615
2615
|
activate: function(L) {
|
2616
2616
|
if (u.active)
|
2617
2617
|
return this;
|
2618
|
-
var I = l(L, "onActivate"),
|
2618
|
+
var I = l(L, "onActivate"), R = l(L, "onPostActivate"), B = l(L, "checkCanFocusTrap");
|
2619
2619
|
B || p(), u.active = !0, u.paused = !1, u.nodeFocusedBeforeActivation = h(r), I == null || I();
|
2620
2620
|
var G = function() {
|
2621
|
-
B && p(), N(), Y(),
|
2621
|
+
B && p(), N(), Y(), R == null || R();
|
2622
2622
|
};
|
2623
2623
|
return B ? (B(u.containers.concat()).then(G, G), this) : (G(), this);
|
2624
2624
|
},
|
2625
2625
|
deactivate: function(L) {
|
2626
2626
|
if (!u.active)
|
2627
2627
|
return this;
|
2628
|
-
var I =
|
2628
|
+
var I = Ru({
|
2629
2629
|
onDeactivate: i.onDeactivate,
|
2630
2630
|
onPostDeactivate: i.onPostDeactivate,
|
2631
2631
|
checkCanReturnFocus: i.checkCanReturnFocus
|
2632
2632
|
}, L);
|
2633
|
-
clearTimeout(u.delayInitialFocusTimer), u.delayInitialFocusTimer = void 0, V(), u.active = !1, u.paused = !1, Y(),
|
2634
|
-
var
|
2635
|
-
|
2633
|
+
clearTimeout(u.delayInitialFocusTimer), u.delayInitialFocusTimer = void 0, V(), u.active = !1, u.paused = !1, Y(), wu.deactivateTrap(a, s);
|
2634
|
+
var R = l(I, "onDeactivate"), B = l(I, "onPostDeactivate"), G = l(I, "checkCanReturnFocus"), j = l(I, "returnFocus", "returnFocusOnDeactivate");
|
2635
|
+
R == null || R();
|
2636
2636
|
var q = function() {
|
2637
2637
|
Du(function() {
|
2638
2638
|
j && g(m(u.nodeFocusedBeforeActivation)), B == null || B();
|
@@ -2648,8 +2648,8 @@ var Ru = {
|
|
2648
2648
|
},
|
2649
2649
|
updateContainerElements: function(L) {
|
2650
2650
|
var I = [].concat(L).filter(Boolean);
|
2651
|
-
return u.containers = I.map(function(
|
2652
|
-
return typeof
|
2651
|
+
return u.containers = I.map(function(R) {
|
2652
|
+
return typeof R == "string" ? r.querySelector(R) : R;
|
2653
2653
|
}), u.active && p(), Y(), this;
|
2654
2654
|
}
|
2655
2655
|
}, Object.defineProperties(s, {
|
@@ -2663,8 +2663,8 @@ var Ru = {
|
|
2663
2663
|
if (u.paused === L)
|
2664
2664
|
return this;
|
2665
2665
|
if (u.paused = L, L) {
|
2666
|
-
var
|
2667
|
-
|
2666
|
+
var R = l(I, "onPause"), B = l(I, "onPostPause");
|
2667
|
+
R == null || R(), V(), Y(), B == null || B();
|
2668
2668
|
} else {
|
2669
2669
|
var G = l(I, "onUnpause"), j = l(I, "onPostUnpause");
|
2670
2670
|
G == null || G(), p(), N(), Y(), j == null || j();
|
@@ -2677,7 +2677,7 @@ var Ru = {
|
|
2677
2677
|
const Mf = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineProperty({
|
2678
2678
|
__proto__: null,
|
2679
2679
|
createFocusTrap: Pf
|
2680
|
-
}, Symbol.toStringTag, { value: "Module" })), Ff = /* @__PURE__ */
|
2680
|
+
}, Symbol.toStringTag, { value: "Module" })), Ff = /* @__PURE__ */ ws(Mf), Bf = /* @__PURE__ */ ws(_f);
|
2681
2681
|
var Sa, Pu;
|
2682
2682
|
function Hf() {
|
2683
2683
|
if (Pu) return Sa;
|
@@ -2761,7 +2761,7 @@ function Hf() {
|
|
2761
2761
|
t(this, N), H = a(this, N, [V]), f(H, "getNodeForOption", function($) {
|
2762
2762
|
var L, I = (L = this.internalOptions[$]) !== null && L !== void 0 ? L : this.originalOptions[$];
|
2763
2763
|
if (typeof I == "function") {
|
2764
|
-
for (var
|
2764
|
+
for (var R = arguments.length, B = new Array(R > 1 ? R - 1 : 0), G = 1; G < R; G++)
|
2765
2765
|
B[G - 1] = arguments[G];
|
2766
2766
|
I = I.apply(void 0, B);
|
2767
2767
|
}
|
@@ -2881,9 +2881,9 @@ function Hf() {
|
|
2881
2881
|
H.outsideClick.allowDeactivation && // is the outside node NOT focusable (implying that it did NOT receive focus
|
2882
2882
|
// as a result of the click-through) -- in which case do NOT restore focus
|
2883
2883
|
// to `returnFocusNode` because focus should remain on the outside node
|
2884
|
-
!M(H.outsideClick.target, H.internalOptions.tabbableOptions))), I = H.internalOptions.preventScroll,
|
2884
|
+
!M(H.outsideClick.target, H.internalOptions.tabbableOptions))), I = H.internalOptions.preventScroll, R = I === void 0 ? !1 : I;
|
2885
2885
|
L && $.focus({
|
2886
|
-
preventScroll:
|
2886
|
+
preventScroll: R
|
2887
2887
|
}), H.originalOptions.onPostDeactivate && H.originalOptions.onPostDeactivate.call(null), H.outsideClick = null;
|
2888
2888
|
};
|
2889
2889
|
this.originalOptions.checkCanReturnFocus ? this.originalOptions.checkCanReturnFocus.call(null, this.getReturnFocusNode()).then(te, te) : te();
|
@@ -2930,8 +2930,8 @@ function Hf() {
|
|
2930
2930
|
if (te.type && te.type === g.Fragment)
|
2931
2931
|
throw new Error("A focus-trap cannot use a Fragment as its child container. Try replacing it with a <div> element.");
|
2932
2932
|
var Y = function(I) {
|
2933
|
-
var
|
2934
|
-
te && (typeof te.ref == "function" ? te.ref(I) : te.ref && (te.ref.current = I)), H.focusTrapElements =
|
2933
|
+
var R = H.props.containerElements;
|
2934
|
+
te && (typeof te.ref == "function" ? te.ref(I) : te.ref && (te.ref.current = I)), H.focusTrapElements = R || [I];
|
2935
2935
|
}, $ = g.cloneElement(te, {
|
2936
2936
|
ref: Y
|
2937
2937
|
});
|
@@ -2940,7 +2940,7 @@ function Hf() {
|
|
2940
2940
|
return null;
|
2941
2941
|
}
|
2942
2942
|
}]);
|
2943
|
-
}(g.Component),
|
2943
|
+
}(g.Component), w = typeof Element > "u" ? Function : Element;
|
2944
2944
|
return W.propTypes = {
|
2945
2945
|
active: m.bool,
|
2946
2946
|
paused: m.bool,
|
@@ -2956,9 +2956,9 @@ function Hf() {
|
|
2956
2956
|
onDeactivate: m.func,
|
2957
2957
|
onPostDeactivate: m.func,
|
2958
2958
|
checkCanReturnFocus: m.func,
|
2959
|
-
initialFocus: m.oneOfType([m.instanceOf(
|
2959
|
+
initialFocus: m.oneOfType([m.instanceOf(w), m.string, m.bool, m.func]),
|
2960
2960
|
fallbackFocus: m.oneOfType([
|
2961
|
-
m.instanceOf(
|
2961
|
+
m.instanceOf(w),
|
2962
2962
|
m.string,
|
2963
2963
|
// NOTE: does not support `false` as value (or return value from function)
|
2964
2964
|
m.func
|
@@ -2966,7 +2966,7 @@ function Hf() {
|
|
2966
2966
|
escapeDeactivates: m.oneOfType([m.bool, m.func]),
|
2967
2967
|
clickOutsideDeactivates: m.oneOfType([m.bool, m.func]),
|
2968
2968
|
returnFocusOnDeactivate: m.bool,
|
2969
|
-
setReturnFocus: m.oneOfType([m.instanceOf(
|
2969
|
+
setReturnFocus: m.oneOfType([m.instanceOf(w), m.string, m.bool, m.func]),
|
2970
2970
|
allowOutsideClick: m.oneOfType([m.bool, m.func]),
|
2971
2971
|
preventScroll: m.bool,
|
2972
2972
|
tabbableOptions: m.shape({
|
@@ -2977,12 +2977,12 @@ function Hf() {
|
|
2977
2977
|
isKeyForward: m.func,
|
2978
2978
|
isKeyBackward: m.func
|
2979
2979
|
}),
|
2980
|
-
containerElements: m.arrayOf(m.instanceOf(
|
2980
|
+
containerElements: m.arrayOf(m.instanceOf(w)),
|
2981
2981
|
// DOM element ONLY
|
2982
2982
|
children: m.oneOfType([
|
2983
2983
|
m.element,
|
2984
2984
|
// React element
|
2985
|
-
m.instanceOf(
|
2985
|
+
m.instanceOf(w)
|
2986
2986
|
// DOM element
|
2987
2987
|
])
|
2988
2988
|
// NOTE: _createFocusTrap is internal, for testing purposes only, so we don't
|
@@ -3053,7 +3053,7 @@ el.propTypes = {
|
|
3053
3053
|
};
|
3054
3054
|
const tl = () => {
|
3055
3055
|
const { disclaimer: e } = se(Ye), t = tt(null);
|
3056
|
-
return
|
3056
|
+
return Re(() => {
|
3057
3057
|
var n;
|
3058
3058
|
(n = t == null ? void 0 : t.current) == null || n.focus();
|
3059
3059
|
}, []), /* @__PURE__ */ S.jsxs(
|
@@ -3756,7 +3756,7 @@ function Ch(e, t, n, r) {
|
|
3756
3756
|
return;
|
3757
3757
|
}
|
3758
3758
|
if (H) {
|
3759
|
-
d = V, p.length || (u.length ?
|
3759
|
+
d = V, p.length || (u.length ? w() : P());
|
3760
3760
|
return;
|
3761
3761
|
}
|
3762
3762
|
if (g(), M(), !e.random) {
|
@@ -3767,7 +3767,7 @@ function Ch(e, t, n, r) {
|
|
3767
3767
|
te(V);
|
3768
3768
|
});
|
3769
3769
|
}
|
3770
|
-
function
|
3770
|
+
function w() {
|
3771
3771
|
if (l !== "pending")
|
3772
3772
|
return;
|
3773
3773
|
g();
|
@@ -3789,9 +3789,9 @@ function Ch(e, t, n, r) {
|
|
3789
3789
|
W(N, V, H);
|
3790
3790
|
}
|
3791
3791
|
};
|
3792
|
-
p.push(N), c++, f = setTimeout(
|
3792
|
+
p.push(N), c++, f = setTimeout(w, e.rotate), n(_, t, N.callback);
|
3793
3793
|
}
|
3794
|
-
return setTimeout(
|
3794
|
+
return setTimeout(w), E;
|
3795
3795
|
}
|
3796
3796
|
function dl(e) {
|
3797
3797
|
const t = {
|
@@ -4003,7 +4003,7 @@ function Lh(e, t) {
|
|
4003
4003
|
}
|
4004
4004
|
});
|
4005
4005
|
}
|
4006
|
-
function
|
4006
|
+
function Rh(e, t = 0) {
|
4007
4007
|
const n = e.replace(/^-?[0-9.]*/, "");
|
4008
4008
|
function r(a) {
|
4009
4009
|
for (; a < 0; )
|
@@ -4029,7 +4029,7 @@ function wh(e, t = 0) {
|
|
4029
4029
|
}
|
4030
4030
|
return t;
|
4031
4031
|
}
|
4032
|
-
function
|
4032
|
+
function wh(e, t) {
|
4033
4033
|
let n = e.indexOf("xlink:") === -1 ? "" : ' xmlns:xlink="http://www.w3.org/1999/xlink"';
|
4034
4034
|
for (const r in t)
|
4035
4035
|
n += " " + r + '="' + t[r] + '"';
|
@@ -4145,7 +4145,7 @@ const qh = (e, t, n) => {
|
|
4145
4145
|
break;
|
4146
4146
|
// Rotation as string
|
4147
4147
|
case "rotate":
|
4148
|
-
typeof E == "string" ? a[y] =
|
4148
|
+
typeof E == "string" ? a[y] = Rh(E) : typeof E == "number" && (a[y] = E);
|
4149
4149
|
break;
|
4150
4150
|
// Remove aria-hidden
|
4151
4151
|
case "ariaHidden":
|
@@ -4168,7 +4168,7 @@ const qh = (e, t, n) => {
|
|
4168
4168
|
__html: Bh(uh(c.body, E ? () => E + "ID" + y++ : "iconifyReact"))
|
4169
4169
|
}, Za("svg", l);
|
4170
4170
|
}
|
4171
|
-
const { body: f, width: p, height: h } = e, g = i === "mask" || (i === "bg" ? !1 : f.indexOf("currentColor") !== -1), m =
|
4171
|
+
const { body: f, width: p, height: h } = e, g = i === "mask" || (i === "bg" ? !1 : f.indexOf("currentColor") !== -1), m = wh(f, {
|
4172
4172
|
...d,
|
4173
4173
|
width: p + "",
|
4174
4174
|
height: h + ""
|
@@ -4268,7 +4268,7 @@ function pl(e) {
|
|
4268
4268
|
});
|
4269
4269
|
} else m && ((h = e.onLoad) === null || h === void 0 || h.call(e, g));
|
4270
4270
|
}
|
4271
|
-
|
4271
|
+
Re(() => (n(!0), l), []), Re(() => {
|
4272
4272
|
t && d();
|
4273
4273
|
}, [e.icon, t]);
|
4274
4274
|
const { name: f, data: p } = u;
|
@@ -4277,11 +4277,11 @@ function pl(e) {
|
|
4277
4277
|
...p
|
4278
4278
|
}, e, f) : e.children ? e.children : e.fallback ? e.fallback : Za("span", {});
|
4279
4279
|
}
|
4280
|
-
const Dt =
|
4280
|
+
const Dt = Rs((e, t) => pl({
|
4281
4281
|
...e,
|
4282
4282
|
_ref: t
|
4283
4283
|
}));
|
4284
|
-
|
4284
|
+
Rs((e, t) => pl({
|
4285
4285
|
inline: !0,
|
4286
4286
|
...e,
|
4287
4287
|
_ref: t
|
@@ -4302,10 +4302,10 @@ function Li({
|
|
4302
4302
|
), m = () => {
|
4303
4303
|
h(""), r.current && (r.current.style.height = "auto");
|
4304
4304
|
}, y = e || d || f;
|
4305
|
-
|
4305
|
+
Re(() => {
|
4306
4306
|
var W;
|
4307
4307
|
i.current && !y && ((W = r.current) == null || W.focus()), i.current = y;
|
4308
|
-
}, [y, r]),
|
4308
|
+
}, [y, r]), Re(() => {
|
4309
4309
|
var W;
|
4310
4310
|
(l || c) && ((W = r.current) == null || W.focus());
|
4311
4311
|
}, [c, l, r]);
|
@@ -4377,7 +4377,7 @@ Li.propTypes = {
|
|
4377
4377
|
};
|
4378
4378
|
const ui = ({ content: e = "Please try again later." }) => {
|
4379
4379
|
const t = tt(null);
|
4380
|
-
return
|
4380
|
+
return Re(() => {
|
4381
4381
|
var n;
|
4382
4382
|
(n = t.current) == null || n.scrollIntoView({
|
4383
4383
|
behavior: "instant"
|
@@ -5040,7 +5040,7 @@ function El() {
|
|
5040
5040
|
function l(m, ...y) {
|
5041
5041
|
let E;
|
5042
5042
|
if (Da("use", r), m != null) if (typeof m == "function")
|
5043
|
-
|
5043
|
+
w(m, ...y);
|
5044
5044
|
else if (typeof m == "object")
|
5045
5045
|
Array.isArray(m) ? W(m) : M(m);
|
5046
5046
|
else
|
@@ -5048,11 +5048,11 @@ function El() {
|
|
5048
5048
|
return E && (n.settings = Object.assign(n.settings || {}, E)), i;
|
5049
5049
|
function P(_) {
|
5050
5050
|
if (typeof _ == "function")
|
5051
|
-
|
5051
|
+
w(_);
|
5052
5052
|
else if (typeof _ == "object")
|
5053
5053
|
if (Array.isArray(_)) {
|
5054
5054
|
const [N, ...V] = _;
|
5055
|
-
|
5055
|
+
w(N, ...V);
|
5056
5056
|
} else
|
5057
5057
|
M(_);
|
5058
5058
|
else
|
@@ -5071,7 +5071,7 @@ function El() {
|
|
5071
5071
|
else
|
5072
5072
|
throw new TypeError("Expected a list of plugins, not `" + _ + "`");
|
5073
5073
|
}
|
5074
|
-
function
|
5074
|
+
function w(_, N) {
|
5075
5075
|
let V = -1, H;
|
5076
5076
|
for (; ++V < t.length; )
|
5077
5077
|
if (t[V][0] === _) {
|
@@ -5084,20 +5084,20 @@ function El() {
|
|
5084
5084
|
function c(m) {
|
5085
5085
|
i.freeze();
|
5086
5086
|
const y = Wn(m), E = i.Parser;
|
5087
|
-
return
|
5087
|
+
return Ra("parse", E), to(E, "parse") ? new E(String(y), y).parse() : E(String(y), y);
|
5088
5088
|
}
|
5089
5089
|
function d(m, y) {
|
5090
5090
|
i.freeze();
|
5091
5091
|
const E = Wn(y), P = i.Compiler;
|
5092
|
-
return
|
5092
|
+
return wa("stringify", P), no(m), to(P, "compile") ? new P(m, E).compile() : P(m, E);
|
5093
5093
|
}
|
5094
5094
|
function f(m, y, E) {
|
5095
5095
|
if (no(m), i.freeze(), !E && typeof y == "function" && (E = y, y = void 0), !E)
|
5096
5096
|
return new Promise(P);
|
5097
5097
|
P(null, E);
|
5098
5098
|
function P(M, W) {
|
5099
|
-
e.run(m, Wn(y),
|
5100
|
-
function
|
5099
|
+
e.run(m, Wn(y), w);
|
5100
|
+
function w(_, N, V) {
|
5101
5101
|
N = N || m, _ ? W(_) : M ? M(N) : E(null, N, V);
|
5102
5102
|
}
|
5103
5103
|
}
|
@@ -5105,32 +5105,32 @@ function El() {
|
|
5105
5105
|
function p(m, y) {
|
5106
5106
|
let E, P;
|
5107
5107
|
return i.run(m, y, M), ro("runSync", "run", P), E;
|
5108
|
-
function M(W,
|
5109
|
-
Zu(W), E =
|
5108
|
+
function M(W, w) {
|
5109
|
+
Zu(W), E = w, P = !0;
|
5110
5110
|
}
|
5111
5111
|
}
|
5112
5112
|
function h(m, y) {
|
5113
|
-
if (i.freeze(),
|
5113
|
+
if (i.freeze(), Ra("process", i.Parser), wa("process", i.Compiler), !y)
|
5114
5114
|
return new Promise(E);
|
5115
5115
|
E(null, y);
|
5116
5116
|
function E(P, M) {
|
5117
5117
|
const W = Wn(m);
|
5118
5118
|
i.run(i.parse(W), W, (_, N, V) => {
|
5119
5119
|
if (_ || !N || !V)
|
5120
|
-
|
5120
|
+
w(_);
|
5121
5121
|
else {
|
5122
5122
|
const H = i.stringify(N, V);
|
5123
|
-
H == null || (cp(H) ? V.value = H : V.result = H),
|
5123
|
+
H == null || (cp(H) ? V.value = H : V.result = H), w(_, V);
|
5124
5124
|
}
|
5125
5125
|
});
|
5126
|
-
function
|
5126
|
+
function w(_, N) {
|
5127
5127
|
_ || !N ? M(_) : P ? P(N) : y(null, N);
|
5128
5128
|
}
|
5129
5129
|
}
|
5130
5130
|
}
|
5131
5131
|
function g(m) {
|
5132
5132
|
let y;
|
5133
|
-
i.freeze(),
|
5133
|
+
i.freeze(), Ra("processSync", i.Parser), wa("processSync", i.Compiler);
|
5134
5134
|
const E = Wn(m);
|
5135
5135
|
return i.process(E, P), ro("processSync", "process", y), E;
|
5136
5136
|
function P(M) {
|
@@ -5154,11 +5154,11 @@ function sp(e) {
|
|
5154
5154
|
return !0;
|
5155
5155
|
return !1;
|
5156
5156
|
}
|
5157
|
-
function
|
5157
|
+
function Ra(e, t) {
|
5158
5158
|
if (typeof t != "function")
|
5159
5159
|
throw new TypeError("Cannot `" + e + "` without `Parser`");
|
5160
5160
|
}
|
5161
|
-
function
|
5161
|
+
function wa(e, t) {
|
5162
5162
|
if (typeof t != "function")
|
5163
5163
|
throw new TypeError("Cannot `" + e + "` without `Compiler`");
|
5164
5164
|
}
|
@@ -5271,7 +5271,7 @@ function Fe(e, t, n, r) {
|
|
5271
5271
|
return uo(l) && i++ < a ? (e.consume(l), s) : (e.exit(n), t(l));
|
5272
5272
|
}
|
5273
5273
|
}
|
5274
|
-
function
|
5274
|
+
function Ri(e) {
|
5275
5275
|
return e !== null && e < -2;
|
5276
5276
|
}
|
5277
5277
|
const bp = {
|
@@ -5307,7 +5307,7 @@ function Ep(e) {
|
|
5307
5307
|
e.exit("chunkText"), e.exit("paragraph"), e.consume(s);
|
5308
5308
|
return;
|
5309
5309
|
}
|
5310
|
-
return
|
5310
|
+
return Ri(s) ? (e.consume(s), e.exit("chunkText"), i) : (e.consume(s), u);
|
5311
5311
|
}
|
5312
5312
|
}
|
5313
5313
|
const Tp = {
|
@@ -5334,10 +5334,10 @@ function yp(e) {
|
|
5334
5334
|
if (r++, t.containerState._closeFlow) {
|
5335
5335
|
t.containerState._closeFlow = void 0, a && P();
|
5336
5336
|
const W = t.events.length;
|
5337
|
-
let
|
5338
|
-
for (;
|
5339
|
-
if (t.events[
|
5340
|
-
_ = t.events[
|
5337
|
+
let w = W, _;
|
5338
|
+
for (; w--; )
|
5339
|
+
if (t.events[w][0] === "exit" && t.events[w][1].type === "chunkFlow") {
|
5340
|
+
_ = t.events[w][1].end;
|
5341
5341
|
break;
|
5342
5342
|
}
|
5343
5343
|
E(r);
|
@@ -5346,7 +5346,7 @@ function yp(e) {
|
|
5346
5346
|
t.events[N][1].end = Object.assign({}, _), N++;
|
5347
5347
|
return Pt(
|
5348
5348
|
t.events,
|
5349
|
-
|
5349
|
+
w + 1,
|
5350
5350
|
0,
|
5351
5351
|
t.events.slice(W)
|
5352
5352
|
), t.events.length = N, c(M);
|
@@ -5399,11 +5399,11 @@ function yp(e) {
|
|
5399
5399
|
y(e.exit("chunkFlow"), !0), E(0), e.consume(M);
|
5400
5400
|
return;
|
5401
5401
|
}
|
5402
|
-
return
|
5402
|
+
return Ri(M) ? (e.consume(M), y(e.exit("chunkFlow")), r = 0, t.interrupt = void 0, s) : (e.consume(M), m);
|
5403
5403
|
}
|
5404
5404
|
function y(M, W) {
|
5405
|
-
const
|
5406
|
-
if (W &&
|
5405
|
+
const w = t.sliceStream(M);
|
5406
|
+
if (W && w.push(null), M.previous = i, i && (i.next = M), i = M, a.defineSkip(M.start), a.write(w), t.parser.lazy[M.start.line]) {
|
5407
5407
|
let _ = a.events.length;
|
5408
5408
|
for (; _--; )
|
5409
5409
|
if (
|
@@ -5436,8 +5436,8 @@ function yp(e) {
|
|
5436
5436
|
function E(M) {
|
5437
5437
|
let W = n.length;
|
5438
5438
|
for (; W-- > M; ) {
|
5439
|
-
const
|
5440
|
-
t.containerState =
|
5439
|
+
const w = n[W];
|
5440
|
+
t.containerState = w[1], w[0].exit.call(t, e);
|
5441
5441
|
}
|
5442
5442
|
n.length = M;
|
5443
5443
|
}
|
@@ -5470,7 +5470,7 @@ function so(e) {
|
|
5470
5470
|
if (Sp(e))
|
5471
5471
|
return 2;
|
5472
5472
|
}
|
5473
|
-
function
|
5473
|
+
function wi(e, t, n) {
|
5474
5474
|
const r = [];
|
5475
5475
|
let a = -1;
|
5476
5476
|
for (; ++a < e.length; ) {
|
@@ -5521,7 +5521,7 @@ function vp(e, t) {
|
|
5521
5521
|
["enter", i, t]
|
5522
5522
|
]), c = Et(
|
5523
5523
|
c,
|
5524
|
-
|
5524
|
+
wi(
|
5525
5525
|
t.parser.constructs.insideSpan.null,
|
5526
5526
|
e.slice(r + 1, n),
|
5527
5527
|
t
|
@@ -5559,7 +5559,7 @@ function Op(e, t) {
|
|
5559
5559
|
function lo(e, t) {
|
5560
5560
|
e.column += t, e.offset += t, e._bufferIndex += t;
|
5561
5561
|
}
|
5562
|
-
const
|
5562
|
+
const wt = Rn(/[A-Za-z]/), xt = Rn(/[\dA-Za-z]/), Ip = Rn(/[#-'*+\--9=?A-Z^-~]/);
|
5563
5563
|
function Np(e) {
|
5564
5564
|
return (
|
5565
5565
|
// Special whitespace codes (which have negative values), C0 and Control
|
@@ -5567,34 +5567,34 @@ function Np(e) {
|
|
5567
5567
|
e !== null && (e < 32 || e === 127)
|
5568
5568
|
);
|
5569
5569
|
}
|
5570
|
-
const di =
|
5570
|
+
const di = Rn(/\d/), kp = Rn(/[\dA-Fa-f]/), Lp = Rn(/[!-/:-@[-`{-~]/);
|
5571
5571
|
function be(e) {
|
5572
5572
|
return e !== null && e < -2;
|
5573
5573
|
}
|
5574
5574
|
function _t(e) {
|
5575
5575
|
return e !== null && (e < 0 || e === 32);
|
5576
5576
|
}
|
5577
|
-
function
|
5577
|
+
function Le(e) {
|
5578
5578
|
return e === -2 || e === -1 || e === 32;
|
5579
5579
|
}
|
5580
|
-
function
|
5580
|
+
function Rn(e) {
|
5581
5581
|
return t;
|
5582
5582
|
function t(n) {
|
5583
5583
|
return n !== null && e.test(String.fromCharCode(n));
|
5584
5584
|
}
|
5585
5585
|
}
|
5586
|
-
const
|
5586
|
+
const Rp = {
|
5587
5587
|
name: "autolink",
|
5588
|
-
tokenize:
|
5588
|
+
tokenize: wp
|
5589
5589
|
};
|
5590
|
-
function
|
5590
|
+
function wp(e, t, n) {
|
5591
5591
|
let r = 0;
|
5592
5592
|
return a;
|
5593
5593
|
function a(h) {
|
5594
5594
|
return e.enter("autolink"), e.enter("autolinkMarker"), e.consume(h), e.exit("autolinkMarker"), e.enter("autolinkProtocol"), i;
|
5595
5595
|
}
|
5596
5596
|
function i(h) {
|
5597
|
-
return
|
5597
|
+
return wt(h) ? (e.consume(h), u) : c(h);
|
5598
5598
|
}
|
5599
5599
|
function u(h) {
|
5600
5600
|
return h === 43 || h === 45 || h === 46 || xt(h) ? (r = 1, s(h)) : c(h);
|
@@ -5629,7 +5629,7 @@ const Jr = {
|
|
5629
5629
|
function Dp(e, t, n) {
|
5630
5630
|
return r;
|
5631
5631
|
function r(i) {
|
5632
|
-
return
|
5632
|
+
return Le(i) ? Fe(e, a, "linePrefix")(i) : a(i);
|
5633
5633
|
}
|
5634
5634
|
function a(i) {
|
5635
5635
|
return i === null || be(i) ? t(i) : n(i);
|
@@ -5656,14 +5656,14 @@ function Pp(e, t, n) {
|
|
5656
5656
|
return n(u);
|
5657
5657
|
}
|
5658
5658
|
function i(u) {
|
5659
|
-
return
|
5659
|
+
return Le(u) ? (e.enter("blockQuotePrefixWhitespace"), e.consume(u), e.exit("blockQuotePrefixWhitespace"), e.exit("blockQuotePrefix"), t) : (e.exit("blockQuotePrefix"), t(u));
|
5660
5660
|
}
|
5661
5661
|
}
|
5662
5662
|
function Mp(e, t, n) {
|
5663
5663
|
const r = this;
|
5664
5664
|
return a;
|
5665
5665
|
function a(u) {
|
5666
|
-
return
|
5666
|
+
return Le(u) ? Fe(
|
5667
5667
|
e,
|
5668
5668
|
i,
|
5669
5669
|
"linePrefix",
|
@@ -5736,7 +5736,7 @@ const fo = {
|
|
5736
5736
|
};
|
5737
5737
|
function Up(e, t, n) {
|
5738
5738
|
const r = this, a = {
|
5739
|
-
tokenize:
|
5739
|
+
tokenize: w,
|
5740
5740
|
partial: !0
|
5741
5741
|
};
|
5742
5742
|
let i = 0, u = 0, s;
|
@@ -5749,7 +5749,7 @@ function Up(e, t, n) {
|
|
5749
5749
|
return i = N && N[1].type === "linePrefix" ? N[2].sliceSerialize(N[1], !0).length : 0, s = _, e.enter("codeFenced"), e.enter("codeFencedFence"), e.enter("codeFencedFenceSequence"), d(_);
|
5750
5750
|
}
|
5751
5751
|
function d(_) {
|
5752
|
-
return _ === s ? (u++, e.consume(_), d) : u < 3 ? n(_) : (e.exit("codeFencedFenceSequence"),
|
5752
|
+
return _ === s ? (u++, e.consume(_), d) : u < 3 ? n(_) : (e.exit("codeFencedFenceSequence"), Le(_) ? Fe(e, f, "whitespace")(_) : f(_));
|
5753
5753
|
}
|
5754
5754
|
function f(_) {
|
5755
5755
|
return _ === null || be(_) ? (e.exit("codeFencedFence"), r.interrupt ? t(_) : e.check(fo, m, W)(_)) : (e.enter("codeFencedFenceInfo"), e.enter("chunkString", {
|
@@ -5757,7 +5757,7 @@ function Up(e, t, n) {
|
|
5757
5757
|
}), p(_));
|
5758
5758
|
}
|
5759
5759
|
function p(_) {
|
5760
|
-
return _ === null || be(_) ? (e.exit("chunkString"), e.exit("codeFencedFenceInfo"), f(_)) :
|
5760
|
+
return _ === null || be(_) ? (e.exit("chunkString"), e.exit("codeFencedFenceInfo"), f(_)) : Le(_) ? (e.exit("chunkString"), e.exit("codeFencedFenceInfo"), Fe(e, h, "whitespace")(_)) : _ === 96 && _ === s ? n(_) : (e.consume(_), p);
|
5761
5761
|
}
|
5762
5762
|
function h(_) {
|
5763
5763
|
return _ === null || be(_) ? f(_) : (e.enter("codeFencedFenceMeta"), e.enter("chunkString", {
|
@@ -5774,7 +5774,7 @@ function Up(e, t, n) {
|
|
5774
5774
|
return e.enter("lineEnding"), e.consume(_), e.exit("lineEnding"), E;
|
5775
5775
|
}
|
5776
5776
|
function E(_) {
|
5777
|
-
return i > 0 &&
|
5777
|
+
return i > 0 && Le(_) ? Fe(
|
5778
5778
|
e,
|
5779
5779
|
P,
|
5780
5780
|
"linePrefix",
|
@@ -5790,28 +5790,28 @@ function Up(e, t, n) {
|
|
5790
5790
|
function W(_) {
|
5791
5791
|
return e.exit("codeFenced"), t(_);
|
5792
5792
|
}
|
5793
|
-
function
|
5793
|
+
function w(_, N, V) {
|
5794
5794
|
let H = 0;
|
5795
5795
|
return te;
|
5796
|
-
function te(
|
5797
|
-
return _.enter("lineEnding"), _.consume(
|
5796
|
+
function te(R) {
|
5797
|
+
return _.enter("lineEnding"), _.consume(R), _.exit("lineEnding"), Y;
|
5798
5798
|
}
|
5799
|
-
function Y(
|
5800
|
-
return _.enter("codeFencedFence"),
|
5799
|
+
function Y(R) {
|
5800
|
+
return _.enter("codeFencedFence"), Le(R) ? Fe(
|
5801
5801
|
_,
|
5802
5802
|
$,
|
5803
5803
|
"linePrefix",
|
5804
5804
|
r.parser.constructs.disable.null.includes("codeIndented") ? void 0 : 4
|
5805
|
-
)(
|
5805
|
+
)(R) : $(R);
|
5806
5806
|
}
|
5807
|
-
function $(
|
5808
|
-
return
|
5807
|
+
function $(R) {
|
5808
|
+
return R === s ? (_.enter("codeFencedFenceSequence"), L(R)) : V(R);
|
5809
5809
|
}
|
5810
|
-
function L(
|
5811
|
-
return
|
5810
|
+
function L(R) {
|
5811
|
+
return R === s ? (H++, _.consume(R), L) : H >= u ? (_.exit("codeFencedFenceSequence"), Le(R) ? Fe(_, I, "whitespace")(R) : I(R)) : V(R);
|
5812
5812
|
}
|
5813
|
-
function I(
|
5814
|
-
return
|
5813
|
+
function I(R) {
|
5814
|
+
return R === null || be(R) ? (_.exit("codeFencedFence"), N(R)) : V(R);
|
5815
5815
|
}
|
5816
5816
|
}
|
5817
5817
|
}
|
@@ -6158,7 +6158,7 @@ function s1(e, t, n) {
|
|
6158
6158
|
return e.attempt(o1, f, f)(h);
|
6159
6159
|
}
|
6160
6160
|
function f(h) {
|
6161
|
-
return
|
6161
|
+
return Le(h) ? Fe(e, p, "whitespace")(h) : p(h);
|
6162
6162
|
}
|
6163
6163
|
function p(h) {
|
6164
6164
|
return h === null || be(h) ? (e.exit("definition"), r.parser.defined.push(a), t(h)) : n(h);
|
@@ -6180,7 +6180,7 @@ function l1(e, t, n) {
|
|
6180
6180
|
)(s);
|
6181
6181
|
}
|
6182
6182
|
function i(s) {
|
6183
|
-
return
|
6183
|
+
return Le(s) ? Fe(e, u, "whitespace")(s) : u(s);
|
6184
6184
|
}
|
6185
6185
|
function u(s) {
|
6186
6186
|
return s === null || be(s) ? t(s) : n(s);
|
@@ -6235,7 +6235,7 @@ function p1(e, t, n) {
|
|
6235
6235
|
return d === 35 && r++ < 6 ? (e.consume(d), u) : d === null || _t(d) ? (e.exit("atxHeadingSequence"), s(d)) : n(d);
|
6236
6236
|
}
|
6237
6237
|
function s(d) {
|
6238
|
-
return d === 35 ? (e.enter("atxHeadingSequence"), l(d)) : d === null || be(d) ? (e.exit("atxHeading"), t(d)) :
|
6238
|
+
return d === 35 ? (e.enter("atxHeadingSequence"), l(d)) : d === null || be(d) ? (e.exit("atxHeading"), t(d)) : Le(d) ? Fe(e, s, "whitespace")(d) : (e.enter("atxHeadingText"), c(d));
|
6239
6239
|
}
|
6240
6240
|
function l(d) {
|
6241
6241
|
return d === 35 ? (e.consume(d), l) : (e.exit("atxHeadingSequence"), s(d));
|
@@ -6336,10 +6336,10 @@ function y1(e, t, n) {
|
|
6336
6336
|
return e.enter("htmlFlow"), e.enter("htmlFlowData"), e.consume(x), f;
|
6337
6337
|
}
|
6338
6338
|
function f(x) {
|
6339
|
-
return x === 33 ? (e.consume(x), p) : x === 47 ? (e.consume(x), i = !0, m) : x === 63 ? (e.consume(x), a = 3, r.interrupt ? t : b) :
|
6339
|
+
return x === 33 ? (e.consume(x), p) : x === 47 ? (e.consume(x), i = !0, m) : x === 63 ? (e.consume(x), a = 3, r.interrupt ? t : b) : wt(x) ? (e.consume(x), u = String.fromCharCode(x), y) : n(x);
|
6340
6340
|
}
|
6341
6341
|
function p(x) {
|
6342
|
-
return x === 45 ? (e.consume(x), a = 2, h) : x === 91 ? (e.consume(x), a = 5, s = 0, g) :
|
6342
|
+
return x === 45 ? (e.consume(x), a = 2, h) : x === 91 ? (e.consume(x), a = 5, s = 0, g) : wt(x) ? (e.consume(x), a = 4, r.interrupt ? t : b) : n(x);
|
6343
6343
|
}
|
6344
6344
|
function h(x) {
|
6345
6345
|
return x === 45 ? (e.consume(x), r.interrupt ? t : b) : n(x);
|
@@ -6349,7 +6349,7 @@ function y1(e, t, n) {
|
|
6349
6349
|
return x === oe.charCodeAt(s++) ? (e.consume(x), s === oe.length ? r.interrupt ? t : $ : g) : n(x);
|
6350
6350
|
}
|
6351
6351
|
function m(x) {
|
6352
|
-
return
|
6352
|
+
return wt(x) ? (e.consume(x), u = String.fromCharCode(x), y) : n(x);
|
6353
6353
|
}
|
6354
6354
|
function y(x) {
|
6355
6355
|
if (x === null || x === 47 || x === 62 || _t(x)) {
|
@@ -6362,34 +6362,34 @@ function y1(e, t, n) {
|
|
6362
6362
|
return x === 62 ? (e.consume(x), r.interrupt ? t : $) : n(x);
|
6363
6363
|
}
|
6364
6364
|
function P(x) {
|
6365
|
-
return
|
6365
|
+
return Le(x) ? (e.consume(x), P) : te(x);
|
6366
6366
|
}
|
6367
6367
|
function M(x) {
|
6368
|
-
return x === 47 ? (e.consume(x), te) : x === 58 || x === 95 ||
|
6368
|
+
return x === 47 ? (e.consume(x), te) : x === 58 || x === 95 || wt(x) ? (e.consume(x), W) : Le(x) ? (e.consume(x), M) : te(x);
|
6369
6369
|
}
|
6370
6370
|
function W(x) {
|
6371
|
-
return x === 45 || x === 46 || x === 58 || x === 95 || xt(x) ? (e.consume(x), W) :
|
6371
|
+
return x === 45 || x === 46 || x === 58 || x === 95 || xt(x) ? (e.consume(x), W) : w(x);
|
6372
6372
|
}
|
6373
|
-
function
|
6374
|
-
return x === 61 ? (e.consume(x), _) :
|
6373
|
+
function w(x) {
|
6374
|
+
return x === 61 ? (e.consume(x), _) : Le(x) ? (e.consume(x), w) : M(x);
|
6375
6375
|
}
|
6376
6376
|
function _(x) {
|
6377
|
-
return x === null || x === 60 || x === 61 || x === 62 || x === 96 ? n(x) : x === 34 || x === 39 ? (e.consume(x), l = x, N) :
|
6377
|
+
return x === null || x === 60 || x === 61 || x === 62 || x === 96 ? n(x) : x === 34 || x === 39 ? (e.consume(x), l = x, N) : Le(x) ? (e.consume(x), _) : V(x);
|
6378
6378
|
}
|
6379
6379
|
function N(x) {
|
6380
6380
|
return x === l ? (e.consume(x), l = null, H) : x === null || be(x) ? n(x) : (e.consume(x), N);
|
6381
6381
|
}
|
6382
6382
|
function V(x) {
|
6383
|
-
return x === null || x === 34 || x === 39 || x === 47 || x === 60 || x === 61 || x === 62 || x === 96 || _t(x) ?
|
6383
|
+
return x === null || x === 34 || x === 39 || x === 47 || x === 60 || x === 61 || x === 62 || x === 96 || _t(x) ? w(x) : (e.consume(x), V);
|
6384
6384
|
}
|
6385
6385
|
function H(x) {
|
6386
|
-
return x === 47 || x === 62 ||
|
6386
|
+
return x === 47 || x === 62 || Le(x) ? M(x) : n(x);
|
6387
6387
|
}
|
6388
6388
|
function te(x) {
|
6389
6389
|
return x === 62 ? (e.consume(x), Y) : n(x);
|
6390
6390
|
}
|
6391
6391
|
function Y(x) {
|
6392
|
-
return x === null || be(x) ? $(x) :
|
6392
|
+
return x === null || be(x) ? $(x) : Le(x) ? (e.consume(x), Y) : n(x);
|
6393
6393
|
}
|
6394
6394
|
function $(x) {
|
6395
6395
|
return x === 45 && a === 2 ? (e.consume(x), B) : x === 60 && a === 1 ? (e.consume(x), G) : x === 62 && a === 4 ? (e.consume(x), ne) : x === 63 && a === 3 ? (e.consume(x), b) : x === 93 && a === 5 ? (e.consume(x), q) : be(x) && (a === 6 || a === 7) ? (e.exit("htmlFlowData"), e.check(
|
@@ -6406,9 +6406,9 @@ function y1(e, t, n) {
|
|
6406
6406
|
)(x);
|
6407
6407
|
}
|
6408
6408
|
function I(x) {
|
6409
|
-
return e.enter("lineEnding"), e.consume(x), e.exit("lineEnding"),
|
6409
|
+
return e.enter("lineEnding"), e.consume(x), e.exit("lineEnding"), R;
|
6410
6410
|
}
|
6411
|
-
function
|
6411
|
+
function R(x) {
|
6412
6412
|
return x === null || be(x) ? L(x) : (e.enter("htmlFlowData"), $(x));
|
6413
6413
|
}
|
6414
6414
|
function B(x) {
|
@@ -6422,7 +6422,7 @@ function y1(e, t, n) {
|
|
6422
6422
|
const oe = u.toLowerCase();
|
6423
6423
|
return bo.includes(oe) ? (e.consume(x), ne) : $(x);
|
6424
6424
|
}
|
6425
|
-
return
|
6425
|
+
return wt(x) && u.length < 8 ? (e.consume(x), u += String.fromCharCode(x), j) : $(x);
|
6426
6426
|
}
|
6427
6427
|
function q(x) {
|
6428
6428
|
return x === 93 ? (e.consume(x), b) : $(x);
|
@@ -6465,10 +6465,10 @@ function S1(e, t, n) {
|
|
6465
6465
|
return e.enter("htmlText"), e.enter("htmlTextData"), e.consume(b), l;
|
6466
6466
|
}
|
6467
6467
|
function l(b) {
|
6468
|
-
return b === 33 ? (e.consume(b), c) : b === 47 ? (e.consume(b),
|
6468
|
+
return b === 33 ? (e.consume(b), c) : b === 47 ? (e.consume(b), w) : b === 63 ? (e.consume(b), M) : wt(b) ? (e.consume(b), V) : n(b);
|
6469
6469
|
}
|
6470
6470
|
function c(b) {
|
6471
|
-
return b === 45 ? (e.consume(b), d) : b === 91 ? (e.consume(b), i = 0, g) :
|
6471
|
+
return b === 45 ? (e.consume(b), d) : b === 91 ? (e.consume(b), i = 0, g) : wt(b) ? (e.consume(b), P) : n(b);
|
6472
6472
|
}
|
6473
6473
|
function d(b) {
|
6474
6474
|
return b === 45 ? (e.consume(b), h) : n(b);
|
@@ -6504,37 +6504,37 @@ function S1(e, t, n) {
|
|
6504
6504
|
function W(b) {
|
6505
6505
|
return b === 62 ? B(b) : M(b);
|
6506
6506
|
}
|
6507
|
-
function
|
6508
|
-
return
|
6507
|
+
function w(b) {
|
6508
|
+
return wt(b) ? (e.consume(b), _) : n(b);
|
6509
6509
|
}
|
6510
6510
|
function _(b) {
|
6511
6511
|
return b === 45 || xt(b) ? (e.consume(b), _) : N(b);
|
6512
6512
|
}
|
6513
6513
|
function N(b) {
|
6514
|
-
return be(b) ? (u = N, G(b)) :
|
6514
|
+
return be(b) ? (u = N, G(b)) : Le(b) ? (e.consume(b), N) : B(b);
|
6515
6515
|
}
|
6516
6516
|
function V(b) {
|
6517
6517
|
return b === 45 || xt(b) ? (e.consume(b), V) : b === 47 || b === 62 || _t(b) ? H(b) : n(b);
|
6518
6518
|
}
|
6519
6519
|
function H(b) {
|
6520
|
-
return b === 47 ? (e.consume(b), B) : b === 58 || b === 95 ||
|
6520
|
+
return b === 47 ? (e.consume(b), B) : b === 58 || b === 95 || wt(b) ? (e.consume(b), te) : be(b) ? (u = H, G(b)) : Le(b) ? (e.consume(b), H) : B(b);
|
6521
6521
|
}
|
6522
6522
|
function te(b) {
|
6523
6523
|
return b === 45 || b === 46 || b === 58 || b === 95 || xt(b) ? (e.consume(b), te) : Y(b);
|
6524
6524
|
}
|
6525
6525
|
function Y(b) {
|
6526
|
-
return b === 61 ? (e.consume(b), $) : be(b) ? (u = Y, G(b)) :
|
6526
|
+
return b === 61 ? (e.consume(b), $) : be(b) ? (u = Y, G(b)) : Le(b) ? (e.consume(b), Y) : H(b);
|
6527
6527
|
}
|
6528
6528
|
function $(b) {
|
6529
|
-
return b === null || b === 60 || b === 61 || b === 62 || b === 96 ? n(b) : b === 34 || b === 39 ? (e.consume(b), a = b, L) : be(b) ? (u = $, G(b)) :
|
6529
|
+
return b === null || b === 60 || b === 61 || b === 62 || b === 96 ? n(b) : b === 34 || b === 39 ? (e.consume(b), a = b, L) : be(b) ? (u = $, G(b)) : Le(b) ? (e.consume(b), $) : (e.consume(b), I);
|
6530
6530
|
}
|
6531
6531
|
function L(b) {
|
6532
|
-
return b === a ? (e.consume(b), a = void 0,
|
6532
|
+
return b === a ? (e.consume(b), a = void 0, R) : b === null ? n(b) : be(b) ? (u = L, G(b)) : (e.consume(b), L);
|
6533
6533
|
}
|
6534
6534
|
function I(b) {
|
6535
6535
|
return b === null || b === 34 || b === 39 || b === 60 || b === 61 || b === 96 ? n(b) : b === 47 || b === 62 || _t(b) ? H(b) : (e.consume(b), I);
|
6536
6536
|
}
|
6537
|
-
function
|
6537
|
+
function R(b) {
|
6538
6538
|
return b === 47 || b === 62 || _t(b) ? H(b) : n(b);
|
6539
6539
|
}
|
6540
6540
|
function B(b) {
|
@@ -6544,7 +6544,7 @@ function S1(e, t, n) {
|
|
6544
6544
|
return e.exit("htmlTextData"), e.enter("lineEnding"), e.consume(b), e.exit("lineEnding"), j;
|
6545
6545
|
}
|
6546
6546
|
function j(b) {
|
6547
|
-
return
|
6547
|
+
return Le(b) ? Fe(
|
6548
6548
|
e,
|
6549
6549
|
q,
|
6550
6550
|
"linePrefix",
|
@@ -6563,9 +6563,9 @@ const Pi = {
|
|
6563
6563
|
}, x1 = {
|
6564
6564
|
tokenize: L1
|
6565
6565
|
}, v1 = {
|
6566
|
-
tokenize: w1
|
6567
|
-
}, O1 = {
|
6568
6566
|
tokenize: R1
|
6567
|
+
}, O1 = {
|
6568
|
+
tokenize: w1
|
6569
6569
|
};
|
6570
6570
|
function I1(e) {
|
6571
6571
|
let t = -1;
|
@@ -6606,7 +6606,7 @@ function N1(e, t) {
|
|
6606
6606
|
["enter", c, t]
|
6607
6607
|
], s = Et(s, e.slice(i + 1, i + r + 3)), s = Et(s, [["enter", d, t]]), s = Et(
|
6608
6608
|
s,
|
6609
|
-
|
6609
|
+
wi(
|
6610
6610
|
t.parser.constructs.insideSpan.null,
|
6611
6611
|
e.slice(i + r + 4, u - 3),
|
6612
6612
|
t
|
@@ -6706,7 +6706,7 @@ function L1(e, t, n) {
|
|
6706
6706
|
return f === 41 ? (e.enter("resourceMarker"), e.consume(f), e.exit("resourceMarker"), e.exit("resource"), t) : n(f);
|
6707
6707
|
}
|
6708
6708
|
}
|
6709
|
-
function
|
6709
|
+
function R1(e, t, n) {
|
6710
6710
|
const r = this;
|
6711
6711
|
return a;
|
6712
6712
|
function a(s) {
|
@@ -6731,7 +6731,7 @@ function w1(e, t, n) {
|
|
6731
6731
|
return n(s);
|
6732
6732
|
}
|
6733
6733
|
}
|
6734
|
-
function
|
6734
|
+
function w1(e, t, n) {
|
6735
6735
|
return r;
|
6736
6736
|
function r(i) {
|
6737
6737
|
return e.enter("reference"), e.enter("referenceMarker"), e.consume(i), e.exit("referenceMarker"), a;
|
@@ -6800,7 +6800,7 @@ function H1(e, t, n) {
|
|
6800
6800
|
return c === a ? (e.enter("thematicBreakSequence"), l(c)) : r >= 3 && (c === null || be(c)) ? (e.exit("thematicBreak"), t(c)) : n(c);
|
6801
6801
|
}
|
6802
6802
|
function l(c) {
|
6803
|
-
return c === a ? (e.consume(c), r++, l) : (e.exit("thematicBreakSequence"),
|
6803
|
+
return c === a ? (e.consume(c), r++, l) : (e.exit("thematicBreakSequence"), Le(c) ? Fe(e, s, "whitespace")(c) : s(c));
|
6804
6804
|
}
|
6805
6805
|
}
|
6806
6806
|
const ot = {
|
@@ -6852,7 +6852,7 @@ function q1(e, t, n) {
|
|
6852
6852
|
return r.containerState.initialBlankLine = !0, i++, p(h);
|
6853
6853
|
}
|
6854
6854
|
function f(h) {
|
6855
|
-
return
|
6855
|
+
return Le(h) ? (e.enter("listItemPrefixWhitespace"), e.consume(h), e.exit("listItemPrefixWhitespace"), p) : n(h);
|
6856
6856
|
}
|
6857
6857
|
function p(h) {
|
6858
6858
|
return r.containerState.size = i + r.sliceSerialize(e.exit("listItemPrefix"), !0).length, t(h);
|
@@ -6870,7 +6870,7 @@ function z1(e, t, n) {
|
|
6870
6870
|
)(s);
|
6871
6871
|
}
|
6872
6872
|
function i(s) {
|
6873
|
-
return r.containerState.furtherBlankLines || !
|
6873
|
+
return r.containerState.furtherBlankLines || !Le(s) ? (r.containerState.furtherBlankLines = void 0, r.containerState.initialBlankLine = void 0, u(s)) : (r.containerState.furtherBlankLines = void 0, r.containerState.initialBlankLine = void 0, e.attempt(j1, t, u)(s));
|
6874
6874
|
}
|
6875
6875
|
function u(s) {
|
6876
6876
|
return r.containerState._closeFlow = !0, r.interrupt = void 0, Fe(
|
@@ -6907,7 +6907,7 @@ function V1(e, t, n) {
|
|
6907
6907
|
);
|
6908
6908
|
function a(i) {
|
6909
6909
|
const u = r.events[r.events.length - 1];
|
6910
|
-
return !
|
6910
|
+
return !Le(i) && u && u[1].type === "listItemPrefixWhitespace" ? t(i) : n(i);
|
6911
6911
|
}
|
6912
6912
|
}
|
6913
6913
|
const Eo = {
|
@@ -6950,7 +6950,7 @@ function G1(e, t, n) {
|
|
6950
6950
|
return e.enter("setextHeadingLineSequence"), s(c);
|
6951
6951
|
}
|
6952
6952
|
function s(c) {
|
6953
|
-
return c === a ? (e.consume(c), s) : (e.exit("setextHeadingLineSequence"),
|
6953
|
+
return c === a ? (e.consume(c), s) : (e.exit("setextHeadingLineSequence"), Le(c) ? Fe(e, l, "lineSuffix")(c) : l(c));
|
6954
6954
|
}
|
6955
6955
|
function l(c) {
|
6956
6956
|
return c === null || be(c) ? (e.exit("setextHeadingLine"), t(c)) : n(c);
|
@@ -7106,7 +7106,7 @@ function tm(e, t, n) {
|
|
7106
7106
|
consume: P,
|
7107
7107
|
enter: M,
|
7108
7108
|
exit: W,
|
7109
|
-
attempt: N(
|
7109
|
+
attempt: N(w),
|
7110
7110
|
check: N(_),
|
7111
7111
|
interrupt: N(_, {
|
7112
7112
|
interrupt: !0
|
@@ -7126,7 +7126,7 @@ function tm(e, t, n) {
|
|
7126
7126
|
let d = t.tokenize.call(c, l);
|
7127
7127
|
return t.resolveAll && i.push(t), c;
|
7128
7128
|
function f(Y) {
|
7129
|
-
return u = Et(u, Y), y(), u[u.length - 1] !== null ? [] : (V(t, 0), c.events =
|
7129
|
+
return u = Et(u, Y), y(), u[u.length - 1] !== null ? [] : (V(t, 0), c.events = wi(i, c.events, c), c.events);
|
7130
7130
|
}
|
7131
7131
|
function p(Y, $) {
|
7132
7132
|
return rm(h(Y), $);
|
@@ -7135,13 +7135,13 @@ function tm(e, t, n) {
|
|
7135
7135
|
return nm(u, Y);
|
7136
7136
|
}
|
7137
7137
|
function g() {
|
7138
|
-
const { line: Y, column: $, offset: L, _index: I, _bufferIndex:
|
7138
|
+
const { line: Y, column: $, offset: L, _index: I, _bufferIndex: R } = r;
|
7139
7139
|
return {
|
7140
7140
|
line: Y,
|
7141
7141
|
column: $,
|
7142
7142
|
offset: L,
|
7143
7143
|
_index: I,
|
7144
|
-
_bufferIndex:
|
7144
|
+
_bufferIndex: R
|
7145
7145
|
};
|
7146
7146
|
}
|
7147
7147
|
function m(Y) {
|
@@ -7162,7 +7162,7 @@ function tm(e, t, n) {
|
|
7162
7162
|
d = d(Y);
|
7163
7163
|
}
|
7164
7164
|
function P(Y) {
|
7165
|
-
|
7165
|
+
Ri(Y) ? (r.line++, r.column = 1, r.offset += Y === -3 ? 2 : 1, te()) : Y !== -1 && (r.column++, r.offset++), r._bufferIndex < 0 ? r._index++ : (r._bufferIndex++, r._bufferIndex === u[r._index].length && (r._bufferIndex = -1, r._index++)), c.previous = Y;
|
7166
7166
|
}
|
7167
7167
|
function M(Y, $) {
|
7168
7168
|
const L = $ || {};
|
@@ -7172,7 +7172,7 @@ function tm(e, t, n) {
|
|
7172
7172
|
const $ = s.pop();
|
7173
7173
|
return $.end = g(), c.events.push(["exit", $, c]), $;
|
7174
7174
|
}
|
7175
|
-
function
|
7175
|
+
function w(Y, $) {
|
7176
7176
|
V(Y, $.from);
|
7177
7177
|
}
|
7178
7178
|
function _(Y, $) {
|
@@ -7180,7 +7180,7 @@ function tm(e, t, n) {
|
|
7180
7180
|
}
|
7181
7181
|
function N(Y, $) {
|
7182
7182
|
return L;
|
7183
|
-
function L(I,
|
7183
|
+
function L(I, R, B) {
|
7184
7184
|
let G, j, q, b;
|
7185
7185
|
return Array.isArray(I) ? le(I) : "tokenize" in I ? (
|
7186
7186
|
// @ts-expect-error Looks like a construct.
|
@@ -7216,7 +7216,7 @@ function tm(e, t, n) {
|
|
7216
7216
|
}
|
7217
7217
|
}
|
7218
7218
|
function oe(me) {
|
7219
|
-
return Y(q, b),
|
7219
|
+
return Y(q, b), R;
|
7220
7220
|
}
|
7221
7221
|
function ye(me) {
|
7222
7222
|
return b.restore(), ++j < G.length ? x(G[j]) : B;
|
@@ -7232,13 +7232,13 @@ function tm(e, t, n) {
|
|
7232
7232
|
), Y.resolveTo && (c.events = Y.resolveTo(c.events, c));
|
7233
7233
|
}
|
7234
7234
|
function H() {
|
7235
|
-
const Y = g(), $ = c.previous, L = c.currentConstruct, I = c.events.length,
|
7235
|
+
const Y = g(), $ = c.previous, L = c.currentConstruct, I = c.events.length, R = Array.from(s);
|
7236
7236
|
return {
|
7237
7237
|
restore: B,
|
7238
7238
|
from: I
|
7239
7239
|
};
|
7240
7240
|
function B() {
|
7241
|
-
r = Y, c.previous = $, c.currentConstruct = L, c.events.length = I, s =
|
7241
|
+
r = Y, c.previous = $, c.currentConstruct = L, c.events.length = I, s = R, te();
|
7242
7242
|
}
|
7243
7243
|
}
|
7244
7244
|
function te() {
|
@@ -7340,7 +7340,7 @@ const am = {
|
|
7340
7340
|
33: D1,
|
7341
7341
|
38: Al,
|
7342
7342
|
42: ci,
|
7343
|
-
60: [
|
7343
|
+
60: [Rp, A1],
|
7344
7344
|
91: M1,
|
7345
7345
|
92: [c1, Cl],
|
7346
7346
|
93: Pi,
|
@@ -7542,11 +7542,11 @@ function _m(e) {
|
|
7542
7542
|
definition: d(),
|
7543
7543
|
definitionDestinationString: _,
|
7544
7544
|
definitionLabelString: W,
|
7545
|
-
definitionTitleString:
|
7545
|
+
definitionTitleString: w,
|
7546
7546
|
emphasis: d(),
|
7547
7547
|
hardBreakEscape: d(I),
|
7548
7548
|
hardBreakTrailing: d(I),
|
7549
|
-
htmlFlow: d(
|
7549
|
+
htmlFlow: d(R),
|
7550
7550
|
htmlFlowData: $,
|
7551
7551
|
htmlText: d(B),
|
7552
7552
|
htmlTextData: $,
|
@@ -7570,7 +7570,7 @@ function _m(e) {
|
|
7570
7570
|
thematicBreak: d()
|
7571
7571
|
}
|
7572
7572
|
};
|
7573
|
-
|
7573
|
+
Rl(t, (e || {}).mdastExtensions || []);
|
7574
7574
|
const n = {};
|
7575
7575
|
return r;
|
7576
7576
|
function r(F) {
|
@@ -7595,12 +7595,12 @@ function _m(e) {
|
|
7595
7595
|
if (F[pe][0] === "enter")
|
7596
7596
|
ue.push(pe);
|
7597
7597
|
else {
|
7598
|
-
const
|
7599
|
-
pe = a(F,
|
7598
|
+
const we = ue.pop();
|
7599
|
+
pe = a(F, we, pe);
|
7600
7600
|
}
|
7601
7601
|
for (pe = -1; ++pe < F.length; ) {
|
7602
|
-
const
|
7603
|
-
Ll.call(
|
7602
|
+
const we = t[F[pe][0]];
|
7603
|
+
Ll.call(we, F[pe][1].type) && we[F[pe][1].type].call(
|
7604
7604
|
Object.assign(
|
7605
7605
|
{
|
7606
7606
|
sliceSerialize: F[pe][2].sliceSerialize
|
@@ -7611,8 +7611,8 @@ function _m(e) {
|
|
7611
7611
|
);
|
7612
7612
|
}
|
7613
7613
|
if (re.tokenStack.length > 0) {
|
7614
|
-
const
|
7615
|
-
(
|
7614
|
+
const we = re.tokenStack[re.tokenStack.length - 1];
|
7615
|
+
(we[1] || yo).call(re, void 0, we[0]);
|
7616
7616
|
}
|
7617
7617
|
for (X.position = {
|
7618
7618
|
start: Wt(
|
@@ -7634,23 +7634,23 @@ function _m(e) {
|
|
7634
7634
|
return X;
|
7635
7635
|
}
|
7636
7636
|
function a(F, X, re) {
|
7637
|
-
let ue = X - 1, pe = -1,
|
7637
|
+
let ue = X - 1, pe = -1, we = !1, Xe, Ne, Je, it;
|
7638
7638
|
for (; ++ue <= re; ) {
|
7639
7639
|
const Oe = F[ue];
|
7640
7640
|
if (Oe[1].type === "listUnordered" || Oe[1].type === "listOrdered" || Oe[1].type === "blockQuote" ? (Oe[0] === "enter" ? pe++ : pe--, it = void 0) : Oe[1].type === "lineEndingBlank" ? Oe[0] === "enter" && (Xe && !it && !pe && !Je && (Je = ue), it = void 0) : Oe[1].type === "linePrefix" || Oe[1].type === "listItemValue" || Oe[1].type === "listItemMarker" || Oe[1].type === "listItemPrefix" || Oe[1].type === "listItemPrefixWhitespace" || (it = void 0), !pe && Oe[0] === "enter" && Oe[1].type === "listItemPrefix" || pe === -1 && Oe[0] === "exit" && (Oe[1].type === "listUnordered" || Oe[1].type === "listOrdered")) {
|
7641
7641
|
if (Xe) {
|
7642
7642
|
let rt = ue;
|
7643
|
-
for (
|
7643
|
+
for (Ne = void 0; rt--; ) {
|
7644
7644
|
const ze = F[rt];
|
7645
7645
|
if (ze[1].type === "lineEnding" || ze[1].type === "lineEndingBlank") {
|
7646
7646
|
if (ze[0] === "exit") continue;
|
7647
|
-
|
7647
|
+
Ne && (F[Ne][1].type = "lineEndingBlank", we = !0), ze[1].type = "lineEnding", Ne = rt;
|
7648
7648
|
} else if (!(ze[1].type === "linePrefix" || ze[1].type === "blockQuotePrefix" || ze[1].type === "blockQuotePrefixWhitespace" || ze[1].type === "blockQuoteMarker" || ze[1].type === "listItemIndent")) break;
|
7649
7649
|
}
|
7650
|
-
Je && (!
|
7650
|
+
Je && (!Ne || Je < Ne) && (Xe._spread = !0), Xe.end = Object.assign(
|
7651
7651
|
{},
|
7652
|
-
|
7653
|
-
), F.splice(
|
7652
|
+
Ne ? F[Ne][1].start : Oe[1].end
|
7653
|
+
), F.splice(Ne || ue, 0, ["exit", Xe, Oe[2]]), ue++, re++;
|
7654
7654
|
}
|
7655
7655
|
Oe[1].type === "listItemPrefix" && (Xe = {
|
7656
7656
|
type: "listItem",
|
@@ -7661,7 +7661,7 @@ function _m(e) {
|
|
7661
7661
|
}, F.splice(ue, 0, ["enter", Xe, Oe[2]]), ue++, re++, Je = void 0, it = !0);
|
7662
7662
|
}
|
7663
7663
|
}
|
7664
|
-
return F[X][1]._spread =
|
7664
|
+
return F[X][1]._spread = we, re;
|
7665
7665
|
}
|
7666
7666
|
function i(F, X) {
|
7667
7667
|
n[F] = X;
|
@@ -7741,7 +7741,7 @@ function _m(e) {
|
|
7741
7741
|
this.sliceSerialize(F)
|
7742
7742
|
).toLowerCase();
|
7743
7743
|
}
|
7744
|
-
function
|
7744
|
+
function w() {
|
7745
7745
|
const F = this.resume(), X = this.stack[this.stack.length - 1];
|
7746
7746
|
X.title = F;
|
7747
7747
|
}
|
@@ -7789,7 +7789,7 @@ function _m(e) {
|
|
7789
7789
|
function I() {
|
7790
7790
|
i("atHardBreak", !0);
|
7791
7791
|
}
|
7792
|
-
function
|
7792
|
+
function R() {
|
7793
7793
|
const F = this.resume(), X = this.stack[this.stack.length - 1];
|
7794
7794
|
X.value = F;
|
7795
7795
|
}
|
@@ -7991,11 +7991,11 @@ function Wt(e) {
|
|
7991
7991
|
offset: e.offset
|
7992
7992
|
};
|
7993
7993
|
}
|
7994
|
-
function
|
7994
|
+
function Rl(e, t) {
|
7995
7995
|
let n = -1;
|
7996
7996
|
for (; ++n < t.length; ) {
|
7997
7997
|
const r = t[n];
|
7998
|
-
Array.isArray(r) ?
|
7998
|
+
Array.isArray(r) ? Rl(e, r) : Cm(e, r);
|
7999
7999
|
}
|
8000
8000
|
}
|
8001
8001
|
function Cm(e, t) {
|
@@ -8099,7 +8099,7 @@ function Nm(e) {
|
|
8099
8099
|
return n !== null && e.test(String.fromCharCode(n));
|
8100
8100
|
}
|
8101
8101
|
}
|
8102
|
-
function
|
8102
|
+
function wn(e) {
|
8103
8103
|
const t = [];
|
8104
8104
|
let n = -1, r = 0, a = 0;
|
8105
8105
|
for (; ++n < e.length; ) {
|
@@ -8118,8 +8118,8 @@ function Rn(e) {
|
|
8118
8118
|
}
|
8119
8119
|
return t.join("") + e.slice(r);
|
8120
8120
|
}
|
8121
|
-
function
|
8122
|
-
const n = String(t.identifier).toUpperCase(), r =
|
8121
|
+
function wl(e, t) {
|
8122
|
+
const n = String(t.identifier).toUpperCase(), r = wn(n.toLowerCase()), a = e.footnoteOrder.indexOf(n);
|
8123
8123
|
let i;
|
8124
8124
|
a === -1 ? (e.footnoteOrder.push(n), e.footnoteCounts[n] = 1, i = e.footnoteOrder.length) : (e.footnoteCounts[n]++, i = a + 1);
|
8125
8125
|
const u = e.footnoteCounts[n], s = {
|
@@ -8152,7 +8152,7 @@ function km(e, t) {
|
|
8152
8152
|
identifier: a,
|
8153
8153
|
children: [{ type: "paragraph", children: t.children }],
|
8154
8154
|
position: t.position
|
8155
|
-
},
|
8155
|
+
}, wl(e, {
|
8156
8156
|
type: "footnoteReference",
|
8157
8157
|
identifier: a,
|
8158
8158
|
position: t.position
|
@@ -8167,7 +8167,7 @@ function Lm(e, t) {
|
|
8167
8167
|
};
|
8168
8168
|
return e.patch(t, n), e.applyData(t, n);
|
8169
8169
|
}
|
8170
|
-
function
|
8170
|
+
function Rm(e, t) {
|
8171
8171
|
if (e.dangerous) {
|
8172
8172
|
const n = { type: "raw", value: t.value };
|
8173
8173
|
return e.patch(t, n), e.applyData(t, n);
|
@@ -8184,17 +8184,17 @@ function Dl(e, t) {
|
|
8184
8184
|
const u = a[a.length - 1];
|
8185
8185
|
return u && u.type === "text" ? u.value += r : a.push({ type: "text", value: r }), a;
|
8186
8186
|
}
|
8187
|
-
function
|
8187
|
+
function wm(e, t) {
|
8188
8188
|
const n = e.definition(t.identifier);
|
8189
8189
|
if (!n)
|
8190
8190
|
return Dl(e, t);
|
8191
|
-
const r = { src:
|
8191
|
+
const r = { src: wn(n.url || ""), alt: t.alt };
|
8192
8192
|
n.title !== null && n.title !== void 0 && (r.title = n.title);
|
8193
8193
|
const a = { type: "element", tagName: "img", properties: r, children: [] };
|
8194
8194
|
return e.patch(t, a), e.applyData(t, a);
|
8195
8195
|
}
|
8196
8196
|
function Dm(e, t) {
|
8197
|
-
const n = { src:
|
8197
|
+
const n = { src: wn(t.url) };
|
8198
8198
|
t.alt !== null && t.alt !== void 0 && (n.alt = t.alt), t.title !== null && t.title !== void 0 && (n.title = t.title);
|
8199
8199
|
const r = { type: "element", tagName: "img", properties: n, children: [] };
|
8200
8200
|
return e.patch(t, r), e.applyData(t, r);
|
@@ -8214,7 +8214,7 @@ function Mm(e, t) {
|
|
8214
8214
|
const n = e.definition(t.identifier);
|
8215
8215
|
if (!n)
|
8216
8216
|
return Dl(e, t);
|
8217
|
-
const r = { href:
|
8217
|
+
const r = { href: wn(n.url || "") };
|
8218
8218
|
n.title !== null && n.title !== void 0 && (r.title = n.title);
|
8219
8219
|
const a = {
|
8220
8220
|
type: "element",
|
@@ -8225,7 +8225,7 @@ function Mm(e, t) {
|
|
8225
8225
|
return e.patch(t, a), e.applyData(t, a);
|
8226
8226
|
}
|
8227
8227
|
function Fm(e, t) {
|
8228
|
-
const n = { href:
|
8228
|
+
const n = { href: wn(t.url) };
|
8229
8229
|
t.title !== null && t.title !== void 0 && (n.title = t.title);
|
8230
8230
|
const r = {
|
8231
8231
|
type: "element",
|
@@ -8433,11 +8433,11 @@ const Qm = {
|
|
8433
8433
|
code: vm,
|
8434
8434
|
delete: Om,
|
8435
8435
|
emphasis: Im,
|
8436
|
-
footnoteReference:
|
8436
|
+
footnoteReference: wl,
|
8437
8437
|
footnote: km,
|
8438
8438
|
heading: Lm,
|
8439
|
-
html:
|
8440
|
-
imageReference:
|
8439
|
+
html: Rm,
|
8440
|
+
imageReference: wm,
|
8441
8441
|
image: Dm,
|
8442
8442
|
inlineCode: Pm,
|
8443
8443
|
linkReference: Mm,
|
@@ -8723,7 +8723,7 @@ function h2(e) {
|
|
8723
8723
|
const r = e.footnoteById[e.footnoteOrder[n]];
|
8724
8724
|
if (!r)
|
8725
8725
|
continue;
|
8726
|
-
const a = e.all(r), i = String(r.identifier).toUpperCase(), u =
|
8726
|
+
const a = e.all(r), i = String(r.identifier).toUpperCase(), u = wn(i.toLowerCase());
|
8727
8727
|
let s = 0;
|
8728
8728
|
const l = [];
|
8729
8729
|
for (; ++s <= e.footnoteCounts[i]; ) {
|
@@ -10053,9 +10053,9 @@ function v2() {
|
|
10053
10053
|
return typeof y == "string" || typeof y == "function" || y === n || y === a || y === r || y === c || y === d || y === h || typeof y == "object" && y !== null && (y.$$typeof === p || y.$$typeof === f || y.$$typeof === i || y.$$typeof === u || y.$$typeof === l || y.$$typeof === g || y.getModuleId !== void 0);
|
10054
10054
|
}, Ce.typeOf = m, Ce;
|
10055
10055
|
}
|
10056
|
-
var
|
10056
|
+
var Ro;
|
10057
10057
|
function O2() {
|
10058
|
-
return
|
10058
|
+
return Ro || (Ro = 1, Ba.exports = v2()), Ba.exports;
|
10059
10059
|
}
|
10060
10060
|
var I2 = O2();
|
10061
10061
|
const N2 = /* @__PURE__ */ Mt(I2);
|
@@ -10069,7 +10069,7 @@ function k2(e) {
|
|
10069
10069
|
);
|
10070
10070
|
return typeof t == "string" && t.replace(/[ \t\n\f\r]/g, "") === "";
|
10071
10071
|
}
|
10072
|
-
function
|
10072
|
+
function wo(e) {
|
10073
10073
|
const t = String(e || "").trim();
|
10074
10074
|
return t ? t.split(/[ \t\n\r\f]+/g) : [];
|
10075
10075
|
}
|
@@ -10107,19 +10107,19 @@ function L2() {
|
|
10107
10107
|
function M(L) {
|
10108
10108
|
var I = L.match(t);
|
10109
10109
|
I && (E += I.length);
|
10110
|
-
var
|
10111
|
-
P = ~
|
10110
|
+
var R = L.lastIndexOf(l);
|
10111
|
+
P = ~R ? L.length - R : P + L.length;
|
10112
10112
|
}
|
10113
10113
|
function W() {
|
10114
10114
|
var L = { line: E, column: P };
|
10115
10115
|
return function(I) {
|
10116
|
-
return I.position = new
|
10116
|
+
return I.position = new w(L), V(), I;
|
10117
10117
|
};
|
10118
10118
|
}
|
10119
|
-
function
|
10119
|
+
function w(L) {
|
10120
10120
|
this.start = L, this.end = { line: E, column: P }, this.source = y.source;
|
10121
10121
|
}
|
10122
|
-
|
10122
|
+
w.prototype.content = m;
|
10123
10123
|
function _(L) {
|
10124
10124
|
var I = new Error(
|
10125
10125
|
y.source + ":" + E + ":" + P + ": " + L
|
@@ -10129,8 +10129,8 @@ function L2() {
|
|
10129
10129
|
function N(L) {
|
10130
10130
|
var I = L.exec(m);
|
10131
10131
|
if (I) {
|
10132
|
-
var
|
10133
|
-
return M(
|
10132
|
+
var R = I[0];
|
10133
|
+
return M(R), m = m.slice(R.length), I;
|
10134
10134
|
}
|
10135
10135
|
}
|
10136
10136
|
function V() {
|
@@ -10149,10 +10149,10 @@ function L2() {
|
|
10149
10149
|
++I;
|
10150
10150
|
if (I += 2, f === m.charAt(I - 1))
|
10151
10151
|
return _("End of comment missing");
|
10152
|
-
var
|
10153
|
-
return P += 2, M(
|
10152
|
+
var R = m.slice(2, I - 2);
|
10153
|
+
return P += 2, M(R), m = m.slice(I), P += 2, L({
|
10154
10154
|
type: p,
|
10155
|
-
comment:
|
10155
|
+
comment: R
|
10156
10156
|
});
|
10157
10157
|
}
|
10158
10158
|
}
|
@@ -10160,10 +10160,10 @@ function L2() {
|
|
10160
10160
|
var L = W(), I = N(r);
|
10161
10161
|
if (I) {
|
10162
10162
|
if (te(), !N(a)) return _("property missing ':'");
|
10163
|
-
var
|
10163
|
+
var R = N(i), B = L({
|
10164
10164
|
type: h,
|
10165
10165
|
property: g(I[0].replace(e, f)),
|
10166
|
-
value:
|
10166
|
+
value: R ? g(R[0].replace(e, f)) : f
|
10167
10167
|
});
|
10168
10168
|
return N(u), B;
|
10169
10169
|
}
|
@@ -10183,7 +10183,7 @@ function L2() {
|
|
10183
10183
|
return Ha;
|
10184
10184
|
}
|
10185
10185
|
var Mo;
|
10186
|
-
function
|
10186
|
+
function R2() {
|
10187
10187
|
if (Mo) return Ir.exports;
|
10188
10188
|
Mo = 1;
|
10189
10189
|
var e = L2();
|
@@ -10197,8 +10197,8 @@ function w2() {
|
|
10197
10197
|
}
|
10198
10198
|
return Ir.exports = t, Ir.exports.default = t, Ir.exports;
|
10199
10199
|
}
|
10200
|
-
var
|
10201
|
-
const D2 = /* @__PURE__ */ Mt(
|
10200
|
+
var w2 = R2();
|
10201
|
+
const D2 = /* @__PURE__ */ Mt(w2), pi = {}.hasOwnProperty, P2 = /* @__PURE__ */ new Set(["table", "thead", "tbody", "tfoot", "tr"]);
|
10202
10202
|
function Zl(e, t) {
|
10203
10203
|
const n = [];
|
10204
10204
|
let r = -1, a;
|
@@ -11774,7 +11774,7 @@ function ig(e, t, n, r) {
|
|
11774
11774
|
if (typeof r == "number") {
|
11775
11775
|
if (Number.isNaN(r)) return;
|
11776
11776
|
i = r;
|
11777
|
-
} else typeof r == "boolean" ? i = r : typeof r == "string" ? a.spaceSeparated ? i =
|
11777
|
+
} else typeof r == "boolean" ? i = r : typeof r == "string" ? a.spaceSeparated ? i = wo(r) : a.commaSeparated ? i = Do(r) : a.commaOrSpaceSeparated ? i = wo(Do(r).join(" ")) : i = $o(a, a.property, r) : Array.isArray(r) ? i = [...r] : i = a.property === "style" ? ug(r) : String(r);
|
11778
11778
|
if (Array.isArray(i)) {
|
11779
11779
|
const u = [];
|
11780
11780
|
for (const s of i)
|
@@ -13205,7 +13205,7 @@ function _c(e, t) {
|
|
13205
13205
|
}
|
13206
13206
|
return r.handlers = n.handlers || {}, r.invalid = n.invalid, r.unknown = n.unknown, r;
|
13207
13207
|
}
|
13208
|
-
const Sg = {}, xg = {}.hasOwnProperty, Cc = _c("type", { handlers: { root: Og, element:
|
13208
|
+
const Sg = {}, xg = {}.hasOwnProperty, Cc = _c("type", { handlers: { root: Og, element: Rg, text: kg, comment: Lg, doctype: Ng } });
|
13209
13209
|
function vg(e, t) {
|
13210
13210
|
const r = (t || Sg).space;
|
13211
13211
|
return Cc(e, r === "svg" ? ji : Xl);
|
@@ -13249,7 +13249,7 @@ function Lg(e) {
|
|
13249
13249
|
};
|
13250
13250
|
return Fn(e, t), t;
|
13251
13251
|
}
|
13252
|
-
function
|
13252
|
+
function Rg(e, t) {
|
13253
13253
|
const n = t;
|
13254
13254
|
let r = n;
|
13255
13255
|
e.type === "element" && e.tagName.toLowerCase() === "svg" && n.space === "html" && (r = ji);
|
@@ -13258,7 +13258,7 @@ function wg(e, t) {
|
|
13258
13258
|
if (e.properties) {
|
13259
13259
|
for (i in e.properties)
|
13260
13260
|
if (i !== "children" && xg.call(e.properties, i)) {
|
13261
|
-
const l =
|
13261
|
+
const l = wg(
|
13262
13262
|
r,
|
13263
13263
|
i,
|
13264
13264
|
e.properties[i]
|
@@ -13277,7 +13277,7 @@ function wg(e, t) {
|
|
13277
13277
|
};
|
13278
13278
|
return s.childNodes = Ki(e.children, s, r), Fn(e, s), e.tagName === "template" && e.content && (s.content = Ig(e.content, r)), s;
|
13279
13279
|
}
|
13280
|
-
function
|
13280
|
+
function wg(e, t, n) {
|
13281
13281
|
const r = Gl(e, t);
|
13282
13282
|
if (n === !1 || n === null || n === void 0 || typeof n == "number" && Number.isNaN(n) || !n && r.boolean)
|
13283
13283
|
return;
|
@@ -16175,11 +16175,11 @@ class ob {
|
|
16175
16175
|
}
|
16176
16176
|
}
|
16177
16177
|
const za = 3;
|
16178
|
-
var
|
16178
|
+
var Rt;
|
16179
16179
|
(function(e) {
|
16180
16180
|
e[e.Marker = 0] = "Marker", e[e.Element = 1] = "Element";
|
16181
|
-
})(
|
16182
|
-
const ns = { type:
|
16181
|
+
})(Rt || (Rt = {}));
|
16182
|
+
const ns = { type: Rt.Marker };
|
16183
16183
|
class sb {
|
16184
16184
|
constructor(t) {
|
16185
16185
|
this.treeAdapter = t, this.entries = [], this.bookmark = null;
|
@@ -16191,7 +16191,7 @@ class sb {
|
|
16191
16191
|
const r = [], a = n.length, i = this.treeAdapter.getTagName(t), u = this.treeAdapter.getNamespaceURI(t);
|
16192
16192
|
for (let s = 0; s < this.entries.length; s++) {
|
16193
16193
|
const l = this.entries[s];
|
16194
|
-
if (l.type ===
|
16194
|
+
if (l.type === Rt.Marker)
|
16195
16195
|
break;
|
16196
16196
|
const { element: c } = l;
|
16197
16197
|
if (this.treeAdapter.getTagName(c) === i && this.treeAdapter.getNamespaceURI(c) === u) {
|
@@ -16220,7 +16220,7 @@ class sb {
|
|
16220
16220
|
}
|
16221
16221
|
pushElement(t, n) {
|
16222
16222
|
this._ensureNoahArkCondition(t), this.entries.unshift({
|
16223
|
-
type:
|
16223
|
+
type: Rt.Element,
|
16224
16224
|
element: t,
|
16225
16225
|
token: n
|
16226
16226
|
});
|
@@ -16228,7 +16228,7 @@ class sb {
|
|
16228
16228
|
insertElementAfterBookmark(t, n) {
|
16229
16229
|
const r = this.entries.indexOf(this.bookmark);
|
16230
16230
|
this.entries.splice(r, 0, {
|
16231
|
-
type:
|
16231
|
+
type: Rt.Element,
|
16232
16232
|
element: t,
|
16233
16233
|
token: n
|
16234
16234
|
});
|
@@ -16248,11 +16248,11 @@ class sb {
|
|
16248
16248
|
}
|
16249
16249
|
//Search
|
16250
16250
|
getElementEntryInScopeWithTagName(t) {
|
16251
|
-
const n = this.entries.find((r) => r.type ===
|
16252
|
-
return n && n.type ===
|
16251
|
+
const n = this.entries.find((r) => r.type === Rt.Marker || this.treeAdapter.getTagName(r.element) === t);
|
16252
|
+
return n && n.type === Rt.Element ? n : null;
|
16253
16253
|
}
|
16254
16254
|
getElementEntry(t) {
|
16255
|
-
return this.entries.find((n) => n.type ===
|
16255
|
+
return this.entries.find((n) => n.type === Rt.Element && n.element === t);
|
16256
16256
|
}
|
16257
16257
|
}
|
16258
16258
|
const Xt = {
|
@@ -16666,14 +16666,14 @@ function Cb(e) {
|
|
16666
16666
|
const t = e.tagID;
|
16667
16667
|
return t === o.FONT && e.attrs.some(({ name: r }) => r === dn.COLOR || r === dn.SIZE || r === dn.FACE) || _b.has(t);
|
16668
16668
|
}
|
16669
|
-
function
|
16669
|
+
function Rc(e) {
|
16670
16670
|
for (let t = 0; t < e.attrs.length; t++)
|
16671
16671
|
if (e.attrs[t].name === gb) {
|
16672
16672
|
e.attrs[t].name = bb;
|
16673
16673
|
break;
|
16674
16674
|
}
|
16675
16675
|
}
|
16676
|
-
function
|
16676
|
+
function wc(e) {
|
16677
16677
|
for (let t = 0; t < e.attrs.length; t++) {
|
16678
16678
|
const n = Eb.get(e.attrs[t].name);
|
16679
16679
|
n != null && (e.attrs[t].name = n);
|
@@ -16988,7 +16988,7 @@ class us {
|
|
16988
16988
|
_reconstructActiveFormattingElements() {
|
16989
16989
|
const t = this.activeFormattingElements.entries.length;
|
16990
16990
|
if (t) {
|
16991
|
-
const n = this.activeFormattingElements.entries.findIndex((a) => a.type ===
|
16991
|
+
const n = this.activeFormattingElements.entries.findIndex((a) => a.type === Rt.Marker || this.openElements.contains(a.element)), r = n === -1 ? t - 1 : n - 1;
|
16992
16992
|
for (let a = r; a >= 0; a--) {
|
16993
16993
|
const i = this.activeFormattingElements.entries[a];
|
16994
16994
|
this._insertElement(i.token, this.treeAdapter.getNamespaceURI(i.element)), i.element = this.openElements.current;
|
@@ -17454,7 +17454,7 @@ class us {
|
|
17454
17454
|
break;
|
17455
17455
|
}
|
17456
17456
|
case O.TEXT: {
|
17457
|
-
|
17457
|
+
wE(this, t);
|
17458
17458
|
break;
|
17459
17459
|
}
|
17460
17460
|
case O.IN_TABLE: {
|
@@ -17627,7 +17627,7 @@ function Lb(e, t) {
|
|
17627
17627
|
let n = e.activeFormattingElements.getElementEntryInScopeWithTagName(t.tagName);
|
17628
17628
|
return n ? e.openElements.contains(n.element) ? e.openElements.hasInScope(t.tagID) || (n = null) : (e.activeFormattingElements.removeEntry(n), n = null) : Hc(e, t), n;
|
17629
17629
|
}
|
17630
|
-
function
|
17630
|
+
function Rb(e, t) {
|
17631
17631
|
let n = null, r = e.openElements.stackTop;
|
17632
17632
|
for (; r >= 0; r--) {
|
17633
17633
|
const a = e.openElements.items[r];
|
@@ -17637,7 +17637,7 @@ function wb(e, t) {
|
|
17637
17637
|
}
|
17638
17638
|
return n || (e.openElements.shortenToLength(Math.max(r, 0)), e.activeFormattingElements.removeEntry(t)), n;
|
17639
17639
|
}
|
17640
|
-
function
|
17640
|
+
function wb(e, t, n) {
|
17641
17641
|
let r = t, a = e.openElements.getCommonAncestor(t);
|
17642
17642
|
for (let i = 0, u = a; u !== n; i++, u = a) {
|
17643
17643
|
a = e.openElements.getCommonAncestor(u);
|
@@ -17668,11 +17668,11 @@ function Zi(e, t) {
|
|
17668
17668
|
const r = Lb(e, t);
|
17669
17669
|
if (!r)
|
17670
17670
|
break;
|
17671
|
-
const a =
|
17671
|
+
const a = Rb(e, r);
|
17672
17672
|
if (!a)
|
17673
17673
|
break;
|
17674
17674
|
e.activeFormattingElements.bookmark = r;
|
17675
|
-
const i =
|
17675
|
+
const i = wb(e, a, r.element), u = e.openElements.getCommonAncestor(r.element);
|
17676
17676
|
e.treeAdapter.detachNode(i), u && Pb(e, u, i), Mb(e, a, r);
|
17677
17677
|
}
|
17678
17678
|
}
|
@@ -18041,10 +18041,10 @@ function yE(e, t) {
|
|
18041
18041
|
e.openElements.hasInScope(o.RUBY) && e.openElements.generateImpliedEndTagsWithExclusion(o.RTC), e._insertElement(t, K.HTML);
|
18042
18042
|
}
|
18043
18043
|
function _E(e, t) {
|
18044
|
-
e._reconstructActiveFormattingElements(),
|
18044
|
+
e._reconstructActiveFormattingElements(), Rc(t), Qi(t), t.selfClosing ? e._appendElement(t, K.MATHML) : e._insertElement(t, K.MATHML), t.ackSelfClosing = !0;
|
18045
18045
|
}
|
18046
18046
|
function CE(e, t) {
|
18047
|
-
e._reconstructActiveFormattingElements(),
|
18047
|
+
e._reconstructActiveFormattingElements(), wc(t), Qi(t), t.selfClosing ? e._appendElement(t, K.SVG) : e._insertElement(t, K.SVG), t.ackSelfClosing = !0;
|
18048
18048
|
}
|
18049
18049
|
function ss(e, t) {
|
18050
18050
|
e._reconstructActiveFormattingElements(), e._insertElement(t, K.HTML);
|
@@ -18293,7 +18293,7 @@ function LE(e, t) {
|
|
18293
18293
|
const n = t.tagID;
|
18294
18294
|
e.openElements.hasInScope(n) && (e.openElements.generateImpliedEndTags(), e.openElements.popUntilTagNamePopped(n), e.activeFormattingElements.clearToLastMarker());
|
18295
18295
|
}
|
18296
|
-
function
|
18296
|
+
function RE(e) {
|
18297
18297
|
e._reconstructActiveFormattingElements(), e._insertFakeElement(D.BR, o.BR), e.openElements.pop(), e.framesetOk = !1;
|
18298
18298
|
}
|
18299
18299
|
function Hc(e, t) {
|
@@ -18380,7 +18380,7 @@ function ra(e, t) {
|
|
18380
18380
|
break;
|
18381
18381
|
}
|
18382
18382
|
case o.BR: {
|
18383
|
-
|
18383
|
+
RE(e);
|
18384
18384
|
break;
|
18385
18385
|
}
|
18386
18386
|
case o.BODY: {
|
@@ -18412,7 +18412,7 @@ function ra(e, t) {
|
|
18412
18412
|
function Uc(e, t) {
|
18413
18413
|
e.tmplInsertionModeStack.length > 0 ? Wc(e, t) : Ji(e, t);
|
18414
18414
|
}
|
18415
|
-
function
|
18415
|
+
function wE(e, t) {
|
18416
18416
|
var n;
|
18417
18417
|
t.tagID === o.SCRIPT && ((n = e.scriptHandler) === null || n === void 0 || n.call(e, e.openElements.current)), e.openElements.pop(), e.insertionMode = e.originalInsertionMode;
|
18418
18418
|
}
|
@@ -18942,7 +18942,7 @@ function oT(e, t) {
|
|
18942
18942
|
Xc(e), e._startTagOutsideForeignContent(t);
|
18943
18943
|
else {
|
18944
18944
|
const n = e._getAdjustedCurrentElement(), r = e.treeAdapter.getNamespaceURI(n);
|
18945
|
-
r === K.MATHML ?
|
18945
|
+
r === K.MATHML ? Rc(t) : r === K.SVG && (Ab(t), wc(t)), Qi(t), t.selfClosing ? e._appendElement(t, r) : e._insertElement(t, r), t.ackSelfClosing = !0;
|
18946
18946
|
}
|
18947
18947
|
}
|
18948
18948
|
function sT(e, t) {
|
@@ -19313,7 +19313,7 @@ function Tr(e) {
|
|
19313
19313
|
function LT(e) {
|
19314
19314
|
return "children" in e ? jo({ ...e, children: [] }) : jo(e);
|
19315
19315
|
}
|
19316
|
-
function
|
19316
|
+
function RT(e) {
|
19317
19317
|
return function(t, n) {
|
19318
19318
|
return (
|
19319
19319
|
/** @type {Root} */
|
@@ -19321,24 +19321,24 @@ function wT(e) {
|
|
19321
19321
|
);
|
19322
19322
|
};
|
19323
19323
|
}
|
19324
|
-
var Hr = { exports: {} },
|
19324
|
+
var Hr = { exports: {} }, wT = Hr.exports, ds;
|
19325
19325
|
function DT() {
|
19326
19326
|
return ds || (ds = 1, function(e, t) {
|
19327
19327
|
(function(n, r) {
|
19328
19328
|
e.exports = r();
|
19329
|
-
})(
|
19329
|
+
})(wT, function() {
|
19330
19330
|
var n = 1e3, r = 6e4, a = 36e5, i = "millisecond", u = "second", s = "minute", l = "hour", c = "day", d = "week", f = "month", p = "quarter", h = "year", g = "date", m = "Invalid Date", y = /^(\d{4})[-/]?(\d{1,2})?[-/]?(\d{0,2})[Tt\s]*(\d{1,2})?:?(\d{1,2})?:?(\d{1,2})?[.:]?(\d+)?$/, E = /\[([^\]]+)]|Y{1,4}|M{1,4}|D{1,2}|d{1,4}|H{1,2}|h{1,2}|a|A|m{1,2}|s{1,2}|Z{1,2}|SSS/g, P = { name: "en", weekdays: "Sunday_Monday_Tuesday_Wednesday_Thursday_Friday_Saturday".split("_"), months: "January_February_March_April_May_June_July_August_September_October_November_December".split("_"), ordinal: function(I) {
|
19331
|
-
var
|
19332
|
-
return "[" + I + (
|
19333
|
-
} }, M = function(I,
|
19331
|
+
var R = ["th", "st", "nd", "rd"], B = I % 100;
|
19332
|
+
return "[" + I + (R[(B - 20) % 10] || R[B] || R[0]) + "]";
|
19333
|
+
} }, M = function(I, R, B) {
|
19334
19334
|
var G = String(I);
|
19335
|
-
return !G || G.length >=
|
19335
|
+
return !G || G.length >= R ? I : "" + Array(R + 1 - G.length).join(B) + I;
|
19336
19336
|
}, W = { s: M, z: function(I) {
|
19337
|
-
var
|
19338
|
-
return (
|
19339
|
-
}, m: function I(
|
19340
|
-
if (
|
19341
|
-
var G = 12 * (B.year() -
|
19337
|
+
var R = -I.utcOffset(), B = Math.abs(R), G = Math.floor(B / 60), j = B % 60;
|
19338
|
+
return (R <= 0 ? "+" : "-") + M(G, 2, "0") + ":" + M(j, 2, "0");
|
19339
|
+
}, m: function I(R, B) {
|
19340
|
+
if (R.date() < B.date()) return -I(B, R);
|
19341
|
+
var G = 12 * (B.year() - R.year()) + (B.month() - R.month()), j = R.clone().add(G, f), q = B - j < 0, b = R.clone().add(G + (q ? -1 : 1), f);
|
19342
19342
|
return +(-(G + (B - j) / (q ? j - b : b - j)) || 0);
|
19343
19343
|
}, a: function(I) {
|
19344
19344
|
return I < 0 ? Math.ceil(I) || 0 : Math.floor(I);
|
@@ -19346,37 +19346,37 @@ function DT() {
|
|
19346
19346
|
return { M: f, y: h, w: d, d: c, D: g, h: l, m: s, s: u, ms: i, Q: p }[I] || String(I || "").toLowerCase().replace(/s$/, "");
|
19347
19347
|
}, u: function(I) {
|
19348
19348
|
return I === void 0;
|
19349
|
-
} },
|
19350
|
-
_[
|
19349
|
+
} }, w = "en", _ = {};
|
19350
|
+
_[w] = P;
|
19351
19351
|
var N = "$isDayjsObject", V = function(I) {
|
19352
19352
|
return I instanceof $ || !(!I || !I[N]);
|
19353
|
-
}, H = function I(
|
19353
|
+
}, H = function I(R, B, G) {
|
19354
19354
|
var j;
|
19355
|
-
if (!
|
19356
|
-
if (typeof
|
19357
|
-
var q =
|
19355
|
+
if (!R) return w;
|
19356
|
+
if (typeof R == "string") {
|
19357
|
+
var q = R.toLowerCase();
|
19358
19358
|
_[q] && (j = q), B && (_[q] = B, j = q);
|
19359
|
-
var b =
|
19359
|
+
var b = R.split("-");
|
19360
19360
|
if (!j && b.length > 1) return I(b[0]);
|
19361
19361
|
} else {
|
19362
|
-
var ne =
|
19363
|
-
_[ne] =
|
19362
|
+
var ne = R.name;
|
19363
|
+
_[ne] = R, j = ne;
|
19364
19364
|
}
|
19365
|
-
return !G && j && (
|
19366
|
-
}, te = function(I,
|
19365
|
+
return !G && j && (w = j), j || !G && w;
|
19366
|
+
}, te = function(I, R) {
|
19367
19367
|
if (V(I)) return I.clone();
|
19368
|
-
var B = typeof
|
19368
|
+
var B = typeof R == "object" ? R : {};
|
19369
19369
|
return B.date = I, B.args = arguments, new $(B);
|
19370
19370
|
}, Y = W;
|
19371
|
-
Y.l = H, Y.i = V, Y.w = function(I,
|
19372
|
-
return te(I, { locale:
|
19371
|
+
Y.l = H, Y.i = V, Y.w = function(I, R) {
|
19372
|
+
return te(I, { locale: R.$L, utc: R.$u, x: R.$x, $offset: R.$offset });
|
19373
19373
|
};
|
19374
19374
|
var $ = function() {
|
19375
19375
|
function I(B) {
|
19376
19376
|
this.$L = H(B.locale, null, !0), this.parse(B), this.$x = this.$x || B.x || {}, this[N] = !0;
|
19377
19377
|
}
|
19378
|
-
var
|
19379
|
-
return
|
19378
|
+
var R = I.prototype;
|
19379
|
+
return R.parse = function(B) {
|
19380
19380
|
this.$d = function(G) {
|
19381
19381
|
var j = G.date, q = G.utc;
|
19382
19382
|
if (j === null) return /* @__PURE__ */ new Date(NaN);
|
@@ -19391,27 +19391,27 @@ function DT() {
|
|
19391
19391
|
}
|
19392
19392
|
return new Date(j);
|
19393
19393
|
}(B), this.init();
|
19394
|
-
},
|
19394
|
+
}, R.init = function() {
|
19395
19395
|
var B = this.$d;
|
19396
19396
|
this.$y = B.getFullYear(), this.$M = B.getMonth(), this.$D = B.getDate(), this.$W = B.getDay(), this.$H = B.getHours(), this.$m = B.getMinutes(), this.$s = B.getSeconds(), this.$ms = B.getMilliseconds();
|
19397
|
-
},
|
19397
|
+
}, R.$utils = function() {
|
19398
19398
|
return Y;
|
19399
|
-
},
|
19399
|
+
}, R.isValid = function() {
|
19400
19400
|
return this.$d.toString() !== m;
|
19401
|
-
},
|
19401
|
+
}, R.isSame = function(B, G) {
|
19402
19402
|
var j = te(B);
|
19403
19403
|
return this.startOf(G) <= j && j <= this.endOf(G);
|
19404
|
-
},
|
19404
|
+
}, R.isAfter = function(B, G) {
|
19405
19405
|
return te(B) < this.startOf(G);
|
19406
|
-
},
|
19406
|
+
}, R.isBefore = function(B, G) {
|
19407
19407
|
return this.endOf(G) < te(B);
|
19408
|
-
},
|
19408
|
+
}, R.$g = function(B, G, j) {
|
19409
19409
|
return Y.u(B) ? this[G] : this.set(j, B);
|
19410
|
-
},
|
19410
|
+
}, R.unix = function() {
|
19411
19411
|
return Math.floor(this.valueOf() / 1e3);
|
19412
|
-
},
|
19412
|
+
}, R.valueOf = function() {
|
19413
19413
|
return this.$d.getTime();
|
19414
|
-
},
|
19414
|
+
}, R.startOf = function(B, G) {
|
19415
19415
|
var j = this, q = !!Y.u(G) || G, b = Y.p(B), ne = function(je, ve) {
|
19416
19416
|
var Ze = Y.w(j.$u ? Date.UTC(j.$y, ve, je) : new Date(j.$y, ve, je), j);
|
19417
19417
|
return q ? Ze : Ze.endOf(c);
|
@@ -19438,20 +19438,20 @@ function DT() {
|
|
19438
19438
|
default:
|
19439
19439
|
return this.clone();
|
19440
19440
|
}
|
19441
|
-
},
|
19441
|
+
}, R.endOf = function(B) {
|
19442
19442
|
return this.startOf(B, !1);
|
19443
|
-
},
|
19443
|
+
}, R.$set = function(B, G) {
|
19444
19444
|
var j, q = Y.p(B), b = "set" + (this.$u ? "UTC" : ""), ne = (j = {}, j[c] = b + "Date", j[g] = b + "Date", j[f] = b + "Month", j[h] = b + "FullYear", j[l] = b + "Hours", j[s] = b + "Minutes", j[u] = b + "Seconds", j[i] = b + "Milliseconds", j)[q], le = q === c ? this.$D + (G - this.$W) : G;
|
19445
19445
|
if (q === f || q === h) {
|
19446
19446
|
var x = this.clone().set(g, 1);
|
19447
19447
|
x.$d[ne](le), x.init(), this.$d = x.set(g, Math.min(this.$D, x.daysInMonth())).$d;
|
19448
19448
|
} else ne && this.$d[ne](le);
|
19449
19449
|
return this.init(), this;
|
19450
|
-
},
|
19450
|
+
}, R.set = function(B, G) {
|
19451
19451
|
return this.clone().$set(B, G);
|
19452
|
-
},
|
19452
|
+
}, R.get = function(B) {
|
19453
19453
|
return this[Y.p(B)]();
|
19454
|
-
},
|
19454
|
+
}, R.add = function(B, G) {
|
19455
19455
|
var j, q = this;
|
19456
19456
|
B = Number(B);
|
19457
19457
|
var b = Y.p(G), ne = function(oe) {
|
@@ -19464,9 +19464,9 @@ function DT() {
|
|
19464
19464
|
if (b === d) return ne(7);
|
19465
19465
|
var le = (j = {}, j[s] = r, j[l] = a, j[u] = n, j)[b] || 1, x = this.$d.getTime() + B * le;
|
19466
19466
|
return Y.w(x, this);
|
19467
|
-
},
|
19467
|
+
}, R.subtract = function(B, G) {
|
19468
19468
|
return this.add(-1 * B, G);
|
19469
|
-
},
|
19469
|
+
}, R.format = function(B) {
|
19470
19470
|
var G = this, j = this.$locale();
|
19471
19471
|
if (!this.isValid()) return j.invalidDate || m;
|
19472
19472
|
var q = B || "YYYY-MM-DDTHH:mm:ssZ", b = Y.z(this), ne = this.$H, le = this.$m, x = this.$M, oe = j.weekdays, ye = j.months, me = j.meridiem, Ae = function(ve, Ze, ft, It) {
|
@@ -19532,9 +19532,9 @@ function DT() {
|
|
19532
19532
|
return null;
|
19533
19533
|
}(ve) || b.replace(":", "");
|
19534
19534
|
});
|
19535
|
-
},
|
19535
|
+
}, R.utcOffset = function() {
|
19536
19536
|
return 15 * -Math.round(this.$d.getTimezoneOffset() / 15);
|
19537
|
-
},
|
19537
|
+
}, R.diff = function(B, G, j) {
|
19538
19538
|
var q, b = this, ne = Y.p(G), le = te(B), x = (le.utcOffset() - this.utcOffset()) * r, oe = this - le, ye = function() {
|
19539
19539
|
return Y.m(b, le);
|
19540
19540
|
};
|
@@ -19567,35 +19567,35 @@ function DT() {
|
|
19567
19567
|
q = oe;
|
19568
19568
|
}
|
19569
19569
|
return j ? q : Y.a(q);
|
19570
|
-
},
|
19570
|
+
}, R.daysInMonth = function() {
|
19571
19571
|
return this.endOf(f).$D;
|
19572
|
-
},
|
19572
|
+
}, R.$locale = function() {
|
19573
19573
|
return _[this.$L];
|
19574
|
-
},
|
19574
|
+
}, R.locale = function(B, G) {
|
19575
19575
|
if (!B) return this.$L;
|
19576
19576
|
var j = this.clone(), q = H(B, G, !0);
|
19577
19577
|
return q && (j.$L = q), j;
|
19578
|
-
},
|
19578
|
+
}, R.clone = function() {
|
19579
19579
|
return Y.w(this.$d, this);
|
19580
|
-
},
|
19580
|
+
}, R.toDate = function() {
|
19581
19581
|
return new Date(this.valueOf());
|
19582
|
-
},
|
19582
|
+
}, R.toJSON = function() {
|
19583
19583
|
return this.isValid() ? this.toISOString() : null;
|
19584
|
-
},
|
19584
|
+
}, R.toISOString = function() {
|
19585
19585
|
return this.$d.toISOString();
|
19586
|
-
},
|
19586
|
+
}, R.toString = function() {
|
19587
19587
|
return this.$d.toUTCString();
|
19588
19588
|
}, I;
|
19589
19589
|
}(), L = $.prototype;
|
19590
19590
|
return te.prototype = L, [["$ms", i], ["$s", u], ["$m", s], ["$H", l], ["$W", c], ["$M", f], ["$y", h], ["$D", g]].forEach(function(I) {
|
19591
|
-
L[I[1]] = function(
|
19592
|
-
return this.$g(
|
19591
|
+
L[I[1]] = function(R) {
|
19592
|
+
return this.$g(R, I[0], I[1]);
|
19593
19593
|
};
|
19594
|
-
}), te.extend = function(I,
|
19595
|
-
return I.$i || (I(
|
19594
|
+
}), te.extend = function(I, R) {
|
19595
|
+
return I.$i || (I(R, $, te), I.$i = !0), te;
|
19596
19596
|
}, te.locale = H, te.isDayjs = V, te.unix = function(I) {
|
19597
19597
|
return te(1e3 * I);
|
19598
|
-
}, te.en = _[
|
19598
|
+
}, te.en = _[w], te.Ls = _, te.p = {}, te;
|
19599
19599
|
});
|
19600
19600
|
}(Hr)), Hr.exports;
|
19601
19601
|
}
|
@@ -19656,30 +19656,30 @@ function tu({
|
|
19656
19656
|
}) {
|
19657
19657
|
var E, P, M, W;
|
19658
19658
|
const [l, c] = ce(!0), { primaryColor: d, id: f, userTracking: p, conversationScreen: h } = se(Ye), g = st(
|
19659
|
-
(
|
19659
|
+
(w) => {
|
19660
19660
|
var _, N, V, H;
|
19661
|
-
((_ =
|
19661
|
+
((_ = w == null ? void 0 : w.data) == null ? void 0 : _.who) === "customer" && (!(window != null && window.OnetrustActiveGroups) || (N = window == null ? void 0 : window.OnetrustActiveGroups) != null && N.includes("C0003")) && lt.set(`${f}-live-chat-open`, 1, {
|
19662
19662
|
expires: 1,
|
19663
19663
|
path: "/"
|
19664
|
-
}), ((V =
|
19664
|
+
}), ((V = w == null ? void 0 : w.data) == null ? void 0 : V.type) === "connection" && ((H = w == null ? void 0 : w.data) == null ? void 0 : H.state) === "disconnected" && lt.remove(`${f}-live-chat-open`);
|
19665
19665
|
},
|
19666
19666
|
[f]
|
19667
19667
|
), m = st(
|
19668
|
-
(
|
19668
|
+
(w) => {
|
19669
19669
|
var _, N, V, H;
|
19670
|
-
((_ =
|
19670
|
+
((_ = w == null ? void 0 : w.data) == null ? void 0 : _.type) === "unhide" && ((N = w == null ? void 0 : w.data) == null ? void 0 : N.reason) === "pop-out" && a(!0), ((V = w == null ? void 0 : w.data) == null ? void 0 : V.type) === "open" && ((H = w == null ? void 0 : w.data) == null ? void 0 : H.chatState) === !0 && a(!0);
|
19671
19671
|
},
|
19672
19672
|
[a]
|
19673
19673
|
);
|
19674
|
-
|
19674
|
+
Re(() => {
|
19675
19675
|
var N, V, H, te;
|
19676
|
-
let
|
19676
|
+
let w, _;
|
19677
19677
|
return (N = h == null ? void 0 : h.liveChat) != null && N.useOwnChat && (_ = setTimeout(() => {
|
19678
19678
|
c(!1);
|
19679
|
-
}, 3e3)), (V = h == null ? void 0 : h.liveChat) != null && V.enabled && !((H = h == null ? void 0 : h.liveChat) != null && H.useOwnChat) && (window.Five9ChatPlugin || (
|
19679
|
+
}, 3e3)), (V = h == null ? void 0 : h.liveChat) != null && V.enabled && !((H = h == null ? void 0 : h.liveChat) != null && H.useOwnChat) && (window.Five9ChatPlugin || (w = document.createElement("script"), w.type = "text/javascript", w.src = (te = h == null ? void 0 : h.liveChat) == null ? void 0 : te.sourceCode, w.async = !0, w.onload = () => {
|
19680
19680
|
var Y;
|
19681
19681
|
window.Five9ChatPlugin((Y = h == null ? void 0 : h.liveChat) == null ? void 0 : Y.options);
|
19682
|
-
}, document.body.appendChild(
|
19682
|
+
}, document.body.appendChild(w)), window.addEventListener("message", g), window.addEventListener("message", m), _ = setTimeout(() => {
|
19683
19683
|
c(!1);
|
19684
19684
|
}, 3e3)), () => {
|
19685
19685
|
var Y;
|
@@ -19694,7 +19694,7 @@ function tu({
|
|
19694
19694
|
m
|
19695
19695
|
]);
|
19696
19696
|
const y = () => {
|
19697
|
-
var
|
19697
|
+
var w;
|
19698
19698
|
i({
|
19699
19699
|
name: `${p == null ? void 0 : p.prefix}.bi.xpert.chatbot.popup.live.chat.${s}`,
|
19700
19700
|
payload: {
|
@@ -19702,7 +19702,7 @@ function tu({
|
|
19702
19702
|
label: "xpert-chatbot",
|
19703
19703
|
isTestUser: r
|
19704
19704
|
}
|
19705
|
-
}), a(!0), (
|
19705
|
+
}), a(!0), (w = h == null ? void 0 : h.liveChat) != null && w.useOwnChat || window.f9_postMessage({ type: "toggle" });
|
19706
19706
|
};
|
19707
19707
|
return /* @__PURE__ */ S.jsxs("div", { title: "Talk to a live agent at anytime.", style: t, children: [
|
19708
19708
|
l && n && /* @__PURE__ */ S.jsxs("div", { className: "xpert-chatbot-popup__live-chat--message", children: [
|
@@ -19922,20 +19922,8 @@ const zT = () => /* @__PURE__ */ S.jsx(
|
|
19922
19922
|
)
|
19923
19923
|
}
|
19924
19924
|
), od = ({ src: e, alt: t, ...n }) => {
|
19925
|
-
const r = tt(null), [a, i] = ce(!1)
|
19926
|
-
return
|
19927
|
-
const l = r.current;
|
19928
|
-
if (!l) return;
|
19929
|
-
const c = new IntersectionObserver(
|
19930
|
-
([d]) => {
|
19931
|
-
i(d.isIntersecting);
|
19932
|
-
},
|
19933
|
-
{ threshold: 0.01 }
|
19934
|
-
);
|
19935
|
-
return c.observe(l), () => {
|
19936
|
-
c.disconnect();
|
19937
|
-
};
|
19938
|
-
}, []), /* @__PURE__ */ S.jsxs(
|
19925
|
+
const r = tt(null), [a, i] = ce(!1);
|
19926
|
+
return /* @__PURE__ */ S.jsxs(
|
19939
19927
|
"div",
|
19940
19928
|
{
|
19941
19929
|
ref: r,
|
@@ -19950,15 +19938,15 @@ const zT = () => /* @__PURE__ */ S.jsx(
|
|
19950
19938
|
role: "img",
|
19951
19939
|
"aria-label": t || "Image",
|
19952
19940
|
children: [
|
19953
|
-
|
19954
|
-
a &&
|
19941
|
+
a && /* @__PURE__ */ S.jsx(zT, {}),
|
19942
|
+
!a && /* @__PURE__ */ S.jsx(
|
19955
19943
|
"img",
|
19956
19944
|
{
|
19957
19945
|
src: e,
|
19958
19946
|
alt: t,
|
19959
19947
|
loading: "lazy",
|
19960
19948
|
onError: () => {
|
19961
|
-
|
19949
|
+
i(!0);
|
19962
19950
|
},
|
19963
19951
|
style: {
|
19964
19952
|
maxWidth: "100%",
|
@@ -20093,7 +20081,7 @@ const WT = (e) => ({
|
|
20093
20081
|
), W = cn(
|
20094
20082
|
() => WT(l)(f),
|
20095
20083
|
[f, l]
|
20096
|
-
),
|
20084
|
+
), w = cn(() => {
|
20097
20085
|
if (!P) return null;
|
20098
20086
|
const N = GT(W);
|
20099
20087
|
return /* @__PURE__ */ S.jsx(
|
@@ -20104,7 +20092,7 @@ const WT = (e) => ({
|
|
20104
20092
|
M[y].bubbleStyle
|
20105
20093
|
),
|
20106
20094
|
linkTarget: "_blank",
|
20107
|
-
rehypePlugins: [
|
20095
|
+
rehypePlugins: [RT],
|
20108
20096
|
transformLinkUri: VT,
|
20109
20097
|
children: N
|
20110
20098
|
}
|
@@ -20144,7 +20132,7 @@ const WT = (e) => ({
|
|
20144
20132
|
className: M[y].bubbleClassName,
|
20145
20133
|
style: M[y].bubbleStyle,
|
20146
20134
|
children: [
|
20147
|
-
|
20135
|
+
w,
|
20148
20136
|
E && /* @__PURE__ */ S.jsxs(S.Fragment, { children: [
|
20149
20137
|
/* @__PURE__ */ S.jsx("div", { children: XT }),
|
20150
20138
|
/* @__PURE__ */ S.jsx(
|
@@ -20225,7 +20213,7 @@ au.propTypes = {
|
|
20225
20213
|
au.displayName = "NotificationMessage";
|
20226
20214
|
function ld({ disableScroll: e }) {
|
20227
20215
|
const t = tt(null);
|
20228
|
-
return
|
20216
|
+
return Re(() => {
|
20229
20217
|
var n;
|
20230
20218
|
e || (n = t.current) == null || n.scrollIntoView({
|
20231
20219
|
behavior: "smooth",
|
@@ -20417,11 +20405,11 @@ const dd = ({ chatContentRef: e, messages: t }) => {
|
|
20417
20405
|
behavior: "smooth"
|
20418
20406
|
}), u.current && u.current.focus();
|
20419
20407
|
};
|
20420
|
-
return
|
20408
|
+
return Re(() => {
|
20421
20409
|
const c = e.current;
|
20422
20410
|
if (c)
|
20423
20411
|
return c.addEventListener("scroll", s), () => c.removeEventListener("scroll", s);
|
20424
|
-
}, [e, s]),
|
20412
|
+
}, [e, s]), Re(() => {
|
20425
20413
|
!n && e.current && e.current.scrollTo({
|
20426
20414
|
top: e.current.scrollHeight,
|
20427
20415
|
behavior: "smooth"
|
@@ -20617,10 +20605,10 @@ function ou() {
|
|
20617
20605
|
};
|
20618
20606
|
return jt.setUpSocketIOPing = r, jt;
|
20619
20607
|
}
|
20620
|
-
var
|
20608
|
+
var Rr = {}, gs;
|
20621
20609
|
function hd() {
|
20622
|
-
if (gs) return
|
20623
|
-
gs = 1, Object.defineProperty(
|
20610
|
+
if (gs) return Rr;
|
20611
|
+
gs = 1, Object.defineProperty(Rr, "__esModule", { value: !0 }), Rr.heartbeat = n;
|
20624
20612
|
var e = Ft();
|
20625
20613
|
function t(r) {
|
20626
20614
|
return Array.isArray(r) ? r.reduce(function(a, i) {
|
@@ -20644,7 +20632,7 @@ function hd() {
|
|
20644
20632
|
}), function() {
|
20645
20633
|
};
|
20646
20634
|
}
|
20647
|
-
return
|
20635
|
+
return Rr;
|
20648
20636
|
}
|
20649
20637
|
var Zn = {}, Xa = {}, bs;
|
20650
20638
|
function su() {
|
@@ -20754,9 +20742,9 @@ function ZT() {
|
|
20754
20742
|
return m && window.clearTimeout(m);
|
20755
20743
|
};
|
20756
20744
|
}, c = function(d, f, p, h, g, m, y) {
|
20757
|
-
var E = f.setLastMessage, P = f.setReadyState, M, W,
|
20758
|
-
return p.current.fromSocketIO && (M = (0, t.setUpSocketIOPing)(y)), i(d, p, E, m), u(d, p, P, g, m), W = s(d, p, P, h, g),
|
20759
|
-
P(r.ReadyState.CLOSING), W(),
|
20745
|
+
var E = f.setLastMessage, P = f.setReadyState, M, W, w;
|
20746
|
+
return p.current.fromSocketIO && (M = (0, t.setUpSocketIOPing)(y)), i(d, p, E, m), u(d, p, P, g, m), W = s(d, p, P, h, g), w = l(d, p, P, h, g), function() {
|
20747
|
+
P(r.ReadyState.CLOSING), W(), w(), d.close(), M && clearInterval(M);
|
20760
20748
|
};
|
20761
20749
|
};
|
20762
20750
|
return an.attachListeners = c, an;
|
@@ -20968,7 +20956,7 @@ function t3() {
|
|
20968
20956
|
for (var d = [], f = 2; f < arguments.length; f++)
|
20969
20957
|
d[f - 2] = arguments[f];
|
20970
20958
|
return t(void 0, r([l, c], d, !0), void 0, function(p, h, g) {
|
20971
|
-
var m, y, E, P, M, W,
|
20959
|
+
var m, y, E, P, M, W, w, _;
|
20972
20960
|
return g === void 0 && (g = 0), n(this, function(N) {
|
20973
20961
|
switch (N.label) {
|
20974
20962
|
case 0:
|
@@ -20983,7 +20971,7 @@ function t3() {
|
|
20983
20971
|
case 4:
|
20984
20972
|
return N.sent(), [2, (0, e.getUrl)(p, h, g + 1)];
|
20985
20973
|
case 5:
|
20986
|
-
return (_ = (
|
20974
|
+
return (_ = (w = h.current).onReconnectStop) === null || _ === void 0 || _.call(w, g), [2, null];
|
20987
20975
|
case 6:
|
20988
20976
|
return [3, 8];
|
20989
20977
|
case 7:
|
@@ -21043,22 +21031,22 @@ function cu() {
|
|
21043
21031
|
return new (g || (g = Promise))(function(E, P) {
|
21044
21032
|
function M(_) {
|
21045
21033
|
try {
|
21046
|
-
|
21034
|
+
w(m.next(_));
|
21047
21035
|
} catch (N) {
|
21048
21036
|
P(N);
|
21049
21037
|
}
|
21050
21038
|
}
|
21051
21039
|
function W(_) {
|
21052
21040
|
try {
|
21053
|
-
|
21041
|
+
w(m.throw(_));
|
21054
21042
|
} catch (N) {
|
21055
21043
|
P(N);
|
21056
21044
|
}
|
21057
21045
|
}
|
21058
|
-
function
|
21046
|
+
function w(_) {
|
21059
21047
|
_.done ? E(_.value) : y(_.value).then(M, W);
|
21060
21048
|
}
|
21061
|
-
|
21049
|
+
w((m = m.apply(p, h || [])).next());
|
21062
21050
|
});
|
21063
21051
|
}, n = pt && pt.__generator || function(p, h) {
|
21064
21052
|
var g = { label: 0, sent: function() {
|
@@ -21068,64 +21056,64 @@ function cu() {
|
|
21068
21056
|
return P.next = M(0), P.throw = M(1), P.return = M(2), typeof Symbol == "function" && (P[Symbol.iterator] = function() {
|
21069
21057
|
return this;
|
21070
21058
|
}), P;
|
21071
|
-
function M(
|
21059
|
+
function M(w) {
|
21072
21060
|
return function(_) {
|
21073
|
-
return W([
|
21061
|
+
return W([w, _]);
|
21074
21062
|
};
|
21075
21063
|
}
|
21076
|
-
function W(
|
21064
|
+
function W(w) {
|
21077
21065
|
if (m) throw new TypeError("Generator is already executing.");
|
21078
|
-
for (; P && (P = 0,
|
21079
|
-
if (m = 1, y && (E =
|
21080
|
-
switch (y = 0, E && (
|
21066
|
+
for (; P && (P = 0, w[0] && (g = 0)), g; ) try {
|
21067
|
+
if (m = 1, y && (E = w[0] & 2 ? y.return : w[0] ? y.throw || ((E = y.return) && E.call(y), 0) : y.next) && !(E = E.call(y, w[1])).done) return E;
|
21068
|
+
switch (y = 0, E && (w = [w[0] & 2, E.value]), w[0]) {
|
21081
21069
|
case 0:
|
21082
21070
|
case 1:
|
21083
|
-
E =
|
21071
|
+
E = w;
|
21084
21072
|
break;
|
21085
21073
|
case 4:
|
21086
|
-
return g.label++, { value:
|
21074
|
+
return g.label++, { value: w[1], done: !1 };
|
21087
21075
|
case 5:
|
21088
|
-
g.label++, y =
|
21076
|
+
g.label++, y = w[1], w = [0];
|
21089
21077
|
continue;
|
21090
21078
|
case 7:
|
21091
|
-
|
21079
|
+
w = g.ops.pop(), g.trys.pop();
|
21092
21080
|
continue;
|
21093
21081
|
default:
|
21094
|
-
if (E = g.trys, !(E = E.length > 0 && E[E.length - 1]) && (
|
21082
|
+
if (E = g.trys, !(E = E.length > 0 && E[E.length - 1]) && (w[0] === 6 || w[0] === 2)) {
|
21095
21083
|
g = 0;
|
21096
21084
|
continue;
|
21097
21085
|
}
|
21098
|
-
if (
|
21099
|
-
g.label =
|
21086
|
+
if (w[0] === 3 && (!E || w[1] > E[0] && w[1] < E[3])) {
|
21087
|
+
g.label = w[1];
|
21100
21088
|
break;
|
21101
21089
|
}
|
21102
|
-
if (
|
21103
|
-
g.label = E[1], E =
|
21090
|
+
if (w[0] === 6 && g.label < E[1]) {
|
21091
|
+
g.label = E[1], E = w;
|
21104
21092
|
break;
|
21105
21093
|
}
|
21106
21094
|
if (E && g.label < E[2]) {
|
21107
|
-
g.label = E[2], g.ops.push(
|
21095
|
+
g.label = E[2], g.ops.push(w);
|
21108
21096
|
break;
|
21109
21097
|
}
|
21110
21098
|
E[2] && g.ops.pop(), g.trys.pop();
|
21111
21099
|
continue;
|
21112
21100
|
}
|
21113
|
-
|
21101
|
+
w = h.call(p, g);
|
21114
21102
|
} catch (_) {
|
21115
|
-
|
21103
|
+
w = [6, _], y = 0;
|
21116
21104
|
} finally {
|
21117
21105
|
m = E = 0;
|
21118
21106
|
}
|
21119
|
-
if (
|
21120
|
-
return { value:
|
21107
|
+
if (w[0] & 5) throw w[1];
|
21108
|
+
return { value: w[0] ? w[1] : void 0, done: !0 };
|
21121
21109
|
}
|
21122
21110
|
}, r = pt && pt.__importDefault || function(p) {
|
21123
21111
|
return p && p.__esModule ? p : { default: p };
|
21124
21112
|
};
|
21125
21113
|
Object.defineProperty(pt, "__esModule", { value: !0 }), pt.useWebSocket = void 0;
|
21126
|
-
var a = yt, i =
|
21114
|
+
var a = yt, i = R0, u = Ft(), s = e3(), l = t3(), c = r(n3()), d = lu(), f = function(p, h, g) {
|
21127
21115
|
h === void 0 && (h = u.DEFAULT_OPTIONS), g === void 0 && (g = !0);
|
21128
|
-
var m = (0, a.useState)(null), y = m[0], E = m[1], P = (0, a.useState)({}), M = P[0], W = P[1],
|
21116
|
+
var m = (0, a.useState)(null), y = m[0], E = m[1], P = (0, a.useState)({}), M = P[0], W = P[1], w = (0, a.useMemo)(function() {
|
21129
21117
|
if (!h.disableJson && y)
|
21130
21118
|
try {
|
21131
21119
|
return JSON.parse(y.data);
|
@@ -21136,7 +21124,7 @@ function cu() {
|
|
21136
21124
|
}, [y, h.disableJson]), _ = (0, a.useRef)(null), N = (0, a.useRef)(null), V = (0, a.useRef)(function() {
|
21137
21125
|
}), H = (0, a.useRef)(0), te = (0, a.useRef)(Date.now()), Y = (0, a.useRef)([]), $ = (0, a.useRef)(null), L = (0, a.useRef)(h);
|
21138
21126
|
L.current = h;
|
21139
|
-
var I = _.current && M[_.current] !== void 0 ? M[_.current] : p !== null && g === !0 ? u.ReadyState.CONNECTING : u.ReadyState.UNINSTANTIATED,
|
21127
|
+
var I = _.current && M[_.current] !== void 0 ? M[_.current] : p !== null && g === !0 ? u.ReadyState.CONNECTING : u.ReadyState.UNINSTANTIATED, R = h.queryParams ? JSON.stringify(h.queryParams) : null, B = (0, a.useCallback)(function(q, b) {
|
21140
21128
|
var ne;
|
21141
21129
|
if (b === void 0 && (b = !0), u.isEventSourceSupported && N.current instanceof EventSource) {
|
21142
21130
|
console.warn("Unable to send a message from an eventSource");
|
@@ -21193,7 +21181,7 @@ function cu() {
|
|
21193
21181
|
var oe;
|
21194
21182
|
return e(e({}, x), _.current && (oe = {}, oe[_.current] = u.ReadyState.CLOSED, oe));
|
21195
21183
|
}));
|
21196
|
-
}, [p, g,
|
21184
|
+
}, [p, g, R, B]), (0, a.useEffect)(function() {
|
21197
21185
|
I === u.ReadyState.OPEN && Y.current.splice(0).forEach(function(q) {
|
21198
21186
|
B(q);
|
21199
21187
|
});
|
@@ -21201,7 +21189,7 @@ function cu() {
|
|
21201
21189
|
sendMessage: B,
|
21202
21190
|
sendJsonMessage: G,
|
21203
21191
|
lastMessage: y,
|
21204
|
-
lastJsonMessage:
|
21192
|
+
lastJsonMessage: w,
|
21205
21193
|
readyState: I,
|
21206
21194
|
getWebSocket: j
|
21207
21195
|
};
|
@@ -21370,7 +21358,7 @@ const l3 = "This conversation with a live agent has ended. Please note that a tr
|
|
21370
21358
|
default:
|
21371
21359
|
return;
|
21372
21360
|
}
|
21373
|
-
}, { sendJsonMessage:
|
21361
|
+
}, { sendJsonMessage: w } = o3(h, {
|
21374
21362
|
onMessage: W
|
21375
21363
|
}), _ = () => {
|
21376
21364
|
var q;
|
@@ -21378,7 +21366,7 @@ const l3 = "This conversation with a live agent has ended. Please note that a tr
|
|
21378
21366
|
const j = (q = n == null ? void 0 : n.liveChat) == null ? void 0 : q.form;
|
21379
21367
|
(!j || j.length === 0) && i(vt.XPERT);
|
21380
21368
|
}, N = () => {
|
21381
|
-
|
21369
|
+
w({
|
21382
21370
|
action: "sendmessage",
|
21383
21371
|
event: "TERMINATE_CONVERSATION"
|
21384
21372
|
});
|
@@ -21405,7 +21393,7 @@ const l3 = "This conversation with a live agent has ended. Please note that a tr
|
|
21405
21393
|
id: q ?? "",
|
21406
21394
|
role: Ie.AGENT,
|
21407
21395
|
timestamp: ne ? new Date(ne) : void 0
|
21408
|
-
}),
|
21396
|
+
}), w({
|
21409
21397
|
action: "sendmessage",
|
21410
21398
|
messages: [
|
21411
21399
|
{
|
@@ -21428,14 +21416,14 @@ const l3 = "This conversation with a live agent has ended. Please note that a tr
|
|
21428
21416
|
id: "",
|
21429
21417
|
role: Ie.USER,
|
21430
21418
|
timestamp: /* @__PURE__ */ new Date()
|
21431
|
-
}),
|
21419
|
+
}), w({
|
21432
21420
|
action: "sendmessage",
|
21433
21421
|
event: "OUTGOING_MESSAGE",
|
21434
21422
|
message: j
|
21435
21423
|
});
|
21436
21424
|
},
|
21437
21425
|
sendTypingEvent: async () => {
|
21438
|
-
|
21426
|
+
w({
|
21439
21427
|
action: "sendmessage",
|
21440
21428
|
event: "TYPING"
|
21441
21429
|
});
|
@@ -21617,9 +21605,9 @@ function Ed({
|
|
21617
21605
|
setIsMounted: n,
|
21618
21606
|
onClose: r
|
21619
21607
|
}) {
|
21620
|
-
var c, d, f, p, h, g, m, y, E, P, M, W,
|
21608
|
+
var c, d, f, p, h, g, m, y, E, P, M, W, w, _, N;
|
21621
21609
|
const { primaryColor: a, conversationScreen: i } = se(Ye), { isMobile: u, mode: s } = se(nt), { step: l } = se(En);
|
21622
|
-
return
|
21610
|
+
return Re(() => {
|
21623
21611
|
const V = document.getElementById("header-mobile");
|
21624
21612
|
return V && (V.style.display = "none"), () => {
|
21625
21613
|
V && (V.style.display = "");
|
@@ -21678,7 +21666,7 @@ function Ed({
|
|
21678
21666
|
className: "xpert-chatbot-popup__header_container",
|
21679
21667
|
style: {
|
21680
21668
|
right: 0,
|
21681
|
-
background: ((N = (_ = (
|
21669
|
+
background: ((N = (_ = (w = i == null ? void 0 : i.header) == null ? void 0 : w.container) == null ? void 0 : _.style) == null ? void 0 : N.background) || a
|
21682
21670
|
}
|
21683
21671
|
}
|
21684
21672
|
)
|
@@ -21880,7 +21868,7 @@ function g3(e, t) {
|
|
21880
21868
|
},
|
21881
21869
|
[n, e, t]
|
21882
21870
|
);
|
21883
|
-
return
|
21871
|
+
return Re(() => () => {
|
21884
21872
|
clearTimeout(a.current);
|
21885
21873
|
}, []), i;
|
21886
21874
|
}
|
@@ -21992,18 +21980,18 @@ function Cd() {
|
|
21992
21980
|
), y = () => {
|
21993
21981
|
r(vt.XPERT);
|
21994
21982
|
}, E = () => {
|
21995
|
-
p("privacyCheck"), f((
|
21996
|
-
}, P = (
|
21997
|
-
const N =
|
21983
|
+
p("privacyCheck"), f((w) => !w);
|
21984
|
+
}, P = (w, _) => {
|
21985
|
+
const N = w.target.value;
|
21998
21986
|
p(_), c(_, N);
|
21999
21987
|
}, M = () => {
|
22000
21988
|
W() && n(l);
|
22001
21989
|
};
|
22002
|
-
|
21990
|
+
Re(() => {
|
22003
21991
|
(!a || a.length === 0) && n();
|
22004
21992
|
}, [a, n]);
|
22005
21993
|
const W = () => {
|
22006
|
-
const
|
21994
|
+
const w = a.reduce((_, N) => {
|
22007
21995
|
const { key: V, validations: H = [] } = N, te = l[V];
|
22008
21996
|
if (!te) return { ..._, [V]: "Required" };
|
22009
21997
|
if ((H == null ? void 0 : H.length) > 0)
|
@@ -22017,22 +22005,22 @@ function Cd() {
|
|
22017
22005
|
}
|
22018
22006
|
return _;
|
22019
22007
|
}, {});
|
22020
|
-
return !d && s && (
|
22008
|
+
return !d && s && (w.privacyCheck = "Required"), g(w), Object.keys(w).length === 0;
|
22021
22009
|
};
|
22022
22010
|
return /* @__PURE__ */ S.jsxs("div", { className: "live-chat-form", children: [
|
22023
22011
|
i && /* @__PURE__ */ S.jsx("p", { children: i }),
|
22024
|
-
(a ?? []).map(({ key:
|
22012
|
+
(a ?? []).map(({ key: w, name: _ }) => /* @__PURE__ */ S.jsxs(k0, { children: [
|
22025
22013
|
/* @__PURE__ */ S.jsx(
|
22026
22014
|
"input",
|
22027
22015
|
{
|
22028
|
-
className: `live-chat-form-input ${h[
|
22016
|
+
className: `live-chat-form-input ${h[w] ? "error" : ""}`,
|
22029
22017
|
name: _,
|
22030
22018
|
placeholder: _,
|
22031
|
-
onChange: (N) => P(N,
|
22019
|
+
onChange: (N) => P(N, w)
|
22032
22020
|
}
|
22033
22021
|
),
|
22034
|
-
h[
|
22035
|
-
] },
|
22022
|
+
h[w] && /* @__PURE__ */ S.jsx("p", { className: "live-chat-form-error", children: h[w] })
|
22023
|
+
] }, w)),
|
22036
22024
|
s && /* @__PURE__ */ S.jsxs(S.Fragment, { children: [
|
22037
22025
|
/* @__PURE__ */ S.jsx(
|
22038
22026
|
"div",
|
@@ -22077,7 +22065,7 @@ function Cd() {
|
|
22077
22065
|
},
|
22078
22066
|
type: "checkbox",
|
22079
22067
|
onChange: E,
|
22080
|
-
onKeyDown: (
|
22068
|
+
onKeyDown: (w) => w.key === "Enter" && E()
|
22081
22069
|
}
|
22082
22070
|
),
|
22083
22071
|
/* @__PURE__ */ S.jsx("label", { htmlFor: "privacy-check", children: "Yes, I accept" })
|
@@ -22118,16 +22106,16 @@ function Sd({
|
|
22118
22106
|
}) {
|
22119
22107
|
var g;
|
22120
22108
|
const { proactiveMessage: u } = se(Ye), [s, l] = ce(!0), [c, d] = ce(!1), f = s && (!(window != null && window.OnetrustActiveGroups) || ((g = window == null ? void 0 : window.OnetrustActiveGroups) == null ? void 0 : g.includes("C0003"))) && lt.get(t) === void 0;
|
22121
|
-
|
22109
|
+
Re(() => {
|
22122
22110
|
var m;
|
22123
22111
|
(m = window == null ? void 0 : window.OneTrust) == null || m.OnConsentChanged(() => {
|
22124
22112
|
var y;
|
22125
22113
|
!((y = window == null ? void 0 : window.OnetrustActiveGroups) != null && y.includes("C0003")) && lt.get(t) !== void 0 && lt.remove(t);
|
22126
22114
|
});
|
22127
|
-
}, [t]),
|
22115
|
+
}, [t]), Re(() => {
|
22128
22116
|
var m;
|
22129
22117
|
a || (!(window != null && window.OnetrustActiveGroups) || (m = window == null ? void 0 : window.OnetrustActiveGroups) != null && m.includes("C0003")) && h(t, 1, 1);
|
22130
|
-
}, [t, a]),
|
22118
|
+
}, [t, a]), Re(() => {
|
22131
22119
|
if (u != null && u.enabled && (u == null ? void 0 : u.delayMs) > 0) {
|
22132
22120
|
const m = setTimeout(() => {
|
22133
22121
|
d(!0);
|
@@ -22204,9 +22192,9 @@ function _3(e, t, n) {
|
|
22204
22192
|
},
|
22205
22193
|
[n]
|
22206
22194
|
);
|
22207
|
-
|
22195
|
+
Re(() => (e && window.addEventListener("message", r), () => {
|
22208
22196
|
window.removeEventListener("message", r);
|
22209
|
-
}), [e, r]),
|
22197
|
+
}), [e, r]), Re(() => {
|
22210
22198
|
let a;
|
22211
22199
|
return e && (a = document.createElement("style"), document.head.appendChild(a), ((u) => {
|
22212
22200
|
a.innerHTML = `
|
@@ -22228,7 +22216,7 @@ function _3(e, t, n) {
|
|
22228
22216
|
}
|
22229
22217
|
function C3(e) {
|
22230
22218
|
const [t, n] = ce(null);
|
22231
|
-
return
|
22219
|
+
return Re(() => {
|
22232
22220
|
try {
|
22233
22221
|
(() => {
|
22234
22222
|
var a, i, u;
|
@@ -22253,7 +22241,7 @@ function C3(e) {
|
|
22253
22241
|
}, [e]), t;
|
22254
22242
|
}
|
22255
22243
|
function A3(e) {
|
22256
|
-
|
22244
|
+
Re(() => {
|
22257
22245
|
const t = () => document.visibilityState === "visible" && e();
|
22258
22246
|
return document.addEventListener("visibilitychange", t), () => {
|
22259
22247
|
document.removeEventListener("visibilitychange", t);
|
@@ -22306,11 +22294,11 @@ function xd({ submitEventExternal: e = null }) {
|
|
22306
22294
|
setDisableScroll: P,
|
22307
22295
|
setHasError: M,
|
22308
22296
|
setHasNewMessage: W,
|
22309
|
-
setIsNormalSize:
|
22297
|
+
setIsNormalSize: w,
|
22310
22298
|
setLoading: _,
|
22311
22299
|
setStreaming: N
|
22312
|
-
} = se(nt), [, V] = ce(!1), [, H] = ce(!1), [te, Y] = ce(!1), [$, L] = ce(!1), [I,
|
22313
|
-
|
22300
|
+
} = se(nt), [, V] = ce(!1), [, H] = ce(!1), [te, Y] = ce(!1), [$, L] = ce(!1), [I, R] = ce(!1), B = te || !c, G = tt(null), j = tt(null), q = lt.get(`${a}-test`) === "1";
|
22301
|
+
Re(() => {
|
22314
22302
|
E === vt.XPERT && B && G.current && G.current.focus();
|
22315
22303
|
}, [E, B]), _3(
|
22316
22304
|
(en = r == null ? void 0 : r.liveChat) == null ? void 0 : en.enabled,
|
@@ -22343,11 +22331,11 @@ function xd({ submitEventExternal: e = null }) {
|
|
22343
22331
|
return;
|
22344
22332
|
}
|
22345
22333
|
if (!await (async (re, ue = 1e4, pe = 200) => {
|
22346
|
-
let
|
22334
|
+
let we = 0;
|
22347
22335
|
for (; !re(); ) {
|
22348
|
-
if (
|
22336
|
+
if (we >= ue)
|
22349
22337
|
return !1;
|
22350
|
-
await new Promise((Xe) => setTimeout(Xe, pe)),
|
22338
|
+
await new Promise((Xe) => setTimeout(Xe, pe)), we += pe;
|
22351
22339
|
}
|
22352
22340
|
return !0;
|
22353
22341
|
})(
|
@@ -22358,7 +22346,7 @@ function xd({ submitEventExternal: e = null }) {
|
|
22358
22346
|
}
|
22359
22347
|
try {
|
22360
22348
|
let re = Ls(a);
|
22361
|
-
const ue = (F = t == null ? void 0 : t.baseUrl) != null && F.includes("xpert-api-services") ? "/v1/history" : "/xpert/v2/history", pe = `conversation_id=${re}&client_id=${(X = t == null ? void 0 : t.payloadParams) == null ? void 0 : X.client_id}`,
|
22349
|
+
const ue = (F = t == null ? void 0 : t.baseUrl) != null && F.includes("xpert-api-services") ? "/v1/history" : "/xpert/v2/history", pe = `conversation_id=${re}&client_id=${(X = t == null ? void 0 : t.payloadParams) == null ? void 0 : X.client_id}`, we = await fetch(
|
22362
22350
|
`${t.baseUrl}${ue}?${pe}`,
|
22363
22351
|
{
|
22364
22352
|
method: "GET",
|
@@ -22367,15 +22355,15 @@ function xd({ submitEventExternal: e = null }) {
|
|
22367
22355
|
}
|
22368
22356
|
}
|
22369
22357
|
);
|
22370
|
-
if (!
|
22371
|
-
throw new Error(`HTTPError: ${
|
22372
|
-
const Xe = await
|
22358
|
+
if (!we.ok)
|
22359
|
+
throw new Error(`HTTPError: ${we.status} ${we.statusText}`);
|
22360
|
+
const Xe = await we.json();
|
22373
22361
|
g(
|
22374
|
-
Xe.map((
|
22375
|
-
...
|
22362
|
+
Xe.map((Ne) => ({
|
22363
|
+
...Ne,
|
22376
22364
|
disableFeedback: !0,
|
22377
|
-
toolCalls:
|
22378
|
-
toolCallId:
|
22365
|
+
toolCalls: Ne.tool_calls,
|
22366
|
+
toolCallId: Ne.tool_call_id
|
22379
22367
|
}))
|
22380
22368
|
), P(!0), W(!0);
|
22381
22369
|
} catch (re) {
|
@@ -22386,7 +22374,7 @@ function xd({ submitEventExternal: e = null }) {
|
|
22386
22374
|
}, le = ((yn = r == null ? void 0 : r.conversationHistory) == null ? void 0 : yn.enabled) && B && !$;
|
22387
22375
|
A3(
|
22388
22376
|
() => le && ne()
|
22389
|
-
),
|
22377
|
+
), Re(() => {
|
22390
22378
|
let ie, Ee;
|
22391
22379
|
if (n)
|
22392
22380
|
return s != null && s.enabled && (ie = setInterval(() => {
|
@@ -22402,7 +22390,7 @@ function xd({ submitEventExternal: e = null }) {
|
|
22402
22390
|
e,
|
22403
22391
|
s == null ? void 0 : s.enabled,
|
22404
22392
|
s == null ? void 0 : s.prefix
|
22405
|
-
]),
|
22393
|
+
]), Re(() => {
|
22406
22394
|
let ie, Ee;
|
22407
22395
|
const Se = () => {
|
22408
22396
|
l != null && l.enabled && window.optimizely && window.experiments && (clearInterval(ie), clearTimeout(Ee), H(!0));
|
@@ -22470,14 +22458,14 @@ function xd({ submitEventExternal: e = null }) {
|
|
22470
22458
|
const X = await ie.json(), re = Array.isArray(X) ? X : [X];
|
22471
22459
|
re.forEach(
|
22472
22460
|
({
|
22473
|
-
content:
|
22461
|
+
content: Ne,
|
22474
22462
|
live_agent: Je,
|
22475
22463
|
role: it,
|
22476
22464
|
tool_calls: Oe,
|
22477
22465
|
tool_call_id: rt
|
22478
22466
|
}) => {
|
22479
22467
|
h({
|
22480
|
-
content:
|
22468
|
+
content: Ne,
|
22481
22469
|
createdAt: /* @__PURE__ */ new Date(),
|
22482
22470
|
liveAgent: Je,
|
22483
22471
|
role: it,
|
@@ -22486,15 +22474,15 @@ function xd({ submitEventExternal: e = null }) {
|
|
22486
22474
|
});
|
22487
22475
|
}
|
22488
22476
|
);
|
22489
|
-
const ue = re.filter(({ content:
|
22477
|
+
const ue = re.filter(({ content: Ne }) => !!Ne), pe = ue.map((Ne) => Ne.content ?? "").join("");
|
22490
22478
|
oe(pe, Ee);
|
22491
|
-
const
|
22479
|
+
const we = /* @__PURE__ */ new Date(), Xe = ks(JSON.stringify(qe));
|
22492
22480
|
return ye({
|
22493
22481
|
conversationByteSize: Xe,
|
22494
|
-
conversationSize: ue.length + m.filter(({ content:
|
22482
|
+
conversationSize: ue.length + m.filter(({ content: Ne }) => !!Ne).length + 1,
|
22495
22483
|
userInputMessage: Se,
|
22496
22484
|
apiResponseMessage: pe,
|
22497
|
-
elapsedSeconds: Ns(F,
|
22485
|
+
elapsedSeconds: Ns(F, we),
|
22498
22486
|
isStreaming: !1
|
22499
22487
|
}), re;
|
22500
22488
|
}, Ae = async (ie, Ee, Se, qe, F) => {
|
@@ -22503,9 +22491,9 @@ function xd({ submitEventExternal: e = null }) {
|
|
22503
22491
|
let re = [], ue = 0;
|
22504
22492
|
const pe = /* @__PURE__ */ new Date();
|
22505
22493
|
for (; ; ) {
|
22506
|
-
const { value:
|
22494
|
+
const { value: Ne, done: Je } = await ie.read();
|
22507
22495
|
if (Je) break;
|
22508
|
-
const it = X.decode(
|
22496
|
+
const it = X.decode(Ne, { stream: !0 });
|
22509
22497
|
try {
|
22510
22498
|
const Oe = it.match(/\[.*?\](?=\[|$)/gs), rt = JSON.parse(Oe[Oe.length - 1]).map(
|
22511
22499
|
(ze) => ({
|
@@ -22546,8 +22534,8 @@ function xd({ submitEventExternal: e = null }) {
|
|
22546
22534
|
} catch {
|
22547
22535
|
}
|
22548
22536
|
}
|
22549
|
-
const
|
22550
|
-
return oe(
|
22537
|
+
const we = ((Xe = re.find((Ne) => Ne.content)) == null ? void 0 : Xe.content) || "";
|
22538
|
+
return oe(we, Ee), re;
|
22551
22539
|
}, xe = async (ie, Ee, Se, qe, F) => {
|
22552
22540
|
N(!0);
|
22553
22541
|
const X = ie.body.getReader(), re = await Ae(
|
@@ -22625,7 +22613,7 @@ function xd({ submitEventExternal: e = null }) {
|
|
22625
22613
|
_(!1), M(!0), console.error(Se);
|
22626
22614
|
}
|
22627
22615
|
}, ve = () => {
|
22628
|
-
L(!1), Y(!0),
|
22616
|
+
L(!1), Y(!0), w(!0), ne(), b({
|
22629
22617
|
name: `${s.prefix}.bi.xpert.chatbot.action.button.clicked`,
|
22630
22618
|
payload: {
|
22631
22619
|
category: "2u",
|
@@ -22641,9 +22629,9 @@ function xd({ submitEventExternal: e = null }) {
|
|
22641
22629
|
label: "xpert-chatbot",
|
22642
22630
|
isTestUser: q
|
22643
22631
|
}
|
22644
|
-
}),
|
22632
|
+
}), w(ie);
|
22645
22633
|
}, ft = () => {
|
22646
|
-
Y(!0),
|
22634
|
+
Y(!0), w(!0), ne(), b({
|
22647
22635
|
name: `${s.prefix}.bi.xpert.chatbot.proactive.message.clicked`,
|
22648
22636
|
payload: {
|
22649
22637
|
category: "2u",
|
@@ -22661,7 +22649,7 @@ function xd({ submitEventExternal: e = null }) {
|
|
22661
22649
|
}
|
22662
22650
|
});
|
22663
22651
|
}, Un = () => {
|
22664
|
-
Y(!1),
|
22652
|
+
Y(!1), R(!1), b({
|
22665
22653
|
name: `${s.prefix}.bi.xpert.chatbot.popup.chat.minimized`,
|
22666
22654
|
payload: {
|
22667
22655
|
category: "2u",
|
@@ -22752,7 +22740,7 @@ function xd({ submitEventExternal: e = null }) {
|
|
22752
22740
|
onClose: Un,
|
22753
22741
|
handleResizeButtonClick: Ze,
|
22754
22742
|
isMounted: I,
|
22755
|
-
setIsMounted:
|
22743
|
+
setIsMounted: R
|
22756
22744
|
}
|
22757
22745
|
),
|
22758
22746
|
/* @__PURE__ */ S.jsx(f3, {}),
|
@@ -22867,7 +22855,7 @@ Od.propTypes = {
|
|
22867
22855
|
};
|
22868
22856
|
function O3() {
|
22869
22857
|
let e = document.getElementById("xpert-chatbot-container");
|
22870
|
-
e || (e = document.createElement("div"), e.setAttribute("id", "xpert-chatbot-container"), document.body.appendChild(e),
|
22858
|
+
e || (e = document.createElement("div"), e.setAttribute("id", "xpert-chatbot-container"), document.body.appendChild(e), w0(
|
22871
22859
|
/* @__PURE__ */ S.jsx(L0, { children: /* @__PURE__ */ S.jsx(
|
22872
22860
|
Od,
|
22873
22861
|
{
|