@fencyai/react 0.1.199 → 0.1.201

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.
package/dist/index.js CHANGED
@@ -1,50 +1,50 @@
1
- import { jsxs as m, jsx as r, Fragment as E } from "react/jsx-runtime";
2
- import { StreamEventManager as Me, StreamCacheManager as Ee, toStreamData as Re, taskReducer as Ie, initialTaskStoreState as Fe, createAgentTaskFileDownloadLink as ze, isTerminalAgentTaskEventData as Be, agentTaskErrorFromEventData as Pe, shouldAppendCompletedToProgress as Le, getTerminalCreateAgentTaskResponse as Ae, createAgentTask as De, mapCreateAgentTaskParams as We, parseAgentTaskFileIdFromFencyFileHref as $e } from "@fencyai/js";
3
- import { StreamEventManager as Fn } from "@fencyai/js";
4
- import Ne, { createContext as me, useState as C, useRef as P, useEffect as A, useCallback as L, useContext as ge, useReducer as He, useMemo as z } from "react";
5
- import { motion as b, useInView as Ge, AnimatePresence as Oe } from "motion/react";
6
- import _e from "react-markdown";
7
- import { Prism as he } from "react-syntax-highlighter";
8
- import qe from "remark-gfm";
9
- import './assets/index.css';const ye = me(
1
+ import { jsxs as m, jsx as r, Fragment as R } from "react/jsx-runtime";
2
+ import { StreamEventManager as Ee, StreamCacheManager as Re, toStreamData as Ie, taskReducer as Fe, initialTaskStoreState as ze, createAgentTaskFileDownloadLink as Be, isTerminalAgentTaskEventData as Pe, agentTaskErrorFromEventData as Le, shouldAppendCompletedToProgress as Ae, getTerminalCreateAgentTaskResponse as De, createAgentTask as We, mapCreateAgentTaskParams as $e, parseAgentTaskFileIdFromFencyFileHref as Ne, parseAgentTaskMemoryFromFencyMemHref as He } from "@fencyai/js";
3
+ import { StreamEventManager as Pn } from "@fencyai/js";
4
+ import Ge, { createContext as ge, useState as w, useRef as A, useEffect as $, useCallback as L, useContext as he, useReducer as Oe, useMemo as F } from "react";
5
+ import { motion as v, useInView as _e, AnimatePresence as qe } from "motion/react";
6
+ import Ue from "react-markdown";
7
+ import { Prism as ye } from "react-syntax-highlighter";
8
+ import Qe from "remark-gfm";
9
+ import './assets/index.css';const fe = ge(
10
10
  void 0
11
11
  );
12
- function Cn({
12
+ function Rn({
13
13
  fency: e,
14
14
  fetchCreateStreamClientToken: o,
15
15
  children: t
16
16
  }) {
17
- const [n, i] = C(
17
+ const [n, i] = w(
18
18
  null
19
- ), [a, s] = C(!0), [p, d] = C(null), [u, h] = C([]), y = P(null), f = P(null);
20
- A(() => {
21
- e.then((g) => {
22
- i(g), s(!1);
23
- }).catch((g) => {
24
- d(g), s(!1);
19
+ ), [a, s] = w(!0), [p, d] = w(null), [u, g] = w([]), h = A(null), x = A(null);
20
+ $(() => {
21
+ e.then((c) => {
22
+ i(c), s(!1);
23
+ }).catch((c) => {
24
+ d(c), s(!1);
25
25
  });
26
- }, [e]), A(() => {
26
+ }, [e]), $(() => {
27
27
  if (!n) return;
28
- f.current || (f.current = new Me(n));
29
- const g = new Ee(
28
+ x.current || (x.current = new Ee(n));
29
+ const c = new Re(
30
30
  n,
31
31
  o
32
32
  );
33
- y.current = g, g.startPeriodicCleanup();
34
- const v = g.onChange((T) => {
35
- var R;
36
- h(T), (R = f.current) == null || R.updateStreams(T);
33
+ h.current = c, c.startPeriodicCleanup();
34
+ const y = c.onChange((S) => {
35
+ var M;
36
+ g(S), (M = x.current) == null || M.updateStreams(S);
37
37
  });
38
38
  return () => {
39
- var T;
40
- v(), g.destroy(), y.current = null, (T = f.current) == null || T.cleanup(), f.current = null;
39
+ var S;
40
+ y(), c.destroy(), h.current = null, (S = x.current) == null || S.cleanup(), x.current = null;
41
41
  };
42
42
  }, [n, o]);
43
- const S = L(
44
- async (g) => {
45
- if (!y.current)
43
+ const T = L(
44
+ async (c) => {
45
+ if (!h.current)
46
46
  throw new Error("Fency instance not initialized");
47
- return y.current.getOrCreateStream(g);
47
+ return h.current.getOrCreateStream(c);
48
48
  },
49
49
  []
50
50
  );
@@ -55,49 +55,49 @@ function Cn({
55
55
  ] });
56
56
  if (!n)
57
57
  return null;
58
- const c = u.length > 0 ? u[u.length - 1] : null, l = {
58
+ const f = u.length > 0 ? u[u.length - 1] : null, l = {
59
59
  fency: n,
60
60
  loading: a,
61
61
  error: p,
62
62
  activeStreams: u,
63
- latestStream: c,
64
- eventManager: f.current,
65
- getOrCreateStream: S
63
+ latestStream: f,
64
+ eventManager: x.current,
65
+ getOrCreateStream: T
66
66
  };
67
- return /* @__PURE__ */ r(ye.Provider, { value: l, children: t });
67
+ return /* @__PURE__ */ r(fe.Provider, { value: l, children: t });
68
68
  }
69
- function fe() {
70
- const e = ge(ye);
69
+ function xe() {
70
+ const e = he(fe);
71
71
  if (e === void 0)
72
72
  throw new Error("useFencyContext must be used within a FencyProvider");
73
73
  return e;
74
74
  }
75
- const Ue = (e) => {
76
- const o = fe(), [t, n] = C(null), i = P(
75
+ const je = (e) => {
76
+ const o = xe(), [t, n] = w(null), i = A(
77
77
  `subscriber-${Math.random().toString(36).substr(2, 9)}`
78
78
  );
79
- return A(() => {
79
+ return $(() => {
80
80
  if (!o.eventManager) return;
81
81
  const s = {
82
82
  onMessage: (d, u) => {
83
- var y, f, S;
84
- const h = Re(d);
85
- if (h)
86
- switch (h.type) {
83
+ var h, x, T;
84
+ const g = Ie(d);
85
+ if (g)
86
+ switch (g.type) {
87
87
  case "STREAM_TIMEOUT":
88
- (y = e == null ? void 0 : e.onStreamTimeout) == null || y.call(e, h);
88
+ (h = e == null ? void 0 : e.onStreamTimeout) == null || h.call(e, g);
89
89
  break;
90
90
  case "STREAM_NOT_FOUND":
91
- (f = e == null ? void 0 : e.onStreamNotFound) == null || f.call(e, h);
91
+ (x = e == null ? void 0 : e.onStreamNotFound) == null || x.call(e, g);
92
92
  break;
93
93
  case "AGENT_TASK_PROGRESS_ITEM_UPDATED":
94
- (S = e == null ? void 0 : e.onAgentTaskProgressItemUpdated) == null || S.call(e, h);
94
+ (T = e == null ? void 0 : e.onAgentTaskProgressItemUpdated) == null || T.call(e, g);
95
95
  break;
96
96
  }
97
97
  },
98
98
  onError: (d, u) => {
99
- var h;
100
- (h = e == null ? void 0 : e.onStreamError) == null || h.call(e, {
99
+ var g;
100
+ (g = e == null ? void 0 : e.onStreamError) == null || g.call(e, {
101
101
  streamId: d,
102
102
  error: {
103
103
  code: "UnknownError",
@@ -131,7 +131,7 @@ const Ue = (e) => {
131
131
  stream: t
132
132
  };
133
133
  };
134
- function Qe(e) {
134
+ function Ke(e) {
135
135
  var o, t;
136
136
  if (e && typeof e == "object") {
137
137
  const n = (t = (o = e.body) == null ? void 0 : o.error) == null ? void 0 : t.message;
@@ -143,158 +143,158 @@ function Qe(e) {
143
143
  }
144
144
  return e instanceof Error ? e.message : typeof e == "string" ? e : "Unknown error during agent task creation";
145
145
  }
146
- const Mn = (e) => {
147
- const o = fe(), [t, n] = He(Ie, Fe), i = P(/* @__PURE__ */ new Set()), a = P(/* @__PURE__ */ new Map()), s = P(/* @__PURE__ */ new Map()), p = L(
148
- (c) => {
149
- if (c)
146
+ const In = (e) => {
147
+ const o = xe(), [t, n] = Oe(Fe, ze), i = A(/* @__PURE__ */ new Set()), a = A(/* @__PURE__ */ new Map()), s = A(/* @__PURE__ */ new Map()), p = L(
148
+ (f) => {
149
+ if (f)
150
150
  return async (l) => {
151
- const { clientToken: g } = await c(l), v = await ze({
151
+ const { clientToken: c } = await f(l), y = await Be({
152
152
  pk: o.fency.publishableKey,
153
153
  baseUrl: o.fency.baseUrl,
154
- clientToken: g,
154
+ clientToken: c,
155
155
  agentTaskFileId: l
156
156
  });
157
- if (v.type === "error")
158
- throw new Error(v.error.message);
159
- const T = document.createElement("a");
160
- T.href = v.downloadLink, T.download = "", T.click();
157
+ if (y.type === "error")
158
+ throw new Error(y.error.message);
159
+ const S = document.createElement("a");
160
+ S.href = y.downloadLink, S.download = "", S.click();
161
161
  };
162
162
  },
163
163
  [o.fency.baseUrl, o.fency.publishableKey]
164
164
  ), d = L(
165
- (c, l) => {
166
- const g = t.tasks.filter(
167
- (v) => {
168
- var T;
169
- return v.streamId === c && v.loading && ((T = v.confirmedData) == null ? void 0 : T.taskId);
165
+ (f, l) => {
166
+ const c = t.tasks.filter(
167
+ (y) => {
168
+ var S;
169
+ return y.streamId === f && y.loading && ((S = y.confirmedData) == null ? void 0 : S.taskId);
170
170
  }
171
- ).map((v) => v.confirmedData.taskId);
172
- n({ type: "STREAM_FAILURE", streamId: c, error: l });
173
- for (const v of g) {
174
- i.current.delete(v);
175
- const T = a.current.get(v);
176
- T && (a.current.delete(v), T({ type: "error", error: l }));
171
+ ).map((y) => y.confirmedData.taskId);
172
+ n({ type: "STREAM_FAILURE", streamId: f, error: l });
173
+ for (const y of c) {
174
+ i.current.delete(y);
175
+ const S = a.current.get(y);
176
+ S && (a.current.delete(y), S({ type: "error", error: l }));
177
177
  }
178
178
  },
179
179
  [t.tasks]
180
180
  ), u = L(
181
- (c) => {
182
- var g;
183
- if (!i.current.has(c.agentTaskId)) return;
184
- const l = c.data;
185
- if (Be(l)) {
181
+ (f) => {
182
+ var c;
183
+ if (!i.current.has(f.agentTaskId)) return;
184
+ const l = f.data;
185
+ if (Pe(l)) {
186
186
  if (l.eventType === "Error") {
187
- const T = Pe(l);
188
- if (!T) return;
187
+ const S = Le(l);
188
+ if (!S) return;
189
189
  n({
190
190
  type: "TASK_ERROR",
191
- agentTaskId: c.agentTaskId,
192
- error: T
191
+ agentTaskId: f.agentTaskId,
192
+ error: S
193
193
  });
194
- const R = a.current.get(
195
- c.agentTaskId
194
+ const M = a.current.get(
195
+ f.agentTaskId
196
196
  );
197
- R && (a.current.delete(c.agentTaskId), R({ type: "error", error: T }));
197
+ M && (a.current.delete(f.agentTaskId), M({ type: "error", error: S }));
198
198
  return;
199
199
  }
200
200
  n({
201
201
  type: "TASK_COMPLETED",
202
- agentTaskId: c.agentTaskId,
202
+ agentTaskId: f.agentTaskId,
203
203
  data: l,
204
- item: Le(l) ? c : void 0
204
+ item: Ae(l) ? f : void 0
205
205
  });
206
- const v = a.current.get(
207
- c.agentTaskId
206
+ const y = a.current.get(
207
+ f.agentTaskId
208
208
  );
209
- if (v) {
210
- a.current.delete(c.agentTaskId);
211
- const T = Ae(
212
- c.streamId,
213
- c.agentTaskId,
209
+ if (y) {
210
+ a.current.delete(f.agentTaskId);
211
+ const S = De(
212
+ f.streamId,
213
+ f.agentTaskId,
214
214
  l
215
215
  );
216
- T && v(T);
216
+ S && y(S);
217
217
  }
218
218
  return;
219
219
  }
220
- (g = e.onAgentTaskProgressItemUpdated) == null || g.call(e, c), n({ type: "PROGRESS_ITEM", item: c });
220
+ (c = e.onAgentTaskProgressItemUpdated) == null || c.call(e, f), n({ type: "PROGRESS_ITEM", item: f });
221
221
  },
222
222
  [e]
223
- ), { createStream: h } = Ue({
223
+ ), { createStream: g } = je({
224
224
  onAgentTaskProgressItemUpdated: u,
225
- onStreamError: (c) => {
225
+ onStreamError: (f) => {
226
226
  var l;
227
- (l = e == null ? void 0 : e.onStreamError) == null || l.call(e, c), d(c.streamId, c.error);
227
+ (l = e == null ? void 0 : e.onStreamError) == null || l.call(e, f), d(f.streamId, f.error);
228
228
  },
229
- onStreamNotFound: (c) => {
229
+ onStreamNotFound: (f) => {
230
230
  var l;
231
- (l = e == null ? void 0 : e.onStreamNotFound) == null || l.call(e, c), d(c.streamId, {
231
+ (l = e == null ? void 0 : e.onStreamNotFound) == null || l.call(e, f), d(f.streamId, {
232
232
  code: "StreamNotFound",
233
233
  message: "Stream not found"
234
234
  });
235
235
  },
236
- onStreamTimeout: (c) => {
236
+ onStreamTimeout: (f) => {
237
237
  var l;
238
- (l = e == null ? void 0 : e.onStreamTimeout) == null || l.call(e, c), d(c.streamId, {
238
+ (l = e == null ? void 0 : e.onStreamTimeout) == null || l.call(e, f), d(f.streamId, {
239
239
  code: "StreamTimeout",
240
240
  message: "Stream timed out"
241
241
  });
242
242
  }
243
- }), y = L(
244
- async (c, l) => {
245
- var $;
246
- const g = `task-${Date.now()}-${Math.random().toString(36).slice(2, 9)}`, v = (l == null ? void 0 : l.fetchCreateAgentTaskClientToken) ?? e.fetchCreateAgentTaskClientToken;
247
- if (v === void 0)
243
+ }), h = L(
244
+ async (f, l) => {
245
+ var D;
246
+ const c = `task-${Date.now()}-${Math.random().toString(36).slice(2, 9)}`, y = (l == null ? void 0 : l.fetchCreateAgentTaskClientToken) ?? e.fetchCreateAgentTaskClientToken;
247
+ if (y === void 0)
248
248
  throw new Error(
249
249
  "fetchCreateAgentTaskClientToken must be provided either in useAgentTasks props or in createAgentTask options"
250
250
  );
251
- const T = (l == null ? void 0 : l.fetchAgentTaskFileDownloadClientToken) ?? e.fetchAgentTaskFileDownloadClientToken, R = await h();
252
- if (R.type === "success") {
253
- const G = (/* @__PURE__ */ new Date()).toISOString(), j = {
254
- taskKey: g,
255
- streamId: R.stream.id,
256
- triggeredAt: G,
251
+ const S = (l == null ? void 0 : l.fetchAgentTaskFileDownloadClientToken) ?? e.fetchAgentTaskFileDownloadClientToken, M = await g();
252
+ if (M.type === "success") {
253
+ const W = (/* @__PURE__ */ new Date()).toISOString(), B = {
254
+ taskKey: c,
255
+ streamId: M.stream.id,
256
+ triggeredAt: W,
257
257
  confirmedData: null,
258
258
  error: null,
259
- params: c,
259
+ params: f,
260
260
  progressItems: [],
261
261
  loading: !0,
262
262
  loadingText: l == null ? void 0 : l.loadingText
263
263
  };
264
- n({ type: "TASK_PENDING", task: j }), ($ = l == null ? void 0 : l.onTaskRegistered) == null || $.call(l, {
265
- ...j,
264
+ n({ type: "TASK_PENDING", task: B }), (D = l == null ? void 0 : l.onTaskRegistered) == null || D.call(l, {
265
+ ...B,
266
266
  downloadFile: p(
267
- T
267
+ S
268
268
  )
269
269
  });
270
270
  try {
271
- const { clientToken: O } = await v(), I = await De({
271
+ const { clientToken: N } = await y(), I = await We({
272
272
  pk: o.fency.publishableKey,
273
273
  baseUrl: o.fency.baseUrl,
274
- clientToken: O,
275
- streamToken: R.stream.token,
276
- request: We(c)
274
+ clientToken: N,
275
+ streamToken: M.stream.token,
276
+ request: $e(f)
277
277
  });
278
278
  if (I.type === "success" && I.agentTask) {
279
279
  i.current.add(
280
280
  I.agentTask.id
281
281
  );
282
- const F = p(
283
- T
282
+ const H = p(
283
+ S
284
284
  );
285
- return F && s.current.set(
285
+ return H && s.current.set(
286
286
  I.agentTask.id,
287
- F
287
+ H
288
288
  ), n({
289
289
  type: "TASK_CONFIRMED",
290
- taskKey: g,
290
+ taskKey: c,
291
291
  taskId: I.agentTask.id,
292
292
  createdAt: I.agentTask.createdAt
293
293
  }), await new Promise(
294
- (M) => {
294
+ (P) => {
295
295
  a.current.set(
296
296
  I.agentTask.id,
297
- M
297
+ P
298
298
  );
299
299
  }
300
300
  );
@@ -302,35 +302,35 @@ const Mn = (e) => {
302
302
  if (I.type === "error")
303
303
  return n({
304
304
  type: "TASK_API_ERROR",
305
- taskKey: g,
305
+ taskKey: c,
306
306
  error: I.error
307
307
  }), {
308
308
  type: "error",
309
309
  error: I.error
310
310
  };
311
311
  {
312
- const F = {
312
+ const H = {
313
313
  message: "No response received",
314
314
  code: "UnknownError"
315
315
  };
316
316
  return n({
317
317
  type: "TASK_API_ERROR",
318
- taskKey: g,
319
- error: F
318
+ taskKey: c,
319
+ error: H
320
320
  }), {
321
321
  type: "error",
322
- error: F
322
+ error: H
323
323
  };
324
324
  }
325
325
  }
326
- } catch (O) {
326
+ } catch (N) {
327
327
  const I = {
328
328
  code: "UnknownError",
329
- message: Qe(O)
329
+ message: Ke(N)
330
330
  };
331
331
  return n({
332
332
  type: "TASK_API_ERROR",
333
- taskKey: g,
333
+ taskKey: c,
334
334
  error: I
335
335
  }), {
336
336
  type: "error",
@@ -338,40 +338,43 @@ const Mn = (e) => {
338
338
  };
339
339
  }
340
340
  } else
341
- return console.error(R.error), R;
341
+ return console.error(M.error), M;
342
342
  },
343
343
  [
344
344
  o,
345
345
  p,
346
- h,
346
+ g,
347
347
  e.fetchCreateAgentTaskClientToken,
348
348
  e.fetchAgentTaskFileDownloadClientToken
349
349
  ]
350
- ), f = z(() => t.tasks.map((c) => {
350
+ ), x = F(() => t.tasks.map((f) => {
351
351
  var l;
352
352
  return {
353
- ...c,
354
- downloadFile: (l = c.confirmedData) != null && l.taskId ? s.current.get(c.confirmedData.taskId) : void 0
353
+ ...f,
354
+ downloadFile: (l = f.confirmedData) != null && l.taskId ? s.current.get(f.confirmedData.taskId) : void 0
355
355
  };
356
- }), [t.tasks]), S = z(() => {
357
- if (f.length !== 0)
358
- return [...f].sort((c, l) => new Date(l.triggeredAt).getTime() - new Date(c.triggeredAt).getTime())[0];
359
- }, [f]);
360
- return A(() => () => {
356
+ }), [t.tasks]), T = F(() => {
357
+ if (x.length !== 0)
358
+ return [...x].sort((f, l) => new Date(l.triggeredAt).getTime() - new Date(f.triggeredAt).getTime())[0];
359
+ }, [x]);
360
+ return $(() => () => {
361
361
  i.current.clear(), a.current.clear(), s.current.clear();
362
362
  }, []), {
363
- agentTasks: f,
364
- createAgentTask: y,
365
- latest: S
363
+ agentTasks: x,
364
+ createAgentTask: h,
365
+ latest: T
366
366
  };
367
367
  };
368
- function je(e) {
368
+ function Ve(e) {
369
369
  return e.progressItems.map((o, t) => {
370
370
  const n = e.progressItems[t + 1], i = n != null;
371
371
  let a;
372
372
  if (n != null && n.createdAt) {
373
373
  const s = new Date(o.createdAt).getTime(), p = new Date(n.createdAt).getTime();
374
- a = Math.round((p - s) / 1e3);
374
+ a = Math.max(
375
+ 0,
376
+ Math.round((p - s) / 1e3)
377
+ );
375
378
  }
376
379
  return {
377
380
  item: o,
@@ -381,7 +384,7 @@ function je(e) {
381
384
  };
382
385
  });
383
386
  }
384
- const Ke = {
387
+ const Xe = {
385
388
  'code[class*="language-"]': {
386
389
  color: "#f8f8f2",
387
390
  background: "none",
@@ -532,7 +535,7 @@ const Ke = {
532
535
  italic: {
533
536
  fontStyle: "italic"
534
537
  }
535
- }, Ve = {
538
+ }, Ye = {
536
539
  'code[class*="language-"]': {
537
540
  background: "hsl(230, 1%, 98%)",
538
541
  color: "hsl(230, 8%, 24%)",
@@ -1020,7 +1023,7 @@ const Ke = {
1020
1023
  ".prism-previewer-easing.prism-previewer-easing line": {
1021
1024
  stroke: "hsl(230, 8%, 24%)"
1022
1025
  }
1023
- }, xe = {
1026
+ }, ke = {
1024
1027
  textPrimary: "#1f2937",
1025
1028
  textSecondary: "#666",
1026
1029
  textMuted: "#94a3b8",
@@ -1044,7 +1047,7 @@ const Ke = {
1044
1047
  sourcesBadgeBg: "#f5f5f5",
1045
1048
  transparent: "transparent",
1046
1049
  reasoningLine: "#444"
1047
- }, Xe = {
1050
+ }, Je = {
1048
1051
  textPrimary: "#f0f6fc",
1049
1052
  textSecondary: "#9198a1",
1050
1053
  textMuted: "#8b949e",
@@ -1068,131 +1071,174 @@ const Ke = {
1068
1071
  sourcesBadgeBg: "#21262d",
1069
1072
  transparent: "transparent",
1070
1073
  reasoningLine: "#a1a8b0"
1071
- }, ke = me({
1074
+ }, Se = ge({
1072
1075
  theme: "light",
1073
- colors: xe
1076
+ colors: ke
1074
1077
  });
1075
- function Ye({
1078
+ function Ze({
1076
1079
  theme: e,
1077
1080
  children: o
1078
1081
  }) {
1079
- const t = z(
1082
+ const t = F(
1080
1083
  () => ({
1081
1084
  theme: e,
1082
- colors: e === "dark" ? Xe : xe
1085
+ colors: e === "dark" ? Je : ke
1083
1086
  }),
1084
1087
  [e]
1085
1088
  );
1086
- return /* @__PURE__ */ r(ke.Provider, { value: t, children: o });
1089
+ return /* @__PURE__ */ r(Se.Provider, { value: t, children: o });
1087
1090
  }
1088
- function k() {
1089
- return ge(ke);
1091
+ function b() {
1092
+ return he(Se);
1090
1093
  }
1091
- function Se(e) {
1092
- return e === "dark" ? Ke : Ve;
1094
+ function be(e) {
1095
+ return e === "dark" ? Xe : Ye;
1093
1096
  }
1094
- const _ = ({
1097
+ const U = ({
1095
1098
  text: e,
1096
- onFileDownload: o
1099
+ onFileDownload: o,
1100
+ onMemoryClick: t
1097
1101
  }) => {
1098
- const { theme: t } = k(), n = Se(t), [i, a] = C(
1102
+ const { theme: n } = b(), i = be(n), [a, s] = w(
1103
+ null
1104
+ ), [p, d] = w(
1099
1105
  null
1100
- ), [s, p] = C(!1), d = L(
1101
- (h) => {
1102
- o && (a(null), p(!0), (async () => {
1106
+ ), [u, g] = w(!1), [h, x] = w(!1), T = L(
1107
+ (y) => {
1108
+ o && (s(null), g(!0), (async () => {
1103
1109
  try {
1104
- await o(h);
1105
- } catch (y) {
1106
- a(
1107
- y instanceof Error ? y.message : "Download failed"
1110
+ await o(y);
1111
+ } catch (S) {
1112
+ s(
1113
+ S instanceof Error ? S.message : "Download failed"
1108
1114
  );
1109
1115
  } finally {
1110
- p(!1);
1116
+ g(!1);
1111
1117
  }
1112
1118
  })());
1113
1119
  },
1114
1120
  [o]
1115
- ), u = z(() => ({
1116
- code(h) {
1117
- const { children: y, className: f, node: S, ref: c, ...l } = h, g = /language-(\w+)/.exec(f || "");
1118
- return g ? /* @__PURE__ */ r(
1119
- he,
1120
- {
1121
- ...l,
1122
- PreTag: "div",
1123
- children: String(y).replace(/\n$/, ""),
1124
- language: g[1],
1125
- style: n
1121
+ ), f = L(
1122
+ (y) => {
1123
+ t && (d(null), x(!0), (async () => {
1124
+ try {
1125
+ await t(y);
1126
+ } catch (S) {
1127
+ d(
1128
+ S instanceof Error ? S.message : "Memory link action failed"
1129
+ );
1130
+ } finally {
1131
+ x(!1);
1126
1132
  }
1127
- ) : /* @__PURE__ */ r("code", { ...l, className: f, children: String(y) });
1133
+ })());
1128
1134
  },
1129
- a(h) {
1130
- const { children: y, href: f, ...S } = h, c = f ? $e(f) : null;
1131
- return c != null ? o ? /* @__PURE__ */ r("span", { className: "fency-file-download-wrap", children: /* @__PURE__ */ r(
1132
- "button",
1135
+ [t]
1136
+ ), l = F(() => ({
1137
+ code(y) {
1138
+ const { children: S, className: M, node: D, ref: W, ...B } = y, N = /language-(\w+)/.exec(M || "");
1139
+ return N ? /* @__PURE__ */ r(
1140
+ ye,
1133
1141
  {
1134
- type: "button",
1135
- className: "fency-file-download-button",
1136
- disabled: s,
1137
- onClick: () => d(c),
1138
- children: y
1142
+ ...B,
1143
+ PreTag: "div",
1144
+ children: String(S).replace(/\n$/, ""),
1145
+ language: N[1],
1146
+ style: i
1139
1147
  }
1140
- ) }) : /* @__PURE__ */ r("span", { className: "fency-file-download-wrap", children: /* @__PURE__ */ r(
1148
+ ) : /* @__PURE__ */ r("code", { ...B, className: M, children: String(S) });
1149
+ },
1150
+ a(y) {
1151
+ const { children: S, href: M, ...D } = y, W = M ? Ne(M) : null;
1152
+ if (W != null)
1153
+ return o ? /* @__PURE__ */ r("span", { className: "fency-file-download-wrap", children: /* @__PURE__ */ r(
1154
+ "button",
1155
+ {
1156
+ type: "button",
1157
+ className: "fency-file-download-button",
1158
+ disabled: u,
1159
+ onClick: () => T(W),
1160
+ children: S
1161
+ }
1162
+ ) }) : /* @__PURE__ */ r("span", { className: "fency-file-download-wrap", children: /* @__PURE__ */ r(
1163
+ "button",
1164
+ {
1165
+ type: "button",
1166
+ className: "fency-file-download-button",
1167
+ disabled: u,
1168
+ onClick: () => {
1169
+ console.error(
1170
+ "[fency] File download link clicked but no onFileDownload handler is configured. Pass fetchAgentTaskFileDownloadClientToken to useAgentTasks."
1171
+ ), s(
1172
+ "File download is not configured. Please provide fetchAgentTaskFileDownloadClientToken."
1173
+ );
1174
+ },
1175
+ children: S
1176
+ }
1177
+ ) });
1178
+ const B = M ? He(M) : null;
1179
+ return B != null ? t ? /* @__PURE__ */ r("span", { className: "fency-file-download-wrap", children: /* @__PURE__ */ r(
1141
1180
  "button",
1142
1181
  {
1143
1182
  type: "button",
1144
1183
  className: "fency-file-download-button",
1145
- disabled: s,
1146
- onClick: () => {
1147
- console.error(
1148
- "[fency] File download link clicked but no onFileDownload handler is configured. Pass fetchAgentTaskFileDownloadClientToken to useAgentTasks."
1149
- ), a(
1150
- "File download is not configured. Please provide fetchAgentTaskFileDownloadClientToken."
1151
- );
1152
- },
1153
- children: y
1184
+ disabled: h,
1185
+ onClick: () => f({
1186
+ source: {
1187
+ memoryId: B.memoryId,
1188
+ memoryTypeId: B.memoryTypeId ?? ""
1189
+ }
1190
+ }),
1191
+ children: S
1154
1192
  }
1155
- ) }) : /* @__PURE__ */ r(
1193
+ ) }) : /* @__PURE__ */ r("span", { children: S }) : /* @__PURE__ */ r(
1156
1194
  "a",
1157
1195
  {
1158
- href: f,
1196
+ href: M,
1159
1197
  target: "_blank",
1160
1198
  rel: "noopener noreferrer",
1161
- ...S,
1162
- children: y
1199
+ ...D,
1200
+ children: S
1163
1201
  }
1164
1202
  );
1165
1203
  }
1166
- }), [s, d, o, n]);
1204
+ }), [
1205
+ u,
1206
+ h,
1207
+ T,
1208
+ f,
1209
+ o,
1210
+ t,
1211
+ i
1212
+ ]), c = a ?? p;
1167
1213
  return /* @__PURE__ */ m("div", { style: { paddingBlock: "16px" }, children: [
1168
- i ? /* @__PURE__ */ r(
1214
+ c ? /* @__PURE__ */ r(
1169
1215
  "p",
1170
1216
  {
1171
1217
  role: "alert",
1172
1218
  style: { color: "#b91c1c", marginBottom: 8, fontSize: 14 },
1173
- children: i
1219
+ children: c
1174
1220
  }
1175
1221
  ) : null,
1176
1222
  /* @__PURE__ */ r(
1177
- b.div,
1223
+ v.div,
1178
1224
  {
1179
1225
  className: "fency-markdown-body-raw",
1180
1226
  initial: { opacity: 0, y: -10 },
1181
1227
  animate: { opacity: 1, y: 0 },
1182
1228
  transition: { duration: 0.3, delay: 0 },
1183
1229
  children: /* @__PURE__ */ r(
1184
- _e,
1230
+ Ue,
1185
1231
  {
1186
- remarkPlugins: [qe],
1187
- components: u,
1232
+ remarkPlugins: [Qe],
1233
+ components: l,
1188
1234
  children: e
1189
1235
  }
1190
1236
  )
1191
1237
  }
1192
1238
  )
1193
1239
  ] });
1194
- }, Je = ({ data: e }) => {
1195
- const { theme: o } = k(), t = Se(o), n = e.response.jsonResponse;
1240
+ }, er = ({ data: e }) => {
1241
+ const { theme: o } = b(), t = be(o), n = e.response.jsonResponse;
1196
1242
  let i;
1197
1243
  try {
1198
1244
  i = JSON.stringify(JSON.parse(n), null, 2);
@@ -1202,15 +1248,15 @@ const _ = ({
1202
1248
  ), i = n;
1203
1249
  }
1204
1250
  return /* @__PURE__ */ r("div", { id: "structured-chat-completion-response", children: /* @__PURE__ */ r(
1205
- b.div,
1251
+ v.div,
1206
1252
  {
1207
1253
  initial: { opacity: 0, y: -10 },
1208
1254
  animate: { opacity: 1, y: 0 },
1209
1255
  transition: { duration: 0.3, delay: 0 },
1210
- children: /* @__PURE__ */ r(he, { language: "json", style: t, PreTag: "div", children: i })
1256
+ children: /* @__PURE__ */ r(ye, { language: "json", style: t, PreTag: "div", children: i })
1211
1257
  }
1212
1258
  ) });
1213
- }, Ze = {
1259
+ }, rr = {
1214
1260
  en: {
1215
1261
  error: "Error",
1216
1262
  streaming: "Streaming...",
@@ -1298,6 +1344,33 @@ const _ = ({
1298
1344
  exploreExportingOne: "Loading memory data...",
1299
1345
  exploreRunCode: "Analyzing: {title}",
1300
1346
  exploreSetupSandbox: "Setting up environment...",
1347
+ exploreSetupSandboxPhrases: [
1348
+ "Spelunking...",
1349
+ "Bootstrapping...",
1350
+ "Concocting...",
1351
+ "Percolating...",
1352
+ "Cogitating...",
1353
+ "Befuddling...",
1354
+ "Reticulating...",
1355
+ "Discombobulating...",
1356
+ "Tomfoolering...",
1357
+ "Meandering...",
1358
+ "Tinkering...",
1359
+ "Germinating...",
1360
+ "Ruminating...",
1361
+ "Puttering...",
1362
+ "Scampering...",
1363
+ "Levitating...",
1364
+ "Noodling...",
1365
+ "Brewing...",
1366
+ "Simmering...",
1367
+ "Orchestrating...",
1368
+ "Manifesting...",
1369
+ "Flibbertigibbeting...",
1370
+ "Hullaballooing...",
1371
+ "Schlepping...",
1372
+ "Kwisatz-haderaching..."
1373
+ ],
1301
1374
  explorePlanning: "Planning approach...",
1302
1375
  exploreFindMemoriesQuery: "Finding memories: '{query}'",
1303
1376
  exploreFindMemoriesPrefix: "Finding memories: ",
@@ -1392,6 +1465,35 @@ const _ = ({
1392
1465
  exploreExportingOne: "Laster minedata...",
1393
1466
  exploreRunCode: "Analyserer: {title}",
1394
1467
  exploreSetupSandbox: "Setter opp miljø...",
1468
+ exploreSetupSandboxPhrases: [
1469
+ "Spelunker...",
1470
+ "Bootstrapper...",
1471
+ "Koker i kokekassen...",
1472
+ "Grubler...",
1473
+ "Filosoferer...",
1474
+ "Roter i data...",
1475
+ "Slinger i maskineriet...",
1476
+ "Forvirrer...",
1477
+ "Retikulerer...",
1478
+ "Discombobulerer...",
1479
+ "Tuller...",
1480
+ "Vandrer...",
1481
+ "Pusler...",
1482
+ "Spirer...",
1483
+ "Mumler...",
1484
+ "Pusler rundt...",
1485
+ "Skramler...",
1486
+ "Svever...",
1487
+ "Nudler...",
1488
+ "Brygger...",
1489
+ "Småkoker...",
1490
+ "Orkestrerer...",
1491
+ "Manifesterer...",
1492
+ "Flibbertigibbeter...",
1493
+ "Huller i vannet...",
1494
+ "Sleper...",
1495
+ "Kwisatz-haderacher..."
1496
+ ],
1395
1497
  explorePlanning: "Planlegger tilnærming...",
1396
1498
  exploreFindMemoriesQuery: "Finner minner: '{query}'",
1397
1499
  exploreFindMemoriesPrefix: "Finner minner: ",
@@ -1400,16 +1502,16 @@ const _ = ({
1400
1502
  copiedId: "Kopiert"
1401
1503
  }
1402
1504
  };
1403
- function er(e) {
1404
- return Ze[e];
1505
+ function nr(e) {
1506
+ return rr[e];
1405
1507
  }
1406
- function x(e, o) {
1508
+ function k(e, o) {
1407
1509
  return Object.entries(o).reduce(
1408
1510
  (t, [n, i]) => t.replace(`{${n}}`, String(i)),
1409
1511
  e
1410
1512
  );
1411
1513
  }
1412
- function Q(e, o) {
1514
+ function K(e, o) {
1413
1515
  const t = e.map((n) => `'${n}'`);
1414
1516
  if (o != null && t.length >= 2) {
1415
1517
  const n = t.pop();
@@ -1417,7 +1519,7 @@ function Q(e, o) {
1417
1519
  }
1418
1520
  return t.join(", ");
1419
1521
  }
1420
- function w({
1522
+ function C({
1421
1523
  text: e,
1422
1524
  duration: o = 2,
1423
1525
  delay: t = 0,
@@ -1428,15 +1530,15 @@ function w({
1428
1530
  once: p = !1,
1429
1531
  inViewMargin: d,
1430
1532
  spread: u = 2,
1431
- color: h,
1432
- shimmerColor: y,
1433
- direction: f = "fromBottom"
1533
+ color: g,
1534
+ shimmerColor: h,
1535
+ direction: x = "fromBottom"
1434
1536
  }) {
1435
- const { colors: S } = k(), c = h ?? S.shimmerBase, l = y ?? S.shimmerHighlight, g = P(null), v = Ge(g, { once: p, margin: d }), T = z(() => e.length * u, [e, u]), R = !s || v, $ = f === "fromBottom" ? "100% center" : "-100% center", G = f === "fromBottom" ? "0% center" : "200% center";
1537
+ const { colors: T } = b(), f = g ?? T.shimmerBase, l = h ?? T.shimmerHighlight, c = A(null), y = _e(c, { once: p, margin: d }), S = F(() => e.length * u, [e, u]), M = !s || y, D = x === "fromBottom" ? "100% center" : "-100% center", W = x === "fromBottom" ? "0% center" : "200% center";
1436
1538
  return /* @__PURE__ */ r(
1437
- b.span,
1539
+ v.span,
1438
1540
  {
1439
- ref: g,
1541
+ ref: c,
1440
1542
  className: a,
1441
1543
  style: {
1442
1544
  position: "relative",
@@ -1447,18 +1549,18 @@ function w({
1447
1549
  color: "transparent",
1448
1550
  WebkitTextFillColor: "transparent",
1449
1551
  backgroundRepeat: "no-repeat, padding-box",
1450
- "--spread": `${T}px`,
1451
- "--base-color": c,
1552
+ "--spread": `${S}px`,
1553
+ "--base-color": f,
1452
1554
  "--shimmer-color": l,
1453
1555
  "--shimmer-bg": "linear-gradient(90deg, transparent calc(50% - var(--spread)), var(--shimmer-color), transparent calc(50% + var(--spread)))",
1454
1556
  backgroundImage: "var(--shimmer-bg), linear-gradient(var(--base-color), var(--base-color))"
1455
1557
  },
1456
1558
  initial: {
1457
- backgroundPosition: $,
1559
+ backgroundPosition: D,
1458
1560
  opacity: 0
1459
1561
  },
1460
- animate: R ? {
1461
- backgroundPosition: G,
1562
+ animate: M ? {
1563
+ backgroundPosition: W,
1462
1564
  opacity: 1
1463
1565
  } : {},
1464
1566
  transition: {
@@ -1478,34 +1580,34 @@ function w({
1478
1580
  }
1479
1581
  );
1480
1582
  }
1481
- const K = 5, N = ({ data: e, isLatest: o = !1, durationSeconds: t, t: n, compactBelow: i = !1 }) => {
1482
- const { colors: a } = k(), [s, p] = C(!1), u = (e.memories ?? []).map((T) => T.memoryTitle), h = u.length > 0, y = h && u.length > K, f = y && !s ? u.slice(0, K) : u, S = u.length - K, c = !y || s, l = `${n.searchingFor}'${e.queryDescription}'`, g = h ? `${n.searchingIn}${Q(
1483
- f,
1484
- c ? n.and : void 0
1485
- )}` : "", v = h ? `${l}${g}` : `${n.searchingPrefix}${e.queryDescription}`;
1583
+ const V = 5, _ = ({ data: e, isLatest: o = !1, durationSeconds: t, t: n, compactBelow: i = !1 }) => {
1584
+ const { colors: a } = b(), [s, p] = w(!1), u = (e.memories ?? []).map((S) => S.memoryTitle), g = u.length > 0, h = g && u.length > V, x = h && !s ? u.slice(0, V) : u, T = u.length - V, f = !h || s, l = `${n.searchingFor}'${e.queryDescription}'`, c = g ? `${n.searchingIn}${K(
1585
+ x,
1586
+ f ? n.and : void 0
1587
+ )}` : "", y = g ? `${l}${c}` : `${n.searchingPrefix}${e.queryDescription}`;
1486
1588
  return /* @__PURE__ */ m(
1487
1589
  "div",
1488
1590
  {
1489
1591
  style: i ? { paddingTop: "16px", paddingBottom: "2px" } : { paddingBlock: "16px" },
1490
1592
  children: [
1491
1593
  /* @__PURE__ */ r(
1492
- b.div,
1594
+ v.div,
1493
1595
  {
1494
1596
  style: { color: a.textSecondary },
1495
1597
  initial: { opacity: 0, y: -10 },
1496
1598
  animate: { opacity: 1, y: 0 },
1497
1599
  transition: { duration: 0.3, delay: 0 },
1498
- children: o && !t && !y ? /* @__PURE__ */ r(w, { text: v, duration: 2.5, repeat: !0 }) : /* @__PURE__ */ m(E, { children: [
1499
- /* @__PURE__ */ r("span", { style: { color: a.textSecondary }, children: h ? /* @__PURE__ */ m(E, { children: [
1600
+ children: o && !t && !h ? /* @__PURE__ */ r(C, { text: y, duration: 2.5, repeat: !0 }) : /* @__PURE__ */ m(R, { children: [
1601
+ /* @__PURE__ */ r("span", { style: { color: a.textSecondary }, children: g ? /* @__PURE__ */ m(R, { children: [
1500
1602
  n.searchingFor,
1501
1603
  /* @__PURE__ */ m("span", { style: { fontWeight: 600 }, children: [
1502
1604
  "'",
1503
1605
  e.queryDescription,
1504
1606
  "'"
1505
1607
  ] }),
1506
- g
1608
+ c
1507
1609
  ] }) : `${n.searchingPrefix}${e.queryDescription}` }),
1508
- y && !s && /* @__PURE__ */ m(E, { children: [
1610
+ h && !s && /* @__PURE__ */ m(R, { children: [
1509
1611
  " ",
1510
1612
  /* @__PURE__ */ r(
1511
1613
  "button",
@@ -1523,13 +1625,13 @@ const K = 5, N = ({ data: e, isLatest: o = !1, durationSeconds: t, t: n, compact
1523
1625
  textDecoration: "underline",
1524
1626
  fontFamily: "inherit"
1525
1627
  },
1526
- children: x(n.moreMemories, {
1527
- n: S
1628
+ children: k(n.moreMemories, {
1629
+ n: T
1528
1630
  })
1529
1631
  }
1530
1632
  )
1531
1633
  ] }),
1532
- y && s && /* @__PURE__ */ m(E, { children: [
1634
+ h && s && /* @__PURE__ */ m(R, { children: [
1533
1635
  " ",
1534
1636
  /* @__PURE__ */ r(
1535
1637
  "button",
@@ -1563,18 +1665,18 @@ const K = 5, N = ({ data: e, isLatest: o = !1, durationSeconds: t, t: n, compact
1563
1665
  marginTop: "4px",
1564
1666
  fontStyle: "italic"
1565
1667
  },
1566
- children: x(n.tookSeconds, { n: t })
1668
+ children: k(n.tookSeconds, { n: t })
1567
1669
  }
1568
1670
  )
1569
1671
  ]
1570
1672
  }
1571
1673
  );
1572
- }, B = ({
1674
+ }, z = ({
1573
1675
  color: e,
1574
1676
  size: o = 24,
1575
1677
  borderWidth: t = 7
1576
1678
  }) => {
1577
- const { colors: n } = k(), i = e ?? n.checkmarkColor, a = o * 0.5;
1679
+ const { colors: n } = b(), i = e ?? n.checkmarkColor, a = o * 0.5;
1578
1680
  return /* @__PURE__ */ r(
1579
1681
  "span",
1580
1682
  {
@@ -1589,16 +1691,16 @@ const K = 5, N = ({ data: e, isLatest: o = !1, durationSeconds: t, t: n, compact
1589
1691
  }
1590
1692
  );
1591
1693
  };
1592
- function rr(e, o) {
1694
+ function or(e, o) {
1593
1695
  const t = Math.min(e.length, o.length);
1594
1696
  for (let n = t; n >= 0; n--)
1595
1697
  if (e.slice(-n) === o.slice(0, n)) return n;
1596
1698
  return 0;
1597
1699
  }
1598
- const nr = `
1700
+ const tr = `
1599
1701
 
1600
1702
  `;
1601
- function J(e) {
1703
+ function Z(e) {
1602
1704
  var t, n;
1603
1705
  if (e.length === 0) return "";
1604
1706
  let o = ((t = e[0]) == null ? void 0 : t.content) ?? "";
@@ -1609,52 +1711,52 @@ function J(e) {
1609
1711
  o = a;
1610
1712
  continue;
1611
1713
  }
1612
- const s = rr(o, a);
1613
- s === 0 ? o += nr + a : o += a.slice(s);
1714
+ const s = or(o, a);
1715
+ s === 0 ? o += tr + a : o += a.slice(s);
1614
1716
  }
1615
1717
  return o;
1616
1718
  }
1617
- function Z(e, o) {
1719
+ function ee(e, o) {
1618
1720
  if (e.length === 0) return "";
1619
1721
  if (e.length === 1)
1620
- return x(o.memorySearchPagesSingle, {
1722
+ return k(o.memorySearchPagesSingle, {
1621
1723
  n: e[0]
1622
1724
  });
1623
1725
  if (e.length === 2)
1624
- return x(o.memorySearchPagesTwo, {
1726
+ return k(o.memorySearchPagesTwo, {
1625
1727
  a: e[0],
1626
1728
  b: e[1]
1627
1729
  });
1628
1730
  const t = e[e.length - 1], n = e.slice(0, -1).join(", ");
1629
- return x(o.memorySearchPagesMultiple, {
1731
+ return k(o.memorySearchPagesMultiple, {
1630
1732
  list: n,
1631
1733
  n: t
1632
1734
  });
1633
1735
  }
1634
- function ee(e) {
1736
+ function re(e) {
1635
1737
  const o = /* @__PURE__ */ new Set();
1636
1738
  for (const t of e)
1637
1739
  for (const n of t.pageNumbers) o.add(n);
1638
1740
  return [...o].sort((t, n) => t - n);
1639
1741
  }
1640
- function re(e) {
1742
+ function ne(e) {
1641
1743
  const o = e.memoryTypeName.trim();
1642
1744
  if (o !== "") return o;
1643
1745
  if (e.memoryTypeId !== "") return e.memoryTypeId;
1644
1746
  }
1645
- function be(e) {
1747
+ function Te(e) {
1646
1748
  return e.chunks.filter((o) => o.relation === "MATCH").length;
1647
1749
  }
1648
- function or(e, o) {
1750
+ function ir(e, o) {
1649
1751
  let t = 0, n = 0;
1650
1752
  for (const s of e)
1651
- t += be(s), s.matchingChunkScore > n && (n = s.matchingChunkScore);
1652
- const i = t === 1 ? o.chunkFound : x(o.chunksFound, { n: t }), a = x(o.scoreLabel, {
1753
+ t += Te(s), s.matchingChunkScore > n && (n = s.matchingChunkScore);
1754
+ const i = t === 1 ? o.chunkFound : k(o.chunksFound, { n: t }), a = k(o.scoreLabel, {
1653
1755
  n: n.toFixed(2)
1654
1756
  });
1655
1757
  return `${i} - ${a}`;
1656
1758
  }
1657
- function tr(e) {
1759
+ function ar(e) {
1658
1760
  const o = [], t = /* @__PURE__ */ new Map();
1659
1761
  return e.forEach((n, i) => {
1660
1762
  let a = t.get(n.memoryId);
@@ -1670,12 +1772,12 @@ function tr(e) {
1670
1772
  a.items.push({ item: n, flatIndex: i });
1671
1773
  }), o.map((n) => t.get(n));
1672
1774
  }
1673
- function ir({
1775
+ function lr({
1674
1776
  items: e,
1675
1777
  onSearchResultClick: o,
1676
1778
  t
1677
1779
  }) {
1678
- const { colors: n } = k(), [i, a] = C(null), s = !!o;
1780
+ const { colors: n } = b(), [i, a] = w(null), s = !!o;
1679
1781
  return /* @__PURE__ */ r(
1680
1782
  "div",
1681
1783
  {
@@ -1688,23 +1790,23 @@ function ir({
1688
1790
  borderTop: `1px solid ${n.borderDivider}`
1689
1791
  },
1690
1792
  children: e.map((p, d) => {
1691
- const u = ee(
1793
+ const u = re(
1692
1794
  p.chunks
1693
- ), h = [
1694
- re(p),
1695
- x(t.scoreLabel, {
1795
+ ), g = [
1796
+ ne(p),
1797
+ k(t.scoreLabel, {
1696
1798
  n: p.matchingChunkScore.toFixed(2)
1697
1799
  }),
1698
- u.length > 0 ? Z(u, t) : t.pagesNotAvailable
1800
+ u.length > 0 ? ee(u, t) : t.pagesNotAvailable
1699
1801
  ].filter(
1700
- (c) => c != null && c !== ""
1701
- ), y = {
1802
+ (f) => f != null && f !== ""
1803
+ ), h = {
1702
1804
  memoryId: p.memoryId,
1703
1805
  memoryTitle: p.memoryTitle,
1704
1806
  memoryTypeId: p.memoryTypeId,
1705
1807
  memoryTypeName: p.memoryTypeName,
1706
1808
  pageNumbers: u
1707
- }, f = `${p.memoryId}-${d}`, S = i === f;
1809
+ }, x = `${p.memoryId}-${d}`, T = i === x;
1708
1810
  return /* @__PURE__ */ m(
1709
1811
  "div",
1710
1812
  {
@@ -1740,7 +1842,7 @@ function ir({
1740
1842
  whiteSpace: "pre-wrap",
1741
1843
  wordBreak: "break-word"
1742
1844
  },
1743
- children: J(p.chunks)
1845
+ children: Z(p.chunks)
1744
1846
  }
1745
1847
  ),
1746
1848
  /* @__PURE__ */ r(
@@ -1752,7 +1854,7 @@ function ir({
1752
1854
  color: n.textMuted,
1753
1855
  lineHeight: 1.35
1754
1856
  },
1755
- children: h.join(" · ")
1857
+ children: g.join(" · ")
1756
1858
  }
1757
1859
  )
1758
1860
  ]
@@ -1762,13 +1864,13 @@ function ir({
1762
1864
  "button",
1763
1865
  {
1764
1866
  type: "button",
1765
- "aria-busy": S,
1766
- disabled: S,
1867
+ "aria-busy": T,
1868
+ disabled: T,
1767
1869
  onClick: async () => {
1768
- a(f);
1870
+ a(x);
1769
1871
  try {
1770
1872
  await o(
1771
- y
1873
+ h
1772
1874
  );
1773
1875
  } finally {
1774
1876
  a(null);
@@ -1784,14 +1886,14 @@ function ir({
1784
1886
  background: n.bgChip,
1785
1887
  border: `1px solid ${n.bgChipBorder}`,
1786
1888
  borderRadius: 6,
1787
- cursor: S ? "wait" : "pointer",
1889
+ cursor: T ? "wait" : "pointer",
1788
1890
  fontFamily: "inherit",
1789
1891
  display: "inline-flex",
1790
1892
  alignItems: "center",
1791
1893
  gap: 8
1792
1894
  },
1793
1895
  children: [
1794
- S && /* @__PURE__ */ r(
1896
+ T && /* @__PURE__ */ r(
1795
1897
  "span",
1796
1898
  {
1797
1899
  className: "explore-memory-loader explore-memory-loader--callback",
@@ -1804,22 +1906,22 @@ function ir({
1804
1906
  )
1805
1907
  ]
1806
1908
  },
1807
- f
1909
+ x
1808
1910
  );
1809
1911
  })
1810
1912
  }
1811
1913
  );
1812
1914
  }
1813
- function ar({
1915
+ function sr({
1814
1916
  group: e,
1815
1917
  t: o,
1816
1918
  expanded: t,
1817
1919
  onToggle: n,
1818
1920
  onSearchResultClick: i
1819
1921
  }) {
1820
- const { colors: a } = k(), s = e.items.map((d) => d.item), p = s.some((d) => d.chunks.length > 0);
1922
+ const { colors: a } = b(), s = e.items.map((d) => d.item), p = s.some((d) => d.chunks.length > 0);
1821
1923
  return /* @__PURE__ */ m(
1822
- b.div,
1924
+ v.div,
1823
1925
  {
1824
1926
  initial: { opacity: 0 },
1825
1927
  animate: { opacity: 1 },
@@ -1846,7 +1948,7 @@ function ar({
1846
1948
  width: 32,
1847
1949
  paddingTop: 2
1848
1950
  },
1849
- children: /* @__PURE__ */ r(B, { size: 15, borderWidth: 2 })
1951
+ children: /* @__PURE__ */ r(z, { size: 15, borderWidth: 2 })
1850
1952
  }
1851
1953
  ),
1852
1954
  /* @__PURE__ */ m(
@@ -1892,7 +1994,7 @@ function ar({
1892
1994
  color: a.textSecondary,
1893
1995
  whiteSpace: "nowrap"
1894
1996
  },
1895
- children: or(s, o)
1997
+ children: ir(s, o)
1896
1998
  }
1897
1999
  ),
1898
2000
  p && /* @__PURE__ */ r(
@@ -1917,7 +2019,7 @@ function ar({
1917
2019
  }
1918
2020
  ),
1919
2021
  t && p && /* @__PURE__ */ r(
1920
- ir,
2022
+ lr,
1921
2023
  {
1922
2024
  items: s,
1923
2025
  onSearchResultClick: i,
@@ -1931,27 +2033,27 @@ function ar({
1931
2033
  }
1932
2034
  );
1933
2035
  }
1934
- function lr(e, o) {
1935
- return e === 1 ? o.chunkFound : x(o.chunksFound, { n: e });
2036
+ function cr(e, o) {
2037
+ return e === 1 ? o.chunkFound : k(o.chunksFound, { n: e });
1936
2038
  }
1937
- const ne = ({
2039
+ const oe = ({
1938
2040
  data: e,
1939
2041
  onSearchResultClick: o,
1940
2042
  t,
1941
2043
  compactTop: n = !1
1942
2044
  }) => {
1943
- const { colors: i } = k(), a = e.items, s = a.reduce(
1944
- (l, g) => l + be(g),
2045
+ const { colors: i } = b(), a = e.items, s = a.reduce(
2046
+ (l, c) => l + Te(c),
1945
2047
  0
1946
- ), p = new Set(a.map((l) => l.memoryId)).size, [d, u] = C({}), h = L((l) => {
1947
- u((g) => ({
1948
- ...g,
1949
- [l]: !g[l]
2048
+ ), p = new Set(a.map((l) => l.memoryId)).size, [d, u] = w({}), g = L((l) => {
2049
+ u((c) => ({
2050
+ ...c,
2051
+ [l]: !c[l]
1950
2052
  }));
1951
- }, []), y = z(() => tr(a), [a]), f = p === 1 ? t.memoryChatChunkResultsInOneMemory : x(t.memoryChatChunkResultsInMemories, {
2053
+ }, []), h = F(() => ar(a), [a]), x = p === 1 ? t.memoryChatChunkResultsInOneMemory : k(t.memoryChatChunkResultsInMemories, {
1952
2054
  n: p
1953
- }), S = `${lr(s, t)} ${f}`, c = n ? { paddingBottom: "10px" } : { paddingBlock: "10px" };
1954
- return a.length === 0 ? /* @__PURE__ */ r("div", { style: c, children: /* @__PURE__ */ r(
2055
+ }), T = `${cr(s, t)} ${x}`, f = n ? { paddingBottom: "10px" } : { paddingBlock: "10px" };
2056
+ return a.length === 0 ? /* @__PURE__ */ r("div", { style: f, children: /* @__PURE__ */ r(
1955
2057
  "div",
1956
2058
  {
1957
2059
  style: {
@@ -1961,14 +2063,14 @@ const ne = ({
1961
2063
  },
1962
2064
  children: t.memorySearchExploreNoResults
1963
2065
  }
1964
- ) }) : /* @__PURE__ */ m("div", { style: c, children: [
1965
- y.map((l) => /* @__PURE__ */ r(
1966
- ar,
2066
+ ) }) : /* @__PURE__ */ m("div", { style: f, children: [
2067
+ h.map((l) => /* @__PURE__ */ r(
2068
+ sr,
1967
2069
  {
1968
2070
  group: l,
1969
2071
  t,
1970
2072
  expanded: d[l.memoryId] === !0,
1971
- onToggle: () => h(l.memoryId),
2073
+ onToggle: () => g(l.memoryId),
1972
2074
  onSearchResultClick: o
1973
2075
  },
1974
2076
  l.memoryId
@@ -1982,12 +2084,12 @@ const ne = ({
1982
2084
  marginTop: "4px",
1983
2085
  fontStyle: "italic"
1984
2086
  },
1985
- children: S
2087
+ children: T
1986
2088
  }
1987
2089
  )
1988
2090
  ] });
1989
2091
  };
1990
- function sr(e) {
2092
+ function dr(e) {
1991
2093
  return {
1992
2094
  taskType: "MemoryChat",
1993
2095
  eventType: "Search",
@@ -1995,25 +2097,25 @@ function sr(e) {
1995
2097
  ...e.input.memories !== void 0 && e.input.memories.length > 0 ? { memories: e.input.memories } : {}
1996
2098
  };
1997
2099
  }
1998
- const cr = ({
2100
+ const pr = ({
1999
2101
  data: e,
2000
2102
  isLatest: o = !1,
2001
2103
  durationSeconds: t,
2002
2104
  t: n,
2003
2105
  onSearchResultClick: i
2004
2106
  }) => {
2005
- const a = sr(e);
2107
+ const a = dr(e);
2006
2108
  return e.items === void 0 ? /* @__PURE__ */ r(
2007
- N,
2109
+ _,
2008
2110
  {
2009
2111
  data: a,
2010
2112
  isLatest: o,
2011
2113
  durationSeconds: t,
2012
2114
  t: n
2013
2115
  }
2014
- ) : /* @__PURE__ */ m(E, { children: [
2116
+ ) : /* @__PURE__ */ m(R, { children: [
2015
2117
  /* @__PURE__ */ r(
2016
- N,
2118
+ _,
2017
2119
  {
2018
2120
  data: a,
2019
2121
  isLatest: !1,
@@ -2023,7 +2125,7 @@ const cr = ({
2023
2125
  }
2024
2126
  ),
2025
2127
  /* @__PURE__ */ r(
2026
- ne,
2128
+ oe,
2027
2129
  {
2028
2130
  data: {
2029
2131
  taskType: "MemoryChat",
@@ -2036,14 +2138,14 @@ const cr = ({
2036
2138
  }
2037
2139
  )
2038
2140
  ] });
2039
- }, V = 5, dr = ({ data: e, isLatest: o = !1, durationSeconds: t, t: n }) => {
2040
- const { colors: i } = k(), [a, s] = C(!1), p = e.titles, d = p.length > 0, u = d && p.length > V, h = u && !a ? p.slice(0, V) : p, y = p.length - V, f = !u || a, S = d ? `${n.findingMemoriesIn}${Q(
2041
- h,
2042
- f ? n.and : void 0
2141
+ }, X = 5, ur = ({ data: e, isLatest: o = !1, durationSeconds: t, t: n }) => {
2142
+ const { colors: i } = b(), [a, s] = w(!1), p = e.titles, d = p.length > 0, u = d && p.length > X, g = u && !a ? p.slice(0, X) : p, h = p.length - X, x = !u || a, T = d ? `${n.findingMemoriesIn}${K(
2143
+ g,
2144
+ x ? n.and : void 0
2043
2145
  )}` : n.findingMemories;
2044
2146
  return /* @__PURE__ */ m("div", { style: { paddingBlock: "16px" }, children: [
2045
2147
  /* @__PURE__ */ r(
2046
- b.div,
2148
+ v.div,
2047
2149
  {
2048
2150
  style: {
2049
2151
  color: i.textSecondary
@@ -2051,9 +2153,9 @@ const cr = ({
2051
2153
  initial: { opacity: 0, y: -10 },
2052
2154
  animate: { opacity: 1, y: 0 },
2053
2155
  transition: { duration: 0.3, delay: 0 },
2054
- children: o && !t && !u ? /* @__PURE__ */ r(w, { text: S, duration: 2.5, repeat: !0 }) : /* @__PURE__ */ m(E, { children: [
2055
- /* @__PURE__ */ r("span", { style: { color: i.textSecondary }, children: S }),
2056
- u && !a && /* @__PURE__ */ m(E, { children: [
2156
+ children: o && !t && !u ? /* @__PURE__ */ r(C, { text: T, duration: 2.5, repeat: !0 }) : /* @__PURE__ */ m(R, { children: [
2157
+ /* @__PURE__ */ r("span", { style: { color: i.textSecondary }, children: T }),
2158
+ u && !a && /* @__PURE__ */ m(R, { children: [
2057
2159
  " ",
2058
2160
  /* @__PURE__ */ r(
2059
2161
  "button",
@@ -2071,13 +2173,13 @@ const cr = ({
2071
2173
  textDecoration: "underline",
2072
2174
  fontFamily: "inherit"
2073
2175
  },
2074
- children: x(n.moreMemories, {
2075
- n: y
2176
+ children: k(n.moreMemories, {
2177
+ n: h
2076
2178
  })
2077
2179
  }
2078
2180
  )
2079
2181
  ] }),
2080
- u && a && /* @__PURE__ */ m(E, { children: [
2182
+ u && a && /* @__PURE__ */ m(R, { children: [
2081
2183
  " ",
2082
2184
  /* @__PURE__ */ r(
2083
2185
  "button",
@@ -2111,25 +2213,25 @@ const cr = ({
2111
2213
  marginTop: "4px",
2112
2214
  fontStyle: "italic"
2113
2215
  },
2114
- children: x(n.tookSeconds, { n: t })
2216
+ children: k(n.tookSeconds, { n: t })
2115
2217
  }
2116
2218
  )
2117
2219
  ] });
2118
- }, X = 5, pr = ({ data: e, t: o }) => {
2119
- const { colors: t } = k(), [n, i] = C(!1), s = e.memories.map((c) => c.memoryTitle), p = s.length > 0, d = p && s.length > X, u = d && !n ? s.slice(0, X) : s, h = s.length - X, y = !d || n, f = s.length === 1 ? o.memoryFound : o.memoriesFoundPrefix, S = p ? `${f}${Q(
2220
+ }, Y = 5, mr = ({ data: e, t: o }) => {
2221
+ const { colors: t } = b(), [n, i] = w(!1), s = e.memories.map((f) => f.memoryTitle), p = s.length > 0, d = p && s.length > Y, u = d && !n ? s.slice(0, Y) : s, g = s.length - Y, h = !d || n, x = s.length === 1 ? o.memoryFound : o.memoriesFoundPrefix, T = p ? `${x}${K(
2120
2222
  u,
2121
- y ? o.and : void 0
2223
+ h ? o.and : void 0
2122
2224
  )}` : o.memoriesFound;
2123
2225
  return /* @__PURE__ */ r("div", { style: { paddingBlock: "16px" }, children: /* @__PURE__ */ r(
2124
- b.div,
2226
+ v.div,
2125
2227
  {
2126
2228
  style: { color: t.textSecondary },
2127
2229
  initial: { opacity: 0, y: -10 },
2128
2230
  animate: { opacity: 1, y: 0 },
2129
2231
  transition: { duration: 0.3, delay: 0 },
2130
- children: /* @__PURE__ */ m(E, { children: [
2131
- /* @__PURE__ */ r("span", { style: { color: t.textSecondary }, children: S }),
2132
- d && !n && /* @__PURE__ */ m(E, { children: [
2232
+ children: /* @__PURE__ */ m(R, { children: [
2233
+ /* @__PURE__ */ r("span", { style: { color: t.textSecondary }, children: T }),
2234
+ d && !n && /* @__PURE__ */ m(R, { children: [
2133
2235
  " ",
2134
2236
  /* @__PURE__ */ r(
2135
2237
  "button",
@@ -2147,13 +2249,13 @@ const cr = ({
2147
2249
  textDecoration: "underline",
2148
2250
  fontFamily: "inherit"
2149
2251
  },
2150
- children: x(o.moreMemories, {
2151
- n: h
2252
+ children: k(o.moreMemories, {
2253
+ n: g
2152
2254
  })
2153
2255
  }
2154
2256
  )
2155
2257
  ] }),
2156
- d && n && /* @__PURE__ */ m(E, { children: [
2258
+ d && n && /* @__PURE__ */ m(R, { children: [
2157
2259
  " ",
2158
2260
  /* @__PURE__ */ r(
2159
2261
  "button",
@@ -2178,11 +2280,11 @@ const cr = ({
2178
2280
  ] })
2179
2281
  }
2180
2282
  ) });
2181
- }, ae = ({ isLatest: e = !1, durationSeconds: o, t }) => {
2182
- const { colors: n } = k(), i = t.addingSources;
2283
+ }, le = ({ isLatest: e = !1, durationSeconds: o, t }) => {
2284
+ const { colors: n } = b(), i = t.addingSources;
2183
2285
  return /* @__PURE__ */ m("div", { style: { paddingBlock: "16px" }, children: [
2184
2286
  /* @__PURE__ */ r(
2185
- b.div,
2287
+ v.div,
2186
2288
  {
2187
2289
  style: {
2188
2290
  display: "flex",
@@ -2193,7 +2295,7 @@ const cr = ({
2193
2295
  initial: { opacity: 0, y: -10 },
2194
2296
  animate: { opacity: 1, y: 0 },
2195
2297
  transition: { duration: 0.3, delay: 0 },
2196
- children: e && !o ? /* @__PURE__ */ r(w, { text: i, duration: 2.5, repeat: !0 }) : /* @__PURE__ */ r("span", { style: { color: n.textSecondary }, children: i })
2298
+ children: e && !o ? /* @__PURE__ */ r(C, { text: i, duration: 2.5, repeat: !0 }) : /* @__PURE__ */ r("span", { style: { color: n.textSecondary }, children: i })
2197
2299
  }
2198
2300
  ),
2199
2301
  o !== void 0 && /* @__PURE__ */ r(
@@ -2205,28 +2307,28 @@ const cr = ({
2205
2307
  marginTop: "4px",
2206
2308
  fontStyle: "italic"
2207
2309
  },
2208
- children: x(t.tookSeconds, { n: o })
2310
+ children: k(t.tookSeconds, { n: o })
2209
2311
  }
2210
2312
  )
2211
2313
  ] });
2212
2314
  };
2213
- function ur(e, o) {
2315
+ function gr(e, o) {
2214
2316
  if (e.length === 0) return "";
2215
2317
  if (e.length === 1)
2216
- return x(o.pageSingle, { n: e[0] });
2318
+ return k(o.pageSingle, { n: e[0] });
2217
2319
  if (e.length === 2)
2218
- return x(o.pageTwo, {
2320
+ return k(o.pageTwo, {
2219
2321
  a: e[0],
2220
2322
  b: e[1]
2221
2323
  });
2222
2324
  const t = e[e.length - 1], n = e.slice(0, -1).join(", ");
2223
- return x(o.pageMultiple, { list: n, n: t });
2325
+ return k(o.pageMultiple, { list: n, n: t });
2224
2326
  }
2225
- const Te = ({ data: e, onSourceClick: o, t }) => {
2226
- const { colors: n } = k(), [i, a] = C(null);
2327
+ const ve = ({ data: e, onSourceClick: o, t }) => {
2328
+ const { colors: n } = b(), [i, a] = w(null);
2227
2329
  return /* @__PURE__ */ m("div", { style: { paddingBlock: "16px" }, children: [
2228
2330
  /* @__PURE__ */ r(
2229
- b.div,
2331
+ v.div,
2230
2332
  {
2231
2333
  style: {
2232
2334
  marginBottom: "10px",
@@ -2243,7 +2345,7 @@ const Te = ({ data: e, onSourceClick: o, t }) => {
2243
2345
  }
2244
2346
  ),
2245
2347
  /* @__PURE__ */ r("div", { style: { display: "flex", flexWrap: "wrap", gap: "8px" }, children: e.sources.length === 0 ? /* @__PURE__ */ r("span", { style: { fontSize: "13px", color: n.textTertiary }, children: t.noSources }) : e.sources.map((s, p) => /* @__PURE__ */ r(
2246
- mr,
2348
+ hr,
2247
2349
  {
2248
2350
  source: s,
2249
2351
  index: p,
@@ -2255,7 +2357,7 @@ const Te = ({ data: e, onSourceClick: o, t }) => {
2255
2357
  s.memoryId
2256
2358
  )) })
2257
2359
  ] });
2258
- }, mr = ({
2360
+ }, hr = ({
2259
2361
  source: e,
2260
2362
  index: o,
2261
2363
  loadingMemoryId: t,
@@ -2263,15 +2365,15 @@ const Te = ({ data: e, onSourceClick: o, t }) => {
2263
2365
  onSourceClick: i,
2264
2366
  t: a
2265
2367
  }) => {
2266
- const { colors: s } = k(), [p, d] = C(!1), u = !!i, h = t === e.memoryId, y = e.pageNumbers ?? [], f = ur(y, a);
2368
+ const { colors: s } = b(), [p, d] = w(!1), u = !!i, g = t === e.memoryId, h = e.pageNumbers ?? [], x = gr(h, a);
2267
2369
  return /* @__PURE__ */ m(
2268
- b.div,
2370
+ v.div,
2269
2371
  {
2270
- "aria-busy": h,
2372
+ "aria-busy": g,
2271
2373
  initial: { opacity: 0, scale: 0.9 },
2272
2374
  animate: { opacity: 1, scale: 1 },
2273
2375
  transition: { duration: 0.25, delay: o * 0.05 },
2274
- onClick: u && !h ? async () => {
2376
+ onClick: u && !g ? async () => {
2275
2377
  n(e.memoryId);
2276
2378
  try {
2277
2379
  await i({
@@ -2279,14 +2381,14 @@ const Te = ({ data: e, onSourceClick: o, t }) => {
2279
2381
  memoryTitle: e.memoryTitle,
2280
2382
  memoryTypeId: e.memoryTypeId,
2281
2383
  memoryTypeName: e.memoryTypeName,
2282
- pageNumbers: [...y]
2384
+ pageNumbers: [...h]
2283
2385
  });
2284
2386
  } finally {
2285
2387
  n(null);
2286
2388
  }
2287
2389
  } : void 0,
2288
- onMouseEnter: u && !h ? () => d(!0) : void 0,
2289
- onMouseLeave: u && !h ? () => d(!1) : void 0,
2390
+ onMouseEnter: u && !g ? () => d(!0) : void 0,
2391
+ onMouseLeave: u && !g ? () => d(!1) : void 0,
2290
2392
  style: {
2291
2393
  display: "inline-flex",
2292
2394
  flexDirection: "column",
@@ -2295,10 +2397,10 @@ const Te = ({ data: e, onSourceClick: o, t }) => {
2295
2397
  borderRadius: "6px",
2296
2398
  border: `1px solid ${s.borderStrong}`,
2297
2399
  backgroundColor: p ? s.sourcesBadgeBg : s.transparent,
2298
- cursor: u && !h ? "pointer" : h ? "wait" : "default",
2400
+ cursor: u && !g ? "pointer" : g ? "wait" : "default",
2299
2401
  transition: "background-color 0.15s ease",
2300
2402
  userSelect: "none",
2301
- pointerEvents: h ? "none" : void 0
2403
+ pointerEvents: g ? "none" : void 0
2302
2404
  },
2303
2405
  children: [
2304
2406
  /* @__PURE__ */ m(
@@ -2313,7 +2415,7 @@ const Te = ({ data: e, onSourceClick: o, t }) => {
2313
2415
  gap: 8
2314
2416
  },
2315
2417
  children: [
2316
- h && /* @__PURE__ */ r(
2418
+ g && /* @__PURE__ */ r(
2317
2419
  "span",
2318
2420
  {
2319
2421
  className: "explore-memory-loader explore-memory-loader--callback",
@@ -2324,16 +2426,16 @@ const Te = ({ data: e, onSourceClick: o, t }) => {
2324
2426
  ]
2325
2427
  }
2326
2428
  ),
2327
- f && /* @__PURE__ */ r("span", { style: { fontSize: "12px", color: s.textSecondary }, children: f })
2429
+ x && /* @__PURE__ */ r("span", { style: { fontSize: "12px", color: s.textSecondary }, children: x })
2328
2430
  ]
2329
2431
  }
2330
2432
  );
2331
- }, W = ({
2433
+ }, O = ({
2332
2434
  color: e,
2333
2435
  size: o = 32,
2334
2436
  lineWidth: t = 2
2335
2437
  }) => {
2336
- const { colors: n } = k(), i = e ?? n.xmarkColor, a = o + 1, s = (o - t) / 2, p = (o - a) / 2, d = {
2438
+ const { colors: n } = b(), i = e ?? n.xmarkColor, a = o + 1, s = (o - t) / 2, p = (o - a) / 2, d = {
2337
2439
  position: "absolute",
2338
2440
  left: s,
2339
2441
  top: p,
@@ -2373,26 +2475,26 @@ const Te = ({ data: e, onSourceClick: o, t }) => {
2373
2475
  }
2374
2476
  );
2375
2477
  };
2376
- function gr({
2478
+ function yr({
2377
2479
  memory: e,
2378
2480
  completed: o
2379
2481
  }) {
2380
- return e.error != null ? /* @__PURE__ */ r(W, { size: 15, lineWidth: 2 }) : e.result != null ? /* @__PURE__ */ r(B, { size: 15, borderWidth: 2 }) : o ? /* @__PURE__ */ r(B, { size: 15, borderWidth: 2 }) : /* @__PURE__ */ r("span", { className: "explore-memory-loader" });
2482
+ return e.error != null ? /* @__PURE__ */ r(O, { size: 15, lineWidth: 2 }) : e.result != null ? /* @__PURE__ */ r(z, { size: 15, borderWidth: 2 }) : o ? /* @__PURE__ */ r(z, { size: 15, borderWidth: 2 }) : /* @__PURE__ */ r("span", { className: "explore-memory-loader" });
2381
2483
  }
2382
- const le = 80;
2383
- function hr({
2484
+ const se = 80;
2485
+ function fr({
2384
2486
  memory: e,
2385
2487
  completed: o,
2386
2488
  t
2387
2489
  }) {
2388
- const { colors: n } = k(), [i, a] = C(!1), s = e.result ?? e.error, p = s != null && s.length > le, d = s != null ? i || !p ? s : `${s.slice(0, le)}...` : void 0, u = p, h = e.error != null;
2490
+ const { colors: n } = b(), [i, a] = w(!1), s = e.result ?? e.error, p = s != null && s.length > se, d = s != null ? i || !p ? s : `${s.slice(0, se)}...` : void 0, u = p, g = e.error != null;
2389
2491
  return /* @__PURE__ */ m(
2390
- b.div,
2492
+ v.div,
2391
2493
  {
2392
2494
  initial: { opacity: 0 },
2393
2495
  animate: { opacity: 1 },
2394
2496
  transition: { duration: 0.25 },
2395
- onClick: u ? () => a((y) => !y) : void 0,
2497
+ onClick: u ? () => a((h) => !h) : void 0,
2396
2498
  style: {
2397
2499
  paddingTop: "12px",
2398
2500
  paddingBottom: "12px",
@@ -2415,7 +2517,7 @@ function hr({
2415
2517
  flexShrink: 0,
2416
2518
  width: 32
2417
2519
  },
2418
- children: /* @__PURE__ */ r(gr, { memory: e, completed: o })
2520
+ children: /* @__PURE__ */ r(yr, { memory: e, completed: o })
2419
2521
  }
2420
2522
  ),
2421
2523
  /* @__PURE__ */ m(
@@ -2440,7 +2542,7 @@ function hr({
2440
2542
  {
2441
2543
  style: {
2442
2544
  fontSize: 12,
2443
- color: h ? n.textError : n.textSecondary,
2545
+ color: g ? n.textError : n.textSecondary,
2444
2546
  lineHeight: 1.4,
2445
2547
  whiteSpace: i ? "pre-wrap" : void 0
2446
2548
  },
@@ -2465,27 +2567,27 @@ function hr({
2465
2567
  }
2466
2568
  );
2467
2569
  }
2468
- const yr = ({ data: e, completed: o, t }) => /* @__PURE__ */ r("div", { style: { paddingTop: "0px", paddingBottom: "10px" }, children: e.memories.map((n) => /* @__PURE__ */ r(
2469
- hr,
2570
+ const xr = ({ data: e, completed: o, t }) => /* @__PURE__ */ r("div", { style: { paddingTop: "0px", paddingBottom: "10px" }, children: e.memories.map((n) => /* @__PURE__ */ r(
2571
+ fr,
2470
2572
  {
2471
2573
  memory: n,
2472
2574
  completed: o,
2473
2575
  t
2474
2576
  },
2475
2577
  n.memoryId
2476
- )) }), se = 80;
2477
- function fr(e) {
2578
+ )) }), ce = 80;
2579
+ function kr(e) {
2478
2580
  try {
2479
2581
  return new URL(e).hostname;
2480
2582
  } catch {
2481
2583
  return e;
2482
2584
  }
2483
2585
  }
2484
- function xr({
2586
+ function Sr({
2485
2587
  item: e,
2486
2588
  t: o
2487
2589
  }) {
2488
- const { colors: t } = k(), [n, i] = C(!1), a = e.description ?? "", s = a.length > se, p = a.length === 0 ? void 0 : n || !s ? a : `${a.slice(0, se)}...`;
2590
+ const { colors: t } = b(), [n, i] = w(!1), a = e.description ?? "", s = a.length > ce, p = a.length === 0 ? void 0 : n || !s ? a : `${a.slice(0, ce)}...`;
2489
2591
  return /* @__PURE__ */ m(
2490
2592
  "div",
2491
2593
  {
@@ -2529,11 +2631,11 @@ function xr({
2529
2631
  children: [
2530
2632
  e.rank,
2531
2633
  ". ",
2532
- fr(e.link)
2634
+ kr(e.link)
2533
2635
  ]
2534
2636
  }
2535
2637
  ),
2536
- p != null && /* @__PURE__ */ m(E, { children: [
2638
+ p != null && /* @__PURE__ */ m(R, { children: [
2537
2639
  /* @__PURE__ */ r(
2538
2640
  "span",
2539
2641
  {
@@ -2565,31 +2667,31 @@ function xr({
2565
2667
  }
2566
2668
  );
2567
2669
  }
2568
- function ve(e, o) {
2670
+ function we(e, o) {
2569
2671
  const t = e.input.countryCode, n = e.input.query;
2570
- return t != null && t !== "" ? x(o.googleSearchingForWithCountry, {
2672
+ return t != null && t !== "" ? k(o.googleSearchingForWithCountry, {
2571
2673
  query: n,
2572
2674
  country: t
2573
- }) : x(o.googleSearchingFor, {
2675
+ }) : k(o.googleSearchingFor, {
2574
2676
  query: n
2575
2677
  });
2576
2678
  }
2577
- function kr({
2679
+ function br({
2578
2680
  data: e,
2579
2681
  isLatest: o,
2580
2682
  durationSeconds: t,
2581
2683
  t: n
2582
2684
  }) {
2583
- const { colors: i } = k(), a = ve(e, n);
2685
+ const { colors: i } = b(), a = we(e, n);
2584
2686
  return /* @__PURE__ */ m("div", { style: { paddingBlock: "16px" }, children: [
2585
2687
  /* @__PURE__ */ r(
2586
- b.div,
2688
+ v.div,
2587
2689
  {
2588
2690
  style: { color: i.textSecondary },
2589
2691
  initial: { opacity: 0, y: -10 },
2590
2692
  animate: { opacity: 1, y: 0 },
2591
2693
  transition: { duration: 0.3, delay: 0 },
2592
- children: o && !t ? /* @__PURE__ */ r(w, { text: a, duration: 2.5, repeat: !0 }) : /* @__PURE__ */ r("span", { style: { color: i.textSecondary }, children: a })
2694
+ children: o && !t ? /* @__PURE__ */ r(C, { text: a, duration: 2.5, repeat: !0 }) : /* @__PURE__ */ r("span", { style: { color: i.textSecondary }, children: a })
2593
2695
  }
2594
2696
  ),
2595
2697
  t !== void 0 && /* @__PURE__ */ r(
@@ -2601,16 +2703,16 @@ function kr({
2601
2703
  marginTop: "4px",
2602
2704
  fontStyle: "italic"
2603
2705
  },
2604
- children: x(n.tookSeconds, { n: t })
2706
+ children: k(n.tookSeconds, { n: t })
2605
2707
  }
2606
2708
  )
2607
2709
  ] });
2608
2710
  }
2609
- function Sr({
2711
+ function Tr({
2610
2712
  data: e,
2611
2713
  t: o
2612
2714
  }) {
2613
- const { colors: t } = k(), [n, i] = C(!1), a = z(() => [...e.results ?? []].sort((h, y) => h.rank - y.rank), [e.results]), s = a.length, p = s === 1 ? o.googleResultFound : x(o.googleResultsFound, { n: s }), d = ve(e, o);
2715
+ const { colors: t } = b(), [n, i] = w(!1), a = F(() => [...e.results ?? []].sort((g, h) => g.rank - h.rank), [e.results]), s = a.length, p = s === 1 ? o.googleResultFound : k(o.googleResultsFound, { n: s }), d = we(e, o);
2614
2716
  return s === 0 ? /* @__PURE__ */ m("div", { style: { paddingBlock: "16px" }, children: [
2615
2717
  /* @__PURE__ */ r("span", { style: { color: t.textSecondary }, children: d }),
2616
2718
  /* @__PURE__ */ r(
@@ -2627,7 +2729,7 @@ function Sr({
2627
2729
  ] }) : /* @__PURE__ */ m("div", { style: { paddingBlock: "16px" }, children: [
2628
2730
  /* @__PURE__ */ r("span", { style: { color: t.textSecondary }, children: d }),
2629
2731
  /* @__PURE__ */ m(
2630
- b.div,
2732
+ v.div,
2631
2733
  {
2632
2734
  initial: { opacity: 0 },
2633
2735
  animate: { opacity: 1 },
@@ -2685,38 +2787,38 @@ function Sr({
2685
2787
  paddingTop: 8,
2686
2788
  borderTop: `1px solid ${t.borderDivider}`
2687
2789
  },
2688
- children: a.map((u, h) => /* @__PURE__ */ r(
2790
+ children: a.map((u, g) => /* @__PURE__ */ r(
2689
2791
  "div",
2690
2792
  {
2691
2793
  style: {
2692
- paddingTop: h > 0 ? 12 : 0,
2693
- paddingBottom: h < a.length - 1 ? 12 : 0,
2694
- borderBottom: h < a.length - 1 ? `1px solid ${t.border}` : void 0,
2794
+ paddingTop: g > 0 ? 12 : 0,
2795
+ paddingBottom: g < a.length - 1 ? 12 : 0,
2796
+ borderBottom: g < a.length - 1 ? `1px solid ${t.border}` : void 0,
2695
2797
  minWidth: 0
2696
2798
  },
2697
- children: /* @__PURE__ */ r(xr, { item: u, t: o })
2799
+ children: /* @__PURE__ */ r(Sr, { item: u, t: o })
2698
2800
  },
2699
- `${u.link}-${u.rank}-${h}`
2801
+ `${u.link}-${u.rank}-${g}`
2700
2802
  ))
2701
2803
  }
2702
2804
  )
2703
2805
  ] });
2704
2806
  }
2705
- const br = ({
2807
+ const vr = ({
2706
2808
  data: e,
2707
2809
  isLatest: o = !1,
2708
2810
  durationSeconds: t,
2709
2811
  t: n
2710
2812
  }) => e.results === void 0 ? /* @__PURE__ */ r(
2711
- kr,
2813
+ br,
2712
2814
  {
2713
2815
  data: e,
2714
2816
  isLatest: o,
2715
2817
  durationSeconds: t,
2716
2818
  t: n
2717
2819
  }
2718
- ) : /* @__PURE__ */ r(Sr, { data: e, t: n });
2719
- function we(e, o) {
2820
+ ) : /* @__PURE__ */ r(Tr, { data: e, t: n });
2821
+ function Ce(e, o) {
2720
2822
  if (e.error != null)
2721
2823
  return null;
2722
2824
  switch (e.status) {
@@ -2732,16 +2834,16 @@ function we(e, o) {
2732
2834
  return null;
2733
2835
  }
2734
2836
  }
2735
- function Tr(e) {
2837
+ function wr(e) {
2736
2838
  var o;
2737
2839
  return e.error != null ? !0 : e.status != null ? !1 : (((o = e.summary) == null ? void 0 : o.length) ?? 0) > 0;
2738
2840
  }
2739
- const ce = 80, oe = 12, te = 1.4, vr = Math.ceil(
2740
- oe * te
2741
- ), wr = Math.ceil(
2742
- 5 * oe * te
2841
+ const de = 80, te = 12, ie = 1.4, Cr = Math.ceil(
2842
+ te * ie
2843
+ ), Mr = Math.ceil(
2844
+ 5 * te * ie
2743
2845
  );
2744
- function Ce(e, o = 48) {
2846
+ function Me(e, o = 48) {
2745
2847
  try {
2746
2848
  const t = new URL(e), n = t.pathname.length > o ? `${t.pathname.slice(0, o)}…` : t.pathname, i = n === "/" ? "" : n;
2747
2849
  return `${t.hostname}${i}${t.search ? "…" : ""}`;
@@ -2749,23 +2851,23 @@ function Ce(e, o = 48) {
2749
2851
  return e.length > 64 ? `${e.slice(0, 64)}…` : e;
2750
2852
  }
2751
2853
  }
2752
- function Cr({ item: e }) {
2753
- return e.error != null ? /* @__PURE__ */ r(W, { size: 15, lineWidth: 2 }) : e.summary != null && e.summary !== "" ? /* @__PURE__ */ r(B, { size: 15, borderWidth: 2 }) : e.status != null ? /* @__PURE__ */ r("span", { className: "explore-memory-loader" }) : /* @__PURE__ */ r(B, { size: 15, borderWidth: 2 });
2854
+ function Er({ item: e }) {
2855
+ return e.error != null ? /* @__PURE__ */ r(O, { size: 15, lineWidth: 2 }) : e.summary != null && e.summary !== "" ? /* @__PURE__ */ r(z, { size: 15, borderWidth: 2 }) : e.status != null ? /* @__PURE__ */ r("span", { className: "explore-memory-loader" }) : /* @__PURE__ */ r(z, { size: 15, borderWidth: 2 });
2754
2856
  }
2755
- function Mr({ item: e }) {
2756
- return e.error != null ? /* @__PURE__ */ r(W, { size: 15, lineWidth: 2 }) : e.summary != null && e.summary !== "" ? /* @__PURE__ */ r(B, { size: 15, borderWidth: 2 }) : e.status != null ? /* @__PURE__ */ r("span", { className: "explore-memory-loader" }) : /* @__PURE__ */ r("span", { className: "explore-memory-loader" });
2857
+ function Rr({ item: e }) {
2858
+ return e.error != null ? /* @__PURE__ */ r(O, { size: 15, lineWidth: 2 }) : e.summary != null && e.summary !== "" ? /* @__PURE__ */ r(z, { size: 15, borderWidth: 2 }) : e.status != null ? /* @__PURE__ */ r("span", { className: "explore-memory-loader" }) : /* @__PURE__ */ r("span", { className: "explore-memory-loader" });
2757
2859
  }
2758
- function Er({
2860
+ function Ir({
2759
2861
  item: e,
2760
2862
  t: o,
2761
2863
  isLatest: t = !1
2762
2864
  }) {
2763
- const { colors: n } = k(), i = e.error ?? e.summary ?? "", a = i.length > 0, s = e.error != null, p = P(null), d = e.summary != null && e.summary !== "", u = we(e, o), h = s || d || !a && u != null, y = e.error == null && (e.summary == null || e.summary === "");
2764
- return A(() => {
2765
- const f = p.current;
2766
- f != null && a && (f.scrollTop = f.scrollHeight);
2865
+ const { colors: n } = b(), i = e.error ?? e.summary ?? "", a = i.length > 0, s = e.error != null, p = A(null), d = e.summary != null && e.summary !== "", u = Ce(e, o), g = s || d || !a && u != null, h = e.error == null && (e.summary == null || e.summary === "");
2866
+ return $(() => {
2867
+ const x = p.current;
2868
+ x != null && a && (x.scrollTop = x.scrollHeight);
2767
2869
  }, [i, a]), /* @__PURE__ */ m(
2768
- b.div,
2870
+ v.div,
2769
2871
  {
2770
2872
  initial: { opacity: 0 },
2771
2873
  animate: { opacity: 1 },
@@ -2773,7 +2875,7 @@ function Er({
2773
2875
  style: {
2774
2876
  display: "flex",
2775
2877
  flexDirection: "row",
2776
- alignItems: y ? "center" : h ? "flex-start" : "center",
2878
+ alignItems: h ? "center" : g ? "flex-start" : "center",
2777
2879
  gap: "10px",
2778
2880
  minWidth: 0
2779
2881
  },
@@ -2787,9 +2889,9 @@ function Er({
2787
2889
  justifyContent: "center",
2788
2890
  flexShrink: 0,
2789
2891
  width: 32,
2790
- ...y || !h ? {} : { paddingTop: 2 }
2892
+ ...h || !g ? {} : { paddingTop: 2 }
2791
2893
  },
2792
- children: /* @__PURE__ */ r(Mr, { item: e })
2894
+ children: /* @__PURE__ */ r(Rr, { item: e })
2793
2895
  }
2794
2896
  ),
2795
2897
  /* @__PURE__ */ m(
@@ -2816,16 +2918,16 @@ function Er({
2816
2918
  textDecoration: "none",
2817
2919
  wordBreak: "break-all"
2818
2920
  },
2819
- onMouseEnter: (f) => {
2820
- f.currentTarget.style.textDecoration = "underline";
2921
+ onMouseEnter: (x) => {
2922
+ x.currentTarget.style.textDecoration = "underline";
2821
2923
  },
2822
- onMouseLeave: (f) => {
2823
- f.currentTarget.style.textDecoration = "none";
2924
+ onMouseLeave: (x) => {
2925
+ x.currentTarget.style.textDecoration = "none";
2824
2926
  },
2825
- children: Ce(e.url)
2927
+ children: Me(e.url)
2826
2928
  }
2827
2929
  ),
2828
- !a && u != null && /* @__PURE__ */ r("div", { style: { fontSize: 12, color: n.textTertiary, minHeight: 18 }, children: t ? /* @__PURE__ */ r(w, { text: u, duration: 2.5, repeat: !0 }) : /* @__PURE__ */ r("span", { style: { color: n.textTertiary }, children: u }) }),
2930
+ !a && u != null && /* @__PURE__ */ r("div", { style: { fontSize: 12, color: n.textTertiary, minHeight: 18 }, children: t ? /* @__PURE__ */ r(C, { text: u, duration: 2.5, repeat: !0 }) : /* @__PURE__ */ r("span", { style: { color: n.textTertiary }, children: u }) }),
2829
2931
  a && /* @__PURE__ */ r(
2830
2932
  "div",
2831
2933
  {
@@ -2840,13 +2942,13 @@ function Er({
2840
2942
  {
2841
2943
  ref: p,
2842
2944
  style: {
2843
- minHeight: vr,
2844
- maxHeight: wr,
2945
+ minHeight: Cr,
2946
+ maxHeight: Mr,
2845
2947
  height: "auto",
2846
2948
  overflowY: "auto",
2847
2949
  overflowX: "hidden",
2848
- fontSize: oe,
2849
- lineHeight: te,
2950
+ fontSize: te,
2951
+ lineHeight: ie,
2850
2952
  whiteSpace: "pre-wrap",
2851
2953
  wordBreak: "break-word",
2852
2954
  color: s ? n.textError : n.textTertiary
@@ -2863,13 +2965,13 @@ function Er({
2863
2965
  }
2864
2966
  );
2865
2967
  }
2866
- function Rr({
2968
+ function Fr({
2867
2969
  item: e,
2868
2970
  t: o
2869
2971
  }) {
2870
- const { colors: t } = k(), [n, i] = C(!1), a = e.error ?? e.summary ?? "", s = e.error != null, p = a.length > ce, d = a.length === 0 ? void 0 : n || !p ? a : `${a.slice(0, ce)}...`, u = we(e, o), h = e.error == null && (e.summary == null || e.summary === "") && e.status != null;
2972
+ const { colors: t } = b(), [n, i] = w(!1), a = e.error ?? e.summary ?? "", s = e.error != null, p = a.length > de, d = a.length === 0 ? void 0 : n || !p ? a : `${a.slice(0, de)}...`, u = Ce(e, o), g = e.error == null && (e.summary == null || e.summary === "") && e.status != null;
2871
2973
  return /* @__PURE__ */ m(
2872
- b.div,
2974
+ v.div,
2873
2975
  {
2874
2976
  initial: { opacity: 0 },
2875
2977
  animate: { opacity: 1 },
@@ -2877,7 +2979,7 @@ function Rr({
2877
2979
  style: {
2878
2980
  display: "flex",
2879
2981
  flexDirection: "row",
2880
- alignItems: h ? "center" : "flex-start",
2982
+ alignItems: g ? "center" : "flex-start",
2881
2983
  gap: "10px",
2882
2984
  minWidth: 0
2883
2985
  },
@@ -2891,9 +2993,9 @@ function Rr({
2891
2993
  justifyContent: "center",
2892
2994
  flexShrink: 0,
2893
2995
  width: 32,
2894
- ...h ? {} : { paddingTop: 2 }
2996
+ ...g ? {} : { paddingTop: 2 }
2895
2997
  },
2896
- children: /* @__PURE__ */ r(Cr, { item: e })
2998
+ children: /* @__PURE__ */ r(Er, { item: e })
2897
2999
  }
2898
3000
  ),
2899
3001
  /* @__PURE__ */ m(
@@ -2920,13 +3022,13 @@ function Rr({
2920
3022
  textDecoration: "none",
2921
3023
  wordBreak: "break-all"
2922
3024
  },
2923
- onMouseEnter: (y) => {
2924
- y.currentTarget.style.textDecoration = "underline";
3025
+ onMouseEnter: (h) => {
3026
+ h.currentTarget.style.textDecoration = "underline";
2925
3027
  },
2926
- onMouseLeave: (y) => {
2927
- y.currentTarget.style.textDecoration = "none";
3028
+ onMouseLeave: (h) => {
3029
+ h.currentTarget.style.textDecoration = "none";
2928
3030
  },
2929
- children: Ce(e.url)
3031
+ children: Me(e.url)
2930
3032
  }
2931
3033
  ),
2932
3034
  d == null && u != null && /* @__PURE__ */ r(
@@ -2940,11 +3042,11 @@ function Rr({
2940
3042
  children: u
2941
3043
  }
2942
3044
  ),
2943
- d != null && /* @__PURE__ */ m(E, { children: [
3045
+ d != null && /* @__PURE__ */ m(R, { children: [
2944
3046
  /* @__PURE__ */ r(
2945
3047
  "span",
2946
3048
  {
2947
- onClick: p ? () => i((y) => !y) : void 0,
3049
+ onClick: p ? () => i((h) => !h) : void 0,
2948
3050
  style: {
2949
3051
  fontSize: 12,
2950
3052
  color: s ? t.textError : t.textSecondary,
@@ -2975,7 +3077,7 @@ function Rr({
2975
3077
  }
2976
3078
  );
2977
3079
  }
2978
- function de(e, o, t) {
3080
+ function pe(e, o, t) {
2979
3081
  return /* @__PURE__ */ r(
2980
3082
  "div",
2981
3083
  {
@@ -3003,22 +3105,22 @@ function de(e, o, t) {
3003
3105
  }
3004
3106
  );
3005
3107
  }
3006
- function Ir({
3108
+ function zr({
3007
3109
  data: e,
3008
3110
  isLatest: o,
3009
3111
  durationSeconds: t,
3010
3112
  t: n
3011
3113
  }) {
3012
- const { colors: i } = k(), a = e.input.urls, s = e.input.query, p = a.length, d = p === 1 ? x(n.scrapingPage, { query: s }) : x(n.scrapingPages, { n: p, query: s });
3114
+ const { colors: i } = b(), a = e.input.urls, s = e.input.query, p = a.length, d = p === 1 ? k(n.scrapingPage, { query: s }) : k(n.scrapingPages, { n: p, query: s });
3013
3115
  return /* @__PURE__ */ m("div", { style: { paddingBlock: "16px" }, children: [
3014
3116
  /* @__PURE__ */ r(
3015
- b.div,
3117
+ v.div,
3016
3118
  {
3017
3119
  style: { color: i.textSecondary },
3018
3120
  initial: { opacity: 0, y: -10 },
3019
3121
  animate: { opacity: 1, y: 0 },
3020
3122
  transition: { duration: 0.3, delay: 0 },
3021
- children: o && !t ? /* @__PURE__ */ r(w, { text: d, duration: 2.5, repeat: !0 }) : /* @__PURE__ */ r("span", { style: { color: i.textSecondary }, children: d })
3123
+ children: o && !t ? /* @__PURE__ */ r(C, { text: d, duration: 2.5, repeat: !0 }) : /* @__PURE__ */ r("span", { style: { color: i.textSecondary }, children: d })
3022
3124
  }
3023
3125
  ),
3024
3126
  t !== void 0 && /* @__PURE__ */ r(
@@ -3030,22 +3132,22 @@ function Ir({
3030
3132
  marginTop: "4px",
3031
3133
  fontStyle: "italic"
3032
3134
  },
3033
- children: x(n.tookSeconds, { n: t })
3135
+ children: k(n.tookSeconds, { n: t })
3034
3136
  }
3035
3137
  )
3036
3138
  ] });
3037
3139
  }
3038
- function Fr({
3140
+ function Br({
3039
3141
  data: e,
3040
3142
  isLatest: o = !1,
3041
3143
  t
3042
3144
  }) {
3043
- const { colors: n } = k(), [i, a] = C(!1), s = e.results ?? [], { successCount: p, errorCount: d } = z(() => {
3044
- let l = 0, g = 0;
3045
- for (const v of s)
3046
- v.error != null ? g += 1 : l += 1;
3047
- return { successCount: l, errorCount: g };
3048
- }, [s]), u = s.length, h = e.input.query, y = s.length > 0 && s.every((l) => Tr(l)), f = o && !y ? u === 1 ? x(t.scrapingPage, { query: h }) : x(t.scrapingPages, { n: u, query: h }) : u === 1 ? t.scrapedPage : x(t.scrapedPages, { n: u }), S = x(t.scrapeOkCount, { n: p }), c = d > 0 ? `${f} - ${S}, ${x(t.scrapeFailedCount, { n: d })}` : `${f} - ${S}`;
3145
+ const { colors: n } = b(), [i, a] = w(!1), s = e.results ?? [], { successCount: p, errorCount: d } = F(() => {
3146
+ let l = 0, c = 0;
3147
+ for (const y of s)
3148
+ y.error != null ? c += 1 : l += 1;
3149
+ return { successCount: l, errorCount: c };
3150
+ }, [s]), u = s.length, g = e.input.query, h = s.length > 0 && s.every((l) => wr(l)), x = o && !h ? u === 1 ? k(t.scrapingPage, { query: g }) : k(t.scrapingPages, { n: u, query: g }) : u === 1 ? t.scrapedPage : k(t.scrapedPages, { n: u }), T = k(t.scrapeOkCount, { n: p }), f = d > 0 ? `${x} - ${T}, ${k(t.scrapeFailedCount, { n: d })}` : `${x} - ${T}`;
3049
3151
  return u === 0 ? /* @__PURE__ */ r("div", { style: { paddingBlock: "10px" }, children: /* @__PURE__ */ r(
3050
3152
  "div",
3051
3153
  {
@@ -3058,7 +3160,7 @@ function Fr({
3058
3160
  }
3059
3161
  ) }) : o ? /* @__PURE__ */ m("div", { style: { paddingBlock: "10px" }, children: [
3060
3162
  /* @__PURE__ */ r(
3061
- b.div,
3163
+ v.div,
3062
3164
  {
3063
3165
  initial: { opacity: 0 },
3064
3166
  animate: { opacity: 1 },
@@ -3071,20 +3173,20 @@ function Fr({
3071
3173
  gap: "6px 12px",
3072
3174
  minWidth: 0
3073
3175
  },
3074
- children: o && !y ? /* @__PURE__ */ r(w, { text: c, duration: 2.5, repeat: !0 }) : /* @__PURE__ */ r(
3176
+ children: o && !h ? /* @__PURE__ */ r(C, { text: f, duration: 2.5, repeat: !0 }) : /* @__PURE__ */ r(
3075
3177
  "span",
3076
3178
  {
3077
3179
  style: {
3078
3180
  fontSize: 12,
3079
3181
  color: n.textSecondary
3080
3182
  },
3081
- children: c
3183
+ children: f
3082
3184
  }
3083
3185
  )
3084
3186
  }
3085
3187
  ),
3086
- de(s, n, (l) => /* @__PURE__ */ r(
3087
- Er,
3188
+ pe(s, n, (l) => /* @__PURE__ */ r(
3189
+ Ir,
3088
3190
  {
3089
3191
  item: l,
3090
3192
  t,
@@ -3093,7 +3195,7 @@ function Fr({
3093
3195
  ))
3094
3196
  ] }) : /* @__PURE__ */ m("div", { style: { paddingBlock: "10px" }, children: [
3095
3197
  /* @__PURE__ */ m(
3096
- b.div,
3198
+ v.div,
3097
3199
  {
3098
3200
  initial: { opacity: 0 },
3099
3201
  animate: { opacity: 1 },
@@ -3114,7 +3216,7 @@ function Fr({
3114
3216
  fontSize: 12,
3115
3217
  color: n.textSecondary
3116
3218
  },
3117
- children: c
3219
+ children: f
3118
3220
  }
3119
3221
  ),
3120
3222
  /* @__PURE__ */ r(
@@ -3138,11 +3240,11 @@ function Fr({
3138
3240
  ]
3139
3241
  }
3140
3242
  ),
3141
- i && de(s, n, (l) => /* @__PURE__ */ r(Rr, { item: l, t }))
3243
+ i && pe(s, n, (l) => /* @__PURE__ */ r(Fr, { item: l, t }))
3142
3244
  ] });
3143
3245
  }
3144
- const zr = ({ data: e, isLatest: o = !1, durationSeconds: t, t: n }) => e.results === void 0 ? /* @__PURE__ */ r(
3145
- Ir,
3246
+ const Pr = ({ data: e, isLatest: o = !1, durationSeconds: t, t: n }) => e.results === void 0 ? /* @__PURE__ */ r(
3247
+ zr,
3146
3248
  {
3147
3249
  data: e,
3148
3250
  isLatest: o,
@@ -3150,17 +3252,17 @@ const zr = ({ data: e, isLatest: o = !1, durationSeconds: t, t: n }) => e.result
3150
3252
  t: n
3151
3253
  }
3152
3254
  ) : /* @__PURE__ */ r(
3153
- Fr,
3255
+ Br,
3154
3256
  {
3155
3257
  data: e,
3156
3258
  isLatest: o,
3157
3259
  t: n
3158
3260
  }
3159
- ), pe = (e) => {
3160
- const { colors: o } = k(), { isLatest: t = !1, durationSeconds: n, t: i } = e, a = i.memoryChatThinking;
3261
+ ), ue = (e) => {
3262
+ const { colors: o } = b(), { isLatest: t = !1, durationSeconds: n, t: i } = e, a = i.memoryChatThinking;
3161
3263
  return /* @__PURE__ */ m("div", { style: { paddingBlock: "16px" }, children: [
3162
3264
  /* @__PURE__ */ r(
3163
- b.div,
3265
+ v.div,
3164
3266
  {
3165
3267
  style: {
3166
3268
  display: "flex",
@@ -3171,7 +3273,7 @@ const zr = ({ data: e, isLatest: o = !1, durationSeconds: t, t: n }) => e.result
3171
3273
  initial: { opacity: 0, y: -10 },
3172
3274
  animate: { opacity: 1, y: 0 },
3173
3275
  transition: { duration: 0.3, delay: 0 },
3174
- children: t && !n ? /* @__PURE__ */ r(w, { text: a, duration: 2.5, repeat: !0 }) : /* @__PURE__ */ r("span", { style: { color: o.textSecondary }, children: a })
3276
+ children: t && !n ? /* @__PURE__ */ r(C, { text: a, duration: 2.5, repeat: !0 }) : /* @__PURE__ */ r("span", { style: { color: o.textSecondary }, children: a })
3175
3277
  }
3176
3278
  ),
3177
3279
  n !== void 0 && /* @__PURE__ */ r(
@@ -3183,15 +3285,15 @@ const zr = ({ data: e, isLatest: o = !1, durationSeconds: t, t: n }) => e.result
3183
3285
  marginTop: "4px",
3184
3286
  fontStyle: "italic"
3185
3287
  },
3186
- children: x(i.tookSeconds, { n })
3288
+ children: k(i.tookSeconds, { n })
3187
3289
  }
3188
3290
  )
3189
3291
  ] });
3190
- }, Br = ({ data: e, isLatest: o = !1, durationSeconds: t, t: n }) => {
3292
+ }, Lr = ({ data: e, isLatest: o = !1, durationSeconds: t, t: n }) => {
3191
3293
  const i = `${n.generateReportSetup} '${e.userRequest}'`;
3192
3294
  return /* @__PURE__ */ m("div", { style: { paddingBlock: "16px" }, children: [
3193
3295
  /* @__PURE__ */ r(
3194
- b.div,
3296
+ v.div,
3195
3297
  {
3196
3298
  style: {
3197
3299
  display: "flex",
@@ -3203,7 +3305,7 @@ const zr = ({ data: e, isLatest: o = !1, durationSeconds: t, t: n }) => e.result
3203
3305
  animate: { opacity: 1, y: 0 },
3204
3306
  transition: { duration: 0.3, delay: 0 },
3205
3307
  children: o && !t ? /* @__PURE__ */ r(
3206
- w,
3308
+ C,
3207
3309
  {
3208
3310
  text: i,
3209
3311
  duration: 2.5,
@@ -3223,17 +3325,17 @@ const zr = ({ data: e, isLatest: o = !1, durationSeconds: t, t: n }) => e.result
3223
3325
  marginTop: "4px",
3224
3326
  fontStyle: "italic"
3225
3327
  },
3226
- children: x(n.tookSeconds, { n: t })
3328
+ children: k(n.tookSeconds, { n: t })
3227
3329
  }
3228
3330
  )
3229
3331
  ] });
3230
- }, Pr = ({ data: e, isLatest: o = !1, durationSeconds: t, t: n }) => {
3231
- const i = e.fileCount === 1 ? n.generateReportExportingOne : x(n.generateReportExporting, {
3332
+ }, Ar = ({ data: e, isLatest: o = !1, durationSeconds: t, t: n }) => {
3333
+ const i = e.fileCount === 1 ? n.generateReportExportingOne : k(n.generateReportExporting, {
3232
3334
  n: e.fileCount
3233
3335
  });
3234
3336
  return /* @__PURE__ */ m("div", { style: { paddingBlock: "16px" }, children: [
3235
3337
  /* @__PURE__ */ r(
3236
- b.div,
3338
+ v.div,
3237
3339
  {
3238
3340
  style: {
3239
3341
  display: "flex",
@@ -3245,7 +3347,7 @@ const zr = ({ data: e, isLatest: o = !1, durationSeconds: t, t: n }) => e.result
3245
3347
  animate: { opacity: 1, y: 0 },
3246
3348
  transition: { duration: 0.3, delay: 0 },
3247
3349
  children: o && !t ? /* @__PURE__ */ r(
3248
- w,
3350
+ C,
3249
3351
  {
3250
3352
  text: i,
3251
3353
  duration: 2.5,
@@ -3265,17 +3367,17 @@ const zr = ({ data: e, isLatest: o = !1, durationSeconds: t, t: n }) => e.result
3265
3367
  marginTop: "4px",
3266
3368
  fontStyle: "italic"
3267
3369
  },
3268
- children: x(n.tookSeconds, { n: t })
3370
+ children: k(n.tookSeconds, { n: t })
3269
3371
  }
3270
3372
  )
3271
3373
  ] });
3272
- }, Lr = ({ data: e, isLatest: o = !1, durationSeconds: t, t: n }) => {
3273
- const i = x(n.generateReportRunCode, {
3374
+ }, Dr = ({ data: e, isLatest: o = !1, durationSeconds: t, t: n }) => {
3375
+ const i = k(n.generateReportRunCode, {
3274
3376
  title: e.title
3275
3377
  });
3276
3378
  return /* @__PURE__ */ m("div", { style: { paddingBlock: "16px" }, children: [
3277
3379
  /* @__PURE__ */ r(
3278
- b.div,
3380
+ v.div,
3279
3381
  {
3280
3382
  style: {
3281
3383
  display: "flex",
@@ -3287,7 +3389,7 @@ const zr = ({ data: e, isLatest: o = !1, durationSeconds: t, t: n }) => e.result
3287
3389
  animate: { opacity: 1, y: 0 },
3288
3390
  transition: { duration: 0.3, delay: 0 },
3289
3391
  children: o && !t ? /* @__PURE__ */ r(
3290
- w,
3392
+ C,
3291
3393
  {
3292
3394
  text: i,
3293
3395
  duration: 2.5,
@@ -3307,17 +3409,17 @@ const zr = ({ data: e, isLatest: o = !1, durationSeconds: t, t: n }) => e.result
3307
3409
  marginTop: "4px",
3308
3410
  fontStyle: "italic"
3309
3411
  },
3310
- children: x(n.tookSeconds, { n: t })
3412
+ children: k(n.tookSeconds, { n: t })
3311
3413
  }
3312
3414
  )
3313
3415
  ] });
3314
- }, Ar = ({ data: e, isLatest: o = !1, durationSeconds: t, t: n }) => {
3315
- const i = x(n.generateReportRunCommand, {
3416
+ }, Wr = ({ data: e, isLatest: o = !1, durationSeconds: t, t: n }) => {
3417
+ const i = k(n.generateReportRunCommand, {
3316
3418
  title: e.title
3317
3419
  });
3318
3420
  return /* @__PURE__ */ m("div", { style: { paddingBlock: "16px" }, children: [
3319
3421
  /* @__PURE__ */ r(
3320
- b.div,
3422
+ v.div,
3321
3423
  {
3322
3424
  style: {
3323
3425
  display: "flex",
@@ -3329,7 +3431,7 @@ const zr = ({ data: e, isLatest: o = !1, durationSeconds: t, t: n }) => e.result
3329
3431
  animate: { opacity: 1, y: 0 },
3330
3432
  transition: { duration: 0.3, delay: 0 },
3331
3433
  children: o && !t ? /* @__PURE__ */ r(
3332
- w,
3434
+ C,
3333
3435
  {
3334
3436
  text: i,
3335
3437
  duration: 2.5,
@@ -3349,17 +3451,17 @@ const zr = ({ data: e, isLatest: o = !1, durationSeconds: t, t: n }) => e.result
3349
3451
  marginTop: "4px",
3350
3452
  fontStyle: "italic"
3351
3453
  },
3352
- children: x(n.tookSeconds, { n: t })
3454
+ children: k(n.tookSeconds, { n: t })
3353
3455
  }
3354
3456
  )
3355
3457
  ] });
3356
- }, Dr = ({ data: e, isLatest: o = !1, durationSeconds: t, t: n }) => {
3357
- const i = x(n.generateReportAssembling, {
3458
+ }, $r = ({ data: e, isLatest: o = !1, durationSeconds: t, t: n }) => {
3459
+ const i = k(n.generateReportAssembling, {
3358
3460
  title: e.reportTitle
3359
3461
  });
3360
3462
  return /* @__PURE__ */ m("div", { style: { paddingBlock: "16px" }, children: [
3361
3463
  /* @__PURE__ */ r(
3362
- b.div,
3464
+ v.div,
3363
3465
  {
3364
3466
  style: {
3365
3467
  display: "flex",
@@ -3371,7 +3473,7 @@ const zr = ({ data: e, isLatest: o = !1, durationSeconds: t, t: n }) => e.result
3371
3473
  animate: { opacity: 1, y: 0 },
3372
3474
  transition: { duration: 0.3, delay: 0 },
3373
3475
  children: o && !t ? /* @__PURE__ */ r(
3374
- w,
3476
+ C,
3375
3477
  {
3376
3478
  text: i,
3377
3479
  duration: 2.5,
@@ -3391,16 +3493,16 @@ const zr = ({ data: e, isLatest: o = !1, durationSeconds: t, t: n }) => e.result
3391
3493
  marginTop: "4px",
3392
3494
  fontStyle: "italic"
3393
3495
  },
3394
- children: x(n.tookSeconds, { n: t })
3496
+ children: k(n.tookSeconds, { n: t })
3395
3497
  }
3396
3498
  )
3397
3499
  ] });
3398
- }, Wr = ({ data: e, t: o }) => {
3399
- const t = x(o.generateReportCompleted, {
3500
+ }, Nr = ({ data: e, t: o }) => {
3501
+ const t = k(o.generateReportCompleted, {
3400
3502
  title: e.reportTitle
3401
3503
  });
3402
3504
  return /* @__PURE__ */ r("div", { style: { paddingBlock: "16px" }, children: /* @__PURE__ */ r(
3403
- b.div,
3505
+ v.div,
3404
3506
  {
3405
3507
  style: {
3406
3508
  display: "flex",
@@ -3414,11 +3516,18 @@ const zr = ({ data: e, isLatest: o = !1, durationSeconds: t, t: n }) => e.result
3414
3516
  children: /* @__PURE__ */ r("span", { style: { color: "#666" }, children: t })
3415
3517
  }
3416
3518
  ) });
3417
- }, $r = ({ isLatest: e = !1, durationSeconds: o, t }) => {
3418
- const { colors: n } = k(), i = t.exploreSetupSandbox;
3519
+ };
3520
+ function Hr(e) {
3521
+ const [o] = w(
3522
+ () => e[Math.floor(Math.random() * e.length)] ?? e[0] ?? ""
3523
+ );
3524
+ return o;
3525
+ }
3526
+ const Gr = ({ isLatest: e = !1, durationSeconds: o, t }) => {
3527
+ const { colors: n } = b(), i = e && o === void 0, a = Hr(t.exploreSetupSandboxPhrases) || t.exploreSetupSandbox;
3419
3528
  return /* @__PURE__ */ m("div", { style: { paddingBlock: "16px" }, children: [
3420
3529
  /* @__PURE__ */ r(
3421
- b.div,
3530
+ v.div,
3422
3531
  {
3423
3532
  style: {
3424
3533
  display: "flex",
@@ -3429,7 +3538,7 @@ const zr = ({ data: e, isLatest: o = !1, durationSeconds: t, t: n }) => e.result
3429
3538
  initial: { opacity: 0, y: -10 },
3430
3539
  animate: { opacity: 1, y: 0 },
3431
3540
  transition: { duration: 0.3, delay: 0 },
3432
- children: e && !o ? /* @__PURE__ */ r(w, { text: i, duration: 2.5, repeat: !0 }) : /* @__PURE__ */ r("span", { style: { color: n.textSecondary }, children: i })
3541
+ children: i ? /* @__PURE__ */ r(C, { text: a, duration: 2.5, repeat: !0 }) : /* @__PURE__ */ r("span", { style: { color: n.textSecondary }, children: a })
3433
3542
  }
3434
3543
  ),
3435
3544
  o !== void 0 && /* @__PURE__ */ r(
@@ -3441,41 +3550,48 @@ const zr = ({ data: e, isLatest: o = !1, durationSeconds: t, t: n }) => e.result
3441
3550
  marginTop: "4px",
3442
3551
  fontStyle: "italic"
3443
3552
  },
3444
- children: x(t.tookSeconds, { n: o })
3553
+ children: k(t.tookSeconds, { n: o })
3445
3554
  }
3446
3555
  )
3447
3556
  ] });
3448
- }, Nr = ({
3557
+ }, Or = ({
3449
3558
  data: e,
3450
3559
  isLatest: o = !1,
3451
3560
  durationSeconds: t,
3452
- t: n
3561
+ t: n,
3562
+ onMemoryClick: i
3453
3563
  }) => {
3454
- const { colors: i } = k(), a = o && t === void 0;
3564
+ const { colors: a } = b(), s = o && t === void 0;
3455
3565
  return /* @__PURE__ */ m("div", { style: { paddingBlock: "16px" }, children: [
3456
3566
  /* @__PURE__ */ r(
3457
- b.div,
3567
+ v.div,
3458
3568
  {
3459
3569
  style: {
3460
3570
  display: "flex",
3461
3571
  alignItems: "center",
3462
3572
  gap: "10px",
3463
- color: i.textSecondary,
3573
+ color: a.textSecondary,
3464
3574
  marginBottom: "8px"
3465
3575
  },
3466
3576
  initial: { opacity: 0, y: -10 },
3467
3577
  animate: { opacity: 1, y: 0 },
3468
3578
  transition: { duration: 0.3, delay: 0 },
3469
- children: a ? /* @__PURE__ */ r(w, { text: n.explorePlanning, duration: 2.5, repeat: !0 }) : /* @__PURE__ */ r("span", { style: { color: i.textSecondary }, children: n.explorePlanning })
3579
+ children: s ? /* @__PURE__ */ r(C, { text: n.explorePlanning, duration: 2.5, repeat: !0 }) : /* @__PURE__ */ r("span", { style: { color: a.textSecondary }, children: n.explorePlanning })
3470
3580
  }
3471
3581
  ),
3472
- /* @__PURE__ */ r(_, { text: e.text })
3582
+ /* @__PURE__ */ r(
3583
+ U,
3584
+ {
3585
+ text: e.text,
3586
+ onMemoryClick: i
3587
+ }
3588
+ )
3473
3589
  ] });
3474
- }, Hr = ({ data: e, isLatest: o = !1, durationSeconds: t, t: n }) => {
3475
- const { colors: i } = k(), a = e.fileCount === 1 ? n.exploreExportingOne : x(n.exploreExporting, { n: e.fileCount });
3590
+ }, _r = ({ data: e, isLatest: o = !1, durationSeconds: t, t: n }) => {
3591
+ const { colors: i } = b(), a = e.fileCount === 1 ? n.exploreExportingOne : k(n.exploreExporting, { n: e.fileCount });
3476
3592
  return /* @__PURE__ */ m("div", { style: { paddingBlock: "16px" }, children: [
3477
3593
  /* @__PURE__ */ r(
3478
- b.div,
3594
+ v.div,
3479
3595
  {
3480
3596
  style: {
3481
3597
  display: "flex",
@@ -3486,7 +3602,7 @@ const zr = ({ data: e, isLatest: o = !1, durationSeconds: t, t: n }) => e.result
3486
3602
  initial: { opacity: 0, y: -10 },
3487
3603
  animate: { opacity: 1, y: 0 },
3488
3604
  transition: { duration: 0.3, delay: 0 },
3489
- children: o && !t ? /* @__PURE__ */ r(w, { text: a, duration: 2.5, repeat: !0 }) : /* @__PURE__ */ r("span", { style: { color: i.textSecondary }, children: a })
3605
+ children: o && !t ? /* @__PURE__ */ r(C, { text: a, duration: 2.5, repeat: !0 }) : /* @__PURE__ */ r("span", { style: { color: i.textSecondary }, children: a })
3490
3606
  }
3491
3607
  ),
3492
3608
  t !== void 0 && /* @__PURE__ */ r(
@@ -3498,23 +3614,23 @@ const zr = ({ data: e, isLatest: o = !1, durationSeconds: t, t: n }) => e.result
3498
3614
  marginTop: "4px",
3499
3615
  fontStyle: "italic"
3500
3616
  },
3501
- children: x(n.tookSeconds, { n: t })
3617
+ children: k(n.tookSeconds, { n: t })
3502
3618
  }
3503
3619
  )
3504
3620
  ] });
3505
- }, Gr = ({ data: e, isLatest: o = !1, durationSeconds: t, t: n }) => {
3506
- const { colors: i } = k(), a = x(n.exploreFindMemoriesQuery, {
3621
+ }, qr = ({ data: e, isLatest: o = !1, durationSeconds: t, t: n }) => {
3622
+ const { colors: i } = b(), a = k(n.exploreFindMemoriesQuery, {
3507
3623
  query: e.query
3508
3624
  });
3509
3625
  return /* @__PURE__ */ m("div", { style: { paddingBlock: "16px" }, children: [
3510
3626
  /* @__PURE__ */ r(
3511
- b.div,
3627
+ v.div,
3512
3628
  {
3513
3629
  style: { color: i.textSecondary },
3514
3630
  initial: { opacity: 0, y: -10 },
3515
3631
  animate: { opacity: 1, y: 0 },
3516
3632
  transition: { duration: 0.3, delay: 0 },
3517
- children: o && !t ? /* @__PURE__ */ r(w, { text: a, duration: 2.5, repeat: !0 }) : /* @__PURE__ */ m("span", { style: { color: i.textSecondary }, children: [
3633
+ children: o && !t ? /* @__PURE__ */ r(C, { text: a, duration: 2.5, repeat: !0 }) : /* @__PURE__ */ m("span", { style: { color: i.textSecondary }, children: [
3518
3634
  n.exploreFindMemoriesPrefix,
3519
3635
  /* @__PURE__ */ m("span", { style: { fontWeight: 600 }, children: [
3520
3636
  "'",
@@ -3533,25 +3649,25 @@ const zr = ({ data: e, isLatest: o = !1, durationSeconds: t, t: n }) => e.result
3533
3649
  marginTop: "4px",
3534
3650
  fontStyle: "italic"
3535
3651
  },
3536
- children: x(n.tookSeconds, { n: t })
3652
+ children: k(n.tookSeconds, { n: t })
3537
3653
  }
3538
3654
  )
3539
3655
  ] });
3540
- }, Y = 5, Or = ({ data: e, t: o }) => {
3541
- const { colors: t } = k(), [n, i] = C(!1), a = e.memories.map((S) => S.memoryTitle), s = a.length > 0, p = s && a.length > Y, d = p && !n ? a.slice(0, Y) : a, u = a.length - Y, h = !p || n, y = a.length === 1 ? o.memoryFound : o.memoriesFoundPrefix, f = s ? `${y}${Q(
3656
+ }, J = 5, Ur = ({ data: e, t: o }) => {
3657
+ const { colors: t } = b(), [n, i] = w(!1), a = e.memories.map((T) => T.memoryTitle), s = a.length > 0, p = s && a.length > J, d = p && !n ? a.slice(0, J) : a, u = a.length - J, g = !p || n, h = a.length === 1 ? o.memoryFound : o.memoriesFoundPrefix, x = s ? `${h}${K(
3542
3658
  d,
3543
- h ? o.and : void 0
3659
+ g ? o.and : void 0
3544
3660
  )}` : o.memoriesFound;
3545
3661
  return /* @__PURE__ */ r("div", { style: { paddingBlock: "16px" }, children: /* @__PURE__ */ m(
3546
- b.div,
3662
+ v.div,
3547
3663
  {
3548
3664
  style: { color: t.textSecondary },
3549
3665
  initial: { opacity: 0, y: -10 },
3550
3666
  animate: { opacity: 1, y: 0 },
3551
3667
  transition: { duration: 0.3, delay: 0 },
3552
3668
  children: [
3553
- /* @__PURE__ */ r("span", { style: { color: t.textSecondary }, children: f }),
3554
- p && !n && /* @__PURE__ */ m(E, { children: [
3669
+ /* @__PURE__ */ r("span", { style: { color: t.textSecondary }, children: x }),
3670
+ p && !n && /* @__PURE__ */ m(R, { children: [
3555
3671
  " ",
3556
3672
  /* @__PURE__ */ r(
3557
3673
  "button",
@@ -3569,13 +3685,13 @@ const zr = ({ data: e, isLatest: o = !1, durationSeconds: t, t: n }) => e.result
3569
3685
  textDecoration: "underline",
3570
3686
  fontFamily: "inherit"
3571
3687
  },
3572
- children: x(o.moreMemories, {
3688
+ children: k(o.moreMemories, {
3573
3689
  n: u
3574
3690
  })
3575
3691
  }
3576
3692
  )
3577
3693
  ] }),
3578
- p && n && /* @__PURE__ */ m(E, { children: [
3694
+ p && n && /* @__PURE__ */ m(R, { children: [
3579
3695
  " ",
3580
3696
  /* @__PURE__ */ r(
3581
3697
  "button",
@@ -3601,7 +3717,7 @@ const zr = ({ data: e, isLatest: o = !1, durationSeconds: t, t: n }) => e.result
3601
3717
  }
3602
3718
  ) });
3603
3719
  };
3604
- function _r(e) {
3720
+ function Qr(e) {
3605
3721
  return {
3606
3722
  taskType: "MemoryChat",
3607
3723
  eventType: "Search",
@@ -3609,19 +3725,19 @@ function _r(e) {
3609
3725
  ...e.input.memories !== void 0 && e.input.memories.length > 0 ? { memories: e.input.memories } : {}
3610
3726
  };
3611
3727
  }
3612
- const qr = ({ data: e, isLatest: o = !1, durationSeconds: t, t: n, onSearchResultClick: i }) => {
3613
- const a = _r(e);
3728
+ const jr = ({ data: e, isLatest: o = !1, durationSeconds: t, t: n, onSearchResultClick: i }) => {
3729
+ const a = Qr(e);
3614
3730
  return e.items === void 0 ? /* @__PURE__ */ r(
3615
- N,
3731
+ _,
3616
3732
  {
3617
3733
  data: a,
3618
3734
  isLatest: o,
3619
3735
  durationSeconds: t,
3620
3736
  t: n
3621
3737
  }
3622
- ) : /* @__PURE__ */ m(E, { children: [
3738
+ ) : /* @__PURE__ */ m(R, { children: [
3623
3739
  /* @__PURE__ */ r(
3624
- N,
3740
+ _,
3625
3741
  {
3626
3742
  data: a,
3627
3743
  isLatest: !1,
@@ -3631,7 +3747,7 @@ const qr = ({ data: e, isLatest: o = !1, durationSeconds: t, t: n, onSearchResul
3631
3747
  }
3632
3748
  ),
3633
3749
  /* @__PURE__ */ r(
3634
- ne,
3750
+ oe,
3635
3751
  {
3636
3752
  data: {
3637
3753
  taskType: "MemoryChat",
@@ -3645,26 +3761,26 @@ const qr = ({ data: e, isLatest: o = !1, durationSeconds: t, t: n, onSearchResul
3645
3761
  )
3646
3762
  ] });
3647
3763
  };
3648
- function Ur({
3764
+ function Kr({
3649
3765
  memory: e,
3650
3766
  completed: o
3651
3767
  }) {
3652
- return e.error != null ? /* @__PURE__ */ r(W, { size: 15, lineWidth: 2 }) : e.summary != null ? /* @__PURE__ */ r(B, { size: 15, borderWidth: 2 }) : o ? /* @__PURE__ */ r(B, { size: 15, borderWidth: 2 }) : /* @__PURE__ */ r("span", { className: "explore-memory-loader" });
3768
+ return e.error != null ? /* @__PURE__ */ r(O, { size: 15, lineWidth: 2 }) : e.summary != null ? /* @__PURE__ */ r(z, { size: 15, borderWidth: 2 }) : o ? /* @__PURE__ */ r(z, { size: 15, borderWidth: 2 }) : /* @__PURE__ */ r("span", { className: "explore-memory-loader" });
3653
3769
  }
3654
- const ue = 80;
3655
- function Qr({
3770
+ const me = 80;
3771
+ function Vr({
3656
3772
  memory: e,
3657
3773
  completed: o,
3658
3774
  t
3659
3775
  }) {
3660
- const { colors: n } = k(), [i, a] = C(!1), s = e.summary ?? e.error, p = s != null && s.length > ue, d = s != null ? i || !p ? s : `${s.slice(0, ue)}...` : void 0, u = p, h = e.error != null;
3776
+ const { colors: n } = b(), [i, a] = w(!1), s = e.summary ?? e.error, p = s != null && s.length > me, d = s != null ? i || !p ? s : `${s.slice(0, me)}...` : void 0, u = p, g = e.error != null;
3661
3777
  return /* @__PURE__ */ m(
3662
- b.div,
3778
+ v.div,
3663
3779
  {
3664
3780
  initial: { opacity: 0 },
3665
3781
  animate: { opacity: 1 },
3666
3782
  transition: { duration: 0.25 },
3667
- onClick: u ? () => a((y) => !y) : void 0,
3783
+ onClick: u ? () => a((h) => !h) : void 0,
3668
3784
  style: {
3669
3785
  paddingTop: "12px",
3670
3786
  paddingBottom: "12px",
@@ -3687,7 +3803,7 @@ function Qr({
3687
3803
  flexShrink: 0,
3688
3804
  width: 32
3689
3805
  },
3690
- children: /* @__PURE__ */ r(Ur, { memory: e, completed: o })
3806
+ children: /* @__PURE__ */ r(Kr, { memory: e, completed: o })
3691
3807
  }
3692
3808
  ),
3693
3809
  /* @__PURE__ */ m(
@@ -3716,7 +3832,7 @@ function Qr({
3716
3832
  {
3717
3833
  style: {
3718
3834
  fontSize: 12,
3719
- color: h ? n.textError : n.textSecondary,
3835
+ color: g ? n.textError : n.textSecondary,
3720
3836
  lineHeight: 1.4,
3721
3837
  whiteSpace: i ? "pre-wrap" : void 0
3722
3838
  },
@@ -3741,8 +3857,8 @@ function Qr({
3741
3857
  }
3742
3858
  );
3743
3859
  }
3744
- const jr = ({ data: e, completed: o, t }) => {
3745
- const { colors: n } = k();
3860
+ const Xr = ({ data: e, completed: o, t }) => {
3861
+ const { colors: n } = b();
3746
3862
  return /* @__PURE__ */ m("div", { style: { paddingTop: "16px", paddingBottom: "10px" }, children: [
3747
3863
  /* @__PURE__ */ r(
3748
3864
  "div",
@@ -3751,13 +3867,13 @@ const jr = ({ data: e, completed: o, t }) => {
3751
3867
  color: n.textSecondary,
3752
3868
  marginBottom: "4px"
3753
3869
  },
3754
- children: x(t.exploreSemanticSearchForEach, {
3870
+ children: k(t.exploreSemanticSearchForEach, {
3755
3871
  query: e.query
3756
3872
  })
3757
3873
  }
3758
3874
  ),
3759
3875
  e.memories.map((i) => /* @__PURE__ */ r(
3760
- Qr,
3876
+ Vr,
3761
3877
  {
3762
3878
  memory: i,
3763
3879
  completed: o,
@@ -3766,16 +3882,16 @@ const jr = ({ data: e, completed: o, t }) => {
3766
3882
  i.memoryId
3767
3883
  ))
3768
3884
  ] });
3769
- }, Kr = ({
3885
+ }, Yr = ({
3770
3886
  data: e,
3771
3887
  isLatest: o = !1,
3772
3888
  durationSeconds: t,
3773
3889
  t: n
3774
3890
  }) => {
3775
- const { colors: i } = k(), a = x(n.exploreRunCode, { title: e.title });
3891
+ const { colors: i } = b(), a = k(n.exploreRunCode, { title: e.title });
3776
3892
  return /* @__PURE__ */ m("div", { style: { paddingBlock: "16px" }, children: [
3777
3893
  /* @__PURE__ */ r(
3778
- b.div,
3894
+ v.div,
3779
3895
  {
3780
3896
  style: {
3781
3897
  display: "flex",
@@ -3786,7 +3902,7 @@ const jr = ({ data: e, completed: o, t }) => {
3786
3902
  initial: { opacity: 0, y: -10 },
3787
3903
  animate: { opacity: 1, y: 0 },
3788
3904
  transition: { duration: 0.3, delay: 0 },
3789
- children: o && !t ? /* @__PURE__ */ r(w, { text: a, duration: 2.5, repeat: !0 }) : /* @__PURE__ */ r("span", { style: { color: i.textSecondary }, children: a })
3905
+ children: o && !t ? /* @__PURE__ */ r(C, { text: a, duration: 2.5, repeat: !0 }) : /* @__PURE__ */ r("span", { style: { color: i.textSecondary }, children: a })
3790
3906
  }
3791
3907
  ),
3792
3908
  t !== void 0 && /* @__PURE__ */ r(
@@ -3798,12 +3914,12 @@ const jr = ({ data: e, completed: o, t }) => {
3798
3914
  marginTop: "4px",
3799
3915
  fontStyle: "italic"
3800
3916
  },
3801
- children: x(n.tookSeconds, { n: t })
3917
+ children: k(n.tookSeconds, { n: t })
3802
3918
  }
3803
3919
  )
3804
3920
  ] });
3805
- }, Vr = ({ data: e, onSourceClick: o, t }) => /* @__PURE__ */ r(
3806
- Te,
3921
+ }, Jr = ({ data: e, onSourceClick: o, t }) => /* @__PURE__ */ r(
3922
+ ve,
3807
3923
  {
3808
3924
  data: {
3809
3925
  taskType: "MemoryChat",
@@ -3814,22 +3930,22 @@ const jr = ({ data: e, completed: o, t }) => {
3814
3930
  t
3815
3931
  }
3816
3932
  );
3817
- function Xr({ item: e }) {
3818
- return e.error != null ? /* @__PURE__ */ r(W, { size: 15, lineWidth: 2 }) : e.result != null ? /* @__PURE__ */ r(B, { size: 15, borderWidth: 2 }) : /* @__PURE__ */ r("span", { className: "explore-memory-loader" });
3933
+ function Zr({ item: e }) {
3934
+ return e.error != null ? /* @__PURE__ */ r(O, { size: 15, lineWidth: 2 }) : e.result != null ? /* @__PURE__ */ r(z, { size: 15, borderWidth: 2 }) : /* @__PURE__ */ r("span", { className: "explore-memory-loader" });
3819
3935
  }
3820
- function Yr(e, o) {
3821
- return x(o.searchingInMemoriesOfType, {
3936
+ function en(e, o) {
3937
+ return k(o.searchingInMemoriesOfType, {
3822
3938
  name: e.memoryTypeName
3823
3939
  });
3824
3940
  }
3825
- function Jr({
3941
+ function rn({
3826
3942
  item: e,
3827
3943
  t: o,
3828
3944
  showShimmerForPrimary: t
3829
3945
  }) {
3830
- const { colors: n } = k(), i = e.result != null, a = e.error != null, s = Yr(e, o);
3946
+ const { colors: n } = b(), i = e.result != null, a = e.error != null, s = en(e, o);
3831
3947
  return /* @__PURE__ */ m(
3832
- b.div,
3948
+ v.div,
3833
3949
  {
3834
3950
  initial: { opacity: 0 },
3835
3951
  animate: { opacity: 1 },
@@ -3855,7 +3971,7 @@ function Jr({
3855
3971
  flexShrink: 0,
3856
3972
  width: 32
3857
3973
  },
3858
- children: /* @__PURE__ */ r(Xr, { item: e })
3974
+ children: /* @__PURE__ */ r(Zr, { item: e })
3859
3975
  }
3860
3976
  ),
3861
3977
  /* @__PURE__ */ m(
@@ -3869,15 +3985,15 @@ function Jr({
3869
3985
  flex: 1
3870
3986
  },
3871
3987
  children: [
3872
- /* @__PURE__ */ r("span", { style: { fontSize: 13, fontWeight: 500, color: n.textPrimary }, children: !i && !a && t ? /* @__PURE__ */ r(w, { text: s, duration: 2.5, repeat: !0 }) : s }),
3873
- i && /* @__PURE__ */ r("span", { style: { fontSize: 12, color: n.textSecondary }, children: e.result.numberOfChunks === 1 ? x(
3988
+ /* @__PURE__ */ r("span", { style: { fontSize: 13, fontWeight: 500, color: n.textPrimary }, children: !i && !a && t ? /* @__PURE__ */ r(C, { text: s, duration: 2.5, repeat: !0 }) : s }),
3989
+ i && /* @__PURE__ */ r("span", { style: { fontSize: 12, color: n.textSecondary }, children: e.result.numberOfChunks === 1 ? k(
3874
3990
  o.memorySearchTypeResultSummaryOne,
3875
3991
  {
3876
3992
  score: e.result.highestChunkScore.toFixed(
3877
3993
  2
3878
3994
  )
3879
3995
  }
3880
- ) : x(
3996
+ ) : k(
3881
3997
  o.memorySearchTypeResultSummary,
3882
3998
  {
3883
3999
  count: e.result.numberOfChunks,
@@ -3894,16 +4010,16 @@ function Jr({
3894
4010
  }
3895
4011
  );
3896
4012
  }
3897
- const Zr = ({ data: e, isLatest: o = !1, durationSeconds: t, t: n }) => {
3898
- const { colors: i } = k(), a = z(() => {
4013
+ const nn = ({ data: e, isLatest: o = !1, durationSeconds: t, t: n }) => {
4014
+ const { colors: i } = b(), a = F(() => {
3899
4015
  let s = -1;
3900
4016
  return e.memoryTypes.forEach((p, d) => {
3901
4017
  p.result == null && p.error == null && (s = d);
3902
4018
  }), s;
3903
4019
  }, [e.memoryTypes]);
3904
4020
  return /* @__PURE__ */ m("div", { style: { paddingBlock: "10px" }, children: [
3905
- o && !t && e.memoryTypes.length === 0 ? /* @__PURE__ */ r(w, { text: n.searchingMemoryTypes, duration: 2.5, repeat: !0 }) : e.memoryTypes.map((s, p) => /* @__PURE__ */ r(
3906
- Jr,
4021
+ o && !t && e.memoryTypes.length === 0 ? /* @__PURE__ */ r(C, { text: n.searchingMemoryTypes, duration: 2.5, repeat: !0 }) : e.memoryTypes.map((s, p) => /* @__PURE__ */ r(
4022
+ rn,
3907
4023
  {
3908
4024
  item: s,
3909
4025
  t: n,
@@ -3920,45 +4036,45 @@ const Zr = ({ data: e, isLatest: o = !1, durationSeconds: t, t: n }) => {
3920
4036
  marginTop: "4px",
3921
4037
  fontStyle: "italic"
3922
4038
  },
3923
- children: x(n.tookSeconds, { n: t })
4039
+ children: k(n.tookSeconds, { n: t })
3924
4040
  }
3925
4041
  )
3926
4042
  ] });
3927
- }, q = 12, U = 1.45, en = Math.ceil(
3928
- q * U
3929
- ), rn = Math.ceil(
3930
- 5 * q * U
4043
+ }, Q = 12, j = 1.45, on = Math.ceil(
4044
+ Q * j
4045
+ ), tn = Math.ceil(
4046
+ 5 * Q * j
3931
4047
  );
3932
- function H(e) {
4048
+ function q(e) {
3933
4049
  return e.queries != null && e.queries.length > 0;
3934
4050
  }
3935
- function nn(e) {
4051
+ function an(e) {
3936
4052
  const o = e.reasoning;
3937
- return (o == null || o === "") && !H(e);
4053
+ return (o == null || o === "") && !q(e);
3938
4054
  }
3939
- function on(e) {
3940
- if (H(e)) return 3;
4055
+ function ln(e) {
4056
+ if (q(e)) return 3;
3941
4057
  const o = e.reasoning;
3942
4058
  return o == null || o === "" ? 1 : e.reasoningCompleted === !0 ? 2 : 1;
3943
4059
  }
3944
- function tn({ phase: e }) {
3945
- return e === 3 ? /* @__PURE__ */ r(B, { size: 15, borderWidth: 2 }) : /* @__PURE__ */ r("span", { className: "explore-memory-loader" });
4060
+ function sn({ phase: e }) {
4061
+ return e === 3 ? /* @__PURE__ */ r(z, { size: 15, borderWidth: 2 }) : /* @__PURE__ */ r("span", { className: "explore-memory-loader" });
3946
4062
  }
3947
- function an({
4063
+ function cn({
3948
4064
  item: e,
3949
4065
  t: o,
3950
4066
  isActiveRow: t
3951
4067
  }) {
3952
- const { colors: n } = k(), i = nn(e), a = on(e), s = e.reasoning, p = s != null && s.length > 0, d = P(null), [u, h] = C(!1), y = i && t, f = a === 2 && t && !H(e);
3953
- A(() => {
4068
+ const { colors: n } = b(), i = an(e), a = ln(e), s = e.reasoning, p = s != null && s.length > 0, d = A(null), [u, g] = w(!1), h = i && t, x = a === 2 && t && !q(e);
4069
+ $(() => {
3954
4070
  const l = d.current;
3955
4071
  l != null && a === 1 && p && (l.scrollTop = l.scrollHeight);
3956
4072
  }, [s, a, p]);
3957
- const S = x(o.searchingInMemoriesOfType, {
4073
+ const T = k(o.searchingInMemoriesOfType, {
3958
4074
  name: e.memoryTypeName
3959
- }), c = !i && a === 3;
4075
+ }), f = !i && a === 3;
3960
4076
  return /* @__PURE__ */ m(
3961
- b.div,
4077
+ v.div,
3962
4078
  {
3963
4079
  initial: { opacity: 0 },
3964
4080
  animate: { opacity: 1 },
@@ -3969,7 +4085,7 @@ function an({
3969
4085
  borderBottom: `1px solid ${n.border}`,
3970
4086
  display: "flex",
3971
4087
  flexDirection: "row",
3972
- alignItems: c ? "flex-start" : "center",
4088
+ alignItems: f ? "flex-start" : "center",
3973
4089
  gap: "10px",
3974
4090
  minWidth: 0
3975
4091
  },
@@ -3983,9 +4099,9 @@ function an({
3983
4099
  justifyContent: "center",
3984
4100
  flexShrink: 0,
3985
4101
  width: 32,
3986
- ...c ? { paddingTop: 2 } : {}
4102
+ ...f ? { paddingTop: 2 } : {}
3987
4103
  },
3988
- children: /* @__PURE__ */ r(tn, { phase: i ? 1 : a })
4104
+ children: /* @__PURE__ */ r(sn, { phase: i ? 1 : a })
3989
4105
  }
3990
4106
  ),
3991
4107
  /* @__PURE__ */ m(
@@ -3999,8 +4115,8 @@ function an({
3999
4115
  flex: 1
4000
4116
  },
4001
4117
  children: [
4002
- /* @__PURE__ */ r("span", { style: { fontSize: 13, fontWeight: 500, color: n.textPrimary }, children: y ? /* @__PURE__ */ r(w, { text: S, duration: 2.5, repeat: !0 }) : e.memoryTypeName }),
4003
- a === 1 && p && !H(e) && /* @__PURE__ */ m("div", { style: { minWidth: 0 }, children: [
4118
+ /* @__PURE__ */ r("span", { style: { fontSize: 13, fontWeight: 500, color: n.textPrimary }, children: h ? /* @__PURE__ */ r(C, { text: T, duration: 2.5, repeat: !0 }) : e.memoryTypeName }),
4119
+ a === 1 && p && !q(e) && /* @__PURE__ */ m("div", { style: { minWidth: 0 }, children: [
4004
4120
  /* @__PURE__ */ r(
4005
4121
  "span",
4006
4122
  {
@@ -4029,13 +4145,13 @@ function an({
4029
4145
  ref: d,
4030
4146
  className: "memory-search-generating-reasoning-viewport",
4031
4147
  style: {
4032
- minHeight: en,
4033
- maxHeight: rn,
4148
+ minHeight: on,
4149
+ maxHeight: tn,
4034
4150
  height: "auto",
4035
4151
  overflowY: "auto",
4036
4152
  overflowX: "hidden",
4037
- fontSize: q,
4038
- lineHeight: U,
4153
+ fontSize: Q,
4154
+ lineHeight: j,
4039
4155
  whiteSpace: "pre-wrap",
4040
4156
  wordBreak: "break-word",
4041
4157
  color: n.textTertiary
@@ -4046,15 +4162,15 @@ function an({
4046
4162
  }
4047
4163
  )
4048
4164
  ] }),
4049
- a === 2 && f && /* @__PURE__ */ r("div", { style: { fontSize: 12 }, children: /* @__PURE__ */ r(
4050
- w,
4165
+ a === 2 && x && /* @__PURE__ */ r("div", { style: { fontSize: 12 }, children: /* @__PURE__ */ r(
4166
+ C,
4051
4167
  {
4052
4168
  text: o.memorySearchGeneratingQueriesPending,
4053
4169
  duration: 2.5,
4054
4170
  repeat: !0
4055
4171
  }
4056
4172
  ) }),
4057
- a === 3 && /* @__PURE__ */ m(E, { children: [
4173
+ a === 3 && /* @__PURE__ */ m(R, { children: [
4058
4174
  /* @__PURE__ */ m("div", { style: { minWidth: 0 }, children: [
4059
4175
  /* @__PURE__ */ r(
4060
4176
  "span",
@@ -4077,7 +4193,7 @@ function an({
4077
4193
  flexDirection: "column",
4078
4194
  gap: 6
4079
4195
  },
4080
- children: e.queries.map((l, g) => /* @__PURE__ */ r(
4196
+ children: e.queries.map((l, c) => /* @__PURE__ */ r(
4081
4197
  "div",
4082
4198
  {
4083
4199
  style: {
@@ -4088,17 +4204,17 @@ function an({
4088
4204
  },
4089
4205
  children: l.query
4090
4206
  },
4091
- g
4207
+ c
4092
4208
  ))
4093
4209
  }
4094
4210
  )
4095
4211
  ] }),
4096
- p && /* @__PURE__ */ m(E, { children: [
4212
+ p && /* @__PURE__ */ m(R, { children: [
4097
4213
  /* @__PURE__ */ r(
4098
4214
  "button",
4099
4215
  {
4100
4216
  type: "button",
4101
- onClick: () => h((l) => !l),
4217
+ onClick: () => g((l) => !l),
4102
4218
  style: {
4103
4219
  alignSelf: "flex-start",
4104
4220
  border: "none",
@@ -4116,8 +4232,8 @@ function an({
4116
4232
  "div",
4117
4233
  {
4118
4234
  style: {
4119
- fontSize: q,
4120
- lineHeight: U,
4235
+ fontSize: Q,
4236
+ lineHeight: j,
4121
4237
  whiteSpace: "pre-wrap",
4122
4238
  wordBreak: "break-word",
4123
4239
  color: n.textTertiary,
@@ -4137,16 +4253,16 @@ function an({
4137
4253
  }
4138
4254
  );
4139
4255
  }
4140
- const ln = ({ data: e, isLatest: o = !1, durationSeconds: t, t: n }) => {
4141
- const { colors: i } = k(), a = z(() => {
4256
+ const dn = ({ data: e, isLatest: o = !1, durationSeconds: t, t: n }) => {
4257
+ const { colors: i } = b(), a = F(() => {
4142
4258
  let s = -1;
4143
4259
  return e.memoryTypes.forEach((p, d) => {
4144
- H(p) || (s = d);
4260
+ q(p) || (s = d);
4145
4261
  }), s;
4146
4262
  }, [e.memoryTypes]);
4147
4263
  return /* @__PURE__ */ m("div", { style: { paddingBlock: "10px" }, children: [
4148
- o && !t && e.memoryTypes.length === 0 ? /* @__PURE__ */ r(w, { text: n.memorySearchGeneratingQueries, duration: 2.5, repeat: !0 }) : e.memoryTypes.map((s, p) => /* @__PURE__ */ r(
4149
- an,
4264
+ o && !t && e.memoryTypes.length === 0 ? /* @__PURE__ */ r(C, { text: n.memorySearchGeneratingQueries, duration: 2.5, repeat: !0 }) : e.memoryTypes.map((s, p) => /* @__PURE__ */ r(
4265
+ cn,
4150
4266
  {
4151
4267
  item: s,
4152
4268
  t: n,
@@ -4163,24 +4279,24 @@ const ln = ({ data: e, isLatest: o = !1, durationSeconds: t, t: n }) => {
4163
4279
  marginTop: "4px",
4164
4280
  fontStyle: "italic"
4165
4281
  },
4166
- children: x(n.tookSeconds, { n: t })
4282
+ children: k(n.tookSeconds, { n: t })
4167
4283
  }
4168
4284
  )
4169
4285
  ] });
4170
4286
  };
4171
- function sn(e) {
4172
- return e.some((n) => n.result == null && n.error == null) ? /* @__PURE__ */ r("span", { className: "explore-memory-loader" }) : e.some((n) => n.error != null) ? /* @__PURE__ */ r(W, { size: 15, lineWidth: 2 }) : /* @__PURE__ */ r(B, { size: 15, borderWidth: 2 });
4287
+ function pn(e) {
4288
+ return e.some((n) => n.result == null && n.error == null) ? /* @__PURE__ */ r("span", { className: "explore-memory-loader" }) : e.some((n) => n.error != null) ? /* @__PURE__ */ r(O, { size: 15, lineWidth: 2 }) : /* @__PURE__ */ r(z, { size: 15, borderWidth: 2 });
4173
4289
  }
4174
- function cn({
4290
+ function un({
4175
4291
  item: e,
4176
4292
  t: o
4177
4293
  }) {
4178
- const { colors: t } = k();
4294
+ const { colors: t } = b();
4179
4295
  if (e.error != null)
4180
4296
  return /* @__PURE__ */ r("span", { style: { fontSize: 12, color: t.textError, whiteSpace: "nowrap" }, children: e.error });
4181
4297
  if (e.result == null)
4182
- return /* @__PURE__ */ r("span", { style: { flexShrink: 0, fontSize: 12 }, children: /* @__PURE__ */ r(w, { text: o.searching, duration: 2.5, repeat: !0 }) });
4183
- const n = e.result, i = n.numberOfChunks === 1 ? o.chunkFound : x(o.chunksFound, { n: n.numberOfChunks }), a = x(o.scoreLabel, {
4298
+ return /* @__PURE__ */ r("span", { style: { flexShrink: 0, fontSize: 12 }, children: /* @__PURE__ */ r(C, { text: o.searching, duration: 2.5, repeat: !0 }) });
4299
+ const n = e.result, i = n.numberOfChunks === 1 ? o.chunkFound : k(o.chunksFound, { n: n.numberOfChunks }), a = k(o.scoreLabel, {
4184
4300
  n: n.highestChunkScore.toFixed(2)
4185
4301
  });
4186
4302
  return /* @__PURE__ */ m("span", { style: { fontSize: 12, color: t.textSecondary, whiteSpace: "nowrap" }, children: [
@@ -4189,13 +4305,13 @@ function cn({
4189
4305
  a
4190
4306
  ] });
4191
4307
  }
4192
- function dn({
4308
+ function mn({
4193
4309
  items: e,
4194
4310
  queryRow: o,
4195
4311
  onExploreQueryResultClick: t,
4196
4312
  t: n
4197
4313
  }) {
4198
- const { colors: i } = k(), [a, s] = C(null);
4314
+ const { colors: i } = b(), [a, s] = w(null);
4199
4315
  if (e.length === 0)
4200
4316
  return /* @__PURE__ */ r(
4201
4317
  "div",
@@ -4221,24 +4337,24 @@ function dn({
4221
4337
  borderTop: `1px solid ${i.borderDivider}`
4222
4338
  },
4223
4339
  children: e.map((d, u) => {
4224
- const h = d.memoryTitle !== "" ? d.memoryTitle : d.memoryId, y = ee(
4340
+ const g = d.memoryTitle !== "" ? d.memoryTitle : d.memoryId, h = re(
4225
4341
  d.chunks
4226
- ), f = [
4227
- re(d),
4228
- x(n.scoreLabel, {
4342
+ ), x = [
4343
+ ne(d),
4344
+ k(n.scoreLabel, {
4229
4345
  n: d.matchingChunkScore.toFixed(2)
4230
4346
  }),
4231
- y.length > 0 ? Z(y, n) : n.pagesNotAvailable
4347
+ h.length > 0 ? ee(h, n) : n.pagesNotAvailable
4232
4348
  ].filter(
4233
- (g) => g != null && g !== ""
4234
- ), S = {
4349
+ (c) => c != null && c !== ""
4350
+ ), T = {
4235
4351
  memoryId: d.memoryId,
4236
4352
  memoryTitle: d.memoryTitle,
4237
- pageNumbers: y,
4353
+ pageNumbers: h,
4238
4354
  memoryTypeId: o.memoryTypeId,
4239
4355
  memoryTypeName: o.memoryTypeName,
4240
4356
  query: o.query
4241
- }, c = `${o.query}::${d.memoryId}::${u}`, l = a === c;
4357
+ }, f = `${o.query}::${d.memoryId}::${u}`, l = a === f;
4242
4358
  return /* @__PURE__ */ m(
4243
4359
  "div",
4244
4360
  {
@@ -4272,7 +4388,7 @@ function dn({
4272
4388
  fontWeight: 600,
4273
4389
  color: i.textPrimary
4274
4390
  },
4275
- children: h
4391
+ children: g
4276
4392
  }
4277
4393
  ),
4278
4394
  /* @__PURE__ */ r(
@@ -4285,7 +4401,7 @@ function dn({
4285
4401
  whiteSpace: "pre-wrap",
4286
4402
  wordBreak: "break-word"
4287
4403
  },
4288
- children: J(
4404
+ children: Z(
4289
4405
  d.chunks
4290
4406
  )
4291
4407
  }
@@ -4299,7 +4415,7 @@ function dn({
4299
4415
  color: i.textMuted,
4300
4416
  lineHeight: 1.35
4301
4417
  },
4302
- children: f.join(" · ")
4418
+ children: x.join(" · ")
4303
4419
  }
4304
4420
  )
4305
4421
  ]
@@ -4312,10 +4428,10 @@ function dn({
4312
4428
  "aria-busy": l,
4313
4429
  disabled: l,
4314
4430
  onClick: async () => {
4315
- s(c);
4431
+ s(f);
4316
4432
  try {
4317
4433
  await t(
4318
- S
4434
+ T
4319
4435
  );
4320
4436
  } finally {
4321
4437
  s(null);
@@ -4357,7 +4473,7 @@ function dn({
4357
4473
  }
4358
4474
  );
4359
4475
  }
4360
- function pn(e) {
4476
+ function gn(e) {
4361
4477
  const o = [], t = /* @__PURE__ */ new Map();
4362
4478
  return e.forEach((n, i) => {
4363
4479
  let a = t.get(n.memoryTypeId);
@@ -4368,7 +4484,7 @@ function pn(e) {
4368
4484
  }, t.set(n.memoryTypeId, a)), a.items.push({ item: n, flatIndex: i });
4369
4485
  }), o.map((n) => t.get(n));
4370
4486
  }
4371
- function un({
4487
+ function hn({
4372
4488
  group: e,
4373
4489
  t: o,
4374
4490
  isLatest: t,
@@ -4376,11 +4492,11 @@ function un({
4376
4492
  toggleExpanded: i,
4377
4493
  onExploreQueryResultClick: a
4378
4494
  }) {
4379
- const { colors: s } = k(), p = e.items.map((u) => u.item), d = p.some(
4495
+ const { colors: s } = b(), p = e.items.map((u) => u.item), d = p.some(
4380
4496
  (u) => u.result == null && u.error == null
4381
4497
  );
4382
4498
  return /* @__PURE__ */ m(
4383
- b.div,
4499
+ v.div,
4384
4500
  {
4385
4501
  initial: { opacity: 0 },
4386
4502
  animate: { opacity: 1 },
@@ -4407,7 +4523,7 @@ function un({
4407
4523
  width: 32,
4408
4524
  ...d ? {} : { paddingTop: 2 }
4409
4525
  },
4410
- children: sn(p)
4526
+ children: pn(p)
4411
4527
  }
4412
4528
  ),
4413
4529
  /* @__PURE__ */ m(
@@ -4428,14 +4544,14 @@ function un({
4428
4544
  fontSize: 12,
4429
4545
  color: s.textTertiary
4430
4546
  },
4431
- children: x(o.memorySearchExploreQueryTypeLabel, {
4547
+ children: k(o.memorySearchExploreQueryTypeLabel, {
4432
4548
  name: e.memoryTypeName
4433
4549
  })
4434
4550
  }
4435
4551
  ),
4436
- e.items.map(({ item: u, flatIndex: h }) => {
4437
- var g;
4438
- const y = u.result != null, f = u.error != null, S = t && !y && !f, c = n[h] === !0, l = ((g = u.result) == null ? void 0 : g.items) ?? [];
4552
+ e.items.map(({ item: u, flatIndex: g }) => {
4553
+ var c;
4554
+ const h = u.result != null, x = u.error != null, T = t && !h && !x, f = n[g] === !0, l = ((c = u.result) == null ? void 0 : c.items) ?? [];
4439
4555
  return /* @__PURE__ */ m(
4440
4556
  "div",
4441
4557
  {
@@ -4469,8 +4585,8 @@ function un({
4469
4585
  flex: "1 1 12rem",
4470
4586
  minWidth: 0
4471
4587
  },
4472
- children: S ? /* @__PURE__ */ r(
4473
- w,
4588
+ children: T ? /* @__PURE__ */ r(
4589
+ C,
4474
4590
  {
4475
4591
  text: u.query,
4476
4592
  duration: 2.5,
@@ -4490,12 +4606,12 @@ function un({
4490
4606
  flexShrink: 0
4491
4607
  },
4492
4608
  children: [
4493
- /* @__PURE__ */ r(cn, { item: u, t: o }),
4494
- y && /* @__PURE__ */ r(
4609
+ /* @__PURE__ */ r(un, { item: u, t: o }),
4610
+ h && /* @__PURE__ */ r(
4495
4611
  "button",
4496
4612
  {
4497
4613
  type: "button",
4498
- onClick: () => i(h),
4614
+ onClick: () => i(g),
4499
4615
  style: {
4500
4616
  border: "none",
4501
4617
  background: "none",
@@ -4506,7 +4622,7 @@ function un({
4506
4622
  textDecoration: "underline",
4507
4623
  fontFamily: "inherit"
4508
4624
  },
4509
- children: c ? o.memorySearchHideExploreResults : o.memorySearchViewExploreResults
4625
+ children: f ? o.memorySearchHideExploreResults : o.memorySearchViewExploreResults
4510
4626
  }
4511
4627
  )
4512
4628
  ]
@@ -4515,8 +4631,8 @@ function un({
4515
4631
  ]
4516
4632
  }
4517
4633
  ),
4518
- y && c && /* @__PURE__ */ r(
4519
- dn,
4634
+ h && f && /* @__PURE__ */ r(
4635
+ mn,
4520
4636
  {
4521
4637
  items: l,
4522
4638
  queryRow: u,
@@ -4526,7 +4642,7 @@ function un({
4526
4642
  )
4527
4643
  ]
4528
4644
  },
4529
- `${e.memoryTypeId}-${h}-${u.query}`
4645
+ `${e.memoryTypeId}-${g}-${u.query}`
4530
4646
  );
4531
4647
  })
4532
4648
  ]
@@ -4536,43 +4652,43 @@ function un({
4536
4652
  }
4537
4653
  );
4538
4654
  }
4539
- const mn = ({
4655
+ const yn = ({
4540
4656
  data: e,
4541
4657
  isLatest: o = !1,
4542
4658
  durationSeconds: t,
4543
4659
  onExploreQueryResultClick: n,
4544
4660
  t: i
4545
4661
  }) => {
4546
- const { colors: a } = k(), [s, p] = C(
4662
+ const { colors: a } = b(), [s, p] = w(
4547
4663
  {}
4548
- ), d = L((h) => {
4549
- p((y) => ({
4550
- ...y,
4551
- [h]: !y[h]
4664
+ ), d = L((g) => {
4665
+ p((h) => ({
4666
+ ...h,
4667
+ [g]: !h[g]
4552
4668
  }));
4553
- }, []), u = z(
4554
- () => pn(e.queries),
4669
+ }, []), u = F(
4670
+ () => gn(e.queries),
4555
4671
  [e.queries]
4556
4672
  );
4557
4673
  return /* @__PURE__ */ m("div", { style: { paddingBlock: "10px" }, children: [
4558
4674
  o && !t && e.queries.length === 0 ? /* @__PURE__ */ r(
4559
- w,
4675
+ C,
4560
4676
  {
4561
4677
  text: i.memorySearchExploringQueries,
4562
4678
  duration: 2.5,
4563
4679
  repeat: !0
4564
4680
  }
4565
- ) : u.map((h) => /* @__PURE__ */ r(
4566
- un,
4681
+ ) : u.map((g) => /* @__PURE__ */ r(
4682
+ hn,
4567
4683
  {
4568
- group: h,
4684
+ group: g,
4569
4685
  t: i,
4570
4686
  isLatest: o,
4571
4687
  expandedRows: s,
4572
4688
  toggleExpanded: d,
4573
4689
  onExploreQueryResultClick: n
4574
4690
  },
4575
- h.memoryTypeId
4691
+ g.memoryTypeId
4576
4692
  )),
4577
4693
  t !== void 0 && /* @__PURE__ */ r(
4578
4694
  "div",
@@ -4583,15 +4699,15 @@ const mn = ({
4583
4699
  marginTop: "4px",
4584
4700
  fontStyle: "italic"
4585
4701
  },
4586
- children: x(i.tookSeconds, { n: t })
4702
+ children: k(i.tookSeconds, { n: t })
4587
4703
  }
4588
4704
  )
4589
4705
  ] });
4590
- }, gn = ({ data: e, onSearchResultClick: o, t }) => {
4591
- const { colors: n } = k(), i = e.response.items, a = !!o, [s, p] = C(null);
4706
+ }, fn = ({ data: e, onSearchResultClick: o, t }) => {
4707
+ const { colors: n } = b(), i = e.response.items, a = !!o, [s, p] = w(null);
4592
4708
  return /* @__PURE__ */ m("div", { style: { paddingBlock: "16px" }, children: [
4593
4709
  /* @__PURE__ */ r(
4594
- b.div,
4710
+ v.div,
4595
4711
  {
4596
4712
  style: {
4597
4713
  marginBottom: "12px",
@@ -4614,25 +4730,25 @@ const mn = ({
4614
4730
  gap: 0
4615
4731
  },
4616
4732
  children: i.map((d, u) => {
4617
- const h = d.memoryTitle !== "" ? d.memoryTitle : d.memoryId, y = ee(
4733
+ const g = d.memoryTitle !== "" ? d.memoryTitle : d.memoryId, h = re(
4618
4734
  d.chunks
4619
- ), f = [
4620
- re(d),
4621
- x(t.scoreLabel, {
4735
+ ), x = [
4736
+ ne(d),
4737
+ k(t.scoreLabel, {
4622
4738
  n: d.matchingChunkScore.toFixed(2)
4623
4739
  }),
4624
- y.length > 0 ? Z(y, t) : t.pagesNotAvailable
4740
+ h.length > 0 ? ee(h, t) : t.pagesNotAvailable
4625
4741
  ].filter(
4626
- (g) => g != null && g !== ""
4627
- ), S = {
4742
+ (c) => c != null && c !== ""
4743
+ ), T = {
4628
4744
  memoryId: d.memoryId,
4629
4745
  memoryTitle: d.memoryTitle,
4630
4746
  memoryTypeId: d.memoryTypeId,
4631
4747
  memoryTypeName: d.memoryTypeName,
4632
- pageNumbers: y
4633
- }, c = `${d.memoryId}-${u}`, l = s === c;
4748
+ pageNumbers: h
4749
+ }, f = `${d.memoryId}-${u}`, l = s === f;
4634
4750
  return /* @__PURE__ */ m(
4635
- b.div,
4751
+ v.div,
4636
4752
  {
4637
4753
  initial: { opacity: 0 },
4638
4754
  animate: { opacity: 1 },
@@ -4667,7 +4783,7 @@ const mn = ({
4667
4783
  fontWeight: 600,
4668
4784
  color: n.textPrimary
4669
4785
  },
4670
- children: h
4786
+ children: g
4671
4787
  }
4672
4788
  ),
4673
4789
  /* @__PURE__ */ r(
@@ -4680,7 +4796,7 @@ const mn = ({
4680
4796
  whiteSpace: "pre-wrap",
4681
4797
  wordBreak: "break-word"
4682
4798
  },
4683
- children: J(d.chunks)
4799
+ children: Z(d.chunks)
4684
4800
  }
4685
4801
  ),
4686
4802
  /* @__PURE__ */ r(
@@ -4692,7 +4808,7 @@ const mn = ({
4692
4808
  color: n.textMuted,
4693
4809
  lineHeight: 1.35
4694
4810
  },
4695
- children: f.join(" · ")
4811
+ children: x.join(" · ")
4696
4812
  }
4697
4813
  )
4698
4814
  ]
@@ -4705,9 +4821,9 @@ const mn = ({
4705
4821
  "aria-busy": l,
4706
4822
  disabled: l,
4707
4823
  onClick: async () => {
4708
- p(c);
4824
+ p(f);
4709
4825
  try {
4710
- await o(S);
4826
+ await o(T);
4711
4827
  } finally {
4712
4828
  p(null);
4713
4829
  }
@@ -4748,10 +4864,10 @@ const mn = ({
4748
4864
  }
4749
4865
  )
4750
4866
  ] });
4751
- }, D = ({ message: e }) => {
4752
- const { colors: o } = k();
4867
+ }, G = ({ message: e }) => {
4868
+ const { colors: o } = b();
4753
4869
  return /* @__PURE__ */ r("div", { style: { paddingBlock: "16px" }, children: /* @__PURE__ */ r(
4754
- b.div,
4870
+ v.div,
4755
4871
  {
4756
4872
  initial: { opacity: 0, y: -10 },
4757
4873
  animate: { opacity: 1, y: 0 },
@@ -4775,7 +4891,7 @@ const mn = ({
4775
4891
  }
4776
4892
  ) });
4777
4893
  };
4778
- class hn extends Ne.Component {
4894
+ class xn extends Ge.Component {
4779
4895
  constructor(o) {
4780
4896
  super(o), this.state = { hasError: !1 };
4781
4897
  }
@@ -4794,386 +4910,396 @@ class hn extends Ne.Component {
4794
4910
  return this.state.hasError ? null : this.props.children;
4795
4911
  }
4796
4912
  }
4797
- const yn = ({
4913
+ const kn = ({
4798
4914
  progressViewItems: e,
4799
4915
  loading: o,
4800
4916
  error: t,
4801
4917
  loadingText: n,
4802
4918
  t: i,
4803
- onSourceClick: a,
4804
- onSearchResultClick: s,
4805
- onExploreQueryResultClick: p,
4806
- downloadFile: d
4919
+ onMemoryClick: a,
4920
+ onSourceClick: s,
4921
+ onSearchResultClick: p,
4922
+ onExploreQueryResultClick: d,
4923
+ downloadFile: u
4807
4924
  }) => {
4808
- const { theme: u, colors: h } = k(), y = P(null);
4809
- A(() => {
4810
- y.current && (y.current.scrollTop = y.current.scrollHeight);
4925
+ const { theme: g, colors: h } = b(), x = A(null);
4926
+ $(() => {
4927
+ x.current && (x.current.scrollTop = x.current.scrollHeight);
4811
4928
  }, [e.length]);
4812
- const f = (c) => {
4813
- const l = c.item.data;
4814
- if (l.taskType === "StreamingChatCompletion" && l.eventType === "Text")
4815
- return /* @__PURE__ */ r(_, { text: l.text });
4816
- if (l.taskType === "StructuredChatCompletion" && l.eventType === "Completed")
4817
- return /* @__PURE__ */ r(Je, { data: l });
4818
- if (l.taskType === "MemoryChat")
4819
- switch (l.eventType) {
4929
+ const T = (l) => {
4930
+ const c = l.item.data;
4931
+ if (c.taskType === "StreamingChatCompletion" && c.eventType === "Text")
4932
+ return /* @__PURE__ */ r(
4933
+ U,
4934
+ {
4935
+ text: c.text,
4936
+ onMemoryClick: a
4937
+ }
4938
+ );
4939
+ if (c.taskType === "StructuredChatCompletion" && c.eventType === "Completed")
4940
+ return /* @__PURE__ */ r(er, { data: c });
4941
+ if (c.taskType === "MemoryChat")
4942
+ switch (c.eventType) {
4820
4943
  case "Text":
4821
4944
  return /* @__PURE__ */ r(
4822
- _,
4945
+ U,
4823
4946
  {
4824
- text: l.text,
4825
- onFileDownload: d
4947
+ text: c.text,
4948
+ onFileDownload: u,
4949
+ onMemoryClick: a
4826
4950
  }
4827
4951
  );
4828
4952
  case "Thinking":
4829
4953
  return /* @__PURE__ */ r(
4830
- pe,
4954
+ ue,
4831
4955
  {
4832
- data: l,
4833
- isLatest: c.isLatest,
4834
- durationSeconds: c.durationSeconds,
4956
+ data: c,
4957
+ isLatest: l.isLatest,
4958
+ durationSeconds: l.durationSeconds,
4835
4959
  t: i
4836
4960
  }
4837
4961
  );
4838
4962
  case "GenerateReportSetup":
4839
4963
  return /* @__PURE__ */ r(
4840
- Br,
4964
+ Lr,
4841
4965
  {
4842
- data: l,
4843
- isLatest: c.isLatest,
4844
- durationSeconds: c.durationSeconds,
4966
+ data: c,
4967
+ isLatest: l.isLatest,
4968
+ durationSeconds: l.durationSeconds,
4845
4969
  t: i
4846
4970
  }
4847
4971
  );
4848
4972
  case "GenerateReportExporting":
4849
4973
  return /* @__PURE__ */ r(
4850
- Pr,
4974
+ Ar,
4851
4975
  {
4852
- data: l,
4853
- isLatest: c.isLatest,
4854
- durationSeconds: c.durationSeconds,
4976
+ data: c,
4977
+ isLatest: l.isLatest,
4978
+ durationSeconds: l.durationSeconds,
4855
4979
  t: i
4856
4980
  }
4857
4981
  );
4858
4982
  case "GenerateReportRunCode":
4859
4983
  return /* @__PURE__ */ r(
4860
- Lr,
4984
+ Dr,
4861
4985
  {
4862
- data: l,
4863
- isLatest: c.isLatest,
4864
- durationSeconds: c.durationSeconds,
4986
+ data: c,
4987
+ isLatest: l.isLatest,
4988
+ durationSeconds: l.durationSeconds,
4865
4989
  t: i
4866
4990
  }
4867
4991
  );
4868
4992
  case "GenerateReportRunCommand":
4869
4993
  return /* @__PURE__ */ r(
4870
- Ar,
4994
+ Wr,
4871
4995
  {
4872
- data: l,
4873
- isLatest: c.isLatest,
4874
- durationSeconds: c.durationSeconds,
4996
+ data: c,
4997
+ isLatest: l.isLatest,
4998
+ durationSeconds: l.durationSeconds,
4875
4999
  t: i
4876
5000
  }
4877
5001
  );
4878
5002
  case "GenerateReportAssembling":
4879
5003
  return /* @__PURE__ */ r(
4880
- Dr,
5004
+ $r,
4881
5005
  {
4882
- data: l,
4883
- isLatest: c.isLatest,
4884
- durationSeconds: c.durationSeconds,
5006
+ data: c,
5007
+ isLatest: l.isLatest,
5008
+ durationSeconds: l.durationSeconds,
4885
5009
  t: i
4886
5010
  }
4887
5011
  );
4888
5012
  case "GenerateReportCompleted":
4889
- return /* @__PURE__ */ r(Wr, { data: l, t: i });
5013
+ return /* @__PURE__ */ r(Nr, { data: c, t: i });
4890
5014
  case "FindMemories":
4891
5015
  return /* @__PURE__ */ r(
4892
- dr,
5016
+ ur,
4893
5017
  {
4894
- data: l,
4895
- isLatest: c.isLatest,
4896
- durationSeconds: c.durationSeconds,
5018
+ data: c,
5019
+ isLatest: l.isLatest,
5020
+ durationSeconds: l.durationSeconds,
4897
5021
  t: i
4898
5022
  }
4899
5023
  );
4900
5024
  case "FindMemoriesResult":
4901
5025
  return /* @__PURE__ */ r(
4902
- pr,
5026
+ mr,
4903
5027
  {
4904
- data: l,
5028
+ data: c,
4905
5029
  t: i
4906
5030
  }
4907
5031
  );
4908
5032
  case "Search":
4909
5033
  return /* @__PURE__ */ r(
4910
- N,
5034
+ _,
4911
5035
  {
4912
- data: l,
4913
- isLatest: c.isLatest,
4914
- durationSeconds: c.durationSeconds,
5036
+ data: c,
5037
+ isLatest: l.isLatest,
5038
+ durationSeconds: l.durationSeconds,
4915
5039
  t: i
4916
5040
  }
4917
5041
  );
4918
5042
  case "SearchMemoryChunks":
4919
5043
  return /* @__PURE__ */ r(
4920
- cr,
5044
+ pr,
4921
5045
  {
4922
- data: l,
4923
- isLatest: c.isLatest,
4924
- durationSeconds: c.durationSeconds,
5046
+ data: c,
5047
+ isLatest: l.isLatest,
5048
+ durationSeconds: l.durationSeconds,
4925
5049
  t: i,
4926
- onSearchResultClick: s
5050
+ onSearchResultClick: p
4927
5051
  }
4928
5052
  );
4929
5053
  case "FindSources":
4930
5054
  return /* @__PURE__ */ r(
4931
- ae,
5055
+ le,
4932
5056
  {
4933
- data: l,
4934
- isLatest: c.isLatest,
4935
- durationSeconds: c.durationSeconds,
5057
+ data: c,
5058
+ isLatest: l.isLatest,
5059
+ durationSeconds: l.durationSeconds,
4936
5060
  t: i
4937
5061
  }
4938
5062
  );
4939
5063
  case "SourcesResult":
4940
5064
  return /* @__PURE__ */ r(
4941
- Te,
5065
+ ve,
4942
5066
  {
4943
- data: l,
4944
- onSourceClick: a,
5067
+ data: c,
5068
+ onSourceClick: s,
4945
5069
  t: i
4946
5070
  }
4947
5071
  );
4948
5072
  case "ExploreMemories":
4949
5073
  return /* @__PURE__ */ r(
4950
- yr,
5074
+ xr,
4951
5075
  {
4952
- data: l,
4953
- completed: c.completed,
4954
- isLatest: c.isLatest,
5076
+ data: c,
5077
+ completed: l.completed,
5078
+ isLatest: l.isLatest,
4955
5079
  t: i
4956
5080
  }
4957
5081
  );
4958
5082
  case "ChunkResults":
4959
5083
  return /* @__PURE__ */ r(
4960
- ne,
5084
+ oe,
4961
5085
  {
4962
- data: l,
4963
- onSearchResultClick: s,
5086
+ data: c,
5087
+ onSearchResultClick: p,
4964
5088
  t: i
4965
5089
  }
4966
5090
  );
4967
5091
  case "GoogleSearch":
4968
5092
  return /* @__PURE__ */ r(
4969
- br,
5093
+ vr,
4970
5094
  {
4971
- data: l,
4972
- isLatest: c.isLatest,
4973
- durationSeconds: c.durationSeconds,
5095
+ data: c,
5096
+ isLatest: l.isLatest,
5097
+ durationSeconds: l.durationSeconds,
4974
5098
  t: i
4975
5099
  }
4976
5100
  );
4977
5101
  case "ScrapeWebsites":
4978
5102
  return /* @__PURE__ */ r(
4979
- zr,
5103
+ Pr,
4980
5104
  {
4981
- data: l,
4982
- isLatest: c.isLatest,
4983
- durationSeconds: c.durationSeconds,
5105
+ data: c,
5106
+ isLatest: l.isLatest,
5107
+ durationSeconds: l.durationSeconds,
4984
5108
  t: i
4985
5109
  }
4986
5110
  );
4987
5111
  case "Completed":
4988
5112
  return null;
4989
5113
  default: {
4990
- const g = l;
4991
- return g.eventType === "Error" && "message" in g ? /* @__PURE__ */ r(D, { message: g.message }) : (console.warn(
5114
+ const y = c;
5115
+ return y.eventType === "Error" && "message" in y ? /* @__PURE__ */ r(G, { message: y.message }) : (console.warn(
4992
5116
  "[fency] Unknown MemoryChat eventType (no UI):",
4993
- g.eventType,
4994
- g
5117
+ y.eventType,
5118
+ y
4995
5119
  ), null);
4996
5120
  }
4997
5121
  }
4998
- if (l.taskType === "MemorySearch")
4999
- switch (l.eventType) {
5122
+ if (c.taskType === "MemorySearch")
5123
+ switch (c.eventType) {
5000
5124
  case "GeneratingQueries":
5001
5125
  return /* @__PURE__ */ r(
5002
- ln,
5126
+ dn,
5003
5127
  {
5004
- data: l,
5005
- isLatest: c.isLatest,
5006
- durationSeconds: c.durationSeconds,
5128
+ data: c,
5129
+ isLatest: l.isLatest,
5130
+ durationSeconds: l.durationSeconds,
5007
5131
  t: i
5008
5132
  }
5009
5133
  );
5010
5134
  case "ExploreQueries":
5011
5135
  return /* @__PURE__ */ r(
5012
- mn,
5136
+ yn,
5013
5137
  {
5014
- data: l,
5015
- isLatest: c.isLatest,
5016
- durationSeconds: c.durationSeconds,
5017
- onExploreQueryResultClick: p,
5138
+ data: c,
5139
+ isLatest: l.isLatest,
5140
+ durationSeconds: l.durationSeconds,
5141
+ onExploreQueryResultClick: d,
5018
5142
  t: i
5019
5143
  }
5020
5144
  );
5021
5145
  case "SearchMemoryTypes":
5022
5146
  return /* @__PURE__ */ r(
5023
- Zr,
5147
+ nn,
5024
5148
  {
5025
- data: l,
5026
- isLatest: c.isLatest,
5027
- durationSeconds: c.durationSeconds,
5149
+ data: c,
5150
+ isLatest: l.isLatest,
5151
+ durationSeconds: l.durationSeconds,
5028
5152
  t: i
5029
5153
  }
5030
5154
  );
5031
5155
  case "Completed":
5032
5156
  return /* @__PURE__ */ r(
5033
- gn,
5157
+ fn,
5034
5158
  {
5035
- data: l,
5036
- onSearchResultClick: s,
5159
+ data: c,
5160
+ onSearchResultClick: p,
5037
5161
  t: i
5038
5162
  }
5039
5163
  );
5040
5164
  default: {
5041
- const g = l;
5042
- return g.eventType === "Error" && "message" in g ? /* @__PURE__ */ r(D, { message: g.message }) : (console.warn(
5165
+ const y = c;
5166
+ return y.eventType === "Error" && "message" in y ? /* @__PURE__ */ r(G, { message: y.message }) : (console.warn(
5043
5167
  "[fency] Unknown MemorySearch eventType (no UI):",
5044
- g.eventType,
5045
- g
5168
+ y.eventType,
5169
+ y
5046
5170
  ), null);
5047
5171
  }
5048
5172
  }
5049
- if (l.taskType === "ExploreMemories")
5050
- switch (l.eventType) {
5173
+ if (c.taskType === "ExploreMemories")
5174
+ switch (c.eventType) {
5051
5175
  case "Text":
5052
5176
  return /* @__PURE__ */ r(
5053
- _,
5177
+ U,
5054
5178
  {
5055
- text: l.text,
5056
- onFileDownload: d
5179
+ text: c.text,
5180
+ onFileDownload: u,
5181
+ onMemoryClick: a
5057
5182
  }
5058
5183
  );
5059
5184
  case "Thinking":
5060
5185
  return /* @__PURE__ */ r(
5061
- pe,
5186
+ ue,
5062
5187
  {
5063
5188
  data: { taskType: "MemoryChat", eventType: "Thinking" },
5064
- isLatest: c.isLatest,
5065
- durationSeconds: c.durationSeconds,
5189
+ isLatest: l.isLatest,
5190
+ durationSeconds: l.durationSeconds,
5066
5191
  t: i
5067
5192
  }
5068
5193
  );
5069
5194
  case "Planning":
5070
5195
  return /* @__PURE__ */ r(
5071
- Nr,
5196
+ Or,
5072
5197
  {
5073
- data: l,
5074
- isLatest: c.isLatest,
5075
- durationSeconds: c.durationSeconds,
5076
- t: i
5198
+ data: c,
5199
+ isLatest: l.isLatest,
5200
+ durationSeconds: l.durationSeconds,
5201
+ t: i,
5202
+ onMemoryClick: a
5077
5203
  }
5078
5204
  );
5079
5205
  case "SetupSandbox":
5080
5206
  return /* @__PURE__ */ r(
5081
- $r,
5207
+ Gr,
5082
5208
  {
5083
- data: l,
5084
- isLatest: c.isLatest,
5085
- durationSeconds: c.durationSeconds,
5209
+ data: c,
5210
+ isLatest: l.isLatest,
5211
+ durationSeconds: l.durationSeconds,
5086
5212
  t: i
5087
5213
  }
5088
5214
  );
5089
5215
  case "ExportingMemories":
5090
5216
  return /* @__PURE__ */ r(
5091
- Hr,
5217
+ _r,
5092
5218
  {
5093
- data: l,
5094
- isLatest: c.isLatest,
5095
- durationSeconds: c.durationSeconds,
5219
+ data: c,
5220
+ isLatest: l.isLatest,
5221
+ durationSeconds: l.durationSeconds,
5096
5222
  t: i
5097
5223
  }
5098
5224
  );
5099
5225
  case "FindMemories":
5100
5226
  return /* @__PURE__ */ r(
5101
- Gr,
5227
+ qr,
5102
5228
  {
5103
- data: l,
5104
- isLatest: c.isLatest,
5105
- durationSeconds: c.durationSeconds,
5229
+ data: c,
5230
+ isLatest: l.isLatest,
5231
+ durationSeconds: l.durationSeconds,
5106
5232
  t: i
5107
5233
  }
5108
5234
  );
5109
5235
  case "FindMemoriesResult":
5110
- return /* @__PURE__ */ r(Or, { data: l, t: i });
5236
+ return /* @__PURE__ */ r(Ur, { data: c, t: i });
5111
5237
  case "SemanticSearch":
5112
5238
  return /* @__PURE__ */ r(
5113
- qr,
5239
+ jr,
5114
5240
  {
5115
- data: l,
5116
- isLatest: c.isLatest,
5117
- durationSeconds: c.durationSeconds,
5241
+ data: c,
5242
+ isLatest: l.isLatest,
5243
+ durationSeconds: l.durationSeconds,
5118
5244
  t: i,
5119
- onSearchResultClick: s
5245
+ onSearchResultClick: p
5120
5246
  }
5121
5247
  );
5122
5248
  case "SemanticSearchForEach":
5123
5249
  return /* @__PURE__ */ r(
5124
- jr,
5250
+ Xr,
5125
5251
  {
5126
- data: l,
5127
- completed: c.completed,
5128
- isLatest: c.isLatest,
5252
+ data: c,
5253
+ completed: l.completed,
5254
+ isLatest: l.isLatest,
5129
5255
  t: i
5130
5256
  }
5131
5257
  );
5132
5258
  case "RunCode":
5133
5259
  return /* @__PURE__ */ r(
5134
- Kr,
5260
+ Yr,
5135
5261
  {
5136
- data: l,
5137
- isLatest: c.isLatest,
5138
- durationSeconds: c.durationSeconds,
5262
+ data: c,
5263
+ isLatest: l.isLatest,
5264
+ durationSeconds: l.durationSeconds,
5139
5265
  t: i
5140
5266
  }
5141
5267
  );
5142
5268
  case "FindSources":
5143
5269
  return /* @__PURE__ */ r(
5144
- ae,
5270
+ le,
5145
5271
  {
5146
5272
  data: { taskType: "MemoryChat", eventType: "FindSources" },
5147
- isLatest: c.isLatest,
5148
- durationSeconds: c.durationSeconds,
5273
+ isLatest: l.isLatest,
5274
+ durationSeconds: l.durationSeconds,
5149
5275
  t: i
5150
5276
  }
5151
5277
  );
5152
5278
  case "SourcesResult":
5153
5279
  return /* @__PURE__ */ r(
5154
- Vr,
5280
+ Jr,
5155
5281
  {
5156
- data: l,
5157
- onSourceClick: a,
5282
+ data: c,
5283
+ onSourceClick: s,
5158
5284
  t: i
5159
5285
  }
5160
5286
  );
5161
5287
  case "Completed":
5162
5288
  return null;
5163
5289
  default: {
5164
- const g = l;
5165
- return g.eventType === "Error" && "message" in g ? /* @__PURE__ */ r(D, { message: g.message }) : (console.warn(
5290
+ const y = c;
5291
+ return y.eventType === "Error" && "message" in y ? /* @__PURE__ */ r(G, { message: y.message }) : (console.warn(
5166
5292
  "[fency] Unknown ExploreMemories eventType (no UI):",
5167
- g.eventType,
5168
- g
5293
+ y.eventType,
5294
+ y
5169
5295
  ), null);
5170
5296
  }
5171
5297
  }
5172
- return l.taskType === "StreamingChatCompletion" && l.eventType === "Completed" ? null : l.eventType === "Error" && "message" in l ? /* @__PURE__ */ r(D, { message: l.message }) : null;
5298
+ return c.taskType === "StreamingChatCompletion" && c.eventType === "Completed" ? null : c.eventType === "Error" && "message" in c ? /* @__PURE__ */ r(G, { message: c.message }) : null;
5173
5299
  };
5174
5300
  if (e.length === 0)
5175
- return t ? /* @__PURE__ */ r("div", { style: { width: "fit-content" }, children: /* @__PURE__ */ r(D, { message: t.message }) }) : o ? /* @__PURE__ */ r("div", { style: { width: "fit-content", paddingBlock: "16px" }, children: /* @__PURE__ */ r(
5176
- w,
5301
+ return t ? /* @__PURE__ */ r("div", { style: { width: "fit-content" }, children: /* @__PURE__ */ r(G, { message: t.message }) }) : o ? /* @__PURE__ */ r("div", { style: { width: "fit-content", paddingBlock: "16px" }, children: /* @__PURE__ */ r(
5302
+ C,
5177
5303
  {
5178
5304
  text: n ?? i.processingYourTask,
5179
5305
  duration: 1.5,
@@ -5183,40 +5309,40 @@ const yn = ({
5183
5309
  shimmerColor: h.shimmerHighlight
5184
5310
  }
5185
5311
  ) }) : null;
5186
- const S = e.filter((c, l) => {
5187
- const g = c.item.data;
5188
- if (g.taskType === "MemoryChat" && g.eventType === "ExploreMemories")
5189
- return !e.slice(l + 1).some(
5190
- (M) => M.item.data.taskType === "MemoryChat" && M.item.data.eventType === "ExploreMemories"
5312
+ const f = e.filter((l, c) => {
5313
+ const y = l.item.data;
5314
+ if (y.taskType === "MemoryChat" && y.eventType === "ExploreMemories")
5315
+ return !e.slice(c + 1).some(
5316
+ (E) => E.item.data.taskType === "MemoryChat" && E.item.data.eventType === "ExploreMemories"
5191
5317
  );
5192
- if (g.taskType === "MemorySearch" && g.eventType === "GeneratingQueries")
5193
- return !e.slice(l + 1).some(
5194
- (M) => M.item.data.taskType === "MemorySearch" && M.item.data.eventType === "GeneratingQueries"
5318
+ if (y.taskType === "MemorySearch" && y.eventType === "GeneratingQueries")
5319
+ return !e.slice(c + 1).some(
5320
+ (E) => E.item.data.taskType === "MemorySearch" && E.item.data.eventType === "GeneratingQueries"
5195
5321
  );
5196
- if (g.taskType === "MemorySearch" && g.eventType === "ExploreQueries")
5197
- return !e.slice(l + 1).some(
5198
- (M) => M.item.data.taskType === "MemorySearch" && M.item.data.eventType === "ExploreQueries"
5322
+ if (y.taskType === "MemorySearch" && y.eventType === "ExploreQueries")
5323
+ return !e.slice(c + 1).some(
5324
+ (E) => E.item.data.taskType === "MemorySearch" && E.item.data.eventType === "ExploreQueries"
5199
5325
  );
5200
- if (g.taskType === "MemoryChat" && g.eventType === "GoogleSearch")
5201
- return !e.slice(l + 1).some(
5202
- (M) => M.item.data.taskType === "MemoryChat" && M.item.data.eventType === "GoogleSearch"
5326
+ if (y.taskType === "MemoryChat" && y.eventType === "GoogleSearch")
5327
+ return !e.slice(c + 1).some(
5328
+ (E) => E.item.data.taskType === "MemoryChat" && E.item.data.eventType === "GoogleSearch"
5203
5329
  );
5204
- if (g.taskType === "MemoryChat" && g.eventType === "Thinking")
5205
- return !e.slice(l + 1).some(
5206
- (M) => M.item.data.taskType === "MemoryChat" && M.item.data.eventType === "Thinking"
5330
+ if (y.taskType === "MemoryChat" && y.eventType === "Thinking")
5331
+ return !e.slice(c + 1).some(
5332
+ (E) => E.item.data.taskType === "MemoryChat" && E.item.data.eventType === "Thinking"
5207
5333
  );
5208
- if (g.taskType === "MemoryChat" && g.eventType === "GenerateReportExporting")
5209
- return !e.slice(l + 1).some(
5210
- (M) => M.item.data.taskType === "MemoryChat" && M.item.data.eventType === "GenerateReportExporting"
5334
+ if (y.taskType === "MemoryChat" && y.eventType === "GenerateReportExporting")
5335
+ return !e.slice(c + 1).some(
5336
+ (E) => E.item.data.taskType === "MemoryChat" && E.item.data.eventType === "GenerateReportExporting"
5211
5337
  );
5212
- if (g.taskType === "MemoryChat" && g.eventType === "ScrapeWebsites")
5213
- return !e.slice(l + 1).some(
5214
- (M) => M.item.data.taskType === "MemoryChat" && M.item.data.eventType === "ScrapeWebsites"
5338
+ if (y.taskType === "MemoryChat" && y.eventType === "ScrapeWebsites")
5339
+ return !e.slice(c + 1).some(
5340
+ (E) => E.item.data.taskType === "MemoryChat" && E.item.data.eventType === "ScrapeWebsites"
5215
5341
  );
5216
- if (g.taskType === "ExploreMemories" && (g.eventType === "Thinking" || g.eventType === "SetupSandbox" || g.eventType === "ExportingMemories" || g.eventType === "FindSources")) {
5217
- const F = g.eventType;
5218
- return !e.slice(l + 1).some(
5219
- (ie) => ie.item.data.taskType === "ExploreMemories" && ie.item.data.eventType === F
5342
+ if (y.taskType === "ExploreMemories" && (y.eventType === "Thinking" || y.eventType === "SetupSandbox" || y.eventType === "ExportingMemories" || y.eventType === "FindSources")) {
5343
+ const P = y.eventType;
5344
+ return !e.slice(c + 1).some(
5345
+ (ae) => ae.item.data.taskType === "ExploreMemories" && ae.item.data.eventType === P
5220
5346
  );
5221
5347
  }
5222
5348
  return !0;
@@ -5225,37 +5351,37 @@ const yn = ({
5225
5351
  "div",
5226
5352
  {
5227
5353
  id: "agent-task-progress-verbose",
5228
- ref: y,
5229
- "data-theme": u,
5354
+ ref: x,
5355
+ "data-theme": g,
5230
5356
  children: [
5231
- /* @__PURE__ */ r(Oe, { children: S.map((c, l) => /* @__PURE__ */ r(
5232
- b.div,
5357
+ /* @__PURE__ */ r(qe, { children: f.map((l, c) => /* @__PURE__ */ r(
5358
+ v.div,
5233
5359
  {
5234
- id: `agent-task-progress-item-${c.item.progressItemId}`,
5360
+ id: `agent-task-progress-item-${l.item.progressItemId}`,
5235
5361
  initial: { opacity: 0, y: -20 },
5236
5362
  animate: { opacity: 1, y: 0 },
5237
5363
  transition: {
5238
5364
  duration: 0.4,
5239
- delay: l * 0.1,
5365
+ delay: c * 0.1,
5240
5366
  ease: "easeOut"
5241
5367
  },
5242
5368
  children: /* @__PURE__ */ r(
5243
- hn,
5369
+ xn,
5244
5370
  {
5245
- progressItemId: c.item.progressItemId,
5246
- children: f(c)
5371
+ progressItemId: l.item.progressItemId,
5372
+ children: T(l)
5247
5373
  }
5248
5374
  )
5249
5375
  },
5250
- c.item.progressItemId
5376
+ l.item.progressItemId
5251
5377
  )) }),
5252
- t ? /* @__PURE__ */ r("div", { style: { marginTop: 8 }, children: /* @__PURE__ */ r(D, { message: t.message }) }) : null
5378
+ t ? /* @__PURE__ */ r("div", { style: { marginTop: 8 }, children: /* @__PURE__ */ r(G, { message: t.message }) }) : null
5253
5379
  ]
5254
5380
  }
5255
5381
  );
5256
- }, fn = ({ taskId: e, label: o, copiedLabel: t }) => {
5257
- const { colors: n } = k(), [i, a] = C(!1);
5258
- A(() => {
5382
+ }, Sn = ({ taskId: e, label: o, copiedLabel: t }) => {
5383
+ const { colors: n } = b(), [i, a] = w(!1);
5384
+ $(() => {
5259
5385
  if (!i) return;
5260
5386
  const p = window.setTimeout(() => a(!1), 1500);
5261
5387
  return () => window.clearTimeout(p);
@@ -5287,18 +5413,19 @@ const yn = ({
5287
5413
  children: i ? t : o
5288
5414
  }
5289
5415
  );
5290
- }, En = ({
5416
+ }, Fn = ({
5291
5417
  agentTask: e,
5292
5418
  theme: o = "light",
5293
5419
  language: t,
5294
- onSourceClick: n,
5295
- onSearchResultClick: i,
5296
- onExploreQueryResultClick: a
5420
+ onMemoryClick: n,
5421
+ onSourceClick: i,
5422
+ onSearchResultClick: a,
5423
+ onExploreQueryResultClick: s
5297
5424
  }) => {
5298
5425
  var h;
5299
- const s = je(e), p = (e.params.type === "MemoryChat" || e.params.type === "MemorySearch") && "language" in e.params ? e.params.language ?? "en" : t ?? "en", d = er(p), u = (h = e.confirmedData) == null ? void 0 : h.taskId;
5300
- return /* @__PURE__ */ r(Ye, { theme: o, children: /* @__PURE__ */ m("div", { style: { position: "relative" }, children: [
5301
- u ? /* @__PURE__ */ r(
5426
+ const p = Ve(e), d = (e.params.type === "MemoryChat" || e.params.type === "MemorySearch") && "language" in e.params ? e.params.language ?? "en" : t ?? "en", u = nr(d), g = (h = e.confirmedData) == null ? void 0 : h.taskId;
5427
+ return /* @__PURE__ */ r(Ze, { theme: o, children: /* @__PURE__ */ m("div", { style: { position: "relative" }, children: [
5428
+ g ? /* @__PURE__ */ r(
5302
5429
  "div",
5303
5430
  {
5304
5431
  style: {
@@ -5308,42 +5435,43 @@ const yn = ({
5308
5435
  zIndex: 1
5309
5436
  },
5310
5437
  children: /* @__PURE__ */ r(
5311
- fn,
5438
+ Sn,
5312
5439
  {
5313
- taskId: u,
5314
- label: d.copyId,
5315
- copiedLabel: d.copiedId
5440
+ taskId: g,
5441
+ label: u.copyId,
5442
+ copiedLabel: u.copiedId
5316
5443
  }
5317
5444
  )
5318
5445
  }
5319
5446
  ) : null,
5320
5447
  /* @__PURE__ */ r(
5321
- yn,
5448
+ kn,
5322
5449
  {
5323
- progressViewItems: s,
5450
+ progressViewItems: p,
5324
5451
  loading: e.loading,
5325
5452
  error: e.error,
5326
5453
  loadingText: e.loadingText,
5327
- t: d,
5328
- onSourceClick: n,
5329
- onSearchResultClick: i,
5330
- onExploreQueryResultClick: a,
5454
+ t: u,
5455
+ onMemoryClick: n,
5456
+ onSourceClick: i,
5457
+ onSearchResultClick: a,
5458
+ onExploreQueryResultClick: s,
5331
5459
  downloadFile: e.downloadFile
5332
5460
  }
5333
5461
  )
5334
5462
  ] }) });
5335
5463
  };
5336
5464
  export {
5337
- En as AgentTaskProgress,
5338
- Ye as AgentTaskThemeProvider,
5339
- B as Checkmark,
5340
- Cn as FencyProvider,
5341
- gn as MemorySearchCompletedResults,
5342
- Fn as StreamEventManager,
5343
- W as XMark,
5344
- Xe as darkAgentTaskThemeColors,
5345
- Se as getAgentTaskPrismStyle,
5346
- xe as lightAgentTaskThemeColors,
5347
- k as useAgentTaskTheme,
5348
- Mn as useAgentTasks
5465
+ Fn as AgentTaskProgress,
5466
+ Ze as AgentTaskThemeProvider,
5467
+ z as Checkmark,
5468
+ Rn as FencyProvider,
5469
+ fn as MemorySearchCompletedResults,
5470
+ Pn as StreamEventManager,
5471
+ O as XMark,
5472
+ Je as darkAgentTaskThemeColors,
5473
+ be as getAgentTaskPrismStyle,
5474
+ ke as lightAgentTaskThemeColors,
5475
+ b as useAgentTaskTheme,
5476
+ In as useAgentTasks
5349
5477
  };