@rqmii_immersive/agent-react-sdk 6.1.2 → 6.1.4

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (38) hide show
  1. package/dist/{RqmiiAgentChat-DePYH6Tm.js → RqmiiAgentChat-DclCKBut.js} +2 -2
  2. package/dist/{RqmiiAgentChat-DePYH6Tm.js.map → RqmiiAgentChat-DclCKBut.js.map} +1 -1
  3. package/dist/{RqmiiAgentChat-E1rns4hb.cjs → RqmiiAgentChat-DwItcha-.cjs} +2 -2
  4. package/dist/{RqmiiAgentChat-E1rns4hb.cjs.map → RqmiiAgentChat-DwItcha-.cjs.map} +1 -1
  5. package/dist/agent-react-sdk.css +1 -1
  6. package/dist/embed/chunks/{Orb-BlCpmOIm.js → Orb-CUO2PRaI.js} +2 -2
  7. package/dist/embed/chunks/{Orb-BlCpmOIm.js.map → Orb-CUO2PRaI.js.map} +1 -1
  8. package/dist/embed/chunks/{embed-core-BbLbqohb.js → embed-core-eP9Wge1U.js} +4 -4
  9. package/dist/embed/chunks/{embed-core-BbLbqohb.js.map → embed-core-eP9Wge1U.js.map} +1 -1
  10. package/dist/embed/chunks/{highlighted-body-JLMTFACH-BP16yo0g.js → highlighted-body-JLMTFACH-BN16E0-4.js} +3 -3
  11. package/dist/embed/chunks/{highlighted-body-JLMTFACH-BP16yo0g.js.map → highlighted-body-JLMTFACH-BN16E0-4.js.map} +1 -1
  12. package/dist/embed/chunks/{mermaid-WFAXDIZX-OtW4F01K.js → mermaid-WFAXDIZX-CH5kl7g7.js} +229 -226
  13. package/dist/embed/chunks/{mermaid-WFAXDIZX-OtW4F01K.js.map → mermaid-WFAXDIZX-CH5kl7g7.js.map} +1 -1
  14. package/dist/embed/chunks/{session-room-CFECkqBg.js → session-room-B4Z-4_lV.js} +2 -2
  15. package/dist/embed/chunks/{session-room-CFECkqBg.js.map → session-room-B4Z-4_lV.js.map} +1 -1
  16. package/dist/embed/core.js +2 -2
  17. package/dist/{highlighted-body-JLMTFACH-BmLfF80m.js → highlighted-body-JLMTFACH-DAlcAY-8.js} +2 -2
  18. package/dist/{highlighted-body-JLMTFACH-BmLfF80m.js.map → highlighted-body-JLMTFACH-DAlcAY-8.js.map} +1 -1
  19. package/dist/{highlighted-body-JLMTFACH-BgbiDd39.cjs → highlighted-body-JLMTFACH-rWYYYFTi.cjs} +2 -2
  20. package/dist/{highlighted-body-JLMTFACH-BgbiDd39.cjs.map → highlighted-body-JLMTFACH-rWYYYFTi.cjs.map} +1 -1
  21. package/dist/lazy.cjs +1 -1
  22. package/dist/lazy.js +1 -1
  23. package/dist/mermaid-WFAXDIZX-DmOW6O9q.cjs +2 -0
  24. package/dist/mermaid-WFAXDIZX-DmOW6O9q.cjs.map +1 -0
  25. package/dist/mermaid-WFAXDIZX-r3CZs5tK.js +5 -0
  26. package/dist/mermaid-WFAXDIZX-r3CZs5tK.js.map +1 -0
  27. package/dist/ui/chat/panels.d.ts.map +1 -1
  28. package/dist/{ui-C5VFxBD4.js → ui-CtiQXBti.js} +243 -240
  29. package/dist/{ui-C5VFxBD4.js.map → ui-CtiQXBti.js.map} +1 -1
  30. package/dist/{ui-BQAa9g8U.cjs → ui-qViuypFA.cjs} +14 -14
  31. package/dist/{ui-BQAa9g8U.cjs.map → ui-qViuypFA.cjs.map} +1 -1
  32. package/dist/ui.cjs +1 -1
  33. package/dist/ui.js +2 -2
  34. package/package.json +1 -1
  35. package/dist/mermaid-WFAXDIZX-CjDBEjC-.js +0 -5
  36. package/dist/mermaid-WFAXDIZX-CjDBEjC-.js.map +0 -1
  37. package/dist/mermaid-WFAXDIZX-D1q7n0BY.cjs +0 -2
  38. package/dist/mermaid-WFAXDIZX-D1q7n0BY.cjs.map +0 -1
@@ -1,5 +1,5 @@
1
1
  import { P as Tl, L as ff, g as ao, U as Va, Q as ja, T as kl, s as yl, O as pf, f as mf, D as gf } from "./RqmiiErrorBoundary-BdHH1rAI.js";
2
- import { g as oe, b as Tt, m as so, t as Ya, n as X, r as He, q as ht, z as bf, w as Ga, h as Ef, o as ar, f as pi, l as Wa, p as la, x as xl, v as Qa, y as Tf, A as kf, s as sn, u as yf, i as xf, e as Af } from "./RqmiiAgentChat-DePYH6Tm.js";
2
+ import { g as oe, b as ht, m as so, t as Ya, n as X, r as He, q as ft, z as bf, w as Ga, h as Ef, o as ar, f as pi, l as Wa, p as la, x as xl, v as Qa, y as Tf, A as kf, s as sn, u as yf, i as xf, e as Af } from "./RqmiiAgentChat-DclCKBut.js";
3
3
  import { jsx as p, jsxs as B, Fragment as Ue } from "react/jsx-runtime";
4
4
  import Te, { useContext as ve, createContext as Qt, forwardRef as Al, createElement as mr, memo as _e, useId as _f, useMemo as Ae, useRef as ae, useEffect as de, useLayoutEffect as wn, isValidElement as Vt, cloneElement as Cf, useSyncExternalStore as Nf, useState as te, useCallback as Oe, Suspense as ca, lazy as _l } from "react";
5
5
  import { createPortal as Ka } from "react-dom";
@@ -153,7 +153,7 @@ const qf = [["path", { d: "m18 15-6-6-6 6", key: "153udz" }]], zf = $e("chevron-
153
153
  * This source code is licensed under the ISC license.
154
154
  * See the LICENSE file in the root directory of this source tree.
155
155
  */
156
- const $f = [["path", { d: "M21 12a9 9 0 1 1-6.219-8.56", key: "13zald" }]], ft = $e("loader-circle", $f);
156
+ const $f = [["path", { d: "M21 12a9 9 0 1 1-6.219-8.56", key: "13zald" }]], pt = $e("loader-circle", $f);
157
157
  /**
158
158
  * @license lucide-react v1.24.0 - ISC
159
159
  *
@@ -489,7 +489,7 @@ function bi(e, t, n, r) {
489
489
  function mp(e) {
490
490
  return Array.isArray(e) ? e : typeof e == "number" ? [Jn, e] : e == null ? Ll : [e];
491
491
  }
492
- function pt(e, t, n, r) {
492
+ function mt(e, t, n, r) {
493
493
  let i, a, s;
494
494
  typeof t == "function" && typeof n != "function" ? (a = void 0, s = t, i = n) : (a = t, s = n, i = r), bi(e, a, o, i);
495
495
  function o(u, l) {
@@ -508,7 +508,7 @@ function gp({ defaultOrigin: e = "", allowedLinkPrefixes: t = [], allowedImagePr
508
508
  throw new Error("defaultOrigin is required when allowedLinkPrefixes or allowedImagePrefixes are provided");
509
509
  return (h) => {
510
510
  const m = xp(e, t, n, r, i, a, s, o, u);
511
- Rl(h), pt(h, m);
511
+ Rl(h), mt(h, m);
512
512
  };
513
513
  }
514
514
  function uo(e, t) {
@@ -659,7 +659,7 @@ const xp = (e, t, n, r, i, a, s, o, u) => {
659
659
  if (d.tagName === "a") {
660
660
  const f = lo(d.properties.href, t, e, !1, !1, i);
661
661
  if (f === null) {
662
- if (d[Mi] = !0, pt(d, l), m && typeof h == "number") {
662
+ if (d[Mi] = !0, mt(d, l), m && typeof h == "number") {
663
663
  const g = kp(d, o, s);
664
664
  if (g.type === "remove")
665
665
  return m.children.splice(h, 1), [on, h];
@@ -672,7 +672,7 @@ const xp = (e, t, n, r, i, a, s, o, u) => {
672
672
  if (d.tagName === "img") {
673
673
  const f = lo(d.properties.src, n, e, r, !0, i);
674
674
  if (f === null) {
675
- if (d[Mi] = !0, pt(d, l), m && typeof h == "number") {
675
+ if (d[Mi] = !0, mt(d, l), m && typeof h == "number") {
676
676
  const g = yp(d, u, a);
677
677
  if (g.type === "remove")
678
678
  return m.children.splice(h, 1), [on, h];
@@ -8232,7 +8232,7 @@ function Cc(e, t) {
8232
8232
  // To do: support `space`?
8233
8233
  file: i.options.file
8234
8234
  });
8235
- return i.stitches && pt(s, "comment", function(o, u, l) {
8235
+ return i.stitches && mt(s, "comment", function(o, u, l) {
8236
8236
  const d = (
8237
8237
  /** @type {Stitch} */
8238
8238
  /** @type {unknown} */
@@ -9034,7 +9034,7 @@ function vc(e, t) {
9034
9034
  return (e.index === 0 || hn(n) || Ci(n)) && // If it’s an email, the previous character should not be a slash.
9035
9035
  (!t || n !== 47);
9036
9036
  }
9037
- function bt(e) {
9037
+ function Et(e) {
9038
9038
  return e.replace(/[\t\n\r ]+/g, " ").replace(/^ | $/g, "").toLowerCase().toUpperCase();
9039
9039
  }
9040
9040
  Dc.peek = Rg;
@@ -9055,7 +9055,7 @@ function Ng(e) {
9055
9055
  }
9056
9056
  function Sg(e) {
9057
9057
  const t = this.resume(), n = this.stack[this.stack.length - 1];
9058
- n.type, n.identifier = bt(
9058
+ n.type, n.identifier = Et(
9059
9059
  this.sliceSerialize(e)
9060
9060
  ).toLowerCase(), n.label = t;
9061
9061
  }
@@ -9064,7 +9064,7 @@ function wg(e) {
9064
9064
  }
9065
9065
  function Ig(e) {
9066
9066
  const t = this.resume(), n = this.stack[this.stack.length - 1];
9067
- n.type, n.identifier = bt(
9067
+ n.type, n.identifier = Et(
9068
9068
  this.sliceSerialize(e)
9069
9069
  ).toLowerCase(), n.label = t;
9070
9070
  }
@@ -9463,7 +9463,7 @@ function sb(e) {
9463
9463
  }
9464
9464
  function ob(e, t) {
9465
9465
  let n = !1;
9466
- return pt(e, function(r) {
9466
+ return mt(e, function(r) {
9467
9467
  if ("value" in r && /\r?\n|\r/.test(r.value) || r.type === "break")
9468
9468
  return n = !0, da;
9469
9469
  }), !!((!e.depth || e.depth < 3) && ms(e) && (t.options.setext || n));
@@ -12256,7 +12256,7 @@ function jb(e) {
12256
12256
  ]
12257
12257
  };
12258
12258
  }
12259
- function Et(e, t, n, r) {
12259
+ function Tt(e, t, n, r) {
12260
12260
  const i = e.length;
12261
12261
  let a = 0, s;
12262
12262
  if (t < 0 ? t = -t > i ? 0 : i + t : t = t > i ? i : t, n = n > 0 ? n : 0, r.length < 1e4)
@@ -12266,7 +12266,7 @@ function Et(e, t, n, r) {
12266
12266
  s = r.slice(a, a + 1e4), s.unshift(t, 0), e.splice(...s), a += 1e4, t += 1e4;
12267
12267
  }
12268
12268
  function ct(e, t) {
12269
- return e.length > 0 ? (Et(e, e.length, 0, t), e) : t;
12269
+ return e.length > 0 ? (Tt(e, e.length, 0, t), e) : t;
12270
12270
  }
12271
12271
  const Go = {}.hasOwnProperty;
12272
12272
  function Gc(e) {
@@ -12298,7 +12298,7 @@ function Gb(e, t) {
12298
12298
  const r = [];
12299
12299
  for (; ++n < t.length; )
12300
12300
  (t[n].add === "after" ? e : r).push(t[n]);
12301
- Et(e, 0, 0, r);
12301
+ Tt(e, 0, 0, r);
12302
12302
  }
12303
12303
  const Wb = {
12304
12304
  tokenize: eE,
@@ -12573,7 +12573,7 @@ function aE(e, t) {
12573
12573
  ...l.end
12574
12574
  }, r = [], e[i][1].end.offset - e[i][1].start.offset && (r = ct(r, [["enter", e[i][1], t], ["exit", e[i][1], t]])), r = ct(r, [["enter", h, t], ["enter", u, t], ["exit", u, t], ["enter", d, t]]), r = ct(r, Ni(t.parser.constructs.insideSpan.null, e.slice(i + 1, n), t)), r = ct(r, [["exit", d, t], ["enter", l, t], ["exit", l, t], ["exit", h, t]]);
12575
12575
  let m = 0;
12576
- e[n][1].end.offset - e[n][1].start.offset && (m = 2, r = ct(r, [["enter", e[n][1], t], ["exit", e[n][1], t]])), Et(e, i - 1, n - i + 3, r), n = i + r.length - m - 2;
12576
+ e[n][1].end.offset - e[n][1].start.offset && (m = 2, r = ct(r, [["enter", e[n][1], t], ["exit", e[n][1], t]])), Tt(e, i - 1, n - i + 3, r), n = i + r.length - m - 2;
12577
12577
  break;
12578
12578
  }
12579
12579
  }
@@ -12820,22 +12820,22 @@ function gE(e, t, n) {
12820
12820
  return e.exit("codeFenced"), t(w);
12821
12821
  }
12822
12822
  function D(w, v, R) {
12823
- let q = 0;
12823
+ let U = 0;
12824
12824
  return S;
12825
- function S(U) {
12826
- return w.enter("lineEnding"), w.consume(U), w.exit("lineEnding"), M;
12825
+ function S(q) {
12826
+ return w.enter("lineEnding"), w.consume(q), w.exit("lineEnding"), M;
12827
12827
  }
12828
- function M(U) {
12829
- return w.enter("codeFencedFence"), fe(U) ? Ee(w, $, "linePrefix", r.parser.constructs.disable.null.includes("codeIndented") ? void 0 : 4)(U) : $(U);
12828
+ function M(q) {
12829
+ return w.enter("codeFencedFence"), fe(q) ? Ee(w, $, "linePrefix", r.parser.constructs.disable.null.includes("codeIndented") ? void 0 : 4)(q) : $(q);
12830
12830
  }
12831
- function $(U) {
12832
- return U === o ? (w.enter("codeFencedFenceSequence"), G(U)) : R(U);
12831
+ function $(q) {
12832
+ return q === o ? (w.enter("codeFencedFenceSequence"), G(q)) : R(q);
12833
12833
  }
12834
- function G(U) {
12835
- return U === o ? (q++, w.consume(U), G) : q >= s ? (w.exit("codeFencedFenceSequence"), fe(U) ? Ee(w, Y, "whitespace")(U) : Y(U)) : R(U);
12834
+ function G(q) {
12835
+ return q === o ? (U++, w.consume(q), G) : U >= s ? (w.exit("codeFencedFenceSequence"), fe(q) ? Ee(w, Y, "whitespace")(q) : Y(q)) : R(q);
12836
12836
  }
12837
- function Y(U) {
12838
- return U === null || ie(U) ? (w.exit("codeFencedFence"), v(U)) : R(U);
12837
+ function Y(q) {
12838
+ return q === null || ie(q) ? (w.exit("codeFencedFence"), v(q)) : R(q);
12839
12839
  }
12840
12840
  }
12841
12841
  }
@@ -13106,7 +13106,7 @@ function sd(e) {
13106
13106
  }, o = d.slice(i, n), o.unshift(r), d.splice(i, n - i + 1, o));
13107
13107
  }
13108
13108
  }
13109
- return Et(e, 0, Number.POSITIVE_INFINITY, d.slice(0)), !l;
13109
+ return Tt(e, 0, Number.POSITIVE_INFINITY, d.slice(0)), !l;
13110
13110
  }
13111
13111
  function CE(e, t) {
13112
13112
  const n = e.get(t)[1], r = e.get(t)[2];
@@ -13283,7 +13283,7 @@ function vE(e, t, n) {
13283
13283
  )(f);
13284
13284
  }
13285
13285
  function o(f) {
13286
- return i = bt(r.sliceSerialize(r.events[r.events.length - 1][1]).slice(1, -1)), f === 58 ? (e.enter("definitionMarker"), e.consume(f), e.exit("definitionMarker"), u) : n(f);
13286
+ return i = Et(r.sliceSerialize(r.events[r.events.length - 1][1]).slice(1, -1)), f === 58 ? (e.enter("definitionMarker"), e.consume(f), e.exit("definitionMarker"), u) : n(f);
13287
13287
  }
13288
13288
  function u(f) {
13289
13289
  return we(f) ? hr(e, l)(f) : l(f);
@@ -13357,7 +13357,7 @@ function FE(e, t) {
13357
13357
  end: e[n][1].end,
13358
13358
  contentType: "text"
13359
13359
  };
13360
- Et(e, r, n - r + 1, [["enter", i, t], ["enter", a, t], ["exit", a, t], ["exit", i, t]]);
13360
+ Tt(e, r, n - r + 1, [["enter", i, t], ["enter", a, t], ["exit", a, t], ["exit", i, t]]);
13361
13361
  }
13362
13362
  return e;
13363
13363
  }
@@ -13450,12 +13450,12 @@ function $E(e, t, n) {
13450
13450
  return N === null || N === 60 || N === 61 || N === 62 || N === 96 ? n(N) : N === 34 || N === 39 ? (e.consume(N), u = N, v) : fe(N) ? (e.consume(N), w) : R(N);
13451
13451
  }
13452
13452
  function v(N) {
13453
- return N === u ? (e.consume(N), u = null, q) : N === null || ie(N) ? n(N) : (e.consume(N), v);
13453
+ return N === u ? (e.consume(N), u = null, U) : N === null || ie(N) ? n(N) : (e.consume(N), v);
13454
13454
  }
13455
13455
  function R(N) {
13456
13456
  return N === null || N === 34 || N === 39 || N === 47 || N === 60 || N === 61 || N === 62 || N === 96 || we(N) ? D(N) : (e.consume(N), R);
13457
13457
  }
13458
- function q(N) {
13458
+ function U(N) {
13459
13459
  return N === 47 || N === 62 || fe(N) ? y(N) : n(N);
13460
13460
  }
13461
13461
  function S(N) {
@@ -13471,9 +13471,9 @@ function $E(e, t, n) {
13471
13471
  return e.check(Aa, Y, De)(N);
13472
13472
  }
13473
13473
  function Y(N) {
13474
- return e.enter("lineEnding"), e.consume(N), e.exit("lineEnding"), U;
13474
+ return e.enter("lineEnding"), e.consume(N), e.exit("lineEnding"), q;
13475
13475
  }
13476
- function U(N) {
13476
+ function q(N) {
13477
13477
  return N === null || ie(N) ? G(N) : (e.enter("htmlFlowData"), $(N));
13478
13478
  }
13479
13479
  function W(N) {
@@ -13569,28 +13569,28 @@ function YE(e, t, n) {
13569
13569
  return ie(E) ? (s = v, Z(E)) : fe(E) ? (e.consume(E), v) : W(E);
13570
13570
  }
13571
13571
  function R(E) {
13572
- return E === 45 || Qe(E) ? (e.consume(E), R) : E === 47 || E === 62 || we(E) ? q(E) : n(E);
13572
+ return E === 45 || Qe(E) ? (e.consume(E), R) : E === 47 || E === 62 || we(E) ? U(E) : n(E);
13573
13573
  }
13574
- function q(E) {
13575
- return E === 47 ? (e.consume(E), W) : E === 58 || E === 95 || Je(E) ? (e.consume(E), S) : ie(E) ? (s = q, Z(E)) : fe(E) ? (e.consume(E), q) : W(E);
13574
+ function U(E) {
13575
+ return E === 47 ? (e.consume(E), W) : E === 58 || E === 95 || Je(E) ? (e.consume(E), S) : ie(E) ? (s = U, Z(E)) : fe(E) ? (e.consume(E), U) : W(E);
13576
13576
  }
13577
13577
  function S(E) {
13578
13578
  return E === 45 || E === 46 || E === 58 || E === 95 || Qe(E) ? (e.consume(E), S) : M(E);
13579
13579
  }
13580
13580
  function M(E) {
13581
- return E === 61 ? (e.consume(E), $) : ie(E) ? (s = M, Z(E)) : fe(E) ? (e.consume(E), M) : q(E);
13581
+ return E === 61 ? (e.consume(E), $) : ie(E) ? (s = M, Z(E)) : fe(E) ? (e.consume(E), M) : U(E);
13582
13582
  }
13583
13583
  function $(E) {
13584
13584
  return E === null || E === 60 || E === 61 || E === 62 || E === 96 ? n(E) : E === 34 || E === 39 ? (e.consume(E), i = E, G) : ie(E) ? (s = $, Z(E)) : fe(E) ? (e.consume(E), $) : (e.consume(E), Y);
13585
13585
  }
13586
13586
  function G(E) {
13587
- return E === i ? (e.consume(E), i = void 0, U) : E === null ? n(E) : ie(E) ? (s = G, Z(E)) : (e.consume(E), G);
13587
+ return E === i ? (e.consume(E), i = void 0, q) : E === null ? n(E) : ie(E) ? (s = G, Z(E)) : (e.consume(E), G);
13588
13588
  }
13589
13589
  function Y(E) {
13590
- return E === null || E === 34 || E === 39 || E === 60 || E === 61 || E === 96 ? n(E) : E === 47 || E === 62 || we(E) ? q(E) : (e.consume(E), Y);
13590
+ return E === null || E === 34 || E === 39 || E === 60 || E === 61 || E === 96 ? n(E) : E === 47 || E === 62 || we(E) ? U(E) : (e.consume(E), Y);
13591
13591
  }
13592
- function U(E) {
13593
- return E === 47 || E === 62 || we(E) ? q(E) : n(E);
13592
+ function q(E) {
13593
+ return E === 47 || E === 62 || we(E) ? U(E) : n(E);
13594
13594
  }
13595
13595
  function W(E) {
13596
13596
  return E === 62 ? (e.consume(E), e.exit("htmlTextData"), e.exit("htmlText"), t) : n(E);
@@ -13627,7 +13627,7 @@ function KE(e) {
13627
13627
  r.type = "data", t += i;
13628
13628
  }
13629
13629
  }
13630
- return e.length !== n.length && Et(e, 0, e.length, n), e;
13630
+ return e.length !== n.length && Tt(e, 0, e.length, n), e;
13631
13631
  }
13632
13632
  function XE(e, t) {
13633
13633
  let n = e.length, r = 0, i, a, s;
@@ -13669,7 +13669,7 @@ function XE(e, t) {
13669
13669
  ...e[a - 2][1].start
13670
13670
  }
13671
13671
  };
13672
- return s = [["enter", o, t], ["enter", u, t]], s = ct(s, e.slice(i + 1, i + r + 3)), s = ct(s, [["enter", l, t]]), s = ct(s, Ni(t.parser.constructs.insideSpan.null, e.slice(i + r + 4, a - 3), t)), s = ct(s, [["exit", l, t], e[a - 2], e[a - 1], ["exit", u, t]]), s = ct(s, e.slice(a + 1)), s = ct(s, [["exit", o, t]]), Et(e, i, e.length, s), e;
13672
+ return s = [["enter", o, t], ["enter", u, t]], s = ct(s, e.slice(i + 1, i + r + 3)), s = ct(s, [["enter", l, t]]), s = ct(s, Ni(t.parser.constructs.insideSpan.null, e.slice(i + r + 4, a - 3), t)), s = ct(s, [["exit", l, t], e[a - 2], e[a - 1], ["exit", u, t]]), s = ct(s, e.slice(a + 1)), s = ct(s, [["exit", o, t]]), Tt(e, i, e.length, s), e;
13673
13673
  }
13674
13674
  function ZE(e, t, n) {
13675
13675
  const r = this, i = r._labelStarts;
@@ -13681,7 +13681,7 @@ function ZE(e, t, n) {
13681
13681
  }
13682
13682
  return o;
13683
13683
  function o(m) {
13684
- return a ? a._inactive ? h(m) : (s = r.parser.defined.includes(bt(r.sliceSerialize({
13684
+ return a ? a._inactive ? h(m) : (s = r.parser.defined.includes(Et(r.sliceSerialize({
13685
13685
  start: a.end,
13686
13686
  end: r.now()
13687
13687
  }))), e.enter("labelEnd"), e.enter("labelMarker"), e.consume(m), e.exit("labelMarker"), e.exit("labelEnd"), u) : n(m);
@@ -13733,7 +13733,7 @@ function eT(e, t, n) {
13733
13733
  return ud.call(r, e, a, s, "reference", "referenceMarker", "referenceString")(o);
13734
13734
  }
13735
13735
  function a(o) {
13736
- return r.parser.defined.includes(bt(r.sliceSerialize(r.events[r.events.length - 1][1]).slice(1, -1))) ? t(o) : n(o);
13736
+ return r.parser.defined.includes(Et(r.sliceSerialize(r.events[r.events.length - 1][1]).slice(1, -1))) ? t(o) : n(o);
13737
13737
  }
13738
13738
  function s(o) {
13739
13739
  return n(o);
@@ -14076,7 +14076,7 @@ function TT(e, t, n) {
14076
14076
  function o(u) {
14077
14077
  if (!s || !s._balanced)
14078
14078
  return n(u);
14079
- const l = bt(r.sliceSerialize({
14079
+ const l = Et(r.sliceSerialize({
14080
14080
  start: s.end,
14081
14081
  end: r.now()
14082
14082
  }));
@@ -14155,7 +14155,7 @@ function yT(e, t, n) {
14155
14155
  if (h === 93) {
14156
14156
  e.exit("chunkString");
14157
14157
  const m = e.exit("gfmFootnoteCallString");
14158
- return i.includes(bt(r.sliceSerialize(m))) ? (e.enter("gfmFootnoteCallLabelMarker"), e.consume(h), e.exit("gfmFootnoteCallLabelMarker"), e.exit("gfmFootnoteCall"), t) : n(h);
14158
+ return i.includes(Et(r.sliceSerialize(m))) ? (e.enter("gfmFootnoteCallLabelMarker"), e.consume(h), e.exit("gfmFootnoteCallLabelMarker"), e.exit("gfmFootnoteCall"), t) : n(h);
14159
14159
  }
14160
14160
  return we(h) || (s = !0), a++, e.consume(h), h === 92 ? d : l;
14161
14161
  }
@@ -14185,7 +14185,7 @@ function xT(e, t, n) {
14185
14185
  if (g === 93) {
14186
14186
  e.exit("chunkString");
14187
14187
  const k = e.exit("gfmFootnoteDefinitionLabelString");
14188
- return a = bt(r.sliceSerialize(k)), e.enter("gfmFootnoteDefinitionLabelMarker"), e.consume(g), e.exit("gfmFootnoteDefinitionLabelMarker"), e.exit("gfmFootnoteDefinitionLabel"), m;
14188
+ return a = Et(r.sliceSerialize(k)), e.enter("gfmFootnoteDefinitionLabelMarker"), e.consume(g), e.exit("gfmFootnoteDefinitionLabelMarker"), e.exit("gfmFootnoteDefinitionLabel"), m;
14189
14189
  }
14190
14190
  return we(g) || (o = !0), s++, e.consume(g), g === 92 ? h : d;
14191
14191
  }
@@ -14249,7 +14249,7 @@ function NT(e) {
14249
14249
  start: Object.assign({}, s[l][1].end),
14250
14250
  end: Object.assign({}, s[u][1].start)
14251
14251
  }, m = [["enter", d, o], ["enter", s[l][1], o], ["exit", s[l][1], o], ["enter", h, o]], f = o.parser.constructs.insideSpan.null;
14252
- f && Et(m, m.length, 0, Ni(f, s.slice(l + 1, u), o)), Et(m, m.length, 0, [["exit", h, o], ["enter", s[u][1], o], ["exit", s[u][1], o], ["exit", d, o]]), Et(s, l - 1, u - l + 3, m), u = l + m.length - 2;
14252
+ f && Tt(m, m.length, 0, Ni(f, s.slice(l + 1, u), o)), Tt(m, m.length, 0, [["exit", h, o], ["enter", s[u][1], o], ["exit", s[u][1], o], ["exit", d, o]]), Tt(s, l - 1, u - l + 3, m), u = l + m.length - 2;
14253
14253
  break;
14254
14254
  }
14255
14255
  }
@@ -14445,9 +14445,9 @@ function RT(e, t, n) {
14445
14445
  return S === 124 ? (e.enter("tableCellDivider"), e.consume(S), e.exit("tableCellDivider"), v) : S === null || ie(S) ? (e.exit("tableRow"), t(S)) : fe(S) ? Ee(e, v, "whitespace")(S) : (e.enter("data"), R(S));
14446
14446
  }
14447
14447
  function R(S) {
14448
- return S === null || S === 124 || we(S) ? (e.exit("data"), v(S)) : (e.consume(S), S === 92 ? q : R);
14448
+ return S === null || S === 124 || we(S) ? (e.exit("data"), v(S)) : (e.consume(S), S === 92 ? U : R);
14449
14449
  }
14450
- function q(S) {
14450
+ function U(S) {
14451
14451
  return S === 92 || S === 124 ? (e.consume(S), R) : R(S);
14452
14452
  }
14453
14453
  }
@@ -14680,14 +14680,14 @@ var UT = Object.defineProperty, qT = Object.defineProperties, zT = Object.getOwn
14680
14680
  }, i2 = (e) => {
14681
14681
  let t = new Uint8Array(e.length), n = e2(e, t), r = r2(e, t);
14682
14682
  return { text: e, regions: t, openFence: n, openSpan: r, mathMask: null, linkUrlMask: null, htmlTagMask: null };
14683
- }, _a = null, Zr = null, mt = (e) => {
14683
+ }, _a = null, Zr = null, gt = (e) => {
14684
14684
  if (Zr !== null && e === _a) return Zr;
14685
14685
  let t = i2(e);
14686
14686
  return _a = e, Zr = t, t;
14687
14687
  }, a2 = () => {
14688
14688
  _a = null, Zr = null;
14689
14689
  }, s2 = (e, t) => t >= e.regions.length ? e.openFence !== null || e.openSpan !== null : t < 0 ? !1 : e.regions[t] !== Ie.PROSE, o2 = (e, t) => e.regions[t] === Ie.CODE_SPAN, ys = (e, t) => {
14690
- let n = mt(e), r = t + t, i = 0;
14690
+ let n = gt(e), r = t + t, i = 0;
14691
14691
  for (let a = e.indexOf(r); a !== -1; a = e.indexOf(r, a)) n.regions[a] === Ie.PROSE ? (i += 1, a += 2) : a += 1;
14692
14692
  return i;
14693
14693
  }, xs = new Uint8Array(0), u2 = (e) => e === "inlineLatex" || e === "blockLatex", l2 = (e, t) => t === "[" && e === "none" ? "blockLatex" : t === "]" && e === "blockLatex" ? "none" : t === "(" && e === "none" ? "inlineLatex" : t === ")" && e === "inlineLatex" ? "none" : null, c2 = (e, t) => t ? e === "blockDollar" ? "none" : "blockDollar" : e === "blockDollar" ? e : e === "inlineDollar" ? "none" : "inlineDollar", d2 = (e) => e.includes("$") || e.includes("\\(") || e.includes("\\["), h2 = (e, t, n) => {
@@ -14744,7 +14744,7 @@ var UT = Object.defineProperty, qT = Object.defineProperties, zT = Object.getOwn
14744
14744
  }
14745
14745
  }
14746
14746
  return i;
14747
- }, hd = (e, t) => t < 0 || t >= e.text.length ? !1 : (e.htmlTagMask === null && (e.htmlTagMask = e.text.includes("<") ? g2(e) : xs), e.htmlTagMask[t] === 1), et = (e, t) => s2(mt(e), t), Gt = (e, t) => o2(mt(e), t), b2 = /^(\s*(?:[-*+]|\d+[.)]) +)>(=?\s*[$]?\d)/gm, E2 = (e) => !e || typeof e != "string" || !e.includes(">") ? e : e.replace(b2, (t, n, r, i) => et(e, i) ? t : `${n}\\>${r}`), Wt = (e, { delimiter: t, markerLength: n, regex: r }) => {
14747
+ }, hd = (e, t) => t < 0 || t >= e.text.length ? !1 : (e.htmlTagMask === null && (e.htmlTagMask = e.text.includes("<") ? g2(e) : xs), e.htmlTagMask[t] === 1), et = (e, t) => s2(gt(e), t), Gt = (e, t) => o2(gt(e), t), b2 = /^(\s*(?:[-*+]|\d+[.)]) +)>(=?\s*[$]?\d)/gm, E2 = (e) => !e || typeof e != "string" || !e.includes(">") ? e : e.replace(b2, (t, n, r, i) => et(e, i) ? t : `${n}\\>${r}`), Wt = (e, { delimiter: t, markerLength: n, regex: r }) => {
14748
14748
  let i = e.lastIndexOf(t, e.length - 2), a = i === -1 ? e.length - 1 : i;
14749
14749
  return e.slice(Math.max(0, a - n + 1)).match(r);
14750
14750
  }, T2 = { delimiter: "*", markerLength: 2, regex: /(\*\*)([^*]*\*?)$/ }, k2 = { delimiter: "_", markerLength: 2, regex: /(__)([^_]*?)$/ }, y2 = { delimiter: "*", markerLength: 3, regex: /(\*\*\*)([^*]*?)$/ }, x2 = { delimiter: "*", markerLength: 1, regex: /(\*)([^*]*?)$/ }, A2 = { delimiter: "_", markerLength: 1, regex: /(_)([^_]*?)$/ }, _2 = { delimiter: "~", markerLength: 2, regex: /(~~)([^~]*?)$/ }, C2 = { delimiter: "_", markerLength: 2, regex: /(__)([^_]+)_$/ }, N2 = { delimiter: "~", markerLength: 2, regex: /(~~)([^~]+)~$/ }, bn = /^[\s_~*`]*$/, fd = /^[\s]*[-*+][\s]+$/, S2 = /[\p{L}\p{N}_]/u, w2 = /^\*{4,}$/, kt = (e) => {
@@ -14761,7 +14761,7 @@ var UT = Object.defineProperty, qT = Object.defineProperties, zT = Object.getOwn
14761
14761
  for (let r = t + 1; r < e.length; r += 1) if (e[r] === "[") n += 1;
14762
14762
  else if (e[r] === "]" && (n -= 1, n === 0)) return r;
14763
14763
  return -1;
14764
- }, L2 = (e, t) => Mn(mt(e), t), Si = (e, t, n) => {
14764
+ }, L2 = (e, t) => Mn(gt(e), t), Si = (e, t, n) => {
14765
14765
  let r = 0;
14766
14766
  for (let u = t - 1; u >= 0; u -= 1) if (e[u] === `
14767
14767
  `) {
@@ -14788,7 +14788,7 @@ var UT = Object.defineProperty, qT = Object.defineProperties, zT = Object.getOwn
14788
14788
  let i = O2(e, t), a = !!t && !oi(t), s = !!e && !oi(e);
14789
14789
  return i && n % 2 === 0 && !r ? { count: !1 } : s && n % 2 === 1 || a ? { count: !0, inWordAsteriskChain: i } : { count: !1 };
14790
14790
  }, md = (e) => {
14791
- let t = mt(e), n = 0, r = !1, i = e.length;
14791
+ let t = gt(e), n = 0, r = !1, i = e.length;
14792
14792
  for (let a = 0; a < i; a += 1) {
14793
14793
  if (e[a] !== "*" || t.regions[a] !== Ie.PROSE) {
14794
14794
  kt(e[a]) || (r = !1);
@@ -14801,7 +14801,7 @@ var UT = Object.defineProperty, qT = Object.defineProperties, zT = Object.getOwn
14801
14801
  }
14802
14802
  return n;
14803
14803
  }, D2 = (e, t, n, r) => !!(n === "\\" || Mn(e, t) || As(e, t) || hd(e, t) || n === "_" || r === "_" || n && r && kt(n) && kt(r)), P2 = (e) => {
14804
- let t = mt(e), n = 0, r = e.length;
14804
+ let t = gt(e), n = 0, r = e.length;
14805
14805
  for (let i = 0; i < r; i += 1) {
14806
14806
  if (e[i] !== "_" || t.regions[i] !== Ie.PROSE) continue;
14807
14807
  let a = i > 0 ? e[i - 1] : "", s = i < r - 1 ? e[i + 1] : "";
@@ -14809,7 +14809,7 @@ var UT = Object.defineProperty, qT = Object.defineProperties, zT = Object.getOwn
14809
14809
  }
14810
14810
  return n;
14811
14811
  }, M2 = (e) => {
14812
- let t = mt(e), n = 0, r = 0;
14812
+ let t = gt(e), n = 0, r = 0;
14813
14813
  for (let i = 0; i < e.length; i += 1) e[i] === "*" && t.regions[i] === Ie.PROSE ? r += 1 : (r >= 3 && (n += Math.floor(r / 3)), r = 0);
14814
14814
  return r >= 3 && (n += Math.floor(r / 3)), n;
14815
14815
  }, _s = (e) => ys(e, "*"), nu = (e) => e === "" || e === " " || e === " " || e === `
@@ -14829,7 +14829,7 @@ var UT = Object.defineProperty, qT = Object.defineProperties, zT = Object.getOwn
14829
14829
  let u = a > 0 ? i[a - 1] : "", l = s ? "\\" : u, d = n < i.length ? i[n] : "";
14830
14830
  return kt(l) && kt(d) || B2(i, a, l, d, r) || Mn(e, a) || As(e, a) || hd(e, a) ? !1 : Math.floor(o / 2) % 2 === 1;
14831
14831
  }, ru = (e) => {
14832
- let t = mt(e), n = e.length, r = { lineEnd: -1, result: !1 }, i = !1, a = 0;
14832
+ let t = gt(e), n = e.length, r = { lineEnd: -1, result: !1 }, i = !1, a = 0;
14833
14833
  for (; a < n; ) {
14834
14834
  if (e[a] !== "_" || t.regions[a] !== Ie.PROSE) {
14835
14835
  a += 1;
@@ -14873,7 +14873,7 @@ var UT = Object.defineProperty, qT = Object.defineProperties, zT = Object.getOwn
14873
14873
  let { text: n } = e;
14874
14874
  return n[t] === "*" && e.regions[t] === Ie.PROSE && n[t - 1] !== "*" && n[t + 1] !== "*" && n[t - 1] !== "\\" && !Mn(e, t);
14875
14875
  }, V2 = (e) => {
14876
- let t = mt(e);
14876
+ let t = gt(e);
14877
14877
  for (let n = e.indexOf("*"); n !== -1; n = e.indexOf("*", n + 1)) {
14878
14878
  if (!$2(t, n)) continue;
14879
14879
  let r = n > 0 ? e[n - 1] : "", i = n < e.length - 1 ? e[n + 1] : "", a = !r || oi(r), s = !i || oi(i);
@@ -14887,7 +14887,7 @@ var UT = Object.defineProperty, qT = Object.defineProperties, zT = Object.getOwn
14887
14887
  let n = e.substring(t + 1);
14888
14888
  return !n || bn.test(n) ? e : md(e) % 2 === 1 ? `${e}*` : e;
14889
14889
  }, gd = (e) => {
14890
- let t = mt(e);
14890
+ let t = gt(e);
14891
14891
  for (let n = e.indexOf("_"); n !== -1; n = e.indexOf("_", n + 1)) if (t.regions[n] === Ie.PROSE && e[n - 1] !== "_" && e[n + 1] !== "_" && e[n - 1] !== "\\" && !Mn(t, n) && !As(t, n)) {
14892
14892
  let r = n > 0 ? e[n - 1] : "", i = n < e.length - 1 ? e[n + 1] : "";
14893
14893
  if (r && i && kt(r) && kt(i)) continue;
@@ -14939,7 +14939,7 @@ var UT = Object.defineProperty, qT = Object.defineProperties, zT = Object.getOwn
14939
14939
  for (let r = t.index; r < e.length; r += 1) if (!(e[r] !== "<" || !tk(e, r)) && !et(e, r) && !(n && L2(e, r))) return e.substring(0, r).trimEnd();
14940
14940
  return e;
14941
14941
  }, rk = (e) => {
14942
- let t = mt(e);
14942
+ let t = gt(e);
14943
14943
  if (t.openFence) return e;
14944
14944
  let n = t.openSpan;
14945
14945
  if (!n) return e;
@@ -14949,7 +14949,7 @@ var UT = Object.defineProperty, qT = Object.defineProperties, zT = Object.getOwn
14949
14949
  for (; a >= 0 && e[a] === "`"; ) i += 1, a -= 1;
14950
14950
  return i >= n.runLength ? e : e + "`".repeat(n.runLength - i);
14951
14951
  }, ik = (e) => ys(e, "$"), ak = (e) => {
14952
- let t = mt(e), n = 0;
14952
+ let t = gt(e), n = 0;
14953
14953
  for (let r = 0; r < e.length; r += 1) {
14954
14954
  if (e[r] === "\\") {
14955
14955
  r += 1;
@@ -15418,9 +15418,9 @@ const Nk = (e, t) => {
15418
15418
  "bottom-left",
15419
15419
  // Deprecated since Tailwind CSS v4.1.0, see https://github.com/tailwindlabs/tailwindcss/pull/17378
15420
15420
  "left-bottom"
15421
- ], D = () => [...O(), K, Q], w = () => ["auto", "hidden", "clip", "visible", "scroll"], v = () => ["auto", "contain", "none"], R = () => [K, Q, u], q = () => [Bt, "full", "auto", ...R()], S = () => [Nt, "none", "subgrid", K, Q], M = () => ["auto", {
15421
+ ], D = () => [...O(), K, Q], w = () => ["auto", "hidden", "clip", "visible", "scroll"], v = () => ["auto", "contain", "none"], R = () => [K, Q, u], U = () => [Bt, "full", "auto", ...R()], S = () => [Nt, "none", "subgrid", K, Q], M = () => ["auto", {
15422
15422
  span: ["full", Nt, K, Q]
15423
- }, Nt, K, Q], $ = () => [Nt, "auto", K, Q], G = () => ["auto", "min", "max", "fr", K, Q], Y = () => ["start", "end", "center", "between", "around", "evenly", "stretch", "baseline", "center-safe", "end-safe"], U = () => ["start", "end", "center", "stretch", "center-safe", "end-safe"], W = () => ["auto", ...R()], Z = () => [Bt, "auto", "full", "dvw", "dvh", "lvw", "lvh", "svw", "svh", "min", "max", "fit", ...R()], ue = () => [o, Bt, "screen", "full", "dvw", "lvw", "svw", "min", "max", "fit", ...R()], ge = () => [Bt, "screen", "full", "lh", "dvh", "lvh", "svh", "min", "max", "fit", ...R()], E = () => [e, K, Q], Me = () => [...O(), du, cu, {
15423
+ }, Nt, K, Q], $ = () => [Nt, "auto", K, Q], G = () => ["auto", "min", "max", "fr", K, Q], Y = () => ["start", "end", "center", "between", "around", "evenly", "stretch", "baseline", "center-safe", "end-safe"], q = () => ["start", "end", "center", "stretch", "center-safe", "end-safe"], W = () => ["auto", ...R()], Z = () => [Bt, "auto", "full", "dvw", "dvh", "lvw", "lvh", "svw", "svh", "min", "max", "fit", ...R()], ue = () => [o, Bt, "screen", "full", "dvw", "lvw", "svw", "min", "max", "fit", ...R()], ge = () => [Bt, "screen", "full", "lh", "dvh", "lvh", "svh", "min", "max", "fit", ...R()], E = () => [e, K, Q], Me = () => [...O(), du, cu, {
15424
15424
  position: [K, Q]
15425
15425
  }], De = () => ["no-repeat", {
15426
15426
  repeat: ["", "x", "y", "space", "round"]
@@ -15631,21 +15631,21 @@ const Nk = (e, t) => {
15631
15631
  * @see https://tailwindcss.com/docs/top-right-bottom-left
15632
15632
  */
15633
15633
  inset: [{
15634
- inset: q()
15634
+ inset: U()
15635
15635
  }],
15636
15636
  /**
15637
15637
  * Inset Inline
15638
15638
  * @see https://tailwindcss.com/docs/top-right-bottom-left
15639
15639
  */
15640
15640
  "inset-x": [{
15641
- "inset-x": q()
15641
+ "inset-x": U()
15642
15642
  }],
15643
15643
  /**
15644
15644
  * Inset Block
15645
15645
  * @see https://tailwindcss.com/docs/top-right-bottom-left
15646
15646
  */
15647
15647
  "inset-y": [{
15648
- "inset-y": q()
15648
+ "inset-y": U()
15649
15649
  }],
15650
15650
  /**
15651
15651
  * Inset Inline Start
@@ -15653,12 +15653,12 @@ const Nk = (e, t) => {
15653
15653
  * @todo class group will be renamed to `inset-s` in next major release
15654
15654
  */
15655
15655
  start: [{
15656
- "inset-s": q(),
15656
+ "inset-s": U(),
15657
15657
  /**
15658
15658
  * @deprecated since Tailwind CSS v4.2.0 in favor of `inset-s-*` utilities.
15659
15659
  * @see https://github.com/tailwindlabs/tailwindcss/pull/19613
15660
15660
  */
15661
- start: q()
15661
+ start: U()
15662
15662
  }],
15663
15663
  /**
15664
15664
  * Inset Inline End
@@ -15666,54 +15666,54 @@ const Nk = (e, t) => {
15666
15666
  * @todo class group will be renamed to `inset-e` in next major release
15667
15667
  */
15668
15668
  end: [{
15669
- "inset-e": q(),
15669
+ "inset-e": U(),
15670
15670
  /**
15671
15671
  * @deprecated since Tailwind CSS v4.2.0 in favor of `inset-e-*` utilities.
15672
15672
  * @see https://github.com/tailwindlabs/tailwindcss/pull/19613
15673
15673
  */
15674
- end: q()
15674
+ end: U()
15675
15675
  }],
15676
15676
  /**
15677
15677
  * Inset Block Start
15678
15678
  * @see https://tailwindcss.com/docs/top-right-bottom-left
15679
15679
  */
15680
15680
  "inset-bs": [{
15681
- "inset-bs": q()
15681
+ "inset-bs": U()
15682
15682
  }],
15683
15683
  /**
15684
15684
  * Inset Block End
15685
15685
  * @see https://tailwindcss.com/docs/top-right-bottom-left
15686
15686
  */
15687
15687
  "inset-be": [{
15688
- "inset-be": q()
15688
+ "inset-be": U()
15689
15689
  }],
15690
15690
  /**
15691
15691
  * Top
15692
15692
  * @see https://tailwindcss.com/docs/top-right-bottom-left
15693
15693
  */
15694
15694
  top: [{
15695
- top: q()
15695
+ top: U()
15696
15696
  }],
15697
15697
  /**
15698
15698
  * Right
15699
15699
  * @see https://tailwindcss.com/docs/top-right-bottom-left
15700
15700
  */
15701
15701
  right: [{
15702
- right: q()
15702
+ right: U()
15703
15703
  }],
15704
15704
  /**
15705
15705
  * Bottom
15706
15706
  * @see https://tailwindcss.com/docs/top-right-bottom-left
15707
15707
  */
15708
15708
  bottom: [{
15709
- bottom: q()
15709
+ bottom: U()
15710
15710
  }],
15711
15711
  /**
15712
15712
  * Left
15713
15713
  * @see https://tailwindcss.com/docs/top-right-bottom-left
15714
15714
  */
15715
15715
  left: [{
15716
- left: q()
15716
+ left: U()
15717
15717
  }],
15718
15718
  /**
15719
15719
  * Visibility
@@ -15889,14 +15889,14 @@ const Nk = (e, t) => {
15889
15889
  * @see https://tailwindcss.com/docs/justify-items
15890
15890
  */
15891
15891
  "justify-items": [{
15892
- "justify-items": [...U(), "normal"]
15892
+ "justify-items": [...q(), "normal"]
15893
15893
  }],
15894
15894
  /**
15895
15895
  * Justify Self
15896
15896
  * @see https://tailwindcss.com/docs/justify-self
15897
15897
  */
15898
15898
  "justify-self": [{
15899
- "justify-self": ["auto", ...U()]
15899
+ "justify-self": ["auto", ...q()]
15900
15900
  }],
15901
15901
  /**
15902
15902
  * Align Content
@@ -15910,7 +15910,7 @@ const Nk = (e, t) => {
15910
15910
  * @see https://tailwindcss.com/docs/align-items
15911
15911
  */
15912
15912
  "align-items": [{
15913
- items: [...U(), {
15913
+ items: [...q(), {
15914
15914
  baseline: ["", "last"]
15915
15915
  }]
15916
15916
  }],
@@ -15919,7 +15919,7 @@ const Nk = (e, t) => {
15919
15919
  * @see https://tailwindcss.com/docs/align-self
15920
15920
  */
15921
15921
  "align-self": [{
15922
- self: ["auto", ...U(), {
15922
+ self: ["auto", ...q(), {
15923
15923
  baseline: ["", "last"]
15924
15924
  }]
15925
15925
  }],
@@ -15935,14 +15935,14 @@ const Nk = (e, t) => {
15935
15935
  * @see https://tailwindcss.com/docs/place-items
15936
15936
  */
15937
15937
  "place-items": [{
15938
- "place-items": [...U(), "baseline"]
15938
+ "place-items": [...q(), "baseline"]
15939
15939
  }],
15940
15940
  /**
15941
15941
  * Place Self
15942
15942
  * @see https://tailwindcss.com/docs/place-self
15943
15943
  */
15944
15944
  "place-self": [{
15945
- "place-self": ["auto", ...U()]
15945
+ "place-self": ["auto", ...q()]
15946
15946
  }],
15947
15947
  // Spacing
15948
15948
  /**
@@ -18114,15 +18114,15 @@ function yy() {
18114
18114
  x = x || {};
18115
18115
  var C = 1, y = 1;
18116
18116
  function O(Y) {
18117
- var U = Y.match(t);
18118
- U && (C += U.length);
18117
+ var q = Y.match(t);
18118
+ q && (C += q.length);
18119
18119
  var W = Y.lastIndexOf(u);
18120
18120
  y = ~W ? Y.length - W : y + Y.length;
18121
18121
  }
18122
18122
  function D() {
18123
18123
  var Y = { line: C, column: y };
18124
- return function(U) {
18125
- return U.position = new w(Y), q(), U;
18124
+ return function(q) {
18125
+ return q.position = new w(Y), U(), q;
18126
18126
  };
18127
18127
  }
18128
18128
  function w(Y) {
@@ -18130,48 +18130,48 @@ function yy() {
18130
18130
  }
18131
18131
  w.prototype.content = A;
18132
18132
  function v(Y) {
18133
- var U = new Error(
18133
+ var q = new Error(
18134
18134
  x.source + ":" + C + ":" + y + ": " + Y
18135
18135
  );
18136
- if (U.reason = Y, U.filename = x.source, U.line = C, U.column = y, U.source = A, !x.silent) throw U;
18136
+ if (q.reason = Y, q.filename = x.source, q.line = C, q.column = y, q.source = A, !x.silent) throw q;
18137
18137
  }
18138
18138
  function R(Y) {
18139
- var U = Y.exec(A);
18140
- if (U) {
18141
- var W = U[0];
18142
- return O(W), A = A.slice(W.length), U;
18139
+ var q = Y.exec(A);
18140
+ if (q) {
18141
+ var W = q[0];
18142
+ return O(W), A = A.slice(W.length), q;
18143
18143
  }
18144
18144
  }
18145
- function q() {
18145
+ function U() {
18146
18146
  R(n);
18147
18147
  }
18148
18148
  function S(Y) {
18149
- var U;
18150
- for (Y = Y || []; U = M(); )
18151
- U !== !1 && Y.push(U);
18149
+ var q;
18150
+ for (Y = Y || []; q = M(); )
18151
+ q !== !1 && Y.push(q);
18152
18152
  return Y;
18153
18153
  }
18154
18154
  function M() {
18155
18155
  var Y = D();
18156
18156
  if (!(l != A.charAt(0) || d != A.charAt(1))) {
18157
- for (var U = 2; h != A.charAt(U) && (d != A.charAt(U) || l != A.charAt(U + 1)); )
18158
- ++U;
18159
- if (U += 2, h === A.charAt(U - 1))
18157
+ for (var q = 2; h != A.charAt(q) && (d != A.charAt(q) || l != A.charAt(q + 1)); )
18158
+ ++q;
18159
+ if (q += 2, h === A.charAt(q - 1))
18160
18160
  return v("End of comment missing");
18161
- var W = A.slice(2, U - 2);
18162
- return y += 2, O(W), A = A.slice(U), y += 2, Y({
18161
+ var W = A.slice(2, q - 2);
18162
+ return y += 2, O(W), A = A.slice(q), y += 2, Y({
18163
18163
  type: m,
18164
18164
  comment: W
18165
18165
  });
18166
18166
  }
18167
18167
  }
18168
18168
  function $() {
18169
- var Y = D(), U = R(r);
18170
- if (U) {
18169
+ var Y = D(), q = R(r);
18170
+ if (q) {
18171
18171
  if (M(), !R(i)) return v("property missing ':'");
18172
18172
  var W = R(a), Z = Y({
18173
18173
  type: f,
18174
- property: k(U[0].replace(e, h)),
18174
+ property: k(q[0].replace(e, h)),
18175
18175
  value: W ? k(W[0].replace(e, h)) : h
18176
18176
  });
18177
18177
  return R(s), Z;
@@ -18180,11 +18180,11 @@ function yy() {
18180
18180
  function G() {
18181
18181
  var Y = [];
18182
18182
  S(Y);
18183
- for (var U; U = $(); )
18184
- U !== !1 && (Y.push(U), S(Y));
18183
+ for (var q; q = $(); )
18184
+ q !== !1 && (Y.push(q), S(Y));
18185
18185
  return Y;
18186
18186
  }
18187
- return q(), G();
18187
+ return U(), G();
18188
18188
  }
18189
18189
  function k(A) {
18190
18190
  return A ? A.replace(o, h) : h;
@@ -18777,14 +18777,14 @@ function Ky(e) {
18777
18777
  )
18778
18778
  return;
18779
18779
  const v = t.events.length;
18780
- let R = v, q, S;
18780
+ let R = v, U, S;
18781
18781
  for (; R--; )
18782
18782
  if (t.events[R][0] === "exit" && t.events[R][1].type === "chunkFlow") {
18783
- if (q) {
18783
+ if (U) {
18784
18784
  S = t.events[R][1].end;
18785
18785
  break;
18786
18786
  }
18787
- q = !0;
18787
+ U = !0;
18788
18788
  }
18789
18789
  for (x(r), w = v; w < t.events.length; )
18790
18790
  t.events[w][1].end = {
@@ -19040,14 +19040,14 @@ function px(e, t, n) {
19040
19040
  _index: $,
19041
19041
  line: G,
19042
19042
  column: Y,
19043
- offset: U
19043
+ offset: q
19044
19044
  } = r;
19045
19045
  return {
19046
19046
  _bufferIndex: M,
19047
19047
  _index: $,
19048
19048
  line: G,
19049
19049
  column: Y,
19050
- offset: U
19050
+ offset: q
19051
19051
  };
19052
19052
  }
19053
19053
  function k(M) {
@@ -19089,7 +19089,7 @@ function px(e, t, n) {
19089
19089
  }
19090
19090
  function v(M, $) {
19091
19091
  return G;
19092
- function G(Y, U, W) {
19092
+ function G(Y, q, W) {
19093
19093
  let Z, ue, ge, E;
19094
19094
  return Array.isArray(Y) ? (
19095
19095
  /* c8 ignore next 1 */
@@ -19119,7 +19119,7 @@ function px(e, t, n) {
19119
19119
  function N(ne) {
19120
19120
  return Be;
19121
19121
  function Be(Ve) {
19122
- return E = q(), ge = ne, ne.partial || (l.currentConstruct = ne), ne.name && l.parser.constructs.disable.null.includes(ne.name) ? ye() : ne.tokenize.call(
19122
+ return E = U(), ge = ne, ne.partial || (l.currentConstruct = ne), ne.name && l.parser.constructs.disable.null.includes(ne.name) ? ye() : ne.tokenize.call(
19123
19123
  // If we do have fields, create an object w/ `context` as its
19124
19124
  // prototype.
19125
19125
  // This allows a “live binding”, which is needed for `interrupt`.
@@ -19131,7 +19131,7 @@ function px(e, t, n) {
19131
19131
  }
19132
19132
  }
19133
19133
  function ke(ne) {
19134
- return M(ge, E), U;
19134
+ return M(ge, E), q;
19135
19135
  }
19136
19136
  function ye(ne) {
19137
19137
  return E.restore(), ++ue < Z.length ? N(Z[ue]) : W;
@@ -19139,16 +19139,16 @@ function px(e, t, n) {
19139
19139
  }
19140
19140
  }
19141
19141
  function R(M, $) {
19142
- M.resolveAll && !a.includes(M) && a.push(M), M.resolve && Et(l.events, $, l.events.length - $, M.resolve(l.events.slice($), l)), M.resolveTo && (l.events = M.resolveTo(l.events, l));
19142
+ M.resolveAll && !a.includes(M) && a.push(M), M.resolve && Tt(l.events, $, l.events.length - $, M.resolve(l.events.slice($), l)), M.resolveTo && (l.events = M.resolveTo(l.events, l));
19143
19143
  }
19144
- function q() {
19145
- const M = g(), $ = l.previous, G = l.currentConstruct, Y = l.events.length, U = Array.from(o);
19144
+ function U() {
19145
+ const M = g(), $ = l.previous, G = l.currentConstruct, Y = l.events.length, q = Array.from(o);
19146
19146
  return {
19147
19147
  from: Y,
19148
19148
  restore: W
19149
19149
  };
19150
19150
  function W() {
19151
- r = M, l.previous = $, l.currentConstruct = G, l.events.length = Y, o = U, S();
19151
+ r = M, l.previous = $, l.currentConstruct = G, l.events.length = Y, o = q, S();
19152
19152
  }
19153
19153
  }
19154
19154
  function S() {
@@ -19362,7 +19362,7 @@ function yx(e) {
19362
19362
  hardBreakTrailing: l(G),
19363
19363
  htmlFlow: l(Y),
19364
19364
  htmlFlowData: M,
19365
- htmlText: l(U),
19365
+ htmlText: l(q),
19366
19366
  htmlTextData: M,
19367
19367
  image: l(ue),
19368
19368
  label: E,
@@ -19377,7 +19377,7 @@ function yx(e) {
19377
19377
  resourceDestinationString: Me,
19378
19378
  resourceTitleString: De,
19379
19379
  resource: N,
19380
- setextHeading: l(q),
19380
+ setextHeading: l(U),
19381
19381
  setextHeadingLineSequence: R,
19382
19382
  setextHeadingText: v,
19383
19383
  strong: l(),
@@ -19581,7 +19581,7 @@ function yx(e) {
19581
19581
  }
19582
19582
  function y(L) {
19583
19583
  const H = this.resume(), J = this.stack[this.stack.length - 1];
19584
- J.label = H, J.identifier = bt(this.sliceSerialize(L)).toLowerCase();
19584
+ J.label = H, J.identifier = Et(this.sliceSerialize(L)).toLowerCase();
19585
19585
  }
19586
19586
  function O() {
19587
19587
  const L = this.resume(), H = this.stack[this.stack.length - 1];
@@ -19605,7 +19605,7 @@ function yx(e) {
19605
19605
  const H = this.stack[this.stack.length - 1];
19606
19606
  H.depth = this.sliceSerialize(L).codePointAt(0) === 61 ? 1 : 2;
19607
19607
  }
19608
- function q() {
19608
+ function U() {
19609
19609
  this.data.setextHeadingSlurpLineEnding = void 0;
19610
19610
  }
19611
19611
  function S(L) {
@@ -19637,7 +19637,7 @@ function yx(e) {
19637
19637
  const L = this.resume(), H = this.stack[this.stack.length - 1];
19638
19638
  H.value = L;
19639
19639
  }
19640
- function U() {
19640
+ function q() {
19641
19641
  const L = this.resume(), H = this.stack[this.stack.length - 1];
19642
19642
  H.value = L;
19643
19643
  }
@@ -19665,7 +19665,7 @@ function yx(e) {
19665
19665
  }
19666
19666
  function ge(L) {
19667
19667
  const H = this.sliceSerialize(L), J = this.stack[this.stack.length - 2];
19668
- J.label = Rb(H), J.identifier = bt(H).toLowerCase();
19668
+ J.label = Rb(H), J.identifier = Et(H).toLowerCase();
19669
19669
  }
19670
19670
  function E() {
19671
19671
  const L = this.stack[this.stack.length - 1], H = this.resume(), J = this.stack[this.stack.length - 1];
@@ -19691,7 +19691,7 @@ function yx(e) {
19691
19691
  }
19692
19692
  function ye(L) {
19693
19693
  const H = this.resume(), J = this.stack[this.stack.length - 1];
19694
- J.label = H, J.identifier = bt(this.sliceSerialize(L)).toLowerCase(), this.data.referenceType = "full";
19694
+ J.label = H, J.identifier = Et(this.sliceSerialize(L)).toLowerCase(), this.data.referenceType = "full";
19695
19695
  }
19696
19696
  function ne(L) {
19697
19697
  this.data.characterReferenceType = L.type;
@@ -20362,7 +20362,7 @@ function eA(e, t) {
20362
20362
  patch: tA,
20363
20363
  wrap: iA
20364
20364
  };
20365
- return pt(e, function(d) {
20365
+ return mt(e, function(d) {
20366
20366
  if (d.type === "definition" || d.type === "footnoteDefinition") {
20367
20367
  const h = d.type === "definition" ? r : i, m = String(d.identifier).toUpperCase();
20368
20368
  h.has(m) || h.set(m, d);
@@ -21908,11 +21908,11 @@ ${y.join(`
21908
21908
  `, 1)[0], g = t[1].length, k = this.options.pedantic ? ia(f, g) : f.replace(this.rules.other.leadingSpaceTab, (O) => ia(O, g)), A = e.split(`
21909
21909
  `, 1)[0], x = !k.trim(), C = 0;
21910
21910
  if (this.options.pedantic ? (C = 2, h = k.trimStart()) : x ? C = g + 1 : (C = k.search(this.rules.other.nonSpaceChar), C = C > 4 ? 1 : C, h = k.slice(C), C += g), x && this.rules.other.blankLine.test(A) && (e = e.substring(A.length + 1), d = !0), !d) {
21911
- let O = this.rules.other.nextBulletRegex(C), D = this.rules.other.hrRegex(C), w = this.rules.other.fencesBeginRegex(C), v = this.rules.other.headingBeginRegex(C), R = this.rules.other.htmlBeginRegex(C), q = this.rules.other.blockquoteBeginRegex(C);
21911
+ let O = this.rules.other.nextBulletRegex(C), D = this.rules.other.hrRegex(C), w = this.rules.other.fencesBeginRegex(C), v = this.rules.other.headingBeginRegex(C), R = this.rules.other.htmlBeginRegex(C), U = this.rules.other.blockquoteBeginRegex(C);
21912
21912
  for (; e; ) {
21913
21913
  let S = e.split(`
21914
21914
  `, 1)[0], M;
21915
- if (A = S, this.options.pedantic ? (A = A.replace(this.rules.other.listReplaceNesting, " "), M = A) : M = A.replace(this.rules.other.leadingSpaceTab, ($) => ia($)), w.test(A) || v.test(A) || R.test(A) || q.test(A) || O.test(A) || D.test(A)) break;
21915
+ if (A = S, this.options.pedantic ? (A = A.replace(this.rules.other.listReplaceNesting, " "), M = A) : M = A.replace(this.rules.other.leadingSpaceTab, ($) => ia($)), w.test(A) || v.test(A) || R.test(A) || U.test(A) || O.test(A) || D.test(A)) break;
21916
21916
  if (M.search(this.rules.other.nonSpaceChar) >= C || !A.trim()) h += `
21917
21917
  ` + M.slice(C);
21918
21918
  else {
@@ -22532,7 +22532,7 @@ ${e}</tr>
22532
22532
  checkbox({ raw: e }) {
22533
22533
  return e;
22534
22534
  }
22535
- }, gt = class Oa {
22535
+ }, bt = class Oa {
22536
22536
  options;
22537
22537
  renderer;
22538
22538
  textRenderer;
@@ -22707,7 +22707,7 @@ ${e}</tr>
22707
22707
  return e ? dt.lex : dt.lexInline;
22708
22708
  }
22709
22709
  provideParser(e = this.block) {
22710
- return e ? gt.parse : gt.parseInline;
22710
+ return e ? bt.parse : bt.parseInline;
22711
22711
  }
22712
22712
  };
22713
22713
  function nn(e, t) {
@@ -22719,7 +22719,7 @@ var w3 = class {
22719
22719
  options = this.setOptions;
22720
22720
  parse = this.parseMarkdown(!0);
22721
22721
  parseInline = this.parseMarkdown(!1);
22722
- Parser = gt;
22722
+ Parser = bt;
22723
22723
  Renderer = hi;
22724
22724
  TextRenderer = Fs;
22725
22725
  Lexer = dt;
@@ -22838,7 +22838,7 @@ var w3 = class {
22838
22838
  return dt.lex(e, t ?? this.defaults);
22839
22839
  }
22840
22840
  parser(e, t) {
22841
- return gt.parse(e, t ?? this.defaults);
22841
+ return bt.parse(e, t ?? this.defaults);
22842
22842
  }
22843
22843
  parseMarkdown(e) {
22844
22844
  return (t, n) => {
@@ -22849,14 +22849,14 @@ var w3 = class {
22849
22849
  if (i.hooks && (i.hooks.options = i, i.hooks.block = e), i.async) return (async () => {
22850
22850
  let s = i.hooks ? await i.hooks.preprocess(t) : t, o = await (i.hooks ? await i.hooks.provideLexer(e) : e ? dt.lex : dt.lexInline)(s, i), u = i.hooks ? await i.hooks.processAllTokens(o) : o;
22851
22851
  i.walkTokens && await Promise.all(this.walkTokens(u, i.walkTokens));
22852
- let l = await (i.hooks ? await i.hooks.provideParser(e) : e ? gt.parse : gt.parseInline)(u, i);
22852
+ let l = await (i.hooks ? await i.hooks.provideParser(e) : e ? bt.parse : bt.parseInline)(u, i);
22853
22853
  return i.hooks ? await i.hooks.postprocess(l) : l;
22854
22854
  })().catch(a);
22855
22855
  try {
22856
22856
  i.hooks && (t = i.hooks.preprocess(t));
22857
22857
  let s = (i.hooks ? i.hooks.provideLexer(e) : e ? dt.lex : dt.lexInline)(t, i);
22858
22858
  i.hooks && (s = i.hooks.processAllTokens(s)), i.walkTokens && this.walkTokens(s, i.walkTokens);
22859
- let o = (i.hooks ? i.hooks.provideParser(e) : e ? gt.parse : gt.parseInline)(s, i);
22859
+ let o = (i.hooks ? i.hooks.provideParser(e) : e ? bt.parse : bt.parseInline)(s, i);
22860
22860
  return i.hooks && (o = i.hooks.postprocess(o)), o;
22861
22861
  } catch (s) {
22862
22862
  return a(s);
@@ -22891,8 +22891,8 @@ Se.walkTokens = function(e, t) {
22891
22891
  return fn.walkTokens(e, t);
22892
22892
  };
22893
22893
  Se.parseInline = fn.parseInline;
22894
- Se.Parser = gt;
22895
- Se.parser = gt.parse;
22894
+ Se.Parser = bt;
22895
+ Se.parser = bt.parse;
22896
22896
  Se.Renderer = hi;
22897
22897
  Se.TextRenderer = Fs;
22898
22898
  Se.Lexer = dt;
@@ -22904,7 +22904,7 @@ Se.options;
22904
22904
  Se.setOptions;
22905
22905
  Se.walkTokens;
22906
22906
  Se.parseInline;
22907
- gt.parse;
22907
+ bt.parse;
22908
22908
  dt.lex;
22909
22909
  var L3 = 300, R3 = "300px", O3 = 500;
22910
22910
  function v3(e = {}) {
@@ -23165,7 +23165,7 @@ var uh = Qt(!1), lh = () => ve(uh), wi = (...e) => Dd(Td(e)), X3 = (e, t) => {
23165
23165
  for (; t > 0 && e[t - 1] === `
23166
23166
  `; ) t--;
23167
23167
  return e.slice(0, t);
23168
- }, o_ = _l(() => import("./highlighted-body-JLMTFACH-BmLfF80m.js").then((e) => ({ default: e.HighlightedCodeBlockBody }))), u_ = ({ code: e, language: t, className: n, children: r, isIncomplete: i = !1, startLine: a, lineNumbers: s, ...o }) => {
23168
+ }, o_ = _l(() => import("./highlighted-body-JLMTFACH-DAlcAY-8.js").then((e) => ({ default: e.HighlightedCodeBlockBody }))), u_ = ({ code: e, language: t, className: n, children: r, isIncomplete: i = !1, startLine: a, lineNumbers: s, ...o }) => {
23169
23169
  let u = me(), { codeBlockMaxHeight: l } = ve(We), d = Ae(() => s_(e), [e]), h = Ae(() => ({ bg: "transparent", fg: "inherit", tokens: d.split(`
23170
23170
  `).map((m) => [{ content: m, color: "inherit", bgColor: "transparent", htmlStyle: {}, offset: 0 }]) }), [d]);
23171
23171
  return p(hh.Provider, { value: { code: e }, children: B(i_, { dir: "ltr", isIncomplete: i, language: t, children: [p(a_, { language: t }), r ? p("div", { className: u("pointer-events-none absolute top-2 right-2 z-10 flex items-center"), children: p("div", { className: u("pointer-events-auto flex shrink-0 items-center gap-2 rounded-md border border-sidebar bg-sidebar/80 px-1.5 py-1 supports-[backdrop-filter]:bg-sidebar/70 supports-[backdrop-filter]:backdrop-blur"), "data-streamdown": "code-block-actions", children: r }) }) : null, p(ca, { fallback: p(r_, { className: n, language: t, lineNumbers: s, maxHeight: l, result: h, startLine: a, ...o }), children: p(o_, { className: n, code: d, isIncomplete: i, language: t, lineNumbers: s, maxHeight: l, raw: h, startLine: a, ...o }) })] }) });
@@ -23236,7 +23236,7 @@ var uh = Qt(!1), lh = () => ve(uh), wi = (...e) => Dd(Td(e)), X3 = (e, t) => {
23236
23236
  f(!1), k(!0), a?.(v);
23237
23237
  }, [a]), w = async () => {
23238
23238
  if (n) try {
23239
- let v = await (await fetch(n)).blob(), R = new URL(n, window.location.origin).pathname.split("/").pop() || "", q = R.split(".").pop(), S = R.includes(".") && q !== void 0 && q.length <= 4, M = "";
23239
+ let v = await (await fetch(n)).blob(), R = new URL(n, window.location.origin).pathname.split("/").pop() || "", U = R.split(".").pop(), S = R.includes(".") && U !== void 0 && U.length <= 4, M = "";
23240
23240
  if (S) M = R;
23241
23241
  else {
23242
23242
  let $ = v.type, G = "png";
@@ -23514,9 +23514,9 @@ var Th = (e) => {
23514
23514
  r?.(new Error("Table not found"));
23515
23515
  return;
23516
23516
  }
23517
- let R = Th(v), q = "";
23518
- y === "csv" ? q = yh(R, k) : y === "tsv" ? q = M_(R) : q = xh(R);
23519
- let S = new ClipboardItem({ "text/plain": new Blob([q], { type: "text/plain" }), "text/html": new Blob([v.outerHTML], { type: "text/html" }) });
23517
+ let R = Th(v), U = "";
23518
+ y === "csv" ? U = yh(R, k) : y === "tsv" ? U = M_(R) : U = xh(R);
23519
+ let S = new ClipboardItem({ "text/plain": new Blob([U], { type: "text/plain" }), "text/html": new Blob([v.outerHTML], { type: "text/html" }) });
23520
23520
  await navigator.clipboard.write([S]), l(!0), o(!1), n?.(y), h.current = window.setTimeout(() => l(!1), i);
23521
23521
  } catch (w) {
23522
23522
  r?.(w);
@@ -23579,7 +23579,7 @@ var Th = (e) => {
23579
23579
  }, F_ = ({ children: e, className: t, maxHeight: n, showControls: r, showCopy: i = !0, showDownload: a = !0, showFullscreen: s = !0, ...o }) => {
23580
23580
  let u = me(), { isAnimating: l } = ve(We), d = ch(n), h = dh(l, !!d, e), m = r && i, f = r && a, g = r && s, k = m || f || g;
23581
23581
  return B("div", { className: u("my-4 flex flex-col gap-2 rounded-lg border border-border bg-sidebar p-2"), "data-streamdown": "table-wrapper", children: [k ? B("div", { className: u("flex items-center justify-end gap-1"), children: [m ? p(Ah, {}) : null, f ? p(_h, {}) : null, g ? p(B_, { showCopy: m, showDownload: f, children: e }) : null] }) : null, p("div", { className: u("border-collapse overflow-x-auto overflow-y-auto rounded-md border border-border bg-background"), ref: h, style: d ? { maxHeight: d } : void 0, children: p("table", { className: u("w-full divide-y divide-border", t), "data-streamdown": "table", ...o, children: e }) })] });
23582
- }, H_ = /startLine=(\d+)/, U_ = /\bnoLineNumbers\b/, q_ = _l(() => import("./mermaid-WFAXDIZX-CjDBEjC-.js").then((e) => ({ default: e.Mermaid }))), z_ = /language-([^\s]+)/, $_ = "node";
23582
+ }, H_ = /startLine=(\d+)/, U_ = /\bnoLineNumbers\b/, q_ = _l(() => import("./mermaid-WFAXDIZX-r3CZs5tK.js").then((e) => ({ default: e.Mermaid }))), z_ = /language-([^\s]+)/, $_ = "node";
23583
23583
  function Le(e, t) {
23584
23584
  let n = Object.keys(e);
23585
23585
  if (n.length !== Object.keys(t).length) return !1;
@@ -23773,10 +23773,10 @@ var G_ = ({ node: e, className: t, children: n, ...r }) => {
23773
23773
  return p(ca, { fallback: p(Qu, {}), children: p(M, { code: D, isIncomplete: m, language: g, meta: A }) });
23774
23774
  }
23775
23775
  if (g === "mermaid" && h) {
23776
- let M = fi(l, "mermaid"), $ = Gr(l, "download"), G = Gr(l, "copy"), Y = Gr(l, "fullscreen"), U = Gr(l, "panZoom"), W = M && ($ || G || Y);
23777
- return p(ca, { fallback: p(Qu, {}), children: B("div", { className: s("group relative my-4 flex w-full flex-col gap-2 rounded-xl border border-border bg-sidebar p-2", t), "data-streamdown": "mermaid-block", children: [p("div", { className: s("flex h-8 items-center text-muted-foreground text-xs"), children: p("span", { className: s("ml-1 font-mono lowercase"), children: "mermaid" }) }), W ? p("div", { className: s("pointer-events-none absolute top-2 right-2 z-10 flex items-center"), children: B("div", { className: s("pointer-events-auto flex shrink-0 items-center gap-2 rounded-md border border-sidebar bg-sidebar/80 px-1.5 py-1 supports-[backdrop-filter]:bg-sidebar/70 supports-[backdrop-filter]:backdrop-blur"), "data-streamdown": "mermaid-block-actions", children: [$ ? p(Eh, { chart: D, config: u?.config }) : null, G ? p(Ma, { code: D, ...Gu(l, "mermaid") }) : null, Y ? p(P_, { chart: D, config: u?.config }) : null] }) }) : null, p("div", { className: s("overflow-hidden rounded-md border border-border bg-background"), children: p(q_, { chart: D, config: u?.config, showControls: U }) })] }) });
23776
+ let M = fi(l, "mermaid"), $ = Gr(l, "download"), G = Gr(l, "copy"), Y = Gr(l, "fullscreen"), q = Gr(l, "panZoom"), W = M && ($ || G || Y);
23777
+ return p(ca, { fallback: p(Qu, {}), children: B("div", { className: s("group relative my-4 flex w-full flex-col gap-2 rounded-xl border border-border bg-sidebar p-2", t), "data-streamdown": "mermaid-block", children: [p("div", { className: s("flex h-8 items-center text-muted-foreground text-xs"), children: p("span", { className: s("ml-1 font-mono lowercase"), children: "mermaid" }) }), W ? p("div", { className: s("pointer-events-none absolute top-2 right-2 z-10 flex items-center"), children: B("div", { className: s("pointer-events-auto flex shrink-0 items-center gap-2 rounded-md border border-sidebar bg-sidebar/80 px-1.5 py-1 supports-[backdrop-filter]:bg-sidebar/70 supports-[backdrop-filter]:backdrop-blur"), "data-streamdown": "mermaid-block-actions", children: [$ ? p(Eh, { chart: D, config: u?.config }) : null, G ? p(Ma, { code: D, ...Gu(l, "mermaid") }) : null, Y ? p(P_, { chart: D, config: u?.config }) : null] }) }) : null, p("div", { className: s("overflow-hidden rounded-md border border-border bg-background"), children: p(q_, { chart: D, config: u?.config, showControls: q }) })] }) });
23778
23778
  }
23779
- let w = fi(l, "code"), v = Zu(l, "download"), R = Zu(l, "copy"), { "data-block": q, ...S } = r;
23779
+ let w = fi(l, "code"), v = Zu(l, "download"), R = Zu(l, "copy"), { "data-block": U, ...S } = r;
23780
23780
  return p(u_, { className: t, code: D, isIncomplete: m, language: g, lineNumbers: O, startLine: y, ...S, children: w ? B(Ue, { children: [v ? p(k_, { code: D, language: g }) : null, R ? p(Ma, { ...Gu(l, "code") }) : null] }) : null });
23781
23781
  }, Yh = _e(G_, (e, t) => Le(e, t) && V_(e.node, t.node));
23782
23782
  Yh.displayName = "MarkdownCode";
@@ -23832,7 +23832,7 @@ var Z_ = /^[ \t]{0,3}(`{3,}|~{3,})/, J_ = /^\|?[ \t]*:?-{1,}:?[ \t]*(\|[ \t]*:?-
23832
23832
  }
23833
23833
  return !1;
23834
23834
  }, tC = () => (e) => {
23835
- pt(e, "html", (t, n, r) => {
23835
+ mt(e, "html", (t, n, r) => {
23836
23836
  !r || typeof n != "number" || (r.children[n] = { type: "text", value: t.value });
23837
23837
  });
23838
23838
  }, el = [], tl = { allowDangerousHtml: !0 }, Wr = /* @__PURE__ */ new WeakMap(), nC = class {
@@ -23909,7 +23909,7 @@ var Z_ = /^[ \t]{0,3}(`{3,}|~{3,})/, J_ = /^\|?[ \t]*:?-{1,}:?[ \t]*(\|[ \t]*:?-
23909
23909
  let { allowElement: n, allowedElements: r, disallowedElements: i, skipHtml: a, unwrapDisallowed: s, urlTransform: o } = t;
23910
23910
  if (n || r || i || a || o) {
23911
23911
  let u = o || sC;
23912
- pt(e, (l, d, h) => {
23912
+ mt(e, (l, d, h) => {
23913
23913
  if (l.type === "raw" && h && typeof d == "number") return oC(h, d, a, l.value), d;
23914
23914
  if (l.type === "element" && (uC(l, u), lC(l, d, h, r, i, n) && h && typeof d == "number")) return s && l.children ? h.children.splice(d, 1, ...l.children) : h.children.splice(d, 1), d;
23915
23915
  });
@@ -24086,7 +24086,7 @@ function tf(e) {
24086
24086
  }
24087
24087
  function vC() {
24088
24088
  return (e) => {
24089
- pt(e, "element", (t) => {
24089
+ mt(e, "element", (t) => {
24090
24090
  if (ef.has(t.tagName)) {
24091
24091
  t.properties != null || (t.properties = {}), t.properties.dir = "ltr";
24092
24092
  return;
@@ -24098,14 +24098,14 @@ function vC() {
24098
24098
  var nf = (e) => e.type === "text" ? e.value : "children" in e && Array.isArray(e.children) ? e.children.map(nf).join("") : "", DC = (e) => (t) => {
24099
24099
  if (!e || e.length === 0) return;
24100
24100
  let n = new Set(e.map((r) => r.toLowerCase()));
24101
- pt(t, "element", (r) => {
24101
+ mt(t, "element", (r) => {
24102
24102
  if (n.has(r.tagName.toLowerCase())) {
24103
24103
  let i = nf(r);
24104
24104
  r.children = i ? [{ type: "text", value: i }] : [];
24105
24105
  }
24106
24106
  });
24107
24107
  }, PC = () => (e) => {
24108
- pt(e, "code", (t) => {
24108
+ mt(e, "code", (t) => {
24109
24109
  var n, r;
24110
24110
  t.meta && (t.data = (n = t.data) != null ? n : {}, t.data.hProperties = { ...(r = t.data.hProperties) != null ? r : {}, metastring: t.meta });
24111
24111
  });
@@ -24127,7 +24127,7 @@ var HC = (e = []) => {
24127
24127
  var i;
24128
24128
  if (t.size === 0) return;
24129
24129
  let a = String((i = r.value) != null ? i : "");
24130
- pt(n, "link", (s, o, u) => {
24130
+ mt(n, "link", (s, o, u) => {
24131
24131
  if (!(!u || o === void 0) && FC(s, t, a)) return u.children.splice(o, 1, ...s.children), o;
24132
24132
  });
24133
24133
  };
@@ -24164,9 +24164,9 @@ var qa = (e) => {
24164
24164
  }, KC = (e, t) => {
24165
24165
  let n = qa(e), r = qa(t), i = Object.keys(n);
24166
24166
  return i.length === Object.keys(r).length && i.every((a) => Object.hasOwn(r, a) && n[a] === r[a]);
24167
- }, of = _e(({ children: e, mode: t = "streaming", dir: n, parseIncompleteMarkdown: r = !0, normalizeHtmlIndentation: i = !1, components: a, rehypePlugins: s = ml, remarkPlugins: o = GC, className: u, shikiTheme: l, mermaid: d, codeBlockMaxHeight: h = 400, controls: m = !0, isAnimating: f = !1, tableMaxHeight: g = 300, animated: k, BlockComponent: A = sf, parseMarkdownIntoBlocksFn: x = AC, caret: C, plugins: y, remend: O, linkSafety: D = af, portal: w, lineNumbers: v = !0, allowedTags: R, fallbackComponent: q, literalTagContent: S, disableAutolinkProtocols: M, translations: $, icons: G, prefix: Y, onAnimationStart: U, onAnimationEnd: W, ...Z }) => {
24168
- let ue = _f(), ge = qa(Z), E = Ae(() => Z3(Y), [Y]), Me = ae(null), De = ae(U), N = ae(W);
24169
- De.current = U, N.current = W, de(() => {
24167
+ }, of = _e(({ children: e, mode: t = "streaming", dir: n, parseIncompleteMarkdown: r = !0, normalizeHtmlIndentation: i = !1, components: a, rehypePlugins: s = ml, remarkPlugins: o = GC, className: u, shikiTheme: l, mermaid: d, codeBlockMaxHeight: h = 400, controls: m = !0, isAnimating: f = !1, tableMaxHeight: g = 300, animated: k, BlockComponent: A = sf, parseMarkdownIntoBlocksFn: x = AC, caret: C, plugins: y, remend: O, linkSafety: D = af, portal: w, lineNumbers: v = !0, allowedTags: R, fallbackComponent: U, literalTagContent: S, disableAutolinkProtocols: M, translations: $, icons: G, prefix: Y, onAnimationStart: q, onAnimationEnd: W, ...Z }) => {
24168
+ let ue = _f(), ge = qa(Z), E = Ae(() => Z3(Y), [Y]), Me = ae(null), De = ae(q), N = ae(W);
24169
+ De.current = q, N.current = W, de(() => {
24170
24170
  var re, L, H;
24171
24171
  if (t === "static") return;
24172
24172
  let J = Me.current;
@@ -24202,19 +24202,19 @@ var qa = (e) => {
24202
24202
  let J = H.code;
24203
24203
  H.code = (ee) => "data-block" in ee ? J ? mr(J, ee) : null : mr(re, ee);
24204
24204
  }
24205
- if (q) {
24206
- if (R) for (let ee of Object.keys(R)) Object.hasOwn(H, ee) || (H[ee] = q);
24207
- let J = { configurable: !0, enumerable: !1, value: q, writable: !1 };
24205
+ if (U) {
24206
+ if (R) for (let ee of Object.keys(R)) Object.hasOwn(H, ee) || (H[ee] = U);
24207
+ let J = { configurable: !0, enumerable: !1, value: U, writable: !1 };
24208
24208
  return new Proxy(H, { getOwnPropertyDescriptor(ee, Ce) {
24209
24209
  let be = Object.getOwnPropertyDescriptor(ee, Ce);
24210
24210
  if (be) return be;
24211
24211
  if (typeof Ce == "string" && ul.test(Ce)) return J;
24212
24212
  }, get(ee, Ce, be) {
24213
- return typeof Ce == "string" && ul.test(Ce) && !Object.hasOwn(ee, Ce) ? q : Reflect.get(ee, Ce, be);
24213
+ return typeof Ce == "string" && ul.test(Ce) && !Object.hasOwn(ee, Ce) ? U : Reflect.get(ee, Ce, be);
24214
24214
  } });
24215
24215
  }
24216
24216
  return H;
24217
- }, [a, q, R]), Br = Ae(() => {
24217
+ }, [a, U, R]), Br = Ae(() => {
24218
24218
  let re = [];
24219
24219
  return y != null && y.cjk && (re = [...re, ...y.cjk.remarkPluginsBefore]), re = [...re, ...o], M && M.length > 0 && (re = [...re, [HC, M]]), y != null && y.cjk && (re = [...re, ...y.cjk.remarkPluginsAfter]), y != null && y.math && (re = [...re, y.math.remarkPlugin]), re;
24220
24220
  }, [o, y?.math, y?.cjk, M]), Mt = Ae(() => {
@@ -24294,7 +24294,7 @@ var Xn = (e) => e > 0 ? e : null, XC = (e, t) => {
24294
24294
  let u = s != null ? Math.min(a, s) : a, l = Math.min(i, u / e.height, 1);
24295
24295
  return !(l > 0) || Number.isNaN(l) ? null : { fitZoom: l, viewportHeight: u };
24296
24296
  }, tN = ({ children: e, className: t, contentSize: n, fitKey: r, minZoom: i = 0.5, maxZoom: a = 3, zoomStep: s = 0.1, showControls: o = !0, initialZoom: u = 1, isAutoFit: l = !1, fullscreen: d = !1 }) => {
24297
- let { RotateCcwIcon: h, ZoomInIcon: m, ZoomOutIcon: f } = xt(), g = me(), k = At(), A = ae(null), x = ae(null), C = ae(!1), [y, O] = te(u), [D, w] = te(i), [v, R] = te(u), [q, S] = te({ x: 0, y: 0 }), [M, $] = te(!1), [G, Y] = te({ x: 0, y: 0 }), [U, W] = te({ x: 0, y: 0 }), [Z, ue] = te(null), ge = Oe((j) => {
24297
+ let { RotateCcwIcon: h, ZoomInIcon: m, ZoomOutIcon: f } = xt(), g = me(), k = At(), A = ae(null), x = ae(null), C = ae(!1), [y, O] = te(u), [D, w] = te(i), [v, R] = te(u), [U, S] = te({ x: 0, y: 0 }), [M, $] = te(!1), [G, Y] = te({ x: 0, y: 0 }), [q, W] = te({ x: 0, y: 0 }), [Z, ue] = te(null), ge = Oe((j) => {
24298
24298
  let ce = A.current;
24299
24299
  if (!ce) return;
24300
24300
  let Pe = eN(j, ce, d);
@@ -24315,15 +24315,15 @@ var Xn = (e) => e > 0 ? e : null, XC = (e, t) => {
24315
24315
  E(ce);
24316
24316
  }, [E, s]), ye = Oe((j) => {
24317
24317
  if (j.button !== 0 || j.isPrimary === !1) return;
24318
- $(!0), C.current = !0, Y({ x: j.clientX, y: j.clientY }), W(q);
24318
+ $(!0), C.current = !0, Y({ x: j.clientX, y: j.clientY }), W(U);
24319
24319
  let ce = j.currentTarget;
24320
24320
  ce instanceof HTMLElement && ce.setPointerCapture(j.pointerId);
24321
- }, [q]), ne = Oe((j) => {
24321
+ }, [U]), ne = Oe((j) => {
24322
24322
  if (!M) return;
24323
24323
  j.preventDefault();
24324
24324
  let ce = j.clientX - G.x, Pe = j.clientY - G.y;
24325
- S({ x: U.x + ce, y: U.y + Pe });
24326
- }, [M, G, U]), Be = Oe((j) => {
24325
+ S({ x: q.x + ce, y: q.y + Pe });
24326
+ }, [M, G, q]), Be = Oe((j) => {
24327
24327
  $(!1);
24328
24328
  let ce = j.currentTarget;
24329
24329
  ce instanceof HTMLElement && ce.releasePointerCapture(j.pointerId);
@@ -24355,7 +24355,7 @@ var Xn = (e) => e > 0 ? e : null, XC = (e, t) => {
24355
24355
  };
24356
24356
  }, [M, ne, Be]);
24357
24357
  let Ve = !d && l && Z != null ? { height: Z } : void 0;
24358
- return B("div", { className: g("relative flex flex-col", d ? "h-full w-full" : "min-h-28 w-full", t), ref: A, style: { cursor: M ? "grabbing" : "grab", ...Ve }, children: [o ? B("div", { className: g("absolute z-10 flex flex-col gap-1 rounded-md border border-border bg-background/80 p-1 supports-[backdrop-filter]:bg-background/70 supports-[backdrop-filter]:backdrop-blur-sm", d ? "bottom-4 left-4" : "bottom-2 left-2"), children: [p("button", { "aria-label": k.zoomIn, className: g("flex items-center justify-center rounded p-1.5 text-muted-foreground transition-colors hover:bg-muted hover:text-foreground disabled:cursor-not-allowed disabled:opacity-50"), disabled: v >= a, onClick: Me, title: k.zoomIn, type: "button", children: p(m, { "aria-hidden": "true", size: 16 }) }), p("button", { "aria-label": k.zoomOut, className: g("flex items-center justify-center rounded p-1.5 text-muted-foreground transition-colors hover:bg-muted hover:text-foreground disabled:cursor-not-allowed disabled:opacity-50"), disabled: v <= D, onClick: De, title: k.zoomOut, type: "button", children: p(f, { "aria-hidden": "true", size: 16 }) }), p("button", { "aria-label": k.resetView, className: g("flex items-center justify-center rounded p-1.5 text-muted-foreground transition-colors hover:bg-muted hover:text-foreground"), onClick: N, title: k.resetView, type: "button", children: p(h, { "aria-hidden": "true", size: 16 }) })] }) : null, p("div", { className: g("flex h-full w-full flex-1 origin-center items-center justify-center transition-transform duration-150 ease-out"), onPointerDown: ye, ref: x, role: "application", style: { transform: `translate(${q.x}px, ${q.y}px) scale(${v})`, transformOrigin: "center center", touchAction: "none", willChange: "transform" }, children: e })] });
24358
+ return B("div", { className: g("relative flex flex-col", d ? "h-full w-full" : "min-h-28 w-full", t), ref: A, style: { cursor: M ? "grabbing" : "grab", ...Ve }, children: [o ? B("div", { className: g("absolute z-10 flex flex-col gap-1 rounded-md border border-border bg-background/80 p-1 supports-[backdrop-filter]:bg-background/70 supports-[backdrop-filter]:backdrop-blur-sm", d ? "bottom-4 left-4" : "bottom-2 left-2"), children: [p("button", { "aria-label": k.zoomIn, className: g("flex items-center justify-center rounded p-1.5 text-muted-foreground transition-colors hover:bg-muted hover:text-foreground disabled:cursor-not-allowed disabled:opacity-50"), disabled: v >= a, onClick: Me, title: k.zoomIn, type: "button", children: p(m, { "aria-hidden": "true", size: 16 }) }), p("button", { "aria-label": k.zoomOut, className: g("flex items-center justify-center rounded p-1.5 text-muted-foreground transition-colors hover:bg-muted hover:text-foreground disabled:cursor-not-allowed disabled:opacity-50"), disabled: v <= D, onClick: De, title: k.zoomOut, type: "button", children: p(f, { "aria-hidden": "true", size: 16 }) }), p("button", { "aria-label": k.resetView, className: g("flex items-center justify-center rounded p-1.5 text-muted-foreground transition-colors hover:bg-muted hover:text-foreground"), onClick: N, title: k.resetView, type: "button", children: p(h, { "aria-hidden": "true", size: 16 }) })] }) : null, p("div", { className: g("flex h-full w-full flex-1 origin-center items-center justify-center transition-transform duration-150 ease-out"), onPointerDown: ye, ref: x, role: "application", style: { transform: `translate(${U.x}px, ${U.y}px) scale(${v})`, transformOrigin: "center center", touchAction: "none", willChange: "transform" }, children: e })] });
24359
24359
  }, nN = (e, t) => new Promise((n) => {
24360
24360
  let r = setTimeout(n, e);
24361
24361
  t(() => {
@@ -24369,7 +24369,7 @@ var Xn = (e) => e > 0 ? e : null, XC = (e, t) => {
24369
24369
  return { ok: !1, error: a instanceof Error ? a.message : i };
24370
24370
  }
24371
24371
  }, iN = ({ chart: e, className: t, config: n, fullscreen: r = !1, showControls: i = !0 }) => {
24372
- let a = me(), [s, o] = te(null), [u, l] = te(!1), [d, h] = te(""), [m, f] = te(null), g = At(), [k, A] = te(""), [x, C] = te(0), { mermaid: y } = ve(We), O = Ys(), D = y?.errorComponent, { shouldRender: w, containerRef: v } = v3({ immediate: r }), R = ae(null), q = ae(!1), S = ae(!1), M = lh(), $ = ae(M), G = ae(null);
24372
+ let a = me(), [s, o] = te(null), [u, l] = te(!1), [d, h] = te(""), [m, f] = te(null), g = At(), [k, A] = te(""), [x, C] = te(0), { mermaid: y } = ve(We), O = Ys(), D = y?.errorComponent, { shouldRender: w, containerRef: v } = v3({ immediate: r }), R = ae(null), U = ae(!1), S = ae(!1), M = lh(), $ = ae(M), G = ae(null);
24373
24373
  de(() => (S.current = !0, () => {
24374
24374
  var W;
24375
24375
  S.current = !1, (W = G.current) == null || W.call(G);
@@ -24388,12 +24388,12 @@ var Xn = (e) => e > 0 ? e : null, XC = (e, t) => {
24388
24388
  o("Mermaid plugin not available. Please add the mermaid plugin to enable diagram rendering.");
24389
24389
  return;
24390
24390
  }
24391
- if (R.current = { chart: e, config: n }, q.current) return;
24391
+ if (R.current = { chart: e, config: n }, U.current) return;
24392
24392
  let W = (Z, ue) => {
24393
24393
  ue.ok ? (h(ue.svg), f(ue.size), A(ue.svg)) : Z === R.current && o(ue.error);
24394
24394
  };
24395
24395
  (async () => {
24396
- q.current = !0, o(null), l(!0);
24396
+ U.current = !0, o(null), l(!0);
24397
24397
  try {
24398
24398
  let Z = R.current;
24399
24399
  for (; Z; ) {
@@ -24402,15 +24402,15 @@ var Xn = (e) => e > 0 ? e : null, XC = (e, t) => {
24402
24402
  Z = R.current;
24403
24403
  }
24404
24404
  } finally {
24405
- q.current = !1, S.current && l(!1);
24405
+ U.current = !1, S.current && l(!1);
24406
24406
  }
24407
24407
  })();
24408
24408
  }, [e, n, x, w, O]), !(w || d || k)) return p("div", { className: a("my-4 min-h-[200px]", t), ref: v });
24409
24409
  if (u && !d && !k) return p("div", { className: a("my-4 flex justify-center p-4", t), ref: v, children: B("div", { className: a("flex items-center space-x-2 text-muted-foreground"), children: [p("div", { className: a("h-4 w-4 animate-spin rounded-full border-current border-b-2") }), p("span", { className: a("text-sm"), children: "Loading diagram..." })] }) });
24410
24410
  if (s && !d && !k)
24411
24411
  return D ? p("div", { ref: v, children: p(D, { chart: e, error: s, retry: () => C((Z) => Z + 1) }) }) : B("div", { className: a("rounded-md bg-red-50 p-4", t), ref: v, children: [B("p", { className: a("font-mono text-red-700 text-sm"), children: ["Mermaid Error: ", s] }), B("details", { className: a("mt-2"), children: [p("summary", { className: a("cursor-pointer text-red-600 text-xs"), children: "Show Code" }), p("pre", { className: a("mt-2 overflow-x-auto rounded bg-red-100 p-2 text-red-800 text-xs"), children: e })] })] });
24412
- let U = d || k;
24413
- return p("div", { className: a(r ? "size-full" : "max-h-[min(70vh,40rem)] w-full", t), "data-streamdown": "mermaid", ref: v, children: p(tN, { className: a(r ? "size-full overflow-hidden" : "max-h-[min(70vh,40rem)] overflow-hidden", t), contentSize: m, fitKey: e, fullscreen: r, isAutoFit: !0, maxZoom: 3, minZoom: 0.1, showControls: i, zoomStep: 0.1, children: p("div", { "aria-label": g.mermaidAriaLabel, className: a("flex justify-center", r ? "size-full items-center" : null), dangerouslySetInnerHTML: { __html: U }, role: "img" }) }) });
24412
+ let q = d || k;
24413
+ return p("div", { className: a(r ? "size-full" : "max-h-[min(70vh,40rem)] w-full", t), "data-streamdown": "mermaid", ref: v, children: p(tN, { className: a(r ? "size-full overflow-hidden" : "max-h-[min(70vh,40rem)] overflow-hidden", t), contentSize: m, fitKey: e, fullscreen: r, isAutoFit: !0, maxZoom: 3, minZoom: 0.1, showControls: i, zoomStep: 0.1, children: p("div", { "aria-label": g.mermaidAriaLabel, className: a("flex justify-center", r ? "size-full items-center" : null), dangerouslySetInnerHTML: { __html: q }, role: "img" }) }) });
24414
24414
  };
24415
24415
  function aN(e) {
24416
24416
  if (!e) return "";
@@ -24529,7 +24529,7 @@ function lN({
24529
24529
  className: a = ""
24530
24530
  }) {
24531
24531
  if (e)
24532
- return /* @__PURE__ */ p(Tt, { agent: e, size: r, active: i, className: a });
24532
+ return /* @__PURE__ */ p(ht, { agent: e, size: r, active: i, className: a });
24533
24533
  if (t)
24534
24534
  return /* @__PURE__ */ p("div", { className: oe("rqmii-agent-avatar", `rqmii-agent-avatar--${r}`, i && "is-active", a), children: /* @__PURE__ */ p("img", { src: t, alt: n || "Avatar" }) });
24535
24535
  if (n) {
@@ -24599,7 +24599,7 @@ const cN = Te.memo(lN), wS = cN, Zs = Te.memo(function({ language: t, languages:
24599
24599
  const g = o.trim();
24600
24600
  !g || i || (r(g), u(""), l.current && (l.current.style.height = "auto"));
24601
24601
  }, f = s ? X(t, "orSendMessage") : X(t, "sendMessage");
24602
- return /* @__PURE__ */ B("div", { className: oe("rqmii-chat-input", ht(), a === "voice" && "is-voice"), children: [
24602
+ return /* @__PURE__ */ B("div", { className: oe("rqmii-chat-input", ft(), a === "voice" && "is-voice"), children: [
24603
24603
  /* @__PURE__ */ p(
24604
24604
  "textarea",
24605
24605
  {
@@ -24661,16 +24661,16 @@ const bN = Te.memo(function({ suggestions: t, language: n, onClick: r }) {
24661
24661
  const O = f.current;
24662
24662
  A(O);
24663
24663
  const D = x.clientWidth, w = pN(), v = () => {
24664
- for (let q = 0; q < O.length; q++) {
24665
- const S = O[q];
24664
+ for (let U = 0; U < O.length; U++) {
24665
+ const S = O[U];
24666
24666
  if (S && S.offsetTop + S.offsetHeight > w + 0.5)
24667
- return q;
24667
+ return U;
24668
24668
  }
24669
24669
  return null;
24670
24670
  };
24671
24671
  let R = v();
24672
24672
  if (R !== null)
24673
- for (let q = 0; q <= O.length; q++) {
24673
+ for (let U = 0; U <= O.length; U++) {
24674
24674
  A(O);
24675
24675
  const S = O.slice(0, R).filter(($) => !!$);
24676
24676
  El(S, D, k, bl);
@@ -24679,7 +24679,7 @@ const bN = Te.memo(function({ suggestions: t, language: n, onClick: r }) {
24679
24679
  R = M;
24680
24680
  }
24681
24681
  if (l(R), o(R !== null), R !== null) {
24682
- const q = O.slice(0, R).filter((M) => !!M), S = q.length ? Math.max(...q.map((M) => M.offsetTop + M.offsetHeight)) : rr;
24682
+ const U = O.slice(0, R).filter((M) => !!M), S = U.length ? Math.max(...U.map((M) => M.offsetTop + M.offsetHeight)) : rr;
24683
24683
  h(S - rr);
24684
24684
  } else
24685
24685
  h(null);
@@ -24886,7 +24886,7 @@ function CN({
24886
24886
  return /* @__PURE__ */ B(
24887
24887
  "div",
24888
24888
  {
24889
- className: oe("rqmii-chat-rating", !o && "rqmii-chat-rating--unrated", ht()),
24889
+ className: oe("rqmii-chat-rating", !o && "rqmii-chat-rating--unrated", ft()),
24890
24890
  dir: He(e),
24891
24891
  children: [
24892
24892
  o && /* @__PURE__ */ B(Ue, { children: [
@@ -24927,7 +24927,7 @@ function lf({
24927
24927
  return /* @__PURE__ */ B(
24928
24928
  "div",
24929
24929
  {
24930
- className: oe("rqmii-chat-panel rqmii-chat-panel--feedback", ht()),
24930
+ className: oe("rqmii-chat-panel rqmii-chat-panel--feedback", ft()),
24931
24931
  dir: He(t),
24932
24932
  style: m,
24933
24933
  children: [
@@ -24936,7 +24936,7 @@ function lf({
24936
24936
  /* @__PURE__ */ p("button", { type: "button", className: "rqmii-chat-circle-button", onClick: i, "aria-label": X(t, "minimize"), children: /* @__PURE__ */ p(yr, { size: 20 }) })
24937
24937
  ] }),
24938
24938
  /* @__PURE__ */ B("div", { className: "rqmii-chat-feedback-body", children: [
24939
- /* @__PURE__ */ p(Tt, { agent: e, size: "hero" }),
24939
+ /* @__PURE__ */ p(ht, { agent: e, size: "hero" }),
24940
24940
  /* @__PURE__ */ p(uf, { rating: n, readonly: !0 }),
24941
24941
  /* @__PURE__ */ p("div", { className: "rqmii-chat-feedback-title", children: X(t, "ratingThankYou") }),
24942
24942
  /* @__PURE__ */ p("div", { className: "rqmii-chat-feedback-subtitle", children: X(t, "feedbackSubtitle") }),
@@ -24950,7 +24950,7 @@ function lf({
24950
24950
  onChange: (f) => o(f.target.value)
24951
24951
  }
24952
24952
  ),
24953
- /* @__PURE__ */ p("div", { className: "rqmii-chat-feedback-actions", children: /* @__PURE__ */ p("button", { type: "button", className: "rqmii-chat-feedback-submit", onClick: h, disabled: !d, children: u ? /* @__PURE__ */ p(ft, { className: "rqmii-chat-spin", size: 18 }) : X(t, "submit") }) })
24953
+ /* @__PURE__ */ p("div", { className: "rqmii-chat-feedback-actions", children: /* @__PURE__ */ p("button", { type: "button", className: "rqmii-chat-feedback-submit", onClick: h, disabled: !d, children: u ? /* @__PURE__ */ p(pt, { className: "rqmii-chat-spin", size: 18 }) : X(t, "submit") }) })
24954
24954
  ] }),
24955
24955
  /* @__PURE__ */ p(pn, { language: t, agent: e })
24956
24956
  ]
@@ -24967,11 +24967,11 @@ function Dr(e) {
24967
24967
  const NN = Te.memo(function({ agent: t, language: n, languages: r, onLanguageChange: i, onClose: a, onSend: s, isVoiceEnabled: o = !1, isAudioPlaying: u = !1, isVoiceSetupLoading: l = !1, onStartVoice: d, visualViewportHeight: h, disabled: m = !1, connecting: f = !1, error: g, suggestions: k, onSuggestionClick: A, compact: x = !1 }) {
24968
24968
  const C = Dr(h), [y, O] = Te.useState(la);
24969
24969
  Te.useEffect(() => {
24970
- const q = () => O(la());
24971
- return window.addEventListener("resize", q), () => window.removeEventListener("resize", q);
24970
+ const U = () => O(la());
24971
+ return window.addEventListener("resize", U), () => window.removeEventListener("resize", U);
24972
24972
  }, []);
24973
24973
  const D = x && !y, w = D ? "start" : "hero", v = k && k.length > 0, R = He(n);
24974
- return /* @__PURE__ */ B("div", { className: oe("rqmii-chat-panel rqmii-chat-panel--start", D && "rqmii-chat-panel--start-compact", ht()), style: C, children: [
24974
+ return /* @__PURE__ */ B("div", { className: oe("rqmii-chat-panel rqmii-chat-panel--start", D && "rqmii-chat-panel--start-compact", ft()), style: C, children: [
24975
24975
  /* @__PURE__ */ B("div", { className: "rqmii-chat-topbar", children: [
24976
24976
  /* @__PURE__ */ p("span", {}),
24977
24977
  /* @__PURE__ */ B("div", { className: "rqmii-chat-topbar-actions", children: [
@@ -24981,9 +24981,9 @@ const NN = Te.memo(function({ agent: t, language: n, languages: r, onLanguageCha
24981
24981
  ] }),
24982
24982
  /* @__PURE__ */ B("div", { className: "rqmii-chat-start-body", children: [
24983
24983
  o ? /* @__PURE__ */ B("div", { className: oe("rqmii-chat-call-avatar-wrap", D && "is-compact"), children: [
24984
- /* @__PURE__ */ p(Tt, { agent: t, size: w, active: u }),
24985
- /* @__PURE__ */ p("button", { type: "button", className: oe("rqmii-chat-call-button", D && "is-compact"), onClick: d, disabled: l, "aria-label": X(n, "startVoice"), children: l ? /* @__PURE__ */ p(ft, { className: "rqmii-chat-spin", size: D ? 18 : 24 }) : /* @__PURE__ */ p(Ja, { size: D ? 18 : 24 }) })
24986
- ] }) : /* @__PURE__ */ p(Tt, { agent: t, size: w }),
24984
+ /* @__PURE__ */ p(ht, { agent: t, size: w, active: u }),
24985
+ /* @__PURE__ */ p("button", { type: "button", className: oe("rqmii-chat-call-button", D && "is-compact"), onClick: d, disabled: l, "aria-label": X(n, "startVoice"), children: l ? /* @__PURE__ */ p(pt, { className: "rqmii-chat-spin", size: D ? 18 : 24 }) : /* @__PURE__ */ p(Ja, { size: D ? 18 : 24 }) })
24986
+ ] }) : /* @__PURE__ */ p(ht, { agent: t, size: w }),
24987
24987
  /* @__PURE__ */ p("div", { className: "rqmii-chat-agent-name", dir: R, children: o ? /* @__PURE__ */ B(Ue, { children: [
24988
24988
  /* @__PURE__ */ p("span", { children: X(n, "call") }),
24989
24989
  " ",
@@ -24992,13 +24992,13 @@ const NN = Te.memo(function({ agent: t, language: n, languages: r, onLanguageCha
24992
24992
  f && !g && !o && /* @__PURE__ */ p(wN, { language: n }),
24993
24993
  g && /* @__PURE__ */ p("div", { className: "rqmii-chat-error-text", children: g })
24994
24994
  ] }),
24995
- v && /* @__PURE__ */ p("div", { className: "rqmii-chat-start-suggestions", children: /* @__PURE__ */ p(bN, { suggestions: k, language: n, onClick: (q) => A?.(q) }) }),
24995
+ v && /* @__PURE__ */ p("div", { className: "rqmii-chat-start-suggestions", children: /* @__PURE__ */ p(bN, { suggestions: k, language: n, onClick: (U) => A?.(U) }) }),
24996
24996
  /* @__PURE__ */ p(Js, { language: n, onSend: s, disabled: m, isVoiceEnabled: o }),
24997
24997
  /* @__PURE__ */ p(pn, { language: n, agent: t })
24998
24998
  ] });
24999
24999
  }), SN = Te.memo(function({ agent: t, language: n, languages: r, onLanguageChange: i, onClose: a, onStartVoice: s, isVoiceSetupLoading: o = !1, isAudioPlaying: u, visualViewportHeight: l }) {
25000
25000
  const d = Dr(l), h = He(n);
25001
- return /* @__PURE__ */ B("div", { className: oe("rqmii-chat-panel rqmii-chat-panel--voice-start", ht()), style: d, children: [
25001
+ return /* @__PURE__ */ B("div", { className: oe("rqmii-chat-panel rqmii-chat-panel--voice-start", ft()), style: d, children: [
25002
25002
  /* @__PURE__ */ B("div", { className: "rqmii-chat-topbar", children: [
25003
25003
  /* @__PURE__ */ p("span", {}),
25004
25004
  /* @__PURE__ */ B("div", { className: "rqmii-chat-topbar-actions", children: [
@@ -25008,8 +25008,8 @@ const NN = Te.memo(function({ agent: t, language: n, languages: r, onLanguageCha
25008
25008
  ] }),
25009
25009
  /* @__PURE__ */ B("div", { className: "rqmii-chat-call-body", children: [
25010
25010
  /* @__PURE__ */ B("div", { className: "rqmii-chat-call-avatar-wrap", children: [
25011
- /* @__PURE__ */ p(Tt, { agent: t, size: "hero", active: u }),
25012
- /* @__PURE__ */ p("button", { type: "button", className: "rqmii-chat-call-button", onClick: s, disabled: o, "aria-label": X(n, "startVoice"), children: o ? /* @__PURE__ */ p(ft, { className: "rqmii-chat-spin", size: 24 }) : /* @__PURE__ */ p(Ja, { size: 24 }) })
25011
+ /* @__PURE__ */ p(ht, { agent: t, size: "hero", active: u }),
25012
+ /* @__PURE__ */ p("button", { type: "button", className: "rqmii-chat-call-button", onClick: s, disabled: o, "aria-label": X(n, "startVoice"), children: o ? /* @__PURE__ */ p(pt, { className: "rqmii-chat-spin", size: 24 }) : /* @__PURE__ */ p(Ja, { size: 24 }) })
25013
25013
  ] }),
25014
25014
  /* @__PURE__ */ B("div", { className: "rqmii-chat-agent-name", dir: h, children: [
25015
25015
  /* @__PURE__ */ p("span", { children: X(n, "call") }),
@@ -25022,16 +25022,16 @@ const NN = Te.memo(function({ agent: t, language: n, languages: r, onLanguageCha
25022
25022
  });
25023
25023
  function wN({ language: e }) {
25024
25024
  return /* @__PURE__ */ B("div", { className: "rqmii-chat-start-status", role: "status", dir: He(e), children: [
25025
- /* @__PURE__ */ p(ft, { className: "rqmii-chat-spin", size: 14 }),
25025
+ /* @__PURE__ */ p(pt, { className: "rqmii-chat-spin", size: 14 }),
25026
25026
  /* @__PURE__ */ p("span", { children: X(e, "loading") })
25027
25027
  ] });
25028
25028
  }
25029
25029
  const IN = Te.memo(function({ agent: t, language: n, onEndSession: r, onMinimize: i, messages: a, partialTranscript: s, onSend: o, isAudioPlaying: u, isVoiceEnabled: l, onToggleVoice: d, isListening: h, isSpeaking: m, isLoading: f, isAgentThinking: g, isAgentSpeaking: k, isFirstAgentSpeech: A, onStartVoice: x, elapsed: C, visualViewportHeight: y, waitingForResponse: O }) {
25030
- const D = pi(t, n, !!A), w = cf({ canInterrupt: D, language: n, isListening: h, isLoading: f, isSpeaking: m, isAudioPlaying: u, isAgentThinking: g, isAgentSpeaking: k, persistentListening: !1 }), v = Ii({ canInterrupt: D, isSpeaking: m, isAudioPlaying: u, isAgentSpeaking: k }), R = Dr(y), q = t.widget?.appearance?.show_topbar_avatar_image !== !1;
25031
- return /* @__PURE__ */ B("div", { className: oe("rqmii-chat-panel rqmii-chat-panel--conversation", ht()), style: R, children: [
25030
+ const D = pi(t, n, !!A), w = cf({ canInterrupt: D, language: n, isListening: h, isLoading: f, isSpeaking: m, isAudioPlaying: u, isAgentThinking: g, isAgentSpeaking: k, persistentListening: !1 }), v = Ii({ canInterrupt: D, isSpeaking: m, isAudioPlaying: u, isAgentSpeaking: k }), R = Dr(y), U = t.widget?.appearance?.show_topbar_avatar_image !== !1;
25031
+ return /* @__PURE__ */ B("div", { className: oe("rqmii-chat-panel rqmii-chat-panel--conversation", ft()), style: R, children: [
25032
25032
  /* @__PURE__ */ B("div", { className: "rqmii-chat-header", children: [
25033
- q && /* @__PURE__ */ p(Tt, { agent: t, size: "header", active: u }),
25034
- l && w && /* @__PURE__ */ p("div", { className: oe("rqmii-chat-header-status", !q && "is-expanded"), children: /* @__PURE__ */ p("span", { children: w }) }),
25033
+ U && /* @__PURE__ */ p(ht, { agent: t, size: "header", active: u }),
25034
+ l && w && /* @__PURE__ */ p("div", { className: oe("rqmii-chat-header-status", !U && "is-expanded"), children: /* @__PURE__ */ p("span", { children: w }) }),
25035
25035
  /* @__PURE__ */ p("div", { className: "rqmii-chat-header-spacer" }),
25036
25036
  /* @__PURE__ */ B("div", { className: "rqmii-chat-header-actions", children: [
25037
25037
  i && /* @__PURE__ */ p("button", { type: "button", className: "rqmii-chat-circle-button", onClick: i, "aria-label": X(n, "minimize"), children: /* @__PURE__ */ p(yr, { size: 20 }) }),
@@ -25046,14 +25046,14 @@ const IN = Te.memo(function({ agent: t, language: n, onEndSession: r, onMinimize
25046
25046
  ] });
25047
25047
  }), LN = Te.memo(function({ agent: t, language: n, onEndSession: r, onMinimize: i, isListening: a, isLoading: s, isSpeaking: o, isAudioPlaying: u, isAgentThinking: l, isAgentSpeaking: d, isFirstAgentSpeech: h, onToggleVoice: m, elapsed: f, visualViewportHeight: g }) {
25048
25048
  const k = pi(t, n, !!h), A = cf({ canInterrupt: k, language: n, isListening: a, isLoading: s, isSpeaking: o, isAudioPlaying: u, isAgentThinking: l, isAgentSpeaking: d, persistentListening: !0 }), x = Ii({ canInterrupt: k, isSpeaking: o, isAudioPlaying: u, isAgentSpeaking: d }), C = Dr(g), y = He(n);
25049
- return /* @__PURE__ */ B("div", { className: oe("rqmii-chat-panel rqmii-chat-panel--voice-call", ht()), style: C, children: [
25049
+ return /* @__PURE__ */ B("div", { className: oe("rqmii-chat-panel rqmii-chat-panel--voice-call", ft()), style: C, children: [
25050
25050
  /* @__PURE__ */ B("div", { className: "rqmii-chat-call-status", children: [
25051
25051
  /* @__PURE__ */ p("span", { className: oe("rqmii-chat-live-dot", a && "is-live") }),
25052
25052
  /* @__PURE__ */ p("span", { children: Wa(f) }),
25053
25053
  /* @__PURE__ */ p("button", { type: "button", className: "rqmii-chat-circle-button", onClick: i, children: /* @__PURE__ */ p(yr, { size: 20 }) })
25054
25054
  ] }),
25055
25055
  /* @__PURE__ */ B("div", { className: "rqmii-chat-voice-frame", children: [
25056
- /* @__PURE__ */ p(Tt, { agent: t, size: "hero", active: u }),
25056
+ /* @__PURE__ */ p(ht, { agent: t, size: "hero", active: u }),
25057
25057
  /* @__PURE__ */ p("div", { className: "rqmii-chat-agent-name", dir: y, children: /* @__PURE__ */ p("bdi", { children: t.name }) }),
25058
25058
  /* @__PURE__ */ p("div", { className: oe("rqmii-chat-status-pill", !A && "is-empty"), children: A || X(n, "listening") }),
25059
25059
  /* @__PURE__ */ B("div", { className: "rqmii-chat-voice-actions", children: [
@@ -25072,8 +25072,8 @@ function Ii({ canInterrupt: e, isSpeaking: t, isAudioPlaying: n, isAgentSpeaking
25072
25072
  }
25073
25073
  const RN = Te.memo(function({ agent: t, language: n, onRestore: r, onClose: i, isListening: a, isAudioPlaying: s, isSpeaking: o, isAgentSpeaking: u, isFirstAgentSpeech: l, onToggleVoice: d, elapsed: h, variant: m = "voice" }) {
25074
25074
  const f = m === "text", g = Ii({ canInterrupt: pi(t, n, !!l), isSpeaking: o, isAudioPlaying: s, isAgentSpeaking: u });
25075
- return /* @__PURE__ */ B("div", { className: oe("rqmii-chat-minimized", ht()), children: [
25076
- /* @__PURE__ */ p(Tt, { agent: t, size: "minimized", active: s }),
25075
+ return /* @__PURE__ */ B("div", { className: oe("rqmii-chat-minimized", ft()), children: [
25076
+ /* @__PURE__ */ p(ht, { agent: t, size: "minimized", active: s }),
25077
25077
  !f && /* @__PURE__ */ p("span", { className: "rqmii-chat-minimized-time", children: Wa(h) }),
25078
25078
  /* @__PURE__ */ B("div", { className: "rqmii-chat-minimized-actions", children: [
25079
25079
  /* @__PURE__ */ p("button", { type: "button", className: "rqmii-chat-circle-button", onClick: r, "aria-label": X(n, "maximize"), children: /* @__PURE__ */ p(wl, { size: 20 }) }),
@@ -25103,7 +25103,7 @@ const RN = Te.memo(function({ agent: t, language: n, onRestore: r, onClose: i, i
25103
25103
  onRate: y,
25104
25104
  onTellUsMore: O
25105
25105
  }) {
25106
- const D = Dr(h), w = t.widget?.behavior?.conversation_ended_screen, v = !!w?.post_chat_rating_enabled, R = w?.show_conversation_id ?? !0, q = k === "busy", S = k === "unavailable", M = oe(q && "is-busy", S && "is-unavailable"), $ = k ? /* @__PURE__ */ p(ON, { failure: k, language: n }) : /* @__PURE__ */ p(
25106
+ const D = Dr(h), w = t.widget?.behavior?.conversation_ended_screen, v = !!w?.post_chat_rating_enabled, R = w?.show_conversation_id ?? !0, U = k === "busy", S = k === "unavailable", M = oe(U && "is-busy", S && "is-unavailable"), $ = k ? /* @__PURE__ */ p(ON, { failure: k, language: n }) : /* @__PURE__ */ p(
25107
25107
  CN,
25108
25108
  {
25109
25109
  language: n,
@@ -25118,7 +25118,7 @@ const RN = Te.memo(function({ agent: t, language: n, onRestore: r, onClose: i, i
25118
25118
  onRate: y,
25119
25119
  onTellUsMore: O
25120
25120
  }
25121
- ), G = ar(i), Y = G || i === "hybrid", U = i === "text" || i === "hybrid", W = /* @__PURE__ */ B("div", { className: "rqmii-chat-topbar-actions rqmii-chat-topbar-actions--ended", children: [
25121
+ ), G = ar(i), Y = G || i === "hybrid", q = i === "text" || i === "hybrid", W = /* @__PURE__ */ B("div", { className: "rqmii-chat-topbar-actions rqmii-chat-topbar-actions--ended", children: [
25122
25122
  /* @__PURE__ */ p(Zs, { language: n, languages: r, onChange: s }),
25123
25123
  /* @__PURE__ */ p(
25124
25124
  "button",
@@ -25138,29 +25138,32 @@ const RN = Te.memo(function({ agent: t, language: n, onRestore: r, onClose: i, i
25138
25138
  onClick: u,
25139
25139
  disabled: d || S,
25140
25140
  "aria-label": X(n, "startVoice"),
25141
- children: d ? /* @__PURE__ */ p(ft, { className: "rqmii-chat-spin", size: 20 }) : /* @__PURE__ */ p(Ja, { size: 20 })
25141
+ children: d ? /* @__PURE__ */ p(pt, { className: "rqmii-chat-spin", size: 20 }) : /* @__PURE__ */ p(Ja, { size: 20 })
25142
25142
  }
25143
25143
  )
25144
25144
  ] });
25145
25145
  if (G)
25146
- return /* @__PURE__ */ B("div", { className: oe("rqmii-chat-panel rqmii-chat-panel--voice-call", ht()), style: D, children: [
25146
+ return /* @__PURE__ */ B("div", { className: oe("rqmii-chat-panel rqmii-chat-panel--voice-call", ft()), style: D, children: [
25147
25147
  /* @__PURE__ */ B("div", { className: "rqmii-chat-topbar", children: [
25148
25148
  /* @__PURE__ */ p("span", {}),
25149
25149
  W
25150
25150
  ] }),
25151
25151
  /* @__PURE__ */ B("div", { className: "rqmii-chat-voice-frame", children: [
25152
- /* @__PURE__ */ p(Tt, { agent: t, size: "hero", className: M }),
25153
- /* @__PURE__ */ p("div", { className: oe("rqmii-chat-agent-name", S && "is-muted"), dir: He(n), children: q ? /* @__PURE__ */ p(vN, { name: t.name, language: n }) : /* @__PURE__ */ p("bdi", { children: t.name }) }),
25152
+ U ? (
25153
+ // The voice screen's busy ring turns like the welcome bubble's border, in red.
25154
+ /* @__PURE__ */ p("span", { className: "rqmii-chat-busy-ring", children: /* @__PURE__ */ p(ht, { agent: t, size: "hero" }) })
25155
+ ) : /* @__PURE__ */ p(ht, { agent: t, size: "hero", className: M }),
25156
+ /* @__PURE__ */ p("div", { className: oe("rqmii-chat-agent-name", S && "is-muted"), dir: He(n), children: U ? /* @__PURE__ */ p(vN, { name: t.name, language: n }) : /* @__PURE__ */ p("bdi", { children: t.name }) }),
25154
25157
  $
25155
25158
  ] }),
25156
25159
  /* @__PURE__ */ p(pn, { language: n, agent: t })
25157
25160
  ] });
25158
25161
  const Z = t.widget?.appearance?.show_topbar_avatar_image !== !1;
25159
- return /* @__PURE__ */ B("div", { className: oe("rqmii-chat-panel rqmii-chat-panel--conversation", ht()), style: D, children: [
25162
+ return /* @__PURE__ */ B("div", { className: oe("rqmii-chat-panel rqmii-chat-panel--conversation", ft()), style: D, children: [
25160
25163
  /* @__PURE__ */ B("div", { className: "rqmii-chat-topbar", children: [
25161
25164
  /* @__PURE__ */ B("div", { className: "rqmii-chat-topbar-agent", children: [
25162
- Z && /* @__PURE__ */ p(Tt, { agent: t, size: "header", className: M }),
25163
- q && /* @__PURE__ */ p("span", { className: "rqmii-chat-busy-label", dir: He(n), children: X(n, "agentBusyStatus") })
25165
+ Z && /* @__PURE__ */ p(ht, { agent: t, size: "header", className: M }),
25166
+ U && /* @__PURE__ */ p("span", { className: "rqmii-chat-busy-label", dir: He(n), children: X(n, "agentBusyStatus") })
25164
25167
  ] }),
25165
25168
  W
25166
25169
  ] }),
@@ -25168,7 +25171,7 @@ const RN = Te.memo(function({ agent: t, language: n, onRestore: r, onClose: i, i
25168
25171
  /* @__PURE__ */ p(eo, { messages: a, language: n }),
25169
25172
  $
25170
25173
  ] }),
25171
- U && /* @__PURE__ */ p(Js, { language: n, onSend: l, disabled: S, isVoiceEnabled: i === "hybrid" }),
25174
+ q && /* @__PURE__ */ p(Js, { language: n, onSend: l, disabled: S, isVoiceEnabled: i === "hybrid" }),
25172
25175
  /* @__PURE__ */ p(pn, { language: n, agent: t })
25173
25176
  ] });
25174
25177
  });
@@ -25225,7 +25228,7 @@ function HN({ sdk: e, language: t }) {
25225
25228
  disabled: e.mic.isLoading,
25226
25229
  "aria-label": X(t, n ? "stopVoice" : "startVoice"),
25227
25230
  "aria-pressed": n,
25228
- children: e.mic.isLoading ? /* @__PURE__ */ p(ft, { className: "rqmii-chat-spin", size: 22 }) : n ? /* @__PURE__ */ p(Yt, { size: 22 }) : /* @__PURE__ */ p(kr, { size: 22 })
25231
+ children: e.mic.isLoading ? /* @__PURE__ */ p(pt, { className: "rqmii-chat-spin", size: 22 }) : n ? /* @__PURE__ */ p(Yt, { size: 22 }) : /* @__PURE__ */ p(kr, { size: 22 })
25229
25232
  }
25230
25233
  );
25231
25234
  }
@@ -25282,9 +25285,9 @@ function $N({ track: e, onShowing: t }) {
25282
25285
  function VN({ agent: e, language: t }) {
25283
25286
  return /* @__PURE__ */ B("div", { className: "rqmii-avatar-preparing", role: "status", children: [
25284
25287
  e.faceImage && /* @__PURE__ */ p("div", { className: "rqmii-avatar-preparing-backdrop", style: { backgroundImage: `url("${e.faceImage}")` } }),
25285
- /* @__PURE__ */ p(Tt, { agent: e, size: "start" }),
25288
+ /* @__PURE__ */ p(ht, { agent: e, size: "start" }),
25286
25289
  /* @__PURE__ */ B("span", { className: "rqmii-avatar-preparing-text", dir: He(t), children: [
25287
- /* @__PURE__ */ p(ft, { className: "rqmii-chat-spin", size: 16 }),
25290
+ /* @__PURE__ */ p(pt, { className: "rqmii-chat-spin", size: 16 }),
25288
25291
  X(t, "preparingAvatar")
25289
25292
  ] })
25290
25293
  ] });
@@ -25301,7 +25304,7 @@ const YN = Te.memo(function({ agent: t, language: n, sdk: r, onEndSession: i, on
25301
25304
  /* @__PURE__ */ B(
25302
25305
  "div",
25303
25306
  {
25304
- className: oe("rqmii-avatar-call", f && "is-chat-open", k && "is-fullscreen", ht()),
25307
+ className: oe("rqmii-avatar-call", f && "is-chat-open", k && "is-fullscreen", ft()),
25305
25308
  dir: "ltr",
25306
25309
  children: [
25307
25310
  /* @__PURE__ */ B("div", { ref: d, className: "rqmii-avatar-stage", children: [
@@ -25377,7 +25380,7 @@ function QN({
25377
25380
  {
25378
25381
  className: oe(
25379
25382
  "rqmii-chat-panel rqmii-chat-panel--consent",
25380
- ht()
25383
+ ft()
25381
25384
  ),
25382
25385
  dir: He(e),
25383
25386
  children: [
@@ -25435,12 +25438,12 @@ const to = Te.memo(function({
25435
25438
  return !1;
25436
25439
  }
25437
25440
  return !1;
25438
- }), v = d || Qa(t), R = !l && (!!g || !!k), q = v === "avatar" ? !!h.isInRoom : h.isSessionReady, [S, M] = te(() => ar(v) && q), [$, G] = te(() => (v === "text" || v === "hybrid") && h.isSessionReady), [Y, U] = te(!1), [W, Z] = te(R), [ue, ge] = te(null), E = ar(v) && S || v === "hybrid" && $, Me = Tf(E), De = kf(), N = x && !!C && !D && !l, { events: ke } = ja();
25441
+ }), v = d || Qa(t), R = !l && (!!g || !!k), U = v === "avatar" ? !!h.isInRoom : h.isSessionReady, [S, M] = te(() => ar(v) && U), [$, G] = te(() => (v === "text" || v === "hybrid") && h.isSessionReady), [Y, q] = te(!1), [W, Z] = te(R), [ue, ge] = te(null), E = ar(v) && S || v === "hybrid" && $, Me = Tf(E), De = kf(), N = x && !!C && !D && !l, { events: ke } = ja();
25439
25442
  de(() => {
25440
25443
  if (!ke) return;
25441
25444
  const xe = () => {
25442
- la() && U(!0);
25443
- }, at = () => U(!1);
25445
+ la() && q(!0);
25446
+ }, at = () => q(!1);
25444
25447
  return ke.on("minimize_chat", xe), ke.on("maximize_chat", at), () => {
25445
25448
  ke.off("minimize_chat", xe), ke.off("maximize_chat", at);
25446
25449
  };
@@ -25470,8 +25473,8 @@ const to = Te.memo(function({
25470
25473
  de(() => {
25471
25474
  j.current || l || (g ? (j.current = !0, Ve(g)) : k && (j.current = !0, ge(null), Z(!0), h.isVoiceActive || h.startVoice()));
25472
25475
  }, []), de(() => {
25473
- W && q && (Z(!1), ar(v) ? M(!0) : G(!0));
25474
- }, [W, q, v]), de(() => {
25476
+ W && U && (Z(!1), ar(v) ? M(!0) : G(!0));
25477
+ }, [W, U, v]), de(() => {
25475
25478
  W && h.error && (Z(!1), ge(h.error));
25476
25479
  }, [W, h.error]);
25477
25480
  const ce = Oe(() => {
@@ -25499,8 +25502,8 @@ const to = Te.memo(function({
25499
25502
  isPreview: l,
25500
25503
  onLanguageChange: Be,
25501
25504
  onClose: a,
25502
- onMinimize: () => U(!0),
25503
- onRestore: () => U(!1),
25505
+ onMinimize: () => q(!0),
25506
+ onRestore: () => q(!1),
25504
25507
  onSend: Ve,
25505
25508
  voiceStarted: S,
25506
25509
  conversationStarted: $,
@@ -25513,7 +25516,7 @@ const to = Te.memo(function({
25513
25516
  ge(null), Z(!0), h.sendSuggestion?.(xe);
25514
25517
  } });
25515
25518
  }), XN = Te.memo(function({ agent: t, language: n, languages: r, chatKind: i, sdk: a, onLanguageChange: s, onClose: o, onMinimize: u, onRestore: l, onSend: d, voiceStarted: h, conversationStarted: m, isMinimized: f, elapsed: g, setVoiceStarted: k, setConversationStarted: A, visualViewportHeight: x, connecting: C = !1, connectError: y = null, onCloseWidget: O, initiateVoice: D, onSendSuggestion: w }) {
25516
- const v = t.widget?.behavior?.typing_indicator_enabled ?? !0, R = i === "text" ? a.waitingForResponse && v : !1, q = a.messages;
25519
+ const v = t.widget?.behavior?.typing_indicator_enabled ?? !0, R = i === "text" ? a.waitingForResponse && v : !1, U = a.messages;
25517
25520
  if (f)
25518
25521
  return /* @__PURE__ */ p(RN, { agent: t, language: n, onRestore: l, onClose: o, isListening: a.isVoiceActive, isAudioPlaying: a.isAudioPlaying, isSpeaking: a.mic.isSpeaking, isAgentSpeaking: a.isAgentSpeaking, isFirstAgentSpeech: a.isFirstAgentSpeech, onToggleVoice: a.toggleVoice, elapsed: g, variant: i === "text" ? "text" : "voice" });
25519
25522
  if (i === "voice" && h)
@@ -25528,10 +25531,10 @@ const to = Te.memo(function({
25528
25531
  }, $ = i === "hybrid" || Qa(t) === "hybrid";
25529
25532
  return /* @__PURE__ */ p(NN, { agent: t, language: n, languages: r, onLanguageChange: s, onClose: O, onSend: d, isVoiceEnabled: $, isAudioPlaying: a.isAudioPlaying, isVoiceSetupLoading: a.isVoiceSetupLoading || C, onStartVoice: D, visualViewportHeight: x, disabled: C, connecting: C, error: y || void 0, suggestions: S, onSuggestionClick: M, compact: !!S });
25530
25533
  }
25531
- return /* @__PURE__ */ p(IN, { agent: t, language: n, onEndSession: o, messages: q, partialTranscript: KN(a.partialTranscript), onSend: d, isAudioPlaying: a.isAudioPlaying, isVoiceEnabled: i === "hybrid", isListening: a.isVoiceActive, isSpeaking: a.mic.isSpeaking, isLoading: a.mic.isLoading, isAgentThinking: a.isAgentThinking, isAgentSpeaking: a.isAgentSpeaking, isFirstAgentSpeech: a.isFirstAgentSpeech, onToggleVoice: a.toggleVoice, onStartVoice: a.startVoice, onMinimize: u, elapsed: g, visualViewportHeight: x, waitingForResponse: R });
25534
+ return /* @__PURE__ */ p(IN, { agent: t, language: n, onEndSession: o, messages: U, partialTranscript: KN(a.partialTranscript), onSend: d, isAudioPlaying: a.isAudioPlaying, isVoiceEnabled: i === "hybrid", isListening: a.isVoiceActive, isSpeaking: a.mic.isSpeaking, isLoading: a.mic.isLoading, isAgentThinking: a.isAgentThinking, isAgentSpeaking: a.isAgentSpeaking, isFirstAgentSpeech: a.isFirstAgentSpeech, onToggleVoice: a.toggleVoice, onStartVoice: a.startVoice, onMinimize: u, elapsed: g, visualViewportHeight: x, waitingForResponse: R });
25532
25535
  }), ZN = { isListening: !1, isLoading: !1, isSpeaking: !1 };
25533
25536
  function no() {
25534
- const { messages: e, sendTextMessage: t, clearMessages: n } = Va(), { partialTranscript: r, microphone: i, talkMode: a, isUserSpeaking: s, isAudioPlaying: o, setMicrophoneEnabled: u } = Xa(), { changeSessionLanguage: l, clearSessionHistory: d, interrupt: h, error: m, isConnected: f, isSessionReady: g, isAgentThinking: k, isAgentSpeaking: A, isFirstAgentSpeech: x, session: C } = ja(), [y, O] = te([]), [D, w] = te(!1), [v, R] = te(!1), q = ae(!1), S = ae(e.length);
25537
+ const { messages: e, sendTextMessage: t, clearMessages: n } = Va(), { partialTranscript: r, microphone: i, talkMode: a, isUserSpeaking: s, isAudioPlaying: o, setMicrophoneEnabled: u } = Xa(), { changeSessionLanguage: l, clearSessionHistory: d, interrupt: h, error: m, isConnected: f, isSessionReady: g, isAgentThinking: k, isAgentSpeaking: A, isFirstAgentSpeech: x, session: C } = ja(), [y, O] = te([]), [D, w] = te(!1), [v, R] = te(!1), U = ae(!1), S = ae(e.length);
25535
25538
  de(() => {
25536
25539
  !g || y.length === 0 || (y.forEach((ue) => t(ue)), O([]));
25537
25540
  }, [g, y, t]), de(() => {
@@ -25543,13 +25546,13 @@ function no() {
25543
25546
  }, [e]), If("message_rate_limited", Oe(() => w(!1), []));
25544
25547
  const M = a === kl.PUSH_TO_TALK, $ = f && C.modality === "voice";
25545
25548
  de(() => {
25546
- !$ || M || i.pending || (v && !i.enabled && !q.current ? (q.current = !0, u(!0)) : !v && i.enabled && u(!1));
25549
+ !$ || M || i.pending || (v && !i.enabled && !U.current ? (U.current = !0, u(!0)) : !v && i.enabled && u(!1));
25547
25550
  }, [$, M, v, i.enabled, i.pending, u]);
25548
25551
  const G = Oe((ue) => {
25549
- ue && (q.current = !1), R(ue);
25552
+ ue && (U.current = !1), R(ue);
25550
25553
  }, []), Y = Oe((ue) => {
25551
25554
  w(!0), g ? t(ue) : O((ge) => [...ge, ue]);
25552
- }, [g, t]), U = Ae(() => y.length === 0 ? e : [...e, ...y.map((ue, ge) => ({ id: `pending-${ge}`, role: "user", text: ue }))], [e, y]), W = Oe(() => {
25555
+ }, [g, t]), q = Ae(() => y.length === 0 ? e : [...e, ...y.map((ue, ge) => ({ id: `pending-${ge}`, role: "user", text: ue }))], [e, y]), W = Oe(() => {
25553
25556
  O([]), n();
25554
25557
  }, [n]), Z = {
25555
25558
  isListening: i.enabled,
@@ -25557,7 +25560,7 @@ function no() {
25557
25560
  isSpeaking: s
25558
25561
  };
25559
25562
  return {
25560
- displayMessages: U,
25563
+ displayMessages: q,
25561
25564
  send: Y,
25562
25565
  clearAll: W,
25563
25566
  waitingForResponse: D,
@@ -26019,7 +26022,7 @@ function fS(e, t) {
26019
26022
  }
26020
26023
  function pS({ restUrl: e, language: t, tabletName: n }) {
26021
26024
  const r = fS(e, n), i = (o) => X(t, o);
26022
- if (!r) return /* @__PURE__ */ p(ir, { icon: /* @__PURE__ */ p(ft, { className: "rqmii-chat-spin", size: 28 }), text: i("loading") });
26025
+ if (!r) return /* @__PURE__ */ p(ir, { icon: /* @__PURE__ */ p(pt, { className: "rqmii-chat-spin", size: 28 }), text: i("loading") });
26023
26026
  const { controller: a, state: s } = r;
26024
26027
  switch (s.phase) {
26025
26028
  case "not_paired":
@@ -26032,7 +26035,7 @@ function pS({ restUrl: e, language: t, tabletName: n }) {
26032
26035
  }
26033
26036
  );
26034
26037
  case "pairing":
26035
- return /* @__PURE__ */ p(ir, { icon: /* @__PURE__ */ p(ft, { className: "rqmii-chat-spin", size: 28 }), text: i("remotePairing") });
26038
+ return /* @__PURE__ */ p(ir, { icon: /* @__PURE__ */ p(pt, { className: "rqmii-chat-spin", size: 28 }), text: i("remotePairing") });
26036
26039
  case "in_conversation":
26037
26040
  return /* @__PURE__ */ B(Ue, { children: [
26038
26041
  /* @__PURE__ */ p($a, { name: s.agentName }),
@@ -26071,13 +26074,13 @@ function ir({ icon: e, text: t, detail: n }) {
26071
26074
  }
26072
26075
  function mS({ state: e, language: t, onTalk: n }) {
26073
26076
  const r = (o) => X(t, o), i = e.phase === "starting", a = e.screenOnline === !1, s = e.tabletAllowed ? e.notice === "busy" ? r("remoteBusy") : e.notice === "error" ? r("sessionError") : null : r("remoteControlBuiltIn");
26074
- return e.agentName === null && !s ? /* @__PURE__ */ p(ir, { icon: /* @__PURE__ */ p(ft, { className: "rqmii-chat-spin", size: 28 }), text: r("loading") }) : /* @__PURE__ */ B(Ue, { children: [
26077
+ return e.agentName === null && !s ? /* @__PURE__ */ p(ir, { icon: /* @__PURE__ */ p(pt, { className: "rqmii-chat-spin", size: 28 }), text: r("loading") }) : /* @__PURE__ */ B(Ue, { children: [
26075
26078
  /* @__PURE__ */ p($a, { name: e.agentName, children: e.screenOnline !== null && /* @__PURE__ */ B("span", { className: oe("rqmii-remote-screen", !a && "is-online"), children: [
26076
26079
  /* @__PURE__ */ p("span", { className: "rqmii-remote-dot" }),
26077
26080
  r(a ? "remoteScreenOffline" : "remoteScreenOnline")
26078
26081
  ] }) }),
26079
26082
  /* @__PURE__ */ B("button", { type: "button", className: "rqmii-remote-talk", onClick: n, disabled: i || a || !e.tabletAllowed, children: [
26080
- i ? /* @__PURE__ */ p(ft, { className: "rqmii-chat-spin", size: 44 }) : /* @__PURE__ */ p(Yt, { size: 48 }),
26083
+ i ? /* @__PURE__ */ p(pt, { className: "rqmii-chat-spin", size: 44 }) : /* @__PURE__ */ p(Yt, { size: 48 }),
26081
26084
  /* @__PURE__ */ p("span", { children: r(i ? "loading" : "remoteTapToTalk") })
26082
26085
  ] }),
26083
26086
  s && /* @__PURE__ */ p("p", { className: "rqmii-remote-notice", role: "alert", children: s })
@@ -26103,7 +26106,7 @@ function gS({ session: e, language: t, settingsTalkMode: n, onEnded: r, onFailed
26103
26106
  return /* @__PURE__ */ B(Ue, { children: [
26104
26107
  /* @__PURE__ */ B("div", { className: "rqmii-remote-caption", "aria-live": "polite", children: [
26105
26108
  D ? /* @__PURE__ */ p("span", { dir: "auto", className: oe(D.role === "user" && "is-user"), children: D.text }) : null,
26106
- !l && /* @__PURE__ */ p(ft, { className: "rqmii-chat-spin", size: 28 })
26109
+ !l && /* @__PURE__ */ p(pt, { className: "rqmii-chat-spin", size: 28 })
26107
26110
  ] }),
26108
26111
  /* @__PURE__ */ B("div", { className: "rqmii-remote-controls", children: [
26109
26112
  A ? /* @__PURE__ */ B(
@@ -26189,4 +26192,4 @@ export {
26189
26192
  eS as t,
26190
26193
  iN as u
26191
26194
  };
26192
- //# sourceMappingURL=ui-C5VFxBD4.js.map
26195
+ //# sourceMappingURL=ui-CtiQXBti.js.map