@2uinc/frontend-component-xpert-chatbot 1.34.0-alpha.1 → 1.34.0-alpha.2
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/lib/index.min.js +917 -907
- package/package.json +1 -1
package/dist/lib/index.min.js
CHANGED
@@ -1,7 +1,7 @@
|
|
1
|
-
import
|
1
|
+
import yt, { createContext as $r, useState as de, useCallback as Tt, useEffect as Le, useMemo as or, useRef as nt, useContext as se, forwardRef as As, createElement as Ka, useLayoutEffect as y0, Suspense as C0, Fragment as _0 } from "react";
|
2
2
|
import A0 from "react-dom";
|
3
3
|
var Cr = typeof globalThis < "u" ? globalThis : typeof window < "u" ? window : typeof global < "u" ? global : typeof self < "u" ? self : {};
|
4
|
-
function
|
4
|
+
function Rt(e) {
|
5
5
|
return e && e.__esModule && Object.prototype.hasOwnProperty.call(e, "default") ? e.default : e;
|
6
6
|
}
|
7
7
|
function Is(e) {
|
@@ -87,7 +87,7 @@ var yu;
|
|
87
87
|
function x0() {
|
88
88
|
if (yu) return yn;
|
89
89
|
yu = 1, I0();
|
90
|
-
var e =
|
90
|
+
var e = yt, t = 60103;
|
91
91
|
if (yn.Fragment = 60107, typeof Symbol == "function" && Symbol.for) {
|
92
92
|
var n = Symbol.for;
|
93
93
|
t = n("react.element"), yn.Fragment = n("react.fragment");
|
@@ -177,7 +177,7 @@ function Za(e, t) {
|
|
177
177
|
}
|
178
178
|
);
|
179
179
|
}
|
180
|
-
var
|
180
|
+
var pt = Za(O0, { path: "/" }), Ea = { exports: {} }, Ta, _u;
|
181
181
|
function v0() {
|
182
182
|
if (_u) return Ta;
|
183
183
|
_u = 1;
|
@@ -237,22 +237,22 @@ function xs() {
|
|
237
237
|
return Iu || (Iu = 1, Ea.exports = /* @__PURE__ */ k0()()), Ea.exports;
|
238
238
|
}
|
239
239
|
var N0 = /* @__PURE__ */ xs();
|
240
|
-
const S = /* @__PURE__ */
|
240
|
+
const S = /* @__PURE__ */ Rt(N0);
|
241
241
|
var Qn = { exports: {} };
|
242
242
|
Qn.exports;
|
243
243
|
var xu;
|
244
244
|
function D0() {
|
245
245
|
return xu || (xu = 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]",
|
247
|
-
I[q] = I[V] = I[D] = I[v] = I[w] = I[H] = I[W] = I[j] = I[z] = !0, I[s] = I[l] = I[M] = I[d] = I[K] = I[f] = I[p] = I[h] = I[m] = I[C] = I[P] = I[Q] = I[L] = I[
|
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]", T = "[object GeneratorFunction]", m = "[object Map]", C = "[object Number]", E = "[object Null]", P = "[object Object]", F = "[object Proxy]", Q = "[object RegExp]", L = "[object Set]", y = "[object String]", k = "[object Undefined]", $ = "[object WeakMap]", M = "[object ArrayBuffer]", K = "[object DataView]", q = "[object Float32Array]", V = "[object Float64Array]", D = "[object Int8Array]", v = "[object Int16Array]", w = "[object Int32Array]", H = "[object Uint8Array]", W = "[object Uint8ClampedArray]", j = "[object Uint16Array]", z = "[object Uint32Array]", g = /[\\^$.*+?()[\]{}|]/g, ne = /^\[object .+?Constructor\]$/, ue = /^(?:0|[1-9]\d*)$/, I = {};
|
247
|
+
I[q] = I[V] = I[D] = I[v] = I[w] = I[H] = I[W] = I[j] = I[z] = !0, I[s] = I[l] = I[M] = I[d] = I[K] = I[f] = I[p] = I[h] = I[m] = I[C] = I[P] = I[Q] = I[L] = I[y] = I[$] = !1;
|
248
248
|
var oe = typeof Cr == "object" && Cr && Cr.Object === Object && Cr, Te = typeof self == "object" && self && self.Object === Object && self, me = oe || Te || Function("return this")(), xe = t && !t.nodeType && t, Se = xe && !0 && e && !e.nodeType && e, Fe = Se && Se.exports === xe, Oe = Fe && oe.process, We = function() {
|
249
249
|
try {
|
250
250
|
var A = Se && Se.require && Se.require("util").types;
|
251
251
|
return A || Oe && Oe.binding && Oe.binding("util");
|
252
252
|
} catch {
|
253
253
|
}
|
254
|
-
}(),
|
255
|
-
function
|
254
|
+
}(), it = We && We.isTypedArray;
|
255
|
+
function St(A, N, B) {
|
256
256
|
switch (B.length) {
|
257
257
|
case 0:
|
258
258
|
return A.call(N);
|
@@ -283,20 +283,20 @@ function D0() {
|
|
283
283
|
return A(N(B));
|
284
284
|
};
|
285
285
|
}
|
286
|
-
var Kt = Array.prototype, gn = Function.prototype,
|
286
|
+
var Kt = Array.prototype, gn = Function.prototype, Ot = Object.prototype, ae = me["__core-js_shared__"], be = gn.toString, Ae = Ot.hasOwnProperty, $e = function() {
|
287
287
|
var A = /[^.]+$/.exec(ae && ae.keys && ae.keys.IE_PROTO || "");
|
288
288
|
return A ? "Symbol(src)_1." + A : "";
|
289
|
-
}(),
|
290
|
-
"^" + be.call(
|
289
|
+
}(), ut = Ot.toString, Ze = be.call(Object), Y = RegExp(
|
290
|
+
"^" + be.call(Ae).replace(g, "\\$&").replace(/hasOwnProperty|(function).*?(?=\\\()| for .+?(?=\\\])/g, "$1.*?") + "$"
|
291
291
|
), Z = Fe ? me.Buffer : void 0, ie = me.Symbol, le = me.Uint8Array;
|
292
292
|
Z && Z.allocUnsafe;
|
293
|
-
var ye = Xt(Object.getPrototypeOf, Object), Qe = Object.create,
|
293
|
+
var ye = Xt(Object.getPrototypeOf, Object), Qe = Object.create, gt = Ot.propertyIsEnumerable, ot = Kt.splice, st = ie ? ie.toStringTag : void 0, vt = function() {
|
294
294
|
try {
|
295
295
|
var A = sa(Object, "defineProperty");
|
296
296
|
return A({}, "", {}), A;
|
297
297
|
} catch {
|
298
298
|
}
|
299
|
-
}(), Be = Z ? Z.isBuffer : void 0, bn = Math.max,
|
299
|
+
}(), Be = Z ? Z.isBuffer : void 0, bn = Math.max, At = Date.now, su = sa(me, "Map"), Fn = sa(Object, "create"), yd = /* @__PURE__ */ function() {
|
300
300
|
function A() {
|
301
301
|
}
|
302
302
|
return function(N) {
|
@@ -329,18 +329,18 @@ function D0() {
|
|
329
329
|
var B = N[A];
|
330
330
|
return B === r ? void 0 : B;
|
331
331
|
}
|
332
|
-
return
|
332
|
+
return Ae.call(N, A) ? N[A] : void 0;
|
333
333
|
}
|
334
334
|
function Id(A) {
|
335
335
|
var N = this.__data__;
|
336
|
-
return Fn ? N[A] !== void 0 :
|
336
|
+
return Fn ? N[A] !== void 0 : Ae.call(N, A);
|
337
337
|
}
|
338
338
|
function xd(A, N) {
|
339
339
|
var B = this.__data__;
|
340
340
|
return this.size += this.has(A) ? 0 : 1, B[A] = Fn && N === void 0 ? r : N, this;
|
341
341
|
}
|
342
342
|
Zt.prototype.clear = Cd, Zt.prototype.delete = _d, Zt.prototype.get = Ad, Zt.prototype.has = Id, Zt.prototype.set = xd;
|
343
|
-
function
|
343
|
+
function Mt(A) {
|
344
344
|
var N = -1, B = A == null ? 0 : A.length;
|
345
345
|
for (this.clear(); ++N < B; ) {
|
346
346
|
var re = A[N];
|
@@ -355,7 +355,7 @@ function D0() {
|
|
355
355
|
if (B < 0)
|
356
356
|
return !1;
|
357
357
|
var re = N.length - 1;
|
358
|
-
return B == re ? N.pop() :
|
358
|
+
return B == re ? N.pop() : ot.call(N, B, 1), --this.size, !0;
|
359
359
|
}
|
360
360
|
function vd(A) {
|
361
361
|
var N = this.__data__, B = br(N, A);
|
@@ -368,7 +368,7 @@ function D0() {
|
|
368
368
|
var B = this.__data__, re = br(B, A);
|
369
369
|
return re < 0 ? (++this.size, B.push([A, N])) : B[re][1] = N, this;
|
370
370
|
}
|
371
|
-
|
371
|
+
Mt.prototype.clear = Sd, Mt.prototype.delete = Od, Mt.prototype.get = vd, Mt.prototype.has = kd, Mt.prototype.set = Nd;
|
372
372
|
function En(A) {
|
373
373
|
var N = -1, B = A == null ? 0 : A.length;
|
374
374
|
for (this.clear(); ++N < B; ) {
|
@@ -379,7 +379,7 @@ function D0() {
|
|
379
379
|
function Dd() {
|
380
380
|
this.size = 0, this.__data__ = {
|
381
381
|
hash: new Zt(),
|
382
|
-
map: new (su ||
|
382
|
+
map: new (su || Mt)(),
|
383
383
|
string: new Zt()
|
384
384
|
};
|
385
385
|
}
|
@@ -399,11 +399,11 @@ function D0() {
|
|
399
399
|
}
|
400
400
|
En.prototype.clear = Dd, En.prototype.delete = wd, En.prototype.get = Ld, En.prototype.has = Rd, En.prototype.set = Pd;
|
401
401
|
function Tn(A) {
|
402
|
-
var N = this.__data__ = new
|
402
|
+
var N = this.__data__ = new Mt(A);
|
403
403
|
this.size = N.size;
|
404
404
|
}
|
405
405
|
function Md() {
|
406
|
-
this.__data__ = new
|
406
|
+
this.__data__ = new Mt(), this.size = 0;
|
407
407
|
}
|
408
408
|
function Fd(A) {
|
409
409
|
var N = this.__data__, B = N.delete(A);
|
@@ -417,7 +417,7 @@ function D0() {
|
|
417
417
|
}
|
418
418
|
function Ud(A, N) {
|
419
419
|
var B = this.__data__;
|
420
|
-
if (B instanceof
|
420
|
+
if (B instanceof Mt) {
|
421
421
|
var re = B.__data__;
|
422
422
|
if (!su || re.length < n - 1)
|
423
423
|
return re.push([A, N]), this.size = ++B.size, this;
|
@@ -427,21 +427,21 @@ function D0() {
|
|
427
427
|
}
|
428
428
|
Tn.prototype.clear = Md, Tn.prototype.delete = Fd, Tn.prototype.get = Bd, Tn.prototype.has = Hd, Tn.prototype.set = Ud;
|
429
429
|
function jd(A, N) {
|
430
|
-
var B = da(A), re = !B && ca(A), Ee = !B && !re && hu(A), ve = !B && !re && !Ee && mu(A), Re = B || re || Ee || ve,
|
431
|
-
for (var
|
430
|
+
var B = da(A), re = !B && ca(A), Ee = !B && !re && hu(A), ve = !B && !re && !Ee && mu(A), Re = B || re || Ee || ve, Ce = Re ? Mn(A.length, String) : [], Pe = Ce.length;
|
431
|
+
for (var It in A)
|
432
432
|
Re && // Safari 9 has enumerable `arguments.length` in strict mode.
|
433
|
-
(
|
434
|
-
Ee && (
|
435
|
-
ve && (
|
436
|
-
du(
|
437
|
-
return
|
433
|
+
(It == "length" || // Node.js 0.10 has enumerable non-index properties on buffers.
|
434
|
+
Ee && (It == "offset" || It == "parent") || // PhantomJS 2 has enumerable non-index properties on typed arrays.
|
435
|
+
ve && (It == "buffer" || It == "byteLength" || It == "byteOffset") || // Skip index properties.
|
436
|
+
du(It, Pe)) || Ce.push(It);
|
437
|
+
return Ce;
|
438
438
|
}
|
439
439
|
function ua(A, N, B) {
|
440
440
|
(B !== void 0 && !yr(A[N], B) || B === void 0 && !(N in A)) && oa(A, N, B);
|
441
441
|
}
|
442
442
|
function qd(A, N, B) {
|
443
443
|
var re = A[N];
|
444
|
-
(!(
|
444
|
+
(!(Ae.call(A, N) && yr(re, B)) || B === void 0 && !(N in A)) && oa(A, N, B);
|
445
445
|
}
|
446
446
|
function br(A, N) {
|
447
447
|
for (var B = A.length; B--; )
|
@@ -450,7 +450,7 @@ function D0() {
|
|
450
450
|
return -1;
|
451
451
|
}
|
452
452
|
function oa(A, N, B) {
|
453
|
-
N == "__proto__" &&
|
453
|
+
N == "__proto__" && vt ? vt(A, N, {
|
454
454
|
configurable: !0,
|
455
455
|
enumerable: !0,
|
456
456
|
value: B,
|
@@ -459,7 +459,7 @@ function D0() {
|
|
459
459
|
}
|
460
460
|
var zd = n0();
|
461
461
|
function Er(A) {
|
462
|
-
return A == null ? A === void 0 ? k : E :
|
462
|
+
return A == null ? A === void 0 ? k : E : st && st in Object(A) ? r0(A) : l0(A);
|
463
463
|
}
|
464
464
|
function lu(A) {
|
465
465
|
return Bn(A) && Er(A) == s;
|
@@ -478,7 +478,7 @@ function D0() {
|
|
478
478
|
return s0(A);
|
479
479
|
var N = fu(A), B = [];
|
480
480
|
for (var re in A)
|
481
|
-
re == "constructor" && (N || !
|
481
|
+
re == "constructor" && (N || !Ae.call(A, re)) || B.push(re);
|
482
482
|
return B;
|
483
483
|
}
|
484
484
|
function cu(A, N, B, re, Ee) {
|
@@ -486,29 +486,29 @@ function D0() {
|
|
486
486
|
if (Ee || (Ee = new Tn()), Jt(ve))
|
487
487
|
$d(A, N, Re, B, cu, re, Ee);
|
488
488
|
else {
|
489
|
-
var
|
490
|
-
|
489
|
+
var Ce = re ? re(la(A, Re), ve, Re + "", A, N, Ee) : void 0;
|
490
|
+
Ce === void 0 && (Ce = ve), ua(A, Re, Ce);
|
491
491
|
}
|
492
492
|
}, gu);
|
493
493
|
}
|
494
494
|
function $d(A, N, B, re, Ee, ve, Re) {
|
495
|
-
var
|
496
|
-
if (
|
497
|
-
ua(A, B,
|
495
|
+
var Ce = la(A, B), Pe = la(N, B), It = Re.get(Pe);
|
496
|
+
if (It) {
|
497
|
+
ua(A, B, It);
|
498
498
|
return;
|
499
499
|
}
|
500
|
-
var
|
500
|
+
var lt = ve ? ve(Ce, Pe, B + "", A, N, Re) : void 0, Hn = lt === void 0;
|
501
501
|
if (Hn) {
|
502
502
|
var pa = da(Pe), ma = !pa && hu(Pe), Eu = !pa && !ma && mu(Pe);
|
503
|
-
|
503
|
+
lt = Pe, pa || ma || Eu ? da(Ce) ? lt = Ce : p0(Ce) ? lt = Jd(Ce) : ma ? (Hn = !1, lt = Xd(Pe)) : Eu ? (Hn = !1, lt = Zd(Pe)) : lt = [] : m0(Pe) || ca(Pe) ? (lt = Ce, ca(Ce) ? lt = g0(Ce) : (!Jt(Ce) || ha(Ce)) && (lt = a0(Pe))) : Hn = !1;
|
504
504
|
}
|
505
|
-
Hn && (Re.set(Pe,
|
505
|
+
Hn && (Re.set(Pe, lt), Ee(lt, Pe, re, ve, Re), Re.delete(Pe)), ua(A, B, lt);
|
506
506
|
}
|
507
507
|
function Gd(A, N) {
|
508
508
|
return d0(c0(A, N, bu), A + "");
|
509
509
|
}
|
510
|
-
var Qd =
|
511
|
-
return
|
510
|
+
var Qd = vt ? function(A, N) {
|
511
|
+
return vt(A, "toString", {
|
512
512
|
configurable: !0,
|
513
513
|
enumerable: !1,
|
514
514
|
value: E0(N),
|
@@ -536,8 +536,8 @@ function D0() {
|
|
536
536
|
var Ee = !B;
|
537
537
|
B || (B = {});
|
538
538
|
for (var ve = -1, Re = N.length; ++ve < Re; ) {
|
539
|
-
var
|
540
|
-
Pe === void 0 && (Pe = A[
|
539
|
+
var Ce = N[ve], Pe = void 0;
|
540
|
+
Pe === void 0 && (Pe = A[Ce]), Ee ? oa(B, Ce, Pe) : qd(B, Ce, Pe);
|
541
541
|
}
|
542
542
|
return B;
|
543
543
|
}
|
@@ -545,15 +545,15 @@ function D0() {
|
|
545
545
|
return Gd(function(N, B) {
|
546
546
|
var re = -1, Ee = B.length, ve = Ee > 1 ? B[Ee - 1] : void 0, Re = Ee > 2 ? B[2] : void 0;
|
547
547
|
for (ve = A.length > 3 && typeof ve == "function" ? (Ee--, ve) : void 0, Re && i0(B[0], B[1], Re) && (ve = Ee < 3 ? void 0 : ve, Ee = 1), N = Object(N); ++re < Ee; ) {
|
548
|
-
var
|
549
|
-
|
548
|
+
var Ce = B[re];
|
549
|
+
Ce && A(N, Ce, re, ve);
|
550
550
|
}
|
551
551
|
return N;
|
552
552
|
});
|
553
553
|
}
|
554
554
|
function n0(A) {
|
555
555
|
return function(N, B, re) {
|
556
|
-
for (var Ee = -1, ve = Object(N), Re = re(N),
|
556
|
+
for (var Ee = -1, ve = Object(N), Re = re(N), Ce = Re.length; Ce--; ) {
|
557
557
|
var Pe = Re[++Ee];
|
558
558
|
if (B(ve[Pe], Pe, ve) === !1)
|
559
559
|
break;
|
@@ -570,14 +570,14 @@ function D0() {
|
|
570
570
|
return Yd(B) ? B : void 0;
|
571
571
|
}
|
572
572
|
function r0(A) {
|
573
|
-
var N =
|
573
|
+
var N = Ae.call(A, st), B = A[st];
|
574
574
|
try {
|
575
|
-
A[
|
575
|
+
A[st] = void 0;
|
576
576
|
var re = !0;
|
577
577
|
} catch {
|
578
578
|
}
|
579
|
-
var Ee =
|
580
|
-
return re && (N ? A[
|
579
|
+
var Ee = ut.call(A);
|
580
|
+
return re && (N ? A[st] = B : delete A[st]), Ee;
|
581
581
|
}
|
582
582
|
function a0(A) {
|
583
583
|
return typeof A.constructor == "function" && !fu(A) ? yd(ye(A)) : {};
|
@@ -600,7 +600,7 @@ function D0() {
|
|
600
600
|
return !!$e && $e in A;
|
601
601
|
}
|
602
602
|
function fu(A) {
|
603
|
-
var N = A && A.constructor, B = typeof N == "function" && N.prototype ||
|
603
|
+
var N = A && A.constructor, B = typeof N == "function" && N.prototype || Ot;
|
604
604
|
return A === B;
|
605
605
|
}
|
606
606
|
function s0(A) {
|
@@ -611,16 +611,16 @@ function D0() {
|
|
611
611
|
return N;
|
612
612
|
}
|
613
613
|
function l0(A) {
|
614
|
-
return
|
614
|
+
return ut.call(A);
|
615
615
|
}
|
616
616
|
function c0(A, N, B) {
|
617
617
|
return N = bn(N === void 0 ? A.length - 1 : N, 0), function() {
|
618
618
|
for (var re = arguments, Ee = -1, ve = bn(re.length - N, 0), Re = Array(ve); ++Ee < ve; )
|
619
619
|
Re[Ee] = re[N + Ee];
|
620
620
|
Ee = -1;
|
621
|
-
for (var
|
622
|
-
|
623
|
-
return
|
621
|
+
for (var Ce = Array(N + 1); ++Ee < N; )
|
622
|
+
Ce[Ee] = re[Ee];
|
623
|
+
return Ce[N] = B(Re), St(A, this, Ce);
|
624
624
|
};
|
625
625
|
}
|
626
626
|
function la(A, N) {
|
@@ -631,7 +631,7 @@ function D0() {
|
|
631
631
|
function f0(A) {
|
632
632
|
var N = 0, B = 0;
|
633
633
|
return function() {
|
634
|
-
var re =
|
634
|
+
var re = At(), Ee = i - (re - B);
|
635
635
|
if (B = re, Ee > 0) {
|
636
636
|
if (++N >= a)
|
637
637
|
return arguments[0];
|
@@ -659,7 +659,7 @@ function D0() {
|
|
659
659
|
var ca = lu(/* @__PURE__ */ function() {
|
660
660
|
return arguments;
|
661
661
|
}()) ? lu : function(A) {
|
662
|
-
return Bn(A) &&
|
662
|
+
return Bn(A) && Ae.call(A, "callee") && !gt.call(A, "callee");
|
663
663
|
}, da = Array.isArray;
|
664
664
|
function fa(A) {
|
665
665
|
return A != null && pu(A.length) && !ha(A);
|
@@ -672,7 +672,7 @@ function D0() {
|
|
672
672
|
if (!Jt(A))
|
673
673
|
return !1;
|
674
674
|
var N = Er(A);
|
675
|
-
return N == h || N ==
|
675
|
+
return N == h || N == T || N == c || N == F;
|
676
676
|
}
|
677
677
|
function pu(A) {
|
678
678
|
return typeof A == "number" && A > -1 && A % 1 == 0 && A <= u;
|
@@ -690,10 +690,10 @@ function D0() {
|
|
690
690
|
var N = ye(A);
|
691
691
|
if (N === null)
|
692
692
|
return !0;
|
693
|
-
var B =
|
694
|
-
return typeof B == "function" && B instanceof B && be.call(B) ==
|
693
|
+
var B = Ae.call(N, "constructor") && N.constructor;
|
694
|
+
return typeof B == "function" && B instanceof B && be.call(B) == Ze;
|
695
695
|
}
|
696
|
-
var mu =
|
696
|
+
var mu = it ? pn(it) : Vd;
|
697
697
|
function g0(A) {
|
698
698
|
return e0(A, gu(A));
|
699
699
|
}
|
@@ -718,7 +718,7 @@ function D0() {
|
|
718
718
|
}(Qn, Qn.exports)), Qn.exports;
|
719
719
|
}
|
720
720
|
var w0 = D0();
|
721
|
-
const Ss = /* @__PURE__ */
|
721
|
+
const Ss = /* @__PURE__ */ Rt(w0), L0 = {
|
722
722
|
id: "degrees-canvas-support",
|
723
723
|
chatApi: {
|
724
724
|
endpoint: "https://xpert-platform-services-api.prod.ai.2u.com/xpert/omnichannel",
|
@@ -1413,7 +1413,7 @@ const Ss = /* @__PURE__ */ wt(w0), L0 = {
|
|
1413
1413
|
xpertKey: r = null,
|
1414
1414
|
widgetMode: a = !0
|
1415
1415
|
}) => {
|
1416
|
-
const [i, u] = de(!1), [s, l] = de({}), c =
|
1416
|
+
const [i, u] = de(!1), [s, l] = de({}), c = Tt(async () => {
|
1417
1417
|
if (!(!t && !r)) {
|
1418
1418
|
if (u(!1), t)
|
1419
1419
|
try {
|
@@ -1588,7 +1588,7 @@ const Gt = $r({}), vs = S.shape({
|
|
1588
1588
|
onFeedbackSelection: n,
|
1589
1589
|
onMessageSent: r
|
1590
1590
|
}) => {
|
1591
|
-
const a =
|
1591
|
+
const a = nt(null), { id: i } = se(He), [u, s] = de(null), [l, c] = de(!1), d = [
|
1592
1592
|
{
|
1593
1593
|
role: "user",
|
1594
1594
|
content: "Can you show me a picture of a dog?",
|
@@ -3189,22 +3189,24 @@ const Gt = $r({}), vs = S.shape({
|
|
3189
3189
|
toolCallId: null,
|
3190
3190
|
disableFeedback: !1
|
3191
3191
|
}
|
3192
|
-
],
|
3193
|
-
|
3194
|
-
|
3192
|
+
], f = typeof window < "u" && new URLSearchParams(window.location.search).get("mockData") === "true", [p, h] = de(
|
3193
|
+
f ? d : []
|
3194
|
+
), T = Tt(() => {
|
3195
|
+
s(null), c(!1), h([]), pt.remove(`${i}-conversation-history-id`);
|
3196
|
+
}, [i, s]), C = {
|
3195
3197
|
contentRef: a,
|
3196
3198
|
conversationId: u,
|
3197
3199
|
deleteConversationModal: l,
|
3198
|
-
deleteConversationHistory:
|
3200
|
+
deleteConversationHistory: T,
|
3199
3201
|
onFeedbackSelection: n,
|
3200
3202
|
onMessageSent: r,
|
3201
|
-
pushXpertMessage: (
|
3203
|
+
pushXpertMessage: (E) => h((P) => [...P, E]),
|
3202
3204
|
setConversationId: s,
|
3203
3205
|
setDeleteConversationModal: c,
|
3204
|
-
setXpertMessages:
|
3205
|
-
xpertMessages: t ??
|
3206
|
+
setXpertMessages: h,
|
3207
|
+
xpertMessages: t ?? p
|
3206
3208
|
};
|
3207
|
-
return /* @__PURE__ */ x.jsx(Gt.Provider, { value:
|
3209
|
+
return /* @__PURE__ */ x.jsx(Gt.Provider, { value: C, children: e });
|
3208
3210
|
};
|
3209
3211
|
ks.propTypes = {
|
3210
3212
|
children: S.element.isRequired,
|
@@ -3222,11 +3224,11 @@ const Su = 991, q0 = () => {
|
|
3222
3224
|
};
|
3223
3225
|
return window.addEventListener("resize", n), () => window.removeEventListener("resize", n);
|
3224
3226
|
}, []), e;
|
3225
|
-
},
|
3227
|
+
}, qt = {
|
3226
3228
|
LIVECHAT: "LIVECHAT",
|
3227
3229
|
XPERT: "XPERT"
|
3228
3230
|
}, Ke = $r({}), Ns = ({ children: e }) => {
|
3229
|
-
const [t, n] = de(!1), [r, a] = de(!1), [i, u] = de(!1), [s, l] = de(!0), [c, d] = de(!1), [f, p] = de(
|
3231
|
+
const [t, n] = de(!1), [r, a] = de(!1), [i, u] = de(!1), [s, l] = de(!0), [c, d] = de(!1), [f, p] = de(qt.XPERT), h = q0(), T = {
|
3230
3232
|
disabledScroll: t,
|
3231
3233
|
hasError: r,
|
3232
3234
|
hasNewMessage: i,
|
@@ -3241,7 +3243,7 @@ const Su = 991, q0 = () => {
|
|
3241
3243
|
setLoading: d,
|
3242
3244
|
setMode: p
|
3243
3245
|
};
|
3244
|
-
return /* @__PURE__ */ x.jsx(Ke.Provider, { value:
|
3246
|
+
return /* @__PURE__ */ x.jsx(Ke.Provider, { value: T, children: e });
|
3245
3247
|
};
|
3246
3248
|
Ns.propTypes = {
|
3247
3249
|
children: S.element.isRequired
|
@@ -3286,7 +3288,7 @@ function z0() {
|
|
3286
3288
|
}(Ca)), Ca.exports;
|
3287
3289
|
}
|
3288
3290
|
var Y0 = z0();
|
3289
|
-
const Ds = /* @__PURE__ */
|
3291
|
+
const Ds = /* @__PURE__ */ Rt(Y0);
|
3290
3292
|
function Ii({
|
3291
3293
|
label: e,
|
3292
3294
|
className: t = "",
|
@@ -3328,10 +3330,10 @@ const V0 = 1500, W0 = `The parent container is wider than the chatbot launch but
|
|
3328
3330
|
eyes follow your mouse when you hover near it.`, ws = ({
|
3329
3331
|
handleFloatingActionButtonClick: e = null
|
3330
3332
|
}) => {
|
3331
|
-
var h,
|
3332
|
-
const { id: t, launchButton: n } = se(He), { isMobile: r } = se(Ke), a = !
|
3333
|
+
var h, T, m, C;
|
3334
|
+
const { id: t, launchButton: n } = se(He), { isMobile: r } = se(Ke), a = !pt.get(
|
3333
3335
|
`${t}-proactive-message-xpert-chatbot`
|
3334
|
-
), i =
|
3336
|
+
), i = nt(null), u = nt(!1), s = a ? (h = n == null ? void 0 : n.animatedGraduate) == null ? void 0 : h.delayMs : ((T = n == null ? void 0 : n.animatedGraduate) == null ? void 0 : T.delayMs) * 2, [l, c] = de(!1), d = window.matchMedia(
|
3335
3337
|
`(max-width: ${V0}px)`
|
3336
3338
|
).matches;
|
3337
3339
|
Le(() => {
|
@@ -3352,7 +3354,7 @@ eyes follow your mouse when you hover near it.`, ws = ({
|
|
3352
3354
|
i.current.querySelectorAll(
|
3353
3355
|
".xpert_chatbot__animated_graduate__pupil"
|
3354
3356
|
).forEach((L) => {
|
3355
|
-
const
|
3357
|
+
const y = L.getBoundingClientRect(), k = (P.pageX - window.scrollX - y.left) / 30 / 16 + "rem", $ = (P.pageY - window.scrollY - y.top) / 30 / 16 + "rem";
|
3356
3358
|
L.style.transform = "translate3d(" + k + "," + $ + ", 0rem)";
|
3357
3359
|
});
|
3358
3360
|
};
|
@@ -4023,10 +4025,10 @@ var Du = {
|
|
4023
4025
|
var v = D.activeElement;
|
4024
4026
|
if (v)
|
4025
4027
|
return v.shadowRoot && v.shadowRoot.activeElement !== null ? h(v.shadowRoot) : v;
|
4026
|
-
},
|
4028
|
+
}, T = function(D) {
|
4027
4029
|
if (D !== !1 && D !== h(document)) {
|
4028
4030
|
if (!D || !D.focus) {
|
4029
|
-
|
4031
|
+
T(f());
|
4030
4032
|
return;
|
4031
4033
|
}
|
4032
4034
|
D.focus({
|
@@ -4114,7 +4116,7 @@ var Du = {
|
|
4114
4116
|
// outside the trap causing the focus escape we're trying to fix)
|
4115
4117
|
target: u.mostRecentlyFocusedNode,
|
4116
4118
|
isBackward: i.isKeyBackward(u.recentNavEvent)
|
4117
|
-
})),
|
4119
|
+
})), T(H || u.mostRecentlyFocusedNode || f());
|
4118
4120
|
}
|
4119
4121
|
u.recentNavEvent = void 0;
|
4120
4122
|
}, F = function(D) {
|
@@ -4124,25 +4126,25 @@ var Du = {
|
|
4124
4126
|
event: D,
|
4125
4127
|
isBackward: v
|
4126
4128
|
});
|
4127
|
-
w && (Kn(D) && D.preventDefault(),
|
4129
|
+
w && (Kn(D) && D.preventDefault(), T(w));
|
4128
4130
|
}, Q = function(D) {
|
4129
4131
|
(i.isKeyForward(D) || i.isKeyBackward(D)) && F(D, i.isKeyBackward(D));
|
4130
4132
|
}, L = function(D) {
|
4131
4133
|
Cf(D) && Un(i.escapeDeactivates, D) !== !1 && (D.preventDefault(), s.deactivate());
|
4132
|
-
},
|
4134
|
+
}, y = function(D) {
|
4133
4135
|
var v = Ar(D);
|
4134
4136
|
c(v, D) >= 0 || Un(i.clickOutsideDeactivates, D) || Un(i.allowOutsideClick, D) || (D.preventDefault(), D.stopImmediatePropagation());
|
4135
4137
|
}, k = function() {
|
4136
4138
|
if (u.active)
|
4137
4139
|
return Du.activateTrap(a, s), u.delayInitialFocusTimer = i.delayInitialFocus ? wu(function() {
|
4138
|
-
|
4139
|
-
}) :
|
4140
|
+
T(f());
|
4141
|
+
}) : T(f()), r.addEventListener("focusin", P, !0), r.addEventListener("mousedown", E, {
|
4140
4142
|
capture: !0,
|
4141
4143
|
passive: !1
|
4142
4144
|
}), r.addEventListener("touchstart", E, {
|
4143
4145
|
capture: !0,
|
4144
4146
|
passive: !1
|
4145
|
-
}), r.addEventListener("click",
|
4147
|
+
}), r.addEventListener("click", y, {
|
4146
4148
|
capture: !0,
|
4147
4149
|
passive: !1
|
4148
4150
|
}), r.addEventListener("keydown", Q, {
|
@@ -4151,7 +4153,7 @@ var Du = {
|
|
4151
4153
|
}), r.addEventListener("keydown", L), s;
|
4152
4154
|
}, $ = function() {
|
4153
4155
|
if (u.active)
|
4154
|
-
return r.removeEventListener("focusin", P, !0), r.removeEventListener("mousedown", E, !0), r.removeEventListener("touchstart", E, !0), r.removeEventListener("click",
|
4156
|
+
return r.removeEventListener("focusin", P, !0), r.removeEventListener("mousedown", E, !0), r.removeEventListener("touchstart", E, !0), r.removeEventListener("click", y, !0), r.removeEventListener("keydown", Q, !0), r.removeEventListener("keydown", L), s;
|
4155
4157
|
}, M = function(D) {
|
4156
4158
|
var v = D.some(function(w) {
|
4157
4159
|
var H = Array.from(w.removedNodes);
|
@@ -4159,7 +4161,7 @@ var Du = {
|
|
4159
4161
|
return W === u.mostRecentlyFocusedNode;
|
4160
4162
|
});
|
4161
4163
|
});
|
4162
|
-
v &&
|
4164
|
+
v && T(f());
|
4163
4165
|
}, K = typeof window < "u" && "MutationObserver" in window ? new MutationObserver(M) : void 0, q = function() {
|
4164
4166
|
K && (K.disconnect(), u.active && !u.paused && u.containers.map(function(D) {
|
4165
4167
|
K.observe(D, {
|
@@ -4198,7 +4200,7 @@ var Du = {
|
|
4198
4200
|
w == null || w();
|
4199
4201
|
var z = function() {
|
4200
4202
|
wu(function() {
|
4201
|
-
j &&
|
4203
|
+
j && T(m(u.nodeFocusedBeforeActivation)), H == null || H();
|
4202
4204
|
});
|
4203
4205
|
};
|
4204
4206
|
return j && W ? (W(m(u.nodeFocusedBeforeActivation)).then(z, z), this) : (z(), this);
|
@@ -4245,80 +4247,80 @@ var _a, Lu;
|
|
4245
4247
|
function kf() {
|
4246
4248
|
if (Lu) return _a;
|
4247
4249
|
Lu = 1;
|
4248
|
-
function e(
|
4250
|
+
function e(y) {
|
4249
4251
|
"@babel/helpers - typeof";
|
4250
4252
|
return e = typeof Symbol == "function" && typeof Symbol.iterator == "symbol" ? function(k) {
|
4251
4253
|
return typeof k;
|
4252
4254
|
} : function(k) {
|
4253
4255
|
return k && typeof Symbol == "function" && k.constructor === Symbol && k !== Symbol.prototype ? "symbol" : typeof k;
|
4254
|
-
}, e(
|
4256
|
+
}, e(y);
|
4255
4257
|
}
|
4256
|
-
function t(
|
4257
|
-
if (!(
|
4258
|
+
function t(y, k) {
|
4259
|
+
if (!(y instanceof k)) throw new TypeError("Cannot call a class as a function");
|
4258
4260
|
}
|
4259
|
-
function n(
|
4261
|
+
function n(y, k) {
|
4260
4262
|
for (var $ = 0; $ < k.length; $++) {
|
4261
4263
|
var M = k[$];
|
4262
|
-
M.enumerable = M.enumerable || !1, M.configurable = !0, "value" in M && (M.writable = !0), Object.defineProperty(
|
4264
|
+
M.enumerable = M.enumerable || !1, M.configurable = !0, "value" in M && (M.writable = !0), Object.defineProperty(y, p(M.key), M);
|
4263
4265
|
}
|
4264
4266
|
}
|
4265
|
-
function r(
|
4266
|
-
return k && n(
|
4267
|
+
function r(y, k, $) {
|
4268
|
+
return k && n(y.prototype, k), Object.defineProperty(y, "prototype", { writable: !1 }), y;
|
4267
4269
|
}
|
4268
|
-
function a(
|
4269
|
-
return k = l(k), i(
|
4270
|
+
function a(y, k, $) {
|
4271
|
+
return k = l(k), i(y, s() ? Reflect.construct(k, $ || [], l(y).constructor) : k.apply(y, $));
|
4270
4272
|
}
|
4271
|
-
function i(
|
4273
|
+
function i(y, k) {
|
4272
4274
|
if (k && (e(k) == "object" || typeof k == "function")) return k;
|
4273
4275
|
if (k !== void 0) throw new TypeError("Derived constructors may only return object or undefined");
|
4274
|
-
return u(
|
4276
|
+
return u(y);
|
4275
4277
|
}
|
4276
|
-
function u(
|
4277
|
-
if (
|
4278
|
-
return
|
4278
|
+
function u(y) {
|
4279
|
+
if (y === void 0) throw new ReferenceError("this hasn't been initialised - super() hasn't been called");
|
4280
|
+
return y;
|
4279
4281
|
}
|
4280
4282
|
function s() {
|
4281
4283
|
try {
|
4282
|
-
var
|
4284
|
+
var y = !Boolean.prototype.valueOf.call(Reflect.construct(Boolean, [], function() {
|
4283
4285
|
}));
|
4284
4286
|
} catch {
|
4285
4287
|
}
|
4286
4288
|
return (s = function() {
|
4287
|
-
return !!
|
4289
|
+
return !!y;
|
4288
4290
|
})();
|
4289
4291
|
}
|
4290
|
-
function l(
|
4292
|
+
function l(y) {
|
4291
4293
|
return l = Object.setPrototypeOf ? Object.getPrototypeOf.bind() : function(k) {
|
4292
4294
|
return k.__proto__ || Object.getPrototypeOf(k);
|
4293
|
-
}, l(
|
4295
|
+
}, l(y);
|
4294
4296
|
}
|
4295
|
-
function c(
|
4297
|
+
function c(y, k) {
|
4296
4298
|
if (typeof k != "function" && k !== null) throw new TypeError("Super expression must either be null or a function");
|
4297
|
-
|
4299
|
+
y.prototype = Object.create(k && k.prototype, { constructor: { value: y, writable: !0, configurable: !0 } }), Object.defineProperty(y, "prototype", { writable: !1 }), k && d(y, k);
|
4298
4300
|
}
|
4299
|
-
function d(
|
4301
|
+
function d(y, k) {
|
4300
4302
|
return d = Object.setPrototypeOf ? Object.setPrototypeOf.bind() : function($, M) {
|
4301
4303
|
return $.__proto__ = M, $;
|
4302
|
-
}, d(
|
4304
|
+
}, d(y, k);
|
4303
4305
|
}
|
4304
|
-
function f(
|
4305
|
-
return (k = p(k)) in
|
4306
|
+
function f(y, k, $) {
|
4307
|
+
return (k = p(k)) in y ? Object.defineProperty(y, k, { value: $, enumerable: !0, configurable: !0, writable: !0 }) : y[k] = $, y;
|
4306
4308
|
}
|
4307
|
-
function p(
|
4308
|
-
var k = h(
|
4309
|
+
function p(y) {
|
4310
|
+
var k = h(y, "string");
|
4309
4311
|
return e(k) == "symbol" ? k : k + "";
|
4310
4312
|
}
|
4311
|
-
function h(
|
4312
|
-
if (e(
|
4313
|
-
var $ =
|
4313
|
+
function h(y, k) {
|
4314
|
+
if (e(y) != "object" || !y) return y;
|
4315
|
+
var $ = y[Symbol.toPrimitive];
|
4314
4316
|
if ($ !== void 0) {
|
4315
|
-
var M = $.call(
|
4317
|
+
var M = $.call(y, k);
|
4316
4318
|
if (e(M) != "object") return M;
|
4317
4319
|
throw new TypeError("@@toPrimitive must return a primitive value.");
|
4318
4320
|
}
|
4319
|
-
return (k === "string" ? String : Number)(
|
4321
|
+
return (k === "string" ? String : Number)(y);
|
4320
4322
|
}
|
4321
|
-
var
|
4323
|
+
var T = yt, m = /* @__PURE__ */ xs(), C = Of, E = C.createFocusTrap, P = vf, F = P.isFocusable, Q = /* @__PURE__ */ function(y) {
|
4322
4324
|
function k($) {
|
4323
4325
|
var M;
|
4324
4326
|
t(this, k), M = a(this, k, [$]), f(M, "getNodeForOption", function(V) {
|
@@ -4381,7 +4383,7 @@ function kf() {
|
|
4381
4383
|
}
|
4382
4384
|
return M.outsideClick = null, M.focusTrapElements = $.containerElements || [], M.updatePreviousElement(), M;
|
4383
4385
|
}
|
4384
|
-
return c(k,
|
4386
|
+
return c(k, y), r(k, [{
|
4385
4387
|
key: "getDocument",
|
4386
4388
|
value: function() {
|
4387
4389
|
return this.props.focusTrapOptions.document || (typeof document < "u" ? document : void 0);
|
@@ -4488,14 +4490,14 @@ function kf() {
|
|
4488
4490
|
}, {
|
4489
4491
|
key: "render",
|
4490
4492
|
value: function() {
|
4491
|
-
var M = this, K = this.props.children ?
|
4493
|
+
var M = this, K = this.props.children ? T.Children.only(this.props.children) : void 0;
|
4492
4494
|
if (K) {
|
4493
|
-
if (K.type && K.type ===
|
4495
|
+
if (K.type && K.type === T.Fragment)
|
4494
4496
|
throw new Error("A focus-trap cannot use a Fragment as its child container. Try replacing it with a <div> element.");
|
4495
4497
|
var q = function(v) {
|
4496
4498
|
var w = M.props.containerElements;
|
4497
4499
|
K && (typeof K.ref == "function" ? K.ref(v) : K.ref && (K.ref.current = v)), M.focusTrapElements = w || [v];
|
4498
|
-
}, V =
|
4500
|
+
}, V = T.cloneElement(K, {
|
4499
4501
|
ref: q
|
4500
4502
|
});
|
4501
4503
|
return V;
|
@@ -4503,7 +4505,7 @@ function kf() {
|
|
4503
4505
|
return null;
|
4504
4506
|
}
|
4505
4507
|
}]);
|
4506
|
-
}(
|
4508
|
+
}(T.Component), L = typeof Element > "u" ? Function : Element;
|
4507
4509
|
return Q.propTypes = {
|
4508
4510
|
active: m.bool,
|
4509
4511
|
paused: m.bool,
|
@@ -4559,14 +4561,14 @@ function kf() {
|
|
4559
4561
|
}, _a = Q, _a;
|
4560
4562
|
}
|
4561
4563
|
var Nf = kf();
|
4562
|
-
const Df = /* @__PURE__ */
|
4564
|
+
const Df = /* @__PURE__ */ Rt(Nf);
|
4563
4565
|
function zs({
|
4564
4566
|
children: e,
|
4565
4567
|
className: t = "",
|
4566
4568
|
isMounted: n = !1,
|
4567
4569
|
style: r = {}
|
4568
4570
|
}) {
|
4569
|
-
const { isMobile: a, isNormalSize: i } = se(Ke), u =
|
4571
|
+
const { isMobile: a, isNormalSize: i } = se(Ke), u = nt(null);
|
4570
4572
|
return /* @__PURE__ */ x.jsx(
|
4571
4573
|
Df,
|
4572
4574
|
{
|
@@ -4615,7 +4617,7 @@ Ys.propTypes = {
|
|
4615
4617
|
isMounted: S.bool
|
4616
4618
|
};
|
4617
4619
|
const Vs = () => {
|
4618
|
-
const { disclaimer: e } = se(He), t =
|
4620
|
+
const { disclaimer: e } = se(He), t = nt(null);
|
4619
4621
|
return Le(() => {
|
4620
4622
|
var n;
|
4621
4623
|
(n = t == null ? void 0 : t.current) == null || n.focus();
|
@@ -4975,10 +4977,10 @@ function Wf(e, t) {
|
|
4975
4977
|
Vf(C) || (p[m] = C.toString());
|
4976
4978
|
};
|
4977
4979
|
h("width", d), h("height", f);
|
4978
|
-
const
|
4979
|
-
return p.viewBox =
|
4980
|
+
const T = [a.left, a.top, l, c];
|
4981
|
+
return p.viewBox = T.join(" "), {
|
4980
4982
|
attributes: p,
|
4981
|
-
viewBox:
|
4983
|
+
viewBox: T,
|
4982
4984
|
body: i
|
4983
4985
|
};
|
4984
4986
|
}
|
@@ -5259,27 +5261,27 @@ function fh(e, t, n, r) {
|
|
5259
5261
|
const a = e.resources.length, i = e.random ? Math.floor(Math.random() * a) : e.index;
|
5260
5262
|
let u;
|
5261
5263
|
if (e.random) {
|
5262
|
-
let
|
5263
|
-
for (u = [];
|
5264
|
-
const k = Math.floor(Math.random() *
|
5265
|
-
u.push(
|
5264
|
+
let y = e.resources.slice(0);
|
5265
|
+
for (u = []; y.length > 1; ) {
|
5266
|
+
const k = Math.floor(Math.random() * y.length);
|
5267
|
+
u.push(y[k]), y = y.slice(0, k).concat(y.slice(k + 1));
|
5266
5268
|
}
|
5267
|
-
u = u.concat(
|
5269
|
+
u = u.concat(y);
|
5268
5270
|
} else
|
5269
5271
|
u = e.resources.slice(i).concat(e.resources.slice(0, i));
|
5270
5272
|
const s = Date.now();
|
5271
5273
|
let l = "pending", c = 0, d, f = null, p = [], h = [];
|
5272
5274
|
typeof r == "function" && h.push(r);
|
5273
|
-
function
|
5275
|
+
function T() {
|
5274
5276
|
f && (clearTimeout(f), f = null);
|
5275
5277
|
}
|
5276
5278
|
function m() {
|
5277
|
-
l === "pending" && (l = "aborted"),
|
5278
|
-
|
5279
|
+
l === "pending" && (l = "aborted"), T(), p.forEach((y) => {
|
5280
|
+
y.status === "pending" && (y.status = "aborted");
|
5279
5281
|
}), p = [];
|
5280
5282
|
}
|
5281
|
-
function C(
|
5282
|
-
k && (h = []), typeof
|
5283
|
+
function C(y, k) {
|
5284
|
+
k && (h = []), typeof y == "function" && h.push(y);
|
5283
5285
|
}
|
5284
5286
|
function E() {
|
5285
5287
|
return {
|
@@ -5293,18 +5295,18 @@ function fh(e, t, n, r) {
|
|
5293
5295
|
};
|
5294
5296
|
}
|
5295
5297
|
function P() {
|
5296
|
-
l = "failed", h.forEach((
|
5297
|
-
|
5298
|
+
l = "failed", h.forEach((y) => {
|
5299
|
+
y(void 0, d);
|
5298
5300
|
});
|
5299
5301
|
}
|
5300
5302
|
function F() {
|
5301
|
-
p.forEach((
|
5302
|
-
|
5303
|
+
p.forEach((y) => {
|
5304
|
+
y.status === "pending" && (y.status = "aborted");
|
5303
5305
|
}), p = [];
|
5304
5306
|
}
|
5305
|
-
function Q(
|
5307
|
+
function Q(y, k, $) {
|
5306
5308
|
const M = k !== "success";
|
5307
|
-
switch (p = p.filter((K) => K !==
|
5309
|
+
switch (p = p.filter((K) => K !== y), l) {
|
5308
5310
|
case "pending":
|
5309
5311
|
break;
|
5310
5312
|
case "failed":
|
@@ -5322,8 +5324,8 @@ function fh(e, t, n, r) {
|
|
5322
5324
|
d = $, p.length || (u.length ? L() : P());
|
5323
5325
|
return;
|
5324
5326
|
}
|
5325
|
-
if (
|
5326
|
-
const K = e.resources.indexOf(
|
5327
|
+
if (T(), F(), !e.random) {
|
5328
|
+
const K = e.resources.indexOf(y.resource);
|
5327
5329
|
K !== -1 && K !== e.index && (e.index = K);
|
5328
5330
|
}
|
5329
5331
|
l = "completed", h.forEach((K) => {
|
@@ -5333,12 +5335,12 @@ function fh(e, t, n, r) {
|
|
5333
5335
|
function L() {
|
5334
5336
|
if (l !== "pending")
|
5335
5337
|
return;
|
5336
|
-
|
5337
|
-
const
|
5338
|
-
if (
|
5338
|
+
T();
|
5339
|
+
const y = u.shift();
|
5340
|
+
if (y === void 0) {
|
5339
5341
|
if (p.length) {
|
5340
5342
|
f = setTimeout(() => {
|
5341
|
-
|
5343
|
+
T(), l === "pending" && (F(), P());
|
5342
5344
|
}, e.timeout);
|
5343
5345
|
return;
|
5344
5346
|
}
|
@@ -5347,12 +5349,12 @@ function fh(e, t, n, r) {
|
|
5347
5349
|
}
|
5348
5350
|
const k = {
|
5349
5351
|
status: "pending",
|
5350
|
-
resource:
|
5352
|
+
resource: y,
|
5351
5353
|
callback: ($, M) => {
|
5352
5354
|
Q(k, $, M);
|
5353
5355
|
}
|
5354
5356
|
};
|
5355
|
-
p.push(k), c++, f = setTimeout(L, e.rotate), n(
|
5357
|
+
p.push(k), c++, f = setTimeout(L, e.rotate), n(y, t, k.callback);
|
5356
5358
|
}
|
5357
5359
|
return setTimeout(L), E;
|
5358
5360
|
}
|
@@ -5731,7 +5733,7 @@ const wh = (e, t, n) => {
|
|
5731
5733
|
__html: vh(Xf(c.body, E ? () => E + "ID" + C++ : "iconifyReact"))
|
5732
5734
|
}, Ka("svg", l);
|
5733
5735
|
}
|
5734
|
-
const { body: f, width: p, height: h } = e,
|
5736
|
+
const { body: f, width: p, height: h } = e, T = i === "mask" || (i === "bg" ? !1 : f.indexOf("currentColor") !== -1), m = Ah(f, {
|
5735
5737
|
...d,
|
5736
5738
|
width: p + "",
|
5737
5739
|
height: h + ""
|
@@ -5742,7 +5744,7 @@ const wh = (e, t, n) => {
|
|
5742
5744
|
width: Yu(d.width),
|
5743
5745
|
height: Yu(d.height),
|
5744
5746
|
...Nh,
|
5745
|
-
...
|
5747
|
+
...T ? ai : rl,
|
5746
5748
|
...s
|
5747
5749
|
}, Ka("span", l);
|
5748
5750
|
};
|
@@ -5783,16 +5785,16 @@ function al(e) {
|
|
5783
5785
|
const [t, n] = de(!!e.ssr), [r, a] = de({});
|
5784
5786
|
function i(h) {
|
5785
5787
|
if (h) {
|
5786
|
-
const
|
5787
|
-
if (typeof
|
5788
|
+
const T = e.icon;
|
5789
|
+
if (typeof T == "object")
|
5788
5790
|
return {
|
5789
5791
|
name: "",
|
5790
|
-
data:
|
5792
|
+
data: T
|
5791
5793
|
};
|
5792
|
-
const m = Mu(
|
5794
|
+
const m = Mu(T);
|
5793
5795
|
if (m)
|
5794
5796
|
return {
|
5795
|
-
name:
|
5797
|
+
name: T,
|
5796
5798
|
data: m
|
5797
5799
|
};
|
5798
5800
|
}
|
@@ -5811,25 +5813,25 @@ function al(e) {
|
|
5811
5813
|
}
|
5812
5814
|
function d() {
|
5813
5815
|
var h;
|
5814
|
-
const
|
5815
|
-
if (typeof
|
5816
|
+
const T = e.icon;
|
5817
|
+
if (typeof T == "object") {
|
5816
5818
|
c({
|
5817
5819
|
name: "",
|
5818
|
-
data:
|
5820
|
+
data: T
|
5819
5821
|
});
|
5820
5822
|
return;
|
5821
5823
|
}
|
5822
|
-
const m = Mu(
|
5824
|
+
const m = Mu(T);
|
5823
5825
|
if (c({
|
5824
|
-
name:
|
5826
|
+
name: T,
|
5825
5827
|
data: m
|
5826
5828
|
}))
|
5827
5829
|
if (m === void 0) {
|
5828
|
-
const C = Eh([
|
5830
|
+
const C = Eh([T], d);
|
5829
5831
|
a({
|
5830
5832
|
callback: C
|
5831
5833
|
});
|
5832
|
-
} else m && ((h = e.onLoad) === null || h === void 0 || h.call(e,
|
5834
|
+
} else m && ((h = e.onLoad) === null || h === void 0 || h.call(e, T));
|
5833
5835
|
}
|
5834
5836
|
Le(() => (n(!0), l), []), Le(() => {
|
5835
5837
|
t && d();
|
@@ -5840,7 +5842,7 @@ function al(e) {
|
|
5840
5842
|
...p
|
5841
5843
|
}, e, f) : e.children ? e.children : Ka("span", {});
|
5842
5844
|
}
|
5843
|
-
const
|
5845
|
+
const wt = As((e, t) => al({
|
5844
5846
|
...e,
|
5845
5847
|
_ref: t
|
5846
5848
|
}));
|
@@ -5913,7 +5915,7 @@ function ki({
|
|
5913
5915
|
f.preventDefault(), n(i);
|
5914
5916
|
},
|
5915
5917
|
"aria-label": "Send message",
|
5916
|
-
children: /* @__PURE__ */ x.jsx(
|
5918
|
+
children: /* @__PURE__ */ x.jsx(wt, { icon: "material-symbols:send", style: { fontSize: "1.75rem" } })
|
5917
5919
|
}
|
5918
5920
|
)
|
5919
5921
|
] });
|
@@ -5957,7 +5959,7 @@ function Rh() {
|
|
5957
5959
|
}), xa;
|
5958
5960
|
}
|
5959
5961
|
var Ph = Rh();
|
5960
|
-
const il = /* @__PURE__ */
|
5962
|
+
const il = /* @__PURE__ */ Rt(Ph);
|
5961
5963
|
function Jn(e) {
|
5962
5964
|
return !e || typeof e != "object" ? "" : "position" in e || "type" in e ? $u(e.position) : "start" in e || "end" in e ? $u(e) : "line" in e || "column" in e ? ii(e) : "";
|
5963
5965
|
}
|
@@ -5970,7 +5972,7 @@ function $u(e) {
|
|
5970
5972
|
function Gu(e) {
|
5971
5973
|
return e && typeof e == "number" ? e : 1;
|
5972
5974
|
}
|
5973
|
-
class
|
5975
|
+
class Ct extends Error {
|
5974
5976
|
/**
|
5975
5977
|
* Create a message for `reason` at `place` from `origin`.
|
5976
5978
|
*
|
@@ -6004,18 +6006,18 @@ class Tt extends Error {
|
|
6004
6006
|
n && ("type" in n || "position" in n ? n.position && (i = n.position) : "start" in n || "end" in n ? i = n : ("line" in n || "column" in n) && (i.start = n)), this.name = Jn(n) || "1:1", this.message = typeof t == "object" ? t.message : t, this.stack = "", typeof t == "object" && t.stack && (this.stack = t.stack), this.reason = this.message, this.fatal, this.line = i.start.line, this.column = i.start.column, this.position = i, this.source = a[0], this.ruleId = a[1], this.file, this.actual, this.expected, this.url, this.note;
|
6005
6007
|
}
|
6006
6008
|
}
|
6007
|
-
|
6008
|
-
|
6009
|
-
|
6010
|
-
|
6011
|
-
|
6012
|
-
|
6013
|
-
|
6014
|
-
|
6015
|
-
|
6016
|
-
|
6017
|
-
|
6018
|
-
const
|
6009
|
+
Ct.prototype.file = "";
|
6010
|
+
Ct.prototype.name = "";
|
6011
|
+
Ct.prototype.reason = "";
|
6012
|
+
Ct.prototype.message = "";
|
6013
|
+
Ct.prototype.stack = "";
|
6014
|
+
Ct.prototype.fatal = null;
|
6015
|
+
Ct.prototype.column = null;
|
6016
|
+
Ct.prototype.line = null;
|
6017
|
+
Ct.prototype.source = null;
|
6018
|
+
Ct.prototype.ruleId = null;
|
6019
|
+
Ct.prototype.position = null;
|
6020
|
+
const kt = { basename: Mh, dirname: Fh, extname: Bh, join: Hh, sep: "/" };
|
6019
6021
|
function Mh(e, t) {
|
6020
6022
|
if (t !== void 0 && typeof t != "string")
|
6021
6023
|
throw new TypeError('"ext" argument must be a string');
|
@@ -6229,7 +6231,7 @@ class ul {
|
|
6229
6231
|
* Get the parent path (example: `'~'`).
|
6230
6232
|
*/
|
6231
6233
|
get dirname() {
|
6232
|
-
return typeof this.path == "string" ?
|
6234
|
+
return typeof this.path == "string" ? kt.dirname(this.path) : void 0;
|
6233
6235
|
}
|
6234
6236
|
/**
|
6235
6237
|
* Set the parent path (example: `'~'`).
|
@@ -6237,13 +6239,13 @@ class ul {
|
|
6237
6239
|
* Cannot be set if there’s no `path` yet.
|
6238
6240
|
*/
|
6239
6241
|
set dirname(t) {
|
6240
|
-
Qu(this.basename, "dirname"), this.path =
|
6242
|
+
Qu(this.basename, "dirname"), this.path = kt.join(t || "", this.basename);
|
6241
6243
|
}
|
6242
6244
|
/**
|
6243
6245
|
* Get the basename (including extname) (example: `'index.min.js'`).
|
6244
6246
|
*/
|
6245
6247
|
get basename() {
|
6246
|
-
return typeof this.path == "string" ?
|
6248
|
+
return typeof this.path == "string" ? kt.basename(this.path) : void 0;
|
6247
6249
|
}
|
6248
6250
|
/**
|
6249
6251
|
* Set basename (including extname) (`'index.min.js'`).
|
@@ -6253,13 +6255,13 @@ class ul {
|
|
6253
6255
|
* Cannot be nullified (use `file.path = file.dirname` instead).
|
6254
6256
|
*/
|
6255
6257
|
set basename(t) {
|
6256
|
-
va(t, "basename"), Oa(t, "basename"), this.path =
|
6258
|
+
va(t, "basename"), Oa(t, "basename"), this.path = kt.join(this.dirname || "", t);
|
6257
6259
|
}
|
6258
6260
|
/**
|
6259
6261
|
* Get the extname (including dot) (example: `'.js'`).
|
6260
6262
|
*/
|
6261
6263
|
get extname() {
|
6262
|
-
return typeof this.path == "string" ?
|
6264
|
+
return typeof this.path == "string" ? kt.extname(this.path) : void 0;
|
6263
6265
|
}
|
6264
6266
|
/**
|
6265
6267
|
* Set the extname (including dot) (example: `'.js'`).
|
@@ -6275,13 +6277,13 @@ class ul {
|
|
6275
6277
|
if (t.includes(".", 1))
|
6276
6278
|
throw new Error("`extname` cannot contain multiple dots");
|
6277
6279
|
}
|
6278
|
-
this.path =
|
6280
|
+
this.path = kt.join(this.dirname, this.stem + (t || ""));
|
6279
6281
|
}
|
6280
6282
|
/**
|
6281
6283
|
* Get the stem (basename w/o extname) (example: `'index.min'`).
|
6282
6284
|
*/
|
6283
6285
|
get stem() {
|
6284
|
-
return typeof this.path == "string" ?
|
6286
|
+
return typeof this.path == "string" ? kt.basename(this.path, this.extname) : void 0;
|
6285
6287
|
}
|
6286
6288
|
/**
|
6287
6289
|
* Set the stem (basename w/o extname) (example: `'index.min'`).
|
@@ -6291,7 +6293,7 @@ class ul {
|
|
6291
6293
|
* Cannot be nullified (use `file.path = file.dirname` instead).
|
6292
6294
|
*/
|
6293
6295
|
set stem(t) {
|
6294
|
-
va(t, "stem"), Oa(t, "stem"), this.path =
|
6296
|
+
va(t, "stem"), Oa(t, "stem"), this.path = kt.join(this.dirname || "", t + (this.extname || ""));
|
6295
6297
|
}
|
6296
6298
|
/**
|
6297
6299
|
* Serialize the file.
|
@@ -6322,7 +6324,7 @@ class ul {
|
|
6322
6324
|
* Message.
|
6323
6325
|
*/
|
6324
6326
|
message(t, n, r) {
|
6325
|
-
const a = new
|
6327
|
+
const a = new Ct(t, n, r);
|
6326
6328
|
return this.path && (a.name = this.path + ":" + a.name, a.file = this.path), a.fatal = !1, this.messages.push(a), a;
|
6327
6329
|
}
|
6328
6330
|
/**
|
@@ -6371,9 +6373,9 @@ class ul {
|
|
6371
6373
|
}
|
6372
6374
|
}
|
6373
6375
|
function Oa(e, t) {
|
6374
|
-
if (e && e.includes(
|
6376
|
+
if (e && e.includes(kt.sep))
|
6375
6377
|
throw new Error(
|
6376
|
-
"`" + t + "` cannot be a path: did not expect `" +
|
6378
|
+
"`" + t + "` cannot be a path: did not expect `" + kt.sep + "`"
|
6377
6379
|
);
|
6378
6380
|
}
|
6379
6381
|
function va(e, t) {
|
@@ -6423,16 +6425,16 @@ function $h() {
|
|
6423
6425
|
return c[d];
|
6424
6426
|
};
|
6425
6427
|
return ka = function l() {
|
6426
|
-
var c, d, f, p, h,
|
6428
|
+
var c, d, f, p, h, T, m = arguments[0], C = 1, E = arguments.length, P = !1;
|
6427
6429
|
for (typeof m == "boolean" && (P = m, m = arguments[1] || {}, C = 2), (m == null || typeof m != "object" && typeof m != "function") && (m = {}); C < E; ++C)
|
6428
6430
|
if (c = arguments[C], c != null)
|
6429
6431
|
for (d in c)
|
6430
|
-
f = s(m, d), p = s(c, d), m !== p && (P && p && (i(p) || (h = a(p))) ? (h ? (h = !1,
|
6432
|
+
f = s(m, d), p = s(c, d), m !== p && (P && p && (i(p) || (h = a(p))) ? (h ? (h = !1, T = f && a(f) ? f : []) : T = f && i(f) ? f : {}, u(m, { name: d, newValue: l(P, T, p) })) : typeof p < "u" && u(m, { name: d, newValue: p }));
|
6431
6433
|
return m;
|
6432
6434
|
}, ka;
|
6433
6435
|
}
|
6434
6436
|
var Gh = $h();
|
6435
|
-
const Zu = /* @__PURE__ */
|
6437
|
+
const Zu = /* @__PURE__ */ Rt(Gh);
|
6436
6438
|
function oi(e) {
|
6437
6439
|
if (typeof e != "object" || e === null)
|
6438
6440
|
return !1;
|
@@ -6499,7 +6501,7 @@ const Kh = sl().freeze(), ol = {}.hasOwnProperty;
|
|
6499
6501
|
function sl() {
|
6500
6502
|
const e = Qh(), t = [];
|
6501
6503
|
let n = {}, r, a = -1;
|
6502
|
-
return i.data = u, i.Parser = void 0, i.Compiler = void 0, i.freeze = s, i.attachers = t, i.use = l, i.parse = c, i.stringify = d, i.run = f, i.runSync = p, i.process = h, i.processSync =
|
6504
|
+
return i.data = u, i.Parser = void 0, i.Compiler = void 0, i.freeze = s, i.attachers = t, i.use = l, i.parse = c, i.stringify = d, i.run = f, i.runSync = p, i.process = h, i.processSync = T, i;
|
6503
6505
|
function i() {
|
6504
6506
|
const m = sl();
|
6505
6507
|
let C = -1;
|
@@ -6532,35 +6534,35 @@ function sl() {
|
|
6532
6534
|
else
|
6533
6535
|
throw new TypeError("Expected usable value, not `" + m + "`");
|
6534
6536
|
return E && (n.settings = Object.assign(n.settings || {}, E)), i;
|
6535
|
-
function P(
|
6536
|
-
if (typeof
|
6537
|
-
L(
|
6538
|
-
else if (typeof
|
6539
|
-
if (Array.isArray(
|
6540
|
-
const [k, ...$] =
|
6537
|
+
function P(y) {
|
6538
|
+
if (typeof y == "function")
|
6539
|
+
L(y);
|
6540
|
+
else if (typeof y == "object")
|
6541
|
+
if (Array.isArray(y)) {
|
6542
|
+
const [k, ...$] = y;
|
6541
6543
|
L(k, ...$);
|
6542
6544
|
} else
|
6543
|
-
F(
|
6545
|
+
F(y);
|
6544
6546
|
else
|
6545
|
-
throw new TypeError("Expected usable value, not `" +
|
6547
|
+
throw new TypeError("Expected usable value, not `" + y + "`");
|
6546
6548
|
}
|
6547
|
-
function F(
|
6548
|
-
Q(
|
6549
|
+
function F(y) {
|
6550
|
+
Q(y.plugins), y.settings && (E = Object.assign(E || {}, y.settings));
|
6549
6551
|
}
|
6550
|
-
function Q(
|
6552
|
+
function Q(y) {
|
6551
6553
|
let k = -1;
|
6552
|
-
if (
|
6553
|
-
for (; ++k <
|
6554
|
-
const $ =
|
6554
|
+
if (y != null) if (Array.isArray(y))
|
6555
|
+
for (; ++k < y.length; ) {
|
6556
|
+
const $ = y[k];
|
6555
6557
|
P($);
|
6556
6558
|
}
|
6557
6559
|
else
|
6558
|
-
throw new TypeError("Expected a list of plugins, not `" +
|
6560
|
+
throw new TypeError("Expected a list of plugins, not `" + y + "`");
|
6559
6561
|
}
|
6560
|
-
function L(
|
6562
|
+
function L(y, k) {
|
6561
6563
|
let $ = -1, M;
|
6562
6564
|
for (; ++$ < t.length; )
|
6563
|
-
if (t[$][0] ===
|
6565
|
+
if (t[$][0] === y) {
|
6564
6566
|
M = t[$];
|
6565
6567
|
break;
|
6566
6568
|
}
|
@@ -6583,8 +6585,8 @@ function sl() {
|
|
6583
6585
|
P(null, E);
|
6584
6586
|
function P(F, Q) {
|
6585
6587
|
e.run(m, zn(C), L);
|
6586
|
-
function L(
|
6587
|
-
k = k || m,
|
6588
|
+
function L(y, k, $) {
|
6589
|
+
k = k || m, y ? Q(y) : F ? F(k) : E(null, k, $);
|
6588
6590
|
}
|
6589
6591
|
}
|
6590
6592
|
}
|
@@ -6601,20 +6603,20 @@ function sl() {
|
|
6601
6603
|
E(null, C);
|
6602
6604
|
function E(P, F) {
|
6603
6605
|
const Q = zn(m);
|
6604
|
-
i.run(i.parse(Q), Q, (
|
6605
|
-
if (
|
6606
|
-
L(
|
6606
|
+
i.run(i.parse(Q), Q, (y, k, $) => {
|
6607
|
+
if (y || !k || !$)
|
6608
|
+
L(y);
|
6607
6609
|
else {
|
6608
6610
|
const M = i.stringify(k, $);
|
6609
|
-
M == null || (ep(M) ? $.value = M : $.result = M), L(
|
6611
|
+
M == null || (ep(M) ? $.value = M : $.result = M), L(y, $);
|
6610
6612
|
}
|
6611
6613
|
});
|
6612
|
-
function L(
|
6613
|
-
|
6614
|
+
function L(y, k) {
|
6615
|
+
y || !k ? F(y) : P ? P(k) : C(null, k);
|
6614
6616
|
}
|
6615
6617
|
}
|
6616
6618
|
}
|
6617
|
-
function
|
6619
|
+
function T(m) {
|
6618
6620
|
let C;
|
6619
6621
|
i.freeze(), Na("processSync", i.Parser), Da("processSync", i.Compiler);
|
6620
6622
|
const E = zn(m);
|
@@ -6699,7 +6701,7 @@ function no(e, t, n) {
|
|
6699
6701
|
function rp(e) {
|
6700
6702
|
return !!(e && typeof e == "object");
|
6701
6703
|
}
|
6702
|
-
function
|
6704
|
+
function Lt(e, t, n, r) {
|
6703
6705
|
const a = e.length;
|
6704
6706
|
let i = 0, u;
|
6705
6707
|
if (t < 0 ? t = -t > a ? 0 : a + t : t = t > a ? a : t, n = n > 0 ? n : 0, r.length < 1e4)
|
@@ -6708,8 +6710,8 @@ function Dt(e, t, n, r) {
|
|
6708
6710
|
for (n && e.splice(t, n); i < r.length; )
|
6709
6711
|
u = r.slice(i, i + 1e4), u.unshift(t, 0), e.splice(...u), i += 1e4, t += 1e4;
|
6710
6712
|
}
|
6711
|
-
function
|
6712
|
-
return e.length > 0 ? (
|
6713
|
+
function bt(e, t) {
|
6714
|
+
return e.length > 0 ? (Lt(e, e.length, 0, t), e) : t;
|
6713
6715
|
}
|
6714
6716
|
const ro = {}.hasOwnProperty;
|
6715
6717
|
function ap(e) {
|
@@ -6741,9 +6743,9 @@ function up(e, t) {
|
|
6741
6743
|
const r = [];
|
6742
6744
|
for (; ++n < t.length; )
|
6743
6745
|
(t[n].add === "after" ? e : r).push(t[n]);
|
6744
|
-
|
6746
|
+
Lt(e, 0, 0, r);
|
6745
6747
|
}
|
6746
|
-
const op = /[!-\/:-@\[-`\{-~\xA1\xA7\xAB\xB6\xB7\xBB\xBF\u037E\u0387\u055A-\u055F\u0589\u058A\u05BE\u05C0\u05C3\u05C6\u05F3\u05F4\u0609\u060A\u060C\u060D\u061B\u061D-\u061F\u066A-\u066D\u06D4\u0700-\u070D\u07F7-\u07F9\u0830-\u083E\u085E\u0964\u0965\u0970\u09FD\u0A76\u0AF0\u0C77\u0C84\u0DF4\u0E4F\u0E5A\u0E5B\u0F04-\u0F12\u0F14\u0F3A-\u0F3D\u0F85\u0FD0-\u0FD4\u0FD9\u0FDA\u104A-\u104F\u10FB\u1360-\u1368\u1400\u166E\u169B\u169C\u16EB-\u16ED\u1735\u1736\u17D4-\u17D6\u17D8-\u17DA\u1800-\u180A\u1944\u1945\u1A1E\u1A1F\u1AA0-\u1AA6\u1AA8-\u1AAD\u1B5A-\u1B60\u1B7D\u1B7E\u1BFC-\u1BFF\u1C3B-\u1C3F\u1C7E\u1C7F\u1CC0-\u1CC7\u1CD3\u2010-\u2027\u2030-\u2043\u2045-\u2051\u2053-\u205E\u207D\u207E\u208D\u208E\u2308-\u230B\u2329\u232A\u2768-\u2775\u27C5\u27C6\u27E6-\u27EF\u2983-\u2998\u29D8-\u29DB\u29FC\u29FD\u2CF9-\u2CFC\u2CFE\u2CFF\u2D70\u2E00-\u2E2E\u2E30-\u2E4F\u2E52-\u2E5D\u3001-\u3003\u3008-\u3011\u3014-\u301F\u3030\u303D\u30A0\u30FB\uA4FE\uA4FF\uA60D-\uA60F\uA673\uA67E\uA6F2-\uA6F7\uA874-\uA877\uA8CE\uA8CF\uA8F8-\uA8FA\uA8FC\uA92E\uA92F\uA95F\uA9C1-\uA9CD\uA9DE\uA9DF\uAA5C-\uAA5F\uAADE\uAADF\uAAF0\uAAF1\uABEB\uFD3E\uFD3F\uFE10-\uFE19\uFE30-\uFE52\uFE54-\uFE61\uFE63\uFE68\uFE6A\uFE6B\uFF01-\uFF03\uFF05-\uFF0A\uFF0C-\uFF0F\uFF1A\uFF1B\uFF1F\uFF20\uFF3B-\uFF3D\uFF3F\uFF5B\uFF5D\uFF5F-\uFF65]/,
|
6748
|
+
const op = /[!-\/:-@\[-`\{-~\xA1\xA7\xAB\xB6\xB7\xBB\xBF\u037E\u0387\u055A-\u055F\u0589\u058A\u05BE\u05C0\u05C3\u05C6\u05F3\u05F4\u0609\u060A\u060C\u060D\u061B\u061D-\u061F\u066A-\u066D\u06D4\u0700-\u070D\u07F7-\u07F9\u0830-\u083E\u085E\u0964\u0965\u0970\u09FD\u0A76\u0AF0\u0C77\u0C84\u0DF4\u0E4F\u0E5A\u0E5B\u0F04-\u0F12\u0F14\u0F3A-\u0F3D\u0F85\u0FD0-\u0FD4\u0FD9\u0FDA\u104A-\u104F\u10FB\u1360-\u1368\u1400\u166E\u169B\u169C\u16EB-\u16ED\u1735\u1736\u17D4-\u17D6\u17D8-\u17DA\u1800-\u180A\u1944\u1945\u1A1E\u1A1F\u1AA0-\u1AA6\u1AA8-\u1AAD\u1B5A-\u1B60\u1B7D\u1B7E\u1BFC-\u1BFF\u1C3B-\u1C3F\u1C7E\u1C7F\u1CC0-\u1CC7\u1CD3\u2010-\u2027\u2030-\u2043\u2045-\u2051\u2053-\u205E\u207D\u207E\u208D\u208E\u2308-\u230B\u2329\u232A\u2768-\u2775\u27C5\u27C6\u27E6-\u27EF\u2983-\u2998\u29D8-\u29DB\u29FC\u29FD\u2CF9-\u2CFC\u2CFE\u2CFF\u2D70\u2E00-\u2E2E\u2E30-\u2E4F\u2E52-\u2E5D\u3001-\u3003\u3008-\u3011\u3014-\u301F\u3030\u303D\u30A0\u30FB\uA4FE\uA4FF\uA60D-\uA60F\uA673\uA67E\uA6F2-\uA6F7\uA874-\uA877\uA8CE\uA8CF\uA8F8-\uA8FA\uA8FC\uA92E\uA92F\uA95F\uA9C1-\uA9CD\uA9DE\uA9DF\uAA5C-\uAA5F\uAADE\uAADF\uAAF0\uAAF1\uABEB\uFD3E\uFD3F\uFE10-\uFE19\uFE30-\uFE52\uFE54-\uFE61\uFE63\uFE68\uFE6A\uFE6B\uFF01-\uFF03\uFF05-\uFF0A\uFF0C-\uFF0F\uFF1A\uFF1B\uFF1F\uFF20\uFF3B-\uFF3D\uFF3F\uFF5B\uFF5D\uFF5F-\uFF65]/, Dt = Qt(/[A-Za-z]/), mt = Qt(/[\dA-Za-z]/), sp = Qt(/[#-'*+\--9=?A-Z^-~]/);
|
6747
6749
|
function si(e) {
|
6748
6750
|
return (
|
6749
6751
|
// Special whitespace codes (which have negative values), C0 and Control
|
@@ -6755,10 +6757,10 @@ const li = Qt(/\d/), lp = Qt(/[\dA-Fa-f]/), cp = Qt(/[!-/:-@[-`{-~]/);
|
|
6755
6757
|
function ce(e) {
|
6756
6758
|
return e !== null && e < -2;
|
6757
6759
|
}
|
6758
|
-
function
|
6760
|
+
function tt(e) {
|
6759
6761
|
return e !== null && (e < 0 || e === 32);
|
6760
6762
|
}
|
6761
|
-
function
|
6763
|
+
function _e(e) {
|
6762
6764
|
return e === -2 || e === -1 || e === 32;
|
6763
6765
|
}
|
6764
6766
|
const dp = Qt(op), fp = Qt(/\s/);
|
@@ -6773,10 +6775,10 @@ function we(e, t, n, r) {
|
|
6773
6775
|
let i = 0;
|
6774
6776
|
return u;
|
6775
6777
|
function u(l) {
|
6776
|
-
return
|
6778
|
+
return _e(l) ? (e.enter(n), s(l)) : t(l);
|
6777
6779
|
}
|
6778
6780
|
function s(l) {
|
6779
|
-
return
|
6781
|
+
return _e(l) && i++ < a ? (e.consume(l), s) : (e.exit(n), t(l));
|
6780
6782
|
}
|
6781
6783
|
}
|
6782
6784
|
const hp = {
|
@@ -6839,17 +6841,17 @@ function gp(e) {
|
|
6839
6841
|
if (r++, t.containerState._closeFlow) {
|
6840
6842
|
t.containerState._closeFlow = void 0, a && P();
|
6841
6843
|
const Q = t.events.length;
|
6842
|
-
let L = Q,
|
6844
|
+
let L = Q, y;
|
6843
6845
|
for (; L--; )
|
6844
6846
|
if (t.events[L][0] === "exit" && t.events[L][1].type === "chunkFlow") {
|
6845
|
-
|
6847
|
+
y = t.events[L][1].end;
|
6846
6848
|
break;
|
6847
6849
|
}
|
6848
6850
|
E(r);
|
6849
6851
|
let k = Q;
|
6850
6852
|
for (; k < t.events.length; )
|
6851
|
-
t.events[k][1].end = Object.assign({},
|
6852
|
-
return
|
6853
|
+
t.events[k][1].end = Object.assign({}, y), k++;
|
6854
|
+
return Lt(
|
6853
6855
|
t.events,
|
6854
6856
|
L + 1,
|
6855
6857
|
0,
|
@@ -6863,7 +6865,7 @@ function gp(e) {
|
|
6863
6865
|
if (!a)
|
6864
6866
|
return p(F);
|
6865
6867
|
if (a.currentConstruct && a.currentConstruct.concrete)
|
6866
|
-
return
|
6868
|
+
return T(F);
|
6867
6869
|
t.interrupt = !!(a.currentConstruct && !a._gfmTableDynamicInterruptHack);
|
6868
6870
|
}
|
6869
6871
|
return t.containerState = {}, e.check(
|
@@ -6876,19 +6878,19 @@ function gp(e) {
|
|
6876
6878
|
return a && P(), E(r), p(F);
|
6877
6879
|
}
|
6878
6880
|
function f(F) {
|
6879
|
-
return t.parser.lazy[t.now().line] = r !== n.length, u = t.now().offset,
|
6881
|
+
return t.parser.lazy[t.now().line] = r !== n.length, u = t.now().offset, T(F);
|
6880
6882
|
}
|
6881
6883
|
function p(F) {
|
6882
6884
|
return t.containerState = {}, e.attempt(
|
6883
6885
|
ao,
|
6884
6886
|
h,
|
6885
|
-
|
6887
|
+
T
|
6886
6888
|
)(F);
|
6887
6889
|
}
|
6888
6890
|
function h(F) {
|
6889
6891
|
return r++, n.push([t.currentConstruct, t.containerState]), p(F);
|
6890
6892
|
}
|
6891
|
-
function
|
6893
|
+
function T(F) {
|
6892
6894
|
if (F === null) {
|
6893
6895
|
a && P(), E(0), e.consume(F);
|
6894
6896
|
return;
|
@@ -6909,13 +6911,13 @@ function gp(e) {
|
|
6909
6911
|
function C(F, Q) {
|
6910
6912
|
const L = t.sliceStream(F);
|
6911
6913
|
if (Q && L.push(null), F.previous = i, i && (i.next = F), i = F, a.defineSkip(F.start), a.write(L), t.parser.lazy[F.start.line]) {
|
6912
|
-
let
|
6913
|
-
for (;
|
6914
|
+
let y = a.events.length;
|
6915
|
+
for (; y--; )
|
6914
6916
|
if (
|
6915
6917
|
// The token starts before the line ending…
|
6916
|
-
a.events[
|
6917
|
-
(!a.events[
|
6918
|
-
a.events[
|
6918
|
+
a.events[y][1].start.offset < u && // …and either is not ended yet…
|
6919
|
+
(!a.events[y][1].end || // …or ends after it.
|
6920
|
+
a.events[y][1].end.offset > u)
|
6919
6921
|
)
|
6920
6922
|
return;
|
6921
6923
|
const k = t.events.length;
|
@@ -6928,14 +6930,14 @@ function gp(e) {
|
|
6928
6930
|
}
|
6929
6931
|
M = !0;
|
6930
6932
|
}
|
6931
|
-
for (E(r),
|
6932
|
-
t.events[
|
6933
|
-
|
6933
|
+
for (E(r), y = k; y < t.events.length; )
|
6934
|
+
t.events[y][1].end = Object.assign({}, K), y++;
|
6935
|
+
Lt(
|
6934
6936
|
t.events,
|
6935
6937
|
$ + 1,
|
6936
6938
|
0,
|
6937
6939
|
t.events.slice(k)
|
6938
|
-
), t.events.length =
|
6940
|
+
), t.events.length = y;
|
6939
6941
|
}
|
6940
6942
|
}
|
6941
6943
|
function E(F) {
|
@@ -6959,7 +6961,7 @@ function bp(e, t, n) {
|
|
6959
6961
|
);
|
6960
6962
|
}
|
6961
6963
|
function io(e) {
|
6962
|
-
if (e === null ||
|
6964
|
+
if (e === null || tt(e) || fp(e))
|
6963
6965
|
return 1;
|
6964
6966
|
if (dp(e))
|
6965
6967
|
return 2;
|
@@ -7005,30 +7007,30 @@ function Ep(e, t) {
|
|
7005
7007
|
type: l > 1 ? "strong" : "emphasis",
|
7006
7008
|
start: Object.assign({}, u.start),
|
7007
7009
|
end: Object.assign({}, s.end)
|
7008
|
-
}, e[r][1].end = Object.assign({}, u.start), e[n][1].start = Object.assign({}, s.end), c = [], e[r][1].end.offset - e[r][1].start.offset && (c =
|
7010
|
+
}, e[r][1].end = Object.assign({}, u.start), e[n][1].start = Object.assign({}, s.end), c = [], e[r][1].end.offset - e[r][1].start.offset && (c = bt(c, [
|
7009
7011
|
["enter", e[r][1], t],
|
7010
7012
|
["exit", e[r][1], t]
|
7011
|
-
])), c =
|
7013
|
+
])), c = bt(c, [
|
7012
7014
|
["enter", a, t],
|
7013
7015
|
["enter", u, t],
|
7014
7016
|
["exit", u, t],
|
7015
7017
|
["enter", i, t]
|
7016
|
-
]), c =
|
7018
|
+
]), c = bt(
|
7017
7019
|
c,
|
7018
7020
|
Ni(
|
7019
7021
|
t.parser.constructs.insideSpan.null,
|
7020
7022
|
e.slice(r + 1, n),
|
7021
7023
|
t
|
7022
7024
|
)
|
7023
|
-
), c =
|
7025
|
+
), c = bt(c, [
|
7024
7026
|
["exit", i, t],
|
7025
7027
|
["enter", s, t],
|
7026
7028
|
["exit", s, t],
|
7027
7029
|
["exit", a, t]
|
7028
|
-
]), e[n][1].end.offset - e[n][1].start.offset ? (d = 2, c =
|
7030
|
+
]), e[n][1].end.offset - e[n][1].start.offset ? (d = 2, c = bt(c, [
|
7029
7031
|
["enter", e[n][1], t],
|
7030
7032
|
["exit", e[n][1], t]
|
7031
|
-
])) : d = 0,
|
7033
|
+
])) : d = 0, Lt(e, r - 1, n - r + 3, c), n = r + c.length - d - 2;
|
7032
7034
|
break;
|
7033
7035
|
}
|
7034
7036
|
}
|
@@ -7064,13 +7066,13 @@ function Cp(e, t, n) {
|
|
7064
7066
|
return e.enter("autolink"), e.enter("autolinkMarker"), e.consume(h), e.exit("autolinkMarker"), e.enter("autolinkProtocol"), i;
|
7065
7067
|
}
|
7066
7068
|
function i(h) {
|
7067
|
-
return
|
7069
|
+
return Dt(h) ? (e.consume(h), u) : c(h);
|
7068
7070
|
}
|
7069
7071
|
function u(h) {
|
7070
|
-
return h === 43 || h === 45 || h === 46 ||
|
7072
|
+
return h === 43 || h === 45 || h === 46 || mt(h) ? (r = 1, s(h)) : c(h);
|
7071
7073
|
}
|
7072
7074
|
function s(h) {
|
7073
|
-
return h === 58 ? (e.consume(h), r = 0, l) : (h === 43 || h === 45 || h === 46 ||
|
7075
|
+
return h === 58 ? (e.consume(h), r = 0, l) : (h === 43 || h === 45 || h === 46 || mt(h)) && r++ < 32 ? (e.consume(h), s) : (r = 0, c(h));
|
7074
7076
|
}
|
7075
7077
|
function l(h) {
|
7076
7078
|
return h === 62 ? (e.exit("autolinkProtocol"), e.enter("autolinkMarker"), e.consume(h), e.exit("autolinkMarker"), e.exit("autolink"), t) : h === null || h === 32 || h === 60 || si(h) ? n(h) : (e.consume(h), l);
|
@@ -7079,15 +7081,15 @@ function Cp(e, t, n) {
|
|
7079
7081
|
return h === 64 ? (e.consume(h), d) : sp(h) ? (e.consume(h), c) : n(h);
|
7080
7082
|
}
|
7081
7083
|
function d(h) {
|
7082
|
-
return
|
7084
|
+
return mt(h) ? f(h) : n(h);
|
7083
7085
|
}
|
7084
7086
|
function f(h) {
|
7085
7087
|
return h === 46 ? (e.consume(h), r = 0, d) : h === 62 ? (e.exit("autolinkProtocol").type = "autolinkEmail", e.enter("autolinkMarker"), e.consume(h), e.exit("autolinkMarker"), e.exit("autolink"), t) : p(h);
|
7086
7088
|
}
|
7087
7089
|
function p(h) {
|
7088
|
-
if ((h === 45 ||
|
7089
|
-
const
|
7090
|
-
return e.consume(h),
|
7090
|
+
if ((h === 45 || mt(h)) && r++ < 63) {
|
7091
|
+
const T = h === 45 ? p : f;
|
7092
|
+
return e.consume(h), T;
|
7091
7093
|
}
|
7092
7094
|
return n(h);
|
7093
7095
|
}
|
@@ -7099,7 +7101,7 @@ const Xr = {
|
|
7099
7101
|
function _p(e, t, n) {
|
7100
7102
|
return r;
|
7101
7103
|
function r(i) {
|
7102
|
-
return
|
7104
|
+
return _e(i) ? we(e, a, "linePrefix")(i) : a(i);
|
7103
7105
|
}
|
7104
7106
|
function a(i) {
|
7105
7107
|
return i === null || ce(i) ? t(i) : n(i);
|
@@ -7126,14 +7128,14 @@ function Ap(e, t, n) {
|
|
7126
7128
|
return n(u);
|
7127
7129
|
}
|
7128
7130
|
function i(u) {
|
7129
|
-
return
|
7131
|
+
return _e(u) ? (e.enter("blockQuotePrefixWhitespace"), e.consume(u), e.exit("blockQuotePrefixWhitespace"), e.exit("blockQuotePrefix"), t) : (e.exit("blockQuotePrefix"), t(u));
|
7130
7132
|
}
|
7131
7133
|
}
|
7132
7134
|
function Ip(e, t, n) {
|
7133
7135
|
const r = this;
|
7134
7136
|
return a;
|
7135
7137
|
function a(u) {
|
7136
|
-
return
|
7138
|
+
return _e(u) ? we(
|
7137
7139
|
e,
|
7138
7140
|
i,
|
7139
7141
|
"linePrefix",
|
@@ -7183,7 +7185,7 @@ function Op(e, t, n) {
|
|
7183
7185
|
return e.enter("characterReference"), e.enter("characterReferenceMarker"), e.consume(f), e.exit("characterReferenceMarker"), l;
|
7184
7186
|
}
|
7185
7187
|
function l(f) {
|
7186
|
-
return f === 35 ? (e.enter("characterReferenceMarkerNumeric"), e.consume(f), e.exit("characterReferenceMarkerNumeric"), c) : (e.enter("characterReferenceValue"), i = 31, u =
|
7188
|
+
return f === 35 ? (e.enter("characterReferenceMarkerNumeric"), e.consume(f), e.exit("characterReferenceMarkerNumeric"), c) : (e.enter("characterReferenceValue"), i = 31, u = mt, d(f));
|
7187
7189
|
}
|
7188
7190
|
function c(f) {
|
7189
7191
|
return f === 88 || f === 120 ? (e.enter("characterReferenceMarkerHexadecimal"), e.consume(f), e.exit("characterReferenceMarkerHexadecimal"), e.enter("characterReferenceValue"), i = 6, u = lp, d) : (e.enter("characterReferenceValue"), i = 7, u = li, d(f));
|
@@ -7191,7 +7193,7 @@ function Op(e, t, n) {
|
|
7191
7193
|
function d(f) {
|
7192
7194
|
if (f === 59 && a) {
|
7193
7195
|
const p = e.exit("characterReferenceValue");
|
7194
|
-
return u ===
|
7196
|
+
return u === mt && !Di(r.sliceSerialize(p)) ? n(f) : (e.enter("characterReferenceMarker"), e.consume(f), e.exit("characterReferenceMarker"), e.exit("characterReference"), t);
|
7195
7197
|
}
|
7196
7198
|
return u(f) && a++ < i ? (e.consume(f), d) : n(f);
|
7197
7199
|
}
|
@@ -7211,77 +7213,77 @@ function vp(e, t, n) {
|
|
7211
7213
|
};
|
7212
7214
|
let i = 0, u = 0, s;
|
7213
7215
|
return l;
|
7214
|
-
function l(
|
7215
|
-
return c(
|
7216
|
+
function l(y) {
|
7217
|
+
return c(y);
|
7216
7218
|
}
|
7217
|
-
function c(
|
7219
|
+
function c(y) {
|
7218
7220
|
const k = r.events[r.events.length - 1];
|
7219
|
-
return i = k && k[1].type === "linePrefix" ? k[2].sliceSerialize(k[1], !0).length : 0, s =
|
7221
|
+
return i = k && k[1].type === "linePrefix" ? k[2].sliceSerialize(k[1], !0).length : 0, s = y, e.enter("codeFenced"), e.enter("codeFencedFence"), e.enter("codeFencedFenceSequence"), d(y);
|
7220
7222
|
}
|
7221
|
-
function d(
|
7222
|
-
return
|
7223
|
+
function d(y) {
|
7224
|
+
return y === s ? (u++, e.consume(y), d) : u < 3 ? n(y) : (e.exit("codeFencedFenceSequence"), _e(y) ? we(e, f, "whitespace")(y) : f(y));
|
7223
7225
|
}
|
7224
|
-
function f(
|
7225
|
-
return
|
7226
|
+
function f(y) {
|
7227
|
+
return y === null || ce(y) ? (e.exit("codeFencedFence"), r.interrupt ? t(y) : e.check(so, m, Q)(y)) : (e.enter("codeFencedFenceInfo"), e.enter("chunkString", {
|
7226
7228
|
contentType: "string"
|
7227
|
-
}), p(
|
7229
|
+
}), p(y));
|
7228
7230
|
}
|
7229
|
-
function p(
|
7230
|
-
return
|
7231
|
+
function p(y) {
|
7232
|
+
return y === null || ce(y) ? (e.exit("chunkString"), e.exit("codeFencedFenceInfo"), f(y)) : _e(y) ? (e.exit("chunkString"), e.exit("codeFencedFenceInfo"), we(e, h, "whitespace")(y)) : y === 96 && y === s ? n(y) : (e.consume(y), p);
|
7231
7233
|
}
|
7232
|
-
function h(
|
7233
|
-
return
|
7234
|
+
function h(y) {
|
7235
|
+
return y === null || ce(y) ? f(y) : (e.enter("codeFencedFenceMeta"), e.enter("chunkString", {
|
7234
7236
|
contentType: "string"
|
7235
|
-
}), y
|
7237
|
+
}), T(y));
|
7236
7238
|
}
|
7237
|
-
function y
|
7238
|
-
return
|
7239
|
+
function T(y) {
|
7240
|
+
return y === null || ce(y) ? (e.exit("chunkString"), e.exit("codeFencedFenceMeta"), f(y)) : y === 96 && y === s ? n(y) : (e.consume(y), T);
|
7239
7241
|
}
|
7240
|
-
function m(
|
7241
|
-
return e.attempt(a, Q, C)(
|
7242
|
+
function m(y) {
|
7243
|
+
return e.attempt(a, Q, C)(y);
|
7242
7244
|
}
|
7243
|
-
function C(
|
7244
|
-
return e.enter("lineEnding"), e.consume(
|
7245
|
+
function C(y) {
|
7246
|
+
return e.enter("lineEnding"), e.consume(y), e.exit("lineEnding"), E;
|
7245
7247
|
}
|
7246
|
-
function E(
|
7247
|
-
return i > 0 &&
|
7248
|
+
function E(y) {
|
7249
|
+
return i > 0 && _e(y) ? we(
|
7248
7250
|
e,
|
7249
7251
|
P,
|
7250
7252
|
"linePrefix",
|
7251
7253
|
i + 1
|
7252
|
-
)(
|
7254
|
+
)(y) : P(y);
|
7253
7255
|
}
|
7254
|
-
function P(
|
7255
|
-
return
|
7256
|
+
function P(y) {
|
7257
|
+
return y === null || ce(y) ? e.check(so, m, Q)(y) : (e.enter("codeFlowValue"), F(y));
|
7256
7258
|
}
|
7257
|
-
function F(
|
7258
|
-
return
|
7259
|
+
function F(y) {
|
7260
|
+
return y === null || ce(y) ? (e.exit("codeFlowValue"), P(y)) : (e.consume(y), F);
|
7259
7261
|
}
|
7260
|
-
function Q(
|
7261
|
-
return e.exit("codeFenced"), t(
|
7262
|
+
function Q(y) {
|
7263
|
+
return e.exit("codeFenced"), t(y);
|
7262
7264
|
}
|
7263
|
-
function L(
|
7265
|
+
function L(y, k, $) {
|
7264
7266
|
let M = 0;
|
7265
7267
|
return K;
|
7266
7268
|
function K(w) {
|
7267
|
-
return
|
7269
|
+
return y.enter("lineEnding"), y.consume(w), y.exit("lineEnding"), q;
|
7268
7270
|
}
|
7269
7271
|
function q(w) {
|
7270
|
-
return
|
7271
|
-
|
7272
|
+
return y.enter("codeFencedFence"), _e(w) ? we(
|
7273
|
+
y,
|
7272
7274
|
V,
|
7273
7275
|
"linePrefix",
|
7274
7276
|
r.parser.constructs.disable.null.includes("codeIndented") ? void 0 : 4
|
7275
7277
|
)(w) : V(w);
|
7276
7278
|
}
|
7277
7279
|
function V(w) {
|
7278
|
-
return w === s ? (
|
7280
|
+
return w === s ? (y.enter("codeFencedFenceSequence"), D(w)) : $(w);
|
7279
7281
|
}
|
7280
7282
|
function D(w) {
|
7281
|
-
return w === s ? (M++,
|
7283
|
+
return w === s ? (M++, y.consume(w), D) : M >= u ? (y.exit("codeFencedFenceSequence"), _e(w) ? we(y, v, "whitespace")(w) : v(w)) : $(w);
|
7282
7284
|
}
|
7283
7285
|
function v(w) {
|
7284
|
-
return w === null || ce(w) ? (
|
7286
|
+
return w === null || ce(w) ? (y.exit("codeFencedFence"), k(w)) : $(w);
|
7285
7287
|
}
|
7286
7288
|
}
|
7287
7289
|
}
|
@@ -7388,7 +7390,7 @@ function hl(e) {
|
|
7388
7390
|
else if (r[1]._container) {
|
7389
7391
|
for (i = n, a = void 0; i-- && (u = e[i], u[1].type === "lineEnding" || u[1].type === "lineEndingBlank"); )
|
7390
7392
|
u[0] === "enter" && (a && (e[a][1].type = "lineEndingBlank"), u[1].type = "lineEnding", a = i);
|
7391
|
-
a && (r[1].end = Object.assign({}, e[a][1].start), s = e.slice(a, n), s.unshift(r),
|
7393
|
+
a && (r[1].end = Object.assign({}, e[a][1].start), s = e.slice(a, n), s.unshift(r), Lt(e, a, n - a + 1, s));
|
7392
7394
|
}
|
7393
7395
|
}
|
7394
7396
|
return !c;
|
@@ -7397,7 +7399,7 @@ function Fp(e, t) {
|
|
7397
7399
|
const n = e[t][1], r = e[t][2];
|
7398
7400
|
let a = t - 1;
|
7399
7401
|
const i = [], u = n._tokenizer || r.parser[n.contentType](n.start), s = u.events, l = [], c = {};
|
7400
|
-
let d, f, p = -1, h = n,
|
7402
|
+
let d, f, p = -1, h = n, T = 0, m = 0;
|
7401
7403
|
const C = [m];
|
7402
7404
|
for (; h; ) {
|
7403
7405
|
for (; e[++a][1] !== h; )
|
@@ -7409,10 +7411,10 @@ function Fp(e, t) {
|
|
7409
7411
|
s[p][0] === "exit" && s[p - 1][0] === "enter" && s[p][1].type === s[p - 1][1].type && s[p][1].start.line !== s[p][1].end.line && (m = p + 1, C.push(m), h._tokenizer = void 0, h.previous = void 0, h = h.next);
|
7410
7412
|
for (u.events = [], h ? (h._tokenizer = void 0, h.previous = void 0) : C.pop(), p = C.length; p--; ) {
|
7411
7413
|
const E = s.slice(C[p], C[p + 1]), P = i.pop();
|
7412
|
-
l.unshift([P, P + E.length - 1]),
|
7414
|
+
l.unshift([P, P + E.length - 1]), Lt(e, P, 2, E);
|
7413
7415
|
}
|
7414
7416
|
for (p = -1; ++p < l.length; )
|
7415
|
-
c[
|
7417
|
+
c[T + l[p][0]] = T + l[p][1], T += l[p][1] - l[p][0] - 1;
|
7416
7418
|
return c;
|
7417
7419
|
}
|
7418
7420
|
const Bp = {
|
@@ -7478,13 +7480,13 @@ function pl(e, t, n, r, a, i, u, s, l) {
|
|
7478
7480
|
}), h(E));
|
7479
7481
|
}
|
7480
7482
|
function h(E) {
|
7481
|
-
return E === 62 ? (e.exit("chunkString"), e.exit(s), p(E)) : E === null || E === 60 || ce(E) ? n(E) : (e.consume(E), E === 92 ?
|
7483
|
+
return E === 62 ? (e.exit("chunkString"), e.exit(s), p(E)) : E === null || E === 60 || ce(E) ? n(E) : (e.consume(E), E === 92 ? T : h);
|
7482
7484
|
}
|
7483
|
-
function
|
7485
|
+
function T(E) {
|
7484
7486
|
return E === 60 || E === 62 || E === 92 ? (e.consume(E), h) : h(E);
|
7485
7487
|
}
|
7486
7488
|
function m(E) {
|
7487
|
-
return !d && (E === null || E === 41 ||
|
7489
|
+
return !d && (E === null || E === 41 || tt(E)) ? (e.exit("chunkString"), e.exit(s), e.exit(u), e.exit(r), t(E)) : d < c && E === 40 ? (e.consume(E), d++, m) : E === 41 ? (e.consume(E), d--, m) : E === null || E === 32 || E === 40 || si(E) ? n(E) : (e.consume(E), E === 92 ? C : m);
|
7488
7490
|
}
|
7489
7491
|
function C(E) {
|
7490
7492
|
return E === 40 || E === 41 || E === 92 ? (e.consume(E), m) : m(E);
|
@@ -7508,7 +7510,7 @@ function ml(e, t, n, r, a, i) {
|
|
7508
7510
|
}), f(h));
|
7509
7511
|
}
|
7510
7512
|
function f(h) {
|
7511
|
-
return h === null || h === 91 || h === 93 || ce(h) || s++ > 999 ? (e.exit("chunkString"), d(h)) : (e.consume(h), l || (l = !
|
7513
|
+
return h === null || h === 91 || h === 93 || ce(h) || s++ > 999 ? (e.exit("chunkString"), d(h)) : (e.consume(h), l || (l = !_e(h)), h === 92 ? p : f);
|
7512
7514
|
}
|
7513
7515
|
function p(h) {
|
7514
7516
|
return h === 91 || h === 92 || h === 93 ? (e.consume(h), s++, f) : f(h);
|
@@ -7539,7 +7541,7 @@ function er(e, t) {
|
|
7539
7541
|
let n;
|
7540
7542
|
return r;
|
7541
7543
|
function r(a) {
|
7542
|
-
return ce(a) ? (e.enter("lineEnding"), e.consume(a), e.exit("lineEnding"), n = !0, r) :
|
7544
|
+
return ce(a) ? (e.enter("lineEnding"), e.consume(a), e.exit("lineEnding"), n = !0, r) : _e(a) ? we(
|
7543
7545
|
e,
|
7544
7546
|
r,
|
7545
7547
|
n ? "linePrefix" : "lineSuffix"
|
@@ -7581,7 +7583,7 @@ function Vp(e, t, n) {
|
|
7581
7583
|
), h === 58 ? (e.enter("definitionMarker"), e.consume(h), e.exit("definitionMarker"), l) : n(h);
|
7582
7584
|
}
|
7583
7585
|
function l(h) {
|
7584
|
-
return
|
7586
|
+
return tt(h) ? er(e, c)(h) : c(h);
|
7585
7587
|
}
|
7586
7588
|
function c(h) {
|
7587
7589
|
return pl(
|
@@ -7600,7 +7602,7 @@ function Vp(e, t, n) {
|
|
7600
7602
|
return e.attempt(Yp, f, f)(h);
|
7601
7603
|
}
|
7602
7604
|
function f(h) {
|
7603
|
-
return
|
7605
|
+
return _e(h) ? we(e, p, "whitespace")(h) : p(h);
|
7604
7606
|
}
|
7605
7607
|
function p(h) {
|
7606
7608
|
return h === null || ce(h) ? (e.exit("definition"), r.parser.defined.push(a), t(h)) : n(h);
|
@@ -7609,7 +7611,7 @@ function Vp(e, t, n) {
|
|
7609
7611
|
function Wp(e, t, n) {
|
7610
7612
|
return r;
|
7611
7613
|
function r(s) {
|
7612
|
-
return
|
7614
|
+
return tt(s) ? er(e, a)(s) : n(s);
|
7613
7615
|
}
|
7614
7616
|
function a(s) {
|
7615
7617
|
return gl(
|
@@ -7622,7 +7624,7 @@ function Wp(e, t, n) {
|
|
7622
7624
|
)(s);
|
7623
7625
|
}
|
7624
7626
|
function i(s) {
|
7625
|
-
return
|
7627
|
+
return _e(s) ? we(e, u, "whitespace")(s) : u(s);
|
7626
7628
|
}
|
7627
7629
|
function u(s) {
|
7628
7630
|
return s === null || ce(s) ? t(s) : n(s);
|
@@ -7657,7 +7659,7 @@ function Xp(e, t) {
|
|
7657
7659
|
start: e[r][1].start,
|
7658
7660
|
end: e[n][1].end,
|
7659
7661
|
contentType: "text"
|
7660
|
-
},
|
7662
|
+
}, Lt(e, r, n - r + 1, [
|
7661
7663
|
["enter", a, t],
|
7662
7664
|
["enter", i, t],
|
7663
7665
|
["exit", i, t],
|
@@ -7674,16 +7676,16 @@ function Kp(e, t, n) {
|
|
7674
7676
|
return e.enter("atxHeadingSequence"), u(d);
|
7675
7677
|
}
|
7676
7678
|
function u(d) {
|
7677
|
-
return d === 35 && r++ < 6 ? (e.consume(d), u) : d === null ||
|
7679
|
+
return d === 35 && r++ < 6 ? (e.consume(d), u) : d === null || tt(d) ? (e.exit("atxHeadingSequence"), s(d)) : n(d);
|
7678
7680
|
}
|
7679
7681
|
function s(d) {
|
7680
|
-
return d === 35 ? (e.enter("atxHeadingSequence"), l(d)) : d === null || ce(d) ? (e.exit("atxHeading"), t(d)) :
|
7682
|
+
return d === 35 ? (e.enter("atxHeadingSequence"), l(d)) : d === null || ce(d) ? (e.exit("atxHeading"), t(d)) : _e(d) ? we(e, s, "whitespace")(d) : (e.enter("atxHeadingText"), c(d));
|
7681
7683
|
}
|
7682
7684
|
function l(d) {
|
7683
7685
|
return d === 35 ? (e.consume(d), l) : (e.exit("atxHeadingSequence"), s(d));
|
7684
7686
|
}
|
7685
7687
|
function c(d) {
|
7686
|
-
return d === null || d === 35 ||
|
7688
|
+
return d === null || d === 35 || tt(d) ? (e.exit("atxHeadingText"), s(d)) : (e.consume(d), c);
|
7687
7689
|
}
|
7688
7690
|
}
|
7689
7691
|
const Zp = [
|
@@ -7778,60 +7780,60 @@ function r1(e, t, n) {
|
|
7778
7780
|
return e.enter("htmlFlow"), e.enter("htmlFlowData"), e.consume(I), f;
|
7779
7781
|
}
|
7780
7782
|
function f(I) {
|
7781
|
-
return I === 33 ? (e.consume(I), p) : I === 47 ? (e.consume(I), i = !0, m) : I === 63 ? (e.consume(I), a = 3, r.interrupt ? t : g) :
|
7783
|
+
return I === 33 ? (e.consume(I), p) : I === 47 ? (e.consume(I), i = !0, m) : I === 63 ? (e.consume(I), a = 3, r.interrupt ? t : g) : Dt(I) ? (e.consume(I), u = String.fromCharCode(I), C) : n(I);
|
7782
7784
|
}
|
7783
7785
|
function p(I) {
|
7784
|
-
return I === 45 ? (e.consume(I), a = 2, h) : I === 91 ? (e.consume(I), a = 5, s = 0,
|
7786
|
+
return I === 45 ? (e.consume(I), a = 2, h) : I === 91 ? (e.consume(I), a = 5, s = 0, T) : Dt(I) ? (e.consume(I), a = 4, r.interrupt ? t : g) : n(I);
|
7785
7787
|
}
|
7786
7788
|
function h(I) {
|
7787
7789
|
return I === 45 ? (e.consume(I), r.interrupt ? t : g) : n(I);
|
7788
7790
|
}
|
7789
|
-
function
|
7791
|
+
function T(I) {
|
7790
7792
|
const oe = "CDATA[";
|
7791
|
-
return I === oe.charCodeAt(s++) ? (e.consume(I), s === oe.length ? r.interrupt ? t : V :
|
7793
|
+
return I === oe.charCodeAt(s++) ? (e.consume(I), s === oe.length ? r.interrupt ? t : V : T) : n(I);
|
7792
7794
|
}
|
7793
7795
|
function m(I) {
|
7794
|
-
return
|
7796
|
+
return Dt(I) ? (e.consume(I), u = String.fromCharCode(I), C) : n(I);
|
7795
7797
|
}
|
7796
7798
|
function C(I) {
|
7797
|
-
if (I === null || I === 47 || I === 62 ||
|
7799
|
+
if (I === null || I === 47 || I === 62 || tt(I)) {
|
7798
7800
|
const oe = I === 47, Te = u.toLowerCase();
|
7799
7801
|
return !oe && !i && co.includes(Te) ? (a = 1, r.interrupt ? t(I) : V(I)) : Zp.includes(u.toLowerCase()) ? (a = 6, oe ? (e.consume(I), E) : r.interrupt ? t(I) : V(I)) : (a = 7, r.interrupt && !r.parser.lazy[r.now().line] ? n(I) : i ? P(I) : F(I));
|
7800
7802
|
}
|
7801
|
-
return I === 45 ||
|
7803
|
+
return I === 45 || mt(I) ? (e.consume(I), u += String.fromCharCode(I), C) : n(I);
|
7802
7804
|
}
|
7803
7805
|
function E(I) {
|
7804
7806
|
return I === 62 ? (e.consume(I), r.interrupt ? t : V) : n(I);
|
7805
7807
|
}
|
7806
7808
|
function P(I) {
|
7807
|
-
return
|
7809
|
+
return _e(I) ? (e.consume(I), P) : K(I);
|
7808
7810
|
}
|
7809
7811
|
function F(I) {
|
7810
|
-
return I === 47 ? (e.consume(I), K) : I === 58 || I === 95 ||
|
7812
|
+
return I === 47 ? (e.consume(I), K) : I === 58 || I === 95 || Dt(I) ? (e.consume(I), Q) : _e(I) ? (e.consume(I), F) : K(I);
|
7811
7813
|
}
|
7812
7814
|
function Q(I) {
|
7813
|
-
return I === 45 || I === 46 || I === 58 || I === 95 ||
|
7815
|
+
return I === 45 || I === 46 || I === 58 || I === 95 || mt(I) ? (e.consume(I), Q) : L(I);
|
7814
7816
|
}
|
7815
7817
|
function L(I) {
|
7816
|
-
return I === 61 ? (e.consume(I),
|
7818
|
+
return I === 61 ? (e.consume(I), y) : _e(I) ? (e.consume(I), L) : F(I);
|
7817
7819
|
}
|
7818
|
-
function
|
7819
|
-
return I === null || I === 60 || I === 61 || I === 62 || I === 96 ? n(I) : I === 34 || I === 39 ? (e.consume(I), l = I, k) :
|
7820
|
+
function y(I) {
|
7821
|
+
return I === null || I === 60 || I === 61 || I === 62 || I === 96 ? n(I) : I === 34 || I === 39 ? (e.consume(I), l = I, k) : _e(I) ? (e.consume(I), y) : $(I);
|
7820
7822
|
}
|
7821
7823
|
function k(I) {
|
7822
7824
|
return I === l ? (e.consume(I), l = null, M) : I === null || ce(I) ? n(I) : (e.consume(I), k);
|
7823
7825
|
}
|
7824
7826
|
function $(I) {
|
7825
|
-
return I === null || I === 34 || I === 39 || I === 47 || I === 60 || I === 61 || I === 62 || I === 96 ||
|
7827
|
+
return I === null || I === 34 || I === 39 || I === 47 || I === 60 || I === 61 || I === 62 || I === 96 || tt(I) ? L(I) : (e.consume(I), $);
|
7826
7828
|
}
|
7827
7829
|
function M(I) {
|
7828
|
-
return I === 47 || I === 62 ||
|
7830
|
+
return I === 47 || I === 62 || _e(I) ? F(I) : n(I);
|
7829
7831
|
}
|
7830
7832
|
function K(I) {
|
7831
7833
|
return I === 62 ? (e.consume(I), q) : n(I);
|
7832
7834
|
}
|
7833
7835
|
function q(I) {
|
7834
|
-
return I === null || ce(I) ? V(I) :
|
7836
|
+
return I === null || ce(I) ? V(I) : _e(I) ? (e.consume(I), q) : n(I);
|
7835
7837
|
}
|
7836
7838
|
function V(I) {
|
7837
7839
|
return I === 45 && a === 2 ? (e.consume(I), H) : I === 60 && a === 1 ? (e.consume(I), W) : I === 62 && a === 4 ? (e.consume(I), ne) : I === 63 && a === 3 ? (e.consume(I), g) : I === 93 && a === 5 ? (e.consume(I), z) : ce(I) && (a === 6 || a === 7) ? (e.exit("htmlFlowData"), e.check(
|
@@ -7864,7 +7866,7 @@ function r1(e, t, n) {
|
|
7864
7866
|
const oe = u.toLowerCase();
|
7865
7867
|
return co.includes(oe) ? (e.consume(I), ne) : V(I);
|
7866
7868
|
}
|
7867
|
-
return
|
7869
|
+
return Dt(I) && u.length < 8 ? (e.consume(I), u += String.fromCharCode(I), j) : V(I);
|
7868
7870
|
}
|
7869
7871
|
function z(I) {
|
7870
7872
|
return I === 93 ? (e.consume(I), g) : V(I);
|
@@ -7907,10 +7909,10 @@ function o1(e, t, n) {
|
|
7907
7909
|
return e.enter("htmlText"), e.enter("htmlTextData"), e.consume(g), l;
|
7908
7910
|
}
|
7909
7911
|
function l(g) {
|
7910
|
-
return g === 33 ? (e.consume(g), c) : g === 47 ? (e.consume(g), L) : g === 63 ? (e.consume(g), F) :
|
7912
|
+
return g === 33 ? (e.consume(g), c) : g === 47 ? (e.consume(g), L) : g === 63 ? (e.consume(g), F) : Dt(g) ? (e.consume(g), $) : n(g);
|
7911
7913
|
}
|
7912
7914
|
function c(g) {
|
7913
|
-
return g === 45 ? (e.consume(g), d) : g === 91 ? (e.consume(g), i = 0,
|
7915
|
+
return g === 45 ? (e.consume(g), d) : g === 91 ? (e.consume(g), i = 0, T) : Dt(g) ? (e.consume(g), P) : n(g);
|
7914
7916
|
}
|
7915
7917
|
function d(g) {
|
7916
7918
|
return g === 45 ? (e.consume(g), h) : n(g);
|
@@ -7924,9 +7926,9 @@ function o1(e, t, n) {
|
|
7924
7926
|
function h(g) {
|
7925
7927
|
return g === 62 ? H(g) : g === 45 ? p(g) : f(g);
|
7926
7928
|
}
|
7927
|
-
function
|
7929
|
+
function T(g) {
|
7928
7930
|
const ne = "CDATA[";
|
7929
|
-
return g === ne.charCodeAt(i++) ? (e.consume(g), i === ne.length ? m :
|
7931
|
+
return g === ne.charCodeAt(i++) ? (e.consume(g), i === ne.length ? m : T) : n(g);
|
7930
7932
|
}
|
7931
7933
|
function m(g) {
|
7932
7934
|
return g === null ? n(g) : g === 93 ? (e.consume(g), C) : ce(g) ? (u = m, W(g)) : (e.consume(g), m);
|
@@ -7947,37 +7949,37 @@ function o1(e, t, n) {
|
|
7947
7949
|
return g === 62 ? H(g) : F(g);
|
7948
7950
|
}
|
7949
7951
|
function L(g) {
|
7950
|
-
return
|
7952
|
+
return Dt(g) ? (e.consume(g), y) : n(g);
|
7951
7953
|
}
|
7952
|
-
function
|
7953
|
-
return g === 45 ||
|
7954
|
+
function y(g) {
|
7955
|
+
return g === 45 || mt(g) ? (e.consume(g), y) : k(g);
|
7954
7956
|
}
|
7955
7957
|
function k(g) {
|
7956
|
-
return ce(g) ? (u = k, W(g)) :
|
7958
|
+
return ce(g) ? (u = k, W(g)) : _e(g) ? (e.consume(g), k) : H(g);
|
7957
7959
|
}
|
7958
7960
|
function $(g) {
|
7959
|
-
return g === 45 ||
|
7961
|
+
return g === 45 || mt(g) ? (e.consume(g), $) : g === 47 || g === 62 || tt(g) ? M(g) : n(g);
|
7960
7962
|
}
|
7961
7963
|
function M(g) {
|
7962
|
-
return g === 47 ? (e.consume(g), H) : g === 58 || g === 95 ||
|
7964
|
+
return g === 47 ? (e.consume(g), H) : g === 58 || g === 95 || Dt(g) ? (e.consume(g), K) : ce(g) ? (u = M, W(g)) : _e(g) ? (e.consume(g), M) : H(g);
|
7963
7965
|
}
|
7964
7966
|
function K(g) {
|
7965
|
-
return g === 45 || g === 46 || g === 58 || g === 95 ||
|
7967
|
+
return g === 45 || g === 46 || g === 58 || g === 95 || mt(g) ? (e.consume(g), K) : q(g);
|
7966
7968
|
}
|
7967
7969
|
function q(g) {
|
7968
|
-
return g === 61 ? (e.consume(g), V) : ce(g) ? (u = q, W(g)) :
|
7970
|
+
return g === 61 ? (e.consume(g), V) : ce(g) ? (u = q, W(g)) : _e(g) ? (e.consume(g), q) : M(g);
|
7969
7971
|
}
|
7970
7972
|
function V(g) {
|
7971
|
-
return g === null || g === 60 || g === 61 || g === 62 || g === 96 ? n(g) : g === 34 || g === 39 ? (e.consume(g), a = g, D) : ce(g) ? (u = V, W(g)) :
|
7973
|
+
return g === null || g === 60 || g === 61 || g === 62 || g === 96 ? n(g) : g === 34 || g === 39 ? (e.consume(g), a = g, D) : ce(g) ? (u = V, W(g)) : _e(g) ? (e.consume(g), V) : (e.consume(g), v);
|
7972
7974
|
}
|
7973
7975
|
function D(g) {
|
7974
7976
|
return g === a ? (e.consume(g), a = void 0, w) : g === null ? n(g) : ce(g) ? (u = D, W(g)) : (e.consume(g), D);
|
7975
7977
|
}
|
7976
7978
|
function v(g) {
|
7977
|
-
return g === null || g === 34 || g === 39 || g === 60 || g === 61 || g === 96 ? n(g) : g === 47 || g === 62 ||
|
7979
|
+
return g === null || g === 34 || g === 39 || g === 60 || g === 61 || g === 96 ? n(g) : g === 47 || g === 62 || tt(g) ? M(g) : (e.consume(g), v);
|
7978
7980
|
}
|
7979
7981
|
function w(g) {
|
7980
|
-
return g === 47 || g === 62 ||
|
7982
|
+
return g === 47 || g === 62 || tt(g) ? M(g) : n(g);
|
7981
7983
|
}
|
7982
7984
|
function H(g) {
|
7983
7985
|
return g === 62 ? (e.consume(g), e.exit("htmlTextData"), e.exit("htmlText"), t) : n(g);
|
@@ -7986,7 +7988,7 @@ function o1(e, t, n) {
|
|
7986
7988
|
return e.exit("htmlTextData"), e.enter("lineEnding"), e.consume(g), e.exit("lineEnding"), j;
|
7987
7989
|
}
|
7988
7990
|
function j(g) {
|
7989
|
-
return
|
7991
|
+
return _e(g) ? we(
|
7990
7992
|
e,
|
7991
7993
|
z,
|
7992
7994
|
"linePrefix",
|
@@ -8046,19 +8048,19 @@ function f1(e, t) {
|
|
8046
8048
|
return s = [
|
8047
8049
|
["enter", l, t],
|
8048
8050
|
["enter", c, t]
|
8049
|
-
], s =
|
8051
|
+
], s = bt(s, e.slice(i + 1, i + r + 3)), s = bt(s, [["enter", d, t]]), s = bt(
|
8050
8052
|
s,
|
8051
8053
|
Ni(
|
8052
8054
|
t.parser.constructs.insideSpan.null,
|
8053
8055
|
e.slice(i + r + 4, u - 3),
|
8054
8056
|
t
|
8055
8057
|
)
|
8056
|
-
), s =
|
8058
|
+
), s = bt(s, [
|
8057
8059
|
["exit", d, t],
|
8058
8060
|
e[u - 2],
|
8059
8061
|
e[u - 1],
|
8060
8062
|
["exit", c, t]
|
8061
|
-
]), s =
|
8063
|
+
]), s = bt(s, e.slice(u + 1)), s = bt(s, [["exit", l, t]]), Lt(e, i, e.length, s), e;
|
8062
8064
|
}
|
8063
8065
|
function h1(e, t, n) {
|
8064
8066
|
const r = this;
|
@@ -8110,7 +8112,7 @@ function p1(e, t, n) {
|
|
8110
8112
|
return e.enter("resource"), e.enter("resourceMarker"), e.consume(f), e.exit("resourceMarker"), a;
|
8111
8113
|
}
|
8112
8114
|
function a(f) {
|
8113
|
-
return
|
8115
|
+
return tt(f) ? er(e, i)(f) : i(f);
|
8114
8116
|
}
|
8115
8117
|
function i(f) {
|
8116
8118
|
return f === 41 ? d(f) : pl(
|
@@ -8126,7 +8128,7 @@ function p1(e, t, n) {
|
|
8126
8128
|
)(f);
|
8127
8129
|
}
|
8128
8130
|
function u(f) {
|
8129
|
-
return
|
8131
|
+
return tt(f) ? er(e, l)(f) : d(f);
|
8130
8132
|
}
|
8131
8133
|
function s(f) {
|
8132
8134
|
return n(f);
|
@@ -8142,7 +8144,7 @@ function p1(e, t, n) {
|
|
8142
8144
|
)(f) : d(f);
|
8143
8145
|
}
|
8144
8146
|
function c(f) {
|
8145
|
-
return
|
8147
|
+
return tt(f) ? er(e, d)(f) : d(f);
|
8146
8148
|
}
|
8147
8149
|
function d(f) {
|
8148
8150
|
return f === 41 ? (e.enter("resourceMarker"), e.consume(f), e.exit("resourceMarker"), e.exit("resource"), t) : n(f);
|
@@ -8242,10 +8244,10 @@ function _1(e, t, n) {
|
|
8242
8244
|
return c === a ? (e.enter("thematicBreakSequence"), l(c)) : r >= 3 && (c === null || ce(c)) ? (e.exit("thematicBreak"), t(c)) : n(c);
|
8243
8245
|
}
|
8244
8246
|
function l(c) {
|
8245
|
-
return c === a ? (e.consume(c), r++, l) : (e.exit("thematicBreakSequence"),
|
8247
|
+
return c === a ? (e.consume(c), r++, l) : (e.exit("thematicBreakSequence"), _e(c) ? we(e, s, "whitespace")(c) : s(c));
|
8246
8248
|
}
|
8247
8249
|
}
|
8248
|
-
const
|
8250
|
+
const et = {
|
8249
8251
|
name: "list",
|
8250
8252
|
tokenize: x1,
|
8251
8253
|
continuation: {
|
@@ -8264,11 +8266,11 @@ function x1(e, t, n) {
|
|
8264
8266
|
let i = a && a[1].type === "linePrefix" ? a[2].sliceSerialize(a[1], !0).length : 0, u = 0;
|
8265
8267
|
return s;
|
8266
8268
|
function s(h) {
|
8267
|
-
const
|
8268
|
-
if (
|
8269
|
-
if (r.containerState.type || (r.containerState.type =
|
8269
|
+
const T = r.containerState.type || (h === 42 || h === 43 || h === 45 ? "listUnordered" : "listOrdered");
|
8270
|
+
if (T === "listUnordered" ? !r.containerState.marker || h === r.containerState.marker : li(h)) {
|
8271
|
+
if (r.containerState.type || (r.containerState.type = T, e.enter(T, {
|
8270
8272
|
_container: !0
|
8271
|
-
})),
|
8273
|
+
})), T === "listUnordered")
|
8272
8274
|
return e.enter("listItemPrefix"), h === 42 || h === 45 ? e.check(Lr, n, c)(h) : c(h);
|
8273
8275
|
if (!r.interrupt || h === 49)
|
8274
8276
|
return e.enter("listItemPrefix"), e.enter("listItemValue"), l(h);
|
@@ -8294,7 +8296,7 @@ function x1(e, t, n) {
|
|
8294
8296
|
return r.containerState.initialBlankLine = !0, i++, p(h);
|
8295
8297
|
}
|
8296
8298
|
function f(h) {
|
8297
|
-
return
|
8299
|
+
return _e(h) ? (e.enter("listItemPrefixWhitespace"), e.consume(h), e.exit("listItemPrefixWhitespace"), p) : n(h);
|
8298
8300
|
}
|
8299
8301
|
function p(h) {
|
8300
8302
|
return r.containerState.size = i + r.sliceSerialize(e.exit("listItemPrefix"), !0).length, t(h);
|
@@ -8312,12 +8314,12 @@ function S1(e, t, n) {
|
|
8312
8314
|
)(s);
|
8313
8315
|
}
|
8314
8316
|
function i(s) {
|
8315
|
-
return r.containerState.furtherBlankLines || !
|
8317
|
+
return r.containerState.furtherBlankLines || !_e(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(I1, t, u)(s));
|
8316
8318
|
}
|
8317
8319
|
function u(s) {
|
8318
8320
|
return r.containerState._closeFlow = !0, r.interrupt = void 0, we(
|
8319
8321
|
e,
|
8320
|
-
e.attempt(
|
8322
|
+
e.attempt(et, t, n),
|
8321
8323
|
"linePrefix",
|
8322
8324
|
r.parser.constructs.disable.null.includes("codeIndented") ? void 0 : 4
|
8323
8325
|
)(s);
|
@@ -8349,7 +8351,7 @@ function k1(e, t, n) {
|
|
8349
8351
|
);
|
8350
8352
|
function a(i) {
|
8351
8353
|
const u = r.events[r.events.length - 1];
|
8352
|
-
return !
|
8354
|
+
return !_e(i) && u && u[1].type === "listItemPrefixWhitespace" ? t(i) : n(i);
|
8353
8355
|
}
|
8354
8356
|
}
|
8355
8357
|
const fo = {
|
@@ -8392,7 +8394,7 @@ function D1(e, t, n) {
|
|
8392
8394
|
return e.enter("setextHeadingLineSequence"), s(c);
|
8393
8395
|
}
|
8394
8396
|
function s(c) {
|
8395
|
-
return c === a ? (e.consume(c), s) : (e.exit("setextHeadingLineSequence"),
|
8397
|
+
return c === a ? (e.consume(c), s) : (e.exit("setextHeadingLineSequence"), _e(c) ? we(e, l, "lineSuffix")(c) : l(c));
|
8396
8398
|
}
|
8397
8399
|
function l(c) {
|
8398
8400
|
return c === null || ce(c) ? (e.exit("setextHeadingLine"), t(c)) : n(c);
|
@@ -8549,8 +8551,8 @@ function B1(e, t, n) {
|
|
8549
8551
|
enter: F,
|
8550
8552
|
exit: Q,
|
8551
8553
|
attempt: k(L),
|
8552
|
-
check: k(
|
8553
|
-
interrupt: k(
|
8554
|
+
check: k(y),
|
8555
|
+
interrupt: k(y, {
|
8554
8556
|
interrupt: !0
|
8555
8557
|
})
|
8556
8558
|
}, c = {
|
@@ -8561,14 +8563,14 @@ function B1(e, t, n) {
|
|
8561
8563
|
parser: e,
|
8562
8564
|
sliceStream: h,
|
8563
8565
|
sliceSerialize: p,
|
8564
|
-
now:
|
8566
|
+
now: T,
|
8565
8567
|
defineSkip: m,
|
8566
8568
|
write: f
|
8567
8569
|
};
|
8568
8570
|
let d = t.tokenize.call(c, l);
|
8569
8571
|
return t.resolveAll && i.push(t), c;
|
8570
8572
|
function f(q) {
|
8571
|
-
return u =
|
8573
|
+
return u = bt(u, q), C(), u[u.length - 1] !== null ? [] : ($(t, 0), c.events = Ni(i, c.events, c), c.events);
|
8572
8574
|
}
|
8573
8575
|
function p(q, V) {
|
8574
8576
|
return U1(h(q), V);
|
@@ -8576,7 +8578,7 @@ function B1(e, t, n) {
|
|
8576
8578
|
function h(q) {
|
8577
8579
|
return H1(u, q);
|
8578
8580
|
}
|
8579
|
-
function
|
8581
|
+
function T() {
|
8580
8582
|
const { line: q, column: V, offset: D, _index: v, _bufferIndex: w } = r;
|
8581
8583
|
return {
|
8582
8584
|
line: q,
|
@@ -8608,16 +8610,16 @@ function B1(e, t, n) {
|
|
8608
8610
|
}
|
8609
8611
|
function F(q, V) {
|
8610
8612
|
const D = V || {};
|
8611
|
-
return D.type = q, D.start =
|
8613
|
+
return D.type = q, D.start = T(), c.events.push(["enter", D, c]), s.push(D), D;
|
8612
8614
|
}
|
8613
8615
|
function Q(q) {
|
8614
8616
|
const V = s.pop();
|
8615
|
-
return V.end =
|
8617
|
+
return V.end = T(), c.events.push(["exit", V, c]), V;
|
8616
8618
|
}
|
8617
8619
|
function L(q, V) {
|
8618
8620
|
$(q, V.from);
|
8619
8621
|
}
|
8620
|
-
function
|
8622
|
+
function y(q, V) {
|
8621
8623
|
V.restore();
|
8622
8624
|
}
|
8623
8625
|
function k(q, V) {
|
@@ -8666,7 +8668,7 @@ function B1(e, t, n) {
|
|
8666
8668
|
}
|
8667
8669
|
}
|
8668
8670
|
function $(q, V) {
|
8669
|
-
q.resolveAll && !i.includes(q) && i.push(q), q.resolve &&
|
8671
|
+
q.resolveAll && !i.includes(q) && i.push(q), q.resolve && Lt(
|
8670
8672
|
c.events,
|
8671
8673
|
V,
|
8672
8674
|
c.events.length - V,
|
@@ -8674,7 +8676,7 @@ function B1(e, t, n) {
|
|
8674
8676
|
), q.resolveTo && (c.events = q.resolveTo(c.events, c));
|
8675
8677
|
}
|
8676
8678
|
function M() {
|
8677
|
-
const q =
|
8679
|
+
const q = T(), V = c.previous, D = c.currentConstruct, v = c.events.length, w = Array.from(s);
|
8678
8680
|
return {
|
8679
8681
|
restore: H,
|
8680
8682
|
from: v
|
@@ -8743,19 +8745,19 @@ function U1(e, t) {
|
|
8743
8745
|
return r.join("");
|
8744
8746
|
}
|
8745
8747
|
const j1 = {
|
8746
|
-
42:
|
8747
|
-
43:
|
8748
|
-
45:
|
8749
|
-
48:
|
8750
|
-
49:
|
8751
|
-
50:
|
8752
|
-
51:
|
8753
|
-
52:
|
8754
|
-
53:
|
8755
|
-
54:
|
8756
|
-
55:
|
8757
|
-
56:
|
8758
|
-
57:
|
8748
|
+
42: et,
|
8749
|
+
43: et,
|
8750
|
+
45: et,
|
8751
|
+
48: et,
|
8752
|
+
49: et,
|
8753
|
+
50: et,
|
8754
|
+
51: et,
|
8755
|
+
52: et,
|
8756
|
+
53: et,
|
8757
|
+
54: et,
|
8758
|
+
55: et,
|
8759
|
+
56: et,
|
8760
|
+
57: et,
|
8759
8761
|
62: cl
|
8760
8762
|
}, q1 = {
|
8761
8763
|
91: zp
|
@@ -8919,18 +8921,18 @@ function am(e) {
|
|
8919
8921
|
transforms: [],
|
8920
8922
|
canContainEols: ["emphasis", "fragment", "heading", "paragraph", "strong"],
|
8921
8923
|
enter: {
|
8922
|
-
autolink: s(
|
8924
|
+
autolink: s(Ot),
|
8923
8925
|
autolinkProtocol: q,
|
8924
8926
|
autolinkEmail: q,
|
8925
8927
|
atxHeading: s(mn),
|
8926
8928
|
blockQuote: s(We),
|
8927
8929
|
characterEscape: q,
|
8928
8930
|
characterReference: q,
|
8929
|
-
codeFenced: s(
|
8931
|
+
codeFenced: s(it),
|
8930
8932
|
codeFencedFenceInfo: l,
|
8931
8933
|
codeFencedFenceMeta: l,
|
8932
|
-
codeIndented: s(
|
8933
|
-
codeText: s(
|
8934
|
+
codeIndented: s(it, l),
|
8935
|
+
codeText: s(St, l),
|
8934
8936
|
codeTextData: q,
|
8935
8937
|
data: q,
|
8936
8938
|
codeFlowValue: q,
|
@@ -8947,19 +8949,19 @@ function am(e) {
|
|
8947
8949
|
htmlTextData: q,
|
8948
8950
|
image: s(gn),
|
8949
8951
|
label: l,
|
8950
|
-
link: s(
|
8952
|
+
link: s(Ot),
|
8951
8953
|
listItem: s(be),
|
8952
|
-
listItemValue:
|
8954
|
+
listItemValue: T,
|
8953
8955
|
listOrdered: s(ae, h),
|
8954
8956
|
listUnordered: s(ae),
|
8955
|
-
paragraph: s(
|
8957
|
+
paragraph: s(Ae),
|
8956
8958
|
reference: Te,
|
8957
8959
|
referenceString: l,
|
8958
8960
|
resourceDestinationString: l,
|
8959
8961
|
resourceTitleString: l,
|
8960
8962
|
setextHeading: s(mn),
|
8961
8963
|
strong: s($e),
|
8962
|
-
thematicBreak: s(
|
8964
|
+
thematicBreak: s(Ze)
|
8963
8965
|
},
|
8964
8966
|
exit: {
|
8965
8967
|
atxHeading: d(),
|
@@ -8982,7 +8984,7 @@ function am(e) {
|
|
8982
8984
|
codeTextData: V,
|
8983
8985
|
data: V,
|
8984
8986
|
definition: d(),
|
8985
|
-
definitionDestinationString:
|
8987
|
+
definitionDestinationString: y,
|
8986
8988
|
definitionLabelString: Q,
|
8987
8989
|
definitionTitleString: L,
|
8988
8990
|
emphasis: d(),
|
@@ -9076,31 +9078,31 @@ function am(e) {
|
|
9076
9078
|
return Z;
|
9077
9079
|
}
|
9078
9080
|
function a(Y, Z, ie) {
|
9079
|
-
let le = Z - 1, ye = -1, Qe = !1,
|
9081
|
+
let le = Z - 1, ye = -1, Qe = !1, gt, ot, st, vt;
|
9080
9082
|
for (; ++le <= ie; ) {
|
9081
9083
|
const Be = Y[le];
|
9082
|
-
if (Be[1].type === "listUnordered" || Be[1].type === "listOrdered" || Be[1].type === "blockQuote" ? (Be[0] === "enter" ? ye++ : ye--,
|
9083
|
-
if (
|
9084
|
+
if (Be[1].type === "listUnordered" || Be[1].type === "listOrdered" || Be[1].type === "blockQuote" ? (Be[0] === "enter" ? ye++ : ye--, vt = void 0) : Be[1].type === "lineEndingBlank" ? Be[0] === "enter" && (gt && !vt && !ye && !st && (st = le), vt = void 0) : Be[1].type === "linePrefix" || Be[1].type === "listItemValue" || Be[1].type === "listItemMarker" || Be[1].type === "listItemPrefix" || Be[1].type === "listItemPrefixWhitespace" || (vt = void 0), !ye && Be[0] === "enter" && Be[1].type === "listItemPrefix" || ye === -1 && Be[0] === "exit" && (Be[1].type === "listUnordered" || Be[1].type === "listOrdered")) {
|
9085
|
+
if (gt) {
|
9084
9086
|
let bn = le;
|
9085
|
-
for (
|
9086
|
-
const
|
9087
|
-
if (
|
9088
|
-
if (
|
9089
|
-
|
9090
|
-
} else if (!(
|
9087
|
+
for (ot = void 0; bn--; ) {
|
9088
|
+
const At = Y[bn];
|
9089
|
+
if (At[1].type === "lineEnding" || At[1].type === "lineEndingBlank") {
|
9090
|
+
if (At[0] === "exit") continue;
|
9091
|
+
ot && (Y[ot][1].type = "lineEndingBlank", Qe = !0), At[1].type = "lineEnding", ot = bn;
|
9092
|
+
} else if (!(At[1].type === "linePrefix" || At[1].type === "blockQuotePrefix" || At[1].type === "blockQuotePrefixWhitespace" || At[1].type === "blockQuoteMarker" || At[1].type === "listItemIndent")) break;
|
9091
9093
|
}
|
9092
|
-
|
9094
|
+
st && (!ot || st < ot) && (gt._spread = !0), gt.end = Object.assign(
|
9093
9095
|
{},
|
9094
|
-
|
9095
|
-
), Y.splice(
|
9096
|
+
ot ? Y[ot][1].start : Be[1].end
|
9097
|
+
), Y.splice(ot || le, 0, ["exit", gt, Be[2]]), le++, ie++;
|
9096
9098
|
}
|
9097
|
-
Be[1].type === "listItemPrefix" && (
|
9099
|
+
Be[1].type === "listItemPrefix" && (gt = {
|
9098
9100
|
type: "listItem",
|
9099
9101
|
_spread: !1,
|
9100
9102
|
start: Object.assign({}, Be[1].start),
|
9101
9103
|
// @ts-expect-error: we’ll add `end` in a second.
|
9102
9104
|
end: void 0
|
9103
|
-
}, Y.splice(le, 0, ["enter",
|
9105
|
+
}, Y.splice(le, 0, ["enter", gt, Be[2]]), le++, ie++, st = void 0, vt = !0);
|
9104
9106
|
}
|
9105
9107
|
}
|
9106
9108
|
return Y[Z][1]._spread = Qe, ie;
|
@@ -9152,7 +9154,7 @@ function am(e) {
|
|
9152
9154
|
function h() {
|
9153
9155
|
i("expectingFirstListItemValue", !0);
|
9154
9156
|
}
|
9155
|
-
function
|
9157
|
+
function T(Y) {
|
9156
9158
|
if (u("expectingFirstListItemValue")) {
|
9157
9159
|
const Z = this.stack[this.stack.length - 2];
|
9158
9160
|
Z.start = Number.parseInt(this.sliceSerialize(Y), 10), i("expectingFirstListItemValue");
|
@@ -9187,7 +9189,7 @@ function am(e) {
|
|
9187
9189
|
const Y = this.resume(), Z = this.stack[this.stack.length - 1];
|
9188
9190
|
Z.title = Y;
|
9189
9191
|
}
|
9190
|
-
function
|
9192
|
+
function y() {
|
9191
9193
|
const Y = this.resume(), Z = this.stack[this.stack.length - 1];
|
9192
9194
|
Z.url = Y;
|
9193
9195
|
}
|
@@ -9211,7 +9213,7 @@ function am(e) {
|
|
9211
9213
|
function q(Y) {
|
9212
9214
|
const Z = this.stack[this.stack.length - 1];
|
9213
9215
|
let ie = Z.children[Z.children.length - 1];
|
9214
|
-
(!ie || ie.type !== "text") && (ie =
|
9216
|
+
(!ie || ie.type !== "text") && (ie = ut(), ie.position = {
|
9215
9217
|
start: zt(Y.start)
|
9216
9218
|
}, Z.children.push(ie)), this.stack.push(ie);
|
9217
9219
|
}
|
@@ -9322,7 +9324,7 @@ function am(e) {
|
|
9322
9324
|
children: []
|
9323
9325
|
};
|
9324
9326
|
}
|
9325
|
-
function
|
9327
|
+
function it() {
|
9326
9328
|
return {
|
9327
9329
|
type: "code",
|
9328
9330
|
lang: null,
|
@@ -9330,7 +9332,7 @@ function am(e) {
|
|
9330
9332
|
value: ""
|
9331
9333
|
};
|
9332
9334
|
}
|
9333
|
-
function
|
9335
|
+
function St() {
|
9334
9336
|
return {
|
9335
9337
|
type: "inlineCode",
|
9336
9338
|
value: ""
|
@@ -9377,7 +9379,7 @@ function am(e) {
|
|
9377
9379
|
alt: null
|
9378
9380
|
};
|
9379
9381
|
}
|
9380
|
-
function
|
9382
|
+
function Ot() {
|
9381
9383
|
return {
|
9382
9384
|
type: "link",
|
9383
9385
|
title: null,
|
@@ -9402,7 +9404,7 @@ function am(e) {
|
|
9402
9404
|
children: []
|
9403
9405
|
};
|
9404
9406
|
}
|
9405
|
-
function
|
9407
|
+
function Ae() {
|
9406
9408
|
return {
|
9407
9409
|
type: "paragraph",
|
9408
9410
|
children: []
|
@@ -9414,13 +9416,13 @@ function am(e) {
|
|
9414
9416
|
children: []
|
9415
9417
|
};
|
9416
9418
|
}
|
9417
|
-
function
|
9419
|
+
function ut() {
|
9418
9420
|
return {
|
9419
9421
|
type: "text",
|
9420
9422
|
value: ""
|
9421
9423
|
};
|
9422
9424
|
}
|
9423
|
-
function
|
9425
|
+
function Ze() {
|
9424
9426
|
return {
|
9425
9427
|
type: "thematicBreak"
|
9426
9428
|
};
|
@@ -9540,7 +9542,7 @@ function kn(e) {
|
|
9540
9542
|
for (; ++n < e.length; ) {
|
9541
9543
|
const i = e.charCodeAt(n);
|
9542
9544
|
let u = "";
|
9543
|
-
if (i === 37 &&
|
9545
|
+
if (i === 37 && mt(e.charCodeAt(n + 1)) && mt(e.charCodeAt(n + 2)))
|
9544
9546
|
a = 2;
|
9545
9547
|
else if (i < 128)
|
9546
9548
|
/[!#$&-;=?-Z_a-z~]/.test(String.fromCharCode(i)) || (u = String.fromCharCode(i));
|
@@ -9802,8 +9804,8 @@ function vm(e, t, n) {
|
|
9802
9804
|
for (; ++l < s; ) {
|
9803
9805
|
const f = t.children[l], p = {}, h = u ? u[l] : void 0;
|
9804
9806
|
h && (p.align = h);
|
9805
|
-
let
|
9806
|
-
f && (
|
9807
|
+
let T = { type: "element", tagName: i, properties: p, children: [] };
|
9808
|
+
f && (T.children = e.all(f), e.patch(f, T), T = e.applyData(t, T)), c.push(T);
|
9807
9809
|
}
|
9808
9810
|
const d = {
|
9809
9811
|
type: "element",
|
@@ -9989,14 +9991,14 @@ const Bm = !0, Eo = !1, Hm = "skip", Um = (
|
|
9989
9991
|
}
|
9990
9992
|
return f;
|
9991
9993
|
function f() {
|
9992
|
-
let p = [], h,
|
9994
|
+
let p = [], h, T, m;
|
9993
9995
|
if ((!t || a(s, l, c[c.length - 1] || null)) && (p = jm(n(s, c)), p[0] === Eo))
|
9994
9996
|
return p;
|
9995
9997
|
if (s.children && p[0] !== Hm)
|
9996
|
-
for (
|
9997
|
-
if (h = u(s.children[
|
9998
|
+
for (T = (r ? s.children.length : -1) + i, m = c.concat(s); T > -1 && T < s.children.length; ) {
|
9999
|
+
if (h = u(s.children[T], T, m)(), h[0] === Eo)
|
9998
10000
|
return h;
|
9999
|
-
|
10001
|
+
T = typeof h[1] == "number" ? h[1] : T + i;
|
10000
10002
|
}
|
10001
10003
|
return p;
|
10002
10004
|
}
|
@@ -10267,7 +10269,7 @@ function kl(e, t) {
|
|
10267
10269
|
function di(e) {
|
10268
10270
|
return e.toLowerCase();
|
10269
10271
|
}
|
10270
|
-
let
|
10272
|
+
let _t = class {
|
10271
10273
|
/**
|
10272
10274
|
* @constructor
|
10273
10275
|
* @param {string} property
|
@@ -10277,18 +10279,18 @@ let yt = class {
|
|
10277
10279
|
this.property = t, this.attribute = n;
|
10278
10280
|
}
|
10279
10281
|
};
|
10280
|
-
|
10281
|
-
|
10282
|
-
|
10283
|
-
|
10284
|
-
|
10285
|
-
|
10286
|
-
|
10287
|
-
|
10288
|
-
|
10289
|
-
|
10282
|
+
_t.prototype.space = null;
|
10283
|
+
_t.prototype.boolean = !1;
|
10284
|
+
_t.prototype.booleanish = !1;
|
10285
|
+
_t.prototype.overloadedBoolean = !1;
|
10286
|
+
_t.prototype.number = !1;
|
10287
|
+
_t.prototype.commaSeparated = !1;
|
10288
|
+
_t.prototype.spaceSeparated = !1;
|
10289
|
+
_t.prototype.commaOrSpaceSeparated = !1;
|
10290
|
+
_t.prototype.mustUseProperty = !1;
|
10291
|
+
_t.prototype.defined = !1;
|
10290
10292
|
let Jm = 0;
|
10291
|
-
const fe = sn(), je = sn(), Nl = sn(), J = sn(), ke = sn(), In = sn(),
|
10293
|
+
const fe = sn(), je = sn(), Nl = sn(), J = sn(), ke = sn(), In = sn(), dt = sn();
|
10292
10294
|
function sn() {
|
10293
10295
|
return 2 ** ++Jm;
|
10294
10296
|
}
|
@@ -10296,13 +10298,13 @@ const fi = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineProperty({
|
|
10296
10298
|
__proto__: null,
|
10297
10299
|
boolean: fe,
|
10298
10300
|
booleanish: je,
|
10299
|
-
commaOrSpaceSeparated:
|
10301
|
+
commaOrSpaceSeparated: dt,
|
10300
10302
|
commaSeparated: In,
|
10301
10303
|
number: J,
|
10302
10304
|
overloadedBoolean: Nl,
|
10303
10305
|
spaceSeparated: ke
|
10304
10306
|
}, Symbol.toStringTag, { value: "Module" })), Pa = Object.keys(fi);
|
10305
|
-
let Fi = class extends
|
10307
|
+
let Fi = class extends _t {
|
10306
10308
|
/**
|
10307
10309
|
* @constructor
|
10308
10310
|
* @param {string} property
|
@@ -10966,7 +10968,7 @@ const Pl = Nn({
|
|
10966
10968
|
},
|
10967
10969
|
transform: Ll,
|
10968
10970
|
properties: {
|
10969
|
-
about:
|
10971
|
+
about: dt,
|
10970
10972
|
accentHeight: J,
|
10971
10973
|
accumulate: null,
|
10972
10974
|
additive: null,
|
@@ -11078,7 +11080,7 @@ const Pl = Nn({
|
|
11078
11080
|
k2: J,
|
11079
11081
|
k3: J,
|
11080
11082
|
k4: J,
|
11081
|
-
kernelMatrix:
|
11083
|
+
kernelMatrix: dt,
|
11082
11084
|
kernelUnitLength: null,
|
11083
11085
|
keyPoints: null,
|
11084
11086
|
// SEMI_COLON_SEPARATED
|
@@ -11235,21 +11237,21 @@ const Pl = Nn({
|
|
11235
11237
|
preserveAspectRatio: null,
|
11236
11238
|
primitiveUnits: null,
|
11237
11239
|
propagate: null,
|
11238
|
-
property:
|
11240
|
+
property: dt,
|
11239
11241
|
r: null,
|
11240
11242
|
radius: null,
|
11241
11243
|
referrerPolicy: null,
|
11242
11244
|
refX: null,
|
11243
11245
|
refY: null,
|
11244
|
-
rel:
|
11245
|
-
rev:
|
11246
|
+
rel: dt,
|
11247
|
+
rev: dt,
|
11246
11248
|
renderingIntent: null,
|
11247
11249
|
repeatCount: null,
|
11248
11250
|
repeatDur: null,
|
11249
|
-
requiredExtensions:
|
11250
|
-
requiredFeatures:
|
11251
|
-
requiredFonts:
|
11252
|
-
requiredFormats:
|
11251
|
+
requiredExtensions: dt,
|
11252
|
+
requiredFeatures: dt,
|
11253
|
+
requiredFonts: dt,
|
11254
|
+
requiredFormats: dt,
|
11253
11255
|
resource: null,
|
11254
11256
|
restart: null,
|
11255
11257
|
result: null,
|
@@ -11277,7 +11279,7 @@ const Pl = Nn({
|
|
11277
11279
|
strikethroughThickness: J,
|
11278
11280
|
string: null,
|
11279
11281
|
stroke: null,
|
11280
|
-
strokeDashArray:
|
11282
|
+
strokeDashArray: dt,
|
11281
11283
|
strokeDashOffset: null,
|
11282
11284
|
strokeLineCap: null,
|
11283
11285
|
strokeLineJoin: null,
|
@@ -11291,7 +11293,7 @@ const Pl = Nn({
|
|
11291
11293
|
syncMaster: null,
|
11292
11294
|
syncTolerance: null,
|
11293
11295
|
syncToleranceDefault: null,
|
11294
|
-
systemLanguage:
|
11296
|
+
systemLanguage: dt,
|
11295
11297
|
tabIndex: J,
|
11296
11298
|
tableValues: null,
|
11297
11299
|
target: null,
|
@@ -11305,7 +11307,7 @@ const Pl = Nn({
|
|
11305
11307
|
title: null,
|
11306
11308
|
transformBehavior: null,
|
11307
11309
|
type: null,
|
11308
|
-
typeOf:
|
11310
|
+
typeOf: dt,
|
11309
11311
|
to: null,
|
11310
11312
|
transform: null,
|
11311
11313
|
transformOrigin: null,
|
@@ -11349,7 +11351,7 @@ const Pl = Nn({
|
|
11349
11351
|
}), rg = /^data[-\w.:]+$/i, _o = /-[a-z]/g, ag = /[A-Z]/g;
|
11350
11352
|
function Fl(e, t) {
|
11351
11353
|
const n = di(t);
|
11352
|
-
let r = t, a =
|
11354
|
+
let r = t, a = _t;
|
11353
11355
|
if (n in e.normal)
|
11354
11356
|
return e.property[e.normal[n]];
|
11355
11357
|
if (n.length > 4 && n.slice(0, 4) === "data" && rg.test(t)) {
|
@@ -11424,8 +11426,8 @@ var Io;
|
|
11424
11426
|
function sg() {
|
11425
11427
|
if (Io) return Ie;
|
11426
11428
|
Io = 1;
|
11427
|
-
var e = Symbol.for("react.element"), t = Symbol.for("react.portal"), n = Symbol.for("react.fragment"), r = Symbol.for("react.strict_mode"), a = Symbol.for("react.profiler"), i = Symbol.for("react.provider"), u = Symbol.for("react.context"), s = Symbol.for("react.server_context"), l = Symbol.for("react.forward_ref"), c = Symbol.for("react.suspense"), d = Symbol.for("react.suspense_list"), f = Symbol.for("react.memo"), p = Symbol.for("react.lazy"), h = Symbol.for("react.offscreen"),
|
11428
|
-
|
11429
|
+
var e = Symbol.for("react.element"), t = Symbol.for("react.portal"), n = Symbol.for("react.fragment"), r = Symbol.for("react.strict_mode"), a = Symbol.for("react.profiler"), i = Symbol.for("react.provider"), u = Symbol.for("react.context"), s = Symbol.for("react.server_context"), l = Symbol.for("react.forward_ref"), c = Symbol.for("react.suspense"), d = Symbol.for("react.suspense_list"), f = Symbol.for("react.memo"), p = Symbol.for("react.lazy"), h = Symbol.for("react.offscreen"), T;
|
11430
|
+
T = Symbol.for("react.module.reference");
|
11429
11431
|
function m(C) {
|
11430
11432
|
if (typeof C == "object" && C !== null) {
|
11431
11433
|
var E = C.$$typeof;
|
@@ -11485,7 +11487,7 @@ function sg() {
|
|
11485
11487
|
}, Ie.isSuspenseList = function(C) {
|
11486
11488
|
return m(C) === d;
|
11487
11489
|
}, Ie.isValidElementType = function(C) {
|
11488
|
-
return typeof C == "string" || typeof C == "function" || C === n || C === a || C === r || C === c || C === d || C === h || typeof C == "object" && C !== null && (C.$$typeof === p || C.$$typeof === f || C.$$typeof === i || C.$$typeof === u || C.$$typeof === l || C.$$typeof ===
|
11490
|
+
return typeof C == "string" || typeof C == "function" || C === n || C === a || C === r || C === c || C === d || C === h || typeof C == "object" && C !== null && (C.$$typeof === p || C.$$typeof === f || C.$$typeof === i || C.$$typeof === u || C.$$typeof === l || C.$$typeof === T || C.getModuleId !== void 0);
|
11489
11491
|
}, Ie.typeOf = m, Ie;
|
11490
11492
|
}
|
11491
11493
|
var xo;
|
@@ -11493,7 +11495,7 @@ function lg() {
|
|
11493
11495
|
return xo || (xo = 1, Ma.exports = sg()), Ma.exports;
|
11494
11496
|
}
|
11495
11497
|
var cg = lg();
|
11496
|
-
const dg = /* @__PURE__ */
|
11498
|
+
const dg = /* @__PURE__ */ Rt(cg);
|
11497
11499
|
function fg(e) {
|
11498
11500
|
const t = (
|
11499
11501
|
// @ts-expect-error looks like a node.
|
@@ -11555,7 +11557,7 @@ function hg() {
|
|
11555
11557
|
this.start = D, this.end = { line: E, column: P }, this.source = C.source;
|
11556
11558
|
}
|
11557
11559
|
L.prototype.content = m;
|
11558
|
-
function
|
11560
|
+
function y(D) {
|
11559
11561
|
var v = new Error(
|
11560
11562
|
C.source + ":" + E + ":" + P + ": " + D
|
11561
11563
|
);
|
@@ -11583,7 +11585,7 @@ function hg() {
|
|
11583
11585
|
for (var v = 2; f != m.charAt(v) && (d != m.charAt(v) || c != m.charAt(v + 1)); )
|
11584
11586
|
++v;
|
11585
11587
|
if (v += 2, f === m.charAt(v - 1))
|
11586
|
-
return
|
11588
|
+
return y("End of comment missing");
|
11587
11589
|
var w = m.slice(2, v - 2);
|
11588
11590
|
return P += 2, F(w), m = m.slice(v), P += 2, D({
|
11589
11591
|
type: p,
|
@@ -11594,11 +11596,11 @@ function hg() {
|
|
11594
11596
|
function q() {
|
11595
11597
|
var D = Q(), v = k(r);
|
11596
11598
|
if (v) {
|
11597
|
-
if (K(), !k(a)) return
|
11599
|
+
if (K(), !k(a)) return y("property missing ':'");
|
11598
11600
|
var w = k(i), H = D({
|
11599
11601
|
type: h,
|
11600
|
-
property:
|
11601
|
-
value: w ?
|
11602
|
+
property: T(v[0].replace(e, f)),
|
11603
|
+
value: w ? T(w[0].replace(e, f)) : f
|
11602
11604
|
});
|
11603
11605
|
return k(u), H;
|
11604
11606
|
}
|
@@ -11612,7 +11614,7 @@ function hg() {
|
|
11612
11614
|
}
|
11613
11615
|
return $(), V();
|
11614
11616
|
};
|
11615
|
-
function
|
11617
|
+
function T(m) {
|
11616
11618
|
return m ? m.replace(s, f) : f;
|
11617
11619
|
}
|
11618
11620
|
return Fa;
|
@@ -11633,7 +11635,7 @@ function pg() {
|
|
11633
11635
|
return xr.exports = t, xr.exports.default = t, xr.exports;
|
11634
11636
|
}
|
11635
11637
|
var mg = pg();
|
11636
|
-
const gg = /* @__PURE__ */
|
11638
|
+
const gg = /* @__PURE__ */ Rt(mg), hi = {}.hasOwnProperty, bg = /* @__PURE__ */ new Set(["table", "thead", "tbody", "tfoot", "tr"]);
|
11637
11639
|
function jl(e, t) {
|
11638
11640
|
const n = [];
|
11639
11641
|
let r = -1, a;
|
@@ -11653,7 +11655,7 @@ function Eg(e, t, n, r) {
|
|
11653
11655
|
const p = t.position || {
|
11654
11656
|
start: { line: null, column: null, offset: null },
|
11655
11657
|
end: { line: null, column: null, offset: null }
|
11656
|
-
}, h = a.components && hi.call(a.components, s) ? a.components[s] : s,
|
11658
|
+
}, h = a.components && hi.call(a.components, s) ? a.components[s] : s, T = typeof h == "string" || h === yt.Fragment;
|
11657
11659
|
if (!dg.isValidElementType(h))
|
11658
11660
|
throw new TypeError(
|
11659
11661
|
`Component for name \`${s}\` not defined or is not renderable`
|
@@ -11666,15 +11668,15 @@ function Eg(e, t, n, r) {
|
|
11666
11668
|
String(l.href || ""),
|
11667
11669
|
t.children,
|
11668
11670
|
typeof l.title == "string" ? l.title : null
|
11669
|
-
)), !
|
11671
|
+
)), !T && s === "code" && r.type === "element" && r.tagName !== "pre" && (l.inline = !0), !T && (s === "h1" || s === "h2" || s === "h3" || s === "h4" || s === "h5" || s === "h6") && (l.level = Number.parseInt(s.charAt(1), 10)), s === "img" && a.transformImageUri && (l.src = a.transformImageUri(
|
11670
11672
|
String(l.src || ""),
|
11671
11673
|
String(l.alt || ""),
|
11672
11674
|
typeof l.title == "string" ? l.title : null
|
11673
|
-
)), !
|
11675
|
+
)), !T && s === "li" && r.type === "element") {
|
11674
11676
|
const m = Tg(t);
|
11675
11677
|
l.checked = m && m.properties ? !!m.properties.checked : null, l.index = Ba(r, t), l.ordered = r.tagName === "ol";
|
11676
11678
|
}
|
11677
|
-
return !
|
11679
|
+
return !T && (s === "ol" || s === "ul") && (l.ordered = s === "ol", l.depth = e.listDepth), (s === "td" || s === "th") && (l.align && (l.style || (l.style = {}), l.style.textAlign = l.align, delete l.align), T || (l.isHeader = s === "th")), !T && s === "tr" && r.type === "element" && (l.isHeader = r.tagName === "thead"), a.sourcePos && (l["data-sourcepos"] = Ag(p)), !T && a.rawSourcePos && (l.sourcePosition = t.position), !T && a.includeElementIndex && (l.index = Ba(r, t), l.siblingCount = Ba(r)), T || (l.node = t), f.length > 0 ? yt.createElement(h, l, f) : yt.createElement(h, l);
|
11678
11680
|
}
|
11679
11681
|
function Tg(e) {
|
11680
11682
|
let t = -1;
|
@@ -11764,12 +11766,12 @@ function Hi(e) {
|
|
11764
11766
|
const r = t.runSync(t.parse(n), n);
|
11765
11767
|
if (r.type !== "root")
|
11766
11768
|
throw new TypeError("Expected a `root` node");
|
11767
|
-
let a =
|
11768
|
-
|
11769
|
+
let a = yt.createElement(
|
11770
|
+
yt.Fragment,
|
11769
11771
|
{},
|
11770
11772
|
jl({ options: e, schema: Bl, listDepth: 0 }, r)
|
11771
11773
|
);
|
11772
|
-
return e.className && (a =
|
11774
|
+
return e.className && (a = yt.createElement("div", { className: e.className }, a)), a;
|
11773
11775
|
}
|
11774
11776
|
Hi.propTypes = {
|
11775
11777
|
// Core options:
|
@@ -12019,7 +12021,7 @@ function Vl(e, t) {
|
|
12019
12021
|
function lr(e) {
|
12020
12022
|
return e.toLowerCase();
|
12021
12023
|
}
|
12022
|
-
let
|
12024
|
+
let rt = class {
|
12023
12025
|
/**
|
12024
12026
|
* @param {string} property
|
12025
12027
|
* Property.
|
@@ -12032,20 +12034,20 @@ let nt = class {
|
|
12032
12034
|
this.attribute = n, this.property = t;
|
12033
12035
|
}
|
12034
12036
|
};
|
12035
|
-
|
12036
|
-
|
12037
|
-
|
12038
|
-
|
12039
|
-
|
12040
|
-
|
12041
|
-
|
12042
|
-
|
12043
|
-
|
12044
|
-
|
12045
|
-
|
12046
|
-
|
12037
|
+
rt.prototype.attribute = "";
|
12038
|
+
rt.prototype.booleanish = !1;
|
12039
|
+
rt.prototype.boolean = !1;
|
12040
|
+
rt.prototype.commaOrSpaceSeparated = !1;
|
12041
|
+
rt.prototype.commaSeparated = !1;
|
12042
|
+
rt.prototype.defined = !1;
|
12043
|
+
rt.prototype.mustUseProperty = !1;
|
12044
|
+
rt.prototype.number = !1;
|
12045
|
+
rt.prototype.overloadedBoolean = !1;
|
12046
|
+
rt.prototype.property = "";
|
12047
|
+
rt.prototype.spaceSeparated = !1;
|
12048
|
+
rt.prototype.space = void 0;
|
12047
12049
|
let kg = 0;
|
12048
|
-
const he = ln(), qe = ln(), Wl = ln(), ee = ln(), Ne = ln(), xn = ln(),
|
12050
|
+
const he = ln(), qe = ln(), Wl = ln(), ee = ln(), Ne = ln(), xn = ln(), ft = ln();
|
12049
12051
|
function ln() {
|
12050
12052
|
return 2 ** ++kg;
|
12051
12053
|
}
|
@@ -12053,7 +12055,7 @@ const pi = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineProperty({
|
|
12053
12055
|
__proto__: null,
|
12054
12056
|
boolean: he,
|
12055
12057
|
booleanish: qe,
|
12056
|
-
commaOrSpaceSeparated:
|
12058
|
+
commaOrSpaceSeparated: ft,
|
12057
12059
|
commaSeparated: xn,
|
12058
12060
|
number: ee,
|
12059
12061
|
overloadedBoolean: Wl,
|
@@ -12062,7 +12064,7 @@ const pi = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineProperty({
|
|
12062
12064
|
/** @type {ReadonlyArray<keyof typeof types>} */
|
12063
12065
|
Object.keys(pi)
|
12064
12066
|
);
|
12065
|
-
let Yi = class extends
|
12067
|
+
let Yi = class extends rt {
|
12066
12068
|
/**
|
12067
12069
|
* @constructor
|
12068
12070
|
* @param {string} property
|
@@ -12702,7 +12704,7 @@ const Ng = Dn({
|
|
12702
12704
|
timelineBegin: "timelinebegin"
|
12703
12705
|
},
|
12704
12706
|
properties: {
|
12705
|
-
about:
|
12707
|
+
about: ft,
|
12706
12708
|
accentHeight: ee,
|
12707
12709
|
accumulate: null,
|
12708
12710
|
additive: null,
|
@@ -12814,7 +12816,7 @@ const Ng = Dn({
|
|
12814
12816
|
k2: ee,
|
12815
12817
|
k3: ee,
|
12816
12818
|
k4: ee,
|
12817
|
-
kernelMatrix:
|
12819
|
+
kernelMatrix: ft,
|
12818
12820
|
kernelUnitLength: null,
|
12819
12821
|
keyPoints: null,
|
12820
12822
|
// SEMI_COLON_SEPARATED
|
@@ -12971,21 +12973,21 @@ const Ng = Dn({
|
|
12971
12973
|
preserveAspectRatio: null,
|
12972
12974
|
primitiveUnits: null,
|
12973
12975
|
propagate: null,
|
12974
|
-
property:
|
12976
|
+
property: ft,
|
12975
12977
|
r: null,
|
12976
12978
|
radius: null,
|
12977
12979
|
referrerPolicy: null,
|
12978
12980
|
refX: null,
|
12979
12981
|
refY: null,
|
12980
|
-
rel:
|
12981
|
-
rev:
|
12982
|
+
rel: ft,
|
12983
|
+
rev: ft,
|
12982
12984
|
renderingIntent: null,
|
12983
12985
|
repeatCount: null,
|
12984
12986
|
repeatDur: null,
|
12985
|
-
requiredExtensions:
|
12986
|
-
requiredFeatures:
|
12987
|
-
requiredFonts:
|
12988
|
-
requiredFormats:
|
12987
|
+
requiredExtensions: ft,
|
12988
|
+
requiredFeatures: ft,
|
12989
|
+
requiredFonts: ft,
|
12990
|
+
requiredFormats: ft,
|
12989
12991
|
resource: null,
|
12990
12992
|
restart: null,
|
12991
12993
|
result: null,
|
@@ -13013,7 +13015,7 @@ const Ng = Dn({
|
|
13013
13015
|
strikethroughThickness: ee,
|
13014
13016
|
string: null,
|
13015
13017
|
stroke: null,
|
13016
|
-
strokeDashArray:
|
13018
|
+
strokeDashArray: ft,
|
13017
13019
|
strokeDashOffset: null,
|
13018
13020
|
strokeLineCap: null,
|
13019
13021
|
strokeLineJoin: null,
|
@@ -13027,7 +13029,7 @@ const Ng = Dn({
|
|
13027
13029
|
syncMaster: null,
|
13028
13030
|
syncTolerance: null,
|
13029
13031
|
syncToleranceDefault: null,
|
13030
|
-
systemLanguage:
|
13032
|
+
systemLanguage: ft,
|
13031
13033
|
tabIndex: ee,
|
13032
13034
|
tableValues: null,
|
13033
13035
|
target: null,
|
@@ -13041,7 +13043,7 @@ const Ng = Dn({
|
|
13041
13043
|
title: null,
|
13042
13044
|
transformBehavior: null,
|
13043
13045
|
type: null,
|
13044
|
-
typeOf:
|
13046
|
+
typeOf: ft,
|
13045
13047
|
to: null,
|
13046
13048
|
transform: null,
|
13047
13049
|
transformOrigin: null,
|
@@ -13112,7 +13114,7 @@ const Ng = Dn({
|
|
13112
13114
|
}), wg = /[A-Z]/g, Mo = /-[a-z]/g, Lg = /^data[-\w.:]+$/i;
|
13113
13115
|
function Rg(e, t) {
|
13114
13116
|
const n = lr(t);
|
13115
|
-
let r = t, a =
|
13117
|
+
let r = t, a = rt;
|
13116
13118
|
if (n in e.normal)
|
13117
13119
|
return e.property[e.normal[n]];
|
13118
13120
|
if (n.length > 4 && n.slice(0, 4) === "data" && Lg.test(t)) {
|
@@ -13325,7 +13327,7 @@ function ec(e, t) {
|
|
13325
13327
|
function gi(e) {
|
13326
13328
|
return e.toLowerCase();
|
13327
13329
|
}
|
13328
|
-
class
|
13330
|
+
class at {
|
13329
13331
|
/**
|
13330
13332
|
* @param {string} property
|
13331
13333
|
* Property.
|
@@ -13338,20 +13340,20 @@ class rt {
|
|
13338
13340
|
this.attribute = n, this.property = t;
|
13339
13341
|
}
|
13340
13342
|
}
|
13341
|
-
|
13342
|
-
|
13343
|
-
|
13344
|
-
|
13345
|
-
|
13346
|
-
|
13347
|
-
|
13348
|
-
|
13349
|
-
|
13350
|
-
|
13351
|
-
|
13352
|
-
|
13343
|
+
at.prototype.attribute = "";
|
13344
|
+
at.prototype.booleanish = !1;
|
13345
|
+
at.prototype.boolean = !1;
|
13346
|
+
at.prototype.commaOrSpaceSeparated = !1;
|
13347
|
+
at.prototype.commaSeparated = !1;
|
13348
|
+
at.prototype.defined = !1;
|
13349
|
+
at.prototype.mustUseProperty = !1;
|
13350
|
+
at.prototype.number = !1;
|
13351
|
+
at.prototype.overloadedBoolean = !1;
|
13352
|
+
at.prototype.property = "";
|
13353
|
+
at.prototype.spaceSeparated = !1;
|
13354
|
+
at.prototype.space = void 0;
|
13353
13355
|
let $g = 0;
|
13354
|
-
const pe = cn(), ze = cn(), tc = cn(), te = cn(), De = cn(), Sn = cn(),
|
13356
|
+
const pe = cn(), ze = cn(), tc = cn(), te = cn(), De = cn(), Sn = cn(), ht = cn();
|
13355
13357
|
function cn() {
|
13356
13358
|
return 2 ** ++$g;
|
13357
13359
|
}
|
@@ -13359,7 +13361,7 @@ const bi = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineProperty({
|
|
13359
13361
|
__proto__: null,
|
13360
13362
|
boolean: pe,
|
13361
13363
|
booleanish: ze,
|
13362
|
-
commaOrSpaceSeparated:
|
13364
|
+
commaOrSpaceSeparated: ht,
|
13363
13365
|
commaSeparated: Sn,
|
13364
13366
|
number: te,
|
13365
13367
|
overloadedBoolean: tc,
|
@@ -13368,7 +13370,7 @@ const bi = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineProperty({
|
|
13368
13370
|
/** @type {ReadonlyArray<keyof typeof types>} */
|
13369
13371
|
Object.keys(bi)
|
13370
13372
|
);
|
13371
|
-
class Vi extends
|
13373
|
+
class Vi extends at {
|
13372
13374
|
/**
|
13373
13375
|
* @constructor
|
13374
13376
|
* @param {string} property
|
@@ -14008,7 +14010,7 @@ const Gg = wn({
|
|
14008
14010
|
timelineBegin: "timelinebegin"
|
14009
14011
|
},
|
14010
14012
|
properties: {
|
14011
|
-
about:
|
14013
|
+
about: ht,
|
14012
14014
|
accentHeight: te,
|
14013
14015
|
accumulate: null,
|
14014
14016
|
additive: null,
|
@@ -14120,7 +14122,7 @@ const Gg = wn({
|
|
14120
14122
|
k2: te,
|
14121
14123
|
k3: te,
|
14122
14124
|
k4: te,
|
14123
|
-
kernelMatrix:
|
14125
|
+
kernelMatrix: ht,
|
14124
14126
|
kernelUnitLength: null,
|
14125
14127
|
keyPoints: null,
|
14126
14128
|
// SEMI_COLON_SEPARATED
|
@@ -14277,21 +14279,21 @@ const Gg = wn({
|
|
14277
14279
|
preserveAspectRatio: null,
|
14278
14280
|
primitiveUnits: null,
|
14279
14281
|
propagate: null,
|
14280
|
-
property:
|
14282
|
+
property: ht,
|
14281
14283
|
r: null,
|
14282
14284
|
radius: null,
|
14283
14285
|
referrerPolicy: null,
|
14284
14286
|
refX: null,
|
14285
14287
|
refY: null,
|
14286
|
-
rel:
|
14287
|
-
rev:
|
14288
|
+
rel: ht,
|
14289
|
+
rev: ht,
|
14288
14290
|
renderingIntent: null,
|
14289
14291
|
repeatCount: null,
|
14290
14292
|
repeatDur: null,
|
14291
|
-
requiredExtensions:
|
14292
|
-
requiredFeatures:
|
14293
|
-
requiredFonts:
|
14294
|
-
requiredFormats:
|
14293
|
+
requiredExtensions: ht,
|
14294
|
+
requiredFeatures: ht,
|
14295
|
+
requiredFonts: ht,
|
14296
|
+
requiredFormats: ht,
|
14295
14297
|
resource: null,
|
14296
14298
|
restart: null,
|
14297
14299
|
result: null,
|
@@ -14319,7 +14321,7 @@ const Gg = wn({
|
|
14319
14321
|
strikethroughThickness: te,
|
14320
14322
|
string: null,
|
14321
14323
|
stroke: null,
|
14322
|
-
strokeDashArray:
|
14324
|
+
strokeDashArray: ht,
|
14323
14325
|
strokeDashOffset: null,
|
14324
14326
|
strokeLineCap: null,
|
14325
14327
|
strokeLineJoin: null,
|
@@ -14333,7 +14335,7 @@ const Gg = wn({
|
|
14333
14335
|
syncMaster: null,
|
14334
14336
|
syncTolerance: null,
|
14335
14337
|
syncToleranceDefault: null,
|
14336
|
-
systemLanguage:
|
14338
|
+
systemLanguage: ht,
|
14337
14339
|
tabIndex: te,
|
14338
14340
|
tableValues: null,
|
14339
14341
|
target: null,
|
@@ -14347,7 +14349,7 @@ const Gg = wn({
|
|
14347
14349
|
title: null,
|
14348
14350
|
transformBehavior: null,
|
14349
14351
|
type: null,
|
14350
|
-
typeOf:
|
14352
|
+
typeOf: ht,
|
14351
14353
|
to: null,
|
14352
14354
|
transform: null,
|
14353
14355
|
transformOrigin: null,
|
@@ -14418,7 +14420,7 @@ const Gg = wn({
|
|
14418
14420
|
}), Xg = /[A-Z]/g, Uo = /-[a-z]/g, Kg = /^data[-\w.:]+$/i;
|
14419
14421
|
function Zg(e, t) {
|
14420
14422
|
const n = gi(t);
|
14421
|
-
let r = t, a =
|
14423
|
+
let r = t, a = at;
|
14422
14424
|
if (n in e.normal)
|
14423
14425
|
return e.property[e.normal[n]];
|
14424
14426
|
if (n.length > 4 && n.slice(0, 4) === "data" && Kg.test(t)) {
|
@@ -14809,7 +14811,7 @@ var b;
|
|
14809
14811
|
(function(e) {
|
14810
14812
|
e[e.EOF = -1] = "EOF", e[e.NULL = 0] = "NULL", e[e.TABULATION = 9] = "TABULATION", e[e.CARRIAGE_RETURN = 13] = "CARRIAGE_RETURN", e[e.LINE_FEED = 10] = "LINE_FEED", e[e.FORM_FEED = 12] = "FORM_FEED", e[e.SPACE = 32] = "SPACE", e[e.EXCLAMATION_MARK = 33] = "EXCLAMATION_MARK", e[e.QUOTATION_MARK = 34] = "QUOTATION_MARK", e[e.AMPERSAND = 38] = "AMPERSAND", e[e.APOSTROPHE = 39] = "APOSTROPHE", e[e.HYPHEN_MINUS = 45] = "HYPHEN_MINUS", e[e.SOLIDUS = 47] = "SOLIDUS", e[e.DIGIT_0 = 48] = "DIGIT_0", e[e.DIGIT_9 = 57] = "DIGIT_9", e[e.SEMICOLON = 59] = "SEMICOLON", e[e.LESS_THAN_SIGN = 60] = "LESS_THAN_SIGN", e[e.EQUALS_SIGN = 61] = "EQUALS_SIGN", e[e.GREATER_THAN_SIGN = 62] = "GREATER_THAN_SIGN", e[e.QUESTION_MARK = 63] = "QUESTION_MARK", e[e.LATIN_CAPITAL_A = 65] = "LATIN_CAPITAL_A", e[e.LATIN_CAPITAL_Z = 90] = "LATIN_CAPITAL_Z", e[e.RIGHT_SQUARE_BRACKET = 93] = "RIGHT_SQUARE_BRACKET", e[e.GRAVE_ACCENT = 96] = "GRAVE_ACCENT", e[e.LATIN_SMALL_A = 97] = "LATIN_SMALL_A", e[e.LATIN_SMALL_Z = 122] = "LATIN_SMALL_Z";
|
14811
14813
|
})(b || (b = {}));
|
14812
|
-
const
|
14814
|
+
const Je = {
|
14813
14815
|
DASH_DASH: "--",
|
14814
14816
|
CDATA_START: "[CDATA[",
|
14815
14817
|
DOCTYPE: "doctype",
|
@@ -15003,13 +15005,13 @@ var Ye;
|
|
15003
15005
|
(function(e) {
|
15004
15006
|
e[e.EntityStart = 0] = "EntityStart", e[e.NumericStart = 1] = "NumericStart", e[e.NumericDecimal = 2] = "NumericDecimal", e[e.NumericHex = 3] = "NumericHex", e[e.NamedEntity = 4] = "NamedEntity";
|
15005
15007
|
})(Ye || (Ye = {}));
|
15006
|
-
var
|
15008
|
+
var Ut;
|
15007
15009
|
(function(e) {
|
15008
15010
|
e[e.Legacy = 0] = "Legacy", e[e.Strict = 1] = "Strict", e[e.Attribute = 2] = "Attribute";
|
15009
|
-
})(
|
15011
|
+
})(Ut || (Ut = {}));
|
15010
15012
|
class Tc {
|
15011
15013
|
constructor(t, n, r) {
|
15012
|
-
this.decodeTree = t, this.emitCodePoint = n, this.errors = r, this.state = Ye.EntityStart, this.consumed = 1, this.result = 0, this.treeIndex = 0, this.excess = 1, this.decodeMode =
|
15014
|
+
this.decodeTree = t, this.emitCodePoint = n, this.errors = r, this.state = Ye.EntityStart, this.consumed = 1, this.result = 0, this.treeIndex = 0, this.excess = 1, this.decodeMode = Ut.Strict;
|
15013
15015
|
}
|
15014
15016
|
/** Resets the instance to make it reusable. */
|
15015
15017
|
startEntity(t) {
|
@@ -15117,7 +15119,7 @@ class Tc {
|
|
15117
15119
|
return (r = this.errors) === null || r === void 0 || r.absenceOfDigitsInNumericCharacterReference(this.consumed), 0;
|
15118
15120
|
if (t === Ve.SEMI)
|
15119
15121
|
this.consumed += 1;
|
15120
|
-
else if (this.decodeMode ===
|
15122
|
+
else if (this.decodeMode === Ut.Strict)
|
15121
15123
|
return 0;
|
15122
15124
|
return this.emitCodePoint(x2(this.result), this.consumed), this.errors && (t !== Ve.SEMI && this.errors.missingSemicolonAfterCharacterReference(), this.errors.validateNumericCharacterReference(this.result)), this.consumed;
|
15123
15125
|
}
|
@@ -15137,13 +15139,13 @@ class Tc {
|
|
15137
15139
|
const u = t.charCodeAt(n);
|
15138
15140
|
if (this.treeIndex = N2(r, a, this.treeIndex + Math.max(1, i), u), this.treeIndex < 0)
|
15139
15141
|
return this.result === 0 || // If we are parsing an attribute
|
15140
|
-
this.decodeMode ===
|
15142
|
+
this.decodeMode === Ut.Attribute && // We shouldn't have consumed any characters after the entity,
|
15141
15143
|
(i === 0 || // And there should be no invalid characters.
|
15142
15144
|
k2(u)) ? 0 : this.emitNotTerminatedNamedEntity();
|
15143
15145
|
if (a = r[this.treeIndex], i = (a & $t.VALUE_LENGTH) >> 14, i !== 0) {
|
15144
15146
|
if (u === Ve.SEMI)
|
15145
15147
|
return this.emitNamedEntityData(this.treeIndex, i, this.consumed + this.excess);
|
15146
|
-
this.decodeMode !==
|
15148
|
+
this.decodeMode !== Ut.Strict && (this.result = this.treeIndex, this.consumed += this.excess, this.excess = 0);
|
15147
15149
|
}
|
15148
15150
|
}
|
15149
15151
|
return -1;
|
@@ -15182,7 +15184,7 @@ class Tc {
|
|
15182
15184
|
var t;
|
15183
15185
|
switch (this.state) {
|
15184
15186
|
case Ye.NamedEntity:
|
15185
|
-
return this.result !== 0 && (this.decodeMode !==
|
15187
|
+
return this.result !== 0 && (this.decodeMode !== Ut.Attribute || this.result === this.treeIndex) ? this.emitNotTerminatedNamedEntity() : 0;
|
15186
15188
|
// Otherwise, emit a numeric entity if we have one.
|
15187
15189
|
case Ye.NumericDecimal:
|
15188
15190
|
return this.emitNumericEntity(0, 2);
|
@@ -15247,10 +15249,10 @@ var un;
|
|
15247
15249
|
(function(e) {
|
15248
15250
|
e.TYPE = "type", e.ACTION = "action", e.ENCODING = "encoding", e.PROMPT = "prompt", e.NAME = "name", e.COLOR = "color", e.FACE = "face", e.SIZE = "size";
|
15249
15251
|
})(un || (un = {}));
|
15250
|
-
var
|
15252
|
+
var Et;
|
15251
15253
|
(function(e) {
|
15252
15254
|
e.NO_QUIRKS = "no-quirks", e.QUIRKS = "quirks", e.LIMITED_QUIRKS = "limited-quirks";
|
15253
|
-
})(
|
15255
|
+
})(Et || (Et = {}));
|
15254
15256
|
var R;
|
15255
15257
|
(function(e) {
|
15256
15258
|
e.A = "a", e.ADDRESS = "address", e.ANNOTATION_XML = "annotation-xml", e.APPLET = "applet", e.AREA = "area", e.ARTICLE = "article", e.ASIDE = "aside", e.B = "b", e.BASE = "base", e.BASEFONT = "basefont", e.BGSOUND = "bgsound", e.BIG = "big", e.BLOCKQUOTE = "blockquote", e.BODY = "body", e.BR = "br", e.BUTTON = "button", e.CAPTION = "caption", e.CENTER = "center", e.CODE = "code", e.COL = "col", e.COLGROUP = "colgroup", e.DD = "dd", e.DESC = "desc", e.DETAILS = "details", e.DIALOG = "dialog", e.DIR = "dir", e.DIV = "div", e.DL = "dl", e.DT = "dt", e.EM = "em", e.EMBED = "embed", e.FIELDSET = "fieldset", e.FIGCAPTION = "figcaption", e.FIGURE = "figure", e.FONT = "font", e.FOOTER = "footer", e.FOREIGN_OBJECT = "foreignObject", e.FORM = "form", e.FRAME = "frame", e.FRAMESET = "frameset", e.H1 = "h1", e.H2 = "h2", e.H3 = "h3", e.H4 = "h4", e.H5 = "h5", e.H6 = "h6", e.HEAD = "head", e.HEADER = "header", e.HGROUP = "hgroup", e.HR = "hr", e.HTML = "html", e.I = "i", e.IMG = "img", e.IMAGE = "image", e.INPUT = "input", e.IFRAME = "iframe", e.KEYGEN = "keygen", e.LABEL = "label", e.LI = "li", e.LINK = "link", e.LISTING = "listing", e.MAIN = "main", e.MALIGNMARK = "malignmark", e.MARQUEE = "marquee", e.MATH = "math", e.MENU = "menu", e.META = "meta", e.MGLYPH = "mglyph", e.MI = "mi", e.MO = "mo", e.MN = "mn", e.MS = "ms", e.MTEXT = "mtext", e.NAV = "nav", e.NOBR = "nobr", e.NOFRAMES = "noframes", e.NOEMBED = "noembed", e.NOSCRIPT = "noscript", e.OBJECT = "object", e.OL = "ol", e.OPTGROUP = "optgroup", e.OPTION = "option", e.P = "p", e.PARAM = "param", e.PLAINTEXT = "plaintext", e.PRE = "pre", e.RB = "rb", e.RP = "rp", e.RT = "rt", e.RTC = "rtc", e.RUBY = "ruby", e.S = "s", e.SCRIPT = "script", e.SEARCH = "search", e.SECTION = "section", e.SELECT = "select", e.SOURCE = "source", e.SMALL = "small", e.SPAN = "span", e.STRIKE = "strike", e.STRONG = "strong", e.STYLE = "style", e.SUB = "sub", e.SUMMARY = "summary", e.SUP = "sup", e.TABLE = "table", e.TBODY = "tbody", e.TEMPLATE = "template", e.TEXTAREA = "textarea", e.TFOOT = "tfoot", e.TD = "td", e.TH = "th", e.THEAD = "thead", e.TITLE = "title", e.TR = "tr", e.TRACK = "track", e.TT = "tt", e.U = "u", e.UL = "ul", e.SVG = "svg", e.VAR = "var", e.WBR = "wbr", e.XMP = "xmp";
|
@@ -15726,7 +15728,7 @@ class M2 {
|
|
15726
15728
|
}
|
15727
15729
|
// Character reference helpers
|
15728
15730
|
_startCharacterReference() {
|
15729
|
-
this.returnState = this.state, this.state = _.CHARACTER_REFERENCE, this.entityStartPos = this.preprocessor.pos, this.entityDecoder.startEntity(this._isCharacterReferenceInAttribute() ?
|
15731
|
+
this.returnState = this.state, this.state = _.CHARACTER_REFERENCE, this.entityStartPos = this.preprocessor.pos, this.entityDecoder.startEntity(this._isCharacterReferenceInAttribute() ? Ut.Attribute : Ut.Legacy);
|
15730
15732
|
}
|
15731
15733
|
_isCharacterReferenceInAttribute() {
|
15732
15734
|
return this.returnState === _.ATTRIBUTE_VALUE_DOUBLE_QUOTED || this.returnState === _.ATTRIBUTE_VALUE_SINGLE_QUOTED || this.returnState === _.ATTRIBUTE_VALUE_UNQUOTED;
|
@@ -16395,9 +16397,9 @@ class M2 {
|
|
16395
16397
|
// Script data double escape start state
|
16396
16398
|
//------------------------------------------------------------------
|
16397
16399
|
_stateScriptDataDoubleEscapeStart(t) {
|
16398
|
-
if (this.preprocessor.startsWith(
|
16400
|
+
if (this.preprocessor.startsWith(Je.SCRIPT, !1) && Vo(this.preprocessor.peek(Je.SCRIPT.length))) {
|
16399
16401
|
this._emitCodePoint(t);
|
16400
|
-
for (let n = 0; n <
|
16402
|
+
for (let n = 0; n < Je.SCRIPT.length; n++)
|
16401
16403
|
this._emitCodePoint(this._consume());
|
16402
16404
|
this.state = _.SCRIPT_DATA_DOUBLE_ESCAPED;
|
16403
16405
|
} else this._ensureHibernation() || (this.state = _.SCRIPT_DATA_ESCAPED, this._stateScriptDataEscaped(t));
|
@@ -16486,9 +16488,9 @@ class M2 {
|
|
16486
16488
|
// Script data double escape end state
|
16487
16489
|
//------------------------------------------------------------------
|
16488
16490
|
_stateScriptDataDoubleEscapeEnd(t) {
|
16489
|
-
if (this.preprocessor.startsWith(
|
16491
|
+
if (this.preprocessor.startsWith(Je.SCRIPT, !1) && Vo(this.preprocessor.peek(Je.SCRIPT.length))) {
|
16490
16492
|
this._emitCodePoint(t);
|
16491
|
-
for (let n = 0; n <
|
16493
|
+
for (let n = 0; n < Je.SCRIPT.length; n++)
|
16492
16494
|
this._emitCodePoint(this._consume());
|
16493
16495
|
this.state = _.SCRIPT_DATA_ESCAPED;
|
16494
16496
|
} else this._ensureHibernation() || (this.state = _.SCRIPT_DATA_DOUBLE_ESCAPED, this._stateScriptDataDoubleEscaped(t));
|
@@ -16757,7 +16759,7 @@ class M2 {
|
|
16757
16759
|
// Markup declaration open state
|
16758
16760
|
//------------------------------------------------------------------
|
16759
16761
|
_stateMarkupDeclarationOpen(t) {
|
16760
|
-
this._consumeSequenceIfMatch(
|
16762
|
+
this._consumeSequenceIfMatch(Je.DASH_DASH, !0) ? (this._createCommentToken(Je.DASH_DASH.length + 1), this.state = _.COMMENT_START) : this._consumeSequenceIfMatch(Je.DOCTYPE, !1) ? (this.currentLocation = this.getCurrentLocation(Je.DOCTYPE.length + 1), this.state = _.DOCTYPE) : this._consumeSequenceIfMatch(Je.CDATA_START, !0) ? this.inForeignNode ? this.state = _.CDATA_SECTION : (this._err(U.cdataInHtmlContent), this._createCommentToken(Je.CDATA_START.length + 1), this.currentToken.data = "[CDATA[", this.state = _.BOGUS_COMMENT) : this._ensureHibernation() || (this._err(U.incorrectlyOpenedComment), this._createCommentToken(2), this.state = _.BOGUS_COMMENT, this._stateBogusComment(t));
|
16761
16763
|
}
|
16762
16764
|
// Comment start state
|
16763
16765
|
//------------------------------------------------------------------
|
@@ -17022,7 +17024,7 @@ class M2 {
|
|
17022
17024
|
break;
|
17023
17025
|
}
|
17024
17026
|
default:
|
17025
|
-
this._consumeSequenceIfMatch(
|
17027
|
+
this._consumeSequenceIfMatch(Je.PUBLIC, !1) ? this.state = _.AFTER_DOCTYPE_PUBLIC_KEYWORD : this._consumeSequenceIfMatch(Je.SYSTEM, !1) ? this.state = _.AFTER_DOCTYPE_SYSTEM_KEYWORD : this._ensureHibernation() || (this._err(U.invalidCharacterSequenceAfterDoctypeName), n.forceQuirks = !0, this.state = _.BOGUS_DOCTYPE, this._stateBogusDoctype(t));
|
17026
17028
|
}
|
17027
17029
|
}
|
17028
17030
|
// After DOCTYPE public keyword state
|
@@ -17645,11 +17647,11 @@ class z2 {
|
|
17645
17647
|
}
|
17646
17648
|
}
|
17647
17649
|
const qa = 3;
|
17648
|
-
var
|
17650
|
+
var Nt;
|
17649
17651
|
(function(e) {
|
17650
17652
|
e[e.Marker = 0] = "Marker", e[e.Element = 1] = "Element";
|
17651
|
-
})(
|
17652
|
-
const Qo = { type:
|
17653
|
+
})(Nt || (Nt = {}));
|
17654
|
+
const Qo = { type: Nt.Marker };
|
17653
17655
|
class Y2 {
|
17654
17656
|
constructor(t) {
|
17655
17657
|
this.treeAdapter = t, this.entries = [], this.bookmark = null;
|
@@ -17661,7 +17663,7 @@ class Y2 {
|
|
17661
17663
|
const r = [], a = n.length, i = this.treeAdapter.getTagName(t), u = this.treeAdapter.getNamespaceURI(t);
|
17662
17664
|
for (let s = 0; s < this.entries.length; s++) {
|
17663
17665
|
const l = this.entries[s];
|
17664
|
-
if (l.type ===
|
17666
|
+
if (l.type === Nt.Marker)
|
17665
17667
|
break;
|
17666
17668
|
const { element: c } = l;
|
17667
17669
|
if (this.treeAdapter.getTagName(c) === i && this.treeAdapter.getNamespaceURI(c) === u) {
|
@@ -17690,7 +17692,7 @@ class Y2 {
|
|
17690
17692
|
}
|
17691
17693
|
pushElement(t, n) {
|
17692
17694
|
this._ensureNoahArkCondition(t), this.entries.unshift({
|
17693
|
-
type:
|
17695
|
+
type: Nt.Element,
|
17694
17696
|
element: t,
|
17695
17697
|
token: n
|
17696
17698
|
});
|
@@ -17698,7 +17700,7 @@ class Y2 {
|
|
17698
17700
|
insertElementAfterBookmark(t, n) {
|
17699
17701
|
const r = this.entries.indexOf(this.bookmark);
|
17700
17702
|
this.entries.splice(r, 0, {
|
17701
|
-
type:
|
17703
|
+
type: Nt.Element,
|
17702
17704
|
element: t,
|
17703
17705
|
token: n
|
17704
17706
|
});
|
@@ -17718,11 +17720,11 @@ class Y2 {
|
|
17718
17720
|
}
|
17719
17721
|
//Search
|
17720
17722
|
getElementEntryInScopeWithTagName(t) {
|
17721
|
-
const n = this.entries.find((r) => r.type ===
|
17722
|
-
return n && n.type ===
|
17723
|
+
const n = this.entries.find((r) => r.type === Nt.Marker || this.treeAdapter.getTagName(r.element) === t);
|
17724
|
+
return n && n.type === Nt.Element ? n : null;
|
17723
17725
|
}
|
17724
17726
|
getElementEntry(t) {
|
17725
|
-
return this.entries.find((n) => n.type ===
|
17727
|
+
return this.entries.find((n) => n.type === Nt.Element && n.element === t);
|
17726
17728
|
}
|
17727
17729
|
}
|
17728
17730
|
const Vt = {
|
@@ -17730,7 +17732,7 @@ const Vt = {
|
|
17730
17732
|
createDocument() {
|
17731
17733
|
return {
|
17732
17734
|
nodeName: "#document",
|
17733
|
-
mode:
|
17735
|
+
mode: Et.NO_QUIRKS,
|
17734
17736
|
childNodes: []
|
17735
17737
|
};
|
17736
17738
|
},
|
@@ -17959,21 +17961,21 @@ function X2(e) {
|
|
17959
17961
|
}
|
17960
17962
|
function K2(e) {
|
17961
17963
|
if (e.name !== Ac)
|
17962
|
-
return
|
17964
|
+
return Et.QUIRKS;
|
17963
17965
|
const { systemId: t } = e;
|
17964
17966
|
if (t && t.toLowerCase() === W2)
|
17965
|
-
return
|
17967
|
+
return Et.QUIRKS;
|
17966
17968
|
let { publicId: n } = e;
|
17967
17969
|
if (n !== null) {
|
17968
17970
|
if (n = n.toLowerCase(), G2.has(n))
|
17969
|
-
return
|
17971
|
+
return Et.QUIRKS;
|
17970
17972
|
let r = t === null ? $2 : Ic;
|
17971
17973
|
if (Xo(n, r))
|
17972
|
-
return
|
17974
|
+
return Et.QUIRKS;
|
17973
17975
|
if (r = t === null ? xc : Q2, Xo(n, r))
|
17974
|
-
return
|
17976
|
+
return Et.LIMITED_QUIRKS;
|
17975
17977
|
}
|
17976
|
-
return
|
17978
|
+
return Et.NO_QUIRKS;
|
17977
17979
|
}
|
17978
17980
|
const Ko = {
|
17979
17981
|
TEXT_HTML: "text/html",
|
@@ -18458,7 +18460,7 @@ class Jo {
|
|
18458
18460
|
_reconstructActiveFormattingElements() {
|
18459
18461
|
const t = this.activeFormattingElements.entries.length;
|
18460
18462
|
if (t) {
|
18461
|
-
const n = this.activeFormattingElements.entries.findIndex((a) => a.type ===
|
18463
|
+
const n = this.activeFormattingElements.entries.findIndex((a) => a.type === Nt.Marker || this.openElements.contains(a.element)), r = n < 0 ? t - 1 : n - 1;
|
18462
18464
|
for (let a = r; a >= 0; a--) {
|
18463
18465
|
const i = this.activeFormattingElements.entries[a];
|
18464
18466
|
this._insertElement(i.token, this.treeAdapter.getNamespaceURI(i.element)), i.element = this.openElements.current;
|
@@ -18811,7 +18813,7 @@ class Jo {
|
|
18811
18813
|
break;
|
18812
18814
|
}
|
18813
18815
|
case O.IN_HEAD: {
|
18814
|
-
|
18816
|
+
xt(this, t);
|
18815
18817
|
break;
|
18816
18818
|
}
|
18817
18819
|
case O.IN_HEAD_NO_SCRIPT: {
|
@@ -19171,11 +19173,11 @@ function Xi(e, t) {
|
|
19171
19173
|
}
|
19172
19174
|
function Cb(e, t) {
|
19173
19175
|
e._setDocumentType(t);
|
19174
|
-
const n = t.forceQuirks ?
|
19176
|
+
const n = t.forceQuirks ? Et.QUIRKS : K2(t);
|
19175
19177
|
X2(t) || e._err(t, U.nonConformingDoctype), e.treeAdapter.setDocumentMode(e.document, n), e.insertionMode = O.BEFORE_HTML;
|
19176
19178
|
}
|
19177
19179
|
function Vn(e, t) {
|
19178
|
-
e._err(t, U.missingDoctype, !0), e.treeAdapter.setDocumentMode(e.document,
|
19180
|
+
e._err(t, U.missingDoctype, !0), e.treeAdapter.setDocumentMode(e.document, Et.QUIRKS), e.insertionMode = O.BEFORE_HTML, e._processToken(t);
|
19179
19181
|
}
|
19180
19182
|
function _b(e, t) {
|
19181
19183
|
t.tagID === o.HTML ? (e._insertElement(t, G.HTML), e.insertionMode = O.BEFORE_HEAD) : nr(e, t);
|
@@ -19208,7 +19210,7 @@ function xb(e, t) {
|
|
19208
19210
|
function rr(e, t) {
|
19209
19211
|
e._insertFakeElement(R.HEAD, o.HEAD), e.headElement = e.openElements.current, e.insertionMode = O.IN_HEAD, e._processToken(t);
|
19210
19212
|
}
|
19211
|
-
function
|
19213
|
+
function xt(e, t) {
|
19212
19214
|
switch (t.tagID) {
|
19213
19215
|
case o.HTML: {
|
19214
19216
|
Xe(e, t);
|
@@ -19290,7 +19292,7 @@ function Ob(e, t) {
|
|
19290
19292
|
case o.META:
|
19291
19293
|
case o.NOFRAMES:
|
19292
19294
|
case o.STYLE: {
|
19293
|
-
|
19295
|
+
xt(e, t);
|
19294
19296
|
break;
|
19295
19297
|
}
|
19296
19298
|
case o.NOSCRIPT: {
|
@@ -19343,7 +19345,7 @@ function kb(e, t) {
|
|
19343
19345
|
case o.STYLE:
|
19344
19346
|
case o.TEMPLATE:
|
19345
19347
|
case o.TITLE: {
|
19346
|
-
e._err(t, U.abandonedHeadElementChild), e.openElements.push(e.headElement, o.HEAD),
|
19348
|
+
e._err(t, U.abandonedHeadElementChild), e.openElements.push(e.headElement, o.HEAD), xt(e, t), e.openElements.remove(e.headElement);
|
19347
19349
|
break;
|
19348
19350
|
}
|
19349
19351
|
case o.HEAD: {
|
@@ -19465,7 +19467,7 @@ function Yb(e, t) {
|
|
19465
19467
|
e._reconstructActiveFormattingElements(), e._insertElement(t, G.HTML), e.activeFormattingElements.insertMarker(), e.framesetOk = !1;
|
19466
19468
|
}
|
19467
19469
|
function Vb(e, t) {
|
19468
|
-
e.treeAdapter.getDocumentMode(e.document) !==
|
19470
|
+
e.treeAdapter.getDocumentMode(e.document) !== Et.QUIRKS && e.openElements.hasInButtonScope(o.P) && e._closePElement(), e._insertElement(t, G.HTML), e.framesetOk = !1, e.insertionMode = O.IN_TABLE;
|
19469
19471
|
}
|
19470
19472
|
function Dc(e, t) {
|
19471
19473
|
e._reconstructActiveFormattingElements(), e._appendElement(t, G.HTML), e.framesetOk = !1, t.ackSelfClosing = !0;
|
@@ -19632,7 +19634,7 @@ function Xe(e, t) {
|
|
19632
19634
|
case o.BGSOUND:
|
19633
19635
|
case o.BASEFONT:
|
19634
19636
|
case o.TEMPLATE: {
|
19635
|
-
|
19637
|
+
xt(e, t);
|
19636
19638
|
break;
|
19637
19639
|
}
|
19638
19640
|
case o.BODY: {
|
@@ -19939,7 +19941,7 @@ function vn(e, t) {
|
|
19939
19941
|
case o.STYLE:
|
19940
19942
|
case o.SCRIPT:
|
19941
19943
|
case o.TEMPLATE: {
|
19942
|
-
|
19944
|
+
xt(e, t);
|
19943
19945
|
break;
|
19944
19946
|
}
|
19945
19947
|
case o.COL: {
|
@@ -20061,7 +20063,7 @@ function Ki(e, t) {
|
|
20061
20063
|
break;
|
20062
20064
|
}
|
20063
20065
|
case o.TEMPLATE: {
|
20064
|
-
|
20066
|
+
xt(e, t);
|
20065
20067
|
break;
|
20066
20068
|
}
|
20067
20069
|
default:
|
@@ -20243,7 +20245,7 @@ function Hc(e, t) {
|
|
20243
20245
|
}
|
20244
20246
|
case o.SCRIPT:
|
20245
20247
|
case o.TEMPLATE: {
|
20246
|
-
|
20248
|
+
xt(e, t);
|
20247
20249
|
break;
|
20248
20250
|
}
|
20249
20251
|
}
|
@@ -20289,7 +20291,7 @@ function wE(e, t) {
|
|
20289
20291
|
case o.STYLE:
|
20290
20292
|
case o.TEMPLATE:
|
20291
20293
|
case o.TITLE: {
|
20292
|
-
|
20294
|
+
xt(e, t);
|
20293
20295
|
break;
|
20294
20296
|
}
|
20295
20297
|
// Re-process the token in the appropriate mode
|
@@ -20356,7 +20358,7 @@ function PE(e, t) {
|
|
20356
20358
|
break;
|
20357
20359
|
}
|
20358
20360
|
case o.NOFRAMES: {
|
20359
|
-
|
20361
|
+
xt(e, t);
|
20360
20362
|
break;
|
20361
20363
|
}
|
20362
20364
|
}
|
@@ -20371,7 +20373,7 @@ function FE(e, t) {
|
|
20371
20373
|
break;
|
20372
20374
|
}
|
20373
20375
|
case o.NOFRAMES: {
|
20374
|
-
|
20376
|
+
xt(e, t);
|
20375
20377
|
break;
|
20376
20378
|
}
|
20377
20379
|
}
|
@@ -20392,7 +20394,7 @@ function UE(e, t) {
|
|
20392
20394
|
break;
|
20393
20395
|
}
|
20394
20396
|
case o.NOFRAMES: {
|
20395
|
-
|
20397
|
+
xt(e, t);
|
20396
20398
|
break;
|
20397
20399
|
}
|
20398
20400
|
}
|
@@ -20553,7 +20555,7 @@ function ZE(e, t, n, r) {
|
|
20553
20555
|
}
|
20554
20556
|
return p;
|
20555
20557
|
function p() {
|
20556
|
-
let h = $c,
|
20558
|
+
let h = $c, T, m, C;
|
20557
20559
|
if ((!t || i(l, c, d[d.length - 1] || void 0)) && (h = JE(n(l, d)), h[0] === ns))
|
20558
20560
|
return h;
|
20559
20561
|
if ("children" in l && l.children) {
|
@@ -20564,9 +20566,9 @@ function ZE(e, t, n, r) {
|
|
20564
20566
|
if (E.children && h[0] !== KE)
|
20565
20567
|
for (m = (r ? E.children.length : -1) + u, C = d.concat(E); m > -1 && m < E.children.length; ) {
|
20566
20568
|
const P = E.children[m];
|
20567
|
-
if (
|
20568
|
-
return
|
20569
|
-
m = typeof
|
20569
|
+
if (T = s(P, m, C)(), T[0] === ns)
|
20570
|
+
return T;
|
20571
|
+
m = typeof T[1] == "number" ? T[1] : m + u;
|
20570
20572
|
}
|
20571
20573
|
}
|
20572
20574
|
return h;
|
@@ -20797,7 +20799,7 @@ function gT() {
|
|
20797
20799
|
(function(n, r) {
|
20798
20800
|
e.exports = r();
|
20799
20801
|
})(mT, function() {
|
20800
|
-
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",
|
20802
|
+
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", T = "date", m = "Invalid Date", C = /^(\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(v) {
|
20801
20803
|
var w = ["th", "st", "nd", "rd"], H = v % 100;
|
20802
20804
|
return "[" + v + (w[(H - 20) % 10] || w[H] || w[0]) + "]";
|
20803
20805
|
} }, F = function(v, w, H) {
|
@@ -20813,11 +20815,11 @@ function gT() {
|
|
20813
20815
|
}, a: function(v) {
|
20814
20816
|
return v < 0 ? Math.ceil(v) || 0 : Math.floor(v);
|
20815
20817
|
}, p: function(v) {
|
20816
|
-
return { M: f, y: h, w: d, d: c, D:
|
20818
|
+
return { M: f, y: h, w: d, d: c, D: T, h: l, m: s, s: u, ms: i, Q: p }[v] || String(v || "").toLowerCase().replace(/s$/, "");
|
20817
20819
|
}, u: function(v) {
|
20818
20820
|
return v === void 0;
|
20819
|
-
} }, L = "en",
|
20820
|
-
|
20821
|
+
} }, L = "en", y = {};
|
20822
|
+
y[L] = P;
|
20821
20823
|
var k = "$isDayjsObject", $ = function(v) {
|
20822
20824
|
return v instanceof V || !(!v || !v[k]);
|
20823
20825
|
}, M = function v(w, H, W) {
|
@@ -20825,12 +20827,12 @@ function gT() {
|
|
20825
20827
|
if (!w) return L;
|
20826
20828
|
if (typeof w == "string") {
|
20827
20829
|
var z = w.toLowerCase();
|
20828
|
-
|
20830
|
+
y[z] && (j = z), H && (y[z] = H, j = z);
|
20829
20831
|
var g = w.split("-");
|
20830
20832
|
if (!j && g.length > 1) return v(g[0]);
|
20831
20833
|
} else {
|
20832
20834
|
var ne = w.name;
|
20833
|
-
|
20835
|
+
y[ne] = w, j = ne;
|
20834
20836
|
}
|
20835
20837
|
return !W && j && (L = j), j || !W && L;
|
20836
20838
|
}, K = function(v, w) {
|
@@ -20897,7 +20899,7 @@ function gT() {
|
|
20897
20899
|
var xe = this.$locale().weekStart || 0, Se = (I < xe ? I + 7 : I) - xe;
|
20898
20900
|
return ne(z ? Te - Se : Te + (6 - Se), oe);
|
20899
20901
|
case c:
|
20900
|
-
case
|
20902
|
+
case T:
|
20901
20903
|
return ue(me + "Hours", 0);
|
20902
20904
|
case l:
|
20903
20905
|
return ue(me + "Minutes", 1);
|
@@ -20911,10 +20913,10 @@ function gT() {
|
|
20911
20913
|
}, w.endOf = function(H) {
|
20912
20914
|
return this.startOf(H, !1);
|
20913
20915
|
}, w.$set = function(H, W) {
|
20914
|
-
var j, z = q.p(H), g = "set" + (this.$u ? "UTC" : ""), ne = (j = {}, j[c] = g + "Date", j[
|
20916
|
+
var j, z = q.p(H), g = "set" + (this.$u ? "UTC" : ""), ne = (j = {}, j[c] = g + "Date", j[T] = g + "Date", j[f] = g + "Month", j[h] = g + "FullYear", j[l] = g + "Hours", j[s] = g + "Minutes", j[u] = g + "Seconds", j[i] = g + "Milliseconds", j)[z], ue = z === c ? this.$D + (W - this.$W) : W;
|
20915
20917
|
if (z === f || z === h) {
|
20916
|
-
var I = this.clone().set(
|
20917
|
-
I.$d[ne](ue), I.init(), this.$d = I.set(
|
20918
|
+
var I = this.clone().set(T, 1);
|
20919
|
+
I.$d[ne](ue), I.init(), this.$d = I.set(T, Math.min(this.$D, I.daysInMonth())).$d;
|
20918
20920
|
} else ne && this.$d[ne](ue);
|
20919
20921
|
return this.init(), this;
|
20920
20922
|
}, w.set = function(H, W) {
|
@@ -20939,17 +20941,17 @@ function gT() {
|
|
20939
20941
|
}, w.format = function(H) {
|
20940
20942
|
var W = this, j = this.$locale();
|
20941
20943
|
if (!this.isValid()) return j.invalidDate || m;
|
20942
|
-
var z = H || "YYYY-MM-DDTHH:mm:ssZ", g = q.z(this), ne = this.$H, ue = this.$m, I = this.$M, oe = j.weekdays, Te = j.months, me = j.meridiem, xe = function(Oe, We,
|
20943
|
-
return Oe && (Oe[We] || Oe(W, z)) ||
|
20944
|
+
var z = H || "YYYY-MM-DDTHH:mm:ssZ", g = q.z(this), ne = this.$H, ue = this.$m, I = this.$M, oe = j.weekdays, Te = j.months, me = j.meridiem, xe = function(Oe, We, it, St) {
|
20945
|
+
return Oe && (Oe[We] || Oe(W, z)) || it[We].slice(0, St);
|
20944
20946
|
}, Se = function(Oe) {
|
20945
20947
|
return q.s(ne % 12 || 12, Oe, "0");
|
20946
|
-
}, Fe = me || function(Oe, We,
|
20947
|
-
var
|
20948
|
-
return
|
20948
|
+
}, Fe = me || function(Oe, We, it) {
|
20949
|
+
var St = Oe < 12 ? "AM" : "PM";
|
20950
|
+
return it ? St.toLowerCase() : St;
|
20949
20951
|
};
|
20950
20952
|
return z.replace(E, function(Oe, We) {
|
20951
|
-
return We || function(
|
20952
|
-
switch (
|
20953
|
+
return We || function(it) {
|
20954
|
+
switch (it) {
|
20953
20955
|
case "YY":
|
20954
20956
|
return String(W.$y).slice(-2);
|
20955
20957
|
case "YYYY":
|
@@ -21040,7 +21042,7 @@ function gT() {
|
|
21040
21042
|
}, w.daysInMonth = function() {
|
21041
21043
|
return this.endOf(f).$D;
|
21042
21044
|
}, w.$locale = function() {
|
21043
|
-
return
|
21045
|
+
return y[this.$L];
|
21044
21046
|
}, w.locale = function(H, W) {
|
21045
21047
|
if (!H) return this.$L;
|
21046
21048
|
var j = this.clone(), z = M(H, W, !0);
|
@@ -21057,7 +21059,7 @@ function gT() {
|
|
21057
21059
|
return this.$d.toUTCString();
|
21058
21060
|
}, v;
|
21059
21061
|
}(), D = V.prototype;
|
21060
|
-
return K.prototype = D, [["$ms", i], ["$s", u], ["$m", s], ["$H", l], ["$W", c], ["$M", f], ["$y", h], ["$D",
|
21062
|
+
return K.prototype = D, [["$ms", i], ["$s", u], ["$m", s], ["$H", l], ["$W", c], ["$M", f], ["$y", h], ["$D", T]].forEach(function(v) {
|
21061
21063
|
D[v[1]] = function(w) {
|
21062
21064
|
return this.$g(w, v[0], v[1]);
|
21063
21065
|
};
|
@@ -21065,12 +21067,12 @@ function gT() {
|
|
21065
21067
|
return v.$i || (v(w, V, K), v.$i = !0), K;
|
21066
21068
|
}, K.locale = M, K.isDayjs = $, K.unix = function(v) {
|
21067
21069
|
return K(1e3 * v);
|
21068
|
-
}, K.en =
|
21070
|
+
}, K.en = y[L], K.Ls = y, K.p = {}, K;
|
21069
21071
|
});
|
21070
21072
|
}(Mr)), Mr.exports;
|
21071
21073
|
}
|
21072
21074
|
var bT = gT();
|
21073
|
-
const ET = /* @__PURE__ */
|
21075
|
+
const ET = /* @__PURE__ */ Rt(bT), TT = (e) => {
|
21074
21076
|
Array.from(e.entries()).forEach((n) => {
|
21075
21077
|
const r = n[0], a = n[1];
|
21076
21078
|
r.toLocaleLowerCase().startsWith("utm_") && e.delete(r, a);
|
@@ -21102,7 +21104,7 @@ function Zc({ message: e, id: t, onFeedbackThumbSelection: n }) {
|
|
21102
21104
|
onClick: () => n(t, "UP"),
|
21103
21105
|
"aria-label": "I like this response",
|
21104
21106
|
children: /* @__PURE__ */ x.jsx(
|
21105
|
-
|
21107
|
+
wt,
|
21106
21108
|
{
|
21107
21109
|
className: "xpert-chatbot-popup__feedback--btn-up-icon",
|
21108
21110
|
icon: e.feedbackThumbType === "UP" ? "material-symbols:thumb-up" : "material-symbols:thumb-up-outline"
|
@@ -21119,7 +21121,7 @@ function Zc({ message: e, id: t, onFeedbackThumbSelection: n }) {
|
|
21119
21121
|
onClick: () => n(t, "DOWN"),
|
21120
21122
|
"aria-label": "I do not like this response",
|
21121
21123
|
children: /* @__PURE__ */ x.jsx(
|
21122
|
-
|
21124
|
+
wt,
|
21123
21125
|
{
|
21124
21126
|
className: "xpert-chatbot-popup__feedback--btn-down-icon",
|
21125
21127
|
icon: e.feedbackThumbType === "DOWN" ? "material-symbols:thumb-down" : "material-symbols:thumb-down-outline"
|
@@ -21146,42 +21148,42 @@ function Zi({
|
|
21146
21148
|
userTrackingName: s = "clicked"
|
21147
21149
|
}) {
|
21148
21150
|
var E, P, F, Q;
|
21149
|
-
const [l, c] = de(!0), { primaryColor: d, id: f, userTracking: p, conversationScreen: h } = se(He),
|
21151
|
+
const [l, c] = de(!0), { primaryColor: d, id: f, userTracking: p, conversationScreen: h } = se(He), T = Tt(
|
21150
21152
|
(L) => {
|
21151
|
-
var
|
21152
|
-
((
|
21153
|
+
var y, k, $, M;
|
21154
|
+
((y = L == null ? void 0 : L.data) == null ? void 0 : y.who) === "customer" && (!(window != null && window.OnetrustActiveGroups) || (k = window == null ? void 0 : window.OnetrustActiveGroups) != null && k.includes("C0003")) && pt.set(`${f}-live-chat-open`, 1, {
|
21153
21155
|
expires: 1,
|
21154
21156
|
path: "/"
|
21155
|
-
}), (($ = L == null ? void 0 : L.data) == null ? void 0 : $.type) === "connection" && ((M = L == null ? void 0 : L.data) == null ? void 0 : M.state) === "disconnected" &&
|
21157
|
+
}), (($ = L == null ? void 0 : L.data) == null ? void 0 : $.type) === "connection" && ((M = L == null ? void 0 : L.data) == null ? void 0 : M.state) === "disconnected" && pt.remove(`${f}-live-chat-open`);
|
21156
21158
|
},
|
21157
21159
|
[f]
|
21158
|
-
), m =
|
21160
|
+
), m = Tt(
|
21159
21161
|
(L) => {
|
21160
|
-
var
|
21161
|
-
((
|
21162
|
+
var y, k, $, M;
|
21163
|
+
((y = L == null ? void 0 : L.data) == null ? void 0 : y.type) === "unhide" && ((k = L == null ? void 0 : L.data) == null ? void 0 : k.reason) === "pop-out" && a(!0), (($ = L == null ? void 0 : L.data) == null ? void 0 : $.type) === "open" && ((M = L == null ? void 0 : L.data) == null ? void 0 : M.chatState) === !0 && a(!0);
|
21162
21164
|
},
|
21163
21165
|
[a]
|
21164
21166
|
);
|
21165
21167
|
Le(() => {
|
21166
21168
|
var k, $, M, K;
|
21167
|
-
let L,
|
21168
|
-
return (k = h == null ? void 0 : h.liveChat) != null && k.useOwnChat && (
|
21169
|
+
let L, y;
|
21170
|
+
return (k = h == null ? void 0 : h.liveChat) != null && k.useOwnChat && (y = setTimeout(() => {
|
21169
21171
|
c(!1);
|
21170
21172
|
}, 3e3)), ($ = h == null ? void 0 : h.liveChat) != null && $.enabled && !((M = h == null ? void 0 : h.liveChat) != null && M.useOwnChat) && (window.Five9ChatPlugin || (L = document.createElement("script"), L.type = "text/javascript", L.src = (K = h == null ? void 0 : h.liveChat) == null ? void 0 : K.sourceCode, L.async = !0, L.onload = () => {
|
21171
21173
|
var q;
|
21172
21174
|
window.Five9ChatPlugin((q = h == null ? void 0 : h.liveChat) == null ? void 0 : q.options);
|
21173
|
-
}, document.body.appendChild(L)), window.addEventListener("message",
|
21175
|
+
}, document.body.appendChild(L)), window.addEventListener("message", T), window.addEventListener("message", m), y = setTimeout(() => {
|
21174
21176
|
c(!1);
|
21175
21177
|
}, 3e3)), () => {
|
21176
21178
|
var q;
|
21177
|
-
(q = h == null ? void 0 : h.liveChat) != null && q.enabled && (window.removeEventListener("message",
|
21179
|
+
(q = h == null ? void 0 : h.liveChat) != null && q.enabled && (window.removeEventListener("message", T), window.removeEventListener("message", m), clearTimeout(y));
|
21178
21180
|
};
|
21179
21181
|
}, [
|
21180
21182
|
(E = h == null ? void 0 : h.liveChat) == null ? void 0 : E.enabled,
|
21181
21183
|
(P = h == null ? void 0 : h.liveChat) == null ? void 0 : P.options,
|
21182
21184
|
(F = h == null ? void 0 : h.liveChat) == null ? void 0 : F.sourceCode,
|
21183
21185
|
(Q = h == null ? void 0 : h.liveChat) == null ? void 0 : Q.useOwnChat,
|
21184
|
-
|
21186
|
+
T,
|
21185
21187
|
m
|
21186
21188
|
]);
|
21187
21189
|
const C = () => {
|
@@ -21241,7 +21243,7 @@ Zi.propTypes = {
|
|
21241
21243
|
userTrackingName: S.string
|
21242
21244
|
};
|
21243
21245
|
const Jc = ({ children: e, id: t, link: n }) => {
|
21244
|
-
const { contentRef: r } = se(Gt), [a, i] = de(!1), u =
|
21246
|
+
const { contentRef: r } = se(Gt), [a, i] = de(!1), u = nt(null), s = Tt(() => i(!0), []), l = Tt(() => i(!1), []), c = Tt(() => i(!0), []), d = Tt(() => i(!1), []), f = Tt(
|
21245
21247
|
(p) => {
|
21246
21248
|
p.key === "Enter" ? window.open(n, "_blank") : p.key === "Escape" && i(!1);
|
21247
21249
|
},
|
@@ -21250,10 +21252,10 @@ const Jc = ({ children: e, id: t, link: n }) => {
|
|
21250
21252
|
return y0(() => {
|
21251
21253
|
if (a && u.current && r.current) {
|
21252
21254
|
const p = u.current.getBoundingClientRect(), h = r.current.getBoundingClientRect();
|
21253
|
-
let
|
21254
|
-
p.right > h.right ? (
|
21255
|
+
let T = 0;
|
21256
|
+
p.right > h.right ? (T = h.right - p.right - 2, u.current.style.transform = `translateX(${T}px)`) : u.current.style.transform = "translateX(-50%)";
|
21255
21257
|
}
|
21256
|
-
}, [a, r]),
|
21258
|
+
}, [a, r]), yt.cloneElement(e, {
|
21257
21259
|
"aria-describedby": t,
|
21258
21260
|
onMouseEnter: s,
|
21259
21261
|
onMouseLeave: l,
|
@@ -21357,7 +21359,7 @@ _i.propTypes = {
|
|
21357
21359
|
size: S.number
|
21358
21360
|
};
|
21359
21361
|
const td = "data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAADIAAAAjCAYAAADWtVmPAAABYmlDQ1BJQ0MgUHJvZmlsZQAAKJFtkLFLw1AQxr9otaKFZnAQFcwgglBFYitOQttBBIfQqlS3NK2p0KaPJCIuTroXXBQHpa7OOrj0PxCxOBRxcnETxDrYEu8lalv1Pe7ux8fdcXxAl6gylvcBKBi2mViMSan1Dcn/jF76fQhgQNUsFlWUZWrBd+189XsIvN5N8V3X4l5t8vbltHESrI6MLbz/7e94/ZmspVFtUMxpzLQBIUys7NiM8z7xoElHER9x1j2+4Jz2uOL2rCTixFViUcupGeIn4lC6TdfbuJDf1r5u4NcHssZqkuowxSjWkIKMMCKUJSSRhYktyhb59P9c2J2LowiGXbdbRw42TUdJYcjTtIQlGNAwjRCxjBmKCPf7t48trVgG5t+A7lJLSx8DVwfAUK2ljZ8BQfLq8oappvrjrlD3WZuzsseBGNDz6DivE4D/EGiWHOej7DjNc9r/AFSMT3R0ZmRVFsmHAAAAVmVYSWZNTQAqAAAACAABh2kABAAAAAEAAAAaAAAAAAADkoYABwAAABIAAABEoAIABAAAAAEAAAAyoAMABAAAAAEAAAAjAAAAAEFTQ0lJAAAAU2NyZWVuc2hvdJnCQk8AAAHUaVRYdFhNTDpjb20uYWRvYmUueG1wAAAAAAA8eDp4bXBtZXRhIHhtbG5zOng9ImFkb2JlOm5zOm1ldGEvIiB4OnhtcHRrPSJYTVAgQ29yZSA2LjAuMCI+CiAgIDxyZGY6UkRGIHhtbG5zOnJkZj0iaHR0cDovL3d3dy53My5vcmcvMTk5OS8wMi8yMi1yZGYtc3ludGF4LW5zIyI+CiAgICAgIDxyZGY6RGVzY3JpcHRpb24gcmRmOmFib3V0PSIiCiAgICAgICAgICAgIHhtbG5zOmV4aWY9Imh0dHA6Ly9ucy5hZG9iZS5jb20vZXhpZi8xLjAvIj4KICAgICAgICAgPGV4aWY6UGl4ZWxZRGltZW5zaW9uPjM1PC9leGlmOlBpeGVsWURpbWVuc2lvbj4KICAgICAgICAgPGV4aWY6UGl4ZWxYRGltZW5zaW9uPjUwPC9leGlmOlBpeGVsWERpbWVuc2lvbj4KICAgICAgICAgPGV4aWY6VXNlckNvbW1lbnQ+U2NyZWVuc2hvdDwvZXhpZjpVc2VyQ29tbWVudD4KICAgICAgPC9yZGY6RGVzY3JpcHRpb24+CiAgIDwvcmRmOlJERj4KPC94OnhtcG1ldGE+Cm3gb4cAAAJlSURBVFgJ7VbNy3FBFD/39WYnOwnFxsKSUmx8lZWQUv4DVlZKEX+AnY2lUmwUK0nZCBvlo6yUKMpHYWNhYTXvnSmTW8/ieYZ5etO9de+cOTPnN+d3zpmZKyDxgQ94/nwAB0JBJvK/ZVLOiJwRThGQS4tTYJlh5Ywwh46ToZyR58A2Gg1IJpPgdDrB6/VCoVCA+Xz+PAVqtRpEo1EoFotUX61Wwe/3g91uJ/Z0gEXAP42vPOl0Gv90fvmWy2UK/ZgXi8WIbrPZUBu1Wo0CgQCdyyIAi9HDJpfLUWdSqRQaDoeoXq8jh8NB9NjB8/lMps9mM1SpVMgcrOh2u9T2fr8/IJnbl4hoNBriTCaTkThwPB6Rx+NB8XgcTadTMlYqlQjBfD6Pms0mslgslAgm3mq1JBg/7fxlKUdss16v4XQ6EXPRYQmMVquFXq8n0W23WxiNRmA0GsFgMMBisaDjWP/AosofCsxExuMxXUqv1xN5t9tBJBKheiyEw2EQS1Ciw8R1Oh0Eg0HS7vd7yThLh5mIyWSi6+FoYjJircNkMqF6LFitVkmfV4f5HrHZbNSndrtNZExuuVyS1+Vy0fHfEJiJKJVKCIVCxEdxA8NgMACFQgFmsxnwflitVr/hP12DubQwAr7kfD4fKSe3203q/Xa7wfV6pQs8lyBVchCYM4J9UalU0Ol0IJFIgHicwuFwICTEYxnECw76/T5ks1nitiAIX7ZE+YaPgM/rN+AQiMvlQjb84xR7F+53cN5K5DsL8przUmnxcooFVybCEjWeNnJGeEaXBVvOCEvUeNrIGeEZXRbsj8nIP5ledKsWuWWaAAAAAElFTkSuQmCC", nd = ({ src: e, alt: t, ...n }) => {
|
21360
|
-
const r =
|
21362
|
+
const r = nt(null), [a, i] = de(!1), [u, s] = de(!0);
|
21361
21363
|
return Le(() => {
|
21362
21364
|
const l = new IntersectionObserver(
|
21363
21365
|
([c]) => {
|
@@ -21407,27 +21409,27 @@ nd.propTypes = {
|
|
21407
21409
|
src: S.string.isRequired,
|
21408
21410
|
alt: S.string
|
21409
21411
|
};
|
21410
|
-
const kT =
|
21411
|
-
const
|
21412
|
+
const kT = 5e3, eu = ({ src: e, alt: t }) => {
|
21413
|
+
const n = typeof window < "u" && new URLSearchParams(window.location.search).get("autoPlayGif") === "true", [r, a] = de(!!n), i = td;
|
21412
21414
|
return Le(() => {
|
21413
|
-
let
|
21414
|
-
return n && (
|
21415
|
-
}, [n]), /* @__PURE__ */ x.jsxs(
|
21415
|
+
let u;
|
21416
|
+
return r && !n && (u = setTimeout(() => a(!1), kT)), () => clearTimeout(u);
|
21417
|
+
}, [r, n]), /* @__PURE__ */ x.jsxs(
|
21416
21418
|
"div",
|
21417
21419
|
{
|
21418
21420
|
role: "button",
|
21419
21421
|
tabIndex: 0,
|
21420
|
-
onClick: () =>
|
21421
|
-
onKeyDown: (
|
21422
|
-
(
|
21422
|
+
onClick: () => a(!r),
|
21423
|
+
onKeyDown: (u) => {
|
21424
|
+
(u.key === "Enter" || u.key === " ") && (u.preventDefault(), a((s) => !s));
|
21423
21425
|
},
|
21424
21426
|
style: { cursor: "pointer" },
|
21425
|
-
"aria-pressed":
|
21427
|
+
"aria-pressed": r,
|
21426
21428
|
children: [
|
21427
21429
|
/* @__PURE__ */ x.jsx(
|
21428
21430
|
"img",
|
21429
21431
|
{
|
21430
|
-
src:
|
21432
|
+
src: r ? e : i,
|
21431
21433
|
alt: t,
|
21432
21434
|
loading: "lazy",
|
21433
21435
|
style: {
|
@@ -21437,12 +21439,12 @@ const kT = 1e4, eu = ({ src: e, alt: t }) => {
|
|
21437
21439
|
borderRadius: "8px",
|
21438
21440
|
margin: "0.5rem 0"
|
21439
21441
|
},
|
21440
|
-
onError: (
|
21441
|
-
|
21442
|
+
onError: (u) => {
|
21443
|
+
u.target.onerror = null, u.target.src = i, u.target.alt = "Image placeholder";
|
21442
21444
|
}
|
21443
21445
|
}
|
21444
21446
|
),
|
21445
|
-
/* @__PURE__ */ x.jsx("div", { style: { fontSize: "0.8rem", color: "#666", textAlign: "center" }, children:
|
21447
|
+
/* @__PURE__ */ x.jsx("div", { style: { fontSize: "0.8rem", color: "#666", textAlign: "center" }, children: r ? "Click to pause" : "Click to play GIF" })
|
21446
21448
|
]
|
21447
21449
|
}
|
21448
21450
|
);
|
@@ -21477,7 +21479,7 @@ const NT = "Sure, I can get you to someone who can help.", DT = (e) => {
|
|
21477
21479
|
disableFeedback: f,
|
21478
21480
|
liveAgent: p,
|
21479
21481
|
role: h = "assistant",
|
21480
|
-
timestamp:
|
21482
|
+
timestamp: T,
|
21481
21483
|
toolCalls: m
|
21482
21484
|
} = n ?? {}, C = p || _T(m).includes("escalate_to_an_agent"), E = !C && !!d, P = or(
|
21483
21485
|
() => {
|
@@ -21520,11 +21522,11 @@ const NT = "Sure, I can get you to someone who can help.", DT = (e) => {
|
|
21520
21522
|
Hi,
|
21521
21523
|
{
|
21522
21524
|
components: {
|
21523
|
-
img: ({ src:
|
21524
|
-
a: (
|
21525
|
+
img: ({ src: y, alt: k }) => y.toLowerCase().endsWith(".gif") ? /* @__PURE__ */ x.jsx(eu, { src: y, alt: k }) : /* @__PURE__ */ x.jsx(C0, { fallback: /* @__PURE__ */ x.jsx("div", { children: "Loading image..." }), children: /* @__PURE__ */ x.jsx(nd, { src: y, alt: k }) }),
|
21526
|
+
a: (y) => /* @__PURE__ */ x.jsx(
|
21525
21527
|
"a",
|
21526
21528
|
{
|
21527
|
-
...
|
21529
|
+
...y,
|
21528
21530
|
role: "link",
|
21529
21531
|
tabIndex: 0,
|
21530
21532
|
onClick: i,
|
@@ -21533,14 +21535,14 @@ const NT = "Sure, I can get you to someone who can help.", DT = (e) => {
|
|
21533
21535
|
color: "-webkit-link",
|
21534
21536
|
textDecoration: "underline"
|
21535
21537
|
},
|
21536
|
-
children:
|
21538
|
+
children: y.children
|
21537
21539
|
}
|
21538
21540
|
),
|
21539
|
-
p: (
|
21540
|
-
"document-source": ({ children:
|
21541
|
+
p: (y) => /* @__PURE__ */ x.jsx("p", { ...y, style: P[h].bubbleStyle, children: y.children }),
|
21542
|
+
"document-source": ({ children: y, node: k }) => {
|
21541
21543
|
var M;
|
21542
21544
|
const $ = (M = k.properties) == null ? void 0 : M.dataIndex;
|
21543
|
-
return /* @__PURE__ */ x.jsx(Ji, { index: $, children:
|
21545
|
+
return /* @__PURE__ */ x.jsx(Ji, { index: $, children: y });
|
21544
21546
|
}
|
21545
21547
|
},
|
21546
21548
|
linkTarget: "_blank",
|
@@ -21608,7 +21610,7 @@ const NT = "Sure, I can get you to someone who can help.", DT = (e) => {
|
|
21608
21610
|
]
|
21609
21611
|
}
|
21610
21612
|
),
|
21611
|
-
|
21613
|
+
T && /* @__PURE__ */ x.jsx("div", { className: "xpert-chatbot-popup__bubble--timestamp", children: ET(T).format("hh:mm a") }),
|
21612
21614
|
!f && a && h === "assistant" ? /* @__PURE__ */ x.jsx(
|
21613
21615
|
Zc,
|
21614
21616
|
{
|
@@ -21640,7 +21642,7 @@ function tu({ message: e }) {
|
|
21640
21642
|
{
|
21641
21643
|
className: "notification-container__icon-container",
|
21642
21644
|
style: { color: r },
|
21643
|
-
children: /* @__PURE__ */ x.jsx(
|
21645
|
+
children: /* @__PURE__ */ x.jsx(wt, { icon: `material-symbols:${n}`, alt: "Notification icon" })
|
21644
21646
|
}
|
21645
21647
|
),
|
21646
21648
|
/* @__PURE__ */ x.jsx("p", { children: t })
|
@@ -21656,7 +21658,7 @@ tu.propTypes = {
|
|
21656
21658
|
};
|
21657
21659
|
tu.displayName = "NotificationMessage";
|
21658
21660
|
function rd({ disableScroll: e }) {
|
21659
|
-
const t =
|
21661
|
+
const t = nt(null);
|
21660
21662
|
return Le(() => {
|
21661
21663
|
var n;
|
21662
21664
|
e || (n = t.current) == null || n.scrollIntoView({
|
@@ -21683,7 +21685,7 @@ rd.propTypes = {
|
|
21683
21685
|
disableScroll: S.bool
|
21684
21686
|
};
|
21685
21687
|
const Ai = ({ content: e = "Please try again later." }) => {
|
21686
|
-
const t =
|
21688
|
+
const t = nt(null);
|
21687
21689
|
return Le(() => {
|
21688
21690
|
var n;
|
21689
21691
|
(n = t.current) == null || n.scrollIntoView({
|
@@ -21707,7 +21709,7 @@ const Ai = ({ content: e = "Please try again later." }) => {
|
|
21707
21709
|
ref: t,
|
21708
21710
|
children: [
|
21709
21711
|
/* @__PURE__ */ x.jsx(
|
21710
|
-
|
21712
|
+
wt,
|
21711
21713
|
{
|
21712
21714
|
icon: "material-symbols:thunderstorm",
|
21713
21715
|
style: {
|
@@ -21758,7 +21760,7 @@ const ia = ({
|
|
21758
21760
|
setLiveChatOpen: i = null,
|
21759
21761
|
submitEvent: u = null
|
21760
21762
|
}) => {
|
21761
|
-
const { disableScroll: s, hasError: l } = se(Ke), c =
|
21763
|
+
const { disableScroll: s, hasError: l } = se(Ke), c = nt(null);
|
21762
21764
|
return Le(() => {
|
21763
21765
|
var d;
|
21764
21766
|
(d = c.current) == null || d.scrollIntoView({
|
@@ -21812,13 +21814,13 @@ ia.displayName = "ConversationMessages";
|
|
21812
21814
|
const ad = () => {
|
21813
21815
|
var l, c, d;
|
21814
21816
|
const { conversationScreen: e, id: t } = se(He), n = `${t}-maintenance-banner`, [r, a] = de(
|
21815
|
-
|
21817
|
+
pt.get(n) === void 0
|
21816
21818
|
), i = /* @__PURE__ */ new Date(), u = new Date(
|
21817
21819
|
(l = e == null ? void 0 : e.maintenanceBanner) == null ? void 0 : l.endDateTime
|
21818
21820
|
);
|
21819
21821
|
if (!((c = e == null ? void 0 : e.maintenanceBanner) != null && c.enabled) || !((d = e == null ? void 0 : e.maintenanceBanner) != null && d.text) || i > u || !r) return null;
|
21820
21822
|
const s = () => {
|
21821
|
-
|
21823
|
+
pt.set(n, "1", { expires: 1 }), a(!1);
|
21822
21824
|
};
|
21823
21825
|
return /* @__PURE__ */ x.jsxs(
|
21824
21826
|
"div",
|
@@ -21830,7 +21832,7 @@ const ad = () => {
|
|
21830
21832
|
children: [
|
21831
21833
|
/* @__PURE__ */ x.jsxs("div", { className: "xpert-chatbot-popup__chatbot-maintenance-banner__header", children: [
|
21832
21834
|
/* @__PURE__ */ x.jsx(
|
21833
|
-
|
21835
|
+
wt,
|
21834
21836
|
{
|
21835
21837
|
icon: "material-symbols:warning",
|
21836
21838
|
style: { fontSize: "1.5rem" },
|
@@ -21845,7 +21847,7 @@ const ad = () => {
|
|
21845
21847
|
"aria-label": "Close maintenance banner",
|
21846
21848
|
onClick: s,
|
21847
21849
|
children: /* @__PURE__ */ x.jsx(
|
21848
|
-
|
21850
|
+
wt,
|
21849
21851
|
{
|
21850
21852
|
icon: "material-symbols:close",
|
21851
21853
|
alt: "Close Xpert dialog",
|
@@ -21905,8 +21907,8 @@ function id({
|
|
21905
21907
|
userInput: l = ""
|
21906
21908
|
}) {
|
21907
21909
|
var C, E;
|
21908
|
-
const { conversationScreen: c, disclaimer: d } = se(He), { deleteConversationModal: f, xpertMessages: p } = se(Gt), { loading: h, setMode:
|
21909
|
-
c.liveChat.useOwnChat ?
|
21910
|
+
const { conversationScreen: c, disclaimer: d } = se(He), { deleteConversationModal: f, xpertMessages: p } = se(Gt), { loading: h, setMode: T } = se(Ke), m = (P) => {
|
21911
|
+
c.liveChat.useOwnChat ? T(qt.LIVECHAT) : u(P);
|
21910
21912
|
};
|
21911
21913
|
return /* @__PURE__ */ x.jsxs(x.Fragment, { children: [
|
21912
21914
|
/* @__PURE__ */ x.jsxs(
|
@@ -21992,8 +21994,8 @@ id.propTypes = {
|
|
21992
21994
|
submitEvent: S.func,
|
21993
21995
|
userInput: S.string
|
21994
21996
|
};
|
21995
|
-
var Va = {},
|
21996
|
-
function
|
21997
|
+
var Va = {}, ct = {}, Wa = {}, us;
|
21998
|
+
function Pt() {
|
21997
21999
|
return us || (us = 1, function(e) {
|
21998
22000
|
Object.defineProperty(e, "__esModule", { value: !0 }), e.isEventSourceSupported = e.isReactNative = e.ReadyState = e.DEFAULT_HEARTBEAT = e.UNPARSABLE_JSON_OBJECT = e.DEFAULT_RECONNECT_INTERVAL_MS = e.DEFAULT_RECONNECT_LIMIT = e.SOCKET_IO_PING_CODE = e.SOCKET_IO_PATH = e.SOCKET_IO_PING_INTERVAL = e.DEFAULT_EVENT_SOURCE_OPTIONS = e.EMPTY_EVENT_HANDLERS = e.DEFAULT_OPTIONS = void 0;
|
21999
22001
|
var t = 1, n = 1e3 * t;
|
@@ -22033,11 +22035,11 @@ function ru() {
|
|
22033
22035
|
e.resetWebSockets = t;
|
22034
22036
|
}($a)), $a;
|
22035
22037
|
}
|
22036
|
-
var en = {},
|
22038
|
+
var en = {}, Ft = {}, ss;
|
22037
22039
|
function au() {
|
22038
|
-
if (ss) return
|
22039
|
-
ss = 1, Object.defineProperty(
|
22040
|
-
var e =
|
22040
|
+
if (ss) return Ft;
|
22041
|
+
ss = 1, Object.defineProperty(Ft, "__esModule", { value: !0 }), Ft.setUpSocketIOPing = Ft.appendQueryParams = Ft.parseSocketIOUrl = void 0;
|
22042
|
+
var e = Pt(), t = function(a) {
|
22041
22043
|
if (a) {
|
22042
22044
|
var i = /^https|wss/.test(a), u = a.replace(/^(https?|wss?)(:\/\/)?/, ""), s = u.replace(/\/$/, ""), l = i ? "wss" : "ws";
|
22043
22045
|
return "".concat(l, "://").concat(s).concat(e.SOCKET_IO_PATH);
|
@@ -22047,7 +22049,7 @@ function au() {
|
|
22047
22049
|
}
|
22048
22050
|
return a;
|
22049
22051
|
};
|
22050
|
-
|
22052
|
+
Ft.parseSocketIOUrl = t;
|
22051
22053
|
var n = function(a, i) {
|
22052
22054
|
i === void 0 && (i = {});
|
22053
22055
|
var u = /\?([\w]+=[\w]+)/, s = u.test(a), l = "".concat(Object.entries(i).reduce(function(c, d) {
|
@@ -22056,7 +22058,7 @@ function au() {
|
|
22056
22058
|
}, "").slice(0, -1));
|
22057
22059
|
return "".concat(a).concat(s ? "&" : "?").concat(l);
|
22058
22060
|
};
|
22059
|
-
|
22061
|
+
Ft.appendQueryParams = n;
|
22060
22062
|
var r = function(a, i) {
|
22061
22063
|
i === void 0 && (i = e.SOCKET_IO_PING_INTERVAL);
|
22062
22064
|
var u = function() {
|
@@ -22064,26 +22066,26 @@ function au() {
|
|
22064
22066
|
};
|
22065
22067
|
return window.setInterval(u, i);
|
22066
22068
|
};
|
22067
|
-
return
|
22069
|
+
return Ft.setUpSocketIOPing = r, Ft;
|
22068
22070
|
}
|
22069
22071
|
var kr = {}, ls;
|
22070
22072
|
function ud() {
|
22071
22073
|
if (ls) return kr;
|
22072
22074
|
ls = 1, Object.defineProperty(kr, "__esModule", { value: !0 }), kr.heartbeat = n;
|
22073
|
-
var e =
|
22075
|
+
var e = Pt();
|
22074
22076
|
function t(r) {
|
22075
22077
|
return Array.isArray(r) ? r.reduce(function(a, i) {
|
22076
22078
|
return a.current > i.current ? a : i;
|
22077
22079
|
}).current : r.current;
|
22078
22080
|
}
|
22079
22081
|
function n(r, a, i) {
|
22080
|
-
var u = i || {}, s = u.interval, l = s === void 0 ? e.DEFAULT_HEARTBEAT.interval : s, c = u.timeout, d = c === void 0 ? e.DEFAULT_HEARTBEAT.timeout : c, f = u.message, p = f === void 0 ? e.DEFAULT_HEARTBEAT.message : f, h = Math.max(100, l / 10),
|
22082
|
+
var u = i || {}, s = u.interval, l = s === void 0 ? e.DEFAULT_HEARTBEAT.interval : s, c = u.timeout, d = c === void 0 ? e.DEFAULT_HEARTBEAT.timeout : c, f = u.message, p = f === void 0 ? e.DEFAULT_HEARTBEAT.message : f, h = Math.max(100, l / 10), T = Date.now(), m = setInterval(function() {
|
22081
22083
|
var C = Date.now(), E = t(a);
|
22082
22084
|
if (E + d <= C)
|
22083
|
-
console.warn("Heartbeat timed out, closing connection, last message received ".concat(C - E, "ms ago, last ping sent ").concat(C -
|
22084
|
-
else if (E + l <= C &&
|
22085
|
+
console.warn("Heartbeat timed out, closing connection, last message received ".concat(C - E, "ms ago, last ping sent ").concat(C - T, "ms ago")), r.close();
|
22086
|
+
else if (E + l <= C && T + l <= C)
|
22085
22087
|
try {
|
22086
|
-
typeof p == "function" ? r.send(p()) : r.send(p),
|
22088
|
+
typeof p == "function" ? r.send(p()) : r.send(p), T = C;
|
22087
22089
|
} catch (P) {
|
22088
22090
|
console.error("Heartbeat failed, closing connection", P instanceof Error ? P.message : P), r.close();
|
22089
22091
|
}
|
@@ -22148,25 +22150,25 @@ function wT() {
|
|
22148
22150
|
return e = Object.assign || function(d) {
|
22149
22151
|
for (var f, p = 1, h = arguments.length; p < h; p++) {
|
22150
22152
|
f = arguments[p];
|
22151
|
-
for (var
|
22153
|
+
for (var T in f) Object.prototype.hasOwnProperty.call(f, T) && (d[T] = f[T]);
|
22152
22154
|
}
|
22153
22155
|
return d;
|
22154
22156
|
}, e.apply(this, arguments);
|
22155
22157
|
};
|
22156
22158
|
Object.defineProperty(en, "__esModule", { value: !0 }), en.attachListeners = void 0;
|
22157
|
-
var t = au(), n = ud(), r =
|
22158
|
-
d.onmessage = function(
|
22159
|
+
var t = au(), n = ud(), r = Pt(), a = uu(), i = function(d, f, p, h) {
|
22160
|
+
d.onmessage = function(T) {
|
22159
22161
|
var m;
|
22160
|
-
f.current.onMessage && f.current.onMessage(
|
22162
|
+
f.current.onMessage && f.current.onMessage(T), typeof (h == null ? void 0 : h.current) == "number" && (h.current = Date.now()), !(typeof f.current.filter == "function" && f.current.filter(T) !== !0) && (f.current.heartbeat && typeof f.current.heartbeat != "boolean" && ((m = f.current.heartbeat) === null || m === void 0 ? void 0 : m.returnMessage) === T.data || p(T));
|
22161
22163
|
};
|
22162
|
-
}, u = function(d, f, p, h,
|
22164
|
+
}, u = function(d, f, p, h, T) {
|
22163
22165
|
d.onopen = function(m) {
|
22164
22166
|
if (f.current.onOpen && f.current.onOpen(m), h.current = 0, p(r.ReadyState.OPEN), f.current.heartbeat && d instanceof WebSocket) {
|
22165
22167
|
var C = typeof f.current.heartbeat == "boolean" ? void 0 : f.current.heartbeat;
|
22166
|
-
|
22168
|
+
T.current = Date.now(), (0, n.heartbeat)(d, T, C);
|
22167
22169
|
}
|
22168
22170
|
};
|
22169
|
-
}, s = function(d, f, p, h,
|
22171
|
+
}, s = function(d, f, p, h, T) {
|
22170
22172
|
if (r.isEventSourceSupported && d instanceof EventSource)
|
22171
22173
|
return function() {
|
22172
22174
|
};
|
@@ -22176,10 +22178,10 @@ function wT() {
|
|
22176
22178
|
var E;
|
22177
22179
|
if (f.current.onClose && f.current.onClose(C), p(r.ReadyState.CLOSED), f.current.shouldReconnect && f.current.shouldReconnect(C)) {
|
22178
22180
|
var P = (E = f.current.reconnectAttempts) !== null && E !== void 0 ? E : r.DEFAULT_RECONNECT_LIMIT;
|
22179
|
-
if (
|
22180
|
-
var F = typeof f.current.reconnectInterval == "function" ? f.current.reconnectInterval(
|
22181
|
+
if (T.current < P) {
|
22182
|
+
var F = typeof f.current.reconnectInterval == "function" ? f.current.reconnectInterval(T.current) : f.current.reconnectInterval;
|
22181
22183
|
m = window.setTimeout(function() {
|
22182
|
-
|
22184
|
+
T.current++, h();
|
22183
22185
|
}, F ?? r.DEFAULT_RECONNECT_INTERVAL_MS);
|
22184
22186
|
} else
|
22185
22187
|
f.current.onReconnectStop && f.current.onReconnectStop(P), console.warn("Max reconnect attempts of ".concat(P, " exceeded"));
|
@@ -22187,24 +22189,24 @@ function wT() {
|
|
22187
22189
|
}, function() {
|
22188
22190
|
return m && window.clearTimeout(m);
|
22189
22191
|
};
|
22190
|
-
}, l = function(d, f, p, h,
|
22192
|
+
}, l = function(d, f, p, h, T) {
|
22191
22193
|
var m;
|
22192
22194
|
return d.onerror = function(C) {
|
22193
22195
|
var E;
|
22194
22196
|
if (f.current.onError && f.current.onError(C), r.isEventSourceSupported && d instanceof EventSource && (f.current.onClose && f.current.onClose(e(e({}, C), { code: 1006, reason: "An error occurred with the EventSource: ".concat(C), wasClean: !1 })), p(r.ReadyState.CLOSED), d.close()), f.current.retryOnError)
|
22195
|
-
if (
|
22196
|
-
var P = typeof f.current.reconnectInterval == "function" ? f.current.reconnectInterval(
|
22197
|
+
if (T.current < ((E = f.current.reconnectAttempts) !== null && E !== void 0 ? E : r.DEFAULT_RECONNECT_LIMIT)) {
|
22198
|
+
var P = typeof f.current.reconnectInterval == "function" ? f.current.reconnectInterval(T.current) : f.current.reconnectInterval;
|
22197
22199
|
m = window.setTimeout(function() {
|
22198
|
-
|
22200
|
+
T.current++, h();
|
22199
22201
|
}, P ?? r.DEFAULT_RECONNECT_INTERVAL_MS);
|
22200
22202
|
} else
|
22201
22203
|
f.current.onReconnectStop && f.current.onReconnectStop(f.current.reconnectAttempts), console.warn("Max reconnect attempts of ".concat(f.current.reconnectAttempts, " exceeded"));
|
22202
22204
|
}, function() {
|
22203
22205
|
return m && window.clearTimeout(m);
|
22204
22206
|
};
|
22205
|
-
}, c = function(d, f, p, h,
|
22207
|
+
}, c = function(d, f, p, h, T, m, C) {
|
22206
22208
|
var E = f.setLastMessage, P = f.setReadyState, F, Q, L;
|
22207
|
-
return p.current.fromSocketIO && (F = (0, t.setUpSocketIOPing)(C)), i(d, p, E, m), u(d, p, P,
|
22209
|
+
return p.current.fromSocketIO && (F = (0, t.setUpSocketIOPing)(C)), i(d, p, E, m), u(d, p, P, T, m), Q = s(d, p, P, h, T), L = l(d, p, P, h, T), function() {
|
22208
22210
|
P(r.ReadyState.CLOSING), Q(), L(), d.close(), F && clearInterval(F);
|
22209
22211
|
};
|
22210
22212
|
};
|
@@ -22216,7 +22218,7 @@ function LT() {
|
|
22216
22218
|
hs = 1;
|
22217
22219
|
var e = tn && tn.__assign || function() {
|
22218
22220
|
return e = Object.assign || function(f) {
|
22219
|
-
for (var p, h = 1,
|
22221
|
+
for (var p, h = 1, T = arguments.length; h < T; h++) {
|
22220
22222
|
p = arguments[h];
|
22221
22223
|
for (var m in p) Object.prototype.hasOwnProperty.call(p, m) && (f[m] = p[m]);
|
22222
22224
|
}
|
@@ -22224,49 +22226,49 @@ function LT() {
|
|
22224
22226
|
}, e.apply(this, arguments);
|
22225
22227
|
};
|
22226
22228
|
Object.defineProperty(tn, "__esModule", { value: !0 }), tn.attachSharedListeners = void 0;
|
22227
|
-
var t = ru(), n =
|
22228
|
-
f.onmessage = function(
|
22229
|
+
var t = ru(), n = Pt(), r = iu(), a = au(), i = ud(), u = function(f, p, h) {
|
22230
|
+
f.onmessage = function(T) {
|
22229
22231
|
(0, r.getSubscribers)(p).forEach(function(m) {
|
22230
22232
|
var C;
|
22231
|
-
m.optionsRef.current.onMessage && m.optionsRef.current.onMessage(
|
22233
|
+
m.optionsRef.current.onMessage && m.optionsRef.current.onMessage(T), typeof ((C = m == null ? void 0 : m.lastMessageTime) === null || C === void 0 ? void 0 : C.current) == "number" && (m.lastMessageTime.current = Date.now()), !(typeof m.optionsRef.current.filter == "function" && m.optionsRef.current.filter(T) !== !0) && (h && typeof h != "boolean" && (h == null ? void 0 : h.returnMessage) === T.data || m.setLastMessage(T));
|
22232
22234
|
});
|
22233
22235
|
};
|
22234
22236
|
}, s = function(f, p, h) {
|
22235
|
-
f.onopen = function(
|
22237
|
+
f.onopen = function(T) {
|
22236
22238
|
var m = (0, r.getSubscribers)(p);
|
22237
22239
|
m.forEach(function(C) {
|
22238
|
-
C.reconnectCount.current = 0, C.optionsRef.current.onOpen && C.optionsRef.current.onOpen(
|
22240
|
+
C.reconnectCount.current = 0, C.optionsRef.current.onOpen && C.optionsRef.current.onOpen(T), C.setReadyState(n.ReadyState.OPEN), h && f instanceof WebSocket && (C.lastMessageTime.current = Date.now());
|
22239
22241
|
}), h && f instanceof WebSocket && (0, i.heartbeat)(f, m.map(function(C) {
|
22240
22242
|
return C.lastMessageTime;
|
22241
22243
|
}), typeof h == "boolean" ? void 0 : h);
|
22242
22244
|
};
|
22243
22245
|
}, l = function(f, p) {
|
22244
22246
|
f instanceof WebSocket && (f.onclose = function(h) {
|
22245
|
-
(0, r.getSubscribers)(p).forEach(function(
|
22246
|
-
|
22247
|
-
}), delete t.sharedWebSockets[p], (0, r.getSubscribers)(p).forEach(function(
|
22247
|
+
(0, r.getSubscribers)(p).forEach(function(T) {
|
22248
|
+
T.optionsRef.current.onClose && T.optionsRef.current.onClose(h), T.setReadyState(n.ReadyState.CLOSED);
|
22249
|
+
}), delete t.sharedWebSockets[p], (0, r.getSubscribers)(p).forEach(function(T) {
|
22248
22250
|
var m;
|
22249
|
-
if (
|
22250
|
-
var C = (m =
|
22251
|
-
if (
|
22252
|
-
var E = typeof
|
22251
|
+
if (T.optionsRef.current.shouldReconnect && T.optionsRef.current.shouldReconnect(h)) {
|
22252
|
+
var C = (m = T.optionsRef.current.reconnectAttempts) !== null && m !== void 0 ? m : n.DEFAULT_RECONNECT_LIMIT;
|
22253
|
+
if (T.reconnectCount.current < C) {
|
22254
|
+
var E = typeof T.optionsRef.current.reconnectInterval == "function" ? T.optionsRef.current.reconnectInterval(T.reconnectCount.current) : T.optionsRef.current.reconnectInterval;
|
22253
22255
|
setTimeout(function() {
|
22254
|
-
|
22256
|
+
T.reconnectCount.current++, T.reconnect.current();
|
22255
22257
|
}, E ?? n.DEFAULT_RECONNECT_INTERVAL_MS);
|
22256
22258
|
} else
|
22257
|
-
|
22259
|
+
T.optionsRef.current.onReconnectStop && T.optionsRef.current.onReconnectStop(T.optionsRef.current.reconnectAttempts), console.warn("Max reconnect attempts of ".concat(C, " exceeded"));
|
22258
22260
|
}
|
22259
22261
|
});
|
22260
22262
|
});
|
22261
22263
|
}, c = function(f, p) {
|
22262
22264
|
f.onerror = function(h) {
|
22263
|
-
(0, r.getSubscribers)(p).forEach(function(
|
22264
|
-
|
22265
|
+
(0, r.getSubscribers)(p).forEach(function(T) {
|
22266
|
+
T.optionsRef.current.onError && T.optionsRef.current.onError(h), n.isEventSourceSupported && f instanceof EventSource && (T.optionsRef.current.onClose && T.optionsRef.current.onClose(e(e({}, h), { code: 1006, reason: "An error occurred with the EventSource: ".concat(h), wasClean: !1 })), T.setReadyState(n.ReadyState.CLOSED));
|
22265
22267
|
}), n.isEventSourceSupported && f instanceof EventSource && f.close();
|
22266
22268
|
};
|
22267
|
-
}, d = function(f, p, h,
|
22269
|
+
}, d = function(f, p, h, T) {
|
22268
22270
|
var m;
|
22269
|
-
return h.current.fromSocketIO && (m = (0, a.setUpSocketIOPing)(
|
22271
|
+
return h.current.fromSocketIO && (m = (0, a.setUpSocketIOPing)(T)), u(f, p, h.current.heartbeat), l(f, p), s(f, p, h.current.heartbeat), c(f, p), function() {
|
22270
22272
|
m && clearInterval(m);
|
22271
22273
|
};
|
22272
22274
|
};
|
@@ -22276,7 +22278,7 @@ var ps;
|
|
22276
22278
|
function RT() {
|
22277
22279
|
if (ps) return $n;
|
22278
22280
|
ps = 1, Object.defineProperty($n, "__esModule", { value: !0 }), $n.createOrJoinSocket = void 0;
|
22279
|
-
var e = ru(), t =
|
22281
|
+
var e = ru(), t = Pt(), n = wT(), r = LT(), a = iu(), i = function(s, l, c, d, f) {
|
22280
22282
|
return function() {
|
22281
22283
|
if ((0, a.removeSubscriber)(s, l), !(0, a.hasSubscribers)(s)) {
|
22282
22284
|
try {
|
@@ -22289,7 +22291,7 @@ function RT() {
|
|
22289
22291
|
f && f(), delete e.sharedWebSockets[s];
|
22290
22292
|
}
|
22291
22293
|
};
|
22292
|
-
}, u = function(s, l, c, d, f, p, h,
|
22294
|
+
}, u = function(s, l, c, d, f, p, h, T, m) {
|
22293
22295
|
if (!t.isEventSourceSupported && d.current.eventSourceOptions)
|
22294
22296
|
throw t.isReactNative ? new Error("EventSource is not supported in ReactNative") : new Error("EventSource is not supported");
|
22295
22297
|
if (d.current.share) {
|
@@ -22300,7 +22302,7 @@ function RT() {
|
|
22300
22302
|
setReadyState: c,
|
22301
22303
|
optionsRef: d,
|
22302
22304
|
reconnectCount: h,
|
22303
|
-
lastMessageTime:
|
22305
|
+
lastMessageTime: T,
|
22304
22306
|
reconnect: p
|
22305
22307
|
};
|
22306
22308
|
return (0, a.addSubscriber)(l, E), i(l, E, d, c, C);
|
@@ -22310,33 +22312,33 @@ function RT() {
|
|
22310
22312
|
return (0, n.attachListeners)(s.current, {
|
22311
22313
|
setLastMessage: f,
|
22312
22314
|
setReadyState: c
|
22313
|
-
}, d, p.current, h,
|
22315
|
+
}, d, p.current, h, T, m);
|
22314
22316
|
}
|
22315
22317
|
};
|
22316
22318
|
return $n.createOrJoinSocket = u, $n;
|
22317
22319
|
}
|
22318
|
-
var
|
22320
|
+
var Bt = {}, ms;
|
22319
22321
|
function PT() {
|
22320
22322
|
return ms || (ms = 1, function(e) {
|
22321
|
-
var t =
|
22323
|
+
var t = Bt && Bt.__awaiter || function(l, c, d, f) {
|
22322
22324
|
function p(h) {
|
22323
|
-
return h instanceof d ? h : new d(function(
|
22324
|
-
|
22325
|
+
return h instanceof d ? h : new d(function(T) {
|
22326
|
+
T(h);
|
22325
22327
|
});
|
22326
22328
|
}
|
22327
|
-
return new (d || (d = Promise))(function(h,
|
22329
|
+
return new (d || (d = Promise))(function(h, T) {
|
22328
22330
|
function m(P) {
|
22329
22331
|
try {
|
22330
22332
|
E(f.next(P));
|
22331
22333
|
} catch (F) {
|
22332
|
-
|
22334
|
+
T(F);
|
22333
22335
|
}
|
22334
22336
|
}
|
22335
22337
|
function C(P) {
|
22336
22338
|
try {
|
22337
22339
|
E(f.throw(P));
|
22338
22340
|
} catch (F) {
|
22339
|
-
|
22341
|
+
T(F);
|
22340
22342
|
}
|
22341
22343
|
}
|
22342
22344
|
function E(P) {
|
@@ -22344,14 +22346,14 @@ function PT() {
|
|
22344
22346
|
}
|
22345
22347
|
E((f = f.apply(l, c || [])).next());
|
22346
22348
|
});
|
22347
|
-
}, n =
|
22349
|
+
}, n = Bt && Bt.__generator || function(l, c) {
|
22348
22350
|
var d = { label: 0, sent: function() {
|
22349
22351
|
if (h[0] & 1) throw h[1];
|
22350
22352
|
return h[1];
|
22351
|
-
}, trys: [], ops: [] }, f, p, h,
|
22352
|
-
return
|
22353
|
+
}, trys: [], ops: [] }, f, p, h, T = Object.create((typeof Iterator == "function" ? Iterator : Object).prototype);
|
22354
|
+
return T.next = m(0), T.throw = m(1), T.return = m(2), typeof Symbol == "function" && (T[Symbol.iterator] = function() {
|
22353
22355
|
return this;
|
22354
|
-
}),
|
22356
|
+
}), T;
|
22355
22357
|
function m(E) {
|
22356
22358
|
return function(P) {
|
22357
22359
|
return C([E, P]);
|
@@ -22359,7 +22361,7 @@ function PT() {
|
|
22359
22361
|
}
|
22360
22362
|
function C(E) {
|
22361
22363
|
if (f) throw new TypeError("Generator is already executing.");
|
22362
|
-
for (;
|
22364
|
+
for (; T && (T = 0, E[0] && (d = 0)), d; ) try {
|
22363
22365
|
if (f = 1, p && (h = E[0] & 2 ? p.return : E[0] ? p.throw || ((h = p.return) && h.call(p), 0) : p.next) && !(h = h.call(p, E[1])).done) return h;
|
22364
22366
|
switch (p = 0, h && (E = [E[0] & 2, h.value]), E[0]) {
|
22365
22367
|
case 0:
|
@@ -22403,22 +22405,22 @@ function PT() {
|
|
22403
22405
|
if (E[0] & 5) throw E[1];
|
22404
22406
|
return { value: E[0] ? E[1] : void 0, done: !0 };
|
22405
22407
|
}
|
22406
|
-
}, r =
|
22408
|
+
}, r = Bt && Bt.__spreadArray || function(l, c, d) {
|
22407
22409
|
if (d || arguments.length === 2) for (var f = 0, p = c.length, h; f < p; f++)
|
22408
22410
|
(h || !(f in c)) && (h || (h = Array.prototype.slice.call(c, 0, f)), h[f] = c[f]);
|
22409
22411
|
return l.concat(h || Array.prototype.slice.call(c));
|
22410
22412
|
};
|
22411
22413
|
Object.defineProperty(e, "__esModule", { value: !0 }), e.getUrl = void 0;
|
22412
|
-
var a = au(), i =
|
22414
|
+
var a = au(), i = Pt(), u = function(l) {
|
22413
22415
|
return new Promise(function(c) {
|
22414
22416
|
return window.setTimeout(c, l);
|
22415
22417
|
});
|
22416
22418
|
}, s = function(l, c) {
|
22417
22419
|
for (var d = [], f = 2; f < arguments.length; f++)
|
22418
22420
|
d[f - 2] = arguments[f];
|
22419
|
-
return t(void 0, r([l, c], d, !0), void 0, function(p, h,
|
22420
|
-
var m, C, E, P, F, Q, L,
|
22421
|
-
return
|
22421
|
+
return t(void 0, r([l, c], d, !0), void 0, function(p, h, T) {
|
22422
|
+
var m, C, E, P, F, Q, L, y;
|
22423
|
+
return T === void 0 && (T = 0), n(this, function(k) {
|
22422
22424
|
switch (k.label) {
|
22423
22425
|
case 0:
|
22424
22426
|
if (typeof p != "function") return [3, 10];
|
@@ -22428,11 +22430,11 @@ function PT() {
|
|
22428
22430
|
case 2:
|
22429
22431
|
return m = k.sent(), [3, 9];
|
22430
22432
|
case 3:
|
22431
|
-
return k.sent(), h.current.retryOnError ? (C = (Q = h.current.reconnectAttempts) !== null && Q !== void 0 ? Q : i.DEFAULT_RECONNECT_LIMIT,
|
22433
|
+
return k.sent(), h.current.retryOnError ? (C = (Q = h.current.reconnectAttempts) !== null && Q !== void 0 ? Q : i.DEFAULT_RECONNECT_LIMIT, T < C ? (E = typeof h.current.reconnectInterval == "function" ? h.current.reconnectInterval(T) : h.current.reconnectInterval, [4, u(E ?? i.DEFAULT_RECONNECT_INTERVAL_MS)]) : [3, 5]) : [3, 7];
|
22432
22434
|
case 4:
|
22433
|
-
return k.sent(), [2, (0, e.getUrl)(p, h,
|
22435
|
+
return k.sent(), [2, (0, e.getUrl)(p, h, T + 1)];
|
22434
22436
|
case 5:
|
22435
|
-
return (
|
22437
|
+
return (y = (L = h.current).onReconnectStop) === null || y === void 0 || y.call(L, T), [2, null];
|
22436
22438
|
case 6:
|
22437
22439
|
return [3, 8];
|
22438
22440
|
case 7:
|
@@ -22450,7 +22452,7 @@ function PT() {
|
|
22450
22452
|
});
|
22451
22453
|
};
|
22452
22454
|
e.getUrl = s;
|
22453
|
-
}(
|
22455
|
+
}(Bt)), Bt;
|
22454
22456
|
}
|
22455
22457
|
var Qa = {}, gs;
|
22456
22458
|
function MT() {
|
@@ -22473,44 +22475,44 @@ function MT() {
|
|
22473
22475
|
}
|
22474
22476
|
var bs;
|
22475
22477
|
function ou() {
|
22476
|
-
if (bs) return
|
22478
|
+
if (bs) return ct;
|
22477
22479
|
bs = 1;
|
22478
|
-
var e =
|
22480
|
+
var e = ct && ct.__assign || function() {
|
22479
22481
|
return e = Object.assign || function(p) {
|
22480
|
-
for (var h,
|
22481
|
-
h = arguments[
|
22482
|
+
for (var h, T = 1, m = arguments.length; T < m; T++) {
|
22483
|
+
h = arguments[T];
|
22482
22484
|
for (var C in h) Object.prototype.hasOwnProperty.call(h, C) && (p[C] = h[C]);
|
22483
22485
|
}
|
22484
22486
|
return p;
|
22485
22487
|
}, e.apply(this, arguments);
|
22486
|
-
}, t =
|
22488
|
+
}, t = ct && ct.__awaiter || function(p, h, T, m) {
|
22487
22489
|
function C(E) {
|
22488
|
-
return E instanceof
|
22490
|
+
return E instanceof T ? E : new T(function(P) {
|
22489
22491
|
P(E);
|
22490
22492
|
});
|
22491
22493
|
}
|
22492
|
-
return new (
|
22493
|
-
function F(
|
22494
|
+
return new (T || (T = Promise))(function(E, P) {
|
22495
|
+
function F(y) {
|
22494
22496
|
try {
|
22495
|
-
L(m.next(
|
22497
|
+
L(m.next(y));
|
22496
22498
|
} catch (k) {
|
22497
22499
|
P(k);
|
22498
22500
|
}
|
22499
22501
|
}
|
22500
|
-
function Q(
|
22502
|
+
function Q(y) {
|
22501
22503
|
try {
|
22502
|
-
L(m.throw(
|
22504
|
+
L(m.throw(y));
|
22503
22505
|
} catch (k) {
|
22504
22506
|
P(k);
|
22505
22507
|
}
|
22506
22508
|
}
|
22507
|
-
function L(
|
22508
|
-
|
22509
|
+
function L(y) {
|
22510
|
+
y.done ? E(y.value) : C(y.value).then(F, Q);
|
22509
22511
|
}
|
22510
22512
|
L((m = m.apply(p, h || [])).next());
|
22511
22513
|
});
|
22512
|
-
}, n =
|
22513
|
-
var
|
22514
|
+
}, n = ct && ct.__generator || function(p, h) {
|
22515
|
+
var T = { label: 0, sent: function() {
|
22514
22516
|
if (E[0] & 1) throw E[1];
|
22515
22517
|
return E[1];
|
22516
22518
|
}, trys: [], ops: [] }, m, C, E, P = Object.create((typeof Iterator == "function" ? Iterator : Object).prototype);
|
@@ -22518,13 +22520,13 @@ function ou() {
|
|
22518
22520
|
return this;
|
22519
22521
|
}), P;
|
22520
22522
|
function F(L) {
|
22521
|
-
return function(
|
22522
|
-
return Q([L,
|
22523
|
+
return function(y) {
|
22524
|
+
return Q([L, y]);
|
22523
22525
|
};
|
22524
22526
|
}
|
22525
22527
|
function Q(L) {
|
22526
22528
|
if (m) throw new TypeError("Generator is already executing.");
|
22527
|
-
for (; P && (P = 0, L[0] && (
|
22529
|
+
for (; P && (P = 0, L[0] && (T = 0)), T; ) try {
|
22528
22530
|
if (m = 1, C && (E = L[0] & 2 ? C.return : L[0] ? C.throw || ((E = C.return) && E.call(C), 0) : C.next) && !(E = E.call(C, L[1])).done) return E;
|
22529
22531
|
switch (C = 0, E && (L = [L[0] & 2, E.value]), L[0]) {
|
22530
22532
|
case 0:
|
@@ -22532,48 +22534,48 @@ function ou() {
|
|
22532
22534
|
E = L;
|
22533
22535
|
break;
|
22534
22536
|
case 4:
|
22535
|
-
return
|
22537
|
+
return T.label++, { value: L[1], done: !1 };
|
22536
22538
|
case 5:
|
22537
|
-
|
22539
|
+
T.label++, C = L[1], L = [0];
|
22538
22540
|
continue;
|
22539
22541
|
case 7:
|
22540
|
-
L =
|
22542
|
+
L = T.ops.pop(), T.trys.pop();
|
22541
22543
|
continue;
|
22542
22544
|
default:
|
22543
|
-
if (E =
|
22544
|
-
|
22545
|
+
if (E = T.trys, !(E = E.length > 0 && E[E.length - 1]) && (L[0] === 6 || L[0] === 2)) {
|
22546
|
+
T = 0;
|
22545
22547
|
continue;
|
22546
22548
|
}
|
22547
22549
|
if (L[0] === 3 && (!E || L[1] > E[0] && L[1] < E[3])) {
|
22548
|
-
|
22550
|
+
T.label = L[1];
|
22549
22551
|
break;
|
22550
22552
|
}
|
22551
|
-
if (L[0] === 6 &&
|
22552
|
-
|
22553
|
+
if (L[0] === 6 && T.label < E[1]) {
|
22554
|
+
T.label = E[1], E = L;
|
22553
22555
|
break;
|
22554
22556
|
}
|
22555
|
-
if (E &&
|
22556
|
-
|
22557
|
+
if (E && T.label < E[2]) {
|
22558
|
+
T.label = E[2], T.ops.push(L);
|
22557
22559
|
break;
|
22558
22560
|
}
|
22559
|
-
E[2] &&
|
22561
|
+
E[2] && T.ops.pop(), T.trys.pop();
|
22560
22562
|
continue;
|
22561
22563
|
}
|
22562
|
-
L = h.call(p,
|
22563
|
-
} catch (
|
22564
|
-
L = [6,
|
22564
|
+
L = h.call(p, T);
|
22565
|
+
} catch (y) {
|
22566
|
+
L = [6, y], C = 0;
|
22565
22567
|
} finally {
|
22566
22568
|
m = E = 0;
|
22567
22569
|
}
|
22568
22570
|
if (L[0] & 5) throw L[1];
|
22569
22571
|
return { value: L[0] ? L[1] : void 0, done: !0 };
|
22570
22572
|
}
|
22571
|
-
}, r =
|
22573
|
+
}, r = ct && ct.__importDefault || function(p) {
|
22572
22574
|
return p && p.__esModule ? p : { default: p };
|
22573
22575
|
};
|
22574
|
-
Object.defineProperty(
|
22575
|
-
var a =
|
22576
|
-
h === void 0 && (h = u.DEFAULT_OPTIONS),
|
22576
|
+
Object.defineProperty(ct, "__esModule", { value: !0 }), ct.useWebSocket = void 0;
|
22577
|
+
var a = yt, i = A0, u = Pt(), s = RT(), l = PT(), c = r(MT()), d = uu(), f = function(p, h, T) {
|
22578
|
+
h === void 0 && (h = u.DEFAULT_OPTIONS), T === void 0 && (T = !0);
|
22577
22579
|
var m = (0, a.useState)(null), C = m[0], E = m[1], P = (0, a.useState)({}), F = P[0], Q = P[1], L = (0, a.useMemo)(function() {
|
22578
22580
|
if (!h.disableJson && C)
|
22579
22581
|
try {
|
@@ -22582,10 +22584,10 @@ function ou() {
|
|
22582
22584
|
return u.UNPARSABLE_JSON_OBJECT;
|
22583
22585
|
}
|
22584
22586
|
return null;
|
22585
|
-
}, [C, h.disableJson]),
|
22587
|
+
}, [C, h.disableJson]), y = (0, a.useRef)(null), k = (0, a.useRef)(null), $ = (0, a.useRef)(function() {
|
22586
22588
|
}), M = (0, a.useRef)(0), K = (0, a.useRef)(Date.now()), q = (0, a.useRef)([]), V = (0, a.useRef)(null), D = (0, a.useRef)(h);
|
22587
22589
|
D.current = h;
|
22588
|
-
var v =
|
22590
|
+
var v = y.current && F[y.current] !== void 0 ? F[y.current] : p !== null && T === !0 ? u.ReadyState.CONNECTING : u.ReadyState.UNINSTANTIATED, w = h.queryParams ? JSON.stringify(h.queryParams) : null, H = (0, a.useCallback)(function(z, g) {
|
22589
22591
|
var ne;
|
22590
22592
|
if (g === void 0 && (g = !0), u.isEventSourceSupported && k.current instanceof EventSource) {
|
22591
22593
|
console.warn("Unable to send a message from an eventSource");
|
@@ -22598,16 +22600,16 @@ function ou() {
|
|
22598
22600
|
return D.current.share !== !0 || u.isEventSourceSupported && k.current instanceof EventSource ? k.current : (V.current === null && k.current && ((0, d.assertIsWebSocket)(k.current, D.current.skipAssert), V.current = (0, c.default)(k.current, $)), V.current);
|
22599
22601
|
}, []);
|
22600
22602
|
return (0, a.useEffect)(function() {
|
22601
|
-
if (p !== null &&
|
22603
|
+
if (p !== null && T === !0) {
|
22602
22604
|
var z, g = !1, ne = !0, ue = function() {
|
22603
22605
|
return t(void 0, void 0, void 0, function() {
|
22604
22606
|
var I, oe, Te;
|
22605
22607
|
return n(this, function(me) {
|
22606
22608
|
switch (me.label) {
|
22607
22609
|
case 0:
|
22608
|
-
return I =
|
22610
|
+
return I = y, [4, (0, l.getUrl)(p, D)];
|
22609
22611
|
case 1:
|
22610
|
-
return I.current = me.sent(),
|
22612
|
+
return I.current = me.sent(), y.current === null ? (console.error("Failed to get a valid URL. WebSocket connection aborted."), y.current = "ABORTED", (0, i.flushSync)(function() {
|
22611
22613
|
return Q(function(xe) {
|
22612
22614
|
return e(e({}, xe), { ABORTED: u.ReadyState.CLOSED });
|
22613
22615
|
});
|
@@ -22622,10 +22624,10 @@ function ou() {
|
|
22622
22624
|
g || (0, i.flushSync)(function() {
|
22623
22625
|
return Q(function(Se) {
|
22624
22626
|
var Fe;
|
22625
|
-
return e(e({}, Se),
|
22627
|
+
return e(e({}, Se), y.current && (Fe = {}, Fe[y.current] = xe, Fe));
|
22626
22628
|
});
|
22627
22629
|
});
|
22628
|
-
}, ne && (z = (0, s.createOrJoinSocket)(k,
|
22630
|
+
}, ne && (z = (0, s.createOrJoinSocket)(k, y.current, Te, D, oe, $, M, K, H)), [
|
22629
22631
|
2
|
22630
22632
|
/*return*/
|
22631
22633
|
]);
|
@@ -22638,11 +22640,11 @@ function ou() {
|
|
22638
22640
|
}, ue(), function() {
|
22639
22641
|
g = !0, ne = !1, V.current && (V.current = null), z == null || z(), E(null);
|
22640
22642
|
};
|
22641
|
-
} else (p === null ||
|
22643
|
+
} else (p === null || T === !1) && (M.current = 0, Q(function(I) {
|
22642
22644
|
var oe;
|
22643
|
-
return e(e({}, I),
|
22645
|
+
return e(e({}, I), y.current && (oe = {}, oe[y.current] = u.ReadyState.CLOSED, oe));
|
22644
22646
|
}));
|
22645
|
-
}, [p,
|
22647
|
+
}, [p, T, w, H]), (0, a.useEffect)(function() {
|
22646
22648
|
v === u.ReadyState.OPEN && q.current.splice(0).forEach(function(z) {
|
22647
22649
|
H(z);
|
22648
22650
|
});
|
@@ -22655,7 +22657,7 @@ function ou() {
|
|
22655
22657
|
getWebSocket: j
|
22656
22658
|
};
|
22657
22659
|
};
|
22658
|
-
return
|
22660
|
+
return ct.useWebSocket = f, ct;
|
22659
22661
|
}
|
22660
22662
|
var nn = {}, Es;
|
22661
22663
|
function FT() {
|
@@ -22671,7 +22673,7 @@ function FT() {
|
|
22671
22673
|
}, e.apply(this, arguments);
|
22672
22674
|
};
|
22673
22675
|
Object.defineProperty(nn, "__esModule", { value: !0 }), nn.useSocketIO = void 0;
|
22674
|
-
var t =
|
22676
|
+
var t = yt, n = ou(), r = Pt(), a = {
|
22675
22677
|
type: "empty",
|
22676
22678
|
payload: null
|
22677
22679
|
}, i = function(s) {
|
@@ -22689,9 +22691,9 @@ function FT() {
|
|
22689
22691
|
l === void 0 && (l = r.DEFAULT_OPTIONS), c === void 0 && (c = !0);
|
22690
22692
|
var d = (0, t.useMemo)(function() {
|
22691
22693
|
return e(e({}, l), { fromSocketIO: !0 });
|
22692
|
-
}, []), f = (0, n.useWebSocket)(s, d, c), p = f.sendMessage, h = f.sendJsonMessage,
|
22693
|
-
return i(
|
22694
|
-
}, [
|
22694
|
+
}, []), f = (0, n.useWebSocket)(s, d, c), p = f.sendMessage, h = f.sendJsonMessage, T = f.lastMessage, m = f.readyState, C = f.getWebSocket, E = (0, t.useMemo)(function() {
|
22695
|
+
return i(T);
|
22696
|
+
}, [T]);
|
22695
22697
|
return {
|
22696
22698
|
sendMessage: p,
|
22697
22699
|
sendJsonMessage: h,
|
@@ -22703,11 +22705,11 @@ function FT() {
|
|
22703
22705
|
};
|
22704
22706
|
return nn.useSocketIO = u, nn;
|
22705
22707
|
}
|
22706
|
-
var
|
22708
|
+
var Ht = {}, Ts;
|
22707
22709
|
function BT() {
|
22708
|
-
if (Ts) return
|
22710
|
+
if (Ts) return Ht;
|
22709
22711
|
Ts = 1;
|
22710
|
-
var e =
|
22712
|
+
var e = Ht && Ht.__assign || function() {
|
22711
22713
|
return e = Object.assign || function(u) {
|
22712
22714
|
for (var s, l = 1, c = arguments.length; l < c; l++) {
|
22713
22715
|
s = arguments[l];
|
@@ -22715,7 +22717,7 @@ function BT() {
|
|
22715
22717
|
}
|
22716
22718
|
return u;
|
22717
22719
|
}, e.apply(this, arguments);
|
22718
|
-
}, t =
|
22720
|
+
}, t = Ht && Ht.__rest || function(u, s) {
|
22719
22721
|
var l = {};
|
22720
22722
|
for (var c in u) Object.prototype.hasOwnProperty.call(u, c) && s.indexOf(c) < 0 && (l[c] = u[c]);
|
22721
22723
|
if (u != null && typeof Object.getOwnPropertySymbols == "function")
|
@@ -22723,8 +22725,8 @@ function BT() {
|
|
22723
22725
|
s.indexOf(c[d]) < 0 && Object.prototype.propertyIsEnumerable.call(u, c[d]) && (l[c[d]] = u[c[d]]);
|
22724
22726
|
return l;
|
22725
22727
|
};
|
22726
|
-
Object.defineProperty(
|
22727
|
-
var n =
|
22728
|
+
Object.defineProperty(Ht, "__esModule", { value: !0 }), Ht.useEventSource = void 0;
|
22729
|
+
var n = yt, r = ou(), a = Pt(), i = function(u, s, l) {
|
22728
22730
|
s === void 0 && (s = a.DEFAULT_EVENT_SOURCE_OPTIONS);
|
22729
22731
|
var c = s.withCredentials, d = s.events, f = t(s, ["withCredentials", "events"]);
|
22730
22732
|
l === void 0 && (l = !0);
|
@@ -22732,7 +22734,7 @@ function BT() {
|
|
22732
22734
|
withCredentials: c
|
22733
22735
|
} }), h = (0, n.useRef)(a.EMPTY_EVENT_HANDLERS);
|
22734
22736
|
d && (h.current = d);
|
22735
|
-
var
|
22737
|
+
var T = (0, r.useWebSocket)(u, p, l), m = T.lastMessage, C = T.readyState, E = T.getWebSocket;
|
22736
22738
|
return (0, n.useEffect)(function() {
|
22737
22739
|
m != null && m.type && Object.entries(h.current).forEach(function(P) {
|
22738
22740
|
var F = P[0], Q = P[1];
|
@@ -22744,7 +22746,7 @@ function BT() {
|
|
22744
22746
|
getEventSource: E
|
22745
22747
|
};
|
22746
22748
|
};
|
22747
|
-
return
|
22749
|
+
return Ht.useEventSource = i, Ht;
|
22748
22750
|
}
|
22749
22751
|
var ys;
|
22750
22752
|
function HT() {
|
@@ -22758,7 +22760,7 @@ function HT() {
|
|
22758
22760
|
Object.defineProperty(e, "useSocketIO", { enumerable: !0, get: function() {
|
22759
22761
|
return n.useSocketIO;
|
22760
22762
|
} });
|
22761
|
-
var r =
|
22763
|
+
var r = Pt();
|
22762
22764
|
Object.defineProperty(e, "ReadyState", { enumerable: !0, get: function() {
|
22763
22765
|
return r.ReadyState;
|
22764
22766
|
} });
|
@@ -22773,7 +22775,7 @@ function HT() {
|
|
22773
22775
|
}(Va)), Va;
|
22774
22776
|
}
|
22775
22777
|
var UT = HT();
|
22776
|
-
const jT = /* @__PURE__ */
|
22778
|
+
const jT = /* @__PURE__ */ Rt(UT);
|
22777
22779
|
async function qT(e) {
|
22778
22780
|
const t = await new Blob([e], { type: "application/json" });
|
22779
22781
|
return new Promise((n, r) => {
|
@@ -22788,12 +22790,12 @@ async function qT(e) {
|
|
22788
22790
|
}, a.readAsText(t);
|
22789
22791
|
});
|
22790
22792
|
}
|
22791
|
-
const zT = "This conversation with a live agent has ended. Please note that a transcript of this chat will be emailed to you. Feel free to continue chatting with Xpert.",
|
22793
|
+
const zT = "This conversation with a live agent has ended. Please note that a transcript of this chat will be emailed to you. Feel free to continue chatting with Xpert.", jt = {
|
22792
22794
|
CONNECTING: "CONNECTING",
|
22793
22795
|
CONVERSATION: "CONVERSATION",
|
22794
22796
|
FORM: "FORM"
|
22795
22797
|
}, hn = $r({}), od = ({ children: e, liveChatPayload: t }) => {
|
22796
|
-
const { conversationScreen: n } = se(He), { pushXpertMessage: r } = se(Gt), { setHasError: a, setMode: i } = se(Ke), [u, s] = de(""), [l, c] = de(!1), [, d] = de(""), [f, p] = de([]), [h,
|
22798
|
+
const { conversationScreen: n } = se(He), { pushXpertMessage: r } = se(Gt), { setHasError: a, setMode: i } = se(Ke), [u, s] = de(""), [l, c] = de(!1), [, d] = de(""), [f, p] = de([]), [h, T] = de(null), [m, C] = de(jt.FORM), [E, P] = de(null), F = (j) => p((z) => [...z, j]), Q = async (j) => {
|
22797
22799
|
const z = await qT(j.data), { conversation_id: g, event_type: ne, body: ue } = z;
|
22798
22800
|
switch (ne) {
|
22799
22801
|
case "AGENT_TYPING":
|
@@ -22821,11 +22823,11 @@ const zT = "This conversation with a live agent has ended. Please note that a tr
|
|
22821
22823
|
}
|
22822
22824
|
}, { sendJsonMessage: L } = jT(h, {
|
22823
22825
|
onMessage: Q
|
22824
|
-
}),
|
22826
|
+
}), y = () => {
|
22825
22827
|
var z;
|
22826
|
-
C(
|
22828
|
+
C(jt.FORM);
|
22827
22829
|
const j = (z = n == null ? void 0 : n.liveChat) == null ? void 0 : z.form;
|
22828
|
-
(!j || j.length === 0) && i(
|
22830
|
+
(!j || j.length === 0) && i(qt.XPERT);
|
22829
22831
|
}, k = () => {
|
22830
22832
|
L({
|
22831
22833
|
action: "sendmessage",
|
@@ -22837,7 +22839,7 @@ const zT = "This conversation with a live agent has ended. Please note that a tr
|
|
22837
22839
|
role: "info"
|
22838
22840
|
}), M();
|
22839
22841
|
}, M = () => {
|
22840
|
-
d(""),
|
22842
|
+
d(""), T(null), C(jt.FORM), i(qt.XPERT);
|
22841
22843
|
}, K = () => {
|
22842
22844
|
E && clearTimeout(E), c(!0);
|
22843
22845
|
const j = setTimeout(() => {
|
@@ -22846,7 +22848,7 @@ const zT = "This conversation with a live agent has ended. Please note that a tr
|
|
22846
22848
|
P(j);
|
22847
22849
|
}, q = (j) => {
|
22848
22850
|
const { displayName: z } = j;
|
22849
|
-
p([]), s(z ?? "An agent"), C(
|
22851
|
+
p([]), s(z ?? "An agent"), C(jt.CONVERSATION);
|
22850
22852
|
}, V = (j) => {
|
22851
22853
|
const { messageId: z, text: g, timestamp: ne } = j;
|
22852
22854
|
F({
|
@@ -22867,7 +22869,7 @@ const zT = "This conversation with a live agent has ended. Please note that a tr
|
|
22867
22869
|
}, W = {
|
22868
22870
|
agentName: u,
|
22869
22871
|
agentTyping: l,
|
22870
|
-
cancelLiveChatConnection:
|
22872
|
+
cancelLiveChatConnection: y,
|
22871
22873
|
endLiveChat: $,
|
22872
22874
|
liveChatMessages: f,
|
22873
22875
|
pushLiveChatMessage: F,
|
@@ -22895,9 +22897,9 @@ const zT = "This conversation with a live agent has ended. Please note that a tr
|
|
22895
22897
|
startLiveChat: (j) => {
|
22896
22898
|
var z;
|
22897
22899
|
try {
|
22898
|
-
C(
|
22900
|
+
C(jt.CONNECTING);
|
22899
22901
|
const g = new URLSearchParams({ ...t, ...j });
|
22900
|
-
g.append("url", window.location.href),
|
22902
|
+
g.append("url", window.location.href), T(
|
22901
22903
|
`${(z = n == null ? void 0 : n.liveChat) == null ? void 0 : z.socketUrl}?${g.toString()}`
|
22902
22904
|
);
|
22903
22905
|
} catch (g) {
|
@@ -22961,7 +22963,7 @@ function ld({
|
|
22961
22963
|
isMounted: r
|
22962
22964
|
}) {
|
22963
22965
|
var c;
|
22964
|
-
const { conversationScreen: a } = se(He), { mode: i } = se(Ke), { setDeleteConversationModal: u, xpertMessages: s } = se(Gt), l = i ===
|
22966
|
+
const { conversationScreen: a } = se(He), { mode: i } = se(Ke), { setDeleteConversationModal: u, xpertMessages: s } = se(Gt), l = i === qt.XPERT && ((c = a == null ? void 0 : a.conversationHistory) == null ? void 0 : c.allowDeletion) && !!(s != null && s.length);
|
22965
22967
|
return /* @__PURE__ */ x.jsxs(x.Fragment, { children: [
|
22966
22968
|
l && /* @__PURE__ */ x.jsx(
|
22967
22969
|
"button",
|
@@ -22974,7 +22976,7 @@ function ld({
|
|
22974
22976
|
title: "Delete conversation history",
|
22975
22977
|
onClick: () => u(!0),
|
22976
22978
|
children: /* @__PURE__ */ x.jsx(
|
22977
|
-
|
22979
|
+
wt,
|
22978
22980
|
{
|
22979
22981
|
icon: "material-symbols:delete-outline",
|
22980
22982
|
alt: "Delete conversation history",
|
@@ -23012,7 +23014,7 @@ function ld({
|
|
23012
23014
|
title: "Close Xpert dialog",
|
23013
23015
|
onClick: n,
|
23014
23016
|
children: /* @__PURE__ */ x.jsx(
|
23015
|
-
|
23017
|
+
wt,
|
23016
23018
|
{
|
23017
23019
|
icon: "material-symbols:close",
|
23018
23020
|
alt: "Close Xpert dialog",
|
@@ -23066,9 +23068,9 @@ function dd({
|
|
23066
23068
|
setIsMounted: n,
|
23067
23069
|
onClose: r
|
23068
23070
|
}) {
|
23069
|
-
var c, d, f, p, h,
|
23071
|
+
var c, d, f, p, h, T, m, C, E, P, F, Q, L, y, k;
|
23070
23072
|
const { primaryColor: a, conversationScreen: i } = se(He), { isMobile: u, mode: s } = se(Ke), { step: l } = se(hn);
|
23071
|
-
return l ===
|
23073
|
+
return l === jt.CONNECTING && s === qt.LIVECHAT ? null : /* @__PURE__ */ x.jsxs(
|
23072
23074
|
"div",
|
23073
23075
|
{
|
23074
23076
|
"data-testid": "xpert-conversations-header",
|
@@ -23090,7 +23092,7 @@ function dd({
|
|
23090
23092
|
}
|
23091
23093
|
}
|
23092
23094
|
),
|
23093
|
-
((
|
23095
|
+
((T = (h = i == null ? void 0 : i.header) == null ? void 0 : h.logo) == null ? void 0 : T.type) === "edx" ? /* @__PURE__ */ x.jsx(
|
23094
23096
|
"img",
|
23095
23097
|
{
|
23096
23098
|
"data-ot-ignore": "",
|
@@ -23122,7 +23124,7 @@ function dd({
|
|
23122
23124
|
className: "xpert-chatbot-popup__header_container",
|
23123
23125
|
style: {
|
23124
23126
|
right: 0,
|
23125
|
-
background: ((k = (
|
23127
|
+
background: ((k = (y = (L = i == null ? void 0 : i.header) == null ? void 0 : L.container) == null ? void 0 : y.style) == null ? void 0 : k.background) || a
|
23126
23128
|
}
|
23127
23129
|
}
|
23128
23130
|
)
|
@@ -23244,15 +23246,15 @@ const Cs = 500, QT = [
|
|
23244
23246
|
];
|
23245
23247
|
function hd({ onDismiss: e }) {
|
23246
23248
|
const [t, n] = de(""), [r, a] = de(!1), [i, u] = de(null), { conversationScreen: s } = se(He), { endLiveChat: l, submitSurvey: c, terminateConversation: d } = se(hn), f = () => {
|
23247
|
-
var
|
23248
|
-
d(), (
|
23249
|
+
var T;
|
23250
|
+
d(), (T = s == null ? void 0 : s.liveChat) != null && T.useSurvey ? a(!0) : l();
|
23249
23251
|
}, p = () => {
|
23250
23252
|
c({
|
23251
23253
|
content: t,
|
23252
23254
|
selectedOption: i
|
23253
23255
|
});
|
23254
|
-
}, h = (
|
23255
|
-
n(
|
23256
|
+
}, h = (T) => {
|
23257
|
+
n(T.target.value.slice(0, Cs));
|
23256
23258
|
};
|
23257
23259
|
return /* @__PURE__ */ x.jsxs("div", { className: "livechat-end-confirmation-container", children: [
|
23258
23260
|
!r && /* @__PURE__ */ x.jsxs(x.Fragment, { children: [
|
@@ -23264,8 +23266,8 @@ function hd({ onDismiss: e }) {
|
|
23264
23266
|
] }),
|
23265
23267
|
r && /* @__PURE__ */ x.jsxs(x.Fragment, { children: [
|
23266
23268
|
/* @__PURE__ */ x.jsx("p", { children: "Before you go, let me know how I did:" }),
|
23267
|
-
/* @__PURE__ */ x.jsx("div", { className: "livechat-end-confirmation-container__icon-button-container", children: QT.map(({ key:
|
23268
|
-
const E =
|
23269
|
+
/* @__PURE__ */ x.jsx("div", { className: "livechat-end-confirmation-container__icon-button-container", children: QT.map(({ key: T, icon: m, text: C }) => {
|
23270
|
+
const E = T === i, P = E ? { backgroundColor: "#E7E4DB", borderColor: "#767676" } : {};
|
23269
23271
|
return /* @__PURE__ */ x.jsxs(
|
23270
23272
|
"button",
|
23271
23273
|
{
|
@@ -23273,13 +23275,13 @@ function hd({ onDismiss: e }) {
|
|
23273
23275
|
"aria-label": C,
|
23274
23276
|
role: "radio",
|
23275
23277
|
style: P,
|
23276
|
-
onClick: () => u(
|
23278
|
+
onClick: () => u(T),
|
23277
23279
|
children: [
|
23278
23280
|
/* @__PURE__ */ x.jsx("span", { children: m }),
|
23279
23281
|
/* @__PURE__ */ x.jsx("p", { children: C })
|
23280
23282
|
]
|
23281
23283
|
},
|
23282
|
-
|
23284
|
+
T
|
23283
23285
|
);
|
23284
23286
|
}) }),
|
23285
23287
|
i && /* @__PURE__ */ x.jsxs(x.Fragment, { children: [
|
@@ -23316,7 +23318,7 @@ hd.propTypes = {
|
|
23316
23318
|
onDismiss: S.func
|
23317
23319
|
};
|
23318
23320
|
function XT(e, t) {
|
23319
|
-
const [n, r] = de(!1), a =
|
23321
|
+
const [n, r] = de(!1), a = nt(), i = Tt(
|
23320
23322
|
(...u) => {
|
23321
23323
|
n || (e(...u), r(!0), clearTimeout(a.current), a.current = setTimeout(() => {
|
23322
23324
|
r(!1);
|
@@ -23335,8 +23337,8 @@ function pd() {
|
|
23335
23337
|
liveChatMessages: n,
|
23336
23338
|
sendMessage: r,
|
23337
23339
|
sendTypingEvent: a
|
23338
|
-
} = se(hn), [i, u] = de(!1), [s, l] = de(""), c =
|
23339
|
-
l(
|
23340
|
+
} = se(hn), [i, u] = de(!1), [s, l] = de(""), c = nt(), d = XT(a, 5e3), f = (T) => {
|
23341
|
+
l(T.target.value), d();
|
23340
23342
|
}, p = () => {
|
23341
23343
|
s.trim() !== "" && (r(s), h());
|
23342
23344
|
}, h = () => {
|
@@ -23433,16 +23435,16 @@ const ZT = "data:image/svg+xml,%3csvg%20xmlns='http://www.w3.org/2000/svg'%20wid
|
|
23433
23435
|
}];
|
23434
23436
|
}, Xa = "privacy policy";
|
23435
23437
|
function md() {
|
23436
|
-
const { conversationScreen: e, primaryColor: t } = se(He), { startLiveChat: n } = se(hn), { setMode: r } = se(Ke), { form: a, formHeader: i, privacyPolicyLink: u, privacyPolicyText: s } = e.liveChat, [l, , c] = ey({}), [d, f] = de(!1), { clearError: p, errors: h, setErrors:
|
23438
|
+
const { conversationScreen: e, primaryColor: t } = se(He), { startLiveChat: n } = se(hn), { setMode: r } = se(Ke), { form: a, formHeader: i, privacyPolicyLink: u, privacyPolicyText: s } = e.liveChat, [l, , c] = ey({}), [d, f] = de(!1), { clearError: p, errors: h, setErrors: T } = JT(), m = or(
|
23437
23439
|
() => (s ?? "").split(Xa, 2),
|
23438
23440
|
[s]
|
23439
23441
|
), C = () => {
|
23440
|
-
r(
|
23442
|
+
r(qt.XPERT);
|
23441
23443
|
}, E = () => {
|
23442
23444
|
p("privacyCheck"), f((L) => !L);
|
23443
|
-
}, P = (L,
|
23445
|
+
}, P = (L, y) => {
|
23444
23446
|
const k = L.target.value;
|
23445
|
-
p(
|
23447
|
+
p(y), c(y, k);
|
23446
23448
|
}, F = () => {
|
23447
23449
|
Q() && n(l);
|
23448
23450
|
};
|
@@ -23450,31 +23452,31 @@ function md() {
|
|
23450
23452
|
(!a || a.length === 0) && n();
|
23451
23453
|
}, [a, n]);
|
23452
23454
|
const Q = () => {
|
23453
|
-
const L = a.reduce((
|
23455
|
+
const L = a.reduce((y, k) => {
|
23454
23456
|
const { key: $, validations: M = [] } = k, K = l[$];
|
23455
|
-
if (!K) return { ...
|
23457
|
+
if (!K) return { ...y, [$]: "Required" };
|
23456
23458
|
if ((M == null ? void 0 : M.length) > 0)
|
23457
23459
|
for (const q of M)
|
23458
23460
|
switch (q) {
|
23459
23461
|
case "email": {
|
23460
23462
|
if (!KT(K))
|
23461
|
-
return { ...
|
23463
|
+
return { ...y, [$]: "Should be email" };
|
23462
23464
|
break;
|
23463
23465
|
}
|
23464
23466
|
}
|
23465
|
-
return
|
23467
|
+
return y;
|
23466
23468
|
}, {});
|
23467
|
-
return !d && s && (L.privacyCheck = "Required"),
|
23469
|
+
return !d && s && (L.privacyCheck = "Required"), T(L), Object.keys(L).length === 0;
|
23468
23470
|
};
|
23469
23471
|
return /* @__PURE__ */ x.jsxs("div", { className: "live-chat-form", children: [
|
23470
23472
|
i && /* @__PURE__ */ x.jsx("p", { children: i }),
|
23471
|
-
(a ?? []).map(({ key: L, name:
|
23473
|
+
(a ?? []).map(({ key: L, name: y }) => /* @__PURE__ */ x.jsxs(_0, { children: [
|
23472
23474
|
/* @__PURE__ */ x.jsx(
|
23473
23475
|
"input",
|
23474
23476
|
{
|
23475
23477
|
className: `live-chat-form-input ${h[L] ? "error" : ""}`,
|
23476
|
-
name:
|
23477
|
-
placeholder:
|
23478
|
+
name: y,
|
23479
|
+
placeholder: y,
|
23478
23480
|
onChange: (k) => P(k, L)
|
23479
23481
|
}
|
23480
23482
|
),
|
@@ -23549,9 +23551,9 @@ md.propTypes = {};
|
|
23549
23551
|
function gd() {
|
23550
23552
|
const { step: e } = se(hn);
|
23551
23553
|
return /* @__PURE__ */ x.jsxs("div", { className: "live-chat-container", children: [
|
23552
|
-
e ===
|
23553
|
-
e ===
|
23554
|
-
e ===
|
23554
|
+
e === jt.FORM && /* @__PURE__ */ x.jsx(md, {}),
|
23555
|
+
e === jt.CONNECTING && /* @__PURE__ */ x.jsx(fd, {}),
|
23556
|
+
e === jt.CONVERSATION && /* @__PURE__ */ x.jsx(pd, {})
|
23555
23557
|
] });
|
23556
23558
|
}
|
23557
23559
|
gd.propTypes = {};
|
@@ -23563,13 +23565,13 @@ function bd({
|
|
23563
23565
|
showMessage: a = !1,
|
23564
23566
|
style: i = {}
|
23565
23567
|
}) {
|
23566
|
-
var
|
23567
|
-
const { proactiveMessage: u } = se(He), [s, l] = de(!0), [c, d] = de(!1), f = s && (!(window != null && window.OnetrustActiveGroups) || ((
|
23568
|
+
var T;
|
23569
|
+
const { proactiveMessage: u } = se(He), [s, l] = de(!0), [c, d] = de(!1), f = s && (!(window != null && window.OnetrustActiveGroups) || ((T = window == null ? void 0 : window.OnetrustActiveGroups) == null ? void 0 : T.includes("C0003"))) && pt.get(t) === void 0;
|
23568
23570
|
Le(() => {
|
23569
23571
|
var m;
|
23570
23572
|
(m = window == null ? void 0 : window.OneTrust) == null || m.OnConsentChanged(() => {
|
23571
23573
|
var C;
|
23572
|
-
!((C = window == null ? void 0 : window.OnetrustActiveGroups) != null && C.includes("C0003")) &&
|
23574
|
+
!((C = window == null ? void 0 : window.OnetrustActiveGroups) != null && C.includes("C0003")) && pt.get(t) !== void 0 && pt.remove(t);
|
23573
23575
|
});
|
23574
23576
|
}, [t]), Le(() => {
|
23575
23577
|
var m;
|
@@ -23591,7 +23593,7 @@ function bd({
|
|
23591
23593
|
expires: E,
|
23592
23594
|
path: "/"
|
23593
23595
|
};
|
23594
|
-
|
23596
|
+
pt.set(m, C, P);
|
23595
23597
|
};
|
23596
23598
|
return !c || !f || !a ? null : /* @__PURE__ */ x.jsx("div", { children: /* @__PURE__ */ x.jsxs(
|
23597
23599
|
"div",
|
@@ -23618,7 +23620,7 @@ function bd({
|
|
23618
23620
|
"aria-label": "Close proactive message",
|
23619
23621
|
type: "button",
|
23620
23622
|
children: /* @__PURE__ */ x.jsx(
|
23621
|
-
|
23623
|
+
wt,
|
23622
23624
|
{
|
23623
23625
|
style: {
|
23624
23626
|
color: "#000000",
|
@@ -23644,7 +23646,7 @@ bd.propTypes = {
|
|
23644
23646
|
style: S.shape()
|
23645
23647
|
};
|
23646
23648
|
function ty(e, t, n) {
|
23647
|
-
const r =
|
23649
|
+
const r = Tt(
|
23648
23650
|
(a) => {
|
23649
23651
|
const { data: i } = a || {}, { chatState: u, show: s, type: l } = i || {};
|
23650
23652
|
(l === "openForm" && s === !1 || l === "open" && u === !1) && n(!1);
|
@@ -23723,13 +23725,13 @@ function uy(e) {
|
|
23723
23725
|
return new TextEncoder().encode(e).length;
|
23724
23726
|
}
|
23725
23727
|
const _s = (e) => {
|
23726
|
-
let t =
|
23727
|
-
return t || (t = ed(),
|
23728
|
+
let t = pt.get(`${e}-conversation-history-id`);
|
23729
|
+
return t || (t = ed(), pt.set(`${e}-conversation-history-id`, t, {
|
23728
23730
|
expires: 1
|
23729
23731
|
})), t;
|
23730
23732
|
};
|
23731
23733
|
function Ed({ submitEventExternal: e = null }) {
|
23732
|
-
var Xt, Kt, gn,
|
23734
|
+
var Xt, Kt, gn, Ot;
|
23733
23735
|
const {
|
23734
23736
|
chatApi: t,
|
23735
23737
|
configurationLoaded: n,
|
@@ -23745,7 +23747,7 @@ function Ed({ submitEventExternal: e = null }) {
|
|
23745
23747
|
onFeedbackSelection: f,
|
23746
23748
|
onMessageSent: p,
|
23747
23749
|
pushXpertMessage: h,
|
23748
|
-
setXpertMessages:
|
23750
|
+
setXpertMessages: T,
|
23749
23751
|
xpertMessages: m
|
23750
23752
|
} = se(Gt), {
|
23751
23753
|
isMobile: C,
|
@@ -23754,21 +23756,21 @@ function Ed({ submitEventExternal: e = null }) {
|
|
23754
23756
|
setHasError: F,
|
23755
23757
|
setHasNewMessage: Q,
|
23756
23758
|
setIsNormalSize: L,
|
23757
|
-
setLoading:
|
23758
|
-
} = se(Ke), [, k] = de(!1), [, $] = de(!1), [M, K] = de(!1), [q, V] = de(!1), [D, v] = de(""), [w, H] = de(!1), W = M || !c, j =
|
23759
|
+
setLoading: y
|
23760
|
+
} = se(Ke), [, k] = de(!1), [, $] = de(!1), [M, K] = de(!1), [q, V] = de(!1), [D, v] = de(""), [w, H] = de(!1), W = M || !c, j = nt(null), z = nt(null), g = pt.get(`${a}-test`) === "1";
|
23759
23761
|
ty(
|
23760
23762
|
(Xt = r == null ? void 0 : r.liveChat) == null ? void 0 : Xt.enabled,
|
23761
23763
|
q,
|
23762
23764
|
V
|
23763
23765
|
);
|
23764
|
-
const ne =
|
23766
|
+
const ne = Tt(
|
23765
23767
|
({ name: ae, payload: be }) => {
|
23766
23768
|
if (!n || !(s != null && s.enabled)) return;
|
23767
|
-
const
|
23768
|
-
e ? e({ name: ae, payload:
|
23769
|
+
const Ae = Ss(s == null ? void 0 : s.payloadParams, be);
|
23770
|
+
e ? e({ name: ae, payload: Ae }) : z.current.track(
|
23769
23771
|
// TODO: this is untestable - create a custom hook to get submit event function.
|
23770
23772
|
ae,
|
23771
|
-
|
23773
|
+
Ae
|
23772
23774
|
);
|
23773
23775
|
},
|
23774
23776
|
[
|
@@ -23782,7 +23784,7 @@ function Ed({ submitEventExternal: e = null }) {
|
|
23782
23784
|
if (window != null && window.OnetrustActiveGroups && window.OnetrustActiveGroups.split(",").includes("C0003") && (ae = r == null ? void 0 : r.conversationHistory) != null && ae.enabled)
|
23783
23785
|
try {
|
23784
23786
|
let be = _s(a);
|
23785
|
-
const
|
23787
|
+
const Ae = await fetch(
|
23786
23788
|
`${t.baseUrl}/xpert/v2/history?conversation_id=${be}`,
|
23787
23789
|
{
|
23788
23790
|
method: "GET",
|
@@ -23791,14 +23793,21 @@ function Ed({ submitEventExternal: e = null }) {
|
|
23791
23793
|
}
|
23792
23794
|
}
|
23793
23795
|
);
|
23794
|
-
if (!
|
23795
|
-
throw new Error(`HTTPError: ${
|
23796
|
-
const $e = await
|
23797
|
-
|
23796
|
+
if (!Ae.ok)
|
23797
|
+
throw new Error(`HTTPError: ${Ae.status} ${Ae.statusText}`);
|
23798
|
+
const $e = await Ae.json();
|
23799
|
+
typeof window < "u" && new URLSearchParams(window.location.search).get("mockData") === "true" || T(
|
23800
|
+
$e.map((Ze) => ({
|
23801
|
+
...Ze,
|
23802
|
+
disableFeedback: !0,
|
23803
|
+
toolCalls: Ze.tool_calls,
|
23804
|
+
toolCallId: Ze.tool_call_id
|
23805
|
+
}))
|
23806
|
+
), P(!0), Q(!0);
|
23798
23807
|
} catch (be) {
|
23799
23808
|
console.error(be);
|
23800
23809
|
} finally {
|
23801
|
-
|
23810
|
+
y(!1);
|
23802
23811
|
}
|
23803
23812
|
};
|
23804
23813
|
ry(
|
@@ -23824,11 +23833,11 @@ function Ed({ submitEventExternal: e = null }) {
|
|
23824
23833
|
s == null ? void 0 : s.prefix
|
23825
23834
|
]), Le(() => {
|
23826
23835
|
let ae, be;
|
23827
|
-
const
|
23836
|
+
const Ae = () => {
|
23828
23837
|
l != null && l.enabled && window.optimizely && window.experiments && (clearInterval(ae), clearTimeout(be), $(!0));
|
23829
23838
|
};
|
23830
23839
|
if (n)
|
23831
|
-
return ae = setInterval(
|
23840
|
+
return ae = setInterval(Ae, 1e3), be = setTimeout(() => {
|
23832
23841
|
clearInterval(ae);
|
23833
23842
|
}, 6e4), () => {
|
23834
23843
|
clearInterval(ae), clearTimeout(be);
|
@@ -23839,13 +23848,13 @@ function Ed({ submitEventExternal: e = null }) {
|
|
23839
23848
|
l == null ? void 0 : l.experimentName
|
23840
23849
|
]);
|
23841
23850
|
const I = (ae) => {
|
23842
|
-
var be,
|
23851
|
+
var be, Ae;
|
23843
23852
|
(be = ae == null ? void 0 : ae.target) != null && be.href && ne({
|
23844
23853
|
name: `${s.prefix}.bi.xpert.chatbot.popup.chat.message.link.clicked`,
|
23845
23854
|
payload: {
|
23846
23855
|
category: "2u",
|
23847
23856
|
label: "xpert-chatbot",
|
23848
|
-
link: (
|
23857
|
+
link: (Ae = ae == null ? void 0 : ae.target) == null ? void 0 : Ae.href,
|
23849
23858
|
isTestUser: g
|
23850
23859
|
}
|
23851
23860
|
});
|
@@ -23869,9 +23878,9 @@ function Ed({ submitEventExternal: e = null }) {
|
|
23869
23878
|
}, me = ({
|
23870
23879
|
conversationSize: ae,
|
23871
23880
|
userInputMessage: be,
|
23872
|
-
apiResponseMessage:
|
23881
|
+
apiResponseMessage: Ae,
|
23873
23882
|
elapsedSeconds: $e,
|
23874
|
-
conversationByteSize:
|
23883
|
+
conversationByteSize: ut
|
23875
23884
|
}) => {
|
23876
23885
|
ne({
|
23877
23886
|
name: `${s.prefix}.bi.xpert.chatbot.popup.chat.message.elapsed.seconds`,
|
@@ -23881,9 +23890,9 @@ function Ed({ submitEventExternal: e = null }) {
|
|
23881
23890
|
isTestUser: g,
|
23882
23891
|
conversationSize: ae,
|
23883
23892
|
userInputMessage: be,
|
23884
|
-
apiResponseMessage:
|
23893
|
+
apiResponseMessage: Ae,
|
23885
23894
|
elapsedSeconds: $e,
|
23886
|
-
conversationByteSize:
|
23895
|
+
conversationByteSize: ut
|
23887
23896
|
}
|
23888
23897
|
});
|
23889
23898
|
}, xe = async (ae) => {
|
@@ -23892,23 +23901,23 @@ function Ed({ submitEventExternal: e = null }) {
|
|
23892
23901
|
return;
|
23893
23902
|
const be = /* @__PURE__ */ new Date();
|
23894
23903
|
Q(!1), F(!1);
|
23895
|
-
const
|
23904
|
+
const Ae = m.filter((le) => le.role === "user").length + 1;
|
23896
23905
|
if (ne({
|
23897
23906
|
name: `${s.prefix}.bi.xpert.chatbot.popup.chat.message.sent`,
|
23898
23907
|
payload: {
|
23899
23908
|
category: "2u",
|
23900
23909
|
label: "xpert-chatbot",
|
23901
|
-
totalUserInputMessagesSent:
|
23910
|
+
totalUserInputMessagesSent: Ae,
|
23902
23911
|
userInputMessage: ae,
|
23903
23912
|
isTestUser: g
|
23904
23913
|
}
|
23905
|
-
}), oe(),
|
23906
|
-
await p(ae),
|
23914
|
+
}), oe(), y(!0), p) {
|
23915
|
+
await p(ae), y(!1);
|
23907
23916
|
return;
|
23908
23917
|
}
|
23909
23918
|
let $e = null;
|
23910
23919
|
r.conversationHistory.enabled && ($e = _s(a)), h({ role: "user", content: ae });
|
23911
|
-
const
|
23920
|
+
const ut = [
|
23912
23921
|
...m,
|
23913
23922
|
{ role: "user", content: ae }
|
23914
23923
|
].map((le) => ({
|
@@ -23916,48 +23925,48 @@ function Ed({ submitEventExternal: e = null }) {
|
|
23916
23925
|
content: le.content,
|
23917
23926
|
...le.toolCalls && { tool_calls: le.toolCalls },
|
23918
23927
|
...le.toolCallId && { tool_call_id: le.toolCallId }
|
23919
|
-
})).filter(({ role: le }) => ["assistant", "tool", "user"].includes(le)),
|
23928
|
+
})).filter(({ role: le }) => ["assistant", "tool", "user"].includes(le)), Ze = await fetch(t.endpoint, {
|
23920
23929
|
method: "POST",
|
23921
23930
|
headers: { "Content-Type": "application/json" },
|
23922
23931
|
body: JSON.stringify({
|
23923
|
-
[t == null ? void 0 : t.messagesKey]:
|
23932
|
+
[t == null ? void 0 : t.messagesKey]: ut,
|
23924
23933
|
...t.payloadParams,
|
23925
23934
|
...$e && {
|
23926
23935
|
conversation_id: $e
|
23927
23936
|
}
|
23928
23937
|
})
|
23929
23938
|
});
|
23930
|
-
if (!
|
23931
|
-
throw new Error(`HTTPError: ${
|
23932
|
-
const Y = await
|
23939
|
+
if (!Ze.ok)
|
23940
|
+
throw new Error(`HTTPError: ${Ze.status} ${Ze.statusText}`);
|
23941
|
+
const Y = await Ze.json(), Z = Array.isArray(Y) ? Y : [Y];
|
23933
23942
|
Z.forEach(
|
23934
23943
|
({
|
23935
23944
|
content: le,
|
23936
23945
|
live_agent: ye,
|
23937
23946
|
role: Qe,
|
23938
|
-
tool_calls:
|
23939
|
-
tool_call_id:
|
23947
|
+
tool_calls: gt,
|
23948
|
+
tool_call_id: ot
|
23940
23949
|
}) => {
|
23941
23950
|
h({
|
23942
23951
|
content: le,
|
23943
23952
|
createdAt: /* @__PURE__ */ new Date(),
|
23944
23953
|
liveAgent: ye,
|
23945
23954
|
role: Qe,
|
23946
|
-
toolCalls:
|
23947
|
-
toolCallId:
|
23955
|
+
toolCalls: gt,
|
23956
|
+
toolCallId: ot
|
23948
23957
|
}), Te(le, $e);
|
23949
23958
|
}
|
23950
23959
|
);
|
23951
23960
|
const ie = /* @__PURE__ */ new Date();
|
23952
23961
|
me({
|
23953
|
-
conversationByteSize: uy(JSON.stringify(
|
23962
|
+
conversationByteSize: uy(JSON.stringify(ut)),
|
23954
23963
|
conversationSize: m.length + Z.length + 1,
|
23955
23964
|
userInputMessage: ae,
|
23956
23965
|
apiResponseMessage: Z.map((le) => le.content ?? "").join(" "),
|
23957
23966
|
elapsedSeconds: ay(be, ie)
|
23958
|
-
}), P(!1),
|
23967
|
+
}), P(!1), y(!1), oe(), Q(!0);
|
23959
23968
|
} catch (be) {
|
23960
|
-
|
23969
|
+
y(!1), oe(), F(!0), console.error(be);
|
23961
23970
|
}
|
23962
23971
|
}, Se = () => {
|
23963
23972
|
V(!1), K(!0), L(!0), ue(), ne({
|
@@ -23995,7 +24004,7 @@ function Ed({ submitEventExternal: e = null }) {
|
|
23995
24004
|
isTestUser: g
|
23996
24005
|
}
|
23997
24006
|
});
|
23998
|
-
},
|
24007
|
+
}, it = () => {
|
23999
24008
|
K(!1), H(!1), ne({
|
24000
24009
|
name: `${s.prefix}.bi.xpert.chatbot.popup.chat.minimized`,
|
24001
24010
|
payload: {
|
@@ -24004,14 +24013,14 @@ function Ed({ submitEventExternal: e = null }) {
|
|
24004
24013
|
isTestUser: g
|
24005
24014
|
}
|
24006
24015
|
});
|
24007
|
-
},
|
24016
|
+
}, St = (ae) => {
|
24008
24017
|
v(ae.target.value);
|
24009
24018
|
}, Mn = async (ae, be = "") => {
|
24010
24019
|
if (f) {
|
24011
24020
|
await f({ index: ae, type: be }), P(!1);
|
24012
24021
|
return;
|
24013
24022
|
}
|
24014
|
-
m.map((
|
24023
|
+
const Ae = m.map((ut, Ze) => ae === Ze ? (ne({
|
24015
24024
|
name: `${s.prefix}.bi.xpert.chatbot.feedback.thumbs.${be.toLowerCase()}.clicked`,
|
24016
24025
|
payload: {
|
24017
24026
|
category: "2u",
|
@@ -24022,10 +24031,11 @@ function Ed({ submitEventExternal: e = null }) {
|
|
24022
24031
|
isTestUser: g
|
24023
24032
|
}
|
24024
24033
|
}), {
|
24025
|
-
...
|
24034
|
+
...ut,
|
24026
24035
|
feedbackThumbType: be
|
24027
|
-
}) :
|
24028
|
-
|
24036
|
+
}) : ut);
|
24037
|
+
typeof window < "u" && new URLSearchParams(window.location.search).get("mockData") === "true" || T(Ae), P(!1);
|
24038
|
+
}, pn = (gn = i == null ? void 0 : i.animatedGraduate) == null ? void 0 : gn.enabled, mn = u != null && u.enabled ? C ? (Ot = u == null ? void 0 : u.style) == null ? void 0 : Ot.mobile : u == null ? void 0 : u.style : null;
|
24029
24039
|
return (
|
24030
24040
|
// do not remove this class as it's needed to turn off chatbot
|
24031
24041
|
/* @__PURE__ */ x.jsxs("div", { className: `xpert-chatbot${c ? "" : "--inline"}`, children: [
|
@@ -24085,17 +24095,17 @@ function Ed({ submitEventExternal: e = null }) {
|
|
24085
24095
|
c && /* @__PURE__ */ x.jsx(
|
24086
24096
|
dd,
|
24087
24097
|
{
|
24088
|
-
onClose:
|
24098
|
+
onClose: it,
|
24089
24099
|
handleResizeButtonClick: Fe,
|
24090
24100
|
isMounted: w,
|
24091
24101
|
setIsMounted: H
|
24092
24102
|
}
|
24093
24103
|
),
|
24094
24104
|
/* @__PURE__ */ x.jsx(WT, {}),
|
24095
|
-
E ===
|
24105
|
+
E === qt.XPERT && /* @__PURE__ */ x.jsx(
|
24096
24106
|
id,
|
24097
24107
|
{
|
24098
|
-
handleChange:
|
24108
|
+
handleChange: St,
|
24099
24109
|
handleFeedbackThumbSelection: Mn,
|
24100
24110
|
handleMessageLinkClicked: I,
|
24101
24111
|
handleSend: xe,
|
@@ -24106,7 +24116,7 @@ function Ed({ submitEventExternal: e = null }) {
|
|
24106
24116
|
userInput: D
|
24107
24117
|
}
|
24108
24118
|
),
|
24109
|
-
E ===
|
24119
|
+
E === qt.LIVECHAT && /* @__PURE__ */ x.jsx(gd, {})
|
24110
24120
|
] })
|
24111
24121
|
}
|
24112
24122
|
) })
|