page-agent-sdk 4.2.1 → 4.2.2

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.
@@ -75408,6 +75408,7 @@ function bPe(e = {}) {
75408
75408
  content: "",
75409
75409
  timestamp: Date.now(),
75410
75410
  reasoning: "",
75411
+ reasoningTotal: 0,
75411
75412
  steps: []
75412
75413
  }), n = !1;
75413
75414
  c.messages.push(t);
@@ -75418,7 +75419,7 @@ function bPe(e = {}) {
75418
75419
  e.round > 1 && (t.content || t.reasoning) && (n = !0);
75419
75420
  break;
75420
75421
  case "reasoning":
75421
- n && (t.reasoning += "\n", n = !1), t.reasoning = (t.reasoning + e.delta).slice(-4e3);
75422
+ n && (t.reasoning += "\n", n = !1), t.reasoningTotal += e.delta.length, t.reasoning = (t.reasoning + e.delta).slice(-4e3);
75422
75423
  break;
75423
75424
  case "text":
75424
75425
  n && (t.content += "\n", n = !1), t.content += e.delta;
@@ -77422,15 +77423,17 @@ var oIe = {
77422
77423
  running: {
77423
77424
  type: Boolean,
77424
77425
  default: !1
77425
- }
77426
+ },
77427
+ total: { default: void 0 }
77426
77428
  },
77427
77429
  emits: ["toggle"],
77428
77430
  setup(e) {
77429
77431
  let t = e, n = BX(() => {
77430
- let e = t.text.length;
77431
- if (e < 1e3) return String(e);
77432
- let n = e / 1e3;
77433
- return `${n >= 100 ? Math.round(n) : +n.toFixed(1)}k`;
77432
+ var e;
77433
+ let n = (e = t.total) == null ? t.text.length : e;
77434
+ if (n < 1e3) return String(n);
77435
+ let r = n / 1e3;
77436
+ return `${r >= 100 ? Math.round(r) : +r.toFixed(1)}k`;
77434
77437
  });
77435
77438
  return (t, r) => e.text ? (X(), Z("div", {
77436
77439
  key: 0,
@@ -77445,14 +77448,14 @@ var oIe = {
77445
77448
  Q("span", vIe, J(e.expanded ? "收起" : "展开"), 1)
77446
77449
  ]), e.expanded ? (X(), Z("div", yIe, J(e.text), 1)) : $("", !0)], 2)) : $("", !0);
77447
77450
  }
77448
- }), [["__scopeId", "data-v-b5a91bd4"]]);
77451
+ }), [["__scopeId", "data-v-7ff8ea75"]]);
77449
77452
  //#endregion
77450
77453
  //#region src/core/components/message/SubReasonDetails.vue?vue&type=script&setup=true&lang.ts
77451
77454
  M();
77452
77455
  var xIe = ["open"], SIe = { class: "sub-reason-head" }, CIe = {
77453
77456
  key: 0,
77454
77457
  class: "sub-reason-trunc"
77455
- }, wIe = ["title"], TIe = /*#__PURE__*/ _9(/* @__PURE__ */ nY({
77458
+ }, wIe = { class: "sub-reason-toggle" }, TIe = ["title"], EIe = /*#__PURE__*/ _9(/* @__PURE__ */ nY({
77456
77459
  __name: "SubReasonDetails",
77457
77460
  props: {
77458
77461
  subReason: {},
@@ -77493,56 +77496,57 @@ var xIe = ["open"], SIe = { class: "sub-reason-head" }, CIe = {
77493
77496
  Q("span", { class: zK(["status-dot sm", e.status === "running" ? "running" : "ok"]) }, null, 2),
77494
77497
  Q("span", { class: zK(["sub-reason-label", { pulsing: e.status === "running" }]) }, J(e.status === "running" ? `${e.messages.thinkingCountPrefix}${a.value}${e.messages.charCountSuffix}` : e.messages.reasoningTitle), 3),
77495
77498
  o.value ? (X(), Z("span", CIe, J(e.messages.truncatedNotePrefix) + J(e.subReason.length) + J(e.messages.truncatedNoteSuffix), 1)) : $("", !0),
77499
+ Q("span", wIe, J(r.value ? e.messages.collapse : e.messages.expand), 1),
77496
77500
  Q("button", {
77497
77501
  type: "button",
77498
77502
  class: zK(["sub-reason-copy", { copied: s.value }]),
77499
77503
  title: o.value ? e.messages.copyThinkingTruncTitle : e.messages.copyThinking,
77500
77504
  onClick: DZ(c, ["stop", "prevent"])
77501
- }, J(s.value ? e.messages.copied : e.messages.copy), 11, wIe)
77505
+ }, J(s.value ? e.messages.copied : e.messages.copy), 11, TIe)
77502
77506
  ]), Q("div", {
77503
77507
  ref_key: "bodyRef",
77504
77508
  ref: n,
77505
77509
  class: "sub-reason-body"
77506
77510
  }, J(o.value ? "…(前面已截断)\n" : "") + J(e.subReason), 513)], 40, xIe));
77507
77511
  }
77508
- }), [["__scopeId", "data-v-82b847cc"]]);
77512
+ }), [["__scopeId", "data-v-ee8bc184"]]);
77509
77513
  //#endregion
77510
77514
  //#region src/core/components/message/MessageSteps.vue?vue&type=script&setup=true&lang.ts
77511
77515
  M();
77512
- var EIe = {
77516
+ var DIe = {
77513
77517
  key: 0,
77514
77518
  class: "steps-block"
77515
- }, DIe = { class: "step-head" }, OIe = { class: "step-name" }, kIe = ["title"], AIe = {
77519
+ }, OIe = { class: "step-head" }, kIe = { class: "step-name" }, AIe = ["title"], jIe = {
77516
77520
  key: 1,
77517
77521
  class: "step-count"
77518
- }, jIe = {
77522
+ }, MIe = {
77519
77523
  key: 2,
77520
77524
  class: "step-duration"
77521
- }, MIe = ["onClick"], NIe = {
77525
+ }, NIe = ["onClick"], PIe = {
77522
77526
  key: 0,
77523
77527
  class: "step-detail"
77524
- }, PIe = {
77528
+ }, FIe = {
77525
77529
  key: 0,
77526
77530
  class: "step-detail-call-label"
77527
- }, FIe = {
77531
+ }, IIe = {
77528
77532
  key: 1,
77529
77533
  class: "step-detail-section"
77530
- }, IIe = { class: "step-detail-head" }, LIe = ["onClick"], RIe = { class: "step-detail-pre" }, zIe = {
77534
+ }, LIe = { class: "step-detail-head" }, RIe = ["onClick"], zIe = { class: "step-detail-pre" }, BIe = {
77531
77535
  key: 2,
77532
77536
  class: "step-detail-section"
77533
- }, BIe = { class: "step-detail-head" }, VIe = ["onClick"], HIe = {
77537
+ }, VIe = { class: "step-detail-head" }, HIe = ["onClick"], UIe = {
77534
77538
  key: 3,
77535
77539
  class: "step-detail-empty"
77536
- }, UIe = {
77540
+ }, WIe = {
77537
77541
  key: 2,
77538
77542
  class: "step-children"
77539
- }, WIe = { class: "step-children-label" }, GIe = { class: "step-name" }, KIe = {
77543
+ }, GIe = { class: "step-children-label" }, KIe = { class: "step-name" }, qIe = {
77540
77544
  key: 0,
77541
77545
  class: "step-count"
77542
- }, qIe = {
77546
+ }, JIe = {
77543
77547
  key: 1,
77544
77548
  class: "step-status running"
77545
- }, JIe = 2e3, YIe = 4e3, XIe = /*#__PURE__*/ _9(/* @__PURE__ */ nY({
77549
+ }, YIe = 2e3, XIe = 4e3, ZIe = /*#__PURE__*/ _9(/* @__PURE__ */ nY({
77546
77550
  __name: "MessageSteps",
77547
77551
  props: {
77548
77552
  steps: {},
@@ -77627,8 +77631,8 @@ var EIe = {
77627
77631
  } catch (t) {
77628
77632
  n = String(e);
77629
77633
  }
77630
- return n.length > JIe ? {
77631
- text: n.slice(0, JIe) + t.messages.displayTruncatedSuffix,
77634
+ return n.length > YIe ? {
77635
+ text: n.slice(0, YIe) + t.messages.displayTruncatedSuffix,
77632
77636
  truncated: !0
77633
77637
  } : {
77634
77638
  text: n,
@@ -77648,8 +77652,8 @@ var EIe = {
77648
77652
  truncated: !1
77649
77653
  };
77650
77654
  let n = m(e);
77651
- return n.length > YIe ? {
77652
- text: n.slice(0, YIe) + t.messages.displayTruncatedSuffix,
77655
+ return n.length > XIe ? {
77656
+ text: n.slice(0, XIe) + t.messages.displayTruncatedSuffix,
77653
77657
  truncated: !0
77654
77658
  } : {
77655
77659
  text: n,
@@ -77669,47 +77673,47 @@ var EIe = {
77669
77673
  }
77670
77674
  R7(e);
77671
77675
  }
77672
- return (t, s) => e.steps.length ? (X(), Z("div", EIe, [(X(!0), Z(oX, null, gY(i.value, (t, i) => {
77676
+ return (t, s) => e.steps.length ? (X(), Z("div", DIe, [(X(!0), Z(oX, null, gY(i.value, (t, i) => {
77673
77677
  var s;
77674
77678
  return X(), Z("div", {
77675
77679
  key: i,
77676
77680
  class: zK(["step-item", t.status])
77677
77681
  }, [
77678
- Q("div", DIe, [
77682
+ Q("div", OIe, [
77679
77683
  Q("span", { class: zK(["status-dot", t.status]) }, null, 2),
77680
- Q("span", OIe, J(t.name), 1),
77684
+ Q("span", kIe, J(t.name), 1),
77681
77685
  a(t.name) ? (X(), Z("span", {
77682
77686
  key: 0,
77683
77687
  class: "subagent-badge",
77684
77688
  title: e.messages.subagentBadgeTitle
77685
- }, [bX(v9, { icon: e.icons.subagent }, null, 8, ["icon"]), SX(" " + J(e.messages.subagentBadge), 1)], 8, kIe)) : $("", !0),
77686
- t.count > 1 ? (X(), Z("span", AIe, "×" + J(t.count), 1)) : $("", !0),
77689
+ }, [bX(v9, { icon: e.icons.subagent }, null, 8, ["icon"]), SX(" " + J(e.messages.subagentBadge), 1)], 8, AIe)) : $("", !0),
77690
+ t.count > 1 ? (X(), Z("span", jIe, "×" + J(t.count), 1)) : $("", !0),
77687
77691
  Q("span", { class: zK(["step-status", t.status]) }, [bX(y9, { text: n(t.status) }, null, 8, ["text"])], 2),
77688
- t.durationMs != null && t.status !== "running" ? (X(), Z("span", jIe, J(o(t.durationMs)), 1)) : $("", !0),
77692
+ t.durationMs != null && t.status !== "running" ? (X(), Z("span", MIe, J(o(t.durationMs)), 1)) : $("", !0),
77689
77693
  f(t.calls) ? (X(), Z("button", {
77690
77694
  key: 3,
77691
77695
  type: "button",
77692
77696
  class: zK(["step-detail-toggle", { open: u.has(i) }]),
77693
77697
  onClick: (e) => d(i)
77694
- }, J(u.has(i) ? e.messages.collapse : e.messages.expand), 11, MIe)) : $("", !0)
77698
+ }, J(u.has(i) ? e.messages.collapse : e.messages.expand), 11, NIe)) : $("", !0)
77695
77699
  ]),
77696
- u.has(i) && (s = t.calls) != null && s.length ? (X(), Z("div", NIe, [(X(!0), Z(oX, null, gY(t.calls, (n, r) => (X(), Z("div", {
77700
+ u.has(i) && (s = t.calls) != null && s.length ? (X(), Z("div", PIe, [(X(!0), Z(oX, null, gY(t.calls, (n, r) => (X(), Z("div", {
77697
77701
  key: r,
77698
77702
  class: "step-detail-call"
77699
77703
  }, [
77700
- t.count > 1 ? (X(), Z("div", PIe, J(e.messages.nthCallPrefix) + J(r + 1) + J(e.messages.nthCallSuffix), 1)) : $("", !0),
77701
- p(n.args).text ? (X(), Z("div", FIe, [Q("div", IIe, [SX(J(e.messages.argsLabel), 1), Q("button", {
77704
+ t.count > 1 ? (X(), Z("div", FIe, J(e.messages.nthCallPrefix) + J(r + 1) + J(e.messages.nthCallSuffix), 1)) : $("", !0),
77705
+ p(n.args).text ? (X(), Z("div", IIe, [Q("div", LIe, [SX(J(e.messages.argsLabel), 1), Q("button", {
77702
77706
  type: "button",
77703
77707
  class: "step-detail-copy",
77704
77708
  onClick: (e) => g(p(n.args).text, p(n.args).truncated, n.args)
77705
- }, J(e.messages.copy), 9, LIe)]), Q("pre", RIe, J(p(n.args).text), 1)])) : $("", !0),
77706
- n.status !== "running" && h(n.result).text ? (X(), Z("div", zIe, [Q("div", BIe, [SX(J(e.messages.resultLabel), 1), Q("button", {
77709
+ }, J(e.messages.copy), 9, RIe)]), Q("pre", zIe, J(p(n.args).text), 1)])) : $("", !0),
77710
+ n.status !== "running" && h(n.result).text ? (X(), Z("div", BIe, [Q("div", VIe, [SX(J(e.messages.resultLabel), 1), Q("button", {
77707
77711
  type: "button",
77708
77712
  class: "step-detail-copy",
77709
77713
  onClick: (e) => g(h(n.result).text, h(n.result).truncated, n.result)
77710
- }, J(e.messages.copy), 9, VIe)]), Q("pre", { class: zK(["step-detail-pre", { err: n.status === "error" }]) }, J(h(n.result).text), 3)])) : n.status !== "running" && !h(n.result).text ? (X(), Z("div", HIe, J(e.messages.noResult), 1)) : $("", !0)
77714
+ }, J(e.messages.copy), 9, HIe)]), Q("pre", { class: zK(["step-detail-pre", { err: n.status === "error" }]) }, J(h(n.result).text), 3)])) : n.status !== "running" && !h(n.result).text ? (X(), Z("div", UIe, J(e.messages.noResult), 1)) : $("", !0)
77711
77715
  ]))), 128))])) : $("", !0),
77712
- t.subReason ? (X(), hX(TIe, {
77716
+ t.subReason ? (X(), hX(EIe, {
77713
77717
  key: 1,
77714
77718
  "sub-reason": t.subReason,
77715
77719
  "sub-reason-full": t.subReasonFull,
@@ -77721,14 +77725,14 @@ var EIe = {
77721
77725
  "status",
77722
77726
  "messages"
77723
77727
  ])) : $("", !0),
77724
- t.children && t.children.length ? (X(), Z("div", UIe, [Q("div", WIe, [bX(v9, { icon: e.icons.subagentProgress }, null, 8, ["icon"]), SX(" " + J(e.messages.subagentProgress), 1)]), (X(!0), Z(oX, null, gY(r(t.children), (e, t) => (X(), Z("div", {
77728
+ t.children && t.children.length ? (X(), Z("div", WIe, [Q("div", GIe, [bX(v9, { icon: e.icons.subagentProgress }, null, 8, ["icon"]), SX(" " + J(e.messages.subagentProgress), 1)]), (X(!0), Z(oX, null, gY(r(t.children), (e, t) => (X(), Z("div", {
77725
77729
  key: t,
77726
77730
  class: zK(["step-child", e.status])
77727
77731
  }, [
77728
77732
  Q("span", { class: zK(["status-dot sm", e.status]) }, null, 2),
77729
- Q("span", GIe, J(e.name), 1),
77730
- e.count > 1 ? (X(), Z("span", KIe, "×" + J(e.count), 1)) : $("", !0),
77731
- e.status === "running" ? (X(), Z("span", qIe, "…")) : $("", !0)
77733
+ Q("span", KIe, J(e.name), 1),
77734
+ e.count > 1 ? (X(), Z("span", qIe, "×" + J(e.count), 1)) : $("", !0),
77735
+ e.status === "running" ? (X(), Z("span", JIe, "…")) : $("", !0)
77732
77736
  ], 2))), 128))])) : $("", !0)
77733
77737
  ], 2);
77734
77738
  }), 128))])) : $("", !0);
@@ -77751,7 +77755,7 @@ function x9() {
77751
77755
  };
77752
77756
  }
77753
77757
  var S9 = x9();
77754
- function ZIe(e) {
77758
+ function QIe(e) {
77755
77759
  S9 = e;
77756
77760
  }
77757
77761
  var C9 = { exec: () => null };
@@ -77772,7 +77776,7 @@ function T9(e, t = "") {
77772
77776
  };
77773
77777
  return r;
77774
77778
  }
77775
- var QIe = ((e = "") => {
77779
+ var $Ie = ((e = "") => {
77776
77780
  try {
77777
77781
  return !!RegExp("(?<=1)(?<!1)" + e);
77778
77782
  } catch (e) {
@@ -77835,91 +77839,91 @@ var QIe = ((e = "") => {
77835
77839
  headingBeginRegex: w9((e) => RegExp(`^ {0,${e}}#`)),
77836
77840
  htmlBeginRegex: w9((e) => RegExp(`^ {0,${e}}<(?:[a-z].*>|!--)`, "i")),
77837
77841
  blockquoteBeginRegex: w9((e) => RegExp(`^ {0,${e}}>`))
77838
- }, $Ie = /^(?:[ \t]*(?:\n|$))+/, eLe = /^((?: {4}| {0,3}\t)[^\n]+(?:\n(?:[ \t]*(?:\n|$))*)?)+/, tLe = /^ {0,3}(`{3,}(?=[^`\n]*(?:\n|$))|~{3,})([^\n]*)(?:\n|$)(?:|([\s\S]*?)(?:\n|$))(?: {0,3}\1[~`]* *(?=\n|$)|$)/, D9 = /^ {0,3}((?:-[\t ]*){3,}|(?:_[ \t]*){3,}|(?:\*[ \t]*){3,})(?:\n+|$)/, nLe = /^ {0,3}(#{1,6})(?=\s|$)(.*)(?:\n+|$)/, O9 = / {0,3}(?:[*+-]|\d{1,9}[.)])/, rLe = /^(?!bull |blockCode|fences|blockquote|heading|html|table)((?:.|\n(?!\s*?\n|bull |blockCode|fences|blockquote|heading|html|table))+?)\n {0,3}(=+|-+) *(?:\n+|$)/, iLe = T9(rLe).replace(/bull/g, O9).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(), aLe = T9(rLe).replace(/bull/g, O9).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(), k9 = /^([^\n]+(?:\n(?!hr|heading|lheading|blockquote|fences|list|html|table| +\n)[^\n]+)*)/, oLe = /^[^\n]+/, A9 = /(?!\s*\])(?:\\[\s\S]|[^\[\]\\])+/, sLe = T9(/^ {0,3}\[(label)\]: *(?:\n[ \t]*)?([^<\s][^\s]*|<.*?>)(?:(?: +(?:\n[ \t]*)?| *\n[ \t]*)(title))? *(?:\n+|$)/).replace("label", A9).replace("title", /(?:"(?:\\"?|[^"\\])*"|'[^'\n]*(?:\n[^'\n]+)*\n?'|\([^()]*\))/).getRegex(), cLe = T9(/^(bull)([ \t][^\n]*?)?(?:\n|$)/).replace(/bull/g, O9).getRegex(), j9 = "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", M9 = /<!--(?:-?>|[\s\S]*?(?:-->|$))/, lLe = T9("^ {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", M9).replace("tag", j9).replace("attribute", / +[a-zA-Z:_][\w.:-]*(?: *= *"[^"\n]*"| *= *'[^'\n]*'| *= *[^\s"'=<>`]+)?/).getRegex(), uLe = (e) => T9(k9).replace("hr", D9).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", j9).getRegex(), dLe = uLe(/ {0,3}(?:[*+-]|1[.)])[ \t]+[^ \t\n]/), fLe = uLe(/ {0,3}(?:[*+-]|\d{1,9}[.)])[ \t]+[^ \t\n]/), N9 = {
77839
- blockquote: T9(/^( {0,3}> ?(paragraph|[^\n]*)(?:\n|$))+/).replace("paragraph", fLe).getRegex(),
77840
- code: eLe,
77841
- def: sLe,
77842
- fences: tLe,
77843
- heading: nLe,
77842
+ }, eLe = /^(?:[ \t]*(?:\n|$))+/, tLe = /^((?: {4}| {0,3}\t)[^\n]+(?:\n(?:[ \t]*(?:\n|$))*)?)+/, nLe = /^ {0,3}(`{3,}(?=[^`\n]*(?:\n|$))|~{3,})([^\n]*)(?:\n|$)(?:|([\s\S]*?)(?:\n|$))(?: {0,3}\1[~`]* *(?=\n|$)|$)/, D9 = /^ {0,3}((?:-[\t ]*){3,}|(?:_[ \t]*){3,}|(?:\*[ \t]*){3,})(?:\n+|$)/, rLe = /^ {0,3}(#{1,6})(?=\s|$)(.*)(?:\n+|$)/, O9 = / {0,3}(?:[*+-]|\d{1,9}[.)])/, iLe = /^(?!bull |blockCode|fences|blockquote|heading|html|table)((?:.|\n(?!\s*?\n|bull |blockCode|fences|blockquote|heading|html|table))+?)\n {0,3}(=+|-+) *(?:\n+|$)/, aLe = T9(iLe).replace(/bull/g, O9).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(), oLe = T9(iLe).replace(/bull/g, O9).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(), k9 = /^([^\n]+(?:\n(?!hr|heading|lheading|blockquote|fences|list|html|table| +\n)[^\n]+)*)/, sLe = /^[^\n]+/, A9 = /(?!\s*\])(?:\\[\s\S]|[^\[\]\\])+/, cLe = T9(/^ {0,3}\[(label)\]: *(?:\n[ \t]*)?([^<\s][^\s]*|<.*?>)(?:(?: +(?:\n[ \t]*)?| *\n[ \t]*)(title))? *(?:\n+|$)/).replace("label", A9).replace("title", /(?:"(?:\\"?|[^"\\])*"|'[^'\n]*(?:\n[^'\n]+)*\n?'|\([^()]*\))/).getRegex(), lLe = T9(/^(bull)([ \t][^\n]*?)?(?:\n|$)/).replace(/bull/g, O9).getRegex(), j9 = "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", M9 = /<!--(?:-?>|[\s\S]*?(?:-->|$))/, uLe = T9("^ {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", M9).replace("tag", j9).replace("attribute", / +[a-zA-Z:_][\w.:-]*(?: *= *"[^"\n]*"| *= *'[^'\n]*'| *= *[^\s"'=<>`]+)?/).getRegex(), dLe = (e) => T9(k9).replace("hr", D9).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", j9).getRegex(), fLe = dLe(/ {0,3}(?:[*+-]|1[.)])[ \t]+[^ \t\n]/), pLe = dLe(/ {0,3}(?:[*+-]|\d{1,9}[.)])[ \t]+[^ \t\n]/), N9 = {
77843
+ blockquote: T9(/^( {0,3}> ?(paragraph|[^\n]*)(?:\n|$))+/).replace("paragraph", pLe).getRegex(),
77844
+ code: tLe,
77845
+ def: cLe,
77846
+ fences: nLe,
77847
+ heading: rLe,
77844
77848
  hr: D9,
77845
- html: lLe,
77846
- lheading: iLe,
77847
- list: cLe,
77848
- newline: $Ie,
77849
- paragraph: dLe,
77850
- table: C9,
77851
- text: oLe
77852
- }, pLe = T9("^ *([^\\n ].*)\\n {0,3}((?:\\| *)?:?-+:? *(?:\\| *:?-+:? *)*(?:\\| *)?)(?:\\n((?:(?! *\\n|hr|heading|blockquote|code|fences|list|html).*(?:\\n|$))*)\\n*|$)").replace("hr", D9).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", j9).getRegex(), mLe = j(j({}, N9), {}, {
77849
+ html: uLe,
77853
77850
  lheading: aLe,
77854
- table: pLe,
77855
- paragraph: T9(k9).replace("hr", D9).replace("heading", " {0,3}#{1,6}(?:\\s|$)").replace("|lheading", "").replace("table", pLe).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", j9).getRegex()
77856
- }), hLe = j(j({}, N9), {}, {
77851
+ list: lLe,
77852
+ newline: eLe,
77853
+ paragraph: fLe,
77854
+ table: C9,
77855
+ text: sLe
77856
+ }, mLe = T9("^ *([^\\n ].*)\\n {0,3}((?:\\| *)?:?-+:? *(?:\\| *:?-+:? *)*(?:\\| *)?)(?:\\n((?:(?! *\\n|hr|heading|blockquote|code|fences|list|html).*(?:\\n|$))*)\\n*|$)").replace("hr", D9).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", j9).getRegex(), hLe = j(j({}, N9), {}, {
77857
+ lheading: oLe,
77858
+ table: mLe,
77859
+ paragraph: T9(k9).replace("hr", D9).replace("heading", " {0,3}#{1,6}(?:\\s|$)").replace("|lheading", "").replace("table", mLe).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", j9).getRegex()
77860
+ }), gLe = j(j({}, N9), {}, {
77857
77861
  html: T9("^ *(?:comment *(?:\\n|\\s*$)|<(tag)[\\s\\S]+?</\\1> *(?:\\n{2,}|\\s*$)|<tag(?:\"[^\"]*\"|'[^']*'|\\s[^'\"/>\\s]*)*?/?> *(?:\\n{2,}|\\s*$))").replace("comment", M9).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(),
77858
77862
  def: /^ *\[([^\]]+)\]: *<?([^\s>]+)>?(?: +(["(][^\n]+[")]))? *(?:\n+|$)/,
77859
77863
  heading: /^(#{1,6})(.*)(?:\n+|$)/,
77860
77864
  fences: C9,
77861
77865
  lheading: /^(.+?)\n {0,3}(=+|-+) *(?:\n+|$)/,
77862
- paragraph: T9(k9).replace("hr", D9).replace("heading", " *#{1,6} *[^\n]").replace("lheading", iLe).replace("|table", "").replace("blockquote", " {0,3}>").replace("|fences", "").replace("|list", "").replace("|html", "").replace("|tag", "").getRegex()
77863
- }), gLe = /^\\([!"#$%&'()*+,\-./:;<=>?@\[\]\\^_`{|}~])/, _Le = /^(`+)([^`]|[^`][\s\S]*?[^`])\1(?!`)/, vLe = /^( {2,}|\\)\n(?!\s*$)/, yLe = /^(`+|[^`])(?:(?= {2,}\n)|[\s\S]*?(?:(?=[\\<!\[`*_]|\b_|$)|[^ ](?= {2,}\n)))/, P9 = /* @__PURE__ */ RegExp("[\\p{P}\\p{S}]", "u"), F9 = /* @__PURE__ */ RegExp("[\\s\\p{P}\\p{S}]", "u"), I9 = /* @__PURE__ */ RegExp("[^\\s\\p{P}\\p{S}]", "u"), bLe = T9(/^((?![*_])punctSpace)/, "u").replace(/punctSpace/g, F9).getRegex(), xLe = /* @__PURE__ */ RegExp("(?!~)[\\p{P}\\p{S}]", "u"), SLe = /* @__PURE__ */ RegExp("(?!~)[\\s\\p{P}\\p{S}]", "u"), CLe = /* @__PURE__ */ RegExp("(?:[^\\s\\p{P}\\p{S}]|~)", "u"), wLe = T9(/link|precode-code|html/, "g").replace("link", /* @__PURE__ */ RegExp("\\[(?:[^\\[\\]`]|(?<a>`+)[^`]+\\k<a>(?!`))*?\\]\\((?:\\\\[\\s\\S]|[^\\\\\\(\\)]|\\((?:\\\\[\\s\\S]|[^\\\\\\(\\)])*\\))*\\)", "")).replace("precode-", QIe ? "(?<!`)()" : "(^^|[^`])").replace("code", /* @__PURE__ */ RegExp("(?<b>`+)[^`]+\\k<b>(?!`)", "")).replace("html", /<(?! )[^<>]*?>/).getRegex(), TLe = /^(?:\*+(?:((?!\*)punct)|([^\s*]))?)|^_+(?:((?!_)punct)|([^\s_]))?/, ELe = T9(TLe, "u").replace(/punct/g, P9).getRegex(), DLe = T9(TLe, "u").replace(/punct/g, xLe).getRegex(), OLe = "^[^_*]*?__[^_*]*?\\*[^_*]*?(?=__)|[^*]+(?=[^*])|(?!\\*)punct(\\*+)(?=[\\s]|$)|notPunctSpace(\\*+)(?!\\*)(?=punctSpace|$)|(?!\\*)punctSpace(\\*+)(?=notPunctSpace)|[\\s](\\*+)(?!\\*)(?=punct)|(?!\\*)punct(\\*+)(?!\\*)(?=punct)|notPunctSpace(\\*+)(?=notPunctSpace)", kLe = T9(OLe, "gu").replace(/notPunctSpace/g, I9).replace(/punctSpace/g, F9).replace(/punct/g, P9).getRegex(), ALe = T9(OLe, "gu").replace(/notPunctSpace/g, CLe).replace(/punctSpace/g, SLe).replace(/punct/g, xLe).getRegex(), jLe = T9("^[^_*]*?\\*\\*[^_*]*?_[^_*]*?(?=\\*\\*)|[^_]+(?=[^_])|(?!_)punct(_+)(?=[\\s]|$)|notPunctSpace(_+)(?!_)(?=punctSpace|$)|(?!_)punctSpace(_+)(?=notPunctSpace)|[\\s](_+)(?!_)(?=punct)|(?!_)punct(_+)(?!_)(?=punct)", "gu").replace(/notPunctSpace/g, I9).replace(/punctSpace/g, F9).replace(/punct/g, P9).getRegex(), MLe = T9(/^~~?(?:((?!~)punct)|[^\s~])/, "u").replace(/punct/g, P9).getRegex(), NLe = T9("^[^~]+(?=[^~])|(?!~)punct(~~?)(?=[\\s]|$)|notPunctSpace(~~?)(?!~)(?=punctSpace|$)|(?!~)punctSpace(~~?)(?=notPunctSpace)|[\\s](~~?)(?!~)(?=punct)|(?!~)punct(~~?)(?!~)(?=punct)|notPunctSpace(~~?)(?=notPunctSpace)", "gu").replace(/notPunctSpace/g, I9).replace(/punctSpace/g, F9).replace(/punct/g, P9).getRegex(), PLe = T9(/\\(punct)/, "gu").replace(/punct/g, P9).getRegex(), FLe = T9(/^<(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(), ILe = T9(M9).replace("(?:-->|$)", "-->").getRegex(), LLe = T9("^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", ILe).replace("attribute", /\s+[a-zA-Z:_][\w.:-]*(?:\s*=\s*"[^"]*"|\s*=\s*'[^']*'|\s*=\s*[^\s"'=<>`]+)?/).getRegex(), L9 = /(?:\[(?:\\[\s\S]|[^\[\]\\])*\]|\\[\s\S]|`+(?!`)[^`]*?`+(?!`)|``+(?=\])|[^\[\]\\`])*?/, RLe = T9(/^!?\[(label)\]\(\s*(href)(?:(?:[ \t]+(?:\n[ \t]*)?|\n[ \t]*)(title))?\s*\)/).replace("label", L9).replace("href", /<(?:\\.|[^\n<>\\])+>|[^ \t\n\x00-\x1f]+|(?=\))/).replace("title", /"(?:\\"?|[^"\\])*"|'(?:\\'?|[^'\\])*'|\((?:\\\)?|[^)\\])*\)/).getRegex(), zLe = T9(/^!?\[(label)\]\[(ref)\]/).replace("label", L9).replace("ref", A9).getRegex(), BLe = T9(/^!?\[(ref)\](?:\[\])?/).replace("ref", A9).getRegex(), VLe = T9("reflink|nolink(?!\\()", "g").replace("reflink", zLe).replace("nolink", BLe).getRegex(), HLe = /[hH][tT][tT][pP][sS]?|[fF][tT][pP]/, R9 = {
77866
+ paragraph: T9(k9).replace("hr", D9).replace("heading", " *#{1,6} *[^\n]").replace("lheading", aLe).replace("|table", "").replace("blockquote", " {0,3}>").replace("|fences", "").replace("|list", "").replace("|html", "").replace("|tag", "").getRegex()
77867
+ }), _Le = /^\\([!"#$%&'()*+,\-./:;<=>?@\[\]\\^_`{|}~])/, vLe = /^(`+)([^`]|[^`][\s\S]*?[^`])\1(?!`)/, yLe = /^( {2,}|\\)\n(?!\s*$)/, bLe = /^(`+|[^`])(?:(?= {2,}\n)|[\s\S]*?(?:(?=[\\<!\[`*_]|\b_|$)|[^ ](?= {2,}\n)))/, P9 = /* @__PURE__ */ RegExp("[\\p{P}\\p{S}]", "u"), F9 = /* @__PURE__ */ RegExp("[\\s\\p{P}\\p{S}]", "u"), I9 = /* @__PURE__ */ RegExp("[^\\s\\p{P}\\p{S}]", "u"), xLe = T9(/^((?![*_])punctSpace)/, "u").replace(/punctSpace/g, F9).getRegex(), SLe = /* @__PURE__ */ RegExp("(?!~)[\\p{P}\\p{S}]", "u"), CLe = /* @__PURE__ */ RegExp("(?!~)[\\s\\p{P}\\p{S}]", "u"), wLe = /* @__PURE__ */ RegExp("(?:[^\\s\\p{P}\\p{S}]|~)", "u"), TLe = T9(/link|precode-code|html/, "g").replace("link", /* @__PURE__ */ RegExp("\\[(?:[^\\[\\]`]|(?<a>`+)[^`]+\\k<a>(?!`))*?\\]\\((?:\\\\[\\s\\S]|[^\\\\\\(\\)]|\\((?:\\\\[\\s\\S]|[^\\\\\\(\\)])*\\))*\\)", "")).replace("precode-", $Ie ? "(?<!`)()" : "(^^|[^`])").replace("code", /* @__PURE__ */ RegExp("(?<b>`+)[^`]+\\k<b>(?!`)", "")).replace("html", /<(?! )[^<>]*?>/).getRegex(), ELe = /^(?:\*+(?:((?!\*)punct)|([^\s*]))?)|^_+(?:((?!_)punct)|([^\s_]))?/, DLe = T9(ELe, "u").replace(/punct/g, P9).getRegex(), OLe = T9(ELe, "u").replace(/punct/g, SLe).getRegex(), kLe = "^[^_*]*?__[^_*]*?\\*[^_*]*?(?=__)|[^*]+(?=[^*])|(?!\\*)punct(\\*+)(?=[\\s]|$)|notPunctSpace(\\*+)(?!\\*)(?=punctSpace|$)|(?!\\*)punctSpace(\\*+)(?=notPunctSpace)|[\\s](\\*+)(?!\\*)(?=punct)|(?!\\*)punct(\\*+)(?!\\*)(?=punct)|notPunctSpace(\\*+)(?=notPunctSpace)", ALe = T9(kLe, "gu").replace(/notPunctSpace/g, I9).replace(/punctSpace/g, F9).replace(/punct/g, P9).getRegex(), jLe = T9(kLe, "gu").replace(/notPunctSpace/g, wLe).replace(/punctSpace/g, CLe).replace(/punct/g, SLe).getRegex(), MLe = T9("^[^_*]*?\\*\\*[^_*]*?_[^_*]*?(?=\\*\\*)|[^_]+(?=[^_])|(?!_)punct(_+)(?=[\\s]|$)|notPunctSpace(_+)(?!_)(?=punctSpace|$)|(?!_)punctSpace(_+)(?=notPunctSpace)|[\\s](_+)(?!_)(?=punct)|(?!_)punct(_+)(?!_)(?=punct)", "gu").replace(/notPunctSpace/g, I9).replace(/punctSpace/g, F9).replace(/punct/g, P9).getRegex(), NLe = T9(/^~~?(?:((?!~)punct)|[^\s~])/, "u").replace(/punct/g, P9).getRegex(), PLe = T9("^[^~]+(?=[^~])|(?!~)punct(~~?)(?=[\\s]|$)|notPunctSpace(~~?)(?!~)(?=punctSpace|$)|(?!~)punctSpace(~~?)(?=notPunctSpace)|[\\s](~~?)(?!~)(?=punct)|(?!~)punct(~~?)(?!~)(?=punct)|notPunctSpace(~~?)(?=notPunctSpace)", "gu").replace(/notPunctSpace/g, I9).replace(/punctSpace/g, F9).replace(/punct/g, P9).getRegex(), FLe = T9(/\\(punct)/, "gu").replace(/punct/g, P9).getRegex(), ILe = T9(/^<(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(), LLe = T9(M9).replace("(?:-->|$)", "-->").getRegex(), RLe = T9("^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", LLe).replace("attribute", /\s+[a-zA-Z:_][\w.:-]*(?:\s*=\s*"[^"]*"|\s*=\s*'[^']*'|\s*=\s*[^\s"'=<>`]+)?/).getRegex(), L9 = /(?:\[(?:\\[\s\S]|[^\[\]\\])*\]|\\[\s\S]|`+(?!`)[^`]*?`+(?!`)|``+(?=\])|[^\[\]\\`])*?/, zLe = T9(/^!?\[(label)\]\(\s*(href)(?:(?:[ \t]+(?:\n[ \t]*)?|\n[ \t]*)(title))?\s*\)/).replace("label", L9).replace("href", /<(?:\\.|[^\n<>\\])+>|[^ \t\n\x00-\x1f]+|(?=\))/).replace("title", /"(?:\\"?|[^"\\])*"|'(?:\\'?|[^'\\])*'|\((?:\\\)?|[^)\\])*\)/).getRegex(), BLe = T9(/^!?\[(label)\]\[(ref)\]/).replace("label", L9).replace("ref", A9).getRegex(), VLe = T9(/^!?\[(ref)\](?:\[\])?/).replace("ref", A9).getRegex(), HLe = T9("reflink|nolink(?!\\()", "g").replace("reflink", BLe).replace("nolink", VLe).getRegex(), ULe = /[hH][tT][tT][pP][sS]?|[fF][tT][pP]/, R9 = {
77864
77868
  _backpedal: C9,
77865
- anyPunctuation: PLe,
77866
- autolink: FLe,
77867
- blockSkip: wLe,
77868
- br: vLe,
77869
- code: _Le,
77869
+ anyPunctuation: FLe,
77870
+ autolink: ILe,
77871
+ blockSkip: TLe,
77872
+ br: yLe,
77873
+ code: vLe,
77870
77874
  del: C9,
77871
77875
  delLDelim: C9,
77872
77876
  delRDelim: C9,
77873
- emStrongLDelim: ELe,
77874
- emStrongRDelimAst: kLe,
77875
- emStrongRDelimUnd: jLe,
77876
- escape: gLe,
77877
- link: RLe,
77878
- nolink: BLe,
77879
- punctuation: bLe,
77880
- reflink: zLe,
77881
- reflinkSearch: VLe,
77882
- tag: LLe,
77883
- text: yLe,
77877
+ emStrongLDelim: DLe,
77878
+ emStrongRDelimAst: ALe,
77879
+ emStrongRDelimUnd: MLe,
77880
+ escape: _Le,
77881
+ link: zLe,
77882
+ nolink: VLe,
77883
+ punctuation: xLe,
77884
+ reflink: BLe,
77885
+ reflinkSearch: HLe,
77886
+ tag: RLe,
77887
+ text: bLe,
77884
77888
  url: C9
77885
- }, ULe = j(j({}, R9), {}, {
77889
+ }, WLe = j(j({}, R9), {}, {
77886
77890
  link: T9(/^!?\[(label)\]\((.*?)\)/).replace("label", L9).getRegex(),
77887
77891
  reflink: T9(/^!?\[(label)\]\s*\[([^\]]*)\]/).replace("label", L9).getRegex()
77888
77892
  }), z9 = j(j({}, R9), {}, {
77889
- emStrongRDelimAst: ALe,
77890
- emStrongLDelim: DLe,
77891
- delLDelim: MLe,
77892
- delRDelim: NLe,
77893
- url: T9(/^((?:protocol):\/\/|www\.)(?:[a-zA-Z0-9\-]+\.?)+[^\s<]*|^email/).replace("protocol", HLe).replace("email", /[A-Za-z0-9._+-]+(@)[a-zA-Z0-9-_]+(?:\.[a-zA-Z0-9-_]*[a-zA-Z0-9])+(?![-_])/).getRegex(),
77893
+ emStrongRDelimAst: jLe,
77894
+ emStrongLDelim: OLe,
77895
+ delLDelim: NLe,
77896
+ delRDelim: PLe,
77897
+ url: T9(/^((?:protocol):\/\/|www\.)(?:[a-zA-Z0-9\-]+\.?)+[^\s<]*|^email/).replace("protocol", ULe).replace("email", /[A-Za-z0-9._+-]+(@)[a-zA-Z0-9-_]+(?:\.[a-zA-Z0-9-_]*[a-zA-Z0-9])+(?![-_])/).getRegex(),
77894
77898
  _backpedal: /(?:[^?!.,:;*_'"~()&]+|\([^)]*\)|&(?![a-zA-Z0-9]+;$)|[?!.,:;*_'"~)]+(?!$))+/,
77895
77899
  del: /^(~~?)(?=[^\s~])((?:\\[\s\S]|[^\\])*?(?:\\[\s\S]|[^\s~\\]))\1(?=[^~]|$)/,
77896
- text: T9(/^([`~]+|[^`~])(?:(?= {2,}\n)|(?=[a-zA-Z0-9.!#$%&'*+\/=?_`{\|}~-]+@)|[\s\S]*?(?:(?=[\\<!\[`*~_]|\b_|protocol:\/\/|www\.|$)|[^ ](?= {2,}\n)|[^a-zA-Z0-9.!#$%&'*+\/=?_`{\|}~-](?=[a-zA-Z0-9.!#$%&'*+\/=?_`{\|}~-]+@)))/).replace("protocol", HLe).getRegex()
77897
- }), WLe = j(j({}, z9), {}, {
77898
- br: T9(vLe).replace("{2,}", "*").getRegex(),
77900
+ text: T9(/^([`~]+|[^`~])(?:(?= {2,}\n)|(?=[a-zA-Z0-9.!#$%&'*+\/=?_`{\|}~-]+@)|[\s\S]*?(?:(?=[\\<!\[`*~_]|\b_|protocol:\/\/|www\.|$)|[^ ](?= {2,}\n)|[^a-zA-Z0-9.!#$%&'*+\/=?_`{\|}~-](?=[a-zA-Z0-9.!#$%&'*+\/=?_`{\|}~-]+@)))/).replace("protocol", ULe).getRegex()
77901
+ }), GLe = j(j({}, z9), {}, {
77902
+ br: T9(yLe).replace("{2,}", "*").getRegex(),
77899
77903
  text: T9(z9.text).replace("\\b_", "\\b_| {2,}\\n").replace(/\{2,\}/g, "*").getRegex()
77900
77904
  }), B9 = {
77901
77905
  normal: N9,
77902
- gfm: mLe,
77903
- pedantic: hLe
77906
+ gfm: hLe,
77907
+ pedantic: gLe
77904
77908
  }, V9 = {
77905
77909
  normal: R9,
77906
77910
  gfm: z9,
77907
- breaks: WLe,
77908
- pedantic: ULe
77909
- }, GLe = {
77911
+ breaks: GLe,
77912
+ pedantic: WLe
77913
+ }, KLe = {
77910
77914
  "&": "&amp;",
77911
77915
  "<": "&lt;",
77912
77916
  ">": "&gt;",
77913
77917
  "\"": "&quot;",
77914
77918
  "'": "&#39;"
77915
- }, KLe = (e) => GLe[e];
77919
+ }, qLe = (e) => KLe[e];
77916
77920
  function H9(e, t) {
77917
77921
  if (t) {
77918
- if (E9.escapeTest.test(e)) return e.replace(E9.escapeReplace, KLe);
77919
- } else if (E9.escapeTestNoEncode.test(e)) return e.replace(E9.escapeReplaceNoEncode, KLe);
77922
+ if (E9.escapeTest.test(e)) return e.replace(E9.escapeReplace, qLe);
77923
+ } else if (E9.escapeTestNoEncode.test(e)) return e.replace(E9.escapeReplaceNoEncode, qLe);
77920
77924
  return e;
77921
77925
  }
77922
- function qLe(e) {
77926
+ function JLe(e) {
77923
77927
  try {
77924
77928
  e = encodeURI(e).replace(E9.percentDecode, "%");
77925
77929
  } catch (e) {
@@ -77927,7 +77931,7 @@ function qLe(e) {
77927
77931
  }
77928
77932
  return e;
77929
77933
  }
77930
- function JLe(e, t) {
77934
+ function YLe(e, t) {
77931
77935
  var n;
77932
77936
  let r = e.replace(E9.findPipe, (e, t, n) => {
77933
77937
  let r = !1, i = t;
@@ -77951,12 +77955,12 @@ function U9(e, t, n) {
77951
77955
  }
77952
77956
  return e.slice(0, r - i);
77953
77957
  }
77954
- function YLe(e) {
77958
+ function XLe(e) {
77955
77959
  let t = e.split("\n"), n = t.length - 1;
77956
77960
  for (; n >= 0 && E9.blankLine.test(t[n]);) n--;
77957
77961
  return t.length - n <= 2 ? e : t.slice(0, n + 1).join("\n");
77958
77962
  }
77959
- function XLe(e, t) {
77963
+ function ZLe(e, t) {
77960
77964
  if (e.indexOf(t[1]) === -1) return -1;
77961
77965
  let n = 0;
77962
77966
  for (let r = 0; r < e.length; r++) if (e[r] === "\\") r++;
@@ -77964,7 +77968,7 @@ function XLe(e, t) {
77964
77968
  else if (e[r] === t[1] && (n--, n < 0)) return r;
77965
77969
  return n > 0 ? -2 : -1;
77966
77970
  }
77967
- function ZLe(e, t = 0) {
77971
+ function QLe(e, t = 0) {
77968
77972
  let n = t, r = "";
77969
77973
  for (let t of e) if (t === " ") {
77970
77974
  let e = 4 - n % 4;
@@ -77972,7 +77976,7 @@ function ZLe(e, t = 0) {
77972
77976
  } else r += t, n++;
77973
77977
  return r;
77974
77978
  }
77975
- function QLe(e, t, n, r, i) {
77979
+ function $Le(e, t, n, r, i) {
77976
77980
  let a = t.href, o = t.title || null, s = e[1].replace(i.other.outputLinkReplace, "$1");
77977
77981
  r.state.inLink = !0;
77978
77982
  let c = {
@@ -77985,7 +77989,7 @@ function QLe(e, t, n, r, i) {
77985
77989
  };
77986
77990
  return r.state.inLink = !1, c;
77987
77991
  }
77988
- function $Le(e, t, n) {
77992
+ function eRe(e, t, n) {
77989
77993
  let r = e.match(n.other.indentCodeCompensation);
77990
77994
  if (r === null) return t;
77991
77995
  let i = r[1];
@@ -78010,7 +78014,7 @@ var W9 = class {
78010
78014
  code(e) {
78011
78015
  let t = this.rules.block.code.exec(e);
78012
78016
  if (t) {
78013
- let e = this.options.pedantic ? t[0] : YLe(t[0]);
78017
+ let e = this.options.pedantic ? t[0] : XLe(t[0]);
78014
78018
  return {
78015
78019
  type: "code",
78016
78020
  raw: e,
@@ -78022,7 +78026,7 @@ var W9 = class {
78022
78026
  fences(e) {
78023
78027
  let t = this.rules.block.fences.exec(e);
78024
78028
  if (t) {
78025
- let e = t[0], n = $Le(e, t[3] || "", this.rules);
78029
+ let e = t[0], n = eRe(e, t[3] || "", this.rules);
78026
78030
  return {
78027
78031
  type: "code",
78028
78032
  raw: e,
@@ -78108,7 +78112,7 @@ ${c}` : c;
78108
78112
  let n = !1, r = "", s = "";
78109
78113
  if (!(t = a.exec(e)) || this.rules.block.hr.test(e)) break;
78110
78114
  r = t[0], e = e.substring(r.length);
78111
- let c = ZLe(t[2].split("\n", 1)[0], t[1].length), l = e.split("\n", 1)[0], u = !c.trim(), d = 0;
78115
+ let c = QLe(t[2].split("\n", 1)[0], t[1].length), l = e.split("\n", 1)[0], u = !c.trim(), d = 0;
78112
78116
  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) {
78113
78117
  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);
78114
78118
  for (; e;) {
@@ -78174,7 +78178,7 @@ ${c}` : c;
78174
78178
  html(e) {
78175
78179
  let t = this.rules.block.html.exec(e);
78176
78180
  if (t) {
78177
- let e = YLe(t[0]);
78181
+ let e = XLe(t[0]);
78178
78182
  return {
78179
78183
  type: "html",
78180
78184
  block: !0,
@@ -78201,7 +78205,7 @@ ${c}` : c;
78201
78205
  var t;
78202
78206
  let n = this.rules.block.table.exec(e);
78203
78207
  if (!n || !this.rules.other.tableDelimiter.test(n[2])) return;
78204
- let r = JLe(n[1]), i = n[2].replace(this.rules.other.tableAlignChars, "").split("|"), a = (t = n[3]) != null && t.trim() ? n[3].replace(this.rules.other.tableRowBlankLine, "").split("\n") : [], o = {
78208
+ let r = YLe(n[1]), i = n[2].replace(this.rules.other.tableAlignChars, "").split("|"), a = (t = n[3]) != null && t.trim() ? n[3].replace(this.rules.other.tableRowBlankLine, "").split("\n") : [], o = {
78205
78209
  type: "table",
78206
78210
  raw: U9(n[0], "\n"),
78207
78211
  header: [],
@@ -78216,7 +78220,7 @@ ${c}` : c;
78216
78220
  header: !0,
78217
78221
  align: o.align[e]
78218
78222
  });
78219
- for (let e of a) o.rows.push(JLe(e, o.header.length).map((e, t) => ({
78223
+ for (let e of a) o.rows.push(YLe(e, o.header.length).map((e, t) => ({
78220
78224
  text: e,
78221
78225
  tokens: this.lexer.inline(e),
78222
78226
  header: !1,
@@ -78287,7 +78291,7 @@ ${c}` : c;
78287
78291
  let t = U9(e.slice(0, -1), "\\");
78288
78292
  if ((e.length - t.length) % 2 == 0) return;
78289
78293
  } else {
78290
- let e = XLe(t[2], "()");
78294
+ let e = ZLe(t[2], "()");
78291
78295
  if (e === -2) return;
78292
78296
  if (e > -1) {
78293
78297
  let n = (t[0].indexOf("!") === 0 ? 5 : 4) + t[1].length + e;
@@ -78299,7 +78303,7 @@ ${c}` : c;
78299
78303
  let e = this.rules.other.pedanticHrefTitle.exec(n);
78300
78304
  e && (n = e[1], r = e[3]);
78301
78305
  } else r = t[3] ? t[3].slice(1, -1) : "";
78302
- 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)), QLe(t, {
78306
+ 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)), $Le(t, {
78303
78307
  href: n && n.replace(this.rules.inline.anyPunctuation, "$1"),
78304
78308
  title: r && r.replace(this.rules.inline.anyPunctuation, "$1")
78305
78309
  }, t[0], this.lexer, this.rules);
@@ -78317,7 +78321,7 @@ ${c}` : c;
78317
78321
  text: e
78318
78322
  };
78319
78323
  }
78320
- return QLe(n, e, n[0], this.lexer, this.rules);
78324
+ return $Le(n, e, n[0], this.lexer, this.rules);
78321
78325
  }
78322
78326
  }
78323
78327
  emStrong(e, t, n = "") {
@@ -78759,7 +78763,7 @@ ${e}</tr>
78759
78763
  return `<del>${this.parser.parseInline(e)}</del>`;
78760
78764
  }
78761
78765
  link({ href: e, title: t, tokens: n }) {
78762
- let r = this.parser.parseInline(n), i = qLe(e);
78766
+ let r = this.parser.parseInline(n), i = JLe(e);
78763
78767
  if (i === null) return r;
78764
78768
  e = i;
78765
78769
  let a = "<a href=\"" + e + "\"";
@@ -78767,7 +78771,7 @@ ${e}</tr>
78767
78771
  }
78768
78772
  image({ href: e, title: t, text: n, tokens: r }) {
78769
78773
  r && (n = this.parser.parseInline(r, this.parser.textRenderer));
78770
- let i = qLe(e);
78774
+ let i = JLe(e);
78771
78775
  if (i === null) return H9(n);
78772
78776
  e = i;
78773
78777
  let a = `<img src="${e}" alt="${H9(n)}"`;
@@ -79151,15 +79155,15 @@ function Z9(e, t) {
79151
79155
  return X9.parse(e, t);
79152
79156
  }
79153
79157
  Z9.options = Z9.setOptions = function(e) {
79154
- return X9.setOptions(e), Z9.defaults = X9.defaults, ZIe(Z9.defaults), Z9;
79158
+ return X9.setOptions(e), Z9.defaults = X9.defaults, QIe(Z9.defaults), Z9;
79155
79159
  }, Z9.getDefaults = x9, Z9.defaults = S9, Z9.use = function(...e) {
79156
- return X9.use(...e), Z9.defaults = X9.defaults, ZIe(Z9.defaults), Z9;
79160
+ return X9.use(...e), Z9.defaults = X9.defaults, QIe(Z9.defaults), Z9;
79157
79161
  }, Z9.walkTokens = function(e, t) {
79158
79162
  return X9.walkTokens(e, t);
79159
79163
  }, Z9.parseInline = X9.parseInline, Z9.Parser = J9, Z9.parser = J9.parse, Z9.Renderer = K9, Z9.TextRenderer = q9, Z9.Lexer = G9, Z9.lexer = G9.lex, Z9.Tokenizer = W9, Z9.Hooks = Y9, Z9.parse = Z9, Z9.options, Z9.setOptions, Z9.use, Z9.walkTokens, Z9.parseInline, J9.parse, G9.lex;
79160
79164
  //#endregion
79161
79165
  //#region node_modules/highlight.js/lib/core.js
79162
- var eRe = /* @__PURE__ */ c(((e, t) => {
79166
+ var tRe = /* @__PURE__ */ c(((e, t) => {
79163
79167
  function n(e) {
79164
79168
  return e instanceof Map ? e.clear = e.delete = e.set = function() {
79165
79169
  throw Error("map is read-only");
@@ -80000,7 +80004,7 @@ var eRe = /* @__PURE__ */ c(((e, t) => {
80000
80004
  return Object.assign(e, ae), e;
80001
80005
  }, Fe = Pe({});
80002
80006
  Fe.newInstance = () => Pe({}), t.exports = Fe, Fe.HighlightJS = Fe, Fe.default = Fe;
80003
- })), tRe = /* @__PURE__ */ c(((e, t) => {
80007
+ })), nRe = /* @__PURE__ */ c(((e, t) => {
80004
80008
  function n(e) {
80005
80009
  let t = e.regex, n = t.concat(/* @__PURE__ */ RegExp("[\\p{L}_]", "u"), t.optional(/* @__PURE__ */ RegExp("[\\p{L}0-9_.-]*:", "u")), /* @__PURE__ */ RegExp("[\\p{L}0-9_.-]*", "u")), r = /* @__PURE__ */ RegExp("[\\p{L}0-9._:-]+", "u"), i = {
80006
80010
  className: "symbol",
@@ -80165,7 +80169,7 @@ var eRe = /* @__PURE__ */ c(((e, t) => {
80165
80169
  };
80166
80170
  }
80167
80171
  t.exports = n;
80168
- })), nRe = /* @__PURE__ */ c(((e, t) => {
80172
+ })), rRe = /* @__PURE__ */ c(((e, t) => {
80169
80173
  function n(e) {
80170
80174
  let t = e.regex, n = {}, r = {
80171
80175
  begin: /\$\{/,
@@ -80333,7 +80337,7 @@ var eRe = /* @__PURE__ */ c(((e, t) => {
80333
80337
  };
80334
80338
  }
80335
80339
  t.exports = n;
80336
- })), rRe = /* @__PURE__ */ c(((e, t) => {
80340
+ })), iRe = /* @__PURE__ */ c(((e, t) => {
80337
80341
  function n(e) {
80338
80342
  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 = {
80339
80343
  className: "type",
@@ -80508,7 +80512,7 @@ var eRe = /* @__PURE__ */ c(((e, t) => {
80508
80512
  };
80509
80513
  }
80510
80514
  t.exports = n;
80511
- })), iRe = /* @__PURE__ */ c(((e, t) => {
80515
+ })), aRe = /* @__PURE__ */ c(((e, t) => {
80512
80516
  function n(e) {
80513
80517
  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 = {
80514
80518
  className: "type",
@@ -80732,7 +80736,7 @@ var eRe = /* @__PURE__ */ c(((e, t) => {
80732
80736
  };
80733
80737
  }
80734
80738
  t.exports = n;
80735
- })), aRe = /* @__PURE__ */ c(((e, t) => {
80739
+ })), oRe = /* @__PURE__ */ c(((e, t) => {
80736
80740
  function n(e) {
80737
80741
  let t = [
80738
80742
  "bool",
@@ -80991,7 +80995,7 @@ var eRe = /* @__PURE__ */ c(((e, t) => {
80991
80995
  };
80992
80996
  }
80993
80997
  t.exports = n;
80994
- })), oRe = /* @__PURE__ */ c(((e, t) => {
80998
+ })), sRe = /* @__PURE__ */ c(((e, t) => {
80995
80999
  var n = (e) => ({
80996
81000
  IMPORTANT: {
80997
81001
  scope: "meta",
@@ -81130,7 +81134,7 @@ var eRe = /* @__PURE__ */ c(((e, t) => {
81130
81134
  };
81131
81135
  }
81132
81136
  t.exports = u;
81133
- })), sRe = /* @__PURE__ */ c(((e, t) => {
81137
+ })), cRe = /* @__PURE__ */ c(((e, t) => {
81134
81138
  function n(e) {
81135
81139
  let t = e.regex, n = {
81136
81140
  begin: /<\/?[A-Za-z_]/,
@@ -81310,7 +81314,7 @@ var eRe = /* @__PURE__ */ c(((e, t) => {
81310
81314
  };
81311
81315
  }
81312
81316
  t.exports = n;
81313
- })), cRe = /* @__PURE__ */ c(((e, t) => {
81317
+ })), lRe = /* @__PURE__ */ c(((e, t) => {
81314
81318
  function n(e) {
81315
81319
  let t = e.regex;
81316
81320
  return {
@@ -81348,7 +81352,7 @@ var eRe = /* @__PURE__ */ c(((e, t) => {
81348
81352
  };
81349
81353
  }
81350
81354
  t.exports = n;
81351
- })), lRe = /* @__PURE__ */ c(((e, t) => {
81355
+ })), uRe = /* @__PURE__ */ c(((e, t) => {
81352
81356
  function n(e) {
81353
81357
  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 = {
81354
81358
  "variable.constant": [
@@ -81609,7 +81613,7 @@ var eRe = /* @__PURE__ */ c(((e, t) => {
81609
81613
  };
81610
81614
  }
81611
81615
  t.exports = n;
81612
- })), uRe = /* @__PURE__ */ c(((e, t) => {
81616
+ })), dRe = /* @__PURE__ */ c(((e, t) => {
81613
81617
  function n(e) {
81614
81618
  let t = {
81615
81619
  keyword: [
@@ -81748,7 +81752,7 @@ var eRe = /* @__PURE__ */ c(((e, t) => {
81748
81752
  };
81749
81753
  }
81750
81754
  t.exports = n;
81751
- })), dRe = /* @__PURE__ */ c(((e, t) => {
81755
+ })), fRe = /* @__PURE__ */ c(((e, t) => {
81752
81756
  function n(e) {
81753
81757
  let t = e.regex;
81754
81758
  return {
@@ -81814,7 +81818,7 @@ var eRe = /* @__PURE__ */ c(((e, t) => {
81814
81818
  };
81815
81819
  }
81816
81820
  t.exports = n;
81817
- })), fRe = /* @__PURE__ */ c(((e, t) => {
81821
+ })), pRe = /* @__PURE__ */ c(((e, t) => {
81818
81822
  function n(e) {
81819
81823
  let t = e.regex, n = {
81820
81824
  className: "number",
@@ -81901,7 +81905,7 @@ var eRe = /* @__PURE__ */ c(((e, t) => {
81901
81905
  };
81902
81906
  }
81903
81907
  t.exports = n;
81904
- })), pRe = /* @__PURE__ */ c(((e, t) => {
81908
+ })), mRe = /* @__PURE__ */ c(((e, t) => {
81905
81909
  var n = "[0-9](_*[0-9])*", r = `\\.(${n})`, i = "[0-9a-fA-F](_*[0-9a-fA-F])*", a = {
81906
81910
  className: "number",
81907
81911
  variants: [
@@ -82069,7 +82073,7 @@ var eRe = /* @__PURE__ */ c(((e, t) => {
82069
82073
  };
82070
82074
  }
82071
82075
  t.exports = s;
82072
- })), mRe = /* @__PURE__ */ c(((e, t) => {
82076
+ })), hRe = /* @__PURE__ */ c(((e, t) => {
82073
82077
  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 = [
82074
82078
  "true",
82075
82079
  "false",
@@ -82504,7 +82508,7 @@ var eRe = /* @__PURE__ */ c(((e, t) => {
82504
82508
  };
82505
82509
  }
82506
82510
  t.exports = u;
82507
- })), hRe = /* @__PURE__ */ c(((e, t) => {
82511
+ })), gRe = /* @__PURE__ */ c(((e, t) => {
82508
82512
  function n(e) {
82509
82513
  let t = {
82510
82514
  className: "attr",
@@ -82539,7 +82543,7 @@ var eRe = /* @__PURE__ */ c(((e, t) => {
82539
82543
  };
82540
82544
  }
82541
82545
  t.exports = n;
82542
- })), gRe = /* @__PURE__ */ c(((e, t) => {
82546
+ })), _Re = /* @__PURE__ */ c(((e, t) => {
82543
82547
  var n = "[0-9](_*[0-9])*", r = `\\.(${n})`, i = "[0-9a-fA-F](_*[0-9a-fA-F])*", a = {
82544
82548
  className: "number",
82545
82549
  variants: [
@@ -82739,7 +82743,7 @@ var eRe = /* @__PURE__ */ c(((e, t) => {
82739
82743
  };
82740
82744
  }
82741
82745
  t.exports = o;
82742
- })), _Re = /* @__PURE__ */ c(((e, t) => {
82746
+ })), vRe = /* @__PURE__ */ c(((e, t) => {
82743
82747
  var n = (e) => ({
82744
82748
  IMPORTANT: {
82745
82749
  scope: "meta",
@@ -82930,7 +82934,7 @@ var eRe = /* @__PURE__ */ c(((e, t) => {
82930
82934
  };
82931
82935
  }
82932
82936
  t.exports = d;
82933
- })), vRe = /* @__PURE__ */ c(((e, t) => {
82937
+ })), yRe = /* @__PURE__ */ c(((e, t) => {
82934
82938
  function n(e) {
82935
82939
  let t = "\\[=*\\[", n = "\\]=*\\]", r = {
82936
82940
  begin: t,
@@ -82975,7 +82979,7 @@ var eRe = /* @__PURE__ */ c(((e, t) => {
82975
82979
  };
82976
82980
  }
82977
82981
  t.exports = n;
82978
- })), yRe = /* @__PURE__ */ c(((e, t) => {
82982
+ })), bRe = /* @__PURE__ */ c(((e, t) => {
82979
82983
  function n(e) {
82980
82984
  let t = {
82981
82985
  className: "variable",
@@ -83031,7 +83035,7 @@ var eRe = /* @__PURE__ */ c(((e, t) => {
83031
83035
  };
83032
83036
  }
83033
83037
  t.exports = n;
83034
- })), bRe = /* @__PURE__ */ c(((e, t) => {
83038
+ })), xRe = /* @__PURE__ */ c(((e, t) => {
83035
83039
  function n(e) {
83036
83040
  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 = {
83037
83041
  $pattern: /[\w.]+/,
@@ -83222,7 +83226,7 @@ var eRe = /* @__PURE__ */ c(((e, t) => {
83222
83226
  };
83223
83227
  }
83224
83228
  t.exports = n;
83225
- })), xRe = /* @__PURE__ */ c(((e, t) => {
83229
+ })), SRe = /* @__PURE__ */ c(((e, t) => {
83226
83230
  function n(e) {
83227
83231
  let t = {
83228
83232
  className: "built_in",
@@ -83338,7 +83342,7 @@ var eRe = /* @__PURE__ */ c(((e, t) => {
83338
83342
  };
83339
83343
  }
83340
83344
  t.exports = n;
83341
- })), SRe = /* @__PURE__ */ c(((e, t) => {
83345
+ })), CRe = /* @__PURE__ */ c(((e, t) => {
83342
83346
  function n(e) {
83343
83347
  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 = {
83344
83348
  scope: "variable",
@@ -83631,7 +83635,7 @@ var eRe = /* @__PURE__ */ c(((e, t) => {
83631
83635
  };
83632
83636
  }
83633
83637
  t.exports = n;
83634
- })), CRe = /* @__PURE__ */ c(((e, t) => {
83638
+ })), wRe = /* @__PURE__ */ c(((e, t) => {
83635
83639
  function n(e) {
83636
83640
  return {
83637
83641
  name: "PHP template",
@@ -83673,7 +83677,7 @@ var eRe = /* @__PURE__ */ c(((e, t) => {
83673
83677
  };
83674
83678
  }
83675
83679
  t.exports = n;
83676
- })), wRe = /* @__PURE__ */ c(((e, t) => {
83680
+ })), TRe = /* @__PURE__ */ c(((e, t) => {
83677
83681
  function n(e) {
83678
83682
  return {
83679
83683
  name: "Plain text",
@@ -83682,7 +83686,7 @@ var eRe = /* @__PURE__ */ c(((e, t) => {
83682
83686
  };
83683
83687
  }
83684
83688
  t.exports = n;
83685
- })), TRe = /* @__PURE__ */ c(((e, t) => {
83689
+ })), ERe = /* @__PURE__ */ c(((e, t) => {
83686
83690
  function n(e) {
83687
83691
  let t = e.regex, n = /* @__PURE__ */ RegExp("[\\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 = {
83688
83692
  $pattern: /[A-Za-z]\w+|__\w+__/,
@@ -83919,7 +83923,7 @@ var eRe = /* @__PURE__ */ c(((e, t) => {
83919
83923
  };
83920
83924
  }
83921
83925
  t.exports = n;
83922
- })), ERe = /* @__PURE__ */ c(((e, t) => {
83926
+ })), DRe = /* @__PURE__ */ c(((e, t) => {
83923
83927
  function n(e) {
83924
83928
  return {
83925
83929
  aliases: ["pycon"],
@@ -83937,7 +83941,7 @@ var eRe = /* @__PURE__ */ c(((e, t) => {
83937
83941
  };
83938
83942
  }
83939
83943
  t.exports = n;
83940
- })), DRe = /* @__PURE__ */ c(((e, t) => {
83944
+ })), ORe = /* @__PURE__ */ c(((e, t) => {
83941
83945
  function n(e) {
83942
83946
  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(/[()]/, /[{}]/, /\[\[/, /[[\]]/, /\\/, /,/);
83943
83947
  return {
@@ -84076,7 +84080,7 @@ var eRe = /* @__PURE__ */ c(((e, t) => {
84076
84080
  };
84077
84081
  }
84078
84082
  t.exports = n;
84079
- })), ORe = /* @__PURE__ */ c(((e, t) => {
84083
+ })), kRe = /* @__PURE__ */ c(((e, t) => {
84080
84084
  function n(e) {
84081
84085
  let t = e.regex, n = /(r#)?/, r = t.concat(n, e.UNDERSCORE_IDENT_RE), i = t.concat(n, e.IDENT_RE), a = {
84082
84086
  className: "title.function.invoke",
@@ -84244,7 +84248,7 @@ var eRe = /* @__PURE__ */ c(((e, t) => {
84244
84248
  };
84245
84249
  }
84246
84250
  t.exports = n;
84247
- })), kRe = /* @__PURE__ */ c(((e, t) => {
84251
+ })), ARe = /* @__PURE__ */ c(((e, t) => {
84248
84252
  var n = (e) => ({
84249
84253
  IMPORTANT: {
84250
84254
  scope: "meta",
@@ -84393,7 +84397,7 @@ var eRe = /* @__PURE__ */ c(((e, t) => {
84393
84397
  };
84394
84398
  }
84395
84399
  t.exports = u;
84396
- })), ARe = /* @__PURE__ */ c(((e, t) => {
84400
+ })), jRe = /* @__PURE__ */ c(((e, t) => {
84397
84401
  function n(e) {
84398
84402
  return {
84399
84403
  name: "Shell Session",
@@ -84409,7 +84413,7 @@ var eRe = /* @__PURE__ */ c(((e, t) => {
84409
84413
  };
84410
84414
  }
84411
84415
  t.exports = n;
84412
- })), jRe = /* @__PURE__ */ c(((e, t) => {
84416
+ })), MRe = /* @__PURE__ */ c(((e, t) => {
84413
84417
  function n(e) {
84414
84418
  let t = e.regex, n = e.COMMENT("--", "$"), r = {
84415
84419
  scope: "string",
@@ -84526,7 +84530,7 @@ var eRe = /* @__PURE__ */ c(((e, t) => {
84526
84530
  };
84527
84531
  }
84528
84532
  t.exports = n;
84529
- })), MRe = /* @__PURE__ */ c(((e, t) => {
84533
+ })), NRe = /* @__PURE__ */ c(((e, t) => {
84530
84534
  function n(e) {
84531
84535
  return e ? typeof e == "string" ? e : e.source : null;
84532
84536
  }
@@ -85099,7 +85103,7 @@ var eRe = /* @__PURE__ */ c(((e, t) => {
85099
85103
  };
85100
85104
  }
85101
85105
  t.exports = T;
85102
- })), NRe = /* @__PURE__ */ c(((e, t) => {
85106
+ })), PRe = /* @__PURE__ */ c(((e, t) => {
85103
85107
  function n(e) {
85104
85108
  let t = "true false yes no null", n = {
85105
85109
  className: "attr",
@@ -85242,7 +85246,7 @@ var eRe = /* @__PURE__ */ c(((e, t) => {
85242
85246
  };
85243
85247
  }
85244
85248
  t.exports = n;
85245
- })), PRe = /* @__PURE__ */ c(((e, t) => {
85249
+ })), FRe = /* @__PURE__ */ c(((e, t) => {
85246
85250
  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 = [
85247
85251
  "true",
85248
85252
  "false",
@@ -85762,7 +85766,7 @@ var eRe = /* @__PURE__ */ c(((e, t) => {
85762
85766
  }), a;
85763
85767
  }
85764
85768
  t.exports = d;
85765
- })), FRe = /* @__PURE__ */ c(((e, t) => {
85769
+ })), IRe = /* @__PURE__ */ c(((e, t) => {
85766
85770
  function n(e) {
85767
85771
  let t = e.regex, n = {
85768
85772
  className: "string",
@@ -85830,7 +85834,7 @@ var eRe = /* @__PURE__ */ c(((e, t) => {
85830
85834
  };
85831
85835
  }
85832
85836
  t.exports = n;
85833
- })), IRe = /* @__PURE__ */ c(((e, t) => {
85837
+ })), LRe = /* @__PURE__ */ c(((e, t) => {
85834
85838
  function n(e) {
85835
85839
  e.regex;
85836
85840
  let t = e.COMMENT(/\(;/, /;\)/);
@@ -85892,9 +85896,9 @@ var eRe = /* @__PURE__ */ c(((e, t) => {
85892
85896
  };
85893
85897
  }
85894
85898
  t.exports = n;
85895
- })), LRe = (/* @__PURE__ */ d((/* @__PURE__ */ c(((e, t) => {
85896
- var n = eRe();
85897
- n.registerLanguage("xml", tRe()), n.registerLanguage("bash", nRe()), n.registerLanguage("c", rRe()), n.registerLanguage("cpp", iRe()), n.registerLanguage("csharp", aRe()), n.registerLanguage("css", oRe()), n.registerLanguage("markdown", sRe()), n.registerLanguage("diff", cRe()), n.registerLanguage("ruby", lRe()), n.registerLanguage("go", uRe()), n.registerLanguage("graphql", dRe()), n.registerLanguage("ini", fRe()), n.registerLanguage("java", pRe()), n.registerLanguage("javascript", mRe()), n.registerLanguage("json", hRe()), n.registerLanguage("kotlin", gRe()), n.registerLanguage("less", _Re()), n.registerLanguage("lua", vRe()), n.registerLanguage("makefile", yRe()), n.registerLanguage("perl", bRe()), n.registerLanguage("objectivec", xRe()), n.registerLanguage("php", SRe()), n.registerLanguage("php-template", CRe()), n.registerLanguage("plaintext", wRe()), n.registerLanguage("python", TRe()), n.registerLanguage("python-repl", ERe()), n.registerLanguage("r", DRe()), n.registerLanguage("rust", ORe()), n.registerLanguage("scss", kRe()), n.registerLanguage("shell", ARe()), n.registerLanguage("sql", jRe()), n.registerLanguage("swift", MRe()), n.registerLanguage("yaml", NRe()), n.registerLanguage("typescript", PRe()), n.registerLanguage("vbnet", FRe()), n.registerLanguage("wasm", IRe()), n.HighlightJS = n, n.default = n, t.exports = n;
85899
+ })), RRe = (/* @__PURE__ */ d((/* @__PURE__ */ c(((e, t) => {
85900
+ var n = tRe();
85901
+ n.registerLanguage("xml", nRe()), n.registerLanguage("bash", rRe()), n.registerLanguage("c", iRe()), n.registerLanguage("cpp", aRe()), n.registerLanguage("csharp", oRe()), n.registerLanguage("css", sRe()), n.registerLanguage("markdown", cRe()), n.registerLanguage("diff", lRe()), n.registerLanguage("ruby", uRe()), n.registerLanguage("go", dRe()), n.registerLanguage("graphql", fRe()), n.registerLanguage("ini", pRe()), n.registerLanguage("java", mRe()), n.registerLanguage("javascript", hRe()), n.registerLanguage("json", gRe()), n.registerLanguage("kotlin", _Re()), n.registerLanguage("less", vRe()), n.registerLanguage("lua", yRe()), n.registerLanguage("makefile", bRe()), n.registerLanguage("perl", xRe()), n.registerLanguage("objectivec", SRe()), n.registerLanguage("php", CRe()), n.registerLanguage("php-template", wRe()), n.registerLanguage("plaintext", TRe()), n.registerLanguage("python", ERe()), n.registerLanguage("python-repl", DRe()), n.registerLanguage("r", ORe()), n.registerLanguage("rust", kRe()), n.registerLanguage("scss", ARe()), n.registerLanguage("shell", jRe()), n.registerLanguage("sql", MRe()), n.registerLanguage("swift", NRe()), n.registerLanguage("yaml", PRe()), n.registerLanguage("typescript", FRe()), n.registerLanguage("vbnet", IRe()), n.registerLanguage("wasm", LRe()), n.HighlightJS = n, n.default = n, t.exports = n;
85898
85902
  })))())).default;
85899
85903
  //#endregion
85900
85904
  //#region src/core/composables/useMarkdown.ts
@@ -85902,55 +85906,55 @@ Z9.setOptions({
85902
85906
  breaks: !0,
85903
85907
  gfm: !0
85904
85908
  });
85905
- var RRe = 2e4, zRe = new Z9.Renderer();
85906
- zRe.code = ({ text: e, lang: t }) => {
85909
+ var zRe = 2e4, BRe = new Z9.Renderer();
85910
+ BRe.code = ({ text: e, lang: t }) => {
85907
85911
  let n = (t || "").trim() || "plaintext", r = "";
85908
- if (e.length > 2e4) r = VRe(e);
85912
+ if (e.length > 2e4) r = HRe(e);
85909
85913
  else try {
85910
- r = LRe.highlight(e, {
85914
+ r = RRe.highlight(e, {
85911
85915
  language: n,
85912
85916
  ignoreIllegals: !0
85913
85917
  }).value;
85914
85918
  } catch (t) {
85915
- r = VRe(e);
85919
+ r = HRe(e);
85916
85920
  }
85917
- let i = encodeURIComponent(e), a = BRe(n);
85921
+ let i = encodeURIComponent(e), a = VRe(n);
85918
85922
  return `<pre class="code-block" data-lang="${a}" data-code="${i}"><code class="hljs language-${a}">${r}</code></pre>`;
85919
85923
  };
85920
- function BRe(e) {
85924
+ function VRe(e) {
85921
85925
  return e.replace(/&/g, "&amp;").replace(/"/g, "&quot;").replace(/</g, "&lt;").replace(/>/g, "&gt;");
85922
85926
  }
85923
- function VRe(e) {
85927
+ function HRe(e) {
85924
85928
  return e.replace(/&/g, "&amp;").replace(/</g, "&lt;").replace(/>/g, "&gt;");
85925
85929
  }
85926
- var HRe = { ADD_ATTR: [
85930
+ var URe = { ADD_ATTR: [
85927
85931
  "data-code",
85928
85932
  "data-lang",
85929
85933
  "target",
85930
85934
  "rel"
85931
85935
  ] };
85932
- function URe(e) {
85933
- return h9.sanitize(e, HRe);
85934
- }
85935
85936
  function WRe(e) {
85936
- return Z9.parse(e || "", { renderer: zRe });
85937
+ return h9.sanitize(e, URe);
85938
+ }
85939
+ function GRe(e) {
85940
+ return Z9.parse(e || "", { renderer: BRe });
85937
85941
  }
85938
85942
  function Q9(e) {
85939
- return URe(WRe(e));
85943
+ return WRe(GRe(e));
85940
85944
  }
85941
- var GRe = 100, KRe = 2e3;
85942
- function qRe(e) {
85945
+ var KRe = 100, qRe = 2e3;
85946
+ function JRe(e) {
85943
85947
  let t = /* @__PURE__ */ Zq(Q9(e())), n = 0, r = null;
85944
85948
  function i() {
85945
85949
  r = null, n = Date.now(), t.value = Q9(e());
85946
85950
  }
85947
85951
  return AJ(e, () => {
85948
85952
  let a = e();
85949
- if (a.length <= KRe) {
85953
+ if (a.length <= qRe) {
85950
85954
  r && (clearTimeout(r), r = null), n = Date.now(), t.value = Q9(a);
85951
85955
  return;
85952
85956
  }
85953
- let o = n + GRe - Date.now();
85957
+ let o = n + KRe - Date.now();
85954
85958
  o <= 0 ? (r && (clearTimeout(r), r = null), i()) : r || (r = setTimeout(i, o));
85955
85959
  }), vbe(() => {
85956
85960
  r && (clearTimeout(r), r = null);
@@ -85968,14 +85972,14 @@ function qRe(e) {
85968
85972
  }
85969
85973
  //#endregion
85970
85974
  //#region src/core/components/MessageContent.vue?vue&type=script&setup=true&lang.ts
85971
- var JRe = ["innerHTML"], YRe = /* @__PURE__ */ nY({
85975
+ var YRe = ["innerHTML"], XRe = /* @__PURE__ */ nY({
85972
85976
  __name: "MessageContent",
85973
85977
  props: {
85974
85978
  content: {},
85975
85979
  messages: { default: () => B7 }
85976
85980
  },
85977
85981
  setup(e) {
85978
- let t = e, { html: n, codeBlocks: r } = qRe(() => t.content), i = /* @__PURE__ */ Xq(null);
85982
+ let t = e, { html: n, codeBlocks: r } = JRe(() => t.content), i = /* @__PURE__ */ Xq(null);
85979
85983
  function a(e, t) {
85980
85984
  let n = {
85981
85985
  html: "html",
@@ -86029,16 +86033,16 @@ var JRe = ["innerHTML"], YRe = /* @__PURE__ */ nY({
86029
86033
  ref_key: "containerRef",
86030
86034
  ref: i,
86031
86035
  innerHTML: Y(n)
86032
- }, null, 8, JRe));
86036
+ }, null, 8, YRe));
86033
86037
  }
86034
86038
  });
86035
86039
  //#endregion
86036
86040
  //#region src/core/components/message/MessageBubble.vue?vue&type=script&setup=true&lang.ts
86037
86041
  M();
86038
- var XRe = { class: "typing-text" }, ZRe = {
86042
+ var ZRe = { class: "typing-text" }, QRe = {
86039
86043
  key: 0,
86040
86044
  class: "stream-cursor"
86041
- }, QRe = /*#__PURE__*/ _9(/* @__PURE__ */ nY({
86045
+ }, $Re = /*#__PURE__*/ _9(/* @__PURE__ */ nY({
86042
86046
  __name: "MessageBubble",
86043
86047
  props: {
86044
86048
  content: {},
@@ -86049,33 +86053,33 @@ var XRe = { class: "typing-text" }, ZRe = {
86049
86053
  messages: { default: () => j({}, B7) }
86050
86054
  },
86051
86055
  setup(e) {
86052
- return (t, n) => (X(), Z(oX, null, [Q("div", { class: zK(["message-bubble", [e.role, { typing: e.isPendingAssistant }]]) }, [e.isPendingAssistant ? (X(), Z(oX, { key: 0 }, [Q("span", { class: zK(["typing-dot", { pulse: e.showTyping }]) }, null, 2), Q("span", XRe, [bX(y9, { text: e.messages.thinking }, null, 8, ["text"])])], 64)) : (X(), Z(oX, { key: 1 }, [e.role === "assistant" ? (X(), hX(YRe, {
86056
+ return (t, n) => (X(), Z(oX, null, [Q("div", { class: zK(["message-bubble", [e.role, { typing: e.isPendingAssistant }]]) }, [e.isPendingAssistant ? (X(), Z(oX, { key: 0 }, [Q("span", { class: zK(["typing-dot", { pulse: e.showTyping }]) }, null, 2), Q("span", ZRe, [bX(y9, { text: e.messages.thinking }, null, 8, ["text"])])], 64)) : (X(), Z(oX, { key: 1 }, [e.role === "assistant" ? (X(), hX(XRe, {
86053
86057
  key: 0,
86054
86058
  content: e.content,
86055
86059
  messages: e.messages
86056
- }, null, 8, ["content", "messages"])) : (X(), Z(oX, { key: 1 }, [SX(J(e.content), 1)], 64))], 64))], 2), e.showCursor ? (X(), Z("span", ZRe)) : $("", !0)], 64));
86060
+ }, null, 8, ["content", "messages"])) : (X(), Z(oX, { key: 1 }, [SX(J(e.content), 1)], 64))], 64))], 2), e.showCursor ? (X(), Z("span", QRe)) : $("", !0)], 64));
86057
86061
  }
86058
- }), [["__scopeId", "data-v-4b4111d8"]]), $Re = { class: "message-time" }, eze = /*#__PURE__*/ _9(/* @__PURE__ */ nY({
86062
+ }), [["__scopeId", "data-v-4b4111d8"]]), eze = { class: "message-time" }, tze = /*#__PURE__*/ _9(/* @__PURE__ */ nY({
86059
86063
  __name: "MessageTime",
86060
86064
  props: { time: {} },
86061
86065
  setup(e) {
86062
- return (t, n) => (X(), Z("div", $Re, J(e.time), 1));
86066
+ return (t, n) => (X(), Z("div", eze, J(e.time), 1));
86063
86067
  }
86064
86068
  }), [["__scopeId", "data-v-4a976e4a"]]);
86065
86069
  //#endregion
86066
86070
  //#region src/core/components/message/MessageActions.vue?vue&type=script&setup=true&lang.ts
86067
86071
  M();
86068
- var tze = { class: "msg-actions" }, nze = ["title"], rze = {
86072
+ var nze = { class: "msg-actions" }, rze = ["title"], ize = {
86069
86073
  key: 0,
86070
86074
  viewBox: "0 0 16 16",
86071
86075
  fill: "none",
86072
86076
  "aria-hidden": "true"
86073
- }, ize = {
86077
+ }, aze = {
86074
86078
  key: 1,
86075
86079
  viewBox: "0 0 16 16",
86076
86080
  fill: "none",
86077
86081
  "aria-hidden": "true"
86078
- }, aze = /*#__PURE__*/ _9(/* @__PURE__ */ nY({
86082
+ }, oze = /*#__PURE__*/ _9(/* @__PURE__ */ nY({
86079
86083
  __name: "MessageActions",
86080
86084
  props: {
86081
86085
  copied: { type: Boolean },
@@ -86083,17 +86087,17 @@ var tze = { class: "msg-actions" }, nze = ["title"], rze = {
86083
86087
  },
86084
86088
  emits: ["copy", "regenerate"],
86085
86089
  setup(e) {
86086
- return (t, n) => (X(), Z("div", tze, [Q("button", {
86090
+ return (t, n) => (X(), Z("div", nze, [Q("button", {
86087
86091
  class: zK(["msg-action-btn", { done: e.copied }]),
86088
86092
  title: e.copied ? e.messages.copied : e.messages.copy,
86089
86093
  onClick: n[0] || (n[0] = (e) => t.$emit("copy"))
86090
- }, [e.copied ? (X(), Z("svg", rze, [...n[2] || (n[2] = [Q("path", {
86094
+ }, [e.copied ? (X(), Z("svg", ize, [...n[2] || (n[2] = [Q("path", {
86091
86095
  d: "M3 8.5l3 3 7-7",
86092
86096
  stroke: "currentColor",
86093
86097
  "stroke-width": "1.6",
86094
86098
  "stroke-linecap": "round",
86095
86099
  "stroke-linejoin": "round"
86096
- }, null, -1)])])) : (X(), Z("svg", ize, [...n[3] || (n[3] = [Q("rect", {
86100
+ }, null, -1)])])) : (X(), Z("svg", aze, [...n[3] || (n[3] = [Q("rect", {
86097
86101
  x: "5.5",
86098
86102
  y: "5.5",
86099
86103
  width: "8",
@@ -86105,7 +86109,7 @@ var tze = { class: "msg-actions" }, nze = ["title"], rze = {
86105
86109
  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",
86106
86110
  stroke: "currentColor",
86107
86111
  "stroke-width": "1.3"
86108
- }, null, -1)])])), Q("span", null, J(e.copied ? e.messages.copied : e.messages.copy), 1)], 10, nze), Q("button", {
86112
+ }, null, -1)])])), Q("span", null, J(e.copied ? e.messages.copied : e.messages.copy), 1)], 10, rze), Q("button", {
86109
86113
  class: "msg-action-btn",
86110
86114
  onClick: n[1] || (n[1] = (e) => t.$emit("regenerate"))
86111
86115
  }, [n[4] || (n[4] = Q("svg", {
@@ -86125,19 +86129,19 @@ var tze = { class: "msg-actions" }, nze = ["title"], rze = {
86125
86129
  "stroke-linejoin": "round"
86126
86130
  })], -1)), Q("span", null, J(e.messages.regenerate), 1)])]));
86127
86131
  }
86128
- }), [["__scopeId", "data-v-dc051a49"]]), oze = {
86132
+ }), [["__scopeId", "data-v-dc051a49"]]), sze = {
86129
86133
  key: 1,
86130
86134
  class: "avatar-icon",
86131
86135
  viewBox: "0 0 1024 1024",
86132
86136
  xmlns: "http://www.w3.org/2000/svg",
86133
86137
  "aria-hidden": "true"
86134
- }, sze = {
86138
+ }, cze = {
86135
86139
  key: 2,
86136
86140
  class: "avatar-icon",
86137
86141
  viewBox: "0 0 1024 1024",
86138
86142
  xmlns: "http://www.w3.org/2000/svg",
86139
86143
  "aria-hidden": "true"
86140
- }, cze = /*#__PURE__*/ _9(/* @__PURE__ */ nY({
86144
+ }, lze = /*#__PURE__*/ _9(/* @__PURE__ */ nY({
86141
86145
  __name: "AvatarIcon",
86142
86146
  props: {
86143
86147
  role: {},
@@ -86148,18 +86152,18 @@ var tze = { class: "msg-actions" }, nze = ["title"], rze = {
86148
86152
  key: 0,
86149
86153
  icon: e.glyph,
86150
86154
  class: "avatar-glyph"
86151
- }, null, 8, ["icon"])) : e.role === "user" ? (X(), Z("svg", oze, [...n[0] || (n[0] = [Q("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)])])) : (X(), Z("svg", sze, [...n[1] || (n[1] = [Q("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)])]));
86155
+ }, null, 8, ["icon"])) : e.role === "user" ? (X(), Z("svg", sze, [...n[0] || (n[0] = [Q("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)])])) : (X(), Z("svg", cze, [...n[1] || (n[1] = [Q("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)])]));
86152
86156
  }
86153
- }), [["__scopeId", "data-v-a0b508ea"]]), lze = ["data-msg-idx"], uze = {
86157
+ }), [["__scopeId", "data-v-a0b508ea"]]), uze = ["data-msg-idx"], dze = {
86154
86158
  key: 0,
86155
86159
  class: "message-avatar"
86156
- }, dze = { class: "message-content" }, fze = {
86160
+ }, fze = { class: "message-content" }, pze = {
86157
86161
  key: 2,
86158
86162
  class: "msg-focuses"
86159
- }, pze = ["title", "onClick"], mze = ["data-img-count"], hze = ["href", "title"], gze = ["src", "alt"], _ze = {
86163
+ }, mze = ["title", "onClick"], hze = ["data-img-count"], gze = ["href", "title"], _ze = ["src", "alt"], vze = {
86160
86164
  key: 1,
86161
86165
  class: "msg-image-lost"
86162
- }, vze = /*#__PURE__*/ _9(/* @__PURE__ */ nY({
86166
+ }, yze = /*#__PURE__*/ _9(/* @__PURE__ */ nY({
86163
86167
  __name: "MessageRow",
86164
86168
  props: {
86165
86169
  message: {},
@@ -86182,33 +86186,35 @@ var tze = { class: "msg-actions" }, nze = ["title"], rze = {
86182
86186
  let t = e, n = H7(), r = BX(() => t.message.role === "assistant"), i = BX(() => {
86183
86187
  var e;
86184
86188
  return r.value && "reasoning" in t.message ? (e = t.message.reasoning) == null ? "" : e : "";
86185
- }), a = BX(() => {
86189
+ }), a = BX(() => r.value && "reasoningTotal" in t.message ? t.message.reasoningTotal : void 0), o = BX(() => {
86186
86190
  var e;
86187
86191
  return r.value && "steps" in t.message ? (e = t.message.steps) == null ? [] : e : [];
86188
- }), o = BX(() => r.value && !!t.message.content && !t.loading && t.isLast), s = BX(() => r.value && t.loading && t.isLast && !!t.message.content);
86189
- return (t, c) => {
86190
- var l, u;
86192
+ }), s = BX(() => r.value && !!t.message.content && !t.loading && t.isLast), c = BX(() => r.value && t.loading && t.isLast && !!t.message.content);
86193
+ return (t, l) => {
86194
+ var u, d;
86191
86195
  return X(), Z("div", {
86192
86196
  class: zK(["message-row", e.message.role]),
86193
86197
  "data-msg-idx": e.index
86194
- }, [e.showAvatar ? (X(), Z("div", uze, [bX(cze, {
86198
+ }, [e.showAvatar ? (X(), Z("div", dze, [bX(lze, {
86195
86199
  role: e.message.role,
86196
86200
  glyph: e.message.role === "user" ? Y(n).icons.userAvatar : Y(n).icons.assistantAvatar
86197
- }, null, 8, ["role", "glyph"])])) : $("", !0), Q("div", dze, [
86201
+ }, null, 8, ["role", "glyph"])])) : $("", !0), Q("div", fze, [
86198
86202
  r.value ? (X(), hX(bIe, {
86199
86203
  key: 0,
86200
86204
  text: i.value,
86205
+ total: a.value,
86201
86206
  expanded: e.reasoningExpanded,
86202
86207
  running: e.loading && e.isLast,
86203
- onToggle: c[0] || (c[0] = (e) => t.$emit("toggle-reasoning"))
86208
+ onToggle: l[0] || (l[0] = (e) => t.$emit("toggle-reasoning"))
86204
86209
  }, null, 8, [
86205
86210
  "text",
86211
+ "total",
86206
86212
  "expanded",
86207
86213
  "running"
86208
86214
  ])) : $("", !0),
86209
- r.value ? (X(), hX(XIe, {
86215
+ r.value ? (X(), hX(ZIe, {
86210
86216
  key: 1,
86211
- steps: a.value,
86217
+ steps: o.value,
86212
86218
  icons: Y(n).icons,
86213
86219
  messages: Y(n).messages
86214
86220
  }, null, 8, [
@@ -86216,13 +86222,13 @@ var tze = { class: "msg-actions" }, nze = ["title"], rze = {
86216
86222
  "icons",
86217
86223
  "messages"
86218
86224
  ])) : $("", !0),
86219
- e.message.role === "user" && (l = e.message.focuses) != null && l.length ? (X(), Z("div", fze, [(X(!0), Z(oX, null, gY(e.message.focuses, (e) => (X(), Z("span", {
86225
+ e.message.role === "user" && (u = e.message.focuses) != null && u.length ? (X(), Z("div", pze, [(X(!0), Z(oX, null, gY(e.message.focuses, (e) => (X(), Z("span", {
86220
86226
  key: e.path,
86221
86227
  class: "msg-focus-chip",
86222
86228
  title: Y(n).messages.historyFocusChipTitlePrefix + e.path,
86223
86229
  onClick: (t) => Y(n).focusChipClick(e)
86224
- }, [bX(v9, { icon: Y(n).icons.focus }, null, 8, ["icon"]), SX(" " + J(e.path), 1)], 8, pze))), 128))])) : $("", !0),
86225
- e.message.role === "user" && (u = e.message.images) != null && u.length ? (X(), Z("div", {
86230
+ }, [bX(v9, { icon: Y(n).icons.focus }, null, 8, ["icon"]), SX(" " + J(e.path), 1)], 8, mze))), 128))])) : $("", !0),
86231
+ e.message.role === "user" && (d = e.message.images) != null && d.length ? (X(), Z("div", {
86226
86232
  key: 3,
86227
86233
  class: "msg-images",
86228
86234
  "data-img-count": e.message.images.length
@@ -86238,15 +86244,15 @@ var tze = { class: "msg-actions" }, nze = ["title"], rze = {
86238
86244
  class: "msg-image-thumb",
86239
86245
  src: e.thumb || e.dataUri,
86240
86246
  alt: e.name || Y(n).messages.imageAlt
86241
- }, null, 8, gze)) : (X(), Z("span", _ze, "🖼️"))], 8, hze))), 128))], 8, mze)) : $("", !0),
86242
- !r.value || e.message.content || e.isPendingAssistant ? (X(), hX(QRe, {
86247
+ }, null, 8, _ze)) : (X(), Z("span", vze, "🖼️"))], 8, gze))), 128))], 8, hze)) : $("", !0),
86248
+ !r.value || e.message.content || e.isPendingAssistant ? (X(), hX($Re, {
86243
86249
  key: 4,
86244
86250
  messages: Y(n).messages,
86245
86251
  content: e.message.content,
86246
86252
  role: e.message.role,
86247
86253
  "is-pending-assistant": e.isPendingAssistant,
86248
86254
  "show-typing": e.showTyping,
86249
- "show-cursor": s.value
86255
+ "show-cursor": c.value
86250
86256
  }, null, 8, [
86251
86257
  "messages",
86252
86258
  "content",
@@ -86255,30 +86261,30 @@ var tze = { class: "msg-actions" }, nze = ["title"], rze = {
86255
86261
  "show-typing",
86256
86262
  "show-cursor"
86257
86263
  ])) : $("", !0),
86258
- bX(eze, { time: e.time }, null, 8, ["time"]),
86259
- o.value ? (X(), hX(aze, {
86264
+ bX(tze, { time: e.time }, null, 8, ["time"]),
86265
+ s.value ? (X(), hX(oze, {
86260
86266
  key: 5,
86261
86267
  messages: Y(n).messages,
86262
86268
  copied: e.copied,
86263
- onCopy: c[1] || (c[1] = (e) => t.$emit("copy")),
86264
- onRegenerate: c[2] || (c[2] = (e) => t.$emit("regenerate"))
86269
+ onCopy: l[1] || (l[1] = (e) => t.$emit("copy")),
86270
+ onRegenerate: l[2] || (l[2] = (e) => t.$emit("regenerate"))
86265
86271
  }, null, 8, ["messages", "copied"])) : $("", !0)
86266
- ])], 10, lze);
86272
+ ])], 10, uze);
86267
86273
  };
86268
86274
  }
86269
- }), [["__scopeId", "data-v-63dccb17"]]), yze = { class: "chat-body" }, bze = {
86275
+ }), [["__scopeId", "data-v-dc92d354"]]), bze = { class: "chat-body" }, xze = {
86270
86276
  key: 0,
86271
86277
  class: "empty-state"
86272
- }, xze = { class: "empty-icon" }, Sze = {
86278
+ }, Sze = { class: "empty-icon" }, Cze = {
86273
86279
  key: 1,
86274
86280
  class: "message-row assistant"
86275
- }, Cze = {
86281
+ }, wze = {
86276
86282
  key: 0,
86277
86283
  class: "message-avatar"
86278
- }, wze = { class: "message-content" }, Tze = {
86284
+ }, Tze = { class: "message-content" }, Eze = {
86279
86285
  key: 2,
86280
86286
  class: "error-bar"
86281
- }, Eze = { class: "error-text" }, Dze = ["title"], Oze = /*#__PURE__*/ _9(/* @__PURE__ */ nY({
86287
+ }, Dze = { class: "error-text" }, Oze = ["title"], kze = /*#__PURE__*/ _9(/* @__PURE__ */ nY({
86282
86288
  __name: "MessageList",
86283
86289
  props: {
86284
86290
  showAvatar: { type: Boolean },
@@ -86289,9 +86295,9 @@ var tze = { class: "msg-actions" }, nze = ["title"], rze = {
86289
86295
  var e;
86290
86296
  return ((e = f.messages[f.messages.length - 1]) == null ? void 0 : e.role) === "assistant";
86291
86297
  });
86292
- return (t, v) => (X(), Z("div", yze, [
86293
- h.value ? $("", !0) : (X(), Z("div", bze, [Q("div", xze, [bX(v9, { icon: Y(u).empty }, null, 8, ["icon"])]), Q("p", null, [bX(y9, { text: Y(d).emptyGreeting }, null, 8, ["text"])])])),
86294
- (X(!0), Z(oX, null, gY(Y(f).messages, (t, c) => (X(), hX(vze, {
86298
+ return (t, v) => (X(), Z("div", bze, [
86299
+ h.value ? $("", !0) : (X(), Z("div", xze, [Q("div", Sze, [bX(v9, { icon: Y(u).empty }, null, 8, ["icon"])]), Q("p", null, [bX(y9, { text: Y(d).emptyGreeting }, null, 8, ["text"])])])),
86300
+ (X(!0), Z(oX, null, gY(Y(f).messages, (t, c) => (X(), hX(yze, {
86295
86301
  key: c,
86296
86302
  message: t,
86297
86303
  index: c,
@@ -86321,10 +86327,10 @@ var tze = { class: "msg-actions" }, nze = ["title"], rze = {
86321
86327
  "onCopy",
86322
86328
  "onRegenerate"
86323
86329
  ]))), 128)),
86324
- Y(f).loading && !_.value ? (X(), Z("div", Sze, [e.showAvatar ? (X(), Z("div", Cze, [bX(cze, {
86330
+ Y(f).loading && !_.value ? (X(), Z("div", Cze, [e.showAvatar ? (X(), Z("div", wze, [bX(lze, {
86325
86331
  role: "assistant",
86326
86332
  glyph: Y(u).assistantAvatar
86327
- }, null, 8, ["glyph"])])) : $("", !0), Q("div", wze, [bX(QRe, {
86333
+ }, null, 8, ["glyph"])])) : $("", !0), Q("div", Tze, [bX($Re, {
86328
86334
  content: "",
86329
86335
  role: "assistant",
86330
86336
  "is-pending-assistant": !0,
@@ -86332,8 +86338,8 @@ var tze = { class: "msg-actions" }, nze = ["title"], rze = {
86332
86338
  "show-cursor": !1,
86333
86339
  messages: Y(d)
86334
86340
  }, null, 8, ["show-typing", "messages"])])])) : $("", !0),
86335
- Y(f).error ? (X(), Z("div", Tze, [
86336
- Q("span", Eze, J(Y(f).error), 1),
86341
+ Y(f).error ? (X(), Z("div", Eze, [
86342
+ Q("span", Dze, J(Y(f).error), 1),
86337
86343
  g.value ? (X(), Z("button", {
86338
86344
  key: 0,
86339
86345
  class: "retry-btn",
@@ -86344,61 +86350,61 @@ var tze = { class: "msg-actions" }, nze = ["title"], rze = {
86344
86350
  class: "undo-btn",
86345
86351
  title: Y(d).undoTitle,
86346
86352
  onClick: v[1] || (v[1] = (...e) => Y(l) && Y(l)(...e))
86347
- }, [bX(y9, { text: Y(d).undo }, null, 8, ["text"])], 8, Dze)) : $("", !0)
86353
+ }, [bX(y9, { text: Y(d).undo }, null, 8, ["text"])], 8, Oze)) : $("", !0)
86348
86354
  ])) : $("", !0)
86349
86355
  ]));
86350
86356
  }
86351
- }), [["__scopeId", "data-v-113939bc"]]), kze = {
86357
+ }), [["__scopeId", "data-v-113939bc"]]), Aze = {
86352
86358
  key: 0,
86353
86359
  class: "queued-bar"
86354
- }, Aze = { class: "queued-head" }, jze = { class: "queued-icon" }, Mze = { class: "queued-title" }, Nze = { class: "queued-count" }, Pze = { class: "queued-idx" }, Fze = { class: "queued-text" }, Ize = ["title", "onClick"], Lze = ["title", "onClick"], Rze = /*#__PURE__*/ _9(/* @__PURE__ */ nY({
86360
+ }, jze = { class: "queued-head" }, Mze = { class: "queued-icon" }, Nze = { class: "queued-title" }, Pze = { class: "queued-count" }, Fze = { class: "queued-idx" }, Ize = { class: "queued-text" }, Lze = ["title", "onClick"], Rze = ["title", "onClick"], zze = /*#__PURE__*/ _9(/* @__PURE__ */ nY({
86355
86361
  __name: "QueuedBar",
86356
86362
  setup(e) {
86357
86363
  let { chat: t, editQueued: n, icons: r, messages: i } = H7(), { queuedTasks: a, removeQueuedTask: o } = t;
86358
- return (e, t) => Y(a).length ? (X(), Z("div", kze, [Q("div", Aze, [
86359
- Q("span", jze, [bX(v9, { icon: Y(r).queued }, null, 8, ["icon"])]),
86360
- Q("span", Mze, J(Y(i).queuedTitle), 1),
86361
- Q("span", Nze, J(Y(a).length), 1)
86364
+ return (e, t) => Y(a).length ? (X(), Z("div", Aze, [Q("div", jze, [
86365
+ Q("span", Mze, [bX(v9, { icon: Y(r).queued }, null, 8, ["icon"])]),
86366
+ Q("span", Nze, J(Y(i).queuedTitle), 1),
86367
+ Q("span", Pze, J(Y(a).length), 1)
86362
86368
  ]), (X(!0), Z(oX, null, gY(Y(a), (e, t) => (X(), Z("div", {
86363
86369
  key: t,
86364
86370
  class: "queued-item"
86365
86371
  }, [
86366
- Q("span", Pze, J(t + 1), 1),
86367
- Q("span", Fze, J(e), 1),
86372
+ Q("span", Fze, J(t + 1), 1),
86373
+ Q("span", Ize, J(e), 1),
86368
86374
  Q("button", {
86369
86375
  class: "queued-act",
86370
86376
  title: Y(i).queuedEditTitle,
86371
86377
  onClick: (e) => Y(n)(t)
86372
- }, [bX(v9, { icon: Y(r).queuedEdit }, null, 8, ["icon"])], 8, Ize),
86378
+ }, [bX(v9, { icon: Y(r).queuedEdit }, null, 8, ["icon"])], 8, Lze),
86373
86379
  Q("button", {
86374
86380
  class: "queued-act queued-del",
86375
86381
  title: Y(i).removeQueuedTitle,
86376
86382
  onClick: (e) => Y(o)(t)
86377
- }, "✕", 8, Lze)
86383
+ }, "✕", 8, Rze)
86378
86384
  ]))), 128))])) : $("", !0);
86379
86385
  }
86380
- }), [["__scopeId", "data-v-02414fc9"]]), zze = {
86386
+ }), [["__scopeId", "data-v-02414fc9"]]), Bze = {
86381
86387
  key: 0,
86382
86388
  class: "approval-bar"
86383
- }, Bze = { class: "approval-head" }, Vze = { class: "approval-title" }, Hze = {
86389
+ }, Vze = { class: "approval-head" }, Hze = { class: "approval-title" }, Uze = {
86384
86390
  key: 0,
86385
86391
  class: "approval-question"
86386
- }, Uze = {
86392
+ }, Wze = {
86387
86393
  key: 1,
86388
86394
  class: "approval-context"
86389
- }, Wze = {
86395
+ }, Gze = {
86390
86396
  key: 2,
86391
86397
  class: "approval-recommend"
86392
- }, Gze = {
86398
+ }, Kze = {
86393
86399
  key: 3,
86394
86400
  class: "approval-options"
86395
- }, Kze = ["onClick"], qze = { class: "approval-actions" }, Jze = { class: "approval-head" }, Yze = { class: "approval-title" }, Xze = {
86401
+ }, qze = ["onClick"], Jze = { class: "approval-actions" }, Yze = { class: "approval-head" }, Xze = { class: "approval-title" }, Zze = {
86396
86402
  key: 0,
86397
86403
  class: "approval-args"
86398
- }, Zze = {
86404
+ }, Qze = {
86399
86405
  key: 1,
86400
86406
  class: "approval-plan-context"
86401
- }, Qze = { class: "approval-actions" }, $ze = /*#__PURE__*/ _9(/* @__PURE__ */ nY({
86407
+ }, $ze = { class: "approval-actions" }, eBe = /*#__PURE__*/ _9(/* @__PURE__ */ nY({
86402
86408
  __name: "ApprovalBar",
86403
86409
  setup(e) {
86404
86410
  let t = H7(), { pendingApproval: n, resolveApproval: r } = t.chat, i = t.messages, a = t.planConfirmation, o = /* @__PURE__ */ Xq(!1);
@@ -86425,17 +86431,17 @@ var tze = { class: "msg-actions" }, nze = ["title"], rze = {
86425
86431
  });
86426
86432
  return (e, u) => {
86427
86433
  var d, f, p;
86428
- return Y(n) ? (X(), Z("div", zze, [s.value ? (X(), Z(oX, { key: 0 }, [
86429
- Q("div", Bze, [u[5] || (u[5] = Q("span", { class: "approval-icon" }, "❓", -1)), Q("span", Vze, J(Y(i).humanConfirmTitle), 1)]),
86430
- (d = Y(n).args) != null && d.question ? (X(), Z("div", Hze, J(Y(n).args.question), 1)) : $("", !0),
86431
- (f = Y(n).args) != null && f.context ? (X(), Z("div", Uze, J(Y(n).args.context), 1)) : $("", !0),
86432
- (p = Y(n).args) != null && p.recommendation ? (X(), Z("div", Wze, [bX(v9, { icon: Y(t).icons.recommend }, null, 8, ["icon"]), SX(J(Y(i).recommendPrefix) + J(Y(n).args.recommendation), 1)])) : $("", !0),
86433
- c.value.length ? (X(), Z("div", Gze, [(X(!0), Z(oX, null, gY(c.value, (e) => (X(), Z("button", {
86434
+ return Y(n) ? (X(), Z("div", Bze, [s.value ? (X(), Z(oX, { key: 0 }, [
86435
+ Q("div", Vze, [u[5] || (u[5] = Q("span", { class: "approval-icon" }, "❓", -1)), Q("span", Hze, J(Y(i).humanConfirmTitle), 1)]),
86436
+ (d = Y(n).args) != null && d.question ? (X(), Z("div", Uze, J(Y(n).args.question), 1)) : $("", !0),
86437
+ (f = Y(n).args) != null && f.context ? (X(), Z("div", Wze, J(Y(n).args.context), 1)) : $("", !0),
86438
+ (p = Y(n).args) != null && p.recommendation ? (X(), Z("div", Gze, [bX(v9, { icon: Y(t).icons.recommend }, null, 8, ["icon"]), SX(J(Y(i).recommendPrefix) + J(Y(n).args.recommendation), 1)])) : $("", !0),
86439
+ c.value.length ? (X(), Z("div", Kze, [(X(!0), Z(oX, null, gY(c.value, (e) => (X(), Z("button", {
86434
86440
  key: e,
86435
86441
  class: "approval-opt",
86436
86442
  onClick: (t) => Y(r)(e)
86437
- }, J(e), 9, Kze))), 128))])) : $("", !0),
86438
- Q("div", qze, [Q("button", {
86443
+ }, J(e), 9, qze))), 128))])) : $("", !0),
86444
+ Q("div", Jze, [Q("button", {
86439
86445
  class: "approval-deny",
86440
86446
  onClick: u[0] || (u[0] = (e) => Y(r)(!1))
86441
86447
  }, [bX(y9, { text: Y(i).deny }, null, 8, ["text"])]), c.value.length ? $("", !0) : (X(), Z("button", {
@@ -86444,18 +86450,18 @@ var tze = { class: "msg-actions" }, nze = ["title"], rze = {
86444
86450
  onClick: u[1] || (u[1] = (e) => Y(r)(!0))
86445
86451
  }, [bX(y9, { text: Y(i).approve }, null, 8, ["text"])]))])
86446
86452
  ], 64)) : (X(), Z(oX, { key: 1 }, [
86447
- Q("div", Jze, [
86453
+ Q("div", Yze, [
86448
86454
  u[6] || (u[6] = Q("span", { class: "approval-icon" }, "✋", -1)),
86449
- Q("span", Yze, [SX(J(Y(i).toolConfirmPrefix), 1), Q("code", null, J(Y(n).toolName), 1)]),
86455
+ Q("span", Xze, [SX(J(Y(i).toolConfirmPrefix), 1), Q("code", null, J(Y(n).toolName), 1)]),
86450
86456
  l.value ? (X(), Z("button", {
86451
86457
  key: 0,
86452
86458
  class: "approval-toggle",
86453
86459
  onClick: u[2] || (u[2] = (e) => o.value = !o.value)
86454
86460
  }, J(o.value ? Y(i).collapseArgs : Y(i).viewArgs) + J(o.value ? " ▴" : " ▾"), 1)) : $("", !0)
86455
86461
  ]),
86456
- l.value && o.value ? (X(), Z("pre", Xze, J(l.value), 1)) : $("", !0),
86457
- Y(a) ? (X(), Z("div", Zze, [bX(v9, { icon: Y(t).icons.recommend }, null, 8, ["icon"]), SX(J(Y(i).planConfirmedPrefix) + J(Y(a).choice) + J(Y(i).planConfirmedSuffix), 1)])) : $("", !0),
86458
- Q("div", Qze, [Q("button", {
86462
+ l.value && o.value ? (X(), Z("pre", Zze, J(l.value), 1)) : $("", !0),
86463
+ Y(a) ? (X(), Z("div", Qze, [bX(v9, { icon: Y(t).icons.recommend }, null, 8, ["icon"]), SX(J(Y(i).planConfirmedPrefix) + J(Y(a).choice) + J(Y(i).planConfirmedSuffix), 1)])) : $("", !0),
86464
+ Q("div", $ze, [Q("button", {
86459
86465
  class: "approval-deny",
86460
86466
  onClick: u[3] || (u[3] = (e) => Y(r)(!1))
86461
86467
  }, [bX(y9, { text: Y(i).deny }, null, 8, ["text"])]), Q("button", {
@@ -86469,13 +86475,13 @@ var tze = { class: "msg-actions" }, nze = ["title"], rze = {
86469
86475
  //#endregion
86470
86476
  //#region src/core/components/ConflictBar.vue?vue&type=script&setup=true&lang.ts
86471
86477
  M();
86472
- var eBe = {
86478
+ var tBe = {
86473
86479
  key: 0,
86474
86480
  class: "conflict-bar"
86475
- }, tBe = { class: "conflict-head" }, nBe = { class: "conflict-icon" }, rBe = { class: "conflict-title" }, iBe = { class: "conflict-detail" }, aBe = {
86481
+ }, nBe = { class: "conflict-head" }, rBe = { class: "conflict-icon" }, iBe = { class: "conflict-title" }, aBe = { class: "conflict-detail" }, oBe = {
86476
86482
  key: 0,
86477
86483
  class: "conflict-diff"
86478
- }, oBe = { class: "conflict-diff-col" }, sBe = { class: "conflict-diff-label" }, cBe = { class: "conflict-diff-pre" }, lBe = { class: "conflict-diff-col" }, uBe = { class: "conflict-diff-label" }, dBe = { class: "conflict-diff-pre" }, fBe = { class: "conflict-actions" }, pBe = ["title"], mBe = ["title"], hBe = ["title"], gBe = /*#__PURE__*/ _9(/* @__PURE__ */ nY({
86484
+ }, sBe = { class: "conflict-diff-col" }, cBe = { class: "conflict-diff-label" }, lBe = { class: "conflict-diff-pre" }, uBe = { class: "conflict-diff-col" }, dBe = { class: "conflict-diff-label" }, fBe = { class: "conflict-diff-pre" }, pBe = { class: "conflict-actions" }, mBe = ["title"], hBe = ["title"], gBe = ["title"], _Be = /*#__PURE__*/ _9(/* @__PURE__ */ nY({
86479
86485
  __name: "ConflictBar",
86480
86486
  props: {
86481
86487
  pendingConflict: {},
@@ -86509,19 +86515,19 @@ var eBe = {
86509
86515
  return String(n);
86510
86516
  }
86511
86517
  });
86512
- return (t, a) => e.pendingConflict ? (X(), Z("div", eBe, [
86513
- Q("div", tBe, [Q("span", nBe, [bX(v9, { icon: e.icons.conflict }, null, 8, ["icon"])]), Q("span", rBe, [
86518
+ return (t, a) => e.pendingConflict ? (X(), Z("div", tBe, [
86519
+ Q("div", nBe, [Q("span", rBe, [bX(v9, { icon: e.icons.conflict }, null, 8, ["icon"])]), Q("span", iBe, [
86514
86520
  SX(J(e.messages.conflictTitlePrefix), 1),
86515
86521
  Q("code", null, J(e.pendingConflict.path), 1),
86516
86522
  SX(J(e.messages.conflictTitleSuffix), 1)
86517
86523
  ])]),
86518
- Q("div", iBe, J(e.messages.conflictDetailTemplate.replace("{op}", e.pendingConflict.op === "delete" ? e.messages.conflictOpDelete : e.messages.conflictOpWrite)), 1),
86524
+ Q("div", aBe, J(e.messages.conflictDetailTemplate.replace("{op}", e.pendingConflict.op === "delete" ? e.messages.conflictOpDelete : e.messages.conflictOpWrite)), 1),
86519
86525
  Q("button", {
86520
86526
  class: "conflict-toggle",
86521
86527
  onClick: a[0] || (a[0] = (e) => n.value = !n.value)
86522
86528
  }, J(n.value ? e.messages.collapseDiff : e.messages.viewDiff) + J(n.value ? " ▴" : " ▾"), 1),
86523
- n.value ? (X(), Z("div", aBe, [Q("div", oBe, [Q("div", sBe, J(e.messages.agentValueLabel), 1), Q("pre", cBe, J(r.value || e.messages.deleteNoValue), 1)]), Q("div", lBe, [Q("div", uBe, J(e.messages.currentValueLabel), 1), Q("pre", dBe, J(i.value), 1)])])) : $("", !0),
86524
- Q("div", fBe, [
86529
+ n.value ? (X(), Z("div", oBe, [Q("div", sBe, [Q("div", cBe, J(e.messages.agentValueLabel), 1), Q("pre", lBe, J(r.value || e.messages.deleteNoValue), 1)]), Q("div", uBe, [Q("div", dBe, J(e.messages.currentValueLabel), 1), Q("pre", fBe, J(i.value), 1)])])) : $("", !0),
86530
+ Q("div", pBe, [
86525
86531
  Q("button", {
86526
86532
  class: "conflict-keep",
86527
86533
  onClick: a[1] || (a[1] = (t) => {
@@ -86529,7 +86535,7 @@ var eBe = {
86529
86535
  return (n = e.onResolve) == null ? void 0 : n.call(e, "keep_external");
86530
86536
  }),
86531
86537
  title: e.messages.keepExternalTitle
86532
- }, [bX(y9, { text: e.messages.keepExternal }, null, 8, ["text"])], 8, pBe),
86538
+ }, [bX(y9, { text: e.messages.keepExternal }, null, 8, ["text"])], 8, mBe),
86533
86539
  Q("button", {
86534
86540
  class: "conflict-overwrite",
86535
86541
  onClick: a[2] || (a[2] = (t) => {
@@ -86537,7 +86543,7 @@ var eBe = {
86537
86543
  return (n = e.onResolve) == null ? void 0 : n.call(e, "overwrite");
86538
86544
  }),
86539
86545
  title: e.messages.overwriteTitle
86540
- }, [bX(y9, { text: e.messages.overwrite }, null, 8, ["text"])], 8, mBe),
86546
+ }, [bX(y9, { text: e.messages.overwrite }, null, 8, ["text"])], 8, hBe),
86541
86547
  Q("button", {
86542
86548
  class: "conflict-restore",
86543
86549
  onClick: a[3] || (a[3] = (t) => {
@@ -86545,28 +86551,28 @@ var eBe = {
86545
86551
  return (n = e.onResolve) == null ? void 0 : n.call(e, "restore");
86546
86552
  }),
86547
86553
  title: e.messages.restoreTitle
86548
- }, [bX(y9, { text: e.messages.restore }, null, 8, ["text"])], 8, hBe)
86554
+ }, [bX(y9, { text: e.messages.restore }, null, 8, ["text"])], 8, gBe)
86549
86555
  ])
86550
86556
  ])) : $("", !0);
86551
86557
  }
86552
- }), [["__scopeId", "data-v-36dda58c"]]), _Be = { class: "chat-footer" }, vBe = ["title"], yBe = {
86558
+ }), [["__scopeId", "data-v-36dda58c"]]), vBe = { class: "chat-footer" }, yBe = ["title"], bBe = {
86553
86559
  key: 0,
86554
86560
  class: "drop-hint"
86555
- }, bBe = {
86561
+ }, xBe = {
86556
86562
  key: 1,
86557
86563
  class: "chip-stack"
86558
- }, xBe = {
86564
+ }, SBe = {
86559
86565
  key: 0,
86560
86566
  class: "focus-chips"
86561
- }, SBe = ["title", "onClick"], CBe = { class: "focus-chip-icon" }, wBe = { class: "focus-chip-path" }, TBe = ["title", "onClick"], EBe = {
86567
+ }, CBe = ["title", "onClick"], wBe = { class: "focus-chip-icon" }, TBe = { class: "focus-chip-path" }, EBe = ["title", "onClick"], DBe = {
86562
86568
  key: 1,
86563
86569
  class: "img-chips",
86564
86570
  "data-test": "img-chips"
86565
- }, DBe = ["title"], OBe = ["src", "alt"], kBe = ["onClick"], ABe = {
86571
+ }, OBe = ["title"], kBe = ["src", "alt"], ABe = ["onClick"], jBe = {
86566
86572
  key: 2,
86567
86573
  class: "img-error",
86568
86574
  "data-test": "img-error"
86569
- }, jBe = ["placeholder", "rows"], MBe = { class: "input-actions" }, NBe = { class: "send-hint" }, PBe = ["title"], FBe = {
86575
+ }, MBe = ["placeholder", "rows"], NBe = { class: "input-actions" }, PBe = { class: "send-hint" }, FBe = ["title"], IBe = {
86570
86576
  key: 1,
86571
86577
  width: "15",
86572
86578
  height: "15",
@@ -86576,13 +86582,13 @@ var eBe = {
86576
86582
  "stroke-width": "2",
86577
86583
  "stroke-linecap": "round",
86578
86584
  "stroke-linejoin": "round"
86579
- }, IBe = ["disabled", "title"], LBe = {
86585
+ }, LBe = ["disabled", "title"], RBe = {
86580
86586
  key: 0,
86581
86587
  width: "16",
86582
86588
  height: "16",
86583
86589
  viewBox: "0 0 24 24",
86584
86590
  fill: "currentColor"
86585
- }, RBe = {
86591
+ }, zBe = {
86586
86592
  key: 2,
86587
86593
  width: "18",
86588
86594
  height: "18",
@@ -86590,7 +86596,7 @@ var eBe = {
86590
86596
  fill: "none",
86591
86597
  stroke: "currentColor",
86592
86598
  "stroke-width": "2"
86593
- }, zBe = /*#__PURE__*/ _9(/* @__PURE__ */ nY({
86599
+ }, BBe = /*#__PURE__*/ _9(/* @__PURE__ */ nY({
86594
86600
  __name: "ChatInput",
86595
86601
  props: {
86596
86602
  placeholder: {},
@@ -86619,36 +86625,36 @@ var eBe = {
86619
86625
  }
86620
86626
  r.length && h(r);
86621
86627
  };
86622
- return (t, h) => (X(), Z("div", _Be, [Y(a) ? (X(), Z("button", {
86628
+ return (t, h) => (X(), Z("div", vBe, [Y(a) ? (X(), Z("button", {
86623
86629
  key: 0,
86624
86630
  class: "undo-foot-btn",
86625
86631
  title: Y(d).undoTitle,
86626
86632
  onClick: h[0] || (h[0] = (...e) => Y(o) && Y(o)(...e))
86627
- }, J(Y(d).undo), 9, vBe)) : $("", !0), Q("div", {
86633
+ }, J(Y(d).undo), 9, yBe)) : $("", !0), Q("div", {
86628
86634
  class: zK(["chat-input-wrap", { "drag-over": b.value }]),
86629
86635
  onDragover: h[4] || (h[4] = DZ((e) => b.value = !0, ["prevent"])),
86630
86636
  onDragleave: h[5] || (h[5] = (e) => b.value = !1),
86631
86637
  onDrop: DZ(C, ["prevent"])
86632
86638
  }, [
86633
- b.value ? (X(), Z("div", yBe, J(Y(d).imageDropHint), 1)) : $("", !0),
86634
- Y(s).length || Y(m).length || Y(_) ? (X(), Z("div", bBe, [
86635
- Y(s).length ? (X(), Z("div", xBe, [(X(!0), Z(oX, null, gY(Y(s), (e) => (X(), Z("span", {
86639
+ b.value ? (X(), Z("div", bBe, J(Y(d).imageDropHint), 1)) : $("", !0),
86640
+ Y(s).length || Y(m).length || Y(_) ? (X(), Z("div", xBe, [
86641
+ Y(s).length ? (X(), Z("div", SBe, [(X(!0), Z(oX, null, gY(Y(s), (e) => (X(), Z("span", {
86636
86642
  key: e.path,
86637
86643
  class: "focus-chip",
86638
86644
  title: Y(d).focusChipTitlePrefix + e.path + Y(d).focusChipTitleHint,
86639
86645
  onClick: (t) => Y(l)(e)
86640
86646
  }, [
86641
- Q("span", CBe, [bX(v9, { icon: Y(u).focus }, null, 8, ["icon"])]),
86642
- Q("code", wBe, J(e.path), 1),
86647
+ Q("span", wBe, [bX(v9, { icon: Y(u).focus }, null, 8, ["icon"])]),
86648
+ Q("code", TBe, J(e.path), 1),
86643
86649
  Q("button", {
86644
86650
  type: "button",
86645
86651
  class: "focus-chip-x",
86646
86652
  "data-test": "focus-clear",
86647
86653
  title: Y(d).removeFocus,
86648
86654
  onClick: DZ((t) => Y(c)(e.path), ["stop"])
86649
- }, "✕", 8, TBe)
86650
- ], 8, SBe))), 128))])) : $("", !0),
86651
- Y(m).length ? (X(), Z("div", EBe, [(X(!0), Z(oX, null, gY(Y(m), (e) => (X(), Z("span", {
86655
+ }, "✕", 8, EBe)
86656
+ ], 8, CBe))), 128))])) : $("", !0),
86657
+ Y(m).length ? (X(), Z("div", DBe, [(X(!0), Z(oX, null, gY(Y(m), (e) => (X(), Z("span", {
86652
86658
  key: e.id,
86653
86659
  class: "img-chip",
86654
86660
  title: e.name || Y(d).imageAlt
@@ -86656,13 +86662,13 @@ var eBe = {
86656
86662
  class: "img-chip-thumb",
86657
86663
  src: e.dataUri,
86658
86664
  alt: e.name || Y(d).imageAlt
86659
- }, null, 8, OBe), Q("button", {
86665
+ }, null, 8, kBe), Q("button", {
86660
86666
  type: "button",
86661
86667
  class: "img-chip-x",
86662
86668
  "data-test": "img-chip-x",
86663
86669
  onClick: (t) => Y(g)(e.id)
86664
- }, "✕", 8, kBe)], 8, DBe))), 128))])) : $("", !0),
86665
- Y(_) ? (X(), Z("div", ABe, J(Y(_)), 1)) : $("", !0)
86670
+ }, "✕", 8, ABe)], 8, OBe))), 128))])) : $("", !0),
86671
+ Y(_) ? (X(), Z("div", jBe, J(Y(_)), 1)) : $("", !0)
86666
86672
  ])) : $("", !0),
86667
86673
  EJ(Q("textarea", {
86668
86674
  "onUpdate:modelValue": h[1] || (h[1] = (e) => /* @__PURE__ */ Yq(n) ? n.value = e : null),
@@ -86671,9 +86677,9 @@ var eBe = {
86671
86677
  rows: e.inputRows,
86672
86678
  onKeydown: h[2] || (h[2] = (...e) => Y(i) && Y(i)(...e)),
86673
86679
  onPaste: w
86674
- }, null, 40, jBe), [[EZ, Y(n)]]),
86675
- Q("div", MBe, [
86676
- Q("span", NBe, J(Y(d).sendHint), 1),
86680
+ }, null, 40, MBe), [[EZ, Y(n)]]),
86681
+ Q("div", NBe, [
86682
+ Q("span", PBe, J(Y(d).sendHint), 1),
86677
86683
  Q("button", {
86678
86684
  class: "attach-btn",
86679
86685
  title: Y(d).attachImageTitle,
@@ -86682,7 +86688,7 @@ var eBe = {
86682
86688
  }, [Y(u).attachImage ? (X(), hX(v9, {
86683
86689
  key: 0,
86684
86690
  icon: Y(u).attachImage
86685
- }, null, 8, ["icon"])) : (X(), Z("svg", FBe, [...h[6] || (h[6] = [Q("path", { d: "M21.44 11.05l-9.19 9.19a6 6 0 0 1-8.49-8.49l9.19-9.19a4 4 0 0 1 5.66 5.66l-9.2 9.19a2 2 0 0 1-2.83-2.83l8.49-8.48" }, null, -1)])]))], 8, PBe),
86691
+ }, null, 8, ["icon"])) : (X(), Z("svg", IBe, [...h[6] || (h[6] = [Q("path", { d: "M21.44 11.05l-9.19 9.19a6 6 0 0 1-8.49-8.49l9.19-9.19a4 4 0 0 1 5.66 5.66l-9.2 9.19a2 2 0 0 1-2.83-2.83l8.49-8.48" }, null, -1)])]))], 8, FBe),
86686
86692
  Q("input", {
86687
86693
  ref_key: "fileInput",
86688
86694
  ref: y,
@@ -86698,7 +86704,7 @@ var eBe = {
86698
86704
  disabled: !Y(f).loading && !Y(n).trim() && !Y(m).length && !Y(v),
86699
86705
  title: Y(f).loading ? Y(d).stopTitle : Y(d).sendTitle,
86700
86706
  onClick: h[3] || (h[3] = (e) => Y(f).loading ? Y(p)() : Y(r)())
86701
- }, [Y(f).loading ? (X(), Z("svg", LBe, [...h[7] || (h[7] = [Q("rect", {
86707
+ }, [Y(f).loading ? (X(), Z("svg", RBe, [...h[7] || (h[7] = [Q("rect", {
86702
86708
  x: "6",
86703
86709
  y: "6",
86704
86710
  width: "12",
@@ -86707,12 +86713,12 @@ var eBe = {
86707
86713
  }, null, -1)])])) : Y(u).send ? (X(), hX(v9, {
86708
86714
  key: 1,
86709
86715
  icon: Y(u).send
86710
- }, null, 8, ["icon"])) : (X(), Z("svg", RBe, [...h[8] || (h[8] = [Q("line", {
86716
+ }, null, 8, ["icon"])) : (X(), Z("svg", zBe, [...h[8] || (h[8] = [Q("line", {
86711
86717
  x1: "22",
86712
86718
  y1: "2",
86713
86719
  x2: "11",
86714
86720
  y2: "13"
86715
- }, null, -1), Q("polygon", { points: "22 2 15 22 11 13 2 9 22 2" }, null, -1)])]))], 10, IBe)
86721
+ }, null, -1), Q("polygon", { points: "22 2 15 22 11 13 2 9 22 2" }, null, -1)])]))], 10, LBe)
86716
86722
  ])
86717
86723
  ], 34)]));
86718
86724
  }
@@ -86720,178 +86726,178 @@ var eBe = {
86720
86726
  //#endregion
86721
86727
  //#region src/core/components/DebugDrawer.vue?vue&type=script&setup=true&lang.ts
86722
86728
  M();
86723
- var BBe = {
86729
+ var VBe = {
86724
86730
  key: 0,
86725
86731
  class: "debug-drawer"
86726
- }, VBe = { class: "drawer-header" }, HBe = { class: "tab-group" }, UBe = { class: "header-actions" }, WBe = ["title"], GBe = ["title"], KBe = ["title"], qBe = {
86732
+ }, HBe = { class: "drawer-header" }, UBe = { class: "tab-group" }, WBe = { class: "header-actions" }, GBe = ["title"], KBe = ["title"], qBe = ["title"], JBe = {
86727
86733
  key: 0,
86728
86734
  class: "drawer-filters"
86729
- }, JBe = ["onClick"], YBe = { class: "chip-count" }, XBe = { class: "chip-count" }, ZBe = {
86735
+ }, YBe = ["onClick"], XBe = { class: "chip-count" }, ZBe = { class: "chip-count" }, QBe = {
86730
86736
  key: 0,
86731
86737
  class: "context-panel"
86732
- }, QBe = {
86738
+ }, $Be = {
86733
86739
  key: 0,
86734
86740
  class: "trace-empty"
86735
- }, $Be = { class: "ctx-overview" }, eVe = { class: "ctx-occupancy" }, tVe = ["title"], nVe = ["title"], rVe = { class: "ctx-pct" }, iVe = { class: "ctx-kv-row" }, aVe = { class: "ctx-kv" }, oVe = {
86741
+ }, eVe = { class: "ctx-overview" }, tVe = { class: "ctx-occupancy" }, nVe = ["title"], rVe = ["title"], iVe = { class: "ctx-pct" }, aVe = { class: "ctx-kv-row" }, oVe = { class: "ctx-kv" }, sVe = {
86736
86742
  key: 0,
86737
86743
  class: "ctx-kv"
86738
- }, sVe = {
86744
+ }, cVe = {
86739
86745
  key: 1,
86740
86746
  class: "ctx-kv"
86741
- }, cVe = { class: "ctx-section-title" }, lVe = ["title"], uVe = { class: "ctx-cat-bar" }, dVe = { class: "ctx-cat-tokens" }, fVe = {
86747
+ }, lVe = { class: "ctx-section-title" }, uVe = ["title"], dVe = { class: "ctx-cat-bar" }, fVe = { class: "ctx-cat-tokens" }, pVe = {
86742
86748
  key: 0,
86743
86749
  class: "ctx-compression"
86744
- }, pVe = { class: "ctx-section-title" }, mVe = { class: "ctx-kv-row" }, hVe = { class: "ctx-kv" }, gVe = { class: "ctx-kv" }, _Ve = { class: "ctx-kv" }, vVe = {
86750
+ }, mVe = { class: "ctx-section-title" }, hVe = { class: "ctx-kv-row" }, gVe = { class: "ctx-kv" }, _Ve = { class: "ctx-kv" }, vVe = { class: "ctx-kv" }, yVe = {
86745
86751
  key: 0,
86746
86752
  class: "ctx-kv"
86747
- }, yVe = {
86753
+ }, bVe = {
86748
86754
  key: 1,
86749
86755
  class: "subagent-panel"
86750
- }, bVe = {
86756
+ }, xVe = {
86751
86757
  key: 0,
86752
86758
  class: "sub-section"
86753
- }, xVe = { class: "sub-section-title" }, SVe = {
86759
+ }, SVe = { class: "sub-section-title" }, CVe = {
86754
86760
  key: 1,
86755
86761
  class: "trace-empty"
86756
- }, CVe = {
86762
+ }, wVe = {
86757
86763
  key: 0,
86758
86764
  class: "sub-section"
86759
- }, wVe = { class: "sub-section-title" }, TVe = { class: "sub-head" }, EVe = { class: "sub-label" }, DVe = { class: "sub-steps-badge" }, OVe = { class: "sub-task" }, kVe = {
86765
+ }, TVe = { class: "sub-section-title" }, EVe = { class: "sub-head" }, DVe = { class: "sub-label" }, OVe = { class: "sub-steps-badge" }, kVe = { class: "sub-task" }, AVe = {
86760
86766
  key: 1,
86761
86767
  class: "sub-section"
86762
- }, AVe = { class: "sub-section-title" }, jVe = { class: "sub-head" }, MVe = { class: "sub-label" }, NVe = {
86768
+ }, jVe = { class: "sub-section-title" }, MVe = { class: "sub-head" }, NVe = { class: "sub-label" }, PVe = {
86763
86769
  key: 0,
86764
86770
  class: "sub-dur"
86765
- }, PVe = ["onClick"], FVe = { class: "sub-task" }, IVe = {
86771
+ }, FVe = ["onClick"], IVe = { class: "sub-task" }, LVe = {
86766
86772
  key: 0,
86767
86773
  class: "sub-result"
86768
- }, LVe = {
86774
+ }, RVe = {
86769
86775
  key: 1,
86770
86776
  class: "sub-steps-list"
86771
- }, RVe = { class: "sub-step-kind" }, zVe = { class: "sub-step-name" }, BVe = { class: "sub-step-ts" }, VVe = {
86777
+ }, zVe = { class: "sub-step-kind" }, BVe = { class: "sub-step-name" }, VVe = { class: "sub-step-ts" }, HVe = {
86772
86778
  key: 0,
86773
86779
  class: "empty"
86774
- }, HVe = ["onClick"], UVe = { class: "log-group-title" }, WVe = { class: "log-group-meta" }, GVe = {
86780
+ }, UVe = ["onClick"], WVe = { class: "log-group-title" }, GVe = { class: "log-group-meta" }, KVe = {
86775
86781
  key: 0,
86776
86782
  class: "lg-badge"
86777
- }, KVe = {
86783
+ }, qVe = {
86778
86784
  key: 1,
86779
86785
  class: "lg-badge"
86780
- }, qVe = {
86786
+ }, JVe = {
86781
86787
  key: 2,
86782
86788
  class: "lg-badge err"
86783
- }, JVe = { class: "log-group-body" }, YVe = { class: "log-head" }, XVe = {
86789
+ }, YVe = { class: "log-group-body" }, XVe = { class: "log-head" }, ZVe = {
86784
86790
  key: 0,
86785
86791
  class: "log-source"
86786
- }, ZVe = { class: "log-time" }, QVe = { class: "log-body" }, $Ve = { class: "kv-grid" }, eHe = { class: "kv" }, tHe = { class: "k" }, nHe = { class: "v" }, rHe = { class: "kv" }, iHe = { class: "k" }, aHe = { class: "v" }, oHe = { class: "kv" }, sHe = { class: "v" }, cHe = { class: "kv" }, lHe = { class: "k" }, uHe = { class: "v" }, dHe = { class: "section-label" }, fHe = { class: "chip-row" }, pHe = { class: "section-label" }, mHe = { class: "msg-list" }, hHe = { class: "msg-text" }, gHe = { class: "badge-row" }, _He = { class: "badge" }, vHe = {
86792
+ }, QVe = { class: "log-time" }, $Ve = { class: "log-body" }, eHe = { class: "kv-grid" }, tHe = { class: "kv" }, nHe = { class: "k" }, rHe = { class: "v" }, iHe = { class: "kv" }, aHe = { class: "k" }, oHe = { class: "v" }, sHe = { class: "kv" }, cHe = { class: "v" }, lHe = { class: "kv" }, uHe = { class: "k" }, dHe = { class: "v" }, fHe = { class: "section-label" }, pHe = { class: "chip-row" }, mHe = { class: "section-label" }, hHe = { class: "msg-list" }, gHe = { class: "msg-text" }, _He = { class: "badge-row" }, vHe = { class: "badge" }, yHe = {
86787
86793
  key: 0,
86788
86794
  class: "badge muted"
86789
- }, yHe = { class: "badge muted" }, bHe = {
86795
+ }, bHe = { class: "badge muted" }, xHe = {
86790
86796
  key: 1,
86791
86797
  class: "badge muted"
86792
- }, xHe = ["onClick"], SHe = ["title", "onClick"], CHe = ["onClick"], wHe = ["title", "onClick"], THe = { class: "msg-detail" }, EHe = {
86798
+ }, SHe = ["onClick"], CHe = ["title", "onClick"], wHe = ["onClick"], THe = ["title", "onClick"], EHe = { class: "msg-detail" }, DHe = {
86793
86799
  key: 0,
86794
86800
  class: "msg-text"
86795
- }, DHe = { class: "tc-inline-name" }, OHe = { class: "tc-inline-args" }, kHe = {
86801
+ }, OHe = { class: "tc-inline-name" }, kHe = { class: "tc-inline-args" }, AHe = {
86796
86802
  key: 1,
86797
86803
  class: "tc-id"
86798
- }, AHe = {
86804
+ }, jHe = {
86799
86805
  key: 1,
86800
86806
  class: "log-raw"
86801
- }, jHe = { class: "badge-row" }, MHe = { class: "badge" }, NHe = {
86807
+ }, MHe = { class: "badge-row" }, NHe = { class: "badge" }, PHe = {
86802
86808
  key: 0,
86803
86809
  class: "badge warn"
86804
- }, PHe = {
86810
+ }, FHe = {
86805
86811
  key: 0,
86806
86812
  class: "resp-content"
86807
- }, FHe = {
86813
+ }, IHe = {
86808
86814
  key: 1,
86809
86815
  class: "tc-list"
86810
- }, IHe = { class: "tc-name" }, LHe = { class: "tc-args" }, RHe = {
86816
+ }, LHe = { class: "tc-name" }, RHe = { class: "tc-args" }, zHe = {
86811
86817
  key: 2,
86812
86818
  class: "usage-row"
86813
- }, zHe = { class: "usage" }, BHe = { class: "usage" }, VHe = { class: "usage" }, HHe = {
86819
+ }, BHe = { class: "usage" }, VHe = { class: "usage" }, HHe = { class: "usage" }, UHe = {
86814
86820
  key: 0,
86815
86821
  class: "usage"
86816
- }, UHe = { class: "tc-name" }, WHe = {
86822
+ }, WHe = { class: "tc-name" }, GHe = {
86817
86823
  key: 0,
86818
86824
  class: "tc-dur"
86819
- }, GHe = ["title", "onClick"], KHe = { class: "tc-args" }, qHe = { class: "tc-result-sep" }, JHe = { class: "tc-args tc-result" }, YHe = {
86825
+ }, KHe = ["title", "onClick"], qHe = { class: "tc-args" }, JHe = { class: "tc-result-sep" }, YHe = { class: "tc-args tc-result" }, XHe = {
86820
86826
  key: 1,
86821
86827
  class: "tc-card inline"
86822
- }, XHe = { class: "tc-name" }, ZHe = {
86828
+ }, ZHe = { class: "tc-name" }, QHe = {
86823
86829
  key: 0,
86824
86830
  class: "tc-dur running"
86825
- }, QHe = { class: "tc-args" }, $He = {
86831
+ }, $He = { class: "tc-args" }, eUe = {
86826
86832
  key: 4,
86827
86833
  class: "err-box"
86828
- }, eUe = { class: "log-footer" }, tUe = ["onClick"], nUe = ["onClick"], rUe = {
86834
+ }, tUe = { class: "log-footer" }, nUe = ["onClick"], rUe = ["onClick"], iUe = {
86829
86835
  key: 0,
86830
86836
  class: "log-raw"
86831
- }, iUe = {
86837
+ }, aUe = {
86832
86838
  key: 3,
86833
86839
  class: "info-body"
86834
- }, aUe = {
86840
+ }, oUe = {
86835
86841
  key: 0,
86836
86842
  class: "empty"
86837
- }, oUe = { class: "info-section" }, sUe = { class: "info-title" }, cUe = { class: "kv-grid" }, lUe = { class: "kv" }, uUe = { class: "v" }, dUe = { class: "kv" }, fUe = { class: "k" }, pUe = { class: "v" }, mUe = { class: "kv" }, hUe = { class: "k" }, gUe = { class: "v" }, _Ue = { class: "kv" }, vUe = { class: "k" }, yUe = { class: "v" }, bUe = {
86843
+ }, sUe = { class: "info-section" }, cUe = { class: "info-title" }, lUe = { class: "kv-grid" }, uUe = { class: "kv" }, dUe = { class: "v" }, fUe = { class: "kv" }, pUe = { class: "k" }, mUe = { class: "v" }, hUe = { class: "kv" }, gUe = { class: "k" }, _Ue = { class: "v" }, vUe = { class: "kv" }, yUe = { class: "k" }, bUe = { class: "v" }, xUe = {
86838
86844
  class: "kv",
86839
86845
  style: { "margin-top": "6px" }
86840
- }, xUe = { class: "k" }, SUe = {
86846
+ }, SUe = { class: "k" }, CUe = {
86841
86847
  class: "v",
86842
86848
  style: { "font-size": "11px" }
86843
- }, CUe = { class: "info-section" }, wUe = { class: "info-title" }, TUe = { class: "info-name" }, EUe = { class: "info-desc" }, DUe = {
86849
+ }, wUe = { class: "info-section" }, TUe = { class: "info-title" }, EUe = { class: "info-name" }, DUe = { class: "info-desc" }, OUe = {
86844
86850
  key: 0,
86845
86851
  class: "info-section"
86846
- }, OUe = { class: "info-title" }, kUe = { class: "info-hint" }, AUe = ["onClick"], jUe = { class: "info-desc" }, MUe = {
86852
+ }, kUe = { class: "info-title" }, AUe = { class: "info-hint" }, jUe = ["onClick"], MUe = { class: "info-desc" }, NUe = {
86847
86853
  key: 0,
86848
86854
  class: "skill-content"
86849
- }, NUe = {
86855
+ }, PUe = {
86850
86856
  key: 0,
86851
86857
  class: "skill-loading"
86852
- }, PUe = {
86858
+ }, FUe = {
86853
86859
  key: 1,
86854
86860
  class: "skill-error"
86855
- }, FUe = {
86861
+ }, IUe = {
86856
86862
  key: 2,
86857
86863
  class: "skill-pre"
86858
- }, IUe = {
86864
+ }, LUe = {
86859
86865
  key: 1,
86860
86866
  class: "info-section"
86861
- }, LUe = { class: "info-title" }, RUe = { class: "info-item" }, zUe = { class: "info-name" }, BUe = { class: "info-desc" }, VUe = { class: "info-section" }, HUe = { class: "info-title" }, UUe = { class: "kv-grid" }, WUe = { class: "kv" }, GUe = { class: "k" }, KUe = { class: "v" }, qUe = { class: "kv" }, JUe = { class: "k" }, YUe = { class: "v" }, XUe = { class: "kv" }, ZUe = { class: "k" }, QUe = { class: "v" }, $Ue = { class: "kv" }, eWe = { class: "k" }, tWe = {
86867
+ }, RUe = { class: "info-title" }, zUe = { class: "info-item" }, BUe = { class: "info-name" }, VUe = { class: "info-desc" }, HUe = { class: "info-section" }, UUe = { class: "info-title" }, WUe = { class: "kv-grid" }, GUe = { class: "kv" }, KUe = { class: "k" }, qUe = { class: "v" }, JUe = { class: "kv" }, YUe = { class: "k" }, XUe = { class: "v" }, ZUe = { class: "kv" }, QUe = { class: "k" }, $Ue = { class: "v" }, eWe = { class: "kv" }, tWe = { class: "k" }, nWe = {
86862
86868
  class: "v",
86863
86869
  style: { "font-size": "11px" }
86864
- }, nWe = {
86870
+ }, rWe = {
86865
86871
  key: 2,
86866
86872
  class: "info-section"
86867
- }, rWe = { class: "info-title" }, iWe = { class: "info-name" }, aWe = { class: "src-tag mcp" }, oWe = { class: "info-desc" }, sWe = {
86873
+ }, iWe = { class: "info-title" }, aWe = { class: "info-name" }, oWe = { class: "src-tag mcp" }, sWe = { class: "info-desc" }, cWe = {
86868
86874
  key: 3,
86869
86875
  class: "info-section"
86870
- }, cWe = { class: "info-title" }, lWe = { class: "kv-grid" }, uWe = { class: "kv" }, dWe = { class: "k" }, fWe = { class: "v" }, pWe = { class: "kv" }, mWe = { class: "k" }, hWe = { class: "v" }, gWe = { class: "kv" }, _We = { class: "k" }, vWe = { class: "v" }, yWe = {
86876
+ }, lWe = { class: "info-title" }, uWe = { class: "kv-grid" }, dWe = { class: "kv" }, fWe = { class: "k" }, pWe = { class: "v" }, mWe = { class: "kv" }, hWe = { class: "k" }, gWe = { class: "v" }, _We = { class: "kv" }, vWe = { class: "k" }, yWe = { class: "v" }, bWe = {
86871
86877
  key: 0,
86872
86878
  class: "kv"
86873
- }, bWe = { class: "k" }, xWe = {
86879
+ }, xWe = { class: "k" }, SWe = {
86874
86880
  class: "v",
86875
86881
  style: { "font-size": "11px" }
86876
- }, SWe = {
86882
+ }, CWe = {
86877
86883
  key: 4,
86878
86884
  class: "info-section"
86879
- }, CWe = { class: "info-title" }, wWe = {
86885
+ }, wWe = { class: "info-title" }, TWe = {
86880
86886
  key: 5,
86881
86887
  class: "info-section"
86882
- }, TWe = { class: "info-title" }, EWe = { class: "info-pre" }, DWe = {
86888
+ }, EWe = { class: "info-title" }, DWe = { class: "info-pre" }, OWe = {
86883
86889
  key: 6,
86884
86890
  class: "info-section"
86885
- }, OWe = { class: "info-title" }, kWe = { class: "info-kv" }, AWe = { class: "kv" }, jWe = { class: "k" }, MWe = { class: "v" }, NWe = { class: "kv" }, PWe = { class: "k" }, FWe = { class: "v" }, IWe = { class: "kv" }, LWe = { class: "k" }, RWe = { class: "v" }, zWe = { class: "kv" }, BWe = { class: "k" }, VWe = { class: "v" }, HWe = { class: "kv" }, UWe = { class: "k" }, WWe = {
86891
+ }, kWe = { class: "info-title" }, AWe = { class: "info-kv" }, jWe = { class: "kv" }, MWe = { class: "k" }, NWe = { class: "v" }, PWe = { class: "kv" }, FWe = { class: "k" }, IWe = { class: "v" }, LWe = { class: "kv" }, RWe = { class: "k" }, zWe = { class: "v" }, BWe = { class: "kv" }, VWe = { class: "k" }, HWe = { class: "v" }, UWe = { class: "kv" }, WWe = { class: "k" }, GWe = {
86886
86892
  class: "v",
86887
86893
  style: { "font-size": "11px" }
86888
- }, GWe = {
86894
+ }, KWe = {
86889
86895
  key: 0,
86890
86896
  class: "kv"
86891
- }, KWe = { class: "k" }, qWe = {
86897
+ }, qWe = { class: "k" }, JWe = {
86892
86898
  class: "v",
86893
86899
  style: { "font-size": "11px" }
86894
- }, $9 = 400, JWe = /*#__PURE__*/ _9(/* @__PURE__ */ nY({
86900
+ }, $9 = 400, YWe = /*#__PURE__*/ _9(/* @__PURE__ */ nY({
86895
86901
  __name: "DebugDrawer",
86896
86902
  props: {
86897
86903
  logs: { default: () => [] },
@@ -87310,8 +87316,8 @@ var BBe = {
87310
87316
  return (t, n) => (X(), hX(VJ, { to: "body" }, [bX(ZX, { name: "drawer" }, {
87311
87317
  default: TJ(() => {
87312
87318
  var t;
87313
- return [e.visible ? (X(), Z("div", BBe, [Q("div", { class: zK(["drawer-panel", { "cs-theme-dark": e.csTheme === "dark" }]) }, [
87314
- Q("div", VBe, [Q("div", HBe, [
87319
+ return [e.visible ? (X(), Z("div", VBe, [Q("div", { class: zK(["drawer-panel", { "cs-theme-dark": e.csTheme === "dark" }]) }, [
87320
+ Q("div", HBe, [Q("div", UBe, [
87315
87321
  Q("button", {
87316
87322
  class: zK(["tab-btn", { active: ue.value === "logs" }]),
87317
87323
  onClick: n[0] || (n[0] = (e) => me("logs"))
@@ -87331,33 +87337,33 @@ var BBe = {
87331
87337
  class: zK(["tab-btn", { active: ue.value === "info" }]),
87332
87338
  onClick: n[3] || (n[3] = (e) => me("info"))
87333
87339
  }, "🧬 " + J(y.value.debugTabInfo), 3)) : $("", !0)
87334
- ]), Q("div", UBe, [
87340
+ ]), Q("div", WBe, [
87335
87341
  Q("button", {
87336
87342
  class: "hd-btn",
87337
87343
  title: y.value.debugCopyReport,
87338
87344
  onClick: v
87339
- }, J(g.value === "report" ? "✓" : "💾"), 9, WBe),
87345
+ }, J(g.value === "report" ? "✓" : "💾"), 9, GBe),
87340
87346
  ue.value === "logs" ? (X(), Z("button", {
87341
87347
  key: 0,
87342
87348
  class: "hd-btn",
87343
87349
  title: y.value.debugClearLogs,
87344
87350
  onClick: le
87345
- }, "🗑️", 8, GBe)) : $("", !0),
87351
+ }, "🗑️", 8, KBe)) : $("", !0),
87346
87352
  Q("button", {
87347
87353
  class: "hd-btn",
87348
87354
  title: y.value.close,
87349
87355
  onClick: F
87350
- }, "✕", 8, KBe)
87356
+ }, "✕", 8, qBe)
87351
87357
  ])]),
87352
- ue.value === "logs" ? (X(), Z("div", qBe, [(X(!0), Z(oX, null, gY(b.value, (e, t) => (X(), Z("button", {
87358
+ ue.value === "logs" ? (X(), Z("div", JBe, [(X(!0), Z(oX, null, gY(b.value, (e, t) => (X(), Z("button", {
87353
87359
  key: t,
87354
87360
  class: zK(["filter-chip", { active: i.value === t }]),
87355
87361
  style: RK({ "--chip-color": e.color }),
87356
87362
  onClick: (e) => i.value = t
87357
- }, [SX(J(e.icon) + " " + J(e.label) + " ", 1), Q("span", YBe, J(C.value[t] || 0), 1)], 14, JBe))), 128)), Q("button", {
87363
+ }, [SX(J(e.icon) + " " + J(e.label) + " ", 1), Q("span", XBe, J(C.value[t] || 0), 1)], 14, YBe))), 128)), Q("button", {
87358
87364
  class: zK(["filter-chip all", { active: i.value === "all" }]),
87359
87365
  onClick: n[4] || (n[4] = (e) => i.value = "all")
87360
- }, [SX(J(y.value.debugFilterAll) + " ", 1), Q("span", XBe, J(C.value.all || 0), 1)], 2)])) : $("", !0),
87366
+ }, [SX(J(y.value.debugFilterAll) + " ", 1), Q("span", ZBe, J(C.value.all || 0), 1)], 2)])) : $("", !0),
87361
87367
  Q("div", {
87362
87368
  class: "drawer-body",
87363
87369
  ref_key: "drawerBodyEl",
@@ -87371,8 +87377,8 @@ var BBe = {
87371
87377
  ref_key: "drawerContentsEl",
87372
87378
  ref: c
87373
87379
  }, [
87374
- ue.value === "context" ? (X(), Z("div", ZBe, [be.value ? (X(), Z(oX, { key: 1 }, [be.value ? (X(), Z(oX, { key: 0 }, [
87375
- Q("div", $Be, [Q("div", eVe, [Q("div", {
87380
+ ue.value === "context" ? (X(), Z("div", QBe, [be.value ? (X(), Z(oX, { key: 1 }, [be.value ? (X(), Z(oX, { key: 0 }, [
87381
+ Q("div", eVe, [Q("div", tVe, [Q("div", {
87376
87382
  class: "ctx-bar-track",
87377
87383
  title: `${y.value.debugCtxOccupancy} ${Math.round(be.value.occupancy * 100)}%`
87378
87384
  }, [Q("div", {
@@ -87383,12 +87389,12 @@ var BBe = {
87383
87389
  class: "ctx-threshold-mark",
87384
87390
  style: RK({ left: Math.min(be.value.thresholdRatio * 100, 100) + "%" }),
87385
87391
  title: y.value.debugCtxThreshold
87386
- }, null, 12, nVe)) : $("", !0)], 8, tVe), Q("span", rVe, J(Math.round(be.value.occupancy * 100)) + "%", 1)]), Q("div", iVe, [
87387
- Q("span", aVe, J(y.value.debugCtxTokens) + " " + J(be.value.totalTokens) + " token", 1),
87388
- be.value.contextWindow ? (X(), Z("span", oVe, J(y.value.debugCtxWindow) + " " + J(be.value.contextWindow), 1)) : $("", !0),
87389
- be.value.thresholdRatio > 0 ? (X(), Z("span", sVe, J(y.value.debugCtxThresholdPct) + " " + J(Math.round(be.value.thresholdRatio * 100)) + "%", 1)) : $("", !0)
87392
+ }, null, 12, rVe)) : $("", !0)], 8, nVe), Q("span", iVe, J(Math.round(be.value.occupancy * 100)) + "%", 1)]), Q("div", aVe, [
87393
+ Q("span", oVe, J(y.value.debugCtxTokens) + " " + J(be.value.totalTokens) + " token", 1),
87394
+ be.value.contextWindow ? (X(), Z("span", sVe, J(y.value.debugCtxWindow) + " " + J(be.value.contextWindow), 1)) : $("", !0),
87395
+ be.value.thresholdRatio > 0 ? (X(), Z("span", cVe, J(y.value.debugCtxThresholdPct) + " " + J(Math.round(be.value.thresholdRatio * 100)) + "%", 1)) : $("", !0)
87390
87396
  ])]),
87391
- Q("div", cVe, J(y.value.debugCtxCategories), 1),
87397
+ Q("div", lVe, J(y.value.debugCtxCategories), 1),
87392
87398
  (X(!0), Z(oX, null, gY(be.value.categories, (e) => (X(), Z("div", {
87393
87399
  key: e.key,
87394
87400
  class: "ctx-cat"
@@ -87396,62 +87402,62 @@ var BBe = {
87396
87402
  Q("span", {
87397
87403
  class: "ctx-cat-label",
87398
87404
  title: e.label
87399
- }, J(e.label), 9, lVe),
87400
- Q("div", uVe, [Q("div", {
87405
+ }, J(e.label), 9, uVe),
87406
+ Q("div", dVe, [Q("div", {
87401
87407
  class: "ctx-cat-fill",
87402
87408
  style: RK({ width: Math.max(Math.round(e.pct * 100), 2) + "%" })
87403
87409
  }, null, 4)]),
87404
- Q("span", dVe, [SX(J(e.tokens) + " ", 1), Q("i", null, "(" + J(Math.round(e.pct * 100)) + "%)", 1)])
87410
+ Q("span", fVe, [SX(J(e.tokens) + " ", 1), Q("i", null, "(" + J(Math.round(e.pct * 100)) + "%)", 1)])
87405
87411
  ]))), 128)),
87406
- be.value.compression ? (X(), Z("div", fVe, [Q("div", pVe, J(y.value.debugCtxLastCompression), 1), Q("div", mVe, [
87407
- Q("span", hVe, J(y.value.debugCtxSummarized) + " " + J(be.value.compression.roundsSummarized) + "/" + J(be.value.compression.roundsTotal) + J(y.value.debugCtxRoundsSuffix), 1),
87408
- Q("span", gVe, J(y.value.debugCtxRecalled) + " " + J(be.value.compression.roundsRecalled), 1),
87409
- Q("span", _Ve, J(be.value.compression.strategy), 1),
87410
- be.value.compression.decision ? (X(), Z("span", vVe, "🤖 " + J(y.value.debugCtxAgentDecision) + J(Oe(be.value.compression.decision)), 1)) : $("", !0)
87412
+ be.value.compression ? (X(), Z("div", pVe, [Q("div", mVe, J(y.value.debugCtxLastCompression), 1), Q("div", hVe, [
87413
+ Q("span", gVe, J(y.value.debugCtxSummarized) + " " + J(be.value.compression.roundsSummarized) + "/" + J(be.value.compression.roundsTotal) + J(y.value.debugCtxRoundsSuffix), 1),
87414
+ Q("span", _Ve, J(y.value.debugCtxRecalled) + " " + J(be.value.compression.roundsRecalled), 1),
87415
+ Q("span", vVe, J(be.value.compression.strategy), 1),
87416
+ be.value.compression.decision ? (X(), Z("span", yVe, "🤖 " + J(y.value.debugCtxAgentDecision) + J(Oe(be.value.compression.decision)), 1)) : $("", !0)
87411
87417
  ])])) : $("", !0)
87412
- ], 64)) : $("", !0)], 64)) : (X(), Z("div", QBe, J(y.value.debugCtxEmpty), 1))])) : $("", !0),
87413
- ue.value === "subagent" ? (X(), Z("div", yVe, [we.value.length ? (X(), Z("div", bVe, [Q("div", xVe, "🔒 " + J(y.value.debugLocksTitle) + " (" + J(we.value.length) + ")", 1), (X(!0), Z(oX, null, gY(we.value, ([e, t]) => (X(), Z("div", {
87418
+ ], 64)) : $("", !0)], 64)) : (X(), Z("div", $Be, J(y.value.debugCtxEmpty), 1))])) : $("", !0),
87419
+ ue.value === "subagent" ? (X(), Z("div", bVe, [we.value.length ? (X(), Z("div", xVe, [Q("div", SVe, "🔒 " + J(y.value.debugLocksTitle) + " (" + J(we.value.length) + ")", 1), (X(!0), Z(oX, null, gY(we.value, ([e, t]) => (X(), Z("div", {
87414
87420
  key: "lock-" + e,
87415
87421
  class: "sub-task"
87416
- }, "🔒 " + J(e) + " ← " + J(t), 1))), 128))])) : $("", !0), !Se.value.length && !Ce.value.length ? (X(), Z("div", SVe, J(y.value.debugSubagentEmpty), 1)) : (X(), Z(oX, { key: 2 }, [Se.value.length ? (X(), Z("div", CVe, [Q("div", wVe, "▶ " + J(y.value.debugSubRunningTitle) + " (" + J(Se.value.length) + ")", 1), (X(!0), Z(oX, null, gY(Se.value, (e, t) => (X(), Z("div", {
87422
+ }, "🔒 " + J(e) + " ← " + J(t), 1))), 128))])) : $("", !0), !Se.value.length && !Ce.value.length ? (X(), Z("div", CVe, J(y.value.debugSubagentEmpty), 1)) : (X(), Z(oX, { key: 2 }, [Se.value.length ? (X(), Z("div", wVe, [Q("div", TVe, "▶ " + J(y.value.debugSubRunningTitle) + " (" + J(Se.value.length) + ")", 1), (X(!0), Z(oX, null, gY(Se.value, (e, t) => (X(), Z("div", {
87417
87423
  key: "a" + t,
87418
87424
  class: zK(["sub-card", e.status])
87419
- }, [Q("div", TVe, [
87425
+ }, [Q("div", EVe, [
87420
87426
  Q("span", {
87421
87427
  class: "sub-status",
87422
87428
  style: RK({ background: Te.value[e.status] && Te.value[e.status].color || "#9ca3af" })
87423
87429
  }, J(Te.value[e.status] && Te.value[e.status].label || e.status), 5),
87424
- Q("span", EVe, J(e.label), 1),
87425
- Q("span", DVe, J(e.steps.length) + J(y.value.debugStepsCountSuffix), 1)
87426
- ]), Q("div", OVe, J(ve(e.task, 80)), 1)], 2))), 128))])) : $("", !0), Ce.value.length ? (X(), Z("div", kVe, [Q("div", AVe, "🕐 " + J(y.value.debugSubHistoryTitle) + " (" + J(Ce.value.length) + ")", 1), (X(!0), Z(oX, null, gY(Ce.value, (e, t) => (X(), Z("div", {
87430
+ Q("span", DVe, J(e.label), 1),
87431
+ Q("span", OVe, J(e.steps.length) + J(y.value.debugStepsCountSuffix), 1)
87432
+ ]), Q("div", kVe, J(ve(e.task, 80)), 1)], 2))), 128))])) : $("", !0), Ce.value.length ? (X(), Z("div", AVe, [Q("div", jVe, "🕐 " + J(y.value.debugSubHistoryTitle) + " (" + J(Ce.value.length) + ")", 1), (X(!0), Z(oX, null, gY(Ce.value, (e, t) => (X(), Z("div", {
87427
87433
  key: "h" + t,
87428
87434
  class: zK(["sub-card", e.status])
87429
87435
  }, [
87430
- Q("div", jVe, [
87436
+ Q("div", MVe, [
87431
87437
  Q("span", {
87432
87438
  class: "sub-status",
87433
87439
  style: RK({ background: Te.value[e.status] && Te.value[e.status].color || "#9ca3af" })
87434
87440
  }, J(Te.value[e.status] && Te.value[e.status].label || e.status), 5),
87435
- Q("span", MVe, J(e.label), 1),
87436
- e.durationMs == null ? $("", !0) : (X(), Z("span", NVe, J(ye(e.durationMs)), 1)),
87441
+ Q("span", NVe, J(e.label), 1),
87442
+ e.durationMs == null ? $("", !0) : (X(), Z("span", PVe, J(ye(e.durationMs)), 1)),
87437
87443
  e.steps.length ? (X(), Z("button", {
87438
87444
  key: 1,
87439
87445
  class: "sub-toggle",
87440
87446
  onClick: (e) => De(t)
87441
- }, J(Ee.value.has(t) ? y.value.collapse : y.value.debugStepsBtn), 9, PVe)) : $("", !0)
87447
+ }, J(Ee.value.has(t) ? y.value.collapse : y.value.debugStepsBtn), 9, FVe)) : $("", !0)
87442
87448
  ]),
87443
- Q("div", FVe, J(ve(e.task, 80)), 1),
87444
- e.resultPreview ? (X(), Z("div", IVe, J(e.resultPreview), 1)) : $("", !0),
87445
- Ee.value.has(t) && e.steps.length ? (X(), Z("div", LVe, [(X(!0), Z(oX, null, gY(e.steps, (e, t) => (X(), Z("div", {
87449
+ Q("div", IVe, J(ve(e.task, 80)), 1),
87450
+ e.resultPreview ? (X(), Z("div", LVe, J(e.resultPreview), 1)) : $("", !0),
87451
+ Ee.value.has(t) && e.steps.length ? (X(), Z("div", RVe, [(X(!0), Z(oX, null, gY(e.steps, (e, t) => (X(), Z("div", {
87446
87452
  key: t,
87447
87453
  class: "sub-step"
87448
87454
  }, [
87449
- Q("span", RVe, J(e.kind === "tool_call" ? "🔧" : "✅"), 1),
87450
- Q("span", zVe, J(e.name), 1),
87451
- Q("span", BVe, J(re(e.ts)), 1)
87455
+ Q("span", zVe, J(e.kind === "tool_call" ? "🔧" : "✅"), 1),
87456
+ Q("span", BVe, J(e.name), 1),
87457
+ Q("span", VVe, J(re(e.ts)), 1)
87452
87458
  ]))), 128))])) : $("", !0)
87453
87459
  ], 2))), 128))])) : $("", !0)], 64))])) : $("", !0),
87454
- ue.value === "logs" ? (X(), Z(oX, { key: 2 }, [S.value.length === 0 ? (X(), Z("div", VVe, J(y.value.debugLogsEmpty), 1)) : $("", !0), (X(!0), Z(oX, null, gY(k.value, (e) => (X(), Z("div", {
87460
+ ue.value === "logs" ? (X(), Z(oX, { key: 2 }, [S.value.length === 0 ? (X(), Z("div", HVe, J(y.value.debugLogsEmpty), 1)) : $("", !0), (X(!0), Z(oX, null, gY(k.value, (e) => (X(), Z("div", {
87455
87461
  key: e.key,
87456
87462
  class: "log-group"
87457
87463
  }, [Q("div", {
@@ -87459,69 +87465,69 @@ var BBe = {
87459
87465
  onClick: (t) => N(e.key)
87460
87466
  }, [
87461
87467
  Q("span", { class: zK(["log-group-arrow", { open: te(e.key) }]) }, "▶", 2),
87462
- Q("span", UVe, J(P(e)), 1),
87463
- Q("span", WVe, [
87468
+ Q("span", WVe, J(P(e)), 1),
87469
+ Q("span", GVe, [
87464
87470
  SX(J(re(e.firstTs)), 1),
87465
87471
  e.lastTs > e.firstTs ? (X(), Z(oX, { key: 0 }, [SX(" ~ " + J(re(e.lastTs)), 1)], 64)) : $("", !0),
87466
87472
  SX(" · " + J(ye(e.lastTs - e.firstTs)), 1)
87467
87473
  ]),
87468
- e.toolCount ? (X(), Z("span", GVe, "🔧 " + J(e.toolCount), 1)) : $("", !0),
87469
- e.tokens == null ? $("", !0) : (X(), Z("span", KVe, "Σ " + J(e.tokens) + " tok", 1)),
87470
- e.errorCount ? (X(), Z("span", qVe, "❌ " + J(e.errorCount), 1)) : $("", !0)
87471
- ], 10, HVe), EJ(Q("div", JVe, [(X(!0), Z(oX, null, gY(e.entries, ({ log: e, pairCall: t, prevMsgCount: r, uid: i }) => {
87474
+ e.toolCount ? (X(), Z("span", KVe, "🔧 " + J(e.toolCount), 1)) : $("", !0),
87475
+ e.tokens == null ? $("", !0) : (X(), Z("span", qVe, "Σ " + J(e.tokens) + " tok", 1)),
87476
+ e.errorCount ? (X(), Z("span", JVe, "❌ " + J(e.errorCount), 1)) : $("", !0)
87477
+ ], 10, UVe), EJ(Q("div", YVe, [(X(!0), Z(oX, null, gY(e.entries, ({ log: e, pairCall: t, prevMsgCount: r, uid: i }) => {
87472
87478
  var o, s, c, l, u, v, x, S;
87473
87479
  return X(), Z("div", {
87474
87480
  key: i,
87475
87481
  class: "log-item"
87476
87482
  }, [
87477
- Q("div", YVe, [
87483
+ Q("div", XVe, [
87478
87484
  Q("span", {
87479
87485
  class: "log-type",
87480
87486
  style: RK({ background: b.value[e.type].color })
87481
87487
  }, J(b.value[e.type].icon) + " " + J(b.value[e.type].label), 5),
87482
- e.source ? (X(), Z("span", XVe, "↳ " + J(e.source), 1)) : $("", !0),
87483
- Q("span", ZVe, J(re(e.timestamp)), 1)
87488
+ e.source ? (X(), Z("span", ZVe, "↳ " + J(e.source), 1)) : $("", !0),
87489
+ Q("span", QVe, J(re(e.timestamp)), 1)
87484
87490
  ]),
87485
- Q("div", QVe, [e.type === "context" ? (X(), Z(oX, { key: 0 }, [
87486
- Q("div", $Ve, [
87487
- Q("div", eHe, [Q("span", tHe, J(y.value.debugModel), 1), Q("span", nHe, J(e.data.model), 1)]),
87488
- Q("div", rHe, [Q("span", iHe, J(y.value.debugTemperature), 1), Q("span", aHe, J(e.data.temperature), 1)]),
87489
- Q("div", oHe, [n[5] || (n[5] = Q("span", { class: "k" }, "MaxTokens", -1)), Q("span", sHe, J(e.data.maxTokens), 1)]),
87490
- Q("div", cHe, [Q("span", lHe, J(y.value.debugMessageCount), 1), Q("span", uHe, J(e.data.totalMessages), 1)])
87491
+ Q("div", $Ve, [e.type === "context" ? (X(), Z(oX, { key: 0 }, [
87492
+ Q("div", eHe, [
87493
+ Q("div", tHe, [Q("span", nHe, J(y.value.debugModel), 1), Q("span", rHe, J(e.data.model), 1)]),
87494
+ Q("div", iHe, [Q("span", aHe, J(y.value.debugTemperature), 1), Q("span", oHe, J(e.data.temperature), 1)]),
87495
+ Q("div", sHe, [n[5] || (n[5] = Q("span", { class: "k" }, "MaxTokens", -1)), Q("span", cHe, J(e.data.maxTokens), 1)]),
87496
+ Q("div", lHe, [Q("span", uHe, J(y.value.debugMessageCount), 1), Q("span", dHe, J(e.data.totalMessages), 1)])
87491
87497
  ]),
87492
- Q("div", dHe, J(y.value.debugToolsLabel) + " (" + J(((o = e.data.tools) == null ? void 0 : o.length) || 0) + ")", 1),
87493
- Q("div", fHe, [(X(!0), Z(oX, null, gY(e.data.tools, (e) => (X(), Z("span", {
87498
+ Q("div", fHe, J(y.value.debugToolsLabel) + " (" + J(((o = e.data.tools) == null ? void 0 : o.length) || 0) + ")", 1),
87499
+ Q("div", pHe, [(X(!0), Z(oX, null, gY(e.data.tools, (e) => (X(), Z("span", {
87494
87500
  key: e,
87495
87501
  class: "tool-chip"
87496
87502
  }, J(e), 1))), 128))]),
87497
- Q("div", pHe, J(y.value.debugContextMessages), 1),
87498
- Q("div", mHe, [(X(!0), Z(oX, null, gY(e.data.messages, (e, t) => (X(), Z("div", {
87503
+ Q("div", mHe, J(y.value.debugContextMessages), 1),
87504
+ Q("div", hHe, [(X(!0), Z(oX, null, gY(e.data.messages, (e, t) => (X(), Z("div", {
87499
87505
  key: t,
87500
87506
  class: "msg-row"
87501
87507
  }, [Q("span", {
87502
87508
  class: "msg-role",
87503
87509
  style: RK({ background: ce(e.type).color })
87504
- }, J(ce(e.type).label), 5), Q("span", hHe, J(e.content), 1)]))), 128))])
87505
- ], 64)) : e.type === "llm_request" ? (X(), Z(oX, { key: 1 }, [Q("div", gHe, [
87506
- Q("span", _He, J(y.value.debugRoundPrefix) + J(e.data.round) + J(y.value.debugRoundSuffix), 1),
87507
- e.data.model ? (X(), Z("span", vHe, J(e.data.model), 1)) : $("", !0),
87508
- Q("span", yHe, [SX(J((e.data.messages || []).length) + J(y.value.debugMsgCountSuffix), 1), r != null && r < (e.data.messages || []).length ? (X(), Z(oX, { key: 0 }, [SX("(+" + J((e.data.messages || []).length - r) + ")", 1)], 64)) : $("", !0)]),
87509
- (s = e.data.tools) != null && s.length ? (X(), Z("span", bHe, J(e.data.tools.length) + J(y.value.debugToolCountSuffix), 1)) : $("", !0),
87510
+ }, J(ce(e.type).label), 5), Q("span", gHe, J(e.content), 1)]))), 128))])
87511
+ ], 64)) : e.type === "llm_request" ? (X(), Z(oX, { key: 1 }, [Q("div", _He, [
87512
+ Q("span", vHe, J(y.value.debugRoundPrefix) + J(e.data.round) + J(y.value.debugRoundSuffix), 1),
87513
+ e.data.model ? (X(), Z("span", yHe, J(e.data.model), 1)) : $("", !0),
87514
+ Q("span", bHe, [SX(J((e.data.messages || []).length) + J(y.value.debugMsgCountSuffix), 1), r != null && r < (e.data.messages || []).length ? (X(), Z(oX, { key: 0 }, [SX("(+" + J((e.data.messages || []).length - r) + ")", 1)], 64)) : $("", !0)]),
87515
+ (s = e.data.tools) != null && s.length ? (X(), Z("span", xHe, J(e.data.tools.length) + J(y.value.debugToolCountSuffix), 1)) : $("", !0),
87510
87516
  r != null && r > 0 ? (X(), Z("button", {
87511
87517
  key: 2,
87512
87518
  class: "view-toggle only-new-btn",
87513
87519
  onClick: (e) => h(i)
87514
- }, J(m.value.has(i) ? y.value.debugShowAll : y.value.debugOnlyNew), 9, xHe)) : $("", !0),
87520
+ }, J(m.value.has(i) ? y.value.debugShowAll : y.value.debugOnlyNew), 9, SHe)) : $("", !0),
87515
87521
  Q("button", {
87516
87522
  class: "view-toggle copy-btn",
87517
87523
  title: y.value.copy,
87518
87524
  onClick: (t) => _(oe(e.data.messages), "req" + i)
87519
- }, J(g.value === "req" + i ? "✓" : "📋"), 9, SHe),
87525
+ }, J(g.value === "req" + i ? "✓" : "📋"), 9, CHe),
87520
87526
  Q("button", {
87521
87527
  class: "view-toggle",
87522
87528
  onClick: (e) => ae(i)
87523
- }, J(d.value.has(i) ? y.value.debugCardView : y.value.debugRequestBody), 9, CHe)
87524
- ]), d.value.has(i) ? (X(), Z("pre", AHe, [Q("code", null, J(oe(e.data.messages)), 1)])) : (X(!0), Z(oX, { key: 0 }, gY([ne(e, r, m.value.has(i))], (e) => (X(), Z("div", {
87529
+ }, J(d.value.has(i) ? y.value.debugCardView : y.value.debugRequestBody), 9, wHe)
87530
+ ]), d.value.has(i) ? (X(), Z("pre", jHe, [Q("code", null, J(oe(e.data.messages)), 1)])) : (X(!0), Z(oX, { key: 0 }, gY([ne(e, r, m.value.has(i))], (e) => (X(), Z("div", {
87525
87531
  key: e.base,
87526
87532
  class: "msg-list"
87527
87533
  }, [(X(!0), Z(oX, null, gY(e.list, (t, n) => {
@@ -87537,37 +87543,37 @@ var BBe = {
87537
87543
  }, [Q("span", {
87538
87544
  class: "msg-role",
87539
87545
  style: RK({ background: ce(t.role).color })
87540
- }, J(ce(t.role).label), 5), Q("div", THe, [
87541
- t.content ? (X(), Z("span", EHe, J(t.content), 1)) : $("", !0),
87546
+ }, J(ce(t.role).label), 5), Q("div", EHe, [
87547
+ t.content ? (X(), Z("span", DHe, J(t.content), 1)) : $("", !0),
87542
87548
  (X(!0), Z(oX, null, gY(t.tool_calls || [], (e, t) => {
87543
87549
  var n, r, i;
87544
87550
  return X(), Z("div", {
87545
87551
  key: t,
87546
87552
  class: "tc-inline"
87547
- }, [Q("span", DHe, "🔧 " + J(((n = e.function) == null ? void 0 : n.name) || e.name), 1), Q("code", OHe, J((r = (i = e.function) == null ? void 0 : i.arguments) == null ? e.args : r), 1)]);
87553
+ }, [Q("span", OHe, "🔧 " + J(((n = e.function) == null ? void 0 : n.name) || e.name), 1), Q("code", kHe, J((r = (i = e.function) == null ? void 0 : i.arguments) == null ? e.args : r), 1)]);
87548
87554
  }), 128)),
87549
- t.tool_call_id ? (X(), Z("span", kHe, "↳ tool_call_id: " + J(t.tool_call_id), 1)) : $("", !0)
87550
- ])], 10, wHe);
87555
+ t.tool_call_id ? (X(), Z("span", AHe, "↳ tool_call_id: " + J(t.tool_call_id), 1)) : $("", !0)
87556
+ ])], 10, THe);
87551
87557
  }), 128))]))), 128))], 64)) : e.type === "llm_response" ? (X(), Z(oX, { key: 2 }, [
87552
- Q("div", jHe, [Q("span", MHe, J(y.value.debugRoundPrefix) + J(e.data.round) + J(y.value.debugRoundSuffix), 1), (c = e.data.toolCalls) != null && c.length ? (X(), Z("span", NHe, "🔧 " + J(e.data.toolCalls.length) + J(y.value.debugToolCallsSuffix), 1)) : $("", !0)]),
87553
- e.data.content ? (X(), Z("div", PHe, J(e.data.content), 1)) : $("", !0),
87554
- (l = e.data.toolCalls) != null && l.length ? (X(), Z("div", FHe, [(X(!0), Z(oX, null, gY(e.data.toolCalls, (e, t) => (X(), Z("div", {
87558
+ Q("div", MHe, [Q("span", NHe, J(y.value.debugRoundPrefix) + J(e.data.round) + J(y.value.debugRoundSuffix), 1), (c = e.data.toolCalls) != null && c.length ? (X(), Z("span", PHe, "🔧 " + J(e.data.toolCalls.length) + J(y.value.debugToolCallsSuffix), 1)) : $("", !0)]),
87559
+ e.data.content ? (X(), Z("div", FHe, J(e.data.content), 1)) : $("", !0),
87560
+ (l = e.data.toolCalls) != null && l.length ? (X(), Z("div", IHe, [(X(!0), Z(oX, null, gY(e.data.toolCalls, (e, t) => (X(), Z("div", {
87555
87561
  key: t,
87556
87562
  class: "tc-card"
87557
- }, [Q("div", IHe, "🔧 " + J(e.name), 1), Q("pre", LHe, J(oe(e.args)), 1)]))), 128))])) : $("", !0),
87558
- e.data.usage ? (X(), Z("div", RHe, [
87559
- Q("span", zHe, "prompt: " + J((u = e.data.usage.prompt_tokens) == null ? "-" : u), 1),
87560
- Q("span", BHe, "completion: " + J((v = e.data.usage.completion_tokens) == null ? "-" : v), 1),
87561
- Q("span", VHe, "total: " + J((x = e.data.usage.total_tokens) == null ? "-" : x), 1),
87562
- e.data.usage.reasoning_tokens ? (X(), Z("span", HHe, "reasoning: " + J(e.data.usage.reasoning_tokens) + "(" + J(Math.round(e.data.usage.reasoning_tokens / Math.max(1, (S = e.data.usage.completion_tokens) == null ? 0 : S) * 100)) + "%)", 1)) : $("", !0)
87563
+ }, [Q("div", LHe, "🔧 " + J(e.name), 1), Q("pre", RHe, J(oe(e.args)), 1)]))), 128))])) : $("", !0),
87564
+ e.data.usage ? (X(), Z("div", zHe, [
87565
+ Q("span", BHe, "prompt: " + J((u = e.data.usage.prompt_tokens) == null ? "-" : u), 1),
87566
+ Q("span", VHe, "completion: " + J((v = e.data.usage.completion_tokens) == null ? "-" : v), 1),
87567
+ Q("span", HHe, "total: " + J((x = e.data.usage.total_tokens) == null ? "-" : x), 1),
87568
+ e.data.usage.reasoning_tokens ? (X(), Z("span", UHe, "reasoning: " + J(e.data.usage.reasoning_tokens) + "(" + J(Math.round(e.data.usage.reasoning_tokens / Math.max(1, (S = e.data.usage.completion_tokens) == null ? 0 : S) * 100)) + "%)", 1)) : $("", !0)
87563
87569
  ])) : $("", !0)
87564
87570
  ], 64)) : e.type === "tool_call" || e.type === "tool_result" ? (X(), Z(oX, { key: 3 }, [t ? (X(), Z("div", {
87565
87571
  key: 0,
87566
87572
  class: zK(["tc-card inline paired", { error: e.data.status === "error" }])
87567
87573
  }, [
87568
- Q("div", UHe, [
87574
+ Q("div", WHe, [
87569
87575
  SX(J(e.data.status === "error" ? "❌" : "✅") + " " + J(e.data.name) + " ", 1),
87570
- e.data.durationMs == null ? $("", !0) : (X(), Z("span", WHe, J(ye(e.data.durationMs)), 1)),
87576
+ e.data.durationMs == null ? $("", !0) : (X(), Z("span", GHe, J(ye(e.data.durationMs)), 1)),
87571
87577
  Q("button", {
87572
87578
  class: "view-toggle copy-btn",
87573
87579
  title: y.value.copy,
@@ -87575,84 +87581,84 @@ var BBe = {
87575
87581
  var n;
87576
87582
  return _(String((n = e.data.result) == null ? "" : n), "res" + i);
87577
87583
  }
87578
- }, J(g.value === "res" + i ? "✓" : "📋"), 9, GHe)
87584
+ }, J(g.value === "res" + i ? "✓" : "📋"), 9, KHe)
87579
87585
  ]),
87580
- Q("pre", KHe, J(oe(t.data.args)), 1),
87581
- Q("div", qHe, "↓ " + J(y.value.resultLabel), 1),
87582
- Q("pre", JHe, J(e.data.result), 1)
87583
- ], 2)) : (X(), Z("div", YHe, [Q("div", XHe, [SX(J(e.type === "tool_call" ? "🔧" : "✅") + " " + J(e.data.name) + " ", 1), e.type === "tool_call" ? (X(), Z("span", ZHe, J(y.value.statusRunning) + "…", 1)) : $("", !0)]), Q("pre", QHe, J(e.type === "tool_call" ? oe(e.data.args) : e.data.result), 1)]))], 64)) : e.type === "error" ? (X(), Z("div", $He, J(e.data.tool ? `[${e.data.tool}] ` : "") + J(e.data.error), 1)) : $("", !0)]),
87584
- Q("div", eUe, [Q("button", {
87586
+ Q("pre", qHe, J(oe(t.data.args)), 1),
87587
+ Q("div", JHe, "↓ " + J(y.value.resultLabel), 1),
87588
+ Q("pre", YHe, J(e.data.result), 1)
87589
+ ], 2)) : (X(), Z("div", XHe, [Q("div", ZHe, [SX(J(e.type === "tool_call" ? "🔧" : "✅") + " " + J(e.data.name) + " ", 1), e.type === "tool_call" ? (X(), Z("span", QHe, J(y.value.statusRunning) + "…", 1)) : $("", !0)]), Q("pre", $He, J(e.type === "tool_call" ? oe(e.data.args) : e.data.result), 1)]))], 64)) : e.type === "error" ? (X(), Z("div", eUe, J(e.data.tool ? `[${e.data.tool}] ` : "") + J(e.data.error), 1)) : $("", !0)]),
87590
+ Q("div", tUe, [Q("button", {
87585
87591
  class: "raw-toggle",
87586
87592
  onClick: (e) => ie(i)
87587
- }, J(a.value.has(i) ? y.value.debugCollapseRawJson : y.value.debugViewRawJson), 9, tUe), Q("button", {
87593
+ }, J(a.value.has(i) ? y.value.debugCollapseRawJson : y.value.debugViewRawJson), 9, nUe), Q("button", {
87588
87594
  class: "raw-toggle",
87589
87595
  onClick: (t) => Y(R7)(oe(e.data))
87590
- }, J(y.value.copy), 9, nUe)]),
87591
- a.value.has(i) ? (X(), Z("pre", rUe, [Q("code", null, J(oe(e.data)), 1)])) : $("", !0)
87596
+ }, J(y.value.copy), 9, rUe)]),
87597
+ a.value.has(i) ? (X(), Z("pre", iUe, [Q("code", null, J(oe(e.data)), 1)])) : $("", !0)
87592
87598
  ]);
87593
- }), 128))], 512), [[lZ, te(e.key)]])]))), 128))], 64)) : ue.value === "info" ? (X(), Z("div", iUe, [I.value ? (X(), Z(oX, { key: 1 }, [
87594
- Q("div", oUe, [
87595
- Q("div", sUe, J(y.value.debugInfoBasic), 1),
87596
- Q("div", cUe, [
87597
- Q("div", lUe, [n[6] || (n[6] = Q("span", { class: "k" }, "ID", -1)), Q("span", uUe, J(I.value.id), 1)]),
87598
- Q("div", dUe, [Q("span", fUe, J(y.value.debugModel), 1), Q("span", pUe, J(I.value.model || "-"), 1)]),
87599
- Q("div", mUe, [Q("span", hUe, J(y.value.debugToolCount), 1), Q("span", gUe, J(I.value.tools.length), 1)]),
87600
- Q("div", _Ue, [Q("span", vUe, J(y.value.debugMiddleware), 1), Q("span", yUe, J(I.value.middleware.length), 1)])
87599
+ }), 128))], 512), [[lZ, te(e.key)]])]))), 128))], 64)) : ue.value === "info" ? (X(), Z("div", aUe, [I.value ? (X(), Z(oX, { key: 1 }, [
87600
+ Q("div", sUe, [
87601
+ Q("div", cUe, J(y.value.debugInfoBasic), 1),
87602
+ Q("div", lUe, [
87603
+ Q("div", uUe, [n[6] || (n[6] = Q("span", { class: "k" }, "ID", -1)), Q("span", dUe, J(I.value.id), 1)]),
87604
+ Q("div", fUe, [Q("span", pUe, J(y.value.debugModel), 1), Q("span", mUe, J(I.value.model || "-"), 1)]),
87605
+ Q("div", hUe, [Q("span", gUe, J(y.value.debugToolCount), 1), Q("span", _Ue, J(I.value.tools.length), 1)]),
87606
+ Q("div", vUe, [Q("span", yUe, J(y.value.debugMiddleware), 1), Q("span", bUe, J(I.value.middleware.length), 1)])
87601
87607
  ]),
87602
- Q("div", bUe, [Q("span", xUe, J(y.value.debugMiddlewareStack), 1), Q("span", SUe, J(I.value.middleware.join(" → ") || "-"), 1)])
87608
+ Q("div", xUe, [Q("span", SUe, J(y.value.debugMiddlewareStack), 1), Q("span", CUe, J(I.value.middleware.join(" → ") || "-"), 1)])
87603
87609
  ]),
87604
- Q("div", CUe, [Q("div", wUe, "🔧 " + J(y.value.debugToolsLabel) + " (" + J(I.value.tools.length) + ")", 1), (X(!0), Z(oX, null, gY(I.value.tools, (e) => (X(), Z("div", {
87610
+ Q("div", wUe, [Q("div", TUe, "🔧 " + J(y.value.debugToolsLabel) + " (" + J(I.value.tools.length) + ")", 1), (X(!0), Z(oX, null, gY(I.value.tools, (e) => (X(), Z("div", {
87605
87611
  key: e.name,
87606
87612
  class: "info-item"
87607
- }, [Q("div", TUe, [SX(J(e.name), 1), e.source ? (X(), Z("span", {
87613
+ }, [Q("div", EUe, [SX(J(e.name), 1), e.source ? (X(), Z("span", {
87608
87614
  key: 0,
87609
87615
  class: zK(["src-tag", _e(e.source)])
87610
- }, J(e.source), 3)) : $("", !0)]), Q("div", EUe, J(e.description), 1)]))), 128))]),
87611
- I.value.skills.length ? (X(), Z("div", DUe, [Q("div", OUe, [SX("📘 " + J(y.value.debugSkillsTitle) + " (" + J(I.value.skills.length) + ")", 1), Q("span", kUe, J(y.value.debugSkillsHint), 1)]), (X(!0), Z(oX, null, gY(I.value.skills, (e) => (X(), Z("div", {
87616
+ }, J(e.source), 3)) : $("", !0)]), Q("div", DUe, J(e.description), 1)]))), 128))]),
87617
+ I.value.skills.length ? (X(), Z("div", OUe, [Q("div", kUe, [SX("📘 " + J(y.value.debugSkillsTitle) + " (" + J(I.value.skills.length) + ")", 1), Q("span", AUe, J(y.value.debugSkillsHint), 1)]), (X(!0), Z(oX, null, gY(I.value.skills, (e) => (X(), Z("div", {
87612
87618
  key: e.name,
87613
87619
  class: "info-item"
87614
87620
  }, [
87615
87621
  Q("div", {
87616
87622
  class: "info-name skill-toggle",
87617
87623
  onClick: (t) => fe(e.name)
87618
- }, [Q("span", { class: zK(["skill-arrow", { open: !!de.value[e.name] }]) }, "▶", 2), SX(" " + J(e.name), 1)], 8, AUe),
87619
- Q("div", jUe, J(e.description), 1),
87620
- de.value[e.name] ? (X(), Z("div", MUe, [de.value[e.name].loading ? (X(), Z("div", NUe, J(y.value.debugLoading), 1)) : de.value[e.name].error ? (X(), Z("div", PUe, J(de.value[e.name].error), 1)) : de.value[e.name].content ? (X(), Z("pre", FUe, J(de.value[e.name].content), 1)) : $("", !0)])) : $("", !0)
87624
+ }, [Q("span", { class: zK(["skill-arrow", { open: !!de.value[e.name] }]) }, "▶", 2), SX(" " + J(e.name), 1)], 8, jUe),
87625
+ Q("div", MUe, J(e.description), 1),
87626
+ de.value[e.name] ? (X(), Z("div", NUe, [de.value[e.name].loading ? (X(), Z("div", PUe, J(y.value.debugLoading), 1)) : de.value[e.name].error ? (X(), Z("div", FUe, J(de.value[e.name].error), 1)) : de.value[e.name].content ? (X(), Z("pre", IUe, J(de.value[e.name].content), 1)) : $("", !0)])) : $("", !0)
87621
87627
  ]))), 128))])) : $("", !0),
87622
- I.value.data ? (X(), Z("div", IUe, [Q("div", LUe, "📊 " + J(y.value.debugDataTitle), 1), Q("div", RUe, [Q("div", zUe, J(I.value.data.description || y.value.debugDataFallback), 1), Q("div", BUe, J(y.value.debugSchemaPrefix) + J(I.value.data.schema ? y.value.debugSchemaDeclared : y.value.debugSchemaMissing), 1)])])) : $("", !0),
87623
- Q("div", VUe, [Q("div", HUe, "🧬 " + J(y.value.debugSubagentTitle), 1), Q("div", UUe, [
87624
- Q("div", WUe, [Q("span", GUe, J(y.value.debugEnabled), 1), Q("span", KUe, J(I.value.subagent.enabled ? y.value.debugYes : y.value.debugNo), 1)]),
87625
- Q("div", qUe, [Q("span", JUe, J(y.value.debugMaxDepth), 1), Q("span", YUe, J(I.value.subagent.maxDepth), 1)]),
87626
- Q("div", XUe, [Q("span", ZUe, J(y.value.debugMaxParallel), 1), Q("span", QUe, J(I.value.subagent.maxParallel), 1)]),
87627
- Q("div", $Ue, [Q("span", eWe, J(y.value.debugExtraTools), 1), Q("span", tWe, J(I.value.subagent.allowedTools.length ? I.value.subagent.allowedTools.join(", ") : y.value.debugDefaultReadonly), 1)])
87628
+ I.value.data ? (X(), Z("div", LUe, [Q("div", RUe, "📊 " + J(y.value.debugDataTitle), 1), Q("div", zUe, [Q("div", BUe, J(I.value.data.description || y.value.debugDataFallback), 1), Q("div", VUe, J(y.value.debugSchemaPrefix) + J(I.value.data.schema ? y.value.debugSchemaDeclared : y.value.debugSchemaMissing), 1)])])) : $("", !0),
87629
+ Q("div", HUe, [Q("div", UUe, "🧬 " + J(y.value.debugSubagentTitle), 1), Q("div", WUe, [
87630
+ Q("div", GUe, [Q("span", KUe, J(y.value.debugEnabled), 1), Q("span", qUe, J(I.value.subagent.enabled ? y.value.debugYes : y.value.debugNo), 1)]),
87631
+ Q("div", JUe, [Q("span", YUe, J(y.value.debugMaxDepth), 1), Q("span", XUe, J(I.value.subagent.maxDepth), 1)]),
87632
+ Q("div", ZUe, [Q("span", QUe, J(y.value.debugMaxParallel), 1), Q("span", $Ue, J(I.value.subagent.maxParallel), 1)]),
87633
+ Q("div", eWe, [Q("span", tWe, J(y.value.debugExtraTools), 1), Q("span", nWe, J(I.value.subagent.allowedTools.length ? I.value.subagent.allowedTools.join(", ") : y.value.debugDefaultReadonly), 1)])
87628
87634
  ])]),
87629
- !((t = I.value.mcp) == null || (t = t.servers) == null) && t.length ? (X(), Z("div", nWe, [Q("div", rWe, "🔌 MCP (" + J(I.value.mcp.servers.length) + ")", 1), (X(!0), Z(oX, null, gY(I.value.mcp.servers, (e) => (X(), Z("div", {
87635
+ !((t = I.value.mcp) == null || (t = t.servers) == null) && t.length ? (X(), Z("div", rWe, [Q("div", iWe, "🔌 MCP (" + J(I.value.mcp.servers.length) + ")", 1), (X(!0), Z(oX, null, gY(I.value.mcp.servers, (e) => (X(), Z("div", {
87630
87636
  key: e.name,
87631
87637
  class: "info-item"
87632
- }, [Q("div", iWe, [SX(J(e.name) + " ", 1), Q("span", aWe, J(e.toolCount) + J(y.value.debugToolCountSuffix), 1)]), Q("div", oWe, J(e.url), 1)]))), 128))])) : $("", !0),
87633
- I.value.verify ? (X(), Z("div", sWe, [Q("div", cWe, "✅ " + J(y.value.debugVerifyTitle), 1), Q("div", lWe, [
87634
- Q("div", uWe, [Q("span", dWe, J(y.value.debugEnabled), 1), Q("span", fWe, J(I.value.verify.enabled ? y.value.debugYes : y.value.debugNo), 1)]),
87635
- Q("div", pWe, [Q("span", mWe, J(y.value.debugMaxAttempts), 1), Q("span", hWe, J(I.value.verify.maxAttempts), 1)]),
87636
- Q("div", gWe, [Q("span", _We, J(y.value.debugAdversarial), 1), Q("span", vWe, J(I.value.verify.adversarial ? y.value.debugOn : y.value.debugOff), 1)]),
87637
- I.value.verify.adversarial ? (X(), Z("div", yWe, [Q("span", bWe, J(y.value.debugAdversarialModel), 1), Q("span", xWe, J(I.value.model || "-") + J(y.value.debugSameAsMain), 1)])) : $("", !0)
87638
+ }, [Q("div", aWe, [SX(J(e.name) + " ", 1), Q("span", oWe, J(e.toolCount) + J(y.value.debugToolCountSuffix), 1)]), Q("div", sWe, J(e.url), 1)]))), 128))])) : $("", !0),
87639
+ I.value.verify ? (X(), Z("div", cWe, [Q("div", lWe, "✅ " + J(y.value.debugVerifyTitle), 1), Q("div", uWe, [
87640
+ Q("div", dWe, [Q("span", fWe, J(y.value.debugEnabled), 1), Q("span", pWe, J(I.value.verify.enabled ? y.value.debugYes : y.value.debugNo), 1)]),
87641
+ Q("div", mWe, [Q("span", hWe, J(y.value.debugMaxAttempts), 1), Q("span", gWe, J(I.value.verify.maxAttempts), 1)]),
87642
+ Q("div", _We, [Q("span", vWe, J(y.value.debugAdversarial), 1), Q("span", yWe, J(I.value.verify.adversarial ? y.value.debugOn : y.value.debugOff), 1)]),
87643
+ I.value.verify.adversarial ? (X(), Z("div", bWe, [Q("span", xWe, J(y.value.debugAdversarialModel), 1), Q("span", SWe, J(I.value.model || "-") + J(y.value.debugSameAsMain), 1)])) : $("", !0)
87638
87644
  ])])) : $("", !0),
87639
- I.value.todos.length ? (X(), Z("div", SWe, [Q("div", CWe, "📋 " + J(y.value.debugTodosTitle) + " (" + J(I.value.todos.length) + ")", 1), (X(!0), Z(oX, null, gY(I.value.todos, (e, t) => (X(), Z("div", {
87645
+ I.value.todos.length ? (X(), Z("div", CWe, [Q("div", wWe, "📋 " + J(y.value.debugTodosTitle) + " (" + J(I.value.todos.length) + ")", 1), (X(!0), Z(oX, null, gY(I.value.todos, (e, t) => (X(), Z("div", {
87640
87646
  key: t,
87641
87647
  class: "info-todo"
87642
87648
  }, [Q("span", {
87643
87649
  class: "todo-tag",
87644
87650
  style: RK({ background: he.value[e.status] && he.value[e.status].color || "#9ca3af" })
87645
87651
  }, J(ge(e.status)), 5), Q("span", null, J(e.content), 1)]))), 128))])) : $("", !0),
87646
- I.value.memory ? (X(), Z("div", wWe, [Q("div", TWe, "📝 " + J(y.value.debugMemoryTitle), 1), Q("pre", EWe, J(I.value.memory), 1)])) : $("", !0),
87647
- I.value.lastCompression ? (X(), Z("div", DWe, [Q("div", OWe, "🗜️ " + J(y.value.debugLastCompTitle), 1), Q("div", kWe, [
87648
- Q("div", AWe, [Q("span", jWe, J(y.value.debugTriggered), 1), Q("span", MWe, J(I.value.lastCompression.triggered ? "✓" : y.value.debugNotTriggered), 1)]),
87649
- Q("div", NWe, [Q("span", PWe, J(y.value.debugRoundsSummarized), 1), Q("span", FWe, J(I.value.lastCompression.roundsSummarized) + " / " + J(I.value.lastCompression.roundsTotal), 1)]),
87650
- Q("div", IWe, [Q("span", LWe, J(y.value.debugCtxRecalled), 1), Q("span", RWe, J(I.value.lastCompression.roundsRecalled) + J(y.value.debugCountSuffix), 1)]),
87651
- Q("div", zWe, [Q("span", BWe, J(y.value.debugMessageCount), 1), Q("span", VWe, J(I.value.lastCompression.originalMessages) + " → " + J(I.value.lastCompression.compressedMessages), 1)]),
87652
- Q("div", HWe, [Q("span", UWe, J(y.value.debugStrategy), 1), Q("span", WWe, J(I.value.lastCompression.strategy), 1)]),
87653
- I.value.lastCompression.decision ? (X(), Z("div", GWe, [Q("span", KWe, J(y.value.debugDecision), 1), Q("span", qWe, "🤖 " + J(Oe(I.value.lastCompression.decision)), 1)])) : $("", !0)
87652
+ I.value.memory ? (X(), Z("div", TWe, [Q("div", EWe, "📝 " + J(y.value.debugMemoryTitle), 1), Q("pre", DWe, J(I.value.memory), 1)])) : $("", !0),
87653
+ I.value.lastCompression ? (X(), Z("div", OWe, [Q("div", kWe, "🗜️ " + J(y.value.debugLastCompTitle), 1), Q("div", AWe, [
87654
+ Q("div", jWe, [Q("span", MWe, J(y.value.debugTriggered), 1), Q("span", NWe, J(I.value.lastCompression.triggered ? "✓" : y.value.debugNotTriggered), 1)]),
87655
+ Q("div", PWe, [Q("span", FWe, J(y.value.debugRoundsSummarized), 1), Q("span", IWe, J(I.value.lastCompression.roundsSummarized) + " / " + J(I.value.lastCompression.roundsTotal), 1)]),
87656
+ Q("div", LWe, [Q("span", RWe, J(y.value.debugCtxRecalled), 1), Q("span", zWe, J(I.value.lastCompression.roundsRecalled) + J(y.value.debugCountSuffix), 1)]),
87657
+ Q("div", BWe, [Q("span", VWe, J(y.value.debugMessageCount), 1), Q("span", HWe, J(I.value.lastCompression.originalMessages) + " → " + J(I.value.lastCompression.compressedMessages), 1)]),
87658
+ Q("div", UWe, [Q("span", WWe, J(y.value.debugStrategy), 1), Q("span", GWe, J(I.value.lastCompression.strategy), 1)]),
87659
+ I.value.lastCompression.decision ? (X(), Z("div", KWe, [Q("span", qWe, J(y.value.debugDecision), 1), Q("span", JWe, "🤖 " + J(Oe(I.value.lastCompression.decision)), 1)])) : $("", !0)
87654
87660
  ])])) : $("", !0)
87655
- ], 64)) : (X(), Z("div", aUe, J(y.value.debugNoInfo), 1))])) : $("", !0)
87661
+ ], 64)) : (X(), Z("div", oUe, J(y.value.debugNoInfo), 1))])) : $("", !0)
87656
87662
  ], 512)], 512)], 512)
87657
87663
  ], 2), Q("div", {
87658
87664
  class: "drawer-mask",
@@ -87662,16 +87668,16 @@ var BBe = {
87662
87668
  _: 1
87663
87669
  })]));
87664
87670
  }
87665
- }), [["__scopeId", "data-v-ffd46605"]]), YWe = { class: "skill-panel" }, XWe = { class: "skill-header" }, ZWe = { class: "skill-title" }, QWe = ["title"], $We = { class: "skill-section" }, eGe = { class: "section-title" }, tGe = ["title"], nGe = { class: "field" }, rGe = { class: "field-label" }, iGe = ["disabled", "placeholder"], aGe = { class: "field" }, oGe = { class: "field-label" }, sGe = ["placeholder"], cGe = { class: "field field-textarea" }, lGe = { class: "field-label" }, uGe = ["placeholder"], dGe = {
87671
+ }), [["__scopeId", "data-v-ffd46605"]]), XWe = { class: "skill-panel" }, ZWe = { class: "skill-header" }, QWe = { class: "skill-title" }, $We = ["title"], eGe = { class: "skill-section" }, tGe = { class: "section-title" }, nGe = ["title"], rGe = { class: "field" }, iGe = { class: "field-label" }, aGe = ["disabled", "placeholder"], oGe = { class: "field" }, sGe = { class: "field-label" }, cGe = ["placeholder"], lGe = { class: "field field-textarea" }, uGe = { class: "field-label" }, dGe = ["placeholder"], fGe = {
87666
87672
  key: 0,
87667
87673
  class: "skill-error"
87668
- }, fGe = { class: "skill-section" }, pGe = { class: "section-title" }, mGe = {
87674
+ }, pGe = { class: "skill-section" }, mGe = { class: "section-title" }, hGe = {
87669
87675
  key: 0,
87670
87676
  class: "empty-hint"
87671
- }, hGe = {
87677
+ }, gGe = {
87672
87678
  key: 1,
87673
87679
  class: "skill-list"
87674
- }, gGe = { class: "skill-actions" }, _Ge = ["title", "onClick"], vGe = ["title", "onClick"], yGe = { class: "skill-hint" }, bGe = /*#__PURE__*/ _9(/* @__PURE__ */ nY({
87680
+ }, _Ge = { class: "skill-actions" }, vGe = ["title", "onClick"], yGe = ["title", "onClick"], bGe = { class: "skill-hint" }, xGe = /*#__PURE__*/ _9(/* @__PURE__ */ nY({
87675
87681
  __name: "SkillPanel",
87676
87682
  props: {
87677
87683
  visible: { type: Boolean },
@@ -87727,55 +87733,55 @@ var BBe = {
87727
87733
  key: 0,
87728
87734
  class: "skill-mask",
87729
87735
  onClick: n[4] || (n[4] = DZ((e) => r("close"), ["self"]))
87730
- }, [Q("div", YWe, [
87731
- Q("div", XWe, [Q("span", ZWe, J(e.messages.skillPanelTitle), 1), Q("button", {
87736
+ }, [Q("div", XWe, [
87737
+ Q("div", ZWe, [Q("span", QWe, J(e.messages.skillPanelTitle), 1), Q("button", {
87732
87738
  class: "skill-close",
87733
87739
  title: e.messages.close,
87734
87740
  onClick: n[0] || (n[0] = (e) => r("close"))
87735
- }, "✕", 8, QWe)]),
87736
- Q("div", $We, [
87737
- Q("div", eGe, [SX(J(u.value ? `${e.messages.skillEditingPrefix}${u.value}` : e.messages.skillCreateNew) + " ", 1), u.value ? (X(), Z("button", {
87741
+ }, "✕", 8, $We)]),
87742
+ Q("div", eGe, [
87743
+ Q("div", tGe, [SX(J(u.value ? `${e.messages.skillEditingPrefix}${u.value}` : e.messages.skillCreateNew) + " ", 1), u.value ? (X(), Z("button", {
87738
87744
  key: 0,
87739
87745
  class: "btn btn-ghost btn-cancel",
87740
87746
  title: e.messages.skillCancelEdit,
87741
87747
  onClick: h
87742
- }, J(e.messages.skillCancelEdit), 9, tGe)) : $("", !0)]),
87743
- Q("label", nGe, [Q("span", rGe, J(e.messages.skillNameLabel), 1), EJ(Q("input", {
87748
+ }, J(e.messages.skillCancelEdit), 9, nGe)) : $("", !0)]),
87749
+ Q("label", rGe, [Q("span", iGe, J(e.messages.skillNameLabel), 1), EJ(Q("input", {
87744
87750
  "onUpdate:modelValue": n[1] || (n[1] = (e) => i.value = e),
87745
87751
  disabled: !!u.value,
87746
87752
  placeholder: e.messages.skillNamePlaceholder,
87747
87753
  class: "field-input"
87748
- }, null, 8, iGe), [[EZ, i.value]])]),
87749
- Q("label", aGe, [Q("span", oGe, J(e.messages.skillDescLabel), 1), EJ(Q("input", {
87754
+ }, null, 8, aGe), [[EZ, i.value]])]),
87755
+ Q("label", oGe, [Q("span", sGe, J(e.messages.skillDescLabel), 1), EJ(Q("input", {
87750
87756
  "onUpdate:modelValue": n[2] || (n[2] = (e) => a.value = e),
87751
87757
  placeholder: e.messages.skillDescPlaceholder,
87752
87758
  class: "field-input"
87753
- }, null, 8, sGe), [[EZ, a.value]])]),
87754
- Q("label", cGe, [Q("span", lGe, J(e.messages.skillContentLabel), 1), EJ(Q("textarea", {
87759
+ }, null, 8, cGe), [[EZ, a.value]])]),
87760
+ Q("label", lGe, [Q("span", uGe, J(e.messages.skillContentLabel), 1), EJ(Q("textarea", {
87755
87761
  "onUpdate:modelValue": n[3] || (n[3] = (e) => o.value = e),
87756
87762
  placeholder: e.messages.skillContentPlaceholder,
87757
87763
  rows: "6",
87758
87764
  class: "field-input"
87759
- }, null, 8, uGe), [[EZ, o.value]])]),
87760
- s.value ? (X(), Z("div", dGe, J(s.value), 1)) : $("", !0),
87765
+ }, null, 8, dGe), [[EZ, o.value]])]),
87766
+ s.value ? (X(), Z("div", fGe, J(s.value), 1)) : $("", !0),
87761
87767
  Q("button", {
87762
87768
  class: "btn btn-primary",
87763
87769
  onClick: f
87764
87770
  }, J(u.value ? e.messages.skillSave : e.messages.skillAdd), 1)
87765
87771
  ]),
87766
- Q("div", fGe, [Q("div", pGe, J(e.messages.skillCreatedTitle) + "(" + J(c.value.length) + ")", 1), c.value.length ? (X(), Z("ul", hGe, [(X(!0), Z(oX, null, gY(c.value, (t) => (X(), Z("li", {
87772
+ Q("div", pGe, [Q("div", mGe, J(e.messages.skillCreatedTitle) + "(" + J(c.value.length) + ")", 1), c.value.length ? (X(), Z("ul", gGe, [(X(!0), Z(oX, null, gY(c.value, (t) => (X(), Z("li", {
87767
87773
  key: t,
87768
87774
  class: "skill-item"
87769
- }, [Q("span", { class: zK(["skill-name", { active: u.value === t }]) }, J(t), 3), Q("span", gGe, [Q("button", {
87775
+ }, [Q("span", { class: zK(["skill-name", { active: u.value === t }]) }, J(t), 3), Q("span", _Ge, [Q("button", {
87770
87776
  class: "btn btn-ghost btn-edit",
87771
87777
  title: e.messages.skillEditTitle,
87772
87778
  onClick: (e) => m(t)
87773
- }, J(e.messages.skillEditBtn), 9, _Ge), Q("button", {
87779
+ }, J(e.messages.skillEditBtn), 9, vGe), Q("button", {
87774
87780
  class: "btn btn-ghost btn-del",
87775
87781
  title: e.messages.skillDeleteTitle,
87776
87782
  onClick: (e) => p(t)
87777
- }, J(e.messages.skillDeleteBtn), 9, vGe)])]))), 128))])) : (X(), Z("div", mGe, J(e.messages.skillEmpty), 1))]),
87778
- Q("div", yGe, [
87783
+ }, J(e.messages.skillDeleteBtn), 9, yGe)])]))), 128))])) : (X(), Z("div", hGe, J(e.messages.skillEmpty), 1))]),
87784
+ Q("div", bGe, [
87779
87785
  SX(" 💡 " + J(e.messages.skillHintA) + " ", 1),
87780
87786
  n[5] || (n[5] = Q("code", null, "load_skill(name)", -1)),
87781
87787
  SX(" " + J(e.messages.skillHintB) + " ", 1),
@@ -87786,7 +87792,7 @@ var BBe = {
87786
87792
  _: 1
87787
87793
  })]));
87788
87794
  }
87789
- }), [["__scopeId", "data-v-fcd21121"]]), xGe = /*#__PURE__*/ _9(/* @__PURE__ */ nY({
87795
+ }), [["__scopeId", "data-v-fcd21121"]]), SGe = /*#__PURE__*/ _9(/* @__PURE__ */ nY({
87790
87796
  __name: "ChatDialog",
87791
87797
  props: {
87792
87798
  fetchResponse: {},
@@ -87977,7 +87983,7 @@ var BBe = {
87977
87983
  key: 0,
87978
87984
  name: "cs-slide"
87979
87985
  }, {
87980
- default: TJ(() => [_Y(t.$slots, "body", { chat: Y(o) }, () => [EJ(bX(Oze, {
87986
+ default: TJ(() => [_Y(t.$slots, "body", { chat: Y(o) }, () => [EJ(bX(kze, {
87981
87987
  "show-avatar": e.showAvatar,
87982
87988
  "show-typing": e.showTyping
87983
87989
  }, null, 8, ["show-avatar", "show-typing"]), [[lZ, Y(s)]])], !0)]),
@@ -87986,15 +87992,15 @@ var BBe = {
87986
87992
  _("queued") ? _Y(t.$slots, "queued", {
87987
87993
  key: 1,
87988
87994
  chat: Y(o)
87989
- }, () => [bX(Rze)], !0) : $("", !0),
87995
+ }, () => [bX(zze)], !0) : $("", !0),
87990
87996
  _("approval") ? _Y(t.$slots, "approval", {
87991
87997
  key: 2,
87992
87998
  chat: Y(o)
87993
- }, () => [bX($ze)], !0) : $("", !0),
87999
+ }, () => [bX(eBe)], !0) : $("", !0),
87994
88000
  _("conflict") ? _Y(t.$slots, "conflict", {
87995
88001
  key: 3,
87996
88002
  chat: Y(o)
87997
- }, () => [bX(gBe, {
88003
+ }, () => [bX(_Be, {
87998
88004
  "pending-conflict": e.pendingConflict,
87999
88005
  "on-resolve": e.onResolveConflict,
88000
88006
  icons: Y(o).icons,
@@ -88010,7 +88016,7 @@ var BBe = {
88010
88016
  key: 2,
88011
88017
  name: "cs-slide"
88012
88018
  }, {
88013
- default: TJ(() => [_Y(t.$slots, "footer", { chat: Y(o) }, () => [bX(zBe, {
88019
+ default: TJ(() => [_Y(t.$slots, "footer", { chat: Y(o) }, () => [bX(BBe, {
88014
88020
  placeholder: e.placeholder || Y(o).messages.inputPlaceholder,
88015
88021
  "input-rows": e.inputRows
88016
88022
  }, null, 8, ["placeholder", "input-rows"])], !0)]),
@@ -88019,7 +88025,7 @@ var BBe = {
88019
88025
  _("debug") ? _Y(t.$slots, "debug", {
88020
88026
  key: 3,
88021
88027
  chat: Y(o)
88022
- }, () => [bX(JWe, {
88028
+ }, () => [bX(YWe, {
88023
88029
  visible: Y(c),
88024
88030
  "onUpdate:visible": n[4] || (n[4] = (e) => /* @__PURE__ */ Yq(c) ? c.value = e : null),
88025
88031
  logs: e.debugLogs,
@@ -88048,7 +88054,7 @@ var BBe = {
88048
88054
  _("skill") ? _Y(t.$slots, "skill", {
88049
88055
  key: 4,
88050
88056
  chat: Y(o)
88051
- }, () => [bX(bGe, {
88057
+ }, () => [bX(xGe, {
88052
88058
  visible: Y(l),
88053
88059
  "on-add-skill": e.onAddSkill,
88054
88060
  "on-remove-skill": e.onRemoveSkill,
@@ -88071,12 +88077,12 @@ var BBe = {
88071
88077
  //#endregion
88072
88078
  //#region src/core/sdk/mountChatDialog.ts
88073
88079
  M();
88074
- function SGe(e) {
88080
+ function CGe(e) {
88075
88081
  let { core: t, dialogCfg: n } = e, r = null, i = e.el, a = t.agent.debugLogs;
88076
88082
  return r = ASe(/* @__PURE__ */ nY({ setup() {
88077
88083
  return () => {
88078
88084
  var r;
88079
- return VX(xGe, j({
88085
+ return VX(SGe, j({
88080
88086
  fetchStream: e.streaming ? t.stream : void 0,
88081
88087
  fetchResponse: e.streaming ? void 0 : (e, n) => {
88082
88088
  if (n) {
@@ -88203,7 +88209,7 @@ function SGe(e) {
88203
88209
  };
88204
88210
  }
88205
88211
  _F(), Xf(), M();
88206
- function CGe(e, t, n, r, i) {
88212
+ function wGe(e, t, n, r, i) {
88207
88213
  let a = [];
88208
88214
  e && a.push("vfs_grep + vfs_read(搜预注入文档)"), t && a.push(`${r}(语义检索)`), n && a.push(`${i}(按 source 加载)`), a.push("fetch_document(公网 URL)");
88209
88215
  let o = [];
@@ -88218,7 +88224,7 @@ function CGe(e, t, n, r, i) {
88218
88224
 
88219
88225
  你是只读检索角色,不要尝试修改任何数据。不要尝试上面未列出的工具。`;
88220
88226
  }
88221
- function wGe(e, t, n, r, i) {
88227
+ function TGe(e, t, n, r, i) {
88222
88228
  let a = [], o = [];
88223
88229
  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)
88224
88230
 
@@ -88235,12 +88241,12 @@ ${a.join("\n")}
88235
88241
  ## 何时用何源
88236
88242
  ${o.join("\n")}`;
88237
88243
  }
88238
- var TGe = {
88244
+ var EGe = {
88239
88245
  name: "rag-search",
88240
88246
  description: "多源知识检索策略:vfs 预注入文档 → 语义检索 → 指定文档加载 → 公网;综合结构化结论 + 溯源",
88241
- getContent: () => wGe(!0, !0, !0, "search_docs", "load_doc")
88247
+ getContent: () => TGe(!0, !0, !0, "search_docs", "load_doc")
88242
88248
  };
88243
- function EGe(e, t, n) {
88249
+ function DGe(e, t, n) {
88244
88250
  let r = fF(async ({ query: e, topK: r }) => {
88245
88251
  try {
88246
88252
  let i = await t(e, { topK: r == null ? n : r });
@@ -88258,7 +88264,7 @@ function EGe(e, t, n) {
88258
88264
  });
88259
88265
  return BZ([r]), r;
88260
88266
  }
88261
- function DGe(e, t) {
88267
+ function OGe(e, t) {
88262
88268
  let n = fF(async ({ source: e }) => {
88263
88269
  try {
88264
88270
  let n = await t(e), r = Array.isArray(n) ? n : [n];
@@ -88273,19 +88279,19 @@ function DGe(e, t) {
88273
88279
  });
88274
88280
  return BZ([n]), n;
88275
88281
  }
88276
- function OGe(e) {
88282
+ function kGe(e) {
88277
88283
  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;
88278
88284
  if (!t && !n && r === !1) throw Error("[page-agent-sdk][createRagSubagent] 至少配一种知识源:retriever / loader / useVfs(true)");
88279
88285
  let p = [];
88280
- t && p.push(EGe(s, t, o)), n && p.push(DGe(c, n)), f && p.push(...f);
88286
+ t && p.push(DGe(s, t, o)), n && p.push(OGe(c, n)), f && p.push(...f);
88281
88287
  let m = r ? [
88282
88288
  "vfs_grep",
88283
88289
  "vfs_read",
88284
88290
  "vfs_json_read"
88285
- ] : void 0, h = CGe(r, !!t, !!n, s, c), g = {
88291
+ ] : void 0, h = wGe(r, !!t, !!n, s, c), g = {
88286
88292
  name: "rag-search",
88287
- description: TGe.description,
88288
- getContent: () => wGe(r, !!t, !!n, s, c)
88293
+ description: EGe.description,
88294
+ getContent: () => TGe(r, !!t, !!n, s, c)
88289
88295
  };
88290
88296
  return j({
88291
88297
  id: i,
@@ -88299,20 +88305,20 @@ function OGe(e) {
88299
88305
  }
88300
88306
  //#endregion
88301
88307
  //#region src/core/components/CodePreview.vue?vue&type=script&setup=true&lang.ts
88302
- var kGe = { class: "code-preview-modal" }, AGe = { class: "preview-header" }, jGe = { class: "preview-title" }, MGe = { class: "preview-tabs" }, NGe = ["disabled"], PGe = { class: "preview-actions" }, FGe = ["title"], IGe = {
88308
+ var AGe = { class: "code-preview-modal" }, jGe = { class: "preview-header" }, MGe = { class: "preview-title" }, NGe = { class: "preview-tabs" }, PGe = ["disabled"], FGe = { class: "preview-actions" }, IGe = ["title"], LGe = {
88303
88309
  key: 0,
88304
88310
  viewBox: "0 0 16 16",
88305
88311
  fill: "none",
88306
88312
  "aria-hidden": "true"
88307
- }, LGe = {
88313
+ }, RGe = {
88308
88314
  key: 1,
88309
88315
  viewBox: "0 0 16 16",
88310
88316
  fill: "none",
88311
88317
  "aria-hidden": "true"
88312
- }, RGe = ["title"], zGe = ["title"], BGe = { class: "preview-body" }, VGe = ["srcdoc"], HGe = {
88318
+ }, zGe = ["title"], BGe = ["title"], VGe = { class: "preview-body" }, HGe = ["srcdoc"], UGe = {
88313
88319
  key: 1,
88314
88320
  class: "preview-source"
88315
- }, UGe = /*#__PURE__*/ _9(/* @__PURE__ */ nY({
88321
+ }, WGe = /*#__PURE__*/ _9(/* @__PURE__ */ nY({
88316
88322
  __name: "CodePreview",
88317
88323
  props: {
88318
88324
  code: {},
@@ -88379,28 +88385,28 @@ app.mount('#app');
88379
88385
  return (t, n) => (X(), Z("div", {
88380
88386
  class: "code-preview-overlay",
88381
88387
  onClick: n[3] || (n[3] = DZ((e) => r("close"), ["self"]))
88382
- }, [Q("div", kGe, [Q("div", AGe, [
88383
- Q("span", jGe, J(e.messages.codePreviewTitlePrefix) + J(e.lang), 1),
88384
- Q("div", MGe, [Q("button", {
88388
+ }, [Q("div", AGe, [Q("div", jGe, [
88389
+ Q("span", MGe, J(e.messages.codePreviewTitlePrefix) + J(e.lang), 1),
88390
+ Q("div", NGe, [Q("button", {
88385
88391
  class: zK({ active: a.value === "preview" }),
88386
88392
  disabled: !s.value,
88387
88393
  onClick: n[0] || (n[0] = (e) => a.value = "preview")
88388
- }, J(e.messages.codePreviewTab), 11, NGe), Q("button", {
88394
+ }, J(e.messages.codePreviewTab), 11, PGe), Q("button", {
88389
88395
  class: zK({ active: a.value === "source" }),
88390
88396
  onClick: n[1] || (n[1] = (e) => a.value = "source")
88391
88397
  }, J(e.messages.codeSourceTab), 3)]),
88392
- Q("div", PGe, [
88398
+ Q("div", FGe, [
88393
88399
  Q("button", {
88394
88400
  class: zK(["icon-btn", { done: o.value }]),
88395
88401
  title: o.value ? e.messages.copied : e.messages.codeCopyTitle,
88396
88402
  onClick: u
88397
- }, [o.value ? (X(), Z("svg", IGe, [...n[4] || (n[4] = [Q("path", {
88403
+ }, [o.value ? (X(), Z("svg", LGe, [...n[4] || (n[4] = [Q("path", {
88398
88404
  d: "M3 8.5l3 3 7-7",
88399
88405
  stroke: "currentColor",
88400
88406
  "stroke-width": "1.6",
88401
88407
  "stroke-linecap": "round",
88402
88408
  "stroke-linejoin": "round"
88403
- }, null, -1)])])) : (X(), Z("svg", LGe, [...n[5] || (n[5] = [Q("rect", {
88409
+ }, null, -1)])])) : (X(), Z("svg", RGe, [...n[5] || (n[5] = [Q("rect", {
88404
88410
  x: "5.5",
88405
88411
  y: "5.5",
88406
88412
  width: "8",
@@ -88412,7 +88418,7 @@ app.mount('#app');
88412
88418
  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",
88413
88419
  stroke: "currentColor",
88414
88420
  "stroke-width": "1.3"
88415
- }, null, -1)])]))], 10, FGe),
88421
+ }, null, -1)])]))], 10, IGe),
88416
88422
  Q("button", {
88417
88423
  class: "icon-btn",
88418
88424
  title: e.messages.codeOpenTitle,
@@ -88432,7 +88438,7 @@ app.mount('#app');
88432
88438
  "stroke-width": "1.3",
88433
88439
  "stroke-linecap": "round",
88434
88440
  "stroke-linejoin": "round"
88435
- })], -1)])], 8, RGe),
88441
+ })], -1)])], 8, zGe),
88436
88442
  Q("button", {
88437
88443
  class: "icon-btn",
88438
88444
  title: e.messages.close,
@@ -88446,23 +88452,23 @@ app.mount('#app');
88446
88452
  stroke: "currentColor",
88447
88453
  "stroke-width": "1.4",
88448
88454
  "stroke-linecap": "round"
88449
- })], -1)])], 8, zGe)
88455
+ })], -1)])], 8, BGe)
88450
88456
  ])
88451
- ]), Q("div", BGe, [a.value === "preview" && s.value ? (X(), Z("iframe", {
88457
+ ]), Q("div", VGe, [a.value === "preview" && s.value ? (X(), Z("iframe", {
88452
88458
  key: 0,
88453
88459
  ref_key: "iframeRef",
88454
88460
  ref: i,
88455
88461
  class: "preview-iframe",
88456
88462
  sandbox: "allow-scripts allow-modals allow-popups allow-forms",
88457
88463
  srcdoc: c.value
88458
- }, null, 8, VGe)) : (X(), Z("pre", HGe, [Q("code", null, J(e.code), 1)]))])])]));
88464
+ }, null, 8, HGe)) : (X(), Z("pre", UGe, [Q("code", null, J(e.code), 1)]))])])]));
88459
88465
  }
88460
88466
  }), [["__scopeId", "data-v-27eac25e"]]);
88461
88467
  //#endregion
88462
88468
  //#region src/core/index.ts
88463
88469
  Xf();
88464
- function WGe(e) {
88465
- return oMe(e, SGe);
88470
+ function GGe(e) {
88471
+ return oMe(e, CGe);
88466
88472
  }
88467
88473
  //#endregion
88468
- export { $ze as ApprovalBar, O8 as CAPABILITIES, pje as CONTEXT_PRESETS, xGe as ChatDialog, aIe as ChatHeader, zBe as ChatInput, UGe as CodePreview, IAe as CompressDecisionSchema, gBe as ConflictBar, Cje as DEFAULT_COMPUTED_STYLES, z7 as DEFAULT_DIALOG_ICONS, G$ as DEFAULT_PROMPT_SOFT_CAP, pke as DEFAULT_SYSTEM_PROMPT, mke as DEFAULT_SYSTEM_PROMPT_EN, JWe as DebugDrawer, gIe as FocusBar, RRe as HLJS_BLOCK_MAX_CHARS, Gke as HTML_VOID_TAGS, c1 as HUMAN_CONFIRM_TOOL_NAME, v9 as IconGlyph, FZ as ImageInputError, SPe as MESSAGES_EN_US, B7 as MESSAGES_ZH_CN, yF as MIN_CONTEXT_WINDOW, ZZ as MODEL_UNAVAILABLE_GUIDANCE, YRe as MessageContent, Oze as MessageList, vze as MessageRow, Rze as QueuedBar, nTe as SOFT_CAP_MIN_WINDOW, z$ as STOP_WORDS, bGe as SkillPanel, i$ as UNSAFE_KEYS, Lje as actionsToInspectInfo, Ije as actionsToTools, PSe as agentError, x1 as analyzeContext, v$ as applyPatchToClone, Bwe as applyPatchToLive, X6 as applyPatchesToBind, zQ as arrayMinLength, PZ as asAgentError, yAe as buildCollectorJs, F8 as buildCssPath, P6 as buildDataPrompt, f8 as buildDiagnosticsReport, h8 as buildHtmlFragmentSkill, bAe as buildSandboxSrcdoc, hke as buildSystemPrompt, V7 as chatContextKey, Y6 as commitSetToBind, TAe as composeStructureThenRender, LZ as compressImage, fke as connectMcp, QG as constructLlmFromConfig, ZG as constructOpenLlmSync, R7 as copyText, jQ as createAgent, s1 as createApprovalMiddleware, TPe as createChatContext, WGe as createChatSdk, m1 as createCheckpointManager, h1 as createCheckpointMiddleware, KAe as createConflictManager, S1 as createContextInspectorMiddleware, t8 as createDataOps, kAe as createHtmlFormatCheck, wAe as createHtmlRenderCheck, MAe as createHtmlSubagent, u1 as createHumanConfirmMiddleware, l1 as createHumanConfirmTool, w8 as createMemoryBackend, o1 as createMemoryMiddleware, bge as createProxyLlm, OGe as createRagSubagent, $Z as createSandboxRunner, fje as createSdkEvents, Qje as createSerialRunner, D8 as createSessionStore, Yje as createSkillStore, n1 as createSubagentMiddleware, Y$ as createSubagentTracker, r1 as createSubagentsMiddleware, Wje as createUsageHintsMiddleware, g1 as createVerifyMiddleware, bke as createVfs, T8 as createWebStorageBackend, _1 as createWriteBackCheck, QZ as decorateModelUnavailable, u$ as deepClone, Bje as defineDataToolset, Hwe as defineSkill, NAe as defineTool, l$ as deleteByPath, LAe as deriveTitle, JQ as describeSchemaNode, TQ as detectGarbledToolCall, _Q as detectTransitionalReply, w$ as diffObjects, L8 as domInfoTool, R8 as domInspectSkill, I8 as domSearchTool, xje as domToStructure, M8 as domTools, zje as domToolsStatic, BQ as elementSchemaCandidates, P8 as ensureDomListenerRecorder, V$ as estimateMessageTokens, H$ as estimateRoundTokens, xF as estimateTokens, eK as extractReasoningDelta, r$ as extractSchemaHint, cke as extractText, $G as extractTextDelta, tK as extractUsage, j8 as fetchDocTools, Rje as fetchTools, C$ as findStrippedKeys, YQ as formatConstraints, jZ as formatZodIssues, s$ as getByPath, Sje as getDomTool, Oje as getElementInfo, Aje as getEnvSummary, Tje as getRecordedListeners, SAe as getSandboxLifecycle, FQ as getSchemaAtPath, MQ as getSchemaTopKeys, g$ as hashValue, OAe as htmlFragmentSkill, e$ as htmlOrchestratorPrompt, U$ as indexSummarize, Nje as inspectEnvTool, Pje as inspectTools, g8 as isChatModel, YZ as isContextLengthError, g9 as isIconHtml, XZ as isModelUnavailableError, NQ as isPathAllowed, x8 as isQuotaError, a$ as isUnsafePath, iQ as jpEval, NZ as jsonParseError, p$ as limitDepth, WRe as markedToHtml, gAe as maskUrlCredentials, d$ as maybeParseValue, fAe as measureWriteScale, b$ as moveByPath, XG as normalizeBaseUrl, vAe as normalizeRenderResult, nK as normalizeUsage, CF as offloadPassThroughChars, SF as offloadThresholdChars, Cwe as presets, vwe as projectBySchema, GQ as projectBySchemaDeep, f$ as projectFields, W$ as recallRounds, CAe as renderInSandbox, Q9 as renderMarkdownHtml, XQ as renderSchemaHint, ZQ as renderSchemaOverview, $Q as renderSchemaShallow, k8 as resolveCapabilities, A8 as resolveContextOptions, dje as resolveDialogConfig, xPe as resolveDialogIcons, wPe as resolveDialogMessages, GAe as resolveLlm, bF as resolveModelCaps, K$ as resolvePromptSoftCap, IQ as resolveSchemaPath, uje as resolveStorage, S$ as restoreInPlace, x$ as restoreLive, NSe as routeError, sQ as runSandboxedScript, o$ as safeMerge, z8 as safeSerialize, m$ as safeStringify, EQ as sanitizeGarbledContent, TFe as sanitizeIconHtml, OFe as sanitizeMessageHtml, RQ as schemaHasRefinement, Eje as searchDom, aQ as searchJson, Vje as selectBuiltinTools, c$ as setByPath, q$ as shouldTriggerCompression, p8 as stringifyDiagnosticsReport, YG as stripStainlessFetch, t$ as systemPromptHelpers, B$ as tokenize, AZ as toolError, PQ as unwrapSchema, bPe as useChat, H7 as useChatContext, LQ as validateAtPath, n8 as validateHtmlFormat, J6 as validateRootValueLocally, Rke as validateWriteLocally, _$ as watchFieldsHash, Yne as z, MZ as zodError };
88474
+ export { eBe as ApprovalBar, O8 as CAPABILITIES, pje as CONTEXT_PRESETS, SGe as ChatDialog, aIe as ChatHeader, BBe as ChatInput, WGe as CodePreview, IAe as CompressDecisionSchema, _Be as ConflictBar, Cje as DEFAULT_COMPUTED_STYLES, z7 as DEFAULT_DIALOG_ICONS, G$ as DEFAULT_PROMPT_SOFT_CAP, pke as DEFAULT_SYSTEM_PROMPT, mke as DEFAULT_SYSTEM_PROMPT_EN, YWe as DebugDrawer, gIe as FocusBar, zRe as HLJS_BLOCK_MAX_CHARS, Gke as HTML_VOID_TAGS, c1 as HUMAN_CONFIRM_TOOL_NAME, v9 as IconGlyph, FZ as ImageInputError, SPe as MESSAGES_EN_US, B7 as MESSAGES_ZH_CN, yF as MIN_CONTEXT_WINDOW, ZZ as MODEL_UNAVAILABLE_GUIDANCE, XRe as MessageContent, kze as MessageList, yze as MessageRow, zze as QueuedBar, nTe as SOFT_CAP_MIN_WINDOW, z$ as STOP_WORDS, xGe as SkillPanel, i$ as UNSAFE_KEYS, Lje as actionsToInspectInfo, Ije as actionsToTools, PSe as agentError, x1 as analyzeContext, v$ as applyPatchToClone, Bwe as applyPatchToLive, X6 as applyPatchesToBind, zQ as arrayMinLength, PZ as asAgentError, yAe as buildCollectorJs, F8 as buildCssPath, P6 as buildDataPrompt, f8 as buildDiagnosticsReport, h8 as buildHtmlFragmentSkill, bAe as buildSandboxSrcdoc, hke as buildSystemPrompt, V7 as chatContextKey, Y6 as commitSetToBind, TAe as composeStructureThenRender, LZ as compressImage, fke as connectMcp, QG as constructLlmFromConfig, ZG as constructOpenLlmSync, R7 as copyText, jQ as createAgent, s1 as createApprovalMiddleware, TPe as createChatContext, GGe as createChatSdk, m1 as createCheckpointManager, h1 as createCheckpointMiddleware, KAe as createConflictManager, S1 as createContextInspectorMiddleware, t8 as createDataOps, kAe as createHtmlFormatCheck, wAe as createHtmlRenderCheck, MAe as createHtmlSubagent, u1 as createHumanConfirmMiddleware, l1 as createHumanConfirmTool, w8 as createMemoryBackend, o1 as createMemoryMiddleware, bge as createProxyLlm, kGe as createRagSubagent, $Z as createSandboxRunner, fje as createSdkEvents, Qje as createSerialRunner, D8 as createSessionStore, Yje as createSkillStore, n1 as createSubagentMiddleware, Y$ as createSubagentTracker, r1 as createSubagentsMiddleware, Wje as createUsageHintsMiddleware, g1 as createVerifyMiddleware, bke as createVfs, T8 as createWebStorageBackend, _1 as createWriteBackCheck, QZ as decorateModelUnavailable, u$ as deepClone, Bje as defineDataToolset, Hwe as defineSkill, NAe as defineTool, l$ as deleteByPath, LAe as deriveTitle, JQ as describeSchemaNode, TQ as detectGarbledToolCall, _Q as detectTransitionalReply, w$ as diffObjects, L8 as domInfoTool, R8 as domInspectSkill, I8 as domSearchTool, xje as domToStructure, M8 as domTools, zje as domToolsStatic, BQ as elementSchemaCandidates, P8 as ensureDomListenerRecorder, V$ as estimateMessageTokens, H$ as estimateRoundTokens, xF as estimateTokens, eK as extractReasoningDelta, r$ as extractSchemaHint, cke as extractText, $G as extractTextDelta, tK as extractUsage, j8 as fetchDocTools, Rje as fetchTools, C$ as findStrippedKeys, YQ as formatConstraints, jZ as formatZodIssues, s$ as getByPath, Sje as getDomTool, Oje as getElementInfo, Aje as getEnvSummary, Tje as getRecordedListeners, SAe as getSandboxLifecycle, FQ as getSchemaAtPath, MQ as getSchemaTopKeys, g$ as hashValue, OAe as htmlFragmentSkill, e$ as htmlOrchestratorPrompt, U$ as indexSummarize, Nje as inspectEnvTool, Pje as inspectTools, g8 as isChatModel, YZ as isContextLengthError, g9 as isIconHtml, XZ as isModelUnavailableError, NQ as isPathAllowed, x8 as isQuotaError, a$ as isUnsafePath, iQ as jpEval, NZ as jsonParseError, p$ as limitDepth, GRe as markedToHtml, gAe as maskUrlCredentials, d$ as maybeParseValue, fAe as measureWriteScale, b$ as moveByPath, XG as normalizeBaseUrl, vAe as normalizeRenderResult, nK as normalizeUsage, CF as offloadPassThroughChars, SF as offloadThresholdChars, Cwe as presets, vwe as projectBySchema, GQ as projectBySchemaDeep, f$ as projectFields, W$ as recallRounds, CAe as renderInSandbox, Q9 as renderMarkdownHtml, XQ as renderSchemaHint, ZQ as renderSchemaOverview, $Q as renderSchemaShallow, k8 as resolveCapabilities, A8 as resolveContextOptions, dje as resolveDialogConfig, xPe as resolveDialogIcons, wPe as resolveDialogMessages, GAe as resolveLlm, bF as resolveModelCaps, K$ as resolvePromptSoftCap, IQ as resolveSchemaPath, uje as resolveStorage, S$ as restoreInPlace, x$ as restoreLive, NSe as routeError, sQ as runSandboxedScript, o$ as safeMerge, z8 as safeSerialize, m$ as safeStringify, EQ as sanitizeGarbledContent, TFe as sanitizeIconHtml, OFe as sanitizeMessageHtml, RQ as schemaHasRefinement, Eje as searchDom, aQ as searchJson, Vje as selectBuiltinTools, c$ as setByPath, q$ as shouldTriggerCompression, p8 as stringifyDiagnosticsReport, YG as stripStainlessFetch, t$ as systemPromptHelpers, B$ as tokenize, AZ as toolError, PQ as unwrapSchema, bPe as useChat, H7 as useChatContext, LQ as validateAtPath, n8 as validateHtmlFormat, J6 as validateRootValueLocally, Rke as validateWriteLocally, _$ as watchFieldsHash, Yne as z, MZ as zodError };