@2uinc/frontend-component-xpert-chatbot 1.32.0 → 1.32.1
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 +632 -627
- package/package.json +1 -1
package/dist/lib/index.min.js
CHANGED
@@ -1,4 +1,4 @@
|
|
1
|
-
import Xe, { createContext as In, useState as te, useCallback as Ct, useEffect as Ce, useContext as ee, useRef as Ue, forwardRef as io, createElement as
|
1
|
+
import Xe, { createContext as In, useState as te, useCallback as Ct, useEffect as Ce, useMemo as kr, useContext as ee, useRef as Ue, forwardRef as io, createElement as Sr, Fragment as Ts } from "react";
|
2
2
|
import Os from "react-dom";
|
3
3
|
var cn = typeof globalThis < "u" ? globalThis : typeof window < "u" ? window : typeof global < "u" ? global : typeof self < "u" ? self : {};
|
4
4
|
function nt(e) {
|
@@ -23,7 +23,7 @@ function ao(e) {
|
|
23
23
|
});
|
24
24
|
}), n;
|
25
25
|
}
|
26
|
-
var Gn = { exports: {} },
|
26
|
+
var Gn = { exports: {} }, Lt = {};
|
27
27
|
/*
|
28
28
|
object-assign
|
29
29
|
(c) Sindre Sorhus
|
@@ -85,12 +85,12 @@ function Is() {
|
|
85
85
|
*/
|
86
86
|
var Ai;
|
87
87
|
function Ps() {
|
88
|
-
if (Ai) return
|
88
|
+
if (Ai) return Lt;
|
89
89
|
Ai = 1, Is();
|
90
90
|
var e = Xe, t = 60103;
|
91
|
-
if (
|
91
|
+
if (Lt.Fragment = 60107, typeof Symbol == "function" && Symbol.for) {
|
92
92
|
var n = Symbol.for;
|
93
|
-
t = n("react.element"),
|
93
|
+
t = n("react.element"), Lt.Fragment = n("react.fragment");
|
94
94
|
}
|
95
95
|
var r = e.__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED.ReactCurrentOwner, i = Object.prototype.hasOwnProperty, a = { key: !0, ref: !0, __self: !0, __source: !0 };
|
96
96
|
function o(l, s, u) {
|
@@ -100,7 +100,7 @@ function Ps() {
|
|
100
100
|
if (l && l.defaultProps) for (c in s = l.defaultProps, s) d[c] === void 0 && (d[c] = s[c]);
|
101
101
|
return { $$typeof: t, type: l, key: p, ref: f, props: d, _owner: r.current };
|
102
102
|
}
|
103
|
-
return
|
103
|
+
return Lt.jsx = o, Lt.jsxs = o, Lt;
|
104
104
|
}
|
105
105
|
var Fi;
|
106
106
|
function As() {
|
@@ -127,7 +127,7 @@ var Fs = {
|
|
127
127
|
);
|
128
128
|
}
|
129
129
|
};
|
130
|
-
function
|
130
|
+
function _r(e, t) {
|
131
131
|
function n(i, a, o) {
|
132
132
|
if (!(typeof document > "u")) {
|
133
133
|
o = fn({}, t, o), typeof o.expires == "number" && (o.expires = new Date(Date.now() + o.expires * 864e5)), o.expires && (o.expires = o.expires.toUTCString()), i = encodeURIComponent(i).replace(/%(2[346B]|5E|60|7C)/g, decodeURIComponent).replace(/[()]/g, escape);
|
@@ -165,10 +165,10 @@ function Sr(e, t) {
|
|
165
165
|
);
|
166
166
|
},
|
167
167
|
withAttributes: function(i) {
|
168
|
-
return
|
168
|
+
return _r(this.converter, fn({}, this.attributes, i));
|
169
169
|
},
|
170
170
|
withConverter: function(i) {
|
171
|
-
return
|
171
|
+
return _r(fn({}, this.converter, i), this.attributes);
|
172
172
|
}
|
173
173
|
},
|
174
174
|
{
|
@@ -177,18 +177,18 @@ function Sr(e, t) {
|
|
177
177
|
}
|
178
178
|
);
|
179
179
|
}
|
180
|
-
var Be =
|
181
|
-
function
|
182
|
-
if (
|
183
|
-
|
180
|
+
var Be = _r(Fs, { path: "/" }), Zn = { exports: {} }, Yn, Li;
|
181
|
+
function Ls() {
|
182
|
+
if (Li) return Yn;
|
183
|
+
Li = 1;
|
184
184
|
var e = "SECRET_DO_NOT_PASS_THIS_OR_YOU_WILL_BE_FIRED";
|
185
185
|
return Yn = e, Yn;
|
186
186
|
}
|
187
|
-
var Kn,
|
188
|
-
function
|
189
|
-
if (
|
190
|
-
|
191
|
-
var e = /* @__PURE__ */
|
187
|
+
var Kn, Ni;
|
188
|
+
function Ns() {
|
189
|
+
if (Ni) return Kn;
|
190
|
+
Ni = 1;
|
191
|
+
var e = /* @__PURE__ */ Ls();
|
192
192
|
function t() {
|
193
193
|
}
|
194
194
|
function n() {
|
@@ -234,7 +234,7 @@ function Ls() {
|
|
234
234
|
}
|
235
235
|
var ji;
|
236
236
|
function oo() {
|
237
|
-
return ji || (ji = 1, Zn.exports = /* @__PURE__ */
|
237
|
+
return ji || (ji = 1, Zn.exports = /* @__PURE__ */ Ns()()), Zn.exports;
|
238
238
|
}
|
239
239
|
var js = /* @__PURE__ */ oo();
|
240
240
|
const C = /* @__PURE__ */ nt(js);
|
@@ -243,31 +243,31 @@ Zt.exports;
|
|
243
243
|
var Mi;
|
244
244
|
function Ms() {
|
245
245
|
return Mi || (Mi = 1, function(e, t) {
|
246
|
-
var n = 200, r = "__lodash_hash_undefined__", i = 800, a = 16, o = 9007199254740991, l = "[object Arguments]", s = "[object Array]", u = "[object AsyncFunction]", c = "[object Boolean]", d = "[object Date]", p = "[object Error]", f = "[object Function]", y = "[object GeneratorFunction]", h = "[object Map]", v = "[object Number]", g = "[object Null]", P = "[object Object]", A = "[object Proxy]", q = "[object RegExp]", I = "[object Set]", b = "[object String]", E = "[object Undefined]", z = "[object WeakMap]", F = "[object ArrayBuffer]", U = "[object DataView]", M = "[object Float32Array]", B = "[object Float64Array]", T = "[object Int8Array]", S = "[object Int16Array]", O = "[object Int32Array]",
|
247
|
-
w[M] = w[B] = w[T] = w[S] = w[O] = w[
|
246
|
+
var n = 200, r = "__lodash_hash_undefined__", i = 800, a = 16, o = 9007199254740991, l = "[object Arguments]", s = "[object Array]", u = "[object AsyncFunction]", c = "[object Boolean]", d = "[object Date]", p = "[object Error]", f = "[object Function]", y = "[object GeneratorFunction]", h = "[object Map]", v = "[object Number]", g = "[object Null]", P = "[object Object]", A = "[object Proxy]", q = "[object RegExp]", I = "[object Set]", b = "[object String]", E = "[object Undefined]", z = "[object WeakMap]", F = "[object ArrayBuffer]", U = "[object DataView]", M = "[object Float32Array]", B = "[object Float64Array]", T = "[object Int8Array]", S = "[object Int16Array]", O = "[object Int32Array]", L = "[object Uint8Array]", H = "[object Uint8ClampedArray]", j = "[object Uint16Array]", D = "[object Uint32Array]", m = /[\\^$.*+?()[\]{}|]/g, W = /^\[object .+?Constructor\]$/, Y = /^(?:0|[1-9]\d*)$/, w = {};
|
247
|
+
w[M] = w[B] = w[T] = w[S] = w[O] = w[L] = w[H] = w[j] = w[D] = !0, w[l] = w[s] = w[F] = w[c] = w[U] = w[d] = w[p] = w[f] = w[h] = w[v] = w[P] = w[q] = w[I] = w[b] = w[z] = !1;
|
248
248
|
var K = typeof cn == "object" && cn && cn.Object === Object && cn, oe = typeof self == "object" && self && self.Object === Object && self, re = K || oe || Function("return this")(), de = t && !t.nodeType && t, pe = de && !0 && e && !e.nodeType && e, xe = pe && pe.exports === de, he = xe && K.process, Ee = function() {
|
249
249
|
try {
|
250
250
|
var x = pe && pe.require && pe.require("util").types;
|
251
251
|
return x || he && he.binding && he.binding("util");
|
252
252
|
} catch {
|
253
253
|
}
|
254
|
-
}(),
|
255
|
-
function Ze(x, _,
|
256
|
-
switch (
|
254
|
+
}(), Le = Ee && Ee.isTypedArray;
|
255
|
+
function Ze(x, _, N) {
|
256
|
+
switch (N.length) {
|
257
257
|
case 0:
|
258
258
|
return x.call(_);
|
259
259
|
case 1:
|
260
|
-
return x.call(_,
|
260
|
+
return x.call(_, N[0]);
|
261
261
|
case 2:
|
262
|
-
return x.call(_,
|
262
|
+
return x.call(_, N[0], N[1]);
|
263
263
|
case 3:
|
264
|
-
return x.call(_,
|
264
|
+
return x.call(_, N[0], N[1], N[2]);
|
265
265
|
}
|
266
|
-
return x.apply(_,
|
266
|
+
return x.apply(_, N);
|
267
267
|
}
|
268
268
|
function Bt(x, _) {
|
269
|
-
for (var
|
270
|
-
G[
|
269
|
+
for (var N = -1, G = Array(x); ++N < x; )
|
270
|
+
G[N] = _(N);
|
271
271
|
return G;
|
272
272
|
}
|
273
273
|
function Tt(x) {
|
@@ -279,8 +279,8 @@ function Ms() {
|
|
279
279
|
return x == null ? void 0 : x[_];
|
280
280
|
}
|
281
281
|
function ht(x, _) {
|
282
|
-
return function(
|
283
|
-
return x(_(
|
282
|
+
return function(N) {
|
283
|
+
return x(_(N));
|
284
284
|
};
|
285
285
|
}
|
286
286
|
var mt = Array.prototype, It = Function.prototype, Ye = Object.prototype, X = re["__core-js_shared__"], ie = It.toString, ce = Ye.hasOwnProperty, _e = function() {
|
@@ -290,13 +290,13 @@ function Ms() {
|
|
290
290
|
"^" + ie.call(ce).replace(m, "\\$&").replace(/hasOwnProperty|(function).*?(?=\\\()| for .+?(?=\\\])/g, "$1.*?") + "$"
|
291
291
|
), $ = xe ? re.Buffer : void 0, Z = re.Symbol, J = re.Uint8Array;
|
292
292
|
$ && $.allocUnsafe;
|
293
|
-
var le = ht(Object.getPrototypeOf, Object), Oe = Object.create, ze = Ye.propertyIsEnumerable,
|
293
|
+
var le = ht(Object.getPrototypeOf, Object), Oe = Object.create, ze = Ye.propertyIsEnumerable, Ne = mt.splice, je = Z ? Z.toStringTag : void 0, Ke = function() {
|
294
294
|
try {
|
295
295
|
var x = Bn(Object, "defineProperty");
|
296
296
|
return x({}, "", {}), x;
|
297
297
|
} catch {
|
298
298
|
}
|
299
|
-
}(), we = $ ? $.isBuffer : void 0, Pt = Math.max, We = Date.now, vi = Bn(re, "Map"), Ht = Bn(Object, "create"),
|
299
|
+
}(), we = $ ? $.isBuffer : void 0, Pt = Math.max, We = Date.now, vi = Bn(re, "Map"), Ht = Bn(Object, "create"), Tl = /* @__PURE__ */ function() {
|
300
300
|
function x() {
|
301
301
|
}
|
302
302
|
return function(_) {
|
@@ -305,129 +305,129 @@ function Ms() {
|
|
305
305
|
if (Oe)
|
306
306
|
return Oe(_);
|
307
307
|
x.prototype = _;
|
308
|
-
var
|
309
|
-
return x.prototype = void 0,
|
308
|
+
var N = new x();
|
309
|
+
return x.prototype = void 0, N;
|
310
310
|
};
|
311
311
|
}();
|
312
312
|
function gt(x) {
|
313
|
-
var _ = -1,
|
314
|
-
for (this.clear(); ++_ <
|
313
|
+
var _ = -1, N = x == null ? 0 : x.length;
|
314
|
+
for (this.clear(); ++_ < N; ) {
|
315
315
|
var G = x[_];
|
316
316
|
this.set(G[0], G[1]);
|
317
317
|
}
|
318
318
|
}
|
319
|
-
function
|
319
|
+
function Ol() {
|
320
320
|
this.__data__ = Ht ? Ht(null) : {}, this.size = 0;
|
321
321
|
}
|
322
|
-
function
|
322
|
+
function Il(x) {
|
323
323
|
var _ = this.has(x) && delete this.__data__[x];
|
324
324
|
return this.size -= _ ? 1 : 0, _;
|
325
325
|
}
|
326
|
-
function
|
326
|
+
function Pl(x) {
|
327
327
|
var _ = this.__data__;
|
328
328
|
if (Ht) {
|
329
|
-
var
|
330
|
-
return
|
329
|
+
var N = _[x];
|
330
|
+
return N === r ? void 0 : N;
|
331
331
|
}
|
332
332
|
return ce.call(_, x) ? _[x] : void 0;
|
333
333
|
}
|
334
|
-
function
|
334
|
+
function Al(x) {
|
335
335
|
var _ = this.__data__;
|
336
336
|
return Ht ? _[x] !== void 0 : ce.call(_, x);
|
337
337
|
}
|
338
|
-
function
|
339
|
-
var
|
340
|
-
return this.size += this.has(x) ? 0 : 1,
|
338
|
+
function Fl(x, _) {
|
339
|
+
var N = this.__data__;
|
340
|
+
return this.size += this.has(x) ? 0 : 1, N[x] = Ht && _ === void 0 ? r : _, this;
|
341
341
|
}
|
342
|
-
gt.prototype.clear =
|
342
|
+
gt.prototype.clear = Ol, gt.prototype.delete = Il, gt.prototype.get = Pl, gt.prototype.has = Al, gt.prototype.set = Fl;
|
343
343
|
function it(x) {
|
344
|
-
var _ = -1,
|
345
|
-
for (this.clear(); ++_ <
|
344
|
+
var _ = -1, N = x == null ? 0 : x.length;
|
345
|
+
for (this.clear(); ++_ < N; ) {
|
346
346
|
var G = x[_];
|
347
347
|
this.set(G[0], G[1]);
|
348
348
|
}
|
349
349
|
}
|
350
|
-
function
|
350
|
+
function Ll() {
|
351
351
|
this.__data__ = [], this.size = 0;
|
352
352
|
}
|
353
353
|
function Nl(x) {
|
354
|
-
var _ = this.__data__,
|
355
|
-
if (
|
354
|
+
var _ = this.__data__, N = on(_, x);
|
355
|
+
if (N < 0)
|
356
356
|
return !1;
|
357
357
|
var G = _.length - 1;
|
358
|
-
return
|
359
|
-
}
|
360
|
-
function Ll(x) {
|
361
|
-
var _ = this.__data__, L = on(_, x);
|
362
|
-
return L < 0 ? void 0 : _[L][1];
|
358
|
+
return N == G ? _.pop() : Ne.call(_, N, 1), --this.size, !0;
|
363
359
|
}
|
364
360
|
function jl(x) {
|
361
|
+
var _ = this.__data__, N = on(_, x);
|
362
|
+
return N < 0 ? void 0 : _[N][1];
|
363
|
+
}
|
364
|
+
function Ml(x) {
|
365
365
|
return on(this.__data__, x) > -1;
|
366
366
|
}
|
367
|
-
function
|
368
|
-
var
|
369
|
-
return G < 0 ? (++this.size,
|
367
|
+
function Dl(x, _) {
|
368
|
+
var N = this.__data__, G = on(N, x);
|
369
|
+
return G < 0 ? (++this.size, N.push([x, _])) : N[G][1] = _, this;
|
370
370
|
}
|
371
|
-
it.prototype.clear =
|
371
|
+
it.prototype.clear = Ll, it.prototype.delete = Nl, it.prototype.get = jl, it.prototype.has = Ml, it.prototype.set = Dl;
|
372
372
|
function At(x) {
|
373
|
-
var _ = -1,
|
374
|
-
for (this.clear(); ++_ <
|
373
|
+
var _ = -1, N = x == null ? 0 : x.length;
|
374
|
+
for (this.clear(); ++_ < N; ) {
|
375
375
|
var G = x[_];
|
376
376
|
this.set(G[0], G[1]);
|
377
377
|
}
|
378
378
|
}
|
379
|
-
function
|
379
|
+
function Rl() {
|
380
380
|
this.size = 0, this.__data__ = {
|
381
381
|
hash: new gt(),
|
382
382
|
map: new (vi || it)(),
|
383
383
|
string: new gt()
|
384
384
|
};
|
385
385
|
}
|
386
|
-
function
|
386
|
+
function Bl(x) {
|
387
387
|
var _ = sn(this, x).delete(x);
|
388
388
|
return this.size -= _ ? 1 : 0, _;
|
389
389
|
}
|
390
|
-
function
|
390
|
+
function Hl(x) {
|
391
391
|
return sn(this, x).get(x);
|
392
392
|
}
|
393
|
-
function
|
393
|
+
function zl(x) {
|
394
394
|
return sn(this, x).has(x);
|
395
395
|
}
|
396
|
-
function
|
397
|
-
var
|
398
|
-
return
|
396
|
+
function ql(x, _) {
|
397
|
+
var N = sn(this, x), G = N.size;
|
398
|
+
return N.set(x, _), this.size += N.size == G ? 0 : 1, this;
|
399
399
|
}
|
400
|
-
At.prototype.clear =
|
400
|
+
At.prototype.clear = Rl, At.prototype.delete = Bl, At.prototype.get = Hl, At.prototype.has = zl, At.prototype.set = ql;
|
401
401
|
function Ft(x) {
|
402
402
|
var _ = this.__data__ = new it(x);
|
403
403
|
this.size = _.size;
|
404
404
|
}
|
405
|
-
function
|
405
|
+
function Ul() {
|
406
406
|
this.__data__ = new it(), this.size = 0;
|
407
407
|
}
|
408
|
-
function Ul(x) {
|
409
|
-
var _ = this.__data__, L = _.delete(x);
|
410
|
-
return this.size = _.size, L;
|
411
|
-
}
|
412
408
|
function $l(x) {
|
413
|
-
|
409
|
+
var _ = this.__data__, N = _.delete(x);
|
410
|
+
return this.size = _.size, N;
|
414
411
|
}
|
415
412
|
function Vl(x) {
|
413
|
+
return this.__data__.get(x);
|
414
|
+
}
|
415
|
+
function Wl(x) {
|
416
416
|
return this.__data__.has(x);
|
417
417
|
}
|
418
|
-
function
|
419
|
-
var
|
420
|
-
if (
|
421
|
-
var G =
|
418
|
+
function Gl(x, _) {
|
419
|
+
var N = this.__data__;
|
420
|
+
if (N instanceof it) {
|
421
|
+
var G = N.__data__;
|
422
422
|
if (!vi || G.length < n - 1)
|
423
|
-
return G.push([x, _]), this.size = ++
|
424
|
-
|
423
|
+
return G.push([x, _]), this.size = ++N.size, this;
|
424
|
+
N = this.__data__ = new At(G);
|
425
425
|
}
|
426
|
-
return
|
426
|
+
return N.set(x, _), this.size = N.size, this;
|
427
427
|
}
|
428
|
-
Ft.prototype.clear =
|
429
|
-
function
|
430
|
-
var
|
428
|
+
Ft.prototype.clear = Ul, Ft.prototype.delete = $l, Ft.prototype.get = Vl, Ft.prototype.has = Wl, Ft.prototype.set = Gl;
|
429
|
+
function Xl(x, _) {
|
430
|
+
var N = qn(x), G = !N && zn(x), ae = !N && !G && Si(x), me = !N && !G && !ae && Ei(x), be = N || G || ae || me, se = be ? Bt(x.length, String) : [], ve = se.length;
|
431
431
|
for (var Ge in x)
|
432
432
|
be && // Safari 9 has enumerable `arguments.length` in strict mode.
|
433
433
|
(Ge == "length" || // Node.js 0.10 has enumerable non-index properties on buffers.
|
@@ -436,203 +436,203 @@ function Ms() {
|
|
436
436
|
Ci(Ge, ve)) || se.push(Ge);
|
437
437
|
return se;
|
438
438
|
}
|
439
|
-
function Dn(x, _,
|
440
|
-
(
|
439
|
+
function Dn(x, _, N) {
|
440
|
+
(N !== void 0 && !un(x[_], N) || N === void 0 && !(_ in x)) && Rn(x, _, N);
|
441
441
|
}
|
442
|
-
function
|
442
|
+
function Zl(x, _, N) {
|
443
443
|
var G = x[_];
|
444
|
-
(!(ce.call(x, _) && un(G,
|
444
|
+
(!(ce.call(x, _) && un(G, N)) || N === void 0 && !(_ in x)) && Rn(x, _, N);
|
445
445
|
}
|
446
446
|
function on(x, _) {
|
447
|
-
for (var
|
448
|
-
if (un(x[
|
449
|
-
return
|
447
|
+
for (var N = x.length; N--; )
|
448
|
+
if (un(x[N][0], _))
|
449
|
+
return N;
|
450
450
|
return -1;
|
451
451
|
}
|
452
|
-
function Rn(x, _,
|
452
|
+
function Rn(x, _, N) {
|
453
453
|
_ == "__proto__" && Ke ? Ke(x, _, {
|
454
454
|
configurable: !0,
|
455
455
|
enumerable: !0,
|
456
|
-
value:
|
456
|
+
value: N,
|
457
457
|
writable: !0
|
458
|
-
}) : x[_] =
|
458
|
+
}) : x[_] = N;
|
459
459
|
}
|
460
|
-
var
|
460
|
+
var Yl = us();
|
461
461
|
function ln(x) {
|
462
|
-
return x == null ? x === void 0 ? E : g : je && je in Object(x) ?
|
462
|
+
return x == null ? x === void 0 ? E : g : je && je in Object(x) ? cs(x) : gs(x);
|
463
463
|
}
|
464
464
|
function xi(x) {
|
465
465
|
return zt(x) && ln(x) == l;
|
466
466
|
}
|
467
|
-
function
|
468
|
-
if (!yt(x) ||
|
467
|
+
function Kl(x) {
|
468
|
+
if (!yt(x) || hs(x))
|
469
469
|
return !1;
|
470
470
|
var _ = $n(x) ? R : W;
|
471
|
-
return _.test(
|
471
|
+
return _.test(xs(x));
|
472
472
|
}
|
473
|
-
function
|
473
|
+
function Jl(x) {
|
474
474
|
return zt(x) && _i(x.length) && !!w[ln(x)];
|
475
475
|
}
|
476
|
-
function
|
476
|
+
function Ql(x) {
|
477
477
|
if (!yt(x))
|
478
|
-
return
|
479
|
-
var _ = ki(x),
|
478
|
+
return ms(x);
|
479
|
+
var _ = ki(x), N = [];
|
480
480
|
for (var G in x)
|
481
|
-
G == "constructor" && (_ || !ce.call(x, G)) ||
|
482
|
-
return
|
481
|
+
G == "constructor" && (_ || !ce.call(x, G)) || N.push(G);
|
482
|
+
return N;
|
483
483
|
}
|
484
|
-
function wi(x, _,
|
485
|
-
x !== _ &&
|
484
|
+
function wi(x, _, N, G, ae) {
|
485
|
+
x !== _ && Yl(_, function(me, be) {
|
486
486
|
if (ae || (ae = new Ft()), yt(me))
|
487
|
-
|
487
|
+
es(x, _, be, N, wi, G, ae);
|
488
488
|
else {
|
489
489
|
var se = G ? G(Hn(x, be), me, be + "", x, _, ae) : void 0;
|
490
490
|
se === void 0 && (se = me), Dn(x, be, se);
|
491
491
|
}
|
492
492
|
}, Ti);
|
493
493
|
}
|
494
|
-
function
|
495
|
-
var se = Hn(x,
|
494
|
+
function es(x, _, N, G, ae, me, be) {
|
495
|
+
var se = Hn(x, N), ve = Hn(_, N), Ge = be.get(ve);
|
496
496
|
if (Ge) {
|
497
|
-
Dn(x,
|
497
|
+
Dn(x, N, Ge);
|
498
498
|
return;
|
499
499
|
}
|
500
|
-
var Me = me ? me(se, ve,
|
500
|
+
var Me = me ? me(se, ve, N + "", x, _, be) : void 0, qt = Me === void 0;
|
501
501
|
if (qt) {
|
502
502
|
var Vn = qn(ve), Wn = !Vn && Si(ve), Ii = !Vn && !Wn && Ei(ve);
|
503
|
-
Me = ve, Vn || Wn || Ii ? qn(se) ? Me = se :
|
503
|
+
Me = ve, Vn || Wn || Ii ? qn(se) ? Me = se : ws(se) ? Me = os(se) : Wn ? (qt = !1, Me = rs(ve)) : Ii ? (qt = !1, Me = as(ve)) : Me = [] : Cs(ve) || zn(ve) ? (Me = se, zn(se) ? Me = ks(se) : (!yt(se) || $n(se)) && (Me = fs(ve))) : qt = !1;
|
504
504
|
}
|
505
|
-
qt && (be.set(ve, Me), ae(Me, ve, G, me, be), be.delete(ve)), Dn(x,
|
505
|
+
qt && (be.set(ve, Me), ae(Me, ve, G, me, be), be.delete(ve)), Dn(x, N, Me);
|
506
506
|
}
|
507
|
-
function
|
508
|
-
return ys(
|
507
|
+
function ts(x, _) {
|
508
|
+
return bs(ys(x, _, Oi), x + "");
|
509
509
|
}
|
510
|
-
var
|
510
|
+
var ns = Ke ? function(x, _) {
|
511
511
|
return Ke(x, "toString", {
|
512
512
|
configurable: !0,
|
513
513
|
enumerable: !1,
|
514
|
-
value:
|
514
|
+
value: _s(_),
|
515
515
|
writable: !0
|
516
516
|
});
|
517
517
|
} : Oi;
|
518
|
-
function
|
518
|
+
function rs(x, _) {
|
519
519
|
return x.slice();
|
520
520
|
}
|
521
|
-
function
|
521
|
+
function is(x) {
|
522
522
|
var _ = new x.constructor(x.byteLength);
|
523
523
|
return new J(_).set(new J(x)), _;
|
524
524
|
}
|
525
|
-
function is(x, _) {
|
526
|
-
var L = rs(x.buffer);
|
527
|
-
return new x.constructor(L, x.byteOffset, x.length);
|
528
|
-
}
|
529
525
|
function as(x, _) {
|
530
|
-
var
|
531
|
-
|
532
|
-
|
526
|
+
var N = is(x.buffer);
|
527
|
+
return new x.constructor(N, x.byteOffset, x.length);
|
528
|
+
}
|
529
|
+
function os(x, _) {
|
530
|
+
var N = -1, G = x.length;
|
531
|
+
for (_ || (_ = Array(G)); ++N < G; )
|
532
|
+
_[N] = x[N];
|
533
533
|
return _;
|
534
534
|
}
|
535
|
-
function
|
536
|
-
var ae = !
|
537
|
-
|
535
|
+
function ls(x, _, N, G) {
|
536
|
+
var ae = !N;
|
537
|
+
N || (N = {});
|
538
538
|
for (var me = -1, be = _.length; ++me < be; ) {
|
539
539
|
var se = _[me], ve = void 0;
|
540
|
-
ve === void 0 && (ve = x[se]), ae ? Rn(
|
540
|
+
ve === void 0 && (ve = x[se]), ae ? Rn(N, se, ve) : Zl(N, se, ve);
|
541
541
|
}
|
542
|
-
return
|
542
|
+
return N;
|
543
543
|
}
|
544
|
-
function
|
545
|
-
return
|
546
|
-
var G = -1, ae =
|
547
|
-
for (me = x.length > 3 && typeof me == "function" ? (ae--, me) : void 0, be &&
|
548
|
-
var se =
|
544
|
+
function ss(x) {
|
545
|
+
return ts(function(_, N) {
|
546
|
+
var G = -1, ae = N.length, me = ae > 1 ? N[ae - 1] : void 0, be = ae > 2 ? N[2] : void 0;
|
547
|
+
for (me = x.length > 3 && typeof me == "function" ? (ae--, me) : void 0, be && ds(N[0], N[1], be) && (me = ae < 3 ? void 0 : me, ae = 1), _ = Object(_); ++G < ae; ) {
|
548
|
+
var se = N[G];
|
549
549
|
se && x(_, se, G, me);
|
550
550
|
}
|
551
551
|
return _;
|
552
552
|
});
|
553
553
|
}
|
554
|
-
function
|
555
|
-
return function(_,
|
554
|
+
function us(x) {
|
555
|
+
return function(_, N, G) {
|
556
556
|
for (var ae = -1, me = Object(_), be = G(_), se = be.length; se--; ) {
|
557
557
|
var ve = be[++ae];
|
558
|
-
if (
|
558
|
+
if (N(me[ve], ve, me) === !1)
|
559
559
|
break;
|
560
560
|
}
|
561
561
|
return _;
|
562
562
|
};
|
563
563
|
}
|
564
564
|
function sn(x, _) {
|
565
|
-
var
|
566
|
-
return
|
565
|
+
var N = x.__data__;
|
566
|
+
return ps(_) ? N[typeof _ == "string" ? "string" : "hash"] : N.map;
|
567
567
|
}
|
568
568
|
function Bn(x, _) {
|
569
|
-
var
|
570
|
-
return
|
569
|
+
var N = Ot(x, _);
|
570
|
+
return Kl(N) ? N : void 0;
|
571
571
|
}
|
572
|
-
function
|
573
|
-
var _ = ce.call(x, je),
|
572
|
+
function cs(x) {
|
573
|
+
var _ = ce.call(x, je), N = x[je];
|
574
574
|
try {
|
575
575
|
x[je] = void 0;
|
576
576
|
var G = !0;
|
577
577
|
} catch {
|
578
578
|
}
|
579
579
|
var ae = Ie.call(x);
|
580
|
-
return G && (_ ? x[je] =
|
580
|
+
return G && (_ ? x[je] = N : delete x[je]), ae;
|
581
581
|
}
|
582
|
-
function
|
583
|
-
return typeof x.constructor == "function" && !ki(x) ?
|
582
|
+
function fs(x) {
|
583
|
+
return typeof x.constructor == "function" && !ki(x) ? Tl(le(x)) : {};
|
584
584
|
}
|
585
585
|
function Ci(x, _) {
|
586
|
-
var
|
587
|
-
return _ = _ ?? o, !!_ && (
|
586
|
+
var N = typeof x;
|
587
|
+
return _ = _ ?? o, !!_ && (N == "number" || N != "symbol" && Y.test(x)) && x > -1 && x % 1 == 0 && x < _;
|
588
588
|
}
|
589
|
-
function
|
590
|
-
if (!yt(
|
589
|
+
function ds(x, _, N) {
|
590
|
+
if (!yt(N))
|
591
591
|
return !1;
|
592
592
|
var G = typeof _;
|
593
|
-
return (G == "number" ? Un(
|
593
|
+
return (G == "number" ? Un(N) && Ci(_, N.length) : G == "string" && _ in N) ? un(N[_], x) : !1;
|
594
594
|
}
|
595
|
-
function
|
595
|
+
function ps(x) {
|
596
596
|
var _ = typeof x;
|
597
597
|
return _ == "string" || _ == "number" || _ == "symbol" || _ == "boolean" ? x !== "__proto__" : x === null;
|
598
598
|
}
|
599
|
-
function
|
599
|
+
function hs(x) {
|
600
600
|
return !!_e && _e in x;
|
601
601
|
}
|
602
602
|
function ki(x) {
|
603
|
-
var _ = x && x.constructor,
|
604
|
-
return x ===
|
603
|
+
var _ = x && x.constructor, N = typeof _ == "function" && _.prototype || Ye;
|
604
|
+
return x === N;
|
605
605
|
}
|
606
|
-
function
|
606
|
+
function ms(x) {
|
607
607
|
var _ = [];
|
608
608
|
if (x != null)
|
609
|
-
for (var
|
610
|
-
_.push(
|
609
|
+
for (var N in Object(x))
|
610
|
+
_.push(N);
|
611
611
|
return _;
|
612
612
|
}
|
613
|
-
function
|
613
|
+
function gs(x) {
|
614
614
|
return Ie.call(x);
|
615
615
|
}
|
616
|
-
function
|
616
|
+
function ys(x, _, N) {
|
617
617
|
return _ = Pt(_ === void 0 ? x.length - 1 : _, 0), function() {
|
618
618
|
for (var G = arguments, ae = -1, me = Pt(G.length - _, 0), be = Array(me); ++ae < me; )
|
619
619
|
be[ae] = G[_ + ae];
|
620
620
|
ae = -1;
|
621
621
|
for (var se = Array(_ + 1); ++ae < _; )
|
622
622
|
se[ae] = G[ae];
|
623
|
-
return se[_] =
|
623
|
+
return se[_] = N(be), Ze(x, this, se);
|
624
624
|
};
|
625
625
|
}
|
626
626
|
function Hn(x, _) {
|
627
627
|
if (!(_ === "constructor" && typeof x[_] == "function") && _ != "__proto__")
|
628
628
|
return x[_];
|
629
629
|
}
|
630
|
-
var
|
631
|
-
function
|
632
|
-
var _ = 0,
|
630
|
+
var bs = vs(ns);
|
631
|
+
function vs(x) {
|
632
|
+
var _ = 0, N = 0;
|
633
633
|
return function() {
|
634
|
-
var G = We(), ae = a - (G -
|
635
|
-
if (
|
634
|
+
var G = We(), ae = a - (G - N);
|
635
|
+
if (N = G, ae > 0) {
|
636
636
|
if (++_ >= i)
|
637
637
|
return arguments[0];
|
638
638
|
} else
|
@@ -640,7 +640,7 @@ function Ms() {
|
|
640
640
|
return x.apply(void 0, arguments);
|
641
641
|
};
|
642
642
|
}
|
643
|
-
function
|
643
|
+
function xs(x) {
|
644
644
|
if (x != null) {
|
645
645
|
try {
|
646
646
|
return ie.call(x);
|
@@ -664,10 +664,10 @@ function Ms() {
|
|
664
664
|
function Un(x) {
|
665
665
|
return x != null && _i(x.length) && !$n(x);
|
666
666
|
}
|
667
|
-
function
|
667
|
+
function ws(x) {
|
668
668
|
return zt(x) && Un(x);
|
669
669
|
}
|
670
|
-
var Si = we ||
|
670
|
+
var Si = we || Es;
|
671
671
|
function $n(x) {
|
672
672
|
if (!yt(x))
|
673
673
|
return !1;
|
@@ -684,26 +684,26 @@ function Ms() {
|
|
684
684
|
function zt(x) {
|
685
685
|
return x != null && typeof x == "object";
|
686
686
|
}
|
687
|
-
function
|
687
|
+
function Cs(x) {
|
688
688
|
if (!zt(x) || ln(x) != P)
|
689
689
|
return !1;
|
690
690
|
var _ = le(x);
|
691
691
|
if (_ === null)
|
692
692
|
return !0;
|
693
|
-
var
|
694
|
-
return typeof
|
693
|
+
var N = ce.call(_, "constructor") && _.constructor;
|
694
|
+
return typeof N == "function" && N instanceof N && ie.call(N) == ct;
|
695
695
|
}
|
696
|
-
var Ei =
|
697
|
-
function
|
698
|
-
return
|
696
|
+
var Ei = Le ? Tt(Le) : Jl;
|
697
|
+
function ks(x) {
|
698
|
+
return ls(x, Ti(x));
|
699
699
|
}
|
700
700
|
function Ti(x) {
|
701
|
-
return Un(x) ?
|
701
|
+
return Un(x) ? Xl(x) : Ql(x);
|
702
702
|
}
|
703
|
-
var
|
704
|
-
wi(x, _,
|
703
|
+
var Ss = ss(function(x, _, N) {
|
704
|
+
wi(x, _, N);
|
705
705
|
});
|
706
|
-
function
|
706
|
+
function _s(x) {
|
707
707
|
return function() {
|
708
708
|
return x;
|
709
709
|
};
|
@@ -711,14 +711,14 @@ function Ms() {
|
|
711
711
|
function Oi(x) {
|
712
712
|
return x;
|
713
713
|
}
|
714
|
-
function
|
714
|
+
function Es() {
|
715
715
|
return !1;
|
716
716
|
}
|
717
|
-
e.exports =
|
717
|
+
e.exports = Ss;
|
718
718
|
}(Zt, Zt.exports)), Zt.exports;
|
719
719
|
}
|
720
720
|
var Ds = Ms();
|
721
|
-
const
|
721
|
+
const lo = /* @__PURE__ */ nt(Ds), Rs = {
|
722
722
|
id: "degrees-canvas-support",
|
723
723
|
chatApi: {
|
724
724
|
endpoint: "https://xpert-platform-services-api.prod.ai.2u.com/xpert/omnichannel",
|
@@ -1402,12 +1402,11 @@ const zr = /* @__PURE__ */ nt(Ds), Rs = {
|
|
1402
1402
|
"exec-ed-ss-olc-moodle": qs,
|
1403
1403
|
"get-smarter": Us,
|
1404
1404
|
"speech-emerson": $s
|
1405
|
-
}, Ws = (e
|
1406
|
-
if (!e
|
1407
|
-
throw new Error("id
|
1408
|
-
|
1409
|
-
|
1410
|
-
}, ke = In({}), lo = ({
|
1405
|
+
}, Ws = (e) => {
|
1406
|
+
if (!e)
|
1407
|
+
throw new Error("id is required");
|
1408
|
+
return Vs[e] || {};
|
1409
|
+
}, ke = In({}), so = ({
|
1411
1410
|
children: e,
|
1412
1411
|
clientId: t = null,
|
1413
1412
|
configurations: n = null,
|
@@ -1415,10 +1414,10 @@ const zr = /* @__PURE__ */ nt(Ds), Rs = {
|
|
1415
1414
|
widgetMode: i = !0
|
1416
1415
|
}) => {
|
1417
1416
|
const [a, o] = te(!1), [l, s] = te({}), u = Ct(async () => {
|
1418
|
-
if (
|
1419
|
-
if (t)
|
1417
|
+
if (!(!t && !r)) {
|
1418
|
+
if (o(!1), t)
|
1420
1419
|
try {
|
1421
|
-
const
|
1420
|
+
const p = await fetch(
|
1422
1421
|
`https://xpert-platform-services-api.prod.ai.2u.com/xpert/v2/client?client_id=${t}`,
|
1423
1422
|
{
|
1424
1423
|
method: "GET",
|
@@ -1427,39 +1426,45 @@ const zr = /* @__PURE__ */ nt(Ds), Rs = {
|
|
1427
1426
|
}
|
1428
1427
|
}
|
1429
1428
|
);
|
1430
|
-
if (!
|
1429
|
+
if (!p.ok) {
|
1431
1430
|
console.error(
|
1432
|
-
`The chatbot configuration could not be loaded from the server. Status ${
|
1431
|
+
`The chatbot configuration could not be loaded from the server. Status ${p.status} - ${p.statusText}`
|
1433
1432
|
);
|
1434
1433
|
return;
|
1435
1434
|
}
|
1436
|
-
const
|
1437
|
-
s(
|
1438
|
-
|
1439
|
-
);
|
1440
|
-
} catch (c) {
|
1441
|
-
console.error("Unexpected error loading the chatbot configuration", c);
|
1435
|
+
const f = await p.json();
|
1436
|
+
s({ ...f, id: t });
|
1437
|
+
} catch (p) {
|
1438
|
+
console.error("Unexpected error loading the chatbot configuration", p);
|
1442
1439
|
}
|
1443
|
-
else
|
1444
|
-
|
1445
|
-
...
|
1440
|
+
else
|
1441
|
+
s({
|
1442
|
+
...Ws(r),
|
1446
1443
|
id: r
|
1447
|
-
})
|
1448
|
-
);
|
1444
|
+
});
|
1449
1445
|
o(!0);
|
1450
1446
|
}
|
1451
|
-
}, [t,
|
1452
|
-
|
1447
|
+
}, [t, r]);
|
1448
|
+
Ce(() => {
|
1453
1449
|
u();
|
1454
|
-
}, [u])
|
1450
|
+
}, [u]);
|
1451
|
+
const c = kr(
|
1452
|
+
() => lo({ id: "generic", ...l }, n ?? {}),
|
1453
|
+
[n, l]
|
1454
|
+
), d = kr(() => t || r ? a : !!n, [t, a, n, r]);
|
1455
|
+
return /* @__PURE__ */ k.jsx(
|
1455
1456
|
ke.Provider,
|
1456
1457
|
{
|
1457
|
-
value: {
|
1458
|
+
value: {
|
1459
|
+
...c,
|
1460
|
+
configurationLoaded: d,
|
1461
|
+
widgetMode: i
|
1462
|
+
},
|
1458
1463
|
children: e
|
1459
1464
|
}
|
1460
1465
|
);
|
1461
1466
|
};
|
1462
|
-
|
1467
|
+
so.propTypes = {
|
1463
1468
|
children: C.element.isRequired,
|
1464
1469
|
clientId: C.string,
|
1465
1470
|
configurations: C.shape({
|
@@ -1555,7 +1560,7 @@ lo.propTypes = {
|
|
1555
1560
|
xpertKey: C.string,
|
1556
1561
|
widgetMode: C.bool
|
1557
1562
|
};
|
1558
|
-
const St = In({}),
|
1563
|
+
const St = In({}), uo = C.shape({
|
1559
1564
|
content: C.string.isRequired,
|
1560
1565
|
feedbackThumbType: C.oneOf(["DOWN", "UP"]),
|
1561
1566
|
liveAgent: C.bool,
|
@@ -1577,7 +1582,7 @@ const St = In({}), so = C.shape({
|
|
1577
1582
|
})
|
1578
1583
|
),
|
1579
1584
|
toolCallId: C.number
|
1580
|
-
}), Pn = C.arrayOf(
|
1585
|
+
}), Pn = C.arrayOf(uo), co = ({
|
1581
1586
|
children: e,
|
1582
1587
|
conversation: t,
|
1583
1588
|
onFeedbackSelection: n,
|
@@ -1599,7 +1604,7 @@ const St = In({}), so = C.shape({
|
|
1599
1604
|
};
|
1600
1605
|
return /* @__PURE__ */ k.jsx(St.Provider, { value: f, children: e });
|
1601
1606
|
};
|
1602
|
-
|
1607
|
+
co.propTypes = {
|
1603
1608
|
children: C.element.isRequired,
|
1604
1609
|
conversation: Pn,
|
1605
1610
|
onFeedbackSelection: C.func,
|
@@ -1618,7 +1623,7 @@ const Di = 991, Gs = () => {
|
|
1618
1623
|
}, ut = {
|
1619
1624
|
LIVECHAT: "LIVECHAT",
|
1620
1625
|
XPERT: "XPERT"
|
1621
|
-
}, Pe = In({}),
|
1626
|
+
}, Pe = In({}), fo = ({ children: e }) => {
|
1622
1627
|
const [t, n] = te(!1), [r, i] = te(!1), [a, o] = te(!1), [l, s] = te(!0), [u, c] = te(!1), [d, p] = te(ut.XPERT), f = Gs(), y = {
|
1623
1628
|
disabledScroll: t,
|
1624
1629
|
hasError: r,
|
@@ -1636,7 +1641,7 @@ const Di = 991, Gs = () => {
|
|
1636
1641
|
};
|
1637
1642
|
return /* @__PURE__ */ k.jsx(Pe.Provider, { value: y, children: e });
|
1638
1643
|
};
|
1639
|
-
|
1644
|
+
fo.propTypes = {
|
1640
1645
|
children: C.element.isRequired
|
1641
1646
|
};
|
1642
1647
|
var Jn = { exports: {} };
|
@@ -1679,7 +1684,7 @@ function Xs() {
|
|
1679
1684
|
}(Jn)), Jn.exports;
|
1680
1685
|
}
|
1681
1686
|
var Zs = Xs();
|
1682
|
-
const
|
1687
|
+
const po = /* @__PURE__ */ nt(Zs);
|
1683
1688
|
function An({
|
1684
1689
|
label: e,
|
1685
1690
|
className: t,
|
@@ -1696,7 +1701,7 @@ function An({
|
|
1696
1701
|
tabIndex: 0,
|
1697
1702
|
type: "button",
|
1698
1703
|
"aria-label": e,
|
1699
|
-
className:
|
1704
|
+
className: po(
|
1700
1705
|
{
|
1701
1706
|
"xpert_chatbot__floating-action-btn__icon": !o,
|
1702
1707
|
"xpert_chatbot__floating-action-btn__icon--mobile": o
|
@@ -1931,8 +1936,8 @@ qr.propTypes = {
|
|
1931
1936
|
qr.defaultProps = {
|
1932
1937
|
handleFloatingActionButtonClick: null
|
1933
1938
|
};
|
1934
|
-
const Js = "data:image/svg+xml,%3csvg%20xmlns='http://www.w3.org/2000/svg'%20height='48'%20viewBox='0%20-960%20960%20960'%20width='48'%3e%3cpath%20d='M281-240q-14%200-27.5-14T240-282v-98h500v-340h100q14%200%2027%2014t13%2029v596L721-240H281ZM80-280v-558q0-14%2013-28t27-14h519q15%200%2028%2013.5t13%2028.5v356q0%2014-13%2028t-28%2014H240L80-280Zm540-220v-320H140v320h480Zm-480%200v-320%20320Z'%20fill='%23FFFFFF'/%3e%3c/svg%3e", po = "data:image/svg+xml,%3csvg%20width='1871'%20height='564'%20viewBox='0%200%201871%20564'%20fill='none'%20xmlns='http://www.w3.org/2000/svg'%3e%3cpath%20d='M928%20188H1871L1808%20491H865L928%20188Z'%20fill='%23F0CC00'/%3e%3cg%20clip-path='url(%23clip0_123_428)'%3e%3cpath%20d='M255.273%20197.387C250.852%20192.254%20245.352%20188.185%20238.796%20185.188C232.232%20182.191%20224.597%20180.692%20215.898%20180.692C207.049%20180.692%20198.777%20182.266%20191.074%20185.405C183.372%20188.545%20176.381%20193.004%20170.102%20198.781C163.823%20204.558%20158.406%20211.482%20153.835%20219.537C149.264%20227.6%20145.63%20236.547%20142.926%20246.393H268.116C268.258%20245.681%20268.363%20244.362%20268.438%20242.437C268.505%20240.511%20268.543%20238.622%20268.543%20236.764C268.543%20229.203%20267.434%20222.032%20265.223%20215.251C263.013%20208.485%20259.694%20202.528%20255.273%20197.387Z'%20fill='%23FFFFFF'/%3e%3cpath%20d='M492.301%20198.571C487.303%20193.079%20481.241%20188.83%20474.108%20185.84C466.975%20182.843%20458.913%20181.344%20449.929%20181.344C438.083%20181.344%20427.098%20183.989%20416.975%20189.264C406.845%20194.547%20398.071%20201.891%20390.653%20211.31C383.235%20220.729%20377.383%20231.961%20373.105%20245.014C368.827%20258.067%20366.684%20272.372%20366.684%20287.921C366.684%20297.624%20368.077%20306.541%20370.857%20314.671C373.637%20322.802%20377.526%20329.763%20382.516%20335.54C387.506%20341.317%20393.5%20345.813%20400.491%20349.021C407.482%20352.228%20415.26%20353.839%20423.816%20353.839C435.797%20353.839%20446.887%20351.021%20457.092%20345.386C467.29%20339.751%20476.169%20332.048%20483.736%20322.277C491.297%20312.506%20497.216%20301.019%20501.494%20287.823C505.773%20274.628%20507.916%20260.398%20507.916%20245.127C507.916%20235.28%20506.56%20226.438%20503.847%20218.593C501.142%20210.733%20497.291%20204.064%20492.301%20198.571Z'%20fill='%23FFFFFF'/%3e%3cpath%20d='M639.924%2092.2794L659.211%200H92.881L0%20443.638H473.509L447.426%20562.623H901.004L1001.06%2092.2719H639.924V92.2794ZM306.846%20249.503C306.704%20252.575%20306.486%20255.715%20306.202%20258.922C305.917%20262.129%20305.632%20265.276%20305.347%20268.341C305.063%20271.405%20304.703%20274.013%20304.276%20276.149H138.003C137.86%20278.149%20137.748%20280.075%20137.681%20281.926C137.606%20283.784%20137.576%20285.71%20137.576%20287.703C137.576%20299.543%20139.284%20309.636%20142.708%20317.983C146.132%20326.331%20150.591%20333.142%20156.083%20338.425C161.575%20343.708%20167.749%20347.522%20174.598%20349.875C181.446%20352.228%20188.362%20353.412%20195.353%20353.412C210.616%20353.412%20222.881%20350.774%20232.158%20345.491C241.426%20340.216%20248.492%20333.082%20253.34%20324.09H292.505C290.077%20332.94%20286.083%20341.213%20280.524%20348.916C274.957%20356.619%20267.936%20363.288%20259.446%20368.923C250.957%20374.557%20241.111%20378.979%20229.917%20382.193C218.715%20385.4%20206.412%20387.004%20193%20387.004C180.157%20387.004%20168.034%20384.898%20156.622%20380.687C145.203%20376.483%20135.253%20370.271%20126.771%20362.066C118.282%20353.861%20111.576%20343.768%20106.653%20331.786C101.73%20319.797%2099.2724%20306.032%2099.2724%20290.476C99.2724%20269.217%20102.232%20249.855%20108.151%20232.373C114.071%20214.899%20122.313%20199.92%20132.87%20187.429C143.428%20174.945%20156.09%20165.279%20170.859%20158.43C185.627%20151.581%20201.782%20148.157%20219.33%20148.157C231.168%20148.157%20242.408%20150.225%20253.033%20154.368C263.657%20158.505%20272.971%20164.529%20280.958%20172.45C288.946%20180.37%20295.292%20190.104%20300.005%20201.658C304.711%20213.213%20307.071%20226.483%20307.071%20241.462C307.063%20243.763%20306.988%20246.438%20306.846%20249.503ZM481.601%20382.935L488.232%20351.478H484.808C476.386%20362.463%20465.829%20371.133%20453.136%20377.48C440.435%20383.827%20426.739%20387.004%20412.053%20387.004C400.499%20387.004%20389.657%20384.823%20379.526%20380.477C369.396%20376.131%20360.517%20369.882%20352.882%20361.752C345.247%20353.621%20339.222%20343.775%20334.802%20332.221C330.381%20320.659%20328.171%20307.748%20328.171%20293.481C328.171%20279.641%20329.557%20266.407%20332.344%20253.781C335.124%20241.155%20339.088%20229.458%20344.22%20218.683C349.353%20207.908%20355.527%20198.174%20362.735%20189.474C369.936%20180.775%20377.93%20173.356%20386.704%20167.219C395.478%20161.09%20404.964%20156.377%20415.162%20153.095C425.36%20149.813%20436.03%20148.171%20447.156%20148.171C455.429%20148.171%20463.311%20149.318%20470.804%20151.596C478.297%20153.881%20485.07%20157.051%20491.132%20161.12C497.194%20165.189%20502.401%20170.112%20506.754%20175.889C511.108%20181.666%20514.277%20187.983%20516.278%20194.832H519.702L548.16%2060.6503H585.609L517.132%20382.95H481.601V382.935ZM852.406%20501.988H769.505L715.294%20383.01H708.521L608.192%20501.988H525.786L682.124%20316.755L609.698%20152.907H694.195L742.374%20265.711H746.854L837.959%20152.907H921.489L772.24%20324.967L852.406%20501.988Z'%20fill='%23FFFFFF'/%3e%3cpath%20d='M1050.36%20150.673C1046.27%20150.673%201042.42%20149.908%201038.84%20148.377C1035.26%20146.846%201032.11%20144.723%201029.4%20142.007C1026.68%20139.29%201024.56%20136.139%201023.03%20132.56C1021.5%20128.981%201020.73%20125.139%201020.73%20121.043C1020.73%20116.946%201021.5%20113.104%201023.03%20109.525C1024.56%20105.946%201026.68%20102.795%201029.4%20100.079C1032.11%2097.3624%201035.27%2095.239%201038.84%2093.7083C1042.42%2092.1777%201046.27%2091.4124%201050.36%2091.4124C1054.46%2091.4124%201058.3%2092.1777%201061.89%2093.7083C1065.47%2095.239%201068.62%2097.3624%201071.33%20100.079C1074.05%20102.795%201076.17%20105.946%201077.7%20109.525C1079.23%20113.104%201080%20116.946%201080%20121.043C1080%20125.139%201079.23%20128.981%201077.7%20132.56C1076.17%20136.139%201074.05%20139.29%201071.33%20142.007C1068.62%20144.723%201065.47%20146.846%201061.89%20148.377C1058.3%20149.908%201054.47%20150.673%201050.36%20150.673ZM1050.36%20145.15C1054.8%20145.15%201058.85%20144.062%201062.49%20141.894C1066.13%20139.718%201069.05%20136.814%201071.22%20133.168C1073.4%20129.529%201074.48%20125.484%201074.48%20121.035C1074.48%20116.586%201073.39%20112.549%201071.22%20108.902C1069.05%20105.263%201066.14%20102.352%201062.49%20100.176C1058.85%2098.0002%201054.8%2096.9197%201050.36%2096.9197C1045.92%2096.9197%201041.88%2098.0077%201038.23%20100.176C1034.58%20102.352%201031.68%20105.256%201029.5%20108.902C1027.33%20112.541%201026.25%20116.586%201026.25%20121.035C1026.25%20125.484%201027.33%20129.521%201029.5%20133.168C1031.68%20136.814%201034.58%20139.718%201038.23%20141.894C1041.87%20144.07%201045.91%20145.15%201050.36%20145.15ZM1040.32%20134.368V107.027H1053.44C1054.82%20107.027%201056.16%20107.357%201057.45%20108.009C1058.75%20108.662%201059.82%20109.63%201060.68%20110.898C1061.53%20112.174%201061.96%20113.734%201061.96%20115.588C1061.96%20117.441%201061.52%20119.039%201060.64%20120.382C1059.76%20121.725%201058.65%20122.761%201057.31%20123.474C1055.97%20124.194%201054.58%20124.547%201053.14%20124.547H1042.99V120.802H1051.88C1053.14%20120.802%201054.26%20120.352%201055.27%20119.452C1056.27%20118.552%201056.77%20117.261%201056.77%20115.58C1056.77%20113.9%201056.27%20112.616%201055.27%20111.874C1054.27%20111.131%201053.18%20110.763%201051.99%20110.763H1045.1V134.361H1040.32V134.368ZM1056.25%20121.658L1063.07%20134.368H1057.74L1051.1%20121.658H1056.25Z'%20fill='%23FFFFFF'/%3e%3c/g%3e%3cpath%20d='M1142.1%20319.054L1167.87%20267.107H1200.71L1159.91%20338.956L1201.71%20412H1169.07L1142.49%20359.257L1116.02%20412H1082.99L1124.78%20338.956L1084.08%20267.107H1116.72L1142.1%20319.054ZM1241.94%20358.195V412H1215.04V269.336H1270.88C1278.22%20269.336%201284.6%20270.559%201290.04%20273.005C1295.47%20275.315%201299.96%20278.44%201303.49%20282.38C1307.16%20286.184%201309.88%20290.6%201311.64%20295.627C1313.54%20300.518%201314.5%20305.546%201314.5%20310.709V315.6C1314.5%20320.899%201313.54%20326.13%201311.64%20331.293C1309.88%20336.32%201307.16%20340.872%201303.49%20344.948C1299.96%20348.888%201295.47%20352.081%201290.04%20354.527C1284.6%20356.973%201278.22%20358.195%201270.88%20358.195H1241.94ZM1241.94%20332.516H1268.23C1274.21%20332.516%201278.9%20330.885%201282.29%20327.625C1285.83%20324.364%201287.59%20320.152%201287.59%20314.989V312.543C1287.59%20307.38%201285.83%20303.168%201282.29%20299.907C1278.9%20296.646%201274.21%20295.016%201268.23%20295.016H1241.94V332.516ZM1337.79%20269.336H1427.87V295.016H1364.69V327.625H1425.43V353.304H1364.69V386.321H1430.32V412H1337.79V269.336ZM1552.46%20412H1525.56V369.201C1525.56%20365.94%201524.68%20363.291%201522.91%20361.252C1521.28%20359.214%201518.49%20358.195%201514.55%20358.195H1483.57V412H1456.67V269.336H1511.29C1518.63%20269.336%201525.08%20270.355%201530.65%20272.393C1536.22%20274.431%201540.84%20277.285%201544.51%20280.953C1548.32%20284.486%201551.17%20288.63%201553.07%20293.385C1555.11%20298.141%201556.13%20303.236%201556.13%20308.671V313.562C1556.13%20319.404%201554.57%20324.907%201551.44%20330.07C1548.32%20335.097%201543.49%20338.97%201536.97%20341.687V345.356C1541.73%20345.899%201545.46%20347.733%201548.18%20350.858C1551.03%20353.983%201552.46%20357.924%201552.46%20362.679V412ZM1483.57%20332.516H1509.25C1515.78%20332.516%201520.73%20331.021%201524.13%20328.032C1527.53%20324.907%201529.23%20320.559%201529.23%20314.989V312.543C1529.23%20307.788%201527.53%20303.711%201524.13%20300.315C1520.73%20296.782%201515.78%20295.016%201509.25%20295.016H1483.57V332.516ZM1571.48%20269.336H1674.19V295.016H1636.29V412H1609.38V295.016H1571.48V269.336Z'%20fill='%2300262B'/%3e%3cdefs%3e%3cclipPath%20id='clip0_123_428'%3e%3crect%20width='1080'%20height='563.25'%20fill='%23FFFFFF'/%3e%3c/clipPath%3e%3c/defs%3e%3c/svg%3e", Qs = {
|
1935
|
-
edx:
|
1939
|
+
const Js = "data:image/svg+xml,%3csvg%20xmlns='http://www.w3.org/2000/svg'%20height='48'%20viewBox='0%20-960%20960%20960'%20width='48'%3e%3cpath%20d='M281-240q-14%200-27.5-14T240-282v-98h500v-340h100q14%200%2027%2014t13%2029v596L721-240H281ZM80-280v-558q0-14%2013-28t27-14h519q15%200%2028%2013.5t13%2028.5v356q0%2014-13%2028t-28%2014H240L80-280Zm540-220v-320H140v320h480Zm-480%200v-320%20320Z'%20fill='%23FFFFFF'/%3e%3c/svg%3e", ho = "data:image/svg+xml,%3csvg%20width='1871'%20height='564'%20viewBox='0%200%201871%20564'%20fill='none'%20xmlns='http://www.w3.org/2000/svg'%3e%3cpath%20d='M928%20188H1871L1808%20491H865L928%20188Z'%20fill='%23F0CC00'/%3e%3cg%20clip-path='url(%23clip0_123_428)'%3e%3cpath%20d='M255.273%20197.387C250.852%20192.254%20245.352%20188.185%20238.796%20185.188C232.232%20182.191%20224.597%20180.692%20215.898%20180.692C207.049%20180.692%20198.777%20182.266%20191.074%20185.405C183.372%20188.545%20176.381%20193.004%20170.102%20198.781C163.823%20204.558%20158.406%20211.482%20153.835%20219.537C149.264%20227.6%20145.63%20236.547%20142.926%20246.393H268.116C268.258%20245.681%20268.363%20244.362%20268.438%20242.437C268.505%20240.511%20268.543%20238.622%20268.543%20236.764C268.543%20229.203%20267.434%20222.032%20265.223%20215.251C263.013%20208.485%20259.694%20202.528%20255.273%20197.387Z'%20fill='%23FFFFFF'/%3e%3cpath%20d='M492.301%20198.571C487.303%20193.079%20481.241%20188.83%20474.108%20185.84C466.975%20182.843%20458.913%20181.344%20449.929%20181.344C438.083%20181.344%20427.098%20183.989%20416.975%20189.264C406.845%20194.547%20398.071%20201.891%20390.653%20211.31C383.235%20220.729%20377.383%20231.961%20373.105%20245.014C368.827%20258.067%20366.684%20272.372%20366.684%20287.921C366.684%20297.624%20368.077%20306.541%20370.857%20314.671C373.637%20322.802%20377.526%20329.763%20382.516%20335.54C387.506%20341.317%20393.5%20345.813%20400.491%20349.021C407.482%20352.228%20415.26%20353.839%20423.816%20353.839C435.797%20353.839%20446.887%20351.021%20457.092%20345.386C467.29%20339.751%20476.169%20332.048%20483.736%20322.277C491.297%20312.506%20497.216%20301.019%20501.494%20287.823C505.773%20274.628%20507.916%20260.398%20507.916%20245.127C507.916%20235.28%20506.56%20226.438%20503.847%20218.593C501.142%20210.733%20497.291%20204.064%20492.301%20198.571Z'%20fill='%23FFFFFF'/%3e%3cpath%20d='M639.924%2092.2794L659.211%200H92.881L0%20443.638H473.509L447.426%20562.623H901.004L1001.06%2092.2719H639.924V92.2794ZM306.846%20249.503C306.704%20252.575%20306.486%20255.715%20306.202%20258.922C305.917%20262.129%20305.632%20265.276%20305.347%20268.341C305.063%20271.405%20304.703%20274.013%20304.276%20276.149H138.003C137.86%20278.149%20137.748%20280.075%20137.681%20281.926C137.606%20283.784%20137.576%20285.71%20137.576%20287.703C137.576%20299.543%20139.284%20309.636%20142.708%20317.983C146.132%20326.331%20150.591%20333.142%20156.083%20338.425C161.575%20343.708%20167.749%20347.522%20174.598%20349.875C181.446%20352.228%20188.362%20353.412%20195.353%20353.412C210.616%20353.412%20222.881%20350.774%20232.158%20345.491C241.426%20340.216%20248.492%20333.082%20253.34%20324.09H292.505C290.077%20332.94%20286.083%20341.213%20280.524%20348.916C274.957%20356.619%20267.936%20363.288%20259.446%20368.923C250.957%20374.557%20241.111%20378.979%20229.917%20382.193C218.715%20385.4%20206.412%20387.004%20193%20387.004C180.157%20387.004%20168.034%20384.898%20156.622%20380.687C145.203%20376.483%20135.253%20370.271%20126.771%20362.066C118.282%20353.861%20111.576%20343.768%20106.653%20331.786C101.73%20319.797%2099.2724%20306.032%2099.2724%20290.476C99.2724%20269.217%20102.232%20249.855%20108.151%20232.373C114.071%20214.899%20122.313%20199.92%20132.87%20187.429C143.428%20174.945%20156.09%20165.279%20170.859%20158.43C185.627%20151.581%20201.782%20148.157%20219.33%20148.157C231.168%20148.157%20242.408%20150.225%20253.033%20154.368C263.657%20158.505%20272.971%20164.529%20280.958%20172.45C288.946%20180.37%20295.292%20190.104%20300.005%20201.658C304.711%20213.213%20307.071%20226.483%20307.071%20241.462C307.063%20243.763%20306.988%20246.438%20306.846%20249.503ZM481.601%20382.935L488.232%20351.478H484.808C476.386%20362.463%20465.829%20371.133%20453.136%20377.48C440.435%20383.827%20426.739%20387.004%20412.053%20387.004C400.499%20387.004%20389.657%20384.823%20379.526%20380.477C369.396%20376.131%20360.517%20369.882%20352.882%20361.752C345.247%20353.621%20339.222%20343.775%20334.802%20332.221C330.381%20320.659%20328.171%20307.748%20328.171%20293.481C328.171%20279.641%20329.557%20266.407%20332.344%20253.781C335.124%20241.155%20339.088%20229.458%20344.22%20218.683C349.353%20207.908%20355.527%20198.174%20362.735%20189.474C369.936%20180.775%20377.93%20173.356%20386.704%20167.219C395.478%20161.09%20404.964%20156.377%20415.162%20153.095C425.36%20149.813%20436.03%20148.171%20447.156%20148.171C455.429%20148.171%20463.311%20149.318%20470.804%20151.596C478.297%20153.881%20485.07%20157.051%20491.132%20161.12C497.194%20165.189%20502.401%20170.112%20506.754%20175.889C511.108%20181.666%20514.277%20187.983%20516.278%20194.832H519.702L548.16%2060.6503H585.609L517.132%20382.95H481.601V382.935ZM852.406%20501.988H769.505L715.294%20383.01H708.521L608.192%20501.988H525.786L682.124%20316.755L609.698%20152.907H694.195L742.374%20265.711H746.854L837.959%20152.907H921.489L772.24%20324.967L852.406%20501.988Z'%20fill='%23FFFFFF'/%3e%3cpath%20d='M1050.36%20150.673C1046.27%20150.673%201042.42%20149.908%201038.84%20148.377C1035.26%20146.846%201032.11%20144.723%201029.4%20142.007C1026.68%20139.29%201024.56%20136.139%201023.03%20132.56C1021.5%20128.981%201020.73%20125.139%201020.73%20121.043C1020.73%20116.946%201021.5%20113.104%201023.03%20109.525C1024.56%20105.946%201026.68%20102.795%201029.4%20100.079C1032.11%2097.3624%201035.27%2095.239%201038.84%2093.7083C1042.42%2092.1777%201046.27%2091.4124%201050.36%2091.4124C1054.46%2091.4124%201058.3%2092.1777%201061.89%2093.7083C1065.47%2095.239%201068.62%2097.3624%201071.33%20100.079C1074.05%20102.795%201076.17%20105.946%201077.7%20109.525C1079.23%20113.104%201080%20116.946%201080%20121.043C1080%20125.139%201079.23%20128.981%201077.7%20132.56C1076.17%20136.139%201074.05%20139.29%201071.33%20142.007C1068.62%20144.723%201065.47%20146.846%201061.89%20148.377C1058.3%20149.908%201054.47%20150.673%201050.36%20150.673ZM1050.36%20145.15C1054.8%20145.15%201058.85%20144.062%201062.49%20141.894C1066.13%20139.718%201069.05%20136.814%201071.22%20133.168C1073.4%20129.529%201074.48%20125.484%201074.48%20121.035C1074.48%20116.586%201073.39%20112.549%201071.22%20108.902C1069.05%20105.263%201066.14%20102.352%201062.49%20100.176C1058.85%2098.0002%201054.8%2096.9197%201050.36%2096.9197C1045.92%2096.9197%201041.88%2098.0077%201038.23%20100.176C1034.58%20102.352%201031.68%20105.256%201029.5%20108.902C1027.33%20112.541%201026.25%20116.586%201026.25%20121.035C1026.25%20125.484%201027.33%20129.521%201029.5%20133.168C1031.68%20136.814%201034.58%20139.718%201038.23%20141.894C1041.87%20144.07%201045.91%20145.15%201050.36%20145.15ZM1040.32%20134.368V107.027H1053.44C1054.82%20107.027%201056.16%20107.357%201057.45%20108.009C1058.75%20108.662%201059.82%20109.63%201060.68%20110.898C1061.53%20112.174%201061.96%20113.734%201061.96%20115.588C1061.96%20117.441%201061.52%20119.039%201060.64%20120.382C1059.76%20121.725%201058.65%20122.761%201057.31%20123.474C1055.97%20124.194%201054.58%20124.547%201053.14%20124.547H1042.99V120.802H1051.88C1053.14%20120.802%201054.26%20120.352%201055.27%20119.452C1056.27%20118.552%201056.77%20117.261%201056.77%20115.58C1056.77%20113.9%201056.27%20112.616%201055.27%20111.874C1054.27%20111.131%201053.18%20110.763%201051.99%20110.763H1045.1V134.361H1040.32V134.368ZM1056.25%20121.658L1063.07%20134.368H1057.74L1051.1%20121.658H1056.25Z'%20fill='%23FFFFFF'/%3e%3c/g%3e%3cpath%20d='M1142.1%20319.054L1167.87%20267.107H1200.71L1159.91%20338.956L1201.71%20412H1169.07L1142.49%20359.257L1116.02%20412H1082.99L1124.78%20338.956L1084.08%20267.107H1116.72L1142.1%20319.054ZM1241.94%20358.195V412H1215.04V269.336H1270.88C1278.22%20269.336%201284.6%20270.559%201290.04%20273.005C1295.47%20275.315%201299.96%20278.44%201303.49%20282.38C1307.16%20286.184%201309.88%20290.6%201311.64%20295.627C1313.54%20300.518%201314.5%20305.546%201314.5%20310.709V315.6C1314.5%20320.899%201313.54%20326.13%201311.64%20331.293C1309.88%20336.32%201307.16%20340.872%201303.49%20344.948C1299.96%20348.888%201295.47%20352.081%201290.04%20354.527C1284.6%20356.973%201278.22%20358.195%201270.88%20358.195H1241.94ZM1241.94%20332.516H1268.23C1274.21%20332.516%201278.9%20330.885%201282.29%20327.625C1285.83%20324.364%201287.59%20320.152%201287.59%20314.989V312.543C1287.59%20307.38%201285.83%20303.168%201282.29%20299.907C1278.9%20296.646%201274.21%20295.016%201268.23%20295.016H1241.94V332.516ZM1337.79%20269.336H1427.87V295.016H1364.69V327.625H1425.43V353.304H1364.69V386.321H1430.32V412H1337.79V269.336ZM1552.46%20412H1525.56V369.201C1525.56%20365.94%201524.68%20363.291%201522.91%20361.252C1521.28%20359.214%201518.49%20358.195%201514.55%20358.195H1483.57V412H1456.67V269.336H1511.29C1518.63%20269.336%201525.08%20270.355%201530.65%20272.393C1536.22%20274.431%201540.84%20277.285%201544.51%20280.953C1548.32%20284.486%201551.17%20288.63%201553.07%20293.385C1555.11%20298.141%201556.13%20303.236%201556.13%20308.671V313.562C1556.13%20319.404%201554.57%20324.907%201551.44%20330.07C1548.32%20335.097%201543.49%20338.97%201536.97%20341.687V345.356C1541.73%20345.899%201545.46%20347.733%201548.18%20350.858C1551.03%20353.983%201552.46%20357.924%201552.46%20362.679V412ZM1483.57%20332.516H1509.25C1515.78%20332.516%201520.73%20331.021%201524.13%20328.032C1527.53%20324.907%201529.23%20320.559%201529.23%20314.989V312.543C1529.23%20307.788%201527.53%20303.711%201524.13%20300.315C1520.73%20296.782%201515.78%20295.016%201509.25%20295.016H1483.57V332.516ZM1571.48%20269.336H1674.19V295.016H1636.29V412H1609.38V295.016H1571.48V269.336Z'%20fill='%2300262B'/%3e%3cdefs%3e%3cclipPath%20id='clip0_123_428'%3e%3crect%20width='1080'%20height='563.25'%20fill='%23FFFFFF'/%3e%3c/clipPath%3e%3c/defs%3e%3c/svg%3e", Qs = {
|
1940
|
+
edx: ho,
|
1936
1941
|
default: Js
|
1937
1942
|
}, Ur = ({ handleFloatingActionButtonClick: e }) => {
|
1938
1943
|
var r, i;
|
@@ -1970,8 +1975,8 @@ Ur.defaultProps = {
|
|
1970
1975
|
* tabbable 6.2.0
|
1971
1976
|
* @license MIT, https://github.com/focus-trap/tabbable/blob/master/LICENSE
|
1972
1977
|
*/
|
1973
|
-
var
|
1974
|
-
} : Element.prototype.matches || Element.prototype.msMatchesSelector || Element.prototype.webkitMatchesSelector, kn = !
|
1978
|
+
var mo = ["input:not([inert])", "select:not([inert])", "textarea:not([inert])", "a[href]:not([inert])", "button:not([inert])", "[tabindex]:not(slot):not([inert])", "audio[controls]:not([inert])", "video[controls]:not([inert])", '[contenteditable]:not([contenteditable="false"]):not([inert])', "details>summary:first-of-type:not([inert])", "details:not([inert])"], Cn = /* @__PURE__ */ mo.join(","), go = typeof Element > "u", kt = go ? function() {
|
1979
|
+
} : Element.prototype.matches || Element.prototype.msMatchesSelector || Element.prototype.webkitMatchesSelector, kn = !go && Element.prototype.getRootNode ? function(e) {
|
1975
1980
|
var t;
|
1976
1981
|
return e == null || (t = e.getRootNode) === null || t === void 0 ? void 0 : t.call(e);
|
1977
1982
|
} : function(e) {
|
@@ -1984,12 +1989,12 @@ var ho = ["input:not([inert])", "select:not([inert])", "textarea:not([inert])",
|
|
1984
1989
|
}, eu = function(t) {
|
1985
1990
|
var n, r = t == null || (n = t.getAttribute) === null || n === void 0 ? void 0 : n.call(t, "contenteditable");
|
1986
1991
|
return r === "" || r === "true";
|
1987
|
-
},
|
1992
|
+
}, yo = function(t, n, r) {
|
1988
1993
|
if (Sn(t))
|
1989
1994
|
return [];
|
1990
1995
|
var i = Array.prototype.slice.apply(t.querySelectorAll(Cn));
|
1991
1996
|
return n && kt.call(t, Cn) && i.unshift(t), i = i.filter(r), i;
|
1992
|
-
},
|
1997
|
+
}, bo = function e(t, n, r) {
|
1993
1998
|
for (var i = [], a = Array.from(t); a.length; ) {
|
1994
1999
|
var o = a.shift();
|
1995
2000
|
if (!Sn(o, !1))
|
@@ -2015,21 +2020,21 @@ var ho = ["input:not([inert])", "select:not([inert])", "textarea:not([inert])",
|
|
2015
2020
|
}
|
2016
2021
|
}
|
2017
2022
|
return i;
|
2018
|
-
},
|
2023
|
+
}, vo = function(t) {
|
2019
2024
|
return !isNaN(parseInt(t.getAttribute("tabindex"), 10));
|
2020
2025
|
}, dt = function(t) {
|
2021
2026
|
if (!t)
|
2022
2027
|
throw new Error("No node provided");
|
2023
|
-
return t.tabIndex < 0 && (/^(AUDIO|VIDEO|DETAILS)$/.test(t.tagName) || eu(t)) && !
|
2028
|
+
return t.tabIndex < 0 && (/^(AUDIO|VIDEO|DETAILS)$/.test(t.tagName) || eu(t)) && !vo(t) ? 0 : t.tabIndex;
|
2024
2029
|
}, tu = function(t, n) {
|
2025
2030
|
var r = dt(t);
|
2026
|
-
return r < 0 && n && !
|
2031
|
+
return r < 0 && n && !vo(t) ? 0 : r;
|
2027
2032
|
}, nu = function(t, n) {
|
2028
2033
|
return t.tabIndex === n.tabIndex ? t.documentOrder - n.documentOrder : t.tabIndex - n.tabIndex;
|
2029
|
-
},
|
2034
|
+
}, xo = function(t) {
|
2030
2035
|
return t.tagName === "INPUT";
|
2031
2036
|
}, ru = function(t) {
|
2032
|
-
return
|
2037
|
+
return xo(t) && t.type === "hidden";
|
2033
2038
|
}, iu = function(t) {
|
2034
2039
|
var n = t.tagName === "DETAILS" && Array.prototype.slice.apply(t.children).some(function(r) {
|
2035
2040
|
return r.tagName === "SUMMARY";
|
@@ -2056,7 +2061,7 @@ var ho = ["input:not([inert])", "select:not([inert])", "textarea:not([inert])",
|
|
2056
2061
|
var a = au(i, t.form);
|
2057
2062
|
return !a || a === t;
|
2058
2063
|
}, lu = function(t) {
|
2059
|
-
return
|
2064
|
+
return xo(t) && t.type === "radio";
|
2060
2065
|
}, su = function(t) {
|
2061
2066
|
return lu(t) && !ou(t);
|
2062
2067
|
}, uu = function(t) {
|
@@ -2116,7 +2121,7 @@ var ho = ["input:not([inert])", "select:not([inert])", "textarea:not([inert])",
|
|
2116
2121
|
// note related to `candidateSelectors`)
|
2117
2122
|
Sn(n) || ru(n) || cu(n, t) || // For a details element with a summary, the summary element gets the focus
|
2118
2123
|
iu(n) || fu(n));
|
2119
|
-
},
|
2124
|
+
}, Er = function(t, n) {
|
2120
2125
|
return !(su(n) || dt(n) < 0 || !_n(t, n));
|
2121
2126
|
}, du = function(t) {
|
2122
2127
|
var n = parseInt(t.getAttribute("tabindex"), 10);
|
@@ -2135,51 +2140,51 @@ var ho = ["input:not([inert])", "select:not([inert])", "textarea:not([inert])",
|
|
2135
2140
|
}), r.sort(nu).reduce(function(i, a) {
|
2136
2141
|
return a.isScope ? i.push.apply(i, a.content) : i.push(a.content), i;
|
2137
2142
|
}, []).concat(n);
|
2138
|
-
},
|
2143
|
+
}, wo = function(t, n) {
|
2139
2144
|
n = n || {};
|
2140
2145
|
var r;
|
2141
|
-
return n.getShadowRoot ? r =
|
2142
|
-
filter:
|
2146
|
+
return n.getShadowRoot ? r = bo([t], n.includeContainer, {
|
2147
|
+
filter: Er.bind(null, n),
|
2143
2148
|
flatten: !1,
|
2144
2149
|
getShadowRoot: n.getShadowRoot,
|
2145
2150
|
shadowRootFilter: du
|
2146
|
-
}) : r =
|
2147
|
-
},
|
2151
|
+
}) : r = yo(t, n.includeContainer, Er.bind(null, n)), pu(r);
|
2152
|
+
}, Co = function(t, n) {
|
2148
2153
|
n = n || {};
|
2149
2154
|
var r;
|
2150
|
-
return n.getShadowRoot ? r =
|
2155
|
+
return n.getShadowRoot ? r = bo([t], n.includeContainer, {
|
2151
2156
|
filter: _n.bind(null, n),
|
2152
2157
|
flatten: !0,
|
2153
2158
|
getShadowRoot: n.getShadowRoot
|
2154
|
-
}) : r =
|
2159
|
+
}) : r = yo(t, n.includeContainer, _n.bind(null, n)), r;
|
2155
2160
|
}, wt = function(t, n) {
|
2156
2161
|
if (n = n || {}, !t)
|
2157
2162
|
throw new Error("No node provided");
|
2158
|
-
return kt.call(t, Cn) === !1 ? !1 :
|
2159
|
-
}, hu = /* @__PURE__ */
|
2163
|
+
return kt.call(t, Cn) === !1 ? !1 : Er(n, t);
|
2164
|
+
}, hu = /* @__PURE__ */ mo.concat("iframe").join(","), yn = function(t, n) {
|
2160
2165
|
if (n = n || {}, !t)
|
2161
2166
|
throw new Error("No node provided");
|
2162
2167
|
return kt.call(t, hu) === !1 ? !1 : _n(n, t);
|
2163
2168
|
};
|
2164
2169
|
const mu = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineProperty({
|
2165
2170
|
__proto__: null,
|
2166
|
-
focusable:
|
2171
|
+
focusable: Co,
|
2167
2172
|
getTabIndex: dt,
|
2168
2173
|
isFocusable: yn,
|
2169
2174
|
isTabbable: wt,
|
2170
|
-
tabbable:
|
2175
|
+
tabbable: wo
|
2171
2176
|
}, Symbol.toStringTag, { value: "Module" }));
|
2172
2177
|
/*!
|
2173
2178
|
* focus-trap 7.6.4
|
2174
2179
|
* @license MIT, https://github.com/focus-trap/focus-trap/blob/master/LICENSE
|
2175
2180
|
*/
|
2176
|
-
function
|
2181
|
+
function Tr(e, t) {
|
2177
2182
|
(t == null || t > e.length) && (t = e.length);
|
2178
2183
|
for (var n = 0, r = Array(t); n < t; n++) r[n] = e[n];
|
2179
2184
|
return r;
|
2180
2185
|
}
|
2181
2186
|
function gu(e) {
|
2182
|
-
if (Array.isArray(e)) return
|
2187
|
+
if (Array.isArray(e)) return Tr(e);
|
2183
2188
|
}
|
2184
2189
|
function yu(e, t, n) {
|
2185
2190
|
return (t = Cu(t)) in e ? Object.defineProperty(e, t, {
|
@@ -2236,9 +2241,9 @@ function Cu(e) {
|
|
2236
2241
|
}
|
2237
2242
|
function ku(e, t) {
|
2238
2243
|
if (e) {
|
2239
|
-
if (typeof e == "string") return
|
2244
|
+
if (typeof e == "string") return Tr(e, t);
|
2240
2245
|
var n = {}.toString.call(e).slice(8, -1);
|
2241
|
-
return n === "Object" && e.constructor && (n = e.constructor.name), n === "Map" || n === "Set" ? Array.from(e) : n === "Arguments" || /^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n) ?
|
2246
|
+
return n === "Object" && e.constructor && (n = e.constructor.name), n === "Map" || n === "Set" ? Array.from(e) : n === "Arguments" || /^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n) ? Tr(e, t) : void 0;
|
2242
2247
|
}
|
2243
2248
|
}
|
2244
2249
|
var qi = {
|
@@ -2320,8 +2325,8 @@ var qi = {
|
|
2320
2325
|
return T && T[S] !== void 0 ? T[S] : a[O || S];
|
2321
2326
|
}, u = function(T, S) {
|
2322
2327
|
var O = typeof (S == null ? void 0 : S.composedPath) == "function" ? S.composedPath() : void 0;
|
2323
|
-
return o.containerGroups.findIndex(function(
|
2324
|
-
var H =
|
2328
|
+
return o.containerGroups.findIndex(function(L) {
|
2329
|
+
var H = L.container, j = L.tabbableNodes;
|
2325
2330
|
return H.contains(T) || // fall back to explicit tabbable search which will take into consideration any
|
2326
2331
|
// web components if the `tabbableOptions.getShadowRoot` option was used for
|
2327
2332
|
// the trap, enabling shadow DOM support in tabbable (`Node.contains()` doesn't
|
@@ -2331,7 +2336,7 @@ var qi = {
|
|
2331
2336
|
});
|
2332
2337
|
});
|
2333
2338
|
}, c = function(T) {
|
2334
|
-
var S = arguments.length > 1 && arguments[1] !== void 0 ? arguments[1] : {}, O = S.hasFallback,
|
2339
|
+
var S = arguments.length > 1 && arguments[1] !== void 0 ? arguments[1] : {}, O = S.hasFallback, L = O === void 0 ? !1 : O, H = S.params, j = H === void 0 ? [] : H, D = a[T];
|
2335
2340
|
if (typeof D == "function" && (D = D.apply(void 0, xu(j))), D === !0 && (D = void 0), !D) {
|
2336
2341
|
if (D === void 0 || D === !1)
|
2337
2342
|
return D;
|
@@ -2344,7 +2349,7 @@ var qi = {
|
|
2344
2349
|
} catch (W) {
|
2345
2350
|
throw new Error("`".concat(T, '` appears to be an invalid selector; error="').concat(W.message, '"'));
|
2346
2351
|
}
|
2347
|
-
if (!m && !
|
2352
|
+
if (!m && !L)
|
2348
2353
|
throw new Error("`".concat(T, "` as selector refers to no known node"));
|
2349
2354
|
}
|
2350
2355
|
return m;
|
@@ -2367,7 +2372,7 @@ var qi = {
|
|
2367
2372
|
return T;
|
2368
2373
|
}, p = function() {
|
2369
2374
|
if (o.containerGroups = o.containers.map(function(T) {
|
2370
|
-
var S =
|
2375
|
+
var S = wo(T, a.tabbableOptions), O = Co(T, a.tabbableOptions), L = S.length > 0 ? S[0] : void 0, H = S.length > 0 ? S[S.length - 1] : void 0, j = O.find(function(W) {
|
2371
2376
|
return wt(W);
|
2372
2377
|
}), D = O.slice().reverse().find(function(W) {
|
2373
2378
|
return wt(W);
|
@@ -2381,7 +2386,7 @@ var qi = {
|
|
2381
2386
|
/** True if at least one node with positive `tabindex` was found in this container. */
|
2382
2387
|
posTabIndexesFound: m,
|
2383
2388
|
/** First tabbable node in container, __tabindex__ order; `undefined` if none. */
|
2384
|
-
firstTabbableNode:
|
2389
|
+
firstTabbableNode: L,
|
2385
2390
|
/** Last tabbable node in container, __tabindex__ order; `undefined` if none. */
|
2386
2391
|
lastTabbableNode: H,
|
2387
2392
|
// NOTE: DOM order is NOT NECESSARILY "document position" order, but figuring that out
|
@@ -2440,7 +2445,7 @@ var qi = {
|
|
2440
2445
|
});
|
2441
2446
|
return S || (S === !1 ? !1 : T);
|
2442
2447
|
}, v = function(T) {
|
2443
|
-
var S = T.target, O = T.event,
|
2448
|
+
var S = T.target, O = T.event, L = T.isBackward, H = L === void 0 ? !1 : L;
|
2444
2449
|
S = S || dn(O), p();
|
2445
2450
|
var j = null;
|
2446
2451
|
if (o.tabbableGroups.length > 0) {
|
@@ -2492,7 +2497,7 @@ var qi = {
|
|
2492
2497
|
O && (o.mostRecentlyFocusedNode = S);
|
2493
2498
|
else {
|
2494
2499
|
T.stopImmediatePropagation();
|
2495
|
-
var
|
2500
|
+
var L, H = !0;
|
2496
2501
|
if (o.mostRecentlyFocusedNode)
|
2497
2502
|
if (dt(o.mostRecentlyFocusedNode) > 0) {
|
2498
2503
|
var j = u(o.mostRecentlyFocusedNode), D = o.containerGroups[j].tabbableNodes;
|
@@ -2500,7 +2505,7 @@ var qi = {
|
|
2500
2505
|
var m = D.findIndex(function(W) {
|
2501
2506
|
return W === o.mostRecentlyFocusedNode;
|
2502
2507
|
});
|
2503
|
-
m >= 0 && (a.isKeyForward(o.recentNavEvent) ? m + 1 < D.length && (
|
2508
|
+
m >= 0 && (a.isKeyForward(o.recentNavEvent) ? m + 1 < D.length && (L = D[m + 1], H = !1) : m - 1 >= 0 && (L = D[m - 1], H = !1));
|
2504
2509
|
}
|
2505
2510
|
} else
|
2506
2511
|
o.containerGroups.some(function(W) {
|
@@ -2510,12 +2515,12 @@ var qi = {
|
|
2510
2515
|
}) || (H = !1);
|
2511
2516
|
else
|
2512
2517
|
H = !1;
|
2513
|
-
H && (
|
2518
|
+
H && (L = v({
|
2514
2519
|
// move FROM the MRU node, not event-related node (which will be the node that is
|
2515
2520
|
// outside the trap causing the focus escape we're trying to fix)
|
2516
2521
|
target: o.mostRecentlyFocusedNode,
|
2517
2522
|
isBackward: a.isKeyBackward(o.recentNavEvent)
|
2518
|
-
})), y(
|
2523
|
+
})), y(L || o.mostRecentlyFocusedNode || d());
|
2519
2524
|
}
|
2520
2525
|
o.recentNavEvent = void 0;
|
2521
2526
|
}, A = function(T) {
|
@@ -2555,8 +2560,8 @@ var qi = {
|
|
2555
2560
|
return r.removeEventListener("focusin", P, !0), r.removeEventListener("mousedown", g, !0), r.removeEventListener("touchstart", g, !0), r.removeEventListener("click", b, !0), r.removeEventListener("keydown", q, !0), r.removeEventListener("keydown", I), l;
|
2556
2561
|
}, F = function(T) {
|
2557
2562
|
var S = T.some(function(O) {
|
2558
|
-
var
|
2559
|
-
return
|
2563
|
+
var L = Array.from(O.removedNodes);
|
2564
|
+
return L.some(function(H) {
|
2560
2565
|
return H === o.mostRecentlyFocusedNode;
|
2561
2566
|
});
|
2562
2567
|
});
|
@@ -2579,12 +2584,12 @@ var qi = {
|
|
2579
2584
|
activate: function(T) {
|
2580
2585
|
if (o.active)
|
2581
2586
|
return this;
|
2582
|
-
var S = s(T, "onActivate"), O = s(T, "onPostActivate"),
|
2583
|
-
|
2587
|
+
var S = s(T, "onActivate"), O = s(T, "onPostActivate"), L = s(T, "checkCanFocusTrap");
|
2588
|
+
L || p(), o.active = !0, o.paused = !1, o.nodeFocusedBeforeActivation = r.activeElement, S == null || S();
|
2584
2589
|
var H = function() {
|
2585
|
-
|
2590
|
+
L && p(), E(), M(), O == null || O();
|
2586
2591
|
};
|
2587
|
-
return
|
2592
|
+
return L ? (L(o.containers.concat()).then(H, H), this) : (H(), this);
|
2588
2593
|
},
|
2589
2594
|
deactivate: function(T) {
|
2590
2595
|
if (!o.active)
|
@@ -2595,11 +2600,11 @@ var qi = {
|
|
2595
2600
|
checkCanReturnFocus: a.checkCanReturnFocus
|
2596
2601
|
}, T);
|
2597
2602
|
clearTimeout(o.delayInitialFocusTimer), o.delayInitialFocusTimer = void 0, z(), o.active = !1, o.paused = !1, M(), qi.deactivateTrap(i, l);
|
2598
|
-
var O = s(S, "onDeactivate"),
|
2603
|
+
var O = s(S, "onDeactivate"), L = s(S, "onPostDeactivate"), H = s(S, "checkCanReturnFocus"), j = s(S, "returnFocus", "returnFocusOnDeactivate");
|
2599
2604
|
O == null || O();
|
2600
2605
|
var D = function() {
|
2601
2606
|
Ui(function() {
|
2602
|
-
j && y(h(o.nodeFocusedBeforeActivation)),
|
2607
|
+
j && y(h(o.nodeFocusedBeforeActivation)), L == null || L();
|
2603
2608
|
});
|
2604
2609
|
};
|
2605
2610
|
return j && H ? (H(h(o.nodeFocusedBeforeActivation)).then(D, D), this) : (D(), this);
|
@@ -2627,8 +2632,8 @@ var qi = {
|
|
2627
2632
|
if (o.paused === T)
|
2628
2633
|
return this;
|
2629
2634
|
if (o.paused = T, T) {
|
2630
|
-
var O = s(S, "onPause"),
|
2631
|
-
O == null || O(), z(), M(),
|
2635
|
+
var O = s(S, "onPause"), L = s(S, "onPostPause");
|
2636
|
+
O == null || O(), z(), M(), L == null || L();
|
2632
2637
|
} else {
|
2633
2638
|
var H = s(S, "onUnpause"), j = s(S, "onPostUnpause");
|
2634
2639
|
H == null || H(), p(), E(), M(), j == null || j();
|
@@ -2643,7 +2648,7 @@ const Pu = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineProperty({
|
|
2643
2648
|
createFocusTrap: Iu
|
2644
2649
|
}, Symbol.toStringTag, { value: "Module" })), Au = /* @__PURE__ */ ao(Pu), Fu = /* @__PURE__ */ ao(mu);
|
2645
2650
|
var Qn, $i;
|
2646
|
-
function
|
2651
|
+
function Lu() {
|
2647
2652
|
if ($i) return Qn;
|
2648
2653
|
$i = 1;
|
2649
2654
|
function e(b) {
|
@@ -2725,9 +2730,9 @@ function Nu() {
|
|
2725
2730
|
t(this, E), F = i(this, E, [z]), d(F, "getNodeForOption", function(B) {
|
2726
2731
|
var T, S = (T = this.internalOptions[B]) !== null && T !== void 0 ? T : this.originalOptions[B];
|
2727
2732
|
if (typeof S == "function") {
|
2728
|
-
for (var O = arguments.length,
|
2729
|
-
|
2730
|
-
S = S.apply(void 0,
|
2733
|
+
for (var O = arguments.length, L = new Array(O > 1 ? O - 1 : 0), H = 1; H < O; H++)
|
2734
|
+
L[H - 1] = arguments[H];
|
2735
|
+
S = S.apply(void 0, L);
|
2731
2736
|
}
|
2732
2737
|
if (S === !0 && (S = void 0), !S) {
|
2733
2738
|
if (S === void 0 || S === !1)
|
@@ -2959,8 +2964,8 @@ function Nu() {
|
|
2959
2964
|
_createFocusTrap: g
|
2960
2965
|
}, Qn = q, Qn;
|
2961
2966
|
}
|
2962
|
-
var
|
2963
|
-
const ju = /* @__PURE__ */ nt(
|
2967
|
+
var Nu = Lu();
|
2968
|
+
const ju = /* @__PURE__ */ nt(Nu);
|
2964
2969
|
function $r({ style: e, className: t, children: n, isMounted: r }) {
|
2965
2970
|
const { isMobile: i, isNormalSize: a } = ee(Pe), o = Ue(null);
|
2966
2971
|
return /* @__PURE__ */ k.jsx(
|
@@ -2980,7 +2985,7 @@ function $r({ style: e, className: t, children: n, isMounted: r }) {
|
|
2980
2985
|
tabIndex: -1,
|
2981
2986
|
role: "dialog",
|
2982
2987
|
"aria-modal": !0,
|
2983
|
-
className:
|
2988
|
+
className: po(
|
2984
2989
|
{
|
2985
2990
|
"xpert_chatbot__floating-popup": !i,
|
2986
2991
|
"xpert_chatbot__floating-popup--mobile": i,
|
@@ -3007,15 +3012,15 @@ $r.defaultProps = {
|
|
3007
3012
|
className: "",
|
3008
3013
|
isMounted: !1
|
3009
3014
|
};
|
3010
|
-
function
|
3015
|
+
function ko({ children: e, isMounted: t }) {
|
3011
3016
|
const { widgetMode: n } = ee(ke);
|
3012
3017
|
return n ? /* @__PURE__ */ k.jsx($r, { isMounted: t, children: e }) : /* @__PURE__ */ k.jsx("div", { className: "xpert_chatbot_inline", children: e });
|
3013
3018
|
}
|
3014
|
-
|
3019
|
+
ko.propTypes = {
|
3015
3020
|
children: C.node.isRequired,
|
3016
3021
|
isMounted: C.bool
|
3017
3022
|
};
|
3018
|
-
const
|
3023
|
+
const So = () => {
|
3019
3024
|
const { disclaimer: e } = ee(ke), t = Ue(null);
|
3020
3025
|
return Ce(() => {
|
3021
3026
|
var n;
|
@@ -3047,8 +3052,8 @@ const ko = () => {
|
|
3047
3052
|
}
|
3048
3053
|
);
|
3049
3054
|
};
|
3050
|
-
|
3051
|
-
const
|
3055
|
+
So.displayName = "ConversationScreenDisclaimer";
|
3056
|
+
const _o = Object.freeze(
|
3052
3057
|
{
|
3053
3058
|
left: 0,
|
3054
3059
|
top: 0,
|
@@ -3060,9 +3065,9 @@ const So = Object.freeze(
|
|
3060
3065
|
vFlip: !1,
|
3061
3066
|
hFlip: !1
|
3062
3067
|
}), Vr = Object.freeze({
|
3063
|
-
...
|
3068
|
+
..._o,
|
3064
3069
|
...En
|
3065
|
-
}),
|
3070
|
+
}), Or = Object.freeze({
|
3066
3071
|
...Vr,
|
3067
3072
|
body: "",
|
3068
3073
|
hidden: !1
|
@@ -3075,7 +3080,7 @@ function Mu(e, t) {
|
|
3075
3080
|
}
|
3076
3081
|
function Vi(e, t) {
|
3077
3082
|
const n = Mu(e, t);
|
3078
|
-
for (const r in
|
3083
|
+
for (const r in Or)
|
3079
3084
|
r in En ? r in e && !(r in n) && (n[r] = En[r]) : r in t ? n[r] = t[r] : r in e && (n[r] = e[r]);
|
3080
3085
|
return n;
|
3081
3086
|
}
|
@@ -3104,7 +3109,7 @@ function Ru(e, t, n) {
|
|
3104
3109
|
}
|
3105
3110
|
return o(t), n.forEach(o), Vi(e, a);
|
3106
3111
|
}
|
3107
|
-
function
|
3112
|
+
function Eo(e, t) {
|
3108
3113
|
const n = [];
|
3109
3114
|
if (typeof e != "object" || typeof e.icons != "object")
|
3110
3115
|
return n;
|
@@ -3122,7 +3127,7 @@ const Bu = {
|
|
3122
3127
|
provider: "",
|
3123
3128
|
aliases: {},
|
3124
3129
|
not_found: {},
|
3125
|
-
...
|
3130
|
+
..._o
|
3126
3131
|
};
|
3127
3132
|
function er(e, t) {
|
3128
3133
|
for (const n in t)
|
@@ -3130,7 +3135,7 @@ function er(e, t) {
|
|
3130
3135
|
return !1;
|
3131
3136
|
return !0;
|
3132
3137
|
}
|
3133
|
-
function
|
3138
|
+
function To(e) {
|
3134
3139
|
if (typeof e != "object" || e === null)
|
3135
3140
|
return null;
|
3136
3141
|
const t = e;
|
@@ -3145,7 +3150,7 @@ function Eo(e) {
|
|
3145
3150
|
typeof a.body != "string" || // Check other props
|
3146
3151
|
!er(
|
3147
3152
|
a,
|
3148
|
-
|
3153
|
+
Or
|
3149
3154
|
)
|
3150
3155
|
)
|
3151
3156
|
return null;
|
@@ -3159,14 +3164,14 @@ function Eo(e) {
|
|
3159
3164
|
typeof o != "string" || !n[o] && !r[o] || // Check other props
|
3160
3165
|
!er(
|
3161
3166
|
a,
|
3162
|
-
|
3167
|
+
Or
|
3163
3168
|
)
|
3164
3169
|
)
|
3165
3170
|
return null;
|
3166
3171
|
}
|
3167
3172
|
return t;
|
3168
3173
|
}
|
3169
|
-
const
|
3174
|
+
const Oo = /^[a-z0-9]+(-[a-z0-9]+)*$/, Fn = (e, t, n, r = "") => {
|
3170
3175
|
const i = e.split(":");
|
3171
3176
|
if (e.slice(0, 1) === "@") {
|
3172
3177
|
if (i.length < 2 || i.length > 3)
|
@@ -3217,8 +3222,8 @@ function Mt(e, t) {
|
|
3217
3222
|
const n = Wi[e] || (Wi[e] = /* @__PURE__ */ Object.create(null));
|
3218
3223
|
return n[t] || (n[t] = Hu(e, t));
|
3219
3224
|
}
|
3220
|
-
function
|
3221
|
-
return
|
3225
|
+
function Io(e, t) {
|
3226
|
+
return To(t) ? Eo(t, (n, r) => {
|
3222
3227
|
r ? e.icons[n] = r : e.missing.add(n);
|
3223
3228
|
}) : [];
|
3224
3229
|
}
|
@@ -3231,7 +3236,7 @@ function zu(e, t, n) {
|
|
3231
3236
|
return !1;
|
3232
3237
|
}
|
3233
3238
|
let en = !1;
|
3234
|
-
function
|
3239
|
+
function Po(e) {
|
3235
3240
|
return typeof e == "boolean" && (en = e), en;
|
3236
3241
|
}
|
3237
3242
|
function Gi(e) {
|
@@ -3253,7 +3258,7 @@ function Uu(e, t) {
|
|
3253
3258
|
return !1;
|
3254
3259
|
if (typeof t != "string" && (t = e.provider || ""), en && !t && !e.prefix) {
|
3255
3260
|
let i = !1;
|
3256
|
-
return
|
3261
|
+
return To(e) && (e.prefix = "", Eo(e, (a, o) => {
|
3257
3262
|
qu(a, o) && (i = !0);
|
3258
3263
|
})), i;
|
3259
3264
|
}
|
@@ -3264,14 +3269,14 @@ function Uu(e, t) {
|
|
3264
3269
|
}))
|
3265
3270
|
return !1;
|
3266
3271
|
const r = Mt(t, n);
|
3267
|
-
return !!
|
3272
|
+
return !!Io(r, e);
|
3268
3273
|
}
|
3269
|
-
const
|
3274
|
+
const Ao = Object.freeze({
|
3270
3275
|
width: null,
|
3271
3276
|
height: null
|
3272
|
-
}),
|
3277
|
+
}), Fo = Object.freeze({
|
3273
3278
|
// Dimensions
|
3274
|
-
...
|
3279
|
+
...Ao,
|
3275
3280
|
// Transformations
|
3276
3281
|
...En
|
3277
3282
|
}), $u = /(-?[0-9.]*[0-9]+[0-9.]*)/g, Vu = /^-?[0-9.]*[0-9]+[0-9.]*$/g;
|
@@ -3328,7 +3333,7 @@ function Yu(e, t) {
|
|
3328
3333
|
...Vr,
|
3329
3334
|
...e
|
3330
3335
|
}, r = {
|
3331
|
-
...
|
3336
|
+
...Fo,
|
3332
3337
|
...t
|
3333
3338
|
}, i = {
|
3334
3339
|
left: n.left,
|
@@ -3403,12 +3408,12 @@ function ec(e, t = Ju) {
|
|
3403
3408
|
);
|
3404
3409
|
}), e = e.replace(new RegExp(i, "g"), ""), e;
|
3405
3410
|
}
|
3406
|
-
const
|
3411
|
+
const Ir = /* @__PURE__ */ Object.create(null);
|
3407
3412
|
function tc(e, t) {
|
3408
|
-
|
3413
|
+
Ir[e] = t;
|
3409
3414
|
}
|
3410
|
-
function
|
3411
|
-
return
|
3415
|
+
function Pr(e) {
|
3416
|
+
return Ir[e] || Ir[""];
|
3412
3417
|
}
|
3413
3418
|
function Wr(e) {
|
3414
3419
|
let t;
|
@@ -3582,7 +3587,7 @@ function cc(e) {
|
|
3582
3587
|
c.push(d);
|
3583
3588
|
}), t;
|
3584
3589
|
}
|
3585
|
-
function
|
3590
|
+
function Lo(e, t) {
|
3586
3591
|
e.forEach((n) => {
|
3587
3592
|
const r = n.loaderCallbacks;
|
3588
3593
|
r && (n.loaderCallbacks = r.filter((i) => i.id !== t));
|
@@ -3617,7 +3622,7 @@ function fc(e) {
|
|
3617
3622
|
else
|
3618
3623
|
return n = !0, !0;
|
3619
3624
|
return !1;
|
3620
|
-
}), o.pending.length !== l && (n ||
|
3625
|
+
}), o.pending.length !== l && (n || Lo([e], a.id), a.callback(
|
3621
3626
|
o.loaded.slice(0),
|
3622
3627
|
o.missing.slice(0),
|
3623
3628
|
o.pending.slice(0),
|
@@ -3628,7 +3633,7 @@ function fc(e) {
|
|
3628
3633
|
}
|
3629
3634
|
let dc = 0;
|
3630
3635
|
function pc(e, t, n) {
|
3631
|
-
const r = dc++, i =
|
3636
|
+
const r = dc++, i = Lo.bind(null, n, r);
|
3632
3637
|
if (!t.pending.length)
|
3633
3638
|
return i;
|
3634
3639
|
const a = {
|
@@ -3809,7 +3814,7 @@ function yc(e) {
|
|
3809
3814
|
function bc(e, t, n) {
|
3810
3815
|
let r, i;
|
3811
3816
|
if (typeof e == "string") {
|
3812
|
-
const a =
|
3817
|
+
const a = Pr(e);
|
3813
3818
|
if (!a)
|
3814
3819
|
return n(void 0, 424), Yi;
|
3815
3820
|
i = a.send;
|
@@ -3819,7 +3824,7 @@ function bc(e, t, n) {
|
|
3819
3824
|
const a = Wr(e);
|
3820
3825
|
if (a) {
|
3821
3826
|
r = No(a);
|
3822
|
-
const o = e.resources ? e.resources[0] : "", l =
|
3827
|
+
const o = e.resources ? e.resources[0] : "", l = Pr(o);
|
3823
3828
|
l && (i = l.send);
|
3824
3829
|
}
|
3825
3830
|
}
|
@@ -3835,7 +3840,7 @@ function vc(e) {
|
|
3835
3840
|
function xc(e) {
|
3836
3841
|
const t = [], n = [];
|
3837
3842
|
return e.forEach((r) => {
|
3838
|
-
(r.match(
|
3843
|
+
(r.match(Oo) ? t : n).push(r);
|
3839
3844
|
}), {
|
3840
3845
|
valid: t,
|
3841
3846
|
invalid: n
|
@@ -3850,7 +3855,7 @@ function Vt(e, t, n) {
|
|
3850
3855
|
}
|
3851
3856
|
if (n && typeof n == "object")
|
3852
3857
|
try {
|
3853
|
-
if (!
|
3858
|
+
if (!Io(e, n).length) {
|
3854
3859
|
r();
|
3855
3860
|
return;
|
3856
3861
|
}
|
@@ -3900,7 +3905,7 @@ function wc(e, t) {
|
|
3900
3905
|
const { valid: o, invalid: l } = xc(i);
|
3901
3906
|
if (l.length && Vt(e, l, null), !o.length)
|
3902
3907
|
return;
|
3903
|
-
const s = r.match(
|
3908
|
+
const s = r.match(Oo) ? Pr(n) : null;
|
3904
3909
|
if (!s) {
|
3905
3910
|
Vt(e, o, null);
|
3906
3911
|
return;
|
@@ -3913,7 +3918,7 @@ function wc(e, t) {
|
|
3913
3918
|
}));
|
3914
3919
|
}
|
3915
3920
|
const Cc = (e, t) => {
|
3916
|
-
const n = hc(e, !0,
|
3921
|
+
const n = hc(e, !0, Po()), r = cc(n);
|
3917
3922
|
if (!r.pending.length) {
|
3918
3923
|
let s = !0;
|
3919
3924
|
return t && setTimeout(() => {
|
@@ -3950,7 +3955,7 @@ function kc(e, t) {
|
|
3950
3955
|
};
|
3951
3956
|
for (const r in t) {
|
3952
3957
|
const i = t[r], a = typeof i;
|
3953
|
-
r in
|
3958
|
+
r in Ao ? (i === null || i && (a === "string" || a === "number")) && (n[r] = i) : a === typeof n[r] && (n[r] = r === "rotate" ? i % 4 : i);
|
3954
3959
|
}
|
3955
3960
|
return n;
|
3956
3961
|
}
|
@@ -4022,28 +4027,28 @@ function Ac() {
|
|
4022
4027
|
function Fc(e) {
|
4023
4028
|
return Kt === void 0 && Ac(), Kt ? Kt.createHTML(e) : e;
|
4024
4029
|
}
|
4025
|
-
const
|
4026
|
-
...
|
4030
|
+
const jo = {
|
4031
|
+
...Fo,
|
4027
4032
|
inline: !1
|
4028
|
-
},
|
4033
|
+
}, Lc = {
|
4029
4034
|
xmlns: "http://www.w3.org/2000/svg",
|
4030
4035
|
xmlnsXlink: "http://www.w3.org/1999/xlink",
|
4031
4036
|
"aria-hidden": !0,
|
4032
4037
|
role: "img"
|
4033
|
-
},
|
4038
|
+
}, Nc = {
|
4034
4039
|
display: "inline-block"
|
4035
|
-
},
|
4040
|
+
}, Ar = {
|
4036
4041
|
backgroundColor: "currentColor"
|
4037
|
-
},
|
4042
|
+
}, Mo = {
|
4038
4043
|
backgroundColor: "transparent"
|
4039
4044
|
}, Qi = {
|
4040
4045
|
Image: "var(--svg)",
|
4041
4046
|
Repeat: "no-repeat",
|
4042
4047
|
Size: "100% 100%"
|
4043
4048
|
}, ea = {
|
4044
|
-
WebkitMask:
|
4045
|
-
mask:
|
4046
|
-
background:
|
4049
|
+
WebkitMask: Ar,
|
4050
|
+
mask: Ar,
|
4051
|
+
background: Mo
|
4047
4052
|
};
|
4048
4053
|
for (const e in ea) {
|
4049
4054
|
const t = ea[e];
|
@@ -4051,15 +4056,15 @@ for (const e in ea) {
|
|
4051
4056
|
t[e + n] = Qi[n];
|
4052
4057
|
}
|
4053
4058
|
const jc = {
|
4054
|
-
...
|
4059
|
+
...jo,
|
4055
4060
|
inline: !0
|
4056
4061
|
};
|
4057
4062
|
function ta(e) {
|
4058
4063
|
return e + (e.match(/^[-0-9.]+$/) ? "px" : "");
|
4059
4064
|
}
|
4060
4065
|
const Mc = (e, t, n) => {
|
4061
|
-
const r = t.inline ? jc :
|
4062
|
-
...a === "svg" ?
|
4066
|
+
const r = t.inline ? jc : jo, i = kc(r, t), a = t.mode || "svg", o = {}, l = t.style || {}, s = {
|
4067
|
+
...a === "svg" ? Lc : {}
|
4063
4068
|
};
|
4064
4069
|
if (n) {
|
4065
4070
|
const v = Fn(n, !1, !0);
|
@@ -4130,7 +4135,7 @@ const Mc = (e, t, n) => {
|
|
4130
4135
|
let v = 0, g = t.id;
|
4131
4136
|
return typeof g == "string" && (g = g.replace(/-/g, "_")), s.dangerouslySetInnerHTML = {
|
4132
4137
|
__html: Fc(ec(u.body, g ? () => g + "ID" + v++ : "iconifyReact"))
|
4133
|
-
},
|
4138
|
+
}, Sr("svg", s);
|
4134
4139
|
}
|
4135
4140
|
const { body: d, width: p, height: f } = e, y = a === "mask" || (a === "bg" ? !1 : d.indexOf("currentColor") !== -1), h = Tc(d, {
|
4136
4141
|
...c,
|
@@ -4142,12 +4147,12 @@ const Mc = (e, t, n) => {
|
|
4142
4147
|
"--svg": Pc(h),
|
4143
4148
|
width: ta(c.width),
|
4144
4149
|
height: ta(c.height),
|
4145
|
-
...
|
4146
|
-
...y ?
|
4150
|
+
...Nc,
|
4151
|
+
...y ? Ar : Mo,
|
4147
4152
|
...l
|
4148
|
-
},
|
4153
|
+
}, Sr("span", s);
|
4149
4154
|
};
|
4150
|
-
|
4155
|
+
Po(!0);
|
4151
4156
|
tc("", uc);
|
4152
4157
|
if (typeof document < "u" && typeof window < "u") {
|
4153
4158
|
const e = window;
|
@@ -4180,7 +4185,7 @@ if (typeof document < "u" && typeof window < "u") {
|
|
4180
4185
|
}
|
4181
4186
|
}
|
4182
4187
|
}
|
4183
|
-
function
|
4188
|
+
function Do(e) {
|
4184
4189
|
const [t, n] = te(!!e.ssr), [r, i] = te({});
|
4185
4190
|
function a(f) {
|
4186
4191
|
if (f) {
|
@@ -4239,18 +4244,18 @@ function Mo(e) {
|
|
4239
4244
|
return p ? Mc({
|
4240
4245
|
...Vr,
|
4241
4246
|
...p
|
4242
|
-
}, e, d) : e.children ? e.children :
|
4247
|
+
}, e, d) : e.children ? e.children : Sr("span", {});
|
4243
4248
|
}
|
4244
|
-
const et = io((e, t) =>
|
4249
|
+
const et = io((e, t) => Do({
|
4245
4250
|
...e,
|
4246
4251
|
_ref: t
|
4247
4252
|
}));
|
4248
|
-
io((e, t) =>
|
4253
|
+
io((e, t) => Do({
|
4249
4254
|
inline: !0,
|
4250
4255
|
...e,
|
4251
4256
|
_ref: t
|
4252
4257
|
}));
|
4253
|
-
function
|
4258
|
+
function Ln({
|
4254
4259
|
disabled: e,
|
4255
4260
|
handleChange: t,
|
4256
4261
|
handleSend: n,
|
@@ -4318,7 +4323,7 @@ function Nn({
|
|
4318
4323
|
)
|
4319
4324
|
] });
|
4320
4325
|
}
|
4321
|
-
|
4326
|
+
Ln.propTypes = {
|
4322
4327
|
containerStyle: C.shape(),
|
4323
4328
|
disabled: C.bool.isRequired,
|
4324
4329
|
handleChange: C.func.isRequired,
|
@@ -4328,8 +4333,8 @@ Nn.propTypes = {
|
|
4328
4333
|
margin: C.string,
|
4329
4334
|
value: C.string.isRequired
|
4330
4335
|
};
|
4331
|
-
|
4332
|
-
const
|
4336
|
+
Ln.defaultProps = {};
|
4337
|
+
const Fr = ({ content: e = "Please try again later." }) => {
|
4333
4338
|
const t = Ue(null);
|
4334
4339
|
return Ce(() => {
|
4335
4340
|
var n;
|
@@ -4393,10 +4398,10 @@ const Ar = ({ content: e = "Please try again later." }) => {
|
|
4393
4398
|
}
|
4394
4399
|
);
|
4395
4400
|
};
|
4396
|
-
|
4401
|
+
Fr.propTypes = {
|
4397
4402
|
content: C.string
|
4398
4403
|
};
|
4399
|
-
function
|
4404
|
+
function Ro({ message: e, id: t, onFeedbackThumbSelection: n }) {
|
4400
4405
|
return /* @__PURE__ */ k.jsxs("div", { className: "xpert-chatbot-popup__feedback", children: [
|
4401
4406
|
/* @__PURE__ */ k.jsx(
|
4402
4407
|
"button",
|
@@ -4433,13 +4438,13 @@ function Do({ message: e, id: t, onFeedbackThumbSelection: n }) {
|
|
4433
4438
|
)
|
4434
4439
|
] });
|
4435
4440
|
}
|
4436
|
-
|
4441
|
+
Ro.propTypes = {
|
4437
4442
|
id: C.number.isRequired,
|
4438
4443
|
message: C.shape().isRequired,
|
4439
4444
|
onFeedbackThumbSelection: C.func.isRequired
|
4440
4445
|
};
|
4441
4446
|
const Dc = "data:image/svg+xml,%3csvg%20xmlns='http://www.w3.org/2000/svg'%20height='24'%20viewBox='0%20-960%20960%20960'%20width='24'%3e%3cpath%20d='M440-120v-80h320v-284q0-117-81.5-198.5T480-764q-117%200-198.5%2081.5T200-484v244h-40q-33%200-56.5-23.5T80-320v-80q0-21%2010.5-39.5T120-469l3-53q8-68%2039.5-126t79-101q47.5-43%20109-67T480-840q68%200%20129%2024t109%2066.5Q766-707%20797-649t40%20126l3%2052q19%209%2029.5%2027t10.5%2038v92q0%2020-10.5%2038T840-249v49q0%2033-23.5%2056.5T760-120H440Zm-80-280q-17%200-28.5-11.5T320-440q0-17%2011.5-28.5T360-480q17%200%2028.5%2011.5T400-440q0%2017-11.5%2028.5T360-400Zm240%200q-17%200-28.5-11.5T560-440q0-17%2011.5-28.5T600-480q17%200%2028.5%2011.5T640-440q0%2017-11.5%2028.5T600-400Zm-359-62q-7-106%2064-182t177-76q89%200%20156.5%2056.5T720-519q-91-1-167.5-49T435-698q-16%2080-67.5%20142.5T241-462Z'/%3e%3c/svg%3e";
|
4442
|
-
function
|
4447
|
+
function Nn({
|
4443
4448
|
submitEvent: e,
|
4444
4449
|
setLiveChatOpen: t,
|
4445
4450
|
isTestUser: n,
|
@@ -4534,7 +4539,7 @@ function Ln({
|
|
4534
4539
|
)
|
4535
4540
|
] });
|
4536
4541
|
}
|
4537
|
-
|
4542
|
+
Nn.propTypes = {
|
4538
4543
|
submitEvent: C.func,
|
4539
4544
|
setLiveChatOpen: C.func,
|
4540
4545
|
isTestUser: C.bool,
|
@@ -4544,7 +4549,7 @@ Ln.propTypes = {
|
|
4544
4549
|
text: C.string,
|
4545
4550
|
userTrackingName: C.string
|
4546
4551
|
};
|
4547
|
-
|
4552
|
+
Nn.defaultProps = {
|
4548
4553
|
submitEvent: null,
|
4549
4554
|
setLiveChatOpen: null,
|
4550
4555
|
isTestUser: !1,
|
@@ -4583,15 +4588,15 @@ function Bc() {
|
|
4583
4588
|
}), nr;
|
4584
4589
|
}
|
4585
4590
|
var Hc = Bc();
|
4586
|
-
const
|
4591
|
+
const Bo = /* @__PURE__ */ nt(Hc);
|
4587
4592
|
function Jt(e) {
|
4588
|
-
return !e || typeof e != "object" ? "" : "position" in e || "type" in e ? ia(e.position) : "start" in e || "end" in e ? ia(e) : "line" in e || "column" in e ?
|
4593
|
+
return !e || typeof e != "object" ? "" : "position" in e || "type" in e ? ia(e.position) : "start" in e || "end" in e ? ia(e) : "line" in e || "column" in e ? Lr(e) : "";
|
4589
4594
|
}
|
4590
|
-
function
|
4595
|
+
function Lr(e) {
|
4591
4596
|
return aa(e && e.line) + ":" + aa(e && e.column);
|
4592
4597
|
}
|
4593
4598
|
function ia(e) {
|
4594
|
-
return
|
4599
|
+
return Lr(e && e.start) + "-" + Lr(e && e.end);
|
4595
4600
|
}
|
4596
4601
|
function aa(e) {
|
4597
4602
|
return e && typeof e == "number" ? e : 1;
|
@@ -4796,7 +4801,7 @@ function Yc(e) {
|
|
4796
4801
|
return decodeURIComponent(t);
|
4797
4802
|
}
|
4798
4803
|
const rr = ["history", "path", "basename", "stem", "extname", "dirname"];
|
4799
|
-
class
|
4804
|
+
class Ho {
|
4800
4805
|
/**
|
4801
4806
|
* Create a new virtual file.
|
4802
4807
|
*
|
@@ -5011,7 +5016,7 @@ function oa(e, t) {
|
|
5011
5016
|
throw new Error("Setting `" + t + "` requires `path` to be set too");
|
5012
5017
|
}
|
5013
5018
|
function Kc(e) {
|
5014
|
-
return
|
5019
|
+
return Bo(e);
|
5015
5020
|
}
|
5016
5021
|
function la(e) {
|
5017
5022
|
if (e)
|
@@ -5059,7 +5064,7 @@ function Jc() {
|
|
5059
5064
|
}
|
5060
5065
|
var Qc = Jc();
|
5061
5066
|
const ua = /* @__PURE__ */ nt(Qc);
|
5062
|
-
function
|
5067
|
+
function jr(e) {
|
5063
5068
|
if (typeof e != "object" || e === null)
|
5064
5069
|
return !1;
|
5065
5070
|
const t = Object.getPrototypeOf(e);
|
@@ -5121,20 +5126,20 @@ function tf(e, t) {
|
|
5121
5126
|
i(null, o);
|
5122
5127
|
}
|
5123
5128
|
}
|
5124
|
-
const nf =
|
5125
|
-
function
|
5129
|
+
const nf = qo().freeze(), zo = {}.hasOwnProperty;
|
5130
|
+
function qo() {
|
5126
5131
|
const e = ef(), t = [];
|
5127
5132
|
let n = {}, r, i = -1;
|
5128
5133
|
return a.data = o, a.Parser = void 0, a.Compiler = void 0, a.freeze = l, a.attachers = t, a.use = s, a.parse = u, a.stringify = c, a.run = d, a.runSync = p, a.process = f, a.processSync = y, a;
|
5129
5134
|
function a() {
|
5130
|
-
const h =
|
5135
|
+
const h = qo();
|
5131
5136
|
let v = -1;
|
5132
5137
|
for (; ++v < t.length; )
|
5133
5138
|
h.use(...t[v]);
|
5134
5139
|
return h.data(ua(!0, {}, n)), h;
|
5135
5140
|
}
|
5136
5141
|
function o(h, v) {
|
5137
|
-
return typeof h == "string" ? arguments.length === 2 ? (ur("data", r), n[h] = v, a) :
|
5142
|
+
return typeof h == "string" ? arguments.length === 2 ? (ur("data", r), n[h] = v, a) : zo.call(n, h) && n[h] || null : h ? (ur("data", r), n = h, a) : n;
|
5138
5143
|
}
|
5139
5144
|
function l() {
|
5140
5145
|
if (r)
|
@@ -5190,7 +5195,7 @@ function zo() {
|
|
5190
5195
|
F = t[z];
|
5191
5196
|
break;
|
5192
5197
|
}
|
5193
|
-
F ? (
|
5198
|
+
F ? (jr(F[1]) && jr(E) && (E = ua(!0, F[1], E)), F[1] = E) : t.push([...arguments]);
|
5194
5199
|
}
|
5195
5200
|
}
|
5196
5201
|
function u(h) {
|
@@ -5262,7 +5267,7 @@ function ca(e, t) {
|
|
5262
5267
|
function rf(e) {
|
5263
5268
|
let t;
|
5264
5269
|
for (t in e)
|
5265
|
-
if (
|
5270
|
+
if (zo.call(e, t))
|
5266
5271
|
return !0;
|
5267
5272
|
return !1;
|
5268
5273
|
}
|
@@ -5281,7 +5286,7 @@ function ur(e, t) {
|
|
5281
5286
|
);
|
5282
5287
|
}
|
5283
5288
|
function fa(e) {
|
5284
|
-
if (!
|
5289
|
+
if (!jr(e) || typeof e.type != "string")
|
5285
5290
|
throw new TypeError("Expected node, got `" + e + "`");
|
5286
5291
|
}
|
5287
5292
|
function da(e, t, n) {
|
@@ -5291,20 +5296,20 @@ function da(e, t, n) {
|
|
5291
5296
|
);
|
5292
5297
|
}
|
5293
5298
|
function Wt(e) {
|
5294
|
-
return af(e) ? e : new
|
5299
|
+
return af(e) ? e : new Ho(e);
|
5295
5300
|
}
|
5296
5301
|
function af(e) {
|
5297
5302
|
return !!(e && typeof e == "object" && "message" in e && "messages" in e);
|
5298
5303
|
}
|
5299
5304
|
function of(e) {
|
5300
|
-
return typeof e == "string" ||
|
5305
|
+
return typeof e == "string" || Bo(e);
|
5301
5306
|
}
|
5302
5307
|
const lf = {};
|
5303
5308
|
function sf(e, t) {
|
5304
5309
|
const n = lf, r = typeof n.includeImageAlt == "boolean" ? n.includeImageAlt : !0, i = typeof n.includeHtml == "boolean" ? n.includeHtml : !0;
|
5305
|
-
return
|
5310
|
+
return Uo(e, r, i);
|
5306
5311
|
}
|
5307
|
-
function
|
5312
|
+
function Uo(e, t, n) {
|
5308
5313
|
if (uf(e)) {
|
5309
5314
|
if ("value" in e)
|
5310
5315
|
return e.type === "html" && !n ? "" : e.value;
|
@@ -5319,7 +5324,7 @@ function pa(e, t, n) {
|
|
5319
5324
|
const r = [];
|
5320
5325
|
let i = -1;
|
5321
5326
|
for (; ++i < e.length; )
|
5322
|
-
r[i] =
|
5327
|
+
r[i] = Uo(e[i], t, n);
|
5323
5328
|
return r.join("");
|
5324
5329
|
}
|
5325
5330
|
function uf(e) {
|
@@ -5370,14 +5375,14 @@ function df(e, t) {
|
|
5370
5375
|
tt(e, 0, 0, r);
|
5371
5376
|
}
|
5372
5377
|
const pf = /[!-\/:-@\[-`\{-~\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]/, Qe = pt(/[A-Za-z]/), He = pt(/[\dA-Za-z]/), hf = pt(/[#-'*+\--9=?A-Z^-~]/);
|
5373
|
-
function
|
5378
|
+
function Mr(e) {
|
5374
5379
|
return (
|
5375
5380
|
// Special whitespace codes (which have negative values), C0 and Control
|
5376
5381
|
// character DEL
|
5377
5382
|
e !== null && (e < 32 || e === 127)
|
5378
5383
|
);
|
5379
5384
|
}
|
5380
|
-
const
|
5385
|
+
const Dr = pt(/\d/), mf = pt(/[\dA-Fa-f]/), gf = pt(/[!-/:-@[-`{-~]/);
|
5381
5386
|
function Q(e) {
|
5382
5387
|
return e !== null && e < -2;
|
5383
5388
|
}
|
@@ -5599,7 +5604,7 @@ function Zr(e, t, n) {
|
|
5599
5604
|
}
|
5600
5605
|
return t;
|
5601
5606
|
}
|
5602
|
-
const
|
5607
|
+
const Rr = {
|
5603
5608
|
name: "attention",
|
5604
5609
|
tokenize: _f,
|
5605
5610
|
resolveAll: Sf
|
@@ -5699,7 +5704,7 @@ function Tf(e, t, n) {
|
|
5699
5704
|
return f === 58 ? (e.consume(f), r = 0, s) : (f === 43 || f === 45 || f === 46 || He(f)) && r++ < 32 ? (e.consume(f), l) : (r = 0, u(f));
|
5700
5705
|
}
|
5701
5706
|
function s(f) {
|
5702
|
-
return f === 62 ? (e.exit("autolinkProtocol"), e.enter("autolinkMarker"), e.consume(f), e.exit("autolinkMarker"), e.exit("autolink"), t) : f === null || f === 32 || f === 60 ||
|
5707
|
+
return f === 62 ? (e.exit("autolinkProtocol"), e.enter("autolinkMarker"), e.consume(f), e.exit("autolinkMarker"), e.exit("autolink"), t) : f === null || f === 32 || f === 60 || Mr(f) ? n(f) : (e.consume(f), s);
|
5703
5708
|
}
|
5704
5709
|
function u(f) {
|
5705
5710
|
return f === 64 ? (e.consume(f), c) : hf(f) ? (e.consume(f), u) : n(f);
|
@@ -5731,7 +5736,7 @@ function Of(e, t, n) {
|
|
5731
5736
|
return a === null || Q(a) ? t(a) : n(a);
|
5732
5737
|
}
|
5733
5738
|
}
|
5734
|
-
const
|
5739
|
+
const $o = {
|
5735
5740
|
name: "blockQuote",
|
5736
5741
|
tokenize: If,
|
5737
5742
|
continuation: {
|
@@ -5767,13 +5772,13 @@ function Pf(e, t, n) {
|
|
5767
5772
|
)(o) : a(o);
|
5768
5773
|
}
|
5769
5774
|
function a(o) {
|
5770
|
-
return e.attempt(
|
5775
|
+
return e.attempt($o, t, n)(o);
|
5771
5776
|
}
|
5772
5777
|
}
|
5773
5778
|
function Af(e) {
|
5774
5779
|
e.exit("blockQuote");
|
5775
5780
|
}
|
5776
|
-
const
|
5781
|
+
const Vo = {
|
5777
5782
|
name: "characterEscape",
|
5778
5783
|
tokenize: Ff
|
5779
5784
|
};
|
@@ -5797,11 +5802,11 @@ function Yr(e) {
|
|
5797
5802
|
n.charCodeAt(n.length - 1) === 59 && e !== "semi" || n === t ? !1 : n
|
5798
5803
|
);
|
5799
5804
|
}
|
5800
|
-
const
|
5805
|
+
const Wo = {
|
5801
5806
|
name: "characterReference",
|
5802
|
-
tokenize:
|
5807
|
+
tokenize: Lf
|
5803
5808
|
};
|
5804
|
-
function
|
5809
|
+
function Lf(e, t, n) {
|
5805
5810
|
const r = this;
|
5806
5811
|
let i = 0, a, o;
|
5807
5812
|
return l;
|
@@ -5812,7 +5817,7 @@ function Nf(e, t, n) {
|
|
5812
5817
|
return d === 35 ? (e.enter("characterReferenceMarkerNumeric"), e.consume(d), e.exit("characterReferenceMarkerNumeric"), u) : (e.enter("characterReferenceValue"), a = 31, o = He, c(d));
|
5813
5818
|
}
|
5814
5819
|
function u(d) {
|
5815
|
-
return d === 88 || d === 120 ? (e.enter("characterReferenceMarkerHexadecimal"), e.consume(d), e.exit("characterReferenceMarkerHexadecimal"), e.enter("characterReferenceValue"), a = 6, o = mf, c) : (e.enter("characterReferenceValue"), a = 7, o =
|
5820
|
+
return d === 88 || d === 120 ? (e.enter("characterReferenceMarkerHexadecimal"), e.consume(d), e.exit("characterReferenceMarkerHexadecimal"), e.enter("characterReferenceValue"), a = 6, o = mf, c) : (e.enter("characterReferenceValue"), a = 7, o = Dr, c(d));
|
5816
5821
|
}
|
5817
5822
|
function c(d) {
|
5818
5823
|
if (d === 59 && i) {
|
@@ -5827,10 +5832,10 @@ const va = {
|
|
5827
5832
|
partial: !0
|
5828
5833
|
}, xa = {
|
5829
5834
|
name: "codeFenced",
|
5830
|
-
tokenize:
|
5835
|
+
tokenize: Nf,
|
5831
5836
|
concrete: !0
|
5832
5837
|
};
|
5833
|
-
function
|
5838
|
+
function Nf(e, t, n) {
|
5834
5839
|
const r = this, i = {
|
5835
5840
|
tokenize: I,
|
5836
5841
|
partial: !0
|
@@ -6000,7 +6005,7 @@ function qf(e, t, n) {
|
|
6000
6005
|
return d === 96 ? (e.consume(d), i++, c) : i === r ? (e.exit("codeTextSequence"), e.exit("codeText"), t(d)) : (a.type = "codeTextData", u(d));
|
6001
6006
|
}
|
6002
6007
|
}
|
6003
|
-
function
|
6008
|
+
function Go(e) {
|
6004
6009
|
const t = {};
|
6005
6010
|
let n = -1, r, i, a, o, l, s, u;
|
6006
6011
|
for (; ++n < e.length; ) {
|
@@ -6049,7 +6054,7 @@ const $f = {
|
|
6049
6054
|
partial: !0
|
6050
6055
|
};
|
6051
6056
|
function Wf(e) {
|
6052
|
-
return
|
6057
|
+
return Go(e), e;
|
6053
6058
|
}
|
6054
6059
|
function Gf(e, t) {
|
6055
6060
|
let n;
|
@@ -6089,12 +6094,12 @@ function Xf(e, t, n) {
|
|
6089
6094
|
return !r.parser.constructs.disable.null.includes("codeIndented") && l && l[1].type === "linePrefix" && l[2].sliceSerialize(l[1], !0).length >= 4 ? t(o) : e.interrupt(r.parser.constructs.flow, n, t)(o);
|
6090
6095
|
}
|
6091
6096
|
}
|
6092
|
-
function
|
6097
|
+
function Xo(e, t, n, r, i, a, o, l, s) {
|
6093
6098
|
const u = s || Number.POSITIVE_INFINITY;
|
6094
6099
|
let c = 0;
|
6095
6100
|
return d;
|
6096
6101
|
function d(g) {
|
6097
|
-
return g === 60 ? (e.enter(r), e.enter(i), e.enter(a), e.consume(g), e.exit(a), p) : g === null || g === 32 || g === 41 ||
|
6102
|
+
return g === 60 ? (e.enter(r), e.enter(i), e.enter(a), e.consume(g), e.exit(a), p) : g === null || g === 32 || g === 41 || Mr(g) ? n(g) : (e.enter(r), e.enter(o), e.enter(l), e.enter("chunkString", {
|
6098
6103
|
contentType: "string"
|
6099
6104
|
}), h(g));
|
6100
6105
|
}
|
@@ -6110,13 +6115,13 @@ function Go(e, t, n, r, i, a, o, l, s) {
|
|
6110
6115
|
return g === 60 || g === 62 || g === 92 ? (e.consume(g), f) : f(g);
|
6111
6116
|
}
|
6112
6117
|
function h(g) {
|
6113
|
-
return !c && (g === null || g === 41 || Fe(g)) ? (e.exit("chunkString"), e.exit(l), e.exit(o), e.exit(r), t(g)) : c < u && g === 40 ? (e.consume(g), c++, h) : g === 41 ? (e.consume(g), c--, h) : g === null || g === 32 || g === 40 ||
|
6118
|
+
return !c && (g === null || g === 41 || Fe(g)) ? (e.exit("chunkString"), e.exit(l), e.exit(o), e.exit(r), t(g)) : c < u && g === 40 ? (e.consume(g), c++, h) : g === 41 ? (e.consume(g), c--, h) : g === null || g === 32 || g === 40 || Mr(g) ? n(g) : (e.consume(g), g === 92 ? v : h);
|
6114
6119
|
}
|
6115
6120
|
function v(g) {
|
6116
6121
|
return g === 40 || g === 41 || g === 92 ? (e.consume(g), h) : h(g);
|
6117
6122
|
}
|
6118
6123
|
}
|
6119
|
-
function
|
6124
|
+
function Zo(e, t, n, r, i, a) {
|
6120
6125
|
const o = this;
|
6121
6126
|
let l = 0, s;
|
6122
6127
|
return u;
|
@@ -6140,7 +6145,7 @@ function Xo(e, t, n, r, i, a) {
|
|
6140
6145
|
return f === 91 || f === 92 || f === 93 ? (e.consume(f), l++, d) : d(f);
|
6141
6146
|
}
|
6142
6147
|
}
|
6143
|
-
function
|
6148
|
+
function Yo(e, t, n, r, i, a) {
|
6144
6149
|
let o;
|
6145
6150
|
return l;
|
6146
6151
|
function l(p) {
|
@@ -6172,7 +6177,7 @@ function Qt(e, t) {
|
|
6172
6177
|
)(i) : t(i);
|
6173
6178
|
}
|
6174
6179
|
}
|
6175
|
-
function
|
6180
|
+
function Nt(e) {
|
6176
6181
|
return e.replace(/[\t\n\r ]+/g, " ").replace(/^ | $/g, "").toLowerCase().toUpperCase();
|
6177
6182
|
}
|
6178
6183
|
const Zf = {
|
@@ -6190,7 +6195,7 @@ function Kf(e, t, n) {
|
|
6190
6195
|
return e.enter("definition"), o(f);
|
6191
6196
|
}
|
6192
6197
|
function o(f) {
|
6193
|
-
return
|
6198
|
+
return Zo.call(
|
6194
6199
|
r,
|
6195
6200
|
e,
|
6196
6201
|
l,
|
@@ -6202,7 +6207,7 @@ function Kf(e, t, n) {
|
|
6202
6207
|
)(f);
|
6203
6208
|
}
|
6204
6209
|
function l(f) {
|
6205
|
-
return i =
|
6210
|
+
return i = Nt(
|
6206
6211
|
r.sliceSerialize(r.events[r.events.length - 1][1]).slice(1, -1)
|
6207
6212
|
), f === 58 ? (e.enter("definitionMarker"), e.consume(f), e.exit("definitionMarker"), s) : n(f);
|
6208
6213
|
}
|
@@ -6210,7 +6215,7 @@ function Kf(e, t, n) {
|
|
6210
6215
|
return Fe(f) ? Qt(e, u)(f) : u(f);
|
6211
6216
|
}
|
6212
6217
|
function u(f) {
|
6213
|
-
return
|
6218
|
+
return Xo(
|
6214
6219
|
e,
|
6215
6220
|
c,
|
6216
6221
|
// Note: we don’t need to reset the way `markdown-rs` does.
|
@@ -6238,7 +6243,7 @@ function Jf(e, t, n) {
|
|
6238
6243
|
return Fe(l) ? Qt(e, i)(l) : n(l);
|
6239
6244
|
}
|
6240
6245
|
function i(l) {
|
6241
|
-
return
|
6246
|
+
return Yo(
|
6242
6247
|
e,
|
6243
6248
|
a,
|
6244
6249
|
n,
|
@@ -6460,7 +6465,7 @@ function ud(e, t, n) {
|
|
6460
6465
|
return w === null || Q(w) ? B(w) : ue(w) ? (e.consume(w), M) : n(w);
|
6461
6466
|
}
|
6462
6467
|
function B(w) {
|
6463
|
-
return w === 45 && i === 2 ? (e.consume(w),
|
6468
|
+
return w === 45 && i === 2 ? (e.consume(w), L) : w === 60 && i === 1 ? (e.consume(w), H) : w === 62 && i === 4 ? (e.consume(w), W) : w === 63 && i === 3 ? (e.consume(w), m) : w === 93 && i === 5 ? (e.consume(w), D) : Q(w) && (i === 6 || i === 7) ? (e.exit("htmlFlowData"), e.check(
|
6464
6469
|
od,
|
6465
6470
|
Y,
|
6466
6471
|
T
|
@@ -6479,7 +6484,7 @@ function ud(e, t, n) {
|
|
6479
6484
|
function O(w) {
|
6480
6485
|
return w === null || Q(w) ? T(w) : (e.enter("htmlFlowData"), B(w));
|
6481
6486
|
}
|
6482
|
-
function
|
6487
|
+
function L(w) {
|
6483
6488
|
return w === 45 ? (e.consume(w), m) : B(w);
|
6484
6489
|
}
|
6485
6490
|
function H(w) {
|
@@ -6548,7 +6553,7 @@ function pd(e, t, n) {
|
|
6548
6553
|
return m === 45 ? (e.consume(m), f) : d(m);
|
6549
6554
|
}
|
6550
6555
|
function f(m) {
|
6551
|
-
return m === 62 ?
|
6556
|
+
return m === 62 ? L(m) : m === 45 ? p(m) : d(m);
|
6552
6557
|
}
|
6553
6558
|
function y(m) {
|
6554
6559
|
const W = "CDATA[";
|
@@ -6561,16 +6566,16 @@ function pd(e, t, n) {
|
|
6561
6566
|
return m === 93 ? (e.consume(m), g) : h(m);
|
6562
6567
|
}
|
6563
6568
|
function g(m) {
|
6564
|
-
return m === 62 ?
|
6569
|
+
return m === 62 ? L(m) : m === 93 ? (e.consume(m), g) : h(m);
|
6565
6570
|
}
|
6566
6571
|
function P(m) {
|
6567
|
-
return m === null || m === 62 ?
|
6572
|
+
return m === null || m === 62 ? L(m) : Q(m) ? (o = P, H(m)) : (e.consume(m), P);
|
6568
6573
|
}
|
6569
6574
|
function A(m) {
|
6570
6575
|
return m === null ? n(m) : m === 63 ? (e.consume(m), q) : Q(m) ? (o = A, H(m)) : (e.consume(m), A);
|
6571
6576
|
}
|
6572
6577
|
function q(m) {
|
6573
|
-
return m === 62 ?
|
6578
|
+
return m === 62 ? L(m) : A(m);
|
6574
6579
|
}
|
6575
6580
|
function I(m) {
|
6576
6581
|
return Qe(m) ? (e.consume(m), b) : n(m);
|
@@ -6579,13 +6584,13 @@ function pd(e, t, n) {
|
|
6579
6584
|
return m === 45 || He(m) ? (e.consume(m), b) : E(m);
|
6580
6585
|
}
|
6581
6586
|
function E(m) {
|
6582
|
-
return Q(m) ? (o = E, H(m)) : ue(m) ? (e.consume(m), E) :
|
6587
|
+
return Q(m) ? (o = E, H(m)) : ue(m) ? (e.consume(m), E) : L(m);
|
6583
6588
|
}
|
6584
6589
|
function z(m) {
|
6585
6590
|
return m === 45 || He(m) ? (e.consume(m), z) : m === 47 || m === 62 || Fe(m) ? F(m) : n(m);
|
6586
6591
|
}
|
6587
6592
|
function F(m) {
|
6588
|
-
return m === 47 ? (e.consume(m),
|
6593
|
+
return m === 47 ? (e.consume(m), L) : m === 58 || m === 95 || Qe(m) ? (e.consume(m), U) : Q(m) ? (o = F, H(m)) : ue(m) ? (e.consume(m), F) : L(m);
|
6589
6594
|
}
|
6590
6595
|
function U(m) {
|
6591
6596
|
return m === 45 || m === 46 || m === 58 || m === 95 || He(m) ? (e.consume(m), U) : M(m);
|
@@ -6605,7 +6610,7 @@ function pd(e, t, n) {
|
|
6605
6610
|
function O(m) {
|
6606
6611
|
return m === 47 || m === 62 || Fe(m) ? F(m) : n(m);
|
6607
6612
|
}
|
6608
|
-
function
|
6613
|
+
function L(m) {
|
6609
6614
|
return m === 62 ? (e.consume(m), e.exit("htmlTextData"), e.exit("htmlText"), t) : n(m);
|
6610
6615
|
}
|
6611
6616
|
function H(m) {
|
@@ -6697,7 +6702,7 @@ function vd(e, t, n) {
|
|
6697
6702
|
return l;
|
6698
6703
|
function l(p) {
|
6699
6704
|
return a ? a._inactive ? d(p) : (o = r.parser.defined.includes(
|
6700
|
-
|
6705
|
+
Nt(
|
6701
6706
|
r.sliceSerialize({
|
6702
6707
|
start: a.end,
|
6703
6708
|
end: r.now()
|
@@ -6739,7 +6744,7 @@ function xd(e, t, n) {
|
|
6739
6744
|
return Fe(d) ? Qt(e, a)(d) : a(d);
|
6740
6745
|
}
|
6741
6746
|
function a(d) {
|
6742
|
-
return d === 41 ? c(d) :
|
6747
|
+
return d === 41 ? c(d) : Xo(
|
6743
6748
|
e,
|
6744
6749
|
o,
|
6745
6750
|
l,
|
@@ -6758,7 +6763,7 @@ function xd(e, t, n) {
|
|
6758
6763
|
return n(d);
|
6759
6764
|
}
|
6760
6765
|
function s(d) {
|
6761
|
-
return d === 34 || d === 39 || d === 40 ?
|
6766
|
+
return d === 34 || d === 39 || d === 40 ? Yo(
|
6762
6767
|
e,
|
6763
6768
|
u,
|
6764
6769
|
n,
|
@@ -6778,7 +6783,7 @@ function wd(e, t, n) {
|
|
6778
6783
|
const r = this;
|
6779
6784
|
return i;
|
6780
6785
|
function i(l) {
|
6781
|
-
return
|
6786
|
+
return Zo.call(
|
6782
6787
|
r,
|
6783
6788
|
e,
|
6784
6789
|
a,
|
@@ -6790,7 +6795,7 @@ function wd(e, t, n) {
|
|
6790
6795
|
}
|
6791
6796
|
function a(l) {
|
6792
6797
|
return r.parser.defined.includes(
|
6793
|
-
|
6798
|
+
Nt(
|
6794
6799
|
r.sliceSerialize(r.events[r.events.length - 1][1]).slice(1, -1)
|
6795
6800
|
)
|
6796
6801
|
) ? t(l) : n(l);
|
@@ -6877,12 +6882,12 @@ const Ae = {
|
|
6877
6882
|
continuation: {
|
6878
6883
|
tokenize: Fd
|
6879
6884
|
},
|
6880
|
-
exit:
|
6885
|
+
exit: Nd
|
6881
6886
|
}, Id = {
|
6882
6887
|
tokenize: jd,
|
6883
6888
|
partial: !0
|
6884
6889
|
}, Pd = {
|
6885
|
-
tokenize:
|
6890
|
+
tokenize: Ld,
|
6886
6891
|
partial: !0
|
6887
6892
|
};
|
6888
6893
|
function Ad(e, t, n) {
|
@@ -6891,7 +6896,7 @@ function Ad(e, t, n) {
|
|
6891
6896
|
return l;
|
6892
6897
|
function l(f) {
|
6893
6898
|
const y = r.containerState.type || (f === 42 || f === 43 || f === 45 ? "listUnordered" : "listOrdered");
|
6894
|
-
if (y === "listUnordered" ? !r.containerState.marker || f === r.containerState.marker :
|
6899
|
+
if (y === "listUnordered" ? !r.containerState.marker || f === r.containerState.marker : Dr(f)) {
|
6895
6900
|
if (r.containerState.type || (r.containerState.type = y, e.enter(y, {
|
6896
6901
|
_container: !0
|
6897
6902
|
})), y === "listUnordered")
|
@@ -6902,7 +6907,7 @@ function Ad(e, t, n) {
|
|
6902
6907
|
return n(f);
|
6903
6908
|
}
|
6904
6909
|
function s(f) {
|
6905
|
-
return
|
6910
|
+
return Dr(f) && ++o < 10 ? (e.consume(f), s) : (!r.interrupt || o < 2) && (r.containerState.marker ? f === r.containerState.marker : f === 41 || f === 46) ? (e.exit("listItemValue"), u(f)) : n(f);
|
6906
6911
|
}
|
6907
6912
|
function u(f) {
|
6908
6913
|
return e.enter("listItemMarker"), e.consume(f), e.exit("listItemMarker"), r.containerState.marker = r.containerState.marker || f, e.check(
|
@@ -6949,7 +6954,7 @@ function Fd(e, t, n) {
|
|
6949
6954
|
)(l);
|
6950
6955
|
}
|
6951
6956
|
}
|
6952
|
-
function
|
6957
|
+
function Ld(e, t, n) {
|
6953
6958
|
const r = this;
|
6954
6959
|
return ye(
|
6955
6960
|
e,
|
@@ -6962,7 +6967,7 @@ function Nd(e, t, n) {
|
|
6962
6967
|
return o && o[1].type === "listItemIndent" && o[2].sliceSerialize(o[1], !0).length === r.containerState.size ? t(a) : n(a);
|
6963
6968
|
}
|
6964
6969
|
}
|
6965
|
-
function
|
6970
|
+
function Nd(e) {
|
6966
6971
|
e.exit(this.containerState.type);
|
6967
6972
|
}
|
6968
6973
|
function jd(e, t, n) {
|
@@ -7064,12 +7069,12 @@ function Bd(e) {
|
|
7064
7069
|
}
|
7065
7070
|
}
|
7066
7071
|
const Hd = {
|
7067
|
-
resolveAll:
|
7068
|
-
}, zd =
|
7069
|
-
function
|
7072
|
+
resolveAll: Jo()
|
7073
|
+
}, zd = Ko("string"), qd = Ko("text");
|
7074
|
+
function Ko(e) {
|
7070
7075
|
return {
|
7071
7076
|
tokenize: t,
|
7072
|
-
resolveAll:
|
7077
|
+
resolveAll: Jo(
|
7073
7078
|
e === "text" ? Ud : void 0
|
7074
7079
|
)
|
7075
7080
|
};
|
@@ -7104,7 +7109,7 @@ function Yo(e) {
|
|
7104
7109
|
}
|
7105
7110
|
}
|
7106
7111
|
}
|
7107
|
-
function
|
7112
|
+
function Jo(e) {
|
7108
7113
|
return t;
|
7109
7114
|
function t(n, r) {
|
7110
7115
|
let i = -1, a;
|
@@ -7248,7 +7253,7 @@ function $d(e, t, n) {
|
|
7248
7253
|
}
|
7249
7254
|
function E(M, B) {
|
7250
7255
|
return T;
|
7251
|
-
function T(S, O,
|
7256
|
+
function T(S, O, L) {
|
7252
7257
|
let H, j, D, m;
|
7253
7258
|
return Array.isArray(S) ? Y(S) : "tokenize" in S ? (
|
7254
7259
|
// @ts-expect-error Looks like a construct.
|
@@ -7267,7 +7272,7 @@ function $d(e, t, n) {
|
|
7267
7272
|
}
|
7268
7273
|
}
|
7269
7274
|
function Y(re) {
|
7270
|
-
return H = re, j = 0, re.length === 0 ?
|
7275
|
+
return H = re, j = 0, re.length === 0 ? L : w(re[j]);
|
7271
7276
|
}
|
7272
7277
|
function w(re) {
|
7273
7278
|
return de;
|
@@ -7287,7 +7292,7 @@ function $d(e, t, n) {
|
|
7287
7292
|
return M(D, m), O;
|
7288
7293
|
}
|
7289
7294
|
function oe(re) {
|
7290
|
-
return m.restore(), ++j < H.length ? w(H[j]) :
|
7295
|
+
return m.restore(), ++j < H.length ? w(H[j]) : L;
|
7291
7296
|
}
|
7292
7297
|
}
|
7293
7298
|
}
|
@@ -7302,10 +7307,10 @@ function $d(e, t, n) {
|
|
7302
7307
|
function F() {
|
7303
7308
|
const M = y(), B = u.previous, T = u.currentConstruct, S = u.events.length, O = Array.from(l);
|
7304
7309
|
return {
|
7305
|
-
restore:
|
7310
|
+
restore: L,
|
7306
7311
|
from: S
|
7307
7312
|
};
|
7308
|
-
function
|
7313
|
+
function L() {
|
7309
7314
|
r = M, u.previous = B, u.currentConstruct = T, u.events.length = S, l = O, U();
|
7310
7315
|
}
|
7311
7316
|
}
|
@@ -7382,7 +7387,7 @@ const Gd = {
|
|
7382
7387
|
55: Ae,
|
7383
7388
|
56: Ae,
|
7384
7389
|
57: Ae,
|
7385
|
-
62:
|
7390
|
+
62: $o
|
7386
7391
|
}, Xd = {
|
7387
7392
|
91: Zf
|
7388
7393
|
}, Zd = {
|
@@ -7399,23 +7404,23 @@ const Gd = {
|
|
7399
7404
|
96: xa,
|
7400
7405
|
126: xa
|
7401
7406
|
}, Kd = {
|
7402
|
-
38:
|
7403
|
-
92:
|
7407
|
+
38: Wo,
|
7408
|
+
92: Vo
|
7404
7409
|
}, Jd = {
|
7405
7410
|
[-5]: fr,
|
7406
7411
|
[-4]: fr,
|
7407
7412
|
[-3]: fr,
|
7408
7413
|
33: kd,
|
7409
|
-
38:
|
7410
|
-
42:
|
7414
|
+
38: Wo,
|
7415
|
+
42: Rr,
|
7411
7416
|
60: [Ef, dd],
|
7412
7417
|
91: _d,
|
7413
|
-
92: [Qf,
|
7418
|
+
92: [Qf, Vo],
|
7414
7419
|
93: Kr,
|
7415
|
-
95:
|
7420
|
+
95: Rr,
|
7416
7421
|
96: Bf
|
7417
7422
|
}, Qd = {
|
7418
|
-
null: [
|
7423
|
+
null: [Rr, Hd]
|
7419
7424
|
}, ep = {
|
7420
7425
|
null: [42, 95]
|
7421
7426
|
}, tp = {
|
@@ -7491,11 +7496,11 @@ function ip() {
|
|
7491
7496
|
}
|
7492
7497
|
}
|
7493
7498
|
function ap(e) {
|
7494
|
-
for (; !
|
7499
|
+
for (; !Go(e); )
|
7495
7500
|
;
|
7496
7501
|
return e;
|
7497
7502
|
}
|
7498
|
-
function
|
7503
|
+
function Qo(e, t) {
|
7499
7504
|
const n = Number.parseInt(e, t);
|
7500
7505
|
return (
|
7501
7506
|
// C0 except for HT, LF, FF, CR, space.
|
@@ -7515,11 +7520,11 @@ function sp(e, t, n) {
|
|
7515
7520
|
return t;
|
7516
7521
|
if (n.charCodeAt(0) === 35) {
|
7517
7522
|
const i = n.charCodeAt(1), a = i === 120 || i === 88;
|
7518
|
-
return
|
7523
|
+
return Qo(n.slice(a ? 2 : 1), a ? 16 : 10);
|
7519
7524
|
}
|
7520
7525
|
return Yr(n) || e;
|
7521
7526
|
}
|
7522
|
-
const
|
7527
|
+
const el = {}.hasOwnProperty, up = (
|
7523
7528
|
/**
|
7524
7529
|
* @type {(
|
7525
7530
|
* ((value: Value, encoding: Encoding, options?: Options | null | undefined) => Root) &
|
@@ -7552,10 +7557,10 @@ function cp(e) {
|
|
7552
7557
|
blockQuote: l(Ee),
|
7553
7558
|
characterEscape: M,
|
7554
7559
|
characterReference: M,
|
7555
|
-
codeFenced: l(
|
7560
|
+
codeFenced: l(Le),
|
7556
7561
|
codeFencedFenceInfo: s,
|
7557
7562
|
codeFencedFenceMeta: s,
|
7558
|
-
codeIndented: l(
|
7563
|
+
codeIndented: l(Le, s),
|
7559
7564
|
codeText: l(Ze, s),
|
7560
7565
|
codeTextData: M,
|
7561
7566
|
data: M,
|
@@ -7616,7 +7621,7 @@ function cp(e) {
|
|
7616
7621
|
hardBreakTrailing: c(S),
|
7617
7622
|
htmlFlow: c(O),
|
7618
7623
|
htmlFlowData: B,
|
7619
|
-
htmlText: c(
|
7624
|
+
htmlText: c(L),
|
7620
7625
|
htmlTextData: B,
|
7621
7626
|
image: c(D),
|
7622
7627
|
label: W,
|
@@ -7638,7 +7643,7 @@ function cp(e) {
|
|
7638
7643
|
thematicBreak: c()
|
7639
7644
|
}
|
7640
7645
|
};
|
7641
|
-
|
7646
|
+
tl(t, (e || {}).mdastExtensions || []);
|
7642
7647
|
const n = {};
|
7643
7648
|
return r;
|
7644
7649
|
function r(R) {
|
@@ -7668,7 +7673,7 @@ function cp(e) {
|
|
7668
7673
|
}
|
7669
7674
|
for (le = -1; ++le < R.length; ) {
|
7670
7675
|
const Oe = t[R[le][0]];
|
7671
|
-
|
7676
|
+
el.call(Oe, R[le][1].type) && Oe[R[le][1].type].call(
|
7672
7677
|
Object.assign(
|
7673
7678
|
{
|
7674
7679
|
sliceSerialize: R[le][2].sliceSerialize
|
@@ -7702,23 +7707,23 @@ function cp(e) {
|
|
7702
7707
|
return $;
|
7703
7708
|
}
|
7704
7709
|
function i(R, $, Z) {
|
7705
|
-
let J = $ - 1, le = -1, Oe = !1, ze,
|
7710
|
+
let J = $ - 1, le = -1, Oe = !1, ze, Ne, je, Ke;
|
7706
7711
|
for (; ++J <= Z; ) {
|
7707
7712
|
const we = R[J];
|
7708
7713
|
if (we[1].type === "listUnordered" || we[1].type === "listOrdered" || we[1].type === "blockQuote" ? (we[0] === "enter" ? le++ : le--, Ke = void 0) : we[1].type === "lineEndingBlank" ? we[0] === "enter" && (ze && !Ke && !le && !je && (je = J), Ke = void 0) : we[1].type === "linePrefix" || we[1].type === "listItemValue" || we[1].type === "listItemMarker" || we[1].type === "listItemPrefix" || we[1].type === "listItemPrefixWhitespace" || (Ke = void 0), !le && we[0] === "enter" && we[1].type === "listItemPrefix" || le === -1 && we[0] === "exit" && (we[1].type === "listUnordered" || we[1].type === "listOrdered")) {
|
7709
7714
|
if (ze) {
|
7710
7715
|
let Pt = J;
|
7711
|
-
for (
|
7716
|
+
for (Ne = void 0; Pt--; ) {
|
7712
7717
|
const We = R[Pt];
|
7713
7718
|
if (We[1].type === "lineEnding" || We[1].type === "lineEndingBlank") {
|
7714
7719
|
if (We[0] === "exit") continue;
|
7715
|
-
|
7720
|
+
Ne && (R[Ne][1].type = "lineEndingBlank", Oe = !0), We[1].type = "lineEnding", Ne = Pt;
|
7716
7721
|
} else if (!(We[1].type === "linePrefix" || We[1].type === "blockQuotePrefix" || We[1].type === "blockQuotePrefixWhitespace" || We[1].type === "blockQuoteMarker" || We[1].type === "listItemIndent")) break;
|
7717
7722
|
}
|
7718
|
-
je && (!
|
7723
|
+
je && (!Ne || je < Ne) && (ze._spread = !0), ze.end = Object.assign(
|
7719
7724
|
{},
|
7720
|
-
|
7721
|
-
), R.splice(
|
7725
|
+
Ne ? R[Ne][1].start : we[1].end
|
7726
|
+
), R.splice(Ne || J, 0, ["exit", ze, we[2]]), J++, Z++;
|
7722
7727
|
}
|
7723
7728
|
we[1].type === "listItemPrefix" && (ze = {
|
7724
7729
|
type: "listItem",
|
@@ -7805,7 +7810,7 @@ function cp(e) {
|
|
7805
7810
|
}
|
7806
7811
|
function q(R) {
|
7807
7812
|
const $ = this.resume(), Z = this.stack[this.stack.length - 1];
|
7808
|
-
Z.label = $, Z.identifier =
|
7813
|
+
Z.label = $, Z.identifier = Nt(
|
7809
7814
|
this.sliceSerialize(R)
|
7810
7815
|
).toLowerCase();
|
7811
7816
|
}
|
@@ -7861,7 +7866,7 @@ function cp(e) {
|
|
7861
7866
|
const R = this.resume(), $ = this.stack[this.stack.length - 1];
|
7862
7867
|
$.value = R;
|
7863
7868
|
}
|
7864
|
-
function
|
7869
|
+
function L() {
|
7865
7870
|
const R = this.resume(), $ = this.stack[this.stack.length - 1];
|
7866
7871
|
$.value = R;
|
7867
7872
|
}
|
@@ -7889,7 +7894,7 @@ function cp(e) {
|
|
7889
7894
|
}
|
7890
7895
|
function m(R) {
|
7891
7896
|
const $ = this.sliceSerialize(R), Z = this.stack[this.stack.length - 2];
|
7892
|
-
Z.label = lp($), Z.identifier =
|
7897
|
+
Z.label = lp($), Z.identifier = Nt($).toLowerCase();
|
7893
7898
|
}
|
7894
7899
|
function W() {
|
7895
7900
|
const R = this.stack[this.stack.length - 1], $ = this.resume(), Z = this.stack[this.stack.length - 1];
|
@@ -7915,7 +7920,7 @@ function cp(e) {
|
|
7915
7920
|
}
|
7916
7921
|
function re(R) {
|
7917
7922
|
const $ = this.resume(), Z = this.stack[this.stack.length - 1];
|
7918
|
-
Z.label = $, Z.identifier =
|
7923
|
+
Z.label = $, Z.identifier = Nt(
|
7919
7924
|
this.sliceSerialize(R)
|
7920
7925
|
).toLowerCase(), a("referenceType", "full");
|
7921
7926
|
}
|
@@ -7925,7 +7930,7 @@ function cp(e) {
|
|
7925
7930
|
function pe(R) {
|
7926
7931
|
const $ = this.sliceSerialize(R), Z = o("characterReferenceType");
|
7927
7932
|
let J;
|
7928
|
-
Z ? (J =
|
7933
|
+
Z ? (J = Qo(
|
7929
7934
|
$,
|
7930
7935
|
Z === "characterReferenceMarkerNumeric" ? 10 : 16
|
7931
7936
|
), a("characterReferenceType")) : J = Yr($);
|
@@ -7948,7 +7953,7 @@ function cp(e) {
|
|
7948
7953
|
children: []
|
7949
7954
|
};
|
7950
7955
|
}
|
7951
|
-
function
|
7956
|
+
function Le() {
|
7952
7957
|
return {
|
7953
7958
|
type: "code",
|
7954
7959
|
lang: null,
|
@@ -8059,17 +8064,17 @@ function ft(e) {
|
|
8059
8064
|
offset: e.offset
|
8060
8065
|
};
|
8061
8066
|
}
|
8062
|
-
function
|
8067
|
+
function tl(e, t) {
|
8063
8068
|
let n = -1;
|
8064
8069
|
for (; ++n < t.length; ) {
|
8065
8070
|
const r = t[n];
|
8066
|
-
Array.isArray(r) ?
|
8071
|
+
Array.isArray(r) ? tl(e, r) : fp(e, r);
|
8067
8072
|
}
|
8068
8073
|
}
|
8069
8074
|
function fp(e, t) {
|
8070
8075
|
let n;
|
8071
8076
|
for (n in t)
|
8072
|
-
if (
|
8077
|
+
if (el.call(t, n)) {
|
8073
8078
|
if (n === "canContainEols") {
|
8074
8079
|
const r = t[n];
|
8075
8080
|
r && e[n].push(...r);
|
@@ -8179,7 +8184,7 @@ function Dt(e) {
|
|
8179
8184
|
}
|
8180
8185
|
return t.join("") + e.slice(r);
|
8181
8186
|
}
|
8182
|
-
function
|
8187
|
+
function nl(e, t) {
|
8183
8188
|
const n = String(t.identifier).toUpperCase(), r = Dt(n.toLowerCase()), i = e.footnoteOrder.indexOf(n);
|
8184
8189
|
let a;
|
8185
8190
|
i === -1 ? (e.footnoteOrder.push(n), e.footnoteCounts[n] = 1, a = e.footnoteOrder.length) : (e.footnoteCounts[n]++, a = i + 1);
|
@@ -8213,7 +8218,7 @@ function bp(e, t) {
|
|
8213
8218
|
identifier: i,
|
8214
8219
|
children: [{ type: "paragraph", children: t.children }],
|
8215
8220
|
position: t.position
|
8216
|
-
},
|
8221
|
+
}, nl(e, {
|
8217
8222
|
type: "footnoteReference",
|
8218
8223
|
identifier: i,
|
8219
8224
|
position: t.position
|
@@ -8235,7 +8240,7 @@ function xp(e, t) {
|
|
8235
8240
|
}
|
8236
8241
|
return null;
|
8237
8242
|
}
|
8238
|
-
function
|
8243
|
+
function rl(e, t) {
|
8239
8244
|
const n = t.referenceType;
|
8240
8245
|
let r = "]";
|
8241
8246
|
if (n === "collapsed" ? r += "[]" : n === "full" && (r += "[" + (t.label || t.identifier) + "]"), t.type === "imageReference")
|
@@ -8248,7 +8253,7 @@ function nl(e, t) {
|
|
8248
8253
|
function wp(e, t) {
|
8249
8254
|
const n = e.definition(t.identifier);
|
8250
8255
|
if (!n)
|
8251
|
-
return
|
8256
|
+
return rl(e, t);
|
8252
8257
|
const r = { src: Dt(n.url || ""), alt: t.alt };
|
8253
8258
|
n.title !== null && n.title !== void 0 && (r.title = n.title);
|
8254
8259
|
const i = { type: "element", tagName: "img", properties: r, children: [] };
|
@@ -8274,7 +8279,7 @@ function kp(e, t) {
|
|
8274
8279
|
function Sp(e, t) {
|
8275
8280
|
const n = e.definition(t.identifier);
|
8276
8281
|
if (!n)
|
8277
|
-
return
|
8282
|
+
return rl(e, t);
|
8278
8283
|
const r = { href: Dt(n.url || "") };
|
8279
8284
|
n.title !== null && n.title !== void 0 && (r.title = n.title);
|
8280
8285
|
const i = {
|
@@ -8297,7 +8302,7 @@ function _p(e, t) {
|
|
8297
8302
|
return e.patch(t, r), e.applyData(t, r);
|
8298
8303
|
}
|
8299
8304
|
function Ep(e, t, n) {
|
8300
|
-
const r = e.all(t), i = n ? Tp(n) :
|
8305
|
+
const r = e.all(t), i = n ? Tp(n) : il(t), a = {}, o = [];
|
8301
8306
|
if (typeof t.checked == "boolean") {
|
8302
8307
|
const c = r[0];
|
8303
8308
|
let d;
|
@@ -8327,11 +8332,11 @@ function Tp(e) {
|
|
8327
8332
|
const n = e.children;
|
8328
8333
|
let r = -1;
|
8329
8334
|
for (; !t && ++r < n.length; )
|
8330
|
-
t =
|
8335
|
+
t = il(n[r]);
|
8331
8336
|
}
|
8332
8337
|
return t;
|
8333
8338
|
}
|
8334
|
-
function
|
8339
|
+
function il(e) {
|
8335
8340
|
const t = e.spread;
|
8336
8341
|
return t ?? e.children.length > 1;
|
8337
8342
|
}
|
@@ -8375,11 +8380,11 @@ function Ap(e, t) {
|
|
8375
8380
|
};
|
8376
8381
|
return e.patch(t, n), e.applyData(t, n);
|
8377
8382
|
}
|
8378
|
-
const Jr =
|
8383
|
+
const Jr = al("start"), Qr = al("end");
|
8379
8384
|
function Fp(e) {
|
8380
8385
|
return { start: Jr(e), end: Qr(e) };
|
8381
8386
|
}
|
8382
|
-
function
|
8387
|
+
function al(e) {
|
8383
8388
|
return t;
|
8384
8389
|
function t(n) {
|
8385
8390
|
const r = n && n.position && n.position[e] || {};
|
@@ -8393,7 +8398,7 @@ function il(e) {
|
|
8393
8398
|
};
|
8394
8399
|
}
|
8395
8400
|
}
|
8396
|
-
function
|
8401
|
+
function Lp(e, t) {
|
8397
8402
|
const n = e.all(t), r = n.shift(), i = [];
|
8398
8403
|
if (r) {
|
8399
8404
|
const o = {
|
@@ -8421,7 +8426,7 @@ function Np(e, t) {
|
|
8421
8426
|
};
|
8422
8427
|
return e.patch(t, a), e.applyData(t, a);
|
8423
8428
|
}
|
8424
|
-
function
|
8429
|
+
function Np(e, t, n) {
|
8425
8430
|
const r = n ? n.children : void 0, a = (r ? r.indexOf(t) : 1) === 0 ? "th" : "td", o = n && n.type === "table" ? n.align : void 0, l = o ? o.length : t.children.length;
|
8426
8431
|
let s = -1;
|
8427
8432
|
const u = [];
|
@@ -8494,7 +8499,7 @@ const Bp = {
|
|
8494
8499
|
code: mp,
|
8495
8500
|
delete: gp,
|
8496
8501
|
emphasis: yp,
|
8497
|
-
footnoteReference:
|
8502
|
+
footnoteReference: nl,
|
8498
8503
|
footnote: bp,
|
8499
8504
|
heading: vp,
|
8500
8505
|
html: xp,
|
@@ -8508,9 +8513,9 @@ const Bp = {
|
|
8508
8513
|
paragraph: Ip,
|
8509
8514
|
root: Pp,
|
8510
8515
|
strong: Ap,
|
8511
|
-
table:
|
8516
|
+
table: Lp,
|
8512
8517
|
tableCell: jp,
|
8513
|
-
tableRow:
|
8518
|
+
tableRow: Np,
|
8514
8519
|
text: Dp,
|
8515
8520
|
thematicBreak: Rp,
|
8516
8521
|
toml: pn,
|
@@ -8521,7 +8526,7 @@ const Bp = {
|
|
8521
8526
|
function pn() {
|
8522
8527
|
return null;
|
8523
8528
|
}
|
8524
|
-
const
|
8529
|
+
const ol = (
|
8525
8530
|
/**
|
8526
8531
|
* @type {(
|
8527
8532
|
* (<Kind extends Node>(test: PredicateTest<Kind>) => AssertPredicate<Kind>) &
|
@@ -8548,7 +8553,7 @@ function Hp(e) {
|
|
8548
8553
|
const t = [];
|
8549
8554
|
let n = -1;
|
8550
8555
|
for (; ++n < e.length; )
|
8551
|
-
t[n] =
|
8556
|
+
t[n] = ol(e[n]);
|
8552
8557
|
return Mn(r);
|
8553
8558
|
function r(...i) {
|
8554
8559
|
let a = -1;
|
@@ -8597,7 +8602,7 @@ const $p = !0, Oa = !1, Vp = "skip", Wp = (
|
|
8597
8602
|
*/
|
8598
8603
|
function(e, t, n, r) {
|
8599
8604
|
typeof t == "function" && typeof n != "function" && (r = n, n = t, t = null);
|
8600
|
-
const i =
|
8605
|
+
const i = ol(t), a = r ? -1 : 1;
|
8601
8606
|
o(e, void 0, [])();
|
8602
8607
|
function o(l, s, u) {
|
8603
8608
|
const c = l && typeof l == "object" ? l : {};
|
@@ -8712,7 +8717,7 @@ function Yp(e, t) {
|
|
8712
8717
|
});
|
8713
8718
|
}
|
8714
8719
|
function l(u, c) {
|
8715
|
-
return
|
8720
|
+
return ll(o, u, c);
|
8716
8721
|
}
|
8717
8722
|
function s(u) {
|
8718
8723
|
return ti(o, u);
|
@@ -8734,7 +8739,7 @@ function Jp(e, t) {
|
|
8734
8739
|
}
|
8735
8740
|
return n;
|
8736
8741
|
}
|
8737
|
-
function
|
8742
|
+
function ll(e, t, n) {
|
8738
8743
|
const r = t && t.type;
|
8739
8744
|
if (!r)
|
8740
8745
|
throw new Error("Expected node, got `" + t + "`");
|
@@ -8746,7 +8751,7 @@ function ti(e, t) {
|
|
8746
8751
|
const r = t.children;
|
8747
8752
|
let i = -1;
|
8748
8753
|
for (; ++i < r.length; ) {
|
8749
|
-
const a =
|
8754
|
+
const a = ll(e, r[i], t);
|
8750
8755
|
if (a) {
|
8751
8756
|
if (i && r[i - 1].type === "break" && (!Array.isArray(a) && a.type === "text" && (a.value = a.value.replace(/^\s+/, "")), !Array.isArray(a) && a.type === "element")) {
|
8752
8757
|
const o = a.children[0];
|
@@ -8848,7 +8853,7 @@ function th(e) {
|
|
8848
8853
|
]
|
8849
8854
|
};
|
8850
8855
|
}
|
8851
|
-
function
|
8856
|
+
function sl(e, t) {
|
8852
8857
|
const n = Yp(e, t), r = n.one(e, null), i = th(n);
|
8853
8858
|
return i && r.children.push({ type: "text", value: `
|
8854
8859
|
` }, i), Array.isArray(r) ? { type: "root", children: r } : r;
|
@@ -8861,13 +8866,13 @@ const nh = (
|
|
8861
8866
|
);
|
8862
8867
|
function rh(e, t) {
|
8863
8868
|
return (n, r, i) => {
|
8864
|
-
e.run(
|
8869
|
+
e.run(sl(n, t), r, (a) => {
|
8865
8870
|
i(a);
|
8866
8871
|
});
|
8867
8872
|
};
|
8868
8873
|
}
|
8869
8874
|
function ih(e) {
|
8870
|
-
return (t) =>
|
8875
|
+
return (t) => sl(t, e);
|
8871
8876
|
}
|
8872
8877
|
class nn {
|
8873
8878
|
/**
|
@@ -8883,14 +8888,14 @@ class nn {
|
|
8883
8888
|
nn.prototype.property = {};
|
8884
8889
|
nn.prototype.normal = {};
|
8885
8890
|
nn.prototype.space = null;
|
8886
|
-
function
|
8891
|
+
function ul(e, t) {
|
8887
8892
|
const n = {}, r = {};
|
8888
8893
|
let i = -1;
|
8889
8894
|
for (; ++i < e.length; )
|
8890
8895
|
Object.assign(n, e[i].property), Object.assign(r, e[i].normal);
|
8891
8896
|
return new nn(n, r, t);
|
8892
8897
|
}
|
8893
|
-
function
|
8898
|
+
function Br(e) {
|
8894
8899
|
return e.toLowerCase();
|
8895
8900
|
}
|
8896
8901
|
class Ve {
|
@@ -8914,20 +8919,20 @@ Ve.prototype.commaOrSpaceSeparated = !1;
|
|
8914
8919
|
Ve.prototype.mustUseProperty = !1;
|
8915
8920
|
Ve.prototype.defined = !1;
|
8916
8921
|
let ah = 0;
|
8917
|
-
const ne = _t(), Se = _t(),
|
8922
|
+
const ne = _t(), Se = _t(), cl = _t(), V = _t(), ge = _t(), jt = _t(), Re = _t();
|
8918
8923
|
function _t() {
|
8919
8924
|
return 2 ** ++ah;
|
8920
8925
|
}
|
8921
|
-
const
|
8926
|
+
const Hr = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineProperty({
|
8922
8927
|
__proto__: null,
|
8923
8928
|
boolean: ne,
|
8924
8929
|
booleanish: Se,
|
8925
8930
|
commaOrSpaceSeparated: Re,
|
8926
8931
|
commaSeparated: jt,
|
8927
8932
|
number: V,
|
8928
|
-
overloadedBoolean:
|
8933
|
+
overloadedBoolean: cl,
|
8929
8934
|
spaceSeparated: ge
|
8930
|
-
}, Symbol.toStringTag, { value: "Module" })), dr = Object.keys(
|
8935
|
+
}, Symbol.toStringTag, { value: "Module" })), dr = Object.keys(Hr);
|
8931
8936
|
class ni extends Ve {
|
8932
8937
|
/**
|
8933
8938
|
* @constructor
|
@@ -8941,7 +8946,7 @@ class ni extends Ve {
|
|
8941
8946
|
if (super(t, n), Aa(this, "space", i), typeof r == "number")
|
8942
8947
|
for (; ++a < dr.length; ) {
|
8943
8948
|
const o = dr[a];
|
8944
|
-
Aa(this, dr[a], (r &
|
8949
|
+
Aa(this, dr[a], (r & Hr[o]) === Hr[o]);
|
8945
8950
|
}
|
8946
8951
|
}
|
8947
8952
|
}
|
@@ -8961,11 +8966,11 @@ function Rt(e) {
|
|
8961
8966
|
i,
|
8962
8967
|
e.space
|
8963
8968
|
);
|
8964
|
-
e.mustUseProperty && e.mustUseProperty.includes(r) && (a.mustUseProperty = !0), t[r] = a, n[
|
8969
|
+
e.mustUseProperty && e.mustUseProperty.includes(r) && (a.mustUseProperty = !0), t[r] = a, n[Br(r)] = r, n[Br(a.attribute)] = r;
|
8965
8970
|
}
|
8966
8971
|
return new nn(t, n, e.space);
|
8967
8972
|
}
|
8968
|
-
const
|
8973
|
+
const fl = Rt({
|
8969
8974
|
space: "xlink",
|
8970
8975
|
transform(e, t) {
|
8971
8976
|
return "xlink:" + t.slice(5).toLowerCase();
|
@@ -8979,25 +8984,25 @@ const cl = Rt({
|
|
8979
8984
|
xLinkTitle: null,
|
8980
8985
|
xLinkType: null
|
8981
8986
|
}
|
8982
|
-
}),
|
8987
|
+
}), dl = Rt({
|
8983
8988
|
space: "xml",
|
8984
8989
|
transform(e, t) {
|
8985
8990
|
return "xml:" + t.slice(3).toLowerCase();
|
8986
8991
|
},
|
8987
8992
|
properties: { xmlLang: null, xmlBase: null, xmlSpace: null }
|
8988
8993
|
});
|
8989
|
-
function
|
8994
|
+
function pl(e, t) {
|
8990
8995
|
return t in e ? e[t] : t;
|
8991
8996
|
}
|
8992
|
-
function
|
8993
|
-
return
|
8997
|
+
function hl(e, t) {
|
8998
|
+
return pl(e, t.toLowerCase());
|
8994
8999
|
}
|
8995
|
-
const
|
9000
|
+
const ml = Rt({
|
8996
9001
|
space: "xmlns",
|
8997
9002
|
attributes: { xmlnsxlink: "xmlns:xlink" },
|
8998
|
-
transform:
|
9003
|
+
transform: hl,
|
8999
9004
|
properties: { xmlns: null, xmlnsXLink: null }
|
9000
|
-
}),
|
9005
|
+
}), gl = Rt({
|
9001
9006
|
transform(e, t) {
|
9002
9007
|
return t === "role" ? t : "aria-" + t.slice(4).toLowerCase();
|
9003
9008
|
},
|
@@ -9060,7 +9065,7 @@ const hl = Rt({
|
|
9060
9065
|
htmlfor: "for",
|
9061
9066
|
httpequiv: "http-equiv"
|
9062
9067
|
},
|
9063
|
-
transform:
|
9068
|
+
transform: hl,
|
9064
9069
|
mustUseProperty: ["checked", "multiple", "muted", "selected"],
|
9065
9070
|
properties: {
|
9066
9071
|
// Standard Properties.
|
@@ -9102,7 +9107,7 @@ const hl = Rt({
|
|
9102
9107
|
dir: null,
|
9103
9108
|
dirName: null,
|
9104
9109
|
disabled: ne,
|
9105
|
-
download:
|
9110
|
+
download: cl,
|
9106
9111
|
draggable: Se,
|
9107
9112
|
encType: null,
|
9108
9113
|
enterKeyHint: null,
|
@@ -9590,7 +9595,7 @@ const hl = Rt({
|
|
9590
9595
|
playbackOrder: "playbackorder",
|
9591
9596
|
timelineBegin: "timelinebegin"
|
9592
9597
|
},
|
9593
|
-
transform:
|
9598
|
+
transform: pl,
|
9594
9599
|
properties: {
|
9595
9600
|
about: Re,
|
9596
9601
|
accentHeight: V,
|
@@ -9974,7 +9979,7 @@ const hl = Rt({
|
|
9974
9979
|
}
|
9975
9980
|
}), uh = /^data[-\w.:]+$/i, Fa = /-[a-z]/g, ch = /[A-Z]/g;
|
9976
9981
|
function fh(e, t) {
|
9977
|
-
const n =
|
9982
|
+
const n = Br(t);
|
9978
9983
|
let r = t, i = Ve;
|
9979
9984
|
if (n in e.normal)
|
9980
9985
|
return e.property[e.normal[n]];
|
@@ -9999,7 +10004,7 @@ function dh(e) {
|
|
9999
10004
|
function ph(e) {
|
10000
10005
|
return e.charAt(1).toUpperCase();
|
10001
10006
|
}
|
10002
|
-
const
|
10007
|
+
const La = {
|
10003
10008
|
classId: "classID",
|
10004
10009
|
dataType: "datatype",
|
10005
10010
|
itemId: "itemID",
|
@@ -10017,7 +10022,7 @@ const Na = {
|
|
10017
10022
|
xLinkTitle: "xlinkTitle",
|
10018
10023
|
xLinkType: "xlinkType",
|
10019
10024
|
xmlnsXLink: "xmlnsXlink"
|
10020
|
-
}, hh =
|
10025
|
+
}, hh = ul([dl, fl, ml, gl, lh], "html"), mh = ul([dl, fl, ml, gl, sh], "svg");
|
10021
10026
|
function gh(e) {
|
10022
10027
|
if (e.allowedElements && e.disallowedElements)
|
10023
10028
|
throw new TypeError(
|
@@ -10046,10 +10051,10 @@ var pr = { exports: {} }, fe = {};
|
|
10046
10051
|
* This source code is licensed under the MIT license found in the
|
10047
10052
|
* LICENSE file in the root directory of this source tree.
|
10048
10053
|
*/
|
10049
|
-
var
|
10054
|
+
var Na;
|
10050
10055
|
function yh() {
|
10051
|
-
if (
|
10052
|
-
|
10056
|
+
if (Na) return fe;
|
10057
|
+
Na = 1;
|
10053
10058
|
var e = Symbol.for("react.element"), t = Symbol.for("react.portal"), n = Symbol.for("react.fragment"), r = Symbol.for("react.strict_mode"), i = Symbol.for("react.profiler"), a = Symbol.for("react.provider"), o = Symbol.for("react.context"), l = Symbol.for("react.server_context"), s = Symbol.for("react.forward_ref"), u = Symbol.for("react.suspense"), c = Symbol.for("react.suspense_list"), d = Symbol.for("react.memo"), p = Symbol.for("react.lazy"), f = Symbol.for("react.offscreen"), y;
|
10054
10059
|
y = Symbol.for("react.module.reference");
|
10055
10060
|
function h(v) {
|
@@ -10207,12 +10212,12 @@ function Sh() {
|
|
10207
10212
|
var T = q(), S = E(r);
|
10208
10213
|
if (S) {
|
10209
10214
|
if (U(), !E(i)) return b("property missing ':'");
|
10210
|
-
var O = E(a),
|
10215
|
+
var O = E(a), L = T({
|
10211
10216
|
type: f,
|
10212
10217
|
property: y(S[0].replace(e, d)),
|
10213
10218
|
value: O ? y(O[0].replace(e, d)) : d
|
10214
10219
|
});
|
10215
|
-
return E(o),
|
10220
|
+
return E(o), L;
|
10216
10221
|
}
|
10217
10222
|
}
|
10218
10223
|
function B() {
|
@@ -10245,8 +10250,8 @@ function _h() {
|
|
10245
10250
|
return hn.exports = t, hn.exports.default = t, hn.exports;
|
10246
10251
|
}
|
10247
10252
|
var Eh = _h();
|
10248
|
-
const Th = /* @__PURE__ */ nt(Eh),
|
10249
|
-
function
|
10253
|
+
const Th = /* @__PURE__ */ nt(Eh), zr = {}.hasOwnProperty, Oh = /* @__PURE__ */ new Set(["table", "thead", "tbody", "tfoot", "tr"]);
|
10254
|
+
function yl(e, t) {
|
10250
10255
|
const n = [];
|
10251
10256
|
let r = -1, i;
|
10252
10257
|
for (; ++r < t.children.length; )
|
@@ -10258,14 +10263,14 @@ function Ih(e, t, n, r) {
|
|
10258
10263
|
let u = o, c;
|
10259
10264
|
if (o.space === "html" && l === "svg" && (u = mh, e.schema = u), t.properties)
|
10260
10265
|
for (c in t.properties)
|
10261
|
-
|
10266
|
+
zr.call(t.properties, c) && Ah(s, c, t.properties[c], e);
|
10262
10267
|
(l === "ol" || l === "ul") && e.listDepth++;
|
10263
|
-
const d =
|
10268
|
+
const d = yl(e, t);
|
10264
10269
|
(l === "ol" || l === "ul") && e.listDepth--, e.schema = o;
|
10265
10270
|
const p = t.position || {
|
10266
10271
|
start: { line: null, column: null, offset: null },
|
10267
10272
|
end: { line: null, column: null, offset: null }
|
10268
|
-
}, f = i.components &&
|
10273
|
+
}, f = i.components && zr.call(i.components, l) ? i.components[l] : l, y = typeof f == "string" || f === Xe.Fragment;
|
10269
10274
|
if (!xh.isValidElementType(f))
|
10270
10275
|
throw new TypeError(
|
10271
10276
|
`Component for name \`${l}\` not defined or is not renderable`
|
@@ -10286,7 +10291,7 @@ function Ih(e, t, n, r) {
|
|
10286
10291
|
const h = Ph(t);
|
10287
10292
|
s.checked = h && h.properties ? !!h.properties.checked : null, s.index = mr(r, t), s.ordered = r.tagName === "ol";
|
10288
10293
|
}
|
10289
|
-
return !y && (l === "ol" || l === "ul") && (s.ordered = l === "ol", s.depth = e.listDepth), (l === "td" || l === "th") && (s.align && (s.style || (s.style = {}), s.style.textAlign = s.align, delete s.align), y || (s.isHeader = l === "th")), !y && l === "tr" && r.type === "element" && (s.isHeader = r.tagName === "thead"), i.sourcePos && (s["data-sourcepos"] =
|
10294
|
+
return !y && (l === "ol" || l === "ul") && (s.ordered = l === "ol", s.depth = e.listDepth), (l === "td" || l === "th") && (s.align && (s.style || (s.style = {}), s.style.textAlign = s.align, delete s.align), y || (s.isHeader = l === "th")), !y && l === "tr" && r.type === "element" && (s.isHeader = r.tagName === "thead"), i.sourcePos && (s["data-sourcepos"] = Nh(p)), !y && i.rawSourcePos && (s.sourcePosition = t.position), !y && i.includeElementIndex && (s.index = mr(r, t), s.siblingCount = mr(r)), y || (s.node = t), d.length > 0 ? Xe.createElement(f, s, d) : Xe.createElement(f, s);
|
10290
10295
|
}
|
10291
10296
|
function Ph(e) {
|
10292
10297
|
let t = -1;
|
@@ -10306,7 +10311,7 @@ function mr(e, t) {
|
|
10306
10311
|
function Ah(e, t, n, r) {
|
10307
10312
|
const i = fh(r.schema, t);
|
10308
10313
|
let a = n;
|
10309
|
-
a == null || a !== a || (Array.isArray(a) && (a = i.commaSeparated ? kh(a) : Ch(a)), i.property === "style" && typeof a == "string" && (a = Fh(a)), i.space && i.property ? e[
|
10314
|
+
a == null || a !== a || (Array.isArray(a) && (a = i.commaSeparated ? kh(a) : Ch(a)), i.property === "style" && typeof a == "string" && (a = Fh(a)), i.space && i.property ? e[zr.call(La, i.property) ? La[i.property] : i.property] = a : i.attribute && (e[i.attribute] = a));
|
10310
10315
|
}
|
10311
10316
|
function Fh(e) {
|
10312
10317
|
const t = {};
|
@@ -10317,13 +10322,13 @@ function Fh(e) {
|
|
10317
10322
|
return t;
|
10318
10323
|
function n(r, i) {
|
10319
10324
|
const a = r.slice(0, 4) === "-ms-" ? `ms-${r.slice(4)}` : r;
|
10320
|
-
t[a.replace(/-([a-z])/g,
|
10325
|
+
t[a.replace(/-([a-z])/g, Lh)] = i;
|
10321
10326
|
}
|
10322
10327
|
}
|
10323
|
-
function
|
10328
|
+
function Lh(e, t) {
|
10324
10329
|
return t.toUpperCase();
|
10325
10330
|
}
|
10326
|
-
function
|
10331
|
+
function Nh(e) {
|
10327
10332
|
return [
|
10328
10333
|
e.start.line,
|
10329
10334
|
":",
|
@@ -10369,7 +10374,7 @@ function ri(e) {
|
|
10369
10374
|
const t = nf().use(dp).use(e.remarkPlugins || []).use(nh, {
|
10370
10375
|
...e.remarkRehypeOptions,
|
10371
10376
|
allowDangerousHtml: !0
|
10372
|
-
}).use(e.rehypePlugins || []).use(gh, e), n = new
|
10377
|
+
}).use(e.rehypePlugins || []).use(gh, e), n = new Ho();
|
10373
10378
|
typeof e.children == "string" ? n.value = e.children : e.children !== void 0 && e.children !== null && console.warn(
|
10374
10379
|
`[react-markdown] Warning: please pass a string as \`children\` (not: \`${e.children}\`)`
|
10375
10380
|
);
|
@@ -10379,7 +10384,7 @@ function ri(e) {
|
|
10379
10384
|
let i = Xe.createElement(
|
10380
10385
|
Xe.Fragment,
|
10381
10386
|
{},
|
10382
|
-
|
10387
|
+
yl({ options: e, schema: hh, listDepth: 0 }, r)
|
10383
10388
|
);
|
10384
10389
|
return e.className && (i = Xe.createElement("div", { className: e.className }, i)), i;
|
10385
10390
|
}
|
@@ -10483,18 +10488,18 @@ function Rh() {
|
|
10483
10488
|
e.exports = r();
|
10484
10489
|
})(Dh, function() {
|
10485
10490
|
var n = 1e3, r = 6e4, i = 36e5, a = "millisecond", o = "second", l = "minute", s = "hour", u = "day", c = "week", d = "month", p = "quarter", f = "year", y = "date", h = "Invalid Date", v = /^(\d{4})[-/]?(\d{1,2})?[-/]?(\d{0,2})[Tt\s]*(\d{1,2})?:?(\d{1,2})?:?(\d{1,2})?[.:]?(\d+)?$/, g = /\[([^\]]+)]|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(S) {
|
10486
|
-
var O = ["th", "st", "nd", "rd"],
|
10487
|
-
return "[" + S + (O[(
|
10488
|
-
} }, A = function(S, O,
|
10491
|
+
var O = ["th", "st", "nd", "rd"], L = S % 100;
|
10492
|
+
return "[" + S + (O[(L - 20) % 10] || O[L] || O[0]) + "]";
|
10493
|
+
} }, A = function(S, O, L) {
|
10489
10494
|
var H = String(S);
|
10490
|
-
return !H || H.length >= O ? S : "" + Array(O + 1 - H.length).join(
|
10495
|
+
return !H || H.length >= O ? S : "" + Array(O + 1 - H.length).join(L) + S;
|
10491
10496
|
}, q = { s: A, z: function(S) {
|
10492
|
-
var O = -S.utcOffset(),
|
10497
|
+
var O = -S.utcOffset(), L = Math.abs(O), H = Math.floor(L / 60), j = L % 60;
|
10493
10498
|
return (O <= 0 ? "+" : "-") + A(H, 2, "0") + ":" + A(j, 2, "0");
|
10494
|
-
}, m: function S(O,
|
10495
|
-
if (O.date() <
|
10496
|
-
var H = 12 * (
|
10497
|
-
return +(-(H + (
|
10499
|
+
}, m: function S(O, L) {
|
10500
|
+
if (O.date() < L.date()) return -S(L, O);
|
10501
|
+
var H = 12 * (L.year() - O.year()) + (L.month() - O.month()), j = O.clone().add(H, d), D = L - j < 0, m = O.clone().add(H + (D ? -1 : 1), d);
|
10502
|
+
return +(-(H + (L - j) / (D ? j - m : m - j)) || 0);
|
10498
10503
|
}, a: function(S) {
|
10499
10504
|
return S < 0 ? Math.ceil(S) || 0 : Math.floor(S);
|
10500
10505
|
}, p: function(S) {
|
@@ -10505,12 +10510,12 @@ function Rh() {
|
|
10505
10510
|
b[I] = P;
|
10506
10511
|
var E = "$isDayjsObject", z = function(S) {
|
10507
10512
|
return S instanceof B || !(!S || !S[E]);
|
10508
|
-
}, F = function S(O,
|
10513
|
+
}, F = function S(O, L, H) {
|
10509
10514
|
var j;
|
10510
10515
|
if (!O) return I;
|
10511
10516
|
if (typeof O == "string") {
|
10512
10517
|
var D = O.toLowerCase();
|
10513
|
-
b[D] && (j = D),
|
10518
|
+
b[D] && (j = D), L && (b[D] = L, j = D);
|
10514
10519
|
var m = O.split("-");
|
10515
10520
|
if (!j && m.length > 1) return S(m[0]);
|
10516
10521
|
} else {
|
@@ -10520,18 +10525,18 @@ function Rh() {
|
|
10520
10525
|
return !H && j && (I = j), j || !H && I;
|
10521
10526
|
}, U = function(S, O) {
|
10522
10527
|
if (z(S)) return S.clone();
|
10523
|
-
var
|
10524
|
-
return
|
10528
|
+
var L = typeof O == "object" ? O : {};
|
10529
|
+
return L.date = S, L.args = arguments, new B(L);
|
10525
10530
|
}, M = q;
|
10526
10531
|
M.l = F, M.i = z, M.w = function(S, O) {
|
10527
10532
|
return U(S, { locale: O.$L, utc: O.$u, x: O.$x, $offset: O.$offset });
|
10528
10533
|
};
|
10529
10534
|
var B = function() {
|
10530
|
-
function S(
|
10531
|
-
this.$L = F(
|
10535
|
+
function S(L) {
|
10536
|
+
this.$L = F(L.locale, null, !0), this.parse(L), this.$x = this.$x || L.x || {}, this[E] = !0;
|
10532
10537
|
}
|
10533
10538
|
var O = S.prototype;
|
10534
|
-
return O.parse = function(
|
10539
|
+
return O.parse = function(L) {
|
10535
10540
|
this.$d = function(H) {
|
10536
10541
|
var j = H.date, D = H.utc;
|
10537
10542
|
if (j === null) return /* @__PURE__ */ new Date(NaN);
|
@@ -10545,29 +10550,29 @@ function Rh() {
|
|
10545
10550
|
}
|
10546
10551
|
}
|
10547
10552
|
return new Date(j);
|
10548
|
-
}(
|
10553
|
+
}(L), this.init();
|
10549
10554
|
}, O.init = function() {
|
10550
|
-
var
|
10551
|
-
this.$y =
|
10555
|
+
var L = this.$d;
|
10556
|
+
this.$y = L.getFullYear(), this.$M = L.getMonth(), this.$D = L.getDate(), this.$W = L.getDay(), this.$H = L.getHours(), this.$m = L.getMinutes(), this.$s = L.getSeconds(), this.$ms = L.getMilliseconds();
|
10552
10557
|
}, O.$utils = function() {
|
10553
10558
|
return M;
|
10554
10559
|
}, O.isValid = function() {
|
10555
10560
|
return this.$d.toString() !== h;
|
10556
|
-
}, O.isSame = function(
|
10557
|
-
var j = U(
|
10561
|
+
}, O.isSame = function(L, H) {
|
10562
|
+
var j = U(L);
|
10558
10563
|
return this.startOf(H) <= j && j <= this.endOf(H);
|
10559
|
-
}, O.isAfter = function(
|
10560
|
-
return U(
|
10561
|
-
}, O.isBefore = function(
|
10562
|
-
return this.endOf(H) < U(
|
10563
|
-
}, O.$g = function(
|
10564
|
-
return M.u(
|
10564
|
+
}, O.isAfter = function(L, H) {
|
10565
|
+
return U(L) < this.startOf(H);
|
10566
|
+
}, O.isBefore = function(L, H) {
|
10567
|
+
return this.endOf(H) < U(L);
|
10568
|
+
}, O.$g = function(L, H, j) {
|
10569
|
+
return M.u(L) ? this[H] : this.set(j, L);
|
10565
10570
|
}, O.unix = function() {
|
10566
10571
|
return Math.floor(this.valueOf() / 1e3);
|
10567
10572
|
}, O.valueOf = function() {
|
10568
10573
|
return this.$d.getTime();
|
10569
|
-
}, O.startOf = function(
|
10570
|
-
var j = this, D = !!M.u(H) || H, m = M.p(
|
10574
|
+
}, O.startOf = function(L, H) {
|
10575
|
+
var j = this, D = !!M.u(H) || H, m = M.p(L), W = function(xe, he) {
|
10571
10576
|
var Ee = M.w(j.$u ? Date.UTC(j.$y, he, xe) : new Date(j.$y, he, xe), j);
|
10572
10577
|
return D ? Ee : Ee.endOf(u);
|
10573
10578
|
}, Y = function(xe, he) {
|
@@ -10593,48 +10598,48 @@ function Rh() {
|
|
10593
10598
|
default:
|
10594
10599
|
return this.clone();
|
10595
10600
|
}
|
10596
|
-
}, O.endOf = function(
|
10597
|
-
return this.startOf(
|
10598
|
-
}, O.$set = function(
|
10599
|
-
var j, D = M.p(
|
10601
|
+
}, O.endOf = function(L) {
|
10602
|
+
return this.startOf(L, !1);
|
10603
|
+
}, O.$set = function(L, H) {
|
10604
|
+
var j, D = M.p(L), m = "set" + (this.$u ? "UTC" : ""), W = (j = {}, j[u] = m + "Date", j[y] = m + "Date", j[d] = m + "Month", j[f] = m + "FullYear", j[s] = m + "Hours", j[l] = m + "Minutes", j[o] = m + "Seconds", j[a] = m + "Milliseconds", j)[D], Y = D === u ? this.$D + (H - this.$W) : H;
|
10600
10605
|
if (D === d || D === f) {
|
10601
10606
|
var w = this.clone().set(y, 1);
|
10602
10607
|
w.$d[W](Y), w.init(), this.$d = w.set(y, Math.min(this.$D, w.daysInMonth())).$d;
|
10603
10608
|
} else W && this.$d[W](Y);
|
10604
10609
|
return this.init(), this;
|
10605
|
-
}, O.set = function(
|
10606
|
-
return this.clone().$set(
|
10607
|
-
}, O.get = function(
|
10608
|
-
return this[M.p(
|
10609
|
-
}, O.add = function(
|
10610
|
+
}, O.set = function(L, H) {
|
10611
|
+
return this.clone().$set(L, H);
|
10612
|
+
}, O.get = function(L) {
|
10613
|
+
return this[M.p(L)]();
|
10614
|
+
}, O.add = function(L, H) {
|
10610
10615
|
var j, D = this;
|
10611
|
-
|
10616
|
+
L = Number(L);
|
10612
10617
|
var m = M.p(H), W = function(K) {
|
10613
10618
|
var oe = U(D);
|
10614
|
-
return M.w(oe.date(oe.date() + Math.round(K *
|
10619
|
+
return M.w(oe.date(oe.date() + Math.round(K * L)), D);
|
10615
10620
|
};
|
10616
|
-
if (m === d) return this.set(d, this.$M +
|
10617
|
-
if (m === f) return this.set(f, this.$y +
|
10621
|
+
if (m === d) return this.set(d, this.$M + L);
|
10622
|
+
if (m === f) return this.set(f, this.$y + L);
|
10618
10623
|
if (m === u) return W(1);
|
10619
10624
|
if (m === c) return W(7);
|
10620
|
-
var Y = (j = {}, j[l] = r, j[s] = i, j[o] = n, j)[m] || 1, w = this.$d.getTime() +
|
10625
|
+
var Y = (j = {}, j[l] = r, j[s] = i, j[o] = n, j)[m] || 1, w = this.$d.getTime() + L * Y;
|
10621
10626
|
return M.w(w, this);
|
10622
|
-
}, O.subtract = function(
|
10623
|
-
return this.add(-1 *
|
10624
|
-
}, O.format = function(
|
10627
|
+
}, O.subtract = function(L, H) {
|
10628
|
+
return this.add(-1 * L, H);
|
10629
|
+
}, O.format = function(L) {
|
10625
10630
|
var H = this, j = this.$locale();
|
10626
10631
|
if (!this.isValid()) return j.invalidDate || h;
|
10627
|
-
var D =
|
10628
|
-
return he && (he[Ee] || he(H, D)) ||
|
10632
|
+
var D = L || "YYYY-MM-DDTHH:mm:ssZ", m = M.z(this), W = this.$H, Y = this.$m, w = this.$M, K = j.weekdays, oe = j.months, re = j.meridiem, de = function(he, Ee, Le, Ze) {
|
10633
|
+
return he && (he[Ee] || he(H, D)) || Le[Ee].slice(0, Ze);
|
10629
10634
|
}, pe = function(he) {
|
10630
10635
|
return M.s(W % 12 || 12, he, "0");
|
10631
|
-
}, xe = re || function(he, Ee,
|
10636
|
+
}, xe = re || function(he, Ee, Le) {
|
10632
10637
|
var Ze = he < 12 ? "AM" : "PM";
|
10633
|
-
return
|
10638
|
+
return Le ? Ze.toLowerCase() : Ze;
|
10634
10639
|
};
|
10635
10640
|
return D.replace(g, function(he, Ee) {
|
10636
|
-
return Ee || function(
|
10637
|
-
switch (
|
10641
|
+
return Ee || function(Le) {
|
10642
|
+
switch (Le) {
|
10638
10643
|
case "YY":
|
10639
10644
|
return String(H.$y).slice(-2);
|
10640
10645
|
case "YYYY":
|
@@ -10689,8 +10694,8 @@ function Rh() {
|
|
10689
10694
|
});
|
10690
10695
|
}, O.utcOffset = function() {
|
10691
10696
|
return 15 * -Math.round(this.$d.getTimezoneOffset() / 15);
|
10692
|
-
}, O.diff = function(
|
10693
|
-
var D, m = this, W = M.p(H), Y = U(
|
10697
|
+
}, O.diff = function(L, H, j) {
|
10698
|
+
var D, m = this, W = M.p(H), Y = U(L), w = (Y.utcOffset() - this.utcOffset()) * r, K = this - Y, oe = function() {
|
10694
10699
|
return M.m(m, Y);
|
10695
10700
|
};
|
10696
10701
|
switch (W) {
|
@@ -10726,9 +10731,9 @@ function Rh() {
|
|
10726
10731
|
return this.endOf(d).$D;
|
10727
10732
|
}, O.$locale = function() {
|
10728
10733
|
return b[this.$L];
|
10729
|
-
}, O.locale = function(
|
10730
|
-
if (!
|
10731
|
-
var j = this.clone(), D = F(
|
10734
|
+
}, O.locale = function(L, H) {
|
10735
|
+
if (!L) return this.$L;
|
10736
|
+
var j = this.clone(), D = F(L, H, !0);
|
10732
10737
|
return D && (j.$L = D), j;
|
10733
10738
|
}, O.clone = function() {
|
10734
10739
|
return M.w(this.$d, this);
|
@@ -10874,7 +10879,7 @@ const Vh = "Sure, I can get you to someone who can help.", rn = ({
|
|
10874
10879
|
v && /* @__PURE__ */ k.jsxs(k.Fragment, { children: [
|
10875
10880
|
/* @__PURE__ */ k.jsx("div", { children: Vh }),
|
10876
10881
|
/* @__PURE__ */ k.jsx(
|
10877
|
-
|
10882
|
+
Nn,
|
10878
10883
|
{
|
10879
10884
|
submitEvent: l,
|
10880
10885
|
setLiveChatOpen: o,
|
@@ -10902,7 +10907,7 @@ const Vh = "Sure, I can get you to someone who can help.", rn = ({
|
|
10902
10907
|
),
|
10903
10908
|
y && /* @__PURE__ */ k.jsx("div", { className: "xpert-chatbot-popup__bubble--timestamp", children: Hh(y).format("hh:mm a") }),
|
10904
10909
|
!d && i && f === "assistant" ? /* @__PURE__ */ k.jsx(
|
10905
|
-
|
10910
|
+
Ro,
|
10906
10911
|
{
|
10907
10912
|
id: e,
|
10908
10913
|
message: n,
|
@@ -10916,7 +10921,7 @@ const Vh = "Sure, I can get you to someone who can help.", rn = ({
|
|
10916
10921
|
rn.propTypes = {
|
10917
10922
|
index: C.number.isRequired,
|
10918
10923
|
isTestUser: C.bool,
|
10919
|
-
message:
|
10924
|
+
message: uo.isRequired,
|
10920
10925
|
messageRef: C.shape({ current: C.instanceOf(Element) }),
|
10921
10926
|
onFeedbackThumbSelection: C.func.isRequired,
|
10922
10927
|
onMessageLinkClicked: C.func,
|
@@ -10952,7 +10957,7 @@ ii.propTypes = {
|
|
10952
10957
|
}).isRequired
|
10953
10958
|
};
|
10954
10959
|
ii.displayName = "NotificationMessage";
|
10955
|
-
function
|
10960
|
+
function bl({ disableScroll: e }) {
|
10956
10961
|
const t = Ue(null);
|
10957
10962
|
return Ce(() => {
|
10958
10963
|
var n;
|
@@ -10976,7 +10981,7 @@ function yl({ disableScroll: e }) {
|
|
10976
10981
|
}
|
10977
10982
|
);
|
10978
10983
|
}
|
10979
|
-
|
10984
|
+
bl.propTypes = {
|
10980
10985
|
disableScroll: C.bool
|
10981
10986
|
};
|
10982
10987
|
const an = ({
|
@@ -11008,7 +11013,7 @@ const an = ({
|
|
11008
11013
|
style: { display: "flex", flexDirection: "column" },
|
11009
11014
|
children: n.map((c, d) => {
|
11010
11015
|
const { role: p } = c, f = `${p}-${d}`;
|
11011
|
-
return p === "error" ? /* @__PURE__ */ k.jsx(
|
11016
|
+
return p === "error" ? /* @__PURE__ */ k.jsx(Fr, { content: c == null ? void 0 : c.content }, f) : p === "notification" ? /* @__PURE__ */ k.jsx(ii, { message: c }, f) : ["agent", "assistant", "info", "user"].includes(p) ? /* @__PURE__ */ k.jsx(
|
11012
11017
|
rn,
|
11013
11018
|
{
|
11014
11019
|
index: d,
|
@@ -11025,8 +11030,8 @@ const an = ({
|
|
11025
11030
|
})
|
11026
11031
|
}
|
11027
11032
|
),
|
11028
|
-
t && /* @__PURE__ */ k.jsx(
|
11029
|
-
s && /* @__PURE__ */ k.jsx(
|
11033
|
+
t && /* @__PURE__ */ k.jsx(bl, { disableScroll: l }),
|
11034
|
+
s && /* @__PURE__ */ k.jsx(Fr, {})
|
11030
11035
|
] });
|
11031
11036
|
};
|
11032
11037
|
an.propTypes = {
|
@@ -11046,7 +11051,7 @@ an.defaultProps = {
|
|
11046
11051
|
submitEvent: null
|
11047
11052
|
};
|
11048
11053
|
an.displayName = "ConversationMessages";
|
11049
|
-
const
|
11054
|
+
const vl = () => {
|
11050
11055
|
var s, u, c;
|
11051
11056
|
const { conversationScreen: e, id: t } = ee(ke), n = `${t}-maintenance-banner`, [r, i] = te(
|
11052
11057
|
Be.get(n) === void 0
|
@@ -11097,7 +11102,7 @@ const bl = () => {
|
|
11097
11102
|
}
|
11098
11103
|
);
|
11099
11104
|
};
|
11100
|
-
|
11105
|
+
vl.displayName = "MaintenanceBanner";
|
11101
11106
|
const ai = ({ loading: e, onPromptClick: t }) => {
|
11102
11107
|
var a;
|
11103
11108
|
const { primaryColor: n, conversationScreen: r } = ee(ke), { deleteConversationModal: i } = ee(St);
|
@@ -11156,7 +11161,7 @@ function oi({
|
|
11156
11161
|
position: "relative"
|
11157
11162
|
},
|
11158
11163
|
children: [
|
11159
|
-
(c == null ? void 0 : c.text) && /* @__PURE__ */ k.jsx(
|
11164
|
+
(c == null ? void 0 : c.text) && /* @__PURE__ */ k.jsx(So, {}),
|
11160
11165
|
((v = u == null ? void 0 : u.prompts) == null ? void 0 : v.length) > 0 && /* @__PURE__ */ k.jsx(ai, { loading: f, onPromptClick: r }),
|
11161
11166
|
(u == null ? void 0 : u.systemMessage) && /* @__PURE__ */ k.jsx(
|
11162
11167
|
rn,
|
@@ -11182,7 +11187,7 @@ function oi({
|
|
11182
11187
|
]
|
11183
11188
|
}
|
11184
11189
|
),
|
11185
|
-
/* @__PURE__ */ k.jsx(
|
11190
|
+
/* @__PURE__ */ k.jsx(vl, {}),
|
11186
11191
|
/* @__PURE__ */ k.jsxs(
|
11187
11192
|
"div",
|
11188
11193
|
{
|
@@ -11194,7 +11199,7 @@ function oi({
|
|
11194
11199
|
},
|
11195
11200
|
children: [
|
11196
11201
|
((g = u == null ? void 0 : u.liveChat) == null ? void 0 : g.enabled) && /* @__PURE__ */ k.jsx(
|
11197
|
-
|
11202
|
+
Nn,
|
11198
11203
|
{
|
11199
11204
|
buttonClassName: "xpert-chatbot-popup__live-chat--btn-outline",
|
11200
11205
|
containerStyle: { margin: "auto -1rem auto 1rem" },
|
@@ -11204,7 +11209,7 @@ function oi({
|
|
11204
11209
|
}
|
11205
11210
|
),
|
11206
11211
|
/* @__PURE__ */ k.jsx("div", { style: { display: "flex", flex: 1, padding: "1.5rem" }, children: /* @__PURE__ */ k.jsx(
|
11207
|
-
|
11212
|
+
Ln,
|
11208
11213
|
{
|
11209
11214
|
disabled: f || d,
|
11210
11215
|
handleChange: t,
|
@@ -11315,7 +11320,7 @@ function si() {
|
|
11315
11320
|
return at.setUpSocketIOPing = r, at;
|
11316
11321
|
}
|
11317
11322
|
var gn = {}, Ua;
|
11318
|
-
function
|
11323
|
+
function xl() {
|
11319
11324
|
if (Ua) return gn;
|
11320
11325
|
Ua = 1, Object.defineProperty(gn, "__esModule", { value: !0 }), gn.heartbeat = n;
|
11321
11326
|
var e = rt();
|
@@ -11402,7 +11407,7 @@ function Wh() {
|
|
11402
11407
|
}, e.apply(this, arguments);
|
11403
11408
|
};
|
11404
11409
|
Object.defineProperty(bt, "__esModule", { value: !0 }), bt.attachListeners = void 0;
|
11405
|
-
var t = si(), n =
|
11410
|
+
var t = si(), n = xl(), r = rt(), i = ci(), a = function(c, d, p, f) {
|
11406
11411
|
c.onmessage = function(y) {
|
11407
11412
|
var h;
|
11408
11413
|
d.current.onMessage && d.current.onMessage(y), typeof (f == null ? void 0 : f.current) == "number" && (f.current = Date.now()), !(typeof d.current.filter == "function" && d.current.filter(y) !== !0) && (d.current.heartbeat && typeof d.current.heartbeat != "boolean" && ((h = d.current.heartbeat) === null || h === void 0 ? void 0 : h.returnMessage) === y.data || p(y));
|
@@ -11472,7 +11477,7 @@ function Gh() {
|
|
11472
11477
|
}, e.apply(this, arguments);
|
11473
11478
|
};
|
11474
11479
|
Object.defineProperty(vt, "__esModule", { value: !0 }), vt.attachSharedListeners = void 0;
|
11475
|
-
var t = li(), n = rt(), r = ui(), i = si(), a =
|
11480
|
+
var t = li(), n = rt(), r = ui(), i = si(), a = xl(), o = function(d, p, f) {
|
11476
11481
|
d.onmessage = function(y) {
|
11477
11482
|
(0, r.getSubscribers)(p).forEach(function(h) {
|
11478
11483
|
var v;
|
@@ -11833,7 +11838,7 @@ function fi() {
|
|
11833
11838
|
}, [v, f.disableJson]), b = (0, i.useRef)(null), E = (0, i.useRef)(null), z = (0, i.useRef)(function() {
|
11834
11839
|
}), F = (0, i.useRef)(0), U = (0, i.useRef)(Date.now()), M = (0, i.useRef)([]), B = (0, i.useRef)(null), T = (0, i.useRef)(f);
|
11835
11840
|
T.current = f;
|
11836
|
-
var S = b.current && A[b.current] !== void 0 ? A[b.current] : p !== null && y === !0 ? o.ReadyState.CONNECTING : o.ReadyState.UNINSTANTIATED, O = f.queryParams ? JSON.stringify(f.queryParams) : null,
|
11841
|
+
var S = b.current && A[b.current] !== void 0 ? A[b.current] : p !== null && y === !0 ? o.ReadyState.CONNECTING : o.ReadyState.UNINSTANTIATED, O = f.queryParams ? JSON.stringify(f.queryParams) : null, L = (0, i.useCallback)(function(D, m) {
|
11837
11842
|
var W;
|
11838
11843
|
if (m === void 0 && (m = !0), o.isEventSourceSupported && E.current instanceof EventSource) {
|
11839
11844
|
console.warn("Unable to send a message from an eventSource");
|
@@ -11841,8 +11846,8 @@ function fi() {
|
|
11841
11846
|
}
|
11842
11847
|
((W = E.current) === null || W === void 0 ? void 0 : W.readyState) === o.ReadyState.OPEN ? ((0, c.assertIsWebSocket)(E.current, T.current.skipAssert), E.current.send(D)) : m && M.current.push(D);
|
11843
11848
|
}, []), H = (0, i.useCallback)(function(D, m) {
|
11844
|
-
m === void 0 && (m = !0),
|
11845
|
-
}, [
|
11849
|
+
m === void 0 && (m = !0), L(JSON.stringify(D), m);
|
11850
|
+
}, [L]), j = (0, i.useCallback)(function() {
|
11846
11851
|
return T.current.share !== !0 || o.isEventSourceSupported && E.current instanceof EventSource ? E.current : (B.current === null && E.current && ((0, c.assertIsWebSocket)(E.current, T.current.skipAssert), B.current = (0, u.default)(E.current, z)), B.current);
|
11847
11852
|
}, []);
|
11848
11853
|
return (0, i.useEffect)(function() {
|
@@ -11873,7 +11878,7 @@ function fi() {
|
|
11873
11878
|
return e(e({}, pe), b.current && (xe = {}, xe[b.current] = de, xe));
|
11874
11879
|
});
|
11875
11880
|
});
|
11876
|
-
}, W && (D = (0, l.createOrJoinSocket)(E, b.current, oe, T, K, z, F, U,
|
11881
|
+
}, W && (D = (0, l.createOrJoinSocket)(E, b.current, oe, T, K, z, F, U, L)), [
|
11877
11882
|
2
|
11878
11883
|
/*return*/
|
11879
11884
|
]);
|
@@ -11890,12 +11895,12 @@ function fi() {
|
|
11890
11895
|
var K;
|
11891
11896
|
return e(e({}, w), b.current && (K = {}, K[b.current] = o.ReadyState.CLOSED, K));
|
11892
11897
|
}));
|
11893
|
-
}, [p, y, O,
|
11898
|
+
}, [p, y, O, L]), (0, i.useEffect)(function() {
|
11894
11899
|
S === o.ReadyState.OPEN && M.current.splice(0).forEach(function(D) {
|
11895
|
-
|
11900
|
+
L(D);
|
11896
11901
|
});
|
11897
11902
|
}, [S]), {
|
11898
|
-
sendMessage:
|
11903
|
+
sendMessage: L,
|
11899
11904
|
sendJsonMessage: H,
|
11900
11905
|
lastMessage: v,
|
11901
11906
|
lastJsonMessage: I,
|
@@ -12040,7 +12045,7 @@ const r0 = "This conversation with a live agent has ended. Please note that a tr
|
|
12040
12045
|
CONNECTING: "CONNECTING",
|
12041
12046
|
CONVERSATION: "CONVERSATION",
|
12042
12047
|
FORM: "FORM"
|
12043
|
-
}, Et = In({}),
|
12048
|
+
}, Et = In({}), wl = ({ children: e, liveChatPayload: t }) => {
|
12044
12049
|
const { conversationScreen: n } = ee(ke), { pushXpertMessage: r } = ee(St), { setHasError: i, setMode: a } = ee(Pe), [o, l] = te(""), [s, u] = te(!1), [, c] = te(""), [d, p] = te([]), [f, y] = te(null), [h, v] = te(st.FORM), [g, P] = te(null), A = (j) => p((D) => [...D, j]), q = async (j) => {
|
12045
12050
|
const D = await n0(j.data), { conversation_id: m, event_type: W, body: Y } = D;
|
12046
12051
|
switch (W) {
|
@@ -12164,12 +12169,12 @@ const r0 = "This conversation with a live agent has ended. Please note that a tr
|
|
12164
12169
|
};
|
12165
12170
|
return /* @__PURE__ */ k.jsx(Et.Provider, { value: H, children: e });
|
12166
12171
|
};
|
12167
|
-
|
12172
|
+
wl.propTypes = {
|
12168
12173
|
children: C.element.isRequired,
|
12169
12174
|
liveChatPayload: C.object
|
12170
12175
|
};
|
12171
12176
|
const i0 = "data:image/svg+xml,%3csvg%20xmlns='http://www.w3.org/2000/svg'%20fill='%23ffffff'%20height='48'%20viewBox='0%20-960%20960%20960'%20width='48'%3e%3cpath%20d='M120-120v-300h60v198l558-558H540v-60h300v300h-60v-198L222-180h198v60H120Z'/%3e%3c/svg%3e", a0 = "data:image/svg+xml,%3csvg%20xmlns='http://www.w3.org/2000/svg'%20fill='%23ffffff'%20height='48'%20viewBox='0%20-960%20960%20960'%20width='48'%3e%3cpath%20d='M370-287h360v-90H370v90ZM180-120q-24%200-42-18t-18-42v-600q0-24%2018-42t42-18h600q24%200%2042%2018t18%2042v600q0%2024-18%2042t-42%2018H180Zm0-60h600v-600H180v600Zm0-600v600-600Z'/%3e%3c/svg%3e";
|
12172
|
-
function
|
12177
|
+
function Cl({ handleResizeButtonClick: e, setIsMounted: t }) {
|
12173
12178
|
const { isMobile: n, isNormalSize: r } = ee(Pe);
|
12174
12179
|
return n ? null : r ? /* @__PURE__ */ k.jsx(
|
12175
12180
|
"button",
|
@@ -12216,11 +12221,11 @@ function wl({ handleResizeButtonClick: e, setIsMounted: t }) {
|
|
12216
12221
|
}
|
12217
12222
|
);
|
12218
12223
|
}
|
12219
|
-
|
12224
|
+
Cl.propTypes = {
|
12220
12225
|
handleResizeButtonClick: C.func,
|
12221
12226
|
setIsMounted: C.func.isRequired
|
12222
12227
|
};
|
12223
|
-
function
|
12228
|
+
function kl({
|
12224
12229
|
handleResizeButtonClick: e,
|
12225
12230
|
setIsMounted: t,
|
12226
12231
|
onClose: n,
|
@@ -12261,7 +12266,7 @@ function Cl({
|
|
12261
12266
|
paddingTop: "1.25rem"
|
12262
12267
|
},
|
12263
12268
|
children: /* @__PURE__ */ k.jsx(
|
12264
|
-
|
12269
|
+
Cl,
|
12265
12270
|
{
|
12266
12271
|
isMounted: r,
|
12267
12272
|
setIsMounted: t,
|
@@ -12289,7 +12294,7 @@ function Cl({
|
|
12289
12294
|
)
|
12290
12295
|
] });
|
12291
12296
|
}
|
12292
|
-
|
12297
|
+
kl.propTypes = {
|
12293
12298
|
handleResizeButtonClick: C.func,
|
12294
12299
|
setIsMounted: C.func.isRequired,
|
12295
12300
|
onClose: C.func.isRequired,
|
@@ -12327,7 +12332,7 @@ di.defaultProps = {
|
|
12327
12332
|
backgroundColor: "#F0CC00",
|
12328
12333
|
textColor: "transparent"
|
12329
12334
|
};
|
12330
|
-
function
|
12335
|
+
function Sl({
|
12331
12336
|
handleResizeButtonClick: e,
|
12332
12337
|
isMounted: t,
|
12333
12338
|
setIsMounted: n,
|
@@ -12362,7 +12367,7 @@ function kl({
|
|
12362
12367
|
{
|
12363
12368
|
"data-ot-ignore": "",
|
12364
12369
|
className: "xpert-chatbot-popup__logo optanon-category-C0001",
|
12365
|
-
src:
|
12370
|
+
src: ho,
|
12366
12371
|
alt: "xpert logo",
|
12367
12372
|
"aria-hidden": !0,
|
12368
12373
|
style: (v = (h = a == null ? void 0 : a.header) == null ? void 0 : h.logo) == null ? void 0 : v.style
|
@@ -12375,7 +12380,7 @@ function kl({
|
|
12375
12380
|
}
|
12376
12381
|
),
|
12377
12382
|
/* @__PURE__ */ k.jsx(
|
12378
|
-
|
12383
|
+
kl,
|
12379
12384
|
{
|
12380
12385
|
handleResizeButtonClick: e,
|
12381
12386
|
isMounted: t,
|
@@ -12397,7 +12402,7 @@ function kl({
|
|
12397
12402
|
}
|
12398
12403
|
);
|
12399
12404
|
}
|
12400
|
-
|
12405
|
+
Sl.propTypes = {
|
12401
12406
|
handleResizeButtonClick: C.func,
|
12402
12407
|
isMounted: C.bool.isRequired,
|
12403
12408
|
setIsMounted: C.func.isRequired,
|
@@ -12634,7 +12639,7 @@ function mi() {
|
|
12634
12639
|
}
|
12635
12640
|
),
|
12636
12641
|
/* @__PURE__ */ k.jsx(
|
12637
|
-
|
12642
|
+
Ln,
|
12638
12643
|
{
|
12639
12644
|
disabled: a,
|
12640
12645
|
handleChange: d,
|
@@ -12681,7 +12686,7 @@ const d0 = "data:image/svg+xml,%3csvg%20xmlns='http://www.w3.org/2000/svg'%20wid
|
|
12681
12686
|
}];
|
12682
12687
|
}, wr = "privacy policy";
|
12683
12688
|
function gi() {
|
12684
|
-
const { conversationScreen: e, primaryColor: t } = ee(ke), { startLiveChat: n } = ee(Et), { setMode: r } = ee(Pe), { form: i, formHeader: a, privacyPolicyLink: o, privacyPolicyText: l } = e.liveChat, [s, , u] = h0({}), [c, d] = te(!1), { clearError: p, errors: f, setErrors: y } = p0(), h =
|
12689
|
+
const { conversationScreen: e, primaryColor: t } = ee(ke), { startLiveChat: n } = ee(Et), { setMode: r } = ee(Pe), { form: i, formHeader: a, privacyPolicyLink: o, privacyPolicyText: l } = e.liveChat, [s, , u] = h0({}), [c, d] = te(!1), { clearError: p, errors: f, setErrors: y } = p0(), h = kr(
|
12685
12690
|
() => (l ?? "").split(wr, 2),
|
12686
12691
|
[l]
|
12687
12692
|
), v = () => {
|
@@ -12805,7 +12810,7 @@ function yi() {
|
|
12805
12810
|
}
|
12806
12811
|
yi.propTypes = {};
|
12807
12812
|
yi.defaultProps = {};
|
12808
|
-
function
|
12813
|
+
function _l({
|
12809
12814
|
children: e,
|
12810
12815
|
cookieName: t,
|
12811
12816
|
onClick: n = () => null,
|
@@ -12885,7 +12890,7 @@ function Sl({
|
|
12885
12890
|
}
|
12886
12891
|
) });
|
12887
12892
|
}
|
12888
|
-
|
12893
|
+
_l.propTypes = {
|
12889
12894
|
children: C.node.isRequired,
|
12890
12895
|
cookieName: C.string.isRequired,
|
12891
12896
|
onClick: C.func,
|
@@ -13031,7 +13036,7 @@ function bi({ submitEventExternal: e }) {
|
|
13031
13036
|
setHasNewMessage: A,
|
13032
13037
|
setIsNormalSize: q,
|
13033
13038
|
setLoading: I
|
13034
|
-
} = ee(Pe), [, b] = te(!1), [, E] = te(!1), [z, F] = te(!1), [U, M] = te(!1), [B, T] = te(""), [S, O] = te(!1),
|
13039
|
+
} = ee(Pe), [, b] = te(!1), [, E] = te(!1), [z, F] = te(!1), [U, M] = te(!1), [B, T] = te(""), [S, O] = te(!1), L = z || !u, H = Ue(null), j = Ue(null), D = Ue(null), m = Be.get(`${i}-test`) === "1";
|
13035
13040
|
m0(
|
13036
13041
|
(ht = r == null ? void 0 : r.liveChat) == null ? void 0 : ht.enabled,
|
13037
13042
|
U,
|
@@ -13040,7 +13045,7 @@ function bi({ submitEventExternal: e }) {
|
|
13040
13045
|
const W = Ct(
|
13041
13046
|
({ name: X, payload: ie }) => {
|
13042
13047
|
if (!n || !(l != null && l.enabled)) return;
|
13043
|
-
const ce =
|
13048
|
+
const ce = lo(l == null ? void 0 : l.payloadParams, ie);
|
13044
13049
|
e ? e({ name: X, payload: ce }) : D.current.track(
|
13045
13050
|
// TODO: this is untestable - create a custom hook to get submit event function.
|
13046
13051
|
X,
|
@@ -13087,7 +13092,7 @@ function bi({ submitEventExternal: e }) {
|
|
13087
13092
|
y0(
|
13088
13093
|
() => {
|
13089
13094
|
var X;
|
13090
|
-
return ((X = r == null ? void 0 : r.conversationHistory) == null ? void 0 : X.enabled) &&
|
13095
|
+
return ((X = r == null ? void 0 : r.conversationHistory) == null ? void 0 : X.enabled) && L && !U && Y();
|
13091
13096
|
}
|
13092
13097
|
), Ce(() => {
|
13093
13098
|
let X, ie;
|
@@ -13219,7 +13224,7 @@ function bi({ submitEventExternal: e }) {
|
|
13219
13224
|
live_agent: le,
|
13220
13225
|
role: Oe,
|
13221
13226
|
tool_calls: ze,
|
13222
|
-
tool_call_id:
|
13227
|
+
tool_call_id: Ne
|
13223
13228
|
}) => {
|
13224
13229
|
p({
|
13225
13230
|
content: J,
|
@@ -13227,7 +13232,7 @@ function bi({ submitEventExternal: e }) {
|
|
13227
13232
|
liveAgent: le,
|
13228
13233
|
role: Oe,
|
13229
13234
|
toolCalls: ze,
|
13230
|
-
toolCallId:
|
13235
|
+
toolCallId: Ne
|
13231
13236
|
}), oe(J, _e);
|
13232
13237
|
}
|
13233
13238
|
);
|
@@ -13278,7 +13283,7 @@ function bi({ submitEventExternal: e }) {
|
|
13278
13283
|
isTestUser: m
|
13279
13284
|
}
|
13280
13285
|
});
|
13281
|
-
},
|
13286
|
+
}, Le = () => {
|
13282
13287
|
F(!1), O(!1), W({
|
13283
13288
|
name: `${l.prefix}.bi.xpert.chatbot.popup.chat.minimized`,
|
13284
13289
|
payload: {
|
@@ -13314,9 +13319,9 @@ function bi({ submitEventExternal: e }) {
|
|
13314
13319
|
// do not remove this class as it's needed to turn off chatbot
|
13315
13320
|
/* @__PURE__ */ k.jsxs("div", { className: `xpert-chatbot${u ? "" : "--inline"}`, children: [
|
13316
13321
|
(o == null ? void 0 : o.enabled) && /* @__PURE__ */ k.jsx(
|
13317
|
-
|
13322
|
+
_l,
|
13318
13323
|
{
|
13319
|
-
showMessage: !
|
13324
|
+
showMessage: !L,
|
13320
13325
|
style: Ot,
|
13321
13326
|
onClose: Ee,
|
13322
13327
|
onClick: he,
|
@@ -13360,16 +13365,16 @@ function bi({ submitEventExternal: e }) {
|
|
13360
13365
|
}
|
13361
13366
|
),
|
13362
13367
|
u && /* @__PURE__ */ k.jsx(l0, {}),
|
13363
|
-
|
13368
|
+
L && !U && /* @__PURE__ */ k.jsx(ko, { isMounted: S, children: /* @__PURE__ */ k.jsx(
|
13364
13369
|
"div",
|
13365
13370
|
{
|
13366
13371
|
ref: H,
|
13367
13372
|
style: { display: "flex", flexDirection: "column", height: "100%" },
|
13368
13373
|
children: /* @__PURE__ */ k.jsxs(k.Fragment, { children: [
|
13369
13374
|
u && /* @__PURE__ */ k.jsx(
|
13370
|
-
|
13375
|
+
Sl,
|
13371
13376
|
{
|
13372
|
-
onClose:
|
13377
|
+
onClose: Le,
|
13373
13378
|
handleResizeButtonClick: xe,
|
13374
13379
|
isMounted: S,
|
13375
13380
|
setIsMounted: O
|
@@ -13403,7 +13408,7 @@ bi.propTypes = {
|
|
13403
13408
|
bi.defaultProps = {
|
13404
13409
|
submitEventExternal: null
|
13405
13410
|
};
|
13406
|
-
const
|
13411
|
+
const El = ({
|
13407
13412
|
children: e,
|
13408
13413
|
clientId: t = null,
|
13409
13414
|
configurations: n = {},
|
@@ -13426,9 +13431,9 @@ const _l = ({
|
|
13426
13431
|
}, d = {
|
13427
13432
|
liveChatPayload: i
|
13428
13433
|
};
|
13429
|
-
return /* @__PURE__ */ k.jsx(
|
13434
|
+
return /* @__PURE__ */ k.jsx(so, { ...u, children: /* @__PURE__ */ k.jsx(fo, { children: /* @__PURE__ */ k.jsx(co, { ...c, children: /* @__PURE__ */ k.jsx(wl, { ...d, children: e }) }) }) });
|
13430
13435
|
};
|
13431
|
-
|
13436
|
+
El.propTypes = {
|
13432
13437
|
children: C.element,
|
13433
13438
|
clientId: C.string,
|
13434
13439
|
configurations: C.object,
|
@@ -13452,7 +13457,7 @@ function E0({
|
|
13452
13457
|
widgetMode: s = !0
|
13453
13458
|
}) {
|
13454
13459
|
return /* @__PURE__ */ k.jsx(
|
13455
|
-
|
13460
|
+
El,
|
13456
13461
|
{
|
13457
13462
|
clientId: e,
|
13458
13463
|
configurations: t,
|