@2uinc/frontend-component-xpert-chatbot 1.27.1 → 1.27.3

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.
Files changed (2) hide show
  1. package/dist/lib/index.min.js +715 -734
  2. package/package.json +1 -1
@@ -1,7 +1,7 @@
1
- import Ge, { createContext as An, useState as ee, useCallback as ct, useEffect as Ce, useContext as Q, useRef as ze, forwardRef as ho, createElement as _r, useMemo as Rs, Fragment as Bs } from "react";
1
+ import Ze, { createContext as An, useState as ee, useCallback as yt, useEffect as ke, useContext as Q, useRef as ze, forwardRef as ho, createElement as _r, useMemo as Rs, Fragment as Bs } from "react";
2
2
  import Hs from "react-dom";
3
3
  var fn = typeof globalThis < "u" ? globalThis : typeof window < "u" ? window : typeof global < "u" ? global : typeof self < "u" ? self : {};
4
- function tt(e) {
4
+ function nt(e) {
5
5
  return e && e.__esModule && Object.prototype.hasOwnProperty.call(e, "default") ? e.default : e;
6
6
  }
7
7
  function mo(e) {
@@ -87,7 +87,7 @@ var Ri;
87
87
  function qs() {
88
88
  if (Ri) return Pt;
89
89
  Ri = 1, zs();
90
- var e = Ge, t = 60103;
90
+ var e = Ze, t = 60103;
91
91
  if (Pt.Fragment = 60107, typeof Symbol == "function" && Symbol.for) {
92
92
  var n = Symbol.for;
93
93
  t = n("react.element"), Pt.Fragment = n("react.fragment");
@@ -237,22 +237,22 @@ function go() {
237
237
  return qi || (qi = 1, Kn.exports = /* @__PURE__ */ Ws()()), Kn.exports;
238
238
  }
239
239
  var Gs = /* @__PURE__ */ go();
240
- const k = /* @__PURE__ */ tt(Gs);
240
+ const k = /* @__PURE__ */ nt(Gs);
241
241
  var Zt = { exports: {} };
242
242
  Zt.exports;
243
243
  var Ui;
244
244
  function Xs() {
245
245
  return Ui || (Ui = 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]", f = "[object Date]", p = "[object Error]", d = "[object Function]", y = "[object GeneratorFunction]", h = "[object Map]", w = "[object Number]", g = "[object Null]", P = "[object Object]", L = "[object Proxy]", q = "[object RegExp]", I = "[object Set]", b = "[object String]", E = "[object Undefined]", z = "[object WeakMap]", N = "[object ArrayBuffer]", U = "[object DataView]", D = "[object Float32Array]", B = "[object Float64Array]", O = "[object Int8Array]", S = "[object Int16Array]", T = "[object Int32Array]", A = "[object Uint8Array]", j = "[object Uint8ClampedArray]", R = "[object Uint16Array]", H = "[object Uint32Array]", m = /[\\^$.*+?()[\]{}|]/g, W = /^\[object .+?Constructor\]$/, J = /^(?:0|[1-9]\d*)$/, x = {};
247
- x[D] = x[B] = x[O] = x[S] = x[T] = x[A] = x[j] = x[R] = x[H] = !0, x[l] = x[s] = x[N] = x[c] = x[U] = x[f] = x[p] = x[d] = x[h] = x[w] = x[P] = x[q] = x[I] = x[b] = x[z] = !1;
248
- var Z = typeof fn == "object" && fn && fn.Object === Object && fn, ie = typeof self == "object" && self && self.Object === Object && self, ne = Z || ie || Function("return this")(), fe = t && !t.nodeType && t, de = fe && !0 && e && !e.nodeType && e, xe = de && de.exports === fe, pe = xe && Z.process, Ee = function() {
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]", f = "[object Date]", p = "[object Error]", d = "[object Function]", y = "[object GeneratorFunction]", h = "[object Map]", w = "[object Number]", g = "[object Null]", P = "[object Object]", L = "[object Proxy]", q = "[object RegExp]", I = "[object Set]", b = "[object String]", E = "[object Undefined]", z = "[object WeakMap]", N = "[object ArrayBuffer]", $ = "[object DataView]", D = "[object Float32Array]", B = "[object Float64Array]", O = "[object Int8Array]", S = "[object Int16Array]", T = "[object Int32Array]", A = "[object Uint8Array]", j = "[object Uint8ClampedArray]", R = "[object Uint16Array]", H = "[object Uint32Array]", m = /[\\^$.*+?()[\]{}|]/g, W = /^\[object .+?Constructor\]$/, J = /^(?:0|[1-9]\d*)$/, x = {};
247
+ x[D] = x[B] = x[O] = x[S] = x[T] = x[A] = x[j] = x[R] = x[H] = !0, x[l] = x[s] = x[N] = x[c] = x[$] = x[f] = x[p] = x[d] = x[h] = x[w] = x[P] = x[q] = x[I] = x[b] = x[z] = !1;
248
+ var X = typeof fn == "object" && fn && fn.Object === Object && fn, ie = typeof self == "object" && self && self.Object === Object && self, ne = X || ie || Function("return this")(), fe = t && !t.nodeType && t, de = fe && !0 && e && !e.nodeType && e, ve = de && de.exports === fe, pe = ve && X.process, Ee = function() {
249
249
  try {
250
250
  var v = de && de.require && de.require("util").types;
251
251
  return v || pe && pe.binding && pe.binding("util");
252
252
  } catch {
253
253
  }
254
- }(), Pe = Ee && Ee.isTypedArray;
255
- function Xe(v, _, F) {
254
+ }(), Ne = Ee && Ee.isTypedArray;
255
+ function $e(v, _, F) {
256
256
  switch (F.length) {
257
257
  case 0:
258
258
  return v.call(_);
@@ -265,42 +265,42 @@ function Xs() {
265
265
  }
266
266
  return v.apply(_, F);
267
267
  }
268
- function St(v, _) {
268
+ function kt(v, _) {
269
269
  for (var F = -1, G = Array(v); ++F < v; )
270
270
  G[F] = _(F);
271
271
  return G;
272
272
  }
273
- function _t(v) {
273
+ function St(v) {
274
274
  return function(_) {
275
275
  return v(_);
276
276
  };
277
277
  }
278
- function pt(v, _) {
278
+ function dt(v, _) {
279
279
  return v == null ? void 0 : v[_];
280
280
  }
281
- function ht(v, _) {
281
+ function Y(v, _) {
282
282
  return function(F) {
283
283
  return v(_(F));
284
284
  };
285
285
  }
286
- var Y = Array.prototype, ae = Function.prototype, ye = Object.prototype, ke = ne["__core-js_shared__"], Ne = ae.toString, Oe = ye.hasOwnProperty, lt = function() {
287
- var v = /[^.]+$/.exec(ke && ke.keys && ke.keys.IE_PROTO || "");
286
+ var ae = Array.prototype, xe = Function.prototype, Ce = Object.prototype, Oe = ne["__core-js_shared__"], Ve = xe.toString, Pe = Ce.hasOwnProperty, _t = function() {
287
+ var v = /[^.]+$/.exec(Oe && Oe.keys && Oe.keys.IE_PROTO || "");
288
288
  return v ? "Symbol(src)_1." + v : "";
289
- }(), Et = ye.toString, Bt = Ne.call(Object), M = RegExp(
290
- "^" + Ne.call(Oe).replace(m, "\\$&").replace(/hasOwnProperty|(function).*?(?=\\\()| for .+?(?=\\\])/g, "$1.*?") + "$"
291
- ), V = xe ? ne.Buffer : void 0, X = ne.Symbol, oe = ne.Uint8Array;
292
- V && V.allocUnsafe;
293
- var ue = ht(Object.getPrototypeOf, Object), Ae = Object.create, Ze = ye.propertyIsEnumerable, $e = Y.splice, je = X ? X.toStringTag : void 0, Ye = function() {
289
+ }(), Et = Ce.toString, Bt = Ve.call(Object), M = RegExp(
290
+ "^" + Ve.call(Pe).replace(m, "\\$&").replace(/hasOwnProperty|(function).*?(?=\\\()| for .+?(?=\\\])/g, "$1.*?") + "$"
291
+ ), U = ve ? ne.Buffer : void 0, Z = ne.Symbol, oe = ne.Uint8Array;
292
+ U && U.allocUnsafe;
293
+ var ue = Y(Object.getPrototypeOf, Object), Ae = Object.create, Ye = Ce.propertyIsEnumerable, We = ae.splice, je = Z ? Z.toStringTag : void 0, Ke = function() {
294
294
  try {
295
295
  var v = zn(Object, "defineProperty");
296
296
  return v({}, "", {}), v;
297
297
  } catch {
298
298
  }
299
- }(), we = V ? V.isBuffer : void 0, Tt = Math.max, Ve = Date.now, Ei = zn(ne, "Map"), Ht = zn(Object, "create"), Rl = /* @__PURE__ */ function() {
299
+ }(), we = U ? U.isBuffer : void 0, Tt = Math.max, Ge = Date.now, Ei = zn(ne, "Map"), Ht = zn(Object, "create"), Rl = /* @__PURE__ */ function() {
300
300
  function v() {
301
301
  }
302
302
  return function(_) {
303
- if (!gt(_))
303
+ if (!ht(_))
304
304
  return {};
305
305
  if (Ae)
306
306
  return Ae(_);
@@ -309,7 +309,7 @@ function Xs() {
309
309
  return v.prototype = void 0, F;
310
310
  };
311
311
  }();
312
- function mt(v) {
312
+ function pt(v) {
313
313
  var _ = -1, F = v == null ? 0 : v.length;
314
314
  for (this.clear(); ++_ < F; ) {
315
315
  var G = v[_];
@@ -329,18 +329,18 @@ function Xs() {
329
329
  var F = _[v];
330
330
  return F === r ? void 0 : F;
331
331
  }
332
- return Oe.call(_, v) ? _[v] : void 0;
332
+ return Pe.call(_, v) ? _[v] : void 0;
333
333
  }
334
334
  function ql(v) {
335
335
  var _ = this.__data__;
336
- return Ht ? _[v] !== void 0 : Oe.call(_, v);
336
+ return Ht ? _[v] !== void 0 : Pe.call(_, v);
337
337
  }
338
338
  function Ul(v, _) {
339
339
  var F = this.__data__;
340
340
  return this.size += this.has(v) ? 0 : 1, F[v] = Ht && _ === void 0 ? r : _, this;
341
341
  }
342
- mt.prototype.clear = Bl, mt.prototype.delete = Hl, mt.prototype.get = zl, mt.prototype.has = ql, mt.prototype.set = Ul;
343
- function rt(v) {
342
+ pt.prototype.clear = Bl, pt.prototype.delete = Hl, pt.prototype.get = zl, pt.prototype.has = ql, pt.prototype.set = Ul;
343
+ function it(v) {
344
344
  var _ = -1, F = v == null ? 0 : v.length;
345
345
  for (this.clear(); ++_ < F; ) {
346
346
  var G = v[_];
@@ -355,7 +355,7 @@ function Xs() {
355
355
  if (F < 0)
356
356
  return !1;
357
357
  var G = _.length - 1;
358
- return F == G ? _.pop() : $e.call(_, F, 1), --this.size, !0;
358
+ return F == G ? _.pop() : We.call(_, F, 1), --this.size, !0;
359
359
  }
360
360
  function Wl(v) {
361
361
  var _ = this.__data__, F = ln(_, v);
@@ -368,7 +368,7 @@ function Xs() {
368
368
  var F = this.__data__, G = ln(F, v);
369
369
  return G < 0 ? (++this.size, F.push([v, _])) : F[G][1] = _, this;
370
370
  }
371
- rt.prototype.clear = $l, rt.prototype.delete = Vl, rt.prototype.get = Wl, rt.prototype.has = Gl, rt.prototype.set = Xl;
371
+ it.prototype.clear = $l, it.prototype.delete = Vl, it.prototype.get = Wl, it.prototype.has = Gl, it.prototype.set = Xl;
372
372
  function Ot(v) {
373
373
  var _ = -1, F = v == null ? 0 : v.length;
374
374
  for (this.clear(); ++_ < F; ) {
@@ -378,9 +378,9 @@ function Xs() {
378
378
  }
379
379
  function Zl() {
380
380
  this.size = 0, this.__data__ = {
381
- hash: new mt(),
382
- map: new (Ei || rt)(),
383
- string: new mt()
381
+ hash: new pt(),
382
+ map: new (Ei || it)(),
383
+ string: new pt()
384
384
  };
385
385
  }
386
386
  function Yl(v) {
@@ -399,11 +399,11 @@ function Xs() {
399
399
  }
400
400
  Ot.prototype.clear = Zl, Ot.prototype.delete = Yl, Ot.prototype.get = Kl, Ot.prototype.has = Jl, Ot.prototype.set = Ql;
401
401
  function It(v) {
402
- var _ = this.__data__ = new rt(v);
402
+ var _ = this.__data__ = new it(v);
403
403
  this.size = _.size;
404
404
  }
405
405
  function es() {
406
- this.__data__ = new rt(), this.size = 0;
406
+ this.__data__ = new it(), this.size = 0;
407
407
  }
408
408
  function ts(v) {
409
409
  var _ = this.__data__, F = _.delete(v);
@@ -417,7 +417,7 @@ function Xs() {
417
417
  }
418
418
  function is(v, _) {
419
419
  var F = this.__data__;
420
- if (F instanceof rt) {
420
+ if (F instanceof it) {
421
421
  var G = F.__data__;
422
422
  if (!Ei || G.length < n - 1)
423
423
  return G.push([v, _]), this.size = ++F.size, this;
@@ -427,13 +427,13 @@ function Xs() {
427
427
  }
428
428
  It.prototype.clear = es, It.prototype.delete = ts, It.prototype.get = ns, It.prototype.has = rs, It.prototype.set = is;
429
429
  function as(v, _) {
430
- var F = $n(v), G = !F && Un(v), re = !F && !G && Ai(v), he = !F && !G && !re && Li(v), be = F || G || re || he, le = be ? St(v.length, String) : [], ve = le.length;
431
- for (var We in v)
432
- be && // Safari 9 has enumerable `arguments.length` in strict mode.
433
- (We == "length" || // Node.js 0.10 has enumerable non-index properties on buffers.
434
- re && (We == "offset" || We == "parent") || // PhantomJS 2 has enumerable non-index properties on typed arrays.
435
- he && (We == "buffer" || We == "byteLength" || We == "byteOffset") || // Skip index properties.
436
- Ii(We, ve)) || le.push(We);
430
+ var F = $n(v), G = !F && Un(v), re = !F && !G && Ai(v), he = !F && !G && !re && Li(v), ye = F || G || re || he, le = ye ? kt(v.length, String) : [], be = le.length;
431
+ for (var Xe in v)
432
+ ye && // Safari 9 has enumerable `arguments.length` in strict mode.
433
+ (Xe == "length" || // Node.js 0.10 has enumerable non-index properties on buffers.
434
+ re && (Xe == "offset" || Xe == "parent") || // PhantomJS 2 has enumerable non-index properties on typed arrays.
435
+ he && (Xe == "buffer" || Xe == "byteLength" || Xe == "byteOffset") || // Skip index properties.
436
+ Ii(Xe, be)) || le.push(Xe);
437
437
  return le;
438
438
  }
439
439
  function Bn(v, _, F) {
@@ -441,7 +441,7 @@ function Xs() {
441
441
  }
442
442
  function os(v, _, F) {
443
443
  var G = v[_];
444
- (!(Oe.call(v, _) && cn(G, F)) || F === void 0 && !(_ in v)) && Hn(v, _, F);
444
+ (!(Pe.call(v, _) && cn(G, F)) || F === void 0 && !(_ in v)) && Hn(v, _, F);
445
445
  }
446
446
  function ln(v, _) {
447
447
  for (var F = v.length; F--; )
@@ -450,7 +450,7 @@ function Xs() {
450
450
  return -1;
451
451
  }
452
452
  function Hn(v, _, F) {
453
- _ == "__proto__" && Ye ? Ye(v, _, {
453
+ _ == "__proto__" && Ke ? Ke(v, _, {
454
454
  configurable: !0,
455
455
  enumerable: !0,
456
456
  value: F,
@@ -465,7 +465,7 @@ function Xs() {
465
465
  return zt(v) && sn(v) == l;
466
466
  }
467
467
  function ss(v) {
468
- if (!gt(v) || _s(v))
468
+ if (!ht(v) || _s(v))
469
469
  return !1;
470
470
  var _ = Wn(v) ? M : W;
471
471
  return _.test(As(v));
@@ -474,41 +474,41 @@ function Xs() {
474
474
  return zt(v) && Fi(v.length) && !!x[sn(v)];
475
475
  }
476
476
  function cs(v) {
477
- if (!gt(v))
477
+ if (!ht(v))
478
478
  return Es(v);
479
479
  var _ = Pi(v), F = [];
480
480
  for (var G in v)
481
- G == "constructor" && (_ || !Oe.call(v, G)) || F.push(G);
481
+ G == "constructor" && (_ || !Pe.call(v, G)) || F.push(G);
482
482
  return F;
483
483
  }
484
484
  function Oi(v, _, F, G, re) {
485
- v !== _ && ls(_, function(he, be) {
486
- if (re || (re = new It()), gt(he))
487
- fs(v, _, be, F, Oi, G, re);
485
+ v !== _ && ls(_, function(he, ye) {
486
+ if (re || (re = new It()), ht(he))
487
+ fs(v, _, ye, F, Oi, G, re);
488
488
  else {
489
- var le = G ? G(qn(v, be), he, be + "", v, _, re) : void 0;
490
- le === void 0 && (le = he), Bn(v, be, le);
489
+ var le = G ? G(qn(v, ye), he, ye + "", v, _, re) : void 0;
490
+ le === void 0 && (le = he), Bn(v, ye, le);
491
491
  }
492
492
  }, Ni);
493
493
  }
494
- function fs(v, _, F, G, re, he, be) {
495
- var le = qn(v, F), ve = qn(_, F), We = be.get(ve);
496
- if (We) {
497
- Bn(v, F, We);
494
+ function fs(v, _, F, G, re, he, ye) {
495
+ var le = qn(v, F), be = qn(_, F), Xe = ye.get(be);
496
+ if (Xe) {
497
+ Bn(v, F, Xe);
498
498
  return;
499
499
  }
500
- var De = he ? he(le, ve, F + "", v, _, be) : void 0, qt = De === void 0;
500
+ var De = he ? he(le, be, F + "", v, _, ye) : void 0, qt = De === void 0;
501
501
  if (qt) {
502
- var Gn = $n(ve), Xn = !Gn && Ai(ve), Di = !Gn && !Xn && Li(ve);
503
- De = ve, Gn || Xn || Di ? $n(le) ? De = le : Fs(le) ? De = ys(le) : Xn ? (qt = !1, De = hs(ve)) : Di ? (qt = !1, De = gs(ve)) : De = [] : Ls(ve) || Un(ve) ? (De = le, Un(le) ? De = Ns(le) : (!gt(le) || Wn(le)) && (De = Cs(ve))) : qt = !1;
502
+ var Gn = $n(be), Xn = !Gn && Ai(be), Di = !Gn && !Xn && Li(be);
503
+ De = be, Gn || Xn || Di ? $n(le) ? De = le : Fs(le) ? De = ys(le) : Xn ? (qt = !1, De = hs(be)) : Di ? (qt = !1, De = gs(be)) : De = [] : Ls(be) || Un(be) ? (De = le, Un(le) ? De = Ns(le) : (!ht(le) || Wn(le)) && (De = Cs(be))) : qt = !1;
504
504
  }
505
- qt && (be.set(ve, De), re(De, ve, G, he, be), be.delete(ve)), Bn(v, F, De);
505
+ qt && (ye.set(be, De), re(De, be, G, he, ye), ye.delete(be)), Bn(v, F, De);
506
506
  }
507
507
  function ds(v, _) {
508
508
  return Is(Os(v, _, ji), v + "");
509
509
  }
510
- var ps = Ye ? function(v, _) {
511
- return Ye(v, "toString", {
510
+ var ps = Ke ? function(v, _) {
511
+ return Ke(v, "toString", {
512
512
  configurable: !0,
513
513
  enumerable: !1,
514
514
  value: Ds(_),
@@ -535,16 +535,16 @@ function Xs() {
535
535
  function bs(v, _, F, G) {
536
536
  var re = !F;
537
537
  F || (F = {});
538
- for (var he = -1, be = _.length; ++he < be; ) {
539
- var le = _[he], ve = void 0;
540
- ve === void 0 && (ve = v[le]), re ? Hn(F, le, ve) : os(F, le, ve);
538
+ for (var he = -1, ye = _.length; ++he < ye; ) {
539
+ var le = _[he], be = void 0;
540
+ be === void 0 && (be = v[le]), re ? Hn(F, le, be) : os(F, le, be);
541
541
  }
542
542
  return F;
543
543
  }
544
544
  function vs(v) {
545
545
  return ds(function(_, F) {
546
- var G = -1, re = F.length, he = re > 1 ? F[re - 1] : void 0, be = re > 2 ? F[2] : void 0;
547
- for (he = v.length > 3 && typeof he == "function" ? (re--, he) : void 0, be && ks(F[0], F[1], be) && (he = re < 3 ? void 0 : he, re = 1), _ = Object(_); ++G < re; ) {
546
+ var G = -1, re = F.length, he = re > 1 ? F[re - 1] : void 0, ye = re > 2 ? F[2] : void 0;
547
+ for (he = v.length > 3 && typeof he == "function" ? (re--, he) : void 0, ye && ks(F[0], F[1], ye) && (he = re < 3 ? void 0 : he, re = 1), _ = Object(_); ++G < re; ) {
548
548
  var le = F[G];
549
549
  le && v(_, le, G, he);
550
550
  }
@@ -553,9 +553,9 @@ function Xs() {
553
553
  }
554
554
  function xs(v) {
555
555
  return function(_, F, G) {
556
- for (var re = -1, he = Object(_), be = G(_), le = be.length; le--; ) {
557
- var ve = be[++re];
558
- if (F(he[ve], ve, he) === !1)
556
+ for (var re = -1, he = Object(_), ye = G(_), le = ye.length; le--; ) {
557
+ var be = ye[++re];
558
+ if (F(he[be], be, he) === !1)
559
559
  break;
560
560
  }
561
561
  return _;
@@ -566,11 +566,11 @@ function Xs() {
566
566
  return Ss(_) ? F[typeof _ == "string" ? "string" : "hash"] : F.map;
567
567
  }
568
568
  function zn(v, _) {
569
- var F = pt(v, _);
569
+ var F = dt(v, _);
570
570
  return ss(F) ? F : void 0;
571
571
  }
572
572
  function ws(v) {
573
- var _ = Oe.call(v, je), F = v[je];
573
+ var _ = Pe.call(v, je), F = v[je];
574
574
  try {
575
575
  v[je] = void 0;
576
576
  var G = !0;
@@ -587,7 +587,7 @@ function Xs() {
587
587
  return _ = _ ?? o, !!_ && (F == "number" || F != "symbol" && J.test(v)) && v > -1 && v % 1 == 0 && v < _;
588
588
  }
589
589
  function ks(v, _, F) {
590
- if (!gt(F))
590
+ if (!ht(F))
591
591
  return !1;
592
592
  var G = typeof _;
593
593
  return (G == "number" ? Vn(F) && Ii(_, F.length) : G == "string" && _ in F) ? cn(F[_], v) : !1;
@@ -597,10 +597,10 @@ function Xs() {
597
597
  return _ == "string" || _ == "number" || _ == "symbol" || _ == "boolean" ? v !== "__proto__" : v === null;
598
598
  }
599
599
  function _s(v) {
600
- return !!lt && lt in v;
600
+ return !!_t && _t in v;
601
601
  }
602
602
  function Pi(v) {
603
- var _ = v && v.constructor, F = typeof _ == "function" && _.prototype || ye;
603
+ var _ = v && v.constructor, F = typeof _ == "function" && _.prototype || Ce;
604
604
  return v === F;
605
605
  }
606
606
  function Es(v) {
@@ -615,12 +615,12 @@ function Xs() {
615
615
  }
616
616
  function Os(v, _, F) {
617
617
  return _ = Tt(_ === void 0 ? v.length - 1 : _, 0), function() {
618
- for (var G = arguments, re = -1, he = Tt(G.length - _, 0), be = Array(he); ++re < he; )
619
- be[re] = G[_ + re];
618
+ for (var G = arguments, re = -1, he = Tt(G.length - _, 0), ye = Array(he); ++re < he; )
619
+ ye[re] = G[_ + re];
620
620
  re = -1;
621
621
  for (var le = Array(_ + 1); ++re < _; )
622
622
  le[re] = G[re];
623
- return le[_] = F(be), Xe(v, this, le);
623
+ return le[_] = F(ye), $e(v, this, le);
624
624
  };
625
625
  }
626
626
  function qn(v, _) {
@@ -631,7 +631,7 @@ function Xs() {
631
631
  function Ps(v) {
632
632
  var _ = 0, F = 0;
633
633
  return function() {
634
- var G = Ve(), re = a - (G - F);
634
+ var G = Ge(), re = a - (G - F);
635
635
  if (F = G, re > 0) {
636
636
  if (++_ >= i)
637
637
  return arguments[0];
@@ -643,7 +643,7 @@ function Xs() {
643
643
  function As(v) {
644
644
  if (v != null) {
645
645
  try {
646
- return Ne.call(v);
646
+ return Ve.call(v);
647
647
  } catch {
648
648
  }
649
649
  try {
@@ -659,7 +659,7 @@ function Xs() {
659
659
  var Un = Ti(/* @__PURE__ */ function() {
660
660
  return arguments;
661
661
  }()) ? Ti : function(v) {
662
- return zt(v) && Oe.call(v, "callee") && !Ze.call(v, "callee");
662
+ return zt(v) && Pe.call(v, "callee") && !Ye.call(v, "callee");
663
663
  }, $n = Array.isArray;
664
664
  function Vn(v) {
665
665
  return v != null && Fi(v.length) && !Wn(v);
@@ -669,7 +669,7 @@ function Xs() {
669
669
  }
670
670
  var Ai = we || Ms;
671
671
  function Wn(v) {
672
- if (!gt(v))
672
+ if (!ht(v))
673
673
  return !1;
674
674
  var _ = sn(v);
675
675
  return _ == d || _ == y || _ == u || _ == L;
@@ -677,7 +677,7 @@ function Xs() {
677
677
  function Fi(v) {
678
678
  return typeof v == "number" && v > -1 && v % 1 == 0 && v <= o;
679
679
  }
680
- function gt(v) {
680
+ function ht(v) {
681
681
  var _ = typeof v;
682
682
  return v != null && (_ == "object" || _ == "function");
683
683
  }
@@ -690,10 +690,10 @@ function Xs() {
690
690
  var _ = ue(v);
691
691
  if (_ === null)
692
692
  return !0;
693
- var F = Oe.call(_, "constructor") && _.constructor;
694
- return typeof F == "function" && F instanceof F && Ne.call(F) == Bt;
693
+ var F = Pe.call(_, "constructor") && _.constructor;
694
+ return typeof F == "function" && F instanceof F && Ve.call(F) == Bt;
695
695
  }
696
- var Li = Pe ? _t(Pe) : us;
696
+ var Li = Ne ? St(Ne) : us;
697
697
  function Ns(v) {
698
698
  return bs(v, Ni(v));
699
699
  }
@@ -718,7 +718,7 @@ function Xs() {
718
718
  }(Zt, Zt.exports)), Zt.exports;
719
719
  }
720
720
  var Zs = Xs();
721
- const Vr = /* @__PURE__ */ tt(Zs), Ys = {
721
+ const Vr = /* @__PURE__ */ nt(Zs), Ys = {
722
722
  id: "degrees-canvas-support",
723
723
  chatApi: {
724
724
  endpoint: "https://xpert-platform-services-api.prod.ai.2u.com/xpert/omnichannel",
@@ -1413,7 +1413,7 @@ const Vr = /* @__PURE__ */ tt(Zs), Ys = {
1413
1413
  configurations: n = null,
1414
1414
  xpertKey: r = null
1415
1415
  }) => {
1416
- const [i, a] = ee(!1), [o, l] = ee({}), s = ct(async () => {
1416
+ const [i, a] = ee(!1), [o, l] = ee({}), s = yt(async () => {
1417
1417
  if (a(!1), !(!t && !r && (!n || Object.keys(n).length === 0))) {
1418
1418
  if (t)
1419
1419
  try {
@@ -1448,7 +1448,7 @@ const Vr = /* @__PURE__ */ tt(Zs), Ys = {
1448
1448
  a(!0);
1449
1449
  }
1450
1450
  }, [t, n, r]);
1451
- return Ce(() => {
1451
+ return ke(() => {
1452
1452
  s();
1453
1453
  }, [s]), /* @__PURE__ */ C.jsx(
1454
1454
  Se.Provider,
@@ -1553,8 +1553,8 @@ yo.propTypes = {
1553
1553
  }),
1554
1554
  xpertKey: k.string
1555
1555
  };
1556
- const wt = An({}), bo = ({ children: e }) => {
1557
- const { id: t } = Q(Se), [n, r] = ee(null), [i, a] = ee(!1), [o, l] = ee([]), s = ct(() => {
1556
+ const xt = An({}), bo = ({ children: e }) => {
1557
+ const { id: t } = Q(Se), [n, r] = ee(null), [i, a] = ee(!1), [o, l] = ee([]), s = yt(() => {
1558
1558
  r(null), a(!1), l([]), Re.remove(`${t}-conversation-history-id`);
1559
1559
  }, [t, r]), c = {
1560
1560
  conversationId: n,
@@ -1566,7 +1566,7 @@ const wt = An({}), bo = ({ children: e }) => {
1566
1566
  setXpertMessages: l,
1567
1567
  xpertMessages: o
1568
1568
  };
1569
- return /* @__PURE__ */ C.jsx(wt.Provider, { value: c, children: e });
1569
+ return /* @__PURE__ */ C.jsx(xt.Provider, { value: c, children: e });
1570
1570
  };
1571
1571
  bo.propTypes = {
1572
1572
  children: k.element.isRequired
@@ -1575,17 +1575,17 @@ const $i = 991, au = () => {
1575
1575
  const [e, t] = ee(
1576
1576
  window.innerWidth < $i
1577
1577
  );
1578
- return Ce(() => {
1578
+ return ke(() => {
1579
1579
  const n = () => {
1580
1580
  t(window.innerWidth < $i);
1581
1581
  };
1582
1582
  return window.addEventListener("resize", n), () => window.removeEventListener("resize", n);
1583
1583
  }, []), e;
1584
- }, ft = {
1584
+ }, ct = {
1585
1585
  LIVECHAT: "LIVECHAT",
1586
1586
  XPERT: "XPERT"
1587
1587
  }, Ie = An({}), vo = ({ children: e }) => {
1588
- const [t, n] = ee(!1), [r, i] = ee(!1), [a, o] = ee(!1), [l, s] = ee(!0), [u, c] = ee(!1), [f, p] = ee(ft.XPERT), d = au(), y = {
1588
+ const [t, n] = ee(!1), [r, i] = ee(!1), [a, o] = ee(!1), [l, s] = ee(!0), [u, c] = ee(!1), [f, p] = ee(ct.XPERT), d = au(), y = {
1589
1589
  disabledScroll: t,
1590
1590
  hasError: r,
1591
1591
  hasNewMessage: a,
@@ -1645,7 +1645,7 @@ function ou() {
1645
1645
  }(er)), er.exports;
1646
1646
  }
1647
1647
  var lu = ou();
1648
- const xo = /* @__PURE__ */ tt(lu);
1648
+ const xo = /* @__PURE__ */ nt(lu);
1649
1649
  function Fn({
1650
1650
  label: e,
1651
1651
  className: t,
@@ -1697,7 +1697,7 @@ eyes follow your mouse when you hover near it.`, Wr = ({
1697
1697
  ), a = ze(null), o = ze(!1), l = i ? (d = n == null ? void 0 : n.animatedGraduate) == null ? void 0 : d.delayMs : ((y = n == null ? void 0 : n.animatedGraduate) == null ? void 0 : y.delayMs) * 2, [s, u] = ee(!1), c = window.matchMedia(
1698
1698
  `(max-width: ${su}px)`
1699
1699
  ).matches;
1700
- Ce(() => {
1700
+ ke(() => {
1701
1701
  const P = setTimeout(
1702
1702
  () => {
1703
1703
  u(!0);
@@ -1707,7 +1707,7 @@ eyes follow your mouse when you hover near it.`, Wr = ({
1707
1707
  return () => {
1708
1708
  clearTimeout(P);
1709
1709
  };
1710
- }, [l]), Ce(() => {
1710
+ }, [l]), ke(() => {
1711
1711
  const g = (P) => {
1712
1712
  const L = window.devicePixelRatio > 1.5;
1713
1713
  if (!(o != null && o.current) || c || L)
@@ -1934,7 +1934,7 @@ Gr.defaultProps = {
1934
1934
  };
1935
1935
  const Co = () => {
1936
1936
  const { disclaimer: e } = Q(Se), t = ze(null);
1937
- return Ce(() => {
1937
+ return ke(() => {
1938
1938
  var n;
1939
1939
  (n = t == null ? void 0 : t.current) == null || n.focus();
1940
1940
  }, []), /* @__PURE__ */ C.jsxs(
@@ -2130,7 +2130,7 @@ function gu(e, t) {
2130
2130
  missing: /* @__PURE__ */ new Set()
2131
2131
  };
2132
2132
  }
2133
- function vt(e, t) {
2133
+ function bt(e, t) {
2134
2134
  const n = Gi[e] || (Gi[e] = /* @__PURE__ */ Object.create(null));
2135
2135
  return n[t] || (n[t] = gu(e, t));
2136
2136
  }
@@ -2154,7 +2154,7 @@ function To(e) {
2154
2154
  function Xi(e) {
2155
2155
  const t = typeof e == "string" ? Ln(e, !0, en) : e;
2156
2156
  if (t) {
2157
- const n = vt(t.provider, t.prefix), r = t.name;
2157
+ const n = bt(t.provider, t.prefix), r = t.name;
2158
2158
  return n.icons[r] || (n.missing.has(r) ? null : void 0);
2159
2159
  }
2160
2160
  }
@@ -2162,7 +2162,7 @@ function bu(e, t) {
2162
2162
  const n = Ln(e, !0, en);
2163
2163
  if (!n)
2164
2164
  return !1;
2165
- const r = vt(n.provider, n.prefix);
2165
+ const r = bt(n.provider, n.prefix);
2166
2166
  return t ? yu(r, n.name, t) : (r.missing.add(n.name), !0);
2167
2167
  }
2168
2168
  function vu(e, t) {
@@ -2181,7 +2181,7 @@ function vu(e, t) {
2181
2181
  name: "a"
2182
2182
  }))
2183
2183
  return !1;
2184
- const r = vt(t, n);
2184
+ const r = bt(t, n);
2185
2185
  return !!Zr(r, e);
2186
2186
  }
2187
2187
  const Oo = Object.freeze({
@@ -2489,7 +2489,7 @@ function Hu(e) {
2489
2489
  if (r.name === i.name && r.prefix === i.prefix && r.provider === i.provider)
2490
2490
  return;
2491
2491
  r = i;
2492
- const a = i.provider, o = i.prefix, l = i.name, s = n[a] || (n[a] = /* @__PURE__ */ Object.create(null)), u = s[o] || (s[o] = vt(a, o));
2492
+ const a = i.provider, o = i.prefix, l = i.name, s = n[a] || (n[a] = /* @__PURE__ */ Object.create(null)), u = s[o] || (s[o] = bt(a, o));
2493
2493
  let c;
2494
2494
  l in u.icons ? c = t.loaded : o === "" || u.missing.has(l) ? c = t.missing : c = t.pending;
2495
2495
  const f = {
@@ -2623,7 +2623,7 @@ function Wu(e, t, n, r) {
2623
2623
  }
2624
2624
  function q(b, E, z) {
2625
2625
  const N = E !== "success";
2626
- switch (p = p.filter((U) => U !== b), s) {
2626
+ switch (p = p.filter(($) => $ !== b), s) {
2627
2627
  case "pending":
2628
2628
  break;
2629
2629
  case "failed":
@@ -2642,11 +2642,11 @@ function Wu(e, t, n, r) {
2642
2642
  return;
2643
2643
  }
2644
2644
  if (y(), L(), !e.random) {
2645
- const U = e.resources.indexOf(b.resource);
2646
- U !== -1 && U !== e.index && (e.index = U);
2645
+ const $ = e.resources.indexOf(b.resource);
2646
+ $ !== -1 && $ !== e.index && (e.index = $);
2647
2647
  }
2648
- s = "completed", d.forEach((U) => {
2649
- U(z);
2648
+ s = "completed", d.forEach(($) => {
2649
+ $(z);
2650
2650
  });
2651
2651
  }
2652
2652
  function I() {
@@ -2825,7 +2825,7 @@ function Mo() {
2825
2825
  Ku(!0);
2826
2826
  for (const e in Nn)
2827
2827
  Do(e, (t) => {
2828
- const n = t.data, r = t.provider, i = n.prefix, a = vt(
2828
+ const n = t.data, r = t.provider, i = n.prefix, a = bt(
2829
2829
  r,
2830
2830
  i
2831
2831
  );
@@ -2985,11 +2985,11 @@ const ic = (e, t) => {
2985
2985
  const { provider: u, prefix: c } = s;
2986
2986
  if (c === l && u === o)
2987
2987
  return;
2988
- o = u, l = c, a.push(vt(u, c));
2988
+ o = u, l = c, a.push(bt(u, c));
2989
2989
  const f = i[u] || (i[u] = /* @__PURE__ */ Object.create(null));
2990
2990
  f[c] || (f[c] = []);
2991
2991
  }), r.pending.forEach((s) => {
2992
- const { provider: u, prefix: c, name: f } = s, p = vt(u, c), d = p.pendingIcons || (p.pendingIcons = /* @__PURE__ */ new Set());
2992
+ const { provider: u, prefix: c, name: f } = s, p = bt(u, c), d = p.pendingIcons || (p.pendingIcons = /* @__PURE__ */ new Set());
2993
2993
  d.has(f) || (d.add(f), i[u][c].push(f));
2994
2994
  }), a.forEach((s) => {
2995
2995
  const u = i[s.provider][s.prefix];
@@ -3285,7 +3285,7 @@ function Ho(e) {
3285
3285
  });
3286
3286
  } else h && ((d = e.onLoad) === null || d === void 0 || d.call(e, y));
3287
3287
  }
3288
- Ce(() => (n(!0), s), []), Ce(() => {
3288
+ ke(() => (n(!0), s), []), ke(() => {
3289
3289
  t && c();
3290
3290
  }, [e.icon, t]);
3291
3291
  const { name: f, data: p } = o;
@@ -3294,7 +3294,7 @@ function Ho(e) {
3294
3294
  ...p
3295
3295
  }, e, f) : e.children ? e.children : _r("span", {});
3296
3296
  }
3297
- const Qe = ho((e, t) => Ho({
3297
+ const et = ho((e, t) => Ho({
3298
3298
  ...e,
3299
3299
  _ref: t
3300
3300
  }));
@@ -3312,7 +3312,7 @@ function jn({
3312
3312
  value: a
3313
3313
  }) {
3314
3314
  const { primaryColor: o } = Q(Se), { hasError: l, hasNewMessage: s } = Q(Ie);
3315
- Ce(() => {
3315
+ ke(() => {
3316
3316
  var f;
3317
3317
  (l || s) && ((f = i.current) == null || f.focus());
3318
3318
  }, [s, l, i]);
@@ -3366,7 +3366,7 @@ function jn({
3366
3366
  f.preventDefault(), n(a);
3367
3367
  },
3368
3368
  "aria-label": "Send message",
3369
- children: /* @__PURE__ */ C.jsx(Qe, { icon: "material-symbols:send", style: { fontSize: "1.75rem" } })
3369
+ children: /* @__PURE__ */ C.jsx(et, { icon: "material-symbols:send", style: { fontSize: "1.75rem" } })
3370
3370
  }
3371
3371
  )
3372
3372
  ] });
@@ -3392,7 +3392,7 @@ function zo({ message: e, id: t, onFeedbackThumbSelection: n }) {
3392
3392
  onClick: () => n(t, "UP"),
3393
3393
  "aria-label": "I like this response",
3394
3394
  children: /* @__PURE__ */ C.jsx(
3395
- Qe,
3395
+ et,
3396
3396
  {
3397
3397
  className: "xpert-chatbot-popup__feedback--btn-up-icon",
3398
3398
  icon: e.feedbackThumbType === "UP" ? "material-symbols:thumb-up" : "material-symbols:thumb-up-outline"
@@ -3409,7 +3409,7 @@ function zo({ message: e, id: t, onFeedbackThumbSelection: n }) {
3409
3409
  onClick: () => n(t, "DOWN"),
3410
3410
  "aria-label": "I do not like this response",
3411
3411
  children: /* @__PURE__ */ C.jsx(
3412
- Qe,
3412
+ et,
3413
3413
  {
3414
3414
  className: "xpert-chatbot-popup__feedback--btn-down-icon",
3415
3415
  icon: e.feedbackThumbType === "DOWN" ? "material-symbols:thumb-down" : "material-symbols:thumb-down-outline"
@@ -3436,7 +3436,7 @@ function Dn({
3436
3436
  userTrackingName: l
3437
3437
  }) {
3438
3438
  var g, P, L, q;
3439
- const [s, u] = ee(!0), { primaryColor: c, id: f, userTracking: p, conversationScreen: d } = Q(Se), y = ct(
3439
+ const [s, u] = ee(!0), { primaryColor: c, id: f, userTracking: p, conversationScreen: d } = Q(Se), y = yt(
3440
3440
  (I) => {
3441
3441
  var b, E, z, N;
3442
3442
  ((b = I == null ? void 0 : I.data) == null ? void 0 : b.who) === "customer" && (!(window != null && window.OnetrustActiveGroups) || (E = window == null ? void 0 : window.OnetrustActiveGroups) != null && E.includes("C0003")) && Re.set(`${f}-live-chat-open`, 1, {
@@ -3445,19 +3445,19 @@ function Dn({
3445
3445
  }), ((z = I == null ? void 0 : I.data) == null ? void 0 : z.type) === "connection" && ((N = I == null ? void 0 : I.data) == null ? void 0 : N.state) === "disconnected" && Re.remove(`${f}-live-chat-open`);
3446
3446
  },
3447
3447
  [f]
3448
- ), h = ct(
3448
+ ), h = yt(
3449
3449
  (I) => {
3450
3450
  var b, E, z, N;
3451
3451
  ((b = I == null ? void 0 : I.data) == null ? void 0 : b.type) === "unhide" && ((E = I == null ? void 0 : I.data) == null ? void 0 : E.reason) === "pop-out" && t(!0), ((z = I == null ? void 0 : I.data) == null ? void 0 : z.type) === "open" && ((N = I == null ? void 0 : I.data) == null ? void 0 : N.chatState) === !0 && t(!0);
3452
3452
  },
3453
3453
  [t]
3454
3454
  );
3455
- Ce(() => {
3456
- var E, z, N, U;
3455
+ ke(() => {
3456
+ var E, z, N, $;
3457
3457
  let I, b;
3458
3458
  return (E = d == null ? void 0 : d.liveChat) != null && E.useOwnChat && (b = setTimeout(() => {
3459
3459
  u(!1);
3460
- }, 3e3)), (z = d == null ? void 0 : d.liveChat) != null && z.enabled && !((N = d == null ? void 0 : d.liveChat) != null && N.useOwnChat) && (window.Five9ChatPlugin || (I = document.createElement("script"), I.type = "text/javascript", I.src = (U = d == null ? void 0 : d.liveChat) == null ? void 0 : U.sourceCode, I.async = !0, I.onload = () => {
3460
+ }, 3e3)), (z = d == null ? void 0 : d.liveChat) != null && z.enabled && !((N = d == null ? void 0 : d.liveChat) != null && N.useOwnChat) && (window.Five9ChatPlugin || (I = document.createElement("script"), I.type = "text/javascript", I.src = ($ = d == null ? void 0 : d.liveChat) == null ? void 0 : $.sourceCode, I.async = !0, I.onload = () => {
3461
3461
  var D;
3462
3462
  window.Five9ChatPlugin((D = d == null ? void 0 : d.liveChat) == null ? void 0 : D.options);
3463
3463
  }, document.body.appendChild(I)), window.addEventListener("message", y), window.addEventListener("message", h), b = setTimeout(() => {
@@ -3569,7 +3569,7 @@ function wc() {
3569
3569
  }), rr;
3570
3570
  }
3571
3571
  var Cc = wc();
3572
- const qo = /* @__PURE__ */ tt(Cc);
3572
+ const qo = /* @__PURE__ */ nt(Cc);
3573
3573
  function Kt(e) {
3574
3574
  return !e || typeof e != "object" ? "" : "position" in e || "type" in e ? la(e.position) : "start" in e || "end" in e ? la(e) : "line" in e || "column" in e ? Nr(e) : "";
3575
3575
  }
@@ -3627,7 +3627,7 @@ qe.prototype.line = null;
3627
3627
  qe.prototype.source = null;
3628
3628
  qe.prototype.ruleId = null;
3629
3629
  qe.prototype.position = null;
3630
- const Ke = { basename: kc, dirname: Sc, extname: _c, join: Ec, sep: "/" };
3630
+ const Je = { basename: kc, dirname: Sc, extname: _c, join: Ec, sep: "/" };
3631
3631
  function kc(e, t) {
3632
3632
  if (t !== void 0 && typeof t != "string")
3633
3633
  throw new TypeError('"ext" argument must be a string');
@@ -3841,7 +3841,7 @@ class Uo {
3841
3841
  * Get the parent path (example: `'~'`).
3842
3842
  */
3843
3843
  get dirname() {
3844
- return typeof this.path == "string" ? Ke.dirname(this.path) : void 0;
3844
+ return typeof this.path == "string" ? Je.dirname(this.path) : void 0;
3845
3845
  }
3846
3846
  /**
3847
3847
  * Set the parent path (example: `'~'`).
@@ -3849,13 +3849,13 @@ class Uo {
3849
3849
  * Cannot be set if there’s no `path` yet.
3850
3850
  */
3851
3851
  set dirname(t) {
3852
- ua(this.basename, "dirname"), this.path = Ke.join(t || "", this.basename);
3852
+ ua(this.basename, "dirname"), this.path = Je.join(t || "", this.basename);
3853
3853
  }
3854
3854
  /**
3855
3855
  * Get the basename (including extname) (example: `'index.min.js'`).
3856
3856
  */
3857
3857
  get basename() {
3858
- return typeof this.path == "string" ? Ke.basename(this.path) : void 0;
3858
+ return typeof this.path == "string" ? Je.basename(this.path) : void 0;
3859
3859
  }
3860
3860
  /**
3861
3861
  * Set basename (including extname) (`'index.min.js'`).
@@ -3865,13 +3865,13 @@ class Uo {
3865
3865
  * Cannot be nullified (use `file.path = file.dirname` instead).
3866
3866
  */
3867
3867
  set basename(t) {
3868
- or(t, "basename"), ar(t, "basename"), this.path = Ke.join(this.dirname || "", t);
3868
+ or(t, "basename"), ar(t, "basename"), this.path = Je.join(this.dirname || "", t);
3869
3869
  }
3870
3870
  /**
3871
3871
  * Get the extname (including dot) (example: `'.js'`).
3872
3872
  */
3873
3873
  get extname() {
3874
- return typeof this.path == "string" ? Ke.extname(this.path) : void 0;
3874
+ return typeof this.path == "string" ? Je.extname(this.path) : void 0;
3875
3875
  }
3876
3876
  /**
3877
3877
  * Set the extname (including dot) (example: `'.js'`).
@@ -3887,13 +3887,13 @@ class Uo {
3887
3887
  if (t.includes(".", 1))
3888
3888
  throw new Error("`extname` cannot contain multiple dots");
3889
3889
  }
3890
- this.path = Ke.join(this.dirname, this.stem + (t || ""));
3890
+ this.path = Je.join(this.dirname, this.stem + (t || ""));
3891
3891
  }
3892
3892
  /**
3893
3893
  * Get the stem (basename w/o extname) (example: `'index.min'`).
3894
3894
  */
3895
3895
  get stem() {
3896
- return typeof this.path == "string" ? Ke.basename(this.path, this.extname) : void 0;
3896
+ return typeof this.path == "string" ? Je.basename(this.path, this.extname) : void 0;
3897
3897
  }
3898
3898
  /**
3899
3899
  * Set the stem (basename w/o extname) (example: `'index.min'`).
@@ -3903,7 +3903,7 @@ class Uo {
3903
3903
  * Cannot be nullified (use `file.path = file.dirname` instead).
3904
3904
  */
3905
3905
  set stem(t) {
3906
- or(t, "stem"), ar(t, "stem"), this.path = Ke.join(this.dirname || "", t + (this.extname || ""));
3906
+ or(t, "stem"), ar(t, "stem"), this.path = Je.join(this.dirname || "", t + (this.extname || ""));
3907
3907
  }
3908
3908
  /**
3909
3909
  * Serialize the file.
@@ -3983,9 +3983,9 @@ class Uo {
3983
3983
  }
3984
3984
  }
3985
3985
  function ar(e, t) {
3986
- if (e && e.includes(Ke.sep))
3986
+ if (e && e.includes(Je.sep))
3987
3987
  throw new Error(
3988
- "`" + t + "` cannot be a path: did not expect `" + Ke.sep + "`"
3988
+ "`" + t + "` cannot be a path: did not expect `" + Je.sep + "`"
3989
3989
  );
3990
3990
  }
3991
3991
  function or(e, t) {
@@ -4044,7 +4044,7 @@ function Nc() {
4044
4044
  }, lr;
4045
4045
  }
4046
4046
  var jc = Nc();
4047
- const da = /* @__PURE__ */ tt(jc);
4047
+ const da = /* @__PURE__ */ nt(jc);
4048
4048
  function Dr(e) {
4049
4049
  if (typeof e != "object" || e === null)
4050
4050
  return !1;
@@ -4311,7 +4311,7 @@ function ga(e, t, n) {
4311
4311
  function $c(e) {
4312
4312
  return !!(e && typeof e == "object");
4313
4313
  }
4314
- function et(e, t, n, r) {
4314
+ function tt(e, t, n, r) {
4315
4315
  const i = e.length;
4316
4316
  let a = 0, o;
4317
4317
  if (t < 0 ? t = -t > i ? 0 : i + t : t = t > i ? i : t, n = n > 0 ? n : 0, r.length < 1e4)
@@ -4321,7 +4321,7 @@ function et(e, t, n, r) {
4321
4321
  o = r.slice(a, a + 1e4), o.unshift(t, 0), e.splice(...o), a += 1e4, t += 1e4;
4322
4322
  }
4323
4323
  function He(e, t) {
4324
- return e.length > 0 ? (et(e, e.length, 0, t), e) : t;
4324
+ return e.length > 0 ? (tt(e, e.length, 0, t), e) : t;
4325
4325
  }
4326
4326
  const ya = {}.hasOwnProperty;
4327
4327
  function Vc(e) {
@@ -4353,9 +4353,9 @@ function Gc(e, t) {
4353
4353
  const r = [];
4354
4354
  for (; ++n < t.length; )
4355
4355
  (t[n].add === "after" ? e : r).push(t[n]);
4356
- et(e, 0, 0, r);
4356
+ tt(e, 0, 0, r);
4357
4357
  }
4358
- const Xc = /[!-\/:-@\[-`\{-~\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]/, Je = dt(/[A-Za-z]/), Be = dt(/[\dA-Za-z]/), Zc = dt(/[#-'*+\--9=?A-Z^-~]/);
4358
+ const Xc = /[!-\/:-@\[-`\{-~\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 = ft(/[A-Za-z]/), Be = ft(/[\dA-Za-z]/), Zc = ft(/[#-'*+\--9=?A-Z^-~]/);
4359
4359
  function Mr(e) {
4360
4360
  return (
4361
4361
  // Special whitespace codes (which have negative values), C0 and Control
@@ -4363,7 +4363,7 @@ function Mr(e) {
4363
4363
  e !== null && (e < 32 || e === 127)
4364
4364
  );
4365
4365
  }
4366
- const Rr = dt(/\d/), Yc = dt(/[\dA-Fa-f]/), Kc = dt(/[!-/:-@[-`{-~]/);
4366
+ const Rr = ft(/\d/), Yc = ft(/[\dA-Fa-f]/), Kc = ft(/[!-/:-@[-`{-~]/);
4367
4367
  function K(e) {
4368
4368
  return e !== null && e < -2;
4369
4369
  }
@@ -4373,8 +4373,8 @@ function Le(e) {
4373
4373
  function se(e) {
4374
4374
  return e === -2 || e === -1 || e === 32;
4375
4375
  }
4376
- const Jc = dt(Xc), Qc = dt(/\s/);
4377
- function dt(e) {
4376
+ const Jc = ft(Xc), Qc = ft(/\s/);
4377
+ function ft(e) {
4378
4378
  return t;
4379
4379
  function t(n) {
4380
4380
  return n !== null && e.test(String.fromCharCode(n));
@@ -4461,7 +4461,7 @@ function rf(e) {
4461
4461
  let E = q;
4462
4462
  for (; E < t.events.length; )
4463
4463
  t.events[E][1].end = Object.assign({}, b), E++;
4464
- return et(
4464
+ return tt(
4465
4465
  t.events,
4466
4466
  I + 1,
4467
4467
  0,
@@ -4531,18 +4531,18 @@ function rf(e) {
4531
4531
  )
4532
4532
  return;
4533
4533
  const E = t.events.length;
4534
- let z = E, N, U;
4534
+ let z = E, N, $;
4535
4535
  for (; z--; )
4536
4536
  if (t.events[z][0] === "exit" && t.events[z][1].type === "chunkFlow") {
4537
4537
  if (N) {
4538
- U = t.events[z][1].end;
4538
+ $ = t.events[z][1].end;
4539
4539
  break;
4540
4540
  }
4541
4541
  N = !0;
4542
4542
  }
4543
4543
  for (g(r), b = E; b < t.events.length; )
4544
- t.events[b][1].end = Object.assign({}, U), b++;
4545
- et(
4544
+ t.events[b][1].end = Object.assign({}, $), b++;
4545
+ tt(
4546
4546
  t.events,
4547
4547
  z + 1,
4548
4548
  0,
@@ -4640,7 +4640,7 @@ function of(e, t) {
4640
4640
  ]), e[n][1].end.offset - e[n][1].start.offset ? (c = 2, u = He(u, [
4641
4641
  ["enter", e[n][1], t],
4642
4642
  ["exit", e[n][1], t]
4643
- ])) : c = 0, et(e, r - 1, n - r + 3, u), n = r + u.length - c - 2;
4643
+ ])) : c = 0, tt(e, r - 1, n - r + 3, u), n = r + u.length - c - 2;
4644
4644
  break;
4645
4645
  }
4646
4646
  }
@@ -4676,7 +4676,7 @@ function uf(e, t, n) {
4676
4676
  return e.enter("autolink"), e.enter("autolinkMarker"), e.consume(d), e.exit("autolinkMarker"), e.enter("autolinkProtocol"), a;
4677
4677
  }
4678
4678
  function a(d) {
4679
- return Je(d) ? (e.consume(d), o) : u(d);
4679
+ return Qe(d) ? (e.consume(d), o) : u(d);
4680
4680
  }
4681
4681
  function o(d) {
4682
4682
  return d === 43 || d === 45 || d === 46 || Be(d) ? (r = 1, l(d)) : u(d);
@@ -4870,8 +4870,8 @@ function gf(e, t, n) {
4870
4870
  }
4871
4871
  function I(b, E, z) {
4872
4872
  let N = 0;
4873
- return U;
4874
- function U(T) {
4873
+ return $;
4874
+ function $(T) {
4875
4875
  return b.enter("lineEnding"), b.consume(T), b.exit("lineEnding"), D;
4876
4876
  }
4877
4877
  function D(T) {
@@ -4996,7 +4996,7 @@ function Yo(e) {
4996
4996
  else if (r[1]._container) {
4997
4997
  for (a = n, i = void 0; a-- && (o = e[a], o[1].type === "lineEnding" || o[1].type === "lineEndingBlank"); )
4998
4998
  o[0] === "enter" && (i && (e[i][1].type = "lineEndingBlank"), o[1].type = "lineEnding", i = a);
4999
- i && (r[1].end = Object.assign({}, e[i][1].start), l = e.slice(i, n), l.unshift(r), et(e, i, n - i + 1, l));
4999
+ i && (r[1].end = Object.assign({}, e[i][1].start), l = e.slice(i, n), l.unshift(r), tt(e, i, n - i + 1, l));
5000
5000
  }
5001
5001
  }
5002
5002
  return !u;
@@ -5017,7 +5017,7 @@ function _f(e, t) {
5017
5017
  l[p][0] === "exit" && l[p - 1][0] === "enter" && l[p][1].type === l[p - 1][1].type && l[p][1].start.line !== l[p][1].end.line && (h = p + 1, w.push(h), d._tokenizer = void 0, d.previous = void 0, d = d.next);
5018
5018
  for (o.events = [], d ? (d._tokenizer = void 0, d.previous = void 0) : w.pop(), p = w.length; p--; ) {
5019
5019
  const g = l.slice(w[p], w[p + 1]), P = a.pop();
5020
- s.unshift([P, P + g.length - 1]), et(e, P, 2, g);
5020
+ s.unshift([P, P + g.length - 1]), tt(e, P, 2, g);
5021
5021
  }
5022
5022
  for (p = -1; ++p < s.length; )
5023
5023
  u[y + s[p][0]] = y + s[p][1], y += s[p][1] - s[p][0] - 1;
@@ -5265,7 +5265,7 @@ function Rf(e, t) {
5265
5265
  start: e[r][1].start,
5266
5266
  end: e[n][1].end,
5267
5267
  contentType: "text"
5268
- }, et(e, r, n - r + 1, [
5268
+ }, tt(e, r, n - r + 1, [
5269
5269
  ["enter", i, t],
5270
5270
  ["enter", a, t],
5271
5271
  ["exit", a, t],
@@ -5386,25 +5386,25 @@ function Vf(e, t, n) {
5386
5386
  return e.enter("htmlFlow"), e.enter("htmlFlowData"), e.consume(x), f;
5387
5387
  }
5388
5388
  function f(x) {
5389
- return x === 33 ? (e.consume(x), p) : x === 47 ? (e.consume(x), a = !0, h) : x === 63 ? (e.consume(x), i = 3, r.interrupt ? t : m) : Je(x) ? (e.consume(x), o = String.fromCharCode(x), w) : n(x);
5389
+ return x === 33 ? (e.consume(x), p) : x === 47 ? (e.consume(x), a = !0, h) : x === 63 ? (e.consume(x), i = 3, r.interrupt ? t : m) : Qe(x) ? (e.consume(x), o = String.fromCharCode(x), w) : n(x);
5390
5390
  }
5391
5391
  function p(x) {
5392
- return x === 45 ? (e.consume(x), i = 2, d) : x === 91 ? (e.consume(x), i = 5, l = 0, y) : Je(x) ? (e.consume(x), i = 4, r.interrupt ? t : m) : n(x);
5392
+ return x === 45 ? (e.consume(x), i = 2, d) : x === 91 ? (e.consume(x), i = 5, l = 0, y) : Qe(x) ? (e.consume(x), i = 4, r.interrupt ? t : m) : n(x);
5393
5393
  }
5394
5394
  function d(x) {
5395
5395
  return x === 45 ? (e.consume(x), r.interrupt ? t : m) : n(x);
5396
5396
  }
5397
5397
  function y(x) {
5398
- const Z = "CDATA[";
5399
- return x === Z.charCodeAt(l++) ? (e.consume(x), l === Z.length ? r.interrupt ? t : B : y) : n(x);
5398
+ const X = "CDATA[";
5399
+ return x === X.charCodeAt(l++) ? (e.consume(x), l === X.length ? r.interrupt ? t : B : y) : n(x);
5400
5400
  }
5401
5401
  function h(x) {
5402
- return Je(x) ? (e.consume(x), o = String.fromCharCode(x), w) : n(x);
5402
+ return Qe(x) ? (e.consume(x), o = String.fromCharCode(x), w) : n(x);
5403
5403
  }
5404
5404
  function w(x) {
5405
5405
  if (x === null || x === 47 || x === 62 || Le(x)) {
5406
- const Z = x === 47, ie = o.toLowerCase();
5407
- return !Z && !a && Sa.includes(ie) ? (i = 1, r.interrupt ? t(x) : B(x)) : Hf.includes(o.toLowerCase()) ? (i = 6, Z ? (e.consume(x), g) : r.interrupt ? t(x) : B(x)) : (i = 7, r.interrupt && !r.parser.lazy[r.now().line] ? n(x) : a ? P(x) : L(x));
5406
+ const X = x === 47, ie = o.toLowerCase();
5407
+ return !X && !a && Sa.includes(ie) ? (i = 1, r.interrupt ? t(x) : B(x)) : Hf.includes(o.toLowerCase()) ? (i = 6, X ? (e.consume(x), g) : r.interrupt ? t(x) : B(x)) : (i = 7, r.interrupt && !r.parser.lazy[r.now().line] ? n(x) : a ? P(x) : L(x));
5408
5408
  }
5409
5409
  return x === 45 || Be(x) ? (e.consume(x), o += String.fromCharCode(x), w) : n(x);
5410
5410
  }
@@ -5412,10 +5412,10 @@ function Vf(e, t, n) {
5412
5412
  return x === 62 ? (e.consume(x), r.interrupt ? t : B) : n(x);
5413
5413
  }
5414
5414
  function P(x) {
5415
- return se(x) ? (e.consume(x), P) : U(x);
5415
+ return se(x) ? (e.consume(x), P) : $(x);
5416
5416
  }
5417
5417
  function L(x) {
5418
- return x === 47 ? (e.consume(x), U) : x === 58 || x === 95 || Je(x) ? (e.consume(x), q) : se(x) ? (e.consume(x), L) : U(x);
5418
+ return x === 47 ? (e.consume(x), $) : x === 58 || x === 95 || Qe(x) ? (e.consume(x), q) : se(x) ? (e.consume(x), L) : $(x);
5419
5419
  }
5420
5420
  function q(x) {
5421
5421
  return x === 45 || x === 46 || x === 58 || x === 95 || Be(x) ? (e.consume(x), q) : I(x);
@@ -5435,7 +5435,7 @@ function Vf(e, t, n) {
5435
5435
  function N(x) {
5436
5436
  return x === 47 || x === 62 || se(x) ? L(x) : n(x);
5437
5437
  }
5438
- function U(x) {
5438
+ function $(x) {
5439
5439
  return x === 62 ? (e.consume(x), D) : n(x);
5440
5440
  }
5441
5441
  function D(x) {
@@ -5469,10 +5469,10 @@ function Vf(e, t, n) {
5469
5469
  }
5470
5470
  function R(x) {
5471
5471
  if (x === 62) {
5472
- const Z = o.toLowerCase();
5473
- return Sa.includes(Z) ? (e.consume(x), W) : B(x);
5472
+ const X = o.toLowerCase();
5473
+ return Sa.includes(X) ? (e.consume(x), W) : B(x);
5474
5474
  }
5475
- return Je(x) && o.length < 8 ? (e.consume(x), o += String.fromCharCode(x), R) : B(x);
5475
+ return Qe(x) && o.length < 8 ? (e.consume(x), o += String.fromCharCode(x), R) : B(x);
5476
5476
  }
5477
5477
  function H(x) {
5478
5478
  return x === 93 ? (e.consume(x), m) : B(x);
@@ -5515,10 +5515,10 @@ function Zf(e, t, n) {
5515
5515
  return e.enter("htmlText"), e.enter("htmlTextData"), e.consume(m), s;
5516
5516
  }
5517
5517
  function s(m) {
5518
- return m === 33 ? (e.consume(m), u) : m === 47 ? (e.consume(m), I) : m === 63 ? (e.consume(m), L) : Je(m) ? (e.consume(m), z) : n(m);
5518
+ return m === 33 ? (e.consume(m), u) : m === 47 ? (e.consume(m), I) : m === 63 ? (e.consume(m), L) : Qe(m) ? (e.consume(m), z) : n(m);
5519
5519
  }
5520
5520
  function u(m) {
5521
- return m === 45 ? (e.consume(m), c) : m === 91 ? (e.consume(m), a = 0, y) : Je(m) ? (e.consume(m), P) : n(m);
5521
+ return m === 45 ? (e.consume(m), c) : m === 91 ? (e.consume(m), a = 0, y) : Qe(m) ? (e.consume(m), P) : n(m);
5522
5522
  }
5523
5523
  function c(m) {
5524
5524
  return m === 45 ? (e.consume(m), d) : n(m);
@@ -5555,7 +5555,7 @@ function Zf(e, t, n) {
5555
5555
  return m === 62 ? A(m) : L(m);
5556
5556
  }
5557
5557
  function I(m) {
5558
- return Je(m) ? (e.consume(m), b) : n(m);
5558
+ return Qe(m) ? (e.consume(m), b) : n(m);
5559
5559
  }
5560
5560
  function b(m) {
5561
5561
  return m === 45 || Be(m) ? (e.consume(m), b) : E(m);
@@ -5567,10 +5567,10 @@ function Zf(e, t, n) {
5567
5567
  return m === 45 || Be(m) ? (e.consume(m), z) : m === 47 || m === 62 || Le(m) ? N(m) : n(m);
5568
5568
  }
5569
5569
  function N(m) {
5570
- return m === 47 ? (e.consume(m), A) : m === 58 || m === 95 || Je(m) ? (e.consume(m), U) : K(m) ? (o = N, j(m)) : se(m) ? (e.consume(m), N) : A(m);
5570
+ return m === 47 ? (e.consume(m), A) : m === 58 || m === 95 || Qe(m) ? (e.consume(m), $) : K(m) ? (o = N, j(m)) : se(m) ? (e.consume(m), N) : A(m);
5571
5571
  }
5572
- function U(m) {
5573
- return m === 45 || m === 46 || m === 58 || m === 95 || Be(m) ? (e.consume(m), U) : D(m);
5572
+ function $(m) {
5573
+ return m === 45 || m === 46 || m === 58 || m === 95 || Be(m) ? (e.consume(m), $) : D(m);
5574
5574
  }
5575
5575
  function D(m) {
5576
5576
  return m === 61 ? (e.consume(m), B) : K(m) ? (o = D, j(m)) : se(m) ? (e.consume(m), D) : N(m);
@@ -5666,7 +5666,7 @@ function ed(e, t) {
5666
5666
  e[o - 2],
5667
5667
  e[o - 1],
5668
5668
  ["exit", u, t]
5669
- ]), l = He(l, e.slice(o + 1)), l = He(l, [["exit", s, t]]), et(e, a, e.length, l), e;
5669
+ ]), l = He(l, e.slice(o + 1)), l = He(l, [["exit", s, t]]), tt(e, a, e.length, l), e;
5670
5670
  }
5671
5671
  function td(e, t, n) {
5672
5672
  const r = this;
@@ -6195,7 +6195,7 @@ function Ed(e, t, n) {
6195
6195
  };
6196
6196
  }
6197
6197
  function h(D) {
6198
- i[D.line] = D.column, U();
6198
+ i[D.line] = D.column, $();
6199
6199
  }
6200
6200
  function w() {
6201
6201
  let D;
@@ -6212,7 +6212,7 @@ function Ed(e, t, n) {
6212
6212
  c = c(D);
6213
6213
  }
6214
6214
  function P(D) {
6215
- K(D) ? (r.line++, r.column = 1, r.offset += D === -3 ? 2 : 1, U()) : D !== -1 && (r.column++, r.offset++), r._bufferIndex < 0 ? r._index++ : (r._bufferIndex++, r._bufferIndex === o[r._index].length && (r._bufferIndex = -1, r._index++)), u.previous = D;
6215
+ K(D) ? (r.line++, r.column = 1, r.offset += D === -3 ? 2 : 1, $()) : D !== -1 && (r.column++, r.offset++), r._bufferIndex < 0 ? r._index++ : (r._bufferIndex++, r._bufferIndex === o[r._index].length && (r._bufferIndex = -1, r._index++)), u.previous = D;
6216
6216
  }
6217
6217
  function L(D, B) {
6218
6218
  const O = B || {};
@@ -6239,10 +6239,10 @@ function Ed(e, t, n) {
6239
6239
  function W(ne) {
6240
6240
  return fe;
6241
6241
  function fe(de) {
6242
- const xe = de !== null && ne[de], pe = de !== null && ne.null, Ee = [
6242
+ const ve = de !== null && ne[de], pe = de !== null && ne.null, Ee = [
6243
6243
  // To do: add more extension tests.
6244
6244
  /* c8 ignore next 2 */
6245
- ...Array.isArray(xe) ? xe : xe ? [xe] : [],
6245
+ ...Array.isArray(ve) ? ve : ve ? [ve] : [],
6246
6246
  ...Array.isArray(pe) ? pe : pe ? [pe] : []
6247
6247
  ];
6248
6248
  return J(Ee)(de);
@@ -6260,12 +6260,12 @@ function Ed(e, t, n) {
6260
6260
  // This allows a “live binding”, which is needed for `interrupt`.
6261
6261
  B ? Object.assign(Object.create(u), B) : u,
6262
6262
  s,
6263
- Z,
6263
+ X,
6264
6264
  ie
6265
6265
  )(de);
6266
6266
  }
6267
6267
  }
6268
- function Z(ne) {
6268
+ function X(ne) {
6269
6269
  return D(H, m), T;
6270
6270
  }
6271
6271
  function ie(ne) {
@@ -6274,7 +6274,7 @@ function Ed(e, t, n) {
6274
6274
  }
6275
6275
  }
6276
6276
  function z(D, B) {
6277
- D.resolveAll && !a.includes(D) && a.push(D), D.resolve && et(
6277
+ D.resolveAll && !a.includes(D) && a.push(D), D.resolve && tt(
6278
6278
  u.events,
6279
6279
  B,
6280
6280
  u.events.length - B,
@@ -6288,10 +6288,10 @@ function Ed(e, t, n) {
6288
6288
  from: S
6289
6289
  };
6290
6290
  function A() {
6291
- r = D, u.previous = B, u.currentConstruct = O, u.events.length = S, l = T, U();
6291
+ r = D, u.previous = B, u.currentConstruct = O, u.events.length = S, l = T, $();
6292
6292
  }
6293
6293
  }
6294
- function U() {
6294
+ function $() {
6295
6295
  r.line in i && r.column < 2 && (r.column = i[r.line], r.offset += i[r.line] - 1);
6296
6296
  }
6297
6297
  }
@@ -6527,46 +6527,46 @@ function Wd(e) {
6527
6527
  transforms: [],
6528
6528
  canContainEols: ["emphasis", "fragment", "heading", "paragraph", "strong"],
6529
6529
  enter: {
6530
- autolink: l(ye),
6530
+ autolink: l(Ce),
6531
6531
  autolinkProtocol: D,
6532
6532
  autolinkEmail: D,
6533
- atxHeading: l(pt),
6533
+ atxHeading: l(dt),
6534
6534
  blockQuote: l(Ee),
6535
6535
  characterEscape: D,
6536
6536
  characterReference: D,
6537
- codeFenced: l(Pe),
6537
+ codeFenced: l(Ne),
6538
6538
  codeFencedFenceInfo: s,
6539
6539
  codeFencedFenceMeta: s,
6540
- codeIndented: l(Pe, s),
6541
- codeText: l(Xe, s),
6540
+ codeIndented: l(Ne, s),
6541
+ codeText: l($e, s),
6542
6542
  codeTextData: D,
6543
6543
  data: D,
6544
6544
  codeFlowValue: D,
6545
- definition: l(St),
6545
+ definition: l(kt),
6546
6546
  definitionDestinationString: s,
6547
6547
  definitionLabelString: s,
6548
6548
  definitionTitleString: s,
6549
- emphasis: l(_t),
6550
- hardBreakEscape: l(ht),
6551
- hardBreakTrailing: l(ht),
6552
- htmlFlow: l(Y, s),
6549
+ emphasis: l(St),
6550
+ hardBreakEscape: l(Y),
6551
+ hardBreakTrailing: l(Y),
6552
+ htmlFlow: l(ae, s),
6553
6553
  htmlFlowData: D,
6554
- htmlText: l(Y, s),
6554
+ htmlText: l(ae, s),
6555
6555
  htmlTextData: D,
6556
- image: l(ae),
6556
+ image: l(xe),
6557
6557
  label: s,
6558
- link: l(ye),
6559
- listItem: l(Ne),
6558
+ link: l(Ce),
6559
+ listItem: l(Ve),
6560
6560
  listItemValue: y,
6561
- listOrdered: l(ke, d),
6562
- listUnordered: l(ke),
6563
- paragraph: l(Oe),
6561
+ listOrdered: l(Oe, d),
6562
+ listUnordered: l(Oe),
6563
+ paragraph: l(Pe),
6564
6564
  reference: ie,
6565
6565
  referenceString: s,
6566
6566
  resourceDestinationString: s,
6567
6567
  resourceTitleString: s,
6568
- setextHeading: l(pt),
6569
- strong: l(lt),
6568
+ setextHeading: l(dt),
6569
+ strong: l(_t),
6570
6570
  thematicBreak: l(Bt)
6571
6571
  },
6572
6572
  exit: {
@@ -6574,7 +6574,7 @@ function Wd(e) {
6574
6574
  atxHeadingSequence: E,
6575
6575
  autolink: c(),
6576
6576
  autolinkEmail: pe,
6577
- autolinkProtocol: xe,
6577
+ autolinkProtocol: ve,
6578
6578
  blockQuote: c(),
6579
6579
  characterEscapeValue: B,
6580
6580
  characterReferenceMarkerHexadecimal: fe,
@@ -6612,8 +6612,8 @@ function Wd(e) {
6612
6612
  referenceString: ne,
6613
6613
  resourceDestinationString: J,
6614
6614
  resourceTitleString: x,
6615
- resource: Z,
6616
- setextHeading: c(U),
6615
+ resource: X,
6616
+ setextHeading: c($),
6617
6617
  setextHeadingLineSequence: N,
6618
6618
  setextHeadingText: z,
6619
6619
  strong: c(),
@@ -6624,12 +6624,12 @@ function Wd(e) {
6624
6624
  const n = {};
6625
6625
  return r;
6626
6626
  function r(M) {
6627
- let V = {
6627
+ let U = {
6628
6628
  type: "root",
6629
6629
  children: []
6630
6630
  };
6631
- const X = {
6632
- stack: [V],
6631
+ const Z = {
6632
+ stack: [U],
6633
6633
  tokenStack: [],
6634
6634
  config: t,
6635
6635
  enter: u,
@@ -6655,16 +6655,16 @@ function Wd(e) {
6655
6655
  {
6656
6656
  sliceSerialize: M[ue][2].sliceSerialize
6657
6657
  },
6658
- X
6658
+ Z
6659
6659
  ),
6660
6660
  M[ue][1]
6661
6661
  );
6662
6662
  }
6663
- if (X.tokenStack.length > 0) {
6664
- const Ae = X.tokenStack[X.tokenStack.length - 1];
6665
- (Ae[1] || Ta).call(X, void 0, Ae[0]);
6663
+ if (Z.tokenStack.length > 0) {
6664
+ const Ae = Z.tokenStack[Z.tokenStack.length - 1];
6665
+ (Ae[1] || Ta).call(Z, void 0, Ae[0]);
6666
6666
  }
6667
- for (V.position = {
6667
+ for (U.position = {
6668
6668
  start: st(
6669
6669
  M.length > 0 ? M[0][1].start : {
6670
6670
  line: 1,
@@ -6680,49 +6680,49 @@ function Wd(e) {
6680
6680
  }
6681
6681
  )
6682
6682
  }, ue = -1; ++ue < t.transforms.length; )
6683
- V = t.transforms[ue](V) || V;
6684
- return V;
6683
+ U = t.transforms[ue](U) || U;
6684
+ return U;
6685
6685
  }
6686
- function i(M, V, X) {
6687
- let oe = V - 1, ue = -1, Ae = !1, Ze, $e, je, Ye;
6688
- for (; ++oe <= X; ) {
6686
+ function i(M, U, Z) {
6687
+ let oe = U - 1, ue = -1, Ae = !1, Ye, We, je, Ke;
6688
+ for (; ++oe <= Z; ) {
6689
6689
  const we = M[oe];
6690
- if (we[1].type === "listUnordered" || we[1].type === "listOrdered" || we[1].type === "blockQuote" ? (we[0] === "enter" ? ue++ : ue--, Ye = void 0) : we[1].type === "lineEndingBlank" ? we[0] === "enter" && (Ze && !Ye && !ue && !je && (je = oe), Ye = void 0) : we[1].type === "linePrefix" || we[1].type === "listItemValue" || we[1].type === "listItemMarker" || we[1].type === "listItemPrefix" || we[1].type === "listItemPrefixWhitespace" || (Ye = void 0), !ue && we[0] === "enter" && we[1].type === "listItemPrefix" || ue === -1 && we[0] === "exit" && (we[1].type === "listUnordered" || we[1].type === "listOrdered")) {
6691
- if (Ze) {
6690
+ if (we[1].type === "listUnordered" || we[1].type === "listOrdered" || we[1].type === "blockQuote" ? (we[0] === "enter" ? ue++ : ue--, Ke = void 0) : we[1].type === "lineEndingBlank" ? we[0] === "enter" && (Ye && !Ke && !ue && !je && (je = oe), 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), !ue && we[0] === "enter" && we[1].type === "listItemPrefix" || ue === -1 && we[0] === "exit" && (we[1].type === "listUnordered" || we[1].type === "listOrdered")) {
6691
+ if (Ye) {
6692
6692
  let Tt = oe;
6693
- for ($e = void 0; Tt--; ) {
6694
- const Ve = M[Tt];
6695
- if (Ve[1].type === "lineEnding" || Ve[1].type === "lineEndingBlank") {
6696
- if (Ve[0] === "exit") continue;
6697
- $e && (M[$e][1].type = "lineEndingBlank", Ae = !0), Ve[1].type = "lineEnding", $e = Tt;
6698
- } else if (!(Ve[1].type === "linePrefix" || Ve[1].type === "blockQuotePrefix" || Ve[1].type === "blockQuotePrefixWhitespace" || Ve[1].type === "blockQuoteMarker" || Ve[1].type === "listItemIndent")) break;
6693
+ for (We = void 0; Tt--; ) {
6694
+ const Ge = M[Tt];
6695
+ if (Ge[1].type === "lineEnding" || Ge[1].type === "lineEndingBlank") {
6696
+ if (Ge[0] === "exit") continue;
6697
+ We && (M[We][1].type = "lineEndingBlank", Ae = !0), Ge[1].type = "lineEnding", We = Tt;
6698
+ } else if (!(Ge[1].type === "linePrefix" || Ge[1].type === "blockQuotePrefix" || Ge[1].type === "blockQuotePrefixWhitespace" || Ge[1].type === "blockQuoteMarker" || Ge[1].type === "listItemIndent")) break;
6699
6699
  }
6700
- je && (!$e || je < $e) && (Ze._spread = !0), Ze.end = Object.assign(
6700
+ je && (!We || je < We) && (Ye._spread = !0), Ye.end = Object.assign(
6701
6701
  {},
6702
- $e ? M[$e][1].start : we[1].end
6703
- ), M.splice($e || oe, 0, ["exit", Ze, we[2]]), oe++, X++;
6702
+ We ? M[We][1].start : we[1].end
6703
+ ), M.splice(We || oe, 0, ["exit", Ye, we[2]]), oe++, Z++;
6704
6704
  }
6705
- we[1].type === "listItemPrefix" && (Ze = {
6705
+ we[1].type === "listItemPrefix" && (Ye = {
6706
6706
  type: "listItem",
6707
6707
  _spread: !1,
6708
6708
  start: Object.assign({}, we[1].start),
6709
6709
  // @ts-expect-error: we’ll add `end` in a second.
6710
6710
  end: void 0
6711
- }, M.splice(oe, 0, ["enter", Ze, we[2]]), oe++, X++, je = void 0, Ye = !0);
6711
+ }, M.splice(oe, 0, ["enter", Ye, we[2]]), oe++, Z++, je = void 0, Ke = !0);
6712
6712
  }
6713
6713
  }
6714
- return M[V][1]._spread = Ae, X;
6714
+ return M[U][1]._spread = Ae, Z;
6715
6715
  }
6716
- function a(M, V) {
6717
- n[M] = V;
6716
+ function a(M, U) {
6717
+ n[M] = U;
6718
6718
  }
6719
6719
  function o(M) {
6720
6720
  return n[M];
6721
6721
  }
6722
- function l(M, V) {
6723
- return X;
6724
- function X(oe) {
6725
- u.call(this, M(oe), oe), V && V.call(this, oe);
6722
+ function l(M, U) {
6723
+ return Z;
6724
+ function Z(oe) {
6725
+ u.call(this, M(oe), oe), U && U.call(this, oe);
6726
6726
  }
6727
6727
  }
6728
6728
  function s() {
@@ -6731,28 +6731,28 @@ function Wd(e) {
6731
6731
  children: []
6732
6732
  });
6733
6733
  }
6734
- function u(M, V, X) {
6735
- return this.stack[this.stack.length - 1].children.push(M), this.stack.push(M), this.tokenStack.push([V, X]), M.position = {
6736
- start: st(V.start)
6734
+ function u(M, U, Z) {
6735
+ return this.stack[this.stack.length - 1].children.push(M), this.stack.push(M), this.tokenStack.push([U, Z]), M.position = {
6736
+ start: st(U.start)
6737
6737
  }, M;
6738
6738
  }
6739
6739
  function c(M) {
6740
- return V;
6741
- function V(X) {
6742
- M && M.call(this, X), f.call(this, X);
6740
+ return U;
6741
+ function U(Z) {
6742
+ M && M.call(this, Z), f.call(this, Z);
6743
6743
  }
6744
6744
  }
6745
- function f(M, V) {
6746
- const X = this.stack.pop(), oe = this.tokenStack.pop();
6745
+ function f(M, U) {
6746
+ const Z = this.stack.pop(), oe = this.tokenStack.pop();
6747
6747
  if (oe)
6748
- oe[0].type !== M.type && (V ? V.call(this, M, oe[0]) : (oe[1] || Ta).call(this, M, oe[0]));
6748
+ oe[0].type !== M.type && (U ? U.call(this, M, oe[0]) : (oe[1] || Ta).call(this, M, oe[0]));
6749
6749
  else throw new Error(
6750
6750
  "Cannot close `" + M.type + "` (" + Kt({
6751
6751
  start: M.start,
6752
6752
  end: M.end
6753
6753
  }) + "): it’s not open"
6754
6754
  );
6755
- return X.position.end = st(M.end), X;
6755
+ return Z.position.end = st(M.end), Z;
6756
6756
  }
6757
6757
  function p() {
6758
6758
  return Uc(this.stack.pop());
@@ -6762,100 +6762,100 @@ function Wd(e) {
6762
6762
  }
6763
6763
  function y(M) {
6764
6764
  if (o("expectingFirstListItemValue")) {
6765
- const V = this.stack[this.stack.length - 2];
6766
- V.start = Number.parseInt(this.sliceSerialize(M), 10), a("expectingFirstListItemValue");
6765
+ const U = this.stack[this.stack.length - 2];
6766
+ U.start = Number.parseInt(this.sliceSerialize(M), 10), a("expectingFirstListItemValue");
6767
6767
  }
6768
6768
  }
6769
6769
  function h() {
6770
- const M = this.resume(), V = this.stack[this.stack.length - 1];
6771
- V.lang = M;
6770
+ const M = this.resume(), U = this.stack[this.stack.length - 1];
6771
+ U.lang = M;
6772
6772
  }
6773
6773
  function w() {
6774
- const M = this.resume(), V = this.stack[this.stack.length - 1];
6775
- V.meta = M;
6774
+ const M = this.resume(), U = this.stack[this.stack.length - 1];
6775
+ U.meta = M;
6776
6776
  }
6777
6777
  function g() {
6778
6778
  o("flowCodeInside") || (this.buffer(), a("flowCodeInside", !0));
6779
6779
  }
6780
6780
  function P() {
6781
- const M = this.resume(), V = this.stack[this.stack.length - 1];
6782
- V.value = M.replace(/^(\r?\n|\r)|(\r?\n|\r)$/g, ""), a("flowCodeInside");
6781
+ const M = this.resume(), U = this.stack[this.stack.length - 1];
6782
+ U.value = M.replace(/^(\r?\n|\r)|(\r?\n|\r)$/g, ""), a("flowCodeInside");
6783
6783
  }
6784
6784
  function L() {
6785
- const M = this.resume(), V = this.stack[this.stack.length - 1];
6786
- V.value = M.replace(/(\r?\n|\r)$/g, "");
6785
+ const M = this.resume(), U = this.stack[this.stack.length - 1];
6786
+ U.value = M.replace(/(\r?\n|\r)$/g, "");
6787
6787
  }
6788
6788
  function q(M) {
6789
- const V = this.resume(), X = this.stack[this.stack.length - 1];
6790
- X.label = V, X.identifier = jt(
6789
+ const U = this.resume(), Z = this.stack[this.stack.length - 1];
6790
+ Z.label = U, Z.identifier = jt(
6791
6791
  this.sliceSerialize(M)
6792
6792
  ).toLowerCase();
6793
6793
  }
6794
6794
  function I() {
6795
- const M = this.resume(), V = this.stack[this.stack.length - 1];
6796
- V.title = M;
6795
+ const M = this.resume(), U = this.stack[this.stack.length - 1];
6796
+ U.title = M;
6797
6797
  }
6798
6798
  function b() {
6799
- const M = this.resume(), V = this.stack[this.stack.length - 1];
6800
- V.url = M;
6799
+ const M = this.resume(), U = this.stack[this.stack.length - 1];
6800
+ U.url = M;
6801
6801
  }
6802
6802
  function E(M) {
6803
- const V = this.stack[this.stack.length - 1];
6804
- if (!V.depth) {
6805
- const X = this.sliceSerialize(M).length;
6806
- V.depth = X;
6803
+ const U = this.stack[this.stack.length - 1];
6804
+ if (!U.depth) {
6805
+ const Z = this.sliceSerialize(M).length;
6806
+ U.depth = Z;
6807
6807
  }
6808
6808
  }
6809
6809
  function z() {
6810
6810
  a("setextHeadingSlurpLineEnding", !0);
6811
6811
  }
6812
6812
  function N(M) {
6813
- const V = this.stack[this.stack.length - 1];
6814
- V.depth = this.sliceSerialize(M).charCodeAt(0) === 61 ? 1 : 2;
6813
+ const U = this.stack[this.stack.length - 1];
6814
+ U.depth = this.sliceSerialize(M).charCodeAt(0) === 61 ? 1 : 2;
6815
6815
  }
6816
- function U() {
6816
+ function $() {
6817
6817
  a("setextHeadingSlurpLineEnding");
6818
6818
  }
6819
6819
  function D(M) {
6820
- const V = this.stack[this.stack.length - 1];
6821
- let X = V.children[V.children.length - 1];
6822
- (!X || X.type !== "text") && (X = Et(), X.position = {
6820
+ const U = this.stack[this.stack.length - 1];
6821
+ let Z = U.children[U.children.length - 1];
6822
+ (!Z || Z.type !== "text") && (Z = Et(), Z.position = {
6823
6823
  start: st(M.start)
6824
- }, V.children.push(X)), this.stack.push(X);
6824
+ }, U.children.push(Z)), this.stack.push(Z);
6825
6825
  }
6826
6826
  function B(M) {
6827
- const V = this.stack.pop();
6828
- V.value += this.sliceSerialize(M), V.position.end = st(M.end);
6827
+ const U = this.stack.pop();
6828
+ U.value += this.sliceSerialize(M), U.position.end = st(M.end);
6829
6829
  }
6830
6830
  function O(M) {
6831
- const V = this.stack[this.stack.length - 1];
6831
+ const U = this.stack[this.stack.length - 1];
6832
6832
  if (o("atHardBreak")) {
6833
- const X = V.children[V.children.length - 1];
6834
- X.position.end = st(M.end), a("atHardBreak");
6833
+ const Z = U.children[U.children.length - 1];
6834
+ Z.position.end = st(M.end), a("atHardBreak");
6835
6835
  return;
6836
6836
  }
6837
- !o("setextHeadingSlurpLineEnding") && t.canContainEols.includes(V.type) && (D.call(this, M), B.call(this, M));
6837
+ !o("setextHeadingSlurpLineEnding") && t.canContainEols.includes(U.type) && (D.call(this, M), B.call(this, M));
6838
6838
  }
6839
6839
  function S() {
6840
6840
  a("atHardBreak", !0);
6841
6841
  }
6842
6842
  function T() {
6843
- const M = this.resume(), V = this.stack[this.stack.length - 1];
6844
- V.value = M;
6843
+ const M = this.resume(), U = this.stack[this.stack.length - 1];
6844
+ U.value = M;
6845
6845
  }
6846
6846
  function A() {
6847
- const M = this.resume(), V = this.stack[this.stack.length - 1];
6848
- V.value = M;
6847
+ const M = this.resume(), U = this.stack[this.stack.length - 1];
6848
+ U.value = M;
6849
6849
  }
6850
6850
  function j() {
6851
- const M = this.resume(), V = this.stack[this.stack.length - 1];
6852
- V.value = M;
6851
+ const M = this.resume(), U = this.stack[this.stack.length - 1];
6852
+ U.value = M;
6853
6853
  }
6854
6854
  function R() {
6855
6855
  const M = this.stack[this.stack.length - 1];
6856
6856
  if (o("inReference")) {
6857
- const V = o("referenceType") || "shortcut";
6858
- M.type += "Reference", M.referenceType = V, delete M.url, delete M.title;
6857
+ const U = o("referenceType") || "shortcut";
6858
+ M.type += "Reference", M.referenceType = U, delete M.url, delete M.title;
6859
6859
  } else
6860
6860
  delete M.identifier, delete M.label;
6861
6861
  a("referenceType");
@@ -6863,41 +6863,41 @@ function Wd(e) {
6863
6863
  function H() {
6864
6864
  const M = this.stack[this.stack.length - 1];
6865
6865
  if (o("inReference")) {
6866
- const V = o("referenceType") || "shortcut";
6867
- M.type += "Reference", M.referenceType = V, delete M.url, delete M.title;
6866
+ const U = o("referenceType") || "shortcut";
6867
+ M.type += "Reference", M.referenceType = U, delete M.url, delete M.title;
6868
6868
  } else
6869
6869
  delete M.identifier, delete M.label;
6870
6870
  a("referenceType");
6871
6871
  }
6872
6872
  function m(M) {
6873
- const V = this.sliceSerialize(M), X = this.stack[this.stack.length - 2];
6874
- X.label = Ud(V), X.identifier = jt(V).toLowerCase();
6873
+ const U = this.sliceSerialize(M), Z = this.stack[this.stack.length - 2];
6874
+ Z.label = Ud(U), Z.identifier = jt(U).toLowerCase();
6875
6875
  }
6876
6876
  function W() {
6877
- const M = this.stack[this.stack.length - 1], V = this.resume(), X = this.stack[this.stack.length - 1];
6878
- if (a("inReference", !0), X.type === "link") {
6877
+ const M = this.stack[this.stack.length - 1], U = this.resume(), Z = this.stack[this.stack.length - 1];
6878
+ if (a("inReference", !0), Z.type === "link") {
6879
6879
  const oe = M.children;
6880
- X.children = oe;
6880
+ Z.children = oe;
6881
6881
  } else
6882
- X.alt = V;
6882
+ Z.alt = U;
6883
6883
  }
6884
6884
  function J() {
6885
- const M = this.resume(), V = this.stack[this.stack.length - 1];
6886
- V.url = M;
6885
+ const M = this.resume(), U = this.stack[this.stack.length - 1];
6886
+ U.url = M;
6887
6887
  }
6888
6888
  function x() {
6889
- const M = this.resume(), V = this.stack[this.stack.length - 1];
6890
- V.title = M;
6889
+ const M = this.resume(), U = this.stack[this.stack.length - 1];
6890
+ U.title = M;
6891
6891
  }
6892
- function Z() {
6892
+ function X() {
6893
6893
  a("inReference");
6894
6894
  }
6895
6895
  function ie() {
6896
6896
  a("referenceType", "collapsed");
6897
6897
  }
6898
6898
  function ne(M) {
6899
- const V = this.resume(), X = this.stack[this.stack.length - 1];
6900
- X.label = V, X.identifier = jt(
6899
+ const U = this.resume(), Z = this.stack[this.stack.length - 1];
6900
+ Z.label = U, Z.identifier = jt(
6901
6901
  this.sliceSerialize(M)
6902
6902
  ).toLowerCase(), a("referenceType", "full");
6903
6903
  }
@@ -6905,24 +6905,24 @@ function Wd(e) {
6905
6905
  a("characterReferenceType", M.type);
6906
6906
  }
6907
6907
  function de(M) {
6908
- const V = this.sliceSerialize(M), X = o("characterReferenceType");
6908
+ const U = this.sliceSerialize(M), Z = o("characterReferenceType");
6909
6909
  let oe;
6910
- X ? (oe = nl(
6911
- V,
6912
- X === "characterReferenceMarkerNumeric" ? 10 : 16
6913
- ), a("characterReferenceType")) : oe = ni(V);
6910
+ Z ? (oe = nl(
6911
+ U,
6912
+ Z === "characterReferenceMarkerNumeric" ? 10 : 16
6913
+ ), a("characterReferenceType")) : oe = ni(U);
6914
6914
  const ue = this.stack.pop();
6915
6915
  ue.value += oe, ue.position.end = st(M.end);
6916
6916
  }
6917
- function xe(M) {
6917
+ function ve(M) {
6918
6918
  B.call(this, M);
6919
- const V = this.stack[this.stack.length - 1];
6920
- V.url = this.sliceSerialize(M);
6919
+ const U = this.stack[this.stack.length - 1];
6920
+ U.url = this.sliceSerialize(M);
6921
6921
  }
6922
6922
  function pe(M) {
6923
6923
  B.call(this, M);
6924
- const V = this.stack[this.stack.length - 1];
6925
- V.url = "mailto:" + this.sliceSerialize(M);
6924
+ const U = this.stack[this.stack.length - 1];
6925
+ U.url = "mailto:" + this.sliceSerialize(M);
6926
6926
  }
6927
6927
  function Ee() {
6928
6928
  return {
@@ -6930,7 +6930,7 @@ function Wd(e) {
6930
6930
  children: []
6931
6931
  };
6932
6932
  }
6933
- function Pe() {
6933
+ function Ne() {
6934
6934
  return {
6935
6935
  type: "code",
6936
6936
  lang: null,
@@ -6938,13 +6938,13 @@ function Wd(e) {
6938
6938
  value: ""
6939
6939
  };
6940
6940
  }
6941
- function Xe() {
6941
+ function $e() {
6942
6942
  return {
6943
6943
  type: "inlineCode",
6944
6944
  value: ""
6945
6945
  };
6946
6946
  }
6947
- function St() {
6947
+ function kt() {
6948
6948
  return {
6949
6949
  type: "definition",
6950
6950
  identifier: "",
@@ -6953,31 +6953,31 @@ function Wd(e) {
6953
6953
  url: ""
6954
6954
  };
6955
6955
  }
6956
- function _t() {
6956
+ function St() {
6957
6957
  return {
6958
6958
  type: "emphasis",
6959
6959
  children: []
6960
6960
  };
6961
6961
  }
6962
- function pt() {
6962
+ function dt() {
6963
6963
  return {
6964
6964
  type: "heading",
6965
6965
  depth: void 0,
6966
6966
  children: []
6967
6967
  };
6968
6968
  }
6969
- function ht() {
6969
+ function Y() {
6970
6970
  return {
6971
6971
  type: "break"
6972
6972
  };
6973
6973
  }
6974
- function Y() {
6974
+ function ae() {
6975
6975
  return {
6976
6976
  type: "html",
6977
6977
  value: ""
6978
6978
  };
6979
6979
  }
6980
- function ae() {
6980
+ function xe() {
6981
6981
  return {
6982
6982
  type: "image",
6983
6983
  title: null,
@@ -6985,7 +6985,7 @@ function Wd(e) {
6985
6985
  alt: null
6986
6986
  };
6987
6987
  }
6988
- function ye() {
6988
+ function Ce() {
6989
6989
  return {
6990
6990
  type: "link",
6991
6991
  title: null,
@@ -6993,7 +6993,7 @@ function Wd(e) {
6993
6993
  children: []
6994
6994
  };
6995
6995
  }
6996
- function ke(M) {
6996
+ function Oe(M) {
6997
6997
  return {
6998
6998
  type: "list",
6999
6999
  ordered: M.type === "listOrdered",
@@ -7002,7 +7002,7 @@ function Wd(e) {
7002
7002
  children: []
7003
7003
  };
7004
7004
  }
7005
- function Ne(M) {
7005
+ function Ve(M) {
7006
7006
  return {
7007
7007
  type: "listItem",
7008
7008
  spread: M._spread,
@@ -7010,13 +7010,13 @@ function Wd(e) {
7010
7010
  children: []
7011
7011
  };
7012
7012
  }
7013
- function Oe() {
7013
+ function Pe() {
7014
7014
  return {
7015
7015
  type: "paragraph",
7016
7016
  children: []
7017
7017
  };
7018
7018
  }
7019
- function lt() {
7019
+ function _t() {
7020
7020
  return {
7021
7021
  type: "strong",
7022
7022
  children: []
@@ -7896,8 +7896,8 @@ Ue.prototype.commaOrSpaceSeparated = !1;
7896
7896
  Ue.prototype.mustUseProperty = !1;
7897
7897
  Ue.prototype.defined = !1;
7898
7898
  let zp = 0;
7899
- const te = Ct(), _e = Ct(), pl = Ct(), $ = Ct(), me = Ct(), Dt = Ct(), Me = Ct();
7900
- function Ct() {
7899
+ const te = wt(), _e = wt(), pl = wt(), V = wt(), me = wt(), Dt = wt(), Me = wt();
7900
+ function wt() {
7901
7901
  return 2 ** ++zp;
7902
7902
  }
7903
7903
  const zr = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineProperty({
@@ -7906,7 +7906,7 @@ const zr = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineProperty({
7906
7906
  booleanish: _e,
7907
7907
  commaOrSpaceSeparated: Me,
7908
7908
  commaSeparated: Dt,
7909
- number: $,
7909
+ number: V,
7910
7910
  overloadedBoolean: pl,
7911
7911
  spaceSeparated: me
7912
7912
  }, Symbol.toStringTag, { value: "Module" })), pr = Object.keys(zr);
@@ -7989,9 +7989,9 @@ const bl = Rt({
7989
7989
  ariaAutoComplete: null,
7990
7990
  ariaBusy: _e,
7991
7991
  ariaChecked: _e,
7992
- ariaColCount: $,
7993
- ariaColIndex: $,
7994
- ariaColSpan: $,
7992
+ ariaColCount: V,
7993
+ ariaColIndex: V,
7994
+ ariaColSpan: V,
7995
7995
  ariaControls: me,
7996
7996
  ariaCurrent: null,
7997
7997
  ariaDescribedBy: me,
@@ -8008,7 +8008,7 @@ const bl = Rt({
8008
8008
  ariaKeyShortcuts: null,
8009
8009
  ariaLabel: null,
8010
8010
  ariaLabelledBy: me,
8011
- ariaLevel: $,
8011
+ ariaLevel: V,
8012
8012
  ariaLive: null,
8013
8013
  ariaModal: _e,
8014
8014
  ariaMultiLine: _e,
@@ -8016,21 +8016,21 @@ const bl = Rt({
8016
8016
  ariaOrientation: null,
8017
8017
  ariaOwns: me,
8018
8018
  ariaPlaceholder: null,
8019
- ariaPosInSet: $,
8019
+ ariaPosInSet: V,
8020
8020
  ariaPressed: _e,
8021
8021
  ariaReadOnly: _e,
8022
8022
  ariaRelevant: null,
8023
8023
  ariaRequired: _e,
8024
8024
  ariaRoleDescription: me,
8025
- ariaRowCount: $,
8026
- ariaRowIndex: $,
8027
- ariaRowSpan: $,
8025
+ ariaRowCount: V,
8026
+ ariaRowIndex: V,
8027
+ ariaRowSpan: V,
8028
8028
  ariaSelected: _e,
8029
- ariaSetSize: $,
8029
+ ariaSetSize: V,
8030
8030
  ariaSort: null,
8031
- ariaValueMax: $,
8032
- ariaValueMin: $,
8033
- ariaValueNow: $,
8031
+ ariaValueMax: V,
8032
+ ariaValueMin: V,
8033
+ ariaValueNow: V,
8034
8034
  ariaValueText: null,
8035
8035
  role: null
8036
8036
  }
@@ -8068,13 +8068,13 @@ const bl = Rt({
8068
8068
  checked: te,
8069
8069
  cite: null,
8070
8070
  className: me,
8071
- cols: $,
8071
+ cols: V,
8072
8072
  colSpan: null,
8073
8073
  content: null,
8074
8074
  contentEditable: _e,
8075
8075
  controls: te,
8076
8076
  controlsList: me,
8077
- coords: $ | Dt,
8077
+ coords: V | Dt,
8078
8078
  crossOrigin: null,
8079
8079
  data: null,
8080
8080
  dateTime: null,
@@ -8096,9 +8096,9 @@ const bl = Rt({
8096
8096
  formNoValidate: te,
8097
8097
  formTarget: null,
8098
8098
  headers: me,
8099
- height: $,
8099
+ height: V,
8100
8100
  hidden: te,
8101
- high: $,
8101
+ high: V,
8102
8102
  href: null,
8103
8103
  hrefLang: null,
8104
8104
  htmlFor: me,
@@ -8123,14 +8123,14 @@ const bl = Rt({
8123
8123
  list: null,
8124
8124
  loading: null,
8125
8125
  loop: te,
8126
- low: $,
8126
+ low: V,
8127
8127
  manifest: null,
8128
8128
  max: null,
8129
- maxLength: $,
8129
+ maxLength: V,
8130
8130
  media: null,
8131
8131
  method: null,
8132
8132
  min: null,
8133
- minLength: $,
8133
+ minLength: V,
8134
8134
  multiple: te,
8135
8135
  muted: te,
8136
8136
  name: null,
@@ -8226,7 +8226,7 @@ const bl = Rt({
8226
8226
  onWaiting: null,
8227
8227
  onWheel: null,
8228
8228
  open: te,
8229
- optimum: $,
8229
+ optimum: V,
8230
8230
  pattern: null,
8231
8231
  ping: me,
8232
8232
  placeholder: null,
@@ -8241,8 +8241,8 @@ const bl = Rt({
8241
8241
  rel: me,
8242
8242
  required: te,
8243
8243
  reversed: te,
8244
- rows: $,
8245
- rowSpan: $,
8244
+ rows: V,
8245
+ rowSpan: V,
8246
8246
  sandbox: me,
8247
8247
  scope: null,
8248
8248
  scoped: te,
@@ -8251,19 +8251,19 @@ const bl = Rt({
8251
8251
  shadowRootDelegatesFocus: te,
8252
8252
  shadowRootMode: null,
8253
8253
  shape: null,
8254
- size: $,
8254
+ size: V,
8255
8255
  sizes: null,
8256
8256
  slot: null,
8257
- span: $,
8257
+ span: V,
8258
8258
  spellCheck: _e,
8259
8259
  src: null,
8260
8260
  srcDoc: null,
8261
8261
  srcLang: null,
8262
8262
  srcSet: null,
8263
- start: $,
8263
+ start: V,
8264
8264
  step: null,
8265
8265
  style: null,
8266
- tabIndex: $,
8266
+ tabIndex: V,
8267
8267
  target: null,
8268
8268
  title: null,
8269
8269
  translate: null,
@@ -8271,7 +8271,7 @@ const bl = Rt({
8271
8271
  typeMustMatch: te,
8272
8272
  useMap: null,
8273
8273
  value: _e,
8274
- width: $,
8274
+ width: V,
8275
8275
  wrap: null,
8276
8276
  // Legacy.
8277
8277
  // See: https://html.spec.whatwg.org/#other-elements,-attributes-and-apis
@@ -8287,11 +8287,11 @@ const bl = Rt({
8287
8287
  // `<body>`. Use CSS `background-image` instead
8288
8288
  bgColor: null,
8289
8289
  // `<body>` and table elements. Use CSS `background-color` instead
8290
- border: $,
8290
+ border: V,
8291
8291
  // `<table>`. Use CSS `border-width` instead,
8292
8292
  borderColor: null,
8293
8293
  // `<table>`. Use CSS `border-color` instead,
8294
- bottomMargin: $,
8294
+ bottomMargin: V,
8295
8295
  // `<body>`
8296
8296
  cellPadding: null,
8297
8297
  // `<table>`
@@ -8325,9 +8325,9 @@ const bl = Rt({
8325
8325
  // `<table>`
8326
8326
  frameBorder: null,
8327
8327
  // `<iframe>`. Use CSS `border` instead
8328
- hSpace: $,
8328
+ hSpace: V,
8329
8329
  // `<img>` and `<object>`
8330
- leftMargin: $,
8330
+ leftMargin: V,
8331
8331
  // `<body>`
8332
8332
  link: null,
8333
8333
  // `<body>`. Use CSS `a:link {color: *}` instead
@@ -8335,9 +8335,9 @@ const bl = Rt({
8335
8335
  // `<frame>`, `<iframe>`, and `<img>`. Use an `<a>`
8336
8336
  lowSrc: null,
8337
8337
  // `<img>`. Use a `<picture>`
8338
- marginHeight: $,
8338
+ marginHeight: V,
8339
8339
  // `<body>`
8340
- marginWidth: $,
8340
+ marginWidth: V,
8341
8341
  // `<body>`
8342
8342
  noResize: te,
8343
8343
  // `<frame>`
@@ -8355,7 +8355,7 @@ const bl = Rt({
8355
8355
  // `<isindex>`
8356
8356
  rev: null,
8357
8357
  // `<link>`
8358
- rightMargin: $,
8358
+ rightMargin: V,
8359
8359
  // `<body>`
8360
8360
  rules: null,
8361
8361
  // `<table>`
@@ -8369,7 +8369,7 @@ const bl = Rt({
8369
8369
  // `<table>`
8370
8370
  text: null,
8371
8371
  // `<body>`. Use CSS `color` instead
8372
- topMargin: $,
8372
+ topMargin: V,
8373
8373
  // `<body>`
8374
8374
  valueType: null,
8375
8375
  // `<param>`
@@ -8379,7 +8379,7 @@ const bl = Rt({
8379
8379
  // Several. Use CSS `vertical-align` instead
8380
8380
  vLink: null,
8381
8381
  // `<body>`. Use CSS `a:visited {color}` instead
8382
- vSpace: $,
8382
+ vSpace: V,
8383
8383
  // `<img>` and `<object>`
8384
8384
  // Non-standard Properties.
8385
8385
  allowTransparency: null,
@@ -8389,7 +8389,7 @@ const bl = Rt({
8389
8389
  disableRemotePlayback: te,
8390
8390
  prefix: null,
8391
8391
  property: null,
8392
- results: $,
8392
+ results: V,
8393
8393
  security: null,
8394
8394
  unselectable: null
8395
8395
  }
@@ -8573,27 +8573,27 @@ const bl = Rt({
8573
8573
  transform: gl,
8574
8574
  properties: {
8575
8575
  about: Me,
8576
- accentHeight: $,
8576
+ accentHeight: V,
8577
8577
  accumulate: null,
8578
8578
  additive: null,
8579
8579
  alignmentBaseline: null,
8580
- alphabetic: $,
8581
- amplitude: $,
8580
+ alphabetic: V,
8581
+ amplitude: V,
8582
8582
  arabicForm: null,
8583
- ascent: $,
8583
+ ascent: V,
8584
8584
  attributeName: null,
8585
8585
  attributeType: null,
8586
- azimuth: $,
8586
+ azimuth: V,
8587
8587
  bandwidth: null,
8588
8588
  baselineShift: null,
8589
8589
  baseFrequency: null,
8590
8590
  baseProfile: null,
8591
8591
  bbox: null,
8592
8592
  begin: null,
8593
- bias: $,
8593
+ bias: V,
8594
8594
  by: null,
8595
8595
  calcMode: null,
8596
- capHeight: $,
8596
+ capHeight: V,
8597
8597
  className: me,
8598
8598
  clip: null,
8599
8599
  clipPath: null,
@@ -8614,26 +8614,26 @@ const bl = Rt({
8614
8614
  d: null,
8615
8615
  dataType: null,
8616
8616
  defaultAction: null,
8617
- descent: $,
8618
- diffuseConstant: $,
8617
+ descent: V,
8618
+ diffuseConstant: V,
8619
8619
  direction: null,
8620
8620
  display: null,
8621
8621
  dur: null,
8622
- divisor: $,
8622
+ divisor: V,
8623
8623
  dominantBaseline: null,
8624
8624
  download: te,
8625
8625
  dx: null,
8626
8626
  dy: null,
8627
8627
  edgeMode: null,
8628
8628
  editable: null,
8629
- elevation: $,
8629
+ elevation: V,
8630
8630
  enableBackground: null,
8631
8631
  end: null,
8632
8632
  event: null,
8633
- exponent: $,
8633
+ exponent: V,
8634
8634
  externalResourcesRequired: null,
8635
8635
  fill: null,
8636
- fillOpacity: $,
8636
+ fillOpacity: V,
8637
8637
  fillRule: null,
8638
8638
  filter: null,
8639
8639
  filterRes: null,
@@ -8663,27 +8663,27 @@ const bl = Rt({
8663
8663
  gradientTransform: null,
8664
8664
  gradientUnits: null,
8665
8665
  handler: null,
8666
- hanging: $,
8666
+ hanging: V,
8667
8667
  hatchContentUnits: null,
8668
8668
  hatchUnits: null,
8669
8669
  height: null,
8670
8670
  href: null,
8671
8671
  hrefLang: null,
8672
- horizAdvX: $,
8673
- horizOriginX: $,
8674
- horizOriginY: $,
8672
+ horizAdvX: V,
8673
+ horizOriginX: V,
8674
+ horizOriginY: V,
8675
8675
  id: null,
8676
- ideographic: $,
8676
+ ideographic: V,
8677
8677
  imageRendering: null,
8678
8678
  initialVisibility: null,
8679
8679
  in: null,
8680
8680
  in2: null,
8681
- intercept: $,
8682
- k: $,
8683
- k1: $,
8684
- k2: $,
8685
- k3: $,
8686
- k4: $,
8681
+ intercept: V,
8682
+ k: V,
8683
+ k1: V,
8684
+ k2: V,
8685
+ k3: V,
8686
+ k4: V,
8687
8687
  kernelMatrix: Me,
8688
8688
  kernelUnitLength: null,
8689
8689
  keyPoints: null,
@@ -8697,7 +8697,7 @@ const bl = Rt({
8697
8697
  lengthAdjust: null,
8698
8698
  letterSpacing: null,
8699
8699
  lightingColor: null,
8700
- limitingConeAngle: $,
8700
+ limitingConeAngle: V,
8701
8701
  local: null,
8702
8702
  markerEnd: null,
8703
8703
  markerMid: null,
@@ -8713,7 +8713,7 @@ const bl = Rt({
8713
8713
  media: null,
8714
8714
  mediaCharacterEncoding: null,
8715
8715
  mediaContentEncodings: null,
8716
- mediaSize: $,
8716
+ mediaSize: V,
8717
8717
  mediaTime: null,
8718
8718
  method: null,
8719
8719
  min: null,
@@ -8819,12 +8819,12 @@ const bl = Rt({
8819
8819
  origin: null,
8820
8820
  overflow: null,
8821
8821
  overlay: null,
8822
- overlinePosition: $,
8823
- overlineThickness: $,
8822
+ overlinePosition: V,
8823
+ overlineThickness: V,
8824
8824
  paintOrder: null,
8825
8825
  panose1: null,
8826
8826
  path: null,
8827
- pathLength: $,
8827
+ pathLength: V,
8828
8828
  patternContentUnits: null,
8829
8829
  patternTransform: null,
8830
8830
  patternUnits: null,
@@ -8834,9 +8834,9 @@ const bl = Rt({
8834
8834
  playbackOrder: null,
8835
8835
  pointerEvents: null,
8836
8836
  points: null,
8837
- pointsAtX: $,
8838
- pointsAtY: $,
8839
- pointsAtZ: $,
8837
+ pointsAtX: V,
8838
+ pointsAtY: V,
8839
+ pointsAtZ: V,
8840
8840
  preserveAlpha: null,
8841
8841
  preserveAspectRatio: null,
8842
8842
  primitiveUnits: null,
@@ -8868,8 +8868,8 @@ const bl = Rt({
8868
8868
  side: null,
8869
8869
  slope: null,
8870
8870
  snapshotTime: null,
8871
- specularConstant: $,
8872
- specularExponent: $,
8871
+ specularConstant: V,
8872
+ specularExponent: V,
8873
8873
  spreadMethod: null,
8874
8874
  spacing: null,
8875
8875
  startOffset: null,
@@ -8879,30 +8879,30 @@ const bl = Rt({
8879
8879
  stitchTiles: null,
8880
8880
  stopColor: null,
8881
8881
  stopOpacity: null,
8882
- strikethroughPosition: $,
8883
- strikethroughThickness: $,
8882
+ strikethroughPosition: V,
8883
+ strikethroughThickness: V,
8884
8884
  string: null,
8885
8885
  stroke: null,
8886
8886
  strokeDashArray: Me,
8887
8887
  strokeDashOffset: null,
8888
8888
  strokeLineCap: null,
8889
8889
  strokeLineJoin: null,
8890
- strokeMiterLimit: $,
8891
- strokeOpacity: $,
8890
+ strokeMiterLimit: V,
8891
+ strokeOpacity: V,
8892
8892
  strokeWidth: null,
8893
8893
  style: null,
8894
- surfaceScale: $,
8894
+ surfaceScale: V,
8895
8895
  syncBehavior: null,
8896
8896
  syncBehaviorDefault: null,
8897
8897
  syncMaster: null,
8898
8898
  syncTolerance: null,
8899
8899
  syncToleranceDefault: null,
8900
8900
  systemLanguage: Me,
8901
- tabIndex: $,
8901
+ tabIndex: V,
8902
8902
  tableValues: null,
8903
8903
  target: null,
8904
- targetX: $,
8905
- targetY: $,
8904
+ targetX: V,
8905
+ targetY: V,
8906
8906
  textAnchor: null,
8907
8907
  textDecoration: null,
8908
8908
  textRendering: null,
@@ -8917,22 +8917,22 @@ const bl = Rt({
8917
8917
  transformOrigin: null,
8918
8918
  u1: null,
8919
8919
  u2: null,
8920
- underlinePosition: $,
8921
- underlineThickness: $,
8920
+ underlinePosition: V,
8921
+ underlineThickness: V,
8922
8922
  unicode: null,
8923
8923
  unicodeBidi: null,
8924
8924
  unicodeRange: null,
8925
- unitsPerEm: $,
8925
+ unitsPerEm: V,
8926
8926
  values: null,
8927
- vAlphabetic: $,
8928
- vMathematical: $,
8927
+ vAlphabetic: V,
8928
+ vMathematical: V,
8929
8929
  vectorEffect: null,
8930
- vHanging: $,
8931
- vIdeographic: $,
8930
+ vHanging: V,
8931
+ vIdeographic: V,
8932
8932
  version: null,
8933
- vertAdvY: $,
8934
- vertOriginX: $,
8935
- vertOriginY: $,
8933
+ vertAdvY: V,
8934
+ vertOriginX: V,
8935
+ vertOriginY: V,
8936
8936
  viewBox: null,
8937
8937
  viewTarget: null,
8938
8938
  visibility: null,
@@ -8944,7 +8944,7 @@ const bl = Rt({
8944
8944
  x1: null,
8945
8945
  x2: null,
8946
8946
  xChannelSelector: null,
8947
- xHeight: $,
8947
+ xHeight: V,
8948
8948
  y: null,
8949
8949
  y1: null,
8950
8950
  y2: null,
@@ -9099,7 +9099,7 @@ function eh() {
9099
9099
  return Ra || (Ra = 1, hr.exports = Qp()), hr.exports;
9100
9100
  }
9101
9101
  var th = eh();
9102
- const nh = /* @__PURE__ */ tt(th);
9102
+ const nh = /* @__PURE__ */ nt(th);
9103
9103
  function rh(e) {
9104
9104
  const t = (
9105
9105
  // @ts-expect-error looks like a node.
@@ -9165,11 +9165,11 @@ function oh() {
9165
9165
  }
9166
9166
  function N(O) {
9167
9167
  var S;
9168
- for (O = O || []; S = U(); )
9168
+ for (O = O || []; S = $(); )
9169
9169
  S !== !1 && O.push(S);
9170
9170
  return O;
9171
9171
  }
9172
- function U() {
9172
+ function $() {
9173
9173
  var O = q();
9174
9174
  if (!(u != h.charAt(0) || c != h.charAt(1))) {
9175
9175
  for (var S = 2; f != h.charAt(S) && (c != h.charAt(S) || u != h.charAt(S + 1)); )
@@ -9186,7 +9186,7 @@ function oh() {
9186
9186
  function D() {
9187
9187
  var O = q(), S = E(r);
9188
9188
  if (S) {
9189
- if (U(), !E(i)) return b("property missing ':'");
9189
+ if ($(), !E(i)) return b("property missing ':'");
9190
9190
  var T = E(a), A = O({
9191
9191
  type: d,
9192
9192
  property: y(S[0].replace(e, f)),
@@ -9225,7 +9225,7 @@ function lh() {
9225
9225
  return mn.exports = t, mn.exports.default = t, mn.exports;
9226
9226
  }
9227
9227
  var sh = lh();
9228
- const uh = /* @__PURE__ */ tt(sh), qr = {}.hasOwnProperty, ch = /* @__PURE__ */ new Set(["table", "thead", "tbody", "tfoot", "tr"]);
9228
+ const uh = /* @__PURE__ */ nt(sh), qr = {}.hasOwnProperty, ch = /* @__PURE__ */ new Set(["table", "thead", "tbody", "tfoot", "tr"]);
9229
9229
  function xl(e, t) {
9230
9230
  const n = [];
9231
9231
  let r = -1, i;
@@ -9245,7 +9245,7 @@ function fh(e, t, n, r) {
9245
9245
  const p = t.position || {
9246
9246
  start: { line: null, column: null, offset: null },
9247
9247
  end: { line: null, column: null, offset: null }
9248
- }, d = i.components && qr.call(i.components, l) ? i.components[l] : l, y = typeof d == "string" || d === Ge.Fragment;
9248
+ }, d = i.components && qr.call(i.components, l) ? i.components[l] : l, y = typeof d == "string" || d === Ze.Fragment;
9249
9249
  if (!nh.isValidElementType(d))
9250
9250
  throw new TypeError(
9251
9251
  `Component for name \`${l}\` not defined or is not renderable`
@@ -9266,7 +9266,7 @@ function fh(e, t, n, r) {
9266
9266
  const h = dh(t);
9267
9267
  s.checked = h && h.properties ? !!h.properties.checked : null, s.index = gr(r, t), s.ordered = r.tagName === "ol";
9268
9268
  }
9269
- 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"] = gh(p)), !y && i.rawSourcePos && (s.sourcePosition = t.position), !y && i.includeElementIndex && (s.index = gr(r, t), s.siblingCount = gr(r)), y || (s.node = t), f.length > 0 ? Ge.createElement(d, s, f) : Ge.createElement(d, s);
9269
+ 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"] = gh(p)), !y && i.rawSourcePos && (s.sourcePosition = t.position), !y && i.includeElementIndex && (s.index = gr(r, t), s.siblingCount = gr(r)), y || (s.node = t), f.length > 0 ? Ze.createElement(d, s, f) : Ze.createElement(d, s);
9270
9270
  }
9271
9271
  function dh(e) {
9272
9272
  let t = -1;
@@ -9356,12 +9356,12 @@ function ui(e) {
9356
9356
  const r = t.runSync(t.parse(n), n);
9357
9357
  if (r.type !== "root")
9358
9358
  throw new TypeError("Expected a `root` node");
9359
- let i = Ge.createElement(
9360
- Ge.Fragment,
9359
+ let i = Ze.createElement(
9360
+ Ze.Fragment,
9361
9361
  {},
9362
9362
  xl({ options: e, schema: Yp, listDepth: 0 }, r)
9363
9363
  );
9364
- return e.className && (i = Ge.createElement("div", { className: e.className }, i)), i;
9364
+ return e.className && (i = Ze.createElement("div", { className: e.className }, i)), i;
9365
9365
  }
9366
9366
  ui.propTypes = {
9367
9367
  // Core options:
@@ -9498,13 +9498,13 @@ function xh() {
9498
9498
  b[W] = T, R = W;
9499
9499
  }
9500
9500
  return !j && R && (I = R), R || !j && I;
9501
- }, U = function(S, T) {
9501
+ }, $ = function(S, T) {
9502
9502
  if (z(S)) return S.clone();
9503
9503
  var A = typeof T == "object" ? T : {};
9504
9504
  return A.date = S, A.args = arguments, new B(A);
9505
9505
  }, D = q;
9506
9506
  D.l = N, D.i = z, D.w = function(S, T) {
9507
- return U(S, { locale: T.$L, utc: T.$u, x: T.$x, $offset: T.$offset });
9507
+ return $(S, { locale: T.$L, utc: T.$u, x: T.$x, $offset: T.$offset });
9508
9508
  };
9509
9509
  var B = function() {
9510
9510
  function S(A) {
@@ -9534,12 +9534,12 @@ function xh() {
9534
9534
  }, T.isValid = function() {
9535
9535
  return this.$d.toString() !== h;
9536
9536
  }, T.isSame = function(A, j) {
9537
- var R = U(A);
9537
+ var R = $(A);
9538
9538
  return this.startOf(j) <= R && R <= this.endOf(j);
9539
9539
  }, T.isAfter = function(A, j) {
9540
- return U(A) < this.startOf(j);
9540
+ return $(A) < this.startOf(j);
9541
9541
  }, T.isBefore = function(A, j) {
9542
- return this.endOf(j) < U(A);
9542
+ return this.endOf(j) < $(A);
9543
9543
  }, T.$g = function(A, j, R) {
9544
9544
  return D.u(A) ? this[j] : this.set(R, A);
9545
9545
  }, T.unix = function() {
@@ -9547,20 +9547,20 @@ function xh() {
9547
9547
  }, T.valueOf = function() {
9548
9548
  return this.$d.getTime();
9549
9549
  }, T.startOf = function(A, j) {
9550
- var R = this, H = !!D.u(j) || j, m = D.p(A), W = function(xe, pe) {
9551
- var Ee = D.w(R.$u ? Date.UTC(R.$y, pe, xe) : new Date(R.$y, pe, xe), R);
9550
+ var R = this, H = !!D.u(j) || j, m = D.p(A), W = function(ve, pe) {
9551
+ var Ee = D.w(R.$u ? Date.UTC(R.$y, pe, ve) : new Date(R.$y, pe, ve), R);
9552
9552
  return H ? Ee : Ee.endOf(u);
9553
- }, J = function(xe, pe) {
9554
- return D.w(R.toDate()[xe].apply(R.toDate("s"), (H ? [0, 0, 0, 0] : [23, 59, 59, 999]).slice(pe)), R);
9555
- }, x = this.$W, Z = this.$M, ie = this.$D, ne = "set" + (this.$u ? "UTC" : "");
9553
+ }, J = function(ve, pe) {
9554
+ return D.w(R.toDate()[ve].apply(R.toDate("s"), (H ? [0, 0, 0, 0] : [23, 59, 59, 999]).slice(pe)), R);
9555
+ }, x = this.$W, X = this.$M, ie = this.$D, ne = "set" + (this.$u ? "UTC" : "");
9556
9556
  switch (m) {
9557
9557
  case d:
9558
9558
  return H ? W(1, 0) : W(31, 11);
9559
9559
  case f:
9560
- return H ? W(1, Z) : W(0, Z + 1);
9560
+ return H ? W(1, X) : W(0, X + 1);
9561
9561
  case c:
9562
9562
  var fe = this.$locale().weekStart || 0, de = (x < fe ? x + 7 : x) - fe;
9563
- return W(H ? ie - de : ie + (6 - de), Z);
9563
+ return W(H ? ie - de : ie + (6 - de), X);
9564
9564
  case u:
9565
9565
  case y:
9566
9566
  return J(ne + "Hours", 0);
@@ -9589,9 +9589,9 @@ function xh() {
9589
9589
  }, T.add = function(A, j) {
9590
9590
  var R, H = this;
9591
9591
  A = Number(A);
9592
- var m = D.p(j), W = function(Z) {
9593
- var ie = U(H);
9594
- return D.w(ie.date(ie.date() + Math.round(Z * A)), H);
9592
+ var m = D.p(j), W = function(X) {
9593
+ var ie = $(H);
9594
+ return D.w(ie.date(ie.date() + Math.round(X * A)), H);
9595
9595
  };
9596
9596
  if (m === f) return this.set(f, this.$M + A);
9597
9597
  if (m === d) return this.set(d, this.$y + A);
@@ -9604,17 +9604,17 @@ function xh() {
9604
9604
  }, T.format = function(A) {
9605
9605
  var j = this, R = this.$locale();
9606
9606
  if (!this.isValid()) return R.invalidDate || h;
9607
- var H = A || "YYYY-MM-DDTHH:mm:ssZ", m = D.z(this), W = this.$H, J = this.$m, x = this.$M, Z = R.weekdays, ie = R.months, ne = R.meridiem, fe = function(pe, Ee, Pe, Xe) {
9608
- return pe && (pe[Ee] || pe(j, H)) || Pe[Ee].slice(0, Xe);
9607
+ var H = A || "YYYY-MM-DDTHH:mm:ssZ", m = D.z(this), W = this.$H, J = this.$m, x = this.$M, X = R.weekdays, ie = R.months, ne = R.meridiem, fe = function(pe, Ee, Ne, $e) {
9608
+ return pe && (pe[Ee] || pe(j, H)) || Ne[Ee].slice(0, $e);
9609
9609
  }, de = function(pe) {
9610
9610
  return D.s(W % 12 || 12, pe, "0");
9611
- }, xe = ne || function(pe, Ee, Pe) {
9612
- var Xe = pe < 12 ? "AM" : "PM";
9613
- return Pe ? Xe.toLowerCase() : Xe;
9611
+ }, ve = ne || function(pe, Ee, Ne) {
9612
+ var $e = pe < 12 ? "AM" : "PM";
9613
+ return Ne ? $e.toLowerCase() : $e;
9614
9614
  };
9615
9615
  return H.replace(g, function(pe, Ee) {
9616
- return Ee || function(Pe) {
9617
- switch (Pe) {
9616
+ return Ee || function(Ne) {
9617
+ switch (Ne) {
9618
9618
  case "YY":
9619
9619
  return String(j.$y).slice(-2);
9620
9620
  case "YYYY":
@@ -9634,11 +9634,11 @@ function xh() {
9634
9634
  case "d":
9635
9635
  return String(j.$W);
9636
9636
  case "dd":
9637
- return fe(R.weekdaysMin, j.$W, Z, 2);
9637
+ return fe(R.weekdaysMin, j.$W, X, 2);
9638
9638
  case "ddd":
9639
- return fe(R.weekdaysShort, j.$W, Z, 3);
9639
+ return fe(R.weekdaysShort, j.$W, X, 3);
9640
9640
  case "dddd":
9641
- return Z[j.$W];
9641
+ return X[j.$W];
9642
9642
  case "H":
9643
9643
  return String(W);
9644
9644
  case "HH":
@@ -9648,9 +9648,9 @@ function xh() {
9648
9648
  case "hh":
9649
9649
  return de(2);
9650
9650
  case "a":
9651
- return xe(W, J, !0);
9651
+ return ve(W, J, !0);
9652
9652
  case "A":
9653
- return xe(W, J, !1);
9653
+ return ve(W, J, !1);
9654
9654
  case "m":
9655
9655
  return String(J);
9656
9656
  case "mm":
@@ -9670,7 +9670,7 @@ function xh() {
9670
9670
  }, T.utcOffset = function() {
9671
9671
  return 15 * -Math.round(this.$d.getTimezoneOffset() / 15);
9672
9672
  }, T.diff = function(A, j, R) {
9673
- var H, m = this, W = D.p(j), J = U(A), x = (J.utcOffset() - this.utcOffset()) * r, Z = this - J, ie = function() {
9673
+ var H, m = this, W = D.p(j), J = $(A), x = (J.utcOffset() - this.utcOffset()) * r, X = this - J, ie = function() {
9674
9674
  return D.m(m, J);
9675
9675
  };
9676
9676
  switch (W) {
@@ -9684,22 +9684,22 @@ function xh() {
9684
9684
  H = ie() / 3;
9685
9685
  break;
9686
9686
  case c:
9687
- H = (Z - x) / 6048e5;
9687
+ H = (X - x) / 6048e5;
9688
9688
  break;
9689
9689
  case u:
9690
- H = (Z - x) / 864e5;
9690
+ H = (X - x) / 864e5;
9691
9691
  break;
9692
9692
  case s:
9693
- H = Z / i;
9693
+ H = X / i;
9694
9694
  break;
9695
9695
  case l:
9696
- H = Z / r;
9696
+ H = X / r;
9697
9697
  break;
9698
9698
  case o:
9699
- H = Z / n;
9699
+ H = X / n;
9700
9700
  break;
9701
9701
  default:
9702
- H = Z;
9702
+ H = X;
9703
9703
  }
9704
9704
  return R ? H : D.a(H);
9705
9705
  }, T.daysInMonth = function() {
@@ -9722,20 +9722,20 @@ function xh() {
9722
9722
  return this.$d.toUTCString();
9723
9723
  }, S;
9724
9724
  }(), O = B.prototype;
9725
- return U.prototype = O, [["$ms", a], ["$s", o], ["$m", l], ["$H", s], ["$W", u], ["$M", f], ["$y", d], ["$D", y]].forEach(function(S) {
9725
+ return $.prototype = O, [["$ms", a], ["$s", o], ["$m", l], ["$H", s], ["$W", u], ["$M", f], ["$y", d], ["$D", y]].forEach(function(S) {
9726
9726
  O[S[1]] = function(T) {
9727
9727
  return this.$g(T, S[0], S[1]);
9728
9728
  };
9729
- }), U.extend = function(S, T) {
9730
- return S.$i || (S(T, B, U), S.$i = !0), U;
9731
- }, U.locale = N, U.isDayjs = z, U.unix = function(S) {
9732
- return U(1e3 * S);
9733
- }, U.en = b[I], U.Ls = b, U.p = {}, U;
9729
+ }), $.extend = function(S, T) {
9730
+ return S.$i || (S(T, B, $), S.$i = !0), $;
9731
+ }, $.locale = N, $.isDayjs = z, $.unix = function(S) {
9732
+ return $(1e3 * S);
9733
+ }, $.en = b[I], $.Ls = b, $.p = {}, $;
9734
9734
  });
9735
9735
  }(Cn)), Cn.exports;
9736
9736
  }
9737
9737
  var wh = xh();
9738
- const Ch = /* @__PURE__ */ tt(wh), kh = (e) => {
9738
+ const Ch = /* @__PURE__ */ nt(wh), kh = (e) => {
9739
9739
  Array.from(e.entries()).forEach((n) => {
9740
9740
  const r = n[0], i = n[1];
9741
9741
  r.toLocaleLowerCase().startsWith("utm_") && e.delete(r, i);
@@ -9919,7 +9919,7 @@ function ci({ message: e }) {
9919
9919
  {
9920
9920
  className: "notification-container__icon-container",
9921
9921
  style: { color: r },
9922
- children: /* @__PURE__ */ C.jsx(Qe, { icon: `material-symbols:${n}`, alt: "Notification icon" })
9922
+ children: /* @__PURE__ */ C.jsx(et, { icon: `material-symbols:${n}`, alt: "Notification icon" })
9923
9923
  }
9924
9924
  ),
9925
9925
  /* @__PURE__ */ C.jsx("p", { children: t })
@@ -9936,7 +9936,7 @@ ci.propTypes = {
9936
9936
  ci.displayName = "NotificationMessage";
9937
9937
  const Oh = () => {
9938
9938
  const e = ze(null);
9939
- return Ce(() => {
9939
+ return ke(() => {
9940
9940
  var t;
9941
9941
  (t = e.current) == null || t.scrollIntoView({
9942
9942
  behavior: "instant"
@@ -9959,7 +9959,7 @@ const Oh = () => {
9959
9959
  ref: e,
9960
9960
  children: [
9961
9961
  /* @__PURE__ */ C.jsx(
9962
- Qe,
9962
+ et,
9963
9963
  {
9964
9964
  icon: "material-symbols:thunderstorm",
9965
9965
  style: {
@@ -10000,7 +10000,7 @@ const Oh = () => {
10000
10000
  };
10001
10001
  function wl({ disableScroll: e }) {
10002
10002
  const t = ze(null);
10003
- return Ce(() => {
10003
+ return ke(() => {
10004
10004
  var n;
10005
10005
  e || (n = t.current) == null || n.scrollIntoView({
10006
10006
  behavior: "smooth",
@@ -10035,7 +10035,7 @@ const on = ({
10035
10035
  submitEvent: o
10036
10036
  }) => {
10037
10037
  const { disableScroll: l, hasError: s } = Q(Ie), u = ze(null);
10038
- return Ce(() => {
10038
+ return ke(() => {
10039
10039
  var c;
10040
10040
  (c = u.current) == null || c.scrollIntoView({
10041
10041
  behavior: "instant",
@@ -10133,7 +10133,7 @@ const Cl = () => {
10133
10133
  children: [
10134
10134
  /* @__PURE__ */ C.jsxs("div", { className: "xpert-chatbot-popup__chatbot-maintenance-banner__header", children: [
10135
10135
  /* @__PURE__ */ C.jsx(
10136
- Qe,
10136
+ et,
10137
10137
  {
10138
10138
  icon: "material-symbols:warning",
10139
10139
  style: { fontSize: "1.5rem" },
@@ -10148,7 +10148,7 @@ const Cl = () => {
10148
10148
  "aria-label": "Close maintenance banner",
10149
10149
  onClick: l,
10150
10150
  children: /* @__PURE__ */ C.jsx(
10151
- Qe,
10151
+ et,
10152
10152
  {
10153
10153
  icon: "material-symbols:close",
10154
10154
  alt: "Close Xpert dialog",
@@ -10166,7 +10166,7 @@ const Cl = () => {
10166
10166
  Cl.displayName = "MaintenanceBanner";
10167
10167
  const fi = ({ loading: e, onPromptClick: t }) => {
10168
10168
  var a;
10169
- const { primaryColor: n, conversationScreen: r } = Q(Se), { deleteConversationModal: i } = Q(wt);
10169
+ const { primaryColor: n, conversationScreen: r } = Q(Se), { deleteConversationModal: i } = Q(xt);
10170
10170
  return /* @__PURE__ */ C.jsxs("div", { style: { display: "grid", gap: ".75rem" }, children: [
10171
10171
  /* @__PURE__ */ C.jsx("div", { style: { fontWeight: 700, fontSize: "0.75rem" }, children: "Some things I can help you with" }),
10172
10172
  (a = r == null ? void 0 : r.prompts) == null ? void 0 : a.map((o) => {
@@ -10208,8 +10208,8 @@ function di({
10208
10208
  userInput: s
10209
10209
  }) {
10210
10210
  var h, w;
10211
- const { conversationScreen: u } = Q(Se), { deleteConversationModal: c, xpertMessages: f } = Q(wt), { loading: p, setMode: d } = Q(Ie), y = (g) => {
10212
- u.liveChat.useOwnChat ? d(ft.LIVECHAT) : o(g);
10211
+ const { conversationScreen: u } = Q(Se), { deleteConversationModal: c, xpertMessages: f } = Q(xt), { loading: p, setMode: d } = Q(Ie), y = (g) => {
10212
+ u.liveChat.useOwnChat ? d(ct.LIVECHAT) : o(g);
10213
10213
  };
10214
10214
  return /* @__PURE__ */ C.jsxs(C.Fragment, { children: [
10215
10215
  /* @__PURE__ */ C.jsxs(
@@ -10306,8 +10306,8 @@ di.defaultProps = {
10306
10306
  submitEvent: null,
10307
10307
  userInput: ""
10308
10308
  };
10309
- var yr = {}, it = {}, br = {}, Ua;
10310
- function nt() {
10309
+ var yr = {}, at = {}, br = {}, Ua;
10310
+ function rt() {
10311
10311
  return Ua || (Ua = 1, function(e) {
10312
10312
  Object.defineProperty(e, "__esModule", { value: !0 }), e.isEventSourceSupported = e.isReactNative = e.ReadyState = e.DEFAULT_HEARTBEAT = e.UNPARSABLE_JSON_OBJECT = e.DEFAULT_RECONNECT_INTERVAL_MS = e.DEFAULT_RECONNECT_LIMIT = e.SOCKET_IO_PING_CODE = e.SOCKET_IO_PATH = e.SOCKET_IO_PING_INTERVAL = e.DEFAULT_EVENT_SOURCE_OPTIONS = e.EMPTY_EVENT_HANDLERS = e.DEFAULT_OPTIONS = void 0;
10313
10313
  var t = 1, n = 1e3 * t;
@@ -10347,11 +10347,11 @@ function pi() {
10347
10347
  e.resetWebSockets = t;
10348
10348
  }(vr)), vr;
10349
10349
  }
10350
- var At = {}, at = {}, Va;
10350
+ var At = {}, ot = {}, Va;
10351
10351
  function hi() {
10352
- if (Va) return at;
10353
- Va = 1, Object.defineProperty(at, "__esModule", { value: !0 }), at.setUpSocketIOPing = at.appendQueryParams = at.parseSocketIOUrl = void 0;
10354
- var e = nt(), t = function(i) {
10352
+ if (Va) return ot;
10353
+ Va = 1, Object.defineProperty(ot, "__esModule", { value: !0 }), ot.setUpSocketIOPing = ot.appendQueryParams = ot.parseSocketIOUrl = void 0;
10354
+ var e = rt(), t = function(i) {
10355
10355
  if (i) {
10356
10356
  var a = /^https|wss/.test(i), o = i.replace(/^(https?|wss?)(:\/\/)?/, ""), l = o.replace(/\/$/, ""), s = a ? "wss" : "ws";
10357
10357
  return "".concat(s, "://").concat(l).concat(e.SOCKET_IO_PATH);
@@ -10361,7 +10361,7 @@ function hi() {
10361
10361
  }
10362
10362
  return i;
10363
10363
  };
10364
- at.parseSocketIOUrl = t;
10364
+ ot.parseSocketIOUrl = t;
10365
10365
  var n = function(i, a) {
10366
10366
  a === void 0 && (a = {});
10367
10367
  var o = /\?([\w]+=[\w]+)/, l = o.test(i), s = "".concat(Object.entries(a).reduce(function(u, c) {
@@ -10370,7 +10370,7 @@ function hi() {
10370
10370
  }, "").slice(0, -1));
10371
10371
  return "".concat(i).concat(l ? "&" : "?").concat(s);
10372
10372
  };
10373
- at.appendQueryParams = n;
10373
+ ot.appendQueryParams = n;
10374
10374
  var r = function(i, a) {
10375
10375
  a === void 0 && (a = e.SOCKET_IO_PING_INTERVAL);
10376
10376
  var o = function() {
@@ -10378,13 +10378,13 @@ function hi() {
10378
10378
  };
10379
10379
  return window.setInterval(o, a);
10380
10380
  };
10381
- return at.setUpSocketIOPing = r, at;
10381
+ return ot.setUpSocketIOPing = r, ot;
10382
10382
  }
10383
10383
  var yn = {}, Wa;
10384
10384
  function kl() {
10385
10385
  if (Wa) return yn;
10386
10386
  Wa = 1, Object.defineProperty(yn, "__esModule", { value: !0 }), yn.heartbeat = t;
10387
- var e = nt();
10387
+ var e = rt();
10388
10388
  function t(n, r, i) {
10389
10389
  var a = i || {}, o = a.interval, l = o === void 0 ? e.DEFAULT_HEARTBEAT.interval : o, s = a.timeout, u = s === void 0 ? e.DEFAULT_HEARTBEAT.timeout : s, c = a.message, f = c === void 0 ? e.DEFAULT_HEARTBEAT.message : c, p = setInterval(function() {
10390
10390
  if (r.current + u <= Date.now())
@@ -10462,7 +10462,7 @@ function Ih() {
10462
10462
  }, e.apply(this, arguments);
10463
10463
  };
10464
10464
  Object.defineProperty(At, "__esModule", { value: !0 }), At.attachListeners = void 0;
10465
- var t = hi(), n = kl(), r = nt(), i = gi(), a = function(c, f, p, d) {
10465
+ var t = hi(), n = kl(), r = rt(), i = gi(), a = function(c, f, p, d) {
10466
10466
  c.onmessage = function(y) {
10467
10467
  var h;
10468
10468
  f.current.onMessage && f.current.onMessage(y), typeof (d == null ? void 0 : d.current) == "number" && (d.current = Date.now()), !(typeof f.current.filter == "function" && f.current.filter(y) !== !0) && (f.current.heartbeat && typeof f.current.heartbeat != "boolean" && ((h = f.current.heartbeat) === null || h === void 0 ? void 0 : h.returnMessage) === y.data || p(y));
@@ -10532,7 +10532,7 @@ function Ph() {
10532
10532
  }, e.apply(this, arguments);
10533
10533
  };
10534
10534
  Object.defineProperty(Ft, "__esModule", { value: !0 }), Ft.attachSharedListeners = void 0;
10535
- var t = pi(), n = nt(), r = mi(), i = hi(), a = kl(), o = function(f, p, d) {
10535
+ var t = pi(), n = rt(), r = mi(), i = hi(), a = kl(), o = function(f, p, d) {
10536
10536
  f.onmessage = function(y) {
10537
10537
  (0, r.getSubscribers)(p).forEach(function(h) {
10538
10538
  var w;
@@ -10581,7 +10581,7 @@ var Ka;
10581
10581
  function Ah() {
10582
10582
  if (Ka) return Wt;
10583
10583
  Ka = 1, Object.defineProperty(Wt, "__esModule", { value: !0 }), Wt.createOrJoinSocket = void 0;
10584
- var e = pi(), t = nt(), n = Ih(), r = Ph(), i = mi(), a = function(l, s, u, c, f) {
10584
+ var e = pi(), t = rt(), n = Ih(), r = Ph(), i = mi(), a = function(l, s, u, c, f) {
10585
10585
  return function() {
10586
10586
  if ((0, i.removeSubscriber)(l, s), !(0, i.hasSubscribers)(l)) {
10587
10587
  try {
@@ -10714,7 +10714,7 @@ function Fh() {
10714
10714
  return s.concat(d || Array.prototype.slice.call(u));
10715
10715
  };
10716
10716
  Object.defineProperty(e, "__esModule", { value: !0 }), e.getUrl = void 0;
10717
- var i = hi(), a = nt(), o = function(s) {
10717
+ var i = hi(), a = rt(), o = function(s) {
10718
10718
  return new Promise(function(u) {
10719
10719
  return window.setTimeout(u, s);
10720
10720
  });
@@ -10778,9 +10778,9 @@ function Lh() {
10778
10778
  }
10779
10779
  var eo;
10780
10780
  function yi() {
10781
- if (eo) return it;
10781
+ if (eo) return at;
10782
10782
  eo = 1;
10783
- var e = it.__assign || function() {
10783
+ var e = at.__assign || function() {
10784
10784
  return e = Object.assign || function(p) {
10785
10785
  for (var d, y = 1, h = arguments.length; y < h; y++) {
10786
10786
  d = arguments[y];
@@ -10788,7 +10788,7 @@ function yi() {
10788
10788
  }
10789
10789
  return p;
10790
10790
  }, e.apply(this, arguments);
10791
- }, t = it.__awaiter || function(p, d, y, h) {
10791
+ }, t = at.__awaiter || function(p, d, y, h) {
10792
10792
  function w(g) {
10793
10793
  return g instanceof y ? g : new y(function(P) {
10794
10794
  P(g);
@@ -10814,7 +10814,7 @@ function yi() {
10814
10814
  }
10815
10815
  I((h = h.apply(p, d || [])).next());
10816
10816
  });
10817
- }, n = it.__generator || function(p, d) {
10817
+ }, n = at.__generator || function(p, d) {
10818
10818
  var y = { label: 0, sent: function() {
10819
10819
  if (g[0] & 1) throw g[1];
10820
10820
  return g[1];
@@ -10873,11 +10873,11 @@ function yi() {
10873
10873
  if (I[0] & 5) throw I[1];
10874
10874
  return { value: I[0] ? I[1] : void 0, done: !0 };
10875
10875
  }
10876
- }, r = it.__importDefault || function(p) {
10876
+ }, r = at.__importDefault || function(p) {
10877
10877
  return p && p.__esModule ? p : { default: p };
10878
10878
  };
10879
- Object.defineProperty(it, "__esModule", { value: !0 }), it.useWebSocket = void 0;
10880
- var i = Ge, a = Hs, o = nt(), l = Ah(), s = Fh(), u = r(Lh()), c = gi(), f = function(p, d, y) {
10879
+ Object.defineProperty(at, "__esModule", { value: !0 }), at.useWebSocket = void 0;
10880
+ var i = Ze, a = Hs, o = rt(), l = Ah(), s = Fh(), u = r(Lh()), c = gi(), f = function(p, d, y) {
10881
10881
  d === void 0 && (d = o.DEFAULT_OPTIONS), y === void 0 && (y = !0);
10882
10882
  var h = (0, i.useState)(null), w = h[0], g = h[1], P = (0, i.useState)({}), L = P[0], q = P[1], I = (0, i.useMemo)(function() {
10883
10883
  if (w)
@@ -10888,7 +10888,7 @@ function yi() {
10888
10888
  }
10889
10889
  return null;
10890
10890
  }, [w]), b = (0, i.useRef)(null), E = (0, i.useRef)(null), z = (0, i.useRef)(function() {
10891
- }), N = (0, i.useRef)(0), U = (0, i.useRef)(Date.now()), D = (0, i.useRef)([]), B = (0, i.useRef)(null), O = (0, i.useRef)(d);
10891
+ }), N = (0, i.useRef)(0), $ = (0, i.useRef)(Date.now()), D = (0, i.useRef)([]), B = (0, i.useRef)(null), O = (0, i.useRef)(d);
10892
10892
  O.current = d;
10893
10893
  var S = b.current && L[b.current] !== void 0 ? L[b.current] : p !== null && y === !0 ? o.ReadyState.CONNECTING : o.ReadyState.UNINSTANTIATED, T = d.queryParams ? JSON.stringify(d.queryParams) : null, A = (0, i.useCallback)(function(H, m) {
10894
10894
  var W;
@@ -10906,7 +10906,7 @@ function yi() {
10906
10906
  if (p !== null && y === !0) {
10907
10907
  var H, m = !1, W = !0, J = function() {
10908
10908
  return t(void 0, void 0, void 0, function() {
10909
- var x, Z, ie;
10909
+ var x, X, ie;
10910
10910
  return n(this, function(ne) {
10911
10911
  switch (ne.label) {
10912
10912
  case 0:
@@ -10919,18 +10919,18 @@ function yi() {
10919
10919
  }), [
10920
10920
  2
10921
10921
  /*return*/
10922
- ]) : (Z = function(fe) {
10922
+ ]) : (X = function(fe) {
10923
10923
  m || (0, a.flushSync)(function() {
10924
10924
  return g(fe);
10925
10925
  });
10926
10926
  }, ie = function(fe) {
10927
10927
  m || (0, a.flushSync)(function() {
10928
10928
  return q(function(de) {
10929
- var xe;
10930
- return e(e({}, de), b.current && (xe = {}, xe[b.current] = fe, xe));
10929
+ var ve;
10930
+ return e(e({}, de), b.current && (ve = {}, ve[b.current] = fe, ve));
10931
10931
  });
10932
10932
  });
10933
- }, W && (H = (0, l.createOrJoinSocket)(E, b.current, ie, O, Z, z, N, U, A)), [
10933
+ }, W && (H = (0, l.createOrJoinSocket)(E, b.current, ie, O, X, z, N, $, A)), [
10934
10934
  2
10935
10935
  /*return*/
10936
10936
  ]);
@@ -10944,8 +10944,8 @@ function yi() {
10944
10944
  m = !0, W = !1, B.current && (B.current = null), H == null || H(), g(null);
10945
10945
  };
10946
10946
  } else (p === null || y === !1) && (N.current = 0, q(function(x) {
10947
- var Z;
10948
- return e(e({}, x), b.current && (Z = {}, Z[b.current] = o.ReadyState.CLOSED, Z));
10947
+ var X;
10948
+ return e(e({}, x), b.current && (X = {}, X[b.current] = o.ReadyState.CLOSED, X));
10949
10949
  }));
10950
10950
  }, [p, y, T, A]), (0, i.useEffect)(function() {
10951
10951
  S === o.ReadyState.OPEN && D.current.splice(0).forEach(function(H) {
@@ -10960,7 +10960,7 @@ function yi() {
10960
10960
  getWebSocket: R
10961
10961
  };
10962
10962
  };
10963
- return it.useWebSocket = f, it;
10963
+ return at.useWebSocket = f, at;
10964
10964
  }
10965
10965
  var Nt = {}, to;
10966
10966
  function Nh() {
@@ -10976,7 +10976,7 @@ function Nh() {
10976
10976
  }, e.apply(this, arguments);
10977
10977
  };
10978
10978
  Object.defineProperty(Nt, "__esModule", { value: !0 }), Nt.useSocketIO = void 0;
10979
- var t = Ge, n = yi(), r = nt(), i = {
10979
+ var t = Ze, n = yi(), r = rt(), i = {
10980
10980
  type: "empty",
10981
10981
  payload: null
10982
10982
  }, a = function(l) {
@@ -11008,11 +11008,11 @@ function Nh() {
11008
11008
  };
11009
11009
  return Nt.useSocketIO = o, Nt;
11010
11010
  }
11011
- var yt = {}, no;
11011
+ var mt = {}, no;
11012
11012
  function jh() {
11013
- if (no) return yt;
11013
+ if (no) return mt;
11014
11014
  no = 1;
11015
- var e = yt.__assign || function() {
11015
+ var e = mt.__assign || function() {
11016
11016
  return e = Object.assign || function(o) {
11017
11017
  for (var l, s = 1, u = arguments.length; s < u; s++) {
11018
11018
  l = arguments[s];
@@ -11020,7 +11020,7 @@ function jh() {
11020
11020
  }
11021
11021
  return o;
11022
11022
  }, e.apply(this, arguments);
11023
- }, t = yt.__rest || function(o, l) {
11023
+ }, t = mt.__rest || function(o, l) {
11024
11024
  var s = {};
11025
11025
  for (var u in o) Object.prototype.hasOwnProperty.call(o, u) && l.indexOf(u) < 0 && (s[u] = o[u]);
11026
11026
  if (o != null && typeof Object.getOwnPropertySymbols == "function")
@@ -11028,8 +11028,8 @@ function jh() {
11028
11028
  l.indexOf(u[c]) < 0 && Object.prototype.propertyIsEnumerable.call(o, u[c]) && (s[u[c]] = o[u[c]]);
11029
11029
  return s;
11030
11030
  };
11031
- Object.defineProperty(yt, "__esModule", { value: !0 }), yt.useEventSource = void 0;
11032
- var n = Ge, r = yi(), i = nt(), a = function(o, l, s) {
11031
+ Object.defineProperty(mt, "__esModule", { value: !0 }), mt.useEventSource = void 0;
11032
+ var n = Ze, r = yi(), i = rt(), a = function(o, l, s) {
11033
11033
  l === void 0 && (l = i.DEFAULT_EVENT_SOURCE_OPTIONS);
11034
11034
  var u = l.withCredentials, c = l.events, f = t(l, ["withCredentials", "events"]);
11035
11035
  s === void 0 && (s = !0);
@@ -11049,7 +11049,7 @@ function jh() {
11049
11049
  getEventSource: g
11050
11050
  };
11051
11051
  };
11052
- return yt.useEventSource = a, yt;
11052
+ return mt.useEventSource = a, mt;
11053
11053
  }
11054
11054
  var ro;
11055
11055
  function Dh() {
@@ -11063,7 +11063,7 @@ function Dh() {
11063
11063
  Object.defineProperty(e, "useSocketIO", { enumerable: !0, get: function() {
11064
11064
  return n.useSocketIO;
11065
11065
  } });
11066
- var r = nt();
11066
+ var r = rt();
11067
11067
  Object.defineProperty(e, "ReadyState", { enumerable: !0, get: function() {
11068
11068
  return r.ReadyState;
11069
11069
  } });
@@ -11078,7 +11078,7 @@ function Dh() {
11078
11078
  }(yr)), yr;
11079
11079
  }
11080
11080
  var Mh = Dh();
11081
- const Rh = /* @__PURE__ */ tt(Mh);
11081
+ const Rh = /* @__PURE__ */ nt(Mh);
11082
11082
  async function Bh(e) {
11083
11083
  const t = await new Blob([e], { type: "application/json" });
11084
11084
  return new Promise((n, r) => {
@@ -11093,18 +11093,18 @@ async function Bh(e) {
11093
11093
  }, i.readAsText(t);
11094
11094
  });
11095
11095
  }
11096
- const Hh = "This conversation with a live agent has ended. Please note that a transcript of this chat will be emailed to you. Feel free to continue chatting with Xpert.", ot = {
11096
+ const Hh = "This conversation with a live agent has ended. Please note that a transcript of this chat will be emailed to you. Feel free to continue chatting with Xpert.", lt = {
11097
11097
  CONNECTING: "CONNECTING",
11098
11098
  CONVERSATION: "CONVERSATION",
11099
11099
  FORM: "FORM"
11100
- }, kt = An({}), Sl = ({ children: e }) => {
11101
- const { conversationScreen: t } = Q(Se), { pushXpertMessage: n } = Q(wt), { setHasError: r, setMode: i } = Q(Ie), [a, o] = ee(""), [l, s] = ee(!1), [, u] = ee(""), [c, f] = ee([]), [p, d] = ee(null), [y, h] = ee(ot.FORM), [w, g] = ee(null), P = (j) => f((R) => [...R, j]), L = async (j) => {
11100
+ }, Ct = An({}), Sl = ({ children: e }) => {
11101
+ const { conversationScreen: t } = Q(Se), { pushXpertMessage: n } = Q(xt), { setHasError: r, setMode: i } = Q(Ie), [a, o] = ee(""), [l, s] = ee(!1), [, u] = ee(""), [c, f] = ee([]), [p, d] = ee(null), [y, h] = ee(lt.FORM), [w, g] = ee(null), P = (j) => f((R) => [...R, j]), L = async (j) => {
11102
11102
  const R = await Bh(j.data), { conversation_id: H, event_type: m, body: W } = R;
11103
11103
  switch (m) {
11104
11104
  case "AGENT_TYPING":
11105
11105
  return N();
11106
11106
  case "CONVERSATION_ACCEPTED":
11107
- return U(W);
11107
+ return $(W);
11108
11108
  case "CONVERSATION_CREATED":
11109
11109
  return u(H);
11110
11110
  case "CONVERSATION_ERROR":
@@ -11127,7 +11127,7 @@ const Hh = "This conversation with a live agent has ended. Please note that a tr
11127
11127
  }, { sendJsonMessage: q } = Rh(p, {
11128
11128
  onMessage: L
11129
11129
  }), I = () => {
11130
- h(ot.FORM);
11130
+ h(lt.FORM);
11131
11131
  }, b = () => {
11132
11132
  q({
11133
11133
  action: "sendmessage",
@@ -11139,16 +11139,16 @@ const Hh = "This conversation with a live agent has ended. Please note that a tr
11139
11139
  role: "info"
11140
11140
  }), z();
11141
11141
  }, z = () => {
11142
- u(""), d(null), h(ot.FORM), i(ft.XPERT);
11142
+ u(""), d(null), h(lt.FORM), i(ct.XPERT);
11143
11143
  }, N = () => {
11144
11144
  w && clearTimeout(w), s(!0);
11145
11145
  const j = setTimeout(() => {
11146
11146
  s(!1);
11147
11147
  }, 5e3);
11148
11148
  g(j);
11149
- }, U = (j) => {
11149
+ }, $ = (j) => {
11150
11150
  const { displayName: R } = j;
11151
- f([]), o(R ?? "An agent"), h(ot.CONVERSATION);
11151
+ f([]), o(R ?? "An agent"), h(lt.CONVERSATION);
11152
11152
  }, D = (j) => {
11153
11153
  const { messageId: R, text: H, timestamp: m } = j;
11154
11154
  P({
@@ -11197,7 +11197,7 @@ const Hh = "This conversation with a live agent has ended. Please note that a tr
11197
11197
  startLiveChat: (j) => {
11198
11198
  var R;
11199
11199
  try {
11200
- h(ot.CONNECTING);
11200
+ h(lt.CONNECTING);
11201
11201
  const H = new URLSearchParams(j);
11202
11202
  H.append("url", window.location.href), d(
11203
11203
  `${(R = t == null ? void 0 : t.liveChat) == null ? void 0 : R.socketUrl}?${H.toString()}`
@@ -11216,7 +11216,7 @@ const Hh = "This conversation with a live agent has ended. Please note that a tr
11216
11216
  },
11217
11217
  terminateConversation: b
11218
11218
  };
11219
- return /* @__PURE__ */ C.jsx(kt.Provider, { value: A, children: e });
11219
+ return /* @__PURE__ */ C.jsx(Ct.Provider, { value: A, children: e });
11220
11220
  };
11221
11221
  Sl.propTypes = {
11222
11222
  children: k.element.isRequired
@@ -11280,7 +11280,7 @@ function El({
11280
11280
  isMounted: r
11281
11281
  }) {
11282
11282
  var u;
11283
- const { conversationScreen: i } = Q(Se), { mode: a } = Q(Ie), { setDeleteConversationModal: o, xpertMessages: l } = Q(wt), s = a === ft.XPERT && ((u = i == null ? void 0 : i.conversationHistory) == null ? void 0 : u.allowDeletion) && !!(l != null && l.length);
11283
+ const { conversationScreen: i } = Q(Se), { mode: a } = Q(Ie), { setDeleteConversationModal: o, xpertMessages: l } = Q(xt), s = a === ct.XPERT && ((u = i == null ? void 0 : i.conversationHistory) == null ? void 0 : u.allowDeletion) && !!(l != null && l.length);
11284
11284
  return /* @__PURE__ */ C.jsxs(C.Fragment, { children: [
11285
11285
  s && /* @__PURE__ */ C.jsx(
11286
11286
  "button",
@@ -11293,7 +11293,7 @@ function El({
11293
11293
  title: "Delete conversation history",
11294
11294
  onClick: () => o(!0),
11295
11295
  children: /* @__PURE__ */ C.jsx(
11296
- Qe,
11296
+ et,
11297
11297
  {
11298
11298
  icon: "material-symbols:delete-outline",
11299
11299
  alt: "Delete conversation history",
@@ -11331,7 +11331,7 @@ function El({
11331
11331
  title: "Close Xpert dialog",
11332
11332
  onClick: n,
11333
11333
  children: /* @__PURE__ */ C.jsx(
11334
- Qe,
11334
+ et,
11335
11335
  {
11336
11336
  icon: "material-symbols:close",
11337
11337
  alt: "Close Xpert dialog",
@@ -11387,8 +11387,8 @@ function Tl({
11387
11387
  onClose: r
11388
11388
  }) {
11389
11389
  var u, c, f, p, d, y, h, w, g, P, L, q, I, b, E;
11390
- const { primaryColor: i, conversationScreen: a } = Q(Se), { isMobile: o, mode: l } = Q(Ie), { step: s } = Q(kt);
11391
- return s === ot.CONNECTING && l === ft.LIVECHAT ? null : /* @__PURE__ */ C.jsxs(
11390
+ const { primaryColor: i, conversationScreen: a } = Q(Se), { isMobile: o, mode: l } = Q(Ie), { step: s } = Q(Ct);
11391
+ return s === lt.CONNECTING && l === ct.LIVECHAT ? null : /* @__PURE__ */ C.jsxs(
11392
11392
  "div",
11393
11393
  {
11394
11394
  "data-testid": "xpert-conversations-header",
@@ -11461,7 +11461,7 @@ function Uh() {
11461
11461
  deleteConversationModal: e,
11462
11462
  deleteConversationHistory: t,
11463
11463
  setDeleteConversationModal: n
11464
- } = Q(wt), { primaryColor: r } = Q(Se);
11464
+ } = Q(xt), { primaryColor: r } = Q(Se);
11465
11465
  return e ? /* @__PURE__ */ C.jsx(
11466
11466
  "div",
11467
11467
  {
@@ -11492,7 +11492,7 @@ function Uh() {
11492
11492
  * tabbable 6.2.0
11493
11493
  * @license MIT, https://github.com/focus-trap/tabbable/blob/master/LICENSE
11494
11494
  */
11495
- var Ol = ["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])"], Tn = /* @__PURE__ */ Ol.join(","), Il = typeof Element > "u", xt = Il ? function() {
11495
+ var Ol = ["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])"], Tn = /* @__PURE__ */ Ol.join(","), Il = typeof Element > "u", vt = Il ? function() {
11496
11496
  } : Element.prototype.matches || Element.prototype.msMatchesSelector || Element.prototype.webkitMatchesSelector, On = !Il && Element.prototype.getRootNode ? function(e) {
11497
11497
  var t;
11498
11498
  return e == null || (t = e.getRootNode) === null || t === void 0 ? void 0 : t.call(e);
@@ -11510,7 +11510,7 @@ var Ol = ["input:not([inert])", "select:not([inert])", "textarea:not([inert])",
11510
11510
  if (In(t))
11511
11511
  return [];
11512
11512
  var i = Array.prototype.slice.apply(t.querySelectorAll(Tn));
11513
- return n && xt.call(t, Tn) && i.unshift(t), i = i.filter(r), i;
11513
+ return n && vt.call(t, Tn) && i.unshift(t), i = i.filter(r), i;
11514
11514
  }, Al = function e(t, n, r) {
11515
11515
  for (var i = [], a = Array.from(t); a.length; ) {
11516
11516
  var o = a.shift();
@@ -11522,7 +11522,7 @@ var Ol = ["input:not([inert])", "select:not([inert])", "textarea:not([inert])",
11522
11522
  candidates: u
11523
11523
  });
11524
11524
  } else {
11525
- var c = xt.call(o, Tn);
11525
+ var c = vt.call(o, Tn);
11526
11526
  c && r.filter(o) && (n || !t.includes(o)) && i.push(o);
11527
11527
  var f = o.shadowRoot || // check for an undisclosed shadow
11528
11528
  typeof r.getShadowRoot == "function" && r.getShadowRoot(o), p = !In(f, !1) && (!r.shadowRootFilter || r.shadowRootFilter(o));
@@ -11598,8 +11598,8 @@ var Ol = ["input:not([inert])", "select:not([inert])", "textarea:not([inert])",
11598
11598
  var r = n.displayCheck, i = n.getShadowRoot;
11599
11599
  if (getComputedStyle(t).visibility === "hidden")
11600
11600
  return !0;
11601
- var a = xt.call(t, "details>summary:first-of-type"), o = a ? t.parentElement : t;
11602
- if (xt.call(o, "details:not([open]) *"))
11601
+ var a = vt.call(t, "details>summary:first-of-type"), o = a ? t.parentElement : t;
11602
+ if (vt.call(o, "details:not([open]) *"))
11603
11603
  return !0;
11604
11604
  if (!r || r === "full" || r === "legacy-full") {
11605
11605
  if (typeof i == "function") {
@@ -11625,7 +11625,7 @@ var Ol = ["input:not([inert])", "select:not([inert])", "textarea:not([inert])",
11625
11625
  for (var r = 0; r < n.children.length; r++) {
11626
11626
  var i = n.children.item(r);
11627
11627
  if (i.tagName === "LEGEND")
11628
- return xt.call(n, "fieldset[disabled] *") ? !0 : !i.contains(t);
11628
+ return vt.call(n, "fieldset[disabled] *") ? !0 : !i.contains(t);
11629
11629
  }
11630
11630
  return !0;
11631
11631
  }
@@ -11674,21 +11674,21 @@ var Ol = ["input:not([inert])", "select:not([inert])", "textarea:not([inert])",
11674
11674
  flatten: !0,
11675
11675
  getShadowRoot: n.getShadowRoot
11676
11676
  }) : r = Pl(t, n.includeContainer, Pn.bind(null, n)), r;
11677
- }, bt = function(t, n) {
11677
+ }, gt = function(t, n) {
11678
11678
  if (n = n || {}, !t)
11679
11679
  throw new Error("No node provided");
11680
- return xt.call(t, Tn) === !1 ? !1 : Ur(n, t);
11680
+ return vt.call(t, Tn) === !1 ? !1 : Ur(n, t);
11681
11681
  }, i0 = /* @__PURE__ */ Ol.concat("iframe").join(","), kn = function(t, n) {
11682
11682
  if (n = n || {}, !t)
11683
11683
  throw new Error("No node provided");
11684
- return xt.call(t, i0) === !1 ? !1 : Pn(n, t);
11684
+ return vt.call(t, i0) === !1 ? !1 : Pn(n, t);
11685
11685
  };
11686
11686
  const a0 = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineProperty({
11687
11687
  __proto__: null,
11688
11688
  focusable: jl,
11689
11689
  getTabIndex: ut,
11690
11690
  isFocusable: kn,
11691
- isTabbable: bt,
11691
+ isTabbable: gt,
11692
11692
  tabbable: Nl
11693
11693
  }, Symbol.toStringTag, { value: "Module" }));
11694
11694
  /*!
@@ -11889,9 +11889,9 @@ var lo = {
11889
11889
  }, p = function() {
11890
11890
  if (o.containerGroups = o.containers.map(function(O) {
11891
11891
  var S = Nl(O, a.tabbableOptions), T = jl(O, a.tabbableOptions), A = S.length > 0 ? S[0] : void 0, j = S.length > 0 ? S[S.length - 1] : void 0, R = T.find(function(W) {
11892
- return bt(W);
11892
+ return gt(W);
11893
11893
  }), H = T.slice().reverse().find(function(W) {
11894
- return bt(W);
11894
+ return gt(W);
11895
11895
  }), m = !!S.find(function(W) {
11896
11896
  return ut(W) > 0;
11897
11897
  });
@@ -11925,12 +11925,12 @@ var lo = {
11925
11925
  * @returns {HTMLElement|undefined} The next tabbable node, if any.
11926
11926
  */
11927
11927
  nextTabbableNode: function(J) {
11928
- var x = arguments.length > 1 && arguments[1] !== void 0 ? arguments[1] : !0, Z = S.indexOf(J);
11929
- return Z < 0 ? x ? T.slice(T.indexOf(J) + 1).find(function(ie) {
11930
- return bt(ie);
11928
+ var x = arguments.length > 1 && arguments[1] !== void 0 ? arguments[1] : !0, X = S.indexOf(J);
11929
+ return X < 0 ? x ? T.slice(T.indexOf(J) + 1).find(function(ie) {
11930
+ return gt(ie);
11931
11931
  }) : T.slice(0, T.indexOf(J)).reverse().find(function(ie) {
11932
- return bt(ie);
11933
- }) : S[Z + (x ? 1 : -1)];
11932
+ return gt(ie);
11933
+ }) : S[X + (x ? 1 : -1)];
11934
11934
  }
11935
11935
  };
11936
11936
  }), o.tabbableGroups = o.containerGroups.filter(function(O) {
@@ -11973,17 +11973,17 @@ var lo = {
11973
11973
  var de = fe.firstTabbableNode;
11974
11974
  return S === de;
11975
11975
  });
11976
- if (W < 0 && (m.container === S || kn(S, a.tabbableOptions) && !bt(S, a.tabbableOptions) && !m.nextTabbableNode(S, !1)) && (W = H), W >= 0) {
11976
+ if (W < 0 && (m.container === S || kn(S, a.tabbableOptions) && !gt(S, a.tabbableOptions) && !m.nextTabbableNode(S, !1)) && (W = H), W >= 0) {
11977
11977
  var J = W === 0 ? o.tabbableGroups.length - 1 : W - 1, x = o.tabbableGroups[J];
11978
11978
  R = ut(S) >= 0 ? x.lastTabbableNode : x.lastDomTabbableNode;
11979
11979
  } else Qt(T) || (R = m.nextTabbableNode(S, !1));
11980
11980
  } else {
11981
- var Z = o.tabbableGroups.findIndex(function(fe) {
11981
+ var X = o.tabbableGroups.findIndex(function(fe) {
11982
11982
  var de = fe.lastTabbableNode;
11983
11983
  return S === de;
11984
11984
  });
11985
- if (Z < 0 && (m.container === S || kn(S, a.tabbableOptions) && !bt(S, a.tabbableOptions) && !m.nextTabbableNode(S)) && (Z = H), Z >= 0) {
11986
- var ie = Z === o.tabbableGroups.length - 1 ? 0 : Z + 1, ne = o.tabbableGroups[ie];
11985
+ if (X < 0 && (m.container === S || kn(S, a.tabbableOptions) && !gt(S, a.tabbableOptions) && !m.nextTabbableNode(S)) && (X = H), X >= 0) {
11986
+ var ie = X === o.tabbableGroups.length - 1 ? 0 : X + 1, ne = o.tabbableGroups[ie];
11987
11987
  R = ut(S) >= 0 ? ne.firstTabbableNode : ne.firstDomTabbableNode;
11988
11988
  } else Qt(T) || (R = m.nextTabbableNode(S));
11989
11989
  }
@@ -12082,9 +12082,9 @@ var lo = {
12082
12082
  });
12083
12083
  });
12084
12084
  S && y(f());
12085
- }, U = typeof window < "u" && "MutationObserver" in window ? new MutationObserver(N) : void 0, D = function() {
12086
- U && (U.disconnect(), o.active && !o.paused && o.containers.map(function(O) {
12087
- U.observe(O, {
12085
+ }, $ = typeof window < "u" && "MutationObserver" in window ? new MutationObserver(N) : void 0, D = function() {
12086
+ $ && ($.disconnect(), o.active && !o.paused && o.containers.map(function(O) {
12087
+ $.observe(O, {
12088
12088
  subtree: !0,
12089
12089
  childList: !0
12090
12090
  });
@@ -12226,7 +12226,7 @@ function k0() {
12226
12226
  }
12227
12227
  return String(b);
12228
12228
  }
12229
- var y = Ge, h = /* @__PURE__ */ go(), w = w0, g = w.createFocusTrap, P = C0, L = P.isFocusable, q = /* @__PURE__ */ function(b) {
12229
+ var y = Ze, h = /* @__PURE__ */ go(), w = w0, g = w.createFocusTrap, P = C0, L = P.isFocusable, q = /* @__PURE__ */ function(b) {
12230
12230
  function E(z) {
12231
12231
  var N;
12232
12232
  t(this, E), N = i(this, E, [z]), f(N, "getNodeForOption", function(B) {
@@ -12278,14 +12278,14 @@ function k0() {
12278
12278
  // the user's setting, defaulted to false since focus-trap defaults this to false
12279
12279
  clickOutsideDeactivates: !1
12280
12280
  };
12281
- var U = z.focusTrapOptions;
12282
- for (var D in U)
12283
- if (Object.prototype.hasOwnProperty.call(U, D)) {
12281
+ var $ = z.focusTrapOptions;
12282
+ for (var D in $)
12283
+ if (Object.prototype.hasOwnProperty.call($, D)) {
12284
12284
  if (D === "returnFocusOnDeactivate" || D === "onDeactivate" || D === "onPostDeactivate" || D === "checkCanReturnFocus" || D === "clickOutsideDeactivates") {
12285
- N.originalOptions[D] = U[D];
12285
+ N.originalOptions[D] = $[D];
12286
12286
  continue;
12287
12287
  }
12288
- N.internalOptions[D] = U[D];
12288
+ N.internalOptions[D] = $[D];
12289
12289
  }
12290
12290
  return N.outsideClick = null, N.focusTrapElements = z.containerElements || [], N.updatePreviousElement(), N;
12291
12291
  }
@@ -12330,11 +12330,11 @@ function k0() {
12330
12330
  }, {
12331
12331
  key: "handleClickOutsideDeactivates",
12332
12332
  value: function(N) {
12333
- var U = typeof this.originalOptions.clickOutsideDeactivates == "function" ? this.originalOptions.clickOutsideDeactivates.call(null, N) : this.originalOptions.clickOutsideDeactivates;
12334
- return U && (this.outsideClick = {
12333
+ var $ = typeof this.originalOptions.clickOutsideDeactivates == "function" ? this.originalOptions.clickOutsideDeactivates.call(null, N) : this.originalOptions.clickOutsideDeactivates;
12334
+ return $ && (this.outsideClick = {
12335
12335
  target: N.target,
12336
- allowDeactivation: U
12337
- }), U;
12336
+ allowDeactivation: $
12337
+ }), $;
12338
12338
  }
12339
12339
  }, {
12340
12340
  key: "handleDeactivate",
@@ -12344,7 +12344,7 @@ function k0() {
12344
12344
  }, {
12345
12345
  key: "handlePostDeactivate",
12346
12346
  value: function() {
12347
- var N = this, U = function() {
12347
+ var N = this, $ = function() {
12348
12348
  var B = N.getReturnFocusNode(), O = !!// did the consumer allow it?
12349
12349
  (N.originalOptions.returnFocusOnDeactivate && // can we actually focus the node?
12350
12350
  B !== null && B !== void 0 && B.focus && // was there an outside click that allowed deactivation?
@@ -12357,7 +12357,7 @@ function k0() {
12357
12357
  preventScroll: T
12358
12358
  }), N.originalOptions.onPostDeactivate && N.originalOptions.onPostDeactivate.call(null), N.outsideClick = null;
12359
12359
  };
12360
- this.originalOptions.checkCanReturnFocus ? this.originalOptions.checkCanReturnFocus.call(null, this.getReturnFocusNode()).then(U, U) : U();
12360
+ this.originalOptions.checkCanReturnFocus ? this.originalOptions.checkCanReturnFocus.call(null, this.getReturnFocusNode()).then($, $) : $();
12361
12361
  }
12362
12362
  }, {
12363
12363
  key: "setupFocusTrap",
@@ -12379,8 +12379,8 @@ function k0() {
12379
12379
  value: function(N) {
12380
12380
  if (this.focusTrap) {
12381
12381
  N.containerElements !== this.props.containerElements && this.focusTrap.updateContainerElements(this.props.containerElements);
12382
- var U = !N.active && this.props.active, D = N.active && !this.props.active, B = !N.paused && this.props.paused, O = N.paused && !this.props.paused;
12383
- if (U && (this.updatePreviousElement(), this.focusTrap.activate()), D) {
12382
+ var $ = !N.active && this.props.active, D = N.active && !this.props.active, B = !N.paused && this.props.paused, O = N.paused && !this.props.paused;
12383
+ if ($ && (this.updatePreviousElement(), this.focusTrap.activate()), D) {
12384
12384
  this.deactivateTrap();
12385
12385
  return;
12386
12386
  }
@@ -12396,14 +12396,14 @@ function k0() {
12396
12396
  }, {
12397
12397
  key: "render",
12398
12398
  value: function() {
12399
- var N = this, U = this.props.children ? y.Children.only(this.props.children) : void 0;
12400
- if (U) {
12401
- if (U.type && U.type === y.Fragment)
12399
+ var N = this, $ = this.props.children ? y.Children.only(this.props.children) : void 0;
12400
+ if ($) {
12401
+ if ($.type && $.type === y.Fragment)
12402
12402
  throw new Error("A focus-trap cannot use a Fragment as its child container. Try replacing it with a <div> element.");
12403
12403
  var D = function(S) {
12404
12404
  var T = N.props.containerElements;
12405
- U && (typeof U.ref == "function" ? U.ref(S) : U.ref && (U.ref.current = S)), N.focusTrapElements = T || [S];
12406
- }, B = y.cloneElement(U, {
12405
+ $ && (typeof $.ref == "function" ? $.ref(S) : $.ref && ($.ref.current = S)), N.focusTrapElements = T || [S];
12406
+ }, B = y.cloneElement($, {
12407
12407
  ref: D
12408
12408
  });
12409
12409
  return B;
@@ -12467,7 +12467,7 @@ function k0() {
12467
12467
  }, Cr = q, Cr;
12468
12468
  }
12469
12469
  var S0 = k0();
12470
- const _0 = /* @__PURE__ */ tt(S0);
12470
+ const _0 = /* @__PURE__ */ nt(S0);
12471
12471
  function vi({ style: e, className: t, children: n, isMounted: r }) {
12472
12472
  const { isMobile: i, isNormalSize: a } = Q(Ie), o = ze(null);
12473
12473
  return /* @__PURE__ */ C.jsx(
@@ -12533,7 +12533,7 @@ function T0() {
12533
12533
  }
12534
12534
  function xi() {
12535
12535
  var i;
12536
- const { conversationScreen: e, primaryColor: t } = Q(Se), { cancelLiveChatConnection: n } = Q(kt), r = ((i = e == null ? void 0 : e.liveChat) == null ? void 0 : i.queueMessages) ?? [];
12536
+ const { conversationScreen: e, primaryColor: t } = Q(Se), { cancelLiveChatConnection: n } = Q(Ct), r = ((i = e == null ? void 0 : e.liveChat) == null ? void 0 : i.queueMessages) ?? [];
12537
12537
  return /* @__PURE__ */ C.jsxs(
12538
12538
  "div",
12539
12539
  {
@@ -12567,7 +12567,7 @@ const co = 500, O0 = [
12567
12567
  }
12568
12568
  ];
12569
12569
  function wi({ onDismiss: e }) {
12570
- const [t, n] = ee(""), [r, i] = ee(!1), [a, o] = ee(null), { conversationScreen: l } = Q(Se), { endLiveChat: s, submitSurvey: u, terminateConversation: c } = Q(kt), f = () => {
12570
+ const [t, n] = ee(""), [r, i] = ee(!1), [a, o] = ee(null), { conversationScreen: l } = Q(Se), { endLiveChat: s, submitSurvey: u, terminateConversation: c } = Q(Ct), f = () => {
12571
12571
  var y;
12572
12572
  c(), (y = l == null ? void 0 : l.liveChat) != null && y.useSurvey ? i(!0) : s();
12573
12573
  }, p = () => {
@@ -12641,7 +12641,7 @@ wi.propTypes = {
12641
12641
  };
12642
12642
  wi.defaultProps = {};
12643
12643
  function I0(e, t) {
12644
- const [n, r] = ee(!1), i = ze(), a = ct(
12644
+ const [n, r] = ee(!1), i = ze(), a = yt(
12645
12645
  (...o) => {
12646
12646
  n || (e(...o), r(!0), clearTimeout(i.current), i.current = setTimeout(() => {
12647
12647
  r(!1);
@@ -12649,7 +12649,7 @@ function I0(e, t) {
12649
12649
  },
12650
12650
  [n, e, t]
12651
12651
  );
12652
- return Ce(() => () => {
12652
+ return ke(() => () => {
12653
12653
  clearTimeout(i.current);
12654
12654
  }, []), a;
12655
12655
  }
@@ -12660,7 +12660,7 @@ function Ci() {
12660
12660
  liveChatMessages: n,
12661
12661
  sendMessage: r,
12662
12662
  sendTypingEvent: i
12663
- } = Q(kt), [a, o] = ee(!1), [l, s] = ee(""), u = ze(), c = I0(i, 5e3), f = (y) => {
12663
+ } = Q(Ct), [a, o] = ee(!1), [l, s] = ee(""), u = ze(), c = I0(i, 5e3), f = (y) => {
12664
12664
  s(y.target.value), c();
12665
12665
  }, p = () => {
12666
12666
  l.trim() !== "" && (r(l), d());
@@ -12759,11 +12759,11 @@ const A0 = "data:image/svg+xml,%3csvg%20xmlns='http://www.w3.org/2000/svg'%20wid
12759
12759
  }];
12760
12760
  }, kr = "privacy policy";
12761
12761
  function ki() {
12762
- const { conversationScreen: e, primaryColor: t } = Q(Se), { startLiveChat: n } = Q(kt), { setMode: r } = Q(Ie), { form: i, formHeader: a, privacyPolicyLink: o, privacyPolicyText: l } = e.liveChat, [s, , u] = L0({}), [c, f] = ee(!1), { clearError: p, errors: d, setErrors: y } = F0(), h = Rs(
12762
+ const { conversationScreen: e, primaryColor: t } = Q(Se), { startLiveChat: n } = Q(Ct), { setMode: r } = Q(Ie), { form: i, formHeader: a, privacyPolicyLink: o, privacyPolicyText: l } = e.liveChat, [s, , u] = L0({}), [c, f] = ee(!1), { clearError: p, errors: d, setErrors: y } = F0(), h = Rs(
12763
12763
  () => (l ?? "").split(kr, 2),
12764
12764
  [l]
12765
12765
  ), w = () => {
12766
- r(ft.XPERT);
12766
+ r(ct.XPERT);
12767
12767
  }, g = () => {
12768
12768
  p("privacyCheck"), f((I) => !I);
12769
12769
  }, P = (I, b) => {
@@ -12773,13 +12773,13 @@ function ki() {
12773
12773
  q() && n(s);
12774
12774
  }, q = () => {
12775
12775
  const I = i.reduce((b, E) => {
12776
- const { key: z, validations: N = [] } = E, U = s[z];
12777
- if (!U) return { ...b, [z]: "Required" };
12776
+ const { key: z, validations: N = [] } = E, $ = s[z];
12777
+ if (!$) return { ...b, [z]: "Required" };
12778
12778
  if ((N == null ? void 0 : N.length) > 0)
12779
12779
  for (const D of N)
12780
12780
  switch (D) {
12781
12781
  case "email": {
12782
- if (!P0(U))
12782
+ if (!P0($))
12783
12783
  return { ...b, [z]: "Should be email" };
12784
12784
  break;
12785
12785
  }
@@ -12870,11 +12870,11 @@ function ki() {
12870
12870
  ki.propTypes = {};
12871
12871
  ki.defaultProps = {};
12872
12872
  function Si() {
12873
- const { step: e } = Q(kt);
12873
+ const { step: e } = Q(Ct);
12874
12874
  return /* @__PURE__ */ C.jsxs("div", { className: "live-chat-container", children: [
12875
- e === ot.FORM && /* @__PURE__ */ C.jsx(ki, {}),
12876
- e === ot.CONNECTING && /* @__PURE__ */ C.jsx(xi, {}),
12877
- e === ot.CONVERSATION && /* @__PURE__ */ C.jsx(Ci, {})
12875
+ e === lt.FORM && /* @__PURE__ */ C.jsx(ki, {}),
12876
+ e === lt.CONNECTING && /* @__PURE__ */ C.jsx(xi, {}),
12877
+ e === lt.CONVERSATION && /* @__PURE__ */ C.jsx(Ci, {})
12878
12878
  ] });
12879
12879
  }
12880
12880
  Si.propTypes = {};
@@ -12889,16 +12889,16 @@ function Dl({
12889
12889
  }) {
12890
12890
  var y;
12891
12891
  const { proactiveMessage: o } = Q(Se), [l, s] = ee(!0), [u, c] = ee(!1), f = l && (!(window != null && window.OnetrustActiveGroups) || ((y = window == null ? void 0 : window.OnetrustActiveGroups) == null ? void 0 : y.includes("C0003"))) && Re.get(t) === void 0;
12892
- Ce(() => {
12892
+ ke(() => {
12893
12893
  var h;
12894
12894
  (h = window == null ? void 0 : window.OneTrust) == null || h.OnConsentChanged(() => {
12895
12895
  var w;
12896
12896
  !((w = window == null ? void 0 : window.OnetrustActiveGroups) != null && w.includes("C0003")) && Re.get(t) !== void 0 && Re.remove(t);
12897
12897
  });
12898
- }, [t]), Ce(() => {
12898
+ }, [t]), ke(() => {
12899
12899
  var h;
12900
12900
  i || (!(window != null && window.OnetrustActiveGroups) || (h = window == null ? void 0 : window.OnetrustActiveGroups) != null && h.includes("C0003")) && d(t, 1, 1);
12901
- }, [t, i]), Ce(() => {
12901
+ }, [t, i]), ke(() => {
12902
12902
  if (o != null && o.enabled && (o == null ? void 0 : o.delayMs) > 0) {
12903
12903
  const h = setTimeout(() => {
12904
12904
  c(!0);
@@ -12942,7 +12942,7 @@ function Dl({
12942
12942
  "aria-label": "Close proactive message",
12943
12943
  type: "button",
12944
12944
  children: /* @__PURE__ */ C.jsx(
12945
- Qe,
12945
+ et,
12946
12946
  {
12947
12947
  style: {
12948
12948
  color: "#000000",
@@ -12968,16 +12968,16 @@ Dl.propTypes = {
12968
12968
  style: k.shape()
12969
12969
  };
12970
12970
  function N0(e, t, n) {
12971
- const r = ct(
12971
+ const r = yt(
12972
12972
  (i) => {
12973
12973
  const { data: a } = i || {}, { chatState: o, show: l, type: s } = a || {};
12974
12974
  (s === "openForm" && l === !1 || s === "open" && o === !1) && n(!1);
12975
12975
  },
12976
12976
  [n]
12977
12977
  );
12978
- Ce(() => (e && window.addEventListener("message", r), () => {
12978
+ ke(() => (e && window.addEventListener("message", r), () => {
12979
12979
  window.removeEventListener("message", r);
12980
- }), [e, r]), Ce(() => {
12980
+ }), [e, r]), ke(() => {
12981
12981
  let i;
12982
12982
  return e && (i = document.createElement("style"), document.head.appendChild(i), ((o) => {
12983
12983
  i.innerHTML = `
@@ -12999,15 +12999,13 @@ function N0(e, t, n) {
12999
12999
  }
13000
13000
  function j0(e) {
13001
13001
  const [t, n] = ee(null);
13002
- return Ce(() => {
13002
+ return ke(() => {
13003
13003
  try {
13004
13004
  (() => {
13005
13005
  var i, a, o;
13006
- (i = window.experiments) != null && i[e] ? (console.log("Chatbot - Optimizely experiment variation exist"), n(
13006
+ (i = window.experiments) != null && i[e] ? n(
13007
13007
  (o = (a = window.experiments) == null ? void 0 : a[e]) == null ? void 0 : o.variation
13008
- )) : (console.log(
13009
- "Chatbot - Optimizely experiment variation does not exist"
13010
- ), window.experiments = window.experiments || {}, window.experiments[e] = {}, window.experiments[e].handleLoaded = () => {
13008
+ ) : (window.experiments = window.experiments || {}, window.experiments[e] = {}, window.experiments[e].handleLoaded = () => {
13011
13009
  /* istanbul ignore next @preserve */
13012
13010
  var l, s;
13013
13011
  n(
@@ -13023,12 +13021,10 @@ function j0(e) {
13023
13021
  var r, i;
13024
13022
  window.experiments = {}, (i = (r = window == null ? void 0 : window.optimizely) == null ? void 0 : r.push) == null || i.call(r, { type: "activate" });
13025
13023
  };
13026
- }, [e]), console.log(
13027
- `Chatbot - Optimizely experimentVariation: ${t}`
13028
- ), t;
13024
+ }, [e]), t;
13029
13025
  }
13030
13026
  function D0(e) {
13031
- Ce(() => {
13027
+ ke(() => {
13032
13028
  const t = () => document.visibilityState === "visible" && e();
13033
13029
  return document.addEventListener("visibilitychange", t), () => {
13034
13030
  document.removeEventListener("visibilitychange", t);
@@ -13084,7 +13080,7 @@ const po = (e) => {
13084
13080
  })), t;
13085
13081
  };
13086
13082
  function _i({ submitEventExternal: e }) {
13087
- var St, _t, pt, ht;
13083
+ var $e, kt, St, dt;
13088
13084
  const {
13089
13085
  chatApi: t,
13090
13086
  configurationLoaded: n,
@@ -13094,7 +13090,7 @@ function _i({ submitEventExternal: e }) {
13094
13090
  userTracking: o,
13095
13091
  webExperimentation: l,
13096
13092
  id: s
13097
- } = Q(Se), { pushXpertMessage: u, setXpertMessages: c, xpertMessages: f } = Q(wt), {
13093
+ } = Q(Se), { pushXpertMessage: u, setXpertMessages: c, xpertMessages: f } = Q(xt), {
13098
13094
  isMobile: p,
13099
13095
  mode: d,
13100
13096
  setDisableScroll: y,
@@ -13102,20 +13098,20 @@ function _i({ submitEventExternal: e }) {
13102
13098
  setHasNewMessage: w,
13103
13099
  setIsNormalSize: g,
13104
13100
  setLoading: P
13105
- } = Q(Ie), [, L] = ee(!1), [, q] = ee(!1), [I, b] = ee(!1), [E, z] = ee(!1), [N, U] = ee(""), [D, B] = ee(!1), O = ze(null), S = ze(null), T = ze(null), A = Re.get(`${s}-test`) === "1";
13101
+ } = Q(Ie), [, L] = ee(!1), [, q] = ee(!1), [I, b] = ee(!1), [E, z] = ee(!1), [N, $] = ee(""), [D, B] = ee(!1), O = ze(null), S = ze(null), T = ze(null), A = Re.get(`${s}-test`) === "1";
13106
13102
  N0(
13107
- (St = r == null ? void 0 : r.liveChat) == null ? void 0 : St.enabled,
13103
+ ($e = r == null ? void 0 : r.liveChat) == null ? void 0 : $e.enabled,
13108
13104
  E,
13109
13105
  z
13110
13106
  );
13111
- const j = ct(
13107
+ const j = yt(
13112
13108
  ({ name: Y, payload: ae }) => {
13113
13109
  if (!n || !(o != null && o.enabled)) return;
13114
- const ye = Vr(o == null ? void 0 : o.payloadParams, ae);
13115
- e ? e({ name: Y, payload: ye }) : T.current.track(
13110
+ const xe = Vr(o == null ? void 0 : o.payloadParams, ae);
13111
+ e ? e({ name: Y, payload: xe }) : T.current.track(
13116
13112
  // TODO: this is untestable - create a custom hook to get submit event function.
13117
13113
  Y,
13118
- ye
13114
+ xe
13119
13115
  );
13120
13116
  },
13121
13117
  [
@@ -13124,12 +13120,13 @@ function _i({ submitEventExternal: e }) {
13124
13120
  o == null ? void 0 : o.enabled,
13125
13121
  o == null ? void 0 : o.payloadParams
13126
13122
  ]
13127
- ), R = ct(async () => {
13128
- if (window != null && window.OnetrustActiveGroups && window.OnetrustActiveGroups.split(",").includes("C0003") && t != null && t.baseUrl)
13123
+ ), R = async () => {
13124
+ var Y;
13125
+ if (window != null && window.OnetrustActiveGroups && window.OnetrustActiveGroups.split(",").includes("C0003") && (Y = r == null ? void 0 : r.conversationHistory) != null && Y.enabled)
13129
13126
  try {
13130
- let Y = po(s);
13131
- const ae = await fetch(
13132
- `${t.baseUrl}/xpert/v2/history?conversation_id=${Y}`,
13127
+ let ae = po(s);
13128
+ const xe = await fetch(
13129
+ `${t.baseUrl}/xpert/v2/history?conversation_id=${ae}`,
13133
13130
  {
13134
13131
  method: "GET",
13135
13132
  headers: {
@@ -13137,38 +13134,29 @@ function _i({ submitEventExternal: e }) {
13137
13134
  }
13138
13135
  }
13139
13136
  );
13140
- if (!ae.ok)
13141
- throw new Error(`HTTPError: ${ae.status} ${ae.statusText}`);
13142
- const ye = await ae.json();
13137
+ if (!xe.ok)
13138
+ throw new Error(`HTTPError: ${xe.status} ${xe.statusText}`);
13139
+ const Ce = await xe.json();
13143
13140
  c(
13144
- ye.map((ke) => ({
13145
- ...ke,
13141
+ Ce.map((Oe) => ({
13142
+ ...Oe,
13146
13143
  disableFeedback: !0
13147
13144
  }))
13148
13145
  ), y(!0), w(!0);
13149
- } catch (Y) {
13150
- console.error(Y);
13146
+ } catch (ae) {
13147
+ console.error(ae);
13151
13148
  } finally {
13152
13149
  P(!1);
13153
13150
  }
13154
- }, [
13155
- s,
13156
- P,
13157
- t,
13158
- c,
13159
- y,
13160
- w
13161
- ]);
13162
- Ce(() => {
13163
- R();
13164
- }, [R]), D0(
13165
- () => r.conversationHistory.enabled && R()
13166
- ), Ce(() => {
13151
+ };
13152
+ D0(
13153
+ () => r.conversationHistory.enabled && I && !E && R()
13154
+ ), ke(() => {
13167
13155
  let Y, ae;
13168
13156
  if (n)
13169
13157
  return o != null && o.enabled && (Y = setInterval(() => {
13170
- var ke;
13171
- console.log("Chatbot - Finding Segment"), ((ke = window.analytics) != null && ke.track || e) && (console.log("Chatbot - Segment found"), T.current = window.analytics, clearInterval(Y), clearTimeout(ae), L(!0));
13158
+ var Ce;
13159
+ ((Ce = window.analytics) != null && Ce.track || e) && (T.current = window.analytics, clearInterval(Y), clearTimeout(ae), L(!0));
13172
13160
  }, 1e3), ae = setTimeout(() => {
13173
13161
  clearInterval(Y);
13174
13162
  }, 6e4)), () => {
@@ -13179,13 +13167,13 @@ function _i({ submitEventExternal: e }) {
13179
13167
  e,
13180
13168
  o == null ? void 0 : o.enabled,
13181
13169
  o == null ? void 0 : o.prefix
13182
- ]), Ce(() => {
13170
+ ]), ke(() => {
13183
13171
  let Y, ae;
13184
- const ye = () => {
13185
- l != null && l.enabled && (console.log("Chatbot - Finding Optimizely"), window.optimizely && window.experiments && (console.log("Chatbot - Optimizely found"), clearInterval(Y), clearTimeout(ae), q(!0)));
13172
+ const xe = () => {
13173
+ l != null && l.enabled && window.optimizely && window.experiments && (clearInterval(Y), clearTimeout(ae), q(!0));
13186
13174
  };
13187
13175
  if (n)
13188
- return Y = setInterval(ye, 1e3), ae = setTimeout(() => {
13176
+ return Y = setInterval(xe, 1e3), ae = setTimeout(() => {
13189
13177
  clearInterval(Y);
13190
13178
  }, 6e4), () => {
13191
13179
  clearInterval(Y), clearTimeout(ae);
@@ -13196,29 +13184,22 @@ function _i({ submitEventExternal: e }) {
13196
13184
  l == null ? void 0 : l.experimentName
13197
13185
  ]);
13198
13186
  const H = (Y) => {
13199
- var ae, ye;
13187
+ var ae, xe;
13200
13188
  (ae = Y == null ? void 0 : Y.target) != null && ae.href && j({
13201
13189
  name: `${o.prefix}.bi.xpert.chatbot.popup.chat.message.link.clicked`,
13202
13190
  payload: {
13203
13191
  category: "2u",
13204
13192
  label: "xpert-chatbot",
13205
- link: (ye = Y == null ? void 0 : Y.target) == null ? void 0 : ye.href,
13193
+ link: (xe = Y == null ? void 0 : Y.target) == null ? void 0 : xe.href,
13206
13194
  isTestUser: A
13207
13195
  }
13208
13196
  });
13209
- }, m = j0(
13210
- l == null ? void 0 : l.experimentName
13211
- );
13212
- if (!n) return null;
13213
- if (l != null && l.enabled && !(l != null && l.experimentName) && !A)
13214
- return l != null && l.enabled && !(l != null && l.experimentName) && console.log(
13215
- `Chatbot - Experiment not setup: ${s}, ${m}, ${window == null ? void 0 : window.optimizely}`
13216
- ), A || console.log(`Chatbot - Test user not setup: ${s}, ${A}`), null;
13217
- if (o != null && o.enabled && (o != null && o.prefix) && !((_t = T == null ? void 0 : T.current) != null && _t.track) && !e)
13218
- return console.log(`Chatbot - Segment not setup: ${s}`), null;
13219
- const W = () => {
13220
- U(""), S.current.value = "", S.current.style.height = "auto";
13221
- }, J = (Y, ae) => {
13197
+ };
13198
+ if (j0(l == null ? void 0 : l.experimentName), !n || l != null && l.enabled && !(l != null && l.experimentName) && !A || o != null && o.enabled && (o != null && o.prefix) && !((kt = T == null ? void 0 : T.current) != null && kt.track) && !e)
13199
+ return null;
13200
+ const m = () => {
13201
+ $(""), S.current.value = "", S.current.style.height = "auto";
13202
+ }, W = (Y, ae) => {
13222
13203
  j({
13223
13204
  name: `${o.prefix}.bi.xpert.chatbot.popup.chat.message.response`,
13224
13205
  payload: {
@@ -13230,12 +13211,12 @@ function _i({ submitEventExternal: e }) {
13230
13211
  conversationHistoryId: ae
13231
13212
  }
13232
13213
  });
13233
- }, x = ({
13214
+ }, J = ({
13234
13215
  conversationSize: Y,
13235
13216
  userInputMessage: ae,
13236
- apiResponseMessage: ye,
13237
- elapsedSeconds: ke,
13238
- conversationByteSize: Ne
13217
+ apiResponseMessage: xe,
13218
+ elapsedSeconds: Ce,
13219
+ conversationByteSize: Oe
13239
13220
  }) => {
13240
13221
  j({
13241
13222
  name: `${o.prefix}.bi.xpert.chatbot.popup.chat.message.elapsed.seconds`,
@@ -13245,83 +13226,83 @@ function _i({ submitEventExternal: e }) {
13245
13226
  isTestUser: A,
13246
13227
  conversationSize: Y,
13247
13228
  userInputMessage: ae,
13248
- apiResponseMessage: ye,
13249
- elapsedSeconds: ke,
13250
- conversationByteSize: Ne
13229
+ apiResponseMessage: xe,
13230
+ elapsedSeconds: Ce,
13231
+ conversationByteSize: Oe
13251
13232
  }
13252
13233
  });
13253
- }, Z = async (Y) => {
13234
+ }, x = async (Y) => {
13254
13235
  try {
13255
13236
  if (Y.trim().length === 0)
13256
13237
  return;
13257
13238
  const ae = /* @__PURE__ */ new Date();
13258
13239
  w(!1), h(!1);
13259
- const ye = f.filter((X) => X.role === "user").length + 1;
13240
+ const xe = f.filter((U) => U.role === "user").length + 1;
13260
13241
  j({
13261
13242
  name: `${o.prefix}.bi.xpert.chatbot.popup.chat.message.sent`,
13262
13243
  payload: {
13263
13244
  category: "2u",
13264
13245
  label: "xpert-chatbot",
13265
- totalUserInputMessagesSent: ye,
13246
+ totalUserInputMessagesSent: xe,
13266
13247
  userInputMessage: Y,
13267
13248
  isTestUser: A
13268
13249
  }
13269
- }), W();
13270
- let ke = null;
13271
- r.conversationHistory.enabled && (ke = po(s)), u({
13250
+ }), m();
13251
+ let Ce = null;
13252
+ r.conversationHistory.enabled && (Ce = po(s)), u({
13272
13253
  role: "user",
13273
13254
  content: Y
13274
13255
  }), P(!0);
13275
- const Ne = [
13256
+ const Oe = [
13276
13257
  ...f,
13277
13258
  {
13278
13259
  role: "user",
13279
13260
  content: Y
13280
13261
  }
13281
- ].map((X) => ({
13282
- role: X.role,
13283
- content: X.content,
13284
- ...X.toolCalls && { tool_calls: X.toolCalls }
13285
- })).filter(({ role: X }) => ["assistant", "user"].includes(X)), Oe = await fetch(t.endpoint, {
13262
+ ].map((U) => ({
13263
+ role: U.role,
13264
+ content: U.content,
13265
+ ...U.toolCalls && { tool_calls: U.toolCalls }
13266
+ })).filter(({ role: U }) => ["assistant", "user"].includes(U)), Ve = await fetch(t.endpoint, {
13286
13267
  method: "POST",
13287
13268
  headers: {
13288
13269
  "Content-Type": "application/json"
13289
13270
  },
13290
13271
  body: JSON.stringify({
13291
- [t == null ? void 0 : t.messagesKey]: Ne,
13272
+ [t == null ? void 0 : t.messagesKey]: Oe,
13292
13273
  ...t.payloadParams,
13293
- ...ke && {
13294
- conversation_id: ke
13274
+ ...Ce && {
13275
+ conversation_id: Ce
13295
13276
  }
13296
13277
  })
13297
13278
  });
13298
- if (!Oe.ok)
13299
- throw new Error(`HTTPError: ${Oe.status} ${Oe.statusText}`);
13279
+ if (!Ve.ok)
13280
+ throw new Error(`HTTPError: ${Ve.status} ${Ve.statusText}`);
13300
13281
  const {
13301
- content: lt,
13302
- live_agent: Et,
13303
- tool_calls: Bt
13304
- } = await Oe.json();
13305
- J(lt, ke);
13306
- const M = /* @__PURE__ */ new Date();
13307
- x({
13308
- conversationByteSize: B0(JSON.stringify(Ne)),
13282
+ content: Pe,
13283
+ live_agent: _t,
13284
+ tool_calls: Et
13285
+ } = await Ve.json();
13286
+ W(Pe, Ce);
13287
+ const Bt = /* @__PURE__ */ new Date();
13288
+ J({
13289
+ conversationByteSize: B0(JSON.stringify(Oe)),
13309
13290
  conversationSize: f.length + 2,
13310
13291
  userInputMessage: Y,
13311
- apiResponseMessage: lt,
13312
- elapsedSeconds: M0(ae, M)
13292
+ apiResponseMessage: Pe,
13293
+ elapsedSeconds: M0(ae, Bt)
13313
13294
  }), u({
13314
- content: lt,
13295
+ content: Pe,
13315
13296
  createdAt: /* @__PURE__ */ new Date(),
13316
- liveAgent: Et,
13297
+ liveAgent: _t,
13317
13298
  role: "assistant",
13318
- toolCalls: Bt
13319
- }), y(!1), P(!1), W(), w(!0);
13299
+ toolCalls: Et
13300
+ }), y(!1), P(!1), m(), w(!0);
13320
13301
  } catch (ae) {
13321
- P(!1), W(), h(!0), console.error(ae);
13302
+ P(!1), m(), h(!0), console.error(ae);
13322
13303
  }
13323
- }, ie = () => {
13324
- z(!1), b(!0), j({
13304
+ }, X = () => {
13305
+ z(!1), b(!0), R(), j({
13325
13306
  name: `${o.prefix}.bi.xpert.chatbot.action.button.clicked`,
13326
13307
  payload: {
13327
13308
  category: "2u",
@@ -13329,7 +13310,7 @@ function _i({ submitEventExternal: e }) {
13329
13310
  isTestUser: A
13330
13311
  }
13331
13312
  });
13332
- }, ne = (Y) => {
13313
+ }, ie = (Y) => {
13333
13314
  j({
13334
13315
  name: `${o.prefix}.bi.xpert.chatbot.${Y ? "normal" : "expand"}.size.button.clicked`,
13335
13316
  payload: {
@@ -13338,8 +13319,8 @@ function _i({ submitEventExternal: e }) {
13338
13319
  isTestUser: A
13339
13320
  }
13340
13321
  }), g(Y);
13341
- }, fe = () => {
13342
- b(!0), j({
13322
+ }, ne = () => {
13323
+ b(!0), R(), j({
13343
13324
  name: `${o.prefix}.bi.xpert.chatbot.proactive.message.clicked`,
13344
13325
  payload: {
13345
13326
  category: "2u",
@@ -13347,7 +13328,7 @@ function _i({ submitEventExternal: e }) {
13347
13328
  isTestUser: A
13348
13329
  }
13349
13330
  });
13350
- }, de = () => {
13331
+ }, fe = () => {
13351
13332
  j({
13352
13333
  name: `${o.prefix}.bi.xpert.chatbot.proactive.message.closed`,
13353
13334
  payload: {
@@ -13356,7 +13337,7 @@ function _i({ submitEventExternal: e }) {
13356
13337
  isTestUser: A
13357
13338
  }
13358
13339
  });
13359
- }, xe = () => {
13340
+ }, de = () => {
13360
13341
  b(!1), B(!1), j({
13361
13342
  name: `${o.prefix}.bi.xpert.chatbot.popup.chat.minimized`,
13362
13343
  payload: {
@@ -13365,10 +13346,10 @@ function _i({ submitEventExternal: e }) {
13365
13346
  isTestUser: A
13366
13347
  }
13367
13348
  });
13368
- }, pe = (Y) => {
13369
- U(Y.target.value);
13370
- }, Ee = (Y, ae = "") => {
13371
- const ye = f.map((ke, Ne) => Y === Ne ? (j({
13349
+ }, ve = (Y) => {
13350
+ $(Y.target.value);
13351
+ }, pe = (Y, ae = "") => {
13352
+ const xe = f.map((Ce, Oe) => Y === Oe ? (j({
13372
13353
  name: `${o.prefix}.bi.xpert.chatbot.feedback.thumbs.${ae.toLowerCase()}.clicked`,
13373
13354
  payload: {
13374
13355
  category: "2u",
@@ -13379,11 +13360,11 @@ function _i({ submitEventExternal: e }) {
13379
13360
  isTestUser: A
13380
13361
  }
13381
13362
  }), {
13382
- ...ke,
13363
+ ...Ce,
13383
13364
  feedbackThumbType: ae
13384
- }) : ke);
13385
- c(ye), y(!1);
13386
- }, Pe = (pt = i == null ? void 0 : i.animatedGraduate) == null ? void 0 : pt.enabled, Xe = a != null && a.enabled ? p ? (ht = a == null ? void 0 : a.style) == null ? void 0 : ht.mobile : a == null ? void 0 : a.style : null;
13365
+ }) : Ce);
13366
+ c(xe), y(!1);
13367
+ }, Ee = (St = i == null ? void 0 : i.animatedGraduate) == null ? void 0 : St.enabled, Ne = a != null && a.enabled ? p ? (dt = a == null ? void 0 : a.style) == null ? void 0 : dt.mobile : a == null ? void 0 : a.style : null;
13387
13368
  return (
13388
13369
  // do not remove this class as it's needed to turn off chatbot
13389
13370
  /* @__PURE__ */ C.jsxs("div", { className: "xpert_chatbot", children: [
@@ -13391,9 +13372,9 @@ function _i({ submitEventExternal: e }) {
13391
13372
  Dl,
13392
13373
  {
13393
13374
  showMessage: !I,
13394
- style: Xe,
13395
- onClose: de,
13396
- onClick: fe,
13375
+ style: Ne,
13376
+ onClose: fe,
13377
+ onClick: ne,
13397
13378
  cookieName: `${s}-proactive-message-xpert-chatbot`,
13398
13379
  children: /* @__PURE__ */ C.jsx("div", { className: "xpert-chatbot-proactive-message", children: /* @__PURE__ */ C.jsxs("div", { className: "xpert-chatbot-proactive-message__text", children: [
13399
13380
  (a == null ? void 0 : a.textPrefix) && /* @__PURE__ */ C.jsx(
@@ -13421,16 +13402,16 @@ function _i({ submitEventExternal: e }) {
13421
13402
  ] }) })
13422
13403
  }
13423
13404
  ),
13424
- Pe && /* @__PURE__ */ C.jsx(
13405
+ Ee && /* @__PURE__ */ C.jsx(
13425
13406
  Wr,
13426
13407
  {
13427
- handleFloatingActionButtonClick: ie
13408
+ handleFloatingActionButtonClick: X
13428
13409
  }
13429
13410
  ),
13430
- !Pe && /* @__PURE__ */ C.jsx(
13411
+ !Ee && /* @__PURE__ */ C.jsx(
13431
13412
  Gr,
13432
13413
  {
13433
- handleFloatingActionButtonClick: ie
13414
+ handleFloatingActionButtonClick: X
13434
13415
  }
13435
13416
  ),
13436
13417
  /* @__PURE__ */ C.jsx(E0, {}),
@@ -13445,20 +13426,20 @@ function _i({ submitEventExternal: e }) {
13445
13426
  /* @__PURE__ */ C.jsx(
13446
13427
  Tl,
13447
13428
  {
13448
- onClose: xe,
13449
- handleResizeButtonClick: ne,
13429
+ onClose: de,
13430
+ handleResizeButtonClick: ie,
13450
13431
  isMounted: D,
13451
13432
  setIsMounted: B
13452
13433
  }
13453
13434
  ),
13454
13435
  /* @__PURE__ */ C.jsx(Uh, {}),
13455
- d === ft.XPERT && /* @__PURE__ */ C.jsx(
13436
+ d === ct.XPERT && /* @__PURE__ */ C.jsx(
13456
13437
  di,
13457
13438
  {
13458
- handleChange: pe,
13459
- handleFeedbackThumbSelection: Ee,
13439
+ handleChange: ve,
13440
+ handleFeedbackThumbSelection: pe,
13460
13441
  handleMessageLinkClicked: H,
13461
- handleSend: Z,
13442
+ handleSend: x,
13462
13443
  inputRef: S,
13463
13444
  isTestUser: A,
13464
13445
  setLiveChatOpen: z,
@@ -13466,7 +13447,7 @@ function _i({ submitEventExternal: e }) {
13466
13447
  userInput: N
13467
13448
  }
13468
13449
  ),
13469
- d === ft.LIVECHAT && /* @__PURE__ */ C.jsx(Si, {})
13450
+ d === ct.LIVECHAT && /* @__PURE__ */ C.jsx(Si, {})
13470
13451
  ] })
13471
13452
  }
13472
13453
  ) })