@2uinc/frontend-component-xpert-chatbot 1.13.6 → 1.13.8-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 +691 -697
  2. package/package.json +1 -1
@@ -1,4 +1,4 @@
1
- import tt, { createContext as ns, useMemo as rs, useState as ye, 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: {
@@ -377,7 +377,7 @@ const is = {
377
377
  sourceCode: "https://live-chat.ps.five9.com/Five9ChatPlugin.js",
378
378
  options: {
379
379
  appId: "2U Inc",
380
- configId: "GS | Support_Main_Flow_Xpert"
380
+ configId: "Degree | Support_Main_Flow_Xpert"
381
381
  }
382
382
  }
383
383
  }
@@ -457,7 +457,7 @@ const is = {
457
457
  sourceCode: "https://live-chat.ps.five9.com/Five9ChatPlugin.js",
458
458
  options: {
459
459
  appId: "2U Inc",
460
- configId: "GS | Support_Main_Flow_Xpert"
460
+ configId: "Degree | Support_Main_Flow_Xpert"
461
461
  }
462
462
  }
463
463
  }
@@ -487,7 +487,7 @@ function No(e) {
487
487
  });
488
488
  }), n;
489
489
  }
490
- var Io = { exports: {} }, Vt = {};
490
+ var Do = { exports: {} }, Vt = {};
491
491
  /*
492
492
  object-assign
493
493
  (c) Sindre Sorhus
@@ -530,11 +530,11 @@ fs();
530
530
  * This source code is licensed under the MIT license found in the
531
531
  * LICENSE file in the root directory of this source tree.
532
532
  */
533
- var ds = tt, Do = 60103;
533
+ var ds = tt, Io = 60103;
534
534
  Vt.Fragment = 60107;
535
535
  if (typeof Symbol == "function" && Symbol.for) {
536
536
  var hi = Symbol.for;
537
- Do = hi("react.element"), Vt.Fragment = hi("react.fragment");
537
+ Io = hi("react.element"), Vt.Fragment = hi("react.fragment");
538
538
  }
539
539
  var hs = ds.__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED.ReactCurrentOwner, gs = Object.prototype.hasOwnProperty, ms = { key: !0, ref: !0, __self: !0, __source: !0 };
540
540
  function ko(e, t, n) {
@@ -545,12 +545,12 @@ function ko(e, t, n) {
545
545
  if (e && e.defaultProps)
546
546
  for (r in t = e.defaultProps, t)
547
547
  i[r] === void 0 && (i[r] = t[r]);
548
- return { $$typeof: Do, type: e, key: o, ref: a, props: i, _owner: hs.current };
548
+ return { $$typeof: Io, type: e, key: o, ref: a, props: i, _owner: hs.current };
549
549
  }
550
550
  Vt.jsx = ko;
551
551
  Vt.jsxs = ko;
552
- Io.exports = Vt;
553
- var N = Io.exports;
552
+ Do.exports = Vt;
553
+ var N = Do.exports;
554
554
  /*! js-cookie v3.0.5 | MIT */
555
555
  function tn(e) {
556
556
  for (var t = 1; t < arguments.length; t++) {
@@ -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
  );
@@ -667,13 +667,13 @@ var ws = function() {
667
667
  };
668
668
  jo.exports = ws();
669
669
  var Q = jo.exports;
670
- const I = /* @__PURE__ */ nt(Q);
670
+ const D = /* @__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\]$/, 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[x] = h[k] = h[z] = h[_] = h[U] = h[b] = h[$] = !1;
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() {
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
+ var ge = typeof en == "object" && en && en.Object === Object && en, Ie = typeof self == "object" && self && self.Object === Object && self, re = ge || Ie || 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;
679
679
  return d || Ae && Ae.binding && Ae.binding("util");
@@ -714,7 +714,7 @@ dn.exports;
714
714
  var at = Array.prototype, mt = Function.prototype, R = Object.prototype, ee = re["__core-js_shared__"], me = mt.toString, le = R.hasOwnProperty, Qe = function() {
715
715
  var d = /[^.]+$/.exec(ee && ee.keys && ee.keys.IE_PROTO || "");
716
716
  return d ? "Symbol(src)_1." + d : "";
717
- }(), $e = R.toString, yt = me.call(Object), D = RegExp(
717
+ }(), $e = R.toString, yt = me.call(Object), I = RegExp(
718
718
  "^" + me.call(le).replace(g, "\\$&").replace(/hasOwnProperty|(function).*?(?=\\\()| for .+?(?=\\\])/g, "$1.*?") + "$"
719
719
  ), S = Be ? re.Buffer : void 0, Y = re.Symbol, J = re.Uint8Array, oe = S ? S.allocUnsafe : void 0, Te = gt(Object.getPrototypeOf, Object), Ye = Object.create, He = R.propertyIsEnumerable, lt = at.splice, ke = Y ? Y.toStringTag : void 0, ue = function() {
720
720
  try {
@@ -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)
@@ -883,17 +883,17 @@ dn.exports;
883
883
  writable: !0
884
884
  }) : d[y] = T;
885
885
  }
886
- var Il = Pl();
886
+ var Dl = Pl();
887
887
  function Kt(d) {
888
888
  return d == null ? d === void 0 ? L : M : ke && ke in Object(d) ? Rl(d) : $l(d);
889
889
  }
890
890
  function ri(d) {
891
891
  return St(d) && Kt(d) == l;
892
892
  }
893
- function Dl(d) {
893
+ function Il(d) {
894
894
  if (!ut(d) || Yl(d))
895
895
  return !1;
896
- var y = qn(d) ? D : he;
896
+ var y = qn(d) ? I : he;
897
897
  return y.test(Gl(d));
898
898
  }
899
899
  function kl(d) {
@@ -908,8 +908,8 @@ dn.exports;
908
908
  return T;
909
909
  }
910
910
  function ii(d, y, T, P, ne) {
911
- d !== y && Il(y, function(se, fe) {
912
- if (ne || (ne = new bt()), ut(se))
911
+ d !== y && Dl(y, function(se, fe) {
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;
@@ -996,7 +996,7 @@ dn.exports;
996
996
  }
997
997
  function Bn(d, y) {
998
998
  var T = Xe(d, y);
999
- return Dl(T) ? T : void 0;
999
+ return Il(T) ? T : void 0;
1000
1000
  }
1001
1001
  function Rl(d) {
1002
1002
  var y = le.call(d, ke), T = d[ke];
@@ -1259,18 +1259,18 @@ const Ao = /* @__PURE__ */ nt(vs), Ts = {
1259
1259
  "exec-ed-ss-olc-moodle": Ts,
1260
1260
  "degrees-canvas-support": ls,
1261
1261
  "degrees-moodle-support": ss
1262
- }, Is = (e, t = {}) => {
1262
+ }, Ds = (e, t = {}) => {
1263
1263
  if (!e && (!t || Object.keys(t).length === 0))
1264
1264
  throw new Error("xpertKey or configurations is required");
1265
1265
  const n = Ns[e] || {};
1266
1266
  return Ao(n, t);
1267
- }, Ds = Is, So = ns({}), Oo = ({
1267
+ }, Is = Ds, So = ns({}), Oo = ({
1268
1268
  children: e,
1269
1269
  configurations: t = null,
1270
1270
  xpertKey: n = null
1271
1271
  }) => {
1272
1272
  const r = rs(
1273
- () => Ds(n, t),
1273
+ () => Is(n, t),
1274
1274
  [t, n]
1275
1275
  );
1276
1276
  return /* @__PURE__ */ N.jsx(So.Provider, { value: { ...r }, children: e });
@@ -1393,7 +1393,7 @@ const Lo = /* @__PURE__ */ nt(ks), js = 576, Es = (e) => {
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,
@@ -1426,11 +1426,11 @@ function wn({
1426
1426
  );
1427
1427
  }
1428
1428
  wn.propTypes = {
1429
- label: I.string.isRequired,
1430
- onClick: I.func.isRequired,
1431
- children: I.node.isRequired,
1432
- className: I.string,
1433
- style: I.shape()
1429
+ label: D.string.isRequired,
1430
+ onClick: D.func.isRequired,
1431
+ children: D.node.isRequired,
1432
+ className: D.string,
1433
+ style: D.shape()
1434
1434
  };
1435
1435
  wn.defaultProps = {
1436
1436
  className: "",
@@ -1470,7 +1470,7 @@ const zt = "data:image/svg+xml;base64,PHN2ZyB4bWxucz0iaHR0cDovL3d3dy53My5vcmcvMj
1470
1470
  );
1471
1471
  };
1472
1472
  jr.propTypes = {
1473
- handleFloatingActionButtonClick: I.func
1473
+ handleFloatingActionButtonClick: D.func
1474
1474
  };
1475
1475
  jr.defaultProps = {
1476
1476
  handleFloatingActionButtonClick: null
@@ -1480,11 +1480,11 @@ const zs = 991, Ls = 1500, _s = `The parent container is wider than the chatbot
1480
1480
  eyes follow your mouse when you hover near it.`, Er = ({
1481
1481
  handleFloatingActionButtonClick: e
1482
1482
  }) => {
1483
- var m, f, v, x, k, M, z;
1483
+ var m, f, v, b, k, M, z;
1484
1484
  const { xpertKey: t, launchButton: n } = _e(Fe), r = !Le.get(
1485
1485
  `${t}-proactive-message-xpert-chatbot`
1486
1486
  ), 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);
1487
- xe(() => {
1487
+ be(() => {
1488
1488
  const _ = setTimeout(
1489
1489
  () => {
1490
1490
  s(!0);
@@ -1494,12 +1494,12 @@ eyes follow your mouse when you hover near it.`, Er = ({
1494
1494
  return () => {
1495
1495
  clearTimeout(_);
1496
1496
  };
1497
- }, [a]), xe(() => {
1497
+ }, [a]), be(() => {
1498
1498
  const E = (_) => {
1499
1499
  const U = window.matchMedia(
1500
1500
  `(max-width: ${Ls}px)`
1501
- ).matches, b = window.devicePixelRatio > 1.5;
1502
- if (!(o != null && o.current) || U || b)
1501
+ ).matches, x = window.devicePixelRatio > 1.5;
1502
+ if (!(o != null && o.current) || U || x)
1503
1503
  return;
1504
1504
  i.current.querySelectorAll(
1505
1505
  ".xpert_chatbot__animated_graduate__pupil"
@@ -1533,7 +1533,7 @@ eyes follow your mouse when you hover near it.`, Er = ({
1533
1533
  onClick: e,
1534
1534
  label: "Open XPERT Chatbot",
1535
1535
  className: "xpert-chatbot-button__animated_graduate__launch-button",
1536
- style: u ? { ...(x = (v = n.style) == null ? void 0 : v.mobile) == null ? void 0 : x.animatedGraduateExperiment } : { ...(k = n.style) == null ? void 0 : k.animatedGraduateExperiment },
1536
+ style: u ? { ...(b = (v = n.style) == null ? void 0 : v.mobile) == null ? void 0 : b.animatedGraduateExperiment } : { ...(k = n.style) == null ? void 0 : k.animatedGraduateExperiment },
1537
1537
  "aria-haspopup": "dialog",
1538
1538
  "aria-expanded": open,
1539
1539
  children: /* @__PURE__ */ N.jsx("div", { ref: i, children: /* @__PURE__ */ N.jsxs(
@@ -1681,7 +1681,7 @@ eyes follow your mouse when you hover near it.`, Er = ({
1681
1681
  );
1682
1682
  };
1683
1683
  Er.propTypes = {
1684
- handleFloatingActionButtonClick: I.func
1684
+ handleFloatingActionButtonClick: D.func
1685
1685
  };
1686
1686
  Er.defaultProps = {
1687
1687
  handleFloatingActionButtonClick: null
@@ -1977,9 +1977,9 @@ var Mi = {
1977
1977
  return Ut(t) && !t.shiftKey;
1978
1978
  }, uu = function(t) {
1979
1979
  return Ut(t) && t.shiftKey;
1980
- }, bi = function(t) {
1980
+ }, xi = function(t) {
1981
1981
  return setTimeout(t, 0);
1982
- }, xi = function(t, n) {
1982
+ }, bi = function(t, n) {
1983
1983
  var r = -1;
1984
1984
  return t.every(function(i, o) {
1985
1985
  return n(i) ? (r = o, !1) : !0;
@@ -2146,7 +2146,7 @@ var Mi = {
2146
2146
  preventScroll: !!o.preventScroll
2147
2147
  }), a.mostRecentlyFocusedNode = w, au(w) && w.select();
2148
2148
  }
2149
- }, x = function(w) {
2149
+ }, b = function(w) {
2150
2150
  var j = c("setReturnFocus", w);
2151
2151
  return j || (j === !1 ? !1 : w);
2152
2152
  }, k = function(w) {
@@ -2158,7 +2158,7 @@ var Mi = {
2158
2158
  if (q < 0)
2159
2159
  B ? V = a.tabbableGroups[a.tabbableGroups.length - 1].lastTabbableNode : V = a.tabbableGroups[0].firstTabbableNode;
2160
2160
  else if (B) {
2161
- var g = xi(a.tabbableGroups, function(re) {
2161
+ var g = bi(a.tabbableGroups, function(re) {
2162
2162
  var we = re.firstTabbableNode;
2163
2163
  return j === we;
2164
2164
  });
@@ -2168,13 +2168,13 @@ var Mi = {
2168
2168
  } else
2169
2169
  Ut(O) || (V = K.nextTabbableNode(j, !1));
2170
2170
  } else {
2171
- var h = xi(a.tabbableGroups, function(re) {
2171
+ var h = bi(a.tabbableGroups, function(re) {
2172
2172
  var we = re.lastTabbableNode;
2173
2173
  return j === we;
2174
2174
  });
2175
2175
  if (h < 0 && (K.container === j || sn(j, o.tabbableOptions) && !ct(j, o.tabbableOptions) && !K.nextTabbableNode(j)) && (h = q), h >= 0) {
2176
- var ge = h === a.tabbableGroups.length - 1 ? 0 : h + 1, De = a.tabbableGroups[ge];
2177
- V = et(j) >= 0 ? De.firstTabbableNode : De.firstDomTabbableNode;
2176
+ var ge = h === a.tabbableGroups.length - 1 ? 0 : h + 1, Ie = a.tabbableGroups[ge];
2177
+ V = et(j) >= 0 ? Ie.firstTabbableNode : Ie.firstDomTabbableNode;
2178
2178
  } else
2179
2179
  Ut(O) || (V = K.nextTabbableNode(j));
2180
2180
  }
@@ -2247,9 +2247,9 @@ var Mi = {
2247
2247
  }, U = function(w) {
2248
2248
  var j = nn(w);
2249
2249
  u(j, w) >= 0 || Lt(o.clickOutsideDeactivates, w) || Lt(o.allowOutsideClick, w) || (w.preventDefault(), w.stopImmediatePropagation());
2250
- }, b = function() {
2250
+ }, x = function() {
2251
2251
  if (a.active)
2252
- return Mi.activateTrap(i, l), a.delayInitialFocusTimer = o.delayInitialFocus ? bi(function() {
2252
+ return Mi.activateTrap(i, l), a.delayInitialFocusTimer = o.delayInitialFocus ? xi(function() {
2253
2253
  v(p());
2254
2254
  }) : v(p()), r.addEventListener("focusin", z, !0), r.addEventListener("mousedown", M, {
2255
2255
  capture: !0,
@@ -2296,7 +2296,7 @@ var Mi = {
2296
2296
  var j = s(w, "onActivate"), O = s(w, "onPostActivate"), F = s(w, "checkCanFocusTrap");
2297
2297
  F || m(), a.active = !0, a.paused = !1, a.nodeFocusedBeforeActivation = r.activeElement, j == null || j();
2298
2298
  var B = function() {
2299
- F && m(), b(), X(), O == null || O();
2299
+ F && m(), x(), X(), O == null || O();
2300
2300
  };
2301
2301
  return F ? (F(a.containers.concat()).then(B, B), this) : (B(), this);
2302
2302
  },
@@ -2312,11 +2312,11 @@ var Mi = {
2312
2312
  var O = s(j, "onDeactivate"), F = s(j, "onPostDeactivate"), B = s(j, "checkCanReturnFocus"), V = s(j, "returnFocus", "returnFocusOnDeactivate");
2313
2313
  O == null || O();
2314
2314
  var q = function() {
2315
- bi(function() {
2316
- V && v(x(a.nodeFocusedBeforeActivation)), F == null || F();
2315
+ xi(function() {
2316
+ V && v(b(a.nodeFocusedBeforeActivation)), F == null || F();
2317
2317
  });
2318
2318
  };
2319
- return V && B ? (B(x(a.nodeFocusedBeforeActivation)).then(q, q), this) : (q(), this);
2319
+ return V && B ? (B(b(a.nodeFocusedBeforeActivation)).then(q, q), this) : (q(), this);
2320
2320
  },
2321
2321
  pause: function(w) {
2322
2322
  if (a.paused || !a.active)
@@ -2328,7 +2328,7 @@ var Mi = {
2328
2328
  if (!a.paused || !a.active)
2329
2329
  return this;
2330
2330
  var j = s(w, "onUnpause"), O = s(w, "onPostUnpause");
2331
- return a.paused = !1, j == null || j(), m(), b(), X(), O == null || O(), this;
2331
+ return a.paused = !1, j == null || j(), m(), x(), X(), O == null || O(), this;
2332
2332
  },
2333
2333
  updateContainerElements: function(w) {
2334
2334
  var j = [].concat(w).filter(Boolean);
@@ -2374,7 +2374,7 @@ function pr(e, t) {
2374
2374
  }, pr(e, t);
2375
2375
  }
2376
2376
  function Mu(e) {
2377
- var t = xu();
2377
+ var t = bu();
2378
2378
  return function() {
2379
2379
  var r = Mn(e), i;
2380
2380
  if (t) {
@@ -2382,10 +2382,10 @@ function Mu(e) {
2382
2382
  i = Reflect.construct(r, arguments, o);
2383
2383
  } else
2384
2384
  i = r.apply(this, arguments);
2385
- return bu(this, i);
2385
+ return xu(this, i);
2386
2386
  };
2387
2387
  }
2388
- function bu(e, t) {
2388
+ function xu(e, t) {
2389
2389
  if (t && (Tt(t) === "object" || typeof t == "function"))
2390
2390
  return t;
2391
2391
  if (t !== void 0)
@@ -2397,7 +2397,7 @@ function Rt(e) {
2397
2397
  throw new ReferenceError("this hasn't been initialised - super() hasn't been called");
2398
2398
  return e;
2399
2399
  }
2400
- function xu() {
2400
+ function bu() {
2401
2401
  if (typeof Reflect > "u" || !Reflect.construct || Reflect.construct.sham)
2402
2402
  return !1;
2403
2403
  if (typeof Proxy == "function")
@@ -2433,7 +2433,7 @@ function vu(e, t) {
2433
2433
  }
2434
2434
  return (t === "string" ? String : Number)(e);
2435
2435
  }
2436
- var rn = tt, H = Q, Tu = du, Nu = Tu.createFocusTrap, Iu = hu, Du = Iu.isFocusable, Cr = /* @__PURE__ */ function(e) {
2436
+ var rn = tt, H = Q, Tu = du, Nu = Tu.createFocusTrap, Du = hu, Iu = Du.isFocusable, Cr = /* @__PURE__ */ function(e) {
2437
2437
  yu(n, e);
2438
2438
  var t = Mu(n);
2439
2439
  function n(r) {
@@ -2561,7 +2561,7 @@ var rn = tt, H = Q, Tu = du, Nu = Tu.createFocusTrap, Iu = hu, Du = Iu.isFocusab
2561
2561
  i.outsideClick.allowDeactivation && // is the outside node NOT focusable (implying that it did NOT receive focus
2562
2562
  // as a result of the click-through) -- in which case do NOT restore focus
2563
2563
  // to `returnFocusNode` because focus should remain on the outside node
2564
- !Du(i.outsideClick.target, i.internalOptions.tabbableOptions))), u = i.internalOptions.preventScroll, c = u === void 0 ? !1 : u;
2564
+ !Iu(i.outsideClick.target, i.internalOptions.tabbableOptions))), u = i.internalOptions.preventScroll, c = u === void 0 ? !1 : u;
2565
2565
  s && l.focus({
2566
2566
  preventScroll: c
2567
2567
  }), i.originalOptions.onPostDeactivate && i.originalOptions.onPostDeactivate.call(null), i.outsideClick = null;
@@ -2719,11 +2719,11 @@ function Ar({
2719
2719
  );
2720
2720
  }
2721
2721
  Ar.propTypes = {
2722
- children: I.node.isRequired,
2723
- style: I.shape(),
2724
- isMounted: I.bool,
2725
- className: I.string,
2726
- isNormalSize: I.bool
2722
+ children: D.node.isRequired,
2723
+ style: D.shape(),
2724
+ isMounted: D.bool,
2725
+ className: D.string,
2726
+ isNormalSize: D.bool
2727
2727
  };
2728
2728
  Ar.defaultProps = {
2729
2729
  style: {},
@@ -2738,13 +2738,13 @@ const qo = Object.freeze(
2738
2738
  width: 16,
2739
2739
  height: 16
2740
2740
  }
2741
- ), bn = Object.freeze({
2741
+ ), xn = Object.freeze({
2742
2742
  rotate: 0,
2743
2743
  vFlip: !1,
2744
2744
  hFlip: !1
2745
2745
  }), Sr = Object.freeze({
2746
2746
  ...qo,
2747
- ...bn
2747
+ ...xn
2748
2748
  }), fr = Object.freeze({
2749
2749
  ...Sr,
2750
2750
  body: "",
@@ -2759,7 +2759,7 @@ function Cu(e, t) {
2759
2759
  function vi(e, t) {
2760
2760
  const n = Cu(e, t);
2761
2761
  for (const r in fr)
2762
- 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]);
2762
+ 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]);
2763
2763
  return n;
2764
2764
  }
2765
2765
  function Au(e, t) {
@@ -2945,9 +2945,9 @@ const Zo = Object.freeze({
2945
2945
  // Dimensions
2946
2946
  ...Zo,
2947
2947
  // Transformations
2948
- ...bn
2948
+ ...xn
2949
2949
  }), Pu = /(-?[0-9.]*[0-9]+[0-9.]*)/g, Ru = /^-?[0-9.]*[0-9]+[0-9.]*$/g;
2950
- function Ii(e, t, n) {
2950
+ function Di(e, t, n) {
2951
2951
  if (t === 1)
2952
2952
  return e;
2953
2953
  if (n = n || 100, typeof e == "number")
@@ -3009,9 +3009,9 @@ function Hu(e, t) {
3009
3009
  height: n.height
3010
3010
  };
3011
3011
  let o = n.body;
3012
- [n, r].forEach((x) => {
3013
- const k = [], M = x.hFlip, z = x.vFlip;
3014
- let E = x.rotate;
3012
+ [n, r].forEach((b) => {
3013
+ const k = [], M = b.hFlip, z = b.vFlip;
3014
+ let E = b.rotate;
3015
3015
  M ? z ? E += 2 : (k.push(
3016
3016
  "translate(" + (i.width + i.left).toString() + " " + (0 - i.top).toString() + ")"
3017
3017
  ), k.push("scale(-1 1)"), i.top = i.left = 0) : z && (k.push(
@@ -3043,9 +3043,9 @@ function Hu(e, t) {
3043
3043
  });
3044
3044
  const a = r.width, l = r.height, s = i.width, u = i.height;
3045
3045
  let c, p;
3046
- 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);
3047
- const m = {}, f = (x, k) => {
3048
- Yu(k) || (m[x] = k.toString());
3046
+ a === null ? (p = l === null ? "1em" : l === "auto" ? u : l, c = Di(p, s / u)) : (c = a === "auto" ? s : a, p = l === null ? Di(c, u / s) : l === "auto" ? u : l);
3047
+ const m = {}, f = (b, k) => {
3048
+ Yu(k) || (m[b] = k.toString());
3049
3049
  };
3050
3050
  f("width", c), f("height", p);
3051
3051
  const v = [i.left, i.top, s, u];
@@ -3131,7 +3131,7 @@ const Ku = () => {
3131
3131
  } catch {
3132
3132
  }
3133
3133
  };
3134
- let Di = Ku();
3134
+ let Ii = Ku();
3135
3135
  function Xu(e, t) {
3136
3136
  const n = _r(e);
3137
3137
  if (!n)
@@ -3178,7 +3178,7 @@ function tc(e) {
3178
3178
  return "/";
3179
3179
  }
3180
3180
  const nc = (e, t, n) => {
3181
- if (!Di) {
3181
+ if (!Ii) {
3182
3182
  n("abort", 424);
3183
3183
  return;
3184
3184
  }
@@ -3201,7 +3201,7 @@ const nc = (e, t, n) => {
3201
3201
  return;
3202
3202
  }
3203
3203
  let i = 503;
3204
- Di(e + r).then((o) => {
3204
+ Ii(e + r).then((o) => {
3205
3205
  const a = o.status;
3206
3206
  if (a !== 200) {
3207
3207
  setTimeout(() => {
@@ -3332,12 +3332,12 @@ function cc(e, t, n, r) {
3332
3332
  const i = e.resources.length, o = e.random ? Math.floor(Math.random() * i) : e.index;
3333
3333
  let a;
3334
3334
  if (e.random) {
3335
- let b = e.resources.slice(0);
3336
- for (a = []; b.length > 1; ) {
3337
- const L = Math.floor(Math.random() * b.length);
3338
- a.push(b[L]), b = b.slice(0, L).concat(b.slice(L + 1));
3335
+ let x = e.resources.slice(0);
3336
+ for (a = []; x.length > 1; ) {
3337
+ const L = Math.floor(Math.random() * x.length);
3338
+ a.push(x[L]), x = x.slice(0, L).concat(x.slice(L + 1));
3339
3339
  }
3340
- a = a.concat(b);
3340
+ a = a.concat(x);
3341
3341
  } else
3342
3342
  a = e.resources.slice(o).concat(e.resources.slice(0, o));
3343
3343
  const l = Date.now();
@@ -3346,13 +3346,13 @@ function cc(e, t, n, r) {
3346
3346
  function v() {
3347
3347
  p && (clearTimeout(p), p = null);
3348
3348
  }
3349
- function x() {
3350
- s === "pending" && (s = "aborted"), v(), m.forEach((b) => {
3351
- b.status === "pending" && (b.status = "aborted");
3349
+ function b() {
3350
+ s === "pending" && (s = "aborted"), v(), m.forEach((x) => {
3351
+ x.status === "pending" && (x.status = "aborted");
3352
3352
  }), m = [];
3353
3353
  }
3354
- function k(b, L) {
3355
- L && (f = []), typeof b == "function" && f.push(b);
3354
+ function k(x, L) {
3355
+ L && (f = []), typeof x == "function" && f.push(x);
3356
3356
  }
3357
3357
  function M() {
3358
3358
  return {
@@ -3362,22 +3362,22 @@ function cc(e, t, n, r) {
3362
3362
  queriesSent: u,
3363
3363
  queriesPending: m.length,
3364
3364
  subscribe: k,
3365
- abort: x
3365
+ abort: b
3366
3366
  };
3367
3367
  }
3368
3368
  function z() {
3369
- s = "failed", f.forEach((b) => {
3370
- b(void 0, c);
3369
+ s = "failed", f.forEach((x) => {
3370
+ x(void 0, c);
3371
3371
  });
3372
3372
  }
3373
3373
  function E() {
3374
- m.forEach((b) => {
3375
- b.status === "pending" && (b.status = "aborted");
3374
+ m.forEach((x) => {
3375
+ x.status === "pending" && (x.status = "aborted");
3376
3376
  }), m = [];
3377
3377
  }
3378
- function _(b, L, $) {
3378
+ function _(x, L, $) {
3379
3379
  const W = L !== "success";
3380
- switch (m = m.filter((X) => X !== b), s) {
3380
+ switch (m = m.filter((X) => X !== x), s) {
3381
3381
  case "pending":
3382
3382
  break;
3383
3383
  case "failed":
@@ -3396,7 +3396,7 @@ function cc(e, t, n, r) {
3396
3396
  return;
3397
3397
  }
3398
3398
  if (v(), E(), !e.random) {
3399
- const X = e.resources.indexOf(b.resource);
3399
+ const X = e.resources.indexOf(x.resource);
3400
3400
  X !== -1 && X !== e.index && (e.index = X);
3401
3401
  }
3402
3402
  s = "completed", f.forEach((X) => {
@@ -3407,8 +3407,8 @@ function cc(e, t, n, r) {
3407
3407
  if (s !== "pending")
3408
3408
  return;
3409
3409
  v();
3410
- const b = a.shift();
3411
- if (b === void 0) {
3410
+ const x = a.shift();
3411
+ if (x === void 0) {
3412
3412
  if (m.length) {
3413
3413
  p = setTimeout(() => {
3414
3414
  v(), s === "pending" && (E(), z());
@@ -3420,12 +3420,12 @@ function cc(e, t, n, r) {
3420
3420
  }
3421
3421
  const L = {
3422
3422
  status: "pending",
3423
- resource: b,
3423
+ resource: x,
3424
3424
  callback: ($, W) => {
3425
3425
  _(L, $, W);
3426
3426
  }
3427
3427
  };
3428
- m.push(L), u++, p = setTimeout(U, e.rotate), n(b, t, L.callback);
3428
+ m.push(L), u++, p = setTimeout(U, e.rotate), n(x, t, L.callback);
3429
3429
  }
3430
3430
  return setTimeout(U), M;
3431
3431
  }
@@ -3637,7 +3637,7 @@ function Mc(e) {
3637
3637
  e.iconsLoaderFlag = !1, oc(e);
3638
3638
  }));
3639
3639
  }
3640
- function bc(e, t) {
3640
+ function xc(e, t) {
3641
3641
  e.iconsToLoad ? e.iconsToLoad = e.iconsToLoad.concat(t).sort() : e.iconsToLoad = t, e.iconsQueueFlag || (e.iconsQueueFlag = !0, setTimeout(() => {
3642
3642
  e.iconsQueueFlag = !1;
3643
3643
  const { provider: n, prefix: r } = e, i = e.iconsToLoad;
@@ -3671,7 +3671,7 @@ function bc(e, t) {
3671
3671
  });
3672
3672
  }));
3673
3673
  }
3674
- const xc = (e, t) => {
3674
+ const bc = (e, t) => {
3675
3675
  const n = sc(e, !0, Go()), r = ic(n);
3676
3676
  if (!r.pending.length) {
3677
3677
  let s = !0;
@@ -3700,7 +3700,7 @@ const xc = (e, t) => {
3700
3700
  f.has(p) || (f.add(p), i[u][c].push(p));
3701
3701
  }), o.forEach((s) => {
3702
3702
  const { provider: u, prefix: c } = s;
3703
- i[u][c].length && bc(s, i[u][c]);
3703
+ i[u][c].length && xc(s, i[u][c]);
3704
3704
  }), t ? lc(t, r, o) : Ai;
3705
3705
  };
3706
3706
  function wc(e, t) {
@@ -3752,17 +3752,17 @@ function Nc(e, t = 0) {
3752
3752
  }
3753
3753
  return t;
3754
3754
  }
3755
- function Ic(e, t) {
3755
+ function Dc(e, t) {
3756
3756
  let n = e.indexOf("xlink:") === -1 ? "" : ' xmlns:xlink="http://www.w3.org/1999/xlink"';
3757
3757
  for (const r in t)
3758
3758
  n += " " + r + '="' + t[r] + '"';
3759
3759
  return '<svg xmlns="http://www.w3.org/2000/svg"' + n + ">" + e + "</svg>";
3760
3760
  }
3761
- function Dc(e) {
3761
+ function Ic(e) {
3762
3762
  return e.replace(/"/g, "'").replace(/%/g, "%25").replace(/#/g, "%23").replace(/</g, "%3C").replace(/>/g, "%3E").replace(/\s+/g, " ");
3763
3763
  }
3764
3764
  function kc(e) {
3765
- return "data:image/svg+xml," + Dc(e);
3765
+ return "data:image/svg+xml," + Ic(e);
3766
3766
  }
3767
3767
  function jc(e) {
3768
3768
  return 'url("' + kc(e) + '")';
@@ -3882,14 +3882,14 @@ const zc = (e, t, n) => {
3882
3882
  __html: Cc(Wu(u.body, M ? () => M + "ID" + k++ : "iconifyReact"))
3883
3883
  }, sr("svg", s);
3884
3884
  }
3885
- const { body: p, width: m, height: f } = e, v = o === "mask" || (o === "bg" ? !1 : p.indexOf("currentColor") !== -1), x = Ic(p, {
3885
+ const { body: p, width: m, height: f } = e, v = o === "mask" || (o === "bg" ? !1 : p.indexOf("currentColor") !== -1), b = Dc(p, {
3886
3886
  ...c,
3887
3887
  width: m + "",
3888
3888
  height: f + ""
3889
3889
  });
3890
3890
  return s.style = {
3891
3891
  ...a,
3892
- "--svg": jc(x),
3892
+ "--svg": jc(b),
3893
3893
  width: zi(c.width),
3894
3894
  height: zi(c.height),
3895
3895
  ...Sc,
@@ -3941,11 +3941,11 @@ function sa(e) {
3941
3941
  name: "",
3942
3942
  data: v
3943
3943
  };
3944
- const x = Ni(v);
3945
- if (x)
3944
+ const b = Ni(v);
3945
+ if (b)
3946
3946
  return {
3947
3947
  name: v,
3948
- data: x
3948
+ data: b
3949
3949
  };
3950
3950
  }
3951
3951
  return {
@@ -3971,20 +3971,20 @@ function sa(e) {
3971
3971
  });
3972
3972
  return;
3973
3973
  }
3974
- const x = Ni(v);
3974
+ const b = Ni(v);
3975
3975
  if (u({
3976
3976
  name: v,
3977
- data: x
3977
+ data: b
3978
3978
  }))
3979
- if (x === void 0) {
3980
- const k = xc([v], c);
3979
+ if (b === void 0) {
3980
+ const k = bc([v], c);
3981
3981
  i({
3982
3982
  callback: k
3983
3983
  });
3984
3984
  } else
3985
- x && ((f = e.onLoad) === null || f === void 0 || f.call(e, v));
3985
+ b && ((f = e.onLoad) === null || f === void 0 || f.call(e, v));
3986
3986
  }
3987
- xe(() => (n(!0), s), []), xe(() => {
3987
+ be(() => (n(!0), s), []), be(() => {
3988
3988
  t && c();
3989
3989
  }, [e.icon, t]);
3990
3990
  const { name: p, data: m } = a;
@@ -4058,9 +4058,9 @@ function ua({ isNormalSize: e, setIsMounted: t, setIsNormalSize: n }) {
4058
4058
  );
4059
4059
  }
4060
4060
  ua.propTypes = {
4061
- isNormalSize: I.bool.isRequired,
4062
- setIsMounted: I.func.isRequired,
4063
- setIsNormalSize: I.func.isRequired
4061
+ isNormalSize: D.bool.isRequired,
4062
+ setIsMounted: D.func.isRequired,
4063
+ setIsNormalSize: D.func.isRequired
4064
4064
  };
4065
4065
  function ca({
4066
4066
  isNormalSize: e,
@@ -4111,7 +4111,7 @@ function ca({
4111
4111
  Nt,
4112
4112
  {
4113
4113
  icon: "material-symbols:close",
4114
- alt: "Close",
4114
+ alt: "Close Xpert dialog",
4115
4115
  style: { fontSize: "1.75rem" }
4116
4116
  }
4117
4117
  )
@@ -4120,11 +4120,11 @@ function ca({
4120
4120
  ] });
4121
4121
  }
4122
4122
  ca.propTypes = {
4123
- isNormalSize: I.bool.isRequired,
4124
- setIsMounted: I.func.isRequired,
4125
- setIsNormalSize: I.func.isRequired,
4126
- onClose: I.func.isRequired,
4127
- isMounted: I.bool.isRequired
4123
+ isNormalSize: D.bool.isRequired,
4124
+ setIsMounted: D.func.isRequired,
4125
+ setIsNormalSize: D.func.isRequired,
4126
+ onClose: D.func.isRequired,
4127
+ isMounted: D.bool.isRequired
4128
4128
  };
4129
4129
  const Rr = ({ backgroundColor: e, textColor: t }) => /* @__PURE__ */ N.jsxs(
4130
4130
  "svg",
@@ -4151,8 +4151,8 @@ const Rr = ({ backgroundColor: e, textColor: t }) => /* @__PURE__ */ N.jsxs(
4151
4151
  }
4152
4152
  );
4153
4153
  Rr.propTypes = {
4154
- backgroundColor: I.string,
4155
- textColor: I.string
4154
+ backgroundColor: D.string,
4155
+ textColor: D.string
4156
4156
  };
4157
4157
  Rr.defaultProps = {
4158
4158
  backgroundColor: "#F0CC00",
@@ -4167,7 +4167,7 @@ function pa({
4167
4167
  setIsMounted: r,
4168
4168
  onClose: i
4169
4169
  }) {
4170
- var s, u, c, p, m, f, v, x, k;
4170
+ var s, u, c, p, m, f, v, b, k;
4171
4171
  const { primaryColor: o, conversationScreen: a } = _e(Fe), l = rt(Rc);
4172
4172
  return /* @__PURE__ */ N.jsxs(
4173
4173
  "div",
@@ -4224,7 +4224,7 @@ function pa({
4224
4224
  className: "xpert-chatbot-popup__header_container",
4225
4225
  style: {
4226
4226
  right: 0,
4227
- background: ((k = (x = a.header.container) == null ? void 0 : x.style) == null ? void 0 : k.backgroun) || o
4227
+ background: ((k = (b = a.header.container) == null ? void 0 : b.style) == null ? void 0 : k.backgroun) || o
4228
4228
  }
4229
4229
  }
4230
4230
  )
@@ -4233,11 +4233,11 @@ function pa({
4233
4233
  );
4234
4234
  }
4235
4235
  pa.propTypes = {
4236
- isMounted: I.bool.isRequired,
4237
- isNormalSize: I.bool.isRequired,
4238
- setIsMounted: I.func.isRequired,
4239
- setIsNormalSize: I.func.isRequired,
4240
- onClose: I.func.isRequired
4236
+ isMounted: D.bool.isRequired,
4237
+ isNormalSize: D.bool.isRequired,
4238
+ setIsMounted: D.func.isRequired,
4239
+ setIsNormalSize: D.func.isRequired,
4240
+ onClose: D.func.isRequired
4241
4241
  };
4242
4242
  function Ur({
4243
4243
  containerStyle: e,
@@ -4252,7 +4252,7 @@ function Ur({
4252
4252
  userInput: u
4253
4253
  }) {
4254
4254
  const { primaryColor: c } = _e(Fe);
4255
- return xe(() => {
4255
+ return be(() => {
4256
4256
  var p;
4257
4257
  (o || a) && ((p = l.current) == null || p.focus());
4258
4258
  }, [a, o, l]), /* @__PURE__ */ N.jsxs("div", { className: "xpert-chatbot-popup__input--group", style: e, children: [
@@ -4300,16 +4300,16 @@ function Ur({
4300
4300
  ] });
4301
4301
  }
4302
4302
  Ur.propTypes = {
4303
- containerStyle: I.shape(),
4304
- handleChange: I.func.isRequired,
4305
- handleInput: I.func.isRequired,
4306
- handleKeyDown: I.func.isRequired,
4307
- handleSend: I.func.isRequired,
4308
- hasError: I.bool,
4309
- hasXpertMessages: I.bool,
4310
- inputRef: I.shape({ current: I.instanceOf(Object) }).isRequired,
4311
- loading: I.bool.isRequired,
4312
- userInput: I.string.isRequired
4303
+ containerStyle: D.shape(),
4304
+ handleChange: D.func.isRequired,
4305
+ handleInput: D.func.isRequired,
4306
+ handleKeyDown: D.func.isRequired,
4307
+ handleSend: D.func.isRequired,
4308
+ hasError: D.bool,
4309
+ hasXpertMessages: D.bool,
4310
+ inputRef: D.shape({ current: D.instanceOf(Object) }).isRequired,
4311
+ loading: D.bool.isRequired,
4312
+ userInput: D.string.isRequired
4313
4313
  };
4314
4314
  Ur.defaultProps = {
4315
4315
  containerStyle: void 0,
@@ -4343,13 +4343,13 @@ var Bc = function(t) {
4343
4343
  };
4344
4344
  const fa = /* @__PURE__ */ nt(Bc);
4345
4345
  function Yt(e) {
4346
- 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) : "";
4346
+ 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) : "";
4347
4347
  }
4348
- function br(e) {
4348
+ function xr(e) {
4349
4349
  return Fi(e && e.line) + ":" + Fi(e && e.column);
4350
4350
  }
4351
4351
  function _i(e) {
4352
- return br(e && e.start) + "-" + br(e && e.end);
4352
+ return xr(e && e.start) + "-" + xr(e && e.end);
4353
4353
  }
4354
4354
  function Fi(e) {
4355
4355
  return e && typeof e == "number" ? e : 1;
@@ -4516,7 +4516,7 @@ const Wc = { cwd: Gc };
4516
4516
  function Gc() {
4517
4517
  return "/";
4518
4518
  }
4519
- function xr(e) {
4519
+ function br(e) {
4520
4520
  return e !== null && typeof e == "object" && // @ts-expect-error: indexable.
4521
4521
  e.href && // @ts-expect-error: indexable.
4522
4522
  e.origin;
@@ -4524,7 +4524,7 @@ function xr(e) {
4524
4524
  function Zc(e) {
4525
4525
  if (typeof e == "string")
4526
4526
  e = new URL(e);
4527
- else if (!xr(e)) {
4527
+ else if (!br(e)) {
4528
4528
  const t = new TypeError(
4529
4529
  'The "path" argument must be of type string or an instance of URL. Received `' + e + "`"
4530
4530
  );
@@ -4583,7 +4583,7 @@ class da {
4583
4583
  */
4584
4584
  constructor(t) {
4585
4585
  let n;
4586
- 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;
4586
+ 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;
4587
4587
  let r = -1;
4588
4588
  for (; ++r < Kn.length; ) {
4589
4589
  const o = Kn[r];
@@ -4611,7 +4611,7 @@ class da {
4611
4611
  * @param {string | URL} path
4612
4612
  */
4613
4613
  set path(t) {
4614
- xr(t) && (t = Zc(t)), Jn(t, "path"), this.path !== t && this.history.push(t);
4614
+ br(t) && (t = Zc(t)), Jn(t, "path"), this.path !== t && this.history.push(t);
4615
4615
  }
4616
4616
  /**
4617
4617
  * Get the parent path (example: `'~'`).
@@ -4883,125 +4883,125 @@ function ma() {
4883
4883
  let n = {}, r, i = -1;
4884
4884
  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;
4885
4885
  function o() {
4886
- const x = ma();
4886
+ const b = ma();
4887
4887
  let k = -1;
4888
4888
  for (; ++k < t.length; )
4889
- x.use(...t[k]);
4890
- return x.data(qi(!0, {}, n)), x;
4889
+ b.use(...t[k]);
4890
+ return b.data(qi(!0, {}, n)), b;
4891
4891
  }
4892
- function a(x, k) {
4893
- 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;
4892
+ function a(b, k) {
4893
+ 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;
4894
4894
  }
4895
4895
  function l() {
4896
4896
  if (r)
4897
4897
  return o;
4898
4898
  for (; ++i < t.length; ) {
4899
- const [x, ...k] = t[i];
4899
+ const [b, ...k] = t[i];
4900
4900
  if (k[0] === !1)
4901
4901
  continue;
4902
4902
  k[0] === !0 && (k[0] = void 0);
4903
- const M = x.call(o, ...k);
4903
+ const M = b.call(o, ...k);
4904
4904
  typeof M == "function" && e.use(M);
4905
4905
  }
4906
4906
  return r = !0, i = Number.POSITIVE_INFINITY, o;
4907
4907
  }
4908
- function s(x, ...k) {
4908
+ function s(b, ...k) {
4909
4909
  let M;
4910
- if (nr("use", r), x != null)
4911
- if (typeof x == "function")
4912
- U(x, ...k);
4913
- else if (typeof x == "object")
4914
- Array.isArray(x) ? _(x) : E(x);
4915
- else
4916
- throw new TypeError("Expected usable value, not `" + x + "`");
4917
- return M && (n.settings = Object.assign(n.settings || {}, M)), o;
4918
- function z(b) {
4910
+ if (nr("use", r), b != null)
4919
4911
  if (typeof b == "function")
4920
- U(b);
4912
+ U(b, ...k);
4921
4913
  else if (typeof b == "object")
4922
- if (Array.isArray(b)) {
4923
- const [L, ...$] = b;
4914
+ Array.isArray(b) ? _(b) : E(b);
4915
+ else
4916
+ throw new TypeError("Expected usable value, not `" + b + "`");
4917
+ return M && (n.settings = Object.assign(n.settings || {}, M)), o;
4918
+ function z(x) {
4919
+ if (typeof x == "function")
4920
+ U(x);
4921
+ else if (typeof x == "object")
4922
+ if (Array.isArray(x)) {
4923
+ const [L, ...$] = x;
4924
4924
  U(L, ...$);
4925
4925
  } else
4926
- E(b);
4926
+ E(x);
4927
4927
  else
4928
- throw new TypeError("Expected usable value, not `" + b + "`");
4928
+ throw new TypeError("Expected usable value, not `" + x + "`");
4929
4929
  }
4930
- function E(b) {
4931
- _(b.plugins), b.settings && (M = Object.assign(M || {}, b.settings));
4930
+ function E(x) {
4931
+ _(x.plugins), x.settings && (M = Object.assign(M || {}, x.settings));
4932
4932
  }
4933
- function _(b) {
4933
+ function _(x) {
4934
4934
  let L = -1;
4935
- if (b != null)
4936
- if (Array.isArray(b))
4937
- for (; ++L < b.length; ) {
4938
- const $ = b[L];
4935
+ if (x != null)
4936
+ if (Array.isArray(x))
4937
+ for (; ++L < x.length; ) {
4938
+ const $ = x[L];
4939
4939
  z($);
4940
4940
  }
4941
4941
  else
4942
- throw new TypeError("Expected a list of plugins, not `" + b + "`");
4942
+ throw new TypeError("Expected a list of plugins, not `" + x + "`");
4943
4943
  }
4944
- function U(b, L) {
4944
+ function U(x, L) {
4945
4945
  let $ = -1, W;
4946
4946
  for (; ++$ < t.length; )
4947
- if (t[$][0] === b) {
4947
+ if (t[$][0] === x) {
4948
4948
  W = t[$];
4949
4949
  break;
4950
4950
  }
4951
4951
  W ? (wr(W[1]) && wr(L) && (L = qi(!0, W[1], L)), W[1] = L) : t.push([...arguments]);
4952
4952
  }
4953
4953
  }
4954
- function u(x) {
4954
+ function u(b) {
4955
4955
  o.freeze();
4956
- const k = Pt(x), M = o.Parser;
4956
+ const k = Pt(b), M = o.Parser;
4957
4957
  return er("parse", M), Vi(M, "parse") ? new M(String(k), k).parse() : M(String(k), k);
4958
4958
  }
4959
- function c(x, k) {
4959
+ function c(b, k) {
4960
4960
  o.freeze();
4961
4961
  const M = Pt(k), z = o.Compiler;
4962
- return tr("stringify", z), Wi(x), Vi(z, "compile") ? new z(x, M).compile() : z(x, M);
4962
+ return tr("stringify", z), Wi(b), Vi(z, "compile") ? new z(b, M).compile() : z(b, M);
4963
4963
  }
4964
- function p(x, k, M) {
4965
- if (Wi(x), o.freeze(), !M && typeof k == "function" && (M = k, k = void 0), !M)
4964
+ function p(b, k, M) {
4965
+ if (Wi(b), o.freeze(), !M && typeof k == "function" && (M = k, k = void 0), !M)
4966
4966
  return new Promise(z);
4967
4967
  z(null, M);
4968
4968
  function z(E, _) {
4969
- e.run(x, Pt(k), U);
4970
- function U(b, L, $) {
4971
- L = L || x, b ? _(b) : E ? E(L) : M(null, L, $);
4969
+ e.run(b, Pt(k), U);
4970
+ function U(x, L, $) {
4971
+ L = L || b, x ? _(x) : E ? E(L) : M(null, L, $);
4972
4972
  }
4973
4973
  }
4974
4974
  }
4975
- function m(x, k) {
4975
+ function m(b, k) {
4976
4976
  let M, z;
4977
- return o.run(x, k, E), Gi("runSync", "run", z), M;
4977
+ return o.run(b, k, E), Gi("runSync", "run", z), M;
4978
4978
  function E(_, U) {
4979
4979
  Ri(_), M = U, z = !0;
4980
4980
  }
4981
4981
  }
4982
- function f(x, k) {
4982
+ function f(b, k) {
4983
4983
  if (o.freeze(), er("process", o.Parser), tr("process", o.Compiler), !k)
4984
4984
  return new Promise(M);
4985
4985
  M(null, k);
4986
4986
  function M(z, E) {
4987
- const _ = Pt(x);
4988
- o.run(o.parse(_), _, (b, L, $) => {
4989
- if (b || !L || !$)
4990
- U(b);
4987
+ const _ = Pt(b);
4988
+ o.run(o.parse(_), _, (x, L, $) => {
4989
+ if (x || !L || !$)
4990
+ U(x);
4991
4991
  else {
4992
4992
  const W = o.stringify(L, $);
4993
- W == null || (op(W) ? $.value = W : $.result = W), U(b, $);
4993
+ W == null || (op(W) ? $.value = W : $.result = W), U(x, $);
4994
4994
  }
4995
4995
  });
4996
- function U(b, L) {
4997
- b || !L ? E(b) : z ? z(L) : k(null, L);
4996
+ function U(x, L) {
4997
+ x || !L ? E(x) : z ? z(L) : k(null, L);
4998
4998
  }
4999
4999
  }
5000
5000
  }
5001
- function v(x) {
5001
+ function v(b) {
5002
5002
  let k;
5003
5003
  o.freeze(), er("processSync", o.Parser), tr("processSync", o.Compiler);
5004
- const M = Pt(x);
5004
+ const M = Pt(b);
5005
5005
  return o.process(M, z), Gi("processSync", "process", k), M;
5006
5006
  function z(E) {
5007
5007
  k = !0, Ri(E);
@@ -5139,7 +5139,7 @@ const Tr = it(/\d/), hp = it(/[\dA-Fa-f]/), gp = it(/[!-/:-@[-`{-~]/);
5139
5139
  function G(e) {
5140
5140
  return e !== null && e < -2;
5141
5141
  }
5142
- function Ie(e) {
5142
+ function De(e) {
5143
5143
  return e !== null && (e < 0 || e === 32);
5144
5144
  }
5145
5145
  function ie(e) {
@@ -5164,9 +5164,9 @@ function pe(e, t, n, r) {
5164
5164
  }
5165
5165
  }
5166
5166
  const Mp = {
5167
- tokenize: bp
5167
+ tokenize: xp
5168
5168
  };
5169
- function bp(e) {
5169
+ function xp(e) {
5170
5170
  const t = e.attempt(
5171
5171
  this.parser.constructs.contentInitial,
5172
5172
  r,
@@ -5199,7 +5199,7 @@ function bp(e) {
5199
5199
  return G(l) ? (e.consume(l), e.exit("chunkText"), o) : (e.consume(l), a);
5200
5200
  }
5201
5201
  }
5202
- const xp = {
5202
+ const bp = {
5203
5203
  tokenize: wp
5204
5204
  }, Xi = {
5205
5205
  tokenize: vp
@@ -5223,16 +5223,16 @@ function wp(e) {
5223
5223
  if (r++, t.containerState._closeFlow) {
5224
5224
  t.containerState._closeFlow = void 0, i && z();
5225
5225
  const _ = t.events.length;
5226
- let U = _, b;
5226
+ let U = _, x;
5227
5227
  for (; U--; )
5228
5228
  if (t.events[U][0] === "exit" && t.events[U][1].type === "chunkFlow") {
5229
- b = t.events[U][1].end;
5229
+ x = t.events[U][1].end;
5230
5230
  break;
5231
5231
  }
5232
5232
  M(r);
5233
5233
  let L = _;
5234
5234
  for (; L < t.events.length; )
5235
- t.events[L][1].end = Object.assign({}, b), L++;
5235
+ t.events[L][1].end = Object.assign({}, x), L++;
5236
5236
  return Ge(
5237
5237
  t.events,
5238
5238
  U + 1,
@@ -5281,25 +5281,25 @@ function wp(e) {
5281
5281
  contentType: "flow",
5282
5282
  previous: o,
5283
5283
  _tokenizer: i
5284
- }), x(E);
5284
+ }), b(E);
5285
5285
  }
5286
- function x(E) {
5286
+ function b(E) {
5287
5287
  if (E === null) {
5288
5288
  k(e.exit("chunkFlow"), !0), M(0), e.consume(E);
5289
5289
  return;
5290
5290
  }
5291
- return G(E) ? (e.consume(E), k(e.exit("chunkFlow")), r = 0, t.interrupt = void 0, l) : (e.consume(E), x);
5291
+ return G(E) ? (e.consume(E), k(e.exit("chunkFlow")), r = 0, t.interrupt = void 0, l) : (e.consume(E), b);
5292
5292
  }
5293
5293
  function k(E, _) {
5294
5294
  const U = t.sliceStream(E);
5295
5295
  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]) {
5296
- let b = i.events.length;
5297
- for (; b--; )
5296
+ let x = i.events.length;
5297
+ for (; x--; )
5298
5298
  if (
5299
5299
  // The token starts before the line ending…
5300
- i.events[b][1].start.offset < a && // …and either is not ended yet…
5301
- (!i.events[b][1].end || // …or ends after it.
5302
- i.events[b][1].end.offset > a)
5300
+ i.events[x][1].start.offset < a && // …and either is not ended yet…
5301
+ (!i.events[x][1].end || // …or ends after it.
5302
+ i.events[x][1].end.offset > a)
5303
5303
  )
5304
5304
  return;
5305
5305
  const L = t.events.length;
@@ -5312,14 +5312,14 @@ function wp(e) {
5312
5312
  }
5313
5313
  W = !0;
5314
5314
  }
5315
- for (M(r), b = L; b < t.events.length; )
5316
- t.events[b][1].end = Object.assign({}, X), b++;
5315
+ for (M(r), x = L; x < t.events.length; )
5316
+ t.events[x][1].end = Object.assign({}, X), x++;
5317
5317
  Ge(
5318
5318
  t.events,
5319
5319
  $ + 1,
5320
5320
  0,
5321
5321
  t.events.slice(L)
5322
- ), t.events.length = b;
5322
+ ), t.events.length = x;
5323
5323
  }
5324
5324
  }
5325
5325
  function M(E) {
@@ -5343,7 +5343,7 @@ function vp(e, t, n) {
5343
5343
  );
5344
5344
  }
5345
5345
  function Ji(e) {
5346
- if (e === null || Ie(e) || yp(e))
5346
+ if (e === null || De(e) || yp(e))
5347
5347
  return 1;
5348
5348
  if (mp(e))
5349
5349
  return 2;
@@ -5437,11 +5437,11 @@ function Np(e, t) {
5437
5437
  function eo(e, t) {
5438
5438
  e.column += t, e.offset += t, e._bufferIndex += t;
5439
5439
  }
5440
- const Ip = {
5440
+ const Dp = {
5441
5441
  name: "autolink",
5442
- tokenize: Dp
5442
+ tokenize: Ip
5443
5443
  };
5444
- function Dp(e, t, n) {
5444
+ function Ip(e, t, n) {
5445
5445
  let r = 0;
5446
5446
  return i;
5447
5447
  function i(f) {
@@ -5531,7 +5531,7 @@ function Ep(e, t, n) {
5531
5531
  function Cp(e) {
5532
5532
  e.exit("blockQuote");
5533
5533
  }
5534
- const ba = {
5534
+ const xa = {
5535
5535
  name: "characterEscape",
5536
5536
  tokenize: Ap
5537
5537
  };
@@ -5551,7 +5551,7 @@ function Qr(e) {
5551
5551
  const n = to.textContent;
5552
5552
  return n.charCodeAt(n.length - 1) === 59 && e !== "semi" || n === t ? !1 : n;
5553
5553
  }
5554
- const xa = {
5554
+ const ba = {
5555
5555
  name: "characterReference",
5556
5556
  tokenize: Sp
5557
5557
  };
@@ -5591,77 +5591,77 @@ function Op(e, t, n) {
5591
5591
  };
5592
5592
  let o = 0, a = 0, l;
5593
5593
  return s;
5594
- function s(b) {
5595
- return u(b);
5594
+ function s(x) {
5595
+ return u(x);
5596
5596
  }
5597
- function u(b) {
5597
+ function u(x) {
5598
5598
  const L = r.events[r.events.length - 1];
5599
- 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);
5599
+ 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);
5600
5600
  }
5601
- function c(b) {
5602
- return b === l ? (a++, e.consume(b), c) : a < 3 ? n(b) : (e.exit("codeFencedFenceSequence"), ie(b) ? pe(e, p, "whitespace")(b) : p(b));
5601
+ function c(x) {
5602
+ return x === l ? (a++, e.consume(x), c) : a < 3 ? n(x) : (e.exit("codeFencedFenceSequence"), ie(x) ? pe(e, p, "whitespace")(x) : p(x));
5603
5603
  }
5604
- function p(b) {
5605
- return b === null || G(b) ? (e.exit("codeFencedFence"), r.interrupt ? t(b) : e.check(no, x, _)(b)) : (e.enter("codeFencedFenceInfo"), e.enter("chunkString", {
5604
+ function p(x) {
5605
+ return x === null || G(x) ? (e.exit("codeFencedFence"), r.interrupt ? t(x) : e.check(no, b, _)(x)) : (e.enter("codeFencedFenceInfo"), e.enter("chunkString", {
5606
5606
  contentType: "string"
5607
- }), m(b));
5607
+ }), m(x));
5608
5608
  }
5609
- function m(b) {
5610
- 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);
5609
+ function m(x) {
5610
+ 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);
5611
5611
  }
5612
- function f(b) {
5613
- return b === null || G(b) ? p(b) : (e.enter("codeFencedFenceMeta"), e.enter("chunkString", {
5612
+ function f(x) {
5613
+ return x === null || G(x) ? p(x) : (e.enter("codeFencedFenceMeta"), e.enter("chunkString", {
5614
5614
  contentType: "string"
5615
- }), v(b));
5615
+ }), v(x));
5616
5616
  }
5617
- function v(b) {
5618
- return b === null || G(b) ? (e.exit("chunkString"), e.exit("codeFencedFenceMeta"), p(b)) : b === 96 && b === l ? n(b) : (e.consume(b), v);
5617
+ function v(x) {
5618
+ return x === null || G(x) ? (e.exit("chunkString"), e.exit("codeFencedFenceMeta"), p(x)) : x === 96 && x === l ? n(x) : (e.consume(x), v);
5619
5619
  }
5620
- function x(b) {
5621
- return e.attempt(i, _, k)(b);
5620
+ function b(x) {
5621
+ return e.attempt(i, _, k)(x);
5622
5622
  }
5623
- function k(b) {
5624
- return e.enter("lineEnding"), e.consume(b), e.exit("lineEnding"), M;
5623
+ function k(x) {
5624
+ return e.enter("lineEnding"), e.consume(x), e.exit("lineEnding"), M;
5625
5625
  }
5626
- function M(b) {
5627
- return o > 0 && ie(b) ? pe(
5626
+ function M(x) {
5627
+ return o > 0 && ie(x) ? pe(
5628
5628
  e,
5629
5629
  z,
5630
5630
  "linePrefix",
5631
5631
  o + 1
5632
- )(b) : z(b);
5632
+ )(x) : z(x);
5633
5633
  }
5634
- function z(b) {
5635
- return b === null || G(b) ? e.check(no, x, _)(b) : (e.enter("codeFlowValue"), E(b));
5634
+ function z(x) {
5635
+ return x === null || G(x) ? e.check(no, b, _)(x) : (e.enter("codeFlowValue"), E(x));
5636
5636
  }
5637
- function E(b) {
5638
- return b === null || G(b) ? (e.exit("codeFlowValue"), z(b)) : (e.consume(b), E);
5637
+ function E(x) {
5638
+ return x === null || G(x) ? (e.exit("codeFlowValue"), z(x)) : (e.consume(x), E);
5639
5639
  }
5640
- function _(b) {
5641
- return e.exit("codeFenced"), t(b);
5640
+ function _(x) {
5641
+ return e.exit("codeFenced"), t(x);
5642
5642
  }
5643
- function U(b, L, $) {
5643
+ function U(x, L, $) {
5644
5644
  let W = 0;
5645
5645
  return X;
5646
5646
  function X(F) {
5647
- return b.enter("lineEnding"), b.consume(F), b.exit("lineEnding"), A;
5647
+ return x.enter("lineEnding"), x.consume(F), x.exit("lineEnding"), A;
5648
5648
  }
5649
5649
  function A(F) {
5650
- return b.enter("codeFencedFence"), ie(F) ? pe(
5651
- b,
5650
+ return x.enter("codeFencedFence"), ie(F) ? pe(
5651
+ x,
5652
5652
  w,
5653
5653
  "linePrefix",
5654
5654
  r.parser.constructs.disable.null.includes("codeIndented") ? void 0 : 4
5655
5655
  )(F) : w(F);
5656
5656
  }
5657
5657
  function w(F) {
5658
- return F === l ? (b.enter("codeFencedFenceSequence"), j(F)) : $(F);
5658
+ return F === l ? (x.enter("codeFencedFenceSequence"), j(F)) : $(F);
5659
5659
  }
5660
5660
  function j(F) {
5661
- return F === l ? (W++, b.consume(F), j) : W >= a ? (b.exit("codeFencedFenceSequence"), ie(F) ? pe(b, O, "whitespace")(F) : O(F)) : $(F);
5661
+ return F === l ? (W++, x.consume(F), j) : W >= a ? (x.exit("codeFencedFenceSequence"), ie(F) ? pe(x, O, "whitespace")(F) : O(F)) : $(F);
5662
5662
  }
5663
5663
  function O(F) {
5664
- return F === null || G(F) ? (b.exit("codeFencedFence"), L(F)) : $(F);
5664
+ return F === null || G(F) ? (x.exit("codeFencedFence"), L(F)) : $(F);
5665
5665
  }
5666
5666
  }
5667
5667
  }
@@ -5777,8 +5777,8 @@ function Qp(e, t) {
5777
5777
  const n = e[t][1], r = e[t][2];
5778
5778
  let i = t - 1;
5779
5779
  const o = [], a = n._tokenizer || r.parser[n.contentType](n.start), l = a.events, s = [], u = {};
5780
- let c, p, m = -1, f = n, v = 0, x = 0;
5781
- const k = [x];
5780
+ let c, p, m = -1, f = n, v = 0, b = 0;
5781
+ const k = [b];
5782
5782
  for (; f; ) {
5783
5783
  for (; e[++i][1] !== f; )
5784
5784
  ;
@@ -5786,7 +5786,7 @@ function Qp(e, t) {
5786
5786
  }
5787
5787
  for (f = n; ++m < l.length; )
5788
5788
  // Find a void token that includes a break.
5789
- 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);
5789
+ 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);
5790
5790
  for (a.events = [], f ? (f._tokenizer = void 0, f.previous = void 0) : k.pop(), m = k.length; m--; ) {
5791
5791
  const M = l.slice(k[m], k[m + 1]), z = o.pop();
5792
5792
  s.unshift([z, z + M.length - 1]), Ge(e, z, 2, M);
@@ -5850,7 +5850,7 @@ function va(e, t, n, r, i, o, a, l, s) {
5850
5850
  function p(M) {
5851
5851
  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", {
5852
5852
  contentType: "string"
5853
- }), x(M));
5853
+ }), b(M));
5854
5854
  }
5855
5855
  function m(M) {
5856
5856
  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", {
@@ -5863,11 +5863,11 @@ function va(e, t, n, r, i, o, a, l, s) {
5863
5863
  function v(M) {
5864
5864
  return M === 60 || M === 62 || M === 92 ? (e.consume(M), f) : f(M);
5865
5865
  }
5866
- function x(M) {
5867
- 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);
5866
+ function b(M) {
5867
+ return !c && (M === null || M === 41 || De(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);
5868
5868
  }
5869
5869
  function k(M) {
5870
- return M === 40 || M === 41 || M === 92 ? (e.consume(M), x) : x(M);
5870
+ return M === 40 || M === 41 || M === 92 ? (e.consume(M), b) : b(M);
5871
5871
  }
5872
5872
  }
5873
5873
  function Ta(e, t, n, r, i, o) {
@@ -5926,7 +5926,7 @@ function Ht(e, t) {
5926
5926
  )(i) : t(i);
5927
5927
  }
5928
5928
  }
5929
- function xt(e) {
5929
+ function bt(e) {
5930
5930
  return e.replace(/[\t\n\r ]+/g, " ").replace(/^ | $/g, "").toLowerCase().toUpperCase();
5931
5931
  }
5932
5932
  const Wp = {
@@ -5956,12 +5956,12 @@ function Zp(e, t, n) {
5956
5956
  )(f);
5957
5957
  }
5958
5958
  function l(f) {
5959
- return i = xt(
5959
+ return i = bt(
5960
5960
  r.sliceSerialize(r.events[r.events.length - 1][1]).slice(1, -1)
5961
5961
  ), f === 58 ? (e.enter("definitionMarker"), e.consume(f), e.exit("definitionMarker"), s) : n(f);
5962
5962
  }
5963
5963
  function s(f) {
5964
- return Ie(f) ? Ht(e, u)(f) : u(f);
5964
+ return De(f) ? Ht(e, u)(f) : u(f);
5965
5965
  }
5966
5966
  function u(f) {
5967
5967
  return va(
@@ -5989,7 +5989,7 @@ function Zp(e, t, n) {
5989
5989
  function Kp(e, t, n) {
5990
5990
  return r;
5991
5991
  function r(l) {
5992
- return Ie(l) ? Ht(e, i)(l) : n(l);
5992
+ return De(l) ? Ht(e, i)(l) : n(l);
5993
5993
  }
5994
5994
  function i(l) {
5995
5995
  return Na(
@@ -6054,7 +6054,7 @@ function nf(e, t, n) {
6054
6054
  return e.enter("atxHeadingSequence"), a(c);
6055
6055
  }
6056
6056
  function a(c) {
6057
- return c === 35 && r++ < 6 ? (e.consume(c), a) : c === null || Ie(c) ? (e.exit("atxHeadingSequence"), l(c)) : n(c);
6057
+ return c === 35 && r++ < 6 ? (e.consume(c), a) : c === null || De(c) ? (e.exit("atxHeadingSequence"), l(c)) : n(c);
6058
6058
  }
6059
6059
  function l(c) {
6060
6060
  return c === 35 ? (e.enter("atxHeadingSequence"), s(c)) : c === null || G(c) ? (e.exit("atxHeading"), t(c)) : ie(c) ? pe(e, l, "whitespace")(c) : (e.enter("atxHeadingText"), u(c));
@@ -6063,7 +6063,7 @@ function nf(e, t, n) {
6063
6063
  return c === 35 ? (e.consume(c), s) : (e.exit("atxHeadingSequence"), l(c));
6064
6064
  }
6065
6065
  function u(c) {
6066
- return c === null || c === 35 || Ie(c) ? (e.exit("atxHeadingText"), l(c)) : (e.consume(c), u);
6066
+ return c === null || c === 35 || De(c) ? (e.exit("atxHeadingText"), l(c)) : (e.consume(c), u);
6067
6067
  }
6068
6068
  }
6069
6069
  const rf = [
@@ -6158,7 +6158,7 @@ function uf(e, t, n) {
6158
6158
  return e.enter("htmlFlow"), e.enter("htmlFlowData"), e.consume(h), p;
6159
6159
  }
6160
6160
  function p(h) {
6161
- 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);
6161
+ 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);
6162
6162
  }
6163
6163
  function m(h) {
6164
6164
  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);
@@ -6170,13 +6170,13 @@ function uf(e, t, n) {
6170
6170
  const ge = "CDATA[";
6171
6171
  return h === ge.charCodeAt(l++) ? (e.consume(h), l === ge.length ? r.interrupt ? t : w : v) : n(h);
6172
6172
  }
6173
- function x(h) {
6173
+ function b(h) {
6174
6174
  return Ve(h) ? (e.consume(h), a = String.fromCharCode(h), k) : n(h);
6175
6175
  }
6176
6176
  function k(h) {
6177
- if (h === null || h === 47 || h === 62 || Ie(h)) {
6178
- const ge = h === 47, De = a.toLowerCase();
6179
- return !ge && !o && io.includes(De) ? (i = 1, r.interrupt ? t(h) : w(h)) : rf.includes(a.toLowerCase()) ? (i = 6, ge ? (e.consume(h), M) : r.interrupt ? t(h) : w(h)) : (i = 7, r.interrupt && !r.parser.lazy[r.now().line] ? n(h) : o ? z(h) : E(h));
6177
+ if (h === null || h === 47 || h === 62 || De(h)) {
6178
+ const ge = h === 47, Ie = a.toLowerCase();
6179
+ return !ge && !o && io.includes(Ie) ? (i = 1, r.interrupt ? t(h) : w(h)) : rf.includes(a.toLowerCase()) ? (i = 6, ge ? (e.consume(h), M) : r.interrupt ? t(h) : w(h)) : (i = 7, r.interrupt && !r.parser.lazy[r.now().line] ? n(h) : o ? z(h) : E(h));
6180
6180
  }
6181
6181
  return h === 45 || Ce(h) ? (e.consume(h), a += String.fromCharCode(h), k) : n(h);
6182
6182
  }
@@ -6193,16 +6193,16 @@ function uf(e, t, n) {
6193
6193
  return h === 45 || h === 46 || h === 58 || h === 95 || Ce(h) ? (e.consume(h), _) : U(h);
6194
6194
  }
6195
6195
  function U(h) {
6196
- return h === 61 ? (e.consume(h), b) : ie(h) ? (e.consume(h), U) : E(h);
6196
+ return h === 61 ? (e.consume(h), x) : ie(h) ? (e.consume(h), U) : E(h);
6197
6197
  }
6198
- function b(h) {
6199
- 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);
6198
+ function x(h) {
6199
+ 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);
6200
6200
  }
6201
6201
  function L(h) {
6202
6202
  return h === s ? (e.consume(h), s = null, W) : h === null || G(h) ? n(h) : (e.consume(h), L);
6203
6203
  }
6204
6204
  function $(h) {
6205
- return h === null || h === 34 || h === 39 || h === 47 || h === 60 || h === 61 || h === 62 || h === 96 || Ie(h) ? U(h) : (e.consume(h), $);
6205
+ return h === null || h === 34 || h === 39 || h === 47 || h === 60 || h === 61 || h === 62 || h === 96 || De(h) ? U(h) : (e.consume(h), $);
6206
6206
  }
6207
6207
  function W(h) {
6208
6208
  return h === 47 || h === 62 || ie(h) ? E(h) : n(h);
@@ -6306,16 +6306,16 @@ function df(e, t, n) {
6306
6306
  }
6307
6307
  function v(g) {
6308
6308
  const he = "CDATA[";
6309
- return g === he.charCodeAt(o++) ? (e.consume(g), o === he.length ? x : v) : n(g);
6309
+ return g === he.charCodeAt(o++) ? (e.consume(g), o === he.length ? b : v) : n(g);
6310
6310
  }
6311
- function x(g) {
6312
- return g === null ? n(g) : g === 93 ? (e.consume(g), k) : G(g) ? (a = x, V(g)) : (e.consume(g), x);
6311
+ function b(g) {
6312
+ return g === null ? n(g) : g === 93 ? (e.consume(g), k) : G(g) ? (a = b, V(g)) : (e.consume(g), b);
6313
6313
  }
6314
6314
  function k(g) {
6315
- return g === 93 ? (e.consume(g), M) : x(g);
6315
+ return g === 93 ? (e.consume(g), M) : b(g);
6316
6316
  }
6317
6317
  function M(g) {
6318
- return g === 62 ? B(g) : g === 93 ? (e.consume(g), M) : x(g);
6318
+ return g === 62 ? B(g) : g === 93 ? (e.consume(g), M) : b(g);
6319
6319
  }
6320
6320
  function z(g) {
6321
6321
  return g === null || g === 62 ? B(g) : G(g) ? (a = z, V(g)) : (e.consume(g), z);
@@ -6327,16 +6327,16 @@ function df(e, t, n) {
6327
6327
  return g === 62 ? B(g) : E(g);
6328
6328
  }
6329
6329
  function U(g) {
6330
- return Ve(g) ? (e.consume(g), b) : n(g);
6330
+ return Ve(g) ? (e.consume(g), x) : n(g);
6331
6331
  }
6332
- function b(g) {
6333
- return g === 45 || Ce(g) ? (e.consume(g), b) : L(g);
6332
+ function x(g) {
6333
+ return g === 45 || Ce(g) ? (e.consume(g), x) : L(g);
6334
6334
  }
6335
6335
  function L(g) {
6336
6336
  return G(g) ? (a = L, V(g)) : ie(g) ? (e.consume(g), L) : B(g);
6337
6337
  }
6338
6338
  function $(g) {
6339
- return g === 45 || Ce(g) ? (e.consume(g), $) : g === 47 || g === 62 || Ie(g) ? W(g) : n(g);
6339
+ return g === 45 || Ce(g) ? (e.consume(g), $) : g === 47 || g === 62 || De(g) ? W(g) : n(g);
6340
6340
  }
6341
6341
  function W(g) {
6342
6342
  return g === 47 ? (e.consume(g), B) : g === 58 || g === 95 || Ve(g) ? (e.consume(g), X) : G(g) ? (a = W, V(g)) : ie(g) ? (e.consume(g), W) : B(g);
@@ -6354,10 +6354,10 @@ function df(e, t, n) {
6354
6354
  return g === i ? (e.consume(g), i = void 0, F) : g === null ? n(g) : G(g) ? (a = j, V(g)) : (e.consume(g), j);
6355
6355
  }
6356
6356
  function O(g) {
6357
- return g === null || g === 34 || g === 39 || g === 60 || g === 61 || g === 96 ? n(g) : g === 47 || g === 62 || Ie(g) ? W(g) : (e.consume(g), O);
6357
+ return g === null || g === 34 || g === 39 || g === 60 || g === 61 || g === 96 ? n(g) : g === 47 || g === 62 || De(g) ? W(g) : (e.consume(g), O);
6358
6358
  }
6359
6359
  function F(g) {
6360
- return g === 47 || g === 62 || Ie(g) ? W(g) : n(g);
6360
+ return g === 47 || g === 62 || De(g) ? W(g) : n(g);
6361
6361
  }
6362
6362
  function B(g) {
6363
6363
  return g === 62 ? (e.consume(g), e.exit("htmlTextData"), e.exit("htmlText"), t) : n(g);
@@ -6379,11 +6379,11 @@ function df(e, t, n) {
6379
6379
  }
6380
6380
  const Yr = {
6381
6381
  name: "labelEnd",
6382
- tokenize: bf,
6382
+ tokenize: xf,
6383
6383
  resolveTo: Mf,
6384
6384
  resolveAll: yf
6385
6385
  }, hf = {
6386
- tokenize: xf
6386
+ tokenize: bf
6387
6387
  }, gf = {
6388
6388
  tokenize: wf
6389
6389
  }, mf = {
@@ -6441,7 +6441,7 @@ function Mf(e, t) {
6441
6441
  ["exit", u, t]
6442
6442
  ]), l = ze(l, e.slice(a + 1)), l = ze(l, [["exit", s, t]]), Ge(e, o, e.length, l), e;
6443
6443
  }
6444
- function bf(e, t, n) {
6444
+ function xf(e, t, n) {
6445
6445
  const r = this;
6446
6446
  let i = r.events.length, o, a;
6447
6447
  for (; i--; )
@@ -6452,7 +6452,7 @@ function bf(e, t, n) {
6452
6452
  return l;
6453
6453
  function l(m) {
6454
6454
  return o ? o._inactive ? p(m) : (a = r.parser.defined.includes(
6455
- xt(
6455
+ bt(
6456
6456
  r.sliceSerialize({
6457
6457
  start: o.end,
6458
6458
  end: r.now()
@@ -6485,13 +6485,13 @@ function bf(e, t, n) {
6485
6485
  return o._balanced = !0, n(m);
6486
6486
  }
6487
6487
  }
6488
- function xf(e, t, n) {
6488
+ function bf(e, t, n) {
6489
6489
  return r;
6490
6490
  function r(p) {
6491
6491
  return e.enter("resource"), e.enter("resourceMarker"), e.consume(p), e.exit("resourceMarker"), i;
6492
6492
  }
6493
6493
  function i(p) {
6494
- return Ie(p) ? Ht(e, o)(p) : o(p);
6494
+ return De(p) ? Ht(e, o)(p) : o(p);
6495
6495
  }
6496
6496
  function o(p) {
6497
6497
  return p === 41 ? c(p) : va(
@@ -6507,7 +6507,7 @@ function xf(e, t, n) {
6507
6507
  )(p);
6508
6508
  }
6509
6509
  function a(p) {
6510
- return Ie(p) ? Ht(e, s)(p) : c(p);
6510
+ return De(p) ? Ht(e, s)(p) : c(p);
6511
6511
  }
6512
6512
  function l(p) {
6513
6513
  return n(p);
@@ -6523,7 +6523,7 @@ function xf(e, t, n) {
6523
6523
  )(p) : c(p);
6524
6524
  }
6525
6525
  function u(p) {
6526
- return Ie(p) ? Ht(e, c)(p) : c(p);
6526
+ return De(p) ? Ht(e, c)(p) : c(p);
6527
6527
  }
6528
6528
  function c(p) {
6529
6529
  return p === 41 ? (e.enter("resourceMarker"), e.consume(p), e.exit("resourceMarker"), e.exit("resource"), t) : n(p);
@@ -6545,7 +6545,7 @@ function wf(e, t, n) {
6545
6545
  }
6546
6546
  function o(l) {
6547
6547
  return r.parser.defined.includes(
6548
- xt(
6548
+ bt(
6549
6549
  r.sliceSerialize(r.events[r.events.length - 1][1]).slice(1, -1)
6550
6550
  )
6551
6551
  ) ? t(l) : n(l);
@@ -6581,12 +6581,12 @@ function Nf(e, t, n) {
6581
6581
  return l === 94 && "_hiddenFootnoteSupport" in r.parser.constructs ? n(l) : t(l);
6582
6582
  }
6583
6583
  }
6584
- const If = {
6584
+ const Df = {
6585
6585
  name: "labelStartLink",
6586
- tokenize: Df,
6586
+ tokenize: If,
6587
6587
  resolveAll: Yr.resolveAll
6588
6588
  };
6589
- function Df(e, t, n) {
6589
+ function If(e, t, n) {
6590
6590
  const r = this;
6591
6591
  return i;
6592
6592
  function i(a) {
@@ -6819,12 +6819,12 @@ function Rf(e) {
6819
6819
  }
6820
6820
  }
6821
6821
  const Uf = {
6822
- resolveAll: Da()
6823
- }, Bf = Ia("string"), Qf = Ia("text");
6824
- function Ia(e) {
6822
+ resolveAll: Ia()
6823
+ }, Bf = Da("string"), Qf = Da("text");
6824
+ function Da(e) {
6825
6825
  return {
6826
6826
  tokenize: t,
6827
- resolveAll: Da(
6827
+ resolveAll: Ia(
6828
6828
  e === "text" ? Yf : void 0
6829
6829
  )
6830
6830
  };
@@ -6859,7 +6859,7 @@ function Ia(e) {
6859
6859
  }
6860
6860
  }
6861
6861
  }
6862
- function Da(e) {
6862
+ function Ia(e) {
6863
6863
  return t;
6864
6864
  function t(n, r) {
6865
6865
  let i = -1, o;
@@ -6931,8 +6931,8 @@ function Hf(e, t, n) {
6931
6931
  enter: E,
6932
6932
  exit: _,
6933
6933
  attempt: L(U),
6934
- check: L(b),
6935
- interrupt: L(b, {
6934
+ check: L(x),
6935
+ interrupt: L(x, {
6936
6936
  interrupt: !0
6937
6937
  })
6938
6938
  }, u = {
@@ -6944,7 +6944,7 @@ function Hf(e, t, n) {
6944
6944
  sliceStream: f,
6945
6945
  sliceSerialize: m,
6946
6946
  now: v,
6947
- defineSkip: x,
6947
+ defineSkip: b,
6948
6948
  write: p
6949
6949
  };
6950
6950
  let c = t.tokenize.call(u, s);
@@ -6968,7 +6968,7 @@ function Hf(e, t, n) {
6968
6968
  _bufferIndex: F
6969
6969
  };
6970
6970
  }
6971
- function x(A) {
6971
+ function b(A) {
6972
6972
  i[A.line] = A.column, X();
6973
6973
  }
6974
6974
  function k() {
@@ -6999,7 +6999,7 @@ function Hf(e, t, n) {
6999
6999
  function U(A, w) {
7000
7000
  $(A, w.from);
7001
7001
  }
7002
- function b(A, w) {
7002
+ function x(A, w) {
7003
7003
  w.restore();
7004
7004
  }
7005
7005
  function L(A, w) {
@@ -7028,21 +7028,21 @@ function Hf(e, t, n) {
7028
7028
  function h(re) {
7029
7029
  return we;
7030
7030
  function we(ve) {
7031
- return g = W(), K = re, re.partial || (u.currentConstruct = re), re.name && u.parser.constructs.disable.null.includes(re.name) ? De() : re.tokenize.call(
7031
+ return g = W(), K = re, re.partial || (u.currentConstruct = re), re.name && u.parser.constructs.disable.null.includes(re.name) ? Ie() : re.tokenize.call(
7032
7032
  // If we do have fields, create an object w/ `context` as its
7033
7033
  // prototype.
7034
7034
  // This allows a “live binding”, which is needed for `interrupt`.
7035
7035
  w ? Object.assign(Object.create(u), w) : u,
7036
7036
  s,
7037
7037
  ge,
7038
- De
7038
+ Ie
7039
7039
  )(ve);
7040
7040
  }
7041
7041
  }
7042
7042
  function ge(re) {
7043
7043
  return A(K, g), F;
7044
7044
  }
7045
- function De(re) {
7045
+ function Ie(re) {
7046
7046
  return g.restore(), ++q < V.length ? h(V[q]) : B;
7047
7047
  }
7048
7048
  }
@@ -7156,18 +7156,18 @@ const Vf = {
7156
7156
  96: ro,
7157
7157
  126: ro
7158
7158
  }, Kf = {
7159
- 38: xa,
7160
- 92: ba
7159
+ 38: ba,
7160
+ 92: xa
7161
7161
  }, Xf = {
7162
7162
  [-5]: ir,
7163
7163
  [-4]: ir,
7164
7164
  [-3]: ir,
7165
7165
  33: Tf,
7166
- 38: xa,
7166
+ 38: ba,
7167
7167
  42: Nr,
7168
- 60: [Ip, ff],
7169
- 91: If,
7170
- 92: [Xp, ba],
7168
+ 60: [Dp, ff],
7169
+ 91: Df,
7170
+ 92: [Xp, xa],
7171
7171
  93: Yr,
7172
7172
  95: Nr,
7173
7173
  96: Pp
@@ -7198,7 +7198,7 @@ function rd(e) {
7198
7198
  lazy: {},
7199
7199
  constructs: n,
7200
7200
  content: i(Mp),
7201
- document: i(xp),
7201
+ document: i(bp),
7202
7202
  flow: i(Pf),
7203
7203
  string: i(Bf),
7204
7204
  text: i(Qf)
@@ -7337,7 +7337,7 @@ function cd(e) {
7337
7337
  listOrdered: l(ee, f),
7338
7338
  listUnordered: l(ee),
7339
7339
  paragraph: l(le),
7340
- reference: De,
7340
+ reference: Ie,
7341
7341
  referenceString: s,
7342
7342
  resourceDestinationString: s,
7343
7343
  resourceTitleString: s,
@@ -7358,7 +7358,7 @@ function cd(e) {
7358
7358
  characterReferenceValue: ve,
7359
7359
  codeFenced: c(z),
7360
7360
  codeFencedFence: M,
7361
- codeFencedFenceInfo: x,
7361
+ codeFencedFenceInfo: b,
7362
7362
  codeFencedFenceMeta: k,
7363
7363
  codeFlowValue: w,
7364
7364
  codeIndented: c(E),
@@ -7366,7 +7366,7 @@ function cd(e) {
7366
7366
  codeTextData: w,
7367
7367
  data: w,
7368
7368
  definition: c(),
7369
- definitionDestinationString: b,
7369
+ definitionDestinationString: x,
7370
7370
  definitionLabelString: _,
7371
7371
  definitionTitleString: U,
7372
7372
  emphasis: c(),
@@ -7399,7 +7399,7 @@ function cd(e) {
7399
7399
  Ea(t, (e || {}).mdastExtensions || []);
7400
7400
  const n = {};
7401
7401
  return r;
7402
- function r(D) {
7402
+ function r(I) {
7403
7403
  let S = {
7404
7404
  type: "root",
7405
7405
  children: []
@@ -7416,24 +7416,24 @@ function cd(e) {
7416
7416
  getData: a
7417
7417
  }, J = [];
7418
7418
  let oe = -1;
7419
- for (; ++oe < D.length; )
7420
- if (D[oe][1].type === "listOrdered" || D[oe][1].type === "listUnordered")
7421
- if (D[oe][0] === "enter")
7419
+ for (; ++oe < I.length; )
7420
+ if (I[oe][1].type === "listOrdered" || I[oe][1].type === "listUnordered")
7421
+ if (I[oe][0] === "enter")
7422
7422
  J.push(oe);
7423
7423
  else {
7424
7424
  const Te = J.pop();
7425
- oe = i(D, Te, oe);
7425
+ oe = i(I, Te, oe);
7426
7426
  }
7427
- for (oe = -1; ++oe < D.length; ) {
7428
- const Te = t[D[oe][0]];
7429
- ja.call(Te, D[oe][1].type) && Te[D[oe][1].type].call(
7427
+ for (oe = -1; ++oe < I.length; ) {
7428
+ const Te = t[I[oe][0]];
7429
+ ja.call(Te, I[oe][1].type) && Te[I[oe][1].type].call(
7430
7430
  Object.assign(
7431
7431
  {
7432
- sliceSerialize: D[oe][2].sliceSerialize
7432
+ sliceSerialize: I[oe][2].sliceSerialize
7433
7433
  },
7434
7434
  Y
7435
7435
  ),
7436
- D[oe][1]
7436
+ I[oe][1]
7437
7437
  );
7438
7438
  }
7439
7439
  if (Y.tokenStack.length > 0) {
@@ -7442,14 +7442,14 @@ function cd(e) {
7442
7442
  }
7443
7443
  for (S.position = {
7444
7444
  start: Je(
7445
- D.length > 0 ? D[0][1].start : {
7445
+ I.length > 0 ? I[0][1].start : {
7446
7446
  line: 1,
7447
7447
  column: 1,
7448
7448
  offset: 0
7449
7449
  }
7450
7450
  ),
7451
7451
  end: Je(
7452
- D.length > 0 ? D[D.length - 2][1].end : {
7452
+ I.length > 0 ? I[I.length - 2][1].end : {
7453
7453
  line: 1,
7454
7454
  column: 1,
7455
7455
  offset: 0
@@ -7459,26 +7459,26 @@ function cd(e) {
7459
7459
  S = t.transforms[oe](S) || S;
7460
7460
  return S;
7461
7461
  }
7462
- function i(D, S, Y) {
7462
+ function i(I, S, Y) {
7463
7463
  let J = S - 1, oe = -1, Te = !1, Ye, He, lt, ke;
7464
7464
  for (; ++J <= Y; ) {
7465
- const ue = D[J];
7465
+ const ue = I[J];
7466
7466
  if (ue[1].type === "listUnordered" || ue[1].type === "listOrdered" || ue[1].type === "blockQuote" ? (ue[0] === "enter" ? oe++ : oe--, ke = void 0) : ue[1].type === "lineEndingBlank" ? ue[0] === "enter" && (Ye && !ke && !oe && !lt && (lt = J), ke = void 0) : ue[1].type === "linePrefix" || ue[1].type === "listItemValue" || ue[1].type === "listItemMarker" || ue[1].type === "listItemPrefix" || ue[1].type === "listItemPrefixWhitespace" || (ke = void 0), !oe && ue[0] === "enter" && ue[1].type === "listItemPrefix" || oe === -1 && ue[0] === "exit" && (ue[1].type === "listUnordered" || ue[1].type === "listOrdered")) {
7467
7467
  if (Ye) {
7468
7468
  let Ct = J;
7469
7469
  for (He = void 0; Ct--; ) {
7470
- const Se = D[Ct];
7470
+ const Se = I[Ct];
7471
7471
  if (Se[1].type === "lineEnding" || Se[1].type === "lineEndingBlank") {
7472
7472
  if (Se[0] === "exit")
7473
7473
  continue;
7474
- He && (D[He][1].type = "lineEndingBlank", Te = !0), Se[1].type = "lineEnding", He = Ct;
7474
+ He && (I[He][1].type = "lineEndingBlank", Te = !0), Se[1].type = "lineEnding", He = Ct;
7475
7475
  } else if (!(Se[1].type === "linePrefix" || Se[1].type === "blockQuotePrefix" || Se[1].type === "blockQuotePrefixWhitespace" || Se[1].type === "blockQuoteMarker" || Se[1].type === "listItemIndent"))
7476
7476
  break;
7477
7477
  }
7478
7478
  lt && (!He || lt < He) && (Ye._spread = !0), Ye.end = Object.assign(
7479
7479
  {},
7480
- He ? D[He][1].start : ue[1].end
7481
- ), D.splice(He || J, 0, ["exit", Ye, ue[2]]), J++, Y++;
7480
+ He ? I[He][1].start : ue[1].end
7481
+ ), I.splice(He || J, 0, ["exit", Ye, ue[2]]), J++, Y++;
7482
7482
  }
7483
7483
  ue[1].type === "listItemPrefix" && (Ye = {
7484
7484
  type: "listItem",
@@ -7486,21 +7486,21 @@ function cd(e) {
7486
7486
  start: Object.assign({}, ue[1].start),
7487
7487
  // @ts-expect-error: we’ll add `end` in a second.
7488
7488
  end: void 0
7489
- }, D.splice(J, 0, ["enter", Ye, ue[2]]), J++, Y++, lt = void 0, ke = !0);
7489
+ }, I.splice(J, 0, ["enter", Ye, ue[2]]), J++, Y++, lt = void 0, ke = !0);
7490
7490
  }
7491
7491
  }
7492
- return D[S][1]._spread = Te, Y;
7492
+ return I[S][1]._spread = Te, Y;
7493
7493
  }
7494
- function o(D, S) {
7495
- n[D] = S;
7494
+ function o(I, S) {
7495
+ n[I] = S;
7496
7496
  }
7497
- function a(D) {
7498
- return n[D];
7497
+ function a(I) {
7498
+ return n[I];
7499
7499
  }
7500
- function l(D, S) {
7500
+ function l(I, S) {
7501
7501
  return Y;
7502
7502
  function Y(J) {
7503
- u.call(this, D(J), J), S && S.call(this, J);
7503
+ u.call(this, I(J), J), S && S.call(this, J);
7504
7504
  }
7505
7505
  }
7506
7506
  function s() {
@@ -7509,29 +7509,29 @@ function cd(e) {
7509
7509
  children: []
7510
7510
  });
7511
7511
  }
7512
- function u(D, S, Y) {
7513
- return this.stack[this.stack.length - 1].children.push(D), this.stack.push(D), this.tokenStack.push([S, Y]), D.position = {
7512
+ function u(I, S, Y) {
7513
+ return this.stack[this.stack.length - 1].children.push(I), this.stack.push(I), this.tokenStack.push([S, Y]), I.position = {
7514
7514
  start: Je(S.start)
7515
- }, D;
7515
+ }, I;
7516
7516
  }
7517
- function c(D) {
7517
+ function c(I) {
7518
7518
  return S;
7519
7519
  function S(Y) {
7520
- D && D.call(this, Y), p.call(this, Y);
7520
+ I && I.call(this, Y), p.call(this, Y);
7521
7521
  }
7522
7522
  }
7523
- function p(D, S) {
7523
+ function p(I, S) {
7524
7524
  const Y = this.stack.pop(), J = this.tokenStack.pop();
7525
7525
  if (J)
7526
- J[0].type !== D.type && (S ? S.call(this, D, J[0]) : (J[1] || lo).call(this, D, J[0]));
7526
+ J[0].type !== I.type && (S ? S.call(this, I, J[0]) : (J[1] || lo).call(this, I, J[0]));
7527
7527
  else
7528
7528
  throw new Error(
7529
- "Cannot close `" + D.type + "` (" + Yt({
7530
- start: D.start,
7531
- end: D.end
7529
+ "Cannot close `" + I.type + "` (" + Yt({
7530
+ start: I.start,
7531
+ end: I.end
7532
7532
  }) + "): it’s not open"
7533
7533
  );
7534
- return Y.position.end = Je(D.end), Y;
7534
+ return Y.position.end = Je(I.end), Y;
7535
7535
  }
7536
7536
  function m() {
7537
7537
  return lp(this.stack.pop());
@@ -7539,169 +7539,169 @@ function cd(e) {
7539
7539
  function f() {
7540
7540
  o("expectingFirstListItemValue", !0);
7541
7541
  }
7542
- function v(D) {
7542
+ function v(I) {
7543
7543
  if (a("expectingFirstListItemValue")) {
7544
7544
  const S = this.stack[this.stack.length - 2];
7545
- S.start = Number.parseInt(this.sliceSerialize(D), 10), o("expectingFirstListItemValue");
7545
+ S.start = Number.parseInt(this.sliceSerialize(I), 10), o("expectingFirstListItemValue");
7546
7546
  }
7547
7547
  }
7548
- function x() {
7549
- const D = this.resume(), S = this.stack[this.stack.length - 1];
7550
- S.lang = D;
7548
+ function b() {
7549
+ const I = this.resume(), S = this.stack[this.stack.length - 1];
7550
+ S.lang = I;
7551
7551
  }
7552
7552
  function k() {
7553
- const D = this.resume(), S = this.stack[this.stack.length - 1];
7554
- S.meta = D;
7553
+ const I = this.resume(), S = this.stack[this.stack.length - 1];
7554
+ S.meta = I;
7555
7555
  }
7556
7556
  function M() {
7557
7557
  a("flowCodeInside") || (this.buffer(), o("flowCodeInside", !0));
7558
7558
  }
7559
7559
  function z() {
7560
- const D = this.resume(), S = this.stack[this.stack.length - 1];
7561
- S.value = D.replace(/^(\r?\n|\r)|(\r?\n|\r)$/g, ""), o("flowCodeInside");
7560
+ const I = this.resume(), S = this.stack[this.stack.length - 1];
7561
+ S.value = I.replace(/^(\r?\n|\r)|(\r?\n|\r)$/g, ""), o("flowCodeInside");
7562
7562
  }
7563
7563
  function E() {
7564
- const D = this.resume(), S = this.stack[this.stack.length - 1];
7565
- S.value = D.replace(/(\r?\n|\r)$/g, "");
7564
+ const I = this.resume(), S = this.stack[this.stack.length - 1];
7565
+ S.value = I.replace(/(\r?\n|\r)$/g, "");
7566
7566
  }
7567
- function _(D) {
7567
+ function _(I) {
7568
7568
  const S = this.resume(), Y = this.stack[this.stack.length - 1];
7569
- Y.label = S, Y.identifier = xt(
7570
- this.sliceSerialize(D)
7569
+ Y.label = S, Y.identifier = bt(
7570
+ this.sliceSerialize(I)
7571
7571
  ).toLowerCase();
7572
7572
  }
7573
7573
  function U() {
7574
- const D = this.resume(), S = this.stack[this.stack.length - 1];
7575
- S.title = D;
7574
+ const I = this.resume(), S = this.stack[this.stack.length - 1];
7575
+ S.title = I;
7576
7576
  }
7577
- function b() {
7578
- const D = this.resume(), S = this.stack[this.stack.length - 1];
7579
- S.url = D;
7577
+ function x() {
7578
+ const I = this.resume(), S = this.stack[this.stack.length - 1];
7579
+ S.url = I;
7580
7580
  }
7581
- function L(D) {
7581
+ function L(I) {
7582
7582
  const S = this.stack[this.stack.length - 1];
7583
7583
  if (!S.depth) {
7584
- const Y = this.sliceSerialize(D).length;
7584
+ const Y = this.sliceSerialize(I).length;
7585
7585
  S.depth = Y;
7586
7586
  }
7587
7587
  }
7588
7588
  function $() {
7589
7589
  o("setextHeadingSlurpLineEnding", !0);
7590
7590
  }
7591
- function W(D) {
7591
+ function W(I) {
7592
7592
  const S = this.stack[this.stack.length - 1];
7593
- S.depth = this.sliceSerialize(D).charCodeAt(0) === 61 ? 1 : 2;
7593
+ S.depth = this.sliceSerialize(I).charCodeAt(0) === 61 ? 1 : 2;
7594
7594
  }
7595
7595
  function X() {
7596
7596
  o("setextHeadingSlurpLineEnding");
7597
7597
  }
7598
- function A(D) {
7598
+ function A(I) {
7599
7599
  const S = this.stack[this.stack.length - 1];
7600
7600
  let Y = S.children[S.children.length - 1];
7601
7601
  (!Y || Y.type !== "text") && (Y = $e(), Y.position = {
7602
- start: Je(D.start)
7602
+ start: Je(I.start)
7603
7603
  }, S.children.push(Y)), this.stack.push(Y);
7604
7604
  }
7605
- function w(D) {
7605
+ function w(I) {
7606
7606
  const S = this.stack.pop();
7607
- S.value += this.sliceSerialize(D), S.position.end = Je(D.end);
7607
+ S.value += this.sliceSerialize(I), S.position.end = Je(I.end);
7608
7608
  }
7609
- function j(D) {
7609
+ function j(I) {
7610
7610
  const S = this.stack[this.stack.length - 1];
7611
7611
  if (a("atHardBreak")) {
7612
7612
  const Y = S.children[S.children.length - 1];
7613
- Y.position.end = Je(D.end), o("atHardBreak");
7613
+ Y.position.end = Je(I.end), o("atHardBreak");
7614
7614
  return;
7615
7615
  }
7616
- !a("setextHeadingSlurpLineEnding") && t.canContainEols.includes(S.type) && (A.call(this, D), w.call(this, D));
7616
+ !a("setextHeadingSlurpLineEnding") && t.canContainEols.includes(S.type) && (A.call(this, I), w.call(this, I));
7617
7617
  }
7618
7618
  function O() {
7619
7619
  o("atHardBreak", !0);
7620
7620
  }
7621
7621
  function F() {
7622
- const D = this.resume(), S = this.stack[this.stack.length - 1];
7623
- S.value = D;
7622
+ const I = this.resume(), S = this.stack[this.stack.length - 1];
7623
+ S.value = I;
7624
7624
  }
7625
7625
  function B() {
7626
- const D = this.resume(), S = this.stack[this.stack.length - 1];
7627
- S.value = D;
7626
+ const I = this.resume(), S = this.stack[this.stack.length - 1];
7627
+ S.value = I;
7628
7628
  }
7629
7629
  function V() {
7630
- const D = this.resume(), S = this.stack[this.stack.length - 1];
7631
- S.value = D;
7630
+ const I = this.resume(), S = this.stack[this.stack.length - 1];
7631
+ S.value = I;
7632
7632
  }
7633
7633
  function q() {
7634
- const D = this.stack[this.stack.length - 1];
7634
+ const I = this.stack[this.stack.length - 1];
7635
7635
  if (a("inReference")) {
7636
7636
  const S = a("referenceType") || "shortcut";
7637
- D.type += "Reference", D.referenceType = S, delete D.url, delete D.title;
7637
+ I.type += "Reference", I.referenceType = S, delete I.url, delete I.title;
7638
7638
  } else
7639
- delete D.identifier, delete D.label;
7639
+ delete I.identifier, delete I.label;
7640
7640
  o("referenceType");
7641
7641
  }
7642
7642
  function K() {
7643
- const D = this.stack[this.stack.length - 1];
7643
+ const I = this.stack[this.stack.length - 1];
7644
7644
  if (a("inReference")) {
7645
7645
  const S = a("referenceType") || "shortcut";
7646
- D.type += "Reference", D.referenceType = S, delete D.url, delete D.title;
7646
+ I.type += "Reference", I.referenceType = S, delete I.url, delete I.title;
7647
7647
  } else
7648
- delete D.identifier, delete D.label;
7648
+ delete I.identifier, delete I.label;
7649
7649
  o("referenceType");
7650
7650
  }
7651
- function g(D) {
7652
- const S = this.sliceSerialize(D), Y = this.stack[this.stack.length - 2];
7653
- Y.label = ld(S), Y.identifier = xt(S).toLowerCase();
7651
+ function g(I) {
7652
+ const S = this.sliceSerialize(I), Y = this.stack[this.stack.length - 2];
7653
+ Y.label = ld(S), Y.identifier = bt(S).toLowerCase();
7654
7654
  }
7655
7655
  function he() {
7656
- const D = this.stack[this.stack.length - 1], S = this.resume(), Y = this.stack[this.stack.length - 1];
7656
+ const I = this.stack[this.stack.length - 1], S = this.resume(), Y = this.stack[this.stack.length - 1];
7657
7657
  if (o("inReference", !0), Y.type === "link") {
7658
- const J = D.children;
7658
+ const J = I.children;
7659
7659
  Y.children = J;
7660
7660
  } else
7661
7661
  Y.alt = S;
7662
7662
  }
7663
7663
  function Me() {
7664
- const D = this.resume(), S = this.stack[this.stack.length - 1];
7665
- S.url = D;
7664
+ const I = this.resume(), S = this.stack[this.stack.length - 1];
7665
+ S.url = I;
7666
7666
  }
7667
7667
  function h() {
7668
- const D = this.resume(), S = this.stack[this.stack.length - 1];
7669
- S.title = D;
7668
+ const I = this.resume(), S = this.stack[this.stack.length - 1];
7669
+ S.title = I;
7670
7670
  }
7671
7671
  function ge() {
7672
7672
  o("inReference");
7673
7673
  }
7674
- function De() {
7674
+ function Ie() {
7675
7675
  o("referenceType", "collapsed");
7676
7676
  }
7677
- function re(D) {
7677
+ function re(I) {
7678
7678
  const S = this.resume(), Y = this.stack[this.stack.length - 1];
7679
- Y.label = S, Y.identifier = xt(
7680
- this.sliceSerialize(D)
7679
+ Y.label = S, Y.identifier = bt(
7680
+ this.sliceSerialize(I)
7681
7681
  ).toLowerCase(), o("referenceType", "full");
7682
7682
  }
7683
- function we(D) {
7684
- o("characterReferenceType", D.type);
7683
+ function we(I) {
7684
+ o("characterReferenceType", I.type);
7685
7685
  }
7686
- function ve(D) {
7687
- const S = this.sliceSerialize(D), Y = a("characterReferenceType");
7686
+ function ve(I) {
7687
+ const S = this.sliceSerialize(I), Y = a("characterReferenceType");
7688
7688
  let J;
7689
7689
  Y ? (J = ka(
7690
7690
  S,
7691
7691
  Y === "characterReferenceMarkerNumeric" ? 10 : 16
7692
7692
  ), o("characterReferenceType")) : J = Qr(S);
7693
7693
  const oe = this.stack.pop();
7694
- oe.value += J, oe.position.end = Je(D.end);
7694
+ oe.value += J, oe.position.end = Je(I.end);
7695
7695
  }
7696
- function Be(D) {
7697
- w.call(this, D);
7696
+ function Be(I) {
7697
+ w.call(this, I);
7698
7698
  const S = this.stack[this.stack.length - 1];
7699
- S.url = this.sliceSerialize(D);
7699
+ S.url = this.sliceSerialize(I);
7700
7700
  }
7701
- function Ae(D) {
7702
- w.call(this, D);
7701
+ function Ae(I) {
7702
+ w.call(this, I);
7703
7703
  const S = this.stack[this.stack.length - 1];
7704
- S.url = "mailto:" + this.sliceSerialize(D);
7704
+ S.url = "mailto:" + this.sliceSerialize(I);
7705
7705
  }
7706
7706
  function Ke() {
7707
7707
  return {
@@ -7772,19 +7772,19 @@ function cd(e) {
7772
7772
  children: []
7773
7773
  };
7774
7774
  }
7775
- function ee(D) {
7775
+ function ee(I) {
7776
7776
  return {
7777
7777
  type: "list",
7778
- ordered: D.type === "listOrdered",
7778
+ ordered: I.type === "listOrdered",
7779
7779
  start: null,
7780
- spread: D._spread,
7780
+ spread: I._spread,
7781
7781
  children: []
7782
7782
  };
7783
7783
  }
7784
- function me(D) {
7784
+ function me(I) {
7785
7785
  return {
7786
7786
  type: "listItem",
7787
- spread: D._spread,
7787
+ spread: I._spread,
7788
7788
  checked: null,
7789
7789
  children: []
7790
7790
  };
@@ -7921,7 +7921,7 @@ function yd(e, t) {
7921
7921
  };
7922
7922
  return e.patch(t, n), e.applyData(t, n);
7923
7923
  }
7924
- function It(e) {
7924
+ function Dt(e) {
7925
7925
  const t = [];
7926
7926
  let n = -1, r = 0, i = 0;
7927
7927
  for (; ++n < e.length; ) {
@@ -7941,7 +7941,7 @@ function It(e) {
7941
7941
  return t.join("") + e.slice(r);
7942
7942
  }
7943
7943
  function Ca(e, t) {
7944
- const n = String(t.identifier).toUpperCase(), r = It(n.toLowerCase()), i = e.footnoteOrder.indexOf(n);
7944
+ const n = String(t.identifier).toUpperCase(), r = Dt(n.toLowerCase()), i = e.footnoteOrder.indexOf(n);
7945
7945
  let o;
7946
7946
  i === -1 ? (e.footnoteOrder.push(n), e.footnoteCounts[n] = 1, o = e.footnoteOrder.length) : (e.footnoteCounts[n]++, o = i + 1);
7947
7947
  const a = e.footnoteCounts[n], l = {
@@ -7981,7 +7981,7 @@ function Md(e, t) {
7981
7981
  position: t.position
7982
7982
  });
7983
7983
  }
7984
- function bd(e, t) {
7984
+ function xd(e, t) {
7985
7985
  const n = {
7986
7986
  type: "element",
7987
7987
  tagName: "h" + t.depth,
@@ -7990,7 +7990,7 @@ function bd(e, t) {
7990
7990
  };
7991
7991
  return e.patch(t, n), e.applyData(t, n);
7992
7992
  }
7993
- function xd(e, t) {
7993
+ function bd(e, t) {
7994
7994
  if (e.dangerous) {
7995
7995
  const n = { type: "raw", value: t.value };
7996
7996
  return e.patch(t, n), e.applyData(t, n);
@@ -8011,13 +8011,13 @@ function wd(e, t) {
8011
8011
  const n = e.definition(t.identifier);
8012
8012
  if (!n)
8013
8013
  return Aa(e, t);
8014
- const r = { src: It(n.url || ""), alt: t.alt };
8014
+ const r = { src: Dt(n.url || ""), alt: t.alt };
8015
8015
  n.title !== null && n.title !== void 0 && (r.title = n.title);
8016
8016
  const i = { type: "element", tagName: "img", properties: r, children: [] };
8017
8017
  return e.patch(t, i), e.applyData(t, i);
8018
8018
  }
8019
8019
  function vd(e, t) {
8020
- const n = { src: It(t.url) };
8020
+ const n = { src: Dt(t.url) };
8021
8021
  t.alt !== null && t.alt !== void 0 && (n.alt = t.alt), t.title !== null && t.title !== void 0 && (n.title = t.title);
8022
8022
  const r = { type: "element", tagName: "img", properties: n, children: [] };
8023
8023
  return e.patch(t, r), e.applyData(t, r);
@@ -8037,7 +8037,7 @@ function Nd(e, t) {
8037
8037
  const n = e.definition(t.identifier);
8038
8038
  if (!n)
8039
8039
  return Aa(e, t);
8040
- const r = { href: It(n.url || "") };
8040
+ const r = { href: Dt(n.url || "") };
8041
8041
  n.title !== null && n.title !== void 0 && (r.title = n.title);
8042
8042
  const i = {
8043
8043
  type: "element",
@@ -8047,8 +8047,8 @@ function Nd(e, t) {
8047
8047
  };
8048
8048
  return e.patch(t, i), e.applyData(t, i);
8049
8049
  }
8050
- function Id(e, t) {
8051
- const n = { href: It(t.url) };
8050
+ function Dd(e, t) {
8051
+ const n = { href: Dt(t.url) };
8052
8052
  t.title !== null && t.title !== void 0 && (n.title = t.title);
8053
8053
  const r = {
8054
8054
  type: "element",
@@ -8058,7 +8058,7 @@ function Id(e, t) {
8058
8058
  };
8059
8059
  return e.patch(t, r), e.applyData(t, r);
8060
8060
  }
8061
- function Dd(e, t, n) {
8061
+ function Id(e, t, n) {
8062
8062
  const r = e.all(t), i = n ? kd(n) : Sa(t), o = {}, a = [];
8063
8063
  if (typeof t.checked == "boolean") {
8064
8064
  const c = r[0];
@@ -8258,14 +8258,14 @@ const Rd = {
8258
8258
  emphasis: yd,
8259
8259
  footnoteReference: Ca,
8260
8260
  footnote: Md,
8261
- heading: bd,
8262
- html: xd,
8261
+ heading: xd,
8262
+ html: bd,
8263
8263
  imageReference: wd,
8264
8264
  image: vd,
8265
8265
  inlineCode: Td,
8266
8266
  linkReference: Nd,
8267
- link: Id,
8268
- listItem: Dd,
8267
+ link: Dd,
8268
+ listItem: Id,
8269
8269
  list: jd,
8270
8270
  paragraph: Ed,
8271
8271
  root: Cd,
@@ -8302,7 +8302,7 @@ const za = (
8302
8302
  if (typeof e == "object")
8303
8303
  return Array.isArray(e) ? Ud(e) : Bd(e);
8304
8304
  if (typeof e == "function")
8305
- return In(e);
8305
+ return Dn(e);
8306
8306
  throw new Error("Expected function, string, or object as test");
8307
8307
  }
8308
8308
  );
@@ -8311,7 +8311,7 @@ function Ud(e) {
8311
8311
  let n = -1;
8312
8312
  for (; ++n < e.length; )
8313
8313
  t[n] = za(e[n]);
8314
- return In(r);
8314
+ return Dn(r);
8315
8315
  function r(...i) {
8316
8316
  let o = -1;
8317
8317
  for (; ++o < t.length; )
@@ -8321,7 +8321,7 @@ function Ud(e) {
8321
8321
  }
8322
8322
  }
8323
8323
  function Bd(e) {
8324
- return In(t);
8324
+ return Dn(t);
8325
8325
  function t(n) {
8326
8326
  let r;
8327
8327
  for (r in e)
@@ -8331,12 +8331,12 @@ function Bd(e) {
8331
8331
  }
8332
8332
  }
8333
8333
  function Qd(e) {
8334
- return In(t);
8334
+ return Dn(t);
8335
8335
  function t(n) {
8336
8336
  return n && n.type === e;
8337
8337
  }
8338
8338
  }
8339
- function In(e) {
8339
+ function Dn(e) {
8340
8340
  return t;
8341
8341
  function t(n, ...r) {
8342
8342
  return !!(n && typeof n == "object" && "type" in n && e.call(this, n, ...r));
@@ -8379,12 +8379,12 @@ const Hd = !0, po = !1, $d = "skip", qd = (
8379
8379
  }
8380
8380
  return p;
8381
8381
  function p() {
8382
- let m = [], f, v, x;
8382
+ let m = [], f, v, b;
8383
8383
  if ((!t || i(l, s, u[u.length - 1] || null)) && (m = Vd(n(l, u)), m[0] === po))
8384
8384
  return m;
8385
8385
  if (l.children && m[0] !== $d)
8386
- for (v = (r ? l.children.length : -1) + o, x = u.concat(l); v > -1 && v < l.children.length; ) {
8387
- if (f = a(l.children[v], v, x)(), f[0] === po)
8386
+ for (v = (r ? l.children.length : -1) + o, b = u.concat(l); v > -1 && v < l.children.length; ) {
8387
+ if (f = a(l.children[v], v, b)(), f[0] === po)
8388
8388
  return f;
8389
8389
  v = typeof f[1] == "number" ? f[1] : v + o;
8390
8390
  }
@@ -8442,14 +8442,14 @@ function Gd(e) {
8442
8442
  function ho(e) {
8443
8443
  return String(e || "").toUpperCase();
8444
8444
  }
8445
- const xn = {}.hasOwnProperty;
8445
+ const bn = {}.hasOwnProperty;
8446
8446
  function Zd(e, t) {
8447
8447
  const n = t || {}, r = n.allowDangerousHtml || !1, i = {};
8448
8448
  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 || {
8449
8449
  className: ["sr-only"]
8450
8450
  }, 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) => {
8451
8451
  const c = String(u.identifier).toUpperCase();
8452
- xn.call(i, c) || (i[c] = u);
8452
+ bn.call(i, c) || (i[c] = u);
8453
8453
  }), a;
8454
8454
  function o(u, c) {
8455
8455
  if (u && "data" in u && u.data) {
@@ -8502,7 +8502,7 @@ function La(e, t, n) {
8502
8502
  const r = t && t.type;
8503
8503
  if (!r)
8504
8504
  throw new Error("Expected node, got `" + t + "`");
8505
- 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);
8505
+ 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);
8506
8506
  }
8507
8507
  function Vr(e, t) {
8508
8508
  const n = [];
@@ -8523,7 +8523,7 @@ function Vr(e, t) {
8523
8523
  return n;
8524
8524
  }
8525
8525
  function Jd(e, t) {
8526
- const n = t.data || {}, r = "value" in t && !(xn.call(n, "hProperties") || xn.call(n, "hChildren")) ? { type: "text", value: t.value } : {
8526
+ const n = t.data || {}, r = "value" in t && !(bn.call(n, "hProperties") || bn.call(n, "hChildren")) ? { type: "text", value: t.value } : {
8527
8527
  type: "element",
8528
8528
  tagName: "div",
8529
8529
  properties: {},
@@ -8548,7 +8548,7 @@ function th(e) {
8548
8548
  const r = e.footnoteById[e.footnoteOrder[n]];
8549
8549
  if (!r)
8550
8550
  continue;
8551
- const i = e.all(r), o = String(r.identifier).toUpperCase(), a = It(o.toLowerCase());
8551
+ const i = e.all(r), o = String(r.identifier).toUpperCase(), a = Dt(o.toLowerCase());
8552
8552
  let l = 0;
8553
8553
  const s = [];
8554
8554
  for (; ++l <= e.footnoteCounts[o]; ) {
@@ -8654,7 +8654,7 @@ function Fa(e, t) {
8654
8654
  Object.assign(n, e[i].property), Object.assign(r, e[i].normal);
8655
8655
  return new Gt(n, r, t);
8656
8656
  }
8657
- function Ir(e) {
8657
+ function Dr(e) {
8658
8658
  return e.toLowerCase();
8659
8659
  }
8660
8660
  class Re {
@@ -8678,20 +8678,20 @@ Re.prototype.commaOrSpaceSeparated = !1;
8678
8678
  Re.prototype.mustUseProperty = !1;
8679
8679
  Re.prototype.defined = !1;
8680
8680
  let ah = 0;
8681
- const Z = ht(), be = ht(), Pa = ht(), C = ht(), ce = ht(), wt = ht(), Ee = ht();
8681
+ const Z = ht(), xe = ht(), Pa = ht(), C = ht(), ce = ht(), wt = ht(), Ee = ht();
8682
8682
  function ht() {
8683
8683
  return 2 ** ++ah;
8684
8684
  }
8685
- const Dr = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineProperty({
8685
+ const Ir = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineProperty({
8686
8686
  __proto__: null,
8687
8687
  boolean: Z,
8688
- booleanish: be,
8688
+ booleanish: xe,
8689
8689
  commaOrSpaceSeparated: Ee,
8690
8690
  commaSeparated: wt,
8691
8691
  number: C,
8692
8692
  overloadedBoolean: Pa,
8693
8693
  spaceSeparated: ce
8694
- }, Symbol.toStringTag, { value: "Module" })), or = Object.keys(Dr);
8694
+ }, Symbol.toStringTag, { value: "Module" })), or = Object.keys(Ir);
8695
8695
  class Wr extends Re {
8696
8696
  /**
8697
8697
  * @constructor
@@ -8705,7 +8705,7 @@ class Wr extends Re {
8705
8705
  if (super(t, n), go(this, "space", i), typeof r == "number")
8706
8706
  for (; ++o < or.length; ) {
8707
8707
  const a = or[o];
8708
- go(this, or[o], (r & Dr[a]) === Dr[a]);
8708
+ go(this, or[o], (r & Ir[a]) === Ir[a]);
8709
8709
  }
8710
8710
  }
8711
8711
  }
@@ -8714,7 +8714,7 @@ function go(e, t, n) {
8714
8714
  n && (e[t] = n);
8715
8715
  }
8716
8716
  const lh = {}.hasOwnProperty;
8717
- function Dt(e) {
8717
+ function It(e) {
8718
8718
  const t = {}, n = {};
8719
8719
  let r;
8720
8720
  for (r in e.properties)
@@ -8725,11 +8725,11 @@ function Dt(e) {
8725
8725
  i,
8726
8726
  e.space
8727
8727
  );
8728
- e.mustUseProperty && e.mustUseProperty.includes(r) && (o.mustUseProperty = !0), t[r] = o, n[Ir(r)] = r, n[Ir(o.attribute)] = r;
8728
+ e.mustUseProperty && e.mustUseProperty.includes(r) && (o.mustUseProperty = !0), t[r] = o, n[Dr(r)] = r, n[Dr(o.attribute)] = r;
8729
8729
  }
8730
8730
  return new Gt(t, n, e.space);
8731
8731
  }
8732
- const Ra = Dt({
8732
+ const Ra = It({
8733
8733
  space: "xlink",
8734
8734
  transform(e, t) {
8735
8735
  return "xlink:" + t.slice(5).toLowerCase();
@@ -8743,7 +8743,7 @@ const Ra = Dt({
8743
8743
  xLinkTitle: null,
8744
8744
  xLinkType: null
8745
8745
  }
8746
- }), Ua = Dt({
8746
+ }), Ua = It({
8747
8747
  space: "xml",
8748
8748
  transform(e, t) {
8749
8749
  return "xml:" + t.slice(3).toLowerCase();
@@ -8756,21 +8756,21 @@ function Ba(e, t) {
8756
8756
  function Qa(e, t) {
8757
8757
  return Ba(e, t.toLowerCase());
8758
8758
  }
8759
- const Ya = Dt({
8759
+ const Ya = It({
8760
8760
  space: "xmlns",
8761
8761
  attributes: { xmlnsxlink: "xmlns:xlink" },
8762
8762
  transform: Qa,
8763
8763
  properties: { xmlns: null, xmlnsXLink: null }
8764
- }), Ha = Dt({
8764
+ }), Ha = It({
8765
8765
  transform(e, t) {
8766
8766
  return t === "role" ? t : "aria-" + t.slice(4).toLowerCase();
8767
8767
  },
8768
8768
  properties: {
8769
8769
  ariaActiveDescendant: null,
8770
- ariaAtomic: be,
8770
+ ariaAtomic: xe,
8771
8771
  ariaAutoComplete: null,
8772
- ariaBusy: be,
8773
- ariaChecked: be,
8772
+ ariaBusy: xe,
8773
+ ariaChecked: xe,
8774
8774
  ariaColCount: C,
8775
8775
  ariaColIndex: C,
8776
8776
  ariaColSpan: C,
@@ -8778,36 +8778,36 @@ const Ya = Dt({
8778
8778
  ariaCurrent: null,
8779
8779
  ariaDescribedBy: ce,
8780
8780
  ariaDetails: null,
8781
- ariaDisabled: be,
8781
+ ariaDisabled: xe,
8782
8782
  ariaDropEffect: ce,
8783
8783
  ariaErrorMessage: null,
8784
- ariaExpanded: be,
8784
+ ariaExpanded: xe,
8785
8785
  ariaFlowTo: ce,
8786
- ariaGrabbed: be,
8786
+ ariaGrabbed: xe,
8787
8787
  ariaHasPopup: null,
8788
- ariaHidden: be,
8788
+ ariaHidden: xe,
8789
8789
  ariaInvalid: null,
8790
8790
  ariaKeyShortcuts: null,
8791
8791
  ariaLabel: null,
8792
8792
  ariaLabelledBy: ce,
8793
8793
  ariaLevel: C,
8794
8794
  ariaLive: null,
8795
- ariaModal: be,
8796
- ariaMultiLine: be,
8797
- ariaMultiSelectable: be,
8795
+ ariaModal: xe,
8796
+ ariaMultiLine: xe,
8797
+ ariaMultiSelectable: xe,
8798
8798
  ariaOrientation: null,
8799
8799
  ariaOwns: ce,
8800
8800
  ariaPlaceholder: null,
8801
8801
  ariaPosInSet: C,
8802
- ariaPressed: be,
8803
- ariaReadOnly: be,
8802
+ ariaPressed: xe,
8803
+ ariaReadOnly: xe,
8804
8804
  ariaRelevant: null,
8805
- ariaRequired: be,
8805
+ ariaRequired: xe,
8806
8806
  ariaRoleDescription: ce,
8807
8807
  ariaRowCount: C,
8808
8808
  ariaRowIndex: C,
8809
8809
  ariaRowSpan: C,
8810
- ariaSelected: be,
8810
+ ariaSelected: xe,
8811
8811
  ariaSetSize: C,
8812
8812
  ariaSort: null,
8813
8813
  ariaValueMax: C,
@@ -8816,7 +8816,7 @@ const Ya = Dt({
8816
8816
  ariaValueText: null,
8817
8817
  role: null
8818
8818
  }
8819
- }), sh = Dt({
8819
+ }), sh = It({
8820
8820
  space: "html",
8821
8821
  attributes: {
8822
8822
  acceptcharset: "accept-charset",
@@ -8853,7 +8853,7 @@ const Ya = Dt({
8853
8853
  cols: C,
8854
8854
  colSpan: null,
8855
8855
  content: null,
8856
- contentEditable: be,
8856
+ contentEditable: xe,
8857
8857
  controls: Z,
8858
8858
  controlsList: ce,
8859
8859
  coords: C | wt,
@@ -8867,7 +8867,7 @@ const Ya = Dt({
8867
8867
  dirName: null,
8868
8868
  disabled: Z,
8869
8869
  download: Pa,
8870
- draggable: be,
8870
+ draggable: xe,
8871
8871
  encType: null,
8872
8872
  enterKeyHint: null,
8873
8873
  fetchPriority: null,
@@ -9037,7 +9037,7 @@ const Ya = Dt({
9037
9037
  sizes: null,
9038
9038
  slot: null,
9039
9039
  span: C,
9040
- spellCheck: be,
9040
+ spellCheck: xe,
9041
9041
  src: null,
9042
9042
  srcDoc: null,
9043
9043
  srcLang: null,
@@ -9052,7 +9052,7 @@ const Ya = Dt({
9052
9052
  type: null,
9053
9053
  typeMustMatch: Z,
9054
9054
  useMap: null,
9055
- value: be,
9055
+ value: xe,
9056
9056
  width: C,
9057
9057
  wrap: null,
9058
9058
  // Legacy.
@@ -9143,7 +9143,7 @@ const Ya = Dt({
9143
9143
  // `<table>`
9144
9144
  scheme: null,
9145
9145
  // `<meta>`
9146
- scrolling: be,
9146
+ scrolling: xe,
9147
9147
  // `<frame>`. Use overflow in the child context
9148
9148
  standby: null,
9149
9149
  // `<object>`
@@ -9175,7 +9175,7 @@ const Ya = Dt({
9175
9175
  security: null,
9176
9176
  unselectable: null
9177
9177
  }
9178
- }), uh = Dt({
9178
+ }), uh = It({
9179
9179
  space: "svg",
9180
9180
  attributes: {
9181
9181
  accentHeight: "accent-height",
@@ -9736,7 +9736,7 @@ const Ya = Dt({
9736
9736
  }
9737
9737
  }), ch = /^data[-\w.:]+$/i, mo = /-[a-z]/g, ph = /[A-Z]/g;
9738
9738
  function fh(e, t) {
9739
- const n = Ir(t);
9739
+ const n = Dr(t);
9740
9740
  let r = t, i = Re;
9741
9741
  if (n in e.normal)
9742
9742
  return e.property[e.normal[n]];
@@ -9808,7 +9808,7 @@ var $a = { exports: {} }, ae = {};
9808
9808
  * This source code is licensed under the MIT license found in the
9809
9809
  * LICENSE file in the root directory of this source tree.
9810
9810
  */
9811
- 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;
9811
+ var Gr = Symbol.for("react.element"), Zr = Symbol.for("react.portal"), In = 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;
9812
9812
  qa = Symbol.for("react.module.reference");
9813
9813
  function Ue(e) {
9814
9814
  if (typeof e == "object" && e !== null) {
@@ -9816,7 +9816,7 @@ function Ue(e) {
9816
9816
  switch (t) {
9817
9817
  case Gr:
9818
9818
  switch (e = e.type, e) {
9819
- case Dn:
9819
+ case In:
9820
9820
  case jn:
9821
9821
  case kn:
9822
9822
  case Sn:
@@ -9844,7 +9844,7 @@ ae.ContextConsumer = Cn;
9844
9844
  ae.ContextProvider = En;
9845
9845
  ae.Element = Gr;
9846
9846
  ae.ForwardRef = An;
9847
- ae.Fragment = Dn;
9847
+ ae.Fragment = In;
9848
9848
  ae.Lazy = Ln;
9849
9849
  ae.Memo = zn;
9850
9850
  ae.Portal = Zr;
@@ -9871,7 +9871,7 @@ ae.isForwardRef = function(e) {
9871
9871
  return Ue(e) === An;
9872
9872
  };
9873
9873
  ae.isFragment = function(e) {
9874
- return Ue(e) === Dn;
9874
+ return Ue(e) === In;
9875
9875
  };
9876
9876
  ae.isLazy = function(e) {
9877
9877
  return Ue(e) === Ln;
@@ -9895,12 +9895,12 @@ ae.isSuspenseList = function(e) {
9895
9895
  return Ue(e) === On;
9896
9896
  };
9897
9897
  ae.isValidElementType = function(e) {
9898
- 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);
9898
+ return typeof e == "string" || typeof e == "function" || e === In || 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);
9899
9899
  };
9900
9900
  ae.typeOf = Ue;
9901
9901
  $a.exports = ae;
9902
- var xh = $a.exports;
9903
- const wh = /* @__PURE__ */ nt(xh);
9902
+ var bh = $a.exports;
9903
+ const wh = /* @__PURE__ */ nt(bh);
9904
9904
  function vh(e) {
9905
9905
  const t = (
9906
9906
  // @ts-expect-error looks like a node.
@@ -9920,8 +9920,8 @@ function Nh(e, t) {
9920
9920
  (n.padRight ? " " : "") + "," + (n.padLeft === !1 ? "" : " ")
9921
9921
  ).trim();
9922
9922
  }
9923
- 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 = `
9924
- `, bo = "/", xo = "*", pt = "", Oh = "comment", zh = "declaration", Lh = function(e, t) {
9923
+ var Kr = { exports: {} }, Mo = /\/\*[^*]*\*+([^/*][^*]*\*+)*\//g, Dh = /\n/g, Ih = /^\s*/, kh = /^(\*?[-#/*\\\w]+(\[[0-9a-z_-]+\])?)\s*/, jh = /^:\s*/, Eh = /^((?:'(?:\\'|.)*?'|"(?:\\"|.)*?"|\([^)]*?\)|[^};])+)/, Ch = /^[;\s]*/, Ah = /^\s+|\s+$/g, Sh = `
9924
+ `, xo = "/", bo = "*", pt = "", Oh = "comment", zh = "declaration", Lh = function(e, t) {
9925
9925
  if (typeof e != "string")
9926
9926
  throw new TypeError("First argument must be a string");
9927
9927
  if (!e)
@@ -9929,15 +9929,15 @@ var Kr = { exports: {} }, Mo = /\/\*[^*]*\*+([^/*][^*]*\*+)*\//g, Ih = /\n/g, Dh
9929
9929
  t = t || {};
9930
9930
  var n = 1, r = 1;
9931
9931
  function i(v) {
9932
- var x = v.match(Ih);
9933
- x && (n += x.length);
9932
+ var b = v.match(Dh);
9933
+ b && (n += b.length);
9934
9934
  var k = v.lastIndexOf(Sh);
9935
9935
  r = ~k ? v.length - k : r + v.length;
9936
9936
  }
9937
9937
  function o() {
9938
9938
  var v = { line: n, column: r };
9939
- return function(x) {
9940
- return x.position = new a(v), u(), x;
9939
+ return function(b) {
9940
+ return b.position = new a(v), u(), b;
9941
9941
  };
9942
9942
  }
9943
9943
  function a(v) {
@@ -9945,50 +9945,50 @@ var Kr = { exports: {} }, Mo = /\/\*[^*]*\*+([^/*][^*]*\*+)*\//g, Ih = /\n/g, Dh
9945
9945
  }
9946
9946
  a.prototype.content = e;
9947
9947
  function l(v) {
9948
- var x = new Error(
9948
+ var b = new Error(
9949
9949
  t.source + ":" + n + ":" + r + ": " + v
9950
9950
  );
9951
- if (x.reason = v, x.filename = t.source, x.line = n, x.column = r, x.source = e, !t.silent)
9952
- throw x;
9951
+ if (b.reason = v, b.filename = t.source, b.line = n, b.column = r, b.source = e, !t.silent)
9952
+ throw b;
9953
9953
  }
9954
9954
  function s(v) {
9955
- var x = v.exec(e);
9956
- if (x) {
9957
- var k = x[0];
9958
- return i(k), e = e.slice(k.length), x;
9955
+ var b = v.exec(e);
9956
+ if (b) {
9957
+ var k = b[0];
9958
+ return i(k), e = e.slice(k.length), b;
9959
9959
  }
9960
9960
  }
9961
9961
  function u() {
9962
- s(Dh);
9962
+ s(Ih);
9963
9963
  }
9964
9964
  function c(v) {
9965
- var x;
9966
- for (v = v || []; x = p(); )
9967
- x !== !1 && v.push(x);
9965
+ var b;
9966
+ for (v = v || []; b = p(); )
9967
+ b !== !1 && v.push(b);
9968
9968
  return v;
9969
9969
  }
9970
9970
  function p() {
9971
9971
  var v = o();
9972
- if (!(bo != e.charAt(0) || xo != e.charAt(1))) {
9973
- for (var x = 2; pt != e.charAt(x) && (xo != e.charAt(x) || bo != e.charAt(x + 1)); )
9974
- ++x;
9975
- if (x += 2, pt === e.charAt(x - 1))
9972
+ if (!(xo != e.charAt(0) || bo != e.charAt(1))) {
9973
+ for (var b = 2; pt != e.charAt(b) && (bo != e.charAt(b) || xo != e.charAt(b + 1)); )
9974
+ ++b;
9975
+ if (b += 2, pt === e.charAt(b - 1))
9976
9976
  return l("End of comment missing");
9977
- var k = e.slice(2, x - 2);
9978
- return r += 2, i(k), e = e.slice(x), r += 2, v({
9977
+ var k = e.slice(2, b - 2);
9978
+ return r += 2, i(k), e = e.slice(b), r += 2, v({
9979
9979
  type: Oh,
9980
9980
  comment: k
9981
9981
  });
9982
9982
  }
9983
9983
  }
9984
9984
  function m() {
9985
- var v = o(), x = s(kh);
9986
- if (x) {
9985
+ var v = o(), b = s(kh);
9986
+ if (b) {
9987
9987
  if (p(), !s(jh))
9988
9988
  return l("property missing ':'");
9989
9989
  var k = s(Eh), M = v({
9990
9990
  type: zh,
9991
- property: wo(x[0].replace(Mo, pt)),
9991
+ property: wo(b[0].replace(Mo, pt)),
9992
9992
  value: k ? wo(k[0].replace(Mo, pt)) : pt
9993
9993
  });
9994
9994
  return s(Ch), M;
@@ -9997,8 +9997,8 @@ var Kr = { exports: {} }, Mo = /\/\*[^*]*\*+([^/*][^*]*\*+)*\//g, Ih = /\n/g, Dh
9997
9997
  function f() {
9998
9998
  var v = [];
9999
9999
  c(v);
10000
- for (var x; x = m(); )
10001
- x !== !1 && (v.push(x), c(v));
10000
+ for (var b; b = m(); )
10001
+ b !== !1 && (v.push(b), c(v));
10002
10002
  return v;
10003
10003
  }
10004
10004
  return u(), f();
@@ -10056,8 +10056,8 @@ function Uh(e, t, n, r) {
10056
10056
  String(s.alt || ""),
10057
10057
  typeof s.title == "string" ? s.title : null
10058
10058
  )), !v && l === "li" && r.type === "element") {
10059
- const x = Bh(t);
10060
- s.checked = x && x.properties ? !!x.properties.checked : null, s.index = ar(r, t), s.ordered = r.tagName === "ol";
10059
+ const b = Bh(t);
10060
+ s.checked = b && b.properties ? !!b.properties.checked : null, s.index = ar(r, t), s.ordered = r.tagName === "ol";
10061
10061
  }
10062
10062
  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);
10063
10063
  }
@@ -10158,62 +10158,62 @@ function Ga(e) {
10158
10158
  }
10159
10159
  Ga.propTypes = {
10160
10160
  // Core options:
10161
- children: I.string,
10161
+ children: D.string,
10162
10162
  // Layout options:
10163
- className: I.string,
10163
+ className: D.string,
10164
10164
  // Filter options:
10165
- allowElement: I.func,
10166
- allowedElements: I.arrayOf(I.string),
10167
- disallowedElements: I.arrayOf(I.string),
10168
- unwrapDisallowed: I.bool,
10165
+ allowElement: D.func,
10166
+ allowedElements: D.arrayOf(D.string),
10167
+ disallowedElements: D.arrayOf(D.string),
10168
+ unwrapDisallowed: D.bool,
10169
10169
  // Plugin options:
10170
- remarkPlugins: I.arrayOf(
10171
- I.oneOfType([
10172
- I.object,
10173
- I.func,
10174
- I.arrayOf(
10175
- I.oneOfType([
10176
- I.bool,
10177
- I.string,
10178
- I.object,
10179
- I.func,
10180
- I.arrayOf(
10170
+ remarkPlugins: D.arrayOf(
10171
+ D.oneOfType([
10172
+ D.object,
10173
+ D.func,
10174
+ D.arrayOf(
10175
+ D.oneOfType([
10176
+ D.bool,
10177
+ D.string,
10178
+ D.object,
10179
+ D.func,
10180
+ D.arrayOf(
10181
10181
  // prettier-ignore
10182
10182
  // type-coverage:ignore-next-line
10183
- I.any
10183
+ D.any
10184
10184
  )
10185
10185
  ])
10186
10186
  )
10187
10187
  ])
10188
10188
  ),
10189
- rehypePlugins: I.arrayOf(
10190
- I.oneOfType([
10191
- I.object,
10192
- I.func,
10193
- I.arrayOf(
10194
- I.oneOfType([
10195
- I.bool,
10196
- I.string,
10197
- I.object,
10198
- I.func,
10199
- I.arrayOf(
10189
+ rehypePlugins: D.arrayOf(
10190
+ D.oneOfType([
10191
+ D.object,
10192
+ D.func,
10193
+ D.arrayOf(
10194
+ D.oneOfType([
10195
+ D.bool,
10196
+ D.string,
10197
+ D.object,
10198
+ D.func,
10199
+ D.arrayOf(
10200
10200
  // prettier-ignore
10201
10201
  // type-coverage:ignore-next-line
10202
- I.any
10202
+ D.any
10203
10203
  )
10204
10204
  ])
10205
10205
  )
10206
10206
  ])
10207
10207
  ),
10208
10208
  // Transform options:
10209
- sourcePos: I.bool,
10210
- rawSourcePos: I.bool,
10211
- skipHtml: I.bool,
10212
- includeElementIndex: I.bool,
10213
- transformLinkUri: I.oneOfType([I.func, I.bool]),
10214
- linkTarget: I.oneOfType([I.func, I.string]),
10215
- transformImageUri: I.func,
10216
- components: I.object
10209
+ sourcePos: D.bool,
10210
+ rawSourcePos: D.bool,
10211
+ skipHtml: D.bool,
10212
+ includeElementIndex: D.bool,
10213
+ transformLinkUri: D.oneOfType([D.func, D.bool]),
10214
+ linkTarget: D.oneOfType([D.func, D.string]),
10215
+ transformImageUri: D.func,
10216
+ components: D.object
10217
10217
  };
10218
10218
  function Za({ message: e, id: t, onFeedbackThumbSelection: n }) {
10219
10219
  return /* @__PURE__ */ N.jsxs("div", { className: "xpert-chatbot-popup__feedback", children: [
@@ -10253,9 +10253,9 @@ function Za({ message: e, id: t, onFeedbackThumbSelection: n }) {
10253
10253
  ] });
10254
10254
  }
10255
10255
  Za.propTypes = {
10256
- id: I.number.isRequired,
10257
- message: I.shape().isRequired,
10258
- onFeedbackThumbSelection: I.func.isRequired
10256
+ id: D.number.isRequired,
10257
+ message: D.shape().isRequired,
10258
+ onFeedbackThumbSelection: D.func.isRequired
10259
10259
  };
10260
10260
  const Vh = (e) => {
10261
10261
  Array.from(e.entries()).forEach((n) => {
@@ -10293,28 +10293,28 @@ function _n({
10293
10293
  }), ((_ = 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`);
10294
10294
  },
10295
10295
  [p]
10296
- ), x = vt(
10296
+ ), b = vt(
10297
10297
  (M) => {
10298
10298
  var z, E, _, U;
10299
10299
  ((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);
10300
10300
  },
10301
10301
  [t]
10302
10302
  );
10303
- xe(() => {
10303
+ be(() => {
10304
10304
  let M, z;
10305
10305
  return f.liveChat.enabled && (window.Five9ChatPlugin || (M = document.createElement("script"), M.type = "text/javascript", M.src = f.liveChat.sourceCode, M.async = !0, M.onload = () => {
10306
10306
  window.Five9ChatPlugin(f.liveChat.options);
10307
- }, document.body.appendChild(M)), window.addEventListener("message", v), window.addEventListener("message", x), z = setTimeout(() => {
10307
+ }, document.body.appendChild(M)), window.addEventListener("message", v), window.addEventListener("message", b), z = setTimeout(() => {
10308
10308
  u(!1);
10309
10309
  }, 3e3)), () => {
10310
- f.liveChat.enabled && (window.removeEventListener("message", v), window.removeEventListener("message", x), clearTimeout(z));
10310
+ f.liveChat.enabled && (window.removeEventListener("message", v), window.removeEventListener("message", b), clearTimeout(z));
10311
10311
  };
10312
10312
  }, [
10313
10313
  f.liveChat.enabled,
10314
10314
  f.liveChat.options,
10315
10315
  f.liveChat.sourceCode,
10316
10316
  v,
10317
- x
10317
+ b
10318
10318
  ]);
10319
10319
  const k = () => {
10320
10320
  e({
@@ -10362,14 +10362,14 @@ function _n({
10362
10362
  ] });
10363
10363
  }
10364
10364
  _n.propTypes = {
10365
- submitEvent: I.func,
10366
- setLiveChatOpen: I.func,
10367
- isTestUser: I.bool,
10368
- enableLiveChatMessage: I.bool,
10369
- containerStyle: I.shape(),
10370
- buttonClassName: I.string,
10371
- text: I.string,
10372
- userTrackingName: I.string
10365
+ submitEvent: D.func,
10366
+ setLiveChatOpen: D.func,
10367
+ isTestUser: D.bool,
10368
+ enableLiveChatMessage: D.bool,
10369
+ containerStyle: D.shape(),
10370
+ buttonClassName: D.string,
10371
+ text: D.string,
10372
+ userTrackingName: D.string
10373
10373
  };
10374
10374
  _n.defaultProps = {
10375
10375
  submitEvent: null,
@@ -10455,15 +10455,15 @@ const Fn = ({
10455
10455
  }
10456
10456
  );
10457
10457
  Fn.propTypes = {
10458
- index: I.number.isRequired,
10459
- message: I.shape().isRequired,
10460
- onFeedbackThumbSelection: I.func.isRequired,
10461
- isNormalSize: I.bool.isRequired,
10462
- messageRef: I.shape({ current: I.instanceOf(Element) }),
10463
- handleMessageLinkClicked: I.func,
10464
- submitEvent: I.func,
10465
- setLiveChatOpen: I.func,
10466
- isTestUser: I.bool
10458
+ index: D.number.isRequired,
10459
+ message: D.shape().isRequired,
10460
+ onFeedbackThumbSelection: D.func.isRequired,
10461
+ isNormalSize: D.bool.isRequired,
10462
+ messageRef: D.shape({ current: D.instanceOf(Element) }),
10463
+ handleMessageLinkClicked: D.func,
10464
+ submitEvent: D.func,
10465
+ setLiveChatOpen: D.func,
10466
+ isTestUser: D.bool
10467
10467
  };
10468
10468
  Fn.defaultProps = {
10469
10469
  submitEvent: null,
@@ -10473,7 +10473,7 @@ Fn.defaultProps = {
10473
10473
  Fn.displayName = "AssistantMessageBubble";
10474
10474
  const Kh = Fn, Ka = () => {
10475
10475
  const { disclaimer: e } = _e(Fe), t = We(null);
10476
- return xe(() => {
10476
+ return be(() => {
10477
10477
  var n;
10478
10478
  (n = t == null ? void 0 : t.current) == null || n.focus();
10479
10479
  }, []), /* @__PURE__ */ N.jsxs(
@@ -10531,8 +10531,8 @@ const Xh = Ka, Xr = ({ loading: e, onPromptClick: t }) => {
10531
10531
  ] });
10532
10532
  };
10533
10533
  Xr.propTypes = {
10534
- loading: I.bool.isRequired,
10535
- onPromptClick: I.func.isRequired
10534
+ loading: D.bool.isRequired,
10535
+ onPromptClick: D.func.isRequired
10536
10536
  };
10537
10537
  Xr.displayName = "PromptList";
10538
10538
  const Jh = Xr, Jr = ({ message: e, isNormalSize: t }) => /* @__PURE__ */ N.jsx("div", { role: "status", className: "xpert-chatbot-popup__bubble--group", children: /* @__PURE__ */ N.jsx("div", { className: "xpert-chatbot-popup__bubble--group-inner", children: /* @__PURE__ */ N.jsx(
@@ -10545,8 +10545,8 @@ const Jh = Xr, Jr = ({ message: e, isNormalSize: t }) => /* @__PURE__ */ N.jsx("
10545
10545
  }
10546
10546
  ) }) });
10547
10547
  Jr.propTypes = {
10548
- message: I.string.isRequired,
10549
- isNormalSize: I.bool.isRequired
10548
+ message: D.string.isRequired,
10549
+ isNormalSize: D.bool.isRequired
10550
10550
  };
10551
10551
  Jr.displayName = "SystemMessageBubble";
10552
10552
  const eg = Jr, ei = ({ content: e, isNormalSize: t }) => {
@@ -10567,8 +10567,8 @@ const eg = Jr, ei = ({ content: e, isNormalSize: t }) => {
10567
10567
  );
10568
10568
  };
10569
10569
  ei.propTypes = {
10570
- content: I.string.isRequired,
10571
- isNormalSize: I.bool.isRequired
10570
+ content: D.string.isRequired,
10571
+ isNormalSize: D.bool.isRequired
10572
10572
  };
10573
10573
  ei.displayName = "UserMessageBubble";
10574
10574
  const tg = ei, Pn = ({
@@ -10583,7 +10583,7 @@ const tg = ei, Pn = ({
10583
10583
  isTestUser: s
10584
10584
  }) => {
10585
10585
  const { conversationScreen: u } = _e(Fe), { prompts: c, systemMessage: p } = u, m = We(null);
10586
- return xe(() => {
10586
+ return be(() => {
10587
10587
  var f;
10588
10588
  (f = m.current) == null || f.scrollIntoView({
10589
10589
  behavior: "instant",
@@ -10640,21 +10640,21 @@ const tg = ei, Pn = ({
10640
10640
  ] });
10641
10641
  };
10642
10642
  Pn.propTypes = {
10643
- messages: I.arrayOf(
10644
- I.shape({
10645
- role: I.oneOf(["assistant", "user"]).isRequired,
10646
- content: I.string.isRequired,
10647
- liveAgent: I.bool.isRequired
10643
+ messages: D.arrayOf(
10644
+ D.shape({
10645
+ role: D.oneOf(["assistant", "user"]).isRequired,
10646
+ content: D.string.isRequired,
10647
+ liveAgent: D.bool.isRequired
10648
10648
  })
10649
10649
  ),
10650
- loading: I.bool.isRequired,
10651
- isNormalSize: I.bool,
10652
- onFeedbackThumbSelection: I.func.isRequired,
10653
- onPromptClick: I.func,
10654
- handleMessageLinkClicked: I.func,
10655
- submitEvent: I.func,
10656
- setLiveChatOpen: I.func,
10657
- isTestUser: I.bool
10650
+ loading: D.bool.isRequired,
10651
+ isNormalSize: D.bool,
10652
+ onFeedbackThumbSelection: D.func.isRequired,
10653
+ onPromptClick: D.func,
10654
+ handleMessageLinkClicked: D.func,
10655
+ submitEvent: D.func,
10656
+ setLiveChatOpen: D.func,
10657
+ isTestUser: D.bool
10658
10658
  };
10659
10659
  Pn.defaultProps = {
10660
10660
  messages: [],
@@ -10667,7 +10667,7 @@ Pn.displayName = "ConversationsMessages";
10667
10667
  const ng = Pn;
10668
10668
  function Xa({ disableScroll: e }) {
10669
10669
  const t = We(null);
10670
- return xe(() => {
10670
+ return be(() => {
10671
10671
  var n;
10672
10672
  e || (n = t.current) == null || n.scrollIntoView({
10673
10673
  behavior: "smooth",
@@ -10689,11 +10689,11 @@ function Xa({ disableScroll: e }) {
10689
10689
  );
10690
10690
  }
10691
10691
  Xa.propTypes = {
10692
- disableScroll: I.bool
10692
+ disableScroll: D.bool
10693
10693
  };
10694
10694
  const rg = () => {
10695
10695
  const e = We(null);
10696
- return xe(() => {
10696
+ return be(() => {
10697
10697
  var t;
10698
10698
  (t = e.current) == null || t.scrollIntoView({
10699
10699
  behavior: "instant"
@@ -10765,33 +10765,33 @@ function Ja({
10765
10765
  }) {
10766
10766
  var v;
10767
10767
  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;
10768
- xe(() => {
10769
- var x;
10770
- (x = window == null ? void 0 : window.OneTrust) == null || x.OnConsentChanged(() => {
10768
+ be(() => {
10769
+ var b;
10770
+ (b = window == null ? void 0 : window.OneTrust) == null || b.OnConsentChanged(() => {
10771
10771
  var k;
10772
10772
  !((k = window == null ? void 0 : window.OnetrustActiveGroups) != null && k.includes("C0003")) && Le.get(t) !== void 0 && Le.remove(t);
10773
10773
  });
10774
- }, [t]), xe(() => {
10775
- var x;
10776
- i || (!(window != null && window.OnetrustActiveGroups) || (x = window == null ? void 0 : window.OnetrustActiveGroups) != null && x.includes("C0003")) && f(t, 1, 1);
10777
- }, [t, i]), xe(() => {
10774
+ }, [t]), be(() => {
10775
+ var b;
10776
+ i || (!(window != null && window.OnetrustActiveGroups) || (b = window == null ? void 0 : window.OnetrustActiveGroups) != null && b.includes("C0003")) && f(t, 1, 1);
10777
+ }, [t, i]), be(() => {
10778
10778
  if (a.enabled && a.delayMs > 0) {
10779
- const x = setTimeout(() => {
10779
+ const b = setTimeout(() => {
10780
10780
  c(!0);
10781
10781
  }, a.delayMs);
10782
- return () => clearTimeout(x);
10782
+ return () => clearTimeout(b);
10783
10783
  } else
10784
10784
  c(!0);
10785
10785
  }, [a.delayMs, a.enabled]);
10786
10786
  const m = () => {
10787
- var x;
10788
- s(!1), (!(window != null && window.OnetrustActiveGroups) || (x = window == null ? void 0 : window.OnetrustActiveGroups) != null && x.includes("C0003")) && f(t, 1, 1), r();
10789
- }, f = (x, k, M) => {
10787
+ var b;
10788
+ s(!1), (!(window != null && window.OnetrustActiveGroups) || (b = window == null ? void 0 : window.OnetrustActiveGroups) != null && b.includes("C0003")) && f(t, 1, 1), r();
10789
+ }, f = (b, k, M) => {
10790
10790
  const z = {
10791
10791
  expires: M,
10792
10792
  path: "/"
10793
10793
  };
10794
- Le.set(x, k, z);
10794
+ Le.set(b, k, z);
10795
10795
  };
10796
10796
  return !u || !p ? null : /* @__PURE__ */ N.jsx("div", { children: /* @__PURE__ */ N.jsxs(
10797
10797
  "div",
@@ -10800,54 +10800,48 @@ function Ja({
10800
10800
  className: "xpert_chatbot__proactive-message",
10801
10801
  style: o,
10802
10802
  children: [
10803
+ /* @__PURE__ */ N.jsx("div", { children: /* @__PURE__ */ N.jsx(
10804
+ "button",
10805
+ {
10806
+ className: "xpert_chatbot__proactive-message__container",
10807
+ onClick: n,
10808
+ "aria-label": a.text,
10809
+ type: "button",
10810
+ children: /* @__PURE__ */ N.jsx("div", { className: "xpert_chatbot__proactive-message__text", children: e })
10811
+ }
10812
+ ) }),
10803
10813
  /* @__PURE__ */ N.jsx("div", { children: /* @__PURE__ */ N.jsx(
10804
10814
  "button",
10805
10815
  {
10806
10816
  className: "xpert_chatbot__proactive-message__close",
10807
- style: {
10808
- border: "none",
10809
- backgroundColor: "transparent",
10810
- cursor: "pointer"
10811
- },
10812
10817
  onClick: m,
10813
- "aria-label": "Close",
10818
+ "aria-label": "Close proactive message",
10814
10819
  type: "button",
10815
10820
  children: /* @__PURE__ */ N.jsx(
10816
10821
  Nt,
10817
10822
  {
10818
10823
  style: {
10819
- color: "#707070",
10824
+ color: "#000000",
10820
10825
  fontSize: "1.25rem",
10821
- borderRadius: "100px",
10822
- backgroundColor: "#fff"
10826
+ borderRadius: "100px"
10823
10827
  },
10824
- icon: "carbon:close-filled",
10825
- alt: "Close"
10828
+ icon: "carbon:close",
10829
+ alt: "Close proactive message"
10826
10830
  }
10827
10831
  )
10828
10832
  }
10829
- ) }),
10830
- /* @__PURE__ */ N.jsx(
10831
- "button",
10832
- {
10833
- className: "xpert_chatbot__proactive-message__body-container",
10834
- onClick: n,
10835
- "aria-label": "Can I answer any questions for you?",
10836
- type: "button",
10837
- children: /* @__PURE__ */ N.jsx("div", { className: "xpert_chatbot__proactive-message__body", children: e })
10838
- }
10839
- )
10833
+ ) })
10840
10834
  ]
10841
10835
  }
10842
10836
  ) });
10843
10837
  }
10844
10838
  Ja.propTypes = {
10845
- children: I.node.isRequired,
10846
- cookieName: I.string.isRequired,
10847
- onClick: I.func,
10848
- onClose: I.func,
10849
- showMessage: I.bool,
10850
- style: I.shape()
10839
+ children: D.node.isRequired,
10840
+ cookieName: D.string.isRequired,
10841
+ onClick: D.func,
10842
+ onClose: D.func,
10843
+ showMessage: D.bool,
10844
+ style: D.shape()
10851
10845
  };
10852
10846
  function ig(e, t, n) {
10853
10847
  const r = vt(
@@ -10857,9 +10851,9 @@ function ig(e, t, n) {
10857
10851
  },
10858
10852
  [n]
10859
10853
  );
10860
- xe(() => (e && window.addEventListener("message", r), () => {
10854
+ be(() => (e && window.addEventListener("message", r), () => {
10861
10855
  window.removeEventListener("message", r);
10862
- }), [e, r]), xe(() => {
10856
+ }), [e, r]), be(() => {
10863
10857
  let i;
10864
10858
  return e && (i = document.createElement("style"), document.head.appendChild(i), ((a) => {
10865
10859
  i.innerHTML = `
@@ -10881,7 +10875,7 @@ function ig(e, t, n) {
10881
10875
  }
10882
10876
  function og(e) {
10883
10877
  const [t, n] = ye(null);
10884
- return xe(() => {
10878
+ return be(() => {
10885
10879
  try {
10886
10880
  (() => {
10887
10881
  var i, o, a;
@@ -10910,7 +10904,7 @@ function og(e) {
10910
10904
  ), t;
10911
10905
  }
10912
10906
  function ag(e) {
10913
- xe(() => {
10907
+ be(() => {
10914
10908
  e();
10915
10909
  const t = () => document.visibilityState === "visible" && e();
10916
10910
  return document.addEventListener("visibilitychange", t), () => {
@@ -10943,7 +10937,7 @@ function ti({ submitEventExternal: e }) {
10943
10937
  userTracking: o,
10944
10938
  webExperimentation: a,
10945
10939
  xpertKey: l
10946
- } = _e(Fe), s = rt(cg), [, u] = ye(!1), [, c] = ye(!1), [p, m] = ye(pg), [f, v] = ye(!1), [x, k] = ye(!1), [M, z] = ye(!1), [E, _] = ye(""), [U, b] = 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";
10940
+ } = _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";
10947
10941
  ig(
10948
10942
  n.liveChat.enabled,
10949
10943
  M,
@@ -10996,7 +10990,7 @@ function ti({ submitEventExternal: e }) {
10996
10990
  v(!1);
10997
10991
  }
10998
10992
  }, [l, t.endpoint]);
10999
- ag(g), xe(() => {
10993
+ ag(g), be(() => {
11000
10994
  let R, ee;
11001
10995
  return o.enabled && (R = setInterval(() => {
11002
10996
  var le;
@@ -11006,7 +11000,7 @@ function ti({ submitEventExternal: e }) {
11006
11000
  }, 6e4)), () => {
11007
11001
  clearInterval(R), clearTimeout(ee);
11008
11002
  };
11009
- }, [o.enabled, o.prefix]), xe(() => {
11003
+ }, [o.enabled, o.prefix]), be(() => {
11010
11004
  let R, ee;
11011
11005
  return R = setInterval(() => {
11012
11006
  a.enabled && (console.log("Chatbot - Finding Optimizely"), window.optimizely && window.experiments && (console.log("Chatbot - Optimizely found"), clearInterval(R), clearTimeout(ee), c(!0)));
@@ -11050,7 +11044,7 @@ function ti({ submitEventExternal: e }) {
11050
11044
  conversationHistoryId: ee
11051
11045
  }
11052
11046
  });
11053
- }, De = ({
11047
+ }, Ie = ({
11054
11048
  conversationSize: R,
11055
11049
  userInputMessage: ee,
11056
11050
  apiResponseMessage: me,
@@ -11075,7 +11069,7 @@ function ti({ submitEventExternal: e }) {
11075
11069
  if (R.trim().length === 0)
11076
11070
  return;
11077
11071
  const ee = /* @__PURE__ */ new Date();
11078
- O(!1), b(!1);
11072
+ O(!1), x(!1);
11079
11073
  const me = p.filter((J) => J.role === "user").length + 1;
11080
11074
  K({
11081
11075
  name: `${o.prefix}.bi.xpert.chatbot.popup.chat.message.sent`,
@@ -11127,26 +11121,26 @@ function ti({ submitEventExternal: e }) {
11127
11121
  le,
11128
11122
  { expires: 1 }
11129
11123
  );
11130
- const yt = await $e.json(), D = yt.content, S = yt.live_agent;
11131
- ge(D, le);
11124
+ const yt = await $e.json(), I = yt.content, S = yt.live_agent;
11125
+ ge(I, le);
11132
11126
  const Y = /* @__PURE__ */ new Date();
11133
- De({
11127
+ Ie({
11134
11128
  conversationByteSize: ug(JSON.stringify(Qe)),
11135
11129
  conversationSize: p.length + 2,
11136
11130
  userInputMessage: R,
11137
- apiResponseMessage: D,
11131
+ apiResponseMessage: I,
11138
11132
  elapsedSeconds: lg(ee, Y)
11139
11133
  }), m((J) => [
11140
11134
  ...J,
11141
11135
  {
11142
11136
  role: "assistant",
11143
- content: D,
11137
+ content: I,
11144
11138
  liveAgent: S,
11145
11139
  createdAt: /* @__PURE__ */ new Date()
11146
11140
  }
11147
11141
  ]), w(!1), v(!1), h(), O(!0);
11148
11142
  } catch (ee) {
11149
- v(!1), h(), b(!0), console.error(ee);
11143
+ v(!1), h(), x(!0), console.error(ee);
11150
11144
  }
11151
11145
  }, we = () => {
11152
11146
  z(!1), k(!0), K({
@@ -11227,7 +11221,7 @@ function ti({ submitEventExternal: e }) {
11227
11221
  i.enabled && /* @__PURE__ */ N.jsx(
11228
11222
  Ja,
11229
11223
  {
11230
- showMessage: !x,
11224
+ showMessage: !b,
11231
11225
  style: gt,
11232
11226
  onClose: Ae,
11233
11227
  onClick: Be,
@@ -11263,7 +11257,7 @@ function ti({ submitEventExternal: e }) {
11263
11257
  }
11264
11258
  ),
11265
11259
  /* @__PURE__ */ N.jsx(Us, {}),
11266
- x && !M && /* @__PURE__ */ N.jsx(Ar, { isNormalSize: L, isMounted: W, children: /* @__PURE__ */ N.jsx(
11260
+ b && !M && /* @__PURE__ */ N.jsx(Ar, { isNormalSize: L, isMounted: W, children: /* @__PURE__ */ N.jsx(
11267
11261
  "div",
11268
11262
  {
11269
11263
  ref: F,
@@ -11342,7 +11336,7 @@ function ti({ submitEventExternal: e }) {
11342
11336
  );
11343
11337
  }
11344
11338
  ti.propTypes = {
11345
- submitEventExternal: I.func
11339
+ submitEventExternal: D.func
11346
11340
  };
11347
11341
  ti.defaultProps = {
11348
11342
  submitEventExternal: null
@@ -11355,9 +11349,9 @@ const el = ({ children: e, configurations: t = {}, xpertKey: n = null }) => {
11355
11349
  return /* @__PURE__ */ N.jsx(Oo, { ...r, children: e });
11356
11350
  };
11357
11351
  el.propTypes = {
11358
- children: I.element,
11359
- configurations: I.object,
11360
- xpertKey: I.string
11352
+ children: D.element,
11353
+ configurations: D.object,
11354
+ xpertKey: D.string
11361
11355
  };
11362
11356
  function fg({ configurations: e = {}, key: t, submitEventExternal: n, xpertKey: r }) {
11363
11357
  return /* @__PURE__ */ N.jsx(
@@ -11371,10 +11365,10 @@ function fg({ configurations: e = {}, key: t, submitEventExternal: n, xpertKey:
11371
11365
  );
11372
11366
  }
11373
11367
  fg.propTypes = {
11374
- configurations: I.object,
11375
- key: I.string,
11376
- submitEventExternal: I.func,
11377
- xpertKey: I.string.isRequired
11368
+ configurations: D.object,
11369
+ key: D.string,
11370
+ submitEventExternal: D.func,
11371
+ xpertKey: D.string.isRequired
11378
11372
  };
11379
11373
  export {
11380
11374
  fg as Chatbot,