@2uinc/frontend-component-xpert-chatbot 1.13.0-alpha.7 → 1.13.0-alpha.8

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 +697 -712
  2. package/package.json +1 -1
@@ -1,4 +1,4 @@
1
- import Te, { createContext as Jl, useMemo as es, useContext as Pe, useState as xe, useEffect as Ie, useCallback as Ht, useRef as We } from "react";
1
+ import ve, { createContext as Jl, useMemo as es, useContext as Fe, useState as be, useEffect as Te, useCallback as Ht, useRef as We } from "react";
2
2
  const ts = {
3
3
  xpertKey: "edx",
4
4
  chatApi: {
@@ -138,10 +138,7 @@ const ts = {
138
138
  },
139
139
  launchButton: {
140
140
  message: null,
141
- animatedGraduate: {
142
- enabled: !1,
143
- delayMs: null
144
- },
141
+ animatedGraduate: null,
145
142
  style: {
146
143
  backgroundColor: "#542291",
147
144
  padding: "12px",
@@ -235,10 +232,7 @@ const ts = {
235
232
  },
236
233
  launchButton: {
237
234
  message: null,
238
- animatedGraduate: {
239
- enabled: !1,
240
- delayMs: null
241
- },
235
+ animatedGraduate: null,
242
236
  style: {
243
237
  backgroundColor: "#E31A82",
244
238
  padding: "0.75rem",
@@ -331,10 +325,7 @@ const ts = {
331
325
  },
332
326
  launchButton: {
333
327
  message: null,
334
- animatedGraduate: {
335
- enabled: !1,
336
- delayMs: null
337
- },
328
+ animatedGraduate: null,
338
329
  style: {
339
330
  backgroundColor: "#193d77",
340
331
  padding: "0.75rem",
@@ -427,10 +418,7 @@ const ts = {
427
418
  },
428
419
  launchButton: {
429
420
  message: null,
430
- animatedGraduate: {
431
- enabled: !1,
432
- delayMs: null
433
- },
421
+ animatedGraduate: null,
434
422
  style: {
435
423
  backgroundColor: "#193d77",
436
424
  padding: "0.75rem",
@@ -568,7 +556,7 @@ us();
568
556
  * This source code is licensed under the MIT license found in the
569
557
  * LICENSE file in the root directory of this source tree.
570
558
  */
571
- var cs = Te, To = 60103;
559
+ var cs = ve, To = 60103;
572
560
  Vt.Fragment = 60107;
573
561
  if (typeof Symbol == "function" && Symbol.for) {
574
562
  var di = Symbol.for;
@@ -659,7 +647,7 @@ function sr(e, t) {
659
647
  }
660
648
  );
661
649
  }
662
- var Fe = sr(hs, { path: "/" }), Do = { exports: {} }, gs = "SECRET_DO_NOT_PASS_THIS_OR_YOU_WILL_BE_FIRED", ms = gs, ys = ms;
650
+ var _e = sr(hs, { path: "/" }), Do = { exports: {} }, gs = "SECRET_DO_NOT_PASS_THIS_OR_YOU_WILL_BE_FIRED", ms = gs, ys = ms;
663
651
  function No() {
664
652
  }
665
653
  function ko() {
@@ -704,17 +692,17 @@ var Ms = function() {
704
692
  return n.PropTypes = n, n;
705
693
  };
706
694
  Do.exports = Ms();
707
- var Q = Do.exports;
708
- const I = /* @__PURE__ */ nt(Q);
695
+ var B = Do.exports;
696
+ const I = /* @__PURE__ */ nt(B);
709
697
  var dn = { exports: {} };
710
698
  dn.exports;
711
699
  (function(e, t) {
712
- var n = 200, r = "__lodash_hash_undefined__", i = 800, o = 16, a = 9007199254740991, l = "[object Arguments]", s = "[object Array]", u = "[object AsyncFunction]", c = "[object Boolean]", p = "[object Date]", m = "[object Error]", d = "[object Function]", D = "[object GeneratorFunction]", b = "[object Map]", C = "[object Number]", x = "[object Null]", E = "[object Object]", j = "[object Proxy]", U = "[object RegExp]", H = "[object Set]", M = "[object String]", L = "[object Undefined]", $ = "[object WeakMap]", G = "[object ArrayBuffer]", X = "[object DataView]", S = "[object Float32Array]", w = "[object Float64Array]", k = "[object Int8Array]", z = "[object Int16Array]", _ = "[object Int32Array]", B = "[object Uint8Array]", V = "[object Uint8ClampedArray]", q = "[object Uint16Array]", K = "[object Uint32Array]", g = /[\\^$.*+?()[\]{}|]/g, de = /^\[object .+?Constructor\]$/, ye = /^(?:0|[1-9]\d*)$/, h = {};
713
- h[S] = h[w] = h[k] = h[z] = h[_] = h[B] = h[V] = h[q] = h[K] = !0, h[l] = h[s] = h[G] = h[c] = h[X] = h[p] = h[m] = h[d] = h[b] = h[C] = h[E] = h[U] = h[H] = h[M] = h[$] = !1;
714
- var ge = typeof en == "object" && en && en.Object === Object && en, Ee = typeof self == "object" && self && self.Object === Object && self, ne = ge || Ee || Function("return this")(), we = t && !t.nodeType && t, ve = we && !0 && e && !e.nodeType && e, Ye = ve && ve.exports === we, Oe = Ye && ge.process, Xe = function() {
700
+ var n = 200, r = "__lodash_hash_undefined__", i = 800, o = 16, a = 9007199254740991, l = "[object Arguments]", s = "[object Array]", u = "[object AsyncFunction]", c = "[object Boolean]", p = "[object Date]", m = "[object Error]", d = "[object Function]", D = "[object GeneratorFunction]", b = "[object Map]", C = "[object Number]", x = "[object Null]", E = "[object Object]", j = "[object Proxy]", R = "[object RegExp]", H = "[object Set]", M = "[object String]", L = "[object Undefined]", $ = "[object WeakMap]", G = "[object ArrayBuffer]", X = "[object DataView]", S = "[object Float32Array]", w = "[object Float64Array]", k = "[object Int8Array]", z = "[object Int16Array]", _ = "[object Int32Array]", U = "[object Uint8Array]", V = "[object Uint8ClampedArray]", q = "[object Uint16Array]", K = "[object Uint32Array]", g = /[\\^$.*+?()[\]{}|]/g, he = /^\[object .+?Constructor\]$/, ye = /^(?:0|[1-9]\d*)$/, h = {};
701
+ h[S] = h[w] = h[k] = h[z] = h[_] = h[U] = h[V] = h[q] = h[K] = !0, h[l] = h[s] = h[G] = h[c] = h[X] = h[p] = h[m] = h[d] = h[b] = h[C] = h[E] = h[R] = h[H] = h[M] = h[$] = !1;
702
+ var ge = typeof en == "object" && en && en.Object === Object && en, ke = typeof self == "object" && self && self.Object === Object && self, re = ge || ke || Function("return this")(), xe = t && !t.nodeType && t, we = xe && !0 && e && !e.nodeType && e, Qe = we && we.exports === xe, Se = Qe && ge.process, Xe = function() {
715
703
  try {
716
- var f = ve && ve.require && ve.require("util").types;
717
- return f || Oe && Oe.binding && Oe.binding("util");
704
+ var f = we && we.require && we.require("util").types;
705
+ return f || Se && Se.binding && Se.binding("util");
718
706
  } catch {
719
707
  }
720
708
  }(), ot = Xe && Xe.isTypedArray;
@@ -744,27 +732,27 @@ dn.exports;
744
732
  function Je(f, y) {
745
733
  return f == null ? void 0 : f[y];
746
734
  }
747
- function yt(f, y) {
735
+ function gt(f, y) {
748
736
  return function(v) {
749
737
  return f(y(v));
750
738
  };
751
739
  }
752
- var at = Array.prototype, P = Function.prototype, J = Object.prototype, me = ne["__core-js_shared__"], he = P.toString, be = J.hasOwnProperty, qe = function() {
753
- var f = /[^.]+$/.exec(me && me.keys && me.keys.IE_PROTO || "");
740
+ var at = Array.prototype, mt = Function.prototype, P = Object.prototype, ee = re["__core-js_shared__"], me = mt.toString, le = P.hasOwnProperty, Ye = function() {
741
+ var f = /[^.]+$/.exec(ee && ee.keys && ee.keys.IE_PROTO || "");
754
742
  return f ? "Symbol(src)_1." + f : "";
755
- }(), lt = J.toString, st = he.call(Object), N = RegExp(
756
- "^" + he.call(be).replace(g, "\\$&").replace(/hasOwnProperty|(function).*?(?=\\\()| for .+?(?=\\\])/g, "$1.*?") + "$"
757
- ), O = Ye ? ne.Buffer : void 0, R = ne.Symbol, re = ne.Uint8Array, oe = O ? O.allocUnsafe : void 0, De = yt(Object.getPrototypeOf, Object), He = Object.create, $e = J.propertyIsEnumerable, ut = at.splice, je = R ? R.toStringTag : void 0, se = function() {
743
+ }(), qe = P.toString, yt = me.call(Object), N = RegExp(
744
+ "^" + me.call(le).replace(g, "\\$&").replace(/hasOwnProperty|(function).*?(?=\\\()| for .+?(?=\\\])/g, "$1.*?") + "$"
745
+ ), O = Qe ? re.Buffer : void 0, Q = re.Symbol, J = re.Uint8Array, oe = O ? O.allocUnsafe : void 0, Ie = gt(Object.getPrototypeOf, Object), He = Object.create, $e = P.propertyIsEnumerable, lt = at.splice, Ee = Q ? Q.toStringTag : void 0, ue = function() {
758
746
  try {
759
747
  var f = Bn(Object, "defineProperty");
760
748
  return f({}, "", {}), f;
761
749
  } catch {
762
750
  }
763
- }(), jt = O ? O.isBuffer : void 0, ze = Math.max, Xa = Date.now, ti = Bn(ne, "Map"), Ct = Bn(Object, "create"), Ja = function() {
751
+ }(), jt = O ? O.isBuffer : void 0, Oe = Math.max, Xa = Date.now, ti = Bn(re, "Map"), Ct = Bn(Object, "create"), Ja = function() {
764
752
  function f() {
765
753
  }
766
754
  return function(y) {
767
- if (!pt(y))
755
+ if (!ut(y))
768
756
  return {};
769
757
  if (He)
770
758
  return He(y);
@@ -773,7 +761,7 @@ dn.exports;
773
761
  return f.prototype = void 0, v;
774
762
  };
775
763
  }();
776
- function ct(f) {
764
+ function st(f) {
777
765
  var y = -1, v = f == null ? 0 : f.length;
778
766
  for (this.clear(); ++y < v; ) {
779
767
  var F = f[y];
@@ -793,17 +781,17 @@ dn.exports;
793
781
  var v = y[f];
794
782
  return v === r ? void 0 : v;
795
783
  }
796
- return be.call(y, f) ? y[f] : void 0;
784
+ return le.call(y, f) ? y[f] : void 0;
797
785
  }
798
786
  function rl(f) {
799
787
  var y = this.__data__;
800
- return Ct ? y[f] !== void 0 : be.call(y, f);
788
+ return Ct ? y[f] !== void 0 : le.call(y, f);
801
789
  }
802
790
  function il(f, y) {
803
791
  var v = this.__data__;
804
792
  return this.size += this.has(f) ? 0 : 1, v[f] = Ct && y === void 0 ? r : y, this;
805
793
  }
806
- ct.prototype.clear = el, ct.prototype.delete = tl, ct.prototype.get = nl, ct.prototype.has = rl, ct.prototype.set = il;
794
+ st.prototype.clear = el, st.prototype.delete = tl, st.prototype.get = nl, st.prototype.has = rl, st.prototype.set = il;
807
795
  function Ke(f) {
808
796
  var y = -1, v = f == null ? 0 : f.length;
809
797
  for (this.clear(); ++y < v; ) {
@@ -819,7 +807,7 @@ dn.exports;
819
807
  if (v < 0)
820
808
  return !1;
821
809
  var F = y.length - 1;
822
- return v == F ? y.pop() : ut.call(y, v, 1), --this.size, !0;
810
+ return v == F ? y.pop() : lt.call(y, v, 1), --this.size, !0;
823
811
  }
824
812
  function ll(f) {
825
813
  var y = this.__data__, v = Zt(y, f);
@@ -842,9 +830,9 @@ dn.exports;
842
830
  }
843
831
  function cl() {
844
832
  this.size = 0, this.__data__ = {
845
- hash: new ct(),
833
+ hash: new st(),
846
834
  map: new (ti || Ke)(),
847
- string: new ct()
835
+ string: new st()
848
836
  };
849
837
  }
850
838
  function pl(f) {
@@ -891,21 +879,21 @@ dn.exports;
891
879
  }
892
880
  bt.prototype.clear = gl, bt.prototype.delete = ml, bt.prototype.get = yl, bt.prototype.has = Ml, bt.prototype.set = bl;
893
881
  function xl(f, y) {
894
- var v = Hn(f), F = !v && Yn(f), te = !v && !F && ai(f), le = !v && !F && !te && si(f), pe = v || F || te || le, ee = pe ? kt(f.length, String) : [], fe = ee.length;
895
- for (var Le in f)
896
- (y || be.call(f, Le)) && !(pe && // Safari 9 has enumerable `arguments.length` in strict mode.
897
- (Le == "length" || // Node.js 0.10 has enumerable non-index properties on buffers.
898
- te && (Le == "offset" || Le == "parent") || // PhantomJS 2 has enumerable non-index properties on typed arrays.
899
- le && (Le == "buffer" || Le == "byteLength" || Le == "byteOffset") || // Skip index properties.
900
- ii(Le, fe))) && ee.push(Le);
901
- return ee;
882
+ var v = Hn(f), F = !v && Yn(f), ne = !v && !F && ai(f), se = !v && !F && !ne && si(f), fe = v || F || ne || se, te = fe ? kt(f.length, String) : [], de = te.length;
883
+ for (var ze in f)
884
+ (y || le.call(f, ze)) && !(fe && // Safari 9 has enumerable `arguments.length` in strict mode.
885
+ (ze == "length" || // Node.js 0.10 has enumerable non-index properties on buffers.
886
+ ne && (ze == "offset" || ze == "parent") || // PhantomJS 2 has enumerable non-index properties on typed arrays.
887
+ se && (ze == "buffer" || ze == "byteLength" || ze == "byteOffset") || // Skip index properties.
888
+ ii(ze, de))) && te.push(ze);
889
+ return te;
902
890
  }
903
891
  function Rn(f, y, v) {
904
892
  (v !== void 0 && !Jt(f[y], v) || v === void 0 && !(y in f)) && Un(f, y, v);
905
893
  }
906
894
  function wl(f, y, v) {
907
895
  var F = f[y];
908
- (!(be.call(f, y) && Jt(F, v)) || v === void 0 && !(y in f)) && Un(f, y, v);
896
+ (!(le.call(f, y) && Jt(F, v)) || v === void 0 && !(y in f)) && Un(f, y, v);
909
897
  }
910
898
  function Zt(f, y) {
911
899
  for (var v = f.length; v--; )
@@ -914,7 +902,7 @@ dn.exports;
914
902
  return -1;
915
903
  }
916
904
  function Un(f, y, v) {
917
- y == "__proto__" && se ? se(f, y, {
905
+ y == "__proto__" && ue ? ue(f, y, {
918
906
  configurable: !0,
919
907
  enumerable: !0,
920
908
  value: v,
@@ -923,56 +911,56 @@ dn.exports;
923
911
  }
924
912
  var vl = Ll();
925
913
  function Kt(f) {
926
- return f == null ? f === void 0 ? L : x : je && je in Object(f) ? _l(f) : Ql(f);
914
+ return f == null ? f === void 0 ? L : x : Ee && Ee in Object(f) ? _l(f) : Ql(f);
927
915
  }
928
916
  function ni(f) {
929
917
  return At(f) && Kt(f) == l;
930
918
  }
931
919
  function Tl(f) {
932
- if (!pt(f) || Ul(f))
920
+ if (!ut(f) || Ul(f))
933
921
  return !1;
934
- var y = qn(f) ? N : de;
922
+ var y = qn(f) ? N : he;
935
923
  return y.test(ql(f));
936
924
  }
937
925
  function Il(f) {
938
926
  return At(f) && li(f.length) && !!h[Kt(f)];
939
927
  }
940
928
  function Dl(f) {
941
- if (!pt(f))
929
+ if (!ut(f))
942
930
  return Bl(f);
943
931
  var y = oi(f), v = [];
944
932
  for (var F in f)
945
- F == "constructor" && (y || !be.call(f, F)) || v.push(F);
933
+ F == "constructor" && (y || !le.call(f, F)) || v.push(F);
946
934
  return v;
947
935
  }
948
- function ri(f, y, v, F, te) {
949
- f !== y && vl(y, function(le, pe) {
950
- if (te || (te = new bt()), pt(le))
951
- Nl(f, y, pe, v, ri, F, te);
936
+ function ri(f, y, v, F, ne) {
937
+ f !== y && vl(y, function(se, fe) {
938
+ if (ne || (ne = new bt()), ut(se))
939
+ Nl(f, y, fe, v, ri, F, ne);
952
940
  else {
953
- var ee = F ? F(Qn(f, pe), le, pe + "", f, y, te) : void 0;
954
- ee === void 0 && (ee = le), Rn(f, pe, ee);
941
+ var te = F ? F(Qn(f, fe), se, fe + "", f, y, ne) : void 0;
942
+ te === void 0 && (te = se), Rn(f, fe, te);
955
943
  }
956
944
  }, ui);
957
945
  }
958
- function Nl(f, y, v, F, te, le, pe) {
959
- var ee = Qn(f, v), fe = Qn(y, v), Le = pe.get(fe);
960
- if (Le) {
961
- Rn(f, v, Le);
946
+ function Nl(f, y, v, F, ne, se, fe) {
947
+ var te = Qn(f, v), de = Qn(y, v), ze = fe.get(de);
948
+ if (ze) {
949
+ Rn(f, v, ze);
962
950
  return;
963
951
  }
964
- var Ce = le ? le(ee, fe, v + "", f, y, pe) : void 0, St = Ce === void 0;
952
+ var je = se ? se(te, de, v + "", f, y, fe) : void 0, St = je === void 0;
965
953
  if (St) {
966
- var Vn = Hn(fe), Gn = !Vn && ai(fe), pi = !Vn && !Gn && si(fe);
967
- Ce = fe, Vn || Gn || pi ? Hn(ee) ? Ce = ee : Vl(ee) ? Ce = Sl(ee) : Gn ? (St = !1, Ce = jl(fe, !0)) : pi ? (St = !1, Ce = Al(fe, !0)) : Ce = [] : Gl(fe) || Yn(fe) ? (Ce = ee, Yn(ee) ? Ce = Wl(ee) : (!pt(ee) || qn(ee)) && (Ce = Fl(fe))) : St = !1;
954
+ var Vn = Hn(de), Gn = !Vn && ai(de), pi = !Vn && !Gn && si(de);
955
+ je = de, Vn || Gn || pi ? Hn(te) ? je = te : Vl(te) ? je = Sl(te) : Gn ? (St = !1, je = jl(de, !0)) : pi ? (St = !1, je = Al(de, !0)) : je = [] : Gl(de) || Yn(de) ? (je = te, Yn(te) ? je = Wl(te) : (!ut(te) || qn(te)) && (je = Fl(de))) : St = !1;
968
956
  }
969
- St && (pe.set(fe, Ce), te(Ce, fe, F, le, pe), pe.delete(fe)), Rn(f, v, Ce);
957
+ St && (fe.set(de, je), ne(je, de, F, se, fe), fe.delete(de)), Rn(f, v, je);
970
958
  }
971
959
  function kl(f, y) {
972
960
  return Hl(Yl(f, y, ci), f + "");
973
961
  }
974
- var El = se ? function(f, y) {
975
- return se(f, "toString", {
962
+ var El = ue ? function(f, y) {
963
+ return ue(f, "toString", {
976
964
  configurable: !0,
977
965
  enumerable: !1,
978
966
  value: Kl(y),
@@ -987,7 +975,7 @@ dn.exports;
987
975
  }
988
976
  function Cl(f) {
989
977
  var y = new f.constructor(f.byteLength);
990
- return new re(y).set(new re(f)), y;
978
+ return new J(y).set(new J(f)), y;
991
979
  }
992
980
  function Al(f, y) {
993
981
  var v = y ? Cl(f.buffer) : f.buffer;
@@ -1000,29 +988,29 @@ dn.exports;
1000
988
  return y;
1001
989
  }
1002
990
  function Ol(f, y, v, F) {
1003
- var te = !v;
991
+ var ne = !v;
1004
992
  v || (v = {});
1005
- for (var le = -1, pe = y.length; ++le < pe; ) {
1006
- var ee = y[le], fe = F ? F(v[ee], f[ee], ee, v, f) : void 0;
1007
- fe === void 0 && (fe = f[ee]), te ? Un(v, ee, fe) : wl(v, ee, fe);
993
+ for (var se = -1, fe = y.length; ++se < fe; ) {
994
+ var te = y[se], de = F ? F(v[te], f[te], te, v, f) : void 0;
995
+ de === void 0 && (de = f[te]), ne ? Un(v, te, de) : wl(v, te, de);
1008
996
  }
1009
997
  return v;
1010
998
  }
1011
999
  function zl(f) {
1012
1000
  return kl(function(y, v) {
1013
- var F = -1, te = v.length, le = te > 1 ? v[te - 1] : void 0, pe = te > 2 ? v[2] : void 0;
1014
- for (le = f.length > 3 && typeof le == "function" ? (te--, le) : void 0, pe && Pl(v[0], v[1], pe) && (le = te < 3 ? void 0 : le, te = 1), y = Object(y); ++F < te; ) {
1015
- var ee = v[F];
1016
- ee && f(y, ee, F, le);
1001
+ var F = -1, ne = v.length, se = ne > 1 ? v[ne - 1] : void 0, fe = ne > 2 ? v[2] : void 0;
1002
+ for (se = f.length > 3 && typeof se == "function" ? (ne--, se) : void 0, fe && Pl(v[0], v[1], fe) && (se = ne < 3 ? void 0 : se, ne = 1), y = Object(y); ++F < ne; ) {
1003
+ var te = v[F];
1004
+ te && f(y, te, F, se);
1017
1005
  }
1018
1006
  return y;
1019
1007
  });
1020
1008
  }
1021
1009
  function Ll(f) {
1022
1010
  return function(y, v, F) {
1023
- for (var te = -1, le = Object(y), pe = F(y), ee = pe.length; ee--; ) {
1024
- var fe = pe[f ? ee : ++te];
1025
- if (v(le[fe], fe, le) === !1)
1011
+ for (var ne = -1, se = Object(y), fe = F(y), te = fe.length; te--; ) {
1012
+ var de = fe[f ? te : ++ne];
1013
+ if (v(se[de], de, se) === !1)
1026
1014
  break;
1027
1015
  }
1028
1016
  return y;
@@ -1037,24 +1025,24 @@ dn.exports;
1037
1025
  return Tl(v) ? v : void 0;
1038
1026
  }
1039
1027
  function _l(f) {
1040
- var y = be.call(f, je), v = f[je];
1028
+ var y = le.call(f, Ee), v = f[Ee];
1041
1029
  try {
1042
- f[je] = void 0;
1030
+ f[Ee] = void 0;
1043
1031
  var F = !0;
1044
1032
  } catch {
1045
1033
  }
1046
- var te = lt.call(f);
1047
- return F && (y ? f[je] = v : delete f[je]), te;
1034
+ var ne = qe.call(f);
1035
+ return F && (y ? f[Ee] = v : delete f[Ee]), ne;
1048
1036
  }
1049
1037
  function Fl(f) {
1050
- return typeof f.constructor == "function" && !oi(f) ? Ja(De(f)) : {};
1038
+ return typeof f.constructor == "function" && !oi(f) ? Ja(Ie(f)) : {};
1051
1039
  }
1052
1040
  function ii(f, y) {
1053
1041
  var v = typeof f;
1054
1042
  return y = y ?? a, !!y && (v == "number" || v != "symbol" && ye.test(f)) && f > -1 && f % 1 == 0 && f < y;
1055
1043
  }
1056
1044
  function Pl(f, y, v) {
1057
- if (!pt(v))
1045
+ if (!ut(v))
1058
1046
  return !1;
1059
1047
  var F = typeof y;
1060
1048
  return (F == "number" ? $n(v) && ii(y, v.length) : F == "string" && y in v) ? Jt(v[y], f) : !1;
@@ -1064,10 +1052,10 @@ dn.exports;
1064
1052
  return y == "string" || y == "number" || y == "symbol" || y == "boolean" ? f !== "__proto__" : f === null;
1065
1053
  }
1066
1054
  function Ul(f) {
1067
- return !!qe && qe in f;
1055
+ return !!Ye && Ye in f;
1068
1056
  }
1069
1057
  function oi(f) {
1070
- var y = f && f.constructor, v = typeof y == "function" && y.prototype || J;
1058
+ var y = f && f.constructor, v = typeof y == "function" && y.prototype || P;
1071
1059
  return f === v;
1072
1060
  }
1073
1061
  function Bl(f) {
@@ -1078,16 +1066,16 @@ dn.exports;
1078
1066
  return y;
1079
1067
  }
1080
1068
  function Ql(f) {
1081
- return lt.call(f);
1069
+ return qe.call(f);
1082
1070
  }
1083
1071
  function Yl(f, y, v) {
1084
- return y = ze(y === void 0 ? f.length - 1 : y, 0), function() {
1085
- for (var F = arguments, te = -1, le = ze(F.length - y, 0), pe = Array(le); ++te < le; )
1086
- pe[te] = F[y + te];
1087
- te = -1;
1088
- for (var ee = Array(y + 1); ++te < y; )
1089
- ee[te] = F[te];
1090
- return ee[y] = v(pe), Nt(f, this, ee);
1072
+ return y = Oe(y === void 0 ? f.length - 1 : y, 0), function() {
1073
+ for (var F = arguments, ne = -1, se = Oe(F.length - y, 0), fe = Array(se); ++ne < se; )
1074
+ fe[ne] = F[y + ne];
1075
+ ne = -1;
1076
+ for (var te = Array(y + 1); ++ne < y; )
1077
+ te[ne] = F[ne];
1078
+ return te[y] = v(fe), Nt(f, this, te);
1091
1079
  };
1092
1080
  }
1093
1081
  function Qn(f, y) {
@@ -1098,8 +1086,8 @@ dn.exports;
1098
1086
  function $l(f) {
1099
1087
  var y = 0, v = 0;
1100
1088
  return function() {
1101
- var F = Xa(), te = o - (F - v);
1102
- if (v = F, te > 0) {
1089
+ var F = Xa(), ne = o - (F - v);
1090
+ if (v = F, ne > 0) {
1103
1091
  if (++y >= i)
1104
1092
  return arguments[0];
1105
1093
  } else
@@ -1110,7 +1098,7 @@ dn.exports;
1110
1098
  function ql(f) {
1111
1099
  if (f != null) {
1112
1100
  try {
1113
- return he.call(f);
1101
+ return me.call(f);
1114
1102
  } catch {
1115
1103
  }
1116
1104
  try {
@@ -1126,7 +1114,7 @@ dn.exports;
1126
1114
  var Yn = ni(function() {
1127
1115
  return arguments;
1128
1116
  }()) ? ni : function(f) {
1129
- return At(f) && be.call(f, "callee") && !$e.call(f, "callee");
1117
+ return At(f) && le.call(f, "callee") && !$e.call(f, "callee");
1130
1118
  }, Hn = Array.isArray;
1131
1119
  function $n(f) {
1132
1120
  return f != null && li(f.length) && !qn(f);
@@ -1136,7 +1124,7 @@ dn.exports;
1136
1124
  }
1137
1125
  var ai = jt || Xl;
1138
1126
  function qn(f) {
1139
- if (!pt(f))
1127
+ if (!ut(f))
1140
1128
  return !1;
1141
1129
  var y = Kt(f);
1142
1130
  return y == d || y == D || y == u || y == j;
@@ -1144,7 +1132,7 @@ dn.exports;
1144
1132
  function li(f) {
1145
1133
  return typeof f == "number" && f > -1 && f % 1 == 0 && f <= a;
1146
1134
  }
1147
- function pt(f) {
1135
+ function ut(f) {
1148
1136
  var y = typeof f;
1149
1137
  return f != null && (y == "object" || y == "function");
1150
1138
  }
@@ -1154,11 +1142,11 @@ dn.exports;
1154
1142
  function Gl(f) {
1155
1143
  if (!At(f) || Kt(f) != E)
1156
1144
  return !1;
1157
- var y = De(f);
1145
+ var y = Ie(f);
1158
1146
  if (y === null)
1159
1147
  return !0;
1160
- var v = be.call(y, "constructor") && y.constructor;
1161
- return typeof v == "function" && v instanceof v && he.call(v) == st;
1148
+ var v = le.call(y, "constructor") && y.constructor;
1149
+ return typeof v == "function" && v instanceof v && me.call(v) == yt;
1162
1150
  }
1163
1151
  var si = ot ? Et(ot) : Il;
1164
1152
  function Wl(f) {
@@ -1207,10 +1195,7 @@ const Eo = /* @__PURE__ */ nt(bs), xs = {
1207
1195
  experimentName: null
1208
1196
  },
1209
1197
  launchButton: {
1210
- animatedGraduate: {
1211
- enabled: !1,
1212
- delayMs: null
1213
- },
1198
+ animatedGraduate: null,
1214
1199
  message: {
1215
1200
  enabled: !0,
1216
1201
  text: "Chat to us",
@@ -1317,78 +1302,78 @@ const Eo = /* @__PURE__ */ nt(bs), xs = {
1317
1302
  return /* @__PURE__ */ T.jsx(jo.Provider, { value: { ...r }, children: e });
1318
1303
  };
1319
1304
  Co.propTypes = {
1320
- children: Q.element.isRequired,
1321
- xpertKey: Q.string.isRequired,
1322
- configurations: Q.shape({
1323
- xpertKey: Q.string,
1324
- chatApi: Q.shape({
1325
- endpoint: Q.string.isRequired,
1326
- payloadParams: Q.string
1305
+ children: B.element.isRequired,
1306
+ xpertKey: B.string.isRequired,
1307
+ configurations: B.shape({
1308
+ xpertKey: B.string,
1309
+ chatApi: B.shape({
1310
+ endpoint: B.string.isRequired,
1311
+ payloadParams: B.string
1327
1312
  }).isRequired,
1328
- primaryColor: Q.string.isRequired,
1329
- disclaimer: Q.shape({
1330
- text: Q.string.isRequired,
1331
- privacyPolicyLink: Q.string.isRequired
1313
+ primaryColor: B.string.isRequired,
1314
+ disclaimer: B.shape({
1315
+ text: B.string.isRequired,
1316
+ privacyPolicyLink: B.string.isRequired
1332
1317
  }).isRequired,
1333
- userTracking: Q.shape({
1334
- enabled: Q.bool.isRequired,
1335
- prefix: Q.string.isRequired,
1336
- payloadParams: Q.object
1318
+ userTracking: B.shape({
1319
+ enabled: B.bool.isRequired,
1320
+ prefix: B.string.isRequired,
1321
+ payloadParams: B.object
1337
1322
  }).isRequired,
1338
- webExperimentation: Q.shape({
1339
- enabled: Q.bool.isRequired,
1340
- experimentName: Q.string
1323
+ webExperimentation: B.shape({
1324
+ enabled: B.bool.isRequired,
1325
+ experimentName: B.string
1341
1326
  }).isRequired,
1342
- launchButton: Q.shape({
1343
- style: Q.shape({}).isRequired,
1344
- animatedGraduate: Q.shape({
1345
- enabled: Q.bool.isRequired,
1346
- delayMs: Q.number
1347
- }).isRequired,
1348
- message: Q.shape({
1349
- enabled: Q.bool.isRequired,
1350
- text: Q.string
1327
+ launchButton: B.shape({
1328
+ style: B.shape({}).isRequired,
1329
+ animatedGraduate: B.shape({
1330
+ enabled: B.bool.isRequired,
1331
+ delayMs: B.number
1332
+ }),
1333
+ message: B.shape({
1334
+ enabled: B.bool.isRequired,
1335
+ text: B.string
1351
1336
  })
1352
1337
  }).isRequired,
1353
- proactiveMessage: Q.shape({
1354
- enabled: Q.bool.isRequired,
1355
- textPrefix: Q.string,
1356
- text: Q.string,
1357
- delayMs: Q.number.isRequired,
1358
- style: Q.shape({}).isRequired
1338
+ proactiveMessage: B.shape({
1339
+ enabled: B.bool.isRequired,
1340
+ textPrefix: B.string,
1341
+ text: B.string,
1342
+ delayMs: B.number.isRequired,
1343
+ style: B.shape({}).isRequired
1359
1344
  }).isRequired,
1360
- conversationScreen: Q.shape({
1361
- header: Q.shape({
1362
- logo: Q.shape({
1363
- type: Q.string.isRequired,
1364
- style: Q.shape({})
1345
+ conversationScreen: B.shape({
1346
+ header: B.shape({
1347
+ logo: B.shape({
1348
+ type: B.string.isRequired,
1349
+ style: B.shape({})
1365
1350
  }).isRequired,
1366
- container: Q.shape({
1367
- style: Q.shape({}).isRequired
1351
+ container: B.shape({
1352
+ style: B.shape({}).isRequired
1368
1353
  })
1369
1354
  }),
1370
- systemMessage: Q.string.isRequired,
1371
- prompts: Q.arrayOf(
1372
- Q.shape({
1373
- id: Q.number.isRequired,
1374
- text: Q.string.isRequired
1355
+ systemMessage: B.string.isRequired,
1356
+ prompts: B.arrayOf(
1357
+ B.shape({
1358
+ id: B.number.isRequired,
1359
+ text: B.string.isRequired
1375
1360
  })
1376
1361
  ),
1377
- userMessageBubble: Q.shape({
1378
- style: Q.shape({}).isRequired
1362
+ userMessageBubble: B.shape({
1363
+ style: B.shape({}).isRequired
1379
1364
  }),
1380
- conversationHistory: Q.shape({
1381
- enabled: Q.bool.isRequired
1365
+ conversationHistory: B.shape({
1366
+ enabled: B.bool.isRequired
1382
1367
  }).isRequired,
1383
- liveChat: Q.shape({
1384
- enabled: Q.bool.isRequired,
1385
- sourceCode: Q.string,
1386
- options: Q.shape({})
1368
+ liveChat: B.shape({
1369
+ enabled: B.bool.isRequired,
1370
+ sourceCode: B.string,
1371
+ options: B.shape({})
1387
1372
  })
1388
1373
  }).isRequired
1389
1374
  })
1390
1375
  };
1391
- const Re = jo, Rt = /^[a-z0-9]+(-[a-z0-9]+)*$/, wn = (e, t, n, r = "") => {
1376
+ const Pe = jo, Rt = /^[a-z0-9]+(-[a-z0-9]+)*$/, wn = (e, t, n, r = "") => {
1392
1377
  const i = e.split(":");
1393
1378
  if (e.slice(0, 1) === "@") {
1394
1379
  if (i.length < 2 || i.length > 3)
@@ -1541,7 +1526,7 @@ function Es(e, t) {
1541
1526
  missing: /* @__PURE__ */ new Set()
1542
1527
  };
1543
1528
  }
1544
- function ht(e, t) {
1529
+ function ft(e, t) {
1545
1530
  const n = gi[e] || (gi[e] = /* @__PURE__ */ Object.create(null));
1546
1531
  return n[t] || (n[t] = Es(e, t));
1547
1532
  }
@@ -1565,7 +1550,7 @@ function zo(e) {
1565
1550
  function Cs(e) {
1566
1551
  const t = typeof e == "string" ? wn(e, !0, $t) : e;
1567
1552
  if (t) {
1568
- const n = ht(t.provider, t.prefix), r = t.name;
1553
+ const n = ft(t.provider, t.prefix), r = t.name;
1569
1554
  return n.icons[r] || (n.missing.has(r) ? null : void 0);
1570
1555
  }
1571
1556
  }
@@ -1573,7 +1558,7 @@ function As(e, t) {
1573
1558
  const n = wn(e, !0, $t);
1574
1559
  if (!n)
1575
1560
  return !1;
1576
- const r = ht(n.provider, n.prefix);
1561
+ const r = ft(n.provider, n.prefix);
1577
1562
  return js(r, n.name, t);
1578
1563
  }
1579
1564
  function Ss(e, t) {
@@ -1592,7 +1577,7 @@ function Ss(e, t) {
1592
1577
  name: "a"
1593
1578
  }))
1594
1579
  return !1;
1595
- const r = ht(t, n);
1580
+ const r = ft(t, n);
1596
1581
  return !!Er(r, e);
1597
1582
  }
1598
1583
  const Lo = Object.freeze({
@@ -1869,7 +1854,7 @@ function Zs(e) {
1869
1854
  if (r.name === i.name && r.prefix === i.prefix && r.provider === i.provider)
1870
1855
  return;
1871
1856
  r = i;
1872
- const o = i.provider, a = i.prefix, l = i.name, s = n[o] || (n[o] = /* @__PURE__ */ Object.create(null)), u = s[a] || (s[a] = ht(o, a));
1857
+ const o = i.provider, a = i.prefix, l = i.name, s = n[o] || (n[o] = /* @__PURE__ */ Object.create(null)), u = s[a] || (s[a] = ft(o, a));
1873
1858
  let c;
1874
1859
  l in u.icons ? c = t.loaded : a === "" || u.missing.has(l) ? c = t.missing : c = t.pending;
1875
1860
  const p = {
@@ -2001,7 +1986,7 @@ function nu(e, t, n, r) {
2001
1986
  M.status === "pending" && (M.status = "aborted");
2002
1987
  }), m = [];
2003
1988
  }
2004
- function U(M, L, $) {
1989
+ function R(M, L, $) {
2005
1990
  const G = L !== "success";
2006
1991
  switch (m = m.filter((X) => X !== M), s) {
2007
1992
  case "pending":
@@ -2048,7 +2033,7 @@ function nu(e, t, n, r) {
2048
2033
  status: "pending",
2049
2034
  resource: M,
2050
2035
  callback: ($, G) => {
2051
- U(L, $, G);
2036
+ R(L, $, G);
2052
2037
  }
2053
2038
  };
2054
2039
  m.push(L), u++, p = setTimeout(H, e.rotate), n(M, t, L.callback);
@@ -2205,7 +2190,7 @@ function Ho() {
2205
2190
  au(!0);
2206
2191
  for (const e in vn)
2207
2192
  Yo(e, (t) => {
2208
- const n = t.data, r = t.provider, i = n.prefix, o = ht(
2193
+ const n = t.data, r = t.provider, i = n.prefix, o = ft(
2209
2194
  r,
2210
2195
  i
2211
2196
  );
@@ -2318,11 +2303,11 @@ const pu = (e, t) => {
2318
2303
  const { provider: u, prefix: c } = s;
2319
2304
  if (c === l && u === a)
2320
2305
  return;
2321
- a = u, l = c, o.push(ht(u, c));
2306
+ a = u, l = c, o.push(ft(u, c));
2322
2307
  const p = i[u] || (i[u] = /* @__PURE__ */ Object.create(null));
2323
2308
  p[c] || (p[c] = []);
2324
2309
  }), r.pending.forEach((s) => {
2325
- const { provider: u, prefix: c, name: p } = s, m = ht(u, c), d = m.pendingIcons || (m.pendingIcons = /* @__PURE__ */ new Set());
2310
+ const { provider: u, prefix: c, name: p } = s, m = ft(u, c), d = m.pendingIcons || (m.pendingIcons = /* @__PURE__ */ new Set());
2326
2311
  d.has(p) || (d.add(p), i[u][c].push(p));
2327
2312
  }), o.forEach((s) => {
2328
2313
  const { provider: u, prefix: c } = s;
@@ -2490,7 +2475,7 @@ const Du = (e, t, n, r) => {
2490
2475
  let x = 0, E = t.id;
2491
2476
  return typeof E == "string" && (E = E.replace(/-/g, "_")), u.dangerouslySetInnerHTML = {
2492
2477
  __html: wu(Us(c.body, E ? () => E + "ID" + x++ : "iconifyReact"))
2493
- }, Te.createElement("svg", u);
2478
+ }, ve.createElement("svg", u);
2494
2479
  }
2495
2480
  const { body: m, width: d, height: D } = e, b = a === "mask" || (a === "bg" ? !1 : m.indexOf("currentColor") !== -1), C = mu(m, {
2496
2481
  ...p,
@@ -2505,7 +2490,7 @@ const Du = (e, t, n, r) => {
2505
2490
  ...Tu,
2506
2491
  ...b ? gr : qo,
2507
2492
  ...s
2508
- }, Te.createElement("span", u);
2493
+ }, ve.createElement("span", u);
2509
2494
  };
2510
2495
  zo(!0);
2511
2496
  Bs("", Ws);
@@ -2541,7 +2526,7 @@ if (typeof document < "u" && typeof window < "u") {
2541
2526
  }
2542
2527
  }
2543
2528
  }
2544
- class Vo extends Te.Component {
2529
+ class Vo extends ve.Component {
2545
2530
  constructor(t) {
2546
2531
  super(t), this.state = {
2547
2532
  // Render placeholder before component is mounted
@@ -2619,7 +2604,7 @@ class Vo extends Te.Component {
2619
2604
  render() {
2620
2605
  const t = this.props, n = this.state.icon;
2621
2606
  if (n === null)
2622
- return t.children ? t.children : Te.createElement("span", {});
2607
+ return t.children ? t.children : ve.createElement("span", {});
2623
2608
  let r = t;
2624
2609
  return n.classes && (r = {
2625
2610
  ...t,
@@ -2630,21 +2615,21 @@ class Vo extends Te.Component {
2630
2615
  }, r, t._inline, t._ref);
2631
2616
  }
2632
2617
  }
2633
- const vt = Te.forwardRef(function(t, n) {
2618
+ const vt = ve.forwardRef(function(t, n) {
2634
2619
  const r = {
2635
2620
  ...t,
2636
2621
  _ref: n,
2637
2622
  _inline: !1
2638
2623
  };
2639
- return Te.createElement(Vo, r);
2624
+ return ve.createElement(Vo, r);
2640
2625
  });
2641
- Te.forwardRef(function(t, n) {
2626
+ ve.forwardRef(function(t, n) {
2642
2627
  const r = {
2643
2628
  ...t,
2644
2629
  _ref: n,
2645
2630
  _inline: !0
2646
2631
  };
2647
- return Te.createElement(Vo, r);
2632
+ return ve.createElement(Vo, r);
2648
2633
  });
2649
2634
  function Go({
2650
2635
  children: e,
@@ -2655,17 +2640,17 @@ function Go({
2655
2640
  style: o = {}
2656
2641
  }) {
2657
2642
  var D;
2658
- const { proactiveMessage: a } = Pe(Re), [l, s] = xe(!0), [u, c] = xe(!1), p = l && (!(window != null && window.OnetrustActiveGroups) || ((D = window == null ? void 0 : window.OnetrustActiveGroups) == null ? void 0 : D.includes("C0003"))) && Fe.get(t) === void 0;
2659
- Ie(() => {
2643
+ const { proactiveMessage: a } = Fe(Pe), [l, s] = be(!0), [u, c] = be(!1), p = l && (!(window != null && window.OnetrustActiveGroups) || ((D = window == null ? void 0 : window.OnetrustActiveGroups) == null ? void 0 : D.includes("C0003"))) && _e.get(t) === void 0;
2644
+ Te(() => {
2660
2645
  var b;
2661
2646
  (b = window == null ? void 0 : window.OneTrust) == null || b.OnConsentChanged(() => {
2662
2647
  var C;
2663
- !((C = window == null ? void 0 : window.OnetrustActiveGroups) != null && C.includes("C0003")) && Fe.get(t) !== void 0 && Fe.remove(t);
2648
+ !((C = window == null ? void 0 : window.OnetrustActiveGroups) != null && C.includes("C0003")) && _e.get(t) !== void 0 && _e.remove(t);
2664
2649
  });
2665
- }, [t]), Ie(() => {
2650
+ }, [t]), Te(() => {
2666
2651
  var b;
2667
2652
  i || (!(window != null && window.OnetrustActiveGroups) || (b = window == null ? void 0 : window.OnetrustActiveGroups) != null && b.includes("C0003")) && d(t, 1, 1);
2668
- }, [t, i]), Ie(() => {
2653
+ }, [t, i]), Te(() => {
2669
2654
  if (a.enabled && a.delayMs > 0) {
2670
2655
  const b = setTimeout(() => {
2671
2656
  c(!0);
@@ -2682,7 +2667,7 @@ function Go({
2682
2667
  expires: x,
2683
2668
  path: "/"
2684
2669
  };
2685
- Fe.set(b, C, E);
2670
+ _e.set(b, C, E);
2686
2671
  };
2687
2672
  return u ? /* @__PURE__ */ T.jsx("div", { children: p && /* @__PURE__ */ T.jsxs(
2688
2673
  "div",
@@ -2778,14 +2763,14 @@ var Wo = { exports: {} };
2778
2763
  })(Wo);
2779
2764
  var Nu = Wo.exports;
2780
2765
  const Zo = /* @__PURE__ */ nt(Nu), ku = 576, Eu = (e) => {
2781
- const [t, n] = xe(), r = Ht(() => {
2766
+ const [t, n] = be(), r = Ht(() => {
2782
2767
  n(
2783
2768
  window.matchMedia(
2784
2769
  `(max-width: ${e || ku}px)`
2785
2770
  ).matches
2786
2771
  );
2787
2772
  }, [e]);
2788
- return Ie(() => (r(), window.addEventListener("resize", r), () => window.removeEventListener("resize", r)), [r]), t;
2773
+ return Te(() => (r(), window.addEventListener("resize", r), () => window.removeEventListener("resize", r)), [r]), t;
2789
2774
  }, rt = Eu, ju = 991;
2790
2775
  function Tn({
2791
2776
  label: e,
@@ -2835,7 +2820,7 @@ const zt = "data:image/svg+xml;base64,PHN2ZyB4bWxucz0iaHR0cDovL3d3dy53My5vcmcvMj
2835
2820
  "degrees-moodle-support": zt
2836
2821
  }, zr = ({ handleFloatingActionButtonClick: e }) => {
2837
2822
  var i, o;
2838
- const { xpertKey: t, launchButton: n } = Pe(Re), r = rt(Cu);
2823
+ const { xpertKey: t, launchButton: n } = Fe(Pe), r = rt(Cu);
2839
2824
  return /* @__PURE__ */ T.jsx(
2840
2825
  Tn,
2841
2826
  {
@@ -2871,21 +2856,21 @@ eyes follow your mouse when you hover near it.`, Lr = ({
2871
2856
  handleFloatingActionButtonClick: e
2872
2857
  }) => {
2873
2858
  var m, d, D, b, C, x, E;
2874
- const { xpertKey: t, launchButton: n } = Pe(Re), r = !Fe.get(
2859
+ const { xpertKey: t, launchButton: n } = Fe(Pe), r = !_e.get(
2875
2860
  `${t}-proactive-message-xpert-chatbot`
2876
- ), i = We(null), o = We(!1), a = r ? (m = n.animatedGraduate) == null ? void 0 : m.delayMs : ((d = n.animatedGraduate) == null ? void 0 : d.delayMs) * 2, [l, s] = xe(!1), u = rt(Ou);
2877
- Ie(() => {
2878
- const U = setTimeout(
2861
+ ), i = We(null), o = We(!1), a = r ? (m = n.animatedGraduate) == null ? void 0 : m.delayMs : ((d = n.animatedGraduate) == null ? void 0 : d.delayMs) * 2, [l, s] = be(!1), u = rt(Ou);
2862
+ Te(() => {
2863
+ const R = setTimeout(
2879
2864
  () => {
2880
2865
  s(!0);
2881
2866
  },
2882
2867
  a
2883
2868
  );
2884
2869
  return () => {
2885
- clearTimeout(U);
2870
+ clearTimeout(R);
2886
2871
  };
2887
- }, [a]), Ie(() => {
2888
- const j = (U) => {
2872
+ }, [a]), Te(() => {
2873
+ const j = (R) => {
2889
2874
  const H = window.matchMedia(
2890
2875
  `(max-width: ${zu}px)`
2891
2876
  ).matches, M = window.devicePixelRatio > 1.5;
@@ -2894,7 +2879,7 @@ eyes follow your mouse when you hover near it.`, Lr = ({
2894
2879
  i.current.querySelectorAll(
2895
2880
  ".xpert_chatbot__animated_graduate__pupil"
2896
2881
  ).forEach(($) => {
2897
- const G = $.getBoundingClientRect(), X = (U.pageX - window.scrollX - G.left) / 30 / 16 + "rem", S = (U.pageY - window.scrollY - G.top) / 30 / 16 + "rem";
2882
+ const G = $.getBoundingClientRect(), X = (R.pageX - window.scrollX - G.left) / 30 / 16 + "rem", S = (R.pageY - window.scrollY - G.top) / 30 / 16 + "rem";
2898
2883
  $.style.transform = "translate3d(" + X + "," + S + ", 0rem)";
2899
2884
  });
2900
2885
  };
@@ -3079,7 +3064,7 @@ Lr.defaultProps = {
3079
3064
  const _u = Lr;
3080
3065
  const Fu = 991, Pu = () => {
3081
3066
  var n;
3082
- const e = rt(Fu), { launchButton: t } = Pe(Re);
3067
+ const e = rt(Fu), { launchButton: t } = Fe(Pe);
3083
3068
  return (n = t.message) != null && n.enabled ? /* @__PURE__ */ T.jsx(
3084
3069
  "div",
3085
3070
  {
@@ -3096,7 +3081,7 @@ const Fu = 991, Pu = () => {
3096
3081
  * tabbable 6.2.0
3097
3082
  * @license MIT, https://github.com/focus-trap/tabbable/blob/master/LICENSE
3098
3083
  */
3099
- var Xo = ["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])"], gn = /* @__PURE__ */ Xo.join(","), Jo = typeof Element > "u", gt = Jo ? function() {
3084
+ var Xo = ["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])"], gn = /* @__PURE__ */ Xo.join(","), Jo = typeof Element > "u", dt = Jo ? function() {
3100
3085
  } : Element.prototype.matches || Element.prototype.msMatchesSelector || Element.prototype.webkitMatchesSelector, mn = !Jo && Element.prototype.getRootNode ? function(e) {
3101
3086
  var t;
3102
3087
  return e == null || (t = e.getRootNode) === null || t === void 0 ? void 0 : t.call(e);
@@ -3114,7 +3099,7 @@ var Xo = ["input:not([inert])", "select:not([inert])", "textarea:not([inert])",
3114
3099
  if (yn(t))
3115
3100
  return [];
3116
3101
  var i = Array.prototype.slice.apply(t.querySelectorAll(gn));
3117
- return n && gt.call(t, gn) && i.unshift(t), i = i.filter(r), i;
3102
+ return n && dt.call(t, gn) && i.unshift(t), i = i.filter(r), i;
3118
3103
  }, ta = function e(t, n, r) {
3119
3104
  for (var i = [], o = Array.from(t); o.length; ) {
3120
3105
  var a = o.shift();
@@ -3126,7 +3111,7 @@ var Xo = ["input:not([inert])", "select:not([inert])", "textarea:not([inert])",
3126
3111
  candidates: u
3127
3112
  });
3128
3113
  } else {
3129
- var c = gt.call(a, gn);
3114
+ var c = dt.call(a, gn);
3130
3115
  c && r.filter(a) && (n || !t.includes(a)) && i.push(a);
3131
3116
  var p = a.shadowRoot || // check for an undisclosed shadow
3132
3117
  typeof r.getShadowRoot == "function" && r.getShadowRoot(a), m = !yn(p, !1) && (!r.shadowRootFilter || r.shadowRootFilter(a));
@@ -3202,8 +3187,8 @@ var Xo = ["input:not([inert])", "select:not([inert])", "textarea:not([inert])",
3202
3187
  var r = n.displayCheck, i = n.getShadowRoot;
3203
3188
  if (getComputedStyle(t).visibility === "hidden")
3204
3189
  return !0;
3205
- var o = gt.call(t, "details>summary:first-of-type"), a = o ? t.parentElement : t;
3206
- if (gt.call(a, "details:not([open]) *"))
3190
+ var o = dt.call(t, "details>summary:first-of-type"), a = o ? t.parentElement : t;
3191
+ if (dt.call(a, "details:not([open]) *"))
3207
3192
  return !0;
3208
3193
  if (!r || r === "full" || r === "legacy-full") {
3209
3194
  if (typeof i == "function") {
@@ -3229,7 +3214,7 @@ var Xo = ["input:not([inert])", "select:not([inert])", "textarea:not([inert])",
3229
3214
  for (var r = 0; r < n.children.length; r++) {
3230
3215
  var i = n.children.item(r);
3231
3216
  if (i.tagName === "LEGEND")
3232
- return gt.call(n, "fieldset[disabled] *") ? !0 : !i.contains(t);
3217
+ return dt.call(n, "fieldset[disabled] *") ? !0 : !i.contains(t);
3233
3218
  }
3234
3219
  return !0;
3235
3220
  }
@@ -3278,21 +3263,21 @@ var Xo = ["input:not([inert])", "select:not([inert])", "textarea:not([inert])",
3278
3263
  flatten: !0,
3279
3264
  getShadowRoot: n.getShadowRoot
3280
3265
  }) : r = ea(t, n.includeContainer, Mn.bind(null, n)), r;
3281
- }, ft = function(t, n) {
3266
+ }, ct = function(t, n) {
3282
3267
  if (n = n || {}, !t)
3283
3268
  throw new Error("No node provided");
3284
- return gt.call(t, gn) === !1 ? !1 : mr(n, t);
3269
+ return dt.call(t, gn) === !1 ? !1 : mr(n, t);
3285
3270
  }, ec = /* @__PURE__ */ Xo.concat("iframe").join(","), cn = function(t, n) {
3286
3271
  if (n = n || {}, !t)
3287
3272
  throw new Error("No node provided");
3288
- return gt.call(t, ec) === !1 ? !1 : Mn(n, t);
3273
+ return dt.call(t, ec) === !1 ? !1 : Mn(n, t);
3289
3274
  };
3290
3275
  const tc = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineProperty({
3291
3276
  __proto__: null,
3292
3277
  focusable: oa,
3293
3278
  getTabIndex: tt,
3294
3279
  isFocusable: cn,
3295
- isTabbable: ft,
3280
+ isTabbable: ct,
3296
3281
  tabbable: ia
3297
3282
  }, Symbol.toStringTag, { value: "Module" }));
3298
3283
  /*!
@@ -3428,20 +3413,20 @@ var ji = {
3428
3413
  }, u = function(w, k) {
3429
3414
  var z = typeof (k == null ? void 0 : k.composedPath) == "function" ? k.composedPath() : void 0;
3430
3415
  return a.containerGroups.findIndex(function(_) {
3431
- var B = _.container, V = _.tabbableNodes;
3432
- return B.contains(w) || // fall back to explicit tabbable search which will take into consideration any
3416
+ var U = _.container, V = _.tabbableNodes;
3417
+ return U.contains(w) || // fall back to explicit tabbable search which will take into consideration any
3433
3418
  // web components if the `tabbableOptions.getShadowRoot` option was used for
3434
3419
  // the trap, enabling shadow DOM support in tabbable (`Node.contains()` doesn't
3435
3420
  // look inside web components even if open)
3436
- (z == null ? void 0 : z.includes(B)) || V.find(function(q) {
3421
+ (z == null ? void 0 : z.includes(U)) || V.find(function(q) {
3437
3422
  return q === w;
3438
3423
  });
3439
3424
  });
3440
3425
  }, c = function(w) {
3441
3426
  var k = o[w];
3442
3427
  if (typeof k == "function") {
3443
- for (var z = arguments.length, _ = new Array(z > 1 ? z - 1 : 0), B = 1; B < z; B++)
3444
- _[B - 1] = arguments[B];
3428
+ for (var z = arguments.length, _ = new Array(z > 1 ? z - 1 : 0), U = 1; U < z; U++)
3429
+ _[U - 1] = arguments[U];
3445
3430
  k = k.apply(void 0, _);
3446
3431
  }
3447
3432
  if (k === !0 && (k = void 0), !k) {
@@ -3469,10 +3454,10 @@ var ji = {
3469
3454
  return w;
3470
3455
  }, m = function() {
3471
3456
  if (a.containerGroups = a.containers.map(function(w) {
3472
- var k = ia(w, o.tabbableOptions), z = oa(w, o.tabbableOptions), _ = k.length > 0 ? k[0] : void 0, B = k.length > 0 ? k[k.length - 1] : void 0, V = z.find(function(g) {
3473
- return ft(g);
3457
+ var k = ia(w, o.tabbableOptions), z = oa(w, o.tabbableOptions), _ = k.length > 0 ? k[0] : void 0, U = k.length > 0 ? k[k.length - 1] : void 0, V = z.find(function(g) {
3458
+ return ct(g);
3474
3459
  }), q = z.slice().reverse().find(function(g) {
3475
- return ft(g);
3460
+ return ct(g);
3476
3461
  }), K = !!k.find(function(g) {
3477
3462
  return tt(g) > 0;
3478
3463
  });
@@ -3485,7 +3470,7 @@ var ji = {
3485
3470
  /** First tabbable node in container, __tabindex__ order; `undefined` if none. */
3486
3471
  firstTabbableNode: _,
3487
3472
  /** Last tabbable node in container, __tabindex__ order; `undefined` if none. */
3488
- lastTabbableNode: B,
3473
+ lastTabbableNode: U,
3489
3474
  // NOTE: DOM order is NOT NECESSARILY "document position" order, but figuring that out
3490
3475
  // would require more than just https://developer.mozilla.org/en-US/docs/Web/API/Node/compareDocumentPosition
3491
3476
  // because that API doesn't work with Shadow DOM as well as it should (@see
@@ -3505,12 +3490,12 @@ var ji = {
3505
3490
  * in reverse.
3506
3491
  * @returns {HTMLElement|undefined} The next tabbable node, if any.
3507
3492
  */
3508
- nextTabbableNode: function(de) {
3509
- var ye = arguments.length > 1 && arguments[1] !== void 0 ? arguments[1] : !0, h = k.indexOf(de);
3510
- return h < 0 ? ye ? z.slice(z.indexOf(de) + 1).find(function(ge) {
3511
- return ft(ge);
3512
- }) : z.slice(0, z.indexOf(de)).reverse().find(function(ge) {
3513
- return ft(ge);
3493
+ nextTabbableNode: function(he) {
3494
+ var ye = arguments.length > 1 && arguments[1] !== void 0 ? arguments[1] : !0, h = k.indexOf(he);
3495
+ return h < 0 ? ye ? z.slice(z.indexOf(he) + 1).find(function(ge) {
3496
+ return ct(ge);
3497
+ }) : z.slice(0, z.indexOf(he)).reverse().find(function(ge) {
3498
+ return ct(ge);
3514
3499
  }) : k[h + (ye ? 1 : -1)];
3515
3500
  }
3516
3501
  };
@@ -3540,31 +3525,31 @@ var ji = {
3540
3525
  var k = c("setReturnFocus", w);
3541
3526
  return k || (k === !1 ? !1 : w);
3542
3527
  }, C = function(w) {
3543
- var k = w.target, z = w.event, _ = w.isBackward, B = _ === void 0 ? !1 : _;
3528
+ var k = w.target, z = w.event, _ = w.isBackward, U = _ === void 0 ? !1 : _;
3544
3529
  k = k || rn(z), m();
3545
3530
  var V = null;
3546
3531
  if (a.tabbableGroups.length > 0) {
3547
3532
  var q = u(k, z), K = q >= 0 ? a.containerGroups[q] : void 0;
3548
3533
  if (q < 0)
3549
- B ? V = a.tabbableGroups[a.tabbableGroups.length - 1].lastTabbableNode : V = a.tabbableGroups[0].firstTabbableNode;
3550
- else if (B) {
3551
- var g = Ai(a.tabbableGroups, function(ne) {
3552
- var we = ne.firstTabbableNode;
3553
- return k === we;
3534
+ U ? V = a.tabbableGroups[a.tabbableGroups.length - 1].lastTabbableNode : V = a.tabbableGroups[0].firstTabbableNode;
3535
+ else if (U) {
3536
+ var g = Ai(a.tabbableGroups, function(re) {
3537
+ var xe = re.firstTabbableNode;
3538
+ return k === xe;
3554
3539
  });
3555
- if (g < 0 && (K.container === k || cn(k, o.tabbableOptions) && !ft(k, o.tabbableOptions) && !K.nextTabbableNode(k, !1)) && (g = q), g >= 0) {
3556
- var de = g === 0 ? a.tabbableGroups.length - 1 : g - 1, ye = a.tabbableGroups[de];
3540
+ if (g < 0 && (K.container === k || cn(k, o.tabbableOptions) && !ct(k, o.tabbableOptions) && !K.nextTabbableNode(k, !1)) && (g = q), g >= 0) {
3541
+ var he = g === 0 ? a.tabbableGroups.length - 1 : g - 1, ye = a.tabbableGroups[he];
3557
3542
  V = tt(k) >= 0 ? ye.lastTabbableNode : ye.lastDomTabbableNode;
3558
3543
  } else
3559
3544
  Bt(z) || (V = K.nextTabbableNode(k, !1));
3560
3545
  } else {
3561
- var h = Ai(a.tabbableGroups, function(ne) {
3562
- var we = ne.lastTabbableNode;
3563
- return k === we;
3546
+ var h = Ai(a.tabbableGroups, function(re) {
3547
+ var xe = re.lastTabbableNode;
3548
+ return k === xe;
3564
3549
  });
3565
- if (h < 0 && (K.container === k || cn(k, o.tabbableOptions) && !ft(k, o.tabbableOptions) && !K.nextTabbableNode(k)) && (h = q), h >= 0) {
3566
- var ge = h === a.tabbableGroups.length - 1 ? 0 : h + 1, Ee = a.tabbableGroups[ge];
3567
- V = tt(k) >= 0 ? Ee.firstTabbableNode : Ee.firstDomTabbableNode;
3550
+ if (h < 0 && (K.container === k || cn(k, o.tabbableOptions) && !ct(k, o.tabbableOptions) && !K.nextTabbableNode(k)) && (h = q), h >= 0) {
3551
+ var ge = h === a.tabbableGroups.length - 1 ? 0 : h + 1, ke = a.tabbableGroups[ge];
3552
+ V = tt(k) >= 0 ? ke.firstTabbableNode : ke.firstDomTabbableNode;
3568
3553
  } else
3569
3554
  Bt(z) || (V = K.nextTabbableNode(k));
3570
3555
  }
@@ -3594,7 +3579,7 @@ var ji = {
3594
3579
  z && (a.mostRecentlyFocusedNode = k);
3595
3580
  else {
3596
3581
  w.stopImmediatePropagation();
3597
- var _, B = !0;
3582
+ var _, U = !0;
3598
3583
  if (a.mostRecentlyFocusedNode)
3599
3584
  if (tt(a.mostRecentlyFocusedNode) > 0) {
3600
3585
  var V = u(a.mostRecentlyFocusedNode), q = a.containerGroups[V].tabbableNodes;
@@ -3602,17 +3587,17 @@ var ji = {
3602
3587
  var K = q.findIndex(function(g) {
3603
3588
  return g === a.mostRecentlyFocusedNode;
3604
3589
  });
3605
- K >= 0 && (o.isKeyForward(a.recentNavEvent) ? K + 1 < q.length && (_ = q[K + 1], B = !1) : K - 1 >= 0 && (_ = q[K - 1], B = !1));
3590
+ K >= 0 && (o.isKeyForward(a.recentNavEvent) ? K + 1 < q.length && (_ = q[K + 1], U = !1) : K - 1 >= 0 && (_ = q[K - 1], U = !1));
3606
3591
  }
3607
3592
  } else
3608
3593
  a.containerGroups.some(function(g) {
3609
- return g.tabbableNodes.some(function(de) {
3610
- return tt(de) > 0;
3594
+ return g.tabbableNodes.some(function(he) {
3595
+ return tt(he) > 0;
3611
3596
  });
3612
- }) || (B = !1);
3597
+ }) || (U = !1);
3613
3598
  else
3614
- B = !1;
3615
- B && (_ = C({
3599
+ U = !1;
3600
+ U && (_ = C({
3616
3601
  // move FROM the MRU node, not event-related node (which will be the node that is
3617
3602
  // outside the trap causing the focus escape we're trying to fix)
3618
3603
  target: a.mostRecentlyFocusedNode,
@@ -3628,7 +3613,7 @@ var ji = {
3628
3613
  isBackward: k
3629
3614
  });
3630
3615
  z && (Bt(w) && w.preventDefault(), D(z));
3631
- }, U = function(w) {
3616
+ }, R = function(w) {
3632
3617
  if (ac(w) && Lt(o.escapeDeactivates, w) !== !1) {
3633
3618
  w.preventDefault(), l.deactivate();
3634
3619
  return;
@@ -3650,18 +3635,18 @@ var ji = {
3650
3635
  }), r.addEventListener("click", H, {
3651
3636
  capture: !0,
3652
3637
  passive: !1
3653
- }), r.addEventListener("keydown", U, {
3638
+ }), r.addEventListener("keydown", R, {
3654
3639
  capture: !0,
3655
3640
  passive: !1
3656
3641
  }), l;
3657
3642
  }, L = function() {
3658
3643
  if (a.active)
3659
- return r.removeEventListener("focusin", E, !0), r.removeEventListener("mousedown", x, !0), r.removeEventListener("touchstart", x, !0), r.removeEventListener("click", H, !0), r.removeEventListener("keydown", U, !0), l;
3644
+ return r.removeEventListener("focusin", E, !0), r.removeEventListener("mousedown", x, !0), r.removeEventListener("touchstart", x, !0), r.removeEventListener("click", H, !0), r.removeEventListener("keydown", R, !0), l;
3660
3645
  }, $ = function(w) {
3661
3646
  var k = w.some(function(z) {
3662
3647
  var _ = Array.from(z.removedNodes);
3663
- return _.some(function(B) {
3664
- return B === a.mostRecentlyFocusedNode;
3648
+ return _.some(function(U) {
3649
+ return U === a.mostRecentlyFocusedNode;
3665
3650
  });
3666
3651
  });
3667
3652
  k && D(p());
@@ -3685,10 +3670,10 @@ var ji = {
3685
3670
  return this;
3686
3671
  var k = s(w, "onActivate"), z = s(w, "onPostActivate"), _ = s(w, "checkCanFocusTrap");
3687
3672
  _ || m(), a.active = !0, a.paused = !1, a.nodeFocusedBeforeActivation = r.activeElement, k == null || k();
3688
- var B = function() {
3673
+ var U = function() {
3689
3674
  _ && m(), M(), X(), z == null || z();
3690
3675
  };
3691
- return _ ? (_(a.containers.concat()).then(B, B), this) : (B(), this);
3676
+ return _ ? (_(a.containers.concat()).then(U, U), this) : (U(), this);
3692
3677
  },
3693
3678
  deactivate: function(w) {
3694
3679
  if (!a.active)
@@ -3699,14 +3684,14 @@ var ji = {
3699
3684
  checkCanReturnFocus: o.checkCanReturnFocus
3700
3685
  }, w);
3701
3686
  clearTimeout(a.delayInitialFocusTimer), a.delayInitialFocusTimer = void 0, L(), a.active = !1, a.paused = !1, X(), ji.deactivateTrap(i, l);
3702
- var z = s(k, "onDeactivate"), _ = s(k, "onPostDeactivate"), B = s(k, "checkCanReturnFocus"), V = s(k, "returnFocus", "returnFocusOnDeactivate");
3687
+ var z = s(k, "onDeactivate"), _ = s(k, "onPostDeactivate"), U = s(k, "checkCanReturnFocus"), V = s(k, "returnFocus", "returnFocusOnDeactivate");
3703
3688
  z == null || z();
3704
3689
  var q = function() {
3705
3690
  Ci(function() {
3706
3691
  V && D(b(a.nodeFocusedBeforeActivation)), _ == null || _();
3707
3692
  });
3708
3693
  };
3709
- return V && B ? (B(b(a.nodeFocusedBeforeActivation)).then(q, q), this) : (q(), this);
3694
+ return V && U ? (U(b(a.nodeFocusedBeforeActivation)).then(q, q), this) : (q(), this);
3710
3695
  },
3711
3696
  pause: function(w) {
3712
3697
  if (a.paused || !a.active)
@@ -3823,7 +3808,7 @@ function wc(e, t) {
3823
3808
  }
3824
3809
  return (t === "string" ? String : Number)(e);
3825
3810
  }
3826
- var on = Te, Y = Q, vc = fc, Tc = vc.createFocusTrap, Ic = dc, Dc = Ic.isFocusable, _r = /* @__PURE__ */ function(e) {
3811
+ var on = ve, Y = B, vc = fc, Tc = vc.createFocusTrap, Ic = dc, Dc = Ic.isFocusable, _r = /* @__PURE__ */ function(e) {
3827
3812
  mc(n, e);
3828
3813
  var t = yc(n);
3829
3814
  function n(r) {
@@ -4287,7 +4272,7 @@ function ua({
4287
4272
  onClose: i
4288
4273
  }) {
4289
4274
  var s, u, c, p, m, d, D, b, C;
4290
- const { primaryColor: o, conversationScreen: a } = Pe(Re), l = rt(Oc);
4275
+ const { primaryColor: o, conversationScreen: a } = Fe(Pe), l = rt(Oc);
4291
4276
  return /* @__PURE__ */ T.jsxs(
4292
4277
  "div",
4293
4278
  {
@@ -4370,8 +4355,8 @@ function Rr({
4370
4355
  loading: s,
4371
4356
  userInput: u
4372
4357
  }) {
4373
- const { primaryColor: c } = Pe(Re);
4374
- return Ie(() => {
4358
+ const { primaryColor: c } = Fe(Pe);
4359
+ return Te(() => {
4375
4360
  var p;
4376
4361
  (o || a) && ((p = l.current) == null || p.focus());
4377
4362
  }, [a, o, l]), /* @__PURE__ */ T.jsxs("div", { className: "xpert-chatbot-popup__input--group", style: e, children: [
@@ -4473,7 +4458,7 @@ function zi(e) {
4473
4458
  function Li(e) {
4474
4459
  return e && typeof e == "number" ? e : 1;
4475
4460
  }
4476
- class Ue extends Error {
4461
+ class Re extends Error {
4477
4462
  /**
4478
4463
  * Create a message for `reason` at `place` from `origin`.
4479
4464
  *
@@ -4507,17 +4492,17 @@ class Ue extends Error {
4507
4492
  n && ("type" in n || "position" in n ? n.position && (o = n.position) : "start" in n || "end" in n ? o = n : ("line" in n || "column" in n) && (o.start = n)), this.name = Qt(n) || "1:1", this.message = typeof t == "object" ? t.message : t, this.stack = "", typeof t == "object" && t.stack && (this.stack = t.stack), this.reason = this.message, this.fatal, this.line = o.start.line, this.column = o.start.column, this.position = o, this.source = i[0], this.ruleId = i[1], this.file, this.actual, this.expected, this.url, this.note;
4508
4493
  }
4509
4494
  }
4510
- Ue.prototype.file = "";
4511
- Ue.prototype.name = "";
4512
- Ue.prototype.reason = "";
4513
- Ue.prototype.message = "";
4514
- Ue.prototype.stack = "";
4515
- Ue.prototype.fatal = null;
4516
- Ue.prototype.column = null;
4517
- Ue.prototype.line = null;
4518
- Ue.prototype.source = null;
4519
- Ue.prototype.ruleId = null;
4520
- Ue.prototype.position = null;
4495
+ Re.prototype.file = "";
4496
+ Re.prototype.name = "";
4497
+ Re.prototype.reason = "";
4498
+ Re.prototype.message = "";
4499
+ Re.prototype.stack = "";
4500
+ Re.prototype.fatal = null;
4501
+ Re.prototype.column = null;
4502
+ Re.prototype.line = null;
4503
+ Re.prototype.source = null;
4504
+ Re.prototype.ruleId = null;
4505
+ Re.prototype.position = null;
4521
4506
  const Ve = { basename: _c, dirname: Fc, extname: Pc, join: Rc, sep: "/" };
4522
4507
  function _c(e, t) {
4523
4508
  if (t !== void 0 && typeof t != "string")
@@ -4829,7 +4814,7 @@ class pa {
4829
4814
  * Message.
4830
4815
  */
4831
4816
  message(t, n, r) {
4832
- const i = new Ue(t, n, r);
4817
+ const i = new Re(t, n, r);
4833
4818
  return this.path && (i.name = this.path + ":" + i.name, i.file = this.path), i.fatal = !1, this.messages.push(i), i;
4834
4819
  }
4835
4820
  /**
@@ -5030,7 +5015,7 @@ function ha() {
5030
5015
  if (typeof b == "function")
5031
5016
  H(b, ...C);
5032
5017
  else if (typeof b == "object")
5033
- Array.isArray(b) ? U(b) : j(b);
5018
+ Array.isArray(b) ? R(b) : j(b);
5034
5019
  else
5035
5020
  throw new TypeError("Expected usable value, not `" + b + "`");
5036
5021
  return x && (n.settings = Object.assign(n.settings || {}, x)), o;
@@ -5047,9 +5032,9 @@ function ha() {
5047
5032
  throw new TypeError("Expected usable value, not `" + M + "`");
5048
5033
  }
5049
5034
  function j(M) {
5050
- U(M.plugins), M.settings && (x = Object.assign(x || {}, M.settings));
5035
+ R(M.plugins), M.settings && (x = Object.assign(x || {}, M.settings));
5051
5036
  }
5052
- function U(M) {
5037
+ function R(M) {
5053
5038
  let L = -1;
5054
5039
  if (M != null)
5055
5040
  if (Array.isArray(M))
@@ -5084,18 +5069,18 @@ function ha() {
5084
5069
  if (qi(b), o.freeze(), !x && typeof C == "function" && (x = C, C = void 0), !x)
5085
5070
  return new Promise(E);
5086
5071
  E(null, x);
5087
- function E(j, U) {
5072
+ function E(j, R) {
5088
5073
  e.run(b, Ft(C), H);
5089
5074
  function H(M, L, $) {
5090
- L = L || b, M ? U(M) : j ? j(L) : x(null, L, $);
5075
+ L = L || b, M ? R(M) : j ? j(L) : x(null, L, $);
5091
5076
  }
5092
5077
  }
5093
5078
  }
5094
5079
  function m(b, C) {
5095
5080
  let x, E;
5096
5081
  return o.run(b, C, j), Vi("runSync", "run", E), x;
5097
- function j(U, H) {
5098
- Fi(U), x = H, E = !0;
5082
+ function j(R, H) {
5083
+ Fi(R), x = H, E = !0;
5099
5084
  }
5100
5085
  }
5101
5086
  function d(b, C) {
@@ -5103,8 +5088,8 @@ function ha() {
5103
5088
  return new Promise(x);
5104
5089
  x(null, C);
5105
5090
  function x(E, j) {
5106
- const U = Ft(b);
5107
- o.run(o.parse(U), U, (M, L, $) => {
5091
+ const R = Ft(b);
5092
+ o.run(o.parse(R), R, (M, L, $) => {
5108
5093
  if (M || !L || !$)
5109
5094
  H(M);
5110
5095
  else {
@@ -5211,7 +5196,7 @@ function Ze(e, t, n, r) {
5211
5196
  for (n && e.splice(t, n); o < r.length; )
5212
5197
  a = r.slice(o, o + 1e4), a.unshift(t, 0), e.splice(...a), o += 1e4, t += 1e4;
5213
5198
  }
5214
- function _e(e, t) {
5199
+ function Le(e, t) {
5215
5200
  return e.length > 0 ? (Ze(e, e.length, 0, t), e) : t;
5216
5201
  }
5217
5202
  const Wi = {}.hasOwnProperty;
@@ -5246,7 +5231,7 @@ function op(e, t) {
5246
5231
  (t[n].add === "after" ? e : r).push(t[n]);
5247
5232
  Ze(e, 0, 0, r);
5248
5233
  }
5249
- const ap = /[!-\/:-@\[-`\{-~\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]/, Ge = it(/[A-Za-z]/), Se = it(/[\dA-Za-z]/), lp = it(/[#-'*+\--9=?A-Z^-~]/);
5234
+ const ap = /[!-\/:-@\[-`\{-~\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]/, Ge = it(/[A-Za-z]/), Ae = it(/[\dA-Za-z]/), lp = it(/[#-'*+\--9=?A-Z^-~]/);
5250
5235
  function wr(e) {
5251
5236
  return (
5252
5237
  // Special whitespace codes (which have negative values), C0 and Control
@@ -5258,7 +5243,7 @@ const vr = it(/\d/), sp = it(/[\dA-Fa-f]/), up = it(/[!-/:-@[-`{-~]/);
5258
5243
  function W(e) {
5259
5244
  return e !== null && e < -2;
5260
5245
  }
5261
- function ke(e) {
5246
+ function Ne(e) {
5262
5247
  return e !== null && (e < 0 || e === 32);
5263
5248
  }
5264
5249
  function ie(e) {
@@ -5271,7 +5256,7 @@ function it(e) {
5271
5256
  return n !== null && e.test(String.fromCharCode(n));
5272
5257
  }
5273
5258
  }
5274
- function ce(e, t, n, r) {
5259
+ function pe(e, t, n, r) {
5275
5260
  const i = r ? r - 1 : Number.POSITIVE_INFINITY;
5276
5261
  let o = 0;
5277
5262
  return a;
@@ -5298,7 +5283,7 @@ function dp(e) {
5298
5283
  e.consume(l);
5299
5284
  return;
5300
5285
  }
5301
- return e.enter("lineEnding"), e.consume(l), e.exit("lineEnding"), ce(e, t, "linePrefix");
5286
+ return e.enter("lineEnding"), e.consume(l), e.exit("lineEnding"), pe(e, t, "linePrefix");
5302
5287
  }
5303
5288
  function i(l) {
5304
5289
  return e.enter("paragraph"), o(l);
@@ -5329,9 +5314,9 @@ function gp(e) {
5329
5314
  return l;
5330
5315
  function l(j) {
5331
5316
  if (r < n.length) {
5332
- const U = n[r];
5333
- return t.containerState = U[1], e.attempt(
5334
- U[0].continuation,
5317
+ const R = n[r];
5318
+ return t.containerState = R[1], e.attempt(
5319
+ R[0].continuation,
5335
5320
  s,
5336
5321
  u
5337
5322
  )(j);
@@ -5341,22 +5326,22 @@ function gp(e) {
5341
5326
  function s(j) {
5342
5327
  if (r++, t.containerState._closeFlow) {
5343
5328
  t.containerState._closeFlow = void 0, i && E();
5344
- const U = t.events.length;
5345
- let H = U, M;
5329
+ const R = t.events.length;
5330
+ let H = R, M;
5346
5331
  for (; H--; )
5347
5332
  if (t.events[H][0] === "exit" && t.events[H][1].type === "chunkFlow") {
5348
5333
  M = t.events[H][1].end;
5349
5334
  break;
5350
5335
  }
5351
5336
  x(r);
5352
- let L = U;
5337
+ let L = R;
5353
5338
  for (; L < t.events.length; )
5354
5339
  t.events[L][1].end = Object.assign({}, M), L++;
5355
5340
  return Ze(
5356
5341
  t.events,
5357
5342
  H + 1,
5358
5343
  0,
5359
- t.events.slice(U)
5344
+ t.events.slice(R)
5360
5345
  ), t.events.length = L, u(j);
5361
5346
  }
5362
5347
  return l(j);
@@ -5409,9 +5394,9 @@ function gp(e) {
5409
5394
  }
5410
5395
  return W(j) ? (e.consume(j), C(e.exit("chunkFlow")), r = 0, t.interrupt = void 0, l) : (e.consume(j), b);
5411
5396
  }
5412
- function C(j, U) {
5397
+ function C(j, R) {
5413
5398
  const H = t.sliceStream(j);
5414
- if (U && H.push(null), j.previous = o, o && (o.next = j), o = j, i.defineSkip(j.start), i.write(H), t.parser.lazy[j.start.line]) {
5399
+ if (R && H.push(null), j.previous = o, o && (o.next = j), o = j, i.defineSkip(j.start), i.write(H), t.parser.lazy[j.start.line]) {
5415
5400
  let M = i.events.length;
5416
5401
  for (; M--; )
5417
5402
  if (
@@ -5442,9 +5427,9 @@ function gp(e) {
5442
5427
  }
5443
5428
  }
5444
5429
  function x(j) {
5445
- let U = n.length;
5446
- for (; U-- > j; ) {
5447
- const H = n[U];
5430
+ let R = n.length;
5431
+ for (; R-- > j; ) {
5432
+ const H = n[R];
5448
5433
  t.containerState = H[1], H[0].exit.call(t, e);
5449
5434
  }
5450
5435
  n.length = j;
@@ -5454,7 +5439,7 @@ function gp(e) {
5454
5439
  }
5455
5440
  }
5456
5441
  function mp(e, t, n) {
5457
- return ce(
5442
+ return pe(
5458
5443
  e,
5459
5444
  e.attempt(this.parser.constructs.document, t, n),
5460
5445
  "linePrefix",
@@ -5462,7 +5447,7 @@ function mp(e, t, n) {
5462
5447
  );
5463
5448
  }
5464
5449
  function Ki(e) {
5465
- if (e === null || ke(e) || pp(e))
5450
+ if (e === null || Ne(e) || pp(e))
5466
5451
  return 1;
5467
5452
  if (cp(e))
5468
5453
  return 2;
@@ -5508,27 +5493,27 @@ function yp(e, t) {
5508
5493
  type: s > 1 ? "strong" : "emphasis",
5509
5494
  start: Object.assign({}, a.start),
5510
5495
  end: Object.assign({}, l.end)
5511
- }, e[r][1].end = Object.assign({}, a.start), e[n][1].start = Object.assign({}, l.end), u = [], e[r][1].end.offset - e[r][1].start.offset && (u = _e(u, [
5496
+ }, e[r][1].end = Object.assign({}, a.start), e[n][1].start = Object.assign({}, l.end), u = [], e[r][1].end.offset - e[r][1].start.offset && (u = Le(u, [
5512
5497
  ["enter", e[r][1], t],
5513
5498
  ["exit", e[r][1], t]
5514
- ])), u = _e(u, [
5499
+ ])), u = Le(u, [
5515
5500
  ["enter", i, t],
5516
5501
  ["enter", a, t],
5517
5502
  ["exit", a, t],
5518
5503
  ["enter", o, t]
5519
- ]), u = _e(
5504
+ ]), u = Le(
5520
5505
  u,
5521
5506
  Ur(
5522
5507
  t.parser.constructs.insideSpan.null,
5523
5508
  e.slice(r + 1, n),
5524
5509
  t
5525
5510
  )
5526
- ), u = _e(u, [
5511
+ ), u = Le(u, [
5527
5512
  ["exit", o, t],
5528
5513
  ["enter", l, t],
5529
5514
  ["exit", l, t],
5530
5515
  ["exit", i, t]
5531
- ]), e[n][1].end.offset - e[n][1].start.offset ? (c = 2, u = _e(u, [
5516
+ ]), e[n][1].end.offset - e[n][1].start.offset ? (c = 2, u = Le(u, [
5532
5517
  ["enter", e[n][1], t],
5533
5518
  ["exit", e[n][1], t]
5534
5519
  ])) : c = 0, Ze(e, r - 1, n - r + 3, u), n = r + u.length - c - 2;
@@ -5570,10 +5555,10 @@ function xp(e, t, n) {
5570
5555
  return Ge(d) ? (e.consume(d), a) : u(d);
5571
5556
  }
5572
5557
  function a(d) {
5573
- return d === 43 || d === 45 || d === 46 || Se(d) ? (r = 1, l(d)) : u(d);
5558
+ return d === 43 || d === 45 || d === 46 || Ae(d) ? (r = 1, l(d)) : u(d);
5574
5559
  }
5575
5560
  function l(d) {
5576
- return d === 58 ? (e.consume(d), r = 0, s) : (d === 43 || d === 45 || d === 46 || Se(d)) && r++ < 32 ? (e.consume(d), l) : (r = 0, u(d));
5561
+ return d === 58 ? (e.consume(d), r = 0, s) : (d === 43 || d === 45 || d === 46 || Ae(d)) && r++ < 32 ? (e.consume(d), l) : (r = 0, u(d));
5577
5562
  }
5578
5563
  function s(d) {
5579
5564
  return d === 62 ? (e.exit("autolinkProtocol"), e.enter("autolinkMarker"), e.consume(d), e.exit("autolinkMarker"), e.exit("autolink"), t) : d === null || d === 32 || d === 60 || wr(d) ? n(d) : (e.consume(d), s);
@@ -5582,13 +5567,13 @@ function xp(e, t, n) {
5582
5567
  return d === 64 ? (e.consume(d), c) : lp(d) ? (e.consume(d), u) : n(d);
5583
5568
  }
5584
5569
  function c(d) {
5585
- return Se(d) ? p(d) : n(d);
5570
+ return Ae(d) ? p(d) : n(d);
5586
5571
  }
5587
5572
  function p(d) {
5588
5573
  return d === 46 ? (e.consume(d), r = 0, c) : d === 62 ? (e.exit("autolinkProtocol").type = "autolinkEmail", e.enter("autolinkMarker"), e.consume(d), e.exit("autolinkMarker"), e.exit("autolink"), t) : m(d);
5589
5574
  }
5590
5575
  function m(d) {
5591
- if ((d === 45 || Se(d)) && r++ < 63) {
5576
+ if ((d === 45 || Ae(d)) && r++ < 63) {
5592
5577
  const D = d === 45 ? m : p;
5593
5578
  return e.consume(d), D;
5594
5579
  }
@@ -5602,7 +5587,7 @@ const In = {
5602
5587
  function wp(e, t, n) {
5603
5588
  return r;
5604
5589
  function r(o) {
5605
- return ie(o) ? ce(e, i, "linePrefix")(o) : i(o);
5590
+ return ie(o) ? pe(e, i, "linePrefix")(o) : i(o);
5606
5591
  }
5607
5592
  function i(o) {
5608
5593
  return o === null || W(o) ? t(o) : n(o);
@@ -5636,7 +5621,7 @@ function Tp(e, t, n) {
5636
5621
  const r = this;
5637
5622
  return i;
5638
5623
  function i(a) {
5639
- return ie(a) ? ce(
5624
+ return ie(a) ? pe(
5640
5625
  e,
5641
5626
  o,
5642
5627
  "linePrefix",
@@ -5682,7 +5667,7 @@ function Np(e, t, n) {
5682
5667
  return e.enter("characterReference"), e.enter("characterReferenceMarker"), e.consume(p), e.exit("characterReferenceMarker"), s;
5683
5668
  }
5684
5669
  function s(p) {
5685
- return p === 35 ? (e.enter("characterReferenceMarkerNumeric"), e.consume(p), e.exit("characterReferenceMarkerNumeric"), u) : (e.enter("characterReferenceValue"), o = 31, a = Se, c(p));
5670
+ return p === 35 ? (e.enter("characterReferenceMarkerNumeric"), e.consume(p), e.exit("characterReferenceMarkerNumeric"), u) : (e.enter("characterReferenceValue"), o = 31, a = Ae, c(p));
5686
5671
  }
5687
5672
  function u(p) {
5688
5673
  return p === 88 || p === 120 ? (e.enter("characterReferenceMarkerHexadecimal"), e.consume(p), e.exit("characterReferenceMarkerHexadecimal"), e.enter("characterReferenceValue"), o = 6, a = sp, c) : (e.enter("characterReferenceValue"), o = 7, a = vr, c(p));
@@ -5690,7 +5675,7 @@ function Np(e, t, n) {
5690
5675
  function c(p) {
5691
5676
  if (p === 59 && i) {
5692
5677
  const m = e.exit("characterReferenceValue");
5693
- return a === Se && !Br(r.sliceSerialize(m)) ? n(p) : (e.enter("characterReferenceMarker"), e.consume(p), e.exit("characterReferenceMarker"), e.exit("characterReference"), t);
5678
+ return a === Ae && !Br(r.sliceSerialize(m)) ? n(p) : (e.enter("characterReferenceMarker"), e.consume(p), e.exit("characterReferenceMarker"), e.exit("characterReference"), t);
5694
5679
  }
5695
5680
  return a(p) && i++ < o ? (e.consume(p), c) : n(p);
5696
5681
  }
@@ -5718,15 +5703,15 @@ function kp(e, t, n) {
5718
5703
  return o = L && L[1].type === "linePrefix" ? L[2].sliceSerialize(L[1], !0).length : 0, l = M, e.enter("codeFenced"), e.enter("codeFencedFence"), e.enter("codeFencedFenceSequence"), c(M);
5719
5704
  }
5720
5705
  function c(M) {
5721
- return M === l ? (a++, e.consume(M), c) : a < 3 ? n(M) : (e.exit("codeFencedFenceSequence"), ie(M) ? ce(e, p, "whitespace")(M) : p(M));
5706
+ return M === l ? (a++, e.consume(M), c) : a < 3 ? n(M) : (e.exit("codeFencedFenceSequence"), ie(M) ? pe(e, p, "whitespace")(M) : p(M));
5722
5707
  }
5723
5708
  function p(M) {
5724
- return M === null || W(M) ? (e.exit("codeFencedFence"), r.interrupt ? t(M) : e.check(eo, b, U)(M)) : (e.enter("codeFencedFenceInfo"), e.enter("chunkString", {
5709
+ return M === null || W(M) ? (e.exit("codeFencedFence"), r.interrupt ? t(M) : e.check(eo, b, R)(M)) : (e.enter("codeFencedFenceInfo"), e.enter("chunkString", {
5725
5710
  contentType: "string"
5726
5711
  }), m(M));
5727
5712
  }
5728
5713
  function m(M) {
5729
- return M === null || W(M) ? (e.exit("chunkString"), e.exit("codeFencedFenceInfo"), p(M)) : ie(M) ? (e.exit("chunkString"), e.exit("codeFencedFenceInfo"), ce(e, d, "whitespace")(M)) : M === 96 && M === l ? n(M) : (e.consume(M), m);
5714
+ return M === null || W(M) ? (e.exit("chunkString"), e.exit("codeFencedFenceInfo"), p(M)) : ie(M) ? (e.exit("chunkString"), e.exit("codeFencedFenceInfo"), pe(e, d, "whitespace")(M)) : M === 96 && M === l ? n(M) : (e.consume(M), m);
5730
5715
  }
5731
5716
  function d(M) {
5732
5717
  return M === null || W(M) ? p(M) : (e.enter("codeFencedFenceMeta"), e.enter("chunkString", {
@@ -5737,13 +5722,13 @@ function kp(e, t, n) {
5737
5722
  return M === null || W(M) ? (e.exit("chunkString"), e.exit("codeFencedFenceMeta"), p(M)) : M === 96 && M === l ? n(M) : (e.consume(M), D);
5738
5723
  }
5739
5724
  function b(M) {
5740
- return e.attempt(i, U, C)(M);
5725
+ return e.attempt(i, R, C)(M);
5741
5726
  }
5742
5727
  function C(M) {
5743
5728
  return e.enter("lineEnding"), e.consume(M), e.exit("lineEnding"), x;
5744
5729
  }
5745
5730
  function x(M) {
5746
- return o > 0 && ie(M) ? ce(
5731
+ return o > 0 && ie(M) ? pe(
5747
5732
  e,
5748
5733
  E,
5749
5734
  "linePrefix",
@@ -5751,12 +5736,12 @@ function kp(e, t, n) {
5751
5736
  )(M) : E(M);
5752
5737
  }
5753
5738
  function E(M) {
5754
- return M === null || W(M) ? e.check(eo, b, U)(M) : (e.enter("codeFlowValue"), j(M));
5739
+ return M === null || W(M) ? e.check(eo, b, R)(M) : (e.enter("codeFlowValue"), j(M));
5755
5740
  }
5756
5741
  function j(M) {
5757
5742
  return M === null || W(M) ? (e.exit("codeFlowValue"), E(M)) : (e.consume(M), j);
5758
5743
  }
5759
- function U(M) {
5744
+ function R(M) {
5760
5745
  return e.exit("codeFenced"), t(M);
5761
5746
  }
5762
5747
  function H(M, L, $) {
@@ -5766,7 +5751,7 @@ function kp(e, t, n) {
5766
5751
  return M.enter("lineEnding"), M.consume(_), M.exit("lineEnding"), S;
5767
5752
  }
5768
5753
  function S(_) {
5769
- return M.enter("codeFencedFence"), ie(_) ? ce(
5754
+ return M.enter("codeFencedFence"), ie(_) ? pe(
5770
5755
  M,
5771
5756
  w,
5772
5757
  "linePrefix",
@@ -5777,7 +5762,7 @@ function kp(e, t, n) {
5777
5762
  return _ === l ? (M.enter("codeFencedFenceSequence"), k(_)) : $(_);
5778
5763
  }
5779
5764
  function k(_) {
5780
- return _ === l ? (G++, M.consume(_), k) : G >= a ? (M.exit("codeFencedFenceSequence"), ie(_) ? ce(M, z, "whitespace")(_) : z(_)) : $(_);
5765
+ return _ === l ? (G++, M.consume(_), k) : G >= a ? (M.exit("codeFencedFenceSequence"), ie(_) ? pe(M, z, "whitespace")(_) : z(_)) : $(_);
5781
5766
  }
5782
5767
  function z(_) {
5783
5768
  return _ === null || W(_) ? (M.exit("codeFencedFence"), L(_)) : $(_);
@@ -5805,7 +5790,7 @@ function Cp(e, t, n) {
5805
5790
  const r = this;
5806
5791
  return i;
5807
5792
  function i(u) {
5808
- return e.enter("codeIndented"), ce(e, o, "linePrefix", 4 + 1)(u);
5793
+ return e.enter("codeIndented"), pe(e, o, "linePrefix", 4 + 1)(u);
5809
5794
  }
5810
5795
  function o(u) {
5811
5796
  const c = r.events[r.events.length - 1];
@@ -5825,7 +5810,7 @@ function Ap(e, t, n) {
5825
5810
  const r = this;
5826
5811
  return i;
5827
5812
  function i(a) {
5828
- return r.parser.lazy[r.now().line] ? n(a) : W(a) ? (e.enter("lineEnding"), e.consume(a), e.exit("lineEnding"), i) : ce(e, o, "linePrefix", 4 + 1)(a);
5813
+ return r.parser.lazy[r.now().line] ? n(a) : W(a) ? (e.enter("lineEnding"), e.consume(a), e.exit("lineEnding"), i) : pe(e, o, "linePrefix", 4 + 1)(a);
5829
5814
  }
5830
5815
  function o(a) {
5831
5816
  const l = r.events[r.events.length - 1];
@@ -5953,7 +5938,7 @@ function Bp(e, t, n) {
5953
5938
  const r = this;
5954
5939
  return i;
5955
5940
  function i(a) {
5956
- return e.exit("chunkContent"), e.enter("lineEnding"), e.consume(a), e.exit("lineEnding"), ce(e, o, "linePrefix");
5941
+ return e.exit("chunkContent"), e.enter("lineEnding"), e.consume(a), e.exit("lineEnding"), pe(e, o, "linePrefix");
5957
5942
  }
5958
5943
  function o(a) {
5959
5944
  if (a === null || W(a))
@@ -5983,7 +5968,7 @@ function xa(e, t, n, r, i, o, a, l, s) {
5983
5968
  return x === 60 || x === 62 || x === 92 ? (e.consume(x), d) : d(x);
5984
5969
  }
5985
5970
  function b(x) {
5986
- return !c && (x === null || x === 41 || ke(x)) ? (e.exit("chunkString"), e.exit(l), e.exit(a), e.exit(r), t(x)) : c < u && x === 40 ? (e.consume(x), c++, b) : x === 41 ? (e.consume(x), c--, b) : x === null || x === 32 || x === 40 || wr(x) ? n(x) : (e.consume(x), x === 92 ? C : b);
5971
+ return !c && (x === null || x === 41 || Ne(x)) ? (e.exit("chunkString"), e.exit(l), e.exit(a), e.exit(r), t(x)) : c < u && x === 40 ? (e.consume(x), c++, b) : x === 41 ? (e.consume(x), c--, b) : x === null || x === 32 || x === 40 || wr(x) ? n(x) : (e.consume(x), x === 92 ? C : b);
5987
5972
  }
5988
5973
  function C(x) {
5989
5974
  return x === 40 || x === 41 || x === 92 ? (e.consume(x), b) : b(x);
@@ -6023,7 +6008,7 @@ function va(e, t, n, r, i, o) {
6023
6008
  return m === a ? (e.enter(i), e.consume(m), e.exit(i), e.exit(r), t) : (e.enter(o), u(m));
6024
6009
  }
6025
6010
  function u(m) {
6026
- return m === a ? (e.exit(o), s(a)) : m === null ? n(m) : W(m) ? (e.enter("lineEnding"), e.consume(m), e.exit("lineEnding"), ce(e, u, "linePrefix")) : (e.enter("chunkString", {
6011
+ return m === a ? (e.exit(o), s(a)) : m === null ? n(m) : W(m) ? (e.enter("lineEnding"), e.consume(m), e.exit("lineEnding"), pe(e, u, "linePrefix")) : (e.enter("chunkString", {
6027
6012
  contentType: "string"
6028
6013
  }), c(m));
6029
6014
  }
@@ -6038,7 +6023,7 @@ function Yt(e, t) {
6038
6023
  let n;
6039
6024
  return r;
6040
6025
  function r(i) {
6041
- return W(i) ? (e.enter("lineEnding"), e.consume(i), e.exit("lineEnding"), n = !0, r) : ie(i) ? ce(
6026
+ return W(i) ? (e.enter("lineEnding"), e.consume(i), e.exit("lineEnding"), n = !0, r) : ie(i) ? pe(
6042
6027
  e,
6043
6028
  r,
6044
6029
  n ? "linePrefix" : "lineSuffix"
@@ -6080,7 +6065,7 @@ function Hp(e, t, n) {
6080
6065
  ), d === 58 ? (e.enter("definitionMarker"), e.consume(d), e.exit("definitionMarker"), s) : n(d);
6081
6066
  }
6082
6067
  function s(d) {
6083
- return ke(d) ? Yt(e, u)(d) : u(d);
6068
+ return Ne(d) ? Yt(e, u)(d) : u(d);
6084
6069
  }
6085
6070
  function u(d) {
6086
6071
  return xa(
@@ -6099,7 +6084,7 @@ function Hp(e, t, n) {
6099
6084
  return e.attempt(Yp, p, p)(d);
6100
6085
  }
6101
6086
  function p(d) {
6102
- return ie(d) ? ce(e, m, "whitespace")(d) : m(d);
6087
+ return ie(d) ? pe(e, m, "whitespace")(d) : m(d);
6103
6088
  }
6104
6089
  function m(d) {
6105
6090
  return d === null || W(d) ? (e.exit("definition"), r.parser.defined.push(i), t(d)) : n(d);
@@ -6108,7 +6093,7 @@ function Hp(e, t, n) {
6108
6093
  function $p(e, t, n) {
6109
6094
  return r;
6110
6095
  function r(l) {
6111
- return ke(l) ? Yt(e, i)(l) : n(l);
6096
+ return Ne(l) ? Yt(e, i)(l) : n(l);
6112
6097
  }
6113
6098
  function i(l) {
6114
6099
  return va(
@@ -6121,7 +6106,7 @@ function $p(e, t, n) {
6121
6106
  )(l);
6122
6107
  }
6123
6108
  function o(l) {
6124
- return ie(l) ? ce(e, a, "whitespace")(l) : a(l);
6109
+ return ie(l) ? pe(e, a, "whitespace")(l) : a(l);
6125
6110
  }
6126
6111
  function a(l) {
6127
6112
  return l === null || W(l) ? t(l) : n(l);
@@ -6173,16 +6158,16 @@ function Zp(e, t, n) {
6173
6158
  return e.enter("atxHeadingSequence"), a(c);
6174
6159
  }
6175
6160
  function a(c) {
6176
- return c === 35 && r++ < 6 ? (e.consume(c), a) : c === null || ke(c) ? (e.exit("atxHeadingSequence"), l(c)) : n(c);
6161
+ return c === 35 && r++ < 6 ? (e.consume(c), a) : c === null || Ne(c) ? (e.exit("atxHeadingSequence"), l(c)) : n(c);
6177
6162
  }
6178
6163
  function l(c) {
6179
- return c === 35 ? (e.enter("atxHeadingSequence"), s(c)) : c === null || W(c) ? (e.exit("atxHeading"), t(c)) : ie(c) ? ce(e, l, "whitespace")(c) : (e.enter("atxHeadingText"), u(c));
6164
+ return c === 35 ? (e.enter("atxHeadingSequence"), s(c)) : c === null || W(c) ? (e.exit("atxHeading"), t(c)) : ie(c) ? pe(e, l, "whitespace")(c) : (e.enter("atxHeadingText"), u(c));
6180
6165
  }
6181
6166
  function s(c) {
6182
6167
  return c === 35 ? (e.consume(c), s) : (e.exit("atxHeadingSequence"), l(c));
6183
6168
  }
6184
6169
  function u(c) {
6185
- return c === null || c === 35 || ke(c) ? (e.exit("atxHeadingText"), l(c)) : (e.consume(c), u);
6170
+ return c === null || c === 35 || Ne(c) ? (e.exit("atxHeadingText"), l(c)) : (e.consume(c), u);
6186
6171
  }
6187
6172
  }
6188
6173
  const Kp = [
@@ -6293,11 +6278,11 @@ function nf(e, t, n) {
6293
6278
  return Ge(h) ? (e.consume(h), a = String.fromCharCode(h), C) : n(h);
6294
6279
  }
6295
6280
  function C(h) {
6296
- if (h === null || h === 47 || h === 62 || ke(h)) {
6297
- const ge = h === 47, Ee = a.toLowerCase();
6298
- return !ge && !o && no.includes(Ee) ? (i = 1, r.interrupt ? t(h) : w(h)) : Kp.includes(a.toLowerCase()) ? (i = 6, ge ? (e.consume(h), x) : r.interrupt ? t(h) : w(h)) : (i = 7, r.interrupt && !r.parser.lazy[r.now().line] ? n(h) : o ? E(h) : j(h));
6281
+ if (h === null || h === 47 || h === 62 || Ne(h)) {
6282
+ const ge = h === 47, ke = a.toLowerCase();
6283
+ return !ge && !o && no.includes(ke) ? (i = 1, r.interrupt ? t(h) : w(h)) : Kp.includes(a.toLowerCase()) ? (i = 6, ge ? (e.consume(h), x) : r.interrupt ? t(h) : w(h)) : (i = 7, r.interrupt && !r.parser.lazy[r.now().line] ? n(h) : o ? E(h) : j(h));
6299
6284
  }
6300
- return h === 45 || Se(h) ? (e.consume(h), a += String.fromCharCode(h), C) : n(h);
6285
+ return h === 45 || Ae(h) ? (e.consume(h), a += String.fromCharCode(h), C) : n(h);
6301
6286
  }
6302
6287
  function x(h) {
6303
6288
  return h === 62 ? (e.consume(h), r.interrupt ? t : w) : n(h);
@@ -6306,10 +6291,10 @@ function nf(e, t, n) {
6306
6291
  return ie(h) ? (e.consume(h), E) : X(h);
6307
6292
  }
6308
6293
  function j(h) {
6309
- return h === 47 ? (e.consume(h), X) : h === 58 || h === 95 || Ge(h) ? (e.consume(h), U) : ie(h) ? (e.consume(h), j) : X(h);
6294
+ return h === 47 ? (e.consume(h), X) : h === 58 || h === 95 || Ge(h) ? (e.consume(h), R) : ie(h) ? (e.consume(h), j) : X(h);
6310
6295
  }
6311
- function U(h) {
6312
- return h === 45 || h === 46 || h === 58 || h === 95 || Se(h) ? (e.consume(h), U) : H(h);
6296
+ function R(h) {
6297
+ return h === 45 || h === 46 || h === 58 || h === 95 || Ae(h) ? (e.consume(h), R) : H(h);
6313
6298
  }
6314
6299
  function H(h) {
6315
6300
  return h === 61 ? (e.consume(h), M) : ie(h) ? (e.consume(h), H) : j(h);
@@ -6321,7 +6306,7 @@ function nf(e, t, n) {
6321
6306
  return h === s ? (e.consume(h), s = null, G) : h === null || W(h) ? n(h) : (e.consume(h), L);
6322
6307
  }
6323
6308
  function $(h) {
6324
- return h === null || h === 34 || h === 39 || h === 47 || h === 60 || h === 61 || h === 62 || h === 96 || ke(h) ? H(h) : (e.consume(h), $);
6309
+ return h === null || h === 34 || h === 39 || h === 47 || h === 60 || h === 61 || h === 62 || h === 96 || Ne(h) ? H(h) : (e.consume(h), $);
6325
6310
  }
6326
6311
  function G(h) {
6327
6312
  return h === 47 || h === 62 || ie(h) ? j(h) : n(h);
@@ -6333,7 +6318,7 @@ function nf(e, t, n) {
6333
6318
  return h === null || W(h) ? w(h) : ie(h) ? (e.consume(h), S) : n(h);
6334
6319
  }
6335
6320
  function w(h) {
6336
- return h === 45 && i === 2 ? (e.consume(h), B) : h === 60 && i === 1 ? (e.consume(h), V) : h === 62 && i === 4 ? (e.consume(h), de) : h === 63 && i === 3 ? (e.consume(h), g) : h === 93 && i === 5 ? (e.consume(h), K) : W(h) && (i === 6 || i === 7) ? (e.exit("htmlFlowData"), e.check(
6321
+ return h === 45 && i === 2 ? (e.consume(h), U) : h === 60 && i === 1 ? (e.consume(h), V) : h === 62 && i === 4 ? (e.consume(h), he) : h === 63 && i === 3 ? (e.consume(h), g) : h === 93 && i === 5 ? (e.consume(h), K) : W(h) && (i === 6 || i === 7) ? (e.exit("htmlFlowData"), e.check(
6337
6322
  Jp,
6338
6323
  ye,
6339
6324
  k
@@ -6352,7 +6337,7 @@ function nf(e, t, n) {
6352
6337
  function _(h) {
6353
6338
  return h === null || W(h) ? k(h) : (e.enter("htmlFlowData"), w(h));
6354
6339
  }
6355
- function B(h) {
6340
+ function U(h) {
6356
6341
  return h === 45 ? (e.consume(h), g) : w(h);
6357
6342
  }
6358
6343
  function V(h) {
@@ -6361,7 +6346,7 @@ function nf(e, t, n) {
6361
6346
  function q(h) {
6362
6347
  if (h === 62) {
6363
6348
  const ge = a.toLowerCase();
6364
- return no.includes(ge) ? (e.consume(h), de) : w(h);
6349
+ return no.includes(ge) ? (e.consume(h), he) : w(h);
6365
6350
  }
6366
6351
  return Ge(h) && a.length < 8 ? (e.consume(h), a += String.fromCharCode(h), q) : w(h);
6367
6352
  }
@@ -6369,10 +6354,10 @@ function nf(e, t, n) {
6369
6354
  return h === 93 ? (e.consume(h), g) : w(h);
6370
6355
  }
6371
6356
  function g(h) {
6372
- return h === 62 ? (e.consume(h), de) : h === 45 && i === 2 ? (e.consume(h), g) : w(h);
6357
+ return h === 62 ? (e.consume(h), he) : h === 45 && i === 2 ? (e.consume(h), g) : w(h);
6373
6358
  }
6374
- function de(h) {
6375
- return h === null || W(h) ? (e.exit("htmlFlowData"), ye(h)) : (e.consume(h), de);
6359
+ function he(h) {
6360
+ return h === null || W(h) ? (e.exit("htmlFlowData"), ye(h)) : (e.consume(h), he);
6376
6361
  }
6377
6362
  function ye(h) {
6378
6363
  return e.exit("htmlFlow"), t(h);
@@ -6421,11 +6406,11 @@ function lf(e, t, n) {
6421
6406
  return g === 45 ? (e.consume(g), d) : p(g);
6422
6407
  }
6423
6408
  function d(g) {
6424
- return g === 62 ? B(g) : g === 45 ? m(g) : p(g);
6409
+ return g === 62 ? U(g) : g === 45 ? m(g) : p(g);
6425
6410
  }
6426
6411
  function D(g) {
6427
- const de = "CDATA[";
6428
- return g === de.charCodeAt(o++) ? (e.consume(g), o === de.length ? b : D) : n(g);
6412
+ const he = "CDATA[";
6413
+ return g === he.charCodeAt(o++) ? (e.consume(g), o === he.length ? b : D) : n(g);
6429
6414
  }
6430
6415
  function b(g) {
6431
6416
  return g === null ? n(g) : g === 93 ? (e.consume(g), C) : W(g) ? (a = b, V(g)) : (e.consume(g), b);
@@ -6434,34 +6419,34 @@ function lf(e, t, n) {
6434
6419
  return g === 93 ? (e.consume(g), x) : b(g);
6435
6420
  }
6436
6421
  function x(g) {
6437
- return g === 62 ? B(g) : g === 93 ? (e.consume(g), x) : b(g);
6422
+ return g === 62 ? U(g) : g === 93 ? (e.consume(g), x) : b(g);
6438
6423
  }
6439
6424
  function E(g) {
6440
- return g === null || g === 62 ? B(g) : W(g) ? (a = E, V(g)) : (e.consume(g), E);
6425
+ return g === null || g === 62 ? U(g) : W(g) ? (a = E, V(g)) : (e.consume(g), E);
6441
6426
  }
6442
6427
  function j(g) {
6443
- return g === null ? n(g) : g === 63 ? (e.consume(g), U) : W(g) ? (a = j, V(g)) : (e.consume(g), j);
6428
+ return g === null ? n(g) : g === 63 ? (e.consume(g), R) : W(g) ? (a = j, V(g)) : (e.consume(g), j);
6444
6429
  }
6445
- function U(g) {
6446
- return g === 62 ? B(g) : j(g);
6430
+ function R(g) {
6431
+ return g === 62 ? U(g) : j(g);
6447
6432
  }
6448
6433
  function H(g) {
6449
6434
  return Ge(g) ? (e.consume(g), M) : n(g);
6450
6435
  }
6451
6436
  function M(g) {
6452
- return g === 45 || Se(g) ? (e.consume(g), M) : L(g);
6437
+ return g === 45 || Ae(g) ? (e.consume(g), M) : L(g);
6453
6438
  }
6454
6439
  function L(g) {
6455
- return W(g) ? (a = L, V(g)) : ie(g) ? (e.consume(g), L) : B(g);
6440
+ return W(g) ? (a = L, V(g)) : ie(g) ? (e.consume(g), L) : U(g);
6456
6441
  }
6457
6442
  function $(g) {
6458
- return g === 45 || Se(g) ? (e.consume(g), $) : g === 47 || g === 62 || ke(g) ? G(g) : n(g);
6443
+ return g === 45 || Ae(g) ? (e.consume(g), $) : g === 47 || g === 62 || Ne(g) ? G(g) : n(g);
6459
6444
  }
6460
6445
  function G(g) {
6461
- return g === 47 ? (e.consume(g), B) : g === 58 || g === 95 || Ge(g) ? (e.consume(g), X) : W(g) ? (a = G, V(g)) : ie(g) ? (e.consume(g), G) : B(g);
6446
+ return g === 47 ? (e.consume(g), U) : g === 58 || g === 95 || Ge(g) ? (e.consume(g), X) : W(g) ? (a = G, V(g)) : ie(g) ? (e.consume(g), G) : U(g);
6462
6447
  }
6463
6448
  function X(g) {
6464
- return g === 45 || g === 46 || g === 58 || g === 95 || Se(g) ? (e.consume(g), X) : S(g);
6449
+ return g === 45 || g === 46 || g === 58 || g === 95 || Ae(g) ? (e.consume(g), X) : S(g);
6465
6450
  }
6466
6451
  function S(g) {
6467
6452
  return g === 61 ? (e.consume(g), w) : W(g) ? (a = S, V(g)) : ie(g) ? (e.consume(g), S) : G(g);
@@ -6473,19 +6458,19 @@ function lf(e, t, n) {
6473
6458
  return g === i ? (e.consume(g), i = void 0, _) : g === null ? n(g) : W(g) ? (a = k, V(g)) : (e.consume(g), k);
6474
6459
  }
6475
6460
  function z(g) {
6476
- return g === null || g === 34 || g === 39 || g === 60 || g === 61 || g === 96 ? n(g) : g === 47 || g === 62 || ke(g) ? G(g) : (e.consume(g), z);
6461
+ return g === null || g === 34 || g === 39 || g === 60 || g === 61 || g === 96 ? n(g) : g === 47 || g === 62 || Ne(g) ? G(g) : (e.consume(g), z);
6477
6462
  }
6478
6463
  function _(g) {
6479
- return g === 47 || g === 62 || ke(g) ? G(g) : n(g);
6464
+ return g === 47 || g === 62 || Ne(g) ? G(g) : n(g);
6480
6465
  }
6481
- function B(g) {
6466
+ function U(g) {
6482
6467
  return g === 62 ? (e.consume(g), e.exit("htmlTextData"), e.exit("htmlText"), t) : n(g);
6483
6468
  }
6484
6469
  function V(g) {
6485
6470
  return e.exit("htmlTextData"), e.enter("lineEnding"), e.consume(g), e.exit("lineEnding"), q;
6486
6471
  }
6487
6472
  function q(g) {
6488
- return ie(g) ? ce(
6473
+ return ie(g) ? pe(
6489
6474
  e,
6490
6475
  K,
6491
6476
  "linePrefix",
@@ -6546,19 +6531,19 @@ function ff(e, t) {
6546
6531
  return l = [
6547
6532
  ["enter", s, t],
6548
6533
  ["enter", u, t]
6549
- ], l = _e(l, e.slice(o + 1, o + r + 3)), l = _e(l, [["enter", c, t]]), l = _e(
6534
+ ], l = Le(l, e.slice(o + 1, o + r + 3)), l = Le(l, [["enter", c, t]]), l = Le(
6550
6535
  l,
6551
6536
  Ur(
6552
6537
  t.parser.constructs.insideSpan.null,
6553
6538
  e.slice(o + r + 4, a - 3),
6554
6539
  t
6555
6540
  )
6556
- ), l = _e(l, [
6541
+ ), l = Le(l, [
6557
6542
  ["exit", c, t],
6558
6543
  e[a - 2],
6559
6544
  e[a - 1],
6560
6545
  ["exit", u, t]
6561
- ]), l = _e(l, e.slice(a + 1)), l = _e(l, [["exit", s, t]]), Ze(e, o, e.length, l), e;
6546
+ ]), l = Le(l, e.slice(a + 1)), l = Le(l, [["exit", s, t]]), Ze(e, o, e.length, l), e;
6562
6547
  }
6563
6548
  function df(e, t, n) {
6564
6549
  const r = this;
@@ -6610,7 +6595,7 @@ function hf(e, t, n) {
6610
6595
  return e.enter("resource"), e.enter("resourceMarker"), e.consume(p), e.exit("resourceMarker"), i;
6611
6596
  }
6612
6597
  function i(p) {
6613
- return ke(p) ? Yt(e, o)(p) : o(p);
6598
+ return Ne(p) ? Yt(e, o)(p) : o(p);
6614
6599
  }
6615
6600
  function o(p) {
6616
6601
  return p === 41 ? c(p) : xa(
@@ -6626,7 +6611,7 @@ function hf(e, t, n) {
6626
6611
  )(p);
6627
6612
  }
6628
6613
  function a(p) {
6629
- return ke(p) ? Yt(e, s)(p) : c(p);
6614
+ return Ne(p) ? Yt(e, s)(p) : c(p);
6630
6615
  }
6631
6616
  function l(p) {
6632
6617
  return n(p);
@@ -6642,7 +6627,7 @@ function hf(e, t, n) {
6642
6627
  )(p) : c(p);
6643
6628
  }
6644
6629
  function u(p) {
6645
- return ke(p) ? Yt(e, c)(p) : c(p);
6630
+ return Ne(p) ? Yt(e, c)(p) : c(p);
6646
6631
  }
6647
6632
  function c(p) {
6648
6633
  return p === 41 ? (e.enter("resourceMarker"), e.consume(p), e.exit("resourceMarker"), e.exit("resource"), t) : n(p);
@@ -6722,7 +6707,7 @@ const ir = {
6722
6707
  function wf(e, t) {
6723
6708
  return n;
6724
6709
  function n(r) {
6725
- return e.enter("lineEnding"), e.consume(r), e.exit("lineEnding"), ce(e, t, "linePrefix");
6710
+ return e.enter("lineEnding"), e.consume(r), e.exit("lineEnding"), pe(e, t, "linePrefix");
6726
6711
  }
6727
6712
  }
6728
6713
  const fn = {
@@ -6742,10 +6727,10 @@ function vf(e, t, n) {
6742
6727
  return u === i ? (e.enter("thematicBreakSequence"), s(u)) : r >= 3 && (u === null || W(u)) ? (e.exit("thematicBreak"), t(u)) : n(u);
6743
6728
  }
6744
6729
  function s(u) {
6745
- return u === i ? (e.consume(u), r++, s) : (e.exit("thematicBreakSequence"), ie(u) ? ce(e, l, "whitespace")(u) : l(u));
6730
+ return u === i ? (e.consume(u), r++, s) : (e.exit("thematicBreakSequence"), ie(u) ? pe(e, l, "whitespace")(u) : l(u));
6746
6731
  }
6747
6732
  }
6748
- const Ne = {
6733
+ const De = {
6749
6734
  name: "list",
6750
6735
  tokenize: Df,
6751
6736
  continuation: {
@@ -6804,7 +6789,7 @@ function Nf(e, t, n) {
6804
6789
  const r = this;
6805
6790
  return r.containerState._closeFlow = void 0, e.check(In, i, o);
6806
6791
  function i(l) {
6807
- return r.containerState.furtherBlankLines = r.containerState.furtherBlankLines || r.containerState.initialBlankLine, ce(
6792
+ return r.containerState.furtherBlankLines = r.containerState.furtherBlankLines || r.containerState.initialBlankLine, pe(
6808
6793
  e,
6809
6794
  t,
6810
6795
  "listItemIndent",
@@ -6815,9 +6800,9 @@ function Nf(e, t, n) {
6815
6800
  return r.containerState.furtherBlankLines || !ie(l) ? (r.containerState.furtherBlankLines = void 0, r.containerState.initialBlankLine = void 0, a(l)) : (r.containerState.furtherBlankLines = void 0, r.containerState.initialBlankLine = void 0, e.attempt(If, t, a)(l));
6816
6801
  }
6817
6802
  function a(l) {
6818
- return r.containerState._closeFlow = !0, r.interrupt = void 0, ce(
6803
+ return r.containerState._closeFlow = !0, r.interrupt = void 0, pe(
6819
6804
  e,
6820
- e.attempt(Ne, t, n),
6805
+ e.attempt(De, t, n),
6821
6806
  "linePrefix",
6822
6807
  r.parser.constructs.disable.null.includes("codeIndented") ? void 0 : 4
6823
6808
  )(l);
@@ -6825,7 +6810,7 @@ function Nf(e, t, n) {
6825
6810
  }
6826
6811
  function kf(e, t, n) {
6827
6812
  const r = this;
6828
- return ce(
6813
+ return pe(
6829
6814
  e,
6830
6815
  i,
6831
6816
  "listItemIndent",
@@ -6841,7 +6826,7 @@ function Ef(e) {
6841
6826
  }
6842
6827
  function jf(e, t, n) {
6843
6828
  const r = this;
6844
- return ce(
6829
+ return pe(
6845
6830
  e,
6846
6831
  i,
6847
6832
  "listItemPrefixWhitespace",
@@ -6892,7 +6877,7 @@ function Af(e, t, n) {
6892
6877
  return e.enter("setextHeadingLineSequence"), l(u);
6893
6878
  }
6894
6879
  function l(u) {
6895
- return u === i ? (e.consume(u), l) : (e.exit("setextHeadingLineSequence"), ie(u) ? ce(e, s, "lineSuffix")(u) : s(u));
6880
+ return u === i ? (e.consume(u), l) : (e.exit("setextHeadingLineSequence"), ie(u) ? pe(e, s, "lineSuffix")(u) : s(u));
6896
6881
  }
6897
6882
  function s(u) {
6898
6883
  return u === null || W(u) ? (e.exit("setextHeadingLine"), t(u)) : n(u);
@@ -6910,7 +6895,7 @@ function Of(e) {
6910
6895
  e.attempt(
6911
6896
  this.parser.constructs.flowInitial,
6912
6897
  i,
6913
- ce(
6898
+ pe(
6914
6899
  e,
6915
6900
  e.attempt(
6916
6901
  this.parser.constructs.flow,
@@ -7048,7 +7033,7 @@ function Pf(e, t, n) {
7048
7033
  const s = {
7049
7034
  consume: E,
7050
7035
  enter: j,
7051
- exit: U,
7036
+ exit: R,
7052
7037
  attempt: L(H),
7053
7038
  check: L(M),
7054
7039
  interrupt: L(M, {
@@ -7069,7 +7054,7 @@ function Pf(e, t, n) {
7069
7054
  let c = t.tokenize.call(u, s);
7070
7055
  return t.resolveAll && o.push(t), u;
7071
7056
  function p(S) {
7072
- return a = _e(a, S), C(), a[a.length - 1] !== null ? [] : ($(t, 0), u.events = Ur(o, u.events, u), u.events);
7057
+ return a = Le(a, S), C(), a[a.length - 1] !== null ? [] : ($(t, 0), u.events = Ur(o, u.events, u), u.events);
7073
7058
  }
7074
7059
  function m(S, w) {
7075
7060
  return Uf(d(S), w);
@@ -7111,7 +7096,7 @@ function Pf(e, t, n) {
7111
7096
  const k = w || {};
7112
7097
  return k.type = S, k.start = D(), u.events.push(["enter", k, u]), l.push(k), k;
7113
7098
  }
7114
- function U(S) {
7099
+ function R(S) {
7115
7100
  const w = l.pop();
7116
7101
  return w.end = D(), u.events.push(["exit", w, u]), w;
7117
7102
  }
@@ -7123,46 +7108,46 @@ function Pf(e, t, n) {
7123
7108
  }
7124
7109
  function L(S, w) {
7125
7110
  return k;
7126
- function k(z, _, B) {
7111
+ function k(z, _, U) {
7127
7112
  let V, q, K, g;
7128
7113
  return Array.isArray(z) ? ye(z) : "tokenize" in z ? (
7129
7114
  // @ts-expect-error Looks like a construct.
7130
7115
  ye([z])
7131
- ) : de(z);
7132
- function de(ne) {
7133
- return we;
7134
- function we(ve) {
7135
- const Ye = ve !== null && ne[ve], Oe = ve !== null && ne.null, Xe = [
7116
+ ) : he(z);
7117
+ function he(re) {
7118
+ return xe;
7119
+ function xe(we) {
7120
+ const Qe = we !== null && re[we], Se = we !== null && re.null, Xe = [
7136
7121
  // To do: add more extension tests.
7137
7122
  /* c8 ignore next 2 */
7138
- ...Array.isArray(Ye) ? Ye : Ye ? [Ye] : [],
7139
- ...Array.isArray(Oe) ? Oe : Oe ? [Oe] : []
7123
+ ...Array.isArray(Qe) ? Qe : Qe ? [Qe] : [],
7124
+ ...Array.isArray(Se) ? Se : Se ? [Se] : []
7140
7125
  ];
7141
- return ye(Xe)(ve);
7126
+ return ye(Xe)(we);
7142
7127
  }
7143
7128
  }
7144
- function ye(ne) {
7145
- return V = ne, q = 0, ne.length === 0 ? B : h(ne[q]);
7129
+ function ye(re) {
7130
+ return V = re, q = 0, re.length === 0 ? U : h(re[q]);
7146
7131
  }
7147
- function h(ne) {
7148
- return we;
7149
- function we(ve) {
7150
- return g = G(), K = ne, ne.partial || (u.currentConstruct = ne), ne.name && u.parser.constructs.disable.null.includes(ne.name) ? Ee() : ne.tokenize.call(
7132
+ function h(re) {
7133
+ return xe;
7134
+ function xe(we) {
7135
+ return g = G(), K = re, re.partial || (u.currentConstruct = re), re.name && u.parser.constructs.disable.null.includes(re.name) ? ke() : re.tokenize.call(
7151
7136
  // If we do have fields, create an object w/ `context` as its
7152
7137
  // prototype.
7153
7138
  // This allows a “live binding”, which is needed for `interrupt`.
7154
7139
  w ? Object.assign(Object.create(u), w) : u,
7155
7140
  s,
7156
7141
  ge,
7157
- Ee
7158
- )(ve);
7142
+ ke
7143
+ )(we);
7159
7144
  }
7160
7145
  }
7161
- function ge(ne) {
7146
+ function ge(re) {
7162
7147
  return S(K, g), _;
7163
7148
  }
7164
- function Ee(ne) {
7165
- return g.restore(), ++q < V.length ? h(V[q]) : B;
7149
+ function ke(re) {
7150
+ return g.restore(), ++q < V.length ? h(V[q]) : U;
7166
7151
  }
7167
7152
  }
7168
7153
  }
@@ -7177,10 +7162,10 @@ function Pf(e, t, n) {
7177
7162
  function G() {
7178
7163
  const S = D(), w = u.previous, k = u.currentConstruct, z = u.events.length, _ = Array.from(l);
7179
7164
  return {
7180
- restore: B,
7165
+ restore: U,
7181
7166
  from: z
7182
7167
  };
7183
- function B() {
7168
+ function U() {
7184
7169
  r = S, u.previous = w, u.currentConstruct = k, u.events.length = z, l = _, X();
7185
7170
  }
7186
7171
  }
@@ -7245,19 +7230,19 @@ function Uf(e, t) {
7245
7230
  return r.join("");
7246
7231
  }
7247
7232
  const Bf = {
7248
- 42: Ne,
7249
- 43: Ne,
7250
- 45: Ne,
7251
- 48: Ne,
7252
- 49: Ne,
7253
- 50: Ne,
7254
- 51: Ne,
7255
- 52: Ne,
7256
- 53: Ne,
7257
- 54: Ne,
7258
- 55: Ne,
7259
- 56: Ne,
7260
- 57: Ne,
7233
+ 42: De,
7234
+ 43: De,
7235
+ 45: De,
7236
+ 48: De,
7237
+ 49: De,
7238
+ 50: De,
7239
+ 51: De,
7240
+ 52: De,
7241
+ 53: De,
7242
+ 54: De,
7243
+ 55: De,
7244
+ 56: De,
7245
+ 57: De,
7261
7246
  62: ma
7262
7247
  }, Qf = {
7263
7248
  91: Qp
@@ -7422,7 +7407,7 @@ function id(e) {
7422
7407
  transforms: [],
7423
7408
  canContainEols: ["emphasis", "fragment", "heading", "paragraph", "strong"],
7424
7409
  enter: {
7425
- autolink: l(J),
7410
+ autolink: l(P),
7426
7411
  autolinkProtocol: S,
7427
7412
  autolinkEmail: S,
7428
7413
  atxHeading: l(Je),
@@ -7442,39 +7427,39 @@ function id(e) {
7442
7427
  definitionLabelString: s,
7443
7428
  definitionTitleString: s,
7444
7429
  emphasis: l(Et),
7445
- hardBreakEscape: l(yt),
7446
- hardBreakTrailing: l(yt),
7430
+ hardBreakEscape: l(gt),
7431
+ hardBreakTrailing: l(gt),
7447
7432
  htmlFlow: l(at, s),
7448
7433
  htmlFlowData: S,
7449
7434
  htmlText: l(at, s),
7450
7435
  htmlTextData: S,
7451
- image: l(P),
7436
+ image: l(mt),
7452
7437
  label: s,
7453
- link: l(J),
7454
- listItem: l(he),
7438
+ link: l(P),
7439
+ listItem: l(me),
7455
7440
  listItemValue: D,
7456
- listOrdered: l(me, d),
7457
- listUnordered: l(me),
7458
- paragraph: l(be),
7459
- reference: Ee,
7441
+ listOrdered: l(ee, d),
7442
+ listUnordered: l(ee),
7443
+ paragraph: l(le),
7444
+ reference: ke,
7460
7445
  referenceString: s,
7461
7446
  resourceDestinationString: s,
7462
7447
  resourceTitleString: s,
7463
7448
  setextHeading: l(Je),
7464
- strong: l(qe),
7465
- thematicBreak: l(st)
7449
+ strong: l(Ye),
7450
+ thematicBreak: l(yt)
7466
7451
  },
7467
7452
  exit: {
7468
7453
  atxHeading: c(),
7469
7454
  atxHeadingSequence: L,
7470
7455
  autolink: c(),
7471
- autolinkEmail: Oe,
7472
- autolinkProtocol: Ye,
7456
+ autolinkEmail: Se,
7457
+ autolinkProtocol: Qe,
7473
7458
  blockQuote: c(),
7474
7459
  characterEscapeValue: w,
7475
- characterReferenceMarkerHexadecimal: we,
7476
- characterReferenceMarkerNumeric: we,
7477
- characterReferenceValue: ve,
7460
+ characterReferenceMarkerHexadecimal: xe,
7461
+ characterReferenceMarkerNumeric: xe,
7462
+ characterReferenceValue: we,
7478
7463
  codeFenced: c(E),
7479
7464
  codeFencedFence: x,
7480
7465
  codeFencedFenceInfo: b,
@@ -7486,17 +7471,17 @@ function id(e) {
7486
7471
  data: w,
7487
7472
  definition: c(),
7488
7473
  definitionDestinationString: M,
7489
- definitionLabelString: U,
7474
+ definitionLabelString: R,
7490
7475
  definitionTitleString: H,
7491
7476
  emphasis: c(),
7492
7477
  hardBreakEscape: c(z),
7493
7478
  hardBreakTrailing: c(z),
7494
7479
  htmlFlow: c(_),
7495
7480
  htmlFlowData: w,
7496
- htmlText: c(B),
7481
+ htmlText: c(U),
7497
7482
  htmlTextData: w,
7498
7483
  image: c(K),
7499
- label: de,
7484
+ label: he,
7500
7485
  labelText: g,
7501
7486
  lineEnding: k,
7502
7487
  link: c(q),
@@ -7504,7 +7489,7 @@ function id(e) {
7504
7489
  listOrdered: c(),
7505
7490
  listUnordered: c(),
7506
7491
  paragraph: c(),
7507
- referenceString: ne,
7492
+ referenceString: re,
7508
7493
  resourceDestinationString: ye,
7509
7494
  resourceTitleString: h,
7510
7495
  resource: ge,
@@ -7523,7 +7508,7 @@ function id(e) {
7523
7508
  type: "root",
7524
7509
  children: []
7525
7510
  };
7526
- const R = {
7511
+ const Q = {
7527
7512
  stack: [O],
7528
7513
  tokenStack: [],
7529
7514
  config: t,
@@ -7533,31 +7518,31 @@ function id(e) {
7533
7518
  resume: m,
7534
7519
  setData: o,
7535
7520
  getData: a
7536
- }, re = [];
7521
+ }, J = [];
7537
7522
  let oe = -1;
7538
7523
  for (; ++oe < N.length; )
7539
7524
  if (N[oe][1].type === "listOrdered" || N[oe][1].type === "listUnordered")
7540
7525
  if (N[oe][0] === "enter")
7541
- re.push(oe);
7526
+ J.push(oe);
7542
7527
  else {
7543
- const De = re.pop();
7544
- oe = i(N, De, oe);
7528
+ const Ie = J.pop();
7529
+ oe = i(N, Ie, oe);
7545
7530
  }
7546
7531
  for (oe = -1; ++oe < N.length; ) {
7547
- const De = t[N[oe][0]];
7548
- Na.call(De, N[oe][1].type) && De[N[oe][1].type].call(
7532
+ const Ie = t[N[oe][0]];
7533
+ Na.call(Ie, N[oe][1].type) && Ie[N[oe][1].type].call(
7549
7534
  Object.assign(
7550
7535
  {
7551
7536
  sliceSerialize: N[oe][2].sliceSerialize
7552
7537
  },
7553
- R
7538
+ Q
7554
7539
  ),
7555
7540
  N[oe][1]
7556
7541
  );
7557
7542
  }
7558
- if (R.tokenStack.length > 0) {
7559
- const De = R.tokenStack[R.tokenStack.length - 1];
7560
- (De[1] || oo).call(R, void 0, De[0]);
7543
+ if (Q.tokenStack.length > 0) {
7544
+ const Ie = Q.tokenStack[Q.tokenStack.length - 1];
7545
+ (Ie[1] || oo).call(Q, void 0, Ie[0]);
7561
7546
  }
7562
7547
  for (O.position = {
7563
7548
  start: et(
@@ -7578,37 +7563,37 @@ function id(e) {
7578
7563
  O = t.transforms[oe](O) || O;
7579
7564
  return O;
7580
7565
  }
7581
- function i(N, O, R) {
7582
- let re = O - 1, oe = -1, De = !1, He, $e, ut, je;
7583
- for (; ++re <= R; ) {
7584
- const se = N[re];
7585
- if (se[1].type === "listUnordered" || se[1].type === "listOrdered" || se[1].type === "blockQuote" ? (se[0] === "enter" ? oe++ : oe--, je = void 0) : se[1].type === "lineEndingBlank" ? se[0] === "enter" && (He && !je && !oe && !ut && (ut = re), je = void 0) : se[1].type === "linePrefix" || se[1].type === "listItemValue" || se[1].type === "listItemMarker" || se[1].type === "listItemPrefix" || se[1].type === "listItemPrefixWhitespace" || (je = void 0), !oe && se[0] === "enter" && se[1].type === "listItemPrefix" || oe === -1 && se[0] === "exit" && (se[1].type === "listUnordered" || se[1].type === "listOrdered")) {
7566
+ function i(N, O, Q) {
7567
+ let J = O - 1, oe = -1, Ie = !1, He, $e, lt, Ee;
7568
+ for (; ++J <= Q; ) {
7569
+ const ue = N[J];
7570
+ if (ue[1].type === "listUnordered" || ue[1].type === "listOrdered" || ue[1].type === "blockQuote" ? (ue[0] === "enter" ? oe++ : oe--, Ee = void 0) : ue[1].type === "lineEndingBlank" ? ue[0] === "enter" && (He && !Ee && !oe && !lt && (lt = J), Ee = void 0) : ue[1].type === "linePrefix" || ue[1].type === "listItemValue" || ue[1].type === "listItemMarker" || ue[1].type === "listItemPrefix" || ue[1].type === "listItemPrefixWhitespace" || (Ee = void 0), !oe && ue[0] === "enter" && ue[1].type === "listItemPrefix" || oe === -1 && ue[0] === "exit" && (ue[1].type === "listUnordered" || ue[1].type === "listOrdered")) {
7586
7571
  if (He) {
7587
- let jt = re;
7572
+ let jt = J;
7588
7573
  for ($e = void 0; jt--; ) {
7589
- const ze = N[jt];
7590
- if (ze[1].type === "lineEnding" || ze[1].type === "lineEndingBlank") {
7591
- if (ze[0] === "exit")
7574
+ const Oe = N[jt];
7575
+ if (Oe[1].type === "lineEnding" || Oe[1].type === "lineEndingBlank") {
7576
+ if (Oe[0] === "exit")
7592
7577
  continue;
7593
- $e && (N[$e][1].type = "lineEndingBlank", De = !0), ze[1].type = "lineEnding", $e = jt;
7594
- } else if (!(ze[1].type === "linePrefix" || ze[1].type === "blockQuotePrefix" || ze[1].type === "blockQuotePrefixWhitespace" || ze[1].type === "blockQuoteMarker" || ze[1].type === "listItemIndent"))
7578
+ $e && (N[$e][1].type = "lineEndingBlank", Ie = !0), Oe[1].type = "lineEnding", $e = jt;
7579
+ } else if (!(Oe[1].type === "linePrefix" || Oe[1].type === "blockQuotePrefix" || Oe[1].type === "blockQuotePrefixWhitespace" || Oe[1].type === "blockQuoteMarker" || Oe[1].type === "listItemIndent"))
7595
7580
  break;
7596
7581
  }
7597
- ut && (!$e || ut < $e) && (He._spread = !0), He.end = Object.assign(
7582
+ lt && (!$e || lt < $e) && (He._spread = !0), He.end = Object.assign(
7598
7583
  {},
7599
- $e ? N[$e][1].start : se[1].end
7600
- ), N.splice($e || re, 0, ["exit", He, se[2]]), re++, R++;
7584
+ $e ? N[$e][1].start : ue[1].end
7585
+ ), N.splice($e || J, 0, ["exit", He, ue[2]]), J++, Q++;
7601
7586
  }
7602
- se[1].type === "listItemPrefix" && (He = {
7587
+ ue[1].type === "listItemPrefix" && (He = {
7603
7588
  type: "listItem",
7604
7589
  _spread: !1,
7605
- start: Object.assign({}, se[1].start),
7590
+ start: Object.assign({}, ue[1].start),
7606
7591
  // @ts-expect-error: we’ll add `end` in a second.
7607
7592
  end: void 0
7608
- }, N.splice(re, 0, ["enter", He, se[2]]), re++, R++, ut = void 0, je = !0);
7593
+ }, N.splice(J, 0, ["enter", He, ue[2]]), J++, Q++, lt = void 0, Ee = !0);
7609
7594
  }
7610
7595
  }
7611
- return N[O][1]._spread = De, R;
7596
+ return N[O][1]._spread = Ie, Q;
7612
7597
  }
7613
7598
  function o(N, O) {
7614
7599
  n[N] = O;
@@ -7617,9 +7602,9 @@ function id(e) {
7617
7602
  return n[N];
7618
7603
  }
7619
7604
  function l(N, O) {
7620
- return R;
7621
- function R(re) {
7622
- u.call(this, N(re), re), O && O.call(this, re);
7605
+ return Q;
7606
+ function Q(J) {
7607
+ u.call(this, N(J), J), O && O.call(this, J);
7623
7608
  }
7624
7609
  }
7625
7610
  function s() {
@@ -7628,21 +7613,21 @@ function id(e) {
7628
7613
  children: []
7629
7614
  });
7630
7615
  }
7631
- function u(N, O, R) {
7632
- return this.stack[this.stack.length - 1].children.push(N), this.stack.push(N), this.tokenStack.push([O, R]), N.position = {
7616
+ function u(N, O, Q) {
7617
+ return this.stack[this.stack.length - 1].children.push(N), this.stack.push(N), this.tokenStack.push([O, Q]), N.position = {
7633
7618
  start: et(O.start)
7634
7619
  }, N;
7635
7620
  }
7636
7621
  function c(N) {
7637
7622
  return O;
7638
- function O(R) {
7639
- N && N.call(this, R), p.call(this, R);
7623
+ function O(Q) {
7624
+ N && N.call(this, Q), p.call(this, Q);
7640
7625
  }
7641
7626
  }
7642
7627
  function p(N, O) {
7643
- const R = this.stack.pop(), re = this.tokenStack.pop();
7644
- if (re)
7645
- re[0].type !== N.type && (O ? O.call(this, N, re[0]) : (re[1] || oo).call(this, N, re[0]));
7628
+ const Q = this.stack.pop(), J = this.tokenStack.pop();
7629
+ if (J)
7630
+ J[0].type !== N.type && (O ? O.call(this, N, J[0]) : (J[1] || oo).call(this, N, J[0]));
7646
7631
  else
7647
7632
  throw new Error(
7648
7633
  "Cannot close `" + N.type + "` (" + Qt({
@@ -7650,7 +7635,7 @@ function id(e) {
7650
7635
  end: N.end
7651
7636
  }) + "): it’s not open"
7652
7637
  );
7653
- return R.position.end = et(N.end), R;
7638
+ return Q.position.end = et(N.end), Q;
7654
7639
  }
7655
7640
  function m() {
7656
7641
  return tp(this.stack.pop());
@@ -7683,9 +7668,9 @@ function id(e) {
7683
7668
  const N = this.resume(), O = this.stack[this.stack.length - 1];
7684
7669
  O.value = N.replace(/(\r?\n|\r)$/g, "");
7685
7670
  }
7686
- function U(N) {
7687
- const O = this.resume(), R = this.stack[this.stack.length - 1];
7688
- R.label = O, R.identifier = xt(
7671
+ function R(N) {
7672
+ const O = this.resume(), Q = this.stack[this.stack.length - 1];
7673
+ Q.label = O, Q.identifier = xt(
7689
7674
  this.sliceSerialize(N)
7690
7675
  ).toLowerCase();
7691
7676
  }
@@ -7700,8 +7685,8 @@ function id(e) {
7700
7685
  function L(N) {
7701
7686
  const O = this.stack[this.stack.length - 1];
7702
7687
  if (!O.depth) {
7703
- const R = this.sliceSerialize(N).length;
7704
- O.depth = R;
7688
+ const Q = this.sliceSerialize(N).length;
7689
+ O.depth = Q;
7705
7690
  }
7706
7691
  }
7707
7692
  function $() {
@@ -7716,10 +7701,10 @@ function id(e) {
7716
7701
  }
7717
7702
  function S(N) {
7718
7703
  const O = this.stack[this.stack.length - 1];
7719
- let R = O.children[O.children.length - 1];
7720
- (!R || R.type !== "text") && (R = lt(), R.position = {
7704
+ let Q = O.children[O.children.length - 1];
7705
+ (!Q || Q.type !== "text") && (Q = qe(), Q.position = {
7721
7706
  start: et(N.start)
7722
- }, O.children.push(R)), this.stack.push(R);
7707
+ }, O.children.push(Q)), this.stack.push(Q);
7723
7708
  }
7724
7709
  function w(N) {
7725
7710
  const O = this.stack.pop();
@@ -7728,8 +7713,8 @@ function id(e) {
7728
7713
  function k(N) {
7729
7714
  const O = this.stack[this.stack.length - 1];
7730
7715
  if (a("atHardBreak")) {
7731
- const R = O.children[O.children.length - 1];
7732
- R.position.end = et(N.end), o("atHardBreak");
7716
+ const Q = O.children[O.children.length - 1];
7717
+ Q.position.end = et(N.end), o("atHardBreak");
7733
7718
  return;
7734
7719
  }
7735
7720
  !a("setextHeadingSlurpLineEnding") && t.canContainEols.includes(O.type) && (S.call(this, N), w.call(this, N));
@@ -7741,7 +7726,7 @@ function id(e) {
7741
7726
  const N = this.resume(), O = this.stack[this.stack.length - 1];
7742
7727
  O.value = N;
7743
7728
  }
7744
- function B() {
7729
+ function U() {
7745
7730
  const N = this.resume(), O = this.stack[this.stack.length - 1];
7746
7731
  O.value = N;
7747
7732
  }
@@ -7768,16 +7753,16 @@ function id(e) {
7768
7753
  o("referenceType");
7769
7754
  }
7770
7755
  function g(N) {
7771
- const O = this.sliceSerialize(N), R = this.stack[this.stack.length - 2];
7772
- R.label = td(O), R.identifier = xt(O).toLowerCase();
7773
- }
7774
- function de() {
7775
- const N = this.stack[this.stack.length - 1], O = this.resume(), R = this.stack[this.stack.length - 1];
7776
- if (o("inReference", !0), R.type === "link") {
7777
- const re = N.children;
7778
- R.children = re;
7756
+ const O = this.sliceSerialize(N), Q = this.stack[this.stack.length - 2];
7757
+ Q.label = td(O), Q.identifier = xt(O).toLowerCase();
7758
+ }
7759
+ function he() {
7760
+ const N = this.stack[this.stack.length - 1], O = this.resume(), Q = this.stack[this.stack.length - 1];
7761
+ if (o("inReference", !0), Q.type === "link") {
7762
+ const J = N.children;
7763
+ Q.children = J;
7779
7764
  } else
7780
- R.alt = O;
7765
+ Q.alt = O;
7781
7766
  }
7782
7767
  function ye() {
7783
7768
  const N = this.resume(), O = this.stack[this.stack.length - 1];
@@ -7790,34 +7775,34 @@ function id(e) {
7790
7775
  function ge() {
7791
7776
  o("inReference");
7792
7777
  }
7793
- function Ee() {
7778
+ function ke() {
7794
7779
  o("referenceType", "collapsed");
7795
7780
  }
7796
- function ne(N) {
7797
- const O = this.resume(), R = this.stack[this.stack.length - 1];
7798
- R.label = O, R.identifier = xt(
7781
+ function re(N) {
7782
+ const O = this.resume(), Q = this.stack[this.stack.length - 1];
7783
+ Q.label = O, Q.identifier = xt(
7799
7784
  this.sliceSerialize(N)
7800
7785
  ).toLowerCase(), o("referenceType", "full");
7801
7786
  }
7802
- function we(N) {
7787
+ function xe(N) {
7803
7788
  o("characterReferenceType", N.type);
7804
7789
  }
7805
- function ve(N) {
7806
- const O = this.sliceSerialize(N), R = a("characterReferenceType");
7807
- let re;
7808
- R ? (re = Da(
7790
+ function we(N) {
7791
+ const O = this.sliceSerialize(N), Q = a("characterReferenceType");
7792
+ let J;
7793
+ Q ? (J = Da(
7809
7794
  O,
7810
- R === "characterReferenceMarkerNumeric" ? 10 : 16
7811
- ), o("characterReferenceType")) : re = Br(O);
7795
+ Q === "characterReferenceMarkerNumeric" ? 10 : 16
7796
+ ), o("characterReferenceType")) : J = Br(O);
7812
7797
  const oe = this.stack.pop();
7813
- oe.value += re, oe.position.end = et(N.end);
7798
+ oe.value += J, oe.position.end = et(N.end);
7814
7799
  }
7815
- function Ye(N) {
7800
+ function Qe(N) {
7816
7801
  w.call(this, N);
7817
7802
  const O = this.stack[this.stack.length - 1];
7818
7803
  O.url = this.sliceSerialize(N);
7819
7804
  }
7820
- function Oe(N) {
7805
+ function Se(N) {
7821
7806
  w.call(this, N);
7822
7807
  const O = this.stack[this.stack.length - 1];
7823
7808
  O.url = "mailto:" + this.sliceSerialize(N);
@@ -7864,7 +7849,7 @@ function id(e) {
7864
7849
  children: []
7865
7850
  };
7866
7851
  }
7867
- function yt() {
7852
+ function gt() {
7868
7853
  return {
7869
7854
  type: "break"
7870
7855
  };
@@ -7875,7 +7860,7 @@ function id(e) {
7875
7860
  value: ""
7876
7861
  };
7877
7862
  }
7878
- function P() {
7863
+ function mt() {
7879
7864
  return {
7880
7865
  type: "image",
7881
7866
  title: null,
@@ -7883,7 +7868,7 @@ function id(e) {
7883
7868
  alt: null
7884
7869
  };
7885
7870
  }
7886
- function J() {
7871
+ function P() {
7887
7872
  return {
7888
7873
  type: "link",
7889
7874
  title: null,
@@ -7891,7 +7876,7 @@ function id(e) {
7891
7876
  children: []
7892
7877
  };
7893
7878
  }
7894
- function me(N) {
7879
+ function ee(N) {
7895
7880
  return {
7896
7881
  type: "list",
7897
7882
  ordered: N.type === "listOrdered",
@@ -7900,7 +7885,7 @@ function id(e) {
7900
7885
  children: []
7901
7886
  };
7902
7887
  }
7903
- function he(N) {
7888
+ function me(N) {
7904
7889
  return {
7905
7890
  type: "listItem",
7906
7891
  spread: N._spread,
@@ -7908,25 +7893,25 @@ function id(e) {
7908
7893
  children: []
7909
7894
  };
7910
7895
  }
7911
- function be() {
7896
+ function le() {
7912
7897
  return {
7913
7898
  type: "paragraph",
7914
7899
  children: []
7915
7900
  };
7916
7901
  }
7917
- function qe() {
7902
+ function Ye() {
7918
7903
  return {
7919
7904
  type: "strong",
7920
7905
  children: []
7921
7906
  };
7922
7907
  }
7923
- function lt() {
7908
+ function qe() {
7924
7909
  return {
7925
7910
  type: "text",
7926
7911
  value: ""
7927
7912
  };
7928
7913
  }
7929
- function st() {
7914
+ function yt() {
7930
7915
  return {
7931
7916
  type: "thematicBreak"
7932
7917
  };
@@ -8046,7 +8031,7 @@ function It(e) {
8046
8031
  for (; ++n < e.length; ) {
8047
8032
  const o = e.charCodeAt(n);
8048
8033
  let a = "";
8049
- if (o === 37 && Se(e.charCodeAt(n + 1)) && Se(e.charCodeAt(n + 2)))
8034
+ if (o === 37 && Ae(e.charCodeAt(n + 1)) && Ae(e.charCodeAt(n + 2)))
8050
8035
  i = 2;
8051
8036
  else if (o < 128)
8052
8037
  /[!#$&-;=?-Z_a-z~]/.test(String.fromCharCode(o)) || (a = String.fromCharCode(o));
@@ -8776,7 +8761,7 @@ function La(e, t) {
8776
8761
  function Ir(e) {
8777
8762
  return e.toLowerCase();
8778
8763
  }
8779
- class Be {
8764
+ class Ue {
8780
8765
  /**
8781
8766
  * @constructor
8782
8767
  * @param {string} property
@@ -8786,32 +8771,32 @@ class Be {
8786
8771
  this.property = t, this.attribute = n;
8787
8772
  }
8788
8773
  }
8789
- Be.prototype.space = null;
8790
- Be.prototype.boolean = !1;
8791
- Be.prototype.booleanish = !1;
8792
- Be.prototype.overloadedBoolean = !1;
8793
- Be.prototype.number = !1;
8794
- Be.prototype.commaSeparated = !1;
8795
- Be.prototype.spaceSeparated = !1;
8796
- Be.prototype.commaOrSpaceSeparated = !1;
8797
- Be.prototype.mustUseProperty = !1;
8798
- Be.prototype.defined = !1;
8774
+ Ue.prototype.space = null;
8775
+ Ue.prototype.boolean = !1;
8776
+ Ue.prototype.booleanish = !1;
8777
+ Ue.prototype.overloadedBoolean = !1;
8778
+ Ue.prototype.number = !1;
8779
+ Ue.prototype.commaSeparated = !1;
8780
+ Ue.prototype.spaceSeparated = !1;
8781
+ Ue.prototype.commaOrSpaceSeparated = !1;
8782
+ Ue.prototype.mustUseProperty = !1;
8783
+ Ue.prototype.defined = !1;
8799
8784
  let eh = 0;
8800
- const Z = mt(), Me = mt(), _a = mt(), A = mt(), ue = mt(), wt = mt(), Ae = mt();
8801
- function mt() {
8785
+ const Z = ht(), Me = ht(), _a = ht(), A = ht(), ce = ht(), wt = ht(), Ce = ht();
8786
+ function ht() {
8802
8787
  return 2 ** ++eh;
8803
8788
  }
8804
8789
  const Dr = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineProperty({
8805
8790
  __proto__: null,
8806
8791
  boolean: Z,
8807
8792
  booleanish: Me,
8808
- commaOrSpaceSeparated: Ae,
8793
+ commaOrSpaceSeparated: Ce,
8809
8794
  commaSeparated: wt,
8810
8795
  number: A,
8811
8796
  overloadedBoolean: _a,
8812
- spaceSeparated: ue
8797
+ spaceSeparated: ce
8813
8798
  }, Symbol.toStringTag, { value: "Module" })), or = Object.keys(Dr);
8814
- class Vr extends Be {
8799
+ class Vr extends Ue {
8815
8800
  /**
8816
8801
  * @constructor
8817
8802
  * @param {string} property
@@ -8893,36 +8878,36 @@ const Ba = Dt({
8893
8878
  ariaColCount: A,
8894
8879
  ariaColIndex: A,
8895
8880
  ariaColSpan: A,
8896
- ariaControls: ue,
8881
+ ariaControls: ce,
8897
8882
  ariaCurrent: null,
8898
- ariaDescribedBy: ue,
8883
+ ariaDescribedBy: ce,
8899
8884
  ariaDetails: null,
8900
8885
  ariaDisabled: Me,
8901
- ariaDropEffect: ue,
8886
+ ariaDropEffect: ce,
8902
8887
  ariaErrorMessage: null,
8903
8888
  ariaExpanded: Me,
8904
- ariaFlowTo: ue,
8889
+ ariaFlowTo: ce,
8905
8890
  ariaGrabbed: Me,
8906
8891
  ariaHasPopup: null,
8907
8892
  ariaHidden: Me,
8908
8893
  ariaInvalid: null,
8909
8894
  ariaKeyShortcuts: null,
8910
8895
  ariaLabel: null,
8911
- ariaLabelledBy: ue,
8896
+ ariaLabelledBy: ce,
8912
8897
  ariaLevel: A,
8913
8898
  ariaLive: null,
8914
8899
  ariaModal: Me,
8915
8900
  ariaMultiLine: Me,
8916
8901
  ariaMultiSelectable: Me,
8917
8902
  ariaOrientation: null,
8918
- ariaOwns: ue,
8903
+ ariaOwns: ce,
8919
8904
  ariaPlaceholder: null,
8920
8905
  ariaPosInSet: A,
8921
8906
  ariaPressed: Me,
8922
8907
  ariaReadOnly: Me,
8923
8908
  ariaRelevant: null,
8924
8909
  ariaRequired: Me,
8925
- ariaRoleDescription: ue,
8910
+ ariaRoleDescription: ce,
8926
8911
  ariaRowCount: A,
8927
8912
  ariaRowIndex: A,
8928
8913
  ariaRowSpan: A,
@@ -8949,8 +8934,8 @@ const Ba = Dt({
8949
8934
  // Standard Properties.
8950
8935
  abbr: null,
8951
8936
  accept: wt,
8952
- acceptCharset: ue,
8953
- accessKey: ue,
8937
+ acceptCharset: ce,
8938
+ accessKey: ce,
8954
8939
  action: null,
8955
8940
  allow: null,
8956
8941
  allowFullScreen: Z,
@@ -8960,21 +8945,21 @@ const Ba = Dt({
8960
8945
  as: null,
8961
8946
  async: Z,
8962
8947
  autoCapitalize: null,
8963
- autoComplete: ue,
8948
+ autoComplete: ce,
8964
8949
  autoFocus: Z,
8965
8950
  autoPlay: Z,
8966
- blocking: ue,
8951
+ blocking: ce,
8967
8952
  capture: null,
8968
8953
  charSet: null,
8969
8954
  checked: Z,
8970
8955
  cite: null,
8971
- className: ue,
8956
+ className: ce,
8972
8957
  cols: A,
8973
8958
  colSpan: null,
8974
8959
  content: null,
8975
8960
  contentEditable: Me,
8976
8961
  controls: Z,
8977
- controlsList: ue,
8962
+ controlsList: ce,
8978
8963
  coords: A | wt,
8979
8964
  crossOrigin: null,
8980
8965
  data: null,
@@ -8996,14 +8981,14 @@ const Ba = Dt({
8996
8981
  formMethod: null,
8997
8982
  formNoValidate: Z,
8998
8983
  formTarget: null,
8999
- headers: ue,
8984
+ headers: ce,
9000
8985
  height: A,
9001
8986
  hidden: Z,
9002
8987
  high: A,
9003
8988
  href: null,
9004
8989
  hrefLang: null,
9005
- htmlFor: ue,
9006
- httpEquiv: ue,
8990
+ htmlFor: ce,
8991
+ httpEquiv: ce,
9007
8992
  id: null,
9008
8993
  imageSizes: null,
9009
8994
  imageSrcSet: null,
@@ -9013,10 +8998,10 @@ const Ba = Dt({
9013
8998
  is: null,
9014
8999
  isMap: Z,
9015
9000
  itemId: null,
9016
- itemProp: ue,
9017
- itemRef: ue,
9001
+ itemProp: ce,
9002
+ itemRef: ce,
9018
9003
  itemScope: Z,
9019
- itemType: ue,
9004
+ itemType: ce,
9020
9005
  kind: null,
9021
9006
  label: null,
9022
9007
  lang: null,
@@ -9129,7 +9114,7 @@ const Ba = Dt({
9129
9114
  open: Z,
9130
9115
  optimum: A,
9131
9116
  pattern: null,
9132
- ping: ue,
9117
+ ping: ce,
9133
9118
  placeholder: null,
9134
9119
  playsInline: Z,
9135
9120
  popover: null,
@@ -9139,12 +9124,12 @@ const Ba = Dt({
9139
9124
  preload: null,
9140
9125
  readOnly: Z,
9141
9126
  referrerPolicy: null,
9142
- rel: ue,
9127
+ rel: ce,
9143
9128
  required: Z,
9144
9129
  reversed: Z,
9145
9130
  rows: A,
9146
9131
  rowSpan: A,
9147
- sandbox: ue,
9132
+ sandbox: ce,
9148
9133
  scope: null,
9149
9134
  scoped: Z,
9150
9135
  seamless: Z,
@@ -9180,7 +9165,7 @@ const Ba = Dt({
9180
9165
  // Several. Use CSS `text-align` instead,
9181
9166
  aLink: null,
9182
9167
  // `<body>`. Use CSS `a:active {color}` instead
9183
- archive: ue,
9168
+ archive: ce,
9184
9169
  // `<object>`. List of URIs to archives
9185
9170
  axis: null,
9186
9171
  // `<td>` and `<th>`. Use `scope` on `<th>`
@@ -9473,7 +9458,7 @@ const Ba = Dt({
9473
9458
  },
9474
9459
  transform: Ra,
9475
9460
  properties: {
9476
- about: Ae,
9461
+ about: Ce,
9477
9462
  accentHeight: A,
9478
9463
  accumulate: null,
9479
9464
  additive: null,
@@ -9495,7 +9480,7 @@ const Ba = Dt({
9495
9480
  by: null,
9496
9481
  calcMode: null,
9497
9482
  capHeight: A,
9498
- className: ue,
9483
+ className: ce,
9499
9484
  clip: null,
9500
9485
  clipPath: null,
9501
9486
  clipPathUnits: null,
@@ -9585,7 +9570,7 @@ const Ba = Dt({
9585
9570
  k2: A,
9586
9571
  k3: A,
9587
9572
  k4: A,
9588
- kernelMatrix: Ae,
9573
+ kernelMatrix: Ce,
9589
9574
  kernelUnitLength: null,
9590
9575
  keyPoints: null,
9591
9576
  // SEMI_COLON_SEPARATED
@@ -9730,7 +9715,7 @@ const Ba = Dt({
9730
9715
  patternTransform: null,
9731
9716
  patternUnits: null,
9732
9717
  phase: null,
9733
- ping: ue,
9718
+ ping: ce,
9734
9719
  pitch: null,
9735
9720
  playbackOrder: null,
9736
9721
  pointerEvents: null,
@@ -9742,21 +9727,21 @@ const Ba = Dt({
9742
9727
  preserveAspectRatio: null,
9743
9728
  primitiveUnits: null,
9744
9729
  propagate: null,
9745
- property: Ae,
9730
+ property: Ce,
9746
9731
  r: null,
9747
9732
  radius: null,
9748
9733
  referrerPolicy: null,
9749
9734
  refX: null,
9750
9735
  refY: null,
9751
- rel: Ae,
9752
- rev: Ae,
9736
+ rel: Ce,
9737
+ rev: Ce,
9753
9738
  renderingIntent: null,
9754
9739
  repeatCount: null,
9755
9740
  repeatDur: null,
9756
- requiredExtensions: Ae,
9757
- requiredFeatures: Ae,
9758
- requiredFonts: Ae,
9759
- requiredFormats: Ae,
9741
+ requiredExtensions: Ce,
9742
+ requiredFeatures: Ce,
9743
+ requiredFonts: Ce,
9744
+ requiredFormats: Ce,
9760
9745
  resource: null,
9761
9746
  restart: null,
9762
9747
  result: null,
@@ -9784,7 +9769,7 @@ const Ba = Dt({
9784
9769
  strikethroughThickness: A,
9785
9770
  string: null,
9786
9771
  stroke: null,
9787
- strokeDashArray: Ae,
9772
+ strokeDashArray: Ce,
9788
9773
  strokeDashOffset: null,
9789
9774
  strokeLineCap: null,
9790
9775
  strokeLineJoin: null,
@@ -9798,7 +9783,7 @@ const Ba = Dt({
9798
9783
  syncMaster: null,
9799
9784
  syncTolerance: null,
9800
9785
  syncToleranceDefault: null,
9801
- systemLanguage: Ae,
9786
+ systemLanguage: Ce,
9802
9787
  tabIndex: A,
9803
9788
  tableValues: null,
9804
9789
  target: null,
@@ -9812,7 +9797,7 @@ const Ba = Dt({
9812
9797
  title: null,
9813
9798
  transformBehavior: null,
9814
9799
  type: null,
9815
- typeOf: Ae,
9800
+ typeOf: Ce,
9816
9801
  to: null,
9817
9802
  transform: null,
9818
9803
  transformOrigin: null,
@@ -9856,7 +9841,7 @@ const Ba = Dt({
9856
9841
  }), ih = /^data[-\w.:]+$/i, ho = /-[a-z]/g, oh = /[A-Z]/g;
9857
9842
  function ah(e, t) {
9858
9843
  const n = Ir(t);
9859
- let r = t, i = Be;
9844
+ let r = t, i = Ue;
9860
9845
  if (n in e.normal)
9861
9846
  return e.property[e.normal[n]];
9862
9847
  if (n.length > 4 && n.slice(0, 4) === "data" && ih.test(t)) {
@@ -9929,7 +9914,7 @@ var Ya = { exports: {} }, ae = {};
9929
9914
  */
9930
9915
  var Gr = Symbol.for("react.element"), Wr = Symbol.for("react.portal"), Nn = Symbol.for("react.fragment"), kn = Symbol.for("react.strict_mode"), En = Symbol.for("react.profiler"), jn = Symbol.for("react.provider"), Cn = Symbol.for("react.context"), fh = Symbol.for("react.server_context"), An = Symbol.for("react.forward_ref"), Sn = Symbol.for("react.suspense"), On = Symbol.for("react.suspense_list"), zn = Symbol.for("react.memo"), Ln = Symbol.for("react.lazy"), dh = Symbol.for("react.offscreen"), Ha;
9931
9916
  Ha = Symbol.for("react.module.reference");
9932
- function Qe(e) {
9917
+ function Be(e) {
9933
9918
  if (typeof e == "object" && e !== null) {
9934
9919
  var t = e.$$typeof;
9935
9920
  switch (t) {
@@ -9978,45 +9963,45 @@ ae.isConcurrentMode = function() {
9978
9963
  return !1;
9979
9964
  };
9980
9965
  ae.isContextConsumer = function(e) {
9981
- return Qe(e) === Cn;
9966
+ return Be(e) === Cn;
9982
9967
  };
9983
9968
  ae.isContextProvider = function(e) {
9984
- return Qe(e) === jn;
9969
+ return Be(e) === jn;
9985
9970
  };
9986
9971
  ae.isElement = function(e) {
9987
9972
  return typeof e == "object" && e !== null && e.$$typeof === Gr;
9988
9973
  };
9989
9974
  ae.isForwardRef = function(e) {
9990
- return Qe(e) === An;
9975
+ return Be(e) === An;
9991
9976
  };
9992
9977
  ae.isFragment = function(e) {
9993
- return Qe(e) === Nn;
9978
+ return Be(e) === Nn;
9994
9979
  };
9995
9980
  ae.isLazy = function(e) {
9996
- return Qe(e) === Ln;
9981
+ return Be(e) === Ln;
9997
9982
  };
9998
9983
  ae.isMemo = function(e) {
9999
- return Qe(e) === zn;
9984
+ return Be(e) === zn;
10000
9985
  };
10001
9986
  ae.isPortal = function(e) {
10002
- return Qe(e) === Wr;
9987
+ return Be(e) === Wr;
10003
9988
  };
10004
9989
  ae.isProfiler = function(e) {
10005
- return Qe(e) === En;
9990
+ return Be(e) === En;
10006
9991
  };
10007
9992
  ae.isStrictMode = function(e) {
10008
- return Qe(e) === kn;
9993
+ return Be(e) === kn;
10009
9994
  };
10010
9995
  ae.isSuspense = function(e) {
10011
- return Qe(e) === Sn;
9996
+ return Be(e) === Sn;
10012
9997
  };
10013
9998
  ae.isSuspenseList = function(e) {
10014
- return Qe(e) === On;
9999
+ return Be(e) === On;
10015
10000
  };
10016
10001
  ae.isValidElementType = function(e) {
10017
10002
  return typeof e == "string" || typeof e == "function" || e === Nn || e === En || e === kn || e === Sn || e === On || e === dh || typeof e == "object" && e !== null && (e.$$typeof === Ln || e.$$typeof === zn || e.$$typeof === jn || e.$$typeof === Cn || e.$$typeof === An || e.$$typeof === Ha || e.getModuleId !== void 0);
10018
10003
  };
10019
- ae.typeOf = Qe;
10004
+ ae.typeOf = Be;
10020
10005
  Ya.exports = ae;
10021
10006
  var hh = Ya.exports;
10022
10007
  const gh = /* @__PURE__ */ nt(hh);
@@ -10040,7 +10025,7 @@ function Mh(e, t) {
10040
10025
  ).trim();
10041
10026
  }
10042
10027
  var Zr = { exports: {} }, mo = /\/\*[^*]*\*+([^/*][^*]*\*+)*\//g, bh = /\n/g, xh = /^\s*/, wh = /^(\*?[-#/*\\\w]+(\[[0-9a-z_-]+\])?)\s*/, vh = /^:\s*/, Th = /^((?:'(?:\\'|.)*?'|"(?:\\"|.)*?"|\([^)]*?\)|[^};])+)/, Ih = /^[;\s]*/, Dh = /^\s+|\s+$/g, Nh = `
10043
- `, yo = "/", Mo = "*", dt = "", kh = "comment", Eh = "declaration", jh = function(e, t) {
10028
+ `, yo = "/", Mo = "*", pt = "", kh = "comment", Eh = "declaration", jh = function(e, t) {
10044
10029
  if (typeof e != "string")
10045
10030
  throw new TypeError("First argument must be a string");
10046
10031
  if (!e)
@@ -10089,9 +10074,9 @@ var Zr = { exports: {} }, mo = /\/\*[^*]*\*+([^/*][^*]*\*+)*\//g, bh = /\n/g, xh
10089
10074
  function p() {
10090
10075
  var D = o();
10091
10076
  if (!(yo != e.charAt(0) || Mo != e.charAt(1))) {
10092
- for (var b = 2; dt != e.charAt(b) && (Mo != e.charAt(b) || yo != e.charAt(b + 1)); )
10077
+ for (var b = 2; pt != e.charAt(b) && (Mo != e.charAt(b) || yo != e.charAt(b + 1)); )
10093
10078
  ++b;
10094
- if (b += 2, dt === e.charAt(b - 1))
10079
+ if (b += 2, pt === e.charAt(b - 1))
10095
10080
  return l("End of comment missing");
10096
10081
  var C = e.slice(2, b - 2);
10097
10082
  return r += 2, i(C), e = e.slice(b), r += 2, D({
@@ -10107,8 +10092,8 @@ var Zr = { exports: {} }, mo = /\/\*[^*]*\*+([^/*][^*]*\*+)*\//g, bh = /\n/g, xh
10107
10092
  return l("property missing ':'");
10108
10093
  var C = s(Th), x = D({
10109
10094
  type: Eh,
10110
- property: bo(b[0].replace(mo, dt)),
10111
- value: C ? bo(C[0].replace(mo, dt)) : dt
10095
+ property: bo(b[0].replace(mo, pt)),
10096
+ value: C ? bo(C[0].replace(mo, pt)) : pt
10112
10097
  });
10113
10098
  return s(Ih), x;
10114
10099
  }
@@ -10123,7 +10108,7 @@ var Zr = { exports: {} }, mo = /\/\*[^*]*\*+([^/*][^*]*\*+)*\//g, bh = /\n/g, xh
10123
10108
  return u(), d();
10124
10109
  };
10125
10110
  function bo(e) {
10126
- return e ? e.replace(Dh, dt) : dt;
10111
+ return e ? e.replace(Dh, pt) : pt;
10127
10112
  }
10128
10113
  var Ch = jh;
10129
10114
  function $a(e, t) {
@@ -10157,7 +10142,7 @@ function zh(e, t, n, r) {
10157
10142
  const m = t.position || {
10158
10143
  start: { line: null, column: null, offset: null },
10159
10144
  end: { line: null, column: null, offset: null }
10160
- }, d = i.components && Nr.call(i.components, l) ? i.components[l] : l, D = typeof d == "string" || d === Te.Fragment;
10145
+ }, d = i.components && Nr.call(i.components, l) ? i.components[l] : l, D = typeof d == "string" || d === ve.Fragment;
10161
10146
  if (!gh.isValidElementType(d))
10162
10147
  throw new TypeError(
10163
10148
  `Component for name \`${l}\` not defined or is not renderable`
@@ -10178,7 +10163,7 @@ function zh(e, t, n, r) {
10178
10163
  const b = Lh(t);
10179
10164
  s.checked = b && b.properties ? !!b.properties.checked : null, s.index = ar(r, t), s.ordered = r.tagName === "ol";
10180
10165
  }
10181
- return !D && (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), D || (s.isHeader = l === "th")), !D && l === "tr" && r.type === "element" && (s.isHeader = r.tagName === "thead"), i.sourcePos && (s["data-sourcepos"] = Rh(m)), !D && i.rawSourcePos && (s.sourcePosition = t.position), !D && i.includeElementIndex && (s.index = ar(r, t), s.siblingCount = ar(r)), D || (s.node = t), p.length > 0 ? Te.createElement(d, s, p) : Te.createElement(d, s);
10166
+ return !D && (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), D || (s.isHeader = l === "th")), !D && l === "tr" && r.type === "element" && (s.isHeader = r.tagName === "thead"), i.sourcePos && (s["data-sourcepos"] = Rh(m)), !D && i.rawSourcePos && (s.sourcePosition = t.position), !D && i.includeElementIndex && (s.index = ar(r, t), s.siblingCount = ar(r)), D || (s.node = t), p.length > 0 ? ve.createElement(d, s, p) : ve.createElement(d, s);
10182
10167
  }
10183
10168
  function Lh(e) {
10184
10169
  let t = -1;
@@ -10268,12 +10253,12 @@ function Va(e) {
10268
10253
  const r = t.runSync(t.parse(n), n);
10269
10254
  if (r.type !== "root")
10270
10255
  throw new TypeError("Expected a `root` node");
10271
- let i = Te.createElement(
10272
- Te.Fragment,
10256
+ let i = ve.createElement(
10257
+ ve.Fragment,
10273
10258
  {},
10274
10259
  qa({ options: e, schema: uh, listDepth: 0 }, r)
10275
10260
  );
10276
- return e.className && (i = Te.createElement("div", { className: e.className }, i)), i;
10261
+ return e.className && (i = ve.createElement("div", { className: e.className }, i)), i;
10277
10262
  }
10278
10263
  Va.propTypes = {
10279
10264
  // Core options:
@@ -10403,23 +10388,23 @@ function _n({
10403
10388
  text: a,
10404
10389
  userTrackingName: l
10405
10390
  }) {
10406
- const [s, u] = xe(!0), { primaryColor: c, xpertKey: p, userTracking: m, conversationScreen: d } = Pe(Re), D = Ht(
10391
+ const [s, u] = be(!0), { primaryColor: c, xpertKey: p, userTracking: m, conversationScreen: d } = Fe(Pe), D = Ht(
10407
10392
  (x) => {
10408
- var E, j, U, H;
10409
- ((E = x == null ? void 0 : x.data) == null ? void 0 : E.who) === "customer" && (!(window != null && window.OnetrustActiveGroups) || (j = window == null ? void 0 : window.OnetrustActiveGroups) != null && j.includes("C0003")) && Fe.set(`${p}-live-chat-open`, 1, {
10393
+ var E, j, R, H;
10394
+ ((E = x == null ? void 0 : x.data) == null ? void 0 : E.who) === "customer" && (!(window != null && window.OnetrustActiveGroups) || (j = window == null ? void 0 : window.OnetrustActiveGroups) != null && j.includes("C0003")) && _e.set(`${p}-live-chat-open`, 1, {
10410
10395
  expires: 1,
10411
10396
  path: "/"
10412
- }), ((U = x == null ? void 0 : x.data) == null ? void 0 : U.type) === "connection" && ((H = x == null ? void 0 : x.data) == null ? void 0 : H.state) === "disconnected" && Fe.remove(`${p}-live-chat-open`);
10397
+ }), ((R = x == null ? void 0 : x.data) == null ? void 0 : R.type) === "connection" && ((H = x == null ? void 0 : x.data) == null ? void 0 : H.state) === "disconnected" && _e.remove(`${p}-live-chat-open`);
10413
10398
  },
10414
10399
  [p]
10415
10400
  ), b = Ht(
10416
10401
  (x) => {
10417
- var E, j, U;
10418
- ((E = x == null ? void 0 : x.data) == null ? void 0 : E.type) === "unhide" && ((j = x == null ? void 0 : x.data) == null ? void 0 : j.reason) === "pop-out" && t(!0), ((U = x == null ? void 0 : x.data) == null ? void 0 : U.type) === "open" && t(!0);
10402
+ var E, j, R;
10403
+ ((E = x == null ? void 0 : x.data) == null ? void 0 : E.type) === "unhide" && ((j = x == null ? void 0 : x.data) == null ? void 0 : j.reason) === "pop-out" && t(!0), ((R = x == null ? void 0 : x.data) == null ? void 0 : R.type) === "open" && t(!0);
10419
10404
  },
10420
10405
  [t]
10421
10406
  );
10422
- Ie(() => {
10407
+ Te(() => {
10423
10408
  let x, E;
10424
10409
  return d.liveChat.enabled && (window.Five9ChatPlugin || (x = document.createElement("script"), x.type = "text/javascript", x.src = d.liveChat.sourceCode, x.async = !0, x.onload = () => {
10425
10410
  window.Five9ChatPlugin(d.liveChat.options);
@@ -10591,8 +10576,8 @@ Fn.defaultProps = {
10591
10576
  };
10592
10577
  Fn.displayName = "AssistantMessageBubble";
10593
10578
  const $h = Fn, Wa = () => {
10594
- const { disclaimer: e } = Pe(Re), t = We(null);
10595
- return Ie(() => {
10579
+ const { disclaimer: e } = Fe(Pe), t = We(null);
10580
+ return Te(() => {
10596
10581
  var n;
10597
10582
  (n = t == null ? void 0 : t.current) == null || n.focus();
10598
10583
  }, []), /* @__PURE__ */ T.jsxs(
@@ -10625,7 +10610,7 @@ const $h = Fn, Wa = () => {
10625
10610
  Wa.displayName = "ConversationScreenDisclaimer";
10626
10611
  const qh = Wa, Kr = ({ loading: e, onPromptClick: t }) => {
10627
10612
  var i;
10628
- const { primaryColor: n, conversationScreen: r } = Pe(Re);
10613
+ const { primaryColor: n, conversationScreen: r } = Fe(Pe);
10629
10614
  return /* @__PURE__ */ T.jsxs(T.Fragment, { children: [
10630
10615
  /* @__PURE__ */ T.jsx("div", { style: { fontWeight: 700, fontSize: "0.75rem" }, children: "Some things I can help you with" }),
10631
10616
  (i = r.prompts) == null ? void 0 : i.map((o) => {
@@ -10670,7 +10655,7 @@ Xr.propTypes = {
10670
10655
  Xr.displayName = "SystemMessageBubble";
10671
10656
  const Gh = Xr, Jr = ({ content: e, isNormalSize: t }) => {
10672
10657
  var i;
10673
- const { primaryColor: n, conversationScreen: r } = Pe(Re);
10658
+ const { primaryColor: n, conversationScreen: r } = Fe(Pe);
10674
10659
  return /* @__PURE__ */ T.jsx(
10675
10660
  "div",
10676
10661
  {
@@ -10701,8 +10686,8 @@ const Wh = Jr, Pn = ({
10701
10686
  setLiveChatOpen: l,
10702
10687
  isTestUser: s
10703
10688
  }) => {
10704
- const { conversationScreen: u } = Pe(Re), { prompts: c, systemMessage: p } = u, m = We(null);
10705
- return Ie(() => {
10689
+ const { conversationScreen: u } = Fe(Pe), { prompts: c, systemMessage: p } = u, m = We(null);
10690
+ return Te(() => {
10706
10691
  var d;
10707
10692
  (d = m.current) == null || d.scrollIntoView({
10708
10693
  behavior: "instant",
@@ -10786,7 +10771,7 @@ Pn.displayName = "ConversationsMessages";
10786
10771
  const Zh = Pn;
10787
10772
  function Za({ disableScroll: e }) {
10788
10773
  const t = We(null);
10789
- return Ie(() => {
10774
+ return Te(() => {
10790
10775
  var n;
10791
10776
  e || (n = t.current) == null || n.scrollIntoView({
10792
10777
  behavior: "smooth",
@@ -10812,7 +10797,7 @@ Za.propTypes = {
10812
10797
  };
10813
10798
  const Kh = () => {
10814
10799
  const e = We(null);
10815
- return Ie(() => {
10800
+ return Te(() => {
10816
10801
  var t;
10817
10802
  (t = e.current) == null || t.scrollIntoView({
10818
10803
  behavior: "instant"
@@ -10875,8 +10860,8 @@ const Kh = () => {
10875
10860
  );
10876
10861
  }, lr = Kh;
10877
10862
  function Xh(e) {
10878
- const [t, n] = xe(null);
10879
- return Ie(() => {
10863
+ const [t, n] = be(null);
10864
+ return Te(() => {
10880
10865
  console.log("Chatbot - optimizely mount");
10881
10866
  try {
10882
10867
  (() => {
@@ -10906,7 +10891,7 @@ function Xh(e) {
10906
10891
  ), t;
10907
10892
  }
10908
10893
  function Jh(e) {
10909
- Ie(() => {
10894
+ Te(() => {
10910
10895
  e();
10911
10896
  const t = () => document.visibilityState === "visible" && e();
10912
10897
  return document.addEventListener("visibilitychange", t), () => {
@@ -10930,7 +10915,7 @@ function ng(e) {
10930
10915
  }
10931
10916
  const rg = 991, ig = [];
10932
10917
  function ei({ submitEventExternal: e }) {
10933
- var at;
10918
+ var at, mt;
10934
10919
  const {
10935
10920
  xpertKey: t,
10936
10921
  chatApi: n,
@@ -10939,9 +10924,9 @@ function ei({ submitEventExternal: e }) {
10939
10924
  proactiveMessage: o,
10940
10925
  launchButton: a,
10941
10926
  conversationScreen: l
10942
- } = Pe(Re), s = rt(rg), [, u] = xe(!1), [, c] = xe(!1), [p, m] = xe(ig), [d, D] = xe(!1), [b, C] = xe(!1), [x, E] = xe(!1), [j, U] = xe(""), [H, M] = xe(!1), [L, $] = xe(!0), [G, X] = xe(!1), [S, w] = xe(!1), [k, z] = xe(!1), _ = We(null), B = We(null), V = We(null), q = Fe.get(`${t}-test`) === "1", K = Ht(
10943
- ({ name: P, payload: J }) => {
10944
- const me = Eo(r == null ? void 0 : r.payloadParams, J);
10927
+ } = Fe(Pe), s = rt(rg), [, u] = be(!1), [, c] = be(!1), [p, m] = be(ig), [d, D] = be(!1), [b, C] = be(!1), [x, E] = be(!1), [j, R] = be(""), [H, M] = be(!1), [L, $] = be(!0), [G, X] = be(!1), [S, w] = be(!1), [k, z] = be(!1), _ = We(null), U = We(null), V = We(null), q = _e.get(`${t}-test`) === "1", K = Ht(
10928
+ ({ name: P, payload: ee }) => {
10929
+ const me = Eo(r == null ? void 0 : r.payloadParams, ee);
10945
10930
  e ? e({ name: P, payload: me }) : V.current.track(
10946
10931
  // TODO: this is untestable - create a custom hook to get submit event function.
10947
10932
  P,
@@ -10952,13 +10937,13 @@ function ei({ submitEventExternal: e }) {
10952
10937
  ), g = Ht(async () => {
10953
10938
  if (window != null && window.OnetrustActiveGroups && window.OnetrustActiveGroups.split(",").includes("C0003"))
10954
10939
  try {
10955
- const P = Fe.get(
10940
+ const P = _e.get(
10956
10941
  `${t}-conversation-history-id`
10957
10942
  );
10958
10943
  if (!P)
10959
10944
  return;
10960
10945
  D(!0);
10961
- const J = await fetch(
10946
+ const ee = await fetch(
10962
10947
  `${n.endpoint}/xpert-chat/${P}`,
10963
10948
  {
10964
10949
  method: "GET",
@@ -10967,16 +10952,16 @@ function ei({ submitEventExternal: e }) {
10967
10952
  }
10968
10953
  }
10969
10954
  );
10970
- if (J.status === 404) {
10971
- Fe.remove(`${t}-conversation-history-id`);
10955
+ if (ee.status === 404) {
10956
+ _e.remove(`${t}-conversation-history-id`);
10972
10957
  return;
10973
10958
  }
10974
- if (!J.ok)
10975
- throw new lr(`HTTPError: ${J.status} ${J.statusText}`);
10976
- const me = await J.json();
10959
+ if (!ee.ok)
10960
+ throw new lr(`HTTPError: ${ee.status} ${ee.statusText}`);
10961
+ const me = await ee.json();
10977
10962
  m(
10978
- me.map((he) => ({
10979
- ...he,
10963
+ me.map((le) => ({
10964
+ ...le,
10980
10965
  disableFeedback: !0
10981
10966
  }))
10982
10967
  ), w(!0), z(!0);
@@ -10986,31 +10971,31 @@ function ei({ submitEventExternal: e }) {
10986
10971
  D(!1);
10987
10972
  }
10988
10973
  }, [t, n.endpoint]);
10989
- Jh(g), Ie(() => {
10974
+ Jh(g), Te(() => {
10990
10975
  console.log("Chatbot - Find Segment mount");
10991
- let P, J;
10976
+ let P, ee;
10992
10977
  return r.enabled && (P = setInterval(() => {
10993
- var he;
10994
- console.log("Chatbot - Finding Segment"), (he = window.analytics) != null && he.track && (console.log("Chatbot - Segment found"), V.current = window.analytics, clearInterval(P), clearTimeout(J), u(!0));
10995
- }, 1e3), J = setTimeout(() => {
10978
+ var le;
10979
+ console.log("Chatbot - Finding Segment"), (le = window.analytics) != null && le.track && (console.log("Chatbot - Segment found"), V.current = window.analytics, clearInterval(P), clearTimeout(ee), u(!0));
10980
+ }, 1e3), ee = setTimeout(() => {
10996
10981
  clearInterval(P);
10997
10982
  }, 6e4)), () => {
10998
- console.log("Chatbot - Find Segment unmount"), clearInterval(P), clearTimeout(J);
10983
+ console.log("Chatbot - Find Segment unmount"), clearInterval(P), clearTimeout(ee);
10999
10984
  };
11000
- }, [r.enabled, r.prefix]), Ie(() => {
10985
+ }, [r.enabled, r.prefix]), Te(() => {
11001
10986
  console.log("Chatbot - Find Optimizely mount");
11002
- let P, J;
10987
+ let P, ee;
11003
10988
  return P = setInterval(() => {
11004
- i.enabled && (console.log("Chatbot - Finding Optimizely"), window.optimizely && window.experiments && (console.log("Chatbot - Optimizely found"), clearInterval(P), clearTimeout(J), c(!0)));
11005
- }, 1e3), J = setTimeout(() => {
10989
+ i.enabled && (console.log("Chatbot - Finding Optimizely"), window.optimizely && window.experiments && (console.log("Chatbot - Optimizely found"), clearInterval(P), clearTimeout(ee), c(!0)));
10990
+ }, 1e3), ee = setTimeout(() => {
11006
10991
  clearInterval(P);
11007
10992
  }, 6e4), () => {
11008
- console.log("Chatbot - Find Optimizely unmount"), clearInterval(P), clearTimeout(J);
10993
+ console.log("Chatbot - Find Optimizely unmount"), clearInterval(P), clearTimeout(ee);
11009
10994
  };
11010
10995
  }, [i.enabled, i.experimentName]);
11011
- const de = (P) => {
11012
- var J, me;
11013
- (J = P == null ? void 0 : P.target) != null && J.href && K({
10996
+ const he = (P) => {
10997
+ var ee, me;
10998
+ (ee = P == null ? void 0 : P.target) != null && ee.href && K({
11014
10999
  name: `${r.prefix}.bi.xpert.chatbot.popup.chat.message.link.clicked`,
11015
11000
  payload: {
11016
11001
  category: "2u",
@@ -11032,8 +11017,8 @@ function ei({ submitEventExternal: e }) {
11032
11017
  `Chatbot - All things setup: ${t}, ${typeof window.analytics}, ${ye}, ${typeof window.optimizely}, ${typeof window.experiments}`
11033
11018
  );
11034
11019
  const h = () => {
11035
- U(""), B.current.value = "", B.current.style.height = "auto";
11036
- }, ge = (P, J) => {
11020
+ R(""), U.current.value = "", U.current.style.height = "auto";
11021
+ }, ge = (P, ee) => {
11037
11022
  K({
11038
11023
  name: `${r.prefix}.bi.xpert.chatbot.popup.chat.message.response`,
11039
11024
  payload: {
@@ -11042,15 +11027,15 @@ function ei({ submitEventExternal: e }) {
11042
11027
  linkCount: tg(P),
11043
11028
  apiResponseMessage: P,
11044
11029
  isTestUser: q,
11045
- conversationHistoryId: J
11030
+ conversationHistoryId: ee
11046
11031
  }
11047
11032
  });
11048
- }, Ee = ({
11033
+ }, ke = ({
11049
11034
  conversationSize: P,
11050
- userInputMessage: J,
11035
+ userInputMessage: ee,
11051
11036
  apiResponseMessage: me,
11052
- elapsedSeconds: he,
11053
- conversationByteSize: be
11037
+ elapsedSeconds: le,
11038
+ conversationByteSize: Ye
11054
11039
  }) => {
11055
11040
  K({
11056
11041
  name: `${r.prefix}.bi.xpert.chatbot.popup.chat.message.elapsed.seconds`,
@@ -11059,19 +11044,19 @@ function ei({ submitEventExternal: e }) {
11059
11044
  label: "xpert-chatbot",
11060
11045
  isTestUser: q,
11061
11046
  conversationSize: P,
11062
- userInputMessage: J,
11047
+ userInputMessage: ee,
11063
11048
  apiResponseMessage: me,
11064
- elapsedSeconds: he,
11065
- conversationByteSize: be
11049
+ elapsedSeconds: le,
11050
+ conversationByteSize: Ye
11066
11051
  }
11067
11052
  });
11068
- }, ne = async (P) => {
11053
+ }, re = async (P) => {
11069
11054
  try {
11070
11055
  if (P.trim().length === 0)
11071
11056
  return;
11072
- const J = /* @__PURE__ */ new Date();
11057
+ const ee = /* @__PURE__ */ new Date();
11073
11058
  z(!1), M(!1);
11074
- const me = p.filter((R) => R.role === "user").length + 1;
11059
+ const me = p.filter((J) => J.role === "user").length + 1;
11075
11060
  K({
11076
11061
  name: `${r.prefix}.bi.xpert.chatbot.popup.chat.message.sent`,
11077
11062
  payload: {
@@ -11082,8 +11067,8 @@ function ei({ submitEventExternal: e }) {
11082
11067
  isTestUser: q
11083
11068
  }
11084
11069
  }), h();
11085
- let he = Fe.get(`${t}-conversation-history-id`) || "";
11086
- !he && l.conversationHistory.enabled ? m([
11070
+ let le = _e.get(`${t}-conversation-history-id`) || "";
11071
+ !le && l.conversationHistory.enabled ? m([
11087
11072
  {
11088
11073
  role: "user",
11089
11074
  content: P
@@ -11095,55 +11080,55 @@ function ei({ submitEventExternal: e }) {
11095
11080
  content: P
11096
11081
  }
11097
11082
  ]), D(!0);
11098
- const be = [
11083
+ const Ye = [
11099
11084
  ...p,
11100
11085
  {
11101
11086
  role: "user",
11102
11087
  content: P
11103
11088
  }
11104
- ].map((R) => ({
11105
- role: R.role,
11106
- content: R.content
11089
+ ].map((J) => ({
11090
+ role: J.role,
11091
+ content: J.content
11107
11092
  })), qe = await fetch(n.endpoint, {
11108
11093
  method: "POST",
11109
11094
  headers: {
11110
11095
  "Content-Type": "application/json",
11111
- "Conversation-History-Id": he
11096
+ "Conversation-History-Id": le
11112
11097
  },
11113
11098
  body: JSON.stringify({
11114
- message_list: be,
11099
+ message_list: Ye,
11115
11100
  ...n.payloadParams
11116
11101
  })
11117
11102
  });
11118
11103
  if (!qe.ok)
11119
11104
  throw new lr(`HTTPError: ${qe.status} ${qe.statusText}`);
11120
- he = qe.headers.get("Conversation-History-Id"), he && Fe.set(
11105
+ le = qe.headers.get("Conversation-History-Id"), le && _e.set(
11121
11106
  `${t}-conversation-history-id`,
11122
- he,
11107
+ le,
11123
11108
  { expires: 1 }
11124
11109
  );
11125
- const lt = await qe.json(), st = lt.content, N = lt.live_agent;
11126
- ge(st, he);
11127
- const O = /* @__PURE__ */ new Date();
11128
- Ee({
11129
- conversationByteSize: ng(JSON.stringify(be)),
11110
+ const yt = await qe.json(), N = yt.content, O = yt.live_agent;
11111
+ ge(N, le);
11112
+ const Q = /* @__PURE__ */ new Date();
11113
+ ke({
11114
+ conversationByteSize: ng(JSON.stringify(Ye)),
11130
11115
  conversationSize: p.length + 2,
11131
11116
  userInputMessage: P,
11132
- apiResponseMessage: st,
11133
- elapsedSeconds: eg(J, O)
11134
- }), m((R) => [
11135
- ...R,
11117
+ apiResponseMessage: N,
11118
+ elapsedSeconds: eg(ee, Q)
11119
+ }), m((J) => [
11120
+ ...J,
11136
11121
  {
11137
11122
  role: "assistant",
11138
- content: st,
11139
- liveAgent: N,
11123
+ content: N,
11124
+ liveAgent: O,
11140
11125
  createdAt: /* @__PURE__ */ new Date()
11141
11126
  }
11142
11127
  ]), w(!1), D(!1), h(), z(!0);
11143
- } catch (J) {
11144
- D(!1), h(), M(!0), console.error(J);
11128
+ } catch (ee) {
11129
+ D(!1), h(), M(!0), console.error(ee);
11145
11130
  }
11146
- }, we = () => {
11131
+ }, xe = () => {
11147
11132
  E(!1), C(!0), K({
11148
11133
  name: `${r.prefix}.bi.xpert.chatbot.action.button.clicked`,
11149
11134
  payload: {
@@ -11152,7 +11137,7 @@ function ei({ submitEventExternal: e }) {
11152
11137
  isTestUser: q
11153
11138
  }
11154
11139
  });
11155
- }, ve = (P) => {
11140
+ }, we = (P) => {
11156
11141
  K({
11157
11142
  name: `${r.prefix}.bi.xpert.chatbot.${P ? "normal" : "expand"}.size.button.clicked`,
11158
11143
  payload: {
@@ -11161,7 +11146,7 @@ function ei({ submitEventExternal: e }) {
11161
11146
  isTestUser: q
11162
11147
  }
11163
11148
  }), $(P);
11164
- }, Ye = () => {
11149
+ }, Qe = () => {
11165
11150
  C(!0), K({
11166
11151
  name: `${r.prefix}.bi.xpert.chatbot.proactive.message.clicked`,
11167
11152
  payload: {
@@ -11170,7 +11155,7 @@ function ei({ submitEventExternal: e }) {
11170
11155
  isTestUser: q
11171
11156
  }
11172
11157
  });
11173
- }, Oe = () => {
11158
+ }, Se = () => {
11174
11159
  K({
11175
11160
  name: `${r.prefix}.bi.xpert.chatbot.proactive.message.closed`,
11176
11161
  payload: {
@@ -11191,17 +11176,17 @@ function ei({ submitEventExternal: e }) {
11191
11176
  }, ot = () => {
11192
11177
  var P;
11193
11178
  /* istanbul ignore next @preserve */
11194
- B.current && (B.current.style.height = "auto", B.current.style.height = `${Math.min(
11195
- (P = B.current) == null ? void 0 : P.scrollHeight,
11179
+ U.current && (U.current.style.height = "auto", U.current.style.height = `${Math.min(
11180
+ (P = U.current) == null ? void 0 : P.scrollHeight,
11196
11181
  120
11197
11182
  )}px`);
11198
11183
  }, Nt = (P) => {
11199
- U(P.target.value);
11184
+ R(P.target.value);
11200
11185
  }, kt = (P) => {
11201
- P.key === "Enter" && j.trim() === "" || P.key === "Enter" && !P.shiftKey && (P.preventDefault(), ne(j));
11202
- }, Et = (P, J = "") => {
11203
- const me = p.map((he, be) => P === be ? (K({
11204
- name: `${r.prefix}.bi.xpert.chatbot.feedback.thumbs.${J.toLowerCase()}.clicked`,
11186
+ P.key === "Enter" && j.trim() === "" || P.key === "Enter" && !P.shiftKey && (P.preventDefault(), re(j));
11187
+ }, Et = (P, ee = "") => {
11188
+ const me = p.map((le, Ye) => P === Ye ? (K({
11189
+ name: `${r.prefix}.bi.xpert.chatbot.feedback.thumbs.${ee.toLowerCase()}.clicked`,
11205
11190
  payload: {
11206
11191
  category: "2u",
11207
11192
  label: "xpert-chatbot",
@@ -11211,11 +11196,11 @@ function ei({ submitEventExternal: e }) {
11211
11196
  isTestUser: q
11212
11197
  }
11213
11198
  }), {
11214
- ...he,
11215
- feedbackThumbType: J
11216
- }) : he);
11199
+ ...le,
11200
+ feedbackThumbType: ee
11201
+ }) : le);
11217
11202
  m(me), w(!1);
11218
- }, Je = a.animatedGraduate.enabled && i.enabled && ye === "A", yt = Je ? s ? o.style.mobile.animatedGraduateExperiment : o.style.animatedGraduateExperiment : s ? o.style.mobile : o.style;
11203
+ }, Je = ((mt = a.animatedGraduate) == null ? void 0 : mt.enabled) && i.enabled && ye === "A", gt = Je ? s ? o.style.mobile.animatedGraduateExperiment : o.style.animatedGraduateExperiment : s ? o.style.mobile : o.style;
11219
11204
  return (
11220
11205
  // do not remove this class as it's needed to turn off chatbot
11221
11206
  /* @__PURE__ */ T.jsxs("div", { className: "xpert-chatbot-frontend-killswitch", children: [
@@ -11223,9 +11208,9 @@ function ei({ submitEventExternal: e }) {
11223
11208
  Go,
11224
11209
  {
11225
11210
  showMessage: !b,
11226
- style: yt,
11227
- onClose: Oe,
11228
- onClick: Ye,
11211
+ style: gt,
11212
+ onClose: Se,
11213
+ onClick: Qe,
11229
11214
  cookieName: `${t}-proactive-message-xpert-chatbot`,
11230
11215
  children: /* @__PURE__ */ T.jsx("div", { className: "xpert-chatbot-proactive-message", children: /* @__PURE__ */ T.jsxs("div", { className: "xpert-chatbot-proactive-message__text", children: [
11231
11216
  o.prefix && /* @__PURE__ */ T.jsx("span", { children: o.prefix }),
@@ -11248,13 +11233,13 @@ function ei({ submitEventExternal: e }) {
11248
11233
  Je && /* @__PURE__ */ T.jsx(
11249
11234
  _u,
11250
11235
  {
11251
- handleFloatingActionButtonClick: we
11236
+ handleFloatingActionButtonClick: xe
11252
11237
  }
11253
11238
  ),
11254
11239
  !Je && /* @__PURE__ */ T.jsx(
11255
11240
  Su,
11256
11241
  {
11257
- handleFloatingActionButtonClick: we
11242
+ handleFloatingActionButtonClick: xe
11258
11243
  }
11259
11244
  ),
11260
11245
  /* @__PURE__ */ T.jsx(Ru, {}),
@@ -11273,7 +11258,7 @@ function ei({ submitEventExternal: e }) {
11273
11258
  isMounted: G,
11274
11259
  isNormalSize: L,
11275
11260
  setIsMounted: X,
11276
- setIsNormalSize: ve
11261
+ setIsNormalSize: we
11277
11262
  }
11278
11263
  ),
11279
11264
  /* @__PURE__ */ T.jsxs(
@@ -11292,8 +11277,8 @@ function ei({ submitEventExternal: e }) {
11292
11277
  loading: d,
11293
11278
  isNormalSize: s || L,
11294
11279
  onFeedbackThumbSelection: Et,
11295
- onPromptClick: ne,
11296
- handleMessageLinkClicked: de,
11280
+ onPromptClick: re,
11281
+ handleMessageLinkClicked: he,
11297
11282
  submitEvent: K,
11298
11283
  setLiveChatOpen: E,
11299
11284
  isTestUser: q
@@ -11318,12 +11303,12 @@ function ei({ submitEventExternal: e }) {
11318
11303
  /* @__PURE__ */ T.jsx("div", { style: { width: "100%" }, children: /* @__PURE__ */ T.jsx(
11319
11304
  Rr,
11320
11305
  {
11321
- inputRef: B,
11306
+ inputRef: U,
11322
11307
  loading: d,
11323
11308
  hasXpertMessages: k,
11324
11309
  hasError: H,
11325
11310
  userInput: j,
11326
- handleSend: ne,
11311
+ handleSend: re,
11327
11312
  handleInput: ot,
11328
11313
  handleChange: Nt,
11329
11314
  handleKeyDown: kt