@2uinc/frontend-component-xpert-chatbot 1.40.6-beta.7 → 1.40.6-beta.9

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 +1113 -1123
  2. package/package.json +1 -1
@@ -187,8 +187,8 @@ Qn.exports;
187
187
  var Au;
188
188
  function B0() {
189
189
  return Au || (Au = 1, (function(e, t) {
190
- var n = 200, r = "__lodash_hash_undefined__", a = 800, i = 16, u = 9007199254740991, s = "[object Arguments]", l = "[object Array]", c = "[object AsyncFunction]", d = "[object Boolean]", f = "[object Date]", p = "[object Error]", h = "[object Function]", b = "[object GeneratorFunction]", m = "[object Map]", T = "[object Number]", g = "[object Null]", D = "[object Object]", P = "[object Proxy]", X = "[object RegExp]", F = "[object Set]", x = "[object String]", w = "[object Undefined]", V = "[object WeakMap]", q = "[object ArrayBuffer]", te = "[object DataView]", Y = "[object Float32Array]", $ = "[object Float64Array]", k = "[object Int8Array]", I = "[object Int16Array]", L = "[object Int32Array]", B = "[object Uint8Array]", W = "[object Uint8ClampedArray]", H = "[object Uint16Array]", z = "[object Uint32Array]", y = /[\\^$.*+?()[\]{}|]/g, ne = /^\[object .+?Constructor\]$/, ae = /^(?:0|[1-9]\d*)$/, v = {};
191
- v[Y] = v[$] = v[k] = v[I] = v[L] = v[B] = v[W] = v[H] = v[z] = !0, v[s] = v[l] = v[q] = v[d] = v[te] = v[f] = v[p] = v[h] = v[m] = v[T] = v[D] = v[X] = v[F] = v[x] = v[V] = !1;
190
+ var n = 200, r = "__lodash_hash_undefined__", a = 800, i = 16, u = 9007199254740991, s = "[object Arguments]", l = "[object Array]", c = "[object AsyncFunction]", d = "[object Boolean]", f = "[object Date]", p = "[object Error]", h = "[object Function]", b = "[object GeneratorFunction]", m = "[object Map]", T = "[object Number]", g = "[object Null]", D = "[object Object]", P = "[object Proxy]", W = "[object RegExp]", j = "[object Set]", x = "[object String]", k = "[object Undefined]", G = "[object WeakMap]", q = "[object ArrayBuffer]", te = "[object DataView]", Y = "[object Float32Array]", $ = "[object Float64Array]", L = "[object Int8Array]", I = "[object Int16Array]", w = "[object Int32Array]", F = "[object Uint8Array]", V = "[object Uint8ClampedArray]", B = "[object Uint16Array]", z = "[object Uint32Array]", y = /[\\^$.*+?()[\]{}|]/g, ne = /^\[object .+?Constructor\]$/, ae = /^(?:0|[1-9]\d*)$/, v = {};
191
+ v[Y] = v[$] = v[L] = v[I] = v[w] = v[F] = v[V] = v[B] = v[z] = !0, v[s] = v[l] = v[q] = v[d] = v[te] = v[f] = v[p] = v[h] = v[m] = v[T] = v[D] = v[W] = v[j] = v[x] = v[G] = !1;
192
192
  var se = typeof Ar == "object" && Ar && Ar.Object === Object && Ar, _e = typeof self == "object" && self && self.Object === Object && self, pe = se || _e || Function("return this")(), Se = t && !t.nodeType && t, Oe = Se && !0 && e && !e.nodeType && e, ze = Oe && Oe.exports === Se, Ie = ze && se.process, nt = (function() {
193
193
  try {
194
194
  var S = Oe && Oe.require && Oe.require("util").types;
@@ -230,7 +230,7 @@ function B0() {
230
230
  var Qt = Array.prototype, Bn = Function.prototype, ue = Object.prototype, be = pe["__core-js_shared__"], Me = Bn.toString, ye = ue.hasOwnProperty, Ye = (function() {
231
231
  var S = /[^.]+$/.exec(be && be.keys && be.keys.IE_PROTO || "");
232
232
  return S ? "Symbol(src)_1." + S : "";
233
- })(), Fe = ue.toString, Ce = Me.call(Object), U = RegExp(
233
+ })(), Fe = ue.toString, Ce = Me.call(Object), H = RegExp(
234
234
  "^" + Me.call(ye).replace(y, "\\$&").replace(/hasOwnProperty|(function).*?(?=\\\()| for .+?(?=\\\])/g, "$1.*?") + "$"
235
235
  ), K = ze ? pe.Buffer : void 0, ie = pe.Symbol, Ee = pe.Uint8Array;
236
236
  K && K.allocUnsafe;
@@ -403,7 +403,7 @@ function B0() {
403
403
  }
404
404
  var Kd = l0();
405
405
  function yr(S) {
406
- return S == null ? S === void 0 ? w : g : Be && Be in Object(S) ? c0(S) : g0(S);
406
+ return S == null ? S === void 0 ? k : g : Be && Be in Object(S) ? c0(S) : g0(S);
407
407
  }
408
408
  function cu(S) {
409
409
  return Un(S) && yr(S) == s;
@@ -411,7 +411,7 @@ function B0() {
411
411
  function Qd(S) {
412
412
  if (!Jt(S) || p0(S))
413
413
  return !1;
414
- var N = ha(S) ? U : ne;
414
+ var N = ha(S) ? H : ne;
415
415
  return N.test(y0(S));
416
416
  }
417
417
  function Zd(S) {
@@ -1610,14 +1610,14 @@ const Ou = 991, Z0 = () => {
1610
1610
  externalLoadingHistory: n = !1,
1611
1611
  externalStreaming: r = !1
1612
1612
  }) => {
1613
- const [a, i] = le(!1), [u, s] = le(!1), [l, c] = le(!1), [d, f] = le(!0), [p, h] = le(!1), [b, m] = le(!1), [T, g] = le(!1), [D, P] = le(Nt.XPERT), X = Z0(), F = {
1613
+ const [a, i] = le(!1), [u, s] = le(!1), [l, c] = le(!1), [d, f] = le(!0), [p, h] = le(!1), [b, m] = le(!1), [T, g] = le(!1), [D, P] = le(Nt.XPERT), W = Z0(), j = {
1614
1614
  disabledScroll: a,
1615
1615
  externalStreaming: r,
1616
1616
  hasError: u,
1617
1617
  hasNewMessage: l,
1618
1618
  internalStreaming: T,
1619
- isMobile: X,
1620
- isNormalSize: d || X,
1619
+ isMobile: W,
1620
+ isNormalSize: d || W,
1621
1621
  loading: p || t,
1622
1622
  loadingHistory: b || n,
1623
1623
  streaming: T || r,
@@ -1631,7 +1631,7 @@ const Ou = 991, Z0 = () => {
1631
1631
  setStreaming: g,
1632
1632
  setMode: P
1633
1633
  };
1634
- return /* @__PURE__ */ _.jsx(tt.Provider, { value: F, children: e });
1634
+ return /* @__PURE__ */ _.jsx(tt.Provider, { value: j, children: e });
1635
1635
  };
1636
1636
  Ms.propTypes = {
1637
1637
  children: A.element.isRequired,
@@ -1689,7 +1689,7 @@ const $t = Xr({}), ve = {
1689
1689
  onFeedbackSelection: n,
1690
1690
  onMessageSent: r,
1691
1691
  onStreamingStop: a,
1692
- pushXpertMessage: (X) => m((F) => [...F, X]),
1692
+ pushXpertMessage: (W) => m((j) => [...j, W]),
1693
1693
  setConversationId: f,
1694
1694
  setDeleteConversationModal: h,
1695
1695
  setXpertMessages: m,
@@ -1809,8 +1809,8 @@ eyes follow your mouse when you hover near it.`, js = ({
1809
1809
  i.current.querySelectorAll(
1810
1810
  ".xpert_chatbot__animated_graduate__pupil"
1811
1811
  ).forEach((g) => {
1812
- const D = g.getBoundingClientRect(), P = (b.pageX - window.scrollX - D.left) / 30 / 16 + "rem", X = (b.pageY - window.scrollY - D.top) / 30 / 16 + "rem";
1813
- g.style.transform = "translate3d(" + P + "," + X + ", 0rem)";
1812
+ const D = g.getBoundingClientRect(), P = (b.pageX - window.scrollX - D.left) / 30 / 16 + "rem", W = (b.pageY - window.scrollY - D.top) / 30 / 16 + "rem";
1813
+ g.style.transform = "translate3d(" + P + "," + W + ", 0rem)";
1814
1814
  });
1815
1815
  };
1816
1816
  return window.addEventListener("mousemove", h), () => {
@@ -2374,70 +2374,70 @@ var wu = {
2374
2374
  delayInitialFocusTimer: void 0,
2375
2375
  // the most recent KeyboardEvent for the configured nav key (typically [SHIFT+]TAB), if any
2376
2376
  recentNavEvent: void 0
2377
- }, s, l = function(k, I, L) {
2378
- return k && k[I] !== void 0 ? k[I] : i[L || I];
2379
- }, c = function(k, I) {
2380
- var L = typeof I?.composedPath == "function" ? I.composedPath() : void 0;
2381
- return u.containerGroups.findIndex(function(B) {
2382
- var W = B.container, H = B.tabbableNodes;
2383
- return W.contains(k) || L?.includes(W) || H.find(function(z) {
2384
- return z === k;
2377
+ }, s, l = function(L, I, w) {
2378
+ return L && L[I] !== void 0 ? L[I] : i[w || I];
2379
+ }, c = function(L, I) {
2380
+ var w = typeof I?.composedPath == "function" ? I.composedPath() : void 0;
2381
+ return u.containerGroups.findIndex(function(F) {
2382
+ var V = F.container, B = F.tabbableNodes;
2383
+ return V.contains(L) || w?.includes(V) || B.find(function(z) {
2384
+ return z === L;
2385
2385
  });
2386
2386
  });
2387
- }, d = function(k) {
2388
- var I = arguments.length > 1 && arguments[1] !== void 0 ? arguments[1] : {}, L = I.hasFallback, B = L === void 0 ? !1 : L, W = I.params, H = W === void 0 ? [] : W, z = i[k];
2389
- if (typeof z == "function" && (z = z.apply(void 0, vf(H))), z === !0 && (z = void 0), !z) {
2387
+ }, d = function(L) {
2388
+ var I = arguments.length > 1 && arguments[1] !== void 0 ? arguments[1] : {}, w = I.hasFallback, F = w === void 0 ? !1 : w, V = I.params, B = V === void 0 ? [] : V, z = i[L];
2389
+ if (typeof z == "function" && (z = z.apply(void 0, vf(B))), z === !0 && (z = void 0), !z) {
2390
2390
  if (z === void 0 || z === !1)
2391
2391
  return z;
2392
- throw new Error("`".concat(k, "` was specified but was not a node, or did not return a node"));
2392
+ throw new Error("`".concat(L, "` was specified but was not a node, or did not return a node"));
2393
2393
  }
2394
2394
  var y = z;
2395
2395
  if (typeof z == "string") {
2396
2396
  try {
2397
2397
  y = r.querySelector(z);
2398
2398
  } catch (ne) {
2399
- throw new Error("`".concat(k, '` appears to be an invalid selector; error="').concat(ne.message, '"'));
2399
+ throw new Error("`".concat(L, '` appears to be an invalid selector; error="').concat(ne.message, '"'));
2400
2400
  }
2401
- if (!y && !B)
2402
- throw new Error("`".concat(k, "` as selector refers to no known node"));
2401
+ if (!y && !F)
2402
+ throw new Error("`".concat(L, "` as selector refers to no known node"));
2403
2403
  }
2404
2404
  return y;
2405
2405
  }, f = function() {
2406
- var k = d("initialFocus", {
2406
+ var L = d("initialFocus", {
2407
2407
  hasFallback: !0
2408
2408
  });
2409
- if (k === !1)
2409
+ if (L === !1)
2410
2410
  return !1;
2411
- if (k === void 0 || k && !wr(k, i.tabbableOptions))
2411
+ if (L === void 0 || L && !wr(L, i.tabbableOptions))
2412
2412
  if (c(r.activeElement) >= 0)
2413
- k = r.activeElement;
2413
+ L = r.activeElement;
2414
2414
  else {
2415
- var I = u.tabbableGroups[0], L = I && I.firstTabbableNode;
2416
- k = L || d("fallbackFocus");
2415
+ var I = u.tabbableGroups[0], w = I && I.firstTabbableNode;
2416
+ L = w || d("fallbackFocus");
2417
2417
  }
2418
- else k === null && (k = d("fallbackFocus"));
2419
- if (!k)
2418
+ else L === null && (L = d("fallbackFocus"));
2419
+ if (!L)
2420
2420
  throw new Error("Your focus-trap needs to have at least one focusable element");
2421
- return k;
2421
+ return L;
2422
2422
  }, p = function() {
2423
- if (u.containerGroups = u.containers.map(function(k) {
2424
- var I = Ks(k, i.tabbableOptions), L = Qs(k, i.tabbableOptions), B = I.length > 0 ? I[0] : void 0, W = I.length > 0 ? I[I.length - 1] : void 0, H = L.find(function(ne) {
2423
+ if (u.containerGroups = u.containers.map(function(L) {
2424
+ var I = Ks(L, i.tabbableOptions), w = Qs(L, i.tabbableOptions), F = I.length > 0 ? I[0] : void 0, V = I.length > 0 ? I[I.length - 1] : void 0, B = w.find(function(ne) {
2425
2425
  return rn(ne);
2426
- }), z = L.slice().reverse().find(function(ne) {
2426
+ }), z = w.slice().reverse().find(function(ne) {
2427
2427
  return rn(ne);
2428
2428
  }), y = !!I.find(function(ne) {
2429
2429
  return Xt(ne) > 0;
2430
2430
  });
2431
2431
  return {
2432
- container: k,
2432
+ container: L,
2433
2433
  tabbableNodes: I,
2434
- focusableNodes: L,
2434
+ focusableNodes: w,
2435
2435
  /** True if at least one node with positive `tabindex` was found in this container. */
2436
2436
  posTabIndexesFound: y,
2437
2437
  /** First tabbable node in container, __tabindex__ order; `undefined` if none. */
2438
- firstTabbableNode: B,
2438
+ firstTabbableNode: F,
2439
2439
  /** Last tabbable node in container, __tabindex__ order; `undefined` if none. */
2440
- lastTabbableNode: W,
2440
+ lastTabbableNode: V,
2441
2441
  // NOTE: DOM order is NOT NECESSARILY "document position" order, but figuring that out
2442
2442
  // would require more than just https://developer.mozilla.org/en-US/docs/Web/API/Node/compareDocumentPosition
2443
2443
  // because that API doesn't work with Shadow DOM as well as it should (@see
@@ -2446,7 +2446,7 @@ var wu = {
2446
2446
  // "close enough most of the time" alternative for positive tabindexes which should generally
2447
2447
  // be avoided anyway...
2448
2448
  /** First tabbable node in container, __DOM__ order; `undefined` if none. */
2449
- firstDomTabbableNode: H,
2449
+ firstDomTabbableNode: B,
2450
2450
  /** Last tabbable node in container, __DOM__ order; `undefined` if none. */
2451
2451
  lastDomTabbableNode: z,
2452
2452
  /**
@@ -2459,57 +2459,57 @@ var wu = {
2459
2459
  */
2460
2460
  nextTabbableNode: function(ae) {
2461
2461
  var v = arguments.length > 1 && arguments[1] !== void 0 ? arguments[1] : !0, se = I.indexOf(ae);
2462
- return se < 0 ? v ? L.slice(L.indexOf(ae) + 1).find(function(_e) {
2462
+ return se < 0 ? v ? w.slice(w.indexOf(ae) + 1).find(function(_e) {
2463
2463
  return rn(_e);
2464
- }) : L.slice(0, L.indexOf(ae)).reverse().find(function(_e) {
2464
+ }) : w.slice(0, w.indexOf(ae)).reverse().find(function(_e) {
2465
2465
  return rn(_e);
2466
2466
  }) : I[se + (v ? 1 : -1)];
2467
2467
  }
2468
2468
  };
2469
- }), u.tabbableGroups = u.containerGroups.filter(function(k) {
2470
- return k.tabbableNodes.length > 0;
2469
+ }), u.tabbableGroups = u.containerGroups.filter(function(L) {
2470
+ return L.tabbableNodes.length > 0;
2471
2471
  }), u.tabbableGroups.length <= 0 && !d("fallbackFocus"))
2472
2472
  throw new Error("Your focus-trap must have at least one container with at least one tabbable node in it at all times");
2473
- if (u.containerGroups.find(function(k) {
2474
- return k.posTabIndexesFound;
2473
+ if (u.containerGroups.find(function(L) {
2474
+ return L.posTabIndexesFound;
2475
2475
  }) && u.containerGroups.length > 1)
2476
2476
  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.");
2477
- }, h = function(k) {
2478
- var I = k.activeElement;
2477
+ }, h = function(L) {
2478
+ var I = L.activeElement;
2479
2479
  if (I)
2480
2480
  return I.shadowRoot && I.shadowRoot.activeElement !== null ? h(I.shadowRoot) : I;
2481
- }, b = function(k) {
2482
- if (k !== !1 && k !== h(document)) {
2483
- if (!k || !k.focus) {
2481
+ }, b = function(L) {
2482
+ if (L !== !1 && L !== h(document)) {
2483
+ if (!L || !L.focus) {
2484
2484
  b(f());
2485
2485
  return;
2486
2486
  }
2487
- k.focus({
2487
+ L.focus({
2488
2488
  preventScroll: !!i.preventScroll
2489
- }), u.mostRecentlyFocusedNode = k, kf(k) && k.select();
2489
+ }), u.mostRecentlyFocusedNode = L, kf(L) && L.select();
2490
2490
  }
2491
- }, m = function(k) {
2491
+ }, m = function(L) {
2492
2492
  var I = d("setReturnFocus", {
2493
- params: [k]
2493
+ params: [L]
2494
2494
  });
2495
- return I || (I === !1 ? !1 : k);
2496
- }, T = function(k) {
2497
- var I = k.target, L = k.event, B = k.isBackward, W = B === void 0 ? !1 : B;
2498
- I = I || xr(L), p();
2499
- var H = null;
2495
+ return I || (I === !1 ? !1 : L);
2496
+ }, T = function(L) {
2497
+ var I = L.target, w = L.event, F = L.isBackward, V = F === void 0 ? !1 : F;
2498
+ I = I || xr(w), p();
2499
+ var B = null;
2500
2500
  if (u.tabbableGroups.length > 0) {
2501
- var z = c(I, L), y = z >= 0 ? u.containerGroups[z] : void 0;
2501
+ var z = c(I, w), y = z >= 0 ? u.containerGroups[z] : void 0;
2502
2502
  if (z < 0)
2503
- W ? H = u.tabbableGroups[u.tabbableGroups.length - 1].lastTabbableNode : H = u.tabbableGroups[0].firstTabbableNode;
2504
- else if (W) {
2503
+ V ? B = u.tabbableGroups[u.tabbableGroups.length - 1].lastTabbableNode : B = u.tabbableGroups[0].firstTabbableNode;
2504
+ else if (V) {
2505
2505
  var ne = u.tabbableGroups.findIndex(function(Se) {
2506
2506
  var Oe = Se.firstTabbableNode;
2507
2507
  return I === Oe;
2508
2508
  });
2509
2509
  if (ne < 0 && (y.container === I || wr(I, i.tabbableOptions) && !rn(I, i.tabbableOptions) && !y.nextTabbableNode(I, !1)) && (ne = z), ne >= 0) {
2510
2510
  var ae = ne === 0 ? u.tabbableGroups.length - 1 : ne - 1, v = u.tabbableGroups[ae];
2511
- H = Xt(I) >= 0 ? v.lastTabbableNode : v.lastDomTabbableNode;
2512
- } else Jn(L) || (H = y.nextTabbableNode(I, !1));
2511
+ B = Xt(I) >= 0 ? v.lastTabbableNode : v.lastDomTabbableNode;
2512
+ } else Jn(w) || (B = y.nextTabbableNode(I, !1));
2513
2513
  } else {
2514
2514
  var se = u.tabbableGroups.findIndex(function(Se) {
2515
2515
  var Oe = Se.lastTabbableNode;
@@ -2517,16 +2517,16 @@ var wu = {
2517
2517
  });
2518
2518
  if (se < 0 && (y.container === I || wr(I, i.tabbableOptions) && !rn(I, i.tabbableOptions) && !y.nextTabbableNode(I)) && (se = z), se >= 0) {
2519
2519
  var _e = se === u.tabbableGroups.length - 1 ? 0 : se + 1, pe = u.tabbableGroups[_e];
2520
- H = Xt(I) >= 0 ? pe.firstTabbableNode : pe.firstDomTabbableNode;
2521
- } else Jn(L) || (H = y.nextTabbableNode(I));
2520
+ B = Xt(I) >= 0 ? pe.firstTabbableNode : pe.firstDomTabbableNode;
2521
+ } else Jn(w) || (B = y.nextTabbableNode(I));
2522
2522
  }
2523
2523
  } else
2524
- H = d("fallbackFocus");
2525
- return H;
2526
- }, g = function(k) {
2527
- var I = xr(k);
2528
- if (!(c(I, k) >= 0)) {
2529
- if (qn(i.clickOutsideDeactivates, k)) {
2524
+ B = d("fallbackFocus");
2525
+ return B;
2526
+ }, g = function(L) {
2527
+ var I = xr(L);
2528
+ if (!(c(I, L) >= 0)) {
2529
+ if (qn(i.clickOutsideDeactivates, L)) {
2530
2530
  s.deactivate({
2531
2531
  // NOTE: by setting `returnFocus: false`, deactivate() will do nothing,
2532
2532
  // which will result in the outside click setting focus to the node
@@ -2538,56 +2538,56 @@ var wu = {
2538
2538
  });
2539
2539
  return;
2540
2540
  }
2541
- qn(i.allowOutsideClick, k) || k.preventDefault();
2541
+ qn(i.allowOutsideClick, L) || L.preventDefault();
2542
2542
  }
2543
- }, D = function(k) {
2544
- var I = xr(k), L = c(I, k) >= 0;
2545
- if (L || I instanceof Document)
2546
- L && (u.mostRecentlyFocusedNode = I);
2543
+ }, D = function(L) {
2544
+ var I = xr(L), w = c(I, L) >= 0;
2545
+ if (w || I instanceof Document)
2546
+ w && (u.mostRecentlyFocusedNode = I);
2547
2547
  else {
2548
- k.stopImmediatePropagation();
2549
- var B, W = !0;
2548
+ L.stopImmediatePropagation();
2549
+ var F, V = !0;
2550
2550
  if (u.mostRecentlyFocusedNode)
2551
2551
  if (Xt(u.mostRecentlyFocusedNode) > 0) {
2552
- var H = c(u.mostRecentlyFocusedNode), z = u.containerGroups[H].tabbableNodes;
2552
+ var B = c(u.mostRecentlyFocusedNode), z = u.containerGroups[B].tabbableNodes;
2553
2553
  if (z.length > 0) {
2554
2554
  var y = z.findIndex(function(ne) {
2555
2555
  return ne === u.mostRecentlyFocusedNode;
2556
2556
  });
2557
- y >= 0 && (i.isKeyForward(u.recentNavEvent) ? y + 1 < z.length && (B = z[y + 1], W = !1) : y - 1 >= 0 && (B = z[y - 1], W = !1));
2557
+ y >= 0 && (i.isKeyForward(u.recentNavEvent) ? y + 1 < z.length && (F = z[y + 1], V = !1) : y - 1 >= 0 && (F = z[y - 1], V = !1));
2558
2558
  }
2559
2559
  } else
2560
2560
  u.containerGroups.some(function(ne) {
2561
2561
  return ne.tabbableNodes.some(function(ae) {
2562
2562
  return Xt(ae) > 0;
2563
2563
  });
2564
- }) || (W = !1);
2564
+ }) || (V = !1);
2565
2565
  else
2566
- W = !1;
2567
- W && (B = T({
2566
+ V = !1;
2567
+ V && (F = T({
2568
2568
  // move FROM the MRU node, not event-related node (which will be the node that is
2569
2569
  // outside the trap causing the focus escape we're trying to fix)
2570
2570
  target: u.mostRecentlyFocusedNode,
2571
2571
  isBackward: i.isKeyBackward(u.recentNavEvent)
2572
- })), b(B || u.mostRecentlyFocusedNode || f());
2572
+ })), b(F || u.mostRecentlyFocusedNode || f());
2573
2573
  }
2574
2574
  u.recentNavEvent = void 0;
2575
- }, P = function(k) {
2575
+ }, P = function(L) {
2576
2576
  var I = arguments.length > 1 && arguments[1] !== void 0 ? arguments[1] : !1;
2577
- u.recentNavEvent = k;
2578
- var L = T({
2579
- event: k,
2577
+ u.recentNavEvent = L;
2578
+ var w = T({
2579
+ event: L,
2580
2580
  isBackward: I
2581
2581
  });
2582
- L && (Jn(k) && k.preventDefault(), b(L));
2583
- }, X = function(k) {
2584
- (i.isKeyForward(k) || i.isKeyBackward(k)) && P(k, i.isKeyBackward(k));
2585
- }, F = function(k) {
2586
- Lf(k) && qn(i.escapeDeactivates, k) !== !1 && (k.preventDefault(), s.deactivate());
2587
- }, x = function(k) {
2588
- var I = xr(k);
2589
- c(I, k) >= 0 || qn(i.clickOutsideDeactivates, k) || qn(i.allowOutsideClick, k) || (k.preventDefault(), k.stopImmediatePropagation());
2590
- }, w = function() {
2582
+ w && (Jn(L) && L.preventDefault(), b(w));
2583
+ }, W = function(L) {
2584
+ (i.isKeyForward(L) || i.isKeyBackward(L)) && P(L, i.isKeyBackward(L));
2585
+ }, j = function(L) {
2586
+ Lf(L) && qn(i.escapeDeactivates, L) !== !1 && (L.preventDefault(), s.deactivate());
2587
+ }, x = function(L) {
2588
+ var I = xr(L);
2589
+ c(I, L) >= 0 || qn(i.clickOutsideDeactivates, L) || qn(i.allowOutsideClick, L) || (L.preventDefault(), L.stopImmediatePropagation());
2590
+ }, k = function() {
2591
2591
  if (u.active)
2592
2592
  return wu.activateTrap(a, s), u.delayInitialFocusTimer = i.delayInitialFocus ? Ru(function() {
2593
2593
  b(f());
@@ -2600,24 +2600,24 @@ var wu = {
2600
2600
  }), r.addEventListener("click", x, {
2601
2601
  capture: !0,
2602
2602
  passive: !1
2603
- }), r.addEventListener("keydown", X, {
2603
+ }), r.addEventListener("keydown", W, {
2604
2604
  capture: !0,
2605
2605
  passive: !1
2606
- }), r.addEventListener("keydown", F), s;
2607
- }, V = function() {
2606
+ }), r.addEventListener("keydown", j), s;
2607
+ }, G = function() {
2608
2608
  if (u.active)
2609
- return r.removeEventListener("focusin", D, !0), r.removeEventListener("mousedown", g, !0), r.removeEventListener("touchstart", g, !0), r.removeEventListener("click", x, !0), r.removeEventListener("keydown", X, !0), r.removeEventListener("keydown", F), s;
2610
- }, q = function(k) {
2611
- var I = k.some(function(L) {
2612
- var B = Array.from(L.removedNodes);
2613
- return B.some(function(W) {
2614
- return W === u.mostRecentlyFocusedNode;
2609
+ return r.removeEventListener("focusin", D, !0), r.removeEventListener("mousedown", g, !0), r.removeEventListener("touchstart", g, !0), r.removeEventListener("click", x, !0), r.removeEventListener("keydown", W, !0), r.removeEventListener("keydown", j), s;
2610
+ }, q = function(L) {
2611
+ var I = L.some(function(w) {
2612
+ var F = Array.from(w.removedNodes);
2613
+ return F.some(function(V) {
2614
+ return V === u.mostRecentlyFocusedNode;
2615
2615
  });
2616
2616
  });
2617
2617
  I && b(f());
2618
2618
  }, te = typeof window < "u" && "MutationObserver" in window ? new MutationObserver(q) : void 0, Y = function() {
2619
- te && (te.disconnect(), u.active && !u.paused && u.containers.map(function(k) {
2620
- te.observe(k, {
2619
+ te && (te.disconnect(), u.active && !u.paused && u.containers.map(function(L) {
2620
+ te.observe(L, {
2621
2621
  subtree: !0,
2622
2622
  childList: !0
2623
2623
  });
@@ -2630,44 +2630,44 @@ var wu = {
2630
2630
  get paused() {
2631
2631
  return u.paused;
2632
2632
  },
2633
- activate: function(k) {
2633
+ activate: function(L) {
2634
2634
  if (u.active)
2635
2635
  return this;
2636
- var I = l(k, "onActivate"), L = l(k, "onPostActivate"), B = l(k, "checkCanFocusTrap");
2637
- B || p(), u.active = !0, u.paused = !1, u.nodeFocusedBeforeActivation = h(r), I?.();
2638
- var W = function() {
2639
- B && p(), w(), Y(), L?.();
2636
+ var I = l(L, "onActivate"), w = l(L, "onPostActivate"), F = l(L, "checkCanFocusTrap");
2637
+ F || p(), u.active = !0, u.paused = !1, u.nodeFocusedBeforeActivation = h(r), I?.();
2638
+ var V = function() {
2639
+ F && p(), k(), Y(), w?.();
2640
2640
  };
2641
- return B ? (B(u.containers.concat()).then(W, W), this) : (W(), this);
2641
+ return F ? (F(u.containers.concat()).then(V, V), this) : (V(), this);
2642
2642
  },
2643
- deactivate: function(k) {
2643
+ deactivate: function(L) {
2644
2644
  if (!u.active)
2645
2645
  return this;
2646
2646
  var I = Lu({
2647
2647
  onDeactivate: i.onDeactivate,
2648
2648
  onPostDeactivate: i.onPostDeactivate,
2649
2649
  checkCanReturnFocus: i.checkCanReturnFocus
2650
- }, k);
2651
- clearTimeout(u.delayInitialFocusTimer), u.delayInitialFocusTimer = void 0, V(), u.active = !1, u.paused = !1, Y(), wu.deactivateTrap(a, s);
2652
- var L = l(I, "onDeactivate"), B = l(I, "onPostDeactivate"), W = l(I, "checkCanReturnFocus"), H = l(I, "returnFocus", "returnFocusOnDeactivate");
2653
- L?.();
2650
+ }, L);
2651
+ clearTimeout(u.delayInitialFocusTimer), u.delayInitialFocusTimer = void 0, G(), u.active = !1, u.paused = !1, Y(), wu.deactivateTrap(a, s);
2652
+ var w = l(I, "onDeactivate"), F = l(I, "onPostDeactivate"), V = l(I, "checkCanReturnFocus"), B = l(I, "returnFocus", "returnFocusOnDeactivate");
2653
+ w?.();
2654
2654
  var z = function() {
2655
2655
  Ru(function() {
2656
- H && b(m(u.nodeFocusedBeforeActivation)), B?.();
2656
+ B && b(m(u.nodeFocusedBeforeActivation)), F?.();
2657
2657
  });
2658
2658
  };
2659
- return H && W ? (W(m(u.nodeFocusedBeforeActivation)).then(z, z), this) : (z(), this);
2659
+ return B && V ? (V(m(u.nodeFocusedBeforeActivation)).then(z, z), this) : (z(), this);
2660
2660
  },
2661
- pause: function(k) {
2662
- return u.active ? (u.manuallyPaused = !0, this._setPausedState(!0, k)) : this;
2661
+ pause: function(L) {
2662
+ return u.active ? (u.manuallyPaused = !0, this._setPausedState(!0, L)) : this;
2663
2663
  },
2664
- unpause: function(k) {
2665
- return u.active ? (u.manuallyPaused = !1, a[a.length - 1] !== this ? this : this._setPausedState(!1, k)) : this;
2664
+ unpause: function(L) {
2665
+ return u.active ? (u.manuallyPaused = !1, a[a.length - 1] !== this ? this : this._setPausedState(!1, L)) : this;
2666
2666
  },
2667
- updateContainerElements: function(k) {
2668
- var I = [].concat(k).filter(Boolean);
2669
- return u.containers = I.map(function(L) {
2670
- return typeof L == "string" ? r.querySelector(L) : L;
2667
+ updateContainerElements: function(L) {
2668
+ var I = [].concat(L).filter(Boolean);
2669
+ return u.containers = I.map(function(w) {
2670
+ return typeof w == "string" ? r.querySelector(w) : w;
2671
2671
  }), u.active && p(), Y(), this;
2672
2672
  }
2673
2673
  }, Object.defineProperties(s, {
@@ -2677,15 +2677,15 @@ var wu = {
2677
2677
  }
2678
2678
  },
2679
2679
  _setPausedState: {
2680
- value: function(k, I) {
2681
- if (u.paused === k)
2680
+ value: function(L, I) {
2681
+ if (u.paused === L)
2682
2682
  return this;
2683
- if (u.paused = k, k) {
2684
- var L = l(I, "onPause"), B = l(I, "onPostPause");
2685
- L?.(), V(), Y(), B?.();
2683
+ if (u.paused = L, L) {
2684
+ var w = l(I, "onPause"), F = l(I, "onPostPause");
2685
+ w?.(), G(), Y(), F?.();
2686
2686
  } else {
2687
- var W = l(I, "onUnpause"), H = l(I, "onPostUnpause");
2688
- W?.(), p(), w(), Y(), H?.();
2687
+ var V = l(I, "onUnpause"), B = l(I, "onPostUnpause");
2688
+ V?.(), p(), k(), Y(), B?.();
2689
2689
  }
2690
2690
  return this;
2691
2691
  }
@@ -2702,30 +2702,30 @@ function Hf() {
2702
2702
  Du = 1;
2703
2703
  function e(x) {
2704
2704
  "@babel/helpers - typeof";
2705
- return e = typeof Symbol == "function" && typeof Symbol.iterator == "symbol" ? function(w) {
2706
- return typeof w;
2707
- } : function(w) {
2708
- return w && typeof Symbol == "function" && w.constructor === Symbol && w !== Symbol.prototype ? "symbol" : typeof w;
2705
+ return e = typeof Symbol == "function" && typeof Symbol.iterator == "symbol" ? function(k) {
2706
+ return typeof k;
2707
+ } : function(k) {
2708
+ return k && typeof Symbol == "function" && k.constructor === Symbol && k !== Symbol.prototype ? "symbol" : typeof k;
2709
2709
  }, e(x);
2710
2710
  }
2711
- function t(x, w) {
2712
- if (!(x instanceof w)) throw new TypeError("Cannot call a class as a function");
2711
+ function t(x, k) {
2712
+ if (!(x instanceof k)) throw new TypeError("Cannot call a class as a function");
2713
2713
  }
2714
- function n(x, w) {
2715
- for (var V = 0; V < w.length; V++) {
2716
- var q = w[V];
2714
+ function n(x, k) {
2715
+ for (var G = 0; G < k.length; G++) {
2716
+ var q = k[G];
2717
2717
  q.enumerable = q.enumerable || !1, q.configurable = !0, "value" in q && (q.writable = !0), Object.defineProperty(x, p(q.key), q);
2718
2718
  }
2719
2719
  }
2720
- function r(x, w, V) {
2721
- return w && n(x.prototype, w), Object.defineProperty(x, "prototype", { writable: !1 }), x;
2720
+ function r(x, k, G) {
2721
+ return k && n(x.prototype, k), Object.defineProperty(x, "prototype", { writable: !1 }), x;
2722
2722
  }
2723
- function a(x, w, V) {
2724
- return w = l(w), i(x, s() ? Reflect.construct(w, V || [], l(x).constructor) : w.apply(x, V));
2723
+ function a(x, k, G) {
2724
+ return k = l(k), i(x, s() ? Reflect.construct(k, G || [], l(x).constructor) : k.apply(x, G));
2725
2725
  }
2726
- function i(x, w) {
2727
- if (w && (e(w) == "object" || typeof w == "function")) return w;
2728
- if (w !== void 0) throw new TypeError("Derived constructors may only return object or undefined");
2726
+ function i(x, k) {
2727
+ if (k && (e(k) == "object" || typeof k == "function")) return k;
2728
+ if (k !== void 0) throw new TypeError("Derived constructors may only return object or undefined");
2729
2729
  return u(x);
2730
2730
  }
2731
2731
  function u(x) {
@@ -2743,58 +2743,58 @@ function Hf() {
2743
2743
  })();
2744
2744
  }
2745
2745
  function l(x) {
2746
- return l = Object.setPrototypeOf ? Object.getPrototypeOf.bind() : function(w) {
2747
- return w.__proto__ || Object.getPrototypeOf(w);
2746
+ return l = Object.setPrototypeOf ? Object.getPrototypeOf.bind() : function(k) {
2747
+ return k.__proto__ || Object.getPrototypeOf(k);
2748
2748
  }, l(x);
2749
2749
  }
2750
- function c(x, w) {
2751
- if (typeof w != "function" && w !== null) throw new TypeError("Super expression must either be null or a function");
2752
- x.prototype = Object.create(w && w.prototype, { constructor: { value: x, writable: !0, configurable: !0 } }), Object.defineProperty(x, "prototype", { writable: !1 }), w && d(x, w);
2750
+ function c(x, k) {
2751
+ if (typeof k != "function" && k !== null) throw new TypeError("Super expression must either be null or a function");
2752
+ x.prototype = Object.create(k && k.prototype, { constructor: { value: x, writable: !0, configurable: !0 } }), Object.defineProperty(x, "prototype", { writable: !1 }), k && d(x, k);
2753
2753
  }
2754
- function d(x, w) {
2755
- return d = Object.setPrototypeOf ? Object.setPrototypeOf.bind() : function(V, q) {
2756
- return V.__proto__ = q, V;
2757
- }, d(x, w);
2754
+ function d(x, k) {
2755
+ return d = Object.setPrototypeOf ? Object.setPrototypeOf.bind() : function(G, q) {
2756
+ return G.__proto__ = q, G;
2757
+ }, d(x, k);
2758
2758
  }
2759
- function f(x, w, V) {
2760
- return (w = p(w)) in x ? Object.defineProperty(x, w, { value: V, enumerable: !0, configurable: !0, writable: !0 }) : x[w] = V, x;
2759
+ function f(x, k, G) {
2760
+ return (k = p(k)) in x ? Object.defineProperty(x, k, { value: G, enumerable: !0, configurable: !0, writable: !0 }) : x[k] = G, x;
2761
2761
  }
2762
2762
  function p(x) {
2763
- var w = h(x, "string");
2764
- return e(w) == "symbol" ? w : w + "";
2763
+ var k = h(x, "string");
2764
+ return e(k) == "symbol" ? k : k + "";
2765
2765
  }
2766
- function h(x, w) {
2766
+ function h(x, k) {
2767
2767
  if (e(x) != "object" || !x) return x;
2768
- var V = x[Symbol.toPrimitive];
2769
- if (V !== void 0) {
2770
- var q = V.call(x, w);
2768
+ var G = x[Symbol.toPrimitive];
2769
+ if (G !== void 0) {
2770
+ var q = G.call(x, k);
2771
2771
  if (e(q) != "object") return q;
2772
2772
  throw new TypeError("@@toPrimitive must return a primitive value.");
2773
2773
  }
2774
- return (w === "string" ? String : Number)(x);
2774
+ return (k === "string" ? String : Number)(x);
2775
2775
  }
2776
- var b = Ct, m = /* @__PURE__ */ Ds(), T = Ff, g = T.createFocusTrap, D = Bf, P = D.isFocusable, X = /* @__PURE__ */ (function(x) {
2777
- function w(V) {
2776
+ var b = Ct, m = /* @__PURE__ */ Ds(), T = Ff, g = T.createFocusTrap, D = Bf, P = D.isFocusable, W = /* @__PURE__ */ (function(x) {
2777
+ function k(G) {
2778
2778
  var q;
2779
- t(this, w), q = a(this, w, [V]), f(q, "getNodeForOption", function($) {
2780
- var k, I = (k = this.internalOptions[$]) !== null && k !== void 0 ? k : this.originalOptions[$];
2779
+ t(this, k), q = a(this, k, [G]), f(q, "getNodeForOption", function($) {
2780
+ var L, I = (L = this.internalOptions[$]) !== null && L !== void 0 ? L : this.originalOptions[$];
2781
2781
  if (typeof I == "function") {
2782
- for (var L = arguments.length, B = new Array(L > 1 ? L - 1 : 0), W = 1; W < L; W++)
2783
- B[W - 1] = arguments[W];
2784
- I = I.apply(void 0, B);
2782
+ for (var w = arguments.length, F = new Array(w > 1 ? w - 1 : 0), V = 1; V < w; V++)
2783
+ F[V - 1] = arguments[V];
2784
+ I = I.apply(void 0, F);
2785
2785
  }
2786
2786
  if (I === !0 && (I = void 0), !I) {
2787
2787
  if (I === void 0 || I === !1)
2788
2788
  return I;
2789
2789
  throw new Error("`".concat($, "` was specified but was not a node, or did not return a node"));
2790
2790
  }
2791
- var H = I;
2791
+ var B = I;
2792
2792
  if (typeof I == "string") {
2793
2793
  var z;
2794
- if (H = (z = this.getDocument()) === null || z === void 0 ? void 0 : z.querySelector(I), !H)
2794
+ if (B = (z = this.getDocument()) === null || z === void 0 ? void 0 : z.querySelector(I), !B)
2795
2795
  throw new Error("`".concat($, "` as selector refers to no known node"));
2796
2796
  }
2797
- return H;
2797
+ return B;
2798
2798
  }), q.handleDeactivate = q.handleDeactivate.bind(q), q.handlePostDeactivate = q.handlePostDeactivate.bind(q), q.handleClickOutsideDeactivates = q.handleClickOutsideDeactivates.bind(q), q.internalOptions = {
2799
2799
  // We need to hijack the returnFocusOnDeactivate option,
2800
2800
  // because React can move focus into the element before we arrived at
@@ -2825,7 +2825,7 @@ function Hf() {
2825
2825
  // the user's setting, defaulted to false since focus-trap defaults this to false
2826
2826
  clickOutsideDeactivates: !1
2827
2827
  };
2828
- var te = V.focusTrapOptions;
2828
+ var te = G.focusTrapOptions;
2829
2829
  for (var Y in te)
2830
2830
  if (Object.prototype.hasOwnProperty.call(te, Y)) {
2831
2831
  if (Y === "returnFocusOnDeactivate" || Y === "onDeactivate" || Y === "onPostDeactivate" || Y === "checkCanReturnFocus" || Y === "clickOutsideDeactivates") {
@@ -2834,9 +2834,9 @@ function Hf() {
2834
2834
  }
2835
2835
  q.internalOptions[Y] = te[Y];
2836
2836
  }
2837
- return q.outsideClick = null, q.focusTrapElements = V.containerElements || [], q.updatePreviousElement(), q;
2837
+ return q.outsideClick = null, q.focusTrapElements = G.containerElements || [], q.updatePreviousElement(), q;
2838
2838
  }
2839
- return c(w, x), r(w, [{
2839
+ return c(k, x), r(k, [{
2840
2840
  key: "getDocument",
2841
2841
  value: function() {
2842
2842
  return this.props.focusTrapOptions.document || (typeof document < "u" ? document : void 0);
@@ -2892,16 +2892,16 @@ function Hf() {
2892
2892
  key: "handlePostDeactivate",
2893
2893
  value: function() {
2894
2894
  var q = this, te = function() {
2895
- var $ = q.getReturnFocusNode(), k = !!// did the consumer allow it?
2895
+ var $ = q.getReturnFocusNode(), L = !!// did the consumer allow it?
2896
2896
  (q.originalOptions.returnFocusOnDeactivate && // can we actually focus the node?
2897
2897
  $ !== null && $ !== void 0 && $.focus && // was there an outside click that allowed deactivation?
2898
2898
  (!q.outsideClick || // did the consumer allow deactivation when the outside node was clicked?
2899
2899
  q.outsideClick.allowDeactivation && // is the outside node NOT focusable (implying that it did NOT receive focus
2900
2900
  // as a result of the click-through) -- in which case do NOT restore focus
2901
2901
  // to `returnFocusNode` because focus should remain on the outside node
2902
- !P(q.outsideClick.target, q.internalOptions.tabbableOptions))), I = q.internalOptions.preventScroll, L = I === void 0 ? !1 : I;
2903
- k && $.focus({
2904
- preventScroll: L
2902
+ !P(q.outsideClick.target, q.internalOptions.tabbableOptions))), I = q.internalOptions.preventScroll, w = I === void 0 ? !1 : I;
2903
+ L && $.focus({
2904
+ preventScroll: w
2905
2905
  }), q.originalOptions.onPostDeactivate && q.originalOptions.onPostDeactivate.call(null), q.outsideClick = null;
2906
2906
  };
2907
2907
  this.originalOptions.checkCanReturnFocus ? this.originalOptions.checkCanReturnFocus.call(null, this.getReturnFocusNode()).then(te, te) : te();
@@ -2926,12 +2926,12 @@ function Hf() {
2926
2926
  value: function(q) {
2927
2927
  if (this.focusTrap) {
2928
2928
  q.containerElements !== this.props.containerElements && this.focusTrap.updateContainerElements(this.props.containerElements);
2929
- var te = !q.active && this.props.active, Y = q.active && !this.props.active, $ = !q.paused && this.props.paused, k = q.paused && !this.props.paused;
2929
+ var te = !q.active && this.props.active, Y = q.active && !this.props.active, $ = !q.paused && this.props.paused, L = q.paused && !this.props.paused;
2930
2930
  if (te && (this.updatePreviousElement(), this.focusTrap.activate()), Y) {
2931
2931
  this.deactivateTrap();
2932
2932
  return;
2933
2933
  }
2934
- $ && this.focusTrap.pause(), k && this.focusTrap.unpause();
2934
+ $ && this.focusTrap.pause(), L && this.focusTrap.unpause();
2935
2935
  } else
2936
2936
  q.containerElements !== this.props.containerElements && (this.focusTrapElements = this.props.containerElements), this.props.active && (this.updatePreviousElement(), this.setupFocusTrap());
2937
2937
  }
@@ -2948,8 +2948,8 @@ function Hf() {
2948
2948
  if (te.type && te.type === b.Fragment)
2949
2949
  throw new Error("A focus-trap cannot use a Fragment as its child container. Try replacing it with a <div> element.");
2950
2950
  var Y = function(I) {
2951
- var L = q.props.containerElements;
2952
- te && (typeof te.ref == "function" ? te.ref(I) : te.ref && (te.ref.current = I)), q.focusTrapElements = L || [I];
2951
+ var w = q.props.containerElements;
2952
+ te && (typeof te.ref == "function" ? te.ref(I) : te.ref && (te.ref.current = I)), q.focusTrapElements = w || [I];
2953
2953
  }, $ = b.cloneElement(te, {
2954
2954
  ref: Y
2955
2955
  });
@@ -2958,8 +2958,8 @@ function Hf() {
2958
2958
  return null;
2959
2959
  }
2960
2960
  }]);
2961
- })(b.Component), F = typeof Element > "u" ? Function : Element;
2962
- return X.propTypes = {
2961
+ })(b.Component), j = typeof Element > "u" ? Function : Element;
2962
+ return W.propTypes = {
2963
2963
  active: m.bool,
2964
2964
  paused: m.bool,
2965
2965
  focusTrapOptions: m.shape({
@@ -2974,9 +2974,9 @@ function Hf() {
2974
2974
  onDeactivate: m.func,
2975
2975
  onPostDeactivate: m.func,
2976
2976
  checkCanReturnFocus: m.func,
2977
- initialFocus: m.oneOfType([m.instanceOf(F), m.string, m.bool, m.func]),
2977
+ initialFocus: m.oneOfType([m.instanceOf(j), m.string, m.bool, m.func]),
2978
2978
  fallbackFocus: m.oneOfType([
2979
- m.instanceOf(F),
2979
+ m.instanceOf(j),
2980
2980
  m.string,
2981
2981
  // NOTE: does not support `false` as value (or return value from function)
2982
2982
  m.func
@@ -2984,7 +2984,7 @@ function Hf() {
2984
2984
  escapeDeactivates: m.oneOfType([m.bool, m.func]),
2985
2985
  clickOutsideDeactivates: m.oneOfType([m.bool, m.func]),
2986
2986
  returnFocusOnDeactivate: m.bool,
2987
- setReturnFocus: m.oneOfType([m.instanceOf(F), m.string, m.bool, m.func]),
2987
+ setReturnFocus: m.oneOfType([m.instanceOf(j), m.string, m.bool, m.func]),
2988
2988
  allowOutsideClick: m.oneOfType([m.bool, m.func]),
2989
2989
  preventScroll: m.bool,
2990
2990
  tabbableOptions: m.shape({
@@ -2995,23 +2995,23 @@ function Hf() {
2995
2995
  isKeyForward: m.func,
2996
2996
  isKeyBackward: m.func
2997
2997
  }),
2998
- containerElements: m.arrayOf(m.instanceOf(F)),
2998
+ containerElements: m.arrayOf(m.instanceOf(j)),
2999
2999
  // DOM element ONLY
3000
3000
  children: m.oneOfType([
3001
3001
  m.element,
3002
3002
  // React element
3003
- m.instanceOf(F)
3003
+ m.instanceOf(j)
3004
3004
  // DOM element
3005
3005
  ])
3006
3006
  // NOTE: _createFocusTrap is internal, for testing purposes only, so we don't
3007
3007
  // specify it here. It's expected to be set to the function returned from
3008
3008
  // require('focus-trap'), or one with a compatible interface.
3009
- }, X.defaultProps = {
3009
+ }, W.defaultProps = {
3010
3010
  active: !0,
3011
3011
  paused: !1,
3012
3012
  focusTrapOptions: {},
3013
3013
  _createFocusTrap: g
3014
- }, Ca = X, Ca;
3014
+ }, Ca = W, Ca;
3015
3015
  }
3016
3016
  var Uf = Hf();
3017
3017
  const jf = /* @__PURE__ */ Ft(Uf);
@@ -3347,19 +3347,19 @@ function nh(e, t) {
3347
3347
  const T = [], g = m.hFlip, D = m.vFlip;
3348
3348
  let P = m.rotate;
3349
3349
  g ? D ? P += 2 : (T.push("translate(" + (a.width + a.left).toString() + " " + (0 - a.top).toString() + ")"), T.push("scale(-1 1)"), a.top = a.left = 0) : D && (T.push("translate(" + (0 - a.left).toString() + " " + (a.height + a.top).toString() + ")"), T.push("scale(1 -1)"), a.top = a.left = 0);
3350
- let X;
3350
+ let W;
3351
3351
  switch (P < 0 && (P -= Math.floor(P / 4) * 4), P = P % 4, P) {
3352
3352
  case 1:
3353
- X = a.height / 2 + a.top, T.unshift("rotate(90 " + X.toString() + " " + X.toString() + ")");
3353
+ W = a.height / 2 + a.top, T.unshift("rotate(90 " + W.toString() + " " + W.toString() + ")");
3354
3354
  break;
3355
3355
  case 2:
3356
3356
  T.unshift("rotate(180 " + (a.width / 2 + a.left).toString() + " " + (a.height / 2 + a.top).toString() + ")");
3357
3357
  break;
3358
3358
  case 3:
3359
- X = a.width / 2 + a.left, T.unshift("rotate(-90 " + X.toString() + " " + X.toString() + ")");
3359
+ W = a.width / 2 + a.left, T.unshift("rotate(-90 " + W.toString() + " " + W.toString() + ")");
3360
3360
  break;
3361
3361
  }
3362
- P % 2 === 1 && (a.left !== a.top && (X = a.left, a.left = a.top, a.top = X), a.width !== a.height && (X = a.width, a.width = a.height, a.height = X)), T.length && (i = eh(i, '<g transform="' + T.join(" ") + '">', "</g>"));
3362
+ P % 2 === 1 && (a.left !== a.top && (W = a.left, a.left = a.top, a.top = W), a.width !== a.height && (W = a.width, a.width = a.height, a.height = W)), T.length && (i = eh(i, '<g transform="' + T.join(" ") + '">', "</g>"));
3363
3363
  });
3364
3364
  const u = r.width, s = r.height, l = a.width, c = a.height;
3365
3365
  let d, f;
@@ -3619,8 +3619,8 @@ function Ch(e, t, n, r) {
3619
3619
  if (e.random) {
3620
3620
  let x = e.resources.slice(0);
3621
3621
  for (u = []; x.length > 1; ) {
3622
- const w = Math.floor(Math.random() * x.length);
3623
- u.push(x[w]), x = x.slice(0, w).concat(x.slice(w + 1));
3622
+ const k = Math.floor(Math.random() * x.length);
3623
+ u.push(x[k]), x = x.slice(0, k).concat(x.slice(k + 1));
3624
3624
  }
3625
3625
  u = u.concat(x);
3626
3626
  } else u = e.resources.slice(i).concat(e.resources.slice(0, i));
@@ -3635,8 +3635,8 @@ function Ch(e, t, n, r) {
3635
3635
  x.status === "pending" && (x.status = "aborted");
3636
3636
  }), p = [];
3637
3637
  }
3638
- function T(x, w) {
3639
- w && (h = []), typeof x == "function" && h.push(x);
3638
+ function T(x, k) {
3639
+ k && (h = []), typeof x == "function" && h.push(x);
3640
3640
  }
3641
3641
  function g() {
3642
3642
  return {
@@ -3659,8 +3659,8 @@ function Ch(e, t, n, r) {
3659
3659
  x.status === "pending" && (x.status = "aborted");
3660
3660
  }), p = [];
3661
3661
  }
3662
- function X(x, w, V) {
3663
- const q = w !== "success";
3662
+ function W(x, k, G) {
3663
+ const q = k !== "success";
3664
3664
  switch (p = p.filter((te) => te !== x), l) {
3665
3665
  case "pending":
3666
3666
  break;
@@ -3670,12 +3670,12 @@ function Ch(e, t, n, r) {
3670
3670
  default:
3671
3671
  return;
3672
3672
  }
3673
- if (w === "abort") {
3674
- d = V, D();
3673
+ if (k === "abort") {
3674
+ d = G, D();
3675
3675
  return;
3676
3676
  }
3677
3677
  if (q) {
3678
- d = V, p.length || (u.length ? F() : D());
3678
+ d = G, p.length || (u.length ? j() : D());
3679
3679
  return;
3680
3680
  }
3681
3681
  if (b(), P(), !e.random) {
@@ -3683,10 +3683,10 @@ function Ch(e, t, n, r) {
3683
3683
  te !== -1 && te !== e.index && (e.index = te);
3684
3684
  }
3685
3685
  l = "completed", h.forEach((te) => {
3686
- te(V);
3686
+ te(G);
3687
3687
  });
3688
3688
  }
3689
- function F() {
3689
+ function j() {
3690
3690
  if (l !== "pending") return;
3691
3691
  b();
3692
3692
  const x = u.shift();
@@ -3700,16 +3700,16 @@ function Ch(e, t, n, r) {
3700
3700
  D();
3701
3701
  return;
3702
3702
  }
3703
- const w = {
3703
+ const k = {
3704
3704
  status: "pending",
3705
3705
  resource: x,
3706
- callback: (V, q) => {
3707
- X(w, V, q);
3706
+ callback: (G, q) => {
3707
+ W(k, G, q);
3708
3708
  }
3709
3709
  };
3710
- p.push(w), c++, f = setTimeout(F, e.rotate), n(x, t, w.callback);
3710
+ p.push(k), c++, f = setTimeout(j, e.rotate), n(x, t, k.callback);
3711
3711
  }
3712
- return setTimeout(F), g;
3712
+ return setTimeout(j), g;
3713
3713
  }
3714
3714
  function cl(e) {
3715
3715
  const t = {
@@ -4185,103 +4185,93 @@ function Ni({
4185
4185
  inputRef: r,
4186
4186
  handleChange: a
4187
4187
  }) {
4188
- const i = et(!1), { conversationScreen: u, primaryColor: s } = oe($e), { handleStop: l, onStreamingStop: c } = oe($t), {
4189
- hasError: d,
4190
- hasNewMessage: f,
4191
- loading: p,
4192
- loadingHistory: h,
4193
- streaming: b,
4194
- internalStreaming: m,
4195
- externalStreaming: T
4196
- } = oe(tt), [g, D] = le(""), P = dt(
4197
- (V) => {
4198
- V.preventDefault(), D(V.target.value), a && a(V);
4188
+ const i = et(!1), { conversationScreen: u } = oe($e), { handleStop: s, onStreamingStop: l } = oe($t), {
4189
+ hasError: c,
4190
+ hasNewMessage: d,
4191
+ loading: f,
4192
+ loadingHistory: p,
4193
+ streaming: h,
4194
+ internalStreaming: b,
4195
+ externalStreaming: m
4196
+ } = oe(tt), [T, g] = le(""), D = dt(
4197
+ (k) => {
4198
+ k.preventDefault(), g(k.target.value), a && a(k);
4199
4199
  },
4200
- [a, D]
4201
- ), X = () => {
4202
- D(""), r.current && (r.current.style.height = "auto");
4203
- }, F = e || p || h || b;
4200
+ [a, g]
4201
+ ), P = () => {
4202
+ g(""), r.current && (r.current.style.height = "auto");
4203
+ }, W = e || f || p || h;
4204
4204
  Le(() => {
4205
- i.current && !F && r.current?.focus(), i.current = F;
4206
- }, [F, r]), Le(() => {
4207
- (d || f) && r.current?.focus();
4208
- }, [f, d, r]);
4209
- const x = (V) => {
4210
- V.key === "Enter" && g.trim() === "" || V.key === "Enter" && !V.shiftKey && (V.preventDefault(), t(g), X());
4211
- }, w = () => {
4205
+ i.current && !W && r.current?.focus(), i.current = W;
4206
+ }, [W, r]), Le(() => {
4207
+ (c || d) && r.current?.focus();
4208
+ }, [d, c, r]);
4209
+ const j = (k) => {
4210
+ k.key === "Enter" && T.trim() === "" || k.key === "Enter" && !k.shiftKey && (k.preventDefault(), t(T), P());
4211
+ }, x = () => {
4212
4212
  /* istanbul ignore next @preserve */
4213
4213
  r.current && (r.current.style.height = "auto", r.current.style.height = `${Math.min(
4214
4214
  r.current?.scrollHeight,
4215
4215
  120
4216
4216
  )}px`);
4217
4217
  };
4218
- return /* @__PURE__ */ _.jsxs(
4219
- "div",
4220
- {
4221
- className: "xpert-chatbot-popup__input--group",
4222
- style: {
4223
- margin: n,
4224
- border: `2px solid ${s}`,
4225
- borderRadius: "1rem"
4226
- },
4227
- children: [
4228
- /* @__PURE__ */ _.jsx(
4229
- "textarea",
4230
- {
4231
- "data-testid": "ConversationInput",
4232
- disabled: F,
4233
- value: g,
4234
- ref: r,
4235
- onInput: w,
4236
- onChange: P,
4237
- placeholder: "Write a message",
4238
- cols: "5",
4239
- rows: "1",
4240
- maxLength: u?.input?.maxLength ?? 5e3,
4241
- onKeyDown: x,
4242
- style: {
4243
- margin: "0",
4244
- boxSizing: "border-box",
4245
- fontFamily: "inherit",
4246
- fontSize: "1rem",
4247
- // required to avoid IOS mobile scaling when input is focused
4248
- fontWeight: "300",
4249
- lineHeight: "1.56rem",
4250
- minHeight: "3.25rem",
4251
- padding: "12.5px 45px 12.5px 12.5px",
4252
- resize: "none",
4253
- width: "100%",
4254
- border: `2px solid ${s}`
4255
- }
4256
- }
4257
- ),
4258
- T && c || p || m ? /* @__PURE__ */ _.jsx(
4259
- "button",
4260
- {
4261
- "data-testid": "Stop",
4262
- className: "xpert-chatbot-popup__input--stop-btn",
4263
- onClick: (V) => {
4264
- V.preventDefault(), l();
4265
- },
4266
- "aria-label": "Stop streaming",
4267
- children: /* @__PURE__ */ _.jsx(kt, { icon: "material-symbols:stop", style: { fontSize: "1.75rem" } })
4268
- }
4269
- ) : /* @__PURE__ */ _.jsx(
4270
- "button",
4271
- {
4272
- "data-testid": "Send",
4273
- disabled: F,
4274
- className: "xpert-chatbot-popup__input--send-btn",
4275
- onClick: (V) => {
4276
- V.preventDefault(), t(g), X();
4277
- },
4278
- "aria-label": "Send message",
4279
- children: /* @__PURE__ */ _.jsx(kt, { icon: "material-symbols:send", style: { fontSize: "1.75rem" } })
4280
- }
4281
- )
4282
- ]
4283
- }
4284
- );
4218
+ return /* @__PURE__ */ _.jsxs("div", { className: "xpert-chatbot-popup__input--group", style: { margin: n }, children: [
4219
+ /* @__PURE__ */ _.jsx(
4220
+ "textarea",
4221
+ {
4222
+ "data-testid": "ConversationInput",
4223
+ disabled: W,
4224
+ value: T,
4225
+ ref: r,
4226
+ onInput: x,
4227
+ onChange: D,
4228
+ placeholder: "Write a message",
4229
+ cols: "5",
4230
+ rows: "1",
4231
+ maxLength: u?.input?.maxLength ?? 5e3,
4232
+ onKeyDown: j,
4233
+ style: {
4234
+ margin: "0",
4235
+ boxSizing: "border-box",
4236
+ fontFamily: "inherit",
4237
+ fontSize: "1rem",
4238
+ // required to avoid IOS mobile scaling when input is focused
4239
+ fontWeight: "300",
4240
+ lineHeight: "1.56rem",
4241
+ minHeight: "3.25rem",
4242
+ padding: "12.5px 45px 12.5px 12.5px",
4243
+ resize: "none",
4244
+ width: "100%",
4245
+ borderRadius: "1rem",
4246
+ color: "#000000"
4247
+ }
4248
+ }
4249
+ ),
4250
+ m && l || f || b ? /* @__PURE__ */ _.jsx(
4251
+ "button",
4252
+ {
4253
+ "data-testid": "Stop",
4254
+ className: "xpert-chatbot-popup__input--stop-btn",
4255
+ onClick: (k) => {
4256
+ k.preventDefault(), s();
4257
+ },
4258
+ "aria-label": "Stop streaming",
4259
+ children: /* @__PURE__ */ _.jsx(kt, { icon: "material-symbols:stop", style: { fontSize: "1.75rem" } })
4260
+ }
4261
+ ) : /* @__PURE__ */ _.jsx(
4262
+ "button",
4263
+ {
4264
+ "data-testid": "Send",
4265
+ disabled: W,
4266
+ className: "xpert-chatbot-popup__input--send-btn",
4267
+ onClick: (k) => {
4268
+ k.preventDefault(), t(T), P();
4269
+ },
4270
+ "aria-label": "Send message",
4271
+ children: /* @__PURE__ */ _.jsx(kt, { icon: "material-symbols:send", style: { fontSize: "1.75rem" } })
4272
+ }
4273
+ )
4274
+ ] });
4285
4275
  }
4286
4276
  Ni.propTypes = {
4287
4277
  containerStyle: A.shape(),
@@ -4956,45 +4946,45 @@ function bl() {
4956
4946
  function l(m, ...T) {
4957
4947
  let g;
4958
4948
  if (wa("use", r), m != null) if (typeof m == "function")
4959
- F(m, ...T);
4949
+ j(m, ...T);
4960
4950
  else if (typeof m == "object")
4961
- Array.isArray(m) ? X(m) : P(m);
4951
+ Array.isArray(m) ? W(m) : P(m);
4962
4952
  else
4963
4953
  throw new TypeError("Expected usable value, not `" + m + "`");
4964
4954
  return g && (n.settings = Object.assign(n.settings || {}, g)), i;
4965
4955
  function D(x) {
4966
4956
  if (typeof x == "function")
4967
- F(x);
4957
+ j(x);
4968
4958
  else if (typeof x == "object")
4969
4959
  if (Array.isArray(x)) {
4970
- const [w, ...V] = x;
4971
- F(w, ...V);
4960
+ const [k, ...G] = x;
4961
+ j(k, ...G);
4972
4962
  } else
4973
4963
  P(x);
4974
4964
  else
4975
4965
  throw new TypeError("Expected usable value, not `" + x + "`");
4976
4966
  }
4977
4967
  function P(x) {
4978
- X(x.plugins), x.settings && (g = Object.assign(g || {}, x.settings));
4968
+ W(x.plugins), x.settings && (g = Object.assign(g || {}, x.settings));
4979
4969
  }
4980
- function X(x) {
4981
- let w = -1;
4970
+ function W(x) {
4971
+ let k = -1;
4982
4972
  if (x != null) if (Array.isArray(x))
4983
- for (; ++w < x.length; ) {
4984
- const V = x[w];
4985
- D(V);
4973
+ for (; ++k < x.length; ) {
4974
+ const G = x[k];
4975
+ D(G);
4986
4976
  }
4987
4977
  else
4988
4978
  throw new TypeError("Expected a list of plugins, not `" + x + "`");
4989
4979
  }
4990
- function F(x, w) {
4991
- let V = -1, q;
4992
- for (; ++V < t.length; )
4993
- if (t[V][0] === x) {
4994
- q = t[V];
4980
+ function j(x, k) {
4981
+ let G = -1, q;
4982
+ for (; ++G < t.length; )
4983
+ if (t[G][0] === x) {
4984
+ q = t[G];
4995
4985
  break;
4996
4986
  }
4997
- q ? (oi(q[1]) && oi(w) && (w = Ju(!0, q[1], w)), q[1] = w) : t.push([...arguments]);
4987
+ q ? (oi(q[1]) && oi(k) && (k = Ju(!0, q[1], k)), q[1] = k) : t.push([...arguments]);
4998
4988
  }
4999
4989
  }
5000
4990
  function c(m) {
@@ -5011,18 +5001,18 @@ function bl() {
5011
5001
  if (to(m), i.freeze(), !g && typeof T == "function" && (g = T, T = void 0), !g)
5012
5002
  return new Promise(D);
5013
5003
  D(null, g);
5014
- function D(P, X) {
5015
- e.run(m, $n(T), F);
5016
- function F(x, w, V) {
5017
- w = w || m, x ? X(x) : P ? P(w) : g(null, w, V);
5004
+ function D(P, W) {
5005
+ e.run(m, $n(T), j);
5006
+ function j(x, k, G) {
5007
+ k = k || m, x ? W(x) : P ? P(k) : g(null, k, G);
5018
5008
  }
5019
5009
  }
5020
5010
  }
5021
5011
  function p(m, T) {
5022
5012
  let g, D;
5023
5013
  return i.run(m, T, P), no("runSync", "run", D), g;
5024
- function P(X, F) {
5025
- Qu(X), g = F, D = !0;
5014
+ function P(W, j) {
5015
+ Qu(W), g = j, D = !0;
5026
5016
  }
5027
5017
  }
5028
5018
  function h(m, T) {
@@ -5030,17 +5020,17 @@ function bl() {
5030
5020
  return new Promise(g);
5031
5021
  g(null, T);
5032
5022
  function g(D, P) {
5033
- const X = $n(m);
5034
- i.run(i.parse(X), X, (x, w, V) => {
5035
- if (x || !w || !V)
5036
- F(x);
5023
+ const W = $n(m);
5024
+ i.run(i.parse(W), W, (x, k, G) => {
5025
+ if (x || !k || !G)
5026
+ j(x);
5037
5027
  else {
5038
- const q = i.stringify(w, V);
5039
- q == null || (cp(q) ? V.value = q : V.result = q), F(x, V);
5028
+ const q = i.stringify(k, G);
5029
+ q == null || (cp(q) ? G.value = q : G.result = q), j(x, G);
5040
5030
  }
5041
5031
  });
5042
- function F(x, w) {
5043
- x || !w ? P(x) : D ? D(w) : T(null, w);
5032
+ function j(x, k) {
5033
+ x || !k ? P(x) : D ? D(k) : T(null, k);
5044
5034
  }
5045
5035
  }
5046
5036
  }
@@ -5237,9 +5227,9 @@ function yp(e) {
5237
5227
  return s;
5238
5228
  function s(P) {
5239
5229
  if (r < n.length) {
5240
- const X = n[r];
5241
- return t.containerState = X[1], e.attempt(
5242
- X[0].continuation,
5230
+ const W = n[r];
5231
+ return t.containerState = W[1], e.attempt(
5232
+ W[0].continuation,
5243
5233
  l,
5244
5234
  c
5245
5235
  )(P);
@@ -5249,23 +5239,23 @@ function yp(e) {
5249
5239
  function l(P) {
5250
5240
  if (r++, t.containerState._closeFlow) {
5251
5241
  t.containerState._closeFlow = void 0, a && D();
5252
- const X = t.events.length;
5253
- let F = X, x;
5254
- for (; F--; )
5255
- if (t.events[F][0] === "exit" && t.events[F][1].type === "chunkFlow") {
5256
- x = t.events[F][1].end;
5242
+ const W = t.events.length;
5243
+ let j = W, x;
5244
+ for (; j--; )
5245
+ if (t.events[j][0] === "exit" && t.events[j][1].type === "chunkFlow") {
5246
+ x = t.events[j][1].end;
5257
5247
  break;
5258
5248
  }
5259
5249
  g(r);
5260
- let w = X;
5261
- for (; w < t.events.length; )
5262
- t.events[w][1].end = Object.assign({}, x), w++;
5250
+ let k = W;
5251
+ for (; k < t.events.length; )
5252
+ t.events[k][1].end = Object.assign({}, x), k++;
5263
5253
  return Mt(
5264
5254
  t.events,
5265
- F + 1,
5255
+ j + 1,
5266
5256
  0,
5267
- t.events.slice(X)
5268
- ), t.events.length = w, c(P);
5257
+ t.events.slice(W)
5258
+ ), t.events.length = k, c(P);
5269
5259
  }
5270
5260
  return s(P);
5271
5261
  }
@@ -5317,9 +5307,9 @@ function yp(e) {
5317
5307
  }
5318
5308
  return ki(P) ? (e.consume(P), T(e.exit("chunkFlow")), r = 0, t.interrupt = void 0, s) : (e.consume(P), m);
5319
5309
  }
5320
- function T(P, X) {
5321
- const F = t.sliceStream(P);
5322
- if (X && F.push(null), P.previous = i, i && (i.next = P), i = P, a.defineSkip(P.start), a.write(F), t.parser.lazy[P.start.line]) {
5310
+ function T(P, W) {
5311
+ const j = t.sliceStream(P);
5312
+ if (W && j.push(null), P.previous = i, i && (i.next = P), i = P, a.defineSkip(P.start), a.write(j), t.parser.lazy[P.start.line]) {
5323
5313
  let x = a.events.length;
5324
5314
  for (; x--; )
5325
5315
  if (
@@ -5329,31 +5319,31 @@ function yp(e) {
5329
5319
  a.events[x][1].end.offset > u)
5330
5320
  )
5331
5321
  return;
5332
- const w = t.events.length;
5333
- let V = w, q, te;
5334
- for (; V--; )
5335
- if (t.events[V][0] === "exit" && t.events[V][1].type === "chunkFlow") {
5322
+ const k = t.events.length;
5323
+ let G = k, q, te;
5324
+ for (; G--; )
5325
+ if (t.events[G][0] === "exit" && t.events[G][1].type === "chunkFlow") {
5336
5326
  if (q) {
5337
- te = t.events[V][1].end;
5327
+ te = t.events[G][1].end;
5338
5328
  break;
5339
5329
  }
5340
5330
  q = !0;
5341
5331
  }
5342
- for (g(r), x = w; x < t.events.length; )
5332
+ for (g(r), x = k; x < t.events.length; )
5343
5333
  t.events[x][1].end = Object.assign({}, te), x++;
5344
5334
  Mt(
5345
5335
  t.events,
5346
- V + 1,
5336
+ G + 1,
5347
5337
  0,
5348
- t.events.slice(w)
5338
+ t.events.slice(k)
5349
5339
  ), t.events.length = x;
5350
5340
  }
5351
5341
  }
5352
5342
  function g(P) {
5353
- let X = n.length;
5354
- for (; X-- > P; ) {
5355
- const F = n[X];
5356
- t.containerState = F[1], F[0].exit.call(t, e);
5343
+ let W = n.length;
5344
+ for (; W-- > P; ) {
5345
+ const j = n[W];
5346
+ t.containerState = j[1], j[0].exit.call(t, e);
5357
5347
  }
5358
5348
  n.length = P;
5359
5349
  }
@@ -5652,7 +5642,7 @@ const co = {
5652
5642
  };
5653
5643
  function Up(e, t, n) {
5654
5644
  const r = this, a = {
5655
- tokenize: F,
5645
+ tokenize: j,
5656
5646
  partial: !0
5657
5647
  };
5658
5648
  let i = 0, u = 0, s;
@@ -5661,14 +5651,14 @@ function Up(e, t, n) {
5661
5651
  return c(x);
5662
5652
  }
5663
5653
  function c(x) {
5664
- const w = r.events[r.events.length - 1];
5665
- return i = w && w[1].type === "linePrefix" ? w[2].sliceSerialize(w[1], !0).length : 0, s = x, e.enter("codeFenced"), e.enter("codeFencedFence"), e.enter("codeFencedFenceSequence"), d(x);
5654
+ const k = r.events[r.events.length - 1];
5655
+ return i = k && k[1].type === "linePrefix" ? k[2].sliceSerialize(k[1], !0).length : 0, s = x, e.enter("codeFenced"), e.enter("codeFencedFence"), e.enter("codeFencedFenceSequence"), d(x);
5666
5656
  }
5667
5657
  function d(x) {
5668
5658
  return x === s ? (u++, e.consume(x), d) : u < 3 ? n(x) : (e.exit("codeFencedFenceSequence"), ke(x) ? Pe(e, f, "whitespace")(x) : f(x));
5669
5659
  }
5670
5660
  function f(x) {
5671
- return x === null || ge(x) ? (e.exit("codeFencedFence"), r.interrupt ? t(x) : e.check(co, m, X)(x)) : (e.enter("codeFencedFenceInfo"), e.enter("chunkString", {
5661
+ return x === null || ge(x) ? (e.exit("codeFencedFence"), r.interrupt ? t(x) : e.check(co, m, W)(x)) : (e.enter("codeFencedFenceInfo"), e.enter("chunkString", {
5672
5662
  contentType: "string"
5673
5663
  }), p(x));
5674
5664
  }
@@ -5684,7 +5674,7 @@ function Up(e, t, n) {
5684
5674
  return x === null || ge(x) ? (e.exit("chunkString"), e.exit("codeFencedFenceMeta"), f(x)) : x === 96 && x === s ? n(x) : (e.consume(x), b);
5685
5675
  }
5686
5676
  function m(x) {
5687
- return e.attempt(a, X, T)(x);
5677
+ return e.attempt(a, W, T)(x);
5688
5678
  }
5689
5679
  function T(x) {
5690
5680
  return e.enter("lineEnding"), e.consume(x), e.exit("lineEnding"), g;
@@ -5698,36 +5688,36 @@ function Up(e, t, n) {
5698
5688
  )(x) : D(x);
5699
5689
  }
5700
5690
  function D(x) {
5701
- return x === null || ge(x) ? e.check(co, m, X)(x) : (e.enter("codeFlowValue"), P(x));
5691
+ return x === null || ge(x) ? e.check(co, m, W)(x) : (e.enter("codeFlowValue"), P(x));
5702
5692
  }
5703
5693
  function P(x) {
5704
5694
  return x === null || ge(x) ? (e.exit("codeFlowValue"), D(x)) : (e.consume(x), P);
5705
5695
  }
5706
- function X(x) {
5696
+ function W(x) {
5707
5697
  return e.exit("codeFenced"), t(x);
5708
5698
  }
5709
- function F(x, w, V) {
5699
+ function j(x, k, G) {
5710
5700
  let q = 0;
5711
5701
  return te;
5712
- function te(L) {
5713
- return x.enter("lineEnding"), x.consume(L), x.exit("lineEnding"), Y;
5702
+ function te(w) {
5703
+ return x.enter("lineEnding"), x.consume(w), x.exit("lineEnding"), Y;
5714
5704
  }
5715
- function Y(L) {
5716
- return x.enter("codeFencedFence"), ke(L) ? Pe(
5705
+ function Y(w) {
5706
+ return x.enter("codeFencedFence"), ke(w) ? Pe(
5717
5707
  x,
5718
5708
  $,
5719
5709
  "linePrefix",
5720
5710
  r.parser.constructs.disable.null.includes("codeIndented") ? void 0 : 4
5721
- )(L) : $(L);
5711
+ )(w) : $(w);
5722
5712
  }
5723
- function $(L) {
5724
- return L === s ? (x.enter("codeFencedFenceSequence"), k(L)) : V(L);
5713
+ function $(w) {
5714
+ return w === s ? (x.enter("codeFencedFenceSequence"), L(w)) : G(w);
5725
5715
  }
5726
- function k(L) {
5727
- return L === s ? (q++, x.consume(L), k) : q >= u ? (x.exit("codeFencedFenceSequence"), ke(L) ? Pe(x, I, "whitespace")(L) : I(L)) : V(L);
5716
+ function L(w) {
5717
+ return w === s ? (q++, x.consume(w), L) : q >= u ? (x.exit("codeFencedFenceSequence"), ke(w) ? Pe(x, I, "whitespace")(w) : I(w)) : G(w);
5728
5718
  }
5729
- function I(L) {
5730
- return L === null || ge(L) ? (x.exit("codeFencedFence"), w(L)) : V(L);
5719
+ function I(w) {
5720
+ return w === null || ge(w) ? (x.exit("codeFencedFence"), k(w)) : G(w);
5731
5721
  }
5732
5722
  }
5733
5723
  }
@@ -6281,22 +6271,22 @@ function y1(e, t, n) {
6281
6271
  return ke(v) ? (e.consume(v), D) : te(v);
6282
6272
  }
6283
6273
  function P(v) {
6284
- return v === 47 ? (e.consume(v), te) : v === 58 || v === 95 || Pt(v) ? (e.consume(v), X) : ke(v) ? (e.consume(v), P) : te(v);
6274
+ return v === 47 ? (e.consume(v), te) : v === 58 || v === 95 || Pt(v) ? (e.consume(v), W) : ke(v) ? (e.consume(v), P) : te(v);
6285
6275
  }
6286
- function X(v) {
6287
- return v === 45 || v === 46 || v === 58 || v === 95 || It(v) ? (e.consume(v), X) : F(v);
6276
+ function W(v) {
6277
+ return v === 45 || v === 46 || v === 58 || v === 95 || It(v) ? (e.consume(v), W) : j(v);
6288
6278
  }
6289
- function F(v) {
6290
- return v === 61 ? (e.consume(v), x) : ke(v) ? (e.consume(v), F) : P(v);
6279
+ function j(v) {
6280
+ return v === 61 ? (e.consume(v), x) : ke(v) ? (e.consume(v), j) : P(v);
6291
6281
  }
6292
6282
  function x(v) {
6293
- return v === null || v === 60 || v === 61 || v === 62 || v === 96 ? n(v) : v === 34 || v === 39 ? (e.consume(v), l = v, w) : ke(v) ? (e.consume(v), x) : V(v);
6283
+ return v === null || v === 60 || v === 61 || v === 62 || v === 96 ? n(v) : v === 34 || v === 39 ? (e.consume(v), l = v, k) : ke(v) ? (e.consume(v), x) : G(v);
6294
6284
  }
6295
- function w(v) {
6296
- return v === l ? (e.consume(v), l = null, q) : v === null || ge(v) ? n(v) : (e.consume(v), w);
6285
+ function k(v) {
6286
+ return v === l ? (e.consume(v), l = null, q) : v === null || ge(v) ? n(v) : (e.consume(v), k);
6297
6287
  }
6298
- function V(v) {
6299
- return v === null || v === 34 || v === 39 || v === 47 || v === 60 || v === 61 || v === 62 || v === 96 || At(v) ? F(v) : (e.consume(v), V);
6288
+ function G(v) {
6289
+ return v === null || v === 34 || v === 39 || v === 47 || v === 60 || v === 61 || v === 62 || v === 96 || At(v) ? j(v) : (e.consume(v), G);
6300
6290
  }
6301
6291
  function q(v) {
6302
6292
  return v === 47 || v === 62 || ke(v) ? P(v) : n(v);
@@ -6308,13 +6298,13 @@ function y1(e, t, n) {
6308
6298
  return v === null || ge(v) ? $(v) : ke(v) ? (e.consume(v), Y) : n(v);
6309
6299
  }
6310
6300
  function $(v) {
6311
- return v === 45 && a === 2 ? (e.consume(v), B) : v === 60 && a === 1 ? (e.consume(v), W) : v === 62 && a === 4 ? (e.consume(v), ne) : v === 63 && a === 3 ? (e.consume(v), y) : v === 93 && a === 5 ? (e.consume(v), z) : ge(v) && (a === 6 || a === 7) ? (e.exit("htmlFlowData"), e.check(
6301
+ return v === 45 && a === 2 ? (e.consume(v), F) : v === 60 && a === 1 ? (e.consume(v), V) : v === 62 && a === 4 ? (e.consume(v), ne) : v === 63 && a === 3 ? (e.consume(v), y) : v === 93 && a === 5 ? (e.consume(v), z) : ge(v) && (a === 6 || a === 7) ? (e.exit("htmlFlowData"), e.check(
6312
6302
  b1,
6313
6303
  ae,
6314
- k
6315
- )(v)) : v === null || ge(v) ? (e.exit("htmlFlowData"), k(v)) : (e.consume(v), $);
6304
+ L
6305
+ )(v)) : v === null || ge(v) ? (e.exit("htmlFlowData"), L(v)) : (e.consume(v), $);
6316
6306
  }
6317
- function k(v) {
6307
+ function L(v) {
6318
6308
  return e.check(
6319
6309
  E1,
6320
6310
  I,
@@ -6322,23 +6312,23 @@ function y1(e, t, n) {
6322
6312
  )(v);
6323
6313
  }
6324
6314
  function I(v) {
6325
- return e.enter("lineEnding"), e.consume(v), e.exit("lineEnding"), L;
6315
+ return e.enter("lineEnding"), e.consume(v), e.exit("lineEnding"), w;
6326
6316
  }
6327
- function L(v) {
6328
- return v === null || ge(v) ? k(v) : (e.enter("htmlFlowData"), $(v));
6317
+ function w(v) {
6318
+ return v === null || ge(v) ? L(v) : (e.enter("htmlFlowData"), $(v));
6329
6319
  }
6330
- function B(v) {
6320
+ function F(v) {
6331
6321
  return v === 45 ? (e.consume(v), y) : $(v);
6332
6322
  }
6333
- function W(v) {
6334
- return v === 47 ? (e.consume(v), u = "", H) : $(v);
6323
+ function V(v) {
6324
+ return v === 47 ? (e.consume(v), u = "", B) : $(v);
6335
6325
  }
6336
- function H(v) {
6326
+ function B(v) {
6337
6327
  if (v === 62) {
6338
6328
  const se = u.toLowerCase();
6339
6329
  return go.includes(se) ? (e.consume(v), ne) : $(v);
6340
6330
  }
6341
- return Pt(v) && u.length < 8 ? (e.consume(v), u += String.fromCharCode(v), H) : $(v);
6331
+ return Pt(v) && u.length < 8 ? (e.consume(v), u += String.fromCharCode(v), B) : $(v);
6342
6332
  }
6343
6333
  function z(v) {
6344
6334
  return v === 93 ? (e.consume(v), y) : $(v);
@@ -6381,7 +6371,7 @@ function S1(e, t, n) {
6381
6371
  return e.enter("htmlText"), e.enter("htmlTextData"), e.consume(y), l;
6382
6372
  }
6383
6373
  function l(y) {
6384
- return y === 33 ? (e.consume(y), c) : y === 47 ? (e.consume(y), F) : y === 63 ? (e.consume(y), P) : Pt(y) ? (e.consume(y), V) : n(y);
6374
+ return y === 33 ? (e.consume(y), c) : y === 47 ? (e.consume(y), j) : y === 63 ? (e.consume(y), P) : Pt(y) ? (e.consume(y), G) : n(y);
6385
6375
  }
6386
6376
  function c(y) {
6387
6377
  return y === 45 ? (e.consume(y), d) : y === 91 ? (e.consume(y), i = 0, b) : Pt(y) ? (e.consume(y), D) : n(y);
@@ -6390,76 +6380,76 @@ function S1(e, t, n) {
6390
6380
  return y === 45 ? (e.consume(y), h) : n(y);
6391
6381
  }
6392
6382
  function f(y) {
6393
- return y === null ? n(y) : y === 45 ? (e.consume(y), p) : ge(y) ? (u = f, W(y)) : (e.consume(y), f);
6383
+ return y === null ? n(y) : y === 45 ? (e.consume(y), p) : ge(y) ? (u = f, V(y)) : (e.consume(y), f);
6394
6384
  }
6395
6385
  function p(y) {
6396
6386
  return y === 45 ? (e.consume(y), h) : f(y);
6397
6387
  }
6398
6388
  function h(y) {
6399
- return y === 62 ? B(y) : y === 45 ? p(y) : f(y);
6389
+ return y === 62 ? F(y) : y === 45 ? p(y) : f(y);
6400
6390
  }
6401
6391
  function b(y) {
6402
6392
  const ne = "CDATA[";
6403
6393
  return y === ne.charCodeAt(i++) ? (e.consume(y), i === ne.length ? m : b) : n(y);
6404
6394
  }
6405
6395
  function m(y) {
6406
- return y === null ? n(y) : y === 93 ? (e.consume(y), T) : ge(y) ? (u = m, W(y)) : (e.consume(y), m);
6396
+ return y === null ? n(y) : y === 93 ? (e.consume(y), T) : ge(y) ? (u = m, V(y)) : (e.consume(y), m);
6407
6397
  }
6408
6398
  function T(y) {
6409
6399
  return y === 93 ? (e.consume(y), g) : m(y);
6410
6400
  }
6411
6401
  function g(y) {
6412
- return y === 62 ? B(y) : y === 93 ? (e.consume(y), g) : m(y);
6402
+ return y === 62 ? F(y) : y === 93 ? (e.consume(y), g) : m(y);
6413
6403
  }
6414
6404
  function D(y) {
6415
- return y === null || y === 62 ? B(y) : ge(y) ? (u = D, W(y)) : (e.consume(y), D);
6405
+ return y === null || y === 62 ? F(y) : ge(y) ? (u = D, V(y)) : (e.consume(y), D);
6416
6406
  }
6417
6407
  function P(y) {
6418
- return y === null ? n(y) : y === 63 ? (e.consume(y), X) : ge(y) ? (u = P, W(y)) : (e.consume(y), P);
6408
+ return y === null ? n(y) : y === 63 ? (e.consume(y), W) : ge(y) ? (u = P, V(y)) : (e.consume(y), P);
6419
6409
  }
6420
- function X(y) {
6421
- return y === 62 ? B(y) : P(y);
6410
+ function W(y) {
6411
+ return y === 62 ? F(y) : P(y);
6422
6412
  }
6423
- function F(y) {
6413
+ function j(y) {
6424
6414
  return Pt(y) ? (e.consume(y), x) : n(y);
6425
6415
  }
6426
6416
  function x(y) {
6427
- return y === 45 || It(y) ? (e.consume(y), x) : w(y);
6417
+ return y === 45 || It(y) ? (e.consume(y), x) : k(y);
6428
6418
  }
6429
- function w(y) {
6430
- return ge(y) ? (u = w, W(y)) : ke(y) ? (e.consume(y), w) : B(y);
6419
+ function k(y) {
6420
+ return ge(y) ? (u = k, V(y)) : ke(y) ? (e.consume(y), k) : F(y);
6431
6421
  }
6432
- function V(y) {
6433
- return y === 45 || It(y) ? (e.consume(y), V) : y === 47 || y === 62 || At(y) ? q(y) : n(y);
6422
+ function G(y) {
6423
+ return y === 45 || It(y) ? (e.consume(y), G) : y === 47 || y === 62 || At(y) ? q(y) : n(y);
6434
6424
  }
6435
6425
  function q(y) {
6436
- return y === 47 ? (e.consume(y), B) : y === 58 || y === 95 || Pt(y) ? (e.consume(y), te) : ge(y) ? (u = q, W(y)) : ke(y) ? (e.consume(y), q) : B(y);
6426
+ return y === 47 ? (e.consume(y), F) : y === 58 || y === 95 || Pt(y) ? (e.consume(y), te) : ge(y) ? (u = q, V(y)) : ke(y) ? (e.consume(y), q) : F(y);
6437
6427
  }
6438
6428
  function te(y) {
6439
6429
  return y === 45 || y === 46 || y === 58 || y === 95 || It(y) ? (e.consume(y), te) : Y(y);
6440
6430
  }
6441
6431
  function Y(y) {
6442
- return y === 61 ? (e.consume(y), $) : ge(y) ? (u = Y, W(y)) : ke(y) ? (e.consume(y), Y) : q(y);
6432
+ return y === 61 ? (e.consume(y), $) : ge(y) ? (u = Y, V(y)) : ke(y) ? (e.consume(y), Y) : q(y);
6443
6433
  }
6444
6434
  function $(y) {
6445
- return y === null || y === 60 || y === 61 || y === 62 || y === 96 ? n(y) : y === 34 || y === 39 ? (e.consume(y), a = y, k) : ge(y) ? (u = $, W(y)) : ke(y) ? (e.consume(y), $) : (e.consume(y), I);
6435
+ return y === null || y === 60 || y === 61 || y === 62 || y === 96 ? n(y) : y === 34 || y === 39 ? (e.consume(y), a = y, L) : ge(y) ? (u = $, V(y)) : ke(y) ? (e.consume(y), $) : (e.consume(y), I);
6446
6436
  }
6447
- function k(y) {
6448
- return y === a ? (e.consume(y), a = void 0, L) : y === null ? n(y) : ge(y) ? (u = k, W(y)) : (e.consume(y), k);
6437
+ function L(y) {
6438
+ return y === a ? (e.consume(y), a = void 0, w) : y === null ? n(y) : ge(y) ? (u = L, V(y)) : (e.consume(y), L);
6449
6439
  }
6450
6440
  function I(y) {
6451
6441
  return y === null || y === 34 || y === 39 || y === 60 || y === 61 || y === 96 ? n(y) : y === 47 || y === 62 || At(y) ? q(y) : (e.consume(y), I);
6452
6442
  }
6453
- function L(y) {
6443
+ function w(y) {
6454
6444
  return y === 47 || y === 62 || At(y) ? q(y) : n(y);
6455
6445
  }
6456
- function B(y) {
6446
+ function F(y) {
6457
6447
  return y === 62 ? (e.consume(y), e.exit("htmlTextData"), e.exit("htmlText"), t) : n(y);
6458
6448
  }
6459
- function W(y) {
6460
- return e.exit("htmlTextData"), e.enter("lineEnding"), e.consume(y), e.exit("lineEnding"), H;
6449
+ function V(y) {
6450
+ return e.exit("htmlTextData"), e.enter("lineEnding"), e.consume(y), e.exit("lineEnding"), B;
6461
6451
  }
6462
- function H(y) {
6452
+ function B(y) {
6463
6453
  return ke(y) ? Pe(
6464
6454
  e,
6465
6455
  z,
@@ -7021,10 +7011,10 @@ function tm(e, t, n) {
7021
7011
  const l = {
7022
7012
  consume: D,
7023
7013
  enter: P,
7024
- exit: X,
7025
- attempt: w(F),
7026
- check: w(x),
7027
- interrupt: w(x, {
7014
+ exit: W,
7015
+ attempt: k(j),
7016
+ check: k(x),
7017
+ interrupt: k(x, {
7028
7018
  interrupt: !0
7029
7019
  })
7030
7020
  }, c = {
@@ -7042,7 +7032,7 @@ function tm(e, t, n) {
7042
7032
  let d = t.tokenize.call(c, l);
7043
7033
  return t.resolveAll && i.push(t), c;
7044
7034
  function f(Y) {
7045
- return u = yt(u, Y), T(), u[u.length - 1] !== null ? [] : (V(t, 0), c.events = Li(i, c.events, c), c.events);
7035
+ return u = yt(u, Y), T(), u[u.length - 1] !== null ? [] : (G(t, 0), c.events = Li(i, c.events, c), c.events);
7046
7036
  }
7047
7037
  function p(Y, $) {
7048
7038
  return rm(h(Y), $);
@@ -7051,13 +7041,13 @@ function tm(e, t, n) {
7051
7041
  return nm(u, Y);
7052
7042
  }
7053
7043
  function b() {
7054
- const { line: Y, column: $, offset: k, _index: I, _bufferIndex: L } = r;
7044
+ const { line: Y, column: $, offset: L, _index: I, _bufferIndex: w } = r;
7055
7045
  return {
7056
7046
  line: Y,
7057
7047
  column: $,
7058
- offset: k,
7048
+ offset: L,
7059
7049
  _index: I,
7060
- _bufferIndex: L
7050
+ _bufferIndex: w
7061
7051
  };
7062
7052
  }
7063
7053
  function m(Y) {
@@ -7081,23 +7071,23 @@ function tm(e, t, n) {
7081
7071
  ki(Y) ? (r.line++, r.column = 1, r.offset += Y === -3 ? 2 : 1, te()) : Y !== -1 && (r.column++, r.offset++), r._bufferIndex < 0 ? r._index++ : (r._bufferIndex++, r._bufferIndex === u[r._index].length && (r._bufferIndex = -1, r._index++)), c.previous = Y;
7082
7072
  }
7083
7073
  function P(Y, $) {
7084
- const k = $ || {};
7085
- return k.type = Y, k.start = b(), c.events.push(["enter", k, c]), s.push(k), k;
7074
+ const L = $ || {};
7075
+ return L.type = Y, L.start = b(), c.events.push(["enter", L, c]), s.push(L), L;
7086
7076
  }
7087
- function X(Y) {
7077
+ function W(Y) {
7088
7078
  const $ = s.pop();
7089
7079
  return $.end = b(), c.events.push(["exit", $, c]), $;
7090
7080
  }
7091
- function F(Y, $) {
7092
- V(Y, $.from);
7081
+ function j(Y, $) {
7082
+ G(Y, $.from);
7093
7083
  }
7094
7084
  function x(Y, $) {
7095
7085
  $.restore();
7096
7086
  }
7097
- function w(Y, $) {
7098
- return k;
7099
- function k(I, L, B) {
7100
- let W, H, z, y;
7087
+ function k(Y, $) {
7088
+ return L;
7089
+ function L(I, w, F) {
7090
+ let V, B, z, y;
7101
7091
  return Array.isArray(I) ? ae(I) : "tokenize" in I ? (
7102
7092
  // @ts-expect-error Looks like a construct.
7103
7093
  ae([I])
@@ -7115,7 +7105,7 @@ function tm(e, t, n) {
7115
7105
  }
7116
7106
  }
7117
7107
  function ae(pe) {
7118
- return W = pe, H = 0, pe.length === 0 ? B : v(pe[H]);
7108
+ return V = pe, B = 0, pe.length === 0 ? F : v(pe[B]);
7119
7109
  }
7120
7110
  function v(pe) {
7121
7111
  return Se;
@@ -7132,14 +7122,14 @@ function tm(e, t, n) {
7132
7122
  }
7133
7123
  }
7134
7124
  function se(pe) {
7135
- return Y(z, y), L;
7125
+ return Y(z, y), w;
7136
7126
  }
7137
7127
  function _e(pe) {
7138
- return y.restore(), ++H < W.length ? v(W[H]) : B;
7128
+ return y.restore(), ++B < V.length ? v(V[B]) : F;
7139
7129
  }
7140
7130
  }
7141
7131
  }
7142
- function V(Y, $) {
7132
+ function G(Y, $) {
7143
7133
  Y.resolveAll && !i.includes(Y) && i.push(Y), Y.resolve && Mt(
7144
7134
  c.events,
7145
7135
  $,
@@ -7148,13 +7138,13 @@ function tm(e, t, n) {
7148
7138
  ), Y.resolveTo && (c.events = Y.resolveTo(c.events, c));
7149
7139
  }
7150
7140
  function q() {
7151
- const Y = b(), $ = c.previous, k = c.currentConstruct, I = c.events.length, L = Array.from(s);
7141
+ const Y = b(), $ = c.previous, L = c.currentConstruct, I = c.events.length, w = Array.from(s);
7152
7142
  return {
7153
- restore: B,
7143
+ restore: F,
7154
7144
  from: I
7155
7145
  };
7156
- function B() {
7157
- r = Y, c.previous = $, c.currentConstruct = k, c.events.length = I, s = L, te();
7146
+ function F() {
7147
+ r = Y, c.previous = $, c.currentConstruct = L, c.events.length = I, s = w, te();
7158
7148
  }
7159
7149
  }
7160
7150
  function te() {
@@ -7437,7 +7427,7 @@ function _m(e) {
7437
7427
  },
7438
7428
  exit: {
7439
7429
  atxHeading: d(),
7440
- atxHeadingSequence: w,
7430
+ atxHeadingSequence: k,
7441
7431
  autolink: d(),
7442
7432
  autolinkEmail: Ie,
7443
7433
  autolinkProtocol: ze,
@@ -7452,25 +7442,25 @@ function _m(e) {
7452
7442
  codeFencedFenceMeta: T,
7453
7443
  codeFlowValue: $,
7454
7444
  codeIndented: d(P),
7455
- codeText: d(W),
7445
+ codeText: d(V),
7456
7446
  codeTextData: $,
7457
7447
  data: $,
7458
7448
  definition: d(),
7459
7449
  definitionDestinationString: x,
7460
- definitionLabelString: X,
7461
- definitionTitleString: F,
7450
+ definitionLabelString: W,
7451
+ definitionTitleString: j,
7462
7452
  emphasis: d(),
7463
7453
  hardBreakEscape: d(I),
7464
7454
  hardBreakTrailing: d(I),
7465
- htmlFlow: d(L),
7455
+ htmlFlow: d(w),
7466
7456
  htmlFlowData: $,
7467
- htmlText: d(B),
7457
+ htmlText: d(F),
7468
7458
  htmlTextData: $,
7469
7459
  image: d(z),
7470
7460
  label: ne,
7471
7461
  labelText: y,
7472
- lineEnding: k,
7473
- link: d(H),
7462
+ lineEnding: L,
7463
+ link: d(B),
7474
7464
  listItem: d(),
7475
7465
  listOrdered: d(),
7476
7466
  listUnordered: d(),
@@ -7481,7 +7471,7 @@ function _m(e) {
7481
7471
  resource: se,
7482
7472
  setextHeading: d(te),
7483
7473
  setextHeadingLineSequence: q,
7484
- setextHeadingText: V,
7474
+ setextHeadingText: G,
7485
7475
  strong: d(),
7486
7476
  thematicBreak: d()
7487
7477
  }
@@ -7489,7 +7479,7 @@ function _m(e) {
7489
7479
  Ll(t, (e || {}).mdastExtensions || []);
7490
7480
  const n = {};
7491
7481
  return r;
7492
- function r(U) {
7482
+ function r(H) {
7493
7483
  let K = {
7494
7484
  type: "root",
7495
7485
  children: []
@@ -7506,24 +7496,24 @@ function _m(e) {
7506
7496
  getData: u
7507
7497
  }, Ee = [];
7508
7498
  let he = -1;
7509
- for (; ++he < U.length; )
7510
- if (U[he][1].type === "listOrdered" || U[he][1].type === "listUnordered")
7511
- if (U[he][0] === "enter")
7499
+ for (; ++he < H.length; )
7500
+ if (H[he][1].type === "listOrdered" || H[he][1].type === "listUnordered")
7501
+ if (H[he][0] === "enter")
7512
7502
  Ee.push(he);
7513
7503
  else {
7514
7504
  const Qe = Ee.pop();
7515
- he = a(U, Qe, he);
7505
+ he = a(H, Qe, he);
7516
7506
  }
7517
- for (he = -1; ++he < U.length; ) {
7518
- const Qe = t[U[he][0]];
7519
- kl.call(Qe, U[he][1].type) && Qe[U[he][1].type].call(
7507
+ for (he = -1; ++he < H.length; ) {
7508
+ const Qe = t[H[he][0]];
7509
+ kl.call(Qe, H[he][1].type) && Qe[H[he][1].type].call(
7520
7510
  Object.assign(
7521
7511
  {
7522
- sliceSerialize: U[he][2].sliceSerialize
7512
+ sliceSerialize: H[he][2].sliceSerialize
7523
7513
  },
7524
7514
  ie
7525
7515
  ),
7526
- U[he][1]
7516
+ H[he][1]
7527
7517
  );
7528
7518
  }
7529
7519
  if (ie.tokenStack.length > 0) {
@@ -7532,14 +7522,14 @@ function _m(e) {
7532
7522
  }
7533
7523
  for (K.position = {
7534
7524
  start: Vt(
7535
- U.length > 0 ? U[0][1].start : {
7525
+ H.length > 0 ? H[0][1].start : {
7536
7526
  line: 1,
7537
7527
  column: 1,
7538
7528
  offset: 0
7539
7529
  }
7540
7530
  ),
7541
7531
  end: Vt(
7542
- U.length > 0 ? U[U.length - 2][1].end : {
7532
+ H.length > 0 ? H[H.length - 2][1].end : {
7543
7533
  line: 1,
7544
7534
  column: 1,
7545
7535
  offset: 0
@@ -7549,24 +7539,24 @@ function _m(e) {
7549
7539
  K = t.transforms[he](K) || K;
7550
7540
  return K;
7551
7541
  }
7552
- function a(U, K, ie) {
7542
+ function a(H, K, ie) {
7553
7543
  let Ee = K - 1, he = -1, Qe = !1, ut, Ve, Be, rt;
7554
7544
  for (; ++Ee <= ie; ) {
7555
- const He = U[Ee];
7545
+ const He = H[Ee];
7556
7546
  if (He[1].type === "listUnordered" || He[1].type === "listOrdered" || He[1].type === "blockQuote" ? (He[0] === "enter" ? he++ : he--, rt = void 0) : He[1].type === "lineEndingBlank" ? He[0] === "enter" && (ut && !rt && !he && !Be && (Be = Ee), rt = void 0) : He[1].type === "linePrefix" || He[1].type === "listItemValue" || He[1].type === "listItemMarker" || He[1].type === "listItemPrefix" || He[1].type === "listItemPrefixWhitespace" || (rt = void 0), !he && He[0] === "enter" && He[1].type === "listItemPrefix" || he === -1 && He[0] === "exit" && (He[1].type === "listUnordered" || He[1].type === "listOrdered")) {
7557
7547
  if (ut) {
7558
7548
  let ot = Ee;
7559
7549
  for (Ve = void 0; ot--; ) {
7560
- const vt = U[ot];
7550
+ const vt = H[ot];
7561
7551
  if (vt[1].type === "lineEnding" || vt[1].type === "lineEndingBlank") {
7562
7552
  if (vt[0] === "exit") continue;
7563
- Ve && (U[Ve][1].type = "lineEndingBlank", Qe = !0), vt[1].type = "lineEnding", Ve = ot;
7553
+ Ve && (H[Ve][1].type = "lineEndingBlank", Qe = !0), vt[1].type = "lineEnding", Ve = ot;
7564
7554
  } else if (!(vt[1].type === "linePrefix" || vt[1].type === "blockQuotePrefix" || vt[1].type === "blockQuotePrefixWhitespace" || vt[1].type === "blockQuoteMarker" || vt[1].type === "listItemIndent")) break;
7565
7555
  }
7566
7556
  Be && (!Ve || Be < Ve) && (ut._spread = !0), ut.end = Object.assign(
7567
7557
  {},
7568
- Ve ? U[Ve][1].start : He[1].end
7569
- ), U.splice(Ve || Ee, 0, ["exit", ut, He[2]]), Ee++, ie++;
7558
+ Ve ? H[Ve][1].start : He[1].end
7559
+ ), H.splice(Ve || Ee, 0, ["exit", ut, He[2]]), Ee++, ie++;
7570
7560
  }
7571
7561
  He[1].type === "listItemPrefix" && (ut = {
7572
7562
  type: "listItem",
@@ -7574,21 +7564,21 @@ function _m(e) {
7574
7564
  start: Object.assign({}, He[1].start),
7575
7565
  // @ts-expect-error: we’ll add `end` in a second.
7576
7566
  end: void 0
7577
- }, U.splice(Ee, 0, ["enter", ut, He[2]]), Ee++, ie++, Be = void 0, rt = !0);
7567
+ }, H.splice(Ee, 0, ["enter", ut, He[2]]), Ee++, ie++, Be = void 0, rt = !0);
7578
7568
  }
7579
7569
  }
7580
- return U[K][1]._spread = Qe, ie;
7570
+ return H[K][1]._spread = Qe, ie;
7581
7571
  }
7582
- function i(U, K) {
7583
- n[U] = K;
7572
+ function i(H, K) {
7573
+ n[H] = K;
7584
7574
  }
7585
- function u(U) {
7586
- return n[U];
7575
+ function u(H) {
7576
+ return n[H];
7587
7577
  }
7588
- function s(U, K) {
7578
+ function s(H, K) {
7589
7579
  return ie;
7590
7580
  function ie(Ee) {
7591
- c.call(this, U(Ee), Ee), K && K.call(this, Ee);
7581
+ c.call(this, H(Ee), Ee), K && K.call(this, Ee);
7592
7582
  }
7593
7583
  }
7594
7584
  function l() {
@@ -7597,28 +7587,28 @@ function _m(e) {
7597
7587
  children: []
7598
7588
  });
7599
7589
  }
7600
- function c(U, K, ie) {
7601
- return this.stack[this.stack.length - 1].children.push(U), this.stack.push(U), this.tokenStack.push([K, ie]), U.position = {
7590
+ function c(H, K, ie) {
7591
+ return this.stack[this.stack.length - 1].children.push(H), this.stack.push(H), this.tokenStack.push([K, ie]), H.position = {
7602
7592
  start: Vt(K.start)
7603
- }, U;
7593
+ }, H;
7604
7594
  }
7605
- function d(U) {
7595
+ function d(H) {
7606
7596
  return K;
7607
7597
  function K(ie) {
7608
- U && U.call(this, ie), f.call(this, ie);
7598
+ H && H.call(this, ie), f.call(this, ie);
7609
7599
  }
7610
7600
  }
7611
- function f(U, K) {
7601
+ function f(H, K) {
7612
7602
  const ie = this.stack.pop(), Ee = this.tokenStack.pop();
7613
7603
  if (Ee)
7614
- Ee[0].type !== U.type && (K ? K.call(this, U, Ee[0]) : (Ee[1] || To).call(this, U, Ee[0]));
7604
+ Ee[0].type !== H.type && (K ? K.call(this, H, Ee[0]) : (Ee[1] || To).call(this, H, Ee[0]));
7615
7605
  else throw new Error(
7616
- "Cannot close `" + U.type + "` (" + tr({
7617
- start: U.start,
7618
- end: U.end
7606
+ "Cannot close `" + H.type + "` (" + tr({
7607
+ start: H.start,
7608
+ end: H.end
7619
7609
  }) + "): it’s not open"
7620
7610
  );
7621
- return ie.position.end = Vt(U.end), ie;
7611
+ return ie.position.end = Vt(H.end), ie;
7622
7612
  }
7623
7613
  function p() {
7624
7614
  return fp(this.stack.pop());
@@ -7626,134 +7616,134 @@ function _m(e) {
7626
7616
  function h() {
7627
7617
  i("expectingFirstListItemValue", !0);
7628
7618
  }
7629
- function b(U) {
7619
+ function b(H) {
7630
7620
  if (u("expectingFirstListItemValue")) {
7631
7621
  const K = this.stack[this.stack.length - 2];
7632
- K.start = Number.parseInt(this.sliceSerialize(U), 10), i("expectingFirstListItemValue");
7622
+ K.start = Number.parseInt(this.sliceSerialize(H), 10), i("expectingFirstListItemValue");
7633
7623
  }
7634
7624
  }
7635
7625
  function m() {
7636
- const U = this.resume(), K = this.stack[this.stack.length - 1];
7637
- K.lang = U;
7626
+ const H = this.resume(), K = this.stack[this.stack.length - 1];
7627
+ K.lang = H;
7638
7628
  }
7639
7629
  function T() {
7640
- const U = this.resume(), K = this.stack[this.stack.length - 1];
7641
- K.meta = U;
7630
+ const H = this.resume(), K = this.stack[this.stack.length - 1];
7631
+ K.meta = H;
7642
7632
  }
7643
7633
  function g() {
7644
7634
  u("flowCodeInside") || (this.buffer(), i("flowCodeInside", !0));
7645
7635
  }
7646
7636
  function D() {
7647
- const U = this.resume(), K = this.stack[this.stack.length - 1];
7648
- K.value = U.replace(/^(\r?\n|\r)|(\r?\n|\r)$/g, ""), i("flowCodeInside");
7637
+ const H = this.resume(), K = this.stack[this.stack.length - 1];
7638
+ K.value = H.replace(/^(\r?\n|\r)|(\r?\n|\r)$/g, ""), i("flowCodeInside");
7649
7639
  }
7650
7640
  function P() {
7651
- const U = this.resume(), K = this.stack[this.stack.length - 1];
7652
- K.value = U.replace(/(\r?\n|\r)$/g, "");
7641
+ const H = this.resume(), K = this.stack[this.stack.length - 1];
7642
+ K.value = H.replace(/(\r?\n|\r)$/g, "");
7653
7643
  }
7654
- function X(U) {
7644
+ function W(H) {
7655
7645
  const K = this.resume(), ie = this.stack[this.stack.length - 1];
7656
7646
  ie.label = K, ie.identifier = Cn(
7657
- this.sliceSerialize(U)
7647
+ this.sliceSerialize(H)
7658
7648
  ).toLowerCase();
7659
7649
  }
7660
- function F() {
7661
- const U = this.resume(), K = this.stack[this.stack.length - 1];
7662
- K.title = U;
7650
+ function j() {
7651
+ const H = this.resume(), K = this.stack[this.stack.length - 1];
7652
+ K.title = H;
7663
7653
  }
7664
7654
  function x() {
7665
- const U = this.resume(), K = this.stack[this.stack.length - 1];
7666
- K.url = U;
7655
+ const H = this.resume(), K = this.stack[this.stack.length - 1];
7656
+ K.url = H;
7667
7657
  }
7668
- function w(U) {
7658
+ function k(H) {
7669
7659
  const K = this.stack[this.stack.length - 1];
7670
7660
  if (!K.depth) {
7671
- const ie = this.sliceSerialize(U).length;
7661
+ const ie = this.sliceSerialize(H).length;
7672
7662
  K.depth = ie;
7673
7663
  }
7674
7664
  }
7675
- function V() {
7665
+ function G() {
7676
7666
  i("setextHeadingSlurpLineEnding", !0);
7677
7667
  }
7678
- function q(U) {
7668
+ function q(H) {
7679
7669
  const K = this.stack[this.stack.length - 1];
7680
- K.depth = this.sliceSerialize(U).charCodeAt(0) === 61 ? 1 : 2;
7670
+ K.depth = this.sliceSerialize(H).charCodeAt(0) === 61 ? 1 : 2;
7681
7671
  }
7682
7672
  function te() {
7683
7673
  i("setextHeadingSlurpLineEnding");
7684
7674
  }
7685
- function Y(U) {
7675
+ function Y(H) {
7686
7676
  const K = this.stack[this.stack.length - 1];
7687
7677
  let ie = K.children[K.children.length - 1];
7688
7678
  (!ie || ie.type !== "text") && (ie = Fe(), ie.position = {
7689
- start: Vt(U.start)
7679
+ start: Vt(H.start)
7690
7680
  }, K.children.push(ie)), this.stack.push(ie);
7691
7681
  }
7692
- function $(U) {
7682
+ function $(H) {
7693
7683
  const K = this.stack.pop();
7694
- K.value += this.sliceSerialize(U), K.position.end = Vt(U.end);
7684
+ K.value += this.sliceSerialize(H), K.position.end = Vt(H.end);
7695
7685
  }
7696
- function k(U) {
7686
+ function L(H) {
7697
7687
  const K = this.stack[this.stack.length - 1];
7698
7688
  if (u("atHardBreak")) {
7699
7689
  const ie = K.children[K.children.length - 1];
7700
- ie.position.end = Vt(U.end), i("atHardBreak");
7690
+ ie.position.end = Vt(H.end), i("atHardBreak");
7701
7691
  return;
7702
7692
  }
7703
- !u("setextHeadingSlurpLineEnding") && t.canContainEols.includes(K.type) && (Y.call(this, U), $.call(this, U));
7693
+ !u("setextHeadingSlurpLineEnding") && t.canContainEols.includes(K.type) && (Y.call(this, H), $.call(this, H));
7704
7694
  }
7705
7695
  function I() {
7706
7696
  i("atHardBreak", !0);
7707
7697
  }
7708
- function L() {
7709
- const U = this.resume(), K = this.stack[this.stack.length - 1];
7710
- K.value = U;
7698
+ function w() {
7699
+ const H = this.resume(), K = this.stack[this.stack.length - 1];
7700
+ K.value = H;
7711
7701
  }
7712
- function B() {
7713
- const U = this.resume(), K = this.stack[this.stack.length - 1];
7714
- K.value = U;
7702
+ function F() {
7703
+ const H = this.resume(), K = this.stack[this.stack.length - 1];
7704
+ K.value = H;
7715
7705
  }
7716
- function W() {
7717
- const U = this.resume(), K = this.stack[this.stack.length - 1];
7718
- K.value = U;
7706
+ function V() {
7707
+ const H = this.resume(), K = this.stack[this.stack.length - 1];
7708
+ K.value = H;
7719
7709
  }
7720
- function H() {
7721
- const U = this.stack[this.stack.length - 1];
7710
+ function B() {
7711
+ const H = this.stack[this.stack.length - 1];
7722
7712
  if (u("inReference")) {
7723
7713
  const K = u("referenceType") || "shortcut";
7724
- U.type += "Reference", U.referenceType = K, delete U.url, delete U.title;
7714
+ H.type += "Reference", H.referenceType = K, delete H.url, delete H.title;
7725
7715
  } else
7726
- delete U.identifier, delete U.label;
7716
+ delete H.identifier, delete H.label;
7727
7717
  i("referenceType");
7728
7718
  }
7729
7719
  function z() {
7730
- const U = this.stack[this.stack.length - 1];
7720
+ const H = this.stack[this.stack.length - 1];
7731
7721
  if (u("inReference")) {
7732
7722
  const K = u("referenceType") || "shortcut";
7733
- U.type += "Reference", U.referenceType = K, delete U.url, delete U.title;
7723
+ H.type += "Reference", H.referenceType = K, delete H.url, delete H.title;
7734
7724
  } else
7735
- delete U.identifier, delete U.label;
7725
+ delete H.identifier, delete H.label;
7736
7726
  i("referenceType");
7737
7727
  }
7738
- function y(U) {
7739
- const K = this.sliceSerialize(U), ie = this.stack[this.stack.length - 2];
7728
+ function y(H) {
7729
+ const K = this.sliceSerialize(H), ie = this.stack[this.stack.length - 2];
7740
7730
  ie.label = Em(K), ie.identifier = Cn(K).toLowerCase();
7741
7731
  }
7742
7732
  function ne() {
7743
- const U = this.stack[this.stack.length - 1], K = this.resume(), ie = this.stack[this.stack.length - 1];
7733
+ const H = this.stack[this.stack.length - 1], K = this.resume(), ie = this.stack[this.stack.length - 1];
7744
7734
  if (i("inReference", !0), ie.type === "link") {
7745
- const Ee = U.children;
7735
+ const Ee = H.children;
7746
7736
  ie.children = Ee;
7747
7737
  } else
7748
7738
  ie.alt = K;
7749
7739
  }
7750
7740
  function ae() {
7751
- const U = this.resume(), K = this.stack[this.stack.length - 1];
7752
- K.url = U;
7741
+ const H = this.resume(), K = this.stack[this.stack.length - 1];
7742
+ K.url = H;
7753
7743
  }
7754
7744
  function v() {
7755
- const U = this.resume(), K = this.stack[this.stack.length - 1];
7756
- K.title = U;
7745
+ const H = this.resume(), K = this.stack[this.stack.length - 1];
7746
+ K.title = H;
7757
7747
  }
7758
7748
  function se() {
7759
7749
  i("inReference");
@@ -7761,34 +7751,34 @@ function _m(e) {
7761
7751
  function _e() {
7762
7752
  i("referenceType", "collapsed");
7763
7753
  }
7764
- function pe(U) {
7754
+ function pe(H) {
7765
7755
  const K = this.resume(), ie = this.stack[this.stack.length - 1];
7766
7756
  ie.label = K, ie.identifier = Cn(
7767
- this.sliceSerialize(U)
7757
+ this.sliceSerialize(H)
7768
7758
  ).toLowerCase(), i("referenceType", "full");
7769
7759
  }
7770
- function Se(U) {
7771
- i("characterReferenceType", U.type);
7760
+ function Se(H) {
7761
+ i("characterReferenceType", H.type);
7772
7762
  }
7773
- function Oe(U) {
7774
- const K = this.sliceSerialize(U), ie = u("characterReferenceType");
7763
+ function Oe(H) {
7764
+ const K = this.sliceSerialize(H), ie = u("characterReferenceType");
7775
7765
  let Ee;
7776
7766
  ie ? (Ee = Nl(
7777
7767
  K,
7778
7768
  ie === "characterReferenceMarkerNumeric" ? 10 : 16
7779
7769
  ), i("characterReferenceType")) : Ee = wi(K);
7780
7770
  const he = this.stack.pop();
7781
- he.value += Ee, he.position.end = Vt(U.end);
7771
+ he.value += Ee, he.position.end = Vt(H.end);
7782
7772
  }
7783
- function ze(U) {
7784
- $.call(this, U);
7773
+ function ze(H) {
7774
+ $.call(this, H);
7785
7775
  const K = this.stack[this.stack.length - 1];
7786
- K.url = this.sliceSerialize(U);
7776
+ K.url = this.sliceSerialize(H);
7787
7777
  }
7788
- function Ie(U) {
7789
- $.call(this, U);
7778
+ function Ie(H) {
7779
+ $.call(this, H);
7790
7780
  const K = this.stack[this.stack.length - 1];
7791
- K.url = "mailto:" + this.sliceSerialize(U);
7781
+ K.url = "mailto:" + this.sliceSerialize(H);
7792
7782
  }
7793
7783
  function nt() {
7794
7784
  return {
@@ -7859,19 +7849,19 @@ function _m(e) {
7859
7849
  children: []
7860
7850
  };
7861
7851
  }
7862
- function be(U) {
7852
+ function be(H) {
7863
7853
  return {
7864
7854
  type: "list",
7865
- ordered: U.type === "listOrdered",
7855
+ ordered: H.type === "listOrdered",
7866
7856
  start: null,
7867
- spread: U._spread,
7857
+ spread: H._spread,
7868
7858
  children: []
7869
7859
  };
7870
7860
  }
7871
- function Me(U) {
7861
+ function Me(H) {
7872
7862
  return {
7873
7863
  type: "listItem",
7874
- spread: U._spread,
7864
+ spread: H._spread,
7875
7865
  checked: null,
7876
7866
  children: []
7877
7867
  };
@@ -10020,78 +10010,78 @@ function L2() {
10020
10010
  if (!m) return [];
10021
10011
  T = T || {};
10022
10012
  var g = 1, D = 1;
10023
- function P(k) {
10024
- var I = k.match(t);
10013
+ function P(L) {
10014
+ var I = L.match(t);
10025
10015
  I && (g += I.length);
10026
- var L = k.lastIndexOf(l);
10027
- D = ~L ? k.length - L : D + k.length;
10016
+ var w = L.lastIndexOf(l);
10017
+ D = ~w ? L.length - w : D + L.length;
10028
10018
  }
10029
- function X() {
10030
- var k = { line: g, column: D };
10019
+ function W() {
10020
+ var L = { line: g, column: D };
10031
10021
  return function(I) {
10032
- return I.position = new F(k), V(), I;
10022
+ return I.position = new j(L), G(), I;
10033
10023
  };
10034
10024
  }
10035
- function F(k) {
10036
- this.start = k, this.end = { line: g, column: D }, this.source = T.source;
10025
+ function j(L) {
10026
+ this.start = L, this.end = { line: g, column: D }, this.source = T.source;
10037
10027
  }
10038
- F.prototype.content = m;
10039
- function x(k) {
10028
+ j.prototype.content = m;
10029
+ function x(L) {
10040
10030
  var I = new Error(
10041
- T.source + ":" + g + ":" + D + ": " + k
10031
+ T.source + ":" + g + ":" + D + ": " + L
10042
10032
  );
10043
- if (I.reason = k, I.filename = T.source, I.line = g, I.column = D, I.source = m, !T.silent) throw I;
10033
+ if (I.reason = L, I.filename = T.source, I.line = g, I.column = D, I.source = m, !T.silent) throw I;
10044
10034
  }
10045
- function w(k) {
10046
- var I = k.exec(m);
10035
+ function k(L) {
10036
+ var I = L.exec(m);
10047
10037
  if (I) {
10048
- var L = I[0];
10049
- return P(L), m = m.slice(L.length), I;
10038
+ var w = I[0];
10039
+ return P(w), m = m.slice(w.length), I;
10050
10040
  }
10051
10041
  }
10052
- function V() {
10053
- w(n);
10042
+ function G() {
10043
+ k(n);
10054
10044
  }
10055
- function q(k) {
10045
+ function q(L) {
10056
10046
  var I;
10057
- for (k = k || []; I = te(); )
10058
- I !== !1 && k.push(I);
10059
- return k;
10047
+ for (L = L || []; I = te(); )
10048
+ I !== !1 && L.push(I);
10049
+ return L;
10060
10050
  }
10061
10051
  function te() {
10062
- var k = X();
10052
+ var L = W();
10063
10053
  if (!(c != m.charAt(0) || d != m.charAt(1))) {
10064
10054
  for (var I = 2; f != m.charAt(I) && (d != m.charAt(I) || c != m.charAt(I + 1)); )
10065
10055
  ++I;
10066
10056
  if (I += 2, f === m.charAt(I - 1))
10067
10057
  return x("End of comment missing");
10068
- var L = m.slice(2, I - 2);
10069
- return D += 2, P(L), m = m.slice(I), D += 2, k({
10058
+ var w = m.slice(2, I - 2);
10059
+ return D += 2, P(w), m = m.slice(I), D += 2, L({
10070
10060
  type: p,
10071
- comment: L
10061
+ comment: w
10072
10062
  });
10073
10063
  }
10074
10064
  }
10075
10065
  function Y() {
10076
- var k = X(), I = w(r);
10066
+ var L = W(), I = k(r);
10077
10067
  if (I) {
10078
- if (te(), !w(a)) return x("property missing ':'");
10079
- var L = w(i), B = k({
10068
+ if (te(), !k(a)) return x("property missing ':'");
10069
+ var w = k(i), F = L({
10080
10070
  type: h,
10081
10071
  property: b(I[0].replace(e, f)),
10082
- value: L ? b(L[0].replace(e, f)) : f
10072
+ value: w ? b(w[0].replace(e, f)) : f
10083
10073
  });
10084
- return w(u), B;
10074
+ return k(u), F;
10085
10075
  }
10086
10076
  }
10087
10077
  function $() {
10088
- var k = [];
10089
- q(k);
10078
+ var L = [];
10079
+ q(L);
10090
10080
  for (var I; I = Y(); )
10091
- I !== !1 && (k.push(I), q(k));
10092
- return k;
10081
+ I !== !1 && (L.push(I), q(L));
10082
+ return L;
10093
10083
  }
10094
- return V(), $();
10084
+ return G(), $();
10095
10085
  };
10096
10086
  function b(m) {
10097
10087
  return m ? m.replace(s, f) : f;
@@ -13313,10 +13303,10 @@ function Ac(e) {
13313
13303
  function Sc(e) {
13314
13304
  return e >= 64976 && e <= 65007 || Pg.has(e);
13315
13305
  }
13316
- var j;
13306
+ var U;
13317
13307
  (function(e) {
13318
13308
  e.controlCharacterInInputStream = "control-character-in-input-stream", e.noncharacterInInputStream = "noncharacter-in-input-stream", e.surrogateInInputStream = "surrogate-in-input-stream", e.nonVoidHtmlElementStartTagWithTrailingSolidus = "non-void-html-element-start-tag-with-trailing-solidus", e.endTagWithAttributes = "end-tag-with-attributes", e.endTagWithTrailingSolidus = "end-tag-with-trailing-solidus", e.unexpectedSolidusInTag = "unexpected-solidus-in-tag", e.unexpectedNullCharacter = "unexpected-null-character", e.unexpectedQuestionMarkInsteadOfTagName = "unexpected-question-mark-instead-of-tag-name", e.invalidFirstCharacterOfTagName = "invalid-first-character-of-tag-name", e.unexpectedEqualsSignBeforeAttributeName = "unexpected-equals-sign-before-attribute-name", e.missingEndTagName = "missing-end-tag-name", e.unexpectedCharacterInAttributeName = "unexpected-character-in-attribute-name", e.unknownNamedCharacterReference = "unknown-named-character-reference", e.missingSemicolonAfterCharacterReference = "missing-semicolon-after-character-reference", e.unexpectedCharacterAfterDoctypeSystemIdentifier = "unexpected-character-after-doctype-system-identifier", e.unexpectedCharacterInUnquotedAttributeValue = "unexpected-character-in-unquoted-attribute-value", e.eofBeforeTagName = "eof-before-tag-name", e.eofInTag = "eof-in-tag", e.missingAttributeValue = "missing-attribute-value", e.missingWhitespaceBetweenAttributes = "missing-whitespace-between-attributes", e.missingWhitespaceAfterDoctypePublicKeyword = "missing-whitespace-after-doctype-public-keyword", e.missingWhitespaceBetweenDoctypePublicAndSystemIdentifiers = "missing-whitespace-between-doctype-public-and-system-identifiers", e.missingWhitespaceAfterDoctypeSystemKeyword = "missing-whitespace-after-doctype-system-keyword", e.missingQuoteBeforeDoctypePublicIdentifier = "missing-quote-before-doctype-public-identifier", e.missingQuoteBeforeDoctypeSystemIdentifier = "missing-quote-before-doctype-system-identifier", e.missingDoctypePublicIdentifier = "missing-doctype-public-identifier", e.missingDoctypeSystemIdentifier = "missing-doctype-system-identifier", e.abruptDoctypePublicIdentifier = "abrupt-doctype-public-identifier", e.abruptDoctypeSystemIdentifier = "abrupt-doctype-system-identifier", e.cdataInHtmlContent = "cdata-in-html-content", e.incorrectlyOpenedComment = "incorrectly-opened-comment", e.eofInScriptHtmlCommentLikeText = "eof-in-script-html-comment-like-text", e.eofInDoctype = "eof-in-doctype", e.nestedComment = "nested-comment", e.abruptClosingOfEmptyComment = "abrupt-closing-of-empty-comment", e.eofInComment = "eof-in-comment", e.incorrectlyClosedComment = "incorrectly-closed-comment", e.eofInCdata = "eof-in-cdata", e.absenceOfDigitsInNumericCharacterReference = "absence-of-digits-in-numeric-character-reference", e.nullCharacterReference = "null-character-reference", e.surrogateCharacterReference = "surrogate-character-reference", e.characterReferenceOutsideUnicodeRange = "character-reference-outside-unicode-range", e.controlCharacterReference = "control-character-reference", e.noncharacterCharacterReference = "noncharacter-character-reference", e.missingWhitespaceBeforeDoctypeName = "missing-whitespace-before-doctype-name", e.missingDoctypeName = "missing-doctype-name", e.invalidCharacterSequenceAfterDoctypeName = "invalid-character-sequence-after-doctype-name", e.duplicateAttribute = "duplicate-attribute", e.nonConformingDoctype = "non-conforming-doctype", e.missingDoctype = "missing-doctype", e.misplacedDoctype = "misplaced-doctype", e.endTagWithoutMatchingOpenElement = "end-tag-without-matching-open-element", e.closingOfElementWithOpenChildElements = "closing-of-element-with-open-child-elements", e.disallowedContentInNoscriptInHead = "disallowed-content-in-noscript-in-head", e.openElementsLeftAfterEof = "open-elements-left-after-eof", e.abandonedHeadElementChild = "abandoned-head-element-child", e.misplacedStartTagForHeadElement = "misplaced-start-tag-for-head-element", e.nestedNoscriptInHead = "nested-noscript-in-head", e.eofInElementThatCanContainOnlyText = "eof-in-element-that-can-contain-only-text";
13319
- })(j || (j = {}));
13309
+ })(U || (U = {}));
13320
13310
  const Bg = 65536;
13321
13311
  class Hg {
13322
13312
  constructor(t) {
@@ -13354,7 +13344,7 @@ class Hg {
13354
13344
  return this.pos++, this._addGap(), Fg(t, n);
13355
13345
  } else if (!this.lastChunkWritten)
13356
13346
  return this.endOfChunkHit = !0, E.EOF;
13357
- return this._err(j.surrogateInInputStream), t;
13347
+ return this._err(U.surrogateInInputStream), t;
13358
13348
  }
13359
13349
  willDropParsedChunk() {
13360
13350
  return this.pos > this.bufferWaterline;
@@ -13392,7 +13382,7 @@ class Hg {
13392
13382
  return t === E.CARRIAGE_RETURN ? (this.isEol = !0, this.skipNextNewLine = !0, E.LINE_FEED) : t === E.LINE_FEED && (this.isEol = !0, this.skipNextNewLine) ? (this.line--, this.skipNextNewLine = !1, this._addGap(), this.advance()) : (this.skipNextNewLine = !1, Cc(t) && (t = this._processSurrogate(t)), this.handler.onParseError === null || t > 31 && t < 127 || t === E.LINE_FEED || t === E.CARRIAGE_RETURN || t > 159 && t < 64976 || this._checkForProblematicCharacters(t), t);
13393
13383
  }
13394
13384
  _checkForProblematicCharacters(t) {
13395
- Ac(t) ? this._err(j.controlCharacterInInputStream) : Sc(t) && this._err(j.noncharacterInInputStream);
13385
+ Ac(t) ? this._err(U.controlCharacterInInputStream) : Sc(t) && this._err(U.noncharacterInInputStream);
13396
13386
  }
13397
13387
  retreat(t) {
13398
13388
  for (this.pos -= t; this.pos < this.lastGapPos; )
@@ -13685,10 +13675,10 @@ function Gg(e, t, n, r) {
13685
13675
  }
13686
13676
  return -1;
13687
13677
  }
13688
- var G;
13678
+ var X;
13689
13679
  (function(e) {
13690
13680
  e.HTML = "http://www.w3.org/1999/xhtml", e.MATHML = "http://www.w3.org/1998/Math/MathML", e.SVG = "http://www.w3.org/2000/svg", e.XLINK = "http://www.w3.org/1999/xlink", e.XML = "http://www.w3.org/XML/1998/namespace", e.XMLNS = "http://www.w3.org/2000/xmlns/";
13691
- })(G || (G = {}));
13681
+ })(X || (X = {}));
13692
13682
  var on;
13693
13683
  (function(e) {
13694
13684
  e.TYPE = "type", e.ACTION = "action", e.ENCODING = "encoding", e.PROMPT = "prompt", e.NAME = "name", e.COLOR = "color", e.FACE = "face", e.SIZE = "size";
@@ -13835,7 +13825,7 @@ function Dn(e) {
13835
13825
  return (t = Xg.get(e)) !== null && t !== void 0 ? t : o.UNKNOWN;
13836
13826
  }
13837
13827
  const Q = o, Kg = {
13838
- [G.HTML]: /* @__PURE__ */ new Set([
13828
+ [X.HTML]: /* @__PURE__ */ new Set([
13839
13829
  Q.ADDRESS,
13840
13830
  Q.APPLET,
13841
13831
  Q.AREA,
@@ -13918,11 +13908,11 @@ const Q = o, Kg = {
13918
13908
  Q.WBR,
13919
13909
  Q.XMP
13920
13910
  ]),
13921
- [G.MATHML]: /* @__PURE__ */ new Set([Q.MI, Q.MO, Q.MN, Q.MS, Q.MTEXT, Q.ANNOTATION_XML]),
13922
- [G.SVG]: /* @__PURE__ */ new Set([Q.TITLE, Q.FOREIGN_OBJECT, Q.DESC]),
13923
- [G.XLINK]: /* @__PURE__ */ new Set(),
13924
- [G.XML]: /* @__PURE__ */ new Set(),
13925
- [G.XMLNS]: /* @__PURE__ */ new Set()
13911
+ [X.MATHML]: /* @__PURE__ */ new Set([Q.MI, Q.MO, Q.MN, Q.MS, Q.MTEXT, Q.ANNOTATION_XML]),
13912
+ [X.SVG]: /* @__PURE__ */ new Set([Q.TITLE, Q.FOREIGN_OBJECT, Q.DESC]),
13913
+ [X.XLINK]: /* @__PURE__ */ new Set(),
13914
+ [X.XML]: /* @__PURE__ */ new Set(),
13915
+ [X.XMLNS]: /* @__PURE__ */ new Set()
13926
13916
  }, yi = /* @__PURE__ */ new Set([Q.H1, Q.H2, Q.H3, Q.H4, Q.H5, Q.H6]);
13927
13917
  R.STYLE, R.SCRIPT, R.XMP, R.IFRAME, R.NOEMBED, R.NOFRAMES, R.PLAINTEXT;
13928
13918
  var C;
@@ -13962,7 +13952,7 @@ function Qo(e) {
13962
13952
  return vc(e) || e === E.SOLIDUS || e === E.GREATER_THAN_SIGN;
13963
13953
  }
13964
13954
  function Jg(e) {
13965
- return e === E.NULL ? j.nullCharacterReference : e > 1114111 ? j.characterReferenceOutsideUnicodeRange : Cc(e) ? j.surrogateCharacterReference : Sc(e) ? j.noncharacterCharacterReference : Ac(e) || e === E.CARRIAGE_RETURN ? j.controlCharacterReference : null;
13955
+ return e === E.NULL ? U.nullCharacterReference : e > 1114111 ? U.characterReferenceOutsideUnicodeRange : Cc(e) ? U.surrogateCharacterReference : Sc(e) ? U.noncharacterCharacterReference : Ac(e) || e === E.CARRIAGE_RETURN ? U.controlCharacterReference : null;
13966
13956
  }
13967
13957
  class eb {
13968
13958
  constructor(t, n) {
@@ -13970,10 +13960,10 @@ class eb {
13970
13960
  this.preprocessor.pos = this.entityStartPos + a - 1, this._flushCodePointConsumedAsCharacterReference(r);
13971
13961
  }, n.onParseError ? {
13972
13962
  missingSemicolonAfterCharacterReference: () => {
13973
- this._err(j.missingSemicolonAfterCharacterReference, 1);
13963
+ this._err(U.missingSemicolonAfterCharacterReference, 1);
13974
13964
  },
13975
13965
  absenceOfDigitsInNumericCharacterReference: (r) => {
13976
- this._err(j.absenceOfDigitsInNumericCharacterReference, this.entityStartPos - this.preprocessor.pos + r);
13966
+ this._err(U.absenceOfDigitsInNumericCharacterReference, this.entityStartPos - this.preprocessor.pos + r);
13977
13967
  },
13978
13968
  validateNumericCharacterReference: (r) => {
13979
13969
  const a = Jg(r);
@@ -14101,7 +14091,7 @@ class eb {
14101
14091
  a[this.currentAttr.name] = this.currentLocation, this._leaveAttrValue();
14102
14092
  }
14103
14093
  } else
14104
- this._err(j.duplicateAttribute);
14094
+ this._err(U.duplicateAttribute);
14105
14095
  }
14106
14096
  _leaveAttrValue() {
14107
14097
  this.currentLocation && (this.currentLocation.endLine = this.preprocessor.line, this.currentLocation.endCol = this.preprocessor.col, this.currentLocation.endOffset = this.preprocessor.offset);
@@ -14112,7 +14102,7 @@ class eb {
14112
14102
  }
14113
14103
  emitCurrentTagToken() {
14114
14104
  const t = this.currentToken;
14115
- this.prepareToken(t), t.tagID = Dn(t.tagName), t.type === me.START_TAG ? (this.lastStartTagName = t.tagName, this.handler.onStartTag(t)) : (t.attrs.length > 0 && this._err(j.endTagWithAttributes), t.selfClosing && this._err(j.endTagWithTrailingSolidus), this.handler.onEndTag(t)), this.preprocessor.dropParsedChunk();
14105
+ this.prepareToken(t), t.tagID = Dn(t.tagName), t.type === me.START_TAG ? (this.lastStartTagName = t.tagName, this.handler.onStartTag(t)) : (t.attrs.length > 0 && this._err(U.endTagWithAttributes), t.selfClosing && this._err(U.endTagWithTrailingSolidus), this.handler.onEndTag(t)), this.preprocessor.dropParsedChunk();
14116
14106
  }
14117
14107
  emitCurrentComment(t) {
14118
14108
  this.prepareToken(t), this.handler.onComment(t), this.preprocessor.dropParsedChunk();
@@ -14493,7 +14483,7 @@ class eb {
14493
14483
  break;
14494
14484
  }
14495
14485
  case E.NULL: {
14496
- this._err(j.unexpectedNullCharacter), this._emitCodePoint(t);
14486
+ this._err(U.unexpectedNullCharacter), this._emitCodePoint(t);
14497
14487
  break;
14498
14488
  }
14499
14489
  case E.EOF: {
@@ -14517,7 +14507,7 @@ class eb {
14517
14507
  break;
14518
14508
  }
14519
14509
  case E.NULL: {
14520
- this._err(j.unexpectedNullCharacter), this._emitChars(qe);
14510
+ this._err(U.unexpectedNullCharacter), this._emitChars(qe);
14521
14511
  break;
14522
14512
  }
14523
14513
  case E.EOF: {
@@ -14537,7 +14527,7 @@ class eb {
14537
14527
  break;
14538
14528
  }
14539
14529
  case E.NULL: {
14540
- this._err(j.unexpectedNullCharacter), this._emitChars(qe);
14530
+ this._err(U.unexpectedNullCharacter), this._emitChars(qe);
14541
14531
  break;
14542
14532
  }
14543
14533
  case E.EOF: {
@@ -14557,7 +14547,7 @@ class eb {
14557
14547
  break;
14558
14548
  }
14559
14549
  case E.NULL: {
14560
- this._err(j.unexpectedNullCharacter), this._emitChars(qe);
14550
+ this._err(U.unexpectedNullCharacter), this._emitChars(qe);
14561
14551
  break;
14562
14552
  }
14563
14553
  case E.EOF: {
@@ -14573,7 +14563,7 @@ class eb {
14573
14563
  _statePlaintext(t) {
14574
14564
  switch (t) {
14575
14565
  case E.NULL: {
14576
- this._err(j.unexpectedNullCharacter), this._emitChars(qe);
14566
+ this._err(U.unexpectedNullCharacter), this._emitChars(qe);
14577
14567
  break;
14578
14568
  }
14579
14569
  case E.EOF: {
@@ -14600,15 +14590,15 @@ class eb {
14600
14590
  break;
14601
14591
  }
14602
14592
  case E.QUESTION_MARK: {
14603
- this._err(j.unexpectedQuestionMarkInsteadOfTagName), this._createCommentToken(1), this.state = C.BOGUS_COMMENT, this._stateBogusComment(t);
14593
+ this._err(U.unexpectedQuestionMarkInsteadOfTagName), this._createCommentToken(1), this.state = C.BOGUS_COMMENT, this._stateBogusComment(t);
14604
14594
  break;
14605
14595
  }
14606
14596
  case E.EOF: {
14607
- this._err(j.eofBeforeTagName), this._emitChars("<"), this._emitEOFToken();
14597
+ this._err(U.eofBeforeTagName), this._emitChars("<"), this._emitEOFToken();
14608
14598
  break;
14609
14599
  }
14610
14600
  default:
14611
- this._err(j.invalidFirstCharacterOfTagName), this._emitChars("<"), this.state = C.DATA, this._stateData(t);
14601
+ this._err(U.invalidFirstCharacterOfTagName), this._emitChars("<"), this.state = C.DATA, this._stateData(t);
14612
14602
  }
14613
14603
  }
14614
14604
  // End tag open state
@@ -14619,15 +14609,15 @@ class eb {
14619
14609
  else
14620
14610
  switch (t) {
14621
14611
  case E.GREATER_THAN_SIGN: {
14622
- this._err(j.missingEndTagName), this.state = C.DATA;
14612
+ this._err(U.missingEndTagName), this.state = C.DATA;
14623
14613
  break;
14624
14614
  }
14625
14615
  case E.EOF: {
14626
- this._err(j.eofBeforeTagName), this._emitChars("</"), this._emitEOFToken();
14616
+ this._err(U.eofBeforeTagName), this._emitChars("</"), this._emitEOFToken();
14627
14617
  break;
14628
14618
  }
14629
14619
  default:
14630
- this._err(j.invalidFirstCharacterOfTagName), this._createCommentToken(2), this.state = C.BOGUS_COMMENT, this._stateBogusComment(t);
14620
+ this._err(U.invalidFirstCharacterOfTagName), this._createCommentToken(2), this.state = C.BOGUS_COMMENT, this._stateBogusComment(t);
14631
14621
  }
14632
14622
  }
14633
14623
  // Tag name state
@@ -14651,11 +14641,11 @@ class eb {
14651
14641
  break;
14652
14642
  }
14653
14643
  case E.NULL: {
14654
- this._err(j.unexpectedNullCharacter), n.tagName += qe;
14644
+ this._err(U.unexpectedNullCharacter), n.tagName += qe;
14655
14645
  break;
14656
14646
  }
14657
14647
  case E.EOF: {
14658
- this._err(j.eofInTag), this._emitEOFToken();
14648
+ this._err(U.eofInTag), this._emitEOFToken();
14659
14649
  break;
14660
14650
  }
14661
14651
  default:
@@ -14760,11 +14750,11 @@ class eb {
14760
14750
  break;
14761
14751
  }
14762
14752
  case E.NULL: {
14763
- this._err(j.unexpectedNullCharacter), this._emitChars(qe);
14753
+ this._err(U.unexpectedNullCharacter), this._emitChars(qe);
14764
14754
  break;
14765
14755
  }
14766
14756
  case E.EOF: {
14767
- this._err(j.eofInScriptHtmlCommentLikeText), this._emitEOFToken();
14757
+ this._err(U.eofInScriptHtmlCommentLikeText), this._emitEOFToken();
14768
14758
  break;
14769
14759
  }
14770
14760
  default:
@@ -14784,11 +14774,11 @@ class eb {
14784
14774
  break;
14785
14775
  }
14786
14776
  case E.NULL: {
14787
- this._err(j.unexpectedNullCharacter), this.state = C.SCRIPT_DATA_ESCAPED, this._emitChars(qe);
14777
+ this._err(U.unexpectedNullCharacter), this.state = C.SCRIPT_DATA_ESCAPED, this._emitChars(qe);
14788
14778
  break;
14789
14779
  }
14790
14780
  case E.EOF: {
14791
- this._err(j.eofInScriptHtmlCommentLikeText), this._emitEOFToken();
14781
+ this._err(U.eofInScriptHtmlCommentLikeText), this._emitEOFToken();
14792
14782
  break;
14793
14783
  }
14794
14784
  default:
@@ -14812,11 +14802,11 @@ class eb {
14812
14802
  break;
14813
14803
  }
14814
14804
  case E.NULL: {
14815
- this._err(j.unexpectedNullCharacter), this.state = C.SCRIPT_DATA_ESCAPED, this._emitChars(qe);
14805
+ this._err(U.unexpectedNullCharacter), this.state = C.SCRIPT_DATA_ESCAPED, this._emitChars(qe);
14816
14806
  break;
14817
14807
  }
14818
14808
  case E.EOF: {
14819
- this._err(j.eofInScriptHtmlCommentLikeText), this._emitEOFToken();
14809
+ this._err(U.eofInScriptHtmlCommentLikeText), this._emitEOFToken();
14820
14810
  break;
14821
14811
  }
14822
14812
  default:
@@ -14861,11 +14851,11 @@ class eb {
14861
14851
  break;
14862
14852
  }
14863
14853
  case E.NULL: {
14864
- this._err(j.unexpectedNullCharacter), this._emitChars(qe);
14854
+ this._err(U.unexpectedNullCharacter), this._emitChars(qe);
14865
14855
  break;
14866
14856
  }
14867
14857
  case E.EOF: {
14868
- this._err(j.eofInScriptHtmlCommentLikeText), this._emitEOFToken();
14858
+ this._err(U.eofInScriptHtmlCommentLikeText), this._emitEOFToken();
14869
14859
  break;
14870
14860
  }
14871
14861
  default:
@@ -14885,11 +14875,11 @@ class eb {
14885
14875
  break;
14886
14876
  }
14887
14877
  case E.NULL: {
14888
- this._err(j.unexpectedNullCharacter), this.state = C.SCRIPT_DATA_DOUBLE_ESCAPED, this._emitChars(qe);
14878
+ this._err(U.unexpectedNullCharacter), this.state = C.SCRIPT_DATA_DOUBLE_ESCAPED, this._emitChars(qe);
14889
14879
  break;
14890
14880
  }
14891
14881
  case E.EOF: {
14892
- this._err(j.eofInScriptHtmlCommentLikeText), this._emitEOFToken();
14882
+ this._err(U.eofInScriptHtmlCommentLikeText), this._emitEOFToken();
14893
14883
  break;
14894
14884
  }
14895
14885
  default:
@@ -14913,11 +14903,11 @@ class eb {
14913
14903
  break;
14914
14904
  }
14915
14905
  case E.NULL: {
14916
- this._err(j.unexpectedNullCharacter), this.state = C.SCRIPT_DATA_DOUBLE_ESCAPED, this._emitChars(qe);
14906
+ this._err(U.unexpectedNullCharacter), this.state = C.SCRIPT_DATA_DOUBLE_ESCAPED, this._emitChars(qe);
14917
14907
  break;
14918
14908
  }
14919
14909
  case E.EOF: {
14920
- this._err(j.eofInScriptHtmlCommentLikeText), this._emitEOFToken();
14910
+ this._err(U.eofInScriptHtmlCommentLikeText), this._emitEOFToken();
14921
14911
  break;
14922
14912
  }
14923
14913
  default:
@@ -14955,7 +14945,7 @@ class eb {
14955
14945
  break;
14956
14946
  }
14957
14947
  case E.EQUALS_SIGN: {
14958
- this._err(j.unexpectedEqualsSignBeforeAttributeName), this._createAttr("="), this.state = C.ATTRIBUTE_NAME;
14948
+ this._err(U.unexpectedEqualsSignBeforeAttributeName), this._createAttr("="), this.state = C.ATTRIBUTE_NAME;
14959
14949
  break;
14960
14950
  }
14961
14951
  default:
@@ -14983,11 +14973,11 @@ class eb {
14983
14973
  case E.QUOTATION_MARK:
14984
14974
  case E.APOSTROPHE:
14985
14975
  case E.LESS_THAN_SIGN: {
14986
- this._err(j.unexpectedCharacterInAttributeName), this.currentAttr.name += String.fromCodePoint(t);
14976
+ this._err(U.unexpectedCharacterInAttributeName), this.currentAttr.name += String.fromCodePoint(t);
14987
14977
  break;
14988
14978
  }
14989
14979
  case E.NULL: {
14990
- this._err(j.unexpectedNullCharacter), this.currentAttr.name += qe;
14980
+ this._err(U.unexpectedNullCharacter), this.currentAttr.name += qe;
14991
14981
  break;
14992
14982
  }
14993
14983
  default:
@@ -15016,7 +15006,7 @@ class eb {
15016
15006
  break;
15017
15007
  }
15018
15008
  case E.EOF: {
15019
- this._err(j.eofInTag), this._emitEOFToken();
15009
+ this._err(U.eofInTag), this._emitEOFToken();
15020
15010
  break;
15021
15011
  }
15022
15012
  default:
@@ -15041,7 +15031,7 @@ class eb {
15041
15031
  break;
15042
15032
  }
15043
15033
  case E.GREATER_THAN_SIGN: {
15044
- this._err(j.missingAttributeValue), this.state = C.DATA, this.emitCurrentTagToken();
15034
+ this._err(U.missingAttributeValue), this.state = C.DATA, this.emitCurrentTagToken();
15045
15035
  break;
15046
15036
  }
15047
15037
  default:
@@ -15061,11 +15051,11 @@ class eb {
15061
15051
  break;
15062
15052
  }
15063
15053
  case E.NULL: {
15064
- this._err(j.unexpectedNullCharacter), this.currentAttr.value += qe;
15054
+ this._err(U.unexpectedNullCharacter), this.currentAttr.value += qe;
15065
15055
  break;
15066
15056
  }
15067
15057
  case E.EOF: {
15068
- this._err(j.eofInTag), this._emitEOFToken();
15058
+ this._err(U.eofInTag), this._emitEOFToken();
15069
15059
  break;
15070
15060
  }
15071
15061
  default:
@@ -15085,11 +15075,11 @@ class eb {
15085
15075
  break;
15086
15076
  }
15087
15077
  case E.NULL: {
15088
- this._err(j.unexpectedNullCharacter), this.currentAttr.value += qe;
15078
+ this._err(U.unexpectedNullCharacter), this.currentAttr.value += qe;
15089
15079
  break;
15090
15080
  }
15091
15081
  case E.EOF: {
15092
- this._err(j.eofInTag), this._emitEOFToken();
15082
+ this._err(U.eofInTag), this._emitEOFToken();
15093
15083
  break;
15094
15084
  }
15095
15085
  default:
@@ -15116,7 +15106,7 @@ class eb {
15116
15106
  break;
15117
15107
  }
15118
15108
  case E.NULL: {
15119
- this._err(j.unexpectedNullCharacter), this.currentAttr.value += qe;
15109
+ this._err(U.unexpectedNullCharacter), this.currentAttr.value += qe;
15120
15110
  break;
15121
15111
  }
15122
15112
  case E.QUOTATION_MARK:
@@ -15124,11 +15114,11 @@ class eb {
15124
15114
  case E.LESS_THAN_SIGN:
15125
15115
  case E.EQUALS_SIGN:
15126
15116
  case E.GRAVE_ACCENT: {
15127
- this._err(j.unexpectedCharacterInUnquotedAttributeValue), this.currentAttr.value += String.fromCodePoint(t);
15117
+ this._err(U.unexpectedCharacterInUnquotedAttributeValue), this.currentAttr.value += String.fromCodePoint(t);
15128
15118
  break;
15129
15119
  }
15130
15120
  case E.EOF: {
15131
- this._err(j.eofInTag), this._emitEOFToken();
15121
+ this._err(U.eofInTag), this._emitEOFToken();
15132
15122
  break;
15133
15123
  }
15134
15124
  default:
@@ -15155,11 +15145,11 @@ class eb {
15155
15145
  break;
15156
15146
  }
15157
15147
  case E.EOF: {
15158
- this._err(j.eofInTag), this._emitEOFToken();
15148
+ this._err(U.eofInTag), this._emitEOFToken();
15159
15149
  break;
15160
15150
  }
15161
15151
  default:
15162
- this._err(j.missingWhitespaceBetweenAttributes), this.state = C.BEFORE_ATTRIBUTE_NAME, this._stateBeforeAttributeName(t);
15152
+ this._err(U.missingWhitespaceBetweenAttributes), this.state = C.BEFORE_ATTRIBUTE_NAME, this._stateBeforeAttributeName(t);
15163
15153
  }
15164
15154
  }
15165
15155
  // Self-closing start tag state
@@ -15172,11 +15162,11 @@ class eb {
15172
15162
  break;
15173
15163
  }
15174
15164
  case E.EOF: {
15175
- this._err(j.eofInTag), this._emitEOFToken();
15165
+ this._err(U.eofInTag), this._emitEOFToken();
15176
15166
  break;
15177
15167
  }
15178
15168
  default:
15179
- this._err(j.unexpectedSolidusInTag), this.state = C.BEFORE_ATTRIBUTE_NAME, this._stateBeforeAttributeName(t);
15169
+ this._err(U.unexpectedSolidusInTag), this.state = C.BEFORE_ATTRIBUTE_NAME, this._stateBeforeAttributeName(t);
15180
15170
  }
15181
15171
  }
15182
15172
  // Bogus comment state
@@ -15193,7 +15183,7 @@ class eb {
15193
15183
  break;
15194
15184
  }
15195
15185
  case E.NULL: {
15196
- this._err(j.unexpectedNullCharacter), n.data += qe;
15186
+ this._err(U.unexpectedNullCharacter), n.data += qe;
15197
15187
  break;
15198
15188
  }
15199
15189
  default:
@@ -15203,7 +15193,7 @@ class eb {
15203
15193
  // Markup declaration open state
15204
15194
  //------------------------------------------------------------------
15205
15195
  _stateMarkupDeclarationOpen(t) {
15206
- this._consumeSequenceIfMatch(lt.DASH_DASH, !0) ? (this._createCommentToken(lt.DASH_DASH.length + 1), this.state = C.COMMENT_START) : this._consumeSequenceIfMatch(lt.DOCTYPE, !1) ? (this.currentLocation = this.getCurrentLocation(lt.DOCTYPE.length + 1), this.state = C.DOCTYPE) : this._consumeSequenceIfMatch(lt.CDATA_START, !0) ? this.inForeignNode ? this.state = C.CDATA_SECTION : (this._err(j.cdataInHtmlContent), this._createCommentToken(lt.CDATA_START.length + 1), this.currentToken.data = "[CDATA[", this.state = C.BOGUS_COMMENT) : this._ensureHibernation() || (this._err(j.incorrectlyOpenedComment), this._createCommentToken(2), this.state = C.BOGUS_COMMENT, this._stateBogusComment(t));
15196
+ this._consumeSequenceIfMatch(lt.DASH_DASH, !0) ? (this._createCommentToken(lt.DASH_DASH.length + 1), this.state = C.COMMENT_START) : this._consumeSequenceIfMatch(lt.DOCTYPE, !1) ? (this.currentLocation = this.getCurrentLocation(lt.DOCTYPE.length + 1), this.state = C.DOCTYPE) : this._consumeSequenceIfMatch(lt.CDATA_START, !0) ? this.inForeignNode ? this.state = C.CDATA_SECTION : (this._err(U.cdataInHtmlContent), this._createCommentToken(lt.CDATA_START.length + 1), this.currentToken.data = "[CDATA[", this.state = C.BOGUS_COMMENT) : this._ensureHibernation() || (this._err(U.incorrectlyOpenedComment), this._createCommentToken(2), this.state = C.BOGUS_COMMENT, this._stateBogusComment(t));
15207
15197
  }
15208
15198
  // Comment start state
15209
15199
  //------------------------------------------------------------------
@@ -15214,7 +15204,7 @@ class eb {
15214
15204
  break;
15215
15205
  }
15216
15206
  case E.GREATER_THAN_SIGN: {
15217
- this._err(j.abruptClosingOfEmptyComment), this.state = C.DATA;
15207
+ this._err(U.abruptClosingOfEmptyComment), this.state = C.DATA;
15218
15208
  const n = this.currentToken;
15219
15209
  this.emitCurrentComment(n);
15220
15210
  break;
@@ -15233,11 +15223,11 @@ class eb {
15233
15223
  break;
15234
15224
  }
15235
15225
  case E.GREATER_THAN_SIGN: {
15236
- this._err(j.abruptClosingOfEmptyComment), this.state = C.DATA, this.emitCurrentComment(n);
15226
+ this._err(U.abruptClosingOfEmptyComment), this.state = C.DATA, this.emitCurrentComment(n);
15237
15227
  break;
15238
15228
  }
15239
15229
  case E.EOF: {
15240
- this._err(j.eofInComment), this.emitCurrentComment(n), this._emitEOFToken();
15230
+ this._err(U.eofInComment), this.emitCurrentComment(n), this._emitEOFToken();
15241
15231
  break;
15242
15232
  }
15243
15233
  default:
@@ -15258,11 +15248,11 @@ class eb {
15258
15248
  break;
15259
15249
  }
15260
15250
  case E.NULL: {
15261
- this._err(j.unexpectedNullCharacter), n.data += qe;
15251
+ this._err(U.unexpectedNullCharacter), n.data += qe;
15262
15252
  break;
15263
15253
  }
15264
15254
  case E.EOF: {
15265
- this._err(j.eofInComment), this.emitCurrentComment(n), this._emitEOFToken();
15255
+ this._err(U.eofInComment), this.emitCurrentComment(n), this._emitEOFToken();
15266
15256
  break;
15267
15257
  }
15268
15258
  default:
@@ -15299,7 +15289,7 @@ class eb {
15299
15289
  // Comment less-than sign bang dash dash state
15300
15290
  //------------------------------------------------------------------
15301
15291
  _stateCommentLessThanSignBangDashDash(t) {
15302
- t !== E.GREATER_THAN_SIGN && t !== E.EOF && this._err(j.nestedComment), this.state = C.COMMENT_END, this._stateCommentEnd(t);
15292
+ t !== E.GREATER_THAN_SIGN && t !== E.EOF && this._err(U.nestedComment), this.state = C.COMMENT_END, this._stateCommentEnd(t);
15303
15293
  }
15304
15294
  // Comment end dash state
15305
15295
  //------------------------------------------------------------------
@@ -15311,7 +15301,7 @@ class eb {
15311
15301
  break;
15312
15302
  }
15313
15303
  case E.EOF: {
15314
- this._err(j.eofInComment), this.emitCurrentComment(n), this._emitEOFToken();
15304
+ this._err(U.eofInComment), this.emitCurrentComment(n), this._emitEOFToken();
15315
15305
  break;
15316
15306
  }
15317
15307
  default:
@@ -15336,7 +15326,7 @@ class eb {
15336
15326
  break;
15337
15327
  }
15338
15328
  case E.EOF: {
15339
- this._err(j.eofInComment), this.emitCurrentComment(n), this._emitEOFToken();
15329
+ this._err(U.eofInComment), this.emitCurrentComment(n), this._emitEOFToken();
15340
15330
  break;
15341
15331
  }
15342
15332
  default:
@@ -15353,11 +15343,11 @@ class eb {
15353
15343
  break;
15354
15344
  }
15355
15345
  case E.GREATER_THAN_SIGN: {
15356
- this._err(j.incorrectlyClosedComment), this.state = C.DATA, this.emitCurrentComment(n);
15346
+ this._err(U.incorrectlyClosedComment), this.state = C.DATA, this.emitCurrentComment(n);
15357
15347
  break;
15358
15348
  }
15359
15349
  case E.EOF: {
15360
- this._err(j.eofInComment), this.emitCurrentComment(n), this._emitEOFToken();
15350
+ this._err(U.eofInComment), this.emitCurrentComment(n), this._emitEOFToken();
15361
15351
  break;
15362
15352
  }
15363
15353
  default:
@@ -15380,13 +15370,13 @@ class eb {
15380
15370
  break;
15381
15371
  }
15382
15372
  case E.EOF: {
15383
- this._err(j.eofInDoctype), this._createDoctypeToken(null);
15373
+ this._err(U.eofInDoctype), this._createDoctypeToken(null);
15384
15374
  const n = this.currentToken;
15385
15375
  n.forceQuirks = !0, this.emitCurrentDoctype(n), this._emitEOFToken();
15386
15376
  break;
15387
15377
  }
15388
15378
  default:
15389
- this._err(j.missingWhitespaceBeforeDoctypeName), this.state = C.BEFORE_DOCTYPE_NAME, this._stateBeforeDoctypeName(t);
15379
+ this._err(U.missingWhitespaceBeforeDoctypeName), this.state = C.BEFORE_DOCTYPE_NAME, this._stateBeforeDoctypeName(t);
15390
15380
  }
15391
15381
  }
15392
15382
  // Before DOCTYPE name state
@@ -15402,17 +15392,17 @@ class eb {
15402
15392
  case E.FORM_FEED:
15403
15393
  break;
15404
15394
  case E.NULL: {
15405
- this._err(j.unexpectedNullCharacter), this._createDoctypeToken(qe), this.state = C.DOCTYPE_NAME;
15395
+ this._err(U.unexpectedNullCharacter), this._createDoctypeToken(qe), this.state = C.DOCTYPE_NAME;
15406
15396
  break;
15407
15397
  }
15408
15398
  case E.GREATER_THAN_SIGN: {
15409
- this._err(j.missingDoctypeName), this._createDoctypeToken(null);
15399
+ this._err(U.missingDoctypeName), this._createDoctypeToken(null);
15410
15400
  const n = this.currentToken;
15411
15401
  n.forceQuirks = !0, this.emitCurrentDoctype(n), this.state = C.DATA;
15412
15402
  break;
15413
15403
  }
15414
15404
  case E.EOF: {
15415
- this._err(j.eofInDoctype), this._createDoctypeToken(null);
15405
+ this._err(U.eofInDoctype), this._createDoctypeToken(null);
15416
15406
  const n = this.currentToken;
15417
15407
  n.forceQuirks = !0, this.emitCurrentDoctype(n), this._emitEOFToken();
15418
15408
  break;
@@ -15438,11 +15428,11 @@ class eb {
15438
15428
  break;
15439
15429
  }
15440
15430
  case E.NULL: {
15441
- this._err(j.unexpectedNullCharacter), n.name += qe;
15431
+ this._err(U.unexpectedNullCharacter), n.name += qe;
15442
15432
  break;
15443
15433
  }
15444
15434
  case E.EOF: {
15445
- this._err(j.eofInDoctype), n.forceQuirks = !0, this.emitCurrentDoctype(n), this._emitEOFToken();
15435
+ this._err(U.eofInDoctype), n.forceQuirks = !0, this.emitCurrentDoctype(n), this._emitEOFToken();
15446
15436
  break;
15447
15437
  }
15448
15438
  default:
@@ -15464,11 +15454,11 @@ class eb {
15464
15454
  break;
15465
15455
  }
15466
15456
  case E.EOF: {
15467
- this._err(j.eofInDoctype), n.forceQuirks = !0, this.emitCurrentDoctype(n), this._emitEOFToken();
15457
+ this._err(U.eofInDoctype), n.forceQuirks = !0, this.emitCurrentDoctype(n), this._emitEOFToken();
15468
15458
  break;
15469
15459
  }
15470
15460
  default:
15471
- this._consumeSequenceIfMatch(lt.PUBLIC, !1) ? this.state = C.AFTER_DOCTYPE_PUBLIC_KEYWORD : this._consumeSequenceIfMatch(lt.SYSTEM, !1) ? this.state = C.AFTER_DOCTYPE_SYSTEM_KEYWORD : this._ensureHibernation() || (this._err(j.invalidCharacterSequenceAfterDoctypeName), n.forceQuirks = !0, this.state = C.BOGUS_DOCTYPE, this._stateBogusDoctype(t));
15461
+ this._consumeSequenceIfMatch(lt.PUBLIC, !1) ? this.state = C.AFTER_DOCTYPE_PUBLIC_KEYWORD : this._consumeSequenceIfMatch(lt.SYSTEM, !1) ? this.state = C.AFTER_DOCTYPE_SYSTEM_KEYWORD : this._ensureHibernation() || (this._err(U.invalidCharacterSequenceAfterDoctypeName), n.forceQuirks = !0, this.state = C.BOGUS_DOCTYPE, this._stateBogusDoctype(t));
15472
15462
  }
15473
15463
  }
15474
15464
  // After DOCTYPE public keyword state
@@ -15484,23 +15474,23 @@ class eb {
15484
15474
  break;
15485
15475
  }
15486
15476
  case E.QUOTATION_MARK: {
15487
- this._err(j.missingWhitespaceAfterDoctypePublicKeyword), n.publicId = "", this.state = C.DOCTYPE_PUBLIC_IDENTIFIER_DOUBLE_QUOTED;
15477
+ this._err(U.missingWhitespaceAfterDoctypePublicKeyword), n.publicId = "", this.state = C.DOCTYPE_PUBLIC_IDENTIFIER_DOUBLE_QUOTED;
15488
15478
  break;
15489
15479
  }
15490
15480
  case E.APOSTROPHE: {
15491
- this._err(j.missingWhitespaceAfterDoctypePublicKeyword), n.publicId = "", this.state = C.DOCTYPE_PUBLIC_IDENTIFIER_SINGLE_QUOTED;
15481
+ this._err(U.missingWhitespaceAfterDoctypePublicKeyword), n.publicId = "", this.state = C.DOCTYPE_PUBLIC_IDENTIFIER_SINGLE_QUOTED;
15492
15482
  break;
15493
15483
  }
15494
15484
  case E.GREATER_THAN_SIGN: {
15495
- this._err(j.missingDoctypePublicIdentifier), n.forceQuirks = !0, this.state = C.DATA, this.emitCurrentDoctype(n);
15485
+ this._err(U.missingDoctypePublicIdentifier), n.forceQuirks = !0, this.state = C.DATA, this.emitCurrentDoctype(n);
15496
15486
  break;
15497
15487
  }
15498
15488
  case E.EOF: {
15499
- this._err(j.eofInDoctype), n.forceQuirks = !0, this.emitCurrentDoctype(n), this._emitEOFToken();
15489
+ this._err(U.eofInDoctype), n.forceQuirks = !0, this.emitCurrentDoctype(n), this._emitEOFToken();
15500
15490
  break;
15501
15491
  }
15502
15492
  default:
15503
- this._err(j.missingQuoteBeforeDoctypePublicIdentifier), n.forceQuirks = !0, this.state = C.BOGUS_DOCTYPE, this._stateBogusDoctype(t);
15493
+ this._err(U.missingQuoteBeforeDoctypePublicIdentifier), n.forceQuirks = !0, this.state = C.BOGUS_DOCTYPE, this._stateBogusDoctype(t);
15504
15494
  }
15505
15495
  }
15506
15496
  // Before DOCTYPE public identifier state
@@ -15522,15 +15512,15 @@ class eb {
15522
15512
  break;
15523
15513
  }
15524
15514
  case E.GREATER_THAN_SIGN: {
15525
- this._err(j.missingDoctypePublicIdentifier), n.forceQuirks = !0, this.state = C.DATA, this.emitCurrentDoctype(n);
15515
+ this._err(U.missingDoctypePublicIdentifier), n.forceQuirks = !0, this.state = C.DATA, this.emitCurrentDoctype(n);
15526
15516
  break;
15527
15517
  }
15528
15518
  case E.EOF: {
15529
- this._err(j.eofInDoctype), n.forceQuirks = !0, this.emitCurrentDoctype(n), this._emitEOFToken();
15519
+ this._err(U.eofInDoctype), n.forceQuirks = !0, this.emitCurrentDoctype(n), this._emitEOFToken();
15530
15520
  break;
15531
15521
  }
15532
15522
  default:
15533
- this._err(j.missingQuoteBeforeDoctypePublicIdentifier), n.forceQuirks = !0, this.state = C.BOGUS_DOCTYPE, this._stateBogusDoctype(t);
15523
+ this._err(U.missingQuoteBeforeDoctypePublicIdentifier), n.forceQuirks = !0, this.state = C.BOGUS_DOCTYPE, this._stateBogusDoctype(t);
15534
15524
  }
15535
15525
  }
15536
15526
  // DOCTYPE public identifier (double-quoted) state
@@ -15543,15 +15533,15 @@ class eb {
15543
15533
  break;
15544
15534
  }
15545
15535
  case E.NULL: {
15546
- this._err(j.unexpectedNullCharacter), n.publicId += qe;
15536
+ this._err(U.unexpectedNullCharacter), n.publicId += qe;
15547
15537
  break;
15548
15538
  }
15549
15539
  case E.GREATER_THAN_SIGN: {
15550
- this._err(j.abruptDoctypePublicIdentifier), n.forceQuirks = !0, this.emitCurrentDoctype(n), this.state = C.DATA;
15540
+ this._err(U.abruptDoctypePublicIdentifier), n.forceQuirks = !0, this.emitCurrentDoctype(n), this.state = C.DATA;
15551
15541
  break;
15552
15542
  }
15553
15543
  case E.EOF: {
15554
- this._err(j.eofInDoctype), n.forceQuirks = !0, this.emitCurrentDoctype(n), this._emitEOFToken();
15544
+ this._err(U.eofInDoctype), n.forceQuirks = !0, this.emitCurrentDoctype(n), this._emitEOFToken();
15555
15545
  break;
15556
15546
  }
15557
15547
  default:
@@ -15568,15 +15558,15 @@ class eb {
15568
15558
  break;
15569
15559
  }
15570
15560
  case E.NULL: {
15571
- this._err(j.unexpectedNullCharacter), n.publicId += qe;
15561
+ this._err(U.unexpectedNullCharacter), n.publicId += qe;
15572
15562
  break;
15573
15563
  }
15574
15564
  case E.GREATER_THAN_SIGN: {
15575
- this._err(j.abruptDoctypePublicIdentifier), n.forceQuirks = !0, this.emitCurrentDoctype(n), this.state = C.DATA;
15565
+ this._err(U.abruptDoctypePublicIdentifier), n.forceQuirks = !0, this.emitCurrentDoctype(n), this.state = C.DATA;
15576
15566
  break;
15577
15567
  }
15578
15568
  case E.EOF: {
15579
- this._err(j.eofInDoctype), n.forceQuirks = !0, this.emitCurrentDoctype(n), this._emitEOFToken();
15569
+ this._err(U.eofInDoctype), n.forceQuirks = !0, this.emitCurrentDoctype(n), this._emitEOFToken();
15580
15570
  break;
15581
15571
  }
15582
15572
  default:
@@ -15600,19 +15590,19 @@ class eb {
15600
15590
  break;
15601
15591
  }
15602
15592
  case E.QUOTATION_MARK: {
15603
- this._err(j.missingWhitespaceBetweenDoctypePublicAndSystemIdentifiers), n.systemId = "", this.state = C.DOCTYPE_SYSTEM_IDENTIFIER_DOUBLE_QUOTED;
15593
+ this._err(U.missingWhitespaceBetweenDoctypePublicAndSystemIdentifiers), n.systemId = "", this.state = C.DOCTYPE_SYSTEM_IDENTIFIER_DOUBLE_QUOTED;
15604
15594
  break;
15605
15595
  }
15606
15596
  case E.APOSTROPHE: {
15607
- this._err(j.missingWhitespaceBetweenDoctypePublicAndSystemIdentifiers), n.systemId = "", this.state = C.DOCTYPE_SYSTEM_IDENTIFIER_SINGLE_QUOTED;
15597
+ this._err(U.missingWhitespaceBetweenDoctypePublicAndSystemIdentifiers), n.systemId = "", this.state = C.DOCTYPE_SYSTEM_IDENTIFIER_SINGLE_QUOTED;
15608
15598
  break;
15609
15599
  }
15610
15600
  case E.EOF: {
15611
- this._err(j.eofInDoctype), n.forceQuirks = !0, this.emitCurrentDoctype(n), this._emitEOFToken();
15601
+ this._err(U.eofInDoctype), n.forceQuirks = !0, this.emitCurrentDoctype(n), this._emitEOFToken();
15612
15602
  break;
15613
15603
  }
15614
15604
  default:
15615
- this._err(j.missingQuoteBeforeDoctypeSystemIdentifier), n.forceQuirks = !0, this.state = C.BOGUS_DOCTYPE, this._stateBogusDoctype(t);
15605
+ this._err(U.missingQuoteBeforeDoctypeSystemIdentifier), n.forceQuirks = !0, this.state = C.BOGUS_DOCTYPE, this._stateBogusDoctype(t);
15616
15606
  }
15617
15607
  }
15618
15608
  // Between DOCTYPE public and system identifiers state
@@ -15638,11 +15628,11 @@ class eb {
15638
15628
  break;
15639
15629
  }
15640
15630
  case E.EOF: {
15641
- this._err(j.eofInDoctype), n.forceQuirks = !0, this.emitCurrentDoctype(n), this._emitEOFToken();
15631
+ this._err(U.eofInDoctype), n.forceQuirks = !0, this.emitCurrentDoctype(n), this._emitEOFToken();
15642
15632
  break;
15643
15633
  }
15644
15634
  default:
15645
- this._err(j.missingQuoteBeforeDoctypeSystemIdentifier), n.forceQuirks = !0, this.state = C.BOGUS_DOCTYPE, this._stateBogusDoctype(t);
15635
+ this._err(U.missingQuoteBeforeDoctypeSystemIdentifier), n.forceQuirks = !0, this.state = C.BOGUS_DOCTYPE, this._stateBogusDoctype(t);
15646
15636
  }
15647
15637
  }
15648
15638
  // After DOCTYPE system keyword state
@@ -15658,23 +15648,23 @@ class eb {
15658
15648
  break;
15659
15649
  }
15660
15650
  case E.QUOTATION_MARK: {
15661
- this._err(j.missingWhitespaceAfterDoctypeSystemKeyword), n.systemId = "", this.state = C.DOCTYPE_SYSTEM_IDENTIFIER_DOUBLE_QUOTED;
15651
+ this._err(U.missingWhitespaceAfterDoctypeSystemKeyword), n.systemId = "", this.state = C.DOCTYPE_SYSTEM_IDENTIFIER_DOUBLE_QUOTED;
15662
15652
  break;
15663
15653
  }
15664
15654
  case E.APOSTROPHE: {
15665
- this._err(j.missingWhitespaceAfterDoctypeSystemKeyword), n.systemId = "", this.state = C.DOCTYPE_SYSTEM_IDENTIFIER_SINGLE_QUOTED;
15655
+ this._err(U.missingWhitespaceAfterDoctypeSystemKeyword), n.systemId = "", this.state = C.DOCTYPE_SYSTEM_IDENTIFIER_SINGLE_QUOTED;
15666
15656
  break;
15667
15657
  }
15668
15658
  case E.GREATER_THAN_SIGN: {
15669
- this._err(j.missingDoctypeSystemIdentifier), n.forceQuirks = !0, this.state = C.DATA, this.emitCurrentDoctype(n);
15659
+ this._err(U.missingDoctypeSystemIdentifier), n.forceQuirks = !0, this.state = C.DATA, this.emitCurrentDoctype(n);
15670
15660
  break;
15671
15661
  }
15672
15662
  case E.EOF: {
15673
- this._err(j.eofInDoctype), n.forceQuirks = !0, this.emitCurrentDoctype(n), this._emitEOFToken();
15663
+ this._err(U.eofInDoctype), n.forceQuirks = !0, this.emitCurrentDoctype(n), this._emitEOFToken();
15674
15664
  break;
15675
15665
  }
15676
15666
  default:
15677
- this._err(j.missingQuoteBeforeDoctypeSystemIdentifier), n.forceQuirks = !0, this.state = C.BOGUS_DOCTYPE, this._stateBogusDoctype(t);
15667
+ this._err(U.missingQuoteBeforeDoctypeSystemIdentifier), n.forceQuirks = !0, this.state = C.BOGUS_DOCTYPE, this._stateBogusDoctype(t);
15678
15668
  }
15679
15669
  }
15680
15670
  // Before DOCTYPE system identifier state
@@ -15696,15 +15686,15 @@ class eb {
15696
15686
  break;
15697
15687
  }
15698
15688
  case E.GREATER_THAN_SIGN: {
15699
- this._err(j.missingDoctypeSystemIdentifier), n.forceQuirks = !0, this.state = C.DATA, this.emitCurrentDoctype(n);
15689
+ this._err(U.missingDoctypeSystemIdentifier), n.forceQuirks = !0, this.state = C.DATA, this.emitCurrentDoctype(n);
15700
15690
  break;
15701
15691
  }
15702
15692
  case E.EOF: {
15703
- this._err(j.eofInDoctype), n.forceQuirks = !0, this.emitCurrentDoctype(n), this._emitEOFToken();
15693
+ this._err(U.eofInDoctype), n.forceQuirks = !0, this.emitCurrentDoctype(n), this._emitEOFToken();
15704
15694
  break;
15705
15695
  }
15706
15696
  default:
15707
- this._err(j.missingQuoteBeforeDoctypeSystemIdentifier), n.forceQuirks = !0, this.state = C.BOGUS_DOCTYPE, this._stateBogusDoctype(t);
15697
+ this._err(U.missingQuoteBeforeDoctypeSystemIdentifier), n.forceQuirks = !0, this.state = C.BOGUS_DOCTYPE, this._stateBogusDoctype(t);
15708
15698
  }
15709
15699
  }
15710
15700
  // DOCTYPE system identifier (double-quoted) state
@@ -15717,15 +15707,15 @@ class eb {
15717
15707
  break;
15718
15708
  }
15719
15709
  case E.NULL: {
15720
- this._err(j.unexpectedNullCharacter), n.systemId += qe;
15710
+ this._err(U.unexpectedNullCharacter), n.systemId += qe;
15721
15711
  break;
15722
15712
  }
15723
15713
  case E.GREATER_THAN_SIGN: {
15724
- this._err(j.abruptDoctypeSystemIdentifier), n.forceQuirks = !0, this.emitCurrentDoctype(n), this.state = C.DATA;
15714
+ this._err(U.abruptDoctypeSystemIdentifier), n.forceQuirks = !0, this.emitCurrentDoctype(n), this.state = C.DATA;
15725
15715
  break;
15726
15716
  }
15727
15717
  case E.EOF: {
15728
- this._err(j.eofInDoctype), n.forceQuirks = !0, this.emitCurrentDoctype(n), this._emitEOFToken();
15718
+ this._err(U.eofInDoctype), n.forceQuirks = !0, this.emitCurrentDoctype(n), this._emitEOFToken();
15729
15719
  break;
15730
15720
  }
15731
15721
  default:
@@ -15742,15 +15732,15 @@ class eb {
15742
15732
  break;
15743
15733
  }
15744
15734
  case E.NULL: {
15745
- this._err(j.unexpectedNullCharacter), n.systemId += qe;
15735
+ this._err(U.unexpectedNullCharacter), n.systemId += qe;
15746
15736
  break;
15747
15737
  }
15748
15738
  case E.GREATER_THAN_SIGN: {
15749
- this._err(j.abruptDoctypeSystemIdentifier), n.forceQuirks = !0, this.emitCurrentDoctype(n), this.state = C.DATA;
15739
+ this._err(U.abruptDoctypeSystemIdentifier), n.forceQuirks = !0, this.emitCurrentDoctype(n), this.state = C.DATA;
15750
15740
  break;
15751
15741
  }
15752
15742
  case E.EOF: {
15753
- this._err(j.eofInDoctype), n.forceQuirks = !0, this.emitCurrentDoctype(n), this._emitEOFToken();
15743
+ this._err(U.eofInDoctype), n.forceQuirks = !0, this.emitCurrentDoctype(n), this._emitEOFToken();
15754
15744
  break;
15755
15745
  }
15756
15746
  default:
@@ -15772,11 +15762,11 @@ class eb {
15772
15762
  break;
15773
15763
  }
15774
15764
  case E.EOF: {
15775
- this._err(j.eofInDoctype), n.forceQuirks = !0, this.emitCurrentDoctype(n), this._emitEOFToken();
15765
+ this._err(U.eofInDoctype), n.forceQuirks = !0, this.emitCurrentDoctype(n), this._emitEOFToken();
15776
15766
  break;
15777
15767
  }
15778
15768
  default:
15779
- this._err(j.unexpectedCharacterAfterDoctypeSystemIdentifier), this.state = C.BOGUS_DOCTYPE, this._stateBogusDoctype(t);
15769
+ this._err(U.unexpectedCharacterAfterDoctypeSystemIdentifier), this.state = C.BOGUS_DOCTYPE, this._stateBogusDoctype(t);
15780
15770
  }
15781
15771
  }
15782
15772
  // Bogus DOCTYPE state
@@ -15789,7 +15779,7 @@ class eb {
15789
15779
  break;
15790
15780
  }
15791
15781
  case E.NULL: {
15792
- this._err(j.unexpectedNullCharacter);
15782
+ this._err(U.unexpectedNullCharacter);
15793
15783
  break;
15794
15784
  }
15795
15785
  case E.EOF: {
@@ -15807,7 +15797,7 @@ class eb {
15807
15797
  break;
15808
15798
  }
15809
15799
  case E.EOF: {
15810
- this._err(j.eofInCdata), this._emitEOFToken();
15800
+ this._err(U.eofInCdata), this._emitEOFToken();
15811
15801
  break;
15812
15802
  }
15813
15803
  default:
@@ -15851,7 +15841,7 @@ class eb {
15851
15841
  // Ambiguos ampersand state
15852
15842
  //------------------------------------------------------------------
15853
15843
  _stateAmbiguousAmpersand(t) {
15854
- Ko(t) ? this._flushCodePointConsumedAsCharacterReference(t) : (t === E.SEMICOLON && this._err(j.unknownNamedCharacterReference), this.state = this.returnState, this._callState(t));
15844
+ Ko(t) ? this._flushCodePointConsumedAsCharacterReference(t) : (t === E.SEMICOLON && this._err(U.unknownNamedCharacterReference), this.state = this.returnState, this._callState(t));
15855
15845
  }
15856
15846
  }
15857
15847
  const Oc = /* @__PURE__ */ new Set([o.DD, o.DT, o.LI, o.OPTGROUP, o.OPTION, o.P, o.RB, o.RP, o.RT, o.RTC]), Zo = /* @__PURE__ */ new Set([
@@ -15888,7 +15878,7 @@ class ob {
15888
15878
  }
15889
15879
  //Update current element
15890
15880
  _isInTemplate() {
15891
- return this.currentTagId === o.TEMPLATE && this.treeAdapter.getNamespaceURI(this.current) === G.HTML;
15881
+ return this.currentTagId === o.TEMPLATE && this.treeAdapter.getNamespaceURI(this.current) === X.HTML;
15892
15882
  }
15893
15883
  _updateCurrentElement() {
15894
15884
  this.current = this.items[this.stackTop], this.currentTagId = this.tagIDs[this.stackTop];
@@ -15913,7 +15903,7 @@ class ob {
15913
15903
  let n = this.stackTop + 1;
15914
15904
  do
15915
15905
  n = this.tagIDs.lastIndexOf(t, n - 1);
15916
- while (n > 0 && this.treeAdapter.getNamespaceURI(this.items[n]) !== G.HTML);
15906
+ while (n > 0 && this.treeAdapter.getNamespaceURI(this.items[n]) !== X.HTML);
15917
15907
  this.shortenToLength(Math.max(n, 0));
15918
15908
  }
15919
15909
  shortenToLength(t) {
@@ -15931,10 +15921,10 @@ class ob {
15931
15921
  this.shortenToLength(Math.max(r, 0));
15932
15922
  }
15933
15923
  popUntilNumberedHeaderPopped() {
15934
- this.popUntilPopped(yi, G.HTML);
15924
+ this.popUntilPopped(yi, X.HTML);
15935
15925
  }
15936
15926
  popUntilTableCellPopped() {
15937
- this.popUntilPopped(ub, G.HTML);
15927
+ this.popUntilPopped(ub, X.HTML);
15938
15928
  }
15939
15929
  popAllUpToHtmlElement() {
15940
15930
  this.tmplCount = 0, this.shortenToLength(1);
@@ -15950,13 +15940,13 @@ class ob {
15950
15940
  this.shortenToLength(r + 1);
15951
15941
  }
15952
15942
  clearBackToTableContext() {
15953
- this.clearBackTo(ib, G.HTML);
15943
+ this.clearBackTo(ib, X.HTML);
15954
15944
  }
15955
15945
  clearBackToTableBodyContext() {
15956
- this.clearBackTo(ab, G.HTML);
15946
+ this.clearBackTo(ab, X.HTML);
15957
15947
  }
15958
15948
  clearBackToTableRowContext() {
15959
- this.clearBackTo(rb, G.HTML);
15949
+ this.clearBackTo(rb, X.HTML);
15960
15950
  }
15961
15951
  remove(t) {
15962
15952
  const n = this._indexOf(t);
@@ -15981,19 +15971,19 @@ class ob {
15981
15971
  for (let r = this.stackTop; r >= 0; r--) {
15982
15972
  const a = this.tagIDs[r];
15983
15973
  switch (this.treeAdapter.getNamespaceURI(this.items[r])) {
15984
- case G.HTML: {
15974
+ case X.HTML: {
15985
15975
  if (a === t)
15986
15976
  return !0;
15987
15977
  if (n.has(a))
15988
15978
  return !1;
15989
15979
  break;
15990
15980
  }
15991
- case G.SVG: {
15981
+ case X.SVG: {
15992
15982
  if (es.has(a))
15993
15983
  return !1;
15994
15984
  break;
15995
15985
  }
15996
- case G.MATHML: {
15986
+ case X.MATHML: {
15997
15987
  if (Jo.has(a))
15998
15988
  return !1;
15999
15989
  break;
@@ -16015,19 +16005,19 @@ class ob {
16015
16005
  for (let t = this.stackTop; t >= 0; t--) {
16016
16006
  const n = this.tagIDs[t];
16017
16007
  switch (this.treeAdapter.getNamespaceURI(this.items[t])) {
16018
- case G.HTML: {
16008
+ case X.HTML: {
16019
16009
  if (yi.has(n))
16020
16010
  return !0;
16021
16011
  if (Vr.has(n))
16022
16012
  return !1;
16023
16013
  break;
16024
16014
  }
16025
- case G.SVG: {
16015
+ case X.SVG: {
16026
16016
  if (es.has(n))
16027
16017
  return !1;
16028
16018
  break;
16029
16019
  }
16030
- case G.MATHML: {
16020
+ case X.MATHML: {
16031
16021
  if (Jo.has(n))
16032
16022
  return !1;
16033
16023
  break;
@@ -16038,7 +16028,7 @@ class ob {
16038
16028
  }
16039
16029
  hasInTableScope(t) {
16040
16030
  for (let n = this.stackTop; n >= 0; n--)
16041
- if (this.treeAdapter.getNamespaceURI(this.items[n]) === G.HTML)
16031
+ if (this.treeAdapter.getNamespaceURI(this.items[n]) === X.HTML)
16042
16032
  switch (this.tagIDs[n]) {
16043
16033
  case t:
16044
16034
  return !0;
@@ -16050,7 +16040,7 @@ class ob {
16050
16040
  }
16051
16041
  hasTableBodyContextInTableScope() {
16052
16042
  for (let t = this.stackTop; t >= 0; t--)
16053
- if (this.treeAdapter.getNamespaceURI(this.items[t]) === G.HTML)
16043
+ if (this.treeAdapter.getNamespaceURI(this.items[t]) === X.HTML)
16054
16044
  switch (this.tagIDs[t]) {
16055
16045
  case o.TBODY:
16056
16046
  case o.THEAD:
@@ -16064,7 +16054,7 @@ class ob {
16064
16054
  }
16065
16055
  hasInSelectScope(t) {
16066
16056
  for (let n = this.stackTop; n >= 0; n--)
16067
- if (this.treeAdapter.getNamespaceURI(this.items[n]) === G.HTML)
16057
+ if (this.treeAdapter.getNamespaceURI(this.items[n]) === X.HTML)
16068
16058
  switch (this.tagIDs[n]) {
16069
16059
  case t:
16070
16060
  return !0;
@@ -16484,17 +16474,17 @@ const rs = {
16484
16474
  "yChannelSelector",
16485
16475
  "zoomAndPan"
16486
16476
  ].map((e) => [e.toLowerCase(), e])), Tb = /* @__PURE__ */ new Map([
16487
- ["xlink:actuate", { prefix: "xlink", name: "actuate", namespace: G.XLINK }],
16488
- ["xlink:arcrole", { prefix: "xlink", name: "arcrole", namespace: G.XLINK }],
16489
- ["xlink:href", { prefix: "xlink", name: "href", namespace: G.XLINK }],
16490
- ["xlink:role", { prefix: "xlink", name: "role", namespace: G.XLINK }],
16491
- ["xlink:show", { prefix: "xlink", name: "show", namespace: G.XLINK }],
16492
- ["xlink:title", { prefix: "xlink", name: "title", namespace: G.XLINK }],
16493
- ["xlink:type", { prefix: "xlink", name: "type", namespace: G.XLINK }],
16494
- ["xml:lang", { prefix: "xml", name: "lang", namespace: G.XML }],
16495
- ["xml:space", { prefix: "xml", name: "space", namespace: G.XML }],
16496
- ["xmlns", { prefix: "", name: "xmlns", namespace: G.XMLNS }],
16497
- ["xmlns:xlink", { prefix: "xmlns", name: "xlink", namespace: G.XMLNS }]
16477
+ ["xlink:actuate", { prefix: "xlink", name: "actuate", namespace: X.XLINK }],
16478
+ ["xlink:arcrole", { prefix: "xlink", name: "arcrole", namespace: X.XLINK }],
16479
+ ["xlink:href", { prefix: "xlink", name: "href", namespace: X.XLINK }],
16480
+ ["xlink:role", { prefix: "xlink", name: "role", namespace: X.XLINK }],
16481
+ ["xlink:show", { prefix: "xlink", name: "show", namespace: X.XLINK }],
16482
+ ["xlink:title", { prefix: "xlink", name: "title", namespace: X.XLINK }],
16483
+ ["xlink:type", { prefix: "xlink", name: "type", namespace: X.XLINK }],
16484
+ ["xml:lang", { prefix: "xml", name: "lang", namespace: X.XML }],
16485
+ ["xml:space", { prefix: "xml", name: "space", namespace: X.XML }],
16486
+ ["xmlns", { prefix: "", name: "xmlns", namespace: X.XMLNS }],
16487
+ ["xmlns:xlink", { prefix: "xmlns", name: "xlink", namespace: X.XMLNS }]
16498
16488
  ]), yb = new Map([
16499
16489
  "altGlyph",
16500
16490
  "altGlyphDef",
@@ -16606,20 +16596,20 @@ function Ab(e) {
16606
16596
  t != null && (e.tagName = t, e.tagID = Dn(e.tagName));
16607
16597
  }
16608
16598
  function Sb(e, t) {
16609
- return t === G.MATHML && (e === o.MI || e === o.MO || e === o.MN || e === o.MS || e === o.MTEXT);
16599
+ return t === X.MATHML && (e === o.MI || e === o.MO || e === o.MN || e === o.MS || e === o.MTEXT);
16610
16600
  }
16611
16601
  function xb(e, t, n) {
16612
- if (t === G.MATHML && e === o.ANNOTATION_XML) {
16602
+ if (t === X.MATHML && e === o.ANNOTATION_XML) {
16613
16603
  for (let r = 0; r < n.length; r++)
16614
16604
  if (n[r].name === on.ENCODING) {
16615
16605
  const a = n[r].value.toLowerCase();
16616
16606
  return a === rs.TEXT_HTML || a === rs.APPLICATION_XML;
16617
16607
  }
16618
16608
  }
16619
- return t === G.SVG && (e === o.FOREIGN_OBJECT || e === o.DESC || e === o.TITLE);
16609
+ return t === X.SVG && (e === o.FOREIGN_OBJECT || e === o.DESC || e === o.TITLE);
16620
16610
  }
16621
16611
  function vb(e, t, n, r) {
16622
- return (!r || r === G.HTML) && xb(e, t, n) || (!r || r === G.MATHML) && Sb(e, t);
16612
+ return (!r || r === X.HTML) && xb(e, t, n) || (!r || r === X.MATHML) && Sb(e, t);
16623
16613
  }
16624
16614
  const Ob = "hidden", Ib = 8, Nb = 3;
16625
16615
  var O;
@@ -16656,8 +16646,8 @@ class is {
16656
16646
  ...as,
16657
16647
  ...n
16658
16648
  };
16659
- t ?? (t = r.treeAdapter.createElement(R.TEMPLATE, G.HTML, []));
16660
- const a = r.treeAdapter.createElement("documentmock", G.HTML, []), i = new this(r, a, t);
16649
+ t ?? (t = r.treeAdapter.createElement(R.TEMPLATE, X.HTML, []));
16650
+ const a = r.treeAdapter.createElement("documentmock", X.HTML, []), i = new this(r, a, t);
16661
16651
  return i.fragmentContextID === o.TEMPLATE && i.tmplInsertionModeStack.unshift(O.IN_TEMPLATE), i._initTokenizerForFragmentParsing(), i._insertFakeRootElement(), i._resetInsertionMode(), i._findFormInFragmentContext(), i;
16662
16652
  }
16663
16653
  getFragment() {
@@ -16696,12 +16686,12 @@ class is {
16696
16686
  }
16697
16687
  }
16698
16688
  _setContextModes(t, n) {
16699
- const r = t === this.document || t && this.treeAdapter.getNamespaceURI(t) === G.HTML;
16689
+ const r = t === this.document || t && this.treeAdapter.getNamespaceURI(t) === X.HTML;
16700
16690
  this.currentNotInHTML = !r, this.tokenizer.inForeignNode = !r && t !== void 0 && n !== void 0 && !this._isIntegrationPoint(n, t);
16701
16691
  }
16702
16692
  /** @protected */
16703
16693
  _switchToTextParsing(t, n) {
16704
- this._insertElement(t, G.HTML), this.tokenizer.state = n, this.originalInsertionMode = this.insertionMode, this.insertionMode = O.TEXT;
16694
+ this._insertElement(t, X.HTML), this.tokenizer.state = n, this.originalInsertionMode = this.insertionMode, this.insertionMode = O.TEXT;
16705
16695
  }
16706
16696
  switchToPlaintextParsing() {
16707
16697
  this.insertionMode = O.TEXT, this.originalInsertionMode = O.IN_BODY, this.tokenizer.state = We.PLAINTEXT;
@@ -16723,7 +16713,7 @@ class is {
16723
16713
  }
16724
16714
  }
16725
16715
  _initTokenizerForFragmentParsing() {
16726
- if (!(!this.fragmentContext || this.treeAdapter.getNamespaceURI(this.fragmentContext) !== G.HTML))
16716
+ if (!(!this.fragmentContext || this.treeAdapter.getNamespaceURI(this.fragmentContext) !== X.HTML))
16727
16717
  switch (this.fragmentContextID) {
16728
16718
  case o.TITLE:
16729
16719
  case o.TEXTAREA: {
@@ -16790,17 +16780,17 @@ class is {
16790
16780
  }
16791
16781
  /** @protected */
16792
16782
  _insertFakeElement(t, n) {
16793
- const r = this.treeAdapter.createElement(t, G.HTML, []);
16783
+ const r = this.treeAdapter.createElement(t, X.HTML, []);
16794
16784
  this._attachElementToTree(r, null), this.openElements.push(r, n);
16795
16785
  }
16796
16786
  /** @protected */
16797
16787
  _insertTemplate(t) {
16798
- const n = this.treeAdapter.createElement(t.tagName, G.HTML, t.attrs), r = this.treeAdapter.createDocumentFragment();
16788
+ const n = this.treeAdapter.createElement(t.tagName, X.HTML, t.attrs), r = this.treeAdapter.createDocumentFragment();
16799
16789
  this.treeAdapter.setTemplateContent(n, r), this._attachElementToTree(n, t.location), this.openElements.push(n, t.tagID), this.options.sourceCodeLocationInfo && this.treeAdapter.setNodeSourceCodeLocation(r, null);
16800
16790
  }
16801
16791
  /** @protected */
16802
16792
  _insertFakeRootElement() {
16803
- const t = this.treeAdapter.createElement(R.HTML, G.HTML, []);
16793
+ const t = this.treeAdapter.createElement(R.HTML, X.HTML, []);
16804
16794
  this.options.sourceCodeLocationInfo && this.treeAdapter.setNodeSourceCodeLocation(t, null), this.treeAdapter.appendChild(this.openElements.current, t), this.openElements.push(t, o.HTML);
16805
16795
  }
16806
16796
  /** @protected */
@@ -16849,11 +16839,11 @@ class is {
16849
16839
  if (!this.currentNotInHTML)
16850
16840
  return !1;
16851
16841
  let n, r;
16852
- return this.openElements.stackTop === 0 && this.fragmentContext ? (n = this.fragmentContext, r = this.fragmentContextID) : { current: n, currentTagId: r } = this.openElements, t.tagID === o.SVG && this.treeAdapter.getTagName(n) === R.ANNOTATION_XML && this.treeAdapter.getNamespaceURI(n) === G.MATHML ? !1 : (
16842
+ return this.openElements.stackTop === 0 && this.fragmentContext ? (n = this.fragmentContext, r = this.fragmentContextID) : { current: n, currentTagId: r } = this.openElements, t.tagID === o.SVG && this.treeAdapter.getTagName(n) === R.ANNOTATION_XML && this.treeAdapter.getNamespaceURI(n) === X.MATHML ? !1 : (
16853
16843
  // Check that `current` is not an integration point for HTML or MathML elements.
16854
16844
  this.tokenizer.inForeignNode || // If it _is_ an integration point, then we might have to check that it is not an HTML
16855
16845
  // integration point.
16856
- (t.tagID === o.MGLYPH || t.tagID === o.MALIGNMARK) && r !== void 0 && !this._isIntegrationPoint(r, n, G.HTML)
16846
+ (t.tagID === o.MGLYPH || t.tagID === o.MALIGNMARK) && r !== void 0 && !this._isIntegrationPoint(r, n, X.HTML)
16857
16847
  );
16858
16848
  }
16859
16849
  /** @protected */
@@ -17014,7 +17004,7 @@ class is {
17014
17004
  const n = this.openElements.items[t];
17015
17005
  switch (this.openElements.tagIDs[t]) {
17016
17006
  case o.TEMPLATE: {
17017
- if (this.treeAdapter.getNamespaceURI(n) === G.HTML)
17007
+ if (this.treeAdapter.getNamespaceURI(n) === X.HTML)
17018
17008
  return { parent: this.treeAdapter.getTemplateContent(n), beforeElement: null };
17019
17009
  break;
17020
17010
  }
@@ -17214,7 +17204,7 @@ class is {
17214
17204
  case O.IN_HEAD:
17215
17205
  case O.IN_HEAD_NO_SCRIPT:
17216
17206
  case O.AFTER_HEAD: {
17217
- this._err(t, j.misplacedDoctype);
17207
+ this._err(t, U.misplacedDoctype);
17218
17208
  break;
17219
17209
  }
17220
17210
  case O.IN_TABLE_TEXT: {
@@ -17225,7 +17215,7 @@ class is {
17225
17215
  }
17226
17216
  /** @internal */
17227
17217
  onStartTag(t) {
17228
- this.skipNextNewLine = !1, this.currentToken = t, this._processStartTag(t), t.selfClosing && !t.ackSelfClosing && this._err(t, j.nonVoidHtmlElementStartTagWithTrailingSolidus);
17218
+ this.skipNextNewLine = !1, this.currentToken = t, this._processStartTag(t), t.selfClosing && !t.ackSelfClosing && this._err(t, U.nonVoidHtmlElementStartTagWithTrailingSolidus);
17229
17219
  }
17230
17220
  /**
17231
17221
  * Processes a given start tag.
@@ -17572,7 +17562,7 @@ function Pb(e, t, n) {
17572
17562
  e._fosterParentElement(n);
17573
17563
  else {
17574
17564
  const i = e.treeAdapter.getNamespaceURI(t);
17575
- a === o.TEMPLATE && i === G.HTML && (t = e.treeAdapter.getTemplateContent(t)), e.treeAdapter.appendChild(t, n);
17565
+ a === o.TEMPLATE && i === X.HTML && (t = e.treeAdapter.getTemplateContent(t)), e.treeAdapter.appendChild(t, n);
17576
17566
  }
17577
17567
  }
17578
17568
  function Mb(e, t, n) {
@@ -17618,13 +17608,13 @@ function Qi(e, t) {
17618
17608
  function Hb(e, t) {
17619
17609
  e._setDocumentType(t);
17620
17610
  const n = t.forceQuirks ? _t.QUIRKS : mb(t);
17621
- pb(t) || e._err(t, j.nonConformingDoctype), e.treeAdapter.setDocumentMode(e.document, n), e.insertionMode = O.BEFORE_HTML;
17611
+ pb(t) || e._err(t, U.nonConformingDoctype), e.treeAdapter.setDocumentMode(e.document, n), e.insertionMode = O.BEFORE_HTML;
17622
17612
  }
17623
17613
  function Wn(e, t) {
17624
- e._err(t, j.missingDoctype, !0), e.treeAdapter.setDocumentMode(e.document, _t.QUIRKS), e.insertionMode = O.BEFORE_HTML, e._processToken(t);
17614
+ e._err(t, U.missingDoctype, !0), e.treeAdapter.setDocumentMode(e.document, _t.QUIRKS), e.insertionMode = O.BEFORE_HTML, e._processToken(t);
17625
17615
  }
17626
17616
  function Ub(e, t) {
17627
- t.tagID === o.HTML ? (e._insertElement(t, G.HTML), e.insertionMode = O.BEFORE_HEAD) : ar(e, t);
17617
+ t.tagID === o.HTML ? (e._insertElement(t, X.HTML), e.insertionMode = O.BEFORE_HEAD) : ar(e, t);
17628
17618
  }
17629
17619
  function jb(e, t) {
17630
17620
  const n = t.tagID;
@@ -17640,7 +17630,7 @@ function qb(e, t) {
17640
17630
  break;
17641
17631
  }
17642
17632
  case o.HEAD: {
17643
- e._insertElement(t, G.HTML), e.headElement = e.openElements.current, e.insertionMode = O.IN_HEAD;
17633
+ e._insertElement(t, X.HTML), e.headElement = e.openElements.current, e.insertionMode = O.IN_HEAD;
17644
17634
  break;
17645
17635
  }
17646
17636
  default:
@@ -17649,7 +17639,7 @@ function qb(e, t) {
17649
17639
  }
17650
17640
  function zb(e, t) {
17651
17641
  const n = t.tagID;
17652
- n === o.HEAD || n === o.BODY || n === o.HTML || n === o.BR ? ir(e, t) : e._err(t, j.endTagWithoutMatchingOpenElement);
17642
+ n === o.HEAD || n === o.BODY || n === o.HTML || n === o.BR ? ir(e, t) : e._err(t, U.endTagWithoutMatchingOpenElement);
17653
17643
  }
17654
17644
  function ir(e, t) {
17655
17645
  e._insertFakeElement(R.HEAD, o.HEAD), e.headElement = e.openElements.current, e.insertionMode = O.IN_HEAD, e._processToken(t);
@@ -17665,7 +17655,7 @@ function Lt(e, t) {
17665
17655
  case o.BGSOUND:
17666
17656
  case o.LINK:
17667
17657
  case o.META: {
17668
- e._appendElement(t, G.HTML), t.ackSelfClosing = !0;
17658
+ e._appendElement(t, X.HTML), t.ackSelfClosing = !0;
17669
17659
  break;
17670
17660
  }
17671
17661
  case o.TITLE: {
@@ -17673,7 +17663,7 @@ function Lt(e, t) {
17673
17663
  break;
17674
17664
  }
17675
17665
  case o.NOSCRIPT: {
17676
- e.options.scriptingEnabled ? e._switchToTextParsing(t, We.RAWTEXT) : (e._insertElement(t, G.HTML), e.insertionMode = O.IN_HEAD_NO_SCRIPT);
17666
+ e.options.scriptingEnabled ? e._switchToTextParsing(t, We.RAWTEXT) : (e._insertElement(t, X.HTML), e.insertionMode = O.IN_HEAD_NO_SCRIPT);
17677
17667
  break;
17678
17668
  }
17679
17669
  case o.NOFRAMES:
@@ -17690,7 +17680,7 @@ function Lt(e, t) {
17690
17680
  break;
17691
17681
  }
17692
17682
  case o.HEAD: {
17693
- e._err(t, j.misplacedStartTagForHeadElement);
17683
+ e._err(t, U.misplacedStartTagForHeadElement);
17694
17684
  break;
17695
17685
  }
17696
17686
  default:
@@ -17714,11 +17704,11 @@ function Yb(e, t) {
17714
17704
  break;
17715
17705
  }
17716
17706
  default:
17717
- e._err(t, j.endTagWithoutMatchingOpenElement);
17707
+ e._err(t, U.endTagWithoutMatchingOpenElement);
17718
17708
  }
17719
17709
  }
17720
17710
  function fn(e, t) {
17721
- e.openElements.tmplCount > 0 ? (e.openElements.generateImpliedEndTagsThoroughly(), e.openElements.currentTagId !== o.TEMPLATE && e._err(t, j.closingOfElementWithOpenChildElements), e.openElements.popUntilTagNamePopped(o.TEMPLATE), e.activeFormattingElements.clearToLastMarker(), e.tmplInsertionModeStack.shift(), e._resetInsertionMode()) : e._err(t, j.endTagWithoutMatchingOpenElement);
17711
+ e.openElements.tmplCount > 0 ? (e.openElements.generateImpliedEndTagsThoroughly(), e.openElements.currentTagId !== o.TEMPLATE && e._err(t, U.closingOfElementWithOpenChildElements), e.openElements.popUntilTagNamePopped(o.TEMPLATE), e.activeFormattingElements.clearToLastMarker(), e.tmplInsertionModeStack.shift(), e._resetInsertionMode()) : e._err(t, U.endTagWithoutMatchingOpenElement);
17722
17712
  }
17723
17713
  function ur(e, t) {
17724
17714
  e.openElements.pop(), e.insertionMode = O.AFTER_HEAD, e._processToken(t);
@@ -17740,7 +17730,7 @@ function $b(e, t) {
17740
17730
  break;
17741
17731
  }
17742
17732
  case o.NOSCRIPT: {
17743
- e._err(t, j.nestedNoscriptInHead);
17733
+ e._err(t, U.nestedNoscriptInHead);
17744
17734
  break;
17745
17735
  }
17746
17736
  default:
@@ -17758,11 +17748,11 @@ function Vb(e, t) {
17758
17748
  break;
17759
17749
  }
17760
17750
  default:
17761
- e._err(t, j.endTagWithoutMatchingOpenElement);
17751
+ e._err(t, U.endTagWithoutMatchingOpenElement);
17762
17752
  }
17763
17753
  }
17764
17754
  function or(e, t) {
17765
- const n = t.type === me.EOF ? j.openElementsLeftAfterEof : j.disallowedContentInNoscriptInHead;
17755
+ const n = t.type === me.EOF ? U.openElementsLeftAfterEof : U.disallowedContentInNoscriptInHead;
17766
17756
  e._err(t, n), e.openElements.pop(), e.insertionMode = O.IN_HEAD, e._processToken(t);
17767
17757
  }
17768
17758
  function Wb(e, t) {
@@ -17772,11 +17762,11 @@ function Wb(e, t) {
17772
17762
  break;
17773
17763
  }
17774
17764
  case o.BODY: {
17775
- e._insertElement(t, G.HTML), e.framesetOk = !1, e.insertionMode = O.IN_BODY;
17765
+ e._insertElement(t, X.HTML), e.framesetOk = !1, e.insertionMode = O.IN_BODY;
17776
17766
  break;
17777
17767
  }
17778
17768
  case o.FRAMESET: {
17779
- e._insertElement(t, G.HTML), e.insertionMode = O.IN_FRAMESET;
17769
+ e._insertElement(t, X.HTML), e.insertionMode = O.IN_FRAMESET;
17780
17770
  break;
17781
17771
  }
17782
17772
  case o.BASE:
@@ -17789,11 +17779,11 @@ function Wb(e, t) {
17789
17779
  case o.STYLE:
17790
17780
  case o.TEMPLATE:
17791
17781
  case o.TITLE: {
17792
- e._err(t, j.abandonedHeadElementChild), e.openElements.push(e.headElement, o.HEAD), Lt(e, t), e.openElements.remove(e.headElement);
17782
+ e._err(t, U.abandonedHeadElementChild), e.openElements.push(e.headElement, o.HEAD), Lt(e, t), e.openElements.remove(e.headElement);
17793
17783
  break;
17794
17784
  }
17795
17785
  case o.HEAD: {
17796
- e._err(t, j.misplacedStartTagForHeadElement);
17786
+ e._err(t, U.misplacedStartTagForHeadElement);
17797
17787
  break;
17798
17788
  }
17799
17789
  default:
@@ -17813,7 +17803,7 @@ function Gb(e, t) {
17813
17803
  break;
17814
17804
  }
17815
17805
  default:
17816
- e._err(t, j.endTagWithoutMatchingOpenElement);
17806
+ e._err(t, U.endTagWithoutMatchingOpenElement);
17817
17807
  }
17818
17808
  }
17819
17809
  function sr(e, t) {
@@ -17862,20 +17852,20 @@ function Kb(e, t) {
17862
17852
  }
17863
17853
  function Qb(e, t) {
17864
17854
  const n = e.openElements.tryPeekProperlyNestedBodyElement();
17865
- e.framesetOk && n && (e.treeAdapter.detachNode(n), e.openElements.popAllUpToHtmlElement(), e._insertElement(t, G.HTML), e.insertionMode = O.IN_FRAMESET);
17855
+ e.framesetOk && n && (e.treeAdapter.detachNode(n), e.openElements.popAllUpToHtmlElement(), e._insertElement(t, X.HTML), e.insertionMode = O.IN_FRAMESET);
17866
17856
  }
17867
17857
  function Zb(e, t) {
17868
- e.openElements.hasInButtonScope(o.P) && e._closePElement(), e._insertElement(t, G.HTML);
17858
+ e.openElements.hasInButtonScope(o.P) && e._closePElement(), e._insertElement(t, X.HTML);
17869
17859
  }
17870
17860
  function Jb(e, t) {
17871
- e.openElements.hasInButtonScope(o.P) && e._closePElement(), e.openElements.currentTagId !== void 0 && yi.has(e.openElements.currentTagId) && e.openElements.pop(), e._insertElement(t, G.HTML);
17861
+ e.openElements.hasInButtonScope(o.P) && e._closePElement(), e.openElements.currentTagId !== void 0 && yi.has(e.openElements.currentTagId) && e.openElements.pop(), e._insertElement(t, X.HTML);
17872
17862
  }
17873
17863
  function eE(e, t) {
17874
- e.openElements.hasInButtonScope(o.P) && e._closePElement(), e._insertElement(t, G.HTML), e.skipNextNewLine = !0, e.framesetOk = !1;
17864
+ e.openElements.hasInButtonScope(o.P) && e._closePElement(), e._insertElement(t, X.HTML), e.skipNextNewLine = !0, e.framesetOk = !1;
17875
17865
  }
17876
17866
  function tE(e, t) {
17877
17867
  const n = e.openElements.tmplCount > 0;
17878
- (!e.formElement || n) && (e.openElements.hasInButtonScope(o.P) && e._closePElement(), e._insertElement(t, G.HTML), n || (e.formElement = e.openElements.current));
17868
+ (!e.formElement || n) && (e.openElements.hasInButtonScope(o.P) && e._closePElement(), e._insertElement(t, X.HTML), n || (e.formElement = e.openElements.current));
17879
17869
  }
17880
17870
  function nE(e, t) {
17881
17871
  e.framesetOk = !1;
@@ -17889,51 +17879,51 @@ function nE(e, t) {
17889
17879
  if (a !== o.ADDRESS && a !== o.DIV && a !== o.P && e._isSpecialElement(e.openElements.items[r], a))
17890
17880
  break;
17891
17881
  }
17892
- e.openElements.hasInButtonScope(o.P) && e._closePElement(), e._insertElement(t, G.HTML);
17882
+ e.openElements.hasInButtonScope(o.P) && e._closePElement(), e._insertElement(t, X.HTML);
17893
17883
  }
17894
17884
  function rE(e, t) {
17895
- e.openElements.hasInButtonScope(o.P) && e._closePElement(), e._insertElement(t, G.HTML), e.tokenizer.state = We.PLAINTEXT;
17885
+ e.openElements.hasInButtonScope(o.P) && e._closePElement(), e._insertElement(t, X.HTML), e.tokenizer.state = We.PLAINTEXT;
17896
17886
  }
17897
17887
  function aE(e, t) {
17898
- e.openElements.hasInScope(o.BUTTON) && (e.openElements.generateImpliedEndTags(), e.openElements.popUntilTagNamePopped(o.BUTTON)), e._reconstructActiveFormattingElements(), e._insertElement(t, G.HTML), e.framesetOk = !1;
17888
+ e.openElements.hasInScope(o.BUTTON) && (e.openElements.generateImpliedEndTags(), e.openElements.popUntilTagNamePopped(o.BUTTON)), e._reconstructActiveFormattingElements(), e._insertElement(t, X.HTML), e.framesetOk = !1;
17899
17889
  }
17900
17890
  function iE(e, t) {
17901
17891
  const n = e.activeFormattingElements.getElementEntryInScopeWithTagName(R.A);
17902
- n && (Ki(e, t), e.openElements.remove(n.element), e.activeFormattingElements.removeEntry(n)), e._reconstructActiveFormattingElements(), e._insertElement(t, G.HTML), e.activeFormattingElements.pushElement(e.openElements.current, t);
17892
+ n && (Ki(e, t), e.openElements.remove(n.element), e.activeFormattingElements.removeEntry(n)), e._reconstructActiveFormattingElements(), e._insertElement(t, X.HTML), e.activeFormattingElements.pushElement(e.openElements.current, t);
17903
17893
  }
17904
17894
  function uE(e, t) {
17905
- e._reconstructActiveFormattingElements(), e._insertElement(t, G.HTML), e.activeFormattingElements.pushElement(e.openElements.current, t);
17895
+ e._reconstructActiveFormattingElements(), e._insertElement(t, X.HTML), e.activeFormattingElements.pushElement(e.openElements.current, t);
17906
17896
  }
17907
17897
  function oE(e, t) {
17908
- e._reconstructActiveFormattingElements(), e.openElements.hasInScope(o.NOBR) && (Ki(e, t), e._reconstructActiveFormattingElements()), e._insertElement(t, G.HTML), e.activeFormattingElements.pushElement(e.openElements.current, t);
17898
+ e._reconstructActiveFormattingElements(), e.openElements.hasInScope(o.NOBR) && (Ki(e, t), e._reconstructActiveFormattingElements()), e._insertElement(t, X.HTML), e.activeFormattingElements.pushElement(e.openElements.current, t);
17909
17899
  }
17910
17900
  function sE(e, t) {
17911
- e._reconstructActiveFormattingElements(), e._insertElement(t, G.HTML), e.activeFormattingElements.insertMarker(), e.framesetOk = !1;
17901
+ e._reconstructActiveFormattingElements(), e._insertElement(t, X.HTML), e.activeFormattingElements.insertMarker(), e.framesetOk = !1;
17912
17902
  }
17913
17903
  function lE(e, t) {
17914
- e.treeAdapter.getDocumentMode(e.document) !== _t.QUIRKS && e.openElements.hasInButtonScope(o.P) && e._closePElement(), e._insertElement(t, G.HTML), e.framesetOk = !1, e.insertionMode = O.IN_TABLE;
17904
+ e.treeAdapter.getDocumentMode(e.document) !== _t.QUIRKS && e.openElements.hasInButtonScope(o.P) && e._closePElement(), e._insertElement(t, X.HTML), e.framesetOk = !1, e.insertionMode = O.IN_TABLE;
17915
17905
  }
17916
17906
  function Mc(e, t) {
17917
- e._reconstructActiveFormattingElements(), e._appendElement(t, G.HTML), e.framesetOk = !1, t.ackSelfClosing = !0;
17907
+ e._reconstructActiveFormattingElements(), e._appendElement(t, X.HTML), e.framesetOk = !1, t.ackSelfClosing = !0;
17918
17908
  }
17919
17909
  function Fc(e) {
17920
17910
  const t = xc(e, on.TYPE);
17921
17911
  return t != null && t.toLowerCase() === Ob;
17922
17912
  }
17923
17913
  function cE(e, t) {
17924
- e._reconstructActiveFormattingElements(), e._appendElement(t, G.HTML), Fc(t) || (e.framesetOk = !1), t.ackSelfClosing = !0;
17914
+ e._reconstructActiveFormattingElements(), e._appendElement(t, X.HTML), Fc(t) || (e.framesetOk = !1), t.ackSelfClosing = !0;
17925
17915
  }
17926
17916
  function dE(e, t) {
17927
- e._appendElement(t, G.HTML), t.ackSelfClosing = !0;
17917
+ e._appendElement(t, X.HTML), t.ackSelfClosing = !0;
17928
17918
  }
17929
17919
  function fE(e, t) {
17930
- e.openElements.hasInButtonScope(o.P) && e._closePElement(), e._appendElement(t, G.HTML), e.framesetOk = !1, t.ackSelfClosing = !0;
17920
+ e.openElements.hasInButtonScope(o.P) && e._closePElement(), e._appendElement(t, X.HTML), e.framesetOk = !1, t.ackSelfClosing = !0;
17931
17921
  }
17932
17922
  function hE(e, t) {
17933
17923
  t.tagName = R.IMG, t.tagID = o.IMG, Mc(e, t);
17934
17924
  }
17935
17925
  function pE(e, t) {
17936
- e._insertElement(t, G.HTML), e.skipNextNewLine = !0, e.tokenizer.state = We.RCDATA, e.originalInsertionMode = e.insertionMode, e.framesetOk = !1, e.insertionMode = O.TEXT;
17926
+ e._insertElement(t, X.HTML), e.skipNextNewLine = !0, e.tokenizer.state = We.RCDATA, e.originalInsertionMode = e.insertionMode, e.framesetOk = !1, e.insertionMode = O.TEXT;
17937
17927
  }
17938
17928
  function mE(e, t) {
17939
17929
  e.openElements.hasInButtonScope(o.P) && e._closePElement(), e._reconstructActiveFormattingElements(), e.framesetOk = !1, e._switchToTextParsing(t, We.RAWTEXT);
@@ -17945,25 +17935,25 @@ function us(e, t) {
17945
17935
  e._switchToTextParsing(t, We.RAWTEXT);
17946
17936
  }
17947
17937
  function bE(e, t) {
17948
- e._reconstructActiveFormattingElements(), e._insertElement(t, G.HTML), e.framesetOk = !1, e.insertionMode = e.insertionMode === O.IN_TABLE || e.insertionMode === O.IN_CAPTION || e.insertionMode === O.IN_TABLE_BODY || e.insertionMode === O.IN_ROW || e.insertionMode === O.IN_CELL ? O.IN_SELECT_IN_TABLE : O.IN_SELECT;
17938
+ e._reconstructActiveFormattingElements(), e._insertElement(t, X.HTML), e.framesetOk = !1, e.insertionMode = e.insertionMode === O.IN_TABLE || e.insertionMode === O.IN_CAPTION || e.insertionMode === O.IN_TABLE_BODY || e.insertionMode === O.IN_ROW || e.insertionMode === O.IN_CELL ? O.IN_SELECT_IN_TABLE : O.IN_SELECT;
17949
17939
  }
17950
17940
  function EE(e, t) {
17951
- e.openElements.currentTagId === o.OPTION && e.openElements.pop(), e._reconstructActiveFormattingElements(), e._insertElement(t, G.HTML);
17941
+ e.openElements.currentTagId === o.OPTION && e.openElements.pop(), e._reconstructActiveFormattingElements(), e._insertElement(t, X.HTML);
17952
17942
  }
17953
17943
  function TE(e, t) {
17954
- e.openElements.hasInScope(o.RUBY) && e.openElements.generateImpliedEndTags(), e._insertElement(t, G.HTML);
17944
+ e.openElements.hasInScope(o.RUBY) && e.openElements.generateImpliedEndTags(), e._insertElement(t, X.HTML);
17955
17945
  }
17956
17946
  function yE(e, t) {
17957
- e.openElements.hasInScope(o.RUBY) && e.openElements.generateImpliedEndTagsWithExclusion(o.RTC), e._insertElement(t, G.HTML);
17947
+ e.openElements.hasInScope(o.RUBY) && e.openElements.generateImpliedEndTagsWithExclusion(o.RTC), e._insertElement(t, X.HTML);
17958
17948
  }
17959
17949
  function _E(e, t) {
17960
- e._reconstructActiveFormattingElements(), Lc(t), Xi(t), t.selfClosing ? e._appendElement(t, G.MATHML) : e._insertElement(t, G.MATHML), t.ackSelfClosing = !0;
17950
+ e._reconstructActiveFormattingElements(), Lc(t), Xi(t), t.selfClosing ? e._appendElement(t, X.MATHML) : e._insertElement(t, X.MATHML), t.ackSelfClosing = !0;
17961
17951
  }
17962
17952
  function CE(e, t) {
17963
- e._reconstructActiveFormattingElements(), wc(t), Xi(t), t.selfClosing ? e._appendElement(t, G.SVG) : e._insertElement(t, G.SVG), t.ackSelfClosing = !0;
17953
+ e._reconstructActiveFormattingElements(), wc(t), Xi(t), t.selfClosing ? e._appendElement(t, X.SVG) : e._insertElement(t, X.SVG), t.ackSelfClosing = !0;
17964
17954
  }
17965
17955
  function os(e, t) {
17966
- e._reconstructActiveFormattingElements(), e._insertElement(t, G.HTML);
17956
+ e._reconstructActiveFormattingElements(), e._insertElement(t, X.HTML);
17967
17957
  }
17968
17958
  function it(e, t) {
17969
17959
  switch (t.tagID) {
@@ -18333,7 +18323,7 @@ function RE(e, t) {
18333
18323
  t.tagID === o.SCRIPT && ((n = e.scriptHandler) === null || n === void 0 || n.call(e, e.openElements.current)), e.openElements.pop(), e.insertionMode = e.originalInsertionMode;
18334
18324
  }
18335
18325
  function DE(e, t) {
18336
- e._err(t, j.eofInElementThatCanContainOnlyText), e.openElements.pop(), e.insertionMode = e.originalInsertionMode, e.onEof(t);
18326
+ e._err(t, U.eofInElementThatCanContainOnlyText), e.openElements.pop(), e.insertionMode = e.originalInsertionMode, e.onEof(t);
18337
18327
  }
18338
18328
  function qa(e, t) {
18339
18329
  if (e.openElements.currentTagId !== void 0 && Rc.has(e.openElements.currentTagId))
@@ -18351,16 +18341,16 @@ function qa(e, t) {
18351
18341
  gr(e, t);
18352
18342
  }
18353
18343
  function PE(e, t) {
18354
- e.openElements.clearBackToTableContext(), e.activeFormattingElements.insertMarker(), e._insertElement(t, G.HTML), e.insertionMode = O.IN_CAPTION;
18344
+ e.openElements.clearBackToTableContext(), e.activeFormattingElements.insertMarker(), e._insertElement(t, X.HTML), e.insertionMode = O.IN_CAPTION;
18355
18345
  }
18356
18346
  function ME(e, t) {
18357
- e.openElements.clearBackToTableContext(), e._insertElement(t, G.HTML), e.insertionMode = O.IN_COLUMN_GROUP;
18347
+ e.openElements.clearBackToTableContext(), e._insertElement(t, X.HTML), e.insertionMode = O.IN_COLUMN_GROUP;
18358
18348
  }
18359
18349
  function FE(e, t) {
18360
18350
  e.openElements.clearBackToTableContext(), e._insertFakeElement(R.COLGROUP, o.COLGROUP), e.insertionMode = O.IN_COLUMN_GROUP, Zi(e, t);
18361
18351
  }
18362
18352
  function BE(e, t) {
18363
- e.openElements.clearBackToTableContext(), e._insertElement(t, G.HTML), e.insertionMode = O.IN_TABLE_BODY;
18353
+ e.openElements.clearBackToTableContext(), e._insertElement(t, X.HTML), e.insertionMode = O.IN_TABLE_BODY;
18364
18354
  }
18365
18355
  function HE(e, t) {
18366
18356
  e.openElements.clearBackToTableContext(), e._insertFakeElement(R.TBODY, o.TBODY), e.insertionMode = O.IN_TABLE_BODY, ra(e, t);
@@ -18369,10 +18359,10 @@ function UE(e, t) {
18369
18359
  e.openElements.hasInTableScope(o.TABLE) && (e.openElements.popUntilTagNamePopped(o.TABLE), e._resetInsertionMode(), e._processStartTag(t));
18370
18360
  }
18371
18361
  function jE(e, t) {
18372
- Fc(t) ? e._appendElement(t, G.HTML) : gr(e, t), t.ackSelfClosing = !0;
18362
+ Fc(t) ? e._appendElement(t, X.HTML) : gr(e, t), t.ackSelfClosing = !0;
18373
18363
  }
18374
18364
  function qE(e, t) {
18375
- !e.formElement && e.openElements.tmplCount === 0 && (e._insertElement(t, G.HTML), e.formElement = e.openElements.current, e.openElements.pop());
18365
+ !e.formElement && e.openElements.tmplCount === 0 && (e._insertElement(t, X.HTML), e.formElement = e.openElements.current, e.openElements.pop());
18376
18366
  }
18377
18367
  function On(e, t) {
18378
18368
  switch (t.tagID) {
@@ -18503,7 +18493,7 @@ function Zi(e, t) {
18503
18493
  break;
18504
18494
  }
18505
18495
  case o.COL: {
18506
- e._appendElement(t, G.HTML), t.ackSelfClosing = !0;
18496
+ e._appendElement(t, X.HTML), t.ackSelfClosing = !0;
18507
18497
  break;
18508
18498
  }
18509
18499
  case o.TEMPLATE: {
@@ -18536,7 +18526,7 @@ function Wr(e, t) {
18536
18526
  function ra(e, t) {
18537
18527
  switch (t.tagID) {
18538
18528
  case o.TR: {
18539
- e.openElements.clearBackToTableBodyContext(), e._insertElement(t, G.HTML), e.insertionMode = O.IN_ROW;
18529
+ e.openElements.clearBackToTableBodyContext(), e._insertElement(t, X.HTML), e.insertionMode = O.IN_ROW;
18540
18530
  break;
18541
18531
  }
18542
18532
  case o.TH:
@@ -18587,7 +18577,7 @@ function aa(e, t) {
18587
18577
  switch (t.tagID) {
18588
18578
  case o.TH:
18589
18579
  case o.TD: {
18590
- e.openElements.clearBackToTableRowContext(), e._insertElement(t, G.HTML), e.insertionMode = O.IN_CELL, e.activeFormattingElements.insertMarker();
18580
+ e.openElements.clearBackToTableRowContext(), e._insertElement(t, X.HTML), e.insertionMode = O.IN_CELL, e.activeFormattingElements.insertMarker();
18591
18581
  break;
18592
18582
  }
18593
18583
  case o.CAPTION:
@@ -18669,15 +18659,15 @@ function Yc(e, t) {
18669
18659
  break;
18670
18660
  }
18671
18661
  case o.OPTION: {
18672
- e.openElements.currentTagId === o.OPTION && e.openElements.pop(), e._insertElement(t, G.HTML);
18662
+ e.openElements.currentTagId === o.OPTION && e.openElements.pop(), e._insertElement(t, X.HTML);
18673
18663
  break;
18674
18664
  }
18675
18665
  case o.OPTGROUP: {
18676
- e.openElements.currentTagId === o.OPTION && e.openElements.pop(), e.openElements.currentTagId === o.OPTGROUP && e.openElements.pop(), e._insertElement(t, G.HTML);
18666
+ e.openElements.currentTagId === o.OPTION && e.openElements.pop(), e.openElements.currentTagId === o.OPTGROUP && e.openElements.pop(), e._insertElement(t, X.HTML);
18677
18667
  break;
18678
18668
  }
18679
18669
  case o.HR: {
18680
- e.openElements.currentTagId === o.OPTION && e.openElements.pop(), e.openElements.currentTagId === o.OPTGROUP && e.openElements.pop(), e._appendElement(t, G.HTML), t.ackSelfClosing = !0;
18670
+ e.openElements.currentTagId === o.OPTION && e.openElements.pop(), e.openElements.currentTagId === o.OPTGROUP && e.openElements.pop(), e._appendElement(t, X.HTML), t.ackSelfClosing = !0;
18681
18671
  break;
18682
18672
  }
18683
18673
  case o.INPUT:
@@ -18794,11 +18784,11 @@ function JE(e, t) {
18794
18784
  break;
18795
18785
  }
18796
18786
  case o.FRAMESET: {
18797
- e._insertElement(t, G.HTML);
18787
+ e._insertElement(t, X.HTML);
18798
18788
  break;
18799
18789
  }
18800
18790
  case o.FRAME: {
18801
- e._appendElement(t, G.HTML), t.ackSelfClosing = !0;
18791
+ e._appendElement(t, X.HTML), t.ackSelfClosing = !0;
18802
18792
  break;
18803
18793
  }
18804
18794
  case o.NOFRAMES: {
@@ -18850,7 +18840,7 @@ function uT(e, t) {
18850
18840
  e._insertCharacters(t), e.framesetOk = !1;
18851
18841
  }
18852
18842
  function Gc(e) {
18853
- for (; e.treeAdapter.getNamespaceURI(e.openElements.current) !== G.HTML && e.openElements.currentTagId !== void 0 && !e._isIntegrationPoint(e.openElements.currentTagId, e.openElements.current); )
18843
+ for (; e.treeAdapter.getNamespaceURI(e.openElements.current) !== X.HTML && e.openElements.currentTagId !== void 0 && !e._isIntegrationPoint(e.openElements.currentTagId, e.openElements.current); )
18854
18844
  e.openElements.pop();
18855
18845
  }
18856
18846
  function oT(e, t) {
@@ -18858,7 +18848,7 @@ function oT(e, t) {
18858
18848
  Gc(e), e._startTagOutsideForeignContent(t);
18859
18849
  else {
18860
18850
  const n = e._getAdjustedCurrentElement(), r = e.treeAdapter.getNamespaceURI(n);
18861
- r === G.MATHML ? Lc(t) : r === G.SVG && (Ab(t), wc(t)), Xi(t), t.selfClosing ? e._appendElement(t, r) : e._insertElement(t, r), t.ackSelfClosing = !0;
18851
+ r === X.MATHML ? Lc(t) : r === X.SVG && (Ab(t), wc(t)), Xi(t), t.selfClosing ? e._appendElement(t, r) : e._insertElement(t, r), t.ackSelfClosing = !0;
18862
18852
  }
18863
18853
  }
18864
18854
  function sT(e, t) {
@@ -18868,7 +18858,7 @@ function sT(e, t) {
18868
18858
  }
18869
18859
  for (let n = e.openElements.stackTop; n > 0; n--) {
18870
18860
  const r = e.openElements.items[n];
18871
- if (e.treeAdapter.getNamespaceURI(r) === G.HTML) {
18861
+ if (e.treeAdapter.getNamespaceURI(r) === X.HTML) {
18872
18862
  e._endTagOutsideForeignContent(t);
18873
18863
  break;
18874
18864
  }
@@ -19244,95 +19234,95 @@ function DT() {
19244
19234
  e.exports = r();
19245
19235
  })(RT, (function() {
19246
19236
  var n = 1e3, r = 6e4, a = 36e5, i = "millisecond", u = "second", s = "minute", l = "hour", c = "day", d = "week", f = "month", p = "quarter", h = "year", b = "date", m = "Invalid Date", T = /^(\d{4})[-/]?(\d{1,2})?[-/]?(\d{0,2})[Tt\s]*(\d{1,2})?:?(\d{1,2})?:?(\d{1,2})?[.:]?(\d+)?$/, g = /\[([^\]]+)]|Y{1,4}|M{1,4}|D{1,2}|d{1,4}|H{1,2}|h{1,2}|a|A|m{1,2}|s{1,2}|Z{1,2}|SSS/g, D = { 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) {
19247
- var L = ["th", "st", "nd", "rd"], B = I % 100;
19248
- return "[" + I + (L[(B - 20) % 10] || L[B] || L[0]) + "]";
19249
- } }, P = function(I, L, B) {
19250
- var W = String(I);
19251
- return !W || W.length >= L ? I : "" + Array(L + 1 - W.length).join(B) + I;
19252
- }, X = { s: P, z: function(I) {
19253
- var L = -I.utcOffset(), B = Math.abs(L), W = Math.floor(B / 60), H = B % 60;
19254
- return (L <= 0 ? "+" : "-") + P(W, 2, "0") + ":" + P(H, 2, "0");
19255
- }, m: function I(L, B) {
19256
- if (L.date() < B.date()) return -I(B, L);
19257
- var W = 12 * (B.year() - L.year()) + (B.month() - L.month()), H = L.clone().add(W, f), z = B - H < 0, y = L.clone().add(W + (z ? -1 : 1), f);
19258
- return +(-(W + (B - H) / (z ? H - y : y - H)) || 0);
19237
+ var w = ["th", "st", "nd", "rd"], F = I % 100;
19238
+ return "[" + I + (w[(F - 20) % 10] || w[F] || w[0]) + "]";
19239
+ } }, P = function(I, w, F) {
19240
+ var V = String(I);
19241
+ return !V || V.length >= w ? I : "" + Array(w + 1 - V.length).join(F) + I;
19242
+ }, W = { s: P, z: function(I) {
19243
+ var w = -I.utcOffset(), F = Math.abs(w), V = Math.floor(F / 60), B = F % 60;
19244
+ return (w <= 0 ? "+" : "-") + P(V, 2, "0") + ":" + P(B, 2, "0");
19245
+ }, m: function I(w, F) {
19246
+ if (w.date() < F.date()) return -I(F, w);
19247
+ var V = 12 * (F.year() - w.year()) + (F.month() - w.month()), B = w.clone().add(V, f), z = F - B < 0, y = w.clone().add(V + (z ? -1 : 1), f);
19248
+ return +(-(V + (F - B) / (z ? B - y : y - B)) || 0);
19259
19249
  }, a: function(I) {
19260
19250
  return I < 0 ? Math.ceil(I) || 0 : Math.floor(I);
19261
19251
  }, p: function(I) {
19262
19252
  return { M: f, y: h, w: d, d: c, D: b, h: l, m: s, s: u, ms: i, Q: p }[I] || String(I || "").toLowerCase().replace(/s$/, "");
19263
19253
  }, u: function(I) {
19264
19254
  return I === void 0;
19265
- } }, F = "en", x = {};
19266
- x[F] = D;
19267
- var w = "$isDayjsObject", V = function(I) {
19268
- return I instanceof $ || !(!I || !I[w]);
19269
- }, q = function I(L, B, W) {
19270
- var H;
19271
- if (!L) return F;
19272
- if (typeof L == "string") {
19273
- var z = L.toLowerCase();
19274
- x[z] && (H = z), B && (x[z] = B, H = z);
19275
- var y = L.split("-");
19276
- if (!H && y.length > 1) return I(y[0]);
19255
+ } }, j = "en", x = {};
19256
+ x[j] = D;
19257
+ var k = "$isDayjsObject", G = function(I) {
19258
+ return I instanceof $ || !(!I || !I[k]);
19259
+ }, q = function I(w, F, V) {
19260
+ var B;
19261
+ if (!w) return j;
19262
+ if (typeof w == "string") {
19263
+ var z = w.toLowerCase();
19264
+ x[z] && (B = z), F && (x[z] = F, B = z);
19265
+ var y = w.split("-");
19266
+ if (!B && y.length > 1) return I(y[0]);
19277
19267
  } else {
19278
- var ne = L.name;
19279
- x[ne] = L, H = ne;
19268
+ var ne = w.name;
19269
+ x[ne] = w, B = ne;
19280
19270
  }
19281
- return !W && H && (F = H), H || !W && F;
19282
- }, te = function(I, L) {
19283
- if (V(I)) return I.clone();
19284
- var B = typeof L == "object" ? L : {};
19285
- return B.date = I, B.args = arguments, new $(B);
19286
- }, Y = X;
19287
- Y.l = q, Y.i = V, Y.w = function(I, L) {
19288
- return te(I, { locale: L.$L, utc: L.$u, x: L.$x, $offset: L.$offset });
19271
+ return !V && B && (j = B), B || !V && j;
19272
+ }, te = function(I, w) {
19273
+ if (G(I)) return I.clone();
19274
+ var F = typeof w == "object" ? w : {};
19275
+ return F.date = I, F.args = arguments, new $(F);
19276
+ }, Y = W;
19277
+ Y.l = q, Y.i = G, Y.w = function(I, w) {
19278
+ return te(I, { locale: w.$L, utc: w.$u, x: w.$x, $offset: w.$offset });
19289
19279
  };
19290
19280
  var $ = (function() {
19291
- function I(B) {
19292
- this.$L = q(B.locale, null, !0), this.parse(B), this.$x = this.$x || B.x || {}, this[w] = !0;
19281
+ function I(F) {
19282
+ this.$L = q(F.locale, null, !0), this.parse(F), this.$x = this.$x || F.x || {}, this[k] = !0;
19293
19283
  }
19294
- var L = I.prototype;
19295
- return L.parse = function(B) {
19296
- this.$d = (function(W) {
19297
- var H = W.date, z = W.utc;
19298
- if (H === null) return /* @__PURE__ */ new Date(NaN);
19299
- if (Y.u(H)) return /* @__PURE__ */ new Date();
19300
- if (H instanceof Date) return new Date(H);
19301
- if (typeof H == "string" && !/Z$/i.test(H)) {
19302
- var y = H.match(T);
19284
+ var w = I.prototype;
19285
+ return w.parse = function(F) {
19286
+ this.$d = (function(V) {
19287
+ var B = V.date, z = V.utc;
19288
+ if (B === null) return /* @__PURE__ */ new Date(NaN);
19289
+ if (Y.u(B)) return /* @__PURE__ */ new Date();
19290
+ if (B instanceof Date) return new Date(B);
19291
+ if (typeof B == "string" && !/Z$/i.test(B)) {
19292
+ var y = B.match(T);
19303
19293
  if (y) {
19304
19294
  var ne = y[2] - 1 || 0, ae = (y[7] || "0").substring(0, 3);
19305
19295
  return z ? new Date(Date.UTC(y[1], ne, y[3] || 1, y[4] || 0, y[5] || 0, y[6] || 0, ae)) : new Date(y[1], ne, y[3] || 1, y[4] || 0, y[5] || 0, y[6] || 0, ae);
19306
19296
  }
19307
19297
  }
19308
- return new Date(H);
19309
- })(B), this.init();
19310
- }, L.init = function() {
19311
- var B = this.$d;
19312
- this.$y = B.getFullYear(), this.$M = B.getMonth(), this.$D = B.getDate(), this.$W = B.getDay(), this.$H = B.getHours(), this.$m = B.getMinutes(), this.$s = B.getSeconds(), this.$ms = B.getMilliseconds();
19313
- }, L.$utils = function() {
19298
+ return new Date(B);
19299
+ })(F), this.init();
19300
+ }, w.init = function() {
19301
+ var F = this.$d;
19302
+ this.$y = F.getFullYear(), this.$M = F.getMonth(), this.$D = F.getDate(), this.$W = F.getDay(), this.$H = F.getHours(), this.$m = F.getMinutes(), this.$s = F.getSeconds(), this.$ms = F.getMilliseconds();
19303
+ }, w.$utils = function() {
19314
19304
  return Y;
19315
- }, L.isValid = function() {
19305
+ }, w.isValid = function() {
19316
19306
  return this.$d.toString() !== m;
19317
- }, L.isSame = function(B, W) {
19318
- var H = te(B);
19319
- return this.startOf(W) <= H && H <= this.endOf(W);
19320
- }, L.isAfter = function(B, W) {
19321
- return te(B) < this.startOf(W);
19322
- }, L.isBefore = function(B, W) {
19323
- return this.endOf(W) < te(B);
19324
- }, L.$g = function(B, W, H) {
19325
- return Y.u(B) ? this[W] : this.set(H, B);
19326
- }, L.unix = function() {
19307
+ }, w.isSame = function(F, V) {
19308
+ var B = te(F);
19309
+ return this.startOf(V) <= B && B <= this.endOf(V);
19310
+ }, w.isAfter = function(F, V) {
19311
+ return te(F) < this.startOf(V);
19312
+ }, w.isBefore = function(F, V) {
19313
+ return this.endOf(V) < te(F);
19314
+ }, w.$g = function(F, V, B) {
19315
+ return Y.u(F) ? this[V] : this.set(B, F);
19316
+ }, w.unix = function() {
19327
19317
  return Math.floor(this.valueOf() / 1e3);
19328
- }, L.valueOf = function() {
19318
+ }, w.valueOf = function() {
19329
19319
  return this.$d.getTime();
19330
- }, L.startOf = function(B, W) {
19331
- var H = this, z = !!Y.u(W) || W, y = Y.p(B), ne = function(ze, Ie) {
19332
- var nt = Y.w(H.$u ? Date.UTC(H.$y, Ie, ze) : new Date(H.$y, Ie, ze), H);
19320
+ }, w.startOf = function(F, V) {
19321
+ var B = this, z = !!Y.u(V) || V, y = Y.p(F), ne = function(ze, Ie) {
19322
+ var nt = Y.w(B.$u ? Date.UTC(B.$y, Ie, ze) : new Date(B.$y, Ie, ze), B);
19333
19323
  return z ? nt : nt.endOf(c);
19334
19324
  }, ae = function(ze, Ie) {
19335
- return Y.w(H.toDate()[ze].apply(H.toDate("s"), (z ? [0, 0, 0, 0] : [23, 59, 59, 999]).slice(Ie)), H);
19325
+ return Y.w(B.toDate()[ze].apply(B.toDate("s"), (z ? [0, 0, 0, 0] : [23, 59, 59, 999]).slice(Ie)), B);
19336
19326
  }, v = this.$W, se = this.$M, _e = this.$D, pe = "set" + (this.$u ? "UTC" : "");
19337
19327
  switch (y) {
19338
19328
  case h:
@@ -19354,39 +19344,39 @@ function DT() {
19354
19344
  default:
19355
19345
  return this.clone();
19356
19346
  }
19357
- }, L.endOf = function(B) {
19358
- return this.startOf(B, !1);
19359
- }, L.$set = function(B, W) {
19360
- var H, z = Y.p(B), y = "set" + (this.$u ? "UTC" : ""), ne = (H = {}, H[c] = y + "Date", H[b] = y + "Date", H[f] = y + "Month", H[h] = y + "FullYear", H[l] = y + "Hours", H[s] = y + "Minutes", H[u] = y + "Seconds", H[i] = y + "Milliseconds", H)[z], ae = z === c ? this.$D + (W - this.$W) : W;
19347
+ }, w.endOf = function(F) {
19348
+ return this.startOf(F, !1);
19349
+ }, w.$set = function(F, V) {
19350
+ var B, z = Y.p(F), y = "set" + (this.$u ? "UTC" : ""), ne = (B = {}, B[c] = y + "Date", B[b] = y + "Date", B[f] = y + "Month", B[h] = y + "FullYear", B[l] = y + "Hours", B[s] = y + "Minutes", B[u] = y + "Seconds", B[i] = y + "Milliseconds", B)[z], ae = z === c ? this.$D + (V - this.$W) : V;
19361
19351
  if (z === f || z === h) {
19362
19352
  var v = this.clone().set(b, 1);
19363
19353
  v.$d[ne](ae), v.init(), this.$d = v.set(b, Math.min(this.$D, v.daysInMonth())).$d;
19364
19354
  } else ne && this.$d[ne](ae);
19365
19355
  return this.init(), this;
19366
- }, L.set = function(B, W) {
19367
- return this.clone().$set(B, W);
19368
- }, L.get = function(B) {
19369
- return this[Y.p(B)]();
19370
- }, L.add = function(B, W) {
19371
- var H, z = this;
19372
- B = Number(B);
19373
- var y = Y.p(W), ne = function(se) {
19356
+ }, w.set = function(F, V) {
19357
+ return this.clone().$set(F, V);
19358
+ }, w.get = function(F) {
19359
+ return this[Y.p(F)]();
19360
+ }, w.add = function(F, V) {
19361
+ var B, z = this;
19362
+ F = Number(F);
19363
+ var y = Y.p(V), ne = function(se) {
19374
19364
  var _e = te(z);
19375
- return Y.w(_e.date(_e.date() + Math.round(se * B)), z);
19365
+ return Y.w(_e.date(_e.date() + Math.round(se * F)), z);
19376
19366
  };
19377
- if (y === f) return this.set(f, this.$M + B);
19378
- if (y === h) return this.set(h, this.$y + B);
19367
+ if (y === f) return this.set(f, this.$M + F);
19368
+ if (y === h) return this.set(h, this.$y + F);
19379
19369
  if (y === c) return ne(1);
19380
19370
  if (y === d) return ne(7);
19381
- var ae = (H = {}, H[s] = r, H[l] = a, H[u] = n, H)[y] || 1, v = this.$d.getTime() + B * ae;
19371
+ var ae = (B = {}, B[s] = r, B[l] = a, B[u] = n, B)[y] || 1, v = this.$d.getTime() + F * ae;
19382
19372
  return Y.w(v, this);
19383
- }, L.subtract = function(B, W) {
19384
- return this.add(-1 * B, W);
19385
- }, L.format = function(B) {
19386
- var W = this, H = this.$locale();
19387
- if (!this.isValid()) return H.invalidDate || m;
19388
- var z = B || "YYYY-MM-DDTHH:mm:ssZ", y = Y.z(this), ne = this.$H, ae = this.$m, v = this.$M, se = H.weekdays, _e = H.months, pe = H.meridiem, Se = function(Ie, nt, st, wt) {
19389
- return Ie && (Ie[nt] || Ie(W, z)) || st[nt].slice(0, wt);
19373
+ }, w.subtract = function(F, V) {
19374
+ return this.add(-1 * F, V);
19375
+ }, w.format = function(F) {
19376
+ var V = this, B = this.$locale();
19377
+ if (!this.isValid()) return B.invalidDate || m;
19378
+ var z = F || "YYYY-MM-DDTHH:mm:ssZ", y = Y.z(this), ne = this.$H, ae = this.$m, v = this.$M, se = B.weekdays, _e = B.months, pe = B.meridiem, Se = function(Ie, nt, st, wt) {
19379
+ return Ie && (Ie[nt] || Ie(V, z)) || st[nt].slice(0, wt);
19390
19380
  }, Oe = function(Ie) {
19391
19381
  return Y.s(ne % 12 || 12, Ie, "0");
19392
19382
  }, ze = pe || function(Ie, nt, st) {
@@ -19397,29 +19387,29 @@ function DT() {
19397
19387
  return nt || (function(st) {
19398
19388
  switch (st) {
19399
19389
  case "YY":
19400
- return String(W.$y).slice(-2);
19390
+ return String(V.$y).slice(-2);
19401
19391
  case "YYYY":
19402
- return Y.s(W.$y, 4, "0");
19392
+ return Y.s(V.$y, 4, "0");
19403
19393
  case "M":
19404
19394
  return v + 1;
19405
19395
  case "MM":
19406
19396
  return Y.s(v + 1, 2, "0");
19407
19397
  case "MMM":
19408
- return Se(H.monthsShort, v, _e, 3);
19398
+ return Se(B.monthsShort, v, _e, 3);
19409
19399
  case "MMMM":
19410
19400
  return Se(_e, v);
19411
19401
  case "D":
19412
- return W.$D;
19402
+ return V.$D;
19413
19403
  case "DD":
19414
- return Y.s(W.$D, 2, "0");
19404
+ return Y.s(V.$D, 2, "0");
19415
19405
  case "d":
19416
- return String(W.$W);
19406
+ return String(V.$W);
19417
19407
  case "dd":
19418
- return Se(H.weekdaysMin, W.$W, se, 2);
19408
+ return Se(B.weekdaysMin, V.$W, se, 2);
19419
19409
  case "ddd":
19420
- return Se(H.weekdaysShort, W.$W, se, 3);
19410
+ return Se(B.weekdaysShort, V.$W, se, 3);
19421
19411
  case "dddd":
19422
- return se[W.$W];
19412
+ return se[V.$W];
19423
19413
  case "H":
19424
19414
  return String(ne);
19425
19415
  case "HH":
@@ -19437,21 +19427,21 @@ function DT() {
19437
19427
  case "mm":
19438
19428
  return Y.s(ae, 2, "0");
19439
19429
  case "s":
19440
- return String(W.$s);
19430
+ return String(V.$s);
19441
19431
  case "ss":
19442
- return Y.s(W.$s, 2, "0");
19432
+ return Y.s(V.$s, 2, "0");
19443
19433
  case "SSS":
19444
- return Y.s(W.$ms, 3, "0");
19434
+ return Y.s(V.$ms, 3, "0");
19445
19435
  case "Z":
19446
19436
  return y;
19447
19437
  }
19448
19438
  return null;
19449
19439
  })(Ie) || y.replace(":", "");
19450
19440
  }));
19451
- }, L.utcOffset = function() {
19441
+ }, w.utcOffset = function() {
19452
19442
  return 15 * -Math.round(this.$d.getTimezoneOffset() / 15);
19453
- }, L.diff = function(B, W, H) {
19454
- var z, y = this, ne = Y.p(W), ae = te(B), v = (ae.utcOffset() - this.utcOffset()) * r, se = this - ae, _e = function() {
19443
+ }, w.diff = function(F, V, B) {
19444
+ var z, y = this, ne = Y.p(V), ae = te(F), v = (ae.utcOffset() - this.utcOffset()) * r, se = this - ae, _e = function() {
19455
19445
  return Y.m(y, ae);
19456
19446
  };
19457
19447
  switch (ne) {
@@ -19482,36 +19472,36 @@ function DT() {
19482
19472
  default:
19483
19473
  z = se;
19484
19474
  }
19485
- return H ? z : Y.a(z);
19486
- }, L.daysInMonth = function() {
19475
+ return B ? z : Y.a(z);
19476
+ }, w.daysInMonth = function() {
19487
19477
  return this.endOf(f).$D;
19488
- }, L.$locale = function() {
19478
+ }, w.$locale = function() {
19489
19479
  return x[this.$L];
19490
- }, L.locale = function(B, W) {
19491
- if (!B) return this.$L;
19492
- var H = this.clone(), z = q(B, W, !0);
19493
- return z && (H.$L = z), H;
19494
- }, L.clone = function() {
19480
+ }, w.locale = function(F, V) {
19481
+ if (!F) return this.$L;
19482
+ var B = this.clone(), z = q(F, V, !0);
19483
+ return z && (B.$L = z), B;
19484
+ }, w.clone = function() {
19495
19485
  return Y.w(this.$d, this);
19496
- }, L.toDate = function() {
19486
+ }, w.toDate = function() {
19497
19487
  return new Date(this.valueOf());
19498
- }, L.toJSON = function() {
19488
+ }, w.toJSON = function() {
19499
19489
  return this.isValid() ? this.toISOString() : null;
19500
- }, L.toISOString = function() {
19490
+ }, w.toISOString = function() {
19501
19491
  return this.$d.toISOString();
19502
- }, L.toString = function() {
19492
+ }, w.toString = function() {
19503
19493
  return this.$d.toUTCString();
19504
19494
  }, I;
19505
- })(), k = $.prototype;
19506
- return te.prototype = k, [["$ms", i], ["$s", u], ["$m", s], ["$H", l], ["$W", c], ["$M", f], ["$y", h], ["$D", b]].forEach((function(I) {
19507
- k[I[1]] = function(L) {
19508
- return this.$g(L, I[0], I[1]);
19495
+ })(), L = $.prototype;
19496
+ return te.prototype = L, [["$ms", i], ["$s", u], ["$m", s], ["$H", l], ["$W", c], ["$M", f], ["$y", h], ["$D", b]].forEach((function(I) {
19497
+ L[I[1]] = function(w) {
19498
+ return this.$g(w, I[0], I[1]);
19509
19499
  };
19510
- })), te.extend = function(I, L) {
19511
- return I.$i || (I(L, $, te), I.$i = !0), te;
19512
- }, te.locale = q, te.isDayjs = V, te.unix = function(I) {
19500
+ })), te.extend = function(I, w) {
19501
+ return I.$i || (I(w, $, te), I.$i = !0), te;
19502
+ }, te.locale = q, te.isDayjs = G, te.unix = function(I) {
19513
19503
  return te(1e3 * I);
19514
- }, te.en = x[F], te.Ls = x, te.p = {}, te;
19504
+ }, te.en = x[j], te.Ls = x, te.p = {}, te;
19515
19505
  }));
19516
19506
  })(Br)), Br.exports;
19517
19507
  }
@@ -19975,14 +19965,14 @@ const GT = (e) => ({
19975
19965
  d?.userMessageBubble?.style
19976
19966
  ),
19977
19967
  [c, d?.userMessageBubble?.style]
19978
- ), X = un(
19968
+ ), W = un(
19979
19969
  () => GT(l)(f),
19980
19970
  [f, l]
19981
- ), F = un(() => {
19971
+ ), j = un(() => {
19982
19972
  if (!D) return null;
19983
19973
  if (T === ve.USER)
19984
- return X;
19985
- const x = XT(X);
19974
+ return W;
19975
+ const x = XT(W);
19986
19976
  return /* @__PURE__ */ _.jsx(
19987
19977
  Ui,
19988
19978
  {
@@ -19998,7 +19988,7 @@ const GT = (e) => ({
19998
19988
  );
19999
19989
  }, [
20000
19990
  D,
20001
- X,
19991
+ W,
20002
19992
  i,
20003
19993
  P,
20004
19994
  T
@@ -20031,7 +20021,7 @@ const GT = (e) => ({
20031
20021
  className: P[T].bubbleClassName,
20032
20022
  style: P[T].bubbleStyle,
20033
20023
  children: [
20034
- F,
20024
+ j,
20035
20025
  g && /* @__PURE__ */ _.jsxs(_.Fragment, { children: [
20036
20026
  /* @__PURE__ */ _.jsx("div", { children: KT }),
20037
20027
  /* @__PURE__ */ _.jsx(
@@ -20678,9 +20668,9 @@ function JT() {
20678
20668
  return m && window.clearTimeout(m);
20679
20669
  };
20680
20670
  }, c = function(d, f, p, h, b, m, T) {
20681
- var g = f.setLastMessage, D = f.setReadyState, P, X, F;
20682
- return p.current.fromSocketIO && (P = (0, t.setUpSocketIOPing)(T)), i(d, p, g, m), u(d, p, D, b, m), X = s(d, p, D, h, b), F = l(d, p, D, h, b), function() {
20683
- D(r.ReadyState.CLOSING), X(), F(), d.close(), P && clearInterval(P);
20671
+ var g = f.setLastMessage, D = f.setReadyState, P, W, j;
20672
+ return p.current.fromSocketIO && (P = (0, t.setUpSocketIOPing)(T)), i(d, p, g, m), u(d, p, D, b, m), W = s(d, p, D, h, b), j = l(d, p, D, h, b), function() {
20673
+ D(r.ReadyState.CLOSING), W(), j(), d.close(), P && clearInterval(P);
20684
20674
  };
20685
20675
  };
20686
20676
  return en.attachListeners = c, en;
@@ -20892,22 +20882,22 @@ function n3() {
20892
20882
  for (var d = [], f = 2; f < arguments.length; f++)
20893
20883
  d[f - 2] = arguments[f];
20894
20884
  return t(void 0, r([l, c], d, !0), void 0, function(p, h, b) {
20895
- var m, T, g, D, P, X, F, x;
20896
- return b === void 0 && (b = 0), n(this, function(w) {
20897
- switch (w.label) {
20885
+ var m, T, g, D, P, W, j, x;
20886
+ return b === void 0 && (b = 0), n(this, function(k) {
20887
+ switch (k.label) {
20898
20888
  case 0:
20899
20889
  if (typeof p != "function") return [3, 10];
20900
- w.label = 1;
20890
+ k.label = 1;
20901
20891
  case 1:
20902
- return w.trys.push([1, 3, , 9]), [4, p()];
20892
+ return k.trys.push([1, 3, , 9]), [4, p()];
20903
20893
  case 2:
20904
- return m = w.sent(), [3, 9];
20894
+ return m = k.sent(), [3, 9];
20905
20895
  case 3:
20906
- return w.sent(), h.current.retryOnError ? (T = (X = h.current.reconnectAttempts) !== null && X !== void 0 ? X : i.DEFAULT_RECONNECT_LIMIT, b < T ? (g = typeof h.current.reconnectInterval == "function" ? h.current.reconnectInterval(b) : h.current.reconnectInterval, [4, u(g ?? i.DEFAULT_RECONNECT_INTERVAL_MS)]) : [3, 5]) : [3, 7];
20896
+ return k.sent(), h.current.retryOnError ? (T = (W = h.current.reconnectAttempts) !== null && W !== void 0 ? W : i.DEFAULT_RECONNECT_LIMIT, b < T ? (g = typeof h.current.reconnectInterval == "function" ? h.current.reconnectInterval(b) : h.current.reconnectInterval, [4, u(g ?? i.DEFAULT_RECONNECT_INTERVAL_MS)]) : [3, 5]) : [3, 7];
20907
20897
  case 4:
20908
- return w.sent(), [2, (0, e.getUrl)(p, h, b + 1)];
20898
+ return k.sent(), [2, (0, e.getUrl)(p, h, b + 1)];
20909
20899
  case 5:
20910
- return (x = (F = h.current).onReconnectStop) === null || x === void 0 || x.call(F, b), [2, null];
20900
+ return (x = (j = h.current).onReconnectStop) === null || x === void 0 || x.call(j, b), [2, null];
20911
20901
  case 6:
20912
20902
  return [3, 8];
20913
20903
  case 7:
@@ -20917,7 +20907,7 @@ function n3() {
20917
20907
  case 9:
20918
20908
  return [3, 11];
20919
20909
  case 10:
20920
- m = p, w.label = 11;
20910
+ m = p, k.label = 11;
20921
20911
  case 11:
20922
20912
  return D = h.current.fromSocketIO ? (0, a.parseSocketIOUrl)(m) : m, P = h.current.queryParams ? (0, a.appendQueryParams)(D, h.current.queryParams) : D, [2, P];
20923
20913
  }
@@ -20967,22 +20957,22 @@ function su() {
20967
20957
  return new (b || (b = Promise))(function(g, D) {
20968
20958
  function P(x) {
20969
20959
  try {
20970
- F(m.next(x));
20971
- } catch (w) {
20972
- D(w);
20960
+ j(m.next(x));
20961
+ } catch (k) {
20962
+ D(k);
20973
20963
  }
20974
20964
  }
20975
- function X(x) {
20965
+ function W(x) {
20976
20966
  try {
20977
- F(m.throw(x));
20978
- } catch (w) {
20979
- D(w);
20967
+ j(m.throw(x));
20968
+ } catch (k) {
20969
+ D(k);
20980
20970
  }
20981
20971
  }
20982
- function F(x) {
20983
- x.done ? g(x.value) : T(x.value).then(P, X);
20972
+ function j(x) {
20973
+ x.done ? g(x.value) : T(x.value).then(P, W);
20984
20974
  }
20985
- F((m = m.apply(p, h || [])).next());
20975
+ j((m = m.apply(p, h || [])).next());
20986
20976
  });
20987
20977
  }, n = gt && gt.__generator || function(p, h) {
20988
20978
  var b = { label: 0, sent: function() {
@@ -20992,56 +20982,56 @@ function su() {
20992
20982
  return D.next = P(0), D.throw = P(1), D.return = P(2), typeof Symbol == "function" && (D[Symbol.iterator] = function() {
20993
20983
  return this;
20994
20984
  }), D;
20995
- function P(F) {
20985
+ function P(j) {
20996
20986
  return function(x) {
20997
- return X([F, x]);
20987
+ return W([j, x]);
20998
20988
  };
20999
20989
  }
21000
- function X(F) {
20990
+ function W(j) {
21001
20991
  if (m) throw new TypeError("Generator is already executing.");
21002
- for (; D && (D = 0, F[0] && (b = 0)), b; ) try {
21003
- if (m = 1, T && (g = F[0] & 2 ? T.return : F[0] ? T.throw || ((g = T.return) && g.call(T), 0) : T.next) && !(g = g.call(T, F[1])).done) return g;
21004
- switch (T = 0, g && (F = [F[0] & 2, g.value]), F[0]) {
20992
+ for (; D && (D = 0, j[0] && (b = 0)), b; ) try {
20993
+ if (m = 1, T && (g = j[0] & 2 ? T.return : j[0] ? T.throw || ((g = T.return) && g.call(T), 0) : T.next) && !(g = g.call(T, j[1])).done) return g;
20994
+ switch (T = 0, g && (j = [j[0] & 2, g.value]), j[0]) {
21005
20995
  case 0:
21006
20996
  case 1:
21007
- g = F;
20997
+ g = j;
21008
20998
  break;
21009
20999
  case 4:
21010
- return b.label++, { value: F[1], done: !1 };
21000
+ return b.label++, { value: j[1], done: !1 };
21011
21001
  case 5:
21012
- b.label++, T = F[1], F = [0];
21002
+ b.label++, T = j[1], j = [0];
21013
21003
  continue;
21014
21004
  case 7:
21015
- F = b.ops.pop(), b.trys.pop();
21005
+ j = b.ops.pop(), b.trys.pop();
21016
21006
  continue;
21017
21007
  default:
21018
- if (g = b.trys, !(g = g.length > 0 && g[g.length - 1]) && (F[0] === 6 || F[0] === 2)) {
21008
+ if (g = b.trys, !(g = g.length > 0 && g[g.length - 1]) && (j[0] === 6 || j[0] === 2)) {
21019
21009
  b = 0;
21020
21010
  continue;
21021
21011
  }
21022
- if (F[0] === 3 && (!g || F[1] > g[0] && F[1] < g[3])) {
21023
- b.label = F[1];
21012
+ if (j[0] === 3 && (!g || j[1] > g[0] && j[1] < g[3])) {
21013
+ b.label = j[1];
21024
21014
  break;
21025
21015
  }
21026
- if (F[0] === 6 && b.label < g[1]) {
21027
- b.label = g[1], g = F;
21016
+ if (j[0] === 6 && b.label < g[1]) {
21017
+ b.label = g[1], g = j;
21028
21018
  break;
21029
21019
  }
21030
21020
  if (g && b.label < g[2]) {
21031
- b.label = g[2], b.ops.push(F);
21021
+ b.label = g[2], b.ops.push(j);
21032
21022
  break;
21033
21023
  }
21034
21024
  g[2] && b.ops.pop(), b.trys.pop();
21035
21025
  continue;
21036
21026
  }
21037
- F = h.call(p, b);
21027
+ j = h.call(p, b);
21038
21028
  } catch (x) {
21039
- F = [6, x], T = 0;
21029
+ j = [6, x], T = 0;
21040
21030
  } finally {
21041
21031
  m = g = 0;
21042
21032
  }
21043
- if (F[0] & 5) throw F[1];
21044
- return { value: F[0] ? F[1] : void 0, done: !0 };
21033
+ if (j[0] & 5) throw j[1];
21034
+ return { value: j[0] ? j[1] : void 0, done: !0 };
21045
21035
  }
21046
21036
  }, r = gt && gt.__importDefault || function(p) {
21047
21037
  return p && p.__esModule ? p : { default: p };
@@ -21049,7 +21039,7 @@ function su() {
21049
21039
  Object.defineProperty(gt, "__esModule", { value: !0 }), gt.useWebSocket = void 0;
21050
21040
  var a = Ct, i = w0, u = Bt(), s = t3(), l = n3(), c = r(r3()), d = ou(), f = function(p, h, b) {
21051
21041
  h === void 0 && (h = u.DEFAULT_OPTIONS), b === void 0 && (b = !0);
21052
- var m = (0, a.useState)(null), T = m[0], g = m[1], D = (0, a.useState)({}), P = D[0], X = D[1], F = (0, a.useMemo)(function() {
21042
+ var m = (0, a.useState)(null), T = m[0], g = m[1], D = (0, a.useState)({}), P = D[0], W = D[1], j = (0, a.useMemo)(function() {
21053
21043
  if (!h.disableJson && T)
21054
21044
  try {
21055
21045
  return JSON.parse(T.data);
@@ -21057,20 +21047,20 @@ function su() {
21057
21047
  return u.UNPARSABLE_JSON_OBJECT;
21058
21048
  }
21059
21049
  return null;
21060
- }, [T, h.disableJson]), x = (0, a.useRef)(null), w = (0, a.useRef)(null), V = (0, a.useRef)(function() {
21061
- }), q = (0, a.useRef)(0), te = (0, a.useRef)(Date.now()), Y = (0, a.useRef)([]), $ = (0, a.useRef)(null), k = (0, a.useRef)(h);
21062
- k.current = h;
21063
- var I = x.current && P[x.current] !== void 0 ? P[x.current] : p !== null && b === !0 ? u.ReadyState.CONNECTING : u.ReadyState.UNINSTANTIATED, L = h.queryParams ? JSON.stringify(h.queryParams) : null, B = (0, a.useCallback)(function(z, y) {
21050
+ }, [T, h.disableJson]), x = (0, a.useRef)(null), k = (0, a.useRef)(null), G = (0, a.useRef)(function() {
21051
+ }), q = (0, a.useRef)(0), te = (0, a.useRef)(Date.now()), Y = (0, a.useRef)([]), $ = (0, a.useRef)(null), L = (0, a.useRef)(h);
21052
+ L.current = h;
21053
+ var I = x.current && P[x.current] !== void 0 ? P[x.current] : p !== null && b === !0 ? u.ReadyState.CONNECTING : u.ReadyState.UNINSTANTIATED, w = h.queryParams ? JSON.stringify(h.queryParams) : null, F = (0, a.useCallback)(function(z, y) {
21064
21054
  var ne;
21065
- if (y === void 0 && (y = !0), u.isEventSourceSupported && w.current instanceof EventSource) {
21055
+ if (y === void 0 && (y = !0), u.isEventSourceSupported && k.current instanceof EventSource) {
21066
21056
  console.warn("Unable to send a message from an eventSource");
21067
21057
  return;
21068
21058
  }
21069
- ((ne = w.current) === null || ne === void 0 ? void 0 : ne.readyState) === u.ReadyState.OPEN ? ((0, d.assertIsWebSocket)(w.current, k.current.skipAssert), w.current.send(z)) : y && Y.current.push(z);
21070
- }, []), W = (0, a.useCallback)(function(z, y) {
21071
- y === void 0 && (y = !0), B(JSON.stringify(z), y);
21072
- }, [B]), H = (0, a.useCallback)(function() {
21073
- return k.current.share !== !0 || u.isEventSourceSupported && w.current instanceof EventSource ? w.current : ($.current === null && w.current && ((0, d.assertIsWebSocket)(w.current, k.current.skipAssert), $.current = (0, c.default)(w.current, V)), $.current);
21059
+ ((ne = k.current) === null || ne === void 0 ? void 0 : ne.readyState) === u.ReadyState.OPEN ? ((0, d.assertIsWebSocket)(k.current, L.current.skipAssert), k.current.send(z)) : y && Y.current.push(z);
21060
+ }, []), V = (0, a.useCallback)(function(z, y) {
21061
+ y === void 0 && (y = !0), F(JSON.stringify(z), y);
21062
+ }, [F]), B = (0, a.useCallback)(function() {
21063
+ return L.current.share !== !0 || u.isEventSourceSupported && k.current instanceof EventSource ? k.current : ($.current === null && k.current && ((0, d.assertIsWebSocket)(k.current, L.current.skipAssert), $.current = (0, c.default)(k.current, G)), $.current);
21074
21064
  }, []);
21075
21065
  return (0, a.useEffect)(function() {
21076
21066
  if (p !== null && b === !0) {
@@ -21080,10 +21070,10 @@ function su() {
21080
21070
  return n(this, function(pe) {
21081
21071
  switch (pe.label) {
21082
21072
  case 0:
21083
- return v = x, [4, (0, l.getUrl)(p, k)];
21073
+ return v = x, [4, (0, l.getUrl)(p, L)];
21084
21074
  case 1:
21085
21075
  return v.current = pe.sent(), x.current === null ? (console.error("Failed to get a valid URL. WebSocket connection aborted."), x.current = "ABORTED", (0, i.flushSync)(function() {
21086
- return X(function(Se) {
21076
+ return W(function(Se) {
21087
21077
  return e(e({}, Se), { ABORTED: u.ReadyState.CLOSED });
21088
21078
  });
21089
21079
  }), [
@@ -21095,12 +21085,12 @@ function su() {
21095
21085
  });
21096
21086
  }, _e = function(Se) {
21097
21087
  y || (0, i.flushSync)(function() {
21098
- return X(function(Oe) {
21088
+ return W(function(Oe) {
21099
21089
  var ze;
21100
21090
  return e(e({}, Oe), x.current && (ze = {}, ze[x.current] = Se, ze));
21101
21091
  });
21102
21092
  });
21103
- }, ne && (z = (0, s.createOrJoinSocket)(w, x.current, _e, k, se, V, q, te, B)), [
21093
+ }, ne && (z = (0, s.createOrJoinSocket)(k, x.current, _e, L, se, G, q, te, F)), [
21104
21094
  2
21105
21095
  /*return*/
21106
21096
  ]);
@@ -21108,26 +21098,26 @@ function su() {
21108
21098
  });
21109
21099
  });
21110
21100
  };
21111
- return V.current = function() {
21101
+ return G.current = function() {
21112
21102
  y || ($.current && ($.current = null), z?.(), ae());
21113
21103
  }, ae(), function() {
21114
21104
  y = !0, ne = !1, $.current && ($.current = null), z?.(), g(null);
21115
21105
  };
21116
- } else (p === null || b === !1) && (q.current = 0, X(function(v) {
21106
+ } else (p === null || b === !1) && (q.current = 0, W(function(v) {
21117
21107
  var se;
21118
21108
  return e(e({}, v), x.current && (se = {}, se[x.current] = u.ReadyState.CLOSED, se));
21119
21109
  }));
21120
- }, [p, b, L, B]), (0, a.useEffect)(function() {
21110
+ }, [p, b, w, F]), (0, a.useEffect)(function() {
21121
21111
  I === u.ReadyState.OPEN && Y.current.splice(0).forEach(function(z) {
21122
- B(z);
21112
+ F(z);
21123
21113
  });
21124
21114
  }, [I]), {
21125
- sendMessage: B,
21126
- sendJsonMessage: W,
21115
+ sendMessage: F,
21116
+ sendJsonMessage: V,
21127
21117
  lastMessage: T,
21128
- lastJsonMessage: F,
21118
+ lastJsonMessage: j,
21129
21119
  readyState: I,
21130
- getWebSocket: H
21120
+ getWebSocket: B
21131
21121
  };
21132
21122
  };
21133
21123
  return gt.useWebSocket = f, gt;
@@ -21210,8 +21200,8 @@ function i3() {
21210
21200
  var b = (0, r.useWebSocket)(u, p, l), m = b.lastMessage, T = b.readyState, g = b.getWebSocket;
21211
21201
  return (0, n.useEffect)(function() {
21212
21202
  m?.type && Object.entries(h.current).forEach(function(D) {
21213
- var P = D[0], X = D[1];
21214
- P === m.type && X(m);
21203
+ var P = D[0], W = D[1];
21204
+ P === m.type && W(m);
21215
21205
  });
21216
21206
  }, [m]), {
21217
21207
  lastEvent: m,
@@ -21268,8 +21258,8 @@ const c3 = "This conversation with a live agent has ended. Please note that a tr
21268
21258
  CONVERSATION: "CONVERSATION",
21269
21259
  FORM: "FORM"
21270
21260
  }, pn = Xr({}), hd = ({ children: e, liveChatPayload: t }) => {
21271
- const { conversationScreen: n } = oe($e), { pushXpertMessage: r } = oe($t), { setHasError: a, setMode: i } = oe(tt), [u, s] = le(""), [l, c] = le(!1), [, d] = le(""), [f, p] = le([]), [h, b] = le(null), [m, T] = le(Yt.FORM), [g, D] = le(null), P = (H) => p((z) => [...z, H]), X = async (H) => {
21272
- const z = await l3(H.data), { conversation_id: y, event_type: ne, body: ae } = z;
21261
+ const { conversationScreen: n } = oe($e), { pushXpertMessage: r } = oe($t), { setHasError: a, setMode: i } = oe(tt), [u, s] = le(""), [l, c] = le(!1), [, d] = le(""), [f, p] = le([]), [h, b] = le(null), [m, T] = le(Yt.FORM), [g, D] = le(null), P = (B) => p((z) => [...z, B]), W = async (B) => {
21262
+ const z = await l3(B.data), { conversation_id: y, event_type: ne, body: ae } = z;
21273
21263
  switch (ne) {
21274
21264
  case "AGENT_TYPING":
21275
21265
  return te();
@@ -21280,7 +21270,7 @@ const c3 = "This conversation with a live agent has ended. Please note that a tr
21280
21270
  case "CONVERSATION_ERROR":
21281
21271
  return;
21282
21272
  case "CONVERSATION_TERMINATED":
21283
- return V();
21273
+ return G();
21284
21274
  case "CONVERSATION_TRANSFERRED_TO_GROUP":
21285
21275
  return;
21286
21276
  case "CONVERSATION_TRANSFERRED_TO_AGENT":
@@ -21294,18 +21284,18 @@ const c3 = "This conversation with a live agent has ended. Please note that a tr
21294
21284
  default:
21295
21285
  return;
21296
21286
  }
21297
- }, { sendJsonMessage: F } = s3(h, {
21298
- onMessage: X
21287
+ }, { sendJsonMessage: j } = s3(h, {
21288
+ onMessage: W
21299
21289
  }), x = () => {
21300
21290
  T(Yt.FORM);
21301
- const H = n?.liveChat?.form;
21302
- (!H || H.length === 0) && i(Nt.XPERT);
21303
- }, w = () => {
21304
- F({
21291
+ const B = n?.liveChat?.form;
21292
+ (!B || B.length === 0) && i(Nt.XPERT);
21293
+ }, k = () => {
21294
+ j({
21305
21295
  action: "sendmessage",
21306
21296
  event: "TERMINATE_CONVERSATION"
21307
21297
  });
21308
- }, V = () => {
21298
+ }, G = () => {
21309
21299
  r({
21310
21300
  content: c3,
21311
21301
  role: ve.INFO
@@ -21314,21 +21304,21 @@ const c3 = "This conversation with a live agent has ended. Please note that a tr
21314
21304
  d(""), b(null), T(Yt.FORM), i(Nt.XPERT);
21315
21305
  }, te = () => {
21316
21306
  g && clearTimeout(g), c(!0);
21317
- const H = setTimeout(() => {
21307
+ const B = setTimeout(() => {
21318
21308
  c(!1);
21319
21309
  }, 5e3);
21320
- D(H);
21321
- }, Y = (H) => {
21322
- const { displayName: z } = H;
21310
+ D(B);
21311
+ }, Y = (B) => {
21312
+ const { displayName: z } = B;
21323
21313
  p([]), s(z ?? "An agent"), T(Yt.CONVERSATION);
21324
- }, $ = (H) => {
21325
- const { messageId: z, text: y, timestamp: ne } = H;
21314
+ }, $ = (B) => {
21315
+ const { messageId: z, text: y, timestamp: ne } = B;
21326
21316
  P({
21327
21317
  content: y ?? "",
21328
21318
  id: z ?? "",
21329
21319
  role: ve.AGENT,
21330
21320
  timestamp: ne ? new Date(ne) : void 0
21331
- }), F({
21321
+ }), j({
21332
21322
  action: "sendmessage",
21333
21323
  messages: [
21334
21324
  {
@@ -21338,27 +21328,27 @@ const c3 = "This conversation with a live agent has ended. Please note that a tr
21338
21328
  ],
21339
21329
  event: "ACKNOWLEDGE_MESSAGE"
21340
21330
  }), c(!1);
21341
- }, W = {
21331
+ }, V = {
21342
21332
  agentName: u,
21343
21333
  agentTyping: l,
21344
21334
  cancelLiveChatConnection: x,
21345
- endLiveChat: V,
21335
+ endLiveChat: G,
21346
21336
  liveChatMessages: f,
21347
21337
  pushLiveChatMessage: P,
21348
- sendMessage: (H) => {
21338
+ sendMessage: (B) => {
21349
21339
  P({
21350
- content: H,
21340
+ content: B,
21351
21341
  id: "",
21352
21342
  role: ve.USER,
21353
21343
  timestamp: /* @__PURE__ */ new Date()
21354
- }), F({
21344
+ }), j({
21355
21345
  action: "sendmessage",
21356
21346
  event: "OUTGOING_MESSAGE",
21357
- message: H
21347
+ message: B
21358
21348
  });
21359
21349
  },
21360
21350
  sendTypingEvent: async () => {
21361
- F({
21351
+ j({
21362
21352
  action: "sendmessage",
21363
21353
  event: "TYPING"
21364
21354
  });
@@ -21366,10 +21356,10 @@ const c3 = "This conversation with a live agent has ended. Please note that a tr
21366
21356
  setLiveChatMessages: p,
21367
21357
  step: m,
21368
21358
  setStep: T,
21369
- startLiveChat: (H) => {
21359
+ startLiveChat: (B) => {
21370
21360
  try {
21371
21361
  T(Yt.CONNECTING);
21372
- const z = new URLSearchParams({ ...t, ...H });
21362
+ const z = new URLSearchParams({ ...t, ...B });
21373
21363
  z.append("url", window.location.href), b(
21374
21364
  `${n?.liveChat?.socketUrl}?${z.toString()}`
21375
21365
  );
@@ -21383,11 +21373,11 @@ const c3 = "This conversation with a live agent has ended. Please note that a tr
21383
21373
  icon: "check",
21384
21374
  iconColor: "#30A171",
21385
21375
  role: ve.NOTIFICATION
21386
- }), V();
21376
+ }), G();
21387
21377
  },
21388
- terminateConversation: w
21378
+ terminateConversation: k
21389
21379
  };
21390
- return /* @__PURE__ */ _.jsx(pn.Provider, { value: W, children: e });
21380
+ return /* @__PURE__ */ _.jsx(pn.Provider, { value: V, children: e });
21391
21381
  };
21392
21382
  hd.propTypes = {
21393
21383
  children: A.element.isRequired,
@@ -21909,47 +21899,47 @@ function _d() {
21909
21899
  ), T = () => {
21910
21900
  r(Nt.XPERT);
21911
21901
  }, g = () => {
21912
- p("privacyCheck"), f((F) => !F);
21913
- }, D = (F, x) => {
21914
- const w = F.target.value;
21915
- p(x), c(x, w);
21902
+ p("privacyCheck"), f((j) => !j);
21903
+ }, D = (j, x) => {
21904
+ const k = j.target.value;
21905
+ p(x), c(x, k);
21916
21906
  }, P = () => {
21917
- X() && n(l);
21907
+ W() && n(l);
21918
21908
  };
21919
21909
  Le(() => {
21920
21910
  (!a || a.length === 0) && n();
21921
21911
  }, [a, n]);
21922
- const X = () => {
21923
- const F = a.reduce((x, w) => {
21924
- const { key: V, validations: q = [] } = w, te = l[V];
21925
- if (!te) return { ...x, [V]: "Required" };
21912
+ const W = () => {
21913
+ const j = a.reduce((x, k) => {
21914
+ const { key: G, validations: q = [] } = k, te = l[G];
21915
+ if (!te) return { ...x, [G]: "Required" };
21926
21916
  if (q?.length > 0)
21927
21917
  for (const Y of q)
21928
21918
  switch (Y) {
21929
21919
  case "email": {
21930
21920
  if (!E3(te))
21931
- return { ...x, [V]: "Should be email" };
21921
+ return { ...x, [G]: "Should be email" };
21932
21922
  break;
21933
21923
  }
21934
21924
  }
21935
21925
  return x;
21936
21926
  }, {});
21937
- return !d && s && (F.privacyCheck = "Required"), b(F), Object.keys(F).length === 0;
21927
+ return !d && s && (j.privacyCheck = "Required"), b(j), Object.keys(j).length === 0;
21938
21928
  };
21939
21929
  return /* @__PURE__ */ _.jsxs("div", { className: "live-chat-form", children: [
21940
21930
  i && /* @__PURE__ */ _.jsx("p", { children: i }),
21941
- (a ?? []).map(({ key: F, name: x }) => /* @__PURE__ */ _.jsxs(k0, { children: [
21931
+ (a ?? []).map(({ key: j, name: x }) => /* @__PURE__ */ _.jsxs(k0, { children: [
21942
21932
  /* @__PURE__ */ _.jsx(
21943
21933
  "input",
21944
21934
  {
21945
- className: `live-chat-form-input ${h[F] ? "error" : ""}`,
21935
+ className: `live-chat-form-input ${h[j] ? "error" : ""}`,
21946
21936
  name: x,
21947
21937
  placeholder: x,
21948
- onChange: (w) => D(w, F)
21938
+ onChange: (k) => D(k, j)
21949
21939
  }
21950
21940
  ),
21951
- h[F] && /* @__PURE__ */ _.jsx("p", { className: "live-chat-form-error", children: h[F] })
21952
- ] }, F)),
21941
+ h[j] && /* @__PURE__ */ _.jsx("p", { className: "live-chat-form-error", children: h[j] })
21942
+ ] }, j)),
21953
21943
  s && /* @__PURE__ */ _.jsxs(_.Fragment, { children: [
21954
21944
  /* @__PURE__ */ _.jsx(
21955
21945
  "div",
@@ -21994,7 +21984,7 @@ function _d() {
21994
21984
  },
21995
21985
  type: "checkbox",
21996
21986
  onChange: g,
21997
- onKeyDown: (F) => F.key === "Enter" && g()
21987
+ onKeyDown: (j) => j.key === "Enter" && g()
21998
21988
  }
21999
21989
  ),
22000
21990
  /* @__PURE__ */ _.jsx("label", { htmlFor: "privacy-check", children: "Yes, I accept" })
@@ -22222,19 +22212,19 @@ function Sd({ submitEventExternal: e = null }) {
22222
22212
  isMobile: g,
22223
22213
  mode: D,
22224
22214
  setDisableScroll: P,
22225
- setHasError: X,
22226
- setHasNewMessage: F,
22215
+ setHasError: W,
22216
+ setHasNewMessage: j,
22227
22217
  setIsNormalSize: x,
22228
- setLoading: w,
22229
- setLoadingHistory: V,
22218
+ setLoading: k,
22219
+ setLoadingHistory: G,
22230
22220
  setStreaming: q
22231
- } = oe(tt), [, te] = le(!1), [, Y] = le(!1), [$, k] = le(!1), [I, L] = le(!1), [B, W] = le(!1), H = $ || !c, z = et(null), y = et(null), ne = ft.get(`${a}-test`) === "1";
22221
+ } = oe(tt), [, te] = le(!1), [, Y] = le(!1), [$, L] = le(!1), [I, w] = le(!1), [F, V] = le(!1), B = $ || !c, z = et(null), y = et(null), ne = ft.get(`${a}-test`) === "1";
22232
22222
  Le(() => {
22233
- D === Nt.XPERT && H && z.current && z.current.focus();
22234
- }, [D, H]), C3(
22223
+ D === Nt.XPERT && B && z.current && z.current.focus();
22224
+ }, [D, B]), C3(
22235
22225
  r?.liveChat?.enabled,
22236
22226
  I,
22237
- L
22227
+ w
22238
22228
  );
22239
22229
  const ae = dt(
22240
22230
  ({ name: ue, payload: be }) => {
@@ -22260,13 +22250,13 @@ function Sd({ submitEventExternal: e = null }) {
22260
22250
  for (; !ye(); ) {
22261
22251
  if (Ce >= Ye)
22262
22252
  return !1;
22263
- await new Promise((U) => setTimeout(U, Fe)), Ce += Fe;
22253
+ await new Promise((H) => setTimeout(H, Fe)), Ce += Fe;
22264
22254
  }
22265
22255
  return !0;
22266
22256
  })(
22267
22257
  () => window?.OnetrustActiveGroups && window.OnetrustActiveGroups.split(",").includes("C0003")
22268
22258
  ))) {
22269
- V(!0);
22259
+ G(!0);
22270
22260
  try {
22271
22261
  let ye = Ns(a);
22272
22262
  const Ye = t?.baseUrl?.includes("xpert-api-services") ? "/v1/history" : "/xpert/v2/history", Fe = `conversation_id=${ye}&client_id=${t?.payloadParams?.client_id}`, Ce = await fetch(
@@ -22280,22 +22270,22 @@ function Sd({ submitEventExternal: e = null }) {
22280
22270
  );
22281
22271
  if (!Ce.ok)
22282
22272
  throw new Error(`HTTPError: ${Ce.status} ${Ce.statusText}`);
22283
- const U = await Ce.json();
22273
+ const H = await Ce.json();
22284
22274
  m(
22285
- U.map((K) => ({
22275
+ H.map((K) => ({
22286
22276
  ...K,
22287
22277
  disableFeedback: !0,
22288
22278
  toolCalls: K.tool_calls,
22289
22279
  toolCallId: K.tool_call_id
22290
22280
  }))
22291
- ), P(!0), F(!0);
22281
+ ), P(!0), j(!0);
22292
22282
  } catch (ye) {
22293
22283
  console.error(ye);
22294
22284
  } finally {
22295
- V(!1);
22285
+ G(!1);
22296
22286
  }
22297
22287
  }
22298
- }, se = r?.conversationHistory?.enabled && H && !I;
22288
+ }, se = r?.conversationHistory?.enabled && B && !I;
22299
22289
  S3(
22300
22290
  () => se && v()
22301
22291
  ), Le(() => {
@@ -22396,12 +22386,12 @@ function Sd({ submitEventExternal: e = null }) {
22396
22386
  });
22397
22387
  }
22398
22388
  );
22399
- const U = Ce.filter(({ content: he }) => !!he), K = U.map((he) => he.content ?? "").join("");
22389
+ const H = Ce.filter(({ content: he }) => !!he), K = H.map((he) => he.content ?? "").join("");
22400
22390
  pe(K, be);
22401
22391
  const ie = /* @__PURE__ */ new Date(), Ee = ks(JSON.stringify(ye));
22402
22392
  return Se({
22403
22393
  conversationByteSize: Ee,
22404
- conversationSize: U.length + T.filter(({ content: he }) => !!he).length + 1,
22394
+ conversationSize: H.length + T.filter(({ content: he }) => !!he).length + 1,
22405
22395
  userInputMessage: Me,
22406
22396
  apiResponseMessage: K,
22407
22397
  elapsedSeconds: Is(Ye, ie),
@@ -22409,7 +22399,7 @@ function Sd({ submitEventExternal: e = null }) {
22409
22399
  }), Ce;
22410
22400
  }, ze = async (ue, be, Me, ye, Ye) => {
22411
22401
  const Fe = new TextDecoder("utf-8");
22412
- let Ce = [], U = 0;
22402
+ let Ce = [], H = 0;
22413
22403
  const K = /* @__PURE__ */ new Date();
22414
22404
  for (; ; ) {
22415
22405
  const { value: Ee, done: he } = await ue.read();
@@ -22426,12 +22416,12 @@ function Sd({ submitEventExternal: e = null }) {
22426
22416
  toolCallId: Be.tool_call_id
22427
22417
  })
22428
22418
  );
22429
- if (Ve.length > U) {
22430
- for (let ot = U; ot < Ve.length; ot++)
22419
+ if (Ve.length > H) {
22420
+ for (let ot = H; ot < Ve.length; ot++)
22431
22421
  b({
22432
22422
  content: "",
22433
22423
  disableFeedback: !0
22434
- }), U++;
22424
+ }), H++;
22435
22425
  const Be = /* @__PURE__ */ new Date(), rt = ks(
22436
22426
  JSON.stringify(ye)
22437
22427
  ), He = Ve.filter(({ content: ot }) => !!ot);
@@ -22472,7 +22462,7 @@ function Sd({ submitEventExternal: e = null }) {
22472
22462
  if (ue.trim().length === 0)
22473
22463
  return;
22474
22464
  const be = /* @__PURE__ */ new Date();
22475
- F(!1), X(!1);
22465
+ j(!1), W(!1);
22476
22466
  const Me = T.filter((Ce) => Ce.role === ve.USER).length + 1;
22477
22467
  if (ae({
22478
22468
  name: `${s.prefix}.bi.xpert.chatbot.popup.chat.message.sent`,
@@ -22483,8 +22473,8 @@ function Sd({ submitEventExternal: e = null }) {
22483
22473
  userInputMessage: ue,
22484
22474
  isTestUser: ne
22485
22475
  }
22486
- }), w(!0), h) {
22487
- await h(ue), w(!1);
22476
+ }), k(!0), h) {
22477
+ await h(ue), k(!1);
22488
22478
  return;
22489
22479
  }
22490
22480
  let ye = null;
@@ -22522,7 +22512,7 @@ function Sd({ submitEventExternal: e = null }) {
22522
22512
  });
22523
22513
  if (!Fe.ok)
22524
22514
  throw new Error(`HTTPError: ${Fe.status} ${Fe.statusText}`);
22525
- w(!1), t.payloadParams?.stream ? await Ie(
22515
+ k(!1), t.payloadParams?.stream ? await Ie(
22526
22516
  Fe,
22527
22517
  ye,
22528
22518
  ue,
@@ -22534,14 +22524,14 @@ function Sd({ submitEventExternal: e = null }) {
22534
22524
  ue,
22535
22525
  Ye,
22536
22526
  be
22537
- ), P(!1), F(!0);
22527
+ ), P(!1), j(!0);
22538
22528
  } catch (be) {
22539
22529
  if (be.name === "AbortError")
22540
22530
  return;
22541
- w(!1), X(!0), console.error(be);
22531
+ k(!1), W(!0), console.error(be);
22542
22532
  }
22543
22533
  }, st = () => {
22544
- L(!1), k(!0), x(!0), v(), ae({
22534
+ w(!1), L(!0), x(!0), v(), ae({
22545
22535
  name: `${s.prefix}.bi.xpert.chatbot.action.button.clicked`,
22546
22536
  payload: {
22547
22537
  category: "2u",
@@ -22559,7 +22549,7 @@ function Sd({ submitEventExternal: e = null }) {
22559
22549
  }
22560
22550
  }), x(ue);
22561
22551
  }, Mn = () => {
22562
- k(!0), x(!0), v(), ae({
22552
+ L(!0), x(!0), v(), ae({
22563
22553
  name: `${s.prefix}.bi.xpert.chatbot.proactive.message.clicked`,
22564
22554
  payload: {
22565
22555
  category: "2u",
@@ -22577,7 +22567,7 @@ function Sd({ submitEventExternal: e = null }) {
22577
22567
  }
22578
22568
  });
22579
22569
  }, mn = () => {
22580
- k(!1), W(!1), ae({
22570
+ L(!1), V(!1), ae({
22581
22571
  name: `${s.prefix}.bi.xpert.chatbot.popup.chat.minimized`,
22582
22572
  payload: {
22583
22573
  category: "2u",
@@ -22612,7 +22602,7 @@ function Sd({ submitEventExternal: e = null }) {
22612
22602
  u?.enabled && /* @__PURE__ */ _.jsx(
22613
22603
  Ad,
22614
22604
  {
22615
- showMessage: !H,
22605
+ showMessage: !B,
22616
22606
  style: Bn,
22617
22607
  onClose: Fn,
22618
22608
  onClick: Mn,
@@ -22656,7 +22646,7 @@ function Sd({ submitEventExternal: e = null }) {
22656
22646
  }
22657
22647
  ),
22658
22648
  c && /* @__PURE__ */ _.jsx(p3, {}),
22659
- H && !I && /* @__PURE__ */ _.jsx(Js, { isMounted: B, children: /* @__PURE__ */ _.jsx(
22649
+ B && !I && /* @__PURE__ */ _.jsx(Js, { isMounted: F, children: /* @__PURE__ */ _.jsx(
22660
22650
  "div",
22661
22651
  {
22662
22652
  ref: d,
@@ -22667,8 +22657,8 @@ function Sd({ submitEventExternal: e = null }) {
22667
22657
  {
22668
22658
  onClose: mn,
22669
22659
  handleResizeButtonClick: wt,
22670
- isMounted: B,
22671
- setIsMounted: W
22660
+ isMounted: F,
22661
+ setIsMounted: V
22672
22662
  }
22673
22663
  ),
22674
22664
  /* @__PURE__ */ _.jsx(h3, {}),
@@ -22680,7 +22670,7 @@ function Sd({ submitEventExternal: e = null }) {
22680
22670
  handleSend: nt,
22681
22671
  inputRef: z,
22682
22672
  isTestUser: ne,
22683
- setLiveChatOpen: L,
22673
+ setLiveChatOpen: w,
22684
22674
  submitEvent: ae
22685
22675
  }
22686
22676
  ),