research-agent-ui 0.1.354 → 0.1.356

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.
@@ -1,23 +1,22 @@
1
1
  import { i as e, n as t, o as n, r, s as i, t as a } from "./dialog-Cufn2u50.js";
2
2
  import { a as o, c as s, n as c, r as l, t as u, u as d } from "./tooltip-Bl3IdX-I.js";
3
- import { $ as f, G as p, J as m, Q as h, X as g, Y as _, Z as v, at as y, d as b, et as x, nt as S, q as C, tt as w } from "./src-Czo4Yrd2.js";
4
- import { researchAgentUIConfig as T } from "./config.mjs";
5
- import { Fragment as E, Suspense as D, lazy as O, memo as k, useCallback as A, useEffect as j, useMemo as M, useRef as N, useState as P } from "react";
6
- import { Fragment as F, jsx as I, jsxs as L } from "react/jsx-runtime";
7
- import { animate as R } from "motion/react";
8
- import { ArrowLeftRight as z, BrainCircuit as B, Check as V, ChevronDown as H, ChevronRight as U, ChevronUp as ee, ClipboardList as W, Cpu as te, Download as ne, ExternalLink as G, File as re, FileDown as ie, FileSpreadsheet as ae, FileText as K, FileType as oe, Image as se, Link2 as ce, Loader2 as q, Pencil as le, Plus as ue, Search as J, StopCircle as de, Trash2 as fe, Video as pe, Volume2 as me } from "lucide-react";
9
- import { agentSearch as he, getArticle as ge, listProviders as _e } from "qwksearch-api-client";
10
- import ve from "quantum-sphere-loading-icon/react";
11
- import ye from "markdown-to-jsx";
3
+ import { $ as f, G as p, J as m, Q as h, X as g, Y as _, Z as v, at as y, ct as b, d as x, et as S, it as C, nt as w, q as T, rt as E, tt as D } from "./src-BUCWu20J.js";
4
+ import { researchAgentUIConfig as O } from "./config.mjs";
5
+ import { Fragment as k, Suspense as A, lazy as j, memo as M, useCallback as N, useEffect as P, useMemo as F, useRef as I, useState as L } from "react";
6
+ import { Fragment as R, jsx as z, jsxs as B } from "react/jsx-runtime";
7
+ import { animate as V } from "motion/react";
8
+ import { ArrowLeftRight as H, BrainCircuit as ee, Check as te, ChevronDown as ne, ChevronRight as re, ChevronUp as ie, ClipboardList as U, Cpu as ae, Download as oe, ExternalLink as W, File as se, FileDown as ce, FileSpreadsheet as le, FileText as G, FileType as ue, Image as de, Link2 as fe, Loader2 as K, Pencil as pe, Plus as me, Search as q, StopCircle as he, Trash2 as ge, Video as _e, Volume2 as ve } from "lucide-react";
9
+ import { agentSearch as J, getArticle as ye, listProviders as be } from "qwksearch-api-client";
10
+ import xe from "quantum-sphere-loading-icon/react";
11
+ import Se from "markdown-to-jsx";
12
12
  import { convertURLSafeHTMLToHTML as Y } from "extract-webpage/html-to-content/html-utils";
13
- import * as X from "@radix-ui/react-popover";
14
- import * as be from "grab-url/animations";
13
+ import * as Ce from "grab-url/animations";
15
14
  // src/ui/glowing-effect.tsx
16
- var Z = k(({ blur: e = 0, inactiveZone: t = .7, proximity: r = 0, spread: i = 20, variant: a = "default", glow: o = !1, className: s, movementDuration: c = 2, borderWidth: l = 1, disabled: u = !0 }) => {
17
- let d = N(null), f = N({
15
+ var X = M(({ blur: e = 0, inactiveZone: t = .7, proximity: r = 0, spread: i = 20, variant: a = "default", glow: o = !1, className: s, movementDuration: c = 2, borderWidth: l = 1, disabled: u = !0 }) => {
16
+ let d = I(null), f = I({
18
17
  x: 0,
19
18
  y: 0
20
- }), p = N(0), m = A((e) => {
19
+ }), p = I(0), m = N((e) => {
21
20
  d.current && (p.current && cancelAnimationFrame(p.current), p.current = requestAnimationFrame(() => {
22
21
  let n = d.current;
23
22
  if (!n) return;
@@ -34,7 +33,7 @@ var Z = k(({ blur: e = 0, inactiveZone: t = .7, proximity: r = 0, spread: i = 20
34
33
  let m = l > i - r && l < i + o + r && u > a - r && u < a + s + r;
35
34
  if (n.style.setProperty("--active", m ? "1" : "0"), !m) return;
36
35
  let h = parseFloat(n.style.getPropertyValue("--start")) || 0, g = h + ((180 * Math.atan2(u - p[1], l - p[0]) / Math.PI + 90 - h + 180) % 360 - 180);
37
- R(h, g, {
36
+ V(h, g, {
38
37
  duration: c,
39
38
  ease: [
40
39
  .16,
@@ -52,13 +51,13 @@ var Z = k(({ blur: e = 0, inactiveZone: t = .7, proximity: r = 0, spread: i = 20
52
51
  r,
53
52
  c
54
53
  ]);
55
- return j(() => {
54
+ return P(() => {
56
55
  if (u) return;
57
56
  let e = () => m(), t = (e) => m(e);
58
57
  return window.addEventListener("scroll", e, { passive: !0 }), document.body.addEventListener("pointermove", t, { passive: !0 }), () => {
59
58
  p.current && cancelAnimationFrame(p.current), window.removeEventListener("scroll", e), document.body.removeEventListener("pointermove", t);
60
59
  };
61
- }, [m, u]), /* @__PURE__ */ L(F, { children: [/* @__PURE__ */ I("div", { className: n("pointer-events-none absolute -inset-px hidden rounded-[inherit] border opacity-0 transition-opacity", o && "opacity-100", a === "white" && "border-white", u && "!block") }), /* @__PURE__ */ I("div", {
60
+ }, [m, u]), /* @__PURE__ */ B(R, { children: [/* @__PURE__ */ z("div", { className: n("pointer-events-none absolute -inset-px hidden rounded-[inherit] border opacity-0 transition-opacity", o && "opacity-100", a === "white" && "border-white", u && "!block") }), /* @__PURE__ */ z("div", {
62
61
  ref: d,
63
62
  style: {
64
63
  "--blur": `${e}px`,
@@ -70,12 +69,12 @@ var Z = k(({ blur: e = 0, inactiveZone: t = .7, proximity: r = 0, spread: i = 20
70
69
  "--gradient": a === "white" ? "repeating-conic-gradient(\n from 236.84deg at 50% 50%,\n var(--black),\n var(--black) calc(25% / var(--repeating-conic-gradient-times))\n )" : "radial-gradient(circle, #dd7bbb 10%, #dd7bbb00 20%),\n radial-gradient(circle at 40% 40%, #d79f1e 5%, #d79f1e00 15%),\n radial-gradient(circle at 60% 60%, #5a922c 10%, #5a922c00 20%),\n radial-gradient(circle at 40% 60%, #4c7894 10%, #4c789400 20%),\n repeating-conic-gradient(\n from 236.84deg at 50% 50%,\n #dd7bbb 0%,\n #d79f1e calc(25% / var(--repeating-conic-gradient-times)),\n #5a922c calc(50% / var(--repeating-conic-gradient-times)),\n #4c7894 calc(75% / var(--repeating-conic-gradient-times)),\n #dd7bbb calc(100% / var(--repeating-conic-gradient-times))\n )"
71
70
  },
72
71
  className: n("pointer-events-none absolute inset-0 rounded-[inherit] opacity-100 transition-opacity", o && "opacity-100", e > 0 && "blur-[var(--blur)] ", s, u && "!hidden"),
73
- children: /* @__PURE__ */ I("div", { className: n("glow", "rounded-[inherit]", "after:content-[\"\"] after:rounded-[inherit] after:absolute after:inset-[calc(-1*var(--glowingeffect-border-width))]", "after:[border:var(--glowingeffect-border-width)_solid_transparent]", "after:[background:var(--gradient)] after:[background-attachment:fixed]", "after:opacity-[var(--active)] after:transition-opacity after:duration-300", "after:[mask-clip:padding-box,border-box]", "after:[mask-composite:intersect]", "after:[mask-image:linear-gradient(#0000,#0000),conic-gradient(from_calc((var(--start)-var(--spread))*1deg),#00000000_0deg,#fff,#00000000_calc(var(--spread)*2deg))]") })
72
+ children: /* @__PURE__ */ z("div", { className: n("glow", "rounded-[inherit]", "after:content-[\"\"] after:rounded-[inherit] after:absolute after:inset-[calc(-1*var(--glowingeffect-border-width))]", "after:[border:var(--glowingeffect-border-width)_solid_transparent]", "after:[background:var(--gradient)] after:[background-attachment:fixed]", "after:opacity-[var(--active)] after:transition-opacity after:duration-300", "after:[mask-clip:padding-box,border-box]", "after:[mask-composite:intersect]", "after:[mask-image:linear-gradient(#0000,#0000),conic-gradient(from_calc((var(--start)-var(--spread))*1deg),#00000000_0deg,#fff,#00000000_calc(var(--spread)*2deg))]") })
74
73
  })] });
75
74
  });
76
- Z.displayName = "GlowingEffect";
75
+ X.displayName = "GlowingEffect";
77
76
  // src/lib/videoPlayback.ts
78
- function xe(e) {
77
+ function we(e) {
79
78
  try {
80
79
  let t = new URL(e);
81
80
  return t.protocol === "https:" || t.protocol === "http:";
@@ -83,8 +82,8 @@ function xe(e) {
83
82
  return !1;
84
83
  }
85
84
  }
86
- function Se(e) {
87
- return e.iframe_src && xe(e.iframe_src) ? {
85
+ function Te(e) {
86
+ return e.iframe_src && we(e.iframe_src) ? {
88
87
  type: "inline",
89
88
  src: e.iframe_src
90
89
  } : {
@@ -93,7 +92,7 @@ function Se(e) {
93
92
  };
94
93
  }
95
94
  // src/lib/searchResultToDocument.ts
96
- function Ce(e) {
95
+ function Ee(e) {
97
96
  return {
98
97
  pageContent: e.snippet || e.content || "",
99
98
  metadata: {
@@ -107,16 +106,16 @@ function Ce(e) {
107
106
  };
108
107
  }
109
108
  // src/components/SearchResults/MessageSources.tsx
110
- var we = h.filter((e) => [
109
+ var De = D.filter((e) => [
111
110
  "general",
112
111
  "news",
113
112
  "videos",
114
113
  "images",
115
114
  "science",
116
115
  "files"
117
- ].includes(e.code)), Te = ({ sources: r, query: i }) => {
118
- let [s, c] = P("general"), [l, u] = P(r), [d, f] = P(!1), [p, m] = P(!1), [h, g] = P(1), [_, v] = P(!0), [y, b] = P(!1), [x, S] = P(!1), [C, w] = P(null), T = N(null), E = N(!1), D = N(!1), { openPanel: O, isOpen: k } = o();
119
- j(() => {
116
+ ].includes(e.code)), Oe = ({ sources: r, query: i }) => {
117
+ let [s, c] = L("general"), [l, u] = L(r), [d, f] = L(!1), [p, m] = L(!1), [h, g] = L(1), [_, v] = L(!0), [y, b] = L(!1), [x, S] = L(!1), [C, w] = L(null), T = I(null), E = I(!1), D = I(!1), { openPanel: O, isOpen: k } = o();
118
+ P(() => {
120
119
  let e = () => {
121
120
  S(localStorage.getItem("searchResultGlow") === "true");
122
121
  };
@@ -124,60 +123,60 @@ var we = h.filter((e) => [
124
123
  window.removeEventListener("client-config-changed", e), window.removeEventListener("storage", e);
125
124
  };
126
125
  }, []);
127
- let [M, R] = P({});
128
- j(() => {
126
+ let [A, j] = L({});
127
+ P(() => {
129
128
  let e = () => {
130
129
  b(window.innerWidth >= 1024);
131
130
  };
132
131
  return e(), window.addEventListener("resize", e), () => window.removeEventListener("resize", e);
133
- }, []), j(() => {
134
- u(r), c("general"), g(1), v(!0), R({}), z(r);
132
+ }, []), P(() => {
133
+ u(r), c("general"), g(1), v(!0), j({}), M(r);
135
134
  }, [r]);
136
- let z = A(async (e) => {
135
+ let M = N(async (e) => {
137
136
  let t = e.filter((e) => e.metadata.url && e.metadata.url !== "File" && !e.metadata.iframe_src);
138
137
  for (let e of t) try {
139
- let { data: t } = await ge({ query: { url: e.metadata.url } });
140
- t?.cached && t?.article?.html && R((t) => ({
138
+ let { data: t } = await ye({ query: { url: e.metadata.url } });
139
+ t?.cached && t?.article?.html && j((t) => ({
141
140
  ...t,
142
141
  [e.metadata.url]: "loaded"
143
142
  }));
144
143
  } catch {}
145
144
  }, []);
146
- j(() => {
145
+ P(() => {
147
146
  if (typeof window < "u") {
148
147
  let e = new URLSearchParams(window.location.search).get("extract");
149
148
  e && (O(decodeURIComponent(e), ""), D.current = !1);
150
149
  }
151
- }, [O]), j(() => {
150
+ }, [O]), P(() => {
152
151
  D.current = !1;
153
- }, [r]), j(() => {
152
+ }, [r]), P(() => {
154
153
  E.current && !k && (D.current = !0), E.current = k;
155
- }, [k]), j(() => {
154
+ }, [k]), P(() => {
156
155
  if (y && l && l.length > 0 && !k && !D.current) {
157
156
  let e = l[0];
158
157
  e?.metadata?.url && O(e.metadata.url, "");
159
158
  }
160
159
  }, [l, y]);
161
- let B = async (e, t) => {
162
- e.preventDefault(), D.current = !1, R((e) => ({
160
+ let F = async (e, t) => {
161
+ e.preventDefault(), D.current = !1, j((e) => ({
163
162
  ...e,
164
163
  [t]: "loading"
165
164
  })), O(t, "");
166
165
  try {
167
- await ge({ query: { url: t } }), R((e) => ({
166
+ await ye({ query: { url: t } }), j((e) => ({
168
167
  ...e,
169
168
  [t]: "loaded"
170
169
  }));
171
170
  } catch {
172
- R((e) => ({
171
+ j((e) => ({
173
172
  ...e,
174
173
  [t]: "loaded"
175
174
  }));
176
175
  }
177
- }, V = A(async () => {
176
+ }, V = N(async () => {
178
177
  if (!i || p || !_) return;
179
178
  m(!0);
180
- let e = h + 1, { data: t } = await he({ query: {
179
+ let e = h + 1, { data: t } = await J({ query: {
181
180
  q: i,
182
181
  cat: s,
183
182
  page: e
@@ -193,7 +192,7 @@ var we = h.filter((e) => [
193
192
  } catch {
194
193
  console.error("[MessageSources] Invalid URL in search result:", e.url);
195
194
  }
196
- return Ce(e);
195
+ return Ee(e);
197
196
  });
198
197
  u((e) => [...e, ...r]), g(e), m(!1);
199
198
  }, [
@@ -206,7 +205,7 @@ var we = h.filter((e) => [
206
205
  if (e !== s && i) {
207
206
  c(e), f(!0), g(1), v(!0);
208
207
  try {
209
- let { data: t } = await he({ query: {
208
+ let { data: t } = await J({ query: {
210
209
  q: i,
211
210
  cat: e,
212
211
  page: 1
@@ -217,7 +216,7 @@ var we = h.filter((e) => [
217
216
  } catch {
218
217
  console.error("[MessageSources] Invalid URL in category search result:", e.url);
219
218
  }
220
- return Ce(e);
219
+ return Ee(e);
221
220
  });
222
221
  u(n);
223
222
  } catch (e) {
@@ -227,7 +226,7 @@ var we = h.filter((e) => [
227
226
  }
228
227
  }
229
228
  };
230
- j(() => {
229
+ P(() => {
231
230
  let e = T.current;
232
231
  if (!e) return;
233
232
  let t = () => {
@@ -236,25 +235,25 @@ var we = h.filter((e) => [
236
235
  };
237
236
  return e.addEventListener("scroll", t), () => e.removeEventListener("scroll", t);
238
237
  }, [V]);
239
- let U = (e, t) => {
238
+ let ee = (e, t) => {
240
239
  let n = s === "images", r = s === "videos", i = e.metadata.img_src || e.metadata.thumbnail;
241
- if (n && i) return /* @__PURE__ */ I("div", {
240
+ if (n && i) return /* @__PURE__ */ z("div", {
242
241
  className: "relative rounded-lg group",
243
- children: /* @__PURE__ */ L("a", {
242
+ children: /* @__PURE__ */ B("a", {
244
243
  className: "relative block overflow-hidden rounded-lg cursor-pointer",
245
244
  href: e.metadata.url,
246
- onClick: (t) => B(t, e.metadata.url),
247
- children: [/* @__PURE__ */ I("img", {
245
+ onClick: (t) => F(t, e.metadata.url),
246
+ children: [/* @__PURE__ */ z("img", {
248
247
  src: i,
249
248
  alt: e.metadata.title,
250
249
  className: "w-full h-auto object-cover rounded-lg hover:scale-105 transition-transform duration-200",
251
250
  loading: "lazy"
252
- }), /* @__PURE__ */ L("div", {
251
+ }), /* @__PURE__ */ B("div", {
253
252
  className: "absolute inset-x-0 bottom-0 bg-gradient-to-t from-black/70 to-transparent p-2 opacity-0 group-hover:opacity-100 transition-opacity duration-200",
254
- children: [/* @__PURE__ */ I("p", {
253
+ children: [/* @__PURE__ */ z("p", {
255
254
  className: "text-xs text-white line-clamp-2",
256
255
  children: Y(e.metadata.title)
257
- }), /* @__PURE__ */ I("p", {
256
+ }), /* @__PURE__ */ z("p", {
258
257
  className: "text-[10px] text-white/70 truncate mt-0.5",
259
258
  children: e.metadata.source
260
259
  })]
@@ -262,36 +261,36 @@ var we = h.filter((e) => [
262
261
  })
263
262
  }, t);
264
263
  if (r && i) {
265
- let n = Se(e.metadata), r = /* @__PURE__ */ L("div", {
264
+ let n = Te(e.metadata), r = /* @__PURE__ */ B("div", {
266
265
  className: "relative",
267
- children: [/* @__PURE__ */ I("img", {
266
+ children: [/* @__PURE__ */ z("img", {
268
267
  src: i,
269
268
  alt: e.metadata.title,
270
269
  className: "w-full h-24 object-cover"
271
- }), /* @__PURE__ */ I("div", {
270
+ }), /* @__PURE__ */ z("div", {
272
271
  className: "absolute inset-0 flex items-center justify-center",
273
- children: /* @__PURE__ */ I("div", {
272
+ children: /* @__PURE__ */ z("div", {
274
273
  className: "w-10 h-10 bg-black/60 rounded-full flex items-center justify-center",
275
- children: /* @__PURE__ */ I(pe, {
274
+ children: /* @__PURE__ */ z(_e, {
276
275
  size: 18,
277
276
  className: "text-white ml-0.5"
278
277
  })
279
278
  })
280
279
  })]
281
- }), a = /* @__PURE__ */ I("p", {
280
+ }), a = /* @__PURE__ */ z("p", {
282
281
  className: "text-xs line-clamp-2 p-2 text-muted-foreground",
283
282
  children: Y(e.metadata.title)
284
283
  });
285
- return /* @__PURE__ */ L("div", {
284
+ return /* @__PURE__ */ B("div", {
286
285
  className: "relative rounded-xl",
287
- children: [/* @__PURE__ */ I(Z, {
286
+ children: [/* @__PURE__ */ z(X, {
288
287
  spread: 40,
289
288
  glow: !0,
290
289
  disabled: !x,
291
290
  proximity: 64,
292
291
  inactiveZone: .01,
293
292
  borderWidth: 2
294
- }), n.type === "inline" ? /* @__PURE__ */ L("button", {
293
+ }), n.type === "inline" ? /* @__PURE__ */ B("button", {
295
294
  type: "button",
296
295
  className: "relative w-full text-left bg-card text-card-foreground border border-border rounded-xl overflow-hidden flex flex-col cursor-pointer shadow-sm hover:shadow-md transition-all duration-200",
297
296
  onClick: () => w({
@@ -299,7 +298,7 @@ var we = h.filter((e) => [
299
298
  title: e.metadata.title
300
299
  }),
301
300
  children: [r, a]
302
- }) : /* @__PURE__ */ L("a", {
301
+ }) : /* @__PURE__ */ B("a", {
303
302
  className: "relative bg-card text-card-foreground border border-border rounded-xl overflow-hidden flex flex-col cursor-pointer shadow-sm hover:shadow-md transition-all duration-200",
304
303
  href: n.url,
305
304
  target: "_blank",
@@ -308,54 +307,54 @@ var we = h.filter((e) => [
308
307
  })]
309
308
  }, t);
310
309
  }
311
- let a = M[e.metadata.url];
312
- return /* @__PURE__ */ L("div", {
310
+ let a = A[e.metadata.url];
311
+ return /* @__PURE__ */ B("div", {
313
312
  className: "relative rounded-xl group h-full",
314
- children: [/* @__PURE__ */ I(Z, {
313
+ children: [/* @__PURE__ */ z(X, {
315
314
  spread: 40,
316
315
  glow: !0,
317
316
  disabled: !x,
318
317
  proximity: 64,
319
318
  inactiveZone: .01,
320
319
  borderWidth: 2
321
- }), /* @__PURE__ */ L("div", {
320
+ }), /* @__PURE__ */ B("div", {
322
321
  className: "relative bg-card text-card-foreground border border-border rounded-xl p-2.5 flex flex-col font-medium cursor-pointer shadow-sm hover:shadow-md transition-all duration-200 h-full",
323
- onClick: (t) => B(t, e.metadata.url),
322
+ onClick: (t) => F(t, e.metadata.url),
324
323
  children: [
325
- a && /* @__PURE__ */ I("div", {
324
+ a && /* @__PURE__ */ z("div", {
326
325
  className: "absolute top-1.5 left-1.5 p-1 rounded-md bg-background/80 backdrop-blur-sm z-[5]",
327
- children: a === "loading" ? /* @__PURE__ */ I(q, {
326
+ children: a === "loading" ? /* @__PURE__ */ z(K, {
328
327
  size: 14,
329
328
  className: "text-primary animate-spin"
330
- }) : /* @__PURE__ */ I(K, {
329
+ }) : /* @__PURE__ */ z(G, {
331
330
  size: 14,
332
331
  className: "text-green-500"
333
332
  })
334
333
  }),
335
- /* @__PURE__ */ I("a", {
334
+ /* @__PURE__ */ z("a", {
336
335
  href: e.metadata.url,
337
336
  target: "_blank",
338
337
  rel: "noopener noreferrer",
339
338
  onClick: (e) => e.stopPropagation(),
340
339
  className: "absolute top-1.5 right-1.5 p-1 rounded-md bg-secondary/50 opacity-0 group-hover:opacity-100 transition-opacity hover:bg-secondary z-10",
341
340
  title: "Open in new tab",
342
- children: /* @__PURE__ */ I(G, {
341
+ children: /* @__PURE__ */ z(W, {
343
342
  size: 12,
344
343
  className: "text-muted-foreground"
345
344
  })
346
345
  }),
347
- /* @__PURE__ */ L("p", {
346
+ /* @__PURE__ */ B("p", {
348
347
  className: "text-xs line-clamp-4 text-muted-foreground",
349
348
  children: [
350
- /* @__PURE__ */ L("span", {
349
+ /* @__PURE__ */ B("span", {
351
350
  className: "inline-flex items-center gap-1 font-semibold text-foreground/70 align-middle",
352
- children: [e.metadata.url === "File" ? /* @__PURE__ */ I("span", {
351
+ children: [e.metadata.url === "File" ? /* @__PURE__ */ z("span", {
353
352
  className: "inline-flex items-center justify-center w-3.5 h-3.5 rounded-full bg-secondary flex-shrink-0",
354
- children: /* @__PURE__ */ I(re, {
353
+ children: /* @__PURE__ */ z(se, {
355
354
  size: 10,
356
355
  className: "text-muted-foreground"
357
356
  })
358
- }) : /* @__PURE__ */ I("img", {
357
+ }) : /* @__PURE__ */ z("img", {
359
358
  src: `https://s2.googleusercontent.com/s2/favicons?domain_url=${e.metadata.url}`,
360
359
  width: 20,
361
360
  height: 20,
@@ -364,7 +363,7 @@ var we = h.filter((e) => [
364
363
  }), e.metadata.source]
365
364
  }),
366
365
  " ",
367
- /* @__PURE__ */ I("span", {
366
+ /* @__PURE__ */ z("span", {
368
367
  className: "align-middle",
369
368
  children: Y(e.metadata.title)
370
369
  })
@@ -374,49 +373,49 @@ var we = h.filter((e) => [
374
373
  })]
375
374
  }, t);
376
375
  };
377
- return /* @__PURE__ */ L(F, { children: [
378
- i && /* @__PURE__ */ I("div", {
376
+ return /* @__PURE__ */ B(R, { children: [
377
+ i && /* @__PURE__ */ z("div", {
379
378
  className: "flex items-center gap-1 mb-3 overflow-x-auto pb-1",
380
- children: we.map((e) => /* @__PURE__ */ L("button", {
379
+ children: De.map((e) => /* @__PURE__ */ B("button", {
381
380
  onClick: () => H(e.code),
382
381
  disabled: d,
383
382
  className: n("flex items-center gap-1.5 px-3 py-1.5 rounded-lg text-sm font-medium transition-all duration-200 whitespace-nowrap", s === e.code ? "bg-primary text-primary-foreground" : "bg-secondary/50 text-muted-foreground hover:bg-secondary hover:text-foreground"),
384
- children: [/* @__PURE__ */ I(e.icon, { className: "w-4 h-4 flex-shrink-0" }), /* @__PURE__ */ I("span", { children: e.name })]
383
+ children: [/* @__PURE__ */ z(e.icon, { className: "w-4 h-4 flex-shrink-0" }), /* @__PURE__ */ z("span", { children: e.name })]
385
384
  }, e.code))
386
385
  }),
387
- /* @__PURE__ */ I("div", {
386
+ /* @__PURE__ */ z("div", {
388
387
  ref: T,
389
388
  className: n("overflow-y-auto pb-2 pr-1", s === "images" ? "max-h-[400px] lg:max-h-[500px]" : "max-h-[180px] lg:max-h-[280px]"),
390
- children: d ? /* @__PURE__ */ I("div", {
389
+ children: d ? /* @__PURE__ */ z("div", {
391
390
  className: "flex items-center justify-center py-8",
392
- children: /* @__PURE__ */ I(q, { className: "w-6 h-6 animate-spin text-muted-foreground" })
393
- }) : l.length > 0 ? /* @__PURE__ */ L(F, { children: [
394
- /* @__PURE__ */ I("div", {
391
+ children: /* @__PURE__ */ z(K, { className: "w-6 h-6 animate-spin text-muted-foreground" })
392
+ }) : l.length > 0 ? /* @__PURE__ */ B(R, { children: [
393
+ /* @__PURE__ */ z("div", {
395
394
  className: n(s === "images" ? "columns-2 sm:columns-3 lg:columns-4 gap-2 [&>div]:mb-2 [&>div]:break-inside-avoid" : n("grid gap-3 auto-rows-fr", k && y ? "grid-cols-2" : "grid-cols-3")),
396
- children: l.map((e, t) => U(e, t))
395
+ children: l.map((e, t) => ee(e, t))
397
396
  }),
398
- p && /* @__PURE__ */ I("div", {
397
+ p && /* @__PURE__ */ z("div", {
399
398
  className: "flex items-center justify-center py-4",
400
- children: /* @__PURE__ */ I(q, { className: "w-5 h-5 animate-spin text-muted-foreground" })
399
+ children: /* @__PURE__ */ z(K, { className: "w-5 h-5 animate-spin text-muted-foreground" })
401
400
  }),
402
- !_ && l.length > 0 && /* @__PURE__ */ I("div", {
401
+ !_ && l.length > 0 && /* @__PURE__ */ z("div", {
403
402
  className: "flex items-center justify-center py-4 text-muted-foreground text-xs",
404
403
  children: "No more results"
405
404
  })
406
- ] }) : /* @__PURE__ */ I("div", {
405
+ ] }) : /* @__PURE__ */ z("div", {
407
406
  className: "flex items-center justify-center py-8 text-muted-foreground text-sm",
408
407
  children: "No results found"
409
408
  })
410
409
  }),
411
- /* @__PURE__ */ I(a, {
410
+ /* @__PURE__ */ z(a, {
412
411
  open: C !== null,
413
412
  onOpenChange: (e) => !e && w(null),
414
- children: /* @__PURE__ */ L(t, {
413
+ children: /* @__PURE__ */ B(t, {
415
414
  className: "max-w-3xl p-0 overflow-hidden gap-0",
416
- children: [/* @__PURE__ */ I(e, {
415
+ children: [/* @__PURE__ */ z(e, {
417
416
  className: "sr-only",
418
417
  children: C?.title || "Video player"
419
- }), C && /* @__PURE__ */ I("iframe", {
418
+ }), C && /* @__PURE__ */ z("iframe", {
420
419
  src: C.src,
421
420
  title: C.title || "Video player",
422
421
  className: "w-full aspect-video",
@@ -426,7 +425,7 @@ var we = h.filter((e) => [
426
425
  })
427
426
  })
428
427
  ] });
429
- }, Ee = {
428
+ }, ke = {
430
429
  extract: "Extract",
431
430
  arxiv: "ArXiv",
432
431
  "google scholar": "Scholar",
@@ -435,22 +434,22 @@ var we = h.filter((e) => [
435
434
  youtube: "YouTube",
436
435
  Web: "Web"
437
436
  };
438
- function De(e) {
439
- return e ? Ee[e] ?? e : "Web";
437
+ function Ae(e) {
438
+ return e ? ke[e] ?? e : "Web";
440
439
  }
441
- function Oe({ queries: e, loading: t }) {
440
+ function je({ queries: e, loading: t }) {
442
441
  let r = e.filter((e) => e.status === "done").length, i = e.length, a = t && e.some((e) => e.status === "running");
443
- return t ? /* @__PURE__ */ L("div", {
442
+ return t ? /* @__PURE__ */ B("div", {
444
443
  className: "rounded-xl border border-border bg-secondary/20 overflow-hidden text-sm",
445
- children: [/* @__PURE__ */ L("div", {
444
+ children: [/* @__PURE__ */ B("div", {
446
445
  className: "flex items-center justify-between px-3 py-2 border-b border-border/50",
447
- children: [/* @__PURE__ */ L("div", {
446
+ children: [/* @__PURE__ */ B("div", {
448
447
  className: "flex items-center gap-2 text-muted-foreground",
449
- children: [a ? /* @__PURE__ */ I(q, { className: "w-3.5 h-3.5 animate-spin" }) : /* @__PURE__ */ I(J, { className: "w-3.5 h-3.5" }), /* @__PURE__ */ I("span", {
448
+ children: [a ? /* @__PURE__ */ z(K, { className: "w-3.5 h-3.5 animate-spin" }) : /* @__PURE__ */ z(q, { className: "w-3.5 h-3.5" }), /* @__PURE__ */ z("span", {
450
449
  className: "font-medium text-foreground",
451
450
  children: a ? "Running analysis…" : "Analysis complete"
452
451
  })]
453
- }), i > 0 && /* @__PURE__ */ L("span", {
452
+ }), i > 0 && /* @__PURE__ */ B("span", {
454
453
  className: "text-xs text-muted-foreground tabular-nums",
455
454
  children: [
456
455
  r,
@@ -459,16 +458,16 @@ function Oe({ queries: e, loading: t }) {
459
458
  " searches"
460
459
  ]
461
460
  })]
462
- }), e.length > 0 && /* @__PURE__ */ I("div", {
461
+ }), e.length > 0 && /* @__PURE__ */ z("div", {
463
462
  className: "divide-y divide-border/40",
464
- children: e.map((e, t) => /* @__PURE__ */ L("div", {
463
+ children: e.map((e, t) => /* @__PURE__ */ B("div", {
465
464
  className: "flex items-center gap-2.5 px-3 py-2",
466
- children: [e.status === "running" ? /* @__PURE__ */ I(q, { className: "w-3.5 h-3.5 text-muted-foreground animate-spin flex-shrink-0" }) : /* @__PURE__ */ I(J, { className: n("w-3.5 h-3.5 flex-shrink-0", e.status === "done" ? "text-muted-foreground" : "text-muted-foreground/40") }), /* @__PURE__ */ L("div", {
465
+ children: [e.status === "running" ? /* @__PURE__ */ z(K, { className: "w-3.5 h-3.5 text-muted-foreground animate-spin flex-shrink-0" }) : /* @__PURE__ */ z(q, { className: n("w-3.5 h-3.5 flex-shrink-0", e.status === "done" ? "text-muted-foreground" : "text-muted-foreground/40") }), /* @__PURE__ */ B("div", {
467
466
  className: "flex items-baseline gap-1.5 min-w-0 flex-1",
468
- children: [/* @__PURE__ */ L("span", {
467
+ children: [/* @__PURE__ */ B("span", {
469
468
  className: "text-xs text-muted-foreground whitespace-nowrap flex-shrink-0",
470
- children: [De(e.category), " ·"]
471
- }), /* @__PURE__ */ I("span", {
469
+ children: [Ae(e.category), " ·"]
470
+ }), /* @__PURE__ */ z("span", {
472
471
  className: "text-foreground/80 truncate",
473
472
  children: e.query
474
473
  })]
@@ -478,17 +477,17 @@ function Oe({ queries: e, loading: t }) {
478
477
  }) : null;
479
478
  }
480
479
  // src/components/SearchResults/WebCitationBadge.tsx
481
- var ke = ({ href: e, children: t, sources: n }) => {
482
- let { openPanel: r } = o(), i = M(() => !n || !e ? null : n.find((t) => t.metadata?.url === e) ?? null, [n, e]), a = M(() => {
480
+ var Me = ({ href: e, children: t, sources: n }) => {
481
+ let { openPanel: r } = o(), i = F(() => !n || !e ? null : n.find((t) => t.metadata?.url === e) ?? null, [n, e]), a = F(() => {
483
482
  try {
484
483
  return new URL(e).hostname.replace("www.", "");
485
484
  } catch {
486
485
  return i?.metadata?.source || "";
487
486
  }
488
487
  }, [e, i]), s = i?.metadata?.title || "", d = `https://s2.googleusercontent.com/s2/favicons?domain_url=${e}`;
489
- return /* @__PURE__ */ L(u, { children: [/* @__PURE__ */ I(l, {
488
+ return /* @__PURE__ */ B(u, { children: [/* @__PURE__ */ z(l, {
490
489
  asChild: !0,
491
- children: /* @__PURE__ */ I("a", {
490
+ children: /* @__PURE__ */ z("a", {
492
491
  href: e,
493
492
  onClick: (t) => {
494
493
  t.preventDefault(), r(e, "");
@@ -496,60 +495,60 @@ var ke = ({ href: e, children: t, sources: n }) => {
496
495
  className: "bg-light-secondary dark:bg-dark-secondary px-1 rounded ml-1 no-underline text-xs text-black/70 dark:text-white/70 relative cursor-pointer hover:bg-black/10 dark:hover:bg-white/20 transition-colors",
497
496
  children: t
498
497
  })
499
- }), /* @__PURE__ */ I(c, {
498
+ }), /* @__PURE__ */ z(c, {
500
499
  side: "top",
501
500
  className: "max-w-72 p-2.5",
502
- children: /* @__PURE__ */ L("div", {
501
+ children: /* @__PURE__ */ B("div", {
503
502
  className: "flex items-start gap-2",
504
- children: [/* @__PURE__ */ I("img", {
503
+ children: [/* @__PURE__ */ z("img", {
505
504
  src: d,
506
505
  alt: "",
507
506
  width: 16,
508
507
  height: 16,
509
508
  className: "rounded flex-shrink-0 mt-0.5"
510
- }), /* @__PURE__ */ L("div", {
509
+ }), /* @__PURE__ */ B("div", {
511
510
  className: "min-w-0",
512
- children: [/* @__PURE__ */ I("p", {
511
+ children: [/* @__PURE__ */ z("p", {
513
512
  className: "text-xs font-medium leading-snug line-clamp-2",
514
513
  children: s || a
515
- }), s && /* @__PURE__ */ I("p", {
514
+ }), s && /* @__PURE__ */ z("p", {
516
515
  className: "text-[10px] opacity-70 truncate mt-0.5",
517
516
  children: a
518
517
  })]
519
518
  })]
520
519
  })
521
520
  })] });
522
- }, Ae = ({ content: e, thinkingEnded: t }) => {
523
- let [n, r] = P(!0);
524
- return j(() => {
521
+ }, Ne = ({ content: e, thinkingEnded: t }) => {
522
+ let [n, r] = L(!0);
523
+ return P(() => {
525
524
  r(!t);
526
- }, [t]), /* @__PURE__ */ L("div", {
525
+ }, [t]), /* @__PURE__ */ B("div", {
527
526
  className: "my-4 bg-secondary/50 rounded-xl border border-border overflow-hidden",
528
- children: [/* @__PURE__ */ L("button", {
527
+ children: [/* @__PURE__ */ B("button", {
529
528
  onClick: () => r(!n),
530
529
  className: "w-full flex items-center justify-between px-4 py-1 text-foreground/90 hover:bg-secondary transition duration-200",
531
- children: [/* @__PURE__ */ L("div", {
530
+ children: [/* @__PURE__ */ B("div", {
532
531
  className: "flex items-center space-x-2",
533
- children: [/* @__PURE__ */ I(B, {
532
+ children: [/* @__PURE__ */ z(ee, {
534
533
  size: 20,
535
534
  className: "text-accent-foreground"
536
- }), /* @__PURE__ */ I("p", {
535
+ }), /* @__PURE__ */ z("p", {
537
536
  className: "font-medium text-sm",
538
537
  children: "Thinking Process"
539
538
  })]
540
- }), I(n ? ee : H, {
539
+ }), z(n ? ie : ne, {
541
540
  size: 18,
542
541
  className: "text-muted-foreground"
543
542
  })]
544
- }), n && /* @__PURE__ */ I("div", {
543
+ }), n && /* @__PURE__ */ z("div", {
545
544
  className: "px-4 py-3 text-foreground/80 text-sm border-t border-border bg-muted/50 whitespace-pre-wrap",
546
545
  children: e
547
546
  })]
548
547
  });
549
- }, je = ({ children: e, thinkingEnded: t }) => /* @__PURE__ */ I(Ae, {
548
+ }, Pe = ({ children: e, thinkingEnded: t }) => /* @__PURE__ */ z(Ne, {
550
549
  content: e,
551
550
  thinkingEnded: t
552
- }), Me = [
551
+ }), Fe = [
553
552
  "png",
554
553
  "jpg",
555
554
  "jpeg",
@@ -558,67 +557,67 @@ var ke = ({ href: e, children: t, sources: n }) => {
558
557
  "svg",
559
558
  "bmp",
560
559
  "avif"
561
- ], Ne = (e) => {
560
+ ], Ie = (e) => {
562
561
  let t = (e || "").toLowerCase();
563
- return Me.includes(t) ? /* @__PURE__ */ I(se, { size: 15 }) : I(t === "url" ? ce : K, { size: 15 });
564
- }, Pe = ({ file: n }) => {
565
- let { deleteAttachedFile: i } = d(), [o, s] = P(!1), [c, l] = P(!1);
566
- return /* @__PURE__ */ L(F, { children: [/* @__PURE__ */ L("div", {
562
+ return Fe.includes(t) ? /* @__PURE__ */ z(de, { size: 15 }) : z(t === "url" ? fe : G, { size: 15 });
563
+ }, Le = ({ file: n }) => {
564
+ let { deleteAttachedFile: i } = d(), [o, s] = L(!1), [c, l] = L(!1);
565
+ return /* @__PURE__ */ B(R, { children: [/* @__PURE__ */ B("div", {
567
566
  className: "group inline-flex max-w-full items-center gap-2 rounded-lg border border-border bg-secondary/40 py-1.5 pl-2.5 pr-1.5 text-sm",
568
567
  children: [
569
- /* @__PURE__ */ I("span", {
568
+ /* @__PURE__ */ z("span", {
570
569
  className: "text-muted-foreground",
571
- children: Ne(n.fileExtension)
570
+ children: Ie(n.fileExtension)
572
571
  }),
573
- /* @__PURE__ */ I("span", {
572
+ /* @__PURE__ */ z("span", {
574
573
  className: "min-w-0 truncate font-medium text-foreground",
575
574
  title: n.fileName,
576
575
  children: n.fileName
577
576
  }),
578
- n.fileExtension && n.fileExtension !== "url" && /* @__PURE__ */ I("span", {
577
+ n.fileExtension && n.fileExtension !== "url" && /* @__PURE__ */ z("span", {
579
578
  className: "hidden shrink-0 text-[10px] font-semibold uppercase tracking-wider text-muted-foreground sm:inline",
580
579
  children: n.fileExtension
581
580
  }),
582
- /* @__PURE__ */ I("button", {
581
+ /* @__PURE__ */ z("button", {
583
582
  type: "button",
584
583
  "aria-label": `Delete ${n.fileName}`,
585
584
  onClick: () => s(!0),
586
585
  className: "shrink-0 rounded-md p-1 text-muted-foreground transition-colors hover:bg-red-500/10 hover:text-red-500",
587
- children: /* @__PURE__ */ I(fe, { size: 14 })
586
+ children: /* @__PURE__ */ z(ge, { size: 14 })
588
587
  })
589
588
  ]
590
- }), /* @__PURE__ */ I(a, {
589
+ }), /* @__PURE__ */ z(a, {
591
590
  open: o,
592
591
  onOpenChange: (e) => {
593
592
  c || s(e);
594
593
  },
595
- children: /* @__PURE__ */ L(t, {
594
+ children: /* @__PURE__ */ B(t, {
596
595
  className: "w-full max-w-md rounded-2xl",
597
596
  children: [
598
- /* @__PURE__ */ I(e, {
597
+ /* @__PURE__ */ z(e, {
599
598
  className: "text-lg font-medium leading-6",
600
599
  children: "Delete file"
601
600
  }),
602
- /* @__PURE__ */ L(r, {
601
+ /* @__PURE__ */ B(r, {
603
602
  className: "text-sm text-muted-foreground",
604
603
  children: [
605
604
  "Are you sure you want to delete",
606
605
  " ",
607
- /* @__PURE__ */ I("span", {
606
+ /* @__PURE__ */ z("span", {
608
607
  className: "font-medium text-foreground",
609
608
  children: n.fileName
610
609
  }),
611
610
  "? This removes it from the conversation and permanently deletes the upload."
612
611
  ]
613
612
  }),
614
- /* @__PURE__ */ L("div", {
613
+ /* @__PURE__ */ B("div", {
615
614
  className: "mt-6 flex flex-row items-center justify-end gap-4",
616
- children: [/* @__PURE__ */ I("button", {
615
+ children: [/* @__PURE__ */ z("button", {
617
616
  type: "button",
618
617
  onClick: () => !c && s(!1),
619
618
  className: "text-sm text-muted-foreground transition-colors hover:text-foreground",
620
619
  children: "Cancel"
621
- }), /* @__PURE__ */ L("button", {
620
+ }), /* @__PURE__ */ B("button", {
622
621
  type: "button",
623
622
  onClick: async () => {
624
623
  l(!0);
@@ -630,7 +629,7 @@ var ke = ({ href: e, children: t, sources: n }) => {
630
629
  },
631
630
  disabled: c,
632
631
  className: "inline-flex items-center gap-1.5 text-sm text-red-500 transition-colors hover:text-red-600 disabled:opacity-60",
633
- children: [c && /* @__PURE__ */ I(q, {
632
+ children: [c && /* @__PURE__ */ z(K, {
634
633
  size: 14,
635
634
  className: "animate-spin"
636
635
  }), "Delete"]
@@ -639,75 +638,75 @@ var ke = ({ href: e, children: t, sources: n }) => {
639
638
  ]
640
639
  })
641
640
  })] });
642
- }, Fe = ({ files: e }) => !e || e.length === 0 ? null : /* @__PURE__ */ I("div", {
641
+ }, Re = ({ files: e }) => !e || e.length === 0 ? null : /* @__PURE__ */ z("div", {
643
642
  className: "ml-10 mt-2 flex flex-wrap gap-2",
644
- children: e.map((e) => /* @__PURE__ */ I(Pe, { file: e }, e.fileId))
645
- }), Ie = ({ section: e, isExpanded: t, setIsExpanded: r, isEditing: a, setIsEditing: o, editText: s, setEditText: d, handleEditSubmit: f, copiedUserMsg: p, handleCopyUserMsg: m }) => {
646
- let h = N(null);
647
- return /* @__PURE__ */ L("div", {
643
+ children: e.map((e) => /* @__PURE__ */ z(Le, { file: e }, e.fileId))
644
+ }), ze = ({ section: e, isExpanded: t, setIsExpanded: r, isEditing: a, setIsEditing: o, editText: s, setEditText: d, handleEditSubmit: f, copiedUserMsg: p, handleCopyUserMsg: m }) => {
645
+ let h = I(null);
646
+ return /* @__PURE__ */ B("div", {
648
647
  className: "w-full pt-8 break-words",
649
648
  children: [
650
- /* @__PURE__ */ L("button", {
649
+ /* @__PURE__ */ B("button", {
651
650
  onClick: () => r(!t),
652
651
  className: "flex items-center gap-3 group text-left w-full",
653
- children: [/* @__PURE__ */ I("div", {
652
+ children: [/* @__PURE__ */ z("div", {
654
653
  className: "flex-shrink-0 p-1.5 rounded-lg bg-secondary/50 group-hover:bg-secondary transition-colors duration-200",
655
- children: I(t ? H : U, {
654
+ children: z(t ? ne : re, {
656
655
  size: 18,
657
656
  className: "text-muted-foreground group-hover:text-foreground transition-colors"
658
657
  })
659
- }), /* @__PURE__ */ I("h2", {
658
+ }), /* @__PURE__ */ z("h2", {
660
659
  className: "text-foreground font-medium text-lg lg:text-3xl lg:w-9/12 group-hover:text-foreground/80 transition-colors line-clamp-3 lg:line-clamp-none",
661
660
  children: e.userMessage.content
662
661
  })]
663
662
  }),
664
- /* @__PURE__ */ L("div", {
663
+ /* @__PURE__ */ B("div", {
665
664
  className: "flex items-center gap-0.5 mt-1 ml-10",
666
665
  children: [
667
666
  (() => {
668
667
  let t = i(e.userMessage.createdAt);
669
- return t ? /* @__PURE__ */ I("time", {
668
+ return t ? /* @__PURE__ */ z("time", {
670
669
  dateTime: new Date(e.userMessage.createdAt).toISOString(),
671
670
  className: "mr-1.5 text-xs text-muted-foreground tabular-nums select-none",
672
671
  children: t
673
672
  }) : null;
674
673
  })(),
675
- /* @__PURE__ */ L(u, { children: [/* @__PURE__ */ I(l, {
674
+ /* @__PURE__ */ B(u, { children: [/* @__PURE__ */ z(l, {
676
675
  asChild: !0,
677
- children: /* @__PURE__ */ I("button", {
676
+ children: /* @__PURE__ */ z("button", {
678
677
  onClick: m,
679
678
  className: "p-1.5 text-muted-foreground rounded-lg hover:bg-secondary transition-all duration-200 hover:text-foreground",
680
- children: /* @__PURE__ */ I("span", {
679
+ children: /* @__PURE__ */ z("span", {
681
680
  className: n("flex items-center transition-all duration-300", p ? "scale-110" : "scale-100"),
682
- children: p ? /* @__PURE__ */ I(V, {
681
+ children: p ? /* @__PURE__ */ z(te, {
683
682
  size: 14,
684
683
  className: "text-green-500"
685
- }) : /* @__PURE__ */ I(W, { size: 14 })
684
+ }) : /* @__PURE__ */ z(U, { size: 14 })
686
685
  })
687
686
  })
688
- }), /* @__PURE__ */ I(c, {
687
+ }), /* @__PURE__ */ z(c, {
689
688
  side: "bottom",
690
689
  children: p ? "Copied!" : "Copy prompt"
691
690
  })] }),
692
- /* @__PURE__ */ L(u, { children: [/* @__PURE__ */ I(l, {
691
+ /* @__PURE__ */ B(u, { children: [/* @__PURE__ */ z(l, {
693
692
  asChild: !0,
694
- children: /* @__PURE__ */ I("button", {
693
+ children: /* @__PURE__ */ z("button", {
695
694
  onClick: () => {
696
695
  d(e.userMessage.content), o(!0), setTimeout(() => h.current?.focus(), 50);
697
696
  },
698
697
  className: "p-1.5 text-muted-foreground rounded-lg hover:bg-secondary transition-all duration-200 hover:text-foreground",
699
- children: /* @__PURE__ */ I(le, { size: 14 })
698
+ children: /* @__PURE__ */ z(pe, { size: 14 })
700
699
  })
701
- }), /* @__PURE__ */ I(c, {
700
+ }), /* @__PURE__ */ z(c, {
702
701
  side: "bottom",
703
702
  children: "Edit & resubmit"
704
703
  })] })
705
704
  ]
706
705
  }),
707
- /* @__PURE__ */ I(Fe, { files: e.userMessage.files }),
708
- a && /* @__PURE__ */ L("div", {
706
+ /* @__PURE__ */ z(Re, { files: e.userMessage.files }),
707
+ a && /* @__PURE__ */ B("div", {
709
708
  className: "mt-3 ml-10 flex flex-col gap-2",
710
- children: [/* @__PURE__ */ I("textarea", {
709
+ children: [/* @__PURE__ */ z("textarea", {
711
710
  ref: h,
712
711
  value: s,
713
712
  onChange: (e) => d(e.target.value),
@@ -716,13 +715,13 @@ var ke = ({ href: e, children: t, sources: n }) => {
716
715
  },
717
716
  rows: 3,
718
717
  className: "w-full rounded-xl border border-border bg-background p-3 text-sm resize-none focus:outline-none focus:ring-2 focus:ring-primary/30 transition-colors"
719
- }), /* @__PURE__ */ L("div", {
718
+ }), /* @__PURE__ */ B("div", {
720
719
  className: "flex gap-2 justify-end",
721
- children: [/* @__PURE__ */ I("button", {
720
+ children: [/* @__PURE__ */ z("button", {
722
721
  onClick: () => o(!1),
723
722
  className: "px-3 py-1.5 text-sm text-muted-foreground rounded-lg hover:bg-secondary transition-colors duration-200",
724
723
  children: "Cancel"
725
- }), /* @__PURE__ */ I("button", {
724
+ }), /* @__PURE__ */ z("button", {
726
725
  onClick: f,
727
726
  disabled: !s.trim(),
728
727
  className: "px-3 py-1.5 text-sm bg-primary text-primary-foreground rounded-lg hover:bg-primary/90 disabled:opacity-50 disabled:cursor-not-allowed transition-colors duration-200",
@@ -732,56 +731,29 @@ var ke = ({ href: e, children: t, sources: n }) => {
732
731
  })
733
732
  ]
734
733
  });
735
- }, Le = ({ section: e, initialMessage: t }) => {
736
- let [n, r] = P(!1);
737
- return /* @__PURE__ */ L(u, { children: [/* @__PURE__ */ I(l, {
734
+ }, Be = ({ section: e, initialMessage: t }) => {
735
+ let [n, r] = L(!1);
736
+ return /* @__PURE__ */ B(u, { children: [/* @__PURE__ */ z(l, {
738
737
  asChild: !0,
739
- children: /* @__PURE__ */ I("button", {
738
+ children: /* @__PURE__ */ z("button", {
740
739
  onClick: () => {
741
740
  let n = `${t}${e?.sourceMessage?.sources && e.sourceMessage.sources.length > 0 && `\n\nCitations:\n${e.sourceMessage.sources?.map((e, t) => `[${t + 1}] ${e.metadata.url}`).join("\n")}`}`;
742
741
  navigator.clipboard.writeText(n), r(!0), setTimeout(() => r(!1), 1e3);
743
742
  },
744
743
  className: "p-2 text-muted-foreground rounded-full backdrop-blur-md bg-white/10 dark:bg-black/10 hover:bg-white/20 dark:hover:bg-black/20 transition duration-200 hover:text-foreground",
745
- children: I(n ? V : W, { size: 18 })
744
+ children: z(n ? te : U, { size: 18 })
746
745
  })
747
- }), /* @__PURE__ */ I(c, {
746
+ }), /* @__PURE__ */ z(c, {
748
747
  side: "bottom",
749
748
  children: n ? "Copied!" : "Copy"
750
749
  })] });
751
- };
752
- // src/ui/popover.tsx
753
- function Re({ ...e }) {
754
- return /* @__PURE__ */ I(X.Root, {
755
- "data-slot": "popover",
756
- ...e
757
- });
758
- }
759
- function ze({ ...e }) {
760
- return /* @__PURE__ */ I(X.Trigger, {
761
- "data-slot": "popover-trigger",
762
- ...e
763
- });
764
- }
765
- function Be({ className: e, align: t = "center", sideOffset: r = 4, container: i, ...a }) {
766
- return /* @__PURE__ */ I(X.Portal, {
767
- container: i,
768
- children: /* @__PURE__ */ I(X.Content, {
769
- "data-slot": "popover-content",
770
- align: t,
771
- sideOffset: r,
772
- className: n("bg-popover text-popover-foreground data-[state=open]:animate-in data-[state=closed]:animate-out data-[state=closed]:fade-out-0 data-[state=open]:fade-in-0 data-[state=closed]:zoom-out-95 data-[state=open]:zoom-in-95 data-[side=bottom]:slide-in-from-top-2 data-[side=left]:slide-in-from-right-2 data-[side=right]:slide-in-from-left-2 data-[side=top]:slide-in-from-bottom-2 z-50 w-72 origin-(--radix-popover-content-transform-origin) rounded-2xl border p-4 shadow-md outline-hidden", e),
773
- ...a
774
- })
775
- });
776
- }
777
- // src/components/MessageActions/RewriteMessageButton.tsx
778
- var Ve = ({ messageId: e }) => {
779
- let { rewrite: t, chatModelProvider: r, setChatModelProvider: i } = d(), [a, o] = P([]), [s, f] = P(!0), [p, m] = P(""), [h, g] = P(!1);
780
- j(() => {
781
- h && (async () => {
750
+ }, Ve = ({ messageId: e }) => {
751
+ let { rewrite: t, chatModelProvider: r, setChatModelProvider: i } = d(), [a, o] = L([]), [s, f] = L(!0), [p, h] = L(""), [v, y] = L(!1);
752
+ P(() => {
753
+ v && (async () => {
782
754
  try {
783
755
  f(!0);
784
- let { data: e } = await _e();
756
+ let { data: e } = await be();
785
757
  o(e?.providers ?? []);
786
758
  } catch (e) {
787
759
  console.error("Error loading providers:", e);
@@ -789,204 +761,204 @@ var Ve = ({ messageId: e }) => {
789
761
  f(!1);
790
762
  }
791
763
  })();
792
- }, [h]);
793
- let _ = M(() => {
764
+ }, [v]);
765
+ let x = F(() => {
794
766
  if (!r?.providerId) return a;
795
767
  let e = a.findIndex((e) => e.id === r.providerId);
796
768
  return e === -1 ? a : [a[e], ...a.filter((t, n) => n !== e)];
797
769
  }, [a, r]).map((e) => ({
798
770
  ...e,
799
771
  chatModels: (e.chatModels ?? []).filter((t) => t.name.toLowerCase().includes(p.toLowerCase()) || e.name.toLowerCase().includes(p.toLowerCase()))
800
- })).filter((e) => e.chatModels.length > 0), v = M(() => {
772
+ })).filter((e) => e.chatModels.length > 0), S = F(() => {
801
773
  if (!r.key) return "Rewrite";
802
774
  for (let e of a) {
803
775
  let t = e.chatModels.find((e) => e.key === r.key);
804
776
  if (t) return t.name;
805
777
  }
806
778
  return r.key;
807
- }, [a, r.key]), b = (n, r) => {
779
+ }, [a, r.key]), C = (n, r) => {
808
780
  i({
809
781
  providerId: n,
810
782
  key: r
811
- }), localStorage.setItem("chatModelProviderId", n), localStorage.setItem("chatModelKey", r), g(!1), t(e);
783
+ }), localStorage.setItem("chatModelProviderId", n), localStorage.setItem("chatModelKey", r), y(!1), t(e);
812
784
  };
813
- return /* @__PURE__ */ L(Re, {
814
- open: h,
815
- onOpenChange: g,
816
- children: [/* @__PURE__ */ L(u, { children: [/* @__PURE__ */ I(l, {
785
+ return /* @__PURE__ */ B(m, {
786
+ open: v,
787
+ onOpenChange: y,
788
+ children: [/* @__PURE__ */ B(u, { children: [/* @__PURE__ */ z(l, {
817
789
  asChild: !0,
818
- children: /* @__PURE__ */ I(ze, {
790
+ children: /* @__PURE__ */ z(g, {
819
791
  asChild: !0,
820
- children: /* @__PURE__ */ I("button", {
792
+ children: /* @__PURE__ */ z("button", {
821
793
  className: "p-2 text-muted-foreground rounded-full backdrop-blur-md bg-white/10 dark:bg-black/10 hover:bg-white/20 dark:hover:bg-black/20 transition duration-200 hover:text-foreground",
822
- children: /* @__PURE__ */ I(z, { size: 18 })
794
+ children: /* @__PURE__ */ z(H, { size: 18 })
823
795
  })
824
796
  })
825
- }), /* @__PURE__ */ L(c, {
797
+ }), /* @__PURE__ */ B(c, {
826
798
  side: "bottom",
827
- children: ["Rewrite with ", v]
828
- })] }), /* @__PURE__ */ I(Be, {
799
+ children: ["Rewrite with ", S]
800
+ })] }), /* @__PURE__ */ z(_, {
829
801
  className: "w-[280px] p-0",
830
802
  align: "start",
831
803
  side: "top",
832
804
  sideOffset: 8,
833
- children: /* @__PURE__ */ L("div", {
805
+ children: /* @__PURE__ */ B("div", {
834
806
  className: "bg-white dark:bg-[#212121] max-h-[400px] border rounded-2xl border-[#DDDDDD] dark:border-[#30302E] w-full flex flex-col shadow-2xl overflow-hidden",
835
- children: [/* @__PURE__ */ I("div", {
807
+ children: [/* @__PURE__ */ z("div", {
836
808
  className: "p-3 border-b border-[#EEEEEE] dark:border-[#30302E]",
837
- children: /* @__PURE__ */ L("div", {
809
+ children: /* @__PURE__ */ B("div", {
838
810
  className: "relative",
839
- children: [/* @__PURE__ */ I(J, {
811
+ children: [/* @__PURE__ */ z(q, {
840
812
  size: 14,
841
813
  className: "absolute left-3 top-1/2 -translate-y-1/2 text-text-400 dark:text-[#999999]"
842
- }), /* @__PURE__ */ I("input", {
814
+ }), /* @__PURE__ */ z("input", {
843
815
  type: "text",
844
816
  placeholder: "Search models...",
845
817
  value: p,
846
- onChange: (e) => m(e.target.value),
818
+ onChange: (e) => h(e.target.value),
847
819
  className: "w-full pl-9 pr-3 py-2 text-[13px] bg-bg-100 dark:bg-[#30302E] border border-bg-300 dark:border-[#404040] rounded-lg text-text-100 dark:text-[#ECECEC] placeholder:text-text-400 dark:placeholder:text-[#999999] focus:outline-none focus:ring-2 focus:ring-sky-500/20 focus:border-sky-500/30 transition-all"
848
820
  })]
849
821
  })
850
- }), /* @__PURE__ */ I("div", {
822
+ }), /* @__PURE__ */ z("div", {
851
823
  className: "max-h-[320px] overflow-y-auto",
852
- children: s ? /* @__PURE__ */ I("div", {
824
+ children: s ? /* @__PURE__ */ z("div", {
853
825
  className: "flex items-center justify-center py-12",
854
- children: /* @__PURE__ */ I(y.Loader2, {
826
+ children: /* @__PURE__ */ z(b.Loader2, {
855
827
  className: "animate-spin text-text-400 dark:text-[#999999]",
856
828
  size: 20
857
829
  })
858
- }) : _.length === 0 ? /* @__PURE__ */ I("div", {
830
+ }) : x.length === 0 ? /* @__PURE__ */ z("div", {
859
831
  className: "text-center py-12 px-4 text-text-400 dark:text-[#999999] text-sm",
860
832
  children: p ? "No models found" : "No chat models configured"
861
- }) : /* @__PURE__ */ I("div", {
833
+ }) : /* @__PURE__ */ z("div", {
862
834
  className: "flex flex-col",
863
- children: _.map((e, t) => /* @__PURE__ */ L("div", { children: [
864
- /* @__PURE__ */ I("div", {
835
+ children: x.map((e, t) => /* @__PURE__ */ B("div", { children: [
836
+ /* @__PURE__ */ z("div", {
865
837
  className: "px-4 py-2 sticky top-0 bg-white dark:bg-[#212121] border-b border-[#EEEEEE]/50 dark:border-[#30302E]/50",
866
- children: /* @__PURE__ */ I("p", {
838
+ children: /* @__PURE__ */ z("p", {
867
839
  className: "text-[11px] text-text-400 dark:text-[#999999] uppercase tracking-wider font-medium",
868
840
  children: e.name
869
841
  })
870
842
  }),
871
- /* @__PURE__ */ I("div", {
843
+ /* @__PURE__ */ z("div", {
872
844
  className: "flex flex-col px-1.5 py-1.5 space-y-0.5",
873
- children: e.chatModels.map((t) => /* @__PURE__ */ L("button", {
874
- onClick: () => b(e.id, t.key),
845
+ children: e.chatModels.map((t) => /* @__PURE__ */ B("button", {
846
+ onClick: () => C(e.id, t.key),
875
847
  type: "button",
876
848
  className: n("px-3 py-2 flex items-center justify-between text-start duration-200 cursor-pointer transition rounded-xl group", r?.providerId === e.id && r?.key === t.key ? "bg-sky-50 dark:bg-sky-500/10" : "hover:bg-bg-100 dark:hover:bg-[#30302E]"),
877
- children: [/* @__PURE__ */ L("div", {
849
+ children: [/* @__PURE__ */ B("div", {
878
850
  className: "flex items-center space-x-2.5 min-w-0 flex-1",
879
- children: [/* @__PURE__ */ I(te, {
851
+ children: [/* @__PURE__ */ z(ae, {
880
852
  size: 14,
881
853
  className: n("shrink-0", r?.providerId === e.id && r?.key === t.key ? "text-sky-500" : "text-text-400 dark:text-[#999999] group-hover:text-text-300 dark:group-hover:text-[#B4B4B4]")
882
- }), /* @__PURE__ */ I("p", {
854
+ }), /* @__PURE__ */ z("p", {
883
855
  className: n("text-[13px] truncate", r?.providerId === e.id && r?.key === t.key ? "text-sky-600 dark:text-sky-400 font-medium" : "text-text-200 dark:text-[#ECECEC] group-hover:text-text-100 dark:group-hover:text-white"),
884
856
  children: t.name
885
857
  })]
886
- }), r?.providerId === e.id && r?.key === t.key && /* @__PURE__ */ I(y.Check, { className: "w-4 h-4 text-sky-500 shrink-0" })]
858
+ }), r?.providerId === e.id && r?.key === t.key && /* @__PURE__ */ z(b.Check, { className: "w-4 h-4 text-sky-500 shrink-0" })]
887
859
  }, t.key))
888
860
  }),
889
- t < _.length - 1 && /* @__PURE__ */ I("div", { className: "h-px bg-[#EEEEEE] dark:bg-[#30302E] mx-2" })
861
+ t < x.length - 1 && /* @__PURE__ */ z("div", { className: "h-px bg-[#EEEEEE] dark:bg-[#30302E] mx-2" })
890
862
  ] }, e.id))
891
863
  })
892
864
  })]
893
865
  })
894
866
  })]
895
867
  });
896
- }, He = ({ section: e, speechStatus: t, isLoadingTTS: n = !1, start: r, stop: i, handleOpenInLLM: a }) => e.assistantMessage ? /* @__PURE__ */ I("div", {
868
+ }, He = ({ section: e, speechStatus: t, isLoadingTTS: n = !1, start: r, stop: i, handleOpenInLLM: a }) => e.assistantMessage ? /* @__PURE__ */ z("div", {
897
869
  className: "flex flex-row items-center justify-end w-full text-foreground py-4 -mx-2",
898
- children: /* @__PURE__ */ L("div", {
870
+ children: /* @__PURE__ */ B("div", {
899
871
  className: "flex flex-row items-center space-x-1",
900
872
  children: [
901
- /* @__PURE__ */ I(Ve, { messageId: e.assistantMessage.messageId }),
902
- /* @__PURE__ */ I(Le, {
873
+ /* @__PURE__ */ z(Ve, { messageId: e.assistantMessage.messageId }),
874
+ /* @__PURE__ */ z(Be, {
903
875
  initialMessage: e.assistantMessage.content,
904
876
  section: e
905
877
  }),
906
- /* @__PURE__ */ L(u, { children: [/* @__PURE__ */ I(l, {
878
+ /* @__PURE__ */ B(u, { children: [/* @__PURE__ */ z(l, {
907
879
  asChild: !0,
908
- children: /* @__PURE__ */ I("button", {
880
+ children: /* @__PURE__ */ z("button", {
909
881
  onClick: () => {
910
882
  t === "started" ? i() : r();
911
883
  },
912
884
  disabled: n,
913
885
  className: "p-2 text-muted-foreground rounded-full backdrop-blur-md bg-white/10 dark:bg-black/10 hover:bg-white/20 dark:hover:bg-black/20 transition duration-200 hover:text-foreground disabled:opacity-50 disabled:cursor-not-allowed",
914
- children: n ? /* @__PURE__ */ I(q, {
886
+ children: n ? /* @__PURE__ */ z(K, {
915
887
  size: 18,
916
888
  className: "animate-spin"
917
- }) : I(t === "started" ? de : me, { size: 18 })
889
+ }) : z(t === "started" ? he : ve, { size: 18 })
918
890
  })
919
- }), /* @__PURE__ */ I(c, {
891
+ }), /* @__PURE__ */ z(c, {
920
892
  side: "bottom",
921
893
  children: n ? "Loading TTS..." : t === "started" ? "Stop" : "Read aloud"
922
894
  })] }),
923
- /* @__PURE__ */ L(f, { children: [/* @__PURE__ */ L(u, { children: [/* @__PURE__ */ I(l, {
895
+ /* @__PURE__ */ B(w, { children: [/* @__PURE__ */ B(u, { children: [/* @__PURE__ */ z(l, {
924
896
  asChild: !0,
925
- children: /* @__PURE__ */ I(S, {
897
+ children: /* @__PURE__ */ z(y, {
926
898
  asChild: !0,
927
- children: /* @__PURE__ */ I("button", {
899
+ children: /* @__PURE__ */ z("button", {
928
900
  className: "p-2 text-muted-foreground rounded-full backdrop-blur-md bg-white/10 dark:bg-black/10 hover:bg-white/20 dark:hover:bg-black/20 transition duration-200 hover:text-foreground",
929
- children: /* @__PURE__ */ I(ne, { size: 18 })
901
+ children: /* @__PURE__ */ z(oe, { size: 18 })
930
902
  })
931
903
  })
932
- }), /* @__PURE__ */ I(c, {
904
+ }), /* @__PURE__ */ z(c, {
933
905
  side: "bottom",
934
906
  children: "Export"
935
- })] }), /* @__PURE__ */ L(x, {
907
+ })] }), /* @__PURE__ */ B(E, {
936
908
  align: "end",
937
909
  side: "top",
938
910
  children: [
939
- /* @__PURE__ */ L(w, {
940
- onClick: () => _(e.userMessage.content, e.assistantMessage.content),
941
- children: [/* @__PURE__ */ I(K, { size: 16 }), "Markdown"]
911
+ /* @__PURE__ */ B(C, {
912
+ onClick: () => h(e.userMessage.content, e.assistantMessage.content),
913
+ children: [/* @__PURE__ */ z(G, { size: 16 }), "Markdown"]
942
914
  }),
943
- /* @__PURE__ */ L(w, {
944
- onClick: () => g(e.userMessage.content, e.assistantMessage.content),
945
- children: [/* @__PURE__ */ I(oe, { size: 16 }), "PDF"]
915
+ /* @__PURE__ */ B(C, {
916
+ onClick: () => f(e.userMessage.content, e.assistantMessage.content),
917
+ children: [/* @__PURE__ */ z(ue, { size: 16 }), "PDF"]
946
918
  }),
947
- /* @__PURE__ */ L(w, {
948
- onClick: () => m(e.userMessage.content, e.assistantMessage.content),
949
- children: [/* @__PURE__ */ I(ie, { size: 16 }), "DOCX"]
950
- }),
951
- /* @__PURE__ */ L(w, {
919
+ /* @__PURE__ */ B(C, {
952
920
  onClick: () => v(e.userMessage.content, e.assistantMessage.content),
953
- children: [/* @__PURE__ */ I(ae, { size: 16 }), "Google Docs"]
921
+ children: [/* @__PURE__ */ z(ce, { size: 16 }), "DOCX"]
922
+ }),
923
+ /* @__PURE__ */ B(C, {
924
+ onClick: () => S(e.userMessage.content, e.assistantMessage.content),
925
+ children: [/* @__PURE__ */ z(le, { size: 16 }), "Google Docs"]
954
926
  })
955
927
  ]
956
928
  })] }),
957
- /* @__PURE__ */ L(f, { children: [/* @__PURE__ */ L(u, { children: [/* @__PURE__ */ I(l, {
929
+ /* @__PURE__ */ B(w, { children: [/* @__PURE__ */ B(u, { children: [/* @__PURE__ */ z(l, {
958
930
  asChild: !0,
959
- children: /* @__PURE__ */ I(S, {
931
+ children: /* @__PURE__ */ z(y, {
960
932
  asChild: !0,
961
- children: /* @__PURE__ */ I("button", {
933
+ children: /* @__PURE__ */ z("button", {
962
934
  className: "p-2 text-muted-foreground rounded-full backdrop-blur-md bg-white/10 dark:bg-black/10 hover:bg-white/20 dark:hover:bg-black/20 transition duration-200 hover:text-foreground",
963
- children: /* @__PURE__ */ I(G, { size: 18 })
935
+ children: /* @__PURE__ */ z(W, { size: 18 })
964
936
  })
965
937
  })
966
- }), /* @__PURE__ */ I(c, {
938
+ }), /* @__PURE__ */ z(c, {
967
939
  side: "bottom",
968
940
  children: "Open in LLM"
969
- })] }), /* @__PURE__ */ L(x, {
941
+ })] }), /* @__PURE__ */ B(E, {
970
942
  align: "end",
971
943
  side: "top",
972
944
  children: [
973
- /* @__PURE__ */ I(w, {
945
+ /* @__PURE__ */ z(C, {
974
946
  onClick: () => a("qwksearch"),
975
947
  children: "QwkSearch"
976
948
  }),
977
- /* @__PURE__ */ I(w, {
949
+ /* @__PURE__ */ z(C, {
978
950
  onClick: () => a("claude"),
979
951
  children: "Claude"
980
952
  }),
981
- /* @__PURE__ */ I(w, {
953
+ /* @__PURE__ */ z(C, {
982
954
  onClick: () => a("perplexity"),
983
955
  children: "Perplexity"
984
956
  }),
985
- /* @__PURE__ */ I(w, {
957
+ /* @__PURE__ */ z(C, {
986
958
  onClick: () => a("gemini"),
987
959
  children: "Google Gemini"
988
960
  }),
989
- /* @__PURE__ */ I(w, {
961
+ /* @__PURE__ */ z(C, {
990
962
  onClick: () => a("chatgpt"),
991
963
  children: "ChatGPT"
992
964
  })
@@ -995,10 +967,10 @@ var Ve = ({ messageId: e }) => {
995
967
  ]
996
968
  })
997
969
  }) : null, Ue = ({ section: e, isLast: t, loading: n, sendMessage: r }) => {
998
- let i = N([]);
999
- return j(() => {
970
+ let i = I([]);
971
+ return P(() => {
1000
972
  e.suggestions && e.suggestions.length > 0 && (i.current = e.suggestions.slice(0, 5));
1001
- }, [e.suggestions]), j(() => {
973
+ }, [e.suggestions]), P(() => {
1002
974
  let e = (e) => {
1003
975
  let t = e.target;
1004
976
  if (t.tagName === "INPUT" || t.tagName === "TEXTAREA" || t.isContentEditable) return;
@@ -1006,26 +978,26 @@ var Ve = ({ messageId: e }) => {
1006
978
  a >= 1 && a <= 5 && i.current.length >= a && (e.preventDefault(), r(i.current[a - 1]));
1007
979
  };
1008
980
  if (t && i.current.length > 0) return window.addEventListener("keydown", e), () => window.removeEventListener("keydown", e);
1009
- }, [t, r]), !e.suggestions || e.suggestions.length === 0 || !e.assistantMessage ? null : /* @__PURE__ */ I("div", {
981
+ }, [t, r]), !e.suggestions || e.suggestions.length === 0 || !e.assistantMessage ? null : /* @__PURE__ */ z("div", {
1010
982
  className: "mt-8 pt-6 border-t border-border/50",
1011
- children: /* @__PURE__ */ I("div", {
983
+ children: /* @__PURE__ */ z("div", {
1012
984
  className: "space-y-2",
1013
- children: e.suggestions?.slice(0, 5).map((e, t) => /* @__PURE__ */ I("button", {
985
+ children: e.suggestions?.slice(0, 5).map((e, t) => /* @__PURE__ */ z("button", {
1014
986
  onClick: () => r(e),
1015
987
  className: "group w-full px-4 py-4 text-left transition-all duration-200 cursor-pointer rounded-lg border border-border/50 hover:border-primary/30 hover:bg-accent/50 hover:shadow-sm",
1016
- children: /* @__PURE__ */ L("div", {
988
+ children: /* @__PURE__ */ B("div", {
1017
989
  className: "flex items-center gap-3",
1018
990
  children: [
1019
- /* @__PURE__ */ I(p, {
991
+ /* @__PURE__ */ z(p, {
1020
992
  variant: "secondary",
1021
993
  className: "flex-shrink-0 h-6 w-6 p-0 flex items-center justify-center rounded-full text-sm font-semibold",
1022
994
  children: t + 1
1023
995
  }),
1024
- /* @__PURE__ */ I("p", {
996
+ /* @__PURE__ */ z("p", {
1025
997
  className: "flex-1 text-base font-medium text-muted-foreground group-hover:text-primary transition-colors duration-200 leading-relaxed",
1026
998
  children: e
1027
999
  }),
1028
- /* @__PURE__ */ I(ue, {
1000
+ /* @__PURE__ */ z(me, {
1029
1001
  size: 18,
1030
1002
  className: "text-muted-foreground/60 group-hover:text-primary transition-colors duration-200 flex-shrink-0"
1031
1003
  })
@@ -1035,11 +1007,11 @@ var Ve = ({ messageId: e }) => {
1035
1007
  })
1036
1008
  });
1037
1009
  }, We = ({ section: e, dividerRef: t, isLast: r }) => {
1038
- let { loading: i, sendMessage: a } = d(), [o, s] = P(!0), [c, l] = P(!1), [u, f] = P(!1), [p, m] = P(e.userMessage.content), h = () => {
1010
+ let { loading: i, sendMessage: a } = d(), [o, s] = L(!0), [c, l] = L(!1), [u, f] = L(!1), [p, m] = L(e.userMessage.content), h = () => {
1039
1011
  navigator.clipboard.writeText(e.userMessage.content), l(!0), setTimeout(() => l(!1), 1500);
1040
1012
  }, g = () => {
1041
1013
  p.trim() && (a(p.trim()), f(!1));
1042
- }, _ = e.parsedAssistantMessage || "", v = e.speechMessage || "", y = e.thinkingEnded, { speechStatus: x, start: S, stop: C, isLoading: w } = b(v, { enableInterrupt: !0 }), T = (t) => {
1014
+ }, _ = e.parsedAssistantMessage || "", v = e.speechMessage || "", y = e.thinkingEnded, { speechStatus: b, start: S, stop: C, isLoading: w } = x(v, { enableInterrupt: !0 }), T = (t) => {
1043
1015
  if (!e.assistantMessage) return;
1044
1016
  let n = `${e.userMessage.content}\n\n${e.assistantMessage.content}`;
1045
1017
  navigator.clipboard.writeText(n);
@@ -1053,25 +1025,25 @@ var Ve = ({ messageId: e }) => {
1053
1025
  r && window.open(`${r}${encodeURIComponent(n)}`, "_blank");
1054
1026
  }, E = { overrides: {
1055
1027
  think: {
1056
- component: je,
1028
+ component: Pe,
1057
1029
  props: { thinkingEnded: y }
1058
1030
  },
1059
1031
  citation: {
1060
- component: ke,
1032
+ component: Me,
1061
1033
  props: { sources: e.sourceMessage?.sources || [] }
1062
1034
  },
1063
- table: { component: ({ children: e, ...t }) => /* @__PURE__ */ I("div", {
1035
+ table: { component: ({ children: e, ...t }) => /* @__PURE__ */ z("div", {
1064
1036
  className: "not-prose -mx-2 my-4 max-w-full overflow-x-auto sm:mx-0",
1065
- children: /* @__PURE__ */ I("table", {
1037
+ children: /* @__PURE__ */ z("table", {
1066
1038
  ...t,
1067
1039
  className: "w-max min-w-full border-collapse text-sm",
1068
1040
  children: e
1069
1041
  })
1070
1042
  }) }
1071
1043
  } };
1072
- return /* @__PURE__ */ L("div", {
1044
+ return /* @__PURE__ */ B("div", {
1073
1045
  className: "space-y-3",
1074
- children: [/* @__PURE__ */ I(Ie, {
1046
+ children: [/* @__PURE__ */ z(ze, {
1075
1047
  section: e,
1076
1048
  isExpanded: o,
1077
1049
  setIsExpanded: s,
@@ -1082,40 +1054,40 @@ var Ve = ({ messageId: e }) => {
1082
1054
  handleEditSubmit: g,
1083
1055
  copiedUserMsg: c,
1084
1056
  handleCopyUserMsg: h
1085
- }), /* @__PURE__ */ I("div", {
1057
+ }), /* @__PURE__ */ z("div", {
1086
1058
  className: n("flex flex-col space-y-3 overflow-hidden transition-all duration-300 ease-in-out", o ? "max-h-[100000px] opacity-100" : "max-h-0 opacity-0"),
1087
- children: /* @__PURE__ */ L("div", {
1059
+ children: /* @__PURE__ */ B("div", {
1088
1060
  ref: t,
1089
1061
  className: "flex flex-col space-y-6 w-full",
1090
1062
  children: [
1091
- e.searchingMessage && e.searchingMessage.queries.length > 0 && /* @__PURE__ */ I(Oe, {
1063
+ e.searchingMessage && e.searchingMessage.queries.length > 0 && /* @__PURE__ */ z(je, {
1092
1064
  queries: e.searchingMessage.queries,
1093
1065
  loading: i && r
1094
1066
  }),
1095
- e.sourceMessage && e.sourceMessage.sources.length > 0 && /* @__PURE__ */ I("div", {
1067
+ e.sourceMessage && e.sourceMessage.sources.length > 0 && /* @__PURE__ */ z("div", {
1096
1068
  className: "flex flex-col space-y-2",
1097
- children: /* @__PURE__ */ I(Te, {
1069
+ children: /* @__PURE__ */ z(Oe, {
1098
1070
  sources: e.sourceMessage.sources,
1099
1071
  query: e.userMessage.content
1100
1072
  })
1101
1073
  }),
1102
- /* @__PURE__ */ I("div", {
1074
+ /* @__PURE__ */ z("div", {
1103
1075
  className: "flex min-w-0 flex-col space-y-2",
1104
- children: e.assistantMessage && /* @__PURE__ */ L(F, { children: [
1105
- /* @__PURE__ */ I(ye, {
1076
+ children: e.assistantMessage && /* @__PURE__ */ B(R, { children: [
1077
+ /* @__PURE__ */ z(Se, {
1106
1078
  className: n("prose prose-lg prose-h1:mb-3 prose-h2:mb-2 prose-h2:mt-6 prose-h2:font-[800] prose-h3:mt-4 prose-h3:mb-1.5 prose-h3:font-[600] dark:prose-invert prose-p:leading-loose prose-pre:p-0 font-[400]", "min-w-0 max-w-none break-words text-foreground font-inter"),
1107
1079
  options: E,
1108
1080
  children: _
1109
1081
  }),
1110
- i && r ? null : /* @__PURE__ */ I(He, {
1082
+ i && r ? null : /* @__PURE__ */ z(He, {
1111
1083
  section: e,
1112
- speechStatus: x,
1084
+ speechStatus: b,
1113
1085
  isLoadingTTS: w,
1114
1086
  start: S,
1115
1087
  stop: C,
1116
1088
  handleOpenInLLM: T
1117
1089
  }),
1118
- /* @__PURE__ */ I(Ue, {
1090
+ /* @__PURE__ */ z(Ue, {
1119
1091
  section: e,
1120
1092
  isLast: r,
1121
1093
  loading: i,
@@ -1136,7 +1108,7 @@ var Ve = ({ messageId: e }) => {
1136
1108
  "ring",
1137
1109
  "bars",
1138
1110
  "infinite"
1139
- ], Ke = "M12 12c-2-2.67-4-4-6-4a4 4 0 1 0 0 8c2 0 4-1.33 6-4Zm0 0c2 2.67 4 4 6 4a4 4 0 0 0 0-8c-2 0-4 1.33-6 4Z", Q = {
1111
+ ], Ke = "M12 12c-2-2.67-4-4-6-4a4 4 0 1 0 0 8c2 0 4-1.33 6-4Zm0 0c2 2.67 4 4 6 4a4 4 0 0 0 0-8c-2 0-4 1.33-6 4Z", Z = {
1140
1112
  transformBox: "view-box",
1141
1113
  transformOrigin: "center"
1142
1114
  }, qe = [
@@ -1190,47 +1162,47 @@ var Ve = ({ messageId: e }) => {
1190
1162
  ]
1191
1163
  ], Je = (e) => {
1192
1164
  switch (e) {
1193
- case "circle": return /* @__PURE__ */ I("g", {
1165
+ case "circle": return /* @__PURE__ */ z("g", {
1194
1166
  className: "animate-spin",
1195
- style: Q,
1196
- children: /* @__PURE__ */ I("path", { d: "M21 12a9 9 0 1 1-6.219-8.56" })
1167
+ style: Z,
1168
+ children: /* @__PURE__ */ z("path", { d: "M21 12a9 9 0 1 1-6.219-8.56" })
1197
1169
  });
1198
- case "pinwheel": return /* @__PURE__ */ L("g", {
1170
+ case "pinwheel": return /* @__PURE__ */ B("g", {
1199
1171
  className: "animate-spin",
1200
- style: Q,
1172
+ style: Z,
1201
1173
  children: [
1202
- /* @__PURE__ */ I("path", { d: "M22 12a1 1 0 0 1-10 0 1 1 0 0 0-10 0" }),
1203
- /* @__PURE__ */ I("path", { d: "M7 20.7a1 1 0 1 1 5-8.7 1 1 0 1 0 5-8.6" }),
1204
- /* @__PURE__ */ I("path", { d: "M7 3.3a1 1 0 1 1 5 8.6 1 1 0 1 0 5 8.6" }),
1205
- /* @__PURE__ */ I("circle", {
1174
+ /* @__PURE__ */ z("path", { d: "M22 12a1 1 0 0 1-10 0 1 1 0 0 0-10 0" }),
1175
+ /* @__PURE__ */ z("path", { d: "M7 20.7a1 1 0 1 1 5-8.7 1 1 0 1 0 5-8.6" }),
1176
+ /* @__PURE__ */ z("path", { d: "M7 3.3a1 1 0 1 1 5 8.6 1 1 0 1 0 5 8.6" }),
1177
+ /* @__PURE__ */ z("circle", {
1206
1178
  cx: "12",
1207
1179
  cy: "12",
1208
1180
  r: "10"
1209
1181
  })
1210
1182
  ]
1211
1183
  });
1212
- case "circle-filled": return /* @__PURE__ */ L(F, { children: [/* @__PURE__ */ I("circle", {
1184
+ case "circle-filled": return /* @__PURE__ */ B(R, { children: [/* @__PURE__ */ z("circle", {
1213
1185
  cx: "12",
1214
1186
  cy: "12",
1215
1187
  r: "9",
1216
1188
  opacity: "0.2"
1217
- }), /* @__PURE__ */ I("g", {
1189
+ }), /* @__PURE__ */ z("g", {
1218
1190
  className: "animate-spin",
1219
- style: Q,
1220
- children: /* @__PURE__ */ I("path", { d: "M21 12a9 9 0 0 0-9-9" })
1191
+ style: Z,
1192
+ children: /* @__PURE__ */ z("path", { d: "M21 12a9 9 0 0 0-9-9" })
1221
1193
  })] });
1222
- case "ellipsis": return /* @__PURE__ */ I("g", {
1194
+ case "ellipsis": return /* @__PURE__ */ z("g", {
1223
1195
  fill: "currentColor",
1224
1196
  stroke: "none",
1225
1197
  children: [
1226
1198
  4,
1227
1199
  12,
1228
1200
  20
1229
- ].map((e, t) => /* @__PURE__ */ I("circle", {
1201
+ ].map((e, t) => /* @__PURE__ */ z("circle", {
1230
1202
  cx: e,
1231
1203
  cy: "12",
1232
1204
  r: "2.5",
1233
- children: /* @__PURE__ */ I("animate", {
1205
+ children: /* @__PURE__ */ z("animate", {
1234
1206
  attributeName: "cy",
1235
1207
  values: "12;7.5;12",
1236
1208
  keyTimes: "0;0.5;1",
@@ -1240,17 +1212,17 @@ var Ve = ({ messageId: e }) => {
1240
1212
  })
1241
1213
  }, e))
1242
1214
  });
1243
- case "ring": return /* @__PURE__ */ I(F, { children: [0, -.8].map((e) => /* @__PURE__ */ L("circle", {
1215
+ case "ring": return /* @__PURE__ */ z(R, { children: [0, -.8].map((e) => /* @__PURE__ */ B("circle", {
1244
1216
  cx: "12",
1245
1217
  cy: "12",
1246
1218
  r: "2",
1247
- children: [/* @__PURE__ */ I("animate", {
1219
+ children: [/* @__PURE__ */ z("animate", {
1248
1220
  attributeName: "r",
1249
1221
  values: "2;11",
1250
1222
  dur: "1.6s",
1251
1223
  begin: `${e}s`,
1252
1224
  repeatCount: "indefinite"
1253
- }), /* @__PURE__ */ I("animate", {
1225
+ }), /* @__PURE__ */ z("animate", {
1254
1226
  attributeName: "opacity",
1255
1227
  values: "1;0",
1256
1228
  dur: "1.6s",
@@ -1258,27 +1230,27 @@ var Ve = ({ messageId: e }) => {
1258
1230
  repeatCount: "indefinite"
1259
1231
  })]
1260
1232
  }, e)) });
1261
- case "bars": return /* @__PURE__ */ I("g", {
1233
+ case "bars": return /* @__PURE__ */ z("g", {
1262
1234
  fill: "currentColor",
1263
1235
  stroke: "none",
1264
1236
  children: [
1265
1237
  2.5,
1266
1238
  10,
1267
1239
  17.5
1268
- ].map((e, t) => /* @__PURE__ */ L("rect", {
1240
+ ].map((e, t) => /* @__PURE__ */ B("rect", {
1269
1241
  x: e,
1270
1242
  y: "8",
1271
1243
  width: "4",
1272
1244
  height: "8",
1273
1245
  rx: "1.5",
1274
- children: [/* @__PURE__ */ I("animate", {
1246
+ children: [/* @__PURE__ */ z("animate", {
1275
1247
  attributeName: "height",
1276
1248
  values: "8;18;8",
1277
1249
  keyTimes: "0;0.5;1",
1278
1250
  dur: "1.1s",
1279
1251
  begin: `${t * .18}s`,
1280
1252
  repeatCount: "indefinite"
1281
- }), /* @__PURE__ */ I("animate", {
1253
+ }), /* @__PURE__ */ z("animate", {
1282
1254
  attributeName: "y",
1283
1255
  values: "8;3;8",
1284
1256
  keyTimes: "0;0.5;1",
@@ -1288,24 +1260,24 @@ var Ve = ({ messageId: e }) => {
1288
1260
  })]
1289
1261
  }, e))
1290
1262
  });
1291
- case "infinite": return /* @__PURE__ */ L(F, { children: [/* @__PURE__ */ I("path", {
1263
+ case "infinite": return /* @__PURE__ */ B(R, { children: [/* @__PURE__ */ z("path", {
1292
1264
  d: Ke,
1293
1265
  opacity: "0.2"
1294
- }), /* @__PURE__ */ I("path", {
1266
+ }), /* @__PURE__ */ z("path", {
1295
1267
  d: Ke,
1296
1268
  pathLength: "100",
1297
1269
  strokeDasharray: "25 75",
1298
- children: /* @__PURE__ */ I("animate", {
1270
+ children: /* @__PURE__ */ z("animate", {
1299
1271
  attributeName: "stroke-dashoffset",
1300
1272
  values: "100;0",
1301
1273
  dur: "1.5s",
1302
1274
  repeatCount: "indefinite"
1303
1275
  })
1304
1276
  })] });
1305
- default: return /* @__PURE__ */ I("g", {
1277
+ default: return /* @__PURE__ */ z("g", {
1306
1278
  className: "animate-spin",
1307
- style: Q,
1308
- children: qe.map(([e, t, n, r], i) => /* @__PURE__ */ I("line", {
1279
+ style: Z,
1280
+ children: qe.map(([e, t, n, r], i) => /* @__PURE__ */ z("line", {
1309
1281
  x1: e,
1310
1282
  y1: t,
1311
1283
  x2: n,
@@ -1314,7 +1286,7 @@ var Ve = ({ messageId: e }) => {
1314
1286
  }, `${e}-${t}`))
1315
1287
  });
1316
1288
  }
1317
- }, Ye = ({ variant: e = "default", size: t = 24, className: r, ...i }) => /* @__PURE__ */ I("svg", {
1289
+ }, Ye = ({ variant: e = "default", size: t = 24, className: r, ...i }) => /* @__PURE__ */ z("svg", {
1318
1290
  "aria-hidden": "true",
1319
1291
  xmlns: "http://www.w3.org/2000/svg",
1320
1292
  viewBox: "0 0 24 24",
@@ -1337,92 +1309,92 @@ var Ve = ({ messageId: e }) => {
1337
1309
  "loadingPulseRing",
1338
1310
  "loadingEqualizerBars",
1339
1311
  "loadingInfiniteDash"
1340
- ]), $e = Object.fromEntries(Object.entries(be).filter(([e, t]) => typeof t == "function" && e.startsWith("loading") && !Qe.has(e))), et = [
1312
+ ]), Q = Object.fromEntries(Object.entries(Ce).filter(([e, t]) => typeof t == "function" && e.startsWith("loading") && !Qe.has(e))), $e = [
1341
1313
  Xe,
1342
1314
  ...Ge.map((e) => `${Ze}${e}`),
1343
- ...Object.keys($e).sort()
1315
+ ...Object.keys(Q).sort()
1344
1316
  ], $;
1345
- function tt() {
1346
- let e = et.filter((e) => e !== $), t = e.length > 0 ? e : et;
1317
+ function et() {
1318
+ let e = $e.filter((e) => e !== $), t = e.length > 0 ? e : $e;
1347
1319
  return $ = t[Math.floor(Math.random() * t.length)], $;
1348
1320
  }
1349
- function nt(e) {
1321
+ function tt(e) {
1350
1322
  if (!e.startsWith("spinner:")) return;
1351
1323
  let t = e.slice(8);
1352
1324
  return Ge.find((e) => e === t);
1353
1325
  }
1354
- function rt(e, t) {
1355
- let n = $e[e];
1326
+ function nt(e, t) {
1327
+ let n = Q[e];
1356
1328
  return n ? n({
1357
1329
  size: t,
1358
1330
  raw: !0
1359
1331
  }) : "";
1360
1332
  }
1361
1333
  // src/components/ChatConversation/RandomLoadingAnimation.tsx
1362
- var it = ({ size: e = 140, className: t }) => {
1363
- let [r, i] = P(null);
1364
- j(() => {
1365
- i(tt());
1334
+ var rt = ({ size: e = 140, className: t }) => {
1335
+ let [r, i] = L(null);
1336
+ P(() => {
1337
+ i(et());
1366
1338
  }, []);
1367
- let a = r ? nt(r) : void 0;
1368
- return /* @__PURE__ */ I("div", {
1339
+ let a = r ? tt(r) : void 0;
1340
+ return /* @__PURE__ */ z("div", {
1369
1341
  role: "status",
1370
1342
  "aria-label": "Loading",
1371
1343
  className: n("flex items-center justify-center w-full h-[200px]", t),
1372
- children: r === "quantumSphere" ? /* @__PURE__ */ I(ve, { autoRandomize: !0 }) : a ? /* @__PURE__ */ I(Ye, {
1344
+ children: r === "quantumSphere" ? /* @__PURE__ */ z(xe, { autoRandomize: !0 }) : a ? /* @__PURE__ */ z(Ye, {
1373
1345
  variant: a,
1374
1346
  size: e,
1375
1347
  className: "text-muted-foreground"
1376
- }) : r ? /* @__PURE__ */ I("div", {
1348
+ }) : r ? /* @__PURE__ */ z("div", {
1377
1349
  className: "flex items-center justify-center",
1378
- dangerouslySetInnerHTML: { __html: rt(r, e) }
1350
+ dangerouslySetInnerHTML: { __html: nt(r, e) }
1379
1351
  }) : null
1380
1352
  });
1381
- }, at = O(() => import("./ArticleExtractPanel-Dce2hQz6.js")), ot = () => {
1382
- let { sections: e, chatTurns: t, loading: n, messageAppeared: r, newChat: i, chatId: a } = d(), { isOpen: c, panelWidth: l } = o(), { isAuthenticated: u } = s(), [f, p] = P(!1);
1383
- j(() => {
1353
+ }, it = j(() => import("./ArticleExtractPanel-CPSLgtSv.js")), at = () => {
1354
+ let { sections: e, chatTurns: t, loading: n, messageAppeared: r, newChat: i, chatId: a } = d(), { isOpen: c, panelWidth: l } = o(), { isAuthenticated: u } = s(), [f, p] = L(!1);
1355
+ P(() => {
1384
1356
  c && p(!0);
1385
1357
  }, [c]);
1386
- let [m, h] = P(!1), g = N(null), _ = N(null), v = N(!1);
1387
- j(() => {
1358
+ let [m, h] = L(!1), g = I(null), _ = I(null), v = I(!1);
1359
+ P(() => {
1388
1360
  let e = () => {
1389
1361
  h(window.innerWidth >= 1024);
1390
1362
  };
1391
1363
  return e(), window.addEventListener("resize", e), () => window.removeEventListener("resize", e);
1392
- }, []), j(() => {
1393
- t.length === 1 && (document.title = `${t[0].content.substring(0, 30)} - ${T.appName}`), t[t.length - 1]?.role === "user" && (v.current = !0, _.current?.scrollIntoView({ behavior: "auto" }), setTimeout(() => {
1364
+ }, []), P(() => {
1365
+ t.length === 1 && (document.title = `${t[0].content.substring(0, 30)} - ${O.appName}`), t[t.length - 1]?.role === "user" && (v.current = !0, _.current?.scrollIntoView({ behavior: "auto" }), setTimeout(() => {
1394
1366
  v.current = !1;
1395
1367
  }, 100));
1396
1368
  }, [t]);
1397
1369
  let y = m && c ? { width: `calc(100% - ${l}px)` } : {};
1398
- return /* @__PURE__ */ L(F, { children: [/* @__PURE__ */ L("div", {
1370
+ return /* @__PURE__ */ B(R, { children: [/* @__PURE__ */ B("div", {
1399
1371
  className: "flex flex-col min-h-full transition-all duration-300",
1400
1372
  style: y,
1401
- children: [/* @__PURE__ */ L("div", {
1373
+ children: [/* @__PURE__ */ B("div", {
1402
1374
  className: `flex-1 flex flex-col space-y-3 pb-48 ${m && !c ? "px-0 max-w-[800px] mx-auto w-full" : "px-4 lg:px-8"}`,
1403
1375
  children: [
1404
1376
  e.map((t, n) => {
1405
1377
  let r = n === e.length - 1;
1406
- return /* @__PURE__ */ L(E, { children: [/* @__PURE__ */ I(We, {
1378
+ return /* @__PURE__ */ B(k, { children: [/* @__PURE__ */ z(We, {
1407
1379
  section: t,
1408
1380
  sectionIndex: n,
1409
1381
  dividerRef: r ? g : void 0,
1410
1382
  isLast: r
1411
- }), !r && /* @__PURE__ */ I("div", { className: "h-px w-full bg-light-secondary dark:bg-dark-secondary" })] }, t.userMessage.messageId);
1383
+ }), !r && /* @__PURE__ */ z("div", { className: "h-px w-full bg-light-secondary dark:bg-dark-secondary" })] }, t.userMessage.messageId);
1412
1384
  }),
1413
- n && !r && /* @__PURE__ */ I(it, {}),
1414
- /* @__PURE__ */ I("div", {
1385
+ n && !r && /* @__PURE__ */ z(rt, {}),
1386
+ /* @__PURE__ */ z("div", {
1415
1387
  ref: _,
1416
1388
  className: "h-0"
1417
1389
  })
1418
1390
  ]
1419
- }), /* @__PURE__ */ I("div", {
1391
+ }), /* @__PURE__ */ z("div", {
1420
1392
  className: "sticky bottom-[60px] md:bottom-0 z-40 bg-gradient-to-t from-background via-background to-transparent pt-4 pb-2",
1421
- children: /* @__PURE__ */ I(C, {})
1393
+ children: /* @__PURE__ */ z(T, {})
1422
1394
  })]
1423
- }), (f || c) && /* @__PURE__ */ I(D, {
1395
+ }), (f || c) && /* @__PURE__ */ z(A, {
1424
1396
  fallback: null,
1425
- children: /* @__PURE__ */ I(at, {})
1397
+ children: /* @__PURE__ */ z(it, {})
1426
1398
  })] });
1427
1399
  };
1428
- export { ot as default };
1400
+ export { at as default };