@2uinc/frontend-component-xpert-chatbot 1.7.0-beta.5 → 1.7.0-beta.7

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 +321 -326
  2. package/package.json +1 -1
@@ -403,9 +403,9 @@ const N = /* @__PURE__ */ nt(Q);
403
403
  var pn = { exports: {} };
404
404
  pn.exports;
405
405
  (function(e, t) {
406
- var n = 200, r = "__lodash_hash_undefined__", i = 800, o = 16, a = 9007199254740991, l = "[object Arguments]", u = "[object Array]", s = "[object AsyncFunction]", c = "[object Boolean]", p = "[object Date]", m = "[object Error]", d = "[object Function]", T = "[object GeneratorFunction]", x = "[object Map]", j = "[object Number]", v = "[object Null]", C = "[object Object]", S = "[object Proxy]", W = "[object RegExp]", q = "[object Set]", M = "[object String]", P = "[object Undefined]", H = "[object WeakMap]", G = "[object ArrayBuffer]", K = "[object DataView]", A = "[object Float32Array]", b = "[object Float64Array]", I = "[object Int8Array]", z = "[object Int16Array]", L = "[object Int32Array]", U = "[object Uint8Array]", _ = "[object Uint8ClampedArray]", V = "[object Uint16Array]", ie = "[object Uint32Array]", g = /[\\^$.*+?()[\]{}|]/g, ue = /^\[object .+?Constructor\]$/, ye = /^(?:0|[1-9]\d*)$/, h = {};
407
- h[A] = h[b] = h[I] = h[z] = h[L] = h[U] = h[_] = h[V] = h[ie] = !0, h[l] = h[u] = h[G] = h[c] = h[K] = h[p] = h[m] = h[d] = h[x] = h[j] = h[C] = h[W] = h[q] = h[M] = h[H] = !1;
408
- var me = typeof Jt == "object" && Jt && Jt.Object === Object && Jt, De = typeof self == "object" && self && self.Object === Object && self, oe = me || De || Function("return this")(), Te = t && !t.nodeType && t, be = Te && !0 && e && !e.nodeType && e, Be = be && be.exports === Te, ze = Be && me.process, Ke = function() {
406
+ var n = 200, r = "__lodash_hash_undefined__", i = 800, o = 16, a = 9007199254740991, l = "[object Arguments]", u = "[object Array]", s = "[object AsyncFunction]", c = "[object Boolean]", p = "[object Date]", m = "[object Error]", d = "[object Function]", T = "[object GeneratorFunction]", x = "[object Map]", j = "[object Number]", v = "[object Null]", C = "[object Object]", S = "[object Proxy]", W = "[object RegExp]", q = "[object Set]", M = "[object String]", F = "[object Undefined]", H = "[object WeakMap]", G = "[object ArrayBuffer]", K = "[object DataView]", A = "[object Float32Array]", b = "[object Float64Array]", I = "[object Int8Array]", z = "[object Int16Array]", L = "[object Int32Array]", U = "[object Uint8Array]", _ = "[object Uint8ClampedArray]", V = "[object Uint16Array]", re = "[object Uint32Array]", g = /[\\^$.*+?()[\]{}|]/g, ue = /^\[object .+?Constructor\]$/, ye = /^(?:0|[1-9]\d*)$/, h = {};
407
+ h[A] = h[b] = h[I] = h[z] = h[L] = h[U] = h[_] = h[V] = h[re] = !0, h[l] = h[u] = h[G] = h[c] = h[K] = h[p] = h[m] = h[d] = h[x] = h[j] = h[C] = h[W] = h[q] = h[M] = h[H] = !1;
408
+ var ge = typeof Jt == "object" && Jt && Jt.Object === Object && Jt, De = typeof self == "object" && self && self.Object === Object && self, ie = ge || De || Function("return this")(), Te = t && !t.nodeType && t, be = Te && !0 && e && !e.nodeType && e, Be = be && be.exports === Te, ze = Be && ge.process, Ke = function() {
409
409
  try {
410
410
  var f = be && be.require && be.require("util").types;
411
411
  return f || ze && ze.binding && ze.binding("util");
@@ -426,9 +426,9 @@ pn.exports;
426
426
  return f.apply(y, w);
427
427
  }
428
428
  function Nt(f, y) {
429
- for (var w = -1, F = Array(f); ++w < f; )
430
- F[w] = y(w);
431
- return F;
429
+ for (var w = -1, P = Array(f); ++w < f; )
430
+ P[w] = y(w);
431
+ return P;
432
432
  }
433
433
  function gt(f) {
434
434
  return function(y) {
@@ -443,18 +443,18 @@ pn.exports;
443
443
  return f(y(w));
444
444
  };
445
445
  }
446
- var R = Array.prototype, ne = Function.prototype, he = Object.prototype, ge = oe["__core-js_shared__"], je = ne.toString, xe = he.hasOwnProperty, kt = function() {
447
- var f = /[^.]+$/.exec(ge && ge.keys && ge.keys.IE_PROTO || "");
446
+ var R = Array.prototype, oe = Function.prototype, me = Object.prototype, he = ie["__core-js_shared__"], je = oe.toString, xe = me.hasOwnProperty, kt = function() {
447
+ var f = /[^.]+$/.exec(he && he.keys && he.keys.IE_PROTO || "");
448
448
  return f ? "Symbol(src)_1." + f : "";
449
- }(), Xe = he.toString, jt = je.call(Object), D = RegExp(
449
+ }(), Xe = me.toString, jt = je.call(Object), D = RegExp(
450
450
  "^" + je.call(xe).replace(g, "\\$&").replace(/hasOwnProperty|(function).*?(?=\\\()| for .+?(?=\\\])/g, "$1.*?") + "$"
451
- ), O = Be ? oe.Buffer : void 0, Y = oe.Symbol, ee = oe.Uint8Array, re = O ? O.allocUnsafe : void 0, Ie = at(Object.getPrototypeOf, Object), Qe = Object.create, Ye = he.propertyIsEnumerable, lt = R.splice, Ee = Y ? Y.toStringTag : void 0, se = function() {
451
+ ), O = Be ? ie.Buffer : void 0, Y = ie.Symbol, ee = ie.Uint8Array, ne = O ? O.allocUnsafe : void 0, Ie = at(Object.getPrototypeOf, Object), Qe = Object.create, Ye = me.propertyIsEnumerable, lt = R.splice, Ee = Y ? Y.toStringTag : void 0, se = function() {
452
452
  try {
453
- var f = Fn(Object, "defineProperty");
453
+ var f = Pn(Object, "defineProperty");
454
454
  return f({}, "", {}), f;
455
455
  } catch {
456
456
  }
457
- }(), Et = O ? O.isBuffer : void 0, Le = Math.max, Za = Date.now, Jr = Fn(oe, "Map"), At = Fn(Object, "create"), Ka = function() {
457
+ }(), Et = O ? O.isBuffer : void 0, Le = Math.max, Za = Date.now, Jr = Pn(ie, "Map"), At = Pn(Object, "create"), Ka = function() {
458
458
  function f() {
459
459
  }
460
460
  return function(y) {
@@ -470,8 +470,8 @@ pn.exports;
470
470
  function ut(f) {
471
471
  var y = -1, w = f == null ? 0 : f.length;
472
472
  for (this.clear(); ++y < w; ) {
473
- var F = f[y];
474
- this.set(F[0], F[1]);
473
+ var P = f[y];
474
+ this.set(P[0], P[1]);
475
475
  }
476
476
  }
477
477
  function Xa() {
@@ -501,8 +501,8 @@ pn.exports;
501
501
  function Ze(f) {
502
502
  var y = -1, w = f == null ? 0 : f.length;
503
503
  for (this.clear(); ++y < w; ) {
504
- var F = f[y];
505
- this.set(F[0], F[1]);
504
+ var P = f[y];
505
+ this.set(P[0], P[1]);
506
506
  }
507
507
  }
508
508
  function rl() {
@@ -512,8 +512,8 @@ pn.exports;
512
512
  var y = this.__data__, w = Gt(y, f);
513
513
  if (w < 0)
514
514
  return !1;
515
- var F = y.length - 1;
516
- return w == F ? y.pop() : lt.call(y, w, 1), --this.size, !0;
515
+ var P = y.length - 1;
516
+ return w == P ? y.pop() : lt.call(y, w, 1), --this.size, !0;
517
517
  }
518
518
  function ol(f) {
519
519
  var y = this.__data__, w = Gt(y, f);
@@ -523,15 +523,15 @@ pn.exports;
523
523
  return Gt(this.__data__, f) > -1;
524
524
  }
525
525
  function ll(f, y) {
526
- var w = this.__data__, F = Gt(w, f);
527
- return F < 0 ? (++this.size, w.push([f, y])) : w[F][1] = y, this;
526
+ var w = this.__data__, P = Gt(w, f);
527
+ return P < 0 ? (++this.size, w.push([f, y])) : w[P][1] = y, this;
528
528
  }
529
529
  Ze.prototype.clear = rl, Ze.prototype.delete = il, Ze.prototype.get = ol, Ze.prototype.has = al, Ze.prototype.set = ll;
530
530
  function mt(f) {
531
531
  var y = -1, w = f == null ? 0 : f.length;
532
532
  for (this.clear(); ++y < w; ) {
533
- var F = f[y];
534
- this.set(F[0], F[1]);
533
+ var P = f[y];
534
+ this.set(P[0], P[1]);
535
535
  }
536
536
  }
537
537
  function ul() {
@@ -552,8 +552,8 @@ pn.exports;
552
552
  return Kt(this, f).has(f);
553
553
  }
554
554
  function pl(f, y) {
555
- var w = Kt(this, f), F = w.size;
556
- return w.set(f, y), this.size += w.size == F ? 0 : 1, this;
555
+ var w = Kt(this, f), P = w.size;
556
+ return w.set(f, y), this.size += w.size == P ? 0 : 1, this;
557
557
  }
558
558
  mt.prototype.clear = ul, mt.prototype.delete = sl, mt.prototype.get = cl, mt.prototype.has = fl, mt.prototype.set = pl;
559
559
  function yt(f) {
@@ -576,30 +576,30 @@ pn.exports;
576
576
  function yl(f, y) {
577
577
  var w = this.__data__;
578
578
  if (w instanceof Ze) {
579
- var F = w.__data__;
580
- if (!Jr || F.length < n - 1)
581
- return F.push([f, y]), this.size = ++w.size, this;
582
- w = this.__data__ = new mt(F);
579
+ var P = w.__data__;
580
+ if (!Jr || P.length < n - 1)
581
+ return P.push([f, y]), this.size = ++w.size, this;
582
+ w = this.__data__ = new mt(P);
583
583
  }
584
584
  return w.set(f, y), this.size = w.size, this;
585
585
  }
586
586
  yt.prototype.clear = dl, yt.prototype.delete = hl, yt.prototype.get = gl, yt.prototype.has = ml, yt.prototype.set = yl;
587
587
  function Ml(f, y) {
588
- var w = Un(f), F = !w && Rn(f), J = !w && !F && ii(f), le = !w && !F && !J && ai(f), pe = w || F || J || le, X = pe ? Nt(f.length, String) : [], de = X.length;
589
- for (var Pe in f)
590
- (y || xe.call(f, Pe)) && !(pe && // Safari 9 has enumerable `arguments.length` in strict mode.
591
- (Pe == "length" || // Node.js 0.10 has enumerable non-index properties on buffers.
592
- J && (Pe == "offset" || Pe == "parent") || // PhantomJS 2 has enumerable non-index properties on typed arrays.
593
- le && (Pe == "buffer" || Pe == "byteLength" || Pe == "byteOffset") || // Skip index properties.
594
- ni(Pe, de))) && X.push(Pe);
588
+ var w = Un(f), P = !w && Rn(f), J = !w && !P && ii(f), le = !w && !P && !J && ai(f), pe = w || P || J || le, X = pe ? Nt(f.length, String) : [], de = X.length;
589
+ for (var Fe in f)
590
+ (y || xe.call(f, Fe)) && !(pe && // Safari 9 has enumerable `arguments.length` in strict mode.
591
+ (Fe == "length" || // Node.js 0.10 has enumerable non-index properties on buffers.
592
+ J && (Fe == "offset" || Fe == "parent") || // PhantomJS 2 has enumerable non-index properties on typed arrays.
593
+ le && (Fe == "buffer" || Fe == "byteLength" || Fe == "byteOffset") || // Skip index properties.
594
+ ni(Fe, de))) && X.push(Fe);
595
595
  return X;
596
596
  }
597
597
  function Ln(f, y, w) {
598
- (w !== void 0 && !Xt(f[y], w) || w === void 0 && !(y in f)) && Pn(f, y, w);
598
+ (w !== void 0 && !Xt(f[y], w) || w === void 0 && !(y in f)) && Fn(f, y, w);
599
599
  }
600
600
  function xl(f, y, w) {
601
- var F = f[y];
602
- (!(xe.call(f, y) && Xt(F, w)) || w === void 0 && !(y in f)) && Pn(f, y, w);
601
+ var P = f[y];
602
+ (!(xe.call(f, y) && Xt(P, w)) || w === void 0 && !(y in f)) && Fn(f, y, w);
603
603
  }
604
604
  function Gt(f, y) {
605
605
  for (var w = f.length; w--; )
@@ -607,7 +607,7 @@ pn.exports;
607
607
  return w;
608
608
  return -1;
609
609
  }
610
- function Pn(f, y, w) {
610
+ function Fn(f, y, w) {
611
611
  y == "__proto__" && se ? se(f, y, {
612
612
  configurable: !0,
613
613
  enumerable: !0,
@@ -617,7 +617,7 @@ pn.exports;
617
617
  }
618
618
  var bl = Ol();
619
619
  function Zt(f) {
620
- return f == null ? f === void 0 ? P : v : Ee && Ee in Object(f) ? zl(f) : Ul(f);
620
+ return f == null ? f === void 0 ? F : v : Ee && Ee in Object(f) ? zl(f) : Ul(f);
621
621
  }
622
622
  function ei(f) {
623
623
  return Ct(f) && Zt(f) == l;
@@ -635,24 +635,24 @@ pn.exports;
635
635
  if (!st(f))
636
636
  return Rl(f);
637
637
  var y = ri(f), w = [];
638
- for (var F in f)
639
- F == "constructor" && (y || !xe.call(f, F)) || w.push(F);
638
+ for (var P in f)
639
+ P == "constructor" && (y || !xe.call(f, P)) || w.push(P);
640
640
  return w;
641
641
  }
642
- function ti(f, y, w, F, J) {
642
+ function ti(f, y, w, P, J) {
643
643
  f !== y && bl(y, function(le, pe) {
644
644
  if (J || (J = new yt()), st(le))
645
- Tl(f, y, pe, w, ti, F, J);
645
+ Tl(f, y, pe, w, ti, P, J);
646
646
  else {
647
- var X = F ? F(_n(f, pe), le, pe + "", f, y, J) : void 0;
647
+ var X = P ? P(_n(f, pe), le, pe + "", f, y, J) : void 0;
648
648
  X === void 0 && (X = le), Ln(f, pe, X);
649
649
  }
650
650
  }, li);
651
651
  }
652
- function Tl(f, y, w, F, J, le, pe) {
653
- var X = _n(f, w), de = _n(y, w), Pe = pe.get(de);
654
- if (Pe) {
655
- Ln(f, w, Pe);
652
+ function Tl(f, y, w, P, J, le, pe) {
653
+ var X = _n(f, w), de = _n(y, w), Fe = pe.get(de);
654
+ if (Fe) {
655
+ Ln(f, w, Fe);
656
656
  return;
657
657
  }
658
658
  var Ae = le ? le(X, de, w + "", f, y, pe) : void 0, St = Ae === void 0;
@@ -660,7 +660,7 @@ pn.exports;
660
660
  var Yn = Un(de), Hn = !Yn && ii(de), si = !Yn && !Hn && ai(de);
661
661
  Ae = de, Yn || Hn || si ? Un(X) ? Ae = X : $l(X) ? Ae = Al(X) : Hn ? (St = !1, Ae = kl(de, !0)) : si ? (St = !1, Ae = El(de, !0)) : Ae = [] : ql(de) || Rn(de) ? (Ae = X, Rn(X) ? Ae = Vl(X) : (!st(X) || Qn(X)) && (Ae = Ll(de))) : St = !1;
662
662
  }
663
- St && (pe.set(de, Ae), J(Ae, de, F, le, pe), pe.delete(de)), Ln(f, w, Ae);
663
+ St && (pe.set(de, Ae), J(Ae, de, P, le, pe), pe.delete(de)), Ln(f, w, Ae);
664
664
  }
665
665
  function Il(f, y) {
666
666
  return Ql(Bl(f, y, ui), f + "");
@@ -676,8 +676,8 @@ pn.exports;
676
676
  function kl(f, y) {
677
677
  if (y)
678
678
  return f.slice();
679
- var w = f.length, F = re ? re(w) : new f.constructor(w);
680
- return f.copy(F), F;
679
+ var w = f.length, P = ne ? ne(w) : new f.constructor(w);
680
+ return f.copy(P), P;
681
681
  }
682
682
  function jl(f) {
683
683
  var y = new f.constructor(f.byteLength);
@@ -688,33 +688,33 @@ pn.exports;
688
688
  return new f.constructor(w, f.byteOffset, f.length);
689
689
  }
690
690
  function Al(f, y) {
691
- var w = -1, F = f.length;
692
- for (y || (y = Array(F)); ++w < F; )
691
+ var w = -1, P = f.length;
692
+ for (y || (y = Array(P)); ++w < P; )
693
693
  y[w] = f[w];
694
694
  return y;
695
695
  }
696
- function Cl(f, y, w, F) {
696
+ function Cl(f, y, w, P) {
697
697
  var J = !w;
698
698
  w || (w = {});
699
699
  for (var le = -1, pe = y.length; ++le < pe; ) {
700
- var X = y[le], de = F ? F(w[X], f[X], X, w, f) : void 0;
701
- de === void 0 && (de = f[X]), J ? Pn(w, X, de) : xl(w, X, de);
700
+ var X = y[le], de = P ? P(w[X], f[X], X, w, f) : void 0;
701
+ de === void 0 && (de = f[X]), J ? Fn(w, X, de) : xl(w, X, de);
702
702
  }
703
703
  return w;
704
704
  }
705
705
  function Sl(f) {
706
706
  return Il(function(y, w) {
707
- var F = -1, J = w.length, le = J > 1 ? w[J - 1] : void 0, pe = J > 2 ? w[2] : void 0;
708
- for (le = f.length > 3 && typeof le == "function" ? (J--, le) : void 0, pe && Pl(w[0], w[1], pe) && (le = J < 3 ? void 0 : le, J = 1), y = Object(y); ++F < J; ) {
709
- var X = w[F];
710
- X && f(y, X, F, le);
707
+ var P = -1, J = w.length, le = J > 1 ? w[J - 1] : void 0, pe = J > 2 ? w[2] : void 0;
708
+ for (le = f.length > 3 && typeof le == "function" ? (J--, le) : void 0, pe && Fl(w[0], w[1], pe) && (le = J < 3 ? void 0 : le, J = 1), y = Object(y); ++P < J; ) {
709
+ var X = w[P];
710
+ X && f(y, X, P, le);
711
711
  }
712
712
  return y;
713
713
  });
714
714
  }
715
715
  function Ol(f) {
716
- return function(y, w, F) {
717
- for (var J = -1, le = Object(y), pe = F(y), X = pe.length; X--; ) {
716
+ return function(y, w, P) {
717
+ for (var J = -1, le = Object(y), pe = P(y), X = pe.length; X--; ) {
718
718
  var de = pe[f ? X : ++J];
719
719
  if (w(le[de], de, le) === !1)
720
720
  break;
@@ -724,9 +724,9 @@ pn.exports;
724
724
  }
725
725
  function Kt(f, y) {
726
726
  var w = f.__data__;
727
- return Fl(y) ? w[typeof y == "string" ? "string" : "hash"] : w.map;
727
+ return Pl(y) ? w[typeof y == "string" ? "string" : "hash"] : w.map;
728
728
  }
729
- function Fn(f, y) {
729
+ function Pn(f, y) {
730
730
  var w = ot(f, y);
731
731
  return wl(w) ? w : void 0;
732
732
  }
@@ -734,11 +734,11 @@ pn.exports;
734
734
  var y = xe.call(f, Ee), w = f[Ee];
735
735
  try {
736
736
  f[Ee] = void 0;
737
- var F = !0;
737
+ var P = !0;
738
738
  } catch {
739
739
  }
740
740
  var J = Xe.call(f);
741
- return F && (y ? f[Ee] = w : delete f[Ee]), J;
741
+ return P && (y ? f[Ee] = w : delete f[Ee]), J;
742
742
  }
743
743
  function Ll(f) {
744
744
  return typeof f.constructor == "function" && !ri(f) ? Ka(Ie(f)) : {};
@@ -747,13 +747,13 @@ pn.exports;
747
747
  var w = typeof f;
748
748
  return y = y ?? a, !!y && (w == "number" || w != "symbol" && ye.test(f)) && f > -1 && f % 1 == 0 && f < y;
749
749
  }
750
- function Pl(f, y, w) {
750
+ function Fl(f, y, w) {
751
751
  if (!st(w))
752
752
  return !1;
753
- var F = typeof y;
754
- return (F == "number" ? Bn(w) && ni(y, w.length) : F == "string" && y in w) ? Xt(w[y], f) : !1;
753
+ var P = typeof y;
754
+ return (P == "number" ? Bn(w) && ni(y, w.length) : P == "string" && y in w) ? Xt(w[y], f) : !1;
755
755
  }
756
- function Fl(f) {
756
+ function Pl(f) {
757
757
  var y = typeof f;
758
758
  return y == "string" || y == "number" || y == "symbol" || y == "boolean" ? f !== "__proto__" : f === null;
759
759
  }
@@ -761,7 +761,7 @@ pn.exports;
761
761
  return !!kt && kt in f;
762
762
  }
763
763
  function ri(f) {
764
- var y = f && f.constructor, w = typeof y == "function" && y.prototype || he;
764
+ var y = f && f.constructor, w = typeof y == "function" && y.prototype || me;
765
765
  return f === w;
766
766
  }
767
767
  function Rl(f) {
@@ -776,11 +776,11 @@ pn.exports;
776
776
  }
777
777
  function Bl(f, y, w) {
778
778
  return y = Le(y === void 0 ? f.length - 1 : y, 0), function() {
779
- for (var F = arguments, J = -1, le = Le(F.length - y, 0), pe = Array(le); ++J < le; )
780
- pe[J] = F[y + J];
779
+ for (var P = arguments, J = -1, le = Le(P.length - y, 0), pe = Array(le); ++J < le; )
780
+ pe[J] = P[y + J];
781
781
  J = -1;
782
782
  for (var X = Array(y + 1); ++J < y; )
783
- X[J] = F[J];
783
+ X[J] = P[J];
784
784
  return X[y] = w(pe), It(f, this, X);
785
785
  };
786
786
  }
@@ -792,8 +792,8 @@ pn.exports;
792
792
  function Yl(f) {
793
793
  var y = 0, w = 0;
794
794
  return function() {
795
- var F = Za(), J = o - (F - w);
796
- if (w = F, J > 0) {
795
+ var P = Za(), J = o - (P - w);
796
+ if (w = P, J > 0) {
797
797
  if (++y >= i)
798
798
  return arguments[0];
799
799
  } else
@@ -1439,7 +1439,7 @@ function Su(e, t) {
1439
1439
  }
1440
1440
  const Ou = /\sid="(\S+)"/g, zu = "IconifyId" + Date.now().toString(16) + (Math.random() * 16777216 | 0).toString(16);
1441
1441
  let Lu = 0;
1442
- function Pu(e, t = zu) {
1442
+ function Fu(e, t = zu) {
1443
1443
  const n = [];
1444
1444
  let r;
1445
1445
  for (; r = Ou.exec(e); )
@@ -1458,7 +1458,7 @@ function Pu(e, t = zu) {
1458
1458
  }), e = e.replace(new RegExp(i, "g"), ""), e;
1459
1459
  }
1460
1460
  const lr = /* @__PURE__ */ Object.create(null);
1461
- function Fu(e, t) {
1461
+ function Pu(e, t) {
1462
1462
  lr[e] = t;
1463
1463
  }
1464
1464
  function ur(e) {
@@ -1716,8 +1716,8 @@ function Xu(e, t, n, r) {
1716
1716
  if (e.random) {
1717
1717
  let M = e.resources.slice(0);
1718
1718
  for (a = []; M.length > 1; ) {
1719
- const P = Math.floor(Math.random() * M.length);
1720
- a.push(M[P]), M = M.slice(0, P).concat(M.slice(P + 1));
1719
+ const F = Math.floor(Math.random() * M.length);
1720
+ a.push(M[F]), M = M.slice(0, F).concat(M.slice(F + 1));
1721
1721
  }
1722
1722
  a = a.concat(M);
1723
1723
  } else
@@ -1733,8 +1733,8 @@ function Xu(e, t, n, r) {
1733
1733
  M.status === "pending" && (M.status = "aborted");
1734
1734
  }), m = [];
1735
1735
  }
1736
- function j(M, P) {
1737
- P && (d = []), typeof M == "function" && d.push(M);
1736
+ function j(M, F) {
1737
+ F && (d = []), typeof M == "function" && d.push(M);
1738
1738
  }
1739
1739
  function v() {
1740
1740
  return {
@@ -1757,8 +1757,8 @@ function Xu(e, t, n, r) {
1757
1757
  M.status === "pending" && (M.status = "aborted");
1758
1758
  }), m = [];
1759
1759
  }
1760
- function W(M, P, H) {
1761
- const G = P !== "success";
1760
+ function W(M, F, H) {
1761
+ const G = F !== "success";
1762
1762
  switch (m = m.filter((K) => K !== M), u) {
1763
1763
  case "pending":
1764
1764
  break;
@@ -1769,7 +1769,7 @@ function Xu(e, t, n, r) {
1769
1769
  default:
1770
1770
  return;
1771
1771
  }
1772
- if (P === "abort") {
1772
+ if (F === "abort") {
1773
1773
  c = H, C();
1774
1774
  return;
1775
1775
  }
@@ -1800,18 +1800,18 @@ function Xu(e, t, n, r) {
1800
1800
  C();
1801
1801
  return;
1802
1802
  }
1803
- const P = {
1803
+ const F = {
1804
1804
  status: "pending",
1805
1805
  resource: M,
1806
1806
  callback: (H, G) => {
1807
- W(P, H, G);
1807
+ W(F, H, G);
1808
1808
  }
1809
1809
  };
1810
- m.push(P), s++, p = setTimeout(q, e.rotate), n(M, t, P.callback);
1810
+ m.push(F), s++, p = setTimeout(q, e.rotate), n(M, t, F.callback);
1811
1811
  }
1812
1812
  return setTimeout(q), v;
1813
1813
  }
1814
- function Po(e) {
1814
+ function Fo(e) {
1815
1815
  const t = {
1816
1816
  ...Ku,
1817
1817
  ...e
@@ -1852,7 +1852,7 @@ function Ju(e) {
1852
1852
  const t = jr(e);
1853
1853
  if (!t)
1854
1854
  return;
1855
- const n = Po(t), r = {
1855
+ const n = Fo(t), r = {
1856
1856
  config: t,
1857
1857
  redundancy: n
1858
1858
  };
@@ -1872,14 +1872,14 @@ function es(e, t, n) {
1872
1872
  } else {
1873
1873
  const o = Nr(e);
1874
1874
  if (o) {
1875
- r = Po(o);
1875
+ r = Fo(o);
1876
1876
  const a = e.resources ? e.resources[0] : "", l = ur(a);
1877
1877
  l && (i = l.send);
1878
1878
  }
1879
1879
  }
1880
1880
  return !r || !i ? (n(void 0, 424), mi) : r.query(t, i, n)().abort;
1881
1881
  }
1882
- const yi = "iconify2", $t = "iconify", Fo = $t + "-count", Mi = $t + "-version", _o = 36e5, ts = 168;
1882
+ const yi = "iconify2", $t = "iconify", Po = $t + "-count", Mi = $t + "-version", _o = 36e5, ts = 168;
1883
1883
  function sr(e, t) {
1884
1884
  try {
1885
1885
  return e.getItem(t);
@@ -1899,10 +1899,10 @@ function xi(e, t) {
1899
1899
  }
1900
1900
  }
1901
1901
  function cr(e, t) {
1902
- return Er(e, Fo, t.toString());
1902
+ return Er(e, Po, t.toString());
1903
1903
  }
1904
1904
  function fr(e) {
1905
- return parseInt(sr(e, Fo)) || 0;
1905
+ return parseInt(sr(e, Po)) || 0;
1906
1906
  }
1907
1907
  const wn = {
1908
1908
  local: !0,
@@ -2245,7 +2245,7 @@ const ws = (e, t, n, r) => {
2245
2245
  }, Object.assign(s, p);
2246
2246
  let v = 0, C = t.id;
2247
2247
  return typeof C == "string" && (C = C.replace(/-/g, "_")), s.dangerouslySetInnerHTML = {
2248
- __html: ys(Pu(c.body, C ? () => C + "ID" + v++ : "iconifyReact"))
2248
+ __html: ys(Fu(c.body, C ? () => C + "ID" + v++ : "iconifyReact"))
2249
2249
  }, ve.createElement("svg", s);
2250
2250
  }
2251
2251
  const { body: m, width: d, height: T } = e, x = a === "mask" || (a === "bg" ? !1 : m.indexOf("currentColor") !== -1), j = ps(m, {
@@ -2264,7 +2264,7 @@ const ws = (e, t, n, r) => {
2264
2264
  }, ve.createElement("span", s);
2265
2265
  };
2266
2266
  So(!0);
2267
- Fu("", $u);
2267
+ Pu("", $u);
2268
2268
  if (typeof document < "u" && typeof window < "u") {
2269
2269
  Qo();
2270
2270
  const e = window;
@@ -2879,10 +2879,10 @@ function zs(...e) {
2879
2879
  function Ls(e) {
2880
2880
  Vt(e);
2881
2881
  const t = e.charCodeAt(0) === 47;
2882
- let n = Ps(e, !t);
2882
+ let n = Fs(e, !t);
2883
2883
  return n.length === 0 && !t && (n = "."), n.length > 0 && e.charCodeAt(e.length - 1) === 47 && (n += "/"), t ? "/" + n : n;
2884
2884
  }
2885
- function Ps(e, t) {
2885
+ function Fs(e, t) {
2886
2886
  let n = "", r = 0, i = -1, o = 0, a = -1, l, u;
2887
2887
  for (; ++a <= e.length; ) {
2888
2888
  if (a < e.length)
@@ -2921,7 +2921,7 @@ function Vt(e) {
2921
2921
  "Path must be a string. Received " + JSON.stringify(e)
2922
2922
  );
2923
2923
  }
2924
- const Fs = { cwd: _s };
2924
+ const Ps = { cwd: _s };
2925
2925
  function _s() {
2926
2926
  return "/";
2927
2927
  }
@@ -2992,7 +2992,7 @@ class Ko {
2992
2992
  */
2993
2993
  constructor(t) {
2994
2994
  let n;
2995
- t ? typeof t == "string" || Bs(t) ? n = { value: t } : hr(t) ? n = { path: t } : n = t : n = {}, this.data = {}, this.messages = [], this.history = [], this.cwd = Fs.cwd(), this.value, this.stored, this.result, this.map;
2995
+ t ? typeof t == "string" || Bs(t) ? n = { value: t } : hr(t) ? n = { path: t } : n = t : n = {}, this.data = {}, this.messages = [], this.history = [], this.cwd = Ps.cwd(), this.value, this.stored, this.result, this.map;
2996
2996
  let r = -1;
2997
2997
  for (; ++r < Vn.length; ) {
2998
2998
  const o = Vn[r];
@@ -3329,8 +3329,8 @@ function ea() {
3329
3329
  q(M);
3330
3330
  else if (typeof M == "object")
3331
3331
  if (Array.isArray(M)) {
3332
- const [P, ...H] = M;
3333
- q(P, ...H);
3332
+ const [F, ...H] = M;
3333
+ q(F, ...H);
3334
3334
  } else
3335
3335
  S(M);
3336
3336
  else
@@ -3340,44 +3340,44 @@ function ea() {
3340
3340
  W(M.plugins), M.settings && (v = Object.assign(v || {}, M.settings));
3341
3341
  }
3342
3342
  function W(M) {
3343
- let P = -1;
3343
+ let F = -1;
3344
3344
  if (M != null)
3345
3345
  if (Array.isArray(M))
3346
- for (; ++P < M.length; ) {
3347
- const H = M[P];
3346
+ for (; ++F < M.length; ) {
3347
+ const H = M[F];
3348
3348
  C(H);
3349
3349
  }
3350
3350
  else
3351
3351
  throw new TypeError("Expected a list of plugins, not `" + M + "`");
3352
3352
  }
3353
- function q(M, P) {
3353
+ function q(M, F) {
3354
3354
  let H = -1, G;
3355
3355
  for (; ++H < t.length; )
3356
3356
  if (t[H][0] === M) {
3357
3357
  G = t[H];
3358
3358
  break;
3359
3359
  }
3360
- G ? (gr(G[1]) && gr(P) && (P = Li(!0, G[1], P)), G[1] = P) : t.push([...arguments]);
3360
+ G ? (gr(G[1]) && gr(F) && (F = Li(!0, G[1], F)), G[1] = F) : t.push([...arguments]);
3361
3361
  }
3362
3362
  }
3363
3363
  function s(x) {
3364
3364
  o.freeze();
3365
3365
  const j = zt(x), v = o.Parser;
3366
- return Zn("parse", v), Pi(v, "parse") ? new v(String(j), j).parse() : v(String(j), j);
3366
+ return Zn("parse", v), Fi(v, "parse") ? new v(String(j), j).parse() : v(String(j), j);
3367
3367
  }
3368
3368
  function c(x, j) {
3369
3369
  o.freeze();
3370
3370
  const v = zt(j), C = o.Compiler;
3371
- return Kn("stringify", C), Fi(x), Pi(C, "compile") ? new C(x, v).compile() : C(x, v);
3371
+ return Kn("stringify", C), Pi(x), Fi(C, "compile") ? new C(x, v).compile() : C(x, v);
3372
3372
  }
3373
3373
  function p(x, j, v) {
3374
- if (Fi(x), o.freeze(), !v && typeof j == "function" && (v = j, j = void 0), !v)
3374
+ if (Pi(x), o.freeze(), !v && typeof j == "function" && (v = j, j = void 0), !v)
3375
3375
  return new Promise(C);
3376
3376
  C(null, v);
3377
3377
  function C(S, W) {
3378
3378
  e.run(x, zt(j), q);
3379
- function q(M, P, H) {
3380
- P = P || x, M ? W(M) : S ? S(P) : v(null, P, H);
3379
+ function q(M, F, H) {
3380
+ F = F || x, M ? W(M) : S ? S(F) : v(null, F, H);
3381
3381
  }
3382
3382
  }
3383
3383
  }
@@ -3394,16 +3394,16 @@ function ea() {
3394
3394
  v(null, j);
3395
3395
  function v(C, S) {
3396
3396
  const W = zt(x);
3397
- o.run(o.parse(W), W, (M, P, H) => {
3398
- if (M || !P || !H)
3397
+ o.run(o.parse(W), W, (M, F, H) => {
3398
+ if (M || !F || !H)
3399
3399
  q(M);
3400
3400
  else {
3401
- const G = o.stringify(P, H);
3401
+ const G = o.stringify(F, H);
3402
3402
  G == null || (Ws(G) ? H.value = G : H.result = G), q(M, H);
3403
3403
  }
3404
3404
  });
3405
- function q(M, P) {
3406
- M || !P ? S(M) : C ? C(P) : j(null, P);
3405
+ function q(M, F) {
3406
+ M || !F ? S(M) : C ? C(F) : j(null, F);
3407
3407
  }
3408
3408
  }
3409
3409
  }
@@ -3417,7 +3417,7 @@ function ea() {
3417
3417
  }
3418
3418
  }
3419
3419
  }
3420
- function Pi(e, t) {
3420
+ function Fi(e, t) {
3421
3421
  return typeof e == "function" && // Prototypes do exist.
3422
3422
  // type-coverage:ignore-next-line
3423
3423
  e.prototype && // A function with keys in its prototype is probably a constructor.
@@ -3447,7 +3447,7 @@ function Xn(e, t) {
3447
3447
  "Cannot call `" + e + "` on a frozen processor.\nCreate a new processor first, by calling it: use `processor()` instead of `processor`."
3448
3448
  );
3449
3449
  }
3450
- function Fi(e) {
3450
+ function Pi(e) {
3451
3451
  if (!gr(e) || typeof e.type != "string")
3452
3452
  throw new TypeError("Expected node, got `" + e + "`");
3453
3453
  }
@@ -3501,7 +3501,7 @@ function Ve(e, t, n, r) {
3501
3501
  for (n && e.splice(t, n); o < r.length; )
3502
3502
  a = r.slice(o, o + 1e4), a.unshift(t, 0), e.splice(...a), o += 1e4, t += 1e4;
3503
3503
  }
3504
- function Fe(e, t) {
3504
+ function Pe(e, t) {
3505
3505
  return e.length > 0 ? (Ve(e, e.length, 0, t), e) : t;
3506
3506
  }
3507
3507
  const Ui = {}.hasOwnProperty;
@@ -3639,15 +3639,15 @@ function cc(e) {
3639
3639
  break;
3640
3640
  }
3641
3641
  v(r);
3642
- let P = W;
3643
- for (; P < t.events.length; )
3644
- t.events[P][1].end = Object.assign({}, M), P++;
3642
+ let F = W;
3643
+ for (; F < t.events.length; )
3644
+ t.events[F][1].end = Object.assign({}, M), F++;
3645
3645
  return Ve(
3646
3646
  t.events,
3647
3647
  q + 1,
3648
3648
  0,
3649
3649
  t.events.slice(W)
3650
- ), t.events.length = P, s(S);
3650
+ ), t.events.length = F, s(S);
3651
3651
  }
3652
3652
  return l(S);
3653
3653
  }
@@ -3711,8 +3711,8 @@ function cc(e) {
3711
3711
  i.events[M][1].end.offset > a)
3712
3712
  )
3713
3713
  return;
3714
- const P = t.events.length;
3715
- let H = P, G, K;
3714
+ const F = t.events.length;
3715
+ let H = F, G, K;
3716
3716
  for (; H--; )
3717
3717
  if (t.events[H][0] === "exit" && t.events[H][1].type === "chunkFlow") {
3718
3718
  if (G) {
@@ -3721,13 +3721,13 @@ function cc(e) {
3721
3721
  }
3722
3722
  G = !0;
3723
3723
  }
3724
- for (v(r), M = P; M < t.events.length; )
3724
+ for (v(r), M = F; M < t.events.length; )
3725
3725
  t.events[M][1].end = Object.assign({}, K), M++;
3726
3726
  Ve(
3727
3727
  t.events,
3728
3728
  H + 1,
3729
3729
  0,
3730
- t.events.slice(P)
3730
+ t.events.slice(F)
3731
3731
  ), t.events.length = M;
3732
3732
  }
3733
3733
  }
@@ -3798,27 +3798,27 @@ function pc(e, t) {
3798
3798
  type: u > 1 ? "strong" : "emphasis",
3799
3799
  start: Object.assign({}, a.start),
3800
3800
  end: Object.assign({}, l.end)
3801
- }, e[r][1].end = Object.assign({}, a.start), e[n][1].start = Object.assign({}, l.end), s = [], e[r][1].end.offset - e[r][1].start.offset && (s = Fe(s, [
3801
+ }, e[r][1].end = Object.assign({}, a.start), e[n][1].start = Object.assign({}, l.end), s = [], e[r][1].end.offset - e[r][1].start.offset && (s = Pe(s, [
3802
3802
  ["enter", e[r][1], t],
3803
3803
  ["exit", e[r][1], t]
3804
- ])), s = Fe(s, [
3804
+ ])), s = Pe(s, [
3805
3805
  ["enter", i, t],
3806
3806
  ["enter", a, t],
3807
3807
  ["exit", a, t],
3808
3808
  ["enter", o, t]
3809
- ]), s = Fe(
3809
+ ]), s = Pe(
3810
3810
  s,
3811
3811
  Or(
3812
3812
  t.parser.constructs.insideSpan.null,
3813
3813
  e.slice(r + 1, n),
3814
3814
  t
3815
3815
  )
3816
- ), s = Fe(s, [
3816
+ ), s = Pe(s, [
3817
3817
  ["exit", o, t],
3818
3818
  ["enter", l, t],
3819
3819
  ["exit", l, t],
3820
3820
  ["exit", i, t]
3821
- ]), e[n][1].end.offset - e[n][1].start.offset ? (c = 2, s = Fe(s, [
3821
+ ]), e[n][1].end.offset - e[n][1].start.offset ? (c = 2, s = Pe(s, [
3822
3822
  ["enter", e[n][1], t],
3823
3823
  ["exit", e[n][1], t]
3824
3824
  ])) : c = 0, Ve(e, r - 1, n - r + 3, s), n = r + s.length - c - 2;
@@ -4004,8 +4004,8 @@ function vc(e, t, n) {
4004
4004
  return s(M);
4005
4005
  }
4006
4006
  function s(M) {
4007
- const P = r.events[r.events.length - 1];
4008
- return o = P && P[1].type === "linePrefix" ? P[2].sliceSerialize(P[1], !0).length : 0, l = M, e.enter("codeFenced"), e.enter("codeFencedFence"), e.enter("codeFencedFenceSequence"), c(M);
4007
+ const F = r.events[r.events.length - 1];
4008
+ return o = F && F[1].type === "linePrefix" ? F[2].sliceSerialize(F[1], !0).length : 0, l = M, e.enter("codeFenced"), e.enter("codeFencedFence"), e.enter("codeFencedFenceSequence"), c(M);
4009
4009
  }
4010
4010
  function c(M) {
4011
4011
  return M === l ? (a++, e.consume(M), c) : a < 3 ? n(M) : (e.exit("codeFencedFenceSequence"), te(M) ? fe(e, p, "whitespace")(M) : p(M));
@@ -4049,7 +4049,7 @@ function vc(e, t, n) {
4049
4049
  function W(M) {
4050
4050
  return e.exit("codeFenced"), t(M);
4051
4051
  }
4052
- function q(M, P, H) {
4052
+ function q(M, F, H) {
4053
4053
  let G = 0;
4054
4054
  return K;
4055
4055
  function K(L) {
@@ -4070,7 +4070,7 @@ function vc(e, t, n) {
4070
4070
  return L === l ? (G++, M.consume(L), I) : G >= a ? (M.exit("codeFencedFenceSequence"), te(L) ? fe(M, z, "whitespace")(L) : z(L)) : H(L);
4071
4071
  }
4072
4072
  function z(L) {
4073
- return L === null || $(L) ? (M.exit("codeFencedFence"), P(L)) : H(L);
4073
+ return L === null || $(L) ? (M.exit("codeFencedFence"), F(L)) : H(L);
4074
4074
  }
4075
4075
  }
4076
4076
  }
@@ -4208,7 +4208,7 @@ const Sc = {
4208
4208
  tokenize: Lc,
4209
4209
  resolve: zc
4210
4210
  }, Oc = {
4211
- tokenize: Pc,
4211
+ tokenize: Fc,
4212
4212
  partial: !0
4213
4213
  };
4214
4214
  function zc(e) {
@@ -4239,7 +4239,7 @@ function Lc(e, t) {
4239
4239
  }), n = n.next, i;
4240
4240
  }
4241
4241
  }
4242
- function Pc(e, t, n) {
4242
+ function Fc(e, t, n) {
4243
4243
  const r = this;
4244
4244
  return i;
4245
4245
  function i(a) {
@@ -4338,7 +4338,7 @@ function Bt(e, t) {
4338
4338
  function Mt(e) {
4339
4339
  return e.replace(/[\t\n\r ]+/g, " ").replace(/^ | $/g, "").toLowerCase().toUpperCase();
4340
4340
  }
4341
- const Fc = {
4341
+ const Pc = {
4342
4342
  name: "definition",
4343
4343
  tokenize: Rc
4344
4344
  }, _c = {
@@ -4576,16 +4576,16 @@ function Kc(e, t, n) {
4576
4576
  return h === 45 ? (e.consume(h), r.interrupt ? t : g) : n(h);
4577
4577
  }
4578
4578
  function T(h) {
4579
- const me = "CDATA[";
4580
- return h === me.charCodeAt(l++) ? (e.consume(h), l === me.length ? r.interrupt ? t : b : T) : n(h);
4579
+ const ge = "CDATA[";
4580
+ return h === ge.charCodeAt(l++) ? (e.consume(h), l === ge.length ? r.interrupt ? t : b : T) : n(h);
4581
4581
  }
4582
4582
  function x(h) {
4583
4583
  return qe(h) ? (e.consume(h), a = String.fromCharCode(h), j) : n(h);
4584
4584
  }
4585
4585
  function j(h) {
4586
4586
  if (h === null || h === 47 || h === 62 || ke(h)) {
4587
- const me = h === 47, De = a.toLowerCase();
4588
- return !me && !o && Vi.includes(De) ? (i = 1, r.interrupt ? t(h) : b(h)) : qc.includes(a.toLowerCase()) ? (i = 6, me ? (e.consume(h), v) : r.interrupt ? t(h) : b(h)) : (i = 7, r.interrupt && !r.parser.lazy[r.now().line] ? n(h) : o ? C(h) : S(h));
4587
+ const ge = h === 47, De = a.toLowerCase();
4588
+ return !ge && !o && Vi.includes(De) ? (i = 1, r.interrupt ? t(h) : b(h)) : qc.includes(a.toLowerCase()) ? (i = 6, ge ? (e.consume(h), v) : r.interrupt ? t(h) : b(h)) : (i = 7, r.interrupt && !r.parser.lazy[r.now().line] ? n(h) : o ? C(h) : S(h));
4589
4589
  }
4590
4590
  return h === 45 || Se(h) ? (e.consume(h), a += String.fromCharCode(h), j) : n(h);
4591
4591
  }
@@ -4605,10 +4605,10 @@ function Kc(e, t, n) {
4605
4605
  return h === 61 ? (e.consume(h), M) : te(h) ? (e.consume(h), q) : S(h);
4606
4606
  }
4607
4607
  function M(h) {
4608
- return h === null || h === 60 || h === 61 || h === 62 || h === 96 ? n(h) : h === 34 || h === 39 ? (e.consume(h), u = h, P) : te(h) ? (e.consume(h), M) : H(h);
4608
+ return h === null || h === 60 || h === 61 || h === 62 || h === 96 ? n(h) : h === 34 || h === 39 ? (e.consume(h), u = h, F) : te(h) ? (e.consume(h), M) : H(h);
4609
4609
  }
4610
- function P(h) {
4611
- return h === u ? (e.consume(h), u = null, G) : h === null || $(h) ? n(h) : (e.consume(h), P);
4610
+ function F(h) {
4611
+ return h === u ? (e.consume(h), u = null, G) : h === null || $(h) ? n(h) : (e.consume(h), F);
4612
4612
  }
4613
4613
  function H(h) {
4614
4614
  return h === null || h === 34 || h === 39 || h === 47 || h === 60 || h === 61 || h === 62 || h === 96 || ke(h) ? q(h) : (e.consume(h), H);
@@ -4623,7 +4623,7 @@ function Kc(e, t, n) {
4623
4623
  return h === null || $(h) ? b(h) : te(h) ? (e.consume(h), A) : n(h);
4624
4624
  }
4625
4625
  function b(h) {
4626
- return h === 45 && i === 2 ? (e.consume(h), U) : h === 60 && i === 1 ? (e.consume(h), _) : h === 62 && i === 4 ? (e.consume(h), ue) : h === 63 && i === 3 ? (e.consume(h), g) : h === 93 && i === 5 ? (e.consume(h), ie) : $(h) && (i === 6 || i === 7) ? (e.exit("htmlFlowData"), e.check(
4626
+ return h === 45 && i === 2 ? (e.consume(h), U) : h === 60 && i === 1 ? (e.consume(h), _) : h === 62 && i === 4 ? (e.consume(h), ue) : h === 63 && i === 3 ? (e.consume(h), g) : h === 93 && i === 5 ? (e.consume(h), re) : $(h) && (i === 6 || i === 7) ? (e.exit("htmlFlowData"), e.check(
4627
4627
  Wc,
4628
4628
  ye,
4629
4629
  I
@@ -4650,12 +4650,12 @@ function Kc(e, t, n) {
4650
4650
  }
4651
4651
  function V(h) {
4652
4652
  if (h === 62) {
4653
- const me = a.toLowerCase();
4654
- return Vi.includes(me) ? (e.consume(h), ue) : b(h);
4653
+ const ge = a.toLowerCase();
4654
+ return Vi.includes(ge) ? (e.consume(h), ue) : b(h);
4655
4655
  }
4656
4656
  return qe(h) && a.length < 8 ? (e.consume(h), a += String.fromCharCode(h), V) : b(h);
4657
4657
  }
4658
- function ie(h) {
4658
+ function re(h) {
4659
4659
  return h === 93 ? (e.consume(h), g) : b(h);
4660
4660
  }
4661
4661
  function g(h) {
@@ -4739,10 +4739,10 @@ function tf(e, t, n) {
4739
4739
  return qe(g) ? (e.consume(g), M) : n(g);
4740
4740
  }
4741
4741
  function M(g) {
4742
- return g === 45 || Se(g) ? (e.consume(g), M) : P(g);
4742
+ return g === 45 || Se(g) ? (e.consume(g), M) : F(g);
4743
4743
  }
4744
- function P(g) {
4745
- return $(g) ? (a = P, _(g)) : te(g) ? (e.consume(g), P) : U(g);
4744
+ function F(g) {
4745
+ return $(g) ? (a = F, _(g)) : te(g) ? (e.consume(g), F) : U(g);
4746
4746
  }
4747
4747
  function H(g) {
4748
4748
  return g === 45 || Se(g) ? (e.consume(g), H) : g === 47 || g === 62 || ke(g) ? G(g) : n(g);
@@ -4777,12 +4777,12 @@ function tf(e, t, n) {
4777
4777
  function V(g) {
4778
4778
  return te(g) ? fe(
4779
4779
  e,
4780
- ie,
4780
+ re,
4781
4781
  "linePrefix",
4782
4782
  r.parser.constructs.disable.null.includes("codeIndented") ? void 0 : 4
4783
- )(g) : ie(g);
4783
+ )(g) : re(g);
4784
4784
  }
4785
- function ie(g) {
4785
+ function re(g) {
4786
4786
  return e.enter("htmlTextData"), a(g);
4787
4787
  }
4788
4788
  }
@@ -4836,19 +4836,19 @@ function lf(e, t) {
4836
4836
  return l = [
4837
4837
  ["enter", u, t],
4838
4838
  ["enter", s, t]
4839
- ], l = Fe(l, e.slice(o + 1, o + r + 3)), l = Fe(l, [["enter", c, t]]), l = Fe(
4839
+ ], l = Pe(l, e.slice(o + 1, o + r + 3)), l = Pe(l, [["enter", c, t]]), l = Pe(
4840
4840
  l,
4841
4841
  Or(
4842
4842
  t.parser.constructs.insideSpan.null,
4843
4843
  e.slice(o + r + 4, a - 3),
4844
4844
  t
4845
4845
  )
4846
- ), l = Fe(l, [
4846
+ ), l = Pe(l, [
4847
4847
  ["exit", c, t],
4848
4848
  e[a - 2],
4849
4849
  e[a - 1],
4850
4850
  ["exit", s, t]
4851
- ]), l = Fe(l, e.slice(a + 1)), l = Fe(l, [["exit", u, t]]), Ve(e, o, e.length, l), e;
4851
+ ]), l = Pe(l, e.slice(a + 1)), l = Pe(l, [["exit", u, t]]), Ve(e, o, e.length, l), e;
4852
4852
  }
4853
4853
  function uf(e, t, n) {
4854
4854
  const r = this;
@@ -5339,9 +5339,9 @@ function Of(e, t, n) {
5339
5339
  consume: C,
5340
5340
  enter: S,
5341
5341
  exit: W,
5342
- attempt: P(q),
5343
- check: P(M),
5344
- interrupt: P(M, {
5342
+ attempt: F(q),
5343
+ check: F(M),
5344
+ interrupt: F(M, {
5345
5345
  interrupt: !0
5346
5346
  })
5347
5347
  }, s = {
@@ -5359,7 +5359,7 @@ function Of(e, t, n) {
5359
5359
  let c = t.tokenize.call(s, u);
5360
5360
  return t.resolveAll && o.push(t), s;
5361
5361
  function p(A) {
5362
- return a = Fe(a, A), j(), a[a.length - 1] !== null ? [] : (H(t, 0), s.events = Or(o, s.events, s), s.events);
5362
+ return a = Pe(a, A), j(), a[a.length - 1] !== null ? [] : (H(t, 0), s.events = Or(o, s.events, s), s.events);
5363
5363
  }
5364
5364
  function m(A, b) {
5365
5365
  return Lf(d(A), b);
@@ -5411,18 +5411,18 @@ function Of(e, t, n) {
5411
5411
  function M(A, b) {
5412
5412
  b.restore();
5413
5413
  }
5414
- function P(A, b) {
5414
+ function F(A, b) {
5415
5415
  return I;
5416
5416
  function I(z, L, U) {
5417
- let _, V, ie, g;
5417
+ let _, V, re, g;
5418
5418
  return Array.isArray(z) ? ye(z) : "tokenize" in z ? (
5419
5419
  // @ts-expect-error Looks like a construct.
5420
5420
  ye([z])
5421
5421
  ) : ue(z);
5422
- function ue(oe) {
5422
+ function ue(ie) {
5423
5423
  return Te;
5424
5424
  function Te(be) {
5425
- const Be = be !== null && oe[be], ze = be !== null && oe.null, Ke = [
5425
+ const Be = be !== null && ie[be], ze = be !== null && ie.null, Ke = [
5426
5426
  // To do: add more extension tests.
5427
5427
  /* c8 ignore next 2 */
5428
5428
  ...Array.isArray(Be) ? Be : Be ? [Be] : [],
@@ -5431,27 +5431,27 @@ function Of(e, t, n) {
5431
5431
  return ye(Ke)(be);
5432
5432
  }
5433
5433
  }
5434
- function ye(oe) {
5435
- return _ = oe, V = 0, oe.length === 0 ? U : h(oe[V]);
5434
+ function ye(ie) {
5435
+ return _ = ie, V = 0, ie.length === 0 ? U : h(ie[V]);
5436
5436
  }
5437
- function h(oe) {
5437
+ function h(ie) {
5438
5438
  return Te;
5439
5439
  function Te(be) {
5440
- return g = G(), ie = oe, oe.partial || (s.currentConstruct = oe), oe.name && s.parser.constructs.disable.null.includes(oe.name) ? De() : oe.tokenize.call(
5440
+ return g = G(), re = ie, ie.partial || (s.currentConstruct = ie), ie.name && s.parser.constructs.disable.null.includes(ie.name) ? De() : ie.tokenize.call(
5441
5441
  // If we do have fields, create an object w/ `context` as its
5442
5442
  // prototype.
5443
5443
  // This allows a “live binding”, which is needed for `interrupt`.
5444
5444
  b ? Object.assign(Object.create(s), b) : s,
5445
5445
  u,
5446
- me,
5446
+ ge,
5447
5447
  De
5448
5448
  )(be);
5449
5449
  }
5450
5450
  }
5451
- function me(oe) {
5452
- return A(ie, g), L;
5451
+ function ge(ie) {
5452
+ return A(re, g), L;
5453
5453
  }
5454
- function De(oe) {
5454
+ function De(ie) {
5455
5455
  return g.restore(), ++V < _.length ? h(_[V]) : U;
5456
5456
  }
5457
5457
  }
@@ -5534,7 +5534,7 @@ function Lf(e, t) {
5534
5534
  }
5535
5535
  return r.join("");
5536
5536
  }
5537
- const Pf = {
5537
+ const Ff = {
5538
5538
  42: Ne,
5539
5539
  43: Ne,
5540
5540
  45: Ne,
@@ -5549,8 +5549,8 @@ const Pf = {
5549
5549
  56: Ne,
5550
5550
  57: Ne,
5551
5551
  62: na
5552
- }, Ff = {
5553
- 91: Fc
5552
+ }, Pf = {
5553
+ 91: Pc
5554
5554
  }, _f = {
5555
5555
  [-2]: Jn,
5556
5556
  [-1]: Jn,
@@ -5589,9 +5589,9 @@ const Pf = {
5589
5589
  }, $f = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineProperty({
5590
5590
  __proto__: null,
5591
5591
  attentionMarkers: Yf,
5592
- contentInitial: Ff,
5592
+ contentInitial: Pf,
5593
5593
  disable: Hf,
5594
- document: Pf,
5594
+ document: Ff,
5595
5595
  flow: Rf,
5596
5596
  flowInitial: _f,
5597
5597
  insideSpan: Qf,
@@ -5712,7 +5712,7 @@ function Jf(e) {
5712
5712
  transforms: [],
5713
5713
  canContainEols: ["emphasis", "fragment", "heading", "paragraph", "strong"],
5714
5714
  enter: {
5715
- autolink: l(he),
5715
+ autolink: l(me),
5716
5716
  autolinkProtocol: A,
5717
5717
  autolinkEmail: A,
5718
5718
  atxHeading: l(ot),
@@ -5738,13 +5738,13 @@ function Jf(e) {
5738
5738
  htmlFlowData: A,
5739
5739
  htmlText: l(R, u),
5740
5740
  htmlTextData: A,
5741
- image: l(ne),
5741
+ image: l(oe),
5742
5742
  label: u,
5743
- link: l(he),
5743
+ link: l(me),
5744
5744
  listItem: l(je),
5745
5745
  listItemValue: T,
5746
- listOrdered: l(ge, d),
5747
- listUnordered: l(ge),
5746
+ listOrdered: l(he, d),
5747
+ listUnordered: l(he),
5748
5748
  paragraph: l(xe),
5749
5749
  reference: De,
5750
5750
  referenceString: u,
@@ -5756,7 +5756,7 @@ function Jf(e) {
5756
5756
  },
5757
5757
  exit: {
5758
5758
  atxHeading: c(),
5759
- atxHeadingSequence: P,
5759
+ atxHeadingSequence: F,
5760
5760
  autolink: c(),
5761
5761
  autolinkEmail: ze,
5762
5762
  autolinkProtocol: Be,
@@ -5785,7 +5785,7 @@ function Jf(e) {
5785
5785
  htmlFlowData: b,
5786
5786
  htmlText: c(U),
5787
5787
  htmlTextData: b,
5788
- image: c(ie),
5788
+ image: c(re),
5789
5789
  label: ue,
5790
5790
  labelText: g,
5791
5791
  lineEnding: I,
@@ -5794,10 +5794,10 @@ function Jf(e) {
5794
5794
  listOrdered: c(),
5795
5795
  listUnordered: c(),
5796
5796
  paragraph: c(),
5797
- referenceString: oe,
5797
+ referenceString: ie,
5798
5798
  resourceDestinationString: ye,
5799
5799
  resourceTitleString: h,
5800
- resource: me,
5800
+ resource: ge,
5801
5801
  setextHeading: c(K),
5802
5802
  setextHeadingLineSequence: G,
5803
5803
  setextHeadingText: H,
@@ -5824,25 +5824,25 @@ function Jf(e) {
5824
5824
  setData: o,
5825
5825
  getData: a
5826
5826
  }, ee = [];
5827
- let re = -1;
5828
- for (; ++re < D.length; )
5829
- if (D[re][1].type === "listOrdered" || D[re][1].type === "listUnordered")
5830
- if (D[re][0] === "enter")
5831
- ee.push(re);
5827
+ let ne = -1;
5828
+ for (; ++ne < D.length; )
5829
+ if (D[ne][1].type === "listOrdered" || D[ne][1].type === "listUnordered")
5830
+ if (D[ne][0] === "enter")
5831
+ ee.push(ne);
5832
5832
  else {
5833
5833
  const Ie = ee.pop();
5834
- re = i(D, Ie, re);
5834
+ ne = i(D, Ie, ne);
5835
5835
  }
5836
- for (re = -1; ++re < D.length; ) {
5837
- const Ie = t[D[re][0]];
5838
- pa.call(Ie, D[re][1].type) && Ie[D[re][1].type].call(
5836
+ for (ne = -1; ++ne < D.length; ) {
5837
+ const Ie = t[D[ne][0]];
5838
+ pa.call(Ie, D[ne][1].type) && Ie[D[ne][1].type].call(
5839
5839
  Object.assign(
5840
5840
  {
5841
- sliceSerialize: D[re][2].sliceSerialize
5841
+ sliceSerialize: D[ne][2].sliceSerialize
5842
5842
  },
5843
5843
  Y
5844
5844
  ),
5845
- D[re][1]
5845
+ D[ne][1]
5846
5846
  );
5847
5847
  }
5848
5848
  if (Y.tokenStack.length > 0) {
@@ -5864,15 +5864,15 @@ function Jf(e) {
5864
5864
  offset: 0
5865
5865
  }
5866
5866
  )
5867
- }, re = -1; ++re < t.transforms.length; )
5868
- O = t.transforms[re](O) || O;
5867
+ }, ne = -1; ++ne < t.transforms.length; )
5868
+ O = t.transforms[ne](O) || O;
5869
5869
  return O;
5870
5870
  }
5871
5871
  function i(D, O, Y) {
5872
- let ee = O - 1, re = -1, Ie = !1, Qe, Ye, lt, Ee;
5872
+ let ee = O - 1, ne = -1, Ie = !1, Qe, Ye, lt, Ee;
5873
5873
  for (; ++ee <= Y; ) {
5874
5874
  const se = D[ee];
5875
- if (se[1].type === "listUnordered" || se[1].type === "listOrdered" || se[1].type === "blockQuote" ? (se[0] === "enter" ? re++ : re--, Ee = void 0) : se[1].type === "lineEndingBlank" ? se[0] === "enter" && (Qe && !Ee && !re && !lt && (lt = ee), Ee = void 0) : se[1].type === "linePrefix" || se[1].type === "listItemValue" || se[1].type === "listItemMarker" || se[1].type === "listItemPrefix" || se[1].type === "listItemPrefixWhitespace" || (Ee = void 0), !re && se[0] === "enter" && se[1].type === "listItemPrefix" || re === -1 && se[0] === "exit" && (se[1].type === "listUnordered" || se[1].type === "listOrdered")) {
5875
+ if (se[1].type === "listUnordered" || se[1].type === "listOrdered" || se[1].type === "blockQuote" ? (se[0] === "enter" ? ne++ : ne--, Ee = void 0) : se[1].type === "lineEndingBlank" ? se[0] === "enter" && (Qe && !Ee && !ne && !lt && (lt = ee), Ee = void 0) : se[1].type === "linePrefix" || se[1].type === "listItemValue" || se[1].type === "listItemMarker" || se[1].type === "listItemPrefix" || se[1].type === "listItemPrefixWhitespace" || (Ee = void 0), !ne && se[0] === "enter" && se[1].type === "listItemPrefix" || ne === -1 && se[0] === "exit" && (se[1].type === "listUnordered" || se[1].type === "listOrdered")) {
5876
5876
  if (Qe) {
5877
5877
  let Et = ee;
5878
5878
  for (Ye = void 0; Et--; ) {
@@ -5987,7 +5987,7 @@ function Jf(e) {
5987
5987
  const D = this.resume(), O = this.stack[this.stack.length - 1];
5988
5988
  O.url = D;
5989
5989
  }
5990
- function P(D) {
5990
+ function F(D) {
5991
5991
  const O = this.stack[this.stack.length - 1];
5992
5992
  if (!O.depth) {
5993
5993
  const Y = this.sliceSerialize(D).length;
@@ -6048,7 +6048,7 @@ function Jf(e) {
6048
6048
  delete D.identifier, delete D.label;
6049
6049
  o("referenceType");
6050
6050
  }
6051
- function ie() {
6051
+ function re() {
6052
6052
  const D = this.stack[this.stack.length - 1];
6053
6053
  if (a("inReference")) {
6054
6054
  const O = a("referenceType") || "shortcut";
@@ -6077,13 +6077,13 @@ function Jf(e) {
6077
6077
  const D = this.resume(), O = this.stack[this.stack.length - 1];
6078
6078
  O.title = D;
6079
6079
  }
6080
- function me() {
6080
+ function ge() {
6081
6081
  o("inReference");
6082
6082
  }
6083
6083
  function De() {
6084
6084
  o("referenceType", "collapsed");
6085
6085
  }
6086
- function oe(D) {
6086
+ function ie(D) {
6087
6087
  const O = this.resume(), Y = this.stack[this.stack.length - 1];
6088
6088
  Y.label = O, Y.identifier = Mt(
6089
6089
  this.sliceSerialize(D)
@@ -6099,8 +6099,8 @@ function Jf(e) {
6099
6099
  O,
6100
6100
  Y === "characterReferenceMarkerNumeric" ? 10 : 16
6101
6101
  ), o("characterReferenceType")) : ee = zr(O);
6102
- const re = this.stack.pop();
6103
- re.value += ee, re.position.end = Je(D.end);
6102
+ const ne = this.stack.pop();
6103
+ ne.value += ee, ne.position.end = Je(D.end);
6104
6104
  }
6105
6105
  function Be(D) {
6106
6106
  b.call(this, D);
@@ -6165,7 +6165,7 @@ function Jf(e) {
6165
6165
  value: ""
6166
6166
  };
6167
6167
  }
6168
- function ne() {
6168
+ function oe() {
6169
6169
  return {
6170
6170
  type: "image",
6171
6171
  title: null,
@@ -6173,7 +6173,7 @@ function Jf(e) {
6173
6173
  alt: null
6174
6174
  };
6175
6175
  }
6176
- function he() {
6176
+ function me() {
6177
6177
  return {
6178
6178
  type: "link",
6179
6179
  title: null,
@@ -6181,7 +6181,7 @@ function Jf(e) {
6181
6181
  children: []
6182
6182
  };
6183
6183
  }
6184
- function ge(D) {
6184
+ function he(D) {
6185
6185
  return {
6186
6186
  type: "list",
6187
6187
  ordered: D.type === "listOrdered",
@@ -6546,9 +6546,9 @@ function bp(e, t) {
6546
6546
  };
6547
6547
  return e.patch(t, n), e.applyData(t, n);
6548
6548
  }
6549
- const Pr = ya("start"), Fr = ya("end");
6549
+ const Fr = ya("start"), Pr = ya("end");
6550
6550
  function wp(e) {
6551
- return { start: Pr(e), end: Fr(e) };
6551
+ return { start: Fr(e), end: Pr(e) };
6552
6552
  }
6553
6553
  function ya(e) {
6554
6554
  return t;
@@ -6581,7 +6581,7 @@ function vp(e, t) {
6581
6581
  tagName: "tbody",
6582
6582
  properties: {},
6583
6583
  children: e.wrap(n, !0)
6584
- }, l = Pr(t.children[1]), u = Fr(t.children[t.children.length - 1]);
6584
+ }, l = Fr(t.children[1]), u = Pr(t.children[t.children.length - 1]);
6585
6585
  l.line && u.line && (a.position = { start: l, end: u }), i.push(a);
6586
6586
  }
6587
6587
  const o = {
@@ -6789,7 +6789,7 @@ const Op = !0, eo = !1, zp = "skip", Lp = (
6789
6789
  return p;
6790
6790
  function p() {
6791
6791
  let m = [], d, T, x;
6792
- if ((!t || i(l, u, s[s.length - 1] || null)) && (m = Pp(n(l, s)), m[0] === eo))
6792
+ if ((!t || i(l, u, s[s.length - 1] || null)) && (m = Fp(n(l, s)), m[0] === eo))
6793
6793
  return m;
6794
6794
  if (l.children && m[0] !== zp)
6795
6795
  for (T = (r ? l.children.length : -1) + o, x = s.concat(l); T > -1 && T < l.children.length; ) {
@@ -6802,7 +6802,7 @@ const Op = !0, eo = !1, zp = "skip", Lp = (
6802
6802
  }
6803
6803
  }
6804
6804
  );
6805
- function Pp(e) {
6805
+ function Fp(e) {
6806
6806
  return Array.isArray(e) ? e : typeof e == "number" ? [Op, e] : [e];
6807
6807
  }
6808
6808
  const _r = (
@@ -6831,7 +6831,7 @@ const _r = (
6831
6831
  }
6832
6832
  }
6833
6833
  );
6834
- function Fp(e) {
6834
+ function Pp(e) {
6835
6835
  return !e || !e.position || !e.position.start || !e.position.start.line || !e.position.start.column || !e.position.end || !e.position.end.line || !e.position.end.column;
6836
6836
  }
6837
6837
  const to = {}.hasOwnProperty;
@@ -6872,7 +6872,7 @@ function Rp(e, t) {
6872
6872
  }
6873
6873
  if (s) {
6874
6874
  const p = "type" in s ? s : { position: s };
6875
- Fp(p) || (c.position = { start: Pr(p), end: Fr(p) });
6875
+ Pp(p) || (c.position = { start: Fr(p), end: Pr(p) });
6876
6876
  }
6877
6877
  return c;
6878
6878
  }
@@ -8666,19 +8666,19 @@ za.propTypes = {
8666
8666
  message: N.shape().isRequired,
8667
8667
  onFeedbackThumbSelection: N.func.isRequired
8668
8668
  };
8669
- const Pd = (e) => {
8669
+ const Fd = (e) => {
8670
8670
  Array.from(e.entries()).forEach((n) => {
8671
8671
  const r = n[0], i = n[1];
8672
8672
  r.toLocaleLowerCase().startsWith("utm_") && e.delete(r, i);
8673
8673
  });
8674
- }, Fd = (e) => {
8674
+ }, Pd = (e) => {
8675
8675
  e.delete("linked_from", "xpert_chat"), e.append("linked_from", "xpert_chat");
8676
8676
  };
8677
8677
  function _d(e) {
8678
8678
  const t = new URL(e), n = t.host;
8679
8679
  if (n == null ? void 0 : n.includes("edx.org")) {
8680
8680
  const i = t.searchParams;
8681
- Pd(i), Fd(i), t.search = i;
8681
+ Fd(i), Pd(i), t.search = i;
8682
8682
  }
8683
8683
  return t.toString();
8684
8684
  }
@@ -8989,7 +8989,7 @@ const Hd = zn, $d = () => {
8989
8989
  }
8990
8990
  );
8991
8991
  }, rr = $d;
8992
- var Pa = { exports: {} };
8992
+ var Fa = { exports: {} };
8993
8993
  /*!
8994
8994
  Copyright (c) 2018 Jed Watson.
8995
8995
  Licensed under the MIT License (MIT), see
@@ -9024,9 +9024,9 @@ var Pa = { exports: {} };
9024
9024
  }
9025
9025
  e.exports ? (n.default = n, e.exports = n) : window.classNames = n;
9026
9026
  })();
9027
- })(Pa);
9028
- var qd = Pa.exports;
9029
- const Fa = /* @__PURE__ */ nt(qd), Vd = 991;
9027
+ })(Fa);
9028
+ var qd = Fa.exports;
9029
+ const Pa = /* @__PURE__ */ nt(qd), Vd = 991;
9030
9030
  function Wr({
9031
9031
  label: e,
9032
9032
  className: t,
@@ -9041,7 +9041,7 @@ function Wr({
9041
9041
  {
9042
9042
  type: "button",
9043
9043
  "aria-label": e,
9044
- className: Fa(
9044
+ className: Pa(
9045
9045
  {
9046
9046
  "xpert_chatbot__floating-action-btn__icon": !a,
9047
9047
  "xpert_chatbot__floating-action-btn__icon--mobile": a
@@ -9447,7 +9447,7 @@ var go = {
9447
9447
  return ct(g);
9448
9448
  }), V = z.slice().reverse().find(function(g) {
9449
9449
  return ct(g);
9450
- }), ie = !!I.find(function(g) {
9450
+ }), re = !!I.find(function(g) {
9451
9451
  return et(g) > 0;
9452
9452
  });
9453
9453
  return {
@@ -9455,7 +9455,7 @@ var go = {
9455
9455
  tabbableNodes: I,
9456
9456
  focusableNodes: z,
9457
9457
  /** True if at least one node with positive `tabindex` was found in this container. */
9458
- posTabIndexesFound: ie,
9458
+ posTabIndexesFound: re,
9459
9459
  /** First tabbable node in container, __tabindex__ order; `undefined` if none. */
9460
9460
  firstTabbableNode: L,
9461
9461
  /** Last tabbable node in container, __tabindex__ order; `undefined` if none. */
@@ -9481,10 +9481,10 @@ var go = {
9481
9481
  */
9482
9482
  nextTabbableNode: function(ue) {
9483
9483
  var ye = arguments.length > 1 && arguments[1] !== void 0 ? arguments[1] : !0, h = I.indexOf(ue);
9484
- return h < 0 ? ye ? z.slice(z.indexOf(ue) + 1).find(function(me) {
9485
- return ct(me);
9486
- }) : z.slice(0, z.indexOf(ue)).reverse().find(function(me) {
9487
- return ct(me);
9484
+ return h < 0 ? ye ? z.slice(z.indexOf(ue) + 1).find(function(ge) {
9485
+ return ct(ge);
9486
+ }) : z.slice(0, z.indexOf(ue)).reverse().find(function(ge) {
9487
+ return ct(ge);
9488
9488
  }) : I[h + (ye ? 1 : -1)];
9489
9489
  }
9490
9490
  };
@@ -9518,29 +9518,29 @@ var go = {
9518
9518
  I = I || on(z), m();
9519
9519
  var _ = null;
9520
9520
  if (a.tabbableGroups.length > 0) {
9521
- var V = s(I, z), ie = V >= 0 ? a.containerGroups[V] : void 0;
9521
+ var V = s(I, z), re = V >= 0 ? a.containerGroups[V] : void 0;
9522
9522
  if (V < 0)
9523
9523
  U ? _ = a.tabbableGroups[a.tabbableGroups.length - 1].lastTabbableNode : _ = a.tabbableGroups[0].firstTabbableNode;
9524
9524
  else if (U) {
9525
- var g = yo(a.tabbableGroups, function(oe) {
9526
- var Te = oe.firstTabbableNode;
9525
+ var g = yo(a.tabbableGroups, function(ie) {
9526
+ var Te = ie.firstTabbableNode;
9527
9527
  return I === Te;
9528
9528
  });
9529
- if (g < 0 && (ie.container === I || fn(I, o.tabbableOptions) && !ct(I, o.tabbableOptions) && !ie.nextTabbableNode(I, !1)) && (g = V), g >= 0) {
9529
+ if (g < 0 && (re.container === I || fn(I, o.tabbableOptions) && !ct(I, o.tabbableOptions) && !re.nextTabbableNode(I, !1)) && (g = V), g >= 0) {
9530
9530
  var ue = g === 0 ? a.tabbableGroups.length - 1 : g - 1, ye = a.tabbableGroups[ue];
9531
9531
  _ = et(I) >= 0 ? ye.lastTabbableNode : ye.lastDomTabbableNode;
9532
9532
  } else
9533
- Qt(z) || (_ = ie.nextTabbableNode(I, !1));
9533
+ Qt(z) || (_ = re.nextTabbableNode(I, !1));
9534
9534
  } else {
9535
- var h = yo(a.tabbableGroups, function(oe) {
9536
- var Te = oe.lastTabbableNode;
9535
+ var h = yo(a.tabbableGroups, function(ie) {
9536
+ var Te = ie.lastTabbableNode;
9537
9537
  return I === Te;
9538
9538
  });
9539
- if (h < 0 && (ie.container === I || fn(I, o.tabbableOptions) && !ct(I, o.tabbableOptions) && !ie.nextTabbableNode(I)) && (h = V), h >= 0) {
9540
- var me = h === a.tabbableGroups.length - 1 ? 0 : h + 1, De = a.tabbableGroups[me];
9539
+ if (h < 0 && (re.container === I || fn(I, o.tabbableOptions) && !ct(I, o.tabbableOptions) && !re.nextTabbableNode(I)) && (h = V), h >= 0) {
9540
+ var ge = h === a.tabbableGroups.length - 1 ? 0 : h + 1, De = a.tabbableGroups[ge];
9541
9541
  _ = et(I) >= 0 ? De.firstTabbableNode : De.firstDomTabbableNode;
9542
9542
  } else
9543
- Qt(z) || (_ = ie.nextTabbableNode(I));
9543
+ Qt(z) || (_ = re.nextTabbableNode(I));
9544
9544
  }
9545
9545
  } else
9546
9546
  _ = c("fallbackFocus");
@@ -9573,10 +9573,10 @@ var go = {
9573
9573
  if (et(a.mostRecentlyFocusedNode) > 0) {
9574
9574
  var _ = s(a.mostRecentlyFocusedNode), V = a.containerGroups[_].tabbableNodes;
9575
9575
  if (V.length > 0) {
9576
- var ie = V.findIndex(function(g) {
9576
+ var re = V.findIndex(function(g) {
9577
9577
  return g === a.mostRecentlyFocusedNode;
9578
9578
  });
9579
- ie >= 0 && (o.isKeyForward(a.recentNavEvent) ? ie + 1 < V.length && (L = V[ie + 1], U = !1) : ie - 1 >= 0 && (L = V[ie - 1], U = !1));
9579
+ re >= 0 && (o.isKeyForward(a.recentNavEvent) ? re + 1 < V.length && (L = V[re + 1], U = !1) : re - 1 >= 0 && (L = V[re - 1], U = !1));
9580
9580
  }
9581
9581
  } else
9582
9582
  a.containerGroups.some(function(g) {
@@ -9628,7 +9628,7 @@ var go = {
9628
9628
  capture: !0,
9629
9629
  passive: !1
9630
9630
  }), l;
9631
- }, P = function() {
9631
+ }, F = function() {
9632
9632
  if (a.active)
9633
9633
  return r.removeEventListener("focusin", C, !0), r.removeEventListener("mousedown", v, !0), r.removeEventListener("touchstart", v, !0), r.removeEventListener("click", q, !0), r.removeEventListener("keydown", W, !0), l;
9634
9634
  }, H = function(b) {
@@ -9672,7 +9672,7 @@ var go = {
9672
9672
  onPostDeactivate: o.onPostDeactivate,
9673
9673
  checkCanReturnFocus: o.checkCanReturnFocus
9674
9674
  }, b);
9675
- clearTimeout(a.delayInitialFocusTimer), a.delayInitialFocusTimer = void 0, P(), a.active = !1, a.paused = !1, K(), go.deactivateTrap(i, l);
9675
+ clearTimeout(a.delayInitialFocusTimer), a.delayInitialFocusTimer = void 0, F(), a.active = !1, a.paused = !1, K(), go.deactivateTrap(i, l);
9676
9676
  var z = u(I, "onDeactivate"), L = u(I, "onPostDeactivate"), U = u(I, "checkCanReturnFocus"), _ = u(I, "returnFocus", "returnFocusOnDeactivate");
9677
9677
  z == null || z();
9678
9678
  var V = function() {
@@ -9686,7 +9686,7 @@ var go = {
9686
9686
  if (a.paused || !a.active)
9687
9687
  return this;
9688
9688
  var I = u(b, "onPause"), z = u(b, "onPostPause");
9689
- return a.paused = !0, I == null || I(), P(), K(), z == null || z(), this;
9689
+ return a.paused = !0, I == null || I(), F(), K(), z == null || z(), this;
9690
9690
  },
9691
9691
  unpause: function(b) {
9692
9692
  if (!a.paused || !a.active)
@@ -9754,9 +9754,9 @@ function Nh(e, t) {
9754
9754
  return t;
9755
9755
  if (t !== void 0)
9756
9756
  throw new TypeError("Derived constructors may only return object or undefined");
9757
- return Ft(e);
9757
+ return Pt(e);
9758
9758
  }
9759
- function Ft(e) {
9759
+ function Pt(e) {
9760
9760
  if (e === void 0)
9761
9761
  throw new ReferenceError("this hasn't been initialised - super() hasn't been called");
9762
9762
  return e;
@@ -9802,7 +9802,7 @@ var an = ve, B = Q, Ah = bh, Ch = Ah.createFocusTrap, Sh = wh, Oh = Sh.isFocusab
9802
9802
  var t = Ih(n);
9803
9803
  function n(r) {
9804
9804
  var i;
9805
- vh(this, n), i = t.call(this, r), jh(Ft(i), "getNodeForOption", function(l) {
9805
+ vh(this, n), i = t.call(this, r), jh(Pt(i), "getNodeForOption", function(l) {
9806
9806
  var u, s = (u = this.internalOptions[l]) !== null && u !== void 0 ? u : this.originalOptions[l];
9807
9807
  if (typeof s == "function") {
9808
9808
  for (var c = arguments.length, p = new Array(c > 1 ? c - 1 : 0), m = 1; m < c; m++)
@@ -9821,7 +9821,7 @@ var an = ve, B = Q, Ah = bh, Ch = Ah.createFocusTrap, Sh = wh, Oh = Sh.isFocusab
9821
9821
  throw new Error("`".concat(l, "` as selector refers to no known node"));
9822
9822
  }
9823
9823
  return d;
9824
- }), i.handleDeactivate = i.handleDeactivate.bind(Ft(i)), i.handlePostDeactivate = i.handlePostDeactivate.bind(Ft(i)), i.handleClickOutsideDeactivates = i.handleClickOutsideDeactivates.bind(Ft(i)), i.internalOptions = {
9824
+ }), i.handleDeactivate = i.handleDeactivate.bind(Pt(i)), i.handlePostDeactivate = i.handlePostDeactivate.bind(Pt(i)), i.handleClickOutsideDeactivates = i.handleClickOutsideDeactivates.bind(Pt(i)), i.internalOptions = {
9825
9825
  // We need to hijack the returnFocusOnDeactivate option,
9826
9826
  // because React can move focus into the element before we arrived at
9827
9827
  // this lifecycle hook (e.g. with autoFocus inputs). So the component
@@ -9984,7 +9984,7 @@ var an = ve, B = Q, Ah = bh, Ch = Ah.createFocusTrap, Sh = wh, Oh = Sh.isFocusab
9984
9984
  return null;
9985
9985
  }
9986
9986
  }]), n;
9987
- }(an.Component), Pt = typeof Element > "u" ? Function : Element;
9987
+ }(an.Component), Ft = typeof Element > "u" ? Function : Element;
9988
9988
  Gr.propTypes = {
9989
9989
  active: B.bool,
9990
9990
  paused: B.bool,
@@ -10000,9 +10000,9 @@ Gr.propTypes = {
10000
10000
  onDeactivate: B.func,
10001
10001
  onPostDeactivate: B.func,
10002
10002
  checkCanReturnFocus: B.func,
10003
- initialFocus: B.oneOfType([B.instanceOf(Pt), B.string, B.bool, B.func]),
10003
+ initialFocus: B.oneOfType([B.instanceOf(Ft), B.string, B.bool, B.func]),
10004
10004
  fallbackFocus: B.oneOfType([
10005
- B.instanceOf(Pt),
10005
+ B.instanceOf(Ft),
10006
10006
  B.string,
10007
10007
  // NOTE: does not support `false` as value (or return value from function)
10008
10008
  B.func
@@ -10010,7 +10010,7 @@ Gr.propTypes = {
10010
10010
  escapeDeactivates: B.oneOfType([B.bool, B.func]),
10011
10011
  clickOutsideDeactivates: B.oneOfType([B.bool, B.func]),
10012
10012
  returnFocusOnDeactivate: B.bool,
10013
- setReturnFocus: B.oneOfType([B.instanceOf(Pt), B.string, B.bool, B.func]),
10013
+ setReturnFocus: B.oneOfType([B.instanceOf(Ft), B.string, B.bool, B.func]),
10014
10014
  allowOutsideClick: B.oneOfType([B.bool, B.func]),
10015
10015
  preventScroll: B.bool,
10016
10016
  tabbableOptions: B.shape({
@@ -10021,12 +10021,12 @@ Gr.propTypes = {
10021
10021
  isKeyForward: B.func,
10022
10022
  isKeyBackward: B.func
10023
10023
  }),
10024
- containerElements: B.arrayOf(B.instanceOf(Pt)),
10024
+ containerElements: B.arrayOf(B.instanceOf(Ft)),
10025
10025
  // DOM element ONLY
10026
10026
  children: B.oneOfType([
10027
10027
  B.element,
10028
10028
  // React element
10029
- B.instanceOf(Pt)
10029
+ B.instanceOf(Ft)
10030
10030
  // DOM element
10031
10031
  ])
10032
10032
  // NOTE: _createFocusTrap is internal, for testing purposes only, so we don't
@@ -10041,7 +10041,7 @@ Gr.defaultProps = {
10041
10041
  };
10042
10042
  var zh = Gr;
10043
10043
  const Lh = /* @__PURE__ */ nt(zh);
10044
- const Ph = 991;
10044
+ const Fh = 991;
10045
10045
  function Zr({
10046
10046
  style: e,
10047
10047
  className: t,
@@ -10049,7 +10049,7 @@ function Zr({
10049
10049
  isNormalSize: r,
10050
10050
  isMounted: i
10051
10051
  }) {
10052
- const o = vt(Ph), a = tt(null);
10052
+ const o = vt(Fh), a = tt(null);
10053
10053
  return /* @__PURE__ */ k.jsx(
10054
10054
  Lh,
10055
10055
  {
@@ -10066,7 +10066,7 @@ function Zr({
10066
10066
  tabIndex: -1,
10067
10067
  role: "dialog",
10068
10068
  "aria-modal": !0,
10069
- className: Fa(
10069
+ className: Pa(
10070
10070
  {
10071
10071
  "xpert_chatbot__floating-popup": !o,
10072
10072
  "xpert_chatbot__floating-popup--mobile": o,
@@ -10095,7 +10095,7 @@ Zr.defaultProps = {
10095
10095
  isNormalSize: !0,
10096
10096
  isMounted: !1
10097
10097
  };
10098
- const Fh = "data:image/svg+xml;base64,PHN2ZyB4bWxucz0iaHR0cDovL3d3dy53My5vcmcvMjAwMC9zdmciIGhlaWdodD0iMjQiIHZpZXdCb3g9IjAgLTk2MCA5NjAgOTYwIiB3aWR0aD0iMjQiPjxwYXRoIGQ9Ik00NDAtMTIwdi04MGgzMjB2LTI4NHEwLTExNy04MS41LTE5OC41VDQ4MC03NjRxLTExNyAwLTE5OC41IDgxLjVUMjAwLTQ4NHYyNDRoLTQwcS0zMyAwLTU2LjUtMjMuNVQ4MC0zMjB2LTgwcTAtMjEgMTAuNS0zOS41VDEyMC00NjlsMy01M3E4LTY4IDM5LjUtMTI2dDc5LTEwMXE0Ny41LTQzIDEwOS02N1Q0ODAtODQwcTY4IDAgMTI5IDI0dDEwOSA2Ni41UTc2Ni03MDcgNzk3LTY0OXQ0MCAxMjZsMyA1MnExOSA5IDI5LjUgMjd0MTAuNSAzOHY5MnEwIDIwLTEwLjUgMzhUODQwLTI0OXY0OXEwIDMzLTIzLjUgNTYuNVQ3NjAtMTIwSDQ0MFptLTgwLTI4MHEtMTcgMC0yOC41LTExLjVUMzIwLTQ0MHEwLTE3IDExLjUtMjguNVQzNjAtNDgwcTE3IDAgMjguNSAxMS41VDQwMC00NDBxMCAxNy0xMS41IDI4LjVUMzYwLTQwMFptMjQwIDBxLTE3IDAtMjguNS0xMS41VDU2MC00NDBxMC0xNyAxMS41LTI4LjVUNjAwLTQ4MHExNyAwIDI4LjUgMTEuNVQ2NDAtNDQwcTAgMTctMTEuNSAyOC41VDYwMC00MDBabS0zNTktNjJxLTctMTA2IDY0LTE4MnQxNzctNzZxODkgMCAxNTYuNSA1Ni41VDcyMC01MTlxLTkxLTEtMTY3LjUtNDlUNDM1LTY5OHEtMTYgODAtNjcuNSAxNDIuNVQyNDEtNDYyWiIvPjwvc3ZnPg==";
10098
+ const Ph = "data:image/svg+xml;base64,PHN2ZyB4bWxucz0iaHR0cDovL3d3dy53My5vcmcvMjAwMC9zdmciIGhlaWdodD0iMjQiIHZpZXdCb3g9IjAgLTk2MCA5NjAgOTYwIiB3aWR0aD0iMjQiPjxwYXRoIGQ9Ik00NDAtMTIwdi04MGgzMjB2LTI4NHEwLTExNy04MS41LTE5OC41VDQ4MC03NjRxLTExNyAwLTE5OC41IDgxLjVUMjAwLTQ4NHYyNDRoLTQwcS0zMyAwLTU2LjUtMjMuNVQ4MC0zMjB2LTgwcTAtMjEgMTAuNS0zOS41VDEyMC00NjlsMy01M3E4LTY4IDM5LjUtMTI2dDc5LTEwMXE0Ny41LTQzIDEwOS02N1Q0ODAtODQwcTY4IDAgMTI5IDI0dDEwOSA2Ni41UTc2Ni03MDcgNzk3LTY0OXQ0MCAxMjZsMyA1MnExOSA5IDI5LjUgMjd0MTAuNSAzOHY5MnEwIDIwLTEwLjUgMzhUODQwLTI0OXY0OXEwIDMzLTIzLjUgNTYuNVQ3NjAtMTIwSDQ0MFptLTgwLTI4MHEtMTcgMC0yOC41LTExLjVUMzIwLTQ0MHEwLTE3IDExLjUtMjguNVQzNjAtNDgwcTE3IDAgMjguNSAxMS41VDQwMC00NDBxMCAxNy0xMS41IDI4LjVUMzYwLTQwMFptMjQwIDBxLTE3IDAtMjguNS0xMS41VDU2MC00NDBxMC0xNyAxMS41LTI4LjVUNjAwLTQ4MHExNyAwIDI4LjUgMTEuNVQ2NDAtNDQwcTAgMTctMTEuNSAyOC41VDYwMC00MDBabS0zNTktNjJxLTctMTA2IDY0LTE4MnQxNzctNzZxODkgMCAxNTYuNSA1Ni41VDcyMC01MTlxLTkxLTEtMTY3LjUtNDlUNDM1LTY5OHEtMTYgODAtNjcuNSAxNDIuNVQyNDEtNDYyWiIvPjwvc3ZnPg==";
10099
10099
  function Kr({ submitEvent: e, setLiveChatOpen: t, isTestUser: n }) {
10100
10100
  const [r, i] = we(!0), { primaryColor: o, xpertKey: a, userTracking: l, conversationScreen: u } = We(Ge), s = Yt(
10101
10101
  (m) => {
@@ -10168,7 +10168,7 @@ function Kr({ submitEvent: e, setLiveChatOpen: t, isTestUser: n }) {
10168
10168
  {
10169
10169
  height: "24px",
10170
10170
  width: "24px",
10171
- src: Fh,
10171
+ src: Ph,
10172
10172
  alt: "Open live chat window icon"
10173
10173
  }
10174
10174
  )
@@ -10393,22 +10393,17 @@ function Xr({ submitEventExternal: e }) {
10393
10393
  launchButton: o,
10394
10394
  proactiveMessage: a,
10395
10395
  conversationScreen: l
10396
- } = We(Ge), u = vt(Vh), [, s] = we(!1), [c, p] = we(Wh), [m, d] = we(!1), [T, x] = we(!1), [j, v] = we(!1), [C, S] = we(""), [W, q] = we(!1), [M, P] = we(!0), [H, G] = we(!1), [K, A] = we(!1), [b, I] = we(!1), z = tt(null), L = tt(null), U = tt(null), _ = He.get(`${t}-test`) === "1", V = Yt(
10397
- ({ name: R, payload: ne }) => {
10398
- console.log(
10399
- "xcf userTracking.defaultProperties",
10400
- r == null ? void 0 : r.defaultProperties,
10401
- ne
10402
- );
10403
- const he = No(r == null ? void 0 : r.defaultProperties, ne);
10404
- console.log("xcf resolvedPayload", he), e ? (console.log("xcf x1"), e({ name: R, payload: he })) : (console.log("xcf x2"), U.current.track(
10396
+ } = We(Ge), u = vt(Vh), [, s] = we(!1), [c, p] = we(Wh), [m, d] = we(!1), [T, x] = we(!1), [j, v] = we(!1), [C, S] = we(""), [W, q] = we(!1), [M, F] = we(!0), [H, G] = we(!1), [K, A] = we(!1), [b, I] = we(!1), z = tt(null), L = tt(null), U = tt(null), _ = He.get(`${t}-test`) === "1", V = Yt(
10397
+ ({ name: R, payload: oe }) => {
10398
+ const me = No(r == null ? void 0 : r.defaultProperties, oe);
10399
+ e ? e({ name: R, payload: me }) : U.current.track(
10405
10400
  // TODO: this is untestable - create a custom hook to get submit event function.
10406
10401
  R,
10407
- he
10408
- ));
10402
+ me
10403
+ );
10409
10404
  },
10410
10405
  [e, r.defaultProperties]
10411
- ), ie = Yt(async () => {
10406
+ ), re = Yt(async () => {
10412
10407
  if (window != null && window.OnetrustActiveGroups && window.OnetrustActiveGroups.split(",").includes("C0003"))
10413
10408
  try {
10414
10409
  const R = He.get(
@@ -10417,7 +10412,7 @@ function Xr({ submitEventExternal: e }) {
10417
10412
  if (!R)
10418
10413
  return;
10419
10414
  d(!0);
10420
- const ne = await fetch(
10415
+ const oe = await fetch(
10421
10416
  `${n.endpoint}/xpert-chat/${R}`,
10422
10417
  {
10423
10418
  method: "GET",
@@ -10426,16 +10421,16 @@ function Xr({ submitEventExternal: e }) {
10426
10421
  }
10427
10422
  }
10428
10423
  );
10429
- if (ne.status === 404) {
10424
+ if (oe.status === 404) {
10430
10425
  He.remove(`${t}-conversation-history-id`);
10431
10426
  return;
10432
10427
  }
10433
- if (!ne.ok)
10434
- throw new rr(`HTTPError: ${ne.status} ${ne.statusText}`);
10435
- const he = await ne.json();
10428
+ if (!oe.ok)
10429
+ throw new rr(`HTTPError: ${oe.status} ${oe.statusText}`);
10430
+ const me = await oe.json();
10436
10431
  p(
10437
- he.map((ge) => ({
10438
- ...ge,
10432
+ me.map((he) => ({
10433
+ ...he,
10439
10434
  disableFeedback: !0
10440
10435
  }))
10441
10436
  ), A(!0), I(!0);
@@ -10445,16 +10440,16 @@ function Xr({ submitEventExternal: e }) {
10445
10440
  d(!1);
10446
10441
  }
10447
10442
  }, [t, n.endpoint]);
10448
- Rh(ie), Oe(() => {
10443
+ Rh(re), Oe(() => {
10449
10444
  console.log("Chatbot - mount");
10450
- let R, ne;
10445
+ let R, oe;
10451
10446
  return r.enabled && (R = setInterval(() => {
10452
- var ge;
10453
- console.log("Chatbot - intervalCheckForScripts"), (ge = window.analytics) != null && ge.track && (!i.enabled || i.enabled && window.optimizely && window.experiments) && (console.log("Chatbot - intervalCheckForScripts all found"), U.current = window.analytics, clearInterval(R), clearTimeout(ne), s(!0));
10454
- }, 1e3), ne = setTimeout(() => {
10447
+ var he;
10448
+ console.log("Chatbot - intervalCheckForScripts"), (he = window.analytics) != null && he.track && (!i.enabled || i.enabled && window.optimizely && window.experiments) && (console.log("Chatbot - intervalCheckForScripts all found"), U.current = window.analytics, clearInterval(R), clearTimeout(oe), s(!0));
10449
+ }, 1e3), oe = setTimeout(() => {
10455
10450
  clearInterval(R);
10456
10451
  }, 6e4)), () => {
10457
- console.log("Chatbot - unmount"), clearInterval(R), clearTimeout(ne);
10452
+ console.log("Chatbot - unmount"), clearInterval(R), clearTimeout(oe);
10458
10453
  };
10459
10454
  }, [
10460
10455
  i.enabled,
@@ -10463,13 +10458,13 @@ function Xr({ submitEventExternal: e }) {
10463
10458
  r.prefix
10464
10459
  ]);
10465
10460
  const g = (R) => {
10466
- var ne, he;
10467
- (ne = R == null ? void 0 : R.target) != null && ne.href && V({
10461
+ var oe, me;
10462
+ (oe = R == null ? void 0 : R.target) != null && oe.href && V({
10468
10463
  name: `${r.prefix}.bi.xpert.chatbot.popup.chat.message.link.clicked`,
10469
10464
  payload: {
10470
10465
  category: "2u",
10471
10466
  label: "xpert-chatbot",
10472
- link: (he = R == null ? void 0 : R.target) == null ? void 0 : he.href,
10467
+ link: (me = R == null ? void 0 : R.target) == null ? void 0 : me.href,
10473
10468
  isTestUser: _
10474
10469
  }
10475
10470
  });
@@ -10487,7 +10482,7 @@ function Xr({ submitEventExternal: e }) {
10487
10482
  );
10488
10483
  const ye = () => {
10489
10484
  S(""), L.current.value = "", L.current.style.height = "auto";
10490
- }, h = (R, ne) => {
10485
+ }, h = (R, oe) => {
10491
10486
  V({
10492
10487
  name: `${r.prefix}.bi.xpert.chatbot.popup.chat.message.response`,
10493
10488
  payload: {
@@ -10496,14 +10491,14 @@ function Xr({ submitEventExternal: e }) {
10496
10491
  linkCount: Bh(R),
10497
10492
  apiResponseMessage: R,
10498
10493
  isTestUser: _,
10499
- conversationHistoryId: ne
10494
+ conversationHistoryId: oe
10500
10495
  }
10501
10496
  });
10502
- }, me = ({
10497
+ }, ge = ({
10503
10498
  conversationSize: R,
10504
- userInputMessage: ne,
10505
- apiResponseMessage: he,
10506
- elapsedSeconds: ge,
10499
+ userInputMessage: oe,
10500
+ apiResponseMessage: me,
10501
+ elapsedSeconds: he,
10507
10502
  conversationByteSize: je
10508
10503
  }) => {
10509
10504
  V({
@@ -10513,9 +10508,9 @@ function Xr({ submitEventExternal: e }) {
10513
10508
  label: "xpert-chatbot",
10514
10509
  isTestUser: _,
10515
10510
  conversationSize: R,
10516
- userInputMessage: ne,
10517
- apiResponseMessage: he,
10518
- elapsedSeconds: ge,
10511
+ userInputMessage: oe,
10512
+ apiResponseMessage: me,
10513
+ elapsedSeconds: he,
10519
10514
  conversationByteSize: je
10520
10515
  }
10521
10516
  });
@@ -10523,21 +10518,21 @@ function Xr({ submitEventExternal: e }) {
10523
10518
  try {
10524
10519
  if (R.trim().length === 0)
10525
10520
  return;
10526
- const ne = /* @__PURE__ */ new Date();
10521
+ const oe = /* @__PURE__ */ new Date();
10527
10522
  I(!1), q(!1);
10528
- const he = c.filter((D) => D.role === "user").length + 1;
10523
+ const me = c.filter((D) => D.role === "user").length + 1;
10529
10524
  V({
10530
10525
  name: `${r.prefix}.bi.xpert.chatbot.popup.chat.message.sent`,
10531
10526
  payload: {
10532
10527
  category: "2u",
10533
10528
  label: "xpert-chatbot",
10534
- totalUserInputMessagesSent: he,
10529
+ totalUserInputMessagesSent: me,
10535
10530
  userInputMessage: R,
10536
10531
  isTestUser: _
10537
10532
  }
10538
10533
  }), ye();
10539
- let ge = He.get(`${t}-conversation-history-id`) || "";
10540
- !ge && l.conversationHistory.enabled ? p([
10534
+ let he = He.get(`${t}-conversation-history-id`) || "";
10535
+ !he && l.conversationHistory.enabled ? p([
10541
10536
  {
10542
10537
  role: "user",
10543
10538
  content: R
@@ -10562,7 +10557,7 @@ function Xr({ submitEventExternal: e }) {
10562
10557
  method: "POST",
10563
10558
  headers: {
10564
10559
  "Content-Type": "application/json",
10565
- "Conversation-History-Id": ge
10560
+ "Conversation-History-Id": he
10566
10561
  },
10567
10562
  body: JSON.stringify({
10568
10563
  message_list: je,
@@ -10571,20 +10566,20 @@ function Xr({ submitEventExternal: e }) {
10571
10566
  });
10572
10567
  if (!xe.ok)
10573
10568
  throw new rr(`HTTPError: ${xe.status} ${xe.statusText}`);
10574
- ge = xe.headers.get("Conversation-History-Id"), ge && He.set(
10569
+ he = xe.headers.get("Conversation-History-Id"), he && He.set(
10575
10570
  `${t}-conversation-history-id`,
10576
- ge,
10571
+ he,
10577
10572
  { expires: 1 }
10578
10573
  );
10579
10574
  const Xe = (await xe.json()).content;
10580
- h(Xe, ge);
10575
+ h(Xe, he);
10581
10576
  const jt = /* @__PURE__ */ new Date();
10582
- me({
10577
+ ge({
10583
10578
  conversationByteSize: Qh(JSON.stringify(je)),
10584
10579
  conversationSize: c.length + 2,
10585
10580
  userInputMessage: R,
10586
10581
  apiResponseMessage: Xe,
10587
- elapsedSeconds: Uh(ne, jt)
10582
+ elapsedSeconds: Uh(oe, jt)
10588
10583
  }), p((D) => [
10589
10584
  ...D,
10590
10585
  {
@@ -10593,10 +10588,10 @@ function Xr({ submitEventExternal: e }) {
10593
10588
  createdAt: /* @__PURE__ */ new Date()
10594
10589
  }
10595
10590
  ]), A(!1), d(!1), ye(), I(!0);
10596
- } catch (ne) {
10597
- d(!1), ye(), q(!0), console.error(ne);
10591
+ } catch (oe) {
10592
+ d(!1), ye(), q(!0), console.error(oe);
10598
10593
  }
10599
- }, oe = () => {
10594
+ }, ie = () => {
10600
10595
  v(!1), x(!0), V({
10601
10596
  name: `${r.prefix}.bi.xpert.chatbot.action.button.clicked`,
10602
10597
  payload: {
@@ -10613,7 +10608,7 @@ function Xr({ submitEventExternal: e }) {
10613
10608
  label: "xpert-chatbot",
10614
10609
  isTestUser: _
10615
10610
  }
10616
- }), P(R);
10611
+ }), F(R);
10617
10612
  }, be = () => {
10618
10613
  x(!0), V({
10619
10614
  name: `${r.prefix}.bi.xpert.chatbot.proactive.message.clicked`,
@@ -10652,9 +10647,9 @@ function Xr({ submitEventExternal: e }) {
10652
10647
  S(R.target.value);
10653
10648
  }, It = (R) => {
10654
10649
  R.key === "Enter" && C.trim() === "" || R.key === "Enter" && !R.shiftKey && (R.preventDefault(), De(C));
10655
- }, Nt = (R, ne = "") => {
10656
- const he = c.map((ge, je) => R === je ? (V({
10657
- name: `${r.prefix}.bi.xpert.chatbot.feedback.thumbs.${ne.toLowerCase()}.clicked`,
10650
+ }, Nt = (R, oe = "") => {
10651
+ const me = c.map((he, je) => R === je ? (V({
10652
+ name: `${r.prefix}.bi.xpert.chatbot.feedback.thumbs.${oe.toLowerCase()}.clicked`,
10658
10653
  payload: {
10659
10654
  category: "2u",
10660
10655
  label: "xpert-chatbot",
@@ -10664,10 +10659,10 @@ function Xr({ submitEventExternal: e }) {
10664
10659
  isTestUser: _
10665
10660
  }
10666
10661
  }), {
10667
- ...ge,
10668
- feedbackThumbType: ne
10669
- }) : ge);
10670
- p(he), A(!1);
10662
+ ...he,
10663
+ feedbackThumbType: oe
10664
+ }) : he);
10665
+ p(me), A(!1);
10671
10666
  };
10672
10667
  return (
10673
10668
  // do not remove this class as it's needed to turn off chatbot
@@ -10702,7 +10697,7 @@ function Xr({ submitEventExternal: e }) {
10702
10697
  /* @__PURE__ */ k.jsx(
10703
10698
  Wr,
10704
10699
  {
10705
- onClick: oe,
10700
+ onClick: ie,
10706
10701
  label: "Open XPERT Chatbot",
10707
10702
  style: u ? { ...(ot = o.style) == null ? void 0 : ot.mobile } : { ...o.style },
10708
10703
  "aria-haspopup": "dialog",