@2uinc/frontend-component-xpert-chatbot 1.33.3 → 1.33.4

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 +575 -553
  2. package/package.json +1 -1
@@ -64,8 +64,8 @@ function y0() {
64
64
  return ba = a() ? Object.assign : function(i, u) {
65
65
  for (var s, l = r(i), c, d = 1; d < arguments.length; d++) {
66
66
  s = Object(arguments[d]);
67
- for (var f in s)
68
- t.call(s, f) && (l[f] = s[f]);
67
+ for (var h in s)
68
+ t.call(s, h) && (l[h] = s[h]);
69
69
  if (e) {
70
70
  c = e(s);
71
71
  for (var p = 0; p < c.length; p++)
@@ -94,11 +94,11 @@ function _0() {
94
94
  }
95
95
  var r = e.__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED.ReactCurrentOwner, a = Object.prototype.hasOwnProperty, i = { key: !0, ref: !0, __self: !0, __source: !0 };
96
96
  function u(s, l, c) {
97
- var d, f = {}, p = null, h = null;
98
- c !== void 0 && (p = "" + c), l.key !== void 0 && (p = "" + l.key), l.ref !== void 0 && (h = l.ref);
99
- for (d in l) a.call(l, d) && !i.hasOwnProperty(d) && (f[d] = l[d]);
100
- if (s && s.defaultProps) for (d in l = s.defaultProps, l) f[d] === void 0 && (f[d] = l[d]);
101
- return { $$typeof: t, type: s, key: p, ref: h, props: f, _owner: r.current };
97
+ var d, h = {}, p = null, f = null;
98
+ c !== void 0 && (p = "" + c), l.key !== void 0 && (p = "" + l.key), l.ref !== void 0 && (f = l.ref);
99
+ for (d in l) a.call(l, d) && !i.hasOwnProperty(d) && (h[d] = l[d]);
100
+ if (s && s.defaultProps) for (d in l = s.defaultProps, l) h[d] === void 0 && (h[d] = l[d]);
101
+ return { $$typeof: t, type: s, key: p, ref: f, props: h, _owner: r.current };
102
102
  }
103
103
  return yn.jsx = u, yn.jsxs = u, yn;
104
104
  }
@@ -194,8 +194,8 @@ function x0() {
194
194
  function n() {
195
195
  }
196
196
  return n.resetWarningCache = t, ya = function() {
197
- function r(u, s, l, c, d, f) {
198
- if (f !== e) {
197
+ function r(u, s, l, c, d, h) {
198
+ if (h !== e) {
199
199
  var p = new Error(
200
200
  "Calling PropTypes validators directly is not supported by the `prop-types` package. Use PropTypes.checkPropTypes() to call them. Read more at http://fb.me/use-check-prop-types"
201
201
  );
@@ -243,8 +243,8 @@ Xn.exports;
243
243
  var Su;
244
244
  function O0() {
245
245
  return Su || (Su = 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]", T = "[object GeneratorFunction]", m = "[object Map]", _ = "[object Number]", E = "[object Null]", P = "[object Object]", F = "[object Proxy]", X = "[object RegExp]", D = "[object Set]", y = "[object String]", k = "[object Undefined]", W = "[object WeakMap]", M = "[object ArrayBuffer]", Q = "[object DataView]", q = "[object Float32Array]", $ = "[object Float64Array]", L = "[object Int8Array]", I = "[object Int16Array]", R = "[object Int32Array]", H = "[object Uint8Array]", V = "[object Uint8ClampedArray]", j = "[object Uint16Array]", z = "[object Uint32Array]", g = /[\\^$.*+?()[\]{}|]/g, ne = /^\[object .+?Constructor\]$/, ue = /^(?:0|[1-9]\d*)$/, S = {};
247
- S[q] = S[$] = S[L] = S[I] = S[R] = S[H] = S[V] = S[j] = S[z] = !0, S[s] = S[l] = S[M] = S[d] = S[Q] = S[f] = S[p] = S[h] = S[m] = S[_] = S[P] = S[X] = S[D] = S[y] = S[W] = !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]", h = "[object Date]", p = "[object Error]", f = "[object Function]", T = "[object GeneratorFunction]", m = "[object Map]", _ = "[object Number]", E = "[object Null]", P = "[object Object]", F = "[object Proxy]", X = "[object RegExp]", D = "[object Set]", y = "[object String]", k = "[object Undefined]", W = "[object WeakMap]", M = "[object ArrayBuffer]", Q = "[object DataView]", q = "[object Float32Array]", $ = "[object Float64Array]", L = "[object Int8Array]", I = "[object Int16Array]", R = "[object Int32Array]", H = "[object Uint8Array]", V = "[object Uint8ClampedArray]", j = "[object Uint16Array]", z = "[object Uint32Array]", g = /[\\^$.*+?()[\]{}|]/g, ne = /^\[object .+?Constructor\]$/, ue = /^(?:0|[1-9]\d*)$/, S = {};
247
+ S[q] = S[$] = S[L] = S[I] = S[R] = S[H] = S[V] = S[j] = S[z] = !0, S[s] = S[l] = S[M] = S[d] = S[Q] = S[h] = S[p] = S[f] = S[m] = S[_] = S[P] = S[X] = S[D] = S[y] = S[W] = !1;
248
248
  var oe = typeof _r == "object" && _r && _r.Object === Object && _r, Te = typeof self == "object" && self && self.Object === Object && self, me = oe || Te || Function("return this")(), xe = t && !t.nodeType && t, ve = xe && !0 && e && !e.nodeType && e, Me = ve && ve.exports === xe, Oe = Me && oe.process, We = function() {
249
249
  try {
250
250
  var A = ve && ve.require && ve.require("util").types;
@@ -672,7 +672,7 @@ function O0() {
672
672
  if (!Jt(A))
673
673
  return !1;
674
674
  var N = Er(A);
675
- return N == h || N == T || N == c || N == F;
675
+ return N == f || N == T || N == c || N == F;
676
676
  }
677
677
  function hu(A) {
678
678
  return typeof A == "number" && A > -1 && A % 1 == 0 && A <= u;
@@ -771,6 +771,9 @@ const xs = /* @__PURE__ */ Dt(I0), N0 = {
771
771
  },
772
772
  container: null
773
773
  },
774
+ input: {
775
+ maxLength: 150
776
+ },
774
777
  systemMessage: "Hi there! šŸ‘‹ I'm Xpert, what can I help you with? I'm available to answer questions about technical issues, navigating the Digital Campus, or using Digital Campus features.",
775
778
  prompts: null,
776
779
  userMessageBubble: {
@@ -884,6 +887,9 @@ const xs = /* @__PURE__ */ Dt(I0), N0 = {
884
887
  },
885
888
  container: null
886
889
  },
890
+ input: {
891
+ maxLength: 150
892
+ },
887
893
  systemMessage: "Hi there! šŸ‘‹ I'm Xpert, what can I help you with? I'm available to answer questions about technical issues, navigating the Digital Campus, or using Digital Campus features.",
888
894
  prompts: null,
889
895
  userMessageBubble: {
@@ -1002,6 +1008,9 @@ const xs = /* @__PURE__ */ Dt(I0), N0 = {
1002
1008
  }
1003
1009
  }
1004
1010
  },
1011
+ input: {
1012
+ maxLength: 150
1013
+ },
1005
1014
  systemMessage: null,
1006
1015
  prompts: null,
1007
1016
  userMessageBubble: null,
@@ -1085,6 +1094,9 @@ const xs = /* @__PURE__ */ Dt(I0), N0 = {
1085
1094
  }
1086
1095
  }
1087
1096
  },
1097
+ input: {
1098
+ maxLength: 150
1099
+ },
1088
1100
  systemMessage: "Hi there! šŸ‘‹ I'm Xpert, what can I help you with?",
1089
1101
  prompts: null,
1090
1102
  userMessageBubble: {
@@ -1183,6 +1195,9 @@ const xs = /* @__PURE__ */ Dt(I0), N0 = {
1183
1195
  },
1184
1196
  container: null
1185
1197
  },
1198
+ input: {
1199
+ maxLength: 150
1200
+ },
1186
1201
  systemMessage: "Hi there! šŸ‘‹ I’m Xpert. How may I assist you in navigating your Online Learning Campus today?",
1187
1202
  prompts: null,
1188
1203
  userMessageBubble: {
@@ -1270,6 +1285,9 @@ const xs = /* @__PURE__ */ Dt(I0), N0 = {
1270
1285
  },
1271
1286
  container: null
1272
1287
  },
1288
+ input: {
1289
+ maxLength: 150
1290
+ },
1273
1291
  systemMessage: "Hi there! šŸ‘‹ I'm Xpert, what can I help you with? I'm available to answer questions about things like billing, registration, and payment options.",
1274
1292
  prompts: null,
1275
1293
  userMessageBubble: {
@@ -1358,6 +1376,9 @@ const xs = /* @__PURE__ */ Dt(I0), N0 = {
1358
1376
  },
1359
1377
  container: null
1360
1378
  },
1379
+ input: {
1380
+ maxLength: 150
1381
+ },
1361
1382
  systemMessage: null,
1362
1383
  prompts: [
1363
1384
  { id: 1, text: "What's the application process?" },
@@ -1432,8 +1453,8 @@ const xs = /* @__PURE__ */ Dt(I0), N0 = {
1432
1453
  );
1433
1454
  return;
1434
1455
  }
1435
- const h = await p.json();
1436
- l({ ...h, id: t });
1456
+ const f = await p.json();
1457
+ l({ ...f, id: t });
1437
1458
  } catch (p) {
1438
1459
  console.error("Unexpected error loading the chatbot configuration", p);
1439
1460
  }
@@ -1451,13 +1472,13 @@ const xs = /* @__PURE__ */ Dt(I0), N0 = {
1451
1472
  const d = or(
1452
1473
  () => xs({ id: "generic", ...s }, n ?? {}),
1453
1474
  [n, s]
1454
- ), f = or(() => t || r ? i : !!n, [t, i, n, r]);
1475
+ ), h = or(() => t || r ? i : !!n, [t, i, n, r]);
1455
1476
  return /* @__PURE__ */ v.jsx(
1456
1477
  He.Provider,
1457
1478
  {
1458
1479
  value: {
1459
1480
  ...d,
1460
- configurationLoaded: f,
1481
+ configurationLoaded: h,
1461
1482
  widgetMode: a
1462
1483
  },
1463
1484
  children: e
@@ -1588,8 +1609,8 @@ const Gt = Wr({}), Os = x.shape({
1588
1609
  onFeedbackSelection: n,
1589
1610
  onMessageSent: r
1590
1611
  }) => {
1591
- const a = pt(null), { id: i } = se(He), [u, s] = de(null), [l, c] = de(!1), [d, f] = de([]), p = Et(() => {
1592
- s(null), c(!1), f([]), ft.remove(`${i}-conversation-history-id`);
1612
+ const a = pt(null), { id: i } = se(He), [u, s] = de(null), [l, c] = de(!1), [d, h] = de([]), p = Et(() => {
1613
+ s(null), c(!1), h([]), ft.remove(`${i}-conversation-history-id`);
1593
1614
  }, [i, s]), T = {
1594
1615
  contentRef: a,
1595
1616
  conversationId: u,
@@ -1597,10 +1618,10 @@ const Gt = Wr({}), Os = x.shape({
1597
1618
  deleteConversationHistory: p,
1598
1619
  onFeedbackSelection: n,
1599
1620
  onMessageSent: r,
1600
- pushXpertMessage: (m) => f((_) => [..._, m]),
1621
+ pushXpertMessage: (m) => h((_) => [..._, m]),
1601
1622
  setConversationId: s,
1602
1623
  setDeleteConversationModal: c,
1603
- setXpertMessages: f,
1624
+ setXpertMessages: h,
1604
1625
  xpertMessages: t ?? d
1605
1626
  };
1606
1627
  return /* @__PURE__ */ v.jsx(Gt.Provider, { value: T, children: e });
@@ -1625,14 +1646,14 @@ const xu = 991, B0 = () => {
1625
1646
  LIVECHAT: "LIVECHAT",
1626
1647
  XPERT: "XPERT"
1627
1648
  }, Ze = Wr({}), Ns = ({ children: e }) => {
1628
- const [t, n] = de(!1), [r, a] = de(!1), [i, u] = de(!1), [s, l] = de(!0), [c, d] = de(!1), [f, p] = de(jt.XPERT), h = B0(), T = {
1649
+ const [t, n] = de(!1), [r, a] = de(!1), [i, u] = de(!1), [s, l] = de(!0), [c, d] = de(!1), [h, p] = de(jt.XPERT), f = B0(), T = {
1629
1650
  disabledScroll: t,
1630
1651
  hasError: r,
1631
1652
  hasNewMessage: i,
1632
- isMobile: h,
1633
- isNormalSize: s || h,
1653
+ isMobile: f,
1654
+ isNormalSize: s || f,
1634
1655
  loading: c,
1635
- mode: f,
1656
+ mode: h,
1636
1657
  setDisableScroll: n,
1637
1658
  setHasError: a,
1638
1659
  setHasNewMessage: u,
@@ -1727,10 +1748,10 @@ const j0 = 1500, q0 = `The parent container is wider than the chatbot launch but
1727
1748
  eyes follow your mouse when you hover near it.`, Ls = ({
1728
1749
  handleFloatingActionButtonClick: e = null
1729
1750
  }) => {
1730
- var h, T, m, _;
1751
+ var f, T, m, _;
1731
1752
  const { id: t, launchButton: n } = se(He), { isMobile: r } = se(Ze), a = !ft.get(
1732
1753
  `${t}-proactive-message-xpert-chatbot`
1733
- ), i = pt(null), u = pt(!1), s = a ? (h = n == null ? void 0 : n.animatedGraduate) == null ? void 0 : h.delayMs : ((T = n == null ? void 0 : n.animatedGraduate) == null ? void 0 : T.delayMs) * 2, [l, c] = de(!1), d = window.matchMedia(
1754
+ ), i = pt(null), u = pt(!1), s = a ? (f = n == null ? void 0 : n.animatedGraduate) == null ? void 0 : f.delayMs : ((T = n == null ? void 0 : n.animatedGraduate) == null ? void 0 : T.delayMs) * 2, [l, c] = de(!1), d = window.matchMedia(
1734
1755
  `(max-width: ${j0}px)`
1735
1756
  ).matches;
1736
1757
  Be(() => {
@@ -1759,7 +1780,7 @@ eyes follow your mouse when you hover near it.`, Ls = ({
1759
1780
  window.removeEventListener("mousemove", E);
1760
1781
  };
1761
1782
  }, [d]);
1762
- const f = () => {
1783
+ const h = () => {
1763
1784
  u.current = !0;
1764
1785
  }, p = () => {
1765
1786
  u.current = !1;
@@ -1770,7 +1791,7 @@ eyes follow your mouse when you hover near it.`, Ls = ({
1770
1791
  role: "region",
1771
1792
  "aria-label": "animated graduate region",
1772
1793
  className: d ? "" : "xpert_chatbot__animated_graduate__eyes_follow_mouse_region",
1773
- onMouseEnter: d ? null : f,
1794
+ onMouseEnter: d ? null : h,
1774
1795
  onMouseLeave: d ? null : p,
1775
1796
  children: [
1776
1797
  !d && /* @__PURE__ */ v.jsx("div", { className: "xpert_chatbot__a11y-sr-only", children: q0 }),
@@ -2000,13 +2021,13 @@ var ws = ["input:not([inert])", "select:not([inert])", "textarea:not([inert])",
2000
2021
  } else {
2001
2022
  var d = on.call(u, Fr);
2002
2023
  d && r.filter(u) && (n || !t.includes(u)) && a.push(u);
2003
- var f = u.shadowRoot || // check for an undisclosed shadow
2004
- typeof r.getShadowRoot == "function" && r.getShadowRoot(u), p = !Hr(f, !1) && (!r.shadowRootFilter || r.shadowRootFilter(u));
2005
- if (f && p) {
2006
- var h = e(f === !0 ? u.children : f.children, !0, r);
2007
- r.flatten ? a.push.apply(a, h) : a.push({
2024
+ var h = u.shadowRoot || // check for an undisclosed shadow
2025
+ typeof r.getShadowRoot == "function" && r.getShadowRoot(u), p = !Hr(h, !1) && (!r.shadowRootFilter || r.shadowRootFilter(u));
2026
+ if (h && p) {
2027
+ var f = e(h === !0 ? u.children : h.children, !0, r);
2028
+ r.flatten ? a.push.apply(a, f) : a.push({
2008
2029
  scopeParent: u,
2009
- candidates: h
2030
+ candidates: f
2010
2031
  });
2011
2032
  } else
2012
2033
  i.unshift.apply(i, u.children);
@@ -2062,8 +2083,8 @@ var ws = ["input:not([inert])", "select:not([inert])", "textarea:not([inert])",
2062
2083
  if (r && r !== t) {
2063
2084
  var u, s, l;
2064
2085
  for (i = !!((u = a) !== null && u !== void 0 && (s = u.ownerDocument) !== null && s !== void 0 && s.contains(a) || t != null && (l = t.ownerDocument) !== null && l !== void 0 && l.contains(t)); !i && a; ) {
2065
- var c, d, f;
2066
- r = Br(a), a = (c = r) === null || c === void 0 ? void 0 : c.host, i = !!((d = a) !== null && d !== void 0 && (f = d.ownerDocument) !== null && f !== void 0 && f.contains(a));
2086
+ var c, d, h;
2087
+ r = Br(a), a = (c = r) === null || c === void 0 ? void 0 : c.host, i = !!((d = a) !== null && d !== void 0 && (h = d.ownerDocument) !== null && h !== void 0 && h.contains(a));
2067
2088
  }
2068
2089
  }
2069
2090
  return i;
@@ -2346,7 +2367,7 @@ var ku = {
2346
2367
  throw new Error("`".concat(L, "` as selector refers to no known node"));
2347
2368
  }
2348
2369
  return g;
2349
- }, f = function() {
2370
+ }, h = function() {
2350
2371
  var L = d("initialFocus", {
2351
2372
  hasFallback: !0
2352
2373
  });
@@ -2418,14 +2439,14 @@ var ku = {
2418
2439
  return L.posTabIndexesFound;
2419
2440
  }) && u.containerGroups.length > 1)
2420
2441
  throw new Error("At least one node with a positive tabindex was found in one of your focus-trap's multiple containers. Positive tabindexes are only supported in single-container focus-traps.");
2421
- }, h = function(L) {
2442
+ }, f = function(L) {
2422
2443
  var I = L.activeElement;
2423
2444
  if (I)
2424
- return I.shadowRoot && I.shadowRoot.activeElement !== null ? h(I.shadowRoot) : I;
2445
+ return I.shadowRoot && I.shadowRoot.activeElement !== null ? f(I.shadowRoot) : I;
2425
2446
  }, T = function(L) {
2426
- if (L !== !1 && L !== h(document)) {
2447
+ if (L !== !1 && L !== f(document)) {
2427
2448
  if (!L || !L.focus) {
2428
- T(f());
2449
+ T(h());
2429
2450
  return;
2430
2451
  }
2431
2452
  L.focus({
@@ -2513,7 +2534,7 @@ var ku = {
2513
2534
  // outside the trap causing the focus escape we're trying to fix)
2514
2535
  target: u.mostRecentlyFocusedNode,
2515
2536
  isBackward: i.isKeyBackward(u.recentNavEvent)
2516
- })), T(H || u.mostRecentlyFocusedNode || f());
2537
+ })), T(H || u.mostRecentlyFocusedNode || h());
2517
2538
  }
2518
2539
  u.recentNavEvent = void 0;
2519
2540
  }, F = function(L) {
@@ -2534,8 +2555,8 @@ var ku = {
2534
2555
  }, k = function() {
2535
2556
  if (u.active)
2536
2557
  return ku.activateTrap(a, s), u.delayInitialFocusTimer = i.delayInitialFocus ? Lu(function() {
2537
- T(f());
2538
- }) : T(f()), r.addEventListener("focusin", P, !0), r.addEventListener("mousedown", E, {
2558
+ T(h());
2559
+ }) : T(h()), r.addEventListener("focusin", P, !0), r.addEventListener("mousedown", E, {
2539
2560
  capture: !0,
2540
2561
  passive: !1
2541
2562
  }), r.addEventListener("touchstart", E, {
@@ -2558,7 +2579,7 @@ var ku = {
2558
2579
  return V === u.mostRecentlyFocusedNode;
2559
2580
  });
2560
2581
  });
2561
- I && T(f());
2582
+ I && T(h());
2562
2583
  }, Q = typeof window < "u" && "MutationObserver" in window ? new MutationObserver(M) : void 0, q = function() {
2563
2584
  Q && (Q.disconnect(), u.active && !u.paused && u.containers.map(function(L) {
2564
2585
  Q.observe(L, {
@@ -2700,14 +2721,14 @@ function xf() {
2700
2721
  return W.__proto__ = M, W;
2701
2722
  }, d(y, k);
2702
2723
  }
2703
- function f(y, k, W) {
2724
+ function h(y, k, W) {
2704
2725
  return (k = p(k)) in y ? Object.defineProperty(y, k, { value: W, enumerable: !0, configurable: !0, writable: !0 }) : y[k] = W, y;
2705
2726
  }
2706
2727
  function p(y) {
2707
- var k = h(y, "string");
2728
+ var k = f(y, "string");
2708
2729
  return e(k) == "symbol" ? k : k + "";
2709
2730
  }
2710
- function h(y, k) {
2731
+ function f(y, k) {
2711
2732
  if (e(y) != "object" || !y) return y;
2712
2733
  var W = y[Symbol.toPrimitive];
2713
2734
  if (W !== void 0) {
@@ -2720,7 +2741,7 @@ function xf() {
2720
2741
  var T = Tt, m = /* @__PURE__ */ Ss(), _ = Af, E = _.createFocusTrap, P = Sf, F = P.isFocusable, X = /* @__PURE__ */ function(y) {
2721
2742
  function k(W) {
2722
2743
  var M;
2723
- t(this, k), M = a(this, k, [W]), f(M, "getNodeForOption", function($) {
2744
+ t(this, k), M = a(this, k, [W]), h(M, "getNodeForOption", function($) {
2724
2745
  var L, I = (L = this.internalOptions[$]) !== null && L !== void 0 ? L : this.originalOptions[$];
2725
2746
  if (typeof I == "function") {
2726
2747
  for (var R = arguments.length, H = new Array(R > 1 ? R - 1 : 0), V = 1; V < R; V++)
@@ -3368,12 +3389,12 @@ function qf(e, t) {
3368
3389
  ));
3369
3390
  });
3370
3391
  const u = r.width, s = r.height, l = a.width, c = a.height;
3371
- let d, f;
3372
- u === null ? (f = s === null ? "1em" : s === "auto" ? c : s, d = Mu(f, l / c)) : (d = u === "auto" ? l : u, f = s === null ? Mu(d, c / l) : s === "auto" ? c : s);
3373
- const p = {}, h = (m, _) => {
3392
+ let d, h;
3393
+ u === null ? (h = s === null ? "1em" : s === "auto" ? c : s, d = Mu(h, l / c)) : (d = u === "auto" ? l : u, h = s === null ? Mu(d, c / l) : s === "auto" ? c : s);
3394
+ const p = {}, f = (m, _) => {
3374
3395
  jf(_) || (p[m] = _.toString());
3375
3396
  };
3376
- h("width", d), h("height", f);
3397
+ f("width", d), f("height", h);
3377
3398
  const T = [a.left, a.top, l, c];
3378
3399
  return p.viewBox = T.join(" "), {
3379
3400
  attributes: p,
@@ -3572,12 +3593,12 @@ function nh(e) {
3572
3593
  const i = a.provider, u = a.prefix, s = a.name, l = n[i] || (n[i] = /* @__PURE__ */ Object.create(null)), c = l[u] || (l[u] = On(i, u));
3573
3594
  let d;
3574
3595
  s in c.icons ? d = t.loaded : u === "" || c.missing.has(s) ? d = t.missing : d = t.pending;
3575
- const f = {
3596
+ const h = {
3576
3597
  provider: i,
3577
3598
  prefix: u,
3578
3599
  name: s
3579
3600
  };
3580
- d.push(f);
3601
+ d.push(h);
3581
3602
  }), t;
3582
3603
  }
3583
3604
  function Js(e, t) {
@@ -3667,10 +3688,10 @@ function sh(e, t, n, r) {
3667
3688
  } else
3668
3689
  u = e.resources.slice(i).concat(e.resources.slice(0, i));
3669
3690
  const s = Date.now();
3670
- let l = "pending", c = 0, d, f = null, p = [], h = [];
3671
- typeof r == "function" && h.push(r);
3691
+ let l = "pending", c = 0, d, h = null, p = [], f = [];
3692
+ typeof r == "function" && f.push(r);
3672
3693
  function T() {
3673
- f && (clearTimeout(f), f = null);
3694
+ h && (clearTimeout(h), h = null);
3674
3695
  }
3675
3696
  function m() {
3676
3697
  l === "pending" && (l = "aborted"), T(), p.forEach((y) => {
@@ -3678,7 +3699,7 @@ function sh(e, t, n, r) {
3678
3699
  }), p = [];
3679
3700
  }
3680
3701
  function _(y, k) {
3681
- k && (h = []), typeof y == "function" && h.push(y);
3702
+ k && (f = []), typeof y == "function" && f.push(y);
3682
3703
  }
3683
3704
  function E() {
3684
3705
  return {
@@ -3692,7 +3713,7 @@ function sh(e, t, n, r) {
3692
3713
  };
3693
3714
  }
3694
3715
  function P() {
3695
- l = "failed", h.forEach((y) => {
3716
+ l = "failed", f.forEach((y) => {
3696
3717
  y(void 0, d);
3697
3718
  });
3698
3719
  }
@@ -3725,7 +3746,7 @@ function sh(e, t, n, r) {
3725
3746
  const Q = e.resources.indexOf(y.resource);
3726
3747
  Q !== -1 && Q !== e.index && (e.index = Q);
3727
3748
  }
3728
- l = "completed", h.forEach((Q) => {
3749
+ l = "completed", f.forEach((Q) => {
3729
3750
  Q(W);
3730
3751
  });
3731
3752
  }
@@ -3736,7 +3757,7 @@ function sh(e, t, n, r) {
3736
3757
  const y = u.shift();
3737
3758
  if (y === void 0) {
3738
3759
  if (p.length) {
3739
- f = setTimeout(() => {
3760
+ h = setTimeout(() => {
3740
3761
  T(), l === "pending" && (F(), P());
3741
3762
  }, e.timeout);
3742
3763
  return;
@@ -3751,7 +3772,7 @@ function sh(e, t, n, r) {
3751
3772
  X(k, W, M);
3752
3773
  }
3753
3774
  };
3754
- p.push(k), c++, f = setTimeout(D, e.rotate), n(y, t, k.callback);
3775
+ p.push(k), c++, h = setTimeout(D, e.rotate), n(y, t, k.callback);
3755
3776
  }
3756
3777
  return setTimeout(D), E;
3757
3778
  }
@@ -3769,8 +3790,8 @@ function el(e) {
3769
3790
  t,
3770
3791
  s,
3771
3792
  l,
3772
- (f, p) => {
3773
- r(), c && c(f, p);
3793
+ (h, p) => {
3794
+ r(), c && c(h, p);
3774
3795
  }
3775
3796
  );
3776
3797
  return n.push(d), d;
@@ -3882,15 +3903,15 @@ function hh(e, t) {
3882
3903
  }
3883
3904
  if (i) {
3884
3905
  a.forEach((d) => {
3885
- const f = i(d, r, n);
3886
- Uu(f, (p) => {
3887
- const h = p ? {
3906
+ const h = i(d, r, n);
3907
+ Uu(h, (p) => {
3908
+ const f = p ? {
3888
3909
  prefix: r,
3889
3910
  icons: {
3890
3911
  [d]: p
3891
3912
  }
3892
3913
  } : null;
3893
- qn(e, [d], h);
3914
+ qn(e, [d], f);
3894
3915
  });
3895
3916
  });
3896
3917
  return;
@@ -3904,8 +3925,8 @@ function hh(e, t) {
3904
3925
  return;
3905
3926
  }
3906
3927
  l.prepare(n, r, u).forEach((d) => {
3907
- ch(n, d, (f) => {
3908
- qn(e, d.icons, f);
3928
+ ch(n, d, (h) => {
3929
+ qn(e, d.icons, h);
3909
3930
  });
3910
3931
  });
3911
3932
  }));
@@ -3932,11 +3953,11 @@ const ph = (e, t) => {
3932
3953
  if (d === s && c === u)
3933
3954
  return;
3934
3955
  u = c, s = d, i.push(On(c, d));
3935
- const f = a[c] || (a[c] = /* @__PURE__ */ Object.create(null));
3936
- f[d] || (f[d] = []);
3956
+ const h = a[c] || (a[c] = /* @__PURE__ */ Object.create(null));
3957
+ h[d] || (h[d] = []);
3937
3958
  }), r.pending.forEach((l) => {
3938
- const { provider: c, prefix: d, name: f } = l, p = On(c, d), h = p.pendingIcons || (p.pendingIcons = /* @__PURE__ */ new Set());
3939
- h.has(f) || (h.add(f), a[c][d].push(f));
3959
+ const { provider: c, prefix: d, name: h } = l, p = On(c, d), f = p.pendingIcons || (p.pendingIcons = /* @__PURE__ */ new Set());
3960
+ f.has(h) || (f.add(h), a[c][d].push(h));
3940
3961
  }), i.forEach((l) => {
3941
3962
  const c = a[l.provider][l.prefix];
3942
3963
  c.length && hh(l, c);
@@ -4130,10 +4151,10 @@ const Ih = (e, t, n) => {
4130
4151
  __html: Sh(Vf(c.body, E ? () => E + "ID" + _++ : "iconifyReact"))
4131
4152
  }, Qa("svg", l);
4132
4153
  }
4133
- const { body: f, width: p, height: h } = e, T = i === "mask" || (i === "bg" ? !1 : f.indexOf("currentColor") !== -1), m = Th(f, {
4154
+ const { body: h, width: p, height: f } = e, T = i === "mask" || (i === "bg" ? !1 : h.indexOf("currentColor") !== -1), m = Th(h, {
4134
4155
  ...d,
4135
4156
  width: p + "",
4136
- height: h + ""
4157
+ height: f + ""
4137
4158
  });
4138
4159
  return l.style = {
4139
4160
  ...u,
@@ -4180,8 +4201,8 @@ if (typeof document < "u" && typeof window < "u") {
4180
4201
  }
4181
4202
  function rl(e) {
4182
4203
  const [t, n] = de(!!e.ssr), [r, a] = de({});
4183
- function i(h) {
4184
- if (h) {
4204
+ function i(f) {
4205
+ if (f) {
4185
4206
  const T = e.icon;
4186
4207
  if (typeof T == "object")
4187
4208
  return {
@@ -4201,15 +4222,15 @@ function rl(e) {
4201
4222
  }
4202
4223
  const [u, s] = de(i(!!e.ssr));
4203
4224
  function l() {
4204
- const h = r.callback;
4205
- h && (h(), a({}));
4225
+ const f = r.callback;
4226
+ f && (f(), a({}));
4206
4227
  }
4207
- function c(h) {
4208
- if (JSON.stringify(u) !== JSON.stringify(h))
4209
- return l(), s(h), !0;
4228
+ function c(f) {
4229
+ if (JSON.stringify(u) !== JSON.stringify(f))
4230
+ return l(), s(f), !0;
4210
4231
  }
4211
4232
  function d() {
4212
- var h;
4233
+ var f;
4213
4234
  const T = e.icon;
4214
4235
  if (typeof T == "object") {
4215
4236
  c({
@@ -4228,16 +4249,16 @@ function rl(e) {
4228
4249
  a({
4229
4250
  callback: _
4230
4251
  });
4231
- } else m && ((h = e.onLoad) === null || h === void 0 || h.call(e, T));
4252
+ } else m && ((f = e.onLoad) === null || f === void 0 || f.call(e, T));
4232
4253
  }
4233
4254
  Be(() => (n(!0), l), []), Be(() => {
4234
4255
  t && d();
4235
4256
  }, [e.icon, t]);
4236
- const { name: f, data: p } = u;
4257
+ const { name: h, data: p } = u;
4237
4258
  return p ? Ih({
4238
4259
  ...xi,
4239
4260
  ...p
4240
- }, e, f) : e.children ? e.children : Qa("span", {});
4261
+ }, e, h) : e.children ? e.children : Qa("span", {});
4241
4262
  }
4242
4263
  const Lt = Cs((e, t) => rl({
4243
4264
  ...e,
@@ -4256,14 +4277,15 @@ function Ni({
4256
4277
  inputRef: a,
4257
4278
  value: i
4258
4279
  }) {
4259
- const { primaryColor: u } = se(He), { hasError: s, hasNewMessage: l } = se(Ze);
4280
+ var p;
4281
+ const { conversationScreen: u, primaryColor: s } = se(He), { hasError: l, hasNewMessage: c } = se(Ze);
4260
4282
  Be(() => {
4261
4283
  var f;
4262
- (s || l) && ((f = a.current) == null || f.focus());
4263
- }, [l, s, a]);
4264
- const c = (f) => {
4284
+ (l || c) && ((f = a.current) == null || f.focus());
4285
+ }, [c, l, a]);
4286
+ const d = (f) => {
4265
4287
  f.key === "Enter" && i.trim() === "" || f.key === "Enter" && !f.shiftKey && (f.preventDefault(), n(i));
4266
- }, d = () => {
4288
+ }, h = () => {
4267
4289
  /* istanbul ignore next @preserve */
4268
4290
  var f;
4269
4291
  a.current && (a.current.style.height = "auto", a.current.style.height = `${Math.min(
@@ -4278,13 +4300,13 @@ function Ni({
4278
4300
  disabled: e,
4279
4301
  value: i,
4280
4302
  ref: a,
4281
- onInput: d,
4303
+ onInput: h,
4282
4304
  onChange: t,
4283
4305
  placeholder: "Write a message",
4284
4306
  cols: "5",
4285
4307
  rows: "1",
4286
- maxLength: "150",
4287
- onKeyDown: c,
4308
+ maxLength: ((p = u == null ? void 0 : u.input) == null ? void 0 : p.maxLength) ?? 5e3,
4309
+ onKeyDown: d,
4288
4310
  style: {
4289
4311
  margin: "0",
4290
4312
  borderRadius: "1rem",
@@ -4295,7 +4317,7 @@ function Ni({
4295
4317
  fontWeight: "300",
4296
4318
  lineHeight: "1.56rem",
4297
4319
  minHeight: "3.25rem",
4298
- outlineColor: u,
4320
+ outlineColor: s,
4299
4321
  padding: "12.5px 45px 12.5px 12.5px",
4300
4322
  resize: "none",
4301
4323
  width: "100%"
@@ -4448,15 +4470,15 @@ function ki({
4448
4470
  userTrackingName: s = "clicked"
4449
4471
  }) {
4450
4472
  var E, P, F, X;
4451
- const [l, c] = de(!0), { primaryColor: d, id: f, userTracking: p, conversationScreen: h } = se(He), T = Et(
4473
+ const [l, c] = de(!0), { primaryColor: d, id: h, userTracking: p, conversationScreen: f } = se(He), T = Et(
4452
4474
  (D) => {
4453
4475
  var y, k, W, M;
4454
- ((y = D == null ? void 0 : D.data) == null ? void 0 : y.who) === "customer" && (!(window != null && window.OnetrustActiveGroups) || (k = window == null ? void 0 : window.OnetrustActiveGroups) != null && k.includes("C0003")) && ft.set(`${f}-live-chat-open`, 1, {
4476
+ ((y = D == null ? void 0 : D.data) == null ? void 0 : y.who) === "customer" && (!(window != null && window.OnetrustActiveGroups) || (k = window == null ? void 0 : window.OnetrustActiveGroups) != null && k.includes("C0003")) && ft.set(`${h}-live-chat-open`, 1, {
4455
4477
  expires: 1,
4456
4478
  path: "/"
4457
- }), ((W = D == null ? void 0 : D.data) == null ? void 0 : W.type) === "connection" && ((M = D == null ? void 0 : D.data) == null ? void 0 : M.state) === "disconnected" && ft.remove(`${f}-live-chat-open`);
4479
+ }), ((W = D == null ? void 0 : D.data) == null ? void 0 : W.type) === "connection" && ((M = D == null ? void 0 : D.data) == null ? void 0 : M.state) === "disconnected" && ft.remove(`${h}-live-chat-open`);
4458
4480
  },
4459
- [f]
4481
+ [h]
4460
4482
  ), m = Et(
4461
4483
  (D) => {
4462
4484
  var y, k, W, M;
@@ -4467,22 +4489,22 @@ function ki({
4467
4489
  Be(() => {
4468
4490
  var k, W, M, Q;
4469
4491
  let D, y;
4470
- return (k = h == null ? void 0 : h.liveChat) != null && k.useOwnChat && (y = setTimeout(() => {
4492
+ return (k = f == null ? void 0 : f.liveChat) != null && k.useOwnChat && (y = setTimeout(() => {
4471
4493
  c(!1);
4472
- }, 3e3)), (W = h == null ? void 0 : h.liveChat) != null && W.enabled && !((M = h == null ? void 0 : h.liveChat) != null && M.useOwnChat) && (window.Five9ChatPlugin || (D = document.createElement("script"), D.type = "text/javascript", D.src = (Q = h == null ? void 0 : h.liveChat) == null ? void 0 : Q.sourceCode, D.async = !0, D.onload = () => {
4494
+ }, 3e3)), (W = f == null ? void 0 : f.liveChat) != null && W.enabled && !((M = f == null ? void 0 : f.liveChat) != null && M.useOwnChat) && (window.Five9ChatPlugin || (D = document.createElement("script"), D.type = "text/javascript", D.src = (Q = f == null ? void 0 : f.liveChat) == null ? void 0 : Q.sourceCode, D.async = !0, D.onload = () => {
4473
4495
  var q;
4474
- window.Five9ChatPlugin((q = h == null ? void 0 : h.liveChat) == null ? void 0 : q.options);
4496
+ window.Five9ChatPlugin((q = f == null ? void 0 : f.liveChat) == null ? void 0 : q.options);
4475
4497
  }, document.body.appendChild(D)), window.addEventListener("message", T), window.addEventListener("message", m), y = setTimeout(() => {
4476
4498
  c(!1);
4477
4499
  }, 3e3)), () => {
4478
4500
  var q;
4479
- (q = h == null ? void 0 : h.liveChat) != null && q.enabled && (window.removeEventListener("message", T), window.removeEventListener("message", m), clearTimeout(y));
4501
+ (q = f == null ? void 0 : f.liveChat) != null && q.enabled && (window.removeEventListener("message", T), window.removeEventListener("message", m), clearTimeout(y));
4480
4502
  };
4481
4503
  }, [
4482
- (E = h == null ? void 0 : h.liveChat) == null ? void 0 : E.enabled,
4483
- (P = h == null ? void 0 : h.liveChat) == null ? void 0 : P.options,
4484
- (F = h == null ? void 0 : h.liveChat) == null ? void 0 : F.sourceCode,
4485
- (X = h == null ? void 0 : h.liveChat) == null ? void 0 : X.useOwnChat,
4504
+ (E = f == null ? void 0 : f.liveChat) == null ? void 0 : E.enabled,
4505
+ (P = f == null ? void 0 : f.liveChat) == null ? void 0 : P.options,
4506
+ (F = f == null ? void 0 : f.liveChat) == null ? void 0 : F.sourceCode,
4507
+ (X = f == null ? void 0 : f.liveChat) == null ? void 0 : X.useOwnChat,
4486
4508
  T,
4487
4509
  m
4488
4510
  ]);
@@ -4495,7 +4517,7 @@ function ki({
4495
4517
  label: "xpert-chatbot",
4496
4518
  isTestUser: r
4497
4519
  }
4498
- }), a(!0), (D = h == null ? void 0 : h.liveChat) != null && D.useOwnChat || window.f9_postMessage({ type: "toggle" });
4520
+ }), a(!0), (D = f == null ? void 0 : f.liveChat) != null && D.useOwnChat || window.f9_postMessage({ type: "toggle" });
4499
4521
  };
4500
4522
  return /* @__PURE__ */ v.jsxs("div", { title: "Talk to a live agent at anytime.", style: t, children: [
4501
4523
  l && n && /* @__PURE__ */ v.jsxs("div", { className: "xpert-chatbot-popup__live-chat--message", children: [
@@ -5014,8 +5036,8 @@ function Yh() {
5014
5036
  }, i = function(c) {
5015
5037
  if (!c || t.call(c) !== "[object Object]")
5016
5038
  return !1;
5017
- var d = e.call(c, "constructor"), f = c.constructor && c.constructor.prototype && e.call(c.constructor.prototype, "isPrototypeOf");
5018
- if (c.constructor && !d && !f)
5039
+ var d = e.call(c, "constructor"), h = c.constructor && c.constructor.prototype && e.call(c.constructor.prototype, "isPrototypeOf");
5040
+ if (c.constructor && !d && !h)
5019
5041
  return !1;
5020
5042
  var p;
5021
5043
  for (p in c)
@@ -5037,11 +5059,11 @@ function Yh() {
5037
5059
  return c[d];
5038
5060
  };
5039
5061
  return Na = function l() {
5040
- var c, d, f, p, h, T, m = arguments[0], _ = 1, E = arguments.length, P = !1;
5062
+ var c, d, h, p, f, T, m = arguments[0], _ = 1, E = arguments.length, P = !1;
5041
5063
  for (typeof m == "boolean" && (P = m, m = arguments[1] || {}, _ = 2), (m == null || typeof m != "object" && typeof m != "function") && (m = {}); _ < E; ++_)
5042
5064
  if (c = arguments[_], c != null)
5043
5065
  for (d in c)
5044
- f = s(m, d), p = s(c, d), m !== p && (P && p && (i(p) || (h = a(p))) ? (h ? (h = !1, T = f && a(f) ? f : []) : T = f && i(f) ? f : {}, u(m, { name: d, newValue: l(P, T, p) })) : typeof p < "u" && u(m, { name: d, newValue: p }));
5066
+ h = s(m, d), p = s(c, d), m !== p && (P && p && (i(p) || (f = a(p))) ? (f ? (f = !1, T = h && a(h) ? h : []) : T = h && i(h) ? h : {}, u(m, { name: d, newValue: l(P, T, p) })) : typeof p < "u" && u(m, { name: d, newValue: p }));
5045
5067
  return m;
5046
5068
  }, Na;
5047
5069
  }
@@ -5064,13 +5086,13 @@ function Vh() {
5064
5086
  s(null, ...a);
5065
5087
  function s(l, ...c) {
5066
5088
  const d = e[++i];
5067
- let f = -1;
5089
+ let h = -1;
5068
5090
  if (l) {
5069
5091
  u(l);
5070
5092
  return;
5071
5093
  }
5072
- for (; ++f < a.length; )
5073
- (c[f] === null || c[f] === void 0) && (c[f] = a[f]);
5094
+ for (; ++h < a.length; )
5095
+ (c[h] === null || c[h] === void 0) && (c[h] = a[h]);
5074
5096
  a = c, d ? Wh(d, s)(...c) : u(null, ...c);
5075
5097
  }
5076
5098
  }
@@ -5113,7 +5135,7 @@ const Gh = sl().freeze(), ol = {}.hasOwnProperty;
5113
5135
  function sl() {
5114
5136
  const e = Vh(), t = [];
5115
5137
  let n = {}, r, a = -1;
5116
- 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 = T, i;
5138
+ 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 = h, i.runSync = p, i.process = f, i.processSync = T, i;
5117
5139
  function i() {
5118
5140
  const m = sl();
5119
5141
  let _ = -1;
@@ -5191,7 +5213,7 @@ function sl() {
5191
5213
  const E = zn(_), P = i.Compiler;
5192
5214
  return La("stringify", P), Ju(m), Zu(P, "compile") ? new P(m, E).compile() : P(m, E);
5193
5215
  }
5194
- function f(m, _, E) {
5216
+ function h(m, _, E) {
5195
5217
  if (Ju(m), i.freeze(), !E && typeof _ == "function" && (E = _, _ = void 0), !E)
5196
5218
  return new Promise(P);
5197
5219
  P(null, E);
@@ -5209,7 +5231,7 @@ function sl() {
5209
5231
  Xu(X), E = D, P = !0;
5210
5232
  }
5211
5233
  }
5212
- function h(m, _) {
5234
+ function f(m, _) {
5213
5235
  if (i.freeze(), ka("process", i.Parser), La("process", i.Compiler), !_)
5214
5236
  return new Promise(E);
5215
5237
  E(null, _);
@@ -5483,23 +5505,23 @@ function hp(e) {
5483
5505
  return t.containerState = {}, e.check(
5484
5506
  ro,
5485
5507
  d,
5486
- f
5508
+ h
5487
5509
  )(F);
5488
5510
  }
5489
5511
  function d(F) {
5490
5512
  return a && P(), E(r), p(F);
5491
5513
  }
5492
- function f(F) {
5514
+ function h(F) {
5493
5515
  return t.parser.lazy[t.now().line] = r !== n.length, u = t.now().offset, T(F);
5494
5516
  }
5495
5517
  function p(F) {
5496
5518
  return t.containerState = {}, e.attempt(
5497
5519
  ro,
5498
- h,
5520
+ f,
5499
5521
  T
5500
5522
  )(F);
5501
5523
  }
5502
- function h(F) {
5524
+ function f(F) {
5503
5525
  return r++, n.push([t.currentConstruct, t.containerState]), p(F);
5504
5526
  }
5505
5527
  function T(F) {
@@ -5602,10 +5624,10 @@ function mp(e, t) {
5602
5624
  if ((e[r][1]._close || e[n][1]._open) && (e[n][1].end.offset - e[n][1].start.offset) % 3 && !((e[r][1].end.offset - e[r][1].start.offset + e[n][1].end.offset - e[n][1].start.offset) % 3))
5603
5625
  continue;
5604
5626
  l = e[r][1].end.offset - e[r][1].start.offset > 1 && e[n][1].end.offset - e[n][1].start.offset > 1 ? 2 : 1;
5605
- const f = Object.assign({}, e[r][1].end), p = Object.assign({}, e[n][1].start);
5606
- io(f, -l), io(p, l), u = {
5627
+ const h = Object.assign({}, e[r][1].end), p = Object.assign({}, e[n][1].start);
5628
+ io(h, -l), io(p, l), u = {
5607
5629
  type: l > 1 ? "strongSequence" : "emphasisSequence",
5608
- start: f,
5630
+ start: h,
5609
5631
  end: Object.assign({}, e[r][1].end)
5610
5632
  }, s = {
5611
5633
  type: l > 1 ? "strongSequence" : "emphasisSequence",
@@ -5660,8 +5682,8 @@ function gp(e, t) {
5660
5682
  function s(l) {
5661
5683
  if (l === i)
5662
5684
  return e.consume(l), s;
5663
- const c = e.exit("attentionSequence"), d = ao(l), f = !d || d === 2 && a || n.includes(l), p = !a || a === 2 && d || n.includes(r);
5664
- return c._open = !!(i === 42 ? f : f && (a || !p)), c._close = !!(i === 42 ? p : p && (d || !f)), t(l);
5685
+ const c = e.exit("attentionSequence"), d = ao(l), h = !d || d === 2 && a || n.includes(l), p = !a || a === 2 && d || n.includes(r);
5686
+ return c._open = !!(i === 42 ? h : h && (a || !p)), c._close = !!(i === 42 ? p : p && (d || !h)), t(l);
5665
5687
  }
5666
5688
  }
5667
5689
  function io(e, t) {
@@ -5674,36 +5696,36 @@ const bp = {
5674
5696
  function Ep(e, t, n) {
5675
5697
  let r = 0;
5676
5698
  return a;
5677
- function a(h) {
5678
- return e.enter("autolink"), e.enter("autolinkMarker"), e.consume(h), e.exit("autolinkMarker"), e.enter("autolinkProtocol"), i;
5699
+ function a(f) {
5700
+ return e.enter("autolink"), e.enter("autolinkMarker"), e.consume(f), e.exit("autolinkMarker"), e.enter("autolinkProtocol"), i;
5679
5701
  }
5680
- function i(h) {
5681
- return kt(h) ? (e.consume(h), u) : c(h);
5702
+ function i(f) {
5703
+ return kt(f) ? (e.consume(f), u) : c(f);
5682
5704
  }
5683
- function u(h) {
5684
- return h === 43 || h === 45 || h === 46 || ht(h) ? (r = 1, s(h)) : c(h);
5705
+ function u(f) {
5706
+ return f === 43 || f === 45 || f === 46 || ht(f) ? (r = 1, s(f)) : c(f);
5685
5707
  }
5686
- function s(h) {
5687
- return h === 58 ? (e.consume(h), r = 0, l) : (h === 43 || h === 45 || h === 46 || ht(h)) && r++ < 32 ? (e.consume(h), s) : (r = 0, c(h));
5708
+ function s(f) {
5709
+ return f === 58 ? (e.consume(f), r = 0, l) : (f === 43 || f === 45 || f === 46 || ht(f)) && r++ < 32 ? (e.consume(f), s) : (r = 0, c(f));
5688
5710
  }
5689
- function l(h) {
5690
- return h === 62 ? (e.exit("autolinkProtocol"), e.enter("autolinkMarker"), e.consume(h), e.exit("autolinkMarker"), e.exit("autolink"), t) : h === null || h === 32 || h === 60 || li(h) ? n(h) : (e.consume(h), l);
5711
+ function l(f) {
5712
+ return f === 62 ? (e.exit("autolinkProtocol"), e.enter("autolinkMarker"), e.consume(f), e.exit("autolinkMarker"), e.exit("autolink"), t) : f === null || f === 32 || f === 60 || li(f) ? n(f) : (e.consume(f), l);
5691
5713
  }
5692
- function c(h) {
5693
- return h === 64 ? (e.consume(h), d) : ip(h) ? (e.consume(h), c) : n(h);
5714
+ function c(f) {
5715
+ return f === 64 ? (e.consume(f), d) : ip(f) ? (e.consume(f), c) : n(f);
5694
5716
  }
5695
- function d(h) {
5696
- return ht(h) ? f(h) : n(h);
5717
+ function d(f) {
5718
+ return ht(f) ? h(f) : n(f);
5697
5719
  }
5698
- function f(h) {
5699
- return h === 46 ? (e.consume(h), r = 0, d) : h === 62 ? (e.exit("autolinkProtocol").type = "autolinkEmail", e.enter("autolinkMarker"), e.consume(h), e.exit("autolinkMarker"), e.exit("autolink"), t) : p(h);
5720
+ function h(f) {
5721
+ return f === 46 ? (e.consume(f), r = 0, d) : f === 62 ? (e.exit("autolinkProtocol").type = "autolinkEmail", e.enter("autolinkMarker"), e.consume(f), e.exit("autolinkMarker"), e.exit("autolink"), t) : p(f);
5700
5722
  }
5701
- function p(h) {
5702
- if ((h === 45 || ht(h)) && r++ < 63) {
5703
- const T = h === 45 ? p : f;
5704
- return e.consume(h), T;
5723
+ function p(f) {
5724
+ if ((f === 45 || ht(f)) && r++ < 63) {
5725
+ const T = f === 45 ? p : h;
5726
+ return e.consume(f), T;
5705
5727
  }
5706
- return n(h);
5728
+ return n(f);
5707
5729
  }
5708
5730
  }
5709
5731
  const Kr = {
@@ -5793,21 +5815,21 @@ function Sp(e, t, n) {
5793
5815
  const r = this;
5794
5816
  let a = 0, i, u;
5795
5817
  return s;
5796
- function s(f) {
5797
- return e.enter("characterReference"), e.enter("characterReferenceMarker"), e.consume(f), e.exit("characterReferenceMarker"), l;
5818
+ function s(h) {
5819
+ return e.enter("characterReference"), e.enter("characterReferenceMarker"), e.consume(h), e.exit("characterReferenceMarker"), l;
5798
5820
  }
5799
- function l(f) {
5800
- return f === 35 ? (e.enter("characterReferenceMarkerNumeric"), e.consume(f), e.exit("characterReferenceMarkerNumeric"), c) : (e.enter("characterReferenceValue"), i = 31, u = ht, d(f));
5821
+ function l(h) {
5822
+ return h === 35 ? (e.enter("characterReferenceMarkerNumeric"), e.consume(h), e.exit("characterReferenceMarkerNumeric"), c) : (e.enter("characterReferenceValue"), i = 31, u = ht, d(h));
5801
5823
  }
5802
- function c(f) {
5803
- return f === 88 || f === 120 ? (e.enter("characterReferenceMarkerHexadecimal"), e.consume(f), e.exit("characterReferenceMarkerHexadecimal"), e.enter("characterReferenceValue"), i = 6, u = up, d) : (e.enter("characterReferenceValue"), i = 7, u = ci, d(f));
5824
+ function c(h) {
5825
+ return h === 88 || h === 120 ? (e.enter("characterReferenceMarkerHexadecimal"), e.consume(h), e.exit("characterReferenceMarkerHexadecimal"), e.enter("characterReferenceValue"), i = 6, u = up, d) : (e.enter("characterReferenceValue"), i = 7, u = ci, d(h));
5804
5826
  }
5805
- function d(f) {
5806
- if (f === 59 && a) {
5827
+ function d(h) {
5828
+ if (h === 59 && a) {
5807
5829
  const p = e.exit("characterReferenceValue");
5808
- return u === ht && !Ri(r.sliceSerialize(p)) ? n(f) : (e.enter("characterReferenceMarker"), e.consume(f), e.exit("characterReferenceMarker"), e.exit("characterReference"), t);
5830
+ return u === ht && !Ri(r.sliceSerialize(p)) ? n(h) : (e.enter("characterReferenceMarker"), e.consume(h), e.exit("characterReferenceMarker"), e.exit("characterReference"), t);
5809
5831
  }
5810
- return u(f) && a++ < i ? (e.consume(f), d) : n(f);
5832
+ return u(h) && a++ < i ? (e.consume(h), d) : n(h);
5811
5833
  }
5812
5834
  }
5813
5835
  const oo = {
@@ -5833,23 +5855,23 @@ function xp(e, t, n) {
5833
5855
  return i = k && k[1].type === "linePrefix" ? k[2].sliceSerialize(k[1], !0).length : 0, s = y, e.enter("codeFenced"), e.enter("codeFencedFence"), e.enter("codeFencedFenceSequence"), d(y);
5834
5856
  }
5835
5857
  function d(y) {
5836
- return y === s ? (u++, e.consume(y), d) : u < 3 ? n(y) : (e.exit("codeFencedFenceSequence"), Ce(y) ? Re(e, f, "whitespace")(y) : f(y));
5858
+ return y === s ? (u++, e.consume(y), d) : u < 3 ? n(y) : (e.exit("codeFencedFenceSequence"), Ce(y) ? Re(e, h, "whitespace")(y) : h(y));
5837
5859
  }
5838
- function f(y) {
5860
+ function h(y) {
5839
5861
  return y === null || ce(y) ? (e.exit("codeFencedFence"), r.interrupt ? t(y) : e.check(oo, m, X)(y)) : (e.enter("codeFencedFenceInfo"), e.enter("chunkString", {
5840
5862
  contentType: "string"
5841
5863
  }), p(y));
5842
5864
  }
5843
5865
  function p(y) {
5844
- return y === null || ce(y) ? (e.exit("chunkString"), e.exit("codeFencedFenceInfo"), f(y)) : Ce(y) ? (e.exit("chunkString"), e.exit("codeFencedFenceInfo"), Re(e, h, "whitespace")(y)) : y === 96 && y === s ? n(y) : (e.consume(y), p);
5866
+ return y === null || ce(y) ? (e.exit("chunkString"), e.exit("codeFencedFenceInfo"), h(y)) : Ce(y) ? (e.exit("chunkString"), e.exit("codeFencedFenceInfo"), Re(e, f, "whitespace")(y)) : y === 96 && y === s ? n(y) : (e.consume(y), p);
5845
5867
  }
5846
- function h(y) {
5847
- return y === null || ce(y) ? f(y) : (e.enter("codeFencedFenceMeta"), e.enter("chunkString", {
5868
+ function f(y) {
5869
+ return y === null || ce(y) ? h(y) : (e.enter("codeFencedFenceMeta"), e.enter("chunkString", {
5848
5870
  contentType: "string"
5849
5871
  }), T(y));
5850
5872
  }
5851
5873
  function T(y) {
5852
- return y === null || ce(y) ? (e.exit("chunkString"), e.exit("codeFencedFenceMeta"), f(y)) : y === 96 && y === s ? n(y) : (e.consume(y), T);
5874
+ return y === null || ce(y) ? (e.exit("chunkString"), e.exit("codeFencedFenceMeta"), h(y)) : y === 96 && y === s ? n(y) : (e.consume(y), T);
5853
5875
  }
5854
5876
  function m(y) {
5855
5877
  return e.attempt(a, X, _)(y);
@@ -5972,20 +5994,20 @@ function Rp(e) {
5972
5994
  function Dp(e, t, n) {
5973
5995
  let r = 0, a, i;
5974
5996
  return u;
5975
- function u(f) {
5976
- return e.enter("codeText"), e.enter("codeTextSequence"), s(f);
5997
+ function u(h) {
5998
+ return e.enter("codeText"), e.enter("codeTextSequence"), s(h);
5977
5999
  }
5978
- function s(f) {
5979
- return f === 96 ? (e.consume(f), r++, s) : (e.exit("codeTextSequence"), l(f));
6000
+ function s(h) {
6001
+ return h === 96 ? (e.consume(h), r++, s) : (e.exit("codeTextSequence"), l(h));
5980
6002
  }
5981
- function l(f) {
5982
- return f === null ? n(f) : f === 32 ? (e.enter("space"), e.consume(f), e.exit("space"), l) : f === 96 ? (i = e.enter("codeTextSequence"), a = 0, d(f)) : ce(f) ? (e.enter("lineEnding"), e.consume(f), e.exit("lineEnding"), l) : (e.enter("codeTextData"), c(f));
6003
+ function l(h) {
6004
+ return h === null ? n(h) : h === 32 ? (e.enter("space"), e.consume(h), e.exit("space"), l) : h === 96 ? (i = e.enter("codeTextSequence"), a = 0, d(h)) : ce(h) ? (e.enter("lineEnding"), e.consume(h), e.exit("lineEnding"), l) : (e.enter("codeTextData"), c(h));
5983
6005
  }
5984
- function c(f) {
5985
- return f === null || f === 32 || f === 96 || ce(f) ? (e.exit("codeTextData"), l(f)) : (e.consume(f), c);
6006
+ function c(h) {
6007
+ return h === null || h === 32 || h === 96 || ce(h) ? (e.exit("codeTextData"), l(h)) : (e.consume(h), c);
5986
6008
  }
5987
- function d(f) {
5988
- return f === 96 ? (e.consume(f), a++, d) : a === r ? (e.exit("codeTextSequence"), e.exit("codeText"), t(f)) : (i.type = "codeTextData", c(f));
6009
+ function d(h) {
6010
+ return h === 96 ? (e.consume(h), a++, d) : a === r ? (e.exit("codeTextSequence"), e.exit("codeText"), t(h)) : (i.type = "codeTextData", c(h));
5989
6011
  }
5990
6012
  }
5991
6013
  function hl(e) {
@@ -6011,17 +6033,17 @@ function wp(e, t) {
6011
6033
  const n = e[t][1], r = e[t][2];
6012
6034
  let a = t - 1;
6013
6035
  const i = [], u = n._tokenizer || r.parser[n.contentType](n.start), s = u.events, l = [], c = {};
6014
- let d, f, p = -1, h = n, T = 0, m = 0;
6036
+ let d, h, p = -1, f = n, T = 0, m = 0;
6015
6037
  const _ = [m];
6016
- for (; h; ) {
6017
- for (; e[++a][1] !== h; )
6038
+ for (; f; ) {
6039
+ for (; e[++a][1] !== f; )
6018
6040
  ;
6019
- i.push(a), h._tokenizer || (d = r.sliceStream(h), h.next || d.push(null), f && u.defineSkip(h.start), h._isInFirstContentOfListItem && (u._gfmTasklistFirstContentOfListItem = !0), u.write(d), h._isInFirstContentOfListItem && (u._gfmTasklistFirstContentOfListItem = void 0)), f = h, h = h.next;
6041
+ i.push(a), f._tokenizer || (d = r.sliceStream(f), f.next || d.push(null), h && u.defineSkip(f.start), f._isInFirstContentOfListItem && (u._gfmTasklistFirstContentOfListItem = !0), u.write(d), f._isInFirstContentOfListItem && (u._gfmTasklistFirstContentOfListItem = void 0)), h = f, f = f.next;
6020
6042
  }
6021
- for (h = n; ++p < s.length; )
6043
+ for (f = n; ++p < s.length; )
6022
6044
  // Find a void token that includes a break.
6023
- 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, _.push(m), h._tokenizer = void 0, h.previous = void 0, h = h.next);
6024
- for (u.events = [], h ? (h._tokenizer = void 0, h.previous = void 0) : _.pop(), p = _.length; p--; ) {
6045
+ 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, _.push(m), f._tokenizer = void 0, f.previous = void 0, f = f.next);
6046
+ for (u.events = [], f ? (f._tokenizer = void 0, f.previous = void 0) : _.pop(), p = _.length; p--; ) {
6025
6047
  const E = s.slice(_[p], _[p + 1]), P = i.pop();
6026
6048
  l.unshift([P, P + E.length - 1]), Rt(e, P, 2, E);
6027
6049
  }
@@ -6080,8 +6102,8 @@ function Hp(e, t, n) {
6080
6102
  function pl(e, t, n, r, a, i, u, s, l) {
6081
6103
  const c = l || Number.POSITIVE_INFINITY;
6082
6104
  let d = 0;
6083
- return f;
6084
- function f(E) {
6105
+ return h;
6106
+ function h(E) {
6085
6107
  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 || li(E) ? n(E) : (e.enter(r), e.enter(u), e.enter(s), e.enter("chunkString", {
6086
6108
  contentType: "string"
6087
6109
  }), m(E));
@@ -6089,13 +6111,13 @@ function pl(e, t, n, r, a, i, u, s, l) {
6089
6111
  function p(E) {
6090
6112
  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", {
6091
6113
  contentType: "string"
6092
- }), h(E));
6114
+ }), f(E));
6093
6115
  }
6094
- function h(E) {
6095
- return E === 62 ? (e.exit("chunkString"), e.exit(s), p(E)) : E === null || E === 60 || ce(E) ? n(E) : (e.consume(E), E === 92 ? T : h);
6116
+ function f(E) {
6117
+ return E === 62 ? (e.exit("chunkString"), e.exit(s), p(E)) : E === null || E === 60 || ce(E) ? n(E) : (e.consume(E), E === 92 ? T : f);
6096
6118
  }
6097
6119
  function T(E) {
6098
- return E === 60 || E === 62 || E === 92 ? (e.consume(E), h) : h(E);
6120
+ return E === 60 || E === 62 || E === 92 ? (e.consume(E), f) : f(E);
6099
6121
  }
6100
6122
  function m(E) {
6101
6123
  return !d && (E === null || E === 41 || tt(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 || li(E) ? n(E) : (e.consume(E), E === 92 ? _ : m);
@@ -6108,24 +6130,24 @@ function ml(e, t, n, r, a, i) {
6108
6130
  const u = this;
6109
6131
  let s = 0, l;
6110
6132
  return c;
6111
- function c(h) {
6112
- return e.enter(r), e.enter(a), e.consume(h), e.exit(a), e.enter(i), d;
6133
+ function c(f) {
6134
+ return e.enter(r), e.enter(a), e.consume(f), e.exit(a), e.enter(i), d;
6113
6135
  }
6114
- function d(h) {
6115
- return s > 999 || h === null || h === 91 || h === 93 && !l || // To do: remove in the future once we’ve switched from
6136
+ function d(f) {
6137
+ return s > 999 || f === null || f === 91 || f === 93 && !l || // To do: remove in the future once we’ve switched from
6116
6138
  // `micromark-extension-footnote` to `micromark-extension-gfm-footnote`,
6117
6139
  // which doesn’t need this.
6118
6140
  // Hidden footnotes hook.
6119
6141
  /* c8 ignore next 3 */
6120
- h === 94 && !s && "_hiddenFootnoteSupport" in u.parser.constructs ? n(h) : h === 93 ? (e.exit(i), e.enter(a), e.consume(h), e.exit(a), e.exit(r), t) : ce(h) ? (e.enter("lineEnding"), e.consume(h), e.exit("lineEnding"), d) : (e.enter("chunkString", {
6142
+ f === 94 && !s && "_hiddenFootnoteSupport" in u.parser.constructs ? n(f) : f === 93 ? (e.exit(i), e.enter(a), e.consume(f), e.exit(a), e.exit(r), t) : ce(f) ? (e.enter("lineEnding"), e.consume(f), e.exit("lineEnding"), d) : (e.enter("chunkString", {
6121
6143
  contentType: "string"
6122
- }), f(h));
6144
+ }), h(f));
6123
6145
  }
6124
- function f(h) {
6125
- return h === null || h === 91 || h === 93 || ce(h) || s++ > 999 ? (e.exit("chunkString"), d(h)) : (e.consume(h), l || (l = !Ce(h)), h === 92 ? p : f);
6146
+ function h(f) {
6147
+ return f === null || f === 91 || f === 93 || ce(f) || s++ > 999 ? (e.exit("chunkString"), d(f)) : (e.consume(f), l || (l = !Ce(f)), f === 92 ? p : h);
6126
6148
  }
6127
- function p(h) {
6128
- return h === 91 || h === 92 || h === 93 ? (e.consume(h), s++, f) : f(h);
6149
+ function p(f) {
6150
+ return f === 91 || f === 92 || f === 93 ? (e.consume(f), s++, h) : h(f);
6129
6151
  }
6130
6152
  }
6131
6153
  function gl(e, t, n, r, a, i) {
@@ -6143,9 +6165,9 @@ function gl(e, t, n, r, a, i) {
6143
6165
  }), d(p));
6144
6166
  }
6145
6167
  function d(p) {
6146
- return p === u || p === null || ce(p) ? (e.exit("chunkString"), c(p)) : (e.consume(p), p === 92 ? f : d);
6168
+ return p === u || p === null || ce(p) ? (e.exit("chunkString"), c(p)) : (e.consume(p), p === 92 ? h : d);
6147
6169
  }
6148
- function f(p) {
6170
+ function h(p) {
6149
6171
  return p === u || p === 92 ? (e.consume(p), d) : d(p);
6150
6172
  }
6151
6173
  }
@@ -6174,10 +6196,10 @@ function qp(e, t, n) {
6174
6196
  const r = this;
6175
6197
  let a;
6176
6198
  return i;
6177
- function i(h) {
6178
- return e.enter("definition"), u(h);
6199
+ function i(f) {
6200
+ return e.enter("definition"), u(f);
6179
6201
  }
6180
- function u(h) {
6202
+ function u(f) {
6181
6203
  return ml.call(
6182
6204
  r,
6183
6205
  e,
@@ -6187,17 +6209,17 @@ function qp(e, t, n) {
6187
6209
  "definitionLabel",
6188
6210
  "definitionLabelMarker",
6189
6211
  "definitionLabelString"
6190
- )(h);
6212
+ )(f);
6191
6213
  }
6192
- function s(h) {
6214
+ function s(f) {
6193
6215
  return a = An(
6194
6216
  r.sliceSerialize(r.events[r.events.length - 1][1]).slice(1, -1)
6195
- ), h === 58 ? (e.enter("definitionMarker"), e.consume(h), e.exit("definitionMarker"), l) : n(h);
6217
+ ), f === 58 ? (e.enter("definitionMarker"), e.consume(f), e.exit("definitionMarker"), l) : n(f);
6196
6218
  }
6197
- function l(h) {
6198
- return tt(h) ? er(e, c)(h) : c(h);
6219
+ function l(f) {
6220
+ return tt(f) ? er(e, c)(f) : c(f);
6199
6221
  }
6200
- function c(h) {
6222
+ function c(f) {
6201
6223
  return pl(
6202
6224
  e,
6203
6225
  d,
@@ -6208,16 +6230,16 @@ function qp(e, t, n) {
6208
6230
  "definitionDestinationLiteralMarker",
6209
6231
  "definitionDestinationRaw",
6210
6232
  "definitionDestinationString"
6211
- )(h);
6233
+ )(f);
6212
6234
  }
6213
- function d(h) {
6214
- return e.attempt(jp, f, f)(h);
6235
+ function d(f) {
6236
+ return e.attempt(jp, h, h)(f);
6215
6237
  }
6216
- function f(h) {
6217
- return Ce(h) ? Re(e, p, "whitespace")(h) : p(h);
6238
+ function h(f) {
6239
+ return Ce(f) ? Re(e, p, "whitespace")(f) : p(f);
6218
6240
  }
6219
- function p(h) {
6220
- return h === null || ce(h) ? (e.exit("definition"), r.parser.defined.push(a), t(h)) : n(h);
6241
+ function p(f) {
6242
+ return f === null || ce(f) ? (e.exit("definition"), r.parser.defined.push(a), t(f)) : n(f);
6221
6243
  }
6222
6244
  }
6223
6245
  function zp(e, t, n) {
@@ -6389,15 +6411,15 @@ function e1(e, t, n) {
6389
6411
  return d(S);
6390
6412
  }
6391
6413
  function d(S) {
6392
- return e.enter("htmlFlow"), e.enter("htmlFlowData"), e.consume(S), f;
6414
+ return e.enter("htmlFlow"), e.enter("htmlFlowData"), e.consume(S), h;
6393
6415
  }
6394
- function f(S) {
6416
+ function h(S) {
6395
6417
  return S === 33 ? (e.consume(S), p) : S === 47 ? (e.consume(S), i = !0, m) : S === 63 ? (e.consume(S), a = 3, r.interrupt ? t : g) : kt(S) ? (e.consume(S), u = String.fromCharCode(S), _) : n(S);
6396
6418
  }
6397
6419
  function p(S) {
6398
- return S === 45 ? (e.consume(S), a = 2, h) : S === 91 ? (e.consume(S), a = 5, s = 0, T) : kt(S) ? (e.consume(S), a = 4, r.interrupt ? t : g) : n(S);
6420
+ return S === 45 ? (e.consume(S), a = 2, f) : S === 91 ? (e.consume(S), a = 5, s = 0, T) : kt(S) ? (e.consume(S), a = 4, r.interrupt ? t : g) : n(S);
6399
6421
  }
6400
- function h(S) {
6422
+ function f(S) {
6401
6423
  return S === 45 ? (e.consume(S), r.interrupt ? t : g) : n(S);
6402
6424
  }
6403
6425
  function T(S) {
@@ -6527,16 +6549,16 @@ function a1(e, t, n) {
6527
6549
  return g === 45 ? (e.consume(g), d) : g === 91 ? (e.consume(g), i = 0, T) : kt(g) ? (e.consume(g), P) : n(g);
6528
6550
  }
6529
6551
  function d(g) {
6530
- return g === 45 ? (e.consume(g), h) : n(g);
6552
+ return g === 45 ? (e.consume(g), f) : n(g);
6531
6553
  }
6532
- function f(g) {
6533
- return g === null ? n(g) : g === 45 ? (e.consume(g), p) : ce(g) ? (u = f, V(g)) : (e.consume(g), f);
6554
+ function h(g) {
6555
+ return g === null ? n(g) : g === 45 ? (e.consume(g), p) : ce(g) ? (u = h, V(g)) : (e.consume(g), h);
6534
6556
  }
6535
6557
  function p(g) {
6536
- return g === 45 ? (e.consume(g), h) : f(g);
6558
+ return g === 45 ? (e.consume(g), f) : h(g);
6537
6559
  }
6538
- function h(g) {
6539
- return g === 62 ? H(g) : g === 45 ? p(g) : f(g);
6560
+ function f(g) {
6561
+ return g === 62 ? H(g) : g === 45 ? p(g) : h(g);
6540
6562
  }
6541
6563
  function T(g) {
6542
6564
  const ne = "CDATA[";
@@ -6684,7 +6706,7 @@ function c1(e, t, n) {
6684
6706
  }
6685
6707
  return s;
6686
6708
  function s(p) {
6687
- return i ? i._inactive ? f(p) : (u = r.parser.defined.includes(
6709
+ return i ? i._inactive ? h(p) : (u = r.parser.defined.includes(
6688
6710
  An(
6689
6711
  r.sliceSerialize({
6690
6712
  start: i.end,
@@ -6697,37 +6719,37 @@ function c1(e, t, n) {
6697
6719
  return p === 40 ? e.attempt(
6698
6720
  i1,
6699
6721
  d,
6700
- u ? d : f
6722
+ u ? d : h
6701
6723
  )(p) : p === 91 ? e.attempt(
6702
6724
  u1,
6703
6725
  d,
6704
- u ? c : f
6705
- )(p) : u ? d(p) : f(p);
6726
+ u ? c : h
6727
+ )(p) : u ? d(p) : h(p);
6706
6728
  }
6707
6729
  function c(p) {
6708
6730
  return e.attempt(
6709
6731
  o1,
6710
6732
  d,
6711
- f
6733
+ h
6712
6734
  )(p);
6713
6735
  }
6714
6736
  function d(p) {
6715
6737
  return t(p);
6716
6738
  }
6717
- function f(p) {
6739
+ function h(p) {
6718
6740
  return i._balanced = !0, n(p);
6719
6741
  }
6720
6742
  }
6721
6743
  function d1(e, t, n) {
6722
6744
  return r;
6723
- function r(f) {
6724
- return e.enter("resource"), e.enter("resourceMarker"), e.consume(f), e.exit("resourceMarker"), a;
6745
+ function r(h) {
6746
+ return e.enter("resource"), e.enter("resourceMarker"), e.consume(h), e.exit("resourceMarker"), a;
6725
6747
  }
6726
- function a(f) {
6727
- return tt(f) ? er(e, i)(f) : i(f);
6748
+ function a(h) {
6749
+ return tt(h) ? er(e, i)(h) : i(h);
6728
6750
  }
6729
- function i(f) {
6730
- return f === 41 ? d(f) : pl(
6751
+ function i(h) {
6752
+ return h === 41 ? d(h) : pl(
6731
6753
  e,
6732
6754
  u,
6733
6755
  s,
@@ -6737,29 +6759,29 @@ function d1(e, t, n) {
6737
6759
  "resourceDestinationRaw",
6738
6760
  "resourceDestinationString",
6739
6761
  32
6740
- )(f);
6762
+ )(h);
6741
6763
  }
6742
- function u(f) {
6743
- return tt(f) ? er(e, l)(f) : d(f);
6764
+ function u(h) {
6765
+ return tt(h) ? er(e, l)(h) : d(h);
6744
6766
  }
6745
- function s(f) {
6746
- return n(f);
6767
+ function s(h) {
6768
+ return n(h);
6747
6769
  }
6748
- function l(f) {
6749
- return f === 34 || f === 39 || f === 40 ? gl(
6770
+ function l(h) {
6771
+ return h === 34 || h === 39 || h === 40 ? gl(
6750
6772
  e,
6751
6773
  c,
6752
6774
  n,
6753
6775
  "resourceTitle",
6754
6776
  "resourceTitleMarker",
6755
6777
  "resourceTitleString"
6756
- )(f) : d(f);
6778
+ )(h) : d(h);
6757
6779
  }
6758
- function c(f) {
6759
- return tt(f) ? er(e, d)(f) : d(f);
6780
+ function c(h) {
6781
+ return tt(h) ? er(e, d)(h) : d(h);
6760
6782
  }
6761
- function d(f) {
6762
- return f === 41 ? (e.enter("resourceMarker"), e.consume(f), e.exit("resourceMarker"), e.exit("resource"), t) : n(f);
6783
+ function d(h) {
6784
+ return h === 41 ? (e.enter("resourceMarker"), e.consume(h), e.exit("resourceMarker"), e.exit("resource"), t) : n(h);
6763
6785
  }
6764
6786
  }
6765
6787
  function f1(e, t, n) {
@@ -6877,41 +6899,41 @@ function C1(e, t, n) {
6877
6899
  const r = this, a = r.events[r.events.length - 1];
6878
6900
  let i = a && a[1].type === "linePrefix" ? a[2].sliceSerialize(a[1], !0).length : 0, u = 0;
6879
6901
  return s;
6880
- function s(h) {
6881
- const T = r.containerState.type || (h === 42 || h === 43 || h === 45 ? "listUnordered" : "listOrdered");
6882
- if (T === "listUnordered" ? !r.containerState.marker || h === r.containerState.marker : ci(h)) {
6902
+ function s(f) {
6903
+ const T = r.containerState.type || (f === 42 || f === 43 || f === 45 ? "listUnordered" : "listOrdered");
6904
+ if (T === "listUnordered" ? !r.containerState.marker || f === r.containerState.marker : ci(f)) {
6883
6905
  if (r.containerState.type || (r.containerState.type = T, e.enter(T, {
6884
6906
  _container: !0
6885
6907
  })), T === "listUnordered")
6886
- return e.enter("listItemPrefix"), h === 42 || h === 45 ? e.check(Dr, n, c)(h) : c(h);
6887
- if (!r.interrupt || h === 49)
6888
- return e.enter("listItemPrefix"), e.enter("listItemValue"), l(h);
6908
+ return e.enter("listItemPrefix"), f === 42 || f === 45 ? e.check(Dr, n, c)(f) : c(f);
6909
+ if (!r.interrupt || f === 49)
6910
+ return e.enter("listItemPrefix"), e.enter("listItemValue"), l(f);
6889
6911
  }
6890
- return n(h);
6912
+ return n(f);
6891
6913
  }
6892
- function l(h) {
6893
- return ci(h) && ++u < 10 ? (e.consume(h), l) : (!r.interrupt || u < 2) && (r.containerState.marker ? h === r.containerState.marker : h === 41 || h === 46) ? (e.exit("listItemValue"), c(h)) : n(h);
6914
+ function l(f) {
6915
+ return ci(f) && ++u < 10 ? (e.consume(f), l) : (!r.interrupt || u < 2) && (r.containerState.marker ? f === r.containerState.marker : f === 41 || f === 46) ? (e.exit("listItemValue"), c(f)) : n(f);
6894
6916
  }
6895
- function c(h) {
6896
- return e.enter("listItemMarker"), e.consume(h), e.exit("listItemMarker"), r.containerState.marker = r.containerState.marker || h, e.check(
6917
+ function c(f) {
6918
+ return e.enter("listItemMarker"), e.consume(f), e.exit("listItemMarker"), r.containerState.marker = r.containerState.marker || f, e.check(
6897
6919
  Kr,
6898
6920
  // Can’t be empty when interrupting.
6899
6921
  r.interrupt ? n : d,
6900
6922
  e.attempt(
6901
6923
  y1,
6902
6924
  p,
6903
- f
6925
+ h
6904
6926
  )
6905
6927
  );
6906
6928
  }
6907
- function d(h) {
6908
- return r.containerState.initialBlankLine = !0, i++, p(h);
6929
+ function d(f) {
6930
+ return r.containerState.initialBlankLine = !0, i++, p(f);
6909
6931
  }
6910
- function f(h) {
6911
- return Ce(h) ? (e.enter("listItemPrefixWhitespace"), e.consume(h), e.exit("listItemPrefixWhitespace"), p) : n(h);
6932
+ function h(f) {
6933
+ return Ce(f) ? (e.enter("listItemPrefixWhitespace"), e.consume(f), e.exit("listItemPrefixWhitespace"), p) : n(f);
6912
6934
  }
6913
- function p(h) {
6914
- return r.containerState.size = i + r.sliceSerialize(e.exit("listItemPrefix"), !0).length, t(h);
6935
+ function p(f) {
6936
+ return r.containerState.size = i + r.sliceSerialize(e.exit("listItemPrefix"), !0).length, t(f);
6915
6937
  }
6916
6938
  }
6917
6939
  function A1(e, t, n) {
@@ -6994,13 +7016,13 @@ function I1(e, t, n) {
6994
7016
  let a;
6995
7017
  return i;
6996
7018
  function i(c) {
6997
- let d = r.events.length, f;
7019
+ let d = r.events.length, h;
6998
7020
  for (; d--; )
6999
7021
  if (r.events[d][1].type !== "lineEnding" && r.events[d][1].type !== "linePrefix" && r.events[d][1].type !== "content") {
7000
- f = r.events[d][1].type === "paragraph";
7022
+ h = r.events[d][1].type === "paragraph";
7001
7023
  break;
7002
7024
  }
7003
- return !r.parser.lazy[r.now().line] && (r.interrupt || f) ? (e.enter("setextHeadingLine"), a = c, u(c)) : n(c);
7025
+ return !r.parser.lazy[r.now().line] && (r.interrupt || h) ? (e.enter("setextHeadingLine"), a = c, u(c)) : n(c);
7004
7026
  }
7005
7027
  function u(c) {
7006
7028
  return e.enter("setextHeadingLineSequence"), s(c);
@@ -7080,12 +7102,12 @@ function bl(e) {
7080
7102
  function c(d) {
7081
7103
  if (d === null)
7082
7104
  return !0;
7083
- const f = a[d];
7105
+ const h = a[d];
7084
7106
  let p = -1;
7085
- if (f)
7086
- for (; ++p < f.length; ) {
7087
- const h = f[p];
7088
- if (!h.previous || h.previous.call(r, r.previous))
7107
+ if (h)
7108
+ for (; ++p < h.length; ) {
7109
+ const f = h[p];
7110
+ if (!f.previous || f.previous.call(r, r.previous))
7089
7111
  return !0;
7090
7112
  }
7091
7113
  return !1;
@@ -7173,21 +7195,21 @@ function P1(e, t, n) {
7173
7195
  containerState: {},
7174
7196
  events: [],
7175
7197
  parser: e,
7176
- sliceStream: h,
7198
+ sliceStream: f,
7177
7199
  sliceSerialize: p,
7178
7200
  now: T,
7179
7201
  defineSkip: m,
7180
- write: f
7202
+ write: h
7181
7203
  };
7182
7204
  let d = t.tokenize.call(c, l);
7183
7205
  return t.resolveAll && i.push(t), c;
7184
- function f(q) {
7206
+ function h(q) {
7185
7207
  return u = gt(u, q), _(), u[u.length - 1] !== null ? [] : (W(t, 0), c.events = Li(i, c.events, c), c.events);
7186
7208
  }
7187
7209
  function p(q, $) {
7188
- return F1(h(q), $);
7210
+ return F1(f(q), $);
7189
7211
  }
7190
- function h(q) {
7212
+ function f(q) {
7191
7213
  return M1(u, q);
7192
7214
  }
7193
7215
  function T() {
@@ -7448,16 +7470,16 @@ function X1() {
7448
7470
  return a;
7449
7471
  function a(i, u, s) {
7450
7472
  const l = [];
7451
- let c, d, f, p, h;
7452
- for (i = t + i.toString(u), f = 0, t = "", n && (i.charCodeAt(0) === 65279 && f++, n = void 0); f < i.length; ) {
7453
- if (fo.lastIndex = f, c = fo.exec(i), p = c && c.index !== void 0 ? c.index : i.length, h = i.charCodeAt(p), !c) {
7454
- t = i.slice(f);
7473
+ let c, d, h, p, f;
7474
+ for (i = t + i.toString(u), h = 0, t = "", n && (i.charCodeAt(0) === 65279 && h++, n = void 0); h < i.length; ) {
7475
+ if (fo.lastIndex = h, c = fo.exec(i), p = c && c.index !== void 0 ? c.index : i.length, f = i.charCodeAt(p), !c) {
7476
+ t = i.slice(h);
7455
7477
  break;
7456
7478
  }
7457
- if (h === 10 && f === p && r)
7479
+ if (f === 10 && h === p && r)
7458
7480
  l.push(-3), r = void 0;
7459
7481
  else
7460
- switch (r && (l.push(-5), r = void 0), f < p && (l.push(i.slice(f, p)), e += p - f), h) {
7482
+ switch (r && (l.push(-5), r = void 0), h < p && (l.push(i.slice(h, p)), e += p - h), f) {
7461
7483
  case 0: {
7462
7484
  l.push(65533), e++;
7463
7485
  break;
@@ -7473,7 +7495,7 @@ function X1() {
7473
7495
  default:
7474
7496
  r = !0, e = 1;
7475
7497
  }
7476
- f = p + 1;
7498
+ h = p + 1;
7477
7499
  }
7478
7500
  return s && (r && l.push(-5), t && l.push(t), l.push(null)), l;
7479
7501
  }
@@ -7564,7 +7586,7 @@ function tm(e) {
7564
7586
  link: s(vt),
7565
7587
  listItem: s(be),
7566
7588
  listItemValue: T,
7567
- listOrdered: s(ae, h),
7589
+ listOrdered: s(ae, f),
7568
7590
  listUnordered: s(ae),
7569
7591
  paragraph: s(Ae),
7570
7592
  reference: Te,
@@ -7639,7 +7661,7 @@ function tm(e) {
7639
7661
  tokenStack: [],
7640
7662
  config: t,
7641
7663
  enter: c,
7642
- exit: f,
7664
+ exit: h,
7643
7665
  buffer: l,
7644
7666
  resume: p,
7645
7667
  setData: i,
@@ -7745,10 +7767,10 @@ function tm(e) {
7745
7767
  function d(Y) {
7746
7768
  return Z;
7747
7769
  function Z(ie) {
7748
- Y && Y.call(this, ie), f.call(this, ie);
7770
+ Y && Y.call(this, ie), h.call(this, ie);
7749
7771
  }
7750
7772
  }
7751
- function f(Y, Z) {
7773
+ function h(Y, Z) {
7752
7774
  const ie = this.stack.pop(), le = this.tokenStack.pop();
7753
7775
  if (le)
7754
7776
  le[0].type !== Y.type && (Z ? Z.call(this, Y, le[0]) : (le[1] || ho).call(this, Y, le[0]));
@@ -7763,7 +7785,7 @@ function tm(e) {
7763
7785
  function p() {
7764
7786
  return Jh(this.stack.pop());
7765
7787
  }
7766
- function h() {
7788
+ function f() {
7767
7789
  i("expectingFirstListItemValue", !0);
7768
7790
  }
7769
7791
  function T(Y) {
@@ -8288,8 +8310,8 @@ function bm(e, t, n) {
8288
8310
  const r = e.all(t), a = n ? Em(n) : Sl(t), i = {}, u = [];
8289
8311
  if (typeof t.checked == "boolean") {
8290
8312
  const d = r[0];
8291
- let f;
8292
- d && d.type === "element" && d.tagName === "p" ? f = d : (f = { type: "element", tagName: "p", properties: {}, children: [] }, r.unshift(f)), f.children.length > 0 && f.children.unshift({ type: "text", value: " " }), f.children.unshift({
8313
+ let h;
8314
+ d && d.type === "element" && d.tagName === "p" ? h = d : (h = { type: "element", tagName: "p", properties: {}, children: [] }, r.unshift(h)), h.children.length > 0 && h.children.unshift({ type: "text", value: " " }), h.children.unshift({
8293
8315
  type: "element",
8294
8316
  tagName: "input",
8295
8317
  properties: { type: "checkbox", checked: t.checked, disabled: !0 },
@@ -8414,10 +8436,10 @@ function xm(e, t, n) {
8414
8436
  let l = -1;
8415
8437
  const c = [];
8416
8438
  for (; ++l < s; ) {
8417
- const f = t.children[l], p = {}, h = u ? u[l] : void 0;
8418
- h && (p.align = h);
8439
+ const h = t.children[l], p = {}, f = u ? u[l] : void 0;
8440
+ f && (p.align = f);
8419
8441
  let T = { type: "element", tagName: i, properties: p, children: [] };
8420
- f && (T.children = e.all(f), e.patch(f, T), T = e.applyData(t, T)), c.push(T);
8442
+ h && (T.children = e.all(h), e.patch(h, T), T = e.applyData(t, T)), c.push(T);
8421
8443
  }
8422
8444
  const d = {
8423
8445
  type: "element",
@@ -8597,20 +8619,20 @@ const Pm = !0, bo = !1, Mm = "skip", Fm = (
8597
8619
  typeof d.name == "string" ? d.name : void 0
8598
8620
  )
8599
8621
  );
8600
- Object.defineProperty(f, "name", {
8622
+ Object.defineProperty(h, "name", {
8601
8623
  value: "node (" + (s.type + (p ? "<" + p + ">" : "")) + ")"
8602
8624
  });
8603
8625
  }
8604
- return f;
8605
- function f() {
8606
- let p = [], h, T, m;
8626
+ return h;
8627
+ function h() {
8628
+ let p = [], f, T, m;
8607
8629
  if ((!t || a(s, l, c[c.length - 1] || null)) && (p = Bm(n(s, c)), p[0] === bo))
8608
8630
  return p;
8609
8631
  if (s.children && p[0] !== Mm)
8610
8632
  for (T = (r ? s.children.length : -1) + i, m = c.concat(s); T > -1 && T < s.children.length; ) {
8611
- if (h = u(s.children[T], T, m)(), h[0] === bo)
8612
- return h;
8613
- T = typeof h[1] == "number" ? h[1] : T + i;
8633
+ if (f = u(s.children[T], T, m)(), f[0] === bo)
8634
+ return f;
8635
+ T = typeof f[1] == "number" ? f[1] : T + i;
8614
8636
  }
8615
8637
  return p;
8616
8638
  }
@@ -8677,25 +8699,25 @@ function jm(e, t) {
8677
8699
  }), u;
8678
8700
  function i(c, d) {
8679
8701
  if (c && "data" in c && c.data) {
8680
- const f = c.data;
8681
- f.hName && (d.type !== "element" && (d = {
8702
+ const h = c.data;
8703
+ h.hName && (d.type !== "element" && (d = {
8682
8704
  type: "element",
8683
8705
  tagName: "",
8684
8706
  properties: {},
8685
8707
  children: []
8686
- }), d.tagName = f.hName), d.type === "element" && f.hProperties && (d.properties = { ...d.properties, ...f.hProperties }), "children" in d && d.children && f.hChildren && (d.children = f.hChildren);
8708
+ }), d.tagName = h.hName), d.type === "element" && h.hProperties && (d.properties = { ...d.properties, ...h.hProperties }), "children" in d && d.children && h.hChildren && (d.children = h.hChildren);
8687
8709
  }
8688
8710
  if (c) {
8689
- const f = "type" in c ? c : { position: c };
8690
- Hm(f) || (d.position = { start: wi(f), end: Pi(f) });
8711
+ const h = "type" in c ? c : { position: c };
8712
+ Hm(h) || (d.position = { start: wi(h), end: Pi(h) });
8691
8713
  }
8692
8714
  return d;
8693
8715
  }
8694
- function u(c, d, f, p) {
8695
- return Array.isArray(f) && (p = f, f = {}), i(c, {
8716
+ function u(c, d, h, p) {
8717
+ return Array.isArray(h) && (p = h, h = {}), i(c, {
8696
8718
  type: "element",
8697
8719
  tagName: d,
8698
- properties: f || {},
8720
+ properties: h || {},
8699
8721
  children: p || []
8700
8722
  });
8701
8723
  }
@@ -8776,7 +8798,7 @@ function Vm(e) {
8776
8798
  let s = 0;
8777
8799
  const l = [];
8778
8800
  for (; ++s <= e.footnoteCounts[i]; ) {
8779
- const f = {
8801
+ const h = {
8780
8802
  type: "element",
8781
8803
  tagName: "a",
8782
8804
  properties: {
@@ -8787,16 +8809,16 @@ function Vm(e) {
8787
8809
  },
8788
8810
  children: [{ type: "text", value: "↩" }]
8789
8811
  };
8790
- s > 1 && f.children.push({
8812
+ s > 1 && h.children.push({
8791
8813
  type: "element",
8792
8814
  tagName: "sup",
8793
8815
  children: [{ type: "text", value: String(s) }]
8794
- }), l.length > 0 && l.push({ type: "text", value: " " }), l.push(f);
8816
+ }), l.length > 0 && l.push({ type: "text", value: " " }), l.push(h);
8795
8817
  }
8796
8818
  const c = a[a.length - 1];
8797
8819
  if (c && c.type === "element" && c.tagName === "p") {
8798
- const f = c.children[c.children.length - 1];
8799
- f && f.type === "text" ? f.value += " " : c.children.push({ type: "text", value: " " }), c.children.push(...l);
8820
+ const h = c.children[c.children.length - 1];
8821
+ h && h.type === "text" ? h.value += " " : c.children.push({ type: "text", value: " " }), c.children.push(...l);
8800
8822
  } else
8801
8823
  a.push(...l);
8802
8824
  const d = {
@@ -10038,7 +10060,7 @@ var Ao;
10038
10060
  function i2() {
10039
10061
  if (Ao) return Se;
10040
10062
  Ao = 1;
10041
- 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"), T;
10063
+ 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"), h = Symbol.for("react.memo"), p = Symbol.for("react.lazy"), f = Symbol.for("react.offscreen"), T;
10042
10064
  T = Symbol.for("react.module.reference");
10043
10065
  function m(_) {
10044
10066
  if (typeof _ == "object" && _ !== null) {
@@ -10058,7 +10080,7 @@ function i2() {
10058
10080
  case u:
10059
10081
  case l:
10060
10082
  case p:
10061
- case f:
10083
+ case h:
10062
10084
  case i:
10063
10085
  return _;
10064
10086
  default:
@@ -10070,7 +10092,7 @@ function i2() {
10070
10092
  }
10071
10093
  }
10072
10094
  }
10073
- return Se.ContextConsumer = u, Se.ContextProvider = i, Se.Element = e, Se.ForwardRef = l, Se.Fragment = n, Se.Lazy = p, Se.Memo = f, Se.Portal = t, Se.Profiler = a, Se.StrictMode = r, Se.Suspense = c, Se.SuspenseList = d, Se.isAsyncMode = function() {
10095
+ return Se.ContextConsumer = u, Se.ContextProvider = i, Se.Element = e, Se.ForwardRef = l, Se.Fragment = n, Se.Lazy = p, Se.Memo = h, Se.Portal = t, Se.Profiler = a, Se.StrictMode = r, Se.Suspense = c, Se.SuspenseList = d, Se.isAsyncMode = function() {
10074
10096
  return !1;
10075
10097
  }, Se.isConcurrentMode = function() {
10076
10098
  return !1;
@@ -10087,7 +10109,7 @@ function i2() {
10087
10109
  }, Se.isLazy = function(_) {
10088
10110
  return m(_) === p;
10089
10111
  }, Se.isMemo = function(_) {
10090
- return m(_) === f;
10112
+ return m(_) === h;
10091
10113
  }, Se.isPortal = function(_) {
10092
10114
  return m(_) === t;
10093
10115
  }, Se.isProfiler = function(_) {
@@ -10099,7 +10121,7 @@ function i2() {
10099
10121
  }, Se.isSuspenseList = function(_) {
10100
10122
  return m(_) === d;
10101
10123
  }, Se.isValidElementType = function(_) {
10102
- return typeof _ == "string" || typeof _ == "function" || _ === n || _ === a || _ === r || _ === c || _ === d || _ === h || typeof _ == "object" && _ !== null && (_.$$typeof === p || _.$$typeof === f || _.$$typeof === i || _.$$typeof === u || _.$$typeof === l || _.$$typeof === T || _.getModuleId !== void 0);
10124
+ return typeof _ == "string" || typeof _ == "function" || _ === n || _ === a || _ === r || _ === c || _ === d || _ === f || typeof _ == "object" && _ !== null && (_.$$typeof === p || _.$$typeof === h || _.$$typeof === i || _.$$typeof === u || _.$$typeof === l || _.$$typeof === T || _.getModuleId !== void 0);
10103
10125
  }, Se.typeOf = m, Se;
10104
10126
  }
10105
10127
  var So;
@@ -10146,7 +10168,7 @@ function c2() {
10146
10168
  if (Oo) return Fa;
10147
10169
  Oo = 1;
10148
10170
  var e = /\/\*[^*]*\*+([^/*][^*]*\*+)*\//g, t = /\n/g, n = /^\s*/, r = /^(\*?[-#/*\\\w]+(\[[0-9a-z_-]+\])?)\s*/, a = /^:\s*/, i = /^((?:'(?:\\'|.)*?'|"(?:\\"|.)*?"|\([^)]*?\)|[^};])+)/, u = /^[;\s]*/, s = /^\s+|\s+$/g, l = `
10149
- `, c = "/", d = "*", f = "", p = "comment", h = "declaration";
10171
+ `, c = "/", d = "*", h = "", p = "comment", f = "declaration";
10150
10172
  Fa = function(m, _) {
10151
10173
  if (typeof m != "string")
10152
10174
  throw new TypeError("First argument must be a string");
@@ -10194,9 +10216,9 @@ function c2() {
10194
10216
  function Q() {
10195
10217
  var L = X();
10196
10218
  if (!(c != m.charAt(0) || d != m.charAt(1))) {
10197
- for (var I = 2; f != m.charAt(I) && (d != m.charAt(I) || c != m.charAt(I + 1)); )
10219
+ for (var I = 2; h != m.charAt(I) && (d != m.charAt(I) || c != m.charAt(I + 1)); )
10198
10220
  ++I;
10199
- if (I += 2, f === m.charAt(I - 1))
10221
+ if (I += 2, h === m.charAt(I - 1))
10200
10222
  return y("End of comment missing");
10201
10223
  var R = m.slice(2, I - 2);
10202
10224
  return P += 2, F(R), m = m.slice(I), P += 2, L({
@@ -10210,9 +10232,9 @@ function c2() {
10210
10232
  if (I) {
10211
10233
  if (Q(), !k(a)) return y("property missing ':'");
10212
10234
  var R = k(i), H = L({
10213
- type: h,
10214
- property: T(I[0].replace(e, f)),
10215
- value: R ? T(R[0].replace(e, f)) : f
10235
+ type: f,
10236
+ property: T(I[0].replace(e, h)),
10237
+ value: R ? T(R[0].replace(e, h)) : h
10216
10238
  });
10217
10239
  return k(u), H;
10218
10240
  }
@@ -10227,7 +10249,7 @@ function c2() {
10227
10249
  return W(), $();
10228
10250
  };
10229
10251
  function T(m) {
10230
- return m ? m.replace(s, f) : f;
10252
+ return m ? m.replace(s, h) : h;
10231
10253
  }
10232
10254
  return Fa;
10233
10255
  }
@@ -10240,7 +10262,7 @@ function d2() {
10240
10262
  var a = null;
10241
10263
  if (!n || typeof n != "string")
10242
10264
  return a;
10243
- for (var i, u = e(n), s = typeof r == "function", l, c, d = 0, f = u.length; d < f; d++)
10265
+ for (var i, u = e(n), s = typeof r == "function", l, c, d = 0, h = u.length; d < h; d++)
10244
10266
  i = u[d], l = i.property, c = i.value, s ? r(l, c, i) : c && (a || (a = {}), a[l] = c);
10245
10267
  return a;
10246
10268
  }
@@ -10262,13 +10284,13 @@ function m2(e, t, n, r) {
10262
10284
  for (d in t.properties)
10263
10285
  pi.call(t.properties, d) && b2(l, d, t.properties[d], e);
10264
10286
  (s === "ol" || s === "ul") && e.listDepth++;
10265
- const f = jl(e, t);
10287
+ const h = jl(e, t);
10266
10288
  (s === "ol" || s === "ul") && e.listDepth--, e.schema = u;
10267
10289
  const p = t.position || {
10268
10290
  start: { line: null, column: null, offset: null },
10269
10291
  end: { line: null, column: null, offset: null }
10270
- }, h = a.components && pi.call(a.components, s) ? a.components[s] : s, T = typeof h == "string" || h === Tt.Fragment;
10271
- if (!s2.isValidElementType(h))
10292
+ }, f = a.components && pi.call(a.components, s) ? a.components[s] : s, T = typeof f == "string" || f === Tt.Fragment;
10293
+ if (!s2.isValidElementType(f))
10272
10294
  throw new TypeError(
10273
10295
  `Component for name \`${s}\` not defined or is not renderable`
10274
10296
  );
@@ -10288,7 +10310,7 @@ function m2(e, t, n, r) {
10288
10310
  const m = g2(t);
10289
10311
  l.checked = m && m.properties ? !!m.properties.checked : null, l.index = Ba(r, t), l.ordered = r.tagName === "ol";
10290
10312
  }
10291
- return !T && (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), T || (l.isHeader = s === "th")), !T && s === "tr" && r.type === "element" && (l.isHeader = r.tagName === "thead"), a.sourcePos && (l["data-sourcepos"] = y2(p)), !T && a.rawSourcePos && (l.sourcePosition = t.position), !T && a.includeElementIndex && (l.index = Ba(r, t), l.siblingCount = Ba(r)), T || (l.node = t), f.length > 0 ? Tt.createElement(h, l, f) : Tt.createElement(h, l);
10313
+ return !T && (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), T || (l.isHeader = s === "th")), !T && s === "tr" && r.type === "element" && (l.isHeader = r.tagName === "thead"), a.sourcePos && (l["data-sourcepos"] = y2(p)), !T && a.rawSourcePos && (l.sourcePosition = t.position), !T && a.includeElementIndex && (l.index = Ba(r, t), l.siblingCount = Ba(r)), T || (l.node = t), h.length > 0 ? Tt.createElement(f, l, h) : Tt.createElement(f, l);
10292
10314
  }
10293
10315
  function g2(e) {
10294
10316
  let t = -1;
@@ -10445,7 +10467,7 @@ Ui.propTypes = {
10445
10467
  components: x.object
10446
10468
  };
10447
10469
  const ql = ({ children: e, id: t, link: n }) => {
10448
- const { contentRef: r } = se(Gt), [a, i] = de(!1), u = pt(null), s = Et(() => i(!0), []), l = Et(() => i(!1), []), c = Et(() => i(!0), []), d = Et(() => i(!1), []), f = Et(
10470
+ const { contentRef: r } = se(Gt), [a, i] = de(!1), u = pt(null), s = Et(() => i(!0), []), l = Et(() => i(!1), []), c = Et(() => i(!0), []), d = Et(() => i(!1), []), h = Et(
10449
10471
  (p) => {
10450
10472
  p.key === "Enter" ? window.open(n, "_blank") : p.key === "Escape" && i(!1);
10451
10473
  },
@@ -10453,9 +10475,9 @@ const ql = ({ children: e, id: t, link: n }) => {
10453
10475
  );
10454
10476
  return b0(() => {
10455
10477
  if (a && u.current && r.current) {
10456
- const p = u.current.getBoundingClientRect(), h = r.current.getBoundingClientRect();
10478
+ const p = u.current.getBoundingClientRect(), f = r.current.getBoundingClientRect();
10457
10479
  let T = 0;
10458
- p.right > h.right ? (T = h.right - p.right - 2, u.current.style.transform = `translateX(${T}px)`) : u.current.style.transform = "translateX(-50%)";
10480
+ p.right > f.right ? (T = f.right - p.right - 2, u.current.style.transform = `translateX(${T}px)`) : u.current.style.transform = "translateX(-50%)";
10459
10481
  }
10460
10482
  }, [a, r]), Tt.cloneElement(e, {
10461
10483
  "aria-describedby": t,
@@ -10463,7 +10485,7 @@ const ql = ({ children: e, id: t, link: n }) => {
10463
10485
  onMouseLeave: l,
10464
10486
  onFocus: c,
10465
10487
  onBlur: d,
10466
- onKeyDown: f,
10488
+ onKeyDown: h,
10467
10489
  children: /* @__PURE__ */ v.jsxs(v.Fragment, { children: [
10468
10490
  e.props.children,
10469
10491
  a && /* @__PURE__ */ v.jsx(
@@ -10566,7 +10588,7 @@ function I2() {
10566
10588
  (function(n, r) {
10567
10589
  e.exports = r();
10568
10590
  })(O2, function() {
10569
- 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", T = "date", m = "Invalid Date", _ = /^(\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) {
10591
+ var n = 1e3, r = 6e4, a = 36e5, i = "millisecond", u = "second", s = "minute", l = "hour", c = "day", d = "week", h = "month", p = "quarter", f = "year", T = "date", m = "Invalid Date", _ = /^(\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) {
10570
10592
  var R = ["th", "st", "nd", "rd"], H = I % 100;
10571
10593
  return "[" + I + (R[(H - 20) % 10] || R[H] || R[0]) + "]";
10572
10594
  } }, F = function(I, R, H) {
@@ -10577,12 +10599,12 @@ function I2() {
10577
10599
  return (R <= 0 ? "+" : "-") + F(V, 2, "0") + ":" + F(j, 2, "0");
10578
10600
  }, m: function I(R, H) {
10579
10601
  if (R.date() < H.date()) return -I(H, R);
10580
- var V = 12 * (H.year() - R.year()) + (H.month() - R.month()), j = R.clone().add(V, f), z = H - j < 0, g = R.clone().add(V + (z ? -1 : 1), f);
10602
+ var V = 12 * (H.year() - R.year()) + (H.month() - R.month()), j = R.clone().add(V, h), z = H - j < 0, g = R.clone().add(V + (z ? -1 : 1), h);
10581
10603
  return +(-(V + (H - j) / (z ? j - g : g - j)) || 0);
10582
10604
  }, a: function(I) {
10583
10605
  return I < 0 ? Math.ceil(I) || 0 : Math.floor(I);
10584
10606
  }, p: function(I) {
10585
- return { M: f, y: h, w: d, d: c, D: T, h: l, m: s, s: u, ms: i, Q: p }[I] || String(I || "").toLowerCase().replace(/s$/, "");
10607
+ return { M: h, y: f, w: d, d: c, D: T, h: l, m: s, s: u, ms: i, Q: p }[I] || String(I || "").toLowerCase().replace(/s$/, "");
10586
10608
  }, u: function(I) {
10587
10609
  return I === void 0;
10588
10610
  } }, D = "en", y = {};
@@ -10658,9 +10680,9 @@ function I2() {
10658
10680
  return q.w(j.toDate()[Me].apply(j.toDate("s"), (z ? [0, 0, 0, 0] : [23, 59, 59, 999]).slice(Oe)), j);
10659
10681
  }, S = this.$W, oe = this.$M, Te = this.$D, me = "set" + (this.$u ? "UTC" : "");
10660
10682
  switch (g) {
10661
- case h:
10662
- return z ? ne(1, 0) : ne(31, 11);
10663
10683
  case f:
10684
+ return z ? ne(1, 0) : ne(31, 11);
10685
+ case h:
10664
10686
  return z ? ne(1, oe) : ne(0, oe + 1);
10665
10687
  case d:
10666
10688
  var xe = this.$locale().weekStart || 0, ve = (S < xe ? S + 7 : S) - xe;
@@ -10680,8 +10702,8 @@ function I2() {
10680
10702
  }, R.endOf = function(H) {
10681
10703
  return this.startOf(H, !1);
10682
10704
  }, R.$set = function(H, V) {
10683
- var j, z = q.p(H), g = "set" + (this.$u ? "UTC" : ""), ne = (j = {}, j[c] = g + "Date", j[T] = g + "Date", j[f] = g + "Month", j[h] = g + "FullYear", j[l] = g + "Hours", j[s] = g + "Minutes", j[u] = g + "Seconds", j[i] = g + "Milliseconds", j)[z], ue = z === c ? this.$D + (V - this.$W) : V;
10684
- if (z === f || z === h) {
10705
+ var j, z = q.p(H), g = "set" + (this.$u ? "UTC" : ""), ne = (j = {}, j[c] = g + "Date", j[T] = g + "Date", j[h] = g + "Month", j[f] = g + "FullYear", j[l] = g + "Hours", j[s] = g + "Minutes", j[u] = g + "Seconds", j[i] = g + "Milliseconds", j)[z], ue = z === c ? this.$D + (V - this.$W) : V;
10706
+ if (z === h || z === f) {
10685
10707
  var S = this.clone().set(T, 1);
10686
10708
  S.$d[ne](ue), S.init(), this.$d = S.set(T, Math.min(this.$D, S.daysInMonth())).$d;
10687
10709
  } else ne && this.$d[ne](ue);
@@ -10697,8 +10719,8 @@ function I2() {
10697
10719
  var Te = Q(z);
10698
10720
  return q.w(Te.date(Te.date() + Math.round(oe * H)), z);
10699
10721
  };
10700
- if (g === f) return this.set(f, this.$M + H);
10701
- if (g === h) return this.set(h, this.$y + H);
10722
+ if (g === h) return this.set(h, this.$M + H);
10723
+ if (g === f) return this.set(f, this.$y + H);
10702
10724
  if (g === c) return ne(1);
10703
10725
  if (g === d) return ne(7);
10704
10726
  var ue = (j = {}, j[s] = r, j[l] = a, j[u] = n, j)[g] || 1, S = this.$d.getTime() + H * ue;
@@ -10778,10 +10800,10 @@ function I2() {
10778
10800
  return q.m(g, ue);
10779
10801
  };
10780
10802
  switch (ne) {
10781
- case h:
10803
+ case f:
10782
10804
  z = Te() / 12;
10783
10805
  break;
10784
- case f:
10806
+ case h:
10785
10807
  z = Te();
10786
10808
  break;
10787
10809
  case p:
@@ -10807,7 +10829,7 @@ function I2() {
10807
10829
  }
10808
10830
  return j ? z : q.a(z);
10809
10831
  }, R.daysInMonth = function() {
10810
- return this.endOf(f).$D;
10832
+ return this.endOf(h).$D;
10811
10833
  }, R.$locale = function() {
10812
10834
  return y[this.$L];
10813
10835
  }, R.locale = function(H, V) {
@@ -10826,7 +10848,7 @@ function I2() {
10826
10848
  return this.$d.toUTCString();
10827
10849
  }, I;
10828
10850
  }(), L = $.prototype;
10829
- return Q.prototype = L, [["$ms", i], ["$s", u], ["$m", s], ["$H", l], ["$W", c], ["$M", f], ["$y", h], ["$D", T]].forEach(function(I) {
10851
+ return Q.prototype = L, [["$ms", i], ["$s", u], ["$m", s], ["$H", l], ["$W", c], ["$M", h], ["$y", f], ["$D", T]].forEach(function(I) {
10830
10852
  L[I[1]] = function(R) {
10831
10853
  return this.$g(R, I[0], I[1]);
10832
10854
  };
@@ -10971,10 +10993,10 @@ const Yl = -1, Zr = 0, tr = 1, zr = 2, qi = 3, zi = 4, Yi = 5, $i = 6, $l = 7, V
10971
10993
  let p = u;
10972
10994
  return l === "DataView" ? p = new Uint8Array(u.buffer) : l === "ArrayBuffer" && (p = new Uint8Array(u)), a([l, [...p]], u);
10973
10995
  }
10974
- const d = [], f = a([s, d], u);
10996
+ const d = [], h = a([s, d], u);
10975
10997
  for (const p of u)
10976
10998
  d.push(i(p));
10977
- return f;
10999
+ return h;
10978
11000
  }
10979
11001
  case zr: {
10980
11002
  if (l)
@@ -10988,28 +11010,28 @@ const Yl = -1, Zr = 0, tr = 1, zr = 2, qi = 3, zi = 4, Yi = 5, $i = 6, $l = 7, V
10988
11010
  }
10989
11011
  if (t && "toJSON" in u)
10990
11012
  return i(u.toJSON());
10991
- const d = [], f = a([s, d], u);
11013
+ const d = [], h = a([s, d], u);
10992
11014
  for (const p of F2(u))
10993
11015
  (e || !Or(Yn(u[p]))) && d.push([i(p), i(u[p])]);
10994
- return f;
11016
+ return h;
10995
11017
  }
10996
11018
  case qi:
10997
11019
  return a([s, u.toISOString()], u);
10998
11020
  case zi: {
10999
- const { source: d, flags: f } = u;
11000
- return a([s, { source: d, flags: f }], u);
11021
+ const { source: d, flags: h } = u;
11022
+ return a([s, { source: d, flags: h }], u);
11001
11023
  }
11002
11024
  case Yi: {
11003
- const d = [], f = a([s, d], u);
11004
- for (const [p, h] of u)
11005
- (e || !(Or(Yn(p)) || Or(Yn(h)))) && d.push([i(p), i(h)]);
11006
- return f;
11025
+ const d = [], h = a([s, d], u);
11026
+ for (const [p, f] of u)
11027
+ (e || !(Or(Yn(p)) || Or(Yn(f)))) && d.push([i(p), i(f)]);
11028
+ return h;
11007
11029
  }
11008
11030
  case $i: {
11009
- const d = [], f = a([s, d], u);
11031
+ const d = [], h = a([s, d], u);
11010
11032
  for (const p of u)
11011
11033
  (e || !Or(Yn(p))) && d.push(i(p));
11012
- return f;
11034
+ return h;
11013
11035
  }
11014
11036
  }
11015
11037
  const { message: c } = u;
@@ -12201,8 +12223,8 @@ function tc(e, t, n) {
12201
12223
  if (l.tagName = d || c, K2(u))
12202
12224
  s.unshift(u);
12203
12225
  else
12204
- for (const [f, p] of Object.entries(u))
12205
- Q2(e, l.properties, f, p);
12226
+ for (const [h, p] of Object.entries(u))
12227
+ Q2(e, l.properties, h, p);
12206
12228
  }
12207
12229
  for (const c of s)
12208
12230
  bi(l.children, c);
@@ -13608,11 +13630,11 @@ function pg(e, t) {
13608
13630
  const s = (
13609
13631
  /** @type {DefaultTreeAdapterMap['template']} */
13610
13632
  t
13611
- ), l = s.sourceCodeLocation, c = l && l.startTag && Cn(l.startTag), d = l && l.endTag && Cn(l.endTag), f = (
13633
+ ), l = s.sourceCodeLocation, c = l && l.startTag && Cn(l.startTag), d = l && l.endTag && Cn(l.endTag), h = (
13612
13634
  /** @type {Root} */
13613
13635
  Gi(e, s.content)
13614
13636
  );
13615
- c && d && e.file && (f.position = { start: c.end, end: d.start }), u.content = f;
13637
+ c && d && e.file && (h.position = { start: c.end, end: d.start }), u.content = h;
13616
13638
  }
13617
13639
  return e.schema = n, u;
13618
13640
  }
@@ -19566,33 +19588,33 @@ function sT(e, t, n, r) {
19566
19588
  const i = Gc(a), u = r ? -1 : 1;
19567
19589
  s(e, void 0, [])();
19568
19590
  function s(l, c, d) {
19569
- const f = (
19591
+ const h = (
19570
19592
  /** @type {Record<string, unknown>} */
19571
19593
  l && typeof l == "object" ? l : {}
19572
19594
  );
19573
- if (typeof f.type == "string") {
19574
- const h = (
19595
+ if (typeof h.type == "string") {
19596
+ const f = (
19575
19597
  // `hast`
19576
- typeof f.tagName == "string" ? f.tagName : (
19598
+ typeof h.tagName == "string" ? h.tagName : (
19577
19599
  // `xast`
19578
- typeof f.name == "string" ? f.name : void 0
19600
+ typeof h.name == "string" ? h.name : void 0
19579
19601
  )
19580
19602
  );
19581
19603
  Object.defineProperty(p, "name", {
19582
- value: "node (" + (l.type + (h ? "<" + h + ">" : "")) + ")"
19604
+ value: "node (" + (l.type + (f ? "<" + f + ">" : "")) + ")"
19583
19605
  });
19584
19606
  }
19585
19607
  return p;
19586
19608
  function p() {
19587
- let h = Xc, T, m, _;
19588
- if ((!t || i(l, c, d[d.length - 1] || void 0)) && (h = lT(n(l, d)), h[0] === rs))
19589
- return h;
19609
+ let f = Xc, T, m, _;
19610
+ if ((!t || i(l, c, d[d.length - 1] || void 0)) && (f = lT(n(l, d)), f[0] === rs))
19611
+ return f;
19590
19612
  if ("children" in l && l.children) {
19591
19613
  const E = (
19592
19614
  /** @type {UnistParent} */
19593
19615
  l
19594
19616
  );
19595
- if (E.children && h[0] !== oT)
19617
+ if (E.children && f[0] !== oT)
19596
19618
  for (m = (r ? E.children.length : -1) + u, _ = d.concat(E); m > -1 && m < E.children.length; ) {
19597
19619
  const P = E.children[m];
19598
19620
  if (T = s(P, m, _)(), T[0] === rs)
@@ -19600,7 +19622,7 @@ function sT(e, t, n, r) {
19600
19622
  m = typeof T[1] == "number" ? T[1] : m + u;
19601
19623
  }
19602
19624
  }
19603
- return h;
19625
+ return f;
19604
19626
  }
19605
19627
  }
19606
19628
  }
@@ -19611,8 +19633,8 @@ function cT(e, t, n, r) {
19611
19633
  let a, i, u;
19612
19634
  i = t, u = n, a = r, sT(e, i, s, a);
19613
19635
  function s(l, c) {
19614
- const d = c[c.length - 1], f = d ? d.children.indexOf(l) : void 0;
19615
- return u(l, f, d);
19636
+ const d = c[c.length - 1], h = d ? d.children.indexOf(l) : void 0;
19637
+ return u(l, h, d);
19616
19638
  }
19617
19639
  }
19618
19640
  const dT = /<(\/?)(iframe|noembed|noframes|plaintext|script|style|textarea|title|xmp)(?=[\t\n\f\r />])/gi, fT = /* @__PURE__ */ new Set([
@@ -19646,8 +19668,8 @@ function Kc(e, t) {
19646
19668
  s
19647
19669
  );
19648
19670
  if (d.value.stitch && c && l !== void 0) {
19649
- const f = c.children;
19650
- return f[l] = d.value.stitch, l;
19671
+ const h = c.children;
19672
+ return h[l] = d.value.stitch, l;
19651
19673
  }
19652
19674
  }), u.type === "root" && u.children.length === 1 && u.children[0].type === e.type ? u.children[0] : u;
19653
19675
  }
@@ -19842,9 +19864,9 @@ const xT = "Sure, I can get you to someone who can help.", vT = (e) => {
19842
19864
  var X;
19843
19865
  const { primaryColor: l, conversationScreen: c } = se(He), {
19844
19866
  content: d,
19845
- disableFeedback: f,
19867
+ disableFeedback: h,
19846
19868
  liveAgent: p,
19847
- role: h = "assistant",
19869
+ role: f = "assistant",
19848
19870
  timestamp: T,
19849
19871
  toolCalls: m
19850
19872
  } = n ?? {}, _ = p || w2(m).includes("escalate_to_an_agent"), E = !_ && !!d, P = or(
@@ -19903,7 +19925,7 @@ const xT = "Sure, I can get you to someone who can help.", vT = (e) => {
19903
19925
  children: y.children
19904
19926
  }
19905
19927
  ),
19906
- p: (y) => /* @__PURE__ */ v.jsx("p", { ...y, style: P[h].bubbleStyle, children: y.children }),
19928
+ p: (y) => /* @__PURE__ */ v.jsx("p", { ...y, style: P[f].bubbleStyle, children: y.children }),
19907
19929
  "document-source": ({ children: y, node: k }) => {
19908
19930
  var M;
19909
19931
  const W = (M = k.properties) == null ? void 0 : M.dataIndex;
@@ -19916,11 +19938,11 @@ const xT = "Sure, I can get you to someone who can help.", vT = (e) => {
19916
19938
  children: D
19917
19939
  }
19918
19940
  );
19919
- }, [d, E, i, P, h]);
19941
+ }, [d, E, i, P, f]);
19920
19942
  return /* @__PURE__ */ v.jsxs(
19921
19943
  "section",
19922
19944
  {
19923
- "aria-label": P[h].sectionAriaLabel,
19945
+ "aria-label": P[f].sectionAriaLabel,
19924
19946
  className: "xpert-chatbot-popup__bubble--group",
19925
19947
  ref: r,
19926
19948
  children: [
@@ -19928,9 +19950,9 @@ const xT = "Sure, I can get you to someone who can help.", vT = (e) => {
19928
19950
  "div",
19929
19951
  {
19930
19952
  className: "xpert-chatbot-popup__bubble--group-inner",
19931
- style: P[h].innerStyle,
19953
+ style: P[f].innerStyle,
19932
19954
  children: [
19933
- h === "agent" && /* @__PURE__ */ v.jsx(
19955
+ f === "agent" && /* @__PURE__ */ v.jsx(
19934
19956
  mi,
19935
19957
  {
19936
19958
  alignSelf: "flex-end",
@@ -19942,8 +19964,8 @@ const xT = "Sure, I can get you to someone who can help.", vT = (e) => {
19942
19964
  "div",
19943
19965
  {
19944
19966
  "data-testid": "message-container",
19945
- className: P[h].bubbleClassName,
19946
- style: P[h].bubbleStyle,
19967
+ className: P[f].bubbleClassName,
19968
+ style: P[f].bubbleStyle,
19947
19969
  children: [
19948
19970
  F,
19949
19971
  _ && /* @__PURE__ */ v.jsxs(v.Fragment, { children: [
@@ -19964,7 +19986,7 @@ const xT = "Sure, I can get you to someone who can help.", vT = (e) => {
19964
19986
  ]
19965
19987
  }
19966
19988
  ),
19967
- h === "user" && /* @__PURE__ */ v.jsx(
19989
+ f === "user" && /* @__PURE__ */ v.jsx(
19968
19990
  mi,
19969
19991
  {
19970
19992
  alignSelf: "flex-end",
@@ -19976,7 +19998,7 @@ const xT = "Sure, I can get you to someone who can help.", vT = (e) => {
19976
19998
  }
19977
19999
  ),
19978
20000
  T && /* @__PURE__ */ v.jsx("div", { className: "xpert-chatbot-popup__bubble--timestamp", children: k2(T).format("hh:mm a") }),
19979
- !f && a && h === "assistant" ? /* @__PURE__ */ v.jsx(
20001
+ !h && a && f === "assistant" ? /* @__PURE__ */ v.jsx(
19980
20002
  al,
19981
20003
  {
19982
20004
  id: e,
@@ -20076,12 +20098,12 @@ const ia = ({
20076
20098
  "aria-label": "Chat conversation",
20077
20099
  "aria-busy": t,
20078
20100
  style: { display: "flex", flexDirection: "column" },
20079
- children: n.map((d, f) => {
20080
- const { role: p } = d, h = `${p}-${f}`;
20081
- return p === "error" ? /* @__PURE__ */ v.jsx(ii, { content: d == null ? void 0 : d.content }, h) : p === "notification" ? /* @__PURE__ */ v.jsx(eu, { message: d }, h) : ["agent", "assistant", "info", "user"].includes(p) ? /* @__PURE__ */ v.jsx(
20101
+ children: n.map((d, h) => {
20102
+ const { role: p } = d, f = `${p}-${h}`;
20103
+ return p === "error" ? /* @__PURE__ */ v.jsx(ii, { content: d == null ? void 0 : d.content }, f) : p === "notification" ? /* @__PURE__ */ v.jsx(eu, { message: d }, f) : ["agent", "assistant", "info", "user"].includes(p) ? /* @__PURE__ */ v.jsx(
20082
20104
  aa,
20083
20105
  {
20084
- index: f,
20106
+ index: h,
20085
20107
  isTestUser: e,
20086
20108
  message: d,
20087
20109
  messageRef: c,
@@ -20090,7 +20112,7 @@ const ia = ({
20090
20112
  onFeedbackThumbSelection: r,
20091
20113
  onMessageLinkClicked: a
20092
20114
  },
20093
- h
20115
+ f
20094
20116
  ) : null;
20095
20117
  })
20096
20118
  }
@@ -20205,7 +20227,7 @@ function nd({
20205
20227
  userInput: l = ""
20206
20228
  }) {
20207
20229
  var _, E;
20208
- const { conversationScreen: c, disclaimer: d } = se(He), { deleteConversationModal: f, xpertMessages: p } = se(Gt), { loading: h, setMode: T } = se(Ze), m = (P) => {
20230
+ const { conversationScreen: c, disclaimer: d } = se(He), { deleteConversationModal: h, xpertMessages: p } = se(Gt), { loading: f, setMode: T } = se(Ze), m = (P) => {
20209
20231
  c.liveChat.useOwnChat ? T(jt.LIVECHAT) : u(P);
20210
20232
  };
20211
20233
  return /* @__PURE__ */ v.jsxs(v.Fragment, { children: [
@@ -20220,7 +20242,7 @@ function nd({
20220
20242
  },
20221
20243
  children: [
20222
20244
  (d == null ? void 0 : d.text) && /* @__PURE__ */ v.jsx(Ys, {}),
20223
- ((_ = c == null ? void 0 : c.prompts) == null ? void 0 : _.length) > 0 && /* @__PURE__ */ v.jsx(tu, { loading: h, onPromptClick: r }),
20245
+ ((_ = c == null ? void 0 : c.prompts) == null ? void 0 : _.length) > 0 && /* @__PURE__ */ v.jsx(tu, { loading: f, onPromptClick: r }),
20224
20246
  (c == null ? void 0 : c.systemMessage) && /* @__PURE__ */ v.jsx(
20225
20247
  aa,
20226
20248
  {
@@ -20235,7 +20257,7 @@ function nd({
20235
20257
  {
20236
20258
  isTestUser: i,
20237
20259
  messages: p,
20238
- loading: h,
20260
+ loading: f,
20239
20261
  setLiveChatOpen: u,
20240
20262
  submitEvent: s,
20241
20263
  onFeedbackThumbSelection: t,
@@ -20269,7 +20291,7 @@ function nd({
20269
20291
  /* @__PURE__ */ v.jsx("div", { style: { display: "flex", flex: 1, padding: "1.5rem" }, children: /* @__PURE__ */ v.jsx(
20270
20292
  Ni,
20271
20293
  {
20272
- disabled: h || f,
20294
+ disabled: f || h,
20273
20295
  handleChange: e,
20274
20296
  handleSend: r,
20275
20297
  inputRef: a,
@@ -20351,8 +20373,8 @@ function ru() {
20351
20373
  var n = function(a, i) {
20352
20374
  i === void 0 && (i = {});
20353
20375
  var u = /\?([\w]+=[\w]+)/, s = u.test(a), l = "".concat(Object.entries(i).reduce(function(c, d) {
20354
- var f = d[0], p = d[1];
20355
- return c + "".concat(f, "=").concat(p, "&");
20376
+ var h = d[0], p = d[1];
20377
+ return c + "".concat(h, "=").concat(p, "&");
20356
20378
  }, "").slice(0, -1));
20357
20379
  return "".concat(a).concat(s ? "&" : "?").concat(l);
20358
20380
  };
@@ -20377,7 +20399,7 @@ function rd() {
20377
20399
  }).current : r.current;
20378
20400
  }
20379
20401
  function n(r, a, i) {
20380
- 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), T = Date.now(), m = setInterval(function() {
20402
+ 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, h = u.message, p = h === void 0 ? e.DEFAULT_HEARTBEAT.message : h, f = Math.max(100, l / 10), T = Date.now(), m = setInterval(function() {
20381
20403
  var _ = Date.now(), E = t(a);
20382
20404
  if (E + d <= _)
20383
20405
  console.warn("Heartbeat timed out, closing connection, last message received ".concat(_ - E, "ms ago, last ping sent ").concat(_ - T, "ms ago")), r.close();
@@ -20387,7 +20409,7 @@ function rd() {
20387
20409
  } catch (P) {
20388
20410
  console.error("Heartbeat failed, closing connection", P instanceof Error ? P.message : P), r.close();
20389
20411
  }
20390
- }, h);
20412
+ }, f);
20391
20413
  return r.addEventListener("close", function() {
20392
20414
  clearInterval(m);
20393
20415
  }), function() {
@@ -20446,65 +20468,65 @@ function OT() {
20446
20468
  ds = 1;
20447
20469
  var e = en && en.__assign || function() {
20448
20470
  return e = Object.assign || function(d) {
20449
- for (var f, p = 1, h = arguments.length; p < h; p++) {
20450
- f = arguments[p];
20451
- for (var T in f) Object.prototype.hasOwnProperty.call(f, T) && (d[T] = f[T]);
20471
+ for (var h, p = 1, f = arguments.length; p < f; p++) {
20472
+ h = arguments[p];
20473
+ for (var T in h) Object.prototype.hasOwnProperty.call(h, T) && (d[T] = h[T]);
20452
20474
  }
20453
20475
  return d;
20454
20476
  }, e.apply(this, arguments);
20455
20477
  };
20456
20478
  Object.defineProperty(en, "__esModule", { value: !0 }), en.attachListeners = void 0;
20457
- var t = ru(), n = rd(), r = wt(), a = iu(), i = function(d, f, p, h) {
20479
+ var t = ru(), n = rd(), r = wt(), a = iu(), i = function(d, h, p, f) {
20458
20480
  d.onmessage = function(T) {
20459
20481
  var m;
20460
- f.current.onMessage && f.current.onMessage(T), typeof (h == null ? void 0 : h.current) == "number" && (h.current = Date.now()), !(typeof f.current.filter == "function" && f.current.filter(T) !== !0) && (f.current.heartbeat && typeof f.current.heartbeat != "boolean" && ((m = f.current.heartbeat) === null || m === void 0 ? void 0 : m.returnMessage) === T.data || p(T));
20482
+ h.current.onMessage && h.current.onMessage(T), typeof (f == null ? void 0 : f.current) == "number" && (f.current = Date.now()), !(typeof h.current.filter == "function" && h.current.filter(T) !== !0) && (h.current.heartbeat && typeof h.current.heartbeat != "boolean" && ((m = h.current.heartbeat) === null || m === void 0 ? void 0 : m.returnMessage) === T.data || p(T));
20461
20483
  };
20462
- }, u = function(d, f, p, h, T) {
20484
+ }, u = function(d, h, p, f, T) {
20463
20485
  d.onopen = function(m) {
20464
- if (f.current.onOpen && f.current.onOpen(m), h.current = 0, p(r.ReadyState.OPEN), f.current.heartbeat && d instanceof WebSocket) {
20465
- var _ = typeof f.current.heartbeat == "boolean" ? void 0 : f.current.heartbeat;
20486
+ if (h.current.onOpen && h.current.onOpen(m), f.current = 0, p(r.ReadyState.OPEN), h.current.heartbeat && d instanceof WebSocket) {
20487
+ var _ = typeof h.current.heartbeat == "boolean" ? void 0 : h.current.heartbeat;
20466
20488
  T.current = Date.now(), (0, n.heartbeat)(d, T, _);
20467
20489
  }
20468
20490
  };
20469
- }, s = function(d, f, p, h, T) {
20491
+ }, s = function(d, h, p, f, T) {
20470
20492
  if (r.isEventSourceSupported && d instanceof EventSource)
20471
20493
  return function() {
20472
20494
  };
20473
- (0, a.assertIsWebSocket)(d, f.current.skipAssert);
20495
+ (0, a.assertIsWebSocket)(d, h.current.skipAssert);
20474
20496
  var m;
20475
20497
  return d.onclose = function(_) {
20476
20498
  var E;
20477
- if (f.current.onClose && f.current.onClose(_), p(r.ReadyState.CLOSED), f.current.shouldReconnect && f.current.shouldReconnect(_)) {
20478
- var P = (E = f.current.reconnectAttempts) !== null && E !== void 0 ? E : r.DEFAULT_RECONNECT_LIMIT;
20499
+ if (h.current.onClose && h.current.onClose(_), p(r.ReadyState.CLOSED), h.current.shouldReconnect && h.current.shouldReconnect(_)) {
20500
+ var P = (E = h.current.reconnectAttempts) !== null && E !== void 0 ? E : r.DEFAULT_RECONNECT_LIMIT;
20479
20501
  if (T.current < P) {
20480
- var F = typeof f.current.reconnectInterval == "function" ? f.current.reconnectInterval(T.current) : f.current.reconnectInterval;
20502
+ var F = typeof h.current.reconnectInterval == "function" ? h.current.reconnectInterval(T.current) : h.current.reconnectInterval;
20481
20503
  m = window.setTimeout(function() {
20482
- T.current++, h();
20504
+ T.current++, f();
20483
20505
  }, F ?? r.DEFAULT_RECONNECT_INTERVAL_MS);
20484
20506
  } else
20485
- f.current.onReconnectStop && f.current.onReconnectStop(P), console.warn("Max reconnect attempts of ".concat(P, " exceeded"));
20507
+ h.current.onReconnectStop && h.current.onReconnectStop(P), console.warn("Max reconnect attempts of ".concat(P, " exceeded"));
20486
20508
  }
20487
20509
  }, function() {
20488
20510
  return m && window.clearTimeout(m);
20489
20511
  };
20490
- }, l = function(d, f, p, h, T) {
20512
+ }, l = function(d, h, p, f, T) {
20491
20513
  var m;
20492
20514
  return d.onerror = function(_) {
20493
20515
  var E;
20494
- if (f.current.onError && f.current.onError(_), r.isEventSourceSupported && d instanceof EventSource && (f.current.onClose && f.current.onClose(e(e({}, _), { code: 1006, reason: "An error occurred with the EventSource: ".concat(_), wasClean: !1 })), p(r.ReadyState.CLOSED), d.close()), f.current.retryOnError)
20495
- if (T.current < ((E = f.current.reconnectAttempts) !== null && E !== void 0 ? E : r.DEFAULT_RECONNECT_LIMIT)) {
20496
- var P = typeof f.current.reconnectInterval == "function" ? f.current.reconnectInterval(T.current) : f.current.reconnectInterval;
20516
+ if (h.current.onError && h.current.onError(_), r.isEventSourceSupported && d instanceof EventSource && (h.current.onClose && h.current.onClose(e(e({}, _), { code: 1006, reason: "An error occurred with the EventSource: ".concat(_), wasClean: !1 })), p(r.ReadyState.CLOSED), d.close()), h.current.retryOnError)
20517
+ if (T.current < ((E = h.current.reconnectAttempts) !== null && E !== void 0 ? E : r.DEFAULT_RECONNECT_LIMIT)) {
20518
+ var P = typeof h.current.reconnectInterval == "function" ? h.current.reconnectInterval(T.current) : h.current.reconnectInterval;
20497
20519
  m = window.setTimeout(function() {
20498
- T.current++, h();
20520
+ T.current++, f();
20499
20521
  }, P ?? r.DEFAULT_RECONNECT_INTERVAL_MS);
20500
20522
  } else
20501
- f.current.onReconnectStop && f.current.onReconnectStop(f.current.reconnectAttempts), console.warn("Max reconnect attempts of ".concat(f.current.reconnectAttempts, " exceeded"));
20523
+ h.current.onReconnectStop && h.current.onReconnectStop(h.current.reconnectAttempts), console.warn("Max reconnect attempts of ".concat(h.current.reconnectAttempts, " exceeded"));
20502
20524
  }, function() {
20503
20525
  return m && window.clearTimeout(m);
20504
20526
  };
20505
- }, c = function(d, f, p, h, T, m, _) {
20506
- var E = f.setLastMessage, P = f.setReadyState, F, X, D;
20507
- return p.current.fromSocketIO && (F = (0, t.setUpSocketIOPing)(_)), i(d, p, E, m), u(d, p, P, T, m), X = s(d, p, P, h, T), D = l(d, p, P, h, T), function() {
20527
+ }, c = function(d, h, p, f, T, m, _) {
20528
+ var E = h.setLastMessage, P = h.setReadyState, F, X, D;
20529
+ return p.current.fromSocketIO && (F = (0, t.setUpSocketIOPing)(_)), i(d, p, E, m), u(d, p, P, T, m), X = s(d, p, P, f, T), D = l(d, p, P, f, T), function() {
20508
20530
  P(r.ReadyState.CLOSING), X(), D(), d.close(), F && clearInterval(F);
20509
20531
  };
20510
20532
  };
@@ -20515,38 +20537,38 @@ function IT() {
20515
20537
  if (fs) return tn;
20516
20538
  fs = 1;
20517
20539
  var e = tn && tn.__assign || function() {
20518
- return e = Object.assign || function(f) {
20519
- for (var p, h = 1, T = arguments.length; h < T; h++) {
20520
- p = arguments[h];
20521
- for (var m in p) Object.prototype.hasOwnProperty.call(p, m) && (f[m] = p[m]);
20540
+ return e = Object.assign || function(h) {
20541
+ for (var p, f = 1, T = arguments.length; f < T; f++) {
20542
+ p = arguments[f];
20543
+ for (var m in p) Object.prototype.hasOwnProperty.call(p, m) && (h[m] = p[m]);
20522
20544
  }
20523
- return f;
20545
+ return h;
20524
20546
  }, e.apply(this, arguments);
20525
20547
  };
20526
20548
  Object.defineProperty(tn, "__esModule", { value: !0 }), tn.attachSharedListeners = void 0;
20527
- var t = nu(), n = wt(), r = au(), a = ru(), i = rd(), u = function(f, p, h) {
20528
- f.onmessage = function(T) {
20549
+ var t = nu(), n = wt(), r = au(), a = ru(), i = rd(), u = function(h, p, f) {
20550
+ h.onmessage = function(T) {
20529
20551
  (0, r.getSubscribers)(p).forEach(function(m) {
20530
20552
  var _;
20531
- m.optionsRef.current.onMessage && m.optionsRef.current.onMessage(T), typeof ((_ = m == null ? void 0 : m.lastMessageTime) === null || _ === void 0 ? void 0 : _.current) == "number" && (m.lastMessageTime.current = Date.now()), !(typeof m.optionsRef.current.filter == "function" && m.optionsRef.current.filter(T) !== !0) && (h && typeof h != "boolean" && (h == null ? void 0 : h.returnMessage) === T.data || m.setLastMessage(T));
20553
+ m.optionsRef.current.onMessage && m.optionsRef.current.onMessage(T), typeof ((_ = m == null ? void 0 : m.lastMessageTime) === null || _ === void 0 ? void 0 : _.current) == "number" && (m.lastMessageTime.current = Date.now()), !(typeof m.optionsRef.current.filter == "function" && m.optionsRef.current.filter(T) !== !0) && (f && typeof f != "boolean" && (f == null ? void 0 : f.returnMessage) === T.data || m.setLastMessage(T));
20532
20554
  });
20533
20555
  };
20534
- }, s = function(f, p, h) {
20535
- f.onopen = function(T) {
20556
+ }, s = function(h, p, f) {
20557
+ h.onopen = function(T) {
20536
20558
  var m = (0, r.getSubscribers)(p);
20537
20559
  m.forEach(function(_) {
20538
- _.reconnectCount.current = 0, _.optionsRef.current.onOpen && _.optionsRef.current.onOpen(T), _.setReadyState(n.ReadyState.OPEN), h && f instanceof WebSocket && (_.lastMessageTime.current = Date.now());
20539
- }), h && f instanceof WebSocket && (0, i.heartbeat)(f, m.map(function(_) {
20560
+ _.reconnectCount.current = 0, _.optionsRef.current.onOpen && _.optionsRef.current.onOpen(T), _.setReadyState(n.ReadyState.OPEN), f && h instanceof WebSocket && (_.lastMessageTime.current = Date.now());
20561
+ }), f && h instanceof WebSocket && (0, i.heartbeat)(h, m.map(function(_) {
20540
20562
  return _.lastMessageTime;
20541
- }), typeof h == "boolean" ? void 0 : h);
20563
+ }), typeof f == "boolean" ? void 0 : f);
20542
20564
  };
20543
- }, l = function(f, p) {
20544
- f instanceof WebSocket && (f.onclose = function(h) {
20565
+ }, l = function(h, p) {
20566
+ h instanceof WebSocket && (h.onclose = function(f) {
20545
20567
  (0, r.getSubscribers)(p).forEach(function(T) {
20546
- T.optionsRef.current.onClose && T.optionsRef.current.onClose(h), T.setReadyState(n.ReadyState.CLOSED);
20568
+ T.optionsRef.current.onClose && T.optionsRef.current.onClose(f), T.setReadyState(n.ReadyState.CLOSED);
20547
20569
  }), delete t.sharedWebSockets[p], (0, r.getSubscribers)(p).forEach(function(T) {
20548
20570
  var m;
20549
- if (T.optionsRef.current.shouldReconnect && T.optionsRef.current.shouldReconnect(h)) {
20571
+ if (T.optionsRef.current.shouldReconnect && T.optionsRef.current.shouldReconnect(f)) {
20550
20572
  var _ = (m = T.optionsRef.current.reconnectAttempts) !== null && m !== void 0 ? m : n.DEFAULT_RECONNECT_LIMIT;
20551
20573
  if (T.reconnectCount.current < _) {
20552
20574
  var E = typeof T.optionsRef.current.reconnectInterval == "function" ? T.optionsRef.current.reconnectInterval(T.reconnectCount.current) : T.optionsRef.current.reconnectInterval;
@@ -20558,15 +20580,15 @@ function IT() {
20558
20580
  }
20559
20581
  });
20560
20582
  });
20561
- }, c = function(f, p) {
20562
- f.onerror = function(h) {
20583
+ }, c = function(h, p) {
20584
+ h.onerror = function(f) {
20563
20585
  (0, r.getSubscribers)(p).forEach(function(T) {
20564
- T.optionsRef.current.onError && T.optionsRef.current.onError(h), n.isEventSourceSupported && f instanceof EventSource && (T.optionsRef.current.onClose && T.optionsRef.current.onClose(e(e({}, h), { code: 1006, reason: "An error occurred with the EventSource: ".concat(h), wasClean: !1 })), T.setReadyState(n.ReadyState.CLOSED));
20565
- }), n.isEventSourceSupported && f instanceof EventSource && f.close();
20586
+ T.optionsRef.current.onError && T.optionsRef.current.onError(f), n.isEventSourceSupported && h instanceof EventSource && (T.optionsRef.current.onClose && T.optionsRef.current.onClose(e(e({}, f), { code: 1006, reason: "An error occurred with the EventSource: ".concat(f), wasClean: !1 })), T.setReadyState(n.ReadyState.CLOSED));
20587
+ }), n.isEventSourceSupported && h instanceof EventSource && h.close();
20566
20588
  };
20567
- }, d = function(f, p, h, T) {
20589
+ }, d = function(h, p, f, T) {
20568
20590
  var m;
20569
- return h.current.fromSocketIO && (m = (0, a.setUpSocketIOPing)(T)), u(f, p, h.current.heartbeat), l(f, p), s(f, p, h.current.heartbeat), c(f, p), function() {
20591
+ return f.current.fromSocketIO && (m = (0, a.setUpSocketIOPing)(T)), u(h, p, f.current.heartbeat), l(h, p), s(h, p, f.current.heartbeat), c(h, p), function() {
20570
20592
  m && clearInterval(m);
20571
20593
  };
20572
20594
  };
@@ -20576,30 +20598,30 @@ var hs;
20576
20598
  function NT() {
20577
20599
  if (hs) return Wn;
20578
20600
  hs = 1, Object.defineProperty(Wn, "__esModule", { value: !0 }), Wn.createOrJoinSocket = void 0;
20579
- var e = nu(), t = wt(), n = OT(), r = IT(), a = au(), i = function(s, l, c, d, f) {
20601
+ var e = nu(), t = wt(), n = OT(), r = IT(), a = au(), i = function(s, l, c, d, h) {
20580
20602
  return function() {
20581
20603
  if ((0, a.removeSubscriber)(s, l), !(0, a.hasSubscribers)(s)) {
20582
20604
  try {
20583
20605
  var p = e.sharedWebSockets[s];
20584
- p instanceof WebSocket && (p.onclose = function(h) {
20585
- c.current.onClose && c.current.onClose(h), d(t.ReadyState.CLOSED);
20606
+ p instanceof WebSocket && (p.onclose = function(f) {
20607
+ c.current.onClose && c.current.onClose(f), d(t.ReadyState.CLOSED);
20586
20608
  }), p.close();
20587
20609
  } catch {
20588
20610
  }
20589
- f && f(), delete e.sharedWebSockets[s];
20611
+ h && h(), delete e.sharedWebSockets[s];
20590
20612
  }
20591
20613
  };
20592
- }, u = function(s, l, c, d, f, p, h, T, m) {
20614
+ }, u = function(s, l, c, d, h, p, f, T, m) {
20593
20615
  if (!t.isEventSourceSupported && d.current.eventSourceOptions)
20594
20616
  throw t.isReactNative ? new Error("EventSource is not supported in ReactNative") : new Error("EventSource is not supported");
20595
20617
  if (d.current.share) {
20596
20618
  var _ = null;
20597
20619
  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), _ = (0, r.attachSharedListeners)(e.sharedWebSockets[l], l, d, m)) : (s.current = e.sharedWebSockets[l], c(e.sharedWebSockets[l].readyState));
20598
20620
  var E = {
20599
- setLastMessage: f,
20621
+ setLastMessage: h,
20600
20622
  setReadyState: c,
20601
20623
  optionsRef: d,
20602
- reconnectCount: h,
20624
+ reconnectCount: f,
20603
20625
  lastMessageTime: T,
20604
20626
  reconnect: p
20605
20627
  };
@@ -20608,9 +20630,9 @@ function NT() {
20608
20630
  if (s.current = d.current.eventSourceOptions ? new EventSource(l, d.current.eventSourceOptions) : new WebSocket(l, d.current.protocols), c(t.ReadyState.CONNECTING), !s.current)
20609
20631
  throw new Error("WebSocket failed to be created");
20610
20632
  return (0, n.attachListeners)(s.current, {
20611
- setLastMessage: f,
20633
+ setLastMessage: h,
20612
20634
  setReadyState: c
20613
- }, d, p.current, h, T, m);
20635
+ }, d, p.current, f, T, m);
20614
20636
  }
20615
20637
  };
20616
20638
  return Wn.createOrJoinSocket = u, Wn;
@@ -20618,37 +20640,37 @@ function NT() {
20618
20640
  var Ft = {}, ps;
20619
20641
  function kT() {
20620
20642
  return ps || (ps = 1, function(e) {
20621
- var t = Ft && Ft.__awaiter || function(l, c, d, f) {
20622
- function p(h) {
20623
- return h instanceof d ? h : new d(function(T) {
20624
- T(h);
20643
+ var t = Ft && Ft.__awaiter || function(l, c, d, h) {
20644
+ function p(f) {
20645
+ return f instanceof d ? f : new d(function(T) {
20646
+ T(f);
20625
20647
  });
20626
20648
  }
20627
- return new (d || (d = Promise))(function(h, T) {
20649
+ return new (d || (d = Promise))(function(f, T) {
20628
20650
  function m(P) {
20629
20651
  try {
20630
- E(f.next(P));
20652
+ E(h.next(P));
20631
20653
  } catch (F) {
20632
20654
  T(F);
20633
20655
  }
20634
20656
  }
20635
20657
  function _(P) {
20636
20658
  try {
20637
- E(f.throw(P));
20659
+ E(h.throw(P));
20638
20660
  } catch (F) {
20639
20661
  T(F);
20640
20662
  }
20641
20663
  }
20642
20664
  function E(P) {
20643
- P.done ? h(P.value) : p(P.value).then(m, _);
20665
+ P.done ? f(P.value) : p(P.value).then(m, _);
20644
20666
  }
20645
- E((f = f.apply(l, c || [])).next());
20667
+ E((h = h.apply(l, c || [])).next());
20646
20668
  });
20647
20669
  }, n = Ft && Ft.__generator || function(l, c) {
20648
20670
  var d = { label: 0, sent: function() {
20649
- if (h[0] & 1) throw h[1];
20650
- return h[1];
20651
- }, trys: [], ops: [] }, f, p, h, T = Object.create((typeof Iterator == "function" ? Iterator : Object).prototype);
20671
+ if (f[0] & 1) throw f[1];
20672
+ return f[1];
20673
+ }, trys: [], ops: [] }, h, p, f, T = Object.create((typeof Iterator == "function" ? Iterator : Object).prototype);
20652
20674
  return T.next = m(0), T.throw = m(1), T.return = m(2), typeof Symbol == "function" && (T[Symbol.iterator] = function() {
20653
20675
  return this;
20654
20676
  }), T;
@@ -20658,13 +20680,13 @@ function kT() {
20658
20680
  };
20659
20681
  }
20660
20682
  function _(E) {
20661
- if (f) throw new TypeError("Generator is already executing.");
20683
+ if (h) throw new TypeError("Generator is already executing.");
20662
20684
  for (; T && (T = 0, E[0] && (d = 0)), d; ) try {
20663
- 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;
20664
- switch (p = 0, h && (E = [E[0] & 2, h.value]), E[0]) {
20685
+ if (h = 1, p && (f = E[0] & 2 ? p.return : E[0] ? p.throw || ((f = p.return) && f.call(p), 0) : p.next) && !(f = f.call(p, E[1])).done) return f;
20686
+ switch (p = 0, f && (E = [E[0] & 2, f.value]), E[0]) {
20665
20687
  case 0:
20666
20688
  case 1:
20667
- h = E;
20689
+ f = E;
20668
20690
  break;
20669
20691
  case 4:
20670
20692
  return d.label++, { value: E[1], done: !1 };
@@ -20675,38 +20697,38 @@ function kT() {
20675
20697
  E = d.ops.pop(), d.trys.pop();
20676
20698
  continue;
20677
20699
  default:
20678
- if (h = d.trys, !(h = h.length > 0 && h[h.length - 1]) && (E[0] === 6 || E[0] === 2)) {
20700
+ if (f = d.trys, !(f = f.length > 0 && f[f.length - 1]) && (E[0] === 6 || E[0] === 2)) {
20679
20701
  d = 0;
20680
20702
  continue;
20681
20703
  }
20682
- if (E[0] === 3 && (!h || E[1] > h[0] && E[1] < h[3])) {
20704
+ if (E[0] === 3 && (!f || E[1] > f[0] && E[1] < f[3])) {
20683
20705
  d.label = E[1];
20684
20706
  break;
20685
20707
  }
20686
- if (E[0] === 6 && d.label < h[1]) {
20687
- d.label = h[1], h = E;
20708
+ if (E[0] === 6 && d.label < f[1]) {
20709
+ d.label = f[1], f = E;
20688
20710
  break;
20689
20711
  }
20690
- if (h && d.label < h[2]) {
20691
- d.label = h[2], d.ops.push(E);
20712
+ if (f && d.label < f[2]) {
20713
+ d.label = f[2], d.ops.push(E);
20692
20714
  break;
20693
20715
  }
20694
- h[2] && d.ops.pop(), d.trys.pop();
20716
+ f[2] && d.ops.pop(), d.trys.pop();
20695
20717
  continue;
20696
20718
  }
20697
20719
  E = c.call(l, d);
20698
20720
  } catch (P) {
20699
20721
  E = [6, P], p = 0;
20700
20722
  } finally {
20701
- f = h = 0;
20723
+ h = f = 0;
20702
20724
  }
20703
20725
  if (E[0] & 5) throw E[1];
20704
20726
  return { value: E[0] ? E[1] : void 0, done: !0 };
20705
20727
  }
20706
20728
  }, r = Ft && Ft.__spreadArray || function(l, c, d) {
20707
- if (d || arguments.length === 2) for (var f = 0, p = c.length, h; f < p; f++)
20708
- (h || !(f in c)) && (h || (h = Array.prototype.slice.call(c, 0, f)), h[f] = c[f]);
20709
- return l.concat(h || Array.prototype.slice.call(c));
20729
+ if (d || arguments.length === 2) for (var h = 0, p = c.length, f; h < p; h++)
20730
+ (f || !(h in c)) && (f || (f = Array.prototype.slice.call(c, 0, h)), f[h] = c[h]);
20731
+ return l.concat(f || Array.prototype.slice.call(c));
20710
20732
  };
20711
20733
  Object.defineProperty(e, "__esModule", { value: !0 }), e.getUrl = void 0;
20712
20734
  var a = ru(), i = wt(), u = function(l) {
@@ -20714,9 +20736,9 @@ function kT() {
20714
20736
  return window.setTimeout(c, l);
20715
20737
  });
20716
20738
  }, s = function(l, c) {
20717
- for (var d = [], f = 2; f < arguments.length; f++)
20718
- d[f - 2] = arguments[f];
20719
- return t(void 0, r([l, c], d, !0), void 0, function(p, h, T) {
20739
+ for (var d = [], h = 2; h < arguments.length; h++)
20740
+ d[h - 2] = arguments[h];
20741
+ return t(void 0, r([l, c], d, !0), void 0, function(p, f, T) {
20720
20742
  var m, _, E, P, F, X, D, y;
20721
20743
  return T === void 0 && (T = 0), n(this, function(k) {
20722
20744
  switch (k.label) {
@@ -20728,11 +20750,11 @@ function kT() {
20728
20750
  case 2:
20729
20751
  return m = k.sent(), [3, 9];
20730
20752
  case 3:
20731
- return k.sent(), h.current.retryOnError ? (_ = (X = h.current.reconnectAttempts) !== null && X !== void 0 ? X : i.DEFAULT_RECONNECT_LIMIT, T < _ ? (E = typeof h.current.reconnectInterval == "function" ? h.current.reconnectInterval(T) : h.current.reconnectInterval, [4, u(E ?? i.DEFAULT_RECONNECT_INTERVAL_MS)]) : [3, 5]) : [3, 7];
20753
+ return k.sent(), f.current.retryOnError ? (_ = (X = f.current.reconnectAttempts) !== null && X !== void 0 ? X : i.DEFAULT_RECONNECT_LIMIT, T < _ ? (E = typeof f.current.reconnectInterval == "function" ? f.current.reconnectInterval(T) : f.current.reconnectInterval, [4, u(E ?? i.DEFAULT_RECONNECT_INTERVAL_MS)]) : [3, 5]) : [3, 7];
20732
20754
  case 4:
20733
- return k.sent(), [2, (0, e.getUrl)(p, h, T + 1)];
20755
+ return k.sent(), [2, (0, e.getUrl)(p, f, T + 1)];
20734
20756
  case 5:
20735
- return (y = (D = h.current).onReconnectStop) === null || y === void 0 || y.call(D, T), [2, null];
20757
+ return (y = (D = f.current).onReconnectStop) === null || y === void 0 || y.call(D, T), [2, null];
20736
20758
  case 6:
20737
20759
  return [3, 8];
20738
20760
  case 7:
@@ -20744,7 +20766,7 @@ function kT() {
20744
20766
  case 10:
20745
20767
  m = p, k.label = 11;
20746
20768
  case 11:
20747
- return P = h.current.fromSocketIO ? (0, a.parseSocketIOUrl)(m) : m, F = h.current.queryParams ? (0, a.appendQueryParams)(P, h.current.queryParams) : P, [2, F];
20769
+ return P = f.current.fromSocketIO ? (0, a.parseSocketIOUrl)(m) : m, F = f.current.queryParams ? (0, a.appendQueryParams)(P, f.current.queryParams) : P, [2, F];
20748
20770
  }
20749
20771
  });
20750
20772
  });
@@ -20777,13 +20799,13 @@ function uu() {
20777
20799
  gs = 1;
20778
20800
  var e = st && st.__assign || function() {
20779
20801
  return e = Object.assign || function(p) {
20780
- for (var h, T = 1, m = arguments.length; T < m; T++) {
20781
- h = arguments[T];
20782
- for (var _ in h) Object.prototype.hasOwnProperty.call(h, _) && (p[_] = h[_]);
20802
+ for (var f, T = 1, m = arguments.length; T < m; T++) {
20803
+ f = arguments[T];
20804
+ for (var _ in f) Object.prototype.hasOwnProperty.call(f, _) && (p[_] = f[_]);
20783
20805
  }
20784
20806
  return p;
20785
20807
  }, e.apply(this, arguments);
20786
- }, t = st && st.__awaiter || function(p, h, T, m) {
20808
+ }, t = st && st.__awaiter || function(p, f, T, m) {
20787
20809
  function _(E) {
20788
20810
  return E instanceof T ? E : new T(function(P) {
20789
20811
  P(E);
@@ -20807,9 +20829,9 @@ function uu() {
20807
20829
  function D(y) {
20808
20830
  y.done ? E(y.value) : _(y.value).then(F, X);
20809
20831
  }
20810
- D((m = m.apply(p, h || [])).next());
20832
+ D((m = m.apply(p, f || [])).next());
20811
20833
  });
20812
- }, n = st && st.__generator || function(p, h) {
20834
+ }, n = st && st.__generator || function(p, f) {
20813
20835
  var T = { label: 0, sent: function() {
20814
20836
  if (E[0] & 1) throw E[1];
20815
20837
  return E[1];
@@ -20859,7 +20881,7 @@ function uu() {
20859
20881
  E[2] && T.ops.pop(), T.trys.pop();
20860
20882
  continue;
20861
20883
  }
20862
- D = h.call(p, T);
20884
+ D = f.call(p, T);
20863
20885
  } catch (y) {
20864
20886
  D = [6, y], _ = 0;
20865
20887
  } finally {
@@ -20872,20 +20894,20 @@ function uu() {
20872
20894
  return p && p.__esModule ? p : { default: p };
20873
20895
  };
20874
20896
  Object.defineProperty(st, "__esModule", { value: !0 }), st.useWebSocket = void 0;
20875
- var a = Tt, i = T0, u = wt(), s = NT(), l = kT(), c = r(LT()), d = iu(), f = function(p, h, T) {
20876
- h === void 0 && (h = u.DEFAULT_OPTIONS), T === void 0 && (T = !0);
20897
+ var a = Tt, i = T0, u = wt(), s = NT(), l = kT(), c = r(LT()), d = iu(), h = function(p, f, T) {
20898
+ f === void 0 && (f = u.DEFAULT_OPTIONS), T === void 0 && (T = !0);
20877
20899
  var m = (0, a.useState)(null), _ = m[0], E = m[1], P = (0, a.useState)({}), F = P[0], X = P[1], D = (0, a.useMemo)(function() {
20878
- if (!h.disableJson && _)
20900
+ if (!f.disableJson && _)
20879
20901
  try {
20880
20902
  return JSON.parse(_.data);
20881
20903
  } catch {
20882
20904
  return u.UNPARSABLE_JSON_OBJECT;
20883
20905
  }
20884
20906
  return null;
20885
- }, [_, h.disableJson]), y = (0, a.useRef)(null), k = (0, a.useRef)(null), W = (0, a.useRef)(function() {
20886
- }), M = (0, a.useRef)(0), Q = (0, a.useRef)(Date.now()), q = (0, a.useRef)([]), $ = (0, a.useRef)(null), L = (0, a.useRef)(h);
20887
- L.current = h;
20888
- var I = y.current && F[y.current] !== void 0 ? F[y.current] : p !== null && T === !0 ? u.ReadyState.CONNECTING : u.ReadyState.UNINSTANTIATED, R = h.queryParams ? JSON.stringify(h.queryParams) : null, H = (0, a.useCallback)(function(z, g) {
20907
+ }, [_, f.disableJson]), y = (0, a.useRef)(null), k = (0, a.useRef)(null), W = (0, a.useRef)(function() {
20908
+ }), M = (0, a.useRef)(0), Q = (0, a.useRef)(Date.now()), q = (0, a.useRef)([]), $ = (0, a.useRef)(null), L = (0, a.useRef)(f);
20909
+ L.current = f;
20910
+ var I = y.current && F[y.current] !== void 0 ? F[y.current] : p !== null && T === !0 ? u.ReadyState.CONNECTING : u.ReadyState.UNINSTANTIATED, R = f.queryParams ? JSON.stringify(f.queryParams) : null, H = (0, a.useCallback)(function(z, g) {
20889
20911
  var ne;
20890
20912
  if (g === void 0 && (g = !0), u.isEventSourceSupported && k.current instanceof EventSource) {
20891
20913
  console.warn("Unable to send a message from an eventSource");
@@ -20955,7 +20977,7 @@ function uu() {
20955
20977
  getWebSocket: j
20956
20978
  };
20957
20979
  };
20958
- return st.useWebSocket = f, st;
20980
+ return st.useWebSocket = h, st;
20959
20981
  }
20960
20982
  var nn = {}, bs;
20961
20983
  function RT() {
@@ -20965,7 +20987,7 @@ function RT() {
20965
20987
  return e = Object.assign || function(s) {
20966
20988
  for (var l, c = 1, d = arguments.length; c < d; c++) {
20967
20989
  l = arguments[c];
20968
- for (var f in l) Object.prototype.hasOwnProperty.call(l, f) && (s[f] = l[f]);
20990
+ for (var h in l) Object.prototype.hasOwnProperty.call(l, h) && (s[h] = l[h]);
20969
20991
  }
20970
20992
  return s;
20971
20993
  }, e.apply(this, arguments);
@@ -20989,12 +21011,12 @@ function RT() {
20989
21011
  l === void 0 && (l = r.DEFAULT_OPTIONS), c === void 0 && (c = !0);
20990
21012
  var d = (0, t.useMemo)(function() {
20991
21013
  return e(e({}, l), { fromSocketIO: !0 });
20992
- }, []), f = (0, n.useWebSocket)(s, d, c), p = f.sendMessage, h = f.sendJsonMessage, T = f.lastMessage, m = f.readyState, _ = f.getWebSocket, E = (0, t.useMemo)(function() {
21014
+ }, []), h = (0, n.useWebSocket)(s, d, c), p = h.sendMessage, f = h.sendJsonMessage, T = h.lastMessage, m = h.readyState, _ = h.getWebSocket, E = (0, t.useMemo)(function() {
20993
21015
  return i(T);
20994
21016
  }, [T]);
20995
21017
  return {
20996
21018
  sendMessage: p,
20997
- sendJsonMessage: h,
21019
+ sendJsonMessage: f,
20998
21020
  lastMessage: E,
20999
21021
  lastJsonMessage: E,
21000
21022
  readyState: m,
@@ -21026,15 +21048,15 @@ function DT() {
21026
21048
  Object.defineProperty(Bt, "__esModule", { value: !0 }), Bt.useEventSource = void 0;
21027
21049
  var n = Tt, r = uu(), a = wt(), i = function(u, s, l) {
21028
21050
  s === void 0 && (s = a.DEFAULT_EVENT_SOURCE_OPTIONS);
21029
- var c = s.withCredentials, d = s.events, f = t(s, ["withCredentials", "events"]);
21051
+ var c = s.withCredentials, d = s.events, h = t(s, ["withCredentials", "events"]);
21030
21052
  l === void 0 && (l = !0);
21031
- var p = e(e({}, f), { eventSourceOptions: {
21053
+ var p = e(e({}, h), { eventSourceOptions: {
21032
21054
  withCredentials: c
21033
- } }), h = (0, n.useRef)(a.EMPTY_EVENT_HANDLERS);
21034
- d && (h.current = d);
21055
+ } }), f = (0, n.useRef)(a.EMPTY_EVENT_HANDLERS);
21056
+ d && (f.current = d);
21035
21057
  var T = (0, r.useWebSocket)(u, p, l), m = T.lastMessage, _ = T.readyState, E = T.getWebSocket;
21036
21058
  return (0, n.useEffect)(function() {
21037
- m != null && m.type && Object.entries(h.current).forEach(function(P) {
21059
+ m != null && m.type && Object.entries(f.current).forEach(function(P) {
21038
21060
  var F = P[0], X = P[1];
21039
21061
  F === m.type && X(m);
21040
21062
  });
@@ -21093,7 +21115,7 @@ const BT = "This conversation with a live agent has ended. Please note that a tr
21093
21115
  CONVERSATION: "CONVERSATION",
21094
21116
  FORM: "FORM"
21095
21117
  }, hn = Wr({}), ad = ({ children: e, liveChatPayload: t }) => {
21096
- const { conversationScreen: n } = se(He), { pushXpertMessage: r } = se(Gt), { setHasError: a, setMode: i } = se(Ze), [u, s] = de(""), [l, c] = de(!1), [, d] = de(""), [f, p] = de([]), [h, T] = de(null), [m, _] = de(Ut.FORM), [E, P] = de(null), F = (j) => p((z) => [...z, j]), X = async (j) => {
21118
+ const { conversationScreen: n } = se(He), { pushXpertMessage: r } = se(Gt), { setHasError: a, setMode: i } = se(Ze), [u, s] = de(""), [l, c] = de(!1), [, d] = de(""), [h, p] = de([]), [f, T] = de(null), [m, _] = de(Ut.FORM), [E, P] = de(null), F = (j) => p((z) => [...z, j]), X = async (j) => {
21097
21119
  const z = await FT(j.data), { conversation_id: g, event_type: ne, body: ue } = z;
21098
21120
  switch (ne) {
21099
21121
  case "AGENT_TYPING":
@@ -21119,7 +21141,7 @@ const BT = "This conversation with a live agent has ended. Please note that a tr
21119
21141
  default:
21120
21142
  return;
21121
21143
  }
21122
- }, { sendJsonMessage: D } = MT(h, {
21144
+ }, { sendJsonMessage: D } = MT(f, {
21123
21145
  onMessage: X
21124
21146
  }), y = () => {
21125
21147
  var z;
@@ -21169,7 +21191,7 @@ const BT = "This conversation with a live agent has ended. Please note that a tr
21169
21191
  agentTyping: l,
21170
21192
  cancelLiveChatConnection: y,
21171
21193
  endLiveChat: W,
21172
- liveChatMessages: f,
21194
+ liveChatMessages: h,
21173
21195
  pushLiveChatMessage: F,
21174
21196
  sendMessage: (j) => {
21175
21197
  F({
@@ -21366,7 +21388,7 @@ function sd({
21366
21388
  setIsMounted: n,
21367
21389
  onClose: r
21368
21390
  }) {
21369
- var c, d, f, p, h, T, m, _, E, P, F, X, D, y, k;
21391
+ var c, d, h, p, f, T, m, _, E, P, F, X, D, y, k;
21370
21392
  const { primaryColor: a, conversationScreen: i } = se(He), { isMobile: u, mode: s } = se(Ze), { step: l } = se(hn);
21371
21393
  return l === Ut.CONNECTING && s === jt.LIVECHAT ? null : /* @__PURE__ */ v.jsxs(
21372
21394
  "div",
@@ -21386,11 +21408,11 @@ function sd({
21386
21408
  className: "xpert-chatbot-popup__header_container",
21387
21409
  style: {
21388
21410
  left: 0,
21389
- background: ((p = (f = i == null ? void 0 : i.header.container) == null ? void 0 : f.style) == null ? void 0 : p.background) || a
21411
+ background: ((p = (h = i == null ? void 0 : i.header.container) == null ? void 0 : h.style) == null ? void 0 : p.background) || a
21390
21412
  }
21391
21413
  }
21392
21414
  ),
21393
- ((T = (h = i == null ? void 0 : i.header) == null ? void 0 : h.logo) == null ? void 0 : T.type) === "edx" ? /* @__PURE__ */ v.jsx(
21415
+ ((T = (f = i == null ? void 0 : i.header) == null ? void 0 : f.logo) == null ? void 0 : T.type) === "edx" ? /* @__PURE__ */ v.jsx(
21394
21416
  "img",
21395
21417
  {
21396
21418
  "data-ot-ignore": "",
@@ -21543,7 +21565,7 @@ const ys = 500, YT = [
21543
21565
  }
21544
21566
  ];
21545
21567
  function cd({ onDismiss: e }) {
21546
- const [t, n] = de(""), [r, a] = de(!1), [i, u] = de(null), { conversationScreen: s } = se(He), { endLiveChat: l, submitSurvey: c, terminateConversation: d } = se(hn), f = () => {
21568
+ const [t, n] = de(""), [r, a] = de(!1), [i, u] = de(null), { conversationScreen: s } = se(He), { endLiveChat: l, submitSurvey: c, terminateConversation: d } = se(hn), h = () => {
21547
21569
  var T;
21548
21570
  d(), (T = s == null ? void 0 : s.liveChat) != null && T.useSurvey ? a(!0) : l();
21549
21571
  }, p = () => {
@@ -21551,7 +21573,7 @@ function cd({ onDismiss: e }) {
21551
21573
  content: t,
21552
21574
  selectedOption: i
21553
21575
  });
21554
- }, h = (T) => {
21576
+ }, f = (T) => {
21555
21577
  n(T.target.value.slice(0, ys));
21556
21578
  };
21557
21579
  return /* @__PURE__ */ v.jsxs("div", { className: "livechat-end-confirmation-container", children: [
@@ -21559,7 +21581,7 @@ function cd({ onDismiss: e }) {
21559
21581
  /* @__PURE__ */ v.jsx("p", { children: "Are you sure you want to end this conversation?" }),
21560
21582
  /* @__PURE__ */ v.jsxs("div", { className: "livechat-end-confirmation-container__button-container", children: [
21561
21583
  /* @__PURE__ */ v.jsx("button", { className: "string-btn", onClick: e, children: "Nevermind" }),
21562
- /* @__PURE__ */ v.jsx("button", { className: "pill-btn", onClick: f, children: "Close chat" })
21584
+ /* @__PURE__ */ v.jsx("button", { className: "pill-btn", onClick: h, children: "Close chat" })
21563
21585
  ] })
21564
21586
  ] }),
21565
21587
  r && /* @__PURE__ */ v.jsxs(v.Fragment, { children: [
@@ -21589,7 +21611,7 @@ function cd({ onDismiss: e }) {
21589
21611
  "aria-label": "Add additional comments",
21590
21612
  placeholder: "Any additional comments?",
21591
21613
  value: t,
21592
- onChange: h
21614
+ onChange: f
21593
21615
  }
21594
21616
  ),
21595
21617
  /* @__PURE__ */ v.jsxs("p", { className: "livechat-end-confirmation-container__sub-text", children: [
@@ -21635,11 +21657,11 @@ function dd() {
21635
21657
  liveChatMessages: n,
21636
21658
  sendMessage: r,
21637
21659
  sendTypingEvent: a
21638
- } = se(hn), [i, u] = de(!1), [s, l] = de(""), c = pt(), d = $T(a, 5e3), f = (T) => {
21660
+ } = se(hn), [i, u] = de(!1), [s, l] = de(""), c = pt(), d = $T(a, 5e3), h = (T) => {
21639
21661
  l(T.target.value), d();
21640
21662
  }, p = () => {
21641
- s.trim() !== "" && (r(s), h());
21642
- }, h = () => {
21663
+ s.trim() !== "" && (r(s), f());
21664
+ }, f = () => {
21643
21665
  l(""), c.current.value = "", c.current.style.height = "auto";
21644
21666
  };
21645
21667
  return /* @__PURE__ */ v.jsxs(v.Fragment, { children: [
@@ -21690,7 +21712,7 @@ function dd() {
21690
21712
  Ni,
21691
21713
  {
21692
21714
  disabled: i,
21693
- handleChange: f,
21715
+ handleChange: h,
21694
21716
  handleSend: p,
21695
21717
  inputRef: c,
21696
21718
  value: s
@@ -21733,13 +21755,13 @@ const WT = "data:image/svg+xml,%3csvg%20xmlns='http://www.w3.org/2000/svg'%20wid
21733
21755
  }];
21734
21756
  }, Ka = "privacy policy";
21735
21757
  function fd() {
21736
- const { conversationScreen: e, primaryColor: t } = se(He), { startLiveChat: n } = se(hn), { setMode: r } = se(Ze), { form: a, formHeader: i, privacyPolicyLink: u, privacyPolicyText: s } = e.liveChat, [l, , c] = XT({}), [d, f] = de(!1), { clearError: p, errors: h, setErrors: T } = GT(), m = or(
21758
+ const { conversationScreen: e, primaryColor: t } = se(He), { startLiveChat: n } = se(hn), { setMode: r } = se(Ze), { form: a, formHeader: i, privacyPolicyLink: u, privacyPolicyText: s } = e.liveChat, [l, , c] = XT({}), [d, h] = de(!1), { clearError: p, errors: f, setErrors: T } = GT(), m = or(
21737
21759
  () => (s ?? "").split(Ka, 2),
21738
21760
  [s]
21739
21761
  ), _ = () => {
21740
21762
  r(jt.XPERT);
21741
21763
  }, E = () => {
21742
- p("privacyCheck"), f((D) => !D);
21764
+ p("privacyCheck"), h((D) => !D);
21743
21765
  }, P = (D, y) => {
21744
21766
  const k = D.target.value;
21745
21767
  p(y), c(y, k);
@@ -21772,13 +21794,13 @@ function fd() {
21772
21794
  /* @__PURE__ */ v.jsx(
21773
21795
  "input",
21774
21796
  {
21775
- className: `live-chat-form-input ${h[D] ? "error" : ""}`,
21797
+ className: `live-chat-form-input ${f[D] ? "error" : ""}`,
21776
21798
  name: y,
21777
21799
  placeholder: y,
21778
21800
  onChange: (k) => P(k, D)
21779
21801
  }
21780
21802
  ),
21781
- h[D] && /* @__PURE__ */ v.jsx("p", { className: "live-chat-form-error", children: h[D] })
21803
+ f[D] && /* @__PURE__ */ v.jsx("p", { className: "live-chat-form-error", children: f[D] })
21782
21804
  ] }, D)),
21783
21805
  s && /* @__PURE__ */ v.jsxs(v.Fragment, { children: [
21784
21806
  /* @__PURE__ */ v.jsx(
@@ -21830,7 +21852,7 @@ function fd() {
21830
21852
  /* @__PURE__ */ v.jsx("label", { htmlFor: "privacy-check", children: "Yes, I accept" })
21831
21853
  ] })
21832
21854
  ] }),
21833
- h.privacyCheck && /* @__PURE__ */ v.jsx("p", { className: "live-chat-form-error", children: h.privacyCheck }),
21855
+ f.privacyCheck && /* @__PURE__ */ v.jsx("p", { className: "live-chat-form-error", children: f.privacyCheck }),
21834
21856
  /* @__PURE__ */ v.jsxs("div", { className: "live-chat-buttons-container", children: [
21835
21857
  /* @__PURE__ */ v.jsx("button", { className: "live-chat-cancel-button", onClick: _, children: "Cancel" }),
21836
21858
  /* @__PURE__ */ v.jsx(
@@ -21864,7 +21886,7 @@ function pd({
21864
21886
  style: i = {}
21865
21887
  }) {
21866
21888
  var T;
21867
- const { proactiveMessage: u } = se(He), [s, l] = de(!0), [c, d] = de(!1), f = s && (!(window != null && window.OnetrustActiveGroups) || ((T = window == null ? void 0 : window.OnetrustActiveGroups) == null ? void 0 : T.includes("C0003"))) && ft.get(t) === void 0;
21889
+ const { proactiveMessage: u } = se(He), [s, l] = de(!0), [c, d] = de(!1), h = s && (!(window != null && window.OnetrustActiveGroups) || ((T = window == null ? void 0 : window.OnetrustActiveGroups) == null ? void 0 : T.includes("C0003"))) && ft.get(t) === void 0;
21868
21890
  Be(() => {
21869
21891
  var m;
21870
21892
  (m = window == null ? void 0 : window.OneTrust) == null || m.OnConsentChanged(() => {
@@ -21873,7 +21895,7 @@ function pd({
21873
21895
  });
21874
21896
  }, [t]), Be(() => {
21875
21897
  var m;
21876
- a || (!(window != null && window.OnetrustActiveGroups) || (m = window == null ? void 0 : window.OnetrustActiveGroups) != null && m.includes("C0003")) && h(t, 1, 1);
21898
+ a || (!(window != null && window.OnetrustActiveGroups) || (m = window == null ? void 0 : window.OnetrustActiveGroups) != null && m.includes("C0003")) && f(t, 1, 1);
21877
21899
  }, [t, a]), Be(() => {
21878
21900
  if (u != null && u.enabled && (u == null ? void 0 : u.delayMs) > 0) {
21879
21901
  const m = setTimeout(() => {
@@ -21885,15 +21907,15 @@ function pd({
21885
21907
  }, [u == null ? void 0 : u.delayMs, u == null ? void 0 : u.enabled]);
21886
21908
  const p = () => {
21887
21909
  var m;
21888
- l(!1), (!(window != null && window.OnetrustActiveGroups) || (m = window == null ? void 0 : window.OnetrustActiveGroups) != null && m.includes("C0003")) && h(t, 1, 1), r();
21889
- }, h = (m, _, E) => {
21910
+ l(!1), (!(window != null && window.OnetrustActiveGroups) || (m = window == null ? void 0 : window.OnetrustActiveGroups) != null && m.includes("C0003")) && f(t, 1, 1), r();
21911
+ }, f = (m, _, E) => {
21890
21912
  const P = {
21891
21913
  expires: E,
21892
21914
  path: "/"
21893
21915
  };
21894
21916
  ft.set(m, _, P);
21895
21917
  };
21896
- return !c || !f || !a ? null : /* @__PURE__ */ v.jsx("div", { children: /* @__PURE__ */ v.jsxs(
21918
+ return !c || !h || !a ? null : /* @__PURE__ */ v.jsx("div", { children: /* @__PURE__ */ v.jsxs(
21897
21919
  "div",
21898
21920
  {
21899
21921
  role: "alertdialog",
@@ -22042,9 +22064,9 @@ function md({ submitEventExternal: e = null }) {
22042
22064
  widgetMode: c
22043
22065
  } = se(He), {
22044
22066
  contentRef: d,
22045
- onFeedbackSelection: f,
22067
+ onFeedbackSelection: h,
22046
22068
  onMessageSent: p,
22047
- pushXpertMessage: h,
22069
+ pushXpertMessage: f,
22048
22070
  setXpertMessages: T,
22049
22071
  xpertMessages: m
22050
22072
  } = se(Gt), {
@@ -22214,7 +22236,7 @@ function md({ submitEventExternal: e = null }) {
22214
22236
  return;
22215
22237
  }
22216
22238
  let Ye = null;
22217
- r.conversationHistory.enabled && (Ye = _s(a)), h({ role: "user", content: ae });
22239
+ r.conversationHistory.enabled && (Ye = _s(a)), f({ role: "user", content: ae });
22218
22240
  const Qe = [
22219
22241
  ...m,
22220
22242
  { role: "user", content: ae }
@@ -22245,7 +22267,7 @@ function md({ submitEventExternal: e = null }) {
22245
22267
  tool_calls: mt,
22246
22268
  tool_call_id: it
22247
22269
  }) => {
22248
- h({
22270
+ f({
22249
22271
  content: le,
22250
22272
  createdAt: /* @__PURE__ */ new Date(),
22251
22273
  liveAgent: ye,
@@ -22314,8 +22336,8 @@ function md({ submitEventExternal: e = null }) {
22314
22336
  }, xt = (ae) => {
22315
22337
  I(ae.target.value);
22316
22338
  }, Mn = async (ae, be = "") => {
22317
- if (f) {
22318
- await f({ index: ae, type: be }), P(!1);
22339
+ if (h) {
22340
+ await h({ index: ae, type: be }), P(!1);
22319
22341
  return;
22320
22342
  }
22321
22343
  const Ae = m.map((Ye, Qe) => ae === Qe ? (ne({
@@ -22444,10 +22466,10 @@ const gd = ({
22444
22466
  conversation: r,
22445
22467
  onFeedbackSelection: i,
22446
22468
  onMessageSent: u
22447
- }, f = {
22469
+ }, h = {
22448
22470
  liveChatPayload: a
22449
22471
  };
22450
- return /* @__PURE__ */ v.jsx(vs, { ...c, children: /* @__PURE__ */ v.jsx(Ns, { children: /* @__PURE__ */ v.jsx(Is, { ...d, children: /* @__PURE__ */ v.jsx(ad, { ...f, children: e }) }) }) });
22472
+ return /* @__PURE__ */ v.jsx(vs, { ...c, children: /* @__PURE__ */ v.jsx(Ns, { children: /* @__PURE__ */ v.jsx(Is, { ...d, children: /* @__PURE__ */ v.jsx(ad, { ...h, children: e }) }) }) });
22451
22473
  };
22452
22474
  gd.propTypes = {
22453
22475
  children: x.element,