@eloquentai/chat-sdk 0.36.1 → 0.36.2-dev.1

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
@@ -5,12 +5,12 @@ import { useState as Ae, forwardRef as Ve, createContext as Ar, useContext as Er
5
5
  import * as vc from "react-dom";
6
6
  try {
7
7
  let e = typeof window < "u" ? window : typeof global < "u" ? global : typeof globalThis < "u" ? globalThis : typeof self < "u" ? self : {}, t = new e.Error().stack;
8
- t && (e._sentryDebugIds = e._sentryDebugIds || {}, e._sentryDebugIds[t] = "5d08f2e2-fbb4-43c6-897a-147cc25633ed", e._sentryDebugIdIdentifier = "sentry-dbid-5d08f2e2-fbb4-43c6-897a-147cc25633ed");
8
+ t && (e._sentryDebugIds = e._sentryDebugIds || {}, e._sentryDebugIds[t] = "3088995a-1820-49d8-b921-10f34ed13ff0", e._sentryDebugIdIdentifier = "sentry-dbid-3088995a-1820-49d8-b921-10f34ed13ff0");
9
9
  } catch {
10
10
  }
11
11
  {
12
12
  let e = typeof window < "u" ? window : typeof global < "u" ? global : typeof globalThis < "u" ? globalThis : typeof self < "u" ? self : {};
13
- e.SENTRY_RELEASE = { id: "69adb3352eb697c0506d0f4e4c48027522e0c1ad" };
13
+ e.SENTRY_RELEASE = { id: "42bc9a59aae034b08cf83b44538720ec2c9c3aa6" };
14
14
  }
15
15
  function ka(e) {
16
16
  var t, n, r = "";
@@ -257,8 +257,8 @@ const Ac = (e, t) => {
257
257
  }
258
258
  let w = !!v, E;
259
259
  if (w) {
260
- const B = k.substring(0, v);
261
- E = r(B);
260
+ const F = k.substring(0, v);
261
+ E = r(F);
262
262
  const N = E && i[E] ? r(k) : void 0;
263
263
  N && N !== E && (E = N, w = !1);
264
264
  } else
@@ -274,13 +274,13 @@ const Ac = (e, t) => {
274
274
  }
275
275
  w = !1;
276
276
  }
277
- const T = p.length === 0 ? "" : p.length === 1 ? p[0] : l(p).join(":"), O = g ? T + Eo : T, F = O + E;
278
- if (a.indexOf(F) > -1)
277
+ const T = p.length === 0 ? "" : p.length === 1 ? p[0] : l(p).join(":"), O = g ? T + Eo : T, B = O + E;
278
+ if (a.indexOf(B) > -1)
279
279
  continue;
280
- a.push(F);
280
+ a.push(B);
281
281
  const C = o(E, w);
282
- for (let B = 0; B < C.length; ++B) {
283
- const N = C[B];
282
+ for (let F = 0; F < C.length; ++F) {
283
+ const N = C[F];
284
284
  a.push(O + N);
285
285
  }
286
286
  u = c + (u.length > 0 ? " " + u : u);
@@ -344,7 +344,7 @@ const Ac = (e, t) => {
344
344
  "bottom-left",
345
345
  // Deprecated since Tailwind CSS v4.1.0, see https://github.com/tailwindlabs/tailwindcss/pull/17378
346
346
  "left-bottom"
347
- ], F = () => [...O(), H, U], C = () => ["auto", "hidden", "clip", "visible", "scroll"], B = () => ["auto", "contain", "none"], N = () => [H, U, s], W = () => [Lt, "full", "auto", ...N()], S = () => [ht, "none", "subgrid", H, U], P = () => ["auto", {
347
+ ], B = () => [...O(), H, U], C = () => ["auto", "hidden", "clip", "visible", "scroll"], F = () => ["auto", "contain", "none"], N = () => [H, U, s], W = () => [Lt, "full", "auto", ...N()], S = () => [ht, "none", "subgrid", H, U], P = () => ["auto", {
348
348
  span: ["full", ht, H, U]
349
349
  }, ht, H, U], z = () => [ht, "auto", H, U], re = () => ["auto", "min", "max", "fr", H, U], V = () => ["start", "end", "center", "between", "around", "evenly", "stretch", "baseline", "center-safe", "end-safe"], D = () => ["start", "end", "center", "stretch", "center-safe", "end-safe"], J = () => ["auto", ...N()], ae = () => [Lt, "auto", "full", "dvw", "dvh", "lvw", "lvh", "svw", "svh", "min", "max", "fit", ...N()], Te = () => [Lt, "screen", "full", "dvw", "lvw", "svw", "min", "max", "fit", ...N()], Le = () => [Lt, "screen", "full", "lh", "dvh", "lvh", "svh", "min", "max", "fit", ...N()], m = () => [e, H, U], Se = () => [...O(), nl, tl, {
350
350
  position: [H, U]
@@ -503,7 +503,7 @@ const Ac = (e, t) => {
503
503
  * @see https://tailwindcss.com/docs/object-position
504
504
  */
505
505
  "object-position": [{
506
- object: F()
506
+ object: B()
507
507
  }],
508
508
  /**
509
509
  * Overflow
@@ -531,21 +531,21 @@ const Ac = (e, t) => {
531
531
  * @see https://tailwindcss.com/docs/overscroll-behavior
532
532
  */
533
533
  overscroll: [{
534
- overscroll: B()
534
+ overscroll: F()
535
535
  }],
536
536
  /**
537
537
  * Overscroll Behavior X
538
538
  * @see https://tailwindcss.com/docs/overscroll-behavior
539
539
  */
540
540
  "overscroll-x": [{
541
- "overscroll-x": B()
541
+ "overscroll-x": F()
542
542
  }],
543
543
  /**
544
544
  * Overscroll Behavior Y
545
545
  * @see https://tailwindcss.com/docs/overscroll-behavior
546
546
  */
547
547
  "overscroll-y": [{
548
- "overscroll-y": B()
548
+ "overscroll-y": F()
549
549
  }],
550
550
  /**
551
551
  * Position
@@ -2457,7 +2457,7 @@ const Ac = (e, t) => {
2457
2457
  * @see https://tailwindcss.com/docs/perspective-origin
2458
2458
  */
2459
2459
  "perspective-origin": [{
2460
- "perspective-origin": F()
2460
+ "perspective-origin": B()
2461
2461
  }],
2462
2462
  /**
2463
2463
  * Rotate
@@ -2553,7 +2553,7 @@ const Ac = (e, t) => {
2553
2553
  * @see https://tailwindcss.com/docs/transform-origin
2554
2554
  */
2555
2555
  "transform-origin": [{
2556
- origin: F()
2556
+ origin: B()
2557
2557
  }],
2558
2558
  /**
2559
2559
  * Transform Style
@@ -3920,7 +3920,7 @@ var is = "ScrollArea", [ls, Ck] = /* @__PURE__ */ ri(is), [qp, ot] = ls(is), as
3920
3920
  dir: l,
3921
3921
  scrollHideDelay: i = 600,
3922
3922
  ...a
3923
- } = t, [s, u] = R.useState(null), [f, c] = R.useState(null), [d, p] = R.useState(null), [g, k] = R.useState(null), [v, w] = R.useState(null), [E, T] = R.useState(0), [O, F] = R.useState(0), [C, B] = R.useState(!1), [N, W] = R.useState(!1), S = Bt(n, u), P = Za(l);
3923
+ } = t, [s, u] = R.useState(null), [f, c] = R.useState(null), [d, p] = R.useState(null), [g, k] = R.useState(null), [v, w] = R.useState(null), [E, T] = R.useState(0), [O, B] = R.useState(0), [C, F] = R.useState(!1), [N, W] = R.useState(!1), S = Bt(n, u), P = Za(l);
3924
3924
  return /* @__PURE__ */ x(
3925
3925
  qp,
3926
3926
  {
@@ -3936,13 +3936,13 @@ var is = "ScrollArea", [ls, Ck] = /* @__PURE__ */ ri(is), [qp, ot] = ls(is), as
3936
3936
  scrollbarX: g,
3937
3937
  onScrollbarXChange: k,
3938
3938
  scrollbarXEnabled: C,
3939
- onScrollbarXEnabledChange: B,
3939
+ onScrollbarXEnabledChange: F,
3940
3940
  scrollbarY: v,
3941
3941
  onScrollbarYChange: w,
3942
3942
  scrollbarYEnabled: N,
3943
3943
  onScrollbarYEnabledChange: W,
3944
3944
  onCornerWidthChange: T,
3945
- onCornerHeightChange: F,
3945
+ onCornerHeightChange: B,
3946
3946
  children: /* @__PURE__ */ x(
3947
3947
  Ut.div,
3948
3948
  {
@@ -4243,7 +4243,7 @@ var is = "ScrollArea", [ls, Ck] = /* @__PURE__ */ ri(is), [qp, ot] = ls(is), as
4243
4243
  onWheelScroll: c,
4244
4244
  onResize: d,
4245
4245
  ...p
4246
- } = t, g = ot(Et, r), [k, v] = R.useState(null), w = Bt(n, v), E = R.useRef(null), T = R.useRef(""), O = g.viewport, F = o.content - o.viewport, C = St(c), B = St(u), N = Yn(d, 10);
4246
+ } = t, g = ot(Et, r), [k, v] = R.useState(null), w = Bt(n, v), E = R.useRef(null), T = R.useRef(""), O = g.viewport, B = o.content - o.viewport, C = St(c), F = St(u), N = Yn(d, 10);
4247
4247
  function W(S) {
4248
4248
  if (E.current) {
4249
4249
  const P = S.clientX - E.current.left, z = S.clientY - E.current.top;
@@ -4253,10 +4253,10 @@ var is = "ScrollArea", [ls, Ck] = /* @__PURE__ */ ri(is), [qp, ot] = ls(is), as
4253
4253
  return ie(W, "handleDragScroll"), R.useEffect(() => {
4254
4254
  const S = /* @__PURE__ */ ie((P) => {
4255
4255
  const z = P.target;
4256
- k?.contains(z) && C(P, F);
4256
+ k?.contains(z) && C(P, B);
4257
4257
  }, "handleWheel");
4258
4258
  return document.addEventListener("wheel", S, { passive: !1 }), () => document.removeEventListener("wheel", S, { passive: !1 });
4259
- }, [O, k, F, C]), R.useEffect(B, [o, B]), Zt(k, N), Zt(g.content, N), /* @__PURE__ */ x(
4259
+ }, [O, k, B, C]), R.useEffect(F, [o, F]), Zt(k, N), Zt(g.content, N), /* @__PURE__ */ x(
4260
4260
  Mp,
4261
4261
  {
4262
4262
  scope: r,
@@ -4264,7 +4264,7 @@ var is = "ScrollArea", [ls, Ck] = /* @__PURE__ */ ri(is), [qp, ot] = ls(is), as
4264
4264
  hasThumb: l,
4265
4265
  onThumbChange: St(i),
4266
4266
  onThumbPointerUp: St(a),
4267
- onThumbPositionChange: B,
4267
+ onThumbPositionChange: F,
4268
4268
  onThumbPointerDown: St(s),
4269
4269
  children: /* @__PURE__ */ x(
4270
4270
  Ut.div,
@@ -5753,7 +5753,7 @@ function fd() {
5753
5753
  var J = V.lastIndexOf(s);
5754
5754
  T = ~J ? V.length - J : T + V.length;
5755
5755
  }
5756
- function F() {
5756
+ function B() {
5757
5757
  var V = { line: E, column: T };
5758
5758
  return function(D) {
5759
5759
  return D.position = new C(V), W(), D;
@@ -5763,7 +5763,7 @@ function fd() {
5763
5763
  this.start = V, this.end = { line: E, column: T }, this.source = w.source;
5764
5764
  }
5765
5765
  C.prototype.content = v;
5766
- function B(V) {
5766
+ function F(V) {
5767
5767
  var D = new Error(
5768
5768
  w.source + ":" + E + ":" + T + ": " + V
5769
5769
  );
@@ -5786,12 +5786,12 @@ function fd() {
5786
5786
  return V;
5787
5787
  }
5788
5788
  function P() {
5789
- var V = F();
5789
+ var V = B();
5790
5790
  if (!(u != v.charAt(0) || f != v.charAt(1))) {
5791
5791
  for (var D = 2; c != v.charAt(D) && (f != v.charAt(D) || u != v.charAt(D + 1)); )
5792
5792
  ++D;
5793
5793
  if (D += 2, c === v.charAt(D - 1))
5794
- return B("End of comment missing");
5794
+ return F("End of comment missing");
5795
5795
  var J = v.slice(2, D - 2);
5796
5796
  return T += 2, O(J), v = v.slice(D), T += 2, V({
5797
5797
  type: d,
@@ -5800,9 +5800,9 @@ function fd() {
5800
5800
  }
5801
5801
  }
5802
5802
  function z() {
5803
- var V = F(), D = N(r);
5803
+ var V = B(), D = N(r);
5804
5804
  if (D) {
5805
- if (P(), !N(o)) return B("property missing ':'");
5805
+ if (P(), !N(o)) return F("property missing ':'");
5806
5806
  var J = N(l), ae = V({
5807
5807
  type: p,
5808
5808
  property: k(D[0].replace(e, c)),
@@ -8630,19 +8630,19 @@ function Yd(e) {
8630
8630
  if (r++, t.containerState._closeFlow) {
8631
8631
  t.containerState._closeFlow = void 0, o && E();
8632
8632
  const O = t.events.length;
8633
- let F = O, C;
8634
- for (; F--; )
8635
- if (t.events[F][0] === "exit" && t.events[F][1].type === "chunkFlow") {
8636
- C = t.events[F][1].end;
8633
+ let B = O, C;
8634
+ for (; B--; )
8635
+ if (t.events[B][0] === "exit" && t.events[B][1].type === "chunkFlow") {
8636
+ C = t.events[B][1].end;
8637
8637
  break;
8638
8638
  }
8639
8639
  w(r);
8640
- let B = O;
8641
- for (; B < t.events.length; )
8642
- t.events[B][1].end = {
8640
+ let F = O;
8641
+ for (; F < t.events.length; )
8642
+ t.events[F][1].end = {
8643
8643
  ...C
8644
- }, B++;
8645
- return Ke(t.events, F + 1, 0, t.events.slice(O)), t.events.length = B, u(T);
8644
+ }, F++;
8645
+ return Ke(t.events, B + 1, 0, t.events.slice(O)), t.events.length = F, u(T);
8646
8646
  }
8647
8647
  return a(T);
8648
8648
  }
@@ -8687,8 +8687,8 @@ function Yd(e) {
8687
8687
  return Y(T) ? (e.consume(T), v(e.exit("chunkFlow")), r = 0, t.interrupt = void 0, a) : (e.consume(T), k);
8688
8688
  }
8689
8689
  function v(T, O) {
8690
- const F = t.sliceStream(T);
8691
- if (O && F.push(null), T.previous = l, l && (l.next = T), l = T, o.defineSkip(T.start), o.write(F), t.parser.lazy[T.start.line]) {
8690
+ const B = t.sliceStream(T);
8691
+ if (O && B.push(null), T.previous = l, l && (l.next = T), l = T, o.defineSkip(T.start), o.write(B), t.parser.lazy[T.start.line]) {
8692
8692
  let C = o.events.length;
8693
8693
  for (; C--; )
8694
8694
  if (
@@ -8698,8 +8698,8 @@ function Yd(e) {
8698
8698
  o.events[C][1].end.offset > i)
8699
8699
  )
8700
8700
  return;
8701
- const B = t.events.length;
8702
- let N = B, W, S;
8701
+ const F = t.events.length;
8702
+ let N = F, W, S;
8703
8703
  for (; N--; )
8704
8704
  if (t.events[N][0] === "exit" && t.events[N][1].type === "chunkFlow") {
8705
8705
  if (W) {
@@ -8708,18 +8708,18 @@ function Yd(e) {
8708
8708
  }
8709
8709
  W = !0;
8710
8710
  }
8711
- for (w(r), C = B; C < t.events.length; )
8711
+ for (w(r), C = F; C < t.events.length; )
8712
8712
  t.events[C][1].end = {
8713
8713
  ...S
8714
8714
  }, C++;
8715
- Ke(t.events, N + 1, 0, t.events.slice(B)), t.events.length = C;
8715
+ Ke(t.events, N + 1, 0, t.events.slice(F)), t.events.length = C;
8716
8716
  }
8717
8717
  }
8718
8718
  function w(T) {
8719
8719
  let O = n.length;
8720
8720
  for (; O-- > T; ) {
8721
- const F = n[O];
8722
- t.containerState = F[1], F[0].exit.call(t, e);
8721
+ const B = n[O];
8722
+ t.containerState = B[1], B[0].exit.call(t, e);
8723
8723
  }
8724
8724
  n.length = T;
8725
8725
  }
@@ -8960,7 +8960,7 @@ const wl = {
8960
8960
  function lh(e, t, n) {
8961
8961
  const r = this, o = {
8962
8962
  partial: !0,
8963
- tokenize: F
8963
+ tokenize: B
8964
8964
  };
8965
8965
  let l = 0, i = 0, a;
8966
8966
  return s;
@@ -8968,8 +8968,8 @@ function lh(e, t, n) {
8968
8968
  return u(C);
8969
8969
  }
8970
8970
  function u(C) {
8971
- const B = r.events[r.events.length - 1];
8972
- return l = B && B[1].type === "linePrefix" ? B[2].sliceSerialize(B[1], !0).length : 0, a = C, e.enter("codeFenced"), e.enter("codeFencedFence"), e.enter("codeFencedFenceSequence"), f(C);
8971
+ const F = r.events[r.events.length - 1];
8972
+ return l = F && F[1].type === "linePrefix" ? F[2].sliceSerialize(F[1], !0).length : 0, a = C, e.enter("codeFenced"), e.enter("codeFencedFence"), e.enter("codeFencedFenceSequence"), f(C);
8973
8973
  }
8974
8974
  function f(C) {
8975
8975
  return C === a ? (i++, e.consume(C), f) : i < 3 ? n(C) : (e.exit("codeFencedFenceSequence"), oe(C) ? se(e, c, "whitespace")(C) : c(C));
@@ -9008,7 +9008,7 @@ function lh(e, t, n) {
9008
9008
  function O(C) {
9009
9009
  return e.exit("codeFenced"), t(C);
9010
9010
  }
9011
- function F(C, B, N) {
9011
+ function B(C, F, N) {
9012
9012
  let W = 0;
9013
9013
  return S;
9014
9014
  function S(D) {
@@ -9024,7 +9024,7 @@ function lh(e, t, n) {
9024
9024
  return D === a ? (W++, C.consume(D), re) : W >= i ? (C.exit("codeFencedFenceSequence"), oe(D) ? se(C, V, "whitespace")(D) : V(D)) : N(D);
9025
9025
  }
9026
9026
  function V(D) {
9027
- return D === null || Y(D) ? (C.exit("codeFencedFence"), B(D)) : N(D);
9027
+ return D === null || Y(D) ? (C.exit("codeFencedFence"), F(D)) : N(D);
9028
9028
  }
9029
9029
  }
9030
9030
  }
@@ -9708,19 +9708,19 @@ function Mh(e, t, n) {
9708
9708
  return b === 47 ? (e.consume(b), S) : b === 58 || b === 95 || Oe(b) ? (e.consume(b), O) : oe(b) ? (e.consume(b), T) : S(b);
9709
9709
  }
9710
9710
  function O(b) {
9711
- return b === 45 || b === 46 || b === 58 || b === 95 || Re(b) ? (e.consume(b), O) : F(b);
9711
+ return b === 45 || b === 46 || b === 58 || b === 95 || Re(b) ? (e.consume(b), O) : B(b);
9712
9712
  }
9713
- function F(b) {
9714
- return b === 61 ? (e.consume(b), C) : oe(b) ? (e.consume(b), F) : T(b);
9713
+ function B(b) {
9714
+ return b === 61 ? (e.consume(b), C) : oe(b) ? (e.consume(b), B) : T(b);
9715
9715
  }
9716
9716
  function C(b) {
9717
- return b === null || b === 60 || b === 61 || b === 62 || b === 96 ? n(b) : b === 34 || b === 39 ? (e.consume(b), s = b, B) : oe(b) ? (e.consume(b), C) : N(b);
9717
+ return b === null || b === 60 || b === 61 || b === 62 || b === 96 ? n(b) : b === 34 || b === 39 ? (e.consume(b), s = b, F) : oe(b) ? (e.consume(b), C) : N(b);
9718
9718
  }
9719
- function B(b) {
9720
- return b === s ? (e.consume(b), s = null, W) : b === null || Y(b) ? n(b) : (e.consume(b), B);
9719
+ function F(b) {
9720
+ return b === s ? (e.consume(b), s = null, W) : b === null || Y(b) ? n(b) : (e.consume(b), F);
9721
9721
  }
9722
9722
  function N(b) {
9723
- return b === null || b === 34 || b === 39 || b === 47 || b === 60 || b === 61 || b === 62 || b === 96 || de(b) ? F(b) : (e.consume(b), N);
9723
+ return b === null || b === 34 || b === 39 || b === 47 || b === 60 || b === 61 || b === 62 || b === 96 || de(b) ? B(b) : (e.consume(b), N);
9724
9724
  }
9725
9725
  function W(b) {
9726
9726
  return b === 47 || b === 62 || oe(b) ? T(b) : n(b);
@@ -9797,7 +9797,7 @@ function Bh(e, t, n) {
9797
9797
  return e.enter("htmlText"), e.enter("htmlTextData"), e.consume(m), s;
9798
9798
  }
9799
9799
  function s(m) {
9800
- return m === 33 ? (e.consume(m), u) : m === 47 ? (e.consume(m), F) : m === 63 ? (e.consume(m), T) : Oe(m) ? (e.consume(m), N) : n(m);
9800
+ return m === 33 ? (e.consume(m), u) : m === 47 ? (e.consume(m), B) : m === 63 ? (e.consume(m), T) : Oe(m) ? (e.consume(m), N) : n(m);
9801
9801
  }
9802
9802
  function u(m) {
9803
9803
  return m === 45 ? (e.consume(m), f) : m === 91 ? (e.consume(m), l = 0, g) : Oe(m) ? (e.consume(m), E) : n(m);
@@ -9836,14 +9836,14 @@ function Bh(e, t, n) {
9836
9836
  function O(m) {
9837
9837
  return m === 62 ? J(m) : T(m);
9838
9838
  }
9839
- function F(m) {
9839
+ function B(m) {
9840
9840
  return Oe(m) ? (e.consume(m), C) : n(m);
9841
9841
  }
9842
9842
  function C(m) {
9843
- return m === 45 || Re(m) ? (e.consume(m), C) : B(m);
9843
+ return m === 45 || Re(m) ? (e.consume(m), C) : F(m);
9844
9844
  }
9845
- function B(m) {
9846
- return Y(m) ? (i = B, ae(m)) : oe(m) ? (e.consume(m), B) : J(m);
9845
+ function F(m) {
9846
+ return Y(m) ? (i = F, ae(m)) : oe(m) ? (e.consume(m), F) : J(m);
9847
9847
  }
9848
9848
  function N(m) {
9849
9849
  return m === 45 || Re(m) ? (e.consume(m), N) : m === 47 || m === 62 || de(m) ? W(m) : n(m);
@@ -10413,12 +10413,12 @@ function Tm(e, t, n) {
10413
10413
  const o = {}, l = [];
10414
10414
  let i = [], a = [];
10415
10415
  const s = {
10416
- attempt: B(F),
10417
- check: B(C),
10416
+ attempt: F(B),
10417
+ check: F(C),
10418
10418
  consume: E,
10419
10419
  enter: T,
10420
10420
  exit: O,
10421
- interrupt: B(C, {
10421
+ interrupt: F(C, {
10422
10422
  interrupt: !0
10423
10423
  })
10424
10424
  }, u = {
@@ -10491,13 +10491,13 @@ function Tm(e, t, n) {
10491
10491
  const z = a.pop();
10492
10492
  return z.end = g(), u.events.push(["exit", z, u]), z;
10493
10493
  }
10494
- function F(P, z) {
10494
+ function B(P, z) {
10495
10495
  N(P, z.from);
10496
10496
  }
10497
10497
  function C(P, z) {
10498
10498
  z.restore();
10499
10499
  }
10500
- function B(P, z) {
10500
+ function F(P, z) {
10501
10501
  return re;
10502
10502
  function re(V, D, J) {
10503
10503
  let ae, Te, Le, m;
@@ -10748,7 +10748,7 @@ function Om(e) {
10748
10748
  },
10749
10749
  exit: {
10750
10750
  atxHeading: s(),
10751
- atxHeadingSequence: F,
10751
+ atxHeadingSequence: B,
10752
10752
  autolink: s(),
10753
10753
  autolinkEmail: ce,
10754
10754
  autolinkProtocol: We,
@@ -10792,7 +10792,7 @@ function Om(e) {
10792
10792
  resourceTitleString: Se,
10793
10793
  resource: Pe,
10794
10794
  setextHeading: s(N),
10795
- setextHeadingLineSequence: B,
10795
+ setextHeadingLineSequence: F,
10796
10796
  setextHeadingText: C,
10797
10797
  strong: s(),
10798
10798
  thematicBreak: s()
@@ -10978,7 +10978,7 @@ function Om(e) {
10978
10978
  const A = this.resume(), M = this.stack[this.stack.length - 1];
10979
10979
  M.url = A;
10980
10980
  }
10981
- function F(A) {
10981
+ function B(A) {
10982
10982
  const M = this.stack[this.stack.length - 1];
10983
10983
  if (!M.depth) {
10984
10984
  const G = this.sliceSerialize(A).length;
@@ -10988,7 +10988,7 @@ function Om(e) {
10988
10988
  function C() {
10989
10989
  this.data.setextHeadingSlurpLineEnding = !0;
10990
10990
  }
10991
- function B(A) {
10991
+ function F(A) {
10992
10992
  const M = this.stack[this.stack.length - 1];
10993
10993
  M.depth = this.sliceSerialize(A).codePointAt(0) === 61 ? 1 : 2;
10994
10994
  }
@@ -13851,12 +13851,12 @@ function lu(e, t, n) {
13851
13851
  d.lastIndex = 0;
13852
13852
  let T = d.exec(u.value);
13853
13853
  for (; T; ) {
13854
- const O = T.index, F = {
13854
+ const O = T.index, B = {
13855
13855
  index: T.index,
13856
13856
  input: T.input,
13857
13857
  stack: [...f, u]
13858
13858
  };
13859
- let C = p(...T, F);
13859
+ let C = p(...T, B);
13860
13860
  if (typeof C == "string" && (C = C.length > 0 ? { type: "text", value: C } : void 0), C === !1 ? d.lastIndex = O + 1 : (g !== O && E.push({
13861
13861
  type: "text",
13862
13862
  value: u.value.slice(g, O)
@@ -14215,8 +14215,8 @@ function ry(e, t) {
14215
14215
  const E = k[c] || "";
14216
14216
  let T = "", O = "";
14217
14217
  if (n.alignDelimiters !== !1) {
14218
- const F = s[c] - (v[c] || 0), C = l[c];
14219
- C === 114 ? T = " ".repeat(F) : C === 99 ? F % 2 ? (T = " ".repeat(F / 2 + 0.5), O = " ".repeat(F / 2 - 0.5)) : (T = " ".repeat(F / 2), O = T) : O = " ".repeat(F);
14218
+ const B = s[c] - (v[c] || 0), C = l[c];
14219
+ C === 114 ? T = " ".repeat(B) : C === 99 ? B % 2 ? (T = " ".repeat(B / 2 + 0.5), O = " ".repeat(B / 2 - 0.5)) : (T = " ".repeat(B / 2), O = T) : O = " ".repeat(B);
14220
14220
  }
14221
14221
  n.delimiterStart !== !1 && !c && w.push("|"), n.padding !== !1 && // Don’t add the opening space if we’re not aligning and the cell is
14222
14222
  // empty: there will be a closing space.
@@ -15600,16 +15600,16 @@ function kx(e, t, n) {
15600
15600
  return r.interrupt = !1, r.parser.lazy[r.now().line] ? n(S) : (e.enter("tableDelimiterRow"), i = !1, oe(S) ? se(e, g, "linePrefix", r.parser.constructs.disable.null.includes("codeIndented") ? void 0 : 4)(S) : g(S));
15601
15601
  }
15602
15602
  function g(S) {
15603
- return S === 45 || S === 58 ? v(S) : S === 124 ? (i = !0, e.enter("tableCellDivider"), e.consume(S), e.exit("tableCellDivider"), k) : F(S);
15603
+ return S === 45 || S === 58 ? v(S) : S === 124 ? (i = !0, e.enter("tableCellDivider"), e.consume(S), e.exit("tableCellDivider"), k) : B(S);
15604
15604
  }
15605
15605
  function k(S) {
15606
15606
  return oe(S) ? se(e, v, "whitespace")(S) : v(S);
15607
15607
  }
15608
15608
  function v(S) {
15609
- return S === 58 ? (l += 1, i = !0, e.enter("tableDelimiterMarker"), e.consume(S), e.exit("tableDelimiterMarker"), w) : S === 45 ? (l += 1, w(S)) : S === null || Y(S) ? O(S) : F(S);
15609
+ return S === 58 ? (l += 1, i = !0, e.enter("tableDelimiterMarker"), e.consume(S), e.exit("tableDelimiterMarker"), w) : S === 45 ? (l += 1, w(S)) : S === null || Y(S) ? O(S) : B(S);
15610
15610
  }
15611
15611
  function w(S) {
15612
- return S === 45 ? (e.enter("tableDelimiterFiller"), E(S)) : F(S);
15612
+ return S === 45 ? (e.enter("tableDelimiterFiller"), E(S)) : B(S);
15613
15613
  }
15614
15614
  function E(S) {
15615
15615
  return S === 45 ? (e.consume(S), E) : S === 58 ? (i = !0, e.exit("tableDelimiterFiller"), e.enter("tableDelimiterMarker"), e.consume(S), e.exit("tableDelimiterMarker"), T) : (e.exit("tableDelimiterFiller"), T(S));
@@ -15618,19 +15618,19 @@ function kx(e, t, n) {
15618
15618
  return oe(S) ? se(e, O, "whitespace")(S) : O(S);
15619
15619
  }
15620
15620
  function O(S) {
15621
- return S === 124 ? g(S) : S === null || Y(S) ? !i || o !== l ? F(S) : (e.exit("tableDelimiterRow"), e.exit("tableHead"), t(S)) : F(S);
15621
+ return S === 124 ? g(S) : S === null || Y(S) ? !i || o !== l ? B(S) : (e.exit("tableDelimiterRow"), e.exit("tableHead"), t(S)) : B(S);
15622
15622
  }
15623
- function F(S) {
15623
+ function B(S) {
15624
15624
  return n(S);
15625
15625
  }
15626
15626
  function C(S) {
15627
- return e.enter("tableRow"), B(S);
15627
+ return e.enter("tableRow"), F(S);
15628
15628
  }
15629
- function B(S) {
15630
- return S === 124 ? (e.enter("tableCellDivider"), e.consume(S), e.exit("tableCellDivider"), B) : S === null || Y(S) ? (e.exit("tableRow"), t(S)) : oe(S) ? se(e, B, "whitespace")(S) : (e.enter("data"), N(S));
15629
+ function F(S) {
15630
+ return S === 124 ? (e.enter("tableCellDivider"), e.consume(S), e.exit("tableCellDivider"), F) : S === null || Y(S) ? (e.exit("tableRow"), t(S)) : oe(S) ? se(e, F, "whitespace")(S) : (e.enter("data"), N(S));
15631
15631
  }
15632
15632
  function N(S) {
15633
- return S === null || S === 124 || de(S) ? (e.exit("data"), B(S)) : (e.consume(S), S === 92 ? W : N);
15633
+ return S === null || S === 124 || de(S) ? (e.exit("data"), F(S)) : (e.consume(S), S === 92 ? W : N);
15634
15634
  }
15635
15635
  function W(S) {
15636
15636
  return S === 92 || S === 124 ? (e.consume(S), N) : N(S);
@@ -17431,10 +17431,10 @@ function Gu() {
17431
17431
  e.DocumentFragment;
17432
17432
  const l = e.HTMLTemplateElement, i = e.Node, a = e.Element, s = e.NodeFilter;
17433
17433
  e.NamedNodeMap === void 0 && (e.NamedNodeMap || e.MozNamedAttrMap), e.HTMLFormElement;
17434
- const u = e.DOMParser, f = e.trustedTypes, c = a.prototype, d = tt(c, "cloneNode"), p = tt(c, "remove"), g = tt(c, "removeAttributeNode"), k = tt(c, "nextSibling"), v = tt(c, "childNodes"), w = tt(c, "parentNode"), E = tt(c, "shadowRoot"), T = tt(c, "attributes"), O = i && i.prototype ? tt(i.prototype, "nodeType") : null, F = i && i.prototype ? tt(i.prototype, "nodeName") : null, C = i && i.prototype ? tt(i.prototype, "ownerDocument") : null, B = function(h) {
17434
+ const u = e.DOMParser, f = e.trustedTypes, c = a.prototype, d = tt(c, "cloneNode"), p = tt(c, "remove"), g = tt(c, "removeAttributeNode"), k = tt(c, "nextSibling"), v = tt(c, "childNodes"), w = tt(c, "parentNode"), E = tt(c, "shadowRoot"), T = tt(c, "attributes"), O = i && i.prototype ? tt(i.prototype, "nodeType") : null, B = i && i.prototype ? tt(i.prototype, "nodeName") : null, C = i && i.prototype ? tt(i.prototype, "ownerDocument") : null, F = function(h) {
17435
17435
  return O ? O(h) : h.nodeType;
17436
17436
  }, N = function(h) {
17437
- return F ? F(h) : h.nodeName;
17437
+ return B ? B(h) : h.nodeName;
17438
17438
  }, W = xw(c, "namespaceURI"), S = function(h) {
17439
17439
  return W ? W(h) : h.namespaceURI;
17440
17440
  };
@@ -17638,7 +17638,7 @@ function Gu() {
17638
17638
  }, fc = function(h) {
17639
17639
  const y = S(h), q = Kt(N(h)), _ = w(h);
17640
17640
  let $, X;
17641
- return _ && B(_) === ye.element ? ($ = { namespaceURI: S(_) }, X = Kt(N(_))) : ($ = { namespaceURI: sn }, X = "template"), Mr[y] ? y === nr ? sc(q, $, X) : y === tr ? uc(q, $, X) : y === pt ? cc(q, $, X) : !!(An === "application/xhtml+xml" && Mr[y]) : !1;
17641
+ return _ && F(_) === ye.element ? ($ = { namespaceURI: S(_) }, X = Kt(N(_))) : ($ = { namespaceURI: sn }, X = "template"), Mr[y] ? y === nr ? sc(q, $, X) : y === tr ? uc(q, $, X) : y === pt ? cc(q, $, X) : !!(An === "application/xhtml+xml" && Mr[y]) : !1;
17642
17642
  }, Rt = function(h) {
17643
17643
  Pn(t.removed, { element: h });
17644
17644
  try {
@@ -17664,7 +17664,7 @@ function Gu() {
17664
17664
  } catch {
17665
17665
  }
17666
17666
  });
17667
- const q = B(h) === ye.element ? T(h) : null;
17667
+ const q = F(h) === ye.element ? T(h) : null;
17668
17668
  if (q) for (let _ = q.length - 1; _ >= 0; --_) {
17669
17669
  const $ = q[_], X = $ && $.name;
17670
17670
  typeof X == "string" && Fi(h, $, X);
@@ -17709,7 +17709,7 @@ function Gu() {
17709
17709
  for (; _.length > 0; ) {
17710
17710
  const $ = _.pop();
17711
17711
  if (y($) === !1) continue;
17712
- if (q && B($) === ye.element) {
17712
+ if (q && F($) === ye.element) {
17713
17713
  const ne = E($);
17714
17714
  Nt(ne) && _.push(ne);
17715
17715
  }
@@ -17718,7 +17718,7 @@ function Gu() {
17718
17718
  }
17719
17719
  }, Hr = function(h) {
17720
17720
  Ur(h, (y) => {
17721
- B(y) === ye.element && Bi(y);
17721
+ F(y) === ye.element && Bi(y);
17722
17722
  });
17723
17723
  }, jr = function(h) {
17724
17724
  const y = [];
@@ -17728,9 +17728,9 @@ function Gu() {
17728
17728
  }, pc = function(h, y) {
17729
17729
  const q = mo();
17730
17730
  wt(jr(h), (_) => {
17731
- B(_) === ye.element && go(q, _);
17731
+ F(_) === ye.element && go(q, _);
17732
17732
  }), wt(y, (_) => {
17733
- B(_) === ye.element && !Dn(q, _) && Bi(_);
17733
+ F(_) === ye.element && !Dn(q, _) && Bi(_);
17734
17734
  });
17735
17735
  }, Ui = function(h, y) {
17736
17736
  let q = !1;
@@ -17747,7 +17747,7 @@ function Gu() {
17747
17747
  const ne = jr(h), we = [h];
17748
17748
  let dt = !1;
17749
17749
  if (wt(ne, (Me) => {
17750
- B(Me) === ye.documentFragment ? Pn(we, Me) : !dt && !Dn(q, Me) && (dt = Dn($(), Me));
17750
+ F(Me) === ye.documentFragment ? Pn(we, Me) : !dt && !Dn(q, Me) && (dt = Dn($(), Me));
17751
17751
  }), !dt) return;
17752
17752
  if (X >= dc) throw kt("the tree kept changing during in-place sanitization; refusing to return it");
17753
17753
  wt(we, (Me, Fe) => {
@@ -17765,7 +17765,7 @@ function Gu() {
17765
17765
  return Q ? h === "patchsrc" ? !0 : h === "for" && y !== "label" && y !== "output" : !1;
17766
17766
  }, bc = function(h) {
17767
17767
  Q && Ur(h, (y) => {
17768
- const q = B(y);
17768
+ const q = F(y);
17769
17769
  if (q === ye.processingInstruction || q === ye.comment && _e(da, y.data)) {
17770
17770
  try {
17771
17771
  p(y);
@@ -17823,7 +17823,7 @@ function Gu() {
17823
17823
  for (; _; )
17824
17824
  _.data = rr(_.data), _ = q.nextNode();
17825
17825
  }, or = function(h) {
17826
- const y = F ? F(h) : null;
17826
+ const y = B ? B(h) : null;
17827
17827
  return typeof y != "string" || be(y) !== "form" ? !1 : typeof h.nodeName != "string" || typeof h.textContent != "string" || typeof h.removeChild != "function" || h.attributes !== T(h) || typeof h.removeAttribute != "function" || typeof h.removeAttributeNode != "function" || typeof h.getAttributeNode != "function" || typeof h.setAttribute != "function" || typeof h.namespaceURI != "string" || typeof h.insertBefore != "function" || typeof h.hasChildNodes != "function" || h.nodeType !== O(h) || h.childNodes !== v(h);
17828
17828
  }, Nt = function(h) {
17829
17829
  if (!O || typeof h != "object" || h === null) return !1;
@@ -17846,7 +17846,7 @@ function Gu() {
17846
17846
  });
17847
17847
  }
17848
17848
  const yc = function(h, y) {
17849
- return !!(Q && h.hasChildNodes() && !En(h.firstElementChild) && _e(So, h.textContent) && _e(So, h.innerHTML) || Q && Lw[y] && B(h) === ye.element && S(h) === pt && (En(h.firstElementChild) || typeof h.textContent == "string" && _e(So, h.textContent)) || h.nodeType === ye.processingInstruction || Q && h.nodeType === ye.comment && _e(da, h.data));
17849
+ return !!(Q && h.hasChildNodes() && !En(h.firstElementChild) && _e(So, h.textContent) && _e(So, h.innerHTML) || Q && Lw[y] && F(h) === ye.element && S(h) === pt && (En(h.firstElementChild) || typeof h.textContent == "string" && _e(So, h.textContent)) || h.nodeType === ye.processingInstruction || Q && h.nodeType === ye.comment && _e(da, h.data));
17850
17850
  }, ir = function(h, y) {
17851
17851
  if (h instanceof RegExp) return _e(h, y);
17852
17852
  if (h instanceof Function) {
@@ -17886,7 +17886,7 @@ function Gu() {
17886
17886
  const _ = xc(h, q, y);
17887
17887
  return _ === !1 && (st(j.afterSanitizeElements, h, null), fn(h, y)) ? !0 : _;
17888
17888
  }
17889
- if (B(h) === ye.element && !fc(h) || (q === "noscript" || q === "noembed" || q === "noframes") && _e(Nw, h.innerHTML))
17889
+ if (F(h) === ye.element && !fc(h) || (q === "noscript" || q === "noembed" || q === "noframes") && _e(Nw, h.innerHTML))
17890
17890
  return Rt(h), !0;
17891
17891
  if (G && h.nodeType === ye.text) {
17892
17892
  const _ = rr(h.textContent);
@@ -17966,7 +17966,7 @@ function Gu() {
17966
17966
  let y = null;
17967
17967
  const q = Vr(h);
17968
17968
  for (st(j.beforeSanitizeShadowDOM, h, null); y = q.nextNode(); )
17969
- if (st(j.uponSanitizeShadowNode, y, null), Wr(y, h), Gr(y, h), Nt(y.content) && Tn(y.content), B(y) === ye.element) {
17969
+ if (st(j.uponSanitizeShadowNode, y, null), Wr(y, h), Gr(y, h), Nt(y.content) && Tn(y.content), F(y) === ye.element) {
17970
17970
  const _ = E(y);
17971
17971
  Nt(_) && (Yr(_), Tn(_));
17972
17972
  }
@@ -17982,13 +17982,13 @@ function Gu() {
17982
17982
  Tn(q.shadow);
17983
17983
  continue;
17984
17984
  }
17985
- const _ = q.node, $ = B(_) === ye.element, X = v(_);
17985
+ const _ = q.node, $ = F(_) === ye.element, X = v(_);
17986
17986
  if (X) for (let ne = X.length - 1; ne >= 0; --ne) y.push({
17987
17987
  node: X[ne],
17988
17988
  shadow: null
17989
17989
  });
17990
17990
  if ($) {
17991
- const ne = F ? F(_) : null;
17991
+ const ne = B ? B(_) : null;
17992
17992
  if (typeof ne == "string" && be(ne) === "template") {
17993
17993
  const we = _.content;
17994
17994
  Nt(we) && y.push({
@@ -18546,7 +18546,7 @@ function uk() {
18546
18546
  l(O), r.current && r.current.focus();
18547
18547
  }, E = async (O) => {
18548
18548
  O.preventDefault();
18549
- const F = o.trim();
18549
+ const B = o.trim();
18550
18550
  if (!g || c) return;
18551
18551
  l("");
18552
18552
  const C = d.takeFiles();
@@ -18554,19 +18554,19 @@ function uk() {
18554
18554
  if (await n.onSendMessage?.(
18555
18555
  {
18556
18556
  id: crypto.randomUUID(),
18557
- content: F,
18557
+ content: B,
18558
18558
  sender: "user",
18559
18559
  timestamp: (/* @__PURE__ */ new Date()).toISOString()
18560
18560
  },
18561
18561
  C
18562
18562
  ), r.current) {
18563
- const B = r.current;
18564
- B.style.height = "auto";
18565
- const N = Math.min(B.scrollHeight, 48);
18566
- B.style.height = `${N}px`;
18563
+ const F = r.current;
18564
+ F.style.height = "auto";
18565
+ const N = Math.min(F.scrollHeight, 48);
18566
+ F.style.height = `${N}px`;
18567
18567
  }
18568
- } catch (B) {
18569
- l(F), d.restoreFiles(C, B);
18568
+ } catch (F) {
18569
+ l(B), d.restoreFiles(C, F);
18570
18570
  }
18571
18571
  }, T = () => n.isChatClosed ? /* @__PURE__ */ x("div", { className: "eloq:w-full eloq:z-20 eloq:animate-slide-up-in", children: /* @__PURE__ */ Z(
18572
18572
  "div",
@@ -18633,18 +18633,15 @@ function uk() {
18633
18633
  onChange: (O) => l(O.target.value),
18634
18634
  onKeyDown: (O) => {
18635
18635
  if (O.key === "Enter" && !O.shiftKey) {
18636
- O.preventDefault();
18637
- const F = O.currentTarget.form;
18638
- F && F.dispatchEvent(
18639
- new Event("submit", { bubbles: !0 })
18640
- );
18636
+ if (O.preventDefault(), O.nativeEvent.isComposing || O.keyCode === 229) return;
18637
+ O.currentTarget.form?.requestSubmit();
18641
18638
  }
18642
18639
  },
18643
18640
  onInput: (O) => {
18644
- const F = O.currentTarget;
18645
- F.style.height = "auto";
18646
- const C = Math.min(F.scrollHeight, 132);
18647
- F.style.height = `${C}px`, l(F.value);
18641
+ const B = O.currentTarget;
18642
+ B.style.height = "auto";
18643
+ const C = Math.min(B.scrollHeight, 132);
18644
+ B.style.height = `${C}px`, l(B.value);
18648
18645
  }
18649
18646
  }
18650
18647
  ) }),
@@ -19019,4 +19016,4 @@ export {
19019
19016
  ti as u,
19020
19017
  Ux as w
19021
19018
  };
19022
- //# sourceMappingURL=skeleton-CFoCj07s.js.map
19019
+ //# sourceMappingURL=skeleton-B1g6gW9j.js.map