@copilotkit/vue 1.73.3 → 1.74.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.
@@ -1,14 +1,14 @@
1
- import { defineComponent as se, useAttrs as ot, shallowRef as nt, onMounted as Ve, onUnmounted as ln, watch as U, withDirectives as ba, openBlock as $, createBlock as ge, resolveDynamicComponent as bt, normalizeProps as Q, mergeProps as pe, unref as Y, createCommentVNode as ee, inject as Rt, ref as T, computed as l, onBeforeUnmount as Ae, h as C, nextTick as kt, createElementBlock as V, normalizeStyle as mt, createElementVNode as D, toDisplayString as be, provide as At, triggerRef as it, Fragment as Ie, renderSlot as I, toValue as Ne, renderList as Xe, createVNode as oe, guardReactiveProps as Z, withMemo as ka, useSlots as Wt, createSlots as Ye, withCtx as J, normalizeClass as ke, createTextVNode as qt, readonly as Bt, withModifiers as Ht, Teleport as ya, onScopeDispose as Lt, watchEffect as wa } from "vue";
1
+ import { defineComponent as se, useAttrs as ot, shallowRef as nt, onMounted as Ve, onUnmounted as ln, watch as U, withDirectives as ba, openBlock as $, createBlock as ge, resolveDynamicComponent as bt, normalizeProps as Q, mergeProps as pe, unref as Y, createCommentVNode as ee, inject as Rt, ref as T, computed as l, onBeforeUnmount as Ae, h as C, nextTick as kt, createElementBlock as V, normalizeStyle as mt, createElementVNode as D, toDisplayString as be, provide as At, triggerRef as it, Fragment as Ie, renderSlot as I, toValue as Ne, renderList as Xe, createVNode as oe, guardReactiveProps as Z, withMemo as ka, useSlots as Wt, createSlots as Ye, withCtx as J, normalizeClass as ke, createTextVNode as qt, readonly as Bt, withModifiers as _t, Teleport as ya, onScopeDispose as Lt, watchEffect as wa } from "vue";
2
2
  import { z as ce } from "zod";
3
3
  import { CopilotKitCore as xa, ToolCallStatus as Ke, ProxiedCopilotRuntimeAgent as xn, CopilotKitCoreRuntimeConnectionStatus as $t, isInspectorThreadBridgeEnabled as Ca, onInspectorViewThread as Ta, emitInspectorViewThreadResult as Cn, emitInspectorActiveThread as Tn, onInspectorStopViewing as Sa, CopilotKitCoreErrorCode as Ia, ɵcreateThreadStore as Aa, ɵselectThreads as Ra, ɵselectThreadsIsLoading as Ma, ɵselectThreadsError as $a, ɵselectFetchMoreError as Ea, ɵselectHasNextPage as Fa, ɵselectIsFetchingNextPage as Oa, ɵselectIsMutating as La } from "@copilotkit/core";
4
- import { randomUUID as vt, A2UI_DEFAULT_GENERATION_GUIDELINES as Da, A2UI_DEFAULT_DESIGN_GUIDELINES as Ba, createLicenseContextValue as Kn, schemaToJsonSchema as Ua, shouldEnableInspector as ja, DEFAULT_AGENT_ID as at, partialJSONParse as Gn, matchesAcceptFilter as Xt, exceedsMaxSize as Na, formatFileSize as nn, getModalityFromMimeType as Va, readFileAsBase64 as Pa, generateVideoThumbnail as Ha, TranscriptionErrorCode as rt, getSourceUrl as St, getDocumentIcon as an, createRowKeyStore as _a, resolveRowRenderKeysById as za, commitRowKeyStore as Sn, createAttachmentContent as Wa } from "@copilotkit/shared";
4
+ import { randomUUID as vt, A2UI_DEFAULT_GENERATION_GUIDELINES as Da, A2UI_DEFAULT_DESIGN_GUIDELINES as Ba, createLicenseContextValue as Kn, schemaToJsonSchema as Ua, shouldEnableInspector as ja, DEFAULT_AGENT_ID as at, partialJSONParse as Gn, matchesAcceptFilter as Xt, exceedsMaxSize as Na, formatFileSize as nn, getModalityFromMimeType as Va, readFileAsBase64 as Pa, generateVideoThumbnail as _a, TranscriptionErrorCode as rt, getSourceUrl as St, getDocumentIcon as an, createRowKeyStore as Ha, resolveRowRenderKeysById as za, commitRowKeyStore as Sn, createAttachmentContent as Wa } from "@copilotkit/shared";
5
5
  import { zodToJsonSchema as cn } from "zod-to-json-schema";
6
6
  import { GenericBinder as qa, Catalog as Ka, ComponentContext as Ga, MessageProcessor as Ja } from "@a2ui/web_core/v0_9";
7
7
  import { BASIC_FUNCTIONS as Qa, TextApi as Xa, ImageApi as Ya, IconApi as Za, VideoApi as eo, AudioPlayerApi as to, RowApi as no, ColumnApi as ao, ListApi as oo, CardApi as so, TabsApi as io, DividerApi as ro, ModalApi as lo, ButtonApi as co, TextFieldApi as uo, CheckBoxApi as po, ChoicePickerApi as fo, SliderApi as go, DateTimeInputApi as vo } from "@a2ui/web_core/v0_9/basic_catalog";
8
8
  import { HttpAgent as Jn, AbstractAgent as mo, AGUIConnectNotImplementedError as ho, isInterruptExpired as bo, buildResumeArray as ko } from "@ag-ui/client";
9
9
  import { Download as Yt, Check as Et, Copy as Pt, ThumbsUp as yo, ThumbsDown as wo, Volume2 as xo, RefreshCw as Co, Plus as To, ChevronRight as un, Loader2 as Qn, X as dn, Mic as So, Square as Io, ArrowUp as Ao, Edit as Ro, ChevronLeft as Mo, ChevronDown as $o, MessageCircle as Eo, PanelLeftOpen as Fo } from "lucide-vue-next";
10
10
  import { StreamMarkdown as Xn } from "streamdown-vue";
11
- const Oo = /* @__PURE__ */ se({
11
+ const Oo = "1.74.0", Lo = /* @__PURE__ */ se({
12
12
  inheritAttrs: !1,
13
13
  __name: "CopilotKitInspector",
14
14
  props: {
@@ -25,7 +25,11 @@ const Oo = /* @__PURE__ */ se({
25
25
  };
26
26
  return Ve(() => {
27
27
  import("@copilotkit/web-inspector").then((c) => {
28
- o && (c.defineWebInspector?.(), s = c.configureWebInspectorElement, a.value = c.WEB_INSPECTOR_TAG);
28
+ o && (c.defineWebInspector?.(), s = (u, d) => c.configureWebInspectorElement(u, d, {
29
+ development: process.env.NODE_ENV === "development",
30
+ framework: "vue",
31
+ sdkVersion: Oo
32
+ }), a.value = c.WEB_INSPECTOR_TAG);
29
33
  }).catch((c) => {
30
34
  console.error("Failed to load CopilotKit inspector:", c);
31
35
  });
@@ -45,7 +49,7 @@ const Oo = /* @__PURE__ */ se({
45
49
  [r]
46
50
  ]) : ee("", !0);
47
51
  }
48
- }), Yn = /* @__PURE__ */ Symbol("CopilotKit"), on = /* @__PURE__ */ Symbol("CopilotChatConfiguration"), Zn = /* @__PURE__ */ Symbol("SandboxFunctions"), Lo = /* @__PURE__ */ Symbol(
52
+ }), Yn = /* @__PURE__ */ Symbol("CopilotKit"), on = /* @__PURE__ */ Symbol("CopilotChatConfiguration"), Zn = /* @__PURE__ */ Symbol("SandboxFunctions"), Do = /* @__PURE__ */ Symbol(
49
53
  "CopilotKitInspector"
50
54
  );
51
55
  function Pe() {
@@ -54,8 +58,8 @@ function Pe() {
54
58
  throw new Error("useCopilotKit must be used within CopilotKitProvider");
55
59
  return e;
56
60
  }
57
- const Do = "2025-06-18";
58
- function Bo(e) {
61
+ const Bo = "2025-06-18";
62
+ function Uo(e) {
59
63
  const n = "'self' 'wasm-unsafe-eval' 'unsafe-inline' 'unsafe-eval' blob: data: http://localhost:* https://localhost:*", t = "* blob: data: http://localhost:* https://localhost:*", a = e?.length ? ` ${e.join(" ")}` : "", i = `${n}${a}`, o = `${t}${a}`;
60
64
  return `<!doctype html>
61
65
  <html>
@@ -89,7 +93,7 @@ window.parent.postMessage({jsonrpc:"2.0",method:"ui/notifications/sandbox-proxy-
89
93
  </body>
90
94
  </html>`;
91
95
  }
92
- class Uo {
96
+ class jo {
93
97
  queues = /* @__PURE__ */ new Map();
94
98
  processing = /* @__PURE__ */ new Map();
95
99
  async enqueue(n, t) {
@@ -154,7 +158,7 @@ class Uo {
154
158
  });
155
159
  }
156
160
  }
157
- const Ut = new Uo(), jo = "mcp-apps", No = ce.object({
161
+ const Ut = new jo(), No = "mcp-apps", Vo = ce.object({
158
162
  result: ce.object({
159
163
  content: ce.array(ce.any()).optional(),
160
164
  structuredContent: ce.any().optional(),
@@ -165,10 +169,10 @@ const Ut = new Uo(), jo = "mcp-apps", No = ce.object({
165
169
  serverId: ce.string().optional(),
166
170
  toolInput: ce.record(ce.string(), ce.unknown()).optional()
167
171
  });
168
- function Vo(e) {
172
+ function Po(e) {
169
173
  return "id" in e && "method" in e;
170
174
  }
171
- function Po(e) {
175
+ function _o(e) {
172
176
  return !("id" in e) && "method" in e;
173
177
  }
174
178
  const Ho = se({
@@ -291,16 +295,16 @@ const Ho = se({
291
295
  return;
292
296
  }
293
297
  const j = c.value?._meta?.ui?.csp?.resourceDomains;
294
- if (B.srcdoc = Bo(j), a.value = B, S.appendChild(B), await N, !h) return;
298
+ if (B.srcdoc = Uo(j), a.value = B, S.appendChild(B), await N, !h) return;
295
299
  x = async (X) => {
296
300
  if (X.source !== B.contentWindow) return;
297
301
  const A = X.data;
298
302
  if (!(!A || typeof A != "object" || A.jsonrpc !== "2.0")) {
299
- if (Vo(A))
303
+ if (Po(A))
300
304
  switch (A.method) {
301
305
  case "ui/initialize": {
302
306
  y(A.id, {
303
- protocolVersion: Do,
307
+ protocolVersion: Bo,
304
308
  hostInfo: {
305
309
  name: "CopilotKit MCP Apps Host",
306
310
  version: "1.0.0"
@@ -323,13 +327,13 @@ const Ho = se({
323
327
  break;
324
328
  }
325
329
  try {
326
- const _ = A.params, F = _?.role || "user", z = _?.content?.filter((O) => O.type === "text" && O.text).map((O) => O.text).join(`
330
+ const H = A.params, F = H?.role || "user", z = H?.content?.filter((O) => O.type === "text" && O.text).map((O) => O.text).join(`
327
331
  `) || "";
328
332
  z && M.addMessage({
329
333
  id: vt(),
330
334
  role: F,
331
335
  content: z
332
- }), y(A.id, { isError: !1 }), (_?.followUp ?? F === "user") && z && Ut.enqueue(
336
+ }), y(A.id, { isError: !1 }), (H?.followUp ?? F === "user") && z && Ut.enqueue(
333
337
  M,
334
338
  () => n.value.runAgent({ agent: M })
335
339
  ).catch((O) => {
@@ -338,10 +342,10 @@ const Ho = se({
338
342
  O
339
343
  );
340
344
  });
341
- } catch (_) {
345
+ } catch (H) {
342
346
  console.error(
343
347
  "[CopilotKit] MCPApps ui/message handler error:",
344
- _
348
+ H
345
349
  ), y(A.id, { isError: !0 });
346
350
  }
347
351
  break;
@@ -360,7 +364,7 @@ const Ho = se({
360
364
  break;
361
365
  }
362
366
  case "tools/call": {
363
- const { serverHash: M, serverId: _ } = e.content, F = e.agent;
367
+ const { serverHash: M, serverId: H } = e.content, F = e.agent;
364
368
  if (!M) {
365
369
  w(
366
370
  A.id,
@@ -384,7 +388,7 @@ const Ho = se({
384
388
  forwardedProps: {
385
389
  __proxiedMCPRequest: {
386
390
  serverHash: M,
387
- serverId: _,
391
+ serverId: H,
388
392
  method: "tools/call",
389
393
  params: A.params
390
394
  }
@@ -404,16 +408,16 @@ const Ho = se({
404
408
  `Method not found: ${A.method}`
405
409
  );
406
410
  }
407
- if (Po(A))
411
+ if (_o(A))
408
412
  switch (A.method) {
409
413
  case "ui/notifications/initialized":
410
414
  h && (i.value = !0);
411
415
  break;
412
416
  case "ui/notifications/size-changed": {
413
- const { width: M, height: _ } = A.params || {};
417
+ const { width: M, height: H } = A.params || {};
414
418
  h && (r.value = {
415
419
  width: typeof M == "number" ? M : void 0,
416
- height: typeof _ == "number" ? _ : void 0
420
+ height: typeof H == "number" ? H : void 0
417
421
  });
418
422
  break;
419
423
  }
@@ -493,13 +497,13 @@ const Ho = se({
493
497
  ]
494
498
  );
495
499
  }
496
- }), uc = "a2ui-surface", dc = ce.object({
500
+ }), dc = "a2ui-surface", pc = ce.object({
497
501
  operations: ce.array(ce.record(ce.string(), ce.unknown()))
498
502
  });
499
503
  function In(e) {
500
504
  return e.surfaceId ?? e.beginRendering?.surfaceId ?? e.surfaceUpdate?.surfaceId ?? e.dataModelUpdate?.surfaceId ?? e.deleteSurface?.surfaceId ?? e.createSurface?.surfaceId ?? e.updateComponents?.surfaceId ?? e.updateDataModel?.surfaceId ?? "default";
501
505
  }
502
- class _o extends xa {
506
+ class zo extends xa {
503
507
  _renderToolCalls = [];
504
508
  _hookRenderToolCalls = /* @__PURE__ */ new Map();
505
509
  _cachedMergedRenderToolCalls = null;
@@ -579,7 +583,7 @@ class _o extends xa {
579
583
  await kt();
580
584
  }
581
585
  }
582
- const An = "a2ui_operations", zo = se({
586
+ const An = "a2ui_operations", Wo = se({
583
587
  name: "DefaultA2UILoading",
584
588
  setup() {
585
589
  const e = [0.8, 0.6, 0.4];
@@ -634,7 +638,7 @@ const An = "a2ui_operations", zo = se({
634
638
  );
635
639
  }
636
640
  });
637
- function Wo(e) {
641
+ function qo(e) {
638
642
  return {
639
643
  activityType: "a2ui-surface",
640
644
  content: ce.any(),
@@ -654,7 +658,7 @@ function Wo(e) {
654
658
  const t = l(
655
659
  () => Array.isArray(n.content?.[An]) ? n.content[An] : []
656
660
  );
657
- return () => t.value.length === 0 ? e.loadingComponent ? C(e.loadingComponent) : C(zo) : C(Xs, {
661
+ return () => t.value.length === 0 ? e.loadingComponent ? C(e.loadingComponent) : C(Wo) : C(Ys, {
658
662
  activityType: "a2ui-surface",
659
663
  content: { operations: t.value },
660
664
  message: n.message,
@@ -676,7 +680,7 @@ function sn(e) {
676
680
  };
677
681
  }
678
682
  const Zt = "render_a2ui";
679
- function qo(e, n) {
683
+ function Ko(e, n) {
680
684
  U(
681
685
  [() => e.value, n],
682
686
  ([t, a], i, o) => {
@@ -692,7 +696,7 @@ function qo(e, n) {
692
696
  const d = u, y = d?.items;
693
697
  if (Array.isArray(y) && y.length > 0) return null;
694
698
  const w = d?.components;
695
- return Array.isArray(w) && w.length > 2 ? null : Ko(u);
699
+ return Array.isArray(w) && w.length > 2 ? null : Go(u);
696
700
  }
697
701
  }), r = t.propRenderToolCalls;
698
702
  t.setRenderToolCalls([
@@ -709,7 +713,7 @@ function qo(e, n) {
709
713
  );
710
714
  }
711
715
  const rn = /* @__PURE__ */ new Map();
712
- function Ko(e) {
716
+ function Go(e) {
713
717
  const n = e, t = typeof n?.name == "string" ? n.name : "__default__";
714
718
  let a = rn.get(t);
715
719
  a || (a = { lastTime: 0, lastTokens: 0 }, rn.set(t, a));
@@ -945,7 +949,7 @@ function De(e, n, t) {
945
949
  render: a
946
950
  };
947
951
  }
948
- const dt = "8px", Go = "16px", Ot = "1px solid #ccc", Kt = "8px", ea = (e) => {
952
+ const dt = "8px", Jo = "16px", Ot = "1px solid #ccc", Kt = "8px", ea = (e) => {
949
953
  switch (e) {
950
954
  case "center":
951
955
  return "center";
@@ -980,9 +984,9 @@ const dt = "8px", Go = "16px", Ot = "1px solid #ccc", Kt = "8px", ea = (e) => {
980
984
  }, Dt = () => ({
981
985
  margin: dt,
982
986
  boxSizing: "border-box"
983
- }), Jo = () => ({
987
+ }), Qo = () => ({
984
988
  margin: dt,
985
- padding: Go,
989
+ padding: Jo,
986
990
  border: Ot,
987
991
  borderRadius: Kt,
988
992
  boxSizing: "border-box"
@@ -996,11 +1000,11 @@ function fn(e, n) {
996
1000
  return typeof t == "string" ? n(t) : null;
997
1001
  }).filter((t) => t !== null) : [];
998
1002
  }
999
- let Qo = 0;
1003
+ let Xo = 0;
1000
1004
  function Gt() {
1001
- return `a2ui-vue-${++Qo}`;
1005
+ return `a2ui-vue-${++Xo}`;
1002
1006
  }
1003
- const Xo = De(Xa, ({ props: e }) => {
1007
+ const Yo = De(Xa, ({ props: e }) => {
1004
1008
  const n = e.text ?? "", t = { ...Dt(), display: "inline-block" };
1005
1009
  switch (e.variant) {
1006
1010
  case "h1":
@@ -1022,7 +1026,7 @@ const Xo = De(Xa, ({ props: e }) => {
1022
1026
  default:
1023
1027
  return C("span", { style: t }, n);
1024
1028
  }
1025
- }), Yo = De(Ya, ({ props: e }) => {
1029
+ }), Zo = De(Ya, ({ props: e }) => {
1026
1030
  const n = (a) => a === "scaleDown" ? "scale-down" : a || "fill", t = {
1027
1031
  ...Dt(),
1028
1032
  objectFit: n(e.fit),
@@ -1031,7 +1035,7 @@ const Xo = De(Xa, ({ props: e }) => {
1031
1035
  display: "block"
1032
1036
  };
1033
1037
  return e.variant === "icon" ? (t.width = "24px", t.height = "24px") : e.variant === "avatar" ? (t.width = "40px", t.height = "40px", t.borderRadius = "50%") : e.variant === "smallFeature" ? t.maxWidth = "100px" : e.variant === "largeFeature" ? t.maxHeight = "400px" : e.variant === "header" && (t.height = "200px", t.objectFit = "cover"), C("img", { src: e.url, alt: e.description || "", style: t });
1034
- }), Zo = De(Za, ({ props: e }) => {
1038
+ }), es = De(Za, ({ props: e }) => {
1035
1039
  const n = typeof e.name == "string" ? e.name : e.name?.path, t = {
1036
1040
  ...Dt(),
1037
1041
  fontSize: "24px",
@@ -1042,14 +1046,14 @@ const Xo = De(Xa, ({ props: e }) => {
1042
1046
  justifyContent: "center"
1043
1047
  };
1044
1048
  return C("span", { class: "material-symbols-outlined", style: t }, n);
1045
- }), es = De(eo, ({ props: e }) => {
1049
+ }), ts = De(eo, ({ props: e }) => {
1046
1050
  const n = {
1047
1051
  ...Dt(),
1048
1052
  width: "100%",
1049
1053
  aspectRatio: "16/9"
1050
1054
  };
1051
1055
  return C("video", { src: e.url, controls: !0, style: n });
1052
- }), ts = De(to, ({ props: e }) => {
1056
+ }), ns = De(to, ({ props: e }) => {
1053
1057
  const n = { ...Dt(), width: "100%" };
1054
1058
  return C(
1055
1059
  "div",
@@ -1070,7 +1074,7 @@ const Xo = De(Xa, ({ props: e }) => {
1070
1074
  C("audio", { src: e.url, controls: !0, style: n })
1071
1075
  ]
1072
1076
  );
1073
- }), ns = De(no, ({ props: e, buildChild: n }) => C(
1077
+ }), as = De(no, ({ props: e, buildChild: n }) => C(
1074
1078
  "div",
1075
1079
  {
1076
1080
  style: {
@@ -1084,7 +1088,7 @@ const Xo = De(Xa, ({ props: e }) => {
1084
1088
  }
1085
1089
  },
1086
1090
  fn(e.children, n)
1087
- )), as = De(ao, ({ props: e, buildChild: n }) => C(
1091
+ )), os = De(ao, ({ props: e, buildChild: n }) => C(
1088
1092
  "div",
1089
1093
  {
1090
1094
  style: {
@@ -1098,7 +1102,7 @@ const Xo = De(Xa, ({ props: e }) => {
1098
1102
  }
1099
1103
  },
1100
1104
  fn(e.children, n)
1101
- )), os = De(oo, ({ props: e, buildChild: n }) => {
1105
+ )), ss = De(oo, ({ props: e, buildChild: n }) => {
1102
1106
  const t = e.direction === "horizontal", a = {
1103
1107
  display: "flex",
1104
1108
  flexDirection: t ? "row" : "column",
@@ -1110,15 +1114,15 @@ const Xo = De(Xa, ({ props: e }) => {
1110
1114
  padding: "0"
1111
1115
  };
1112
1116
  return C("div", { style: a }, fn(e.children, n));
1113
- }), ss = De(so, ({ props: e, buildChild: n }) => {
1117
+ }), is = De(so, ({ props: e, buildChild: n }) => {
1114
1118
  const t = {
1115
- ...Jo(),
1119
+ ...Qo(),
1116
1120
  backgroundColor: "#fff",
1117
1121
  boxShadow: "0 2px 4px rgba(0,0,0,0.1)",
1118
1122
  width: "100%"
1119
1123
  };
1120
1124
  return C("div", { style: t }, [e.child ? n(e.child) : null]);
1121
- }), is = De(
1125
+ }), rs = De(
1122
1126
  io,
1123
1127
  ({ props: e, buildChild: n, state: t }) => {
1124
1128
  const a = e.tabs || [];
@@ -1172,14 +1176,14 @@ const Xo = De(Xa, ({ props: e }) => {
1172
1176
  );
1173
1177
  },
1174
1178
  () => ({ selectedIndex: T(0) })
1175
- ), rs = De(ro, ({ props: e }) => {
1179
+ ), ls = De(ro, ({ props: e }) => {
1176
1180
  const n = e.axis === "vertical", t = {
1177
1181
  margin: dt,
1178
1182
  border: "none",
1179
1183
  backgroundColor: "#ccc"
1180
1184
  };
1181
1185
  return n ? (t.width = "1px", t.height = "100%") : (t.width = "100%", t.height = "1px"), C("div", { style: t });
1182
- }), ls = De(
1186
+ }), cs = De(
1183
1187
  lo,
1184
1188
  ({ props: e, buildChild: n, state: t }) => C("div", {}, [
1185
1189
  C(
@@ -1259,7 +1263,7 @@ const Xo = De(Xa, ({ props: e }) => {
1259
1263
  ) : null
1260
1264
  ]),
1261
1265
  () => ({ isOpen: T(!1) })
1262
- ), cs = De(co, ({ props: e, buildChild: n }) => {
1266
+ ), us = De(co, ({ props: e, buildChild: n }) => {
1263
1267
  const t = {
1264
1268
  margin: dt,
1265
1269
  padding: "8px 16px",
@@ -1282,7 +1286,7 @@ const Xo = De(Xa, ({ props: e }) => {
1282
1286
  },
1283
1287
  [e.child ? n(e.child) : null]
1284
1288
  );
1285
- }), us = De(
1289
+ }), ds = De(
1286
1290
  uo,
1287
1291
  ({ props: e, state: n }) => {
1288
1292
  const t = n.id, a = e.variant === "longText", i = e.variant === "number" ? "number" : e.variant === "obscured" ? "password" : "text", o = {
@@ -1333,7 +1337,7 @@ const Xo = De(Xa, ({ props: e }) => {
1333
1337
  );
1334
1338
  },
1335
1339
  () => ({ id: Gt() })
1336
- ), ds = De(
1340
+ ), ps = De(
1337
1341
  po,
1338
1342
  ({ props: e, state: n }) => {
1339
1343
  const t = n.id, a = e.validationErrors && e.validationErrors.length > 0;
@@ -1385,7 +1389,7 @@ const Xo = De(Xa, ({ props: e }) => {
1385
1389
  );
1386
1390
  },
1387
1391
  () => ({ id: Gt() })
1388
- ), ps = De(
1392
+ ), fs = De(
1389
1393
  fo,
1390
1394
  ({ props: e, context: n, state: t }) => {
1391
1395
  const a = Array.isArray(e.value) ? e.value : [], i = e.variant === "mutuallyExclusive", o = (r) => {
@@ -1479,7 +1483,7 @@ const Xo = De(Xa, ({ props: e }) => {
1479
1483
  );
1480
1484
  },
1481
1485
  () => ({ filter: T("") })
1482
- ), fs = De(
1486
+ ), gs = De(
1483
1487
  go,
1484
1488
  ({ props: e, state: n }) => {
1485
1489
  const t = n.id;
@@ -1527,7 +1531,7 @@ const Xo = De(Xa, ({ props: e }) => {
1527
1531
  );
1528
1532
  },
1529
1533
  () => ({ id: Gt() })
1530
- ), gs = De(
1534
+ ), vs = De(
1531
1535
  vo,
1532
1536
  ({ props: e, state: n }) => {
1533
1537
  const t = n.id;
@@ -1573,8 +1577,7 @@ const Xo = De(Xa, ({ props: e }) => {
1573
1577
  );
1574
1578
  },
1575
1579
  () => ({ id: Gt() })
1576
- ), vs = [
1577
- Xo,
1580
+ ), ms = [
1578
1581
  Yo,
1579
1582
  Zo,
1580
1583
  es,
@@ -1591,13 +1594,14 @@ const Xo = De(Xa, ({ props: e }) => {
1591
1594
  ds,
1592
1595
  ps,
1593
1596
  fs,
1594
- gs
1597
+ gs,
1598
+ vs
1595
1599
  ], Ft = new Ka(
1596
1600
  "https://a2ui.org/specification/v0_9/basic_catalog.json",
1597
- vs,
1601
+ ms,
1598
1602
  Qa
1599
- ), ms = "A2UI Component Schema — available components for generating UI surfaces. Use these component names and properties when creating A2UI operations.";
1600
- function hs(e) {
1603
+ ), hs = "A2UI Component Schema — available components for generating UI surfaces. Use these component names and properties when creating A2UI operations.";
1604
+ function bs(e) {
1601
1605
  const n = e ?? Ft, t = "https://a2ui.org/specification/v0_9/basic_catalog.json", a = [];
1602
1606
  if (a.push("Available A2UI catalog:"), n.id === t)
1603
1607
  return a.push(`- ${n.id} (basic catalog)`), a.join(`
@@ -1627,7 +1631,7 @@ function hs(e) {
1627
1631
  return a.join(`
1628
1632
  `);
1629
1633
  }
1630
- function bs(e) {
1634
+ function ks(e) {
1631
1635
  const n = e ?? Ft, t = {};
1632
1636
  for (const [a, i] of n.components) {
1633
1637
  const o = cn(i.schema, {
@@ -1648,9 +1652,9 @@ function bs(e) {
1648
1652
  }
1649
1653
  return { catalogId: n.id, components: t };
1650
1654
  }
1651
- function ks(e, n) {
1655
+ function ys(e, n) {
1652
1656
  const t = l(
1653
- () => hs(n.catalog())
1657
+ () => bs(n.catalog())
1654
1658
  );
1655
1659
  U(
1656
1660
  [() => e.value, n.enabled, t],
@@ -1665,7 +1669,7 @@ function ks(e, n) {
1665
1669
  },
1666
1670
  { immediate: !0 }
1667
1671
  );
1668
- const a = l(() => n.includeSchema() ? JSON.stringify(bs(n.catalog())) : null);
1672
+ const a = l(() => n.includeSchema() ? JSON.stringify(ks(n.catalog())) : null);
1669
1673
  U(
1670
1674
  [() => e.value, n.enabled, a],
1671
1675
  ([i, o, s], r, c) => {
@@ -1673,7 +1677,7 @@ function ks(e, n) {
1673
1677
  const u = i.a2uiAgents, d = u ? { agentIds: u } : {}, y = [];
1674
1678
  y.push(
1675
1679
  i.addContext({
1676
- description: ms,
1680
+ description: hs,
1677
1681
  value: s,
1678
1682
  ...d
1679
1683
  })
@@ -1696,24 +1700,24 @@ function ks(e, n) {
1696
1700
  { immediate: !0 }
1697
1701
  );
1698
1702
  }
1699
- function ys(e) {
1703
+ function ws(e) {
1700
1704
  const n = e.match(/<style\b[^>]*>[\s\S]*?<\/style>/gi);
1701
1705
  return n ? n.join("") : "";
1702
1706
  }
1703
- function ws(e) {
1707
+ function xs(e) {
1704
1708
  let n = e;
1705
1709
  n = n.replace(/<[^>]*$/, ""), n = n.replace(/<(style|script|head)\b[^>]*>[\s\S]*?<\/\1>/gi, ""), n = n.replace(/<(style|script|head)\b[^>]*>[\s\S]*$/gi, ""), n = n.replace(/&[a-zA-Z0-9#]*$/, "");
1706
1710
  const t = n.match(/<body[^>]*>([\s\S]*)/i);
1707
1711
  return t && (n = t[1], n = n.replace(/<\/body>[\s\S]*/i, "")), n;
1708
1712
  }
1709
- function xs() {
1713
+ function Cs() {
1710
1714
  const e = Rt(
1711
1715
  Zn,
1712
1716
  l(() => [])
1713
1717
  );
1714
1718
  return l(() => e.value);
1715
1719
  }
1716
- const Cs = "open-generative-ui", Ts = ce.object({
1720
+ const Ts = "open-generative-ui", Ss = ce.object({
1717
1721
  initialHeight: ce.number().optional(),
1718
1722
  generating: ce.boolean().optional(),
1719
1723
  css: ce.string().optional(),
@@ -1724,7 +1728,7 @@ const Cs = "open-generative-ui", Ts = ce.object({
1724
1728
  jsFunctionsComplete: ce.boolean().optional(),
1725
1729
  jsExpressions: ce.array(ce.string()).optional(),
1726
1730
  jsExpressionsComplete: ce.boolean().optional()
1727
- }), Ss = ce.object({
1731
+ }), Is = ce.object({
1728
1732
  initialHeight: ce.number().optional(),
1729
1733
  placeholderMessages: ce.array(ce.string()).optional(),
1730
1734
  css: ce.string().optional(),
@@ -1732,13 +1736,13 @@ const Cs = "open-generative-ui", Ts = ce.object({
1732
1736
  jsFunctions: ce.string().optional(),
1733
1737
  jsExpressions: ce.array(ce.string()).optional()
1734
1738
  });
1735
- function Is(e, n) {
1739
+ function As(e, n) {
1736
1740
  return !!(n.cssComplete && (!e || !e.cssComplete) || n.htmlComplete || n.generating === !1 || n.jsFunctions && (!e || !e.jsFunctions) || (n.jsExpressions?.length ?? 0) > (e?.jsExpressions?.length ?? 0) || n.html?.length && (!e || !e.html?.length));
1737
1741
  }
1738
- function As(e) {
1742
+ function Rs(e) {
1739
1743
  return /<head[\s>]/i.test(e) ? e : `<head></head>${e}`;
1740
1744
  }
1741
- function Rs(e, n) {
1745
+ function Ms(e, n) {
1742
1746
  const t = e.indexOf("</head>");
1743
1747
  return t !== -1 ? e.slice(0, t) + `<style>${n}</style>` + e.slice(t) : `<head><style>${n}</style></head>${e}`;
1744
1748
  }
@@ -1746,7 +1750,7 @@ async function Rn() {
1746
1750
  const e = await import("@jetbrains/websandbox");
1747
1751
  return e.default?.default ?? e.default;
1748
1752
  }
1749
- const Ms = se({
1753
+ const $s = se({
1750
1754
  name: "OpenGenerativeUIRenderer",
1751
1755
  props: {
1752
1756
  content: {
@@ -1755,7 +1759,7 @@ const Ms = se({
1755
1759
  }
1756
1760
  },
1757
1761
  setup(e) {
1758
- const n = xs(), t = T(null), a = T(e.content), i = T(e.content), o = T(null), s = T(null), r = T(null), c = T(!1), u = T(!1), d = T(0), y = T(!1), w = T([]), g = l(() => {
1762
+ const n = Cs(), t = T(null), a = T(e.content), i = T(e.content), o = T(null), s = T(null), r = T(null), c = T(!1), u = T(!1), d = T(0), y = T(!1), w = T([]), g = l(() => {
1759
1763
  const B = {};
1760
1764
  for (const N of n.value)
1761
1765
  B[N.name] = N.handler;
@@ -1764,7 +1768,7 @@ const Ms = se({
1764
1768
  U(
1765
1769
  () => e.content,
1766
1770
  (B) => {
1767
- if (i.value = B, Is(a.value, B)) {
1771
+ if (i.value = B, As(a.value, B)) {
1768
1772
  o.value !== null && (window.clearTimeout(o.value), o.value = null), a.value = B;
1769
1773
  return;
1770
1774
  }
@@ -1780,9 +1784,9 @@ const Ms = se({
1780
1784
  if (!a.value.htmlComplete && a.value.html?.length)
1781
1785
  return a.value.html.join("");
1782
1786
  }), b = l(
1783
- () => v.value ? ws(v.value) : void 0
1787
+ () => v.value ? xs(v.value) : void 0
1784
1788
  ), f = l(
1785
- () => v.value ? ys(v.value) : ""
1789
+ () => v.value ? ws(v.value) : ""
1786
1790
  ), k = l(
1787
1791
  () => a.value.htmlComplete && a.value.html?.length ? a.value.html.join("") : void 0
1788
1792
  ), m = l(
@@ -1861,7 +1865,7 @@ const Ms = se({
1861
1865
  try {
1862
1866
  const M = await Rn();
1863
1867
  if (A || !t.value) return;
1864
- const _ = As(B), F = N ? Rs(_, N) : _, z = M.create(j, {
1868
+ const H = Rs(B), F = N ? Ms(H, N) : H, z = M.create(j, {
1865
1869
  frameContainer: t.value,
1866
1870
  frameContent: F,
1867
1871
  allowAdditionalAttributes: ""
@@ -1989,7 +1993,7 @@ const Ms = se({
1989
1993
  ]
1990
1994
  );
1991
1995
  }
1992
- }), $s = se({
1996
+ }), Es = se({
1993
1997
  name: "OpenGenerativeUIActivityRenderer",
1994
1998
  props: {
1995
1999
  activityType: { type: String, required: !0 },
@@ -2005,9 +2009,9 @@ const Ms = se({
2005
2009
  }
2006
2010
  },
2007
2011
  setup(e) {
2008
- return () => C(Ms, { content: e.content });
2012
+ return () => C($s, { content: e.content });
2009
2013
  }
2010
- }), Es = se({
2014
+ }), Fs = se({
2011
2015
  name: "OpenGenerativeUIToolRenderer",
2012
2016
  props: {
2013
2017
  name: { type: String, required: !0 },
@@ -2048,14 +2052,14 @@ const Ms = se({
2048
2052
  };
2049
2053
  }
2050
2054
  }), ta = /* @__PURE__ */ Symbol("LicenseContext");
2051
- function Fs() {
2055
+ function Os() {
2052
2056
  return T(Kn(null));
2053
2057
  }
2054
- const Os = { style: {
2058
+ const Ls = { style: {
2055
2059
  display: "flex",
2056
2060
  gap: "8px",
2057
2061
  alignItems: "center"
2058
- } }, Ls = ["href"], Ds = 52, Mn = "--copilotkit-license-banner-offset", jt = /* @__PURE__ */ se({
2062
+ } }, Ds = ["href"], Bs = 52, Mn = "--copilotkit-license-banner-offset", jt = /* @__PURE__ */ se({
2059
2063
  __name: "LicenseWarningBanner",
2060
2064
  props: {
2061
2065
  type: {},
@@ -2150,7 +2154,7 @@ const Os = { style: {
2150
2154
  return Ve(() => {
2151
2155
  typeof document > "u" || document.documentElement.style.setProperty(
2152
2156
  Mn,
2153
- `${Ds}px`
2157
+ `${Bs}px`
2154
2158
  );
2155
2159
  }), Ae(() => {
2156
2160
  typeof document > "u" || document.documentElement.style.removeProperty(Mn);
@@ -2160,7 +2164,7 @@ const Os = { style: {
2160
2164
  "data-testid": "copilot-license-banner"
2161
2165
  }, [
2162
2166
  D("span", null, be(t.value.message), 1),
2163
- D("div", Os, [
2167
+ D("div", Ls, [
2164
2168
  D("a", {
2165
2169
  href: t.value.actionUrl,
2166
2170
  target: "_blank",
@@ -2170,7 +2174,7 @@ const Os = { style: {
2170
2174
  textDecoration: "underline",
2171
2175
  color: "inherit"
2172
2176
  }
2173
- }, be(t.value.actionLabel), 9, Ls),
2177
+ }, be(t.value.actionLabel), 9, Ds),
2174
2178
  n.onDismiss ? ($(), V("button", {
2175
2179
  key: 0,
2176
2180
  style: {
@@ -2186,7 +2190,7 @@ const Os = { style: {
2186
2190
  ])
2187
2191
  ], 4)) : ee("", !0);
2188
2192
  }
2189
- }), $n = "X-CopilotCloud-Public-Api-Key", Bs = "https://api.cloud.copilotkit.ai/copilotkit/v1", Us = "frontendTools must be a stable array. If you want to dynamically add or remove tools, use `useFrontendTool` instead.", js = "humanInTheLoop must be a stable array. If you want to dynamically add or remove human-in-the-loop tools, use `useHumanInTheLoop` instead.", Ns = "renderCustomMessages must be a stable array.", Vs = "renderActivityMessages must be a stable array.", Ps = "openGenerativeUI.sandboxFunctions must be a stable array.", En = "Human-in-the-loop interaction aborted", Hs = `When generating UI with generateSandboxedUi, follow these design principles inspired by shadcn/ui:
2193
+ }), $n = "X-CopilotCloud-Public-Api-Key", Us = "https://api.cloud.copilotkit.ai/copilotkit/v1", js = "frontendTools must be a stable array. If you want to dynamically add or remove tools, use `useFrontendTool` instead.", Ns = "humanInTheLoop must be a stable array. If you want to dynamically add or remove human-in-the-loop tools, use `useHumanInTheLoop` instead.", Vs = "renderCustomMessages must be a stable array.", Ps = "renderActivityMessages must be a stable array.", _s = "openGenerativeUI.sandboxFunctions must be a stable array.", En = "Human-in-the-loop interaction aborted", Hs = `When generating UI with generateSandboxedUi, follow these design principles inspired by shadcn/ui:
2190
2194
 
2191
2195
  - Use a minimal, flat aesthetic. Avoid drop shadows and gradients — rely on subtle borders (1px solid, light gray like #e5e7eb) to define surfaces.
2192
2196
  - Neutral base palette: white backgrounds, zinc/slate gray text (#09090b for headings, #71717a for secondary text). One accent color for interactive elements.
@@ -2195,7 +2199,7 @@ const Os = { style: {
2195
2199
  - Buttons: solid fill for primary (dark bg, white text), outline for secondary (border + transparent bg). Subtle hover state (slight opacity or background shift).
2196
2200
  - Use CSS Grid or Flexbox for layout. Ensure the UI looks good at any width.
2197
2201
  - Minimal transitions (150ms) for hover/focus states only. No decorative animations.
2198
- - Keep the UI focused and dense — avoid excessive padding. Use compact spacing (8–12px gaps, 10–14px padding in controls).`, _s = `Generate sandboxed UI. IMPORTANT: The generated code runs in a sandboxed iframe WITHOUT same-origin access. Do NOT use localStorage, sessionStorage, document.cookie, IndexedDB, or fetch/XMLHttpRequest to same-origin URLs. To communicate with the host application, use Websandbox.connection.remote.<functionName>(args) which returns a Promise.
2202
+ - Keep the UI focused and dense — avoid excessive padding. Use compact spacing (8–12px gaps, 10–14px padding in controls).`, zs = `Generate sandboxed UI. IMPORTANT: The generated code runs in a sandboxed iframe WITHOUT same-origin access. Do NOT use localStorage, sessionStorage, document.cookie, IndexedDB, or fetch/XMLHttpRequest to same-origin URLs. To communicate with the host application, use Websandbox.connection.remote.<functionName>(args) which returns a Promise.
2199
2203
 
2200
2204
  You CAN use external libraries from CDNs by including <script> or <link> tags in the HTML <head> (e.g., Chart.js, D3, Three.js, x-data-spreadsheet, etc.). CDN resources load normally inside the sandbox.
2201
2205
 
@@ -2204,7 +2208,7 @@ PARAMETER ORDER IS CRITICAL — generate parameters in exactly this order:
2204
2208
  2. css (all styles FIRST — the user sees a placeholder until CSS is complete)
2205
2209
  3. html (streams in live — the user watches the UI build as HTML is generated)
2206
2210
  4. jsFunctions (reusable helper functions)
2207
- 5. jsExpressions (applied one-by-one — the user sees each expression take effect)`, pc = /* @__PURE__ */ se({
2211
+ 5. jsExpressions (applied one-by-one — the user sees each expression take effect)`, fc = /* @__PURE__ */ se({
2208
2212
  __name: "CopilotKitProvider",
2209
2213
  props: {
2210
2214
  runtimeUrl: {},
@@ -2245,7 +2249,7 @@ PARAMETER ORDER IS CRITICAL — generate parameters in exactly this order:
2245
2249
  function r(q) {
2246
2250
  o.value = { ...q };
2247
2251
  }
2248
- At(Lo, {
2252
+ At(Do, {
2249
2253
  isInspectorEnabled: s,
2250
2254
  openInspector: r
2251
2255
  });
@@ -2253,27 +2257,27 @@ PARAMETER ORDER IS CRITICAL — generate parameters in exactly this order:
2253
2257
  U(
2254
2258
  () => t.frontendTools,
2255
2259
  (q) => {
2256
- q !== c && console.error(Us);
2260
+ q !== c && console.error(js);
2257
2261
  }
2258
2262
  ), U(
2259
2263
  () => t.humanInTheLoop,
2260
2264
  (q) => {
2261
- q !== u && console.error(js);
2265
+ q !== u && console.error(Ns);
2262
2266
  }
2263
2267
  ), U(
2264
2268
  () => t.renderCustomMessages,
2265
2269
  (q) => {
2266
- q !== d && console.error(Ns);
2270
+ q !== d && console.error(Vs);
2267
2271
  }
2268
2272
  ), U(
2269
2273
  () => t.renderActivityMessages,
2270
2274
  (q) => {
2271
- q !== y && console.error(Vs);
2275
+ q !== y && console.error(Ps);
2272
2276
  }
2273
2277
  ), U(
2274
2278
  () => t.openGenerativeUI?.sandboxFunctions,
2275
2279
  (q) => {
2276
- q !== w && console.error(Ps);
2280
+ q !== w && console.error(_s);
2277
2281
  }
2278
2282
  );
2279
2283
  const g = l(
@@ -2289,16 +2293,16 @@ PARAMETER ORDER IS CRITICAL — generate parameters in exactly this order:
2289
2293
  const q = f.value;
2290
2294
  return !g.value || q[$n] ? q : { ...q, [$n]: g.value };
2291
2295
  }), m = l(
2292
- () => t.runtimeUrl ?? (g.value ? Bs : void 0)
2296
+ () => t.runtimeUrl ?? (g.value ? Us : void 0)
2293
2297
  );
2294
2298
  U(
2295
2299
  [m, g, b],
2296
2300
  ([q, he, me]) => {
2297
2301
  if (q || he || me) return;
2298
- const _e = "Missing required prop: 'runtimeUrl' or 'publicApiKey' or 'publicLicenseKey'";
2302
+ const He = "Missing required prop: 'runtimeUrl' or 'publicApiKey' or 'publicLicenseKey'";
2299
2303
  if (process.env.NODE_ENV === "production")
2300
- throw new Error(_e);
2301
- console.warn(_e);
2304
+ throw new Error(He);
2305
+ console.warn(He);
2302
2306
  },
2303
2307
  { immediate: !0 }
2304
2308
  );
@@ -2319,7 +2323,7 @@ PARAMETER ORDER IS CRITICAL — generate parameters in exactly this order:
2319
2323
  // Keep the tool call pending until the render calls `respond`, matching
2320
2324
  // the `useHumanInTheLoop` composable. Resolving immediately made the HITL
2321
2325
  // UI flash and disappear without ever waiting for the user.
2322
- handler: async (_e, ze) => {
2326
+ handler: async (He, ze) => {
2323
2327
  const Se = ze?.signal, Le = ze?.toolCall?.id ?? me.name;
2324
2328
  return new Promise((Je, ye) => {
2325
2329
  if (Se?.aborted) {
@@ -2338,9 +2342,9 @@ PARAMETER ORDER IS CRITICAL — generate parameters in exactly this order:
2338
2342
  });
2339
2343
  }
2340
2344
  }), me.render) {
2341
- const _e = me.render, ze = (Se) => {
2345
+ const He = me.render, ze = (Se) => {
2342
2346
  const Le = Se.toolCallId ?? me.name;
2343
- return C(_e, {
2347
+ return C(He, {
2344
2348
  ...Se,
2345
2349
  // `renderProps.name` is the tool that was actually invoked. It equals
2346
2350
  // `tool.name` for a named registration; for a wildcard (`"*"`) it is
@@ -2390,7 +2394,7 @@ PARAMETER ORDER IS CRITICAL — generate parameters in exactly this order:
2390
2394
  void 0
2391
2395
  ), X = T(!1), A = l(
2392
2396
  () => N.value || !!t.openGenerativeUI
2393
- ), M = l(() => !!t.a2ui?.catalog), _ = l(
2397
+ ), M = l(() => !!t.a2ui?.catalog), H = l(
2394
2398
  () => B.value || M.value
2395
2399
  ), F = l(
2396
2400
  () => M.value ? { ...t.properties, a2uiCatalogAvailable: !0 } : t.properties
@@ -2402,26 +2406,26 @@ PARAMETER ORDER IS CRITICAL — generate parameters in exactly this order:
2402
2406
  ), O = l(() => A.value ? [
2403
2407
  {
2404
2408
  name: "generateSandboxedUi",
2405
- description: _s,
2406
- parameters: Ss,
2409
+ description: zs,
2410
+ parameters: Is,
2407
2411
  handler: async () => "UI generated",
2408
2412
  followUp: !0,
2409
- render: Es
2413
+ render: Fs
2410
2414
  }
2411
2415
  ] : []), te = l(() => {
2412
2416
  const q = [
2413
2417
  {
2414
- activityType: jo,
2415
- content: No,
2418
+ activityType: No,
2419
+ content: Vo,
2416
2420
  render: Ho
2417
2421
  }
2418
2422
  ];
2419
2423
  return A.value && q.push({
2420
- activityType: Cs,
2421
- content: Ts,
2422
- render: $s
2423
- }), _.value && q.unshift(
2424
- Wo({
2424
+ activityType: Ts,
2425
+ content: Ss,
2426
+ render: Es
2427
+ }), H.value && q.unshift(
2428
+ qo({
2425
2429
  theme: t.a2ui?.theme ?? n,
2426
2430
  catalog: t.a2ui?.catalog,
2427
2431
  loadingComponent: t.a2ui?.loadingComponent
@@ -2435,7 +2439,7 @@ PARAMETER ORDER IS CRITICAL — generate parameters in exactly this order:
2435
2439
  `CopilotKitProvider: defaultThrottleMs must be a non-negative finite number, got ${t.defaultThrottleMs}. useAgent hooks without an explicit throttleMs will fall back to unthrottled.`
2436
2440
  ), q.setDefaultThrottleMs(t.defaultThrottleMs);
2437
2441
  }, ne = nt((() => {
2438
- const q = new _o({
2442
+ const q = new zo({
2439
2443
  runtimeUrl: m.value,
2440
2444
  runtimeTransport: t.useSingleEndpoint === !0 ? "single" : t.useSingleEndpoint === !1 ? "rest" : "auto",
2441
2445
  headers: k.value,
@@ -2454,7 +2458,7 @@ PARAMETER ORDER IS CRITICAL — generate parameters in exactly this order:
2454
2458
  U(
2455
2459
  ne,
2456
2460
  (q, he, me) => {
2457
- const _e = q.subscribe({
2461
+ const He = q.subscribe({
2458
2462
  onToolExecutionStart: ({
2459
2463
  toolCallId: ye
2460
2464
  }) => {
@@ -2492,7 +2496,7 @@ PARAMETER ORDER IS CRITICAL — generate parameters in exactly this order:
2492
2496
  }
2493
2497
  });
2494
2498
  me(() => {
2495
- _e.unsubscribe(), ze.unsubscribe(), Se.unsubscribe(), Le.unsubscribe(), Je.unsubscribe();
2499
+ He.unsubscribe(), ze.unsubscribe(), Se.unsubscribe(), Le.unsubscribe(), Je.unsubscribe();
2496
2500
  });
2497
2501
  },
2498
2502
  { immediate: !0 }
@@ -2533,19 +2537,19 @@ PARAMETER ORDER IS CRITICAL — generate parameters in exactly this order:
2533
2537
  Oe(), B.value = ne.value.a2uiEnabled, N.value = ne.value.openGenerativeUIEnabled, j.value = ne.value.licenseStatus, W.value = ne.value.runtimeEntitlements, X.value = ne.value.runtimeEntitlementRetryPending, Te.value = !0;
2534
2538
  });
2535
2539
  const Ze = l(() => t.a2ui?.theme), et = l(() => t.a2ui?.catalog), Ge = l(() => t.a2ui?.loadingComponent), st = l(() => t.a2ui?.includeSchema ?? !0);
2536
- qo(ne, () => _.value), ks(ne, {
2537
- enabled: () => _.value,
2540
+ Ko(ne, () => H.value), ys(ne, {
2541
+ enabled: () => H.value,
2538
2542
  catalog: () => t.a2ui?.catalog,
2539
2543
  includeSchema: () => t.a2ui?.includeSchema ?? !0
2540
2544
  });
2541
- const He = T([]);
2545
+ const _e = T([]);
2542
2546
  U(
2543
2547
  [
2544
2548
  A,
2545
2549
  z,
2546
2550
  () => t.openGenerativeUI?.designSkill
2547
2551
  ],
2548
- ([q, he, me], _e, ze) => {
2552
+ ([q, he, me], He, ze) => {
2549
2553
  if (!q) return;
2550
2554
  const Se = [];
2551
2555
  if (Se.push(
@@ -2570,7 +2574,7 @@ PARAMETER ORDER IS CRITICAL — generate parameters in exactly this order:
2570
2574
  })
2571
2575
  );
2572
2576
  }
2573
- He.value = Se, ze(() => {
2577
+ _e.value = Se, ze(() => {
2574
2578
  for (const Le of Se)
2575
2579
  ne.value.removeContext(Le);
2576
2580
  });
@@ -2619,7 +2623,7 @@ PARAMETER ORDER IS CRITICAL — generate parameters in exactly this order:
2619
2623
  );
2620
2624
  return (q, he) => ($(), V(Ie, null, [
2621
2625
  I(q.$slots, "default"),
2622
- a.value ? ($(), ge(Oo, {
2626
+ a.value ? ($(), ge(Lo, {
2623
2627
  key: 0,
2624
2628
  core: ne.value,
2625
2629
  "open-request": o.value
@@ -2664,7 +2668,7 @@ PARAMETER ORDER IS CRITICAL — generate parameters in exactly this order:
2664
2668
  modalHeaderTitle: "CopilotKit Chat",
2665
2669
  welcomeMessageText: "How can I help you today?"
2666
2670
  };
2667
- function zs(e, n) {
2671
+ function Ws(e, n) {
2668
2672
  const t = Object.keys(e), a = Object.keys(n);
2669
2673
  if (t.length !== a.length) return !1;
2670
2674
  for (const i of t)
@@ -2680,7 +2684,7 @@ function na(e) {
2680
2684
  () => Ne(e),
2681
2685
  (t) => {
2682
2686
  const a = n.value;
2683
- a !== t && (Fn(a) && Fn(t) && zs(a, t) || (n.value = t));
2687
+ a !== t && (Fn(a) && Fn(t) && Ws(a, t) || (n.value = t));
2684
2688
  },
2685
2689
  { immediate: !0 }
2686
2690
  ), n;
@@ -2785,7 +2789,7 @@ const gn = /* @__PURE__ */ se({
2785
2789
  }
2786
2790
  });
2787
2791
  function Jt() {
2788
- const e = Rt(ta, Fs(), !0);
2792
+ const e = Rt(ta, Os(), !0);
2789
2793
  return l(() => e.value);
2790
2794
  }
2791
2795
  function Fe() {
@@ -2859,7 +2863,7 @@ const oa = se({
2859
2863
  });
2860
2864
  };
2861
2865
  }
2862
- }), Ws = se({
2866
+ }), qs = se({
2863
2867
  name: "A2uiSurface",
2864
2868
  props: {
2865
2869
  surface: {
@@ -2874,14 +2878,14 @@ const oa = se({
2874
2878
  basePath: "/"
2875
2879
  });
2876
2880
  }
2877
- }), qs = ["data-activity-type", "data-message-id"], Ks = {
2881
+ }), Ks = ["data-activity-type", "data-message-id"], Gs = {
2878
2882
  key: 0,
2879
2883
  class: "cpk:rounded-lg cpk:border cpk:border-red-200 cpk:bg-red-50 cpk:p-3 cpk:text-sm cpk:text-red-700"
2880
- }, Gs = {
2884
+ }, Js = {
2881
2885
  key: 1,
2882
2886
  class: "cpk:flex cpk:min-h-0 cpk:flex-1 cpk:flex-col cpk:gap-6 cpk:overflow-auto cpk:py-6",
2883
2887
  "data-testid": "a2ui-activity-renderer"
2884
- }, Js = ["data-surface-id"], Qs = { class: "a2ui-surface cpk:flex cpk:flex-1" }, Ln = "default", Xs = /* @__PURE__ */ se({
2888
+ }, Qs = ["data-surface-id"], Xs = { class: "a2ui-surface cpk:flex cpk:flex-1" }, Ln = "default", Ys = /* @__PURE__ */ se({
2885
2889
  __name: "A2UISurfaceActivityRenderer",
2886
2890
  props: {
2887
2891
  activityType: {},
@@ -2970,20 +2974,20 @@ const oa = se({
2970
2974
  "data-activity-type": e.activityType,
2971
2975
  "data-message-id": e.message.id
2972
2976
  }, [
2973
- o.value ? ($(), V("div", Ks, " A2UI render error: " + be(o.value), 1)) : ($(), V("div", Gs, [
2977
+ o.value ? ($(), V("div", Gs, " A2UI render error: " + be(o.value), 1)) : ($(), V("div", Js, [
2974
2978
  ($(!0), V(Ie, null, Xe(y.value, (v) => ($(), V("div", {
2975
2979
  key: v.surfaceId,
2976
2980
  class: "cpk:flex cpk:w-full cpk:flex-none cpk:flex-col cpk:gap-4",
2977
2981
  "data-surface-id": v.surfaceId
2978
2982
  }, [
2979
- D("div", Qs, [
2980
- oe(Y(Ws), {
2983
+ D("div", Xs, [
2984
+ oe(Y(qs), {
2981
2985
  surface: v.surface
2982
2986
  }, null, 8, ["surface"])
2983
2987
  ])
2984
- ], 8, Js))), 128))
2988
+ ], 8, Qs))), 128))
2985
2989
  ]))
2986
- ], 8, qs)) : ee("", !0);
2990
+ ], 8, Ks)) : ee("", !0);
2987
2991
  }
2988
2992
  });
2989
2993
  function vn(e, n) {
@@ -2991,7 +2995,7 @@ function vn(e, n) {
2991
2995
  (t) => t.role === "tool" && t.toolCallId === n
2992
2996
  );
2993
2997
  }
2994
- function Ys(e) {
2998
+ function Zs(e) {
2995
2999
  return `tool-call-${e}`;
2996
3000
  }
2997
3001
  function sa(e, n, t) {
@@ -3000,7 +3004,7 @@ function sa(e, n, t) {
3000
3004
  );
3001
3005
  return a.find((i) => i.agentId === t) ?? a.find((i) => !i.agentId) ?? a[0] ?? n.find((i) => i.name === "*");
3002
3006
  }
3003
- function Zs(e, n, t) {
3007
+ function ei(e, n, t) {
3004
3008
  const a = vn(n, e.id), i = Gn(e.function.arguments);
3005
3009
  if (a)
3006
3010
  return {
@@ -3021,7 +3025,7 @@ function Zs(e, n, t) {
3021
3025
  toolMessage: void 0
3022
3026
  };
3023
3027
  }
3024
- function ei(e, n, t) {
3028
+ function ti(e, n, t) {
3025
3029
  const a = vn(n, e.id), i = Gn(e.function.arguments);
3026
3030
  return a ? {
3027
3031
  name: e.function.name,
@@ -3043,7 +3047,7 @@ function ei(e, n, t) {
3043
3047
  result: void 0
3044
3048
  };
3045
3049
  }
3046
- function ti(e, n, t, a, i = at) {
3050
+ function ni(e, n, t, a, i = at) {
3047
3051
  return [
3048
3052
  e.id,
3049
3053
  e.function.name,
@@ -3053,7 +3057,7 @@ function ti(e, n, t, a, i = at) {
3053
3057
  sa(e, a, i)?.render
3054
3058
  ];
3055
3059
  }
3056
- const ni = /* @__PURE__ */ se({
3060
+ const ai = /* @__PURE__ */ se({
3057
3061
  __name: "CopilotChatToolCallItem",
3058
3062
  props: {
3059
3063
  toolCall: {},
@@ -3062,14 +3066,14 @@ const ni = /* @__PURE__ */ se({
3062
3066
  setup(e) {
3063
3067
  const n = e, { copilotkit: t, executingToolCallIds: a } = Pe(), i = Fe();
3064
3068
  function o() {
3065
- return Zs(
3069
+ return ei(
3066
3070
  n.toolCall,
3067
3071
  n.messages,
3068
3072
  a.value
3069
3073
  );
3070
3074
  }
3071
3075
  function s() {
3072
- return ei(
3076
+ return ti(
3073
3077
  n.toolCall,
3074
3078
  n.messages,
3075
3079
  a.value
@@ -3085,7 +3089,7 @@ const ni = /* @__PURE__ */ se({
3085
3089
  }
3086
3090
  function c() {
3087
3091
  const u = i.value?.agentId ?? at;
3088
- return ti(
3092
+ return ni(
3089
3093
  n.toolCall,
3090
3094
  n.messages,
3091
3095
  a.value,
@@ -3093,13 +3097,13 @@ const ni = /* @__PURE__ */ se({
3093
3097
  u
3094
3098
  );
3095
3099
  }
3096
- return (u, d) => I(u.$slots, Y(Ys)(e.toolCall.function.name), Q(Z(o())), () => [
3100
+ return (u, d) => I(u.$slots, Y(Zs)(e.toolCall.function.name), Q(Z(o())), () => [
3097
3101
  I(u.$slots, "tool-call", Q(Z(o())), () => [
3098
3102
  r() ? ka(c(), () => ($(), ge(bt(r()?.render), Q(pe({ key: 0 }, s())), null, 16)), d, 0) : ee("", !0)
3099
3103
  ])
3100
3104
  ]);
3101
3105
  }
3102
- }), ai = /* @__PURE__ */ se({
3106
+ }), oi = /* @__PURE__ */ se({
3103
3107
  __name: "CopilotChatToolCallsView",
3104
3108
  props: {
3105
3109
  message: {},
@@ -3110,7 +3114,7 @@ const ni = /* @__PURE__ */ se({
3110
3114
  function t() {
3111
3115
  return Object.keys(n);
3112
3116
  }
3113
- return (a, i) => ($(!0), V(Ie, null, Xe(e.message.toolCalls ?? [], (o) => ($(), ge(ni, {
3117
+ return (a, i) => ($(!0), V(Ie, null, Xe(e.message.toolCalls ?? [], (o) => ($(), ge(ai, {
3114
3118
  key: o.id,
3115
3119
  "tool-call": o,
3116
3120
  messages: e.messages
@@ -3125,7 +3129,7 @@ const ni = /* @__PURE__ */ se({
3125
3129
  }
3126
3130
  });
3127
3131
  let Dn = !1;
3128
- function oi() {
3132
+ function si() {
3129
3133
  Ve(() => {
3130
3134
  if (Dn || typeof document > "u") return;
3131
3135
  Dn = !0, import("katex/dist/katex.min.css").catch(() => {
@@ -3135,7 +3139,7 @@ function oi() {
3135
3139
  });
3136
3140
  });
3137
3141
  }
3138
- const si = ["data-message-id"], ii = { class: "cpk:w-full cpk:bg-transparent cpk:flex cpk:items-center cpk:-ml-[5px] cpk:-mt-[0px]" }, ri = { class: "cpk:flex cpk:items-center cpk:gap-1" }, li = ["aria-label", "title"], ci = ["aria-label", "title"], ui = ["aria-label", "title"], di = ["aria-label", "title"], pi = ["aria-label", "title"], Bn = "cpk:cursor-pointer cpk:p-1 cpk:text-muted-foreground cpk:transition-all cpk:hover:text-foreground cpk:disabled:cursor-not-allowed cpk:disabled:opacity-50", Un = "cpk:absolute cpk:top-full cpk:right-0 cpk:z-10 cpk:mt-1 cpk:min-w-[120px] cpk:overflow-hidden cpk:rounded-md cpk:border cpk:border-border cpk:bg-background cpk:shadow-lg", Nt = "cpk:w-full cpk:px-3 cpk:py-2 cpk:text-left cpk:text-sm cpk:transition-colors cpk:hover:bg-muted/40", jn = "cpk:cursor-pointer cpk:p-1 cpk:text-muted-foreground cpk:transition-all cpk:hover:text-foreground cpk:disabled:cursor-not-allowed cpk:disabled:opacity-50", fi = /* @__PURE__ */ se({
3142
+ const ii = ["data-message-id"], ri = { class: "cpk:w-full cpk:bg-transparent cpk:flex cpk:items-center cpk:-ml-[5px] cpk:-mt-[0px]" }, li = { class: "cpk:flex cpk:items-center cpk:gap-1" }, ci = ["aria-label", "title"], ui = ["aria-label", "title"], di = ["aria-label", "title"], pi = ["aria-label", "title"], fi = ["aria-label", "title"], Bn = "cpk:cursor-pointer cpk:p-1 cpk:text-muted-foreground cpk:transition-all cpk:hover:text-foreground cpk:disabled:cursor-not-allowed cpk:disabled:opacity-50", Un = "cpk:absolute cpk:top-full cpk:right-0 cpk:z-10 cpk:mt-1 cpk:min-w-[120px] cpk:overflow-hidden cpk:rounded-md cpk:border cpk:border-border cpk:bg-background cpk:shadow-lg", Nt = "cpk:w-full cpk:px-3 cpk:py-2 cpk:text-left cpk:text-sm cpk:transition-colors cpk:hover:bg-muted/40", jn = "cpk:cursor-pointer cpk:p-1 cpk:text-muted-foreground cpk:transition-all cpk:hover:text-foreground cpk:disabled:cursor-not-allowed cpk:disabled:opacity-50", gi = /* @__PURE__ */ se({
3139
3143
  __name: "CopilotChatAssistantMessage",
3140
3144
  props: {
3141
3145
  message: {},
@@ -3149,7 +3153,7 @@ const si = ["data-message-id"], ii = { class: "cpk:w-full cpk:bg-transparent cpk
3149
3153
  },
3150
3154
  emits: ["thumbs-up", "thumbs-down", "read-aloud", "regenerate"],
3151
3155
  setup(e, { emit: n }) {
3152
- oi();
3156
+ si();
3153
3157
  const t = e, a = n, i = Fe(), o = l(() => i.value?.labels ?? lt), s = T(!1);
3154
3158
  let r = null;
3155
3159
  const c = [
@@ -3297,7 +3301,7 @@ const si = ["data-message-id"], ii = { class: "cpk:w-full cpk:bg-transparent cpk
3297
3301
  return;
3298
3302
  }
3299
3303
  Oe(), Ze();
3300
- }, He = (Ce) => {
3304
+ }, _e = (Ce) => {
3301
3305
  const P = Ge();
3302
3306
  P && (Ce === "csv" ? v(
3303
3307
  w(P, ","),
@@ -3392,7 +3396,7 @@ const si = ["data-message-id"], ii = { class: "cpk:w-full cpk:bg-transparent cpk
3392
3396
  type: "button",
3393
3397
  class: Nt,
3394
3398
  title: "Download table as CSV",
3395
- onClick: () => He("csv")
3399
+ onClick: () => _e("csv")
3396
3400
  },
3397
3401
  "CSV"
3398
3402
  ),
@@ -3402,7 +3406,7 @@ const si = ["data-message-id"], ii = { class: "cpk:w-full cpk:bg-transparent cpk
3402
3406
  type: "button",
3403
3407
  class: Nt,
3404
3408
  title: "Download table as Markdown",
3405
- onClick: () => He("markdown")
3409
+ onClick: () => _e("markdown")
3406
3410
  },
3407
3411
  "Markdown"
3408
3412
  )
@@ -3534,7 +3538,7 @@ const si = ["data-message-id"], ii = { class: "cpk:w-full cpk:bg-transparent cpk
3534
3538
  console.error("Failed to copy to clipboard:", te);
3535
3539
  }
3536
3540
  }
3537
- function _() {
3541
+ function H() {
3538
3542
  a("thumbs-up", t.message);
3539
3543
  }
3540
3544
  function F() {
@@ -3563,7 +3567,7 @@ const si = ["data-message-id"], ii = { class: "cpk:w-full cpk:bg-transparent cpk
3563
3567
  regenerateButton: O.$slots["regenerate-button"] ?? (() => null),
3564
3568
  toolCallsView: O.$slots["tool-calls-view"] ?? (() => null),
3565
3569
  onCopy: M,
3566
- onThumbsUp: _,
3570
+ onThumbsUp: H,
3567
3571
  onThumbsDown: F,
3568
3572
  onReadAloud: z,
3569
3573
  onRegenerate: ue
@@ -3602,7 +3606,7 @@ const si = ["data-message-id"], ii = { class: "cpk:w-full cpk:bg-transparent cpk
3602
3606
  message: e.message,
3603
3607
  messages: e.messages
3604
3608
  }, () => [
3605
- oe(ai, {
3609
+ oe(oi, {
3606
3610
  message: e.message,
3607
3611
  messages: e.messages
3608
3612
  }, Ye({ _: 2 }, [
@@ -3619,8 +3623,8 @@ const si = ["data-message-id"], ii = { class: "cpk:w-full cpk:bg-transparent cpk
3619
3623
  message: e.message,
3620
3624
  shouldShowToolbar: X.value
3621
3625
  }, () => [
3622
- D("div", ii, [
3623
- D("div", ri, [
3626
+ D("div", ri, [
3627
+ D("div", li, [
3624
3628
  I(O.$slots, "copy-button", {
3625
3629
  onCopy: M,
3626
3630
  copied: s.value,
@@ -3641,11 +3645,11 @@ const si = ["data-message-id"], ii = { class: "cpk:w-full cpk:bg-transparent cpk
3641
3645
  key: 1,
3642
3646
  class: "cpk:size-[18px]"
3643
3647
  }))
3644
- ], 10, li)
3648
+ ], 10, ci)
3645
3649
  ]),
3646
3650
  L.value || O.$slots["thumbs-up-button"] ? I(O.$slots, "thumbs-up-button", {
3647
3651
  key: 0,
3648
- onThumbsUp: _,
3652
+ onThumbsUp: H,
3649
3653
  label: o.value.assistantMessageToolbarThumbsUpLabel
3650
3654
  }, () => [
3651
3655
  D("button", {
@@ -3653,10 +3657,10 @@ const si = ["data-message-id"], ii = { class: "cpk:w-full cpk:bg-transparent cpk
3653
3657
  class: ke(Y(c)),
3654
3658
  "aria-label": o.value.assistantMessageToolbarThumbsUpLabel,
3655
3659
  title: o.value.assistantMessageToolbarThumbsUpLabel,
3656
- onClick: _
3660
+ onClick: H
3657
3661
  }, [
3658
3662
  oe(Y(yo), { class: "cpk:size-[18px]" })
3659
- ], 10, ci)
3663
+ ], 10, ui)
3660
3664
  ]) : ee("", !0),
3661
3665
  B.value || O.$slots["thumbs-down-button"] ? I(O.$slots, "thumbs-down-button", {
3662
3666
  key: 1,
@@ -3671,7 +3675,7 @@ const si = ["data-message-id"], ii = { class: "cpk:w-full cpk:bg-transparent cpk
3671
3675
  onClick: F
3672
3676
  }, [
3673
3677
  oe(Y(wo), { class: "cpk:size-[18px]" })
3674
- ], 10, ui)
3678
+ ], 10, di)
3675
3679
  ]) : ee("", !0),
3676
3680
  N.value || O.$slots["read-aloud-button"] ? I(O.$slots, "read-aloud-button", {
3677
3681
  key: 2,
@@ -3686,7 +3690,7 @@ const si = ["data-message-id"], ii = { class: "cpk:w-full cpk:bg-transparent cpk
3686
3690
  onClick: z
3687
3691
  }, [
3688
3692
  oe(Y(xo), { class: "cpk:size-[20px]" })
3689
- ], 10, di)
3693
+ ], 10, pi)
3690
3694
  ]) : ee("", !0),
3691
3695
  j.value || O.$slots["regenerate-button"] ? I(O.$slots, "regenerate-button", {
3692
3696
  key: 3,
@@ -3701,13 +3705,13 @@ const si = ["data-message-id"], ii = { class: "cpk:w-full cpk:bg-transparent cpk
3701
3705
  onClick: ue
3702
3706
  }, [
3703
3707
  oe(Y(Co), { class: "cpk:size-[18px]" })
3704
- ], 10, pi)
3708
+ ], 10, fi)
3705
3709
  ]) : ee("", !0),
3706
3710
  I(O.$slots, "toolbar-items")
3707
3711
  ])
3708
3712
  ])
3709
3713
  ]) : ee("", !0)
3710
- ], 16, si)
3714
+ ], 16, ii)
3711
3715
  ]);
3712
3716
  }
3713
3717
  });
@@ -3716,7 +3720,7 @@ class Tt extends Error {
3716
3720
  super(n), this.name = "AudioRecorderError";
3717
3721
  }
3718
3722
  }
3719
- const gi = /* @__PURE__ */ se({
3723
+ const vi = /* @__PURE__ */ se({
3720
3724
  inheritAttrs: !1,
3721
3725
  __name: "CopilotChatAudioRecorder",
3722
3726
  setup(e, { expose: n }) {
@@ -3791,7 +3795,7 @@ const gi = /* @__PURE__ */ se({
3791
3795
  const L = 2, N = L + 1, j = Math.floor(p.width / N) + 2;
3792
3796
  if (r.value && i.value === "recording") {
3793
3797
  y.value.length === 0 && (y.value = Array.from({ length: j }, () => 0)), v.value < 1 && (v.value = Math.min(1, v.value + 0.03)), w.value += 1 / 3;
3794
- const _ = r.value.fftSize, F = new Uint8Array(_);
3798
+ const H = r.value.fftSize, F = new Uint8Array(H);
3795
3799
  r.value.getByteTimeDomainData(F);
3796
3800
  const z = m(F), te = z > g.value ? 0.12 : 0.08;
3797
3801
  g.value += (z - g.value) * te, w.value >= N && (w.value -= N, y.value.push(g.value), y.value.length > j && (y.value = y.value.slice(-j)));
@@ -3800,8 +3804,8 @@ const gi = /* @__PURE__ */ se({
3800
3804
  const W = window.getComputedStyle(h);
3801
3805
  x.fillStyle = W.color, x.globalAlpha = v.value;
3802
3806
  const X = p.height / 2, A = p.height / 2 - 2, M = 12;
3803
- for (let _ = 0; _ < y.value.length; _ += 1) {
3804
- const F = y.value[_] ?? 0, z = Math.min(F * 4, 1), ue = Math.max(2, z * A * 2), O = p.width - (y.value.length - _) * N - w.value, te = X - ue / 2;
3807
+ for (let H = 0; H < y.value.length; H += 1) {
3808
+ const F = y.value[H] ?? 0, z = Math.min(F * 4, 1), ue = Math.max(2, z * A * 2), O = p.width - (y.value.length - H) * N - w.value, te = X - ue / 2;
3805
3809
  if (O + L <= 0 || O >= p.width)
3806
3810
  continue;
3807
3811
  let G = 1;
@@ -3867,8 +3871,8 @@ const gi = /* @__PURE__ */ se({
3867
3871
  ]));
3868
3872
  }
3869
3873
  });
3870
- var vi = /* @__PURE__ */ ((e) => (e.OnMessagesChanged = "OnMessagesChanged", e.OnStateChanged = "OnStateChanged", e.OnRunStatusChanged = "OnRunStatusChanged", e))(vi || {});
3871
- const mi = [
3874
+ var mi = /* @__PURE__ */ ((e) => (e.OnMessagesChanged = "OnMessagesChanged", e.OnStateChanged = "OnStateChanged", e.OnRunStatusChanged = "OnRunStatusChanged", e))(mi || {});
3875
+ const hi = [
3872
3876
  "OnMessagesChanged",
3873
3877
  "OnStateChanged",
3874
3878
  "OnRunStatusChanged"
@@ -3894,7 +3898,7 @@ function hn(e = {}) {
3894
3898
  () => i ? Ne(e.runtimeAgentId) : void 0
3895
3899
  ), c = l(
3896
3900
  () => Ne(e.threadId) ?? (o.value?.hasExplicitThreadId ? o.value.threadId : void 0)
3897
- ), { copilotkit: u } = Pe(), d = l(() => e.updates ?? mi), y = l(() => u.value.defaultThrottleMs), w = l(() => Ne(e.throttleMs)), g = nt(null), v = nt(null), b = /* @__PURE__ */ new Map(), f = (S, h, x, p) => {
3901
+ ), { copilotkit: u } = Pe(), d = l(() => e.updates ?? hi), y = l(() => u.value.defaultThrottleMs), w = l(() => Ne(e.throttleMs)), g = nt(null), v = nt(null), b = /* @__PURE__ */ new Map(), f = (S, h, x, p) => {
3898
3902
  const E = new xn({
3899
3903
  runtimeUrl: h,
3900
3904
  agentId: S,
@@ -4037,7 +4041,7 @@ function hn(e = {}) {
4037
4041
  { immediate: !0 }
4038
4042
  ), { agent: g };
4039
4043
  }
4040
- function hi(e = {}) {
4044
+ function bi(e = {}) {
4041
4045
  const { copilotkit: n } = Pe(), t = Fe(), a = l(
4042
4046
  () => Ne(e.agentId) ?? t.value?.agentId ?? at
4043
4047
  ), i = T([]), o = T(!1), s = () => {
@@ -4081,7 +4085,7 @@ function hi(e = {}) {
4081
4085
  }
4082
4086
  };
4083
4087
  }
4084
- function bi(e) {
4088
+ function ki(e) {
4085
4089
  const n = nt([]), t = T(!1), a = T(null), i = T(null), o = T(Ne(e.config)), s = nt(n.value), r = l(() => o.value?.enabled ?? !1);
4086
4090
  U(
4087
4091
  () => Ne(e.config),
@@ -4132,12 +4136,12 @@ function bi(e) {
4132
4136
  try {
4133
4137
  let j, W;
4134
4138
  if (S?.onUpload) {
4135
- const A = await S.onUpload(L), { metadata: M, ..._ } = A;
4136
- j = _, W = M;
4139
+ const A = await S.onUpload(L), { metadata: M, ...H } = A;
4140
+ j = H, W = M;
4137
4141
  } else
4138
4142
  j = { type: "data", value: await Pa(L), mimeType: L.type };
4139
4143
  let X;
4140
- B === "video" && (X = await Ha(L)), u(
4144
+ B === "video" && (X = await _a(L)), u(
4141
4145
  (A) => A.map(
4142
4146
  (M) => M.id === N ? {
4143
4147
  ...M,
@@ -4220,7 +4224,7 @@ function bi(e) {
4220
4224
  consumeAttachments: f
4221
4225
  };
4222
4226
  }
4223
- async function ki(e) {
4227
+ async function yi(e) {
4224
4228
  return await new Promise((n, t) => {
4225
4229
  const a = new FileReader();
4226
4230
  a.onloadend = () => {
@@ -4232,10 +4236,10 @@ async function ki(e) {
4232
4236
  ), a.readAsDataURL(e);
4233
4237
  });
4234
4238
  }
4235
- function yi(e) {
4239
+ function wi(e) {
4236
4240
  return typeof e == "object" && e !== null && "error" in e && "message" in e && typeof e.error == "string" && typeof e.message == "string";
4237
4241
  }
4238
- function wi(e) {
4242
+ function xi(e) {
4239
4243
  return {
4240
4244
  code: e.error,
4241
4245
  message: e.message,
@@ -4248,7 +4252,7 @@ class It extends Error {
4248
4252
  super(n.message), this.name = "TranscriptionError", this.info = n;
4249
4253
  }
4250
4254
  }
4251
- async function xi(e, n, t = "recording.webm") {
4255
+ async function Ci(e, n, t = "recording.webm") {
4252
4256
  const a = e.runtimeUrl;
4253
4257
  if (!a)
4254
4258
  throw new It({
@@ -4260,7 +4264,7 @@ async function xi(e, n, t = "recording.webm") {
4260
4264
  let o;
4261
4265
  try {
4262
4266
  if (e.runtimeTransport === "single") {
4263
- const s = await ki(n);
4267
+ const s = await yi(n);
4264
4268
  i["Content-Type"] = "application/json", o = await fetch(a, {
4265
4269
  method: "POST",
4266
4270
  headers: i,
@@ -4300,7 +4304,7 @@ async function xi(e, n, t = "recording.webm") {
4300
4304
  retryable: o.status >= 500
4301
4305
  });
4302
4306
  }
4303
- throw yi(s) ? new It(wi(s)) : new It({
4307
+ throw wi(s) ? new It(xi(s)) : new It({
4304
4308
  code: rt.PROVIDER_ERROR,
4305
4309
  message: typeof s == "object" && s !== null && "message" in s ? String(s.message) : "Transcription failed",
4306
4310
  retryable: o.status >= 500
@@ -4308,7 +4312,7 @@ async function xi(e, n, t = "recording.webm") {
4308
4312
  }
4309
4313
  return await o.json();
4310
4314
  }
4311
- function Ci() {
4315
+ function Ti() {
4312
4316
  const e = typeof window < "u" ? window.innerHeight : 0, n = T(!1), t = T(0), a = T(e), i = T(e), o = () => {
4313
4317
  if (typeof window > "u") return;
4314
4318
  const r = window.visualViewport;
@@ -4328,14 +4332,14 @@ function Ci() {
4328
4332
  viewportHeight: Bt(i)
4329
4333
  };
4330
4334
  }
4331
- const Ti = {
4335
+ const Si = {
4332
4336
  id: null,
4333
4337
  sendNonce: 0
4334
4338
  }, ia = /* @__PURE__ */ Symbol("LastUserMessage");
4335
- function Si() {
4336
- return T({ ...Ti });
4339
+ function Ii() {
4340
+ return T({ ...Si });
4337
4341
  }
4338
- function Ii({
4342
+ function Ai({
4339
4343
  scrollRef: e,
4340
4344
  contentRef: n,
4341
4345
  spacerRef: t,
@@ -4343,7 +4347,7 @@ function Ii({
4343
4347
  }) {
4344
4348
  const i = Rt(
4345
4349
  ia,
4346
- Si(),
4350
+ Ii(),
4347
4351
  !0
4348
4352
  );
4349
4353
  let o = -1, s = null, r = null;
@@ -4391,19 +4395,19 @@ function Nn(e, n) {
4391
4395
  const t = e.getBoundingClientRect(), a = n.getBoundingClientRect();
4392
4396
  return t.top - a.top + n.scrollTop;
4393
4397
  }
4394
- const Ai = { class: "cpk:pointer-events-auto cpk:mx-auto cpk:max-w-3xl cpk:px-4 cpk:py-0 cpk:@3xl:px-0 cpk:[div[data-sidebar-chat]_&]:px-8 cpk:[div[data-popup-chat]_&]:px-4" }, Ri = ["data-layout"], Mi = ["data-layout"], $i = ["aria-label", "disabled"], Ei = {
4398
+ const Ri = { class: "cpk:pointer-events-auto cpk:mx-auto cpk:max-w-3xl cpk:px-4 cpk:py-0 cpk:@3xl:px-0 cpk:[div[data-sidebar-chat]_&]:px-8 cpk:[div[data-popup-chat]_&]:px-4" }, Mi = ["data-layout"], $i = ["data-layout"], Ei = ["aria-label", "disabled"], Fi = {
4395
4399
  key: 0,
4396
4400
  class: "cpk:my-1 cpk:h-px cpk:bg-border cpk:dark:bg-[#333333]"
4397
- }, Fi = ["onClick"], Oi = {
4401
+ }, Oi = ["onClick"], Li = {
4398
4402
  key: 1,
4399
4403
  class: "cpk:flex cpk:w-full cpk:items-center cpk:justify-center cpk:px-5 cpk:py-3"
4400
- }, Li = ["value", "placeholder", "disabled"], Di = {
4404
+ }, Di = ["value", "placeholder", "disabled"], Bi = {
4401
4405
  key: 0,
4402
4406
  class: "cpk:px-3 cpk:py-2 cpk:text-sm cpk:text-muted-foreground"
4403
- }, Bi = ["data-slash-index", "aria-selected", "data-active", "onMouseenter", "onMousedown"], Ui = ["aria-label", "disabled"], ji = ["aria-label", "disabled"], Ni = ["aria-label", "disabled"], Vi = { class: "cpk:mr-[10px]" }, Pi = ["disabled"], Hi = {
4407
+ }, Ui = ["data-slash-index", "aria-selected", "data-active", "onMouseenter", "onMousedown"], ji = ["aria-label", "disabled"], Ni = ["aria-label", "disabled"], Vi = ["aria-label", "disabled"], Pi = { class: "cpk:mr-[10px]" }, _i = ["disabled"], Hi = {
4404
4408
  "data-testid": "copilot-chat-input-disclaimer",
4405
4409
  class: "cpk:mx-auto cpk:max-w-3xl cpk:px-4 cpk:py-3 cpk:text-center cpk:text-xs cpk:text-muted-foreground"
4406
- }, _t = /* @__PURE__ */ se({
4410
+ }, Ht = /* @__PURE__ */ se({
4407
4411
  inheritAttrs: !1,
4408
4412
  __name: "CopilotChatInput",
4409
4413
  props: {
@@ -4439,8 +4443,8 @@ const Ai = { class: "cpk:pointer-events-auto cpk:mx-auto cpk:max-w-3xl cpk:px-4
4439
4443
  let W = null, X = null;
4440
4444
  const A = l(() => t.modelValue !== void 0), M = l(
4441
4445
  () => A.value ? t.modelValue ?? "" : v.value
4442
- ), _ = l(() => o.value?.labels ?? lt), F = l(
4443
- () => t.placeholder ?? _.value.chatInputPlaceholder
4446
+ ), H = l(() => o.value?.labels ?? lt), F = l(
4447
+ () => t.placeholder ?? H.value.chatInputPlaceholder
4444
4448
  ), z = l(
4445
4449
  () => t.mode === "input" && f.value === "expanded"
4446
4450
  ), ue = l(
@@ -4471,13 +4475,13 @@ const Ai = { class: "cpk:pointer-events-auto cpk:mx-auto cpk:max-w-3xl cpk:px-4
4471
4475
  }
4472
4476
  function st() {
4473
4477
  return ae.value ? {
4474
- label: _.value.chatInputToolbarAddButtonLabel,
4478
+ label: H.value.chatInputToolbarAddButtonLabel,
4475
4479
  action: () => a("add-file")
4476
4480
  } : null;
4477
4481
  }
4478
- function He() {
4479
- const R = [], H = st();
4480
- if (H && R.push(H), t.toolsMenu.length > 0) {
4482
+ function _e() {
4483
+ const R = [], _ = st();
4484
+ if (_ && R.push(_), t.toolsMenu.length > 0) {
4481
4485
  R.length > 0 && R.push("-");
4482
4486
  for (const ie of t.toolsMenu) {
4483
4487
  if (ie === "-") {
@@ -4493,22 +4497,22 @@ const Ai = { class: "cpk:pointer-events-auto cpk:mx-auto cpk:max-w-3xl cpk:px-4
4493
4497
  R.pop();
4494
4498
  return R;
4495
4499
  }
4496
- const Be = l(() => He()), Ce = l(() => Be.value.length > 0);
4500
+ const Be = l(() => _e()), Ce = l(() => Be.value.length > 0);
4497
4501
  function P(R) {
4498
- const H = /* @__PURE__ */ new Set(), ie = [], fe = (Ue) => {
4502
+ const _ = /* @__PURE__ */ new Set(), ie = [], fe = (Ue) => {
4499
4503
  for (const xe of Ue)
4500
4504
  if (xe !== "-") {
4501
4505
  if (Ge(xe) && xe.items.length > 0) {
4502
4506
  fe(xe.items);
4503
4507
  continue;
4504
4508
  }
4505
- !xe.action || H.has(xe.label) || (H.add(xe.label), ie.push(xe));
4509
+ !xe.action || _.has(xe.label) || (_.add(xe.label), ie.push(xe));
4506
4510
  }
4507
4511
  };
4508
4512
  return fe(R), ie;
4509
4513
  }
4510
4514
  const de = l(() => P(Be.value));
4511
- function $e(R, H = 0, ie = "root") {
4515
+ function $e(R, _ = 0, ie = "root") {
4512
4516
  const fe = [];
4513
4517
  for (const [Ue, xe] of R.entries()) {
4514
4518
  const We = `${ie}-${Ue}`;
@@ -4521,15 +4525,15 @@ const Ai = { class: "cpk:pointer-events-auto cpk:mx-auto cpk:max-w-3xl cpk:px-4
4521
4525
  type: "label",
4522
4526
  key: `label-${We}`,
4523
4527
  label: xe.label,
4524
- depth: H
4525
- }), fe.push(...$e(xe.items, H + 1, We));
4528
+ depth: _
4529
+ }), fe.push(...$e(xe.items, _ + 1, We));
4526
4530
  continue;
4527
4531
  }
4528
4532
  xe.action && fe.push({
4529
4533
  type: "item",
4530
4534
  key: `item-${We}`,
4531
4535
  label: xe.label,
4532
- depth: H,
4536
+ depth: _,
4533
4537
  action: xe.action
4534
4538
  });
4535
4539
  }
@@ -4541,16 +4545,16 @@ const Ai = { class: "cpk:pointer-events-auto cpk:mx-auto cpk:max-w-3xl cpk:px-4
4541
4545
  const R = k.value.trim().toLowerCase();
4542
4546
  if (R.length === 0)
4543
4547
  return de.value;
4544
- const H = [], ie = [];
4548
+ const _ = [], ie = [];
4545
4549
  for (const fe of de.value) {
4546
4550
  const Ue = fe.label.toLowerCase();
4547
4551
  if (Ue.startsWith(R)) {
4548
- H.push(fe);
4552
+ _.push(fe);
4549
4553
  continue;
4550
4554
  }
4551
4555
  Ue.includes(R) && ie.push(fe);
4552
4556
  }
4553
- return [...H, ...ie];
4557
+ return [..._, ...ie];
4554
4558
  }), yt = l(
4555
4559
  () => k.value !== null && de.value.length > 0
4556
4560
  );
@@ -4566,8 +4570,8 @@ const Ai = { class: "cpk:pointer-events-auto cpk:mx-auto cpk:max-w-3xl cpk:px-4
4566
4570
  return;
4567
4571
  }
4568
4572
  if (R.startsWith("/")) {
4569
- const H = R.split(/\r?\n/, 1)[0] ?? "";
4570
- k.value = H.slice(1);
4573
+ const _ = R.split(/\r?\n/, 1)[0] ?? "";
4574
+ k.value = _.slice(1);
4571
4575
  return;
4572
4576
  }
4573
4577
  k.value = null;
@@ -4580,14 +4584,14 @@ const Ai = { class: "cpk:pointer-events-auto cpk:mx-auto cpk:max-w-3xl cpk:px-4
4580
4584
  function he() {
4581
4585
  if (t.mode !== "input" || t.disabled || !te.value)
4582
4586
  return;
4583
- const H = (r.value?.value ?? M.value).trim();
4584
- H && (a("submit-message", H), t.clearOnSubmit && wt(), r.value?.focus());
4587
+ const _ = (r.value?.value ?? M.value).trim();
4588
+ _ && (a("submit-message", _), t.clearOnSubmit && wt(), r.value?.focus());
4585
4589
  }
4586
4590
  function me(R) {
4587
- const H = R.target.value;
4588
- ht(H), xt(H);
4591
+ const _ = R.target.value;
4592
+ ht(_), xt(_);
4589
4593
  }
4590
- function _e() {
4594
+ function He() {
4591
4595
  if (ue.value) {
4592
4596
  G.value && a("stop");
4593
4597
  return;
@@ -4606,9 +4610,9 @@ const Ai = { class: "cpk:pointer-events-auto cpk:mx-auto cpk:max-w-3xl cpk:px-4
4606
4610
  return;
4607
4611
  }
4608
4612
  if (R.key === "Enter") {
4609
- const H = m.value >= 0 ? Ee.value[m.value] : void 0;
4610
- if (H) {
4611
- R.preventDefault(), q(H);
4613
+ const _ = m.value >= 0 ? Ee.value[m.value] : void 0;
4614
+ if (_) {
4615
+ R.preventDefault(), q(_);
4612
4616
  return;
4613
4617
  }
4614
4618
  }
@@ -4641,27 +4645,27 @@ const Ai = { class: "cpk:pointer-events-auto cpk:mx-auto cpk:max-w-3xl cpk:px-4
4641
4645
  const R = g.value;
4642
4646
  if (R && R.state === "recording")
4643
4647
  try {
4644
- const H = await R.stop();
4645
- a("finish-transcribe-with-audio", H);
4646
- } catch (H) {
4647
- console.error("Failed to stop recording:", H);
4648
+ const _ = await R.stop();
4649
+ a("finish-transcribe-with-audio", _);
4650
+ } catch (_) {
4651
+ console.error("Failed to stop recording:", _);
4648
4652
  }
4649
4653
  a("finish-transcribe");
4650
4654
  }
4651
4655
  function pt(R) {
4652
- const H = R.target;
4653
- !H || t.mode !== "input" || H.tagName === "BUTTON" || H.closest("button") || r.value?.focus();
4656
+ const _ = R.target;
4657
+ !_ || t.mode !== "input" || _.tagName === "BUTTON" || _.closest("button") || r.value?.focus();
4654
4658
  }
4655
4659
  function K() {
4656
4660
  const R = r.value;
4657
4661
  if (!R || b.value)
4658
4662
  return;
4659
- const H = R.value, ie = R.style.height;
4663
+ const _ = R.value, ie = R.style.height;
4660
4664
  R.style.height = "auto";
4661
4665
  const fe = window.getComputedStyle(R), Ue = parseFloat(fe.paddingLeft) || 0, xe = parseFloat(fe.paddingRight) || 0, We = parseFloat(fe.paddingTop) || 0, je = parseFloat(fe.paddingBottom) || 0;
4662
4666
  R.value = "";
4663
4667
  const ft = R.scrollHeight;
4664
- R.value = H;
4668
+ R.value = _;
4665
4669
  const Re = (ft - We - je) * t.maxRows + We + je;
4666
4670
  x.value = {
4667
4671
  singleLineHeight: ft,
@@ -4675,20 +4679,20 @@ const Ai = { class: "cpk:pointer-events-auto cpk:mx-auto cpk:max-w-3xl cpk:px-4
4675
4679
  if (!R)
4676
4680
  return 0;
4677
4681
  x.value.singleLineHeight === 0 && K();
4678
- const { maxHeight: H } = x.value;
4679
- H && (R.style.maxHeight = `${H}px`), R.style.height = "auto";
4682
+ const { maxHeight: _ } = x.value;
4683
+ _ && (R.style.maxHeight = `${_}px`), R.style.height = "auto";
4680
4684
  const ie = R.scrollHeight;
4681
- return R.style.height = `${H ? Math.min(ie, H) : ie}px`, ie;
4685
+ return R.style.height = `${_ ? Math.min(ie, _) : ie}px`, ie;
4682
4686
  }
4683
4687
  function le(R) {
4684
4688
  f.value !== R && (E.value = !0, f.value = R);
4685
4689
  }
4686
4690
  function we(R) {
4687
- const H = window.getComputedStyle(R);
4688
- if (H.font?.trim())
4689
- return H.font;
4690
- if (H.fontSize && H.fontFamily) {
4691
- const ie = `${H.fontStyle} ${H.fontVariant} ${H.fontWeight} ${H.fontSize}/${H.lineHeight} ${H.fontFamily}`;
4691
+ const _ = window.getComputedStyle(R);
4692
+ if (_.font?.trim())
4693
+ return _.font;
4694
+ if (_.fontSize && _.fontFamily) {
4695
+ const ie = `${_.fontStyle} ${_.fontVariant} ${_.fontWeight} ${_.fontSize}/${_.lineHeight} ${_.fontFamily}`;
4692
4696
  if (ie.trim())
4693
4697
  return ie;
4694
4698
  }
@@ -4697,13 +4701,13 @@ const Ai = { class: "cpk:pointer-events-auto cpk:mx-auto cpk:max-w-3xl cpk:px-4
4697
4701
  )), null;
4698
4702
  }
4699
4703
  function ct() {
4700
- const R = c.value, H = u.value, ie = d.value;
4701
- if (!R || !H || !ie)
4704
+ const R = c.value, _ = u.value, ie = d.value;
4705
+ if (!R || !_ || !ie)
4702
4706
  return B.value = null, null;
4703
4707
  const fe = window.getComputedStyle(R), Ue = parseFloat(fe.paddingLeft) || 0, xe = parseFloat(fe.paddingRight) || 0, We = parseFloat(fe.columnGap) || 0, je = R.clientWidth - Ue - xe;
4704
4708
  if (je <= 0)
4705
4709
  return B.value = null, null;
4706
- const ft = H.getBoundingClientRect().width, qe = ie.getBoundingClientRect().width, Re = Math.max(
4710
+ const ft = _.getBoundingClientRect().width, qe = ie.getBoundingClientRect().width, Re = Math.max(
4707
4711
  je - ft - qe - We * 2,
4708
4712
  0
4709
4713
  );
@@ -4725,8 +4729,8 @@ const Ai = { class: "cpk:pointer-events-auto cpk:mx-auto cpk:max-w-3xl cpk:px-4
4725
4729
  if (!R || !c.value || !u.value || !d.value)
4726
4730
  return;
4727
4731
  x.value.singleLineHeight === 0 && K();
4728
- const H = re(), ie = x.value.singleLineHeight, fe = M.value.includes(`
4729
- `), Ue = ie > 0 ? H > ie + 1 : !1;
4732
+ const _ = re(), ie = x.value.singleLineHeight, fe = M.value.includes(`
4733
+ `), Ue = ie > 0 ? _ > ie + 1 : !1;
4730
4734
  let xe = fe || Ue;
4731
4735
  if (!xe) {
4732
4736
  const We = B.value ?? ct();
@@ -4780,8 +4784,8 @@ const Ai = { class: "cpk:pointer-events-auto cpk:mx-auto cpk:max-w-3xl cpk:px-4
4780
4784
  de.value.length === 0 && (k.value = null);
4781
4785
  }), U(
4782
4786
  [k, () => Ee.value.length],
4783
- ([R, H]) => {
4784
- R !== null && R !== S.value && H > 0 && (m.value = 0), S.value = R;
4787
+ ([R, _]) => {
4788
+ R !== null && R !== S.value && _ > 0 && (m.value = 0), S.value = R;
4785
4789
  },
4786
4790
  { immediate: !0 }
4787
4791
  ), U(
@@ -4802,19 +4806,19 @@ const Ai = { class: "cpk:pointer-events-auto cpk:mx-auto cpk:max-w-3xl cpk:px-4
4802
4806
  () => t.mode,
4803
4807
  async (R) => {
4804
4808
  R !== "input" && (f.value = "compact", k.value = null, Le());
4805
- const H = g.value;
4806
- if (H) {
4809
+ const _ = g.value;
4810
+ if (_) {
4807
4811
  if (R === "transcribe") {
4808
4812
  try {
4809
- await H.start();
4813
+ await _.start();
4810
4814
  } catch (ie) {
4811
4815
  console.error(ie);
4812
4816
  }
4813
4817
  return;
4814
4818
  }
4815
- if (H.state === "recording")
4819
+ if (_.state === "recording")
4816
4820
  try {
4817
- await H.stop();
4821
+ await _.stop();
4818
4822
  } catch {
4819
4823
  }
4820
4824
  }
@@ -4826,8 +4830,8 @@ const Ai = { class: "cpk:pointer-events-auto cpk:mx-auto cpk:max-w-3xl cpk:px-4
4826
4830
  if (!(!R || t.mode !== "transcribe") && R.state === "idle")
4827
4831
  try {
4828
4832
  await R.start();
4829
- } catch (H) {
4830
- console.error(H);
4833
+ } catch (_) {
4834
+ console.error(_);
4831
4835
  }
4832
4836
  },
4833
4837
  { immediate: !0 }
@@ -4845,8 +4849,8 @@ const Ai = { class: "cpk:pointer-events-auto cpk:mx-auto cpk:max-w-3xl cpk:px-4
4845
4849
  ), Ve(() => {
4846
4850
  if (t.autoFocus && t.mode === "input" && r.value?.focus(), Qe(), typeof ResizeObserver < "u") {
4847
4851
  const R = /* @__PURE__ */ new Set();
4848
- c.value && R.add(c.value), u.value && R.add(u.value), d.value && R.add(d.value), W = new ResizeObserver((H) => {
4849
- const ie = H.some(
4852
+ c.value && R.add(c.value), u.value && R.add(u.value), d.value && R.add(d.value), W = new ResizeObserver((_) => {
4853
+ const ie = _.some(
4850
4854
  (fe) => R.has(fe.target)
4851
4855
  );
4852
4856
  ut(ie);
@@ -4855,12 +4859,12 @@ const Ai = { class: "cpk:pointer-events-auto cpk:mx-auto cpk:max-w-3xl cpk:px-4
4855
4859
  X = (R) => {
4856
4860
  if (!h.value)
4857
4861
  return;
4858
- const H = R.target;
4859
- H && (w.value?.contains(H) || u.value?.contains(H) || Le());
4862
+ const _ = R.target;
4863
+ _ && (w.value?.contains(_) || u.value?.contains(_) || Le());
4860
4864
  }, document.addEventListener("mousedown", X);
4861
4865
  }), Ae(() => {
4862
4866
  X && (document.removeEventListener("mousedown", X), X = null), W?.disconnect(), W = null, p.value !== null && (cancelAnimationFrame(p.value), p.value = null);
4863
- }), (R, H) => ($(), V("div", pe({
4867
+ }), (R, _) => ($(), V("div", pe({
4864
4868
  "data-copilotkit": "",
4865
4869
  "data-testid": "copilot-chat-input-container",
4866
4870
  class: Ze.value,
@@ -4870,7 +4874,7 @@ const Ai = { class: "cpk:pointer-events-auto cpk:mx-auto cpk:max-w-3xl cpk:px-4
4870
4874
  ...e.positioning === "absolute" || e.bottomAnchored ? { paddingBottom: "var(--copilotkit-license-banner-offset, 0px)" } : {}
4871
4875
  }
4872
4876
  }, et.value), [
4873
- D("div", Ai, [
4877
+ D("div", Ri, [
4874
4878
  I(R.$slots, "layout", {
4875
4879
  mode: e.mode,
4876
4880
  isMultiline: z.value,
@@ -4886,7 +4890,7 @@ const Ai = { class: "cpk:pointer-events-auto cpk:mx-auto cpk:max-w-3xl cpk:px-4
4886
4890
  onUpdateValue: ht,
4887
4891
  onSubmit: he,
4888
4892
  onKeydown: ze,
4889
- onSendClick: _e,
4893
+ onSendClick: He,
4890
4894
  onStartTranscribe: () => a("start-transcribe"),
4891
4895
  onCancelTranscribe: () => a("cancel-transcribe"),
4892
4896
  onFinishTranscribe: ye
@@ -4920,18 +4924,18 @@ const Ai = { class: "cpk:pointer-events-auto cpk:mx-auto cpk:max-w-3xl cpk:px-4
4920
4924
  disabled: e.disabled || e.mode === "transcribe" || !Ce.value,
4921
4925
  menuOpen: h.value,
4922
4926
  toggleMenu: Se,
4923
- labels: _.value
4927
+ labels: H.value
4924
4928
  }, () => [
4925
4929
  D("button", {
4926
4930
  type: "button",
4927
4931
  "data-testid": "copilot-chat-input-add",
4928
- "aria-label": _.value.chatInputToolbarAddButtonLabel,
4932
+ "aria-label": H.value.chatInputToolbarAddButtonLabel,
4929
4933
  disabled: e.disabled || e.mode === "transcribe" || !Ce.value,
4930
4934
  class: "cpk:ml-1 cpk:inline-flex cpk:h-9 cpk:w-9 cpk:shrink-0 cpk:items-center cpk:justify-center cpk:rounded-full cpk:bg-transparent cpk:text-[#444444] cpk:transition-colors cpk:hover:bg-[#f8f8f8] cpk:hover:text-[#333333] cpk:disabled:cursor-not-allowed cpk:disabled:opacity-50 cpk:disabled:hover:bg-transparent cpk:disabled:hover:text-[#444444] cpk:dark:text-white cpk:dark:hover:bg-[#404040] cpk:dark:hover:text-[#FFFFFF] cpk:dark:disabled:hover:bg-transparent cpk:dark:disabled:hover:text-[#CCCCCC]",
4931
- onClick: Ht(Se, ["stop"])
4935
+ onClick: _t(Se, ["stop"])
4932
4936
  }, [
4933
4937
  oe(Y(To), { class: "cpk:size-[20px]" })
4934
- ], 8, $i)
4938
+ ], 8, Ei)
4935
4939
  ]),
4936
4940
  h.value && Ce.value ? ($(), V("div", {
4937
4941
  key: 0,
@@ -4943,7 +4947,7 @@ const Ai = { class: "cpk:pointer-events-auto cpk:mx-auto cpk:max-w-3xl cpk:px-4
4943
4947
  ($(!0), V(Ie, null, Xe(tt.value, (ie) => ($(), V(Ie, {
4944
4948
  key: ie.key
4945
4949
  }, [
4946
- ie.type === "separator" ? ($(), V("div", Ei)) : ie.type === "label" ? ($(), V("div", {
4950
+ ie.type === "separator" ? ($(), V("div", Fi)) : ie.type === "label" ? ($(), V("div", {
4947
4951
  key: 1,
4948
4952
  class: "cpk:flex cpk:items-center cpk:gap-1 cpk:px-3 cpk:py-1.5 cpk:text-xs cpk:font-semibold cpk:text-muted-foreground",
4949
4953
  style: mt({ paddingLeft: `${12 + ie.depth * 12}px` })
@@ -4957,7 +4961,7 @@ const Ai = { class: "cpk:pointer-events-auto cpk:mx-auto cpk:max-w-3xl cpk:px-4
4957
4961
  class: "cpk:w-full cpk:px-3 cpk:py-2 cpk:text-left cpk:text-sm cpk:transition-colors cpk:hover:bg-muted cpk:dark:hover:bg-[#2f2f2f]",
4958
4962
  style: mt({ paddingLeft: `${12 + ie.depth * 12}px` }),
4959
4963
  onClick: (fe) => Je(ie.action)
4960
- }, be(ie.label), 13, Fi))
4964
+ }, be(ie.label), 13, Oi))
4961
4965
  ], 64))), 128))
4962
4966
  ], 512)) : ee("", !0)
4963
4967
  ], 2),
@@ -4968,11 +4972,11 @@ const Ai = { class: "cpk:pointer-events-auto cpk:mx-auto cpk:max-w-3xl cpk:px-4
4968
4972
  ])
4969
4973
  }, [
4970
4974
  e.mode === "transcribe" ? I(R.$slots, "audio-recorder", { key: 0 }, () => [
4971
- oe(gi, {
4975
+ oe(vi, {
4972
4976
  ref_key: "audioRecorderRef",
4973
4977
  ref: g
4974
4978
  }, null, 512)
4975
- ]) : e.mode === "processing" ? ($(), V("div", Oi, [
4979
+ ]) : e.mode === "processing" ? ($(), V("div", Li, [
4976
4980
  oe(Y(Qn), { class: "cpk:size-[26px] cpk:animate-spin cpk:text-muted-foreground" })
4977
4981
  ])) : ($(), V(Ie, { key: 2 }, [
4978
4982
  I(R.$slots, "text-area", {
@@ -4984,7 +4988,7 @@ const Ai = { class: "cpk:pointer-events-auto cpk:mx-auto cpk:max-w-3xl cpk:px-4
4984
4988
  autoFocus: e.autoFocus,
4985
4989
  isExpanded: z.value,
4986
4990
  rows: 1,
4987
- labels: _.value
4991
+ labels: H.value
4988
4992
  }, () => [
4989
4993
  D("textarea", {
4990
4994
  ref_key: "textareaRef",
@@ -5001,9 +5005,9 @@ const Ai = { class: "cpk:pointer-events-auto cpk:mx-auto cpk:max-w-3xl cpk:px-4
5001
5005
  style: { overflow: "auto", resize: "none" },
5002
5006
  onInput: me,
5003
5007
  onKeydown: ze,
5004
- onCompositionstart: H[0] || (H[0] = (ie) => b.value = !0),
5005
- onCompositionend: H[1] || (H[1] = (ie) => b.value = !1)
5006
- }, null, 42, Li)
5008
+ onCompositionstart: _[0] || (_[0] = (ie) => b.value = !0),
5009
+ onCompositionend: _[1] || (_[1] = (ie) => b.value = !1)
5010
+ }, null, 42, Di)
5007
5011
  ]),
5008
5012
  yt.value ? ($(), V("div", {
5009
5013
  key: 0,
@@ -5015,7 +5019,7 @@ const Ai = { class: "cpk:pointer-events-auto cpk:mx-auto cpk:max-w-3xl cpk:px-4
5015
5019
  class: "cpk:absolute cpk:bottom-full cpk:left-0 cpk:right-0 cpk:z-30 cpk:mb-2 cpk:max-h-64 cpk:overflow-y-auto cpk:rounded-lg cpk:border cpk:border-border cpk:bg-white cpk:shadow-lg cpk:dark:border-[#3a3a3a] cpk:dark:bg-[#1f1f1f]",
5016
5020
  style: { maxHeight: "200px" }
5017
5021
  }, [
5018
- Ee.value.length === 0 ? ($(), V("div", Di, " No commands found ")) : ($(!0), V(Ie, { key: 1 }, Xe(Ee.value, (ie, fe) => ($(), V("button", {
5022
+ Ee.value.length === 0 ? ($(), V("div", Bi, " No commands found ")) : ($(!0), V(Ie, { key: 1 }, Xe(Ee.value, (ie, fe) => ($(), V("button", {
5019
5023
  key: `${ie.label}-${fe}`,
5020
5024
  type: "button",
5021
5025
  role: "option",
@@ -5027,8 +5031,8 @@ const Ai = { class: "cpk:pointer-events-auto cpk:mx-auto cpk:max-w-3xl cpk:px-4
5027
5031
  fe === m.value ? "cpk:bg-muted cpk:dark:bg-[#2f2f2f]" : "cpk:bg-transparent"
5028
5032
  ]),
5029
5033
  onMouseenter: (Ue) => m.value = fe,
5030
- onMousedown: Ht((Ue) => q(ie), ["prevent"])
5031
- }, be(ie.label), 43, Bi))), 128))
5034
+ onMousedown: _t((Ue) => q(ie), ["prevent"])
5035
+ }, be(ie.label), 43, Ui))), 128))
5032
5036
  ], 512)) : ee("", !0)
5033
5037
  ], 64))
5034
5038
  ], 2),
@@ -5045,67 +5049,67 @@ const Ai = { class: "cpk:pointer-events-auto cpk:mx-auto cpk:max-w-3xl cpk:px-4
5045
5049
  key: 0,
5046
5050
  disabled: e.disabled,
5047
5051
  onClick: () => a("cancel-transcribe"),
5048
- labels: _.value
5052
+ labels: H.value
5049
5053
  }, () => [
5050
5054
  D("button", {
5051
5055
  type: "button",
5052
5056
  "data-testid": "copilot-chat-input-cancel-transcribe",
5053
- "aria-label": _.value.chatInputToolbarCancelTranscribeButtonLabel,
5057
+ "aria-label": H.value.chatInputToolbarCancelTranscribeButtonLabel,
5054
5058
  disabled: e.disabled,
5055
5059
  class: "cpk:mr-2 cpk:inline-flex cpk:h-9 cpk:w-9 cpk:shrink-0 cpk:items-center cpk:justify-center cpk:rounded-full cpk:bg-transparent cpk:text-[#444444] cpk:transition-colors cpk:hover:bg-[#f8f8f8] cpk:hover:text-[#333333] cpk:disabled:cursor-not-allowed cpk:disabled:opacity-50 cpk:dark:text-white cpk:dark:hover:bg-[#404040] cpk:dark:hover:text-[#FFFFFF]",
5056
- onClick: H[2] || (H[2] = (ie) => a("cancel-transcribe"))
5060
+ onClick: _[2] || (_[2] = (ie) => a("cancel-transcribe"))
5057
5061
  }, [
5058
5062
  oe(Y(dn), { class: "cpk:size-[18px]" })
5059
- ], 8, Ui)
5063
+ ], 8, ji)
5060
5064
  ]) : ee("", !0),
5061
5065
  Te.value || R.$slots["finish-transcribe-button"] ? I(R.$slots, "finish-transcribe-button", {
5062
5066
  key: 1,
5063
5067
  disabled: e.disabled,
5064
5068
  onClick: ye,
5065
- labels: _.value
5069
+ labels: H.value
5066
5070
  }, () => [
5067
5071
  D("button", {
5068
5072
  type: "button",
5069
5073
  "data-testid": "copilot-chat-input-finish-transcribe",
5070
- "aria-label": _.value.chatInputToolbarFinishTranscribeButtonLabel,
5074
+ "aria-label": H.value.chatInputToolbarFinishTranscribeButtonLabel,
5071
5075
  disabled: e.disabled,
5072
5076
  class: "cpk:mr-[10px] cpk:inline-flex cpk:h-9 cpk:w-9 cpk:shrink-0 cpk:items-center cpk:justify-center cpk:rounded-full cpk:bg-transparent cpk:text-[#444444] cpk:transition-colors cpk:hover:bg-[#f8f8f8] cpk:hover:text-[#333333] cpk:disabled:cursor-not-allowed cpk:disabled:opacity-50 cpk:dark:text-white cpk:dark:hover:bg-[#404040] cpk:dark:hover:text-[#FFFFFF]",
5073
5077
  onClick: ye
5074
5078
  }, [
5075
5079
  oe(Y(Et), { class: "cpk:size-[18px]" })
5076
- ], 8, ji)
5080
+ ], 8, Ni)
5077
5081
  ]) : ee("", !0)
5078
5082
  ], 64)) : ($(), V(Ie, { key: 1 }, [
5079
5083
  ve.value || R.$slots["start-transcribe-button"] ? I(R.$slots, "start-transcribe-button", {
5080
5084
  key: 0,
5081
5085
  disabled: e.disabled,
5082
5086
  onClick: () => a("start-transcribe"),
5083
- labels: _.value
5087
+ labels: H.value
5084
5088
  }, () => [
5085
5089
  D("button", {
5086
5090
  type: "button",
5087
5091
  "data-testid": "copilot-chat-input-start-transcribe",
5088
- "aria-label": _.value.chatInputToolbarStartTranscribeButtonLabel,
5092
+ "aria-label": H.value.chatInputToolbarStartTranscribeButtonLabel,
5089
5093
  disabled: e.disabled,
5090
5094
  class: "cpk:mr-2 cpk:inline-flex cpk:h-9 cpk:w-9 cpk:shrink-0 cpk:items-center cpk:justify-center cpk:rounded-full cpk:bg-transparent cpk:text-[#444444] cpk:transition-colors cpk:hover:bg-[#f8f8f8] cpk:hover:text-[#333333] cpk:disabled:cursor-not-allowed cpk:disabled:opacity-50 cpk:disabled:hover:bg-transparent cpk:disabled:hover:text-[#444444] cpk:dark:text-white cpk:dark:hover:bg-[#404040] cpk:dark:hover:text-[#FFFFFF] cpk:dark:disabled:hover:bg-transparent cpk:dark:disabled:hover:text-[#CCCCCC]",
5091
- onClick: H[3] || (H[3] = (ie) => a("start-transcribe"))
5095
+ onClick: _[3] || (_[3] = (ie) => a("start-transcribe"))
5092
5096
  }, [
5093
5097
  oe(Y(So), { class: "cpk:size-[18px]" })
5094
- ], 8, Ni)
5098
+ ], 8, Vi)
5095
5099
  ]) : ee("", !0),
5096
5100
  I(R.$slots, "send-button", {
5097
5101
  disabled: Oe.value,
5098
5102
  isProcessing: ue.value,
5099
- onClick: _e
5103
+ onClick: He
5100
5104
  }, () => [
5101
- D("div", Vi, [
5105
+ D("div", Pi, [
5102
5106
  D("button", {
5103
5107
  type: "button",
5104
5108
  "data-testid": "copilot-chat-input-send",
5105
5109
  "aria-label": "Send message",
5106
5110
  disabled: Oe.value,
5107
5111
  class: "cpk:inline-flex cpk:h-9 cpk:w-9 cpk:shrink-0 cpk:items-center cpk:justify-center cpk:rounded-full cpk:bg-black cpk:text-white cpk:transition-colors cpk:hover:opacity-70 cpk:disabled:cursor-not-allowed cpk:disabled:opacity-50 cpk:disabled:bg-[#00000014] cpk:disabled:text-[rgb(13,13,13)] cpk:disabled:hover:opacity-100 cpk:dark:bg-white cpk:dark:text-black cpk:dark:disabled:bg-[#454545] cpk:dark:disabled:text-white",
5108
- onClick: _e
5112
+ onClick: He
5109
5113
  }, [
5110
5114
  ue.value && G.value ? ($(), ge(Y(Io), {
5111
5115
  key: 0,
@@ -5114,58 +5118,58 @@ const Ai = { class: "cpk:pointer-events-auto cpk:mx-auto cpk:max-w-3xl cpk:px-4
5114
5118
  key: 1,
5115
5119
  class: "cpk:size-[18px]"
5116
5120
  }))
5117
- ], 8, Pi)
5121
+ ], 8, _i)
5118
5122
  ])
5119
5123
  ])
5120
5124
  ], 64))
5121
5125
  ], 2)
5122
- ], 10, Mi)
5123
- ], 8, Ri)
5126
+ ], 10, $i)
5127
+ ], 8, Mi)
5124
5128
  ])
5125
5129
  ]),
5126
5130
  O.value ? I(R.$slots, "disclaimer", {
5127
5131
  key: 0,
5128
- labels: _.value
5132
+ labels: H.value
5129
5133
  }, () => [
5130
- D("p", Hi, be(_.value.chatDisclaimerText), 1)
5134
+ D("p", Hi, be(H.value.chatDisclaimerText), 1)
5131
5135
  ]) : ee("", !0)
5132
5136
  ], 16));
5133
5137
  }
5134
- }), _i = ["data-card-type"], zi = {
5138
+ }), zi = ["data-card-type"], Wi = {
5135
5139
  key: 0,
5136
5140
  class: "cpk:absolute cpk:inset-0 cpk:flex cpk:items-center cpk:justify-center cpk:bg-black/40 cpk:z-10",
5137
5141
  "data-testid": "copilot-chat-attachment-uploading-overlay"
5138
- }, Wi = ["onClick"], qi = ["src", "alt"], Ki = {
5142
+ }, qi = ["onClick"], Ki = ["src", "alt"], Gi = {
5139
5143
  key: 1,
5140
5144
  class: "cpk:w-full cpk:h-full cpk:relative"
5141
- }, Gi = ["src", "alt"], Ji = ["src"], Qi = ["onClick"], Xi = {
5145
+ }, Ji = ["src", "alt"], Qi = ["src"], Xi = ["onClick"], Yi = {
5142
5146
  key: 2,
5143
5147
  class: "cpk:flex cpk:flex-col cpk:gap-1 cpk:w-full"
5144
- }, Yi = ["src"], Zi = {
5148
+ }, Zi = ["src"], er = {
5145
5149
  key: 0,
5146
5150
  class: "cpk:text-xs cpk:font-medium cpk:overflow-hidden cpk:text-ellipsis cpk:whitespace-nowrap"
5147
- }, er = ["onClick"], tr = { class: "cpk:w-8 cpk:h-8 cpk:rounded-md cpk:bg-primary cpk:text-primary-foreground cpk:flex cpk:items-center cpk:justify-center cpk:text-[10px] cpk:font-semibold cpk:shrink-0" }, nr = { class: "cpk:flex cpk:flex-col cpk:min-w-0" }, ar = {
5151
+ }, tr = ["onClick"], nr = { class: "cpk:w-8 cpk:h-8 cpk:rounded-md cpk:bg-primary cpk:text-primary-foreground cpk:flex cpk:items-center cpk:justify-center cpk:text-[10px] cpk:font-semibold cpk:shrink-0" }, ar = { class: "cpk:flex cpk:flex-col cpk:min-w-0" }, or = {
5148
5152
  class: "cpk:text-xs cpk:font-medium cpk:break-all cpk:leading-tight",
5149
5153
  "data-testid": "copilot-chat-attachment-document-filename"
5150
- }, or = {
5154
+ }, sr = {
5151
5155
  key: 0,
5152
5156
  class: "cpk:text-[11px] cpk:text-muted-foreground"
5153
- }, sr = {
5157
+ }, ir = {
5154
5158
  key: 2,
5155
5159
  class: "cpk:w-full cpk:h-full cpk:bg-muted-foreground/20",
5156
5160
  "data-testid": "copilot-chat-attachment-placeholder"
5157
- }, ir = ["onClick"], rr = ["src", "alt"], lr = ["src"], cr = ["src", "title"], ur = {
5161
+ }, rr = ["onClick"], lr = ["src", "alt"], cr = ["src"], ur = ["src", "title"], dr = {
5158
5162
  key: 1,
5159
5163
  class: "cpk:w-[90vw] cpk:max-w-[800px] cpk:max-h-[90vh] cpk:overflow-auto cpk:rounded-lg cpk:bg-white cpk:dark:bg-gray-900 cpk:p-6"
5160
- }, dr = {
5164
+ }, pr = {
5161
5165
  key: 0,
5162
5166
  class: "cpk:text-sm cpk:whitespace-pre-wrap cpk:wrap-break-word cpk:text-gray-800 cpk:dark:text-gray-200 cpk:font-mono cpk:m-0",
5163
5167
  "data-testid": "copilot-chat-attachment-lightbox-document-text"
5164
- }, pr = ["src", "title"], fr = {
5168
+ }, fr = ["src", "title"], gr = {
5165
5169
  key: 2,
5166
5170
  class: "cpk:flex cpk:flex-col cpk:items-center cpk:gap-4 cpk:p-8 cpk:rounded-lg cpk:bg-white cpk:dark:bg-gray-900",
5167
5171
  "data-testid": "copilot-chat-attachment-lightbox-document-fallback"
5168
- }, gr = { class: "cpk:w-16 cpk:h-16 cpk:rounded-xl cpk:bg-primary cpk:text-primary-foreground cpk:flex cpk:items-center cpk:justify-center cpk:text-xl cpk:font-bold" }, vr = { class: "cpk:text-center" }, mr = { class: "cpk:text-base cpk:font-medium cpk:text-gray-800 cpk:dark:text-gray-200" }, hr = { class: "cpk:text-sm cpk:text-gray-500 cpk:dark:text-gray-400 cpk:mt-1" }, Vn = /* @__PURE__ */ se({
5172
+ }, vr = { class: "cpk:w-16 cpk:h-16 cpk:rounded-xl cpk:bg-primary cpk:text-primary-foreground cpk:flex cpk:items-center cpk:justify-center cpk:text-xl cpk:font-bold" }, mr = { class: "cpk:text-center" }, hr = { class: "cpk:text-base cpk:font-medium cpk:text-gray-800 cpk:dark:text-gray-200" }, br = { class: "cpk:text-sm cpk:text-gray-500 cpk:dark:text-gray-400 cpk:mt-1" }, Vn = /* @__PURE__ */ se({
5169
5173
  __name: "CopilotChatAttachmentQueue",
5170
5174
  props: {
5171
5175
  attachments: { default: () => [] },
@@ -5264,7 +5268,7 @@ const Ai = { class: "cpk:pointer-events-auto cpk:mx-auto cpk:max-w-3xl cpk:px-4
5264
5268
  "data-testid": "copilot-chat-attachment-item",
5265
5269
  "data-card-type": m.type
5266
5270
  }, [
5267
- m.status === "uploading" ? ($(), V("div", zi, [...k[1] || (k[1] = [
5271
+ m.status === "uploading" ? ($(), V("div", Wi, [...k[1] || (k[1] = [
5268
5272
  D("div", { class: "cpk:w-5 cpk:h-5 cpk:border-2 cpk:border-white cpk:border-t-transparent cpk:rounded-full cpk:animate-spin" }, null, -1)
5269
5273
  ])])) : ee("", !0),
5270
5274
  m.status === "ready" ? ($(), V(Ie, { key: 1 }, [
@@ -5280,22 +5284,22 @@ const Ai = { class: "cpk:pointer-events-auto cpk:mx-auto cpk:max-w-3xl cpk:px-4
5280
5284
  alt: m.filename || "Image attachment",
5281
5285
  class: "cpk:w-full cpk:h-full cpk:object-cover",
5282
5286
  "data-testid": "copilot-chat-attachment-image-thumbnail"
5283
- }, null, 8, qi)
5284
- ], 8, Wi)) : m.type === "video" ? ($(), V("div", Ki, [
5287
+ }, null, 8, Ki)
5288
+ ], 8, qi)) : m.type === "video" ? ($(), V("div", Gi, [
5285
5289
  m.thumbnail ? ($(), V("img", {
5286
5290
  key: 0,
5287
5291
  src: m.thumbnail,
5288
5292
  alt: m.filename || "Video thumbnail",
5289
5293
  class: "cpk:w-full cpk:h-full cpk:object-cover",
5290
5294
  "data-testid": "copilot-chat-attachment-video-thumbnail"
5291
- }, null, 8, Gi)) : ($(), V("video", {
5295
+ }, null, 8, Ji)) : ($(), V("video", {
5292
5296
  key: 1,
5293
5297
  src: Y(St)(m.source),
5294
5298
  preload: "metadata",
5295
5299
  muted: "",
5296
5300
  class: "cpk:w-full cpk:h-full cpk:object-cover",
5297
5301
  "data-testid": "copilot-chat-attachment-video-fallback"
5298
- }, null, 8, Ji)),
5302
+ }, null, 8, Qi)),
5299
5303
  D("button", {
5300
5304
  type: "button",
5301
5305
  class: "cpk:absolute cpk:inset-0 cpk:flex cpk:items-center cpk:justify-center cpk:z-10 cpk:cursor-pointer cpk:bg-black/20 cpk:border-none cpk:p-0",
@@ -5304,16 +5308,16 @@ const Ai = { class: "cpk:pointer-events-auto cpk:mx-auto cpk:max-w-3xl cpk:px-4
5304
5308
  onClick: (S) => d(m)
5305
5309
  }, [...k[2] || (k[2] = [
5306
5310
  D("div", { class: "cpk:w-8 cpk:h-8 cpk:rounded-full cpk:bg-black/60 cpk:flex cpk:items-center cpk:justify-center cpk:text-white cpk:text-xs cpk:font-semibold" }, " ▶ ", -1)
5307
- ])], 8, Qi)
5308
- ])) : m.type === "audio" ? ($(), V("div", Xi, [
5311
+ ])], 8, Xi)
5312
+ ])) : m.type === "audio" ? ($(), V("div", Yi, [
5309
5313
  D("audio", {
5310
5314
  src: Y(St)(m.source),
5311
5315
  controls: "",
5312
5316
  preload: "metadata",
5313
5317
  class: "cpk:w-full cpk:h-8",
5314
5318
  "data-testid": "copilot-chat-attachment-audio-player"
5315
- }, null, 8, Yi),
5316
- m.filename ? ($(), V("span", Zi, be(m.filename), 1)) : ee("", !0)
5319
+ }, null, 8, Zi),
5320
+ m.filename ? ($(), V("span", er, be(m.filename), 1)) : ee("", !0)
5317
5321
  ])) : ($(), V("button", {
5318
5322
  key: 3,
5319
5323
  type: "button",
@@ -5324,20 +5328,20 @@ const Ai = { class: "cpk:pointer-events-auto cpk:mx-auto cpk:max-w-3xl cpk:px-4
5324
5328
  "data-testid": "copilot-chat-attachment-document-button",
5325
5329
  onClick: (S) => (g(m.source.mimeType) || v(m.source.mimeType)) && d(m)
5326
5330
  }, [
5327
- D("div", tr, be(Y(an)(m.source.mimeType ?? "")), 1),
5328
- D("div", nr, [
5329
- D("span", ar, be(m.filename || "Document"), 1),
5330
- m.size != null ? ($(), V("span", or, be(Y(nn)(m.size)), 1)) : ee("", !0)
5331
+ D("div", nr, be(Y(an)(m.source.mimeType ?? "")), 1),
5332
+ D("div", ar, [
5333
+ D("span", or, be(m.filename || "Document"), 1),
5334
+ m.size != null ? ($(), V("span", sr, be(Y(nn)(m.size)), 1)) : ee("", !0)
5331
5335
  ])
5332
- ], 10, er))
5333
- ], 64)) : ($(), V("div", sr)),
5336
+ ], 10, tr))
5337
+ ], 64)) : ($(), V("div", ir)),
5334
5338
  D("button", {
5335
5339
  type: "button",
5336
5340
  class: "cpk:absolute cpk:bg-black/60 cpk:text-white cpk:border-none cpk:rounded-full cpk:w-5 cpk:h-5 cpk:flex cpk:items-center cpk:justify-center cpk:cursor-pointer cpk:text-[10px] cpk:z-20 cpk:top-1 cpk:right-1",
5337
5341
  "aria-label": "Remove attachment",
5338
5342
  onClick: (S) => a("remove-attachment", m.id)
5339
- }, " ✕ ", 8, ir)
5340
- ], 10, _i))), 128))
5343
+ }, " ✕ ", 8, rr)
5344
+ ], 10, zi))), 128))
5341
5345
  ], 2)) : ee("", !0),
5342
5346
  ($(), ge(ya, { to: "body" }, [
5343
5347
  i.value ? ($(), V("div", {
@@ -5350,11 +5354,11 @@ const Ai = { class: "cpk:pointer-events-auto cpk:mx-auto cpk:max-w-3xl cpk:px-4
5350
5354
  type: "button",
5351
5355
  class: "cpk:absolute cpk:top-4 cpk:right-4 cpk:text-white cpk:bg-white/10 cpk:hover:bg-white/20 cpk:rounded-full cpk:w-10 cpk:h-10 cpk:flex cpk:items-center cpk:justify-center cpk:cursor-pointer cpk:border-none",
5352
5356
  "aria-label": "Close preview",
5353
- onClick: Ht(y, ["stop"])
5357
+ onClick: _t(y, ["stop"])
5354
5358
  }, " ✕ "),
5355
5359
  D("div", {
5356
5360
  "data-testid": "copilot-chat-attachment-lightbox-content",
5357
- onClick: k[0] || (k[0] = Ht(() => {
5361
+ onClick: k[0] || (k[0] = _t(() => {
5358
5362
  }, ["stop"]))
5359
5363
  }, [
5360
5364
  i.value.type === "image" ? ($(), V("img", {
@@ -5363,33 +5367,33 @@ const Ai = { class: "cpk:pointer-events-auto cpk:mx-auto cpk:max-w-3xl cpk:px-4
5363
5367
  alt: i.value.filename || "Image attachment",
5364
5368
  class: "cpk:max-w-[90vw] cpk:max-h-[90vh] cpk:object-contain cpk:rounded-lg",
5365
5369
  "data-testid": "copilot-chat-attachment-lightbox-image"
5366
- }, null, 8, rr)) : i.value.type === "video" ? ($(), V("video", {
5370
+ }, null, 8, lr)) : i.value.type === "video" ? ($(), V("video", {
5367
5371
  key: 1,
5368
5372
  src: Y(St)(i.value.source),
5369
5373
  controls: "",
5370
5374
  autoplay: "",
5371
5375
  class: "cpk:max-w-[90vw] cpk:max-h-[90vh] cpk:rounded-lg",
5372
5376
  "data-testid": "copilot-chat-attachment-lightbox-video"
5373
- }, null, 8, lr)) : i.value.type === "document" ? ($(), V(Ie, { key: 2 }, [
5377
+ }, null, 8, cr)) : i.value.type === "document" ? ($(), V(Ie, { key: 2 }, [
5374
5378
  r.value && g(i.value.source.mimeType) && u.value ? ($(), V("iframe", {
5375
5379
  key: 0,
5376
5380
  src: u.value,
5377
5381
  title: i.value.filename || "PDF preview",
5378
5382
  class: "cpk:w-[90vw] cpk:h-[90vh] cpk:max-w-[1000px] cpk:rounded-lg cpk:bg-white",
5379
5383
  "data-testid": "copilot-chat-attachment-lightbox-document-iframe"
5380
- }, null, 8, cr)) : r.value && v(i.value.source.mimeType) ? ($(), V("div", ur, [
5381
- c.value !== null ? ($(), V("pre", dr, be(c.value), 1)) : u.value ? ($(), V("iframe", {
5384
+ }, null, 8, ur)) : r.value && v(i.value.source.mimeType) ? ($(), V("div", dr, [
5385
+ c.value !== null ? ($(), V("pre", pr, be(c.value), 1)) : u.value ? ($(), V("iframe", {
5382
5386
  key: 1,
5383
5387
  src: u.value,
5384
5388
  title: i.value.filename || "Text preview",
5385
5389
  class: "cpk:w-full cpk:h-[80vh] cpk:border-none",
5386
5390
  "data-testid": "copilot-chat-attachment-lightbox-document-iframe"
5387
- }, null, 8, pr)) : ee("", !0)
5388
- ])) : ($(), V("div", fr, [
5389
- D("div", gr, be(Y(an)(i.value.source.mimeType ?? "")), 1),
5390
- D("div", vr, [
5391
- D("div", mr, be(i.value.filename || "Document"), 1),
5392
- D("div", hr, be(i.value.source.mimeType || "Unknown type") + " " + be(i.value.size != null ? ` · ${Y(nn)(i.value.size)}` : ""), 1)
5391
+ }, null, 8, fr)) : ee("", !0)
5392
+ ])) : ($(), V("div", gr, [
5393
+ D("div", vr, be(Y(an)(i.value.source.mimeType ?? "")), 1),
5394
+ D("div", mr, [
5395
+ D("div", hr, be(i.value.filename || "Document"), 1),
5396
+ D("div", br, be(i.value.source.mimeType || "Unknown type") + " " + be(i.value.size != null ? ` · ${Y(nn)(i.value.size)}` : ""), 1)
5393
5397
  ]),
5394
5398
  k[3] || (k[3] = D("div", { class: "cpk:text-xs cpk:text-gray-400 cpk:dark:text-gray-500" }, " No preview available for this file type ", -1))
5395
5399
  ]))
@@ -5399,16 +5403,16 @@ const Ai = { class: "cpk:pointer-events-auto cpk:mx-auto cpk:max-w-3xl cpk:px-4
5399
5403
  ]))
5400
5404
  ], 64));
5401
5405
  }
5402
- }), br = ["data-message-id"], kr = ["aria-expanded"], yr = { class: "cpk:font-medium" }, wr = {
5406
+ }), kr = ["data-message-id"], yr = ["aria-expanded"], wr = { class: "cpk:font-medium" }, xr = {
5403
5407
  key: 0,
5404
5408
  class: "cpk:inline-flex cpk:items-center cpk:ml-1"
5405
- }, xr = { class: "cpk:overflow-hidden" }, Cr = {
5409
+ }, Cr = { class: "cpk:overflow-hidden" }, Tr = {
5406
5410
  key: 0,
5407
5411
  class: "cpk:pb-2 cpk:pt-1"
5408
- }, Tr = { class: "cpk:text-sm cpk:text-muted-foreground" }, Sr = {
5412
+ }, Sr = { class: "cpk:text-sm cpk:text-muted-foreground" }, Ir = {
5409
5413
  key: 0,
5410
5414
  class: "cpk:inline-flex cpk:items-center cpk:ml-1 cpk:align-middle"
5411
- }, Ir = /* @__PURE__ */ se({
5415
+ }, Ar = /* @__PURE__ */ se({
5412
5416
  __name: "CopilotChatReasoningMessage",
5413
5417
  props: {
5414
5418
  message: {},
@@ -5500,15 +5504,15 @@ const Ai = { class: "cpk:pointer-events-auto cpk:mx-auto cpk:max-w-3xl cpk:px-4
5500
5504
  "aria-expanded": i.value ? c.value : void 0,
5501
5505
  onClick: k[0] || (k[0] = (m) => i.value ? b() : void 0)
5502
5506
  }, [
5503
- D("span", yr, be(v.value), 1),
5504
- s.value && !i.value ? ($(), V("span", wr, [...k[1] || (k[1] = [
5507
+ D("span", wr, be(v.value), 1),
5508
+ s.value && !i.value ? ($(), V("span", xr, [...k[1] || (k[1] = [
5505
5509
  D("span", { class: "cpk:w-1.5 cpk:h-1.5 cpk:rounded-full cpk:bg-muted-foreground cpk:animate-pulse" }, null, -1)
5506
5510
  ])])) : ee("", !0),
5507
5511
  i.value ? ($(), ge(Y(un), {
5508
5512
  key: 1,
5509
5513
  class: ke(["cpk:size-3.5 cpk:shrink-0 cpk:transition-transform cpk:duration-200", { "cpk:rotate-90": c.value }])
5510
5514
  }, null, 8, ["class"])) : ee("", !0)
5511
- ], 10, kr)
5515
+ ], 10, yr)
5512
5516
  ]),
5513
5517
  I(f.$slots, "toggle", {
5514
5518
  isOpen: c.value,
@@ -5522,16 +5526,16 @@ const Ai = { class: "cpk:pointer-events-auto cpk:mx-auto cpk:max-w-3xl cpk:px-4
5522
5526
  class: "cpk:grid cpk:transition-[grid-template-rows] cpk:duration-200 cpk:ease-in-out",
5523
5527
  style: mt({ gridTemplateRows: c.value ? "1fr" : "0fr" })
5524
5528
  }, [
5525
- D("div", xr, [
5529
+ D("div", Cr, [
5526
5530
  I(f.$slots, "content-view", {
5527
5531
  isStreaming: s.value,
5528
5532
  hasContent: i.value,
5529
5533
  content: a.value
5530
5534
  }, () => [
5531
- i.value || s.value ? ($(), V("div", Cr, [
5532
- D("div", Tr, [
5535
+ i.value || s.value ? ($(), V("div", Tr, [
5536
+ D("div", Sr, [
5533
5537
  oe(Y(Xn), { content: a.value }, null, 8, ["content"]),
5534
- s.value && i.value ? ($(), V("span", Sr, [...k[2] || (k[2] = [
5538
+ s.value && i.value ? ($(), V("span", Ir, [...k[2] || (k[2] = [
5535
5539
  D("span", { class: "cpk:w-2 cpk:h-2 cpk:rounded-full cpk:bg-muted-foreground cpk:animate-pulse-cursor" }, null, -1)
5536
5540
  ])])) : ee("", !0)
5537
5541
  ])
@@ -5541,9 +5545,9 @@ const Ai = { class: "cpk:pointer-events-auto cpk:mx-auto cpk:max-w-3xl cpk:px-4
5541
5545
  ], 4)
5542
5546
  ])
5543
5547
  ])
5544
- ], 8, br));
5548
+ ], 8, kr));
5545
5549
  }
5546
- }), Ar = ["data-message-id"], Rr = ["data-multiline"], Mr = { class: "cpk:w-full cpk:bg-transparent cpk:flex cpk:items-center cpk:justify-end cpk:-mr-[5px] cpk:mt-[4px] cpk:invisible cpk:group-hover:visible" }, $r = { class: "cpk:flex cpk:items-center cpk:gap-1 cpk:justify-end" }, Er = ["aria-label", "title"], Fr = ["aria-label", "title"], Or = { class: "cpk:flex cpk:items-center cpk:gap-1" }, Lr = ["disabled"], Dr = { class: "cpk:text-sm cpk:text-muted-foreground cpk:px-0 cpk:font-medium" }, Br = ["disabled"], Ur = /* @__PURE__ */ se({
5550
+ }), Rr = ["data-message-id"], Mr = ["data-multiline"], $r = { class: "cpk:w-full cpk:bg-transparent cpk:flex cpk:items-center cpk:justify-end cpk:-mr-[5px] cpk:mt-[4px] cpk:invisible cpk:group-hover:visible" }, Er = { class: "cpk:flex cpk:items-center cpk:gap-1 cpk:justify-end" }, Fr = ["aria-label", "title"], Or = ["aria-label", "title"], Lr = { class: "cpk:flex cpk:items-center cpk:gap-1" }, Dr = ["disabled"], Br = { class: "cpk:text-sm cpk:text-muted-foreground cpk:px-0 cpk:font-medium" }, Ur = ["disabled"], jr = /* @__PURE__ */ se({
5547
5551
  __name: "CopilotChatUserMessage",
5548
5552
  props: {
5549
5553
  message: {},
@@ -5643,15 +5647,15 @@ const Ai = { class: "cpk:pointer-events-auto cpk:mx-auto cpk:max-w-3xl cpk:px-4
5643
5647
  D("div", {
5644
5648
  class: ke(["cpk:prose cpk:dark:prose-invert cpk:bg-muted cpk:relative cpk:max-w-[80%] cpk:rounded-[18px] cpk:px-4 cpk:py-1.5 cpk:inline-block cpk:whitespace-pre-wrap", { "cpk:py-3": y.value }]),
5645
5649
  "data-multiline": y.value ? "true" : void 0
5646
- }, be(d.value), 11, Rr)
5650
+ }, be(d.value), 11, Mr)
5647
5651
  ]),
5648
5652
  I(p.$slots, "toolbar", {
5649
5653
  message: e.message,
5650
5654
  showBranchNavigation: g.value,
5651
5655
  hasEditAction: w.value
5652
5656
  }, () => [
5653
- D("div", Mr, [
5654
- D("div", $r, [
5657
+ D("div", $r, [
5658
+ D("div", Er, [
5655
5659
  I(p.$slots, "toolbar-items"),
5656
5660
  I(p.$slots, "copy-button", {
5657
5661
  onCopy: k,
@@ -5673,7 +5677,7 @@ const Ai = { class: "cpk:pointer-events-auto cpk:mx-auto cpk:max-w-3xl cpk:px-4
5673
5677
  key: 1,
5674
5678
  class: "cpk:size-[18px]"
5675
5679
  }))
5676
- ], 10, Er)
5680
+ ], 10, Fr)
5677
5681
  ]),
5678
5682
  w.value || p.$slots["edit-button"] ? I(p.$slots, "edit-button", {
5679
5683
  key: 0,
@@ -5688,7 +5692,7 @@ const Ai = { class: "cpk:pointer-events-auto cpk:mx-auto cpk:max-w-3xl cpk:px-4
5688
5692
  onClick: m
5689
5693
  }, [
5690
5694
  oe(Y(Ro), { class: "cpk:size-[18px]" })
5691
- ], 10, Fr)
5695
+ ], 10, Or)
5692
5696
  ]) : ee("", !0),
5693
5697
  e.numberOfBranches > 1 && (g.value || p.$slots["branch-navigation"]) ? I(p.$slots, "branch-navigation", {
5694
5698
  key: 1,
@@ -5699,7 +5703,7 @@ const Ai = { class: "cpk:pointer-events-auto cpk:mx-auto cpk:max-w-3xl cpk:px-4
5699
5703
  goPrev: h,
5700
5704
  goNext: x
5701
5705
  }, () => [
5702
- D("div", Or, [
5706
+ D("div", Lr, [
5703
5707
  D("button", {
5704
5708
  type: "button",
5705
5709
  class: ke([Y(c), "cpk:h-6 cpk:w-6 cpk:p-0"]),
@@ -5709,8 +5713,8 @@ const Ai = { class: "cpk:pointer-events-auto cpk:mx-auto cpk:max-w-3xl cpk:px-4
5709
5713
  onClick: h
5710
5714
  }, [
5711
5715
  oe(Y(Mo), { class: "cpk:size-[20px]" })
5712
- ], 10, Lr),
5713
- D("span", Dr, be(e.branchIndex + 1) + "/" + be(e.numberOfBranches), 1),
5716
+ ], 10, Dr),
5717
+ D("span", Br, be(e.branchIndex + 1) + "/" + be(e.numberOfBranches), 1),
5714
5718
  D("button", {
5715
5719
  type: "button",
5716
5720
  class: ke([Y(c), "cpk:h-6 cpk:w-6 cpk:p-0"]),
@@ -5720,16 +5724,16 @@ const Ai = { class: "cpk:pointer-events-auto cpk:mx-auto cpk:max-w-3xl cpk:px-4
5720
5724
  onClick: x
5721
5725
  }, [
5722
5726
  oe(Y(un), { class: "cpk:size-[20px]" })
5723
- ], 10, Br)
5727
+ ], 10, Ur)
5724
5728
  ])
5725
5729
  ]) : ee("", !0)
5726
5730
  ])
5727
5731
  ])
5728
5732
  ])
5729
- ], 16, Ar)
5733
+ ], 16, Rr)
5730
5734
  ]);
5731
5735
  }
5732
- }), jr = /* @__PURE__ */ se({
5736
+ }), Nr = /* @__PURE__ */ se({
5733
5737
  __name: "CopilotChatMessageView",
5734
5738
  props: {
5735
5739
  messages: { default: () => [] },
@@ -5801,7 +5805,7 @@ const Ai = { class: "cpk:pointer-events-auto cpk:mx-auto cpk:max-w-3xl cpk:px-4
5801
5805
  }
5802
5806
  const y = l(
5803
5807
  () => d(n.messages)
5804
- ), w = _a(), g = l(
5808
+ ), w = Ha(), g = l(
5805
5809
  () => za(w, y.value)
5806
5810
  );
5807
5811
  Ve(() => Sn(w, y.value)), U(
@@ -5825,14 +5829,14 @@ const Ai = { class: "cpk:pointer-events-auto cpk:mx-auto cpk:max-w-3xl cpk:px-4
5825
5829
  i.value += 0;
5826
5830
  const x = c.value, p = a.value?.threadId ?? "", E = t.value, L = E.getRunIdForMessage(x, p, h.id) ?? E.getRunIdsForThread(x, p).slice(-1)[0], B = L ?? `missing-run-id:${h.id}`, N = u.value ?? E.getAgent(x), j = L && N ? N.messages.filter(
5827
5831
  (F) => E.getRunIdForMessage(x, p, F.id) === L
5828
- ).map((F) => F.id) : [h.id], W = N ? N.messages.findIndex((F) => F.id === h.id) : -1, X = W >= 0 ? W : 0, A = L ? Math.max(j.indexOf(h.id), 0) : 0, M = L ? j.length : 1, _ = L ? E.getStateByRun(x, p, L) : void 0;
5832
+ ).map((F) => F.id) : [h.id], W = N ? N.messages.findIndex((F) => F.id === h.id) : -1, X = W >= 0 ? W : 0, A = L ? Math.max(j.indexOf(h.id), 0) : 0, M = L ? j.length : 1, H = L ? E.getStateByRun(x, p, L) : void 0;
5829
5833
  return {
5830
5834
  runId: B,
5831
5835
  messageIndex: X,
5832
5836
  messageIndexInRun: A,
5833
5837
  numberOfMessagesInRun: M,
5834
5838
  agentId: x,
5835
- stateSnapshot: _
5839
+ stateSnapshot: H
5836
5840
  };
5837
5841
  }
5838
5842
  function k(h) {
@@ -5903,7 +5907,7 @@ const Ai = { class: "cpk:pointer-events-auto cpk:mx-auto cpk:max-w-3xl cpk:px-4
5903
5907
  messages: e.messages,
5904
5908
  isRunning: e.isRunning
5905
5909
  }, () => [
5906
- oe(fi, {
5910
+ oe(gi, {
5907
5911
  message: p,
5908
5912
  messages: e.messages,
5909
5913
  "is-running": e.isRunning
@@ -5919,7 +5923,7 @@ const Ai = { class: "cpk:pointer-events-auto cpk:mx-auto cpk:max-w-3xl cpk:px-4
5919
5923
  key: 3,
5920
5924
  message: p
5921
5925
  }, () => [
5922
- oe(Ur, { message: p }, Ye({ _: 2 }, [
5926
+ oe(jr, { message: p }, Ye({ _: 2 }, [
5923
5927
  Xe(r.value, (E) => ({
5924
5928
  name: E,
5925
5929
  fn: J((L) => [
@@ -5933,7 +5937,7 @@ const Ai = { class: "cpk:pointer-events-auto cpk:mx-auto cpk:max-w-3xl cpk:px-4
5933
5937
  messages: e.messages,
5934
5938
  isRunning: e.isRunning
5935
5939
  }, () => [
5936
- oe(Ir, {
5940
+ oe(Ar, {
5937
5941
  message: p,
5938
5942
  messages: e.messages,
5939
5943
  "is-running": e.isRunning
@@ -5989,13 +5993,13 @@ const Ai = { class: "cpk:pointer-events-auto cpk:mx-auto cpk:max-w-3xl cpk:px-4
5989
5993
  ]) : ee("", !0)
5990
5994
  ], 16));
5991
5995
  }
5992
- }), Nr = ["type", "aria-busy", "disabled"], Vr = {
5996
+ }), Vr = ["type", "aria-busy", "disabled"], Pr = {
5993
5997
  key: 0,
5994
5998
  class: "cpk:flex cpk:h-3.5 cpk:w-3.5 cpk:items-center cpk:justify-center cpk:text-muted-foreground cpk:sm:h-4 cpk:sm:w-4"
5995
- }, Pr = {
5999
+ }, _r = {
5996
6000
  key: 1,
5997
6001
  class: "cpk:flex cpk:h-3.5 cpk:w-3.5 cpk:items-center cpk:justify-center cpk:text-muted-foreground cpk:sm:h-4 cpk:sm:w-4"
5998
- }, Hr = { class: "cpk:whitespace-nowrap cpk:font-medium cpk:leading-none" }, _r = /* @__PURE__ */ se({
6002
+ }, Hr = { class: "cpk:whitespace-nowrap cpk:font-medium cpk:leading-none" }, zr = /* @__PURE__ */ se({
5999
6003
  __name: "CopilotChatSuggestionPill",
6000
6004
  props: {
6001
6005
  icon: { default: void 0 },
@@ -6014,12 +6018,12 @@ const Ai = { class: "cpk:pointer-events-auto cpk:mx-auto cpk:max-w-3xl cpk:px-4
6014
6018
  disabled: t.value,
6015
6019
  class: "cpk:group cpk:inline-flex cpk:h-7 cpk:w-fit cpk:items-center cpk:gap-1 cpk:rounded-full cpk:border cpk:border-border/60 cpk:bg-background cpk:px-2.5 cpk:text-[11px] cpk:leading-none cpk:text-foreground cpk:transition-colors cpk:cursor-pointer cpk:hover:bg-accent/60 cpk:hover:text-foreground cpk:focus-visible:outline-none cpk:focus-visible:ring-2 cpk:focus-visible:ring-ring cpk:focus-visible:ring-offset-2 cpk:focus-visible:ring-offset-background cpk:disabled:cursor-not-allowed cpk:disabled:text-muted-foreground cpk:disabled:hover:bg-background cpk:disabled:hover:text-muted-foreground cpk:pointer-events-auto cpk:sm:h-8 cpk:sm:gap-1.5 cpk:sm:px-3 cpk:sm:text-xs"
6016
6020
  }, a.$attrs), [
6017
- e.isLoading ? ($(), V("span", Vr, [
6021
+ e.isLoading ? ($(), V("span", Pr, [
6018
6022
  oe(Y(Qn), {
6019
6023
  class: "cpk:h-3.5 cpk:w-3.5 cpk:animate-spin cpk:sm:h-4 cpk:sm:w-4",
6020
6024
  "aria-hidden": "true"
6021
6025
  })
6022
- ])) : a.$slots.icon || e.icon ? ($(), V("span", Pr, [
6026
+ ])) : a.$slots.icon || e.icon ? ($(), V("span", _r, [
6023
6027
  I(a.$slots, "icon", {}, () => [
6024
6028
  ($(), ge(bt(e.icon)))
6025
6029
  ])
@@ -6027,7 +6031,7 @@ const Ai = { class: "cpk:pointer-events-auto cpk:mx-auto cpk:max-w-3xl cpk:px-4
6027
6031
  D("span", Hr, [
6028
6032
  I(a.$slots, "default")
6029
6033
  ])
6030
- ], 16, Nr));
6034
+ ], 16, Vr));
6031
6035
  }
6032
6036
  }), zt = /* @__PURE__ */ se({
6033
6037
  inheritAttrs: !1,
@@ -6072,7 +6076,7 @@ const Ai = { class: "cpk:pointer-events-auto cpk:mx-auto cpk:max-w-3xl cpk:px-4
6072
6076
  isLoading: c(v, g),
6073
6077
  onSelect: () => u(g, v)
6074
6078
  }, () => [
6075
- oe(_r, {
6079
+ oe(zr, {
6076
6080
  "is-loading": c(v, g),
6077
6081
  type: "button",
6078
6082
  onClick: (b) => u(g, v)
@@ -6087,31 +6091,31 @@ const Ai = { class: "cpk:pointer-events-auto cpk:mx-auto cpk:max-w-3xl cpk:px-4
6087
6091
  ])
6088
6092
  ]);
6089
6093
  }
6090
- }), zr = [
6094
+ }), Wr = [
6091
6095
  "pin-to-bottom",
6092
6096
  "pin-to-send",
6093
6097
  "none"
6094
6098
  ];
6095
- function Wr(e) {
6096
- return e === void 0 || e === !0 ? "pin-to-bottom" : e === !1 ? "none" : zr.includes(e) ? e : "pin-to-bottom";
6099
+ function qr(e) {
6100
+ return e === void 0 || e === !0 ? "pin-to-bottom" : e === !1 ? "none" : Wr.includes(e) ? e : "pin-to-bottom";
6097
6101
  }
6098
- const qr = {
6102
+ const Kr = {
6099
6103
  key: 0,
6100
6104
  class: "cpk:absolute cpk:inset-0 cpk:z-50 cpk:pointer-events-none cpk:flex cpk:items-center cpk:justify-center cpk:bg-primary/5 cpk:border-2 cpk:border-dashed cpk:border-primary/40 cpk:rounded-lg cpk:m-2",
6101
6105
  "data-testid": "copilot-chat-drop-overlay"
6102
- }, Kr = {
6106
+ }, Gr = {
6103
6107
  class: "cpk:flex cpk:h-full cpk:flex-col cpk:items-center cpk:justify-center cpk:px-4",
6104
6108
  "data-testid": "copilot-chat-view-welcome-screen"
6105
- }, Gr = { class: "cpk:w-full cpk:max-w-3xl cpk:flex cpk:flex-col cpk:items-center" }, Jr = { class: "cpk:mb-6" }, Qr = { class: "cpk:text-xl cpk:sm:text-2xl cpk:font-medium cpk:text-foreground cpk:text-center" }, Xr = { class: "cpk:w-full" }, Yr = {
6109
+ }, Jr = { class: "cpk:w-full cpk:max-w-3xl cpk:flex cpk:flex-col cpk:items-center" }, Qr = { class: "cpk:mb-6" }, Xr = { class: "cpk:text-xl cpk:sm:text-2xl cpk:font-medium cpk:text-foreground cpk:text-center" }, Yr = { class: "cpk:w-full" }, Zr = {
6106
6110
  key: 0,
6107
6111
  class: "cpk:mt-4 cpk:flex cpk:justify-center"
6108
- }, Zr = { class: "cpk:px-4 cpk:@3xl:px-0 cpk:[div[data-sidebar-chat]_&]:px-8 cpk:[div[data-popup-chat]_&]:px-6" }, el = { class: "cpk:max-w-3xl cpk:mx-auto" }, tl = {
6112
+ }, el = { class: "cpk:px-4 cpk:@3xl:px-0 cpk:[div[data-sidebar-chat]_&]:px-8 cpk:[div[data-popup-chat]_&]:px-6" }, tl = { class: "cpk:max-w-3xl cpk:mx-auto" }, nl = {
6109
6113
  key: 0,
6110
6114
  class: "cpk:mt-4 cpk:pl-0 cpk:pr-4 cpk:@3xl:px-0"
6111
- }, nl = {
6115
+ }, al = {
6112
6116
  key: 0,
6113
6117
  class: "cpk:max-w-3xl cpk:mx-auto cpk:w-full cpk:pointer-events-auto"
6114
- }, al = 16, ol = 12, Qt = /* @__PURE__ */ se({
6118
+ }, ol = 16, sl = 12, Qt = /* @__PURE__ */ se({
6115
6119
  __name: "CopilotChatView",
6116
6120
  props: {
6117
6121
  messages: { default: () => [] },
@@ -6143,16 +6147,16 @@ const qr = {
6143
6147
  },
6144
6148
  emits: ["submit-message", "stop", "input-change", "select-suggestion", "add-file", "start-transcribe", "cancel-transcribe", "finish-transcribe"],
6145
6149
  setup(e, { emit: n }) {
6146
- const t = e, a = n, i = Fe(), o = l(() => i.value?.labels ?? lt), s = Wt(), r = T(null), c = T(null), u = T(null), d = T(null), y = T(0), w = T(!0), g = l(() => t.inputValue !== void 0), v = T(t.inputValue ?? ""), b = l(() => Wr(t.autoScroll)), f = l(
6150
+ const t = e, a = n, i = Fe(), o = l(() => i.value?.labels ?? lt), s = Wt(), r = T(null), c = T(null), u = T(null), d = T(null), y = T(0), w = T(!0), g = l(() => t.inputValue !== void 0), v = T(t.inputValue ?? ""), b = l(() => qr(t.autoScroll)), f = l(
6147
6151
  () => b.value === "pin-to-bottom"
6148
6152
  ), k = l(() => b.value === "pin-to-send");
6149
- Ii({
6153
+ Ai({
6150
6154
  scrollRef: r,
6151
6155
  contentRef: c,
6152
6156
  spacerRef: u,
6153
6157
  topOffset: 16
6154
6158
  });
6155
- const { isKeyboardOpen: m, keyboardHeight: S } = Ci(), h = l(
6159
+ const { isKeyboardOpen: m, keyboardHeight: S } = Ti(), h = l(
6156
6160
  () => m.value ? S.value : 0
6157
6161
  ), x = l(
6158
6162
  () => g.value ? t.inputValue ?? "" : v.value
@@ -6178,7 +6182,7 @@ const qr = {
6178
6182
  const P = d.value;
6179
6183
  P && (W = new ResizeObserver((de) => {
6180
6184
  const $e = w.value, tt = de[0]?.contentRect?.height;
6181
- typeof tt == "number" ? y.value = tt : F(), _(), f.value && $e && z("auto");
6185
+ typeof tt == "number" ? y.value = tt : F(), H(), f.value && $e && z("auto");
6182
6186
  }), W.observe(P));
6183
6187
  }
6184
6188
  function M() {
@@ -6187,7 +6191,7 @@ const qr = {
6187
6191
  const P = c.value;
6188
6192
  P && (X = new ResizeObserver(() => {
6189
6193
  const de = w.value;
6190
- _(), f.value && de && z("auto");
6194
+ H(), f.value && de && z("auto");
6191
6195
  }), X.observe(P));
6192
6196
  }
6193
6197
  U(B, async (P) => {
@@ -6207,14 +6211,14 @@ const qr = {
6207
6211
  },
6208
6212
  { deep: !0 }
6209
6213
  );
6210
- function _() {
6214
+ function H() {
6211
6215
  const P = r.value;
6212
6216
  if (!P) {
6213
6217
  w.value = !0;
6214
6218
  return;
6215
6219
  }
6216
6220
  const de = P.scrollHeight - P.scrollTop - P.clientHeight;
6217
- w.value = de <= ol;
6221
+ w.value = de <= sl;
6218
6222
  }
6219
6223
  function F() {
6220
6224
  const P = d.value;
@@ -6225,10 +6229,10 @@ const qr = {
6225
6229
  de && (typeof de.scrollTo == "function" ? de.scrollTo({
6226
6230
  top: de.scrollHeight,
6227
6231
  behavior: P
6228
- }) : de.scrollTop = de.scrollHeight, _());
6232
+ }) : de.scrollTop = de.scrollHeight, H());
6229
6233
  }
6230
6234
  function ue() {
6231
- _();
6235
+ H();
6232
6236
  }
6233
6237
  function O(P) {
6234
6238
  g.value || (v.value = P), a("input-change", P);
@@ -6272,9 +6276,9 @@ const qr = {
6272
6276
  onSubmitMessage: t.onSubmitMessage ? te : void 0
6273
6277
  };
6274
6278
  return t.onStop && (P.onStop = G), t.onAddFile && (P.onAddFile = ve), t.onStartTranscribe && (P.onStartTranscribe = Oe), t.onCancelTranscribe && (P.onCancelTranscribe = Ze), t.onFinishTranscribe && (P.onFinishTranscribe = et), t.onFinishTranscribeWithAudio && (P.onFinishTranscribeWithAudio = Ge), P;
6275
- }), He = l(() => !!t.onStop), Be = l(() => !!t.onAddFile), Ce = l(() => !!t.onStartTranscribe);
6279
+ }), _e = l(() => !!t.onStop), Be = l(() => !!t.onAddFile), Ce = l(() => !!t.onStartTranscribe);
6276
6280
  return Ve(async () => {
6277
- await kt(), F(), _(), f.value && (z("auto"), typeof requestAnimationFrame == "function" && requestAnimationFrame(() => {
6281
+ await kt(), F(), H(), f.value && (z("auto"), typeof requestAnimationFrame == "function" && requestAnimationFrame(() => {
6278
6282
  z("auto");
6279
6283
  })), A(), M();
6280
6284
  }), Ae(() => {
@@ -6288,7 +6292,7 @@ const qr = {
6288
6292
  onDragleave: Te,
6289
6293
  onDrop: Me
6290
6294
  }), [
6291
- e.dragOver ? ($(), V("div", qr, [...de[3] || (de[3] = [
6295
+ e.dragOver ? ($(), V("div", Kr, [...de[3] || (de[3] = [
6292
6296
  D("span", { class: "cpk:text-sm cpk:font-medium cpk:text-primary/70" }, " Drop files here ", -1)
6293
6297
  ])])) : ee("", !0),
6294
6298
  B.value ? I(P.$slots, "welcome-screen", {
@@ -6300,7 +6304,7 @@ const qr = {
6300
6304
  isRunning: e.isRunning,
6301
6305
  inputMode: e.inputMode,
6302
6306
  inputToolsMenu: e.inputToolsMenu,
6303
- canStop: He.value,
6307
+ canStop: _e.value,
6304
6308
  canAddFile: Be.value,
6305
6309
  canTranscribe: Ce.value,
6306
6310
  onUpdateModelValue: O,
@@ -6313,14 +6317,14 @@ const qr = {
6313
6317
  onFinishTranscribeWithAudio: Ge,
6314
6318
  onSelectSuggestion: ae
6315
6319
  }, () => [
6316
- D("div", Kr, [
6317
- D("div", Gr, [
6318
- D("div", Jr, [
6320
+ D("div", Gr, [
6321
+ D("div", Jr, [
6322
+ D("div", Qr, [
6319
6323
  I(P.$slots, "welcome-message", {}, () => [
6320
- D("h1", Qr, be(o.value.welcomeMessageText), 1)
6324
+ D("h1", Xr, be(o.value.welcomeMessageText), 1)
6321
6325
  ])
6322
6326
  ]),
6323
- D("div", Xr, [
6327
+ D("div", Yr, [
6324
6328
  E.value ? ($(), ge(Vn, {
6325
6329
  key: 0,
6326
6330
  attachments: e.attachments ?? [],
@@ -6333,7 +6337,7 @@ const qr = {
6333
6337
  inputMode: e.inputMode,
6334
6338
  inputToolsMenu: e.inputToolsMenu,
6335
6339
  attachments: e.attachments ?? [],
6336
- canStop: He.value,
6340
+ canStop: _e.value,
6337
6341
  canAddFile: Be.value,
6338
6342
  canTranscribe: Ce.value,
6339
6343
  onUpdateModelValue: O,
@@ -6345,7 +6349,7 @@ const qr = {
6345
6349
  onFinishTranscribe: et,
6346
6350
  onFinishTranscribeWithAudio: Ge
6347
6351
  }, () => [
6348
- oe(_t, pe({
6352
+ oe(Ht, pe({
6349
6353
  "model-value": x.value,
6350
6354
  "is-running": e.isRunning,
6351
6355
  mode: e.inputMode,
@@ -6356,7 +6360,7 @@ const qr = {
6356
6360
  }, st.value), null, 16, ["model-value", "is-running", "mode", "tools-menu", "keyboard-height"])
6357
6361
  ])
6358
6362
  ]),
6359
- p.value ? ($(), V("div", Yr, [
6363
+ p.value ? ($(), V("div", Zr, [
6360
6364
  I(P.$slots, "suggestion-view", {
6361
6365
  suggestions: e.suggestions,
6362
6366
  loadingIndexes: e.suggestionLoadingIndexes,
@@ -6390,19 +6394,19 @@ const qr = {
6390
6394
  class: "cpk:h-full cpk:max-h-full cpk:min-h-0 cpk:overflow-y-scroll cpk:overflow-x-hidden cpk:relative",
6391
6395
  onScroll: ue
6392
6396
  }, [
6393
- D("div", Zr, [
6397
+ D("div", el, [
6394
6398
  D("div", {
6395
6399
  ref_key: "scrollContentRef",
6396
6400
  ref: c,
6397
6401
  "data-testid": "copilot-scroll-content",
6398
6402
  style: mt({ paddingBottom: N.value })
6399
6403
  }, [
6400
- D("div", el, [
6404
+ D("div", tl, [
6401
6405
  I(P.$slots, "message-view", {
6402
6406
  messages: e.messages,
6403
6407
  isRunning: e.isRunning
6404
6408
  }, () => [
6405
- oe(jr, {
6409
+ oe(Nr, {
6406
6410
  messages: e.messages,
6407
6411
  "is-running": e.isRunning
6408
6412
  }, Ye({ _: 2 }, [
@@ -6414,7 +6418,7 @@ const qr = {
6414
6418
  }))
6415
6419
  ]), 1032, ["messages", "is-running"])
6416
6420
  ]),
6417
- p.value ? ($(), V("div", tl, [
6421
+ p.value ? ($(), V("div", nl, [
6418
6422
  I(P.$slots, "suggestion-view", {
6419
6423
  suggestions: e.suggestions,
6420
6424
  loadingIndexes: e.suggestionLoadingIndexes,
@@ -6447,7 +6451,7 @@ const qr = {
6447
6451
  j.value ? ($(), V("div", {
6448
6452
  key: 0,
6449
6453
  class: "cpk:absolute cpk:inset-x-0 cpk:flex cpk:justify-center cpk:z-30 cpk:pointer-events-none",
6450
- style: mt({ bottom: `${y.value + al}px` })
6454
+ style: mt({ bottom: `${y.value + ol}px` })
6451
6455
  }, [
6452
6456
  I(P.$slots, "scroll-to-bottom-button", {
6453
6457
  onClick: () => z()
@@ -6468,7 +6472,7 @@ const qr = {
6468
6472
  class: "cpk:absolute cpk:bottom-0 cpk:left-0 cpk:right-0 cpk:z-20 cpk:pointer-events-none",
6469
6473
  "data-testid": "copilot-input-overlay"
6470
6474
  }, [
6471
- E.value ? ($(), V("div", nl, [
6475
+ E.value ? ($(), V("div", al, [
6472
6476
  oe(Vn, {
6473
6477
  attachments: e.attachments ?? [],
6474
6478
  "class-name": "cpk:px-4",
@@ -6481,7 +6485,7 @@ const qr = {
6481
6485
  inputMode: e.inputMode,
6482
6486
  inputToolsMenu: e.inputToolsMenu,
6483
6487
  attachments: e.attachments ?? [],
6484
- canStop: He.value,
6488
+ canStop: _e.value,
6485
6489
  canAddFile: Be.value,
6486
6490
  canTranscribe: Ce.value,
6487
6491
  onUpdateModelValue: O,
@@ -6493,7 +6497,7 @@ const qr = {
6493
6497
  onFinishTranscribe: et,
6494
6498
  onFinishTranscribeWithAudio: Ge
6495
6499
  }, () => [
6496
- oe(_t, pe({
6500
+ oe(Ht, pe({
6497
6501
  "model-value": x.value,
6498
6502
  "is-running": e.isRunning,
6499
6503
  mode: e.inputMode,
@@ -6509,7 +6513,7 @@ const qr = {
6509
6513
  ], 16));
6510
6514
  }
6511
6515
  });
6512
- function sl(e) {
6516
+ function il(e) {
6513
6517
  const n = T(null), t = (i, o) => {
6514
6518
  n.value = null, Tn({
6515
6519
  requestId: i.requestId,
@@ -6554,7 +6558,7 @@ function sl(e) {
6554
6558
  failInspectorOverride: a
6555
6559
  };
6556
6560
  }
6557
- const il = ["accept"], rl = {
6561
+ const rl = ["accept"], ll = {
6558
6562
  key: 2,
6559
6563
  style: { position: "absolute", bottom: "100px", left: "50%", transform: "translateX(-50%)", "background-color": "#ef4444", color: "white", padding: "8px 16px", "border-radius": "8px", "font-size": "14px", "z-index": "50" }
6560
6564
  }, bn = /* @__PURE__ */ se({
@@ -6588,7 +6592,7 @@ const il = ["accept"], rl = {
6588
6592
  () => m.value ?? u.value
6589
6593
  ), h = l(
6590
6594
  () => !!t.threadId || !!s.value?.hasExplicitThreadId
6591
- ), { inspectorThreadId: x, inspectorRequestId: p, failInspectorOverride: E } = sl({
6595
+ ), { inspectorThreadId: x, inspectorRequestId: p, failInspectorOverride: E } = il({
6592
6596
  agentId: k,
6593
6597
  baseThreadId: S
6594
6598
  }), L = l(
@@ -6600,9 +6604,9 @@ const il = ["accept"], rl = {
6600
6604
  ), W = na(l(() => t.labels)), X = l(() => W.value), { agent: A } = hn({
6601
6605
  agentId: k,
6602
6606
  throttleMs: l(() => t.throttleMs)
6603
- }), { suggestions: M } = hi({
6607
+ }), { suggestions: M } = bi({
6604
6608
  agentId: k
6605
- }), _ = Jt(), F = l(() => _.value.checkFeature("chat"));
6609
+ }), H = Jt(), F = l(() => H.value.checkFeature("chat"));
6606
6610
  U(
6607
6611
  F,
6608
6612
  (K) => {
@@ -6630,11 +6634,11 @@ const il = ["accept"], rl = {
6630
6634
  handleDrop: Ze,
6631
6635
  removeAttachment: et,
6632
6636
  consumeAttachments: Ge
6633
- } = bi({
6637
+ } = ki({
6634
6638
  config: l(() => t.attachments)
6635
6639
  }), st = l(
6636
6640
  () => g.value ? "processing" : d.value
6637
- ), He = T(0), Be = l(() => [...A.value?.messages ?? []]), Ce = l(() => (He.value, A.value?.isRunning ?? !1)), P = l(
6641
+ ), _e = T(0), Be = l(() => [...A.value?.messages ?? []]), Ce = l(() => (_e.value, A.value?.isRunning ?? !1)), P = l(
6638
6642
  () => Ce.value && Be.value.length > 0
6639
6643
  ), de = l(() => {
6640
6644
  for (let K = Be.value.length - 1; K >= 0; K--) {
@@ -6657,13 +6661,13 @@ const il = ["accept"], rl = {
6657
6661
  if (!K) return;
6658
6662
  const we = K.subscribe({
6659
6663
  onRunStartedEvent: () => {
6660
- He.value += 1;
6664
+ _e.value += 1;
6661
6665
  },
6662
6666
  onRunFinishedEvent: () => {
6663
- He.value += 1;
6667
+ _e.value += 1;
6664
6668
  },
6665
6669
  onRunErrorEvent: () => {
6666
- He.value += 1;
6670
+ _e.value += 1;
6667
6671
  }
6668
6672
  });
6669
6673
  le(() => we.unsubscribe());
@@ -6725,8 +6729,8 @@ const il = ["accept"], rl = {
6725
6729
  ([K, re, le, we, ct, Qe], ut, R) => {
6726
6730
  if (!K || typeof window > "u" || !le)
6727
6731
  return;
6728
- const H = f.value;
6729
- if (H !== null && H.threadId !== we && H.inspectorRequestId !== Qe && (H.inspectorRequestId !== null || Qe !== null))
6732
+ const _ = f.value;
6733
+ if (_ !== null && _.threadId !== we && _.inspectorRequestId !== Qe && (_.inspectorRequestId !== null || Qe !== null))
6730
6734
  try {
6731
6735
  re.stopAgent({ agent: le });
6732
6736
  } catch {
@@ -6855,7 +6859,7 @@ const il = ["accept"], rl = {
6855
6859
  function me(K) {
6856
6860
  y.value = K, a("input-change", K);
6857
6861
  }
6858
- function _e() {
6862
+ function He() {
6859
6863
  a("add-file"), G.value && setTimeout(() => {
6860
6864
  ve.value?.click();
6861
6865
  }, 100);
@@ -6878,7 +6882,7 @@ const il = ["accept"], rl = {
6878
6882
  g.value = !0;
6879
6883
  try {
6880
6884
  w.value = null;
6881
- const re = await xi(r.value, K), le = y.value.trim();
6885
+ const re = await Ci(r.value, K), le = y.value.trim();
6882
6886
  y.value = le ? `${le} ${re.text}` : re.text;
6883
6887
  } catch (re) {
6884
6888
  if (console.error("CopilotChat: Transcription failed", re), re instanceof It) {
@@ -6937,7 +6941,7 @@ const il = ["accept"], rl = {
6937
6941
  onInputChange: me,
6938
6942
  onSelectSuggestion: xt,
6939
6943
  onRemoveAttachment: et,
6940
- onAddFile: _e,
6944
+ onAddFile: He,
6941
6945
  onDragOver: G.value ? Me : void 0,
6942
6946
  onDragLeave: G.value ? Oe : void 0,
6943
6947
  onDrop: G.value ? Ze : void 0,
@@ -6952,7 +6956,7 @@ const il = ["accept"], rl = {
6952
6956
  onInputChange: me,
6953
6957
  onSelectSuggestion: xt
6954
6958
  };
6955
- return P.value && (K.onStop = he), G.value && (K.onAddFile = _e, K.attachments = te.value, K.onRemoveAttachment = et, K.dragOver = ae.value, K.onDragOver = Me, K.onDragLeave = Oe, K.onDrop = Ze), O.value && (K.onStartTranscribe = ze, K.onCancelTranscribe = Se, K.onFinishTranscribe = Le), K;
6959
+ return P.value && (K.onStop = he), G.value && (K.onAddFile = He, K.attachments = te.value, K.onRemoveAttachment = et, K.dragOver = ae.value, K.onDragOver = Me, K.onDragLeave = Oe, K.onDrop = Ze), O.value && (K.onStartTranscribe = ze, K.onCancelTranscribe = Se, K.onFinishTranscribe = Le), K;
6956
6960
  });
6957
6961
  return (K, re) => ($(), ge(gn, {
6958
6962
  "agent-id": k.value,
@@ -6977,12 +6981,12 @@ const il = ["accept"], rl = {
6977
6981
  onChange: re[0] || (re[0] = (le) => {
6978
6982
  Y(Te)(le);
6979
6983
  })
6980
- }, null, 40, il)) : ee("", !0),
6984
+ }, null, 40, rl)) : ee("", !0),
6981
6985
  F.value ? ee("", !0) : ($(), ge(mn, {
6982
6986
  key: 1,
6983
6987
  "feature-name": "Chat"
6984
6988
  })),
6985
- w.value ? ($(), V("div", rl, be(w.value), 1)) : ee("", !0),
6989
+ w.value ? ($(), V("div", ll, be(w.value), 1)) : ee("", !0),
6986
6990
  I(K.$slots, "chat-view", Q(Z(ye.value)), () => [
6987
6991
  oe(Qt, pe(pt.value, {
6988
6992
  messages: ye.value.messages,
@@ -7011,17 +7015,17 @@ const il = ["accept"], rl = {
7011
7015
  _: 3
7012
7016
  }, 8, ["agent-id", "thread-id", "has-explicit-thread-id", "labels"]));
7013
7017
  }
7014
- }), ll = ["src"], cl = ["src"], ul = {
7018
+ }), cl = ["src"], ul = ["src"], dl = {
7015
7019
  key: 0,
7016
7020
  class: "cpk:text-xs cpk:text-muted-foreground cpk:truncate cpk:max-w-[300px]",
7017
7021
  "data-testid": "copilot-chat-attachment-renderer-audio-filename"
7018
- }, dl = ["src"], pl = {
7022
+ }, pl = ["src"], fl = {
7019
7023
  class: "cpk:text-xs cpk:font-bold cpk:uppercase",
7020
7024
  "data-testid": "copilot-chat-attachment-renderer-document-icon"
7021
- }, fl = {
7025
+ }, gl = {
7022
7026
  class: "cpk:text-sm cpk:text-muted-foreground cpk:truncate",
7023
7027
  "data-testid": "copilot-chat-attachment-renderer-document-label"
7024
- }, fc = /* @__PURE__ */ se({
7028
+ }, gc = /* @__PURE__ */ se({
7025
7029
  __name: "CopilotChatAttachmentRenderer",
7026
7030
  props: {
7027
7031
  type: {},
@@ -7040,7 +7044,7 @@ const il = ["accept"], rl = {
7040
7044
  class: ke(["cpk:max-w-full cpk:h-auto cpk:rounded-lg", n.className]),
7041
7045
  "data-testid": "copilot-chat-attachment-renderer-image",
7042
7046
  onError: s[0] || (s[0] = (r) => t.value = !0)
7043
- }, null, 42, ll)) : n.type === "image" ? ($(), V("div", {
7047
+ }, null, 42, cl)) : n.type === "image" ? ($(), V("div", {
7044
7048
  key: 1,
7045
7049
  class: ke(["cpk:flex cpk:flex-col cpk:items-center cpk:justify-center cpk:rounded-lg cpk:bg-muted cpk:p-4 cpk:text-sm cpk:text-muted-foreground", n.className]),
7046
7050
  "data-testid": "copilot-chat-attachment-renderer-image-fallback"
@@ -7056,8 +7060,8 @@ const il = ["accept"], rl = {
7056
7060
  controls: "",
7057
7061
  preload: "metadata",
7058
7062
  class: "cpk:max-w-[300px] cpk:w-full cpk:h-10"
7059
- }, null, 8, cl),
7060
- n.filename ? ($(), V("span", ul, be(n.filename), 1)) : ee("", !0)
7063
+ }, null, 8, ul),
7064
+ n.filename ? ($(), V("span", dl, be(n.filename), 1)) : ee("", !0)
7061
7065
  ], 2)) : n.type === "video" ? ($(), V("video", {
7062
7066
  key: 3,
7063
7067
  src: a.value,
@@ -7065,13 +7069,13 @@ const il = ["accept"], rl = {
7065
7069
  preload: "metadata",
7066
7070
  class: ke(["cpk:max-w-[400px] cpk:w-full cpk:rounded-lg", n.className]),
7067
7071
  "data-testid": "copilot-chat-attachment-renderer-video"
7068
- }, null, 10, dl)) : ($(), V("div", {
7072
+ }, null, 10, pl)) : ($(), V("div", {
7069
7073
  key: 4,
7070
7074
  class: ke(["cpk:inline-flex cpk:items-center cpk:gap-2 cpk:px-3 cpk:py-2 cpk:border cpk:border-border cpk:rounded-lg cpk:bg-muted", n.className]),
7071
7075
  "data-testid": "copilot-chat-attachment-renderer-document"
7072
7076
  }, [
7073
- D("span", pl, be(Y(an)(n.source.mimeType ?? "")), 1),
7074
- D("span", fl, be(i.value), 1)
7077
+ D("span", fl, be(Y(an)(n.source.mimeType ?? "")), 1),
7078
+ D("span", gl, be(i.value), 1)
7075
7079
  ], 2));
7076
7080
  }
7077
7081
  });
@@ -7082,7 +7086,7 @@ function Ct(e, n, t) {
7082
7086
  });
7083
7087
  Lt(() => a.unsubscribe());
7084
7088
  }
7085
- function gl(e) {
7089
+ function vl(e) {
7086
7090
  const { copilotkit: n } = Pe(), t = Aa({
7087
7091
  fetch: n.value.ɵruntimeFetch
7088
7092
  }), a = l(() => Ne(e.agentId)), i = l(
@@ -7143,7 +7147,7 @@ function gl(e) {
7143
7147
  X,
7144
7148
  A,
7145
7149
  M,
7146
- _,
7150
+ H,
7147
7151
  F,
7148
7152
  z
7149
7153
  ]) => {
@@ -7163,7 +7167,7 @@ function gl(e) {
7163
7167
  wsUrl: X,
7164
7168
  agentId: A,
7165
7169
  includeArchived: M,
7166
- limit: _
7170
+ limit: H
7167
7171
  };
7168
7172
  t.setContext(ue), h.value = !0;
7169
7173
  },
@@ -7184,13 +7188,13 @@ function gl(e) {
7184
7188
  return {
7185
7189
  threads: l(
7186
7190
  () => g.value.map(
7187
- ({ id: j, agentId: W, name: X, archived: A, createdAt: M, updatedAt: _, lastRunAt: F }) => ({
7191
+ ({ id: j, agentId: W, name: X, archived: A, createdAt: M, updatedAt: H, lastRunAt: F }) => ({
7188
7192
  id: j,
7189
7193
  agentId: W,
7190
7194
  name: X,
7191
7195
  archived: A,
7192
7196
  createdAt: M,
7193
- updatedAt: _,
7197
+ updatedAt: H,
7194
7198
  ...F !== void 0 ? { lastRunAt: F } : {}
7195
7199
  })
7196
7200
  )
@@ -7219,7 +7223,7 @@ function gl(e) {
7219
7223
  )
7220
7224
  };
7221
7225
  }
7222
- const Pn = "copilot-chat-input-textarea", vl = "copilot-chat-view", gc = /* @__PURE__ */ se({
7226
+ const Pn = "copilot-chat-input-textarea", ml = "copilot-chat-view", vc = /* @__PURE__ */ se({
7223
7227
  __name: "CopilotThreadsDrawer",
7224
7228
  props: {
7225
7229
  agentId: {},
@@ -7237,7 +7241,7 @@ const Pn = "copilot-chat-input-textarea", vl = "copilot-chat-view", gc = /* @__P
7237
7241
  setup(e, { emit: n }) {
7238
7242
  const t = e, a = n, i = Fe(), o = Jt(), s = l(() => {
7239
7243
  const F = o.value.status;
7240
- return (F === "valid" || F === "expiring") && o.value.checkFeature("threads");
7244
+ return F === "unknown" ? !0 : (F === "valid" || F === "expiring") && o.value.checkFeature("threads");
7241
7245
  }), r = l(() => o.value.status === null), c = l(
7242
7246
  () => t.agentId ?? i.value?.agentId ?? at
7243
7247
  ), u = l(() => i.value?.threadId ?? null), d = T(!1), y = l(
@@ -7246,7 +7250,7 @@ const Pn = "copilot-chat-input-textarea", vl = "copilot-chat-view", gc = /* @__P
7246
7250
  function w(F) {
7247
7251
  i.value ? i.value.setDrawerOpen?.(F) : d.value = F;
7248
7252
  }
7249
- const g = gl({
7253
+ const g = vl({
7250
7254
  agentId: c,
7251
7255
  includeArchived: !0,
7252
7256
  enabled: s,
@@ -7280,7 +7284,7 @@ const Pn = "copilot-chat-input-textarea", vl = "copilot-chat-view", gc = /* @__P
7280
7284
  function h(F) {
7281
7285
  if (typeof document > "u") return null;
7282
7286
  const z = F?.closest?.(
7283
- `[data-testid="${vl}"]`
7287
+ `[data-testid="${ml}"]`
7284
7288
  );
7285
7289
  if (z) {
7286
7290
  const ue = z.querySelector(
@@ -7340,7 +7344,7 @@ const Pn = "copilot-chat-input-textarea", vl = "copilot-chat-view", gc = /* @__P
7340
7344
  const { open: z } = F.detail;
7341
7345
  w(z);
7342
7346
  }
7343
- function _() {
7347
+ function H() {
7344
7348
  t.onLicensed?.();
7345
7349
  }
7346
7350
  return (F, z) => f.value ? ($(), ge(bt(k.value), {
@@ -7359,7 +7363,7 @@ const Pn = "copilot-chat-input-textarea", vl = "copilot-chat-view", gc = /* @__P
7359
7363
  onRetry: X,
7360
7364
  onLoadMore: A,
7361
7365
  onOpenChange: M,
7362
- onLicensed: _
7366
+ onLicensed: H
7363
7367
  }, {
7364
7368
  default: J(() => [
7365
7369
  I(F.$slots, "default"),
@@ -7399,7 +7403,7 @@ const Pn = "copilot-chat-input-textarea", vl = "copilot-chat-view", gc = /* @__P
7399
7403
  });
7400
7404
  };
7401
7405
  }
7402
- }), ml = ["type", "data-state", "aria-label", "aria-pressed", "disabled"], Vt = "cpk:h-6 cpk:w-6", Hn = "cpk:pointer-events-none cpk:absolute cpk:inset-0 cpk:flex cpk:items-center cpk:justify-center cpk:will-change-transform", kn = /* @__PURE__ */ se({
7406
+ }), hl = ["type", "data-state", "aria-label", "aria-pressed", "disabled"], Vt = "cpk:h-6 cpk:w-6", _n = "cpk:pointer-events-none cpk:absolute cpk:inset-0 cpk:flex cpk:items-center cpk:justify-center cpk:will-change-transform", kn = /* @__PURE__ */ se({
7403
7407
  inheritAttrs: !1,
7404
7408
  __name: "CopilotChatToggleButton",
7405
7409
  props: {
@@ -7456,7 +7460,7 @@ const Pn = "copilot-chat-input-textarea", vl = "copilot-chat-view", gc = /* @__P
7456
7460
  D("span", {
7457
7461
  "aria-hidden": "true",
7458
7462
  "data-slot": "chat-toggle-button-open-icon",
7459
- class: ke(Hn),
7463
+ class: ke(_n),
7460
7464
  style: mt({
7461
7465
  ...Y(d),
7462
7466
  opacity: s.value ? 0 : 1,
@@ -7477,7 +7481,7 @@ const Pn = "copilot-chat-input-textarea", vl = "copilot-chat-view", gc = /* @__P
7477
7481
  D("span", {
7478
7482
  "aria-hidden": "true",
7479
7483
  "data-slot": "chat-toggle-button-close-icon",
7480
- class: ke(Hn),
7484
+ class: ke(_n),
7481
7485
  style: mt({
7482
7486
  ...Y(d),
7483
7487
  opacity: s.value ? 1 : 0,
@@ -7495,7 +7499,7 @@ const Pn = "copilot-chat-input-textarea", vl = "copilot-chat-view", gc = /* @__P
7495
7499
  })
7496
7500
  ])
7497
7501
  ], 4)
7498
- ], 16, ml));
7502
+ ], 16, hl));
7499
7503
  }
7500
7504
  }), ca = se({
7501
7505
  name: "CopilotModalHeaderCloseButton",
@@ -7545,10 +7549,10 @@ const Pn = "copilot-chat-input-textarea", vl = "copilot-chat-view", gc = /* @__P
7545
7549
  );
7546
7550
  };
7547
7551
  }
7548
- }), hl = { class: "cpk:flex cpk:w-full cpk:items-center cpk:gap-2" }, bl = { class: "cpk:flex cpk:flex-1 cpk:justify-start" }, kl = ["aria-expanded"], yl = {
7552
+ }), bl = { class: "cpk:flex cpk:w-full cpk:items-center cpk:gap-2" }, kl = { class: "cpk:flex cpk:flex-1 cpk:justify-start" }, yl = ["aria-expanded"], wl = {
7549
7553
  key: 1,
7550
7554
  "aria-hidden": "true"
7551
- }, wl = { class: "cpk:flex cpk:flex-1 cpk:justify-center cpk:text-center" }, xl = { class: "cpk:flex cpk:flex-1 cpk:justify-end" }, yn = /* @__PURE__ */ se({
7555
+ }, xl = { class: "cpk:flex cpk:flex-1 cpk:justify-center cpk:text-center" }, Cl = { class: "cpk:flex cpk:flex-1 cpk:justify-end" }, yn = /* @__PURE__ */ se({
7552
7556
  inheritAttrs: !1,
7553
7557
  __name: "CopilotModalHeader",
7554
7558
  props: {
@@ -7593,8 +7597,8 @@ const Pn = "copilot-chat-input-textarea", vl = "copilot-chat-view", gc = /* @__P
7593
7597
  title: i.value,
7594
7598
  onClose: r
7595
7599
  }, () => [
7596
- D("div", hl, [
7597
- D("div", bl, [
7600
+ D("div", bl, [
7601
+ D("div", kl, [
7598
7602
  y.value ? ($(), V("button", {
7599
7603
  key: 0,
7600
7604
  type: "button",
@@ -7608,9 +7612,9 @@ const Pn = "copilot-chat-input-textarea", vl = "copilot-chat-view", gc = /* @__P
7608
7612
  class: "cpk:h-4 cpk:w-4",
7609
7613
  "aria-hidden": "true"
7610
7614
  })
7611
- ], 8, kl)) : ($(), V("span", yl))
7615
+ ], 8, yl)) : ($(), V("span", wl))
7612
7616
  ]),
7613
- D("div", wl, [
7617
+ D("div", xl, [
7614
7618
  I(g.$slots, "title-content", { title: i.value }, () => [
7615
7619
  oe(Y(ua), null, {
7616
7620
  default: J(() => [
@@ -7620,7 +7624,7 @@ const Pn = "copilot-chat-input-textarea", vl = "copilot-chat-view", gc = /* @__P
7620
7624
  })
7621
7625
  ])
7622
7626
  ]),
7623
- D("div", xl, [
7627
+ D("div", Cl, [
7624
7628
  I(g.$slots, "close-button", { onClose: r }, () => [
7625
7629
  oe(Y(ca), { onClick: r })
7626
7630
  ])
@@ -7629,14 +7633,14 @@ const Pn = "copilot-chat-input-textarea", vl = "copilot-chat-view", gc = /* @__P
7629
7633
  ])
7630
7634
  ], 16));
7631
7635
  }
7632
- }), Cl = {
7636
+ }), Tl = {
7633
7637
  key: 0,
7634
7638
  "data-copilotkit": "",
7635
7639
  class: "cpk:fixed cpk:inset-0 cpk:z-[1200] cpk:flex cpk:max-w-full cpk:flex-col cpk:items-stretch cpk:md:inset-auto cpk:md:bottom-24 cpk:md:right-6 cpk:md:items-end cpk:md:gap-4"
7636
- }, Tl = ["aria-label"], Sl = {
7640
+ }, Sl = ["aria-label"], Il = {
7637
7641
  class: "cpk:flex-1 cpk:overflow-hidden",
7638
7642
  "data-popup-chat": ""
7639
- }, Il = 420, Al = 560, _n = 200, Rl = /* @__PURE__ */ se({
7643
+ }, Al = 420, Rl = 560, Hn = 200, Ml = /* @__PURE__ */ se({
7640
7644
  inheritAttrs: !1,
7641
7645
  __name: "CopilotPopupViewInternal",
7642
7646
  props: {
@@ -7678,10 +7682,10 @@ const Pn = "copilot-chat-input-textarea", vl = "copilot-chat-view", gc = /* @__P
7678
7682
  () => y.value && !c.value ? "cpk:pointer-events-auto cpk:translate-y-0 cpk:opacity-100 cpk:md:scale-100" : "cpk:pointer-events-none cpk:translate-y-4 cpk:opacity-0 cpk:md:translate-y-5 cpk:md:scale-[0.95]"
7679
7683
  ), b = l(
7680
7684
  () => ({
7681
- "--copilot-popup-width": f(t.width, Il),
7685
+ "--copilot-popup-width": f(t.width, Al),
7682
7686
  "--copilot-popup-height": f(
7683
7687
  t.height,
7684
- Al
7688
+ Rl
7685
7689
  ),
7686
7690
  "--copilot-popup-max-width": "calc(100vw - 3rem)",
7687
7691
  "--copilot-popup-max-height": "calc(100dvh - 7.5rem)",
@@ -7751,38 +7755,38 @@ const Pn = "copilot-chat-input-textarea", vl = "copilot-chat-view", gc = /* @__P
7751
7755
  }
7752
7756
  r.value && (c.value = !0, u = setTimeout(() => {
7753
7757
  r.value = !1, c.value = !1, u = void 0;
7754
- }, _n));
7758
+ }, Hn));
7755
7759
  },
7756
7760
  { immediate: !0 }
7757
7761
  ), U(
7758
7762
  y,
7759
- (A, M, _) => {
7763
+ (A, M, H) => {
7760
7764
  if (!A || typeof window > "u")
7761
7765
  return;
7762
7766
  const F = (z) => {
7763
7767
  z.key === "Escape" && (z.preventDefault(), k());
7764
7768
  };
7765
- window.addEventListener("keydown", F), _(() => {
7769
+ window.addEventListener("keydown", F), H(() => {
7766
7770
  window.removeEventListener("keydown", F);
7767
7771
  });
7768
7772
  },
7769
7773
  { immediate: !0 }
7770
7774
  ), U(
7771
7775
  y,
7772
- (A, M, _) => {
7776
+ (A, M, H) => {
7773
7777
  A && (d = setTimeout(() => {
7774
7778
  if (typeof document > "u")
7775
7779
  return;
7776
7780
  const F = s.value;
7777
7781
  F && !F.contains(document.activeElement) && F.focus({ preventScroll: !0 });
7778
- }, _n), _(() => {
7782
+ }, Hn), H(() => {
7779
7783
  d && (clearTimeout(d), d = void 0);
7780
7784
  }));
7781
7785
  },
7782
7786
  { immediate: !0 }
7783
7787
  ), U(
7784
7788
  [y, () => t.clickOutsideToClose],
7785
- ([A, M], _, F) => {
7789
+ ([A, M], H, F) => {
7786
7790
  if (!A || !M || typeof document > "u")
7787
7791
  return;
7788
7792
  const z = (ue) => {
@@ -7809,7 +7813,7 @@ const Pn = "copilot-chat-input-textarea", vl = "copilot-chat-view", gc = /* @__P
7809
7813
  }, () => [
7810
7814
  oe(kn)
7811
7815
  ]),
7812
- r.value ? ($(), V("div", Cl, [
7816
+ r.value ? ($(), V("div", Tl, [
7813
7817
  D("div", {
7814
7818
  ref_key: "containerRef",
7815
7819
  ref: s,
@@ -7836,7 +7840,7 @@ const Pn = "copilot-chat-input-textarea", vl = "copilot-chat-view", gc = /* @__P
7836
7840
  }, () => [
7837
7841
  oe(yn, { title: g.value }, null, 8, ["title"])
7838
7842
  ]),
7839
- D("div", Sl, [
7843
+ D("div", Il, [
7840
7844
  oe(Qt, pe({
7841
7845
  messages: e.messages,
7842
7846
  "auto-scroll": e.autoScroll,
@@ -7851,15 +7855,15 @@ const Pn = "copilot-chat-input-textarea", vl = "copilot-chat-view", gc = /* @__P
7851
7855
  }, X.value), Ye({ _: 2 }, [
7852
7856
  A.$slots["message-view"] ? {
7853
7857
  name: "message-view",
7854
- fn: J((_) => [
7855
- I(A.$slots, "message-view", Q(Z(_)))
7858
+ fn: J((H) => [
7859
+ I(A.$slots, "message-view", Q(Z(H)))
7856
7860
  ]),
7857
7861
  key: "0"
7858
7862
  } : void 0,
7859
7863
  A.$slots["scroll-view"] ? {
7860
7864
  name: "scroll-view",
7861
- fn: J((_) => [
7862
- I(A.$slots, "scroll-view", Q(Z(_)))
7865
+ fn: J((H) => [
7866
+ I(A.$slots, "scroll-view", Q(Z(H)))
7863
7867
  ]),
7864
7868
  key: "1"
7865
7869
  } : void 0,
@@ -7872,29 +7876,29 @@ const Pn = "copilot-chat-input-textarea", vl = "copilot-chat-view", gc = /* @__P
7872
7876
  } : void 0,
7873
7877
  A.$slots["scroll-to-bottom-button"] ? {
7874
7878
  name: "scroll-to-bottom-button",
7875
- fn: J((_) => [
7876
- I(A.$slots, "scroll-to-bottom-button", Q(Z(_)))
7879
+ fn: J((H) => [
7880
+ I(A.$slots, "scroll-to-bottom-button", Q(Z(H)))
7877
7881
  ]),
7878
7882
  key: "3"
7879
7883
  } : void 0,
7880
7884
  A.$slots.input ? {
7881
7885
  name: "input",
7882
- fn: J((_) => [
7883
- I(A.$slots, "input", Q(Z(_)))
7886
+ fn: J((H) => [
7887
+ I(A.$slots, "input", Q(Z(H)))
7884
7888
  ]),
7885
7889
  key: "4"
7886
7890
  } : void 0,
7887
7891
  A.$slots["suggestion-view"] ? {
7888
7892
  name: "suggestion-view",
7889
- fn: J((_) => [
7890
- I(A.$slots, "suggestion-view", Q(Z(_)))
7893
+ fn: J((H) => [
7894
+ I(A.$slots, "suggestion-view", Q(Z(H)))
7891
7895
  ]),
7892
7896
  key: "5"
7893
7897
  } : void 0,
7894
7898
  A.$slots["welcome-screen"] ? {
7895
7899
  name: "welcome-screen",
7896
- fn: J((_) => [
7897
- I(A.$slots, "welcome-screen", Q(Z(_)))
7900
+ fn: J((H) => [
7901
+ I(A.$slots, "welcome-screen", Q(Z(H)))
7898
7902
  ]),
7899
7903
  key: "6"
7900
7904
  } : void 0,
@@ -7907,7 +7911,7 @@ const Pn = "copilot-chat-input-textarea", vl = "copilot-chat-view", gc = /* @__P
7907
7911
  } : void 0
7908
7912
  ]), 1040, ["messages", "auto-scroll", "is-running", "suggestions", "suggestion-loading-indexes", "welcome-screen", "input-value", "input-mode", "input-tools-menu", "on-finish-transcribe-with-audio"])
7909
7913
  ])
7910
- ], 14, Tl)
7914
+ ], 14, Sl)
7911
7915
  ])) : ee("", !0)
7912
7916
  ], 64));
7913
7917
  }
@@ -7965,7 +7969,7 @@ const Pn = "copilot-chat-input-textarea", vl = "copilot-chat-view", gc = /* @__P
7965
7969
  }));
7966
7970
  return (c, u) => ($(), ge(gn, { "is-modal-default-open": e.defaultOpen }, {
7967
7971
  default: J(() => [
7968
- oe(Rl, Q(Z(r.value)), Ye({ _: 2 }, [
7972
+ oe(Ml, Q(Z(r.value)), Ye({ _: 2 }, [
7969
7973
  c.$slots.header ? {
7970
7974
  name: "header",
7971
7975
  fn: J((d) => [
@@ -8041,11 +8045,11 @@ const Pn = "copilot-chat-input-textarea", vl = "copilot-chat-view", gc = /* @__P
8041
8045
  _: 3
8042
8046
  }, 8, ["is-modal-default-open"]));
8043
8047
  }
8044
- }), Ml = {
8048
+ }), $l = {
8045
8049
  "data-copilotkit": "",
8046
8050
  class: "cpk:h-full cpk:flex cpk:flex-col",
8047
8051
  "data-testid": "copilot-popup-welcome-screen"
8048
- }, $l = { class: "cpk:flex-1 cpk:flex cpk:flex-col cpk:items-center cpk:justify-center cpk:px-4" }, El = { class: "cpk:text-xl cpk:sm:text-2xl cpk:font-medium cpk:text-foreground cpk:text-center" }, Fl = { class: "cpk:mb-4 cpk:flex cpk:justify-center cpk:px-4" }, pa = /* @__PURE__ */ se({
8052
+ }, El = { class: "cpk:flex-1 cpk:flex cpk:flex-col cpk:items-center cpk:justify-center cpk:px-4" }, Fl = { class: "cpk:text-xl cpk:sm:text-2xl cpk:font-medium cpk:text-foreground cpk:text-center" }, Ol = { class: "cpk:mb-4 cpk:flex cpk:justify-center cpk:px-4" }, pa = /* @__PURE__ */ se({
8049
8053
  __name: "CopilotPopupWelcomeScreen",
8050
8054
  props: {
8051
8055
  modelValue: { default: "" },
@@ -8123,14 +8127,14 @@ const Pn = "copilot-chat-input-textarea", vl = "copilot-chat-view", gc = /* @__P
8123
8127
  return n.onAddFile && (v.onAddFile = n.onAddFile), n.onStartTranscribe && (v.onStartTranscribe = n.onStartTranscribe), n.onCancelTranscribe && (v.onCancelTranscribe = n.onCancelTranscribe), n.onFinishTranscribe && (v.onFinishTranscribe = n.onFinishTranscribe), n.onFinishTranscribeWithAudio && (v.onFinishTranscribeWithAudio = n.onFinishTranscribeWithAudio), v;
8124
8128
  });
8125
8129
  return (v, b) => I(v.$slots, "layout", Q(Z(w.value)), () => [
8126
- D("div", Ml, [
8127
- D("div", $l, [
8130
+ D("div", $l, [
8131
+ D("div", El, [
8128
8132
  I(v.$slots, "welcome-message", {}, () => [
8129
- D("h1", El, be(a.value.welcomeMessageText), 1)
8133
+ D("h1", Fl, be(a.value.welcomeMessageText), 1)
8130
8134
  ])
8131
8135
  ]),
8132
8136
  D("div", null, [
8133
- D("div", Fl, [
8137
+ D("div", Ol, [
8134
8138
  I(v.$slots, "suggestion-view", Q(Z(y.value)), () => [
8135
8139
  oe(zt, {
8136
8140
  suggestions: e.suggestions,
@@ -8140,7 +8144,7 @@ const Pn = "copilot-chat-input-textarea", vl = "copilot-chat-view", gc = /* @__P
8140
8144
  ])
8141
8145
  ]),
8142
8146
  I(v.$slots, "input", Q(Z(d.value)), () => [
8143
- oe(_t, pe({
8147
+ oe(Ht, pe({
8144
8148
  "model-value": e.modelValue,
8145
8149
  "is-running": e.isRunning,
8146
8150
  mode: e.inputMode,
@@ -8153,10 +8157,10 @@ const Pn = "copilot-chat-input-textarea", vl = "copilot-chat-view", gc = /* @__P
8153
8157
  ])
8154
8158
  ]);
8155
8159
  }
8156
- }), Ol = ["aria-hidden"], Ll = { class: "cpk:flex cpk:h-full cpk:w-full cpk:flex-col cpk:overflow-hidden" }, Dl = {
8160
+ }), Ll = ["aria-hidden"], Dl = { class: "cpk:flex cpk:h-full cpk:w-full cpk:flex-col cpk:overflow-hidden" }, Bl = {
8157
8161
  class: "cpk:flex-1 cpk:overflow-hidden",
8158
8162
  "data-sidebar-chat": ""
8159
- }, Bl = 480, Ul = 260, jl = /* @__PURE__ */ se({
8163
+ }, Ul = 480, jl = 260, Nl = /* @__PURE__ */ se({
8160
8164
  inheritAttrs: !1,
8161
8165
  __name: "CopilotSidebarViewInternal",
8162
8166
  props: {
@@ -8191,7 +8195,7 @@ const Pn = "copilot-chat-input-textarea", vl = "copilot-chat-view", gc = /* @__P
8191
8195
  emits: ["submit-message", "stop", "input-change", "select-suggestion", "add-file", "start-transcribe", "cancel-transcribe", "finish-transcribe"],
8192
8196
  setup(e, { emit: n }) {
8193
8197
  const t = e, a = n, i = ot(), o = Fe(), s = T(null), r = T(
8194
- t.width ?? Bl
8198
+ t.width ?? Ul
8195
8199
  );
8196
8200
  let c = null;
8197
8201
  const u = l(() => o.value?.isModalOpen ?? !1), d = l(
@@ -8205,8 +8209,8 @@ const Pn = "copilot-chat-input-textarea", vl = "copilot-chat-view", gc = /* @__P
8205
8209
  u.value ? "cpk:translate-x-0" : "cpk:translate-x-full cpk:pointer-events-none",
8206
8210
  i.class
8207
8211
  ]), g = l(() => {
8208
- const { class: M, ..._ } = i;
8209
- return _;
8212
+ const { class: M, ...H } = i;
8213
+ return H;
8210
8214
  }), v = l(
8211
8215
  () => ({
8212
8216
  "--sidebar-width": f(d.value),
@@ -8218,7 +8222,7 @@ const Pn = "copilot-chat-input-textarea", vl = "copilot-chat-view", gc = /* @__P
8218
8222
  @media (min-width: 768px) {
8219
8223
  body {
8220
8224
  margin-inline-end: ${k(d.value)};
8221
- transition: margin-inline-end ${Ul}ms ease;
8225
+ transition: margin-inline-end ${jl}ms ease;
8222
8226
  }
8223
8227
  }
8224
8228
  `
@@ -8253,8 +8257,8 @@ const Pn = "copilot-chat-input-textarea", vl = "copilot-chat-view", gc = /* @__P
8253
8257
  function L(M) {
8254
8258
  a("input-change", M);
8255
8259
  }
8256
- function B(M, _) {
8257
- a("select-suggestion", M, _);
8260
+ function B(M, H) {
8261
+ a("select-suggestion", M, H);
8258
8262
  }
8259
8263
  function N() {
8260
8264
  a("add-file");
@@ -8291,7 +8295,7 @@ const Pn = "copilot-chat-input-textarea", vl = "copilot-chat-view", gc = /* @__P
8291
8295
  }), c.observe(s.value));
8292
8296
  }), Ae(() => {
8293
8297
  c?.disconnect(), c = null;
8294
- }), (M, _) => ($(), V(Ie, null, [
8298
+ }), (M, H) => ($(), V(Ie, null, [
8295
8299
  u.value ? ($(), ge(bt("style"), { key: 0 }, {
8296
8300
  default: J(() => [
8297
8301
  qt(be(b.value), 1)
@@ -8317,7 +8321,7 @@ const Pn = "copilot-chat-input-textarea", vl = "copilot-chat-view", gc = /* @__P
8317
8321
  "aria-hidden": !u.value,
8318
8322
  role: "complementary"
8319
8323
  }, g.value), [
8320
- D("div", Ll, [
8324
+ D("div", Dl, [
8321
8325
  I(M.$slots, "header", {
8322
8326
  title: y.value,
8323
8327
  onClose: S,
@@ -8325,7 +8329,7 @@ const Pn = "copilot-chat-input-textarea", vl = "copilot-chat-view", gc = /* @__P
8325
8329
  }, () => [
8326
8330
  oe(yn, { title: y.value }, null, 8, ["title"])
8327
8331
  ]),
8328
- D("div", Dl, [
8332
+ D("div", Bl, [
8329
8333
  oe(Qt, pe({
8330
8334
  messages: e.messages,
8331
8335
  "auto-scroll": e.autoScroll,
@@ -8397,7 +8401,7 @@ const Pn = "copilot-chat-input-textarea", vl = "copilot-chat-view", gc = /* @__P
8397
8401
  ]), 1040, ["messages", "auto-scroll", "is-running", "suggestions", "suggestion-loading-indexes", "welcome-screen", "input-value", "input-mode", "input-tools-menu", "on-finish-transcribe-with-audio"])
8398
8402
  ])
8399
8403
  ])
8400
- ], 16, Ol)
8404
+ ], 16, Ll)
8401
8405
  ], 64));
8402
8406
  }
8403
8407
  }), fa = /* @__PURE__ */ se({
@@ -8452,7 +8456,7 @@ const Pn = "copilot-chat-input-textarea", vl = "copilot-chat-view", gc = /* @__P
8452
8456
  });
8453
8457
  return (c, u) => ($(), ge(gn, { "is-modal-default-open": e.defaultOpen }, {
8454
8458
  default: J(() => [
8455
- oe(jl, Q(Z(s.value)), Ye({ _: 2 }, [
8459
+ oe(Nl, Q(Z(s.value)), Ye({ _: 2 }, [
8456
8460
  c.$slots.header ? {
8457
8461
  name: "header",
8458
8462
  fn: J((d) => [
@@ -8528,11 +8532,11 @@ const Pn = "copilot-chat-input-textarea", vl = "copilot-chat-view", gc = /* @__P
8528
8532
  _: 3
8529
8533
  }, 8, ["is-modal-default-open"]));
8530
8534
  }
8531
- }), Nl = {
8535
+ }), Vl = {
8532
8536
  "data-copilotkit": "",
8533
8537
  class: "cpk:h-full cpk:flex cpk:flex-col",
8534
8538
  "data-testid": "copilot-sidebar-welcome-screen"
8535
- }, Vl = { class: "cpk:flex-1 cpk:flex cpk:flex-col cpk:items-center cpk:justify-center cpk:px-4" }, Pl = { class: "cpk:text-xl cpk:sm:text-2xl cpk:font-medium cpk:text-foreground cpk:text-center" }, Hl = { class: "cpk:px-8 cpk:pb-4" }, _l = { class: "cpk:max-w-3xl cpk:mx-auto" }, zl = { class: "cpk:mb-4 cpk:flex cpk:justify-center" }, ga = /* @__PURE__ */ se({
8539
+ }, Pl = { class: "cpk:flex-1 cpk:flex cpk:flex-col cpk:items-center cpk:justify-center cpk:px-4" }, _l = { class: "cpk:text-xl cpk:sm:text-2xl cpk:font-medium cpk:text-foreground cpk:text-center" }, Hl = { class: "cpk:px-8 cpk:pb-4" }, zl = { class: "cpk:max-w-3xl cpk:mx-auto" }, Wl = { class: "cpk:mb-4 cpk:flex cpk:justify-center" }, ga = /* @__PURE__ */ se({
8536
8540
  __name: "CopilotSidebarWelcomeScreen",
8537
8541
  props: {
8538
8542
  modelValue: { default: "" },
@@ -8610,15 +8614,15 @@ const Pn = "copilot-chat-input-textarea", vl = "copilot-chat-view", gc = /* @__P
8610
8614
  return n.onAddFile && (v.onAddFile = n.onAddFile), n.onStartTranscribe && (v.onStartTranscribe = n.onStartTranscribe), n.onCancelTranscribe && (v.onCancelTranscribe = n.onCancelTranscribe), n.onFinishTranscribe && (v.onFinishTranscribe = n.onFinishTranscribe), n.onFinishTranscribeWithAudio && (v.onFinishTranscribeWithAudio = n.onFinishTranscribeWithAudio), v;
8611
8615
  });
8612
8616
  return (v, b) => I(v.$slots, "layout", Q(Z(w.value)), () => [
8613
- D("div", Nl, [
8614
- D("div", Vl, [
8617
+ D("div", Vl, [
8618
+ D("div", Pl, [
8615
8619
  I(v.$slots, "welcome-message", {}, () => [
8616
- D("h1", Pl, be(a.value.welcomeMessageText), 1)
8620
+ D("h1", _l, be(a.value.welcomeMessageText), 1)
8617
8621
  ])
8618
8622
  ]),
8619
8623
  D("div", Hl, [
8620
- D("div", _l, [
8621
- D("div", zl, [
8624
+ D("div", zl, [
8625
+ D("div", Wl, [
8622
8626
  I(v.$slots, "suggestion-view", Q(Z(y.value)), () => [
8623
8627
  oe(zt, {
8624
8628
  suggestions: e.suggestions,
@@ -8628,7 +8632,7 @@ const Pn = "copilot-chat-input-textarea", vl = "copilot-chat-view", gc = /* @__P
8628
8632
  ])
8629
8633
  ]),
8630
8634
  I(v.$slots, "input", Q(Z(d.value)), () => [
8631
- oe(_t, pe({
8635
+ oe(Ht, pe({
8632
8636
  "model-value": e.modelValue,
8633
8637
  "is-running": e.isRunning,
8634
8638
  mode: e.inputMode,
@@ -8642,7 +8646,7 @@ const Pn = "copilot-chat-input-textarea", vl = "copilot-chat-view", gc = /* @__P
8642
8646
  ])
8643
8647
  ]);
8644
8648
  }
8645
- }), vc = /* @__PURE__ */ se({
8649
+ }), mc = /* @__PURE__ */ se({
8646
8650
  __name: "CopilotPopup",
8647
8651
  props: {
8648
8652
  width: { default: void 0 },
@@ -8790,7 +8794,7 @@ const Pn = "copilot-chat-input-textarea", vl = "copilot-chat-view", gc = /* @__P
8790
8794
  }, 16)
8791
8795
  ], 64));
8792
8796
  }
8793
- }), mc = /* @__PURE__ */ se({
8797
+ }), hc = /* @__PURE__ */ se({
8794
8798
  __name: "CopilotSidebar",
8795
8799
  props: {
8796
8800
  width: { default: void 0 },
@@ -8934,20 +8938,20 @@ const Pn = "copilot-chat-input-textarea", vl = "copilot-chat-view", gc = /* @__P
8934
8938
  }, 16)
8935
8939
  ], 64));
8936
8940
  }
8937
- }), hc = Object.assign(bn, {
8941
+ }), bc = Object.assign(bn, {
8938
8942
  View: Qt
8939
- }), bc = Object.assign(kn, {
8943
+ }), kc = Object.assign(kn, {
8940
8944
  OpenIcon: la,
8941
8945
  CloseIcon: ra
8942
- }), kc = Object.assign(yn, {
8946
+ }), yc = Object.assign(yn, {
8943
8947
  Title: ua,
8944
8948
  CloseButton: ca
8945
- }), yc = Object.assign(da, {
8949
+ }), wc = Object.assign(da, {
8946
8950
  WelcomeScreen: pa
8947
- }), wc = Object.assign(fa, {
8951
+ }), xc = Object.assign(fa, {
8948
8952
  WelcomeScreen: ga
8949
8953
  });
8950
- function xc(e) {
8954
+ function Cc(e) {
8951
8955
  const { copilotkit: n } = Pe(), t = l(() => Ne(e.description)), a = l(() => Ne(e.value)), i = l(
8952
8956
  () => typeof a.value == "string" ? a.value : JSON.stringify(a.value)
8953
8957
  );
@@ -8963,9 +8967,9 @@ function xc(e) {
8963
8967
  { immediate: !0 }
8964
8968
  );
8965
8969
  }
8966
- const Wl = [];
8970
+ const ql = [];
8967
8971
  function va(e, n) {
8968
- const { copilotkit: t } = Pe(), a = n ?? Wl;
8972
+ const { copilotkit: t } = Pe(), a = n ?? ql;
8969
8973
  U(
8970
8974
  [
8971
8975
  () => e.name,
@@ -8992,7 +8996,7 @@ function va(e, n) {
8992
8996
  { immediate: !0 }
8993
8997
  );
8994
8998
  }
8995
- function Cc(e, n) {
8999
+ function Tc(e, n) {
8996
9000
  const t = `Use this tool to display the "${e.name}" component in the chat. This tool renders a visual UI component for the user.`, a = e.description ? `${t}
8997
9001
 
8998
9002
  ${e.description}` : t;
@@ -9013,9 +9017,9 @@ ${e.description}` : t;
9013
9017
  n
9014
9018
  );
9015
9019
  }
9016
- const ql = [];
9017
- function Kl(e, n) {
9018
- const { copilotkit: t } = Pe(), a = n ?? ql;
9020
+ const Kl = [];
9021
+ function Gl(e, n) {
9022
+ const { copilotkit: t } = Pe(), a = n ?? Kl;
9019
9023
  U(
9020
9024
  [
9021
9025
  () => t.value,
@@ -9051,7 +9055,7 @@ function Kl(e, n) {
9051
9055
  );
9052
9056
  }
9053
9057
  const zn = /* @__PURE__ */ new Set();
9054
- function Gl(e) {
9058
+ function Jl(e) {
9055
9059
  switch (e) {
9056
9060
  case Ke.Complete:
9057
9061
  return "complete";
@@ -9068,7 +9072,7 @@ function Gl(e) {
9068
9072
  }
9069
9073
  }
9070
9074
  function en(e) {
9071
- const n = e.parameters !== void 0 ? e.parameters : e.args, t = e.status, a = t === "inProgress" || t === "executing" || t === "complete" ? t : Gl(t);
9075
+ const n = e.parameters !== void 0 ? e.parameters : e.args, t = e.status, a = t === "inProgress" || t === "executing" || t === "complete" ? t : Jl(t);
9072
9076
  return {
9073
9077
  name: e.name,
9074
9078
  toolCallId: e.toolCallId,
@@ -9095,7 +9099,7 @@ function Wn(e) {
9095
9099
  }
9096
9100
  }
9097
9101
  }
9098
- const Jl = se({
9102
+ const Ql = se({
9099
9103
  props: {
9100
9104
  name: {
9101
9105
  type: String,
@@ -9227,7 +9231,7 @@ function qn(e) {
9227
9231
  }
9228
9232
  }
9229
9233
  }
9230
- function Tc(e, n) {
9234
+ function Sc(e, n) {
9231
9235
  const t = e?.render;
9232
9236
  let a;
9233
9237
  if (typeof t == "function") {
@@ -9251,7 +9255,7 @@ function Tc(e, n) {
9251
9255
  } else
9252
9256
  a = ((i) => {
9253
9257
  const o = en(i);
9254
- return C(Jl, {
9258
+ return C(Ql, {
9255
9259
  name: o.name,
9256
9260
  toolCallId: o.toolCallId,
9257
9261
  parameters: o.parameters,
@@ -9259,7 +9263,7 @@ function Tc(e, n) {
9259
9263
  result: o.result
9260
9264
  });
9261
9265
  });
9262
- Kl(
9266
+ Gl(
9263
9267
  {
9264
9268
  name: "*",
9265
9269
  render: a
@@ -9267,7 +9271,7 @@ function Tc(e, n) {
9267
9271
  n
9268
9272
  );
9269
9273
  }
9270
- function Sc(e, n) {
9274
+ function Ic(e, n) {
9271
9275
  const { copilotkit: t } = Pe(), a = T(null), i = T(null), o = T(null), s = async (d) => {
9272
9276
  a.value && (o.value?.(), o.value = null, a.value(d), a.value = null, i.value = null);
9273
9277
  }, u = {
@@ -9319,16 +9323,16 @@ function Sc(e, n) {
9319
9323
  t.value.removeHookRenderToolCall(e.name, e.agentId);
9320
9324
  });
9321
9325
  }
9322
- function Ql(e) {
9326
+ function Xl(e) {
9323
9327
  return "instructions" in e;
9324
9328
  }
9325
- function Xl(e) {
9329
+ function Yl(e) {
9326
9330
  return e.map((n) => ({
9327
9331
  ...n,
9328
9332
  isLoading: n.isLoading ?? !1
9329
9333
  }));
9330
9334
  }
9331
- function Ic(e, n) {
9335
+ function Ac(e, n) {
9332
9336
  const { copilotkit: t } = Pe(), a = Fe(), i = n ?? [], o = l(
9333
9337
  () => a.value?.agentId ?? at
9334
9338
  ), s = l(
@@ -9336,9 +9340,9 @@ function Ic(e, n) {
9336
9340
  ), r = l(() => {
9337
9341
  if (!e || e.available === "disabled")
9338
9342
  return null;
9339
- if (Ql(e))
9343
+ if (Xl(e))
9340
9344
  return { ...e };
9341
- const f = Xl(
9345
+ const f = Yl(
9342
9346
  e.suggestions
9343
9347
  );
9344
9348
  return { ...e, suggestions: f };
@@ -9435,10 +9439,10 @@ function Ic(e, n) {
9435
9439
  );
9436
9440
  }
9437
9441
  const ma = "on_interrupt";
9438
- function Yl(e) {
9442
+ function Zl(e) {
9439
9443
  return (typeof e == "object" || typeof e == "function") && e !== null && typeof Reflect.get(e, "then") == "function";
9440
9444
  }
9441
- function Zl(e) {
9445
+ function ec(e) {
9442
9446
  return e instanceof Promise ? e : new Promise((n, t) => {
9443
9447
  try {
9444
9448
  e.then(n, t);
@@ -9450,7 +9454,7 @@ function Zl(e) {
9450
9454
  function tn(e) {
9451
9455
  return e.kind === "legacy" ? e.event : { name: ma, value: e.interrupts[0] };
9452
9456
  }
9453
- function Ac(e = {}) {
9457
+ function Rc(e = {}) {
9454
9458
  const { copilotkit: n } = Pe(), { agent: t } = hn({ agentId: e.agentId }), a = nt(null), i = nt(null), o = {};
9455
9459
  U(
9456
9460
  t,
@@ -9588,7 +9592,7 @@ function Ac(e = {}) {
9588
9592
  resolve: r,
9589
9593
  cancel: c
9590
9594
  });
9591
- Yl(S) ? Zl(S).then((h) => {
9595
+ Zl(S) ? ec(S).then((h) => {
9592
9596
  m || (i.value = h);
9593
9597
  }).catch((h) => {
9594
9598
  m || (console.error("[CopilotKit] useInterrupt handler failed:", h), i.value = null);
@@ -9640,7 +9644,7 @@ function Ac(e = {}) {
9640
9644
  slotProps: w
9641
9645
  };
9642
9646
  }
9643
- function Rc(e) {
9647
+ function Mc(e) {
9644
9648
  const { agent: n } = hn({ agentId: e });
9645
9649
  return l(() => {
9646
9650
  const t = n.value;
@@ -9648,7 +9652,7 @@ function Rc(e) {
9648
9652
  return t.capabilities;
9649
9653
  });
9650
9654
  }
9651
- function Mc() {
9655
+ function $c() {
9652
9656
  const { copilotkit: e } = Pe(), n = Fe();
9653
9657
  return function(a) {
9654
9658
  const i = n.value;
@@ -9691,7 +9695,7 @@ function Mc() {
9691
9695
  return null;
9692
9696
  };
9693
9697
  }
9694
- function $c() {
9698
+ function Ec() {
9695
9699
  const { copilotkit: e } = Pe(), n = Fe(), t = l(() => n.value?.agentId ?? at), a = l(() => [
9696
9700
  ...e.value.renderActivityMessages
9697
9701
  ]);
@@ -9731,73 +9735,73 @@ function $c() {
9731
9735
  }
9732
9736
  export {
9733
9737
  Fe as $,
9734
- dc as A,
9735
- gc as B,
9736
- hc as C,
9738
+ pc as A,
9739
+ vc as B,
9740
+ bc as C,
9737
9741
  Ho as D,
9738
- jo as E,
9739
- Cs as F,
9740
- Ss as G,
9741
- Ts as H,
9742
- Ms as I,
9743
- Es as J,
9744
- Wo as K,
9742
+ No as E,
9743
+ Ts as F,
9744
+ Is as G,
9745
+ Ss as H,
9746
+ $s as I,
9747
+ Fs as J,
9748
+ qo as K,
9745
9749
  ta as L,
9746
- No as M,
9747
- Fs as N,
9748
- $s as O,
9750
+ Vo as M,
9751
+ Os as N,
9752
+ Es as O,
9749
9753
  sn as P,
9750
- ys as Q,
9754
+ ws as Q,
9751
9755
  In as R,
9752
- ws as S,
9756
+ xs as S,
9753
9757
  hn as T,
9754
- vi as U,
9755
- xc as V,
9756
- bi as W,
9757
- Rc as X,
9758
- Cc as Y,
9759
- Ic as Z,
9760
- Xs as _,
9761
- uc as a,
9758
+ mi as U,
9759
+ Cc as V,
9760
+ ki as W,
9761
+ Mc as X,
9762
+ Tc as Y,
9763
+ Ac as Z,
9764
+ Ys as _,
9765
+ dc as a,
9762
9766
  Pe as a0,
9763
- Tc as a1,
9767
+ Sc as a1,
9764
9768
  va as a2,
9765
- Sc as a3,
9766
- Ac as a4,
9767
- oi as a5,
9768
- Ci as a6,
9769
+ Ic as a3,
9770
+ Rc as a4,
9771
+ si as a5,
9772
+ Ti as a6,
9769
9773
  Jt as a7,
9770
- $c as a8,
9771
- Mc as a9,
9772
- Kl as aa,
9773
- xs as ab,
9774
- hi as ac,
9775
- gl as ad,
9774
+ Ec as a8,
9775
+ $c as a9,
9776
+ Gl as aa,
9777
+ Cs as ab,
9778
+ bi as ac,
9779
+ vl as ad,
9776
9780
  Ft as ae,
9777
- fi as b,
9781
+ gi as b,
9778
9782
  Vn as c,
9779
- fc as d,
9780
- gi as e,
9783
+ gc as d,
9784
+ vi as e,
9781
9785
  gn as f,
9782
9786
  lt as g,
9783
- _t as h,
9784
- jr as i,
9785
- Ir as j,
9786
- _r as k,
9787
+ Ht as h,
9788
+ Nr as i,
9789
+ Ar as j,
9790
+ zr as k,
9787
9791
  zt as l,
9788
- bc as m,
9792
+ kc as m,
9789
9793
  ra as n,
9790
9794
  la as o,
9791
- ai as p,
9792
- Ur as q,
9795
+ oi as p,
9796
+ jr as q,
9793
9797
  Qt as r,
9794
- _o as s,
9795
- Oo as t,
9796
- pc as u,
9797
- kc as v,
9798
- vc as w,
9799
- yc as x,
9800
- mc as y,
9801
- wc as z
9798
+ zo as s,
9799
+ Lo as t,
9800
+ fc as u,
9801
+ yc as v,
9802
+ mc as w,
9803
+ wc as x,
9804
+ hc as y,
9805
+ xc as z
9802
9806
  };
9803
- //# sourceMappingURL=use-render-activity-message-Di_L8HCv.js.map
9807
+ //# sourceMappingURL=use-render-activity-message-D9oQ_ZzM.js.map