@2uinc/frontend-component-xpert-chatbot 1.3.11 → 1.3.12-beta.1

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (2) hide show
  1. package/dist/lib/index.min.js +346 -342
  2. package/package.json +1 -1
@@ -1,4 +1,4 @@
1
- import ue, { useState as pe, useEffect as ye, useCallback as at, useRef as Fe } from "react";
1
+ import ue, { useState as pe, useEffect as ye, useCallback as at, useRef as Ae } from "react";
2
2
  const tl = {
3
3
  xpertKey: "edx",
4
4
  chatApiEndpoint: "https://xpert-platform-services-api.prod.ai.2u.com/xpert/chat",
@@ -182,7 +182,7 @@ const tl = {
182
182
  function Ue(e) {
183
183
  return e && e.__esModule && Object.prototype.hasOwnProperty.call(e, "default") ? e.default : e;
184
184
  }
185
- function Ti(e) {
185
+ function Ii(e) {
186
186
  if (e.__esModule)
187
187
  return e;
188
188
  var t = e.default;
@@ -203,7 +203,7 @@ function Ti(e) {
203
203
  });
204
204
  }), n;
205
205
  }
206
- var Ii = { exports: {} }, ct = {};
206
+ var Ti = { exports: {} }, ct = {};
207
207
  /*
208
208
  object-assign
209
209
  (c) Sindre Sorhus
@@ -265,8 +265,8 @@ function vi(e, t, n) {
265
265
  }
266
266
  ct.jsx = vi;
267
267
  ct.jsxs = vi;
268
- Ii.exports = ct;
269
- var D = Ii.exports, ji = { exports: {} }, fl = "SECRET_DO_NOT_PASS_THIS_OR_YOU_WILL_BE_FIRED", dl = fl, hl = dl;
268
+ Ti.exports = ct;
269
+ var D = Ti.exports, ji = { exports: {} }, fl = "SECRET_DO_NOT_PASS_THIS_OR_YOU_WILL_BE_FIRED", dl = fl, hl = dl;
270
270
  function Ei() {
271
271
  }
272
272
  function Si() {
@@ -569,7 +569,7 @@ function zi(e) {
569
569
  return t;
570
570
  }
571
571
  const yr = /* @__PURE__ */ Object.create(null);
572
- function Tl(e, t) {
572
+ function Il(e, t) {
573
573
  return {
574
574
  provider: e,
575
575
  prefix: t,
@@ -579,14 +579,14 @@ function Tl(e, t) {
579
579
  }
580
580
  function Re(e, t) {
581
581
  const n = yr[e] || (yr[e] = /* @__PURE__ */ Object.create(null));
582
- return n[t] || (n[t] = Tl(e, t));
582
+ return n[t] || (n[t] = Il(e, t));
583
583
  }
584
584
  function Bn(e, t) {
585
585
  return zi(t) ? Oi(t, (n, r) => {
586
586
  r ? e.icons[n] = r : e.missing.add(n);
587
587
  }) : [];
588
588
  }
589
- function Il(e, t, n) {
589
+ function Tl(e, t, n) {
590
590
  try {
591
591
  if (typeof n.body == "string")
592
592
  return e.icons[t] = { ...n }, !0;
@@ -610,7 +610,7 @@ function vl(e, t) {
610
610
  if (!n)
611
611
  return !1;
612
612
  const r = Re(n.provider, n.prefix);
613
- return Il(r, n.name, t);
613
+ return Tl(r, n.name, t);
614
614
  }
615
615
  function jl(e, t) {
616
616
  if (typeof e != "object")
@@ -678,9 +678,9 @@ function Al(e, t) {
678
678
  height: n.height
679
679
  };
680
680
  let o = n.body;
681
- [n, r].forEach((T) => {
682
- const b = [], S = T.hFlip, w = T.vFlip;
683
- let v = T.rotate;
681
+ [n, r].forEach((I) => {
682
+ const b = [], S = I.hFlip, w = I.vFlip;
683
+ let v = I.rotate;
684
684
  S ? w ? v += 2 : (b.push(
685
685
  "translate(" + (i.width + i.left).toString() + " " + (0 - i.top).toString() + ")"
686
686
  ), b.push("scale(-1 1)"), i.top = i.left = 0) : w && (b.push(
@@ -709,8 +709,8 @@ function Al(e, t) {
709
709
  const l = r.width, a = r.height, s = i.width, u = i.height;
710
710
  let c, p;
711
711
  l === null ? (p = a === null ? "1em" : a === "auto" ? u : a, c = Mr(p, s / u)) : (c = l === "auto" ? s : l, p = a === null ? Mr(c, u / s) : a === "auto" ? u : a);
712
- const m = {}, f = (T, b) => {
713
- Cl(b) || (m[T] = b.toString());
712
+ const m = {}, f = (I, b) => {
713
+ Cl(b) || (m[I] = b.toString());
714
714
  };
715
715
  return f("width", c), f("height", p), m.viewBox = i.left.toString() + " " + i.top.toString() + " " + s.toString() + " " + u.toString(), {
716
716
  attributes: m,
@@ -741,7 +741,7 @@ const Nn = /* @__PURE__ */ Object.create(null);
741
741
  function Fl(e, t) {
742
742
  Nn[e] = t;
743
743
  }
744
- function Tn(e) {
744
+ function In(e) {
745
745
  return Nn[e] || Nn[""];
746
746
  }
747
747
  function Qn(e) {
@@ -1005,11 +1005,11 @@ function Kl(e, t, n, r) {
1005
1005
  const a = Date.now();
1006
1006
  let s = "pending", u = 0, c, p = null, m = [], f = [];
1007
1007
  typeof r == "function" && f.push(r);
1008
- function T() {
1008
+ function I() {
1009
1009
  p && (clearTimeout(p), p = null);
1010
1010
  }
1011
1011
  function b() {
1012
- s === "pending" && (s = "aborted"), T(), m.forEach((y) => {
1012
+ s === "pending" && (s = "aborted"), I(), m.forEach((y) => {
1013
1013
  y.status === "pending" && (y.status = "aborted");
1014
1014
  }), m = [];
1015
1015
  }
@@ -1057,7 +1057,7 @@ function Kl(e, t, n, r) {
1057
1057
  c = U, m.length || (l.length ? _() : v());
1058
1058
  return;
1059
1059
  }
1060
- if (T(), j(), !e.random) {
1060
+ if (I(), j(), !e.random) {
1061
1061
  const q = e.resources.indexOf(y.resource);
1062
1062
  q !== -1 && q !== e.index && (e.index = q);
1063
1063
  }
@@ -1068,12 +1068,12 @@ function Kl(e, t, n, r) {
1068
1068
  function _() {
1069
1069
  if (s !== "pending")
1070
1070
  return;
1071
- T();
1071
+ I();
1072
1072
  const y = l.shift();
1073
1073
  if (y === void 0) {
1074
1074
  if (m.length) {
1075
1075
  p = setTimeout(() => {
1076
- T(), s === "pending" && (j(), v());
1076
+ I(), s === "pending" && (j(), v());
1077
1077
  }, e.timeout);
1078
1078
  return;
1079
1079
  }
@@ -1143,7 +1143,7 @@ function Jl(e) {
1143
1143
  function ea(e, t, n) {
1144
1144
  let r, i;
1145
1145
  if (typeof e == "string") {
1146
- const o = Tn(e);
1146
+ const o = In(e);
1147
1147
  if (!o)
1148
1148
  return n(void 0, 424), br;
1149
1149
  i = o.send;
@@ -1153,14 +1153,14 @@ function ea(e, t, n) {
1153
1153
  const o = Qn(e);
1154
1154
  if (o) {
1155
1155
  r = _i(o);
1156
- const l = e.resources ? e.resources[0] : "", a = Tn(l);
1156
+ const l = e.resources ? e.resources[0] : "", a = In(l);
1157
1157
  a && (i = a.send);
1158
1158
  }
1159
1159
  }
1160
1160
  return !r || !i ? (n(void 0, 424), br) : r.query(t, i, n)().abort;
1161
1161
  }
1162
1162
  const wr = "iconify2", st = "iconify", Ui = st + "-count", Dr = st + "-version", Bi = 36e5, ta = 168;
1163
- function In(e, t) {
1163
+ function Tn(e, t) {
1164
1164
  try {
1165
1165
  return e.getItem(t);
1166
1166
  } catch {
@@ -1182,7 +1182,7 @@ function kn(e, t) {
1182
1182
  return qn(e, Ui, t.toString());
1183
1183
  }
1184
1184
  function vn(e) {
1185
- return parseInt(In(e, Ui)) || 0;
1185
+ return parseInt(Tn(e, Ui)) || 0;
1186
1186
  }
1187
1187
  const Ut = {
1188
1188
  local: !0,
@@ -1209,7 +1209,7 @@ function Hi(e, t) {
1209
1209
  const n = Yi(e);
1210
1210
  if (!n)
1211
1211
  return;
1212
- const r = In(n, Dr);
1212
+ const r = Tn(n, Dr);
1213
1213
  if (r !== wr) {
1214
1214
  if (r) {
1215
1215
  const a = vn(n);
@@ -1220,7 +1220,7 @@ function Hi(e, t) {
1220
1220
  return;
1221
1221
  }
1222
1222
  const i = Math.floor(Date.now() / Bi) - ta, o = (a) => {
1223
- const s = st + a.toString(), u = In(n, s);
1223
+ const s = st + a.toString(), u = Tn(n, s);
1224
1224
  if (typeof u == "string") {
1225
1225
  try {
1226
1226
  const c = JSON.parse(u);
@@ -1292,7 +1292,7 @@ function ia(e, t) {
1292
1292
  }
1293
1293
  t.lastModified && !ra(e, t.lastModified) || Object.keys(t.icons).length && (t.not_found && (t = Object.assign({}, t), delete t.not_found), n("local") || n("session"));
1294
1294
  }
1295
- function Tr() {
1295
+ function Ir() {
1296
1296
  }
1297
1297
  function oa(e) {
1298
1298
  e.iconsLoaderFlag || (e.iconsLoaderFlag = !0, setTimeout(() => {
@@ -1305,7 +1305,7 @@ function la(e, t) {
1305
1305
  const { provider: n, prefix: r } = e, i = e.iconsToLoad;
1306
1306
  delete e.iconsToLoad;
1307
1307
  let o;
1308
- if (!i || !(o = Tn(n)))
1308
+ if (!i || !(o = In(n)))
1309
1309
  return;
1310
1310
  o.prepare(n, r, i).forEach((a) => {
1311
1311
  ea(n, a, (s) => {
@@ -1342,7 +1342,7 @@ const aa = (e, t) => {
1342
1342
  r.loaded,
1343
1343
  r.missing,
1344
1344
  r.pending,
1345
- Tr
1345
+ Ir
1346
1346
  );
1347
1347
  }), () => {
1348
1348
  s = !1;
@@ -1363,7 +1363,7 @@ const aa = (e, t) => {
1363
1363
  }), o.forEach((s) => {
1364
1364
  const { provider: u, prefix: c } = s;
1365
1365
  i[u][c].length && la(s, i[u][c]);
1366
- }), t ? Zl(t, r, o) : Tr;
1366
+ }), t ? Zl(t, r, o) : Ir;
1367
1367
  };
1368
1368
  function ua(e, t) {
1369
1369
  const n = {
@@ -1457,7 +1457,7 @@ const $i = {
1457
1457
  backgroundColor: "currentColor"
1458
1458
  }, Vi = {
1459
1459
  backgroundColor: "transparent"
1460
- }, Ir = {
1460
+ }, Tr = {
1461
1461
  Image: "var(--svg)",
1462
1462
  Repeat: "no-repeat",
1463
1463
  Size: "100% 100%"
@@ -1468,8 +1468,8 @@ const $i = {
1468
1468
  };
1469
1469
  for (const e in kr) {
1470
1470
  const t = kr[e];
1471
- for (const n in Ir)
1472
- t[e + n] = Ir[n];
1471
+ for (const n in Tr)
1472
+ t[e + n] = Tr[n];
1473
1473
  }
1474
1474
  const ba = {
1475
1475
  ...$i,
@@ -1528,10 +1528,10 @@ const wa = (e, t, n, r) => {
1528
1528
  __html: ya(Pl(c.body, v ? () => v + "ID" + w++ : "iconifyReact"))
1529
1529
  }, ue.createElement("svg", u);
1530
1530
  }
1531
- const { body: m, width: f, height: T } = e, b = l === "mask" || (l === "bg" ? !1 : m.indexOf("currentColor") !== -1), S = fa(m, {
1531
+ const { body: m, width: f, height: I } = e, b = l === "mask" || (l === "bg" ? !1 : m.indexOf("currentColor") !== -1), S = fa(m, {
1532
1532
  ...p,
1533
1533
  width: f + "",
1534
- height: T + ""
1534
+ height: I + ""
1535
1535
  });
1536
1536
  return u.style = {
1537
1537
  ...a,
@@ -1666,7 +1666,7 @@ class Wi extends ue.Component {
1666
1666
  }, r, t._inline, t._ref);
1667
1667
  }
1668
1668
  }
1669
- const Ae = ue.forwardRef(function(t, n) {
1669
+ const Oe = ue.forwardRef(function(t, n) {
1670
1670
  const r = {
1671
1671
  ...t,
1672
1672
  _ref: n,
@@ -1730,7 +1730,7 @@ function Vn(e) {
1730
1730
  "aria-label": jr["popup.buttons.close"],
1731
1731
  type: "button",
1732
1732
  children: /* @__PURE__ */ D.jsx(
1733
- Ae,
1733
+ Oe,
1734
1734
  {
1735
1735
  style: {
1736
1736
  color: "#707070",
@@ -1867,7 +1867,7 @@ var Xi = ["input:not([inert])", "select:not([inert])", "textarea:not([inert])",
1867
1867
  n === void 0 && (n = !0);
1868
1868
  var i = t == null || (r = t.getAttribute) === null || r === void 0 ? void 0 : r.call(t, "inert"), o = i === "" || i === "true", l = o || n && t && e(t.parentNode);
1869
1869
  return l;
1870
- }, Ta = function(t) {
1870
+ }, Ia = function(t) {
1871
1871
  var n, r = t == null || (n = t.getAttribute) === null || n === void 0 ? void 0 : n.call(t, "contenteditable");
1872
1872
  return r === "" || r === "true";
1873
1873
  }, Ji = function(t, n, r) {
@@ -1906,8 +1906,8 @@ var Xi = ["input:not([inert])", "select:not([inert])", "textarea:not([inert])",
1906
1906
  }, Ce = function(t) {
1907
1907
  if (!t)
1908
1908
  throw new Error("No node provided");
1909
- return t.tabIndex < 0 && (/^(AUDIO|VIDEO|DETAILS)$/.test(t.tagName) || Ta(t)) && !to(t) ? 0 : t.tabIndex;
1910
- }, Ia = function(t, n) {
1909
+ return t.tabIndex < 0 && (/^(AUDIO|VIDEO|DETAILS)$/.test(t.tagName) || Ia(t)) && !to(t) ? 0 : t.tabIndex;
1910
+ }, Ta = function(t, n) {
1911
1911
  var r = Ce(t);
1912
1912
  return r < 0 && n && !to(t) ? 0 : r;
1913
1913
  }, ka = function(t, n) {
@@ -2010,7 +2010,7 @@ var Xi = ["input:not([inert])", "select:not([inert])", "textarea:not([inert])",
2010
2010
  }, Fa = function e(t) {
2011
2011
  var n = [], r = [];
2012
2012
  return t.forEach(function(i, o) {
2013
- var l = !!i.scopeParent, a = l ? i.scopeParent : i, s = Ia(a, l), u = l ? e(i.candidates) : a;
2013
+ var l = !!i.scopeParent, a = l ? i.scopeParent : i, s = Ta(a, l), u = l ? e(i.candidates) : a;
2014
2014
  s === 0 ? l ? n.push.apply(n, u) : n.push(a) : r.push({
2015
2015
  documentOrder: o,
2016
2016
  tabIndex: s,
@@ -2038,7 +2038,7 @@ var Xi = ["input:not([inert])", "select:not([inert])", "textarea:not([inert])",
2038
2038
  flatten: !0,
2039
2039
  getShadowRoot: n.getShadowRoot
2040
2040
  }) : r = Ji(t, n.includeContainer, Pt.bind(null, n)), r;
2041
- }, Le = function(t, n) {
2041
+ }, Pe = function(t, n) {
2042
2042
  if (n = n || {}, !t)
2043
2043
  throw new Error("No node provided");
2044
2044
  return _e.call(t, Ot) === !1 ? !1 : En(n, t);
@@ -2052,7 +2052,7 @@ const _a = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineProperty({
2052
2052
  focusable: io,
2053
2053
  getTabIndex: Ce,
2054
2054
  isFocusable: Et,
2055
- isTabbable: Le,
2055
+ isTabbable: Pe,
2056
2056
  tabbable: ro
2057
2057
  }, Symbol.toStringTag, { value: "Module" }));
2058
2058
  /*!
@@ -2230,9 +2230,9 @@ var Ar = {
2230
2230
  }, m = function() {
2231
2231
  if (l.containerGroups = l.containers.map(function(M) {
2232
2232
  var N = ro(M, o.tabbableOptions), C = io(M, o.tabbableOptions), z = N.length > 0 ? N[0] : void 0, F = N.length > 0 ? N[N.length - 1] : void 0, Y = C.find(function(d) {
2233
- return Le(d);
2233
+ return Pe(d);
2234
2234
  }), V = C.slice().reverse().find(function(d) {
2235
- return Le(d);
2235
+ return Pe(d);
2236
2236
  }), X = !!N.find(function(d) {
2237
2237
  return Ce(d) > 0;
2238
2238
  });
@@ -2268,9 +2268,9 @@ var Ar = {
2268
2268
  nextTabbableNode: function(ne) {
2269
2269
  var le = arguments.length > 1 && arguments[1] !== void 0 ? arguments[1] : !0, h = N.indexOf(ne);
2270
2270
  return h < 0 ? le ? C.slice(C.indexOf(ne) + 1).find(function(re) {
2271
- return Le(re);
2271
+ return Pe(re);
2272
2272
  }) : C.slice(0, C.indexOf(ne)).reverse().find(function(re) {
2273
- return Le(re);
2273
+ return Pe(re);
2274
2274
  }) : N[h + (le ? 1 : -1)];
2275
2275
  }
2276
2276
  };
@@ -2286,7 +2286,7 @@ var Ar = {
2286
2286
  var N = M.activeElement;
2287
2287
  if (N)
2288
2288
  return N.shadowRoot && N.shadowRoot.activeElement !== null ? E(N.shadowRoot) : N;
2289
- }, T = function E(M) {
2289
+ }, I = function E(M) {
2290
2290
  if (M !== !1 && M !== f(document)) {
2291
2291
  if (!M || !M.focus) {
2292
2292
  E(p());
@@ -2312,7 +2312,7 @@ var Ar = {
2312
2312
  var se = W.firstTabbableNode;
2313
2313
  return N === se;
2314
2314
  });
2315
- if (d < 0 && (X.container === N || Et(N, o.tabbableOptions) && !Le(N, o.tabbableOptions) && !X.nextTabbableNode(N, !1)) && (d = V), d >= 0) {
2315
+ if (d < 0 && (X.container === N || Et(N, o.tabbableOptions) && !Pe(N, o.tabbableOptions) && !X.nextTabbableNode(N, !1)) && (d = V), d >= 0) {
2316
2316
  var ne = d === 0 ? l.tabbableGroups.length - 1 : d - 1, le = l.tabbableGroups[ne];
2317
2317
  Y = Ce(N) >= 0 ? le.lastTabbableNode : le.lastDomTabbableNode;
2318
2318
  } else
@@ -2322,7 +2322,7 @@ var Ar = {
2322
2322
  var se = W.lastTabbableNode;
2323
2323
  return N === se;
2324
2324
  });
2325
- if (h < 0 && (X.container === N || Et(N, o.tabbableOptions) && !Le(N, o.tabbableOptions) && !X.nextTabbableNode(N)) && (h = V), h >= 0) {
2325
+ if (h < 0 && (X.container === N || Et(N, o.tabbableOptions) && !Pe(N, o.tabbableOptions) && !X.nextTabbableNode(N)) && (h = V), h >= 0) {
2326
2326
  var re = h === l.tabbableGroups.length - 1 ? 0 : h + 1, te = l.tabbableGroups[re];
2327
2327
  Y = Ce(N) >= 0 ? te.firstTabbableNode : te.firstDomTabbableNode;
2328
2328
  } else
@@ -2377,7 +2377,7 @@ var Ar = {
2377
2377
  // outside the trap causing the focus escape we're trying to fix)
2378
2378
  target: l.mostRecentlyFocusedNode,
2379
2379
  isBackward: o.isKeyBackward(l.recentNavEvent)
2380
- })), T(z || l.mostRecentlyFocusedNode || p());
2380
+ })), I(z || l.mostRecentlyFocusedNode || p());
2381
2381
  }
2382
2382
  l.recentNavEvent = void 0;
2383
2383
  }, j = function(M) {
@@ -2387,7 +2387,7 @@ var Ar = {
2387
2387
  event: M,
2388
2388
  isBackward: N
2389
2389
  });
2390
- C && (it(M) && M.preventDefault(), T(C));
2390
+ C && (it(M) && M.preventDefault(), I(C));
2391
2391
  }, B = function(M) {
2392
2392
  if (Ha(M) && Ke(o.escapeDeactivates, M) !== !1) {
2393
2393
  M.preventDefault(), a.deactivate();
@@ -2400,8 +2400,8 @@ var Ar = {
2400
2400
  }, y = function() {
2401
2401
  if (l.active)
2402
2402
  return Ar.activateTrap(i, a), l.delayInitialFocusTimer = o.delayInitialFocus ? Or(function() {
2403
- T(p());
2404
- }) : T(p()), r.addEventListener("focusin", v, !0), r.addEventListener("mousedown", w, {
2403
+ I(p());
2404
+ }) : I(p()), r.addEventListener("focusin", v, !0), r.addEventListener("mousedown", w, {
2405
2405
  capture: !0,
2406
2406
  passive: !1
2407
2407
  }), r.addEventListener("touchstart", w, {
@@ -2424,7 +2424,7 @@ var Ar = {
2424
2424
  return F === l.mostRecentlyFocusedNode;
2425
2425
  });
2426
2426
  });
2427
- N && T(p());
2427
+ N && I(p());
2428
2428
  }, Q = typeof window < "u" && "MutationObserver" in window ? new MutationObserver(U) : void 0, q = function() {
2429
2429
  Q && (Q.disconnect(), l.active && !l.paused && l.containers.map(function(M) {
2430
2430
  Q.observe(M, {
@@ -2463,7 +2463,7 @@ var Ar = {
2463
2463
  C == null || C();
2464
2464
  var V = function() {
2465
2465
  Or(function() {
2466
- Y && T(b(l.nodeFocusedBeforeActivation)), z == null || z();
2466
+ Y && I(b(l.nodeFocusedBeforeActivation)), z == null || z();
2467
2467
  });
2468
2468
  };
2469
2469
  return Y && F ? (F(b(l.nodeFocusedBeforeActivation)).then(V, V), this) : (V(), this);
@@ -2491,7 +2491,7 @@ var Ar = {
2491
2491
  const Za = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineProperty({
2492
2492
  __proto__: null,
2493
2493
  createFocusTrap: Wa
2494
- }, Symbol.toStringTag, { value: "Module" })), Ga = /* @__PURE__ */ Ti(Za), Xa = /* @__PURE__ */ Ti(_a);
2494
+ }, Symbol.toStringTag, { value: "Module" })), Ga = /* @__PURE__ */ Ii(Za), Xa = /* @__PURE__ */ Ii(_a);
2495
2495
  function He(e) {
2496
2496
  "@babel/helpers - typeof";
2497
2497
  return He = typeof Symbol == "function" && typeof Symbol.iterator == "symbol" ? function(t) {
@@ -2583,7 +2583,7 @@ function ou(e, t) {
2583
2583
  }
2584
2584
  return (t === "string" ? String : Number)(e);
2585
2585
  }
2586
- var Tt = ue, P = Ci, lu = Ga, au = lu.createFocusTrap, uu = Xa, su = uu.isFocusable, Zn = /* @__PURE__ */ function(e) {
2586
+ var It = ue, P = Ci, lu = Ga, au = lu.createFocusTrap, uu = Xa, su = uu.isFocusable, Zn = /* @__PURE__ */ function(e) {
2587
2587
  eu(n, e);
2588
2588
  var t = tu(n);
2589
2589
  function n(r) {
@@ -2602,8 +2602,8 @@ var Tt = ue, P = Ci, lu = Ga, au = lu.createFocusTrap, uu = Xa, su = uu.isFocusa
2602
2602
  }
2603
2603
  var f = u;
2604
2604
  if (typeof u == "string") {
2605
- var T;
2606
- if (f = (T = this.getDocument()) === null || T === void 0 ? void 0 : T.querySelector(u), !f)
2605
+ var I;
2606
+ if (f = (I = this.getDocument()) === null || I === void 0 ? void 0 : I.querySelector(u), !f)
2607
2607
  throw new Error("`".concat(a, "` as selector refers to no known node"));
2608
2608
  }
2609
2609
  return f;
@@ -2755,14 +2755,14 @@ var Tt = ue, P = Ci, lu = Ga, au = lu.createFocusTrap, uu = Xa, su = uu.isFocusa
2755
2755
  }, {
2756
2756
  key: "render",
2757
2757
  value: function() {
2758
- var i = this, o = this.props.children ? Tt.Children.only(this.props.children) : void 0;
2758
+ var i = this, o = this.props.children ? It.Children.only(this.props.children) : void 0;
2759
2759
  if (o) {
2760
- if (o.type && o.type === Tt.Fragment)
2760
+ if (o.type && o.type === It.Fragment)
2761
2761
  throw new Error("A focus-trap cannot use a Fragment as its child container. Try replacing it with a <div> element.");
2762
2762
  var l = function(u) {
2763
2763
  var c = i.props.containerElements;
2764
2764
  o && (typeof o.ref == "function" ? o.ref(u) : o.ref && (o.ref.current = u)), i.focusTrapElements = c || [u];
2765
- }, a = Tt.cloneElement(o, {
2765
+ }, a = It.cloneElement(o, {
2766
2766
  ref: l
2767
2767
  });
2768
2768
  return a;
@@ -2770,7 +2770,7 @@ var Tt = ue, P = Ci, lu = Ga, au = lu.createFocusTrap, uu = Xa, su = uu.isFocusa
2770
2770
  return null;
2771
2771
  }
2772
2772
  }]), n;
2773
- }(Tt.Component), Je = typeof Element > "u" ? Function : Element;
2773
+ }(It.Component), Je = typeof Element > "u" ? Function : Element;
2774
2774
  Zn.propTypes = {
2775
2775
  active: P.bool,
2776
2776
  paused: P.bool,
@@ -2847,7 +2847,7 @@ function Bt({
2847
2847
  isNormalSize: r,
2848
2848
  isMounted: i
2849
2849
  }) {
2850
- const o = pt(hu), l = Fe(null);
2850
+ const o = pt(hu), l = Ae(null);
2851
2851
  return du(l), /* @__PURE__ */ D.jsx(
2852
2852
  pu,
2853
2853
  {
@@ -2945,7 +2945,7 @@ function lo({ onClose: e, configurations: t }) {
2945
2945
  },
2946
2946
  onClick: e,
2947
2947
  children: /* @__PURE__ */ D.jsx(
2948
- Ae,
2948
+ Oe,
2949
2949
  {
2950
2950
  icon: "material-symbols:close",
2951
2951
  alt: "Close",
@@ -2967,40 +2967,37 @@ lo.propTypes = {
2967
2967
  function Qt({
2968
2968
  loading: e,
2969
2969
  inputRef: t,
2970
- hasError: n,
2971
- userInput: r,
2972
- handleSend: i,
2973
- handleInput: o,
2974
- handleChange: l,
2975
- handleKeyDown: a,
2976
- containerStyle: s,
2977
- configurations: u
2970
+ userInput: n,
2971
+ handleSend: r,
2972
+ handleInput: i,
2973
+ handleChange: o,
2974
+ handleKeyDown: l,
2975
+ containerStyle: a,
2976
+ configurations: s
2978
2977
  }) {
2979
- return ye(() => {
2980
- var c;
2981
- (c = t == null ? void 0 : t.current) == null || c.focus();
2982
- }, [e, n, t]), /* @__PURE__ */ D.jsxs("div", { className: "xpert-chatbot-popup__input--group", style: s, children: [
2978
+ return /* @__PURE__ */ D.jsxs("div", { className: "xpert-chatbot-popup__input--group", style: a, children: [
2983
2979
  /* @__PURE__ */ D.jsx(
2984
2980
  "textarea",
2985
2981
  {
2986
2982
  disabled: e,
2987
- value: r,
2983
+ value: n,
2988
2984
  ref: t,
2989
- onInput: o,
2990
- onChange: l,
2985
+ onInput: i,
2986
+ onChange: o,
2991
2987
  placeholder: "Write a message",
2992
2988
  cols: "5",
2993
2989
  rows: "1",
2994
2990
  maxLength: "150",
2995
- onKeyDown: a,
2991
+ onKeyDown: l,
2996
2992
  style: {
2997
- outlineColor: u.primaryColor,
2993
+ outlineColor: s.primaryColor,
2998
2994
  width: "100%",
2999
2995
  minHeight: "3.25rem",
3000
2996
  borderRadius: "1rem",
3001
2997
  padding: "12.5px 45px 12.5px 12.5px",
3002
2998
  fontFamily: "inherit",
3003
- fontSize: ".9rem",
2999
+ fontSize: "1rem",
3000
+ // required to avoid IOS mobile scaling when input is focused
3004
3001
  fontWeight: "300",
3005
3002
  lineHeight: "1.56rem",
3006
3003
  boxSizing: "border-box",
@@ -3013,11 +3010,11 @@ function Qt({
3013
3010
  {
3014
3011
  disabled: e,
3015
3012
  className: "xpert-chatbot-popup__input--send-btn",
3016
- onClick: (c) => {
3017
- c.preventDefault(), i(r);
3013
+ onClick: (u) => {
3014
+ u.preventDefault(), r(n);
3018
3015
  },
3019
3016
  "aria-label": "Send message",
3020
- children: /* @__PURE__ */ D.jsx(Ae, { icon: "material-symbols:send", style: { fontSize: "1.75rem" } })
3017
+ children: /* @__PURE__ */ D.jsx(Oe, { icon: "material-symbols:send", style: { fontSize: "1.75rem" } })
3021
3018
  }
3022
3019
  )
3023
3020
  ] });
@@ -3025,7 +3022,6 @@ function Qt({
3025
3022
  Qt.propTypes = {
3026
3023
  loading: g.bool.isRequired,
3027
3024
  inputRef: g.shape({ current: g.instanceOf(Object) }).isRequired,
3028
- hasError: g.bool.isRequired,
3029
3025
  handleSend: g.func.isRequired,
3030
3026
  userInput: g.string.isRequired,
3031
3027
  handleInput: g.func.isRequired,
@@ -3079,7 +3075,7 @@ function ao({
3079
3075
  className: "xpert-chatbot-popup__disclaimer--instruction",
3080
3076
  children: [
3081
3077
  /* @__PURE__ */ D.jsx("div", { className: "xpert-chatbot-popup__disclaimer__compass-icon", children: /* @__PURE__ */ D.jsx(
3082
- Ae,
3078
+ Oe,
3083
3079
  {
3084
3080
  icon: yu[c.icon],
3085
3081
  style: { fontSize: "1.75rem" }
@@ -3158,7 +3154,7 @@ ao.propTypes = {
3158
3154
  }).isRequired
3159
3155
  };
3160
3156
  function uo({ disableScroll: e }) {
3161
- const t = Fe(null);
3157
+ const t = Ae(null);
3162
3158
  return ye(() => {
3163
3159
  var n;
3164
3160
  e || (n = t.current) == null || n.scrollIntoView({
@@ -3183,7 +3179,7 @@ uo.propTypes = {
3183
3179
  disableScroll: g.bool
3184
3180
  };
3185
3181
  const so = () => {
3186
- const e = Fe(null);
3182
+ const e = Ae(null);
3187
3183
  return ye(() => {
3188
3184
  var t;
3189
3185
  (t = e.current) == null || t.scrollIntoView({
@@ -3207,7 +3203,7 @@ const so = () => {
3207
3203
  ref: e,
3208
3204
  children: [
3209
3205
  /* @__PURE__ */ D.jsx(
3210
- Ae,
3206
+ Oe,
3211
3207
  {
3212
3208
  icon: "material-symbols:thunderstorm",
3213
3209
  style: {
@@ -3332,7 +3328,7 @@ xe.prototype.line = null;
3332
3328
  xe.prototype.source = null;
3333
3329
  xe.prototype.ruleId = null;
3334
3330
  xe.prototype.position = null;
3335
- const Te = { basename: wu, dirname: Du, extname: Nu, join: Tu, sep: "/" };
3331
+ const Ie = { basename: wu, dirname: Du, extname: Nu, join: Iu, sep: "/" };
3336
3332
  function wu(e, t) {
3337
3333
  if (t !== void 0 && typeof t != "string")
3338
3334
  throw new TypeError('"ext" argument must be a string');
@@ -3394,13 +3390,13 @@ function Nu(e) {
3394
3390
  o === 0 || // The (right-most) trimmed path component is exactly `..`.
3395
3391
  o === 1 && i === n - 1 && i === r + 1 ? "" : e.slice(i, n);
3396
3392
  }
3397
- function Tu(...e) {
3393
+ function Iu(...e) {
3398
3394
  let t = -1, n;
3399
3395
  for (; ++t < e.length; )
3400
3396
  ft(e[t]), e[t] && (n = n === void 0 ? e[t] : n + "/" + e[t]);
3401
- return n === void 0 ? "." : Iu(n);
3397
+ return n === void 0 ? "." : Tu(n);
3402
3398
  }
3403
- function Iu(e) {
3399
+ function Tu(e) {
3404
3400
  ft(e);
3405
3401
  const t = e.charCodeAt(0) === 47;
3406
3402
  let n = ku(e, !t);
@@ -3550,7 +3546,7 @@ class po {
3550
3546
  * Get the parent path (example: `'~'`).
3551
3547
  */
3552
3548
  get dirname() {
3553
- return typeof this.path == "string" ? Te.dirname(this.path) : void 0;
3549
+ return typeof this.path == "string" ? Ie.dirname(this.path) : void 0;
3554
3550
  }
3555
3551
  /**
3556
3552
  * Set the parent path (example: `'~'`).
@@ -3558,13 +3554,13 @@ class po {
3558
3554
  * Cannot be set if there’s no `path` yet.
3559
3555
  */
3560
3556
  set dirname(t) {
3561
- _r(this.basename, "dirname"), this.path = Te.join(t || "", this.basename);
3557
+ _r(this.basename, "dirname"), this.path = Ie.join(t || "", this.basename);
3562
3558
  }
3563
3559
  /**
3564
3560
  * Get the basename (including extname) (example: `'index.min.js'`).
3565
3561
  */
3566
3562
  get basename() {
3567
- return typeof this.path == "string" ? Te.basename(this.path) : void 0;
3563
+ return typeof this.path == "string" ? Ie.basename(this.path) : void 0;
3568
3564
  }
3569
3565
  /**
3570
3566
  * Set basename (including extname) (`'index.min.js'`).
@@ -3574,13 +3570,13 @@ class po {
3574
3570
  * Cannot be nullified (use `file.path = file.dirname` instead).
3575
3571
  */
3576
3572
  set basename(t) {
3577
- dn(t, "basename"), fn(t, "basename"), this.path = Te.join(this.dirname || "", t);
3573
+ dn(t, "basename"), fn(t, "basename"), this.path = Ie.join(this.dirname || "", t);
3578
3574
  }
3579
3575
  /**
3580
3576
  * Get the extname (including dot) (example: `'.js'`).
3581
3577
  */
3582
3578
  get extname() {
3583
- return typeof this.path == "string" ? Te.extname(this.path) : void 0;
3579
+ return typeof this.path == "string" ? Ie.extname(this.path) : void 0;
3584
3580
  }
3585
3581
  /**
3586
3582
  * Set the extname (including dot) (example: `'.js'`).
@@ -3596,13 +3592,13 @@ class po {
3596
3592
  if (t.includes(".", 1))
3597
3593
  throw new Error("`extname` cannot contain multiple dots");
3598
3594
  }
3599
- this.path = Te.join(this.dirname, this.stem + (t || ""));
3595
+ this.path = Ie.join(this.dirname, this.stem + (t || ""));
3600
3596
  }
3601
3597
  /**
3602
3598
  * Get the stem (basename w/o extname) (example: `'index.min'`).
3603
3599
  */
3604
3600
  get stem() {
3605
- return typeof this.path == "string" ? Te.basename(this.path, this.extname) : void 0;
3601
+ return typeof this.path == "string" ? Ie.basename(this.path, this.extname) : void 0;
3606
3602
  }
3607
3603
  /**
3608
3604
  * Set the stem (basename w/o extname) (example: `'index.min'`).
@@ -3612,7 +3608,7 @@ class po {
3612
3608
  * Cannot be nullified (use `file.path = file.dirname` instead).
3613
3609
  */
3614
3610
  set stem(t) {
3615
- dn(t, "stem"), fn(t, "stem"), this.path = Te.join(this.dirname || "", t + (this.extname || ""));
3611
+ dn(t, "stem"), fn(t, "stem"), this.path = Ie.join(this.dirname || "", t + (this.extname || ""));
3616
3612
  }
3617
3613
  /**
3618
3614
  * Serialize the file.
@@ -3692,9 +3688,9 @@ class po {
3692
3688
  }
3693
3689
  }
3694
3690
  function fn(e, t) {
3695
- if (e && e.includes(Te.sep))
3691
+ if (e && e.includes(Ie.sep))
3696
3692
  throw new Error(
3697
- "`" + t + "` cannot be a path: did not expect `" + Te.sep + "`"
3693
+ "`" + t + "` cannot be a path: did not expect `" + Ie.sep + "`"
3698
3694
  );
3699
3695
  }
3700
3696
  function dn(e, t) {
@@ -3814,7 +3810,7 @@ const Lu = go().freeze(), ho = {}.hasOwnProperty;
3814
3810
  function go() {
3815
3811
  const e = Ou(), t = [];
3816
3812
  let n = {}, r, i = -1;
3817
- return o.data = l, o.Parser = void 0, o.Compiler = void 0, o.freeze = a, o.attachers = t, o.use = s, o.parse = u, o.stringify = c, o.run = p, o.runSync = m, o.process = f, o.processSync = T, o;
3813
+ return o.data = l, o.Parser = void 0, o.Compiler = void 0, o.freeze = a, o.attachers = t, o.use = s, o.parse = u, o.stringify = c, o.run = p, o.runSync = m, o.process = f, o.processSync = I, o;
3818
3814
  function o() {
3819
3815
  const b = go();
3820
3816
  let S = -1;
@@ -3931,7 +3927,7 @@ function go() {
3931
3927
  }
3932
3928
  }
3933
3929
  }
3934
- function T(b) {
3930
+ function I(b) {
3935
3931
  let S;
3936
3932
  o.freeze(), hn("processSync", o.Parser), gn("processSync", o.Compiler);
3937
3933
  const w = et(b);
@@ -4060,7 +4056,7 @@ function Hu(e, t) {
4060
4056
  (t[n].add === "after" ? e : r).push(t[n]);
4061
4057
  ke(e, 0, 0, r);
4062
4058
  }
4063
- const qu = /[!-\/:-@\[-`\{-~\xA1\xA7\xAB\xB6\xB7\xBB\xBF\u037E\u0387\u055A-\u055F\u0589\u058A\u05BE\u05C0\u05C3\u05C6\u05F3\u05F4\u0609\u060A\u060C\u060D\u061B\u061D-\u061F\u066A-\u066D\u06D4\u0700-\u070D\u07F7-\u07F9\u0830-\u083E\u085E\u0964\u0965\u0970\u09FD\u0A76\u0AF0\u0C77\u0C84\u0DF4\u0E4F\u0E5A\u0E5B\u0F04-\u0F12\u0F14\u0F3A-\u0F3D\u0F85\u0FD0-\u0FD4\u0FD9\u0FDA\u104A-\u104F\u10FB\u1360-\u1368\u1400\u166E\u169B\u169C\u16EB-\u16ED\u1735\u1736\u17D4-\u17D6\u17D8-\u17DA\u1800-\u180A\u1944\u1945\u1A1E\u1A1F\u1AA0-\u1AA6\u1AA8-\u1AAD\u1B5A-\u1B60\u1B7D\u1B7E\u1BFC-\u1BFF\u1C3B-\u1C3F\u1C7E\u1C7F\u1CC0-\u1CC7\u1CD3\u2010-\u2027\u2030-\u2043\u2045-\u2051\u2053-\u205E\u207D\u207E\u208D\u208E\u2308-\u230B\u2329\u232A\u2768-\u2775\u27C5\u27C6\u27E6-\u27EF\u2983-\u2998\u29D8-\u29DB\u29FC\u29FD\u2CF9-\u2CFC\u2CFE\u2CFF\u2D70\u2E00-\u2E2E\u2E30-\u2E4F\u2E52-\u2E5D\u3001-\u3003\u3008-\u3011\u3014-\u301F\u3030\u303D\u30A0\u30FB\uA4FE\uA4FF\uA60D-\uA60F\uA673\uA67E\uA6F2-\uA6F7\uA874-\uA877\uA8CE\uA8CF\uA8F8-\uA8FA\uA8FC\uA92E\uA92F\uA95F\uA9C1-\uA9CD\uA9DE\uA9DF\uAA5C-\uAA5F\uAADE\uAADF\uAAF0\uAAF1\uABEB\uFD3E\uFD3F\uFE10-\uFE19\uFE30-\uFE52\uFE54-\uFE61\uFE63\uFE68\uFE6A\uFE6B\uFF01-\uFF03\uFF05-\uFF0A\uFF0C-\uFF0F\uFF1A\uFF1B\uFF1F\uFF20\uFF3B-\uFF3D\uFF3F\uFF5B\uFF5D\uFF5F-\uFF65]/, Ie = Oe(/[A-Za-z]/), me = Oe(/[\dA-Za-z]/), $u = Oe(/[#-'*+\--9=?A-Z^-~]/);
4059
+ const qu = /[!-\/:-@\[-`\{-~\xA1\xA7\xAB\xB6\xB7\xBB\xBF\u037E\u0387\u055A-\u055F\u0589\u058A\u05BE\u05C0\u05C3\u05C6\u05F3\u05F4\u0609\u060A\u060C\u060D\u061B\u061D-\u061F\u066A-\u066D\u06D4\u0700-\u070D\u07F7-\u07F9\u0830-\u083E\u085E\u0964\u0965\u0970\u09FD\u0A76\u0AF0\u0C77\u0C84\u0DF4\u0E4F\u0E5A\u0E5B\u0F04-\u0F12\u0F14\u0F3A-\u0F3D\u0F85\u0FD0-\u0FD4\u0FD9\u0FDA\u104A-\u104F\u10FB\u1360-\u1368\u1400\u166E\u169B\u169C\u16EB-\u16ED\u1735\u1736\u17D4-\u17D6\u17D8-\u17DA\u1800-\u180A\u1944\u1945\u1A1E\u1A1F\u1AA0-\u1AA6\u1AA8-\u1AAD\u1B5A-\u1B60\u1B7D\u1B7E\u1BFC-\u1BFF\u1C3B-\u1C3F\u1C7E\u1C7F\u1CC0-\u1CC7\u1CD3\u2010-\u2027\u2030-\u2043\u2045-\u2051\u2053-\u205E\u207D\u207E\u208D\u208E\u2308-\u230B\u2329\u232A\u2768-\u2775\u27C5\u27C6\u27E6-\u27EF\u2983-\u2998\u29D8-\u29DB\u29FC\u29FD\u2CF9-\u2CFC\u2CFE\u2CFF\u2D70\u2E00-\u2E2E\u2E30-\u2E4F\u2E52-\u2E5D\u3001-\u3003\u3008-\u3011\u3014-\u301F\u3030\u303D\u30A0\u30FB\uA4FE\uA4FF\uA60D-\uA60F\uA673\uA67E\uA6F2-\uA6F7\uA874-\uA877\uA8CE\uA8CF\uA8F8-\uA8FA\uA8FC\uA92E\uA92F\uA95F\uA9C1-\uA9CD\uA9DE\uA9DF\uAA5C-\uAA5F\uAADE\uAADF\uAAF0\uAAF1\uABEB\uFD3E\uFD3F\uFE10-\uFE19\uFE30-\uFE52\uFE54-\uFE61\uFE63\uFE68\uFE6A\uFE6B\uFF01-\uFF03\uFF05-\uFF0A\uFF0C-\uFF0F\uFF1A\uFF1B\uFF1F\uFF20\uFF3B-\uFF3D\uFF3F\uFF5B\uFF5D\uFF5F-\uFF65]/, Te = ze(/[A-Za-z]/), me = ze(/[\dA-Za-z]/), $u = ze(/[#-'*+\--9=?A-Z^-~]/);
4064
4060
  function zn(e) {
4065
4061
  return (
4066
4062
  // Special whitespace codes (which have negative values), C0 and Control
@@ -4068,7 +4064,7 @@ function zn(e) {
4068
4064
  e !== null && (e < 32 || e === 127)
4069
4065
  );
4070
4066
  }
4071
- const Ln = Oe(/\d/), Vu = Oe(/[\dA-Fa-f]/), Wu = Oe(/[!-/:-@[-`{-~]/);
4067
+ const Ln = ze(/\d/), Vu = ze(/[\dA-Fa-f]/), Wu = ze(/[!-/:-@[-`{-~]/);
4072
4068
  function R(e) {
4073
4069
  return e !== null && e < -2;
4074
4070
  }
@@ -4078,8 +4074,8 @@ function de(e) {
4078
4074
  function Z(e) {
4079
4075
  return e === -2 || e === -1 || e === 32;
4080
4076
  }
4081
- const Zu = Oe(qu), Gu = Oe(/\s/);
4082
- function Oe(e) {
4077
+ const Zu = ze(qu), Gu = ze(/\s/);
4078
+ function ze(e) {
4083
4079
  return t;
4084
4080
  function t(n) {
4085
4081
  return n !== null && e.test(String.fromCharCode(n));
@@ -4180,7 +4176,7 @@ function es(e) {
4180
4176
  if (!i)
4181
4177
  return m(j);
4182
4178
  if (i.currentConstruct && i.currentConstruct.concrete)
4183
- return T(j);
4179
+ return I(j);
4184
4180
  t.interrupt = !!(i.currentConstruct && !i._gfmTableDynamicInterruptHack);
4185
4181
  }
4186
4182
  return t.containerState = {}, e.check(
@@ -4193,19 +4189,19 @@ function es(e) {
4193
4189
  return i && v(), w(r), m(j);
4194
4190
  }
4195
4191
  function p(j) {
4196
- return t.parser.lazy[t.now().line] = r !== n.length, l = t.now().offset, T(j);
4192
+ return t.parser.lazy[t.now().line] = r !== n.length, l = t.now().offset, I(j);
4197
4193
  }
4198
4194
  function m(j) {
4199
4195
  return t.containerState = {}, e.attempt(
4200
4196
  Jr,
4201
4197
  f,
4202
- T
4198
+ I
4203
4199
  )(j);
4204
4200
  }
4205
4201
  function f(j) {
4206
4202
  return r++, n.push([t.currentConstruct, t.containerState]), m(j);
4207
4203
  }
4208
- function T(j) {
4204
+ function I(j) {
4209
4205
  if (j === null) {
4210
4206
  i && v(), w(0), e.consume(j);
4211
4207
  return;
@@ -4381,7 +4377,7 @@ function os(e, t, n) {
4381
4377
  return e.enter("autolink"), e.enter("autolinkMarker"), e.consume(f), e.exit("autolinkMarker"), e.enter("autolinkProtocol"), o;
4382
4378
  }
4383
4379
  function o(f) {
4384
- return Ie(f) ? (e.consume(f), l) : u(f);
4380
+ return Te(f) ? (e.consume(f), l) : u(f);
4385
4381
  }
4386
4382
  function l(f) {
4387
4383
  return f === 43 || f === 45 || f === 46 || me(f) ? (r = 1, a(f)) : u(f);
@@ -4403,8 +4399,8 @@ function os(e, t, n) {
4403
4399
  }
4404
4400
  function m(f) {
4405
4401
  if ((f === 45 || me(f)) && r++ < 63) {
4406
- const T = f === 45 ? m : p;
4407
- return e.consume(f), T;
4402
+ const I = f === 45 ? m : p;
4403
+ return e.consume(f), I;
4408
4404
  }
4409
4405
  return n(f);
4410
4406
  }
@@ -4545,10 +4541,10 @@ function fs(e, t, n) {
4545
4541
  function f(y) {
4546
4542
  return y === null || R(y) ? p(y) : (e.enter("codeFencedFenceMeta"), e.enter("chunkString", {
4547
4543
  contentType: "string"
4548
- }), T(y));
4544
+ }), I(y));
4549
4545
  }
4550
- function T(y) {
4551
- return y === null || R(y) ? (e.exit("chunkString"), e.exit("codeFencedFenceMeta"), p(y)) : y === 96 && y === a ? n(y) : (e.consume(y), T);
4546
+ function I(y) {
4547
+ return y === null || R(y) ? (e.exit("chunkString"), e.exit("codeFencedFenceMeta"), p(y)) : y === 96 && y === a ? n(y) : (e.consume(y), I);
4552
4548
  }
4553
4549
  function b(y) {
4554
4550
  return e.attempt(i, B, S)(y);
@@ -4710,7 +4706,7 @@ function ws(e, t) {
4710
4706
  const n = e[t][1], r = e[t][2];
4711
4707
  let i = t - 1;
4712
4708
  const o = [], l = n._tokenizer || r.parser[n.contentType](n.start), a = l.events, s = [], u = {};
4713
- let c, p, m = -1, f = n, T = 0, b = 0;
4709
+ let c, p, m = -1, f = n, I = 0, b = 0;
4714
4710
  const S = [b];
4715
4711
  for (; f; ) {
4716
4712
  for (; e[++i][1] !== f; )
@@ -4725,20 +4721,20 @@ function ws(e, t) {
4725
4721
  s.unshift([v, v + w.length - 1]), ke(e, v, 2, w);
4726
4722
  }
4727
4723
  for (m = -1; ++m < s.length; )
4728
- u[T + s[m][0]] = T + s[m][1], T += s[m][1] - s[m][0] - 1;
4724
+ u[I + s[m][0]] = I + s[m][1], I += s[m][1] - s[m][0] - 1;
4729
4725
  return u;
4730
4726
  }
4731
4727
  const Ds = {
4732
- tokenize: Is,
4733
- resolve: Ts
4728
+ tokenize: Ts,
4729
+ resolve: Is
4734
4730
  }, Ns = {
4735
4731
  tokenize: ks,
4736
4732
  partial: !0
4737
4733
  };
4738
- function Ts(e) {
4734
+ function Is(e) {
4739
4735
  return bo(e), e;
4740
4736
  }
4741
- function Is(e, t) {
4737
+ function Ts(e, t) {
4742
4738
  let n;
4743
4739
  return r;
4744
4740
  function r(a) {
@@ -4791,9 +4787,9 @@ function wo(e, t, n, r, i, o, l, a, s) {
4791
4787
  }), f(w));
4792
4788
  }
4793
4789
  function f(w) {
4794
- return w === 62 ? (e.exit("chunkString"), e.exit(a), m(w)) : w === null || w === 60 || R(w) ? n(w) : (e.consume(w), w === 92 ? T : f);
4790
+ return w === 62 ? (e.exit("chunkString"), e.exit(a), m(w)) : w === null || w === 60 || R(w) ? n(w) : (e.consume(w), w === 92 ? I : f);
4795
4791
  }
4796
- function T(w) {
4792
+ function I(w) {
4797
4793
  return w === 60 || w === 62 || w === 92 ? (e.consume(w), f) : f(w);
4798
4794
  }
4799
4795
  function b(w) {
@@ -5091,20 +5087,20 @@ function Bs(e, t, n) {
5091
5087
  return e.enter("htmlFlow"), e.enter("htmlFlowData"), e.consume(h), p;
5092
5088
  }
5093
5089
  function p(h) {
5094
- return h === 33 ? (e.consume(h), m) : h === 47 ? (e.consume(h), o = !0, b) : h === 63 ? (e.consume(h), i = 3, r.interrupt ? t : d) : Ie(h) ? (e.consume(h), l = String.fromCharCode(h), S) : n(h);
5090
+ return h === 33 ? (e.consume(h), m) : h === 47 ? (e.consume(h), o = !0, b) : h === 63 ? (e.consume(h), i = 3, r.interrupt ? t : d) : Te(h) ? (e.consume(h), l = String.fromCharCode(h), S) : n(h);
5095
5091
  }
5096
5092
  function m(h) {
5097
- return h === 45 ? (e.consume(h), i = 2, f) : h === 91 ? (e.consume(h), i = 5, a = 0, T) : Ie(h) ? (e.consume(h), i = 4, r.interrupt ? t : d) : n(h);
5093
+ return h === 45 ? (e.consume(h), i = 2, f) : h === 91 ? (e.consume(h), i = 5, a = 0, I) : Te(h) ? (e.consume(h), i = 4, r.interrupt ? t : d) : n(h);
5098
5094
  }
5099
5095
  function f(h) {
5100
5096
  return h === 45 ? (e.consume(h), r.interrupt ? t : d) : n(h);
5101
5097
  }
5102
- function T(h) {
5098
+ function I(h) {
5103
5099
  const re = "CDATA[";
5104
- return h === re.charCodeAt(a++) ? (e.consume(h), a === re.length ? r.interrupt ? t : M : T) : n(h);
5100
+ return h === re.charCodeAt(a++) ? (e.consume(h), a === re.length ? r.interrupt ? t : M : I) : n(h);
5105
5101
  }
5106
5102
  function b(h) {
5107
- return Ie(h) ? (e.consume(h), l = String.fromCharCode(h), S) : n(h);
5103
+ return Te(h) ? (e.consume(h), l = String.fromCharCode(h), S) : n(h);
5108
5104
  }
5109
5105
  function S(h) {
5110
5106
  if (h === null || h === 47 || h === 62 || de(h)) {
@@ -5120,7 +5116,7 @@ function Bs(e, t, n) {
5120
5116
  return Z(h) ? (e.consume(h), v) : q(h);
5121
5117
  }
5122
5118
  function j(h) {
5123
- return h === 47 ? (e.consume(h), q) : h === 58 || h === 95 || Ie(h) ? (e.consume(h), B) : Z(h) ? (e.consume(h), j) : q(h);
5119
+ return h === 47 ? (e.consume(h), q) : h === 58 || h === 95 || Te(h) ? (e.consume(h), B) : Z(h) ? (e.consume(h), j) : q(h);
5124
5120
  }
5125
5121
  function B(h) {
5126
5122
  return h === 45 || h === 46 || h === 58 || h === 95 || me(h) ? (e.consume(h), B) : _(h);
@@ -5177,7 +5173,7 @@ function Bs(e, t, n) {
5177
5173
  const re = l.toLowerCase();
5178
5174
  return oi.includes(re) ? (e.consume(h), ne) : M(h);
5179
5175
  }
5180
- return Ie(h) && l.length < 8 ? (e.consume(h), l += String.fromCharCode(h), V) : M(h);
5176
+ return Te(h) && l.length < 8 ? (e.consume(h), l += String.fromCharCode(h), V) : M(h);
5181
5177
  }
5182
5178
  function X(h) {
5183
5179
  return h === 93 ? (e.consume(h), d) : M(h);
@@ -5220,10 +5216,10 @@ function qs(e, t, n) {
5220
5216
  return e.enter("htmlText"), e.enter("htmlTextData"), e.consume(d), s;
5221
5217
  }
5222
5218
  function s(d) {
5223
- return d === 33 ? (e.consume(d), u) : d === 47 ? (e.consume(d), _) : d === 63 ? (e.consume(d), j) : Ie(d) ? (e.consume(d), U) : n(d);
5219
+ return d === 33 ? (e.consume(d), u) : d === 47 ? (e.consume(d), _) : d === 63 ? (e.consume(d), j) : Te(d) ? (e.consume(d), U) : n(d);
5224
5220
  }
5225
5221
  function u(d) {
5226
- return d === 45 ? (e.consume(d), c) : d === 91 ? (e.consume(d), o = 0, T) : Ie(d) ? (e.consume(d), v) : n(d);
5222
+ return d === 45 ? (e.consume(d), c) : d === 91 ? (e.consume(d), o = 0, I) : Te(d) ? (e.consume(d), v) : n(d);
5227
5223
  }
5228
5224
  function c(d) {
5229
5225
  return d === 45 ? (e.consume(d), f) : n(d);
@@ -5237,9 +5233,9 @@ function qs(e, t, n) {
5237
5233
  function f(d) {
5238
5234
  return d === 62 ? F(d) : d === 45 ? m(d) : p(d);
5239
5235
  }
5240
- function T(d) {
5236
+ function I(d) {
5241
5237
  const ne = "CDATA[";
5242
- return d === ne.charCodeAt(o++) ? (e.consume(d), o === ne.length ? b : T) : n(d);
5238
+ return d === ne.charCodeAt(o++) ? (e.consume(d), o === ne.length ? b : I) : n(d);
5243
5239
  }
5244
5240
  function b(d) {
5245
5241
  return d === null ? n(d) : d === 93 ? (e.consume(d), S) : R(d) ? (l = b, Y(d)) : (e.consume(d), b);
@@ -5260,7 +5256,7 @@ function qs(e, t, n) {
5260
5256
  return d === 62 ? F(d) : j(d);
5261
5257
  }
5262
5258
  function _(d) {
5263
- return Ie(d) ? (e.consume(d), y) : n(d);
5259
+ return Te(d) ? (e.consume(d), y) : n(d);
5264
5260
  }
5265
5261
  function y(d) {
5266
5262
  return d === 45 || me(d) ? (e.consume(d), y) : A(d);
@@ -5272,7 +5268,7 @@ function qs(e, t, n) {
5272
5268
  return d === 45 || me(d) ? (e.consume(d), U) : d === 47 || d === 62 || de(d) ? Q(d) : n(d);
5273
5269
  }
5274
5270
  function Q(d) {
5275
- return d === 47 ? (e.consume(d), F) : d === 58 || d === 95 || Ie(d) ? (e.consume(d), q) : R(d) ? (l = Q, Y(d)) : Z(d) ? (e.consume(d), Q) : F(d);
5271
+ return d === 47 ? (e.consume(d), F) : d === 58 || d === 95 || Te(d) ? (e.consume(d), q) : R(d) ? (l = Q, Y(d)) : Z(d) ? (e.consume(d), Q) : F(d);
5276
5272
  }
5277
5273
  function q(d) {
5278
5274
  return d === 45 || d === 46 || d === 58 || d === 95 || me(d) ? (e.consume(d), q) : E(d);
@@ -5578,11 +5574,11 @@ function sc(e, t, n) {
5578
5574
  let o = i && i[1].type === "linePrefix" ? i[2].sliceSerialize(i[1], !0).length : 0, l = 0;
5579
5575
  return a;
5580
5576
  function a(f) {
5581
- const T = r.containerState.type || (f === 42 || f === 43 || f === 45 ? "listUnordered" : "listOrdered");
5582
- if (T === "listUnordered" ? !r.containerState.marker || f === r.containerState.marker : Ln(f)) {
5583
- if (r.containerState.type || (r.containerState.type = T, e.enter(T, {
5577
+ const I = r.containerState.type || (f === 42 || f === 43 || f === 45 ? "listUnordered" : "listOrdered");
5578
+ if (I === "listUnordered" ? !r.containerState.marker || f === r.containerState.marker : Ln(f)) {
5579
+ if (r.containerState.type || (r.containerState.type = I, e.enter(I, {
5584
5580
  _container: !0
5585
- })), T === "listUnordered")
5581
+ })), I === "listUnordered")
5586
5582
  return e.enter("listItemPrefix"), f === 42 || f === 45 ? e.check(Ct, n, u)(f) : u(f);
5587
5583
  if (!r.interrupt || f === 49)
5588
5584
  return e.enter("listItemPrefix"), e.enter("listItemValue"), s(f);
@@ -5752,12 +5748,12 @@ function yc(e) {
5752
5748
  }
5753
5749
  }
5754
5750
  const Mc = {
5755
- resolveAll: Io()
5756
- }, xc = To("string"), bc = To("text");
5757
- function To(e) {
5751
+ resolveAll: To()
5752
+ }, xc = Io("string"), bc = Io("text");
5753
+ function Io(e) {
5758
5754
  return {
5759
5755
  tokenize: t,
5760
- resolveAll: Io(
5756
+ resolveAll: To(
5761
5757
  e === "text" ? wc : void 0
5762
5758
  )
5763
5759
  };
@@ -5792,7 +5788,7 @@ function To(e) {
5792
5788
  }
5793
5789
  }
5794
5790
  }
5795
- function Io(e) {
5791
+ function To(e) {
5796
5792
  return t;
5797
5793
  function t(n, r) {
5798
5794
  let i = -1, o;
@@ -5876,7 +5872,7 @@ function Dc(e, t, n) {
5876
5872
  parser: e,
5877
5873
  sliceStream: f,
5878
5874
  sliceSerialize: m,
5879
- now: T,
5875
+ now: I,
5880
5876
  defineSkip: b,
5881
5877
  write: p
5882
5878
  };
@@ -5886,12 +5882,12 @@ function Dc(e, t, n) {
5886
5882
  return l = Me(l, E), S(), l[l.length - 1] !== null ? [] : (U(t, 0), u.events = Gn(o, u.events, u), u.events);
5887
5883
  }
5888
5884
  function m(E, M) {
5889
- return Tc(f(E), M);
5885
+ return Ic(f(E), M);
5890
5886
  }
5891
5887
  function f(E) {
5892
5888
  return Nc(l, E);
5893
5889
  }
5894
- function T() {
5890
+ function I() {
5895
5891
  const { line: E, column: M, offset: N, _index: C, _bufferIndex: z } = r;
5896
5892
  return {
5897
5893
  line: E,
@@ -5923,11 +5919,11 @@ function Dc(e, t, n) {
5923
5919
  }
5924
5920
  function j(E, M) {
5925
5921
  const N = M || {};
5926
- return N.type = E, N.start = T(), u.events.push(["enter", N, u]), a.push(N), N;
5922
+ return N.type = E, N.start = I(), u.events.push(["enter", N, u]), a.push(N), N;
5927
5923
  }
5928
5924
  function B(E) {
5929
5925
  const M = a.pop();
5930
- return M.end = T(), u.events.push(["exit", M, u]), M;
5926
+ return M.end = I(), u.events.push(["exit", M, u]), M;
5931
5927
  }
5932
5928
  function _(E, M) {
5933
5929
  U(E, M.from);
@@ -5989,7 +5985,7 @@ function Dc(e, t, n) {
5989
5985
  ), E.resolveTo && (u.events = E.resolveTo(u.events, u));
5990
5986
  }
5991
5987
  function Q() {
5992
- const E = T(), M = u.previous, N = u.currentConstruct, C = u.events.length, z = Array.from(a);
5988
+ const E = I(), M = u.previous, N = u.currentConstruct, C = u.events.length, z = Array.from(a);
5993
5989
  return {
5994
5990
  restore: F,
5995
5991
  from: C
@@ -6016,7 +6012,7 @@ function Nc(e, t) {
6016
6012
  }
6017
6013
  return l;
6018
6014
  }
6019
- function Tc(e, t) {
6015
+ function Ic(e, t) {
6020
6016
  let n = -1;
6021
6017
  const r = [];
6022
6018
  let i;
@@ -6058,7 +6054,7 @@ function Tc(e, t) {
6058
6054
  }
6059
6055
  return r.join("");
6060
6056
  }
6061
- const Ic = {
6057
+ const Tc = {
6062
6058
  42: fe,
6063
6059
  43: fe,
6064
6060
  45: fe,
@@ -6115,7 +6111,7 @@ const Ic = {
6115
6111
  attentionMarkers: Ac,
6116
6112
  contentInitial: kc,
6117
6113
  disable: Oc,
6118
- document: Ic,
6114
+ document: Tc,
6119
6115
  flow: jc,
6120
6116
  flowInitial: vc,
6121
6117
  insideSpan: Cc,
@@ -6251,7 +6247,7 @@ function Qc(e) {
6251
6247
  codeTextData: E,
6252
6248
  data: E,
6253
6249
  codeFlowValue: E,
6254
- definition: a(ze),
6250
+ definition: a(Le),
6255
6251
  definitionDestinationString: s,
6256
6252
  definitionLabelString: s,
6257
6253
  definitionTitleString: s,
@@ -6266,7 +6262,7 @@ function Qc(e) {
6266
6262
  label: s,
6267
6263
  link: a(Mt),
6268
6264
  listItem: a(xt),
6269
- listItemValue: T,
6265
+ listItemValue: I,
6270
6266
  listOrdered: a(We, f),
6271
6267
  listUnordered: a(We),
6272
6268
  paragraph: a(ln),
@@ -6333,12 +6329,12 @@ function Qc(e) {
6333
6329
  const n = {};
6334
6330
  return r;
6335
6331
  function r(x) {
6336
- let I = {
6332
+ let T = {
6337
6333
  type: "root",
6338
6334
  children: []
6339
6335
  };
6340
6336
  const O = {
6341
- stack: [I],
6337
+ stack: [T],
6342
6338
  tokenStack: [],
6343
6339
  config: t,
6344
6340
  enter: u,
@@ -6373,7 +6369,7 @@ function Qc(e) {
6373
6369
  const ce = O.tokenStack[O.tokenStack.length - 1];
6374
6370
  (ce[1] || ui).call(O, void 0, ce[0]);
6375
6371
  }
6376
- for (I.position = {
6372
+ for (T.position = {
6377
6373
  start: Se(
6378
6374
  x.length > 0 ? x[0][1].start : {
6379
6375
  line: 1,
@@ -6389,11 +6385,11 @@ function Qc(e) {
6389
6385
  }
6390
6386
  )
6391
6387
  }, K = -1; ++K < t.transforms.length; )
6392
- I = t.transforms[K](I) || I;
6393
- return I;
6388
+ T = t.transforms[K](T) || T;
6389
+ return T;
6394
6390
  }
6395
- function i(x, I, O) {
6396
- let $ = I - 1, K = -1, ce = !1, Ne, ae, Ze, Ge;
6391
+ function i(x, T, O) {
6392
+ let $ = T - 1, K = -1, ce = !1, Ne, ae, Ze, Ge;
6397
6393
  for (; ++$ <= O; ) {
6398
6394
  const ie = x[$];
6399
6395
  if (ie[1].type === "listUnordered" || ie[1].type === "listOrdered" || ie[1].type === "blockQuote" ? (ie[0] === "enter" ? K++ : K--, Ge = void 0) : ie[1].type === "lineEndingBlank" ? ie[0] === "enter" && (Ne && !Ge && !K && !Ze && (Ze = $), Ge = void 0) : ie[1].type === "linePrefix" || ie[1].type === "listItemValue" || ie[1].type === "listItemMarker" || ie[1].type === "listItemPrefix" || ie[1].type === "listItemPrefixWhitespace" || (Ge = void 0), !K && ie[0] === "enter" && ie[1].type === "listItemPrefix" || K === -1 && ie[0] === "exit" && (ie[1].type === "listUnordered" || ie[1].type === "listOrdered")) {
@@ -6422,18 +6418,18 @@ function Qc(e) {
6422
6418
  }, x.splice($, 0, ["enter", Ne, ie[2]]), $++, O++, Ze = void 0, Ge = !0);
6423
6419
  }
6424
6420
  }
6425
- return x[I][1]._spread = ce, O;
6421
+ return x[T][1]._spread = ce, O;
6426
6422
  }
6427
- function o(x, I) {
6428
- n[x] = I;
6423
+ function o(x, T) {
6424
+ n[x] = T;
6429
6425
  }
6430
6426
  function l(x) {
6431
6427
  return n[x];
6432
6428
  }
6433
- function a(x, I) {
6429
+ function a(x, T) {
6434
6430
  return O;
6435
6431
  function O($) {
6436
- u.call(this, x($), $), I && I.call(this, $);
6432
+ u.call(this, x($), $), T && T.call(this, $);
6437
6433
  }
6438
6434
  }
6439
6435
  function s() {
@@ -6442,21 +6438,21 @@ function Qc(e) {
6442
6438
  children: []
6443
6439
  });
6444
6440
  }
6445
- function u(x, I, O) {
6446
- return this.stack[this.stack.length - 1].children.push(x), this.stack.push(x), this.tokenStack.push([I, O]), x.position = {
6447
- start: Se(I.start)
6441
+ function u(x, T, O) {
6442
+ return this.stack[this.stack.length - 1].children.push(x), this.stack.push(x), this.tokenStack.push([T, O]), x.position = {
6443
+ start: Se(T.start)
6448
6444
  }, x;
6449
6445
  }
6450
6446
  function c(x) {
6451
- return I;
6452
- function I(O) {
6447
+ return T;
6448
+ function T(O) {
6453
6449
  x && x.call(this, O), p.call(this, O);
6454
6450
  }
6455
6451
  }
6456
- function p(x, I) {
6452
+ function p(x, T) {
6457
6453
  const O = this.stack.pop(), $ = this.tokenStack.pop();
6458
6454
  if ($)
6459
- $[0].type !== x.type && (I ? I.call(this, x, $[0]) : ($[1] || ui).call(this, x, $[0]));
6455
+ $[0].type !== x.type && (T ? T.call(this, x, $[0]) : ($[1] || ui).call(this, x, $[0]));
6460
6456
  else
6461
6457
  throw new Error(
6462
6458
  "Cannot close `" + x.type + "` (" + ot({
@@ -6472,102 +6468,102 @@ function Qc(e) {
6472
6468
  function f() {
6473
6469
  o("expectingFirstListItemValue", !0);
6474
6470
  }
6475
- function T(x) {
6471
+ function I(x) {
6476
6472
  if (l("expectingFirstListItemValue")) {
6477
- const I = this.stack[this.stack.length - 2];
6478
- I.start = Number.parseInt(this.sliceSerialize(x), 10), o("expectingFirstListItemValue");
6473
+ const T = this.stack[this.stack.length - 2];
6474
+ T.start = Number.parseInt(this.sliceSerialize(x), 10), o("expectingFirstListItemValue");
6479
6475
  }
6480
6476
  }
6481
6477
  function b() {
6482
- const x = this.resume(), I = this.stack[this.stack.length - 1];
6483
- I.lang = x;
6478
+ const x = this.resume(), T = this.stack[this.stack.length - 1];
6479
+ T.lang = x;
6484
6480
  }
6485
6481
  function S() {
6486
- const x = this.resume(), I = this.stack[this.stack.length - 1];
6487
- I.meta = x;
6482
+ const x = this.resume(), T = this.stack[this.stack.length - 1];
6483
+ T.meta = x;
6488
6484
  }
6489
6485
  function w() {
6490
6486
  l("flowCodeInside") || (this.buffer(), o("flowCodeInside", !0));
6491
6487
  }
6492
6488
  function v() {
6493
- const x = this.resume(), I = this.stack[this.stack.length - 1];
6494
- I.value = x.replace(/^(\r?\n|\r)|(\r?\n|\r)$/g, ""), o("flowCodeInside");
6489
+ const x = this.resume(), T = this.stack[this.stack.length - 1];
6490
+ T.value = x.replace(/^(\r?\n|\r)|(\r?\n|\r)$/g, ""), o("flowCodeInside");
6495
6491
  }
6496
6492
  function j() {
6497
- const x = this.resume(), I = this.stack[this.stack.length - 1];
6498
- I.value = x.replace(/(\r?\n|\r)$/g, "");
6493
+ const x = this.resume(), T = this.stack[this.stack.length - 1];
6494
+ T.value = x.replace(/(\r?\n|\r)$/g, "");
6499
6495
  }
6500
6496
  function B(x) {
6501
- const I = this.resume(), O = this.stack[this.stack.length - 1];
6502
- O.label = I, O.identifier = Qe(
6497
+ const T = this.resume(), O = this.stack[this.stack.length - 1];
6498
+ O.label = T, O.identifier = Qe(
6503
6499
  this.sliceSerialize(x)
6504
6500
  ).toLowerCase();
6505
6501
  }
6506
6502
  function _() {
6507
- const x = this.resume(), I = this.stack[this.stack.length - 1];
6508
- I.title = x;
6503
+ const x = this.resume(), T = this.stack[this.stack.length - 1];
6504
+ T.title = x;
6509
6505
  }
6510
6506
  function y() {
6511
- const x = this.resume(), I = this.stack[this.stack.length - 1];
6512
- I.url = x;
6507
+ const x = this.resume(), T = this.stack[this.stack.length - 1];
6508
+ T.url = x;
6513
6509
  }
6514
6510
  function A(x) {
6515
- const I = this.stack[this.stack.length - 1];
6516
- if (!I.depth) {
6511
+ const T = this.stack[this.stack.length - 1];
6512
+ if (!T.depth) {
6517
6513
  const O = this.sliceSerialize(x).length;
6518
- I.depth = O;
6514
+ T.depth = O;
6519
6515
  }
6520
6516
  }
6521
6517
  function U() {
6522
6518
  o("setextHeadingSlurpLineEnding", !0);
6523
6519
  }
6524
6520
  function Q(x) {
6525
- const I = this.stack[this.stack.length - 1];
6526
- I.depth = this.sliceSerialize(x).charCodeAt(0) === 61 ? 1 : 2;
6521
+ const T = this.stack[this.stack.length - 1];
6522
+ T.depth = this.sliceSerialize(x).charCodeAt(0) === 61 ? 1 : 2;
6527
6523
  }
6528
6524
  function q() {
6529
6525
  o("setextHeadingSlurpLineEnding");
6530
6526
  }
6531
6527
  function E(x) {
6532
- const I = this.stack[this.stack.length - 1];
6533
- let O = I.children[I.children.length - 1];
6528
+ const T = this.stack[this.stack.length - 1];
6529
+ let O = T.children[T.children.length - 1];
6534
6530
  (!O || O.type !== "text") && (O = bt(), O.position = {
6535
6531
  start: Se(x.start)
6536
- }, I.children.push(O)), this.stack.push(O);
6532
+ }, T.children.push(O)), this.stack.push(O);
6537
6533
  }
6538
6534
  function M(x) {
6539
- const I = this.stack.pop();
6540
- I.value += this.sliceSerialize(x), I.position.end = Se(x.end);
6535
+ const T = this.stack.pop();
6536
+ T.value += this.sliceSerialize(x), T.position.end = Se(x.end);
6541
6537
  }
6542
6538
  function N(x) {
6543
- const I = this.stack[this.stack.length - 1];
6539
+ const T = this.stack[this.stack.length - 1];
6544
6540
  if (l("atHardBreak")) {
6545
- const O = I.children[I.children.length - 1];
6541
+ const O = T.children[T.children.length - 1];
6546
6542
  O.position.end = Se(x.end), o("atHardBreak");
6547
6543
  return;
6548
6544
  }
6549
- !l("setextHeadingSlurpLineEnding") && t.canContainEols.includes(I.type) && (E.call(this, x), M.call(this, x));
6545
+ !l("setextHeadingSlurpLineEnding") && t.canContainEols.includes(T.type) && (E.call(this, x), M.call(this, x));
6550
6546
  }
6551
6547
  function C() {
6552
6548
  o("atHardBreak", !0);
6553
6549
  }
6554
6550
  function z() {
6555
- const x = this.resume(), I = this.stack[this.stack.length - 1];
6556
- I.value = x;
6551
+ const x = this.resume(), T = this.stack[this.stack.length - 1];
6552
+ T.value = x;
6557
6553
  }
6558
6554
  function F() {
6559
- const x = this.resume(), I = this.stack[this.stack.length - 1];
6560
- I.value = x;
6555
+ const x = this.resume(), T = this.stack[this.stack.length - 1];
6556
+ T.value = x;
6561
6557
  }
6562
6558
  function Y() {
6563
- const x = this.resume(), I = this.stack[this.stack.length - 1];
6564
- I.value = x;
6559
+ const x = this.resume(), T = this.stack[this.stack.length - 1];
6560
+ T.value = x;
6565
6561
  }
6566
6562
  function V() {
6567
6563
  const x = this.stack[this.stack.length - 1];
6568
6564
  if (l("inReference")) {
6569
- const I = l("referenceType") || "shortcut";
6570
- x.type += "Reference", x.referenceType = I, delete x.url, delete x.title;
6565
+ const T = l("referenceType") || "shortcut";
6566
+ x.type += "Reference", x.referenceType = T, delete x.url, delete x.title;
6571
6567
  } else
6572
6568
  delete x.identifier, delete x.label;
6573
6569
  o("referenceType");
@@ -6575,31 +6571,31 @@ function Qc(e) {
6575
6571
  function X() {
6576
6572
  const x = this.stack[this.stack.length - 1];
6577
6573
  if (l("inReference")) {
6578
- const I = l("referenceType") || "shortcut";
6579
- x.type += "Reference", x.referenceType = I, delete x.url, delete x.title;
6574
+ const T = l("referenceType") || "shortcut";
6575
+ x.type += "Reference", x.referenceType = T, delete x.url, delete x.title;
6580
6576
  } else
6581
6577
  delete x.identifier, delete x.label;
6582
6578
  o("referenceType");
6583
6579
  }
6584
6580
  function d(x) {
6585
- const I = this.sliceSerialize(x), O = this.stack[this.stack.length - 2];
6586
- O.label = _c(I), O.identifier = Qe(I).toLowerCase();
6581
+ const T = this.sliceSerialize(x), O = this.stack[this.stack.length - 2];
6582
+ O.label = _c(T), O.identifier = Qe(T).toLowerCase();
6587
6583
  }
6588
6584
  function ne() {
6589
- const x = this.stack[this.stack.length - 1], I = this.resume(), O = this.stack[this.stack.length - 1];
6585
+ const x = this.stack[this.stack.length - 1], T = this.resume(), O = this.stack[this.stack.length - 1];
6590
6586
  if (o("inReference", !0), O.type === "link") {
6591
6587
  const $ = x.children;
6592
6588
  O.children = $;
6593
6589
  } else
6594
- O.alt = I;
6590
+ O.alt = T;
6595
6591
  }
6596
6592
  function le() {
6597
- const x = this.resume(), I = this.stack[this.stack.length - 1];
6598
- I.url = x;
6593
+ const x = this.resume(), T = this.stack[this.stack.length - 1];
6594
+ T.url = x;
6599
6595
  }
6600
6596
  function h() {
6601
- const x = this.resume(), I = this.stack[this.stack.length - 1];
6602
- I.title = x;
6597
+ const x = this.resume(), T = this.stack[this.stack.length - 1];
6598
+ T.title = x;
6603
6599
  }
6604
6600
  function re() {
6605
6601
  o("inReference");
@@ -6608,8 +6604,8 @@ function Qc(e) {
6608
6604
  o("referenceType", "collapsed");
6609
6605
  }
6610
6606
  function W(x) {
6611
- const I = this.resume(), O = this.stack[this.stack.length - 1];
6612
- O.label = I, O.identifier = Qe(
6607
+ const T = this.resume(), O = this.stack[this.stack.length - 1];
6608
+ O.label = T, O.identifier = Qe(
6613
6609
  this.sliceSerialize(x)
6614
6610
  ).toLowerCase(), o("referenceType", "full");
6615
6611
  }
@@ -6617,24 +6613,24 @@ function Qc(e) {
6617
6613
  o("characterReferenceType", x.type);
6618
6614
  }
6619
6615
  function he(x) {
6620
- const I = this.sliceSerialize(x), O = l("characterReferenceType");
6616
+ const T = this.sliceSerialize(x), O = l("characterReferenceType");
6621
6617
  let $;
6622
6618
  O ? ($ = ko(
6623
- I,
6619
+ T,
6624
6620
  O === "characterReferenceMarkerNumeric" ? 10 : 16
6625
- ), o("characterReferenceType")) : $ = Xn(I);
6621
+ ), o("characterReferenceType")) : $ = Xn(T);
6626
6622
  const K = this.stack.pop();
6627
6623
  K.value += $, K.position.end = Se(x.end);
6628
6624
  }
6629
6625
  function ve(x) {
6630
6626
  M.call(this, x);
6631
- const I = this.stack[this.stack.length - 1];
6632
- I.url = this.sliceSerialize(x);
6627
+ const T = this.stack[this.stack.length - 1];
6628
+ T.url = this.sliceSerialize(x);
6633
6629
  }
6634
6630
  function Ee(x) {
6635
6631
  M.call(this, x);
6636
- const I = this.stack[this.stack.length - 1];
6637
- I.url = "mailto:" + this.sliceSerialize(x);
6632
+ const T = this.stack[this.stack.length - 1];
6633
+ T.url = "mailto:" + this.sliceSerialize(x);
6638
6634
  }
6639
6635
  function Ve() {
6640
6636
  return {
@@ -6656,7 +6652,7 @@ function Qc(e) {
6656
6652
  value: ""
6657
6653
  };
6658
6654
  }
6659
- function ze() {
6655
+ function Le() {
6660
6656
  return {
6661
6657
  type: "definition",
6662
6658
  identifier: "",
@@ -7123,8 +7119,8 @@ function fp(e, t, n) {
7123
7119
  for (; ++s < a; ) {
7124
7120
  const p = t.children[s], m = {}, f = l ? l[s] : void 0;
7125
7121
  f && (m.align = f);
7126
- let T = { type: "element", tagName: o, properties: m, children: [] };
7127
- p && (T.children = e.all(p), e.patch(p, T), T = e.applyData(t, T)), u.push(T);
7122
+ let I = { type: "element", tagName: o, properties: m, children: [] };
7123
+ p && (I.children = e.all(p), e.patch(p, I), I = e.applyData(t, I)), u.push(I);
7128
7124
  }
7129
7125
  const c = {
7130
7126
  type: "element",
@@ -7208,12 +7204,12 @@ const yp = {
7208
7204
  tableRow: fp,
7209
7205
  text: gp,
7210
7206
  thematicBreak: mp,
7211
- toml: It,
7212
- yaml: It,
7213
- definition: It,
7214
- footnoteDefinition: It
7207
+ toml: Tt,
7208
+ yaml: Tt,
7209
+ definition: Tt,
7210
+ footnoteDefinition: Tt
7215
7211
  };
7216
- function It() {
7212
+ function Tt() {
7217
7213
  return null;
7218
7214
  }
7219
7215
  const Oo = (
@@ -7278,7 +7274,7 @@ function Ht(e) {
7278
7274
  function wp() {
7279
7275
  return !0;
7280
7276
  }
7281
- const Dp = !0, fi = !1, Np = "skip", Tp = (
7277
+ const Dp = !0, fi = !1, Np = "skip", Ip = (
7282
7278
  /**
7283
7279
  * @type {(
7284
7280
  * (<Tree extends Node, Check extends Test>(tree: Tree, test: Check, visitor: BuildVisitor<Tree, Check>, reverse?: boolean | null | undefined) => void) &
@@ -7312,21 +7308,21 @@ const Dp = !0, fi = !1, Np = "skip", Tp = (
7312
7308
  }
7313
7309
  return p;
7314
7310
  function p() {
7315
- let m = [], f, T, b;
7316
- if ((!t || i(a, s, u[u.length - 1] || null)) && (m = Ip(n(a, u)), m[0] === fi))
7311
+ let m = [], f, I, b;
7312
+ if ((!t || i(a, s, u[u.length - 1] || null)) && (m = Tp(n(a, u)), m[0] === fi))
7317
7313
  return m;
7318
7314
  if (a.children && m[0] !== Np)
7319
- for (T = (r ? a.children.length : -1) + o, b = u.concat(a); T > -1 && T < a.children.length; ) {
7320
- if (f = l(a.children[T], T, b)(), f[0] === fi)
7315
+ for (I = (r ? a.children.length : -1) + o, b = u.concat(a); I > -1 && I < a.children.length; ) {
7316
+ if (f = l(a.children[I], I, b)(), f[0] === fi)
7321
7317
  return f;
7322
- T = typeof f[1] == "number" ? f[1] : T + o;
7318
+ I = typeof f[1] == "number" ? f[1] : I + o;
7323
7319
  }
7324
7320
  return m;
7325
7321
  }
7326
7322
  }
7327
7323
  }
7328
7324
  );
7329
- function Ip(e) {
7325
+ function Tp(e) {
7330
7326
  return Array.isArray(e) ? e : typeof e == "number" ? [Dp, e] : [e];
7331
7327
  }
7332
7328
  const tr = (
@@ -7344,7 +7340,7 @@ const tr = (
7344
7340
  * @returns {void}
7345
7341
  */
7346
7342
  function(e, t, n, r) {
7347
- typeof t == "function" && typeof n != "function" && (r = n, n = t, t = null), Tp(e, t, i, r);
7343
+ typeof t == "function" && typeof n != "function" && (r = n, n = t, t = null), Ip(e, t, i, r);
7348
7344
  function i(o, l) {
7349
7345
  const a = l[l.length - 1];
7350
7346
  return n(
@@ -8854,38 +8850,38 @@ function nf(e, t) {
8854
8850
  ).trim();
8855
8851
  }
8856
8852
  var lr = { exports: {} }, Mi = /\/\*[^*]*\*+([^/*][^*]*\*+)*\//g, rf = /\n/g, of = /^\s*/, lf = /^(\*?[-#/*\\\w]+(\[[0-9a-z_-]+\])?)\s*/, af = /^:\s*/, uf = /^((?:'(?:\\'|.)*?'|"(?:\\"|.)*?"|\([^)]*?\)|[^};])+)/, sf = /^[;\s]*/, cf = /^\s+|\s+$/g, pf = `
8857
- `, xi = "/", bi = "*", Pe = "", ff = "comment", df = "declaration", hf = function(e, t) {
8853
+ `, xi = "/", bi = "*", Fe = "", ff = "comment", df = "declaration", hf = function(e, t) {
8858
8854
  if (typeof e != "string")
8859
8855
  throw new TypeError("First argument must be a string");
8860
8856
  if (!e)
8861
8857
  return [];
8862
8858
  t = t || {};
8863
8859
  var n = 1, r = 1;
8864
- function i(T) {
8865
- var b = T.match(rf);
8860
+ function i(I) {
8861
+ var b = I.match(rf);
8866
8862
  b && (n += b.length);
8867
- var S = T.lastIndexOf(pf);
8868
- r = ~S ? T.length - S : r + T.length;
8863
+ var S = I.lastIndexOf(pf);
8864
+ r = ~S ? I.length - S : r + I.length;
8869
8865
  }
8870
8866
  function o() {
8871
- var T = { line: n, column: r };
8867
+ var I = { line: n, column: r };
8872
8868
  return function(b) {
8873
- return b.position = new l(T), u(), b;
8869
+ return b.position = new l(I), u(), b;
8874
8870
  };
8875
8871
  }
8876
- function l(T) {
8877
- this.start = T, this.end = { line: n, column: r }, this.source = t.source;
8872
+ function l(I) {
8873
+ this.start = I, this.end = { line: n, column: r }, this.source = t.source;
8878
8874
  }
8879
8875
  l.prototype.content = e;
8880
- function a(T) {
8876
+ function a(I) {
8881
8877
  var b = new Error(
8882
- t.source + ":" + n + ":" + r + ": " + T
8878
+ t.source + ":" + n + ":" + r + ": " + I
8883
8879
  );
8884
- if (b.reason = T, b.filename = t.source, b.line = n, b.column = r, b.source = e, !t.silent)
8880
+ if (b.reason = I, b.filename = t.source, b.line = n, b.column = r, b.source = e, !t.silent)
8885
8881
  throw b;
8886
8882
  }
8887
- function s(T) {
8888
- var b = T.exec(e);
8883
+ function s(I) {
8884
+ var b = I.exec(e);
8889
8885
  if (b) {
8890
8886
  var S = b[0];
8891
8887
  return i(S), e = e.slice(S.length), b;
@@ -8894,50 +8890,50 @@ var lr = { exports: {} }, Mi = /\/\*[^*]*\*+([^/*][^*]*\*+)*\//g, rf = /\n/g, of
8894
8890
  function u() {
8895
8891
  s(of);
8896
8892
  }
8897
- function c(T) {
8893
+ function c(I) {
8898
8894
  var b;
8899
- for (T = T || []; b = p(); )
8900
- b !== !1 && T.push(b);
8901
- return T;
8895
+ for (I = I || []; b = p(); )
8896
+ b !== !1 && I.push(b);
8897
+ return I;
8902
8898
  }
8903
8899
  function p() {
8904
- var T = o();
8900
+ var I = o();
8905
8901
  if (!(xi != e.charAt(0) || bi != e.charAt(1))) {
8906
- for (var b = 2; Pe != e.charAt(b) && (bi != e.charAt(b) || xi != e.charAt(b + 1)); )
8902
+ for (var b = 2; Fe != e.charAt(b) && (bi != e.charAt(b) || xi != e.charAt(b + 1)); )
8907
8903
  ++b;
8908
- if (b += 2, Pe === e.charAt(b - 1))
8904
+ if (b += 2, Fe === e.charAt(b - 1))
8909
8905
  return a("End of comment missing");
8910
8906
  var S = e.slice(2, b - 2);
8911
- return r += 2, i(S), e = e.slice(b), r += 2, T({
8907
+ return r += 2, i(S), e = e.slice(b), r += 2, I({
8912
8908
  type: ff,
8913
8909
  comment: S
8914
8910
  });
8915
8911
  }
8916
8912
  }
8917
8913
  function m() {
8918
- var T = o(), b = s(lf);
8914
+ var I = o(), b = s(lf);
8919
8915
  if (b) {
8920
8916
  if (p(), !s(af))
8921
8917
  return a("property missing ':'");
8922
- var S = s(uf), w = T({
8918
+ var S = s(uf), w = I({
8923
8919
  type: df,
8924
- property: wi(b[0].replace(Mi, Pe)),
8925
- value: S ? wi(S[0].replace(Mi, Pe)) : Pe
8920
+ property: wi(b[0].replace(Mi, Fe)),
8921
+ value: S ? wi(S[0].replace(Mi, Fe)) : Fe
8926
8922
  });
8927
8923
  return s(sf), w;
8928
8924
  }
8929
8925
  }
8930
8926
  function f() {
8931
- var T = [];
8932
- c(T);
8927
+ var I = [];
8928
+ c(I);
8933
8929
  for (var b; b = m(); )
8934
- b !== !1 && (T.push(b), c(T));
8935
- return T;
8930
+ b !== !1 && (I.push(b), c(I));
8931
+ return I;
8936
8932
  }
8937
8933
  return u(), f();
8938
8934
  };
8939
8935
  function wi(e) {
8940
- return e ? e.replace(cf, Pe) : Pe;
8936
+ return e ? e.replace(cf, Fe) : Fe;
8941
8937
  }
8942
8938
  var gf = hf;
8943
8939
  function $o(e, t) {
@@ -8971,7 +8967,7 @@ function xf(e, t, n, r) {
8971
8967
  const m = t.position || {
8972
8968
  start: { line: null, column: null, offset: null },
8973
8969
  end: { line: null, column: null, offset: null }
8974
- }, f = i.components && _n.call(i.components, a) ? i.components[a] : a, T = typeof f == "string" || f === ue.Fragment;
8970
+ }, f = i.components && _n.call(i.components, a) ? i.components[a] : a, I = typeof f == "string" || f === ue.Fragment;
8975
8971
  if (!Jp.isValidElementType(f))
8976
8972
  throw new TypeError(
8977
8973
  `Component for name \`${a}\` not defined or is not renderable`
@@ -8984,15 +8980,15 @@ function xf(e, t, n, r) {
8984
8980
  String(s.href || ""),
8985
8981
  t.children,
8986
8982
  typeof s.title == "string" ? s.title : null
8987
- )), !T && a === "code" && r.type === "element" && r.tagName !== "pre" && (s.inline = !0), !T && (a === "h1" || a === "h2" || a === "h3" || a === "h4" || a === "h5" || a === "h6") && (s.level = Number.parseInt(a.charAt(1), 10)), a === "img" && i.transformImageUri && (s.src = i.transformImageUri(
8983
+ )), !I && a === "code" && r.type === "element" && r.tagName !== "pre" && (s.inline = !0), !I && (a === "h1" || a === "h2" || a === "h3" || a === "h4" || a === "h5" || a === "h6") && (s.level = Number.parseInt(a.charAt(1), 10)), a === "img" && i.transformImageUri && (s.src = i.transformImageUri(
8988
8984
  String(s.src || ""),
8989
8985
  String(s.alt || ""),
8990
8986
  typeof s.title == "string" ? s.title : null
8991
- )), !T && a === "li" && r.type === "element") {
8987
+ )), !I && a === "li" && r.type === "element") {
8992
8988
  const b = bf(t);
8993
8989
  s.checked = b && b.properties ? !!b.properties.checked : null, s.index = bn(r, t), s.ordered = r.tagName === "ol";
8994
8990
  }
8995
- return !T && (a === "ol" || a === "ul") && (s.ordered = a === "ol", s.depth = e.listDepth), (a === "td" || a === "th") && (s.align && (s.style || (s.style = {}), s.style.textAlign = s.align, delete s.align), T || (s.isHeader = a === "th")), !T && a === "tr" && r.type === "element" && (s.isHeader = r.tagName === "thead"), i.sourcePos && (s["data-sourcepos"] = Tf(m)), !T && i.rawSourcePos && (s.sourcePosition = t.position), !T && i.includeElementIndex && (s.index = bn(r, t), s.siblingCount = bn(r)), T || (s.node = t), p.length > 0 ? ue.createElement(f, s, p) : ue.createElement(f, s);
8991
+ return !I && (a === "ol" || a === "ul") && (s.ordered = a === "ol", s.depth = e.listDepth), (a === "td" || a === "th") && (s.align && (s.style || (s.style = {}), s.style.textAlign = s.align, delete s.align), I || (s.isHeader = a === "th")), !I && a === "tr" && r.type === "element" && (s.isHeader = r.tagName === "thead"), i.sourcePos && (s["data-sourcepos"] = If(m)), !I && i.rawSourcePos && (s.sourcePosition = t.position), !I && i.includeElementIndex && (s.index = bn(r, t), s.siblingCount = bn(r)), I || (s.node = t), p.length > 0 ? ue.createElement(f, s, p) : ue.createElement(f, s);
8996
8992
  }
8997
8993
  function bf(e) {
8998
8994
  let t = -1;
@@ -9029,7 +9025,7 @@ function Df(e) {
9029
9025
  function Nf(e, t) {
9030
9026
  return t.toUpperCase();
9031
9027
  }
9032
- function Tf(e) {
9028
+ function If(e) {
9033
9029
  return [
9034
9030
  e.start.line,
9035
9031
  ":",
@@ -9040,7 +9036,7 @@ function Tf(e) {
9040
9036
  e.end.column
9041
9037
  ].map(String).join("");
9042
9038
  }
9043
- const Di = {}.hasOwnProperty, If = "https://github.com/remarkjs/react-markdown/blob/main/changelog.md", kt = {
9039
+ const Di = {}.hasOwnProperty, Tf = "https://github.com/remarkjs/react-markdown/blob/main/changelog.md", kt = {
9044
9040
  plugins: { to: "remarkPlugins", id: "change-plugins-to-remarkplugins" },
9045
9041
  renderers: { to: "components", id: "change-renderers-to-components" },
9046
9042
  astPlugins: { id: "remove-buggy-html-in-markdown-parser" },
@@ -9069,7 +9065,7 @@ function Wo(e) {
9069
9065
  if (Di.call(kt, o) && Di.call(e, o)) {
9070
9066
  const l = kt[o];
9071
9067
  console.warn(
9072
- `[react-markdown] Warning: please ${l.to ? `use \`${l.to}\` instead of` : "remove"} \`${o}\` (see <${If}#${l.id}> for more info)`
9068
+ `[react-markdown] Warning: please ${l.to ? `use \`${l.to}\` instead of` : "remove"} \`${o}\` (see <${Tf}#${l.id}> for more info)`
9073
9069
  ), delete kt[o];
9074
9070
  }
9075
9071
  const t = Lu().use(Hc).use(e.remarkPlugins || []).use(Lp, {
@@ -9174,7 +9170,7 @@ function Zo({ message: e, id: t, onFeedbackThumbSelection: n }) {
9174
9170
  onClick: () => n(t, "UP"),
9175
9171
  "aria-label": "I like this response",
9176
9172
  children: /* @__PURE__ */ D.jsx(
9177
- Ae,
9173
+ Oe,
9178
9174
  {
9179
9175
  className: "xpert-chatbot-popup__feedback--btn-up-icon",
9180
9176
  icon: e.feedbackThumbType === "UP" ? "material-symbols:thumb-up" : "material-symbols:thumb-up-outline"
@@ -9191,7 +9187,7 @@ function Zo({ message: e, id: t, onFeedbackThumbSelection: n }) {
9191
9187
  onClick: () => n(t, "DOWN"),
9192
9188
  "aria-label": "I do not like this response",
9193
9189
  children: /* @__PURE__ */ D.jsx(
9194
- Ae,
9190
+ Oe,
9195
9191
  {
9196
9192
  className: "xpert-chatbot-popup__feedback--btn-down-icon",
9197
9193
  icon: e.feedbackThumbType === "DOWN" ? "material-symbols:thumb-down" : "material-symbols:thumb-down-outline"
@@ -9247,30 +9243,38 @@ ar.propTypes = {
9247
9243
  messageRef: g.shape({ current: g.instanceOf(Element) })
9248
9244
  };
9249
9245
  ar.displayName = "AssistantMessageBubble";
9250
- const Ef = ar, ur = ({ configurations: e }) => /* @__PURE__ */ D.jsxs(
9251
- "div",
9252
- {
9253
- role: "alert",
9254
- "aria-live": "assertive",
9255
- className: "xpert-chatbot-popup__conversations_disclaimer--text",
9256
- children: [
9257
- /* @__PURE__ */ D.jsx("span", { children: e.disclaimerText }),
9258
- /* @__PURE__ */ D.jsxs("span", { style: { marginLeft: "0.1875rem" }, children: [
9259
- /* @__PURE__ */ D.jsx(
9260
- "a",
9261
- {
9262
- href: e.privacyPolicyLink,
9263
- target: "_blank",
9264
- rel: "noopener noreferrer",
9265
- className: "xpert-chatbot-popup__conversations_disclaimer--text__link",
9266
- children: "privacy policy"
9267
- }
9268
- ),
9269
- "."
9270
- ] })
9271
- ]
9272
- }
9273
- );
9246
+ const Ef = ar, ur = ({ configurations: e }) => {
9247
+ const t = Ae(null);
9248
+ return ye(() => {
9249
+ var n;
9250
+ (n = t == null ? void 0 : t.current) == null || n.focus();
9251
+ }, []), /* @__PURE__ */ D.jsxs(
9252
+ "div",
9253
+ {
9254
+ ref: t,
9255
+ tabIndex: -1,
9256
+ role: "alert",
9257
+ "aria-live": "assertive",
9258
+ className: "xpert-chatbot-popup__conversations_disclaimer--text",
9259
+ children: [
9260
+ /* @__PURE__ */ D.jsx("span", { children: e.disclaimerText }),
9261
+ /* @__PURE__ */ D.jsxs("span", { style: { marginLeft: "0.1875rem" }, children: [
9262
+ /* @__PURE__ */ D.jsx(
9263
+ "a",
9264
+ {
9265
+ href: e.privacyPolicyLink,
9266
+ target: "_blank",
9267
+ rel: "noopener noreferrer",
9268
+ className: "xpert-chatbot-popup__conversations_disclaimer--text__link",
9269
+ children: "privacy policy"
9270
+ }
9271
+ ),
9272
+ "."
9273
+ ] })
9274
+ ]
9275
+ }
9276
+ );
9277
+ };
9274
9278
  ur.propTypes = {
9275
9279
  configurations: g.shape({
9276
9280
  disclaimerText: g.string.isRequired,
@@ -9358,7 +9362,7 @@ const Of = pr, tn = ({
9358
9362
  configurations: l
9359
9363
  }) => {
9360
9364
  var s;
9361
- const a = Fe(null);
9365
+ const a = Ae(null);
9362
9366
  return ye(() => {
9363
9367
  var u;
9364
9368
  (u = a.current) == null || u.scrollIntoView({
@@ -9561,7 +9565,7 @@ function Ko({
9561
9565
  "aria-label": "Close Xpert dialog",
9562
9566
  type: "button",
9563
9567
  children: /* @__PURE__ */ D.jsx(
9564
- Ae,
9568
+ Oe,
9565
9569
  {
9566
9570
  icon: "material-symbols:close",
9567
9571
  alt: "Close",
@@ -9817,9 +9821,9 @@ function el({ xpertKey: e, submitEventExternal: t, configurations: n }) {
9817
9821
  cookieNamePrefix: p,
9818
9822
  proactiveMessagePrefix: m,
9819
9823
  proactiveMessage: f,
9820
- disableDisclaimerPage: T,
9824
+ disableDisclaimerPage: I,
9821
9825
  conversationHistory: b
9822
- } = i, S = pt(Qf), [, w] = pe(!1), [v, j] = pe(Yf), [B, _] = pe(!1), [y, A] = pe(!1), [U, Q] = pe(!1), [q, E] = pe(""), [M, N] = pe(!1), [C, z] = pe(!1), [F, Y] = pe(!0), [V, X] = pe(!1), [d, ne] = pe(!1), le = Fe(null), h = Fe(null), re = Fe(null), te = De.get(`${p}-test`) === "1", W = at(
9826
+ } = i, S = pt(Qf), [, w] = pe(!1), [v, j] = pe(Yf), [B, _] = pe(!1), [y, A] = pe(!1), [U, Q] = pe(!1), [q, E] = pe(""), [M, N] = pe(!1), [C, z] = pe(!1), [F, Y] = pe(!0), [V, X] = pe(!1), [d, ne] = pe(!1), le = Ae(null), h = Ae(null), re = Ae(null), te = De.get(`${p}-test`) === "1", W = at(
9823
9827
  ({ name: L, payload: x }) => {
9824
9828
  t ? t({ name: L, payload: x }) : re.current.track(
9825
9829
  // TODO: this is untestable - create a custom hook to get submit event function.
@@ -9852,9 +9856,9 @@ function el({ xpertKey: e, submitEventExternal: t, configurations: n }) {
9852
9856
  }
9853
9857
  if (!x.ok)
9854
9858
  throw new Error(`HTTPError: ${x.status} ${x.statusText}`);
9855
- const I = await x.json();
9859
+ const T = await x.json();
9856
9860
  j(
9857
- I.map((O) => ({
9861
+ T.map((O) => ({
9858
9862
  ...O,
9859
9863
  disableFeedback: !0
9860
9864
  }))
@@ -9882,14 +9886,14 @@ function el({ xpertKey: e, submitEventExternal: t, configurations: n }) {
9882
9886
  console.log("Chatbot - unmount"), clearInterval(L), clearTimeout(x);
9883
9887
  };
9884
9888
  }, [u, s]), ye(() => {
9885
- const L = (I) => {
9889
+ const L = (T) => {
9886
9890
  var O, $;
9887
- (O = I == null ? void 0 : I.target) != null && O.href && W({
9891
+ (O = T == null ? void 0 : T.target) != null && O.href && W({
9888
9892
  name: `${s}.bi.xpert.chatbot.popup.chat.message.link.clicked`,
9889
9893
  payload: {
9890
9894
  category: "2u",
9891
9895
  label: "xpert-chatbot",
9892
- link: ($ = I == null ? void 0 : I.target) == null ? void 0 : $.href,
9896
+ link: ($ = T == null ? void 0 : T.target) == null ? void 0 : $.href,
9893
9897
  isTestUser: te
9894
9898
  }
9895
9899
  });
@@ -9936,7 +9940,7 @@ function el({ xpertKey: e, submitEventExternal: t, configurations: n }) {
9936
9940
  }, Ve = ({
9937
9941
  conversationSize: L,
9938
9942
  userInputMessage: x,
9939
- apiResponseMessage: I,
9943
+ apiResponseMessage: T,
9940
9944
  elapsedSeconds: O
9941
9945
  }) => {
9942
9946
  W({
@@ -9947,27 +9951,27 @@ function el({ xpertKey: e, submitEventExternal: t, configurations: n }) {
9947
9951
  isTestUser: te,
9948
9952
  conversationSize: L,
9949
9953
  userInputMessage: x,
9950
- apiResponseMessage: I,
9954
+ apiResponseMessage: T,
9951
9955
  elapsedSeconds: O
9952
9956
  }
9953
9957
  });
9954
9958
  }, ht = (L) => {
9955
- L.key === "Enter" && q.trim() === "" || L.key === "Enter" && !L.shiftKey && (L.preventDefault(), ze(q), N(!0));
9959
+ L.key === "Enter" && q.trim() === "" || L.key === "Enter" && !L.shiftKey && (L.preventDefault(), Le(q), N(!0));
9956
9960
  }, nn = () => {
9957
- ze(q), N(!0);
9958
- }, ze = async (L) => {
9961
+ Le(q), N(!0);
9962
+ }, Le = async (L) => {
9959
9963
  try {
9960
9964
  if (L.trim().length === 0)
9961
9965
  return;
9962
9966
  const x = /* @__PURE__ */ new Date();
9963
9967
  z(!1);
9964
- const I = v.filter((ae) => ae.role === "user").length + 1;
9968
+ const T = v.filter((ae) => ae.role === "user").length + 1;
9965
9969
  W({
9966
9970
  name: `${s}.bi.xpert.chatbot.popup.chat.message.sent`,
9967
9971
  payload: {
9968
9972
  category: "2u",
9969
9973
  label: "xpert-chatbot",
9970
- totalUserInputMessagesSent: I,
9974
+ totalUserInputMessagesSent: T,
9971
9975
  userInputMessage: L,
9972
9976
  isTestUser: te
9973
9977
  }
@@ -10099,9 +10103,9 @@ function el({ xpertKey: e, submitEventExternal: t, configurations: n }) {
10099
10103
  }, xt = (L) => {
10100
10104
  E(L.target.value);
10101
10105
  }, ln = (L) => {
10102
- L.key === "Enter" && q.trim() === "" || L.key === "Enter" && !L.shiftKey && (L.preventDefault(), ze(q));
10106
+ L.key === "Enter" && q.trim() === "" || L.key === "Enter" && !L.shiftKey && (L.preventDefault(), Le(q));
10103
10107
  }, an = (L, x = "") => {
10104
- const I = v.map((O, $) => L === $ ? (W({
10108
+ const T = v.map((O, $) => L === $ ? (W({
10105
10109
  name: `${s}.bi.xpert.chatbot.feedback.thumbs.${x.toLowerCase()}.clicked`,
10106
10110
  payload: {
10107
10111
  category: "2u",
@@ -10115,7 +10119,7 @@ function el({ xpertKey: e, submitEventExternal: t, configurations: n }) {
10115
10119
  ...O,
10116
10120
  feedbackThumbType: x
10117
10121
  }) : O);
10118
- j(I), ne(!1);
10122
+ j(T), ne(!1);
10119
10123
  };
10120
10124
  return (
10121
10125
  // do not remove this class as it's needed to turn off chatbot
@@ -10174,7 +10178,7 @@ function el({ xpertKey: e, submitEventExternal: t, configurations: n }) {
10174
10178
  style: { display: "flex", flexDirection: "column", height: "100%" },
10175
10179
  "aria-label": "XPERT Chatbot Popup",
10176
10180
  role: "dialog",
10177
- children: M || T || v.length > 0 ? /* @__PURE__ */ D.jsxs(D.Fragment, { children: [
10181
+ children: M || I || v.length > 0 ? /* @__PURE__ */ D.jsxs(D.Fragment, { children: [
10178
10182
  /* @__PURE__ */ D.jsx(
10179
10183
  Jo,
10180
10184
  {
@@ -10194,8 +10198,8 @@ function el({ xpertKey: e, submitEventExternal: t, configurations: n }) {
10194
10198
  loading: B,
10195
10199
  isNormalSize: S || F,
10196
10200
  onFeedbackThumbSelection: an,
10197
- onPromptClick: ze,
10198
- showDisclaimerText: T,
10201
+ onPromptClick: Le,
10202
+ showDisclaimerText: I,
10199
10203
  configurations: i
10200
10204
  }
10201
10205
  ),
@@ -10219,7 +10223,7 @@ function el({ xpertKey: e, submitEventExternal: t, configurations: n }) {
10219
10223
  inputRef: h,
10220
10224
  hasError: C,
10221
10225
  userInput: q,
10222
- handleSend: ze,
10226
+ handleSend: Le,
10223
10227
  handleInput: We,
10224
10228
  handleChange: xt,
10225
10229
  handleKeyDown: ln,