@cimulate/copilot-widget 1.57.1 → 1.58.1

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
@@ -67,8 +67,8 @@ var Te = (e, t, n) => new Promise((r, i) => {
67
67
  throw s;
68
68
  }, "return" in t && r("return"), i;
69
69
  }, sl = (e, t, n) => (t = e[Or("asyncIterator")]) ? t.call(e) : (e = e[Or("iterator")](), t = {}, n = (r, i) => (i = e[r]) && (t[r] = (s) => new Promise((o, a, u) => (s = i.call(e, s), u = s.done, Promise.resolve(s.value).then((c) => o({ value: c, done: u }), a)))), n("next"), n("return"), t);
70
- import { jsx as y, jsxs as te, Fragment as Lt } from "react/jsx-runtime";
71
- import ur, { useMemo as Ye, useReducer as EE, createContext as Dt, useEffect as we, useContext as xt, useCallback as ae, useRef as Me, useState as Ne, isValidElement as vu, cloneElement as Kf, useId as Kr, useLayoutEffect as Qf, memo as bE, forwardRef as Et, createElement as TE, Children as Jf, useSyncExternalStore as yE } from "react";
70
+ import { jsx as y, jsxs as ee, Fragment as Lt } from "react/jsx-runtime";
71
+ import ur, { useMemo as Ye, useReducer as EE, createContext as Dt, useEffect as we, useContext as xt, useCallback as ue, useRef as Me, useState as Ne, isValidElement as vu, cloneElement as Kf, useId as Kr, useLayoutEffect as Qf, memo as bE, forwardRef as Et, createElement as TE, Children as Jf, useSyncExternalStore as yE } from "react";
72
72
  import { createPortal as Js, flushSync as Du } from "react-dom";
73
73
  import { createRoot as _E } from "react-dom/client";
74
74
  const mn = /* @__PURE__ */ Object.create(null);
@@ -5306,11 +5306,11 @@ const UT = typeof XMLHttpRequest != "undefined", HT = UT && function(e) {
5306
5306
  request: g
5307
5307
  };
5308
5308
  Jh(
5309
- function(W) {
5310
- n(W), S();
5309
+ function(G) {
5310
+ n(G), S();
5311
5311
  },
5312
- function(W) {
5313
- r(W), S();
5312
+ function(G) {
5313
+ r(G), S();
5314
5314
  },
5315
5315
  L
5316
5316
  ), g = null;
@@ -5628,35 +5628,35 @@ const nc = "1.20.0", zl = 64 * 1024, JT = {
5628
5628
  cancelToken: x,
5629
5629
  timeout: L,
5630
5630
  onDownloadProgress: U,
5631
- onUploadProgress: W,
5631
+ onUploadProgress: G,
5632
5632
  responseType: R,
5633
5633
  headers: $,
5634
- withCredentials: j = "same-origin",
5635
- fetchOptions: ue,
5634
+ withCredentials: K = "same-origin",
5635
+ fetchOptions: ne,
5636
5636
  maxContentLength: H,
5637
- maxBodyLength: V,
5637
+ maxBodyLength: z,
5638
5638
  maxRedirects: de
5639
5639
  } = tp(g);
5640
- const K = w.isNumber(H) && H > -1, Q = w.isNumber(V) && V > -1, ie = (he) => w.hasOwnProp(g, he) ? g[he] : void 0;
5640
+ const X = w.isNumber(H) && H > -1, Q = w.isNumber(z) && z > -1, se = (he) => w.hasOwnProp(g, he) ? g[he] : void 0;
5641
5641
  let C = i || fetch;
5642
5642
  R = R ? (R + "").toLowerCase() : "text";
5643
- let re = $T(
5643
+ let ie = $T(
5644
5644
  [v, x && x.toAbortSignal()],
5645
5645
  L
5646
- ), se = null;
5647
- const P = re && re.unsubscribe && (() => {
5648
- re.unsubscribe();
5646
+ ), oe = null;
5647
+ const P = ie && ie.unsubscribe && (() => {
5648
+ ie.unsubscribe();
5649
5649
  });
5650
5650
  let Se, Be = null;
5651
5651
  const Pe = () => new Z(
5652
5652
  "Request body larger than maxBodyLength limit",
5653
5653
  Z.ERR_BAD_REQUEST,
5654
5654
  g,
5655
- se
5655
+ oe
5656
5656
  );
5657
5657
  try {
5658
5658
  let he;
5659
- const Ie = ie("auth");
5659
+ const Ie = se("auth");
5660
5660
  if (Ie) {
5661
5661
  const pe = w.getSafeProp(Ie, "username") || "", We = w.getSafeProp(Ie, "password") || "";
5662
5662
  he = {
@@ -5678,29 +5678,29 @@ const nc = "1.20.0", zl = 64 * 1024, JT = {
5678
5678
  if (he && ($.delete("authorization"), $.set(
5679
5679
  "Authorization",
5680
5680
  "Basic " + btoa(ZT((he.username || "") + ":" + (he.password || "")))
5681
- )), K && typeof b == "string" && b.startsWith("data:") && QT(b) > H)
5681
+ )), X && typeof b == "string" && b.startsWith("data:") && QT(b) > H)
5682
5682
  throw new Z(
5683
5683
  "maxContentLength size of " + H + " exceeded",
5684
5684
  Z.ERR_BAD_RESPONSE,
5685
5685
  g,
5686
- se
5686
+ oe
5687
5687
  );
5688
5688
  if (Q && T !== "get" && T !== "head") {
5689
5689
  const pe = yield E(k);
5690
- if (typeof pe == "number" && isFinite(pe) && (Se = pe, pe > V))
5690
+ if (typeof pe == "number" && isFinite(pe) && (Se = pe, pe > z))
5691
5691
  throw Pe();
5692
5692
  }
5693
5693
  const Re = Q && (w.isReadableStream(k) || w.isStream(k)), yt = (pe, We, Ot) => Ul(
5694
5694
  pe,
5695
5695
  zl,
5696
- (ee) => {
5697
- if (Q && ee > V)
5696
+ (te) => {
5697
+ if (Q && te > z)
5698
5698
  throw Be = Pe();
5699
- We && We(ee);
5699
+ We && We(te);
5700
5700
  },
5701
5701
  Ot
5702
5702
  );
5703
- if (p && T !== "get" && T !== "head" && (W || Re)) {
5703
+ if (p && T !== "get" && T !== "head" && (G || Re)) {
5704
5704
  if (Se = Se == null ? yield S($, k) : Se, Se !== 0 || Re) {
5705
5705
  let pe = new s(b, {
5706
5706
  method: "POST",
@@ -5708,11 +5708,11 @@ const nc = "1.20.0", zl = 64 * 1024, JT = {
5708
5708
  duplex: "half"
5709
5709
  }), We;
5710
5710
  if (w.isFormData(k) && (We = pe.headers.get("content-type")) && $.setContentType(We), pe.body) {
5711
- const [Ot, ee] = W && Dl(
5711
+ const [Ot, te] = G && Dl(
5712
5712
  Se,
5713
- io(Ml(W))
5713
+ io(Ml(G))
5714
5714
  ) || [];
5715
- k = yt(pe.body, Ot, ee);
5715
+ k = yt(pe.body, Ot, te);
5716
5716
  }
5717
5717
  }
5718
5718
  } else if (Re && !u && l && T !== "get" && T !== "head")
@@ -5722,64 +5722,64 @@ const nc = "1.20.0", zl = 64 * 1024, JT = {
5722
5722
  "Stream request bodies are not supported by the current fetch implementation",
5723
5723
  Z.ERR_NOT_SUPPORT,
5724
5724
  g,
5725
- se
5725
+ oe
5726
5726
  );
5727
- w.isString(j) || (j = j ? "include" : "omit");
5727
+ w.isString(K) || (K = K ? "include" : "omit");
5728
5728
  const qt = u && "credentials" in s.prototype;
5729
5729
  if (w.isFormData(k)) {
5730
5730
  const pe = $.getContentType();
5731
5731
  pe && /^multipart\/form-data/i.test(pe) && !/boundary=/i.test(pe) && $.delete("content-type");
5732
5732
  }
5733
5733
  $.set("User-Agent", "axios/" + nc, !1);
5734
- const et = ue == null ? ue : Object.assign(/* @__PURE__ */ Object.create(null), ue);
5734
+ const et = ne == null ? ne : Object.assign(/* @__PURE__ */ Object.create(null), ne);
5735
5735
  et && (delete et.body, delete et.headers, delete et.method, delete et.signal, delete et.duplex, delete et.credentials);
5736
5736
  const _t = Object.assign(/* @__PURE__ */ Object.create(null), et, {
5737
- signal: re,
5737
+ signal: ie,
5738
5738
  method: T.toUpperCase(),
5739
5739
  headers: $h($.normalize()),
5740
5740
  body: k,
5741
5741
  duplex: "half",
5742
- credentials: qt ? j : void 0
5742
+ credentials: qt ? K : void 0
5743
5743
  });
5744
5744
  u && (w.forEach(JT, (pe, We) => {
5745
5745
  _t[We] === void 0 && (_t[We] = pe);
5746
- }), _t.signal === void 0 && (_t.signal = null), _t.body === void 0 && (_t.body = null)), de === 0 && (_t.redirect = "manual", et && (et.redirect = "manual")), se = u && new s(b, _t);
5747
- let tt = yield u ? C(se, et) : C(b, _t);
5746
+ }), _t.signal === void 0 && (_t.signal = null), _t.body === void 0 && (_t.body = null)), de === 0 && (_t.redirect = "manual", et && (et.redirect = "manual")), oe = u && new s(b, _t);
5747
+ let tt = yield u ? C(oe, et) : C(b, _t);
5748
5748
  const sn = mt.from(tt.headers);
5749
- if (K) {
5749
+ if (X) {
5750
5750
  const pe = w.toFiniteNumber(sn.getContentLength());
5751
5751
  if (pe != null && pe > H)
5752
5752
  throw new Z(
5753
5753
  "maxContentLength size of " + H + " exceeded",
5754
5754
  Z.ERR_BAD_RESPONSE,
5755
5755
  g,
5756
- se
5756
+ oe
5757
5757
  );
5758
5758
  }
5759
5759
  const Ft = h && (R === "stream" || R === "response");
5760
- if (h && tt.body && (U || K || Ft && P)) {
5760
+ if (h && tt.body && (U || X || Ft && P)) {
5761
5761
  const pe = {};
5762
5762
  ["status", "statusText", "headers"].forEach((be) => {
5763
5763
  pe[be] = tt[be];
5764
5764
  });
5765
- const We = w.toFiniteNumber(sn.getContentLength()), [Ot, ee] = U && Dl(
5765
+ const We = w.toFiniteNumber(sn.getContentLength()), [Ot, te] = U && Dl(
5766
5766
  We,
5767
5767
  io(Ml(U), !0)
5768
5768
  ) || [];
5769
- let oe = 0;
5769
+ let ae = 0;
5770
5770
  const ce = (be) => {
5771
- if (K && (oe = be, oe > H))
5771
+ if (X && (ae = be, ae > H))
5772
5772
  throw new Z(
5773
5773
  "maxContentLength size of " + H + " exceeded",
5774
5774
  Z.ERR_BAD_RESPONSE,
5775
5775
  g,
5776
- se
5776
+ oe
5777
5777
  );
5778
5778
  Ot && Ot(be);
5779
5779
  };
5780
5780
  tt = new o(
5781
5781
  Ul(tt.body, zl, ce, () => {
5782
- ee && ee(), P && P();
5782
+ te && te(), P && P();
5783
5783
  }),
5784
5784
  pe
5785
5785
  );
@@ -5789,14 +5789,14 @@ const nc = "1.20.0", zl = 64 * 1024, JT = {
5789
5789
  tt,
5790
5790
  g
5791
5791
  );
5792
- if (K && !h && !Ft) {
5792
+ if (X && !h && !Ft) {
5793
5793
  let pe;
5794
5794
  if (St != null && (typeof St.byteLength == "number" ? pe = St.byteLength : typeof St.size == "number" ? pe = St.size : typeof St == "string" && (pe = typeof r == "function" ? new r().encode(St).byteLength : St.length)), typeof pe == "number" && pe > H)
5795
5795
  throw new Z(
5796
5796
  "maxContentLength size of " + H + " exceeded",
5797
5797
  Z.ERR_BAD_RESPONSE,
5798
5798
  g,
5799
- se
5799
+ oe
5800
5800
  );
5801
5801
  }
5802
5802
  return !Ft && P && P(), yield new Promise((pe, We) => {
@@ -5806,13 +5806,13 @@ const nc = "1.20.0", zl = 64 * 1024, JT = {
5806
5806
  status: tt.status,
5807
5807
  statusText: tt.statusText,
5808
5808
  config: g,
5809
- request: se
5809
+ request: oe
5810
5810
  });
5811
5811
  });
5812
5812
  } catch (he) {
5813
- if (P && P(), re && re.aborted && re.reason instanceof Z) {
5814
- const Ie = re.reason;
5815
- throw Ie.config = g, se && (Ie.request = se), he !== Ie && Object.defineProperty(Ie, "cause", {
5813
+ if (P && P(), ie && ie.aborted && ie.reason instanceof Z) {
5814
+ const Ie = ie.reason;
5815
+ throw Ie.config = g, oe && (Ie.request = oe), he !== Ie && Object.defineProperty(Ie, "cause", {
5816
5816
  __proto__: null,
5817
5817
  value: he,
5818
5818
  writable: !0,
@@ -5821,15 +5821,15 @@ const nc = "1.20.0", zl = 64 * 1024, JT = {
5821
5821
  }), Ie;
5822
5822
  }
5823
5823
  if (Be)
5824
- throw se && !Be.request && (Be.request = se), Be;
5824
+ throw oe && !Be.request && (Be.request = oe), Be;
5825
5825
  if (he instanceof Z)
5826
- throw se && !he.request && (he.request = se), he;
5826
+ throw oe && !he.request && (he.request = oe), he;
5827
5827
  if (he && he.name === "TypeError" && /Load failed|fetch/i.test(he.message)) {
5828
5828
  const Ie = new Z(
5829
5829
  "Network Error",
5830
5830
  Z.ERR_NETWORK,
5831
5831
  g,
5832
- se,
5832
+ oe,
5833
5833
  he && he.response
5834
5834
  );
5835
5835
  throw Object.defineProperty(Ie, "cause", {
@@ -5840,7 +5840,7 @@ const nc = "1.20.0", zl = 64 * 1024, JT = {
5840
5840
  configurable: !0
5841
5841
  }), Ie;
5842
5842
  }
5843
- throw Z.from(he, he && he.code, g, se, he && he.response);
5843
+ throw Z.from(he, he && he.code, g, oe, he && he.response);
5844
5844
  }
5845
5845
  });
5846
5846
  }, ny = /* @__PURE__ */ new Map(), rp = (e) => {
@@ -6520,31 +6520,31 @@ const fy = {
6520
6520
  resetConversationMessage: x = "",
6521
6521
  apiKey: L,
6522
6522
  apiToken: U,
6523
- baseUrl: W,
6523
+ baseUrl: G,
6524
6524
  customerId: R,
6525
6525
  tenantId: $,
6526
- theme: j,
6527
- isDevelopment: ue,
6526
+ theme: K,
6527
+ isDevelopment: ne,
6528
6528
  __features: H,
6529
- routingAttributes: V,
6529
+ routingAttributes: z,
6530
6530
  enableDownloadTranscript: de = !0,
6531
- enablePageContext: K = !1,
6531
+ enablePageContext: X = !1,
6532
6532
  enableEscalationToAgent: Q = !1,
6533
- enableImageUpload: ie = !1,
6533
+ enableImageUpload: se = !1,
6534
6534
  showProductCaptions: C = !1,
6535
- connectingMessages: re,
6536
- staticQuestions: se,
6535
+ connectingMessages: ie,
6536
+ staticQuestions: oe,
6537
6537
  staticQuestionsStrategy: P = "append",
6538
6538
  children: Se
6539
6539
  }) => {
6540
6540
  const Be = e === "messaging", Pe = Ye(() => {
6541
- const tt = V == null ? void 0 : V.isCartMgmtSupported;
6541
+ const tt = z == null ? void 0 : z.isCartMgmtSupported;
6542
6542
  return tt === !0 || tt === "true";
6543
- }, [V]), he = Ye(() => Be ? { config: null } : new ly(W, L, U, ue, R, $), [Be, W, L, U, ue, R, $]), Ie = Ye(() => new dy(ue), [ue]);
6543
+ }, [z]), he = Ye(() => Be ? { config: null } : new ly(G, L, U, ne, R, $), [Be, G, L, U, ne, R, $]), Ie = Ye(() => new dy(ne), [ne]);
6544
6544
  we(() => {
6545
6545
  Be || !he || he.config || he.getConfig();
6546
6546
  }, [he, Be]);
6547
- const Re = Ye(() => Nh(j), [j]), yt = Re.cssVariables, qt = Ye(() => {
6547
+ const Re = Ye(() => Nh(K), [K]), yt = Re.cssVariables, qt = Ye(() => {
6548
6548
  const tt = (m == null ? void 0 : m.placeholder) || p, sn = (m == null ? void 0 : m.buttonLabel) || h;
6549
6549
  let Ft = "icon";
6550
6550
  return m != null && m.buttonType ? Ft = m.buttonType : h && (Ft = "text"), q(O({}, m || {}), {
@@ -6564,7 +6564,7 @@ const fy = {
6564
6564
  themeClassName: Re.transcriptClassName,
6565
6565
  headerConfig: et,
6566
6566
  entryMessage: s,
6567
- staticQuestions: se || [],
6567
+ staticQuestions: oe || [],
6568
6568
  staticQuestionsStrategy: P,
6569
6569
  globalClassName: i,
6570
6570
  openLinksInNewTab: o,
@@ -6584,11 +6584,11 @@ const fy = {
6584
6584
  enableMinimize: !!(k != null && k.enableMinimize),
6585
6585
  launcherAriaLabel: k == null ? void 0 : k.launcherAriaLabel,
6586
6586
  enableDownloadTranscript: de,
6587
- enablePageContext: K,
6587
+ enablePageContext: X,
6588
6588
  enableEscalationToAgent: Q,
6589
- enableImageUpload: ie,
6589
+ enableImageUpload: se,
6590
6590
  showProductCaptions: !!C,
6591
- connectingMessages: re,
6591
+ connectingMessages: ie,
6592
6592
  resetConversationMessage: x,
6593
6593
  conversationHistory: {
6594
6594
  sinceHours: typeof (v == null ? void 0 : v.sinceHours) == "number" ? v.sinceHours : Be ? 24 : 1,
@@ -6602,7 +6602,7 @@ const fy = {
6602
6602
  e,
6603
6603
  et,
6604
6604
  s,
6605
- se,
6605
+ oe,
6606
6606
  P,
6607
6607
  i,
6608
6608
  l,
@@ -6618,12 +6618,12 @@ const fy = {
6618
6618
  T,
6619
6619
  k,
6620
6620
  de,
6621
- K,
6621
+ X,
6622
6622
  Q,
6623
- ie,
6623
+ se,
6624
6624
  S,
6625
6625
  C,
6626
- re,
6626
+ ie,
6627
6627
  x,
6628
6628
  Ie,
6629
6629
  yt,
@@ -6811,61 +6811,61 @@ const Ey = (e) => {
6811
6811
  children: t,
6812
6812
  dispatch: n
6813
6813
  }) => {
6814
- const { logger: r } = Ae(), i = ae(
6814
+ const { logger: r } = Ae(), i = ue(
6815
6815
  (T) => {
6816
6816
  n({ type: He.SET_COPILOT, payload: T });
6817
6817
  },
6818
6818
  [n]
6819
- ), s = ae(
6819
+ ), s = ue(
6820
6820
  (T) => {
6821
6821
  yy(T), n({ type: He.SET_CONNECTED, payload: T });
6822
6822
  },
6823
6823
  [n]
6824
- ), o = ae(() => {
6824
+ ), o = ue(() => {
6825
6825
  n({ type: He.RESET_COPILOT, payload: {} });
6826
- }, [n]), a = ae(() => {
6826
+ }, [n]), a = ue(() => {
6827
6827
  n({ type: He.RESET_STATE, payload: {} });
6828
- }, [n]), u = ae(
6828
+ }, [n]), u = ue(
6829
6829
  (T) => {
6830
6830
  r == null || r.log(`${T.name} event received`, T), n({ type: He.ADD_MESSAGE, payload: T }), T.bypassHandlers || e == null || e(T);
6831
6831
  },
6832
6832
  [e, r, n]
6833
- ), c = ae(
6833
+ ), c = ue(
6834
6834
  (T) => {
6835
6835
  n({ type: He.ADD_LOADING_MESSAGE, payload: T });
6836
6836
  },
6837
6837
  [n]
6838
- ), l = ae(
6838
+ ), l = ue(
6839
6839
  (T) => {
6840
6840
  n({ type: He.REMOVE_LOADING_MESSAGE, payload: T });
6841
6841
  },
6842
6842
  [n]
6843
- ), d = ae(
6843
+ ), d = ue(
6844
6844
  (T) => {
6845
6845
  u(T), c(T.id);
6846
6846
  },
6847
6847
  [u, c]
6848
- ), p = ae(
6848
+ ), p = ue(
6849
6849
  (T) => {
6850
6850
  n({ type: He.SET_ACTIVE_CONVERSATION_ID, payload: T });
6851
6851
  },
6852
6852
  [n]
6853
- ), h = ae(
6853
+ ), h = ue(
6854
6854
  (T) => {
6855
6855
  n({ type: He.ADD_CONVERSATION_ID, payload: T });
6856
6856
  },
6857
6857
  [n]
6858
- ), m = ae(
6858
+ ), m = ue(
6859
6859
  (T) => {
6860
6860
  n({ type: He.SET_CONVERSATION_IDS, payload: T });
6861
6861
  },
6862
6862
  [n]
6863
- ), E = ae(
6863
+ ), E = ue(
6864
6864
  (T) => {
6865
6865
  n({ type: He.SET_IMAGE_FILE, payload: T });
6866
6866
  },
6867
6867
  [n]
6868
- ), S = ae(
6868
+ ), S = ue(
6869
6869
  (T) => {
6870
6870
  n({
6871
6871
  type: He.SET_ASK_CIM_PROMPTS,
@@ -6873,7 +6873,7 @@ const Ey = (e) => {
6873
6873
  });
6874
6874
  },
6875
6875
  [n]
6876
- ), g = ae(
6876
+ ), g = ue(
6877
6877
  (T) => {
6878
6878
  n({
6879
6879
  type: He.SET_CONVERSATION_HISTORY_LOADED,
@@ -7026,7 +7026,7 @@ var Li = function(e) {
7026
7026
  };
7027
7027
  });
7028
7028
  }, Iy = function(e) {
7029
- var t = Me(0), n = Ne(e), r = n[0], i = n[1], s = ae(function(o) {
7029
+ var t = Me(0), n = Ne(e), r = n[0], i = n[1], s = ue(function(o) {
7030
7030
  cancelAnimationFrame(t.current), t.current = requestAnimationFrame(function() {
7031
7031
  i(o);
7032
7032
  });
@@ -7686,15 +7686,15 @@ const $e = new a_(), u_ = (e) => {
7686
7686
  return;
7687
7687
  }
7688
7688
  if (L === "isMinimized") {
7689
- c((W) => q(O({}, W), { isMinimized: U }));
7689
+ c((G) => q(O({}, G), { isMinimized: U }));
7690
7690
  return;
7691
7691
  }
7692
7692
  if (L === "isOpen") {
7693
- c((W) => q(O({}, W), { isOpen: U }));
7693
+ c((G) => q(O({}, G), { isOpen: U }));
7694
7694
  return;
7695
7695
  }
7696
7696
  if (L === "type") {
7697
- c((W) => q(O({}, W), { type: U }));
7697
+ c((G) => q(O({}, G), { type: U }));
7698
7698
  return;
7699
7699
  }
7700
7700
  if (L === "position") {
@@ -7781,14 +7781,14 @@ const $e = new a_(), u_ = (e) => {
7781
7781
  throw new Error("useCopilotState must be used within a CopilotProvider");
7782
7782
  return e;
7783
7783
  }, A_ = ({ copilot: e }) => {
7784
- const { logger: t, conversationHistory: n } = Ae(), { isInline: r } = Ln(), { addCopilotEvent: i, setConversationHistoryLoaded: s } = ti(), { activeConversationId: o } = Vt(), a = ae(
7784
+ const { logger: t, conversationHistory: n } = Ae(), { isInline: r } = Ln(), { addCopilotEvent: i, setConversationHistoryLoaded: s } = ti(), { activeConversationId: o } = Vt(), a = ue(
7785
7785
  (c) => {
7786
7786
  e && e.requestSessionInformation((l) => {
7787
7787
  t == null || t.log("Retrieved session information: ", l), c == null || c(l);
7788
7788
  });
7789
7789
  },
7790
7790
  [e, t]
7791
- ), u = ae(
7791
+ ), u = ue(
7792
7792
  (c, l) => {
7793
7793
  e && c.conversationId && e.getConversationEvents(c, (d) => {
7794
7794
  t == null || t.log("Retrieved conversation messages: ", d), l == null || l(d);
@@ -7885,71 +7885,71 @@ const $e = new a_(), u_ = (e) => {
7885
7885
  resetCopilotState: x,
7886
7886
  addCopilotEvent: L,
7887
7887
  removeLoadingMessage: U,
7888
- handleCopilotRequestAck: W,
7888
+ handleCopilotRequestAck: G,
7889
7889
  setActiveConversationId: R,
7890
7890
  setConversationIds: $,
7891
- setAskCimPrompts: j
7892
- } = ti(), { connected: ue, copilot: H, messages: V, groupedMessages: de, loadingMessages: K, askCimPrompts: Q } = Vt(), { status: ie, entryType: C } = zt(), { isInline: re } = Ln(), { getConversationMessages: se, getSessionInformation: P } = A_({ copilot: H }), Se = Ye(() => K.size > 0, [K]), Be = ae(
7893
- (ee) => K.has(ee),
7894
- [K]
7895
- ), Pe = ae(
7891
+ setAskCimPrompts: K
7892
+ } = ti(), { connected: ne, copilot: H, messages: z, groupedMessages: de, loadingMessages: X, askCimPrompts: Q } = Vt(), { status: se, entryType: C } = zt(), { isInline: ie } = Ln(), { getConversationMessages: oe, getSessionInformation: P } = A_({ copilot: H }), Se = Ye(() => X.size > 0, [X]), Be = ue(
7893
+ (te) => X.has(te),
7894
+ [X]
7895
+ ), Pe = ue(
7896
7896
  ({
7897
- query: ee,
7898
- facetFilters: oe,
7897
+ query: te,
7898
+ facetFilters: ae,
7899
7899
  rangeFilters: ce,
7900
7900
  catalogSegment: be,
7901
7901
  pricebooks: ze,
7902
7902
  userPrompt: F,
7903
- imageFile: X
7903
+ imageFile: W
7904
7904
  }) => {
7905
7905
  if (!H) {
7906
7906
  l == null || l.error("Copilot is not initialized");
7907
7907
  return;
7908
7908
  }
7909
- if (!ee) return;
7910
- const ne = { searchParams: { query: ee } };
7911
- F && (ne.userPrompt = F), X && (ne.attachments = {
7912
- image: X
7913
- }), oe && Object.keys(oe).length > 0 && (ne.searchParams.facetFilters = oe), ce && ce.length > 0 && (ne.searchParams.rangeFilters = ce), be && (ne.searchParams.catalogSegment = be), ze && (ne.searchParams.pricebooks = ze), d && (ne.clientContext = d), Ri("search"), H.search(ne, (me) => {
7909
+ if (!te) return;
7910
+ const re = { searchParams: { query: te } };
7911
+ F && (re.userPrompt = F), W && (re.attachments = {
7912
+ image: W
7913
+ }), ae && Object.keys(ae).length > 0 && (re.searchParams.facetFilters = ae), ce && ce.length > 0 && (re.searchParams.rangeFilters = ce), be && (re.searchParams.catalogSegment = be), ze && (re.searchParams.pricebooks = ze), d && (re.clientContext = d), Ri("search"), H.search(re, (me) => {
7914
7914
  const le = O({}, me);
7915
- W(le);
7915
+ G(le);
7916
7916
  });
7917
7917
  },
7918
- [l, W, H, d]
7919
- ), he = ae(
7918
+ [l, G, H, d]
7919
+ ), he = ue(
7920
7920
  ({
7921
- categoryId: ee,
7922
- categoryName: oe,
7921
+ categoryId: te,
7922
+ categoryName: ae,
7923
7923
  facetFilters: ce,
7924
7924
  rangeFilters: be,
7925
7925
  catalogSegment: ze,
7926
7926
  pricebooks: F,
7927
- userPrompt: X,
7928
- imageFile: ne
7927
+ userPrompt: W,
7928
+ imageFile: re
7929
7929
  }) => {
7930
7930
  if (!H) {
7931
7931
  l == null || l.error("Copilot is not initialized");
7932
7932
  return;
7933
7933
  }
7934
7934
  const me = ce && Object.keys(ce).length > 0;
7935
- if (ee === "" && !me) {
7935
+ if (te === "" && !me) {
7936
7936
  l == null || l.error("Browse event must include facetFilters when categoryId is empty");
7937
7937
  return;
7938
7938
  }
7939
- const le = { browseParams: { categoryId: ee || "" } };
7940
- X && (le.userPrompt = X), ne && (le.attachments = {
7941
- image: ne
7942
- }), me && (le.browseParams.facetFilters = ce), be && be.length > 0 && (le.browseParams.rangeFilters = be), ze && (le.browseParams.catalogSegment = ze), Array.isArray(F) && F.length > 0 && (le.browseParams.pricebooks = F), (d || oe) && (le.clientContext = {}, d && (le.clientContext = O({}, d)), oe && (le.clientContext.cimLabel = oe)), Ri("browse"), H.browse(le, (je) => {
7939
+ const le = { browseParams: { categoryId: te || "" } };
7940
+ W && (le.userPrompt = W), re && (le.attachments = {
7941
+ image: re
7942
+ }), me && (le.browseParams.facetFilters = ce), be && be.length > 0 && (le.browseParams.rangeFilters = be), ze && (le.browseParams.catalogSegment = ze), Array.isArray(F) && F.length > 0 && (le.browseParams.pricebooks = F), (d || ae) && (le.clientContext = {}, d && (le.clientContext = O({}, d)), ae && (le.clientContext.cimLabel = ae)), Ri("browse"), H.browse(le, (je) => {
7943
7943
  var Mn;
7944
- const lt = O({}, je), dt = ((Mn = lt.request) == null ? void 0 : Mn.clientContext) || {}, Pt = (dt == null ? void 0 : dt.cimLabel) || oe;
7945
- Pt && lt.request && (lt.request.label = Pt), W(lt);
7944
+ const lt = O({}, je), dt = ((Mn = lt.request) == null ? void 0 : Mn.clientContext) || {}, Pt = (dt == null ? void 0 : dt.cimLabel) || ae;
7945
+ Pt && lt.request && (lt.request.label = Pt), G(lt);
7946
7946
  });
7947
7947
  },
7948
- [l, W, H, d]
7949
- ), Ie = ae(
7948
+ [l, G, H, d]
7949
+ ), Ie = ue(
7950
7950
  ({
7951
- productId: ee,
7952
- productName: oe,
7951
+ productId: te,
7952
+ productName: ae,
7953
7953
  pdpLink: ce,
7954
7954
  userPrompt: be,
7955
7955
  imageFile: ze
@@ -7958,79 +7958,79 @@ const $e = new a_(), u_ = (e) => {
7958
7958
  l == null || l.error("Copilot is not initialized");
7959
7959
  return;
7960
7960
  }
7961
- if (!ee) return;
7962
- const F = { productId: ee };
7961
+ if (!te) return;
7962
+ const F = { productId: te };
7963
7963
  be && (F.userPrompt = be), ce && (F.pdpLink = ce), ze && (F.attachments = {
7964
7964
  image: ze
7965
- }), (d || oe) && (F.clientContext = {}, d && (F.clientContext = O({}, d)), oe && (F.clientContext.cimLabel = oe)), p && (F.baseCatalogParams = p), Ri("pdp"), H.productView(F, (X) => {
7965
+ }), (d || ae) && (F.clientContext = {}, d && (F.clientContext = O({}, d)), ae && (F.clientContext.cimLabel = ae)), p && (F.baseCatalogParams = p), Ri("pdp"), H.productView(F, (W) => {
7966
7966
  var je;
7967
- const ne = O({}, X), me = ((je = ne.request) == null ? void 0 : je.clientContext) || {}, le = (me == null ? void 0 : me.cimLabel) || oe;
7968
- le && ne.request && (ne.request.label = le), W(ne);
7967
+ const re = O({}, W), me = ((je = re.request) == null ? void 0 : je.clientContext) || {}, le = (me == null ? void 0 : me.cimLabel) || ae;
7968
+ le && re.request && (re.request.label = le), G(re);
7969
7969
  });
7970
7970
  },
7971
- [l, H, W, d, p]
7972
- ), Re = ae(
7973
- ({ userPrompt: ee, imageFile: oe }) => {
7971
+ [l, H, G, d, p]
7972
+ ), Re = ue(
7973
+ ({ userPrompt: te, imageFile: ae }) => {
7974
7974
  if (!H) {
7975
7975
  l == null || l.error("Copilot is not initialized");
7976
7976
  return;
7977
7977
  }
7978
- if (!ee) return;
7979
- const ce = { userPrompt: ee };
7980
- oe && (ce.attachments = {
7981
- image: oe
7978
+ if (!te) return;
7979
+ const ce = { userPrompt: te };
7980
+ ae && (ce.attachments = {
7981
+ image: ae
7982
7982
  }), d && (ce.clientContext = d), p && (ce.baseCatalogParams = p), H.askCim(ce, (be) => {
7983
7983
  const ze = O({}, be);
7984
- W(ze);
7984
+ G(ze);
7985
7985
  });
7986
7986
  },
7987
- [l, H, W, d, p]
7988
- ), yt = ae(
7989
- (ee) => {
7990
- L(ee), a == null || a(ee);
7987
+ [l, H, G, d, p]
7988
+ ), yt = ue(
7989
+ (te) => {
7990
+ L(te), a == null || a(te);
7991
7991
  },
7992
7992
  [L, a]
7993
- ), qt = ae(
7994
- (ee) => {
7995
- L(ee), u == null || u(ee);
7993
+ ), qt = ue(
7994
+ (te) => {
7995
+ L(te), u == null || u(te);
7996
7996
  },
7997
7997
  [L, u]
7998
- ), et = ae(
7999
- (ee) => {
8000
- o == null || o(ee), k(!0);
7998
+ ), et = ue(
7999
+ (te) => {
8000
+ o == null || o(te), k(!0);
8001
8001
  },
8002
8002
  [o, k]
8003
8003
  );
8004
8004
  we(() => {
8005
- !H || !ue || !ie.isOpen || gt.size > 0 && gt.processQueue((ee) => {
8006
- if (ee.context === "search") {
8007
- const oe = O({}, ee.payload);
8008
- kp(oe);
8005
+ !H || !ne || !se.isOpen || gt.size > 0 && gt.processQueue((te) => {
8006
+ if (te.context === "search") {
8007
+ const ae = O({}, te.payload);
8008
+ kp(ae);
8009
8009
  }
8010
- if (ee.context === "browse") {
8011
- const oe = O({}, ee.payload);
8012
- Cp(oe);
8010
+ if (te.context === "browse") {
8011
+ const ae = O({}, te.payload);
8012
+ Cp(ae);
8013
8013
  }
8014
- if (ee.context === "pdp") {
8015
- const oe = O({}, ee.payload);
8016
- xp(oe);
8014
+ if (te.context === "pdp") {
8015
+ const ae = O({}, te.payload);
8016
+ xp(ae);
8017
8017
  }
8018
8018
  });
8019
- }, [ie.isOpen, H, ue]);
8020
- const _t = ae(
8021
- (ee) => {
8022
- const oe = (ce) => {
8019
+ }, [se.isOpen, H, ne]);
8020
+ const _t = ue(
8021
+ (te) => {
8022
+ const ae = (ce) => {
8023
8023
  const be = q(O({}, ce), {
8024
8024
  // eslint-disable-next-line @typescript-eslint/no-explicit-any
8025
8025
  id: ce.inquiryLinkId || ce.id
8026
8026
  });
8027
8027
  L(be);
8028
8028
  };
8029
- ee.on("connect_ack", et), ee.on("partial_inquiry", oe), ee.on("display_products", L), ee.on("progress", L), ee.on("refined_search", yt), ee.on("refined_browse", qt), ee.on("done", (ce) => {
8029
+ te.on("connect_ack", et), te.on("partial_inquiry", ae), te.on("display_products", L), te.on("progress", L), te.on("refined_search", yt), te.on("refined_browse", qt), te.on("done", (ce) => {
8030
8030
  U(ce.eventSourceId);
8031
- }), ee.on("error", (ce) => {
8031
+ }), te.on("error", (ce) => {
8032
8032
  L(ce), U(ce.eventSourceId);
8033
- }), ee.onDisconnect((ce) => {
8033
+ }), te.onDisconnect((ce) => {
8034
8034
  const be = [
8035
8035
  "io server disconnect",
8036
8036
  "transport error",
@@ -8049,7 +8049,7 @@ const $e = new a_(), u_ = (e) => {
8049
8049
  id: `error-${ze}`,
8050
8050
  sessionId: "session"
8051
8051
  // eslint-disable-next-line @typescript-eslint/no-explicit-any
8052
- }), ee.off();
8052
+ }), te.off();
8053
8053
  });
8054
8054
  },
8055
8055
  [
@@ -8064,40 +8064,40 @@ const $e = new a_(), u_ = (e) => {
8064
8064
  );
8065
8065
  we(() => {
8066
8066
  if (!H) return;
8067
- const ee = (oe) => {
8068
- if (!re) {
8069
- if (!oe.message && oe.eventSourceId && oe.eventSourceId === Q.requestId) {
8070
- j({
8071
- requestId: oe.eventSourceId,
8072
- message: oe
8067
+ const te = (ae) => {
8068
+ if (!ie) {
8069
+ if (!ae.message && ae.eventSourceId && ae.eventSourceId === Q.requestId) {
8070
+ K({
8071
+ requestId: ae.eventSourceId,
8072
+ message: ae
8073
8073
  });
8074
8074
  return;
8075
8075
  }
8076
- L(oe);
8076
+ L(ae);
8077
8077
  }
8078
8078
  };
8079
- return H.on("follow_up", ee), () => {
8080
- H.off("follow_up", ee);
8079
+ return H.on("follow_up", te), () => {
8080
+ H.off("follow_up", te);
8081
8081
  };
8082
- }, [H, V, Q.requestId, re, L, j]), we(() => {
8082
+ }, [H, z, Q.requestId, ie, L, K]), we(() => {
8083
8083
  if (!H) return;
8084
- const ee = (oe) => {
8085
- if (re) return;
8086
- const ce = q(O({}, oe), {
8084
+ const te = (ae) => {
8085
+ if (ie) return;
8086
+ const ce = q(O({}, ae), {
8087
8087
  // eslint-disable-next-line @typescript-eslint/no-explicit-any
8088
- id: oe.inquiryLinkId || oe.id
8088
+ id: ae.inquiryLinkId || ae.id
8089
8089
  });
8090
8090
  L(ce);
8091
8091
  };
8092
- return H.on("inquiry", ee), () => {
8093
- H.off("inquiry", ee);
8092
+ return H.on("inquiry", te), () => {
8093
+ H.off("inquiry", te);
8094
8094
  };
8095
- }, [H, re, L]), Li(() => {
8096
- let ee;
8097
- n ? ee = n : ee = s ? "https://staging.copilot.search.cimulate.ai" : "https://prod.copilot.search.cimulate.ai";
8098
- const oe = { baseUrl: ee };
8099
- e ? oe.apiKey = e : t && (oe.apiToken = t), r && (oe.customerId = r), i && (oe.tenantId = i);
8100
- const ce = new L1(oe);
8095
+ }, [H, ie, L]), Li(() => {
8096
+ let te;
8097
+ n ? te = n : te = s ? "https://staging.copilot.search.cimulate.ai" : "https://prod.copilot.search.cimulate.ai";
8098
+ const ae = { baseUrl: te };
8099
+ e ? ae.apiKey = e : t && (ae.apiToken = t), r && (ae.customerId = r), i && (ae.tenantId = i);
8100
+ const ce = new L1(ae);
8101
8101
  return T(ce), _t(ce), ce.connect(), ce.requestSessionInformation((be) => {
8102
8102
  l == null || l.log("Session Information: ", be);
8103
8103
  const { activeConversationId: ze, conversationIds: F } = be.data || {};
@@ -8106,20 +8106,20 @@ const $e = new a_(), u_ = (e) => {
8106
8106
  ce.disconnect(), ce.off(), v();
8107
8107
  };
8108
8108
  });
8109
- const tt = ae(
8110
- (ee) => {
8109
+ const tt = ue(
8110
+ (te) => {
8111
8111
  if (!H) return;
8112
- const oe = { eventId: ee, reason: "User cancelled the request" };
8113
- H.cancelRequest(oe, (ce) => {
8114
- L(ce), U(ee);
8112
+ const ae = { eventId: te, reason: "User cancelled the request" };
8113
+ H.cancelRequest(ae, (ce) => {
8114
+ L(ce), U(te);
8115
8115
  });
8116
8116
  },
8117
8117
  [L, U, H]
8118
- ), sn = ae(() => {
8119
- H && H.conversationReset({}, (ee) => {
8120
- x(), L(ee), H.requestSessionInformation((oe) => {
8121
- l == null || l.log("Session Information: ", oe);
8122
- const { activeConversationId: ce, conversationIds: be } = oe.data || {};
8118
+ ), sn = ue(() => {
8119
+ H && H.conversationReset({}, (te) => {
8120
+ x(), L(te), H.requestSessionInformation((ae) => {
8121
+ l == null || l.log("Session Information: ", ae);
8122
+ const { activeConversationId: ce, conversationIds: be } = ae.data || {};
8123
8123
  ce && R(ce), be != null && be.length && $(be);
8124
8124
  });
8125
8125
  });
@@ -8130,11 +8130,11 @@ const $e = new a_(), u_ = (e) => {
8130
8130
  x,
8131
8131
  R,
8132
8132
  $
8133
- ]), Ft = ae(
8134
- (ee, oe) => {
8135
- if (!ee) return;
8136
- const ce = { userPrompt: ee };
8137
- switch (oe && (ce.imageFile = oe), C) {
8133
+ ]), Ft = ue(
8134
+ (te, ae) => {
8135
+ if (!te) return;
8136
+ const ce = { userPrompt: te };
8137
+ switch (ae && (ce.imageFile = ae), C) {
8138
8138
  case "ask_cim":
8139
8139
  Re(ce);
8140
8140
  return;
@@ -8169,12 +8169,12 @@ const $e = new a_(), u_ = (e) => {
8169
8169
  g,
8170
8170
  b
8171
8171
  ]
8172
- ), St = ae(
8173
- (ee, oe) => {
8174
- var X, ne, me;
8175
- const be = ee.params.userPrompt || "";
8172
+ ), St = ue(
8173
+ (te, ae) => {
8174
+ var W, re, me;
8175
+ const be = te.params.userPrompt || "";
8176
8176
  if (!be) return;
8177
- const ze = V.find((le) => le.id === oe);
8177
+ const ze = z.find((le) => le.id === ae);
8178
8178
  if (!ze) return;
8179
8179
  const F = ze.name.replace("_suggestions", "");
8180
8180
  if (F === "ask_cim") {
@@ -8182,7 +8182,7 @@ const $e = new a_(), u_ = (e) => {
8182
8182
  return;
8183
8183
  }
8184
8184
  if (F === "copilot_search") {
8185
- const le = ((X = ze.request) == null ? void 0 : X.searchParams) || {}, lt = le.query === h;
8185
+ const le = ((W = ze.request) == null ? void 0 : W.searchParams) || {}, lt = le.query === h;
8186
8186
  Pe(q(O({
8187
8187
  query: le.query || h
8188
8188
  }, lt ? m : {}), {
@@ -8191,7 +8191,7 @@ const $e = new a_(), u_ = (e) => {
8191
8191
  return;
8192
8192
  }
8193
8193
  if (F === "copilot_browse") {
8194
- const le = ze.request, je = le.browseParams || {}, dt = je.categoryId === E, Pt = ((ne = le.clientContext) == null ? void 0 : ne.cimLabel) || "";
8194
+ const le = ze.request, je = le.browseParams || {}, dt = je.categoryId === E, Pt = ((re = le.clientContext) == null ? void 0 : re.cimLabel) || "";
8195
8195
  he(q(O({
8196
8196
  categoryId: je.categoryId || E || ""
8197
8197
  }, dt ? S : {}), {
@@ -8212,7 +8212,7 @@ const $e = new a_(), u_ = (e) => {
8212
8212
  }
8213
8213
  },
8214
8214
  [
8215
- V,
8215
+ z,
8216
8216
  h,
8217
8217
  m,
8218
8218
  Pe,
@@ -8226,7 +8226,7 @@ const $e = new a_(), u_ = (e) => {
8226
8226
  ]
8227
8227
  ), pe = Ye(() => ({
8228
8228
  copilot: H,
8229
- messages: V,
8229
+ messages: z,
8230
8230
  groupedMessages: de,
8231
8231
  isLoading: Se,
8232
8232
  isResponseLoading: Be,
@@ -8239,10 +8239,10 @@ const $e = new a_(), u_ = (e) => {
8239
8239
  handleCancel: tt,
8240
8240
  resetConversation: sn,
8241
8241
  getSessionInformation: P,
8242
- getConversationMessages: se
8242
+ getConversationMessages: oe
8243
8243
  }), [
8244
8244
  H,
8245
- V,
8245
+ z,
8246
8246
  de,
8247
8247
  Se,
8248
8248
  Be,
@@ -8255,12 +8255,12 @@ const $e = new a_(), u_ = (e) => {
8255
8255
  tt,
8256
8256
  sn,
8257
8257
  P,
8258
- se
8258
+ oe
8259
8259
  ]);
8260
8260
  return /* @__PURE__ */ y(Bp.Provider, { value: pe, children: c });
8261
8261
  }, Up = () => {
8262
8262
  const { copilot: e } = Vt(), { addCopilotEvent: t } = ti();
8263
- return { getCopilotSuggestions: ae(
8263
+ return { getCopilotSuggestions: ue(
8264
8264
  (r, i, s) => {
8265
8265
  if (!e || !i || !r) return;
8266
8266
  const o = (a) => {
@@ -8322,21 +8322,21 @@ const $e = new a_(), u_ = (e) => {
8322
8322
  m,
8323
8323
  a
8324
8324
  ]);
8325
- const E = ae(
8325
+ const E = ue(
8326
8326
  ({ query: b }) => {
8327
8327
  if (!e || !b) return;
8328
8328
  const { facetFilters: T } = $e.facetFiltersProxy, { rangeFilters: k } = $e.rangeFiltersProxy, { catalogSegment: v } = $e.catalogSegmentProxy, { pricebooks: x } = $e.pricebooksProxy, L = { query: b };
8329
8329
  L.facetFilters = T || {}, L.rangeFilters = k || [], L.catalogSegment = v || "", L.pricebooks = x || [], u(O({}, L));
8330
8330
  },
8331
8331
  [e, u]
8332
- ), S = ae(
8332
+ ), S = ue(
8333
8333
  ({ categoryId: b }) => {
8334
8334
  if (!e) return;
8335
8335
  const T = Le.categoryIdProxy.categoryName, { facetFilters: k } = Le.facetFiltersProxy, { rangeFilters: v } = Le.rangeFiltersProxy, { catalogSegment: x } = Le.catalogSegmentProxy, { pricebooks: L } = Le.pricebooksProxy, U = { categoryId: b };
8336
8336
  U.categoryName = T || "", U.facetFilters = k || {}, U.rangeFilters = v || [], U.catalogSegment = x || "", U.pricebooks = L || [], c(O({}, U));
8337
8337
  },
8338
8338
  [e, c]
8339
- ), g = ae(
8339
+ ), g = ue(
8340
8340
  ({ productId: b }) => {
8341
8341
  if (!e || !b) return;
8342
8342
  const T = {
@@ -8424,7 +8424,7 @@ const $e = new a_(), u_ = (e) => {
8424
8424
  onRefinedSearch: a,
8425
8425
  onRefinedBrowse: u,
8426
8426
  children: c
8427
- }) => /* @__PURE__ */ te(
8427
+ }) => /* @__PURE__ */ ee(
8428
8428
  C_,
8429
8429
  {
8430
8430
  apiKey: e,
@@ -8445,7 +8445,7 @@ const $e = new a_(), u_ = (e) => {
8445
8445
  children: e,
8446
8446
  dispatch: t
8447
8447
  }) => {
8448
- const n = ae(
8448
+ const n = ue(
8449
8449
  (m) => {
8450
8450
  t({
8451
8451
  type: Ue.SET_PROMPTS_EXTENSION_INITIALIZED,
@@ -8453,7 +8453,7 @@ const $e = new a_(), u_ = (e) => {
8453
8453
  });
8454
8454
  },
8455
8455
  [t]
8456
- ), r = ae(
8456
+ ), r = ue(
8457
8457
  (m) => {
8458
8458
  t({
8459
8459
  type: Ue.SET_PROMPTS_EXTENSION_OPEN,
@@ -8461,7 +8461,7 @@ const $e = new a_(), u_ = (e) => {
8461
8461
  });
8462
8462
  },
8463
8463
  [t]
8464
- ), i = ae(
8464
+ ), i = ue(
8465
8465
  (m) => {
8466
8466
  t({
8467
8467
  type: Ue.SET_PROMPTS_EXTENSION_INLINE,
@@ -8469,7 +8469,7 @@ const $e = new a_(), u_ = (e) => {
8469
8469
  });
8470
8470
  },
8471
8471
  [t]
8472
- ), s = ae(
8472
+ ), s = ue(
8473
8473
  (m) => {
8474
8474
  t({
8475
8475
  type: Ue.SET_PROMPTS_EXTENSION_ELEMENT_ID,
@@ -8477,7 +8477,7 @@ const $e = new a_(), u_ = (e) => {
8477
8477
  });
8478
8478
  },
8479
8479
  [t]
8480
- ), o = ae(
8480
+ ), o = ue(
8481
8481
  (m) => {
8482
8482
  t({
8483
8483
  type: Ue.SET_PROMPTS_EXTENSION_ENTRY_TYPE,
@@ -8485,7 +8485,7 @@ const $e = new a_(), u_ = (e) => {
8485
8485
  });
8486
8486
  },
8487
8487
  [t]
8488
- ), a = ae(
8488
+ ), a = ue(
8489
8489
  (m) => {
8490
8490
  t({
8491
8491
  type: Ue.SET_PROMPTS_EXTENSION_ACTIVE_PROMPTS_ID,
@@ -8493,7 +8493,7 @@ const $e = new a_(), u_ = (e) => {
8493
8493
  });
8494
8494
  },
8495
8495
  [t]
8496
- ), u = ae(
8496
+ ), u = ue(
8497
8497
  (m) => {
8498
8498
  t({
8499
8499
  type: Ue.SET_PROMPTS_EXTENSION_USER_PROMPT,
@@ -8501,7 +8501,7 @@ const $e = new a_(), u_ = (e) => {
8501
8501
  });
8502
8502
  },
8503
8503
  [t]
8504
- ), c = ae(
8504
+ ), c = ue(
8505
8505
  (m) => {
8506
8506
  t({
8507
8507
  type: Ue.SET_PROMPTS_EXTENSION_PARAMS,
@@ -8509,7 +8509,7 @@ const $e = new a_(), u_ = (e) => {
8509
8509
  });
8510
8510
  },
8511
8511
  [t]
8512
- ), l = ae(
8512
+ ), l = ue(
8513
8513
  (m) => {
8514
8514
  t({
8515
8515
  type: Ue.SET_PROMPTS_EXTENSION_PROMPTS_MESSAGE,
@@ -8517,7 +8517,7 @@ const $e = new a_(), u_ = (e) => {
8517
8517
  });
8518
8518
  },
8519
8519
  [t]
8520
- ), d = ae(
8520
+ ), d = ue(
8521
8521
  (m) => {
8522
8522
  t({
8523
8523
  type: Ue.SET_PROMPTS_EXTENSION_RESPONSE_MESSAGE,
@@ -8525,7 +8525,7 @@ const $e = new a_(), u_ = (e) => {
8525
8525
  });
8526
8526
  },
8527
8527
  [t]
8528
- ), p = ae(
8528
+ ), p = ue(
8529
8529
  (m) => {
8530
8530
  t({
8531
8531
  type: Ue.SET_PROMPTS_EXTENSION_RESPONSE_LOADING,
@@ -8642,21 +8642,21 @@ const $e = new a_(), u_ = (e) => {
8642
8642
  baseCatalogParams: x,
8643
8643
  searchPlaceholder: L,
8644
8644
  searchButtonLabel: U,
8645
- searchConfig: W,
8645
+ searchConfig: G,
8646
8646
  suggestionButtonConfig: R,
8647
8647
  messageAlignment: $,
8648
- autoScroll: j,
8649
- promptsConfig: ue,
8648
+ autoScroll: K,
8649
+ promptsConfig: ne,
8650
8650
  resetConversationMessage: H,
8651
- conversationHistory: V,
8651
+ conversationHistory: z,
8652
8652
  onConnect: de,
8653
- onCopilotEvent: K,
8653
+ onCopilotEvent: X,
8654
8654
  onRefinedSearch: Q,
8655
- onRefinedBrowse: ie,
8655
+ onRefinedBrowse: se,
8656
8656
  __features: C,
8657
- children: re
8657
+ children: ie
8658
8658
  }) => {
8659
- const se = g == null ? void 0 : g.params;
8659
+ const oe = g == null ? void 0 : g.params;
8660
8660
  return /* @__PURE__ */ y(
8661
8661
  hy,
8662
8662
  {
@@ -8670,25 +8670,25 @@ const $e = new a_(), u_ = (e) => {
8670
8670
  headerText: a,
8671
8671
  headerConfig: u,
8672
8672
  entryMessage: b,
8673
- staticQuestions: mh(se == null ? void 0 : se.staticQuestions),
8674
- staticQuestionsStrategy: se == null ? void 0 : se.staticQuestionsStrategy,
8673
+ staticQuestions: mh(oe == null ? void 0 : oe.staticQuestions),
8674
+ staticQuestionsStrategy: oe == null ? void 0 : oe.staticQuestionsStrategy,
8675
8675
  theme: c,
8676
8676
  globalClassName: p,
8677
8677
  openLinksInNewTab: l,
8678
8678
  onNavigate: d,
8679
8679
  searchPlaceholder: L,
8680
8680
  searchButtonLabel: U,
8681
- searchConfig: W,
8681
+ searchConfig: G,
8682
8682
  suggestionButtonConfig: R,
8683
8683
  messageAlignment: $,
8684
- autoScroll: j,
8684
+ autoScroll: K,
8685
8685
  componentConfig: E,
8686
8686
  clientContext: v,
8687
8687
  baseCatalogParams: x,
8688
8688
  disclaimerMarkdown: k,
8689
8689
  disclaimerText: T,
8690
8690
  resetConversationMessage: H,
8691
- conversationHistory: V,
8691
+ conversationHistory: z,
8692
8692
  isDevelopment: h,
8693
8693
  __features: C,
8694
8694
  children: /* @__PURE__ */ y(
@@ -8697,7 +8697,7 @@ const $e = new a_(), u_ = (e) => {
8697
8697
  entryType: S != null ? S : g == null ? void 0 : g.type,
8698
8698
  componentConfig: E,
8699
8699
  componentType: m,
8700
- children: /* @__PURE__ */ y(Cy, { onCopilotEvent: K, children: /* @__PURE__ */ y(y_, { children: /* @__PURE__ */ y(p_, { children: /* @__PURE__ */ y(E_, { children: /* @__PURE__ */ y(I_, { promptsConfig: ue, children: /* @__PURE__ */ y(
8700
+ children: /* @__PURE__ */ y(Cy, { onCopilotEvent: X, children: /* @__PURE__ */ y(y_, { children: /* @__PURE__ */ y(p_, { children: /* @__PURE__ */ y(E_, { children: /* @__PURE__ */ y(I_, { promptsConfig: ne, children: /* @__PURE__ */ y(
8701
8701
  N_,
8702
8702
  {
8703
8703
  apiKey: t,
@@ -8709,9 +8709,9 @@ const $e = new a_(), u_ = (e) => {
8709
8709
  entryType: S,
8710
8710
  onConnect: de,
8711
8711
  onRefinedSearch: Q,
8712
- onRefinedBrowse: ie,
8713
- onCopilotEvent: K,
8714
- children: re
8712
+ onRefinedBrowse: se,
8713
+ onCopilotEvent: X,
8714
+ children: ie
8715
8715
  }
8716
8716
  ) }) }) }) }) })
8717
8717
  }
@@ -8931,7 +8931,7 @@ const H_ = (e) => vu(e) ? Kf(e, { "aria-hidden": !0 }) : e, vn = ({
8931
8931
  const o = () => {
8932
8932
  Xi(!1), kn(!0), setTimeout(k_);
8933
8933
  };
8934
- return /* @__PURE__ */ te(Lt, { children: [
8934
+ return /* @__PURE__ */ ee(Lt, { children: [
8935
8935
  Js(
8936
8936
  /* @__PURE__ */ y(
8937
8937
  "a",
@@ -9011,7 +9011,7 @@ const H_ = (e) => vu(e) ? Kf(e, { "aria-hidden": !0 }) : e, vn = ({
9011
9011
  return we(() => {
9012
9012
  const a = URL.createObjectURL(e);
9013
9013
  return o(a), () => URL.revokeObjectURL(a);
9014
- }, [e]), /* @__PURE__ */ te(
9014
+ }, [e]), /* @__PURE__ */ ee(
9015
9015
  "div",
9016
9016
  {
9017
9017
  className: D(
@@ -9103,17 +9103,17 @@ const Z_ = ({
9103
9103
  icon: o = /* @__PURE__ */ y(J_, {}),
9104
9104
  onFiles: a
9105
9105
  }) => {
9106
- const u = Me(null), c = Kr(), l = r != null ? r : c, d = ae(() => {
9106
+ const u = Me(null), c = Kr(), l = r != null ? r : c, d = ue(() => {
9107
9107
  var h;
9108
9108
  return (h = u.current) == null ? void 0 : h.click();
9109
- }, []), p = ae(
9109
+ }, []), p = ue(
9110
9110
  (h) => {
9111
9111
  const m = h.target;
9112
9112
  a(m.files), m.value = "";
9113
9113
  },
9114
9114
  [a]
9115
9115
  );
9116
- return /* @__PURE__ */ te(
9116
+ return /* @__PURE__ */ ee(
9117
9117
  "button",
9118
9118
  {
9119
9119
  type: "button",
@@ -9221,7 +9221,7 @@ const Z_ = ({
9221
9221
  );
9222
9222
  }
9223
9223
  const s = (t == null ? void 0 : t.buttonType) === "icon-text";
9224
- return /* @__PURE__ */ te(
9224
+ return /* @__PURE__ */ ee(
9225
9225
  Io,
9226
9226
  {
9227
9227
  className: D(
@@ -9245,7 +9245,7 @@ function n2(e) {
9245
9245
  }
9246
9246
  const r2 = () => {
9247
9247
  const { messages: e } = Vt(), { handleCancel: t } = En();
9248
- return { cancelRequest: ae(() => {
9248
+ return { cancelRequest: ue(() => {
9249
9249
  if (!(e != null && e.length)) return null;
9250
9250
  const r = e[e.length - 1], i = r.eventSourceId || r.id;
9251
9251
  t(i);
@@ -9344,7 +9344,7 @@ Mt.prototype.property = "";
9344
9344
  Mt.prototype.spaceSeparated = !1;
9345
9345
  Mt.prototype.space = void 0;
9346
9346
  let l2 = 0;
9347
- const ge = _r(), Qe = _r(), au = _r(), G = _r(), De = _r(), lr = _r(), Ut = _r();
9347
+ const ge = _r(), Qe = _r(), au = _r(), j = _r(), De = _r(), lr = _r(), Ut = _r();
9348
9348
  function _r() {
9349
9349
  return pi(2, ++l2);
9350
9350
  }
@@ -9354,7 +9354,7 @@ const uu = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineProperty({
9354
9354
  booleanish: Qe,
9355
9355
  commaOrSpaceSeparated: Ut,
9356
9356
  commaSeparated: lr,
9357
- number: G,
9357
+ number: j,
9358
9358
  overloadedBoolean: au,
9359
9359
  spaceSeparated: De
9360
9360
  }, Symbol.toStringTag, { value: "Module" })), ga = (
@@ -9408,9 +9408,9 @@ const Wp = ri({
9408
9408
  ariaAutoComplete: null,
9409
9409
  ariaBusy: Qe,
9410
9410
  ariaChecked: Qe,
9411
- ariaColCount: G,
9412
- ariaColIndex: G,
9413
- ariaColSpan: G,
9411
+ ariaColCount: j,
9412
+ ariaColIndex: j,
9413
+ ariaColSpan: j,
9414
9414
  ariaControls: De,
9415
9415
  ariaCurrent: null,
9416
9416
  ariaDescribedBy: De,
@@ -9427,7 +9427,7 @@ const Wp = ri({
9427
9427
  ariaKeyShortcuts: null,
9428
9428
  ariaLabel: null,
9429
9429
  ariaLabelledBy: De,
9430
- ariaLevel: G,
9430
+ ariaLevel: j,
9431
9431
  ariaLive: null,
9432
9432
  ariaModal: Qe,
9433
9433
  ariaMultiLine: Qe,
@@ -9435,21 +9435,21 @@ const Wp = ri({
9435
9435
  ariaOrientation: null,
9436
9436
  ariaOwns: De,
9437
9437
  ariaPlaceholder: null,
9438
- ariaPosInSet: G,
9438
+ ariaPosInSet: j,
9439
9439
  ariaPressed: Qe,
9440
9440
  ariaReadOnly: Qe,
9441
9441
  ariaRelevant: null,
9442
9442
  ariaRequired: Qe,
9443
9443
  ariaRoleDescription: De,
9444
- ariaRowCount: G,
9445
- ariaRowIndex: G,
9446
- ariaRowSpan: G,
9444
+ ariaRowCount: j,
9445
+ ariaRowIndex: j,
9446
+ ariaRowSpan: j,
9447
9447
  ariaSelected: Qe,
9448
- ariaSetSize: G,
9448
+ ariaSetSize: j,
9449
9449
  ariaSort: null,
9450
- ariaValueMax: G,
9451
- ariaValueMin: G,
9452
- ariaValueNow: G,
9450
+ ariaValueMax: j,
9451
+ ariaValueMin: j,
9452
+ ariaValueNow: j,
9453
9453
  ariaValueText: null,
9454
9454
  role: null
9455
9455
  },
@@ -9498,15 +9498,15 @@ const d2 = ri({
9498
9498
  className: De,
9499
9499
  closedBy: null,
9500
9500
  colorSpace: null,
9501
- cols: G,
9502
- colSpan: G,
9501
+ cols: j,
9502
+ colSpan: j,
9503
9503
  command: null,
9504
9504
  commandFor: null,
9505
9505
  content: null,
9506
9506
  contentEditable: Qe,
9507
9507
  controls: ge,
9508
9508
  controlsList: De,
9509
- coords: G | lr,
9509
+ coords: j | lr,
9510
9510
  crossOrigin: null,
9511
9511
  data: null,
9512
9512
  dateTime: null,
@@ -9528,9 +9528,9 @@ const d2 = ri({
9528
9528
  formNoValidate: ge,
9529
9529
  formTarget: null,
9530
9530
  headers: De,
9531
- height: G,
9531
+ height: j,
9532
9532
  hidden: au,
9533
- high: G,
9533
+ high: j,
9534
9534
  href: null,
9535
9535
  hrefLang: null,
9536
9536
  htmlFor: De,
@@ -9555,14 +9555,14 @@ const d2 = ri({
9555
9555
  list: null,
9556
9556
  loading: null,
9557
9557
  loop: ge,
9558
- low: G,
9558
+ low: j,
9559
9559
  manifest: null,
9560
9560
  max: null,
9561
- maxLength: G,
9561
+ maxLength: j,
9562
9562
  media: null,
9563
9563
  method: null,
9564
9564
  min: null,
9565
- minLength: G,
9565
+ minLength: j,
9566
9566
  multiple: ge,
9567
9567
  muted: ge,
9568
9568
  name: null,
@@ -9658,7 +9658,7 @@ const d2 = ri({
9658
9658
  onWaiting: null,
9659
9659
  onWheel: null,
9660
9660
  open: ge,
9661
- optimum: G,
9661
+ optimum: j,
9662
9662
  pattern: null,
9663
9663
  ping: De,
9664
9664
  placeholder: null,
@@ -9673,8 +9673,8 @@ const d2 = ri({
9673
9673
  rel: De,
9674
9674
  required: ge,
9675
9675
  reversed: ge,
9676
- rows: G,
9677
- rowSpan: G,
9676
+ rows: j,
9677
+ rowSpan: j,
9678
9678
  sandbox: De,
9679
9679
  scope: null,
9680
9680
  scoped: ge,
@@ -9686,19 +9686,19 @@ const d2 = ri({
9686
9686
  shadowRootMode: null,
9687
9687
  shadowRootSerializable: ge,
9688
9688
  shape: null,
9689
- size: G,
9689
+ size: j,
9690
9690
  sizes: null,
9691
9691
  slot: null,
9692
- span: G,
9692
+ span: j,
9693
9693
  spellCheck: Qe,
9694
9694
  src: null,
9695
9695
  srcDoc: null,
9696
9696
  srcLang: null,
9697
9697
  srcSet: null,
9698
- start: G,
9698
+ start: j,
9699
9699
  step: null,
9700
9700
  style: null,
9701
- tabIndex: G,
9701
+ tabIndex: j,
9702
9702
  target: null,
9703
9703
  title: null,
9704
9704
  translate: null,
@@ -9706,7 +9706,7 @@ const d2 = ri({
9706
9706
  typeMustMatch: ge,
9707
9707
  useMap: null,
9708
9708
  value: Qe,
9709
- width: G,
9709
+ width: j,
9710
9710
  wrap: null,
9711
9711
  writingSuggestions: null,
9712
9712
  // Legacy.
@@ -9723,11 +9723,11 @@ const d2 = ri({
9723
9723
  // `<body>`. Use CSS `background-image` instead
9724
9724
  bgColor: null,
9725
9725
  // `<body>` and table elements. Use CSS `background-color` instead
9726
- border: G,
9726
+ border: j,
9727
9727
  // `<table>`. Use CSS `border-width` instead,
9728
9728
  borderColor: null,
9729
9729
  // `<table>`. Use CSS `border-color` instead,
9730
- bottomMargin: G,
9730
+ bottomMargin: j,
9731
9731
  // `<body>`
9732
9732
  cellPadding: null,
9733
9733
  // `<table>`
@@ -9761,9 +9761,9 @@ const d2 = ri({
9761
9761
  // `<table>`
9762
9762
  frameBorder: null,
9763
9763
  // `<iframe>`. Use CSS `border` instead
9764
- hSpace: G,
9764
+ hSpace: j,
9765
9765
  // `<img>` and `<object>`
9766
- leftMargin: G,
9766
+ leftMargin: j,
9767
9767
  // `<body>`
9768
9768
  link: null,
9769
9769
  // `<body>`. Use CSS `a:link {color: *}` instead
@@ -9771,9 +9771,9 @@ const d2 = ri({
9771
9771
  // `<frame>`, `<iframe>`, and `<img>`. Use an `<a>`
9772
9772
  lowSrc: null,
9773
9773
  // `<img>`. Use a `<picture>`
9774
- marginHeight: G,
9774
+ marginHeight: j,
9775
9775
  // `<body>`
9776
- marginWidth: G,
9776
+ marginWidth: j,
9777
9777
  // `<body>`
9778
9778
  noResize: ge,
9779
9779
  // `<frame>`
@@ -9791,7 +9791,7 @@ const d2 = ri({
9791
9791
  // `<isindex>`
9792
9792
  rev: null,
9793
9793
  // `<link>`
9794
- rightMargin: G,
9794
+ rightMargin: j,
9795
9795
  // `<body>`
9796
9796
  rules: null,
9797
9797
  // `<table>`
@@ -9805,7 +9805,7 @@ const d2 = ri({
9805
9805
  // `<table>`
9806
9806
  text: null,
9807
9807
  // `<body>`. Use CSS `color` instead
9808
- topMargin: G,
9808
+ topMargin: j,
9809
9809
  // `<body>`
9810
9810
  valueType: null,
9811
9811
  // `<param>`
@@ -9815,7 +9815,7 @@ const d2 = ri({
9815
9815
  // Several. Use CSS `vertical-align` instead
9816
9816
  vLink: null,
9817
9817
  // `<body>`. Use CSS `a:visited {color}` instead
9818
- vSpace: G,
9818
+ vSpace: j,
9819
9819
  // `<img>` and `<object>`
9820
9820
  // Non-standard Properties.
9821
9821
  allowTransparency: null,
@@ -9828,7 +9828,7 @@ const d2 = ri({
9828
9828
  part: De,
9829
9829
  prefix: null,
9830
9830
  property: null,
9831
- results: G,
9831
+ results: j,
9832
9832
  security: null,
9833
9833
  unselectable: null
9834
9834
  },
@@ -10013,27 +10013,27 @@ const d2 = ri({
10013
10013
  },
10014
10014
  properties: {
10015
10015
  about: Ut,
10016
- accentHeight: G,
10016
+ accentHeight: j,
10017
10017
  accumulate: null,
10018
10018
  additive: null,
10019
10019
  alignmentBaseline: null,
10020
- alphabetic: G,
10021
- amplitude: G,
10020
+ alphabetic: j,
10021
+ amplitude: j,
10022
10022
  arabicForm: null,
10023
- ascent: G,
10023
+ ascent: j,
10024
10024
  attributeName: null,
10025
10025
  attributeType: null,
10026
- azimuth: G,
10026
+ azimuth: j,
10027
10027
  bandwidth: null,
10028
10028
  baselineShift: null,
10029
10029
  baseFrequency: null,
10030
10030
  baseProfile: null,
10031
10031
  bbox: null,
10032
10032
  begin: null,
10033
- bias: G,
10033
+ bias: j,
10034
10034
  by: null,
10035
10035
  calcMode: null,
10036
- capHeight: G,
10036
+ capHeight: j,
10037
10037
  className: De,
10038
10038
  clip: null,
10039
10039
  clipPath: null,
@@ -10054,26 +10054,26 @@ const d2 = ri({
10054
10054
  d: null,
10055
10055
  dataType: null,
10056
10056
  defaultAction: null,
10057
- descent: G,
10058
- diffuseConstant: G,
10057
+ descent: j,
10058
+ diffuseConstant: j,
10059
10059
  direction: null,
10060
10060
  display: null,
10061
10061
  dur: null,
10062
- divisor: G,
10062
+ divisor: j,
10063
10063
  dominantBaseline: null,
10064
10064
  download: ge,
10065
10065
  dx: null,
10066
10066
  dy: null,
10067
10067
  edgeMode: null,
10068
10068
  editable: null,
10069
- elevation: G,
10069
+ elevation: j,
10070
10070
  enableBackground: null,
10071
10071
  end: null,
10072
10072
  event: null,
10073
- exponent: G,
10073
+ exponent: j,
10074
10074
  externalResourcesRequired: null,
10075
10075
  fill: null,
10076
- fillOpacity: G,
10076
+ fillOpacity: j,
10077
10077
  fillRule: null,
10078
10078
  filter: null,
10079
10079
  filterRes: null,
@@ -10103,27 +10103,27 @@ const d2 = ri({
10103
10103
  gradientTransform: null,
10104
10104
  gradientUnits: null,
10105
10105
  handler: null,
10106
- hanging: G,
10106
+ hanging: j,
10107
10107
  hatchContentUnits: null,
10108
10108
  hatchUnits: null,
10109
10109
  height: null,
10110
10110
  href: null,
10111
10111
  hrefLang: null,
10112
- horizAdvX: G,
10113
- horizOriginX: G,
10114
- horizOriginY: G,
10112
+ horizAdvX: j,
10113
+ horizOriginX: j,
10114
+ horizOriginY: j,
10115
10115
  id: null,
10116
- ideographic: G,
10116
+ ideographic: j,
10117
10117
  imageRendering: null,
10118
10118
  initialVisibility: null,
10119
10119
  in: null,
10120
10120
  in2: null,
10121
- intercept: G,
10122
- k: G,
10123
- k1: G,
10124
- k2: G,
10125
- k3: G,
10126
- k4: G,
10121
+ intercept: j,
10122
+ k: j,
10123
+ k1: j,
10124
+ k2: j,
10125
+ k3: j,
10126
+ k4: j,
10127
10127
  kernelMatrix: Ut,
10128
10128
  kernelUnitLength: null,
10129
10129
  keyPoints: null,
@@ -10137,7 +10137,7 @@ const d2 = ri({
10137
10137
  lengthAdjust: null,
10138
10138
  letterSpacing: null,
10139
10139
  lightingColor: null,
10140
- limitingConeAngle: G,
10140
+ limitingConeAngle: j,
10141
10141
  local: null,
10142
10142
  markerEnd: null,
10143
10143
  markerMid: null,
@@ -10154,7 +10154,7 @@ const d2 = ri({
10154
10154
  media: null,
10155
10155
  mediaCharacterEncoding: null,
10156
10156
  mediaContentEncodings: null,
10157
- mediaSize: G,
10157
+ mediaSize: j,
10158
10158
  mediaTime: null,
10159
10159
  method: null,
10160
10160
  min: null,
@@ -10260,12 +10260,12 @@ const d2 = ri({
10260
10260
  origin: null,
10261
10261
  overflow: null,
10262
10262
  overlay: null,
10263
- overlinePosition: G,
10264
- overlineThickness: G,
10263
+ overlinePosition: j,
10264
+ overlineThickness: j,
10265
10265
  paintOrder: null,
10266
10266
  panose1: null,
10267
10267
  path: null,
10268
- pathLength: G,
10268
+ pathLength: j,
10269
10269
  patternContentUnits: null,
10270
10270
  patternTransform: null,
10271
10271
  patternUnits: null,
@@ -10275,9 +10275,9 @@ const d2 = ri({
10275
10275
  playbackOrder: null,
10276
10276
  pointerEvents: null,
10277
10277
  points: null,
10278
- pointsAtX: G,
10279
- pointsAtY: G,
10280
- pointsAtZ: G,
10278
+ pointsAtX: j,
10279
+ pointsAtY: j,
10280
+ pointsAtZ: j,
10281
10281
  preserveAlpha: null,
10282
10282
  preserveAspectRatio: null,
10283
10283
  primitiveUnits: null,
@@ -10309,8 +10309,8 @@ const d2 = ri({
10309
10309
  side: null,
10310
10310
  slope: null,
10311
10311
  snapshotTime: null,
10312
- specularConstant: G,
10313
- specularExponent: G,
10312
+ specularConstant: j,
10313
+ specularExponent: j,
10314
10314
  spreadMethod: null,
10315
10315
  spacing: null,
10316
10316
  startOffset: null,
@@ -10320,30 +10320,30 @@ const d2 = ri({
10320
10320
  stitchTiles: null,
10321
10321
  stopColor: null,
10322
10322
  stopOpacity: null,
10323
- strikethroughPosition: G,
10324
- strikethroughThickness: G,
10323
+ strikethroughPosition: j,
10324
+ strikethroughThickness: j,
10325
10325
  string: null,
10326
10326
  stroke: null,
10327
10327
  strokeDashArray: Ut,
10328
10328
  strokeDashOffset: null,
10329
10329
  strokeLineCap: null,
10330
10330
  strokeLineJoin: null,
10331
- strokeMiterLimit: G,
10332
- strokeOpacity: G,
10331
+ strokeMiterLimit: j,
10332
+ strokeOpacity: j,
10333
10333
  strokeWidth: null,
10334
10334
  style: null,
10335
- surfaceScale: G,
10335
+ surfaceScale: j,
10336
10336
  syncBehavior: null,
10337
10337
  syncBehaviorDefault: null,
10338
10338
  syncMaster: null,
10339
10339
  syncTolerance: null,
10340
10340
  syncToleranceDefault: null,
10341
10341
  systemLanguage: Ut,
10342
- tabIndex: G,
10342
+ tabIndex: j,
10343
10343
  tableValues: null,
10344
10344
  target: null,
10345
- targetX: G,
10346
- targetY: G,
10345
+ targetX: j,
10346
+ targetY: j,
10347
10347
  textAnchor: null,
10348
10348
  textDecoration: null,
10349
10349
  textRendering: null,
@@ -10358,22 +10358,22 @@ const d2 = ri({
10358
10358
  transformOrigin: null,
10359
10359
  u1: null,
10360
10360
  u2: null,
10361
- underlinePosition: G,
10362
- underlineThickness: G,
10361
+ underlinePosition: j,
10362
+ underlineThickness: j,
10363
10363
  unicode: null,
10364
10364
  unicodeBidi: null,
10365
10365
  unicodeRange: null,
10366
- unitsPerEm: G,
10366
+ unitsPerEm: j,
10367
10367
  values: null,
10368
- vAlphabetic: G,
10369
- vMathematical: G,
10368
+ vAlphabetic: j,
10369
+ vMathematical: j,
10370
10370
  vectorEffect: null,
10371
- vHanging: G,
10372
- vIdeographic: G,
10371
+ vHanging: j,
10372
+ vIdeographic: j,
10373
10373
  version: null,
10374
- vertAdvY: G,
10375
- vertOriginX: G,
10376
- vertOriginY: G,
10374
+ vertAdvY: j,
10375
+ vertOriginX: j,
10376
+ vertOriginY: j,
10377
10377
  viewBox: null,
10378
10378
  viewTarget: null,
10379
10379
  visibility: null,
@@ -10385,7 +10385,7 @@ const d2 = ri({
10385
10385
  x1: null,
10386
10386
  x2: null,
10387
10387
  xChannelSelector: null,
10388
- xHeight: G,
10388
+ xHeight: j,
10389
10389
  y: null,
10390
10390
  y1: null,
10391
10391
  y2: null,
@@ -10486,15 +10486,15 @@ function b2() {
10486
10486
  g = g || {};
10487
10487
  var b = 1, T = 1;
10488
10488
  function k(H) {
10489
- var V = H.match(t);
10490
- V && (b += V.length);
10489
+ var z = H.match(t);
10490
+ z && (b += z.length);
10491
10491
  var de = H.lastIndexOf(u);
10492
10492
  T = ~de ? H.length - de : T + H.length;
10493
10493
  }
10494
10494
  function v() {
10495
10495
  var H = { line: b, column: T };
10496
- return function(V) {
10497
- return V.position = new x(H), W(), V;
10496
+ return function(z) {
10497
+ return z.position = new x(H), G(), z;
10498
10498
  };
10499
10499
  }
10500
10500
  function x(H) {
@@ -10502,61 +10502,61 @@ function b2() {
10502
10502
  }
10503
10503
  x.prototype.content = S;
10504
10504
  function L(H) {
10505
- var V = new Error(
10505
+ var z = new Error(
10506
10506
  g.source + ":" + b + ":" + T + ": " + H
10507
10507
  );
10508
- if (V.reason = H, V.filename = g.source, V.line = b, V.column = T, V.source = S, !g.silent) throw V;
10508
+ if (z.reason = H, z.filename = g.source, z.line = b, z.column = T, z.source = S, !g.silent) throw z;
10509
10509
  }
10510
10510
  function U(H) {
10511
- var V = H.exec(S);
10512
- if (V) {
10513
- var de = V[0];
10514
- return k(de), S = S.slice(de.length), V;
10511
+ var z = H.exec(S);
10512
+ if (z) {
10513
+ var de = z[0];
10514
+ return k(de), S = S.slice(de.length), z;
10515
10515
  }
10516
10516
  }
10517
- function W() {
10517
+ function G() {
10518
10518
  U(n);
10519
10519
  }
10520
10520
  function R(H) {
10521
- var V;
10522
- for (H = H || []; V = $(); )
10523
- V !== !1 && H.push(V);
10521
+ var z;
10522
+ for (H = H || []; z = $(); )
10523
+ z !== !1 && H.push(z);
10524
10524
  return H;
10525
10525
  }
10526
10526
  function $() {
10527
10527
  var H = v();
10528
10528
  if (!(c != S.charAt(0) || l != S.charAt(1))) {
10529
- for (var V = 2; d != S.charAt(V) && (l != S.charAt(V) || c != S.charAt(V + 1)); )
10530
- ++V;
10531
- if (V += 2, d === S.charAt(V - 1))
10529
+ for (var z = 2; d != S.charAt(z) && (l != S.charAt(z) || c != S.charAt(z + 1)); )
10530
+ ++z;
10531
+ if (z += 2, d === S.charAt(z - 1))
10532
10532
  return L("End of comment missing");
10533
- var de = S.slice(2, V - 2);
10534
- return T += 2, k(de), S = S.slice(V), T += 2, H({
10533
+ var de = S.slice(2, z - 2);
10534
+ return T += 2, k(de), S = S.slice(z), T += 2, H({
10535
10535
  type: p,
10536
10536
  comment: de
10537
10537
  });
10538
10538
  }
10539
10539
  }
10540
- function j() {
10541
- var H = v(), V = U(r);
10542
- if (V) {
10540
+ function K() {
10541
+ var H = v(), z = U(r);
10542
+ if (z) {
10543
10543
  if ($(), !U(i)) return L("property missing ':'");
10544
- var de = U(s), K = H({
10544
+ var de = U(s), X = H({
10545
10545
  type: h,
10546
- property: E(V[0].replace(e, d)),
10546
+ property: E(z[0].replace(e, d)),
10547
10547
  value: de ? E(de[0].replace(e, d)) : d
10548
10548
  });
10549
- return U(o), K;
10549
+ return U(o), X;
10550
10550
  }
10551
10551
  }
10552
- function ue() {
10552
+ function ne() {
10553
10553
  var H = [];
10554
10554
  R(H);
10555
- for (var V; V = j(); )
10556
- V !== !1 && (H.push(V), R(H));
10555
+ for (var z; z = K(); )
10556
+ z !== !1 && (H.push(z), R(H));
10557
10557
  return H;
10558
10558
  }
10559
- return W(), ue();
10559
+ return G(), ne();
10560
10560
  }
10561
10561
  function E(S) {
10562
10562
  return S ? S.replace(a, d) : d;
@@ -11311,14 +11311,14 @@ function eS(e) {
11311
11311
  )
11312
11312
  return;
11313
11313
  const L = t.events.length;
11314
- let U = L, W, R;
11314
+ let U = L, G, R;
11315
11315
  for (; U--; )
11316
11316
  if (t.events[U][0] === "exit" && t.events[U][1].type === "chunkFlow") {
11317
- if (W) {
11317
+ if (G) {
11318
11318
  R = t.events[U][1].end;
11319
11319
  break;
11320
11320
  }
11321
- W = !0;
11321
+ G = !0;
11322
11322
  }
11323
11323
  for (g(r), x = L; x < t.events.length; )
11324
11324
  t.events[x][1].end = O({}, R), x++;
@@ -11599,22 +11599,22 @@ function fS(e, t, n) {
11599
11599
  return e.exit("codeFenced"), t(x);
11600
11600
  }
11601
11601
  function v(x, L, U) {
11602
- let W = 0;
11602
+ let G = 0;
11603
11603
  return R;
11604
- function R(V) {
11605
- return x.enter("lineEnding"), x.consume(V), x.exit("lineEnding"), $;
11604
+ function R(z) {
11605
+ return x.enter("lineEnding"), x.consume(z), x.exit("lineEnding"), $;
11606
11606
  }
11607
- function $(V) {
11608
- return x.enter("codeFencedFence"), _e(V) ? Oe(x, j, "linePrefix", r.parser.constructs.disable.null.includes("codeIndented") ? void 0 : 4)(V) : j(V);
11607
+ function $(z) {
11608
+ return x.enter("codeFencedFence"), _e(z) ? Oe(x, K, "linePrefix", r.parser.constructs.disable.null.includes("codeIndented") ? void 0 : 4)(z) : K(z);
11609
11609
  }
11610
- function j(V) {
11611
- return V === a ? (x.enter("codeFencedFenceSequence"), ue(V)) : U(V);
11610
+ function K(z) {
11611
+ return z === a ? (x.enter("codeFencedFenceSequence"), ne(z)) : U(z);
11612
11612
  }
11613
- function ue(V) {
11614
- return V === a ? (W++, x.consume(V), ue) : W >= o ? (x.exit("codeFencedFenceSequence"), _e(V) ? Oe(x, H, "whitespace")(V) : H(V)) : U(V);
11613
+ function ne(z) {
11614
+ return z === a ? (G++, x.consume(z), ne) : G >= o ? (x.exit("codeFencedFenceSequence"), _e(z) ? Oe(x, H, "whitespace")(z) : H(z)) : U(z);
11615
11615
  }
11616
- function H(V) {
11617
- return V === null || fe(V) ? (x.exit("codeFencedFence"), L(V)) : U(V);
11616
+ function H(z) {
11617
+ return z === null || fe(z) ? (x.exit("codeFencedFence"), L(z)) : U(z);
11618
11618
  }
11619
11619
  }
11620
11620
  }
@@ -12274,7 +12274,7 @@ function zS(e, t, n) {
12274
12274
  }
12275
12275
  function m(P) {
12276
12276
  const Se = "CDATA[";
12277
- return P === Se.charCodeAt(a++) ? (e.consume(P), a === Se.length ? r.interrupt ? t : j : m) : n(P);
12277
+ return P === Se.charCodeAt(a++) ? (e.consume(P), a === Se.length ? r.interrupt ? t : K : m) : n(P);
12278
12278
  }
12279
12279
  function E(P) {
12280
12280
  return Ct(P) ? (e.consume(P), o = String.fromCharCode(P), S) : n(P);
@@ -12282,12 +12282,12 @@ function zS(e, t, n) {
12282
12282
  function S(P) {
12283
12283
  if (P === null || P === 47 || P === 62 || Fe(P)) {
12284
12284
  const Se = P === 47, Be = o.toLowerCase();
12285
- return !Se && !s && gd.includes(Be) ? (i = 1, r.interrupt ? t(P) : j(P)) : FS.includes(o.toLowerCase()) ? (i = 6, Se ? (e.consume(P), g) : r.interrupt ? t(P) : j(P)) : (i = 7, r.interrupt && !r.parser.lazy[r.now().line] ? n(P) : s ? b(P) : T(P));
12285
+ return !Se && !s && gd.includes(Be) ? (i = 1, r.interrupt ? t(P) : K(P)) : FS.includes(o.toLowerCase()) ? (i = 6, Se ? (e.consume(P), g) : r.interrupt ? t(P) : K(P)) : (i = 7, r.interrupt && !r.parser.lazy[r.now().line] ? n(P) : s ? b(P) : T(P));
12286
12286
  }
12287
12287
  return P === 45 || pt(P) ? (e.consume(P), o += String.fromCharCode(P), S) : n(P);
12288
12288
  }
12289
12289
  function g(P) {
12290
- return P === 62 ? (e.consume(P), r.interrupt ? t : j) : n(P);
12290
+ return P === 62 ? (e.consume(P), r.interrupt ? t : K) : n(P);
12291
12291
  }
12292
12292
  function b(P) {
12293
12293
  return _e(P) ? (e.consume(P), b) : R(P);
@@ -12305,55 +12305,55 @@ function zS(e, t, n) {
12305
12305
  return P === null || P === 60 || P === 61 || P === 62 || P === 96 ? n(P) : P === 34 || P === 39 ? (e.consume(P), u = P, L) : _e(P) ? (e.consume(P), x) : U(P);
12306
12306
  }
12307
12307
  function L(P) {
12308
- return P === u ? (e.consume(P), u = null, W) : P === null || fe(P) ? n(P) : (e.consume(P), L);
12308
+ return P === u ? (e.consume(P), u = null, G) : P === null || fe(P) ? n(P) : (e.consume(P), L);
12309
12309
  }
12310
12310
  function U(P) {
12311
12311
  return P === null || P === 34 || P === 39 || P === 47 || P === 60 || P === 61 || P === 62 || P === 96 || Fe(P) ? v(P) : (e.consume(P), U);
12312
12312
  }
12313
- function W(P) {
12313
+ function G(P) {
12314
12314
  return P === 47 || P === 62 || _e(P) ? T(P) : n(P);
12315
12315
  }
12316
12316
  function R(P) {
12317
12317
  return P === 62 ? (e.consume(P), $) : n(P);
12318
12318
  }
12319
12319
  function $(P) {
12320
- return P === null || fe(P) ? j(P) : _e(P) ? (e.consume(P), $) : n(P);
12320
+ return P === null || fe(P) ? K(P) : _e(P) ? (e.consume(P), $) : n(P);
12321
12321
  }
12322
- function j(P) {
12323
- return P === 45 && i === 2 ? (e.consume(P), de) : P === 60 && i === 1 ? (e.consume(P), K) : P === 62 && i === 4 ? (e.consume(P), re) : P === 63 && i === 3 ? (e.consume(P), C) : P === 93 && i === 5 ? (e.consume(P), ie) : fe(P) && (i === 6 || i === 7) ? (e.exit("htmlFlowData"), e.check(US, se, ue)(P)) : P === null || fe(P) ? (e.exit("htmlFlowData"), ue(P)) : (e.consume(P), j);
12322
+ function K(P) {
12323
+ return P === 45 && i === 2 ? (e.consume(P), de) : P === 60 && i === 1 ? (e.consume(P), X) : P === 62 && i === 4 ? (e.consume(P), ie) : P === 63 && i === 3 ? (e.consume(P), C) : P === 93 && i === 5 ? (e.consume(P), se) : fe(P) && (i === 6 || i === 7) ? (e.exit("htmlFlowData"), e.check(US, oe, ne)(P)) : P === null || fe(P) ? (e.exit("htmlFlowData"), ne(P)) : (e.consume(P), K);
12324
12324
  }
12325
- function ue(P) {
12326
- return e.check(HS, H, se)(P);
12325
+ function ne(P) {
12326
+ return e.check(HS, H, oe)(P);
12327
12327
  }
12328
12328
  function H(P) {
12329
- return e.enter("lineEnding"), e.consume(P), e.exit("lineEnding"), V;
12329
+ return e.enter("lineEnding"), e.consume(P), e.exit("lineEnding"), z;
12330
12330
  }
12331
- function V(P) {
12332
- return P === null || fe(P) ? ue(P) : (e.enter("htmlFlowData"), j(P));
12331
+ function z(P) {
12332
+ return P === null || fe(P) ? ne(P) : (e.enter("htmlFlowData"), K(P));
12333
12333
  }
12334
12334
  function de(P) {
12335
- return P === 45 ? (e.consume(P), C) : j(P);
12335
+ return P === 45 ? (e.consume(P), C) : K(P);
12336
12336
  }
12337
- function K(P) {
12338
- return P === 47 ? (e.consume(P), o = "", Q) : j(P);
12337
+ function X(P) {
12338
+ return P === 47 ? (e.consume(P), o = "", Q) : K(P);
12339
12339
  }
12340
12340
  function Q(P) {
12341
12341
  if (P === 62) {
12342
12342
  const Se = o.toLowerCase();
12343
- return gd.includes(Se) ? (e.consume(P), re) : j(P);
12343
+ return gd.includes(Se) ? (e.consume(P), ie) : K(P);
12344
12344
  }
12345
- return Ct(P) && o.length < 8 ? (e.consume(P), o += String.fromCharCode(P), Q) : j(P);
12345
+ return Ct(P) && o.length < 8 ? (e.consume(P), o += String.fromCharCode(P), Q) : K(P);
12346
12346
  }
12347
- function ie(P) {
12348
- return P === 93 ? (e.consume(P), C) : j(P);
12347
+ function se(P) {
12348
+ return P === 93 ? (e.consume(P), C) : K(P);
12349
12349
  }
12350
12350
  function C(P) {
12351
- return P === 62 ? (e.consume(P), re) : P === 45 && i === 2 ? (e.consume(P), C) : j(P);
12351
+ return P === 62 ? (e.consume(P), ie) : P === 45 && i === 2 ? (e.consume(P), C) : K(P);
12352
12352
  }
12353
- function re(P) {
12354
- return P === null || fe(P) ? (e.exit("htmlFlowData"), se(P)) : (e.consume(P), re);
12353
+ function ie(P) {
12354
+ return P === null || fe(P) ? (e.exit("htmlFlowData"), oe(P)) : (e.consume(P), ie);
12355
12355
  }
12356
- function se(P) {
12356
+ function oe(P) {
12357
12357
  return e.exit("htmlFlow"), t(P);
12358
12358
  }
12359
12359
  }
@@ -12394,7 +12394,7 @@ function jS(e, t, n) {
12394
12394
  return C === 45 ? (e.consume(C), h) : n(C);
12395
12395
  }
12396
12396
  function d(C) {
12397
- return C === null ? n(C) : C === 45 ? (e.consume(C), p) : fe(C) ? (o = d, K(C)) : (e.consume(C), d);
12397
+ return C === null ? n(C) : C === 45 ? (e.consume(C), p) : fe(C) ? (o = d, X(C)) : (e.consume(C), d);
12398
12398
  }
12399
12399
  function p(C) {
12400
12400
  return C === 45 ? (e.consume(C), h) : d(C);
@@ -12403,11 +12403,11 @@ function jS(e, t, n) {
12403
12403
  return C === 62 ? de(C) : C === 45 ? p(C) : d(C);
12404
12404
  }
12405
12405
  function m(C) {
12406
- const re = "CDATA[";
12407
- return C === re.charCodeAt(s++) ? (e.consume(C), s === re.length ? E : m) : n(C);
12406
+ const ie = "CDATA[";
12407
+ return C === ie.charCodeAt(s++) ? (e.consume(C), s === ie.length ? E : m) : n(C);
12408
12408
  }
12409
12409
  function E(C) {
12410
- return C === null ? n(C) : C === 93 ? (e.consume(C), S) : fe(C) ? (o = E, K(C)) : (e.consume(C), E);
12410
+ return C === null ? n(C) : C === 93 ? (e.consume(C), S) : fe(C) ? (o = E, X(C)) : (e.consume(C), E);
12411
12411
  }
12412
12412
  function S(C) {
12413
12413
  return C === 93 ? (e.consume(C), g) : E(C);
@@ -12416,10 +12416,10 @@ function jS(e, t, n) {
12416
12416
  return C === 62 ? de(C) : C === 93 ? (e.consume(C), g) : E(C);
12417
12417
  }
12418
12418
  function b(C) {
12419
- return C === null || C === 62 ? de(C) : fe(C) ? (o = b, K(C)) : (e.consume(C), b);
12419
+ return C === null || C === 62 ? de(C) : fe(C) ? (o = b, X(C)) : (e.consume(C), b);
12420
12420
  }
12421
12421
  function T(C) {
12422
- return C === null ? n(C) : C === 63 ? (e.consume(C), k) : fe(C) ? (o = T, K(C)) : (e.consume(C), T);
12422
+ return C === null ? n(C) : C === 63 ? (e.consume(C), k) : fe(C) ? (o = T, X(C)) : (e.consume(C), T);
12423
12423
  }
12424
12424
  function k(C) {
12425
12425
  return C === 62 ? de(C) : T(C);
@@ -12431,42 +12431,42 @@ function jS(e, t, n) {
12431
12431
  return C === 45 || pt(C) ? (e.consume(C), x) : L(C);
12432
12432
  }
12433
12433
  function L(C) {
12434
- return fe(C) ? (o = L, K(C)) : _e(C) ? (e.consume(C), L) : de(C);
12434
+ return fe(C) ? (o = L, X(C)) : _e(C) ? (e.consume(C), L) : de(C);
12435
12435
  }
12436
12436
  function U(C) {
12437
- return C === 45 || pt(C) ? (e.consume(C), U) : C === 47 || C === 62 || Fe(C) ? W(C) : n(C);
12437
+ return C === 45 || pt(C) ? (e.consume(C), U) : C === 47 || C === 62 || Fe(C) ? G(C) : n(C);
12438
12438
  }
12439
- function W(C) {
12440
- return C === 47 ? (e.consume(C), de) : C === 58 || C === 95 || Ct(C) ? (e.consume(C), R) : fe(C) ? (o = W, K(C)) : _e(C) ? (e.consume(C), W) : de(C);
12439
+ function G(C) {
12440
+ return C === 47 ? (e.consume(C), de) : C === 58 || C === 95 || Ct(C) ? (e.consume(C), R) : fe(C) ? (o = G, X(C)) : _e(C) ? (e.consume(C), G) : de(C);
12441
12441
  }
12442
12442
  function R(C) {
12443
12443
  return C === 45 || C === 46 || C === 58 || C === 95 || pt(C) ? (e.consume(C), R) : $(C);
12444
12444
  }
12445
12445
  function $(C) {
12446
- return C === 61 ? (e.consume(C), j) : fe(C) ? (o = $, K(C)) : _e(C) ? (e.consume(C), $) : W(C);
12446
+ return C === 61 ? (e.consume(C), K) : fe(C) ? (o = $, X(C)) : _e(C) ? (e.consume(C), $) : G(C);
12447
12447
  }
12448
- function j(C) {
12449
- return C === null || C === 60 || C === 61 || C === 62 || C === 96 ? n(C) : C === 34 || C === 39 ? (e.consume(C), i = C, ue) : fe(C) ? (o = j, K(C)) : _e(C) ? (e.consume(C), j) : (e.consume(C), H);
12448
+ function K(C) {
12449
+ return C === null || C === 60 || C === 61 || C === 62 || C === 96 ? n(C) : C === 34 || C === 39 ? (e.consume(C), i = C, ne) : fe(C) ? (o = K, X(C)) : _e(C) ? (e.consume(C), K) : (e.consume(C), H);
12450
12450
  }
12451
- function ue(C) {
12452
- return C === i ? (e.consume(C), i = void 0, V) : C === null ? n(C) : fe(C) ? (o = ue, K(C)) : (e.consume(C), ue);
12451
+ function ne(C) {
12452
+ return C === i ? (e.consume(C), i = void 0, z) : C === null ? n(C) : fe(C) ? (o = ne, X(C)) : (e.consume(C), ne);
12453
12453
  }
12454
12454
  function H(C) {
12455
- return C === null || C === 34 || C === 39 || C === 60 || C === 61 || C === 96 ? n(C) : C === 47 || C === 62 || Fe(C) ? W(C) : (e.consume(C), H);
12455
+ return C === null || C === 34 || C === 39 || C === 60 || C === 61 || C === 96 ? n(C) : C === 47 || C === 62 || Fe(C) ? G(C) : (e.consume(C), H);
12456
12456
  }
12457
- function V(C) {
12458
- return C === 47 || C === 62 || Fe(C) ? W(C) : n(C);
12457
+ function z(C) {
12458
+ return C === 47 || C === 62 || Fe(C) ? G(C) : n(C);
12459
12459
  }
12460
12460
  function de(C) {
12461
12461
  return C === 62 ? (e.consume(C), e.exit("htmlTextData"), e.exit("htmlText"), t) : n(C);
12462
12462
  }
12463
- function K(C) {
12463
+ function X(C) {
12464
12464
  return e.exit("htmlTextData"), e.enter("lineEnding"), e.consume(C), e.exit("lineEnding"), Q;
12465
12465
  }
12466
12466
  function Q(C) {
12467
- return _e(C) ? Oe(e, ie, "linePrefix", r.parser.constructs.disable.null.includes("codeIndented") ? void 0 : 4)(C) : ie(C);
12467
+ return _e(C) ? Oe(e, se, "linePrefix", r.parser.constructs.disable.null.includes("codeIndented") ? void 0 : 4)(C) : se(C);
12468
12468
  }
12469
- function ie(C) {
12469
+ function se(C) {
12470
12470
  return e.enter("htmlTextData"), o(C);
12471
12471
  }
12472
12472
  }
@@ -13004,8 +13004,8 @@ function LA(e, t, n) {
13004
13004
  function d($) {
13005
13005
  return o = Gt(o, $), S(), o[o.length - 1] !== null ? [] : (U(t, 0), c.events = Lo(s, c.events, c), c.events);
13006
13006
  }
13007
- function p($, j) {
13008
- return DA(h($), j);
13007
+ function p($, K) {
13008
+ return DA(h($), K);
13009
13009
  }
13010
13010
  function h($) {
13011
13011
  return vA(o, $);
@@ -13013,17 +13013,17 @@ function LA(e, t, n) {
13013
13013
  function m() {
13014
13014
  const {
13015
13015
  _bufferIndex: $,
13016
- _index: j,
13017
- line: ue,
13016
+ _index: K,
13017
+ line: ne,
13018
13018
  column: H,
13019
- offset: V
13019
+ offset: z
13020
13020
  } = r;
13021
13021
  return {
13022
13022
  _bufferIndex: $,
13023
- _index: j,
13024
- line: ue,
13023
+ _index: K,
13024
+ line: ne,
13025
13025
  column: H,
13026
- offset: V
13026
+ offset: z
13027
13027
  };
13028
13028
  }
13029
13029
  function E($) {
@@ -13032,12 +13032,12 @@ function LA(e, t, n) {
13032
13032
  function S() {
13033
13033
  let $;
13034
13034
  for (; r._index < o.length; ) {
13035
- const j = o[r._index];
13036
- if (typeof j == "string")
13037
- for ($ = r._index, r._bufferIndex < 0 && (r._bufferIndex = 0); r._index === $ && r._bufferIndex < j.length; )
13038
- g(j.charCodeAt(r._bufferIndex));
13035
+ const K = o[r._index];
13036
+ if (typeof K == "string")
13037
+ for ($ = r._index, r._bufferIndex < 0 && (r._bufferIndex = 0); r._index === $ && r._bufferIndex < K.length; )
13038
+ g(K.charCodeAt(r._bufferIndex));
13039
13039
  else
13040
- g(j);
13040
+ g(K);
13041
13041
  }
13042
13042
  }
13043
13043
  function g($) {
@@ -13049,35 +13049,35 @@ function LA(e, t, n) {
13049
13049
  /** @type {string} */
13050
13050
  o[r._index].length && (r._bufferIndex = -1, r._index++)), c.previous = $;
13051
13051
  }
13052
- function T($, j) {
13053
- const ue = j || {};
13054
- return ue.type = $, ue.start = m(), c.events.push(["enter", ue, c]), a.push(ue), ue;
13052
+ function T($, K) {
13053
+ const ne = K || {};
13054
+ return ne.type = $, ne.start = m(), c.events.push(["enter", ne, c]), a.push(ne), ne;
13055
13055
  }
13056
13056
  function k($) {
13057
- const j = a.pop();
13058
- return j.end = m(), c.events.push(["exit", j, c]), j;
13057
+ const K = a.pop();
13058
+ return K.end = m(), c.events.push(["exit", K, c]), K;
13059
13059
  }
13060
- function v($, j) {
13061
- U($, j.from);
13060
+ function v($, K) {
13061
+ U($, K.from);
13062
13062
  }
13063
- function x($, j) {
13064
- j.restore();
13063
+ function x($, K) {
13064
+ K.restore();
13065
13065
  }
13066
- function L($, j) {
13067
- return ue;
13068
- function ue(H, V, de) {
13069
- let K, Q, ie, C;
13066
+ function L($, K) {
13067
+ return ne;
13068
+ function ne(H, z, de) {
13069
+ let X, Q, se, C;
13070
13070
  return Array.isArray(H) ? (
13071
13071
  /* c8 ignore next 1 */
13072
- se(H)
13072
+ oe(H)
13073
13073
  ) : "tokenize" in H ? (
13074
13074
  // Looks like a construct.
13075
- se([
13075
+ oe([
13076
13076
  /** @type {Construct} */
13077
13077
  H
13078
13078
  ])
13079
- ) : re(H);
13080
- function re(Pe) {
13079
+ ) : ie(H);
13080
+ function ie(Pe) {
13081
13081
  return he;
13082
13082
  function he(Ie) {
13083
13083
  const Re = Ie !== null && Pe[Ie], yt = Ie !== null && Pe.null, qt = [
@@ -13086,20 +13086,20 @@ function LA(e, t, n) {
13086
13086
  ...Array.isArray(Re) ? Re : Re ? [Re] : [],
13087
13087
  ...Array.isArray(yt) ? yt : yt ? [yt] : []
13088
13088
  ];
13089
- return se(qt)(Ie);
13089
+ return oe(qt)(Ie);
13090
13090
  }
13091
13091
  }
13092
- function se(Pe) {
13093
- return K = Pe, Q = 0, Pe.length === 0 ? de : P(Pe[Q]);
13092
+ function oe(Pe) {
13093
+ return X = Pe, Q = 0, Pe.length === 0 ? de : P(Pe[Q]);
13094
13094
  }
13095
13095
  function P(Pe) {
13096
13096
  return he;
13097
13097
  function he(Ie) {
13098
- return C = W(), ie = Pe, Pe.partial || (c.currentConstruct = Pe), Pe.name && c.parser.constructs.disable.null.includes(Pe.name) ? Be() : Pe.tokenize.call(
13098
+ return C = G(), se = Pe, Pe.partial || (c.currentConstruct = Pe), Pe.name && c.parser.constructs.disable.null.includes(Pe.name) ? Be() : Pe.tokenize.call(
13099
13099
  // If we do have fields, create an object w/ `context` as its
13100
13100
  // prototype.
13101
13101
  // This allows a “live binding”, which is needed for `interrupt`.
13102
- j ? Object.assign(Object.create(c), j) : c,
13102
+ K ? Object.assign(Object.create(c), K) : c,
13103
13103
  u,
13104
13104
  Se,
13105
13105
  Be
@@ -13107,24 +13107,24 @@ function LA(e, t, n) {
13107
13107
  }
13108
13108
  }
13109
13109
  function Se(Pe) {
13110
- return $(ie, C), V;
13110
+ return $(se, C), z;
13111
13111
  }
13112
13112
  function Be(Pe) {
13113
- return C.restore(), ++Q < K.length ? P(K[Q]) : de;
13113
+ return C.restore(), ++Q < X.length ? P(X[Q]) : de;
13114
13114
  }
13115
13115
  }
13116
13116
  }
13117
- function U($, j) {
13118
- $.resolveAll && !s.includes($) && s.push($), $.resolve && Ht(c.events, j, c.events.length - j, $.resolve(c.events.slice(j), c)), $.resolveTo && (c.events = $.resolveTo(c.events, c));
13117
+ function U($, K) {
13118
+ $.resolveAll && !s.includes($) && s.push($), $.resolve && Ht(c.events, K, c.events.length - K, $.resolve(c.events.slice(K), c)), $.resolveTo && (c.events = $.resolveTo(c.events, c));
13119
13119
  }
13120
- function W() {
13121
- const $ = m(), j = c.previous, ue = c.currentConstruct, H = c.events.length, V = Array.from(a);
13120
+ function G() {
13121
+ const $ = m(), K = c.previous, ne = c.currentConstruct, H = c.events.length, z = Array.from(a);
13122
13122
  return {
13123
13123
  from: H,
13124
13124
  restore: de
13125
13125
  };
13126
13126
  function de() {
13127
- r = $, c.previous = j, c.currentConstruct = ue, c.events.length = H, a = V, R();
13127
+ r = $, c.previous = K, c.currentConstruct = ne, c.events.length = H, a = z, R();
13128
13128
  }
13129
13129
  }
13130
13130
  function R() {
@@ -13271,20 +13271,20 @@ function VA(e) {
13271
13271
  canContainEols: ["emphasis", "fragment", "heading", "paragraph", "strong"],
13272
13272
  enter: {
13273
13273
  autolink: s(We),
13274
- autolinkProtocol: W,
13275
- autolinkEmail: W,
13274
+ autolinkProtocol: G,
13275
+ autolinkEmail: G,
13276
13276
  atxHeading: s(sn),
13277
13277
  blockQuote: s(yt),
13278
- characterEscape: W,
13279
- characterReference: W,
13278
+ characterEscape: G,
13279
+ characterReference: G,
13280
13280
  codeFenced: s(qt),
13281
13281
  codeFencedFenceInfo: o,
13282
13282
  codeFencedFenceMeta: o,
13283
13283
  codeIndented: s(qt, o),
13284
13284
  codeText: s(et, o),
13285
- codeTextData: W,
13286
- data: W,
13287
- codeFlowValue: W,
13285
+ codeTextData: G,
13286
+ data: G,
13287
+ codeFlowValue: G,
13288
13288
  definition: s(_t),
13289
13289
  definitionDestinationString: o,
13290
13290
  definitionLabelString: o,
@@ -13293,17 +13293,17 @@ function VA(e) {
13293
13293
  hardBreakEscape: s(Ft),
13294
13294
  hardBreakTrailing: s(Ft),
13295
13295
  htmlFlow: s(St, o),
13296
- htmlFlowData: W,
13296
+ htmlFlowData: G,
13297
13297
  htmlText: s(St, o),
13298
- htmlTextData: W,
13298
+ htmlTextData: G,
13299
13299
  image: s(pe),
13300
13300
  label: o,
13301
13301
  link: s(We),
13302
- listItem: s(ee),
13302
+ listItem: s(te),
13303
13303
  listItemValue: p,
13304
13304
  listOrdered: s(Ot, d),
13305
13305
  listUnordered: s(Ot),
13306
- paragraph: s(oe),
13306
+ paragraph: s(ae),
13307
13307
  reference: P,
13308
13308
  referenceString: o,
13309
13309
  resourceDestinationString: o,
@@ -13330,7 +13330,7 @@ function VA(e) {
13330
13330
  codeFencedFenceMeta: m,
13331
13331
  codeFlowValue: R,
13332
13332
  codeIndented: u(g),
13333
- codeText: u(V),
13333
+ codeText: u(z),
13334
13334
  codeTextData: R,
13335
13335
  data: R,
13336
13336
  definition: u(),
@@ -13338,14 +13338,14 @@ function VA(e) {
13338
13338
  definitionLabelString: b,
13339
13339
  definitionTitleString: T,
13340
13340
  emphasis: u(),
13341
- hardBreakEscape: u(j),
13342
- hardBreakTrailing: u(j),
13343
- htmlFlow: u(ue),
13341
+ hardBreakEscape: u(K),
13342
+ hardBreakTrailing: u(K),
13343
+ htmlFlow: u(ne),
13344
13344
  htmlFlowData: R,
13345
13345
  htmlText: u(H),
13346
13346
  htmlTextData: R,
13347
- image: u(K),
13348
- label: ie,
13347
+ image: u(X),
13348
+ label: se,
13349
13349
  labelText: Q,
13350
13350
  lineEnding: $,
13351
13351
  link: u(de),
@@ -13355,8 +13355,8 @@ function VA(e) {
13355
13355
  paragraph: u(),
13356
13356
  referenceString: Se,
13357
13357
  resourceDestinationString: C,
13358
- resourceTitleString: re,
13359
- resource: se,
13358
+ resourceTitleString: ie,
13359
+ resource: oe,
13360
13360
  setextHeading: u(U),
13361
13361
  setextHeadingLineSequence: L,
13362
13362
  setextHeadingText: x,
@@ -13368,12 +13368,12 @@ function VA(e) {
13368
13368
  const n = {};
13369
13369
  return r;
13370
13370
  function r(F) {
13371
- let X = {
13371
+ let W = {
13372
13372
  type: "root",
13373
13373
  children: []
13374
13374
  };
13375
- const ne = {
13376
- stack: [X],
13375
+ const re = {
13376
+ stack: [W],
13377
13377
  tokenStack: [],
13378
13378
  config: t,
13379
13379
  enter: a,
@@ -13395,13 +13395,13 @@ function VA(e) {
13395
13395
  const je = t[F[le][0]];
13396
13396
  T0.call(je, F[le][1].type) && je[F[le][1].type].call(Object.assign({
13397
13397
  sliceSerialize: F[le][2].sliceSerialize
13398
- }, ne), F[le][1]);
13398
+ }, re), F[le][1]);
13399
13399
  }
13400
- if (ne.tokenStack.length > 0) {
13401
- const je = ne.tokenStack[ne.tokenStack.length - 1];
13402
- (je[1] || Td).call(ne, void 0, je[0]);
13400
+ if (re.tokenStack.length > 0) {
13401
+ const je = re.tokenStack[re.tokenStack.length - 1];
13402
+ (je[1] || Td).call(re, void 0, je[0]);
13403
13403
  }
13404
- for (X.position = {
13404
+ for (W.position = {
13405
13405
  start: Un(F.length > 0 ? F[0][1].start : {
13406
13406
  line: 1,
13407
13407
  column: 1,
@@ -13413,12 +13413,12 @@ function VA(e) {
13413
13413
  offset: 0
13414
13414
  })
13415
13415
  }, le = -1; ++le < t.transforms.length; )
13416
- X = t.transforms[le](X) || X;
13417
- return X;
13416
+ W = t.transforms[le](W) || W;
13417
+ return W;
13418
13418
  }
13419
- function i(F, X, ne) {
13420
- let me = X - 1, le = -1, je = !1, lt, dt, Pt, Mn;
13421
- for (; ++me <= ne; ) {
13419
+ function i(F, W, re) {
13420
+ let me = W - 1, le = -1, je = !1, lt, dt, Pt, Mn;
13421
+ for (; ++me <= re; ) {
13422
13422
  const Bt = F[me];
13423
13423
  switch (Bt[1].type) {
13424
13424
  case "listUnordered":
@@ -13450,7 +13450,7 @@ function VA(e) {
13450
13450
  dt && (F[dt][1].type = "lineEndingBlank", je = !0), Sn[1].type = "lineEnding", dt = Nr;
13451
13451
  } else if (!(Sn[1].type === "linePrefix" || Sn[1].type === "blockQuotePrefix" || Sn[1].type === "blockQuotePrefixWhitespace" || Sn[1].type === "blockQuoteMarker" || Sn[1].type === "listItemIndent")) break;
13452
13452
  }
13453
- Pt && (!dt || Pt < dt) && (lt._spread = !0), lt.end = Object.assign({}, dt ? F[dt][1].start : Bt[1].end), F.splice(dt || me, 0, ["exit", lt, Bt[2]]), me++, ne++;
13453
+ Pt && (!dt || Pt < dt) && (lt._spread = !0), lt.end = Object.assign({}, dt ? F[dt][1].start : Bt[1].end), F.splice(dt || me, 0, ["exit", lt, Bt[2]]), me++, re++;
13454
13454
  }
13455
13455
  if (Bt[1].type === "listItemPrefix") {
13456
13456
  const Nr = {
@@ -13460,16 +13460,16 @@ function VA(e) {
13460
13460
  // @ts-expect-error: we’ll add `end` in a second.
13461
13461
  end: void 0
13462
13462
  };
13463
- lt = Nr, F.splice(me, 0, ["enter", Nr, Bt[2]]), me++, ne++, Pt = void 0, Mn = !0;
13463
+ lt = Nr, F.splice(me, 0, ["enter", Nr, Bt[2]]), me++, re++, Pt = void 0, Mn = !0;
13464
13464
  }
13465
13465
  }
13466
13466
  }
13467
- return F[X][1]._spread = je, ne;
13467
+ return F[W][1]._spread = je, re;
13468
13468
  }
13469
- function s(F, X) {
13470
- return ne;
13471
- function ne(me) {
13472
- a.call(this, F(me), me), X && X.call(this, me);
13469
+ function s(F, W) {
13470
+ return re;
13471
+ function re(me) {
13472
+ a.call(this, F(me), me), W && W.call(this, me);
13473
13473
  }
13474
13474
  }
13475
13475
  function o() {
@@ -13478,28 +13478,28 @@ function VA(e) {
13478
13478
  children: []
13479
13479
  });
13480
13480
  }
13481
- function a(F, X, ne) {
13482
- this.stack[this.stack.length - 1].children.push(F), this.stack.push(F), this.tokenStack.push([X, ne || void 0]), F.position = {
13483
- start: Un(X.start),
13481
+ function a(F, W, re) {
13482
+ this.stack[this.stack.length - 1].children.push(F), this.stack.push(F), this.tokenStack.push([W, re || void 0]), F.position = {
13483
+ start: Un(W.start),
13484
13484
  // @ts-expect-error: `end` will be patched later.
13485
13485
  end: void 0
13486
13486
  };
13487
13487
  }
13488
13488
  function u(F) {
13489
- return X;
13490
- function X(ne) {
13491
- F && F.call(this, ne), c.call(this, ne);
13489
+ return W;
13490
+ function W(re) {
13491
+ F && F.call(this, re), c.call(this, re);
13492
13492
  }
13493
13493
  }
13494
- function c(F, X) {
13495
- const ne = this.stack.pop(), me = this.tokenStack.pop();
13494
+ function c(F, W) {
13495
+ const re = this.stack.pop(), me = this.tokenStack.pop();
13496
13496
  if (me)
13497
- me[0].type !== F.type && (X ? X.call(this, F, me[0]) : (me[1] || Td).call(this, F, me[0]));
13497
+ me[0].type !== F.type && (W ? W.call(this, F, me[0]) : (me[1] || Td).call(this, F, me[0]));
13498
13498
  else throw new Error("Cannot close `" + F.type + "` (" + vi({
13499
13499
  start: F.start,
13500
13500
  end: F.end
13501
13501
  }) + "): it’s not open");
13502
- ne.position.end = Un(F.end);
13502
+ re.position.end = Un(F.end);
13503
13503
  }
13504
13504
  function l() {
13505
13505
  return hc(this.stack.pop());
@@ -13509,166 +13509,166 @@ function VA(e) {
13509
13509
  }
13510
13510
  function p(F) {
13511
13511
  if (this.data.expectingFirstListItemValue) {
13512
- const X = this.stack[this.stack.length - 2];
13513
- X.start = Number.parseInt(this.sliceSerialize(F), 10), this.data.expectingFirstListItemValue = void 0;
13512
+ const W = this.stack[this.stack.length - 2];
13513
+ W.start = Number.parseInt(this.sliceSerialize(F), 10), this.data.expectingFirstListItemValue = void 0;
13514
13514
  }
13515
13515
  }
13516
13516
  function h() {
13517
- const F = this.resume(), X = this.stack[this.stack.length - 1];
13518
- X.lang = F;
13517
+ const F = this.resume(), W = this.stack[this.stack.length - 1];
13518
+ W.lang = F;
13519
13519
  }
13520
13520
  function m() {
13521
- const F = this.resume(), X = this.stack[this.stack.length - 1];
13522
- X.meta = F;
13521
+ const F = this.resume(), W = this.stack[this.stack.length - 1];
13522
+ W.meta = F;
13523
13523
  }
13524
13524
  function E() {
13525
13525
  this.data.flowCodeInside || (this.buffer(), this.data.flowCodeInside = !0);
13526
13526
  }
13527
13527
  function S() {
13528
- const F = this.resume(), X = this.stack[this.stack.length - 1];
13529
- X.value = F.replace(/^(\r?\n|\r)|(\r?\n|\r)$/g, ""), this.data.flowCodeInside = void 0;
13528
+ const F = this.resume(), W = this.stack[this.stack.length - 1];
13529
+ W.value = F.replace(/^(\r?\n|\r)|(\r?\n|\r)$/g, ""), this.data.flowCodeInside = void 0;
13530
13530
  }
13531
13531
  function g() {
13532
- const F = this.resume(), X = this.stack[this.stack.length - 1];
13533
- X.value = F.replace(/(\r?\n|\r)$/g, "");
13532
+ const F = this.resume(), W = this.stack[this.stack.length - 1];
13533
+ W.value = F.replace(/(\r?\n|\r)$/g, "");
13534
13534
  }
13535
13535
  function b(F) {
13536
- const X = this.resume(), ne = this.stack[this.stack.length - 1];
13537
- ne.label = X, ne.identifier = Zt(this.sliceSerialize(F)).toLowerCase();
13536
+ const W = this.resume(), re = this.stack[this.stack.length - 1];
13537
+ re.label = W, re.identifier = Zt(this.sliceSerialize(F)).toLowerCase();
13538
13538
  }
13539
13539
  function T() {
13540
- const F = this.resume(), X = this.stack[this.stack.length - 1];
13541
- X.title = F;
13540
+ const F = this.resume(), W = this.stack[this.stack.length - 1];
13541
+ W.title = F;
13542
13542
  }
13543
13543
  function k() {
13544
- const F = this.resume(), X = this.stack[this.stack.length - 1];
13545
- X.url = F;
13544
+ const F = this.resume(), W = this.stack[this.stack.length - 1];
13545
+ W.url = F;
13546
13546
  }
13547
13547
  function v(F) {
13548
- const X = this.stack[this.stack.length - 1];
13549
- if (!X.depth) {
13550
- const ne = this.sliceSerialize(F).length;
13551
- X.depth = ne;
13548
+ const W = this.stack[this.stack.length - 1];
13549
+ if (!W.depth) {
13550
+ const re = this.sliceSerialize(F).length;
13551
+ W.depth = re;
13552
13552
  }
13553
13553
  }
13554
13554
  function x() {
13555
13555
  this.data.setextHeadingSlurpLineEnding = !0;
13556
13556
  }
13557
13557
  function L(F) {
13558
- const X = this.stack[this.stack.length - 1];
13559
- X.depth = this.sliceSerialize(F).codePointAt(0) === 61 ? 1 : 2;
13558
+ const W = this.stack[this.stack.length - 1];
13559
+ W.depth = this.sliceSerialize(F).codePointAt(0) === 61 ? 1 : 2;
13560
13560
  }
13561
13561
  function U() {
13562
13562
  this.data.setextHeadingSlurpLineEnding = void 0;
13563
13563
  }
13564
- function W(F) {
13565
- const ne = this.stack[this.stack.length - 1].children;
13566
- let me = ne[ne.length - 1];
13564
+ function G(F) {
13565
+ const re = this.stack[this.stack.length - 1].children;
13566
+ let me = re[re.length - 1];
13567
13567
  (!me || me.type !== "text") && (me = be(), me.position = {
13568
13568
  start: Un(F.start),
13569
13569
  // @ts-expect-error: we’ll add `end` later.
13570
13570
  end: void 0
13571
- }, ne.push(me)), this.stack.push(me);
13571
+ }, re.push(me)), this.stack.push(me);
13572
13572
  }
13573
13573
  function R(F) {
13574
- const X = this.stack.pop();
13575
- X.value += this.sliceSerialize(F), X.position.end = Un(F.end);
13574
+ const W = this.stack.pop();
13575
+ W.value += this.sliceSerialize(F), W.position.end = Un(F.end);
13576
13576
  }
13577
13577
  function $(F) {
13578
- const X = this.stack[this.stack.length - 1];
13578
+ const W = this.stack[this.stack.length - 1];
13579
13579
  if (this.data.atHardBreak) {
13580
- const ne = X.children[X.children.length - 1];
13581
- ne.position.end = Un(F.end), this.data.atHardBreak = void 0;
13580
+ const re = W.children[W.children.length - 1];
13581
+ re.position.end = Un(F.end), this.data.atHardBreak = void 0;
13582
13582
  return;
13583
13583
  }
13584
- !this.data.setextHeadingSlurpLineEnding && t.canContainEols.includes(X.type) && (W.call(this, F), R.call(this, F));
13584
+ !this.data.setextHeadingSlurpLineEnding && t.canContainEols.includes(W.type) && (G.call(this, F), R.call(this, F));
13585
13585
  }
13586
- function j() {
13586
+ function K() {
13587
13587
  this.data.atHardBreak = !0;
13588
13588
  }
13589
- function ue() {
13590
- const F = this.resume(), X = this.stack[this.stack.length - 1];
13591
- X.value = F;
13589
+ function ne() {
13590
+ const F = this.resume(), W = this.stack[this.stack.length - 1];
13591
+ W.value = F;
13592
13592
  }
13593
13593
  function H() {
13594
- const F = this.resume(), X = this.stack[this.stack.length - 1];
13595
- X.value = F;
13594
+ const F = this.resume(), W = this.stack[this.stack.length - 1];
13595
+ W.value = F;
13596
13596
  }
13597
- function V() {
13598
- const F = this.resume(), X = this.stack[this.stack.length - 1];
13599
- X.value = F;
13597
+ function z() {
13598
+ const F = this.resume(), W = this.stack[this.stack.length - 1];
13599
+ W.value = F;
13600
13600
  }
13601
13601
  function de() {
13602
13602
  const F = this.stack[this.stack.length - 1];
13603
13603
  if (this.data.inReference) {
13604
- const X = this.data.referenceType || "shortcut";
13605
- F.type += "Reference", F.referenceType = X, delete F.url, delete F.title;
13604
+ const W = this.data.referenceType || "shortcut";
13605
+ F.type += "Reference", F.referenceType = W, delete F.url, delete F.title;
13606
13606
  } else
13607
13607
  delete F.identifier, delete F.label;
13608
13608
  this.data.referenceType = void 0;
13609
13609
  }
13610
- function K() {
13610
+ function X() {
13611
13611
  const F = this.stack[this.stack.length - 1];
13612
13612
  if (this.data.inReference) {
13613
- const X = this.data.referenceType || "shortcut";
13614
- F.type += "Reference", F.referenceType = X, delete F.url, delete F.title;
13613
+ const W = this.data.referenceType || "shortcut";
13614
+ F.type += "Reference", F.referenceType = W, delete F.url, delete F.title;
13615
13615
  } else
13616
13616
  delete F.identifier, delete F.label;
13617
13617
  this.data.referenceType = void 0;
13618
13618
  }
13619
13619
  function Q(F) {
13620
- const X = this.sliceSerialize(F), ne = this.stack[this.stack.length - 2];
13621
- ne.label = HA(X), ne.identifier = Zt(X).toLowerCase();
13620
+ const W = this.sliceSerialize(F), re = this.stack[this.stack.length - 2];
13621
+ re.label = HA(W), re.identifier = Zt(W).toLowerCase();
13622
13622
  }
13623
- function ie() {
13624
- const F = this.stack[this.stack.length - 1], X = this.resume(), ne = this.stack[this.stack.length - 1];
13625
- if (this.data.inReference = !0, ne.type === "link") {
13623
+ function se() {
13624
+ const F = this.stack[this.stack.length - 1], W = this.resume(), re = this.stack[this.stack.length - 1];
13625
+ if (this.data.inReference = !0, re.type === "link") {
13626
13626
  const me = F.children;
13627
- ne.children = me;
13627
+ re.children = me;
13628
13628
  } else
13629
- ne.alt = X;
13629
+ re.alt = W;
13630
13630
  }
13631
13631
  function C() {
13632
- const F = this.resume(), X = this.stack[this.stack.length - 1];
13633
- X.url = F;
13632
+ const F = this.resume(), W = this.stack[this.stack.length - 1];
13633
+ W.url = F;
13634
13634
  }
13635
- function re() {
13636
- const F = this.resume(), X = this.stack[this.stack.length - 1];
13637
- X.title = F;
13635
+ function ie() {
13636
+ const F = this.resume(), W = this.stack[this.stack.length - 1];
13637
+ W.title = F;
13638
13638
  }
13639
- function se() {
13639
+ function oe() {
13640
13640
  this.data.inReference = void 0;
13641
13641
  }
13642
13642
  function P() {
13643
13643
  this.data.referenceType = "collapsed";
13644
13644
  }
13645
13645
  function Se(F) {
13646
- const X = this.resume(), ne = this.stack[this.stack.length - 1];
13647
- ne.label = X, ne.identifier = Zt(this.sliceSerialize(F)).toLowerCase(), this.data.referenceType = "full";
13646
+ const W = this.resume(), re = this.stack[this.stack.length - 1];
13647
+ re.label = W, re.identifier = Zt(this.sliceSerialize(F)).toLowerCase(), this.data.referenceType = "full";
13648
13648
  }
13649
13649
  function Be(F) {
13650
13650
  this.data.characterReferenceType = F.type;
13651
13651
  }
13652
13652
  function Pe(F) {
13653
- const X = this.sliceSerialize(F), ne = this.data.characterReferenceType;
13653
+ const W = this.sliceSerialize(F), re = this.data.characterReferenceType;
13654
13654
  let me;
13655
- ne ? (me = c0(X, ne === "characterReferenceMarkerNumeric" ? 10 : 16), this.data.characterReferenceType = void 0) : me = pc(X);
13655
+ re ? (me = c0(W, re === "characterReferenceMarkerNumeric" ? 10 : 16), this.data.characterReferenceType = void 0) : me = pc(W);
13656
13656
  const le = this.stack[this.stack.length - 1];
13657
13657
  le.value += me;
13658
13658
  }
13659
13659
  function he(F) {
13660
- const X = this.stack.pop();
13661
- X.position.end = Un(F.end);
13660
+ const W = this.stack.pop();
13661
+ W.position.end = Un(F.end);
13662
13662
  }
13663
13663
  function Ie(F) {
13664
13664
  R.call(this, F);
13665
- const X = this.stack[this.stack.length - 1];
13666
- X.url = this.sliceSerialize(F);
13665
+ const W = this.stack[this.stack.length - 1];
13666
+ W.url = this.sliceSerialize(F);
13667
13667
  }
13668
13668
  function Re(F) {
13669
13669
  R.call(this, F);
13670
- const X = this.stack[this.stack.length - 1];
13671
- X.url = "mailto:" + this.sliceSerialize(F);
13670
+ const W = this.stack[this.stack.length - 1];
13671
+ W.url = "mailto:" + this.sliceSerialize(F);
13672
13672
  }
13673
13673
  function yt() {
13674
13674
  return {
@@ -13749,7 +13749,7 @@ function VA(e) {
13749
13749
  children: []
13750
13750
  };
13751
13751
  }
13752
- function ee(F) {
13752
+ function te(F) {
13753
13753
  return {
13754
13754
  type: "listItem",
13755
13755
  spread: F._spread,
@@ -13757,7 +13757,7 @@ function VA(e) {
13757
13757
  children: []
13758
13758
  };
13759
13759
  }
13760
- function oe() {
13760
+ function ae() {
13761
13761
  return {
13762
13762
  type: "paragraph",
13763
13763
  children: []
@@ -15979,7 +15979,7 @@ function px(e, t) {
15979
15979
  components: i,
15980
15980
  ignoreInvalidStyle: !0,
15981
15981
  jsx: y,
15982
- jsxs: te,
15982
+ jsxs: ee,
15983
15983
  passKeys: !0,
15984
15984
  passNode: !0
15985
15985
  });
@@ -16933,10 +16933,10 @@ function Jx(e, t, n, r) {
16933
16933
  }
16934
16934
  return -1;
16935
16935
  }
16936
- var z;
16936
+ var V;
16937
16937
  (function(e) {
16938
16938
  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/";
16939
- })(z || (z = {}));
16939
+ })(V || (V = {}));
16940
16940
  var dr;
16941
16941
  (function(e) {
16942
16942
  e.TYPE = "type", e.ACTION = "action", e.ENCODING = "encoding", e.PROMPT = "prompt", e.NAME = "name", e.COLOR = "color", e.FACE = "face", e.SIZE = "size";
@@ -17083,7 +17083,7 @@ function oi(e) {
17083
17083
  return (t = Zx.get(e)) !== null && t !== void 0 ? t : f.UNKNOWN;
17084
17084
  }
17085
17085
  const Y = f, eN = {
17086
- [z.HTML]: /* @__PURE__ */ new Set([
17086
+ [V.HTML]: /* @__PURE__ */ new Set([
17087
17087
  Y.ADDRESS,
17088
17088
  Y.APPLET,
17089
17089
  Y.AREA,
@@ -17166,11 +17166,11 @@ const Y = f, eN = {
17166
17166
  Y.WBR,
17167
17167
  Y.XMP
17168
17168
  ]),
17169
- [z.MATHML]: /* @__PURE__ */ new Set([Y.MI, Y.MO, Y.MN, Y.MS, Y.MTEXT, Y.ANNOTATION_XML]),
17170
- [z.SVG]: /* @__PURE__ */ new Set([Y.TITLE, Y.FOREIGN_OBJECT, Y.DESC]),
17171
- [z.XLINK]: /* @__PURE__ */ new Set(),
17172
- [z.XML]: /* @__PURE__ */ new Set(),
17173
- [z.XMLNS]: /* @__PURE__ */ new Set()
17169
+ [V.MATHML]: /* @__PURE__ */ new Set([Y.MI, Y.MO, Y.MN, Y.MS, Y.MTEXT, Y.ANNOTATION_XML]),
17170
+ [V.SVG]: /* @__PURE__ */ new Set([Y.TITLE, Y.FOREIGN_OBJECT, Y.DESC]),
17171
+ [V.XLINK]: /* @__PURE__ */ new Set(),
17172
+ [V.XML]: /* @__PURE__ */ new Set(),
17173
+ [V.XMLNS]: /* @__PURE__ */ new Set()
17174
17174
  }, bu = /* @__PURE__ */ new Set([Y.H1, Y.H2, Y.H3, Y.H4, Y.H5, Y.H6]);
17175
17175
  M.STYLE, M.SCRIPT, M.XMP, M.IFRAME, M.NOEMBED, M.NOFRAMES, M.PLAINTEXT;
17176
17176
  var A;
@@ -19136,7 +19136,7 @@ class dN {
19136
19136
  }
19137
19137
  //Update current element
19138
19138
  _isInTemplate() {
19139
- return this.currentTagId === f.TEMPLATE && this.treeAdapter.getNamespaceURI(this.current) === z.HTML;
19139
+ return this.currentTagId === f.TEMPLATE && this.treeAdapter.getNamespaceURI(this.current) === V.HTML;
19140
19140
  }
19141
19141
  _updateCurrentElement() {
19142
19142
  this.current = this.items[this.stackTop], this.currentTagId = this.tagIDs[this.stackTop];
@@ -19161,7 +19161,7 @@ class dN {
19161
19161
  let n = this.stackTop + 1;
19162
19162
  do
19163
19163
  n = this.tagIDs.lastIndexOf(t, n - 1);
19164
- while (n > 0 && this.treeAdapter.getNamespaceURI(this.items[n]) !== z.HTML);
19164
+ while (n > 0 && this.treeAdapter.getNamespaceURI(this.items[n]) !== V.HTML);
19165
19165
  this.shortenToLength(Math.max(n, 0));
19166
19166
  }
19167
19167
  shortenToLength(t) {
@@ -19179,10 +19179,10 @@ class dN {
19179
19179
  this.shortenToLength(Math.max(r, 0));
19180
19180
  }
19181
19181
  popUntilNumberedHeaderPopped() {
19182
- this.popUntilPopped(bu, z.HTML);
19182
+ this.popUntilPopped(bu, V.HTML);
19183
19183
  }
19184
19184
  popUntilTableCellPopped() {
19185
- this.popUntilPopped(lN, z.HTML);
19185
+ this.popUntilPopped(lN, V.HTML);
19186
19186
  }
19187
19187
  popAllUpToHtmlElement() {
19188
19188
  this.tmplCount = 0, this.shortenToLength(1);
@@ -19198,13 +19198,13 @@ class dN {
19198
19198
  this.shortenToLength(r + 1);
19199
19199
  }
19200
19200
  clearBackToTableContext() {
19201
- this.clearBackTo(cN, z.HTML);
19201
+ this.clearBackTo(cN, V.HTML);
19202
19202
  }
19203
19203
  clearBackToTableBodyContext() {
19204
- this.clearBackTo(uN, z.HTML);
19204
+ this.clearBackTo(uN, V.HTML);
19205
19205
  }
19206
19206
  clearBackToTableRowContext() {
19207
- this.clearBackTo(aN, z.HTML);
19207
+ this.clearBackTo(aN, V.HTML);
19208
19208
  }
19209
19209
  remove(t) {
19210
19210
  const n = this._indexOf(t);
@@ -19229,19 +19229,19 @@ class dN {
19229
19229
  for (let r = this.stackTop; r >= 0; r--) {
19230
19230
  const i = this.tagIDs[r];
19231
19231
  switch (this.treeAdapter.getNamespaceURI(this.items[r])) {
19232
- case z.HTML: {
19232
+ case V.HTML: {
19233
19233
  if (i === t)
19234
19234
  return !0;
19235
19235
  if (n.has(i))
19236
19236
  return !1;
19237
19237
  break;
19238
19238
  }
19239
- case z.SVG: {
19239
+ case V.SVG: {
19240
19240
  if (qd.has(i))
19241
19241
  return !1;
19242
19242
  break;
19243
19243
  }
19244
- case z.MATHML: {
19244
+ case V.MATHML: {
19245
19245
  if (Vd.has(i))
19246
19246
  return !1;
19247
19247
  break;
@@ -19263,19 +19263,19 @@ class dN {
19263
19263
  for (let t = this.stackTop; t >= 0; t--) {
19264
19264
  const n = this.tagIDs[t];
19265
19265
  switch (this.treeAdapter.getNamespaceURI(this.items[t])) {
19266
- case z.HTML: {
19266
+ case V.HTML: {
19267
19267
  if (bu.has(n))
19268
19268
  return !0;
19269
19269
  if (co.has(n))
19270
19270
  return !1;
19271
19271
  break;
19272
19272
  }
19273
- case z.SVG: {
19273
+ case V.SVG: {
19274
19274
  if (qd.has(n))
19275
19275
  return !1;
19276
19276
  break;
19277
19277
  }
19278
- case z.MATHML: {
19278
+ case V.MATHML: {
19279
19279
  if (Vd.has(n))
19280
19280
  return !1;
19281
19281
  break;
@@ -19286,7 +19286,7 @@ class dN {
19286
19286
  }
19287
19287
  hasInTableScope(t) {
19288
19288
  for (let n = this.stackTop; n >= 0; n--)
19289
- if (this.treeAdapter.getNamespaceURI(this.items[n]) === z.HTML)
19289
+ if (this.treeAdapter.getNamespaceURI(this.items[n]) === V.HTML)
19290
19290
  switch (this.tagIDs[n]) {
19291
19291
  case t:
19292
19292
  return !0;
@@ -19298,7 +19298,7 @@ class dN {
19298
19298
  }
19299
19299
  hasTableBodyContextInTableScope() {
19300
19300
  for (let t = this.stackTop; t >= 0; t--)
19301
- if (this.treeAdapter.getNamespaceURI(this.items[t]) === z.HTML)
19301
+ if (this.treeAdapter.getNamespaceURI(this.items[t]) === V.HTML)
19302
19302
  switch (this.tagIDs[t]) {
19303
19303
  case f.TBODY:
19304
19304
  case f.THEAD:
@@ -19312,7 +19312,7 @@ class dN {
19312
19312
  }
19313
19313
  hasInSelectScope(t) {
19314
19314
  for (let n = this.stackTop; n >= 0; n--)
19315
- if (this.treeAdapter.getNamespaceURI(this.items[n]) === z.HTML)
19315
+ if (this.treeAdapter.getNamespaceURI(this.items[n]) === V.HTML)
19316
19316
  switch (this.tagIDs[n]) {
19317
19317
  case t:
19318
19318
  return !0;
@@ -19732,17 +19732,17 @@ const Gd = {
19732
19732
  "yChannelSelector",
19733
19733
  "zoomAndPan"
19734
19734
  ].map((e) => [e.toLowerCase(), e])), AN = /* @__PURE__ */ new Map([
19735
- ["xlink:actuate", { prefix: "xlink", name: "actuate", namespace: z.XLINK }],
19736
- ["xlink:arcrole", { prefix: "xlink", name: "arcrole", namespace: z.XLINK }],
19737
- ["xlink:href", { prefix: "xlink", name: "href", namespace: z.XLINK }],
19738
- ["xlink:role", { prefix: "xlink", name: "role", namespace: z.XLINK }],
19739
- ["xlink:show", { prefix: "xlink", name: "show", namespace: z.XLINK }],
19740
- ["xlink:title", { prefix: "xlink", name: "title", namespace: z.XLINK }],
19741
- ["xlink:type", { prefix: "xlink", name: "type", namespace: z.XLINK }],
19742
- ["xml:lang", { prefix: "xml", name: "lang", namespace: z.XML }],
19743
- ["xml:space", { prefix: "xml", name: "space", namespace: z.XML }],
19744
- ["xmlns", { prefix: "", name: "xmlns", namespace: z.XMLNS }],
19745
- ["xmlns:xlink", { prefix: "xmlns", name: "xlink", namespace: z.XMLNS }]
19735
+ ["xlink:actuate", { prefix: "xlink", name: "actuate", namespace: V.XLINK }],
19736
+ ["xlink:arcrole", { prefix: "xlink", name: "arcrole", namespace: V.XLINK }],
19737
+ ["xlink:href", { prefix: "xlink", name: "href", namespace: V.XLINK }],
19738
+ ["xlink:role", { prefix: "xlink", name: "role", namespace: V.XLINK }],
19739
+ ["xlink:show", { prefix: "xlink", name: "show", namespace: V.XLINK }],
19740
+ ["xlink:title", { prefix: "xlink", name: "title", namespace: V.XLINK }],
19741
+ ["xlink:type", { prefix: "xlink", name: "type", namespace: V.XLINK }],
19742
+ ["xml:lang", { prefix: "xml", name: "lang", namespace: V.XML }],
19743
+ ["xml:space", { prefix: "xml", name: "space", namespace: V.XML }],
19744
+ ["xmlns", { prefix: "", name: "xmlns", namespace: V.XMLNS }],
19745
+ ["xmlns:xlink", { prefix: "xmlns", name: "xlink", namespace: V.XMLNS }]
19746
19746
  ]), CN = new Map([
19747
19747
  "altGlyph",
19748
19748
  "altGlyphDef",
@@ -19854,20 +19854,20 @@ function ON(e) {
19854
19854
  t != null && (e.tagName = t, e.tagID = oi(e.tagName));
19855
19855
  }
19856
19856
  function PN(e, t) {
19857
- return t === z.MATHML && (e === f.MI || e === f.MO || e === f.MN || e === f.MS || e === f.MTEXT);
19857
+ return t === V.MATHML && (e === f.MI || e === f.MO || e === f.MN || e === f.MS || e === f.MTEXT);
19858
19858
  }
19859
19859
  function IN(e, t, n) {
19860
- if (t === z.MATHML && e === f.ANNOTATION_XML) {
19860
+ if (t === V.MATHML && e === f.ANNOTATION_XML) {
19861
19861
  for (let r = 0; r < n.length; r++)
19862
19862
  if (n[r].name === dr.ENCODING) {
19863
19863
  const i = n[r].value.toLowerCase();
19864
19864
  return i === Gd.TEXT_HTML || i === Gd.APPLICATION_XML;
19865
19865
  }
19866
19866
  }
19867
- return t === z.SVG && (e === f.FOREIGN_OBJECT || e === f.DESC || e === f.TITLE);
19867
+ return t === V.SVG && (e === f.FOREIGN_OBJECT || e === f.DESC || e === f.TITLE);
19868
19868
  }
19869
19869
  function wN(e, t, n, r) {
19870
- return (!r || r === z.HTML) && IN(e, t, n) || (!r || r === z.MATHML) && PN(e, t);
19870
+ return (!r || r === V.HTML) && IN(e, t, n) || (!r || r === V.MATHML) && PN(e, t);
19871
19871
  }
19872
19872
  const kN = "hidden", RN = 8, LN = 3;
19873
19873
  var N;
@@ -19898,8 +19898,8 @@ class Xd {
19898
19898
  }
19899
19899
  static getFragmentParser(t, n) {
19900
19900
  const r = O(O({}, Wd), n);
19901
- t != null || (t = r.treeAdapter.createElement(M.TEMPLATE, z.HTML, []));
19902
- const i = r.treeAdapter.createElement("documentmock", z.HTML, []), s = new this(r, i, t);
19901
+ t != null || (t = r.treeAdapter.createElement(M.TEMPLATE, V.HTML, []));
19902
+ const i = r.treeAdapter.createElement("documentmock", V.HTML, []), s = new this(r, i, t);
19903
19903
  return s.fragmentContextID === f.TEMPLATE && s.tmplInsertionModeStack.unshift(N.IN_TEMPLATE), s._initTokenizerForFragmentParsing(), s._insertFakeRootElement(), s._resetInsertionMode(), s._findFormInFragmentContext(), s;
19904
19904
  }
19905
19905
  getFragment() {
@@ -19938,12 +19938,12 @@ class Xd {
19938
19938
  }
19939
19939
  }
19940
19940
  _setContextModes(t, n) {
19941
- const r = t === this.document || t && this.treeAdapter.getNamespaceURI(t) === z.HTML;
19941
+ const r = t === this.document || t && this.treeAdapter.getNamespaceURI(t) === V.HTML;
19942
19942
  this.currentNotInHTML = !r, this.tokenizer.inForeignNode = !r && t !== void 0 && n !== void 0 && !this._isIntegrationPoint(n, t);
19943
19943
  }
19944
19944
  /** @protected */
19945
19945
  _switchToTextParsing(t, n) {
19946
- this._insertElement(t, z.HTML), this.tokenizer.state = n, this.originalInsertionMode = this.insertionMode, this.insertionMode = N.TEXT;
19946
+ this._insertElement(t, V.HTML), this.tokenizer.state = n, this.originalInsertionMode = this.insertionMode, this.insertionMode = N.TEXT;
19947
19947
  }
19948
19948
  switchToPlaintextParsing() {
19949
19949
  this.insertionMode = N.TEXT, this.originalInsertionMode = N.IN_BODY, this.tokenizer.state = Xe.PLAINTEXT;
@@ -19965,7 +19965,7 @@ class Xd {
19965
19965
  }
19966
19966
  }
19967
19967
  _initTokenizerForFragmentParsing() {
19968
- if (!(!this.fragmentContext || this.treeAdapter.getNamespaceURI(this.fragmentContext) !== z.HTML))
19968
+ if (!(!this.fragmentContext || this.treeAdapter.getNamespaceURI(this.fragmentContext) !== V.HTML))
19969
19969
  switch (this.fragmentContextID) {
19970
19970
  case f.TITLE:
19971
19971
  case f.TEXTAREA: {
@@ -20031,17 +20031,17 @@ class Xd {
20031
20031
  }
20032
20032
  /** @protected */
20033
20033
  _insertFakeElement(t, n) {
20034
- const r = this.treeAdapter.createElement(t, z.HTML, []);
20034
+ const r = this.treeAdapter.createElement(t, V.HTML, []);
20035
20035
  this._attachElementToTree(r, null), this.openElements.push(r, n);
20036
20036
  }
20037
20037
  /** @protected */
20038
20038
  _insertTemplate(t) {
20039
- const n = this.treeAdapter.createElement(t.tagName, z.HTML, t.attrs), r = this.treeAdapter.createDocumentFragment();
20039
+ const n = this.treeAdapter.createElement(t.tagName, V.HTML, t.attrs), r = this.treeAdapter.createDocumentFragment();
20040
20040
  this.treeAdapter.setTemplateContent(n, r), this._attachElementToTree(n, t.location), this.openElements.push(n, t.tagID), this.options.sourceCodeLocationInfo && this.treeAdapter.setNodeSourceCodeLocation(r, null);
20041
20041
  }
20042
20042
  /** @protected */
20043
20043
  _insertFakeRootElement() {
20044
- const t = this.treeAdapter.createElement(M.HTML, z.HTML, []);
20044
+ const t = this.treeAdapter.createElement(M.HTML, V.HTML, []);
20045
20045
  this.options.sourceCodeLocationInfo && this.treeAdapter.setNodeSourceCodeLocation(t, null), this.treeAdapter.appendChild(this.openElements.current, t), this.openElements.push(t, f.HTML);
20046
20046
  }
20047
20047
  /** @protected */
@@ -20090,11 +20090,11 @@ class Xd {
20090
20090
  if (!this.currentNotInHTML)
20091
20091
  return !1;
20092
20092
  let n, r;
20093
- return this.openElements.stackTop === 0 && this.fragmentContext ? (n = this.fragmentContext, r = this.fragmentContextID) : { current: n, currentTagId: r } = this.openElements, t.tagID === f.SVG && this.treeAdapter.getTagName(n) === M.ANNOTATION_XML && this.treeAdapter.getNamespaceURI(n) === z.MATHML ? !1 : (
20093
+ return this.openElements.stackTop === 0 && this.fragmentContext ? (n = this.fragmentContext, r = this.fragmentContextID) : { current: n, currentTagId: r } = this.openElements, t.tagID === f.SVG && this.treeAdapter.getTagName(n) === M.ANNOTATION_XML && this.treeAdapter.getNamespaceURI(n) === V.MATHML ? !1 : (
20094
20094
  // Check that `current` is not an integration point for HTML or MathML elements.
20095
20095
  this.tokenizer.inForeignNode || // If it _is_ an integration point, then we might have to check that it is not an HTML
20096
20096
  // integration point.
20097
- (t.tagID === f.MGLYPH || t.tagID === f.MALIGNMARK) && r !== void 0 && !this._isIntegrationPoint(r, n, z.HTML)
20097
+ (t.tagID === f.MGLYPH || t.tagID === f.MALIGNMARK) && r !== void 0 && !this._isIntegrationPoint(r, n, V.HTML)
20098
20098
  );
20099
20099
  }
20100
20100
  /** @protected */
@@ -20255,7 +20255,7 @@ class Xd {
20255
20255
  const n = this.openElements.items[t];
20256
20256
  switch (this.openElements.tagIDs[t]) {
20257
20257
  case f.TEMPLATE: {
20258
- if (this.treeAdapter.getNamespaceURI(n) === z.HTML)
20258
+ if (this.treeAdapter.getNamespaceURI(n) === V.HTML)
20259
20259
  return { parent: this.treeAdapter.getTemplateContent(n), beforeElement: null };
20260
20260
  break;
20261
20261
  }
@@ -20813,7 +20813,7 @@ function UN(e, t, n) {
20813
20813
  e._fosterParentElement(n);
20814
20814
  else {
20815
20815
  const s = e.treeAdapter.getNamespaceURI(t);
20816
- i === f.TEMPLATE && s === z.HTML && (t = e.treeAdapter.getTemplateContent(t)), e.treeAdapter.appendChild(t, n);
20816
+ i === f.TEMPLATE && s === V.HTML && (t = e.treeAdapter.getTemplateContent(t)), e.treeAdapter.appendChild(t, n);
20817
20817
  }
20818
20818
  }
20819
20819
  function HN(e, t, n) {
@@ -20865,7 +20865,7 @@ function Ai(e, t) {
20865
20865
  e._err(t, B.missingDoctype, !0), e.treeAdapter.setDocumentMode(e.document, Wt.QUIRKS), e.insertionMode = N.BEFORE_HTML, e._processToken(t);
20866
20866
  }
20867
20867
  function qN(e, t) {
20868
- t.tagID === f.HTML ? (e._insertElement(t, z.HTML), e.insertionMode = N.BEFORE_HEAD) : Fi(e, t);
20868
+ t.tagID === f.HTML ? (e._insertElement(t, V.HTML), e.insertionMode = N.BEFORE_HEAD) : Fi(e, t);
20869
20869
  }
20870
20870
  function YN(e, t) {
20871
20871
  const n = t.tagID;
@@ -20881,7 +20881,7 @@ function jN(e, t) {
20881
20881
  break;
20882
20882
  }
20883
20883
  case f.HEAD: {
20884
- e._insertElement(t, z.HTML), e.headElement = e.openElements.current, e.insertionMode = N.IN_HEAD;
20884
+ e._insertElement(t, V.HTML), e.headElement = e.openElements.current, e.insertionMode = N.IN_HEAD;
20885
20885
  break;
20886
20886
  }
20887
20887
  default:
@@ -20906,7 +20906,7 @@ function rn(e, t) {
20906
20906
  case f.BGSOUND:
20907
20907
  case f.LINK:
20908
20908
  case f.META: {
20909
- e._appendElement(t, z.HTML), t.ackSelfClosing = !0;
20909
+ e._appendElement(t, V.HTML), t.ackSelfClosing = !0;
20910
20910
  break;
20911
20911
  }
20912
20912
  case f.TITLE: {
@@ -20914,7 +20914,7 @@ function rn(e, t) {
20914
20914
  break;
20915
20915
  }
20916
20916
  case f.NOSCRIPT: {
20917
- e.options.scriptingEnabled ? e._switchToTextParsing(t, Xe.RAWTEXT) : (e._insertElement(t, z.HTML), e.insertionMode = N.IN_HEAD_NO_SCRIPT);
20917
+ e.options.scriptingEnabled ? e._switchToTextParsing(t, Xe.RAWTEXT) : (e._insertElement(t, V.HTML), e.insertionMode = N.IN_HEAD_NO_SCRIPT);
20918
20918
  break;
20919
20919
  }
20920
20920
  case f.NOFRAMES:
@@ -21013,11 +21013,11 @@ function QN(e, t) {
21013
21013
  break;
21014
21014
  }
21015
21015
  case f.BODY: {
21016
- e._insertElement(t, z.HTML), e.framesetOk = !1, e.insertionMode = N.IN_BODY;
21016
+ e._insertElement(t, V.HTML), e.framesetOk = !1, e.insertionMode = N.IN_BODY;
21017
21017
  break;
21018
21018
  }
21019
21019
  case f.FRAMESET: {
21020
- e._insertElement(t, z.HTML), e.insertionMode = N.IN_FRAMESET;
21020
+ e._insertElement(t, V.HTML), e.insertionMode = N.IN_FRAMESET;
21021
21021
  break;
21022
21022
  }
21023
21023
  case f.BASE:
@@ -21103,20 +21103,20 @@ function eO(e, t) {
21103
21103
  }
21104
21104
  function tO(e, t) {
21105
21105
  const n = e.openElements.tryPeekProperlyNestedBodyElement();
21106
- e.framesetOk && n && (e.treeAdapter.detachNode(n), e.openElements.popAllUpToHtmlElement(), e._insertElement(t, z.HTML), e.insertionMode = N.IN_FRAMESET);
21106
+ e.framesetOk && n && (e.treeAdapter.detachNode(n), e.openElements.popAllUpToHtmlElement(), e._insertElement(t, V.HTML), e.insertionMode = N.IN_FRAMESET);
21107
21107
  }
21108
21108
  function nO(e, t) {
21109
- e.openElements.hasInButtonScope(f.P) && e._closePElement(), e._insertElement(t, z.HTML);
21109
+ e.openElements.hasInButtonScope(f.P) && e._closePElement(), e._insertElement(t, V.HTML);
21110
21110
  }
21111
21111
  function rO(e, t) {
21112
- e.openElements.hasInButtonScope(f.P) && e._closePElement(), e.openElements.currentTagId !== void 0 && bu.has(e.openElements.currentTagId) && e.openElements.pop(), e._insertElement(t, z.HTML);
21112
+ e.openElements.hasInButtonScope(f.P) && e._closePElement(), e.openElements.currentTagId !== void 0 && bu.has(e.openElements.currentTagId) && e.openElements.pop(), e._insertElement(t, V.HTML);
21113
21113
  }
21114
21114
  function iO(e, t) {
21115
- e.openElements.hasInButtonScope(f.P) && e._closePElement(), e._insertElement(t, z.HTML), e.skipNextNewLine = !0, e.framesetOk = !1;
21115
+ e.openElements.hasInButtonScope(f.P) && e._closePElement(), e._insertElement(t, V.HTML), e.skipNextNewLine = !0, e.framesetOk = !1;
21116
21116
  }
21117
21117
  function sO(e, t) {
21118
21118
  const n = e.openElements.tmplCount > 0;
21119
- (!e.formElement || n) && (e.openElements.hasInButtonScope(f.P) && e._closePElement(), e._insertElement(t, z.HTML), n || (e.formElement = e.openElements.current));
21119
+ (!e.formElement || n) && (e.openElements.hasInButtonScope(f.P) && e._closePElement(), e._insertElement(t, V.HTML), n || (e.formElement = e.openElements.current));
21120
21120
  }
21121
21121
  function oO(e, t) {
21122
21122
  e.framesetOk = !1;
@@ -21130,51 +21130,51 @@ function oO(e, t) {
21130
21130
  if (i !== f.ADDRESS && i !== f.DIV && i !== f.P && e._isSpecialElement(e.openElements.items[r], i))
21131
21131
  break;
21132
21132
  }
21133
- e.openElements.hasInButtonScope(f.P) && e._closePElement(), e._insertElement(t, z.HTML);
21133
+ e.openElements.hasInButtonScope(f.P) && e._closePElement(), e._insertElement(t, V.HTML);
21134
21134
  }
21135
21135
  function aO(e, t) {
21136
- e.openElements.hasInButtonScope(f.P) && e._closePElement(), e._insertElement(t, z.HTML), e.tokenizer.state = Xe.PLAINTEXT;
21136
+ e.openElements.hasInButtonScope(f.P) && e._closePElement(), e._insertElement(t, V.HTML), e.tokenizer.state = Xe.PLAINTEXT;
21137
21137
  }
21138
21138
  function uO(e, t) {
21139
- e.openElements.hasInScope(f.BUTTON) && (e.openElements.generateImpliedEndTags(), e.openElements.popUntilTagNamePopped(f.BUTTON)), e._reconstructActiveFormattingElements(), e._insertElement(t, z.HTML), e.framesetOk = !1;
21139
+ e.openElements.hasInScope(f.BUTTON) && (e.openElements.generateImpliedEndTags(), e.openElements.popUntilTagNamePopped(f.BUTTON)), e._reconstructActiveFormattingElements(), e._insertElement(t, V.HTML), e.framesetOk = !1;
21140
21140
  }
21141
21141
  function cO(e, t) {
21142
21142
  const n = e.activeFormattingElements.getElementEntryInScopeWithTagName(M.A);
21143
- n && (Cc(e, t), e.openElements.remove(n.element), e.activeFormattingElements.removeEntry(n)), e._reconstructActiveFormattingElements(), e._insertElement(t, z.HTML), e.activeFormattingElements.pushElement(e.openElements.current, t);
21143
+ n && (Cc(e, t), e.openElements.remove(n.element), e.activeFormattingElements.removeEntry(n)), e._reconstructActiveFormattingElements(), e._insertElement(t, V.HTML), e.activeFormattingElements.pushElement(e.openElements.current, t);
21144
21144
  }
21145
21145
  function lO(e, t) {
21146
- e._reconstructActiveFormattingElements(), e._insertElement(t, z.HTML), e.activeFormattingElements.pushElement(e.openElements.current, t);
21146
+ e._reconstructActiveFormattingElements(), e._insertElement(t, V.HTML), e.activeFormattingElements.pushElement(e.openElements.current, t);
21147
21147
  }
21148
21148
  function dO(e, t) {
21149
- e._reconstructActiveFormattingElements(), e.openElements.hasInScope(f.NOBR) && (Cc(e, t), e._reconstructActiveFormattingElements()), e._insertElement(t, z.HTML), e.activeFormattingElements.pushElement(e.openElements.current, t);
21149
+ e._reconstructActiveFormattingElements(), e.openElements.hasInScope(f.NOBR) && (Cc(e, t), e._reconstructActiveFormattingElements()), e._insertElement(t, V.HTML), e.activeFormattingElements.pushElement(e.openElements.current, t);
21150
21150
  }
21151
21151
  function fO(e, t) {
21152
- e._reconstructActiveFormattingElements(), e._insertElement(t, z.HTML), e.activeFormattingElements.insertMarker(), e.framesetOk = !1;
21152
+ e._reconstructActiveFormattingElements(), e._insertElement(t, V.HTML), e.activeFormattingElements.insertMarker(), e.framesetOk = !1;
21153
21153
  }
21154
21154
  function hO(e, t) {
21155
- e.treeAdapter.getDocumentMode(e.document) !== Wt.QUIRKS && e.openElements.hasInButtonScope(f.P) && e._closePElement(), e._insertElement(t, z.HTML), e.framesetOk = !1, e.insertionMode = N.IN_TABLE;
21155
+ e.treeAdapter.getDocumentMode(e.document) !== Wt.QUIRKS && e.openElements.hasInButtonScope(f.P) && e._closePElement(), e._insertElement(t, V.HTML), e.framesetOk = !1, e.insertionMode = N.IN_TABLE;
21156
21156
  }
21157
21157
  function Q0(e, t) {
21158
- e._reconstructActiveFormattingElements(), e._appendElement(t, z.HTML), e.framesetOk = !1, t.ackSelfClosing = !0;
21158
+ e._reconstructActiveFormattingElements(), e._appendElement(t, V.HTML), e.framesetOk = !1, t.ackSelfClosing = !0;
21159
21159
  }
21160
21160
  function J0(e) {
21161
21161
  const t = H0(e, dr.TYPE);
21162
21162
  return t != null && t.toLowerCase() === kN;
21163
21163
  }
21164
21164
  function pO(e, t) {
21165
- e._reconstructActiveFormattingElements(), e._appendElement(t, z.HTML), J0(t) || (e.framesetOk = !1), t.ackSelfClosing = !0;
21165
+ e._reconstructActiveFormattingElements(), e._appendElement(t, V.HTML), J0(t) || (e.framesetOk = !1), t.ackSelfClosing = !0;
21166
21166
  }
21167
21167
  function mO(e, t) {
21168
- e._appendElement(t, z.HTML), t.ackSelfClosing = !0;
21168
+ e._appendElement(t, V.HTML), t.ackSelfClosing = !0;
21169
21169
  }
21170
21170
  function gO(e, t) {
21171
- e.openElements.hasInButtonScope(f.P) && e._closePElement(), e._appendElement(t, z.HTML), e.framesetOk = !1, t.ackSelfClosing = !0;
21171
+ e.openElements.hasInButtonScope(f.P) && e._closePElement(), e._appendElement(t, V.HTML), e.framesetOk = !1, t.ackSelfClosing = !0;
21172
21172
  }
21173
21173
  function EO(e, t) {
21174
21174
  t.tagName = M.IMG, t.tagID = f.IMG, Q0(e, t);
21175
21175
  }
21176
21176
  function bO(e, t) {
21177
- e._insertElement(t, z.HTML), e.skipNextNewLine = !0, e.tokenizer.state = Xe.RCDATA, e.originalInsertionMode = e.insertionMode, e.framesetOk = !1, e.insertionMode = N.TEXT;
21177
+ e._insertElement(t, V.HTML), e.skipNextNewLine = !0, e.tokenizer.state = Xe.RCDATA, e.originalInsertionMode = e.insertionMode, e.framesetOk = !1, e.insertionMode = N.TEXT;
21178
21178
  }
21179
21179
  function TO(e, t) {
21180
21180
  e.openElements.hasInButtonScope(f.P) && e._closePElement(), e._reconstructActiveFormattingElements(), e.framesetOk = !1, e._switchToTextParsing(t, Xe.RAWTEXT);
@@ -21186,25 +21186,25 @@ function Kd(e, t) {
21186
21186
  e._switchToTextParsing(t, Xe.RAWTEXT);
21187
21187
  }
21188
21188
  function _O(e, t) {
21189
- e._reconstructActiveFormattingElements(), e._insertElement(t, z.HTML), e.framesetOk = !1, e.insertionMode = e.insertionMode === N.IN_TABLE || e.insertionMode === N.IN_CAPTION || e.insertionMode === N.IN_TABLE_BODY || e.insertionMode === N.IN_ROW || e.insertionMode === N.IN_CELL ? N.IN_SELECT_IN_TABLE : N.IN_SELECT;
21189
+ e._reconstructActiveFormattingElements(), e._insertElement(t, V.HTML), e.framesetOk = !1, e.insertionMode = e.insertionMode === N.IN_TABLE || e.insertionMode === N.IN_CAPTION || e.insertionMode === N.IN_TABLE_BODY || e.insertionMode === N.IN_ROW || e.insertionMode === N.IN_CELL ? N.IN_SELECT_IN_TABLE : N.IN_SELECT;
21190
21190
  }
21191
21191
  function SO(e, t) {
21192
- e.openElements.currentTagId === f.OPTION && e.openElements.pop(), e._reconstructActiveFormattingElements(), e._insertElement(t, z.HTML);
21192
+ e.openElements.currentTagId === f.OPTION && e.openElements.pop(), e._reconstructActiveFormattingElements(), e._insertElement(t, V.HTML);
21193
21193
  }
21194
21194
  function AO(e, t) {
21195
- e.openElements.hasInScope(f.RUBY) && e.openElements.generateImpliedEndTags(), e._insertElement(t, z.HTML);
21195
+ e.openElements.hasInScope(f.RUBY) && e.openElements.generateImpliedEndTags(), e._insertElement(t, V.HTML);
21196
21196
  }
21197
21197
  function CO(e, t) {
21198
- e.openElements.hasInScope(f.RUBY) && e.openElements.generateImpliedEndTagsWithExclusion(f.RTC), e._insertElement(t, z.HTML);
21198
+ e.openElements.hasInScope(f.RUBY) && e.openElements.generateImpliedEndTagsWithExclusion(f.RTC), e._insertElement(t, V.HTML);
21199
21199
  }
21200
21200
  function xO(e, t) {
21201
- e._reconstructActiveFormattingElements(), j0(t), Ac(t), t.selfClosing ? e._appendElement(t, z.MATHML) : e._insertElement(t, z.MATHML), t.ackSelfClosing = !0;
21201
+ e._reconstructActiveFormattingElements(), j0(t), Ac(t), t.selfClosing ? e._appendElement(t, V.MATHML) : e._insertElement(t, V.MATHML), t.ackSelfClosing = !0;
21202
21202
  }
21203
21203
  function NO(e, t) {
21204
- e._reconstructActiveFormattingElements(), G0(t), Ac(t), t.selfClosing ? e._appendElement(t, z.SVG) : e._insertElement(t, z.SVG), t.ackSelfClosing = !0;
21204
+ e._reconstructActiveFormattingElements(), G0(t), Ac(t), t.selfClosing ? e._appendElement(t, V.SVG) : e._insertElement(t, V.SVG), t.ackSelfClosing = !0;
21205
21205
  }
21206
21206
  function Qd(e, t) {
21207
- e._reconstructActiveFormattingElements(), e._insertElement(t, z.HTML);
21207
+ e._reconstructActiveFormattingElements(), e._insertElement(t, V.HTML);
21208
21208
  }
21209
21209
  function Tt(e, t) {
21210
21210
  switch (t.tagID) {
@@ -21592,16 +21592,16 @@ function wa(e, t) {
21592
21592
  ps(e, t);
21593
21593
  }
21594
21594
  function UO(e, t) {
21595
- e.openElements.clearBackToTableContext(), e.activeFormattingElements.insertMarker(), e._insertElement(t, z.HTML), e.insertionMode = N.IN_CAPTION;
21595
+ e.openElements.clearBackToTableContext(), e.activeFormattingElements.insertMarker(), e._insertElement(t, V.HTML), e.insertionMode = N.IN_CAPTION;
21596
21596
  }
21597
21597
  function HO(e, t) {
21598
- e.openElements.clearBackToTableContext(), e._insertElement(t, z.HTML), e.insertionMode = N.IN_COLUMN_GROUP;
21598
+ e.openElements.clearBackToTableContext(), e._insertElement(t, V.HTML), e.insertionMode = N.IN_COLUMN_GROUP;
21599
21599
  }
21600
21600
  function $O(e, t) {
21601
21601
  e.openElements.clearBackToTableContext(), e._insertFakeElement(M.COLGROUP, f.COLGROUP), e.insertionMode = N.IN_COLUMN_GROUP, Nc(e, t);
21602
21602
  }
21603
21603
  function zO(e, t) {
21604
- e.openElements.clearBackToTableContext(), e._insertElement(t, z.HTML), e.insertionMode = N.IN_TABLE_BODY;
21604
+ e.openElements.clearBackToTableContext(), e._insertElement(t, V.HTML), e.insertionMode = N.IN_TABLE_BODY;
21605
21605
  }
21606
21606
  function VO(e, t) {
21607
21607
  e.openElements.clearBackToTableContext(), e._insertFakeElement(M.TBODY, f.TBODY), e.insertionMode = N.IN_TABLE_BODY, Ho(e, t);
@@ -21610,10 +21610,10 @@ function qO(e, t) {
21610
21610
  e.openElements.hasInTableScope(f.TABLE) && (e.openElements.popUntilTagNamePopped(f.TABLE), e._resetInsertionMode(), e._processStartTag(t));
21611
21611
  }
21612
21612
  function YO(e, t) {
21613
- J0(t) ? e._appendElement(t, z.HTML) : ps(e, t), t.ackSelfClosing = !0;
21613
+ J0(t) ? e._appendElement(t, V.HTML) : ps(e, t), t.ackSelfClosing = !0;
21614
21614
  }
21615
21615
  function jO(e, t) {
21616
- !e.formElement && e.openElements.tmplCount === 0 && (e._insertElement(t, z.HTML), e.formElement = e.openElements.current, e.openElements.pop());
21616
+ !e.formElement && e.openElements.tmplCount === 0 && (e._insertElement(t, V.HTML), e.formElement = e.openElements.current, e.openElements.pop());
21617
21617
  }
21618
21618
  function Gr(e, t) {
21619
21619
  switch (t.tagID) {
@@ -21744,7 +21744,7 @@ function Nc(e, t) {
21744
21744
  break;
21745
21745
  }
21746
21746
  case f.COL: {
21747
- e._appendElement(t, z.HTML), t.ackSelfClosing = !0;
21747
+ e._appendElement(t, V.HTML), t.ackSelfClosing = !0;
21748
21748
  break;
21749
21749
  }
21750
21750
  case f.TEMPLATE: {
@@ -21777,7 +21777,7 @@ function lo(e, t) {
21777
21777
  function Ho(e, t) {
21778
21778
  switch (t.tagID) {
21779
21779
  case f.TR: {
21780
- e.openElements.clearBackToTableBodyContext(), e._insertElement(t, z.HTML), e.insertionMode = N.IN_ROW;
21780
+ e.openElements.clearBackToTableBodyContext(), e._insertElement(t, V.HTML), e.insertionMode = N.IN_ROW;
21781
21781
  break;
21782
21782
  }
21783
21783
  case f.TH:
@@ -21828,7 +21828,7 @@ function $o(e, t) {
21828
21828
  switch (t.tagID) {
21829
21829
  case f.TH:
21830
21830
  case f.TD: {
21831
- e.openElements.clearBackToTableRowContext(), e._insertElement(t, z.HTML), e.insertionMode = N.IN_CELL, e.activeFormattingElements.insertMarker();
21831
+ e.openElements.clearBackToTableRowContext(), e._insertElement(t, V.HTML), e.insertionMode = N.IN_CELL, e.activeFormattingElements.insertMarker();
21832
21832
  break;
21833
21833
  }
21834
21834
  case f.CAPTION:
@@ -21910,15 +21910,15 @@ function sm(e, t) {
21910
21910
  break;
21911
21911
  }
21912
21912
  case f.OPTION: {
21913
- e.openElements.currentTagId === f.OPTION && e.openElements.pop(), e._insertElement(t, z.HTML);
21913
+ e.openElements.currentTagId === f.OPTION && e.openElements.pop(), e._insertElement(t, V.HTML);
21914
21914
  break;
21915
21915
  }
21916
21916
  case f.OPTGROUP: {
21917
- e.openElements.currentTagId === f.OPTION && e.openElements.pop(), e.openElements.currentTagId === f.OPTGROUP && e.openElements.pop(), e._insertElement(t, z.HTML);
21917
+ e.openElements.currentTagId === f.OPTION && e.openElements.pop(), e.openElements.currentTagId === f.OPTGROUP && e.openElements.pop(), e._insertElement(t, V.HTML);
21918
21918
  break;
21919
21919
  }
21920
21920
  case f.HR: {
21921
- e.openElements.currentTagId === f.OPTION && e.openElements.pop(), e.openElements.currentTagId === f.OPTGROUP && e.openElements.pop(), e._appendElement(t, z.HTML), t.ackSelfClosing = !0;
21921
+ e.openElements.currentTagId === f.OPTION && e.openElements.pop(), e.openElements.currentTagId === f.OPTGROUP && e.openElements.pop(), e._appendElement(t, V.HTML), t.ackSelfClosing = !0;
21922
21922
  break;
21923
21923
  }
21924
21924
  case f.INPUT:
@@ -22035,11 +22035,11 @@ function rP(e, t) {
22035
22035
  break;
22036
22036
  }
22037
22037
  case f.FRAMESET: {
22038
- e._insertElement(t, z.HTML);
22038
+ e._insertElement(t, V.HTML);
22039
22039
  break;
22040
22040
  }
22041
22041
  case f.FRAME: {
22042
- e._appendElement(t, z.HTML), t.ackSelfClosing = !0;
22042
+ e._appendElement(t, V.HTML), t.ackSelfClosing = !0;
22043
22043
  break;
22044
22044
  }
22045
22045
  case f.NOFRAMES: {
@@ -22091,7 +22091,7 @@ function lP(e, t) {
22091
22091
  e._insertCharacters(t), e.framesetOk = !1;
22092
22092
  }
22093
22093
  function cm(e) {
22094
- for (; e.treeAdapter.getNamespaceURI(e.openElements.current) !== z.HTML && e.openElements.currentTagId !== void 0 && !e._isIntegrationPoint(e.openElements.currentTagId, e.openElements.current); )
22094
+ for (; e.treeAdapter.getNamespaceURI(e.openElements.current) !== V.HTML && e.openElements.currentTagId !== void 0 && !e._isIntegrationPoint(e.openElements.currentTagId, e.openElements.current); )
22095
22095
  e.openElements.pop();
22096
22096
  }
22097
22097
  function dP(e, t) {
@@ -22099,7 +22099,7 @@ function dP(e, t) {
22099
22099
  cm(e), e._startTagOutsideForeignContent(t);
22100
22100
  else {
22101
22101
  const n = e._getAdjustedCurrentElement(), r = e.treeAdapter.getNamespaceURI(n);
22102
- r === z.MATHML ? j0(t) : r === z.SVG && (ON(t), G0(t)), Ac(t), t.selfClosing ? e._appendElement(t, r) : e._insertElement(t, r), t.ackSelfClosing = !0;
22102
+ r === V.MATHML ? j0(t) : r === V.SVG && (ON(t), G0(t)), Ac(t), t.selfClosing ? e._appendElement(t, r) : e._insertElement(t, r), t.ackSelfClosing = !0;
22103
22103
  }
22104
22104
  }
22105
22105
  function fP(e, t) {
@@ -22109,7 +22109,7 @@ function fP(e, t) {
22109
22109
  }
22110
22110
  for (let n = e.openElements.stackTop; n > 0; n--) {
22111
22111
  const r = e.openElements.items[n];
22112
- if (e.treeAdapter.getNamespaceURI(r) === z.HTML) {
22112
+ if (e.treeAdapter.getNamespaceURI(r) === V.HTML) {
22113
22113
  e._endTagOutsideForeignContent(t);
22114
22114
  break;
22115
22115
  }
@@ -22780,10 +22780,10 @@ const bm = ({
22780
22780
  }) => {
22781
22781
  const { connected: i, imageFile: s } = Vt(), { setImageFile: o } = ti(), { logger: a, globalClassName: u, searchConfig: c, features: l } = Ae(), d = Me(null), p = !!(l != null && l.enableImageUpload), h = !!i || !1, m = h ? "connected" : "disconnected", E = t || !h, S = () => s ? new Promise((x, L) => {
22782
22782
  const U = new FileReader();
22783
- U.readAsDataURL(s), U.onload = () => x(U.result), U.onerror = (W) => L(W);
22783
+ U.readAsDataURL(s), U.onload = () => x(U.result), U.onerror = (G) => L(G);
22784
22784
  }) : Promise.resolve(""), g = () => {
22785
22785
  o(null);
22786
- }, b = ae(
22786
+ }, b = ue(
22787
22787
  (x) => {
22788
22788
  const L = x == null ? void 0 : x[0];
22789
22789
  if (L && !E) {
@@ -22801,9 +22801,9 @@ const bm = ({
22801
22801
  if (!t || x.key === "Tab") return;
22802
22802
  (x.key === "Enter" || x.key === "Backspace" || x.key === "Delete" || x.key.length === 1 && !x.metaKey && !x.ctrlKey) && x.preventDefault();
22803
22803
  }, v = (x) => Te(null, null, function* () {
22804
- var W;
22804
+ var G;
22805
22805
  if (x.preventDefault(), E) return;
22806
- const L = (((W = d.current) == null ? void 0 : W.value) || "").trim();
22806
+ const L = (((G = d.current) == null ? void 0 : G.value) || "").trim();
22807
22807
  let U = "";
22808
22808
  try {
22809
22809
  U = yield S();
@@ -22813,7 +22813,7 @@ const bm = ({
22813
22813
  }
22814
22814
  L && (g(), d.current.value = "", r(L, U));
22815
22815
  });
22816
- return /* @__PURE__ */ te(
22816
+ return /* @__PURE__ */ ee(
22817
22817
  "div",
22818
22818
  {
22819
22819
  className: D(
@@ -22833,7 +22833,7 @@ const bm = ({
22833
22833
  onRemove: g
22834
22834
  }
22835
22835
  ),
22836
- /* @__PURE__ */ te(
22836
+ /* @__PURE__ */ ee(
22837
22837
  "form",
22838
22838
  {
22839
22839
  className: D(
@@ -22925,7 +22925,7 @@ const Tm = Dt({
22925
22925
  const n = Ar(), r = () => {
22926
22926
  e(), n();
22927
22927
  };
22928
- return /* @__PURE__ */ te(
22928
+ return /* @__PURE__ */ ee(
22929
22929
  "button",
22930
22930
  {
22931
22931
  className: D(
@@ -23595,13 +23595,13 @@ var fw = (e, t) => {
23595
23595
  }), []);
23596
23596
  };
23597
23597
  function jo(e, t = {}) {
23598
- var $, j, ue, H, V, de;
23598
+ var $, K, ne, H, z, de;
23599
23599
  const n = Ye(() => {
23600
- const { id: K, ids: Q, getRootNode: ie } = t;
23601
- return cw({ id: K, ids: Q, getRootNode: ie });
23602
- }, [t]), r = (...K) => {
23603
- e.debug && console.log(...K);
23604
- }, i = (j = ($ = e.props) == null ? void 0 : $.call(e, { props: Ic(t), scope: n })) != null ? j : t, s = hw(i), o = (ue = e.context) == null ? void 0 : ue.call(e, {
23600
+ const { id: X, ids: Q, getRootNode: se } = t;
23601
+ return cw({ id: X, ids: Q, getRootNode: se });
23602
+ }, [t]), r = (...X) => {
23603
+ e.debug && console.log(...X);
23604
+ }, i = (K = ($ = e.props) == null ? void 0 : $.call(e, { props: Ic(t), scope: n })) != null ? K : t, s = hw(i), o = (ne = e.context) == null ? void 0 : ne.call(e, {
23605
23605
  prop: s,
23606
23606
  bindable: po,
23607
23607
  scope: n,
@@ -23619,22 +23619,22 @@ function jo(e, t = {}) {
23619
23619
  return h();
23620
23620
  }
23621
23621
  }), a = Um(o), u = {
23622
- get(K) {
23622
+ get(X) {
23623
23623
  var Q;
23624
- return (Q = a.current) == null ? void 0 : Q[K].ref.current;
23624
+ return (Q = a.current) == null ? void 0 : Q[X].ref.current;
23625
23625
  },
23626
- set(K, Q) {
23627
- var ie;
23628
- (ie = a.current) == null || ie[K].set(Q);
23626
+ set(X, Q) {
23627
+ var se;
23628
+ (se = a.current) == null || se[X].set(Q);
23629
23629
  },
23630
- initial(K) {
23630
+ initial(X) {
23631
23631
  var Q;
23632
- return (Q = a.current) == null ? void 0 : Q[K].initial;
23632
+ return (Q = a.current) == null ? void 0 : Q[X].initial;
23633
23633
  },
23634
- hash(K) {
23635
- var ie, C;
23636
- const Q = (ie = a.current) == null ? void 0 : ie[K].get();
23637
- return (C = a.current) == null ? void 0 : C[K].hash(Q);
23634
+ hash(X) {
23635
+ var se, C;
23636
+ const Q = (se = a.current) == null ? void 0 : se[X].get();
23637
+ return (C = a.current) == null ? void 0 : C[X].hash(Q);
23638
23638
  }
23639
23639
  }, c = Me(/* @__PURE__ */ new Map()), l = Me(null), d = Me(null), p = Me({ type: "" }), h = () => q(O({}, p.current), {
23640
23640
  current() {
@@ -23644,14 +23644,14 @@ function jo(e, t = {}) {
23644
23644
  return d.current;
23645
23645
  }
23646
23646
  }), m = () => q(O({}, x), {
23647
- matches(...K) {
23648
- return K.includes(x.ref.current);
23647
+ matches(...X) {
23648
+ return X.includes(x.ref.current);
23649
23649
  },
23650
- hasTag(K) {
23651
- var Q, ie;
23652
- return !!((ie = (Q = e.states[x.ref.current]) == null ? void 0 : Q.tags) != null && ie.includes(K));
23650
+ hasTag(X) {
23651
+ var Q, se;
23652
+ return !!((se = (Q = e.states[x.ref.current]) == null ? void 0 : Q.tags) != null && se.includes(X));
23653
23653
  }
23654
- }), E = dw((V = (H = e.refs) == null ? void 0 : H.call(e, { prop: s, context: u })) != null ? V : {}), S = () => ({
23654
+ }), E = dw((z = (H = e.refs) == null ? void 0 : H.call(e, { prop: s, context: u })) != null ? z : {}), S = () => ({
23655
23655
  state: m(),
23656
23656
  context: u,
23657
23657
  event: h(),
@@ -23665,38 +23665,38 @@ function jo(e, t = {}) {
23665
23665
  flush: cf,
23666
23666
  scope: n,
23667
23667
  choose: k
23668
- }), g = (K) => {
23669
- const Q = Br(K) ? K(S()) : K;
23668
+ }), g = (X) => {
23669
+ const Q = Br(X) ? X(S()) : X;
23670
23670
  if (!Q) return;
23671
- const ie = Q.map((C) => {
23672
- var se, P;
23673
- const re = (P = (se = e.implementations) == null ? void 0 : se.actions) == null ? void 0 : P[C];
23674
- return re || Su(`[zag-js] No implementation found for action "${JSON.stringify(C)}"`), re;
23671
+ const se = Q.map((C) => {
23672
+ var oe, P;
23673
+ const ie = (P = (oe = e.implementations) == null ? void 0 : oe.actions) == null ? void 0 : P[C];
23674
+ return ie || Su(`[zag-js] No implementation found for action "${JSON.stringify(C)}"`), ie;
23675
23675
  });
23676
- for (const C of ie)
23676
+ for (const C of se)
23677
23677
  C == null || C(S());
23678
- }, b = (K) => {
23679
- var Q, ie;
23680
- return Br(K) ? K(S()) : (ie = (Q = e.implementations) == null ? void 0 : Q.guards) == null ? void 0 : ie[K](S());
23681
- }, T = (K) => {
23682
- const Q = Br(K) ? K(S()) : K;
23678
+ }, b = (X) => {
23679
+ var Q, se;
23680
+ return Br(X) ? X(S()) : (se = (Q = e.implementations) == null ? void 0 : Q.guards) == null ? void 0 : se[X](S());
23681
+ }, T = (X) => {
23682
+ const Q = Br(X) ? X(S()) : X;
23683
23683
  if (!Q) return;
23684
- const ie = Q.map((re) => {
23684
+ const se = Q.map((ie) => {
23685
23685
  var P, Se;
23686
- const se = (Se = (P = e.implementations) == null ? void 0 : P.effects) == null ? void 0 : Se[re];
23687
- return se || Su(`[zag-js] No implementation found for effect "${JSON.stringify(re)}"`), se;
23686
+ const oe = (Se = (P = e.implementations) == null ? void 0 : P.effects) == null ? void 0 : Se[ie];
23687
+ return oe || Su(`[zag-js] No implementation found for effect "${JSON.stringify(ie)}"`), oe;
23688
23688
  }), C = [];
23689
- for (const re of ie) {
23690
- const se = re == null ? void 0 : re(S());
23691
- se && C.push(se);
23692
- }
23693
- return () => C.forEach((re) => re == null ? void 0 : re());
23694
- }, k = (K) => UP(K).find((Q) => {
23695
- let ie = !Q.guard;
23696
- return Xs(Q.guard) ? ie = !!b(Q.guard) : Br(Q.guard) && (ie = Q.guard(S())), ie;
23697
- }), v = (K) => {
23689
+ for (const ie of se) {
23690
+ const oe = ie == null ? void 0 : ie(S());
23691
+ oe && C.push(oe);
23692
+ }
23693
+ return () => C.forEach((ie) => ie == null ? void 0 : ie());
23694
+ }, k = (X) => UP(X).find((Q) => {
23695
+ let se = !Q.guard;
23696
+ return Xs(Q.guard) ? se = !!b(Q.guard) : Br(Q.guard) && (se = Q.guard(S())), se;
23697
+ }), v = (X) => {
23698
23698
  aI(e.computed, () => "[zag-js] No computed object found on machine");
23699
- const Q = e.computed[K];
23699
+ const Q = e.computed[X];
23700
23700
  return Q({
23701
23701
  context: u,
23702
23702
  event: h(),
@@ -23707,56 +23707,56 @@ function jo(e, t = {}) {
23707
23707
  });
23708
23708
  }, x = po(() => ({
23709
23709
  defaultValue: e.initialState({ prop: s }),
23710
- onChange(K, Q) {
23711
- var C, re, se, P;
23710
+ onChange(X, Q) {
23711
+ var C, ie, oe, P;
23712
23712
  if (Q) {
23713
23713
  const Se = c.current.get(Q);
23714
23714
  Se == null || Se(), c.current.delete(Q);
23715
23715
  }
23716
- Q && g((C = e.states[Q]) == null ? void 0 : C.exit), g((re = l.current) == null ? void 0 : re.actions);
23717
- const ie = T((se = e.states[K]) == null ? void 0 : se.effects);
23718
- if (ie && c.current.set(K, ie), Q === La) {
23716
+ Q && g((C = e.states[Q]) == null ? void 0 : C.exit), g((ie = l.current) == null ? void 0 : ie.actions);
23717
+ const se = T((oe = e.states[X]) == null ? void 0 : oe.effects);
23718
+ if (se && c.current.set(X, se), Q === La) {
23719
23719
  g(e.entry);
23720
23720
  const Se = T(e.effects);
23721
23721
  Se && c.current.set(La, Se);
23722
23722
  }
23723
- g((P = e.states[K]) == null ? void 0 : P.entry);
23723
+ g((P = e.states[X]) == null ? void 0 : P.entry);
23724
23724
  }
23725
23725
  })), L = Me(void 0), U = Me(Dr.NotStarted);
23726
23726
  Bm(() => {
23727
23727
  queueMicrotask(() => {
23728
- var re;
23729
- const ie = U.current === Dr.Started;
23730
- U.current = Dr.Started, r(ie ? "rehydrating..." : "initializing...");
23731
- const C = (re = L.current) != null ? re : x.initial;
23732
- x.invoke(C, ie ? x.get() : La);
23728
+ var ie;
23729
+ const se = U.current === Dr.Started;
23730
+ U.current = Dr.Started, r(se ? "rehydrating..." : "initializing...");
23731
+ const C = (ie = L.current) != null ? ie : x.initial;
23732
+ x.invoke(C, se ? x.get() : La);
23733
23733
  });
23734
- const K = c.current, Q = x.ref.current;
23734
+ const X = c.current, Q = x.ref.current;
23735
23735
  return () => {
23736
- r("unmounting..."), L.current = Q, U.current = Dr.Stopped, K.forEach((ie) => ie == null ? void 0 : ie()), c.current = /* @__PURE__ */ new Map(), l.current = null, queueMicrotask(() => {
23736
+ r("unmounting..."), L.current = Q, U.current = Dr.Stopped, X.forEach((se) => se == null ? void 0 : se()), c.current = /* @__PURE__ */ new Map(), l.current = null, queueMicrotask(() => {
23737
23737
  g(e.exit);
23738
23738
  });
23739
23739
  };
23740
23740
  }, []);
23741
- const W = () => "ref" in x ? x.ref.current : x.get(), R = (K) => {
23741
+ const G = () => "ref" in x ? x.ref.current : x.get(), R = (X) => {
23742
23742
  queueMicrotask(() => {
23743
23743
  var P, Se, Be, Pe, he;
23744
23744
  if (U.current !== Dr.Started) return;
23745
- d.current = p.current, p.current = K;
23746
- let Q = W();
23747
- const ie = (
23745
+ d.current = p.current, p.current = X;
23746
+ let Q = G();
23747
+ const se = (
23748
23748
  // @ts-ignore
23749
- (Be = (P = e.states[Q].on) == null ? void 0 : P[K.type]) != null ? Be : (
23749
+ (Be = (P = e.states[Q].on) == null ? void 0 : P[X.type]) != null ? Be : (
23750
23750
  // @ts-ignore
23751
- (Se = e.on) == null ? void 0 : Se[K.type]
23751
+ (Se = e.on) == null ? void 0 : Se[X.type]
23752
23752
  )
23753
- ), C = k(ie);
23753
+ ), C = k(se);
23754
23754
  if (!C) return;
23755
23755
  l.current = C;
23756
- const re = (Pe = C.target) != null ? Pe : Q;
23757
- r("transition", K.type, C.target || Q, `(${C.actions})`);
23758
- const se = re !== Q;
23759
- se ? Du(() => x.set(re)) : C.reenter && !se ? x.invoke(Q, Q) : g((he = C.actions) != null ? he : []);
23756
+ const ie = (Pe = C.target) != null ? Pe : Q;
23757
+ r("transition", X.type, C.target || Q, `(${C.actions})`);
23758
+ const oe = ie !== Q;
23759
+ oe ? Du(() => x.set(ie)) : C.reenter && !oe ? x.invoke(Q, Q) : g((he = C.actions) != null ? he : []);
23760
23760
  });
23761
23761
  };
23762
23762
  return (de = e.watch) == null || de.call(e, S()), {
@@ -24043,7 +24043,7 @@ function ws(e) {
24043
24043
  di()(["onExitComplete", "present", "immediate"]);
24044
24044
  function yw(e, t = {}) {
24045
24045
  const { sync: n = !1 } = t, r = _w(e);
24046
- return ae(
24046
+ return ue(
24047
24047
  (...i) => {
24048
24048
  var s;
24049
24049
  return n ? queueMicrotask(() => {
@@ -24372,14 +24372,14 @@ const Lw = 50, vw = (e, t, n) => Te(null, null, function* () {
24372
24372
  }, m = Hc(s), E = Uc(m), S = yield a.getDimensions(l), g = m === "y", b = g ? "top" : "left", T = g ? "bottom" : "right", k = g ? "clientHeight" : "clientWidth", v = o.reference[E] + o.reference[m] - h[m] - o.floating[E], x = h[m] - o.reference[m], L = yield a.getOffsetParent == null ? void 0 : a.getOffsetParent(l);
24373
24373
  let U = L ? L[k] : 0;
24374
24374
  (!U || !(yield a.isElement == null ? void 0 : a.isElement(L))) && (U = u.floating[k] || o.floating[E]);
24375
- const W = v / 2 - x / 2, R = U / 2 - S[E] / 2 - 1, $ = jn(p[b], R), j = jn(p[T], R), ue = U - S[E] - j, H = U / 2 - S[E] / 2 + W, V = qm($, H, ue), de = !c.arrow && fi(s) != null && H !== V && o.reference[E] / 2 - (H < $ ? $ : j) - S[E] / 2 < 0, K = de ? H < $ ? H - $ : H - ue : 0;
24375
+ const G = v / 2 - x / 2, R = U / 2 - S[E] / 2 - 1, $ = jn(p[b], R), K = jn(p[T], R), ne = U - S[E] - K, H = U / 2 - S[E] / 2 + G, z = qm($, H, ne), de = !c.arrow && fi(s) != null && H !== z && o.reference[E] / 2 - (H < $ ? $ : K) - S[E] / 2 < 0, X = de ? H < $ ? H - $ : H - ne : 0;
24376
24376
  return {
24377
- [m]: h[m] + K,
24377
+ [m]: h[m] + X,
24378
24378
  data: O({
24379
- [m]: V,
24380
- centerOffset: H - V - K
24379
+ [m]: z,
24380
+ centerOffset: H - z - X
24381
24381
  }, de && {
24382
- alignmentOffset: K
24382
+ alignmentOffset: X
24383
24383
  }),
24384
24384
  reset: de
24385
24385
  };
@@ -24399,14 +24399,14 @@ const Lw = 50, vw = (e, t, n) => Te(null, null, function* () {
24399
24399
  initialPlacement: u,
24400
24400
  platform: c,
24401
24401
  elements: l
24402
- } = n, V = Rn(e, n), {
24402
+ } = n, z = Rn(e, n), {
24403
24403
  mainAxis: d = !0,
24404
24404
  crossAxis: p = !0,
24405
24405
  fallbackPlacements: h,
24406
24406
  fallbackStrategy: m = "bestFit",
24407
24407
  fallbackAxisSideDirection: E = "none",
24408
24408
  flipAlignment: S = !0
24409
- } = V, g = ft(V, [
24409
+ } = z, g = ft(z, [
24410
24410
  "mainAxis",
24411
24411
  "crossAxis",
24412
24412
  "fallbackPlacements",
@@ -24418,19 +24418,19 @@ const Lw = 50, vw = (e, t, n) => Te(null, null, function* () {
24418
24418
  return {};
24419
24419
  const b = Gn(s), T = dn(u), k = Gn(u) === u, v = yield c.isRTL == null ? void 0 : c.isRTL(l.floating), x = h || (k || !S ? [go(u)] : Nw(u)), L = E !== "none";
24420
24420
  !h && L && x.push(...ww(u, S, E, v));
24421
- const U = [u, ...x], W = yield c.detectOverflow(n, g), R = [];
24421
+ const U = [u, ...x], G = yield c.detectOverflow(n, g), R = [];
24422
24422
  let $ = ((i = o.flip) == null ? void 0 : i.overflows) || [];
24423
- if (d && R.push(W[b]), p) {
24423
+ if (d && R.push(G[b]), p) {
24424
24424
  const de = xw(s, a, v);
24425
- R.push(W[de[0]], W[de[1]]);
24425
+ R.push(G[de[0]], G[de[1]]);
24426
24426
  }
24427
24427
  if ($ = [...$, {
24428
24428
  placement: s,
24429
24429
  overflows: R
24430
24430
  }], !R.every((de) => de <= 0)) {
24431
- var j, ue;
24432
- const de = (((j = o.flip) == null ? void 0 : j.index) || 0) + 1, K = U[de];
24433
- if (K && (!(p === "alignment" ? T !== dn(K) : !1) || // We leave the current main axis only if every placement on that axis
24431
+ var K, ne;
24432
+ const de = (((K = o.flip) == null ? void 0 : K.index) || 0) + 1, X = U[de];
24433
+ if (X && (!(p === "alignment" ? T !== dn(X) : !1) || // We leave the current main axis only if every placement on that axis
24434
24434
  // overflows the main axis.
24435
24435
  $.every((C) => dn(C.placement) === T ? C.overflows[0] > 0 : !0)))
24436
24436
  return {
@@ -24439,24 +24439,24 @@ const Lw = 50, vw = (e, t, n) => Te(null, null, function* () {
24439
24439
  overflows: $
24440
24440
  },
24441
24441
  reset: {
24442
- placement: K
24442
+ placement: X
24443
24443
  }
24444
24444
  };
24445
- let Q = (ue = $.filter((ie) => ie.overflows[0] <= 0).sort((ie, C) => ie.overflows[1] - C.overflows[1])[0]) == null ? void 0 : ue.placement;
24445
+ let Q = (ne = $.filter((se) => se.overflows[0] <= 0).sort((se, C) => se.overflows[1] - C.overflows[1])[0]) == null ? void 0 : ne.placement;
24446
24446
  if (!Q)
24447
24447
  switch (m) {
24448
24448
  case "bestFit": {
24449
24449
  var H;
24450
- const ie = (H = $.filter((C) => {
24450
+ const se = (H = $.filter((C) => {
24451
24451
  if (L) {
24452
- const re = dn(C.placement);
24453
- return re === T || // Create a bias to the `y` side axis due to horizontal
24452
+ const ie = dn(C.placement);
24453
+ return ie === T || // Create a bias to the `y` side axis due to horizontal
24454
24454
  // reading directions favoring greater width.
24455
- re === "y";
24455
+ ie === "y";
24456
24456
  }
24457
24457
  return !0;
24458
- }).map((C) => [C.placement, C.overflows.filter((re) => re > 0).reduce((re, se) => re + se, 0)]).sort((C, re) => C[1] - re[1])[0]) == null ? void 0 : H[0];
24459
- ie && (Q = ie);
24458
+ }).map((C) => [C.placement, C.overflows.filter((ie) => ie > 0).reduce((ie, oe) => ie + oe, 0)]).sort((C, ie) => C[1] - ie[1])[0]) == null ? void 0 : H[0];
24459
+ se && (Q = se);
24460
24460
  break;
24461
24461
  }
24462
24462
  case "initialPlacement":
@@ -24706,8 +24706,8 @@ const Uw = function(e) {
24706
24706
  availableWidth: U,
24707
24707
  availableHeight: L
24708
24708
  }));
24709
- const W = yield s.getDimensions(o.floating);
24710
- return h !== W.width || m !== W.height ? {
24709
+ const G = yield s.getDimensions(o.floating);
24710
+ return h !== G.width || m !== G.height ? {
24711
24711
  reset: {
24712
24712
  rects: !0
24713
24713
  }
@@ -25254,8 +25254,8 @@ function _3(e, t) {
25254
25254
  return {
25255
25255
  name: "transformOrigin",
25256
25256
  fn(n) {
25257
- var W, R, $, j, ue;
25258
- const { elements: r, middlewareData: i, placement: s, rects: o, y: a } = n, u = s.split("-")[0], c = y3(u), l = ((W = i.arrow) == null ? void 0 : W.x) || 0, d = ((R = i.arrow) == null ? void 0 : R.y) || 0, p = (t == null ? void 0 : t.clientWidth) || 0, h = (t == null ? void 0 : t.clientHeight) || 0, m = l + p / 2, E = d + h / 2, S = Math.abs((($ = i.shift) == null ? void 0 : $.y) || 0), g = o.reference.height / 2, b = h / 2, T = (ue = (j = e.offset) == null ? void 0 : j.mainAxis) != null ? ue : e.gutter, k = typeof T == "number" ? T + b : T != null ? T : b, v = S > k, x = {
25257
+ var G, R, $, K, ne;
25258
+ const { elements: r, middlewareData: i, placement: s, rects: o, y: a } = n, u = s.split("-")[0], c = y3(u), l = ((G = i.arrow) == null ? void 0 : G.x) || 0, d = ((R = i.arrow) == null ? void 0 : R.y) || 0, p = (t == null ? void 0 : t.clientWidth) || 0, h = (t == null ? void 0 : t.clientHeight) || 0, m = l + p / 2, E = d + h / 2, S = Math.abs((($ = i.shift) == null ? void 0 : $.y) || 0), g = o.reference.height / 2, b = h / 2, T = (ne = (K = e.offset) == null ? void 0 : K.mainAxis) != null ? ne : e.gutter, k = typeof T == "number" ? T + b : T != null ? T : b, v = S > k, x = {
25259
25259
  top: `${m}px calc(100% + ${k}px)`,
25260
25260
  bottom: `${m}px ${-k}px`,
25261
25261
  left: `calc(100% + ${k}px) ${E}px`,
@@ -25629,14 +25629,14 @@ function W3(e, t) {
25629
25629
  const h = /* @__PURE__ */ new Set(), m = Tr(e == null ? void 0 : e.getRootNode());
25630
25630
  function E(T) {
25631
25631
  function k(v) {
25632
- var W, R;
25633
- const x = o && !rf() ? nt : ($) => $(), L = v != null ? v : T, U = (R = (W = L == null ? void 0 : L.composedPath) == null ? void 0 : W.call(L)) != null ? R : [L == null ? void 0 : L.target];
25632
+ var G, R;
25633
+ const x = o && !rf() ? nt : ($) => $(), L = v != null ? v : T, U = (R = (G = L == null ? void 0 : L.composedPath) == null ? void 0 : G.call(L)) != null ? R : [L == null ? void 0 : L.target];
25634
25634
  x(() => {
25635
25635
  const $ = m ? U[0] : Jt(T);
25636
25636
  if (!(!e || !p(T, $))) {
25637
25637
  if (i || s) {
25638
- const j = _u(i, s);
25639
- e.addEventListener(Sf, j, { once: !0 });
25638
+ const K = _u(i, s);
25639
+ e.addEventListener(Sf, K, { once: !0 });
25640
25640
  }
25641
25641
  xf(e, Sf, {
25642
25642
  bubbles: !1,
@@ -25662,8 +25662,8 @@ function W3(e, t) {
25662
25662
  const v = (U = (L = T == null ? void 0 : T.composedPath) == null ? void 0 : L.call(T)) != null ? U : [T == null ? void 0 : T.target], x = m ? v[0] : Jt(T);
25663
25663
  if (!(!e || !p(T, x))) {
25664
25664
  if (r || s) {
25665
- const W = _u(r, s);
25666
- e.addEventListener(Af, W, { once: !0 });
25665
+ const G = _u(r, s);
25666
+ e.addEventListener(Af, G, { once: !0 });
25667
25667
  }
25668
25668
  xf(e, Af, {
25669
25669
  bubbles: !1,
@@ -26732,10 +26732,10 @@ const Ck = ({
26732
26732
  }) => {
26733
26733
  const [r, i] = Ne(!1), { globalClassName: s } = Ae(), o = (c) => {
26734
26734
  i(c.open);
26735
- }, a = ae(() => {
26735
+ }, a = ue(() => {
26736
26736
  i(!1);
26737
26737
  }, []), u = Ye(() => ({ closeMenu: a }), [a]);
26738
- return /* @__PURE__ */ te(Ek, { open: r, onOpenChange: o, positioning: { placement: "bottom-end" }, children: [
26738
+ return /* @__PURE__ */ ee(Ek, { open: r, onOpenChange: o, positioning: { placement: "bottom-end" }, children: [
26739
26739
  /* @__PURE__ */ y(
26740
26740
  lg,
26741
26741
  {
@@ -27628,13 +27628,13 @@ const zk = 180, Vk = (e) => {
27628
27628
  }, [g, h]);
27629
27629
  const b = Vk(r), T = n + b, k = E > 0 ? (E + b) / T : 1, v = Math.max(1, Math.floor(k));
27630
27630
  if (h === 0) return null;
27631
- const x = h > v, L = Math.ceil(h / v), U = x ? Math.max(1, k) : v, W = u === "circle-arrow";
27632
- return /* @__PURE__ */ te(
27631
+ const x = h > v, L = Math.ceil(h / v), U = x ? Math.max(1, k) : v, G = u === "circle-arrow";
27632
+ return /* @__PURE__ */ ee(
27633
27633
  Sg,
27634
27634
  {
27635
27635
  ref: m,
27636
27636
  className: D(e, t, `${I}-carousel`, {
27637
- [`${I}-carousel--circle-arrow-navigation`]: W
27637
+ [`${I}-carousel--circle-arrow-navigation`]: G
27638
27638
  }),
27639
27639
  slidesPerPage: U,
27640
27640
  slidesPerMove: v,
@@ -27651,10 +27651,10 @@ const zk = 180, Vk = (e) => {
27651
27651
  className: D(e, `${I}-carousel__item-group`, {
27652
27652
  "carousel-row-container": !x
27653
27653
  }),
27654
- children: p.map(({ node: R, key: $ }, j) => /* @__PURE__ */ y(
27654
+ children: p.map(({ node: R, key: $ }, K) => /* @__PURE__ */ y(
27655
27655
  mg,
27656
27656
  {
27657
- index: j,
27657
+ index: K,
27658
27658
  className: D(e, `${I}-carousel__item`),
27659
27659
  children: R
27660
27660
  },
@@ -27662,7 +27662,7 @@ const zk = 180, Vk = (e) => {
27662
27662
  ))
27663
27663
  }
27664
27664
  ),
27665
- a && x && /* @__PURE__ */ te(
27665
+ a && x && /* @__PURE__ */ ee(
27666
27666
  fg,
27667
27667
  {
27668
27668
  className: D(e, `${I}-carousel__control`),
@@ -27672,7 +27672,7 @@ const zk = 180, Vk = (e) => {
27672
27672
  {
27673
27673
  className: D(e, `${I}-carousel__prev-trigger`),
27674
27674
  "aria-label": "Previous slide",
27675
- children: W ? /* @__PURE__ */ y(Hk, { "aria-hidden": "true", size: "16px" }) : /* @__PURE__ */ y(yk, { "aria-hidden": "true", size: "16px" })
27675
+ children: G ? /* @__PURE__ */ y(Hk, { "aria-hidden": "true", size: "16px" }) : /* @__PURE__ */ y(yk, { "aria-hidden": "true", size: "16px" })
27676
27676
  }
27677
27677
  ),
27678
27678
  /* @__PURE__ */ y(
@@ -27680,7 +27680,7 @@ const zk = 180, Vk = (e) => {
27680
27680
  {
27681
27681
  className: D(e, `${I}-carousel__next-trigger`),
27682
27682
  "aria-label": "Next slide",
27683
- children: W ? /* @__PURE__ */ y($k, { "aria-hidden": "true", size: "16px" }) : /* @__PURE__ */ y(_k, { "aria-hidden": "true", size: "16px" })
27683
+ children: G ? /* @__PURE__ */ y($k, { "aria-hidden": "true", size: "16px" }) : /* @__PURE__ */ y(_k, { "aria-hidden": "true", size: "16px" })
27684
27684
  }
27685
27685
  )
27686
27686
  ]
@@ -28142,7 +28142,7 @@ const sR = ({ children: e }) => {
28142
28142
  onClick: s,
28143
28143
  icon: /* @__PURE__ */ y(vf, {})
28144
28144
  }
28145
- ) : /* @__PURE__ */ te(
28145
+ ) : /* @__PURE__ */ ee(
28146
28146
  "button",
28147
28147
  {
28148
28148
  className: D(
@@ -28163,35 +28163,39 @@ const sR = ({ children: e }) => {
28163
28163
  componentType: e,
28164
28164
  globalClassName: t,
28165
28165
  controls: n,
28166
- showClose: r,
28167
- closeButtonAriaLabel: i,
28168
- onClose: s,
28169
- showOverflowMenu: o,
28170
- showPrimaryToggle: a
28166
+ additionalControls: r,
28167
+ showClose: i,
28168
+ closeButtonAriaLabel: s,
28169
+ onClose: o,
28170
+ showOverflowMenu: a,
28171
+ showPrimaryToggle: u
28171
28172
  }) => {
28172
- const u = e === "modal" ? uR : Lg;
28173
- return /* @__PURE__ */ y("div", { className: D(t, `${I}-${e}-controls`), children: n != null ? /* @__PURE__ */ te(Lt, { children: [
28174
- n,
28175
- r && /* @__PURE__ */ y(
28176
- ou,
28177
- {
28178
- className: D(t, `cim-${e}-component`),
28179
- label: i,
28180
- onClick: s
28181
- }
28182
- )
28183
- ] }) : /* @__PURE__ */ te(Lt, { children: [
28184
- o && /* @__PURE__ */ y(aR, { componentType: e }),
28185
- a && /* @__PURE__ */ y(u, { componentType: e, isIcon: !0 }),
28186
- r && /* @__PURE__ */ y(
28187
- ou,
28188
- {
28189
- className: D(t, `cim-${e}-component`),
28190
- label: i,
28191
- onClick: s
28192
- }
28193
- )
28194
- ] }) });
28173
+ const c = e === "modal" ? uR : Lg;
28174
+ return /* @__PURE__ */ ee("div", { className: D(t, `${I}-${e}-controls`), children: [
28175
+ r,
28176
+ n != null ? /* @__PURE__ */ ee(Lt, { children: [
28177
+ n,
28178
+ i && /* @__PURE__ */ y(
28179
+ ou,
28180
+ {
28181
+ className: D(t, `cim-${e}-component`),
28182
+ label: s,
28183
+ onClick: o
28184
+ }
28185
+ )
28186
+ ] }) : /* @__PURE__ */ ee(Lt, { children: [
28187
+ a && /* @__PURE__ */ y(aR, { componentType: e }),
28188
+ u && /* @__PURE__ */ y(c, { componentType: e, isIcon: !0 }),
28189
+ i && /* @__PURE__ */ y(
28190
+ ou,
28191
+ {
28192
+ className: D(t, `cim-${e}-component`),
28193
+ label: s,
28194
+ onClick: o
28195
+ }
28196
+ )
28197
+ ] })
28198
+ ] });
28195
28199
  }, lR = ({
28196
28200
  componentType: e,
28197
28201
  isIcon: t
@@ -28212,7 +28216,7 @@ const sR = ({ children: e }) => {
28212
28216
  icon: /* @__PURE__ */ y(o, {}),
28213
28217
  onClick: s
28214
28218
  }
28215
- ) : /* @__PURE__ */ te(
28219
+ ) : /* @__PURE__ */ ee(
28216
28220
  "button",
28217
28221
  {
28218
28222
  className: D(
@@ -28248,7 +28252,7 @@ const sR = ({ children: e }) => {
28248
28252
  onClick: o,
28249
28253
  icon: /* @__PURE__ */ y(a, {})
28250
28254
  }
28251
- ) : /* @__PURE__ */ te(
28255
+ ) : /* @__PURE__ */ ee(
28252
28256
  "button",
28253
28257
  {
28254
28258
  className: D(
@@ -28276,7 +28280,7 @@ const sR = ({ children: e }) => {
28276
28280
  onClearChat: u,
28277
28281
  onEndConversation: c,
28278
28282
  onDownloadTranscript: l
28279
- }) => t != null || !n ? null : /* @__PURE__ */ te(oR, { componentType: e, children: [
28283
+ }) => t != null || !n ? null : /* @__PURE__ */ ee(oR, { componentType: e, children: [
28280
28284
  r && /* @__PURE__ */ y(e === "modal" ? lR : dR, { componentType: e }),
28281
28285
  i && /* @__PURE__ */ y(ER, { componentType: e }),
28282
28286
  s && /* @__PURE__ */ y(_m, { componentType: e, onClearChat: u }),
@@ -28299,70 +28303,73 @@ const sR = ({ children: e }) => {
28299
28303
  overflowActions: t,
28300
28304
  availableActions: n,
28301
28305
  controls: r,
28302
- onClearChat: i,
28303
- onEndConversation: s,
28304
- onClose: o,
28305
- onDownloadTranscript: a
28306
+ additionalControls: i,
28307
+ leading: s,
28308
+ title: o,
28309
+ onClearChat: a,
28310
+ onEndConversation: u,
28311
+ onClose: c,
28312
+ onDownloadTranscript: l
28306
28313
  }) => {
28307
- const { headerConfig: u, globalClassName: c, themeVariants: l, themeVariables: d } = Ae(), { mode: p } = zt(), h = p === "standalone", m = e === "modal", E = (R) => n === void 0 || n[R], S = (R, $ = !0) => t.includes(R) && E(R) && $, g = E("toggleExpanded"), b = S(
28308
- m ? "toggleFullscreen" : "toggleDialogPosition"
28309
- ), T = S("minimize"), k = S("clearChat"), v = E("close"), x = S("endConversation", !!s), L = S(
28314
+ const { headerConfig: d, globalClassName: p, themeVariants: h, themeVariables: m } = Ae(), { mode: E } = zt(), S = E === "standalone", g = e === "modal", b = (ne) => n === void 0 || n[ne], T = (ne, H = !0) => t.includes(ne) && b(ne) && H, k = b("toggleExpanded"), v = T(
28315
+ g ? "toggleFullscreen" : "toggleDialogPosition"
28316
+ ), x = T("minimize"), L = T("clearChat"), U = b("close"), G = T("endConversation", !!u), R = T(
28310
28317
  "downloadTranscript",
28311
- !!a
28312
- ), U = b || T || k || x || L, W = Ye(() => {
28313
- if (!u) return {};
28314
- const R = q_(u);
28315
- if (!(d != null && d[`${xe}-header-text-font-size`])) return R;
28316
- const $ = {
28317
- "header-background-color": u.headerBackgroundColor,
28318
- "header-text-color": u.headerTextColor,
28319
- "header-text-font-size": u.headerTextFontSize,
28320
- "header-text-font-weight": u.headerTextFontWeight,
28321
- "header-text-font-family": u.headerTextFontFamily,
28322
- "header-text-text-align": u.headerTextTextAlign
28318
+ !!l
28319
+ ), $ = v || x || L || G || R, K = Ye(() => {
28320
+ if (!d) return {};
28321
+ const ne = q_(d);
28322
+ if (!(m != null && m[`${xe}-header-text-font-size`])) return ne;
28323
+ const H = {
28324
+ "header-background-color": d.headerBackgroundColor,
28325
+ "header-text-color": d.headerTextColor,
28326
+ "header-text-font-size": d.headerTextFontSize,
28327
+ "header-text-font-weight": d.headerTextFontWeight,
28328
+ "header-text-font-family": d.headerTextFontFamily,
28329
+ "header-text-text-align": d.headerTextTextAlign
28323
28330
  };
28324
28331
  return Object.fromEntries(
28325
- Object.entries($).filter(([, j]) => j != null && j !== "").map(([j]) => [
28326
- `${xe}-${j}`,
28327
- R[`${xe}-${j}`]
28332
+ Object.entries(H).filter(([, z]) => z != null && z !== "").map(([z]) => [
28333
+ `${xe}-${z}`,
28334
+ ne[`${xe}-${z}`]
28328
28335
  ])
28329
28336
  );
28330
- }, [u, d]);
28331
- return /* @__PURE__ */ y(sR, { children: /* @__PURE__ */ te(
28337
+ }, [d, m]);
28338
+ return /* @__PURE__ */ y(sR, { children: /* @__PURE__ */ ee(
28332
28339
  "div",
28333
28340
  {
28334
- className: D(c, `${I}-${e}-header-wrapper`),
28341
+ className: D(p, `${I}-${e}-header-wrapper`),
28335
28342
  style: {
28336
28343
  display: "flex",
28337
28344
  flexDirection: "column",
28338
28345
  position: "relative"
28339
28346
  },
28340
28347
  children: [
28341
- /* @__PURE__ */ te(
28348
+ /* @__PURE__ */ ee(
28342
28349
  "div",
28343
28350
  {
28344
- className: D(c, `${I}-${e}-header`, {
28345
- standalone: h,
28346
- embedded: !h
28351
+ className: D(p, `${I}-${e}-header`, {
28352
+ standalone: S,
28353
+ embedded: !S
28347
28354
  }),
28348
- style: W,
28355
+ style: K,
28349
28356
  children: [
28350
- u != null && u.logoUrl ? /* @__PURE__ */ y(
28357
+ s != null ? s : d != null && d.logoUrl ? /* @__PURE__ */ y(
28351
28358
  "img",
28352
28359
  {
28353
28360
  alt: "",
28354
- className: D(c, `${I}-${e}-logo`, {
28355
- standalone: h,
28356
- embedded: !h
28361
+ className: D(p, `${I}-${e}-logo`, {
28362
+ standalone: S,
28363
+ embedded: !S
28357
28364
  }),
28358
- src: u.logoUrl
28365
+ src: d.logoUrl
28359
28366
  }
28360
- ) : (l == null ? void 0 : l.logoFallback) === "sparkle" ? /* @__PURE__ */ y(
28367
+ ) : (h == null ? void 0 : h.logoFallback) === "sparkle" ? /* @__PURE__ */ y(
28361
28368
  "svg",
28362
28369
  {
28363
- className: D(c, `${I}-${e}-logo`, {
28364
- standalone: h,
28365
- embedded: !h
28370
+ className: D(p, `${I}-${e}-logo`, {
28371
+ standalone: S,
28372
+ embedded: !S
28366
28373
  }),
28367
28374
  "aria-hidden": "true",
28368
28375
  viewBox: "0 0 16 16",
@@ -28384,24 +28391,25 @@ const sR = ({ children: e }) => {
28384
28391
  /* @__PURE__ */ y(
28385
28392
  Ig,
28386
28393
  {
28387
- className: D(c, `${I}-${e}-title`, {
28388
- standalone: h,
28389
- embedded: !h
28394
+ className: D(p, `${I}-${e}-title`, {
28395
+ standalone: S,
28396
+ embedded: !S
28390
28397
  }),
28391
- children: u == null ? void 0 : u.headerText
28398
+ children: o != null ? o : d == null ? void 0 : d.headerText
28392
28399
  }
28393
28400
  ),
28394
28401
  /* @__PURE__ */ y(
28395
28402
  cR,
28396
28403
  {
28397
28404
  componentType: e,
28398
- globalClassName: c,
28405
+ globalClassName: p,
28399
28406
  controls: r,
28400
- showClose: v,
28401
- closeButtonAriaLabel: u == null ? void 0 : u.closeButtonAriaLabel,
28402
- onClose: o,
28403
- showOverflowMenu: U,
28404
- showPrimaryToggle: g
28407
+ additionalControls: i,
28408
+ showClose: U,
28409
+ closeButtonAriaLabel: d == null ? void 0 : d.closeButtonAriaLabel,
28410
+ onClose: c,
28411
+ showOverflowMenu: $,
28412
+ showPrimaryToggle: k
28405
28413
  }
28406
28414
  )
28407
28415
  ]
@@ -28412,15 +28420,15 @@ const sR = ({ children: e }) => {
28412
28420
  {
28413
28421
  componentType: e,
28414
28422
  controls: r,
28415
- showOverflowMenu: U,
28416
- showSecondaryToggle: b,
28417
- showMinimize: T,
28418
- showClearChat: k,
28419
- showEndConversation: x,
28420
- showDownloadTranscript: L,
28421
- onClearChat: i,
28422
- onEndConversation: s,
28423
- onDownloadTranscript: a
28423
+ showOverflowMenu: $,
28424
+ showSecondaryToggle: v,
28425
+ showMinimize: x,
28426
+ showClearChat: L,
28427
+ showEndConversation: G,
28428
+ showDownloadTranscript: R,
28429
+ onClearChat: a,
28430
+ onEndConversation: u,
28431
+ onDownloadTranscript: l
28424
28432
  }
28425
28433
  )
28426
28434
  ]
@@ -28442,7 +28450,7 @@ const sR = ({ children: e }) => {
28442
28450
  }
28443
28451
  }
28444
28452
  });
28445
- return /* @__PURE__ */ te(
28453
+ return /* @__PURE__ */ ee(
28446
28454
  "button",
28447
28455
  {
28448
28456
  className: D(
@@ -28465,7 +28473,7 @@ const sR = ({ children: e }) => {
28465
28473
  const n = Ar(), r = () => {
28466
28474
  e(), n();
28467
28475
  };
28468
- return /* @__PURE__ */ te(
28476
+ return /* @__PURE__ */ ee(
28469
28477
  "button",
28470
28478
  {
28471
28479
  className: D(
@@ -28504,7 +28512,7 @@ const sR = ({ children: e }) => {
28504
28512
  }, d = {
28505
28513
  "has-icon": !!a,
28506
28514
  "icon-right": !!a && u === "right"
28507
- }, p = (m) => /* @__PURE__ */ te(Lt, { children: [
28515
+ }, p = (m) => /* @__PURE__ */ ee(Lt, { children: [
28508
28516
  a && /* @__PURE__ */ y(Kc, { icon: a, className: `${I}-suggestion-button-icon` }),
28509
28517
  /* @__PURE__ */ y("span", { children: m })
28510
28518
  ] });
@@ -28569,7 +28577,7 @@ const sR = ({ children: e }) => {
28569
28577
  onClick: i,
28570
28578
  icon: /* @__PURE__ */ y(Xl, {})
28571
28579
  }
28572
- ) : /* @__PURE__ */ te(
28580
+ ) : /* @__PURE__ */ ee(
28573
28581
  "button",
28574
28582
  {
28575
28583
  className: D(
@@ -28605,7 +28613,7 @@ const sR = ({ children: e }) => {
28605
28613
  onClick: i,
28606
28614
  icon: /* @__PURE__ */ y(Df, {})
28607
28615
  }
28608
- ) : /* @__PURE__ */ te(
28616
+ ) : /* @__PURE__ */ ee(
28609
28617
  "button",
28610
28618
  {
28611
28619
  className: D(
@@ -28640,7 +28648,7 @@ const sR = ({ children: e }) => {
28640
28648
  }, [(g = a.message) == null ? void 0 : g.suggestions, s, o]), E = (b) => () => {
28641
28649
  l({ userPrompt: b });
28642
28650
  };
28643
- return /* @__PURE__ */ te(
28651
+ return /* @__PURE__ */ ee(
28644
28652
  "div",
28645
28653
  {
28646
28654
  className: D(
@@ -28660,7 +28668,7 @@ const sR = ({ children: e }) => {
28660
28668
  `${I}-suggestion-container`,
28661
28669
  e ? "standalone" : "embedded"
28662
28670
  ),
28663
- children: m.map((b) => /* @__PURE__ */ te(
28671
+ children: m.map((b) => /* @__PURE__ */ ee(
28664
28672
  Io,
28665
28673
  {
28666
28674
  disabled: c,
@@ -28722,7 +28730,7 @@ const _R = ({
28722
28730
  const { configModule: n, globalClassName: r, openLinksInNewTab: i, onNavigate: s } = Ae();
28723
28731
  if (!n) return null;
28724
28732
  const o = n.getName(t), a = n.getBrand(t), u = n.getPriceDisplay(t), c = n.getRelativePdp(t), l = n.getPdp(t), d = n.getImage(t), p = c && typeof c == "string" ? new URL(c, window.location.origin).href : l, h = (m) => Qc({ event: m, href: `${p}`, openLinksInNewTab: i, onNavigate: s });
28725
- return /* @__PURE__ */ te(
28733
+ return /* @__PURE__ */ ee(
28726
28734
  "div",
28727
28735
  {
28728
28736
  className: D(r, `${I}-product-tile`, {
@@ -28763,7 +28771,7 @@ const _R = ({
28763
28771
  loading: "lazy"
28764
28772
  }
28765
28773
  ),
28766
- /* @__PURE__ */ te(
28774
+ /* @__PURE__ */ ee(
28767
28775
  "div",
28768
28776
  {
28769
28777
  className: D(r, `${I}-product-tile-details`, {
@@ -28771,9 +28779,9 @@ const _R = ({
28771
28779
  standalone: e
28772
28780
  }),
28773
28781
  children: [
28774
- /* @__PURE__ */ te("div", { className: D(r, `${I}-product-tile-content`), children: [
28782
+ /* @__PURE__ */ ee("div", { className: D(r, `${I}-product-tile-content`), children: [
28775
28783
  a && /* @__PURE__ */ y("p", { className: `${I}-product-tile-brand`, children: a }),
28776
- p ? /* @__PURE__ */ te(
28784
+ p ? /* @__PURE__ */ ee(
28777
28785
  "a",
28778
28786
  {
28779
28787
  "aria-label": `Go to product page for ${o}`,
@@ -28816,7 +28824,7 @@ const _R = ({
28816
28824
  }) => {
28817
28825
  var a;
28818
28826
  const { configModule: n, globalClassName: r, themeVariants: i, themeTokens: s } = Ae(), o = t;
28819
- return n ? /* @__PURE__ */ te("div", { className: D(r, `${I}-display-products`), children: [
28827
+ return n ? /* @__PURE__ */ ee("div", { className: D(r, `${I}-display-products`), children: [
28820
28828
  /* @__PURE__ */ y("p", { children: o.message }),
28821
28829
  o.products && o.products.length > 0 && /* @__PURE__ */ y(
28822
28830
  qk,
@@ -28850,7 +28858,7 @@ const _R = ({
28850
28858
  standalone: n,
28851
28859
  embedded: !n
28852
28860
  }),
28853
- children: /* @__PURE__ */ te(
28861
+ children: /* @__PURE__ */ ee(
28854
28862
  "p",
28855
28863
  {
28856
28864
  className: D(e, `${I}-error-message-text`, {
@@ -28877,7 +28885,7 @@ const _R = ({
28877
28885
  const S = n.suggestions.find((g) => g.displayText === E);
28878
28886
  S && i(S, n.eventSourceId || n.id);
28879
28887
  };
28880
- return /* @__PURE__ */ te("div", { className: D(e, `${I}-follow-up`), children: [
28888
+ return /* @__PURE__ */ ee("div", { className: D(e, `${I}-follow-up`), children: [
28881
28889
  /* @__PURE__ */ y("p", { className: D(e, `${I}-text`), children: n.message }),
28882
28890
  /* @__PURE__ */ y(
28883
28891
  gR,
@@ -30616,8 +30624,8 @@ function xL(e, t, n) {
30616
30624
  H === "linePrefix") $--;
30617
30625
  else break;
30618
30626
  }
30619
- const j = $ > -1 ? r.events[$][1].type : null, ue = j === "tableHead" || j === "tableRow" ? x : u;
30620
- return ue === x && r.parser.lazy[r.now().line] ? n(R) : ue(R);
30627
+ const K = $ > -1 ? r.events[$][1].type : null, ne = K === "tableHead" || K === "tableRow" ? x : u;
30628
+ return ne === x && r.parser.lazy[r.now().line] ? n(R) : ne(R);
30621
30629
  }
30622
30630
  function u(R) {
30623
30631
  return e.enter("tableHead"), e.enter("tableRow"), c(R);
@@ -30668,9 +30676,9 @@ function xL(e, t, n) {
30668
30676
  return R === 124 ? (e.enter("tableCellDivider"), e.consume(R), e.exit("tableCellDivider"), L) : R === null || fe(R) ? (e.exit("tableRow"), t(R)) : _e(R) ? Oe(e, L, "whitespace")(R) : (e.enter("data"), U(R));
30669
30677
  }
30670
30678
  function U(R) {
30671
- return R === null || R === 124 || Fe(R) ? (e.exit("data"), L(R)) : (e.consume(R), R === 92 ? W : U);
30679
+ return R === null || R === 124 || Fe(R) ? (e.exit("data"), L(R)) : (e.consume(R), R === 92 ? G : U);
30672
30680
  }
30673
- function W(R) {
30681
+ function G(R) {
30674
30682
  return R === 92 || R === 124 ? (e.consume(R), U) : U(R);
30675
30683
  }
30676
30684
  }
@@ -30838,8 +30846,8 @@ const tl = ({
30838
30846
  const [n, r] = Ne(!1), i = t.tool_name || t.toolName, s = !!t.thought, o = !!i, a = () => {
30839
30847
  r((u) => !u);
30840
30848
  };
30841
- return /* @__PURE__ */ te("div", { children: [
30842
- /* @__PURE__ */ te(
30849
+ return /* @__PURE__ */ ee("div", { children: [
30850
+ /* @__PURE__ */ ee(
30843
30851
  "div",
30844
30852
  {
30845
30853
  className: D(e, `${I}-progress-message`, "standalone"),
@@ -30860,16 +30868,16 @@ const tl = ({
30860
30868
  ]
30861
30869
  }
30862
30870
  ),
30863
- (s || o) && /* @__PURE__ */ te(Lt, { children: [
30871
+ (s || o) && /* @__PURE__ */ ee(Lt, { children: [
30864
30872
  /* @__PURE__ */ y(
30865
30873
  Io,
30866
30874
  {
30867
30875
  className: D(e, `${I}-thought-context-button`),
30868
30876
  onClick: a,
30869
- children: n ? /* @__PURE__ */ te(Lt, { children: [
30877
+ children: n ? /* @__PURE__ */ ee(Lt, { children: [
30870
30878
  "Hide ",
30871
30879
  /* @__PURE__ */ y(G_, { "aria-hidden": "true" })
30872
- ] }) : /* @__PURE__ */ te(Lt, { children: [
30880
+ ] }) : /* @__PURE__ */ ee(Lt, { children: [
30873
30881
  "Context ",
30874
30882
  /* @__PURE__ */ y(W_, { "aria-hidden": "true" })
30875
30883
  ] })
@@ -30882,7 +30890,7 @@ const tl = ({
30882
30890
  globalClassName: e,
30883
30891
  message: t,
30884
30892
  isWidgetStandalone: n
30885
- }) => n ? /* @__PURE__ */ y(DL, { globalClassName: e, message: t }) : /* @__PURE__ */ te(
30893
+ }) => n ? /* @__PURE__ */ y(DL, { globalClassName: e, message: t }) : /* @__PURE__ */ ee(
30886
30894
  "div",
30887
30895
  {
30888
30896
  className: D(e, `${I}-progress-message`, "embedded"),
@@ -30910,7 +30918,7 @@ const tl = ({
30910
30918
  }) => {
30911
30919
  var i;
30912
30920
  const r = (i = t.searchParams) == null ? void 0 : i.query;
30913
- return /* @__PURE__ */ te(
30921
+ return /* @__PURE__ */ ee(
30914
30922
  "div",
30915
30923
  {
30916
30924
  className: D(e, `${I}-refined-event`, {
@@ -30918,7 +30926,7 @@ const tl = ({
30918
30926
  standalone: n
30919
30927
  }),
30920
30928
  children: [
30921
- !!r && /* @__PURE__ */ te(
30929
+ !!r && /* @__PURE__ */ ee(
30922
30930
  "div",
30923
30931
  {
30924
30932
  className: D(e, `${I}-refined-event-query`, {
@@ -31002,7 +31010,7 @@ const tl = ({
31002
31010
  return n.map((a) => {
31003
31011
  var c;
31004
31012
  const u = ((c = i[a]) == null ? void 0 : c.join(", ")) || "";
31005
- return /* @__PURE__ */ te("div", { className: D(e, `${I}-facets`), children: [
31013
+ return /* @__PURE__ */ ee("div", { className: D(e, `${I}-facets`), children: [
31006
31014
  /* @__PURE__ */ y("p", { className: D(e, `${I}-facet-category`), children: a }),
31007
31015
  /* @__PURE__ */ y("p", { className: D(e, `${I}-facet-values`), children: u })
31008
31016
  ] }, a);
@@ -31029,8 +31037,8 @@ const tl = ({
31029
31037
  }) => {
31030
31038
  var c, l;
31031
31039
  const { request: r, createdAt: i } = t, { facetFiltersList: s, filterCount: o } = rE(t), a = new Date(i).toLocaleString(), u = (c = r == null ? void 0 : r.attachments) == null ? void 0 : c.image;
31032
- return n ? /* @__PURE__ */ te("div", { className: D(e, `${I}-user-message standalone`), children: [
31033
- /* @__PURE__ */ te(
31040
+ return n ? /* @__PURE__ */ ee("div", { className: D(e, `${I}-user-message standalone`), children: [
31041
+ /* @__PURE__ */ ee(
31034
31042
  "div",
31035
31043
  {
31036
31044
  className: D(e, `${I}-user-message-row standalone`),
@@ -31094,8 +31102,8 @@ const tl = ({
31094
31102
  isWidgetStandalone: !0
31095
31103
  }
31096
31104
  )
31097
- ] }) : /* @__PURE__ */ te("div", { className: D(e, `${I}-user-message embedded`), children: [
31098
- /* @__PURE__ */ te("div", { className: D(e, `${I}-user-message-row embedded`), children: [
31105
+ ] }) : /* @__PURE__ */ ee("div", { className: D(e, `${I}-user-message embedded`), children: [
31106
+ /* @__PURE__ */ ee("div", { className: D(e, `${I}-user-message-row embedded`), children: [
31099
31107
  u ? /* @__PURE__ */ y(
31100
31108
  "img",
31101
31109
  {
@@ -31140,9 +31148,9 @@ const tl = ({
31140
31148
  facetFiltersList: o,
31141
31149
  filterCount: a,
31142
31150
  imageData: u
31143
- }) => /* @__PURE__ */ te("div", { className: D(e, `${I}-user-search standalone`), children: [
31144
- /* @__PURE__ */ te("div", { children: [
31145
- /* @__PURE__ */ te(
31151
+ }) => /* @__PURE__ */ ee("div", { className: D(e, `${I}-user-search standalone`), children: [
31152
+ /* @__PURE__ */ ee("div", { children: [
31153
+ /* @__PURE__ */ ee(
31146
31154
  "div",
31147
31155
  {
31148
31156
  className: D(e, `${I}-user-search-query standalone`),
@@ -31247,8 +31255,8 @@ const tl = ({
31247
31255
  facetFiltersList: o,
31248
31256
  filterCount: a
31249
31257
  }
31250
- ) : /* @__PURE__ */ te("div", { className: D(e, `${I}-user-search embedded`), children: [
31251
- /* @__PURE__ */ te("div", { className: D(e, `${I}-user-search-query embedded`), children: [
31258
+ ) : /* @__PURE__ */ ee("div", { className: D(e, `${I}-user-search embedded`), children: [
31259
+ /* @__PURE__ */ ee("div", { className: D(e, `${I}-user-search-query embedded`), children: [
31252
31260
  c ? /* @__PURE__ */ y(
31253
31261
  "img",
31254
31262
  {
@@ -31373,7 +31381,7 @@ const tl = ({
31373
31381
  }
31374
31382
  );
31375
31383
  case "conversation_reset":
31376
- return i === "ask_cim" ? null : /* @__PURE__ */ te(Lt, { children: [
31384
+ return i === "ask_cim" ? null : /* @__PURE__ */ ee(Lt, { children: [
31377
31385
  /* @__PURE__ */ y("p", { className: D(t, `${I}-reset-message`), children: "This conversation has been reset." }),
31378
31386
  /* @__PURE__ */ y("p", { className: D(t, `${I}-start-search-message`), children: r || "What products would you like to explore today?" })
31379
31387
  ] });
@@ -31382,13 +31390,13 @@ const tl = ({
31382
31390
  }
31383
31391
  }, $L = ({ isWidgetStandalone: e, handleSuggestionClick: t }) => {
31384
31392
  const { globalClassName: n, openLinksInNewTab: r, resetConversationMessage: i } = Ae(), { groupedMessages: s } = Vt(), { entryType: o } = zt();
31385
- return /* @__PURE__ */ te(Lt, { children: [
31393
+ return /* @__PURE__ */ ee(Lt, { children: [
31386
31394
  o === "ask_cim" && /* @__PURE__ */ y(bR, { isWidgetStandalone: e }),
31387
31395
  s.map((a) => {
31388
31396
  if (a.messages && a.type === "group") {
31389
31397
  let u = new Date(a.createdAt).toLocaleString();
31390
31398
  const c = a.messages[a.messages.length - 1];
31391
- return c && (u = new Date(c.createdAt).toLocaleString()), /* @__PURE__ */ te(
31399
+ return c && (u = new Date(c.createdAt).toLocaleString()), /* @__PURE__ */ ee(
31392
31400
  "div",
31393
31401
  {
31394
31402
  className: D(
@@ -31501,7 +31509,7 @@ const tl = ({
31501
31509
  loadingIndicatorStyle: i
31502
31510
  }) => {
31503
31511
  const s = jL({ isOpen: e });
31504
- return /* @__PURE__ */ te(Lt, { children: [
31512
+ return /* @__PURE__ */ ee(Lt, { children: [
31505
31513
  /* @__PURE__ */ y(
31506
31514
  $L,
31507
31515
  {
@@ -31515,7 +31523,7 @@ const tl = ({
31515
31523
  ] });
31516
31524
  }, sE = () => {
31517
31525
  const { themeClassName: e, globalClassName: t, themeVariables: n, messageAlignment: r } = Ae(), { copilot: i, isLoading: s, handleUserInput: o, handleSuggestion: a, resetConversation: u } = En();
31518
- return Xc() ? i ? /* @__PURE__ */ te(
31526
+ return Xc() ? i ? /* @__PURE__ */ ee(
31519
31527
  "div",
31520
31528
  {
31521
31529
  className: D(
@@ -31556,7 +31564,7 @@ const tl = ({
31556
31564
  onSubmit: o
31557
31565
  }
31558
31566
  ),
31559
- /* @__PURE__ */ y("div", { className: D(`${I}-embedded-chat-menu`), children: /* @__PURE__ */ te(Ck, { componentType: "chat", children: [
31567
+ /* @__PURE__ */ y("div", { className: D(`${I}-embedded-chat-menu`), children: /* @__PURE__ */ ee(Ck, { componentType: "chat", children: [
31560
31568
  /* @__PURE__ */ y(Lg, { componentType: "chat" }),
31561
31569
  /* @__PURE__ */ y(_m, { componentType: "chat", onClearChat: u })
31562
31570
  ] }) })
@@ -31610,7 +31618,7 @@ const tl = ({
31610
31618
  {
31611
31619
  className: D(t, `${I}-dialog-positioner`),
31612
31620
  style: n,
31613
- children: /* @__PURE__ */ te(
31621
+ children: /* @__PURE__ */ ee(
31614
31622
  Gc,
31615
31623
  {
31616
31624
  className: D(
@@ -31689,7 +31697,7 @@ const tl = ({
31689
31697
  "aria-label": i == null ? void 0 : i.headerText,
31690
31698
  onOpenChange: S,
31691
31699
  initialFocusEl: ac,
31692
- children: /* @__PURE__ */ y(oE, { children: /* @__PURE__ */ te(
31700
+ children: /* @__PURE__ */ y(oE, { children: /* @__PURE__ */ ee(
31693
31701
  "div",
31694
31702
  {
31695
31703
  className: D(t, `${I}-modal-container`),
@@ -31715,7 +31723,7 @@ const tl = ({
31715
31723
  embedded: !m
31716
31724
  }
31717
31725
  ),
31718
- children: /* @__PURE__ */ te(
31726
+ children: /* @__PURE__ */ ee(
31719
31727
  Gc,
31720
31728
  {
31721
31729
  className: D(t, `${I}-modal-content`, {
@@ -31794,7 +31802,7 @@ const tl = ({
31794
31802
  setIsResponseLoading: u
31795
31803
  } = oc(), { getCopilotSuggestions: c } = Up();
31796
31804
  ZL();
31797
- const l = ae(
31805
+ const l = ue(
31798
31806
  (m) => {
31799
31807
  if (!t || !m) return;
31800
31808
  c(m, t, (S) => {
@@ -31806,17 +31814,17 @@ const tl = ({
31806
31814
  we(() => {
31807
31815
  !e || !t || !r || l(r);
31808
31816
  }, [e, t, r, l]);
31809
- const d = ae(
31817
+ const d = ue(
31810
31818
  (m) => {
31811
31819
  m.eventSourceId === n && (o(m), s(m.id), i(!0));
31812
31820
  },
31813
31821
  [n, o, s, i]
31814
- ), p = ae(
31822
+ ), p = ue(
31815
31823
  (m) => {
31816
31824
  (m == null ? void 0 : m.eventSourceId) === n && (a(m), u(!1));
31817
31825
  },
31818
31826
  [n, a, u]
31819
- ), h = ae(() => {
31827
+ ), h = ue(() => {
31820
31828
  i(!0), u(!1);
31821
31829
  }, [i, u]);
31822
31830
  return we(() => {
@@ -31839,7 +31847,7 @@ const tl = ({
31839
31847
  }, d = (p) => {
31840
31848
  c && p.preventDefault();
31841
31849
  };
31842
- return /* @__PURE__ */ te(
31850
+ return /* @__PURE__ */ ee(
31843
31851
  "form",
31844
31852
  {
31845
31853
  className: D(n, `${I}-prompts-input-container`),
@@ -31885,7 +31893,7 @@ const tl = ({
31885
31893
  );
31886
31894
  }, n4 = () => {
31887
31895
  const { globalClassName: e, mode: t } = Ae(), { placeholder: n } = Ln(), r = n || cE[t];
31888
- return /* @__PURE__ */ te("div", { className: D(e, `${I}-prompts-header`), children: [
31896
+ return /* @__PURE__ */ ee("div", { className: D(e, `${I}-prompts-header`), children: [
31889
31897
  /* @__PURE__ */ y(
31890
31898
  jc,
31891
31899
  {
@@ -31902,7 +31910,7 @@ const tl = ({
31902
31910
  }) => {
31903
31911
  var a;
31904
31912
  const { globalClassName: r, suggestionButtonConfig: i } = Ae(), s = i == null ? void 0 : i.icon, o = (a = i == null ? void 0 : i.iconPosition) != null ? a : "left";
31905
- return /* @__PURE__ */ te(
31913
+ return /* @__PURE__ */ ee(
31906
31914
  "button",
31907
31915
  {
31908
31916
  className: D(r, `${I}-prompts-button`, {
@@ -31944,7 +31952,7 @@ const tl = ({
31944
31952
  const T = b.trim();
31945
31953
  T && e(T);
31946
31954
  };
31947
- return /* @__PURE__ */ te("div", { className: D(t, `${I}-prompts-button-group`), children: [
31955
+ return /* @__PURE__ */ ee("div", { className: D(t, `${I}-prompts-button-group`), children: [
31948
31956
  p && /* @__PURE__ */ y(ea, {}),
31949
31957
  d.map((b) => /* @__PURE__ */ y(
31950
31958
  lE,
@@ -32008,7 +32016,7 @@ const tl = ({
32008
32016
  const v = document.getElementById(u);
32009
32017
  v && T(v);
32010
32018
  }, [u, b]);
32011
- const k = ae(
32019
+ const k = ue(
32012
32020
  (v) => {
32013
32021
  if (!r || !c || !l) return;
32014
32022
  const x = (U) => {
@@ -32061,7 +32069,7 @@ const tl = ({
32061
32069
  ]
32062
32070
  );
32063
32071
  return !n || !o || !b || !c ? null : Js(
32064
- /* @__PURE__ */ te(
32072
+ /* @__PURE__ */ ee(
32065
32073
  "div",
32066
32074
  {
32067
32075
  className: D(e, `${I}-prompts-extension-container`),
@@ -32070,7 +32078,7 @@ const tl = ({
32070
32078
  p && /* @__PURE__ */ y(t4, { onSubmit: k }),
32071
32079
  !p && /* @__PURE__ */ y(n4, {}),
32072
32080
  h && /* @__PURE__ */ y(s4, { sendCopilotPrompt: k }),
32073
- /* @__PURE__ */ te(
32081
+ /* @__PURE__ */ ee(
32074
32082
  "div",
32075
32083
  {
32076
32084
  className: D(
@@ -32088,10 +32096,10 @@ const tl = ({
32088
32096
  ),
32089
32097
  b
32090
32098
  );
32091
- }, c4 = () => /* @__PURE__ */ te(Lt, { children: [
32099
+ }, c4 = () => /* @__PURE__ */ ee(Lt, { children: [
32092
32100
  /* @__PURE__ */ y(e4, {}),
32093
32101
  /* @__PURE__ */ y(u4, {})
32094
- ] }), dE = (e) => /* @__PURE__ */ te(Hp, q(O({}, e), { children: [
32102
+ ] }), dE = (e) => /* @__PURE__ */ ee(Hp, q(O({}, e), { children: [
32095
32103
  /* @__PURE__ */ y(JL, {}),
32096
32104
  /* @__PURE__ */ y(c4, {})
32097
32105
  ] })), Xf = /* @__PURE__ */ new WeakMap(), fE = (e, t) => {