page-agent-sdk 3.21.0 → 3.22.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.
@@ -1117,7 +1117,7 @@ function K(e, ...t) {
1117
1117
  if (r) Xn(r, n, 11, [
1118
1118
  e + t.map((e) => e.toString?.call(e) ?? JSON.stringify(e)).join(""),
1119
1119
  n && n.proxy,
1120
- i.map(({ vnode: e }) => `at <${Zs(n, e.type)}>`).join("\n"),
1120
+ i.map(({ vnode: e }) => `at <${Xs(n, e.type)}>`).join("\n"),
1121
1121
  i
1122
1122
  ]);
1123
1123
  else {
@@ -1148,7 +1148,7 @@ function Wn(e) {
1148
1148
  }), t;
1149
1149
  }
1150
1150
  function Gn({ vnode: e, recurseCount: t }) {
1151
- let n = t > 0 ? `... (${t} recursive calls)` : "", r = e.component ? e.component.parent == null : !1, i = ` at <${Zs(e.component, e.type, r)}`, a = ">" + n;
1151
+ let n = t > 0 ? `... (${t} recursive calls)` : "", r = e.component ? e.component.parent == null : !1, i = ` at <${Xs(e.component, e.type, r)}`, a = ">" + n;
1152
1152
  return e.props ? [
1153
1153
  i,
1154
1154
  ...Kn(e.props),
@@ -1325,7 +1325,7 @@ function gr(e) {
1325
1325
  function _r(e, t) {
1326
1326
  let n = e.get(t) || 0;
1327
1327
  if (n > sr) {
1328
- let e = t.i, n = e && Xs(e.type);
1328
+ let e = t.i, n = e && Ys(e.type);
1329
1329
  return Qn(`Maximum recursive updates exceeded${n ? ` in component <${n}>` : ""}. This means you have a reactive effect that is mutating its own dependencies and thus recursively triggering itself. Possible sources include component template, render function, updated hook or watcher source function.`, null, 10), !0;
1330
1330
  }
1331
1331
  return e.set(t, n + 1), !1;
@@ -1357,7 +1357,7 @@ function wr(e, t) {
1357
1357
  }), !0);
1358
1358
  }
1359
1359
  function Tr(e) {
1360
- return Qs(e) ? e.__vccOpts : e;
1360
+ return Zs(e) ? e.__vccOpts : e;
1361
1361
  }
1362
1362
  function Er(e, t) {
1363
1363
  let n = xr.get(e);
@@ -1460,7 +1460,7 @@ function Xr(e) {
1460
1460
  }
1461
1461
  function Zr(e, t) {
1462
1462
  if (Kr === null) return process.env.NODE_ENV !== "production" && K("withDirectives can only be used inside render functions."), e;
1463
- let n = qs(Kr), r = e.dirs ||= [];
1463
+ let n = Ks(Kr), r = e.dirs ||= [];
1464
1464
  for (let e = 0; e < t.length; e++) {
1465
1465
  let [i, a, o, s = A] = t[e];
1466
1466
  i && (z(i) && (i = {
@@ -1492,13 +1492,13 @@ function Qr(e, t, n, r) {
1492
1492
  }
1493
1493
  }
1494
1494
  function $r(e, t) {
1495
- if (process.env.NODE_ENV !== "production" && (!Ds || Ds.isMounted) && K("provide() can only be used inside setup()."), Ds) {
1496
- let n = Ds.provides, r = Ds.parent && Ds.parent.provides;
1497
- r === n && (n = Ds.provides = Object.create(r)), n[e] = t;
1495
+ if (process.env.NODE_ENV !== "production" && (!Es || Es.isMounted) && K("provide() can only be used inside setup()."), Es) {
1496
+ let n = Es.provides, r = Es.parent && Es.parent.provides;
1497
+ r === n && (n = Es.provides = Object.create(r)), n[e] = t;
1498
1498
  }
1499
1499
  }
1500
1500
  function ei(e, t, n = !1) {
1501
- let r = Os();
1501
+ let r = Ds();
1502
1502
  if (r || za) {
1503
1503
  let i = za ? za._context.provides : r ? r.parent == null || r.ce ? r.vnode.appContext && r.vnode.appContext.provides : r.parent.provides : void 0;
1504
1504
  if (i && e in i) return i[e];
@@ -1521,7 +1521,7 @@ function ii(e, t, n = A) {
1521
1521
  let s = P({}, n);
1522
1522
  process.env.NODE_ENV !== "production" && (s.onWarn = K);
1523
1523
  let c = t && r || !t && a !== "post", l;
1524
- if (Is) {
1524
+ if (Fs) {
1525
1525
  if (a === "sync") {
1526
1526
  let e = ni();
1527
1527
  l = e.__watcherHandles ||= [];
@@ -1530,7 +1530,7 @@ function ii(e, t, n = A) {
1530
1530
  return e.stop = j, e.resume = j, e.pause = j, e;
1531
1531
  }
1532
1532
  }
1533
- let u = Ds;
1533
+ let u = Es;
1534
1534
  s.call = (e, t, n) => Zn(e, u, t, n);
1535
1535
  let d = !1;
1536
1536
  a === "post" ? s.scheduler = (e) => {
@@ -1541,12 +1541,12 @@ function ii(e, t, n = A) {
1541
1541
  t && (e.flags |= 4), d && (e.flags |= 2, u && (e.id = u.uid, e.i = u));
1542
1542
  };
1543
1543
  let f = Ln(e, t, s);
1544
- return Is && (l ? l.push(f) : c && f()), f;
1544
+ return Fs && (l ? l.push(f) : c && f()), f;
1545
1545
  }
1546
1546
  function ai(e, t, n) {
1547
1547
  let r = this.proxy, i = ae(e) ? e.includes(".") ? oi(r, e) : () => r[e] : e.bind(r, r), a;
1548
1548
  z(t) ? a = t : (a = t.handler, n = t);
1549
- let o = js(this), s = ii(i, a.bind(r), n);
1549
+ let o = As(this), s = ii(i, a.bind(r), n);
1550
1550
  return o(), s;
1551
1551
  }
1552
1552
  function oi(e, t) {
@@ -1701,9 +1701,9 @@ var wi = [Function, Array], Ti = {
1701
1701
  name: "BaseTransition",
1702
1702
  props: Ti,
1703
1703
  setup(e, { slots: t }) {
1704
- let n = Os(), r = Ci();
1704
+ let n = Ds(), r = Ci();
1705
1705
  return () => {
1706
- let i = t.default && Fi(t.default(), !0), a = i && i.length ? Oi(i) : n.subTree ? Z() : void 0;
1706
+ let i = t.default && Fi(t.default(), !0), a = i && i.length ? Oi(i) : n.subTree ? Q() : void 0;
1707
1707
  if (!a) return;
1708
1708
  let o = /* @__PURE__ */ yn(e), { mode: s } = o;
1709
1709
  if (process.env.NODE_ENV !== "production" && s && s !== "in-out" && s !== "out-in" && s !== "default" && K(`invalid <transition> mode: ${s}`), r.isLeaving) return Mi(a);
@@ -1797,7 +1797,7 @@ function ji(e, t, n, r, i) {
1797
1797
  return w;
1798
1798
  }
1799
1799
  function Mi(e) {
1800
- if (Wi(e)) return e = gs(e), e.children = null, e;
1800
+ if (Wi(e)) return e = hs(e), e.children = null, e;
1801
1801
  }
1802
1802
  function Ni(e) {
1803
1803
  if (!Wi(e)) return li(e.type) && e.children ? Oi(e.children) : e;
@@ -1815,7 +1815,7 @@ function Fi(e, t = !1, n) {
1815
1815
  let r = [], i = 0;
1816
1816
  for (let a = 0; a < e.length; a++) {
1817
1817
  let o = e[a], s = n == null ? o.key : String(n) + String(o.key == null ? a : o.key);
1818
- o.type === q ? (o.patchFlag & 128 && i++, r = r.concat(Fi(o.children, t, s))) : (t || o.type !== Qo) && r.push(s == null ? o : gs(o, { key: s }));
1818
+ o.type === q ? (o.patchFlag & 128 && i++, r = r.concat(Fi(o.children, t, s))) : (t || o.type !== Qo) && r.push(s == null ? o : hs(o, { key: s }));
1819
1819
  }
1820
1820
  if (i > 1) for (let e = 0; e < r.length; e++) r[e].patchFlag = -2;
1821
1821
  return r;
@@ -1846,7 +1846,7 @@ function Vi(e, t, n, r, i = !1) {
1846
1846
  r.shapeFlag & 512 && r.type.__asyncResolved && r.component.subTree.component && Vi(e, t, n, r.component.subTree);
1847
1847
  return;
1848
1848
  }
1849
- let a = r.shapeFlag & 4 ? qs(r.component) : r.el, o = i ? null : a, { i: s, r: c } = e;
1849
+ let a = r.shapeFlag & 4 ? Ks(r.component) : r.el, o = i ? null : a, { i: s, r: c } = e;
1850
1850
  if (process.env.NODE_ENV !== "production" && !s) {
1851
1851
  K("Missing ref owner context. ref cannot be used on hoisted vnodes. A vnode with ref must be created inside the render function.");
1852
1852
  return;
@@ -1902,7 +1902,7 @@ function Gi(e, t) {
1902
1902
  function Ki(e, t) {
1903
1903
  qi(e, "da", t);
1904
1904
  }
1905
- function qi(e, t, n = Ds) {
1905
+ function qi(e, t, n = Es) {
1906
1906
  let r = e.__wdc ||= () => {
1907
1907
  let t = n;
1908
1908
  for (; t;) {
@@ -1922,20 +1922,20 @@ function Ji(e, t, n, r) {
1922
1922
  F(r[t], i);
1923
1923
  }, n);
1924
1924
  }
1925
- function Yi(e, t, n = Ds, r = !1) {
1925
+ function Yi(e, t, n = Es, r = !1) {
1926
1926
  if (n) {
1927
1927
  let i = n[e] || (n[e] = []), a = t.__weh ||= (...r) => {
1928
1928
  ht();
1929
- let i = js(n), a = Zn(t, n, e, r);
1929
+ let i = As(n), a = Zn(t, n, e, r);
1930
1930
  return i(), gt(), a;
1931
1931
  };
1932
1932
  return r ? i.unshift(a) : i.push(a), a;
1933
1933
  } else process.env.NODE_ENV !== "production" && K(`${be(Yn[e].replace(/ hook$/, ""))} is called when there is no active component instance to be associated with. Lifecycle injection APIs can only be used during execution of setup(). If you are using async setup(), make sure to register lifecycle hooks before the first await statement.`);
1934
1934
  }
1935
- var Xi = (e) => (t, n = Ds) => {
1936
- (!Is || e === "sp") && Yi(e, (...e) => t(...e), n);
1935
+ var Xi = (e) => (t, n = Es) => {
1936
+ (!Fs || e === "sp") && Yi(e, (...e) => t(...e), n);
1937
1937
  }, Zi = Xi("bm"), Qi = Xi("m"), $i = Xi("bu"), ea = Xi("u"), ta = Xi("bum"), na = Xi("um"), ra = Xi("sp"), ia = Xi("rtg"), aa = Xi("rtc");
1938
- function oa(e, t = Ds) {
1938
+ function oa(e, t = Es) {
1939
1939
  Yi("ec", e, t);
1940
1940
  }
1941
1941
  var sa = /* @__PURE__ */ Symbol.for("v-ndc");
@@ -1965,7 +1965,7 @@ function ca(e, t, n, r) {
1965
1965
  function la(e, t, n = {}, r, i) {
1966
1966
  if (Kr.ce || Kr.parent && Ui(Kr.parent) && Kr.parent.ce) {
1967
1967
  let e = Object.keys(n).length > 0;
1968
- return t !== "default" && (n.name = t), J(), os(q, null, [ps("slot", n, r && r())], e ? -2 : 64);
1968
+ return t !== "default" && (n.name = t), J(), os(q, null, [Z("slot", n, r && r())], e ? -2 : 64);
1969
1969
  }
1970
1970
  let a = e[t];
1971
1971
  process.env.NODE_ENV !== "production" && a && a.length > 1 && (K("SSR-optimized slot function detected in a non-SSR-optimized render function. You need to mark this component with $dynamic-slots in the parent template."), a = () => []), a && a._c && (a._d = !1), J();
@@ -1975,7 +1975,7 @@ function la(e, t, n = {}, r, i) {
1975
1975
  function ua(e) {
1976
1976
  return e.some((e) => !ss(e) || !(e.type === Qo || e.type === q && !ua(e.children))) ? e : null;
1977
1977
  }
1978
- var da = (e) => e ? Fs(e) ? qs(e) : da(e.parent) : null, fa = /* @__PURE__ */ P(/* @__PURE__ */ Object.create(null), {
1978
+ var da = (e) => e ? Ps(e) ? Ks(e) : da(e.parent) : null, fa = /* @__PURE__ */ P(/* @__PURE__ */ Object.create(null), {
1979
1979
  $: (e) => e,
1980
1980
  $el: (e) => e.vnode.el,
1981
1981
  $data: (e) => e.data,
@@ -2120,7 +2120,7 @@ function Sa(e) {
2120
2120
  if (xa = !0, a) for (let e in a) {
2121
2121
  let t = a[e], i = z(t) ? t.bind(n, n) : z(t.get) ? t.get.bind(n, n) : j;
2122
2122
  process.env.NODE_ENV !== "production" && i === j && K(`Computed property "${e}" has no getter.`);
2123
- let o = Q({
2123
+ let o = Qs({
2124
2124
  get: i,
2125
2125
  set: !z(t) && z(t.set) ? t.set.bind(n) : process.env.NODE_ENV === "production" ? j : () => {
2126
2126
  K(`Write operation failed: computed property "${e}" is readonly.`);
@@ -2302,7 +2302,7 @@ function Ra(e, t) {
2302
2302
  return i.mixins.includes(e) ? process.env.NODE_ENV !== "production" && K("Mixin has already been applied to target app" + (e.name ? `: ${e.name}` : "")) : i.mixins.push(e), c;
2303
2303
  },
2304
2304
  component(e, t) {
2305
- return process.env.NODE_ENV !== "production" && Ps(e, i.config), t ? (process.env.NODE_ENV !== "production" && i.components[e] && K(`Component "${e}" has already been registered in target app.`), i.components[e] = t, c) : i.components[e];
2305
+ return process.env.NODE_ENV !== "production" && Ns(e, i.config), t ? (process.env.NODE_ENV !== "production" && i.components[e] && K(`Component "${e}" has already been registered in target app.`), i.components[e] = t, c) : i.components[e];
2306
2306
  },
2307
2307
  directive(e, t) {
2308
2308
  return process.env.NODE_ENV !== "production" && Xr(e), t ? (process.env.NODE_ENV !== "production" && i.directives[e] && K(`Directive "${e}" has already been registered in target app.`), i.directives[e] = t, c) : i.directives[e];
@@ -2311,11 +2311,11 @@ function Ra(e, t) {
2311
2311
  if (s) process.env.NODE_ENV !== "production" && K("App has already been mounted.\nIf you want to remount the same app, move your app creation logic into a factory function and create fresh app instances for each mount - e.g. `const createMyApp = () => createApp(App)`");
2312
2312
  else {
2313
2313
  process.env.NODE_ENV !== "production" && a.__vue_app__ && K("There is already an app instance mounted on the host container.\n If you want to mount another app on the same host container, you need to unmount the previous app by calling `app.unmount()` first.");
2314
- let u = c._ceVNode || ps(n, r);
2314
+ let u = c._ceVNode || Z(n, r);
2315
2315
  return u.appContext = i, l === !0 ? l = "svg" : l === !1 && (l = void 0), process.env.NODE_ENV !== "production" && (i.reload = () => {
2316
- let t = gs(u);
2316
+ let t = hs(u);
2317
2317
  t.el = null, e(t, a, l);
2318
- }), o && t ? t(u, a) : e(u, a, l), s = !0, c._container = a, a.__vue_app__ = c, process.env.NODE_ENV !== "production" && (c._instance = u.component, Fr(c, tc)), qs(u.component);
2318
+ }), o && t ? t(u, a) : e(u, a, l), s = !0, c._container = a, a.__vue_app__ = c, process.env.NODE_ENV !== "production" && (c._instance = u.component, Fr(c, tc)), Ks(u.component);
2319
2319
  }
2320
2320
  },
2321
2321
  onUnmount(e) {
@@ -2355,7 +2355,7 @@ function Va(e, t, ...n) {
2355
2355
  let i = n, a = t.startsWith("update:"), o = a && Ba(r, t.slice(7));
2356
2356
  if (o && (o.trim && (i = n.map((e) => ae(e) ? e.trim() : e)), o.number && (i = n.map(we))), process.env.NODE_ENV !== "production" && Gr(e, t, i), process.env.NODE_ENV !== "production") {
2357
2357
  let n = t.toLowerCase();
2358
- n !== t && r[be(n)] && K(`Event "${n}" is emitted in component ${Zs(e, e.type)} but the handler is registered for "${t}". Note that HTML attributes are case-insensitive and you cannot use v-on to listen to camelCase events when using in-DOM templates. You should probably use "${ve(t)}" instead of "${t}".`);
2358
+ n !== t && r[be(n)] && K(`Event "${n}" is emitted in component ${Xs(e, e.type)} but the handler is registered for "${t}". Note that HTML attributes are case-insensitive and you cannot use v-on to listen to camelCase events when using in-DOM templates. You should probably use "${ve(t)}" instead of "${t}".`);
2359
2359
  }
2360
2360
  let s, c = r[s = be(t)] || r[s = be(ge(t))];
2361
2361
  !c && a && (c = r[s = be(ve(t))]), c && Zn(c, e, 6, i);
@@ -2395,10 +2395,10 @@ function qa(e) {
2395
2395
  let e = i || r, t = process.env.NODE_ENV !== "production" && p.__isScriptSetup ? new Proxy(e, { get(e, t, n) {
2396
2396
  return K(`Property '${String(t)}' was accessed via 'this'. Avoid using 'this' in templates.`), Reflect.get(e, t, n);
2397
2397
  } }) : e;
2398
- _ = ys(l.call(t, e, u, process.env.NODE_ENV === "production" ? d : /* @__PURE__ */ pn(d), p, f, m)), v = s;
2398
+ _ = vs(l.call(t, e, u, process.env.NODE_ENV === "production" ? d : /* @__PURE__ */ pn(d), p, f, m)), v = s;
2399
2399
  } else {
2400
2400
  let e = t;
2401
- process.env.NODE_ENV !== "production" && s === d && Ka(), _ = ys(e.length > 1 ? e(process.env.NODE_ENV === "production" ? d : /* @__PURE__ */ pn(d), process.env.NODE_ENV === "production" ? {
2401
+ process.env.NODE_ENV !== "production" && s === d && Ka(), _ = vs(e.length > 1 ? e(process.env.NODE_ENV === "production" ? d : /* @__PURE__ */ pn(d), process.env.NODE_ENV === "production" ? {
2402
2402
  attrs: s,
2403
2403
  slots: o,
2404
2404
  emit: c
@@ -2411,13 +2411,13 @@ function qa(e) {
2411
2411
  }) : e(process.env.NODE_ENV === "production" ? d : /* @__PURE__ */ pn(d), null)), v = t.props ? s : Xa(s);
2412
2412
  }
2413
2413
  } catch (t) {
2414
- es.length = 0, Qn(t, e, 1), _ = ps(Qo);
2414
+ es.length = 0, Qn(t, e, 1), _ = Z(Qo);
2415
2415
  }
2416
2416
  let y = _, b;
2417
2417
  if (process.env.NODE_ENV !== "production" && _.patchFlag > 0 && _.patchFlag & 2048 && ([y, b] = Ja(_)), v && h !== !1) {
2418
2418
  let e = Object.keys(v), { shapeFlag: t } = y;
2419
2419
  if (e.length) {
2420
- if (t & 7) a && e.some(te) && (v = Za(v, a)), y = gs(y, v, !1, !0);
2420
+ if (t & 7) a && e.some(te) && (v = Za(v, a)), y = hs(y, v, !1, !0);
2421
2421
  else if (process.env.NODE_ENV !== "production" && !Ga && y.type !== Qo) {
2422
2422
  let e = Object.keys(s), t = [], n = [];
2423
2423
  for (let r = 0, i = e.length; r < i; r++) {
@@ -2428,14 +2428,14 @@ function qa(e) {
2428
2428
  }
2429
2429
  }
2430
2430
  }
2431
- return n.dirs && (process.env.NODE_ENV !== "production" && !Qa(y) && K("Runtime directive used on component with non-element root node. The directives will not function as intended."), y = gs(y, null, !1, !0), y.dirs = y.dirs ? y.dirs.concat(n.dirs) : n.dirs), n.transition && (process.env.NODE_ENV !== "production" && !Qa(y) && K("Component inside <Transition> renders non-element root node that cannot be animated."), Pi(y, n.transition)), process.env.NODE_ENV !== "production" && b ? b(y) : _ = y, Jr(g), _;
2431
+ return n.dirs && (process.env.NODE_ENV !== "production" && !Qa(y) && K("Runtime directive used on component with non-element root node. The directives will not function as intended."), y = hs(y, null, !1, !0), y.dirs = y.dirs ? y.dirs.concat(n.dirs) : n.dirs), n.transition && (process.env.NODE_ENV !== "production" && !Qa(y) && K("Component inside <Transition> renders non-element root node that cannot be animated."), Pi(y, n.transition)), process.env.NODE_ENV !== "production" && b ? b(y) : _ = y, Jr(g), _;
2432
2432
  }
2433
2433
  var Ja = (e) => {
2434
2434
  let t = e.children, n = e.dynamicChildren, r = Ya(t, !1);
2435
2435
  if (!r) return [e, void 0];
2436
2436
  if (process.env.NODE_ENV !== "production" && r.patchFlag > 0 && r.patchFlag & 2048) return Ja(r);
2437
2437
  let i = t.indexOf(r), a = n ? n.indexOf(r) : -1;
2438
- return [ys(r), (r) => {
2438
+ return [vs(r), (r) => {
2439
2439
  t[i] = r, n && (a > -1 ? n[a] = r : r.patchFlag > 0 && (e.dynamicChildren = [...n, r]));
2440
2440
  }];
2441
2441
  };
@@ -2562,7 +2562,7 @@ function uo(e, t, n, r, i, a) {
2562
2562
  let { propsDefaults: a } = i;
2563
2563
  if (n in a) r = a[n];
2564
2564
  else {
2565
- let o = js(i);
2565
+ let o = As(i);
2566
2566
  r = a[n] = e.call(null, t), o();
2567
2567
  }
2568
2568
  } else r = e;
@@ -2680,9 +2680,9 @@ function Co(...e) {
2680
2680
  return t !== "boolean" && t !== "symbol";
2681
2681
  });
2682
2682
  }
2683
- var wo = (e) => e === "_" || e === "_ctx" || e === "$stable", To = (e) => L(e) ? e.map(ys) : [ys(e)], Eo = (e, t, n) => {
2683
+ var wo = (e) => e === "_" || e === "_ctx" || e === "$stable", To = (e) => L(e) ? e.map(vs) : [vs(e)], Eo = (e, t, n) => {
2684
2684
  if (t._n) return t;
2685
- let r = Yr((...r) => (process.env.NODE_ENV !== "production" && Ds && !(n === null && Kr) && !(n && n.root !== Ds.root) && K(`Slot "${e}" invoked outside of the render function: this will not track dependencies used in the slot. Invoke the slot function inside the render function instead.`), To(t(...r))), n);
2685
+ let r = Yr((...r) => (process.env.NODE_ENV !== "production" && Es && !(n === null && Kr) && !(n && n.root !== Es.root) && K(`Slot "${e}" invoked outside of the render function: this will not track dependencies used in the slot. Invoke the slot function inside the render function instead.`), To(t(...r))), n);
2686
2686
  return r._c = !1, r;
2687
2687
  }, Do = (e, t, n) => {
2688
2688
  let r = e._ctx;
@@ -2721,7 +2721,7 @@ function Po(e, t) {
2721
2721
  }
2722
2722
  function Fo(e, t) {
2723
2723
  if (e.appContext.config.performance && Io()) {
2724
- let n = `vue-${t}-${e.uid}`, r = n + ":end", i = `<${Zs(e, e.type)}> ${t}`;
2724
+ let n = `vue-${t}-${e.uid}`, r = n + ":end", i = `<${Xs(e, e.type)}> ${t}`;
2725
2725
  No.mark(r), No.measure(i, n, r), No.clearMeasures(i), No.clearMarks(n), No.clearMarks(r);
2726
2726
  }
2727
2727
  process.env.NODE_ENV !== "production" && Ur(e, t, Io() ? No.now() : Date.now());
@@ -2803,7 +2803,7 @@ function Bo(e, t) {
2803
2803
  let f, p, { props: m, shapeFlag: h, transition: g, dirs: _ } = e;
2804
2804
  if (f = e.el = o(e.type, c, m && m.is, m), h & 8 ? u(f, e.children) : h & 16 && T(e.children, f, null, i, s, Vo(e, c), l, d), _ && Qr(e, null, i, "created"), w(f, e, e.scopeId, l, i), m) {
2805
2805
  for (let e in m) e !== "value" && !fe(e) && a(f, e, null, m[e], c, i);
2806
- "value" in m && a(f, "value", null, m.value, c), (p = m.onVnodeBeforeMount) && Cs(p, i, e);
2806
+ "value" in m && a(f, "value", null, m.value, c), (p = m.onVnodeBeforeMount) && Ss(p, i, e);
2807
2807
  }
2808
2808
  process.env.NODE_ENV !== "production" && (Ce(f, "__vnode", e, !0), Ce(f, "__vueParentComponent", i, !0)), _ && Qr(e, null, i, "beforeMount");
2809
2809
  let v = Uo(s, g);
@@ -2813,7 +2813,7 @@ function Bo(e, t) {
2813
2813
  let n;
2814
2814
  process.env.NODE_ENV !== "production" && (n = yr(t));
2815
2815
  try {
2816
- p && Cs(p, i, e), v && g.enter(f), _ && Qr(e, null, i, "mounted");
2816
+ p && Ss(p, i, e), v && g.enter(f), _ && Qr(e, null, i, "mounted");
2817
2817
  } finally {
2818
2818
  process.env.NODE_ENV !== "production" && yr(n);
2819
2819
  }
@@ -2830,7 +2830,7 @@ function Bo(e, t) {
2830
2830
  }
2831
2831
  }, T = (e, t, n, r, i, a, o, s, c = 0) => {
2832
2832
  for (let l = c; l < e.length; l++) {
2833
- let c = e[l] = s ? bs(e[l]) : ys(e[l]);
2833
+ let c = e[l] = s ? ys(e[l]) : vs(e[l]);
2834
2834
  h(null, c, t, n, r, i, a, o, s);
2835
2835
  }
2836
2836
  }, E = (e, t, n, r, i, o, s) => {
@@ -2839,7 +2839,7 @@ function Bo(e, t) {
2839
2839
  let { patchFlag: l, dynamicChildren: d, dirs: f } = t;
2840
2840
  l |= e.patchFlag & 16;
2841
2841
  let p = e.props || A, m = t.props || A, h;
2842
- if (n && Ho(n, !1), (h = m.onVnodeBeforeUpdate) && Cs(h, n, t, e), f && Qr(t, e, n, "beforeUpdate"), n && Ho(n, !0), (process.env.NODE_ENV !== "production" && vr || d && (!e.dynamicChildren || e.dynamicChildren.length !== d.length)) && (l = 0, s = !1, d = null), (p.innerHTML && m.innerHTML == null || p.textContent && m.textContent == null) && u(c, ""), d ? (D(e.dynamicChildren, d, c, n, r, Vo(t, i), o), process.env.NODE_ENV !== "production" && Wo(e, t)) : s || ne(e, t, c, null, n, r, Vo(t, i), o, !1), l > 0) {
2842
+ if (n && Ho(n, !1), (h = m.onVnodeBeforeUpdate) && Ss(h, n, t, e), f && Qr(t, e, n, "beforeUpdate"), n && Ho(n, !0), (process.env.NODE_ENV !== "production" && vr || d && (!e.dynamicChildren || e.dynamicChildren.length !== d.length)) && (l = 0, s = !1, d = null), (p.innerHTML && m.innerHTML == null || p.textContent && m.textContent == null) && u(c, ""), d ? (D(e.dynamicChildren, d, c, n, r, Vo(t, i), o), process.env.NODE_ENV !== "production" && Wo(e, t)) : s || ne(e, t, c, null, n, r, Vo(t, i), o, !1), l > 0) {
2843
2843
  if (l & 16) O(c, p, m, n, i);
2844
2844
  else if (l & 2 && p.class !== m.class && a(c, "class", null, m.class, i), l & 4 && a(c, "style", p.style, m.style, i), l & 8) {
2845
2845
  let e = t.dynamicProps;
@@ -2851,7 +2851,7 @@ function Bo(e, t) {
2851
2851
  l & 1 && e.children !== t.children && u(c, t.children);
2852
2852
  } else !s && d == null && O(c, p, m, n, i);
2853
2853
  ((h = m.onVnodeUpdated) || f) && Ro(() => {
2854
- h && Cs(h, n, t, e), f && Qr(t, e, n, "updated");
2854
+ h && Ss(h, n, t, e), f && Qr(t, e, n, "updated");
2855
2855
  }, r);
2856
2856
  }, D = (e, t, n, r, i, a, o) => {
2857
2857
  for (let s = 0; s < t.length; s++) {
@@ -2874,10 +2874,10 @@ function Bo(e, t) {
2874
2874
  }, M = (e, t, n, r, i, a, o, s, c) => {
2875
2875
  t.slotScopeIds = s, e == null ? t.shapeFlag & 512 ? i.ctx.activate(t, n, r, o, c) : N(t, n, r, i, a, o, c) : te(e, t, c);
2876
2876
  }, N = (e, t, n, r, i, a, o) => {
2877
- let s = e.component = Es(e, r, i);
2878
- if (process.env.NODE_ENV !== "production" && s.type.__hmrId && Sr(s), process.env.NODE_ENV !== "production" && (Bn(e), Po(s, "mount")), Wi(e) && (s.ctx.renderer = le), process.env.NODE_ENV !== "production" && Po(s, "init"), Ls(s, !1, o), process.env.NODE_ENV !== "production" && Fo(s, "init"), process.env.NODE_ENV !== "production" && vr && (e.el = null), s.asyncDep) {
2877
+ let s = e.component = Ts(e, r, i);
2878
+ if (process.env.NODE_ENV !== "production" && s.type.__hmrId && Sr(s), process.env.NODE_ENV !== "production" && (Bn(e), Po(s, "mount")), Wi(e) && (s.ctx.renderer = le), process.env.NODE_ENV !== "production" && Po(s, "init"), Is(s, !1, o), process.env.NODE_ENV !== "production" && Fo(s, "init"), process.env.NODE_ENV !== "production" && vr && (e.el = null), s.asyncDep) {
2879
2879
  if (i && i.registerDep(s, P, o), !e.el) {
2880
- let r = s.subTree = ps(Qo);
2880
+ let r = s.subTree = Z(Qo);
2881
2881
  _(null, r, t, n), e.placeholder = r.el;
2882
2882
  }
2883
2883
  } else P(s, e, t, n, i, a, o);
@@ -2905,14 +2905,14 @@ function Bo(e, t) {
2905
2905
  }
2906
2906
  }
2907
2907
  let u = t, f;
2908
- process.env.NODE_ENV !== "production" && Bn(t || e.vnode), Ho(e, !1), t ? (t.el = c.el, F(e, t, o)) : t = c, n && Se(n), (f = t.props && t.props.onVnodeBeforeUpdate) && Cs(f, s, t, c), Ho(e, !0), process.env.NODE_ENV !== "production" && Po(e, "render");
2908
+ process.env.NODE_ENV !== "production" && Bn(t || e.vnode), Ho(e, !1), t ? (t.el = c.el, F(e, t, o)) : t = c, n && Se(n), (f = t.props && t.props.onVnodeBeforeUpdate) && Ss(f, s, t, c), Ho(e, !0), process.env.NODE_ENV !== "production" && Po(e, "render");
2909
2909
  let p = qa(e);
2910
2910
  process.env.NODE_ENV !== "production" && Fo(e, "render");
2911
2911
  let m = e.subTree;
2912
- e.subTree = p, process.env.NODE_ENV !== "production" && Po(e, "patch"), h(m, p, d(m.el), B(m), e, i, a), process.env.NODE_ENV !== "production" && Fo(e, "patch"), t.el = p.el, u === null && no(e, p.el), r && Ro(r, i), (f = t.props && t.props.onVnodeUpdated) && Ro(() => Cs(f, s, t, c), i), process.env.NODE_ENV !== "production" && Rr(e), process.env.NODE_ENV !== "production" && Vn();
2912
+ e.subTree = p, process.env.NODE_ENV !== "production" && Po(e, "patch"), h(m, p, d(m.el), B(m), e, i, a), process.env.NODE_ENV !== "production" && Fo(e, "patch"), t.el = p.el, u === null && no(e, p.el), r && Ro(r, i), (f = t.props && t.props.onVnodeUpdated) && Ro(() => Ss(f, s, t, c), i), process.env.NODE_ENV !== "production" && Rr(e), process.env.NODE_ENV !== "production" && Vn();
2913
2913
  } else {
2914
2914
  let o, { el: s, props: c } = t, { bm: l, m: u, parent: d, root: f, type: p } = e, m = Ui(t);
2915
- if (Ho(e, !1), l && Se(l), !m && (o = c && c.onVnodeBeforeMount) && Cs(o, d, t), Ho(e, !0), s && de) {
2915
+ if (Ho(e, !1), l && Se(l), !m && (o = c && c.onVnodeBeforeMount) && Ss(o, d, t), Ho(e, !0), s && de) {
2916
2916
  let t = () => {
2917
2917
  process.env.NODE_ENV !== "production" && Po(e, "render"), e.subTree = qa(e), process.env.NODE_ENV !== "production" && Fo(e, "render"), process.env.NODE_ENV !== "production" && Po(e, "hydrate"), de(s, e.subTree, e, i, null), process.env.NODE_ENV !== "production" && Fo(e, "hydrate");
2918
2918
  };
@@ -2924,7 +2924,7 @@ function Bo(e, t) {
2924
2924
  }
2925
2925
  if (u && Ro(u, i), !m && (o = c && c.onVnodeMounted)) {
2926
2926
  let e = t;
2927
- Ro(() => Cs(o, d, e), i);
2927
+ Ro(() => Ss(o, d, e), i);
2928
2928
  }
2929
2929
  (t.shapeFlag & 256 || d && Ui(d.vnode) && d.vnode.shapeFlag & 256) && e.a && Ro(e.a, i), e.isMounted = !0, process.env.NODE_ENV !== "production" && Lr(e), t = n = r = null;
2930
2930
  }
@@ -2954,20 +2954,20 @@ function Bo(e, t) {
2954
2954
  e ||= ee, t ||= ee;
2955
2955
  let l = e.length, u = t.length, d = Math.min(l, u), f;
2956
2956
  for (f = 0; f < d; f++) {
2957
- let r = t[f] = c ? bs(t[f]) : ys(t[f]);
2957
+ let r = t[f] = c ? ys(t[f]) : vs(t[f]);
2958
2958
  h(e[f], r, n, null, i, a, o, s, c);
2959
2959
  }
2960
2960
  l > u ? oe(e, i, a, !0, !1, d) : T(t, n, r, i, a, o, s, c, d);
2961
2961
  }, L = (e, t, n, r, i, a, o, s, c) => {
2962
2962
  let l = 0, u = t.length, d = e.length - 1, f = u - 1;
2963
2963
  for (; l <= d && l <= f;) {
2964
- let r = e[l], u = t[l] = c ? bs(t[l]) : ys(t[l]);
2964
+ let r = e[l], u = t[l] = c ? ys(t[l]) : vs(t[l]);
2965
2965
  if (cs(r, u)) h(r, u, n, null, i, a, o, s, c);
2966
2966
  else break;
2967
2967
  l++;
2968
2968
  }
2969
2969
  for (; l <= d && l <= f;) {
2970
- let r = e[d], l = t[f] = c ? bs(t[f]) : ys(t[f]);
2970
+ let r = e[d], l = t[f] = c ? ys(t[f]) : vs(t[f]);
2971
2971
  if (cs(r, l)) h(r, l, n, null, i, a, o, s, c);
2972
2972
  else break;
2973
2973
  d--, f--;
@@ -2975,13 +2975,13 @@ function Bo(e, t) {
2975
2975
  if (l > d) {
2976
2976
  if (l <= f) {
2977
2977
  let e = f + 1, d = e < u ? t[e].el : r;
2978
- for (; l <= f;) h(null, t[l] = c ? bs(t[l]) : ys(t[l]), n, d, i, a, o, s, c), l++;
2978
+ for (; l <= f;) h(null, t[l] = c ? ys(t[l]) : vs(t[l]), n, d, i, a, o, s, c), l++;
2979
2979
  }
2980
2980
  } else if (l > f) for (; l <= d;) R(e[l], i, a, !0), l++;
2981
2981
  else {
2982
2982
  let p = l, m = l, g = /* @__PURE__ */ new Map();
2983
2983
  for (l = m; l <= f; l++) {
2984
- let e = t[l] = c ? bs(t[l]) : ys(t[l]);
2984
+ let e = t[l] = c ? ys(t[l]) : vs(t[l]);
2985
2985
  e.key != null && (process.env.NODE_ENV !== "production" && g.has(e.key) && K("Duplicate keys found during update:", JSON.stringify(e.key), "Make sure keys are unique."), g.set(e.key, l));
2986
2986
  }
2987
2987
  let _, v = 0, y = f - m + 1, b = !1, x = 0, S = Array(y);
@@ -3050,7 +3050,7 @@ function Bo(e, t) {
3050
3050
  return;
3051
3051
  }
3052
3052
  let h = u & 1 && f, g = !Ui(e), _;
3053
- if (g && (_ = o && o.onVnodeBeforeUnmount) && Cs(_, t, e), u & 6) ae(e.component, n, r);
3053
+ if (g && (_ = o && o.onVnodeBeforeUnmount) && Ss(_, t, e), u & 6) ae(e.component, n, r);
3054
3054
  else {
3055
3055
  if (u & 128) {
3056
3056
  e.suspense.unmount(n, r);
@@ -3060,7 +3060,7 @@ function Bo(e, t) {
3060
3060
  }
3061
3061
  let v = m != null && p == null;
3062
3062
  (g && (_ = o && o.onVnodeUnmounted) || h || v) && Ro(() => {
3063
- _ && Cs(_, t, e), h && Qr(e, null, t, "unmounted"), v && (e.el = null);
3063
+ _ && Ss(_, t, e), h && Qr(e, null, t, "unmounted"), v && (e.el = null);
3064
3064
  }, n);
3065
3065
  }, ie = (e) => {
3066
3066
  let { type: t, el: n, anchor: r, transition: a } = e;
@@ -3132,7 +3132,7 @@ function Wo(e, t, n = !1) {
3132
3132
  let r = e.children, i = t.children;
3133
3133
  if (L(r) && L(i)) for (let e = 0; e < r.length; e++) {
3134
3134
  let t = r[e], a = i[e];
3135
- a.shapeFlag & 1 && !a.dynamicChildren && ((a.patchFlag <= 0 || a.patchFlag === 32) && (a = i[e] = bs(i[e]), a.el = t.el), !n && a.patchFlag !== -2 && Wo(t, a)), a.type === Zo && (a.patchFlag === -1 && (a = i[e] = bs(a)), a.el = t.el), a.type === Qo && !a.el && (a.el = t.el), process.env.NODE_ENV !== "production" && a.el && (a.el.__vnode = a);
3135
+ a.shapeFlag & 1 && !a.dynamicChildren && ((a.patchFlag <= 0 || a.patchFlag === 32) && (a = i[e] = ys(i[e]), a.el = t.el), !n && a.patchFlag !== -2 && Wo(t, a)), a.type === Zo && (a.patchFlag === -1 && (a = i[e] = ys(a)), a.el = t.el), a.type === Qo && !a.el && (a.el = t.el), process.env.NODE_ENV !== "production" && a.el && (a.el.__vnode = a);
3136
3136
  }
3137
3137
  }
3138
3138
  function Go(e) {
@@ -3185,7 +3185,7 @@ function Y(e, t, n, r, i, a) {
3185
3185
  return as(X(e, t, n, r, i, a, !0));
3186
3186
  }
3187
3187
  function os(e, t, n, r, i) {
3188
- return as(ps(e, t, n, r, i, !0));
3188
+ return as(Z(e, t, n, r, i, !0));
3189
3189
  }
3190
3190
  function ss(e) {
3191
3191
  return e ? e.__v_isVNode === !0 : !1;
@@ -3197,7 +3197,7 @@ function cs(e, t) {
3197
3197
  }
3198
3198
  return e.type === t.type && e.key === t.key;
3199
3199
  }
3200
- var ls, us = (...e) => ms(...ls ? ls(e, Kr) : e), ds = ({ key: e }) => e ?? null, fs = ({ ref: e, ref_key: t, ref_for: n }) => (typeof e == "number" && (e = "" + e), e == null ? null : ae(e) || /* @__PURE__ */ Cn(e) || z(e) ? {
3200
+ var ls, us = (...e) => ps(...ls ? ls(e, Kr) : e), ds = ({ key: e }) => e ?? null, fs = ({ ref: e, ref_key: t, ref_for: n }) => (typeof e == "number" && (e = "" + e), e == null ? null : ae(e) || /* @__PURE__ */ Cn(e) || z(e) ? {
3201
3201
  i: Kr,
3202
3202
  r: e,
3203
3203
  k: t,
@@ -3233,27 +3233,27 @@ function X(e, t = null, n = null, r = 0, i = null, a = e === q ? 0 : 1, o = !1,
3233
3233
  appContext: null,
3234
3234
  ctx: Kr
3235
3235
  };
3236
- return s ? (xs(c, n), a & 128 && e.normalize(c)) : n && (c.shapeFlag |= ae(n) ? 8 : 16), process.env.NODE_ENV !== "production" && c.key !== c.key && K("VNode created with invalid key (NaN). VNode type:", c.type), rs > 0 && !o && ts && (c.patchFlag > 0 || a & 6) && c.patchFlag !== 32 && ts.push(c), c;
3236
+ return s ? (bs(c, n), a & 128 && e.normalize(c)) : n && (c.shapeFlag |= ae(n) ? 8 : 16), process.env.NODE_ENV !== "production" && c.key !== c.key && K("VNode created with invalid key (NaN). VNode type:", c.type), rs > 0 && !o && ts && (c.patchFlag > 0 || a & 6) && c.patchFlag !== 32 && ts.push(c), c;
3237
3237
  }
3238
- var ps = process.env.NODE_ENV === "production" ? ms : us;
3239
- function ms(e, t = null, n = null, r = 0, i = null, a = !1) {
3238
+ var Z = process.env.NODE_ENV === "production" ? ps : us;
3239
+ function ps(e, t = null, n = null, r = 0, i = null, a = !1) {
3240
3240
  if ((!e || e === sa) && (process.env.NODE_ENV !== "production" && !e && K(`Invalid vnode type when creating vnode: ${e}.`), e = Qo), ss(e)) {
3241
- let r = gs(e, t, !0);
3242
- return n && xs(r, n), rs > 0 && !a && ts && (r.shapeFlag & 6 ? ts[ts.indexOf(e)] = r : ts.push(r)), r.patchFlag = -2, r;
3241
+ let r = hs(e, t, !0);
3242
+ return n && bs(r, n), rs > 0 && !a && ts && (r.shapeFlag & 6 ? ts[ts.indexOf(e)] = r : ts.push(r)), r.patchFlag = -2, r;
3243
3243
  }
3244
- if (Qs(e) && (e = e.__vccOpts), t) {
3245
- t = hs(t);
3244
+ if (Zs(e) && (e = e.__vccOpts), t) {
3245
+ t = ms(t);
3246
3246
  let { class: e, style: n } = t;
3247
3247
  e && !ae(e) && (t.class = H(e)), B(n) && (/* @__PURE__ */ vn(n) && !L(n) && (n = P({}, n)), t.style = Oe(n));
3248
3248
  }
3249
3249
  let o = ae(e) ? 1 : Yo(e) ? 128 : li(e) ? 64 : B(e) ? 4 : z(e) ? 2 : 0;
3250
3250
  return process.env.NODE_ENV !== "production" && o & 4 && /* @__PURE__ */ vn(e) && (e = /* @__PURE__ */ yn(e), K("Vue received a Component that was made a reactive object. This can lead to unnecessary performance overhead and should be avoided by marking the component with `markRaw` or using `shallowRef` instead of `ref`.", "\nComponent that was made reactive: ", e)), X(e, t, n, r, i, o, a, !0);
3251
3251
  }
3252
- function hs(e) {
3252
+ function ms(e) {
3253
3253
  return e ? /* @__PURE__ */ vn(e) || ao(e) ? P({}, e) : e : null;
3254
3254
  }
3255
- function gs(e, t, n = !1, r = !1) {
3256
- let { props: i, ref: a, patchFlag: o, children: s, transition: c } = e, l = t ? Ss(i || {}, t) : i, u = {
3255
+ function hs(e, t, n = !1, r = !1) {
3256
+ let { props: i, ref: a, patchFlag: o, children: s, transition: c } = e, l = t ? xs(i || {}, t) : i, u = {
3257
3257
  __v_isVNode: !0,
3258
3258
  __v_skip: !0,
3259
3259
  type: e.type,
@@ -3262,7 +3262,7 @@ function gs(e, t, n = !1, r = !1) {
3262
3262
  ref: t && t.ref ? n && a ? L(a) ? a.concat(fs(t)) : [a, fs(t)] : fs(t) : a,
3263
3263
  scopeId: e.scopeId,
3264
3264
  slotScopeIds: e.slotScopeIds,
3265
- children: process.env.NODE_ENV !== "production" && o === -1 && L(s) ? s.map(_s) : s,
3265
+ children: process.env.NODE_ENV !== "production" && o === -1 && L(s) ? s.map(gs) : s,
3266
3266
  target: e.target,
3267
3267
  targetStart: e.targetStart,
3268
3268
  targetAnchor: e.targetAnchor,
@@ -3276,8 +3276,8 @@ function gs(e, t, n = !1, r = !1) {
3276
3276
  transition: c,
3277
3277
  component: e.component,
3278
3278
  suspense: e.suspense,
3279
- ssContent: e.ssContent && gs(e.ssContent),
3280
- ssFallback: e.ssFallback && gs(e.ssFallback),
3279
+ ssContent: e.ssContent && hs(e.ssContent),
3280
+ ssFallback: e.ssFallback && hs(e.ssFallback),
3281
3281
  placeholder: e.placeholder,
3282
3282
  el: e.el,
3283
3283
  anchor: e.anchor,
@@ -3286,29 +3286,29 @@ function gs(e, t, n = !1, r = !1) {
3286
3286
  };
3287
3287
  return c && r && Pi(u, c.clone(u)), u;
3288
3288
  }
3289
- function _s(e) {
3290
- let t = gs(e);
3291
- return L(e.children) && (t.children = e.children.map(_s)), t;
3289
+ function gs(e) {
3290
+ let t = hs(e);
3291
+ return L(e.children) && (t.children = e.children.map(gs)), t;
3292
3292
  }
3293
- function vs(e = " ", t = 0) {
3294
- return ps(Zo, null, e, t);
3293
+ function _s(e = " ", t = 0) {
3294
+ return Z(Zo, null, e, t);
3295
3295
  }
3296
- function Z(e = "", t = !1) {
3297
- return t ? (J(), os(Qo, null, e)) : ps(Qo, null, e);
3296
+ function Q(e = "", t = !1) {
3297
+ return t ? (J(), os(Qo, null, e)) : Z(Qo, null, e);
3298
3298
  }
3299
- function ys(e) {
3300
- return e == null || typeof e == "boolean" ? ps(Qo) : L(e) ? ps(q, null, e.slice()) : ss(e) ? bs(e) : ps(Zo, null, String(e));
3299
+ function vs(e) {
3300
+ return e == null || typeof e == "boolean" ? Z(Qo) : L(e) ? Z(q, null, e.slice()) : ss(e) ? ys(e) : Z(Zo, null, String(e));
3301
3301
  }
3302
- function bs(e) {
3303
- return e.el === null && e.patchFlag !== -1 || e.memo ? e : gs(e);
3302
+ function ys(e) {
3303
+ return e.el === null && e.patchFlag !== -1 || e.memo ? e : hs(e);
3304
3304
  }
3305
- function xs(e, t) {
3305
+ function bs(e, t) {
3306
3306
  let n = 0, { shapeFlag: r } = e;
3307
3307
  if (t == null) t = null;
3308
3308
  else if (L(t)) n = 16;
3309
3309
  else if (typeof t == "object") if (r & 65) {
3310
3310
  let n = t.default;
3311
- n && (n._c && (n._d = !1), xs(e, n()), n._c && (n._d = !0));
3311
+ n && (n._c && (n._d = !1), bs(e, n()), n._c && (n._d = !0));
3312
3312
  return;
3313
3313
  } else {
3314
3314
  n = 32;
@@ -3317,17 +3317,17 @@ function xs(e, t) {
3317
3317
  }
3318
3318
  else if (z(t)) {
3319
3319
  if (r & 65) {
3320
- xs(e, { default: t });
3320
+ bs(e, { default: t });
3321
3321
  return;
3322
3322
  }
3323
3323
  t = {
3324
3324
  default: t,
3325
3325
  _ctx: Kr
3326
3326
  }, n = 32;
3327
- } else t = String(t), r & 64 ? (n = 16, t = [vs(t)]) : n = 8;
3327
+ } else t = String(t), r & 64 ? (n = 16, t = [_s(t)]) : n = 8;
3328
3328
  e.children = t, e.shapeFlag |= n;
3329
3329
  }
3330
- function Ss(...e) {
3330
+ function xs(...e) {
3331
3331
  let t = {};
3332
3332
  for (let n = 0; n < e.length; n++) {
3333
3333
  let r = e[n];
@@ -3340,13 +3340,13 @@ function Ss(...e) {
3340
3340
  }
3341
3341
  return t;
3342
3342
  }
3343
- function Cs(e, t, n, r = null) {
3343
+ function Ss(e, t, n, r = null) {
3344
3344
  Zn(e, t, 7, [n, r]);
3345
3345
  }
3346
- var ws = Ia(), Ts = 0;
3347
- function Es(e, t, n) {
3348
- let r = e.type, i = (t ? t.appContext : e.appContext) || ws, a = {
3349
- uid: Ts++,
3346
+ var Cs = Ia(), ws = 0;
3347
+ function Ts(e, t, n) {
3348
+ let r = e.type, i = (t ? t.appContext : e.appContext) || Cs, a = {
3349
+ uid: ws++,
3350
3350
  vnode: e,
3351
3351
  type: r,
3352
3352
  parent: t,
@@ -3411,7 +3411,7 @@ function Es(e, t, n) {
3411
3411
  };
3412
3412
  return process.env.NODE_ENV === "production" ? a.ctx = { _: a } : a.ctx = ga(a), a.root = t ? t.root : a, a.emit = Va.bind(null, a), e.ce && e.ce(a), a;
3413
3413
  }
3414
- var Ds = null, Os = () => Ds || Kr, ks, As;
3414
+ var Es = null, Ds = () => Es || Kr, Os, ks;
3415
3415
  {
3416
3416
  let e = De(), t = (t, n) => {
3417
3417
  let r;
@@ -3419,80 +3419,80 @@ var Ds = null, Os = () => Ds || Kr, ks, As;
3419
3419
  r.length > 1 ? r.forEach((t) => t(e)) : r[0](e);
3420
3420
  };
3421
3421
  };
3422
- ks = t("__VUE_INSTANCE_SETTERS__", (e) => Ds = e), As = t("__VUE_SSR_SETTERS__", (e) => Is = e);
3422
+ Os = t("__VUE_INSTANCE_SETTERS__", (e) => Es = e), ks = t("__VUE_SSR_SETTERS__", (e) => Fs = e);
3423
3423
  }
3424
- var js = (e) => {
3425
- let t = Ds;
3426
- return ks(e), e.scope.on(), () => {
3427
- e.scope.off(), ks(t);
3424
+ var As = (e) => {
3425
+ let t = Es;
3426
+ return Os(e), e.scope.on(), () => {
3427
+ e.scope.off(), Os(t);
3428
3428
  };
3429
- }, Ms = () => {
3430
- Ds && Ds.scope.off(), ks(null);
3431
- }, Ns = /* @__PURE__ */ k("slot,component");
3432
- function Ps(e, { isNativeTag: t }) {
3433
- (Ns(e) || t(e)) && K("Do not use built-in or reserved HTML elements as component id: " + e);
3429
+ }, js = () => {
3430
+ Es && Es.scope.off(), Os(null);
3431
+ }, Ms = /* @__PURE__ */ k("slot,component");
3432
+ function Ns(e, { isNativeTag: t }) {
3433
+ (Ms(e) || t(e)) && K("Do not use built-in or reserved HTML elements as component id: " + e);
3434
3434
  }
3435
- function Fs(e) {
3435
+ function Ps(e) {
3436
3436
  return e.vnode.shapeFlag & 4;
3437
3437
  }
3438
- var Is = !1;
3439
- function Ls(e, t = !1, n = !1) {
3440
- t && As(t);
3441
- let { props: r, children: i } = e.vnode, a = Fs(e);
3438
+ var Fs = !1;
3439
+ function Is(e, t = !1, n = !1) {
3440
+ t && ks(t);
3441
+ let { props: r, children: i } = e.vnode, a = Ps(e);
3442
3442
  oo(e, r, a, t), Ao(e, i, n || t);
3443
- let o = a ? Rs(e, t) : void 0;
3444
- return t && As(!1), o;
3443
+ let o = a ? Ls(e, t) : void 0;
3444
+ return t && ks(!1), o;
3445
3445
  }
3446
- function Rs(e, t) {
3446
+ function Ls(e, t) {
3447
3447
  let n = e.type;
3448
3448
  if (process.env.NODE_ENV !== "production") {
3449
- if (n.name && Ps(n.name, e.appContext.config), n.components) {
3449
+ if (n.name && Ns(n.name, e.appContext.config), n.components) {
3450
3450
  let t = Object.keys(n.components);
3451
- for (let n = 0; n < t.length; n++) Ps(t[n], e.appContext.config);
3451
+ for (let n = 0; n < t.length; n++) Ns(t[n], e.appContext.config);
3452
3452
  }
3453
3453
  if (n.directives) {
3454
3454
  let e = Object.keys(n.directives);
3455
3455
  for (let t = 0; t < e.length; t++) Xr(e[t]);
3456
3456
  }
3457
- n.compilerOptions && Hs() && K("\"compilerOptions\" is only supported when using a build of Vue that includes the runtime compiler. Since you are using a runtime-only build, the options should be passed via your build tool config instead.");
3457
+ n.compilerOptions && Vs() && K("\"compilerOptions\" is only supported when using a build of Vue that includes the runtime compiler. Since you are using a runtime-only build, the options should be passed via your build tool config instead.");
3458
3458
  }
3459
3459
  e.accessCache = /* @__PURE__ */ Object.create(null), e.proxy = new Proxy(e.ctx, ha), process.env.NODE_ENV !== "production" && _a(e);
3460
3460
  let { setup: r } = n;
3461
3461
  if (r) {
3462
3462
  ht();
3463
- let i = e.setupContext = r.length > 1 ? Ks(e) : null, a = js(e), o = Xn(r, e, 0, [process.env.NODE_ENV === "production" ? e.props : /* @__PURE__ */ pn(e.props), i]), s = se(o);
3463
+ let i = e.setupContext = r.length > 1 ? Gs(e) : null, a = As(e), o = Xn(r, e, 0, [process.env.NODE_ENV === "production" ? e.props : /* @__PURE__ */ pn(e.props), i]), s = se(o);
3464
3464
  if (gt(), a(), (s || e.sp) && !Ui(e) && Li(e), s) {
3465
- if (o.then(Ms, Ms), t) return o.then((n) => {
3466
- zs(e, n, t);
3465
+ if (o.then(js, js), t) return o.then((n) => {
3466
+ Rs(e, n, t);
3467
3467
  }).catch((t) => {
3468
3468
  Qn(t, e, 0);
3469
3469
  });
3470
- e.asyncDep = o, process.env.NODE_ENV !== "production" && !e.suspense && K(`Component <${Zs(e, n)}>: setup function returned a promise, but no <Suspense> boundary was found in the parent component tree. A component with async setup() must be nested in a <Suspense> in order to be rendered.`);
3471
- } else zs(e, o, t);
3472
- } else Us(e, t);
3470
+ e.asyncDep = o, process.env.NODE_ENV !== "production" && !e.suspense && K(`Component <${Xs(e, n)}>: setup function returned a promise, but no <Suspense> boundary was found in the parent component tree. A component with async setup() must be nested in a <Suspense> in order to be rendered.`);
3471
+ } else Rs(e, o, t);
3472
+ } else Hs(e, t);
3473
3473
  }
3474
- function zs(e, t, n) {
3475
- z(t) ? e.type.__ssrInlineRender ? e.ssrRender = t : e.render = t : B(t) ? (process.env.NODE_ENV !== "production" && ss(t) && K("setup() should not return VNodes directly - return a render function instead."), process.env.NODE_ENV !== "production" && (e.devtoolsRawSetupState = t), e.setupState = An(t), process.env.NODE_ENV !== "production" && va(e)) : process.env.NODE_ENV !== "production" && t !== void 0 && K(`setup() should return an object. Received: ${t === null ? "null" : typeof t}`), Us(e, n);
3474
+ function Rs(e, t, n) {
3475
+ z(t) ? e.type.__ssrInlineRender ? e.ssrRender = t : e.render = t : B(t) ? (process.env.NODE_ENV !== "production" && ss(t) && K("setup() should not return VNodes directly - return a render function instead."), process.env.NODE_ENV !== "production" && (e.devtoolsRawSetupState = t), e.setupState = An(t), process.env.NODE_ENV !== "production" && va(e)) : process.env.NODE_ENV !== "production" && t !== void 0 && K(`setup() should return an object. Received: ${t === null ? "null" : typeof t}`), Hs(e, n);
3476
3476
  }
3477
- var Bs, Vs, Hs = () => !Bs;
3478
- function Us(e, t, n) {
3477
+ var zs, Bs, Vs = () => !zs;
3478
+ function Hs(e, t, n) {
3479
3479
  let r = e.type;
3480
3480
  if (!e.render) {
3481
- if (!t && Bs && !r.render) {
3481
+ if (!t && zs && !r.render) {
3482
3482
  let t = r.template || Ea(e).template;
3483
3483
  if (t) {
3484
3484
  process.env.NODE_ENV !== "production" && Po(e, "compile");
3485
3485
  let { isCustomElement: n, compilerOptions: i } = e.appContext.config, { delimiters: a, compilerOptions: o } = r;
3486
- r.render = Bs(t, P(P({
3486
+ r.render = zs(t, P(P({
3487
3487
  isCustomElement: n,
3488
3488
  delimiters: a
3489
3489
  }, i), o)), process.env.NODE_ENV !== "production" && Fo(e, "compile");
3490
3490
  }
3491
3491
  }
3492
- e.render = r.render || j, Vs && Vs(e);
3492
+ e.render = r.render || j, Bs && Bs(e);
3493
3493
  }
3494
3494
  {
3495
- let t = js(e);
3495
+ let t = As(e);
3496
3496
  ht();
3497
3497
  try {
3498
3498
  Sa(e);
@@ -3500,9 +3500,9 @@ function Us(e, t, n) {
3500
3500
  gt(), t();
3501
3501
  }
3502
3502
  }
3503
- process.env.NODE_ENV !== "production" && !r.render && e.render === j && !t && (!Bs && r.template ? K("Component provided template option but runtime compilation is not supported in this build of Vue. Configure your bundler to alias \"vue\" to \"vue/dist/vue.esm-bundler.js\".") : K("Component is missing template or render function: ", r));
3503
+ process.env.NODE_ENV !== "production" && !r.render && e.render === j && !t && (!zs && r.template ? K("Component provided template option but runtime compilation is not supported in this build of Vue. Configure your bundler to alias \"vue\" to \"vue/dist/vue.esm-bundler.js\".") : K("Component is missing template or render function: ", r));
3504
3504
  }
3505
- var Ws = process.env.NODE_ENV === "production" ? { get(e, t) {
3505
+ var Us = process.env.NODE_ENV === "production" ? { get(e, t) {
3506
3506
  return Et(e, "get", ""), e[t];
3507
3507
  } } : {
3508
3508
  get(e, t) {
@@ -3515,12 +3515,12 @@ var Ws = process.env.NODE_ENV === "production" ? { get(e, t) {
3515
3515
  return K("setupContext.attrs is readonly."), !1;
3516
3516
  }
3517
3517
  };
3518
- function Gs(e) {
3518
+ function Ws(e) {
3519
3519
  return new Proxy(e.slots, { get(t, n) {
3520
3520
  return Et(e, "get", "$slots"), t[n];
3521
3521
  } });
3522
3522
  }
3523
- function Ks(e) {
3523
+ function Gs(e) {
3524
3524
  let t = (t) => {
3525
3525
  if (process.env.NODE_ENV !== "production" && (e.exposed && K("expose() should be called only once per setup()."), t != null)) {
3526
3526
  let e = typeof t;
@@ -3532,10 +3532,10 @@ function Ks(e) {
3532
3532
  let n, r;
3533
3533
  return Object.freeze({
3534
3534
  get attrs() {
3535
- return n ||= new Proxy(e.attrs, Ws);
3535
+ return n ||= new Proxy(e.attrs, Us);
3536
3536
  },
3537
3537
  get slots() {
3538
- return r ||= Gs(e);
3538
+ return r ||= Ws(e);
3539
3539
  },
3540
3540
  get emit() {
3541
3541
  return (t, ...n) => e.emit(t, ...n);
@@ -3543,13 +3543,13 @@ function Ks(e) {
3543
3543
  expose: t
3544
3544
  });
3545
3545
  } else return {
3546
- attrs: new Proxy(e.attrs, Ws),
3546
+ attrs: new Proxy(e.attrs, Us),
3547
3547
  slots: e.slots,
3548
3548
  emit: e.emit,
3549
3549
  expose: t
3550
3550
  };
3551
3551
  }
3552
- function qs(e) {
3552
+ function Ks(e) {
3553
3553
  return e.exposed ? e.exposeProxy ||= new Proxy(An(bn(e.exposed)), {
3554
3554
  get(t, n) {
3555
3555
  if (n in t) return t[n];
@@ -3560,12 +3560,12 @@ function qs(e) {
3560
3560
  }
3561
3561
  }) : e.proxy;
3562
3562
  }
3563
- var Js = /(?:^|[-_])\w/g, Ys = (e) => e.replace(Js, (e) => e.toUpperCase()).replace(/[-_]/g, "");
3564
- function Xs(e, t = !0) {
3563
+ var qs = /(?:^|[-_])\w/g, Js = (e) => e.replace(qs, (e) => e.toUpperCase()).replace(/[-_]/g, "");
3564
+ function Ys(e, t = !0) {
3565
3565
  return z(e) ? e.displayName || e.name : e.name || t && e.__name;
3566
3566
  }
3567
- function Zs(e, t, n = !1) {
3568
- let r = Xs(t);
3567
+ function Xs(e, t, n = !1) {
3568
+ let r = Ys(t);
3569
3569
  if (!r && t.__file) {
3570
3570
  let e = t.__file.match(/([^/\\]+)\.\w+$/);
3571
3571
  e && (r = e[1]);
@@ -3576,15 +3576,15 @@ function Zs(e, t, n = !1) {
3576
3576
  };
3577
3577
  r = n(e.components) || e.parent && n(e.parent.type.components) || n(e.appContext.components);
3578
3578
  }
3579
- return r ? Ys(r) : n ? "App" : "Anonymous";
3579
+ return r ? Js(r) : n ? "App" : "Anonymous";
3580
3580
  }
3581
- function Qs(e) {
3581
+ function Zs(e) {
3582
3582
  return z(e) && "__vccOpts" in e;
3583
3583
  }
3584
- var Q = (e, t) => {
3585
- let n = /* @__PURE__ */ Mn(e, t, Is);
3584
+ var Qs = (e, t) => {
3585
+ let n = /* @__PURE__ */ Mn(e, t, Fs);
3586
3586
  if (process.env.NODE_ENV !== "production") {
3587
- let e = Os();
3587
+ let e = Ds();
3588
3588
  e && e.appContext.config.warnRecursiveComputed && (n._warnRecursive = !0);
3589
3589
  }
3590
3590
  return n;
@@ -3593,7 +3593,7 @@ function $s(e, t, n) {
3593
3593
  try {
3594
3594
  is(-1);
3595
3595
  let r = arguments.length;
3596
- return r === 2 ? B(t) && !L(t) ? ss(t) ? ps(e, null, [t]) : ps(e, t) : ps(e, null, t) : (r > 3 ? n = Array.prototype.slice.call(arguments, 2) : r === 3 && ss(n) && (n = [n]), ps(e, t, n));
3596
+ return r === 2 ? B(t) && !L(t) ? ss(t) ? Z(e, null, [t]) : Z(e, t) : Z(e, null, t) : (r > 3 ? n = Array.prototype.slice.call(arguments, 2) : r === 3 && ss(n) && (n = [n]), Z(e, t, n));
3597
3597
  } finally {
3598
3598
  is(1);
3599
3599
  }
@@ -4188,7 +4188,7 @@ function Dl(e) {
4188
4188
  });
4189
4189
  }
4190
4190
  function Ol(e) {
4191
- if (Hs()) {
4191
+ if (Vs()) {
4192
4192
  let t = e.config.isCustomElement;
4193
4193
  Object.defineProperty(e.config, "isCustomElement", {
4194
4194
  get() {
@@ -9339,7 +9339,7 @@ function Km(e) {
9339
9339
  temperature: 0,
9340
9340
  maxTokens: 30
9341
9341
  }));
9342
- let t = await i.invoke([new o(e.dialog?.locale === "en-US" ? "Generate a short English title (max 10 words) summarizing the conversation below. Output the title text only, no quotes or punctuation." : "根据以下对话的主旨,生成一个简短的中文标题(不超过15个字,不要标点和引号,直接输出标题文字)。"), new a(n)], { signal: s.signal }), c = e.dialog?.locale === "en-US" ? 60 : 20;
9342
+ let t = await i.invoke([new o(e.i18n?.locale === "en-US" ? "Generate a short English title (max 10 words) summarizing the conversation below. Output the title text only, no quotes or punctuation." : "根据以下对话的主旨,生成一个简短的中文标题(不超过15个字,不要标点和引号,直接输出标题文字)。"), new a(n)], { signal: s.signal }), c = e.i18n?.locale === "en-US" ? 60 : 20;
9343
9343
  return Wm(t).trim().replace(/^["'""「『]|["'""」』]$/g, "").split("\n")[0].slice(0, c);
9344
9344
  } catch {
9345
9345
  return "";
@@ -12504,7 +12504,7 @@ function p_(e, n) {
12504
12504
  maxCheckpoints: ne && typeof ne == "object" ? ne.maxCheckpoints : void 0
12505
12505
  }) : null, re = !ne || typeof ne != "object" || ne.auto !== !1, R = Oh(e.capabilities), ie = R.dataOps, z = R.draftWrite, ae = R.tracing, oe = R.automation, B = qp({
12506
12506
  ...e,
12507
- locale: e.dialog?.locale
12507
+ locale: e.i18n?.locale
12508
12508
  });
12509
12509
  if (te) {
12510
12510
  let e = M.map((e) => e._codeAsset.orchestratorPrompt).filter(Boolean).join("\n\n");
@@ -13528,6 +13528,7 @@ function m_(e, t) {
13528
13528
  el: m,
13529
13529
  core: a,
13530
13530
  dialogCfg: c,
13531
+ i18n: e.i18n,
13531
13532
  streaming: r,
13532
13533
  runSerial: a.runSerial,
13533
13534
  hide: p,
@@ -14446,13 +14447,13 @@ function T_(e = {}) {
14446
14447
  v.value = !1;
14447
14448
  }, 1500));
14448
14449
  });
14449
- }, b = Q(() => {
14450
+ }, b = Qs(() => {
14450
14451
  let t = e.getInfo?.();
14451
14452
  return {
14452
14453
  mcp: t?.mcp?.servers?.length ?? 0,
14453
14454
  tools: t?.tools?.length ?? 0
14454
14455
  };
14455
- }), x = Q(() => (n.messages.length, typeof e.canUndo == "function" && !!e.canUndo())), S = () => {
14456
+ }), x = Qs(() => (n.messages.length, typeof e.canUndo == "function" && !!e.canUndo())), S = () => {
14456
14457
  e.onUndo?.() && (n.error = null);
14457
14458
  }, C = (e) => new Date(e).toLocaleTimeString(N, {
14458
14459
  hour: "2-digit",
@@ -14468,7 +14469,7 @@ function T_(e = {}) {
14468
14469
  if (!r || r.role !== "assistant") return !1;
14469
14470
  let i = "reasoning" in r ? r.reasoning : void 0;
14470
14471
  return n.loading && e === t.length - 1 && !r.content && !i;
14471
- }, O = Q(() => (e.infoTick?.value, e.getFocuses?.() ?? [])), k = (t) => e.onAddFocus ? e.onAddFocus(t) : {
14472
+ }, O = Qs(() => (e.infoTick?.value, e.getFocuses?.() ?? [])), k = (t) => e.onAddFocus ? e.onAddFocus(t) : {
14472
14473
  ok: !1,
14473
14474
  error: "focus 未启用"
14474
14475
  }, A = (t) => {
@@ -15316,36 +15317,73 @@ function $v(e) {
15316
15317
  ALLOW_DATA_ATTR: !1
15317
15318
  });
15318
15319
  }
15320
+ var ey = [
15321
+ "b",
15322
+ "strong",
15323
+ "i",
15324
+ "em",
15325
+ "u",
15326
+ "s",
15327
+ "span",
15328
+ "sub",
15329
+ "sup",
15330
+ "mark",
15331
+ "code",
15332
+ "kbd",
15333
+ "br"
15334
+ ], ty = [
15335
+ "class",
15336
+ "style",
15337
+ "title"
15338
+ ];
15339
+ function ny(e) {
15340
+ return Yv.sanitize(e, {
15341
+ ALLOWED_TAGS: [...ey],
15342
+ ALLOWED_ATTR: [...ty],
15343
+ ALLOW_DATA_ATTR: !1
15344
+ });
15345
+ }
15319
15346
  //#endregion
15320
15347
  //#region src/core/components/IconGlyph.vue?vue&type=script&setup=true&lang.ts
15321
- var ey = ["innerHTML"], ty = {
15348
+ var ry = ["innerHTML"], iy = {
15322
15349
  key: 1,
15323
15350
  class: "icon-text"
15324
- }, ny = /*@__PURE__*/ Ii({
15351
+ }, ay = /*@__PURE__*/ Ii({
15325
15352
  __name: "IconGlyph",
15326
15353
  props: { icon: {} },
15327
15354
  setup(e) {
15328
- let t = e, n = Q(() => Xv(t.icon)), r = Q(() => n.value ? $v(t.icon) : "");
15355
+ let t = e, n = Qs(() => Xv(t.icon)), r = Qs(() => n.value ? $v(t.icon) : "");
15329
15356
  return (t, i) => n.value ? (J(), Y("span", {
15330
15357
  key: 0,
15331
15358
  class: "icon-html",
15332
15359
  innerHTML: r.value
15333
- }, null, 8, ey)) : (J(), Y("span", ty, U(e.icon), 1));
15360
+ }, null, 8, ry)) : (J(), Y("span", iy, U(e.icon), 1));
15334
15361
  }
15335
- }), ry = (e, t) => {
15362
+ }), oy = (e, t) => {
15336
15363
  let n = e.__vccOpts || e;
15337
15364
  for (let [e, r] of t) n[e] = r;
15338
15365
  return n;
15339
- }, iy = /*#__PURE__*/ ry(ny, [["__scopeId", "data-v-7d3cf5e5"]]), ay = { class: "chat-header" }, oy = { class: "header-left" }, sy = { class: "header-icon" }, cy = { class: "header-title" }, ly = {
15366
+ }, sy = /*#__PURE__*/ oy(ay, [["__scopeId", "data-v-7d3cf5e5"]]), cy = ["innerHTML"], ly = /* @__PURE__ */ Ii({
15367
+ __name: "MsgText",
15368
+ props: { text: {} },
15369
+ setup(e) {
15370
+ let t = e, n = Qs(() => Xv(t.text) ? ny(t.text) : "");
15371
+ return (t, r) => n.value ? (J(), Y("span", {
15372
+ key: 0,
15373
+ class: "msg-rich",
15374
+ innerHTML: n.value
15375
+ }, null, 8, cy)) : (J(), Y(q, { key: 1 }, [_s(U(e.text), 1)], 64));
15376
+ }
15377
+ }), uy = { class: "chat-header" }, dy = { class: "header-left" }, fy = { class: "header-icon" }, py = { class: "header-title" }, my = {
15340
15378
  key: 0,
15341
15379
  class: "status-dot pulse"
15342
- }, uy = ["title"], dy = ["title"], fy = ["data-sid", "onClick"], py = { class: "hist-title" }, my = { class: "hist-meta" }, hy = ["onClick"], gy = ["title"], _y = {
15380
+ }, hy = ["title"], gy = ["title"], _y = ["data-sid", "onClick"], vy = { class: "hist-title" }, yy = { class: "hist-meta" }, by = ["onClick"], xy = ["title"], Sy = {
15343
15381
  key: 0,
15344
15382
  class: "debug-badge"
15345
- }, vy = ["title"], yy = {
15383
+ }, Cy = ["title"], wy = {
15346
15384
  key: 0,
15347
15385
  class: "more-item-badge"
15348
- }, by = ["title"], xy = ["title", "disabled"], Sy = ["title"], Cy = /*#__PURE__*/ ry(/* @__PURE__ */ Ii({
15386
+ }, Ty = ["title"], Ey = ["title", "disabled"], Dy = ["title"], Oy = /*#__PURE__*/ oy(/* @__PURE__ */ Ii({
15349
15387
  __name: "ChatHeader",
15350
15388
  props: {
15351
15389
  title: {},
@@ -15360,7 +15398,7 @@ var ey = ["innerHTML"], ty = {
15360
15398
  },
15361
15399
  emits: ["close"],
15362
15400
  setup(e) {
15363
- let t = e, n = E_(), { chat: r, icons: i, messages: a } = n, { state: o, reset: s, clearMessages: c } = r, l = /* @__PURE__ */ wn(!1), u = /* @__PURE__ */ wn(!1), d = Q(() => o.messages.length > 0), f = Q(() => (t.debugLogs?.length ?? 0) > 0);
15401
+ let t = e, n = E_(), { chat: r, icons: i, messages: a } = n, { state: o, reset: s, clearMessages: c } = r, l = /* @__PURE__ */ wn(!1), u = /* @__PURE__ */ wn(!1), d = Qs(() => o.messages.length > 0), f = Qs(() => (t.debugLogs?.length ?? 0) > 0);
15364
15402
  function p(e) {
15365
15403
  let t = Date.now() - e;
15366
15404
  return t < 6e4 ? a.justNow : t < 36e5 ? Math.floor(t / 6e4) + a.minutesAgoSuffix : new Date(e).toLocaleString();
@@ -15371,11 +15409,11 @@ var ey = ["innerHTML"], ty = {
15371
15409
  function h(e) {
15372
15410
  s(), t.onOpenSession?.(e);
15373
15411
  }
15374
- return (t, r) => (J(), Y("div", ay, [
15375
- X("div", oy, [
15376
- X("span", sy, [ps(iy, { icon: G(i).header }, null, 8, ["icon"])]),
15377
- X("span", cy, U(e.title), 1),
15378
- G(o).loading ? (J(), Y("span", ly)) : Z("", !0)
15412
+ return (t, r) => (J(), Y("div", uy, [
15413
+ X("div", dy, [
15414
+ X("span", fy, [Z(sy, { icon: G(i).header }, null, 8, ["icon"])]),
15415
+ X("span", py, [Z(ly, { text: e.title }, null, 8, ["text"])]),
15416
+ G(o).loading ? (J(), Y("span", my)) : Q("", !0)
15379
15417
  ]),
15380
15418
  X("div", {
15381
15419
  class: "header-actions",
@@ -15394,7 +15432,7 @@ var ey = ["innerHTML"], ty = {
15394
15432
  fill: "none",
15395
15433
  stroke: "currentColor",
15396
15434
  "stroke-width": "2"
15397
- }, [X("path", { d: "M12 5v14M5 12h14" })], -1)]], 8, uy)) : Z("", !0),
15435
+ }, [X("path", { d: "M12 5v14M5 12h14" })], -1)]], 8, hy)) : Q("", !0),
15398
15436
  e.sessions ? (J(), Y("button", {
15399
15437
  key: 1,
15400
15438
  class: H(["action-btn", { active: u.value }]),
@@ -15414,7 +15452,7 @@ var ey = ["innerHTML"], ty = {
15414
15452
  X("path", { d: "M3 12a9 9 0 1 0 3-6.7L3 8" }),
15415
15453
  X("path", { d: "M3 3v5h5" }),
15416
15454
  X("path", { d: "M12 7v5l3 2" })
15417
- ], -1)]], 10, dy)) : Z("", !0),
15455
+ ], -1)]], 10, gy)) : Q("", !0),
15418
15456
  e.sessions && u.value ? (J(), Y("div", {
15419
15457
  key: 2,
15420
15458
  class: "cs-history-menu",
@@ -15424,12 +15462,12 @@ var ey = ["innerHTML"], ty = {
15424
15462
  class: H(["hist-item", { active: e.currentSessionId === t.sessionId }]),
15425
15463
  "data-sid": t.sessionId,
15426
15464
  onClick: (e) => h(t.sessionId)
15427
- }, [X("div", py, U(t.title || G(a).sessionFallbackPrefix + t.sessionId.slice(-6)), 1), X("div", my, [X("span", null, U(p(t.lastAccessed)), 1), e.currentSessionId === t.sessionId ? Z("", !0) : (J(), Y("button", {
15465
+ }, [X("div", vy, U(t.title || G(a).sessionFallbackPrefix + t.sessionId.slice(-6)), 1), X("div", yy, [X("span", null, U(p(t.lastAccessed)), 1), e.currentSessionId === t.sessionId ? Q("", !0) : (J(), Y("button", {
15428
15466
  key: 0,
15429
15467
  class: "hist-del",
15430
15468
  "data-test": "del-btn",
15431
15469
  onClick: yl((n) => e.onRemoveSession?.(t.sessionId), ["stop"])
15432
- }, "✕", 8, hy))])], 10, fy))), 128))])) : Z("", !0),
15470
+ }, "✕", 8, by))])], 10, _y))), 128))])) : Q("", !0),
15433
15471
  X("button", {
15434
15472
  class: H(["action-btn more-btn", { active: l.value }]),
15435
15473
  title: G(a).more,
@@ -15457,7 +15495,7 @@ var ey = ["innerHTML"], ty = {
15457
15495
  cy: "19",
15458
15496
  r: "1.6"
15459
15497
  })
15460
- ], -1), f.value ? (J(), Y("span", _y, U(e.debugLogs?.length), 1)) : Z("", !0)], 10, gy),
15498
+ ], -1), f.value ? (J(), Y("span", Sy, U(e.debugLogs?.length), 1)) : Q("", !0)], 10, xy),
15461
15499
  l.value ? (J(), Y("div", {
15462
15500
  key: 3,
15463
15501
  class: "more-menu",
@@ -15483,8 +15521,8 @@ var ey = ["innerHTML"], ty = {
15483
15521
  X("path", { d: "M9 18h6" })
15484
15522
  ], -1),
15485
15523
  X("span", null, U(G(a).debugMenu), 1),
15486
- f.value ? (J(), Y("span", yy, U(e.debugLogs?.length), 1)) : Z("", !0)
15487
- ], 8, vy),
15524
+ f.value ? (J(), Y("span", wy, U(e.debugLogs?.length), 1)) : Q("", !0)
15525
+ ], 8, Cy),
15488
15526
  e.skillAvailable ? (J(), Y("button", {
15489
15527
  key: 0,
15490
15528
  class: "more-item",
@@ -15499,7 +15537,7 @@ var ey = ["innerHTML"], ty = {
15499
15537
  fill: "none",
15500
15538
  stroke: "currentColor",
15501
15539
  "stroke-width": "2"
15502
- }, [X("path", { d: "M12 2l2.4 7.4H22l-6 4.4 2.3 7.2L12 16.8 5.7 21l2.3-7.2-6-4.4h7.6z" })], -1), X("span", null, U(G(a).skillMenu), 1)], 8, by)) : Z("", !0),
15540
+ }, [X("path", { d: "M12 2l2.4 7.4H22l-6 4.4 2.3 7.2L12 16.8 5.7 21l2.3-7.2-6-4.4h7.6z" })], -1), X("span", null, U(G(a).skillMenu), 1)], 8, Ty)) : Q("", !0),
15503
15541
  X("button", {
15504
15542
  class: "more-item",
15505
15543
  title: G(a).clearChat,
@@ -15514,8 +15552,8 @@ var ey = ["innerHTML"], ty = {
15514
15552
  fill: "none",
15515
15553
  stroke: "currentColor",
15516
15554
  "stroke-width": "2"
15517
- }, [X("polyline", { points: "3 6 5 6 21 6" }), X("path", { d: "M19 6v14a2 2 0 0 1-2 2H7a2 2 0 0 1-2-2V6m3 0V4a2 2 0 0 1 2-2h4a2 2 0 0 1 2 2v2" })], -1), X("span", null, U(G(a).clearChat), 1)], 8, xy)
15518
- ])) : Z("", !0),
15555
+ }, [X("polyline", { points: "3 6 5 6 21 6" }), X("path", { d: "M19 6v14a2 2 0 0 1-2 2H7a2 2 0 0 1-2-2V6m3 0V4a2 2 0 0 1 2-2h4a2 2 0 0 1 2 2v2" })], -1), X("span", null, U(G(a).clearChat), 1)], 8, Ey)
15556
+ ])) : Q("", !0),
15519
15557
  e.drawer ? (J(), Y("button", {
15520
15558
  key: 4,
15521
15559
  class: "action-btn",
@@ -15528,7 +15566,7 @@ var ey = ["innerHTML"], ty = {
15528
15566
  fill: "none",
15529
15567
  stroke: "currentColor",
15530
15568
  "stroke-width": "2"
15531
- }, [X("path", { d: "M18 6L6 18M6 6l12 12" })], -1)]], 8, Sy)) : Z("", !0)
15569
+ }, [X("path", { d: "M18 6L6 18M6 6l12 12" })], -1)]], 8, Dy)) : Q("", !0)
15532
15570
  ]),
15533
15571
  l.value || u.value ? (J(), Y("div", {
15534
15572
  key: 0,
@@ -15536,19 +15574,19 @@ var ey = ["innerHTML"], ty = {
15536
15574
  onClick: r[9] ||= (e) => {
15537
15575
  l.value = !1, u.value = !1;
15538
15576
  }
15539
- })) : Z("", !0)
15577
+ })) : Q("", !0)
15540
15578
  ]));
15541
15579
  }
15542
- }), [["__scopeId", "data-v-859b1fc6"]]), wy = {
15580
+ }), [["__scopeId", "data-v-0d783fe2"]]), ky = {
15543
15581
  key: 0,
15544
15582
  class: "focus-bar"
15545
- }, Ty = { class: "focus-bar-icon" }, Ey = { class: "focus-bar-text" }, Dy = {
15583
+ }, Ay = { class: "focus-bar-icon" }, jy = { class: "focus-bar-text" }, My = {
15546
15584
  key: 0,
15547
15585
  class: "focus-bar-label"
15548
- }, Oy = { class: "focus-bar-path" }, ky = ["title"], Ay = ["title"], jy = {
15586
+ }, Ny = { class: "focus-bar-path" }, Py = ["title"], Fy = ["title"], Iy = {
15549
15587
  key: 0,
15550
15588
  class: "focus-edit-row"
15551
- }, My = ["placeholder"], Ny = ["placeholder"], Py = /*#__PURE__*/ ry(/* @__PURE__ */ Ii({
15589
+ }, Ly = ["placeholder"], Ry = ["placeholder"], zy = /*#__PURE__*/ oy(/* @__PURE__ */ Ii({
15552
15590
  __name: "FocusBar",
15553
15591
  props: {
15554
15592
  getFocus: {},
@@ -15559,7 +15597,7 @@ var ey = ["innerHTML"], ty = {
15559
15597
  messages: { default: () => ({ ...b_ }) }
15560
15598
  },
15561
15599
  setup(e) {
15562
- let t = e, n = Q(() => (t.infoTick?.value, t.getFocus?.())), r = /* @__PURE__ */ wn(!1), i = /* @__PURE__ */ wn(""), a = /* @__PURE__ */ wn("");
15600
+ let t = e, n = Qs(() => (t.infoTick?.value, t.getFocus?.())), r = /* @__PURE__ */ wn(!1), i = /* @__PURE__ */ wn(""), a = /* @__PURE__ */ wn("");
15563
15601
  function o() {
15564
15602
  let e = i.value.trim();
15565
15603
  if (!e || !t.onSetFocus) return;
@@ -15572,46 +15610,46 @@ var ey = ["innerHTML"], ty = {
15572
15610
  function s() {
15573
15611
  t.onClearFocus?.(), r.value = !1;
15574
15612
  }
15575
- return (t, c) => n.value ? (J(), Y("div", wy, [
15576
- X("span", Ty, [ps(iy, { icon: e.icons.focus }, null, 8, ["icon"])]),
15577
- X("span", Ey, [n.value.label ? (J(), Y("span", Dy, U(n.value.label), 1)) : Z("", !0), X("code", Oy, U(n.value.path), 1)]),
15613
+ return (t, c) => n.value ? (J(), Y("div", ky, [
15614
+ X("span", Ay, [Z(sy, { icon: e.icons.focus }, null, 8, ["icon"])]),
15615
+ X("span", jy, [n.value.label ? (J(), Y("span", My, U(n.value.label), 1)) : Q("", !0), X("code", Ny, U(n.value.path), 1)]),
15578
15616
  X("button", {
15579
15617
  class: "focus-bar-btn",
15580
15618
  title: e.messages.switchFocusTitle,
15581
15619
  onClick: c[0] ||= (e) => r.value = !r.value
15582
- }, "▾", 8, ky),
15620
+ }, "▾", 8, Py),
15583
15621
  X("button", {
15584
15622
  class: "focus-bar-btn",
15585
15623
  title: e.messages.exitFocusTitle,
15586
15624
  "data-test": "focus-clear",
15587
15625
  onClick: s
15588
- }, "✕", 8, Ay),
15589
- r.value ? (J(), Y("div", jy, [
15626
+ }, "✕", 8, Fy),
15627
+ r.value ? (J(), Y("div", Iy, [
15590
15628
  Zr(X("input", {
15591
15629
  "onUpdate:modelValue": c[1] ||= (e) => i.value = e,
15592
15630
  class: "focus-edit-input",
15593
15631
  placeholder: e.messages.focusPathPlaceholder,
15594
15632
  "data-test": "focus-path-input",
15595
15633
  onKeyup: xl(o, ["enter"])
15596
- }, null, 40, My), [[gl, i.value]]),
15634
+ }, null, 40, Ly), [[gl, i.value]]),
15597
15635
  Zr(X("input", {
15598
15636
  "onUpdate:modelValue": c[2] ||= (e) => a.value = e,
15599
15637
  class: "focus-edit-input focus-edit-label",
15600
15638
  placeholder: e.messages.focusLabelPlaceholder,
15601
15639
  onKeyup: xl(o, ["enter"])
15602
- }, null, 40, Ny), [[gl, a.value]]),
15640
+ }, null, 40, Ry), [[gl, a.value]]),
15603
15641
  X("button", {
15604
15642
  class: "focus-edit-go",
15605
15643
  "data-test": "focus-submit",
15606
15644
  onClick: o
15607
15645
  }, U(e.messages.focusSubmit), 1)
15608
- ])) : Z("", !0)
15609
- ])) : Z("", !0);
15646
+ ])) : Q("", !0)
15647
+ ])) : Q("", !0);
15610
15648
  }
15611
- }), [["__scopeId", "data-v-4904b0b4"]]), Fy = { class: "reasoning-toggle" }, Iy = {
15649
+ }), [["__scopeId", "data-v-4904b0b4"]]), By = { class: "reasoning-toggle" }, Vy = {
15612
15650
  key: 0,
15613
15651
  class: "reasoning-body"
15614
- }, Ly = /*#__PURE__*/ ry(/* @__PURE__ */ Ii({
15652
+ }, Hy = /*#__PURE__*/ oy(/* @__PURE__ */ Ii({
15615
15653
  __name: "MessageReasoning",
15616
15654
  props: {
15617
15655
  text: {},
@@ -15628,13 +15666,13 @@ var ey = ["innerHTML"], ty = {
15628
15666
  }, [
15629
15667
  n[1] ||= X("span", { class: "status-dot ok" }, null, -1),
15630
15668
  n[2] ||= X("span", { class: "reasoning-title" }, "思考过程", -1),
15631
- X("span", Fy, U(e.expanded ? "收起" : "展开"), 1)
15632
- ]), e.expanded ? (J(), Y("div", Iy, U(e.text), 1)) : Z("", !0)], 2)) : Z("", !0);
15669
+ X("span", By, U(e.expanded ? "收起" : "展开"), 1)
15670
+ ]), e.expanded ? (J(), Y("div", Vy, U(e.text), 1)) : Q("", !0)], 2)) : Q("", !0);
15633
15671
  }
15634
- }), [["__scopeId", "data-v-dbe90e42"]]), Ry = ["open"], zy = { class: "sub-reason-head" }, By = {
15672
+ }), [["__scopeId", "data-v-dbe90e42"]]), Uy = ["open"], Wy = { class: "sub-reason-head" }, Gy = {
15635
15673
  key: 0,
15636
15674
  class: "sub-reason-trunc"
15637
- }, Vy = ["title"], Hy = /*#__PURE__*/ ry(/* @__PURE__ */ Ii({
15675
+ }, Ky = ["title"], qy = /*#__PURE__*/ oy(/* @__PURE__ */ Ii({
15638
15676
  __name: "SubReasonDetails",
15639
15677
  props: {
15640
15678
  subReason: {},
@@ -15647,10 +15685,10 @@ var ey = ["innerHTML"], ty = {
15647
15685
  ri(() => t.subReason.length, async () => {
15648
15686
  t.status === "running" && r.value && n.value && (await cr(), n.value.scrollTop = n.value.scrollHeight);
15649
15687
  });
15650
- let i = Q(() => t.subReasonFull?.length ?? t.subReason.length), a = Q(() => {
15688
+ let i = Qs(() => t.subReasonFull?.length ?? t.subReason.length), a = Qs(() => {
15651
15689
  let e = i.value;
15652
15690
  return e >= 1e5 ? `${Math.round(e / 1e3)}k` : `${e}`;
15653
- }), o = Q(() => (t.subReasonFull?.length ?? t.subReason.length) > t.subReason.length), s = /* @__PURE__ */ wn(!1);
15691
+ }), o = Qs(() => (t.subReasonFull?.length ?? t.subReason.length) > t.subReason.length), s = /* @__PURE__ */ wn(!1);
15654
15692
  async function c() {
15655
15693
  try {
15656
15694
  await navigator.clipboard.writeText(t.subReasonFull ?? t.subReason), s.value = !0, setTimeout(() => {
@@ -15662,56 +15700,56 @@ var ey = ["innerHTML"], ty = {
15662
15700
  class: "step-sub-reason",
15663
15701
  open: r.value,
15664
15702
  onToggle: i[0] ||= (e) => r.value = e.target.open
15665
- }, [X("summary", zy, [
15703
+ }, [X("summary", Wy, [
15666
15704
  X("span", { class: H(["status-dot sm", e.status === "running" ? "running" : "ok"]) }, null, 2),
15667
15705
  X("span", { class: H(["sub-reason-label", { pulsing: e.status === "running" }]) }, U(e.status === "running" ? `${e.messages.thinkingCountPrefix}${a.value}${e.messages.charCountSuffix}` : e.messages.reasoningTitle), 3),
15668
- o.value ? (J(), Y("span", By, U(e.messages.truncatedNotePrefix) + U(e.subReason.length) + U(e.messages.truncatedNoteSuffix), 1)) : Z("", !0),
15706
+ o.value ? (J(), Y("span", Gy, U(e.messages.truncatedNotePrefix) + U(e.subReason.length) + U(e.messages.truncatedNoteSuffix), 1)) : Q("", !0),
15669
15707
  X("button", {
15670
15708
  type: "button",
15671
15709
  class: H(["sub-reason-copy", { copied: s.value }]),
15672
15710
  title: o.value ? e.messages.copyThinkingTruncTitle : e.messages.copyThinking,
15673
15711
  onClick: yl(c, ["stop", "prevent"])
15674
- }, U(s.value ? e.messages.copied : e.messages.copy), 11, Vy)
15712
+ }, U(s.value ? e.messages.copied : e.messages.copy), 11, Ky)
15675
15713
  ]), X("div", {
15676
15714
  ref_key: "bodyRef",
15677
15715
  ref: n,
15678
15716
  class: "sub-reason-body"
15679
- }, U(o.value ? "…(前面已截断)\n" : "") + U(e.subReason), 513)], 40, Ry));
15717
+ }, U(o.value ? "…(前面已截断)\n" : "") + U(e.subReason), 513)], 40, Uy));
15680
15718
  }
15681
- }), [["__scopeId", "data-v-282d02cd"]]), Uy = {
15719
+ }), [["__scopeId", "data-v-282d02cd"]]), Jy = {
15682
15720
  key: 0,
15683
15721
  class: "steps-block"
15684
- }, Wy = { class: "step-head" }, Gy = { class: "step-name" }, Ky = ["title"], qy = {
15722
+ }, Yy = { class: "step-head" }, Xy = { class: "step-name" }, Zy = ["title"], Qy = {
15685
15723
  key: 1,
15686
15724
  class: "step-count"
15687
- }, Jy = {
15725
+ }, $y = {
15688
15726
  key: 2,
15689
15727
  class: "step-duration"
15690
- }, Yy = ["onClick"], Xy = {
15728
+ }, eb = ["onClick"], tb = {
15691
15729
  key: 0,
15692
15730
  class: "step-detail"
15693
- }, Zy = {
15731
+ }, nb = {
15694
15732
  key: 0,
15695
15733
  class: "step-detail-call-label"
15696
- }, Qy = {
15734
+ }, rb = {
15697
15735
  key: 1,
15698
15736
  class: "step-detail-section"
15699
- }, $y = { class: "step-detail-head" }, eb = ["onClick"], tb = { class: "step-detail-pre" }, nb = {
15737
+ }, ib = { class: "step-detail-head" }, ab = ["onClick"], ob = { class: "step-detail-pre" }, sb = {
15700
15738
  key: 2,
15701
15739
  class: "step-detail-section"
15702
- }, rb = { class: "step-detail-head" }, ib = ["onClick"], ab = {
15740
+ }, cb = { class: "step-detail-head" }, lb = ["onClick"], ub = {
15703
15741
  key: 3,
15704
15742
  class: "step-detail-empty"
15705
- }, ob = {
15743
+ }, db = {
15706
15744
  key: 2,
15707
15745
  class: "step-children"
15708
- }, sb = { class: "step-children-label" }, cb = { class: "step-name" }, lb = {
15746
+ }, fb = { class: "step-children-label" }, pb = { class: "step-name" }, mb = {
15709
15747
  key: 0,
15710
15748
  class: "step-count"
15711
- }, ub = {
15749
+ }, hb = {
15712
15750
  key: 1,
15713
15751
  class: "step-status running"
15714
- }, db = 2e3, fb = 4e3, pb = /*#__PURE__*/ ry(/* @__PURE__ */ Ii({
15752
+ }, gb = 2e3, _b = 4e3, vb = /*#__PURE__*/ oy(/* @__PURE__ */ Ii({
15715
15753
  __name: "MessageSteps",
15716
15754
  props: {
15717
15755
  steps: {},
@@ -15751,7 +15789,7 @@ var ey = ["innerHTML"], ty = {
15751
15789
  subReasonFull: e.subReasonFull
15752
15790
  }));
15753
15791
  }
15754
- let i = Q(() => r(t.steps));
15792
+ let i = Qs(() => r(t.steps));
15755
15793
  function a(e) {
15756
15794
  return e.startsWith("use_");
15757
15795
  }
@@ -15790,8 +15828,8 @@ var ey = ["innerHTML"], ty = {
15790
15828
  } catch {
15791
15829
  n = String(e);
15792
15830
  }
15793
- return n.length > db ? {
15794
- text: n.slice(0, db) + t.messages.displayTruncatedSuffix,
15831
+ return n.length > gb ? {
15832
+ text: n.slice(0, gb) + t.messages.displayTruncatedSuffix,
15795
15833
  truncated: !0
15796
15834
  } : {
15797
15835
  text: n,
@@ -15802,8 +15840,8 @@ var ey = ["innerHTML"], ty = {
15802
15840
  return e == null || e === "" ? {
15803
15841
  text: "",
15804
15842
  truncated: !1
15805
- } : e.length > fb ? {
15806
- text: e.slice(0, fb) + t.messages.displayTruncatedSuffix,
15843
+ } : e.length > _b ? {
15844
+ text: e.slice(0, _b) + t.messages.displayTruncatedSuffix,
15807
15845
  truncated: !0
15808
15846
  } : {
15809
15847
  text: e,
@@ -15823,45 +15861,45 @@ var ey = ["innerHTML"], ty = {
15823
15861
  }
15824
15862
  __(e);
15825
15863
  }
15826
- return (t, s) => e.steps.length ? (J(), Y("div", Uy, [(J(!0), Y(q, null, ca(i.value, (t, i) => (J(), Y("div", {
15864
+ return (t, s) => e.steps.length ? (J(), Y("div", Jy, [(J(!0), Y(q, null, ca(i.value, (t, i) => (J(), Y("div", {
15827
15865
  key: i,
15828
15866
  class: H(["step-item", t.status])
15829
15867
  }, [
15830
- X("div", Wy, [
15868
+ X("div", Yy, [
15831
15869
  X("span", { class: H(["status-dot", t.status]) }, null, 2),
15832
- X("span", Gy, U(t.name), 1),
15870
+ X("span", Xy, U(t.name), 1),
15833
15871
  a(t.name) ? (J(), Y("span", {
15834
15872
  key: 0,
15835
15873
  class: "subagent-badge",
15836
15874
  title: e.messages.subagentBadgeTitle
15837
- }, [ps(iy, { icon: e.icons.subagent }, null, 8, ["icon"]), vs(" " + U(e.messages.subagentBadge), 1)], 8, Ky)) : Z("", !0),
15838
- t.count > 1 ? (J(), Y("span", qy, "×" + U(t.count), 1)) : Z("", !0),
15839
- X("span", { class: H(["step-status", t.status]) }, U(n(t.status)), 3),
15840
- t.durationMs != null && t.status !== "running" ? (J(), Y("span", Jy, U(o(t.durationMs)), 1)) : Z("", !0),
15875
+ }, [Z(sy, { icon: e.icons.subagent }, null, 8, ["icon"]), _s(" " + U(e.messages.subagentBadge), 1)], 8, Zy)) : Q("", !0),
15876
+ t.count > 1 ? (J(), Y("span", Qy, "×" + U(t.count), 1)) : Q("", !0),
15877
+ X("span", { class: H(["step-status", t.status]) }, [Z(ly, { text: n(t.status) }, null, 8, ["text"])], 2),
15878
+ t.durationMs != null && t.status !== "running" ? (J(), Y("span", $y, U(o(t.durationMs)), 1)) : Q("", !0),
15841
15879
  f(t.calls) ? (J(), Y("button", {
15842
15880
  key: 3,
15843
15881
  type: "button",
15844
15882
  class: H(["step-detail-toggle", { open: u.has(i) }]),
15845
15883
  onClick: (e) => d(i)
15846
- }, U(u.has(i) ? e.messages.collapse : e.messages.expand), 11, Yy)) : Z("", !0)
15884
+ }, U(u.has(i) ? e.messages.collapse : e.messages.expand), 11, eb)) : Q("", !0)
15847
15885
  ]),
15848
- u.has(i) && t.calls?.length ? (J(), Y("div", Xy, [(J(!0), Y(q, null, ca(t.calls, (n, r) => (J(), Y("div", {
15886
+ u.has(i) && t.calls?.length ? (J(), Y("div", tb, [(J(!0), Y(q, null, ca(t.calls, (n, r) => (J(), Y("div", {
15849
15887
  key: r,
15850
15888
  class: "step-detail-call"
15851
15889
  }, [
15852
- t.count > 1 ? (J(), Y("div", Zy, U(e.messages.nthCallPrefix) + U(r + 1) + U(e.messages.nthCallSuffix), 1)) : Z("", !0),
15853
- p(n.args).text ? (J(), Y("div", Qy, [X("div", $y, [vs(U(e.messages.argsLabel), 1), X("button", {
15890
+ t.count > 1 ? (J(), Y("div", nb, U(e.messages.nthCallPrefix) + U(r + 1) + U(e.messages.nthCallSuffix), 1)) : Q("", !0),
15891
+ p(n.args).text ? (J(), Y("div", rb, [X("div", ib, [_s(U(e.messages.argsLabel), 1), X("button", {
15854
15892
  type: "button",
15855
15893
  class: "step-detail-copy",
15856
15894
  onClick: (e) => h(p(n.args).text, p(n.args).truncated, n.args)
15857
- }, U(e.messages.copy), 9, eb)]), X("pre", tb, U(p(n.args).text), 1)])) : Z("", !0),
15858
- n.status !== "running" && m(n.result).text ? (J(), Y("div", nb, [X("div", rb, [vs(U(e.messages.resultLabel), 1), X("button", {
15895
+ }, U(e.messages.copy), 9, ab)]), X("pre", ob, U(p(n.args).text), 1)])) : Q("", !0),
15896
+ n.status !== "running" && m(n.result).text ? (J(), Y("div", sb, [X("div", cb, [_s(U(e.messages.resultLabel), 1), X("button", {
15859
15897
  type: "button",
15860
15898
  class: "step-detail-copy",
15861
15899
  onClick: (e) => h(m(n.result).text, m(n.result).truncated, n.result)
15862
- }, U(e.messages.copy), 9, ib)]), X("pre", { class: H(["step-detail-pre", { err: n.status === "error" }]) }, U(m(n.result).text), 3)])) : n.status !== "running" && !m(n.result).text ? (J(), Y("div", ab, U(e.messages.noResult), 1)) : Z("", !0)
15863
- ]))), 128))])) : Z("", !0),
15864
- t.subReason ? (J(), os(Hy, {
15900
+ }, U(e.messages.copy), 9, lb)]), X("pre", { class: H(["step-detail-pre", { err: n.status === "error" }]) }, U(m(n.result).text), 3)])) : n.status !== "running" && !m(n.result).text ? (J(), Y("div", ub, U(e.messages.noResult), 1)) : Q("", !0)
15901
+ ]))), 128))])) : Q("", !0),
15902
+ t.subReason ? (J(), os(qy, {
15865
15903
  key: 1,
15866
15904
  "sub-reason": t.subReason,
15867
15905
  "sub-reason-full": t.subReasonFull,
@@ -15872,22 +15910,22 @@ var ey = ["innerHTML"], ty = {
15872
15910
  "sub-reason-full",
15873
15911
  "status",
15874
15912
  "messages"
15875
- ])) : Z("", !0),
15876
- t.children && t.children.length ? (J(), Y("div", ob, [X("div", sb, [ps(iy, { icon: e.icons.subagentProgress }, null, 8, ["icon"]), vs(" " + U(e.messages.subagentProgress), 1)]), (J(!0), Y(q, null, ca(r(t.children), (e, t) => (J(), Y("div", {
15913
+ ])) : Q("", !0),
15914
+ t.children && t.children.length ? (J(), Y("div", db, [X("div", fb, [Z(sy, { icon: e.icons.subagentProgress }, null, 8, ["icon"]), _s(" " + U(e.messages.subagentProgress), 1)]), (J(!0), Y(q, null, ca(r(t.children), (e, t) => (J(), Y("div", {
15877
15915
  key: t,
15878
15916
  class: H(["step-child", e.status])
15879
15917
  }, [
15880
15918
  X("span", { class: H(["status-dot sm", e.status]) }, null, 2),
15881
- X("span", cb, U(e.name), 1),
15882
- e.count > 1 ? (J(), Y("span", lb, "×" + U(e.count), 1)) : Z("", !0),
15883
- e.status === "running" ? (J(), Y("span", ub, "…")) : Z("", !0)
15884
- ], 2))), 128))])) : Z("", !0)
15885
- ], 2))), 128))])) : Z("", !0);
15919
+ X("span", pb, U(e.name), 1),
15920
+ e.count > 1 ? (J(), Y("span", mb, "×" + U(e.count), 1)) : Q("", !0),
15921
+ e.status === "running" ? (J(), Y("span", hb, "…")) : Q("", !0)
15922
+ ], 2))), 128))])) : Q("", !0)
15923
+ ], 2))), 128))])) : Q("", !0);
15886
15924
  }
15887
- }), [["__scopeId", "data-v-998950a4"]]);
15925
+ }), [["__scopeId", "data-v-95a48c0c"]]);
15888
15926
  //#endregion
15889
15927
  //#region node_modules/marked/lib/marked.esm.js
15890
- function mb() {
15928
+ function yb() {
15891
15929
  return {
15892
15930
  async: !1,
15893
15931
  breaks: !1,
@@ -15901,35 +15939,35 @@ function mb() {
15901
15939
  walkTokens: null
15902
15940
  };
15903
15941
  }
15904
- var hb = mb();
15905
- function gb(e) {
15906
- hb = e;
15942
+ var bb = yb();
15943
+ function xb(e) {
15944
+ bb = e;
15907
15945
  }
15908
- var _b = { exec: () => null };
15909
- function vb(e) {
15946
+ var Sb = { exec: () => null };
15947
+ function Cb(e) {
15910
15948
  let t = [];
15911
15949
  return (n) => {
15912
15950
  let r = Math.max(0, Math.min(3, n - 1)), i = t[r];
15913
15951
  return i || (i = e(r), t[r] = i), i;
15914
15952
  };
15915
15953
  }
15916
- function yb(e, t = "") {
15954
+ function wb(e, t = "") {
15917
15955
  let n = typeof e == "string" ? e : e.source, r = {
15918
15956
  replace: (e, t) => {
15919
15957
  let i = typeof t == "string" ? t : t.source;
15920
- return i = i.replace(xb.caret, "$1"), n = n.replace(e, i), r;
15958
+ return i = i.replace(Eb.caret, "$1"), n = n.replace(e, i), r;
15921
15959
  },
15922
15960
  getRegex: () => new RegExp(n, t)
15923
15961
  };
15924
15962
  return r;
15925
15963
  }
15926
- var bb = ((e = "") => {
15964
+ var Tb = ((e = "") => {
15927
15965
  try {
15928
15966
  return !!RegExp("(?<=1)(?<!1)" + e);
15929
15967
  } catch {
15930
15968
  return !1;
15931
15969
  }
15932
- })(), xb = {
15970
+ })(), Eb = {
15933
15971
  codeRemoveIndent: /^(?: {1,4}| {0,3}\t)/gm,
15934
15972
  outputLinkReplace: /\\([\[\]])/g,
15935
15973
  indentCodeCompensation: /^(\s+)(?:```)/,
@@ -15980,121 +16018,121 @@ var bb = ((e = "") => {
15980
16018
  notSpaceStart: /^\S*/,
15981
16019
  endingNewline: /\n$/,
15982
16020
  listItemRegex: (e) => RegExp(`^( {0,3}${e})((?:[ ][^\\n]*)?(?:\\n|$))`),
15983
- nextBulletRegex: vb((e) => RegExp(`^ {0,${e}}(?:[*+-]|\\d{1,9}[.)])((?:[ ][^\\n]*)?(?:\\n|$))`)),
15984
- hrRegex: vb((e) => RegExp(`^ {0,${e}}((?:- *){3,}|(?:_ *){3,}|(?:\\* *){3,})(?:\\n+|$)`)),
15985
- fencesBeginRegex: vb((e) => RegExp(`^ {0,${e}}(?:\`\`\`|~~~)`)),
15986
- headingBeginRegex: vb((e) => RegExp(`^ {0,${e}}#`)),
15987
- htmlBeginRegex: vb((e) => RegExp(`^ {0,${e}}<(?:[a-z].*>|!--)`, "i")),
15988
- blockquoteBeginRegex: vb((e) => RegExp(`^ {0,${e}}>`))
15989
- }, Sb = /^(?:[ \t]*(?:\n|$))+/, Cb = /^((?: {4}| {0,3}\t)[^\n]+(?:\n(?:[ \t]*(?:\n|$))*)?)+/, wb = /^ {0,3}(`{3,}(?=[^`\n]*(?:\n|$))|~{3,})([^\n]*)(?:\n|$)(?:|([\s\S]*?)(?:\n|$))(?: {0,3}\1[~`]* *(?=\n|$)|$)/, Tb = /^ {0,3}((?:-[\t ]*){3,}|(?:_[ \t]*){3,}|(?:\*[ \t]*){3,})(?:\n+|$)/, Eb = /^ {0,3}(#{1,6})(?=\s|$)(.*)(?:\n+|$)/, Db = / {0,3}(?:[*+-]|\d{1,9}[.)])/, Ob = /^(?!bull |blockCode|fences|blockquote|heading|html|table)((?:.|\n(?!\s*?\n|bull |blockCode|fences|blockquote|heading|html|table))+?)\n {0,3}(=+|-+) *(?:\n+|$)/, kb = yb(Ob).replace(/bull/g, Db).replace(/blockCode/g, /(?: {4}| {0,3}\t)/).replace(/fences/g, / {0,3}(?:`{3,}|~{3,})/).replace(/blockquote/g, / {0,3}>/).replace(/heading/g, / {0,3}#{1,6}/).replace(/html/g, / {0,3}<[^\n>]+>\n/).replace(/\|table/g, "").getRegex(), Ab = yb(Ob).replace(/bull/g, Db).replace(/blockCode/g, /(?: {4}| {0,3}\t)/).replace(/fences/g, / {0,3}(?:`{3,}|~{3,})/).replace(/blockquote/g, / {0,3}>/).replace(/heading/g, / {0,3}#{1,6}/).replace(/html/g, / {0,3}<[^\n>]+>\n/).replace(/table/g, / {0,3}\|?(?:[:\- ]*\|)+[\:\- ]*\n/).getRegex(), jb = /^([^\n]+(?:\n(?!hr|heading|lheading|blockquote|fences|list|html|table| +\n)[^\n]+)*)/, Mb = /^[^\n]+/, Nb = /(?!\s*\])(?:\\[\s\S]|[^\[\]\\])+/, Pb = yb(/^ {0,3}\[(label)\]: *(?:\n[ \t]*)?([^<\s][^\s]*|<.*?>)(?:(?: +(?:\n[ \t]*)?| *\n[ \t]*)(title))? *(?:\n+|$)/).replace("label", Nb).replace("title", /(?:"(?:\\"?|[^"\\])*"|'[^'\n]*(?:\n[^'\n]+)*\n?'|\([^()]*\))/).getRegex(), Fb = yb(/^(bull)([ \t][^\n]*?)?(?:\n|$)/).replace(/bull/g, Db).getRegex(), Ib = "address|article|aside|base|basefont|blockquote|body|caption|center|col|colgroup|dd|details|dialog|dir|div|dl|dt|fieldset|figcaption|figure|footer|form|frame|frameset|h[1-6]|head|header|hr|html|iframe|legend|li|link|main|menu|menuitem|meta|nav|noframes|ol|optgroup|option|p|param|search|section|summary|table|tbody|td|tfoot|th|thead|title|tr|track|ul", Lb = /<!--(?:-?>|[\s\S]*?(?:-->|$))/, Rb = yb("^ {0,3}(?:<(script|pre|style|textarea)[\\s>][\\s\\S]*?(?:</\\1>[^\\n]*\\n+|$)|comment[^\\n]*(\\n+|$)|<\\?[\\s\\S]*?(?:\\?>[^\\n]*\\n+|$)|<![A-Z][\\s\\S]*?(?:>[^\\n]*\\n+|$)|<!\\[CDATA\\[[\\s\\S]*?(?:\\]\\]>[^\\n]*\\n+|$)|</?(tag)(?: +|\\n|/?>)[\\s\\S]*?(?:(?:\\n[ ]*)+\\n|$)|<(?!script|pre|style|textarea)([a-z][\\w-]*)(?:attribute)*? */?>(?=[ \\t]*(?:\\n|$))[\\s\\S]*?(?:(?:\\n[ ]*)+\\n|$)|</(?!script|pre|style|textarea)[a-z][\\w-]*\\s*>(?=[ \\t]*(?:\\n|$))[\\s\\S]*?(?:(?:\\n[ ]*)+\\n|$))", "i").replace("comment", Lb).replace("tag", Ib).replace("attribute", / +[a-zA-Z:_][\w.:-]*(?: *= *"[^"\n]*"| *= *'[^'\n]*'| *= *[^\s"'=<>`]+)?/).getRegex(), zb = (e) => yb(jb).replace("hr", Tb).replace("heading", " {0,3}#{1,6}(?:\\s|$)").replace("|lheading", "").replace("|table", "").replace("blockquote", " {0,3}>").replace("fences", " {0,3}(?:`{3,}(?=[^`\\n]*\\n)|~{3,})[^\\n]*\\n").replace("list", e).replace("html", "</?(?:tag)(?: +|\\n|/?>)|<(?:script|pre|style|textarea|!--)").replace("tag", Ib).getRegex(), Bb = zb(/ {0,3}(?:[*+-]|1[.)])[ \t]+[^ \t\n]/), Vb = zb(/ {0,3}(?:[*+-]|\d{1,9}[.)])[ \t]+[^ \t\n]/), Hb = {
15990
- blockquote: yb(/^( {0,3}> ?(paragraph|[^\n]*)(?:\n|$))+/).replace("paragraph", Vb).getRegex(),
15991
- code: Cb,
15992
- def: Pb,
15993
- fences: wb,
15994
- heading: Eb,
15995
- hr: Tb,
15996
- html: Rb,
15997
- lheading: kb,
15998
- list: Fb,
15999
- newline: Sb,
16000
- paragraph: Bb,
16001
- table: _b,
16002
- text: Mb
16003
- }, Ub = yb("^ *([^\\n ].*)\\n {0,3}((?:\\| *)?:?-+:? *(?:\\| *:?-+:? *)*(?:\\| *)?)(?:\\n((?:(?! *\\n|hr|heading|blockquote|code|fences|list|html).*(?:\\n|$))*)\\n*|$)").replace("hr", Tb).replace("heading", " {0,3}#{1,6}(?:\\s|$)").replace("blockquote", " {0,3}>").replace("code", "(?: {4}| {0,3} )[^\\n]").replace("fences", " {0,3}(?:`{3,}(?=[^`\\n]*\\n)|~{3,})[^\\n]*\\n").replace("list", " {0,3}(?:[*+-]|1[.)])[ \\t]").replace("html", "</?(?:tag)(?: +|\\n|/?>)|<(?:script|pre|style|textarea|!--)").replace("tag", Ib).getRegex(), Wb = {
16004
- ...Hb,
16005
- lheading: Ab,
16006
- table: Ub,
16007
- paragraph: yb(jb).replace("hr", Tb).replace("heading", " {0,3}#{1,6}(?:\\s|$)").replace("|lheading", "").replace("table", Ub).replace("blockquote", " {0,3}>").replace("fences", " {0,3}(?:`{3,}(?=[^`\\n]*\\n)|~{3,})[^\\n]*\\n").replace("list", " {0,3}(?:[*+-]|1[.)])[ \\t]+[^ \\t\\n]").replace("html", "</?(?:tag)(?: +|\\n|/?>)|<(?:script|pre|style|textarea|!--)").replace("tag", Ib).getRegex()
16008
- }, Gb = {
16009
- ...Hb,
16010
- html: yb("^ *(?:comment *(?:\\n|\\s*$)|<(tag)[\\s\\S]+?</\\1> *(?:\\n{2,}|\\s*$)|<tag(?:\"[^\"]*\"|'[^']*'|\\s[^'\"/>\\s]*)*?/?> *(?:\\n{2,}|\\s*$))").replace("comment", Lb).replace(/tag/g, "(?!(?:a|em|strong|small|s|cite|q|dfn|abbr|data|time|code|var|samp|kbd|sub|sup|i|b|u|mark|ruby|rt|rp|bdi|bdo|span|br|wbr|ins|del|img)\\b)\\w+(?!:|[^\\w\\s@]*@)\\b").getRegex(),
16021
+ nextBulletRegex: Cb((e) => RegExp(`^ {0,${e}}(?:[*+-]|\\d{1,9}[.)])((?:[ ][^\\n]*)?(?:\\n|$))`)),
16022
+ hrRegex: Cb((e) => RegExp(`^ {0,${e}}((?:- *){3,}|(?:_ *){3,}|(?:\\* *){3,})(?:\\n+|$)`)),
16023
+ fencesBeginRegex: Cb((e) => RegExp(`^ {0,${e}}(?:\`\`\`|~~~)`)),
16024
+ headingBeginRegex: Cb((e) => RegExp(`^ {0,${e}}#`)),
16025
+ htmlBeginRegex: Cb((e) => RegExp(`^ {0,${e}}<(?:[a-z].*>|!--)`, "i")),
16026
+ blockquoteBeginRegex: Cb((e) => RegExp(`^ {0,${e}}>`))
16027
+ }, Db = /^(?:[ \t]*(?:\n|$))+/, Ob = /^((?: {4}| {0,3}\t)[^\n]+(?:\n(?:[ \t]*(?:\n|$))*)?)+/, kb = /^ {0,3}(`{3,}(?=[^`\n]*(?:\n|$))|~{3,})([^\n]*)(?:\n|$)(?:|([\s\S]*?)(?:\n|$))(?: {0,3}\1[~`]* *(?=\n|$)|$)/, Ab = /^ {0,3}((?:-[\t ]*){3,}|(?:_[ \t]*){3,}|(?:\*[ \t]*){3,})(?:\n+|$)/, jb = /^ {0,3}(#{1,6})(?=\s|$)(.*)(?:\n+|$)/, Mb = / {0,3}(?:[*+-]|\d{1,9}[.)])/, Nb = /^(?!bull |blockCode|fences|blockquote|heading|html|table)((?:.|\n(?!\s*?\n|bull |blockCode|fences|blockquote|heading|html|table))+?)\n {0,3}(=+|-+) *(?:\n+|$)/, Pb = wb(Nb).replace(/bull/g, Mb).replace(/blockCode/g, /(?: {4}| {0,3}\t)/).replace(/fences/g, / {0,3}(?:`{3,}|~{3,})/).replace(/blockquote/g, / {0,3}>/).replace(/heading/g, / {0,3}#{1,6}/).replace(/html/g, / {0,3}<[^\n>]+>\n/).replace(/\|table/g, "").getRegex(), Fb = wb(Nb).replace(/bull/g, Mb).replace(/blockCode/g, /(?: {4}| {0,3}\t)/).replace(/fences/g, / {0,3}(?:`{3,}|~{3,})/).replace(/blockquote/g, / {0,3}>/).replace(/heading/g, / {0,3}#{1,6}/).replace(/html/g, / {0,3}<[^\n>]+>\n/).replace(/table/g, / {0,3}\|?(?:[:\- ]*\|)+[\:\- ]*\n/).getRegex(), Ib = /^([^\n]+(?:\n(?!hr|heading|lheading|blockquote|fences|list|html|table| +\n)[^\n]+)*)/, Lb = /^[^\n]+/, Rb = /(?!\s*\])(?:\\[\s\S]|[^\[\]\\])+/, zb = wb(/^ {0,3}\[(label)\]: *(?:\n[ \t]*)?([^<\s][^\s]*|<.*?>)(?:(?: +(?:\n[ \t]*)?| *\n[ \t]*)(title))? *(?:\n+|$)/).replace("label", Rb).replace("title", /(?:"(?:\\"?|[^"\\])*"|'[^'\n]*(?:\n[^'\n]+)*\n?'|\([^()]*\))/).getRegex(), Bb = wb(/^(bull)([ \t][^\n]*?)?(?:\n|$)/).replace(/bull/g, Mb).getRegex(), Vb = "address|article|aside|base|basefont|blockquote|body|caption|center|col|colgroup|dd|details|dialog|dir|div|dl|dt|fieldset|figcaption|figure|footer|form|frame|frameset|h[1-6]|head|header|hr|html|iframe|legend|li|link|main|menu|menuitem|meta|nav|noframes|ol|optgroup|option|p|param|search|section|summary|table|tbody|td|tfoot|th|thead|title|tr|track|ul", Hb = /<!--(?:-?>|[\s\S]*?(?:-->|$))/, Ub = wb("^ {0,3}(?:<(script|pre|style|textarea)[\\s>][\\s\\S]*?(?:</\\1>[^\\n]*\\n+|$)|comment[^\\n]*(\\n+|$)|<\\?[\\s\\S]*?(?:\\?>[^\\n]*\\n+|$)|<![A-Z][\\s\\S]*?(?:>[^\\n]*\\n+|$)|<!\\[CDATA\\[[\\s\\S]*?(?:\\]\\]>[^\\n]*\\n+|$)|</?(tag)(?: +|\\n|/?>)[\\s\\S]*?(?:(?:\\n[ ]*)+\\n|$)|<(?!script|pre|style|textarea)([a-z][\\w-]*)(?:attribute)*? */?>(?=[ \\t]*(?:\\n|$))[\\s\\S]*?(?:(?:\\n[ ]*)+\\n|$)|</(?!script|pre|style|textarea)[a-z][\\w-]*\\s*>(?=[ \\t]*(?:\\n|$))[\\s\\S]*?(?:(?:\\n[ ]*)+\\n|$))", "i").replace("comment", Hb).replace("tag", Vb).replace("attribute", / +[a-zA-Z:_][\w.:-]*(?: *= *"[^"\n]*"| *= *'[^'\n]*'| *= *[^\s"'=<>`]+)?/).getRegex(), Wb = (e) => wb(Ib).replace("hr", Ab).replace("heading", " {0,3}#{1,6}(?:\\s|$)").replace("|lheading", "").replace("|table", "").replace("blockquote", " {0,3}>").replace("fences", " {0,3}(?:`{3,}(?=[^`\\n]*\\n)|~{3,})[^\\n]*\\n").replace("list", e).replace("html", "</?(?:tag)(?: +|\\n|/?>)|<(?:script|pre|style|textarea|!--)").replace("tag", Vb).getRegex(), Gb = Wb(/ {0,3}(?:[*+-]|1[.)])[ \t]+[^ \t\n]/), Kb = Wb(/ {0,3}(?:[*+-]|\d{1,9}[.)])[ \t]+[^ \t\n]/), qb = {
16028
+ blockquote: wb(/^( {0,3}> ?(paragraph|[^\n]*)(?:\n|$))+/).replace("paragraph", Kb).getRegex(),
16029
+ code: Ob,
16030
+ def: zb,
16031
+ fences: kb,
16032
+ heading: jb,
16033
+ hr: Ab,
16034
+ html: Ub,
16035
+ lheading: Pb,
16036
+ list: Bb,
16037
+ newline: Db,
16038
+ paragraph: Gb,
16039
+ table: Sb,
16040
+ text: Lb
16041
+ }, Jb = wb("^ *([^\\n ].*)\\n {0,3}((?:\\| *)?:?-+:? *(?:\\| *:?-+:? *)*(?:\\| *)?)(?:\\n((?:(?! *\\n|hr|heading|blockquote|code|fences|list|html).*(?:\\n|$))*)\\n*|$)").replace("hr", Ab).replace("heading", " {0,3}#{1,6}(?:\\s|$)").replace("blockquote", " {0,3}>").replace("code", "(?: {4}| {0,3} )[^\\n]").replace("fences", " {0,3}(?:`{3,}(?=[^`\\n]*\\n)|~{3,})[^\\n]*\\n").replace("list", " {0,3}(?:[*+-]|1[.)])[ \\t]").replace("html", "</?(?:tag)(?: +|\\n|/?>)|<(?:script|pre|style|textarea|!--)").replace("tag", Vb).getRegex(), Yb = {
16042
+ ...qb,
16043
+ lheading: Fb,
16044
+ table: Jb,
16045
+ paragraph: wb(Ib).replace("hr", Ab).replace("heading", " {0,3}#{1,6}(?:\\s|$)").replace("|lheading", "").replace("table", Jb).replace("blockquote", " {0,3}>").replace("fences", " {0,3}(?:`{3,}(?=[^`\\n]*\\n)|~{3,})[^\\n]*\\n").replace("list", " {0,3}(?:[*+-]|1[.)])[ \\t]+[^ \\t\\n]").replace("html", "</?(?:tag)(?: +|\\n|/?>)|<(?:script|pre|style|textarea|!--)").replace("tag", Vb).getRegex()
16046
+ }, Xb = {
16047
+ ...qb,
16048
+ html: wb("^ *(?:comment *(?:\\n|\\s*$)|<(tag)[\\s\\S]+?</\\1> *(?:\\n{2,}|\\s*$)|<tag(?:\"[^\"]*\"|'[^']*'|\\s[^'\"/>\\s]*)*?/?> *(?:\\n{2,}|\\s*$))").replace("comment", Hb).replace(/tag/g, "(?!(?:a|em|strong|small|s|cite|q|dfn|abbr|data|time|code|var|samp|kbd|sub|sup|i|b|u|mark|ruby|rt|rp|bdi|bdo|span|br|wbr|ins|del|img)\\b)\\w+(?!:|[^\\w\\s@]*@)\\b").getRegex(),
16011
16049
  def: /^ *\[([^\]]+)\]: *<?([^\s>]+)>?(?: +(["(][^\n]+[")]))? *(?:\n+|$)/,
16012
16050
  heading: /^(#{1,6})(.*)(?:\n+|$)/,
16013
- fences: _b,
16051
+ fences: Sb,
16014
16052
  lheading: /^(.+?)\n {0,3}(=+|-+) *(?:\n+|$)/,
16015
- paragraph: yb(jb).replace("hr", Tb).replace("heading", " *#{1,6} *[^\n]").replace("lheading", kb).replace("|table", "").replace("blockquote", " {0,3}>").replace("|fences", "").replace("|list", "").replace("|html", "").replace("|tag", "").getRegex()
16016
- }, Kb = /^\\([!"#$%&'()*+,\-./:;<=>?@\[\]\\^_`{|}~])/, qb = /^(`+)([^`]|[^`][\s\S]*?[^`])\1(?!`)/, Jb = /^( {2,}|\\)\n(?!\s*$)/, Yb = /^(`+|[^`])(?:(?= {2,}\n)|[\s\S]*?(?:(?=[\\<!\[`*_]|\b_|$)|[^ ](?= {2,}\n)))/, Xb = /[\p{P}\p{S}]/u, Zb = /[\s\p{P}\p{S}]/u, Qb = /[^\s\p{P}\p{S}]/u, $b = yb(/^((?![*_])punctSpace)/, "u").replace(/punctSpace/g, Zb).getRegex(), ex = /(?!~)[\p{P}\p{S}]/u, tx = /(?!~)[\s\p{P}\p{S}]/u, nx = /(?:[^\s\p{P}\p{S}]|~)/u, rx = yb(/link|precode-code|html/, "g").replace("link", /\[(?:[^\[\]`]|(?<a>`+)[^`]+\k<a>(?!`))*?\]\((?:\\[\s\S]|[^\\\(\)]|\((?:\\[\s\S]|[^\\\(\)])*\))*\)/).replace("precode-", bb ? "(?<!`)()" : "(^^|[^`])").replace("code", /(?<b>`+)[^`]+\k<b>(?!`)/).replace("html", /<(?! )[^<>]*?>/).getRegex(), ix = /^(?:\*+(?:((?!\*)punct)|([^\s*]))?)|^_+(?:((?!_)punct)|([^\s_]))?/, ax = yb(ix, "u").replace(/punct/g, Xb).getRegex(), ox = yb(ix, "u").replace(/punct/g, ex).getRegex(), sx = "^[^_*]*?__[^_*]*?\\*[^_*]*?(?=__)|[^*]+(?=[^*])|(?!\\*)punct(\\*+)(?=[\\s]|$)|notPunctSpace(\\*+)(?!\\*)(?=punctSpace|$)|(?!\\*)punctSpace(\\*+)(?=notPunctSpace)|[\\s](\\*+)(?!\\*)(?=punct)|(?!\\*)punct(\\*+)(?!\\*)(?=punct)|notPunctSpace(\\*+)(?=notPunctSpace)", cx = yb(sx, "gu").replace(/notPunctSpace/g, Qb).replace(/punctSpace/g, Zb).replace(/punct/g, Xb).getRegex(), lx = yb(sx, "gu").replace(/notPunctSpace/g, nx).replace(/punctSpace/g, tx).replace(/punct/g, ex).getRegex(), ux = yb("^[^_*]*?\\*\\*[^_*]*?_[^_*]*?(?=\\*\\*)|[^_]+(?=[^_])|(?!_)punct(_+)(?=[\\s]|$)|notPunctSpace(_+)(?!_)(?=punctSpace|$)|(?!_)punctSpace(_+)(?=notPunctSpace)|[\\s](_+)(?!_)(?=punct)|(?!_)punct(_+)(?!_)(?=punct)", "gu").replace(/notPunctSpace/g, Qb).replace(/punctSpace/g, Zb).replace(/punct/g, Xb).getRegex(), dx = yb(/^~~?(?:((?!~)punct)|[^\s~])/, "u").replace(/punct/g, Xb).getRegex(), fx = yb("^[^~]+(?=[^~])|(?!~)punct(~~?)(?=[\\s]|$)|notPunctSpace(~~?)(?!~)(?=punctSpace|$)|(?!~)punctSpace(~~?)(?=notPunctSpace)|[\\s](~~?)(?!~)(?=punct)|(?!~)punct(~~?)(?!~)(?=punct)|notPunctSpace(~~?)(?=notPunctSpace)", "gu").replace(/notPunctSpace/g, Qb).replace(/punctSpace/g, Zb).replace(/punct/g, Xb).getRegex(), px = yb(/\\(punct)/, "gu").replace(/punct/g, Xb).getRegex(), mx = yb(/^<(scheme:[^\s\x00-\x1f<>]*|email)>/).replace("scheme", /[a-zA-Z][a-zA-Z0-9+.-]{1,31}/).replace("email", /[a-zA-Z0-9.!#$%&'*+/=?^_`{|}~-]+(@)[a-zA-Z0-9](?:[a-zA-Z0-9-]{0,61}[a-zA-Z0-9])?(?:\.[a-zA-Z0-9](?:[a-zA-Z0-9-]{0,61}[a-zA-Z0-9])?)+(?![-_])/).getRegex(), hx = yb(Lb).replace("(?:-->|$)", "-->").getRegex(), gx = yb("^comment|^</[a-zA-Z][\\w:-]*\\s*>|^<[a-zA-Z][\\w-]*(?:attribute)*?\\s*/?>|^<\\?[\\s\\S]*?\\?>|^<![a-zA-Z]+\\s[\\s\\S]*?>|^<!\\[CDATA\\[[\\s\\S]*?\\]\\]>").replace("comment", hx).replace("attribute", /\s+[a-zA-Z:_][\w.:-]*(?:\s*=\s*"[^"]*"|\s*=\s*'[^']*'|\s*=\s*[^\s"'=<>`]+)?/).getRegex(), _x = /(?:\[(?:\\[\s\S]|[^\[\]\\])*\]|\\[\s\S]|`+(?!`)[^`]*?`+(?!`)|``+(?=\])|[^\[\]\\`])*?/, vx = yb(/^!?\[(label)\]\(\s*(href)(?:(?:[ \t]+(?:\n[ \t]*)?|\n[ \t]*)(title))?\s*\)/).replace("label", _x).replace("href", /<(?:\\.|[^\n<>\\])+>|[^ \t\n\x00-\x1f]+|(?=\))/).replace("title", /"(?:\\"?|[^"\\])*"|'(?:\\'?|[^'\\])*'|\((?:\\\)?|[^)\\])*\)/).getRegex(), yx = yb(/^!?\[(label)\]\[(ref)\]/).replace("label", _x).replace("ref", Nb).getRegex(), bx = yb(/^!?\[(ref)\](?:\[\])?/).replace("ref", Nb).getRegex(), xx = yb("reflink|nolink(?!\\()", "g").replace("reflink", yx).replace("nolink", bx).getRegex(), Sx = /[hH][tT][tT][pP][sS]?|[fF][tT][pP]/, Cx = {
16017
- _backpedal: _b,
16018
- anyPunctuation: px,
16019
- autolink: mx,
16020
- blockSkip: rx,
16021
- br: Jb,
16022
- code: qb,
16023
- del: _b,
16024
- delLDelim: _b,
16025
- delRDelim: _b,
16026
- emStrongLDelim: ax,
16027
- emStrongRDelimAst: cx,
16028
- emStrongRDelimUnd: ux,
16029
- escape: Kb,
16030
- link: vx,
16031
- nolink: bx,
16032
- punctuation: $b,
16033
- reflink: yx,
16034
- reflinkSearch: xx,
16035
- tag: gx,
16036
- text: Yb,
16037
- url: _b
16038
- }, wx = {
16039
- ...Cx,
16040
- link: yb(/^!?\[(label)\]\((.*?)\)/).replace("label", _x).getRegex(),
16041
- reflink: yb(/^!?\[(label)\]\s*\[([^\]]*)\]/).replace("label", _x).getRegex()
16042
- }, Tx = {
16043
- ...Cx,
16044
- emStrongRDelimAst: lx,
16045
- emStrongLDelim: ox,
16046
- delLDelim: dx,
16047
- delRDelim: fx,
16048
- url: yb(/^((?:protocol):\/\/|www\.)(?:[a-zA-Z0-9\-]+\.?)+[^\s<]*|^email/).replace("protocol", Sx).replace("email", /[A-Za-z0-9._+-]+(@)[a-zA-Z0-9-_]+(?:\.[a-zA-Z0-9-_]*[a-zA-Z0-9])+(?![-_])/).getRegex(),
16053
+ paragraph: wb(Ib).replace("hr", Ab).replace("heading", " *#{1,6} *[^\n]").replace("lheading", Pb).replace("|table", "").replace("blockquote", " {0,3}>").replace("|fences", "").replace("|list", "").replace("|html", "").replace("|tag", "").getRegex()
16054
+ }, Zb = /^\\([!"#$%&'()*+,\-./:;<=>?@\[\]\\^_`{|}~])/, Qb = /^(`+)([^`]|[^`][\s\S]*?[^`])\1(?!`)/, $b = /^( {2,}|\\)\n(?!\s*$)/, ex = /^(`+|[^`])(?:(?= {2,}\n)|[\s\S]*?(?:(?=[\\<!\[`*_]|\b_|$)|[^ ](?= {2,}\n)))/, tx = /[\p{P}\p{S}]/u, nx = /[\s\p{P}\p{S}]/u, rx = /[^\s\p{P}\p{S}]/u, ix = wb(/^((?![*_])punctSpace)/, "u").replace(/punctSpace/g, nx).getRegex(), ax = /(?!~)[\p{P}\p{S}]/u, ox = /(?!~)[\s\p{P}\p{S}]/u, sx = /(?:[^\s\p{P}\p{S}]|~)/u, cx = wb(/link|precode-code|html/, "g").replace("link", /\[(?:[^\[\]`]|(?<a>`+)[^`]+\k<a>(?!`))*?\]\((?:\\[\s\S]|[^\\\(\)]|\((?:\\[\s\S]|[^\\\(\)])*\))*\)/).replace("precode-", Tb ? "(?<!`)()" : "(^^|[^`])").replace("code", /(?<b>`+)[^`]+\k<b>(?!`)/).replace("html", /<(?! )[^<>]*?>/).getRegex(), lx = /^(?:\*+(?:((?!\*)punct)|([^\s*]))?)|^_+(?:((?!_)punct)|([^\s_]))?/, ux = wb(lx, "u").replace(/punct/g, tx).getRegex(), dx = wb(lx, "u").replace(/punct/g, ax).getRegex(), fx = "^[^_*]*?__[^_*]*?\\*[^_*]*?(?=__)|[^*]+(?=[^*])|(?!\\*)punct(\\*+)(?=[\\s]|$)|notPunctSpace(\\*+)(?!\\*)(?=punctSpace|$)|(?!\\*)punctSpace(\\*+)(?=notPunctSpace)|[\\s](\\*+)(?!\\*)(?=punct)|(?!\\*)punct(\\*+)(?!\\*)(?=punct)|notPunctSpace(\\*+)(?=notPunctSpace)", px = wb(fx, "gu").replace(/notPunctSpace/g, rx).replace(/punctSpace/g, nx).replace(/punct/g, tx).getRegex(), mx = wb(fx, "gu").replace(/notPunctSpace/g, sx).replace(/punctSpace/g, ox).replace(/punct/g, ax).getRegex(), hx = wb("^[^_*]*?\\*\\*[^_*]*?_[^_*]*?(?=\\*\\*)|[^_]+(?=[^_])|(?!_)punct(_+)(?=[\\s]|$)|notPunctSpace(_+)(?!_)(?=punctSpace|$)|(?!_)punctSpace(_+)(?=notPunctSpace)|[\\s](_+)(?!_)(?=punct)|(?!_)punct(_+)(?!_)(?=punct)", "gu").replace(/notPunctSpace/g, rx).replace(/punctSpace/g, nx).replace(/punct/g, tx).getRegex(), gx = wb(/^~~?(?:((?!~)punct)|[^\s~])/, "u").replace(/punct/g, tx).getRegex(), _x = wb("^[^~]+(?=[^~])|(?!~)punct(~~?)(?=[\\s]|$)|notPunctSpace(~~?)(?!~)(?=punctSpace|$)|(?!~)punctSpace(~~?)(?=notPunctSpace)|[\\s](~~?)(?!~)(?=punct)|(?!~)punct(~~?)(?!~)(?=punct)|notPunctSpace(~~?)(?=notPunctSpace)", "gu").replace(/notPunctSpace/g, rx).replace(/punctSpace/g, nx).replace(/punct/g, tx).getRegex(), vx = wb(/\\(punct)/, "gu").replace(/punct/g, tx).getRegex(), yx = wb(/^<(scheme:[^\s\x00-\x1f<>]*|email)>/).replace("scheme", /[a-zA-Z][a-zA-Z0-9+.-]{1,31}/).replace("email", /[a-zA-Z0-9.!#$%&'*+/=?^_`{|}~-]+(@)[a-zA-Z0-9](?:[a-zA-Z0-9-]{0,61}[a-zA-Z0-9])?(?:\.[a-zA-Z0-9](?:[a-zA-Z0-9-]{0,61}[a-zA-Z0-9])?)+(?![-_])/).getRegex(), bx = wb(Hb).replace("(?:-->|$)", "-->").getRegex(), xx = wb("^comment|^</[a-zA-Z][\\w:-]*\\s*>|^<[a-zA-Z][\\w-]*(?:attribute)*?\\s*/?>|^<\\?[\\s\\S]*?\\?>|^<![a-zA-Z]+\\s[\\s\\S]*?>|^<!\\[CDATA\\[[\\s\\S]*?\\]\\]>").replace("comment", bx).replace("attribute", /\s+[a-zA-Z:_][\w.:-]*(?:\s*=\s*"[^"]*"|\s*=\s*'[^']*'|\s*=\s*[^\s"'=<>`]+)?/).getRegex(), Sx = /(?:\[(?:\\[\s\S]|[^\[\]\\])*\]|\\[\s\S]|`+(?!`)[^`]*?`+(?!`)|``+(?=\])|[^\[\]\\`])*?/, Cx = wb(/^!?\[(label)\]\(\s*(href)(?:(?:[ \t]+(?:\n[ \t]*)?|\n[ \t]*)(title))?\s*\)/).replace("label", Sx).replace("href", /<(?:\\.|[^\n<>\\])+>|[^ \t\n\x00-\x1f]+|(?=\))/).replace("title", /"(?:\\"?|[^"\\])*"|'(?:\\'?|[^'\\])*'|\((?:\\\)?|[^)\\])*\)/).getRegex(), wx = wb(/^!?\[(label)\]\[(ref)\]/).replace("label", Sx).replace("ref", Rb).getRegex(), Tx = wb(/^!?\[(ref)\](?:\[\])?/).replace("ref", Rb).getRegex(), Ex = wb("reflink|nolink(?!\\()", "g").replace("reflink", wx).replace("nolink", Tx).getRegex(), Dx = /[hH][tT][tT][pP][sS]?|[fF][tT][pP]/, Ox = {
16055
+ _backpedal: Sb,
16056
+ anyPunctuation: vx,
16057
+ autolink: yx,
16058
+ blockSkip: cx,
16059
+ br: $b,
16060
+ code: Qb,
16061
+ del: Sb,
16062
+ delLDelim: Sb,
16063
+ delRDelim: Sb,
16064
+ emStrongLDelim: ux,
16065
+ emStrongRDelimAst: px,
16066
+ emStrongRDelimUnd: hx,
16067
+ escape: Zb,
16068
+ link: Cx,
16069
+ nolink: Tx,
16070
+ punctuation: ix,
16071
+ reflink: wx,
16072
+ reflinkSearch: Ex,
16073
+ tag: xx,
16074
+ text: ex,
16075
+ url: Sb
16076
+ }, kx = {
16077
+ ...Ox,
16078
+ link: wb(/^!?\[(label)\]\((.*?)\)/).replace("label", Sx).getRegex(),
16079
+ reflink: wb(/^!?\[(label)\]\s*\[([^\]]*)\]/).replace("label", Sx).getRegex()
16080
+ }, Ax = {
16081
+ ...Ox,
16082
+ emStrongRDelimAst: mx,
16083
+ emStrongLDelim: dx,
16084
+ delLDelim: gx,
16085
+ delRDelim: _x,
16086
+ url: wb(/^((?:protocol):\/\/|www\.)(?:[a-zA-Z0-9\-]+\.?)+[^\s<]*|^email/).replace("protocol", Dx).replace("email", /[A-Za-z0-9._+-]+(@)[a-zA-Z0-9-_]+(?:\.[a-zA-Z0-9-_]*[a-zA-Z0-9])+(?![-_])/).getRegex(),
16049
16087
  _backpedal: /(?:[^?!.,:;*_'"~()&]+|\([^)]*\)|&(?![a-zA-Z0-9]+;$)|[?!.,:;*_'"~)]+(?!$))+/,
16050
16088
  del: /^(~~?)(?=[^\s~])((?:\\[\s\S]|[^\\])*?(?:\\[\s\S]|[^\s~\\]))\1(?=[^~]|$)/,
16051
- text: yb(/^([`~]+|[^`~])(?:(?= {2,}\n)|(?=[a-zA-Z0-9.!#$%&'*+\/=?_`{\|}~-]+@)|[\s\S]*?(?:(?=[\\<!\[`*~_]|\b_|protocol:\/\/|www\.|$)|[^ ](?= {2,}\n)|[^a-zA-Z0-9.!#$%&'*+\/=?_`{\|}~-](?=[a-zA-Z0-9.!#$%&'*+\/=?_`{\|}~-]+@)))/).replace("protocol", Sx).getRegex()
16052
- }, Ex = {
16053
- ...Tx,
16054
- br: yb(Jb).replace("{2,}", "*").getRegex(),
16055
- text: yb(Tx.text).replace("\\b_", "\\b_| {2,}\\n").replace(/\{2,\}/g, "*").getRegex()
16056
- }, Dx = {
16057
- normal: Hb,
16058
- gfm: Wb,
16059
- pedantic: Gb
16060
- }, Ox = {
16061
- normal: Cx,
16062
- gfm: Tx,
16063
- breaks: Ex,
16064
- pedantic: wx
16065
- }, kx = {
16089
+ text: wb(/^([`~]+|[^`~])(?:(?= {2,}\n)|(?=[a-zA-Z0-9.!#$%&'*+\/=?_`{\|}~-]+@)|[\s\S]*?(?:(?=[\\<!\[`*~_]|\b_|protocol:\/\/|www\.|$)|[^ ](?= {2,}\n)|[^a-zA-Z0-9.!#$%&'*+\/=?_`{\|}~-](?=[a-zA-Z0-9.!#$%&'*+\/=?_`{\|}~-]+@)))/).replace("protocol", Dx).getRegex()
16090
+ }, jx = {
16091
+ ...Ax,
16092
+ br: wb($b).replace("{2,}", "*").getRegex(),
16093
+ text: wb(Ax.text).replace("\\b_", "\\b_| {2,}\\n").replace(/\{2,\}/g, "*").getRegex()
16094
+ }, Mx = {
16095
+ normal: qb,
16096
+ gfm: Yb,
16097
+ pedantic: Xb
16098
+ }, Nx = {
16099
+ normal: Ox,
16100
+ gfm: Ax,
16101
+ breaks: jx,
16102
+ pedantic: kx
16103
+ }, Px = {
16066
16104
  "&": "&amp;",
16067
16105
  "<": "&lt;",
16068
16106
  ">": "&gt;",
16069
16107
  "\"": "&quot;",
16070
16108
  "'": "&#39;"
16071
- }, Ax = (e) => kx[e];
16072
- function jx(e, t) {
16109
+ }, Fx = (e) => Px[e];
16110
+ function Ix(e, t) {
16073
16111
  if (t) {
16074
- if (xb.escapeTest.test(e)) return e.replace(xb.escapeReplace, Ax);
16075
- } else if (xb.escapeTestNoEncode.test(e)) return e.replace(xb.escapeReplaceNoEncode, Ax);
16112
+ if (Eb.escapeTest.test(e)) return e.replace(Eb.escapeReplace, Fx);
16113
+ } else if (Eb.escapeTestNoEncode.test(e)) return e.replace(Eb.escapeReplaceNoEncode, Fx);
16076
16114
  return e;
16077
16115
  }
16078
- function Mx(e) {
16116
+ function Lx(e) {
16079
16117
  try {
16080
- e = encodeURI(e).replace(xb.percentDecode, "%");
16118
+ e = encodeURI(e).replace(Eb.percentDecode, "%");
16081
16119
  } catch {
16082
16120
  return null;
16083
16121
  }
16084
16122
  return e;
16085
16123
  }
16086
- function Nx(e, t) {
16087
- let n = e.replace(xb.findPipe, (e, t, n) => {
16124
+ function Rx(e, t) {
16125
+ let n = e.replace(Eb.findPipe, (e, t, n) => {
16088
16126
  let r = !1, i = t;
16089
16127
  for (; --i >= 0 && n[i] === "\\";) r = !r;
16090
16128
  return r ? "|" : " |";
16091
- }).split(xb.splitPipe), r = 0;
16129
+ }).split(Eb.splitPipe), r = 0;
16092
16130
  if (n[0].trim() || n.shift(), n.length > 0 && !n.at(-1)?.trim() && n.pop(), t) if (n.length > t) n.splice(t);
16093
16131
  else for (; n.length < t;) n.push("");
16094
- for (; r < n.length; r++) n[r] = n[r].trim().replace(xb.slashPipe, "|");
16132
+ for (; r < n.length; r++) n[r] = n[r].trim().replace(Eb.slashPipe, "|");
16095
16133
  return n;
16096
16134
  }
16097
- function Px(e, t, n) {
16135
+ function zx(e, t, n) {
16098
16136
  let r = e.length;
16099
16137
  if (r === 0) return "";
16100
16138
  let i = 0;
@@ -16106,12 +16144,12 @@ function Px(e, t, n) {
16106
16144
  }
16107
16145
  return e.slice(0, r - i);
16108
16146
  }
16109
- function Fx(e) {
16147
+ function Bx(e) {
16110
16148
  let t = e.split("\n"), n = t.length - 1;
16111
- for (; n >= 0 && xb.blankLine.test(t[n]);) n--;
16149
+ for (; n >= 0 && Eb.blankLine.test(t[n]);) n--;
16112
16150
  return t.length - n <= 2 ? e : t.slice(0, n + 1).join("\n");
16113
16151
  }
16114
- function Ix(e, t) {
16152
+ function Vx(e, t) {
16115
16153
  if (e.indexOf(t[1]) === -1) return -1;
16116
16154
  let n = 0;
16117
16155
  for (let r = 0; r < e.length; r++) if (e[r] === "\\") r++;
@@ -16119,7 +16157,7 @@ function Ix(e, t) {
16119
16157
  else if (e[r] === t[1] && (n--, n < 0)) return r;
16120
16158
  return n > 0 ? -2 : -1;
16121
16159
  }
16122
- function Lx(e, t = 0) {
16160
+ function Hx(e, t = 0) {
16123
16161
  let n = t, r = "";
16124
16162
  for (let t of e) if (t === " ") {
16125
16163
  let e = 4 - n % 4;
@@ -16127,7 +16165,7 @@ function Lx(e, t = 0) {
16127
16165
  } else r += t, n++;
16128
16166
  return r;
16129
16167
  }
16130
- function Rx(e, t, n, r, i) {
16168
+ function Ux(e, t, n, r, i) {
16131
16169
  let a = t.href, o = t.title || null, s = e[1].replace(i.other.outputLinkReplace, "$1");
16132
16170
  r.state.inLink = !0;
16133
16171
  let c = {
@@ -16140,7 +16178,7 @@ function Rx(e, t, n, r, i) {
16140
16178
  };
16141
16179
  return r.state.inLink = !1, c;
16142
16180
  }
16143
- function zx(e, t, n) {
16181
+ function Wx(e, t, n) {
16144
16182
  let r = e.match(n.other.indentCodeCompensation);
16145
16183
  if (r === null) return t;
16146
16184
  let i = r[1];
@@ -16151,12 +16189,12 @@ function zx(e, t, n) {
16151
16189
  return r.length >= i.length ? e.slice(i.length) : e;
16152
16190
  }).join("\n");
16153
16191
  }
16154
- var Bx = class {
16192
+ var Gx = class {
16155
16193
  options;
16156
16194
  rules;
16157
16195
  lexer;
16158
16196
  constructor(e) {
16159
- this.options = e || hb;
16197
+ this.options = e || bb;
16160
16198
  }
16161
16199
  space(e) {
16162
16200
  let t = this.rules.block.newline.exec(e);
@@ -16168,7 +16206,7 @@ var Bx = class {
16168
16206
  code(e) {
16169
16207
  let t = this.rules.block.code.exec(e);
16170
16208
  if (t) {
16171
- let e = this.options.pedantic ? t[0] : Fx(t[0]);
16209
+ let e = this.options.pedantic ? t[0] : Bx(t[0]);
16172
16210
  return {
16173
16211
  type: "code",
16174
16212
  raw: e,
@@ -16180,7 +16218,7 @@ var Bx = class {
16180
16218
  fences(e) {
16181
16219
  let t = this.rules.block.fences.exec(e);
16182
16220
  if (t) {
16183
- let e = t[0], n = zx(e, t[3] || "", this.rules);
16221
+ let e = t[0], n = Wx(e, t[3] || "", this.rules);
16184
16222
  return {
16185
16223
  type: "code",
16186
16224
  raw: e,
@@ -16194,12 +16232,12 @@ var Bx = class {
16194
16232
  if (t) {
16195
16233
  let e = t[2].trim();
16196
16234
  if (this.rules.other.endingHash.test(e)) {
16197
- let t = Px(e, "#");
16235
+ let t = zx(e, "#");
16198
16236
  (this.options.pedantic || !t || this.rules.other.endingSpaceChar.test(t)) && (e = t.trim());
16199
16237
  }
16200
16238
  return {
16201
16239
  type: "heading",
16202
- raw: Px(t[0], "\n"),
16240
+ raw: zx(t[0], "\n"),
16203
16241
  depth: t[1].length,
16204
16242
  text: e,
16205
16243
  tokens: this.lexer.inline(e)
@@ -16210,13 +16248,13 @@ var Bx = class {
16210
16248
  let t = this.rules.block.hr.exec(e);
16211
16249
  if (t) return {
16212
16250
  type: "hr",
16213
- raw: Px(t[0], "\n")
16251
+ raw: zx(t[0], "\n")
16214
16252
  };
16215
16253
  }
16216
16254
  blockquote(e) {
16217
16255
  let t = this.rules.block.blockquote.exec(e);
16218
16256
  if (t) {
16219
- let e = Px(t[0], "\n").split("\n"), n = "", r = "", i = [];
16257
+ let e = zx(t[0], "\n").split("\n"), n = "", r = "", i = [];
16220
16258
  for (; e.length > 0;) {
16221
16259
  let t = !1, a = [], o;
16222
16260
  for (o = 0; o < e.length; o++) if (this.rules.other.blockquoteStart.test(e[o])) a.push(e[o]), t = !0;
@@ -16266,7 +16304,7 @@ ${c}` : c;
16266
16304
  let n = !1, r = "", s = "";
16267
16305
  if (!(t = a.exec(e)) || this.rules.block.hr.test(e)) break;
16268
16306
  r = t[0], e = e.substring(r.length);
16269
- let c = Lx(t[2].split("\n", 1)[0], t[1].length), l = e.split("\n", 1)[0], u = !c.trim(), d = 0;
16307
+ let c = Hx(t[2].split("\n", 1)[0], t[1].length), l = e.split("\n", 1)[0], u = !c.trim(), d = 0;
16270
16308
  if (this.options.pedantic ? (d = 2, s = c.trimStart()) : u ? d = t[1].length + 1 : (d = c.search(this.rules.other.nonSpaceChar), d = d > 4 ? 1 : d, s = c.slice(d), d += t[1].length), u && this.rules.other.blankLine.test(l) && (r += l + "\n", e = e.substring(l.length + 1), n = !0), !n) {
16271
16309
  let t = this.rules.other.nextBulletRegex(d), n = this.rules.other.hrRegex(d), i = this.rules.other.fencesBeginRegex(d), a = this.rules.other.headingBeginRegex(d), o = this.rules.other.htmlBeginRegex(d), f = this.rules.other.blockquoteBeginRegex(d);
16272
16310
  for (; e;) {
@@ -16332,7 +16370,7 @@ ${c}` : c;
16332
16370
  html(e) {
16333
16371
  let t = this.rules.block.html.exec(e);
16334
16372
  if (t) {
16335
- let e = Fx(t[0]);
16373
+ let e = Bx(t[0]);
16336
16374
  return {
16337
16375
  type: "html",
16338
16376
  block: !0,
@@ -16349,7 +16387,7 @@ ${c}` : c;
16349
16387
  return {
16350
16388
  type: "def",
16351
16389
  tag: e,
16352
- raw: Px(t[0], "\n"),
16390
+ raw: zx(t[0], "\n"),
16353
16391
  href: n,
16354
16392
  title: r
16355
16393
  };
@@ -16358,9 +16396,9 @@ ${c}` : c;
16358
16396
  table(e) {
16359
16397
  let t = this.rules.block.table.exec(e);
16360
16398
  if (!t || !this.rules.other.tableDelimiter.test(t[2])) return;
16361
- let n = Nx(t[1]), r = t[2].replace(this.rules.other.tableAlignChars, "").split("|"), i = t[3]?.trim() ? t[3].replace(this.rules.other.tableRowBlankLine, "").split("\n") : [], a = {
16399
+ let n = Rx(t[1]), r = t[2].replace(this.rules.other.tableAlignChars, "").split("|"), i = t[3]?.trim() ? t[3].replace(this.rules.other.tableRowBlankLine, "").split("\n") : [], a = {
16362
16400
  type: "table",
16363
- raw: Px(t[0], "\n"),
16401
+ raw: zx(t[0], "\n"),
16364
16402
  header: [],
16365
16403
  align: [],
16366
16404
  rows: []
@@ -16373,7 +16411,7 @@ ${c}` : c;
16373
16411
  header: !0,
16374
16412
  align: a.align[e]
16375
16413
  });
16376
- for (let e of i) a.rows.push(Nx(e, a.header.length).map((e, t) => ({
16414
+ for (let e of i) a.rows.push(Rx(e, a.header.length).map((e, t) => ({
16377
16415
  text: e,
16378
16416
  tokens: this.lexer.inline(e),
16379
16417
  header: !1,
@@ -16388,7 +16426,7 @@ ${c}` : c;
16388
16426
  let e = t[1].trim();
16389
16427
  return {
16390
16428
  type: "heading",
16391
- raw: Px(t[0], "\n"),
16429
+ raw: zx(t[0], "\n"),
16392
16430
  depth: t[2].charAt(0) === "=" ? 1 : 2,
16393
16431
  text: e,
16394
16432
  tokens: this.lexer.inline(e)
@@ -16441,10 +16479,10 @@ ${c}` : c;
16441
16479
  let e = t[2].trim();
16442
16480
  if (!this.options.pedantic && this.rules.other.startAngleBracket.test(e)) {
16443
16481
  if (!this.rules.other.endAngleBracket.test(e)) return;
16444
- let t = Px(e.slice(0, -1), "\\");
16482
+ let t = zx(e.slice(0, -1), "\\");
16445
16483
  if ((e.length - t.length) % 2 == 0) return;
16446
16484
  } else {
16447
- let e = Ix(t[2], "()");
16485
+ let e = Vx(t[2], "()");
16448
16486
  if (e === -2) return;
16449
16487
  if (e > -1) {
16450
16488
  let n = (t[0].indexOf("!") === 0 ? 5 : 4) + t[1].length + e;
@@ -16456,7 +16494,7 @@ ${c}` : c;
16456
16494
  let e = this.rules.other.pedanticHrefTitle.exec(n);
16457
16495
  e && (n = e[1], r = e[3]);
16458
16496
  } else r = t[3] ? t[3].slice(1, -1) : "";
16459
- return n = n.trim(), this.rules.other.startAngleBracket.test(n) && (n = this.options.pedantic && !this.rules.other.endAngleBracket.test(e) ? n.slice(1) : n.slice(1, -1)), Rx(t, {
16497
+ return n = n.trim(), this.rules.other.startAngleBracket.test(n) && (n = this.options.pedantic && !this.rules.other.endAngleBracket.test(e) ? n.slice(1) : n.slice(1, -1)), Ux(t, {
16460
16498
  href: n && n.replace(this.rules.inline.anyPunctuation, "$1"),
16461
16499
  title: r && r.replace(this.rules.inline.anyPunctuation, "$1")
16462
16500
  }, t[0], this.lexer, this.rules);
@@ -16474,7 +16512,7 @@ ${c}` : c;
16474
16512
  text: e
16475
16513
  };
16476
16514
  }
16477
- return Rx(n, e, n[0], this.lexer, this.rules);
16515
+ return Ux(n, e, n[0], this.lexer, this.rules);
16478
16516
  }
16479
16517
  }
16480
16518
  emStrong(e, t, n = "") {
@@ -16606,29 +16644,29 @@ ${c}` : c;
16606
16644
  };
16607
16645
  }
16608
16646
  }
16609
- }, Vx = class e {
16647
+ }, Kx = class e {
16610
16648
  tokens;
16611
16649
  options;
16612
16650
  state;
16613
16651
  inlineQueue;
16614
16652
  tokenizer;
16615
16653
  constructor(e) {
16616
- this.tokens = [], this.tokens.links = Object.create(null), this.options = e || hb, this.options.tokenizer = this.options.tokenizer || new Bx(), this.tokenizer = this.options.tokenizer, this.tokenizer.options = this.options, this.tokenizer.lexer = this, this.inlineQueue = [], this.state = {
16654
+ this.tokens = [], this.tokens.links = Object.create(null), this.options = e || bb, this.options.tokenizer = this.options.tokenizer || new Gx(), this.tokenizer = this.options.tokenizer, this.tokenizer.options = this.options, this.tokenizer.lexer = this, this.inlineQueue = [], this.state = {
16617
16655
  inLink: !1,
16618
16656
  inRawBlock: !1,
16619
16657
  top: !0
16620
16658
  };
16621
16659
  let t = {
16622
- other: xb,
16623
- block: Dx.normal,
16624
- inline: Ox.normal
16660
+ other: Eb,
16661
+ block: Mx.normal,
16662
+ inline: Nx.normal
16625
16663
  };
16626
- this.options.pedantic ? (t.block = Dx.pedantic, t.inline = Ox.pedantic) : this.options.gfm && (t.block = Dx.gfm, this.options.breaks ? t.inline = Ox.breaks : t.inline = Ox.gfm), this.tokenizer.rules = t;
16664
+ this.options.pedantic ? (t.block = Mx.pedantic, t.inline = Nx.pedantic) : this.options.gfm && (t.block = Mx.gfm, this.options.breaks ? t.inline = Nx.breaks : t.inline = Nx.gfm), this.tokenizer.rules = t;
16627
16665
  }
16628
16666
  static get rules() {
16629
16667
  return {
16630
- block: Dx,
16631
- inline: Ox
16668
+ block: Mx,
16669
+ inline: Nx
16632
16670
  };
16633
16671
  }
16634
16672
  static lex(t, n) {
@@ -16638,7 +16676,7 @@ ${c}` : c;
16638
16676
  return new e(n).inlineTokens(t);
16639
16677
  }
16640
16678
  lex(e) {
16641
- e = e.replace(xb.carriageReturn, "\n"), this.blockTokens(e, this.tokens);
16679
+ e = e.replace(Eb.carriageReturn, "\n"), this.blockTokens(e, this.tokens);
16642
16680
  for (let e = 0; e < this.inlineQueue.length; e++) {
16643
16681
  let t = this.inlineQueue[e];
16644
16682
  this.inlineTokens(t.src, t.tokens);
@@ -16646,7 +16684,7 @@ ${c}` : c;
16646
16684
  return this.inlineQueue = [], this.tokens;
16647
16685
  }
16648
16686
  blockTokens(e, t = [], n = !1) {
16649
- this.tokenizer.lexer = this, this.options.pedantic && (e = e.replace(xb.tabCharGlobal, " ").replace(xb.spaceLine, ""));
16687
+ this.tokenizer.lexer = this, this.options.pedantic && (e = e.replace(Eb.tabCharGlobal, " ").replace(Eb.spaceLine, ""));
16650
16688
  let r = Infinity;
16651
16689
  for (; e;) {
16652
16690
  if (e.length < r) r = e.length;
@@ -16828,18 +16866,18 @@ ${c}` : c;
16828
16866
  if (this.options.silent) console.error(t);
16829
16867
  else throw Error(t);
16830
16868
  }
16831
- }, Hx = class {
16869
+ }, qx = class {
16832
16870
  options;
16833
16871
  parser;
16834
16872
  constructor(e) {
16835
- this.options = e || hb;
16873
+ this.options = e || bb;
16836
16874
  }
16837
16875
  space(e) {
16838
16876
  return "";
16839
16877
  }
16840
16878
  code({ text: e, lang: t, escaped: n }) {
16841
- let r = (t || "").match(xb.notSpaceStart)?.[0], i = e.replace(xb.endingNewline, "") + "\n";
16842
- return r ? "<pre><code class=\"language-" + jx(r) + "\">" + (n ? i : jx(i, !0)) + "</code></pre>\n" : "<pre><code>" + (n ? i : jx(i, !0)) + "</code></pre>\n";
16879
+ let r = (t || "").match(Eb.notSpaceStart)?.[0], i = e.replace(Eb.endingNewline, "") + "\n";
16880
+ return r ? "<pre><code class=\"language-" + Ix(r) + "\">" + (n ? i : Ix(i, !0)) + "</code></pre>\n" : "<pre><code>" + (n ? i : Ix(i, !0)) + "</code></pre>\n";
16843
16881
  }
16844
16882
  blockquote({ tokens: e }) {
16845
16883
  return `<blockquote>
@@ -16909,7 +16947,7 @@ ${e}</tr>
16909
16947
  return `<em>${this.parser.parseInline(e)}</em>`;
16910
16948
  }
16911
16949
  codespan({ text: e }) {
16912
- return `<code>${jx(e, !0)}</code>`;
16950
+ return `<code>${Ix(e, !0)}</code>`;
16913
16951
  }
16914
16952
  br(e) {
16915
16953
  return "<br>";
@@ -16918,24 +16956,24 @@ ${e}</tr>
16918
16956
  return `<del>${this.parser.parseInline(e)}</del>`;
16919
16957
  }
16920
16958
  link({ href: e, title: t, tokens: n }) {
16921
- let r = this.parser.parseInline(n), i = Mx(e);
16959
+ let r = this.parser.parseInline(n), i = Lx(e);
16922
16960
  if (i === null) return r;
16923
16961
  e = i;
16924
16962
  let a = "<a href=\"" + e + "\"";
16925
- return t && (a += " title=\"" + jx(t) + "\""), a += ">" + r + "</a>", a;
16963
+ return t && (a += " title=\"" + Ix(t) + "\""), a += ">" + r + "</a>", a;
16926
16964
  }
16927
16965
  image({ href: e, title: t, text: n, tokens: r }) {
16928
16966
  r && (n = this.parser.parseInline(r, this.parser.textRenderer));
16929
- let i = Mx(e);
16930
- if (i === null) return jx(n);
16967
+ let i = Lx(e);
16968
+ if (i === null) return Ix(n);
16931
16969
  e = i;
16932
- let a = `<img src="${e}" alt="${jx(n)}"`;
16933
- return t && (a += ` title="${jx(t)}"`), a += ">", a;
16970
+ let a = `<img src="${e}" alt="${Ix(n)}"`;
16971
+ return t && (a += ` title="${Ix(t)}"`), a += ">", a;
16934
16972
  }
16935
16973
  text(e) {
16936
- return "tokens" in e && e.tokens ? this.parser.parseInline(e.tokens) : "escaped" in e && e.escaped ? e.text : jx(e.text);
16974
+ return "tokens" in e && e.tokens ? this.parser.parseInline(e.tokens) : "escaped" in e && e.escaped ? e.text : Ix(e.text);
16937
16975
  }
16938
- }, Ux = class {
16976
+ }, Jx = class {
16939
16977
  strong({ text: e }) {
16940
16978
  return e;
16941
16979
  }
@@ -16966,12 +17004,12 @@ ${e}</tr>
16966
17004
  checkbox({ raw: e }) {
16967
17005
  return e;
16968
17006
  }
16969
- }, Wx = class e {
17007
+ }, Yx = class e {
16970
17008
  options;
16971
17009
  renderer;
16972
17010
  textRenderer;
16973
17011
  constructor(e) {
16974
- this.options = e || hb, this.options.renderer = this.options.renderer || new Hx(), this.renderer = this.options.renderer, this.renderer.options = this.options, this.renderer.parser = this, this.textRenderer = new Ux();
17012
+ this.options = e || bb, this.options.renderer = this.options.renderer || new qx(), this.renderer = this.options.renderer, this.renderer.options = this.options, this.renderer.parser = this, this.textRenderer = new Jx();
16975
17013
  }
16976
17014
  static parse(t, n) {
16977
17015
  return new e(n).parse(t);
@@ -17117,11 +17155,11 @@ ${e}</tr>
17117
17155
  }
17118
17156
  return n;
17119
17157
  }
17120
- }, Gx = class {
17158
+ }, Xx = class {
17121
17159
  options;
17122
17160
  block;
17123
17161
  constructor(e) {
17124
- this.options = e || hb;
17162
+ this.options = e || bb;
17125
17163
  }
17126
17164
  static passThroughHooks = /* @__PURE__ */ new Set([
17127
17165
  "preprocess",
@@ -17147,22 +17185,22 @@ ${e}</tr>
17147
17185
  return e;
17148
17186
  }
17149
17187
  provideLexer(e = this.block) {
17150
- return e ? Vx.lex : Vx.lexInline;
17188
+ return e ? Kx.lex : Kx.lexInline;
17151
17189
  }
17152
17190
  provideParser(e = this.block) {
17153
- return e ? Wx.parse : Wx.parseInline;
17191
+ return e ? Yx.parse : Yx.parseInline;
17154
17192
  }
17155
- }, Kx = new class {
17156
- defaults = mb();
17193
+ }, Zx = new class {
17194
+ defaults = yb();
17157
17195
  options = this.setOptions;
17158
17196
  parse = this.parseMarkdown(!0);
17159
17197
  parseInline = this.parseMarkdown(!1);
17160
- Parser = Wx;
17161
- Renderer = Hx;
17162
- TextRenderer = Ux;
17163
- Lexer = Vx;
17164
- Tokenizer = Bx;
17165
- Hooks = Gx;
17198
+ Parser = Yx;
17199
+ Renderer = qx;
17200
+ TextRenderer = Jx;
17201
+ Lexer = Kx;
17202
+ Tokenizer = Gx;
17203
+ Hooks = Xx;
17166
17204
  constructor(...e) {
17167
17205
  this.use(...e);
17168
17206
  }
@@ -17213,7 +17251,7 @@ ${e}</tr>
17213
17251
  }
17214
17252
  "childTokens" in e && e.childTokens && (t.childTokens[e.name] = e.childTokens);
17215
17253
  }), n.extensions = t), e.renderer) {
17216
- let t = this.defaults.renderer || new Hx(this.defaults);
17254
+ let t = this.defaults.renderer || new qx(this.defaults);
17217
17255
  for (let n in e.renderer) {
17218
17256
  if (!(n in t)) throw Error(`renderer '${n}' does not exist`);
17219
17257
  if (["options", "parser"].includes(n)) continue;
@@ -17226,7 +17264,7 @@ ${e}</tr>
17226
17264
  n.renderer = t;
17227
17265
  }
17228
17266
  if (e.tokenizer) {
17229
- let t = this.defaults.tokenizer || new Bx(this.defaults);
17267
+ let t = this.defaults.tokenizer || new Gx(this.defaults);
17230
17268
  for (let n in e.tokenizer) {
17231
17269
  if (!(n in t)) throw Error(`tokenizer '${n}' does not exist`);
17232
17270
  if ([
@@ -17243,13 +17281,13 @@ ${e}</tr>
17243
17281
  n.tokenizer = t;
17244
17282
  }
17245
17283
  if (e.hooks) {
17246
- let t = this.defaults.hooks || new Gx();
17284
+ let t = this.defaults.hooks || new Xx();
17247
17285
  for (let n in e.hooks) {
17248
17286
  if (!(n in t)) throw Error(`hook '${n}' does not exist`);
17249
17287
  if (["options", "block"].includes(n)) continue;
17250
17288
  let r = n, i = e.hooks[r], a = t[r];
17251
- Gx.passThroughHooks.has(n) ? t[r] = (e) => {
17252
- if (this.defaults.async && Gx.passThroughHooksRespectAsync.has(n)) return (async () => {
17289
+ Xx.passThroughHooks.has(n) ? t[r] = (e) => {
17290
+ if (this.defaults.async && Xx.passThroughHooksRespectAsync.has(n)) return (async () => {
17253
17291
  let n = await i.call(t, e);
17254
17292
  return a.call(t, n);
17255
17293
  })();
@@ -17286,10 +17324,10 @@ ${e}</tr>
17286
17324
  }, this;
17287
17325
  }
17288
17326
  lexer(e, t) {
17289
- return Vx.lex(e, t ?? this.defaults);
17327
+ return Kx.lex(e, t ?? this.defaults);
17290
17328
  }
17291
17329
  parser(e, t) {
17292
- return Wx.parse(e, t ?? this.defaults);
17330
+ return Yx.parse(e, t ?? this.defaults);
17293
17331
  }
17294
17332
  parseMarkdown(e) {
17295
17333
  return (t, n) => {
@@ -17301,16 +17339,16 @@ ${e}</tr>
17301
17339
  if (typeof t > "u" || t === null) return a(/* @__PURE__ */ Error("marked(): input parameter is undefined or null"));
17302
17340
  if (typeof t != "string") return a(/* @__PURE__ */ Error("marked(): input parameter is of type " + Object.prototype.toString.call(t) + ", string expected"));
17303
17341
  if (i.hooks && (i.hooks.options = i, i.hooks.block = e), i.async) return (async () => {
17304
- let n = i.hooks ? await i.hooks.preprocess(t) : t, r = await (i.hooks ? await i.hooks.provideLexer(e) : e ? Vx.lex : Vx.lexInline)(n, i), a = i.hooks ? await i.hooks.processAllTokens(r) : r;
17342
+ let n = i.hooks ? await i.hooks.preprocess(t) : t, r = await (i.hooks ? await i.hooks.provideLexer(e) : e ? Kx.lex : Kx.lexInline)(n, i), a = i.hooks ? await i.hooks.processAllTokens(r) : r;
17305
17343
  i.walkTokens && await Promise.all(this.walkTokens(a, i.walkTokens));
17306
- let o = await (i.hooks ? await i.hooks.provideParser(e) : e ? Wx.parse : Wx.parseInline)(a, i);
17344
+ let o = await (i.hooks ? await i.hooks.provideParser(e) : e ? Yx.parse : Yx.parseInline)(a, i);
17307
17345
  return i.hooks ? await i.hooks.postprocess(o) : o;
17308
17346
  })().catch(a);
17309
17347
  try {
17310
17348
  i.hooks && (t = i.hooks.preprocess(t));
17311
- let n = (i.hooks ? i.hooks.provideLexer(e) : e ? Vx.lex : Vx.lexInline)(t, i);
17349
+ let n = (i.hooks ? i.hooks.provideLexer(e) : e ? Kx.lex : Kx.lexInline)(t, i);
17312
17350
  i.hooks && (n = i.hooks.processAllTokens(n)), i.walkTokens && this.walkTokens(n, i.walkTokens);
17313
- let r = (i.hooks ? i.hooks.provideParser(e) : e ? Wx.parse : Wx.parseInline)(n, i);
17351
+ let r = (i.hooks ? i.hooks.provideParser(e) : e ? Yx.parse : Yx.parseInline)(n, i);
17314
17352
  return i.hooks && (r = i.hooks.postprocess(r)), r;
17315
17353
  } catch (e) {
17316
17354
  return a(e);
@@ -17320,7 +17358,7 @@ ${e}</tr>
17320
17358
  onError(e, t) {
17321
17359
  return (n) => {
17322
17360
  if (n.message += "\nPlease report this to https://github.com/markedjs/marked.", e) {
17323
- let e = "<p>An error occurred:</p><pre>" + jx(n.message + "", !0) + "</pre>";
17361
+ let e = "<p>An error occurred:</p><pre>" + Ix(n.message + "", !0) + "</pre>";
17324
17362
  return t ? Promise.resolve(e) : e;
17325
17363
  }
17326
17364
  if (t) return Promise.reject(n);
@@ -17328,19 +17366,19 @@ ${e}</tr>
17328
17366
  };
17329
17367
  }
17330
17368
  }();
17331
- function qx(e, t) {
17332
- return Kx.parse(e, t);
17333
- }
17334
- qx.options = qx.setOptions = function(e) {
17335
- return Kx.setOptions(e), qx.defaults = Kx.defaults, gb(qx.defaults), qx;
17336
- }, qx.getDefaults = mb, qx.defaults = hb, qx.use = function(...e) {
17337
- return Kx.use(...e), qx.defaults = Kx.defaults, gb(qx.defaults), qx;
17338
- }, qx.walkTokens = function(e, t) {
17339
- return Kx.walkTokens(e, t);
17340
- }, qx.parseInline = Kx.parseInline, qx.Parser = Wx, qx.parser = Wx.parse, qx.Renderer = Hx, qx.TextRenderer = Ux, qx.Lexer = Vx, qx.lexer = Vx.lex, qx.Tokenizer = Bx, qx.Hooks = Gx, qx.parse = qx, qx.options, qx.setOptions, qx.use, qx.walkTokens, qx.parseInline, Wx.parse, Vx.lex;
17369
+ function Qx(e, t) {
17370
+ return Zx.parse(e, t);
17371
+ }
17372
+ Qx.options = Qx.setOptions = function(e) {
17373
+ return Zx.setOptions(e), Qx.defaults = Zx.defaults, xb(Qx.defaults), Qx;
17374
+ }, Qx.getDefaults = yb, Qx.defaults = bb, Qx.use = function(...e) {
17375
+ return Zx.use(...e), Qx.defaults = Zx.defaults, xb(Qx.defaults), Qx;
17376
+ }, Qx.walkTokens = function(e, t) {
17377
+ return Zx.walkTokens(e, t);
17378
+ }, Qx.parseInline = Zx.parseInline, Qx.Parser = Yx, Qx.parser = Yx.parse, Qx.Renderer = qx, Qx.TextRenderer = Jx, Qx.Lexer = Kx, Qx.lexer = Kx.lex, Qx.Tokenizer = Gx, Qx.Hooks = Xx, Qx.parse = Qx, Qx.options, Qx.setOptions, Qx.use, Qx.walkTokens, Qx.parseInline, Yx.parse, Kx.lex;
17341
17379
  //#endregion
17342
17380
  //#region node_modules/highlight.js/lib/core.js
17343
- var Jx = /* @__PURE__ */ h(((e, t) => {
17381
+ var $x = /* @__PURE__ */ h(((e, t) => {
17344
17382
  function n(e) {
17345
17383
  return e instanceof Map ? e.clear = e.delete = e.set = function() {
17346
17384
  throw Error("map is read-only");
@@ -18181,7 +18219,7 @@ var Jx = /* @__PURE__ */ h(((e, t) => {
18181
18219
  return Object.assign(e, L), e;
18182
18220
  }, je = Ae({});
18183
18221
  je.newInstance = () => Ae({}), t.exports = je, je.HighlightJS = je, je.default = je;
18184
- })), Yx = /* @__PURE__ */ h(((e, t) => {
18222
+ })), eS = /* @__PURE__ */ h(((e, t) => {
18185
18223
  function n(e) {
18186
18224
  let t = e.regex, n = t.concat(/[\p{L}_]/u, t.optional(/[\p{L}0-9_.-]*:/u), /[\p{L}0-9_.-]*/u), r = /[\p{L}0-9._:-]+/u, i = {
18187
18225
  className: "symbol",
@@ -18346,7 +18384,7 @@ var Jx = /* @__PURE__ */ h(((e, t) => {
18346
18384
  };
18347
18385
  }
18348
18386
  t.exports = n;
18349
- })), Xx = /* @__PURE__ */ h(((e, t) => {
18387
+ })), tS = /* @__PURE__ */ h(((e, t) => {
18350
18388
  function n(e) {
18351
18389
  let t = e.regex, n = {}, r = {
18352
18390
  begin: /\$\{/,
@@ -18514,7 +18552,7 @@ var Jx = /* @__PURE__ */ h(((e, t) => {
18514
18552
  };
18515
18553
  }
18516
18554
  t.exports = n;
18517
- })), Zx = /* @__PURE__ */ h(((e, t) => {
18555
+ })), nS = /* @__PURE__ */ h(((e, t) => {
18518
18556
  function n(e) {
18519
18557
  let t = e.regex, n = e.COMMENT("//", "$", { contains: [{ begin: /\\\n/ }] }), r = "[a-zA-Z_]\\w*::", i = "(decltype\\(auto\\)|" + t.optional(r) + "[a-zA-Z_]\\w*" + t.optional("<[^<>]+>") + ")", a = {
18520
18558
  className: "type",
@@ -18689,7 +18727,7 @@ var Jx = /* @__PURE__ */ h(((e, t) => {
18689
18727
  };
18690
18728
  }
18691
18729
  t.exports = n;
18692
- })), Qx = /* @__PURE__ */ h(((e, t) => {
18730
+ })), rS = /* @__PURE__ */ h(((e, t) => {
18693
18731
  function n(e) {
18694
18732
  let t = e.regex, n = e.COMMENT("//", "$", { contains: [{ begin: /\\\n/ }] }), r = "[a-zA-Z_]\\w*::", i = "(?!struct)(decltype\\(auto\\)|" + t.optional(r) + "[a-zA-Z_]\\w*" + t.optional("<[^<>]+>") + ")", a = {
18695
18733
  className: "type",
@@ -18913,7 +18951,7 @@ var Jx = /* @__PURE__ */ h(((e, t) => {
18913
18951
  };
18914
18952
  }
18915
18953
  t.exports = n;
18916
- })), $x = /* @__PURE__ */ h(((e, t) => {
18954
+ })), iS = /* @__PURE__ */ h(((e, t) => {
18917
18955
  function n(e) {
18918
18956
  let t = [
18919
18957
  "bool",
@@ -19172,7 +19210,7 @@ var Jx = /* @__PURE__ */ h(((e, t) => {
19172
19210
  };
19173
19211
  }
19174
19212
  t.exports = n;
19175
- })), eS = /* @__PURE__ */ h(((e, t) => {
19213
+ })), aS = /* @__PURE__ */ h(((e, t) => {
19176
19214
  var n = (e) => ({
19177
19215
  IMPORTANT: {
19178
19216
  scope: "meta",
@@ -19311,7 +19349,7 @@ var Jx = /* @__PURE__ */ h(((e, t) => {
19311
19349
  };
19312
19350
  }
19313
19351
  t.exports = u;
19314
- })), tS = /* @__PURE__ */ h(((e, t) => {
19352
+ })), oS = /* @__PURE__ */ h(((e, t) => {
19315
19353
  function n(e) {
19316
19354
  let t = e.regex, n = {
19317
19355
  begin: /<\/?[A-Za-z_]/,
@@ -19491,7 +19529,7 @@ var Jx = /* @__PURE__ */ h(((e, t) => {
19491
19529
  };
19492
19530
  }
19493
19531
  t.exports = n;
19494
- })), nS = /* @__PURE__ */ h(((e, t) => {
19532
+ })), sS = /* @__PURE__ */ h(((e, t) => {
19495
19533
  function n(e) {
19496
19534
  let t = e.regex;
19497
19535
  return {
@@ -19529,7 +19567,7 @@ var Jx = /* @__PURE__ */ h(((e, t) => {
19529
19567
  };
19530
19568
  }
19531
19569
  t.exports = n;
19532
- })), rS = /* @__PURE__ */ h(((e, t) => {
19570
+ })), cS = /* @__PURE__ */ h(((e, t) => {
19533
19571
  function n(e) {
19534
19572
  let t = e.regex, n = "([a-zA-Z_]\\w*[!?=]?|[-+~]@|<<|>>|=~|===?|<=>|[<>]=?|\\*\\*|[-/+%^&*~`|]|\\[\\]=?)", r = t.either(/\b([A-Z]+[a-z0-9]+)+/, /\b([A-Z]+[a-z0-9]+)+[A-Z]+/), i = t.concat(r, /(::\w+)*/), a = {
19535
19573
  "variable.constant": [
@@ -19790,7 +19828,7 @@ var Jx = /* @__PURE__ */ h(((e, t) => {
19790
19828
  };
19791
19829
  }
19792
19830
  t.exports = n;
19793
- })), iS = /* @__PURE__ */ h(((e, t) => {
19831
+ })), lS = /* @__PURE__ */ h(((e, t) => {
19794
19832
  function n(e) {
19795
19833
  let t = {
19796
19834
  keyword: [
@@ -19929,7 +19967,7 @@ var Jx = /* @__PURE__ */ h(((e, t) => {
19929
19967
  };
19930
19968
  }
19931
19969
  t.exports = n;
19932
- })), aS = /* @__PURE__ */ h(((e, t) => {
19970
+ })), uS = /* @__PURE__ */ h(((e, t) => {
19933
19971
  function n(e) {
19934
19972
  let t = e.regex;
19935
19973
  return {
@@ -19995,7 +20033,7 @@ var Jx = /* @__PURE__ */ h(((e, t) => {
19995
20033
  };
19996
20034
  }
19997
20035
  t.exports = n;
19998
- })), oS = /* @__PURE__ */ h(((e, t) => {
20036
+ })), dS = /* @__PURE__ */ h(((e, t) => {
19999
20037
  function n(e) {
20000
20038
  let t = e.regex, n = {
20001
20039
  className: "number",
@@ -20082,7 +20120,7 @@ var Jx = /* @__PURE__ */ h(((e, t) => {
20082
20120
  };
20083
20121
  }
20084
20122
  t.exports = n;
20085
- })), sS = /* @__PURE__ */ h(((e, t) => {
20123
+ })), fS = /* @__PURE__ */ h(((e, t) => {
20086
20124
  var n = "[0-9](_*[0-9])*", r = `\\.(${n})`, i = "[0-9a-fA-F](_*[0-9a-fA-F])*", a = {
20087
20125
  className: "number",
20088
20126
  variants: [
@@ -20250,7 +20288,7 @@ var Jx = /* @__PURE__ */ h(((e, t) => {
20250
20288
  };
20251
20289
  }
20252
20290
  t.exports = s;
20253
- })), cS = /* @__PURE__ */ h(((e, t) => {
20291
+ })), pS = /* @__PURE__ */ h(((e, t) => {
20254
20292
  var n = "[A-Za-z$_][0-9A-Za-z$_]*", r = /* @__PURE__ */ "as.in.of.if.for.while.finally.var.new.function.do.return.void.else.break.catch.instanceof.with.throw.case.default.try.switch.continue.typeof.delete.let.yield.const.class.debugger.async.await.static.import.from.export.extends.using".split("."), i = [
20255
20293
  "true",
20256
20294
  "false",
@@ -20685,7 +20723,7 @@ var Jx = /* @__PURE__ */ h(((e, t) => {
20685
20723
  };
20686
20724
  }
20687
20725
  t.exports = u;
20688
- })), lS = /* @__PURE__ */ h(((e, t) => {
20726
+ })), mS = /* @__PURE__ */ h(((e, t) => {
20689
20727
  function n(e) {
20690
20728
  let t = {
20691
20729
  className: "attr",
@@ -20720,7 +20758,7 @@ var Jx = /* @__PURE__ */ h(((e, t) => {
20720
20758
  };
20721
20759
  }
20722
20760
  t.exports = n;
20723
- })), uS = /* @__PURE__ */ h(((e, t) => {
20761
+ })), hS = /* @__PURE__ */ h(((e, t) => {
20724
20762
  var n = "[0-9](_*[0-9])*", r = `\\.(${n})`, i = "[0-9a-fA-F](_*[0-9a-fA-F])*", a = {
20725
20763
  className: "number",
20726
20764
  variants: [
@@ -20920,7 +20958,7 @@ var Jx = /* @__PURE__ */ h(((e, t) => {
20920
20958
  };
20921
20959
  }
20922
20960
  t.exports = o;
20923
- })), dS = /* @__PURE__ */ h(((e, t) => {
20961
+ })), gS = /* @__PURE__ */ h(((e, t) => {
20924
20962
  var n = (e) => ({
20925
20963
  IMPORTANT: {
20926
20964
  scope: "meta",
@@ -21111,7 +21149,7 @@ var Jx = /* @__PURE__ */ h(((e, t) => {
21111
21149
  };
21112
21150
  }
21113
21151
  t.exports = d;
21114
- })), fS = /* @__PURE__ */ h(((e, t) => {
21152
+ })), _S = /* @__PURE__ */ h(((e, t) => {
21115
21153
  function n(e) {
21116
21154
  let t = "\\[=*\\[", n = "\\]=*\\]", r = {
21117
21155
  begin: t,
@@ -21156,7 +21194,7 @@ var Jx = /* @__PURE__ */ h(((e, t) => {
21156
21194
  };
21157
21195
  }
21158
21196
  t.exports = n;
21159
- })), pS = /* @__PURE__ */ h(((e, t) => {
21197
+ })), vS = /* @__PURE__ */ h(((e, t) => {
21160
21198
  function n(e) {
21161
21199
  let t = {
21162
21200
  className: "variable",
@@ -21212,7 +21250,7 @@ var Jx = /* @__PURE__ */ h(((e, t) => {
21212
21250
  };
21213
21251
  }
21214
21252
  t.exports = n;
21215
- })), mS = /* @__PURE__ */ h(((e, t) => {
21253
+ })), yS = /* @__PURE__ */ h(((e, t) => {
21216
21254
  function n(e) {
21217
21255
  let t = e.regex, n = /* @__PURE__ */ "abs.accept.alarm.and.atan2.bind.binmode.bless.break.caller.chdir.chmod.chomp.chop.chown.chr.chroot.class.close.closedir.connect.continue.cos.crypt.dbmclose.dbmopen.defined.delete.die.do.dump.each.else.elsif.endgrent.endhostent.endnetent.endprotoent.endpwent.endservent.eof.eval.exec.exists.exit.exp.fcntl.field.fileno.flock.for.foreach.fork.format.formline.getc.getgrent.getgrgid.getgrnam.gethostbyaddr.gethostbyname.gethostent.getlogin.getnetbyaddr.getnetbyname.getnetent.getpeername.getpgrp.getpriority.getprotobyname.getprotobynumber.getprotoent.getpwent.getpwnam.getpwuid.getservbyname.getservbyport.getservent.getsockname.getsockopt.given.glob.gmtime.goto.grep.gt.hex.if.index.int.ioctl.join.keys.kill.last.lc.lcfirst.length.link.listen.local.localtime.log.lstat.lt.ma.map.method.mkdir.msgctl.msgget.msgrcv.msgsnd.my.ne.next.no.not.oct.open.opendir.or.ord.our.pack.package.pipe.pop.pos.print.printf.prototype.push.q|0.qq.quotemeta.qw.qx.rand.read.readdir.readline.readlink.readpipe.recv.redo.ref.rename.require.reset.return.reverse.rewinddir.rindex.rmdir.say.scalar.seek.seekdir.select.semctl.semget.semop.send.setgrent.sethostent.setnetent.setpgrp.setpriority.setprotoent.setpwent.setservent.setsockopt.shift.shmctl.shmget.shmread.shmwrite.shutdown.sin.sleep.socket.socketpair.sort.splice.split.sprintf.sqrt.srand.stat.state.study.sub.substr.symlink.syscall.sysopen.sysread.sysseek.system.syswrite.tell.telldir.tie.tied.time.times.tr.truncate.uc.ucfirst.umask.undef.unless.unlink.unpack.unshift.untie.until.use.utime.values.vec.wait.waitpid.wantarray.warn.when.while.write.x|0.xor.y|0".split("."), r = /[dualxmsipngr]{0,12}/, i = {
21218
21256
  $pattern: /[\w.]+/,
@@ -21403,7 +21441,7 @@ var Jx = /* @__PURE__ */ h(((e, t) => {
21403
21441
  };
21404
21442
  }
21405
21443
  t.exports = n;
21406
- })), hS = /* @__PURE__ */ h(((e, t) => {
21444
+ })), bS = /* @__PURE__ */ h(((e, t) => {
21407
21445
  function n(e) {
21408
21446
  let t = {
21409
21447
  className: "built_in",
@@ -21519,7 +21557,7 @@ var Jx = /* @__PURE__ */ h(((e, t) => {
21519
21557
  };
21520
21558
  }
21521
21559
  t.exports = n;
21522
- })), gS = /* @__PURE__ */ h(((e, t) => {
21560
+ })), xS = /* @__PURE__ */ h(((e, t) => {
21523
21561
  function n(e) {
21524
21562
  let t = e.regex, n = /(?![A-Za-z0-9])(?![$])/, r = t.concat(/[a-zA-Z_\x7f-\xff][a-zA-Z0-9_\x7f-\xff]*/, n), i = t.concat(/(\\?[A-Z][a-z0-9_\x7f-\xff]+|\\?[A-Z]+(?=[A-Z][a-z0-9_\x7f-\xff])){1,}/, n), a = t.concat(/[A-Z]+/, n), o = {
21525
21563
  scope: "variable",
@@ -21812,7 +21850,7 @@ var Jx = /* @__PURE__ */ h(((e, t) => {
21812
21850
  };
21813
21851
  }
21814
21852
  t.exports = n;
21815
- })), _S = /* @__PURE__ */ h(((e, t) => {
21853
+ })), SS = /* @__PURE__ */ h(((e, t) => {
21816
21854
  function n(e) {
21817
21855
  return {
21818
21856
  name: "PHP template",
@@ -21854,7 +21892,7 @@ var Jx = /* @__PURE__ */ h(((e, t) => {
21854
21892
  };
21855
21893
  }
21856
21894
  t.exports = n;
21857
- })), vS = /* @__PURE__ */ h(((e, t) => {
21895
+ })), CS = /* @__PURE__ */ h(((e, t) => {
21858
21896
  function n(e) {
21859
21897
  return {
21860
21898
  name: "Plain text",
@@ -21863,7 +21901,7 @@ var Jx = /* @__PURE__ */ h(((e, t) => {
21863
21901
  };
21864
21902
  }
21865
21903
  t.exports = n;
21866
- })), yS = /* @__PURE__ */ h(((e, t) => {
21904
+ })), wS = /* @__PURE__ */ h(((e, t) => {
21867
21905
  function n(e) {
21868
21906
  let t = e.regex, n = /[\p{XID_Start}_]\p{XID_Continue}*/u, r = /* @__PURE__ */ "and.as.assert.async.await.break.case.class.continue.def.del.elif.else.except.finally.for.from.global.if.import.in.is.lambda.match.nonlocal|10.not.or.pass.raise.return.try.while.with.yield".split("."), i = {
21869
21907
  $pattern: /[A-Za-z]\w+|__\w+__/,
@@ -22100,7 +22138,7 @@ var Jx = /* @__PURE__ */ h(((e, t) => {
22100
22138
  };
22101
22139
  }
22102
22140
  t.exports = n;
22103
- })), bS = /* @__PURE__ */ h(((e, t) => {
22141
+ })), TS = /* @__PURE__ */ h(((e, t) => {
22104
22142
  function n(e) {
22105
22143
  return {
22106
22144
  aliases: ["pycon"],
@@ -22118,7 +22156,7 @@ var Jx = /* @__PURE__ */ h(((e, t) => {
22118
22156
  };
22119
22157
  }
22120
22158
  t.exports = n;
22121
- })), xS = /* @__PURE__ */ h(((e, t) => {
22159
+ })), ES = /* @__PURE__ */ h(((e, t) => {
22122
22160
  function n(e) {
22123
22161
  let t = e.regex, n = /(?:(?:[a-zA-Z]|\.[._a-zA-Z])[._a-zA-Z0-9]*)|\.(?!\d)/, r = t.either(/0[xX][0-9a-fA-F]+\.[0-9a-fA-F]*[pP][+-]?\d+i?/, /0[xX][0-9a-fA-F]+(?:[pP][+-]?\d+)?[Li]?/, /(?:\d+(?:\.\d*)?|\.\d+)(?:[eE][+-]?\d+)?[Li]?/), i = /[=!<>:]=|\|\||&&|:::?|<-|<<-|->>|->|\|>|[-+*\/?!$&|:<=>@^~]|\*\*/, a = t.either(/[()]/, /[{}]/, /\[\[/, /[[\]]/, /\\/, /,/);
22124
22162
  return {
@@ -22257,7 +22295,7 @@ var Jx = /* @__PURE__ */ h(((e, t) => {
22257
22295
  };
22258
22296
  }
22259
22297
  t.exports = n;
22260
- })), SS = /* @__PURE__ */ h(((e, t) => {
22298
+ })), DS = /* @__PURE__ */ h(((e, t) => {
22261
22299
  function n(e) {
22262
22300
  let t = e.regex, n = /(r#)?/, r = t.concat(n, e.UNDERSCORE_IDENT_RE), i = t.concat(n, e.IDENT_RE), a = {
22263
22301
  className: "title.function.invoke",
@@ -22425,7 +22463,7 @@ var Jx = /* @__PURE__ */ h(((e, t) => {
22425
22463
  };
22426
22464
  }
22427
22465
  t.exports = n;
22428
- })), CS = /* @__PURE__ */ h(((e, t) => {
22466
+ })), OS = /* @__PURE__ */ h(((e, t) => {
22429
22467
  var n = (e) => ({
22430
22468
  IMPORTANT: {
22431
22469
  scope: "meta",
@@ -22574,7 +22612,7 @@ var Jx = /* @__PURE__ */ h(((e, t) => {
22574
22612
  };
22575
22613
  }
22576
22614
  t.exports = u;
22577
- })), wS = /* @__PURE__ */ h(((e, t) => {
22615
+ })), kS = /* @__PURE__ */ h(((e, t) => {
22578
22616
  function n(e) {
22579
22617
  return {
22580
22618
  name: "Shell Session",
@@ -22590,7 +22628,7 @@ var Jx = /* @__PURE__ */ h(((e, t) => {
22590
22628
  };
22591
22629
  }
22592
22630
  t.exports = n;
22593
- })), TS = /* @__PURE__ */ h(((e, t) => {
22631
+ })), AS = /* @__PURE__ */ h(((e, t) => {
22594
22632
  function n(e) {
22595
22633
  let t = e.regex, n = e.COMMENT("--", "$"), r = {
22596
22634
  scope: "string",
@@ -22707,7 +22745,7 @@ var Jx = /* @__PURE__ */ h(((e, t) => {
22707
22745
  };
22708
22746
  }
22709
22747
  t.exports = n;
22710
- })), ES = /* @__PURE__ */ h(((e, t) => {
22748
+ })), jS = /* @__PURE__ */ h(((e, t) => {
22711
22749
  function n(e) {
22712
22750
  return e ? typeof e == "string" ? e : e.source : null;
22713
22751
  }
@@ -23280,7 +23318,7 @@ var Jx = /* @__PURE__ */ h(((e, t) => {
23280
23318
  };
23281
23319
  }
23282
23320
  t.exports = T;
23283
- })), DS = /* @__PURE__ */ h(((e, t) => {
23321
+ })), MS = /* @__PURE__ */ h(((e, t) => {
23284
23322
  function n(e) {
23285
23323
  let t = "true false yes no null", n = {
23286
23324
  className: "attr",
@@ -23423,7 +23461,7 @@ var Jx = /* @__PURE__ */ h(((e, t) => {
23423
23461
  };
23424
23462
  }
23425
23463
  t.exports = n;
23426
- })), OS = /* @__PURE__ */ h(((e, t) => {
23464
+ })), NS = /* @__PURE__ */ h(((e, t) => {
23427
23465
  var n = "[A-Za-z$_][0-9A-Za-z$_]*", r = /* @__PURE__ */ "as.in.of.if.for.while.finally.var.new.function.do.return.void.else.break.catch.instanceof.with.throw.case.default.try.switch.continue.typeof.delete.let.yield.const.class.debugger.async.await.static.import.from.export.extends.using".split("."), i = [
23428
23466
  "true",
23429
23467
  "false",
@@ -23943,7 +23981,7 @@ var Jx = /* @__PURE__ */ h(((e, t) => {
23943
23981
  }), a;
23944
23982
  }
23945
23983
  t.exports = d;
23946
- })), kS = /* @__PURE__ */ h(((e, t) => {
23984
+ })), PS = /* @__PURE__ */ h(((e, t) => {
23947
23985
  function n(e) {
23948
23986
  let t = e.regex, n = {
23949
23987
  className: "string",
@@ -24011,7 +24049,7 @@ var Jx = /* @__PURE__ */ h(((e, t) => {
24011
24049
  };
24012
24050
  }
24013
24051
  t.exports = n;
24014
- })), AS = /* @__PURE__ */ h(((e, t) => {
24052
+ })), FS = /* @__PURE__ */ h(((e, t) => {
24015
24053
  function n(e) {
24016
24054
  e.regex;
24017
24055
  let t = e.COMMENT(/\(;/, /;\)/);
@@ -24073,71 +24111,71 @@ var Jx = /* @__PURE__ */ h(((e, t) => {
24073
24111
  };
24074
24112
  }
24075
24113
  t.exports = n;
24076
- })), jS = (/* @__PURE__ */ _((/* @__PURE__ */ h(((e, t) => {
24077
- var n = Jx();
24078
- n.registerLanguage("xml", Yx()), n.registerLanguage("bash", Xx()), n.registerLanguage("c", Zx()), n.registerLanguage("cpp", Qx()), n.registerLanguage("csharp", $x()), n.registerLanguage("css", eS()), n.registerLanguage("markdown", tS()), n.registerLanguage("diff", nS()), n.registerLanguage("ruby", rS()), n.registerLanguage("go", iS()), n.registerLanguage("graphql", aS()), n.registerLanguage("ini", oS()), n.registerLanguage("java", sS()), n.registerLanguage("javascript", cS()), n.registerLanguage("json", lS()), n.registerLanguage("kotlin", uS()), n.registerLanguage("less", dS()), n.registerLanguage("lua", fS()), n.registerLanguage("makefile", pS()), n.registerLanguage("perl", mS()), n.registerLanguage("objectivec", hS()), n.registerLanguage("php", gS()), n.registerLanguage("php-template", _S()), n.registerLanguage("plaintext", vS()), n.registerLanguage("python", yS()), n.registerLanguage("python-repl", bS()), n.registerLanguage("r", xS()), n.registerLanguage("rust", SS()), n.registerLanguage("scss", CS()), n.registerLanguage("shell", wS()), n.registerLanguage("sql", TS()), n.registerLanguage("swift", ES()), n.registerLanguage("yaml", DS()), n.registerLanguage("typescript", OS()), n.registerLanguage("vbnet", kS()), n.registerLanguage("wasm", AS()), n.HighlightJS = n, n.default = n, t.exports = n;
24114
+ })), IS = (/* @__PURE__ */ _((/* @__PURE__ */ h(((e, t) => {
24115
+ var n = $x();
24116
+ n.registerLanguage("xml", eS()), n.registerLanguage("bash", tS()), n.registerLanguage("c", nS()), n.registerLanguage("cpp", rS()), n.registerLanguage("csharp", iS()), n.registerLanguage("css", aS()), n.registerLanguage("markdown", oS()), n.registerLanguage("diff", sS()), n.registerLanguage("ruby", cS()), n.registerLanguage("go", lS()), n.registerLanguage("graphql", uS()), n.registerLanguage("ini", dS()), n.registerLanguage("java", fS()), n.registerLanguage("javascript", pS()), n.registerLanguage("json", mS()), n.registerLanguage("kotlin", hS()), n.registerLanguage("less", gS()), n.registerLanguage("lua", _S()), n.registerLanguage("makefile", vS()), n.registerLanguage("perl", yS()), n.registerLanguage("objectivec", bS()), n.registerLanguage("php", xS()), n.registerLanguage("php-template", SS()), n.registerLanguage("plaintext", CS()), n.registerLanguage("python", wS()), n.registerLanguage("python-repl", TS()), n.registerLanguage("r", ES()), n.registerLanguage("rust", DS()), n.registerLanguage("scss", OS()), n.registerLanguage("shell", kS()), n.registerLanguage("sql", AS()), n.registerLanguage("swift", jS()), n.registerLanguage("yaml", MS()), n.registerLanguage("typescript", NS()), n.registerLanguage("vbnet", PS()), n.registerLanguage("wasm", FS()), n.HighlightJS = n, n.default = n, t.exports = n;
24079
24117
  })))())).default;
24080
24118
  //#endregion
24081
24119
  //#region src/core/composables/useMarkdown.ts
24082
- qx.setOptions({
24120
+ Qx.setOptions({
24083
24121
  breaks: !0,
24084
24122
  gfm: !0
24085
24123
  });
24086
- var MS = 2e4, NS = new qx.Renderer();
24087
- NS.code = ({ text: e, lang: t }) => {
24124
+ var LS = 2e4, RS = new Qx.Renderer();
24125
+ RS.code = ({ text: e, lang: t }) => {
24088
24126
  let n = (t || "").trim() || "plaintext", r = "";
24089
- if (e.length > 2e4) r = FS(e);
24127
+ if (e.length > 2e4) r = BS(e);
24090
24128
  else try {
24091
- r = jS.highlight(e, {
24129
+ r = IS.highlight(e, {
24092
24130
  language: n,
24093
24131
  ignoreIllegals: !0
24094
24132
  }).value;
24095
24133
  } catch {
24096
- r = FS(e);
24134
+ r = BS(e);
24097
24135
  }
24098
- let i = encodeURIComponent(e), a = PS(n);
24136
+ let i = encodeURIComponent(e), a = zS(n);
24099
24137
  return `<pre class="code-block" data-lang="${a}" data-code="${i}"><code class="hljs language-${a}">${r}</code></pre>`;
24100
24138
  };
24101
- function PS(e) {
24139
+ function zS(e) {
24102
24140
  return e.replace(/&/g, "&amp;").replace(/"/g, "&quot;").replace(/</g, "&lt;").replace(/>/g, "&gt;");
24103
24141
  }
24104
- function FS(e) {
24142
+ function BS(e) {
24105
24143
  return e.replace(/&/g, "&amp;").replace(/</g, "&lt;").replace(/>/g, "&gt;");
24106
24144
  }
24107
- var IS = { ADD_ATTR: [
24145
+ var VS = { ADD_ATTR: [
24108
24146
  "data-code",
24109
24147
  "data-lang",
24110
24148
  "target",
24111
24149
  "rel"
24112
24150
  ] };
24113
- function LS(e) {
24114
- return Yv.sanitize(e, IS);
24151
+ function HS(e) {
24152
+ return Yv.sanitize(e, VS);
24115
24153
  }
24116
- function RS(e) {
24117
- return qx.parse(e || "", { renderer: NS });
24154
+ function US(e) {
24155
+ return Qx.parse(e || "", { renderer: RS });
24118
24156
  }
24119
- function zS(e) {
24120
- return LS(RS(e));
24157
+ function WS(e) {
24158
+ return HS(US(e));
24121
24159
  }
24122
- var BS = 100, VS = 2e3;
24123
- function HS(e) {
24124
- let t = /* @__PURE__ */ Tn(zS(e())), n = 0, r = null;
24160
+ var GS = 100, KS = 2e3;
24161
+ function qS(e) {
24162
+ let t = /* @__PURE__ */ Tn(WS(e())), n = 0, r = null;
24125
24163
  function i() {
24126
- r = null, n = Date.now(), t.value = zS(e());
24164
+ r = null, n = Date.now(), t.value = WS(e());
24127
24165
  }
24128
24166
  return ri(e, () => {
24129
24167
  let a = e();
24130
- if (a.length <= VS) {
24131
- r &&= (clearTimeout(r), null), n = Date.now(), t.value = zS(a);
24168
+ if (a.length <= KS) {
24169
+ r &&= (clearTimeout(r), null), n = Date.now(), t.value = WS(a);
24132
24170
  return;
24133
24171
  }
24134
- let o = n + BS - Date.now();
24172
+ let o = n + GS - Date.now();
24135
24173
  o <= 0 ? (r &&= (clearTimeout(r), null), i()) : r ||= setTimeout(i, o);
24136
24174
  }), Ze(() => {
24137
24175
  r &&= (clearTimeout(r), null);
24138
24176
  }), {
24139
24177
  html: t,
24140
- codeBlocks: Q(() => {
24178
+ codeBlocks: Qs(() => {
24141
24179
  let t = [], n = /```(\w+)?\n([\s\S]*?)```/g, r;
24142
24180
  for (; (r = n.exec(e() || "")) !== null;) t.push({
24143
24181
  lang: (r[1] || "plaintext").toLowerCase(),
@@ -24149,20 +24187,20 @@ function HS(e) {
24149
24187
  }
24150
24188
  //#endregion
24151
24189
  //#region src/core/components/CodePreview.vue?vue&type=script&setup=true&lang.ts
24152
- var US = { class: "code-preview-modal" }, WS = { class: "preview-header" }, GS = { class: "preview-title" }, KS = { class: "preview-tabs" }, qS = ["disabled"], JS = { class: "preview-actions" }, YS = ["title"], XS = {
24190
+ var JS = { class: "code-preview-modal" }, YS = { class: "preview-header" }, XS = { class: "preview-title" }, ZS = { class: "preview-tabs" }, QS = ["disabled"], $S = { class: "preview-actions" }, eC = ["title"], tC = {
24153
24191
  key: 0,
24154
24192
  viewBox: "0 0 16 16",
24155
24193
  fill: "none",
24156
24194
  "aria-hidden": "true"
24157
- }, ZS = {
24195
+ }, nC = {
24158
24196
  key: 1,
24159
24197
  viewBox: "0 0 16 16",
24160
24198
  fill: "none",
24161
24199
  "aria-hidden": "true"
24162
- }, QS = ["title"], $S = ["title"], eC = { class: "preview-body" }, tC = ["srcdoc"], nC = {
24200
+ }, rC = ["title"], iC = ["title"], aC = { class: "preview-body" }, oC = ["srcdoc"], sC = {
24163
24201
  key: 1,
24164
24202
  class: "preview-source"
24165
- }, rC = /*#__PURE__*/ ry(/* @__PURE__ */ Ii({
24203
+ }, cC = /*#__PURE__*/ oy(/* @__PURE__ */ Ii({
24166
24204
  __name: "CodePreview",
24167
24205
  props: {
24168
24206
  code: {},
@@ -24171,7 +24209,7 @@ var US = { class: "code-preview-modal" }, WS = { class: "preview-header" }, GS =
24171
24209
  },
24172
24210
  emits: ["close"],
24173
24211
  setup(e, { emit: t }) {
24174
- let n = e, r = t, i = /* @__PURE__ */ wn(null), a = /* @__PURE__ */ wn("preview"), o = /* @__PURE__ */ wn(!1), s = Q(() => {
24212
+ let n = e, r = t, i = /* @__PURE__ */ wn(null), a = /* @__PURE__ */ wn("preview"), o = /* @__PURE__ */ wn(!1), s = Qs(() => {
24175
24213
  let e = n.lang.toLowerCase();
24176
24214
  return [
24177
24215
  "html",
@@ -24181,7 +24219,7 @@ var US = { class: "code-preview-modal" }, WS = { class: "preview-header" }, GS =
24181
24219
  "js",
24182
24220
  "css"
24183
24221
  ].includes(e);
24184
- }), c = Q(() => {
24222
+ }), c = Qs(() => {
24185
24223
  let e = n.lang.toLowerCase();
24186
24224
  if (e === "html" || e === "htm") return n.code;
24187
24225
  if (e === "vue") return l(n.code);
@@ -24229,28 +24267,28 @@ app.mount('#app');
24229
24267
  return (t, n) => (J(), Y("div", {
24230
24268
  class: "code-preview-overlay",
24231
24269
  onClick: n[3] ||= yl((e) => r("close"), ["self"])
24232
- }, [X("div", US, [X("div", WS, [
24233
- X("span", GS, U(e.messages.codePreviewTitlePrefix) + U(e.lang), 1),
24234
- X("div", KS, [X("button", {
24270
+ }, [X("div", JS, [X("div", YS, [
24271
+ X("span", XS, U(e.messages.codePreviewTitlePrefix) + U(e.lang), 1),
24272
+ X("div", ZS, [X("button", {
24235
24273
  class: H({ active: a.value === "preview" }),
24236
24274
  disabled: !s.value,
24237
24275
  onClick: n[0] ||= (e) => a.value = "preview"
24238
- }, U(e.messages.codePreviewTab), 11, qS), X("button", {
24276
+ }, U(e.messages.codePreviewTab), 11, QS), X("button", {
24239
24277
  class: H({ active: a.value === "source" }),
24240
24278
  onClick: n[1] ||= (e) => a.value = "source"
24241
24279
  }, U(e.messages.codeSourceTab), 3)]),
24242
- X("div", JS, [
24280
+ X("div", $S, [
24243
24281
  X("button", {
24244
24282
  class: H(["icon-btn", { done: o.value }]),
24245
24283
  title: o.value ? e.messages.copied : e.messages.codeCopyTitle,
24246
24284
  onClick: u
24247
- }, [o.value ? (J(), Y("svg", XS, [...n[4] ||= [X("path", {
24285
+ }, [o.value ? (J(), Y("svg", tC, [...n[4] ||= [X("path", {
24248
24286
  d: "M3 8.5l3 3 7-7",
24249
24287
  stroke: "currentColor",
24250
24288
  "stroke-width": "1.6",
24251
24289
  "stroke-linecap": "round",
24252
24290
  "stroke-linejoin": "round"
24253
- }, null, -1)]])) : (J(), Y("svg", ZS, [...n[5] ||= [X("rect", {
24291
+ }, null, -1)]])) : (J(), Y("svg", nC, [...n[5] ||= [X("rect", {
24254
24292
  x: "5.5",
24255
24293
  y: "5.5",
24256
24294
  width: "8",
@@ -24262,7 +24300,7 @@ app.mount('#app');
24262
24300
  d: "M10.5 3.5v-.5A1.5 1.5 0 0 0 9 1.5H3.5A1.5 1.5 0 0 0 2 3v5.5A1.5 1.5 0 0 0 3.5 10H4",
24263
24301
  stroke: "currentColor",
24264
24302
  "stroke-width": "1.3"
24265
- }, null, -1)]]))], 10, YS),
24303
+ }, null, -1)]]))], 10, eC),
24266
24304
  X("button", {
24267
24305
  class: "icon-btn",
24268
24306
  title: e.messages.codeOpenTitle,
@@ -24282,7 +24320,7 @@ app.mount('#app');
24282
24320
  "stroke-width": "1.3",
24283
24321
  "stroke-linecap": "round",
24284
24322
  "stroke-linejoin": "round"
24285
- })], -1)]], 8, QS),
24323
+ })], -1)]], 8, rC),
24286
24324
  X("button", {
24287
24325
  class: "icon-btn",
24288
24326
  title: e.messages.close,
@@ -24296,25 +24334,25 @@ app.mount('#app');
24296
24334
  stroke: "currentColor",
24297
24335
  "stroke-width": "1.4",
24298
24336
  "stroke-linecap": "round"
24299
- })], -1)]], 8, $S)
24337
+ })], -1)]], 8, iC)
24300
24338
  ])
24301
- ]), X("div", eC, [a.value === "preview" && s.value ? (J(), Y("iframe", {
24339
+ ]), X("div", aC, [a.value === "preview" && s.value ? (J(), Y("iframe", {
24302
24340
  key: 0,
24303
24341
  ref_key: "iframeRef",
24304
24342
  ref: i,
24305
24343
  class: "preview-iframe",
24306
24344
  sandbox: "allow-scripts allow-modals allow-popups allow-forms",
24307
24345
  srcdoc: c.value
24308
- }, null, 8, tC)) : (J(), Y("pre", nC, [X("code", null, U(e.code), 1)]))])])]));
24346
+ }, null, 8, oC)) : (J(), Y("pre", sC, [X("code", null, U(e.code), 1)]))])])]));
24309
24347
  }
24310
- }), [["__scopeId", "data-v-27eac25e"]]), iC = ["innerHTML"], aC = /* @__PURE__ */ Ii({
24348
+ }), [["__scopeId", "data-v-27eac25e"]]), lC = ["innerHTML"], uC = /* @__PURE__ */ Ii({
24311
24349
  __name: "MessageContent",
24312
24350
  props: {
24313
24351
  content: {},
24314
24352
  messages: { default: () => b_ }
24315
24353
  },
24316
24354
  setup(e) {
24317
- let t = e, { html: n, codeBlocks: r } = HS(() => t.content), i = /* @__PURE__ */ wn(null), a = /* @__PURE__ */ wn(null), o = [
24355
+ let t = e, { html: n, codeBlocks: r } = qS(() => t.content), i = /* @__PURE__ */ wn(null), a = /* @__PURE__ */ wn(null), o = [
24318
24356
  "html",
24319
24357
  "htm",
24320
24358
  "vue",
@@ -24387,7 +24425,7 @@ app.mount('#app');
24387
24425
  ref_key: "containerRef",
24388
24426
  ref: i,
24389
24427
  innerHTML: G(n)
24390
- }, null, 8, iC), (J(), os(vi, { to: "body" }, [a.value ? (J(), os(rC, {
24428
+ }, null, 8, lC), (J(), os(vi, { to: "body" }, [a.value ? (J(), os(cC, {
24391
24429
  key: 0,
24392
24430
  code: a.value.code,
24393
24431
  lang: a.value.lang,
@@ -24397,12 +24435,12 @@ app.mount('#app');
24397
24435
  "code",
24398
24436
  "lang",
24399
24437
  "messages"
24400
- ])) : Z("", !0)]))], 64));
24438
+ ])) : Q("", !0)]))], 64));
24401
24439
  }
24402
- }), oC = { class: "typing-text" }, sC = {
24440
+ }), dC = { class: "typing-text" }, fC = {
24403
24441
  key: 0,
24404
24442
  class: "stream-cursor"
24405
- }, cC = /*#__PURE__*/ ry(/* @__PURE__ */ Ii({
24443
+ }, pC = /*#__PURE__*/ oy(/* @__PURE__ */ Ii({
24406
24444
  __name: "MessageBubble",
24407
24445
  props: {
24408
24446
  content: {},
@@ -24413,29 +24451,29 @@ app.mount('#app');
24413
24451
  messages: { default: () => ({ ...b_ }) }
24414
24452
  },
24415
24453
  setup(e) {
24416
- return (t, n) => (J(), Y(q, null, [X("div", { class: H(["message-bubble", [e.role, { typing: e.isPendingAssistant }]]) }, [e.isPendingAssistant ? (J(), Y(q, { key: 0 }, [X("span", { class: H(["typing-dot", { pulse: e.showTyping }]) }, null, 2), X("span", oC, U(e.messages.thinking), 1)], 64)) : (J(), Y(q, { key: 1 }, [e.role === "assistant" ? (J(), os(aC, {
24454
+ return (t, n) => (J(), Y(q, null, [X("div", { class: H(["message-bubble", [e.role, { typing: e.isPendingAssistant }]]) }, [e.isPendingAssistant ? (J(), Y(q, { key: 0 }, [X("span", { class: H(["typing-dot", { pulse: e.showTyping }]) }, null, 2), X("span", dC, [Z(ly, { text: e.messages.thinking }, null, 8, ["text"])])], 64)) : (J(), Y(q, { key: 1 }, [e.role === "assistant" ? (J(), os(uC, {
24417
24455
  key: 0,
24418
24456
  content: e.content,
24419
24457
  messages: e.messages
24420
- }, null, 8, ["content", "messages"])) : (J(), Y(q, { key: 1 }, [vs(U(e.content), 1)], 64))], 64))], 2), e.showCursor ? (J(), Y("span", sC)) : Z("", !0)], 64));
24458
+ }, null, 8, ["content", "messages"])) : (J(), Y(q, { key: 1 }, [_s(U(e.content), 1)], 64))], 64))], 2), e.showCursor ? (J(), Y("span", fC)) : Q("", !0)], 64));
24421
24459
  }
24422
- }), [["__scopeId", "data-v-378bd5f8"]]), lC = { class: "message-time" }, uC = /*#__PURE__*/ ry(/* @__PURE__ */ Ii({
24460
+ }), [["__scopeId", "data-v-2aaa2787"]]), mC = { class: "message-time" }, hC = /*#__PURE__*/ oy(/* @__PURE__ */ Ii({
24423
24461
  __name: "MessageTime",
24424
24462
  props: { time: {} },
24425
24463
  setup(e) {
24426
- return (t, n) => (J(), Y("div", lC, U(e.time), 1));
24464
+ return (t, n) => (J(), Y("div", mC, U(e.time), 1));
24427
24465
  }
24428
- }), [["__scopeId", "data-v-4a976e4a"]]), dC = { class: "msg-actions" }, fC = ["title"], pC = {
24466
+ }), [["__scopeId", "data-v-4a976e4a"]]), gC = { class: "msg-actions" }, _C = ["title"], vC = {
24429
24467
  key: 0,
24430
24468
  viewBox: "0 0 16 16",
24431
24469
  fill: "none",
24432
24470
  "aria-hidden": "true"
24433
- }, mC = {
24471
+ }, yC = {
24434
24472
  key: 1,
24435
24473
  viewBox: "0 0 16 16",
24436
24474
  fill: "none",
24437
24475
  "aria-hidden": "true"
24438
- }, hC = /*#__PURE__*/ ry(/* @__PURE__ */ Ii({
24476
+ }, bC = /*#__PURE__*/ oy(/* @__PURE__ */ Ii({
24439
24477
  __name: "MessageActions",
24440
24478
  props: {
24441
24479
  copied: { type: Boolean },
@@ -24443,17 +24481,17 @@ app.mount('#app');
24443
24481
  },
24444
24482
  emits: ["copy", "regenerate"],
24445
24483
  setup(e) {
24446
- return (t, n) => (J(), Y("div", dC, [X("button", {
24484
+ return (t, n) => (J(), Y("div", gC, [X("button", {
24447
24485
  class: H(["msg-action-btn", { done: e.copied }]),
24448
24486
  title: e.copied ? e.messages.copied : e.messages.copy,
24449
24487
  onClick: n[0] ||= (e) => t.$emit("copy")
24450
- }, [e.copied ? (J(), Y("svg", pC, [...n[2] ||= [X("path", {
24488
+ }, [e.copied ? (J(), Y("svg", vC, [...n[2] ||= [X("path", {
24451
24489
  d: "M3 8.5l3 3 7-7",
24452
24490
  stroke: "currentColor",
24453
24491
  "stroke-width": "1.6",
24454
24492
  "stroke-linecap": "round",
24455
24493
  "stroke-linejoin": "round"
24456
- }, null, -1)]])) : (J(), Y("svg", mC, [...n[3] ||= [X("rect", {
24494
+ }, null, -1)]])) : (J(), Y("svg", yC, [...n[3] ||= [X("rect", {
24457
24495
  x: "5.5",
24458
24496
  y: "5.5",
24459
24497
  width: "8",
@@ -24465,7 +24503,7 @@ app.mount('#app');
24465
24503
  d: "M10.5 3.5v-.5A1.5 1.5 0 0 0 9 1.5H3.5A1.5 1.5 0 0 0 2 3v5.5A1.5 1.5 0 0 0 3.5 10H4",
24466
24504
  stroke: "currentColor",
24467
24505
  "stroke-width": "1.3"
24468
- }, null, -1)]])), X("span", null, U(e.copied ? e.messages.copied : e.messages.copy), 1)], 10, fC), X("button", {
24506
+ }, null, -1)]])), X("span", null, U(e.copied ? e.messages.copied : e.messages.copy), 1)], 10, _C), X("button", {
24469
24507
  class: "msg-action-btn",
24470
24508
  onClick: n[1] ||= (e) => t.$emit("regenerate")
24471
24509
  }, [n[4] ||= X("svg", {
@@ -24485,38 +24523,38 @@ app.mount('#app');
24485
24523
  "stroke-linejoin": "round"
24486
24524
  })], -1), X("span", null, U(e.messages.regenerate), 1)])]));
24487
24525
  }
24488
- }), [["__scopeId", "data-v-dc051a49"]]), gC = {
24526
+ }), [["__scopeId", "data-v-dc051a49"]]), xC = {
24489
24527
  key: 1,
24490
24528
  class: "avatar-icon",
24491
24529
  viewBox: "0 0 1024 1024",
24492
24530
  xmlns: "http://www.w3.org/2000/svg",
24493
24531
  "aria-hidden": "true"
24494
- }, _C = {
24532
+ }, SC = {
24495
24533
  key: 2,
24496
24534
  class: "avatar-icon",
24497
24535
  viewBox: "0 0 1024 1024",
24498
24536
  xmlns: "http://www.w3.org/2000/svg",
24499
24537
  "aria-hidden": "true"
24500
- }, vC = /*#__PURE__*/ ry(/* @__PURE__ */ Ii({
24538
+ }, CC = /*#__PURE__*/ oy(/* @__PURE__ */ Ii({
24501
24539
  __name: "AvatarIcon",
24502
24540
  props: {
24503
24541
  role: {},
24504
24542
  glyph: {}
24505
24543
  },
24506
24544
  setup(e) {
24507
- return (t, n) => e.glyph ? (J(), os(iy, {
24545
+ return (t, n) => e.glyph ? (J(), os(sy, {
24508
24546
  key: 0,
24509
24547
  icon: e.glyph,
24510
24548
  class: "avatar-glyph"
24511
- }, null, 8, ["icon"])) : e.role === "user" ? (J(), Y("svg", gC, [...n[0] ||= [X("path", { d: "M512 170.688a149.312 149.312 0 1 0 0 298.624 149.312 149.312 0 0 0 0-298.624zM277.312 320a234.688 234.688 0 1 1 469.376 0 234.688 234.688 0 0 1-469.376 0zM128 810.688a213.312 213.312 0 0 1 213.312-213.312h341.376A213.312 213.312 0 0 1 896 810.688v128H128v-128z m213.312-128a128 128 0 0 0-128 128v42.688h597.376v-42.688a128 128 0 0 0-128-128H341.312z" }, null, -1)]])) : (J(), Y("svg", _C, [...n[1] ||= [X("path", { d: "M717.12 274H762c82.842 0 150 67.158 150 150v200c0 82.842-67.158 150-150 150H262c-82.842 0-150-67.158-150-150V424c0-82.842 67.158-150 150-150h44.88l-18.268-109.602c-4.086-24.514 12.476-47.7 36.99-51.786 24.514-4.086 47.7 12.476 51.786 36.99l20 120c0.246 1.472 0.416 2.94 0.516 4.398h228.192c0.1-1.46 0.27-2.926 0.516-4.398l20-120c4.086-24.514 27.272-41.076 51.786-36.99 24.514 4.086 41.076 27.272 36.99 51.786L717.12 274zM262 364c-33.138 0-60 26.862-60 60v200c0 33.138 26.862 60 60 60h500c33.138 0 60-26.862 60-60V424c0-33.138-26.862-60-60-60H262z m50 548c-24.852 0-45-20.148-45-45S287.148 822 312 822h400c24.852 0 45 20.148 45 45S736.852 912 712 912H312z m-4-428c0-24.852 20.148-45 45-45S398 459.148 398 484v40c0 24.852-20.148 45-45 45S308 548.852 308 524v-40z m318 0c0-24.852 20.148-45 45-45S716 459.148 716 484v40c0 24.852-20.148 45-45 45S626 548.852 626 524v-40z" }, null, -1)]]));
24549
+ }, null, 8, ["icon"])) : e.role === "user" ? (J(), Y("svg", xC, [...n[0] ||= [X("path", { d: "M512 170.688a149.312 149.312 0 1 0 0 298.624 149.312 149.312 0 0 0 0-298.624zM277.312 320a234.688 234.688 0 1 1 469.376 0 234.688 234.688 0 0 1-469.376 0zM128 810.688a213.312 213.312 0 0 1 213.312-213.312h341.376A213.312 213.312 0 0 1 896 810.688v128H128v-128z m213.312-128a128 128 0 0 0-128 128v42.688h597.376v-42.688a128 128 0 0 0-128-128H341.312z" }, null, -1)]])) : (J(), Y("svg", SC, [...n[1] ||= [X("path", { d: "M717.12 274H762c82.842 0 150 67.158 150 150v200c0 82.842-67.158 150-150 150H262c-82.842 0-150-67.158-150-150V424c0-82.842 67.158-150 150-150h44.88l-18.268-109.602c-4.086-24.514 12.476-47.7 36.99-51.786 24.514-4.086 47.7 12.476 51.786 36.99l20 120c0.246 1.472 0.416 2.94 0.516 4.398h228.192c0.1-1.46 0.27-2.926 0.516-4.398l20-120c4.086-24.514 27.272-41.076 51.786-36.99 24.514 4.086 41.076 27.272 36.99 51.786L717.12 274zM262 364c-33.138 0-60 26.862-60 60v200c0 33.138 26.862 60 60 60h500c33.138 0 60-26.862 60-60V424c0-33.138-26.862-60-60-60H262z m50 548c-24.852 0-45-20.148-45-45S287.148 822 312 822h400c24.852 0 45 20.148 45 45S736.852 912 712 912H312z m-4-428c0-24.852 20.148-45 45-45S398 459.148 398 484v40c0 24.852-20.148 45-45 45S308 548.852 308 524v-40z m318 0c0-24.852 20.148-45 45-45S716 459.148 716 484v40c0 24.852-20.148 45-45 45S626 548.852 626 524v-40z" }, null, -1)]]));
24512
24550
  }
24513
- }), [["__scopeId", "data-v-a0b508ea"]]), yC = ["data-msg-idx"], bC = {
24551
+ }), [["__scopeId", "data-v-a0b508ea"]]), wC = ["data-msg-idx"], TC = {
24514
24552
  key: 0,
24515
24553
  class: "message-avatar"
24516
- }, xC = { class: "message-content" }, SC = {
24554
+ }, EC = { class: "message-content" }, DC = {
24517
24555
  key: 2,
24518
24556
  class: "msg-focuses"
24519
- }, CC = ["title", "onClick"], wC = /*#__PURE__*/ ry(/* @__PURE__ */ Ii({
24557
+ }, OC = ["title", "onClick"], kC = /*#__PURE__*/ oy(/* @__PURE__ */ Ii({
24520
24558
  __name: "MessageRow",
24521
24559
  props: {
24522
24560
  message: {},
@@ -24536,21 +24574,21 @@ app.mount('#app');
24536
24574
  "regenerate"
24537
24575
  ],
24538
24576
  setup(e) {
24539
- let t = e, n = E_(), r = Q(() => t.message.role === "assistant"), i = Q(() => r.value && "reasoning" in t.message ? t.message.reasoning ?? "" : ""), a = Q(() => r.value && "steps" in t.message ? t.message.steps ?? [] : []), o = Q(() => r.value && !!t.message.content && !t.loading && t.isLast), s = Q(() => r.value && t.loading && t.isLast && !!t.message.content);
24577
+ let t = e, n = E_(), r = Qs(() => t.message.role === "assistant"), i = Qs(() => r.value && "reasoning" in t.message ? t.message.reasoning ?? "" : ""), a = Qs(() => r.value && "steps" in t.message ? t.message.steps ?? [] : []), o = Qs(() => r.value && !!t.message.content && !t.loading && t.isLast), s = Qs(() => r.value && t.loading && t.isLast && !!t.message.content);
24540
24578
  return (t, c) => (J(), Y("div", {
24541
24579
  class: H(["message-row", e.message.role]),
24542
24580
  "data-msg-idx": e.index
24543
- }, [e.showAvatar ? (J(), Y("div", bC, [ps(vC, {
24581
+ }, [e.showAvatar ? (J(), Y("div", TC, [Z(CC, {
24544
24582
  role: e.message.role,
24545
24583
  glyph: e.message.role === "user" ? G(n).icons.userAvatar : G(n).icons.assistantAvatar
24546
- }, null, 8, ["role", "glyph"])])) : Z("", !0), X("div", xC, [
24547
- r.value ? (J(), os(Ly, {
24584
+ }, null, 8, ["role", "glyph"])])) : Q("", !0), X("div", EC, [
24585
+ r.value ? (J(), os(Hy, {
24548
24586
  key: 0,
24549
24587
  text: i.value,
24550
24588
  expanded: e.reasoningExpanded,
24551
24589
  onToggle: c[0] ||= (e) => t.$emit("toggle-reasoning")
24552
- }, null, 8, ["text", "expanded"])) : Z("", !0),
24553
- r.value ? (J(), os(pb, {
24590
+ }, null, 8, ["text", "expanded"])) : Q("", !0),
24591
+ r.value ? (J(), os(vb, {
24554
24592
  key: 1,
24555
24593
  steps: a.value,
24556
24594
  icons: G(n).icons,
@@ -24559,14 +24597,14 @@ app.mount('#app');
24559
24597
  "steps",
24560
24598
  "icons",
24561
24599
  "messages"
24562
- ])) : Z("", !0),
24563
- e.message.role === "user" && e.message.focuses?.length ? (J(), Y("div", SC, [(J(!0), Y(q, null, ca(e.message.focuses, (e) => (J(), Y("span", {
24600
+ ])) : Q("", !0),
24601
+ e.message.role === "user" && e.message.focuses?.length ? (J(), Y("div", DC, [(J(!0), Y(q, null, ca(e.message.focuses, (e) => (J(), Y("span", {
24564
24602
  key: e.path,
24565
24603
  class: "msg-focus-chip",
24566
24604
  title: G(n).messages.historyFocusChipTitlePrefix + e.path,
24567
24605
  onClick: (t) => G(n).focusChipClick(e)
24568
- }, [ps(iy, { icon: G(n).icons.focus }, null, 8, ["icon"]), vs(" " + U(e.path), 1)], 8, CC))), 128))])) : Z("", !0),
24569
- ps(cC, {
24606
+ }, [Z(sy, { icon: G(n).icons.focus }, null, 8, ["icon"]), _s(" " + U(e.path), 1)], 8, OC))), 128))])) : Q("", !0),
24607
+ Z(pC, {
24570
24608
  messages: G(n).messages,
24571
24609
  content: e.message.content,
24572
24610
  role: e.message.role,
@@ -24581,39 +24619,39 @@ app.mount('#app');
24581
24619
  "show-typing",
24582
24620
  "show-cursor"
24583
24621
  ]),
24584
- ps(uC, { time: e.time }, null, 8, ["time"]),
24585
- o.value ? (J(), os(hC, {
24622
+ Z(hC, { time: e.time }, null, 8, ["time"]),
24623
+ o.value ? (J(), os(bC, {
24586
24624
  key: 3,
24587
24625
  messages: G(n).messages,
24588
24626
  copied: e.copied,
24589
24627
  onCopy: c[1] ||= (e) => t.$emit("copy"),
24590
24628
  onRegenerate: c[2] ||= (e) => t.$emit("regenerate")
24591
- }, null, 8, ["messages", "copied"])) : Z("", !0)
24592
- ])], 10, yC));
24629
+ }, null, 8, ["messages", "copied"])) : Q("", !0)
24630
+ ])], 10, wC));
24593
24631
  }
24594
- }), [["__scopeId", "data-v-18d4a5dd"]]), TC = { class: "chat-body" }, EC = {
24632
+ }), [["__scopeId", "data-v-18d4a5dd"]]), AC = { class: "chat-body" }, jC = {
24595
24633
  key: 0,
24596
24634
  class: "empty-state"
24597
- }, DC = { class: "empty-icon" }, OC = {
24635
+ }, MC = { class: "empty-icon" }, NC = {
24598
24636
  key: 1,
24599
24637
  class: "message-row assistant"
24600
- }, kC = {
24638
+ }, PC = {
24601
24639
  key: 0,
24602
24640
  class: "message-avatar"
24603
- }, AC = { class: "message-content" }, jC = {
24641
+ }, FC = { class: "message-content" }, IC = {
24604
24642
  key: 2,
24605
24643
  class: "error-bar"
24606
- }, MC = { class: "error-text" }, NC = ["title"], PC = /*#__PURE__*/ ry(/* @__PURE__ */ Ii({
24644
+ }, LC = { class: "error-text" }, RC = ["title"], zC = /*#__PURE__*/ oy(/* @__PURE__ */ Ii({
24607
24645
  __name: "MessageList",
24608
24646
  props: {
24609
24647
  showAvatar: { type: Boolean },
24610
24648
  showTyping: { type: Boolean }
24611
24649
  },
24612
24650
  setup(e) {
24613
- let { chat: t, formatTime: n, copiedMsg: r, copyMessage: i, isPendingAssistant: a, isReasoningExpanded: o, toggleReasoning: s, canUndo: c, undo: l, icons: u, messages: d } = E_(), { state: f, retry: p, regenerate: m } = t, h = Q(() => f.messages.length > 0), g = Q(() => f.messages.some((e) => e.role === "user")), _ = Q(() => f.messages[f.messages.length - 1]?.role === "assistant");
24614
- return (t, v) => (J(), Y("div", TC, [
24615
- h.value ? Z("", !0) : (J(), Y("div", EC, [X("div", DC, [ps(iy, { icon: G(u).empty }, null, 8, ["icon"])]), X("p", null, U(G(d).emptyGreeting), 1)])),
24616
- (J(!0), Y(q, null, ca(G(f).messages, (t, c) => (J(), os(wC, {
24651
+ let { chat: t, formatTime: n, copiedMsg: r, copyMessage: i, isPendingAssistant: a, isReasoningExpanded: o, toggleReasoning: s, canUndo: c, undo: l, icons: u, messages: d } = E_(), { state: f, retry: p, regenerate: m } = t, h = Qs(() => f.messages.length > 0), g = Qs(() => f.messages.some((e) => e.role === "user")), _ = Qs(() => f.messages[f.messages.length - 1]?.role === "assistant");
24652
+ return (t, v) => (J(), Y("div", AC, [
24653
+ h.value ? Q("", !0) : (J(), Y("div", jC, [X("div", MC, [Z(sy, { icon: G(u).empty }, null, 8, ["icon"])]), X("p", null, [Z(ly, { text: G(d).emptyGreeting }, null, 8, ["text"])])])),
24654
+ (J(!0), Y(q, null, ca(G(f).messages, (t, c) => (J(), os(kC, {
24617
24655
  key: c,
24618
24656
  message: t,
24619
24657
  index: c,
@@ -24643,91 +24681,91 @@ app.mount('#app');
24643
24681
  "onCopy",
24644
24682
  "onRegenerate"
24645
24683
  ]))), 128)),
24646
- G(f).loading && !_.value ? (J(), Y("div", OC, [e.showAvatar ? (J(), Y("div", kC, [ps(vC, {
24684
+ G(f).loading && !_.value ? (J(), Y("div", NC, [e.showAvatar ? (J(), Y("div", PC, [Z(CC, {
24647
24685
  role: "assistant",
24648
24686
  glyph: G(u).assistantAvatar
24649
- }, null, 8, ["glyph"])])) : Z("", !0), X("div", AC, [ps(cC, {
24687
+ }, null, 8, ["glyph"])])) : Q("", !0), X("div", FC, [Z(pC, {
24650
24688
  content: "",
24651
24689
  role: "assistant",
24652
24690
  "is-pending-assistant": !0,
24653
24691
  "show-typing": e.showTyping,
24654
24692
  "show-cursor": !1,
24655
24693
  messages: G(d)
24656
- }, null, 8, ["show-typing", "messages"])])])) : Z("", !0),
24657
- G(f).error ? (J(), Y("div", jC, [
24658
- X("span", MC, U(G(f).error), 1),
24694
+ }, null, 8, ["show-typing", "messages"])])])) : Q("", !0),
24695
+ G(f).error ? (J(), Y("div", IC, [
24696
+ X("span", LC, U(G(f).error), 1),
24659
24697
  g.value ? (J(), Y("button", {
24660
24698
  key: 0,
24661
24699
  class: "retry-btn",
24662
24700
  onClick: v[0] ||= (...e) => G(p) && G(p)(...e)
24663
- }, U(G(d).retry), 1)) : Z("", !0),
24701
+ }, [Z(ly, { text: G(d).retry }, null, 8, ["text"])])) : Q("", !0),
24664
24702
  G(c) ? (J(), Y("button", {
24665
24703
  key: 1,
24666
24704
  class: "undo-btn",
24667
24705
  title: G(d).undoTitle,
24668
24706
  onClick: v[1] ||= (...e) => G(l) && G(l)(...e)
24669
- }, U(G(d).undo), 9, NC)) : Z("", !0)
24670
- ])) : Z("", !0)
24707
+ }, [Z(ly, { text: G(d).undo }, null, 8, ["text"])], 8, RC)) : Q("", !0)
24708
+ ])) : Q("", !0)
24671
24709
  ]));
24672
24710
  }
24673
- }), [["__scopeId", "data-v-f293c6ab"]]), FC = {
24711
+ }), [["__scopeId", "data-v-080b33e4"]]), BC = {
24674
24712
  key: 0,
24675
24713
  class: "queued-bar"
24676
- }, IC = { class: "queued-head" }, LC = { class: "queued-icon" }, RC = { class: "queued-title" }, zC = { class: "queued-count" }, BC = { class: "queued-idx" }, VC = { class: "queued-text" }, HC = ["title", "onClick"], UC = ["title", "onClick"], WC = /*#__PURE__*/ ry(/* @__PURE__ */ Ii({
24714
+ }, VC = { class: "queued-head" }, HC = { class: "queued-icon" }, UC = { class: "queued-title" }, WC = { class: "queued-count" }, GC = { class: "queued-idx" }, KC = { class: "queued-text" }, qC = ["title", "onClick"], JC = ["title", "onClick"], YC = /*#__PURE__*/ oy(/* @__PURE__ */ Ii({
24677
24715
  __name: "QueuedBar",
24678
24716
  setup(e) {
24679
24717
  let { chat: t, editQueued: n, icons: r, messages: i } = E_(), { queuedTasks: a, removeQueuedTask: o } = t;
24680
- return (e, t) => G(a).length ? (J(), Y("div", FC, [X("div", IC, [
24681
- X("span", LC, [ps(iy, { icon: G(r).queued }, null, 8, ["icon"])]),
24682
- X("span", RC, U(G(i).queuedTitle), 1),
24683
- X("span", zC, U(G(a).length), 1)
24718
+ return (e, t) => G(a).length ? (J(), Y("div", BC, [X("div", VC, [
24719
+ X("span", HC, [Z(sy, { icon: G(r).queued }, null, 8, ["icon"])]),
24720
+ X("span", UC, U(G(i).queuedTitle), 1),
24721
+ X("span", WC, U(G(a).length), 1)
24684
24722
  ]), (J(!0), Y(q, null, ca(G(a), (e, t) => (J(), Y("div", {
24685
24723
  key: t,
24686
24724
  class: "queued-item"
24687
24725
  }, [
24688
- X("span", BC, U(t + 1), 1),
24689
- X("span", VC, U(e), 1),
24726
+ X("span", GC, U(t + 1), 1),
24727
+ X("span", KC, U(e), 1),
24690
24728
  X("button", {
24691
24729
  class: "queued-act",
24692
24730
  title: G(i).queuedEditTitle,
24693
24731
  onClick: (e) => G(n)(t)
24694
- }, [ps(iy, { icon: G(r).queuedEdit }, null, 8, ["icon"])], 8, HC),
24732
+ }, [Z(sy, { icon: G(r).queuedEdit }, null, 8, ["icon"])], 8, qC),
24695
24733
  X("button", {
24696
24734
  class: "queued-act queued-del",
24697
24735
  title: G(i).removeQueuedTitle,
24698
24736
  onClick: (e) => G(o)(t)
24699
- }, "✕", 8, UC)
24700
- ]))), 128))])) : Z("", !0);
24737
+ }, "✕", 8, JC)
24738
+ ]))), 128))])) : Q("", !0);
24701
24739
  }
24702
- }), [["__scopeId", "data-v-7b61eb04"]]), GC = {
24740
+ }), [["__scopeId", "data-v-7b61eb04"]]), XC = {
24703
24741
  key: 0,
24704
24742
  class: "approval-bar"
24705
- }, KC = { class: "approval-head" }, qC = { class: "approval-title" }, JC = {
24743
+ }, ZC = { class: "approval-head" }, QC = { class: "approval-title" }, $C = {
24706
24744
  key: 0,
24707
24745
  class: "approval-question"
24708
- }, YC = {
24746
+ }, ew = {
24709
24747
  key: 1,
24710
24748
  class: "approval-context"
24711
- }, XC = {
24749
+ }, tw = {
24712
24750
  key: 2,
24713
24751
  class: "approval-recommend"
24714
- }, ZC = {
24752
+ }, nw = {
24715
24753
  key: 3,
24716
24754
  class: "approval-options"
24717
- }, QC = ["onClick"], $C = { class: "approval-actions" }, ew = { class: "approval-head" }, tw = { class: "approval-title" }, nw = {
24755
+ }, rw = ["onClick"], iw = { class: "approval-actions" }, aw = { class: "approval-head" }, ow = { class: "approval-title" }, sw = {
24718
24756
  key: 0,
24719
24757
  class: "approval-args"
24720
- }, rw = { class: "approval-actions" }, iw = /*#__PURE__*/ ry(/* @__PURE__ */ Ii({
24758
+ }, cw = { class: "approval-actions" }, lw = /*#__PURE__*/ oy(/* @__PURE__ */ Ii({
24721
24759
  __name: "ApprovalBar",
24722
24760
  setup(e) {
24723
24761
  let t = E_(), { pendingApproval: n, resolveApproval: r } = t.chat, i = t.messages, a = /* @__PURE__ */ wn(!1);
24724
24762
  ri(n, () => {
24725
24763
  a.value = !1;
24726
24764
  });
24727
- let o = Q(() => n.value?.toolName === "request_human_confirmation"), s = Q(() => {
24765
+ let o = Qs(() => n.value?.toolName === "request_human_confirmation"), s = Qs(() => {
24728
24766
  let e = n.value?.args?.options;
24729
24767
  return Array.isArray(e) ? e.map(String) : [];
24730
- }), c = Q(() => {
24768
+ }), c = Qs(() => {
24731
24769
  let e = n.value?.args;
24732
24770
  if (e == null) return "";
24733
24771
  try {
@@ -24737,51 +24775,51 @@ app.mount('#app');
24737
24775
  return String(e);
24738
24776
  }
24739
24777
  });
24740
- return (e, l) => G(n) ? (J(), Y("div", GC, [o.value ? (J(), Y(q, { key: 0 }, [
24741
- X("div", KC, [l[5] ||= X("span", { class: "approval-icon" }, "❓", -1), X("span", qC, U(G(i).humanConfirmTitle), 1)]),
24742
- G(n).args?.question ? (J(), Y("div", JC, U(G(n).args.question), 1)) : Z("", !0),
24743
- G(n).args?.context ? (J(), Y("div", YC, U(G(n).args.context), 1)) : Z("", !0),
24744
- G(n).args?.recommendation ? (J(), Y("div", XC, [ps(iy, { icon: G(t).icons.recommend }, null, 8, ["icon"]), vs(U(G(i).recommendPrefix) + U(G(n).args.recommendation), 1)])) : Z("", !0),
24745
- s.value.length ? (J(), Y("div", ZC, [(J(!0), Y(q, null, ca(s.value, (e) => (J(), Y("button", {
24778
+ return (e, l) => G(n) ? (J(), Y("div", XC, [o.value ? (J(), Y(q, { key: 0 }, [
24779
+ X("div", ZC, [l[5] ||= X("span", { class: "approval-icon" }, "❓", -1), X("span", QC, U(G(i).humanConfirmTitle), 1)]),
24780
+ G(n).args?.question ? (J(), Y("div", $C, U(G(n).args.question), 1)) : Q("", !0),
24781
+ G(n).args?.context ? (J(), Y("div", ew, U(G(n).args.context), 1)) : Q("", !0),
24782
+ G(n).args?.recommendation ? (J(), Y("div", tw, [Z(sy, { icon: G(t).icons.recommend }, null, 8, ["icon"]), _s(U(G(i).recommendPrefix) + U(G(n).args.recommendation), 1)])) : Q("", !0),
24783
+ s.value.length ? (J(), Y("div", nw, [(J(!0), Y(q, null, ca(s.value, (e) => (J(), Y("button", {
24746
24784
  key: e,
24747
24785
  class: "approval-opt",
24748
24786
  onClick: (t) => G(r)(e)
24749
- }, U(e), 9, QC))), 128))])) : Z("", !0),
24750
- X("div", $C, [X("button", {
24787
+ }, U(e), 9, rw))), 128))])) : Q("", !0),
24788
+ X("div", iw, [X("button", {
24751
24789
  class: "approval-deny",
24752
24790
  onClick: l[0] ||= (e) => G(r)(!1)
24753
- }, U(G(i).deny), 1), s.value.length ? Z("", !0) : (J(), Y("button", {
24791
+ }, [Z(ly, { text: G(i).deny }, null, 8, ["text"])]), s.value.length ? Q("", !0) : (J(), Y("button", {
24754
24792
  key: 0,
24755
24793
  class: "approval-allow",
24756
24794
  onClick: l[1] ||= (e) => G(r)(!0)
24757
- }, U(G(i).approve), 1))])
24795
+ }, [Z(ly, { text: G(i).approve }, null, 8, ["text"])]))])
24758
24796
  ], 64)) : (J(), Y(q, { key: 1 }, [
24759
- X("div", ew, [
24797
+ X("div", aw, [
24760
24798
  l[6] ||= X("span", { class: "approval-icon" }, "✋", -1),
24761
- X("span", tw, [vs(U(G(i).toolConfirmPrefix), 1), X("code", null, U(G(n).toolName), 1)]),
24799
+ X("span", ow, [_s(U(G(i).toolConfirmPrefix), 1), X("code", null, U(G(n).toolName), 1)]),
24762
24800
  c.value ? (J(), Y("button", {
24763
24801
  key: 0,
24764
24802
  class: "approval-toggle",
24765
24803
  onClick: l[2] ||= (e) => a.value = !a.value
24766
- }, U(a.value ? G(i).collapseArgs : G(i).viewArgs) + U(a.value ? " ▴" : " ▾"), 1)) : Z("", !0)
24804
+ }, U(a.value ? G(i).collapseArgs : G(i).viewArgs) + U(a.value ? " ▴" : " ▾"), 1)) : Q("", !0)
24767
24805
  ]),
24768
- c.value && a.value ? (J(), Y("pre", nw, U(c.value), 1)) : Z("", !0),
24769
- X("div", rw, [X("button", {
24806
+ c.value && a.value ? (J(), Y("pre", sw, U(c.value), 1)) : Q("", !0),
24807
+ X("div", cw, [X("button", {
24770
24808
  class: "approval-deny",
24771
24809
  onClick: l[3] ||= (e) => G(r)(!1)
24772
- }, U(G(i).deny), 1), X("button", {
24810
+ }, [Z(ly, { text: G(i).deny }, null, 8, ["text"])]), X("button", {
24773
24811
  class: "approval-allow",
24774
24812
  onClick: l[4] ||= (e) => G(r)(!0)
24775
- }, U(G(i).approve), 1)])
24776
- ], 64))])) : Z("", !0);
24813
+ }, [Z(ly, { text: G(i).approve }, null, 8, ["text"])])])
24814
+ ], 64))])) : Q("", !0);
24777
24815
  }
24778
- }), [["__scopeId", "data-v-b7a72fd2"]]), aw = {
24816
+ }), [["__scopeId", "data-v-8566d3cd"]]), uw = {
24779
24817
  key: 0,
24780
24818
  class: "conflict-bar"
24781
- }, ow = { class: "conflict-head" }, sw = { class: "conflict-icon" }, cw = { class: "conflict-title" }, lw = { class: "conflict-detail" }, uw = {
24819
+ }, dw = { class: "conflict-head" }, fw = { class: "conflict-icon" }, pw = { class: "conflict-title" }, mw = { class: "conflict-detail" }, hw = {
24782
24820
  key: 0,
24783
24821
  class: "conflict-diff"
24784
- }, dw = { class: "conflict-diff-col" }, fw = { class: "conflict-diff-label" }, pw = { class: "conflict-diff-pre" }, mw = { class: "conflict-diff-col" }, hw = { class: "conflict-diff-label" }, gw = { class: "conflict-diff-pre" }, _w = { class: "conflict-actions" }, vw = ["title"], yw = ["title"], bw = ["title"], xw = /*#__PURE__*/ ry(/* @__PURE__ */ Ii({
24822
+ }, gw = { class: "conflict-diff-col" }, _w = { class: "conflict-diff-label" }, vw = { class: "conflict-diff-pre" }, yw = { class: "conflict-diff-col" }, bw = { class: "conflict-diff-label" }, xw = { class: "conflict-diff-pre" }, Sw = { class: "conflict-actions" }, Cw = ["title"], ww = ["title"], Tw = ["title"], Ew = /*#__PURE__*/ oy(/* @__PURE__ */ Ii({
24785
24823
  __name: "ConflictBar",
24786
24824
  props: {
24787
24825
  pendingConflict: {},
@@ -24794,7 +24832,7 @@ app.mount('#app');
24794
24832
  ri(() => t.pendingConflict, () => {
24795
24833
  n.value = !1;
24796
24834
  });
24797
- let r = Q(() => {
24835
+ let r = Qs(() => {
24798
24836
  let e = t.pendingConflict?.agentValue;
24799
24837
  if (e === void 0) return "";
24800
24838
  try {
@@ -24803,7 +24841,7 @@ app.mount('#app');
24803
24841
  } catch {
24804
24842
  return String(e);
24805
24843
  }
24806
- }), i = Q(() => {
24844
+ }), i = Qs(() => {
24807
24845
  let e = t.pendingConflict?.currentValue;
24808
24846
  if (e == null) return "";
24809
24847
  try {
@@ -24813,47 +24851,47 @@ app.mount('#app');
24813
24851
  return String(e);
24814
24852
  }
24815
24853
  });
24816
- return (t, a) => e.pendingConflict ? (J(), Y("div", aw, [
24817
- X("div", ow, [X("span", sw, [ps(iy, { icon: e.icons.conflict }, null, 8, ["icon"])]), X("span", cw, [
24818
- vs(U(e.messages.conflictTitlePrefix), 1),
24854
+ return (t, a) => e.pendingConflict ? (J(), Y("div", uw, [
24855
+ X("div", dw, [X("span", fw, [Z(sy, { icon: e.icons.conflict }, null, 8, ["icon"])]), X("span", pw, [
24856
+ _s(U(e.messages.conflictTitlePrefix), 1),
24819
24857
  X("code", null, U(e.pendingConflict.path), 1),
24820
- vs(U(e.messages.conflictTitleSuffix), 1)
24858
+ _s(U(e.messages.conflictTitleSuffix), 1)
24821
24859
  ])]),
24822
- X("div", lw, U(e.messages.conflictDetailTemplate.replace("{op}", e.pendingConflict.op === "delete" ? e.messages.conflictOpDelete : e.messages.conflictOpWrite)), 1),
24860
+ X("div", mw, U(e.messages.conflictDetailTemplate.replace("{op}", e.pendingConflict.op === "delete" ? e.messages.conflictOpDelete : e.messages.conflictOpWrite)), 1),
24823
24861
  X("button", {
24824
24862
  class: "conflict-toggle",
24825
24863
  onClick: a[0] ||= (e) => n.value = !n.value
24826
24864
  }, U(n.value ? e.messages.collapseDiff : e.messages.viewDiff) + U(n.value ? " ▴" : " ▾"), 1),
24827
- n.value ? (J(), Y("div", uw, [X("div", dw, [X("div", fw, U(e.messages.agentValueLabel), 1), X("pre", pw, U(r.value || e.messages.deleteNoValue), 1)]), X("div", mw, [X("div", hw, U(e.messages.currentValueLabel), 1), X("pre", gw, U(i.value), 1)])])) : Z("", !0),
24828
- X("div", _w, [
24865
+ n.value ? (J(), Y("div", hw, [X("div", gw, [X("div", _w, U(e.messages.agentValueLabel), 1), X("pre", vw, U(r.value || e.messages.deleteNoValue), 1)]), X("div", yw, [X("div", bw, U(e.messages.currentValueLabel), 1), X("pre", xw, U(i.value), 1)])])) : Q("", !0),
24866
+ X("div", Sw, [
24829
24867
  X("button", {
24830
24868
  class: "conflict-keep",
24831
24869
  onClick: a[1] ||= (t) => e.onResolve?.("keep_external"),
24832
24870
  title: e.messages.keepExternalTitle
24833
- }, U(e.messages.keepExternal), 9, vw),
24871
+ }, [Z(ly, { text: e.messages.keepExternal }, null, 8, ["text"])], 8, Cw),
24834
24872
  X("button", {
24835
24873
  class: "conflict-overwrite",
24836
24874
  onClick: a[2] ||= (t) => e.onResolve?.("overwrite"),
24837
24875
  title: e.messages.overwriteTitle
24838
- }, U(e.messages.overwrite), 9, yw),
24876
+ }, [Z(ly, { text: e.messages.overwrite }, null, 8, ["text"])], 8, ww),
24839
24877
  X("button", {
24840
24878
  class: "conflict-restore",
24841
24879
  onClick: a[3] ||= (t) => e.onResolve?.("restore"),
24842
24880
  title: e.messages.restoreTitle
24843
- }, U(e.messages.restore), 9, bw)
24881
+ }, [Z(ly, { text: e.messages.restore }, null, 8, ["text"])], 8, Tw)
24844
24882
  ])
24845
- ])) : Z("", !0);
24883
+ ])) : Q("", !0);
24846
24884
  }
24847
- }), [["__scopeId", "data-v-9796837c"]]), Sw = { class: "chat-footer" }, Cw = ["title"], ww = { class: "chat-input-wrap" }, Tw = {
24885
+ }), [["__scopeId", "data-v-8263b7d4"]]), Dw = { class: "chat-footer" }, Ow = ["title"], kw = { class: "chat-input-wrap" }, Aw = {
24848
24886
  key: 0,
24849
24887
  class: "focus-chips"
24850
- }, Ew = ["title", "onClick"], Dw = { class: "focus-chip-icon" }, Ow = { class: "focus-chip-path" }, kw = ["title", "onClick"], Aw = ["placeholder", "rows"], jw = { class: "input-actions" }, Mw = { class: "send-hint" }, Nw = ["disabled", "title"], Pw = {
24888
+ }, jw = ["title", "onClick"], Mw = { class: "focus-chip-icon" }, Nw = { class: "focus-chip-path" }, Pw = ["title", "onClick"], Fw = ["placeholder", "rows"], Iw = { class: "input-actions" }, Lw = { class: "send-hint" }, Rw = ["disabled", "title"], zw = {
24851
24889
  key: 0,
24852
24890
  width: "16",
24853
24891
  height: "16",
24854
24892
  viewBox: "0 0 24 24",
24855
24893
  fill: "currentColor"
24856
- }, Fw = {
24894
+ }, Bw = {
24857
24895
  key: 2,
24858
24896
  width: "18",
24859
24897
  height: "18",
@@ -24861,7 +24899,7 @@ app.mount('#app');
24861
24899
  fill: "none",
24862
24900
  stroke: "currentColor",
24863
24901
  "stroke-width": "2"
24864
- }, Iw = /*#__PURE__*/ ry(/* @__PURE__ */ Ii({
24902
+ }, Vw = /*#__PURE__*/ oy(/* @__PURE__ */ Ii({
24865
24903
  __name: "ChatInput",
24866
24904
  props: {
24867
24905
  placeholder: {},
@@ -24869,241 +24907,241 @@ app.mount('#app');
24869
24907
  },
24870
24908
  setup(e) {
24871
24909
  let t = E_(), { inputText: n, send: r, keydown: i, canUndo: a, undo: o, focuses: s, removeFocus: c, focusChipClick: l, icons: u, messages: d } = t, { state: f, stop: p } = t.chat;
24872
- return (t, m) => (J(), Y("div", Sw, [G(a) ? (J(), Y("button", {
24910
+ return (t, m) => (J(), Y("div", Dw, [G(a) ? (J(), Y("button", {
24873
24911
  key: 0,
24874
24912
  class: "undo-foot-btn",
24875
24913
  title: G(d).undoTitle,
24876
24914
  onClick: m[0] ||= (...e) => G(o) && G(o)(...e)
24877
- }, U(G(d).undo), 9, Cw)) : Z("", !0), X("div", ww, [
24878
- G(s).length ? (J(), Y("div", Tw, [(J(!0), Y(q, null, ca(G(s), (e) => (J(), Y("span", {
24915
+ }, U(G(d).undo), 9, Ow)) : Q("", !0), X("div", kw, [
24916
+ G(s).length ? (J(), Y("div", Aw, [(J(!0), Y(q, null, ca(G(s), (e) => (J(), Y("span", {
24879
24917
  key: e.path,
24880
24918
  class: "focus-chip",
24881
24919
  title: G(d).focusChipTitlePrefix + e.path + G(d).focusChipTitleHint,
24882
24920
  onClick: (t) => G(l)(e)
24883
24921
  }, [
24884
- X("span", Dw, [ps(iy, { icon: G(u).focus }, null, 8, ["icon"])]),
24885
- X("code", Ow, U(e.path), 1),
24922
+ X("span", Mw, [Z(sy, { icon: G(u).focus }, null, 8, ["icon"])]),
24923
+ X("code", Nw, U(e.path), 1),
24886
24924
  X("button", {
24887
24925
  type: "button",
24888
24926
  class: "focus-chip-x",
24889
24927
  "data-test": "focus-clear",
24890
24928
  title: G(d).removeFocus,
24891
24929
  onClick: yl((t) => G(c)(e.path), ["stop"])
24892
- }, "✕", 8, kw)
24893
- ], 8, Ew))), 128))])) : Z("", !0),
24930
+ }, "✕", 8, Pw)
24931
+ ], 8, jw))), 128))])) : Q("", !0),
24894
24932
  Zr(X("textarea", {
24895
24933
  "onUpdate:modelValue": m[1] ||= (e) => /* @__PURE__ */ Cn(n) ? n.value = e : null,
24896
24934
  class: H(["chat-input", { "has-focus-chip": G(s).length > 0 }]),
24897
24935
  placeholder: e.placeholder,
24898
24936
  rows: e.inputRows,
24899
24937
  onKeydown: m[2] ||= (...e) => G(i) && G(i)(...e)
24900
- }, null, 42, Aw), [[gl, G(n)]]),
24901
- X("div", jw, [X("span", Mw, U(G(d).sendHint), 1), X("button", {
24938
+ }, null, 42, Fw), [[gl, G(n)]]),
24939
+ X("div", Iw, [X("span", Lw, U(G(d).sendHint), 1), X("button", {
24902
24940
  class: H(["send-btn", { "stop-btn": G(f).loading }]),
24903
24941
  disabled: !G(f).loading && !G(n).trim(),
24904
24942
  title: G(f).loading ? G(d).stopTitle : G(d).sendTitle,
24905
24943
  onClick: m[3] ||= (e) => G(f).loading ? G(p)() : G(r)()
24906
- }, [G(f).loading ? (J(), Y("svg", Pw, [...m[4] ||= [X("rect", {
24944
+ }, [G(f).loading ? (J(), Y("svg", zw, [...m[4] ||= [X("rect", {
24907
24945
  x: "6",
24908
24946
  y: "6",
24909
24947
  width: "12",
24910
24948
  height: "12",
24911
24949
  rx: "2"
24912
- }, null, -1)]])) : G(u).send ? (J(), os(iy, {
24950
+ }, null, -1)]])) : G(u).send ? (J(), os(sy, {
24913
24951
  key: 1,
24914
24952
  icon: G(u).send
24915
- }, null, 8, ["icon"])) : (J(), Y("svg", Fw, [...m[5] ||= [X("line", {
24953
+ }, null, 8, ["icon"])) : (J(), Y("svg", Bw, [...m[5] ||= [X("line", {
24916
24954
  x1: "22",
24917
24955
  y1: "2",
24918
24956
  x2: "11",
24919
24957
  y2: "13"
24920
- }, null, -1), X("polygon", { points: "22 2 15 22 11 13 2 9 22 2" }, null, -1)]]))], 10, Nw)])
24958
+ }, null, -1), X("polygon", { points: "22 2 15 22 11 13 2 9 22 2" }, null, -1)]]))], 10, Rw)])
24921
24959
  ])]));
24922
24960
  }
24923
- }), [["__scopeId", "data-v-9114bce6"]]), Lw = {
24961
+ }), [["__scopeId", "data-v-9114bce6"]]), Hw = {
24924
24962
  key: 0,
24925
24963
  class: "debug-drawer"
24926
- }, Rw = { class: "drawer-header" }, zw = { class: "tab-group" }, Bw = { class: "header-actions" }, Vw = ["title"], Hw = ["title"], Uw = {
24964
+ }, Uw = { class: "drawer-header" }, Ww = { class: "tab-group" }, Gw = { class: "header-actions" }, Kw = ["title"], qw = ["title"], Jw = {
24927
24965
  key: 0,
24928
24966
  class: "drawer-filters"
24929
- }, Ww = ["onClick"], Gw = { class: "chip-count" }, Kw = { class: "chip-count" }, qw = { class: "drawer-body" }, Jw = {
24967
+ }, Yw = ["onClick"], Xw = { class: "chip-count" }, Zw = { class: "chip-count" }, Qw = { class: "drawer-body" }, $w = {
24930
24968
  key: 0,
24931
24969
  class: "trace-panel"
24932
- }, Yw = {
24970
+ }, eT = {
24933
24971
  key: 0,
24934
24972
  class: "trace-empty"
24935
- }, Xw = { class: "trace-metrics" }, Zw = { class: "metric-card" }, Qw = { class: "metric-card" }, $w = { class: "metric-card" }, eT = { class: "metric-card" }, tT = {
24973
+ }, tT = { class: "trace-metrics" }, nT = { class: "metric-card" }, rT = { class: "metric-card" }, iT = { class: "metric-card" }, aT = { class: "metric-card" }, oT = {
24936
24974
  key: 0,
24937
24975
  class: "metric-card"
24938
- }, nT = {
24976
+ }, sT = {
24939
24977
  key: 1,
24940
24978
  class: "metric-card"
24941
- }, rT = { class: "trace-spans" }, iT = { class: "span-ico" }, aT = { class: "span-name" }, oT = {
24979
+ }, cT = { class: "trace-spans" }, lT = { class: "span-ico" }, uT = { class: "span-name" }, dT = {
24942
24980
  key: 0,
24943
24981
  class: "span-dur"
24944
- }, sT = {
24982
+ }, fT = {
24945
24983
  key: 1,
24946
24984
  class: "span-status"
24947
- }, cT = {
24985
+ }, pT = {
24948
24986
  key: 1,
24949
24987
  class: "context-panel"
24950
- }, lT = {
24988
+ }, mT = {
24951
24989
  key: 0,
24952
24990
  class: "trace-empty"
24953
- }, uT = { class: "ctx-overview" }, dT = { class: "ctx-occupancy" }, fT = ["title"], pT = ["title"], mT = { class: "ctx-pct" }, hT = { class: "ctx-kv-row" }, gT = { class: "ctx-kv" }, _T = {
24991
+ }, hT = { class: "ctx-overview" }, gT = { class: "ctx-occupancy" }, _T = ["title"], vT = ["title"], yT = { class: "ctx-pct" }, bT = { class: "ctx-kv-row" }, xT = { class: "ctx-kv" }, ST = {
24954
24992
  key: 0,
24955
24993
  class: "ctx-kv"
24956
- }, vT = {
24994
+ }, CT = {
24957
24995
  key: 1,
24958
24996
  class: "ctx-kv"
24959
- }, yT = { class: "ctx-section-title" }, bT = ["title"], xT = { class: "ctx-cat-bar" }, ST = { class: "ctx-cat-tokens" }, CT = {
24997
+ }, wT = { class: "ctx-section-title" }, TT = ["title"], ET = { class: "ctx-cat-bar" }, DT = { class: "ctx-cat-tokens" }, OT = {
24960
24998
  key: 0,
24961
24999
  class: "ctx-compression"
24962
- }, wT = { class: "ctx-section-title" }, TT = { class: "ctx-kv-row" }, ET = { class: "ctx-kv" }, DT = { class: "ctx-kv" }, OT = { class: "ctx-kv" }, kT = {
25000
+ }, kT = { class: "ctx-section-title" }, AT = { class: "ctx-kv-row" }, jT = { class: "ctx-kv" }, MT = { class: "ctx-kv" }, NT = { class: "ctx-kv" }, PT = {
24963
25001
  key: 0,
24964
25002
  class: "ctx-kv"
24965
- }, AT = {
25003
+ }, FT = {
24966
25004
  key: 2,
24967
25005
  class: "subagent-panel"
24968
- }, jT = {
25006
+ }, IT = {
24969
25007
  key: 0,
24970
25008
  class: "sub-section"
24971
- }, MT = { class: "sub-section-title" }, NT = {
25009
+ }, LT = { class: "sub-section-title" }, RT = {
24972
25010
  key: 1,
24973
25011
  class: "trace-empty"
24974
- }, PT = {
25012
+ }, zT = {
24975
25013
  key: 0,
24976
25014
  class: "sub-section"
24977
- }, FT = { class: "sub-section-title" }, IT = { class: "sub-head" }, LT = { class: "sub-label" }, RT = { class: "sub-steps-badge" }, zT = { class: "sub-task" }, BT = {
25015
+ }, BT = { class: "sub-section-title" }, VT = { class: "sub-head" }, HT = { class: "sub-label" }, UT = { class: "sub-steps-badge" }, WT = { class: "sub-task" }, GT = {
24978
25016
  key: 1,
24979
25017
  class: "sub-section"
24980
- }, VT = { class: "sub-section-title" }, HT = { class: "sub-head" }, UT = { class: "sub-label" }, WT = {
25018
+ }, KT = { class: "sub-section-title" }, qT = { class: "sub-head" }, JT = { class: "sub-label" }, YT = {
24981
25019
  key: 0,
24982
25020
  class: "sub-dur"
24983
- }, GT = ["onClick"], KT = { class: "sub-task" }, qT = {
25021
+ }, XT = ["onClick"], ZT = { class: "sub-task" }, QT = {
24984
25022
  key: 0,
24985
25023
  class: "sub-result"
24986
- }, JT = {
25024
+ }, $T = {
24987
25025
  key: 1,
24988
25026
  class: "sub-steps-list"
24989
- }, YT = { class: "sub-step-kind" }, XT = { class: "sub-step-name" }, ZT = { class: "sub-step-ts" }, QT = {
25027
+ }, eE = { class: "sub-step-kind" }, tE = { class: "sub-step-name" }, nE = { class: "sub-step-ts" }, rE = {
24990
25028
  key: 0,
24991
25029
  class: "empty"
24992
- }, $T = { class: "log-head" }, eE = {
25030
+ }, iE = { class: "log-head" }, aE = {
24993
25031
  key: 0,
24994
25032
  class: "log-source"
24995
- }, tE = { class: "log-time" }, nE = { class: "log-body" }, rE = { class: "kv-grid" }, iE = { class: "kv" }, aE = { class: "k" }, oE = { class: "v" }, sE = { class: "kv" }, cE = { class: "k" }, lE = { class: "v" }, uE = { class: "kv" }, dE = { class: "v" }, fE = { class: "kv" }, pE = { class: "k" }, mE = { class: "v" }, hE = { class: "section-label" }, gE = { class: "chip-row" }, _E = { class: "section-label" }, vE = { class: "msg-list" }, yE = { class: "msg-text" }, bE = { class: "badge-row" }, xE = { class: "badge" }, SE = {
25033
+ }, oE = { class: "log-time" }, sE = { class: "log-body" }, cE = { class: "kv-grid" }, lE = { class: "kv" }, uE = { class: "k" }, dE = { class: "v" }, fE = { class: "kv" }, pE = { class: "k" }, mE = { class: "v" }, hE = { class: "kv" }, gE = { class: "v" }, _E = { class: "kv" }, vE = { class: "k" }, yE = { class: "v" }, bE = { class: "section-label" }, xE = { class: "chip-row" }, SE = { class: "section-label" }, CE = { class: "msg-list" }, wE = { class: "msg-text" }, TE = { class: "badge-row" }, EE = { class: "badge" }, DE = {
24996
25034
  key: 0,
24997
25035
  class: "badge muted"
24998
- }, CE = { class: "badge muted" }, wE = {
25036
+ }, OE = { class: "badge muted" }, kE = {
24999
25037
  key: 1,
25000
25038
  class: "badge muted"
25001
- }, TE = ["onClick"], EE = {
25039
+ }, AE = ["onClick"], jE = {
25002
25040
  key: 0,
25003
25041
  class: "msg-list"
25004
- }, DE = { class: "msg-detail" }, OE = {
25042
+ }, ME = { class: "msg-detail" }, NE = {
25005
25043
  key: 0,
25006
25044
  class: "msg-text"
25007
- }, kE = { class: "tc-inline-name" }, AE = { class: "tc-inline-args" }, jE = {
25045
+ }, PE = { class: "tc-inline-name" }, FE = { class: "tc-inline-args" }, IE = {
25008
25046
  key: 1,
25009
25047
  class: "tc-id"
25010
- }, ME = {
25048
+ }, LE = {
25011
25049
  key: 1,
25012
25050
  class: "log-raw"
25013
- }, NE = { class: "badge-row" }, PE = { class: "badge" }, FE = {
25051
+ }, RE = { class: "badge-row" }, zE = { class: "badge" }, BE = {
25014
25052
  key: 0,
25015
25053
  class: "badge warn"
25016
- }, IE = {
25054
+ }, VE = {
25017
25055
  key: 0,
25018
25056
  class: "resp-content"
25019
- }, LE = {
25057
+ }, HE = {
25020
25058
  key: 1,
25021
25059
  class: "tc-list"
25022
- }, RE = { class: "tc-name" }, zE = { class: "tc-args" }, BE = {
25060
+ }, UE = { class: "tc-name" }, WE = { class: "tc-args" }, GE = {
25023
25061
  key: 2,
25024
25062
  class: "usage-row"
25025
- }, VE = { class: "usage" }, HE = { class: "usage" }, UE = { class: "usage" }, WE = {
25063
+ }, KE = { class: "usage" }, qE = { class: "usage" }, JE = { class: "usage" }, YE = {
25026
25064
  key: 3,
25027
25065
  class: "tc-card inline"
25028
- }, GE = { class: "tc-name" }, KE = { class: "tc-args" }, qE = {
25066
+ }, XE = { class: "tc-name" }, ZE = { class: "tc-args" }, QE = {
25029
25067
  key: 4,
25030
25068
  class: "tc-card inline"
25031
- }, JE = { class: "tc-name" }, YE = { class: "tc-args" }, XE = {
25069
+ }, $E = { class: "tc-name" }, eD = { class: "tc-args" }, tD = {
25032
25070
  key: 5,
25033
25071
  class: "err-box"
25034
- }, ZE = { class: "log-footer" }, QE = ["onClick"], $E = ["onClick"], eD = {
25072
+ }, nD = { class: "log-footer" }, rD = ["onClick"], iD = ["onClick"], aD = {
25035
25073
  key: 0,
25036
25074
  class: "log-raw"
25037
- }, tD = {
25075
+ }, oD = {
25038
25076
  key: 0,
25039
25077
  class: "empty"
25040
- }, nD = {
25078
+ }, sD = {
25041
25079
  key: 1,
25042
25080
  class: "flow-section"
25043
- }, rD = { class: "flow-section-title" }, iD = { class: "flow-ico" }, aD = { class: "flow-label" }, oD = { class: "flow-detail" }, sD = { class: "flow-time" }, cD = { class: "flow-round-head" }, lD = { class: "flow-round-body" }, uD = { class: "flow-ico" }, dD = { class: "flow-label" }, fD = { class: "flow-detail" }, pD = { class: "flow-time" }, mD = {
25081
+ }, cD = { class: "flow-section-title" }, lD = { class: "flow-ico" }, uD = { class: "flow-label" }, dD = { class: "flow-detail" }, fD = { class: "flow-time" }, pD = { class: "flow-round-head" }, mD = { class: "flow-round-body" }, hD = { class: "flow-ico" }, gD = { class: "flow-label" }, _D = { class: "flow-detail" }, vD = { class: "flow-time" }, yD = {
25044
25082
  key: 5,
25045
25083
  class: "info-body"
25046
- }, hD = {
25084
+ }, bD = {
25047
25085
  key: 0,
25048
25086
  class: "empty"
25049
- }, gD = { class: "info-section" }, _D = { class: "info-title" }, vD = { class: "kv-grid" }, yD = { class: "kv" }, bD = { class: "v" }, xD = { class: "kv" }, SD = { class: "k" }, CD = { class: "v" }, wD = { class: "kv" }, TD = { class: "k" }, ED = { class: "v" }, DD = { class: "kv" }, OD = { class: "k" }, kD = { class: "v" }, AD = {
25087
+ }, xD = { class: "info-section" }, SD = { class: "info-title" }, CD = { class: "kv-grid" }, wD = { class: "kv" }, TD = { class: "v" }, ED = { class: "kv" }, DD = { class: "k" }, OD = { class: "v" }, kD = { class: "kv" }, AD = { class: "k" }, jD = { class: "v" }, MD = { class: "kv" }, ND = { class: "k" }, PD = { class: "v" }, FD = {
25050
25088
  class: "kv",
25051
25089
  style: { "margin-top": "6px" }
25052
- }, jD = { class: "k" }, MD = {
25090
+ }, ID = { class: "k" }, LD = {
25053
25091
  class: "v",
25054
25092
  style: { "font-size": "11px" }
25055
- }, ND = { class: "info-section" }, PD = { class: "info-title" }, FD = { class: "info-name" }, ID = { class: "info-desc" }, LD = {
25093
+ }, RD = { class: "info-section" }, zD = { class: "info-title" }, BD = { class: "info-name" }, VD = { class: "info-desc" }, HD = {
25056
25094
  key: 0,
25057
25095
  class: "info-section"
25058
- }, RD = { class: "info-title" }, zD = { class: "info-hint" }, BD = ["onClick"], VD = { class: "info-desc" }, HD = {
25096
+ }, UD = { class: "info-title" }, WD = { class: "info-hint" }, GD = ["onClick"], KD = { class: "info-desc" }, qD = {
25059
25097
  key: 0,
25060
25098
  class: "skill-content"
25061
- }, UD = {
25099
+ }, JD = {
25062
25100
  key: 0,
25063
25101
  class: "skill-loading"
25064
- }, WD = {
25102
+ }, YD = {
25065
25103
  key: 1,
25066
25104
  class: "skill-error"
25067
- }, GD = {
25105
+ }, XD = {
25068
25106
  key: 2,
25069
25107
  class: "skill-pre"
25070
- }, KD = {
25108
+ }, ZD = {
25071
25109
  key: 1,
25072
25110
  class: "info-section"
25073
- }, qD = { class: "info-title" }, JD = { class: "info-item" }, YD = { class: "info-name" }, XD = { class: "info-desc" }, ZD = { class: "info-section" }, QD = { class: "info-title" }, $D = { class: "kv-grid" }, eO = { class: "kv" }, tO = { class: "k" }, nO = { class: "v" }, rO = { class: "kv" }, iO = { class: "k" }, aO = { class: "v" }, oO = { class: "kv" }, sO = { class: "k" }, cO = { class: "v" }, lO = { class: "kv" }, uO = { class: "k" }, dO = {
25111
+ }, QD = { class: "info-title" }, $D = { class: "info-item" }, eO = { class: "info-name" }, tO = { class: "info-desc" }, nO = { class: "info-section" }, rO = { class: "info-title" }, iO = { class: "kv-grid" }, aO = { class: "kv" }, oO = { class: "k" }, sO = { class: "v" }, cO = { class: "kv" }, lO = { class: "k" }, uO = { class: "v" }, dO = { class: "kv" }, fO = { class: "k" }, pO = { class: "v" }, mO = { class: "kv" }, hO = { class: "k" }, gO = {
25074
25112
  class: "v",
25075
25113
  style: { "font-size": "11px" }
25076
- }, fO = {
25114
+ }, _O = {
25077
25115
  key: 2,
25078
25116
  class: "info-section"
25079
- }, pO = { class: "info-title" }, mO = { class: "info-name" }, hO = { class: "src-tag mcp" }, gO = { class: "info-desc" }, _O = {
25117
+ }, vO = { class: "info-title" }, yO = { class: "info-name" }, bO = { class: "src-tag mcp" }, xO = { class: "info-desc" }, SO = {
25080
25118
  key: 3,
25081
25119
  class: "info-section"
25082
- }, vO = { class: "info-title" }, yO = { class: "kv-grid" }, bO = { class: "kv" }, xO = { class: "k" }, SO = { class: "v" }, CO = { class: "kv" }, wO = { class: "k" }, TO = { class: "v" }, EO = { class: "kv" }, DO = { class: "k" }, OO = { class: "v" }, kO = {
25120
+ }, CO = { class: "info-title" }, wO = { class: "kv-grid" }, TO = { class: "kv" }, EO = { class: "k" }, DO = { class: "v" }, OO = { class: "kv" }, kO = { class: "k" }, AO = { class: "v" }, jO = { class: "kv" }, MO = { class: "k" }, NO = { class: "v" }, PO = {
25083
25121
  key: 0,
25084
25122
  class: "kv"
25085
- }, AO = { class: "k" }, jO = {
25123
+ }, FO = { class: "k" }, IO = {
25086
25124
  class: "v",
25087
25125
  style: { "font-size": "11px" }
25088
- }, MO = {
25126
+ }, LO = {
25089
25127
  key: 4,
25090
25128
  class: "info-section"
25091
- }, NO = { class: "info-title" }, PO = {
25129
+ }, RO = { class: "info-title" }, zO = {
25092
25130
  key: 5,
25093
25131
  class: "info-section"
25094
- }, FO = { class: "info-title" }, IO = { class: "info-pre" }, LO = {
25132
+ }, BO = { class: "info-title" }, VO = { class: "info-pre" }, HO = {
25095
25133
  key: 6,
25096
25134
  class: "info-section"
25097
- }, RO = { class: "info-title" }, zO = { class: "info-kv" }, BO = { class: "kv" }, VO = { class: "k" }, HO = { class: "v" }, UO = { class: "kv" }, WO = { class: "k" }, GO = { class: "v" }, KO = { class: "kv" }, qO = { class: "k" }, JO = { class: "v" }, YO = { class: "kv" }, XO = { class: "k" }, ZO = { class: "v" }, QO = { class: "kv" }, $O = { class: "k" }, ek = {
25135
+ }, UO = { class: "info-title" }, WO = { class: "info-kv" }, GO = { class: "kv" }, KO = { class: "k" }, qO = { class: "v" }, JO = { class: "kv" }, YO = { class: "k" }, XO = { class: "v" }, ZO = { class: "kv" }, QO = { class: "k" }, $O = { class: "v" }, ek = { class: "kv" }, tk = { class: "k" }, nk = { class: "v" }, rk = { class: "kv" }, ik = { class: "k" }, ak = {
25098
25136
  class: "v",
25099
25137
  style: { "font-size": "11px" }
25100
- }, tk = {
25138
+ }, ok = {
25101
25139
  key: 0,
25102
25140
  class: "kv"
25103
- }, nk = { class: "k" }, rk = {
25141
+ }, sk = { class: "k" }, ck = {
25104
25142
  class: "v",
25105
25143
  style: { "font-size": "11px" }
25106
- }, ik = /*#__PURE__*/ ry(/* @__PURE__ */ Ii({
25144
+ }, lk = /*#__PURE__*/ oy(/* @__PURE__ */ Ii({
25107
25145
  __name: "DebugDrawer",
25108
25146
  props: {
25109
25147
  logs: { default: () => [] },
@@ -25117,7 +25155,7 @@ app.mount('#app');
25117
25155
  },
25118
25156
  emits: ["update:visible", "clear"],
25119
25157
  setup(e, { emit: t }) {
25120
- let n = e, r = t, i = /* @__PURE__ */ wn("all"), a = /* @__PURE__ */ wn(/* @__PURE__ */ new Set()), o = /* @__PURE__ */ wn(/* @__PURE__ */ new Set()), s = Q(() => n.messages), c = Q(() => ({
25158
+ let n = e, r = t, i = /* @__PURE__ */ wn("all"), a = /* @__PURE__ */ wn(/* @__PURE__ */ new Set()), o = /* @__PURE__ */ wn(/* @__PURE__ */ new Set()), s = Qs(() => n.messages), c = Qs(() => ({
25121
25159
  context: {
25122
25160
  label: s.value.debugTypeContext,
25123
25161
  color: "var(--cs-primary)",
@@ -25153,7 +25191,7 @@ app.mount('#app');
25153
25191
  color: "#0891b2",
25154
25192
  icon: "⚙️"
25155
25193
  }
25156
- })), l = Q(() => Array.isArray(n.logs) ? n.logs : []), u = Q(() => i.value === "all" ? l.value : l.value.filter((e) => e.type === i.value)), d = Q(() => {
25194
+ })), l = Qs(() => Array.isArray(n.logs) ? n.logs : []), u = Qs(() => i.value === "all" ? l.value : l.value.filter((e) => e.type === i.value)), d = Qs(() => {
25157
25195
  let e = { all: l.value.length };
25158
25196
  for (let t of l.value) e[t.type] = (e[t.type] || 0) + 1;
25159
25197
  return e;
@@ -25272,7 +25310,7 @@ app.mount('#app');
25272
25310
  ri(() => n.infoTick?.value, () => {
25273
25311
  n.visible && (b.value === "subagent" || b.value === "info" || b.value === "context") && w();
25274
25312
  });
25275
- let E = Q(() => ({
25313
+ let E = Qs(() => ({
25276
25314
  pending: {
25277
25315
  label: s.value.debugTodoPending,
25278
25316
  color: "#9ca3af"
@@ -25292,7 +25330,7 @@ app.mount('#app');
25292
25330
  function O(e) {
25293
25331
  return e ? e === "builtin" ? "builtin" : e.startsWith("mcp:") ? "mcp" : "user" : "";
25294
25332
  }
25295
- let k = Q(() => {
25333
+ let k = Qs(() => {
25296
25334
  let e = /* @__PURE__ */ new Map(), t = [];
25297
25335
  for (let n of l.value) {
25298
25336
  let r = n.data?.round;
@@ -25316,10 +25354,10 @@ app.mount('#app');
25316
25354
  }
25317
25355
  return `${e}ms`;
25318
25356
  }
25319
- let j = Q(() => x.value?.trace?.spans ?? []), M = Q(() => x.value?.trace?.metrics), N = Q(() => x.value?.context), te = Q(() => {
25357
+ let j = Qs(() => x.value?.trace?.spans ?? []), M = Qs(() => x.value?.trace?.metrics), N = Qs(() => x.value?.context), te = Qs(() => {
25320
25358
  let e = N.value;
25321
25359
  return e ? e.occupancy >= 1 ? "red" : e.thresholdRatio > 0 && e.occupancy >= e.thresholdRatio ? "yellow" : "green" : "";
25322
- }), P = Q(() => x.value?.subagent?.active ?? []), F = Q(() => x.value?.subagent?.history ?? []), ne = Q(() => Object.entries(x.value?.subagent?.lockedComponents ?? {})), I = Q(() => ({
25360
+ }), P = Qs(() => x.value?.subagent?.active ?? []), F = Qs(() => x.value?.subagent?.history ?? []), ne = Qs(() => Object.entries(x.value?.subagent?.lockedComponents ?? {})), I = Qs(() => ({
25323
25361
  running: {
25324
25362
  label: s.value.debugSubRunning,
25325
25363
  color: "#059669"
@@ -25356,9 +25394,9 @@ app.mount('#app');
25356
25394
  default: return "";
25357
25395
  }
25358
25396
  }
25359
- return (t, n) => (J(), os(vi, { to: "body" }, [ps(gc, { name: "drawer" }, {
25360
- default: Yr(() => [e.visible ? (J(), Y("div", Lw, [X("div", { class: H(["drawer-panel", { "cs-theme-dark": e.csTheme === "dark" }]) }, [
25361
- X("div", Rw, [X("div", zw, [
25397
+ return (t, n) => (J(), os(vi, { to: "body" }, [Z(gc, { name: "drawer" }, {
25398
+ default: Yr(() => [e.visible ? (J(), Y("div", Hw, [X("div", { class: H(["drawer-panel", { "cs-theme-dark": e.csTheme === "dark" }]) }, [
25399
+ X("div", Uw, [X("div", Ww, [
25362
25400
  X("button", {
25363
25401
  class: H(["tab-btn", { active: b.value === "logs" }]),
25364
25402
  onClick: n[0] ||= (e) => T("logs")
@@ -25371,60 +25409,60 @@ app.mount('#app');
25371
25409
  key: 0,
25372
25410
  class: H(["tab-btn", { active: b.value === "trace" }]),
25373
25411
  onClick: n[2] ||= (e) => T("trace")
25374
- }, "🌳 Trace", 2)) : Z("", !0),
25412
+ }, "🌳 Trace", 2)) : Q("", !0),
25375
25413
  e.getInfo ? (J(), Y("button", {
25376
25414
  key: 1,
25377
25415
  class: H(["tab-btn", { active: b.value === "context" }]),
25378
25416
  onClick: n[3] ||= (e) => T("context")
25379
- }, "📊 " + U(s.value.debugTabContext), 3)) : Z("", !0),
25417
+ }, "📊 " + U(s.value.debugTabContext), 3)) : Q("", !0),
25380
25418
  e.getInfo ? (J(), Y("button", {
25381
25419
  key: 2,
25382
25420
  class: H(["tab-btn", { active: b.value === "subagent" }]),
25383
25421
  onClick: n[4] ||= (e) => T("subagent")
25384
- }, "🤖 " + U(s.value.debugTabSubagent), 3)) : Z("", !0),
25422
+ }, "🤖 " + U(s.value.debugTabSubagent), 3)) : Q("", !0),
25385
25423
  e.getInfo ? (J(), Y("button", {
25386
25424
  key: 3,
25387
25425
  class: H(["tab-btn", { active: b.value === "info" }]),
25388
25426
  onClick: n[5] ||= (e) => T("info")
25389
- }, "🧬 " + U(s.value.debugTabInfo), 3)) : Z("", !0)
25390
- ]), X("div", Bw, [b.value === "logs" ? (J(), Y("button", {
25427
+ }, "🧬 " + U(s.value.debugTabInfo), 3)) : Q("", !0)
25428
+ ]), X("div", Gw, [b.value === "logs" ? (J(), Y("button", {
25391
25429
  key: 0,
25392
25430
  class: "hd-btn",
25393
25431
  title: s.value.debugClearLogs,
25394
25432
  onClick: y
25395
- }, "🗑️", 8, Vw)) : Z("", !0), X("button", {
25433
+ }, "🗑️", 8, Kw)) : Q("", !0), X("button", {
25396
25434
  class: "hd-btn",
25397
25435
  title: s.value.close,
25398
25436
  onClick: v
25399
- }, "✕", 8, Hw)])]),
25400
- b.value === "logs" ? (J(), Y("div", Uw, [(J(!0), Y(q, null, ca(c.value, (e, t) => (J(), Y("button", {
25437
+ }, "✕", 8, qw)])]),
25438
+ b.value === "logs" ? (J(), Y("div", Jw, [(J(!0), Y(q, null, ca(c.value, (e, t) => (J(), Y("button", {
25401
25439
  key: t,
25402
25440
  class: H(["filter-chip", { active: i.value === t }]),
25403
25441
  style: Oe({ "--chip-color": e.color }),
25404
25442
  onClick: (e) => i.value = t
25405
- }, [vs(U(e.icon) + " " + U(e.label) + " ", 1), X("span", Gw, U(d.value[t] || 0), 1)], 14, Ww))), 128)), X("button", {
25443
+ }, [_s(U(e.icon) + " " + U(e.label) + " ", 1), X("span", Xw, U(d.value[t] || 0), 1)], 14, Yw))), 128)), X("button", {
25406
25444
  class: H(["filter-chip all", { active: i.value === "all" }]),
25407
25445
  onClick: n[6] ||= (e) => i.value = "all"
25408
- }, [vs(U(s.value.debugFilterAll) + " ", 1), X("span", Kw, U(d.value.all || 0), 1)], 2)])) : Z("", !0),
25409
- X("div", qw, [
25410
- b.value === "trace" ? (J(), Y("div", Jw, [M.value ? (J(), Y(q, { key: 1 }, [X("div", Xw, [
25411
- X("div", Zw, [X("span", null, U(s.value.debugMetricRounds), 1), X("b", null, U(M.value.rounds), 1)]),
25412
- X("div", Qw, [X("span", null, U(s.value.debugMetricTotal), 1), X("b", null, U(M.value.totalDurationMs) + "ms", 1)]),
25413
- X("div", $w, [X("span", null, U(s.value.debugMetricAvg), 1), X("b", null, U(M.value.avgRoundMs) + "ms", 1)]),
25414
- X("div", eT, [X("span", null, U(s.value.debugMetricTools), 1), X("b", null, U(M.value.toolCalls) + "(✅" + U(Math.round(M.value.toolSuccessRate * 100)) + "%)", 1)]),
25415
- M.value.compressions ? (J(), Y("div", tT, [X("span", null, U(s.value.debugMetricCompressions), 1), X("b", null, U(M.value.compressions), 1)])) : Z("", !0),
25416
- M.value.totalTokens ? (J(), Y("div", nT, [n[7] ||= X("span", null, "Token", -1), X("b", null, U(M.value.totalTokens.total), 1)])) : Z("", !0)
25417
- ]), X("div", rT, [(J(!0), Y(q, null, ca(j.value, (e) => (J(), Y("div", {
25446
+ }, [_s(U(s.value.debugFilterAll) + " ", 1), X("span", Zw, U(d.value.all || 0), 1)], 2)])) : Q("", !0),
25447
+ X("div", Qw, [
25448
+ b.value === "trace" ? (J(), Y("div", $w, [M.value ? (J(), Y(q, { key: 1 }, [X("div", tT, [
25449
+ X("div", nT, [X("span", null, U(s.value.debugMetricRounds), 1), X("b", null, U(M.value.rounds), 1)]),
25450
+ X("div", rT, [X("span", null, U(s.value.debugMetricTotal), 1), X("b", null, U(M.value.totalDurationMs) + "ms", 1)]),
25451
+ X("div", iT, [X("span", null, U(s.value.debugMetricAvg), 1), X("b", null, U(M.value.avgRoundMs) + "ms", 1)]),
25452
+ X("div", aT, [X("span", null, U(s.value.debugMetricTools), 1), X("b", null, U(M.value.toolCalls) + "(✅" + U(Math.round(M.value.toolSuccessRate * 100)) + "%)", 1)]),
25453
+ M.value.compressions ? (J(), Y("div", oT, [X("span", null, U(s.value.debugMetricCompressions), 1), X("b", null, U(M.value.compressions), 1)])) : Q("", !0),
25454
+ M.value.totalTokens ? (J(), Y("div", sT, [n[7] ||= X("span", null, "Token", -1), X("b", null, U(M.value.totalTokens.total), 1)])) : Q("", !0)
25455
+ ]), X("div", cT, [(J(!0), Y(q, null, ca(j.value, (e) => (J(), Y("div", {
25418
25456
  key: e.id,
25419
25457
  class: H(["trace-span", [e.type, e.status]])
25420
25458
  }, [
25421
- X("span", iT, U(R(e.type)), 1),
25422
- X("span", aT, U(e.name), 1),
25423
- e.durationMs ? (J(), Y("span", oT, U(ee(e.durationMs)), 1)) : Z("", !0),
25424
- e.status === "error" ? (J(), Y("span", sT, "❌")) : Z("", !0)
25425
- ], 2))), 128))])], 64)) : (J(), Y("div", Yw, U(s.value.debugTraceEmpty), 1))])) : Z("", !0),
25426
- b.value === "context" ? (J(), Y("div", cT, [N.value ? (J(), Y(q, { key: 1 }, [
25427
- X("div", uT, [X("div", dT, [X("div", {
25459
+ X("span", lT, U(R(e.type)), 1),
25460
+ X("span", uT, U(e.name), 1),
25461
+ e.durationMs ? (J(), Y("span", dT, U(ee(e.durationMs)), 1)) : Q("", !0),
25462
+ e.status === "error" ? (J(), Y("span", fT, "❌")) : Q("", !0)
25463
+ ], 2))), 128))])], 64)) : (J(), Y("div", eT, U(s.value.debugTraceEmpty), 1))])) : Q("", !0),
25464
+ b.value === "context" ? (J(), Y("div", pT, [N.value ? (J(), Y(q, { key: 1 }, [
25465
+ X("div", hT, [X("div", gT, [X("div", {
25428
25466
  class: "ctx-bar-track",
25429
25467
  title: `${s.value.debugCtxOccupancy} ${Math.round(N.value.occupancy * 100)}%`
25430
25468
  }, [X("div", {
@@ -25435,12 +25473,12 @@ app.mount('#app');
25435
25473
  class: "ctx-threshold-mark",
25436
25474
  style: Oe({ left: Math.min(N.value.thresholdRatio * 100, 100) + "%" }),
25437
25475
  title: s.value.debugCtxThreshold
25438
- }, null, 12, pT)) : Z("", !0)], 8, fT), X("span", mT, U(Math.round(N.value.occupancy * 100)) + "%", 1)]), X("div", hT, [
25439
- X("span", gT, U(s.value.debugCtxTokens) + " " + U(N.value.totalTokens) + " token", 1),
25440
- N.value.contextWindow ? (J(), Y("span", _T, U(s.value.debugCtxWindow) + " " + U(N.value.contextWindow), 1)) : Z("", !0),
25441
- N.value.thresholdRatio > 0 ? (J(), Y("span", vT, U(s.value.debugCtxThresholdPct) + " " + U(Math.round(N.value.thresholdRatio * 100)) + "%", 1)) : Z("", !0)
25476
+ }, null, 12, vT)) : Q("", !0)], 8, _T), X("span", yT, U(Math.round(N.value.occupancy * 100)) + "%", 1)]), X("div", bT, [
25477
+ X("span", xT, U(s.value.debugCtxTokens) + " " + U(N.value.totalTokens) + " token", 1),
25478
+ N.value.contextWindow ? (J(), Y("span", ST, U(s.value.debugCtxWindow) + " " + U(N.value.contextWindow), 1)) : Q("", !0),
25479
+ N.value.thresholdRatio > 0 ? (J(), Y("span", CT, U(s.value.debugCtxThresholdPct) + " " + U(Math.round(N.value.thresholdRatio * 100)) + "%", 1)) : Q("", !0)
25442
25480
  ])]),
25443
- X("div", yT, U(s.value.debugCtxCategories), 1),
25481
+ X("div", wT, U(s.value.debugCtxCategories), 1),
25444
25482
  (J(!0), Y(q, null, ca(N.value.categories, (e) => (J(), Y("div", {
25445
25483
  key: e.key,
25446
25484
  class: "ctx-cat"
@@ -25448,240 +25486,240 @@ app.mount('#app');
25448
25486
  X("span", {
25449
25487
  class: "ctx-cat-label",
25450
25488
  title: e.label
25451
- }, U(e.label), 9, bT),
25452
- X("div", xT, [X("div", {
25489
+ }, U(e.label), 9, TT),
25490
+ X("div", ET, [X("div", {
25453
25491
  class: "ctx-cat-fill",
25454
25492
  style: Oe({ width: Math.max(Math.round(e.pct * 100), 2) + "%" })
25455
25493
  }, null, 4)]),
25456
- X("span", ST, [vs(U(e.tokens) + " ", 1), X("i", null, "(" + U(Math.round(e.pct * 100)) + "%)", 1)])
25494
+ X("span", DT, [_s(U(e.tokens) + " ", 1), X("i", null, "(" + U(Math.round(e.pct * 100)) + "%)", 1)])
25457
25495
  ]))), 128)),
25458
- N.value.compression ? (J(), Y("div", CT, [X("div", wT, U(s.value.debugCtxLastCompression), 1), X("div", TT, [
25459
- X("span", ET, U(s.value.debugCtxSummarized) + " " + U(N.value.compression.roundsSummarized) + "/" + U(N.value.compression.roundsTotal) + U(s.value.debugCtxRoundsSuffix), 1),
25460
- X("span", DT, U(s.value.debugCtxRecalled) + " " + U(N.value.compression.roundsRecalled), 1),
25461
- X("span", OT, U(N.value.compression.strategy), 1),
25462
- N.value.compression.decision ? (J(), Y("span", kT, "🤖 " + U(s.value.debugCtxAgentDecision) + U(ie(N.value.compression.decision)), 1)) : Z("", !0)
25463
- ])])) : Z("", !0)
25464
- ], 64)) : (J(), Y("div", lT, U(s.value.debugCtxEmpty), 1))])) : Z("", !0),
25465
- b.value === "subagent" ? (J(), Y("div", AT, [ne.value.length ? (J(), Y("div", jT, [X("div", MT, "🔒 " + U(s.value.debugLocksTitle) + " (" + U(ne.value.length) + ")", 1), (J(!0), Y(q, null, ca(ne.value, ([e, t]) => (J(), Y("div", {
25496
+ N.value.compression ? (J(), Y("div", OT, [X("div", kT, U(s.value.debugCtxLastCompression), 1), X("div", AT, [
25497
+ X("span", jT, U(s.value.debugCtxSummarized) + " " + U(N.value.compression.roundsSummarized) + "/" + U(N.value.compression.roundsTotal) + U(s.value.debugCtxRoundsSuffix), 1),
25498
+ X("span", MT, U(s.value.debugCtxRecalled) + " " + U(N.value.compression.roundsRecalled), 1),
25499
+ X("span", NT, U(N.value.compression.strategy), 1),
25500
+ N.value.compression.decision ? (J(), Y("span", PT, "🤖 " + U(s.value.debugCtxAgentDecision) + U(ie(N.value.compression.decision)), 1)) : Q("", !0)
25501
+ ])])) : Q("", !0)
25502
+ ], 64)) : (J(), Y("div", mT, U(s.value.debugCtxEmpty), 1))])) : Q("", !0),
25503
+ b.value === "subagent" ? (J(), Y("div", FT, [ne.value.length ? (J(), Y("div", IT, [X("div", LT, "🔒 " + U(s.value.debugLocksTitle) + " (" + U(ne.value.length) + ")", 1), (J(!0), Y(q, null, ca(ne.value, ([e, t]) => (J(), Y("div", {
25466
25504
  key: "lock-" + e,
25467
25505
  class: "sub-task"
25468
- }, "🔒 " + U(e) + " ← " + U(t), 1))), 128))])) : Z("", !0), !P.value.length && !F.value.length ? (J(), Y("div", NT, U(s.value.debugSubagentEmpty), 1)) : (J(), Y(q, { key: 2 }, [P.value.length ? (J(), Y("div", PT, [X("div", FT, "▶ " + U(s.value.debugSubRunningTitle) + " (" + U(P.value.length) + ")", 1), (J(!0), Y(q, null, ca(P.value, (e, t) => (J(), Y("div", {
25506
+ }, "🔒 " + U(e) + " ← " + U(t), 1))), 128))])) : Q("", !0), !P.value.length && !F.value.length ? (J(), Y("div", RT, U(s.value.debugSubagentEmpty), 1)) : (J(), Y(q, { key: 2 }, [P.value.length ? (J(), Y("div", zT, [X("div", BT, "▶ " + U(s.value.debugSubRunningTitle) + " (" + U(P.value.length) + ")", 1), (J(!0), Y(q, null, ca(P.value, (e, t) => (J(), Y("div", {
25469
25507
  key: "a" + t,
25470
25508
  class: H(["sub-card", e.status])
25471
- }, [X("div", IT, [
25509
+ }, [X("div", VT, [
25472
25510
  X("span", {
25473
25511
  class: "sub-status",
25474
25512
  style: Oe({ background: I.value[e.status] && I.value[e.status].color || "#9ca3af" })
25475
25513
  }, U(I.value[e.status] && I.value[e.status].label || e.status), 5),
25476
- X("span", LT, U(e.label), 1),
25477
- X("span", RT, U(e.steps.length) + U(s.value.debugStepsCountSuffix), 1)
25478
- ]), X("div", zT, U(A(e.task, 80)), 1)], 2))), 128))])) : Z("", !0), F.value.length ? (J(), Y("div", BT, [X("div", VT, "🕐 " + U(s.value.debugSubHistoryTitle) + " (" + U(F.value.length) + ")", 1), (J(!0), Y(q, null, ca(F.value, (e, t) => (J(), Y("div", {
25514
+ X("span", HT, U(e.label), 1),
25515
+ X("span", UT, U(e.steps.length) + U(s.value.debugStepsCountSuffix), 1)
25516
+ ]), X("div", WT, U(A(e.task, 80)), 1)], 2))), 128))])) : Q("", !0), F.value.length ? (J(), Y("div", GT, [X("div", KT, "🕐 " + U(s.value.debugSubHistoryTitle) + " (" + U(F.value.length) + ")", 1), (J(!0), Y(q, null, ca(F.value, (e, t) => (J(), Y("div", {
25479
25517
  key: "h" + t,
25480
25518
  class: H(["sub-card", e.status])
25481
25519
  }, [
25482
- X("div", HT, [
25520
+ X("div", qT, [
25483
25521
  X("span", {
25484
25522
  class: "sub-status",
25485
25523
  style: Oe({ background: I.value[e.status] && I.value[e.status].color || "#9ca3af" })
25486
25524
  }, U(I.value[e.status] && I.value[e.status].label || e.status), 5),
25487
- X("span", UT, U(e.label), 1),
25488
- e.durationMs == null ? Z("", !0) : (J(), Y("span", WT, U(ee(e.durationMs)), 1)),
25525
+ X("span", JT, U(e.label), 1),
25526
+ e.durationMs == null ? Q("", !0) : (J(), Y("span", YT, U(ee(e.durationMs)), 1)),
25489
25527
  e.steps.length ? (J(), Y("button", {
25490
25528
  key: 1,
25491
25529
  class: "sub-toggle",
25492
25530
  onClick: (e) => re(t)
25493
- }, U(L.value.has(t) ? s.value.collapse : s.value.debugStepsBtn), 9, GT)) : Z("", !0)
25531
+ }, U(L.value.has(t) ? s.value.collapse : s.value.debugStepsBtn), 9, XT)) : Q("", !0)
25494
25532
  ]),
25495
- X("div", KT, U(A(e.task, 80)), 1),
25496
- e.resultPreview ? (J(), Y("div", qT, U(e.resultPreview), 1)) : Z("", !0),
25497
- L.value.has(t) && e.steps.length ? (J(), Y("div", JT, [(J(!0), Y(q, null, ca(e.steps, (e, t) => (J(), Y("div", {
25533
+ X("div", ZT, U(A(e.task, 80)), 1),
25534
+ e.resultPreview ? (J(), Y("div", QT, U(e.resultPreview), 1)) : Q("", !0),
25535
+ L.value.has(t) && e.steps.length ? (J(), Y("div", $T, [(J(!0), Y(q, null, ca(e.steps, (e, t) => (J(), Y("div", {
25498
25536
  key: t,
25499
25537
  class: "sub-step"
25500
25538
  }, [
25501
- X("span", YT, U(e.kind === "tool_call" ? "🔧" : "✅"), 1),
25502
- X("span", XT, U(e.name), 1),
25503
- X("span", ZT, U(f(e.ts)), 1)
25504
- ]))), 128))])) : Z("", !0)
25505
- ], 2))), 128))])) : Z("", !0)], 64))])) : Z("", !0),
25506
- b.value === "logs" ? (J(), Y(q, { key: 3 }, [u.value.length === 0 ? (J(), Y("div", QT, U(s.value.debugLogsEmpty), 1)) : Z("", !0), (J(!0), Y(q, null, ca(u.value, (e, t) => (J(), Y("div", {
25539
+ X("span", eE, U(e.kind === "tool_call" ? "🔧" : "✅"), 1),
25540
+ X("span", tE, U(e.name), 1),
25541
+ X("span", nE, U(f(e.ts)), 1)
25542
+ ]))), 128))])) : Q("", !0)
25543
+ ], 2))), 128))])) : Q("", !0)], 64))])) : Q("", !0),
25544
+ b.value === "logs" ? (J(), Y(q, { key: 3 }, [u.value.length === 0 ? (J(), Y("div", rE, U(s.value.debugLogsEmpty), 1)) : Q("", !0), (J(!0), Y(q, null, ca(u.value, (e, t) => (J(), Y("div", {
25507
25545
  key: t,
25508
25546
  class: "log-item"
25509
25547
  }, [
25510
- X("div", $T, [
25548
+ X("div", iE, [
25511
25549
  X("span", {
25512
25550
  class: "log-type",
25513
25551
  style: Oe({ background: c.value[e.type].color })
25514
25552
  }, U(c.value[e.type].icon) + " " + U(c.value[e.type].label), 5),
25515
- e.source ? (J(), Y("span", eE, "↳ " + U(e.source), 1)) : Z("", !0),
25516
- X("span", tE, U(f(e.timestamp)), 1)
25553
+ e.source ? (J(), Y("span", aE, "↳ " + U(e.source), 1)) : Q("", !0),
25554
+ X("span", oE, U(f(e.timestamp)), 1)
25517
25555
  ]),
25518
- X("div", nE, [e.type === "context" ? (J(), Y(q, { key: 0 }, [
25519
- X("div", rE, [
25520
- X("div", iE, [X("span", aE, U(s.value.debugModel), 1), X("span", oE, U(e.data.model), 1)]),
25521
- X("div", sE, [X("span", cE, U(s.value.debugTemperature), 1), X("span", lE, U(e.data.temperature), 1)]),
25522
- X("div", uE, [n[8] ||= X("span", { class: "k" }, "MaxTokens", -1), X("span", dE, U(e.data.maxTokens), 1)]),
25523
- X("div", fE, [X("span", pE, U(s.value.debugMessageCount), 1), X("span", mE, U(e.data.totalMessages), 1)])
25556
+ X("div", sE, [e.type === "context" ? (J(), Y(q, { key: 0 }, [
25557
+ X("div", cE, [
25558
+ X("div", lE, [X("span", uE, U(s.value.debugModel), 1), X("span", dE, U(e.data.model), 1)]),
25559
+ X("div", fE, [X("span", pE, U(s.value.debugTemperature), 1), X("span", mE, U(e.data.temperature), 1)]),
25560
+ X("div", hE, [n[8] ||= X("span", { class: "k" }, "MaxTokens", -1), X("span", gE, U(e.data.maxTokens), 1)]),
25561
+ X("div", _E, [X("span", vE, U(s.value.debugMessageCount), 1), X("span", yE, U(e.data.totalMessages), 1)])
25524
25562
  ]),
25525
- X("div", hE, U(s.value.debugToolsLabel) + " (" + U(e.data.tools?.length || 0) + ")", 1),
25526
- X("div", gE, [(J(!0), Y(q, null, ca(e.data.tools, (e) => (J(), Y("span", {
25563
+ X("div", bE, U(s.value.debugToolsLabel) + " (" + U(e.data.tools?.length || 0) + ")", 1),
25564
+ X("div", xE, [(J(!0), Y(q, null, ca(e.data.tools, (e) => (J(), Y("span", {
25527
25565
  key: e,
25528
25566
  class: "tool-chip"
25529
25567
  }, U(e), 1))), 128))]),
25530
- X("div", _E, U(s.value.debugContextMessages), 1),
25531
- X("div", vE, [(J(!0), Y(q, null, ca(e.data.messages, (e, t) => (J(), Y("div", {
25568
+ X("div", SE, U(s.value.debugContextMessages), 1),
25569
+ X("div", CE, [(J(!0), Y(q, null, ca(e.data.messages, (e, t) => (J(), Y("div", {
25532
25570
  key: t,
25533
25571
  class: "msg-row"
25534
25572
  }, [X("span", {
25535
25573
  class: "msg-role",
25536
25574
  style: Oe({ background: _(e.type).color })
25537
- }, U(_(e.type).label), 5), X("span", yE, U(e.content), 1)]))), 128))])
25538
- ], 64)) : e.type === "llm_request" ? (J(), Y(q, { key: 1 }, [X("div", bE, [
25539
- X("span", xE, U(s.value.debugRoundPrefix) + U(e.data.round) + U(s.value.debugRoundSuffix), 1),
25540
- e.data.model ? (J(), Y("span", SE, U(e.data.model), 1)) : Z("", !0),
25541
- X("span", CE, U((e.data.messages || []).length) + U(s.value.debugMsgCountSuffix), 1),
25542
- e.data.tools?.length ? (J(), Y("span", wE, U(e.data.tools.length) + U(s.value.debugToolCountSuffix), 1)) : Z("", !0),
25575
+ }, U(_(e.type).label), 5), X("span", wE, U(e.content), 1)]))), 128))])
25576
+ ], 64)) : e.type === "llm_request" ? (J(), Y(q, { key: 1 }, [X("div", TE, [
25577
+ X("span", EE, U(s.value.debugRoundPrefix) + U(e.data.round) + U(s.value.debugRoundSuffix), 1),
25578
+ e.data.model ? (J(), Y("span", DE, U(e.data.model), 1)) : Q("", !0),
25579
+ X("span", OE, U((e.data.messages || []).length) + U(s.value.debugMsgCountSuffix), 1),
25580
+ e.data.tools?.length ? (J(), Y("span", kE, U(e.data.tools.length) + U(s.value.debugToolCountSuffix), 1)) : Q("", !0),
25543
25581
  X("button", {
25544
25582
  class: "view-toggle",
25545
25583
  onClick: (e) => m(t)
25546
- }, U(o.value.has(t) ? s.value.debugCardView : s.value.debugRequestBody), 9, TE)
25547
- ]), o.value.has(t) ? (J(), Y("pre", ME, [X("code", null, U(h(e.data.messages)), 1)])) : (J(), Y("div", EE, [(J(!0), Y(q, null, ca(e.data.messages, (e, t) => (J(), Y("div", {
25584
+ }, U(o.value.has(t) ? s.value.debugCardView : s.value.debugRequestBody), 9, AE)
25585
+ ]), o.value.has(t) ? (J(), Y("pre", LE, [X("code", null, U(h(e.data.messages)), 1)])) : (J(), Y("div", jE, [(J(!0), Y(q, null, ca(e.data.messages, (e, t) => (J(), Y("div", {
25548
25586
  key: t,
25549
25587
  class: "msg-row"
25550
25588
  }, [X("span", {
25551
25589
  class: "msg-role",
25552
25590
  style: Oe({ background: _(e.role).color })
25553
- }, U(_(e.role).label), 5), X("div", DE, [
25554
- e.content ? (J(), Y("span", OE, U(e.content), 1)) : Z("", !0),
25591
+ }, U(_(e.role).label), 5), X("div", ME, [
25592
+ e.content ? (J(), Y("span", NE, U(e.content), 1)) : Q("", !0),
25555
25593
  (J(!0), Y(q, null, ca(e.tool_calls || [], (e, t) => (J(), Y("div", {
25556
25594
  key: t,
25557
25595
  class: "tc-inline"
25558
- }, [X("span", kE, "🔧 " + U(e.function?.name || e.name), 1), X("code", AE, U(e.function?.arguments ?? e.args), 1)]))), 128)),
25559
- e.tool_call_id ? (J(), Y("span", jE, "↳ tool_call_id: " + U(e.tool_call_id), 1)) : Z("", !0)
25596
+ }, [X("span", PE, "🔧 " + U(e.function?.name || e.name), 1), X("code", FE, U(e.function?.arguments ?? e.args), 1)]))), 128)),
25597
+ e.tool_call_id ? (J(), Y("span", IE, "↳ tool_call_id: " + U(e.tool_call_id), 1)) : Q("", !0)
25560
25598
  ])]))), 128))]))], 64)) : e.type === "llm_response" ? (J(), Y(q, { key: 2 }, [
25561
- X("div", NE, [X("span", PE, U(s.value.debugRoundPrefix) + U(e.data.round) + U(s.value.debugRoundSuffix), 1), e.data.toolCalls?.length ? (J(), Y("span", FE, "🔧 " + U(e.data.toolCalls.length) + U(s.value.debugToolCallsSuffix), 1)) : Z("", !0)]),
25562
- e.data.content ? (J(), Y("div", IE, U(e.data.content), 1)) : Z("", !0),
25563
- e.data.toolCalls?.length ? (J(), Y("div", LE, [(J(!0), Y(q, null, ca(e.data.toolCalls, (e, t) => (J(), Y("div", {
25599
+ X("div", RE, [X("span", zE, U(s.value.debugRoundPrefix) + U(e.data.round) + U(s.value.debugRoundSuffix), 1), e.data.toolCalls?.length ? (J(), Y("span", BE, "🔧 " + U(e.data.toolCalls.length) + U(s.value.debugToolCallsSuffix), 1)) : Q("", !0)]),
25600
+ e.data.content ? (J(), Y("div", VE, U(e.data.content), 1)) : Q("", !0),
25601
+ e.data.toolCalls?.length ? (J(), Y("div", HE, [(J(!0), Y(q, null, ca(e.data.toolCalls, (e, t) => (J(), Y("div", {
25564
25602
  key: t,
25565
25603
  class: "tc-card"
25566
- }, [X("div", RE, "🔧 " + U(e.name), 1), X("pre", zE, U(h(e.args)), 1)]))), 128))])) : Z("", !0),
25567
- e.data.usage ? (J(), Y("div", BE, [
25568
- X("span", VE, "prompt: " + U(e.data.usage.prompt_tokens ?? "-"), 1),
25569
- X("span", HE, "completion: " + U(e.data.usage.completion_tokens ?? "-"), 1),
25570
- X("span", UE, "total: " + U(e.data.usage.total_tokens ?? "-"), 1)
25571
- ])) : Z("", !0)
25572
- ], 64)) : e.type === "tool_call" ? (J(), Y("div", WE, [X("div", GE, "🔧 " + U(e.data.name), 1), X("pre", KE, U(h(e.data.args)), 1)])) : e.type === "tool_result" ? (J(), Y("div", qE, [X("div", JE, "✅ " + U(e.data.name) + U(s.value.debugResultSuffix), 1), X("pre", YE, U(e.data.result), 1)])) : e.type === "error" ? (J(), Y("div", XE, U(e.data.tool ? `[${e.data.tool}] ` : "") + U(e.data.error), 1)) : Z("", !0)]),
25573
- X("div", ZE, [X("button", {
25604
+ }, [X("div", UE, "🔧 " + U(e.name), 1), X("pre", WE, U(h(e.args)), 1)]))), 128))])) : Q("", !0),
25605
+ e.data.usage ? (J(), Y("div", GE, [
25606
+ X("span", KE, "prompt: " + U(e.data.usage.prompt_tokens ?? "-"), 1),
25607
+ X("span", qE, "completion: " + U(e.data.usage.completion_tokens ?? "-"), 1),
25608
+ X("span", JE, "total: " + U(e.data.usage.total_tokens ?? "-"), 1)
25609
+ ])) : Q("", !0)
25610
+ ], 64)) : e.type === "tool_call" ? (J(), Y("div", YE, [X("div", XE, "🔧 " + U(e.data.name), 1), X("pre", ZE, U(h(e.data.args)), 1)])) : e.type === "tool_result" ? (J(), Y("div", QE, [X("div", $E, "✅ " + U(e.data.name) + U(s.value.debugResultSuffix), 1), X("pre", eD, U(e.data.result), 1)])) : e.type === "error" ? (J(), Y("div", tD, U(e.data.tool ? `[${e.data.tool}] ` : "") + U(e.data.error), 1)) : Q("", !0)]),
25611
+ X("div", nD, [X("button", {
25574
25612
  class: "raw-toggle",
25575
25613
  onClick: (e) => p(t)
25576
- }, U(a.value.has(t) ? s.value.debugCollapseRawJson : s.value.debugViewRawJson), 9, QE), X("button", {
25614
+ }, U(a.value.has(t) ? s.value.debugCollapseRawJson : s.value.debugViewRawJson), 9, rD), X("button", {
25577
25615
  class: "raw-toggle",
25578
25616
  onClick: (t) => G(__)(h(e.data))
25579
- }, U(s.value.copy), 9, $E)]),
25580
- a.value.has(t) ? (J(), Y("pre", eD, [X("code", null, U(h(e.data)), 1)])) : Z("", !0)
25617
+ }, U(s.value.copy), 9, iD)]),
25618
+ a.value.has(t) ? (J(), Y("pre", aD, [X("code", null, U(h(e.data)), 1)])) : Q("", !0)
25581
25619
  ]))), 128))], 64)) : b.value === "flow" ? (J(), Y(q, { key: 4 }, [
25582
- l.value.length ? Z("", !0) : (J(), Y("div", tD, U(s.value.debugFlowEmpty), 1)),
25583
- k.value.pre.length ? (J(), Y("div", nD, [X("div", rD, "⚙️ " + U(s.value.debugFlowPrep), 1), (J(!0), Y(q, null, ca(k.value.pre, (e, t) => (J(), Y("div", {
25620
+ l.value.length ? Q("", !0) : (J(), Y("div", oD, U(s.value.debugFlowEmpty), 1)),
25621
+ k.value.pre.length ? (J(), Y("div", sD, [X("div", cD, "⚙️ " + U(s.value.debugFlowPrep), 1), (J(!0), Y(q, null, ca(k.value.pre, (e, t) => (J(), Y("div", {
25584
25622
  key: "p" + t,
25585
25623
  class: H(["flow-node", e.type])
25586
25624
  }, [
25587
- X("span", iD, U(c.value[e.type]?.icon), 1),
25588
- X("span", aD, U(c.value[e.type]?.label), 1),
25589
- X("span", oD, U(z(e)), 1),
25590
- X("span", sD, U(f(e.timestamp)), 1)
25591
- ], 2))), 128))])) : Z("", !0),
25625
+ X("span", lD, U(c.value[e.type]?.icon), 1),
25626
+ X("span", uD, U(c.value[e.type]?.label), 1),
25627
+ X("span", dD, U(z(e)), 1),
25628
+ X("span", fD, U(f(e.timestamp)), 1)
25629
+ ], 2))), 128))])) : Q("", !0),
25592
25630
  (J(!0), Y(q, null, ca(k.value.rounds, (e) => (J(), Y("div", {
25593
25631
  key: e.round,
25594
25632
  class: "flow-round"
25595
- }, [X("div", cD, "🔁 " + U(s.value.debugRoundPrefix) + U(e.round) + U(s.value.debugRoundSuffix), 1), X("div", lD, [(J(!0), Y(q, null, ca(e.items, (e, t) => (J(), Y("div", {
25633
+ }, [X("div", pD, "🔁 " + U(s.value.debugRoundPrefix) + U(e.round) + U(s.value.debugRoundSuffix), 1), X("div", mD, [(J(!0), Y(q, null, ca(e.items, (e, t) => (J(), Y("div", {
25596
25634
  key: t,
25597
25635
  class: H(["flow-node", e.type])
25598
25636
  }, [
25599
- X("span", uD, U(c.value[e.type]?.icon), 1),
25600
- X("span", dD, U(c.value[e.type]?.label), 1),
25601
- X("span", fD, U(z(e)), 1),
25602
- X("span", pD, U(f(e.timestamp)), 1)
25637
+ X("span", hD, U(c.value[e.type]?.icon), 1),
25638
+ X("span", gD, U(c.value[e.type]?.label), 1),
25639
+ X("span", _D, U(z(e)), 1),
25640
+ X("span", vD, U(f(e.timestamp)), 1)
25603
25641
  ], 2))), 128))])]))), 128))
25604
- ], 64)) : (J(), Y("div", mD, [x.value ? (J(), Y(q, { key: 1 }, [
25605
- X("div", gD, [
25606
- X("div", _D, U(s.value.debugInfoBasic), 1),
25607
- X("div", vD, [
25608
- X("div", yD, [n[9] ||= X("span", { class: "k" }, "ID", -1), X("span", bD, U(x.value.id), 1)]),
25609
- X("div", xD, [X("span", SD, U(s.value.debugModel), 1), X("span", CD, U(x.value.model || "-"), 1)]),
25610
- X("div", wD, [X("span", TD, U(s.value.debugToolCount), 1), X("span", ED, U(x.value.tools.length), 1)]),
25611
- X("div", DD, [X("span", OD, U(s.value.debugMiddleware), 1), X("span", kD, U(x.value.middleware.length), 1)])
25642
+ ], 64)) : (J(), Y("div", yD, [x.value ? (J(), Y(q, { key: 1 }, [
25643
+ X("div", xD, [
25644
+ X("div", SD, U(s.value.debugInfoBasic), 1),
25645
+ X("div", CD, [
25646
+ X("div", wD, [n[9] ||= X("span", { class: "k" }, "ID", -1), X("span", TD, U(x.value.id), 1)]),
25647
+ X("div", ED, [X("span", DD, U(s.value.debugModel), 1), X("span", OD, U(x.value.model || "-"), 1)]),
25648
+ X("div", kD, [X("span", AD, U(s.value.debugToolCount), 1), X("span", jD, U(x.value.tools.length), 1)]),
25649
+ X("div", MD, [X("span", ND, U(s.value.debugMiddleware), 1), X("span", PD, U(x.value.middleware.length), 1)])
25612
25650
  ]),
25613
- X("div", AD, [X("span", jD, U(s.value.debugMiddlewareStack), 1), X("span", MD, U(x.value.middleware.join(" → ") || "-"), 1)])
25651
+ X("div", FD, [X("span", ID, U(s.value.debugMiddlewareStack), 1), X("span", LD, U(x.value.middleware.join(" → ") || "-"), 1)])
25614
25652
  ]),
25615
- X("div", ND, [X("div", PD, "🔧 " + U(s.value.debugToolsLabel) + " (" + U(x.value.tools.length) + ")", 1), (J(!0), Y(q, null, ca(x.value.tools, (e) => (J(), Y("div", {
25653
+ X("div", RD, [X("div", zD, "🔧 " + U(s.value.debugToolsLabel) + " (" + U(x.value.tools.length) + ")", 1), (J(!0), Y(q, null, ca(x.value.tools, (e) => (J(), Y("div", {
25616
25654
  key: e.name,
25617
25655
  class: "info-item"
25618
- }, [X("div", FD, [vs(U(e.name), 1), e.source ? (J(), Y("span", {
25656
+ }, [X("div", BD, [_s(U(e.name), 1), e.source ? (J(), Y("span", {
25619
25657
  key: 0,
25620
25658
  class: H(["src-tag", O(e.source)])
25621
- }, U(e.source), 3)) : Z("", !0)]), X("div", ID, U(e.description), 1)]))), 128))]),
25622
- x.value.skills.length ? (J(), Y("div", LD, [X("div", RD, [vs("📘 " + U(s.value.debugSkillsTitle) + " (" + U(x.value.skills.length) + ")", 1), X("span", zD, U(s.value.debugSkillsHint), 1)]), (J(!0), Y(q, null, ca(x.value.skills, (e) => (J(), Y("div", {
25659
+ }, U(e.source), 3)) : Q("", !0)]), X("div", VD, U(e.description), 1)]))), 128))]),
25660
+ x.value.skills.length ? (J(), Y("div", HD, [X("div", UD, [_s("📘 " + U(s.value.debugSkillsTitle) + " (" + U(x.value.skills.length) + ")", 1), X("span", WD, U(s.value.debugSkillsHint), 1)]), (J(!0), Y(q, null, ca(x.value.skills, (e) => (J(), Y("div", {
25623
25661
  key: e.name,
25624
25662
  class: "info-item"
25625
25663
  }, [
25626
25664
  X("div", {
25627
25665
  class: "info-name skill-toggle",
25628
25666
  onClick: (t) => C(e.name)
25629
- }, [X("span", { class: H(["skill-arrow", { open: !!S.value[e.name] }]) }, "▶", 2), vs(" " + U(e.name), 1)], 8, BD),
25630
- X("div", VD, U(e.description), 1),
25631
- S.value[e.name] ? (J(), Y("div", HD, [S.value[e.name].loading ? (J(), Y("div", UD, U(s.value.debugLoading), 1)) : S.value[e.name].error ? (J(), Y("div", WD, U(S.value[e.name].error), 1)) : S.value[e.name].content ? (J(), Y("pre", GD, U(S.value[e.name].content), 1)) : Z("", !0)])) : Z("", !0)
25632
- ]))), 128))])) : Z("", !0),
25633
- x.value.data ? (J(), Y("div", KD, [X("div", qD, "📊 " + U(s.value.debugDataTitle), 1), X("div", JD, [X("div", YD, U(x.value.data.description || s.value.debugDataFallback), 1), X("div", XD, U(s.value.debugSchemaPrefix) + U(x.value.data.schema ? s.value.debugSchemaDeclared : s.value.debugSchemaMissing), 1)])])) : Z("", !0),
25634
- X("div", ZD, [X("div", QD, "🧬 " + U(s.value.debugSubagentTitle), 1), X("div", $D, [
25635
- X("div", eO, [X("span", tO, U(s.value.debugEnabled), 1), X("span", nO, U(x.value.subagent.enabled ? s.value.debugYes : s.value.debugNo), 1)]),
25636
- X("div", rO, [X("span", iO, U(s.value.debugMaxDepth), 1), X("span", aO, U(x.value.subagent.maxDepth), 1)]),
25637
- X("div", oO, [X("span", sO, U(s.value.debugMaxParallel), 1), X("span", cO, U(x.value.subagent.maxParallel), 1)]),
25638
- X("div", lO, [X("span", uO, U(s.value.debugExtraTools), 1), X("span", dO, U(x.value.subagent.allowedTools.length ? x.value.subagent.allowedTools.join(", ") : s.value.debugDefaultReadonly), 1)])
25667
+ }, [X("span", { class: H(["skill-arrow", { open: !!S.value[e.name] }]) }, "▶", 2), _s(" " + U(e.name), 1)], 8, GD),
25668
+ X("div", KD, U(e.description), 1),
25669
+ S.value[e.name] ? (J(), Y("div", qD, [S.value[e.name].loading ? (J(), Y("div", JD, U(s.value.debugLoading), 1)) : S.value[e.name].error ? (J(), Y("div", YD, U(S.value[e.name].error), 1)) : S.value[e.name].content ? (J(), Y("pre", XD, U(S.value[e.name].content), 1)) : Q("", !0)])) : Q("", !0)
25670
+ ]))), 128))])) : Q("", !0),
25671
+ x.value.data ? (J(), Y("div", ZD, [X("div", QD, "📊 " + U(s.value.debugDataTitle), 1), X("div", $D, [X("div", eO, U(x.value.data.description || s.value.debugDataFallback), 1), X("div", tO, U(s.value.debugSchemaPrefix) + U(x.value.data.schema ? s.value.debugSchemaDeclared : s.value.debugSchemaMissing), 1)])])) : Q("", !0),
25672
+ X("div", nO, [X("div", rO, "🧬 " + U(s.value.debugSubagentTitle), 1), X("div", iO, [
25673
+ X("div", aO, [X("span", oO, U(s.value.debugEnabled), 1), X("span", sO, U(x.value.subagent.enabled ? s.value.debugYes : s.value.debugNo), 1)]),
25674
+ X("div", cO, [X("span", lO, U(s.value.debugMaxDepth), 1), X("span", uO, U(x.value.subagent.maxDepth), 1)]),
25675
+ X("div", dO, [X("span", fO, U(s.value.debugMaxParallel), 1), X("span", pO, U(x.value.subagent.maxParallel), 1)]),
25676
+ X("div", mO, [X("span", hO, U(s.value.debugExtraTools), 1), X("span", gO, U(x.value.subagent.allowedTools.length ? x.value.subagent.allowedTools.join(", ") : s.value.debugDefaultReadonly), 1)])
25639
25677
  ])]),
25640
- x.value.mcp?.servers?.length ? (J(), Y("div", fO, [X("div", pO, "🔌 MCP (" + U(x.value.mcp.servers.length) + ")", 1), (J(!0), Y(q, null, ca(x.value.mcp.servers, (e) => (J(), Y("div", {
25678
+ x.value.mcp?.servers?.length ? (J(), Y("div", _O, [X("div", vO, "🔌 MCP (" + U(x.value.mcp.servers.length) + ")", 1), (J(!0), Y(q, null, ca(x.value.mcp.servers, (e) => (J(), Y("div", {
25641
25679
  key: e.name,
25642
25680
  class: "info-item"
25643
- }, [X("div", mO, [vs(U(e.name) + " ", 1), X("span", hO, U(e.toolCount) + U(s.value.debugToolCountSuffix), 1)]), X("div", gO, U(e.url), 1)]))), 128))])) : Z("", !0),
25644
- x.value.verify ? (J(), Y("div", _O, [X("div", vO, "✅ " + U(s.value.debugVerifyTitle), 1), X("div", yO, [
25645
- X("div", bO, [X("span", xO, U(s.value.debugEnabled), 1), X("span", SO, U(x.value.verify.enabled ? s.value.debugYes : s.value.debugNo), 1)]),
25646
- X("div", CO, [X("span", wO, U(s.value.debugMaxAttempts), 1), X("span", TO, U(x.value.verify.maxAttempts), 1)]),
25647
- X("div", EO, [X("span", DO, U(s.value.debugAdversarial), 1), X("span", OO, U(x.value.verify.adversarial ? s.value.debugOn : s.value.debugOff), 1)]),
25648
- x.value.verify.adversarial ? (J(), Y("div", kO, [X("span", AO, U(s.value.debugAdversarialModel), 1), X("span", jO, U(x.value.model || "-") + U(s.value.debugSameAsMain), 1)])) : Z("", !0)
25649
- ])])) : Z("", !0),
25650
- x.value.todos.length ? (J(), Y("div", MO, [X("div", NO, "📋 " + U(s.value.debugTodosTitle) + " (" + U(x.value.todos.length) + ")", 1), (J(!0), Y(q, null, ca(x.value.todos, (e, t) => (J(), Y("div", {
25681
+ }, [X("div", yO, [_s(U(e.name) + " ", 1), X("span", bO, U(e.toolCount) + U(s.value.debugToolCountSuffix), 1)]), X("div", xO, U(e.url), 1)]))), 128))])) : Q("", !0),
25682
+ x.value.verify ? (J(), Y("div", SO, [X("div", CO, "✅ " + U(s.value.debugVerifyTitle), 1), X("div", wO, [
25683
+ X("div", TO, [X("span", EO, U(s.value.debugEnabled), 1), X("span", DO, U(x.value.verify.enabled ? s.value.debugYes : s.value.debugNo), 1)]),
25684
+ X("div", OO, [X("span", kO, U(s.value.debugMaxAttempts), 1), X("span", AO, U(x.value.verify.maxAttempts), 1)]),
25685
+ X("div", jO, [X("span", MO, U(s.value.debugAdversarial), 1), X("span", NO, U(x.value.verify.adversarial ? s.value.debugOn : s.value.debugOff), 1)]),
25686
+ x.value.verify.adversarial ? (J(), Y("div", PO, [X("span", FO, U(s.value.debugAdversarialModel), 1), X("span", IO, U(x.value.model || "-") + U(s.value.debugSameAsMain), 1)])) : Q("", !0)
25687
+ ])])) : Q("", !0),
25688
+ x.value.todos.length ? (J(), Y("div", LO, [X("div", RO, "📋 " + U(s.value.debugTodosTitle) + " (" + U(x.value.todos.length) + ")", 1), (J(!0), Y(q, null, ca(x.value.todos, (e, t) => (J(), Y("div", {
25651
25689
  key: t,
25652
25690
  class: "info-todo"
25653
25691
  }, [X("span", {
25654
25692
  class: "todo-tag",
25655
25693
  style: Oe({ background: E.value[e.status] && E.value[e.status].color || "#9ca3af" })
25656
- }, U(D(e.status)), 5), X("span", null, U(e.content), 1)]))), 128))])) : Z("", !0),
25657
- x.value.memory ? (J(), Y("div", PO, [X("div", FO, "📝 " + U(s.value.debugMemoryTitle), 1), X("pre", IO, U(x.value.memory), 1)])) : Z("", !0),
25658
- x.value.lastCompression ? (J(), Y("div", LO, [X("div", RO, "🗜️ " + U(s.value.debugLastCompTitle), 1), X("div", zO, [
25659
- X("div", BO, [X("span", VO, U(s.value.debugTriggered), 1), X("span", HO, U(x.value.lastCompression.triggered ? "✓" : s.value.debugNotTriggered), 1)]),
25660
- X("div", UO, [X("span", WO, U(s.value.debugRoundsSummarized), 1), X("span", GO, U(x.value.lastCompression.roundsSummarized) + " / " + U(x.value.lastCompression.roundsTotal), 1)]),
25661
- X("div", KO, [X("span", qO, U(s.value.debugCtxRecalled), 1), X("span", JO, U(x.value.lastCompression.roundsRecalled) + U(s.value.debugCountSuffix), 1)]),
25662
- X("div", YO, [X("span", XO, U(s.value.debugMessageCount), 1), X("span", ZO, U(x.value.lastCompression.originalMessages) + " → " + U(x.value.lastCompression.compressedMessages), 1)]),
25663
- X("div", QO, [X("span", $O, U(s.value.debugStrategy), 1), X("span", ek, U(x.value.lastCompression.strategy), 1)]),
25664
- x.value.lastCompression.decision ? (J(), Y("div", tk, [X("span", nk, U(s.value.debugDecision), 1), X("span", rk, "🤖 " + U(ie(x.value.lastCompression.decision)), 1)])) : Z("", !0)
25665
- ])])) : Z("", !0)
25666
- ], 64)) : (J(), Y("div", hD, U(s.value.debugNoInfo), 1))]))
25694
+ }, U(D(e.status)), 5), X("span", null, U(e.content), 1)]))), 128))])) : Q("", !0),
25695
+ x.value.memory ? (J(), Y("div", zO, [X("div", BO, "📝 " + U(s.value.debugMemoryTitle), 1), X("pre", VO, U(x.value.memory), 1)])) : Q("", !0),
25696
+ x.value.lastCompression ? (J(), Y("div", HO, [X("div", UO, "🗜️ " + U(s.value.debugLastCompTitle), 1), X("div", WO, [
25697
+ X("div", GO, [X("span", KO, U(s.value.debugTriggered), 1), X("span", qO, U(x.value.lastCompression.triggered ? "✓" : s.value.debugNotTriggered), 1)]),
25698
+ X("div", JO, [X("span", YO, U(s.value.debugRoundsSummarized), 1), X("span", XO, U(x.value.lastCompression.roundsSummarized) + " / " + U(x.value.lastCompression.roundsTotal), 1)]),
25699
+ X("div", ZO, [X("span", QO, U(s.value.debugCtxRecalled), 1), X("span", $O, U(x.value.lastCompression.roundsRecalled) + U(s.value.debugCountSuffix), 1)]),
25700
+ X("div", ek, [X("span", tk, U(s.value.debugMessageCount), 1), X("span", nk, U(x.value.lastCompression.originalMessages) + " → " + U(x.value.lastCompression.compressedMessages), 1)]),
25701
+ X("div", rk, [X("span", ik, U(s.value.debugStrategy), 1), X("span", ak, U(x.value.lastCompression.strategy), 1)]),
25702
+ x.value.lastCompression.decision ? (J(), Y("div", ok, [X("span", sk, U(s.value.debugDecision), 1), X("span", ck, "🤖 " + U(ie(x.value.lastCompression.decision)), 1)])) : Q("", !0)
25703
+ ])])) : Q("", !0)
25704
+ ], 64)) : (J(), Y("div", bD, U(s.value.debugNoInfo), 1))]))
25667
25705
  ])
25668
25706
  ], 2), X("div", {
25669
25707
  class: "drawer-mask",
25670
25708
  onClick: v
25671
- })])) : Z("", !0)]),
25709
+ })])) : Q("", !0)]),
25672
25710
  _: 1
25673
25711
  })]));
25674
25712
  }
25675
- }), [["__scopeId", "data-v-c3c5a5dd"]]), ak = { class: "skill-panel" }, ok = { class: "skill-header" }, sk = { class: "skill-title" }, ck = ["title"], lk = { class: "skill-section" }, uk = { class: "section-title" }, dk = ["title"], fk = { class: "field" }, pk = { class: "field-label" }, mk = ["disabled", "placeholder"], hk = { class: "field" }, gk = { class: "field-label" }, _k = ["placeholder"], vk = { class: "field field-textarea" }, yk = { class: "field-label" }, bk = ["placeholder"], xk = {
25713
+ }), [["__scopeId", "data-v-c3c5a5dd"]]), uk = { class: "skill-panel" }, dk = { class: "skill-header" }, fk = { class: "skill-title" }, pk = ["title"], mk = { class: "skill-section" }, hk = { class: "section-title" }, gk = ["title"], _k = { class: "field" }, vk = { class: "field-label" }, yk = ["disabled", "placeholder"], bk = { class: "field" }, xk = { class: "field-label" }, Sk = ["placeholder"], Ck = { class: "field field-textarea" }, wk = { class: "field-label" }, Tk = ["placeholder"], Ek = {
25676
25714
  key: 0,
25677
25715
  class: "skill-error"
25678
- }, Sk = { class: "skill-section" }, Ck = { class: "section-title" }, wk = {
25716
+ }, Dk = { class: "skill-section" }, Ok = { class: "section-title" }, kk = {
25679
25717
  key: 0,
25680
25718
  class: "empty-hint"
25681
- }, Tk = {
25719
+ }, Ak = {
25682
25720
  key: 1,
25683
25721
  class: "skill-list"
25684
- }, Ek = { class: "skill-actions" }, Dk = ["title", "onClick"], Ok = ["title", "onClick"], kk = { class: "skill-hint" }, Ak = /*#__PURE__*/ ry(/* @__PURE__ */ Ii({
25722
+ }, jk = { class: "skill-actions" }, Mk = ["title", "onClick"], Nk = ["title", "onClick"], Pk = { class: "skill-hint" }, Fk = /*#__PURE__*/ oy(/* @__PURE__ */ Ii({
25685
25723
  __name: "SkillPanel",
25686
25724
  props: {
25687
25725
  visible: { type: Boolean },
@@ -25731,71 +25769,71 @@ app.mount('#app');
25731
25769
  function h() {
25732
25770
  u.value = null, i.value = "", a.value = "", o.value = "", s.value = "";
25733
25771
  }
25734
- return (t, n) => (J(), os(vi, { to: "body" }, [ps(gc, { name: "cs-skill-fade" }, {
25772
+ return (t, n) => (J(), os(vi, { to: "body" }, [Z(gc, { name: "cs-skill-fade" }, {
25735
25773
  default: Yr(() => [e.visible ? (J(), Y("div", {
25736
25774
  key: 0,
25737
25775
  class: "skill-mask",
25738
25776
  onClick: n[4] ||= yl((e) => r("close"), ["self"])
25739
- }, [X("div", ak, [
25740
- X("div", ok, [X("span", sk, U(e.messages.skillPanelTitle), 1), X("button", {
25777
+ }, [X("div", uk, [
25778
+ X("div", dk, [X("span", fk, U(e.messages.skillPanelTitle), 1), X("button", {
25741
25779
  class: "skill-close",
25742
25780
  title: e.messages.close,
25743
25781
  onClick: n[0] ||= (e) => r("close")
25744
- }, "✕", 8, ck)]),
25745
- X("div", lk, [
25746
- X("div", uk, [vs(U(u.value ? `${e.messages.skillEditingPrefix}${u.value}` : e.messages.skillCreateNew) + " ", 1), u.value ? (J(), Y("button", {
25782
+ }, "✕", 8, pk)]),
25783
+ X("div", mk, [
25784
+ X("div", hk, [_s(U(u.value ? `${e.messages.skillEditingPrefix}${u.value}` : e.messages.skillCreateNew) + " ", 1), u.value ? (J(), Y("button", {
25747
25785
  key: 0,
25748
25786
  class: "btn btn-ghost btn-cancel",
25749
25787
  title: e.messages.skillCancelEdit,
25750
25788
  onClick: h
25751
- }, U(e.messages.skillCancelEdit), 9, dk)) : Z("", !0)]),
25752
- X("label", fk, [X("span", pk, U(e.messages.skillNameLabel), 1), Zr(X("input", {
25789
+ }, U(e.messages.skillCancelEdit), 9, gk)) : Q("", !0)]),
25790
+ X("label", _k, [X("span", vk, U(e.messages.skillNameLabel), 1), Zr(X("input", {
25753
25791
  "onUpdate:modelValue": n[1] ||= (e) => i.value = e,
25754
25792
  disabled: !!u.value,
25755
25793
  placeholder: e.messages.skillNamePlaceholder,
25756
25794
  class: "field-input"
25757
- }, null, 8, mk), [[gl, i.value]])]),
25758
- X("label", hk, [X("span", gk, U(e.messages.skillDescLabel), 1), Zr(X("input", {
25795
+ }, null, 8, yk), [[gl, i.value]])]),
25796
+ X("label", bk, [X("span", xk, U(e.messages.skillDescLabel), 1), Zr(X("input", {
25759
25797
  "onUpdate:modelValue": n[2] ||= (e) => a.value = e,
25760
25798
  placeholder: e.messages.skillDescPlaceholder,
25761
25799
  class: "field-input"
25762
- }, null, 8, _k), [[gl, a.value]])]),
25763
- X("label", vk, [X("span", yk, U(e.messages.skillContentLabel), 1), Zr(X("textarea", {
25800
+ }, null, 8, Sk), [[gl, a.value]])]),
25801
+ X("label", Ck, [X("span", wk, U(e.messages.skillContentLabel), 1), Zr(X("textarea", {
25764
25802
  "onUpdate:modelValue": n[3] ||= (e) => o.value = e,
25765
25803
  placeholder: e.messages.skillContentPlaceholder,
25766
25804
  rows: "6",
25767
25805
  class: "field-input"
25768
- }, null, 8, bk), [[gl, o.value]])]),
25769
- s.value ? (J(), Y("div", xk, U(s.value), 1)) : Z("", !0),
25806
+ }, null, 8, Tk), [[gl, o.value]])]),
25807
+ s.value ? (J(), Y("div", Ek, U(s.value), 1)) : Q("", !0),
25770
25808
  X("button", {
25771
25809
  class: "btn btn-primary",
25772
25810
  onClick: f
25773
25811
  }, U(u.value ? e.messages.skillSave : e.messages.skillAdd), 1)
25774
25812
  ]),
25775
- X("div", Sk, [X("div", Ck, U(e.messages.skillCreatedTitle) + "(" + U(c.value.length) + ")", 1), c.value.length ? (J(), Y("ul", Tk, [(J(!0), Y(q, null, ca(c.value, (t) => (J(), Y("li", {
25813
+ X("div", Dk, [X("div", Ok, U(e.messages.skillCreatedTitle) + "(" + U(c.value.length) + ")", 1), c.value.length ? (J(), Y("ul", Ak, [(J(!0), Y(q, null, ca(c.value, (t) => (J(), Y("li", {
25776
25814
  key: t,
25777
25815
  class: "skill-item"
25778
- }, [X("span", { class: H(["skill-name", { active: u.value === t }]) }, U(t), 3), X("span", Ek, [X("button", {
25816
+ }, [X("span", { class: H(["skill-name", { active: u.value === t }]) }, U(t), 3), X("span", jk, [X("button", {
25779
25817
  class: "btn btn-ghost btn-edit",
25780
25818
  title: e.messages.skillEditTitle,
25781
25819
  onClick: (e) => m(t)
25782
- }, U(e.messages.skillEditBtn), 9, Dk), X("button", {
25820
+ }, U(e.messages.skillEditBtn), 9, Mk), X("button", {
25783
25821
  class: "btn btn-ghost btn-del",
25784
25822
  title: e.messages.skillDeleteTitle,
25785
25823
  onClick: (e) => p(t)
25786
- }, U(e.messages.skillDeleteBtn), 9, Ok)])]))), 128))])) : (J(), Y("div", wk, U(e.messages.skillEmpty), 1))]),
25787
- X("div", kk, [
25788
- vs(" 💡 " + U(e.messages.skillHintA) + " ", 1),
25824
+ }, U(e.messages.skillDeleteBtn), 9, Nk)])]))), 128))])) : (J(), Y("div", kk, U(e.messages.skillEmpty), 1))]),
25825
+ X("div", Pk, [
25826
+ _s(" 💡 " + U(e.messages.skillHintA) + " ", 1),
25789
25827
  n[5] ||= X("code", null, "load_skill(name)", -1),
25790
- vs(" " + U(e.messages.skillHintB) + " ", 1),
25828
+ _s(" " + U(e.messages.skillHintB) + " ", 1),
25791
25829
  n[6] ||= X("code", null, "skillStorage.id", -1),
25792
- vs(" " + U(e.messages.skillHintC), 1)
25830
+ _s(" " + U(e.messages.skillHintC), 1)
25793
25831
  ])
25794
- ])])) : Z("", !0)]),
25832
+ ])])) : Q("", !0)]),
25795
25833
  _: 1
25796
25834
  })]));
25797
25835
  }
25798
- }), [["__scopeId", "data-v-fcd21121"]]), jk = /*#__PURE__*/ ry(/* @__PURE__ */ Ii({
25836
+ }), [["__scopeId", "data-v-fcd21121"]]), Ik = /*#__PURE__*/ oy(/* @__PURE__ */ Ii({
25799
25837
  __name: "ChatDialog",
25800
25838
  props: {
25801
25839
  fetchResponse: {},
@@ -25845,8 +25883,7 @@ app.mount('#app');
25845
25883
  sections: {},
25846
25884
  csTheme: {},
25847
25885
  icons: {},
25848
- locale: {},
25849
- messages: {}
25886
+ i18n: {}
25850
25887
  },
25851
25888
  emits: ["close"],
25852
25889
  setup(e, { emit: t }) {
@@ -25867,15 +25904,15 @@ app.mount('#app');
25867
25904
  onFocusChipClick: n.onFocusChipClick,
25868
25905
  infoTick: n.infoTick,
25869
25906
  icons: n.icons,
25870
- locale: n.locale,
25871
- dialogMessages: n.messages
25907
+ locale: n.i18n?.locale,
25908
+ dialogMessages: n.i18n?.messages
25872
25909
  });
25873
25910
  $r(w_, i);
25874
25911
  let { isExpanded: a, debugVisible: o, skillVisible: s, closeSkill: c } = i, { scrollContainer: l, onScroll: u, onWheel: d } = i.chat;
25875
25912
  function f(e) {
25876
25913
  return e === "focus" ? n.sections?.focus === !0 : n.sections?.[e] !== !1;
25877
25914
  }
25878
- let p = Q(() => !!n.onAddSkill), m = Q(() => {
25915
+ let p = Qs(() => !!n.onAddSkill), m = Qs(() => {
25879
25916
  if (!n.drawer || n.drawerWidth == null) return null;
25880
25917
  let e = n.drawerWidth;
25881
25918
  return typeof e == "number" ? `${e}px` : e;
@@ -25884,7 +25921,7 @@ app.mount('#app');
25884
25921
  key: 0,
25885
25922
  class: "chat-mask",
25886
25923
  onClick: n[0] ||= (e) => r("close")
25887
- })) : Z("", !0), X("div", {
25924
+ })) : Q("", !0), X("div", {
25888
25925
  class: H(["chat-dialog", {
25889
25926
  collapsed: !G(a) && !e.drawer,
25890
25927
  drawer: e.drawer,
@@ -25898,7 +25935,7 @@ app.mount('#app');
25898
25935
  f("header") ? la(t.$slots, "header", {
25899
25936
  key: 0,
25900
25937
  chat: G(i)
25901
- }, () => [ps(Cy, {
25938
+ }, () => [Z(Oy, {
25902
25939
  title: e.title || G(i).messages.defaultTitle,
25903
25940
  drawer: e.drawer,
25904
25941
  "debug-logs": e.debugLogs,
@@ -25919,11 +25956,11 @@ app.mount('#app');
25919
25956
  "on-new-session",
25920
25957
  "on-open-session",
25921
25958
  "on-remove-session"
25922
- ])], !0) : Z("", !0),
25959
+ ])], !0) : Q("", !0),
25923
25960
  f("focus") ? la(t.$slots, "focus", {
25924
25961
  key: 1,
25925
25962
  chat: G(i)
25926
- }, () => [ps(Py, {
25963
+ }, () => [Z(zy, {
25927
25964
  "get-focus": e.getFocus,
25928
25965
  "on-set-focus": e.onSetFocus,
25929
25966
  "on-clear-focus": e.onClearFocus,
@@ -25937,7 +25974,7 @@ app.mount('#app');
25937
25974
  "info-tick",
25938
25975
  "icons",
25939
25976
  "messages"
25940
- ])], !0) : Z("", !0),
25977
+ ])], !0) : Q("", !0),
25941
25978
  X("div", {
25942
25979
  class: "chat-main",
25943
25980
  ref_key: "scrollContainer",
@@ -25949,24 +25986,24 @@ app.mount('#app');
25949
25986
  key: 0,
25950
25987
  name: "cs-slide"
25951
25988
  }, {
25952
- default: Yr(() => [la(t.$slots, "body", { chat: G(i) }, () => [Zr(ps(PC, {
25989
+ default: Yr(() => [la(t.$slots, "body", { chat: G(i) }, () => [Zr(Z(zC, {
25953
25990
  "show-avatar": e.showAvatar,
25954
25991
  "show-typing": e.showTyping
25955
25992
  }, null, 8, ["show-avatar", "show-typing"]), [[Pc, G(a)]])], !0)]),
25956
25993
  _: 3
25957
- })) : Z("", !0),
25994
+ })) : Q("", !0),
25958
25995
  f("queued") ? la(t.$slots, "queued", {
25959
25996
  key: 1,
25960
25997
  chat: G(i)
25961
- }, () => [ps(WC)], !0) : Z("", !0),
25998
+ }, () => [Z(YC)], !0) : Q("", !0),
25962
25999
  f("approval") ? la(t.$slots, "approval", {
25963
26000
  key: 2,
25964
26001
  chat: G(i)
25965
- }, () => [ps(iw)], !0) : Z("", !0),
26002
+ }, () => [Z(lw)], !0) : Q("", !0),
25966
26003
  f("conflict") ? la(t.$slots, "conflict", {
25967
26004
  key: 3,
25968
26005
  chat: G(i)
25969
- }, () => [ps(xw, {
26006
+ }, () => [Z(Ew, {
25970
26007
  "pending-conflict": e.pendingConflict,
25971
26008
  "on-resolve": e.onResolveConflict,
25972
26009
  icons: G(i).icons,
@@ -25976,22 +26013,22 @@ app.mount('#app');
25976
26013
  "on-resolve",
25977
26014
  "icons",
25978
26015
  "messages"
25979
- ])], !0) : Z("", !0)
26016
+ ])], !0) : Q("", !0)
25980
26017
  ], 544),
25981
26018
  f("footer") ? (J(), os(gc, {
25982
26019
  key: 2,
25983
26020
  name: "cs-slide"
25984
26021
  }, {
25985
- default: Yr(() => [la(t.$slots, "footer", { chat: G(i) }, () => [ps(Iw, {
26022
+ default: Yr(() => [la(t.$slots, "footer", { chat: G(i) }, () => [Z(Vw, {
25986
26023
  placeholder: e.placeholder || G(i).messages.inputPlaceholder,
25987
26024
  "input-rows": e.inputRows
25988
26025
  }, null, 8, ["placeholder", "input-rows"])], !0)]),
25989
26026
  _: 3
25990
- })) : Z("", !0),
26027
+ })) : Q("", !0),
25991
26028
  f("debug") ? la(t.$slots, "debug", {
25992
26029
  key: 3,
25993
26030
  chat: G(i)
25994
- }, () => [ps(ik, {
26031
+ }, () => [Z(lk, {
25995
26032
  visible: G(o),
25996
26033
  "onUpdate:visible": n[4] ||= (e) => /* @__PURE__ */ Cn(o) ? o.value = e : null,
25997
26034
  logs: e.debugLogs,
@@ -26010,11 +26047,11 @@ app.mount('#app');
26010
26047
  "cs-theme",
26011
26048
  "messages",
26012
26049
  "locale"
26013
- ])], !0) : Z("", !0),
26050
+ ])], !0) : Q("", !0),
26014
26051
  f("skill") ? la(t.$slots, "skill", {
26015
26052
  key: 4,
26016
26053
  chat: G(i)
26017
- }, () => [ps(Ak, {
26054
+ }, () => [Z(Fk, {
26018
26055
  visible: G(s),
26019
26056
  "on-add-skill": e.onAddSkill,
26020
26057
  "on-remove-skill": e.onRemoveSkill,
@@ -26030,16 +26067,16 @@ app.mount('#app');
26030
26067
  "on-get-skill",
26031
26068
  "messages",
26032
26069
  "onClose"
26033
- ])], !0) : Z("", !0)
26070
+ ])], !0) : Q("", !0)
26034
26071
  ], 6)], 64));
26035
26072
  }
26036
- }), [["__scopeId", "data-v-e1b803ab"]]);
26073
+ }), [["__scopeId", "data-v-22154cd1"]]);
26037
26074
  //#endregion
26038
26075
  //#region src/core/sdk/mountChatDialog.ts
26039
- function Mk(e) {
26076
+ function Lk(e) {
26040
26077
  let { core: t, dialogCfg: n } = e, r = null, i = e.el, a = t.agent.debugLogs;
26041
26078
  return r = Tl(/* @__PURE__ */ Ii({ setup() {
26042
- return () => $s(jk, {
26079
+ return () => $s(Ik, {
26043
26080
  fetchStream: e.streaming ? t.stream : void 0,
26044
26081
  fetchResponse: e.streaming ? void 0 : (e, n) => {
26045
26082
  if (n) {
@@ -26086,8 +26123,7 @@ function Mk(e) {
26086
26123
  inputRows: n.inputRows,
26087
26124
  sections: n.sections,
26088
26125
  icons: n.icons,
26089
- locale: n.locale,
26090
- messages: n.messages,
26126
+ i18n: e.i18n,
26091
26127
  getFocus: () => t.getFocus(),
26092
26128
  getFocuses: () => t.getFocuses(),
26093
26129
  onSetFocus: (e) => t.setFocus(e),
@@ -26141,7 +26177,7 @@ function Mk(e) {
26141
26177
  }
26142
26178
  //#endregion
26143
26179
  //#region src/core/sdk/ragSubagent.ts
26144
- function Nk(e, t, n, r, i) {
26180
+ function Rk(e, t, n, r, i) {
26145
26181
  let a = [];
26146
26182
  e && a.push("vfs_grep + vfs_read(搜预注入文档)"), t && a.push(`${r}(语义检索)`), n && a.push(`${i}(按 source 加载)`), a.push("fetch_document(公网 URL)");
26147
26183
  let o = [];
@@ -26156,7 +26192,7 @@ function Nk(e, t, n, r, i) {
26156
26192
 
26157
26193
  你是只读检索角色,不要尝试修改任何数据。不要尝试上面未列出的工具。`;
26158
26194
  }
26159
- function Pk(e, t, n, r, i) {
26195
+ function zk(e, t, n, r, i) {
26160
26196
  let a = [], o = [];
26161
26197
  return e && (a.push("- vfs_grep / vfs_read:搜集成方预注入 vfs 的文档(组件文档 / UI 规范)—— 快、静态,先查"), o.push("- 静态文档(组件库文档 / UI 规范):vfs_grep")), t && (a.push(`- ${r}:语义检索(retriever 向量库)—— 模糊匹配,关键词不确定 / 语义相似时用`), o.push(`- 语义相似(「瀑布流组件」「倒计时」「拼团」):${r}`)), n && (a.push(`- ${i}:按 source 精确加载(已知文档 id / URL / key)—— 精确取特定文档`), o.push(`- 已知文档 id / URL:${i}`)), a.push("- fetch_document:公网 URL —— 查公开资料"), o.push("- 公开 URL(设计规范网站 / 第三方文档):fetch_document"), `# 知识检索策略(RAG)
26162
26198
 
@@ -26173,12 +26209,12 @@ ${a.join("\n")}
26173
26209
  ## 何时用何源
26174
26210
  ${o.join("\n")}`;
26175
26211
  }
26176
- var Fk = {
26212
+ var Bk = {
26177
26213
  name: "rag-search",
26178
26214
  description: "多源知识检索策略:vfs 预注入文档 → 语义检索 → 指定文档加载 → 公网;综合结构化结论 + 溯源",
26179
- getContent: () => Pk(!0, !0, !0, "search_docs", "load_doc")
26215
+ getContent: () => zk(!0, !0, !0, "search_docs", "load_doc")
26180
26216
  };
26181
- function Ik(e, n, i) {
26217
+ function Vk(e, n, i) {
26182
26218
  return r(async ({ query: e, topK: t }) => {
26183
26219
  try {
26184
26220
  let r = await n(e, { topK: t ?? i });
@@ -26195,7 +26231,7 @@ function Ik(e, n, i) {
26195
26231
  })
26196
26232
  });
26197
26233
  }
26198
- function Lk(e, n) {
26234
+ function Hk(e, n) {
26199
26235
  return r(async ({ source: e }) => {
26200
26236
  try {
26201
26237
  let t = await n(e), r = Array.isArray(t) ? t : [t];
@@ -26209,19 +26245,19 @@ function Lk(e, n) {
26209
26245
  schema: t.object({ source: t.string().describe("文档标识(id/URL/key)") })
26210
26246
  });
26211
26247
  }
26212
- function Rk(e) {
26248
+ function Uk(e) {
26213
26249
  let { retriever: t, loader: n, useVfs: r = !0, id: i = "rag", description: a, topK: o = 5, searchToolName: s = "search_docs", loadToolName: c = "load_doc", maxToolRounds: l = 8, summarization: u, skills: d, extraTools: f } = e;
26214
26250
  if (!t && !n && r === !1) throw Error("[page-agent-sdk][createRagSubagent] 至少配一种知识源:retriever / loader / useVfs(true)");
26215
26251
  let p = [];
26216
- t && p.push(Ik(s, t, o)), n && p.push(Lk(c, n)), f && p.push(...f);
26252
+ t && p.push(Vk(s, t, o)), n && p.push(Hk(c, n)), f && p.push(...f);
26217
26253
  let m = r ? [
26218
26254
  "vfs_grep",
26219
26255
  "vfs_read",
26220
26256
  "vfs_json_read"
26221
- ] : void 0, h = Nk(r, !!t, !!n, s, c), g = {
26257
+ ] : void 0, h = Rk(r, !!t, !!n, s, c), g = {
26222
26258
  name: "rag-search",
26223
- description: Fk.description,
26224
- getContent: () => Pk(r, !!t, !!n, s, c)
26259
+ description: Bk.description,
26260
+ getContent: () => zk(r, !!t, !!n, s, c)
26225
26261
  };
26226
26262
  return {
26227
26263
  id: i,
@@ -26236,8 +26272,8 @@ function Rk(e) {
26236
26272
  }
26237
26273
  //#endregion
26238
26274
  //#region src/core/index.ts
26239
- function zk(e) {
26240
- return m_(e, Mk);
26275
+ function Wk(e) {
26276
+ return m_(e, Lk);
26241
26277
  }
26242
26278
  //#endregion
26243
- export { iw as ApprovalBar, Dh as CAPABILITIES, Ah as CONTEXT_PRESETS, jk as ChatDialog, Cy as ChatHeader, Iw as ChatInput, rC as CodePreview, Vm as CompressDecisionSchema, xw as ConflictBar, v_ as DEFAULT_DIALOG_ICONS, Kf as DEFAULT_PROMPT_SOFT_CAP, Wp as DEFAULT_SYSTEM_PROMPT, Gp as DEFAULT_SYSTEM_PROMPT_EN, ik as DebugDrawer, Py as FocusBar, MS as HLJS_BLOCK_MAX_CHARS, sm as HTML_VOID_TAGS, vf as HUMAN_CONFIRM_TOOL_NAME, iy as IconGlyph, x_ as MESSAGES_EN_US, b_ as MESSAGES_ZH_CN, Ul as MIN_CONTEXT_WINDOW, aC as MessageContent, PC as MessageList, wC as MessageRow, WC as QueuedBar, Gf as SOFT_CAP_MIN_WINDOW, zf as STOP_WORDS, Ak as SkillPanel, hd as UNSAFE_KEYS, Ug as actionsToInspectInfo, Hg as actionsToTools, Il as agentError, Lp as analyzeContext, Od as applyPatchToClone, jd as applyPatchToLive, Fl as asAgentError, Kp as buildDataPrompt, Mm as buildHtmlFragmentSkill, qp as buildSystemPrompt, w_ as chatContextKey, gg as commitSetToBind, Up as connectMcp, C as constructLlmFromConfig, S as constructOpenLlmSync, __ as copyText, ku as createAgent, _f as createApprovalMiddleware, T_ as createChatContext, zk as createChatSdk, Of as createCheckpointManager, kf as createCheckpointMiddleware, $m as createConflictManager, Rp as createContextInspectorMiddleware, wg as createDataOps, Pm as createHtmlFormatCheck, Lm as createHtmlSubagent, xf as createHumanConfirmMiddleware, bf as createHumanConfirmTool, bh as createMemoryBackend, uf as createMemoryMiddleware, y as createProxyLlm, Rk as createRagSubagent, qd as createSandboxRunner, kh as createSdkEvents, o_ as createSerialRunner, wh as createSessionStore, n_ as createSkillStore, mp as createSubagentMiddleware, Qf as createSubagentTracker, _p as createSubagentsMiddleware, Xg as createUsageHintsMiddleware, vp as createVerifyMiddleware, Zp as createVfs, Sh as createWebStorageBackend, wp as createWriteBackCheck, xd as deepClone, Kg as defineDataToolset, Yd as defineSkill, Rm as defineTool, bd as deleteByPath, Hm as deriveTitle, Ku as describeSchemaNode, pu as detectGarbledToolCall, _u as detectTransitionalReply, Fd as diffObjects, Ag as domToStructure, Mg as domTools, Gg as domToolsStatic, Vf as estimateMessageTokens, Hf as estimateRoundTokens, Gl as estimateTokens, T as extractReasoningDelta, ad as extractSchemaHint, zp as extractText, w as extractTextDelta, E as extractUsage, Eg as fetchDocTools, Wg as fetchTools, hg as filterByToolMode, Pd as findStrippedKeys, qu as formatConstraints, jl as formatZodIssues, vd as getByPath, jg as getDomTool, Fg as getEnvSummary, Nu as getSchemaAtPath, Au as getSchemaTopKeys, Jl as getTraceMetrics, Dd as hashValue, Nm as htmlFragmentSkill, ed as htmlOrchestratorPrompt, Uf as indexSummarize, Rg as inspectEnvTool, zg as inspectTools, Um as isChatModel, iu as isContextLengthError, Xv as isIconHtml, ju as isPathAllowed, fh as isQuotaError, gd as isUnsafePath, Wh as jpEval, Nl as jsonParseError, wd as limitDepth, RS as markedToHtml, Sd as maybeParseValue, Ad as moveByPath, x as normalizeBaseUrl, O as normalizeUsage, ql as offloadPassThroughChars, Kl as offloadThresholdChars, $u as presets, Bu as projectBySchema, zu as projectBySchemaDeep, Cd as projectFields, Wf as recallRounds, zS as renderMarkdownHtml, Ju as renderSchemaHint, Yu as renderSchemaOverview, Qu as renderSchemaShallow, Oh as resolveCapabilities, Mh as resolveContextOptions, Eh as resolveDialogConfig, y_ as resolveDialogIcons, C_ as resolveDialogMessages, Qm as resolveLlm, Wl as resolveModelCaps, qf as resolvePromptSoftCap, Th as resolveStorage, Nd as restoreInPlace, Md as restoreLive, Pl as routeError, Jd as runHostScript, Jh as runSandboxedScript, _d as safeMerge, Pg as safeSerialize, Td as safeStringify, mu as sanitizeGarbledContent, $v as sanitizeIconHtml, Kh as searchJson, qg as selectBuiltinTools, yd as setByPath, Jf as shouldTriggerCompression, b as stripStainlessFetch, td as systemPromptHelpers, Bf as tokenize, $ as toolError, Mu as unwrapSchema, g_ as useChat, E_ as useChatContext, lm as validateHtmlFormat, e as z, Ml as zodError };
26279
+ export { lw as ApprovalBar, Dh as CAPABILITIES, Ah as CONTEXT_PRESETS, Ik as ChatDialog, Oy as ChatHeader, Vw as ChatInput, cC as CodePreview, Vm as CompressDecisionSchema, Ew as ConflictBar, v_ as DEFAULT_DIALOG_ICONS, Kf as DEFAULT_PROMPT_SOFT_CAP, Wp as DEFAULT_SYSTEM_PROMPT, Gp as DEFAULT_SYSTEM_PROMPT_EN, lk as DebugDrawer, zy as FocusBar, LS as HLJS_BLOCK_MAX_CHARS, sm as HTML_VOID_TAGS, vf as HUMAN_CONFIRM_TOOL_NAME, sy as IconGlyph, x_ as MESSAGES_EN_US, b_ as MESSAGES_ZH_CN, Ul as MIN_CONTEXT_WINDOW, uC as MessageContent, zC as MessageList, kC as MessageRow, YC as QueuedBar, Gf as SOFT_CAP_MIN_WINDOW, zf as STOP_WORDS, Fk as SkillPanel, hd as UNSAFE_KEYS, Ug as actionsToInspectInfo, Hg as actionsToTools, Il as agentError, Lp as analyzeContext, Od as applyPatchToClone, jd as applyPatchToLive, Fl as asAgentError, Kp as buildDataPrompt, Mm as buildHtmlFragmentSkill, qp as buildSystemPrompt, w_ as chatContextKey, gg as commitSetToBind, Up as connectMcp, C as constructLlmFromConfig, S as constructOpenLlmSync, __ as copyText, ku as createAgent, _f as createApprovalMiddleware, T_ as createChatContext, Wk as createChatSdk, Of as createCheckpointManager, kf as createCheckpointMiddleware, $m as createConflictManager, Rp as createContextInspectorMiddleware, wg as createDataOps, Pm as createHtmlFormatCheck, Lm as createHtmlSubagent, xf as createHumanConfirmMiddleware, bf as createHumanConfirmTool, bh as createMemoryBackend, uf as createMemoryMiddleware, y as createProxyLlm, Uk as createRagSubagent, qd as createSandboxRunner, kh as createSdkEvents, o_ as createSerialRunner, wh as createSessionStore, n_ as createSkillStore, mp as createSubagentMiddleware, Qf as createSubagentTracker, _p as createSubagentsMiddleware, Xg as createUsageHintsMiddleware, vp as createVerifyMiddleware, Zp as createVfs, Sh as createWebStorageBackend, wp as createWriteBackCheck, xd as deepClone, Kg as defineDataToolset, Yd as defineSkill, Rm as defineTool, bd as deleteByPath, Hm as deriveTitle, Ku as describeSchemaNode, pu as detectGarbledToolCall, _u as detectTransitionalReply, Fd as diffObjects, Ag as domToStructure, Mg as domTools, Gg as domToolsStatic, Vf as estimateMessageTokens, Hf as estimateRoundTokens, Gl as estimateTokens, T as extractReasoningDelta, ad as extractSchemaHint, zp as extractText, w as extractTextDelta, E as extractUsage, Eg as fetchDocTools, Wg as fetchTools, hg as filterByToolMode, Pd as findStrippedKeys, qu as formatConstraints, jl as formatZodIssues, vd as getByPath, jg as getDomTool, Fg as getEnvSummary, Nu as getSchemaAtPath, Au as getSchemaTopKeys, Jl as getTraceMetrics, Dd as hashValue, Nm as htmlFragmentSkill, ed as htmlOrchestratorPrompt, Uf as indexSummarize, Rg as inspectEnvTool, zg as inspectTools, Um as isChatModel, iu as isContextLengthError, Xv as isIconHtml, ju as isPathAllowed, fh as isQuotaError, gd as isUnsafePath, Wh as jpEval, Nl as jsonParseError, wd as limitDepth, US as markedToHtml, Sd as maybeParseValue, Ad as moveByPath, x as normalizeBaseUrl, O as normalizeUsage, ql as offloadPassThroughChars, Kl as offloadThresholdChars, $u as presets, Bu as projectBySchema, zu as projectBySchemaDeep, Cd as projectFields, Wf as recallRounds, WS as renderMarkdownHtml, Ju as renderSchemaHint, Yu as renderSchemaOverview, Qu as renderSchemaShallow, Oh as resolveCapabilities, Mh as resolveContextOptions, Eh as resolveDialogConfig, y_ as resolveDialogIcons, C_ as resolveDialogMessages, Qm as resolveLlm, Wl as resolveModelCaps, qf as resolvePromptSoftCap, Th as resolveStorage, Nd as restoreInPlace, Md as restoreLive, Pl as routeError, Jd as runHostScript, Jh as runSandboxedScript, _d as safeMerge, Pg as safeSerialize, Td as safeStringify, mu as sanitizeGarbledContent, $v as sanitizeIconHtml, ny as sanitizeMessageHtml, Kh as searchJson, qg as selectBuiltinTools, yd as setByPath, Jf as shouldTriggerCompression, b as stripStainlessFetch, td as systemPromptHelpers, Bf as tokenize, $ as toolError, Mu as unwrapSchema, g_ as useChat, E_ as useChatContext, lm as validateHtmlFormat, e as z, Ml as zodError };