@cimulate/copilot-widget 0.11.0 → 0.11.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.
@@ -137,7 +137,7 @@ function R2() {
137
137
  });
138
138
  }
139
139
  var pe = /\/+/g;
140
- function le(I, q) {
140
+ function ce(I, q) {
141
141
  return typeof I == "object" && I !== null && I.key != null ? ge("" + I.key) : q.toString(36);
142
142
  }
143
143
  function fe(I, q, N, Ee, Ne) {
@@ -157,15 +157,15 @@ function R2() {
157
157
  $e = !0;
158
158
  }
159
159
  }
160
- if ($e) return $e = I, Ne = Ne($e), I = Ee === "" ? "." + le($e, 0) : Ee, Z(Ne) ? (N = "", I != null && (N = I.replace(pe, "$&/") + "/"), fe(Ne, q, N, "", function(gt) {
160
+ if ($e) return $e = I, Ne = Ne($e), I = Ee === "" ? "." + ce($e, 0) : Ee, Z(Ne) ? (N = "", I != null && (N = I.replace(pe, "$&/") + "/"), fe(Ne, q, N, "", function(gt) {
161
161
  return gt;
162
162
  })) : Ne != null && (H(Ne) && (Ne = xe(Ne, N + (!Ne.key || $e && $e.key === Ne.key ? "" : ("" + Ne.key).replace(pe, "$&/") + "/") + I)), q.push(Ne)), 1;
163
163
  if ($e = 0, Ee = Ee === "" ? "." : Ee + ":", Z(I)) for (var Fe = 0; Fe < I.length; Fe++) {
164
164
  ke = I[Fe];
165
- var Qe = Ee + le(ke, Fe);
165
+ var Qe = Ee + ce(ke, Fe);
166
166
  $e += fe(ke, q, N, Qe, Ne);
167
167
  }
168
- else if (Qe = b(I), typeof Qe == "function") for (I = Qe.call(I), Fe = 0; !(ke = I.next()).done; ) ke = ke.value, Qe = Ee + le(ke, Fe++), $e += fe(ke, q, N, Qe, Ne);
168
+ else if (Qe = b(I), typeof Qe == "function") for (I = Qe.call(I), Fe = 0; !(ke = I.next()).done; ) ke = ke.value, Qe = Ee + ce(ke, Fe++), $e += fe(ke, q, N, Qe, Ne);
169
169
  else if (ke === "object") throw q = String(I), Error("Objects are not valid as a React child (found: " + (q === "[object Object]" ? "object with keys {" + Object.keys(I).join(", ") + "}" : q) + "). If you meant to render a collection of children, use an array instead.");
170
170
  return $e;
171
171
  }
@@ -188,7 +188,7 @@ function R2() {
188
188
  if (I._status === 1) return I._result.default;
189
189
  throw I._result;
190
190
  }
191
- var oe = { current: null }, M = { transition: null }, K = { ReactCurrentDispatcher: oe, ReactCurrentBatchConfig: M, ReactCurrentOwner: F };
191
+ var oe = { current: null }, M = { transition: null }, G = { ReactCurrentDispatcher: oe, ReactCurrentBatchConfig: M, ReactCurrentOwner: F };
192
192
  function A() {
193
193
  throw Error("act(...) is not supported in production builds of React.");
194
194
  }
@@ -208,7 +208,7 @@ function R2() {
208
208
  }, only: function(I) {
209
209
  if (!H(I)) throw Error("React.Children.only expected to receive a single React element child.");
210
210
  return I;
211
- } }, He.Component = O, He.Fragment = n, He.Profiler = u, He.PureComponent = V, He.StrictMode = r, He.Suspense = d, He.__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED = K, He.act = A, He.cloneElement = function(I, q, N) {
211
+ } }, He.Component = O, He.Fragment = n, He.Profiler = u, He.PureComponent = V, He.StrictMode = r, He.Suspense = d, He.__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED = G, He.act = A, He.cloneElement = function(I, q, N) {
212
212
  if (I == null) throw Error("React.cloneElement(...): The argument must be a React element, but you passed " + I + ".");
213
213
  var Ee = S({}, I.props), Ne = I.key, ke = I.ref, $e = I._owner;
214
214
  if (q != null) {
@@ -4241,7 +4241,7 @@ const vE = (e) => {
4241
4241
  fetchOptions: H
4242
4242
  } = vE(S), ge = t || fetch;
4243
4243
  me = me ? (me + "").toLowerCase() : "text";
4244
- let pe = lC([V, j && j.toAbortSignal()], Z), le = null;
4244
+ let pe = lC([V, j && j.toAbortSignal()], Z), ce = null;
4245
4245
  const fe = pe && pe.unsubscribe && (() => {
4246
4246
  pe.unsubscribe();
4247
4247
  });
@@ -4270,10 +4270,10 @@ const vE = (e) => {
4270
4270
  duplex: "half",
4271
4271
  credentials: Oe ? xe : void 0
4272
4272
  });
4273
- le = o && new n(k, oe);
4274
- let M = yield o ? ge(le, H) : ge(k, oe);
4275
- const K = g && (me === "stream" || me === "response");
4276
- if (g && (he || K && fe)) {
4273
+ ce = o && new n(k, oe);
4274
+ let M = yield o ? ge(ce, H) : ge(k, oe);
4275
+ const G = g && (me === "stream" || me === "response");
4276
+ if (g && (he || G && fe)) {
4277
4277
  const I = {};
4278
4278
  ["status", "statusText", "headers"].forEach((Ne) => {
4279
4279
  I[Ne] = M[Ne];
@@ -4291,23 +4291,23 @@ const vE = (e) => {
4291
4291
  }
4292
4292
  me = me || "text";
4293
4293
  let A = yield y[Y.findKey(y, me) || "text"](M, S);
4294
- return !K && fe && fe(), yield new Promise((I, q) => {
4294
+ return !G && fe && fe(), yield new Promise((I, q) => {
4295
4295
  NE(I, q, {
4296
4296
  data: A,
4297
4297
  headers: sn.from(M.headers),
4298
4298
  status: M.status,
4299
4299
  statusText: M.statusText,
4300
4300
  config: S,
4301
- request: le
4301
+ request: ce
4302
4302
  });
4303
4303
  });
4304
4304
  } catch (Oe) {
4305
4305
  throw fe && fe(), Oe && Oe.name === "TypeError" && /Load failed|fetch/i.test(Oe.message) ? Object.assign(
4306
- new De("Network Error", De.ERR_NETWORK, S, le),
4306
+ new De("Network Error", De.ERR_NETWORK, S, ce),
4307
4307
  {
4308
4308
  cause: Oe.cause || Oe
4309
4309
  }
4310
- ) : De.from(Oe, Oe && Oe.code, S, le);
4310
+ ) : De.from(Oe, Oe && Oe.code, S, ce);
4311
4311
  }
4312
4312
  });
4313
4313
  }, mC = /* @__PURE__ */ new Map(), IE = (e) => {
@@ -5923,11 +5923,11 @@ const bt = new rk(), KE = X.createContext({
5923
5923
  [k, O]
5924
5924
  ), H = X.useCallback(
5925
5925
  (M) => {
5926
- const K = Ue(Q({}, M), {
5926
+ const G = Ue(Q({}, M), {
5927
5927
  // eslint-disable-next-line @typescript-eslint/no-explicit-any
5928
5928
  id: M.inquiryLinkId || M.id
5929
5929
  });
5930
- k(K);
5930
+ k(G);
5931
5931
  },
5932
5932
  [k]
5933
5933
  ), ge = X.useCallback(
@@ -5937,25 +5937,32 @@ const bt = new rk(), KE = X.createContext({
5937
5937
  [k, o]
5938
5938
  ), pe = X.useCallback(
5939
5939
  (M) => {
5940
- M.on("connect_ack", (K) => {
5941
- u == null || u(K);
5942
- }), M.on("follow_up", k), M.on("inquiry", H), M.on("partial_inquiry", H), M.on("display_products", k), M.on("progress", k), M.on("refined_search", ge), M.on("done", (K) => {
5943
- L(K.eventSourceId);
5944
- }), M.on("error", (K) => {
5945
- k(K), L(K.eventSourceId);
5946
- }), M.onDisconnect((K) => {
5940
+ M.on("connect_ack", (G) => {
5941
+ u == null || u(G);
5942
+ }), M.on("follow_up", k), M.on("inquiry", H), M.on("partial_inquiry", H), M.on("display_products", k), M.on("progress", k), M.on("refined_search", ge), M.on("done", (G) => {
5943
+ L(G.eventSourceId);
5944
+ }), M.on("error", (G) => {
5945
+ k(G), L(G.eventSourceId);
5946
+ }), M.onDisconnect((G) => {
5947
5947
  const A = [
5948
5948
  "io server disconnect",
5949
5949
  "transport error",
5950
5950
  "server shutting down"
5951
5951
  ];
5952
- if (c == null || c.log("Connection disconnected with reason: ", K), !A.includes(K)) {
5953
- c == null || c.log("Reconnecting...");
5952
+ c == null || c.log("Connection disconnected with reason: ", G);
5953
+ const I = (/* @__PURE__ */ new Date()).toISOString();
5954
+ if (!A.includes(G)) {
5955
+ k({
5956
+ name: "reconnect",
5957
+ message: `Connection was lost due to reason: ${G}. Attempting to reconnect.`,
5958
+ createdAt: I,
5959
+ id: `reconnect-${I}`,
5960
+ sessionId: `session-reconnect-${I}`
5961
+ // eslint-disable-next-line @typescript-eslint/no-explicit-any
5962
+ });
5954
5963
  return;
5955
5964
  }
5956
- c == null || c.log("De-registering event listeners");
5957
- const I = (/* @__PURE__ */ new Date()).toISOString();
5958
- k({
5965
+ c == null || c.log("De-registering event listeners"), k({
5959
5966
  name: "error",
5960
5967
  message: "Connection was lost. Please try again.",
5961
5968
  createdAt: I,
@@ -5970,17 +5977,17 @@ const bt = new rk(), KE = X.createContext({
5970
5977
  X.useEffect(() => {
5971
5978
  let M;
5972
5979
  n ? M = n : M = r ? "https://staging.copilot.search.cimulate.ai" : "https://prod.copilot.search.cimulate.ai";
5973
- const K = { baseUrl: M };
5974
- e ? K.apiKey = e : t && (K.apiToken = t);
5975
- const A = new qS(K);
5980
+ const G = { baseUrl: M };
5981
+ e ? G.apiKey = e : t && (G.apiToken = t);
5982
+ const A = new qS(G);
5976
5983
  return A.connect(), pe(A), T(A), () => {
5977
5984
  A.disconnect(), A.off(), S();
5978
5985
  };
5979
5986
  }, [e, t, n, r, T, S, pe]);
5980
- const le = X.useCallback(
5987
+ const ce = X.useCallback(
5981
5988
  ({
5982
5989
  search: M,
5983
- facetFilters: K,
5990
+ facetFilters: G,
5984
5991
  rangeFilters: A,
5985
5992
  catalogSegment: I,
5986
5993
  pricebooks: q,
@@ -5994,7 +6001,7 @@ const bt = new rk(), KE = X.createContext({
5994
6001
  const Ne = {
5995
6002
  searchParams: { query: M }
5996
6003
  };
5997
- N && (Ne.userPrompt = N), K && (Ne.searchParams.facetFilters = K), A && (Ne.searchParams.rangeFilters = A), I && (Ne.searchParams.catalogSegment = I), q && (Ne.searchParams.pricebooks = q), j.search(Ne, (ke) => {
6004
+ N && (Ne.userPrompt = N), G && (Ne.searchParams.facetFilters = G), A && (Ne.searchParams.rangeFilters = A), I && (Ne.searchParams.catalogSegment = I), q && (Ne.searchParams.pricebooks = q), j.search(Ne, (ke) => {
5998
6005
  Ee && (ke.isUserAction = Ee), xe(ke);
5999
6006
  });
6000
6007
  },
@@ -6002,15 +6009,15 @@ const bt = new rk(), KE = X.createContext({
6002
6009
  ), fe = X.useCallback(
6003
6010
  (M) => {
6004
6011
  if (!j) return;
6005
- const K = { eventId: M, reason: "User cancelled the request" };
6006
- j.cancelRequest(K, (A) => {
6012
+ const G = { eventId: M, reason: "User cancelled the request" };
6013
+ j.cancelRequest(G, (A) => {
6007
6014
  k(A), L(M);
6008
6015
  });
6009
6016
  },
6010
6017
  [k, L, j]
6011
6018
  ), be = X.useCallback(
6012
6019
  (M) => {
6013
- !M || !d || le({
6020
+ !M || !d || ce({
6014
6021
  search: d,
6015
6022
  facetFilters: h,
6016
6023
  rangeFilters: g,
@@ -6019,19 +6026,19 @@ const bt = new rk(), KE = X.createContext({
6019
6026
  userPrompt: M
6020
6027
  });
6021
6028
  },
6022
- [d, h, g, y, b, le]
6029
+ [d, h, g, y, b, ce]
6023
6030
  ), Oe = X.useCallback(
6024
- (M, K) => {
6031
+ (M, G) => {
6025
6032
  const A = M.params.userPrompt || "";
6026
6033
  if (!A || !d) return;
6027
- le({
6034
+ ce({
6028
6035
  search: d,
6029
6036
  userPrompt: A,
6030
6037
  facetFilters: h,
6031
6038
  rangeFilters: g,
6032
6039
  catalogSegment: y,
6033
6040
  pricebooks: b
6034
- }), V(K);
6041
+ }), V(G);
6035
6042
  },
6036
6043
  [
6037
6044
  d,
@@ -6039,20 +6046,20 @@ const bt = new rk(), KE = X.createContext({
6039
6046
  g,
6040
6047
  y,
6041
6048
  b,
6042
- le,
6049
+ ce,
6043
6050
  V
6044
6051
  ]
6045
6052
  );
6046
6053
  X.useEffect(() => {
6047
- d && j && le({ search: d, facetFilters: h, isUserAction: !0 });
6048
- }, [d, h, j, le]);
6054
+ d && j && ce({ search: d, facetFilters: h, isUserAction: !0 });
6055
+ }, [d, h, j, ce]);
6049
6056
  const oe = X.useMemo(() => ({
6050
6057
  copilot: j,
6051
6058
  messages: Z,
6052
6059
  groupedMessages: he,
6053
6060
  isLoading: me,
6054
6061
  isResponseLoading: Ce,
6055
- handleSearch: le,
6062
+ handleSearch: ce,
6056
6063
  handleUserInput: be,
6057
6064
  handleSuggestion: Oe,
6058
6065
  handleCancel: fe
@@ -6062,7 +6069,7 @@ const bt = new rk(), KE = X.createContext({
6062
6069
  he,
6063
6070
  me,
6064
6071
  Ce,
6065
- le,
6072
+ ce,
6066
6073
  be,
6067
6074
  Oe,
6068
6075
  fe
@@ -6184,7 +6191,7 @@ function ZE(e) {
6184
6191
  } else for (n in e) e[n] && (r && (r += " "), r += n);
6185
6192
  return r;
6186
6193
  }
6187
- function ce() {
6194
+ function le() {
6188
6195
  for (var e, t, n = 0, r = "", u = arguments.length; n < u; n++) (e = arguments[n]) && (t = ZE(e)) && (r && (r += " "), r += t);
6189
6196
  return r;
6190
6197
  }
@@ -6327,7 +6334,7 @@ const Wu = ({
6327
6334
  }) => /* @__PURE__ */ P.jsx(
6328
6335
  "button",
6329
6336
  {
6330
- className: ce(e, `${ne}-icon-button`),
6337
+ className: le(e, `${ne}-icon-button`),
6331
6338
  type: n,
6332
6339
  "aria-label": r,
6333
6340
  onClick: o,
@@ -6348,14 +6355,14 @@ const Wu = ({
6348
6355
  return /* @__PURE__ */ P.jsxs(
6349
6356
  "form",
6350
6357
  {
6351
- className: ce(e, `${ne}-search-bar`),
6358
+ className: le(e, `${ne}-search-bar`),
6352
6359
  name: `${ne}-search-form`,
6353
6360
  onSubmit: u,
6354
6361
  children: [
6355
6362
  /* @__PURE__ */ P.jsx(
6356
6363
  "input",
6357
6364
  {
6358
- className: ce(e, `${ne}-search-input`),
6365
+ className: le(e, `${ne}-search-input`),
6359
6366
  type: "text",
6360
6367
  ref: r,
6361
6368
  name: `${ne}-user-input`
@@ -6388,7 +6395,7 @@ const Wu = ({
6388
6395
  return /* @__PURE__ */ P.jsxs(
6389
6396
  "div",
6390
6397
  {
6391
- className: ce(r, `${ne}-product-tile`, {
6398
+ className: le(r, `${ne}-product-tile`, {
6392
6399
  embedded: !e,
6393
6400
  standalone: e
6394
6401
  }),
@@ -6396,7 +6403,7 @@ const Wu = ({
6396
6403
  /* @__PURE__ */ P.jsx(
6397
6404
  "img",
6398
6405
  {
6399
- className: ce(r, `${ne}-product-tile-image`, {
6406
+ className: le(r, `${ne}-product-tile-image`, {
6400
6407
  embedded: !e,
6401
6408
  standalone: e
6402
6409
  }),
@@ -6408,18 +6415,18 @@ const Wu = ({
6408
6415
  /* @__PURE__ */ P.jsxs(
6409
6416
  "div",
6410
6417
  {
6411
- className: ce(r, `${ne}-product-tile-details`, {
6418
+ className: le(r, `${ne}-product-tile-details`, {
6412
6419
  embedded: !e,
6413
6420
  standalone: e
6414
6421
  }),
6415
6422
  children: [
6416
- /* @__PURE__ */ P.jsxs("div", { className: ce(r, `${ne}-product-tile-content`), children: [
6423
+ /* @__PURE__ */ P.jsxs("div", { className: le(r, `${ne}-product-tile-content`), children: [
6417
6424
  o && /* @__PURE__ */ P.jsx("p", { className: `${ne}-product-tile-brand`, children: o }),
6418
6425
  g ? /* @__PURE__ */ P.jsxs(
6419
6426
  "a",
6420
6427
  {
6421
6428
  "aria-label": `Go to product page for ${u}`,
6422
- className: ce(r, `${ne}-product-tile-pdp`),
6429
+ className: le(r, `${ne}-product-tile-pdp`),
6423
6430
  href: `${g}`,
6424
6431
  target: "_blank",
6425
6432
  rel: "noopener noreferrer",
@@ -6429,7 +6436,7 @@ const Wu = ({
6429
6436
  /* @__PURE__ */ P.jsx(
6430
6437
  "span",
6431
6438
  {
6432
- className: ce(r, `${ne}-product-tile-pdp-arrow`),
6439
+ className: le(r, `${ne}-product-tile-pdp-arrow`),
6433
6440
  children: "→"
6434
6441
  }
6435
6442
  )
@@ -6438,13 +6445,13 @@ const Wu = ({
6438
6445
  ) : /* @__PURE__ */ P.jsx(
6439
6446
  "p",
6440
6447
  {
6441
- className: ce(r, `${ne}-product-tile-name`),
6448
+ className: le(r, `${ne}-product-tile-name`),
6442
6449
  title: u,
6443
6450
  children: u
6444
6451
  }
6445
6452
  )
6446
6453
  ] }),
6447
- /* @__PURE__ */ P.jsx("div", { className: ce(r, `${ne}-product-tile-footer`), children: /* @__PURE__ */ P.jsx("p", { className: ce(r, `${ne}-product-tile-price`), children: l }) })
6454
+ /* @__PURE__ */ P.jsx("div", { className: le(r, `${ne}-product-tile-footer`), children: /* @__PURE__ */ P.jsx("p", { className: le(r, `${ne}-product-tile-price`), children: l }) })
6448
6455
  ]
6449
6456
  }
6450
6457
  )
@@ -6459,13 +6466,13 @@ const Wu = ({
6459
6466
  return n ? /* @__PURE__ */ P.jsxs(
6460
6467
  "div",
6461
6468
  {
6462
- className: ce(r, `${ne}-display-products widget-message`),
6469
+ className: le(r, `${ne}-display-products widget-message`),
6463
6470
  children: [
6464
6471
  /* @__PURE__ */ P.jsx("p", { children: u.message }),
6465
6472
  u.products && u.products.length > 0 && /* @__PURE__ */ P.jsx(
6466
6473
  "div",
6467
6474
  {
6468
- className: ce(r, `${ne}-product-list`, {
6475
+ className: le(r, `${ne}-product-list`, {
6469
6476
  embedded: !e,
6470
6477
  standalone: e
6471
6478
  }),
@@ -6492,14 +6499,14 @@ const Wu = ({
6492
6499
  }) => /* @__PURE__ */ P.jsx(
6493
6500
  "div",
6494
6501
  {
6495
- className: ce(e, `${ne}-error-message`, {
6502
+ className: le(e, `${ne}-error-message`, {
6496
6503
  standalone: n,
6497
6504
  embedded: !n
6498
6505
  }),
6499
6506
  children: /* @__PURE__ */ P.jsxs(
6500
6507
  "p",
6501
6508
  {
6502
- className: ce(e, `${ne}-error-message-text`, {
6509
+ className: le(e, `${ne}-error-message-text`, {
6503
6510
  standalone: n,
6504
6511
  embedded: !n
6505
6512
  }),
@@ -6518,7 +6525,7 @@ function kk(e) {
6518
6525
  const ry = ({ className: e, children: t, type: n, disabled: r = !1, onClick: u }) => /* @__PURE__ */ P.jsx(
6519
6526
  "button",
6520
6527
  {
6521
- className: ce(`${ne}-button`, e, { disabled: r }),
6528
+ className: le(`${ne}-button`, e, { disabled: r }),
6522
6529
  type: n || "button",
6523
6530
  disabled: r,
6524
6531
  onClick: u,
@@ -6532,7 +6539,7 @@ const ry = ({ className: e, children: t, type: n, disabled: r = !1, onClick: u }
6532
6539
  "button",
6533
6540
  {
6534
6541
  "aria-label": "Close",
6535
- className: ce(e, `${ne}-close-button`),
6542
+ className: le(e, `${ne}-close-button`),
6536
6543
  disabled: n,
6537
6544
  onClick: t,
6538
6545
  children: /* @__PURE__ */ P.jsx(
@@ -6557,12 +6564,12 @@ const ry = ({ className: e, children: t, type: n, disabled: r = !1, onClick: u }
6557
6564
  }) => /* @__PURE__ */ P.jsx(
6558
6565
  "div",
6559
6566
  {
6560
- className: ce(e, `${ne}-suggestion-container standalone`),
6567
+ className: le(e, `${ne}-suggestion-container standalone`),
6561
6568
  children: r.map((o) => /* @__PURE__ */ P.jsxs(
6562
6569
  ry,
6563
6570
  {
6564
6571
  disabled: n,
6565
- className: ce(e, `${ne}-suggestion-button standalone`),
6572
+ className: le(e, `${ne}-suggestion-button standalone`),
6566
6573
  onClick: () => u(o, t),
6567
6574
  children: [
6568
6575
  /* @__PURE__ */ P.jsx(kk, { size: "1.5rem", style: { minHeight: "1.5rem", minWidth: "1.5rem" } }),
@@ -6580,8 +6587,8 @@ const ry = ({ className: e, children: t, type: n, disabled: r = !1, onClick: u }
6580
6587
  handleSuggestionClick: r
6581
6588
  }) => {
6582
6589
  const { processedEventIds: u } = QE(), o = u.has(t.id);
6583
- return /* @__PURE__ */ P.jsxs("div", { className: ce(e, `${ne}-follow-up`), children: [
6584
- /* @__PURE__ */ P.jsx("p", { className: ce(e, `${ne}-text`), children: t.message }),
6590
+ return /* @__PURE__ */ P.jsxs("div", { className: le(e, `${ne}-follow-up`), children: [
6591
+ /* @__PURE__ */ P.jsx("p", { className: le(e, `${ne}-text`), children: t.message }),
6585
6592
  n && /* @__PURE__ */ P.jsx(
6586
6593
  xk,
6587
6594
  {
@@ -6595,12 +6602,12 @@ const ry = ({ className: e, children: t, type: n, disabled: r = !1, onClick: u }
6595
6602
  !n && /* @__PURE__ */ P.jsx(
6596
6603
  "div",
6597
6604
  {
6598
- className: ce(e, `${ne}-suggestion-container embedded`),
6605
+ className: le(e, `${ne}-suggestion-container embedded`),
6599
6606
  children: t.suggestions.map((l) => /* @__PURE__ */ P.jsx(
6600
6607
  "button",
6601
6608
  {
6602
6609
  disabled: o,
6603
- className: ce(
6610
+ className: le(
6604
6611
  e,
6605
6612
  `${ne}-suggestion-button embedded`
6606
6613
  ),
@@ -7822,30 +7829,30 @@ function zk() {
7822
7829
  if (!k) return [];
7823
7830
  O = O || {};
7824
7831
  var L = 1, V = 1;
7825
- function j(le) {
7826
- var fe = le.match(t);
7832
+ function j(ce) {
7833
+ var fe = ce.match(t);
7827
7834
  fe && (L += fe.length);
7828
- var be = le.lastIndexOf(d);
7829
- V = ~be ? le.length - be : V + le.length;
7835
+ var be = ce.lastIndexOf(d);
7836
+ V = ~be ? ce.length - be : V + ce.length;
7830
7837
  }
7831
7838
  function Z() {
7832
- var le = { line: L, column: V };
7839
+ var ce = { line: L, column: V };
7833
7840
  return function(fe) {
7834
- return fe.position = new he(le), Ce(), fe;
7841
+ return fe.position = new he(ce), Ce(), fe;
7835
7842
  };
7836
7843
  }
7837
- function he(le) {
7838
- this.start = le, this.end = { line: L, column: V }, this.source = O.source;
7844
+ function he(ce) {
7845
+ this.start = ce, this.end = { line: L, column: V }, this.source = O.source;
7839
7846
  }
7840
7847
  he.prototype.content = k;
7841
- function F(le) {
7848
+ function F(ce) {
7842
7849
  var fe = new Error(
7843
- O.source + ":" + L + ":" + V + ": " + le
7850
+ O.source + ":" + L + ":" + V + ": " + ce
7844
7851
  );
7845
- if (fe.reason = le, fe.filename = O.source, fe.line = L, fe.column = V, fe.source = k, !O.silent) throw fe;
7852
+ if (fe.reason = ce, fe.filename = O.source, fe.line = L, fe.column = V, fe.source = k, !O.silent) throw fe;
7846
7853
  }
7847
- function me(le) {
7848
- var fe = le.exec(k);
7854
+ function me(ce) {
7855
+ var fe = ce.exec(k);
7849
7856
  if (fe) {
7850
7857
  var be = fe[0];
7851
7858
  return j(be), k = k.slice(be.length), fe;
@@ -7854,31 +7861,31 @@ function zk() {
7854
7861
  function Ce() {
7855
7862
  me(n);
7856
7863
  }
7857
- function xe(le) {
7864
+ function xe(ce) {
7858
7865
  var fe;
7859
- for (le = le || []; fe = H(); )
7860
- fe !== !1 && le.push(fe);
7861
- return le;
7866
+ for (ce = ce || []; fe = H(); )
7867
+ fe !== !1 && ce.push(fe);
7868
+ return ce;
7862
7869
  }
7863
7870
  function H() {
7864
- var le = Z();
7871
+ var ce = Z();
7865
7872
  if (!(h != k.charAt(0) || g != k.charAt(1))) {
7866
7873
  for (var fe = 2; y != k.charAt(fe) && (g != k.charAt(fe) || h != k.charAt(fe + 1)); )
7867
7874
  ++fe;
7868
7875
  if (fe += 2, y === k.charAt(fe - 1))
7869
7876
  return F("End of comment missing");
7870
7877
  var be = k.slice(2, fe - 2);
7871
- return V += 2, j(be), k = k.slice(fe), V += 2, le({
7878
+ return V += 2, j(be), k = k.slice(fe), V += 2, ce({
7872
7879
  type: b,
7873
7880
  comment: be
7874
7881
  });
7875
7882
  }
7876
7883
  }
7877
7884
  function ge() {
7878
- var le = Z(), fe = me(r);
7885
+ var ce = Z(), fe = me(r);
7879
7886
  if (fe) {
7880
7887
  if (H(), !me(u)) return F("property missing ':'");
7881
- var be = me(o), Oe = le({
7888
+ var be = me(o), Oe = ce({
7882
7889
  type: T,
7883
7890
  property: S(fe[0].replace(e, y)),
7884
7891
  value: be ? S(be[0].replace(e, y)) : y
@@ -7887,11 +7894,11 @@ function zk() {
7887
7894
  }
7888
7895
  }
7889
7896
  function pe() {
7890
- var le = [];
7891
- xe(le);
7897
+ var ce = [];
7898
+ xe(ce);
7892
7899
  for (var fe; fe = ge(); )
7893
- fe !== !1 && (le.push(fe), xe(le));
7894
- return le;
7900
+ fe !== !1 && (ce.push(fe), xe(ce));
7901
+ return ce;
7895
7902
  }
7896
7903
  return Ce(), pe();
7897
7904
  };
@@ -8949,10 +8956,10 @@ function Mx(e, t, n) {
8949
8956
  return F.enter("codeFencedFence"), je(be) ? Ye(F, pe, "linePrefix", r.parser.constructs.disable.null.includes("codeIndented") ? void 0 : 4)(be) : pe(be);
8950
8957
  }
8951
8958
  function pe(be) {
8952
- return be === c ? (F.enter("codeFencedFenceSequence"), le(be)) : Ce(be);
8959
+ return be === c ? (F.enter("codeFencedFenceSequence"), ce(be)) : Ce(be);
8953
8960
  }
8954
- function le(be) {
8955
- return be === c ? (xe++, F.consume(be), le) : xe >= l ? (F.exit("codeFencedFenceSequence"), je(be) ? Ye(F, fe, "whitespace")(be) : fe(be)) : Ce(be);
8961
+ function ce(be) {
8962
+ return be === c ? (xe++, F.consume(be), ce) : xe >= l ? (F.exit("codeFencedFenceSequence"), je(be) ? Ye(F, fe, "whitespace")(be) : fe(be)) : Ce(be);
8956
8963
  }
8957
8964
  function fe(be) {
8958
8965
  return be === null || Ie(be) ? (F.exit("codeFencedFence"), me(be)) : Ce(be);
@@ -9661,16 +9668,16 @@ function dN(e, t, n) {
9661
9668
  return N === null || Ie(N) ? pe(N) : je(N) ? (e.consume(N), ge) : n(N);
9662
9669
  }
9663
9670
  function pe(N) {
9664
- return N === 45 && u === 2 ? (e.consume(N), Oe) : N === 60 && u === 1 ? (e.consume(N), oe) : N === 62 && u === 4 ? (e.consume(N), I) : N === 63 && u === 3 ? (e.consume(N), A) : N === 93 && u === 5 ? (e.consume(N), K) : Ie(N) && (u === 6 || u === 7) ? (e.exit("htmlFlowData"), e.check(lN, q, le)(N)) : N === null || Ie(N) ? (e.exit("htmlFlowData"), le(N)) : (e.consume(N), pe);
9671
+ return N === 45 && u === 2 ? (e.consume(N), Oe) : N === 60 && u === 1 ? (e.consume(N), oe) : N === 62 && u === 4 ? (e.consume(N), I) : N === 63 && u === 3 ? (e.consume(N), A) : N === 93 && u === 5 ? (e.consume(N), G) : Ie(N) && (u === 6 || u === 7) ? (e.exit("htmlFlowData"), e.check(lN, q, ce)(N)) : N === null || Ie(N) ? (e.exit("htmlFlowData"), ce(N)) : (e.consume(N), pe);
9665
9672
  }
9666
- function le(N) {
9673
+ function ce(N) {
9667
9674
  return e.check(cN, fe, q)(N);
9668
9675
  }
9669
9676
  function fe(N) {
9670
9677
  return e.enter("lineEnding"), e.consume(N), e.exit("lineEnding"), be;
9671
9678
  }
9672
9679
  function be(N) {
9673
- return N === null || Ie(N) ? le(N) : (e.enter("htmlFlowData"), pe(N));
9680
+ return N === null || Ie(N) ? ce(N) : (e.enter("htmlFlowData"), pe(N));
9674
9681
  }
9675
9682
  function Oe(N) {
9676
9683
  return N === 45 ? (e.consume(N), A) : pe(N);
@@ -9685,7 +9692,7 @@ function dN(e, t, n) {
9685
9692
  }
9686
9693
  return Wt(N) && l.length < 8 ? (e.consume(N), l += String.fromCharCode(N), M) : pe(N);
9687
9694
  }
9688
- function K(N) {
9695
+ function G(N) {
9689
9696
  return N === 93 ? (e.consume(N), A) : pe(N);
9690
9697
  }
9691
9698
  function A(N) {
@@ -9787,10 +9794,10 @@ function gN(e, t, n) {
9787
9794
  return A === 61 ? (e.consume(A), pe) : Ie(A) ? (l = ge, oe(A)) : je(A) ? (e.consume(A), ge) : xe(A);
9788
9795
  }
9789
9796
  function pe(A) {
9790
- return A === null || A === 60 || A === 61 || A === 62 || A === 96 ? n(A) : A === 34 || A === 39 ? (e.consume(A), u = A, le) : Ie(A) ? (l = pe, oe(A)) : je(A) ? (e.consume(A), pe) : (e.consume(A), fe);
9797
+ return A === null || A === 60 || A === 61 || A === 62 || A === 96 ? n(A) : A === 34 || A === 39 ? (e.consume(A), u = A, ce) : Ie(A) ? (l = pe, oe(A)) : je(A) ? (e.consume(A), pe) : (e.consume(A), fe);
9791
9798
  }
9792
- function le(A) {
9793
- return A === u ? (e.consume(A), u = void 0, be) : A === null ? n(A) : Ie(A) ? (l = le, oe(A)) : (e.consume(A), le);
9799
+ function ce(A) {
9800
+ return A === u ? (e.consume(A), u = void 0, be) : A === null ? n(A) : Ie(A) ? (l = ce, oe(A)) : (e.consume(A), ce);
9794
9801
  }
9795
9802
  function fe(A) {
9796
9803
  return A === null || A === 34 || A === 39 || A === 60 || A === 61 || A === 96 ? n(A) : A === 47 || A === 62 || Ze(A) ? xe(A) : (e.consume(A), fe);
@@ -9805,9 +9812,9 @@ function gN(e, t, n) {
9805
9812
  return e.exit("htmlTextData"), e.enter("lineEnding"), e.consume(A), e.exit("lineEnding"), M;
9806
9813
  }
9807
9814
  function M(A) {
9808
- return je(A) ? Ye(e, K, "linePrefix", r.parser.constructs.disable.null.includes("codeIndented") ? void 0 : 4)(A) : K(A);
9815
+ return je(A) ? Ye(e, G, "linePrefix", r.parser.constructs.disable.null.includes("codeIndented") ? void 0 : 4)(A) : G(A);
9809
9816
  }
9810
- function K(A) {
9817
+ function G(A) {
9811
9818
  return e.enter("htmlTextData"), l(A);
9812
9819
  }
9813
9820
  }
@@ -10355,14 +10362,14 @@ function r3(e, t, n) {
10355
10362
  const {
10356
10363
  _bufferIndex: ge,
10357
10364
  _index: pe,
10358
- line: le,
10365
+ line: ce,
10359
10366
  column: fe,
10360
10367
  offset: be
10361
10368
  } = r;
10362
10369
  return {
10363
10370
  _bufferIndex: ge,
10364
10371
  _index: pe,
10365
- line: le,
10372
+ line: ce,
10366
10373
  column: fe,
10367
10374
  offset: be
10368
10375
  };
@@ -10391,8 +10398,8 @@ function r3(e, t, n) {
10391
10398
  l[r._index].length && (r._bufferIndex = -1, r._index++)), h.previous = ge;
10392
10399
  }
10393
10400
  function j(ge, pe) {
10394
- const le = pe || {};
10395
- return le.type = ge, le.start = S(), h.events.push(["enter", le, h]), c.push(le), le;
10401
+ const ce = pe || {};
10402
+ return ce.type = ge, ce.start = S(), h.events.push(["enter", ce, h]), c.push(ce), ce;
10396
10403
  }
10397
10404
  function Z(ge) {
10398
10405
  const pe = c.pop();
@@ -10405,9 +10412,9 @@ function r3(e, t, n) {
10405
10412
  pe.restore();
10406
10413
  }
10407
10414
  function me(ge, pe) {
10408
- return le;
10409
- function le(fe, be, Oe) {
10410
- let oe, M, K, A;
10415
+ return ce;
10416
+ function ce(fe, be, Oe) {
10417
+ let oe, M, G, A;
10411
10418
  return Array.isArray(fe) ? (
10412
10419
  /* c8 ignore next 1 */
10413
10420
  q(fe)
@@ -10436,7 +10443,7 @@ function r3(e, t, n) {
10436
10443
  function N(ke) {
10437
10444
  return $e;
10438
10445
  function $e(Fe) {
10439
- return A = xe(), K = ke, ke.partial || (h.currentConstruct = ke), ke.name && h.parser.constructs.disable.null.includes(ke.name) ? Ne() : ke.tokenize.call(
10446
+ return A = xe(), G = ke, ke.partial || (h.currentConstruct = ke), ke.name && h.parser.constructs.disable.null.includes(ke.name) ? Ne() : ke.tokenize.call(
10440
10447
  // If we do have fields, create an object w/ `context` as its
10441
10448
  // prototype.
10442
10449
  // This allows a “live binding”, which is needed for `interrupt`.
@@ -10448,7 +10455,7 @@ function r3(e, t, n) {
10448
10455
  }
10449
10456
  }
10450
10457
  function Ee(ke) {
10451
- return ge(K, A), be;
10458
+ return ge(G, A), be;
10452
10459
  }
10453
10460
  function Ne(ke) {
10454
10461
  return A.restore(), ++M < oe.length ? N(oe[M]) : Oe;
@@ -10459,13 +10466,13 @@ function r3(e, t, n) {
10459
10466
  ge.resolveAll && !o.includes(ge) && o.push(ge), ge.resolve && mn(h.events, pe, h.events.length - pe, ge.resolve(h.events.slice(pe), h)), ge.resolveTo && (h.events = ge.resolveTo(h.events, h));
10460
10467
  }
10461
10468
  function xe() {
10462
- const ge = S(), pe = h.previous, le = h.currentConstruct, fe = h.events.length, be = Array.from(c);
10469
+ const ge = S(), pe = h.previous, ce = h.currentConstruct, fe = h.events.length, be = Array.from(c);
10463
10470
  return {
10464
10471
  from: fe,
10465
10472
  restore: Oe
10466
10473
  };
10467
10474
  function Oe() {
10468
- r = ge, h.previous = pe, h.currentConstruct = le, h.events.length = fe, c = be, H();
10475
+ r = ge, h.previous = pe, h.currentConstruct = ce, h.events.length = fe, c = be, H();
10469
10476
  }
10470
10477
  }
10471
10478
  function H() {
@@ -10681,12 +10688,12 @@ function h3(e) {
10681
10688
  emphasis: d(),
10682
10689
  hardBreakEscape: d(pe),
10683
10690
  hardBreakTrailing: d(pe),
10684
- htmlFlow: d(le),
10691
+ htmlFlow: d(ce),
10685
10692
  htmlFlowData: H,
10686
10693
  htmlText: d(fe),
10687
10694
  htmlTextData: H,
10688
10695
  image: d(oe),
10689
- label: K,
10696
+ label: G,
10690
10697
  labelText: M,
10691
10698
  lineEnding: ge,
10692
10699
  link: d(Oe),
@@ -10708,7 +10715,7 @@ function h3(e) {
10708
10715
  Ry(t, (e || {}).mdastExtensions || []);
10709
10716
  const n = {};
10710
10717
  return r;
10711
- function r(G) {
10718
+ function r(K) {
10712
10719
  let de = {
10713
10720
  type: "root",
10714
10721
  children: []
@@ -10724,31 +10731,31 @@ function h3(e) {
10724
10731
  data: n
10725
10732
  }, Be = [];
10726
10733
  let qe = -1;
10727
- for (; ++qe < G.length; )
10728
- if (G[qe][1].type === "listOrdered" || G[qe][1].type === "listUnordered")
10729
- if (G[qe][0] === "enter")
10734
+ for (; ++qe < K.length; )
10735
+ if (K[qe][1].type === "listOrdered" || K[qe][1].type === "listUnordered")
10736
+ if (K[qe][0] === "enter")
10730
10737
  Be.push(qe);
10731
10738
  else {
10732
10739
  const It = Be.pop();
10733
- qe = u(G, It, qe);
10740
+ qe = u(K, It, qe);
10734
10741
  }
10735
- for (qe = -1; ++qe < G.length; ) {
10736
- const It = t[G[qe][0]];
10737
- Oy.call(It, G[qe][1].type) && It[G[qe][1].type].call(Object.assign({
10738
- sliceSerialize: G[qe][2].sliceSerialize
10739
- }, Re), G[qe][1]);
10742
+ for (qe = -1; ++qe < K.length; ) {
10743
+ const It = t[K[qe][0]];
10744
+ Oy.call(It, K[qe][1].type) && It[K[qe][1].type].call(Object.assign({
10745
+ sliceSerialize: K[qe][2].sliceSerialize
10746
+ }, Re), K[qe][1]);
10740
10747
  }
10741
10748
  if (Re.tokenStack.length > 0) {
10742
10749
  const It = Re.tokenStack[Re.tokenStack.length - 1];
10743
10750
  (It[1] || $g).call(Re, void 0, It[0]);
10744
10751
  }
10745
10752
  for (de.position = {
10746
- start: $r(G.length > 0 ? G[0][1].start : {
10753
+ start: $r(K.length > 0 ? K[0][1].start : {
10747
10754
  line: 1,
10748
10755
  column: 1,
10749
10756
  offset: 0
10750
10757
  }),
10751
- end: $r(G.length > 0 ? G[G.length - 2][1].end : {
10758
+ end: $r(K.length > 0 ? K[K.length - 2][1].end : {
10752
10759
  line: 1,
10753
10760
  column: 1,
10754
10761
  offset: 0
@@ -10757,10 +10764,10 @@ function h3(e) {
10757
10764
  de = t.transforms[qe](de) || de;
10758
10765
  return de;
10759
10766
  }
10760
- function u(G, de, Re) {
10767
+ function u(K, de, Re) {
10761
10768
  let Be = de - 1, qe = -1, It = !1, ur, En, Ar, Xr;
10762
10769
  for (; ++Be <= Re; ) {
10763
- const Ot = G[Be];
10770
+ const Ot = K[Be];
10764
10771
  switch (Ot[1].type) {
10765
10772
  case "listUnordered":
10766
10773
  case "listOrdered":
@@ -10785,13 +10792,13 @@ function h3(e) {
10785
10792
  if (ur) {
10786
10793
  let jn = Be;
10787
10794
  for (En = void 0; jn--; ) {
10788
- const an = G[jn];
10795
+ const an = K[jn];
10789
10796
  if (an[1].type === "lineEnding" || an[1].type === "lineEndingBlank") {
10790
10797
  if (an[0] === "exit") continue;
10791
- En && (G[En][1].type = "lineEndingBlank", It = !0), an[1].type = "lineEnding", En = jn;
10798
+ En && (K[En][1].type = "lineEndingBlank", It = !0), an[1].type = "lineEnding", En = jn;
10792
10799
  } else if (!(an[1].type === "linePrefix" || an[1].type === "blockQuotePrefix" || an[1].type === "blockQuotePrefixWhitespace" || an[1].type === "blockQuoteMarker" || an[1].type === "listItemIndent")) break;
10793
10800
  }
10794
- Ar && (!En || Ar < En) && (ur._spread = !0), ur.end = Object.assign({}, En ? G[En][1].start : Ot[1].end), G.splice(En || Be, 0, ["exit", ur, Ot[2]]), Be++, Re++;
10801
+ Ar && (!En || Ar < En) && (ur._spread = !0), ur.end = Object.assign({}, En ? K[En][1].start : Ot[1].end), K.splice(En || Be, 0, ["exit", ur, Ot[2]]), Be++, Re++;
10795
10802
  }
10796
10803
  if (Ot[1].type === "listItemPrefix") {
10797
10804
  const jn = {
@@ -10801,16 +10808,16 @@ function h3(e) {
10801
10808
  // @ts-expect-error: we’ll add `end` in a second.
10802
10809
  end: void 0
10803
10810
  };
10804
- ur = jn, G.splice(Be, 0, ["enter", jn, Ot[2]]), Be++, Re++, Ar = void 0, Xr = !0;
10811
+ ur = jn, K.splice(Be, 0, ["enter", jn, Ot[2]]), Be++, Re++, Ar = void 0, Xr = !0;
10805
10812
  }
10806
10813
  }
10807
10814
  }
10808
- return G[de][1]._spread = It, Re;
10815
+ return K[de][1]._spread = It, Re;
10809
10816
  }
10810
- function o(G, de) {
10817
+ function o(K, de) {
10811
10818
  return Re;
10812
10819
  function Re(Be) {
10813
- c.call(this, G(Be), Be), de && de.call(this, Be);
10820
+ c.call(this, K(Be), Be), de && de.call(this, Be);
10814
10821
  }
10815
10822
  }
10816
10823
  function l() {
@@ -10819,28 +10826,28 @@ function h3(e) {
10819
10826
  children: []
10820
10827
  });
10821
10828
  }
10822
- function c(G, de, Re) {
10823
- this.stack[this.stack.length - 1].children.push(G), this.stack.push(G), this.tokenStack.push([de, Re || void 0]), G.position = {
10829
+ function c(K, de, Re) {
10830
+ this.stack[this.stack.length - 1].children.push(K), this.stack.push(K), this.tokenStack.push([de, Re || void 0]), K.position = {
10824
10831
  start: $r(de.start),
10825
10832
  // @ts-expect-error: `end` will be patched later.
10826
10833
  end: void 0
10827
10834
  };
10828
10835
  }
10829
- function d(G) {
10836
+ function d(K) {
10830
10837
  return de;
10831
10838
  function de(Re) {
10832
- G && G.call(this, Re), h.call(this, Re);
10839
+ K && K.call(this, Re), h.call(this, Re);
10833
10840
  }
10834
10841
  }
10835
- function h(G, de) {
10842
+ function h(K, de) {
10836
10843
  const Re = this.stack.pop(), Be = this.tokenStack.pop();
10837
10844
  if (Be)
10838
- Be[0].type !== G.type && (de ? de.call(this, G, Be[0]) : (Be[1] || $g).call(this, G, Be[0]));
10839
- else throw new Error("Cannot close `" + G.type + "` (" + Pu({
10840
- start: G.start,
10841
- end: G.end
10845
+ Be[0].type !== K.type && (de ? de.call(this, K, Be[0]) : (Be[1] || $g).call(this, K, Be[0]));
10846
+ else throw new Error("Cannot close `" + K.type + "` (" + Pu({
10847
+ start: K.start,
10848
+ end: K.end
10842
10849
  }) + "): it’s not open");
10843
- Re.position.end = $r(G.end);
10850
+ Re.position.end = $r(K.end);
10844
10851
  }
10845
10852
  function g() {
10846
10853
  return kh(this.stack.pop());
@@ -10848,134 +10855,134 @@ function h3(e) {
10848
10855
  function y() {
10849
10856
  this.data.expectingFirstListItemValue = !0;
10850
10857
  }
10851
- function b(G) {
10858
+ function b(K) {
10852
10859
  if (this.data.expectingFirstListItemValue) {
10853
10860
  const de = this.stack[this.stack.length - 2];
10854
- de.start = Number.parseInt(this.sliceSerialize(G), 10), this.data.expectingFirstListItemValue = void 0;
10861
+ de.start = Number.parseInt(this.sliceSerialize(K), 10), this.data.expectingFirstListItemValue = void 0;
10855
10862
  }
10856
10863
  }
10857
10864
  function T() {
10858
- const G = this.resume(), de = this.stack[this.stack.length - 1];
10859
- de.lang = G;
10865
+ const K = this.resume(), de = this.stack[this.stack.length - 1];
10866
+ de.lang = K;
10860
10867
  }
10861
10868
  function S() {
10862
- const G = this.resume(), de = this.stack[this.stack.length - 1];
10863
- de.meta = G;
10869
+ const K = this.resume(), de = this.stack[this.stack.length - 1];
10870
+ de.meta = K;
10864
10871
  }
10865
10872
  function k() {
10866
10873
  this.data.flowCodeInside || (this.buffer(), this.data.flowCodeInside = !0);
10867
10874
  }
10868
10875
  function O() {
10869
- const G = this.resume(), de = this.stack[this.stack.length - 1];
10870
- de.value = G.replace(/^(\r?\n|\r)|(\r?\n|\r)$/g, ""), this.data.flowCodeInside = void 0;
10876
+ const K = this.resume(), de = this.stack[this.stack.length - 1];
10877
+ de.value = K.replace(/^(\r?\n|\r)|(\r?\n|\r)$/g, ""), this.data.flowCodeInside = void 0;
10871
10878
  }
10872
10879
  function L() {
10873
- const G = this.resume(), de = this.stack[this.stack.length - 1];
10874
- de.value = G.replace(/(\r?\n|\r)$/g, "");
10880
+ const K = this.resume(), de = this.stack[this.stack.length - 1];
10881
+ de.value = K.replace(/(\r?\n|\r)$/g, "");
10875
10882
  }
10876
- function V(G) {
10883
+ function V(K) {
10877
10884
  const de = this.resume(), Re = this.stack[this.stack.length - 1];
10878
- Re.label = de, Re.identifier = Bn(this.sliceSerialize(G)).toLowerCase();
10885
+ Re.label = de, Re.identifier = Bn(this.sliceSerialize(K)).toLowerCase();
10879
10886
  }
10880
10887
  function j() {
10881
- const G = this.resume(), de = this.stack[this.stack.length - 1];
10882
- de.title = G;
10888
+ const K = this.resume(), de = this.stack[this.stack.length - 1];
10889
+ de.title = K;
10883
10890
  }
10884
10891
  function Z() {
10885
- const G = this.resume(), de = this.stack[this.stack.length - 1];
10886
- de.url = G;
10892
+ const K = this.resume(), de = this.stack[this.stack.length - 1];
10893
+ de.url = K;
10887
10894
  }
10888
- function he(G) {
10895
+ function he(K) {
10889
10896
  const de = this.stack[this.stack.length - 1];
10890
10897
  if (!de.depth) {
10891
- const Re = this.sliceSerialize(G).length;
10898
+ const Re = this.sliceSerialize(K).length;
10892
10899
  de.depth = Re;
10893
10900
  }
10894
10901
  }
10895
10902
  function F() {
10896
10903
  this.data.setextHeadingSlurpLineEnding = !0;
10897
10904
  }
10898
- function me(G) {
10905
+ function me(K) {
10899
10906
  const de = this.stack[this.stack.length - 1];
10900
- de.depth = this.sliceSerialize(G).codePointAt(0) === 61 ? 1 : 2;
10907
+ de.depth = this.sliceSerialize(K).codePointAt(0) === 61 ? 1 : 2;
10901
10908
  }
10902
10909
  function Ce() {
10903
10910
  this.data.setextHeadingSlurpLineEnding = void 0;
10904
10911
  }
10905
- function xe(G) {
10912
+ function xe(K) {
10906
10913
  const Re = this.stack[this.stack.length - 1].children;
10907
10914
  let Be = Re[Re.length - 1];
10908
10915
  (!Be || Be.type !== "text") && (Be = go(), Be.position = {
10909
- start: $r(G.start),
10916
+ start: $r(K.start),
10910
10917
  // @ts-expect-error: we’ll add `end` later.
10911
10918
  end: void 0
10912
10919
  }, Re.push(Be)), this.stack.push(Be);
10913
10920
  }
10914
- function H(G) {
10921
+ function H(K) {
10915
10922
  const de = this.stack.pop();
10916
- de.value += this.sliceSerialize(G), de.position.end = $r(G.end);
10923
+ de.value += this.sliceSerialize(K), de.position.end = $r(K.end);
10917
10924
  }
10918
- function ge(G) {
10925
+ function ge(K) {
10919
10926
  const de = this.stack[this.stack.length - 1];
10920
10927
  if (this.data.atHardBreak) {
10921
10928
  const Re = de.children[de.children.length - 1];
10922
- Re.position.end = $r(G.end), this.data.atHardBreak = void 0;
10929
+ Re.position.end = $r(K.end), this.data.atHardBreak = void 0;
10923
10930
  return;
10924
10931
  }
10925
- !this.data.setextHeadingSlurpLineEnding && t.canContainEols.includes(de.type) && (xe.call(this, G), H.call(this, G));
10932
+ !this.data.setextHeadingSlurpLineEnding && t.canContainEols.includes(de.type) && (xe.call(this, K), H.call(this, K));
10926
10933
  }
10927
10934
  function pe() {
10928
10935
  this.data.atHardBreak = !0;
10929
10936
  }
10930
- function le() {
10931
- const G = this.resume(), de = this.stack[this.stack.length - 1];
10932
- de.value = G;
10937
+ function ce() {
10938
+ const K = this.resume(), de = this.stack[this.stack.length - 1];
10939
+ de.value = K;
10933
10940
  }
10934
10941
  function fe() {
10935
- const G = this.resume(), de = this.stack[this.stack.length - 1];
10936
- de.value = G;
10942
+ const K = this.resume(), de = this.stack[this.stack.length - 1];
10943
+ de.value = K;
10937
10944
  }
10938
10945
  function be() {
10939
- const G = this.resume(), de = this.stack[this.stack.length - 1];
10940
- de.value = G;
10946
+ const K = this.resume(), de = this.stack[this.stack.length - 1];
10947
+ de.value = K;
10941
10948
  }
10942
10949
  function Oe() {
10943
- const G = this.stack[this.stack.length - 1];
10950
+ const K = this.stack[this.stack.length - 1];
10944
10951
  if (this.data.inReference) {
10945
10952
  const de = this.data.referenceType || "shortcut";
10946
- G.type += "Reference", G.referenceType = de, delete G.url, delete G.title;
10953
+ K.type += "Reference", K.referenceType = de, delete K.url, delete K.title;
10947
10954
  } else
10948
- delete G.identifier, delete G.label;
10955
+ delete K.identifier, delete K.label;
10949
10956
  this.data.referenceType = void 0;
10950
10957
  }
10951
10958
  function oe() {
10952
- const G = this.stack[this.stack.length - 1];
10959
+ const K = this.stack[this.stack.length - 1];
10953
10960
  if (this.data.inReference) {
10954
10961
  const de = this.data.referenceType || "shortcut";
10955
- G.type += "Reference", G.referenceType = de, delete G.url, delete G.title;
10962
+ K.type += "Reference", K.referenceType = de, delete K.url, delete K.title;
10956
10963
  } else
10957
- delete G.identifier, delete G.label;
10964
+ delete K.identifier, delete K.label;
10958
10965
  this.data.referenceType = void 0;
10959
10966
  }
10960
- function M(G) {
10961
- const de = this.sliceSerialize(G), Re = this.stack[this.stack.length - 2];
10967
+ function M(K) {
10968
+ const de = this.sliceSerialize(K), Re = this.stack[this.stack.length - 2];
10962
10969
  Re.label = c3(de), Re.identifier = Bn(de).toLowerCase();
10963
10970
  }
10964
- function K() {
10965
- const G = this.stack[this.stack.length - 1], de = this.resume(), Re = this.stack[this.stack.length - 1];
10971
+ function G() {
10972
+ const K = this.stack[this.stack.length - 1], de = this.resume(), Re = this.stack[this.stack.length - 1];
10966
10973
  if (this.data.inReference = !0, Re.type === "link") {
10967
- const Be = G.children;
10974
+ const Be = K.children;
10968
10975
  Re.children = Be;
10969
10976
  } else
10970
10977
  Re.alt = de;
10971
10978
  }
10972
10979
  function A() {
10973
- const G = this.resume(), de = this.stack[this.stack.length - 1];
10974
- de.url = G;
10980
+ const K = this.resume(), de = this.stack[this.stack.length - 1];
10981
+ de.url = K;
10975
10982
  }
10976
10983
  function I() {
10977
- const G = this.resume(), de = this.stack[this.stack.length - 1];
10978
- de.title = G;
10984
+ const K = this.resume(), de = this.stack[this.stack.length - 1];
10985
+ de.title = K;
10979
10986
  }
10980
10987
  function q() {
10981
10988
  this.data.inReference = void 0;
@@ -10983,33 +10990,33 @@ function h3(e) {
10983
10990
  function N() {
10984
10991
  this.data.referenceType = "collapsed";
10985
10992
  }
10986
- function Ee(G) {
10993
+ function Ee(K) {
10987
10994
  const de = this.resume(), Re = this.stack[this.stack.length - 1];
10988
- Re.label = de, Re.identifier = Bn(this.sliceSerialize(G)).toLowerCase(), this.data.referenceType = "full";
10995
+ Re.label = de, Re.identifier = Bn(this.sliceSerialize(K)).toLowerCase(), this.data.referenceType = "full";
10989
10996
  }
10990
- function Ne(G) {
10991
- this.data.characterReferenceType = G.type;
10997
+ function Ne(K) {
10998
+ this.data.characterReferenceType = K.type;
10992
10999
  }
10993
- function ke(G) {
10994
- const de = this.sliceSerialize(G), Re = this.data.characterReferenceType;
11000
+ function ke(K) {
11001
+ const de = this.sliceSerialize(K), Re = this.data.characterReferenceType;
10995
11002
  let Be;
10996
11003
  Re ? (Be = _y(de, Re === "characterReferenceMarkerNumeric" ? 10 : 16), this.data.characterReferenceType = void 0) : Be = xh(de);
10997
11004
  const qe = this.stack[this.stack.length - 1];
10998
11005
  qe.value += Be;
10999
11006
  }
11000
- function $e(G) {
11007
+ function $e(K) {
11001
11008
  const de = this.stack.pop();
11002
- de.position.end = $r(G.end);
11009
+ de.position.end = $r(K.end);
11003
11010
  }
11004
- function Fe(G) {
11005
- H.call(this, G);
11011
+ function Fe(K) {
11012
+ H.call(this, K);
11006
11013
  const de = this.stack[this.stack.length - 1];
11007
- de.url = this.sliceSerialize(G);
11014
+ de.url = this.sliceSerialize(K);
11008
11015
  }
11009
- function Qe(G) {
11010
- H.call(this, G);
11016
+ function Qe(K) {
11017
+ H.call(this, K);
11011
11018
  const de = this.stack[this.stack.length - 1];
11012
- de.url = "mailto:" + this.sliceSerialize(G);
11019
+ de.url = "mailto:" + this.sliceSerialize(K);
11013
11020
  }
11014
11021
  function gt() {
11015
11022
  return {
@@ -11081,19 +11088,19 @@ function h3(e) {
11081
11088
  children: []
11082
11089
  };
11083
11090
  }
11084
- function _r(G) {
11091
+ function _r(K) {
11085
11092
  return {
11086
11093
  type: "list",
11087
- ordered: G.type === "listOrdered",
11094
+ ordered: K.type === "listOrdered",
11088
11095
  start: null,
11089
- spread: G._spread,
11096
+ spread: K._spread,
11090
11097
  children: []
11091
11098
  };
11092
11099
  }
11093
- function Sr(G) {
11100
+ function Sr(K) {
11094
11101
  return {
11095
11102
  type: "listItem",
11096
- spread: G._spread,
11103
+ spread: K._spread,
11097
11104
  checked: null,
11098
11105
  children: []
11099
11106
  };
@@ -22490,8 +22497,8 @@ function oP(e, t, n) {
22490
22497
  fe === "linePrefix") ge--;
22491
22498
  else break;
22492
22499
  }
22493
- const pe = ge > -1 ? r.events[ge][1].type : null, le = pe === "tableHead" || pe === "tableRow" ? F : d;
22494
- return le === F && r.parser.lazy[r.now().line] ? n(H) : le(H);
22500
+ const pe = ge > -1 ? r.events[ge][1].type : null, ce = pe === "tableHead" || pe === "tableRow" ? F : d;
22501
+ return ce === F && r.parser.lazy[r.now().line] ? n(H) : ce(H);
22495
22502
  }
22496
22503
  function d(H) {
22497
22504
  return e.enter("tableHead"), e.enter("tableRow"), h(H);
@@ -22673,27 +22680,27 @@ const Hl = () => /* @__PURE__ */ P.jsx("span", { className: `${ne}-blinking-curs
22673
22680
  remarkPlugins: [mP],
22674
22681
  rehypePlugins: [uR],
22675
22682
  components: {
22676
- h1: ({ children: o }) => /* @__PURE__ */ P.jsx("h1", { className: ce(e, `${ne}-header h1`), children: o }),
22677
- h2: ({ children: o }) => /* @__PURE__ */ P.jsx("h2", { className: ce(e, `${ne}-header h2`), children: o }),
22678
- h3: ({ children: o }) => /* @__PURE__ */ P.jsx("h3", { className: ce(e, `${ne}-header h3`), children: o }),
22679
- ul: ({ children: o }) => /* @__PURE__ */ P.jsx("ul", { className: ce(e, `${ne}-ul`), children: o }),
22680
- ol: ({ children: o }) => /* @__PURE__ */ P.jsx("ol", { className: ce(e, `${ne}-ol`), children: o }),
22681
- li: ({ children: o }) => /* @__PURE__ */ P.jsx("li", { className: ce(e, `${ne}-li`), children: o }),
22683
+ h1: ({ children: o }) => /* @__PURE__ */ P.jsx("h1", { className: le(e, `${ne}-header h1`), children: o }),
22684
+ h2: ({ children: o }) => /* @__PURE__ */ P.jsx("h2", { className: le(e, `${ne}-header h2`), children: o }),
22685
+ h3: ({ children: o }) => /* @__PURE__ */ P.jsx("h3", { className: le(e, `${ne}-header h3`), children: o }),
22686
+ ul: ({ children: o }) => /* @__PURE__ */ P.jsx("ul", { className: le(e, `${ne}-ul`), children: o }),
22687
+ ol: ({ children: o }) => /* @__PURE__ */ P.jsx("ol", { className: le(e, `${ne}-ol`), children: o }),
22688
+ li: ({ children: o }) => /* @__PURE__ */ P.jsx("li", { className: le(e, `${ne}-li`), children: o }),
22682
22689
  a: ({ href: o, children: l }) => /* @__PURE__ */ P.jsx(
22683
22690
  "a",
22684
22691
  Ue(Q({
22685
- className: ce(e, `${ne}-link`)
22692
+ className: le(e, `${ne}-link`)
22686
22693
  }, o ? { href: o, target: "_blank" } : {}), {
22687
22694
  rel: "noopener noreferrer",
22688
22695
  children: l
22689
22696
  })
22690
22697
  ),
22691
- table: ({ children: o }) => /* @__PURE__ */ P.jsx("table", { className: ce(e, `${ne}-table`), children: o }),
22692
- thead: ({ children: o }) => /* @__PURE__ */ P.jsx("thead", { className: ce(e, `${ne}-thead`), children: o }),
22693
- tbody: ({ children: o }) => /* @__PURE__ */ P.jsx("tbody", { className: ce(e, `${ne}-tbody`), children: o }),
22694
- tr: ({ children: o }) => /* @__PURE__ */ P.jsx("tr", { className: ce(e, `${ne}-tr`), children: o }),
22695
- th: ({ children: o }) => /* @__PURE__ */ P.jsx("th", { className: ce(e, `${ne}-th`), children: o }),
22696
- td: ({ children: o }) => /* @__PURE__ */ P.jsx("td", { className: ce(e, `${ne}-td`), children: o }),
22698
+ table: ({ children: o }) => /* @__PURE__ */ P.jsx("table", { className: le(e, `${ne}-table`), children: o }),
22699
+ thead: ({ children: o }) => /* @__PURE__ */ P.jsx("thead", { className: le(e, `${ne}-thead`), children: o }),
22700
+ tbody: ({ children: o }) => /* @__PURE__ */ P.jsx("tbody", { className: le(e, `${ne}-tbody`), children: o }),
22701
+ tr: ({ children: o }) => /* @__PURE__ */ P.jsx("tr", { className: le(e, `${ne}-tr`), children: o }),
22702
+ th: ({ children: o }) => /* @__PURE__ */ P.jsx("th", { className: le(e, `${ne}-th`), children: o }),
22703
+ td: ({ children: o }) => /* @__PURE__ */ P.jsx("td", { className: le(e, `${ne}-td`), children: o }),
22697
22704
  span: ({ className: o, children: l }) => o === `${ne}-blinking-cursor` ? /* @__PURE__ */ P.jsx(Hl, {}) : /* @__PURE__ */ P.jsx("span", { children: l })
22698
22705
  },
22699
22706
  children: t.message + (u ? `<span className='${ne}-blinking-cursor'></span>` : "")
@@ -22710,12 +22717,12 @@ const Hl = () => /* @__PURE__ */ P.jsx("span", { className: `${ne}-blinking-curs
22710
22717
  /* @__PURE__ */ P.jsxs(
22711
22718
  "div",
22712
22719
  {
22713
- className: ce(e, `${ne}-progress-message`, "standalone"),
22720
+ className: le(e, `${ne}-progress-message`, "standalone"),
22714
22721
  children: [
22715
22722
  /* @__PURE__ */ P.jsx(
22716
22723
  "span",
22717
22724
  {
22718
- className: ce(
22725
+ className: le(
22719
22726
  e,
22720
22727
  `${ne}-message-icon`,
22721
22728
  "progress-icon",
@@ -22724,7 +22731,7 @@ const Hl = () => /* @__PURE__ */ P.jsx("span", { className: `${ne}-blinking-curs
22724
22731
  children: /* @__PURE__ */ P.jsx(ny, {})
22725
22732
  }
22726
22733
  ),
22727
- /* @__PURE__ */ P.jsx("p", { className: ce(e, `${ne}-progress-text`, "standalone"), children: t.message })
22734
+ /* @__PURE__ */ P.jsx("p", { className: le(e, `${ne}-progress-text`, "standalone"), children: t.message })
22728
22735
  ]
22729
22736
  }
22730
22737
  ),
@@ -22732,7 +22739,7 @@ const Hl = () => /* @__PURE__ */ P.jsx("span", { className: `${ne}-blinking-curs
22732
22739
  /* @__PURE__ */ P.jsx(
22733
22740
  ry,
22734
22741
  {
22735
- className: ce(e, `${ne}-thought-context-button`),
22742
+ className: le(e, `${ne}-thought-context-button`),
22736
22743
  onClick: c,
22737
22744
  children: n ? /* @__PURE__ */ P.jsxs(P.Fragment, { children: [
22738
22745
  "Hide ",
@@ -22743,7 +22750,7 @@ const Hl = () => /* @__PURE__ */ P.jsx("span", { className: `${ne}-blinking-curs
22743
22750
  ] })
22744
22751
  }
22745
22752
  ),
22746
- n && /* @__PURE__ */ P.jsx("div", { className: ce(e, `${ne}-thought-container`), children: o && /* @__PURE__ */ P.jsx("p", { className: ce(e, `${ne}-progress-thought`), children: t.thought }) })
22753
+ n && /* @__PURE__ */ P.jsx("div", { className: le(e, `${ne}-thought-container`), children: o && /* @__PURE__ */ P.jsx("p", { className: le(e, `${ne}-progress-thought`), children: t.thought }) })
22747
22754
  ] })
22748
22755
  ] });
22749
22756
  }, EP = ({
@@ -22753,13 +22760,13 @@ const Hl = () => /* @__PURE__ */ P.jsx("span", { className: `${ne}-blinking-curs
22753
22760
  }) => n ? /* @__PURE__ */ P.jsx(gP, { globalClassName: e, message: t }) : /* @__PURE__ */ P.jsxs(
22754
22761
  "div",
22755
22762
  {
22756
- className: ce(e, `${ne}-progress-message`, "embedded"),
22763
+ className: le(e, `${ne}-progress-message`, "embedded"),
22757
22764
  title: t.message,
22758
22765
  children: [
22759
22766
  /* @__PURE__ */ P.jsx(
22760
22767
  "span",
22761
22768
  {
22762
- className: ce(
22769
+ className: le(
22763
22770
  e,
22764
22771
  `${ne}-message-icon`,
22765
22772
  "progress-icon",
@@ -22768,7 +22775,7 @@ const Hl = () => /* @__PURE__ */ P.jsx("span", { className: `${ne}-blinking-curs
22768
22775
  children: /* @__PURE__ */ P.jsx(ny, {})
22769
22776
  }
22770
22777
  ),
22771
- /* @__PURE__ */ P.jsx("i", { className: ce(e, `${ne}-progress-text`, "embedded"), children: t.message })
22778
+ /* @__PURE__ */ P.jsx("i", { className: le(e, `${ne}-progress-text`, "embedded"), children: t.message })
22772
22779
  ]
22773
22780
  }
22774
22781
  ), yP = ({
@@ -22780,7 +22787,7 @@ const Hl = () => /* @__PURE__ */ P.jsx("span", { className: `${ne}-blinking-curs
22780
22787
  return /* @__PURE__ */ P.jsxs(
22781
22788
  "div",
22782
22789
  {
22783
- className: ce(e, `${ne}-refined-search`, {
22790
+ className: le(e, `${ne}-refined-search`, {
22784
22791
  embedded: !n,
22785
22792
  standalone: n
22786
22793
  }),
@@ -22788,7 +22795,7 @@ const Hl = () => /* @__PURE__ */ P.jsx("span", { className: `${ne}-blinking-curs
22788
22795
  /* @__PURE__ */ P.jsxs(
22789
22796
  "div",
22790
22797
  {
22791
- className: ce(e, `${ne}-refined-search-query`, {
22798
+ className: le(e, `${ne}-refined-search-query`, {
22792
22799
  embedded: !n,
22793
22800
  standalone: n
22794
22801
  }),
@@ -22796,7 +22803,7 @@ const Hl = () => /* @__PURE__ */ P.jsx("span", { className: `${ne}-blinking-curs
22796
22803
  /* @__PURE__ */ P.jsx(
22797
22804
  "span",
22798
22805
  {
22799
- className: ce(
22806
+ className: le(
22800
22807
  e,
22801
22808
  `${ne}-message-icon`,
22802
22809
  `${ne}-refined-search-icon`,
@@ -22808,7 +22815,7 @@ const Hl = () => /* @__PURE__ */ P.jsx("span", { className: `${ne}-blinking-curs
22808
22815
  children: /* @__PURE__ */ P.jsx(xl, {})
22809
22816
  }
22810
22817
  ),
22811
- /* @__PURE__ */ P.jsx("p", { className: ce(e, `${ne}-text`, "bold"), children: (r = t.searchParams) == null ? void 0 : r.query })
22818
+ /* @__PURE__ */ P.jsx("p", { className: le(e, `${ne}-text`, "bold"), children: (r = t.searchParams) == null ? void 0 : r.query })
22812
22819
  ]
22813
22820
  }
22814
22821
  ),
@@ -22822,23 +22829,23 @@ const Hl = () => /* @__PURE__ */ P.jsx("span", { className: `${ne}-blinking-curs
22822
22829
  isWidgetStandalone: n
22823
22830
  }) => {
22824
22831
  var r, u;
22825
- return n ? /* @__PURE__ */ P.jsxs("div", { className: ce(e, `${ne}-user-message standalone`), children: [
22832
+ return n ? /* @__PURE__ */ P.jsxs("div", { className: le(e, `${ne}-user-message standalone`), children: [
22826
22833
  /* @__PURE__ */ P.jsx(
22827
22834
  "span",
22828
22835
  {
22829
- className: ce(
22836
+ className: le(
22830
22837
  e,
22831
22838
  `${ne}-message-icon user-message-icon standalone`
22832
22839
  ),
22833
22840
  children: /* @__PURE__ */ P.jsx(bg, {})
22834
22841
  }
22835
22842
  ),
22836
- /* @__PURE__ */ P.jsx("p", { className: ce(e, `${ne}-user-message-text`), children: (r = t.request) == null ? void 0 : r.userPrompt })
22837
- ] }) : /* @__PURE__ */ P.jsxs("div", { className: ce(e, `${ne}-user-message embedded`), children: [
22843
+ /* @__PURE__ */ P.jsx("p", { className: le(e, `${ne}-user-message-text`), children: (r = t.request) == null ? void 0 : r.userPrompt })
22844
+ ] }) : /* @__PURE__ */ P.jsxs("div", { className: le(e, `${ne}-user-message embedded`), children: [
22838
22845
  /* @__PURE__ */ P.jsx(
22839
22846
  "span",
22840
22847
  {
22841
- className: ce(
22848
+ className: le(
22842
22849
  e,
22843
22850
  `${ne}-message-icon user-message-icon embedded`
22844
22851
  ),
@@ -22854,7 +22861,7 @@ const Hl = () => /* @__PURE__ */ P.jsx("span", { className: `${ne}-blinking-curs
22854
22861
  }) => /* @__PURE__ */ P.jsx(
22855
22862
  "span",
22856
22863
  {
22857
- className: ce(t, `${ne}-facet-pill`, {
22864
+ className: le(t, `${ne}-facet-pill`, {
22858
22865
  standalone: e,
22859
22866
  embedded: !e
22860
22867
  }),
@@ -22867,12 +22874,12 @@ const Hl = () => /* @__PURE__ */ P.jsx("span", { className: `${ne}-blinking-curs
22867
22874
  filterCount: r
22868
22875
  }) => {
22869
22876
  var u;
22870
- return /* @__PURE__ */ P.jsxs("div", { className: ce(e, `${ne}-user-search standalone`), children: [
22871
- /* @__PURE__ */ P.jsxs("div", { className: ce(e, `${ne}-user-search-query`), children: [
22877
+ return /* @__PURE__ */ P.jsxs("div", { className: le(e, `${ne}-user-search standalone`), children: [
22878
+ /* @__PURE__ */ P.jsxs("div", { className: le(e, `${ne}-user-search-query`), children: [
22872
22879
  /* @__PURE__ */ P.jsx(
22873
22880
  "span",
22874
22881
  {
22875
- className: ce(
22882
+ className: le(
22876
22883
  e,
22877
22884
  `${ne}-message-icon user-search-icon standalone`
22878
22885
  ),
@@ -22882,7 +22889,7 @@ const Hl = () => /* @__PURE__ */ P.jsx("span", { className: `${ne}-blinking-curs
22882
22889
  /* @__PURE__ */ P.jsx(
22883
22890
  "p",
22884
22891
  {
22885
- className: ce(e, `${ne}-text bold`),
22892
+ className: le(e, `${ne}-text bold`),
22886
22893
  children: `Your search: ${(u = t.request) == null ? void 0 : u.searchParams.query}`
22887
22894
  }
22888
22895
  ),
@@ -22895,17 +22902,17 @@ const Hl = () => /* @__PURE__ */ P.jsx("span", { className: `${ne}-blinking-curs
22895
22902
  }
22896
22903
  )
22897
22904
  ] }),
22898
- n.length > 0 && /* @__PURE__ */ P.jsx("div", { className: ce(e, `${ne}-user-search-facet-filters`), children: n.map((o) => {
22905
+ n.length > 0 && /* @__PURE__ */ P.jsx("div", { className: le(e, `${ne}-user-search-facet-filters`), children: n.map((o) => {
22899
22906
  var l, c, d;
22900
22907
  return /* @__PURE__ */ P.jsxs(
22901
22908
  "div",
22902
22909
  {
22903
- className: ce(e, `${ne}-user-search-facets`),
22910
+ className: le(e, `${ne}-user-search-facets`),
22904
22911
  children: [
22905
22912
  /* @__PURE__ */ P.jsx(
22906
22913
  "p",
22907
22914
  {
22908
- className: ce(
22915
+ className: le(
22909
22916
  e,
22910
22917
  `${ne}-user-search-facet-category`
22911
22918
  ),
@@ -22915,7 +22922,7 @@ const Hl = () => /* @__PURE__ */ P.jsx("span", { className: `${ne}-blinking-curs
22915
22922
  /* @__PURE__ */ P.jsx(
22916
22923
  "p",
22917
22924
  {
22918
- className: ce(
22925
+ className: le(
22919
22926
  e,
22920
22927
  `${ne}-user-search-facet-values`
22921
22928
  ),
@@ -22947,11 +22954,11 @@ const Hl = () => /* @__PURE__ */ P.jsx("span", { className: `${ne}-blinking-curs
22947
22954
  facetFiltersList: u,
22948
22955
  filterCount: o
22949
22956
  }
22950
- ) : /* @__PURE__ */ P.jsxs("div", { className: ce(e, `${ne}-user-search embedded`), children: [
22957
+ ) : /* @__PURE__ */ P.jsxs("div", { className: le(e, `${ne}-user-search embedded`), children: [
22951
22958
  /* @__PURE__ */ P.jsx(
22952
22959
  "span",
22953
22960
  {
22954
- className: ce(
22961
+ className: le(
22955
22962
  e,
22956
22963
  `${ne}-message-icon user-search-icon embedded`
22957
22964
  ),
@@ -23038,6 +23045,8 @@ const Hl = () => /* @__PURE__ */ P.jsx("span", { className: `${ne}-blinking-curs
23038
23045
  message: e
23039
23046
  }
23040
23047
  );
23048
+ case "reconnect":
23049
+ return /* @__PURE__ */ P.jsx("p", { className: le(t, `${ne}-reconnect-message`), children: "Connection lost. Reconnecting to server..." });
23041
23050
  default:
23042
23051
  return null;
23043
23052
  }
@@ -23050,7 +23059,7 @@ const Hl = () => /* @__PURE__ */ P.jsx("span", { className: `${ne}-blinking-curs
23050
23059
  return t.map((u) => u.messages && u.type === "group" ? /* @__PURE__ */ P.jsx(
23051
23060
  "div",
23052
23061
  {
23053
- className: ce(
23062
+ className: le(
23054
23063
  r,
23055
23064
  `${ne}-message-group`,
23056
23065
  e ? "standalone" : "embedded"
@@ -23070,7 +23079,7 @@ const Hl = () => /* @__PURE__ */ P.jsx("span", { className: `${ne}-blinking-curs
23070
23079
  ) : u.type === "individual" && u.message ? /* @__PURE__ */ P.jsx(
23071
23080
  "div",
23072
23081
  {
23073
- className: ce(
23082
+ className: le(
23074
23083
  r,
23075
23084
  `${ne}-message`,
23076
23085
  e ? "standalone" : "embedded",
@@ -23099,7 +23108,7 @@ const Hl = () => /* @__PURE__ */ P.jsx("span", { className: `${ne}-blinking-curs
23099
23108
  }, [u]), r ? !h || o.length === 0 ? null : /* @__PURE__ */ P.jsxs(
23100
23109
  "div",
23101
23110
  {
23102
- className: ce(
23111
+ className: le(
23103
23112
  e,
23104
23113
  `${ne}-container`,
23105
23114
  `${ne}-embedded-chat`
@@ -23109,7 +23118,7 @@ const Hl = () => /* @__PURE__ */ P.jsx("span", { className: `${ne}-blinking-curs
23109
23118
  /* @__PURE__ */ P.jsxs(
23110
23119
  "div",
23111
23120
  {
23112
- className: ce(e, `${ne}-message-container`, "embedded"),
23121
+ className: le(e, `${ne}-message-container`, "embedded"),
23113
23122
  children: [
23114
23123
  /* @__PURE__ */ P.jsx(
23115
23124
  $h,
@@ -23432,12 +23441,12 @@ var ld = { exports: {} }, en = {}, cd = { exports: {} }, fd = {};
23432
23441
  var D1;
23433
23442
  function pL() {
23434
23443
  return D1 || (D1 = 1, function(e) {
23435
- function t(M, K) {
23444
+ function t(M, G) {
23436
23445
  var A = M.length;
23437
- M.push(K);
23446
+ M.push(G);
23438
23447
  e: for (; 0 < A; ) {
23439
23448
  var I = A - 1 >>> 1, q = M[I];
23440
- if (0 < u(q, K)) M[I] = K, M[A] = q, A = I;
23449
+ if (0 < u(q, G)) M[I] = G, M[A] = q, A = I;
23441
23450
  else break e;
23442
23451
  }
23443
23452
  }
@@ -23446,8 +23455,8 @@ function pL() {
23446
23455
  }
23447
23456
  function r(M) {
23448
23457
  if (M.length === 0) return null;
23449
- var K = M[0], A = M.pop();
23450
- if (A !== K) {
23458
+ var G = M[0], A = M.pop();
23459
+ if (A !== G) {
23451
23460
  M[0] = A;
23452
23461
  e: for (var I = 0, q = M.length, N = q >>> 1; I < N; ) {
23453
23462
  var Ee = 2 * (I + 1) - 1, Ne = M[Ee], ke = Ee + 1, $e = M[ke];
@@ -23456,11 +23465,11 @@ function pL() {
23456
23465
  else break e;
23457
23466
  }
23458
23467
  }
23459
- return K;
23468
+ return G;
23460
23469
  }
23461
- function u(M, K) {
23462
- var A = M.sortIndex - K.sortIndex;
23463
- return A !== 0 ? A : M.id - K.id;
23470
+ function u(M, G) {
23471
+ var A = M.sortIndex - G.sortIndex;
23472
+ return A !== 0 ? A : M.id - G.id;
23464
23473
  }
23465
23474
  if (typeof performance == "object" && typeof performance.now == "function") {
23466
23475
  var o = performance;
@@ -23476,37 +23485,37 @@ function pL() {
23476
23485
  var d = [], h = [], g = 1, y = null, b = 3, T = !1, S = !1, k = !1, O = typeof setTimeout == "function" ? setTimeout : null, L = typeof clearTimeout == "function" ? clearTimeout : null, V = typeof setImmediate != "undefined" ? setImmediate : null;
23477
23486
  typeof navigator != "undefined" && navigator.scheduling !== void 0 && navigator.scheduling.isInputPending !== void 0 && navigator.scheduling.isInputPending.bind(navigator.scheduling);
23478
23487
  function j(M) {
23479
- for (var K = n(h); K !== null; ) {
23480
- if (K.callback === null) r(h);
23481
- else if (K.startTime <= M) r(h), K.sortIndex = K.expirationTime, t(d, K);
23488
+ for (var G = n(h); G !== null; ) {
23489
+ if (G.callback === null) r(h);
23490
+ else if (G.startTime <= M) r(h), G.sortIndex = G.expirationTime, t(d, G);
23482
23491
  else break;
23483
- K = n(h);
23492
+ G = n(h);
23484
23493
  }
23485
23494
  }
23486
23495
  function Z(M) {
23487
23496
  if (k = !1, j(M), !S) if (n(d) !== null) S = !0, Oe(he);
23488
23497
  else {
23489
- var K = n(h);
23490
- K !== null && oe(Z, K.startTime - M);
23498
+ var G = n(h);
23499
+ G !== null && oe(Z, G.startTime - M);
23491
23500
  }
23492
23501
  }
23493
- function he(M, K) {
23502
+ function he(M, G) {
23494
23503
  S = !1, k && (k = !1, L(Ce), Ce = -1), T = !0;
23495
23504
  var A = b;
23496
23505
  try {
23497
- for (j(K), y = n(d); y !== null && (!(y.expirationTime > K) || M && !ge()); ) {
23506
+ for (j(G), y = n(d); y !== null && (!(y.expirationTime > G) || M && !ge()); ) {
23498
23507
  var I = y.callback;
23499
23508
  if (typeof I == "function") {
23500
23509
  y.callback = null, b = y.priorityLevel;
23501
- var q = I(y.expirationTime <= K);
23502
- K = e.unstable_now(), typeof q == "function" ? y.callback = q : y === n(d) && r(d), j(K);
23510
+ var q = I(y.expirationTime <= G);
23511
+ G = e.unstable_now(), typeof q == "function" ? y.callback = q : y === n(d) && r(d), j(G);
23503
23512
  } else r(d);
23504
23513
  y = n(d);
23505
23514
  }
23506
23515
  if (y !== null) var N = !0;
23507
23516
  else {
23508
23517
  var Ee = n(h);
23509
- Ee !== null && oe(Z, Ee.startTime - K), N = !1;
23518
+ Ee !== null && oe(Z, Ee.startTime - G), N = !1;
23510
23519
  }
23511
23520
  return N;
23512
23521
  } finally {
@@ -23521,33 +23530,33 @@ function pL() {
23521
23530
  if (me !== null) {
23522
23531
  var M = e.unstable_now();
23523
23532
  H = M;
23524
- var K = !0;
23533
+ var G = !0;
23525
23534
  try {
23526
- K = me(!0, M);
23535
+ G = me(!0, M);
23527
23536
  } finally {
23528
- K ? le() : (F = !1, me = null);
23537
+ G ? ce() : (F = !1, me = null);
23529
23538
  }
23530
23539
  } else F = !1;
23531
23540
  }
23532
- var le;
23533
- if (typeof V == "function") le = function() {
23541
+ var ce;
23542
+ if (typeof V == "function") ce = function() {
23534
23543
  V(pe);
23535
23544
  };
23536
23545
  else if (typeof MessageChannel != "undefined") {
23537
23546
  var fe = new MessageChannel(), be = fe.port2;
23538
- fe.port1.onmessage = pe, le = function() {
23547
+ fe.port1.onmessage = pe, ce = function() {
23539
23548
  be.postMessage(null);
23540
23549
  };
23541
- } else le = function() {
23550
+ } else ce = function() {
23542
23551
  O(pe, 0);
23543
23552
  };
23544
23553
  function Oe(M) {
23545
- me = M, F || (F = !0, le());
23554
+ me = M, F || (F = !0, ce());
23546
23555
  }
23547
- function oe(M, K) {
23556
+ function oe(M, G) {
23548
23557
  Ce = O(function() {
23549
23558
  M(e.unstable_now());
23550
- }, K);
23559
+ }, G);
23551
23560
  }
23552
23561
  e.unstable_IdlePriority = 5, e.unstable_ImmediatePriority = 1, e.unstable_LowPriority = 4, e.unstable_NormalPriority = 3, e.unstable_Profiling = null, e.unstable_UserBlockingPriority = 2, e.unstable_cancelCallback = function(M) {
23553
23562
  M.callback = null;
@@ -23564,13 +23573,13 @@ function pL() {
23564
23573
  case 1:
23565
23574
  case 2:
23566
23575
  case 3:
23567
- var K = 3;
23576
+ var G = 3;
23568
23577
  break;
23569
23578
  default:
23570
- K = b;
23579
+ G = b;
23571
23580
  }
23572
23581
  var A = b;
23573
- b = K;
23582
+ b = G;
23574
23583
  try {
23575
23584
  return M();
23576
23585
  } finally {
@@ -23578,7 +23587,7 @@ function pL() {
23578
23587
  }
23579
23588
  }, e.unstable_pauseExecution = function() {
23580
23589
  }, e.unstable_requestPaint = function() {
23581
- }, e.unstable_runWithPriority = function(M, K) {
23590
+ }, e.unstable_runWithPriority = function(M, G) {
23582
23591
  switch (M) {
23583
23592
  case 1:
23584
23593
  case 2:
@@ -23592,11 +23601,11 @@ function pL() {
23592
23601
  var A = b;
23593
23602
  b = M;
23594
23603
  try {
23595
- return K();
23604
+ return G();
23596
23605
  } finally {
23597
23606
  b = A;
23598
23607
  }
23599
- }, e.unstable_scheduleCallback = function(M, K, A) {
23608
+ }, e.unstable_scheduleCallback = function(M, G, A) {
23600
23609
  var I = e.unstable_now();
23601
23610
  switch (typeof A == "object" && A !== null ? (A = A.delay, A = typeof A == "number" && 0 < A ? I + A : I) : A = I, M) {
23602
23611
  case 1:
@@ -23614,12 +23623,12 @@ function pL() {
23614
23623
  default:
23615
23624
  q = 5e3;
23616
23625
  }
23617
- return q = A + q, M = { id: g++, callback: K, priorityLevel: M, startTime: A, expirationTime: q, sortIndex: -1 }, A > I ? (M.sortIndex = A, t(h, M), n(d) === null && M === n(h) && (k ? (L(Ce), Ce = -1) : k = !0, oe(Z, A - I))) : (M.sortIndex = q, t(d, M), S || T || (S = !0, Oe(he))), M;
23626
+ return q = A + q, M = { id: g++, callback: G, priorityLevel: M, startTime: A, expirationTime: q, sortIndex: -1 }, A > I ? (M.sortIndex = A, t(h, M), n(d) === null && M === n(h) && (k ? (L(Ce), Ce = -1) : k = !0, oe(Z, A - I))) : (M.sortIndex = q, t(d, M), S || T || (S = !0, Oe(he))), M;
23618
23627
  }, e.unstable_shouldYield = ge, e.unstable_wrapCallback = function(M) {
23619
- var K = b;
23628
+ var G = b;
23620
23629
  return function() {
23621
23630
  var A = b;
23622
- b = K;
23631
+ b = G;
23623
23632
  try {
23624
23633
  return M.apply(this, arguments);
23625
23634
  } finally {
@@ -23738,8 +23747,8 @@ function gL() {
23738
23747
  var m = O.hasOwnProperty(s) ? O[s] : null;
23739
23748
  (m !== null ? m.type !== 0 : f || !(2 < s.length) || s[0] !== "o" && s[0] !== "O" || s[1] !== "n" && s[1] !== "N") && (S(s, a, m, f) && (a = null), f || m === null ? b(s) && (a === null ? i.removeAttribute(s) : i.setAttribute(s, "" + a)) : m.mustUseProperty ? i[m.propertyName] = a === null ? m.type === 3 ? !1 : "" : a : (s = m.attributeName, f = m.attributeNamespace, a === null ? i.removeAttribute(s) : (m = m.type, a = m === 3 || m === 4 && a === !0 ? "" : "" + a, f ? i.setAttributeNS(f, s, a) : i.setAttribute(s, a))));
23740
23749
  }
23741
- var Z = e.__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED, he = Symbol.for("react.element"), F = Symbol.for("react.portal"), me = Symbol.for("react.fragment"), Ce = Symbol.for("react.strict_mode"), xe = Symbol.for("react.profiler"), H = Symbol.for("react.provider"), ge = Symbol.for("react.context"), pe = Symbol.for("react.forward_ref"), le = Symbol.for("react.suspense"), fe = Symbol.for("react.suspense_list"), be = Symbol.for("react.memo"), Oe = Symbol.for("react.lazy"), oe = Symbol.for("react.offscreen"), M = Symbol.iterator;
23742
- function K(i) {
23750
+ var Z = e.__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED, he = Symbol.for("react.element"), F = Symbol.for("react.portal"), me = Symbol.for("react.fragment"), Ce = Symbol.for("react.strict_mode"), xe = Symbol.for("react.profiler"), H = Symbol.for("react.provider"), ge = Symbol.for("react.context"), pe = Symbol.for("react.forward_ref"), ce = Symbol.for("react.suspense"), fe = Symbol.for("react.suspense_list"), be = Symbol.for("react.memo"), Oe = Symbol.for("react.lazy"), oe = Symbol.for("react.offscreen"), M = Symbol.iterator;
23751
+ function G(i) {
23743
23752
  return i === null || typeof i != "object" ? null : (i = M && i[M] || i["@@iterator"], typeof i == "function" ? i : null);
23744
23753
  }
23745
23754
  var A = Object.assign, I;
@@ -23844,7 +23853,7 @@ function gL() {
23844
23853
  return "Profiler";
23845
23854
  case Ce:
23846
23855
  return "StrictMode";
23847
- case le:
23856
+ case ce:
23848
23857
  return "Suspense";
23849
23858
  case fe:
23850
23859
  return "SuspenseList";
@@ -24046,7 +24055,7 @@ function gL() {
24046
24055
  var s = i.textContent;
24047
24056
  s === i._wrapperState.initialValue && s !== "" && s !== null && (i.value = s);
24048
24057
  }
24049
- function G(i) {
24058
+ function K(i) {
24050
24059
  switch (i) {
24051
24060
  case "svg":
24052
24061
  return "http://www.w3.org/2000/svg";
@@ -24057,7 +24066,7 @@ function gL() {
24057
24066
  }
24058
24067
  }
24059
24068
  function de(i, s) {
24060
- return i == null || i === "http://www.w3.org/1999/xhtml" ? G(s) : i === "http://www.w3.org/2000/svg" && s === "foreignObject" ? "http://www.w3.org/1999/xhtml" : i;
24069
+ return i == null || i === "http://www.w3.org/1999/xhtml" ? K(s) : i === "http://www.w3.org/2000/svg" && s === "foreignObject" ? "http://www.w3.org/1999/xhtml" : i;
24061
24070
  }
24062
24071
  var Re, Be = function(i) {
24063
24072
  return typeof MSApp != "undefined" && MSApp.execUnsafeLocalFunction ? function(s, a, f, m) {
@@ -25695,7 +25704,7 @@ function gL() {
25695
25704
  var ae = D._init;
25696
25705
  return re(B, ae(D._payload), z);
25697
25706
  }
25698
- if (_r(D) || K(D)) return D = ci(D, B.mode, z, null), D.return = B, D;
25707
+ if (_r(D) || G(D)) return D = ci(D, B.mode, z, null), D.return = B, D;
25699
25708
  Wo(B, D);
25700
25709
  }
25701
25710
  return null;
@@ -25717,7 +25726,7 @@ function gL() {
25717
25726
  ae
25718
25727
  );
25719
25728
  }
25720
- if (_r(z) || K(z)) return Ae !== null ? null : te(B, D, z, ae, null);
25729
+ if (_r(z) || G(z)) return Ae !== null ? null : te(B, D, z, ae, null);
25721
25730
  Wo(B, z);
25722
25731
  }
25723
25732
  return null;
@@ -25734,7 +25743,7 @@ function gL() {
25734
25743
  var we = ae._init;
25735
25744
  return ye(B, D, z, we(ae._payload), Ae);
25736
25745
  }
25737
- if (_r(ae) || K(ae)) return B = B.get(z) || null, te(D, B, ae, Ae, null);
25746
+ if (_r(ae) || G(ae)) return B = B.get(z) || null, te(D, B, ae, Ae, null);
25738
25747
  Wo(D, ae);
25739
25748
  }
25740
25749
  return null;
@@ -25760,7 +25769,7 @@ function gL() {
25760
25769
  }), st && ni(B, Pe), Ae;
25761
25770
  }
25762
25771
  function Se(B, D, z, ae) {
25763
- var Ae = K(z);
25772
+ var Ae = G(z);
25764
25773
  if (typeof Ae != "function") throw Error(n(150));
25765
25774
  if (z = Ae.call(z), z == null) throw Error(n(151));
25766
25775
  for (var we = Ae = null, ve = D, Pe = D = 0, xt = null, Ge = z.next(); ve !== null && !Ge.done; Pe++, Ge = z.next()) {
@@ -25829,7 +25838,7 @@ function gL() {
25829
25838
  return we = z._init, ht(B, D, we(z._payload), ae);
25830
25839
  }
25831
25840
  if (_r(z)) return _e(B, D, z, ae);
25832
- if (K(z)) return Se(B, D, z, ae);
25841
+ if (G(z)) return Se(B, D, z, ae);
25833
25842
  Wo(B, z);
25834
25843
  }
25835
25844
  return typeof z == "string" && z !== "" || typeof z == "number" ? (z = "" + z, D !== null && D.tag === 6 ? (a(B, D.sibling), D = m(D, z), D.return = B, B = D) : (a(B, D), D = Af(z, B.mode, ae), D.return = B, B = D), _(B)) : a(B, D);
@@ -26926,7 +26935,7 @@ Error generating stack: ` + E.message + `
26926
26935
  }
26927
26936
  f = m, s.updateQueue = f, f !== null && (s.flags |= 4);
26928
26937
  } else {
26929
- _ = m.nodeType === 9 ? m : m.ownerDocument, i === "http://www.w3.org/1999/xhtml" && (i = G(a)), i === "http://www.w3.org/1999/xhtml" ? a === "script" ? (i = _.createElement("div"), i.innerHTML = "<script><\/script>", i = i.removeChild(i.firstChild)) : typeof f.is == "string" ? i = _.createElement(a, { is: f.is }) : (i = _.createElement(a), a === "select" && (_ = i, f.multiple ? _.multiple = !0 : f.size && (_.size = f.size))) : i = _.createElementNS(i, a), i[Vn] = s, i[nu] = f, um(i, s, !1, !1), s.stateNode = i;
26938
+ _ = m.nodeType === 9 ? m : m.ownerDocument, i === "http://www.w3.org/1999/xhtml" && (i = K(a)), i === "http://www.w3.org/1999/xhtml" ? a === "script" ? (i = _.createElement("div"), i.innerHTML = "<script><\/script>", i = i.removeChild(i.firstChild)) : typeof f.is == "string" ? i = _.createElement(a, { is: f.is }) : (i = _.createElement(a), a === "select" && (_ = i, f.multiple ? _.multiple = !0 : f.size && (_.size = f.size))) : i = _.createElementNS(i, a), i[Vn] = s, i[nu] = f, um(i, s, !1, !1), s.stateNode = i;
26930
26939
  e: {
26931
26940
  switch (_ = jn(a, f), a) {
26932
26941
  case "dialog":
@@ -28498,8 +28507,8 @@ Error generating stack: ` + E.message + `
28498
28507
  break;
28499
28508
  case xe:
28500
28509
  return i = An(12, a, s, m | 2), i.elementType = xe, i.lanes = E, i;
28501
- case le:
28502
- return i = An(13, a, s, m), i.elementType = le, i.lanes = E, i;
28510
+ case ce:
28511
+ return i = An(13, a, s, m), i.elementType = ce, i.lanes = E, i;
28503
28512
  case fe:
28504
28513
  return i = An(19, a, s, m), i.elementType = fe, i.lanes = E, i;
28505
28514
  case oe:
@@ -28892,13 +28901,13 @@ var TL = (e, t) => {
28892
28901
  }), []);
28893
28902
  };
28894
28903
  function Eb(e, t = {}) {
28895
- var ge, pe, le, fe, be, Oe;
28904
+ var ge, pe, ce, fe, be, Oe;
28896
28905
  const n = X.useMemo(() => {
28897
- const { id: oe, ids: M, getRootNode: K } = t;
28898
- return hL({ id: oe, ids: M, getRootNode: K });
28906
+ const { id: oe, ids: M, getRootNode: G } = t;
28907
+ return hL({ id: oe, ids: M, getRootNode: G });
28899
28908
  }, [t]), r = (...oe) => {
28900
28909
  e.debug && console.log(...oe);
28901
- }, u = (pe = (ge = e.props) == null ? void 0 : ge.call(e, { props: ib(t), scope: n })) != null ? pe : t, o = bL(u), l = (le = e.context) == null ? void 0 : le.call(e, {
28910
+ }, u = (pe = (ge = e.props) == null ? void 0 : ge.call(e, { props: ib(t), scope: n })) != null ? pe : t, o = bL(u), l = (ce = e.context) == null ? void 0 : ce.call(e, {
28902
28911
  prop: o,
28903
28912
  bindable: hl,
28904
28913
  scope: n,
@@ -28921,16 +28930,16 @@ function Eb(e, t = {}) {
28921
28930
  return (M = c.current) == null ? void 0 : M[oe].ref.current;
28922
28931
  },
28923
28932
  set(oe, M) {
28924
- var K;
28925
- (K = c.current) == null || K[oe].set(M);
28933
+ var G;
28934
+ (G = c.current) == null || G[oe].set(M);
28926
28935
  },
28927
28936
  initial(oe) {
28928
28937
  var M;
28929
28938
  return (M = c.current) == null ? void 0 : M[oe].initial;
28930
28939
  },
28931
28940
  hash(oe) {
28932
- var K, A;
28933
- const M = (K = c.current) == null ? void 0 : K[oe].get();
28941
+ var G, A;
28942
+ const M = (G = c.current) == null ? void 0 : G[oe].get();
28934
28943
  return (A = c.current) == null ? void 0 : A[oe].hash(M);
28935
28944
  }
28936
28945
  }, h = X.useRef(/* @__PURE__ */ new Map()), g = X.useRef(null), y = X.useRef(null), b = X.useRef({ type: "" }), T = () => Ue(Q({}, b.current), {
@@ -28945,8 +28954,8 @@ function Eb(e, t = {}) {
28945
28954
  return oe.includes(F.ref.current);
28946
28955
  },
28947
28956
  hasTag(oe) {
28948
- var M, K;
28949
- return !!((K = (M = e.states[F.ref.current]) == null ? void 0 : M.tags) != null && K.includes(oe));
28957
+ var M, G;
28958
+ return !!((G = (M = e.states[F.ref.current]) == null ? void 0 : M.tags) != null && G.includes(oe));
28950
28959
  }
28951
28960
  }), k = yL((be = (fe = e.refs) == null ? void 0 : fe.call(e, { prop: o, context: d })) != null ? be : {}), O = () => ({
28952
28961
  state: S(),
@@ -28965,32 +28974,32 @@ function Eb(e, t = {}) {
28965
28974
  }), L = (oe) => {
28966
28975
  const M = cs(oe) ? oe(O()) : oe;
28967
28976
  if (!M) return;
28968
- const K = M.map((A) => {
28977
+ const G = M.map((A) => {
28969
28978
  var q, N;
28970
28979
  const I = (N = (q = e.implementations) == null ? void 0 : q.actions) == null ? void 0 : N[A];
28971
28980
  return I || Xd(`[zag-js] No implementation found for action "${JSON.stringify(A)}"`), I;
28972
28981
  });
28973
- for (const A of K)
28982
+ for (const A of G)
28974
28983
  A == null || A(O());
28975
28984
  }, V = (oe) => {
28976
- var M, K;
28977
- return cs(oe) ? oe(O()) : (K = (M = e.implementations) == null ? void 0 : M.guards) == null ? void 0 : K[oe](O());
28985
+ var M, G;
28986
+ return cs(oe) ? oe(O()) : (G = (M = e.implementations) == null ? void 0 : M.guards) == null ? void 0 : G[oe](O());
28978
28987
  }, j = (oe) => {
28979
28988
  const M = cs(oe) ? oe(O()) : oe;
28980
28989
  if (!M) return;
28981
- const K = M.map((I) => {
28990
+ const G = M.map((I) => {
28982
28991
  var N, Ee;
28983
28992
  const q = (Ee = (N = e.implementations) == null ? void 0 : N.effects) == null ? void 0 : Ee[I];
28984
28993
  return q || Xd(`[zag-js] No implementation found for effect "${JSON.stringify(I)}"`), q;
28985
28994
  }), A = [];
28986
- for (const I of K) {
28995
+ for (const I of G) {
28987
28996
  const q = I == null ? void 0 : I(O());
28988
28997
  q && A.push(q);
28989
28998
  }
28990
28999
  return () => A.forEach((I) => I == null ? void 0 : I());
28991
29000
  }, Z = (oe) => xP(oe).find((M) => {
28992
- let K = !M.guard;
28993
- return Ja(M.guard) ? K = !!V(M.guard) : cs(M.guard) && (K = M.guard(O())), K;
29001
+ let G = !M.guard;
29002
+ return Ja(M.guard) ? G = !!V(M.guard) : cs(M.guard) && (G = M.guard(O())), G;
28994
29003
  }), he = (oe) => {
28995
29004
  MP(e.computed, () => "[zag-js] No computed object found on machine");
28996
29005
  const M = e.computed[oe];
@@ -29011,8 +29020,8 @@ function Eb(e, t = {}) {
29011
29020
  Ee == null || Ee(), h.current.delete(M);
29012
29021
  }
29013
29022
  M && L((A = e.states[M]) == null ? void 0 : A.exit), L((I = g.current) == null ? void 0 : I.actions);
29014
- const K = j((q = e.states[oe]) == null ? void 0 : q.effects);
29015
- if (K && h.current.set(oe, K), M === ad) {
29023
+ const G = j((q = e.states[oe]) == null ? void 0 : q.effects);
29024
+ if (G && h.current.set(oe, G), M === ad) {
29016
29025
  L(e.entry);
29017
29026
  const Ee = j(e.effects);
29018
29027
  Ee && h.current.set(ad, Ee);
@@ -29023,14 +29032,14 @@ function Eb(e, t = {}) {
29023
29032
  gb(() => {
29024
29033
  queueMicrotask(() => {
29025
29034
  var I;
29026
- const K = Ce.current === as.Started;
29027
- Ce.current = as.Started, r(K ? "rehydrating..." : "initializing...");
29035
+ const G = Ce.current === as.Started;
29036
+ Ce.current = as.Started, r(G ? "rehydrating..." : "initializing...");
29028
29037
  const A = (I = me.current) != null ? I : F.initial;
29029
- F.invoke(A, K ? F.get() : ad);
29038
+ F.invoke(A, G ? F.get() : ad);
29030
29039
  });
29031
29040
  const oe = h.current, M = F.ref.current;
29032
29041
  return () => {
29033
- r("unmounting..."), me.current = M, Ce.current = as.Stopped, oe.forEach((K) => K == null ? void 0 : K()), h.current = /* @__PURE__ */ new Map(), g.current = null, queueMicrotask(() => {
29042
+ r("unmounting..."), me.current = M, Ce.current = as.Stopped, oe.forEach((G) => G == null ? void 0 : G()), h.current = /* @__PURE__ */ new Map(), g.current = null, queueMicrotask(() => {
29034
29043
  L(e.exit);
29035
29044
  });
29036
29045
  };
@@ -29041,13 +29050,13 @@ function Eb(e, t = {}) {
29041
29050
  if (Ce.current !== as.Started) return;
29042
29051
  y.current = b.current, b.current = oe, r("send", oe);
29043
29052
  let M = xe();
29044
- const K = (
29053
+ const G = (
29045
29054
  // @ts-ignore
29046
29055
  (Ne = (N = e.states[M].on) == null ? void 0 : N[oe.type]) != null ? Ne : (
29047
29056
  // @ts-ignore
29048
29057
  (Ee = e.on) == null ? void 0 : Ee[oe.type]
29049
29058
  )
29050
- ), A = Z(K);
29059
+ ), A = Z(G);
29051
29060
  if (!A) return;
29052
29061
  g.current = A;
29053
29062
  const I = (ke = A.target) != null ? ke : M;
@@ -30483,7 +30492,7 @@ const Ob = (e) => {
30483
30492
  children: /* @__PURE__ */ P.jsx(Ob, { children: /* @__PURE__ */ P.jsx(
30484
30493
  Qh,
30485
30494
  {
30486
- className: ce(
30495
+ className: le(
30487
30496
  n,
30488
30497
  `${ne}-container`,
30489
30498
  `${ne}-dialog`,
@@ -30493,7 +30502,7 @@ const Ob = (e) => {
30493
30502
  children: /* @__PURE__ */ P.jsxs(
30494
30503
  Gh,
30495
30504
  {
30496
- className: ce(n, `${ne}-dialog-content`, {
30505
+ className: le(n, `${ne}-dialog-content`, {
30497
30506
  standalone: k,
30498
30507
  embedded: !k
30499
30508
  }),
@@ -30501,7 +30510,7 @@ const Ob = (e) => {
30501
30510
  /* @__PURE__ */ P.jsxs(
30502
30511
  "div",
30503
30512
  {
30504
- className: ce(n, `${ne}-dialog-header`, {
30513
+ className: le(n, `${ne}-dialog-header`, {
30505
30514
  standalone: k,
30506
30515
  embedded: !k
30507
30516
  }),
@@ -30511,7 +30520,7 @@ const Ob = (e) => {
30511
30520
  {
30512
30521
  alt: "",
30513
30522
  role: "img",
30514
- className: ce(n, `${ne}-dialog-logo`, {
30523
+ className: le(n, `${ne}-dialog-logo`, {
30515
30524
  standalone: k,
30516
30525
  embedded: !k
30517
30526
  }),
@@ -30521,14 +30530,14 @@ const Ob = (e) => {
30521
30530
  /* @__PURE__ */ P.jsx(
30522
30531
  Xh,
30523
30532
  {
30524
- className: ce(n, `${ne}-dialog-title`, {
30533
+ className: le(n, `${ne}-dialog-title`, {
30525
30534
  standalone: k,
30526
30535
  embedded: !k
30527
30536
  }),
30528
30537
  children: t
30529
30538
  }
30530
30539
  ),
30531
- /* @__PURE__ */ P.jsxs("div", { className: ce(n, `${ne}-dialog-controls`), children: [
30540
+ /* @__PURE__ */ P.jsxs("div", { className: le(n, `${ne}-dialog-controls`), children: [
30532
30541
  /* @__PURE__ */ P.jsx(
30533
30542
  Wu,
30534
30543
  {
@@ -30553,7 +30562,7 @@ const Ob = (e) => {
30553
30562
  /* @__PURE__ */ P.jsxs(
30554
30563
  Kh,
30555
30564
  {
30556
- className: ce(n, `${ne}-message-container`, {
30565
+ className: le(n, `${ne}-message-container`, {
30557
30566
  standalone: k,
30558
30567
  embedded: !k
30559
30568
  }),
@@ -30613,12 +30622,12 @@ const Ob = (e) => {
30613
30622
  }, j = () => {
30614
30623
  qu(!1);
30615
30624
  };
30616
- return !S || h.length === 0 ? null : c ? /* @__PURE__ */ P.jsx(Ib, { lazyMount: !0, open: S, onOpenChange: O, children: /* @__PURE__ */ P.jsx(Ob, { children: /* @__PURE__ */ P.jsxs("div", { className: ce(`${ne}-modal-container`), style: r, children: [
30625
+ return !S || h.length === 0 ? null : c ? /* @__PURE__ */ P.jsx(Ib, { lazyMount: !0, open: S, onOpenChange: O, children: /* @__PURE__ */ P.jsx(Ob, { children: /* @__PURE__ */ P.jsxs("div", { className: le(`${ne}-modal-container`), style: r, children: [
30617
30626
  /* @__PURE__ */ P.jsx(_b, { className: `${ne}-modal-backdrop` }),
30618
30627
  /* @__PURE__ */ P.jsx(
30619
30628
  Qh,
30620
30629
  {
30621
- className: ce(
30630
+ className: le(
30622
30631
  n,
30623
30632
  `${ne}-container`,
30624
30633
  `${ne}-modal`,
@@ -30631,7 +30640,7 @@ const Ob = (e) => {
30631
30640
  children: /* @__PURE__ */ P.jsxs(
30632
30641
  Gh,
30633
30642
  {
30634
- className: ce(n, `${ne}-modal-content`, {
30643
+ className: le(n, `${ne}-modal-content`, {
30635
30644
  standalone: k,
30636
30645
  embedded: !k
30637
30646
  }),
@@ -30639,7 +30648,7 @@ const Ob = (e) => {
30639
30648
  /* @__PURE__ */ P.jsxs(
30640
30649
  "div",
30641
30650
  {
30642
- className: ce(n, `${ne}-modal-header`, {
30651
+ className: le(n, `${ne}-modal-header`, {
30643
30652
  standalone: k,
30644
30653
  embedded: !k
30645
30654
  }),
@@ -30649,7 +30658,7 @@ const Ob = (e) => {
30649
30658
  {
30650
30659
  alt: "",
30651
30660
  role: "img",
30652
- className: ce(n, `${ne}-modal-logo`, {
30661
+ className: le(n, `${ne}-modal-logo`, {
30653
30662
  standalone: k,
30654
30663
  embedded: !k
30655
30664
  }),
@@ -30659,19 +30668,19 @@ const Ob = (e) => {
30659
30668
  /* @__PURE__ */ P.jsx(
30660
30669
  Xh,
30661
30670
  {
30662
- className: ce(n, `${ne}-modal-title`, {
30671
+ className: le(n, `${ne}-modal-title`, {
30663
30672
  standalone: k,
30664
30673
  embedded: !k
30665
30674
  }),
30666
30675
  children: t
30667
30676
  }
30668
30677
  ),
30669
- /* @__PURE__ */ P.jsxs("div", { className: ce(n, `${ne}-modal-controls`), children: [
30678
+ /* @__PURE__ */ P.jsxs("div", { className: le(n, `${ne}-modal-controls`), children: [
30670
30679
  /* @__PURE__ */ P.jsx(
30671
30680
  Wu,
30672
30681
  {
30673
30682
  ariaLabel: "Toggle Fullscreen",
30674
- className: ce(
30683
+ className: le(
30675
30684
  n,
30676
30685
  `${ne}-modal-fullscreen-button`
30677
30686
  ),
@@ -30683,7 +30692,7 @@ const Ob = (e) => {
30683
30692
  Wu,
30684
30693
  {
30685
30694
  ariaLabel: "Toggle Dialog",
30686
- className: ce(
30695
+ className: le(
30687
30696
  n,
30688
30697
  `${ne}-modal-toggle-dialog-button`
30689
30698
  ),
@@ -30699,7 +30708,7 @@ const Ob = (e) => {
30699
30708
  /* @__PURE__ */ P.jsxs(
30700
30709
  Kh,
30701
30710
  {
30702
- className: ce(n, `${ne}-message-container`, {
30711
+ className: le(n, `${ne}-message-container`, {
30703
30712
  standalone: k,
30704
30713
  embedded: !k
30705
30714
  }),