@2uinc/frontend-component-xpert-chatbot 1.36.0-alpha.20 → 1.36.0-alpha.21

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 +753 -755
  2. package/package.json +1 -1
@@ -243,8 +243,8 @@ Jn.exports;
243
243
  var Ou;
244
244
  function j0() {
245
245
  return Ou || (Ou = 1, function(e, t) {
246
- var n = 200, r = "__lodash_hash_undefined__", a = 800, i = 16, u = 9007199254740991, s = "[object Arguments]", l = "[object Array]", c = "[object AsyncFunction]", d = "[object Boolean]", f = "[object Date]", p = "[object Error]", h = "[object Function]", b = "[object GeneratorFunction]", m = "[object Map]", y = "[object Number]", g = "[object Null]", P = "[object Object]", M = "[object Proxy]", W = "[object RegExp]", R = "[object Set]", _ = "[object String]", N = "[object Undefined]", $ = "[object WeakMap]", H = "[object ArrayBuffer]", te = "[object DataView]", Y = "[object Float32Array]", V = "[object Float64Array]", L = "[object Int8Array]", I = "[object Int16Array]", w = "[object Int32Array]", B = "[object Uint8Array]", G = "[object Uint8ClampedArray]", j = "[object Uint16Array]", q = "[object Uint32Array]", E = /[\\^$.*+?()[\]{}|]/g, ne = /^\[object .+?Constructor\]$/, le = /^(?:0|[1-9]\d*)$/, x = {};
247
- x[Y] = x[V] = x[L] = x[I] = x[w] = x[B] = x[G] = x[j] = x[q] = !0, x[s] = x[l] = x[H] = x[d] = x[te] = x[f] = x[p] = x[h] = x[m] = x[y] = x[P] = x[W] = x[R] = x[_] = x[$] = !1;
246
+ var n = 200, r = "__lodash_hash_undefined__", a = 800, i = 16, u = 9007199254740991, s = "[object Arguments]", l = "[object Array]", c = "[object AsyncFunction]", d = "[object Boolean]", f = "[object Date]", p = "[object Error]", h = "[object Function]", g = "[object GeneratorFunction]", m = "[object Map]", y = "[object Number]", E = "[object Null]", P = "[object Object]", M = "[object Proxy]", W = "[object RegExp]", R = "[object Set]", _ = "[object String]", N = "[object Undefined]", V = "[object WeakMap]", H = "[object ArrayBuffer]", te = "[object DataView]", Y = "[object Float32Array]", $ = "[object Float64Array]", L = "[object Int8Array]", I = "[object Int16Array]", w = "[object Int32Array]", B = "[object Uint8Array]", G = "[object Uint8ClampedArray]", j = "[object Uint16Array]", q = "[object Uint32Array]", b = /[\\^$.*+?()[\]{}|]/g, ne = /^\[object .+?Constructor\]$/, le = /^(?:0|[1-9]\d*)$/, x = {};
247
+ x[Y] = x[$] = x[L] = x[I] = x[w] = x[B] = x[G] = x[j] = x[q] = !0, x[s] = x[l] = x[H] = x[d] = x[te] = x[f] = x[p] = x[h] = x[m] = x[y] = x[P] = x[W] = x[R] = x[_] = x[V] = !1;
248
248
  var se = typeof Sr == "object" && Sr && Sr.Object === Object && Sr, ye = typeof self == "object" && self && self.Object === Object && self, me = se || ye || Function("return this")(), Ae = t && !t.nodeType && t, xe = Ae && !0 && e && !e.nodeType && e, je = xe && xe.exports === Ae, ve = je && se.process, Je = function() {
249
249
  try {
250
250
  var A = xe && xe.require && xe.require("util").types;
@@ -287,7 +287,7 @@ function j0() {
287
287
  var A = /[^.]+$/.exec(Bt && Bt.keys && Bt.keys.IE_PROTO || "");
288
288
  return A ? "Symbol(src)_1." + A : "";
289
289
  }(), Se = Nt.toString, qe = Ht.call(Object), F = RegExp(
290
- "^" + Ht.call(ie).replace(E, "\\$&").replace(/hasOwnProperty|(function).*?(?=\\\()| for .+?(?=\\\])/g, "$1.*?") + "$"
290
+ "^" + Ht.call(ie).replace(b, "\\$&").replace(/hasOwnProperty|(function).*?(?=\\\()| for .+?(?=\\\])/g, "$1.*?") + "$"
291
291
  ), X = je ? me.Buffer : void 0, re = me.Symbol, ue = me.Uint8Array;
292
292
  X && X.allocUnsafe;
293
293
  var pe = Tn(Object.getPrototypeOf, Object), Re = Object.create, Xe = Nt.propertyIsEnumerable, ke = en.splice, et = re ? re.toStringTag : void 0, it = function() {
@@ -459,7 +459,7 @@ function j0() {
459
459
  }
460
460
  var Kd = l0();
461
461
  function _r(A) {
462
- return A == null ? A === void 0 ? N : g : et && et in Object(A) ? c0(A) : g0(A);
462
+ return A == null ? A === void 0 ? N : E : et && et in Object(A) ? c0(A) : g0(A);
463
463
  }
464
464
  function du(A) {
465
465
  return qn(A) && _r(A) == s;
@@ -672,7 +672,7 @@ function j0() {
672
672
  if (!rn(A))
673
673
  return !1;
674
674
  var k = _r(A);
675
- return k == h || k == b || k == c || k == M;
675
+ return k == h || k == g || k == c || k == M;
676
676
  }
677
677
  function gu(A) {
678
678
  return typeof A == "number" && A > -1 && A % 1 == 0 && A <= u;
@@ -1620,7 +1620,7 @@ const Zt = Kr({}), Ie = {
1620
1620
  }) => {
1621
1621
  const a = nt(null), { id: i } = oe(Ye), [u, s] = ce(null), [l, c] = ce(!1), [d, f] = ce([]), p = st(() => {
1622
1622
  s(null), c(!1), f([]), lt.remove(`${i}-conversation-history-id`);
1623
- }, [i, s]), b = {
1623
+ }, [i, s]), g = {
1624
1624
  contentRef: a,
1625
1625
  conversationId: u,
1626
1626
  deleteConversationModal: l,
@@ -1633,7 +1633,7 @@ const Zt = Kr({}), Ie = {
1633
1633
  setXpertMessages: f,
1634
1634
  xpertMessages: t ?? d
1635
1635
  };
1636
- return /* @__PURE__ */ S.jsx(Zt.Provider, { value: b, children: e });
1636
+ return /* @__PURE__ */ S.jsx(Zt.Provider, { value: g, children: e });
1637
1637
  };
1638
1638
  Hs.propTypes = {
1639
1639
  children: v.element.isRequired,
@@ -1654,17 +1654,17 @@ const Iu = 991, Z0 = () => {
1654
1654
  }, vt = {
1655
1655
  LIVECHAT: "LIVECHAT",
1656
1656
  XPERT: "XPERT"
1657
- }, Ke = Kr({}), Us = ({
1657
+ }, Ze = Kr({}), Us = ({
1658
1658
  children: e,
1659
1659
  externalLoading: t = !1,
1660
1660
  externalStreaming: n = !1
1661
1661
  }) => {
1662
- const [r, a] = ce(!1), [i, u] = ce(!1), [s, l] = ce(!1), [c, d] = ce(!0), [f, p] = ce(!1), [h, b] = ce(!1), [m, y] = ce(vt.XPERT), g = Z0(), P = {
1662
+ const [r, a] = ce(!1), [i, u] = ce(!1), [s, l] = ce(!1), [c, d] = ce(!0), [f, p] = ce(!1), [h, g] = ce(!1), [m, y] = ce(vt.XPERT), E = Z0(), P = {
1663
1663
  disabledScroll: r,
1664
1664
  hasError: i,
1665
1665
  hasNewMessage: s,
1666
- isMobile: g,
1667
- isNormalSize: c || g,
1666
+ isMobile: E,
1667
+ isNormalSize: c || E,
1668
1668
  loading: f || t,
1669
1669
  streaming: h || n,
1670
1670
  mode: m,
@@ -1673,10 +1673,10 @@ const Iu = 991, Z0 = () => {
1673
1673
  setHasNewMessage: l,
1674
1674
  setIsNormalSize: d,
1675
1675
  setLoading: p,
1676
- setStreaming: b,
1676
+ setStreaming: g,
1677
1677
  setMode: y
1678
1678
  };
1679
- return /* @__PURE__ */ S.jsx(Ke.Provider, { value: P, children: e });
1679
+ return /* @__PURE__ */ S.jsx(Ze.Provider, { value: P, children: e });
1680
1680
  };
1681
1681
  Us.propTypes = {
1682
1682
  children: v.element.isRequired,
@@ -1732,7 +1732,7 @@ function vi({
1732
1732
  children: a,
1733
1733
  ...i
1734
1734
  }) {
1735
- const { isMobile: u } = oe(Ke);
1735
+ const { isMobile: u } = oe(Ze);
1736
1736
  return /* @__PURE__ */ S.jsx(
1737
1737
  "button",
1738
1738
  {
@@ -1765,10 +1765,10 @@ const tf = 1500, nf = `The parent container is wider than the chatbot launch but
1765
1765
  eyes follow your mouse when you hover near it.`, qs = ({
1766
1766
  handleFloatingActionButtonClick: e = null
1767
1767
  }) => {
1768
- var h, b, m, y;
1769
- const { id: t, launchButton: n } = oe(Ye), { isMobile: r } = oe(Ke), a = !lt.get(
1768
+ var h, g, m, y;
1769
+ const { id: t, launchButton: n } = oe(Ye), { isMobile: r } = oe(Ze), a = !lt.get(
1770
1770
  `${t}-proactive-message-xpert-chatbot`
1771
- ), i = nt(null), u = nt(!1), s = a ? (h = n == null ? void 0 : n.animatedGraduate) == null ? void 0 : h.delayMs : ((b = n == null ? void 0 : n.animatedGraduate) == null ? void 0 : b.delayMs) * 2, [l, c] = ce(!1), d = window.matchMedia(
1771
+ ), i = nt(null), u = nt(!1), s = a ? (h = n == null ? void 0 : n.animatedGraduate) == null ? void 0 : h.delayMs : ((g = n == null ? void 0 : n.animatedGraduate) == null ? void 0 : g.delayMs) * 2, [l, c] = ce(!1), d = window.matchMedia(
1772
1772
  `(max-width: ${tf}px)`
1773
1773
  ).matches;
1774
1774
  Ne(() => {
@@ -1782,19 +1782,19 @@ eyes follow your mouse when you hover near it.`, qs = ({
1782
1782
  clearTimeout(P);
1783
1783
  };
1784
1784
  }, [s]), Ne(() => {
1785
- const g = (P) => {
1785
+ const E = (P) => {
1786
1786
  const M = window.devicePixelRatio > 1.5;
1787
1787
  if (!(u != null && u.current) || d || M)
1788
1788
  return;
1789
1789
  i.current.querySelectorAll(
1790
1790
  ".xpert_chatbot__animated_graduate__pupil"
1791
1791
  ).forEach((R) => {
1792
- const _ = R.getBoundingClientRect(), N = (P.pageX - window.scrollX - _.left) / 30 / 16 + "rem", $ = (P.pageY - window.scrollY - _.top) / 30 / 16 + "rem";
1793
- R.style.transform = "translate3d(" + N + "," + $ + ", 0rem)";
1792
+ const _ = R.getBoundingClientRect(), N = (P.pageX - window.scrollX - _.left) / 30 / 16 + "rem", V = (P.pageY - window.scrollY - _.top) / 30 / 16 + "rem";
1793
+ R.style.transform = "translate3d(" + N + "," + V + ", 0rem)";
1794
1794
  });
1795
1795
  };
1796
- return window.addEventListener("mousemove", g), () => {
1797
- window.removeEventListener("mousemove", g);
1796
+ return window.addEventListener("mousemove", E), () => {
1797
+ window.removeEventListener("mousemove", E);
1798
1798
  };
1799
1799
  }, [d]);
1800
1800
  const f = () => {
@@ -1975,7 +1975,7 @@ const rf = "data:image/svg+xml,%3csvg%20xmlns='http://www.w3.org/2000/svg'%20hei
1975
1975
  handleFloatingActionButtonClick: e = null
1976
1976
  }) => {
1977
1977
  var r, a;
1978
- const { launchButton: t } = oe(Ye), { isMobile: n } = oe(Ke);
1978
+ const { launchButton: t } = oe(Ye), { isMobile: n } = oe(Ze);
1979
1979
  return /* @__PURE__ */ S.jsx(
1980
1980
  vi,
1981
1981
  {
@@ -2373,17 +2373,17 @@ var Ru = {
2373
2373
  return q;
2374
2374
  throw new Error("`".concat(L, "` was specified but was not a node, or did not return a node"));
2375
2375
  }
2376
- var E = q;
2376
+ var b = q;
2377
2377
  if (typeof q == "string") {
2378
2378
  try {
2379
- E = r.querySelector(q);
2379
+ b = r.querySelector(q);
2380
2380
  } catch (ne) {
2381
2381
  throw new Error("`".concat(L, '` appears to be an invalid selector; error="').concat(ne.message, '"'));
2382
2382
  }
2383
- if (!E && !B)
2383
+ if (!b && !B)
2384
2384
  throw new Error("`".concat(L, "` as selector refers to no known node"));
2385
2385
  }
2386
- return E;
2386
+ return b;
2387
2387
  }, f = function() {
2388
2388
  var L = d("initialFocus", {
2389
2389
  hasFallback: !0
@@ -2407,7 +2407,7 @@ var Ru = {
2407
2407
  return sn(ne);
2408
2408
  }), q = w.slice().reverse().find(function(ne) {
2409
2409
  return sn(ne);
2410
- }), E = !!I.find(function(ne) {
2410
+ }), b = !!I.find(function(ne) {
2411
2411
  return Kt(ne) > 0;
2412
2412
  });
2413
2413
  return {
@@ -2415,7 +2415,7 @@ var Ru = {
2415
2415
  tabbableNodes: I,
2416
2416
  focusableNodes: w,
2417
2417
  /** True if at least one node with positive `tabindex` was found in this container. */
2418
- posTabIndexesFound: E,
2418
+ posTabIndexesFound: b,
2419
2419
  /** First tabbable node in container, __tabindex__ order; `undefined` if none. */
2420
2420
  firstTabbableNode: B,
2421
2421
  /** Last tabbable node in container, __tabindex__ order; `undefined` if none. */
@@ -2460,10 +2460,10 @@ var Ru = {
2460
2460
  var I = L.activeElement;
2461
2461
  if (I)
2462
2462
  return I.shadowRoot && I.shadowRoot.activeElement !== null ? h(I.shadowRoot) : I;
2463
- }, b = function(L) {
2463
+ }, g = function(L) {
2464
2464
  if (L !== !1 && L !== h(document)) {
2465
2465
  if (!L || !L.focus) {
2466
- b(f());
2466
+ g(f());
2467
2467
  return;
2468
2468
  }
2469
2469
  L.focus({
@@ -2480,7 +2480,7 @@ var Ru = {
2480
2480
  I = I || vr(w), p();
2481
2481
  var j = null;
2482
2482
  if (u.tabbableGroups.length > 0) {
2483
- var q = c(I, w), E = q >= 0 ? u.containerGroups[q] : void 0;
2483
+ var q = c(I, w), b = q >= 0 ? u.containerGroups[q] : void 0;
2484
2484
  if (q < 0)
2485
2485
  G ? j = u.tabbableGroups[u.tabbableGroups.length - 1].lastTabbableNode : j = u.tabbableGroups[0].firstTabbableNode;
2486
2486
  else if (G) {
@@ -2488,24 +2488,24 @@ var Ru = {
2488
2488
  var xe = Ae.firstTabbableNode;
2489
2489
  return I === xe;
2490
2490
  });
2491
- if (ne < 0 && (E.container === I || Rr(I, i.tabbableOptions) && !sn(I, i.tabbableOptions) && !E.nextTabbableNode(I, !1)) && (ne = q), ne >= 0) {
2491
+ if (ne < 0 && (b.container === I || Rr(I, i.tabbableOptions) && !sn(I, i.tabbableOptions) && !b.nextTabbableNode(I, !1)) && (ne = q), ne >= 0) {
2492
2492
  var le = ne === 0 ? u.tabbableGroups.length - 1 : ne - 1, x = u.tabbableGroups[le];
2493
2493
  j = Kt(I) >= 0 ? x.lastTabbableNode : x.lastDomTabbableNode;
2494
- } else tr(w) || (j = E.nextTabbableNode(I, !1));
2494
+ } else tr(w) || (j = b.nextTabbableNode(I, !1));
2495
2495
  } else {
2496
2496
  var se = u.tabbableGroups.findIndex(function(Ae) {
2497
2497
  var xe = Ae.lastTabbableNode;
2498
2498
  return I === xe;
2499
2499
  });
2500
- if (se < 0 && (E.container === I || Rr(I, i.tabbableOptions) && !sn(I, i.tabbableOptions) && !E.nextTabbableNode(I)) && (se = q), se >= 0) {
2500
+ if (se < 0 && (b.container === I || Rr(I, i.tabbableOptions) && !sn(I, i.tabbableOptions) && !b.nextTabbableNode(I)) && (se = q), se >= 0) {
2501
2501
  var ye = se === u.tabbableGroups.length - 1 ? 0 : se + 1, me = u.tabbableGroups[ye];
2502
2502
  j = Kt(I) >= 0 ? me.firstTabbableNode : me.firstDomTabbableNode;
2503
- } else tr(w) || (j = E.nextTabbableNode(I));
2503
+ } else tr(w) || (j = b.nextTabbableNode(I));
2504
2504
  }
2505
2505
  } else
2506
2506
  j = d("fallbackFocus");
2507
2507
  return j;
2508
- }, g = function(L) {
2508
+ }, E = function(L) {
2509
2509
  var I = vr(L);
2510
2510
  if (!(c(I, L) >= 0)) {
2511
2511
  if (Yn(i.clickOutsideDeactivates, L)) {
@@ -2533,10 +2533,10 @@ var Ru = {
2533
2533
  if (Kt(u.mostRecentlyFocusedNode) > 0) {
2534
2534
  var j = c(u.mostRecentlyFocusedNode), q = u.containerGroups[j].tabbableNodes;
2535
2535
  if (q.length > 0) {
2536
- var E = q.findIndex(function(ne) {
2536
+ var b = q.findIndex(function(ne) {
2537
2537
  return ne === u.mostRecentlyFocusedNode;
2538
2538
  });
2539
- E >= 0 && (i.isKeyForward(u.recentNavEvent) ? E + 1 < q.length && (B = q[E + 1], G = !1) : E - 1 >= 0 && (B = q[E - 1], G = !1));
2539
+ b >= 0 && (i.isKeyForward(u.recentNavEvent) ? b + 1 < q.length && (B = q[b + 1], G = !1) : b - 1 >= 0 && (B = q[b - 1], G = !1));
2540
2540
  }
2541
2541
  } else
2542
2542
  u.containerGroups.some(function(ne) {
@@ -2551,7 +2551,7 @@ var Ru = {
2551
2551
  // outside the trap causing the focus escape we're trying to fix)
2552
2552
  target: u.mostRecentlyFocusedNode,
2553
2553
  isBackward: i.isKeyBackward(u.recentNavEvent)
2554
- })), b(B || u.mostRecentlyFocusedNode || f());
2554
+ })), g(B || u.mostRecentlyFocusedNode || f());
2555
2555
  }
2556
2556
  u.recentNavEvent = void 0;
2557
2557
  }, M = function(L) {
@@ -2561,7 +2561,7 @@ var Ru = {
2561
2561
  event: L,
2562
2562
  isBackward: I
2563
2563
  });
2564
- w && (tr(L) && L.preventDefault(), b(w));
2564
+ w && (tr(L) && L.preventDefault(), g(w));
2565
2565
  }, W = function(L) {
2566
2566
  (i.isKeyForward(L) || i.isKeyBackward(L)) && M(L, i.isKeyBackward(L));
2567
2567
  }, R = function(L) {
@@ -2572,11 +2572,11 @@ var Ru = {
2572
2572
  }, N = function() {
2573
2573
  if (u.active)
2574
2574
  return Ru.activateTrap(a, s), u.delayInitialFocusTimer = i.delayInitialFocus ? Du(function() {
2575
- b(f());
2576
- }) : b(f()), r.addEventListener("focusin", P, !0), r.addEventListener("mousedown", g, {
2575
+ g(f());
2576
+ }) : g(f()), r.addEventListener("focusin", P, !0), r.addEventListener("mousedown", E, {
2577
2577
  capture: !0,
2578
2578
  passive: !1
2579
- }), r.addEventListener("touchstart", g, {
2579
+ }), r.addEventListener("touchstart", E, {
2580
2580
  capture: !0,
2581
2581
  passive: !1
2582
2582
  }), r.addEventListener("click", _, {
@@ -2586,9 +2586,9 @@ var Ru = {
2586
2586
  capture: !0,
2587
2587
  passive: !1
2588
2588
  }), r.addEventListener("keydown", R), s;
2589
- }, $ = function() {
2589
+ }, V = function() {
2590
2590
  if (u.active)
2591
- return r.removeEventListener("focusin", P, !0), r.removeEventListener("mousedown", g, !0), r.removeEventListener("touchstart", g, !0), r.removeEventListener("click", _, !0), r.removeEventListener("keydown", W, !0), r.removeEventListener("keydown", R), s;
2591
+ return r.removeEventListener("focusin", P, !0), r.removeEventListener("mousedown", E, !0), r.removeEventListener("touchstart", E, !0), r.removeEventListener("click", _, !0), r.removeEventListener("keydown", W, !0), r.removeEventListener("keydown", R), s;
2592
2592
  }, H = function(L) {
2593
2593
  var I = L.some(function(w) {
2594
2594
  var B = Array.from(w.removedNodes);
@@ -2596,7 +2596,7 @@ var Ru = {
2596
2596
  return G === u.mostRecentlyFocusedNode;
2597
2597
  });
2598
2598
  });
2599
- I && b(f());
2599
+ I && g(f());
2600
2600
  }, te = typeof window < "u" && "MutationObserver" in window ? new MutationObserver(H) : void 0, Y = function() {
2601
2601
  te && (te.disconnect(), u.active && !u.paused && u.containers.map(function(L) {
2602
2602
  te.observe(L, {
@@ -2630,12 +2630,12 @@ var Ru = {
2630
2630
  onPostDeactivate: i.onPostDeactivate,
2631
2631
  checkCanReturnFocus: i.checkCanReturnFocus
2632
2632
  }, L);
2633
- clearTimeout(u.delayInitialFocusTimer), u.delayInitialFocusTimer = void 0, $(), u.active = !1, u.paused = !1, Y(), Ru.deactivateTrap(a, s);
2633
+ clearTimeout(u.delayInitialFocusTimer), u.delayInitialFocusTimer = void 0, V(), u.active = !1, u.paused = !1, Y(), Ru.deactivateTrap(a, s);
2634
2634
  var w = l(I, "onDeactivate"), B = l(I, "onPostDeactivate"), G = l(I, "checkCanReturnFocus"), j = l(I, "returnFocus", "returnFocusOnDeactivate");
2635
2635
  w == null || w();
2636
2636
  var q = function() {
2637
2637
  Du(function() {
2638
- j && b(m(u.nodeFocusedBeforeActivation)), B == null || B();
2638
+ j && g(m(u.nodeFocusedBeforeActivation)), B == null || B();
2639
2639
  });
2640
2640
  };
2641
2641
  return j && G ? (G(m(u.nodeFocusedBeforeActivation)).then(q, q), this) : (q(), this);
@@ -2664,7 +2664,7 @@ var Ru = {
2664
2664
  return this;
2665
2665
  if (u.paused = L, L) {
2666
2666
  var w = l(I, "onPause"), B = l(I, "onPostPause");
2667
- w == null || w(), $(), Y(), B == null || B();
2667
+ w == null || w(), V(), Y(), B == null || B();
2668
2668
  } else {
2669
2669
  var G = l(I, "onUnpause"), j = l(I, "onPostUnpause");
2670
2670
  G == null || G(), p(), N(), Y(), j == null || j();
@@ -2694,16 +2694,16 @@ function Hf() {
2694
2694
  if (!(_ instanceof N)) throw new TypeError("Cannot call a class as a function");
2695
2695
  }
2696
2696
  function n(_, N) {
2697
- for (var $ = 0; $ < N.length; $++) {
2698
- var H = N[$];
2697
+ for (var V = 0; V < N.length; V++) {
2698
+ var H = N[V];
2699
2699
  H.enumerable = H.enumerable || !1, H.configurable = !0, "value" in H && (H.writable = !0), Object.defineProperty(_, p(H.key), H);
2700
2700
  }
2701
2701
  }
2702
- function r(_, N, $) {
2702
+ function r(_, N, V) {
2703
2703
  return N && n(_.prototype, N), Object.defineProperty(_, "prototype", { writable: !1 }), _;
2704
2704
  }
2705
- function a(_, N, $) {
2706
- return N = l(N), i(_, s() ? Reflect.construct(N, $ || [], l(_).constructor) : N.apply(_, $));
2705
+ function a(_, N, V) {
2706
+ return N = l(N), i(_, s() ? Reflect.construct(N, V || [], l(_).constructor) : N.apply(_, V));
2707
2707
  }
2708
2708
  function i(_, N) {
2709
2709
  if (N && (e(N) == "object" || typeof N == "function")) return N;
@@ -2734,12 +2734,12 @@ function Hf() {
2734
2734
  _.prototype = Object.create(N && N.prototype, { constructor: { value: _, writable: !0, configurable: !0 } }), Object.defineProperty(_, "prototype", { writable: !1 }), N && d(_, N);
2735
2735
  }
2736
2736
  function d(_, N) {
2737
- return d = Object.setPrototypeOf ? Object.setPrototypeOf.bind() : function($, H) {
2738
- return $.__proto__ = H, $;
2737
+ return d = Object.setPrototypeOf ? Object.setPrototypeOf.bind() : function(V, H) {
2738
+ return V.__proto__ = H, V;
2739
2739
  }, d(_, N);
2740
2740
  }
2741
- function f(_, N, $) {
2742
- return (N = p(N)) in _ ? Object.defineProperty(_, N, { value: $, enumerable: !0, configurable: !0, writable: !0 }) : _[N] = $, _;
2741
+ function f(_, N, V) {
2742
+ return (N = p(N)) in _ ? Object.defineProperty(_, N, { value: V, enumerable: !0, configurable: !0, writable: !0 }) : _[N] = V, _;
2743
2743
  }
2744
2744
  function p(_) {
2745
2745
  var N = h(_, "string");
@@ -2747,19 +2747,19 @@ function Hf() {
2747
2747
  }
2748
2748
  function h(_, N) {
2749
2749
  if (e(_) != "object" || !_) return _;
2750
- var $ = _[Symbol.toPrimitive];
2751
- if ($ !== void 0) {
2752
- var H = $.call(_, N);
2750
+ var V = _[Symbol.toPrimitive];
2751
+ if (V !== void 0) {
2752
+ var H = V.call(_, N);
2753
2753
  if (e(H) != "object") return H;
2754
2754
  throw new TypeError("@@toPrimitive must return a primitive value.");
2755
2755
  }
2756
2756
  return (N === "string" ? String : Number)(_);
2757
2757
  }
2758
- var b = yt, m = /* @__PURE__ */ Ds(), y = Ff, g = y.createFocusTrap, P = Bf, M = P.isFocusable, W = /* @__PURE__ */ function(_) {
2759
- function N($) {
2758
+ var g = yt, m = /* @__PURE__ */ Ds(), y = Ff, E = y.createFocusTrap, P = Bf, M = P.isFocusable, W = /* @__PURE__ */ function(_) {
2759
+ function N(V) {
2760
2760
  var H;
2761
- t(this, N), H = a(this, N, [$]), f(H, "getNodeForOption", function(V) {
2762
- var L, I = (L = this.internalOptions[V]) !== null && L !== void 0 ? L : this.originalOptions[V];
2761
+ t(this, N), H = a(this, N, [V]), f(H, "getNodeForOption", function($) {
2762
+ var L, I = (L = this.internalOptions[$]) !== null && L !== void 0 ? L : this.originalOptions[$];
2763
2763
  if (typeof I == "function") {
2764
2764
  for (var w = arguments.length, B = new Array(w > 1 ? w - 1 : 0), G = 1; G < w; G++)
2765
2765
  B[G - 1] = arguments[G];
@@ -2768,13 +2768,13 @@ function Hf() {
2768
2768
  if (I === !0 && (I = void 0), !I) {
2769
2769
  if (I === void 0 || I === !1)
2770
2770
  return I;
2771
- throw new Error("`".concat(V, "` was specified but was not a node, or did not return a node"));
2771
+ throw new Error("`".concat($, "` was specified but was not a node, or did not return a node"));
2772
2772
  }
2773
2773
  var j = I;
2774
2774
  if (typeof I == "string") {
2775
2775
  var q;
2776
2776
  if (j = (q = this.getDocument()) === null || q === void 0 ? void 0 : q.querySelector(I), !j)
2777
- throw new Error("`".concat(V, "` as selector refers to no known node"));
2777
+ throw new Error("`".concat($, "` as selector refers to no known node"));
2778
2778
  }
2779
2779
  return j;
2780
2780
  }), H.handleDeactivate = H.handleDeactivate.bind(H), H.handlePostDeactivate = H.handlePostDeactivate.bind(H), H.handleClickOutsideDeactivates = H.handleClickOutsideDeactivates.bind(H), H.internalOptions = {
@@ -2807,7 +2807,7 @@ function Hf() {
2807
2807
  // the user's setting, defaulted to false since focus-trap defaults this to false
2808
2808
  clickOutsideDeactivates: !1
2809
2809
  };
2810
- var te = $.focusTrapOptions;
2810
+ var te = V.focusTrapOptions;
2811
2811
  for (var Y in te)
2812
2812
  if (Object.prototype.hasOwnProperty.call(te, Y)) {
2813
2813
  if (Y === "returnFocusOnDeactivate" || Y === "onDeactivate" || Y === "onPostDeactivate" || Y === "checkCanReturnFocus" || Y === "clickOutsideDeactivates") {
@@ -2816,7 +2816,7 @@ function Hf() {
2816
2816
  }
2817
2817
  H.internalOptions[Y] = te[Y];
2818
2818
  }
2819
- return H.outsideClick = null, H.focusTrapElements = $.containerElements || [], H.updatePreviousElement(), H;
2819
+ return H.outsideClick = null, H.focusTrapElements = V.containerElements || [], H.updatePreviousElement(), H;
2820
2820
  }
2821
2821
  return c(N, _), r(N, [{
2822
2822
  key: "getDocument",
@@ -2874,15 +2874,15 @@ function Hf() {
2874
2874
  key: "handlePostDeactivate",
2875
2875
  value: function() {
2876
2876
  var H = this, te = function() {
2877
- var V = H.getReturnFocusNode(), L = !!// did the consumer allow it?
2877
+ var $ = H.getReturnFocusNode(), L = !!// did the consumer allow it?
2878
2878
  (H.originalOptions.returnFocusOnDeactivate && // can we actually focus the node?
2879
- V !== null && V !== void 0 && V.focus && // was there an outside click that allowed deactivation?
2879
+ $ !== null && $ !== void 0 && $.focus && // was there an outside click that allowed deactivation?
2880
2880
  (!H.outsideClick || // did the consumer allow deactivation when the outside node was clicked?
2881
2881
  H.outsideClick.allowDeactivation && // is the outside node NOT focusable (implying that it did NOT receive focus
2882
2882
  // as a result of the click-through) -- in which case do NOT restore focus
2883
2883
  // to `returnFocusNode` because focus should remain on the outside node
2884
2884
  !M(H.outsideClick.target, H.internalOptions.tabbableOptions))), I = H.internalOptions.preventScroll, w = I === void 0 ? !1 : I;
2885
- L && V.focus({
2885
+ L && $.focus({
2886
2886
  preventScroll: w
2887
2887
  }), H.originalOptions.onPostDeactivate && H.originalOptions.onPostDeactivate.call(null), H.outsideClick = null;
2888
2888
  };
@@ -2908,12 +2908,12 @@ function Hf() {
2908
2908
  value: function(H) {
2909
2909
  if (this.focusTrap) {
2910
2910
  H.containerElements !== this.props.containerElements && this.focusTrap.updateContainerElements(this.props.containerElements);
2911
- var te = !H.active && this.props.active, Y = H.active && !this.props.active, V = !H.paused && this.props.paused, L = H.paused && !this.props.paused;
2911
+ var te = !H.active && this.props.active, Y = H.active && !this.props.active, $ = !H.paused && this.props.paused, L = H.paused && !this.props.paused;
2912
2912
  if (te && (this.updatePreviousElement(), this.focusTrap.activate()), Y) {
2913
2913
  this.deactivateTrap();
2914
2914
  return;
2915
2915
  }
2916
- V && this.focusTrap.pause(), L && this.focusTrap.unpause();
2916
+ $ && this.focusTrap.pause(), L && this.focusTrap.unpause();
2917
2917
  } else
2918
2918
  H.containerElements !== this.props.containerElements && (this.focusTrapElements = this.props.containerElements), this.props.active && (this.updatePreviousElement(), this.setupFocusTrap());
2919
2919
  }
@@ -2925,22 +2925,22 @@ function Hf() {
2925
2925
  }, {
2926
2926
  key: "render",
2927
2927
  value: function() {
2928
- var H = this, te = this.props.children ? b.Children.only(this.props.children) : void 0;
2928
+ var H = this, te = this.props.children ? g.Children.only(this.props.children) : void 0;
2929
2929
  if (te) {
2930
- if (te.type && te.type === b.Fragment)
2930
+ if (te.type && te.type === g.Fragment)
2931
2931
  throw new Error("A focus-trap cannot use a Fragment as its child container. Try replacing it with a <div> element.");
2932
2932
  var Y = function(I) {
2933
2933
  var w = H.props.containerElements;
2934
2934
  te && (typeof te.ref == "function" ? te.ref(I) : te.ref && (te.ref.current = I)), H.focusTrapElements = w || [I];
2935
- }, V = b.cloneElement(te, {
2935
+ }, $ = g.cloneElement(te, {
2936
2936
  ref: Y
2937
2937
  });
2938
- return V;
2938
+ return $;
2939
2939
  }
2940
2940
  return null;
2941
2941
  }
2942
2942
  }]);
2943
- }(b.Component), R = typeof Element > "u" ? Function : Element;
2943
+ }(g.Component), R = typeof Element > "u" ? Function : Element;
2944
2944
  return W.propTypes = {
2945
2945
  active: m.bool,
2946
2946
  paused: m.bool,
@@ -2992,7 +2992,7 @@ function Hf() {
2992
2992
  active: !0,
2993
2993
  paused: !1,
2994
2994
  focusTrapOptions: {},
2995
- _createFocusTrap: g
2995
+ _createFocusTrap: E
2996
2996
  }, Sa = W, Sa;
2997
2997
  }
2998
2998
  var Uf = Hf();
@@ -3003,7 +3003,7 @@ function Js({
3003
3003
  isMounted: n = !1,
3004
3004
  style: r = {}
3005
3005
  }) {
3006
- const { isMobile: a, isNormalSize: i } = oe(Ke), u = nt(null);
3006
+ const { isMobile: a, isNormalSize: i } = oe(Ze), u = nt(null);
3007
3007
  return /* @__PURE__ */ S.jsx(
3008
3008
  jf,
3009
3009
  {
@@ -3374,9 +3374,9 @@ function nh(e, t) {
3374
3374
  };
3375
3375
  let i = n.body;
3376
3376
  [n, r].forEach((m) => {
3377
- const y = [], g = m.hFlip, P = m.vFlip;
3377
+ const y = [], E = m.hFlip, P = m.vFlip;
3378
3378
  let M = m.rotate;
3379
- g ? P ? M += 2 : (y.push(
3379
+ E ? P ? M += 2 : (y.push(
3380
3380
  "translate(" + (a.width + a.left).toString() + " " + (0 - a.top).toString() + ")"
3381
3381
  ), y.push("scale(-1 1)"), a.top = a.left = 0) : P && (y.push(
3382
3382
  "translate(" + (0 - a.left).toString() + " " + (a.height + a.top).toString() + ")"
@@ -3412,10 +3412,10 @@ function nh(e, t) {
3412
3412
  th(y) || (p[m] = y.toString());
3413
3413
  };
3414
3414
  h("width", d), h("height", f);
3415
- const b = [a.left, a.top, l, c];
3416
- return p.viewBox = b.join(" "), {
3415
+ const g = [a.left, a.top, l, c];
3416
+ return p.viewBox = g.join(" "), {
3417
3417
  attributes: p,
3418
- viewBox: b,
3418
+ viewBox: g,
3419
3419
  body: i
3420
3420
  };
3421
3421
  }
@@ -3707,18 +3707,18 @@ function Ch(e, t, n, r) {
3707
3707
  const s = Date.now();
3708
3708
  let l = "pending", c = 0, d, f = null, p = [], h = [];
3709
3709
  typeof r == "function" && h.push(r);
3710
- function b() {
3710
+ function g() {
3711
3711
  f && (clearTimeout(f), f = null);
3712
3712
  }
3713
3713
  function m() {
3714
- l === "pending" && (l = "aborted"), b(), p.forEach((_) => {
3714
+ l === "pending" && (l = "aborted"), g(), p.forEach((_) => {
3715
3715
  _.status === "pending" && (_.status = "aborted");
3716
3716
  }), p = [];
3717
3717
  }
3718
3718
  function y(_, N) {
3719
3719
  N && (h = []), typeof _ == "function" && h.push(_);
3720
3720
  }
3721
- function g() {
3721
+ function E() {
3722
3722
  return {
3723
3723
  startTime: s,
3724
3724
  payload: t,
@@ -3739,7 +3739,7 @@ function Ch(e, t, n, r) {
3739
3739
  _.status === "pending" && (_.status = "aborted");
3740
3740
  }), p = [];
3741
3741
  }
3742
- function W(_, N, $) {
3742
+ function W(_, N, V) {
3743
3743
  const H = N !== "success";
3744
3744
  switch (p = p.filter((te) => te !== _), l) {
3745
3745
  case "pending":
@@ -3752,30 +3752,30 @@ function Ch(e, t, n, r) {
3752
3752
  return;
3753
3753
  }
3754
3754
  if (N === "abort") {
3755
- d = $, P();
3755
+ d = V, P();
3756
3756
  return;
3757
3757
  }
3758
3758
  if (H) {
3759
- d = $, p.length || (u.length ? R() : P());
3759
+ d = V, p.length || (u.length ? R() : P());
3760
3760
  return;
3761
3761
  }
3762
- if (b(), M(), !e.random) {
3762
+ if (g(), M(), !e.random) {
3763
3763
  const te = e.resources.indexOf(_.resource);
3764
3764
  te !== -1 && te !== e.index && (e.index = te);
3765
3765
  }
3766
3766
  l = "completed", h.forEach((te) => {
3767
- te($);
3767
+ te(V);
3768
3768
  });
3769
3769
  }
3770
3770
  function R() {
3771
3771
  if (l !== "pending")
3772
3772
  return;
3773
- b();
3773
+ g();
3774
3774
  const _ = u.shift();
3775
3775
  if (_ === void 0) {
3776
3776
  if (p.length) {
3777
3777
  f = setTimeout(() => {
3778
- b(), l === "pending" && (M(), P());
3778
+ g(), l === "pending" && (M(), P());
3779
3779
  }, e.timeout);
3780
3780
  return;
3781
3781
  }
@@ -3785,13 +3785,13 @@ function Ch(e, t, n, r) {
3785
3785
  const N = {
3786
3786
  status: "pending",
3787
3787
  resource: _,
3788
- callback: ($, H) => {
3789
- W(N, $, H);
3788
+ callback: (V, H) => {
3789
+ W(N, V, H);
3790
3790
  }
3791
3791
  };
3792
3792
  p.push(N), c++, f = setTimeout(R, e.rotate), n(_, t, N.callback);
3793
3793
  }
3794
- return setTimeout(R), g;
3794
+ return setTimeout(R), E;
3795
3795
  }
3796
3796
  function dl(e) {
3797
3797
  const t = {
@@ -4100,18 +4100,18 @@ const qh = (e, t, n) => {
4100
4100
  if (n) {
4101
4101
  const y = Zr(n, !1, !0);
4102
4102
  if (y) {
4103
- const g = ["iconify"], P = [
4103
+ const E = ["iconify"], P = [
4104
4104
  "provider",
4105
4105
  "prefix"
4106
4106
  ];
4107
4107
  for (const M of P)
4108
- y[M] && g.push("iconify--" + y[M]);
4109
- l.className = g.join(" ");
4108
+ y[M] && E.push("iconify--" + y[M]);
4109
+ l.className = E.join(" ");
4110
4110
  }
4111
4111
  }
4112
4112
  for (let y in t) {
4113
- const g = t[y];
4114
- if (g !== void 0)
4113
+ const E = t[y];
4114
+ if (E !== void 0)
4115
4115
  switch (y) {
4116
4116
  // Properties to ignore
4117
4117
  case "icon":
@@ -4123,38 +4123,38 @@ const qh = (e, t, n) => {
4123
4123
  break;
4124
4124
  // Forward ref
4125
4125
  case "_ref":
4126
- l.ref = g;
4126
+ l.ref = E;
4127
4127
  break;
4128
4128
  // Merge class names
4129
4129
  case "className":
4130
- l[y] = (l[y] ? l[y] + " " : "") + g;
4130
+ l[y] = (l[y] ? l[y] + " " : "") + E;
4131
4131
  break;
4132
4132
  // Boolean attributes
4133
4133
  case "inline":
4134
4134
  case "hFlip":
4135
4135
  case "vFlip":
4136
- a[y] = g === !0 || g === "true" || g === 1;
4136
+ a[y] = E === !0 || E === "true" || E === 1;
4137
4137
  break;
4138
4138
  // Flip as string: 'horizontal,vertical'
4139
4139
  case "flip":
4140
- typeof g == "string" && Lh(a, g);
4140
+ typeof E == "string" && Lh(a, E);
4141
4141
  break;
4142
4142
  // Color: copy to style
4143
4143
  case "color":
4144
- u.color = g;
4144
+ u.color = E;
4145
4145
  break;
4146
4146
  // Rotation as string
4147
4147
  case "rotate":
4148
- typeof g == "string" ? a[y] = wh(g) : typeof g == "number" && (a[y] = g);
4148
+ typeof E == "string" ? a[y] = wh(E) : typeof E == "number" && (a[y] = E);
4149
4149
  break;
4150
4150
  // Remove aria-hidden
4151
4151
  case "ariaHidden":
4152
4152
  case "aria-hidden":
4153
- g !== !0 && g !== "true" && delete l["aria-hidden"];
4153
+ E !== !0 && E !== "true" && delete l["aria-hidden"];
4154
4154
  break;
4155
4155
  // Copy missing property if it does not exist in customisations
4156
4156
  default:
4157
- r[y] === void 0 && (l[y] = g);
4157
+ r[y] === void 0 && (l[y] = E);
4158
4158
  }
4159
4159
  }
4160
4160
  const c = nh(e, a), d = c.attributes;
@@ -4163,12 +4163,12 @@ const qh = (e, t, n) => {
4163
4163
  ...u,
4164
4164
  ...s
4165
4165
  }, Object.assign(l, d);
4166
- let y = 0, g = t.id;
4167
- return typeof g == "string" && (g = g.replace(/-/g, "_")), l.dangerouslySetInnerHTML = {
4168
- __html: Bh(uh(c.body, g ? () => g + "ID" + y++ : "iconifyReact"))
4166
+ let y = 0, E = t.id;
4167
+ return typeof E == "string" && (E = E.replace(/-/g, "_")), l.dangerouslySetInnerHTML = {
4168
+ __html: Bh(uh(c.body, E ? () => E + "ID" + y++ : "iconifyReact"))
4169
4169
  }, Za("svg", l);
4170
4170
  }
4171
- const { body: f, width: p, height: h } = e, b = i === "mask" || (i === "bg" ? !1 : f.indexOf("currentColor") !== -1), m = Rh(f, {
4171
+ const { body: f, width: p, height: h } = e, g = i === "mask" || (i === "bg" ? !1 : f.indexOf("currentColor") !== -1), m = Rh(f, {
4172
4172
  ...d,
4173
4173
  width: p + "",
4174
4174
  height: h + ""
@@ -4179,7 +4179,7 @@ const qh = (e, t, n) => {
4179
4179
  width: Vu(d.width),
4180
4180
  height: Vu(d.height),
4181
4181
  ...Uh,
4182
- ...b ? ii : hl,
4182
+ ...g ? ii : hl,
4183
4183
  ...s
4184
4184
  }, Za("span", l);
4185
4185
  };
@@ -4220,16 +4220,16 @@ function pl(e) {
4220
4220
  const [t, n] = ce(!!e.ssr), [r, a] = ce({});
4221
4221
  function i(h) {
4222
4222
  if (h) {
4223
- const b = e.icon;
4224
- if (typeof b == "object")
4223
+ const g = e.icon;
4224
+ if (typeof g == "object")
4225
4225
  return {
4226
4226
  name: "",
4227
- data: b
4227
+ data: g
4228
4228
  };
4229
- const m = Bu(b);
4229
+ const m = Bu(g);
4230
4230
  if (m)
4231
4231
  return {
4232
- name: b,
4232
+ name: g,
4233
4233
  data: m
4234
4234
  };
4235
4235
  }
@@ -4248,25 +4248,25 @@ function pl(e) {
4248
4248
  }
4249
4249
  function d() {
4250
4250
  var h;
4251
- const b = e.icon;
4252
- if (typeof b == "object") {
4251
+ const g = e.icon;
4252
+ if (typeof g == "object") {
4253
4253
  c({
4254
4254
  name: "",
4255
- data: b
4255
+ data: g
4256
4256
  });
4257
4257
  return;
4258
4258
  }
4259
- const m = Bu(b);
4259
+ const m = Bu(g);
4260
4260
  if (c({
4261
- name: b,
4261
+ name: g,
4262
4262
  data: m
4263
4263
  }))
4264
4264
  if (m === void 0) {
4265
- const y = Ih([b], d);
4265
+ const y = Ih([g], d);
4266
4266
  a({
4267
4267
  callback: y
4268
4268
  });
4269
- } else m && ((h = e.onLoad) === null || h === void 0 || h.call(e, b));
4269
+ } else m && ((h = e.onLoad) === null || h === void 0 || h.call(e, g));
4270
4270
  }
4271
4271
  Ne(() => (n(!0), l), []), Ne(() => {
4272
4272
  t && d();
@@ -4294,7 +4294,7 @@ function Li({
4294
4294
  handleChange: a
4295
4295
  }) {
4296
4296
  var M;
4297
- const i = nt(!1), { conversationScreen: u, primaryColor: s } = oe(Ye), { hasError: l, hasNewMessage: c, loading: d, streaming: f } = oe(Ke), [p, h] = ce(""), b = st(
4297
+ const i = nt(!1), { conversationScreen: u, primaryColor: s } = oe(Ye), { hasError: l, hasNewMessage: c, loading: d, streaming: f } = oe(Ze), [p, h] = ce(""), g = st(
4298
4298
  (W) => {
4299
4299
  W.preventDefault(), h(W.target.value), a && a(W);
4300
4300
  },
@@ -4309,7 +4309,7 @@ function Li({
4309
4309
  var W;
4310
4310
  (l || c) && ((W = r.current) == null || W.focus());
4311
4311
  }, [c, l, r]);
4312
- const g = (W) => {
4312
+ const E = (W) => {
4313
4313
  W.key === "Enter" && p.trim() === "" || W.key === "Enter" && !W.shiftKey && (W.preventDefault(), t(p), m());
4314
4314
  }, P = () => {
4315
4315
  /* istanbul ignore next @preserve */
@@ -4328,12 +4328,12 @@ function Li({
4328
4328
  value: p,
4329
4329
  ref: r,
4330
4330
  onInput: P,
4331
- onChange: b,
4331
+ onChange: g,
4332
4332
  placeholder: "Write a message",
4333
4333
  cols: "5",
4334
4334
  rows: "1",
4335
4335
  maxLength: ((M = u == null ? void 0 : u.input) == null ? void 0 : M.maxLength) ?? 5e3,
4336
- onKeyDown: g,
4336
+ onKeyDown: E,
4337
4337
  style: {
4338
4338
  margin: "0",
4339
4339
  borderRadius: "1rem",
@@ -4937,11 +4937,11 @@ function rp() {
4937
4937
  return c[d];
4938
4938
  };
4939
4939
  return La = function l() {
4940
- var c, d, f, p, h, b, m = arguments[0], y = 1, g = arguments.length, P = !1;
4941
- for (typeof m == "boolean" && (P = m, m = arguments[1] || {}, y = 2), (m == null || typeof m != "object" && typeof m != "function") && (m = {}); y < g; ++y)
4940
+ var c, d, f, p, h, g, m = arguments[0], y = 1, E = arguments.length, P = !1;
4941
+ for (typeof m == "boolean" && (P = m, m = arguments[1] || {}, y = 2), (m == null || typeof m != "object" && typeof m != "function") && (m = {}); y < E; ++y)
4942
4942
  if (c = arguments[y], c != null)
4943
4943
  for (d in c)
4944
- f = s(m, d), p = s(c, d), m !== p && (P && p && (i(p) || (h = a(p))) ? (h ? (h = !1, b = f && a(f) ? f : []) : b = f && i(f) ? f : {}, u(m, { name: d, newValue: l(P, b, p) })) : typeof p < "u" && u(m, { name: d, newValue: p }));
4944
+ f = s(m, d), p = s(c, d), m !== p && (P && p && (i(p) || (h = a(p))) ? (h ? (h = !1, g = f && a(f) ? f : []) : g = f && i(f) ? f : {}, u(m, { name: d, newValue: l(P, g, p) })) : typeof p < "u" && u(m, { name: d, newValue: p }));
4945
4945
  return m;
4946
4946
  }, La;
4947
4947
  }
@@ -5013,7 +5013,7 @@ const op = El().freeze(), bl = {}.hasOwnProperty;
5013
5013
  function El() {
5014
5014
  const e = ip(), t = [];
5015
5015
  let n = {}, r, a = -1;
5016
- return i.data = u, i.Parser = void 0, i.Compiler = void 0, i.freeze = s, i.attachers = t, i.use = l, i.parse = c, i.stringify = d, i.run = f, i.runSync = p, i.process = h, i.processSync = b, i;
5016
+ return i.data = u, i.Parser = void 0, i.Compiler = void 0, i.freeze = s, i.attachers = t, i.use = l, i.parse = c, i.stringify = d, i.run = f, i.runSync = p, i.process = h, i.processSync = g, i;
5017
5017
  function i() {
5018
5018
  const m = El();
5019
5019
  let y = -1;
@@ -5032,50 +5032,50 @@ function El() {
5032
5032
  if (y[0] === !1)
5033
5033
  continue;
5034
5034
  y[0] === !0 && (y[0] = void 0);
5035
- const g = m.call(i, ...y);
5036
- typeof g == "function" && e.use(g);
5035
+ const E = m.call(i, ...y);
5036
+ typeof E == "function" && e.use(E);
5037
5037
  }
5038
5038
  return r = !0, a = Number.POSITIVE_INFINITY, i;
5039
5039
  }
5040
5040
  function l(m, ...y) {
5041
- let g;
5041
+ let E;
5042
5042
  if (Da("use", r), m != null) if (typeof m == "function")
5043
5043
  R(m, ...y);
5044
5044
  else if (typeof m == "object")
5045
5045
  Array.isArray(m) ? W(m) : M(m);
5046
5046
  else
5047
5047
  throw new TypeError("Expected usable value, not `" + m + "`");
5048
- return g && (n.settings = Object.assign(n.settings || {}, g)), i;
5048
+ return E && (n.settings = Object.assign(n.settings || {}, E)), i;
5049
5049
  function P(_) {
5050
5050
  if (typeof _ == "function")
5051
5051
  R(_);
5052
5052
  else if (typeof _ == "object")
5053
5053
  if (Array.isArray(_)) {
5054
- const [N, ...$] = _;
5055
- R(N, ...$);
5054
+ const [N, ...V] = _;
5055
+ R(N, ...V);
5056
5056
  } else
5057
5057
  M(_);
5058
5058
  else
5059
5059
  throw new TypeError("Expected usable value, not `" + _ + "`");
5060
5060
  }
5061
5061
  function M(_) {
5062
- W(_.plugins), _.settings && (g = Object.assign(g || {}, _.settings));
5062
+ W(_.plugins), _.settings && (E = Object.assign(E || {}, _.settings));
5063
5063
  }
5064
5064
  function W(_) {
5065
5065
  let N = -1;
5066
5066
  if (_ != null) if (Array.isArray(_))
5067
5067
  for (; ++N < _.length; ) {
5068
- const $ = _[N];
5069
- P($);
5068
+ const V = _[N];
5069
+ P(V);
5070
5070
  }
5071
5071
  else
5072
5072
  throw new TypeError("Expected a list of plugins, not `" + _ + "`");
5073
5073
  }
5074
5074
  function R(_, N) {
5075
- let $ = -1, H;
5076
- for (; ++$ < t.length; )
5077
- if (t[$][0] === _) {
5078
- H = t[$];
5075
+ let V = -1, H;
5076
+ for (; ++V < t.length; )
5077
+ if (t[V][0] === _) {
5078
+ H = t[V];
5079
5079
  break;
5080
5080
  }
5081
5081
  H ? (li(H[1]) && li(N) && (N = eo(!0, H[1], N)), H[1] = N) : t.push([...arguments]);
@@ -5083,44 +5083,44 @@ function El() {
5083
5083
  }
5084
5084
  function c(m) {
5085
5085
  i.freeze();
5086
- const y = Wn(m), g = i.Parser;
5087
- return wa("parse", g), to(g, "parse") ? new g(String(y), y).parse() : g(String(y), y);
5086
+ const y = Wn(m), E = i.Parser;
5087
+ return wa("parse", E), to(E, "parse") ? new E(String(y), y).parse() : E(String(y), y);
5088
5088
  }
5089
5089
  function d(m, y) {
5090
5090
  i.freeze();
5091
- const g = Wn(y), P = i.Compiler;
5092
- return Ra("stringify", P), no(m), to(P, "compile") ? new P(m, g).compile() : P(m, g);
5091
+ const E = Wn(y), P = i.Compiler;
5092
+ return Ra("stringify", P), no(m), to(P, "compile") ? new P(m, E).compile() : P(m, E);
5093
5093
  }
5094
- function f(m, y, g) {
5095
- if (no(m), i.freeze(), !g && typeof y == "function" && (g = y, y = void 0), !g)
5094
+ function f(m, y, E) {
5095
+ if (no(m), i.freeze(), !E && typeof y == "function" && (E = y, y = void 0), !E)
5096
5096
  return new Promise(P);
5097
- P(null, g);
5097
+ P(null, E);
5098
5098
  function P(M, W) {
5099
5099
  e.run(m, Wn(y), R);
5100
- function R(_, N, $) {
5101
- N = N || m, _ ? W(_) : M ? M(N) : g(null, N, $);
5100
+ function R(_, N, V) {
5101
+ N = N || m, _ ? W(_) : M ? M(N) : E(null, N, V);
5102
5102
  }
5103
5103
  }
5104
5104
  }
5105
5105
  function p(m, y) {
5106
- let g, P;
5107
- return i.run(m, y, M), ro("runSync", "run", P), g;
5106
+ let E, P;
5107
+ return i.run(m, y, M), ro("runSync", "run", P), E;
5108
5108
  function M(W, R) {
5109
- Zu(W), g = R, P = !0;
5109
+ Zu(W), E = R, P = !0;
5110
5110
  }
5111
5111
  }
5112
5112
  function h(m, y) {
5113
5113
  if (i.freeze(), wa("process", i.Parser), Ra("process", i.Compiler), !y)
5114
- return new Promise(g);
5115
- g(null, y);
5116
- function g(P, M) {
5114
+ return new Promise(E);
5115
+ E(null, y);
5116
+ function E(P, M) {
5117
5117
  const W = Wn(m);
5118
- i.run(i.parse(W), W, (_, N, $) => {
5119
- if (_ || !N || !$)
5118
+ i.run(i.parse(W), W, (_, N, V) => {
5119
+ if (_ || !N || !V)
5120
5120
  R(_);
5121
5121
  else {
5122
- const H = i.stringify(N, $);
5123
- H == null || (cp(H) ? $.value = H : $.result = H), R(_, $);
5122
+ const H = i.stringify(N, V);
5123
+ H == null || (cp(H) ? V.value = H : V.result = H), R(_, V);
5124
5124
  }
5125
5125
  });
5126
5126
  function R(_, N) {
@@ -5128,11 +5128,11 @@ function El() {
5128
5128
  }
5129
5129
  }
5130
5130
  }
5131
- function b(m) {
5131
+ function g(m) {
5132
5132
  let y;
5133
5133
  i.freeze(), wa("processSync", i.Parser), Ra("processSync", i.Compiler);
5134
- const g = Wn(m);
5135
- return i.process(g, P), ro("processSync", "process", y), g;
5134
+ const E = Wn(m);
5135
+ return i.process(E, P), ro("processSync", "process", y), E;
5136
5136
  function P(M) {
5137
5137
  y = !0, Zu(M);
5138
5138
  }
@@ -5340,7 +5340,7 @@ function yp(e) {
5340
5340
  _ = t.events[R][1].end;
5341
5341
  break;
5342
5342
  }
5343
- g(r);
5343
+ E(r);
5344
5344
  let N = W;
5345
5345
  for (; N < t.events.length; )
5346
5346
  t.events[N][1].end = Object.assign({}, _), N++;
@@ -5358,7 +5358,7 @@ function yp(e) {
5358
5358
  if (!a)
5359
5359
  return p(M);
5360
5360
  if (a.currentConstruct && a.currentConstruct.concrete)
5361
- return b(M);
5361
+ return g(M);
5362
5362
  t.interrupt = !!(a.currentConstruct && !a._gfmTableDynamicInterruptHack);
5363
5363
  }
5364
5364
  return t.containerState = {}, e.check(
@@ -5368,24 +5368,24 @@ function yp(e) {
5368
5368
  )(M);
5369
5369
  }
5370
5370
  function d(M) {
5371
- return a && P(), g(r), p(M);
5371
+ return a && P(), E(r), p(M);
5372
5372
  }
5373
5373
  function f(M) {
5374
- return t.parser.lazy[t.now().line] = r !== n.length, u = t.now().offset, b(M);
5374
+ return t.parser.lazy[t.now().line] = r !== n.length, u = t.now().offset, g(M);
5375
5375
  }
5376
5376
  function p(M) {
5377
5377
  return t.containerState = {}, e.attempt(
5378
5378
  oo,
5379
5379
  h,
5380
- b
5380
+ g
5381
5381
  )(M);
5382
5382
  }
5383
5383
  function h(M) {
5384
5384
  return r++, n.push([t.currentConstruct, t.containerState]), p(M);
5385
5385
  }
5386
- function b(M) {
5386
+ function g(M) {
5387
5387
  if (M === null) {
5388
- a && P(), g(0), e.consume(M);
5388
+ a && P(), E(0), e.consume(M);
5389
5389
  return;
5390
5390
  }
5391
5391
  return a = a || t.parser.flow(t.now()), e.enter("chunkFlow", {
@@ -5396,7 +5396,7 @@ function yp(e) {
5396
5396
  }
5397
5397
  function m(M) {
5398
5398
  if (M === null) {
5399
- y(e.exit("chunkFlow"), !0), g(0), e.consume(M);
5399
+ y(e.exit("chunkFlow"), !0), E(0), e.consume(M);
5400
5400
  return;
5401
5401
  }
5402
5402
  return wi(M) ? (e.consume(M), y(e.exit("chunkFlow")), r = 0, t.interrupt = void 0, s) : (e.consume(M), m);
@@ -5414,26 +5414,26 @@ function yp(e) {
5414
5414
  )
5415
5415
  return;
5416
5416
  const N = t.events.length;
5417
- let $ = N, H, te;
5418
- for (; $--; )
5419
- if (t.events[$][0] === "exit" && t.events[$][1].type === "chunkFlow") {
5417
+ let V = N, H, te;
5418
+ for (; V--; )
5419
+ if (t.events[V][0] === "exit" && t.events[V][1].type === "chunkFlow") {
5420
5420
  if (H) {
5421
- te = t.events[$][1].end;
5421
+ te = t.events[V][1].end;
5422
5422
  break;
5423
5423
  }
5424
5424
  H = !0;
5425
5425
  }
5426
- for (g(r), _ = N; _ < t.events.length; )
5426
+ for (E(r), _ = N; _ < t.events.length; )
5427
5427
  t.events[_][1].end = Object.assign({}, te), _++;
5428
5428
  Pt(
5429
5429
  t.events,
5430
- $ + 1,
5430
+ V + 1,
5431
5431
  0,
5432
5432
  t.events.slice(N)
5433
5433
  ), t.events.length = _;
5434
5434
  }
5435
5435
  }
5436
- function g(M) {
5436
+ function E(M) {
5437
5437
  let W = n.length;
5438
5438
  for (; W-- > M; ) {
5439
5439
  const R = n[W];
@@ -5616,8 +5616,8 @@ function Rp(e, t, n) {
5616
5616
  }
5617
5617
  function p(h) {
5618
5618
  if ((h === 45 || xt(h)) && r++ < 63) {
5619
- const b = h === 45 ? p : f;
5620
- return e.consume(h), b;
5619
+ const g = h === 45 ? p : f;
5620
+ return e.consume(h), g;
5621
5621
  }
5622
5622
  return n(h);
5623
5623
  }
@@ -5762,18 +5762,18 @@ function Up(e, t, n) {
5762
5762
  function h(_) {
5763
5763
  return _ === null || be(_) ? f(_) : (e.enter("codeFencedFenceMeta"), e.enter("chunkString", {
5764
5764
  contentType: "string"
5765
- }), b(_));
5765
+ }), g(_));
5766
5766
  }
5767
- function b(_) {
5768
- return _ === null || be(_) ? (e.exit("chunkString"), e.exit("codeFencedFenceMeta"), f(_)) : _ === 96 && _ === s ? n(_) : (e.consume(_), b);
5767
+ function g(_) {
5768
+ return _ === null || be(_) ? (e.exit("chunkString"), e.exit("codeFencedFenceMeta"), f(_)) : _ === 96 && _ === s ? n(_) : (e.consume(_), g);
5769
5769
  }
5770
5770
  function m(_) {
5771
5771
  return e.attempt(a, W, y)(_);
5772
5772
  }
5773
5773
  function y(_) {
5774
- return e.enter("lineEnding"), e.consume(_), e.exit("lineEnding"), g;
5774
+ return e.enter("lineEnding"), e.consume(_), e.exit("lineEnding"), E;
5775
5775
  }
5776
- function g(_) {
5776
+ function E(_) {
5777
5777
  return i > 0 && we(_) ? Fe(
5778
5778
  e,
5779
5779
  P,
@@ -5790,7 +5790,7 @@ function Up(e, t, n) {
5790
5790
  function W(_) {
5791
5791
  return e.exit("codeFenced"), t(_);
5792
5792
  }
5793
- function R(_, N, $) {
5793
+ function R(_, N, V) {
5794
5794
  let H = 0;
5795
5795
  return te;
5796
5796
  function te(w) {
@@ -5799,19 +5799,19 @@ function Up(e, t, n) {
5799
5799
  function Y(w) {
5800
5800
  return _.enter("codeFencedFence"), we(w) ? Fe(
5801
5801
  _,
5802
- V,
5802
+ $,
5803
5803
  "linePrefix",
5804
5804
  r.parser.constructs.disable.null.includes("codeIndented") ? void 0 : 4
5805
- )(w) : V(w);
5805
+ )(w) : $(w);
5806
5806
  }
5807
- function V(w) {
5808
- return w === s ? (_.enter("codeFencedFenceSequence"), L(w)) : $(w);
5807
+ function $(w) {
5808
+ return w === s ? (_.enter("codeFencedFenceSequence"), L(w)) : V(w);
5809
5809
  }
5810
5810
  function L(w) {
5811
- return w === s ? (H++, _.consume(w), L) : H >= u ? (_.exit("codeFencedFenceSequence"), we(w) ? Fe(_, I, "whitespace")(w) : I(w)) : $(w);
5811
+ return w === s ? (H++, _.consume(w), L) : H >= u ? (_.exit("codeFencedFenceSequence"), we(w) ? Fe(_, I, "whitespace")(w) : I(w)) : V(w);
5812
5812
  }
5813
5813
  function I(w) {
5814
- return w === null || be(w) ? (_.exit("codeFencedFence"), N(w)) : $(w);
5814
+ return w === null || be(w) ? (_.exit("codeFencedFence"), N(w)) : V(w);
5815
5815
  }
5816
5816
  }
5817
5817
  }
@@ -5927,7 +5927,7 @@ function Xp(e, t) {
5927
5927
  const n = e[t][1], r = e[t][2];
5928
5928
  let a = t - 1;
5929
5929
  const i = [], u = n._tokenizer || r.parser[n.contentType](n.start), s = u.events, l = [], c = {};
5930
- let d, f, p = -1, h = n, b = 0, m = 0;
5930
+ let d, f, p = -1, h = n, g = 0, m = 0;
5931
5931
  const y = [m];
5932
5932
  for (; h; ) {
5933
5933
  for (; e[++a][1] !== h; )
@@ -5938,11 +5938,11 @@ function Xp(e, t) {
5938
5938
  // Find a void token that includes a break.
5939
5939
  s[p][0] === "exit" && s[p - 1][0] === "enter" && s[p][1].type === s[p - 1][1].type && s[p][1].start.line !== s[p][1].end.line && (m = p + 1, y.push(m), h._tokenizer = void 0, h.previous = void 0, h = h.next);
5940
5940
  for (u.events = [], h ? (h._tokenizer = void 0, h.previous = void 0) : y.pop(), p = y.length; p--; ) {
5941
- const g = s.slice(y[p], y[p + 1]), P = i.pop();
5942
- l.unshift([P, P + g.length - 1]), Pt(e, P, 2, g);
5941
+ const E = s.slice(y[p], y[p + 1]), P = i.pop();
5942
+ l.unshift([P, P + E.length - 1]), Pt(e, P, 2, E);
5943
5943
  }
5944
5944
  for (p = -1; ++p < l.length; )
5945
- c[b + l[p][0]] = b + l[p][1], b += l[p][1] - l[p][0] - 1;
5945
+ c[g + l[p][0]] = g + l[p][1], g += l[p][1] - l[p][0] - 1;
5946
5946
  return c;
5947
5947
  }
5948
5948
  const Kp = {
@@ -6010,27 +6010,27 @@ function xl(e, t, n, r, a, i, u, s, l) {
6010
6010
  const c = l || Number.POSITIVE_INFINITY;
6011
6011
  let d = 0;
6012
6012
  return f;
6013
- function f(g) {
6014
- return g === 60 ? (e.enter(r), e.enter(a), e.enter(i), e.consume(g), e.exit(i), p) : g === null || g === 32 || g === 41 || po(g) ? n(g) : (e.enter(r), e.enter(u), e.enter(s), e.enter("chunkString", {
6013
+ function f(E) {
6014
+ return E === 60 ? (e.enter(r), e.enter(a), e.enter(i), e.consume(E), e.exit(i), p) : E === null || E === 32 || E === 41 || po(E) ? n(E) : (e.enter(r), e.enter(u), e.enter(s), e.enter("chunkString", {
6015
6015
  contentType: "string"
6016
- }), m(g));
6016
+ }), m(E));
6017
6017
  }
6018
- function p(g) {
6019
- return g === 62 ? (e.enter(i), e.consume(g), e.exit(i), e.exit(a), e.exit(r), t) : (e.enter(s), e.enter("chunkString", {
6018
+ function p(E) {
6019
+ return E === 62 ? (e.enter(i), e.consume(E), e.exit(i), e.exit(a), e.exit(r), t) : (e.enter(s), e.enter("chunkString", {
6020
6020
  contentType: "string"
6021
- }), h(g));
6021
+ }), h(E));
6022
6022
  }
6023
- function h(g) {
6024
- return g === 62 ? (e.exit("chunkString"), e.exit(s), p(g)) : g === null || g === 60 || t1(g) ? n(g) : (e.consume(g), g === 92 ? b : h);
6023
+ function h(E) {
6024
+ return E === 62 ? (e.exit("chunkString"), e.exit(s), p(E)) : E === null || E === 60 || t1(E) ? n(E) : (e.consume(E), E === 92 ? g : h);
6025
6025
  }
6026
- function b(g) {
6027
- return g === 60 || g === 62 || g === 92 ? (e.consume(g), h) : h(g);
6026
+ function g(E) {
6027
+ return E === 60 || E === 62 || E === 92 ? (e.consume(E), h) : h(E);
6028
6028
  }
6029
- function m(g) {
6030
- return !d && (g === null || g === 41 || n1(g)) ? (e.exit("chunkString"), e.exit(s), e.exit(u), e.exit(r), t(g)) : d < c && g === 40 ? (e.consume(g), d++, m) : g === 41 ? (e.consume(g), d--, m) : g === null || g === 32 || g === 40 || po(g) ? n(g) : (e.consume(g), g === 92 ? y : m);
6029
+ function m(E) {
6030
+ return !d && (E === null || E === 41 || n1(E)) ? (e.exit("chunkString"), e.exit(s), e.exit(u), e.exit(r), t(E)) : d < c && E === 40 ? (e.consume(E), d++, m) : E === 41 ? (e.consume(E), d--, m) : E === null || E === 32 || E === 40 || po(E) ? n(E) : (e.consume(E), E === 92 ? y : m);
6031
6031
  }
6032
- function y(g) {
6033
- return g === 40 || g === 41 || g === 92 ? (e.consume(g), m) : m(g);
6032
+ function y(E) {
6033
+ return E === 40 || E === 41 || E === 92 ? (e.consume(E), m) : m(E);
6034
6034
  }
6035
6035
  }
6036
6036
  function mo(e) {
@@ -6336,17 +6336,17 @@ function y1(e, t, n) {
6336
6336
  return e.enter("htmlFlow"), e.enter("htmlFlowData"), e.consume(x), f;
6337
6337
  }
6338
6338
  function f(x) {
6339
- return x === 33 ? (e.consume(x), p) : x === 47 ? (e.consume(x), i = !0, m) : x === 63 ? (e.consume(x), a = 3, r.interrupt ? t : E) : Rt(x) ? (e.consume(x), u = String.fromCharCode(x), y) : n(x);
6339
+ return x === 33 ? (e.consume(x), p) : x === 47 ? (e.consume(x), i = !0, m) : x === 63 ? (e.consume(x), a = 3, r.interrupt ? t : b) : Rt(x) ? (e.consume(x), u = String.fromCharCode(x), y) : n(x);
6340
6340
  }
6341
6341
  function p(x) {
6342
- return x === 45 ? (e.consume(x), a = 2, h) : x === 91 ? (e.consume(x), a = 5, s = 0, b) : Rt(x) ? (e.consume(x), a = 4, r.interrupt ? t : E) : n(x);
6342
+ return x === 45 ? (e.consume(x), a = 2, h) : x === 91 ? (e.consume(x), a = 5, s = 0, g) : Rt(x) ? (e.consume(x), a = 4, r.interrupt ? t : b) : n(x);
6343
6343
  }
6344
6344
  function h(x) {
6345
- return x === 45 ? (e.consume(x), r.interrupt ? t : E) : n(x);
6345
+ return x === 45 ? (e.consume(x), r.interrupt ? t : b) : n(x);
6346
6346
  }
6347
- function b(x) {
6347
+ function g(x) {
6348
6348
  const se = "CDATA[";
6349
- return x === se.charCodeAt(s++) ? (e.consume(x), s === se.length ? r.interrupt ? t : V : b) : n(x);
6349
+ return x === se.charCodeAt(s++) ? (e.consume(x), s === se.length ? r.interrupt ? t : $ : g) : n(x);
6350
6350
  }
6351
6351
  function m(x) {
6352
6352
  return Rt(x) ? (e.consume(x), u = String.fromCharCode(x), y) : n(x);
@@ -6354,12 +6354,12 @@ function y1(e, t, n) {
6354
6354
  function y(x) {
6355
6355
  if (x === null || x === 47 || x === 62 || _t(x)) {
6356
6356
  const se = x === 47, ye = u.toLowerCase();
6357
- return !se && !i && bo.includes(ye) ? (a = 1, r.interrupt ? t(x) : V(x)) : m1.includes(u.toLowerCase()) ? (a = 6, se ? (e.consume(x), g) : r.interrupt ? t(x) : V(x)) : (a = 7, r.interrupt && !r.parser.lazy[r.now().line] ? n(x) : i ? P(x) : M(x));
6357
+ return !se && !i && bo.includes(ye) ? (a = 1, r.interrupt ? t(x) : $(x)) : m1.includes(u.toLowerCase()) ? (a = 6, se ? (e.consume(x), E) : r.interrupt ? t(x) : $(x)) : (a = 7, r.interrupt && !r.parser.lazy[r.now().line] ? n(x) : i ? P(x) : M(x));
6358
6358
  }
6359
6359
  return x === 45 || xt(x) ? (e.consume(x), u += String.fromCharCode(x), y) : n(x);
6360
6360
  }
6361
- function g(x) {
6362
- return x === 62 ? (e.consume(x), r.interrupt ? t : V) : n(x);
6361
+ function E(x) {
6362
+ return x === 62 ? (e.consume(x), r.interrupt ? t : $) : n(x);
6363
6363
  }
6364
6364
  function P(x) {
6365
6365
  return we(x) ? (e.consume(x), P) : te(x);
@@ -6374,13 +6374,13 @@ function y1(e, t, n) {
6374
6374
  return x === 61 ? (e.consume(x), _) : we(x) ? (e.consume(x), R) : M(x);
6375
6375
  }
6376
6376
  function _(x) {
6377
- return x === null || x === 60 || x === 61 || x === 62 || x === 96 ? n(x) : x === 34 || x === 39 ? (e.consume(x), l = x, N) : we(x) ? (e.consume(x), _) : $(x);
6377
+ return x === null || x === 60 || x === 61 || x === 62 || x === 96 ? n(x) : x === 34 || x === 39 ? (e.consume(x), l = x, N) : we(x) ? (e.consume(x), _) : V(x);
6378
6378
  }
6379
6379
  function N(x) {
6380
6380
  return x === l ? (e.consume(x), l = null, H) : x === null || be(x) ? n(x) : (e.consume(x), N);
6381
6381
  }
6382
- function $(x) {
6383
- return x === null || x === 34 || x === 39 || x === 47 || x === 60 || x === 61 || x === 62 || x === 96 || _t(x) ? R(x) : (e.consume(x), $);
6382
+ function V(x) {
6383
+ return x === null || x === 34 || x === 39 || x === 47 || x === 60 || x === 61 || x === 62 || x === 96 || _t(x) ? R(x) : (e.consume(x), V);
6384
6384
  }
6385
6385
  function H(x) {
6386
6386
  return x === 47 || x === 62 || we(x) ? M(x) : n(x);
@@ -6389,14 +6389,14 @@ function y1(e, t, n) {
6389
6389
  return x === 62 ? (e.consume(x), Y) : n(x);
6390
6390
  }
6391
6391
  function Y(x) {
6392
- return x === null || be(x) ? V(x) : we(x) ? (e.consume(x), Y) : n(x);
6392
+ return x === null || be(x) ? $(x) : we(x) ? (e.consume(x), Y) : n(x);
6393
6393
  }
6394
- function V(x) {
6395
- return x === 45 && a === 2 ? (e.consume(x), B) : x === 60 && a === 1 ? (e.consume(x), G) : x === 62 && a === 4 ? (e.consume(x), ne) : x === 63 && a === 3 ? (e.consume(x), E) : x === 93 && a === 5 ? (e.consume(x), q) : be(x) && (a === 6 || a === 7) ? (e.exit("htmlFlowData"), e.check(
6394
+ function $(x) {
6395
+ return x === 45 && a === 2 ? (e.consume(x), B) : x === 60 && a === 1 ? (e.consume(x), G) : x === 62 && a === 4 ? (e.consume(x), ne) : x === 63 && a === 3 ? (e.consume(x), b) : x === 93 && a === 5 ? (e.consume(x), q) : be(x) && (a === 6 || a === 7) ? (e.exit("htmlFlowData"), e.check(
6396
6396
  b1,
6397
6397
  le,
6398
6398
  L
6399
- )(x)) : x === null || be(x) ? (e.exit("htmlFlowData"), L(x)) : (e.consume(x), V);
6399
+ )(x)) : x === null || be(x) ? (e.exit("htmlFlowData"), L(x)) : (e.consume(x), $);
6400
6400
  }
6401
6401
  function L(x) {
6402
6402
  return e.check(
@@ -6409,26 +6409,26 @@ function y1(e, t, n) {
6409
6409
  return e.enter("lineEnding"), e.consume(x), e.exit("lineEnding"), w;
6410
6410
  }
6411
6411
  function w(x) {
6412
- return x === null || be(x) ? L(x) : (e.enter("htmlFlowData"), V(x));
6412
+ return x === null || be(x) ? L(x) : (e.enter("htmlFlowData"), $(x));
6413
6413
  }
6414
6414
  function B(x) {
6415
- return x === 45 ? (e.consume(x), E) : V(x);
6415
+ return x === 45 ? (e.consume(x), b) : $(x);
6416
6416
  }
6417
6417
  function G(x) {
6418
- return x === 47 ? (e.consume(x), u = "", j) : V(x);
6418
+ return x === 47 ? (e.consume(x), u = "", j) : $(x);
6419
6419
  }
6420
6420
  function j(x) {
6421
6421
  if (x === 62) {
6422
6422
  const se = u.toLowerCase();
6423
- return bo.includes(se) ? (e.consume(x), ne) : V(x);
6423
+ return bo.includes(se) ? (e.consume(x), ne) : $(x);
6424
6424
  }
6425
- return Rt(x) && u.length < 8 ? (e.consume(x), u += String.fromCharCode(x), j) : V(x);
6425
+ return Rt(x) && u.length < 8 ? (e.consume(x), u += String.fromCharCode(x), j) : $(x);
6426
6426
  }
6427
6427
  function q(x) {
6428
- return x === 93 ? (e.consume(x), E) : V(x);
6428
+ return x === 93 ? (e.consume(x), b) : $(x);
6429
6429
  }
6430
- function E(x) {
6431
- return x === 62 ? (e.consume(x), ne) : x === 45 && a === 2 ? (e.consume(x), E) : V(x);
6430
+ function b(x) {
6431
+ return x === 62 ? (e.consume(x), ne) : x === 45 && a === 2 ? (e.consume(x), b) : $(x);
6432
6432
  }
6433
6433
  function ne(x) {
6434
6434
  return x === null || be(x) ? (e.exit("htmlFlowData"), le(x)) : (e.consume(x), ne);
@@ -6461,98 +6461,98 @@ function S1(e, t, n) {
6461
6461
  const r = this;
6462
6462
  let a, i, u;
6463
6463
  return s;
6464
- function s(E) {
6465
- return e.enter("htmlText"), e.enter("htmlTextData"), e.consume(E), l;
6464
+ function s(b) {
6465
+ return e.enter("htmlText"), e.enter("htmlTextData"), e.consume(b), l;
6466
6466
  }
6467
- function l(E) {
6468
- return E === 33 ? (e.consume(E), c) : E === 47 ? (e.consume(E), R) : E === 63 ? (e.consume(E), M) : Rt(E) ? (e.consume(E), $) : n(E);
6467
+ function l(b) {
6468
+ return b === 33 ? (e.consume(b), c) : b === 47 ? (e.consume(b), R) : b === 63 ? (e.consume(b), M) : Rt(b) ? (e.consume(b), V) : n(b);
6469
6469
  }
6470
- function c(E) {
6471
- return E === 45 ? (e.consume(E), d) : E === 91 ? (e.consume(E), i = 0, b) : Rt(E) ? (e.consume(E), P) : n(E);
6470
+ function c(b) {
6471
+ return b === 45 ? (e.consume(b), d) : b === 91 ? (e.consume(b), i = 0, g) : Rt(b) ? (e.consume(b), P) : n(b);
6472
6472
  }
6473
- function d(E) {
6474
- return E === 45 ? (e.consume(E), h) : n(E);
6473
+ function d(b) {
6474
+ return b === 45 ? (e.consume(b), h) : n(b);
6475
6475
  }
6476
- function f(E) {
6477
- return E === null ? n(E) : E === 45 ? (e.consume(E), p) : be(E) ? (u = f, G(E)) : (e.consume(E), f);
6476
+ function f(b) {
6477
+ return b === null ? n(b) : b === 45 ? (e.consume(b), p) : be(b) ? (u = f, G(b)) : (e.consume(b), f);
6478
6478
  }
6479
- function p(E) {
6480
- return E === 45 ? (e.consume(E), h) : f(E);
6479
+ function p(b) {
6480
+ return b === 45 ? (e.consume(b), h) : f(b);
6481
6481
  }
6482
- function h(E) {
6483
- return E === 62 ? B(E) : E === 45 ? p(E) : f(E);
6482
+ function h(b) {
6483
+ return b === 62 ? B(b) : b === 45 ? p(b) : f(b);
6484
6484
  }
6485
- function b(E) {
6485
+ function g(b) {
6486
6486
  const ne = "CDATA[";
6487
- return E === ne.charCodeAt(i++) ? (e.consume(E), i === ne.length ? m : b) : n(E);
6487
+ return b === ne.charCodeAt(i++) ? (e.consume(b), i === ne.length ? m : g) : n(b);
6488
6488
  }
6489
- function m(E) {
6490
- return E === null ? n(E) : E === 93 ? (e.consume(E), y) : be(E) ? (u = m, G(E)) : (e.consume(E), m);
6489
+ function m(b) {
6490
+ return b === null ? n(b) : b === 93 ? (e.consume(b), y) : be(b) ? (u = m, G(b)) : (e.consume(b), m);
6491
6491
  }
6492
- function y(E) {
6493
- return E === 93 ? (e.consume(E), g) : m(E);
6492
+ function y(b) {
6493
+ return b === 93 ? (e.consume(b), E) : m(b);
6494
6494
  }
6495
- function g(E) {
6496
- return E === 62 ? B(E) : E === 93 ? (e.consume(E), g) : m(E);
6495
+ function E(b) {
6496
+ return b === 62 ? B(b) : b === 93 ? (e.consume(b), E) : m(b);
6497
6497
  }
6498
- function P(E) {
6499
- return E === null || E === 62 ? B(E) : be(E) ? (u = P, G(E)) : (e.consume(E), P);
6498
+ function P(b) {
6499
+ return b === null || b === 62 ? B(b) : be(b) ? (u = P, G(b)) : (e.consume(b), P);
6500
6500
  }
6501
- function M(E) {
6502
- return E === null ? n(E) : E === 63 ? (e.consume(E), W) : be(E) ? (u = M, G(E)) : (e.consume(E), M);
6501
+ function M(b) {
6502
+ return b === null ? n(b) : b === 63 ? (e.consume(b), W) : be(b) ? (u = M, G(b)) : (e.consume(b), M);
6503
6503
  }
6504
- function W(E) {
6505
- return E === 62 ? B(E) : M(E);
6504
+ function W(b) {
6505
+ return b === 62 ? B(b) : M(b);
6506
6506
  }
6507
- function R(E) {
6508
- return Rt(E) ? (e.consume(E), _) : n(E);
6507
+ function R(b) {
6508
+ return Rt(b) ? (e.consume(b), _) : n(b);
6509
6509
  }
6510
- function _(E) {
6511
- return E === 45 || xt(E) ? (e.consume(E), _) : N(E);
6510
+ function _(b) {
6511
+ return b === 45 || xt(b) ? (e.consume(b), _) : N(b);
6512
6512
  }
6513
- function N(E) {
6514
- return be(E) ? (u = N, G(E)) : we(E) ? (e.consume(E), N) : B(E);
6513
+ function N(b) {
6514
+ return be(b) ? (u = N, G(b)) : we(b) ? (e.consume(b), N) : B(b);
6515
6515
  }
6516
- function $(E) {
6517
- return E === 45 || xt(E) ? (e.consume(E), $) : E === 47 || E === 62 || _t(E) ? H(E) : n(E);
6516
+ function V(b) {
6517
+ return b === 45 || xt(b) ? (e.consume(b), V) : b === 47 || b === 62 || _t(b) ? H(b) : n(b);
6518
6518
  }
6519
- function H(E) {
6520
- return E === 47 ? (e.consume(E), B) : E === 58 || E === 95 || Rt(E) ? (e.consume(E), te) : be(E) ? (u = H, G(E)) : we(E) ? (e.consume(E), H) : B(E);
6519
+ function H(b) {
6520
+ return b === 47 ? (e.consume(b), B) : b === 58 || b === 95 || Rt(b) ? (e.consume(b), te) : be(b) ? (u = H, G(b)) : we(b) ? (e.consume(b), H) : B(b);
6521
6521
  }
6522
- function te(E) {
6523
- return E === 45 || E === 46 || E === 58 || E === 95 || xt(E) ? (e.consume(E), te) : Y(E);
6522
+ function te(b) {
6523
+ return b === 45 || b === 46 || b === 58 || b === 95 || xt(b) ? (e.consume(b), te) : Y(b);
6524
6524
  }
6525
- function Y(E) {
6526
- return E === 61 ? (e.consume(E), V) : be(E) ? (u = Y, G(E)) : we(E) ? (e.consume(E), Y) : H(E);
6525
+ function Y(b) {
6526
+ return b === 61 ? (e.consume(b), $) : be(b) ? (u = Y, G(b)) : we(b) ? (e.consume(b), Y) : H(b);
6527
6527
  }
6528
- function V(E) {
6529
- return E === null || E === 60 || E === 61 || E === 62 || E === 96 ? n(E) : E === 34 || E === 39 ? (e.consume(E), a = E, L) : be(E) ? (u = V, G(E)) : we(E) ? (e.consume(E), V) : (e.consume(E), I);
6528
+ function $(b) {
6529
+ return b === null || b === 60 || b === 61 || b === 62 || b === 96 ? n(b) : b === 34 || b === 39 ? (e.consume(b), a = b, L) : be(b) ? (u = $, G(b)) : we(b) ? (e.consume(b), $) : (e.consume(b), I);
6530
6530
  }
6531
- function L(E) {
6532
- return E === a ? (e.consume(E), a = void 0, w) : E === null ? n(E) : be(E) ? (u = L, G(E)) : (e.consume(E), L);
6531
+ function L(b) {
6532
+ return b === a ? (e.consume(b), a = void 0, w) : b === null ? n(b) : be(b) ? (u = L, G(b)) : (e.consume(b), L);
6533
6533
  }
6534
- function I(E) {
6535
- return E === null || E === 34 || E === 39 || E === 60 || E === 61 || E === 96 ? n(E) : E === 47 || E === 62 || _t(E) ? H(E) : (e.consume(E), I);
6534
+ function I(b) {
6535
+ return b === null || b === 34 || b === 39 || b === 60 || b === 61 || b === 96 ? n(b) : b === 47 || b === 62 || _t(b) ? H(b) : (e.consume(b), I);
6536
6536
  }
6537
- function w(E) {
6538
- return E === 47 || E === 62 || _t(E) ? H(E) : n(E);
6537
+ function w(b) {
6538
+ return b === 47 || b === 62 || _t(b) ? H(b) : n(b);
6539
6539
  }
6540
- function B(E) {
6541
- return E === 62 ? (e.consume(E), e.exit("htmlTextData"), e.exit("htmlText"), t) : n(E);
6540
+ function B(b) {
6541
+ return b === 62 ? (e.consume(b), e.exit("htmlTextData"), e.exit("htmlText"), t) : n(b);
6542
6542
  }
6543
- function G(E) {
6544
- return e.exit("htmlTextData"), e.enter("lineEnding"), e.consume(E), e.exit("lineEnding"), j;
6543
+ function G(b) {
6544
+ return e.exit("htmlTextData"), e.enter("lineEnding"), e.consume(b), e.exit("lineEnding"), j;
6545
6545
  }
6546
- function j(E) {
6547
- return we(E) ? Fe(
6546
+ function j(b) {
6547
+ return we(b) ? Fe(
6548
6548
  e,
6549
6549
  q,
6550
6550
  "linePrefix",
6551
6551
  r.parser.constructs.disable.null.includes("codeIndented") ? void 0 : 4
6552
- )(E) : q(E);
6552
+ )(b) : q(b);
6553
6553
  }
6554
- function q(E) {
6555
- return e.enter("htmlTextData"), u(E);
6554
+ function q(b) {
6555
+ return e.enter("htmlTextData"), u(b);
6556
6556
  }
6557
6557
  }
6558
6558
  const Pi = {
@@ -6822,11 +6822,11 @@ function q1(e, t, n) {
6822
6822
  let i = a && a[1].type === "linePrefix" ? a[2].sliceSerialize(a[1], !0).length : 0, u = 0;
6823
6823
  return s;
6824
6824
  function s(h) {
6825
- const b = r.containerState.type || (h === 42 || h === 43 || h === 45 ? "listUnordered" : "listOrdered");
6826
- if (b === "listUnordered" ? !r.containerState.marker || h === r.containerState.marker : di(h)) {
6827
- if (r.containerState.type || (r.containerState.type = b, e.enter(b, {
6825
+ const g = r.containerState.type || (h === 42 || h === 43 || h === 45 ? "listUnordered" : "listOrdered");
6826
+ if (g === "listUnordered" ? !r.containerState.marker || h === r.containerState.marker : di(h)) {
6827
+ if (r.containerState.type || (r.containerState.type = g, e.enter(g, {
6828
6828
  _container: !0
6829
- })), b === "listUnordered")
6829
+ })), g === "listUnordered")
6830
6830
  return e.enter("listItemPrefix"), h === 42 || h === 45 ? e.check(Mr, n, c)(h) : c(h);
6831
6831
  if (!r.interrupt || h === 49)
6832
6832
  return e.enter("listItemPrefix"), e.enter("listItemValue"), l(h);
@@ -7119,26 +7119,26 @@ function tm(e, t, n) {
7119
7119
  parser: e,
7120
7120
  sliceStream: h,
7121
7121
  sliceSerialize: p,
7122
- now: b,
7122
+ now: g,
7123
7123
  defineSkip: m,
7124
7124
  write: f
7125
7125
  };
7126
7126
  let d = t.tokenize.call(c, l);
7127
7127
  return t.resolveAll && i.push(t), c;
7128
7128
  function f(Y) {
7129
- return u = Et(u, Y), y(), u[u.length - 1] !== null ? [] : ($(t, 0), c.events = Ri(i, c.events, c), c.events);
7129
+ return u = Et(u, Y), y(), u[u.length - 1] !== null ? [] : (V(t, 0), c.events = Ri(i, c.events, c), c.events);
7130
7130
  }
7131
- function p(Y, V) {
7132
- return rm(h(Y), V);
7131
+ function p(Y, $) {
7132
+ return rm(h(Y), $);
7133
7133
  }
7134
7134
  function h(Y) {
7135
7135
  return nm(u, Y);
7136
7136
  }
7137
- function b() {
7138
- const { line: Y, column: V, offset: L, _index: I, _bufferIndex: w } = r;
7137
+ function g() {
7138
+ const { line: Y, column: $, offset: L, _index: I, _bufferIndex: w } = r;
7139
7139
  return {
7140
7140
  line: Y,
7141
- column: V,
7141
+ column: $,
7142
7142
  offset: L,
7143
7143
  _index: I,
7144
7144
  _bufferIndex: w
@@ -7150,38 +7150,38 @@ function tm(e, t, n) {
7150
7150
  function y() {
7151
7151
  let Y;
7152
7152
  for (; r._index < u.length; ) {
7153
- const V = u[r._index];
7154
- if (typeof V == "string")
7155
- for (Y = r._index, r._bufferIndex < 0 && (r._bufferIndex = 0); r._index === Y && r._bufferIndex < V.length; )
7156
- g(V.charCodeAt(r._bufferIndex));
7153
+ const $ = u[r._index];
7154
+ if (typeof $ == "string")
7155
+ for (Y = r._index, r._bufferIndex < 0 && (r._bufferIndex = 0); r._index === Y && r._bufferIndex < $.length; )
7156
+ E($.charCodeAt(r._bufferIndex));
7157
7157
  else
7158
- g(V);
7158
+ E($);
7159
7159
  }
7160
7160
  }
7161
- function g(Y) {
7161
+ function E(Y) {
7162
7162
  d = d(Y);
7163
7163
  }
7164
7164
  function P(Y) {
7165
7165
  wi(Y) ? (r.line++, r.column = 1, r.offset += Y === -3 ? 2 : 1, te()) : Y !== -1 && (r.column++, r.offset++), r._bufferIndex < 0 ? r._index++ : (r._bufferIndex++, r._bufferIndex === u[r._index].length && (r._bufferIndex = -1, r._index++)), c.previous = Y;
7166
7166
  }
7167
- function M(Y, V) {
7168
- const L = V || {};
7169
- return L.type = Y, L.start = b(), c.events.push(["enter", L, c]), s.push(L), L;
7167
+ function M(Y, $) {
7168
+ const L = $ || {};
7169
+ return L.type = Y, L.start = g(), c.events.push(["enter", L, c]), s.push(L), L;
7170
7170
  }
7171
7171
  function W(Y) {
7172
- const V = s.pop();
7173
- return V.end = b(), c.events.push(["exit", V, c]), V;
7172
+ const $ = s.pop();
7173
+ return $.end = g(), c.events.push(["exit", $, c]), $;
7174
7174
  }
7175
- function R(Y, V) {
7176
- $(Y, V.from);
7175
+ function R(Y, $) {
7176
+ V(Y, $.from);
7177
7177
  }
7178
- function _(Y, V) {
7179
- V.restore();
7178
+ function _(Y, $) {
7179
+ $.restore();
7180
7180
  }
7181
- function N(Y, V) {
7181
+ function N(Y, $) {
7182
7182
  return L;
7183
7183
  function L(I, w, B) {
7184
- let G, j, q, E;
7184
+ let G, j, q, b;
7185
7185
  return Array.isArray(I) ? le(I) : "tokenize" in I ? (
7186
7186
  // @ts-expect-error Looks like a construct.
7187
7187
  le([I])
@@ -7204,11 +7204,11 @@ function tm(e, t, n) {
7204
7204
  function x(me) {
7205
7205
  return Ae;
7206
7206
  function Ae(xe) {
7207
- return E = H(), q = me, me.partial || (c.currentConstruct = me), me.name && c.parser.constructs.disable.null.includes(me.name) ? ye() : me.tokenize.call(
7207
+ return b = H(), q = me, me.partial || (c.currentConstruct = me), me.name && c.parser.constructs.disable.null.includes(me.name) ? ye() : me.tokenize.call(
7208
7208
  // If we do have fields, create an object w/ `context` as its
7209
7209
  // prototype.
7210
7210
  // This allows a “live binding”, which is needed for `interrupt`.
7211
- V ? Object.assign(Object.create(c), V) : c,
7211
+ $ ? Object.assign(Object.create(c), $) : c,
7212
7212
  l,
7213
7213
  se,
7214
7214
  ye
@@ -7216,29 +7216,29 @@ function tm(e, t, n) {
7216
7216
  }
7217
7217
  }
7218
7218
  function se(me) {
7219
- return Y(q, E), w;
7219
+ return Y(q, b), w;
7220
7220
  }
7221
7221
  function ye(me) {
7222
- return E.restore(), ++j < G.length ? x(G[j]) : B;
7222
+ return b.restore(), ++j < G.length ? x(G[j]) : B;
7223
7223
  }
7224
7224
  }
7225
7225
  }
7226
- function $(Y, V) {
7226
+ function V(Y, $) {
7227
7227
  Y.resolveAll && !i.includes(Y) && i.push(Y), Y.resolve && Pt(
7228
7228
  c.events,
7229
- V,
7230
- c.events.length - V,
7231
- Y.resolve(c.events.slice(V), c)
7229
+ $,
7230
+ c.events.length - $,
7231
+ Y.resolve(c.events.slice($), c)
7232
7232
  ), Y.resolveTo && (c.events = Y.resolveTo(c.events, c));
7233
7233
  }
7234
7234
  function H() {
7235
- const Y = b(), V = c.previous, L = c.currentConstruct, I = c.events.length, w = Array.from(s);
7235
+ const Y = g(), $ = c.previous, L = c.currentConstruct, I = c.events.length, w = Array.from(s);
7236
7236
  return {
7237
7237
  restore: B,
7238
7238
  from: I
7239
7239
  };
7240
7240
  function B() {
7241
- r = Y, c.previous = V, c.currentConstruct = L, c.events.length = I, s = w, te();
7241
+ r = Y, c.previous = $, c.currentConstruct = L, c.events.length = I, s = w, te();
7242
7242
  }
7243
7243
  }
7244
7244
  function te() {
@@ -7507,7 +7507,7 @@ function _m(e) {
7507
7507
  label: l,
7508
7508
  link: s(Nt),
7509
7509
  listItem: s(Ht),
7510
- listItemValue: b,
7510
+ listItemValue: g,
7511
7511
  listOrdered: s(Bt, h),
7512
7512
  listUnordered: s(Bt),
7513
7513
  paragraph: s(ie),
@@ -7526,19 +7526,19 @@ function _m(e) {
7526
7526
  autolinkEmail: ve,
7527
7527
  autolinkProtocol: je,
7528
7528
  blockQuote: d(),
7529
- characterEscapeValue: V,
7529
+ characterEscapeValue: $,
7530
7530
  characterReferenceMarkerHexadecimal: Ae,
7531
7531
  characterReferenceMarkerNumeric: Ae,
7532
7532
  characterReferenceValue: xe,
7533
7533
  codeFenced: d(P),
7534
- codeFencedFence: g,
7534
+ codeFencedFence: E,
7535
7535
  codeFencedFenceInfo: m,
7536
7536
  codeFencedFenceMeta: y,
7537
- codeFlowValue: V,
7537
+ codeFlowValue: $,
7538
7538
  codeIndented: d(M),
7539
7539
  codeText: d(G),
7540
- codeTextData: V,
7541
- data: V,
7540
+ codeTextData: $,
7541
+ data: $,
7542
7542
  definition: d(),
7543
7543
  definitionDestinationString: _,
7544
7544
  definitionLabelString: W,
@@ -7547,12 +7547,12 @@ function _m(e) {
7547
7547
  hardBreakEscape: d(I),
7548
7548
  hardBreakTrailing: d(I),
7549
7549
  htmlFlow: d(w),
7550
- htmlFlowData: V,
7550
+ htmlFlowData: $,
7551
7551
  htmlText: d(B),
7552
- htmlTextData: V,
7552
+ htmlTextData: $,
7553
7553
  image: d(q),
7554
7554
  label: ne,
7555
- labelText: E,
7555
+ labelText: b,
7556
7556
  lineEnding: L,
7557
7557
  link: d(j),
7558
7558
  listItem: d(),
@@ -7565,7 +7565,7 @@ function _m(e) {
7565
7565
  resource: se,
7566
7566
  setextHeading: d(te),
7567
7567
  setextHeadingLineSequence: H,
7568
- setextHeadingText: $,
7568
+ setextHeadingText: V,
7569
7569
  strong: d(),
7570
7570
  thematicBreak: d()
7571
7571
  }
@@ -7710,7 +7710,7 @@ function _m(e) {
7710
7710
  function h() {
7711
7711
  i("expectingFirstListItemValue", !0);
7712
7712
  }
7713
- function b(F) {
7713
+ function g(F) {
7714
7714
  if (u("expectingFirstListItemValue")) {
7715
7715
  const X = this.stack[this.stack.length - 2];
7716
7716
  X.start = Number.parseInt(this.sliceSerialize(F), 10), i("expectingFirstListItemValue");
@@ -7724,7 +7724,7 @@ function _m(e) {
7724
7724
  const F = this.resume(), X = this.stack[this.stack.length - 1];
7725
7725
  X.meta = F;
7726
7726
  }
7727
- function g() {
7727
+ function E() {
7728
7728
  u("flowCodeInside") || (this.buffer(), i("flowCodeInside", !0));
7729
7729
  }
7730
7730
  function P() {
@@ -7756,7 +7756,7 @@ function _m(e) {
7756
7756
  X.depth = re;
7757
7757
  }
7758
7758
  }
7759
- function $() {
7759
+ function V() {
7760
7760
  i("setextHeadingSlurpLineEnding", !0);
7761
7761
  }
7762
7762
  function H(F) {
@@ -7773,7 +7773,7 @@ function _m(e) {
7773
7773
  start: Wt(F.start)
7774
7774
  }, X.children.push(re)), this.stack.push(re);
7775
7775
  }
7776
- function V(F) {
7776
+ function $(F) {
7777
7777
  const X = this.stack.pop();
7778
7778
  X.value += this.sliceSerialize(F), X.position.end = Wt(F.end);
7779
7779
  }
@@ -7784,7 +7784,7 @@ function _m(e) {
7784
7784
  re.position.end = Wt(F.end), i("atHardBreak");
7785
7785
  return;
7786
7786
  }
7787
- !u("setextHeadingSlurpLineEnding") && t.canContainEols.includes(X.type) && (Y.call(this, F), V.call(this, F));
7787
+ !u("setextHeadingSlurpLineEnding") && t.canContainEols.includes(X.type) && (Y.call(this, F), $.call(this, F));
7788
7788
  }
7789
7789
  function I() {
7790
7790
  i("atHardBreak", !0);
@@ -7819,7 +7819,7 @@ function _m(e) {
7819
7819
  delete F.identifier, delete F.label;
7820
7820
  i("referenceType");
7821
7821
  }
7822
- function E(F) {
7822
+ function b(F) {
7823
7823
  const X = this.sliceSerialize(F), re = this.stack[this.stack.length - 2];
7824
7824
  re.label = Em(X), re.identifier = vn(X).toLowerCase();
7825
7825
  }
@@ -7865,12 +7865,12 @@ function _m(e) {
7865
7865
  pe.value += ue, pe.position.end = Wt(F.end);
7866
7866
  }
7867
7867
  function je(F) {
7868
- V.call(this, F);
7868
+ $.call(this, F);
7869
7869
  const X = this.stack[this.stack.length - 1];
7870
7870
  X.url = this.sliceSerialize(F);
7871
7871
  }
7872
7872
  function ve(F) {
7873
- V.call(this, F);
7873
+ $.call(this, F);
7874
7874
  const X = this.stack[this.stack.length - 1];
7875
7875
  X.url = "mailto:" + this.sliceSerialize(F);
7876
7876
  }
@@ -8367,8 +8367,8 @@ function Vm(e, t, n) {
8367
8367
  for (; ++l < s; ) {
8368
8368
  const f = t.children[l], p = {}, h = u ? u[l] : void 0;
8369
8369
  h && (p.align = h);
8370
- let b = { type: "element", tagName: i, properties: p, children: [] };
8371
- f && (b.children = e.all(f), e.patch(f, b), b = e.applyData(t, b)), c.push(b);
8370
+ let g = { type: "element", tagName: i, properties: p, children: [] };
8371
+ f && (g.children = e.all(f), e.patch(f, g), g = e.applyData(t, g)), c.push(g);
8372
8372
  }
8373
8373
  const d = {
8374
8374
  type: "element",
@@ -8554,14 +8554,14 @@ const n2 = !0, xo = !1, r2 = "skip", a2 = (
8554
8554
  }
8555
8555
  return f;
8556
8556
  function f() {
8557
- let p = [], h, b, m;
8557
+ let p = [], h, g, m;
8558
8558
  if ((!t || a(s, l, c[c.length - 1] || null)) && (p = i2(n(s, c)), p[0] === xo))
8559
8559
  return p;
8560
8560
  if (s.children && p[0] !== r2)
8561
- for (b = (r ? s.children.length : -1) + i, m = c.concat(s); b > -1 && b < s.children.length; ) {
8562
- if (h = u(s.children[b], b, m)(), h[0] === xo)
8561
+ for (g = (r ? s.children.length : -1) + i, m = c.concat(s); g > -1 && g < s.children.length; ) {
8562
+ if (h = u(s.children[g], g, m)(), h[0] === xo)
8563
8563
  return h;
8564
- b = typeof h[1] == "number" ? h[1] : b + i;
8564
+ g = typeof h[1] == "number" ? h[1] : g + i;
8565
8565
  }
8566
8566
  return p;
8567
8567
  }
@@ -9989,12 +9989,12 @@ var Lo;
9989
9989
  function v2() {
9990
9990
  if (Lo) return Ce;
9991
9991
  Lo = 1;
9992
- var e = Symbol.for("react.element"), t = Symbol.for("react.portal"), n = Symbol.for("react.fragment"), r = Symbol.for("react.strict_mode"), a = Symbol.for("react.profiler"), i = Symbol.for("react.provider"), u = Symbol.for("react.context"), s = Symbol.for("react.server_context"), l = Symbol.for("react.forward_ref"), c = Symbol.for("react.suspense"), d = Symbol.for("react.suspense_list"), f = Symbol.for("react.memo"), p = Symbol.for("react.lazy"), h = Symbol.for("react.offscreen"), b;
9993
- b = Symbol.for("react.module.reference");
9992
+ var e = Symbol.for("react.element"), t = Symbol.for("react.portal"), n = Symbol.for("react.fragment"), r = Symbol.for("react.strict_mode"), a = Symbol.for("react.profiler"), i = Symbol.for("react.provider"), u = Symbol.for("react.context"), s = Symbol.for("react.server_context"), l = Symbol.for("react.forward_ref"), c = Symbol.for("react.suspense"), d = Symbol.for("react.suspense_list"), f = Symbol.for("react.memo"), p = Symbol.for("react.lazy"), h = Symbol.for("react.offscreen"), g;
9993
+ g = Symbol.for("react.module.reference");
9994
9994
  function m(y) {
9995
9995
  if (typeof y == "object" && y !== null) {
9996
- var g = y.$$typeof;
9997
- switch (g) {
9996
+ var E = y.$$typeof;
9997
+ switch (E) {
9998
9998
  case e:
9999
9999
  switch (y = y.type, y) {
10000
10000
  case n:
@@ -10013,11 +10013,11 @@ function v2() {
10013
10013
  case i:
10014
10014
  return y;
10015
10015
  default:
10016
- return g;
10016
+ return E;
10017
10017
  }
10018
10018
  }
10019
10019
  case t:
10020
- return g;
10020
+ return E;
10021
10021
  }
10022
10022
  }
10023
10023
  }
@@ -10050,7 +10050,7 @@ function v2() {
10050
10050
  }, Ce.isSuspenseList = function(y) {
10051
10051
  return m(y) === d;
10052
10052
  }, Ce.isValidElementType = function(y) {
10053
- return typeof y == "string" || typeof y == "function" || y === n || y === a || y === r || y === c || y === d || y === h || typeof y == "object" && y !== null && (y.$$typeof === p || y.$$typeof === f || y.$$typeof === i || y.$$typeof === u || y.$$typeof === l || y.$$typeof === b || y.getModuleId !== void 0);
10053
+ return typeof y == "string" || typeof y == "function" || y === n || y === a || y === r || y === c || y === d || y === h || typeof y == "object" && y !== null && (y.$$typeof === p || y.$$typeof === f || y.$$typeof === i || y.$$typeof === u || y.$$typeof === l || y.$$typeof === g || y.getModuleId !== void 0);
10054
10054
  }, Ce.typeOf = m, Ce;
10055
10055
  }
10056
10056
  var wo;
@@ -10103,28 +10103,28 @@ function L2() {
10103
10103
  throw new TypeError("First argument must be a string");
10104
10104
  if (!m) return [];
10105
10105
  y = y || {};
10106
- var g = 1, P = 1;
10106
+ var E = 1, P = 1;
10107
10107
  function M(L) {
10108
10108
  var I = L.match(t);
10109
- I && (g += I.length);
10109
+ I && (E += I.length);
10110
10110
  var w = L.lastIndexOf(l);
10111
10111
  P = ~w ? L.length - w : P + L.length;
10112
10112
  }
10113
10113
  function W() {
10114
- var L = { line: g, column: P };
10114
+ var L = { line: E, column: P };
10115
10115
  return function(I) {
10116
- return I.position = new R(L), $(), I;
10116
+ return I.position = new R(L), V(), I;
10117
10117
  };
10118
10118
  }
10119
10119
  function R(L) {
10120
- this.start = L, this.end = { line: g, column: P }, this.source = y.source;
10120
+ this.start = L, this.end = { line: E, column: P }, this.source = y.source;
10121
10121
  }
10122
10122
  R.prototype.content = m;
10123
10123
  function _(L) {
10124
10124
  var I = new Error(
10125
- y.source + ":" + g + ":" + P + ": " + L
10125
+ y.source + ":" + E + ":" + P + ": " + L
10126
10126
  );
10127
- if (I.reason = L, I.filename = y.source, I.line = g, I.column = P, I.source = m, !y.silent) throw I;
10127
+ if (I.reason = L, I.filename = y.source, I.line = E, I.column = P, I.source = m, !y.silent) throw I;
10128
10128
  }
10129
10129
  function N(L) {
10130
10130
  var I = L.exec(m);
@@ -10133,7 +10133,7 @@ function L2() {
10133
10133
  return M(w), m = m.slice(w.length), I;
10134
10134
  }
10135
10135
  }
10136
- function $() {
10136
+ function V() {
10137
10137
  N(n);
10138
10138
  }
10139
10139
  function H(L) {
@@ -10162,22 +10162,22 @@ function L2() {
10162
10162
  if (te(), !N(a)) return _("property missing ':'");
10163
10163
  var w = N(i), B = L({
10164
10164
  type: h,
10165
- property: b(I[0].replace(e, f)),
10166
- value: w ? b(w[0].replace(e, f)) : f
10165
+ property: g(I[0].replace(e, f)),
10166
+ value: w ? g(w[0].replace(e, f)) : f
10167
10167
  });
10168
10168
  return N(u), B;
10169
10169
  }
10170
10170
  }
10171
- function V() {
10171
+ function $() {
10172
10172
  var L = [];
10173
10173
  H(L);
10174
10174
  for (var I; I = Y(); )
10175
10175
  I !== !1 && (L.push(I), H(L));
10176
10176
  return L;
10177
10177
  }
10178
- return $(), V();
10178
+ return V(), $();
10179
10179
  };
10180
- function b(m) {
10180
+ function g(m) {
10181
10181
  return m ? m.replace(s, f) : f;
10182
10182
  }
10183
10183
  return Ha;
@@ -10218,7 +10218,7 @@ function M2(e, t, n, r) {
10218
10218
  const p = t.position || {
10219
10219
  start: { line: null, column: null, offset: null },
10220
10220
  end: { line: null, column: null, offset: null }
10221
- }, h = a.components && pi.call(a.components, s) ? a.components[s] : s, b = typeof h == "string" || h === yt.Fragment;
10221
+ }, h = a.components && pi.call(a.components, s) ? a.components[s] : s, g = typeof h == "string" || h === yt.Fragment;
10222
10222
  if (!N2.isValidElementType(h))
10223
10223
  throw new TypeError(
10224
10224
  `Component for name \`${s}\` not defined or is not renderable`
@@ -10231,15 +10231,15 @@ function M2(e, t, n, r) {
10231
10231
  String(l.href || ""),
10232
10232
  t.children,
10233
10233
  typeof l.title == "string" ? l.title : null
10234
- )), !b && s === "code" && r.type === "element" && r.tagName !== "pre" && (l.inline = !0), !b && (s === "h1" || s === "h2" || s === "h3" || s === "h4" || s === "h5" || s === "h6") && (l.level = Number.parseInt(s.charAt(1), 10)), s === "img" && a.transformImageUri && (l.src = a.transformImageUri(
10234
+ )), !g && s === "code" && r.type === "element" && r.tagName !== "pre" && (l.inline = !0), !g && (s === "h1" || s === "h2" || s === "h3" || s === "h4" || s === "h5" || s === "h6") && (l.level = Number.parseInt(s.charAt(1), 10)), s === "img" && a.transformImageUri && (l.src = a.transformImageUri(
10235
10235
  String(l.src || ""),
10236
10236
  String(l.alt || ""),
10237
10237
  typeof l.title == "string" ? l.title : null
10238
- )), !b && s === "li" && r.type === "element") {
10238
+ )), !g && s === "li" && r.type === "element") {
10239
10239
  const m = F2(t);
10240
10240
  l.checked = m && m.properties ? !!m.properties.checked : null, l.index = Ua(r, t), l.ordered = r.tagName === "ol";
10241
10241
  }
10242
- return !b && (s === "ol" || s === "ul") && (l.ordered = s === "ol", l.depth = e.listDepth), (s === "td" || s === "th") && (l.align && (l.style || (l.style = {}), l.style.textAlign = l.align, delete l.align), b || (l.isHeader = s === "th")), !b && s === "tr" && r.type === "element" && (l.isHeader = r.tagName === "thead"), a.sourcePos && (l["data-sourcepos"] = j2(p)), !b && a.rawSourcePos && (l.sourcePosition = t.position), !b && a.includeElementIndex && (l.index = Ua(r, t), l.siblingCount = Ua(r)), b || (l.node = t), f.length > 0 ? yt.createElement(h, l, f) : yt.createElement(h, l);
10242
+ return !g && (s === "ol" || s === "ul") && (l.ordered = s === "ol", l.depth = e.listDepth), (s === "td" || s === "th") && (l.align && (l.style || (l.style = {}), l.style.textAlign = l.align, delete l.align), g || (l.isHeader = s === "th")), !g && s === "tr" && r.type === "element" && (l.isHeader = r.tagName === "thead"), a.sourcePos && (l["data-sourcepos"] = j2(p)), !g && a.rawSourcePos && (l.sourcePosition = t.position), !g && a.includeElementIndex && (l.index = Ua(r, t), l.siblingCount = Ua(r)), g || (l.node = t), f.length > 0 ? yt.createElement(h, l, f) : yt.createElement(h, l);
10243
10243
  }
10244
10244
  function F2(e) {
10245
10245
  let t = -1;
@@ -13532,42 +13532,42 @@ function qg(e) {
13532
13532
  var t;
13533
13533
  return e >= 55296 && e <= 57343 || e > 1114111 ? 65533 : (t = jg.get(e)) !== null && t !== void 0 ? t : e;
13534
13534
  }
13535
- var Ze;
13535
+ var Qe;
13536
13536
  (function(e) {
13537
13537
  e[e.NUM = 35] = "NUM", e[e.SEMI = 59] = "SEMI", e[e.EQUALS = 61] = "EQUALS", e[e.ZERO = 48] = "ZERO", e[e.NINE = 57] = "NINE", e[e.LOWER_A = 97] = "LOWER_A", e[e.LOWER_F = 102] = "LOWER_F", e[e.LOWER_X = 120] = "LOWER_X", e[e.LOWER_Z = 122] = "LOWER_Z", e[e.UPPER_A = 65] = "UPPER_A", e[e.UPPER_F = 70] = "UPPER_F", e[e.UPPER_Z = 90] = "UPPER_Z";
13538
- })(Ze || (Ze = {}));
13538
+ })(Qe || (Qe = {}));
13539
13539
  const zg = 32;
13540
13540
  var Qt;
13541
13541
  (function(e) {
13542
13542
  e[e.VALUE_LENGTH = 49152] = "VALUE_LENGTH", e[e.BRANCH_LENGTH = 16256] = "BRANCH_LENGTH", e[e.JUMP_TABLE = 127] = "JUMP_TABLE";
13543
13543
  })(Qt || (Qt = {}));
13544
13544
  function _i(e) {
13545
- return e >= Ze.ZERO && e <= Ze.NINE;
13545
+ return e >= Qe.ZERO && e <= Qe.NINE;
13546
13546
  }
13547
13547
  function Yg(e) {
13548
- return e >= Ze.UPPER_A && e <= Ze.UPPER_F || e >= Ze.LOWER_A && e <= Ze.LOWER_F;
13548
+ return e >= Qe.UPPER_A && e <= Qe.UPPER_F || e >= Qe.LOWER_A && e <= Qe.LOWER_F;
13549
13549
  }
13550
13550
  function $g(e) {
13551
- return e >= Ze.UPPER_A && e <= Ze.UPPER_Z || e >= Ze.LOWER_A && e <= Ze.LOWER_Z || _i(e);
13551
+ return e >= Qe.UPPER_A && e <= Qe.UPPER_Z || e >= Qe.LOWER_A && e <= Qe.LOWER_Z || _i(e);
13552
13552
  }
13553
13553
  function Vg(e) {
13554
- return e === Ze.EQUALS || $g(e);
13554
+ return e === Qe.EQUALS || $g(e);
13555
13555
  }
13556
- var Qe;
13556
+ var Ke;
13557
13557
  (function(e) {
13558
13558
  e[e.EntityStart = 0] = "EntityStart", e[e.NumericStart = 1] = "NumericStart", e[e.NumericDecimal = 2] = "NumericDecimal", e[e.NumericHex = 3] = "NumericHex", e[e.NamedEntity = 4] = "NamedEntity";
13559
- })(Qe || (Qe = {}));
13559
+ })(Ke || (Ke = {}));
13560
13560
  var Yt;
13561
13561
  (function(e) {
13562
13562
  e[e.Legacy = 0] = "Legacy", e[e.Strict = 1] = "Strict", e[e.Attribute = 2] = "Attribute";
13563
13563
  })(Yt || (Yt = {}));
13564
13564
  class Wg {
13565
13565
  constructor(t, n, r) {
13566
- this.decodeTree = t, this.emitCodePoint = n, this.errors = r, this.state = Qe.EntityStart, this.consumed = 1, this.result = 0, this.treeIndex = 0, this.excess = 1, this.decodeMode = Yt.Strict;
13566
+ this.decodeTree = t, this.emitCodePoint = n, this.errors = r, this.state = Ke.EntityStart, this.consumed = 1, this.result = 0, this.treeIndex = 0, this.excess = 1, this.decodeMode = Yt.Strict;
13567
13567
  }
13568
13568
  /** Resets the instance to make it reusable. */
13569
13569
  startEntity(t) {
13570
- this.decodeMode = t, this.state = Qe.EntityStart, this.result = 0, this.treeIndex = 0, this.excess = 1, this.consumed = 1;
13570
+ this.decodeMode = t, this.state = Ke.EntityStart, this.result = 0, this.treeIndex = 0, this.excess = 1, this.consumed = 1;
13571
13571
  }
13572
13572
  /**
13573
13573
  * Write an entity to the decoder. This can be called multiple times with partial entities.
@@ -13582,15 +13582,15 @@ class Wg {
13582
13582
  */
13583
13583
  write(t, n) {
13584
13584
  switch (this.state) {
13585
- case Qe.EntityStart:
13586
- return t.charCodeAt(n) === Ze.NUM ? (this.state = Qe.NumericStart, this.consumed += 1, this.stateNumericStart(t, n + 1)) : (this.state = Qe.NamedEntity, this.stateNamedEntity(t, n));
13587
- case Qe.NumericStart:
13585
+ case Ke.EntityStart:
13586
+ return t.charCodeAt(n) === Qe.NUM ? (this.state = Ke.NumericStart, this.consumed += 1, this.stateNumericStart(t, n + 1)) : (this.state = Ke.NamedEntity, this.stateNamedEntity(t, n));
13587
+ case Ke.NumericStart:
13588
13588
  return this.stateNumericStart(t, n);
13589
- case Qe.NumericDecimal:
13589
+ case Ke.NumericDecimal:
13590
13590
  return this.stateNumericDecimal(t, n);
13591
- case Qe.NumericHex:
13591
+ case Ke.NumericHex:
13592
13592
  return this.stateNumericHex(t, n);
13593
- case Qe.NamedEntity:
13593
+ case Ke.NamedEntity:
13594
13594
  return this.stateNamedEntity(t, n);
13595
13595
  }
13596
13596
  }
@@ -13604,7 +13604,7 @@ class Wg {
13604
13604
  * @returns The number of characters that were consumed, or -1 if the entity is incomplete.
13605
13605
  */
13606
13606
  stateNumericStart(t, n) {
13607
- return n >= t.length ? -1 : (t.charCodeAt(n) | zg) === Ze.LOWER_X ? (this.state = Qe.NumericHex, this.consumed += 1, this.stateNumericHex(t, n + 1)) : (this.state = Qe.NumericDecimal, this.stateNumericDecimal(t, n));
13607
+ return n >= t.length ? -1 : (t.charCodeAt(n) | zg) === Qe.LOWER_X ? (this.state = Ke.NumericHex, this.consumed += 1, this.stateNumericHex(t, n + 1)) : (this.state = Ke.NumericDecimal, this.stateNumericDecimal(t, n));
13608
13608
  }
13609
13609
  addToNumericResult(t, n, r, a) {
13610
13610
  if (n !== r) {
@@ -13669,11 +13669,11 @@ class Wg {
13669
13669
  var r;
13670
13670
  if (this.consumed <= n)
13671
13671
  return (r = this.errors) === null || r === void 0 || r.absenceOfDigitsInNumericCharacterReference(this.consumed), 0;
13672
- if (t === Ze.SEMI)
13672
+ if (t === Qe.SEMI)
13673
13673
  this.consumed += 1;
13674
13674
  else if (this.decodeMode === Yt.Strict)
13675
13675
  return 0;
13676
- return this.emitCodePoint(qg(this.result), this.consumed), this.errors && (t !== Ze.SEMI && this.errors.missingSemicolonAfterCharacterReference(), this.errors.validateNumericCharacterReference(this.result)), this.consumed;
13676
+ return this.emitCodePoint(qg(this.result), this.consumed), this.errors && (t !== Qe.SEMI && this.errors.missingSemicolonAfterCharacterReference(), this.errors.validateNumericCharacterReference(this.result)), this.consumed;
13677
13677
  }
13678
13678
  /**
13679
13679
  * Parses a named entity.
@@ -13695,7 +13695,7 @@ class Wg {
13695
13695
  (i === 0 || // And there should be no invalid characters.
13696
13696
  Vg(u)) ? 0 : this.emitNotTerminatedNamedEntity();
13697
13697
  if (a = r[this.treeIndex], i = (a & Qt.VALUE_LENGTH) >> 14, i !== 0) {
13698
- if (u === Ze.SEMI)
13698
+ if (u === Qe.SEMI)
13699
13699
  return this.emitNamedEntityData(this.treeIndex, i, this.consumed + this.excess);
13700
13700
  this.decodeMode !== Yt.Strict && (this.result = this.treeIndex, this.consumed += this.excess, this.excess = 0);
13701
13701
  }
@@ -13735,16 +13735,16 @@ class Wg {
13735
13735
  end() {
13736
13736
  var t;
13737
13737
  switch (this.state) {
13738
- case Qe.NamedEntity:
13738
+ case Ke.NamedEntity:
13739
13739
  return this.result !== 0 && (this.decodeMode !== Yt.Attribute || this.result === this.treeIndex) ? this.emitNotTerminatedNamedEntity() : 0;
13740
13740
  // Otherwise, emit a numeric entity if we have one.
13741
- case Qe.NumericDecimal:
13741
+ case Ke.NumericDecimal:
13742
13742
  return this.emitNumericEntity(0, 2);
13743
- case Qe.NumericHex:
13743
+ case Ke.NumericHex:
13744
13744
  return this.emitNumericEntity(0, 3);
13745
- case Qe.NumericStart:
13745
+ case Ke.NumericStart:
13746
13746
  return (t = this.errors) === null || t === void 0 || t.absenceOfDigitsInNumericCharacterReference(this.consumed), 0;
13747
- case Qe.EntityStart:
13747
+ case Ke.EntityStart:
13748
13748
  return 0;
13749
13749
  }
13750
13750
  }
@@ -19083,20 +19083,20 @@ function gT(e, t, n, r) {
19083
19083
  }
19084
19084
  return p;
19085
19085
  function p() {
19086
- let h = Jc, b, m, y;
19086
+ let h = Jc, g, m, y;
19087
19087
  if ((!t || i(l, c, d[d.length - 1] || void 0)) && (h = bT(n(l, d)), h[0] === ls))
19088
19088
  return h;
19089
19089
  if ("children" in l && l.children) {
19090
- const g = (
19090
+ const E = (
19091
19091
  /** @type {UnistParent} */
19092
19092
  l
19093
19093
  );
19094
- if (g.children && h[0] !== mT)
19095
- for (m = (r ? g.children.length : -1) + u, y = d.concat(g); m > -1 && m < g.children.length; ) {
19096
- const P = g.children[m];
19097
- if (b = s(P, m, y)(), b[0] === ls)
19098
- return b;
19099
- m = typeof b[1] == "number" ? b[1] : m + u;
19094
+ if (E.children && h[0] !== mT)
19095
+ for (m = (r ? E.children.length : -1) + u, y = d.concat(E); m > -1 && m < E.children.length; ) {
19096
+ const P = E.children[m];
19097
+ if (g = s(P, m, y)(), g[0] === ls)
19098
+ return g;
19099
+ m = typeof g[1] == "number" ? g[1] : m + u;
19100
19100
  }
19101
19101
  }
19102
19102
  return h;
@@ -19327,7 +19327,7 @@ function DT() {
19327
19327
  (function(n, r) {
19328
19328
  e.exports = r();
19329
19329
  })(RT, function() {
19330
- var n = 1e3, r = 6e4, a = 36e5, i = "millisecond", u = "second", s = "minute", l = "hour", c = "day", d = "week", f = "month", p = "quarter", h = "year", b = "date", m = "Invalid Date", y = /^(\d{4})[-/]?(\d{1,2})?[-/]?(\d{0,2})[Tt\s]*(\d{1,2})?:?(\d{1,2})?:?(\d{1,2})?[.:]?(\d+)?$/, g = /\[([^\]]+)]|Y{1,4}|M{1,4}|D{1,2}|d{1,4}|H{1,2}|h{1,2}|a|A|m{1,2}|s{1,2}|Z{1,2}|SSS/g, P = { name: "en", weekdays: "Sunday_Monday_Tuesday_Wednesday_Thursday_Friday_Saturday".split("_"), months: "January_February_March_April_May_June_July_August_September_October_November_December".split("_"), ordinal: function(I) {
19330
+ var n = 1e3, r = 6e4, a = 36e5, i = "millisecond", u = "second", s = "minute", l = "hour", c = "day", d = "week", f = "month", p = "quarter", h = "year", g = "date", m = "Invalid Date", y = /^(\d{4})[-/]?(\d{1,2})?[-/]?(\d{0,2})[Tt\s]*(\d{1,2})?:?(\d{1,2})?:?(\d{1,2})?[.:]?(\d+)?$/, E = /\[([^\]]+)]|Y{1,4}|M{1,4}|D{1,2}|d{1,4}|H{1,2}|h{1,2}|a|A|m{1,2}|s{1,2}|Z{1,2}|SSS/g, P = { name: "en", weekdays: "Sunday_Monday_Tuesday_Wednesday_Thursday_Friday_Saturday".split("_"), months: "January_February_March_April_May_June_July_August_September_October_November_December".split("_"), ordinal: function(I) {
19331
19331
  var w = ["th", "st", "nd", "rd"], B = I % 100;
19332
19332
  return "[" + I + (w[(B - 20) % 10] || w[B] || w[0]) + "]";
19333
19333
  } }, M = function(I, w, B) {
@@ -19338,40 +19338,40 @@ function DT() {
19338
19338
  return (w <= 0 ? "+" : "-") + M(G, 2, "0") + ":" + M(j, 2, "0");
19339
19339
  }, m: function I(w, B) {
19340
19340
  if (w.date() < B.date()) return -I(B, w);
19341
- var G = 12 * (B.year() - w.year()) + (B.month() - w.month()), j = w.clone().add(G, f), q = B - j < 0, E = w.clone().add(G + (q ? -1 : 1), f);
19342
- return +(-(G + (B - j) / (q ? j - E : E - j)) || 0);
19341
+ var G = 12 * (B.year() - w.year()) + (B.month() - w.month()), j = w.clone().add(G, f), q = B - j < 0, b = w.clone().add(G + (q ? -1 : 1), f);
19342
+ return +(-(G + (B - j) / (q ? j - b : b - j)) || 0);
19343
19343
  }, a: function(I) {
19344
19344
  return I < 0 ? Math.ceil(I) || 0 : Math.floor(I);
19345
19345
  }, p: function(I) {
19346
- return { M: f, y: h, w: d, d: c, D: b, h: l, m: s, s: u, ms: i, Q: p }[I] || String(I || "").toLowerCase().replace(/s$/, "");
19346
+ return { M: f, y: h, w: d, d: c, D: g, h: l, m: s, s: u, ms: i, Q: p }[I] || String(I || "").toLowerCase().replace(/s$/, "");
19347
19347
  }, u: function(I) {
19348
19348
  return I === void 0;
19349
19349
  } }, R = "en", _ = {};
19350
19350
  _[R] = P;
19351
- var N = "$isDayjsObject", $ = function(I) {
19352
- return I instanceof V || !(!I || !I[N]);
19351
+ var N = "$isDayjsObject", V = function(I) {
19352
+ return I instanceof $ || !(!I || !I[N]);
19353
19353
  }, H = function I(w, B, G) {
19354
19354
  var j;
19355
19355
  if (!w) return R;
19356
19356
  if (typeof w == "string") {
19357
19357
  var q = w.toLowerCase();
19358
19358
  _[q] && (j = q), B && (_[q] = B, j = q);
19359
- var E = w.split("-");
19360
- if (!j && E.length > 1) return I(E[0]);
19359
+ var b = w.split("-");
19360
+ if (!j && b.length > 1) return I(b[0]);
19361
19361
  } else {
19362
19362
  var ne = w.name;
19363
19363
  _[ne] = w, j = ne;
19364
19364
  }
19365
19365
  return !G && j && (R = j), j || !G && R;
19366
19366
  }, te = function(I, w) {
19367
- if ($(I)) return I.clone();
19367
+ if (V(I)) return I.clone();
19368
19368
  var B = typeof w == "object" ? w : {};
19369
- return B.date = I, B.args = arguments, new V(B);
19369
+ return B.date = I, B.args = arguments, new $(B);
19370
19370
  }, Y = W;
19371
- Y.l = H, Y.i = $, Y.w = function(I, w) {
19371
+ Y.l = H, Y.i = V, Y.w = function(I, w) {
19372
19372
  return te(I, { locale: w.$L, utc: w.$u, x: w.$x, $offset: w.$offset });
19373
19373
  };
19374
- var V = function() {
19374
+ var $ = function() {
19375
19375
  function I(B) {
19376
19376
  this.$L = H(B.locale, null, !0), this.parse(B), this.$x = this.$x || B.x || {}, this[N] = !0;
19377
19377
  }
@@ -19383,10 +19383,10 @@ function DT() {
19383
19383
  if (Y.u(j)) return /* @__PURE__ */ new Date();
19384
19384
  if (j instanceof Date) return new Date(j);
19385
19385
  if (typeof j == "string" && !/Z$/i.test(j)) {
19386
- var E = j.match(y);
19387
- if (E) {
19388
- var ne = E[2] - 1 || 0, le = (E[7] || "0").substring(0, 3);
19389
- return q ? new Date(Date.UTC(E[1], ne, E[3] || 1, E[4] || 0, E[5] || 0, E[6] || 0, le)) : new Date(E[1], ne, E[3] || 1, E[4] || 0, E[5] || 0, E[6] || 0, le);
19386
+ var b = j.match(y);
19387
+ if (b) {
19388
+ var ne = b[2] - 1 || 0, le = (b[7] || "0").substring(0, 3);
19389
+ return q ? new Date(Date.UTC(b[1], ne, b[3] || 1, b[4] || 0, b[5] || 0, b[6] || 0, le)) : new Date(b[1], ne, b[3] || 1, b[4] || 0, b[5] || 0, b[6] || 0, le);
19390
19390
  }
19391
19391
  }
19392
19392
  return new Date(j);
@@ -19412,13 +19412,13 @@ function DT() {
19412
19412
  }, w.valueOf = function() {
19413
19413
  return this.$d.getTime();
19414
19414
  }, w.startOf = function(B, G) {
19415
- var j = this, q = !!Y.u(G) || G, E = Y.p(B), ne = function(je, ve) {
19415
+ var j = this, q = !!Y.u(G) || G, b = Y.p(B), ne = function(je, ve) {
19416
19416
  var Je = Y.w(j.$u ? Date.UTC(j.$y, ve, je) : new Date(j.$y, ve, je), j);
19417
19417
  return q ? Je : Je.endOf(c);
19418
19418
  }, le = function(je, ve) {
19419
19419
  return Y.w(j.toDate()[je].apply(j.toDate("s"), (q ? [0, 0, 0, 0] : [23, 59, 59, 999]).slice(ve)), j);
19420
19420
  }, x = this.$W, se = this.$M, ye = this.$D, me = "set" + (this.$u ? "UTC" : "");
19421
- switch (E) {
19421
+ switch (b) {
19422
19422
  case h:
19423
19423
  return q ? ne(1, 0) : ne(31, 11);
19424
19424
  case f:
@@ -19427,7 +19427,7 @@ function DT() {
19427
19427
  var Ae = this.$locale().weekStart || 0, xe = (x < Ae ? x + 7 : x) - Ae;
19428
19428
  return ne(q ? ye - xe : ye + (6 - xe), se);
19429
19429
  case c:
19430
- case b:
19430
+ case g:
19431
19431
  return le(me + "Hours", 0);
19432
19432
  case l:
19433
19433
  return le(me + "Minutes", 1);
@@ -19441,10 +19441,10 @@ function DT() {
19441
19441
  }, w.endOf = function(B) {
19442
19442
  return this.startOf(B, !1);
19443
19443
  }, w.$set = function(B, G) {
19444
- var j, q = Y.p(B), E = "set" + (this.$u ? "UTC" : ""), ne = (j = {}, j[c] = E + "Date", j[b] = E + "Date", j[f] = E + "Month", j[h] = E + "FullYear", j[l] = E + "Hours", j[s] = E + "Minutes", j[u] = E + "Seconds", j[i] = E + "Milliseconds", j)[q], le = q === c ? this.$D + (G - this.$W) : G;
19444
+ var j, q = Y.p(B), b = "set" + (this.$u ? "UTC" : ""), ne = (j = {}, j[c] = b + "Date", j[g] = b + "Date", j[f] = b + "Month", j[h] = b + "FullYear", j[l] = b + "Hours", j[s] = b + "Minutes", j[u] = b + "Seconds", j[i] = b + "Milliseconds", j)[q], le = q === c ? this.$D + (G - this.$W) : G;
19445
19445
  if (q === f || q === h) {
19446
- var x = this.clone().set(b, 1);
19447
- x.$d[ne](le), x.init(), this.$d = x.set(b, Math.min(this.$D, x.daysInMonth())).$d;
19446
+ var x = this.clone().set(g, 1);
19447
+ x.$d[ne](le), x.init(), this.$d = x.set(g, Math.min(this.$D, x.daysInMonth())).$d;
19448
19448
  } else ne && this.$d[ne](le);
19449
19449
  return this.init(), this;
19450
19450
  }, w.set = function(B, G) {
@@ -19454,22 +19454,22 @@ function DT() {
19454
19454
  }, w.add = function(B, G) {
19455
19455
  var j, q = this;
19456
19456
  B = Number(B);
19457
- var E = Y.p(G), ne = function(se) {
19457
+ var b = Y.p(G), ne = function(se) {
19458
19458
  var ye = te(q);
19459
19459
  return Y.w(ye.date(ye.date() + Math.round(se * B)), q);
19460
19460
  };
19461
- if (E === f) return this.set(f, this.$M + B);
19462
- if (E === h) return this.set(h, this.$y + B);
19463
- if (E === c) return ne(1);
19464
- if (E === d) return ne(7);
19465
- var le = (j = {}, j[s] = r, j[l] = a, j[u] = n, j)[E] || 1, x = this.$d.getTime() + B * le;
19461
+ if (b === f) return this.set(f, this.$M + B);
19462
+ if (b === h) return this.set(h, this.$y + B);
19463
+ if (b === c) return ne(1);
19464
+ if (b === d) return ne(7);
19465
+ var le = (j = {}, j[s] = r, j[l] = a, j[u] = n, j)[b] || 1, x = this.$d.getTime() + B * le;
19466
19466
  return Y.w(x, this);
19467
19467
  }, w.subtract = function(B, G) {
19468
19468
  return this.add(-1 * B, G);
19469
19469
  }, w.format = function(B) {
19470
19470
  var G = this, j = this.$locale();
19471
19471
  if (!this.isValid()) return j.invalidDate || m;
19472
- var q = B || "YYYY-MM-DDTHH:mm:ssZ", E = Y.z(this), ne = this.$H, le = this.$m, x = this.$M, se = j.weekdays, ye = j.months, me = j.meridiem, Ae = function(ve, Je, ft, It) {
19472
+ var q = B || "YYYY-MM-DDTHH:mm:ssZ", b = Y.z(this), ne = this.$H, le = this.$m, x = this.$M, se = j.weekdays, ye = j.months, me = j.meridiem, Ae = function(ve, Je, ft, It) {
19473
19473
  return ve && (ve[Je] || ve(G, q)) || ft[Je].slice(0, It);
19474
19474
  }, xe = function(ve) {
19475
19475
  return Y.s(ne % 12 || 12, ve, "0");
@@ -19477,7 +19477,7 @@ function DT() {
19477
19477
  var It = ve < 12 ? "AM" : "PM";
19478
19478
  return ft ? It.toLowerCase() : It;
19479
19479
  };
19480
- return q.replace(g, function(ve, Je) {
19480
+ return q.replace(E, function(ve, Je) {
19481
19481
  return Je || function(ft) {
19482
19482
  switch (ft) {
19483
19483
  case "YY":
@@ -19527,16 +19527,16 @@ function DT() {
19527
19527
  case "SSS":
19528
19528
  return Y.s(G.$ms, 3, "0");
19529
19529
  case "Z":
19530
- return E;
19530
+ return b;
19531
19531
  }
19532
19532
  return null;
19533
- }(ve) || E.replace(":", "");
19533
+ }(ve) || b.replace(":", "");
19534
19534
  });
19535
19535
  }, w.utcOffset = function() {
19536
19536
  return 15 * -Math.round(this.$d.getTimezoneOffset() / 15);
19537
19537
  }, w.diff = function(B, G, j) {
19538
- var q, E = this, ne = Y.p(G), le = te(B), x = (le.utcOffset() - this.utcOffset()) * r, se = this - le, ye = function() {
19539
- return Y.m(E, le);
19538
+ var q, b = this, ne = Y.p(G), le = te(B), x = (le.utcOffset() - this.utcOffset()) * r, se = this - le, ye = function() {
19539
+ return Y.m(b, le);
19540
19540
  };
19541
19541
  switch (ne) {
19542
19542
  case h:
@@ -19586,14 +19586,14 @@ function DT() {
19586
19586
  }, w.toString = function() {
19587
19587
  return this.$d.toUTCString();
19588
19588
  }, I;
19589
- }(), L = V.prototype;
19590
- return te.prototype = L, [["$ms", i], ["$s", u], ["$m", s], ["$H", l], ["$W", c], ["$M", f], ["$y", h], ["$D", b]].forEach(function(I) {
19589
+ }(), L = $.prototype;
19590
+ return te.prototype = L, [["$ms", i], ["$s", u], ["$m", s], ["$H", l], ["$W", c], ["$M", f], ["$y", h], ["$D", g]].forEach(function(I) {
19591
19591
  L[I[1]] = function(w) {
19592
19592
  return this.$g(w, I[0], I[1]);
19593
19593
  };
19594
19594
  }), te.extend = function(I, w) {
19595
- return I.$i || (I(w, V, te), I.$i = !0), te;
19596
- }, te.locale = H, te.isDayjs = $, te.unix = function(I) {
19595
+ return I.$i || (I(w, $, te), I.$i = !0), te;
19596
+ }, te.locale = H, te.isDayjs = V, te.unix = function(I) {
19597
19597
  return te(1e3 * I);
19598
19598
  }, te.en = _[R], te.Ls = _, te.p = {}, te;
19599
19599
  });
@@ -19654,43 +19654,43 @@ function tu({
19654
19654
  text: u = null,
19655
19655
  userTrackingName: s = "clicked"
19656
19656
  }) {
19657
- var g, P, M, W;
19658
- const [l, c] = ce(!0), { primaryColor: d, id: f, userTracking: p, conversationScreen: h } = oe(Ye), b = st(
19657
+ var E, P, M, W;
19658
+ const [l, c] = ce(!0), { primaryColor: d, id: f, userTracking: p, conversationScreen: h } = oe(Ye), g = st(
19659
19659
  (R) => {
19660
- var _, N, $, H;
19660
+ var _, N, V, H;
19661
19661
  ((_ = R == null ? void 0 : R.data) == null ? void 0 : _.who) === "customer" && (!(window != null && window.OnetrustActiveGroups) || (N = window == null ? void 0 : window.OnetrustActiveGroups) != null && N.includes("C0003")) && lt.set(`${f}-live-chat-open`, 1, {
19662
19662
  expires: 1,
19663
19663
  path: "/"
19664
- }), (($ = R == null ? void 0 : R.data) == null ? void 0 : $.type) === "connection" && ((H = R == null ? void 0 : R.data) == null ? void 0 : H.state) === "disconnected" && lt.remove(`${f}-live-chat-open`);
19664
+ }), ((V = R == null ? void 0 : R.data) == null ? void 0 : V.type) === "connection" && ((H = R == null ? void 0 : R.data) == null ? void 0 : H.state) === "disconnected" && lt.remove(`${f}-live-chat-open`);
19665
19665
  },
19666
19666
  [f]
19667
19667
  ), m = st(
19668
19668
  (R) => {
19669
- var _, N, $, H;
19670
- ((_ = R == null ? void 0 : R.data) == null ? void 0 : _.type) === "unhide" && ((N = R == null ? void 0 : R.data) == null ? void 0 : N.reason) === "pop-out" && a(!0), (($ = R == null ? void 0 : R.data) == null ? void 0 : $.type) === "open" && ((H = R == null ? void 0 : R.data) == null ? void 0 : H.chatState) === !0 && a(!0);
19669
+ var _, N, V, H;
19670
+ ((_ = R == null ? void 0 : R.data) == null ? void 0 : _.type) === "unhide" && ((N = R == null ? void 0 : R.data) == null ? void 0 : N.reason) === "pop-out" && a(!0), ((V = R == null ? void 0 : R.data) == null ? void 0 : V.type) === "open" && ((H = R == null ? void 0 : R.data) == null ? void 0 : H.chatState) === !0 && a(!0);
19671
19671
  },
19672
19672
  [a]
19673
19673
  );
19674
19674
  Ne(() => {
19675
- var N, $, H, te;
19675
+ var N, V, H, te;
19676
19676
  let R, _;
19677
19677
  return (N = h == null ? void 0 : h.liveChat) != null && N.useOwnChat && (_ = setTimeout(() => {
19678
19678
  c(!1);
19679
- }, 3e3)), ($ = h == null ? void 0 : h.liveChat) != null && $.enabled && !((H = h == null ? void 0 : h.liveChat) != null && H.useOwnChat) && (window.Five9ChatPlugin || (R = document.createElement("script"), R.type = "text/javascript", R.src = (te = h == null ? void 0 : h.liveChat) == null ? void 0 : te.sourceCode, R.async = !0, R.onload = () => {
19679
+ }, 3e3)), (V = h == null ? void 0 : h.liveChat) != null && V.enabled && !((H = h == null ? void 0 : h.liveChat) != null && H.useOwnChat) && (window.Five9ChatPlugin || (R = document.createElement("script"), R.type = "text/javascript", R.src = (te = h == null ? void 0 : h.liveChat) == null ? void 0 : te.sourceCode, R.async = !0, R.onload = () => {
19680
19680
  var Y;
19681
19681
  window.Five9ChatPlugin((Y = h == null ? void 0 : h.liveChat) == null ? void 0 : Y.options);
19682
- }, document.body.appendChild(R)), window.addEventListener("message", b), window.addEventListener("message", m), _ = setTimeout(() => {
19682
+ }, document.body.appendChild(R)), window.addEventListener("message", g), window.addEventListener("message", m), _ = setTimeout(() => {
19683
19683
  c(!1);
19684
19684
  }, 3e3)), () => {
19685
19685
  var Y;
19686
- (Y = h == null ? void 0 : h.liveChat) != null && Y.enabled && (window.removeEventListener("message", b), window.removeEventListener("message", m), clearTimeout(_));
19686
+ (Y = h == null ? void 0 : h.liveChat) != null && Y.enabled && (window.removeEventListener("message", g), window.removeEventListener("message", m), clearTimeout(_));
19687
19687
  };
19688
19688
  }, [
19689
- (g = h == null ? void 0 : h.liveChat) == null ? void 0 : g.enabled,
19689
+ (E = h == null ? void 0 : h.liveChat) == null ? void 0 : E.enabled,
19690
19690
  (P = h == null ? void 0 : h.liveChat) == null ? void 0 : P.options,
19691
19691
  (M = h == null ? void 0 : h.liveChat) == null ? void 0 : M.sourceCode,
19692
19692
  (W = h == null ? void 0 : h.liveChat) == null ? void 0 : W.useOwnChat,
19693
- b,
19693
+ g,
19694
19694
  m
19695
19695
  ]);
19696
19696
  const y = () => {
@@ -19759,8 +19759,8 @@ const id = ({ children: e, id: t, link: n }) => {
19759
19759
  return O0(() => {
19760
19760
  if (a && u.current && r.current) {
19761
19761
  const p = u.current.getBoundingClientRect(), h = r.current.getBoundingClientRect();
19762
- let b = 0;
19763
- p.right > h.right ? (b = h.right - p.right - 2, u.current.style.transform = `translateX(${b}px)`) : u.current.style.transform = "translateX(-50%)";
19762
+ let g = 0;
19763
+ p.right > h.right ? (g = h.right - p.right - 2, u.current.style.transform = `translateX(${g}px)`) : u.current.style.transform = "translateX(-50%)";
19764
19764
  }
19765
19765
  }, [a, r]), yt.cloneElement(e, {
19766
19766
  "aria-describedby": t,
@@ -19922,7 +19922,7 @@ const zT = () => /* @__PURE__ */ S.jsx(
19922
19922
  )
19923
19923
  }
19924
19924
  ), od = ({ src: e, alt: t, ...n }) => {
19925
- const { streaming: r } = oe(Ke), a = nt(null), [i, u] = ce(!1), [s, l] = ce(!1);
19925
+ const { streaming: r } = oe(Ze), a = nt(null), [i, u] = ce(!1), [s, l] = ce(!1);
19926
19926
  return Ne(() => {
19927
19927
  const c = a.current;
19928
19928
  if (!c) return;
@@ -19950,8 +19950,8 @@ const zT = () => /* @__PURE__ */ S.jsx(
19950
19950
  role: "img",
19951
19951
  "aria-label": t || "Image",
19952
19952
  children: [
19953
- (r || s) && /* @__PURE__ */ S.jsx(zT, {}),
19954
- i && !r && !s && /* @__PURE__ */ S.jsx(
19953
+ s && /* @__PURE__ */ S.jsx(zT, {}),
19954
+ i && !s && /* @__PURE__ */ S.jsx(
19955
19955
  "img",
19956
19956
  {
19957
19957
  src: e,
@@ -20005,14 +20005,13 @@ const WT = (e) => ({
20005
20005
  return console.error(`Error parsing generate_prompt_cards content: ${r}`), n;
20006
20006
  }
20007
20007
  }
20008
- })[e] ?? ((n) => n), GT = (e, t = !1) => {
20009
- t && (e = e.replace(/!\[[^\]]*(?:\][^(]*)?(?:\([^)]+)?\)?/g, "![]()"));
20010
- const r = new DOMParser().parseFromString(e, "text/html");
20011
- let a = 1;
20012
- const i = (u) => {
20013
- u.tagName === "DOCUMENT-SOURCE" && u.setAttribute("data-index", a++), Array.from(u.children).forEach(i);
20008
+ })[e] ?? ((n) => n), GT = (e) => {
20009
+ const n = new DOMParser().parseFromString(e, "text/html");
20010
+ let r = 1;
20011
+ const a = (i) => {
20012
+ i.tagName === "DOCUMENT-SOURCE" && i.setAttribute("data-index", r++), Array.from(i.children).forEach(a);
20014
20013
  };
20015
- return Array.from(r.body.children).forEach(i), r.body.innerHTML;
20014
+ return Array.from(n.body.children).forEach(a), n.body.innerHTML;
20016
20015
  }, XT = "Sure, I can get you to someone who can help.", KT = (e, t) => ({
20017
20016
  agent: {
20018
20017
  bubbleClassName: "xpert-chatbot-popup__bubble--assistant",
@@ -20075,53 +20074,52 @@ const WT = (e) => ({
20075
20074
  submitEvent: s = null,
20076
20075
  toolCall: l
20077
20076
  }) => {
20078
- var N;
20079
- const { streaming: c } = oe(Ke), { primaryColor: d, conversationScreen: f } = oe(Ye), {
20080
- content: p,
20081
- disableFeedback: h,
20082
- liveAgent: b,
20083
- role: m = Ie.ASSISTANT,
20084
- timestamp: y
20085
- } = n ?? {}, g = m === Ie.TOOL ? Ie.ASSISTANT : m, P = b || l === Fs.ESCALATE_TO_AN_AGENT, M = !P && !!p, W = cn(
20077
+ var _;
20078
+ const { primaryColor: c, conversationScreen: d } = oe(Ye), {
20079
+ content: f,
20080
+ disableFeedback: p,
20081
+ liveAgent: h,
20082
+ role: g = Ie.ASSISTANT,
20083
+ timestamp: m
20084
+ } = n ?? {}, y = g === Ie.TOOL ? Ie.ASSISTANT : g, E = h || l === Fs.ESCALATE_TO_AN_AGENT, P = !E && !!f, M = cn(
20086
20085
  () => {
20087
- var $;
20086
+ var N;
20088
20087
  return KT(
20089
- d,
20090
- ($ = f == null ? void 0 : f.userMessageBubble) == null ? void 0 : $.style
20088
+ c,
20089
+ (N = d == null ? void 0 : d.userMessageBubble) == null ? void 0 : N.style
20091
20090
  );
20092
20091
  },
20093
- [d, (N = f == null ? void 0 : f.userMessageBubble) == null ? void 0 : N.style]
20094
- ), R = cn(
20095
- () => WT(l)(p),
20096
- [p, l]
20097
- ), _ = cn(() => {
20098
- if (!M) return null;
20099
- const $ = GT(R, c);
20092
+ [c, (_ = d == null ? void 0 : d.userMessageBubble) == null ? void 0 : _.style]
20093
+ ), W = cn(
20094
+ () => WT(l)(f),
20095
+ [f, l]
20096
+ ), R = cn(() => {
20097
+ if (!P) return null;
20098
+ const N = GT(W);
20100
20099
  return /* @__PURE__ */ S.jsx(
20101
20100
  qi,
20102
20101
  {
20103
20102
  components: QT(
20104
20103
  i,
20105
- W[g].bubbleStyle
20104
+ M[y].bubbleStyle
20106
20105
  ),
20107
20106
  linkTarget: "_blank",
20108
20107
  rehypePlugins: [wT],
20109
20108
  transformLinkUri: VT,
20110
- children: $
20109
+ children: N
20111
20110
  }
20112
20111
  );
20113
20112
  }, [
20114
- M,
20115
- R,
20116
- c,
20117
- i,
20113
+ P,
20118
20114
  W,
20119
- g
20115
+ i,
20116
+ M,
20117
+ y
20120
20118
  ]);
20121
20119
  return /* @__PURE__ */ S.jsxs(
20122
20120
  "section",
20123
20121
  {
20124
- "aria-label": W[g].sectionAriaLabel,
20122
+ "aria-label": M[y].sectionAriaLabel,
20125
20123
  className: "xpert-chatbot-popup__bubble--group",
20126
20124
  ref: r,
20127
20125
  children: [
@@ -20129,9 +20127,9 @@ const WT = (e) => ({
20129
20127
  "div",
20130
20128
  {
20131
20129
  className: "xpert-chatbot-popup__bubble--group-inner",
20132
- style: W[g].innerStyle,
20130
+ style: M[y].innerStyle,
20133
20131
  children: [
20134
- g === Ie.AGENT && /* @__PURE__ */ S.jsx(
20132
+ y === Ie.AGENT && /* @__PURE__ */ S.jsx(
20135
20133
  xi,
20136
20134
  {
20137
20135
  alignSelf: "flex-end",
@@ -20143,11 +20141,11 @@ const WT = (e) => ({
20143
20141
  "div",
20144
20142
  {
20145
20143
  "data-testid": "message-container",
20146
- className: W[g].bubbleClassName,
20147
- style: W[g].bubbleStyle,
20144
+ className: M[y].bubbleClassName,
20145
+ style: M[y].bubbleStyle,
20148
20146
  children: [
20149
- _,
20150
- P && /* @__PURE__ */ S.jsxs(S.Fragment, { children: [
20147
+ R,
20148
+ E && /* @__PURE__ */ S.jsxs(S.Fragment, { children: [
20151
20149
  /* @__PURE__ */ S.jsx("div", { children: XT }),
20152
20150
  /* @__PURE__ */ S.jsx(
20153
20151
  tu,
@@ -20165,7 +20163,7 @@ const WT = (e) => ({
20165
20163
  ]
20166
20164
  }
20167
20165
  ),
20168
- g === Ie.USER && /* @__PURE__ */ S.jsx(
20166
+ y === Ie.USER && /* @__PURE__ */ S.jsx(
20169
20167
  xi,
20170
20168
  {
20171
20169
  alignSelf: "flex-end",
@@ -20176,8 +20174,8 @@ const WT = (e) => ({
20176
20174
  ]
20177
20175
  }
20178
20176
  ),
20179
- y && /* @__PURE__ */ S.jsx("div", { className: "xpert-chatbot-popup__bubble--timestamp", children: MT(y).format("hh:mm a") }),
20180
- !h && a && g === Ie.ASSISTANT && /* @__PURE__ */ S.jsx(
20177
+ m && /* @__PURE__ */ S.jsx("div", { className: "xpert-chatbot-popup__bubble--timestamp", children: MT(m).format("hh:mm a") }),
20178
+ !p && a && y === Ie.ASSISTANT && /* @__PURE__ */ S.jsx(
20181
20179
  ad,
20182
20180
  {
20183
20181
  id: e,
@@ -20261,9 +20259,9 @@ const oa = ({
20261
20259
  setLiveChatOpen: i = null,
20262
20260
  submitEvent: u = null
20263
20261
  }) => {
20264
- const { disableScroll: s, hasError: l, streaming: c } = oe(Ke), d = nt(null), f = cn(
20265
- () => n.reduce((p, h) => (h.toolCalls && h.toolCalls.forEach(({ function: b, id: m }) => {
20266
- p[m] = b == null ? void 0 : b.name;
20262
+ const { disableScroll: s, hasError: l, streaming: c } = oe(Ze), d = nt(null), f = cn(
20263
+ () => n.reduce((p, h) => (h.toolCalls && h.toolCalls.forEach(({ function: g, id: m }) => {
20264
+ p[m] = g == null ? void 0 : g.name;
20267
20265
  }), p), {}),
20268
20266
  [n]
20269
20267
  );
@@ -20279,10 +20277,10 @@ const oa = ({
20279
20277
  "aria-busy": t,
20280
20278
  style: { display: "flex", flexDirection: "column" },
20281
20279
  children: n.map((p, h) => {
20282
- const { role: b } = p, m = `${b}-${h}`;
20283
- if (b === Ie.ERROR)
20280
+ const { role: g } = p, m = `${g}-${h}`;
20281
+ if (g === Ie.ERROR)
20284
20282
  return /* @__PURE__ */ S.jsx(ui, { content: p == null ? void 0 : p.content }, m);
20285
- if (b === Ie.NOTIFICATION)
20283
+ if (g === Ie.NOTIFICATION)
20286
20284
  return /* @__PURE__ */ S.jsx(au, { message: p }, m);
20287
20285
  if (![
20288
20286
  Ie.AGENT,
@@ -20290,7 +20288,7 @@ const oa = ({
20290
20288
  Ie.INFO,
20291
20289
  Ie.TOOL,
20292
20290
  Ie.USER
20293
- ].includes(b) || !p.content) return null;
20291
+ ].includes(g) || !p.content) return null;
20294
20292
  const y = f[p.toolCallId];
20295
20293
  return /* @__PURE__ */ S.jsx(
20296
20294
  sd,
@@ -20378,7 +20376,7 @@ const cd = () => {
20378
20376
  cd.displayName = "MaintenanceBanner";
20379
20377
  const iu = ({ onPromptClick: e }) => {
20380
20378
  var s;
20381
- const { primaryColor: t, conversationScreen: n } = oe(Ye), { deleteConversationModal: r } = oe(Zt), { loading: a, streaming: i } = oe(Ke), u = a || i;
20379
+ const { primaryColor: t, conversationScreen: n } = oe(Ye), { deleteConversationModal: r } = oe(Zt), { loading: a, streaming: i } = oe(Ze), u = a || i;
20382
20380
  return /* @__PURE__ */ S.jsxs("div", { style: { display: "grid", gap: ".75rem" }, children: [
20383
20381
  /* @__PURE__ */ S.jsx("div", { style: { fontWeight: 700, fontSize: "0.75rem" }, children: "Some things I can help you with" }),
20384
20382
  (s = n == null ? void 0 : n.prompts) == null ? void 0 : s.map((l) => {
@@ -20409,7 +20407,7 @@ iu.propTypes = {
20409
20407
  };
20410
20408
  iu.displayName = "PromptList";
20411
20409
  const dd = ({ chatContentRef: e, messages: t }) => {
20412
- const { loading: n, streaming: r } = oe(Ke), [a, i] = ce(!1), u = nt(null), s = st(() => {
20410
+ const { loading: n, streaming: r } = oe(Ze), [a, i] = ce(!1), u = nt(null), s = st(() => {
20413
20411
  if (!e.current) return;
20414
20412
  const { scrollTop: c, scrollHeight: d, clientHeight: f } = e.current, p = c + f >= d - 10;
20415
20413
  i(!p);
@@ -20453,8 +20451,8 @@ function fd({
20453
20451
  setLiveChatOpen: i = null,
20454
20452
  submitEvent: u = null
20455
20453
  }) {
20456
- var y, g;
20457
- const { conversationScreen: s, disclaimer: l } = oe(Ye), { deleteConversationModal: c, xpertMessages: d } = oe(Zt), { loading: f, setMode: p, mode: h } = oe(Ke), b = nt(null), m = (P) => {
20454
+ var y, E;
20455
+ const { conversationScreen: s, disclaimer: l } = oe(Ye), { deleteConversationModal: c, xpertMessages: d } = oe(Zt), { loading: f, setMode: p, mode: h } = oe(Ze), g = nt(null), m = (P) => {
20458
20456
  s.liveChat.useOwnChat ? p(vt.LIVECHAT) : i(P);
20459
20457
  };
20460
20458
  return /* @__PURE__ */ S.jsxs(S.Fragment, { children: [
@@ -20467,7 +20465,7 @@ function fd({
20467
20465
  overscrollBehavior: "contain",
20468
20466
  position: "relative"
20469
20467
  },
20470
- ref: b,
20468
+ ref: g,
20471
20469
  children: [
20472
20470
  (l == null ? void 0 : l.text) && /* @__PURE__ */ S.jsx(tl, {}),
20473
20471
  ((y = s == null ? void 0 : s.prompts) == null ? void 0 : y.length) > 0 && /* @__PURE__ */ S.jsx(iu, { onPromptClick: n }),
@@ -20506,7 +20504,7 @@ function fd({
20506
20504
  width: "100%"
20507
20505
  },
20508
20506
  children: [
20509
- ((g = s == null ? void 0 : s.liveChat) == null ? void 0 : g.enabled) && /* @__PURE__ */ S.jsx(
20507
+ ((E = s == null ? void 0 : s.liveChat) == null ? void 0 : E.enabled) && /* @__PURE__ */ S.jsx(
20510
20508
  tu,
20511
20509
  {
20512
20510
  buttonClassName: "xpert-chatbot-popup__live-chat--btn-outline",
@@ -20530,7 +20528,7 @@ function fd({
20530
20528
  /* @__PURE__ */ S.jsx(
20531
20529
  dd,
20532
20530
  {
20533
- chatContentRef: b,
20531
+ chatContentRef: g,
20534
20532
  messages: d
20535
20533
  }
20536
20534
  )
@@ -20630,13 +20628,13 @@ function hd() {
20630
20628
  }).current : r.current;
20631
20629
  }
20632
20630
  function n(r, a, i) {
20633
- var u = i || {}, s = u.interval, l = s === void 0 ? e.DEFAULT_HEARTBEAT.interval : s, c = u.timeout, d = c === void 0 ? e.DEFAULT_HEARTBEAT.timeout : c, f = u.message, p = f === void 0 ? e.DEFAULT_HEARTBEAT.message : f, h = Math.max(100, l / 10), b = Date.now(), m = setInterval(function() {
20634
- var y = Date.now(), g = t(a);
20635
- if (g + d <= y)
20636
- console.warn("Heartbeat timed out, closing connection, last message received ".concat(y - g, "ms ago, last ping sent ").concat(y - b, "ms ago")), r.close();
20637
- else if (g + l <= y && b + l <= y)
20631
+ var u = i || {}, s = u.interval, l = s === void 0 ? e.DEFAULT_HEARTBEAT.interval : s, c = u.timeout, d = c === void 0 ? e.DEFAULT_HEARTBEAT.timeout : c, f = u.message, p = f === void 0 ? e.DEFAULT_HEARTBEAT.message : f, h = Math.max(100, l / 10), g = Date.now(), m = setInterval(function() {
20632
+ var y = Date.now(), E = t(a);
20633
+ if (E + d <= y)
20634
+ console.warn("Heartbeat timed out, closing connection, last message received ".concat(y - E, "ms ago, last ping sent ").concat(y - g, "ms ago")), r.close();
20635
+ else if (E + l <= y && g + l <= y)
20638
20636
  try {
20639
- typeof p == "function" ? r.send(p()) : r.send(p), b = y;
20637
+ typeof p == "function" ? r.send(p()) : r.send(p), g = y;
20640
20638
  } catch (P) {
20641
20639
  console.error("Heartbeat failed, closing connection", P instanceof Error ? P.message : P), r.close();
20642
20640
  }
@@ -20701,38 +20699,38 @@ function ZT() {
20701
20699
  return e = Object.assign || function(d) {
20702
20700
  for (var f, p = 1, h = arguments.length; p < h; p++) {
20703
20701
  f = arguments[p];
20704
- for (var b in f) Object.prototype.hasOwnProperty.call(f, b) && (d[b] = f[b]);
20702
+ for (var g in f) Object.prototype.hasOwnProperty.call(f, g) && (d[g] = f[g]);
20705
20703
  }
20706
20704
  return d;
20707
20705
  }, e.apply(this, arguments);
20708
20706
  };
20709
20707
  Object.defineProperty(an, "__esModule", { value: !0 }), an.attachListeners = void 0;
20710
20708
  var t = ou(), n = hd(), r = Ft(), a = lu(), i = function(d, f, p, h) {
20711
- d.onmessage = function(b) {
20709
+ d.onmessage = function(g) {
20712
20710
  var m;
20713
- f.current.onMessage && f.current.onMessage(b), typeof (h == null ? void 0 : h.current) == "number" && (h.current = Date.now()), !(typeof f.current.filter == "function" && f.current.filter(b) !== !0) && (f.current.heartbeat && typeof f.current.heartbeat != "boolean" && ((m = f.current.heartbeat) === null || m === void 0 ? void 0 : m.returnMessage) === b.data || p(b));
20711
+ f.current.onMessage && f.current.onMessage(g), typeof (h == null ? void 0 : h.current) == "number" && (h.current = Date.now()), !(typeof f.current.filter == "function" && f.current.filter(g) !== !0) && (f.current.heartbeat && typeof f.current.heartbeat != "boolean" && ((m = f.current.heartbeat) === null || m === void 0 ? void 0 : m.returnMessage) === g.data || p(g));
20714
20712
  };
20715
- }, u = function(d, f, p, h, b) {
20713
+ }, u = function(d, f, p, h, g) {
20716
20714
  d.onopen = function(m) {
20717
20715
  if (f.current.onOpen && f.current.onOpen(m), h.current = 0, p(r.ReadyState.OPEN), f.current.heartbeat && d instanceof WebSocket) {
20718
20716
  var y = typeof f.current.heartbeat == "boolean" ? void 0 : f.current.heartbeat;
20719
- b.current = Date.now(), (0, n.heartbeat)(d, b, y);
20717
+ g.current = Date.now(), (0, n.heartbeat)(d, g, y);
20720
20718
  }
20721
20719
  };
20722
- }, s = function(d, f, p, h, b) {
20720
+ }, s = function(d, f, p, h, g) {
20723
20721
  if (r.isEventSourceSupported && d instanceof EventSource)
20724
20722
  return function() {
20725
20723
  };
20726
20724
  (0, a.assertIsWebSocket)(d, f.current.skipAssert);
20727
20725
  var m;
20728
20726
  return d.onclose = function(y) {
20729
- var g;
20727
+ var E;
20730
20728
  if (f.current.onClose && f.current.onClose(y), p(r.ReadyState.CLOSED), f.current.shouldReconnect && f.current.shouldReconnect(y)) {
20731
- var P = (g = f.current.reconnectAttempts) !== null && g !== void 0 ? g : r.DEFAULT_RECONNECT_LIMIT;
20732
- if (b.current < P) {
20733
- var M = typeof f.current.reconnectInterval == "function" ? f.current.reconnectInterval(b.current) : f.current.reconnectInterval;
20729
+ var P = (E = f.current.reconnectAttempts) !== null && E !== void 0 ? E : r.DEFAULT_RECONNECT_LIMIT;
20730
+ if (g.current < P) {
20731
+ var M = typeof f.current.reconnectInterval == "function" ? f.current.reconnectInterval(g.current) : f.current.reconnectInterval;
20734
20732
  m = window.setTimeout(function() {
20735
- b.current++, h();
20733
+ g.current++, h();
20736
20734
  }, M ?? r.DEFAULT_RECONNECT_INTERVAL_MS);
20737
20735
  } else
20738
20736
  f.current.onReconnectStop && f.current.onReconnectStop(P), console.warn("Max reconnect attempts of ".concat(P, " exceeded"));
@@ -20740,24 +20738,24 @@ function ZT() {
20740
20738
  }, function() {
20741
20739
  return m && window.clearTimeout(m);
20742
20740
  };
20743
- }, l = function(d, f, p, h, b) {
20741
+ }, l = function(d, f, p, h, g) {
20744
20742
  var m;
20745
20743
  return d.onerror = function(y) {
20746
- var g;
20744
+ var E;
20747
20745
  if (f.current.onError && f.current.onError(y), r.isEventSourceSupported && d instanceof EventSource && (f.current.onClose && f.current.onClose(e(e({}, y), { code: 1006, reason: "An error occurred with the EventSource: ".concat(y), wasClean: !1 })), p(r.ReadyState.CLOSED), d.close()), f.current.retryOnError)
20748
- if (b.current < ((g = f.current.reconnectAttempts) !== null && g !== void 0 ? g : r.DEFAULT_RECONNECT_LIMIT)) {
20749
- var P = typeof f.current.reconnectInterval == "function" ? f.current.reconnectInterval(b.current) : f.current.reconnectInterval;
20746
+ if (g.current < ((E = f.current.reconnectAttempts) !== null && E !== void 0 ? E : r.DEFAULT_RECONNECT_LIMIT)) {
20747
+ var P = typeof f.current.reconnectInterval == "function" ? f.current.reconnectInterval(g.current) : f.current.reconnectInterval;
20750
20748
  m = window.setTimeout(function() {
20751
- b.current++, h();
20749
+ g.current++, h();
20752
20750
  }, P ?? r.DEFAULT_RECONNECT_INTERVAL_MS);
20753
20751
  } else
20754
20752
  f.current.onReconnectStop && f.current.onReconnectStop(f.current.reconnectAttempts), console.warn("Max reconnect attempts of ".concat(f.current.reconnectAttempts, " exceeded"));
20755
20753
  }, function() {
20756
20754
  return m && window.clearTimeout(m);
20757
20755
  };
20758
- }, c = function(d, f, p, h, b, m, y) {
20759
- var g = f.setLastMessage, P = f.setReadyState, M, W, R;
20760
- return p.current.fromSocketIO && (M = (0, t.setUpSocketIOPing)(y)), i(d, p, g, m), u(d, p, P, b, m), W = s(d, p, P, h, b), R = l(d, p, P, h, b), function() {
20756
+ }, c = function(d, f, p, h, g, m, y) {
20757
+ var E = f.setLastMessage, P = f.setReadyState, M, W, R;
20758
+ return p.current.fromSocketIO && (M = (0, t.setUpSocketIOPing)(y)), i(d, p, E, m), u(d, p, P, g, m), W = s(d, p, P, h, g), R = l(d, p, P, h, g), function() {
20761
20759
  P(r.ReadyState.CLOSING), W(), R(), d.close(), M && clearInterval(M);
20762
20760
  };
20763
20761
  };
@@ -20769,7 +20767,7 @@ function JT() {
20769
20767
  ys = 1;
20770
20768
  var e = un && un.__assign || function() {
20771
20769
  return e = Object.assign || function(f) {
20772
- for (var p, h = 1, b = arguments.length; h < b; h++) {
20770
+ for (var p, h = 1, g = arguments.length; h < g; h++) {
20773
20771
  p = arguments[h];
20774
20772
  for (var m in p) Object.prototype.hasOwnProperty.call(p, m) && (f[m] = p[m]);
20775
20773
  }
@@ -20778,48 +20776,48 @@ function JT() {
20778
20776
  };
20779
20777
  Object.defineProperty(un, "__esModule", { value: !0 }), un.attachSharedListeners = void 0;
20780
20778
  var t = uu(), n = Ft(), r = su(), a = ou(), i = hd(), u = function(f, p, h) {
20781
- f.onmessage = function(b) {
20779
+ f.onmessage = function(g) {
20782
20780
  (0, r.getSubscribers)(p).forEach(function(m) {
20783
20781
  var y;
20784
- m.optionsRef.current.onMessage && m.optionsRef.current.onMessage(b), typeof ((y = m == null ? void 0 : m.lastMessageTime) === null || y === void 0 ? void 0 : y.current) == "number" && (m.lastMessageTime.current = Date.now()), !(typeof m.optionsRef.current.filter == "function" && m.optionsRef.current.filter(b) !== !0) && (h && typeof h != "boolean" && (h == null ? void 0 : h.returnMessage) === b.data || m.setLastMessage(b));
20782
+ m.optionsRef.current.onMessage && m.optionsRef.current.onMessage(g), typeof ((y = m == null ? void 0 : m.lastMessageTime) === null || y === void 0 ? void 0 : y.current) == "number" && (m.lastMessageTime.current = Date.now()), !(typeof m.optionsRef.current.filter == "function" && m.optionsRef.current.filter(g) !== !0) && (h && typeof h != "boolean" && (h == null ? void 0 : h.returnMessage) === g.data || m.setLastMessage(g));
20785
20783
  });
20786
20784
  };
20787
20785
  }, s = function(f, p, h) {
20788
- f.onopen = function(b) {
20786
+ f.onopen = function(g) {
20789
20787
  var m = (0, r.getSubscribers)(p);
20790
20788
  m.forEach(function(y) {
20791
- y.reconnectCount.current = 0, y.optionsRef.current.onOpen && y.optionsRef.current.onOpen(b), y.setReadyState(n.ReadyState.OPEN), h && f instanceof WebSocket && (y.lastMessageTime.current = Date.now());
20789
+ y.reconnectCount.current = 0, y.optionsRef.current.onOpen && y.optionsRef.current.onOpen(g), y.setReadyState(n.ReadyState.OPEN), h && f instanceof WebSocket && (y.lastMessageTime.current = Date.now());
20792
20790
  }), h && f instanceof WebSocket && (0, i.heartbeat)(f, m.map(function(y) {
20793
20791
  return y.lastMessageTime;
20794
20792
  }), typeof h == "boolean" ? void 0 : h);
20795
20793
  };
20796
20794
  }, l = function(f, p) {
20797
20795
  f instanceof WebSocket && (f.onclose = function(h) {
20798
- (0, r.getSubscribers)(p).forEach(function(b) {
20799
- b.optionsRef.current.onClose && b.optionsRef.current.onClose(h), b.setReadyState(n.ReadyState.CLOSED);
20800
- }), delete t.sharedWebSockets[p], (0, r.getSubscribers)(p).forEach(function(b) {
20796
+ (0, r.getSubscribers)(p).forEach(function(g) {
20797
+ g.optionsRef.current.onClose && g.optionsRef.current.onClose(h), g.setReadyState(n.ReadyState.CLOSED);
20798
+ }), delete t.sharedWebSockets[p], (0, r.getSubscribers)(p).forEach(function(g) {
20801
20799
  var m;
20802
- if (b.optionsRef.current.shouldReconnect && b.optionsRef.current.shouldReconnect(h)) {
20803
- var y = (m = b.optionsRef.current.reconnectAttempts) !== null && m !== void 0 ? m : n.DEFAULT_RECONNECT_LIMIT;
20804
- if (b.reconnectCount.current < y) {
20805
- var g = typeof b.optionsRef.current.reconnectInterval == "function" ? b.optionsRef.current.reconnectInterval(b.reconnectCount.current) : b.optionsRef.current.reconnectInterval;
20800
+ if (g.optionsRef.current.shouldReconnect && g.optionsRef.current.shouldReconnect(h)) {
20801
+ var y = (m = g.optionsRef.current.reconnectAttempts) !== null && m !== void 0 ? m : n.DEFAULT_RECONNECT_LIMIT;
20802
+ if (g.reconnectCount.current < y) {
20803
+ var E = typeof g.optionsRef.current.reconnectInterval == "function" ? g.optionsRef.current.reconnectInterval(g.reconnectCount.current) : g.optionsRef.current.reconnectInterval;
20806
20804
  setTimeout(function() {
20807
- b.reconnectCount.current++, b.reconnect.current();
20808
- }, g ?? n.DEFAULT_RECONNECT_INTERVAL_MS);
20805
+ g.reconnectCount.current++, g.reconnect.current();
20806
+ }, E ?? n.DEFAULT_RECONNECT_INTERVAL_MS);
20809
20807
  } else
20810
- b.optionsRef.current.onReconnectStop && b.optionsRef.current.onReconnectStop(b.optionsRef.current.reconnectAttempts), console.warn("Max reconnect attempts of ".concat(y, " exceeded"));
20808
+ g.optionsRef.current.onReconnectStop && g.optionsRef.current.onReconnectStop(g.optionsRef.current.reconnectAttempts), console.warn("Max reconnect attempts of ".concat(y, " exceeded"));
20811
20809
  }
20812
20810
  });
20813
20811
  });
20814
20812
  }, c = function(f, p) {
20815
20813
  f.onerror = function(h) {
20816
- (0, r.getSubscribers)(p).forEach(function(b) {
20817
- b.optionsRef.current.onError && b.optionsRef.current.onError(h), n.isEventSourceSupported && f instanceof EventSource && (b.optionsRef.current.onClose && b.optionsRef.current.onClose(e(e({}, h), { code: 1006, reason: "An error occurred with the EventSource: ".concat(h), wasClean: !1 })), b.setReadyState(n.ReadyState.CLOSED));
20814
+ (0, r.getSubscribers)(p).forEach(function(g) {
20815
+ g.optionsRef.current.onError && g.optionsRef.current.onError(h), n.isEventSourceSupported && f instanceof EventSource && (g.optionsRef.current.onClose && g.optionsRef.current.onClose(e(e({}, h), { code: 1006, reason: "An error occurred with the EventSource: ".concat(h), wasClean: !1 })), g.setReadyState(n.ReadyState.CLOSED));
20818
20816
  }), n.isEventSourceSupported && f instanceof EventSource && f.close();
20819
20817
  };
20820
- }, d = function(f, p, h, b) {
20818
+ }, d = function(f, p, h, g) {
20821
20819
  var m;
20822
- return h.current.fromSocketIO && (m = (0, a.setUpSocketIOPing)(b)), u(f, p, h.current.heartbeat), l(f, p), s(f, p, h.current.heartbeat), c(f, p), function() {
20820
+ return h.current.fromSocketIO && (m = (0, a.setUpSocketIOPing)(g)), u(f, p, h.current.heartbeat), l(f, p), s(f, p, h.current.heartbeat), c(f, p), function() {
20823
20821
  m && clearInterval(m);
20824
20822
  };
20825
20823
  };
@@ -20842,28 +20840,28 @@ function e3() {
20842
20840
  f && f(), delete e.sharedWebSockets[s];
20843
20841
  }
20844
20842
  };
20845
- }, u = function(s, l, c, d, f, p, h, b, m) {
20843
+ }, u = function(s, l, c, d, f, p, h, g, m) {
20846
20844
  if (!t.isEventSourceSupported && d.current.eventSourceOptions)
20847
20845
  throw t.isReactNative ? new Error("EventSource is not supported in ReactNative") : new Error("EventSource is not supported");
20848
20846
  if (d.current.share) {
20849
20847
  var y = null;
20850
20848
  e.sharedWebSockets[l] === void 0 ? (e.sharedWebSockets[l] = d.current.eventSourceOptions ? new EventSource(l, d.current.eventSourceOptions) : new WebSocket(l, d.current.protocols), s.current = e.sharedWebSockets[l], c(t.ReadyState.CONNECTING), y = (0, r.attachSharedListeners)(e.sharedWebSockets[l], l, d, m)) : (s.current = e.sharedWebSockets[l], c(e.sharedWebSockets[l].readyState));
20851
- var g = {
20849
+ var E = {
20852
20850
  setLastMessage: f,
20853
20851
  setReadyState: c,
20854
20852
  optionsRef: d,
20855
20853
  reconnectCount: h,
20856
- lastMessageTime: b,
20854
+ lastMessageTime: g,
20857
20855
  reconnect: p
20858
20856
  };
20859
- return (0, a.addSubscriber)(l, g), i(l, g, d, c, y);
20857
+ return (0, a.addSubscriber)(l, E), i(l, E, d, c, y);
20860
20858
  } else {
20861
20859
  if (s.current = d.current.eventSourceOptions ? new EventSource(l, d.current.eventSourceOptions) : new WebSocket(l, d.current.protocols), c(t.ReadyState.CONNECTING), !s.current)
20862
20860
  throw new Error("WebSocket failed to be created");
20863
20861
  return (0, n.attachListeners)(s.current, {
20864
20862
  setLastMessage: f,
20865
20863
  setReadyState: c
20866
- }, d, p.current, h, b, m);
20864
+ }, d, p.current, h, g, m);
20867
20865
  }
20868
20866
  };
20869
20867
  return Qn.createOrJoinSocket = u, Qn;
@@ -20873,88 +20871,88 @@ function t3() {
20873
20871
  return Cs || (Cs = 1, function(e) {
20874
20872
  var t = qt && qt.__awaiter || function(l, c, d, f) {
20875
20873
  function p(h) {
20876
- return h instanceof d ? h : new d(function(b) {
20877
- b(h);
20874
+ return h instanceof d ? h : new d(function(g) {
20875
+ g(h);
20878
20876
  });
20879
20877
  }
20880
- return new (d || (d = Promise))(function(h, b) {
20878
+ return new (d || (d = Promise))(function(h, g) {
20881
20879
  function m(P) {
20882
20880
  try {
20883
- g(f.next(P));
20881
+ E(f.next(P));
20884
20882
  } catch (M) {
20885
- b(M);
20883
+ g(M);
20886
20884
  }
20887
20885
  }
20888
20886
  function y(P) {
20889
20887
  try {
20890
- g(f.throw(P));
20888
+ E(f.throw(P));
20891
20889
  } catch (M) {
20892
- b(M);
20890
+ g(M);
20893
20891
  }
20894
20892
  }
20895
- function g(P) {
20893
+ function E(P) {
20896
20894
  P.done ? h(P.value) : p(P.value).then(m, y);
20897
20895
  }
20898
- g((f = f.apply(l, c || [])).next());
20896
+ E((f = f.apply(l, c || [])).next());
20899
20897
  });
20900
20898
  }, n = qt && qt.__generator || function(l, c) {
20901
20899
  var d = { label: 0, sent: function() {
20902
20900
  if (h[0] & 1) throw h[1];
20903
20901
  return h[1];
20904
- }, trys: [], ops: [] }, f, p, h, b = Object.create((typeof Iterator == "function" ? Iterator : Object).prototype);
20905
- return b.next = m(0), b.throw = m(1), b.return = m(2), typeof Symbol == "function" && (b[Symbol.iterator] = function() {
20902
+ }, trys: [], ops: [] }, f, p, h, g = Object.create((typeof Iterator == "function" ? Iterator : Object).prototype);
20903
+ return g.next = m(0), g.throw = m(1), g.return = m(2), typeof Symbol == "function" && (g[Symbol.iterator] = function() {
20906
20904
  return this;
20907
- }), b;
20908
- function m(g) {
20905
+ }), g;
20906
+ function m(E) {
20909
20907
  return function(P) {
20910
- return y([g, P]);
20908
+ return y([E, P]);
20911
20909
  };
20912
20910
  }
20913
- function y(g) {
20911
+ function y(E) {
20914
20912
  if (f) throw new TypeError("Generator is already executing.");
20915
- for (; b && (b = 0, g[0] && (d = 0)), d; ) try {
20916
- if (f = 1, p && (h = g[0] & 2 ? p.return : g[0] ? p.throw || ((h = p.return) && h.call(p), 0) : p.next) && !(h = h.call(p, g[1])).done) return h;
20917
- switch (p = 0, h && (g = [g[0] & 2, h.value]), g[0]) {
20913
+ for (; g && (g = 0, E[0] && (d = 0)), d; ) try {
20914
+ if (f = 1, p && (h = E[0] & 2 ? p.return : E[0] ? p.throw || ((h = p.return) && h.call(p), 0) : p.next) && !(h = h.call(p, E[1])).done) return h;
20915
+ switch (p = 0, h && (E = [E[0] & 2, h.value]), E[0]) {
20918
20916
  case 0:
20919
20917
  case 1:
20920
- h = g;
20918
+ h = E;
20921
20919
  break;
20922
20920
  case 4:
20923
- return d.label++, { value: g[1], done: !1 };
20921
+ return d.label++, { value: E[1], done: !1 };
20924
20922
  case 5:
20925
- d.label++, p = g[1], g = [0];
20923
+ d.label++, p = E[1], E = [0];
20926
20924
  continue;
20927
20925
  case 7:
20928
- g = d.ops.pop(), d.trys.pop();
20926
+ E = d.ops.pop(), d.trys.pop();
20929
20927
  continue;
20930
20928
  default:
20931
- if (h = d.trys, !(h = h.length > 0 && h[h.length - 1]) && (g[0] === 6 || g[0] === 2)) {
20929
+ if (h = d.trys, !(h = h.length > 0 && h[h.length - 1]) && (E[0] === 6 || E[0] === 2)) {
20932
20930
  d = 0;
20933
20931
  continue;
20934
20932
  }
20935
- if (g[0] === 3 && (!h || g[1] > h[0] && g[1] < h[3])) {
20936
- d.label = g[1];
20933
+ if (E[0] === 3 && (!h || E[1] > h[0] && E[1] < h[3])) {
20934
+ d.label = E[1];
20937
20935
  break;
20938
20936
  }
20939
- if (g[0] === 6 && d.label < h[1]) {
20940
- d.label = h[1], h = g;
20937
+ if (E[0] === 6 && d.label < h[1]) {
20938
+ d.label = h[1], h = E;
20941
20939
  break;
20942
20940
  }
20943
20941
  if (h && d.label < h[2]) {
20944
- d.label = h[2], d.ops.push(g);
20942
+ d.label = h[2], d.ops.push(E);
20945
20943
  break;
20946
20944
  }
20947
20945
  h[2] && d.ops.pop(), d.trys.pop();
20948
20946
  continue;
20949
20947
  }
20950
- g = c.call(l, d);
20948
+ E = c.call(l, d);
20951
20949
  } catch (P) {
20952
- g = [6, P], p = 0;
20950
+ E = [6, P], p = 0;
20953
20951
  } finally {
20954
20952
  f = h = 0;
20955
20953
  }
20956
- if (g[0] & 5) throw g[1];
20957
- return { value: g[0] ? g[1] : void 0, done: !0 };
20954
+ if (E[0] & 5) throw E[1];
20955
+ return { value: E[0] ? E[1] : void 0, done: !0 };
20958
20956
  }
20959
20957
  }, r = qt && qt.__spreadArray || function(l, c, d) {
20960
20958
  if (d || arguments.length === 2) for (var f = 0, p = c.length, h; f < p; f++)
@@ -20969,9 +20967,9 @@ function t3() {
20969
20967
  }, s = function(l, c) {
20970
20968
  for (var d = [], f = 2; f < arguments.length; f++)
20971
20969
  d[f - 2] = arguments[f];
20972
- return t(void 0, r([l, c], d, !0), void 0, function(p, h, b) {
20973
- var m, y, g, P, M, W, R, _;
20974
- return b === void 0 && (b = 0), n(this, function(N) {
20970
+ return t(void 0, r([l, c], d, !0), void 0, function(p, h, g) {
20971
+ var m, y, E, P, M, W, R, _;
20972
+ return g === void 0 && (g = 0), n(this, function(N) {
20975
20973
  switch (N.label) {
20976
20974
  case 0:
20977
20975
  if (typeof p != "function") return [3, 10];
@@ -20981,11 +20979,11 @@ function t3() {
20981
20979
  case 2:
20982
20980
  return m = N.sent(), [3, 9];
20983
20981
  case 3:
20984
- return N.sent(), h.current.retryOnError ? (y = (W = h.current.reconnectAttempts) !== null && W !== void 0 ? W : i.DEFAULT_RECONNECT_LIMIT, b < y ? (g = typeof h.current.reconnectInterval == "function" ? h.current.reconnectInterval(b) : h.current.reconnectInterval, [4, u(g ?? i.DEFAULT_RECONNECT_INTERVAL_MS)]) : [3, 5]) : [3, 7];
20982
+ return N.sent(), h.current.retryOnError ? (y = (W = h.current.reconnectAttempts) !== null && W !== void 0 ? W : i.DEFAULT_RECONNECT_LIMIT, g < y ? (E = typeof h.current.reconnectInterval == "function" ? h.current.reconnectInterval(g) : h.current.reconnectInterval, [4, u(E ?? i.DEFAULT_RECONNECT_INTERVAL_MS)]) : [3, 5]) : [3, 7];
20985
20983
  case 4:
20986
- return N.sent(), [2, (0, e.getUrl)(p, h, b + 1)];
20984
+ return N.sent(), [2, (0, e.getUrl)(p, h, g + 1)];
20987
20985
  case 5:
20988
- return (_ = (R = h.current).onReconnectStop) === null || _ === void 0 || _.call(R, b), [2, null];
20986
+ return (_ = (R = h.current).onReconnectStop) === null || _ === void 0 || _.call(R, g), [2, null];
20989
20987
  case 6:
20990
20988
  return [3, 8];
20991
20989
  case 7:
@@ -21030,19 +21028,19 @@ function cu() {
21030
21028
  Ss = 1;
21031
21029
  var e = pt && pt.__assign || function() {
21032
21030
  return e = Object.assign || function(p) {
21033
- for (var h, b = 1, m = arguments.length; b < m; b++) {
21034
- h = arguments[b];
21031
+ for (var h, g = 1, m = arguments.length; g < m; g++) {
21032
+ h = arguments[g];
21035
21033
  for (var y in h) Object.prototype.hasOwnProperty.call(h, y) && (p[y] = h[y]);
21036
21034
  }
21037
21035
  return p;
21038
21036
  }, e.apply(this, arguments);
21039
- }, t = pt && pt.__awaiter || function(p, h, b, m) {
21040
- function y(g) {
21041
- return g instanceof b ? g : new b(function(P) {
21042
- P(g);
21037
+ }, t = pt && pt.__awaiter || function(p, h, g, m) {
21038
+ function y(E) {
21039
+ return E instanceof g ? E : new g(function(P) {
21040
+ P(E);
21043
21041
  });
21044
21042
  }
21045
- return new (b || (b = Promise))(function(g, P) {
21043
+ return new (g || (g = Promise))(function(E, P) {
21046
21044
  function M(_) {
21047
21045
  try {
21048
21046
  R(m.next(_));
@@ -21058,15 +21056,15 @@ function cu() {
21058
21056
  }
21059
21057
  }
21060
21058
  function R(_) {
21061
- _.done ? g(_.value) : y(_.value).then(M, W);
21059
+ _.done ? E(_.value) : y(_.value).then(M, W);
21062
21060
  }
21063
21061
  R((m = m.apply(p, h || [])).next());
21064
21062
  });
21065
21063
  }, n = pt && pt.__generator || function(p, h) {
21066
- var b = { label: 0, sent: function() {
21067
- if (g[0] & 1) throw g[1];
21068
- return g[1];
21069
- }, trys: [], ops: [] }, m, y, g, P = Object.create((typeof Iterator == "function" ? Iterator : Object).prototype);
21064
+ var g = { label: 0, sent: function() {
21065
+ if (E[0] & 1) throw E[1];
21066
+ return E[1];
21067
+ }, trys: [], ops: [] }, m, y, E, P = Object.create((typeof Iterator == "function" ? Iterator : Object).prototype);
21070
21068
  return P.next = M(0), P.throw = M(1), P.return = M(2), typeof Symbol == "function" && (P[Symbol.iterator] = function() {
21071
21069
  return this;
21072
21070
  }), P;
@@ -21077,46 +21075,46 @@ function cu() {
21077
21075
  }
21078
21076
  function W(R) {
21079
21077
  if (m) throw new TypeError("Generator is already executing.");
21080
- for (; P && (P = 0, R[0] && (b = 0)), b; ) try {
21081
- if (m = 1, y && (g = R[0] & 2 ? y.return : R[0] ? y.throw || ((g = y.return) && g.call(y), 0) : y.next) && !(g = g.call(y, R[1])).done) return g;
21082
- switch (y = 0, g && (R = [R[0] & 2, g.value]), R[0]) {
21078
+ for (; P && (P = 0, R[0] && (g = 0)), g; ) try {
21079
+ if (m = 1, y && (E = R[0] & 2 ? y.return : R[0] ? y.throw || ((E = y.return) && E.call(y), 0) : y.next) && !(E = E.call(y, R[1])).done) return E;
21080
+ switch (y = 0, E && (R = [R[0] & 2, E.value]), R[0]) {
21083
21081
  case 0:
21084
21082
  case 1:
21085
- g = R;
21083
+ E = R;
21086
21084
  break;
21087
21085
  case 4:
21088
- return b.label++, { value: R[1], done: !1 };
21086
+ return g.label++, { value: R[1], done: !1 };
21089
21087
  case 5:
21090
- b.label++, y = R[1], R = [0];
21088
+ g.label++, y = R[1], R = [0];
21091
21089
  continue;
21092
21090
  case 7:
21093
- R = b.ops.pop(), b.trys.pop();
21091
+ R = g.ops.pop(), g.trys.pop();
21094
21092
  continue;
21095
21093
  default:
21096
- if (g = b.trys, !(g = g.length > 0 && g[g.length - 1]) && (R[0] === 6 || R[0] === 2)) {
21097
- b = 0;
21094
+ if (E = g.trys, !(E = E.length > 0 && E[E.length - 1]) && (R[0] === 6 || R[0] === 2)) {
21095
+ g = 0;
21098
21096
  continue;
21099
21097
  }
21100
- if (R[0] === 3 && (!g || R[1] > g[0] && R[1] < g[3])) {
21101
- b.label = R[1];
21098
+ if (R[0] === 3 && (!E || R[1] > E[0] && R[1] < E[3])) {
21099
+ g.label = R[1];
21102
21100
  break;
21103
21101
  }
21104
- if (R[0] === 6 && b.label < g[1]) {
21105
- b.label = g[1], g = R;
21102
+ if (R[0] === 6 && g.label < E[1]) {
21103
+ g.label = E[1], E = R;
21106
21104
  break;
21107
21105
  }
21108
- if (g && b.label < g[2]) {
21109
- b.label = g[2], b.ops.push(R);
21106
+ if (E && g.label < E[2]) {
21107
+ g.label = E[2], g.ops.push(R);
21110
21108
  break;
21111
21109
  }
21112
- g[2] && b.ops.pop(), b.trys.pop();
21110
+ E[2] && g.ops.pop(), g.trys.pop();
21113
21111
  continue;
21114
21112
  }
21115
- R = h.call(p, b);
21113
+ R = h.call(p, g);
21116
21114
  } catch (_) {
21117
21115
  R = [6, _], y = 0;
21118
21116
  } finally {
21119
- m = g = 0;
21117
+ m = E = 0;
21120
21118
  }
21121
21119
  if (R[0] & 5) throw R[1];
21122
21120
  return { value: R[0] ? R[1] : void 0, done: !0 };
@@ -21125,9 +21123,9 @@ function cu() {
21125
21123
  return p && p.__esModule ? p : { default: p };
21126
21124
  };
21127
21125
  Object.defineProperty(pt, "__esModule", { value: !0 }), pt.useWebSocket = void 0;
21128
- var a = yt, i = w0, u = Ft(), s = e3(), l = t3(), c = r(n3()), d = lu(), f = function(p, h, b) {
21129
- h === void 0 && (h = u.DEFAULT_OPTIONS), b === void 0 && (b = !0);
21130
- var m = (0, a.useState)(null), y = m[0], g = m[1], P = (0, a.useState)({}), M = P[0], W = P[1], R = (0, a.useMemo)(function() {
21126
+ var a = yt, i = w0, u = Ft(), s = e3(), l = t3(), c = r(n3()), d = lu(), f = function(p, h, g) {
21127
+ h === void 0 && (h = u.DEFAULT_OPTIONS), g === void 0 && (g = !0);
21128
+ var m = (0, a.useState)(null), y = m[0], E = m[1], P = (0, a.useState)({}), M = P[0], W = P[1], R = (0, a.useMemo)(function() {
21131
21129
  if (!h.disableJson && y)
21132
21130
  try {
21133
21131
  return JSON.parse(y.data);
@@ -21135,24 +21133,24 @@ function cu() {
21135
21133
  return u.UNPARSABLE_JSON_OBJECT;
21136
21134
  }
21137
21135
  return null;
21138
- }, [y, h.disableJson]), _ = (0, a.useRef)(null), N = (0, a.useRef)(null), $ = (0, a.useRef)(function() {
21139
- }), H = (0, a.useRef)(0), te = (0, a.useRef)(Date.now()), Y = (0, a.useRef)([]), V = (0, a.useRef)(null), L = (0, a.useRef)(h);
21136
+ }, [y, h.disableJson]), _ = (0, a.useRef)(null), N = (0, a.useRef)(null), V = (0, a.useRef)(function() {
21137
+ }), H = (0, a.useRef)(0), te = (0, a.useRef)(Date.now()), Y = (0, a.useRef)([]), $ = (0, a.useRef)(null), L = (0, a.useRef)(h);
21140
21138
  L.current = h;
21141
- var I = _.current && M[_.current] !== void 0 ? M[_.current] : p !== null && b === !0 ? u.ReadyState.CONNECTING : u.ReadyState.UNINSTANTIATED, w = h.queryParams ? JSON.stringify(h.queryParams) : null, B = (0, a.useCallback)(function(q, E) {
21139
+ var I = _.current && M[_.current] !== void 0 ? M[_.current] : p !== null && g === !0 ? u.ReadyState.CONNECTING : u.ReadyState.UNINSTANTIATED, w = h.queryParams ? JSON.stringify(h.queryParams) : null, B = (0, a.useCallback)(function(q, b) {
21142
21140
  var ne;
21143
- if (E === void 0 && (E = !0), u.isEventSourceSupported && N.current instanceof EventSource) {
21141
+ if (b === void 0 && (b = !0), u.isEventSourceSupported && N.current instanceof EventSource) {
21144
21142
  console.warn("Unable to send a message from an eventSource");
21145
21143
  return;
21146
21144
  }
21147
- ((ne = N.current) === null || ne === void 0 ? void 0 : ne.readyState) === u.ReadyState.OPEN ? ((0, d.assertIsWebSocket)(N.current, L.current.skipAssert), N.current.send(q)) : E && Y.current.push(q);
21148
- }, []), G = (0, a.useCallback)(function(q, E) {
21149
- E === void 0 && (E = !0), B(JSON.stringify(q), E);
21145
+ ((ne = N.current) === null || ne === void 0 ? void 0 : ne.readyState) === u.ReadyState.OPEN ? ((0, d.assertIsWebSocket)(N.current, L.current.skipAssert), N.current.send(q)) : b && Y.current.push(q);
21146
+ }, []), G = (0, a.useCallback)(function(q, b) {
21147
+ b === void 0 && (b = !0), B(JSON.stringify(q), b);
21150
21148
  }, [B]), j = (0, a.useCallback)(function() {
21151
- return L.current.share !== !0 || u.isEventSourceSupported && N.current instanceof EventSource ? N.current : (V.current === null && N.current && ((0, d.assertIsWebSocket)(N.current, L.current.skipAssert), V.current = (0, c.default)(N.current, $)), V.current);
21149
+ return L.current.share !== !0 || u.isEventSourceSupported && N.current instanceof EventSource ? N.current : ($.current === null && N.current && ((0, d.assertIsWebSocket)(N.current, L.current.skipAssert), $.current = (0, c.default)(N.current, V)), $.current);
21152
21150
  }, []);
21153
21151
  return (0, a.useEffect)(function() {
21154
- if (p !== null && b === !0) {
21155
- var q, E = !1, ne = !0, le = function() {
21152
+ if (p !== null && g === !0) {
21153
+ var q, b = !1, ne = !0, le = function() {
21156
21154
  return t(void 0, void 0, void 0, function() {
21157
21155
  var x, se, ye;
21158
21156
  return n(this, function(me) {
@@ -21168,17 +21166,17 @@ function cu() {
21168
21166
  2
21169
21167
  /*return*/
21170
21168
  ]) : (se = function(Ae) {
21171
- E || (0, i.flushSync)(function() {
21172
- return g(Ae);
21169
+ b || (0, i.flushSync)(function() {
21170
+ return E(Ae);
21173
21171
  });
21174
21172
  }, ye = function(Ae) {
21175
- E || (0, i.flushSync)(function() {
21173
+ b || (0, i.flushSync)(function() {
21176
21174
  return W(function(xe) {
21177
21175
  var je;
21178
21176
  return e(e({}, xe), _.current && (je = {}, je[_.current] = Ae, je));
21179
21177
  });
21180
21178
  });
21181
- }, ne && (q = (0, s.createOrJoinSocket)(N, _.current, ye, L, se, $, H, te, B)), [
21179
+ }, ne && (q = (0, s.createOrJoinSocket)(N, _.current, ye, L, se, V, H, te, B)), [
21182
21180
  2
21183
21181
  /*return*/
21184
21182
  ]);
@@ -21186,16 +21184,16 @@ function cu() {
21186
21184
  });
21187
21185
  });
21188
21186
  };
21189
- return $.current = function() {
21190
- E || (V.current && (V.current = null), q == null || q(), le());
21187
+ return V.current = function() {
21188
+ b || ($.current && ($.current = null), q == null || q(), le());
21191
21189
  }, le(), function() {
21192
- E = !0, ne = !1, V.current && (V.current = null), q == null || q(), g(null);
21190
+ b = !0, ne = !1, $.current && ($.current = null), q == null || q(), E(null);
21193
21191
  };
21194
- } else (p === null || b === !1) && (H.current = 0, W(function(x) {
21192
+ } else (p === null || g === !1) && (H.current = 0, W(function(x) {
21195
21193
  var se;
21196
21194
  return e(e({}, x), _.current && (se = {}, se[_.current] = u.ReadyState.CLOSED, se));
21197
21195
  }));
21198
- }, [p, b, w, B]), (0, a.useEffect)(function() {
21196
+ }, [p, g, w, B]), (0, a.useEffect)(function() {
21199
21197
  I === u.ReadyState.OPEN && Y.current.splice(0).forEach(function(q) {
21200
21198
  B(q);
21201
21199
  });
@@ -21242,14 +21240,14 @@ function r3() {
21242
21240
  l === void 0 && (l = r.DEFAULT_OPTIONS), c === void 0 && (c = !0);
21243
21241
  var d = (0, t.useMemo)(function() {
21244
21242
  return e(e({}, l), { fromSocketIO: !0 });
21245
- }, []), f = (0, n.useWebSocket)(s, d, c), p = f.sendMessage, h = f.sendJsonMessage, b = f.lastMessage, m = f.readyState, y = f.getWebSocket, g = (0, t.useMemo)(function() {
21246
- return i(b);
21247
- }, [b]);
21243
+ }, []), f = (0, n.useWebSocket)(s, d, c), p = f.sendMessage, h = f.sendJsonMessage, g = f.lastMessage, m = f.readyState, y = f.getWebSocket, E = (0, t.useMemo)(function() {
21244
+ return i(g);
21245
+ }, [g]);
21248
21246
  return {
21249
21247
  sendMessage: p,
21250
21248
  sendJsonMessage: h,
21251
- lastMessage: g,
21252
- lastJsonMessage: g,
21249
+ lastMessage: E,
21250
+ lastJsonMessage: E,
21253
21251
  readyState: m,
21254
21252
  getWebSocket: y
21255
21253
  };
@@ -21285,7 +21283,7 @@ function a3() {
21285
21283
  withCredentials: c
21286
21284
  } }), h = (0, n.useRef)(a.EMPTY_EVENT_HANDLERS);
21287
21285
  d && (h.current = d);
21288
- var b = (0, r.useWebSocket)(u, p, l), m = b.lastMessage, y = b.readyState, g = b.getWebSocket;
21286
+ var g = (0, r.useWebSocket)(u, p, l), m = g.lastMessage, y = g.readyState, E = g.getWebSocket;
21289
21287
  return (0, n.useEffect)(function() {
21290
21288
  m != null && m.type && Object.entries(h.current).forEach(function(P) {
21291
21289
  var M = P[0], W = P[1];
@@ -21294,7 +21292,7 @@ function a3() {
21294
21292
  }, [m]), {
21295
21293
  lastEvent: m,
21296
21294
  readyState: y,
21297
- getEventSource: g
21295
+ getEventSource: E
21298
21296
  };
21299
21297
  };
21300
21298
  return zt.useEventSource = i, zt;
@@ -21346,25 +21344,25 @@ const l3 = "This conversation with a live agent has ended. Please note that a tr
21346
21344
  CONVERSATION: "CONVERSATION",
21347
21345
  FORM: "FORM"
21348
21346
  }, En = Kr({}), pd = ({ children: e, liveChatPayload: t }) => {
21349
- const { conversationScreen: n } = oe(Ye), { pushXpertMessage: r } = oe(Zt), { setHasError: a, setMode: i } = oe(Ke), [u, s] = ce(""), [l, c] = ce(!1), [, d] = ce(""), [f, p] = ce([]), [h, b] = ce(null), [m, y] = ce($t.FORM), [g, P] = ce(null), M = (j) => p((q) => [...q, j]), W = async (j) => {
21350
- const q = await s3(j.data), { conversation_id: E, event_type: ne, body: le } = q;
21347
+ const { conversationScreen: n } = oe(Ye), { pushXpertMessage: r } = oe(Zt), { setHasError: a, setMode: i } = oe(Ze), [u, s] = ce(""), [l, c] = ce(!1), [, d] = ce(""), [f, p] = ce([]), [h, g] = ce(null), [m, y] = ce($t.FORM), [E, P] = ce(null), M = (j) => p((q) => [...q, j]), W = async (j) => {
21348
+ const q = await s3(j.data), { conversation_id: b, event_type: ne, body: le } = q;
21351
21349
  switch (ne) {
21352
21350
  case "AGENT_TYPING":
21353
21351
  return te();
21354
21352
  case "CONVERSATION_ACCEPTED":
21355
21353
  return Y(le);
21356
21354
  case "CONVERSATION_CREATED":
21357
- return d(E);
21355
+ return d(b);
21358
21356
  case "CONVERSATION_ERROR":
21359
21357
  return;
21360
21358
  case "CONVERSATION_TERMINATED":
21361
- return $();
21359
+ return V();
21362
21360
  case "CONVERSATION_TRANSFERRED_TO_GROUP":
21363
21361
  return;
21364
21362
  case "CONVERSATION_TRANSFERRED_TO_AGENT":
21365
21363
  return;
21366
21364
  case "MESSAGE_ADDED":
21367
- return V(le);
21365
+ return $(le);
21368
21366
  case "PARTICIPANT_JOINED":
21369
21367
  return;
21370
21368
  case "PARTICIPANT_LEFT":
@@ -21384,15 +21382,15 @@ const l3 = "This conversation with a live agent has ended. Please note that a tr
21384
21382
  action: "sendmessage",
21385
21383
  event: "TERMINATE_CONVERSATION"
21386
21384
  });
21387
- }, $ = () => {
21385
+ }, V = () => {
21388
21386
  r({
21389
21387
  content: l3,
21390
21388
  role: Ie.INFO
21391
21389
  }), H();
21392
21390
  }, H = () => {
21393
- d(""), b(null), y($t.FORM), i(vt.XPERT);
21391
+ d(""), g(null), y($t.FORM), i(vt.XPERT);
21394
21392
  }, te = () => {
21395
- g && clearTimeout(g), c(!0);
21393
+ E && clearTimeout(E), c(!0);
21396
21394
  const j = setTimeout(() => {
21397
21395
  c(!1);
21398
21396
  }, 5e3);
@@ -21400,10 +21398,10 @@ const l3 = "This conversation with a live agent has ended. Please note that a tr
21400
21398
  }, Y = (j) => {
21401
21399
  const { displayName: q } = j;
21402
21400
  p([]), s(q ?? "An agent"), y($t.CONVERSATION);
21403
- }, V = (j) => {
21404
- const { messageId: q, text: E, timestamp: ne } = j;
21401
+ }, $ = (j) => {
21402
+ const { messageId: q, text: b, timestamp: ne } = j;
21405
21403
  M({
21406
- content: E ?? "",
21404
+ content: b ?? "",
21407
21405
  id: q ?? "",
21408
21406
  role: Ie.AGENT,
21409
21407
  timestamp: ne ? new Date(ne) : void 0
@@ -21421,7 +21419,7 @@ const l3 = "This conversation with a live agent has ended. Please note that a tr
21421
21419
  agentName: u,
21422
21420
  agentTyping: l,
21423
21421
  cancelLiveChatConnection: _,
21424
- endLiveChat: $,
21422
+ endLiveChat: V,
21425
21423
  liveChatMessages: f,
21426
21424
  pushLiveChatMessage: M,
21427
21425
  sendMessage: (j) => {
@@ -21449,12 +21447,12 @@ const l3 = "This conversation with a live agent has ended. Please note that a tr
21449
21447
  var q;
21450
21448
  try {
21451
21449
  y($t.CONNECTING);
21452
- const E = new URLSearchParams({ ...t, ...j });
21453
- E.append("url", window.location.href), b(
21454
- `${(q = n == null ? void 0 : n.liveChat) == null ? void 0 : q.socketUrl}?${E.toString()}`
21450
+ const b = new URLSearchParams({ ...t, ...j });
21451
+ b.append("url", window.location.href), g(
21452
+ `${(q = n == null ? void 0 : n.liveChat) == null ? void 0 : q.socketUrl}?${b.toString()}`
21455
21453
  );
21456
- } catch (E) {
21457
- console.error(E.message), a(!0), H();
21454
+ } catch (b) {
21455
+ console.error(b.message), a(!0), H();
21458
21456
  }
21459
21457
  },
21460
21458
  submitSurvey: () => {
@@ -21463,7 +21461,7 @@ const l3 = "This conversation with a live agent has ended. Please note that a tr
21463
21461
  icon: "check",
21464
21462
  iconColor: "#30A171",
21465
21463
  role: Ie.NOTIFICATION
21466
- }), $();
21464
+ }), V();
21467
21465
  },
21468
21466
  terminateConversation: N
21469
21467
  };
@@ -21475,7 +21473,7 @@ pd.propTypes = {
21475
21473
  };
21476
21474
  const c3 = "data:image/svg+xml,%3csvg%20xmlns='http://www.w3.org/2000/svg'%20fill='%23ffffff'%20height='48'%20viewBox='0%20-960%20960%20960'%20width='48'%3e%3cpath%20d='M120-120v-300h60v198l558-558H540v-60h300v300h-60v-198L222-180h198v60H120Z'/%3e%3c/svg%3e", d3 = "data:image/svg+xml,%3csvg%20xmlns='http://www.w3.org/2000/svg'%20fill='%23ffffff'%20height='48'%20viewBox='0%20-960%20960%20960'%20width='48'%3e%3cpath%20d='M370-287h360v-90H370v90ZM180-120q-24%200-42-18t-18-42v-600q0-24%2018-42t42-18h600q24%200%2042%2018t18%2042v600q0%2024-18%2042t-42%2018H180Zm0-60h600v-600H180v600Zm0-600v600-600Z'/%3e%3c/svg%3e";
21477
21475
  function md({ handleResizeButtonClick: e, setIsMounted: t }) {
21478
- const { isMobile: n, isNormalSize: r } = oe(Ke);
21476
+ const { isMobile: n, isNormalSize: r } = oe(Ze);
21479
21477
  if (n)
21480
21478
  return null;
21481
21479
  const a = `${r ? "Expand" : "Shrink"} Xpert dialog width`;
@@ -21514,7 +21512,7 @@ function gd({
21514
21512
  isMounted: r
21515
21513
  }) {
21516
21514
  var c;
21517
- const { conversationScreen: a } = oe(Ye), { mode: i } = oe(Ke), { setDeleteConversationModal: u, xpertMessages: s } = oe(Zt), l = i === vt.XPERT && ((c = a == null ? void 0 : a.conversationHistory) == null ? void 0 : c.allowDeletion) && !!(s != null && s.length);
21515
+ const { conversationScreen: a } = oe(Ye), { mode: i } = oe(Ze), { setDeleteConversationModal: u, xpertMessages: s } = oe(Zt), l = i === vt.XPERT && ((c = a == null ? void 0 : a.conversationHistory) == null ? void 0 : c.allowDeletion) && !!(s != null && s.length);
21518
21516
  return /* @__PURE__ */ S.jsxs(S.Fragment, { children: [
21519
21517
  l && /* @__PURE__ */ S.jsx(
21520
21518
  "button",
@@ -21619,12 +21617,12 @@ function Ed({
21619
21617
  setIsMounted: n,
21620
21618
  onClose: r
21621
21619
  }) {
21622
- var c, d, f, p, h, b, m, y, g, P, M, W, R, _, N;
21623
- const { primaryColor: a, conversationScreen: i } = oe(Ye), { isMobile: u, mode: s } = oe(Ke), { step: l } = oe(En);
21620
+ var c, d, f, p, h, g, m, y, E, P, M, W, R, _, N;
21621
+ const { primaryColor: a, conversationScreen: i } = oe(Ye), { isMobile: u, mode: s } = oe(Ze), { step: l } = oe(En);
21624
21622
  return Ne(() => {
21625
- const $ = document.getElementById("header-mobile");
21626
- return $ && ($.style.display = "none"), () => {
21627
- $ && ($.style.display = "");
21623
+ const V = document.getElementById("header-mobile");
21624
+ return V && (V.style.display = "none"), () => {
21625
+ V && (V.style.display = "");
21628
21626
  };
21629
21627
  }, []), l === $t.CONNECTING && s === vt.LIVECHAT ? null : /* @__PURE__ */ S.jsxs(
21630
21628
  "div",
@@ -21648,7 +21646,7 @@ function Ed({
21648
21646
  }
21649
21647
  }
21650
21648
  ),
21651
- ((b = (h = i == null ? void 0 : i.header) == null ? void 0 : h.logo) == null ? void 0 : b.type) === "edx" ? /* @__PURE__ */ S.jsx(
21649
+ ((g = (h = i == null ? void 0 : i.header) == null ? void 0 : h.logo) == null ? void 0 : g.type) === "edx" ? /* @__PURE__ */ S.jsx(
21652
21650
  "img",
21653
21651
  {
21654
21652
  "data-ot-ignore": "",
@@ -21661,7 +21659,7 @@ function Ed({
21661
21659
  ) : /* @__PURE__ */ S.jsx(
21662
21660
  bd,
21663
21661
  {
21664
- backgroundColor: (g = i == null ? void 0 : i.header.logo.style) == null ? void 0 : g.backgroundColor,
21662
+ backgroundColor: (E = i == null ? void 0 : i.header.logo.style) == null ? void 0 : E.backgroundColor,
21665
21663
  textColor: ((W = (M = (P = i == null ? void 0 : i.header) == null ? void 0 : P.logo) == null ? void 0 : M.style) == null ? void 0 : W.color) || "#FFFFFF"
21666
21664
  }
21667
21665
  ),
@@ -21750,7 +21748,7 @@ function f3() {
21750
21748
  }
21751
21749
  const h3 = () => {
21752
21750
  var n, r, a, i, u;
21753
- const { isMobile: e } = oe(Ke), { launchButton: t } = oe(Ye);
21751
+ const { isMobile: e } = oe(Ze), { launchButton: t } = oe(Ye);
21754
21752
  return (n = t == null ? void 0 : t.message) != null && n.enabled ? /* @__PURE__ */ S.jsx(
21755
21753
  "div",
21756
21754
  {
@@ -21802,15 +21800,15 @@ const Is = 500, m3 = [
21802
21800
  ];
21803
21801
  function yd({ onDismiss: e }) {
21804
21802
  const [t, n] = ce(""), [r, a] = ce(!1), [i, u] = ce(null), { conversationScreen: s } = oe(Ye), { endLiveChat: l, submitSurvey: c, terminateConversation: d } = oe(En), f = () => {
21805
- var b;
21806
- d(), (b = s == null ? void 0 : s.liveChat) != null && b.useSurvey ? a(!0) : l();
21803
+ var g;
21804
+ d(), (g = s == null ? void 0 : s.liveChat) != null && g.useSurvey ? a(!0) : l();
21807
21805
  }, p = () => {
21808
21806
  c({
21809
21807
  content: t,
21810
21808
  selectedOption: i
21811
21809
  });
21812
- }, h = (b) => {
21813
- n(b.target.value.slice(0, Is));
21810
+ }, h = (g) => {
21811
+ n(g.target.value.slice(0, Is));
21814
21812
  };
21815
21813
  return /* @__PURE__ */ S.jsxs("div", { className: "livechat-end-confirmation-container", children: [
21816
21814
  !r && /* @__PURE__ */ S.jsxs(S.Fragment, { children: [
@@ -21822,22 +21820,22 @@ function yd({ onDismiss: e }) {
21822
21820
  ] }),
21823
21821
  r && /* @__PURE__ */ S.jsxs(S.Fragment, { children: [
21824
21822
  /* @__PURE__ */ S.jsx("p", { children: "Before you go, let me know how I did:" }),
21825
- /* @__PURE__ */ S.jsx("div", { className: "livechat-end-confirmation-container__icon-button-container", children: m3.map(({ key: b, icon: m, text: y }) => {
21826
- const g = b === i, P = g ? { backgroundColor: "#E7E4DB", borderColor: "#767676" } : {};
21823
+ /* @__PURE__ */ S.jsx("div", { className: "livechat-end-confirmation-container__icon-button-container", children: m3.map(({ key: g, icon: m, text: y }) => {
21824
+ const E = g === i, P = E ? { backgroundColor: "#E7E4DB", borderColor: "#767676" } : {};
21827
21825
  return /* @__PURE__ */ S.jsxs(
21828
21826
  "button",
21829
21827
  {
21830
- "aria-checked": g,
21828
+ "aria-checked": E,
21831
21829
  "aria-label": y,
21832
21830
  role: "radio",
21833
21831
  style: P,
21834
- onClick: () => u(b),
21832
+ onClick: () => u(g),
21835
21833
  children: [
21836
21834
  /* @__PURE__ */ S.jsx("span", { children: m }),
21837
21835
  /* @__PURE__ */ S.jsx("p", { children: y })
21838
21836
  ]
21839
21837
  },
21840
- b
21838
+ g
21841
21839
  );
21842
21840
  }) }),
21843
21841
  i && /* @__PURE__ */ S.jsxs(S.Fragment, { children: [
@@ -21988,12 +21986,12 @@ const E3 = "data:image/svg+xml,%3csvg%20xmlns='http://www.w3.org/2000/svg'%20wid
21988
21986
  }];
21989
21987
  }, Qa = "privacy policy";
21990
21988
  function Cd() {
21991
- const { conversationScreen: e, primaryColor: t } = oe(Ye), { startLiveChat: n } = oe(En), { setMode: r } = oe(Ke), { form: a, formHeader: i, privacyPolicyLink: u, privacyPolicyText: s } = e.liveChat, [l, , c] = y3({}), [d, f] = ce(!1), { clearError: p, errors: h, setErrors: b } = T3(), m = cn(
21989
+ const { conversationScreen: e, primaryColor: t } = oe(Ye), { startLiveChat: n } = oe(En), { setMode: r } = oe(Ze), { form: a, formHeader: i, privacyPolicyLink: u, privacyPolicyText: s } = e.liveChat, [l, , c] = y3({}), [d, f] = ce(!1), { clearError: p, errors: h, setErrors: g } = T3(), m = cn(
21992
21990
  () => (s ?? "").split(Qa, 2),
21993
21991
  [s]
21994
21992
  ), y = () => {
21995
21993
  r(vt.XPERT);
21996
- }, g = () => {
21994
+ }, E = () => {
21997
21995
  p("privacyCheck"), f((R) => !R);
21998
21996
  }, P = (R, _) => {
21999
21997
  const N = R.target.value;
@@ -22006,20 +22004,20 @@ function Cd() {
22006
22004
  }, [a, n]);
22007
22005
  const W = () => {
22008
22006
  const R = a.reduce((_, N) => {
22009
- const { key: $, validations: H = [] } = N, te = l[$];
22010
- if (!te) return { ..._, [$]: "Required" };
22007
+ const { key: V, validations: H = [] } = N, te = l[V];
22008
+ if (!te) return { ..._, [V]: "Required" };
22011
22009
  if ((H == null ? void 0 : H.length) > 0)
22012
22010
  for (const Y of H)
22013
22011
  switch (Y) {
22014
22012
  case "email": {
22015
22013
  if (!b3(te))
22016
- return { ..._, [$]: "Should be email" };
22014
+ return { ..._, [V]: "Should be email" };
22017
22015
  break;
22018
22016
  }
22019
22017
  }
22020
22018
  return _;
22021
22019
  }, {});
22022
- return !d && s && (R.privacyCheck = "Required"), b(R), Object.keys(R).length === 0;
22020
+ return !d && s && (R.privacyCheck = "Required"), g(R), Object.keys(R).length === 0;
22023
22021
  };
22024
22022
  return /* @__PURE__ */ S.jsxs("div", { className: "live-chat-form", children: [
22025
22023
  i && /* @__PURE__ */ S.jsx("p", { children: i }),
@@ -22078,8 +22076,8 @@ function Cd() {
22078
22076
  borderColor: t
22079
22077
  },
22080
22078
  type: "checkbox",
22081
- onChange: g,
22082
- onKeyDown: (R) => R.key === "Enter" && g()
22079
+ onChange: E,
22080
+ onKeyDown: (R) => R.key === "Enter" && E()
22083
22081
  }
22084
22082
  ),
22085
22083
  /* @__PURE__ */ S.jsx("label", { htmlFor: "privacy-check", children: "Yes, I accept" })
@@ -22118,8 +22116,8 @@ function Sd({
22118
22116
  showMessage: a = !1,
22119
22117
  style: i = {}
22120
22118
  }) {
22121
- var b;
22122
- const { proactiveMessage: u } = oe(Ye), [s, l] = ce(!0), [c, d] = ce(!1), f = s && (!(window != null && window.OnetrustActiveGroups) || ((b = window == null ? void 0 : window.OnetrustActiveGroups) == null ? void 0 : b.includes("C0003"))) && lt.get(t) === void 0;
22119
+ var g;
22120
+ const { proactiveMessage: u } = oe(Ye), [s, l] = ce(!0), [c, d] = ce(!1), f = s && (!(window != null && window.OnetrustActiveGroups) || ((g = window == null ? void 0 : window.OnetrustActiveGroups) == null ? void 0 : g.includes("C0003"))) && lt.get(t) === void 0;
22123
22121
  Ne(() => {
22124
22122
  var m;
22125
22123
  (m = window == null ? void 0 : window.OneTrust) == null || m.OnConsentChanged(() => {
@@ -22141,9 +22139,9 @@ function Sd({
22141
22139
  const p = () => {
22142
22140
  var m;
22143
22141
  l(!1), (!(window != null && window.OnetrustActiveGroups) || (m = window == null ? void 0 : window.OnetrustActiveGroups) != null && m.includes("C0003")) && h(t, 1, 1), r();
22144
- }, h = (m, y, g) => {
22142
+ }, h = (m, y, E) => {
22145
22143
  const P = {
22146
- expires: g,
22144
+ expires: E,
22147
22145
  path: "/"
22148
22146
  };
22149
22147
  lt.set(m, y, P);
@@ -22300,26 +22298,26 @@ function xd({ submitEventExternal: e = null }) {
22300
22298
  onFeedbackSelection: f,
22301
22299
  onMessageSent: p,
22302
22300
  pushXpertMessage: h,
22303
- setXpertMessages: b,
22301
+ setXpertMessages: g,
22304
22302
  xpertMessages: m
22305
22303
  } = oe(Zt), {
22306
22304
  isMobile: y,
22307
- mode: g,
22305
+ mode: E,
22308
22306
  setDisableScroll: P,
22309
22307
  setHasError: M,
22310
22308
  setHasNewMessage: W,
22311
22309
  setIsNormalSize: R,
22312
22310
  setLoading: _,
22313
22311
  setStreaming: N
22314
- } = oe(Ke), [, $] = ce(!1), [, H] = ce(!1), [te, Y] = ce(!1), [V, L] = ce(!1), [I, w] = ce(!1), B = te || !c, G = nt(null), j = nt(null), q = lt.get(`${a}-test`) === "1";
22312
+ } = oe(Ze), [, V] = ce(!1), [, H] = ce(!1), [te, Y] = ce(!1), [$, L] = ce(!1), [I, w] = ce(!1), B = te || !c, G = nt(null), j = nt(null), q = lt.get(`${a}-test`) === "1";
22315
22313
  Ne(() => {
22316
- g === vt.XPERT && B && G.current && G.current.focus();
22317
- }, [g, B]), _3(
22314
+ E === vt.XPERT && B && G.current && G.current.focus();
22315
+ }, [E, B]), _3(
22318
22316
  (en = r == null ? void 0 : r.liveChat) == null ? void 0 : en.enabled,
22319
- V,
22317
+ $,
22320
22318
  L
22321
22319
  );
22322
- const E = st(
22320
+ const b = st(
22323
22321
  ({ name: ie, payload: Ee }) => {
22324
22322
  if (!n || !(s != null && s.enabled)) return;
22325
22323
  const Se = Ps(s == null ? void 0 : s.payloadParams, Ee);
@@ -22372,7 +22370,7 @@ function xd({ submitEventExternal: e = null }) {
22372
22370
  if (!Re.ok)
22373
22371
  throw new Error(`HTTPError: ${Re.status} ${Re.statusText}`);
22374
22372
  const Xe = await Re.json();
22375
- b(
22373
+ g(
22376
22374
  Xe.map((ke) => ({
22377
22375
  ...ke,
22378
22376
  disableFeedback: !0,
@@ -22385,7 +22383,7 @@ function xd({ submitEventExternal: e = null }) {
22385
22383
  } finally {
22386
22384
  _(!1);
22387
22385
  }
22388
- }, le = ((yn = r == null ? void 0 : r.conversationHistory) == null ? void 0 : yn.enabled) && B && !V;
22386
+ }, le = ((yn = r == null ? void 0 : r.conversationHistory) == null ? void 0 : yn.enabled) && B && !$;
22389
22387
  A3(
22390
22388
  () => le && ne()
22391
22389
  ), Ne(() => {
@@ -22393,7 +22391,7 @@ function xd({ submitEventExternal: e = null }) {
22393
22391
  if (n)
22394
22392
  return s != null && s.enabled && (ie = setInterval(() => {
22395
22393
  var qe;
22396
- ((qe = window.analytics) != null && qe.track || e) && (j.current = window.analytics, clearInterval(ie), clearTimeout(Ee), $(!0));
22394
+ ((qe = window.analytics) != null && qe.track || e) && (j.current = window.analytics, clearInterval(ie), clearTimeout(Ee), V(!0));
22397
22395
  }, 1e3), Ee = setTimeout(() => {
22398
22396
  clearInterval(ie);
22399
22397
  }, 6e4)), () => {
@@ -22422,7 +22420,7 @@ function xd({ submitEventExternal: e = null }) {
22422
22420
  ]);
22423
22421
  const x = (ie) => {
22424
22422
  var Ee, Se;
22425
- (Ee = ie == null ? void 0 : ie.target) != null && Ee.href && E({
22423
+ (Ee = ie == null ? void 0 : ie.target) != null && Ee.href && b({
22426
22424
  name: `${s.prefix}.bi.xpert.chatbot.popup.chat.message.link.clicked`,
22427
22425
  payload: {
22428
22426
  category: "2u",
@@ -22435,7 +22433,7 @@ function xd({ submitEventExternal: e = null }) {
22435
22433
  if (C3(l == null ? void 0 : l.experimentName), !n || l != null && l.enabled && !(l != null && l.experimentName) && !q || s != null && s.enabled && (s != null && s.prefix) && !((Nt = j == null ? void 0 : j.current) != null && Nt.track) && !e)
22436
22434
  return null;
22437
22435
  const se = (ie, Ee) => {
22438
- E({
22436
+ b({
22439
22437
  name: `${s.prefix}.bi.xpert.chatbot.popup.chat.message.response`,
22440
22438
  payload: {
22441
22439
  category: "2u",
@@ -22454,7 +22452,7 @@ function xd({ submitEventExternal: e = null }) {
22454
22452
  conversationByteSize: F,
22455
22453
  isStreaming: X
22456
22454
  }) => {
22457
- E({
22455
+ b({
22458
22456
  name: `${s.prefix}.bi.xpert.chatbot.popup.chat.message.elapsed.seconds`,
22459
22457
  payload: {
22460
22458
  category: "2u",
@@ -22537,7 +22535,7 @@ function xd({ submitEventExternal: e = null }) {
22537
22535
  isStreaming: !0
22538
22536
  });
22539
22537
  }
22540
- await v3(), b((ze) => {
22538
+ await v3(), g((ze) => {
22541
22539
  const Vt = [...ze];
22542
22540
  return Vt.splice(
22543
22541
  Vt.length - rt.length,
@@ -22568,7 +22566,7 @@ function xd({ submitEventExternal: e = null }) {
22568
22566
  const Se = /* @__PURE__ */ new Date();
22569
22567
  W(!1), M(!1);
22570
22568
  const qe = m.filter((ue) => ue.role === Ie.USER).length + 1;
22571
- if (E({
22569
+ if (b({
22572
22570
  name: `${s.prefix}.bi.xpert.chatbot.popup.chat.message.sent`,
22573
22571
  payload: {
22574
22572
  category: "2u",
@@ -22627,7 +22625,7 @@ function xd({ submitEventExternal: e = null }) {
22627
22625
  _(!1), M(!0), console.error(Se);
22628
22626
  }
22629
22627
  }, ve = () => {
22630
- L(!1), Y(!0), R(!0), ne(), E({
22628
+ L(!1), Y(!0), R(!0), ne(), b({
22631
22629
  name: `${s.prefix}.bi.xpert.chatbot.action.button.clicked`,
22632
22630
  payload: {
22633
22631
  category: "2u",
@@ -22636,7 +22634,7 @@ function xd({ submitEventExternal: e = null }) {
22636
22634
  }
22637
22635
  });
22638
22636
  }, Je = (ie) => {
22639
- E({
22637
+ b({
22640
22638
  name: `${s.prefix}.bi.xpert.chatbot.${ie ? "normal" : "expand"}.size.button.clicked`,
22641
22639
  payload: {
22642
22640
  category: "2u",
@@ -22645,7 +22643,7 @@ function xd({ submitEventExternal: e = null }) {
22645
22643
  }
22646
22644
  }), R(ie);
22647
22645
  }, ft = () => {
22648
- Y(!0), R(!0), ne(), E({
22646
+ Y(!0), R(!0), ne(), b({
22649
22647
  name: `${s.prefix}.bi.xpert.chatbot.proactive.message.clicked`,
22650
22648
  payload: {
22651
22649
  category: "2u",
@@ -22654,7 +22652,7 @@ function xd({ submitEventExternal: e = null }) {
22654
22652
  }
22655
22653
  });
22656
22654
  }, It = () => {
22657
- E({
22655
+ b({
22658
22656
  name: `${s.prefix}.bi.xpert.chatbot.proactive.message.closed`,
22659
22657
  payload: {
22660
22658
  category: "2u",
@@ -22663,7 +22661,7 @@ function xd({ submitEventExternal: e = null }) {
22663
22661
  }
22664
22662
  });
22665
22663
  }, Un = () => {
22666
- Y(!1), w(!1), E({
22664
+ Y(!1), w(!1), b({
22667
22665
  name: `${s.prefix}.bi.xpert.chatbot.popup.chat.minimized`,
22668
22666
  payload: {
22669
22667
  category: "2u",
@@ -22676,7 +22674,7 @@ function xd({ submitEventExternal: e = null }) {
22676
22674
  await f({ index: ie, type: Ee }), P(!1);
22677
22675
  return;
22678
22676
  }
22679
- const Se = m.map((qe, F) => ie === F ? (E({
22677
+ const Se = m.map((qe, F) => ie === F ? (b({
22680
22678
  name: `${s.prefix}.bi.xpert.chatbot.feedback.thumbs.${Ee.toLowerCase()}.clicked`,
22681
22679
  payload: {
22682
22680
  category: "2u",
@@ -22690,7 +22688,7 @@ function xd({ submitEventExternal: e = null }) {
22690
22688
  ...qe,
22691
22689
  feedbackThumbType: Ee
22692
22690
  }) : qe);
22693
- b(Se), P(!1);
22691
+ g(Se), P(!1);
22694
22692
  }, Jt = (Bt = i == null ? void 0 : i.animatedGraduate) == null ? void 0 : Bt.enabled, Tn = u != null && u.enabled ? y ? (Ht = u == null ? void 0 : u.style) == null ? void 0 : Ht.mobile : u == null ? void 0 : u.style : null;
22695
22693
  return (
22696
22694
  // do not remove this class as it's needed to turn off chatbot
@@ -22742,7 +22740,7 @@ function xd({ submitEventExternal: e = null }) {
22742
22740
  }
22743
22741
  ),
22744
22742
  c && /* @__PURE__ */ S.jsx(h3, {}),
22745
- B && !V && /* @__PURE__ */ S.jsx(el, { isMounted: I, children: /* @__PURE__ */ S.jsx(
22743
+ B && !$ && /* @__PURE__ */ S.jsx(el, { isMounted: I, children: /* @__PURE__ */ S.jsx(
22746
22744
  "div",
22747
22745
  {
22748
22746
  ref: d,
@@ -22758,7 +22756,7 @@ function xd({ submitEventExternal: e = null }) {
22758
22756
  }
22759
22757
  ),
22760
22758
  /* @__PURE__ */ S.jsx(f3, {}),
22761
- g === vt.XPERT && /* @__PURE__ */ S.jsx(
22759
+ E === vt.XPERT && /* @__PURE__ */ S.jsx(
22762
22760
  fd,
22763
22761
  {
22764
22762
  handleFeedbackThumbSelection: jn,
@@ -22767,10 +22765,10 @@ function xd({ submitEventExternal: e = null }) {
22767
22765
  inputRef: G,
22768
22766
  isTestUser: q,
22769
22767
  setLiveChatOpen: L,
22770
- submitEvent: E
22768
+ submitEvent: b
22771
22769
  }
22772
22770
  ),
22773
- g === vt.LIVECHAT && /* @__PURE__ */ S.jsx(Ad, {})
22771
+ E === vt.LIVECHAT && /* @__PURE__ */ S.jsx(Ad, {})
22774
22772
  ] })
22775
22773
  }
22776
22774
  ) })
@@ -22804,11 +22802,11 @@ const vd = ({
22804
22802
  onMessageSent: l
22805
22803
  }, h = {
22806
22804
  liveChatPayload: u
22807
- }, b = {
22805
+ }, g = {
22808
22806
  externalLoading: a,
22809
22807
  externalStreaming: i
22810
22808
  };
22811
- return /* @__PURE__ */ S.jsx(Ms, { ...f, children: /* @__PURE__ */ S.jsx(Us, { ...b, children: /* @__PURE__ */ S.jsx(Hs, { ...p, children: /* @__PURE__ */ S.jsx(pd, { ...h, children: e }) }) }) });
22809
+ return /* @__PURE__ */ S.jsx(Ms, { ...f, children: /* @__PURE__ */ S.jsx(Us, { ...g, children: /* @__PURE__ */ S.jsx(Hs, { ...p, children: /* @__PURE__ */ S.jsx(pd, { ...h, children: e }) }) }) });
22812
22810
  };
22813
22811
  vd.propTypes = {
22814
22812
  children: v.element,