@2uinc/frontend-component-xpert-chatbot 1.13.5 → 1.13.6-beta.1

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (2) hide show
  1. package/dist/lib/index.min.js +373 -379
  2. package/package.json +1 -2
@@ -1,4 +1,4 @@
1
- import tt, { createContext as ns, useMemo as rs, useState as Me, useCallback as vt, useEffect as xe, useContext as _e, useRef as We, forwardRef as To, createElement as sr } from "react";
1
+ import tt, { createContext as ns, useMemo as rs, useState as ye, useCallback as vt, useEffect as be, useContext as _e, useRef as We, forwardRef as To, createElement as sr } from "react";
2
2
  const is = {
3
3
  xpertKey: "edx",
4
4
  chatApi: {
@@ -621,7 +621,7 @@ function ur(e, t) {
621
621
  }
622
622
  );
623
623
  }
624
- var Le = ur(ys, { path: "/" }), jo = { exports: {} }, Ms = "SECRET_DO_NOT_PASS_THIS_OR_YOU_WILL_BE_FIRED", bs = Ms, xs = bs;
624
+ var Le = ur(ys, { path: "/" }), jo = { exports: {} }, Ms = "SECRET_DO_NOT_PASS_THIS_OR_YOU_WILL_BE_FIRED", xs = Ms, bs = xs;
625
625
  function Eo() {
626
626
  }
627
627
  function Co() {
@@ -629,7 +629,7 @@ function Co() {
629
629
  Co.resetWarningCache = Eo;
630
630
  var ws = function() {
631
631
  function e(r, i, o, a, l, s) {
632
- if (s !== xs) {
632
+ if (s !== bs) {
633
633
  var u = new Error(
634
634
  "Calling PropTypes validators directly is not supported by the `prop-types` package. Use PropTypes.checkPropTypes() to call them. Read more at http://fb.me/use-check-prop-types"
635
635
  );
@@ -671,8 +671,8 @@ const I = /* @__PURE__ */ nt(Q);
671
671
  var dn = { exports: {} };
672
672
  dn.exports;
673
673
  (function(e, t) {
674
- 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]", f = "[object Function]", v = "[object GeneratorFunction]", x = "[object Map]", k = "[object Number]", M = "[object Null]", z = "[object Object]", E = "[object Proxy]", _ = "[object RegExp]", U = "[object Set]", b = "[object String]", L = "[object Undefined]", $ = "[object WeakMap]", W = "[object ArrayBuffer]", X = "[object DataView]", A = "[object Float32Array]", w = "[object Float64Array]", j = "[object Int8Array]", O = "[object Int16Array]", F = "[object Int32Array]", B = "[object Uint8Array]", V = "[object Uint8ClampedArray]", q = "[object Uint16Array]", K = "[object Uint32Array]", g = /[\\^$.*+?()[\]{}|]/g, he = /^\[object .+?Constructor\]$/, ye = /^(?:0|[1-9]\d*)$/, h = {};
675
- h[A] = h[w] = h[j] = h[O] = h[F] = h[B] = h[V] = h[q] = h[K] = !0, h[l] = h[s] = h[W] = h[c] = h[X] = h[p] = h[m] = h[f] = h[x] = h[k] = h[z] = h[_] = h[U] = h[b] = h[$] = !1;
674
+ 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]", f = "[object Function]", v = "[object GeneratorFunction]", b = "[object Map]", k = "[object Number]", M = "[object Null]", z = "[object Object]", E = "[object Proxy]", _ = "[object RegExp]", U = "[object Set]", x = "[object String]", L = "[object Undefined]", $ = "[object WeakMap]", W = "[object ArrayBuffer]", X = "[object DataView]", A = "[object Float32Array]", w = "[object Float64Array]", j = "[object Int8Array]", O = "[object Int16Array]", F = "[object Int32Array]", B = "[object Uint8Array]", V = "[object Uint8ClampedArray]", q = "[object Uint16Array]", K = "[object Uint32Array]", g = /[\\^$.*+?()[\]{}|]/g, he = /^\[object .+?Constructor\]$/, Me = /^(?:0|[1-9]\d*)$/, h = {};
675
+ h[A] = h[w] = h[j] = h[O] = h[F] = h[B] = h[V] = h[q] = h[K] = !0, h[l] = h[s] = h[W] = h[c] = h[X] = h[p] = h[m] = h[f] = h[b] = h[k] = h[z] = h[_] = h[U] = h[x] = h[$] = !1;
676
676
  var ge = typeof en == "object" && en && en.Object === Object && en, De = typeof self == "object" && self && self.Object === Object && self, re = ge || De || Function("return this")(), we = t && !t.nodeType && t, ve = we && !0 && e && !e.nodeType && e, Be = ve && ve.exports === we, Ae = Be && ge.process, Ke = function() {
677
677
  try {
678
678
  var d = ve && ve.require && ve.require("util").types;
@@ -824,18 +824,18 @@ dn.exports;
824
824
  return T.set(d, y), this.size += T.size == P ? 0 : 1, this;
825
825
  }
826
826
  Mt.prototype.clear = dl, Mt.prototype.delete = hl, Mt.prototype.get = gl, Mt.prototype.has = ml, Mt.prototype.set = yl;
827
- function bt(d) {
827
+ function xt(d) {
828
828
  var y = this.__data__ = new Ze(d);
829
829
  this.size = y.size;
830
830
  }
831
831
  function Ml() {
832
832
  this.__data__ = new Ze(), this.size = 0;
833
833
  }
834
- function bl(d) {
834
+ function xl(d) {
835
835
  var y = this.__data__, T = y.delete(d);
836
836
  return this.size = y.size, T;
837
837
  }
838
- function xl(d) {
838
+ function bl(d) {
839
839
  return this.__data__.get(d);
840
840
  }
841
841
  function wl(d) {
@@ -851,7 +851,7 @@ dn.exports;
851
851
  }
852
852
  return T.set(d, y), this.size = T.size, this;
853
853
  }
854
- bt.prototype.clear = Ml, bt.prototype.delete = bl, bt.prototype.get = xl, bt.prototype.has = wl, bt.prototype.set = vl;
854
+ xt.prototype.clear = Ml, xt.prototype.delete = xl, xt.prototype.get = bl, xt.prototype.has = wl, xt.prototype.set = vl;
855
855
  function Tl(d, y) {
856
856
  var T = Hn(d), P = !T && Yn(d), ne = !T && !P && li(d), se = !T && !P && !ne && ui(d), fe = T || P || ne || se, te = fe ? jt(d.length, String) : [], de = te.length;
857
857
  for (var Oe in d)
@@ -909,7 +909,7 @@ dn.exports;
909
909
  }
910
910
  function ii(d, y, T, P, ne) {
911
911
  d !== y && Il(y, function(se, fe) {
912
- if (ne || (ne = new bt()), ut(se))
912
+ if (ne || (ne = new xt()), ut(se))
913
913
  El(d, y, fe, T, ii, P, ne);
914
914
  else {
915
915
  var te = P ? P(Qn(d, fe), se, fe + "", d, y, ne) : void 0;
@@ -1013,7 +1013,7 @@ dn.exports;
1013
1013
  }
1014
1014
  function oi(d, y) {
1015
1015
  var T = typeof d;
1016
- return y = y ?? a, !!y && (T == "number" || T != "symbol" && ye.test(d)) && d > -1 && d % 1 == 0 && d < y;
1016
+ return y = y ?? a, !!y && (T == "number" || T != "symbol" && Me.test(d)) && d > -1 && d % 1 == 0 && d < y;
1017
1017
  }
1018
1018
  function Bl(d, y, T) {
1019
1019
  if (!ut(T))
@@ -1386,14 +1386,14 @@ var zo = { exports: {} };
1386
1386
  })(zo);
1387
1387
  var ks = zo.exports;
1388
1388
  const Lo = /* @__PURE__ */ nt(ks), js = 576, Es = (e) => {
1389
- const [t, n] = Me(), r = vt(() => {
1389
+ const [t, n] = ye(), r = vt(() => {
1390
1390
  n(
1391
1391
  window.matchMedia(
1392
1392
  `(max-width: ${e || js}px)`
1393
1393
  ).matches
1394
1394
  );
1395
1395
  }, [e]);
1396
- return xe(() => (r(), window.addEventListener("resize", r), () => window.removeEventListener("resize", r)), [r]), t;
1396
+ return be(() => (r(), window.addEventListener("resize", r), () => window.removeEventListener("resize", r)), [r]), t;
1397
1397
  }, rt = Es, Cs = 991;
1398
1398
  function wn({
1399
1399
  label: e,
@@ -1478,11 +1478,11 @@ const zs = 991, Ls = 1500, _s = `The parent container is wider than the chatbot
1478
1478
  eyes follow your mouse when you hover near it.`, Er = ({
1479
1479
  handleFloatingActionButtonClick: e
1480
1480
  }) => {
1481
- var m, f, v, x, k, M, z;
1481
+ var m, f, v, b, k, M, z;
1482
1482
  const { xpertKey: t, launchButton: n } = _e(Fe), r = !Le.get(
1483
1483
  `${t}-proactive-message-xpert-chatbot`
1484
- ), i = We(null), o = We(!1), a = r ? (m = n.animatedGraduate) == null ? void 0 : m.delayMs : ((f = n.animatedGraduate) == null ? void 0 : f.delayMs) * 2, [l, s] = Me(!1), u = rt(zs);
1485
- xe(() => {
1484
+ ), i = We(null), o = We(!1), a = r ? (m = n.animatedGraduate) == null ? void 0 : m.delayMs : ((f = n.animatedGraduate) == null ? void 0 : f.delayMs) * 2, [l, s] = ye(!1), u = rt(zs);
1485
+ be(() => {
1486
1486
  const _ = setTimeout(
1487
1487
  () => {
1488
1488
  s(!0);
@@ -1492,12 +1492,12 @@ eyes follow your mouse when you hover near it.`, Er = ({
1492
1492
  return () => {
1493
1493
  clearTimeout(_);
1494
1494
  };
1495
- }, [a]), xe(() => {
1495
+ }, [a]), be(() => {
1496
1496
  const E = (_) => {
1497
1497
  const U = window.matchMedia(
1498
1498
  `(max-width: ${Ls}px)`
1499
- ).matches, b = window.devicePixelRatio > 1.5;
1500
- if (!(o != null && o.current) || U || b)
1499
+ ).matches, x = window.devicePixelRatio > 1.5;
1500
+ if (!(o != null && o.current) || U || x)
1501
1501
  return;
1502
1502
  i.current.querySelectorAll(
1503
1503
  ".xpert_chatbot__animated_graduate__pupil"
@@ -1531,7 +1531,7 @@ eyes follow your mouse when you hover near it.`, Er = ({
1531
1531
  onClick: e,
1532
1532
  label: "Open XPERT Chatbot",
1533
1533
  className: "xpert-chatbot-button__animated_graduate__launch-button",
1534
- style: u ? { ...(x = (v = n.style) == null ? void 0 : v.mobile) == null ? void 0 : x.animatedGraduateExperiment } : { ...(k = n.style) == null ? void 0 : k.animatedGraduateExperiment },
1534
+ style: u ? { ...(b = (v = n.style) == null ? void 0 : v.mobile) == null ? void 0 : b.animatedGraduateExperiment } : { ...(k = n.style) == null ? void 0 : k.animatedGraduateExperiment },
1535
1535
  "aria-haspopup": "dialog",
1536
1536
  "aria-expanded": open,
1537
1537
  children: /* @__PURE__ */ N.jsx("div", { ref: i, children: /* @__PURE__ */ N.jsxs(
@@ -1975,9 +1975,9 @@ var Mi = {
1975
1975
  return Ut(t) && !t.shiftKey;
1976
1976
  }, uu = function(t) {
1977
1977
  return Ut(t) && t.shiftKey;
1978
- }, bi = function(t) {
1978
+ }, xi = function(t) {
1979
1979
  return setTimeout(t, 0);
1980
- }, xi = function(t, n) {
1980
+ }, bi = function(t, n) {
1981
1981
  var r = -1;
1982
1982
  return t.every(function(i, o) {
1983
1983
  return n(i) ? (r = o, !1) : !0;
@@ -2114,12 +2114,12 @@ var Mi = {
2114
2114
  * @returns {HTMLElement|undefined} The next tabbable node, if any.
2115
2115
  */
2116
2116
  nextTabbableNode: function(he) {
2117
- var ye = arguments.length > 1 && arguments[1] !== void 0 ? arguments[1] : !0, h = j.indexOf(he);
2118
- return h < 0 ? ye ? O.slice(O.indexOf(he) + 1).find(function(ge) {
2117
+ var Me = arguments.length > 1 && arguments[1] !== void 0 ? arguments[1] : !0, h = j.indexOf(he);
2118
+ return h < 0 ? Me ? O.slice(O.indexOf(he) + 1).find(function(ge) {
2119
2119
  return ct(ge);
2120
2120
  }) : O.slice(0, O.indexOf(he)).reverse().find(function(ge) {
2121
2121
  return ct(ge);
2122
- }) : j[h + (ye ? 1 : -1)];
2122
+ }) : j[h + (Me ? 1 : -1)];
2123
2123
  }
2124
2124
  };
2125
2125
  }), a.tabbableGroups = a.containerGroups.filter(function(w) {
@@ -2144,7 +2144,7 @@ var Mi = {
2144
2144
  preventScroll: !!o.preventScroll
2145
2145
  }), a.mostRecentlyFocusedNode = w, au(w) && w.select();
2146
2146
  }
2147
- }, x = function(w) {
2147
+ }, b = function(w) {
2148
2148
  var j = c("setReturnFocus", w);
2149
2149
  return j || (j === !1 ? !1 : w);
2150
2150
  }, k = function(w) {
@@ -2156,17 +2156,17 @@ var Mi = {
2156
2156
  if (q < 0)
2157
2157
  B ? V = a.tabbableGroups[a.tabbableGroups.length - 1].lastTabbableNode : V = a.tabbableGroups[0].firstTabbableNode;
2158
2158
  else if (B) {
2159
- var g = xi(a.tabbableGroups, function(re) {
2159
+ var g = bi(a.tabbableGroups, function(re) {
2160
2160
  var we = re.firstTabbableNode;
2161
2161
  return j === we;
2162
2162
  });
2163
2163
  if (g < 0 && (K.container === j || sn(j, o.tabbableOptions) && !ct(j, o.tabbableOptions) && !K.nextTabbableNode(j, !1)) && (g = q), g >= 0) {
2164
- var he = g === 0 ? a.tabbableGroups.length - 1 : g - 1, ye = a.tabbableGroups[he];
2165
- V = et(j) >= 0 ? ye.lastTabbableNode : ye.lastDomTabbableNode;
2164
+ var he = g === 0 ? a.tabbableGroups.length - 1 : g - 1, Me = a.tabbableGroups[he];
2165
+ V = et(j) >= 0 ? Me.lastTabbableNode : Me.lastDomTabbableNode;
2166
2166
  } else
2167
2167
  Ut(O) || (V = K.nextTabbableNode(j, !1));
2168
2168
  } else {
2169
- var h = xi(a.tabbableGroups, function(re) {
2169
+ var h = bi(a.tabbableGroups, function(re) {
2170
2170
  var we = re.lastTabbableNode;
2171
2171
  return j === we;
2172
2172
  });
@@ -2245,9 +2245,9 @@ var Mi = {
2245
2245
  }, U = function(w) {
2246
2246
  var j = nn(w);
2247
2247
  u(j, w) >= 0 || Lt(o.clickOutsideDeactivates, w) || Lt(o.allowOutsideClick, w) || (w.preventDefault(), w.stopImmediatePropagation());
2248
- }, b = function() {
2248
+ }, x = function() {
2249
2249
  if (a.active)
2250
- return Mi.activateTrap(i, l), a.delayInitialFocusTimer = o.delayInitialFocus ? bi(function() {
2250
+ return Mi.activateTrap(i, l), a.delayInitialFocusTimer = o.delayInitialFocus ? xi(function() {
2251
2251
  v(p());
2252
2252
  }) : v(p()), r.addEventListener("focusin", z, !0), r.addEventListener("mousedown", M, {
2253
2253
  capture: !0,
@@ -2294,7 +2294,7 @@ var Mi = {
2294
2294
  var j = s(w, "onActivate"), O = s(w, "onPostActivate"), F = s(w, "checkCanFocusTrap");
2295
2295
  F || m(), a.active = !0, a.paused = !1, a.nodeFocusedBeforeActivation = r.activeElement, j == null || j();
2296
2296
  var B = function() {
2297
- F && m(), b(), X(), O == null || O();
2297
+ F && m(), x(), X(), O == null || O();
2298
2298
  };
2299
2299
  return F ? (F(a.containers.concat()).then(B, B), this) : (B(), this);
2300
2300
  },
@@ -2310,11 +2310,11 @@ var Mi = {
2310
2310
  var O = s(j, "onDeactivate"), F = s(j, "onPostDeactivate"), B = s(j, "checkCanReturnFocus"), V = s(j, "returnFocus", "returnFocusOnDeactivate");
2311
2311
  O == null || O();
2312
2312
  var q = function() {
2313
- bi(function() {
2314
- V && v(x(a.nodeFocusedBeforeActivation)), F == null || F();
2313
+ xi(function() {
2314
+ V && v(b(a.nodeFocusedBeforeActivation)), F == null || F();
2315
2315
  });
2316
2316
  };
2317
- return V && B ? (B(x(a.nodeFocusedBeforeActivation)).then(q, q), this) : (q(), this);
2317
+ return V && B ? (B(b(a.nodeFocusedBeforeActivation)).then(q, q), this) : (q(), this);
2318
2318
  },
2319
2319
  pause: function(w) {
2320
2320
  if (a.paused || !a.active)
@@ -2326,7 +2326,7 @@ var Mi = {
2326
2326
  if (!a.paused || !a.active)
2327
2327
  return this;
2328
2328
  var j = s(w, "onUnpause"), O = s(w, "onPostUnpause");
2329
- return a.paused = !1, j == null || j(), m(), b(), X(), O == null || O(), this;
2329
+ return a.paused = !1, j == null || j(), m(), x(), X(), O == null || O(), this;
2330
2330
  },
2331
2331
  updateContainerElements: function(w) {
2332
2332
  var j = [].concat(w).filter(Boolean);
@@ -2372,7 +2372,7 @@ function pr(e, t) {
2372
2372
  }, pr(e, t);
2373
2373
  }
2374
2374
  function Mu(e) {
2375
- var t = xu();
2375
+ var t = bu();
2376
2376
  return function() {
2377
2377
  var r = Mn(e), i;
2378
2378
  if (t) {
@@ -2380,10 +2380,10 @@ function Mu(e) {
2380
2380
  i = Reflect.construct(r, arguments, o);
2381
2381
  } else
2382
2382
  i = r.apply(this, arguments);
2383
- return bu(this, i);
2383
+ return xu(this, i);
2384
2384
  };
2385
2385
  }
2386
- function bu(e, t) {
2386
+ function xu(e, t) {
2387
2387
  if (t && (Tt(t) === "object" || typeof t == "function"))
2388
2388
  return t;
2389
2389
  if (t !== void 0)
@@ -2395,7 +2395,7 @@ function Rt(e) {
2395
2395
  throw new ReferenceError("this hasn't been initialised - super() hasn't been called");
2396
2396
  return e;
2397
2397
  }
2398
- function xu() {
2398
+ function bu() {
2399
2399
  if (typeof Reflect > "u" || !Reflect.construct || Reflect.construct.sham)
2400
2400
  return !1;
2401
2401
  if (typeof Proxy == "function")
@@ -2736,13 +2736,13 @@ const qo = Object.freeze(
2736
2736
  width: 16,
2737
2737
  height: 16
2738
2738
  }
2739
- ), bn = Object.freeze({
2739
+ ), xn = Object.freeze({
2740
2740
  rotate: 0,
2741
2741
  vFlip: !1,
2742
2742
  hFlip: !1
2743
2743
  }), Sr = Object.freeze({
2744
2744
  ...qo,
2745
- ...bn
2745
+ ...xn
2746
2746
  }), fr = Object.freeze({
2747
2747
  ...Sr,
2748
2748
  body: "",
@@ -2757,7 +2757,7 @@ function Cu(e, t) {
2757
2757
  function vi(e, t) {
2758
2758
  const n = Cu(e, t);
2759
2759
  for (const r in fr)
2760
- r in bn ? r in e && !(r in n) && (n[r] = bn[r]) : r in t ? n[r] = t[r] : r in e && (n[r] = e[r]);
2760
+ r in xn ? r in e && !(r in n) && (n[r] = xn[r]) : r in t ? n[r] = t[r] : r in e && (n[r] = e[r]);
2761
2761
  return n;
2762
2762
  }
2763
2763
  function Au(e, t) {
@@ -2943,7 +2943,7 @@ const Zo = Object.freeze({
2943
2943
  // Dimensions
2944
2944
  ...Zo,
2945
2945
  // Transformations
2946
- ...bn
2946
+ ...xn
2947
2947
  }), Pu = /(-?[0-9.]*[0-9]+[0-9.]*)/g, Ru = /^-?[0-9.]*[0-9]+[0-9.]*$/g;
2948
2948
  function Ii(e, t, n) {
2949
2949
  if (t === 1)
@@ -3007,9 +3007,9 @@ function Hu(e, t) {
3007
3007
  height: n.height
3008
3008
  };
3009
3009
  let o = n.body;
3010
- [n, r].forEach((x) => {
3011
- const k = [], M = x.hFlip, z = x.vFlip;
3012
- let E = x.rotate;
3010
+ [n, r].forEach((b) => {
3011
+ const k = [], M = b.hFlip, z = b.vFlip;
3012
+ let E = b.rotate;
3013
3013
  M ? z ? E += 2 : (k.push(
3014
3014
  "translate(" + (i.width + i.left).toString() + " " + (0 - i.top).toString() + ")"
3015
3015
  ), k.push("scale(-1 1)"), i.top = i.left = 0) : z && (k.push(
@@ -3042,8 +3042,8 @@ function Hu(e, t) {
3042
3042
  const a = r.width, l = r.height, s = i.width, u = i.height;
3043
3043
  let c, p;
3044
3044
  a === null ? (p = l === null ? "1em" : l === "auto" ? u : l, c = Ii(p, s / u)) : (c = a === "auto" ? s : a, p = l === null ? Ii(c, u / s) : l === "auto" ? u : l);
3045
- const m = {}, f = (x, k) => {
3046
- Yu(k) || (m[x] = k.toString());
3045
+ const m = {}, f = (b, k) => {
3046
+ Yu(k) || (m[b] = k.toString());
3047
3047
  };
3048
3048
  f("width", c), f("height", p);
3049
3049
  const v = [i.left, i.top, s, u];
@@ -3330,12 +3330,12 @@ function cc(e, t, n, r) {
3330
3330
  const i = e.resources.length, o = e.random ? Math.floor(Math.random() * i) : e.index;
3331
3331
  let a;
3332
3332
  if (e.random) {
3333
- let b = e.resources.slice(0);
3334
- for (a = []; b.length > 1; ) {
3335
- const L = Math.floor(Math.random() * b.length);
3336
- a.push(b[L]), b = b.slice(0, L).concat(b.slice(L + 1));
3333
+ let x = e.resources.slice(0);
3334
+ for (a = []; x.length > 1; ) {
3335
+ const L = Math.floor(Math.random() * x.length);
3336
+ a.push(x[L]), x = x.slice(0, L).concat(x.slice(L + 1));
3337
3337
  }
3338
- a = a.concat(b);
3338
+ a = a.concat(x);
3339
3339
  } else
3340
3340
  a = e.resources.slice(o).concat(e.resources.slice(0, o));
3341
3341
  const l = Date.now();
@@ -3344,13 +3344,13 @@ function cc(e, t, n, r) {
3344
3344
  function v() {
3345
3345
  p && (clearTimeout(p), p = null);
3346
3346
  }
3347
- function x() {
3348
- s === "pending" && (s = "aborted"), v(), m.forEach((b) => {
3349
- b.status === "pending" && (b.status = "aborted");
3347
+ function b() {
3348
+ s === "pending" && (s = "aborted"), v(), m.forEach((x) => {
3349
+ x.status === "pending" && (x.status = "aborted");
3350
3350
  }), m = [];
3351
3351
  }
3352
- function k(b, L) {
3353
- L && (f = []), typeof b == "function" && f.push(b);
3352
+ function k(x, L) {
3353
+ L && (f = []), typeof x == "function" && f.push(x);
3354
3354
  }
3355
3355
  function M() {
3356
3356
  return {
@@ -3360,22 +3360,22 @@ function cc(e, t, n, r) {
3360
3360
  queriesSent: u,
3361
3361
  queriesPending: m.length,
3362
3362
  subscribe: k,
3363
- abort: x
3363
+ abort: b
3364
3364
  };
3365
3365
  }
3366
3366
  function z() {
3367
- s = "failed", f.forEach((b) => {
3368
- b(void 0, c);
3367
+ s = "failed", f.forEach((x) => {
3368
+ x(void 0, c);
3369
3369
  });
3370
3370
  }
3371
3371
  function E() {
3372
- m.forEach((b) => {
3373
- b.status === "pending" && (b.status = "aborted");
3372
+ m.forEach((x) => {
3373
+ x.status === "pending" && (x.status = "aborted");
3374
3374
  }), m = [];
3375
3375
  }
3376
- function _(b, L, $) {
3376
+ function _(x, L, $) {
3377
3377
  const W = L !== "success";
3378
- switch (m = m.filter((X) => X !== b), s) {
3378
+ switch (m = m.filter((X) => X !== x), s) {
3379
3379
  case "pending":
3380
3380
  break;
3381
3381
  case "failed":
@@ -3394,7 +3394,7 @@ function cc(e, t, n, r) {
3394
3394
  return;
3395
3395
  }
3396
3396
  if (v(), E(), !e.random) {
3397
- const X = e.resources.indexOf(b.resource);
3397
+ const X = e.resources.indexOf(x.resource);
3398
3398
  X !== -1 && X !== e.index && (e.index = X);
3399
3399
  }
3400
3400
  s = "completed", f.forEach((X) => {
@@ -3405,8 +3405,8 @@ function cc(e, t, n, r) {
3405
3405
  if (s !== "pending")
3406
3406
  return;
3407
3407
  v();
3408
- const b = a.shift();
3409
- if (b === void 0) {
3408
+ const x = a.shift();
3409
+ if (x === void 0) {
3410
3410
  if (m.length) {
3411
3411
  p = setTimeout(() => {
3412
3412
  v(), s === "pending" && (E(), z());
@@ -3418,12 +3418,12 @@ function cc(e, t, n, r) {
3418
3418
  }
3419
3419
  const L = {
3420
3420
  status: "pending",
3421
- resource: b,
3421
+ resource: x,
3422
3422
  callback: ($, W) => {
3423
3423
  _(L, $, W);
3424
3424
  }
3425
3425
  };
3426
- m.push(L), u++, p = setTimeout(U, e.rotate), n(b, t, L.callback);
3426
+ m.push(L), u++, p = setTimeout(U, e.rotate), n(x, t, L.callback);
3427
3427
  }
3428
3428
  return setTimeout(U), M;
3429
3429
  }
@@ -3635,7 +3635,7 @@ function Mc(e) {
3635
3635
  e.iconsLoaderFlag = !1, oc(e);
3636
3636
  }));
3637
3637
  }
3638
- function bc(e, t) {
3638
+ function xc(e, t) {
3639
3639
  e.iconsToLoad ? e.iconsToLoad = e.iconsToLoad.concat(t).sort() : e.iconsToLoad = t, e.iconsQueueFlag || (e.iconsQueueFlag = !0, setTimeout(() => {
3640
3640
  e.iconsQueueFlag = !1;
3641
3641
  const { provider: n, prefix: r } = e, i = e.iconsToLoad;
@@ -3669,7 +3669,7 @@ function bc(e, t) {
3669
3669
  });
3670
3670
  }));
3671
3671
  }
3672
- const xc = (e, t) => {
3672
+ const bc = (e, t) => {
3673
3673
  const n = sc(e, !0, Go()), r = ic(n);
3674
3674
  if (!r.pending.length) {
3675
3675
  let s = !0;
@@ -3698,7 +3698,7 @@ const xc = (e, t) => {
3698
3698
  f.has(p) || (f.add(p), i[u][c].push(p));
3699
3699
  }), o.forEach((s) => {
3700
3700
  const { provider: u, prefix: c } = s;
3701
- i[u][c].length && bc(s, i[u][c]);
3701
+ i[u][c].length && xc(s, i[u][c]);
3702
3702
  }), t ? lc(t, r, o) : Ai;
3703
3703
  };
3704
3704
  function wc(e, t) {
@@ -3880,14 +3880,14 @@ const zc = (e, t, n) => {
3880
3880
  __html: Cc(Wu(u.body, M ? () => M + "ID" + k++ : "iconifyReact"))
3881
3881
  }, sr("svg", s);
3882
3882
  }
3883
- const { body: p, width: m, height: f } = e, v = o === "mask" || (o === "bg" ? !1 : p.indexOf("currentColor") !== -1), x = Ic(p, {
3883
+ const { body: p, width: m, height: f } = e, v = o === "mask" || (o === "bg" ? !1 : p.indexOf("currentColor") !== -1), b = Ic(p, {
3884
3884
  ...c,
3885
3885
  width: m + "",
3886
3886
  height: f + ""
3887
3887
  });
3888
3888
  return s.style = {
3889
3889
  ...a,
3890
- "--svg": jc(x),
3890
+ "--svg": jc(b),
3891
3891
  width: zi(c.width),
3892
3892
  height: zi(c.height),
3893
3893
  ...Sc,
@@ -3930,7 +3930,7 @@ if (typeof document < "u" && typeof window < "u") {
3930
3930
  }
3931
3931
  }
3932
3932
  function sa(e) {
3933
- const [t, n] = Me(!!e.ssr), [r, i] = Me({});
3933
+ const [t, n] = ye(!!e.ssr), [r, i] = ye({});
3934
3934
  function o(f) {
3935
3935
  if (f) {
3936
3936
  const v = e.icon;
@@ -3939,18 +3939,18 @@ function sa(e) {
3939
3939
  name: "",
3940
3940
  data: v
3941
3941
  };
3942
- const x = Ni(v);
3943
- if (x)
3942
+ const b = Ni(v);
3943
+ if (b)
3944
3944
  return {
3945
3945
  name: v,
3946
- data: x
3946
+ data: b
3947
3947
  };
3948
3948
  }
3949
3949
  return {
3950
3950
  name: ""
3951
3951
  };
3952
3952
  }
3953
- const [a, l] = Me(o(!!e.ssr));
3953
+ const [a, l] = ye(o(!!e.ssr));
3954
3954
  function s() {
3955
3955
  const f = r.callback;
3956
3956
  f && (f(), i({}));
@@ -3969,20 +3969,20 @@ function sa(e) {
3969
3969
  });
3970
3970
  return;
3971
3971
  }
3972
- const x = Ni(v);
3972
+ const b = Ni(v);
3973
3973
  if (u({
3974
3974
  name: v,
3975
- data: x
3975
+ data: b
3976
3976
  }))
3977
- if (x === void 0) {
3978
- const k = xc([v], c);
3977
+ if (b === void 0) {
3978
+ const k = bc([v], c);
3979
3979
  i({
3980
3980
  callback: k
3981
3981
  });
3982
3982
  } else
3983
- x && ((f = e.onLoad) === null || f === void 0 || f.call(e, v));
3983
+ b && ((f = e.onLoad) === null || f === void 0 || f.call(e, v));
3984
3984
  }
3985
- xe(() => (n(!0), s), []), xe(() => {
3985
+ be(() => (n(!0), s), []), be(() => {
3986
3986
  t && c();
3987
3987
  }, [e.icon, t]);
3988
3988
  const { name: p, data: m } = a;
@@ -4165,7 +4165,7 @@ function pa({
4165
4165
  setIsMounted: r,
4166
4166
  onClose: i
4167
4167
  }) {
4168
- var s, u, c, p, m, f, v, x, k;
4168
+ var s, u, c, p, m, f, v, b, k;
4169
4169
  const { primaryColor: o, conversationScreen: a } = _e(Fe), l = rt(Rc);
4170
4170
  return /* @__PURE__ */ N.jsxs(
4171
4171
  "div",
@@ -4222,7 +4222,7 @@ function pa({
4222
4222
  className: "xpert-chatbot-popup__header_container",
4223
4223
  style: {
4224
4224
  right: 0,
4225
- background: ((k = (x = a.header.container) == null ? void 0 : x.style) == null ? void 0 : k.backgroun) || o
4225
+ background: ((k = (b = a.header.container) == null ? void 0 : b.style) == null ? void 0 : k.backgroun) || o
4226
4226
  }
4227
4227
  }
4228
4228
  )
@@ -4250,7 +4250,7 @@ function Ur({
4250
4250
  userInput: u
4251
4251
  }) {
4252
4252
  const { primaryColor: c } = _e(Fe);
4253
- return xe(() => {
4253
+ return be(() => {
4254
4254
  var p;
4255
4255
  (o || a) && ((p = l.current) == null || p.focus());
4256
4256
  }, [a, o, l]), /* @__PURE__ */ N.jsxs("div", { className: "xpert-chatbot-popup__input--group", style: e, children: [
@@ -4341,13 +4341,13 @@ var Bc = function(t) {
4341
4341
  };
4342
4342
  const fa = /* @__PURE__ */ nt(Bc);
4343
4343
  function Yt(e) {
4344
- return !e || typeof e != "object" ? "" : "position" in e || "type" in e ? _i(e.position) : "start" in e || "end" in e ? _i(e) : "line" in e || "column" in e ? br(e) : "";
4344
+ return !e || typeof e != "object" ? "" : "position" in e || "type" in e ? _i(e.position) : "start" in e || "end" in e ? _i(e) : "line" in e || "column" in e ? xr(e) : "";
4345
4345
  }
4346
- function br(e) {
4346
+ function xr(e) {
4347
4347
  return Fi(e && e.line) + ":" + Fi(e && e.column);
4348
4348
  }
4349
4349
  function _i(e) {
4350
- return br(e && e.start) + "-" + br(e && e.end);
4350
+ return xr(e && e.start) + "-" + xr(e && e.end);
4351
4351
  }
4352
4352
  function Fi(e) {
4353
4353
  return e && typeof e == "number" ? e : 1;
@@ -4514,7 +4514,7 @@ const Wc = { cwd: Gc };
4514
4514
  function Gc() {
4515
4515
  return "/";
4516
4516
  }
4517
- function xr(e) {
4517
+ function br(e) {
4518
4518
  return e !== null && typeof e == "object" && // @ts-expect-error: indexable.
4519
4519
  e.href && // @ts-expect-error: indexable.
4520
4520
  e.origin;
@@ -4522,7 +4522,7 @@ function xr(e) {
4522
4522
  function Zc(e) {
4523
4523
  if (typeof e == "string")
4524
4524
  e = new URL(e);
4525
- else if (!xr(e)) {
4525
+ else if (!br(e)) {
4526
4526
  const t = new TypeError(
4527
4527
  'The "path" argument must be of type string or an instance of URL. Received `' + e + "`"
4528
4528
  );
@@ -4581,7 +4581,7 @@ class da {
4581
4581
  */
4582
4582
  constructor(t) {
4583
4583
  let n;
4584
- t ? typeof t == "string" || Xc(t) ? n = { value: t } : xr(t) ? n = { path: t } : n = t : n = {}, this.data = {}, this.messages = [], this.history = [], this.cwd = Wc.cwd(), this.value, this.stored, this.result, this.map;
4584
+ t ? typeof t == "string" || Xc(t) ? n = { value: t } : br(t) ? n = { path: t } : n = t : n = {}, this.data = {}, this.messages = [], this.history = [], this.cwd = Wc.cwd(), this.value, this.stored, this.result, this.map;
4585
4585
  let r = -1;
4586
4586
  for (; ++r < Kn.length; ) {
4587
4587
  const o = Kn[r];
@@ -4609,7 +4609,7 @@ class da {
4609
4609
  * @param {string | URL} path
4610
4610
  */
4611
4611
  set path(t) {
4612
- xr(t) && (t = Zc(t)), Jn(t, "path"), this.path !== t && this.history.push(t);
4612
+ br(t) && (t = Zc(t)), Jn(t, "path"), this.path !== t && this.history.push(t);
4613
4613
  }
4614
4614
  /**
4615
4615
  * Get the parent path (example: `'~'`).
@@ -4881,125 +4881,125 @@ function ma() {
4881
4881
  let n = {}, r, i = -1;
4882
4882
  return o.data = a, o.Parser = void 0, o.Compiler = void 0, o.freeze = l, o.attachers = t, o.use = s, o.parse = u, o.stringify = c, o.run = p, o.runSync = m, o.process = f, o.processSync = v, o;
4883
4883
  function o() {
4884
- const x = ma();
4884
+ const b = ma();
4885
4885
  let k = -1;
4886
4886
  for (; ++k < t.length; )
4887
- x.use(...t[k]);
4888
- return x.data(qi(!0, {}, n)), x;
4887
+ b.use(...t[k]);
4888
+ return b.data(qi(!0, {}, n)), b;
4889
4889
  }
4890
- function a(x, k) {
4891
- return typeof x == "string" ? arguments.length === 2 ? (nr("data", r), n[x] = k, o) : ga.call(n, x) && n[x] || null : x ? (nr("data", r), n = x, o) : n;
4890
+ function a(b, k) {
4891
+ return typeof b == "string" ? arguments.length === 2 ? (nr("data", r), n[b] = k, o) : ga.call(n, b) && n[b] || null : b ? (nr("data", r), n = b, o) : n;
4892
4892
  }
4893
4893
  function l() {
4894
4894
  if (r)
4895
4895
  return o;
4896
4896
  for (; ++i < t.length; ) {
4897
- const [x, ...k] = t[i];
4897
+ const [b, ...k] = t[i];
4898
4898
  if (k[0] === !1)
4899
4899
  continue;
4900
4900
  k[0] === !0 && (k[0] = void 0);
4901
- const M = x.call(o, ...k);
4901
+ const M = b.call(o, ...k);
4902
4902
  typeof M == "function" && e.use(M);
4903
4903
  }
4904
4904
  return r = !0, i = Number.POSITIVE_INFINITY, o;
4905
4905
  }
4906
- function s(x, ...k) {
4906
+ function s(b, ...k) {
4907
4907
  let M;
4908
- if (nr("use", r), x != null)
4909
- if (typeof x == "function")
4910
- U(x, ...k);
4911
- else if (typeof x == "object")
4912
- Array.isArray(x) ? _(x) : E(x);
4913
- else
4914
- throw new TypeError("Expected usable value, not `" + x + "`");
4915
- return M && (n.settings = Object.assign(n.settings || {}, M)), o;
4916
- function z(b) {
4908
+ if (nr("use", r), b != null)
4917
4909
  if (typeof b == "function")
4918
- U(b);
4910
+ U(b, ...k);
4919
4911
  else if (typeof b == "object")
4920
- if (Array.isArray(b)) {
4921
- const [L, ...$] = b;
4912
+ Array.isArray(b) ? _(b) : E(b);
4913
+ else
4914
+ throw new TypeError("Expected usable value, not `" + b + "`");
4915
+ return M && (n.settings = Object.assign(n.settings || {}, M)), o;
4916
+ function z(x) {
4917
+ if (typeof x == "function")
4918
+ U(x);
4919
+ else if (typeof x == "object")
4920
+ if (Array.isArray(x)) {
4921
+ const [L, ...$] = x;
4922
4922
  U(L, ...$);
4923
4923
  } else
4924
- E(b);
4924
+ E(x);
4925
4925
  else
4926
- throw new TypeError("Expected usable value, not `" + b + "`");
4926
+ throw new TypeError("Expected usable value, not `" + x + "`");
4927
4927
  }
4928
- function E(b) {
4929
- _(b.plugins), b.settings && (M = Object.assign(M || {}, b.settings));
4928
+ function E(x) {
4929
+ _(x.plugins), x.settings && (M = Object.assign(M || {}, x.settings));
4930
4930
  }
4931
- function _(b) {
4931
+ function _(x) {
4932
4932
  let L = -1;
4933
- if (b != null)
4934
- if (Array.isArray(b))
4935
- for (; ++L < b.length; ) {
4936
- const $ = b[L];
4933
+ if (x != null)
4934
+ if (Array.isArray(x))
4935
+ for (; ++L < x.length; ) {
4936
+ const $ = x[L];
4937
4937
  z($);
4938
4938
  }
4939
4939
  else
4940
- throw new TypeError("Expected a list of plugins, not `" + b + "`");
4940
+ throw new TypeError("Expected a list of plugins, not `" + x + "`");
4941
4941
  }
4942
- function U(b, L) {
4942
+ function U(x, L) {
4943
4943
  let $ = -1, W;
4944
4944
  for (; ++$ < t.length; )
4945
- if (t[$][0] === b) {
4945
+ if (t[$][0] === x) {
4946
4946
  W = t[$];
4947
4947
  break;
4948
4948
  }
4949
4949
  W ? (wr(W[1]) && wr(L) && (L = qi(!0, W[1], L)), W[1] = L) : t.push([...arguments]);
4950
4950
  }
4951
4951
  }
4952
- function u(x) {
4952
+ function u(b) {
4953
4953
  o.freeze();
4954
- const k = Pt(x), M = o.Parser;
4954
+ const k = Pt(b), M = o.Parser;
4955
4955
  return er("parse", M), Vi(M, "parse") ? new M(String(k), k).parse() : M(String(k), k);
4956
4956
  }
4957
- function c(x, k) {
4957
+ function c(b, k) {
4958
4958
  o.freeze();
4959
4959
  const M = Pt(k), z = o.Compiler;
4960
- return tr("stringify", z), Wi(x), Vi(z, "compile") ? new z(x, M).compile() : z(x, M);
4960
+ return tr("stringify", z), Wi(b), Vi(z, "compile") ? new z(b, M).compile() : z(b, M);
4961
4961
  }
4962
- function p(x, k, M) {
4963
- if (Wi(x), o.freeze(), !M && typeof k == "function" && (M = k, k = void 0), !M)
4962
+ function p(b, k, M) {
4963
+ if (Wi(b), o.freeze(), !M && typeof k == "function" && (M = k, k = void 0), !M)
4964
4964
  return new Promise(z);
4965
4965
  z(null, M);
4966
4966
  function z(E, _) {
4967
- e.run(x, Pt(k), U);
4968
- function U(b, L, $) {
4969
- L = L || x, b ? _(b) : E ? E(L) : M(null, L, $);
4967
+ e.run(b, Pt(k), U);
4968
+ function U(x, L, $) {
4969
+ L = L || b, x ? _(x) : E ? E(L) : M(null, L, $);
4970
4970
  }
4971
4971
  }
4972
4972
  }
4973
- function m(x, k) {
4973
+ function m(b, k) {
4974
4974
  let M, z;
4975
- return o.run(x, k, E), Gi("runSync", "run", z), M;
4975
+ return o.run(b, k, E), Gi("runSync", "run", z), M;
4976
4976
  function E(_, U) {
4977
4977
  Ri(_), M = U, z = !0;
4978
4978
  }
4979
4979
  }
4980
- function f(x, k) {
4980
+ function f(b, k) {
4981
4981
  if (o.freeze(), er("process", o.Parser), tr("process", o.Compiler), !k)
4982
4982
  return new Promise(M);
4983
4983
  M(null, k);
4984
4984
  function M(z, E) {
4985
- const _ = Pt(x);
4986
- o.run(o.parse(_), _, (b, L, $) => {
4987
- if (b || !L || !$)
4988
- U(b);
4985
+ const _ = Pt(b);
4986
+ o.run(o.parse(_), _, (x, L, $) => {
4987
+ if (x || !L || !$)
4988
+ U(x);
4989
4989
  else {
4990
4990
  const W = o.stringify(L, $);
4991
- W == null || (op(W) ? $.value = W : $.result = W), U(b, $);
4991
+ W == null || (op(W) ? $.value = W : $.result = W), U(x, $);
4992
4992
  }
4993
4993
  });
4994
- function U(b, L) {
4995
- b || !L ? E(b) : z ? z(L) : k(null, L);
4994
+ function U(x, L) {
4995
+ x || !L ? E(x) : z ? z(L) : k(null, L);
4996
4996
  }
4997
4997
  }
4998
4998
  }
4999
- function v(x) {
4999
+ function v(b) {
5000
5000
  let k;
5001
5001
  o.freeze(), er("processSync", o.Parser), tr("processSync", o.Compiler);
5002
- const M = Pt(x);
5002
+ const M = Pt(b);
5003
5003
  return o.process(M, z), Gi("processSync", "process", k), M;
5004
5004
  function z(E) {
5005
5005
  k = !0, Ri(E);
@@ -5162,9 +5162,9 @@ function pe(e, t, n, r) {
5162
5162
  }
5163
5163
  }
5164
5164
  const Mp = {
5165
- tokenize: bp
5165
+ tokenize: xp
5166
5166
  };
5167
- function bp(e) {
5167
+ function xp(e) {
5168
5168
  const t = e.attempt(
5169
5169
  this.parser.constructs.contentInitial,
5170
5170
  r,
@@ -5197,7 +5197,7 @@ function bp(e) {
5197
5197
  return G(l) ? (e.consume(l), e.exit("chunkText"), o) : (e.consume(l), a);
5198
5198
  }
5199
5199
  }
5200
- const xp = {
5200
+ const bp = {
5201
5201
  tokenize: wp
5202
5202
  }, Xi = {
5203
5203
  tokenize: vp
@@ -5221,16 +5221,16 @@ function wp(e) {
5221
5221
  if (r++, t.containerState._closeFlow) {
5222
5222
  t.containerState._closeFlow = void 0, i && z();
5223
5223
  const _ = t.events.length;
5224
- let U = _, b;
5224
+ let U = _, x;
5225
5225
  for (; U--; )
5226
5226
  if (t.events[U][0] === "exit" && t.events[U][1].type === "chunkFlow") {
5227
- b = t.events[U][1].end;
5227
+ x = t.events[U][1].end;
5228
5228
  break;
5229
5229
  }
5230
5230
  M(r);
5231
5231
  let L = _;
5232
5232
  for (; L < t.events.length; )
5233
- t.events[L][1].end = Object.assign({}, b), L++;
5233
+ t.events[L][1].end = Object.assign({}, x), L++;
5234
5234
  return Ge(
5235
5235
  t.events,
5236
5236
  U + 1,
@@ -5279,25 +5279,25 @@ function wp(e) {
5279
5279
  contentType: "flow",
5280
5280
  previous: o,
5281
5281
  _tokenizer: i
5282
- }), x(E);
5282
+ }), b(E);
5283
5283
  }
5284
- function x(E) {
5284
+ function b(E) {
5285
5285
  if (E === null) {
5286
5286
  k(e.exit("chunkFlow"), !0), M(0), e.consume(E);
5287
5287
  return;
5288
5288
  }
5289
- return G(E) ? (e.consume(E), k(e.exit("chunkFlow")), r = 0, t.interrupt = void 0, l) : (e.consume(E), x);
5289
+ return G(E) ? (e.consume(E), k(e.exit("chunkFlow")), r = 0, t.interrupt = void 0, l) : (e.consume(E), b);
5290
5290
  }
5291
5291
  function k(E, _) {
5292
5292
  const U = t.sliceStream(E);
5293
5293
  if (_ && U.push(null), E.previous = o, o && (o.next = E), o = E, i.defineSkip(E.start), i.write(U), t.parser.lazy[E.start.line]) {
5294
- let b = i.events.length;
5295
- for (; b--; )
5294
+ let x = i.events.length;
5295
+ for (; x--; )
5296
5296
  if (
5297
5297
  // The token starts before the line ending…
5298
- i.events[b][1].start.offset < a && // …and either is not ended yet…
5299
- (!i.events[b][1].end || // …or ends after it.
5300
- i.events[b][1].end.offset > a)
5298
+ i.events[x][1].start.offset < a && // …and either is not ended yet…
5299
+ (!i.events[x][1].end || // …or ends after it.
5300
+ i.events[x][1].end.offset > a)
5301
5301
  )
5302
5302
  return;
5303
5303
  const L = t.events.length;
@@ -5310,14 +5310,14 @@ function wp(e) {
5310
5310
  }
5311
5311
  W = !0;
5312
5312
  }
5313
- for (M(r), b = L; b < t.events.length; )
5314
- t.events[b][1].end = Object.assign({}, X), b++;
5313
+ for (M(r), x = L; x < t.events.length; )
5314
+ t.events[x][1].end = Object.assign({}, X), x++;
5315
5315
  Ge(
5316
5316
  t.events,
5317
5317
  $ + 1,
5318
5318
  0,
5319
5319
  t.events.slice(L)
5320
- ), t.events.length = b;
5320
+ ), t.events.length = x;
5321
5321
  }
5322
5322
  }
5323
5323
  function M(E) {
@@ -5529,7 +5529,7 @@ function Ep(e, t, n) {
5529
5529
  function Cp(e) {
5530
5530
  e.exit("blockQuote");
5531
5531
  }
5532
- const ba = {
5532
+ const xa = {
5533
5533
  name: "characterEscape",
5534
5534
  tokenize: Ap
5535
5535
  };
@@ -5549,7 +5549,7 @@ function Qr(e) {
5549
5549
  const n = to.textContent;
5550
5550
  return n.charCodeAt(n.length - 1) === 59 && e !== "semi" || n === t ? !1 : n;
5551
5551
  }
5552
- const xa = {
5552
+ const ba = {
5553
5553
  name: "characterReference",
5554
5554
  tokenize: Sp
5555
5555
  };
@@ -5589,77 +5589,77 @@ function Op(e, t, n) {
5589
5589
  };
5590
5590
  let o = 0, a = 0, l;
5591
5591
  return s;
5592
- function s(b) {
5593
- return u(b);
5592
+ function s(x) {
5593
+ return u(x);
5594
5594
  }
5595
- function u(b) {
5595
+ function u(x) {
5596
5596
  const L = r.events[r.events.length - 1];
5597
- return o = L && L[1].type === "linePrefix" ? L[2].sliceSerialize(L[1], !0).length : 0, l = b, e.enter("codeFenced"), e.enter("codeFencedFence"), e.enter("codeFencedFenceSequence"), c(b);
5597
+ return o = L && L[1].type === "linePrefix" ? L[2].sliceSerialize(L[1], !0).length : 0, l = x, e.enter("codeFenced"), e.enter("codeFencedFence"), e.enter("codeFencedFenceSequence"), c(x);
5598
5598
  }
5599
- function c(b) {
5600
- return b === l ? (a++, e.consume(b), c) : a < 3 ? n(b) : (e.exit("codeFencedFenceSequence"), ie(b) ? pe(e, p, "whitespace")(b) : p(b));
5599
+ function c(x) {
5600
+ return x === l ? (a++, e.consume(x), c) : a < 3 ? n(x) : (e.exit("codeFencedFenceSequence"), ie(x) ? pe(e, p, "whitespace")(x) : p(x));
5601
5601
  }
5602
- function p(b) {
5603
- return b === null || G(b) ? (e.exit("codeFencedFence"), r.interrupt ? t(b) : e.check(no, x, _)(b)) : (e.enter("codeFencedFenceInfo"), e.enter("chunkString", {
5602
+ function p(x) {
5603
+ return x === null || G(x) ? (e.exit("codeFencedFence"), r.interrupt ? t(x) : e.check(no, b, _)(x)) : (e.enter("codeFencedFenceInfo"), e.enter("chunkString", {
5604
5604
  contentType: "string"
5605
- }), m(b));
5605
+ }), m(x));
5606
5606
  }
5607
- function m(b) {
5608
- return b === null || G(b) ? (e.exit("chunkString"), e.exit("codeFencedFenceInfo"), p(b)) : ie(b) ? (e.exit("chunkString"), e.exit("codeFencedFenceInfo"), pe(e, f, "whitespace")(b)) : b === 96 && b === l ? n(b) : (e.consume(b), m);
5607
+ function m(x) {
5608
+ return x === null || G(x) ? (e.exit("chunkString"), e.exit("codeFencedFenceInfo"), p(x)) : ie(x) ? (e.exit("chunkString"), e.exit("codeFencedFenceInfo"), pe(e, f, "whitespace")(x)) : x === 96 && x === l ? n(x) : (e.consume(x), m);
5609
5609
  }
5610
- function f(b) {
5611
- return b === null || G(b) ? p(b) : (e.enter("codeFencedFenceMeta"), e.enter("chunkString", {
5610
+ function f(x) {
5611
+ return x === null || G(x) ? p(x) : (e.enter("codeFencedFenceMeta"), e.enter("chunkString", {
5612
5612
  contentType: "string"
5613
- }), v(b));
5613
+ }), v(x));
5614
5614
  }
5615
- function v(b) {
5616
- return b === null || G(b) ? (e.exit("chunkString"), e.exit("codeFencedFenceMeta"), p(b)) : b === 96 && b === l ? n(b) : (e.consume(b), v);
5615
+ function v(x) {
5616
+ return x === null || G(x) ? (e.exit("chunkString"), e.exit("codeFencedFenceMeta"), p(x)) : x === 96 && x === l ? n(x) : (e.consume(x), v);
5617
5617
  }
5618
- function x(b) {
5619
- return e.attempt(i, _, k)(b);
5618
+ function b(x) {
5619
+ return e.attempt(i, _, k)(x);
5620
5620
  }
5621
- function k(b) {
5622
- return e.enter("lineEnding"), e.consume(b), e.exit("lineEnding"), M;
5621
+ function k(x) {
5622
+ return e.enter("lineEnding"), e.consume(x), e.exit("lineEnding"), M;
5623
5623
  }
5624
- function M(b) {
5625
- return o > 0 && ie(b) ? pe(
5624
+ function M(x) {
5625
+ return o > 0 && ie(x) ? pe(
5626
5626
  e,
5627
5627
  z,
5628
5628
  "linePrefix",
5629
5629
  o + 1
5630
- )(b) : z(b);
5630
+ )(x) : z(x);
5631
5631
  }
5632
- function z(b) {
5633
- return b === null || G(b) ? e.check(no, x, _)(b) : (e.enter("codeFlowValue"), E(b));
5632
+ function z(x) {
5633
+ return x === null || G(x) ? e.check(no, b, _)(x) : (e.enter("codeFlowValue"), E(x));
5634
5634
  }
5635
- function E(b) {
5636
- return b === null || G(b) ? (e.exit("codeFlowValue"), z(b)) : (e.consume(b), E);
5635
+ function E(x) {
5636
+ return x === null || G(x) ? (e.exit("codeFlowValue"), z(x)) : (e.consume(x), E);
5637
5637
  }
5638
- function _(b) {
5639
- return e.exit("codeFenced"), t(b);
5638
+ function _(x) {
5639
+ return e.exit("codeFenced"), t(x);
5640
5640
  }
5641
- function U(b, L, $) {
5641
+ function U(x, L, $) {
5642
5642
  let W = 0;
5643
5643
  return X;
5644
5644
  function X(F) {
5645
- return b.enter("lineEnding"), b.consume(F), b.exit("lineEnding"), A;
5645
+ return x.enter("lineEnding"), x.consume(F), x.exit("lineEnding"), A;
5646
5646
  }
5647
5647
  function A(F) {
5648
- return b.enter("codeFencedFence"), ie(F) ? pe(
5649
- b,
5648
+ return x.enter("codeFencedFence"), ie(F) ? pe(
5649
+ x,
5650
5650
  w,
5651
5651
  "linePrefix",
5652
5652
  r.parser.constructs.disable.null.includes("codeIndented") ? void 0 : 4
5653
5653
  )(F) : w(F);
5654
5654
  }
5655
5655
  function w(F) {
5656
- return F === l ? (b.enter("codeFencedFenceSequence"), j(F)) : $(F);
5656
+ return F === l ? (x.enter("codeFencedFenceSequence"), j(F)) : $(F);
5657
5657
  }
5658
5658
  function j(F) {
5659
- return F === l ? (W++, b.consume(F), j) : W >= a ? (b.exit("codeFencedFenceSequence"), ie(F) ? pe(b, O, "whitespace")(F) : O(F)) : $(F);
5659
+ return F === l ? (W++, x.consume(F), j) : W >= a ? (x.exit("codeFencedFenceSequence"), ie(F) ? pe(x, O, "whitespace")(F) : O(F)) : $(F);
5660
5660
  }
5661
5661
  function O(F) {
5662
- return F === null || G(F) ? (b.exit("codeFencedFence"), L(F)) : $(F);
5662
+ return F === null || G(F) ? (x.exit("codeFencedFence"), L(F)) : $(F);
5663
5663
  }
5664
5664
  }
5665
5665
  }
@@ -5775,8 +5775,8 @@ function Qp(e, t) {
5775
5775
  const n = e[t][1], r = e[t][2];
5776
5776
  let i = t - 1;
5777
5777
  const o = [], a = n._tokenizer || r.parser[n.contentType](n.start), l = a.events, s = [], u = {};
5778
- let c, p, m = -1, f = n, v = 0, x = 0;
5779
- const k = [x];
5778
+ let c, p, m = -1, f = n, v = 0, b = 0;
5779
+ const k = [b];
5780
5780
  for (; f; ) {
5781
5781
  for (; e[++i][1] !== f; )
5782
5782
  ;
@@ -5784,7 +5784,7 @@ function Qp(e, t) {
5784
5784
  }
5785
5785
  for (f = n; ++m < l.length; )
5786
5786
  // Find a void token that includes a break.
5787
- l[m][0] === "exit" && l[m - 1][0] === "enter" && l[m][1].type === l[m - 1][1].type && l[m][1].start.line !== l[m][1].end.line && (x = m + 1, k.push(x), f._tokenizer = void 0, f.previous = void 0, f = f.next);
5787
+ l[m][0] === "exit" && l[m - 1][0] === "enter" && l[m][1].type === l[m - 1][1].type && l[m][1].start.line !== l[m][1].end.line && (b = m + 1, k.push(b), f._tokenizer = void 0, f.previous = void 0, f = f.next);
5788
5788
  for (a.events = [], f ? (f._tokenizer = void 0, f.previous = void 0) : k.pop(), m = k.length; m--; ) {
5789
5789
  const M = l.slice(k[m], k[m + 1]), z = o.pop();
5790
5790
  s.unshift([z, z + M.length - 1]), Ge(e, z, 2, M);
@@ -5848,7 +5848,7 @@ function va(e, t, n, r, i, o, a, l, s) {
5848
5848
  function p(M) {
5849
5849
  return M === 60 ? (e.enter(r), e.enter(i), e.enter(o), e.consume(M), e.exit(o), m) : M === null || M === 32 || M === 41 || vr(M) ? n(M) : (e.enter(r), e.enter(a), e.enter(l), e.enter("chunkString", {
5850
5850
  contentType: "string"
5851
- }), x(M));
5851
+ }), b(M));
5852
5852
  }
5853
5853
  function m(M) {
5854
5854
  return M === 62 ? (e.enter(o), e.consume(M), e.exit(o), e.exit(i), e.exit(r), t) : (e.enter(l), e.enter("chunkString", {
@@ -5861,11 +5861,11 @@ function va(e, t, n, r, i, o, a, l, s) {
5861
5861
  function v(M) {
5862
5862
  return M === 60 || M === 62 || M === 92 ? (e.consume(M), f) : f(M);
5863
5863
  }
5864
- function x(M) {
5865
- return !c && (M === null || M === 41 || Ie(M)) ? (e.exit("chunkString"), e.exit(l), e.exit(a), e.exit(r), t(M)) : c < u && M === 40 ? (e.consume(M), c++, x) : M === 41 ? (e.consume(M), c--, x) : M === null || M === 32 || M === 40 || vr(M) ? n(M) : (e.consume(M), M === 92 ? k : x);
5864
+ function b(M) {
5865
+ return !c && (M === null || M === 41 || Ie(M)) ? (e.exit("chunkString"), e.exit(l), e.exit(a), e.exit(r), t(M)) : c < u && M === 40 ? (e.consume(M), c++, b) : M === 41 ? (e.consume(M), c--, b) : M === null || M === 32 || M === 40 || vr(M) ? n(M) : (e.consume(M), M === 92 ? k : b);
5866
5866
  }
5867
5867
  function k(M) {
5868
- return M === 40 || M === 41 || M === 92 ? (e.consume(M), x) : x(M);
5868
+ return M === 40 || M === 41 || M === 92 ? (e.consume(M), b) : b(M);
5869
5869
  }
5870
5870
  }
5871
5871
  function Ta(e, t, n, r, i, o) {
@@ -5924,7 +5924,7 @@ function Ht(e, t) {
5924
5924
  )(i) : t(i);
5925
5925
  }
5926
5926
  }
5927
- function xt(e) {
5927
+ function bt(e) {
5928
5928
  return e.replace(/[\t\n\r ]+/g, " ").replace(/^ | $/g, "").toLowerCase().toUpperCase();
5929
5929
  }
5930
5930
  const Wp = {
@@ -5954,7 +5954,7 @@ function Zp(e, t, n) {
5954
5954
  )(f);
5955
5955
  }
5956
5956
  function l(f) {
5957
- return i = xt(
5957
+ return i = bt(
5958
5958
  r.sliceSerialize(r.events[r.events.length - 1][1]).slice(1, -1)
5959
5959
  ), f === 58 ? (e.enter("definitionMarker"), e.consume(f), e.exit("definitionMarker"), s) : n(f);
5960
5960
  }
@@ -6156,7 +6156,7 @@ function uf(e, t, n) {
6156
6156
  return e.enter("htmlFlow"), e.enter("htmlFlowData"), e.consume(h), p;
6157
6157
  }
6158
6158
  function p(h) {
6159
- return h === 33 ? (e.consume(h), m) : h === 47 ? (e.consume(h), o = !0, x) : h === 63 ? (e.consume(h), i = 3, r.interrupt ? t : g) : Ve(h) ? (e.consume(h), a = String.fromCharCode(h), k) : n(h);
6159
+ return h === 33 ? (e.consume(h), m) : h === 47 ? (e.consume(h), o = !0, b) : h === 63 ? (e.consume(h), i = 3, r.interrupt ? t : g) : Ve(h) ? (e.consume(h), a = String.fromCharCode(h), k) : n(h);
6160
6160
  }
6161
6161
  function m(h) {
6162
6162
  return h === 45 ? (e.consume(h), i = 2, f) : h === 91 ? (e.consume(h), i = 5, l = 0, v) : Ve(h) ? (e.consume(h), i = 4, r.interrupt ? t : g) : n(h);
@@ -6168,7 +6168,7 @@ function uf(e, t, n) {
6168
6168
  const ge = "CDATA[";
6169
6169
  return h === ge.charCodeAt(l++) ? (e.consume(h), l === ge.length ? r.interrupt ? t : w : v) : n(h);
6170
6170
  }
6171
- function x(h) {
6171
+ function b(h) {
6172
6172
  return Ve(h) ? (e.consume(h), a = String.fromCharCode(h), k) : n(h);
6173
6173
  }
6174
6174
  function k(h) {
@@ -6191,10 +6191,10 @@ function uf(e, t, n) {
6191
6191
  return h === 45 || h === 46 || h === 58 || h === 95 || Ce(h) ? (e.consume(h), _) : U(h);
6192
6192
  }
6193
6193
  function U(h) {
6194
- return h === 61 ? (e.consume(h), b) : ie(h) ? (e.consume(h), U) : E(h);
6194
+ return h === 61 ? (e.consume(h), x) : ie(h) ? (e.consume(h), U) : E(h);
6195
6195
  }
6196
- function b(h) {
6197
- return h === null || h === 60 || h === 61 || h === 62 || h === 96 ? n(h) : h === 34 || h === 39 ? (e.consume(h), s = h, L) : ie(h) ? (e.consume(h), b) : $(h);
6196
+ function x(h) {
6197
+ return h === null || h === 60 || h === 61 || h === 62 || h === 96 ? n(h) : h === 34 || h === 39 ? (e.consume(h), s = h, L) : ie(h) ? (e.consume(h), x) : $(h);
6198
6198
  }
6199
6199
  function L(h) {
6200
6200
  return h === s ? (e.consume(h), s = null, W) : h === null || G(h) ? n(h) : (e.consume(h), L);
@@ -6214,7 +6214,7 @@ function uf(e, t, n) {
6214
6214
  function w(h) {
6215
6215
  return h === 45 && i === 2 ? (e.consume(h), B) : 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) : G(h) && (i === 6 || i === 7) ? (e.exit("htmlFlowData"), e.check(
6216
6216
  af,
6217
- ye,
6217
+ Me,
6218
6218
  j
6219
6219
  )(h)) : h === null || G(h) ? (e.exit("htmlFlowData"), j(h)) : (e.consume(h), w);
6220
6220
  }
@@ -6222,7 +6222,7 @@ function uf(e, t, n) {
6222
6222
  return e.check(
6223
6223
  lf,
6224
6224
  O,
6225
- ye
6225
+ Me
6226
6226
  )(h);
6227
6227
  }
6228
6228
  function O(h) {
@@ -6251,9 +6251,9 @@ function uf(e, t, n) {
6251
6251
  return h === 62 ? (e.consume(h), he) : h === 45 && i === 2 ? (e.consume(h), g) : w(h);
6252
6252
  }
6253
6253
  function he(h) {
6254
- return h === null || G(h) ? (e.exit("htmlFlowData"), ye(h)) : (e.consume(h), he);
6254
+ return h === null || G(h) ? (e.exit("htmlFlowData"), Me(h)) : (e.consume(h), he);
6255
6255
  }
6256
- function ye(h) {
6256
+ function Me(h) {
6257
6257
  return e.exit("htmlFlow"), t(h);
6258
6258
  }
6259
6259
  }
@@ -6304,16 +6304,16 @@ function df(e, t, n) {
6304
6304
  }
6305
6305
  function v(g) {
6306
6306
  const he = "CDATA[";
6307
- return g === he.charCodeAt(o++) ? (e.consume(g), o === he.length ? x : v) : n(g);
6307
+ return g === he.charCodeAt(o++) ? (e.consume(g), o === he.length ? b : v) : n(g);
6308
6308
  }
6309
- function x(g) {
6310
- return g === null ? n(g) : g === 93 ? (e.consume(g), k) : G(g) ? (a = x, V(g)) : (e.consume(g), x);
6309
+ function b(g) {
6310
+ return g === null ? n(g) : g === 93 ? (e.consume(g), k) : G(g) ? (a = b, V(g)) : (e.consume(g), b);
6311
6311
  }
6312
6312
  function k(g) {
6313
- return g === 93 ? (e.consume(g), M) : x(g);
6313
+ return g === 93 ? (e.consume(g), M) : b(g);
6314
6314
  }
6315
6315
  function M(g) {
6316
- return g === 62 ? B(g) : g === 93 ? (e.consume(g), M) : x(g);
6316
+ return g === 62 ? B(g) : g === 93 ? (e.consume(g), M) : b(g);
6317
6317
  }
6318
6318
  function z(g) {
6319
6319
  return g === null || g === 62 ? B(g) : G(g) ? (a = z, V(g)) : (e.consume(g), z);
@@ -6325,10 +6325,10 @@ function df(e, t, n) {
6325
6325
  return g === 62 ? B(g) : E(g);
6326
6326
  }
6327
6327
  function U(g) {
6328
- return Ve(g) ? (e.consume(g), b) : n(g);
6328
+ return Ve(g) ? (e.consume(g), x) : n(g);
6329
6329
  }
6330
- function b(g) {
6331
- return g === 45 || Ce(g) ? (e.consume(g), b) : L(g);
6330
+ function x(g) {
6331
+ return g === 45 || Ce(g) ? (e.consume(g), x) : L(g);
6332
6332
  }
6333
6333
  function L(g) {
6334
6334
  return G(g) ? (a = L, V(g)) : ie(g) ? (e.consume(g), L) : B(g);
@@ -6377,11 +6377,11 @@ function df(e, t, n) {
6377
6377
  }
6378
6378
  const Yr = {
6379
6379
  name: "labelEnd",
6380
- tokenize: bf,
6380
+ tokenize: xf,
6381
6381
  resolveTo: Mf,
6382
6382
  resolveAll: yf
6383
6383
  }, hf = {
6384
- tokenize: xf
6384
+ tokenize: bf
6385
6385
  }, gf = {
6386
6386
  tokenize: wf
6387
6387
  }, mf = {
@@ -6439,7 +6439,7 @@ function Mf(e, t) {
6439
6439
  ["exit", u, t]
6440
6440
  ]), l = ze(l, e.slice(a + 1)), l = ze(l, [["exit", s, t]]), Ge(e, o, e.length, l), e;
6441
6441
  }
6442
- function bf(e, t, n) {
6442
+ function xf(e, t, n) {
6443
6443
  const r = this;
6444
6444
  let i = r.events.length, o, a;
6445
6445
  for (; i--; )
@@ -6450,7 +6450,7 @@ function bf(e, t, n) {
6450
6450
  return l;
6451
6451
  function l(m) {
6452
6452
  return o ? o._inactive ? p(m) : (a = r.parser.defined.includes(
6453
- xt(
6453
+ bt(
6454
6454
  r.sliceSerialize({
6455
6455
  start: o.end,
6456
6456
  end: r.now()
@@ -6483,7 +6483,7 @@ function bf(e, t, n) {
6483
6483
  return o._balanced = !0, n(m);
6484
6484
  }
6485
6485
  }
6486
- function xf(e, t, n) {
6486
+ function bf(e, t, n) {
6487
6487
  return r;
6488
6488
  function r(p) {
6489
6489
  return e.enter("resource"), e.enter("resourceMarker"), e.consume(p), e.exit("resourceMarker"), i;
@@ -6543,7 +6543,7 @@ function wf(e, t, n) {
6543
6543
  }
6544
6544
  function o(l) {
6545
6545
  return r.parser.defined.includes(
6546
- xt(
6546
+ bt(
6547
6547
  r.sliceSerialize(r.events[r.events.length - 1][1]).slice(1, -1)
6548
6548
  )
6549
6549
  ) ? t(l) : n(l);
@@ -6929,8 +6929,8 @@ function Hf(e, t, n) {
6929
6929
  enter: E,
6930
6930
  exit: _,
6931
6931
  attempt: L(U),
6932
- check: L(b),
6933
- interrupt: L(b, {
6932
+ check: L(x),
6933
+ interrupt: L(x, {
6934
6934
  interrupt: !0
6935
6935
  })
6936
6936
  }, u = {
@@ -6942,7 +6942,7 @@ function Hf(e, t, n) {
6942
6942
  sliceStream: f,
6943
6943
  sliceSerialize: m,
6944
6944
  now: v,
6945
- defineSkip: x,
6945
+ defineSkip: b,
6946
6946
  write: p
6947
6947
  };
6948
6948
  let c = t.tokenize.call(u, s);
@@ -6966,7 +6966,7 @@ function Hf(e, t, n) {
6966
6966
  _bufferIndex: F
6967
6967
  };
6968
6968
  }
6969
- function x(A) {
6969
+ function b(A) {
6970
6970
  i[A.line] = A.column, X();
6971
6971
  }
6972
6972
  function k() {
@@ -6997,16 +6997,16 @@ function Hf(e, t, n) {
6997
6997
  function U(A, w) {
6998
6998
  $(A, w.from);
6999
6999
  }
7000
- function b(A, w) {
7000
+ function x(A, w) {
7001
7001
  w.restore();
7002
7002
  }
7003
7003
  function L(A, w) {
7004
7004
  return j;
7005
7005
  function j(O, F, B) {
7006
7006
  let V, q, K, g;
7007
- return Array.isArray(O) ? ye(O) : "tokenize" in O ? (
7007
+ return Array.isArray(O) ? Me(O) : "tokenize" in O ? (
7008
7008
  // @ts-expect-error Looks like a construct.
7009
- ye([O])
7009
+ Me([O])
7010
7010
  ) : he(O);
7011
7011
  function he(re) {
7012
7012
  return we;
@@ -7017,10 +7017,10 @@ function Hf(e, t, n) {
7017
7017
  ...Array.isArray(Be) ? Be : Be ? [Be] : [],
7018
7018
  ...Array.isArray(Ae) ? Ae : Ae ? [Ae] : []
7019
7019
  ];
7020
- return ye(Ke)(ve);
7020
+ return Me(Ke)(ve);
7021
7021
  }
7022
7022
  }
7023
- function ye(re) {
7023
+ function Me(re) {
7024
7024
  return V = re, q = 0, re.length === 0 ? B : h(re[q]);
7025
7025
  }
7026
7026
  function h(re) {
@@ -7154,18 +7154,18 @@ const Vf = {
7154
7154
  96: ro,
7155
7155
  126: ro
7156
7156
  }, Kf = {
7157
- 38: xa,
7158
- 92: ba
7157
+ 38: ba,
7158
+ 92: xa
7159
7159
  }, Xf = {
7160
7160
  [-5]: ir,
7161
7161
  [-4]: ir,
7162
7162
  [-3]: ir,
7163
7163
  33: Tf,
7164
- 38: xa,
7164
+ 38: ba,
7165
7165
  42: Nr,
7166
7166
  60: [Ip, ff],
7167
7167
  91: If,
7168
- 92: [Xp, ba],
7168
+ 92: [Xp, xa],
7169
7169
  93: Yr,
7170
7170
  95: Nr,
7171
7171
  96: Pp
@@ -7196,7 +7196,7 @@ function rd(e) {
7196
7196
  lazy: {},
7197
7197
  constructs: n,
7198
7198
  content: i(Mp),
7199
- document: i(xp),
7199
+ document: i(bp),
7200
7200
  flow: i(Pf),
7201
7201
  string: i(Bf),
7202
7202
  text: i(Qf)
@@ -7356,7 +7356,7 @@ function cd(e) {
7356
7356
  characterReferenceValue: ve,
7357
7357
  codeFenced: c(z),
7358
7358
  codeFencedFence: M,
7359
- codeFencedFenceInfo: x,
7359
+ codeFencedFenceInfo: b,
7360
7360
  codeFencedFenceMeta: k,
7361
7361
  codeFlowValue: w,
7362
7362
  codeIndented: c(E),
@@ -7364,7 +7364,7 @@ function cd(e) {
7364
7364
  codeTextData: w,
7365
7365
  data: w,
7366
7366
  definition: c(),
7367
- definitionDestinationString: b,
7367
+ definitionDestinationString: x,
7368
7368
  definitionLabelString: _,
7369
7369
  definitionTitleString: U,
7370
7370
  emphasis: c(),
@@ -7384,7 +7384,7 @@ function cd(e) {
7384
7384
  listUnordered: c(),
7385
7385
  paragraph: c(),
7386
7386
  referenceString: re,
7387
- resourceDestinationString: ye,
7387
+ resourceDestinationString: Me,
7388
7388
  resourceTitleString: h,
7389
7389
  resource: ge,
7390
7390
  setextHeading: c(X),
@@ -7543,7 +7543,7 @@ function cd(e) {
7543
7543
  S.start = Number.parseInt(this.sliceSerialize(D), 10), o("expectingFirstListItemValue");
7544
7544
  }
7545
7545
  }
7546
- function x() {
7546
+ function b() {
7547
7547
  const D = this.resume(), S = this.stack[this.stack.length - 1];
7548
7548
  S.lang = D;
7549
7549
  }
@@ -7564,7 +7564,7 @@ function cd(e) {
7564
7564
  }
7565
7565
  function _(D) {
7566
7566
  const S = this.resume(), Y = this.stack[this.stack.length - 1];
7567
- Y.label = S, Y.identifier = xt(
7567
+ Y.label = S, Y.identifier = bt(
7568
7568
  this.sliceSerialize(D)
7569
7569
  ).toLowerCase();
7570
7570
  }
@@ -7572,7 +7572,7 @@ function cd(e) {
7572
7572
  const D = this.resume(), S = this.stack[this.stack.length - 1];
7573
7573
  S.title = D;
7574
7574
  }
7575
- function b() {
7575
+ function x() {
7576
7576
  const D = this.resume(), S = this.stack[this.stack.length - 1];
7577
7577
  S.url = D;
7578
7578
  }
@@ -7648,7 +7648,7 @@ function cd(e) {
7648
7648
  }
7649
7649
  function g(D) {
7650
7650
  const S = this.sliceSerialize(D), Y = this.stack[this.stack.length - 2];
7651
- Y.label = ld(S), Y.identifier = xt(S).toLowerCase();
7651
+ Y.label = ld(S), Y.identifier = bt(S).toLowerCase();
7652
7652
  }
7653
7653
  function he() {
7654
7654
  const D = this.stack[this.stack.length - 1], S = this.resume(), Y = this.stack[this.stack.length - 1];
@@ -7658,7 +7658,7 @@ function cd(e) {
7658
7658
  } else
7659
7659
  Y.alt = S;
7660
7660
  }
7661
- function ye() {
7661
+ function Me() {
7662
7662
  const D = this.resume(), S = this.stack[this.stack.length - 1];
7663
7663
  S.url = D;
7664
7664
  }
@@ -7674,7 +7674,7 @@ function cd(e) {
7674
7674
  }
7675
7675
  function re(D) {
7676
7676
  const S = this.resume(), Y = this.stack[this.stack.length - 1];
7677
- Y.label = S, Y.identifier = xt(
7677
+ Y.label = S, Y.identifier = bt(
7678
7678
  this.sliceSerialize(D)
7679
7679
  ).toLowerCase(), o("referenceType", "full");
7680
7680
  }
@@ -7979,7 +7979,7 @@ function Md(e, t) {
7979
7979
  position: t.position
7980
7980
  });
7981
7981
  }
7982
- function bd(e, t) {
7982
+ function xd(e, t) {
7983
7983
  const n = {
7984
7984
  type: "element",
7985
7985
  tagName: "h" + t.depth,
@@ -7988,7 +7988,7 @@ function bd(e, t) {
7988
7988
  };
7989
7989
  return e.patch(t, n), e.applyData(t, n);
7990
7990
  }
7991
- function xd(e, t) {
7991
+ function bd(e, t) {
7992
7992
  if (e.dangerous) {
7993
7993
  const n = { type: "raw", value: t.value };
7994
7994
  return e.patch(t, n), e.applyData(t, n);
@@ -8256,8 +8256,8 @@ const Rd = {
8256
8256
  emphasis: yd,
8257
8257
  footnoteReference: Ca,
8258
8258
  footnote: Md,
8259
- heading: bd,
8260
- html: xd,
8259
+ heading: xd,
8260
+ html: bd,
8261
8261
  imageReference: wd,
8262
8262
  image: vd,
8263
8263
  inlineCode: Td,
@@ -8377,12 +8377,12 @@ const Hd = !0, po = !1, $d = "skip", qd = (
8377
8377
  }
8378
8378
  return p;
8379
8379
  function p() {
8380
- let m = [], f, v, x;
8380
+ let m = [], f, v, b;
8381
8381
  if ((!t || i(l, s, u[u.length - 1] || null)) && (m = Vd(n(l, u)), m[0] === po))
8382
8382
  return m;
8383
8383
  if (l.children && m[0] !== $d)
8384
- for (v = (r ? l.children.length : -1) + o, x = u.concat(l); v > -1 && v < l.children.length; ) {
8385
- if (f = a(l.children[v], v, x)(), f[0] === po)
8384
+ for (v = (r ? l.children.length : -1) + o, b = u.concat(l); v > -1 && v < l.children.length; ) {
8385
+ if (f = a(l.children[v], v, b)(), f[0] === po)
8386
8386
  return f;
8387
8387
  v = typeof f[1] == "number" ? f[1] : v + o;
8388
8388
  }
@@ -8440,14 +8440,14 @@ function Gd(e) {
8440
8440
  function ho(e) {
8441
8441
  return String(e || "").toUpperCase();
8442
8442
  }
8443
- const xn = {}.hasOwnProperty;
8443
+ const bn = {}.hasOwnProperty;
8444
8444
  function Zd(e, t) {
8445
8445
  const n = t || {}, r = n.allowDangerousHtml || !1, i = {};
8446
8446
  return a.dangerous = r, a.clobberPrefix = n.clobberPrefix === void 0 || n.clobberPrefix === null ? "user-content-" : n.clobberPrefix, a.footnoteLabel = n.footnoteLabel || "Footnotes", a.footnoteLabelTagName = n.footnoteLabelTagName || "h2", a.footnoteLabelProperties = n.footnoteLabelProperties || {
8447
8447
  className: ["sr-only"]
8448
8448
  }, a.footnoteBackLabel = n.footnoteBackLabel || "Back to content", a.unknownHandler = n.unknownHandler, a.passThrough = n.passThrough, a.handlers = { ...Rd, ...n.handlers }, a.definition = Gd(e), a.footnoteById = i, a.footnoteOrder = [], a.footnoteCounts = {}, a.patch = Kd, a.applyData = Xd, a.one = l, a.all = s, a.wrap = eh, a.augment = o, qr(e, "footnoteDefinition", (u) => {
8449
8449
  const c = String(u.identifier).toUpperCase();
8450
- xn.call(i, c) || (i[c] = u);
8450
+ bn.call(i, c) || (i[c] = u);
8451
8451
  }), a;
8452
8452
  function o(u, c) {
8453
8453
  if (u && "data" in u && u.data) {
@@ -8500,7 +8500,7 @@ function La(e, t, n) {
8500
8500
  const r = t && t.type;
8501
8501
  if (!r)
8502
8502
  throw new Error("Expected node, got `" + t + "`");
8503
- return xn.call(e.handlers, r) ? e.handlers[r](e, t, n) : e.passThrough && e.passThrough.includes(r) ? "children" in t ? { ...t, children: Vr(e, t) } : t : e.unknownHandler ? e.unknownHandler(e, t, n) : Jd(e, t);
8503
+ return bn.call(e.handlers, r) ? e.handlers[r](e, t, n) : e.passThrough && e.passThrough.includes(r) ? "children" in t ? { ...t, children: Vr(e, t) } : t : e.unknownHandler ? e.unknownHandler(e, t, n) : Jd(e, t);
8504
8504
  }
8505
8505
  function Vr(e, t) {
8506
8506
  const n = [];
@@ -8521,7 +8521,7 @@ function Vr(e, t) {
8521
8521
  return n;
8522
8522
  }
8523
8523
  function Jd(e, t) {
8524
- const n = t.data || {}, r = "value" in t && !(xn.call(n, "hProperties") || xn.call(n, "hChildren")) ? { type: "text", value: t.value } : {
8524
+ const n = t.data || {}, r = "value" in t && !(bn.call(n, "hProperties") || bn.call(n, "hChildren")) ? { type: "text", value: t.value } : {
8525
8525
  type: "element",
8526
8526
  tagName: "div",
8527
8527
  properties: {},
@@ -8676,14 +8676,14 @@ Re.prototype.commaOrSpaceSeparated = !1;
8676
8676
  Re.prototype.mustUseProperty = !1;
8677
8677
  Re.prototype.defined = !1;
8678
8678
  let ah = 0;
8679
- const Z = ht(), be = ht(), Pa = ht(), C = ht(), ce = ht(), wt = ht(), Ee = ht();
8679
+ const Z = ht(), xe = ht(), Pa = ht(), C = ht(), ce = ht(), wt = ht(), Ee = ht();
8680
8680
  function ht() {
8681
8681
  return 2 ** ++ah;
8682
8682
  }
8683
8683
  const Dr = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineProperty({
8684
8684
  __proto__: null,
8685
8685
  boolean: Z,
8686
- booleanish: be,
8686
+ booleanish: xe,
8687
8687
  commaOrSpaceSeparated: Ee,
8688
8688
  commaSeparated: wt,
8689
8689
  number: C,
@@ -8765,10 +8765,10 @@ const Ya = Dt({
8765
8765
  },
8766
8766
  properties: {
8767
8767
  ariaActiveDescendant: null,
8768
- ariaAtomic: be,
8768
+ ariaAtomic: xe,
8769
8769
  ariaAutoComplete: null,
8770
- ariaBusy: be,
8771
- ariaChecked: be,
8770
+ ariaBusy: xe,
8771
+ ariaChecked: xe,
8772
8772
  ariaColCount: C,
8773
8773
  ariaColIndex: C,
8774
8774
  ariaColSpan: C,
@@ -8776,36 +8776,36 @@ const Ya = Dt({
8776
8776
  ariaCurrent: null,
8777
8777
  ariaDescribedBy: ce,
8778
8778
  ariaDetails: null,
8779
- ariaDisabled: be,
8779
+ ariaDisabled: xe,
8780
8780
  ariaDropEffect: ce,
8781
8781
  ariaErrorMessage: null,
8782
- ariaExpanded: be,
8782
+ ariaExpanded: xe,
8783
8783
  ariaFlowTo: ce,
8784
- ariaGrabbed: be,
8784
+ ariaGrabbed: xe,
8785
8785
  ariaHasPopup: null,
8786
- ariaHidden: be,
8786
+ ariaHidden: xe,
8787
8787
  ariaInvalid: null,
8788
8788
  ariaKeyShortcuts: null,
8789
8789
  ariaLabel: null,
8790
8790
  ariaLabelledBy: ce,
8791
8791
  ariaLevel: C,
8792
8792
  ariaLive: null,
8793
- ariaModal: be,
8794
- ariaMultiLine: be,
8795
- ariaMultiSelectable: be,
8793
+ ariaModal: xe,
8794
+ ariaMultiLine: xe,
8795
+ ariaMultiSelectable: xe,
8796
8796
  ariaOrientation: null,
8797
8797
  ariaOwns: ce,
8798
8798
  ariaPlaceholder: null,
8799
8799
  ariaPosInSet: C,
8800
- ariaPressed: be,
8801
- ariaReadOnly: be,
8800
+ ariaPressed: xe,
8801
+ ariaReadOnly: xe,
8802
8802
  ariaRelevant: null,
8803
- ariaRequired: be,
8803
+ ariaRequired: xe,
8804
8804
  ariaRoleDescription: ce,
8805
8805
  ariaRowCount: C,
8806
8806
  ariaRowIndex: C,
8807
8807
  ariaRowSpan: C,
8808
- ariaSelected: be,
8808
+ ariaSelected: xe,
8809
8809
  ariaSetSize: C,
8810
8810
  ariaSort: null,
8811
8811
  ariaValueMax: C,
@@ -8851,7 +8851,7 @@ const Ya = Dt({
8851
8851
  cols: C,
8852
8852
  colSpan: null,
8853
8853
  content: null,
8854
- contentEditable: be,
8854
+ contentEditable: xe,
8855
8855
  controls: Z,
8856
8856
  controlsList: ce,
8857
8857
  coords: C | wt,
@@ -8865,7 +8865,7 @@ const Ya = Dt({
8865
8865
  dirName: null,
8866
8866
  disabled: Z,
8867
8867
  download: Pa,
8868
- draggable: be,
8868
+ draggable: xe,
8869
8869
  encType: null,
8870
8870
  enterKeyHint: null,
8871
8871
  fetchPriority: null,
@@ -9035,7 +9035,7 @@ const Ya = Dt({
9035
9035
  sizes: null,
9036
9036
  slot: null,
9037
9037
  span: C,
9038
- spellCheck: be,
9038
+ spellCheck: xe,
9039
9039
  src: null,
9040
9040
  srcDoc: null,
9041
9041
  srcLang: null,
@@ -9050,7 +9050,7 @@ const Ya = Dt({
9050
9050
  type: null,
9051
9051
  typeMustMatch: Z,
9052
9052
  useMap: null,
9053
- value: be,
9053
+ value: xe,
9054
9054
  width: C,
9055
9055
  wrap: null,
9056
9056
  // Legacy.
@@ -9141,7 +9141,7 @@ const Ya = Dt({
9141
9141
  // `<table>`
9142
9142
  scheme: null,
9143
9143
  // `<meta>`
9144
- scrolling: be,
9144
+ scrolling: xe,
9145
9145
  // `<frame>`. Use overflow in the child context
9146
9146
  standby: null,
9147
9147
  // `<object>`
@@ -9806,7 +9806,7 @@ var $a = { exports: {} }, ae = {};
9806
9806
  * This source code is licensed under the MIT license found in the
9807
9807
  * LICENSE file in the root directory of this source tree.
9808
9808
  */
9809
- var Gr = Symbol.for("react.element"), Zr = Symbol.for("react.portal"), Dn = Symbol.for("react.fragment"), kn = Symbol.for("react.strict_mode"), jn = Symbol.for("react.profiler"), En = Symbol.for("react.provider"), Cn = Symbol.for("react.context"), Mh = 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"), bh = Symbol.for("react.offscreen"), qa;
9809
+ var Gr = Symbol.for("react.element"), Zr = Symbol.for("react.portal"), Dn = Symbol.for("react.fragment"), kn = Symbol.for("react.strict_mode"), jn = Symbol.for("react.profiler"), En = Symbol.for("react.provider"), Cn = Symbol.for("react.context"), Mh = 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"), xh = Symbol.for("react.offscreen"), qa;
9810
9810
  qa = Symbol.for("react.module.reference");
9811
9811
  function Ue(e) {
9812
9812
  if (typeof e == "object" && e !== null) {
@@ -9893,12 +9893,12 @@ ae.isSuspenseList = function(e) {
9893
9893
  return Ue(e) === On;
9894
9894
  };
9895
9895
  ae.isValidElementType = function(e) {
9896
- return typeof e == "string" || typeof e == "function" || e === Dn || e === jn || e === kn || e === Sn || e === On || e === bh || typeof e == "object" && e !== null && (e.$$typeof === Ln || e.$$typeof === zn || e.$$typeof === En || e.$$typeof === Cn || e.$$typeof === An || e.$$typeof === qa || e.getModuleId !== void 0);
9896
+ return typeof e == "string" || typeof e == "function" || e === Dn || e === jn || e === kn || e === Sn || e === On || e === xh || typeof e == "object" && e !== null && (e.$$typeof === Ln || e.$$typeof === zn || e.$$typeof === En || e.$$typeof === Cn || e.$$typeof === An || e.$$typeof === qa || e.getModuleId !== void 0);
9897
9897
  };
9898
9898
  ae.typeOf = Ue;
9899
9899
  $a.exports = ae;
9900
- var xh = $a.exports;
9901
- const wh = /* @__PURE__ */ nt(xh);
9900
+ var bh = $a.exports;
9901
+ const wh = /* @__PURE__ */ nt(bh);
9902
9902
  function vh(e) {
9903
9903
  const t = (
9904
9904
  // @ts-expect-error looks like a node.
@@ -9919,7 +9919,7 @@ function Nh(e, t) {
9919
9919
  ).trim();
9920
9920
  }
9921
9921
  var Kr = { exports: {} }, Mo = /\/\*[^*]*\*+([^/*][^*]*\*+)*\//g, Ih = /\n/g, Dh = /^\s*/, kh = /^(\*?[-#/*\\\w]+(\[[0-9a-z_-]+\])?)\s*/, jh = /^:\s*/, Eh = /^((?:'(?:\\'|.)*?'|"(?:\\"|.)*?"|\([^)]*?\)|[^};])+)/, Ch = /^[;\s]*/, Ah = /^\s+|\s+$/g, Sh = `
9922
- `, bo = "/", xo = "*", pt = "", Oh = "comment", zh = "declaration", Lh = function(e, t) {
9922
+ `, xo = "/", bo = "*", pt = "", Oh = "comment", zh = "declaration", Lh = function(e, t) {
9923
9923
  if (typeof e != "string")
9924
9924
  throw new TypeError("First argument must be a string");
9925
9925
  if (!e)
@@ -9927,15 +9927,15 @@ var Kr = { exports: {} }, Mo = /\/\*[^*]*\*+([^/*][^*]*\*+)*\//g, Ih = /\n/g, Dh
9927
9927
  t = t || {};
9928
9928
  var n = 1, r = 1;
9929
9929
  function i(v) {
9930
- var x = v.match(Ih);
9931
- x && (n += x.length);
9930
+ var b = v.match(Ih);
9931
+ b && (n += b.length);
9932
9932
  var k = v.lastIndexOf(Sh);
9933
9933
  r = ~k ? v.length - k : r + v.length;
9934
9934
  }
9935
9935
  function o() {
9936
9936
  var v = { line: n, column: r };
9937
- return function(x) {
9938
- return x.position = new a(v), u(), x;
9937
+ return function(b) {
9938
+ return b.position = new a(v), u(), b;
9939
9939
  };
9940
9940
  }
9941
9941
  function a(v) {
@@ -9943,50 +9943,50 @@ var Kr = { exports: {} }, Mo = /\/\*[^*]*\*+([^/*][^*]*\*+)*\//g, Ih = /\n/g, Dh
9943
9943
  }
9944
9944
  a.prototype.content = e;
9945
9945
  function l(v) {
9946
- var x = new Error(
9946
+ var b = new Error(
9947
9947
  t.source + ":" + n + ":" + r + ": " + v
9948
9948
  );
9949
- if (x.reason = v, x.filename = t.source, x.line = n, x.column = r, x.source = e, !t.silent)
9950
- throw x;
9949
+ if (b.reason = v, b.filename = t.source, b.line = n, b.column = r, b.source = e, !t.silent)
9950
+ throw b;
9951
9951
  }
9952
9952
  function s(v) {
9953
- var x = v.exec(e);
9954
- if (x) {
9955
- var k = x[0];
9956
- return i(k), e = e.slice(k.length), x;
9953
+ var b = v.exec(e);
9954
+ if (b) {
9955
+ var k = b[0];
9956
+ return i(k), e = e.slice(k.length), b;
9957
9957
  }
9958
9958
  }
9959
9959
  function u() {
9960
9960
  s(Dh);
9961
9961
  }
9962
9962
  function c(v) {
9963
- var x;
9964
- for (v = v || []; x = p(); )
9965
- x !== !1 && v.push(x);
9963
+ var b;
9964
+ for (v = v || []; b = p(); )
9965
+ b !== !1 && v.push(b);
9966
9966
  return v;
9967
9967
  }
9968
9968
  function p() {
9969
9969
  var v = o();
9970
- if (!(bo != e.charAt(0) || xo != e.charAt(1))) {
9971
- for (var x = 2; pt != e.charAt(x) && (xo != e.charAt(x) || bo != e.charAt(x + 1)); )
9972
- ++x;
9973
- if (x += 2, pt === e.charAt(x - 1))
9970
+ if (!(xo != e.charAt(0) || bo != e.charAt(1))) {
9971
+ for (var b = 2; pt != e.charAt(b) && (bo != e.charAt(b) || xo != e.charAt(b + 1)); )
9972
+ ++b;
9973
+ if (b += 2, pt === e.charAt(b - 1))
9974
9974
  return l("End of comment missing");
9975
- var k = e.slice(2, x - 2);
9976
- return r += 2, i(k), e = e.slice(x), r += 2, v({
9975
+ var k = e.slice(2, b - 2);
9976
+ return r += 2, i(k), e = e.slice(b), r += 2, v({
9977
9977
  type: Oh,
9978
9978
  comment: k
9979
9979
  });
9980
9980
  }
9981
9981
  }
9982
9982
  function m() {
9983
- var v = o(), x = s(kh);
9984
- if (x) {
9983
+ var v = o(), b = s(kh);
9984
+ if (b) {
9985
9985
  if (p(), !s(jh))
9986
9986
  return l("property missing ':'");
9987
9987
  var k = s(Eh), M = v({
9988
9988
  type: zh,
9989
- property: wo(x[0].replace(Mo, pt)),
9989
+ property: wo(b[0].replace(Mo, pt)),
9990
9990
  value: k ? wo(k[0].replace(Mo, pt)) : pt
9991
9991
  });
9992
9992
  return s(Ch), M;
@@ -9995,8 +9995,8 @@ var Kr = { exports: {} }, Mo = /\/\*[^*]*\*+([^/*][^*]*\*+)*\//g, Ih = /\n/g, Dh
9995
9995
  function f() {
9996
9996
  var v = [];
9997
9997
  c(v);
9998
- for (var x; x = m(); )
9999
- x !== !1 && (v.push(x), c(v));
9998
+ for (var b; b = m(); )
9999
+ b !== !1 && (v.push(b), c(v));
10000
10000
  return v;
10001
10001
  }
10002
10002
  return u(), f();
@@ -10054,8 +10054,8 @@ function Uh(e, t, n, r) {
10054
10054
  String(s.alt || ""),
10055
10055
  typeof s.title == "string" ? s.title : null
10056
10056
  )), !v && l === "li" && r.type === "element") {
10057
- const x = Bh(t);
10058
- s.checked = x && x.properties ? !!x.properties.checked : null, s.index = ar(r, t), s.ordered = r.tagName === "ol";
10057
+ const b = Bh(t);
10058
+ s.checked = b && b.properties ? !!b.properties.checked : null, s.index = ar(r, t), s.ordered = r.tagName === "ol";
10059
10059
  }
10060
10060
  return !v && (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), v || (s.isHeader = l === "th")), !v && l === "tr" && r.type === "element" && (s.isHeader = r.tagName === "thead"), i.sourcePos && (s["data-sourcepos"] = $h(m)), !v && i.rawSourcePos && (s.sourcePosition = t.position), !v && i.includeElementIndex && (s.index = ar(r, t), s.siblingCount = ar(r)), v || (s.node = t), p.length > 0 ? tt.createElement(f, s, p) : tt.createElement(f, s);
10061
10061
  }
@@ -10282,7 +10282,7 @@ function _n({
10282
10282
  text: a,
10283
10283
  userTrackingName: l
10284
10284
  }) {
10285
- const [s, u] = Me(!0), { primaryColor: c, xpertKey: p, userTracking: m, conversationScreen: f } = _e(Fe), v = vt(
10285
+ const [s, u] = ye(!0), { primaryColor: c, xpertKey: p, userTracking: m, conversationScreen: f } = _e(Fe), v = vt(
10286
10286
  (M) => {
10287
10287
  var z, E, _, U;
10288
10288
  ((z = M == null ? void 0 : M.data) == null ? void 0 : z.who) === "customer" && (!(window != null && window.OnetrustActiveGroups) || (E = window == null ? void 0 : window.OnetrustActiveGroups) != null && E.includes("C0003")) && Le.set(`${p}-live-chat-open`, 1, {
@@ -10291,28 +10291,28 @@ function _n({
10291
10291
  }), ((_ = M == null ? void 0 : M.data) == null ? void 0 : _.type) === "connection" && ((U = M == null ? void 0 : M.data) == null ? void 0 : U.state) === "disconnected" && Le.remove(`${p}-live-chat-open`);
10292
10292
  },
10293
10293
  [p]
10294
- ), x = vt(
10294
+ ), b = vt(
10295
10295
  (M) => {
10296
10296
  var z, E, _, U;
10297
10297
  ((z = M == null ? void 0 : M.data) == null ? void 0 : z.type) === "unhide" && ((E = M == null ? void 0 : M.data) == null ? void 0 : E.reason) === "pop-out" && t(!0), ((_ = M == null ? void 0 : M.data) == null ? void 0 : _.type) === "open" && ((U = M == null ? void 0 : M.data) == null ? void 0 : U.chatState) === !0 && t(!0);
10298
10298
  },
10299
10299
  [t]
10300
10300
  );
10301
- xe(() => {
10301
+ be(() => {
10302
10302
  let M, z;
10303
10303
  return f.liveChat.enabled && (window.Five9ChatPlugin || (M = document.createElement("script"), M.type = "text/javascript", M.src = f.liveChat.sourceCode, M.async = !0, M.onload = () => {
10304
10304
  window.Five9ChatPlugin(f.liveChat.options);
10305
- }, document.body.appendChild(M)), window.addEventListener("message", v), window.addEventListener("message", x), z = setTimeout(() => {
10305
+ }, document.body.appendChild(M)), window.addEventListener("message", v), window.addEventListener("message", b), z = setTimeout(() => {
10306
10306
  u(!1);
10307
10307
  }, 3e3)), () => {
10308
- f.liveChat.enabled && (window.removeEventListener("message", v), window.removeEventListener("message", x), clearTimeout(z));
10308
+ f.liveChat.enabled && (window.removeEventListener("message", v), window.removeEventListener("message", b), clearTimeout(z));
10309
10309
  };
10310
10310
  }, [
10311
10311
  f.liveChat.enabled,
10312
10312
  f.liveChat.options,
10313
10313
  f.liveChat.sourceCode,
10314
10314
  v,
10315
- x
10315
+ b
10316
10316
  ]);
10317
10317
  const k = () => {
10318
10318
  e({
@@ -10471,7 +10471,7 @@ Fn.defaultProps = {
10471
10471
  Fn.displayName = "AssistantMessageBubble";
10472
10472
  const Kh = Fn, Ka = () => {
10473
10473
  const { disclaimer: e } = _e(Fe), t = We(null);
10474
- return xe(() => {
10474
+ return be(() => {
10475
10475
  var n;
10476
10476
  (n = t == null ? void 0 : t.current) == null || n.focus();
10477
10477
  }, []), /* @__PURE__ */ N.jsxs(
@@ -10581,7 +10581,7 @@ const tg = ei, Pn = ({
10581
10581
  isTestUser: s
10582
10582
  }) => {
10583
10583
  const { conversationScreen: u } = _e(Fe), { prompts: c, systemMessage: p } = u, m = We(null);
10584
- return xe(() => {
10584
+ return be(() => {
10585
10585
  var f;
10586
10586
  (f = m.current) == null || f.scrollIntoView({
10587
10587
  behavior: "instant",
@@ -10665,7 +10665,7 @@ Pn.displayName = "ConversationsMessages";
10665
10665
  const ng = Pn;
10666
10666
  function Xa({ disableScroll: e }) {
10667
10667
  const t = We(null);
10668
- return xe(() => {
10668
+ return be(() => {
10669
10669
  var n;
10670
10670
  e || (n = t.current) == null || n.scrollIntoView({
10671
10671
  behavior: "smooth",
@@ -10691,7 +10691,7 @@ Xa.propTypes = {
10691
10691
  };
10692
10692
  const rg = () => {
10693
10693
  const e = We(null);
10694
- return xe(() => {
10694
+ return be(() => {
10695
10695
  var t;
10696
10696
  (t = e.current) == null || t.scrollIntoView({
10697
10697
  behavior: "instant"
@@ -10762,36 +10762,36 @@ function Ja({
10762
10762
  style: o = {}
10763
10763
  }) {
10764
10764
  var v;
10765
- const { proactiveMessage: a } = _e(Fe), [l, s] = Me(!0), [u, c] = Me(!1), p = l && (!(window != null && window.OnetrustActiveGroups) || ((v = window == null ? void 0 : window.OnetrustActiveGroups) == null ? void 0 : v.includes("C0003"))) && Le.get(t) === void 0;
10766
- xe(() => {
10767
- var x;
10768
- (x = window == null ? void 0 : window.OneTrust) == null || x.OnConsentChanged(() => {
10765
+ const { proactiveMessage: a } = _e(Fe), [l, s] = ye(!0), [u, c] = ye(!1), p = l && (!(window != null && window.OnetrustActiveGroups) || ((v = window == null ? void 0 : window.OnetrustActiveGroups) == null ? void 0 : v.includes("C0003"))) && Le.get(t) === void 0;
10766
+ be(() => {
10767
+ var b;
10768
+ (b = window == null ? void 0 : window.OneTrust) == null || b.OnConsentChanged(() => {
10769
10769
  var k;
10770
10770
  !((k = window == null ? void 0 : window.OnetrustActiveGroups) != null && k.includes("C0003")) && Le.get(t) !== void 0 && Le.remove(t);
10771
10771
  });
10772
- }, [t]), xe(() => {
10773
- var x;
10774
- i || (!(window != null && window.OnetrustActiveGroups) || (x = window == null ? void 0 : window.OnetrustActiveGroups) != null && x.includes("C0003")) && f(t, 1, 1);
10775
- }, [t, i]), xe(() => {
10772
+ }, [t]), be(() => {
10773
+ var b;
10774
+ i || (!(window != null && window.OnetrustActiveGroups) || (b = window == null ? void 0 : window.OnetrustActiveGroups) != null && b.includes("C0003")) && f(t, 1, 1);
10775
+ }, [t, i]), be(() => {
10776
10776
  if (a.enabled && a.delayMs > 0) {
10777
- const x = setTimeout(() => {
10777
+ const b = setTimeout(() => {
10778
10778
  c(!0);
10779
10779
  }, a.delayMs);
10780
- return () => clearTimeout(x);
10780
+ return () => clearTimeout(b);
10781
10781
  } else
10782
10782
  c(!0);
10783
10783
  }, [a.delayMs, a.enabled]);
10784
10784
  const m = () => {
10785
- var x;
10786
- s(!1), (!(window != null && window.OnetrustActiveGroups) || (x = window == null ? void 0 : window.OnetrustActiveGroups) != null && x.includes("C0003")) && f(t, 1, 1), r();
10787
- }, f = (x, k, M) => {
10785
+ var b;
10786
+ s(!1), (!(window != null && window.OnetrustActiveGroups) || (b = window == null ? void 0 : window.OnetrustActiveGroups) != null && b.includes("C0003")) && f(t, 1, 1), r();
10787
+ }, f = (b, k, M) => {
10788
10788
  const z = {
10789
10789
  expires: M,
10790
10790
  path: "/"
10791
10791
  };
10792
- Le.set(x, k, z);
10792
+ Le.set(b, k, z);
10793
10793
  };
10794
- return u ? /* @__PURE__ */ N.jsx("div", { children: p && /* @__PURE__ */ N.jsxs(
10794
+ return !u || !p ? null : /* @__PURE__ */ N.jsx("div", { children: /* @__PURE__ */ N.jsxs(
10795
10795
  "div",
10796
10796
  {
10797
10797
  role: "alertdialog",
@@ -10837,7 +10837,7 @@ function Ja({
10837
10837
  )
10838
10838
  ]
10839
10839
  }
10840
- ) }) : null;
10840
+ ) });
10841
10841
  }
10842
10842
  Ja.propTypes = {
10843
10843
  children: I.node.isRequired,
@@ -10855,9 +10855,9 @@ function ig(e, t, n) {
10855
10855
  },
10856
10856
  [n]
10857
10857
  );
10858
- xe(() => (e && window.addEventListener("message", r), () => {
10858
+ be(() => (e && window.addEventListener("message", r), () => {
10859
10859
  window.removeEventListener("message", r);
10860
- }), [e, r]), xe(() => {
10860
+ }), [e, r]), be(() => {
10861
10861
  let i;
10862
10862
  return e && (i = document.createElement("style"), document.head.appendChild(i), ((a) => {
10863
10863
  i.innerHTML = `
@@ -10878,16 +10878,15 @@ function ig(e, t, n) {
10878
10878
  }, [e, t]);
10879
10879
  }
10880
10880
  function og(e) {
10881
- const [t, n] = Me(null);
10882
- return xe(() => {
10883
- console.log("Chatbot - optimizely mount");
10881
+ const [t, n] = ye(null);
10882
+ return be(() => {
10884
10883
  try {
10885
10884
  (() => {
10886
10885
  var i, o, a;
10887
- (i = window.experiments) != null && i[e] ? (console.log("Chatbot - optimizely mount experiment variation exist"), n(
10886
+ (i = window.experiments) != null && i[e] ? (console.log("Chatbot - Optimizely experiment variation exist"), n(
10888
10887
  (a = (o = window.experiments) == null ? void 0 : o[e]) == null ? void 0 : a.variation
10889
10888
  )) : (console.log(
10890
- "Chatbot - optimizely mount experiment variation does not exist"
10889
+ "Chatbot - Optimizely experiment variation does not exist"
10891
10890
  ), window.experiments = window.experiments || {}, window.experiments[e] = {}, window.experiments[e].handleLoaded = () => {
10892
10891
  var l, s;
10893
10892
  /* istanbul ignore next @preserve */
@@ -10902,14 +10901,14 @@ function og(e) {
10902
10901
  }
10903
10902
  return () => {
10904
10903
  var r, i;
10905
- console.log("Chatbot - optimizely unmount"), window.experiments = {}, (i = (r = window == null ? void 0 : window.optimizely) == null ? void 0 : r.push) == null || i.call(r, { type: "activate" });
10904
+ window.experiments = {}, (i = (r = window == null ? void 0 : window.optimizely) == null ? void 0 : r.push) == null || i.call(r, { type: "activate" });
10906
10905
  };
10907
10906
  }, [e]), console.log(
10908
- `Chatbot - optimizely return experimentVariation: ${t}`
10907
+ `Chatbot - Optimizely experimentVariation: ${t}`
10909
10908
  ), t;
10910
10909
  }
10911
10910
  function ag(e) {
10912
- xe(() => {
10911
+ be(() => {
10913
10912
  e();
10914
10913
  const t = () => document.visibilityState === "visible" && e();
10915
10914
  return document.addEventListener("visibilitychange", t), () => {
@@ -10942,7 +10941,7 @@ function ti({ submitEventExternal: e }) {
10942
10941
  userTracking: o,
10943
10942
  webExperimentation: a,
10944
10943
  xpertKey: l
10945
- } = _e(Fe), s = rt(cg), [, u] = Me(!1), [, c] = Me(!1), [p, m] = Me(pg), [f, v] = Me(!1), [x, k] = Me(!1), [M, z] = Me(!1), [E, _] = Me(""), [U, b] = Me(!1), [L, $] = Me(!0), [W, X] = Me(!1), [A, w] = Me(!1), [j, O] = Me(!1), F = We(null), B = We(null), V = We(null), q = Le.get(`${l}-test`) === "1";
10944
+ } = _e(Fe), s = rt(cg), [, u] = ye(!1), [, c] = ye(!1), [p, m] = ye(pg), [f, v] = ye(!1), [b, k] = ye(!1), [M, z] = ye(!1), [E, _] = ye(""), [U, x] = ye(!1), [L, $] = ye(!0), [W, X] = ye(!1), [A, w] = ye(!1), [j, O] = ye(!1), F = We(null), B = We(null), V = We(null), q = Le.get(`${l}-test`) === "1";
10946
10945
  ig(
10947
10946
  n.liveChat.enabled,
10948
10947
  M,
@@ -10995,8 +10994,7 @@ function ti({ submitEventExternal: e }) {
10995
10994
  v(!1);
10996
10995
  }
10997
10996
  }, [l, t.endpoint]);
10998
- ag(g), xe(() => {
10999
- console.log("Chatbot - Find Segment mount");
10997
+ ag(g), be(() => {
11000
10998
  let R, ee;
11001
10999
  return o.enabled && (R = setInterval(() => {
11002
11000
  var le;
@@ -11004,17 +11002,16 @@ function ti({ submitEventExternal: e }) {
11004
11002
  }, 1e3), ee = setTimeout(() => {
11005
11003
  clearInterval(R);
11006
11004
  }, 6e4)), () => {
11007
- console.log("Chatbot - Find Segment unmount"), clearInterval(R), clearTimeout(ee);
11005
+ clearInterval(R), clearTimeout(ee);
11008
11006
  };
11009
- }, [o.enabled, o.prefix]), xe(() => {
11010
- console.log("Chatbot - Find Optimizely mount");
11007
+ }, [o.enabled, o.prefix]), be(() => {
11011
11008
  let R, ee;
11012
11009
  return R = setInterval(() => {
11013
11010
  a.enabled && (console.log("Chatbot - Finding Optimizely"), window.optimizely && window.experiments && (console.log("Chatbot - Optimizely found"), clearInterval(R), clearTimeout(ee), c(!0)));
11014
11011
  }, 1e3), ee = setTimeout(() => {
11015
11012
  clearInterval(R);
11016
11013
  }, 6e4), () => {
11017
- console.log("Chatbot - Find Optimizely unmount"), clearInterval(R), clearTimeout(ee);
11014
+ clearInterval(R), clearTimeout(ee);
11018
11015
  };
11019
11016
  }, [a.enabled, a.experimentName]);
11020
11017
  const he = (R) => {
@@ -11028,18 +11025,15 @@ function ti({ submitEventExternal: e }) {
11028
11025
  isTestUser: q
11029
11026
  }
11030
11027
  });
11031
- }, ye = og(
11028
+ }, Me = og(
11032
11029
  a.experimentName
11033
11030
  );
11034
11031
  if (a.enabled && !a.experimentName && !q)
11035
11032
  return a.enabled && !a.experimentName && console.log(
11036
- `Chatbot - Experiment not setup: ${l}, ${ye}, ${window.optimizely}`
11033
+ `Chatbot - Experiment not setup: ${l}, ${Me}, ${window.optimizely}`
11037
11034
  ), q || console.log(`Chatbot - Test user not setup: ${l}, ${q}`), null;
11038
11035
  if (o.prefix && !((at = V == null ? void 0 : V.current) != null && at.track) && !e)
11039
11036
  return console.log(`Chatbot - Segment not setup: ${l}`), null;
11040
- console.log(
11041
- `Chatbot - All things setup: ${l}, ${typeof window.analytics}, ${ye}, ${typeof window.optimizely}, ${typeof window.experiments}`
11042
- );
11043
11037
  const h = () => {
11044
11038
  _(""), B.current.value = "", B.current.style.height = "auto";
11045
11039
  }, ge = (R, ee) => {
@@ -11079,7 +11073,7 @@ function ti({ submitEventExternal: e }) {
11079
11073
  if (R.trim().length === 0)
11080
11074
  return;
11081
11075
  const ee = /* @__PURE__ */ new Date();
11082
- O(!1), b(!1);
11076
+ O(!1), x(!1);
11083
11077
  const me = p.filter((J) => J.role === "user").length + 1;
11084
11078
  K({
11085
11079
  name: `${o.prefix}.bi.xpert.chatbot.popup.chat.message.sent`,
@@ -11150,7 +11144,7 @@ function ti({ submitEventExternal: e }) {
11150
11144
  }
11151
11145
  ]), w(!1), v(!1), h(), O(!0);
11152
11146
  } catch (ee) {
11153
- v(!1), h(), b(!0), console.error(ee);
11147
+ v(!1), h(), x(!0), console.error(ee);
11154
11148
  }
11155
11149
  }, we = () => {
11156
11150
  z(!1), k(!0), K({
@@ -11224,14 +11218,14 @@ function ti({ submitEventExternal: e }) {
11224
11218
  feedbackThumbType: ee
11225
11219
  }) : le);
11226
11220
  m(me), w(!1);
11227
- }, Xe = ((mt = r.animatedGraduate) == null ? void 0 : mt.enabled) && a.enabled && ye === "A", gt = i.enabled ? Xe ? s ? i.style.mobile.animatedGraduateExperiment : i.style.animatedGraduateExperiment : s ? i.style.mobile : i.style : null;
11221
+ }, Xe = ((mt = r.animatedGraduate) == null ? void 0 : mt.enabled) && a.enabled && Me === "A", gt = i.enabled ? Xe ? s ? i.style.mobile.animatedGraduateExperiment : i.style.animatedGraduateExperiment : s ? i.style.mobile : i.style : null;
11228
11222
  return (
11229
11223
  // do not remove this class as it's needed to turn off chatbot
11230
- /* @__PURE__ */ N.jsxs("div", { className: "xpert-chatbot-frontend-killswitch", children: [
11224
+ /* @__PURE__ */ N.jsxs("div", { className: "xpert_chatbot", tabIndex: -1, children: [
11231
11225
  i.enabled && /* @__PURE__ */ N.jsx(
11232
11226
  Ja,
11233
11227
  {
11234
- showMessage: !x,
11228
+ showMessage: !b,
11235
11229
  style: gt,
11236
11230
  onClose: Ae,
11237
11231
  onClick: Be,
@@ -11267,7 +11261,7 @@ function ti({ submitEventExternal: e }) {
11267
11261
  }
11268
11262
  ),
11269
11263
  /* @__PURE__ */ N.jsx(Us, {}),
11270
- x && !M && /* @__PURE__ */ N.jsx(Ar, { isNormalSize: L, isMounted: W, children: /* @__PURE__ */ N.jsx(
11264
+ b && !M && /* @__PURE__ */ N.jsx(Ar, { isNormalSize: L, isMounted: W, children: /* @__PURE__ */ N.jsx(
11271
11265
  "div",
11272
11266
  {
11273
11267
  ref: F,