inline-chat-kit 0.50.0 → 0.51.0

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.
@@ -2,8 +2,8 @@
2
2
  import e, { createElement as t, forwardRef as n, isValidElement as r, memo as i, useCallback as a, useEffect as o, useId as s, useImperativeHandle as c, useLayoutEffect as l, useMemo as u, useRef as d, useState as f, useSyncExternalStore as p } from "react";
3
3
  import { Fragment as m, jsx as h, jsxs as g } from "react/jsx-runtime";
4
4
  import { AnimatePresence as _, LayoutGroup as v, MotionConfig as y, animate as b, motion as x, useAnimationControls as S, useMotionValue as C } from "motion/react";
5
- import { ArrowDown as w, ArrowLeft as T, Brain as E, Check as D, ChevronDown as O, ChevronLeft as k, ChevronRight as A, Copy as j, CornerDownLeft as M, File as N, FileText as P, Film as ee, Image as F, Link2 as I, Maximize2 as te, MessageCircle as ne, Mic as L, Minimize2 as re, MoreHorizontal as ie, Music as ae, Palette as oe, Paperclip as se, Pencil as ce, Plus as le, RotateCcw as ue, Save as de, Square as fe, ThumbsDown as pe, ThumbsUp as R, Trash2 as me, TriangleAlert as z, X as he } from "lucide-react";
6
- var B = {
5
+ import { ArrowDown as w, ArrowLeft as T, Brain as E, Check as D, ChevronDown as O, ChevronLeft as k, ChevronRight as A, Copy as j, CornerDownLeft as M, File as N, FileText as P, Film as ee, Image as F, Link2 as te, Maximize2 as ne, MessageCircle as re, Mic as I, Minimize2 as ie, MoreHorizontal as ae, Music as oe, Palette as se, Paperclip as ce, Pencil as le, Plus as ue, RotateCcw as de, Save as fe, Square as pe, ThumbsDown as me, ThumbsUp as L, Trash2 as he, TriangleAlert as R, X as ge } from "lucide-react";
6
+ var z = {
7
7
  btn: "ick-btn-ZW5E",
8
8
  xs: "ick-xs-rDs4",
9
9
  s: "ick-s-DE-t",
@@ -21,25 +21,25 @@ var B = {
21
21
  loading: "ick-loading-NCs-",
22
22
  spinner: "ick-spinner-0n6Q",
23
23
  spin: "ick-spin-QgE6"
24
- }, ge = {
25
- primary: B.primary,
26
- secondary: B.secondary,
27
- outline: B.outline,
28
- ghost: B.ghost,
29
- glass: B.glass
30
24
  }, _e = {
31
- xs: B.xs,
32
- s: B.s,
33
- m: B.m,
34
- l: B.l,
35
- xl: B.xl
36
- }, V = n(function({ variant: e = "primary", size: t = "s", icon: n, iconRight: r, loading: i = !1, children: a, className: o, disabled: s, ...c }, l) {
25
+ primary: z.primary,
26
+ secondary: z.secondary,
27
+ outline: z.outline,
28
+ ghost: z.ghost,
29
+ glass: z.glass
30
+ }, ve = {
31
+ xs: z.xs,
32
+ s: z.s,
33
+ m: z.m,
34
+ l: z.l,
35
+ xl: z.xl
36
+ }, B = n(function({ variant: e = "primary", size: t = "s", icon: n, iconRight: r, loading: i = !1, children: a, className: o, disabled: s, ...c }, l) {
37
37
  let u = [
38
- B.btn,
39
- ge[e],
40
- _e[t],
41
- a ? B.hasText : "",
42
- i ? B.loading : "",
38
+ z.btn,
39
+ _e[e],
40
+ ve[t],
41
+ a ? z.hasText : "",
42
+ i ? z.loading : "",
43
43
  o ?? ""
44
44
  ].filter(Boolean).join(" ");
45
45
  return /* @__PURE__ */ g("button", {
@@ -50,24 +50,24 @@ var B = {
50
50
  ...c,
51
51
  children: [
52
52
  n && /* @__PURE__ */ h("span", {
53
- className: B.icon,
53
+ className: z.icon,
54
54
  children: n
55
55
  }),
56
56
  a && /* @__PURE__ */ h("span", {
57
- className: B.label,
57
+ className: z.label,
58
58
  children: a
59
59
  }),
60
60
  r && /* @__PURE__ */ h("span", {
61
- className: B.icon,
61
+ className: z.icon,
62
62
  children: r
63
63
  }),
64
64
  i && /* @__PURE__ */ h("span", {
65
- className: B.spinner,
65
+ className: z.spinner,
66
66
  "aria-hidden": "true"
67
67
  })
68
68
  ]
69
69
  });
70
- }), H = {
70
+ }), V = {
71
71
  list: "ick-list-4-Xw",
72
72
  item: "ick-item-5jP3",
73
73
  picture: "ick-picture-JacB",
@@ -76,8 +76,8 @@ var B = {
76
76
  name: "ick-name-6t7S",
77
77
  size: "ick-size-sR5p",
78
78
  remove: "ick-remove-6I5y"
79
- }, ve = { remove: "Remove" };
80
- function ye(e) {
79
+ }, ye = { remove: "Remove" };
80
+ function be(e) {
81
81
  if (e === void 0 || !Number.isFinite(e) || e < 0) return "";
82
82
  if (e < 1024) return `${e} B`;
83
83
  let t = [
@@ -88,53 +88,53 @@ function ye(e) {
88
88
  for (; n >= 1024 && r < t.length - 1;) n /= 1024, r += 1;
89
89
  return `${n < 10 ? n.toFixed(1) : Math.round(n)} ${t[r]}`;
90
90
  }
91
- var U = (e) => !!e.url && (e.type ?? "").startsWith("image/");
92
- function be({ type: e }) {
91
+ var H = (e) => !!e.url && (e.type ?? "").startsWith("image/");
92
+ function xe({ type: e }) {
93
93
  let t = (e ?? "").split("/")[0];
94
- return h(t === "image" ? F : t === "video" ? ee : t === "audio" ? ae : e === "application/pdf" || t === "text" ? P : N, {
94
+ return h(t === "image" ? F : t === "video" ? ee : t === "audio" ? oe : e === "application/pdf" || t === "text" ? P : N, {
95
95
  size: 16,
96
96
  "aria-hidden": !0
97
97
  });
98
98
  }
99
- function xe({ attachments: e, onRemove: t, labels: n, className: r, ...i }) {
99
+ function Se({ attachments: e, onRemove: t, labels: n, className: r, ...i }) {
100
100
  let a = {
101
- ...ve,
101
+ ...ye,
102
102
  ...n
103
103
  };
104
104
  return e.length === 0 ? null : /* @__PURE__ */ h("ul", {
105
- className: [H.list, r ?? ""].filter(Boolean).join(" "),
105
+ className: [V.list, r ?? ""].filter(Boolean).join(" "),
106
106
  ...i,
107
107
  children: e.map((e) => {
108
- let n = ye(e.size);
108
+ let n = be(e.size);
109
109
  return /* @__PURE__ */ g("li", {
110
- className: H.item,
111
- "data-picture": U(e) || void 0,
112
- children: [U(e) ? /* @__PURE__ */ h("span", {
113
- className: H.picture,
110
+ className: V.item,
111
+ "data-picture": H(e) || void 0,
112
+ children: [H(e) ? /* @__PURE__ */ h("span", {
113
+ className: V.picture,
114
114
  style: { backgroundImage: `url(${e.url})` },
115
115
  role: "img",
116
116
  "aria-label": e.name
117
117
  }) : /* @__PURE__ */ g(m, { children: [/* @__PURE__ */ h("span", {
118
- className: H.glyph,
119
- children: /* @__PURE__ */ h(be, { type: e.type })
118
+ className: V.glyph,
119
+ children: /* @__PURE__ */ h(xe, { type: e.type })
120
120
  }), /* @__PURE__ */ g("span", {
121
- className: H.body,
121
+ className: V.body,
122
122
  children: [/* @__PURE__ */ h("span", {
123
- className: H.name,
123
+ className: V.name,
124
124
  children: e.name
125
125
  }), n && /* @__PURE__ */ h("span", {
126
- className: H.size,
126
+ className: V.size,
127
127
  children: n
128
128
  })]
129
129
  })] }), t && /* @__PURE__ */ h("span", {
130
- className: H.remove,
131
- children: /* @__PURE__ */ h(V, {
130
+ className: V.remove,
131
+ children: /* @__PURE__ */ h(B, {
132
132
  variant: "glass",
133
133
  size: "s",
134
134
  onClick: () => t(e.id),
135
135
  onPointerDown: (e) => e.stopPropagation(),
136
136
  "aria-label": `${a.remove} ${e.name}`,
137
- icon: /* @__PURE__ */ h(he, {
137
+ icon: /* @__PURE__ */ h(ge, {
138
138
  size: 14,
139
139
  "aria-hidden": !0
140
140
  })
@@ -146,8 +146,8 @@ function xe({ attachments: e, onRemove: t, labels: n, className: r, ...i }) {
146
146
  }
147
147
  //#endregion
148
148
  //#region src/ChatInput/MorphGlyph.tsx
149
- var Se = 10;
150
- function Ce({ mode: e, color: t = "currentColor", duration: n = .22, size: r = 14 }) {
149
+ var Ce = 10;
150
+ function we({ mode: e, color: t = "currentColor", duration: n = .22, size: r = 14 }) {
151
151
  return /* @__PURE__ */ h("span", {
152
152
  style: {
153
153
  position: "relative",
@@ -163,7 +163,7 @@ function Ce({ mode: e, color: t = "currentColor", duration: n = .22, size: r = 1
163
163
  mode: "popLayout",
164
164
  children: /* @__PURE__ */ h(x.span, {
165
165
  initial: {
166
- y: Se,
166
+ y: Ce,
167
167
  opacity: 0
168
168
  },
169
169
  animate: {
@@ -196,7 +196,7 @@ function Ce({ mode: e, color: t = "currentColor", duration: n = .22, size: r = 1
196
196
  strokeWidth: 1.8,
197
197
  strokeLinecap: "round",
198
198
  strokeLinejoin: "round"
199
- }) : e === "mic" ? /* @__PURE__ */ h(L, {
199
+ }) : e === "mic" ? /* @__PURE__ */ h(I, {
200
200
  size: r,
201
201
  color: t,
202
202
  strokeWidth: 1.8,
@@ -208,7 +208,7 @@ function Ce({ mode: e, color: t = "currentColor", duration: n = .22, size: r = 1
208
208
  strokeWidth: 2.2,
209
209
  strokeLinecap: "round",
210
210
  strokeLinejoin: "round"
211
- }) : /* @__PURE__ */ h(fe, {
211
+ }) : /* @__PURE__ */ h(pe, {
212
212
  size: r,
213
213
  color: t,
214
214
  fill: t,
@@ -220,7 +220,7 @@ function Ce({ mode: e, color: t = "currentColor", duration: n = .22, size: r = 1
220
220
  })
221
221
  });
222
222
  }
223
- var W = {
223
+ var U = {
224
224
  root: "ick-root-osGQ",
225
225
  isGlassRoot: "ick-isGlassRoot-k59p",
226
226
  surface: "ick-surface-9zcL",
@@ -245,11 +245,11 @@ var W = {
245
245
  };
246
246
  //#endregion
247
247
  //#region src/ChatInput/HoverActionsRow.tsx
248
- function we({ showActions: e, showReadMore: t, isExpanded: n, setIsExpanded: r, onCopy: i, onEdit: a, value: o, ac: s }) {
248
+ function Te({ showActions: e, showReadMore: t, isExpanded: n, setIsExpanded: r, onCopy: i, onEdit: a, value: o, ac: s }) {
249
249
  return /* @__PURE__ */ h(_, {
250
250
  initial: !1,
251
251
  children: e && /* @__PURE__ */ g(x.div, {
252
- className: W.actionsRow,
252
+ className: U.actionsRow,
253
253
  variants: {
254
254
  hidden: {
255
255
  scale: .85,
@@ -291,7 +291,7 @@ function we({ showActions: e, showReadMore: t, isExpanded: n, setIsExpanded: r,
291
291
  },
292
292
  exit: {}
293
293
  },
294
- children: /* @__PURE__ */ h(V, {
294
+ children: /* @__PURE__ */ h(B, {
295
295
  variant: "ghost",
296
296
  icon: n ? "Read less" : "Read more",
297
297
  onClick: (e) => {
@@ -313,7 +313,7 @@ function we({ showActions: e, showReadMore: t, isExpanded: n, setIsExpanded: r,
313
313
  onClick: () => i?.(o),
314
314
  label: "Copy"
315
315
  }, {
316
- icon: /* @__PURE__ */ h(ce, {
316
+ icon: /* @__PURE__ */ h(le, {
317
317
  size: 14,
318
318
  "aria-hidden": !0
319
319
  }),
@@ -336,7 +336,7 @@ function we({ showActions: e, showReadMore: t, isExpanded: n, setIsExpanded: r,
336
336
  },
337
337
  exit: {}
338
338
  },
339
- children: /* @__PURE__ */ h(V, {
339
+ children: /* @__PURE__ */ h(B, {
340
340
  variant: "ghost",
341
341
  icon: e,
342
342
  onClick: t,
@@ -349,23 +349,23 @@ function we({ showActions: e, showReadMore: t, isExpanded: n, setIsExpanded: r,
349
349
  }
350
350
  //#endregion
351
351
  //#region src/ChatInput/AddCardsOverlay.tsx
352
- var Te = [
352
+ var Ee = [
353
353
  {
354
- Icon: se,
354
+ Icon: ce,
355
355
  label: "Add"
356
356
  },
357
357
  {
358
- Icon: oe,
358
+ Icon: se,
359
359
  label: "Design"
360
360
  },
361
361
  {
362
- Icon: I,
362
+ Icon: te,
363
363
  label: "Connectors"
364
364
  }
365
365
  ];
366
- function Ee({ isAddOpen: e, setIsAddOpen: t, onAdd: n, showInlineGlyph: r, showButtons: i, ac: a }) {
366
+ function De({ isAddOpen: e, setIsAddOpen: t, onAdd: n, showInlineGlyph: r, showButtons: i, ac: a }) {
367
367
  return /* @__PURE__ */ h(_, { children: e && /* @__PURE__ */ g(m, { children: [/* @__PURE__ */ h(x.div, {
368
- className: W.addBackdrop,
368
+ className: U.addBackdrop,
369
369
  initial: { opacity: 0 },
370
370
  animate: { opacity: 1 },
371
371
  exit: { opacity: 0 },
@@ -373,17 +373,17 @@ function Ee({ isAddOpen: e, setIsAddOpen: t, onAdd: n, showInlineGlyph: r, showB
373
373
  e.stopPropagation(), t(!1);
374
374
  }
375
375
  }, "backdrop"), /* @__PURE__ */ g(x.div, {
376
- className: W.addOverlay,
376
+ className: U.addOverlay,
377
377
  children: [/* @__PURE__ */ h("div", {
378
- className: W.addCardsContainer,
379
- children: Te.map(({ Icon: e, label: o }, s) => {
380
- let c = a?.addCards?.staggerDelay ?? .04, l = s * c, u = (Te.length - 1 - s) * c, d = [
378
+ className: U.addCardsContainer,
379
+ children: Ee.map(({ Icon: e, label: o }, s) => {
380
+ let c = a?.addCards?.staggerDelay ?? .04, l = s * c, u = (Ee.length - 1 - s) * c, d = [
381
381
  a?.addCards?.angle1 ?? -26,
382
382
  a?.addCards?.angle2 ?? -2,
383
383
  a?.addCards?.angle3 ?? 22
384
384
  ], f = a?.addCards?.hoverPull ?? 8;
385
385
  return /* @__PURE__ */ g(x.button, {
386
- className: W.addCardFan,
386
+ className: U.addCardFan,
387
387
  style: {
388
388
  right: r && i ? 36 : 0,
389
389
  bottom: 1,
@@ -470,9 +470,9 @@ function Ee({ isAddOpen: e, setIsAddOpen: t, onAdd: n, showInlineGlyph: r, showB
470
470
  pointerEvents: "auto",
471
471
  zIndex: 10
472
472
  },
473
- children: /* @__PURE__ */ h(V, {
473
+ children: /* @__PURE__ */ h(B, {
474
474
  variant: "ghost",
475
- icon: /* @__PURE__ */ h(he, {
475
+ icon: /* @__PURE__ */ h(ge, {
476
476
  size: 14,
477
477
  "aria-hidden": !0
478
478
  }),
@@ -481,14 +481,14 @@ function Ee({ isAddOpen: e, setIsAddOpen: t, onAdd: n, showInlineGlyph: r, showB
481
481
  },
482
482
  "aria-label": "Close",
483
483
  title: "Close",
484
- className: W.closeAdd
484
+ className: U.closeAdd
485
485
  })
486
486
  }, "x-btn-wrap")]
487
487
  }, "add-overlay")] }) });
488
488
  }
489
489
  //#endregion
490
490
  //#region src/announce/announce.ts
491
- var De = 100, Oe = /* @__PURE__ */ new Map(), ke = /* @__PURE__ */ new Map(), Ae = {
491
+ var Oe = 100, ke = /* @__PURE__ */ new Map(), Ae = /* @__PURE__ */ new Map(), je = {
492
492
  position: "absolute",
493
493
  width: "1px",
494
494
  height: "1px",
@@ -500,31 +500,31 @@ var De = 100, Oe = /* @__PURE__ */ new Map(), ke = /* @__PURE__ */ new Map(), Ae
500
500
  clipPath: "inset(50%)",
501
501
  whiteSpace: "nowrap"
502
502
  };
503
- function je(e) {
503
+ function Me(e) {
504
504
  if (typeof document > "u") return null;
505
- let t = Oe.get(e);
505
+ let t = ke.get(e);
506
506
  if (t?.isConnected) return t;
507
507
  let n = document.createElement("div");
508
- return n.setAttribute("role", e === "assertive" ? "alert" : "status"), n.setAttribute("aria-live", e), n.setAttribute("aria-atomic", "true"), n.dataset.inlineChatKit = "live-region", Object.assign(n.style, Ae), document.body.appendChild(n), Oe.set(e, n), n;
508
+ return n.setAttribute("role", e === "assertive" ? "alert" : "status"), n.setAttribute("aria-live", e), n.setAttribute("aria-atomic", "true"), n.dataset.inlineChatKit = "live-region", Object.assign(n.style, je), document.body.appendChild(n), ke.set(e, n), n;
509
509
  }
510
- function G(e, t = "polite") {
510
+ function W(e, t = "polite") {
511
511
  if (!e) return;
512
- let n = je(t);
512
+ let n = Me(t);
513
513
  if (!n) return;
514
- let r = ke.get(t);
515
- r && clearTimeout(r), n.textContent = "", ke.set(t, setTimeout(() => {
516
- ke.delete(t), n.textContent = e;
517
- }, De));
514
+ let r = Ae.get(t);
515
+ r && clearTimeout(r), n.textContent = "", Ae.set(t, setTimeout(() => {
516
+ Ae.delete(t), n.textContent = e;
517
+ }, Oe));
518
518
  }
519
519
  //#endregion
520
520
  //#region src/reducedMotion/reducedMotion.ts
521
- var Me = "(prefers-reduced-motion: reduce)", Ne;
522
- function K() {
523
- return Ne === void 0 && (Ne = typeof window < "u" && window.matchMedia ? window.matchMedia(Me) : null), Ne?.matches ?? !1;
521
+ var Ne = "(prefers-reduced-motion: reduce)", Pe;
522
+ function G() {
523
+ return Pe === void 0 && (Pe = typeof window < "u" && window.matchMedia ? window.matchMedia(Ne) : null), Pe?.matches ?? !1;
524
524
  }
525
525
  //#endregion
526
526
  //#region src/voice/useVoiceInput.ts
527
- var Pe = .6, Fe = .02, Ie = () => () => {}, q = () => typeof window < "u" && typeof navigator < "u" && !!navigator.mediaDevices?.getUserMedia && window.MediaRecorder !== void 0, J = () => {
527
+ var Fe = .6, Ie = .02, Le = () => () => {}, K = () => typeof window < "u" && typeof navigator < "u" && !!navigator.mediaDevices?.getUserMedia && window.MediaRecorder !== void 0, q = () => {
528
528
  let e = [
529
529
  "audio/webm;codecs=opus",
530
530
  "audio/webm",
@@ -533,8 +533,8 @@ var Pe = .6, Fe = .02, Ie = () => () => {}, q = () => typeof window < "u" && typ
533
533
  ];
534
534
  if (window.MediaRecorder?.isTypeSupported) return e.find((e) => window.MediaRecorder.isTypeSupported(e));
535
535
  };
536
- function Le({ onTranscribe: e, onTranscript: t, onDone: n, meterRef: r }) {
537
- let i = p(Ie, q, () => !1), [s, c] = f("idle"), [l, u] = f(null), m = i ? s : "unsupported", h = d(null), g = d(null), _ = d(null), v = d(null), y = d([]), b = d(null), x = d(!1), S = d({
536
+ function Re({ onTranscribe: e, onTranscript: t, onDone: n, meterRef: r }) {
537
+ let i = p(Le, K, () => !1), [s, c] = f("idle"), [l, u] = f(null), m = i ? s : "unsupported", h = d(null), g = d(null), _ = d(null), v = d(null), y = d([]), b = d(null), x = d(!1), S = d({
538
538
  onTranscribe: e,
539
539
  onTranscript: t,
540
540
  onDone: n
@@ -553,7 +553,7 @@ function Le({ onTranscribe: e, onTranscript: t, onDone: n, meterRef: r }) {
553
553
  x.current = !0, b.current?.abort(), C();
554
554
  }, [C]);
555
555
  let w = a((e) => {
556
- if (K()) return;
556
+ if (G()) return;
557
557
  let t = new Uint8Array(e.fftSize), n = 0, i = () => {
558
558
  e.getByteTimeDomainData(t);
559
559
  let a = 0;
@@ -561,8 +561,8 @@ function Le({ onTranscribe: e, onTranscript: t, onDone: n, meterRef: r }) {
561
561
  let t = (e - 128) / 128;
562
562
  a += t * t;
563
563
  }
564
- let o = Math.sqrt(a / t.length), s = o < Fe ? 0 : Math.min(1, o * 3);
565
- n = n * Pe + s * .4, r?.current?.style.setProperty("--ick-voice-level", n.toFixed(3)), v.current = requestAnimationFrame(i);
564
+ let o = Math.sqrt(a / t.length), s = o < Ie ? 0 : Math.min(1, o * 3);
565
+ n = n * Fe + s * .4, r?.current?.style.setProperty("--ick-voice-level", n.toFixed(3)), v.current = requestAnimationFrame(i);
566
566
  };
567
567
  v.current = requestAnimationFrame(i);
568
568
  }, [r]), T = a(async (e) => {
@@ -580,7 +580,7 @@ function Le({ onTranscribe: e, onTranscript: t, onDone: n, meterRef: r }) {
580
580
  return;
581
581
  }
582
582
  let r = new AbortController();
583
- b.current = r, c("transcribing"), G("Transcribing.");
583
+ b.current = r, c("transcribing"), W("Transcribing.");
584
584
  try {
585
585
  let i = await T(n(e, {
586
586
  signal: r.signal,
@@ -588,25 +588,25 @@ function Le({ onTranscribe: e, onTranscript: t, onDone: n, meterRef: r }) {
588
588
  }));
589
589
  if (r.signal.aborted) return;
590
590
  if (!i) {
591
- G("Nothing was heard."), c("idle");
591
+ W("Nothing was heard."), c("idle");
592
592
  return;
593
593
  }
594
- S.current.onTranscript?.(i), S.current.onDone?.(i), G("Transcript added."), c("idle");
594
+ S.current.onTranscript?.(i), S.current.onDone?.(i), W("Transcript added."), c("idle");
595
595
  } catch (e) {
596
596
  if (r.signal.aborted) return;
597
- u(e instanceof Error ? e.message : "The transcript could not be made."), c("failed"), G("The transcript could not be made.", "assertive");
597
+ u(e instanceof Error ? e.message : "The transcript could not be made."), c("failed"), W("The transcript could not be made.", "assertive");
598
598
  } finally {
599
599
  b.current = null;
600
600
  }
601
601
  }, [T]), D = a(async () => {
602
- if (!q()) return;
602
+ if (!K()) return;
603
603
  u(null), x.current = !1, c("requesting");
604
604
  let e;
605
605
  try {
606
606
  e = await navigator.mediaDevices.getUserMedia({ audio: !0 });
607
607
  } catch (e) {
608
608
  let t = e?.name;
609
- t === "NotAllowedError" || t === "SecurityError" ? (c("denied"), G("Microphone access was refused.", "assertive")) : (u(t === "NotFoundError" ? "No microphone was found." : "The microphone could not be opened."), c("failed"), G("The microphone could not be opened.", "assertive"));
609
+ t === "NotAllowedError" || t === "SecurityError" ? (c("denied"), W("Microphone access was refused.", "assertive")) : (u(t === "NotFoundError" ? "No microphone was found." : "The microphone could not be opened."), c("failed"), W("The microphone could not be opened.", "assertive"));
610
610
  return;
611
611
  }
612
612
  g.current = e, y.current = [];
@@ -616,7 +616,7 @@ function Le({ onTranscribe: e, onTranscript: t, onDone: n, meterRef: r }) {
616
616
  let n = t.createAnalyser();
617
617
  n.fftSize = 512, t.createMediaStreamSource(e).connect(n), w(n);
618
618
  } catch {}
619
- let t = J(), n = new MediaRecorder(e, t ? { mimeType: t } : void 0);
619
+ let t = q(), n = new MediaRecorder(e, t ? { mimeType: t } : void 0);
620
620
  h.current = n, n.ondataavailable = (e) => {
621
621
  e.data.size > 0 && y.current.push(e.data);
622
622
  }, n.onstop = () => {
@@ -626,7 +626,7 @@ function Le({ onTranscribe: e, onTranscript: t, onDone: n, meterRef: r }) {
626
626
  return;
627
627
  }
628
628
  E(r, e);
629
- }, n.start(), c("listening"), G("Listening.");
629
+ }, n.start(), c("listening"), W("Listening.");
630
630
  }, [
631
631
  w,
632
632
  C,
@@ -634,7 +634,7 @@ function Le({ onTranscribe: e, onTranscript: t, onDone: n, meterRef: r }) {
634
634
  ]), O = a(() => {
635
635
  let e = h.current;
636
636
  if (e && e.state !== "inactive") {
637
- G("Stopped listening."), e.stop();
637
+ W("Stopped listening."), e.stop();
638
638
  return;
639
639
  }
640
640
  b.current?.abort(), b.current = null, C(), c("idle");
@@ -653,17 +653,17 @@ function Le({ onTranscribe: e, onTranscript: t, onDone: n, meterRef: r }) {
653
653
  O
654
654
  ]),
655
655
  reset: a(() => {
656
- u(null), q() && c("idle");
656
+ u(null), K() && c("idle");
657
657
  }, [])
658
658
  };
659
659
  }
660
660
  //#endregion
661
661
  //#region src/ChatInput/ChatInput.tsx
662
- function Re(e) {
662
+ function ze(e) {
663
663
  let t = document.createRange(), n = window.getSelection();
664
664
  t.selectNodeContents(e), t.collapse(!1), n?.removeAllRanges(), n?.addRange(t);
665
665
  }
666
- function ze(e) {
666
+ function Be(e) {
667
667
  let t = window.getSelection(), n = e.textContent ?? "";
668
668
  if (!t || t.rangeCount === 0) return n.length;
669
669
  let r = t.getRangeAt(0);
@@ -671,16 +671,16 @@ function ze(e) {
671
671
  let i = r.cloneRange();
672
672
  return i.selectNodeContents(e), i.setEnd(r.endContainer, r.endOffset), i.toString().length;
673
673
  }
674
- function Be(e, t) {
674
+ function Ve(e, t) {
675
675
  let n = e.firstChild;
676
676
  if (!n || n.nodeType !== Node.TEXT_NODE) {
677
- Re(e);
677
+ ze(e);
678
678
  return;
679
679
  }
680
680
  let r = document.createRange(), i = window.getSelection();
681
681
  r.setStart(n, Math.max(0, Math.min(t, n.textContent?.length ?? 0))), r.collapse(!0), i?.removeAllRanges(), i?.addRange(r);
682
682
  }
683
- var Ve = {
683
+ var He = {
684
684
  bubble: {
685
685
  stiffness: 600,
686
686
  damping: 22,
@@ -732,12 +732,12 @@ var Ve = {
732
732
  angle3: -50,
733
733
  hoverPull: 12
734
734
  }
735
- }, He = {
735
+ }, Ue = {
736
736
  type: "spring",
737
737
  stiffness: 600,
738
738
  damping: 21.5,
739
739
  mass: .2
740
- }, Ue = (e) => {
740
+ }, We = (e) => {
741
741
  if (typeof document.execCommand == "function") try {
742
742
  if (document.execCommand("insertText", !1, e)) return !0;
743
743
  } catch {}
@@ -747,24 +747,24 @@ var Ve = {
747
747
  n.deleteContents();
748
748
  let r = document.createTextNode(e);
749
749
  return n.insertNode(r), n.setStartAfter(r), n.collapse(!0), t.removeAllRanges(), t.addRange(n), !1;
750
- }, We = n(function({ state: e, value: t, onChange: n, onSubmit: r, onStop: i, onAdd: l, attachments: u, onAttach: p, onRemoveAttachment: C, accept: w = "image/*", multiple: T = !1, onTranscribe: E, onCopy: D, onEdit: O, onCancelEdit: k, isEditing: A = !1, placeholder: j = "Placeholder text...", animationConfig: M, style: N }, P) {
751
- let ee = s(), F = d(null), I = d(null), te = d(null), ne = d(0), L = d(!1), re = d(null), [ie, ae] = f(!1), [oe, se] = f(!1), [ce, ue] = f(!1), [de, fe] = f(!0), [pe, R] = f(!1), [me, z] = f(!1), [B, ge] = f(!1), _e = d(0), H = d(!1), ve = d(0), ye = d(!1), U = d(null);
750
+ }, Ge = n(function({ state: e, value: t, onChange: n, onSubmit: r, onStop: i, onAdd: l, attachments: u, onAttach: p, onRemoveAttachment: C, accept: w = "image/*", multiple: T = !1, onTranscribe: E, onCopy: D, onEdit: O, onCancelEdit: k, isEditing: A = !1, placeholder: j = "Placeholder text...", animationConfig: M, style: N }, P) {
751
+ let ee = s(), F = d(null), te = d(null), ne = d(null), re = d(0), I = d(!1), ie = d(null), [ae, oe] = f(!1), [se, ce] = f(!1), [le, de] = f(!1), [fe, pe] = f(!0), [me, L] = f(!1), [he, R] = f(!1), [z, _e] = f(!1), ve = d(0), V = d(!1), ye = d(0), be = d(!1), H = d(null);
752
752
  o(() => () => {
753
- U.current && clearTimeout(U.current);
753
+ H.current && clearTimeout(H.current);
754
754
  }, []);
755
- let be = S(), Se = d(e), Te = d(M);
756
- Te.current = M;
757
- let De = d(null), [Oe, ke] = f([]), Ae = u ?? Oe, je = d(Ae);
758
- je.current = Ae;
759
- let G = d([]);
755
+ let xe = S(), Ce = d(e), Ee = d(M);
756
+ Ee.current = M;
757
+ let Oe = d(null), [ke, Ae] = f([]), je = u ?? ke, Me = d(je);
758
+ Me.current = je;
759
+ let W = d([]);
760
760
  o(() => () => {
761
- G.current.forEach((e) => URL.revokeObjectURL(e)), G.current = [];
761
+ W.current.forEach((e) => URL.revokeObjectURL(e)), W.current = [];
762
762
  }, []);
763
- let Me = a((e) => {
763
+ let Ne = a((e) => {
764
764
  if (!e) return;
765
- let t = G.current.indexOf(e);
766
- t !== -1 && (URL.revokeObjectURL(e), G.current.splice(t, 1));
767
- }, []), Ne = (e) => {
765
+ let t = W.current.indexOf(e);
766
+ t !== -1 && (URL.revokeObjectURL(e), W.current.splice(t, 1));
767
+ }, []), Pe = (e) => {
768
768
  let t = Array.from(e.target.files ?? []);
769
769
  if (e.target.value = "", t.length === 0) return;
770
770
  if (p) {
@@ -773,7 +773,7 @@ var Ve = {
773
773
  }
774
774
  let n = t.map((e) => {
775
775
  let t = URL.createObjectURL(e);
776
- return G.current.push(t), {
776
+ return W.current.push(t), {
777
777
  id: `${e.name}-${e.size}-${e.lastModified}`,
778
778
  name: e.name,
779
779
  type: e.type,
@@ -781,56 +781,56 @@ var Ve = {
781
781
  url: t
782
782
  };
783
783
  });
784
- ke((e) => {
784
+ Ae((e) => {
785
785
  if (T) return [...e, ...n];
786
786
  let t = n.slice(-1);
787
- return e.forEach((e) => Me(e.url)), n.slice(0, -1).forEach((e) => Me(e.url)), t;
787
+ return e.forEach((e) => Ne(e.url)), n.slice(0, -1).forEach((e) => Ne(e.url)), t;
788
788
  });
789
- }, K = a((e) => {
789
+ }, G = a((e) => {
790
790
  if (C) {
791
791
  C(e);
792
792
  return;
793
793
  }
794
- ke((t) => (Me(t.find((t) => t.id === e)?.url), t.filter((t) => t.id !== e)));
795
- }, [C, Me]);
794
+ Ae((t) => (Ne(t.find((t) => t.id === e)?.url), t.filter((t) => t.id !== e)));
795
+ }, [C, Ne]);
796
796
  c(P, () => ({
797
797
  focus: (e) => F.current?.focus(e),
798
798
  setValue: (e) => {
799
799
  let t = F.current;
800
- t && (t.textContent = e, Re(t)), n(e);
800
+ t && (t.textContent = e, ze(t)), n(e);
801
801
  },
802
802
  getValue: () => t
803
803
  }), [n, t]);
804
- let Pe = d(null), Fe = d(null), Ie = d(null);
804
+ let Fe = d(null), Ie = d(null), Le = d(null);
805
805
  o(() => {
806
806
  if (!E) return;
807
807
  let e = F.current;
808
808
  if (!e) return;
809
809
  let t = () => {
810
810
  let t = window.getSelection();
811
- !t || t.rangeCount === 0 || e.contains(t.getRangeAt(0).endContainer) && (Ie.current = ze(e));
811
+ !t || t.rangeCount === 0 || e.contains(t.getRangeAt(0).endContainer) && (Le.current = Be(e));
812
812
  };
813
813
  return document.addEventListener("selectionchange", t), () => document.removeEventListener("selectionchange", t);
814
814
  }, [E]);
815
- let q = Le({
815
+ let K = Re({
816
816
  onTranscribe: E,
817
817
  onTranscript: a((e) => {
818
- let t = Fe.current, r = F.current;
818
+ let t = Ie.current, r = F.current;
819
819
  if (!t || !r) return;
820
820
  let i = t.base.slice(0, t.at) + e + t.base.slice(t.at);
821
- r.textContent = i, Be(r, t.at + e.length), n(i);
821
+ r.textContent = i, Ve(r, t.at + e.length), n(i);
822
822
  }, [n]),
823
823
  onDone: () => {
824
- Fe.current = null, F.current?.focus();
824
+ Ie.current = null, F.current?.focus();
825
825
  },
826
- meterRef: Pe
827
- }), J = e === "responding" || e === "resting", Ve = J, We = t.trim().length > 0 || Ae.length > 0, Ge = (e === "typing" || e === "idle") && We, Ke = e === "responding", qe = e === "resting" && ie, Je = qe, Ye = e === "resting" && me, Xe = q.state === "listening" || q.state === "requesting" || q.state === "transcribing", Ze = !!E && q.supported && !A, Qe = Ge || Ke, Y = M, $e = Y ? {
826
+ meterRef: Fe
827
+ }), q = e === "responding" || e === "resting", He = q, Ge = t.trim().length > 0 || je.length > 0, Ke = (e === "typing" || e === "idle") && Ge, qe = e === "responding", Je = e === "resting" && ae, Ye = Je, Xe = e === "resting" && he, Ze = K.state === "listening" || K.state === "requesting" || K.state === "transcribing", Qe = !!E && K.supported && !A, $e = Ke || qe, J = M, et = J ? {
828
828
  type: "spring",
829
- stiffness: Y.bubble.stiffness,
830
- damping: Y.bubble.damping,
831
- mass: Y.bubble.mass
832
- } : He, X = a(() => {
833
- let e = I.current, t = te.current;
829
+ stiffness: J.bubble.stiffness,
830
+ damping: J.bubble.damping,
831
+ mass: J.bubble.mass
832
+ } : Ue, Y = a(() => {
833
+ let e = te.current, t = ne.current;
834
834
  if (!e || !t) return;
835
835
  if (!(e.scrollHeight > e.clientHeight)) {
836
836
  t.removeAttribute("data-fade");
@@ -840,32 +840,32 @@ var Ve = {
840
840
  !n && !r ? t.dataset.fade = "both" : n ? r ? t.removeAttribute("data-fade") : t.dataset.fade = "bottom" : t.dataset.fade = "top";
841
841
  }, []);
842
842
  o(() => {
843
- let e = I.current;
844
- if (e) return e.addEventListener("scroll", X, { passive: !0 }), () => e.removeEventListener("scroll", X);
845
- }, [X]), o(() => {
843
+ let e = te.current;
844
+ if (e) return e.addEventListener("scroll", Y, { passive: !0 }), () => e.removeEventListener("scroll", Y);
845
+ }, [Y]), o(() => {
846
846
  let e = requestAnimationFrame(() => {
847
- let e = I.current;
848
- e && !Ve && (e.scrollTop = e.scrollHeight), X();
847
+ let e = te.current;
848
+ e && !He && (e.scrollTop = e.scrollHeight), Y();
849
849
  });
850
850
  return () => cancelAnimationFrame(e);
851
851
  }, [
852
852
  t,
853
- Ve,
854
- X
853
+ He,
854
+ Y
855
855
  ]), o(() => {
856
856
  (e === "idle" || e === "typing") && F.current?.focus();
857
857
  }, [e]), o(() => {
858
858
  let e = F.current;
859
- e && (_e.current = e.scrollHeight || 17);
859
+ e && (ve.current = e.scrollHeight || 17);
860
860
  }, []), o(() => {
861
- let e = F.current, t = re.current;
862
- !e || !_e.current || requestAnimationFrame(() => {
863
- let n = t ? t.offsetWidth : 0, r = e.clientWidth - 16, i = (I.current?.scrollHeight ?? 0) > _e.current + 2, a = Te.current;
864
- H.current ? !(i || n >= r - 2) && n < ve.current * (a?.wrap?.exitThreshold ?? .75) && (H.current = !1, ye.current = !1, ue(!1), fe(!0), U.current &&= (clearTimeout(U.current), null)) : (ve.current = r, (i || n >= ve.current * (a?.wrap?.nearThreshold ?? .92)) && (H.current = !0, ye.current = !0, fe(!1)));
861
+ let e = F.current, t = ie.current;
862
+ !e || !ve.current || requestAnimationFrame(() => {
863
+ let n = t ? t.offsetWidth : 0, r = e.clientWidth - 16, i = (te.current?.scrollHeight ?? 0) > ve.current + 2, a = Ee.current;
864
+ V.current ? !(i || n >= r - 2) && n < ye.current * (a?.wrap?.exitThreshold ?? .75) && (V.current = !1, be.current = !1, de(!1), pe(!0), H.current &&= (clearTimeout(H.current), null)) : (ye.current = r, (i || n >= ye.current * (a?.wrap?.nearThreshold ?? .92)) && (V.current = !0, be.current = !0, pe(!1)));
865
865
  });
866
866
  }, [t]), o(() => {
867
- if (!J) return;
868
- let e = I.current;
867
+ if (!q) return;
868
+ let e = te.current;
869
869
  if (!e || e.scrollTop === 0) return;
870
870
  let t = e.scrollTop;
871
871
  b(t, 0, {
@@ -877,25 +877,25 @@ var Ve = {
877
877
  e.scrollTop = t;
878
878
  }
879
879
  });
880
- }, [J]), o(() => {
881
- J ? ge(!1) : (R(!1), z(!1));
882
- }, [J]), o(() => {
883
- if (!J) return;
884
- let e = te.current;
885
- e && (me && !pe ? e.dataset.fade = "bottom" : e.removeAttribute("data-fade"));
880
+ }, [q]), o(() => {
881
+ q ? _e(!1) : (L(!1), R(!1));
882
+ }, [q]), o(() => {
883
+ if (!q) return;
884
+ let e = ne.current;
885
+ e && (he && !me ? e.dataset.fade = "bottom" : e.removeAttribute("data-fade"));
886
886
  }, [
887
- J,
888
- me,
889
- pe
887
+ q,
888
+ he,
889
+ me
890
890
  ]), o(() => {
891
- let t = Se.current;
892
- if (Se.current = e, t !== "responding" || e !== "resting") return;
891
+ let t = Ce.current;
892
+ if (Ce.current = e, t !== "responding" || e !== "resting") return;
893
893
  requestAnimationFrame(() => {
894
- let e = I.current;
895
- e && (ne.current = e.scrollHeight, z(e.scrollHeight > 241), X());
896
- }), se(!0);
897
- let n = Te.current;
898
- be.start({
894
+ let e = te.current;
895
+ e && (re.current = e.scrollHeight, R(e.scrollHeight > 241), Y());
896
+ }), ce(!0);
897
+ let n = Ee.current;
898
+ xe.start({
899
899
  scaleX: [
900
900
  1,
901
901
  n?.ripple?.scaleX ?? 1.018,
@@ -916,55 +916,55 @@ var Ve = {
916
916
  ]
917
917
  }
918
918
  });
919
- let r = window.setTimeout(() => se(!1), n?.ripple?.pulseDuration ?? 260);
919
+ let r = window.setTimeout(() => ce(!1), n?.ripple?.pulseDuration ?? 260);
920
920
  return () => clearTimeout(r);
921
921
  }, [
922
922
  e,
923
- be,
924
- X
923
+ xe,
924
+ Y
925
925
  ]);
926
- let et = a(() => {
926
+ let tt = a(() => {
927
927
  let e = F.current;
928
- e && (L.current = !0, n(e.textContent ?? ""));
929
- }, [n]), tt = a((e) => {
930
- e.preventDefault(), Ue(e.clipboardData.getData("text/plain")) || et();
931
- }, [et]), nt = a((e) => {
932
- e.key === "Enter" && (e.preventDefault(), !e.shiftKey && (t.trim().length > 0 || je.current.length > 0) ? r(t, je.current) : e.shiftKey && !Ue("\n") && et());
928
+ e && (I.current = !0, n(e.textContent ?? ""));
929
+ }, [n]), nt = a((e) => {
930
+ e.preventDefault(), We(e.clipboardData.getData("text/plain")) || tt();
931
+ }, [tt]), rt = a((e) => {
932
+ e.key === "Enter" && (e.preventDefault(), !e.shiftKey && (t.trim().length > 0 || Me.current.length > 0) ? r(t, Me.current) : e.shiftKey && !We("\n") && tt());
933
933
  }, [
934
934
  t,
935
935
  r,
936
- et
936
+ tt
937
937
  ]);
938
938
  return o(() => {
939
939
  let e = F.current;
940
940
  if (e) {
941
- if (L.current) {
942
- L.current = !1;
941
+ if (I.current) {
942
+ I.current = !1;
943
943
  return;
944
944
  }
945
- e.textContent !== t && (e.textContent = t, document.activeElement === e && Re(e));
945
+ e.textContent !== t && (e.textContent = t, document.activeElement === e && ze(e));
946
946
  }
947
947
  }, [t]), /* @__PURE__ */ h(y, {
948
948
  reducedMotion: "user",
949
949
  children: /* @__PURE__ */ h(v, {
950
950
  id: ee,
951
951
  children: /* @__PURE__ */ g("div", {
952
- className: W.wrap,
953
- onMouseEnter: () => ae(!0),
954
- onMouseLeave: () => ae(!1),
952
+ className: U.wrap,
953
+ onMouseEnter: () => oe(!0),
954
+ onMouseLeave: () => oe(!1),
955
955
  style: N,
956
956
  children: [
957
957
  /* @__PURE__ */ h(x.div, {
958
- className: `${W.root} ${J ? W.isGlassRoot : ""}`,
958
+ className: `${U.root} ${q ? U.isGlassRoot : ""}`,
959
959
  layout: !0,
960
- animate: { filter: B ? `blur(${Y?.addCards?.inputBlur ?? 2}px)` : "blur(0px)" },
960
+ animate: { filter: z ? `blur(${J?.addCards?.inputBlur ?? 2}px)` : "blur(0px)" },
961
961
  style: {
962
- pointerEvents: B ? "none" : "auto",
962
+ pointerEvents: z ? "none" : "auto",
963
963
  width: N?.width === "100%" ? "100%" : void 0,
964
964
  maxWidth: N?.maxWidth
965
965
  },
966
966
  transition: {
967
- ...$e,
967
+ ...et,
968
968
  filter: {
969
969
  type: "tween",
970
970
  duration: .2,
@@ -972,25 +972,25 @@ var Ve = {
972
972
  }
973
973
  },
974
974
  children: /* @__PURE__ */ g(x.div, {
975
- className: `${W.surface} ${J ? W.glass : ""} ${qe ? W.hovered : ""} ${oe ? W.pulsed : ""}`,
975
+ className: `${U.surface} ${q ? U.glass : ""} ${Je ? U.hovered : ""} ${se ? U.pulsed : ""}`,
976
976
  style: {
977
977
  alignItems: "stretch",
978
978
  flexDirection: "column",
979
979
  justifyContent: "center"
980
980
  },
981
- transition: $e,
982
- animate: be,
981
+ transition: et,
982
+ animate: xe,
983
983
  onClick: () => F.current?.focus(),
984
984
  children: [
985
985
  /* @__PURE__ */ h("input", {
986
986
  type: "file",
987
- ref: De,
987
+ ref: Oe,
988
988
  accept: w,
989
989
  multiple: T,
990
990
  style: { display: "none" },
991
- onChange: Ne
991
+ onChange: Pe
992
992
  }),
993
- /* @__PURE__ */ h(_, { children: Ae.length > 0 && /* @__PURE__ */ h(x.div, {
993
+ /* @__PURE__ */ h(_, { children: je.length > 0 && /* @__PURE__ */ h(x.div, {
994
994
  initial: {
995
995
  opacity: 0,
996
996
  height: 0
@@ -1014,11 +1014,11 @@ var Ve = {
1014
1014
  flexShrink: 0
1015
1015
  },
1016
1016
  children: /* @__PURE__ */ h("div", {
1017
- className: W.attachedTray,
1018
- "data-glass": J || void 0,
1019
- children: /* @__PURE__ */ h(xe, {
1020
- attachments: Ae,
1021
- onRemove: J ? void 0 : K
1017
+ className: U.attachedTray,
1018
+ "data-glass": q || void 0,
1019
+ children: /* @__PURE__ */ h(Se, {
1020
+ attachments: je,
1021
+ onRemove: q ? void 0 : G
1022
1022
  })
1023
1023
  })
1024
1024
  }) }),
@@ -1027,15 +1027,15 @@ var Ve = {
1027
1027
  display: "flex",
1028
1028
  flexDirection: "row",
1029
1029
  alignItems: "center",
1030
- flexWrap: ce ? "wrap" : "nowrap",
1031
- justifyContent: ce ? "flex-end" : "flex-start",
1030
+ flexWrap: le ? "wrap" : "nowrap",
1031
+ justifyContent: le ? "flex-end" : "flex-start",
1032
1032
  width: "100%",
1033
1033
  minWidth: 0,
1034
1034
  flex: 1
1035
1035
  },
1036
1036
  children: [
1037
1037
  /* @__PURE__ */ h("span", {
1038
- ref: re,
1038
+ ref: ie,
1039
1039
  "aria-hidden": "true",
1040
1040
  style: {
1041
1041
  position: "absolute",
@@ -1048,16 +1048,16 @@ var Ve = {
1048
1048
  children: t
1049
1049
  }),
1050
1050
  /* @__PURE__ */ h("div", {
1051
- ref: te,
1052
- className: W.editorClip,
1053
- style: { flexBasis: ce ? "100%" : void 0 },
1051
+ ref: ne,
1052
+ className: U.editorClip,
1053
+ style: { flexBasis: le ? "100%" : void 0 },
1054
1054
  children: /* @__PURE__ */ h(x.div, {
1055
- ref: I,
1056
- className: `${W.editorWrap} ${J ? W.editorWrapGlass : ""}`,
1055
+ ref: te,
1056
+ className: `${U.editorWrap} ${q ? U.editorWrapGlass : ""}`,
1057
1057
  layout: "position",
1058
- animate: J && me ? { maxHeight: pe ? ne.current : 240 } : void 0,
1058
+ animate: q && he ? { maxHeight: me ? re.current : 240 } : void 0,
1059
1059
  transition: {
1060
- ...$e,
1060
+ ...et,
1061
1061
  maxHeight: {
1062
1062
  type: "spring",
1063
1063
  stiffness: 300,
@@ -1067,23 +1067,23 @@ var Ve = {
1067
1067
  },
1068
1068
  children: /* @__PURE__ */ h("div", {
1069
1069
  ref: F,
1070
- className: W.editor,
1071
- contentEditable: Ve ? "false" : "plaintext-only",
1070
+ className: U.editor,
1071
+ contentEditable: He ? "false" : "plaintext-only",
1072
1072
  suppressContentEditableWarning: !0,
1073
- onInput: et,
1074
- onKeyDown: nt,
1075
- onPaste: tt,
1073
+ onInput: tt,
1074
+ onKeyDown: rt,
1075
+ onPaste: nt,
1076
1076
  spellCheck: !1,
1077
1077
  role: "textbox",
1078
1078
  "aria-multiline": "true",
1079
1079
  "aria-label": j,
1080
- "data-placeholder": Ve ? "" : j
1080
+ "data-placeholder": He ? "" : j
1081
1081
  })
1082
1082
  })
1083
1083
  }),
1084
1084
  /* @__PURE__ */ g("div", {
1085
- className: W.buttonGroup,
1086
- children: [!J && de && Ze && /* @__PURE__ */ h(x.div, {
1085
+ className: U.buttonGroup,
1086
+ children: [!q && fe && Qe && /* @__PURE__ */ h(x.div, {
1087
1087
  initial: {
1088
1088
  opacity: 0,
1089
1089
  scale: 0,
@@ -1104,18 +1104,18 @@ var Ve = {
1104
1104
  width: 0,
1105
1105
  height: 0,
1106
1106
  marginLeft: 0,
1107
- transition: ye.current ? {
1107
+ transition: be.current ? {
1108
1108
  type: "tween",
1109
- duration: Y?.wrap?.exitDuration ?? .15,
1109
+ duration: J?.wrap?.exitDuration ?? .15,
1110
1110
  ease: "easeOut",
1111
- delay: (Y?.button?.staggerExit ?? .055) * 2
1111
+ delay: (J?.button?.staggerExit ?? .055) * 2
1112
1112
  } : void 0
1113
1113
  },
1114
1114
  transition: {
1115
1115
  type: "spring",
1116
- visualDuration: Y?.addButton?.visualDuration ?? .4,
1117
- bounce: Y?.addButton?.bounce ?? .5,
1118
- delay: (Y?.button?.staggerEnter ?? .055) * 2,
1116
+ visualDuration: J?.addButton?.visualDuration ?? .4,
1117
+ bounce: J?.addButton?.bounce ?? .5,
1118
+ delay: (J?.button?.staggerEnter ?? .055) * 2,
1119
1119
  opacity: {
1120
1120
  type: "tween",
1121
1121
  duration: .15
@@ -1128,34 +1128,34 @@ var Ve = {
1128
1128
  flexShrink: 0,
1129
1129
  position: "relative"
1130
1130
  },
1131
- children: /* @__PURE__ */ h(V, {
1131
+ children: /* @__PURE__ */ h(B, {
1132
1132
  variant: "ghost",
1133
- "data-voice": q.state,
1133
+ "data-voice": K.state,
1134
1134
  icon: /* @__PURE__ */ g(m, { children: [/* @__PURE__ */ h("span", {
1135
- ref: Pe,
1136
- className: W.voiceMeter,
1137
- "data-live": q.state === "listening" || void 0,
1135
+ ref: Fe,
1136
+ className: U.voiceMeter,
1137
+ "data-live": K.state === "listening" || void 0,
1138
1138
  "aria-hidden": !0
1139
- }), /* @__PURE__ */ h(Ce, {
1140
- mode: q.state === "listening" || q.state === "transcribing" ? "stop" : "mic",
1139
+ }), /* @__PURE__ */ h(we, {
1140
+ mode: K.state === "listening" || K.state === "transcribing" ? "stop" : "mic",
1141
1141
  size: 14
1142
1142
  })] }),
1143
1143
  onClick: (e) => {
1144
- if (e.stopPropagation(), q.state !== "denied") {
1145
- if (!Xe) {
1146
- let e = Math.min(Ie.current ?? t.length, t.length);
1147
- Fe.current = {
1144
+ if (e.stopPropagation(), K.state !== "denied") {
1145
+ if (!Ze) {
1146
+ let e = Math.min(Le.current ?? t.length, t.length);
1147
+ Ie.current = {
1148
1148
  base: t,
1149
1149
  at: e
1150
1150
  };
1151
1151
  }
1152
- q.toggle();
1152
+ K.toggle();
1153
1153
  }
1154
1154
  },
1155
- "aria-busy": q.state === "requesting" || q.state === "transcribing",
1156
- "aria-pressed": q.state === "listening",
1157
- disabled: q.state === "denied",
1158
- "aria-label": q.state === "listening" ? "Stop listening" : q.state === "requesting" ? "Waiting for microphone access" : q.state === "transcribing" ? "Cancel transcription" : q.state === "denied" ? "Microphone blocked" : "Dictate a message",
1155
+ "aria-busy": K.state === "requesting" || K.state === "transcribing",
1156
+ "aria-pressed": K.state === "listening",
1157
+ disabled: K.state === "denied",
1158
+ "aria-label": K.state === "listening" ? "Stop listening" : K.state === "requesting" ? "Waiting for microphone access" : K.state === "transcribing" ? "Cancel transcription" : K.state === "denied" ? "Microphone blocked" : "Dictate a message",
1159
1159
  style: {
1160
1160
  width: "100%",
1161
1161
  height: "100%",
@@ -1165,11 +1165,11 @@ var Ve = {
1165
1165
  }, "mic"), /* @__PURE__ */ g(_, {
1166
1166
  initial: !1,
1167
1167
  onExitComplete: () => {
1168
- ye.current && (ye.current = !1, ue(!0), U.current && clearTimeout(U.current), U.current = window.setTimeout(() => {
1169
- fe(!0), U.current = null;
1170
- }, Te.current?.wrap?.slideInDelay ?? 120));
1168
+ be.current && (be.current = !1, de(!0), H.current && clearTimeout(H.current), H.current = window.setTimeout(() => {
1169
+ pe(!0), H.current = null;
1170
+ }, Ee.current?.wrap?.slideInDelay ?? 120));
1171
1171
  },
1172
- children: [!J && de && /* @__PURE__ */ h(x.div, {
1172
+ children: [!q && fe && /* @__PURE__ */ h(x.div, {
1173
1173
  initial: {
1174
1174
  opacity: 0,
1175
1175
  scale: 0,
@@ -1187,18 +1187,18 @@ var Ve = {
1187
1187
  scale: 0,
1188
1188
  width: 0,
1189
1189
  height: 0,
1190
- transition: ye.current ? {
1190
+ transition: be.current ? {
1191
1191
  type: "tween",
1192
- duration: Y?.wrap?.exitDuration ?? .15,
1192
+ duration: J?.wrap?.exitDuration ?? .15,
1193
1193
  ease: "easeOut",
1194
- delay: Y?.button?.staggerExit ?? .055
1194
+ delay: J?.button?.staggerExit ?? .055
1195
1195
  } : void 0
1196
1196
  },
1197
1197
  transition: {
1198
1198
  type: "spring",
1199
- visualDuration: Y?.addButton?.visualDuration ?? .4,
1200
- bounce: Y?.addButton?.bounce ?? .5,
1201
- delay: Y?.button?.staggerEnter ?? .055,
1199
+ visualDuration: J?.addButton?.visualDuration ?? .4,
1200
+ bounce: J?.addButton?.bounce ?? .5,
1201
+ delay: J?.button?.staggerEnter ?? .055,
1202
1202
  opacity: {
1203
1203
  type: "tween",
1204
1204
  duration: .15
@@ -1238,9 +1238,9 @@ var Ve = {
1238
1238
  position: "absolute",
1239
1239
  inset: 0
1240
1240
  },
1241
- children: /* @__PURE__ */ h(V, {
1241
+ children: /* @__PURE__ */ h(B, {
1242
1242
  variant: "ghost",
1243
- icon: /* @__PURE__ */ h(he, {
1243
+ icon: /* @__PURE__ */ h(ge, {
1244
1244
  size: 14,
1245
1245
  "aria-hidden": !0
1246
1246
  }),
@@ -1254,7 +1254,7 @@ var Ve = {
1254
1254
  height: "100%"
1255
1255
  }
1256
1256
  })
1257
- }, "cancel-btn") : B ? null : /* @__PURE__ */ h(x.div, {
1257
+ }, "cancel-btn") : z ? null : /* @__PURE__ */ h(x.div, {
1258
1258
  initial: {
1259
1259
  opacity: 0,
1260
1260
  scale: .5
@@ -1275,14 +1275,14 @@ var Ve = {
1275
1275
  position: "absolute",
1276
1276
  inset: 0
1277
1277
  },
1278
- children: /* @__PURE__ */ h(V, {
1278
+ children: /* @__PURE__ */ h(B, {
1279
1279
  variant: "ghost",
1280
- icon: /* @__PURE__ */ h(le, {
1280
+ icon: /* @__PURE__ */ h(ue, {
1281
1281
  size: 14,
1282
1282
  "aria-hidden": !0
1283
1283
  }),
1284
1284
  onClick: (e) => {
1285
- e.stopPropagation(), ge(!0);
1285
+ e.stopPropagation(), _e(!0);
1286
1286
  },
1287
1287
  "aria-label": "Add",
1288
1288
  title: "Add",
@@ -1293,7 +1293,7 @@ var Ve = {
1293
1293
  })
1294
1294
  }, "plus-btn")
1295
1295
  })
1296
- }, "lead"), Qe && de && /* @__PURE__ */ h(x.div, {
1296
+ }, "lead"), $e && fe && /* @__PURE__ */ h(x.div, {
1297
1297
  initial: {
1298
1298
  opacity: 0,
1299
1299
  scale: 0,
@@ -1314,27 +1314,27 @@ var Ve = {
1314
1314
  width: 0,
1315
1315
  height: 0,
1316
1316
  marginLeft: 0,
1317
- transition: ye.current ? {
1317
+ transition: be.current ? {
1318
1318
  type: "tween",
1319
- duration: Y?.wrap?.exitDuration ?? .15,
1319
+ duration: J?.wrap?.exitDuration ?? .15,
1320
1320
  ease: "easeOut"
1321
1321
  } : {
1322
1322
  type: "spring",
1323
- visualDuration: Y?.enterButton?.visualDuration ?? .18,
1324
- bounce: Y?.enterButton?.bounce ?? .3,
1323
+ visualDuration: J?.enterButton?.visualDuration ?? .18,
1324
+ bounce: J?.enterButton?.bounce ?? .3,
1325
1325
  opacity: {
1326
1326
  type: "tween",
1327
1327
  duration: .15
1328
1328
  },
1329
- height: $e,
1330
- width: $e,
1331
- marginLeft: $e
1329
+ height: et,
1330
+ width: et,
1331
+ marginLeft: et
1332
1332
  }
1333
1333
  },
1334
1334
  transition: {
1335
1335
  type: "spring",
1336
- visualDuration: Y?.enterButton?.visualDuration ?? .4,
1337
- bounce: Y?.enterButton?.bounce ?? .5,
1336
+ visualDuration: J?.enterButton?.visualDuration ?? .4,
1337
+ bounce: J?.enterButton?.bounce ?? .5,
1338
1338
  opacity: {
1339
1339
  type: "tween",
1340
1340
  duration: .15
@@ -1348,13 +1348,13 @@ var Ve = {
1348
1348
  overflow: "visible",
1349
1349
  transformOrigin: "right"
1350
1350
  },
1351
- children: /* @__PURE__ */ h(V, {
1351
+ children: /* @__PURE__ */ h(B, {
1352
1352
  variant: "primary",
1353
- icon: /* @__PURE__ */ h(Ce, { mode: Ke ? "stop" : A ? "check" : "send" }),
1353
+ icon: /* @__PURE__ */ h(we, { mode: qe ? "stop" : A ? "check" : "send" }),
1354
1354
  onClick: (e) => {
1355
- e.stopPropagation(), Ke ? i?.() : r(t, Ae);
1355
+ e.stopPropagation(), qe ? i?.() : r(t, je);
1356
1356
  },
1357
- "aria-label": Ke ? "Stop response" : A ? "Save edits" : "Send message",
1357
+ "aria-label": qe ? "Stop response" : A ? "Save edits" : "Send message",
1358
1358
  style: {
1359
1359
  flexShrink: 0,
1360
1360
  width: 28
@@ -1368,30 +1368,30 @@ var Ve = {
1368
1368
  ]
1369
1369
  })
1370
1370
  }),
1371
- /* @__PURE__ */ h(Ee, {
1372
- isAddOpen: B,
1373
- setIsAddOpen: ge,
1371
+ /* @__PURE__ */ h(De, {
1372
+ isAddOpen: z,
1373
+ setIsAddOpen: _e,
1374
1374
  onAdd: (e) => {
1375
- (!e || e === "Add") && De.current?.click(), l?.();
1375
+ (!e || e === "Add") && Oe.current?.click(), l?.();
1376
1376
  },
1377
- showInlineGlyph: Qe,
1378
- showButtons: de,
1379
- ac: Y
1377
+ showInlineGlyph: $e,
1378
+ showButtons: fe,
1379
+ ac: J
1380
1380
  }),
1381
- /* @__PURE__ */ h(we, {
1382
- showActions: Je,
1383
- showReadMore: Ye,
1384
- isExpanded: pe,
1385
- setIsExpanded: R,
1381
+ /* @__PURE__ */ h(Te, {
1382
+ showActions: Ye,
1383
+ showReadMore: Xe,
1384
+ isExpanded: me,
1385
+ setIsExpanded: L,
1386
1386
  onCopy: D,
1387
1387
  onEdit: O,
1388
1388
  value: t,
1389
- ac: Y
1389
+ ac: J
1390
1390
  }),
1391
- Ze && (q.state === "denied" || q.state === "failed") && /* @__PURE__ */ h("p", {
1392
- className: W.voiceNote,
1393
- "data-tone": q.state,
1394
- children: q.state === "denied" ? "Microphone access is blocked. Allow it for this site in your browser settings, then reload." : q.error ?? "The microphone could not be opened."
1391
+ Qe && (K.state === "denied" || K.state === "failed") && /* @__PURE__ */ h("p", {
1392
+ className: U.voiceNote,
1393
+ "data-tone": K.state,
1394
+ children: K.state === "denied" ? "Microphone access is blocked. Allow it for this site in your browser settings, then reload." : K.error ?? "The microphone could not be opened."
1395
1395
  })
1396
1396
  ]
1397
1397
  })
@@ -1400,7 +1400,7 @@ var Ve = {
1400
1400
  });
1401
1401
  //#endregion
1402
1402
  //#region src/turnParts/turnParts.ts
1403
- function Ge(e, t) {
1403
+ function Ke(e, t) {
1404
1404
  let n = e.findIndex((e) => e.id === t.id);
1405
1405
  if (n === -1) return [...e, t];
1406
1406
  let r = e.slice();
@@ -1411,15 +1411,15 @@ function Ge(e, t) {
1411
1411
  }
1412
1412
  //#endregion
1413
1413
  //#region src/useChatTurns/useChatTurns.ts
1414
- var Ke = 260, qe = 220, Je = "Generating response", Ye = () => typeof crypto < "u" && "randomUUID" in crypto ? crypto.randomUUID() : Math.random().toString(36).slice(2, 11), Xe = () => ({
1415
- id: Ye(),
1414
+ var qe = 260, Je = 220, Ye = "Generating response", Xe = () => typeof crypto < "u" && "randomUUID" in crypto ? crypto.randomUUID() : Math.random().toString(36).slice(2, 11), Ze = () => ({
1415
+ id: Xe(),
1416
1416
  user: "",
1417
1417
  ai: "",
1418
1418
  parts: [],
1419
1419
  versions: [],
1420
1420
  versionIndex: 0,
1421
1421
  state: "idle"
1422
- }), Ze = (e) => {
1422
+ }), Qe = (e) => {
1423
1423
  let t = e.versions;
1424
1424
  if (!t?.length) return e;
1425
1425
  let n = e.versionIndex ?? 0, r = t[n];
@@ -1431,7 +1431,7 @@ var Ke = 260, qe = 220, Je = "Generating response", Ye = () => typeof crypto < "
1431
1431
  parts: e.parts
1432
1432
  } : t)
1433
1433
  };
1434
- }, Qe = (e) => typeof e == "object" && !!e && Symbol.asyncIterator in e, Y = (e, t, n) => {
1434
+ }, $e = (e) => typeof e == "object" && !!e && Symbol.asyncIterator in e, J = (e, t, n) => {
1435
1435
  let r = 1e3 / t, i = Array(e.length), a = 0;
1436
1436
  for (let t = 0; t < e.length; t++) {
1437
1437
  a += r;
@@ -1440,8 +1440,8 @@ var Ke = 260, qe = 220, Je = "Generating response", Ye = () => typeof crypto < "
1440
1440
  }
1441
1441
  return i;
1442
1442
  };
1443
- function $e({ onSend: e, revealSpeed: t = Ke, sentencePause: n = qe, announcements: r }) {
1444
- let [i, s] = f(() => [Xe()]), [c, l] = f(!1), u = d(null), p = d(null), m = d(/* @__PURE__ */ new Map()), h = d(/* @__PURE__ */ new Map()), g = d(null), _ = d(e), v = d(r), y = d(i);
1443
+ function et({ onSend: e, revealSpeed: t = qe, sentencePause: n = Je, announcements: r }) {
1444
+ let [i, s] = f(() => [Ze()]), [c, l] = f(!1), u = d(null), p = d(null), m = d(/* @__PURE__ */ new Map()), h = d(/* @__PURE__ */ new Map()), g = d(null), _ = d(e), v = d(r), y = d(i);
1445
1445
  o(() => {
1446
1446
  _.current = e, y.current = i, v.current = r;
1447
1447
  });
@@ -1454,7 +1454,7 @@ function $e({ onSend: e, revealSpeed: t = Ke, sentencePause: n = qe, announcemen
1454
1454
  ...n,
1455
1455
  ...t
1456
1456
  };
1457
- return "versionIndex" in t || "versions" in t ? i : Ze(i);
1457
+ return "versionIndex" in t || "versions" in t ? i : Qe(i);
1458
1458
  });
1459
1459
  return r ? (y.current = i, i) : n;
1460
1460
  });
@@ -1466,10 +1466,10 @@ function $e({ onSend: e, revealSpeed: t = Ke, sentencePause: n = qe, announcemen
1466
1466
  e.clear(), t.clear(), s((e) => {
1467
1467
  let t = e.map((e) => {
1468
1468
  let t = n.find(([t]) => t === e.id)?.[1], i = r.find(([t]) => t === e.id)?.[1];
1469
- return t === void 0 && !i ? e : Ze({
1469
+ return t === void 0 && !i ? e : Qe({
1470
1470
  ...e,
1471
1471
  ...t === void 0 ? null : { ai: t },
1472
- ...i ? { parts: i.reduce(Ge, e.parts) } : null
1472
+ ...i ? { parts: i.reduce(Ke, e.parts) } : null
1473
1473
  });
1474
1474
  });
1475
1475
  return y.current = t, t;
@@ -1490,15 +1490,15 @@ function $e({ onSend: e, revealSpeed: t = Ke, sentencePause: n = qe, announcemen
1490
1490
  let E = a((e, t) => {
1491
1491
  l(!1), u.current = null, b(e, { state: "resting" }), t || s((e) => {
1492
1492
  if (e.some((e) => e.state === "idle" && e.ai === "" && e.user === "")) return e;
1493
- let t = [...e, Xe()];
1493
+ let t = [...e, Ze()];
1494
1494
  return y.current = t, t;
1495
1495
  });
1496
1496
  }, [b]), D = a((e, r, i) => new Promise((a) => {
1497
- if (K()) {
1497
+ if (G()) {
1498
1498
  C(e, r), a();
1499
1499
  return;
1500
1500
  }
1501
- let o = Y(r, t, n), s = performance.now(), c = 0, l = () => {
1501
+ let o = J(r, t, n), s = performance.now(), c = 0, l = () => {
1502
1502
  if (i.aborted) {
1503
1503
  C(e, r), a();
1504
1504
  return;
@@ -1520,12 +1520,12 @@ function $e({ onSend: e, revealSpeed: t = Ke, sentencePause: n = qe, announcemen
1520
1520
  let n = v.current;
1521
1521
  if (n === !1) return;
1522
1522
  if (e === "responding") {
1523
- let e = n && "responding" in n ? n.responding : Je;
1524
- e && G(e);
1523
+ let e = n && "responding" in n ? n.responding : Ye;
1524
+ e && W(e);
1525
1525
  return;
1526
1526
  }
1527
1527
  let r = n?.answer ? n.answer(t) : t;
1528
- r && G(r);
1528
+ r && W(r);
1529
1529
  }, []), k = a(async (e, t, n, r = []) => {
1530
1530
  let i = new AbortController();
1531
1531
  u.current = i, l(!0);
@@ -1549,7 +1549,7 @@ function $e({ onSend: e, revealSpeed: t = Ke, sentencePause: n = qe, announcemen
1549
1549
  turnId: e,
1550
1550
  attachments: r
1551
1551
  });
1552
- if (Qe(n)) for await (let t of n) {
1552
+ if ($e(n)) for await (let t of n) {
1553
1553
  if (i.signal.aborted) break;
1554
1554
  typeof t == "string" ? (s += t, C(e, s)) : w(e, t);
1555
1555
  }
@@ -1614,7 +1614,7 @@ function $e({ onSend: e, revealSpeed: t = Ke, sentencePause: n = qe, announcemen
1614
1614
  updatePart: T
1615
1615
  };
1616
1616
  }
1617
- var X = {
1617
+ var Y = {
1618
1618
  header: "ick-header-ZOV-",
1619
1619
  s: "ick-s-V8Bu",
1620
1620
  m: "ick-m-sPXa",
@@ -1639,23 +1639,23 @@ var X = {
1639
1639
  menuItem: "ick-menuItem-V7gI",
1640
1640
  menuIcon: "ick-menuIcon-tjBi",
1641
1641
  menuCount: "ick-menuCount-tC3s"
1642
- }, et = {
1642
+ }, tt = {
1643
1643
  s: "s",
1644
1644
  m: "m",
1645
1645
  l: "l"
1646
- }, tt = {
1646
+ }, nt = {
1647
1647
  s: 14,
1648
1648
  m: 16,
1649
1649
  l: 18
1650
- }, nt = {
1651
- s: X.s,
1652
- m: X.m,
1653
- l: X.l
1654
- }, rt = {
1655
- plain: X.plain,
1656
- glass: X.glass,
1657
- bordered: X.bordered
1658
- }, it = (e) => e.count === void 0 ? e.label : `${e.label}, ${e.count}`, at = (e) => {
1650
+ }, rt = nt, it = {
1651
+ s: Y.s,
1652
+ m: Y.m,
1653
+ l: Y.l
1654
+ }, at = {
1655
+ plain: Y.plain,
1656
+ glass: Y.glass,
1657
+ bordered: Y.bordered
1658
+ }, ot = (e) => e.count === void 0 ? e.label : `${e.label}, ${e.count}`, st = (e) => {
1659
1659
  let t = e?.parentElement ?? null;
1660
1660
  for (; t;) {
1661
1661
  let { overflowY: e } = getComputedStyle(t);
@@ -1663,7 +1663,7 @@ var X = {
1663
1663
  t = t.parentElement;
1664
1664
  }
1665
1665
  return window;
1666
- }, ot = n(function({ title: e, subtitle: t, avatar: n, headingLevel: r = 2, truncate: i = !0, onBack: s, backHref: c, backLabel: l = "Back", actions: u = [], overflowLabel: p = "More actions", variant: m = "plain", size: _ = "m", align: v = "start", sticky: y = !1, elevateOnScroll: b = y, collapseActionsAt: x = 520, landmark: S = !0, children: C, className: w, ...E }, D) {
1666
+ }, ct = n(function({ title: e, subtitle: t, avatar: n, headingLevel: r = 2, truncate: i = !0, onBack: s, backHref: c, backLabel: l = "Back", actions: u = [], overflowLabel: p = "More actions", variant: m = "plain", size: _ = "m", align: v = "start", sticky: y = !1, elevateOnScroll: b = y, collapseActionsAt: x = 520, landmark: S = !0, children: C, className: w, ...E }, D) {
1667
1667
  let O = d(null), [k, A] = f(!1), [j, M] = f(!1), N = a((e) => {
1668
1668
  O.current = e, typeof D == "function" ? D(e) : D && (D.current = e);
1669
1669
  }, [D]);
@@ -1677,71 +1677,71 @@ var X = {
1677
1677
  return t.observe(e), () => t.disconnect();
1678
1678
  }, [x]), o(() => {
1679
1679
  if (!b) return;
1680
- let e = at(O.current), t = () => {
1680
+ let e = st(O.current), t = () => {
1681
1681
  let t = e === window ? window.scrollY : e.scrollTop;
1682
1682
  M(t > 0);
1683
1683
  };
1684
1684
  return t(), e.addEventListener("scroll", t, { passive: !0 }), () => e.removeEventListener("scroll", t);
1685
1685
  }, [b]);
1686
- let P = x !== !1 && k, ee = P ? u.filter((e) => e.pinned) : u, F = P ? u.filter((e) => !e.pinned) : [], I = r ? `h${r}` : "span";
1686
+ let P = x !== !1 && k, ee = P ? u.filter((e) => e.pinned) : u, F = P ? u.filter((e) => !e.pinned) : [], te = r ? `h${r}` : "span";
1687
1687
  return /* @__PURE__ */ g(S ? "header" : "div", {
1688
1688
  ref: N,
1689
1689
  className: [
1690
- X.header,
1691
- nt[_],
1692
- rt[m],
1693
- v === "center" ? X.center : "",
1694
- y ? X.sticky : "",
1690
+ Y.header,
1691
+ it[_],
1692
+ at[m],
1693
+ v === "center" ? Y.center : "",
1694
+ y ? Y.sticky : "",
1695
1695
  w ?? ""
1696
1696
  ].filter(Boolean).join(" "),
1697
1697
  "data-scrolled": b && j || void 0,
1698
1698
  ...E,
1699
1699
  children: [/* @__PURE__ */ g("div", {
1700
- className: X.start,
1700
+ className: Y.start,
1701
1701
  children: [
1702
1702
  c ? /* @__PURE__ */ h("a", {
1703
1703
  href: c,
1704
- className: X.back,
1704
+ className: Y.back,
1705
1705
  "aria-label": l,
1706
1706
  children: /* @__PURE__ */ h(T, {
1707
- size: tt[_],
1707
+ size: rt[_],
1708
1708
  "aria-hidden": !0
1709
1709
  })
1710
- }) : s ? /* @__PURE__ */ h(V, {
1710
+ }) : s ? /* @__PURE__ */ h(B, {
1711
1711
  variant: "secondary",
1712
- size: et[_],
1712
+ size: tt[_],
1713
1713
  icon: /* @__PURE__ */ h(T, {
1714
- size: tt[_],
1714
+ size: rt[_],
1715
1715
  "aria-hidden": !0
1716
1716
  }),
1717
1717
  "aria-label": l,
1718
1718
  onClick: s
1719
1719
  }) : null,
1720
1720
  n && /* @__PURE__ */ h("span", {
1721
- className: X.avatar,
1721
+ className: Y.avatar,
1722
1722
  children: n
1723
1723
  }),
1724
1724
  (e || t) && /* @__PURE__ */ g("div", {
1725
- className: X.titles,
1726
- children: [e && /* @__PURE__ */ h(I, {
1727
- className: [X.title, i ? X.truncate : ""].filter(Boolean).join(" "),
1725
+ className: Y.titles,
1726
+ children: [e && /* @__PURE__ */ h(te, {
1727
+ className: [Y.title, i ? Y.truncate : ""].filter(Boolean).join(" "),
1728
1728
  title: typeof e == "string" && i ? e : void 0,
1729
1729
  children: e
1730
1730
  }), t && /* @__PURE__ */ h("span", {
1731
- className: [X.subtitle, i ? X.truncate : ""].filter(Boolean).join(" "),
1731
+ className: [Y.subtitle, i ? Y.truncate : ""].filter(Boolean).join(" "),
1732
1732
  children: t
1733
1733
  })]
1734
1734
  })
1735
1735
  ]
1736
1736
  }), /* @__PURE__ */ g("div", {
1737
- className: X.end,
1737
+ className: Y.end,
1738
1738
  children: [
1739
1739
  C,
1740
- ee.map((e) => /* @__PURE__ */ h(st, {
1740
+ ee.map((e) => /* @__PURE__ */ h(lt, {
1741
1741
  action: e,
1742
1742
  size: _
1743
1743
  }, e.id)),
1744
- F.length > 0 && /* @__PURE__ */ h(ct, {
1744
+ F.length > 0 && /* @__PURE__ */ h(ut, {
1745
1745
  actions: F,
1746
1746
  size: _,
1747
1747
  label: p
@@ -1750,23 +1750,23 @@ var X = {
1750
1750
  })]
1751
1751
  });
1752
1752
  });
1753
- function st({ action: e, size: t }) {
1754
- let n = it(e), r = e.count !== void 0 && e.count > 0 ? /* @__PURE__ */ h("span", {
1755
- className: X.badge,
1753
+ function lt({ action: e, size: t }) {
1754
+ let n = ot(e), r = e.count !== void 0 && e.count > 0 ? /* @__PURE__ */ h("span", {
1755
+ className: Y.badge,
1756
1756
  "aria-hidden": "true",
1757
1757
  children: e.count > 99 ? "99+" : e.count
1758
1758
  }) : null;
1759
1759
  return e.href ? /* @__PURE__ */ g("a", {
1760
1760
  href: e.href,
1761
- className: X.back,
1761
+ className: Y.back,
1762
1762
  "aria-label": n,
1763
1763
  title: e.label,
1764
1764
  children: [e.icon, r]
1765
1765
  }) : /* @__PURE__ */ g("span", {
1766
- className: X.actionWrap,
1767
- children: [/* @__PURE__ */ h(V, {
1766
+ className: Y.actionWrap,
1767
+ children: [/* @__PURE__ */ h(B, {
1768
1768
  variant: "secondary",
1769
- size: et[t],
1769
+ size: tt[t],
1770
1770
  icon: e.icon,
1771
1771
  "aria-label": n,
1772
1772
  title: e.label,
@@ -1776,20 +1776,20 @@ function st({ action: e, size: t }) {
1776
1776
  }), r]
1777
1777
  });
1778
1778
  }
1779
- function ct({ actions: e, size: t, label: n }) {
1779
+ function ut({ actions: e, size: t, label: n }) {
1780
1780
  let [r, i] = f(!1), [c, l] = f(0), u = d(null), p = d(null), m = s(), _ = a((e) => {
1781
1781
  i(!1), e && u.current?.focus();
1782
1782
  }, []), v = Math.min(c, Math.max(e.length - 1, 0));
1783
1783
  return o(() => {
1784
1784
  r && (p.current?.querySelectorAll("[role=\"menuitem\"], [role=\"menuitemcheckbox\"]"))?.[v]?.focus();
1785
1785
  }, [r, v]), /* @__PURE__ */ g("span", {
1786
- className: X.overflow,
1787
- children: [/* @__PURE__ */ h(V, {
1786
+ className: Y.overflow,
1787
+ children: [/* @__PURE__ */ h(B, {
1788
1788
  ref: u,
1789
1789
  variant: "secondary",
1790
- size: et[t],
1791
- icon: /* @__PURE__ */ h(ie, {
1792
- size: tt[t],
1790
+ size: tt[t],
1791
+ icon: /* @__PURE__ */ h(ae, {
1792
+ size: rt[t],
1793
1793
  "aria-hidden": !0
1794
1794
  }),
1795
1795
  "aria-label": n,
@@ -1804,7 +1804,7 @@ function ct({ actions: e, size: t, label: n }) {
1804
1804
  id: m,
1805
1805
  role: "menu",
1806
1806
  "aria-label": n,
1807
- className: X.menu,
1807
+ className: Y.menu,
1808
1808
  onKeyDown: (t) => {
1809
1809
  if (t.key === "Escape") {
1810
1810
  t.stopPropagation(), _(!0);
@@ -1832,19 +1832,19 @@ function ct({ actions: e, size: t, label: n }) {
1832
1832
  role: e.active === void 0 ? "menuitem" : "menuitemcheckbox",
1833
1833
  "aria-checked": e.active,
1834
1834
  tabIndex: v === t ? 0 : -1,
1835
- className: X.menuItem,
1835
+ className: Y.menuItem,
1836
1836
  disabled: e.disabled,
1837
1837
  onClick: () => {
1838
1838
  e.onClick?.(), _(!0);
1839
1839
  },
1840
1840
  children: [
1841
1841
  /* @__PURE__ */ h("span", {
1842
- className: X.menuIcon,
1842
+ className: Y.menuIcon,
1843
1843
  children: e.icon
1844
1844
  }),
1845
1845
  /* @__PURE__ */ h("span", { children: e.label }),
1846
1846
  e.count !== void 0 && e.count > 0 && /* @__PURE__ */ h("span", {
1847
- className: X.menuCount,
1847
+ className: Y.menuCount,
1848
1848
  children: e.count
1849
1849
  })
1850
1850
  ]
@@ -1852,26 +1852,26 @@ function ct({ actions: e, size: t, label: n }) {
1852
1852
  })]
1853
1853
  });
1854
1854
  }
1855
- var lt = {
1855
+ var dt = {
1856
1856
  row: "ick-row-yugg",
1857
1857
  reveal: "ick-reveal-z3mw"
1858
- }, ut = {
1858
+ }, ft = {
1859
1859
  copy: "Copy answer",
1860
1860
  copied: "Copied",
1861
1861
  regenerate: "Regenerate",
1862
1862
  up: "Good answer",
1863
1863
  down: "Bad answer"
1864
- }, dt = 1600;
1865
- function ft({ text: e, onCopy: t, onRegenerate: n, onFeedback: r, feedback: i = null, children: s, reveal: c = !1, busy: l = !1, labels: u, className: p, ..._ }) {
1864
+ }, pt = 1600;
1865
+ function mt({ text: e, onCopy: t, onRegenerate: n, onFeedback: r, feedback: i = null, children: s, reveal: c = !1, busy: l = !1, labels: u, className: p, ..._ }) {
1866
1866
  let [v, y] = f(!1), b = d(null), x = {
1867
- ...ut,
1867
+ ...ft,
1868
1868
  ...u
1869
1869
  };
1870
1870
  o(() => () => {
1871
1871
  b.current && clearTimeout(b.current);
1872
1872
  }, []);
1873
1873
  let S = a(() => {
1874
- t ? t(e) : navigator.clipboard?.writeText(e), y(!0), G(x.copied), b.current && clearTimeout(b.current), b.current = setTimeout(() => y(!1), dt);
1874
+ t ? t(e) : navigator.clipboard?.writeText(e), y(!0), W(x.copied), b.current && clearTimeout(b.current), b.current = setTimeout(() => y(!1), pt);
1875
1875
  }, [
1876
1876
  x.copied,
1877
1877
  t,
@@ -1879,13 +1879,13 @@ function ft({ text: e, onCopy: t, onRegenerate: n, onFeedback: r, feedback: i =
1879
1879
  ]), C = (e) => r?.(i === e ? null : e);
1880
1880
  return /* @__PURE__ */ g("div", {
1881
1881
  className: [
1882
- lt.row,
1883
- c ? lt.reveal : "",
1882
+ dt.row,
1883
+ c ? dt.reveal : "",
1884
1884
  p ?? ""
1885
1885
  ].filter(Boolean).join(" "),
1886
1886
  ..._,
1887
1887
  children: [
1888
- /* @__PURE__ */ h(V, {
1888
+ /* @__PURE__ */ h(B, {
1889
1889
  variant: "ghost",
1890
1890
  icon: h(v ? D : j, {
1891
1891
  size: 14,
@@ -1895,9 +1895,9 @@ function ft({ text: e, onCopy: t, onRegenerate: n, onFeedback: r, feedback: i =
1895
1895
  "aria-label": v ? x.copied : x.copy,
1896
1896
  title: v ? x.copied : x.copy
1897
1897
  }),
1898
- n && /* @__PURE__ */ h(V, {
1898
+ n && /* @__PURE__ */ h(B, {
1899
1899
  variant: "ghost",
1900
- icon: /* @__PURE__ */ h(ue, {
1900
+ icon: /* @__PURE__ */ h(de, {
1901
1901
  size: 14,
1902
1902
  "aria-hidden": !0
1903
1903
  }),
@@ -1907,9 +1907,9 @@ function ft({ text: e, onCopy: t, onRegenerate: n, onFeedback: r, feedback: i =
1907
1907
  "aria-label": x.regenerate,
1908
1908
  title: x.regenerate
1909
1909
  }),
1910
- r && /* @__PURE__ */ g(m, { children: [/* @__PURE__ */ h(V, {
1910
+ r && /* @__PURE__ */ g(m, { children: [/* @__PURE__ */ h(B, {
1911
1911
  variant: "ghost",
1912
- icon: /* @__PURE__ */ h(R, {
1912
+ icon: /* @__PURE__ */ h(L, {
1913
1913
  size: 14,
1914
1914
  "aria-hidden": !0
1915
1915
  }),
@@ -1917,9 +1917,9 @@ function ft({ text: e, onCopy: t, onRegenerate: n, onFeedback: r, feedback: i =
1917
1917
  "aria-pressed": i === "up",
1918
1918
  "aria-label": x.up,
1919
1919
  title: x.up
1920
- }), /* @__PURE__ */ h(V, {
1920
+ }), /* @__PURE__ */ h(B, {
1921
1921
  variant: "ghost",
1922
- icon: /* @__PURE__ */ h(pe, {
1922
+ icon: /* @__PURE__ */ h(me, {
1923
1923
  size: 14,
1924
1924
  "aria-hidden": !0
1925
1925
  }),
@@ -1932,32 +1932,32 @@ function ft({ text: e, onCopy: t, onRegenerate: n, onFeedback: r, feedback: i =
1932
1932
  ]
1933
1933
  });
1934
1934
  }
1935
- var pt = {
1935
+ var ht = {
1936
1936
  branch: "ick-branch-lR6b",
1937
1937
  step: "ick-step-JSch",
1938
1938
  count: "ick-count-kOmV",
1939
1939
  of: "ick-of-VOS2"
1940
- }, mt = {
1940
+ }, gt = {
1941
1941
  previous: "Previous answer",
1942
1942
  next: "Next answer",
1943
1943
  position: "Answer {index} of {total}"
1944
1944
  };
1945
- function ht({ total: e, index: t, onSelect: n, labels: r, className: i, ...a }) {
1945
+ function _t({ total: e, index: t, onSelect: n, labels: r, className: i, ...a }) {
1946
1946
  let o = {
1947
- ...mt,
1947
+ ...gt,
1948
1948
  ...r
1949
1949
  };
1950
1950
  if (e < 2) return null;
1951
1951
  let s = Math.min(Math.max(t, 0), e - 1), c = o.position.replace("{index}", String(s + 1)).replace("{total}", String(e));
1952
1952
  return /* @__PURE__ */ g("div", {
1953
- className: [pt.branch, i ?? ""].filter(Boolean).join(" "),
1953
+ className: [ht.branch, i ?? ""].filter(Boolean).join(" "),
1954
1954
  role: "group",
1955
1955
  "aria-label": c,
1956
1956
  ...a,
1957
1957
  children: [
1958
1958
  /* @__PURE__ */ h("button", {
1959
1959
  type: "button",
1960
- className: pt.step,
1960
+ className: ht.step,
1961
1961
  onClick: () => n(s - 1),
1962
1962
  onPointerDown: (e) => e.stopPropagation(),
1963
1963
  disabled: s === 0,
@@ -1968,11 +1968,11 @@ function ht({ total: e, index: t, onSelect: n, labels: r, className: i, ...a })
1968
1968
  })
1969
1969
  }),
1970
1970
  /* @__PURE__ */ g("span", {
1971
- className: pt.count,
1971
+ className: ht.count,
1972
1972
  children: [
1973
1973
  s + 1,
1974
1974
  /* @__PURE__ */ h("span", {
1975
- className: pt.of,
1975
+ className: ht.of,
1976
1976
  children: "/"
1977
1977
  }),
1978
1978
  e
@@ -1980,7 +1980,7 @@ function ht({ total: e, index: t, onSelect: n, labels: r, className: i, ...a })
1980
1980
  }),
1981
1981
  /* @__PURE__ */ h("button", {
1982
1982
  type: "button",
1983
- className: pt.step,
1983
+ className: ht.step,
1984
1984
  onClick: () => n(s + 1),
1985
1985
  onPointerDown: (e) => e.stopPropagation(),
1986
1986
  disabled: s === e - 1,
@@ -1993,7 +1993,7 @@ function ht({ total: e, index: t, onSelect: n, labels: r, className: i, ...a })
1993
1993
  ]
1994
1994
  });
1995
1995
  }
1996
- var gt = {
1996
+ var vt = {
1997
1997
  loader: "ick-loader-7WbG",
1998
1998
  dot: "ick-dot-JJFT",
1999
1999
  blink: "ick-blink-MCVu",
@@ -2003,10 +2003,10 @@ var gt = {
2003
2003
  };
2004
2004
  //#endregion
2005
2005
  //#region src/Loader/Loader.tsx
2006
- function _t({ variant: e = "dots", children: t, label: n = null, className: r, ...i }) {
2006
+ function yt({ variant: e = "dots", children: t, label: n = null, className: r, ...i }) {
2007
2007
  let a = [
2008
- gt.loader,
2009
- gt[e],
2008
+ vt.loader,
2009
+ vt[e],
2010
2010
  r ?? ""
2011
2011
  ].filter(Boolean).join(" ");
2012
2012
  return /* @__PURE__ */ g("div", {
@@ -2015,21 +2015,21 @@ function _t({ variant: e = "dots", children: t, label: n = null, className: r, .
2015
2015
  "aria-hidden": !n || void 0,
2016
2016
  ...i,
2017
2017
  children: [n && /* @__PURE__ */ h("span", {
2018
- className: gt.srOnly,
2018
+ className: vt.srOnly,
2019
2019
  children: n
2020
2020
  }), e === "dots" ? /* @__PURE__ */ g(m, { children: [
2021
- /* @__PURE__ */ h("span", { className: gt.dot }),
2022
- /* @__PURE__ */ h("span", { className: gt.dot }),
2023
- /* @__PURE__ */ h("span", { className: gt.dot })
2021
+ /* @__PURE__ */ h("span", { className: vt.dot }),
2022
+ /* @__PURE__ */ h("span", { className: vt.dot }),
2023
+ /* @__PURE__ */ h("span", { className: vt.dot })
2024
2024
  ] }) : /* @__PURE__ */ h("span", {
2025
- className: gt.text,
2025
+ className: vt.text,
2026
2026
  children: t
2027
2027
  })]
2028
2028
  });
2029
2029
  }
2030
2030
  //#endregion
2031
2031
  //#region src/disclosure/useDisclosure.ts
2032
- function vt({ open: e, defaultOpen: t, onOpenChange: n, preferOpen: r }) {
2032
+ function bt({ open: e, defaultOpen: t, onOpenChange: n, preferOpen: r }) {
2033
2033
  let [i, o] = f(null), s = e ?? i ?? t ?? r;
2034
2034
  return {
2035
2035
  isOpen: s,
@@ -2043,7 +2043,7 @@ function vt({ open: e, defaultOpen: t, onOpenChange: n, preferOpen: r }) {
2043
2043
  ])
2044
2044
  };
2045
2045
  }
2046
- var yt = {
2046
+ var xt = {
2047
2047
  header: "ick-header-C0FS",
2048
2048
  chevron: "ick-chevron-RY4c",
2049
2049
  static: "ick-static-6vUk",
@@ -2051,30 +2051,30 @@ var yt = {
2051
2051
  label: "ick-label-L-k2",
2052
2052
  sweep: "ick-sweep-owLs",
2053
2053
  meta: "ick-meta-wT3y"
2054
- }, bt = (...e) => e.filter(Boolean).join(" ");
2055
- function xt({ fit: e = "band", open: t, onToggle: n, controls: r, disabled: i, glyph: a, label: o, pending: s, meta: c, children: l, className: u }) {
2054
+ }, St = (...e) => e.filter(Boolean).join(" ");
2055
+ function Ct({ fit: e = "band", open: t, onToggle: n, controls: r, disabled: i, glyph: a, label: o, pending: s, meta: c, children: l, className: u }) {
2056
2056
  let d = /* @__PURE__ */ g(m, { children: [
2057
2057
  a && /* @__PURE__ */ h("span", {
2058
- className: yt.glyph,
2058
+ className: xt.glyph,
2059
2059
  children: a
2060
2060
  }),
2061
2061
  /* @__PURE__ */ h("span", {
2062
- className: yt.label,
2062
+ className: xt.label,
2063
2063
  "data-pending": s || void 0,
2064
2064
  children: o
2065
2065
  }),
2066
2066
  l,
2067
2067
  c ? /* @__PURE__ */ h("span", {
2068
- className: yt.meta,
2068
+ className: xt.meta,
2069
2069
  children: c
2070
2070
  }) : null,
2071
2071
  n && /* @__PURE__ */ h(O, {
2072
- className: yt.chevron,
2072
+ className: xt.chevron,
2073
2073
  size: 14,
2074
2074
  "aria-hidden": !0
2075
2075
  })
2076
2076
  ] }), f = {
2077
- className: bt(yt.header, u),
2077
+ className: St(xt.header, u),
2078
2078
  "data-fit": e
2079
2079
  };
2080
2080
  return n ? /* @__PURE__ */ h("button", {
@@ -2088,25 +2088,25 @@ function xt({ fit: e = "band", open: t, onToggle: n, controls: r, disabled: i, g
2088
2088
  children: d
2089
2089
  }) : /* @__PURE__ */ h("div", {
2090
2090
  ...f,
2091
- className: bt(f.className, yt.static),
2091
+ className: St(f.className, xt.static),
2092
2092
  children: d
2093
2093
  });
2094
2094
  }
2095
- var St = {
2095
+ var wt = {
2096
2096
  outer: "ick-outer-6UEA",
2097
2097
  wrap: "ick-wrap-u6ww"
2098
2098
  };
2099
2099
  //#endregion
2100
2100
  //#region src/disclosure/DisclosureBody.tsx
2101
- function Ct({ id: e, open: t, className: n, children: r }) {
2102
- let i = K();
2101
+ function Tt({ id: e, open: t, className: n, children: r }) {
2102
+ let i = G();
2103
2103
  return /* @__PURE__ */ h("div", {
2104
2104
  id: e,
2105
- className: St.outer,
2105
+ className: wt.outer,
2106
2106
  children: /* @__PURE__ */ h(_, {
2107
2107
  initial: !1,
2108
2108
  children: t && r ? /* @__PURE__ */ h(x.div, {
2109
- className: St.wrap,
2109
+ className: wt.wrap,
2110
2110
  initial: i ? { opacity: 0 } : {
2111
2111
  height: 0,
2112
2112
  opacity: 0
@@ -2138,25 +2138,25 @@ function Ct({ id: e, open: t, className: n, children: r }) {
2138
2138
  }
2139
2139
  //#endregion
2140
2140
  //#region src/duration/formatDuration.ts
2141
- function wt(e) {
2141
+ function Et(e) {
2142
2142
  if (!Number.isFinite(e) || e < 0) return "";
2143
2143
  if (e < 1e3) return `${Math.round(e)}ms`;
2144
2144
  let t = e / 1e3;
2145
2145
  return `${t < 10 ? t.toFixed(1) : Math.round(t)}s`;
2146
2146
  }
2147
- var Tt = {
2147
+ var Dt = {
2148
2148
  reasoning: "ick-reasoning-qbLZ",
2149
2149
  bodyInner: "ick-bodyInner-5PBC"
2150
- }, Et = {
2150
+ }, Ot = {
2151
2151
  thinking: "Thinking",
2152
2152
  thought: "Thought",
2153
2153
  thoughtFor: "Thought for"
2154
2154
  };
2155
- function Dt({ children: e, state: t = "done", duration: n, open: r, defaultOpen: i, onOpenChange: a, labels: o, className: c, ...l }) {
2155
+ function kt({ children: e, state: t = "done", duration: n, open: r, defaultOpen: i, onOpenChange: a, labels: o, className: c, ...l }) {
2156
2156
  let u = {
2157
- ...Et,
2157
+ ...Ot,
2158
2158
  ...o
2159
- }, d = s(), p = t === "thinking", { isOpen: m, toggle: _ } = vt({
2159
+ }, d = s(), p = t === "thinking", { isOpen: m, toggle: _ } = bt({
2160
2160
  open: r,
2161
2161
  defaultOpen: i,
2162
2162
  onOpenChange: a,
@@ -2172,12 +2172,12 @@ function Dt({ children: e, state: t = "done", duration: n, open: r, defaultOpen:
2172
2172
  from: null,
2173
2173
  took: e.from === null ? null : Date.now() - e.from
2174
2174
  }));
2175
- let S = n ?? b.took, C = p || S === null ? "" : wt(S);
2175
+ let S = n ?? b.took, C = p || S === null ? "" : Et(S);
2176
2176
  return /* @__PURE__ */ g("div", {
2177
- className: [Tt.reasoning, c ?? ""].filter(Boolean).join(" "),
2177
+ className: [Dt.reasoning, c ?? ""].filter(Boolean).join(" "),
2178
2178
  "data-state": t,
2179
2179
  ...l,
2180
- children: [/* @__PURE__ */ h(xt, {
2180
+ children: [/* @__PURE__ */ h(Ct, {
2181
2181
  fit: "inline",
2182
2182
  open: m,
2183
2183
  onToggle: _,
@@ -2188,17 +2188,17 @@ function Dt({ children: e, state: t = "done", duration: n, open: r, defaultOpen:
2188
2188
  }),
2189
2189
  label: p ? u.thinking : C ? `${u.thoughtFor} ${C}` : u.thought,
2190
2190
  pending: p
2191
- }), /* @__PURE__ */ h(Ct, {
2191
+ }), /* @__PURE__ */ h(Tt, {
2192
2192
  id: d,
2193
2193
  open: m,
2194
- className: Tt.bodyInner,
2194
+ className: Dt.bodyInner,
2195
2195
  children: e
2196
2196
  })]
2197
2197
  });
2198
2198
  }
2199
2199
  //#endregion
2200
2200
  //#region src/CodeBlock/highlight.ts
2201
- var Ot = [
2201
+ var At = [
2202
2202
  "bash",
2203
2203
  "css",
2204
2204
  "diff",
@@ -2210,7 +2210,7 @@ var Ot = [
2210
2210
  "typescript",
2211
2211
  "xml",
2212
2212
  "yaml"
2213
- ], kt = {
2213
+ ], jt = {
2214
2214
  js: "javascript",
2215
2215
  jsx: "javascript",
2216
2216
  mjs: "javascript",
@@ -2231,15 +2231,15 @@ var Ot = [
2231
2231
  patch: "diff",
2232
2232
  yml: "yaml",
2233
2233
  yamllint: "yaml"
2234
- }, At = new Set(Ot), jt = (e) => [{
2234
+ }, Mt = new Set(At), Nt = (e) => [{
2235
2235
  value: e,
2236
2236
  kind: null
2237
- }], Mt = (e) => {
2237
+ }], Pt = (e) => {
2238
2238
  if (!e) return null;
2239
- let t = kt[e.toLowerCase()] ?? e.toLowerCase();
2240
- return At.has(t) ? t : null;
2241
- }, Nt = (e) => Mt(e) !== null;
2242
- function Pt(e) {
2239
+ let t = jt[e.toLowerCase()] ?? e.toLowerCase();
2240
+ return Mt.has(t) ? t : null;
2241
+ }, Ft = (e) => Pt(e) !== null;
2242
+ function It(e) {
2243
2243
  let t = [], n = (e, n) => {
2244
2244
  if (!e) return;
2245
2245
  let r = t[t.length - 1];
@@ -2259,42 +2259,42 @@ function Pt(e) {
2259
2259
  };
2260
2260
  return r(e.children ?? [], null), t;
2261
2261
  }
2262
- var Ft = null, It = null, Lt = () => Ft;
2263
- function Rt() {
2264
- return Ft ? Promise.resolve(Ft) : It || (It = (async () => {
2262
+ var Lt = null, Rt = null, zt = () => Lt;
2263
+ function Bt() {
2264
+ return Lt ? Promise.resolve(Lt) : Rt || (Rt = (async () => {
2265
2265
  let { createHighlighter: e } = await import("./grammars-B19jp7qm.js"), t = e();
2266
- return Ft = (e, n) => {
2267
- let r = Mt(n);
2268
- if (!r) return jt(e);
2266
+ return Lt = (e, n) => {
2267
+ let r = Pt(n);
2268
+ if (!r) return Nt(e);
2269
2269
  try {
2270
- let n = Pt(t.highlight(r, e));
2271
- return n.length > 0 ? n : jt(e);
2270
+ let n = It(t.highlight(r, e));
2271
+ return n.length > 0 ? n : Nt(e);
2272
2272
  } catch {
2273
- return jt(e);
2273
+ return Nt(e);
2274
2274
  }
2275
- }, Ft;
2276
- })(), It);
2275
+ }, Lt;
2276
+ })(), Rt);
2277
2277
  }
2278
- var zt = {
2278
+ var Vt = {
2279
2279
  block: "ick-block-xN1a",
2280
2280
  bar: "ick-bar-5YJ4",
2281
2281
  lang: "ick-lang-pkCd",
2282
2282
  copy: "ick-copy-KoCs",
2283
2283
  copyLabel: "ick-copyLabel-E8mN",
2284
2284
  pre: "ick-pre-qaBX"
2285
- }, Bt = 1600;
2286
- function Vt({ code: e, lang: t, label: n, copyable: r = !0, onCopy: i, copiedFor: s = Bt, className: c, ...l }) {
2287
- let [p, m] = f(!1), _ = d(null), [v, y] = f(Lt);
2285
+ }, Ht = 1600;
2286
+ function Ut({ code: e, lang: t, label: n, copyable: r = !0, onCopy: i, copiedFor: s = Ht, className: c, ...l }) {
2287
+ let [p, m] = f(!1), _ = d(null), [v, y] = f(zt);
2288
2288
  o(() => {
2289
- if (v || !Nt(t)) return;
2289
+ if (v || !Ft(t)) return;
2290
2290
  let e = !0;
2291
- return Rt().then((t) => {
2291
+ return Bt().then((t) => {
2292
2292
  e && y(() => t);
2293
2293
  }), () => {
2294
2294
  e = !1;
2295
2295
  };
2296
2296
  }, [v, t]);
2297
- let b = u(() => v ? v(e, t) : jt(e), [
2297
+ let b = u(() => v ? v(e, t) : Nt(e), [
2298
2298
  v,
2299
2299
  e,
2300
2300
  t
@@ -2303,23 +2303,23 @@ function Vt({ code: e, lang: t, label: n, copyable: r = !0, onCopy: i, copiedFor
2303
2303
  _.current && clearTimeout(_.current);
2304
2304
  }, []);
2305
2305
  let x = a(() => {
2306
- i ? i(e) : navigator.clipboard?.writeText(e), m(!0), G("Copied to clipboard"), _.current && clearTimeout(_.current), _.current = setTimeout(() => m(!1), s);
2306
+ i ? i(e) : navigator.clipboard?.writeText(e), m(!0), W("Copied to clipboard"), _.current && clearTimeout(_.current), _.current = setTimeout(() => m(!1), s);
2307
2307
  }, [
2308
2308
  e,
2309
2309
  s,
2310
2310
  i
2311
2311
  ]), S = n === !1 ? null : n ?? t ?? null, C = S !== null || r;
2312
2312
  return /* @__PURE__ */ g("div", {
2313
- className: [zt.block, c ?? ""].filter(Boolean).join(" "),
2313
+ className: [Vt.block, c ?? ""].filter(Boolean).join(" "),
2314
2314
  ...l,
2315
2315
  children: [C && /* @__PURE__ */ g("div", {
2316
- className: zt.bar,
2316
+ className: Vt.bar,
2317
2317
  children: [/* @__PURE__ */ h("span", {
2318
- className: zt.lang,
2318
+ className: Vt.lang,
2319
2319
  children: S
2320
2320
  }), r && /* @__PURE__ */ g("button", {
2321
2321
  type: "button",
2322
- className: zt.copy,
2322
+ className: Vt.copy,
2323
2323
  onClick: x,
2324
2324
  onPointerDown: (e) => e.stopPropagation(),
2325
2325
  "aria-label": p ? "Copied" : "Copy code",
@@ -2327,12 +2327,12 @@ function Vt({ code: e, lang: t, label: n, copyable: r = !0, onCopy: i, copiedFor
2327
2327
  size: 13,
2328
2328
  "aria-hidden": !0
2329
2329
  }), /* @__PURE__ */ h("span", {
2330
- className: zt.copyLabel,
2330
+ className: Vt.copyLabel,
2331
2331
  children: p ? "Copied" : "Copy"
2332
2332
  })]
2333
2333
  })]
2334
2334
  }), /* @__PURE__ */ h("pre", {
2335
- className: zt.pre,
2335
+ className: Vt.pre,
2336
2336
  children: /* @__PURE__ */ h("code", { children: b.map((e, t) => e.kind ? /* @__PURE__ */ h("span", {
2337
2337
  "data-hl": e.kind,
2338
2338
  children: e.value
@@ -2340,7 +2340,7 @@ function Vt({ code: e, lang: t, label: n, copyable: r = !0, onCopy: i, copiedFor
2340
2340
  })]
2341
2341
  });
2342
2342
  }
2343
- var Ht = {
2343
+ var Wt = {
2344
2344
  glyph: "ick-glyph-NSSW",
2345
2345
  queued: "ick-queued-6cCj",
2346
2346
  spinner: "ick-spinner-HeOp",
@@ -2348,15 +2348,15 @@ var Ht = {
2348
2348
  };
2349
2349
  //#endregion
2350
2350
  //#region src/stateGlyph/StateGlyph.tsx
2351
- function Ut({ state: e }) {
2351
+ function Gt({ state: e }) {
2352
2352
  return /* @__PURE__ */ h("span", {
2353
- className: Ht.glyph,
2353
+ className: Wt.glyph,
2354
2354
  "data-state": e,
2355
2355
  "aria-hidden": !0,
2356
- children: e === "running" ? /* @__PURE__ */ h("span", { className: Ht.spinner }) : e === "done" ? /* @__PURE__ */ h(D, { size: 13 }) : e === "error" ? /* @__PURE__ */ h(z, { size: 13 }) : /* @__PURE__ */ h("span", { className: Ht.queued })
2356
+ children: e === "running" ? /* @__PURE__ */ h("span", { className: Wt.spinner }) : e === "done" ? /* @__PURE__ */ h(D, { size: 13 }) : e === "error" ? /* @__PURE__ */ h(R, { size: 13 }) : /* @__PURE__ */ h("span", { className: Wt.queued })
2357
2357
  });
2358
2358
  }
2359
- var Wt = {
2359
+ var Kt = {
2360
2360
  tool: "ick-tool-en0M",
2361
2361
  card: "ick-card-nzIg",
2362
2362
  overview: "ick-overview-lVM-",
@@ -2365,7 +2365,7 @@ var Wt = {
2365
2365
  sectionLabel: "ick-sectionLabel-Eo-k",
2366
2366
  text: "ick-text-uxUz",
2367
2367
  srOnly: "ick-srOnly-iikt"
2368
- }, Gt = {
2368
+ }, qt = {
2369
2369
  input: "Input",
2370
2370
  output: "Output",
2371
2371
  error: "Error",
@@ -2373,7 +2373,7 @@ var Wt = {
2373
2373
  running: "Running",
2374
2374
  done: "Done"
2375
2375
  };
2376
- function Kt(e) {
2376
+ function Jt(e) {
2377
2377
  if (e == null) return null;
2378
2378
  if (r(e)) return {
2379
2379
  kind: "node",
@@ -2400,78 +2400,78 @@ function Kt(e) {
2400
2400
  };
2401
2401
  }
2402
2402
  }
2403
- function qt({ label: e, value: t, tone: n }) {
2403
+ function Yt({ label: e, value: t, tone: n }) {
2404
2404
  if (!t) return null;
2405
- if (t.kind === "json") return /* @__PURE__ */ h(Vt, {
2405
+ if (t.kind === "json") return /* @__PURE__ */ h(Ut, {
2406
2406
  code: t.code,
2407
2407
  lang: "json",
2408
2408
  label: e
2409
2409
  });
2410
2410
  let r = t.kind === "text" ? /* @__PURE__ */ h("p", {
2411
- className: Wt.text,
2411
+ className: Kt.text,
2412
2412
  children: t.text
2413
2413
  }) : t.node;
2414
2414
  return /* @__PURE__ */ g("div", {
2415
- className: Wt.section,
2415
+ className: Kt.section,
2416
2416
  "data-tone": n,
2417
2417
  children: [/* @__PURE__ */ h("span", {
2418
- className: Wt.sectionLabel,
2418
+ className: Kt.sectionLabel,
2419
2419
  children: e
2420
2420
  }), r]
2421
2421
  });
2422
2422
  }
2423
- function Jt({ name: e, state: t = "done", summary: n, input: r, output: i, error: a, duration: o, open: c, defaultOpen: l, onOpenChange: u, labels: d, className: f, ...p }) {
2423
+ function Xt({ name: e, state: t = "done", summary: n, input: r, output: i, error: a, duration: o, open: c, defaultOpen: l, onOpenChange: u, labels: d, className: f, ...p }) {
2424
2424
  let m = {
2425
- ...Gt,
2425
+ ...qt,
2426
2426
  ...d
2427
- }, _ = s(), v = t === "error", { isOpen: y, toggle: b } = vt({
2427
+ }, _ = s(), v = t === "error", { isOpen: y, toggle: b } = bt({
2428
2428
  open: c,
2429
2429
  defaultOpen: l,
2430
2430
  onOpenChange: u,
2431
2431
  preferOpen: v
2432
- }), x = Kt(r), S = v ? null : Kt(i), C = v ? Kt(a) : null, w = !!(x || S || C || t === "running"), T = t === "done" || v ? wt(o ?? NaN) : "";
2432
+ }), x = Jt(r), S = v ? null : Jt(i), C = v ? Jt(a) : null, w = !!(x || S || C || t === "running"), T = t === "done" || v ? Et(o ?? NaN) : "";
2433
2433
  return /* @__PURE__ */ g("div", {
2434
- className: [Wt.tool, f ?? ""].filter(Boolean).join(" "),
2434
+ className: [Kt.tool, f ?? ""].filter(Boolean).join(" "),
2435
2435
  "data-state": t,
2436
2436
  ...p,
2437
- children: [/* @__PURE__ */ h(xt, {
2437
+ children: [/* @__PURE__ */ h(Ct, {
2438
2438
  open: y,
2439
2439
  onToggle: b,
2440
2440
  controls: _,
2441
2441
  disabled: !w,
2442
- glyph: /* @__PURE__ */ h(Ut, { state: t }),
2442
+ glyph: /* @__PURE__ */ h(Gt, { state: t }),
2443
2443
  label: e,
2444
2444
  meta: T || void 0,
2445
2445
  children: /* @__PURE__ */ h("span", {
2446
- className: Wt.srOnly,
2446
+ className: Kt.srOnly,
2447
2447
  children: m[t]
2448
2448
  })
2449
2449
  }), /* @__PURE__ */ g("div", {
2450
- className: Wt.card,
2450
+ className: Kt.card,
2451
2451
  children: [/* @__PURE__ */ h("p", {
2452
- className: Wt.overview,
2452
+ className: Kt.overview,
2453
2453
  children: n ?? m[t]
2454
- }), /* @__PURE__ */ g(Ct, {
2454
+ }), /* @__PURE__ */ g(Tt, {
2455
2455
  id: _,
2456
2456
  open: y && w,
2457
- className: Wt.bodyInner,
2457
+ className: Kt.bodyInner,
2458
2458
  children: [
2459
- /* @__PURE__ */ h(qt, {
2459
+ /* @__PURE__ */ h(Yt, {
2460
2460
  label: m.input,
2461
2461
  value: x
2462
2462
  }),
2463
2463
  t === "running" && !S && /* @__PURE__ */ g("div", {
2464
- className: Wt.section,
2464
+ className: Kt.section,
2465
2465
  children: [/* @__PURE__ */ h("span", {
2466
- className: Wt.sectionLabel,
2466
+ className: Kt.sectionLabel,
2467
2467
  children: m.output
2468
- }), /* @__PURE__ */ h(_t, {})]
2468
+ }), /* @__PURE__ */ h(yt, {})]
2469
2469
  }),
2470
- /* @__PURE__ */ h(qt, {
2470
+ /* @__PURE__ */ h(Yt, {
2471
2471
  label: m.output,
2472
2472
  value: S
2473
2473
  }),
2474
- /* @__PURE__ */ h(qt, {
2474
+ /* @__PURE__ */ h(Yt, {
2475
2475
  label: m.error,
2476
2476
  value: C,
2477
2477
  tone: "error"
@@ -2481,7 +2481,7 @@ function Jt({ name: e, state: t = "done", summary: n, input: r, output: i, error
2481
2481
  })]
2482
2482
  });
2483
2483
  }
2484
- var Yt = {
2484
+ var Zt = {
2485
2485
  approval: "ick-approval-zlJi",
2486
2486
  head: "ick-head-CX4j",
2487
2487
  title: "ick-title-n-wh",
@@ -2490,7 +2490,7 @@ var Yt = {
2490
2490
  actions: "ick-actions-t5Oz",
2491
2491
  deny: "ick-deny-XXyG",
2492
2492
  settled: "ick-settled-OaBX"
2493
- }, Xt = {
2493
+ }, Qt = {
2494
2494
  once: "Allow once",
2495
2495
  always: "Always allow",
2496
2496
  deny: "Deny",
@@ -2498,61 +2498,61 @@ var Yt = {
2498
2498
  allowedAlways: "Allowed from now on",
2499
2499
  wasDenied: "Denied",
2500
2500
  pending: "Waiting for you"
2501
- }, Zt = {
2501
+ }, $t = {
2502
2502
  once: "allowedOnce",
2503
2503
  always: "allowedAlways",
2504
2504
  denied: "wasDenied"
2505
2505
  };
2506
- function Qt({ title: e, description: t, children: n, decision: r = null, onDecide: i, readOnly: a = !1, labels: o, className: c, ...l }) {
2506
+ function en({ title: e, description: t, children: n, decision: r = null, onDecide: i, readOnly: a = !1, labels: o, className: c, ...l }) {
2507
2507
  let u = {
2508
- ...Xt,
2508
+ ...Qt,
2509
2509
  ...o
2510
2510
  }, d = s(), f = r !== null;
2511
2511
  return /* @__PURE__ */ g("section", {
2512
- className: [Yt.approval, c ?? ""].filter(Boolean).join(" "),
2512
+ className: [Zt.approval, c ?? ""].filter(Boolean).join(" "),
2513
2513
  "data-decision": r ?? void 0,
2514
2514
  "aria-labelledby": d,
2515
2515
  ...l,
2516
2516
  children: [
2517
2517
  /* @__PURE__ */ g("div", {
2518
- className: Yt.head,
2518
+ className: Zt.head,
2519
2519
  children: [/* @__PURE__ */ h("p", {
2520
- className: Yt.title,
2520
+ className: Zt.title,
2521
2521
  id: d,
2522
2522
  children: e
2523
2523
  }), t && /* @__PURE__ */ h("p", {
2524
- className: Yt.description,
2524
+ className: Zt.description,
2525
2525
  children: t
2526
2526
  })]
2527
2527
  }),
2528
2528
  n && /* @__PURE__ */ h("div", {
2529
- className: Yt.subject,
2529
+ className: Zt.subject,
2530
2530
  children: n
2531
2531
  }),
2532
2532
  f ? /* @__PURE__ */ g("p", {
2533
- className: Yt.settled,
2533
+ className: Zt.settled,
2534
2534
  "data-decision": r,
2535
- children: [h(r === "denied" ? he : D, {
2535
+ children: [h(r === "denied" ? ge : D, {
2536
2536
  size: 13,
2537
2537
  "aria-hidden": !0
2538
- }), u[Zt[r]]]
2538
+ }), u[$t[r]]]
2539
2539
  }) : !a && /* @__PURE__ */ g("div", {
2540
- className: Yt.actions,
2540
+ className: Zt.actions,
2541
2541
  children: [
2542
- /* @__PURE__ */ h(V, {
2542
+ /* @__PURE__ */ h(B, {
2543
2543
  variant: "ghost",
2544
2544
  size: "m",
2545
- className: Yt.deny,
2545
+ className: Zt.deny,
2546
2546
  onClick: () => i?.("denied"),
2547
2547
  children: u.deny
2548
2548
  }),
2549
- /* @__PURE__ */ h(V, {
2549
+ /* @__PURE__ */ h(B, {
2550
2550
  variant: "outline",
2551
2551
  size: "m",
2552
2552
  onClick: () => i?.("always"),
2553
2553
  children: u.always
2554
2554
  }),
2555
- /* @__PURE__ */ h(V, {
2555
+ /* @__PURE__ */ h(B, {
2556
2556
  variant: "primary",
2557
2557
  size: "m",
2558
2558
  onClick: () => i?.("once"),
@@ -2563,7 +2563,7 @@ function Qt({ title: e, description: t, children: n, decision: r = null, onDecid
2563
2563
  ]
2564
2564
  });
2565
2565
  }
2566
- var $t = {
2566
+ var tn = {
2567
2567
  tasks: "ick-tasks-2ToX",
2568
2568
  list: "ick-list-D8wS",
2569
2569
  item: "ick-item-QsIm",
@@ -2571,43 +2571,43 @@ var $t = {
2571
2571
  label: "ick-label--3zU",
2572
2572
  detail: "ick-detail-nGX0",
2573
2573
  srOnly: "ick-srOnly-ZdRo"
2574
- }, en = {
2574
+ }, nn = {
2575
2575
  pending: "Queued",
2576
2576
  running: "In progress",
2577
2577
  done: "Done",
2578
2578
  error: "Failed",
2579
2579
  progress: "{done} of {total}"
2580
2580
  };
2581
- function tn({ tasks: e, title: t, collapsible: n = !1, open: r, defaultOpen: i, onOpenChange: a, labels: o, className: c, ...l }) {
2581
+ function rn({ tasks: e, title: t, collapsible: n = !1, open: r, defaultOpen: i, onOpenChange: a, labels: o, className: c, ...l }) {
2582
2582
  let u = {
2583
- ...en,
2583
+ ...nn,
2584
2584
  ...o
2585
- }, d = s(), f = K(), p = e.filter((e) => (e.state ?? "pending") === "done").length, m = vt({
2585
+ }, d = s(), f = G(), p = e.filter((e) => (e.state ?? "pending") === "done").length, m = bt({
2586
2586
  open: r,
2587
2587
  defaultOpen: i,
2588
2588
  onOpenChange: a,
2589
2589
  preferOpen: !(e.length > 0 && p === e.length)
2590
2590
  }), v = !n || m.isOpen, y = u.progress.replace("{done}", String(p)).replace("{total}", String(e.length));
2591
2591
  return /* @__PURE__ */ g("section", {
2592
- className: [$t.tasks, c ?? ""].filter(Boolean).join(" "),
2592
+ className: [tn.tasks, c ?? ""].filter(Boolean).join(" "),
2593
2593
  ...l,
2594
- children: [t && /* @__PURE__ */ h(xt, {
2594
+ children: [t && /* @__PURE__ */ h(Ct, {
2595
2595
  open: v,
2596
2596
  onToggle: n ? m.toggle : void 0,
2597
2597
  controls: d,
2598
2598
  label: t,
2599
2599
  meta: y
2600
- }), /* @__PURE__ */ h(Ct, {
2600
+ }), /* @__PURE__ */ h(Tt, {
2601
2601
  id: d,
2602
2602
  open: v,
2603
2603
  children: /* @__PURE__ */ h("ol", {
2604
- className: $t.list,
2604
+ className: tn.list,
2605
2605
  children: /* @__PURE__ */ h(_, {
2606
2606
  initial: !1,
2607
2607
  children: e.map((e) => {
2608
2608
  let t = e.state ?? "pending";
2609
2609
  return /* @__PURE__ */ g(x.li, {
2610
- className: $t.item,
2610
+ className: tn.item,
2611
2611
  "data-state": t,
2612
2612
  "aria-current": t === "running" ? "step" : void 0,
2613
2613
  initial: f ? { opacity: 0 } : {
@@ -2623,19 +2623,19 @@ function tn({ tasks: e, title: t, collapsible: n = !1, open: r, defaultOpen: i,
2623
2623
  y: -4
2624
2624
  },
2625
2625
  transition: { duration: f ? .12 : .2 },
2626
- children: [/* @__PURE__ */ h(Ut, { state: t }), /* @__PURE__ */ g("span", {
2627
- className: $t.body,
2626
+ children: [/* @__PURE__ */ h(Gt, { state: t }), /* @__PURE__ */ g("span", {
2627
+ className: tn.body,
2628
2628
  children: [
2629
2629
  /* @__PURE__ */ h("span", {
2630
- className: $t.label,
2630
+ className: tn.label,
2631
2631
  children: e.label
2632
2632
  }),
2633
2633
  /* @__PURE__ */ h("span", {
2634
- className: $t.srOnly,
2634
+ className: tn.srOnly,
2635
2635
  children: u[t]
2636
2636
  }),
2637
2637
  e.detail && /* @__PURE__ */ h("span", {
2638
- className: $t.detail,
2638
+ className: tn.detail,
2639
2639
  children: e.detail
2640
2640
  })
2641
2641
  ]
@@ -2647,7 +2647,7 @@ function tn({ tasks: e, title: t, collapsible: n = !1, open: r, defaultOpen: i,
2647
2647
  })]
2648
2648
  });
2649
2649
  }
2650
- var nn = {
2650
+ var an = {
2651
2651
  chain: "ick-chain-NGeh",
2652
2652
  list: "ick-list-B2Pj",
2653
2653
  step: "ick-step--tPX",
@@ -2655,46 +2655,46 @@ var nn = {
2655
2655
  body: "ick-body-kZu-",
2656
2656
  stepLabel: "ick-stepLabel-Hl78",
2657
2657
  working: "ick-working-MbDs"
2658
- }, rn = {
2658
+ }, on = {
2659
2659
  through: "Thought through",
2660
2660
  step: "step",
2661
2661
  steps: "steps",
2662
2662
  thinking: "Thinking"
2663
2663
  };
2664
- function an({ steps: e, state: t = "done", duration: n, open: r, defaultOpen: i, onOpenChange: a, labels: o, className: c, ...l }) {
2664
+ function sn({ steps: e, state: t = "done", duration: n, open: r, defaultOpen: i, onOpenChange: a, labels: o, className: c, ...l }) {
2665
2665
  let u = {
2666
- ...rn,
2666
+ ...on,
2667
2667
  ...o
2668
- }, d = s(), f = K(), p = t === "thinking", { isOpen: m, toggle: v } = vt({
2668
+ }, d = s(), f = G(), p = t === "thinking", { isOpen: m, toggle: v } = bt({
2669
2669
  open: r,
2670
2670
  defaultOpen: i,
2671
2671
  onOpenChange: a,
2672
2672
  preferOpen: p
2673
- }), y = p ? e.find((e) => (e.state ?? "done") === "running") ?? e[e.length - 1] : void 0, b = p ? "" : wt(n ?? NaN), S = `${u.through} ${e.length} ${e.length === 1 ? u.step : u.steps}`;
2673
+ }), y = p ? e.find((e) => (e.state ?? "done") === "running") ?? e[e.length - 1] : void 0, b = p ? "" : Et(n ?? NaN), S = `${u.through} ${e.length} ${e.length === 1 ? u.step : u.steps}`;
2674
2674
  return /* @__PURE__ */ g("section", {
2675
- className: [nn.chain, c ?? ""].filter(Boolean).join(" "),
2675
+ className: [an.chain, c ?? ""].filter(Boolean).join(" "),
2676
2676
  "data-state": t,
2677
2677
  ...l,
2678
- children: [/* @__PURE__ */ h(xt, {
2678
+ children: [/* @__PURE__ */ h(Ct, {
2679
2679
  fit: "inline",
2680
2680
  open: m,
2681
2681
  onToggle: v,
2682
2682
  controls: d,
2683
- glyph: /* @__PURE__ */ h(Ut, { state: p ? "running" : "done" }),
2683
+ glyph: /* @__PURE__ */ h(Gt, { state: p ? "running" : "done" }),
2684
2684
  label: p ? y?.label ?? u.thinking : S,
2685
2685
  pending: p,
2686
2686
  meta: b || void 0
2687
- }), /* @__PURE__ */ h(Ct, {
2687
+ }), /* @__PURE__ */ h(Tt, {
2688
2688
  id: d,
2689
2689
  open: m && e.length > 0,
2690
2690
  children: /* @__PURE__ */ h("ol", {
2691
- className: nn.list,
2691
+ className: an.list,
2692
2692
  children: /* @__PURE__ */ h(_, {
2693
2693
  initial: !1,
2694
2694
  children: e.map((e) => {
2695
2695
  let t = e.state ?? "done";
2696
2696
  return /* @__PURE__ */ g(x.li, {
2697
- className: nn.step,
2697
+ className: an.step,
2698
2698
  "data-state": t,
2699
2699
  "aria-current": t === "running" ? "step" : void 0,
2700
2700
  initial: f ? { opacity: 0 } : {
@@ -2711,16 +2711,16 @@ function an({ steps: e, state: t = "done", duration: n, open: r, defaultOpen: i,
2711
2711
  },
2712
2712
  transition: { duration: f ? .12 : .2 },
2713
2713
  children: [/* @__PURE__ */ h("span", {
2714
- className: nn.rail,
2714
+ className: an.rail,
2715
2715
  "aria-hidden": !0,
2716
- children: /* @__PURE__ */ h(Ut, { state: t })
2716
+ children: /* @__PURE__ */ h(Gt, { state: t })
2717
2717
  }), /* @__PURE__ */ g("span", {
2718
- className: nn.body,
2718
+ className: an.body,
2719
2719
  children: [/* @__PURE__ */ h("span", {
2720
- className: nn.stepLabel,
2720
+ className: an.stepLabel,
2721
2721
  children: e.label
2722
2722
  }), e.body && /* @__PURE__ */ h("span", {
2723
- className: nn.working,
2723
+ className: an.working,
2724
2724
  children: e.body
2725
2725
  })]
2726
2726
  })]
@@ -2731,7 +2731,7 @@ function an({ steps: e, state: t = "done", duration: n, open: r, defaultOpen: i,
2731
2731
  })]
2732
2732
  });
2733
2733
  }
2734
- var on = {
2734
+ var cn = {
2735
2735
  sources: "ick-sources-w6ma",
2736
2736
  list: "ick-list-UdKr",
2737
2737
  item: "ick-item-zBLs",
@@ -2741,63 +2741,63 @@ var on = {
2741
2741
  name: "ick-name-1IlF",
2742
2742
  origin: "ick-origin-3C2I",
2743
2743
  quote: "ick-quote-wat-"
2744
- }, sn = {
2744
+ }, ln = {
2745
2745
  title: "Sources",
2746
2746
  one: "source",
2747
2747
  many: "sources"
2748
2748
  };
2749
- function cn({ sources: e, title: t, collapsible: n = !1, activeId: r = null, onSelect: i, open: a, defaultOpen: o, onOpenChange: c, labels: l, className: u, ...d }) {
2749
+ function un({ sources: e, title: t, collapsible: n = !1, activeId: r = null, onSelect: i, open: a, defaultOpen: o, onOpenChange: c, labels: l, className: u, ...d }) {
2750
2750
  let f = {
2751
- ...sn,
2751
+ ...ln,
2752
2752
  ...l
2753
- }, p = s(), _ = vt({
2753
+ }, p = s(), _ = bt({
2754
2754
  open: a,
2755
2755
  defaultOpen: o,
2756
2756
  onOpenChange: c,
2757
2757
  preferOpen: !0
2758
2758
  }), v = !n || _.isOpen, y = `${e.length} ${e.length === 1 ? f.one : f.many}`;
2759
2759
  return /* @__PURE__ */ g("section", {
2760
- className: [on.sources, u ?? ""].filter(Boolean).join(" "),
2760
+ className: [cn.sources, u ?? ""].filter(Boolean).join(" "),
2761
2761
  ...d,
2762
- children: [/* @__PURE__ */ h(xt, {
2762
+ children: [/* @__PURE__ */ h(Ct, {
2763
2763
  open: v,
2764
2764
  onToggle: n ? _.toggle : void 0,
2765
2765
  controls: p,
2766
2766
  label: t ?? f.title,
2767
2767
  meta: y
2768
- }), /* @__PURE__ */ h(Ct, {
2768
+ }), /* @__PURE__ */ h(Tt, {
2769
2769
  id: p,
2770
2770
  open: v && e.length > 0,
2771
2771
  children: /* @__PURE__ */ h("ol", {
2772
- className: on.list,
2772
+ className: cn.list,
2773
2773
  children: e.map((e, t) => {
2774
2774
  let n = t + 1, a = e.id === r, o = /* @__PURE__ */ g(m, { children: [/* @__PURE__ */ h("span", {
2775
- className: on.number,
2775
+ className: cn.number,
2776
2776
  "data-active": a || void 0,
2777
2777
  children: n
2778
2778
  }), /* @__PURE__ */ g("span", {
2779
- className: on.body,
2779
+ className: cn.body,
2780
2780
  children: [
2781
2781
  /* @__PURE__ */ h("span", {
2782
- className: on.name,
2782
+ className: cn.name,
2783
2783
  children: e.title
2784
2784
  }),
2785
2785
  e.origin && /* @__PURE__ */ h("span", {
2786
- className: on.origin,
2786
+ className: cn.origin,
2787
2787
  children: e.origin
2788
2788
  }),
2789
2789
  e.quote && /* @__PURE__ */ h("span", {
2790
- className: on.quote,
2790
+ className: cn.quote,
2791
2791
  children: e.quote
2792
2792
  })
2793
2793
  ]
2794
2794
  })] });
2795
2795
  return /* @__PURE__ */ h("li", {
2796
- className: on.item,
2796
+ className: cn.item,
2797
2797
  "data-active": a || void 0,
2798
2798
  id: `${p}-${e.id}`,
2799
2799
  children: e.url ? /* @__PURE__ */ h("a", {
2800
- className: on.entry,
2800
+ className: cn.entry,
2801
2801
  href: e.url,
2802
2802
  target: "_blank",
2803
2803
  rel: "noreferrer noopener",
@@ -2805,7 +2805,7 @@ function cn({ sources: e, title: t, collapsible: n = !1, activeId: r = null, onS
2805
2805
  onPointerDown: (e) => e.stopPropagation(),
2806
2806
  children: o
2807
2807
  }) : /* @__PURE__ */ h("div", {
2808
- className: on.entry,
2808
+ className: cn.entry,
2809
2809
  children: o
2810
2810
  })
2811
2811
  }, e.id);
@@ -2814,13 +2814,13 @@ function cn({ sources: e, title: t, collapsible: n = !1, activeId: r = null, onS
2814
2814
  })]
2815
2815
  });
2816
2816
  }
2817
- var ln = { chip: "ick-chip-FJNL" };
2817
+ var dn = { chip: "ick-chip-FJNL" };
2818
2818
  //#endregion
2819
2819
  //#region src/Chip/Chip.tsx
2820
- function un({ children: e, className: t }) {
2821
- let n = K();
2820
+ function fn({ children: e, className: t }) {
2821
+ let n = G();
2822
2822
  return /* @__PURE__ */ h(x.span, {
2823
- className: [ln.chip, t ?? ""].filter(Boolean).join(" "),
2823
+ className: [dn.chip, t ?? ""].filter(Boolean).join(" "),
2824
2824
  initial: n ? { opacity: 0 } : {
2825
2825
  opacity: 0,
2826
2826
  scale: .85
@@ -2837,7 +2837,7 @@ function un({ children: e, className: t }) {
2837
2837
  children: e
2838
2838
  });
2839
2839
  }
2840
- var Z = {
2840
+ var X = {
2841
2841
  item: "ick-item--4E-",
2842
2842
  upcoming: "ick-upcoming-Z--p",
2843
2843
  upcomingLabel: "ick-upcomingLabel-KOoC",
@@ -2865,59 +2865,59 @@ var Z = {
2865
2865
  fieldLabel: "ick-fieldLabel--DkK",
2866
2866
  fieldInput: "ick-fieldInput-Er9C",
2867
2867
  shellCard: "ick-shellCard-pBK9"
2868
- }, dn = n(function({ children: e, selected: t, onCard: n, className: r, ...i }, a) {
2868
+ }, pn = n(function({ children: e, selected: t, onCard: n, className: r, ...i }, a) {
2869
2869
  return /* @__PURE__ */ h("span", {
2870
2870
  ref: a,
2871
- className: [Z.badge, r ?? ""].filter(Boolean).join(" "),
2871
+ className: [X.badge, r ?? ""].filter(Boolean).join(" "),
2872
2872
  "aria-hidden": "true",
2873
2873
  "data-selected": t || void 0,
2874
2874
  "data-on-card": !t && n || void 0,
2875
2875
  ...i,
2876
2876
  children: e
2877
2877
  });
2878
- }), fn = n(function({ letter: e, title: t, description: n, selected: r = !1, className: i, ...a }, o) {
2879
- let s = K();
2878
+ }), mn = n(function({ letter: e, title: t, description: n, selected: r = !1, className: i, ...a }, o) {
2879
+ let s = G();
2880
2880
  return /* @__PURE__ */ g(x.button, {
2881
2881
  ref: o,
2882
2882
  type: "button",
2883
- className: [Z.option, i ?? ""].filter(Boolean).join(" "),
2883
+ className: [X.option, i ?? ""].filter(Boolean).join(" "),
2884
2884
  "data-selected": r || void 0,
2885
2885
  "aria-pressed": r,
2886
2886
  whileTap: s ? void 0 : { scale: .99 },
2887
2887
  ...a,
2888
- children: [e !== void 0 && /* @__PURE__ */ h(dn, {
2888
+ children: [e !== void 0 && /* @__PURE__ */ h(pn, {
2889
2889
  selected: r,
2890
2890
  children: e
2891
2891
  }), /* @__PURE__ */ g("span", {
2892
- className: Z.optionBody,
2892
+ className: X.optionBody,
2893
2893
  children: [/* @__PURE__ */ h("span", {
2894
- className: Z.optionTitle,
2894
+ className: X.optionTitle,
2895
2895
  children: t
2896
2896
  }), n && /* @__PURE__ */ h("span", {
2897
- className: Z.optionDescription,
2897
+ className: X.optionDescription,
2898
2898
  children: n
2899
2899
  })]
2900
2900
  })]
2901
2901
  });
2902
- }), pn = n(function({ letter: e, label: t, value: n, onChange: r, onEnter: i, className: a, id: o, onFocus: c, onBlur: l, onKeyDown: u, ...d }, p) {
2902
+ }), hn = n(function({ letter: e, label: t, value: n, onChange: r, onEnter: i, className: a, id: o, onFocus: c, onBlur: l, onKeyDown: u, ...d }, p) {
2903
2903
  let [m, _] = f(!1), v = s(), y = o ?? v;
2904
2904
  return /* @__PURE__ */ g("label", {
2905
- className: [Z.field, a ?? ""].filter(Boolean).join(" "),
2905
+ className: [X.field, a ?? ""].filter(Boolean).join(" "),
2906
2906
  "data-focused": m || void 0,
2907
2907
  htmlFor: y,
2908
- children: [e !== void 0 && /* @__PURE__ */ h(dn, {
2908
+ children: [e !== void 0 && /* @__PURE__ */ h(pn, {
2909
2909
  selected: m,
2910
2910
  children: e
2911
2911
  }), /* @__PURE__ */ g("span", {
2912
- className: Z.fieldBody,
2912
+ className: X.fieldBody,
2913
2913
  children: [/* @__PURE__ */ h("span", {
2914
- className: Z.fieldLabel,
2914
+ className: X.fieldLabel,
2915
2915
  children: t
2916
2916
  }), /* @__PURE__ */ h("input", {
2917
2917
  id: y,
2918
2918
  ref: p,
2919
2919
  type: "text",
2920
- className: Z.fieldInput,
2920
+ className: X.fieldInput,
2921
2921
  value: n,
2922
2922
  onChange: (e) => r(e.target.value),
2923
2923
  onFocus: (e) => {
@@ -2933,21 +2933,21 @@ var Z = {
2933
2933
  })]
2934
2934
  })]
2935
2935
  });
2936
- }), mn = n(function({ letter: e, value: t, placeholder: n, onChange: r, onEnter: i, className: a, onKeyDown: o, ...s }, c) {
2936
+ }), gn = n(function({ letter: e, value: t, placeholder: n, onChange: r, onEnter: i, className: a, onKeyDown: o, ...s }, c) {
2937
2937
  let l = t.trim().length > 0;
2938
2938
  return /* @__PURE__ */ g("label", {
2939
- className: [Z.option, a ?? ""].filter(Boolean).join(" "),
2939
+ className: [X.option, a ?? ""].filter(Boolean).join(" "),
2940
2940
  "data-selected": l || void 0,
2941
2941
  "data-other": "",
2942
- children: [e !== void 0 && /* @__PURE__ */ h(dn, {
2942
+ children: [e !== void 0 && /* @__PURE__ */ h(pn, {
2943
2943
  selected: l,
2944
2944
  children: e
2945
2945
  }), /* @__PURE__ */ h("span", {
2946
- className: Z.optionBody,
2946
+ className: X.optionBody,
2947
2947
  children: /* @__PURE__ */ h("input", {
2948
2948
  ref: c,
2949
2949
  type: "text",
2950
- className: Z.otherInput,
2950
+ className: X.otherInput,
2951
2951
  value: t,
2952
2952
  placeholder: n,
2953
2953
  "aria-label": n,
@@ -2959,38 +2959,38 @@ var Z = {
2959
2959
  })
2960
2960
  })]
2961
2961
  });
2962
- }), hn = n(function({ number: e, title: t, subtitle: n, children: r, footer: i, card: a = !0, className: o, ...s }, c) {
2962
+ }), _n = n(function({ number: e, title: t, subtitle: n, children: r, footer: i, card: a = !0, className: o, ...s }, c) {
2963
2963
  return /* @__PURE__ */ g("div", {
2964
2964
  ref: c,
2965
2965
  className: [
2966
- Z.active,
2967
- a ? Z.shellCard : "",
2966
+ X.active,
2967
+ a ? X.shellCard : "",
2968
2968
  o ?? ""
2969
2969
  ].filter(Boolean).join(" "),
2970
2970
  ...s,
2971
2971
  children: [
2972
2972
  /* @__PURE__ */ g("div", {
2973
- className: Z.header,
2974
- children: [e !== void 0 && /* @__PURE__ */ h(dn, {
2973
+ className: X.header,
2974
+ children: [e !== void 0 && /* @__PURE__ */ h(pn, {
2975
2975
  selected: !0,
2976
2976
  children: e
2977
2977
  }), /* @__PURE__ */ g("div", {
2978
- className: Z.headerText,
2978
+ className: X.headerText,
2979
2979
  children: [/* @__PURE__ */ h("p", {
2980
- className: Z.title,
2980
+ className: X.title,
2981
2981
  children: t
2982
2982
  }), n && /* @__PURE__ */ h("p", {
2983
- className: Z.subtitle,
2983
+ className: X.subtitle,
2984
2984
  children: n
2985
2985
  })]
2986
2986
  })]
2987
2987
  }),
2988
2988
  /* @__PURE__ */ h("div", {
2989
- className: Z.rows,
2989
+ className: X.rows,
2990
2990
  children: r
2991
2991
  }),
2992
2992
  i && /* @__PURE__ */ h("div", {
2993
- className: Z.footer,
2993
+ className: X.footer,
2994
2994
  children: i
2995
2995
  })
2996
2996
  ]
@@ -2998,7 +2998,7 @@ var Z = {
2998
2998
  });
2999
2999
  //#endregion
3000
3000
  //#region src/radiusCorrection/useCorrectedRadius.ts
3001
- function gn(e) {
3001
+ function vn(e) {
3002
3002
  let [t, n] = f(void 0);
3003
3003
  return l(() => {
3004
3004
  let t = e.current;
@@ -3009,16 +3009,16 @@ function gn(e) {
3009
3009
  }
3010
3010
  //#endregion
3011
3011
  //#region src/QuestionCard/QuestionCard.tsx
3012
- var _n = {
3012
+ var yn = {
3013
3013
  next: "Next",
3014
3014
  none: "None of these",
3015
3015
  edit: "Edit answer"
3016
- }, vn = {
3016
+ }, bn = {
3017
3017
  type: "spring",
3018
3018
  stiffness: 260,
3019
3019
  damping: 30
3020
- }, yn = (e) => String.fromCharCode(97 + e), bn = 300, xn = 380;
3021
- function Sn(e, t) {
3020
+ }, xn = (e) => String.fromCharCode(97 + e), Sn = 300, Cn = 380;
3021
+ function wn(e, t) {
3022
3022
  if (!t) return [];
3023
3023
  if (e.type === "inputs" && "values" in t) {
3024
3024
  let n = e.fields.map((e) => t.values?.[e.id]).filter(Boolean);
@@ -3036,11 +3036,11 @@ function Sn(e, t) {
3036
3036
  }
3037
3037
  return [];
3038
3038
  }
3039
- function Cn({ question: e, number: t, answer: n, onCommit: r, labels: i }) {
3039
+ function Tn({ question: e, number: t, answer: n, onCommit: r, labels: i }) {
3040
3040
  let [a, s] = f(() => n && "values" in n ? { ...n.values } : {}), [c, l] = f(() => n && "optionIds" in n ? [...n.optionIds ?? []] : []), [p, m] = f(() => n && "optionIds" in n ? n.other ?? "" : ""), [_, v] = f(n && "optionId" in n ? n.optionId : null), y = d(null), b = u(() => e.type === "inputs" ? e.fields.map(() => ({ current: null })) : [], [e]);
3041
3041
  o(() => {
3042
3042
  if (e.type !== "inputs") return;
3043
- let t = setTimeout(() => y.current?.focus({ preventScroll: !0 }), K() ? 0 : xn);
3043
+ let t = setTimeout(() => y.current?.focus({ preventScroll: !0 }), G() ? 0 : Cn);
3044
3044
  return () => clearTimeout(t);
3045
3045
  }, [e.type]);
3046
3046
  let x = u(() => e.type !== "inputs" || e.fields.every((e) => e.optional || (a[e.id] ?? "").trim()), [e, a]), S = {
@@ -3051,17 +3051,17 @@ function Cn({ question: e, number: t, answer: n, onCommit: r, labels: i }) {
3051
3051
  };
3052
3052
  if (e.type === "inputs") {
3053
3053
  let t = () => x && r?.({ values: a });
3054
- return /* @__PURE__ */ h(hn, {
3054
+ return /* @__PURE__ */ h(_n, {
3055
3055
  ...S,
3056
- footer: /* @__PURE__ */ h(V, {
3056
+ footer: /* @__PURE__ */ h(B, {
3057
3057
  variant: "secondary",
3058
3058
  size: "m",
3059
3059
  disabled: !x,
3060
3060
  onClick: t,
3061
3061
  children: i.next
3062
3062
  }),
3063
- children: e.fields.map((e, n) => /* @__PURE__ */ h(pn, {
3064
- letter: yn(n),
3063
+ children: e.fields.map((e, n) => /* @__PURE__ */ h(hn, {
3064
+ letter: xn(n),
3065
3065
  label: e.label,
3066
3066
  placeholder: e.placeholder,
3067
3067
  value: a[e.id] ?? "",
@@ -3077,15 +3077,15 @@ function Cn({ question: e, number: t, answer: n, onCommit: r, labels: i }) {
3077
3077
  }, e.id))
3078
3078
  });
3079
3079
  }
3080
- if (e.type === "single") return /* @__PURE__ */ h(hn, {
3080
+ if (e.type === "single") return /* @__PURE__ */ h(_n, {
3081
3081
  ...S,
3082
- children: e.options.map((e, t) => /* @__PURE__ */ h(fn, {
3083
- letter: yn(t),
3082
+ children: e.options.map((e, t) => /* @__PURE__ */ h(mn, {
3083
+ letter: xn(t),
3084
3084
  title: e.title,
3085
3085
  description: e.description,
3086
3086
  selected: _ === e.id,
3087
3087
  onClick: () => {
3088
- v(e.id), setTimeout(() => r?.({ optionId: e.id }), bn);
3088
+ v(e.id), setTimeout(() => r?.({ optionId: e.id }), Sn);
3089
3089
  }
3090
3090
  }, e.id))
3091
3091
  });
@@ -3095,23 +3095,23 @@ function Cn({ question: e, number: t, answer: n, onCommit: r, labels: i }) {
3095
3095
  ...C ? { other: C } : {}
3096
3096
  });
3097
3097
  };
3098
- return /* @__PURE__ */ g(hn, {
3098
+ return /* @__PURE__ */ g(_n, {
3099
3099
  ...S,
3100
- footer: /* @__PURE__ */ h(V, {
3100
+ footer: /* @__PURE__ */ h(B, {
3101
3101
  variant: "secondary",
3102
3102
  size: "m",
3103
3103
  disabled: !e.allowEmpty && w,
3104
3104
  onClick: T,
3105
3105
  children: e.allowEmpty && w ? i.none : i.next
3106
3106
  }),
3107
- children: [e.options.map((e, t) => /* @__PURE__ */ h(fn, {
3108
- letter: yn(t),
3107
+ children: [e.options.map((e, t) => /* @__PURE__ */ h(mn, {
3108
+ letter: xn(t),
3109
3109
  title: e.title,
3110
3110
  description: e.description,
3111
3111
  selected: c.includes(e.id),
3112
3112
  onClick: () => l((t) => t.includes(e.id) ? t.filter((t) => t !== e.id) : [...t, e.id])
3113
- }, e.id)), e.allowOther && /* @__PURE__ */ h(mn, {
3114
- letter: yn(e.options.length),
3113
+ }, e.id)), e.allowOther && /* @__PURE__ */ h(gn, {
3114
+ letter: xn(e.options.length),
3115
3115
  value: p,
3116
3116
  placeholder: e.otherPlaceholder ?? "Something else",
3117
3117
  onChange: m,
@@ -3119,12 +3119,12 @@ function Cn({ question: e, number: t, answer: n, onCommit: r, labels: i }) {
3119
3119
  })]
3120
3120
  });
3121
3121
  }
3122
- function wn({ question: e, number: t, state: n, answer: r, onCommit: i, onEdit: a, readOnly: o = !1, labels: s }) {
3122
+ function En({ question: e, number: t, state: n, answer: r, onCommit: i, onEdit: a, readOnly: o = !1, labels: s }) {
3123
3123
  let c = {
3124
- ..._n,
3124
+ ...yn,
3125
3125
  ...s
3126
- }, l = n !== "upcoming", u = K(), f = d(null), p = gn(f), v;
3127
- if (n === "active") v = /* @__PURE__ */ h(Cn, {
3126
+ }, l = n !== "upcoming", u = G(), f = d(null), p = vn(f), v;
3127
+ if (n === "active") v = /* @__PURE__ */ h(Tn, {
3128
3128
  question: e,
3129
3129
  number: t,
3130
3130
  answer: r,
@@ -3132,37 +3132,37 @@ function wn({ question: e, number: t, state: n, answer: r, onCommit: i, onEdit:
3132
3132
  labels: c
3133
3133
  });
3134
3134
  else if (n === "collapsed") {
3135
- let n = Sn(e, r), i = /* @__PURE__ */ g(m, { children: [/* @__PURE__ */ g("span", {
3136
- className: Z.collapsedLabel,
3137
- children: [/* @__PURE__ */ h(dn, {
3135
+ let n = wn(e, r), i = /* @__PURE__ */ g(m, { children: [/* @__PURE__ */ g("span", {
3136
+ className: X.collapsedLabel,
3137
+ children: [/* @__PURE__ */ h(pn, {
3138
3138
  onCard: !0,
3139
3139
  children: t
3140
3140
  }), /* @__PURE__ */ h("span", {
3141
- className: Z.collapsedTitle,
3141
+ className: X.collapsedTitle,
3142
3142
  children: e.shortTitle
3143
3143
  })]
3144
3144
  }), /* @__PURE__ */ g("span", {
3145
- className: Z.collapsedAnswer,
3146
- children: [n.map((e, t) => /* @__PURE__ */ h(un, { children: e }, `${e}-${t}`)), !o && /* @__PURE__ */ h(ce, {
3147
- className: Z.pencil,
3145
+ className: X.collapsedAnswer,
3146
+ children: [n.map((e, t) => /* @__PURE__ */ h(fn, { children: e }, `${e}-${t}`)), !o && /* @__PURE__ */ h(le, {
3147
+ className: X.pencil,
3148
3148
  size: 14,
3149
3149
  "aria-hidden": !0
3150
3150
  })]
3151
3151
  })] });
3152
3152
  v = o ? /* @__PURE__ */ h("div", {
3153
- className: `${Z.collapsed} ${Z.static}`,
3153
+ className: `${X.collapsed} ${X.static}`,
3154
3154
  children: i
3155
3155
  }) : /* @__PURE__ */ h("button", {
3156
3156
  type: "button",
3157
- className: Z.collapsed,
3157
+ className: X.collapsed,
3158
3158
  onClick: a,
3159
3159
  "aria-label": `${c.edit}: ${e.shortTitle}`,
3160
3160
  children: i
3161
3161
  });
3162
3162
  } else v = /* @__PURE__ */ g("div", {
3163
- className: Z.upcoming,
3164
- children: [/* @__PURE__ */ h(dn, { children: t }), /* @__PURE__ */ h("span", {
3165
- className: Z.upcomingLabel,
3163
+ className: X.upcoming,
3164
+ children: [/* @__PURE__ */ h(pn, { children: t }), /* @__PURE__ */ h("span", {
3165
+ className: X.upcomingLabel,
3166
3166
  children: e.shortTitle
3167
3167
  })]
3168
3168
  });
@@ -3170,9 +3170,9 @@ function wn({ question: e, number: t, state: n, answer: r, onCommit: i, onEdit:
3170
3170
  ref: f,
3171
3171
  layout: !u,
3172
3172
  "data-active": n === "active" || void 0,
3173
- className: Z.item,
3173
+ className: X.item,
3174
3174
  "data-card": l || void 0,
3175
- transition: { layout: vn },
3175
+ transition: { layout: bn },
3176
3176
  style: { borderRadius: p },
3177
3177
  children: /* @__PURE__ */ h(_, {
3178
3178
  mode: "popLayout",
@@ -3196,7 +3196,7 @@ function wn({ question: e, number: t, state: n, answer: r, onCommit: i, onEdit:
3196
3196
  })
3197
3197
  });
3198
3198
  }
3199
- var Tn = {
3199
+ var Dn = {
3200
3200
  group: "ick-group-pPcU",
3201
3201
  body: "ick-body-lHD3",
3202
3202
  list: "ick-list-7cp2",
@@ -3204,7 +3204,7 @@ var Tn = {
3204
3204
  summary: "ick-summary-eb2t",
3205
3205
  count: "ick-count-eHDc",
3206
3206
  summaryList: "ick-summaryList-2sOL"
3207
- }, En = 3, Dn = {
3207
+ }, On = 3, kn = {
3208
3208
  visualDuration: .34,
3209
3209
  bounce: .1,
3210
3210
  rowDuration: .3,
@@ -3214,13 +3214,13 @@ var Tn = {
3214
3214
  fadeIn: .16,
3215
3215
  fadeOut: .08,
3216
3216
  fadeInDelay: .08
3217
- }, On = { answers: "answers" };
3218
- function kn({ id: e, title: t, questions: n, answers: r, activeIndex: i = null, collapsible: a = !1, onCommit: o, onEdit: c, readOnly: l = !1, labels: u, foldMotion: p, className: m }) {
3219
- let [y, b] = f(!1), [S, C] = f(!1), w = s(), T = d(null), E = gn(T), D = {
3220
- ...On,
3217
+ }, An = { answers: "answers" };
3218
+ function jn({ id: e, title: t, questions: n, answers: r, activeIndex: i = null, collapsible: a = !1, onCommit: o, onEdit: c, readOnly: l = !1, labels: u, foldMotion: p, className: m }) {
3219
+ let [y, b] = f(!1), [S, C] = f(!1), w = s(), T = d(null), E = vn(T), D = {
3220
+ ...An,
3221
3221
  ...u
3222
- }, O = K(), k = a && !y, A = n.map((e) => e.shortTitle).join(" · "), j = {
3223
- ...Dn,
3222
+ }, O = G(), k = a && !y, A = n.map((e) => e.shortTitle).join(" · "), j = {
3223
+ ...kn,
3224
3224
  ...p
3225
3225
  }, M = O ? { duration: 0 } : {
3226
3226
  type: "spring",
@@ -3264,13 +3264,13 @@ function kn({ id: e, title: t, questions: n, answers: r, activeIndex: i = null,
3264
3264
  ref: T,
3265
3265
  layout: !O,
3266
3266
  transition: M,
3267
- className: [Tn.group, m ?? ""].filter(Boolean).join(" "),
3267
+ className: [Dn.group, m ?? ""].filter(Boolean).join(" "),
3268
3268
  "data-moving": S || void 0,
3269
3269
  style: { borderRadius: E },
3270
3270
  children: [(t || a) && /* @__PURE__ */ h(x.div, {
3271
3271
  layout: !O && "position",
3272
3272
  transition: M,
3273
- children: /* @__PURE__ */ h(xt, {
3273
+ children: /* @__PURE__ */ h(Ct, {
3274
3274
  open: !k,
3275
3275
  onToggle: a ? () => {
3276
3276
  C(!0), b((e) => !e);
@@ -3282,7 +3282,7 @@ function kn({ id: e, title: t, questions: n, answers: r, activeIndex: i = null,
3282
3282
  id: w,
3283
3283
  layout: !O && "position",
3284
3284
  transition: M,
3285
- className: Tn.body,
3285
+ className: Dn.body,
3286
3286
  children: /* @__PURE__ */ h(_, {
3287
3287
  initial: !1,
3288
3288
  mode: "popLayout",
@@ -3290,26 +3290,26 @@ function kn({ id: e, title: t, questions: n, answers: r, activeIndex: i = null,
3290
3290
  ...F,
3291
3291
  children: /* @__PURE__ */ g(x.div, {
3292
3292
  variants: ee,
3293
- className: Tn.summary,
3293
+ className: Dn.summary,
3294
3294
  children: [/* @__PURE__ */ g("span", {
3295
- className: Tn.count,
3295
+ className: Dn.count,
3296
3296
  children: [
3297
3297
  n.length,
3298
3298
  " ",
3299
3299
  D.answers
3300
3300
  ]
3301
3301
  }), /* @__PURE__ */ h("span", {
3302
- className: Tn.summaryList,
3302
+ className: Dn.summaryList,
3303
3303
  children: A
3304
3304
  })]
3305
3305
  })
3306
3306
  }, "summary") : /* @__PURE__ */ h(x.div, {
3307
- className: Tn.list,
3307
+ className: Dn.list,
3308
3308
  ...F,
3309
3309
  children: n.map((e, t) => /* @__PURE__ */ h(x.div, {
3310
3310
  variants: ee,
3311
- className: Tn.row,
3312
- children: /* @__PURE__ */ h(wn, {
3311
+ className: Dn.row,
3312
+ children: /* @__PURE__ */ h(En, {
3313
3313
  question: e,
3314
3314
  number: t + 1,
3315
3315
  state: t === i ? "active" : r[e.id] ? "collapsed" : "upcoming",
@@ -3325,18 +3325,18 @@ function kn({ id: e, title: t, questions: n, answers: r, activeIndex: i = null,
3325
3325
  })
3326
3326
  });
3327
3327
  }
3328
- var An = { message: "ick-message-wTar" };
3328
+ var Mn = { message: "ick-message-wTar" };
3329
3329
  //#endregion
3330
3330
  //#region src/SystemMessage/SystemMessage.tsx
3331
- function jn({ children: e, tone: t = "notice", className: n, ...r }) {
3331
+ function Nn({ children: e, tone: t = "notice", className: n, ...r }) {
3332
3332
  return /* @__PURE__ */ h("div", {
3333
- className: [An.message, n ?? ""].filter(Boolean).join(" "),
3333
+ className: [Mn.message, n ?? ""].filter(Boolean).join(" "),
3334
3334
  "data-tone": t,
3335
3335
  ...r,
3336
3336
  children: e
3337
3337
  });
3338
3338
  }
3339
- var Mn = {
3339
+ var Pn = {
3340
3340
  artifact: "ick-artifact-rz53",
3341
3341
  card: "ick-card-iGYJ",
3342
3342
  head: "ick-head-XVNm",
@@ -3346,38 +3346,38 @@ var Mn = {
3346
3346
  preview: "ick-preview-jRni",
3347
3347
  text: "ick-text-uJx8",
3348
3348
  waiting: "ick-waiting-ADQs"
3349
- }, Nn = 8;
3350
- function Pn(e, t) {
3349
+ }, Fn = 8;
3350
+ function In(e, t) {
3351
3351
  let n = e.split("\n");
3352
3352
  return {
3353
3353
  shown: n.slice(0, t).join("\n"),
3354
3354
  more: n.length > t
3355
3355
  };
3356
3356
  }
3357
- function Fn({ id: e, title: t, meta: n, kind: r = "code", lang: i, content: a, state: o = "done", lines: s = Nn, onOpen: c, open: l, className: u, ...d }) {
3358
- let f = o === "writing", p = a ? Pn(a, s) : null, _ = /* @__PURE__ */ h("div", {
3359
- className: Mn.preview,
3357
+ function Ln({ id: e, title: t, meta: n, kind: r = "code", lang: i, content: a, state: o = "done", lines: s = Fn, onOpen: c, open: l, className: u, ...d }) {
3358
+ let f = o === "writing", p = a ? In(a, s) : null, _ = /* @__PURE__ */ h("div", {
3359
+ className: Pn.preview,
3360
3360
  "data-more": p?.more || void 0,
3361
3361
  "aria-hidden": !0,
3362
3362
  children: p === null ? /* @__PURE__ */ h("div", {
3363
- className: Mn.waiting,
3364
- children: /* @__PURE__ */ h(_t, {})
3365
- }) : r === "code" ? /* @__PURE__ */ h(Vt, {
3363
+ className: Pn.waiting,
3364
+ children: /* @__PURE__ */ h(yt, {})
3365
+ }) : r === "code" ? /* @__PURE__ */ h(Ut, {
3366
3366
  code: p.shown,
3367
3367
  lang: i,
3368
3368
  label: !1,
3369
3369
  copyable: !1
3370
3370
  }) : /* @__PURE__ */ h("p", {
3371
- className: Mn.text,
3371
+ className: Pn.text,
3372
3372
  children: p.shown
3373
3373
  })
3374
- }), v = /* @__PURE__ */ g(m, { children: [/* @__PURE__ */ h(In, {
3374
+ }), v = /* @__PURE__ */ g(m, { children: [/* @__PURE__ */ h(Rn, {
3375
3375
  title: t,
3376
3376
  meta: n,
3377
3377
  writing: f
3378
- }), _] }), y = { className: Mn.card };
3378
+ }), _] }), y = { className: Pn.card };
3379
3379
  return /* @__PURE__ */ h("div", {
3380
- className: [Mn.artifact, u ?? ""].filter(Boolean).join(" "),
3380
+ className: [Pn.artifact, u ?? ""].filter(Boolean).join(" "),
3381
3381
  "data-state": o,
3382
3382
  "data-open": l || void 0,
3383
3383
  ...d,
@@ -3392,36 +3392,36 @@ function Fn({ id: e, title: t, meta: n, kind: r = "code", lang: i, content: a, s
3392
3392
  })
3393
3393
  });
3394
3394
  }
3395
- function In({ title: e, meta: t, writing: n }) {
3395
+ function Rn({ title: e, meta: t, writing: n }) {
3396
3396
  return /* @__PURE__ */ g("span", {
3397
- className: Mn.head,
3397
+ className: Pn.head,
3398
3398
  children: [/* @__PURE__ */ h("span", {
3399
- className: Mn.title,
3399
+ className: Pn.title,
3400
3400
  "data-writing": n || void 0,
3401
3401
  children: e
3402
3402
  }), t && /* @__PURE__ */ h("span", {
3403
- className: Mn.meta,
3403
+ className: Pn.meta,
3404
3404
  children: t
3405
3405
  })]
3406
3406
  });
3407
3407
  }
3408
3408
  //#endregion
3409
3409
  //#region src/markdown/parse.ts
3410
- var Ln = "\\`*_{}[]()#+-.!>~|", Rn = (e) => e === void 0 || /\s/.test(e);
3411
- function zn(e, t, n, r) {
3410
+ var zn = "\\`*_{}[]()#+-.!>~|", Bn = (e) => e === void 0 || /\s/.test(e);
3411
+ function Vn(e, t, n, r) {
3412
3412
  let i = e[t + n];
3413
- return !(Rn(i) || r === "_" && /[\w]/.test(e[t - 1] ?? ""));
3413
+ return !(Bn(i) || r === "_" && /[\w]/.test(e[t - 1] ?? ""));
3414
3414
  }
3415
- function Bn(e, t, n, r) {
3415
+ function Hn(e, t, n, r) {
3416
3416
  let i = e[t - 1];
3417
- return !(Rn(i) || r === "_" && /[\w]/.test(e[t + n] ?? ""));
3417
+ return !(Bn(i) || r === "_" && /[\w]/.test(e[t + n] ?? ""));
3418
3418
  }
3419
- function Vn(e, t, n) {
3419
+ function Un(e, t, n) {
3420
3420
  let r = 0;
3421
3421
  for (; e[t + r] === n;) r++;
3422
3422
  return r;
3423
3423
  }
3424
- function Hn(e, t) {
3424
+ function Wn(e, t) {
3425
3425
  let n = 0;
3426
3426
  for (let r = t; r < e.length; r++) {
3427
3427
  let t = e[r];
@@ -3430,7 +3430,7 @@ function Hn(e, t) {
3430
3430
  continue;
3431
3431
  }
3432
3432
  if (t === "`") {
3433
- let t = Vn(e, r, "`"), n = e.indexOf("`".repeat(t), r + t);
3433
+ let t = Un(e, r, "`"), n = e.indexOf("`".repeat(t), r + t);
3434
3434
  r = n === -1 ? e.length : n + t - 1;
3435
3435
  continue;
3436
3436
  }
@@ -3439,7 +3439,7 @@ function Hn(e, t) {
3439
3439
  }
3440
3440
  return -1;
3441
3441
  }
3442
- function Un(e, t) {
3442
+ function Gn(e, t) {
3443
3443
  if (e[t] !== "(") return null;
3444
3444
  let n = 0, r = -1;
3445
3445
  for (let i = t; i < e.length; i++) {
@@ -3461,8 +3461,8 @@ function Un(e, t) {
3461
3461
  end: r + 1
3462
3462
  };
3463
3463
  }
3464
- var Wn = /^<\/?[A-Za-z][A-Za-z0-9-]*(\s[^<>]*?)?\/?>|^<!--[\s\S]*?-->/;
3465
- function Gn(e) {
3464
+ var Kn = /^<\/?[A-Za-z][A-Za-z0-9-]*(\s[^<>]*?)?\/?>|^<!--[\s\S]*?-->/;
3465
+ function qn(e) {
3466
3466
  let t = [], n = "", r = () => {
3467
3467
  n && t.push({
3468
3468
  type: "text",
@@ -3477,7 +3477,7 @@ function Gn(e) {
3477
3477
  r(), t.push({ type: "break" }), i += 2;
3478
3478
  continue;
3479
3479
  }
3480
- if (o && Ln.includes(o)) {
3480
+ if (o && zn.includes(o)) {
3481
3481
  n += o, i += 2;
3482
3482
  continue;
3483
3483
  }
@@ -3490,7 +3490,7 @@ function Gn(e) {
3490
3490
  continue;
3491
3491
  }
3492
3492
  if (a === "`") {
3493
- let n = Vn(e, i, "`"), a = e.indexOf("`".repeat(n), i + n);
3493
+ let n = Un(e, i, "`"), a = e.indexOf("`".repeat(n), i + n);
3494
3494
  if (a !== -1 && !e.slice(i + n, a).startsWith("`")) {
3495
3495
  r();
3496
3496
  let o = e.slice(i + n, a);
@@ -3502,7 +3502,7 @@ function Gn(e) {
3502
3502
  }
3503
3503
  }
3504
3504
  if (a === "!" && e[i + 1] === "[") {
3505
- let n = Hn(e, i + 1), a = n === -1 ? null : Un(e, n + 1);
3505
+ let n = Wn(e, i + 1), a = n === -1 ? null : Gn(e, n + 1);
3506
3506
  if (a) {
3507
3507
  r(), t.push({
3508
3508
  type: "image",
@@ -3523,13 +3523,13 @@ function Gn(e) {
3523
3523
  }
3524
3524
  }
3525
3525
  if (a === "[") {
3526
- let n = Hn(e, i), a = n === -1 ? null : Un(e, n + 1);
3526
+ let n = Wn(e, i), a = n === -1 ? null : Gn(e, n + 1);
3527
3527
  if (a) {
3528
3528
  r(), t.push({
3529
3529
  type: "link",
3530
3530
  url: a.url,
3531
3531
  ...a.title ? { title: a.title } : {},
3532
- children: Gn(e.slice(i + 1, n))
3532
+ children: qn(e.slice(i + 1, n))
3533
3533
  }), i = a.end;
3534
3534
  continue;
3535
3535
  }
@@ -3539,14 +3539,14 @@ function Gn(e) {
3539
3539
  if (n !== -1 && n > i + 2) {
3540
3540
  r(), t.push({
3541
3541
  type: "delete",
3542
- children: Gn(e.slice(i + 2, n))
3542
+ children: qn(e.slice(i + 2, n))
3543
3543
  }), i = n + 2;
3544
3544
  continue;
3545
3545
  }
3546
3546
  }
3547
3547
  if (a === "*" || a === "_") {
3548
- let n = Math.min(Vn(e, i, a), 2);
3549
- if (zn(e, i, n, a)) {
3548
+ let n = Math.min(Un(e, i, a), 2);
3549
+ if (Vn(e, i, n, a)) {
3550
3550
  let o = i + n, s = -1;
3551
3551
  for (; o < e.length;) {
3552
3552
  if (e[o] === "\\") {
@@ -3554,8 +3554,8 @@ function Gn(e) {
3554
3554
  continue;
3555
3555
  }
3556
3556
  if (e[o] === a) {
3557
- let t = Vn(e, o, a);
3558
- if (t >= n && Bn(e, o, n, a)) {
3557
+ let t = Un(e, o, a);
3558
+ if (t >= n && Hn(e, o, n, a)) {
3559
3559
  s = o;
3560
3560
  break;
3561
3561
  }
@@ -3566,7 +3566,7 @@ function Gn(e) {
3566
3566
  }
3567
3567
  if (s !== -1 && s > i + n) {
3568
3568
  r();
3569
- let a = Gn(e.slice(i + n, s));
3569
+ let a = qn(e.slice(i + n, s));
3570
3570
  t.push(n === 2 ? {
3571
3571
  type: "strong",
3572
3572
  children: a
@@ -3579,7 +3579,7 @@ function Gn(e) {
3579
3579
  }
3580
3580
  }
3581
3581
  if (a === "<") {
3582
- let n = e.slice(i).match(Wn);
3582
+ let n = e.slice(i).match(Kn);
3583
3583
  if (n) {
3584
3584
  r(), t.push({
3585
3585
  type: "html",
@@ -3592,8 +3592,8 @@ function Gn(e) {
3592
3592
  }
3593
3593
  return r(), t;
3594
3594
  }
3595
- var Kn = /^ {0,3}(`{3,}|~{3,})\s*([^`\s]*)[^`]*$/, qn = /^ {0,3}(#{1,6})(?:\s+(.*?))?\s*#*\s*$/, Jn = /^ {0,3}(?:(?:\*\s*){3,}|(?:-\s*){3,}|(?:_\s*){3,})$/, Yn = /^ {0,3}>\s?/, Xn = /^(\s*)([-*+])(\s+)(.*)$/, Zn = /^(\s*)(\d{1,9})([.)])(\s+)(.*)$/, Qn = /^ {0,3}\|?\s*:?-{1,}:?\s*(\|\s*:?-{1,}:?\s*)*\|?\s*$/, $n = /^:?-+:?$/, er = /^\s*$/;
3596
- function tr(e) {
3595
+ var Jn = /^ {0,3}(`{3,}|~{3,})\s*([^`\s]*)[^`]*$/, Yn = /^ {0,3}(#{1,6})(?:\s+(.*?))?\s*#*\s*$/, Xn = /^ {0,3}(?:(?:\*\s*){3,}|(?:-\s*){3,}|(?:_\s*){3,})$/, Zn = /^ {0,3}>\s?/, Qn = /^(\s*)([-*+])(\s+)(.*)$/, $n = /^(\s*)(\d{1,9})([.)])(\s+)(.*)$/, er = /^ {0,3}\|?\s*:?-{1,}:?\s*(\|\s*:?-{1,}:?\s*)*\|?\s*$/, tr = /^:?-+:?$/, nr = /^\s*$/;
3596
+ function rr(e) {
3597
3597
  let t = e.trim().replace(/^\|/, "").replace(/\|$/, ""), n = [], r = "";
3598
3598
  for (let e = 0; e < t.length; e++) {
3599
3599
  if (t[e] === "\\" && t[e + 1] === "|") {
@@ -3608,16 +3608,16 @@ function tr(e) {
3608
3608
  }
3609
3609
  return n.push(r.trim()), n;
3610
3610
  }
3611
- var nr = (e) => Kn.test(e) || qn.test(e) || Jn.test(e) || Yn.test(e) || Xn.test(e) || Zn.test(e);
3612
- function rr(e) {
3611
+ var ir = (e) => Jn.test(e) || Yn.test(e) || Xn.test(e) || Zn.test(e) || Qn.test(e) || $n.test(e);
3612
+ function ar(e) {
3613
3613
  let t = e.replace(/\r\n?/g, "\n").split("\n"), n = [], r = 0;
3614
3614
  for (; r < t.length;) {
3615
3615
  let e = t[r];
3616
- if (er.test(e)) {
3616
+ if (nr.test(e)) {
3617
3617
  r++;
3618
3618
  continue;
3619
3619
  }
3620
- let i = e.match(Kn);
3620
+ let i = e.match(Jn);
3621
3621
  if (i) {
3622
3622
  let e = i[1][0], a = i[1].length, o = [];
3623
3623
  for (r++; r < t.length;) {
@@ -3634,44 +3634,44 @@ function rr(e) {
3634
3634
  });
3635
3635
  continue;
3636
3636
  }
3637
- let a = e.match(qn);
3637
+ let a = e.match(Yn);
3638
3638
  if (a) {
3639
3639
  n.push({
3640
3640
  type: "heading",
3641
3641
  depth: a[1].length,
3642
- children: Gn(a[2] ?? "")
3642
+ children: qn(a[2] ?? "")
3643
3643
  }), r++;
3644
3644
  continue;
3645
3645
  }
3646
- if (Jn.test(e)) {
3646
+ if (Xn.test(e)) {
3647
3647
  n.push({ type: "thematicBreak" }), r++;
3648
3648
  continue;
3649
3649
  }
3650
- if (Yn.test(e)) {
3650
+ if (Zn.test(e)) {
3651
3651
  let e = [];
3652
- for (; r < t.length && !er.test(t[r]);) e.push(t[r].replace(Yn, "")), r++;
3652
+ for (; r < t.length && !nr.test(t[r]);) e.push(t[r].replace(Zn, "")), r++;
3653
3653
  n.push({
3654
3654
  type: "blockquote",
3655
- children: rr(e.join("\n"))
3655
+ children: ar(e.join("\n"))
3656
3656
  });
3657
3657
  continue;
3658
3658
  }
3659
- let o = e.includes("|") && r + 1 < t.length && Qn.test(t[r + 1]) ? tr(t[r + 1]) : null;
3660
- if (o && o.length === tr(e).length && o.every((e) => $n.test(e))) {
3661
- let i = tr(e), a = [{
3659
+ let o = e.includes("|") && r + 1 < t.length && er.test(t[r + 1]) ? rr(t[r + 1]) : null;
3660
+ if (o && o.length === rr(e).length && o.every((e) => tr.test(e))) {
3661
+ let i = rr(e), a = [{
3662
3662
  type: "tableRow",
3663
3663
  children: i.map((e) => ({
3664
3664
  type: "tableCell",
3665
- children: Gn(e)
3665
+ children: qn(e)
3666
3666
  }))
3667
3667
  }];
3668
- for (r += 2; r < t.length && !er.test(t[r]) && t[r].includes("|");) {
3669
- let e = tr(t[r]);
3668
+ for (r += 2; r < t.length && !nr.test(t[r]) && t[r].includes("|");) {
3669
+ let e = rr(t[r]);
3670
3670
  a.push({
3671
3671
  type: "tableRow",
3672
3672
  children: i.map((t, n) => ({
3673
3673
  type: "tableCell",
3674
- children: Gn(e[n] ?? "")
3674
+ children: qn(e[n] ?? "")
3675
3675
  }))
3676
3676
  }), r++;
3677
3677
  }
@@ -3681,16 +3681,16 @@ function rr(e) {
3681
3681
  });
3682
3682
  continue;
3683
3683
  }
3684
- let s = e.match(Xn), c = e.match(Zn);
3684
+ let s = e.match(Qn), c = e.match($n);
3685
3685
  if (s || c) {
3686
3686
  let e = !!c, i = c ? Number(c[2]) : void 0, a = [];
3687
3687
  for (; r < t.length;) {
3688
- let n = t[r].match(Xn), i = t[r].match(Zn), o = e ? i : n;
3688
+ let n = t[r].match(Qn), i = t[r].match($n), o = e ? i : n;
3689
3689
  if (!o || !!i !== e) break;
3690
3690
  let s = e ? o[1].length + o[2].length + 1 + o[4].length : o[1].length + 1 + o[3].length, c = [e ? o[5] : o[4]];
3691
3691
  for (r++; r < t.length;) {
3692
3692
  let e = t[r];
3693
- if (er.test(e)) {
3693
+ if (nr.test(e)) {
3694
3694
  let e = t[r + 1];
3695
3695
  if (e !== void 0 && RegExp(`^ {${s},}\\S`).test(e)) {
3696
3696
  c.push(""), r++;
@@ -3702,12 +3702,12 @@ function rr(e) {
3702
3702
  c.push(e.slice(s)), r++;
3703
3703
  continue;
3704
3704
  }
3705
- if (Xn.test(e) || Zn.test(e) || nr(e)) break;
3705
+ if (Qn.test(e) || $n.test(e) || ir(e)) break;
3706
3706
  c.push(e.trim()), r++;
3707
3707
  }
3708
3708
  a.push({
3709
3709
  type: "listItem",
3710
- children: rr(c.join("\n"))
3710
+ children: ar(c.join("\n"))
3711
3711
  });
3712
3712
  }
3713
3713
  n.push({
@@ -3719,25 +3719,25 @@ function rr(e) {
3719
3719
  continue;
3720
3720
  }
3721
3721
  let l = [];
3722
- for (; r < t.length && !er.test(t[r]) && !(l.length && nr(t[r]) || l.length && t[r].includes("|") && r + 1 < t.length && Qn.test(t[r + 1]));) l.push(t[r]), r++;
3722
+ for (; r < t.length && !nr.test(t[r]) && !(l.length && ir(t[r]) || l.length && t[r].includes("|") && r + 1 < t.length && er.test(t[r + 1]));) l.push(t[r]), r++;
3723
3723
  let u = l.map((e) => e.replace(/^[ \t]+/, "")).join("\n").replace(/\s+$/, "");
3724
3724
  n.push({
3725
3725
  type: "paragraph",
3726
- children: Gn(u)
3726
+ children: qn(u)
3727
3727
  });
3728
3728
  }
3729
3729
  return n;
3730
3730
  }
3731
3731
  //#endregion
3732
3732
  //#region src/markdown/parseMarkdown.ts
3733
- var ir = "\n\n", ar = [
3733
+ var or = "\n\n", sr = [
3734
3734
  "h1",
3735
3735
  "h2",
3736
3736
  "h3",
3737
3737
  "h4",
3738
3738
  "h5",
3739
3739
  "h6"
3740
- ], or = class {
3740
+ ], cr = class {
3741
3741
  tokens = [];
3742
3742
  text(e) {
3743
3743
  let t = [];
@@ -3748,37 +3748,37 @@ var ir = "\n\n", ar = [
3748
3748
  return t;
3749
3749
  }
3750
3750
  break() {
3751
- this.tokens.push(ir);
3751
+ this.tokens.push(or);
3752
3752
  }
3753
- }, Q = (e, t, n) => ({
3753
+ }, Z = (e, t, n) => ({
3754
3754
  type: "el",
3755
3755
  tag: e,
3756
3756
  children: t,
3757
3757
  ...n ? { props: n } : {}
3758
3758
  });
3759
- function sr(e, t, n) {
3759
+ function lr(e, t, n) {
3760
3760
  return e.map((e, r) => (r > 0 && t.break(), n(e)));
3761
3761
  }
3762
- function cr(e, t) {
3762
+ function ur(e, t) {
3763
3763
  let n = [];
3764
3764
  for (let r of e) switch (r.type) {
3765
3765
  case "text":
3766
3766
  n.push(...t.text(r.value));
3767
3767
  break;
3768
3768
  case "strong":
3769
- n.push(Q("strong", cr(r.children, t)));
3769
+ n.push(Z("strong", ur(r.children, t)));
3770
3770
  break;
3771
3771
  case "emphasis":
3772
- n.push(Q("em", cr(r.children, t)));
3772
+ n.push(Z("em", ur(r.children, t)));
3773
3773
  break;
3774
3774
  case "delete":
3775
- n.push(Q("del", cr(r.children, t)));
3775
+ n.push(Z("del", ur(r.children, t)));
3776
3776
  break;
3777
3777
  case "inlineCode":
3778
- n.push(Q("code", t.text(r.value)));
3778
+ n.push(Z("code", t.text(r.value)));
3779
3779
  break;
3780
3780
  case "link":
3781
- n.push(Q("a", cr(r.children, t), {
3781
+ n.push(Z("a", ur(r.children, t), {
3782
3782
  href: r.url,
3783
3783
  target: "_blank",
3784
3784
  rel: "noopener noreferrer",
@@ -3786,36 +3786,36 @@ function cr(e, t) {
3786
3786
  }));
3787
3787
  break;
3788
3788
  case "image":
3789
- n.push(Q("img", [], {
3789
+ n.push(Z("img", [], {
3790
3790
  src: r.url,
3791
3791
  alt: r.alt ?? ""
3792
3792
  }));
3793
3793
  break;
3794
3794
  case "citation":
3795
- n.push(Q("cite", [], { index: String(r.index) }));
3795
+ n.push(Z("cite", [], { index: String(r.index) }));
3796
3796
  break;
3797
3797
  case "break":
3798
- n.push(Q("br", []));
3798
+ n.push(Z("br", []));
3799
3799
  break;
3800
- default: "children" in r && Array.isArray(r.children) && n.push(...cr(r.children, t));
3800
+ default: "children" in r && Array.isArray(r.children) && n.push(...ur(r.children, t));
3801
3801
  }
3802
3802
  return n;
3803
3803
  }
3804
- function lr(e, t) {
3804
+ function dr(e, t) {
3805
3805
  let n = [];
3806
3806
  return e.forEach((e, r) => {
3807
3807
  switch (r > 0 && t.break(), e.type) {
3808
3808
  case "paragraph":
3809
- n.push(Q("p", cr(e.children, t)));
3809
+ n.push(Z("p", ur(e.children, t)));
3810
3810
  break;
3811
3811
  case "heading":
3812
- n.push(Q(ar[e.depth - 1] ?? "h6", cr(e.children, t)));
3812
+ n.push(Z(sr[e.depth - 1] ?? "h6", ur(e.children, t)));
3813
3813
  break;
3814
3814
  case "list":
3815
- n.push(Q(e.ordered ? "ol" : "ul", sr(e.children, t, (e) => Q("li", lr(e.children, t))), e.ordered && e.start != null && e.start !== 1 ? { start: String(e.start) } : void 0));
3815
+ n.push(Z(e.ordered ? "ol" : "ul", lr(e.children, t, (e) => Z("li", dr(e.children, t))), e.ordered && e.start != null && e.start !== 1 ? { start: String(e.start) } : void 0));
3816
3816
  break;
3817
3817
  case "blockquote":
3818
- n.push(Q("blockquote", lr(e.children, t)));
3818
+ n.push(Z("blockquote", dr(e.children, t)));
3819
3819
  break;
3820
3820
  case "code":
3821
3821
  n.push({
@@ -3825,27 +3825,27 @@ function lr(e, t) {
3825
3825
  });
3826
3826
  break;
3827
3827
  case "thematicBreak":
3828
- n.push(Q("hr", []));
3828
+ n.push(Z("hr", []));
3829
3829
  break;
3830
3830
  case "table": {
3831
- let [r, ...i] = e.children, a = (e, n) => sr(e.children, t, (e) => Q(n, cr(e.children, t))), o = r ? Q("thead", [Q("tr", a(r, "th"))]) : null;
3831
+ let [r, ...i] = e.children, a = (e, n) => lr(e.children, t, (e) => Z(n, ur(e.children, t))), o = r ? Z("thead", [Z("tr", a(r, "th"))]) : null;
3832
3832
  o && i.length && t.break();
3833
- let s = i.length ? Q("tbody", sr(i, t, (e) => Q("tr", a(e, "td")))) : null;
3834
- n.push(Q("table", [o, s].filter((e) => e !== null)));
3833
+ let s = i.length ? Z("tbody", lr(i, t, (e) => Z("tr", a(e, "td")))) : null;
3834
+ n.push(Z("table", [o, s].filter((e) => e !== null)));
3835
3835
  break;
3836
3836
  }
3837
- default: "children" in e && Array.isArray(e.children) && n.push(...cr(e.children, t));
3837
+ default: "children" in e && Array.isArray(e.children) && n.push(...ur(e.children, t));
3838
3838
  }
3839
3839
  }), n;
3840
3840
  }
3841
- function ur(e) {
3842
- let t = new or(), n = lr(rr(e), t);
3841
+ function fr(e) {
3842
+ let t = new cr(), n = dr(ar(e), t);
3843
3843
  return {
3844
3844
  tokens: t.tokens,
3845
3845
  nodes: n
3846
3846
  };
3847
3847
  }
3848
- var dr = {
3848
+ var pr = {
3849
3849
  citation: "ick-citation-3Yqh",
3850
3850
  marked: "ick-marked-MYhj",
3851
3851
  passage: "ick-passage-QMNg",
@@ -3853,16 +3853,16 @@ var dr = {
3853
3853
  };
3854
3854
  //#endregion
3855
3855
  //#region src/InlineCitation/InlineCitation.tsx
3856
- function fr({ index: e, source: t, children: n, onSelect: r, labels: i, className: a, ...o }) {
3856
+ function mr({ index: e, source: t, children: n, onSelect: r, labels: i, className: a, ...o }) {
3857
3857
  let s = i?.cite ?? "Source", c = t ? `${s} ${e}: ${t.title}` : `${s} ${e}`, l = r ? /* @__PURE__ */ h("button", {
3858
3858
  type: "button",
3859
- className: dr.marker,
3859
+ className: pr.marker,
3860
3860
  onClick: () => r(e, t),
3861
3861
  onPointerDown: (e) => e.stopPropagation(),
3862
3862
  "aria-label": c,
3863
3863
  children: e
3864
3864
  }) : /* @__PURE__ */ h("span", {
3865
- className: dr.marker,
3865
+ className: pr.marker,
3866
3866
  "data-static": "",
3867
3867
  "aria-label": c,
3868
3868
  role: "note",
@@ -3870,22 +3870,22 @@ function fr({ index: e, source: t, children: n, onSelect: r, labels: i, classNam
3870
3870
  });
3871
3871
  return n ? /* @__PURE__ */ g("span", {
3872
3872
  className: [
3873
- dr.citation,
3874
- dr.marked,
3873
+ pr.citation,
3874
+ pr.marked,
3875
3875
  a ?? ""
3876
3876
  ].filter(Boolean).join(" "),
3877
3877
  ...o,
3878
3878
  children: [/* @__PURE__ */ h("span", {
3879
- className: dr.passage,
3879
+ className: pr.passage,
3880
3880
  children: n
3881
3881
  }), l]
3882
3882
  }) : /* @__PURE__ */ h("span", {
3883
- className: [dr.citation, a ?? ""].filter(Boolean).join(" "),
3883
+ className: [pr.citation, a ?? ""].filter(Boolean).join(" "),
3884
3884
  ...o,
3885
3885
  children: l
3886
3886
  });
3887
3887
  }
3888
- var pr = {
3888
+ var Q = {
3889
3889
  marker: "ick-marker-BYwC",
3890
3890
  shimmer: "ick-shimmer-InQp",
3891
3891
  "shimmer-sweep": "ick-shimmer-sweep-O8S3",
@@ -3896,21 +3896,21 @@ var pr = {
3896
3896
  canvas: "ick-canvas-IRKL",
3897
3897
  menu: "ick-menu-gZzr",
3898
3898
  srOnly: "ick-srOnly-Q3GJ"
3899
- }, mr = -20, hr = Math.tan(mr * Math.PI / 180), gr = (e) => {
3899
+ }, hr = -20, gr = Math.tan(hr * Math.PI / 180), _r = (e) => {
3900
3900
  if (e.length === 0) return "";
3901
3901
  let t = e[0], n = `M ${t.x} ${t.y}`;
3902
3902
  for (let t = 1; t < e.length; t++) n += ` L ${e[t].x} ${e[t].y}`;
3903
3903
  return n;
3904
- }, _r = (e) => {
3904
+ }, vr = (e) => {
3905
3905
  let t = Infinity, n = -Infinity, r = Infinity;
3906
3906
  return e.forEach((e) => {
3907
- let i = e.x + hr * e.y;
3907
+ let i = e.x + gr * e.y;
3908
3908
  i < t && (t = i), i > n && (n = i), e.y < r && (r = e.y);
3909
3909
  }), {
3910
3910
  x: (t + n) / 2,
3911
3911
  y: r
3912
3912
  };
3913
- }, vr = (e) => {
3913
+ }, yr = (e) => {
3914
3914
  let t = Infinity, n = -Infinity, r = Infinity;
3915
3915
  return e.forEach((e) => {
3916
3916
  e.x < t && (t = e.x), e.x + e.w > n && (n = e.x + e.w), e.y < r && (r = e.y);
@@ -3918,67 +3918,67 @@ var pr = {
3918
3918
  x: (t + n) / 2,
3919
3919
  y: r
3920
3920
  };
3921
- }, yr = (e, t) => {
3921
+ }, br = (e, t) => {
3922
3922
  if (e.size === 0) return "";
3923
3923
  let n = [...e].sort((e, t) => e - t), r = "";
3924
3924
  for (let e = n[0]; e <= n[n.length - 1]; e++) r += t[e];
3925
3925
  return r.trim();
3926
- }, br = (e, t = 60) => e.length > t ? `${e.slice(0, t).trimEnd()}…` : e, xr = (e) => {
3926
+ }, xr = (e, t = 60) => e.length > t ? `${e.slice(0, t).trimEnd()}…` : e, Sr = (e) => {
3927
3927
  let t = "";
3928
3928
  return e.forEach((e) => {
3929
- let n = e.y + e.h / 2, r = e.x - n * hr, i = e.x + e.w - n * hr;
3929
+ let n = e.y + e.h / 2, r = e.x - n * gr, i = e.x + e.w - n * gr;
3930
3930
  t += `M ${r} ${n} L ${i} ${n} `;
3931
3931
  }), t.trim();
3932
3932
  };
3933
- function Sr({ text: n, selectionMode: r = "marker", onHighlightComplete: i, onReplyInThread: c, sources: l, onSelectSource: p }) {
3934
- let m = d(null), [v, b] = f([]), [S, C] = f([]), [w, T] = f(null), [E, D] = f(!1), [O, k] = f(null), [A, j] = f(0), M = d(null), N = d(null), [P, ee] = f(null), [F, I] = f(null), te = a((e) => {
3933
+ function Cr({ text: n, selectionMode: r = "marker", onHighlightComplete: i, onReplyInThread: c, sources: l, onSelectSource: p }) {
3934
+ let m = d(null), [v, b] = f([]), [S, C] = f([]), [w, T] = f(null), [E, D] = f(!1), [O, k] = f(null), [A, j] = f(0), M = d(null), N = d(null), [P, ee] = f(null), [F, te] = f(null), ne = a((e) => {
3935
3935
  e.viaKeyboard && (N.current = document.activeElement), j(0), k(e);
3936
- }, []), L = a((e = "none") => {
3936
+ }, []), I = a((e = "none") => {
3937
3937
  let t = N.current;
3938
3938
  N.current = null, k(null), e !== "none" && (e === "restore" && t?.isConnected ? t.focus() : m.current?.focus());
3939
3939
  }, []);
3940
3940
  o(() => {
3941
3941
  let e = (e) => {
3942
- O && m.current && !m.current.contains(e.target) && L();
3942
+ O && m.current && !m.current.contains(e.target) && I();
3943
3943
  };
3944
3944
  return window.addEventListener("pointerdown", e), () => window.removeEventListener("pointerdown", e);
3945
- }, [O, L]);
3946
- let re = u(() => ur(n), [n]), ie = re.tokens, ae = d(r), oe = d(S), se = d(i), ce = d(O);
3945
+ }, [O, I]);
3946
+ let ie = u(() => fr(n), [n]), ae = ie.tokens, oe = d(r), se = d(S), ce = d(i), le = d(O);
3947
3947
  o(() => {
3948
- ae.current = r, oe.current = S, se.current = i, ce.current = O;
3948
+ oe.current = r, se.current = S, ce.current = i, le.current = O;
3949
3949
  });
3950
- let le = u(() => [...v.map((e) => ({
3950
+ let ue = u(() => [...v.map((e) => ({
3951
3951
  id: e.id,
3952
- d: gr(e.points),
3952
+ d: _r(e.points),
3953
3953
  kind: "path",
3954
3954
  item: e,
3955
- text: yr(e.highlightedIndices, ie)
3955
+ text: br(e.highlightedIndices, ae)
3956
3956
  })), ...S.map((e) => ({
3957
3957
  id: e.id,
3958
- d: xr(e.rects),
3958
+ d: Sr(e.rects),
3959
3959
  kind: "selection",
3960
3960
  item: e,
3961
3961
  text: e.text
3962
3962
  }))], [
3963
3963
  v,
3964
3964
  S,
3965
- ie
3966
- ]), ue = (e, t = !1) => {
3967
- let n = e.kind === "path" ? _r(e.item.points) : vr(e.item.rects);
3968
- te({
3965
+ ae
3966
+ ]), de = (e, t = !1) => {
3967
+ let n = e.kind === "path" ? vr(e.item.points) : yr(e.item.rects);
3968
+ ne({
3969
3969
  x: n.x,
3970
3970
  y: n.y,
3971
3971
  pathId: e.id,
3972
3972
  kind: e.kind,
3973
3973
  viaKeyboard: t
3974
3974
  });
3975
- }, de = a((e, t, n = !1) => {
3975
+ }, fe = a((e, t, n = !1) => {
3976
3976
  let r = m.current, i = t.trim();
3977
3977
  if (!r || !i) return;
3978
3978
  let a = /* @__PURE__ */ new Set();
3979
3979
  r.querySelectorAll("span[data-index]").forEach((t) => {
3980
3980
  e.intersectsNode(t) && a.add(parseInt(t.getAttribute("data-index"), 10));
3981
- }), se.current?.(i);
3981
+ }), ce.current?.(i);
3982
3982
  let o = r.getBoundingClientRect(), s = Array.from(e.getClientRects()).map((e) => ({
3983
3983
  x: e.left - o.left,
3984
3984
  y: e.top - o.top,
@@ -4006,24 +4006,24 @@ function Sr({ text: n, selectionMode: r = "marker", onHighlightComplete: i, onRe
4006
4006
  text: i,
4007
4007
  highlightedIndices: a
4008
4008
  }]);
4009
- let d = vr(l);
4010
- te({
4009
+ let d = yr(l);
4010
+ ne({
4011
4011
  x: d.x,
4012
4012
  y: d.y,
4013
4013
  pathId: u,
4014
4014
  kind: "selection",
4015
4015
  viaKeyboard: n
4016
4016
  });
4017
- }, [te]);
4017
+ }, [ne]);
4018
4018
  o(() => {
4019
4019
  let e = (e) => {
4020
- if (ce.current) return;
4020
+ if (le.current) return;
4021
4021
  let t = m.current;
4022
- if (!t || !e && ae.current !== "precise") return;
4022
+ if (!t || !e && oe.current !== "precise") return;
4023
4023
  let n = window.getSelection();
4024
4024
  if (!n || n.isCollapsed || n.rangeCount === 0 || !n.toString().trim()) return;
4025
4025
  let r = n.getRangeAt(0);
4026
- t.contains(r.commonAncestorContainer) && (de(r, n.toString(), e), requestAnimationFrame(() => window.getSelection()?.removeAllRanges()));
4026
+ t.contains(r.commonAncestorContainer) && (fe(r, n.toString(), e), requestAnimationFrame(() => window.getSelection()?.removeAllRanges()));
4027
4027
  }, t = () => e(!1), n = (t) => {
4028
4028
  let n = (t.ctrlKey || t.metaKey) && t.key.toLowerCase() === "a";
4029
4029
  !t.shiftKey && !n || e(!0);
@@ -4031,34 +4031,34 @@ function Sr({ text: n, selectionMode: r = "marker", onHighlightComplete: i, onRe
4031
4031
  return document.addEventListener("mouseup", t), document.addEventListener("keyup", n), () => {
4032
4032
  document.removeEventListener("mouseup", t), document.removeEventListener("keyup", n);
4033
4033
  };
4034
- }, [de]);
4035
- let [fe, pe] = f(r);
4036
- fe !== r && (pe(r), k(null));
4037
- let R = u(() => ie.map((e, t) => e.trim() ? t : -1).filter((e) => e >= 0), [ie]), [z, he] = f(null), [B, ge] = f(null), _e = s(), H = u(() => z === null || B === null ? null : {
4038
- from: Math.min(B, z),
4039
- to: Math.max(B, z)
4040
- }, [z, B]), ve = () => {
4041
- he(null), ge(null);
4042
- }, ye = () => {
4034
+ }, [fe]);
4035
+ let [pe, me] = f(r);
4036
+ pe !== r && (me(r), k(null));
4037
+ let L = u(() => ae.map((e, t) => e.trim() ? t : -1).filter((e) => e >= 0), [ae]), [R, ge] = f(null), [z, _e] = f(null), ve = s(), V = u(() => R === null || z === null ? null : {
4038
+ from: Math.min(z, R),
4039
+ to: Math.max(z, R)
4040
+ }, [R, z]), ye = () => {
4041
+ ge(null), _e(null);
4042
+ }, be = () => {
4043
4043
  let e = m.current;
4044
- if (!e || !H) return;
4045
- let t = e.querySelector(`span[data-index="${H.from}"]`), n = e.querySelector(`span[data-index="${H.to}"]`);
4044
+ if (!e || !V) return;
4045
+ let t = e.querySelector(`span[data-index="${V.from}"]`), n = e.querySelector(`span[data-index="${V.to}"]`);
4046
4046
  if (!t || !n) return;
4047
4047
  let r = document.createRange();
4048
4048
  r.setStartBefore(t), r.setEndAfter(n);
4049
4049
  let i = "";
4050
- for (let e = H.from; e <= H.to; e++) i += ie[e];
4051
- de(r, i, !0), ve();
4052
- }, U = () => [...M.current?.querySelectorAll("[role=\"menuitem\"]") ?? []];
4050
+ for (let e = V.from; e <= V.to; e++) i += ae[e];
4051
+ fe(r, i, !0), ye();
4052
+ }, H = () => [...M.current?.querySelectorAll("[role=\"menuitem\"]") ?? []];
4053
4053
  o(() => {
4054
4054
  if (!O) return;
4055
- let e = U();
4055
+ let e = H();
4056
4056
  if (e.length === 0) return;
4057
4057
  let t = M.current?.contains(document.activeElement);
4058
4058
  (O.viaKeyboard || t) && e[Math.min(A, e.length - 1)]?.focus();
4059
4059
  }, [O, A]);
4060
- let be = (e) => {
4061
- let t = U().length;
4060
+ let xe = (e) => {
4061
+ let t = H().length;
4062
4062
  if (t === 0) return;
4063
4063
  let n = (n) => {
4064
4064
  e.preventDefault(), e.stopPropagation(), j((e) => (e + n + t) % t);
@@ -4072,41 +4072,41 @@ function Sr({ text: n, selectionMode: r = "marker", onHighlightComplete: i, onRe
4072
4072
  case "End": return e.preventDefault(), j(t - 1);
4073
4073
  default: return;
4074
4074
  }
4075
- }, xe = (e) => {
4076
- if (e.target !== e.currentTarget && e.key !== "Escape" || R.length === 0) return;
4075
+ }, Se = (e) => {
4076
+ if (e.target !== e.currentTarget && e.key !== "Escape" || L.length === 0) return;
4077
4077
  let t = (t, n) => {
4078
4078
  e.preventDefault();
4079
- let r = z === null ? -1 : R.indexOf(z), i = r === -1 ? R[t === 1 ? 0 : R.length - 1] : R[Math.min(R.length - 1, Math.max(0, r + t))];
4080
- he(i), (!n || B === null) && ge(i);
4079
+ let r = R === null ? -1 : L.indexOf(R), i = r === -1 ? L[t === 1 ? 0 : L.length - 1] : L[Math.min(L.length - 1, Math.max(0, r + t))];
4080
+ ge(i), (!n || z === null) && _e(i);
4081
4081
  }, n = (t) => {
4082
- e.preventDefault(), he(t), (!e.shiftKey || B === null) && ge(t);
4082
+ e.preventDefault(), ge(t), (!e.shiftKey || z === null) && _e(t);
4083
4083
  };
4084
4084
  switch (e.key) {
4085
4085
  case "ArrowRight": return t(1, e.shiftKey);
4086
4086
  case "ArrowLeft": return t(-1, e.shiftKey);
4087
- case "Home": return n(R[0]);
4088
- case "End": return n(R[R.length - 1]);
4087
+ case "Home": return n(L[0]);
4088
+ case "End": return n(L[L.length - 1]);
4089
4089
  case "Enter":
4090
- case " ": return H ? (e.preventDefault(), ye()) : void 0;
4091
- case "Escape": return !O && z === null ? void 0 : (e.preventDefault(), L("restore"), ve());
4090
+ case " ": return V ? (e.preventDefault(), be()) : void 0;
4091
+ case "Escape": return !O && R === null ? void 0 : (e.preventDefault(), I("restore"), ye());
4092
4092
  default: return;
4093
4093
  }
4094
- }, Se = (e, t, n) => {
4094
+ }, Ce = (e, t, n) => {
4095
4095
  let r = document.elementFromPoint(e, t);
4096
4096
  if (r && r.hasAttribute("data-index")) {
4097
4097
  let e = parseInt(r.getAttribute("data-index"), 10);
4098
4098
  n.add(e);
4099
4099
  }
4100
- }, Ce = (e) => {
4100
+ }, we = (e) => {
4101
4101
  if (O) {
4102
- L();
4102
+ I();
4103
4103
  return;
4104
4104
  }
4105
4105
  if (r === "precise" || e.button !== 0 && e.pointerType === "mouse") return;
4106
4106
  e.preventDefault(), D(!0);
4107
4107
  let t = e.currentTarget;
4108
4108
  t.setPointerCapture(e.pointerId);
4109
- let n = t.getBoundingClientRect(), i = e.clientX - n.left, a = e.clientY - n.top, o = i - a * hr, s = {
4109
+ let n = t.getBoundingClientRect(), i = e.clientX - n.left, a = e.clientY - n.top, o = i - a * gr, s = {
4110
4110
  id: Date.now().toString(),
4111
4111
  points: [{
4112
4112
  x: o,
@@ -4114,14 +4114,14 @@ function Sr({ text: n, selectionMode: r = "marker", onHighlightComplete: i, onRe
4114
4114
  }],
4115
4115
  highlightedIndices: /* @__PURE__ */ new Set()
4116
4116
  };
4117
- T(s), L(), Se(e.clientX, e.clientY, s.highlightedIndices);
4118
- }, W = (e) => {
4117
+ T(s), I(), Ce(e.clientX, e.clientY, s.highlightedIndices);
4118
+ }, U = (e) => {
4119
4119
  if (r === "precise" || !w) return;
4120
- let t = m.current.getBoundingClientRect(), n = e.clientX - t.left, i = e.clientY - t.top, a = n - i * hr;
4120
+ let t = m.current.getBoundingClientRect(), n = e.clientX - t.left, i = e.clientY - t.top, a = n - i * gr;
4121
4121
  T((t) => {
4122
4122
  if (!t) return t;
4123
4123
  let n = new Set(t.highlightedIndices);
4124
- return Se(e.clientX, e.clientY, n), {
4124
+ return Ce(e.clientX, e.clientY, n), {
4125
4125
  ...t,
4126
4126
  points: [...t.points, {
4127
4127
  x: a,
@@ -4130,28 +4130,28 @@ function Sr({ text: n, selectionMode: r = "marker", onHighlightComplete: i, onRe
4130
4130
  highlightedIndices: n
4131
4131
  };
4132
4132
  });
4133
- }, we = (e) => {
4133
+ }, Te = (e) => {
4134
4134
  if (r !== "precise" && (D(!1), w)) {
4135
4135
  if (e.currentTarget.releasePointerCapture(e.pointerId), b((e) => [...e, w]), w.highlightedIndices.size > 0) {
4136
- let e = _r(w.points);
4137
- te({
4136
+ let e = vr(w.points);
4137
+ ne({
4138
4138
  x: e.x,
4139
4139
  y: e.y,
4140
4140
  pathId: w.id,
4141
4141
  kind: "path"
4142
4142
  });
4143
4143
  }
4144
- i && w.highlightedIndices.size > 0 && i(yr(w.highlightedIndices, ie)), T(null);
4144
+ i && w.highlightedIndices.size > 0 && i(br(w.highlightedIndices, ae)), T(null);
4145
4145
  }
4146
- }, Te = (e) => {
4147
- r !== "precise" && (D(!1), w && (e.currentTarget.releasePointerCapture(e.pointerId), T(null)));
4148
4146
  }, Ee = (e) => {
4149
- let t = v.find((t) => t.id === e);
4150
- return t ? yr(t.highlightedIndices, ie) : "";
4147
+ r !== "precise" && (D(!1), w && (e.currentTarget.releasePointerCapture(e.pointerId), T(null)));
4151
4148
  }, De = (e) => {
4149
+ let t = v.find((t) => t.id === e);
4150
+ return t ? br(t.highlightedIndices, ae) : "";
4151
+ }, Oe = (e) => {
4152
4152
  let t = O?.viaKeyboard;
4153
- O?.kind === "selection" ? C((t) => t.filter((t) => t.id !== e)) : b((t) => t.filter((t) => t.id !== e)), L(t ? "container" : "none");
4154
- }, Oe = () => {
4153
+ O?.kind === "selection" ? C((t) => t.filter((t) => t.id !== e)) : b((t) => t.filter((t) => t.id !== e)), I(t ? "container" : "none");
4154
+ }, ke = () => {
4155
4155
  let e = O?.viaKeyboard;
4156
4156
  if (O && c) {
4157
4157
  if (O.kind === "selection") {
@@ -4165,34 +4165,34 @@ function Sr({ text: n, selectionMode: r = "marker", onHighlightComplete: i, onRe
4165
4165
  c(e.text, s);
4166
4166
  }
4167
4167
  } else {
4168
- let e = Ee(O.pathId), t = document.getElementById(`highlight-path-${O.pathId}`);
4168
+ let e = De(O.pathId), t = document.getElementById(`highlight-path-${O.pathId}`);
4169
4169
  t && c(e, t.getBoundingClientRect());
4170
4170
  }
4171
4171
  }
4172
- L(e ? "restore" : "none");
4173
- }, ke = (e) => {
4174
- let t = ie[e], n = !1;
4172
+ I(e ? "restore" : "none");
4173
+ }, Ae = (e) => {
4174
+ let t = ae[e], n = !1;
4175
4175
  O && (n = (O.kind === "path" ? v.find((e) => e.id === O.pathId) : S.find((e) => e.id === O.pathId))?.highlightedIndices?.has(e) ?? !1);
4176
4176
  let r = !1;
4177
4177
  return P && (r = (v.find((e) => e.id === P) ?? S.find((e) => e.id === P))?.highlightedIndices?.has(e) ?? !1), /* @__PURE__ */ h("span", {
4178
4178
  "data-index": e,
4179
- className: pr.token,
4179
+ className: Q.token,
4180
4180
  "data-space": !t.trim() || void 0,
4181
4181
  "data-active": n || void 0,
4182
4182
  "data-pressed": r || void 0,
4183
- "data-kbd-cursor": z === e || void 0,
4184
- "data-kbd-selected": H && e >= H.from && e <= H.to || void 0,
4183
+ "data-kbd-cursor": R === e || void 0,
4184
+ "data-kbd-selected": V && e >= V.from && e <= V.to || void 0,
4185
4185
  children: t
4186
4186
  }, e);
4187
- }, Ae = (e) => e.map((e, n) => {
4188
- if (e.type === "token") return ke(e.index);
4189
- if (e.type === "code") return /* @__PURE__ */ h(Vt, {
4187
+ }, je = (e) => e.map((e, n) => {
4188
+ if (e.type === "token") return Ae(e.index);
4189
+ if (e.type === "code") return /* @__PURE__ */ h(Ut, {
4190
4190
  code: e.value,
4191
4191
  lang: e.lang
4192
4192
  }, `c${n}`);
4193
4193
  if (e.type === "el" && e.tag === "cite") {
4194
4194
  let t = Number(e.props?.index ?? 0);
4195
- return /* @__PURE__ */ h(fr, {
4195
+ return /* @__PURE__ */ h(mr, {
4196
4196
  index: t,
4197
4197
  source: l?.[t - 1],
4198
4198
  onSelect: p ? (e, t) => p(e, t) : void 0
@@ -4201,7 +4201,7 @@ function Sr({ text: n, selectionMode: r = "marker", onHighlightComplete: i, onRe
4201
4201
  return t(e.tag, {
4202
4202
  key: `e${n}`,
4203
4203
  ...e.props
4204
- }, e.children.length > 0 ? Ae(e.children) : void 0);
4204
+ }, e.children.length > 0 ? je(e.children) : void 0);
4205
4205
  });
4206
4206
  return /* @__PURE__ */ h(y, {
4207
4207
  reducedMotion: "user",
@@ -4220,35 +4220,35 @@ function Sr({ text: n, selectionMode: r = "marker", onHighlightComplete: i, onRe
4220
4220
  },
4221
4221
  "data-drawing": E || void 0,
4222
4222
  "data-menu": !!O || void 0,
4223
- onPointerDown: Ce,
4224
- onPointerMove: W,
4225
- onPointerUp: we,
4226
- onPointerCancel: Te,
4227
- className: pr.surface,
4223
+ onPointerDown: we,
4224
+ onPointerMove: U,
4225
+ onPointerUp: Te,
4226
+ onPointerCancel: Ee,
4227
+ className: Q.surface,
4228
4228
  tabIndex: 0,
4229
- onKeyDown: xe,
4230
- onBlur: ve,
4231
- "aria-describedby": _e,
4229
+ onKeyDown: Se,
4230
+ onBlur: ye,
4231
+ "aria-describedby": ve,
4232
4232
  children: [
4233
4233
  /* @__PURE__ */ h("span", {
4234
- id: _e,
4235
- className: pr.srOnly,
4234
+ id: ve,
4235
+ className: Q.srOnly,
4236
4236
  "aria-hidden": "true",
4237
4237
  children: "Left and right arrow keys move by word. Hold shift to select. Enter highlights the selection, Escape clears it."
4238
4238
  }),
4239
- /* @__PURE__ */ h("div", { className: pr.hitbox }),
4239
+ /* @__PURE__ */ h("div", { className: Q.hitbox }),
4240
4240
  /* @__PURE__ */ h("div", {
4241
- className: pr.tokens,
4241
+ className: Q.tokens,
4242
4242
  "data-focus": !!O || void 0,
4243
- children: Ae(re.nodes)
4243
+ children: je(ie.nodes)
4244
4244
  }),
4245
4245
  /* @__PURE__ */ h("svg", {
4246
- className: pr.canvas,
4246
+ className: Q.canvas,
4247
4247
  children: /* @__PURE__ */ g("g", {
4248
- transform: `skewX(${mr})`,
4249
- children: [le.map((t) => /* @__PURE__ */ g(e.Fragment, { children: [/* @__PURE__ */ h("path", {
4248
+ transform: `skewX(${hr})`,
4249
+ children: [ue.map((t) => /* @__PURE__ */ g(e.Fragment, { children: [/* @__PURE__ */ h("path", {
4250
4250
  id: `highlight-${t.kind}-${t.id}`,
4251
- className: pr.marker,
4251
+ className: Q.marker,
4252
4252
  d: t.d,
4253
4253
  "data-cursor": "pointer",
4254
4254
  "data-pressed": P === t.id || void 0,
@@ -4259,43 +4259,43 @@ function Sr({ text: n, selectionMode: r = "marker", onHighlightComplete: i, onRe
4259
4259
  E || (e.stopPropagation(), ee(t.id));
4260
4260
  },
4261
4261
  onPointerUp: (e) => {
4262
- P === t.id && (e.stopPropagation(), ue(t), ee(null));
4262
+ P === t.id && (e.stopPropagation(), de(t), ee(null));
4263
4263
  },
4264
4264
  onPointerLeave: () => ee(null),
4265
4265
  onPointerCancel: () => ee(null)
4266
4266
  }), /* @__PURE__ */ h("path", {
4267
- className: pr.shimmer,
4267
+ className: Q.shimmer,
4268
4268
  d: t.d,
4269
4269
  pathLength: 1,
4270
4270
  "data-active": O?.pathId === t.id || F === t.id || void 0
4271
4271
  })] }, t.id)), w && /* @__PURE__ */ h("path", {
4272
- className: pr.marker,
4273
- d: gr(w.points)
4272
+ className: Q.marker,
4273
+ d: _r(w.points)
4274
4274
  })]
4275
4275
  })
4276
4276
  }),
4277
- le.length > 0 && /* @__PURE__ */ h("div", {
4277
+ ue.length > 0 && /* @__PURE__ */ h("div", {
4278
4278
  role: "group",
4279
- "aria-label": `${le.length} highlight${le.length === 1 ? "" : "s"}`,
4280
- children: le.map((e) => /* @__PURE__ */ h("button", {
4279
+ "aria-label": `${ue.length} highlight${ue.length === 1 ? "" : "s"}`,
4280
+ children: ue.map((e) => /* @__PURE__ */ h("button", {
4281
4281
  type: "button",
4282
- className: pr.srOnly,
4282
+ className: Q.srOnly,
4283
4283
  onPointerDown: (e) => e.stopPropagation(),
4284
- onFocus: () => I(e.id),
4285
- onBlur: () => I(null),
4284
+ onFocus: () => te(e.id),
4285
+ onBlur: () => te(null),
4286
4286
  onClick: (t) => {
4287
- t.stopPropagation(), ue(e, !0);
4287
+ t.stopPropagation(), de(e, !0);
4288
4288
  },
4289
- children: `Highlight: ${br(e.text)}`
4289
+ children: `Highlight: ${xr(e.text)}`
4290
4290
  }, e.id))
4291
4291
  }),
4292
4292
  /* @__PURE__ */ h(_, { children: O && /* @__PURE__ */ g(x.div, {
4293
4293
  ref: M,
4294
4294
  role: "menu",
4295
4295
  "aria-label": "Highlight actions",
4296
- onKeyDown: be,
4296
+ onKeyDown: xe,
4297
4297
  onBlur: (e) => {
4298
- e.currentTarget.contains(e.relatedTarget) || L();
4298
+ e.currentTarget.contains(e.relatedTarget) || I();
4299
4299
  },
4300
4300
  initial: { opacity: 0 },
4301
4301
  animate: {
@@ -4309,7 +4309,7 @@ function Sr({ text: n, selectionMode: r = "marker", onHighlightComplete: i, onRe
4309
4309
  staggerDirection: -1
4310
4310
  }
4311
4311
  },
4312
- className: pr.menu,
4312
+ className: Q.menu,
4313
4313
  style: {
4314
4314
  left: O.x,
4315
4315
  top: O.y
@@ -4336,13 +4336,13 @@ function Sr({ text: n, selectionMode: r = "marker", onHighlightComplete: i, onRe
4336
4336
  scale: .9,
4337
4337
  transition: { duration: .1 }
4338
4338
  },
4339
- children: /* @__PURE__ */ h(V, {
4339
+ children: /* @__PURE__ */ h(B, {
4340
4340
  variant: "primary",
4341
4341
  role: "menuitem",
4342
4342
  tabIndex: A === 0 ? 0 : -1,
4343
- icon: /* @__PURE__ */ h(ne, { size: 14 }),
4343
+ icon: /* @__PURE__ */ h(re, { size: 14 }),
4344
4344
  onClick: (e) => {
4345
- e.stopPropagation(), Oe();
4345
+ e.stopPropagation(), ke();
4346
4346
  },
4347
4347
  title: "Reply in thread",
4348
4348
  children: "Reply in thread"
@@ -4368,13 +4368,13 @@ function Sr({ text: n, selectionMode: r = "marker", onHighlightComplete: i, onRe
4368
4368
  scale: .9,
4369
4369
  transition: { duration: .1 }
4370
4370
  },
4371
- children: /* @__PURE__ */ h(V, {
4371
+ children: /* @__PURE__ */ h(B, {
4372
4372
  variant: "primary",
4373
4373
  role: "menuitem",
4374
4374
  tabIndex: A === 1 ? 0 : -1,
4375
- icon: /* @__PURE__ */ h(me, { size: 14 }),
4375
+ icon: /* @__PURE__ */ h(he, { size: 14 }),
4376
4376
  onClick: (e) => {
4377
- e.stopPropagation(), De(O.pathId);
4377
+ e.stopPropagation(), Oe(O.pathId);
4378
4378
  },
4379
4379
  title: "Remove highlight",
4380
4380
  "aria-label": "Remove highlight"
@@ -4385,19 +4385,19 @@ function Sr({ text: n, selectionMode: r = "marker", onHighlightComplete: i, onRe
4385
4385
  })
4386
4386
  });
4387
4387
  }
4388
- var Cr = {
4388
+ var wr = {
4389
4389
  turn: "ick-turn-R-WW",
4390
4390
  question: "ick-question-Fhqf",
4391
4391
  body: "ick-body-wvid",
4392
4392
  answer: "ick-answer-pZAi",
4393
4393
  actions: "ick-actions-CWq8"
4394
- }, wr = (e) => {
4394
+ }, Tr = (e) => {
4395
4395
  navigator.clipboard?.writeText(e);
4396
- }, Tr = i(function({ turn: e, isActiveInput: t = !1, inputRef: n = null, placeholder: r, animationConfig: i, foldMotion: a, openArtifactId: o = null, onOpenArtifact: s, entranceDelay: c = 0, selectionMode: l = "marker", questionAlign: u = "end", onDraft: d, onSubmit: f, onStop: p, onEdit: m, onCancelEdit: _, onCopy: v = wr, onHighlight: y, onReplyInThread: b, onRegenerate: S, onShowVersion: C, onFeedback: w, feedback: T = null, answerActions: E = !0, onAnswerQuestion: D, onEditQuestion: O, onDecideApproval: k, className: A, onTranscribe: j }) {
4397
- let M = K(), N = M ? 0 : -16, P = e.parts ?? [], ee = P.find((e) => e.kind === "sources")?.sources;
4396
+ }, Er = i(function({ turn: e, isActiveInput: t = !1, inputRef: n = null, placeholder: r, animationConfig: i, foldMotion: a, openArtifactId: o = null, onOpenArtifact: s, entranceDelay: c = 0, selectionMode: l = "marker", questionAlign: u = "end", onDraft: d, onSubmit: f, onStop: p, onEdit: m, onCancelEdit: _, onCopy: v = Tr, onHighlight: y, onReplyInThread: b, onRegenerate: S, onShowVersion: C, onFeedback: w, feedback: T = null, answerActions: E = !0, onAnswerQuestion: D, onEditQuestion: O, onDecideApproval: k, className: A, onTranscribe: j }) {
4397
+ let M = G(), N = M ? 0 : -16, P = e.parts ?? [], ee = P.find((e) => e.kind === "sources")?.sources;
4398
4398
  return /* @__PURE__ */ g(x.article, {
4399
4399
  id: `turn-${e.id}`,
4400
- className: [Cr.turn, A ?? ""].filter(Boolean).join(" "),
4400
+ className: [wr.turn, A ?? ""].filter(Boolean).join(" "),
4401
4401
  "data-active-input": t || void 0,
4402
4402
  "aria-busy": e.state === "responding" || void 0,
4403
4403
  initial: {
@@ -4423,9 +4423,9 @@ var Cr = {
4423
4423
  delay: c
4424
4424
  },
4425
4425
  children: [/* @__PURE__ */ h("div", {
4426
- className: Cr.question,
4426
+ className: wr.question,
4427
4427
  "data-align": u,
4428
- children: /* @__PURE__ */ h(We, {
4428
+ children: /* @__PURE__ */ h(Ge, {
4429
4429
  ref: n,
4430
4430
  style: u === "stretch" ? { width: "100%" } : void 0,
4431
4431
  state: e.state,
@@ -4443,16 +4443,16 @@ var Cr = {
4443
4443
  placeholder: r
4444
4444
  })
4445
4445
  }), /* @__PURE__ */ g("div", {
4446
- className: Cr.body,
4446
+ className: wr.body,
4447
4447
  children: [
4448
4448
  P.map((t) => {
4449
4449
  switch (t.kind) {
4450
- case "reasoning": return /* @__PURE__ */ h(Dt, {
4450
+ case "reasoning": return /* @__PURE__ */ h(kt, {
4451
4451
  state: t.state,
4452
4452
  duration: t.duration,
4453
4453
  children: t.text ?? ""
4454
4454
  }, t.id);
4455
- case "tool": return /* @__PURE__ */ h(Jt, {
4455
+ case "tool": return /* @__PURE__ */ h(Xt, {
4456
4456
  name: t.name ?? "",
4457
4457
  state: t.state,
4458
4458
  summary: t.summary,
@@ -4461,34 +4461,34 @@ var Cr = {
4461
4461
  error: t.error,
4462
4462
  duration: t.duration
4463
4463
  }, t.id);
4464
- case "tasks": return /* @__PURE__ */ h(tn, {
4464
+ case "tasks": return /* @__PURE__ */ h(rn, {
4465
4465
  title: t.title,
4466
4466
  tasks: t.tasks ?? [],
4467
4467
  collapsible: t.collapsible
4468
4468
  }, t.id);
4469
- case "chain": return /* @__PURE__ */ h(an, {
4469
+ case "chain": return /* @__PURE__ */ h(sn, {
4470
4470
  steps: t.steps ?? [],
4471
4471
  state: t.state,
4472
4472
  duration: t.duration
4473
4473
  }, t.id);
4474
- case "sources": return /* @__PURE__ */ h(cn, {
4474
+ case "sources": return /* @__PURE__ */ h(un, {
4475
4475
  sources: t.sources ?? [],
4476
4476
  title: t.title,
4477
4477
  collapsible: t.collapsible
4478
4478
  }, t.id);
4479
- case "approval": return /* @__PURE__ */ h(Qt, {
4479
+ case "approval": return /* @__PURE__ */ h(en, {
4480
4480
  title: t.title,
4481
4481
  description: t.description,
4482
4482
  decision: t.decision ?? null,
4483
4483
  onDecide: (n) => k?.(e.id, t.id, n),
4484
- children: t.tool && /* @__PURE__ */ h(Jt, {
4484
+ children: t.tool && /* @__PURE__ */ h(Xt, {
4485
4485
  name: t.tool.name,
4486
4486
  state: "pending",
4487
4487
  input: t.tool.input,
4488
4488
  defaultOpen: !0
4489
4489
  })
4490
4490
  }, t.id);
4491
- case "artifact": return /* @__PURE__ */ h(Fn, {
4491
+ case "artifact": return /* @__PURE__ */ h(Ln, {
4492
4492
  id: t.id,
4493
4493
  title: t.title,
4494
4494
  meta: t.meta,
@@ -4499,11 +4499,11 @@ var Cr = {
4499
4499
  open: o === t.id,
4500
4500
  onOpen: s ? (t) => s(e.id, t) : void 0
4501
4501
  }, t.id);
4502
- case "notice": return /* @__PURE__ */ h(jn, {
4502
+ case "notice": return /* @__PURE__ */ h(Nn, {
4503
4503
  tone: t.tone,
4504
4504
  children: t.text
4505
4505
  }, t.id);
4506
- case "question": return /* @__PURE__ */ h(kn, {
4506
+ case "question": return /* @__PURE__ */ h(jn, {
4507
4507
  id: t.id,
4508
4508
  title: t.title,
4509
4509
  questions: t.questions ?? [],
@@ -4518,24 +4518,24 @@ var Cr = {
4518
4518
  }
4519
4519
  }),
4520
4520
  e.state === "responding" && !e.ai && P.length === 0 && /* @__PURE__ */ h("div", {
4521
- className: Cr.answer,
4522
- children: /* @__PURE__ */ h(_t, {})
4521
+ className: wr.answer,
4522
+ children: /* @__PURE__ */ h(yt, {})
4523
4523
  }),
4524
4524
  e.ai && /* @__PURE__ */ g("div", {
4525
- className: Cr.answer,
4526
- children: [/* @__PURE__ */ h(Sr, {
4525
+ className: wr.answer,
4526
+ children: [/* @__PURE__ */ h(Cr, {
4527
4527
  text: e.ai,
4528
4528
  selectionMode: l,
4529
4529
  sources: ee,
4530
4530
  onHighlightComplete: (t) => y?.(e.id, t),
4531
4531
  onReplyInThread: b
4532
4532
  }), E && e.state === "resting" && /* @__PURE__ */ g("div", {
4533
- className: Cr.actions,
4534
- children: [/* @__PURE__ */ h(ht, {
4533
+ className: wr.actions,
4534
+ children: [/* @__PURE__ */ h(_t, {
4535
4535
  total: e.versions?.length ?? 0,
4536
4536
  index: e.versionIndex ?? 0,
4537
4537
  onSelect: (t) => C?.(e.id, t)
4538
- }), /* @__PURE__ */ h(ft, {
4538
+ }), /* @__PURE__ */ h(mt, {
4539
4539
  text: e.ai,
4540
4540
  onCopy: v,
4541
4541
  onRegenerate: S ? () => S(e.id) : void 0,
@@ -4547,19 +4547,19 @@ var Cr = {
4547
4547
  ]
4548
4548
  })]
4549
4549
  });
4550
- }), Er = {
4550
+ }), Dr = {
4551
4551
  context: "ick-context-ZOiv",
4552
4552
  ring: "ick-ring-uVUc",
4553
4553
  track: "ick-track---kg",
4554
4554
  fill: "ick-fill-M8v6",
4555
4555
  label: "ick-label-PTaW"
4556
- }, Dr = {
4556
+ }, Or = {
4557
4557
  name: "Context used",
4558
4558
  of: "of",
4559
4559
  tokens: "tokens",
4560
4560
  nearlyFull: "Nearly full — the oldest messages will start dropping out"
4561
4561
  };
4562
- function Or(e) {
4562
+ function kr(e) {
4563
4563
  if (!Number.isFinite(e) || e < 0) return "";
4564
4564
  if (e >= 1e6) {
4565
4565
  let t = e / 1e6;
@@ -4571,14 +4571,14 @@ function Or(e) {
4571
4571
  }
4572
4572
  return String(Math.round(e));
4573
4573
  }
4574
- var kr = 6, Ar = 2 * Math.PI * kr;
4575
- function jr({ used: e, total: t, warnAt: n = .8, label: r, labels: i, className: a, ...o }) {
4574
+ var Ar = 6, jr = 2 * Math.PI * Ar;
4575
+ function Mr({ used: e, total: t, warnAt: n = .8, label: r, labels: i, className: a, ...o }) {
4576
4576
  let s = {
4577
- ...Dr,
4577
+ ...Or,
4578
4578
  ...i
4579
- }, c = t > 0 ? Math.min(1, Math.max(0, e / t)) : 0, l = Math.round(c * 100), u = c >= n, d = r === !1 ? null : r ?? `${l}%`, f = `${s.name}: ${l}%, ${Or(e)} ${s.of} ${Or(t)} ${s.tokens}${u ? `. ${s.nearlyFull}` : ""}`;
4579
+ }, c = t > 0 ? Math.min(1, Math.max(0, e / t)) : 0, l = Math.round(c * 100), u = c >= n, d = r === !1 ? null : r ?? `${l}%`, f = `${s.name}: ${l}%, ${kr(e)} ${s.of} ${kr(t)} ${s.tokens}${u ? `. ${s.nearlyFull}` : ""}`;
4580
4580
  return /* @__PURE__ */ g("div", {
4581
- className: [Er.context, a ?? ""].filter(Boolean).join(" "),
4581
+ className: [Dr.context, a ?? ""].filter(Boolean).join(" "),
4582
4582
  "data-warn": u || void 0,
4583
4583
  role: "meter",
4584
4584
  "aria-valuenow": l,
@@ -4588,31 +4588,31 @@ function jr({ used: e, total: t, warnAt: n = .8, label: r, labels: i, className:
4588
4588
  title: f,
4589
4589
  ...o,
4590
4590
  children: [/* @__PURE__ */ g("svg", {
4591
- className: Er.ring,
4591
+ className: Dr.ring,
4592
4592
  viewBox: "0 0 16 16",
4593
4593
  "aria-hidden": !0,
4594
4594
  focusable: "false",
4595
4595
  children: [/* @__PURE__ */ h("circle", {
4596
- className: Er.track,
4596
+ className: Dr.track,
4597
4597
  cx: "8",
4598
4598
  cy: "8",
4599
- r: kr
4599
+ r: Ar
4600
4600
  }), /* @__PURE__ */ h("circle", {
4601
- className: Er.fill,
4601
+ className: Dr.fill,
4602
4602
  cx: "8",
4603
4603
  cy: "8",
4604
- r: kr,
4605
- strokeDasharray: Ar,
4606
- strokeDashoffset: Ar * (1 - c),
4604
+ r: Ar,
4605
+ strokeDasharray: jr,
4606
+ strokeDashoffset: jr * (1 - c),
4607
4607
  transform: "rotate(-90 8 8)"
4608
4608
  })]
4609
4609
  }), d !== null && /* @__PURE__ */ h("span", {
4610
- className: Er.label,
4610
+ className: Dr.label,
4611
4611
  children: d
4612
4612
  })]
4613
4613
  });
4614
4614
  }
4615
- var Mr = {
4615
+ var Nr = {
4616
4616
  pane: "ick-pane-Yv8Y",
4617
4617
  head: "ick-head-p2-j",
4618
4618
  headText: "ick-headText-NgFu",
@@ -4625,7 +4625,7 @@ var Mr = {
4625
4625
  };
4626
4626
  //#endregion
4627
4627
  //#region src/Artifact/ArtifactPane.tsx
4628
- function Nr({ title: e, meta: t, children: n, onClose: r, modal: i = !1, expanded: a = !1, onToggleExpanded: c, closeLabel: l = "Close", expandLabel: u = "Widen", collapseLabel: f = "Narrow", className: p, ...m }) {
4628
+ function Pr({ title: e, meta: t, children: n, onClose: r, modal: i = !1, expanded: a = !1, onToggleExpanded: c, closeLabel: l = "Close", expandLabel: u = "Widen", collapseLabel: f = "Narrow", className: p, ...m }) {
4629
4629
  let _ = s(), v = d(null), y = d(null);
4630
4630
  return o(() => {
4631
4631
  y.current?.focus({ preventScroll: !0 });
@@ -4644,31 +4644,31 @@ function Nr({ title: e, meta: t, children: n, onClose: r, modal: i = !1, expande
4644
4644
  return document.addEventListener("focusin", e), () => document.removeEventListener("focusin", e);
4645
4645
  }, [i]), /* @__PURE__ */ g("div", {
4646
4646
  ref: v,
4647
- className: [Mr.pane, p ?? ""].filter(Boolean).join(" "),
4647
+ className: [Nr.pane, p ?? ""].filter(Boolean).join(" "),
4648
4648
  "aria-labelledby": _,
4649
4649
  "aria-modal": i || void 0,
4650
4650
  role: i ? "dialog" : "complementary",
4651
4651
  ...m,
4652
4652
  children: [/* @__PURE__ */ g("div", {
4653
- className: Mr.head,
4653
+ className: Nr.head,
4654
4654
  children: [
4655
4655
  /* @__PURE__ */ g("div", {
4656
- className: Mr.headText,
4656
+ className: Nr.headText,
4657
4657
  children: [/* @__PURE__ */ h("h2", {
4658
- className: Mr.title,
4658
+ className: Nr.title,
4659
4659
  id: _,
4660
4660
  ref: y,
4661
4661
  tabIndex: -1,
4662
4662
  children: e
4663
4663
  }), t && /* @__PURE__ */ h("p", {
4664
- className: Mr.meta,
4664
+ className: Nr.meta,
4665
4665
  children: t
4666
4666
  })]
4667
4667
  }),
4668
- c && !i && /* @__PURE__ */ h(V, {
4668
+ c && !i && /* @__PURE__ */ h(B, {
4669
4669
  variant: "ghost",
4670
4670
  size: "s",
4671
- icon: h(a ? re : te, {
4671
+ icon: h(a ? ie : ne, {
4672
4672
  size: 15,
4673
4673
  "aria-hidden": !0
4674
4674
  }),
@@ -4676,10 +4676,10 @@ function Nr({ title: e, meta: t, children: n, onClose: r, modal: i = !1, expande
4676
4676
  "aria-pressed": a,
4677
4677
  onClick: c
4678
4678
  }),
4679
- r && /* @__PURE__ */ h(V, {
4679
+ r && /* @__PURE__ */ h(B, {
4680
4680
  variant: "ghost",
4681
4681
  size: "s",
4682
- icon: /* @__PURE__ */ h(he, {
4682
+ icon: /* @__PURE__ */ h(ge, {
4683
4683
  size: 15,
4684
4684
  "aria-hidden": !0
4685
4685
  }),
@@ -4688,14 +4688,14 @@ function Nr({ title: e, meta: t, children: n, onClose: r, modal: i = !1, expande
4688
4688
  })
4689
4689
  ]
4690
4690
  }), /* @__PURE__ */ h("div", {
4691
- className: Mr.body,
4692
- children: n ?? /* @__PURE__ */ h(Pr, {})
4691
+ className: Nr.body,
4692
+ children: n ?? /* @__PURE__ */ h(Fr, {})
4693
4693
  })]
4694
4694
  });
4695
4695
  }
4696
- function Pr() {
4696
+ function Fr() {
4697
4697
  return /* @__PURE__ */ h("div", {
4698
- className: Mr.skeleton,
4698
+ className: Nr.skeleton,
4699
4699
  "aria-hidden": !0,
4700
4700
  children: [
4701
4701
  68,
@@ -4706,23 +4706,23 @@ function Pr() {
4706
4706
  100,
4707
4707
  84
4708
4708
  ].map((e, t) => /* @__PURE__ */ h("span", {
4709
- className: Mr.line,
4709
+ className: Nr.line,
4710
4710
  style: { width: `${e}%` }
4711
4711
  }, t))
4712
4712
  });
4713
4713
  }
4714
- var Fr = {
4714
+ var Ir = {
4715
4715
  layout: "ick-layout-nC6G",
4716
4716
  chat: "ick-chat-OTXm",
4717
4717
  pane: "ick-pane--QUG"
4718
- }, Ir = 760;
4719
- function Lr({ children: e, pane: t, className: n, ...r }) {
4718
+ }, Lr = 760;
4719
+ function Rr({ children: e, pane: t, className: n, ...r }) {
4720
4720
  let i = d(null), [s, c] = f(!1), [l, u] = f(!1), p = a(() => u((e) => !e), []);
4721
4721
  o(() => {
4722
4722
  let e = i.current;
4723
4723
  if (!e || typeof ResizeObserver > "u") return;
4724
4724
  let t = new ResizeObserver(([e]) => {
4725
- c(e.contentRect.width <= Ir);
4725
+ c(e.contentRect.width <= Lr);
4726
4726
  });
4727
4727
  return t.observe(e), () => t.disconnect();
4728
4728
  }, []);
@@ -4733,14 +4733,14 @@ function Lr({ children: e, pane: t, className: n, ...r }) {
4733
4733
  });
4734
4734
  return /* @__PURE__ */ g("div", {
4735
4735
  ref: i,
4736
- className: [Fr.layout, n ?? ""].filter(Boolean).join(" "),
4736
+ className: [Ir.layout, n ?? ""].filter(Boolean).join(" "),
4737
4737
  "data-pane": m ? "" : void 0,
4738
4738
  ...r,
4739
4739
  children: [/* @__PURE__ */ h("div", {
4740
- className: Fr.chat,
4740
+ className: Ir.chat,
4741
4741
  children: e
4742
4742
  }), m && /* @__PURE__ */ h("div", {
4743
- className: Fr.pane,
4743
+ className: Ir.pane,
4744
4744
  "data-expanded": l && !s || void 0,
4745
4745
  children: m
4746
4746
  })]
@@ -4748,7 +4748,7 @@ function Lr({ children: e, pane: t, className: n, ...r }) {
4748
4748
  }
4749
4749
  //#endregion
4750
4750
  //#region src/Artifact/useArtifacts.ts
4751
- function Rr(e = null) {
4751
+ function zr(e = null) {
4752
4752
  let [t, n] = f(e);
4753
4753
  return {
4754
4754
  openId: t,
@@ -4757,7 +4757,7 @@ function Rr(e = null) {
4757
4757
  toggle: a((e) => n((t) => t === e ? null : e), [])
4758
4758
  };
4759
4759
  }
4760
- var zr = {
4760
+ var Br = {
4761
4761
  empty: "ick-empty-BP6G",
4762
4762
  icon: "ick-icon-rZWd",
4763
4763
  title: "ick-title-AoPi",
@@ -4766,29 +4766,29 @@ var zr = {
4766
4766
  };
4767
4767
  //#endregion
4768
4768
  //#region src/EmptyState/EmptyState.tsx
4769
- function Br({ icon: e, title: t, description: n, suggestions: r, onSuggestion: i, suggestionsLabel: a = "Suggestions", children: o, className: s, ...c }) {
4769
+ function Vr({ icon: e, title: t, description: n, suggestions: r, onSuggestion: i, suggestionsLabel: a = "Suggestions", children: o, className: s, ...c }) {
4770
4770
  let l = i ? r ?? [] : [];
4771
4771
  return /* @__PURE__ */ g("div", {
4772
- className: [zr.empty, s ?? ""].filter(Boolean).join(" "),
4772
+ className: [Br.empty, s ?? ""].filter(Boolean).join(" "),
4773
4773
  ...c,
4774
4774
  children: [
4775
4775
  e && /* @__PURE__ */ h("div", {
4776
- className: zr.icon,
4776
+ className: Br.icon,
4777
4777
  children: e
4778
4778
  }),
4779
4779
  t && /* @__PURE__ */ h("div", {
4780
- className: zr.title,
4780
+ className: Br.title,
4781
4781
  children: t
4782
4782
  }),
4783
4783
  n && /* @__PURE__ */ h("p", {
4784
- className: zr.description,
4784
+ className: Br.description,
4785
4785
  children: n
4786
4786
  }),
4787
4787
  l.length > 0 && /* @__PURE__ */ h("div", {
4788
- className: zr.suggestions,
4788
+ className: Br.suggestions,
4789
4789
  role: "group",
4790
4790
  "aria-label": a,
4791
- children: l.map((e) => /* @__PURE__ */ h(V, {
4791
+ children: l.map((e) => /* @__PURE__ */ h(B, {
4792
4792
  variant: "primary",
4793
4793
  size: "m",
4794
4794
  onClick: () => i?.(e),
@@ -4799,12 +4799,12 @@ function Br({ icon: e, title: t, description: n, suggestions: r, onSuggestion: i
4799
4799
  ]
4800
4800
  });
4801
4801
  }
4802
- var Vr = {
4802
+ var Hr = {
4803
4803
  root: "ick-root-JrOP",
4804
4804
  viewport: "ick-viewport-C3hz",
4805
4805
  content: "ick-content-33lN",
4806
4806
  jump: "ick-jump-nd6O"
4807
- }, Hr = 64, Ur = n(function({ children: e, anchorId: t, anchorOffset: n = 0, threshold: r = Hr, scrollButton: i = !0, scrollButtonLabel: s = "Jump to the latest", follow: u = !0, className: p, viewportClassName: m, onScroll: _, ...v }, y) {
4807
+ }, Ur = 64, Wr = n(function({ children: e, anchorId: t, anchorOffset: n = 0, threshold: r = Ur, scrollButton: i = !0, scrollButtonLabel: s = "Jump to the latest", follow: u = !0, className: p, viewportClassName: m, onScroll: _, ...v }, y) {
4808
4808
  let b = d(null);
4809
4809
  c(y, () => b.current, []);
4810
4810
  let x = d(null), [S, C] = f(!0), T = a(() => {
@@ -4829,7 +4829,7 @@ var Vr = {
4829
4829
  let t = b.current;
4830
4830
  t && (t.scrollTo({
4831
4831
  top: E(),
4832
- behavior: e && !K() ? "smooth" : "auto"
4832
+ behavior: e && !G() ? "smooth" : "auto"
4833
4833
  }), C(!0));
4834
4834
  }, [E]);
4835
4835
  l(() => {
@@ -4889,20 +4889,20 @@ var Vr = {
4889
4889
  E
4890
4890
  ]), k = u && !S;
4891
4891
  return /* @__PURE__ */ g("div", {
4892
- className: [Vr.root, p ?? ""].filter(Boolean).join(" "),
4892
+ className: [Hr.root, p ?? ""].filter(Boolean).join(" "),
4893
4893
  children: [/* @__PURE__ */ h("div", {
4894
4894
  ref: b,
4895
- className: [Vr.viewport, m ?? ""].filter(Boolean).join(" "),
4895
+ className: [Hr.viewport, m ?? ""].filter(Boolean).join(" "),
4896
4896
  onScroll: O,
4897
4897
  ...v,
4898
4898
  children: /* @__PURE__ */ h("div", {
4899
4899
  ref: x,
4900
- className: Vr.content,
4900
+ className: Hr.content,
4901
4901
  children: e
4902
4902
  })
4903
4903
  }), i && /* @__PURE__ */ h("button", {
4904
4904
  type: "button",
4905
- className: Vr.jump,
4905
+ className: Hr.jump,
4906
4906
  "data-shown": k || void 0,
4907
4907
  tabIndex: k ? 0 : -1,
4908
4908
  "aria-hidden": !k || void 0,
@@ -4934,9 +4934,9 @@ var Vr = {
4934
4934
  turn: "ick-turn-ogjU",
4935
4935
  turnRow: "ick-turnRow-0OuP",
4936
4936
  srOnly: "ick-srOnly-LwE1"
4937
- }, Wr = "a[href], button:not([disabled]), input:not([disabled]), select:not([disabled]), textarea:not([disabled]), [contenteditable]:not([contenteditable=\"false\"]), [tabindex]:not([tabindex=\"-1\"])";
4938
- function Gr({ activeReply: e, onClose: t, onSave: n, onSendMessage: r }) {
4939
- let [i, a] = f("none"), c = d(null), l = d(null), u = d(null), [p] = f(() => typeof document > "u" ? null : document.activeElement), m = s(), _ = s(), v = Ve, b = e.text, { turns: S, setDraft: C, submit: w, stop: T, beginEdit: E } = $e({ onSend: (e, t) => r(e, b, t) });
4937
+ }, Gr = "a[href], button:not([disabled]), input:not([disabled]), select:not([disabled]), textarea:not([disabled]), [contenteditable]:not([contenteditable=\"false\"]), [tabindex]:not([tabindex=\"-1\"])";
4938
+ function Kr({ activeReply: e, onClose: t, onSave: n, onSendMessage: r }) {
4939
+ let [i, a] = f("none"), c = d(null), l = d(null), u = d(null), [p] = f(() => typeof document > "u" ? null : document.activeElement), m = s(), _ = s(), v = He, b = e.text, { turns: S, setDraft: C, submit: w, stop: T, beginEdit: E } = et({ onSend: (e, t) => r(e, b, t) });
4940
4940
  o(() => (c.current ? c.current.focus() : u.current?.focus(), () => {
4941
4941
  p?.isConnected && p.focus();
4942
4942
  }), [p]);
@@ -4947,7 +4947,7 @@ function Gr({ activeReply: e, onClose: t, onSave: n, onSendMessage: r }) {
4947
4947
  return;
4948
4948
  }
4949
4949
  if (e.key !== "Tab") return;
4950
- let n = [...u.current?.querySelectorAll(Wr) ?? []];
4950
+ let n = [...u.current?.querySelectorAll(Gr) ?? []];
4951
4951
  if (n.length === 0) return;
4952
4952
  let r = n[0], i = n[n.length - 1], a = document.activeElement;
4953
4953
  e.shiftKey && a === r ? (e.preventDefault(), i.focus()) : !e.shiftKey && a === i && (e.preventDefault(), r.focus());
@@ -5043,14 +5043,14 @@ function Gr({ activeReply: e, onClose: t, onSave: n, onSendMessage: r }) {
5043
5043
  })]
5044
5044
  }), /* @__PURE__ */ g("div", {
5045
5045
  className: $.headerActions,
5046
- children: [/* @__PURE__ */ h(V, {
5046
+ children: [/* @__PURE__ */ h(B, {
5047
5047
  variant: "primary",
5048
- icon: /* @__PURE__ */ h(de, { size: 16 }),
5048
+ icon: /* @__PURE__ */ h(fe, { size: 16 }),
5049
5049
  onClick: n,
5050
5050
  children: "Save"
5051
- }), /* @__PURE__ */ h(V, {
5051
+ }), /* @__PURE__ */ h(B, {
5052
5052
  variant: "secondary",
5053
- icon: /* @__PURE__ */ h(he, { size: 16 }),
5053
+ icon: /* @__PURE__ */ h(ge, { size: 16 }),
5054
5054
  onClick: t,
5055
5055
  "aria-label": "Close thread"
5056
5056
  })]
@@ -5107,7 +5107,7 @@ function Gr({ activeReply: e, onClose: t, onSave: n, onSendMessage: r }) {
5107
5107
  children: [/* @__PURE__ */ h("div", {
5108
5108
  className: $.turnRow,
5109
5109
  "data-editing": r || void 0,
5110
- children: /* @__PURE__ */ h(We, {
5110
+ children: /* @__PURE__ */ h(Ge, {
5111
5111
  ref: n ? c : null,
5112
5112
  state: e.state,
5113
5113
  value: e.user,
@@ -5137,7 +5137,7 @@ function Gr({ activeReply: e, onClose: t, onSave: n, onSendMessage: r }) {
5137
5137
  }
5138
5138
  //#endregion
5139
5139
  //#region src/CustomCursor/CustomCursor.tsx
5140
- function Kr() {
5140
+ function qr() {
5141
5141
  let e = C(-100), t = C(-100), [n, r] = f("default"), [i, a] = f(!1), [s, c] = f(!1);
5142
5142
  return o(() => {
5143
5143
  let n = (n) => {
@@ -5295,20 +5295,20 @@ function Kr() {
5295
5295
  }
5296
5296
  //#endregion
5297
5297
  //#region src/GlassButton/GlassButton.tsx
5298
- var qr = {
5298
+ var Jr = {
5299
5299
  s: "m",
5300
5300
  m: "l",
5301
5301
  l: "xl"
5302
- }, Jr = n(function({ size: e = "m", iconLeft: t, ...n }, r) {
5303
- return /* @__PURE__ */ h(V, {
5302
+ }, Yr = n(function({ size: e = "m", iconLeft: t, ...n }, r) {
5303
+ return /* @__PURE__ */ h(B, {
5304
5304
  ref: r,
5305
5305
  variant: "glass",
5306
- size: qr[e],
5306
+ size: Jr[e],
5307
5307
  icon: t,
5308
5308
  ...n
5309
5309
  });
5310
5310
  });
5311
5311
  //#endregion
5312
- export { Ee as AddCardsOverlay, ft as AnswerActions, Qt as Approval, Fn as ArtifactCard, Nr as ArtifactPane, xe as Attachments, ht as Branch, V as Button, an as ChainOfThought, ot as ChatHeader, We as ChatInput, Lr as ChatLayout, Tr as ChatTurnRow, un as Chip, Vt as CodeBlock, jr as Context, Ur as Conversation, Kr as CustomCursor, Br as EmptyState, En as FOLDABLE_FROM, Jr as GlassButton, we as HoverActionsRow, fr as InlineCitation, _t as Loader, Ce as MorphGlyph, dn as QuestionBadge, wn as QuestionCard, pn as QuestionFieldRow, kn as QuestionGroup, fn as QuestionOptionRow, mn as QuestionOtherRow, hn as QuestionShell, Dt as Reasoning, Gr as ReplyThreadPopup, cn as Sources, jn as SystemMessage, tn as TaskList, Sr as TextHighlighter, Jt as Tool, G as announce, Sn as answerChips, Nt as canHighlight, Dn as defaultFoldMotion, Ve as defaultInlineAnimConfig, ye as formatSize, Rt as loadHighlighter, Ge as mergeParts, Rr as useArtifacts, $e as useChatTurns, Le as useVoiceInput };
5312
+ export { De as AddCardsOverlay, mt as AnswerActions, en as Approval, Ln as ArtifactCard, Pr as ArtifactPane, Se as Attachments, _t as Branch, B as Button, sn as ChainOfThought, ct as ChatHeader, Ge as ChatInput, Rr as ChatLayout, Er as ChatTurnRow, fn as Chip, Ut as CodeBlock, Mr as Context, Wr as Conversation, qr as CustomCursor, Vr as EmptyState, On as FOLDABLE_FROM, Yr as GlassButton, Te as HoverActionsRow, mr as InlineCitation, yt as Loader, we as MorphGlyph, pn as QuestionBadge, En as QuestionCard, hn as QuestionFieldRow, jn as QuestionGroup, mn as QuestionOptionRow, gn as QuestionOtherRow, _n as QuestionShell, kt as Reasoning, Kr as ReplyThreadPopup, un as Sources, Nn as SystemMessage, rn as TaskList, Cr as TextHighlighter, Xt as Tool, W as announce, wn as answerChips, Ft as canHighlight, kn as defaultFoldMotion, He as defaultInlineAnimConfig, be as formatSize, nt as headerIconSize, Bt as loadHighlighter, Ke as mergeParts, zr as useArtifacts, et as useChatTurns, Re as useVoiceInput };
5313
5313
 
5314
5314
  //# sourceMappingURL=inline-chat-kit.js.map