page-agent-sdk 3.16.0 → 3.17.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/README.md +4 -2
- package/README.zh-CN.md +4 -2
- package/dist/page-agent-sdk.headless.js +31 -7
- package/dist/page-agent-sdk.iife.js +146 -146
- package/dist/page-agent-sdk.js +970 -918
- package/dist/page-agent-sdk.umd.cjs +34 -34
- package/dist/style.css +1 -1
- package/package.json +1 -1
- package/skills/page-agent-sdk-integrate/references/integration-prompt.md +1 -0
- package/types/index.d.ts +37 -0
package/dist/page-agent-sdk.js
CHANGED
|
@@ -13835,9 +13835,32 @@ async function g_(e) {
|
|
|
13835
13835
|
}
|
|
13836
13836
|
}
|
|
13837
13837
|
//#endregion
|
|
13838
|
+
//#region src/core/components/icons.ts
|
|
13839
|
+
var __ = {
|
|
13840
|
+
header: "🤖",
|
|
13841
|
+
subagent: "🤖",
|
|
13842
|
+
subagentProgress: "🧬",
|
|
13843
|
+
empty: "💬",
|
|
13844
|
+
focus: "🎯",
|
|
13845
|
+
queued: "📋",
|
|
13846
|
+
queuedEdit: "✏️",
|
|
13847
|
+
recommend: "💡",
|
|
13848
|
+
conflict: "⚠️"
|
|
13849
|
+
};
|
|
13850
|
+
function v_(e) {
|
|
13851
|
+
let t = { ...__ };
|
|
13852
|
+
if (!e) return t;
|
|
13853
|
+
let n = Object.keys(__);
|
|
13854
|
+
for (let r of n) {
|
|
13855
|
+
let n = e[r];
|
|
13856
|
+
typeof n == "string" && (t[r] = n);
|
|
13857
|
+
}
|
|
13858
|
+
return e.assistantAvatar && (t.assistantAvatar = e.assistantAvatar), e.userAvatar && (t.userAvatar = e.userAvatar), t;
|
|
13859
|
+
}
|
|
13860
|
+
//#endregion
|
|
13838
13861
|
//#region src/core/composables/chatContext.ts
|
|
13839
|
-
var
|
|
13840
|
-
function
|
|
13862
|
+
var y_ = Symbol("chatContext");
|
|
13863
|
+
function b_(e = {}) {
|
|
13841
13864
|
let t = h_({
|
|
13842
13865
|
fetchResponse: e.fetchResponse,
|
|
13843
13866
|
fetchStream: e.fetchStream,
|
|
@@ -13923,26 +13946,27 @@ function v_(e = {}) {
|
|
|
13923
13946
|
},
|
|
13924
13947
|
focusChipClick: (t) => {
|
|
13925
13948
|
e.onFocusChipClick?.(t);
|
|
13926
|
-
}
|
|
13949
|
+
},
|
|
13950
|
+
icons: v_(e.icons)
|
|
13927
13951
|
};
|
|
13928
13952
|
}
|
|
13929
|
-
function
|
|
13930
|
-
let e = $r(
|
|
13953
|
+
function x_() {
|
|
13954
|
+
let e = $r(y_);
|
|
13931
13955
|
if (!e) throw Error("useChatContext 必须在 provide(chatContextKey) 的组件子树内调用");
|
|
13932
13956
|
return e;
|
|
13933
13957
|
}
|
|
13934
13958
|
//#endregion
|
|
13935
13959
|
//#region src/core/components/ChatHeader.vue?vue&type=script&setup=true&lang.ts
|
|
13936
|
-
var
|
|
13960
|
+
var S_ = { class: "chat-header" }, C_ = { class: "header-left" }, w_ = { class: "header-icon" }, T_ = { class: "header-title" }, E_ = {
|
|
13937
13961
|
key: 0,
|
|
13938
13962
|
class: "status-dot pulse"
|
|
13939
|
-
},
|
|
13963
|
+
}, D_ = ["data-sid", "onClick"], O_ = { class: "hist-title" }, k_ = { class: "hist-meta" }, A_ = ["onClick"], j_ = {
|
|
13940
13964
|
key: 0,
|
|
13941
13965
|
class: "debug-badge"
|
|
13942
|
-
},
|
|
13966
|
+
}, M_ = {
|
|
13943
13967
|
key: 0,
|
|
13944
13968
|
class: "more-item-badge"
|
|
13945
|
-
},
|
|
13969
|
+
}, N_ = ["disabled"], P_ = /*@__PURE__*/ Fi({
|
|
13946
13970
|
__name: "ChatHeader",
|
|
13947
13971
|
props: {
|
|
13948
13972
|
title: {},
|
|
@@ -13957,22 +13981,22 @@ var b_ = { class: "chat-header" }, x_ = { class: "header-left" }, S_ = { class:
|
|
|
13957
13981
|
},
|
|
13958
13982
|
emits: ["close"],
|
|
13959
13983
|
setup(e) {
|
|
13960
|
-
let t = e, n =
|
|
13961
|
-
function
|
|
13984
|
+
let t = e, n = x_(), { chat: r, icons: i } = n, { state: a, reset: o, clearMessages: s } = r, c = /* @__PURE__ */ Cn(!1), l = /* @__PURE__ */ Cn(!1), u = Qs(() => a.messages.length > 0), d = Qs(() => (t.debugLogs?.length ?? 0) > 0);
|
|
13985
|
+
function f(e) {
|
|
13962
13986
|
let t = Date.now() - e;
|
|
13963
13987
|
return t < 6e4 ? "刚刚" : t < 36e5 ? Math.floor(t / 6e4) + "分钟前" : new Date(e).toLocaleString();
|
|
13964
13988
|
}
|
|
13965
|
-
function
|
|
13966
|
-
|
|
13989
|
+
function p() {
|
|
13990
|
+
o(), t.onNewSession?.();
|
|
13967
13991
|
}
|
|
13968
|
-
function
|
|
13969
|
-
|
|
13992
|
+
function m(e) {
|
|
13993
|
+
o(), t.onOpenSession?.(e);
|
|
13970
13994
|
}
|
|
13971
|
-
return (t, r) => (Y(), X("div",
|
|
13972
|
-
Z("div",
|
|
13973
|
-
|
|
13974
|
-
Z("span",
|
|
13975
|
-
K(
|
|
13995
|
+
return (t, r) => (Y(), X("div", S_, [
|
|
13996
|
+
Z("div", C_, [
|
|
13997
|
+
Z("span", w_, U(K(i).header), 1),
|
|
13998
|
+
Z("span", T_, U(e.title), 1),
|
|
13999
|
+
K(a).loading ? (Y(), X("span", E_)) : Q("", !0)
|
|
13976
14000
|
]),
|
|
13977
14001
|
Z("div", {
|
|
13978
14002
|
class: "header-actions",
|
|
@@ -13983,8 +14007,8 @@ var b_ = { class: "chat-header" }, x_ = { class: "header-left" }, S_ = { class:
|
|
|
13983
14007
|
class: "action-btn",
|
|
13984
14008
|
"data-test": "new-chat",
|
|
13985
14009
|
title: "新建会话",
|
|
13986
|
-
onClick:
|
|
13987
|
-
}, [...r[
|
|
14010
|
+
onClick: p
|
|
14011
|
+
}, [...r[10] ||= [Z("svg", {
|
|
13988
14012
|
width: "16",
|
|
13989
14013
|
height: "16",
|
|
13990
14014
|
viewBox: "0 0 24 24",
|
|
@@ -13994,13 +14018,13 @@ var b_ = { class: "chat-header" }, x_ = { class: "header-left" }, S_ = { class:
|
|
|
13994
14018
|
}, [Z("path", { d: "M12 5v14M5 12h14" })], -1)]])) : Q("", !0),
|
|
13995
14019
|
e.sessions ? (Y(), X("button", {
|
|
13996
14020
|
key: 1,
|
|
13997
|
-
class: H(["action-btn", { active:
|
|
14021
|
+
class: H(["action-btn", { active: l.value }]),
|
|
13998
14022
|
"data-test": "toggle-history",
|
|
13999
14023
|
title: "历史记录",
|
|
14000
14024
|
onClick: r[0] ||= (e) => {
|
|
14001
|
-
|
|
14025
|
+
c.value = !1, l.value = !l.value;
|
|
14002
14026
|
}
|
|
14003
|
-
}, [...r[
|
|
14027
|
+
}, [...r[11] ||= [Z("svg", {
|
|
14004
14028
|
width: "16",
|
|
14005
14029
|
height: "16",
|
|
14006
14030
|
viewBox: "0 0 24 24",
|
|
@@ -14012,7 +14036,7 @@ var b_ = { class: "chat-header" }, x_ = { class: "header-left" }, S_ = { class:
|
|
|
14012
14036
|
Z("path", { d: "M3 3v5h5" }),
|
|
14013
14037
|
Z("path", { d: "M12 7v5l3 2" })
|
|
14014
14038
|
], -1)]], 2)) : Q("", !0),
|
|
14015
|
-
e.sessions &&
|
|
14039
|
+
e.sessions && l.value ? (Y(), X("div", {
|
|
14016
14040
|
key: 2,
|
|
14017
14041
|
class: "cs-history-menu",
|
|
14018
14042
|
onClick: r[1] ||= yl(() => {}, ["stop"])
|
|
@@ -14020,20 +14044,20 @@ var b_ = { class: "chat-header" }, x_ = { class: "header-left" }, S_ = { class:
|
|
|
14020
14044
|
key: t.sessionId,
|
|
14021
14045
|
class: H(["hist-item", { active: e.currentSessionId === t.sessionId }]),
|
|
14022
14046
|
"data-sid": t.sessionId,
|
|
14023
|
-
onClick: (e) =>
|
|
14024
|
-
}, [Z("div",
|
|
14047
|
+
onClick: (e) => m(t.sessionId)
|
|
14048
|
+
}, [Z("div", O_, U(t.title || "会话 " + t.sessionId.slice(-6)), 1), Z("div", k_, [Z("span", null, U(f(t.lastAccessed)), 1), e.currentSessionId === t.sessionId ? Q("", !0) : (Y(), X("button", {
|
|
14025
14049
|
key: 0,
|
|
14026
14050
|
class: "hist-del",
|
|
14027
14051
|
"data-test": "del-btn",
|
|
14028
14052
|
onClick: yl((n) => e.onRemoveSession?.(t.sessionId), ["stop"])
|
|
14029
|
-
}, "✕", 8,
|
|
14053
|
+
}, "✕", 8, A_))])], 10, D_))), 128))])) : Q("", !0),
|
|
14030
14054
|
Z("button", {
|
|
14031
|
-
class: H(["action-btn more-btn", { active:
|
|
14055
|
+
class: H(["action-btn more-btn", { active: c.value }]),
|
|
14032
14056
|
title: "更多",
|
|
14033
14057
|
onClick: r[2] ||= (e) => {
|
|
14034
|
-
|
|
14058
|
+
l.value = !1, c.value = !c.value;
|
|
14035
14059
|
}
|
|
14036
|
-
}, [r[
|
|
14060
|
+
}, [r[12] ||= Z("svg", {
|
|
14037
14061
|
width: "16",
|
|
14038
14062
|
height: "16",
|
|
14039
14063
|
viewBox: "0 0 24 24",
|
|
@@ -14054,8 +14078,8 @@ var b_ = { class: "chat-header" }, x_ = { class: "header-left" }, S_ = { class:
|
|
|
14054
14078
|
cy: "19",
|
|
14055
14079
|
r: "1.6"
|
|
14056
14080
|
})
|
|
14057
|
-
], -1),
|
|
14058
|
-
|
|
14081
|
+
], -1), d.value ? (Y(), X("span", j_, U(e.debugLogs?.length), 1)) : Q("", !0)], 2),
|
|
14082
|
+
c.value ? (Y(), X("div", {
|
|
14059
14083
|
key: 3,
|
|
14060
14084
|
class: "more-menu",
|
|
14061
14085
|
onClick: r[6] ||= yl(() => {}, ["stop"])
|
|
@@ -14064,10 +14088,10 @@ var b_ = { class: "chat-header" }, x_ = { class: "header-left" }, S_ = { class:
|
|
|
14064
14088
|
class: "more-item",
|
|
14065
14089
|
title: "日志 / 执行流程 / Agent 信息",
|
|
14066
14090
|
onClick: r[3] ||= (e) => {
|
|
14067
|
-
K(n).openDebug(),
|
|
14091
|
+
K(n).openDebug(), c.value = !1;
|
|
14068
14092
|
}
|
|
14069
14093
|
}, [
|
|
14070
|
-
r[
|
|
14094
|
+
r[13] ||= Z("svg", {
|
|
14071
14095
|
width: "15",
|
|
14072
14096
|
height: "15",
|
|
14073
14097
|
viewBox: "0 0 24 24",
|
|
@@ -14079,17 +14103,17 @@ var b_ = { class: "chat-header" }, x_ = { class: "header-left" }, S_ = { class:
|
|
|
14079
14103
|
Z("path", { d: "M9 2h6" }),
|
|
14080
14104
|
Z("path", { d: "M9 18h6" })
|
|
14081
14105
|
], -1),
|
|
14082
|
-
r[
|
|
14083
|
-
|
|
14106
|
+
r[14] ||= Z("span", null, "调试 / 日志", -1),
|
|
14107
|
+
d.value ? (Y(), X("span", M_, U(e.debugLogs?.length), 1)) : Q("", !0)
|
|
14084
14108
|
]),
|
|
14085
14109
|
e.skillAvailable ? (Y(), X("button", {
|
|
14086
14110
|
key: 0,
|
|
14087
14111
|
class: "more-item",
|
|
14088
14112
|
title: "创建 / 管理自定义 Skill",
|
|
14089
14113
|
onClick: r[4] ||= (e) => {
|
|
14090
|
-
K(n).openSkill(),
|
|
14114
|
+
K(n).openSkill(), c.value = !1;
|
|
14091
14115
|
}
|
|
14092
|
-
}, [...r[
|
|
14116
|
+
}, [...r[15] ||= [Z("svg", {
|
|
14093
14117
|
width: "15",
|
|
14094
14118
|
height: "15",
|
|
14095
14119
|
viewBox: "0 0 24 24",
|
|
@@ -14100,25 +14124,25 @@ var b_ = { class: "chat-header" }, x_ = { class: "header-left" }, S_ = { class:
|
|
|
14100
14124
|
Z("button", {
|
|
14101
14125
|
class: "more-item",
|
|
14102
14126
|
title: "清空对话",
|
|
14103
|
-
disabled: !
|
|
14127
|
+
disabled: !u.value,
|
|
14104
14128
|
onClick: r[5] ||= (e) => {
|
|
14105
|
-
K(
|
|
14129
|
+
K(s)(), c.value = !1;
|
|
14106
14130
|
}
|
|
14107
|
-
}, [...r[
|
|
14131
|
+
}, [...r[16] ||= [Z("svg", {
|
|
14108
14132
|
width: "15",
|
|
14109
14133
|
height: "15",
|
|
14110
14134
|
viewBox: "0 0 24 24",
|
|
14111
14135
|
fill: "none",
|
|
14112
14136
|
stroke: "currentColor",
|
|
14113
14137
|
"stroke-width": "2"
|
|
14114
|
-
}, [Z("polyline", { points: "3 6 5 6 21 6" }), Z("path", { d: "M19 6v14a2 2 0 0 1-2 2H7a2 2 0 0 1-2-2V6m3 0V4a2 2 0 0 1 2-2h4a2 2 0 0 1 2 2v2" })], -1), Z("span", null, "清空对话", -1)]], 8,
|
|
14138
|
+
}, [Z("polyline", { points: "3 6 5 6 21 6" }), Z("path", { d: "M19 6v14a2 2 0 0 1-2 2H7a2 2 0 0 1-2-2V6m3 0V4a2 2 0 0 1 2-2h4a2 2 0 0 1 2 2v2" })], -1), Z("span", null, "清空对话", -1)]], 8, N_)
|
|
14115
14139
|
])) : Q("", !0),
|
|
14116
14140
|
e.drawer ? (Y(), X("button", {
|
|
14117
14141
|
key: 4,
|
|
14118
14142
|
class: "action-btn",
|
|
14119
14143
|
title: "关闭",
|
|
14120
14144
|
onClick: r[7] ||= (e) => t.$emit("close")
|
|
14121
|
-
}, [...r[
|
|
14145
|
+
}, [...r[17] ||= [Z("svg", {
|
|
14122
14146
|
width: "16",
|
|
14123
14147
|
height: "16",
|
|
14124
14148
|
viewBox: "0 0 24 24",
|
|
@@ -14127,35 +14151,36 @@ var b_ = { class: "chat-header" }, x_ = { class: "header-left" }, S_ = { class:
|
|
|
14127
14151
|
"stroke-width": "2"
|
|
14128
14152
|
}, [Z("path", { d: "M18 6L6 18M6 6l12 12" })], -1)]])) : Q("", !0)
|
|
14129
14153
|
]),
|
|
14130
|
-
|
|
14154
|
+
c.value || l.value ? (Y(), X("div", {
|
|
14131
14155
|
key: 0,
|
|
14132
14156
|
class: "more-overlay",
|
|
14133
14157
|
onClick: r[9] ||= (e) => {
|
|
14134
|
-
|
|
14158
|
+
c.value = !1, l.value = !1;
|
|
14135
14159
|
}
|
|
14136
14160
|
})) : Q("", !0)
|
|
14137
14161
|
]));
|
|
14138
14162
|
}
|
|
14139
|
-
}),
|
|
14163
|
+
}), F_ = (e, t) => {
|
|
14140
14164
|
let n = e.__vccOpts || e;
|
|
14141
14165
|
for (let [e, r] of t) n[e] = r;
|
|
14142
14166
|
return n;
|
|
14143
|
-
},
|
|
14167
|
+
}, I_ = /*#__PURE__*/ F_(P_, [["__scopeId", "data-v-c039d238"]]), L_ = {
|
|
14144
14168
|
key: 0,
|
|
14145
14169
|
class: "focus-bar"
|
|
14146
|
-
},
|
|
14170
|
+
}, R_ = { class: "focus-bar-icon" }, z_ = { class: "focus-bar-text" }, B_ = {
|
|
14147
14171
|
key: 0,
|
|
14148
14172
|
class: "focus-bar-label"
|
|
14149
|
-
},
|
|
14173
|
+
}, V_ = { class: "focus-bar-path" }, H_ = {
|
|
14150
14174
|
key: 0,
|
|
14151
14175
|
class: "focus-edit-row"
|
|
14152
|
-
},
|
|
14176
|
+
}, U_ = /*#__PURE__*/ F_(/* @__PURE__ */ Fi({
|
|
14153
14177
|
__name: "FocusBar",
|
|
14154
14178
|
props: {
|
|
14155
|
-
getFocus: {
|
|
14156
|
-
onSetFocus: {
|
|
14157
|
-
onClearFocus: {
|
|
14158
|
-
infoTick: {}
|
|
14179
|
+
getFocus: {},
|
|
14180
|
+
onSetFocus: {},
|
|
14181
|
+
onClearFocus: {},
|
|
14182
|
+
infoTick: {},
|
|
14183
|
+
icons: { default: () => ({ ...__ }) }
|
|
14159
14184
|
},
|
|
14160
14185
|
setup(e) {
|
|
14161
14186
|
let t = e, n = Qs(() => (t.infoTick?.value, t.getFocus?.())), r = /* @__PURE__ */ Cn(!1), i = /* @__PURE__ */ Cn(""), a = /* @__PURE__ */ Cn("");
|
|
@@ -14171,13 +14196,13 @@ var b_ = { class: "chat-header" }, x_ = { class: "header-left" }, S_ = { class:
|
|
|
14171
14196
|
function s() {
|
|
14172
14197
|
t.onClearFocus?.(), r.value = !1;
|
|
14173
14198
|
}
|
|
14174
|
-
return (
|
|
14175
|
-
|
|
14176
|
-
Z("span",
|
|
14199
|
+
return (t, c) => n.value ? (Y(), X("div", L_, [
|
|
14200
|
+
Z("span", R_, U(e.icons.focus), 1),
|
|
14201
|
+
Z("span", z_, [n.value.label ? (Y(), X("span", B_, U(n.value.label), 1)) : Q("", !0), Z("code", V_, U(n.value.path), 1)]),
|
|
14177
14202
|
Z("button", {
|
|
14178
14203
|
class: "focus-bar-btn",
|
|
14179
14204
|
title: "切换聚焦路径",
|
|
14180
|
-
onClick:
|
|
14205
|
+
onClick: c[0] ||= (e) => r.value = !r.value
|
|
14181
14206
|
}, "▾"),
|
|
14182
14207
|
Z("button", {
|
|
14183
14208
|
class: "focus-bar-btn",
|
|
@@ -14185,16 +14210,16 @@ var b_ = { class: "chat-header" }, x_ = { class: "header-left" }, S_ = { class:
|
|
|
14185
14210
|
"data-test": "focus-clear",
|
|
14186
14211
|
onClick: s
|
|
14187
14212
|
}, "✕"),
|
|
14188
|
-
r.value ? (Y(), X("div",
|
|
14213
|
+
r.value ? (Y(), X("div", H_, [
|
|
14189
14214
|
Xr(Z("input", {
|
|
14190
|
-
"onUpdate:modelValue":
|
|
14215
|
+
"onUpdate:modelValue": c[1] ||= (e) => i.value = e,
|
|
14191
14216
|
class: "focus-edit-input",
|
|
14192
14217
|
placeholder: "jsonPath,如 components.3",
|
|
14193
14218
|
"data-test": "focus-path-input",
|
|
14194
14219
|
onKeyup: xl(o, ["enter"])
|
|
14195
14220
|
}, null, 544), [[gl, i.value]]),
|
|
14196
14221
|
Xr(Z("input", {
|
|
14197
|
-
"onUpdate:modelValue":
|
|
14222
|
+
"onUpdate:modelValue": c[2] ||= (e) => a.value = e,
|
|
14198
14223
|
class: "focus-edit-input focus-edit-label",
|
|
14199
14224
|
placeholder: "标签(可选)",
|
|
14200
14225
|
onKeyup: xl(o, ["enter"])
|
|
@@ -14207,10 +14232,10 @@ var b_ = { class: "chat-header" }, x_ = { class: "header-left" }, S_ = { class:
|
|
|
14207
14232
|
])) : Q("", !0)
|
|
14208
14233
|
])) : Q("", !0);
|
|
14209
14234
|
}
|
|
14210
|
-
}), [["__scopeId", "data-v-
|
|
14235
|
+
}), [["__scopeId", "data-v-2f9c89df"]]), W_ = { class: "reasoning-toggle" }, G_ = {
|
|
14211
14236
|
key: 0,
|
|
14212
14237
|
class: "reasoning-body"
|
|
14213
|
-
},
|
|
14238
|
+
}, K_ = /*#__PURE__*/ F_(/* @__PURE__ */ Fi({
|
|
14214
14239
|
__name: "MessageReasoning",
|
|
14215
14240
|
props: {
|
|
14216
14241
|
text: {},
|
|
@@ -14227,13 +14252,13 @@ var b_ = { class: "chat-header" }, x_ = { class: "header-left" }, S_ = { class:
|
|
|
14227
14252
|
}, [
|
|
14228
14253
|
n[1] ||= Z("span", { class: "status-dot ok" }, null, -1),
|
|
14229
14254
|
n[2] ||= Z("span", { class: "reasoning-title" }, "思考过程", -1),
|
|
14230
|
-
Z("span",
|
|
14231
|
-
]), e.expanded ? (Y(), X("div",
|
|
14255
|
+
Z("span", W_, U(e.expanded ? "收起" : "展开"), 1)
|
|
14256
|
+
]), e.expanded ? (Y(), X("div", G_, U(e.text), 1)) : Q("", !0)], 2)) : Q("", !0);
|
|
14232
14257
|
}
|
|
14233
|
-
}), [["__scopeId", "data-v-dbe90e42"]]),
|
|
14258
|
+
}), [["__scopeId", "data-v-dbe90e42"]]), q_ = ["open"], J_ = { class: "sub-reason-head" }, Y_ = {
|
|
14234
14259
|
key: 0,
|
|
14235
14260
|
class: "sub-reason-trunc"
|
|
14236
|
-
},
|
|
14261
|
+
}, X_ = ["title"], Z_ = /*#__PURE__*/ F_(/* @__PURE__ */ Fi({
|
|
14237
14262
|
__name: "SubReasonDetails",
|
|
14238
14263
|
props: {
|
|
14239
14264
|
subReason: {},
|
|
@@ -14260,62 +14285,65 @@ var b_ = { class: "chat-header" }, x_ = { class: "header-left" }, S_ = { class:
|
|
|
14260
14285
|
class: "step-sub-reason",
|
|
14261
14286
|
open: r.value,
|
|
14262
14287
|
onToggle: i[0] ||= (e) => r.value = e.target.open
|
|
14263
|
-
}, [Z("summary",
|
|
14288
|
+
}, [Z("summary", J_, [
|
|
14264
14289
|
Z("span", { class: H(["status-dot sm", e.status === "running" ? "running" : "ok"]) }, null, 2),
|
|
14265
14290
|
Z("span", { class: H(["sub-reason-label", { pulsing: e.status === "running" }]) }, U(e.status === "running" ? `思考中… ${a.value}字` : "思考过程"), 3),
|
|
14266
|
-
o.value ? (Y(), X("span",
|
|
14291
|
+
o.value ? (Y(), X("span", Y_, "(仅显最近 " + U(e.subReason.length) + " 字)", 1)) : Q("", !0),
|
|
14267
14292
|
Z("button", {
|
|
14268
14293
|
type: "button",
|
|
14269
14294
|
class: H(["sub-reason-copy", { copied: s.value }]),
|
|
14270
14295
|
title: o.value ? "复制完整思考(渲染已截尾,复制取全量)" : "复制完整思考内容",
|
|
14271
14296
|
onClick: yl(c, ["stop", "prevent"])
|
|
14272
|
-
}, U(s.value ? "已复制" : "复制"), 11,
|
|
14297
|
+
}, U(s.value ? "已复制" : "复制"), 11, X_)
|
|
14273
14298
|
]), Z("div", {
|
|
14274
14299
|
ref_key: "bodyRef",
|
|
14275
14300
|
ref: n,
|
|
14276
14301
|
class: "sub-reason-body"
|
|
14277
|
-
}, U(o.value ? "…(前面已截断)\n" : "") + U(e.subReason), 513)], 40,
|
|
14302
|
+
}, U(o.value ? "…(前面已截断)\n" : "") + U(e.subReason), 513)], 40, q_));
|
|
14278
14303
|
}
|
|
14279
|
-
}), [["__scopeId", "data-v-f415f3c9"]]),
|
|
14304
|
+
}), [["__scopeId", "data-v-f415f3c9"]]), Q_ = {
|
|
14280
14305
|
key: 0,
|
|
14281
14306
|
class: "steps-block"
|
|
14282
|
-
},
|
|
14307
|
+
}, $_ = { class: "step-head" }, ev = { class: "step-name" }, tv = {
|
|
14283
14308
|
key: 0,
|
|
14284
14309
|
class: "subagent-badge",
|
|
14285
14310
|
title: "子 agent 委派(独立上下文,只回结论)"
|
|
14286
|
-
},
|
|
14311
|
+
}, nv = {
|
|
14287
14312
|
key: 1,
|
|
14288
14313
|
class: "step-count"
|
|
14289
|
-
},
|
|
14314
|
+
}, rv = {
|
|
14290
14315
|
key: 2,
|
|
14291
14316
|
class: "step-duration"
|
|
14292
|
-
},
|
|
14317
|
+
}, iv = ["onClick"], av = {
|
|
14293
14318
|
key: 0,
|
|
14294
14319
|
class: "step-detail"
|
|
14295
|
-
},
|
|
14320
|
+
}, ov = {
|
|
14296
14321
|
key: 0,
|
|
14297
14322
|
class: "step-detail-call-label"
|
|
14298
|
-
},
|
|
14323
|
+
}, sv = {
|
|
14299
14324
|
key: 1,
|
|
14300
14325
|
class: "step-detail-section"
|
|
14301
|
-
},
|
|
14326
|
+
}, cv = { class: "step-detail-head" }, lv = ["onClick"], uv = { class: "step-detail-pre" }, dv = {
|
|
14302
14327
|
key: 2,
|
|
14303
14328
|
class: "step-detail-section"
|
|
14304
|
-
},
|
|
14329
|
+
}, fv = { class: "step-detail-head" }, pv = ["onClick"], mv = {
|
|
14305
14330
|
key: 3,
|
|
14306
14331
|
class: "step-detail-empty"
|
|
14307
|
-
},
|
|
14332
|
+
}, hv = {
|
|
14308
14333
|
key: 2,
|
|
14309
14334
|
class: "step-children"
|
|
14310
|
-
},
|
|
14335
|
+
}, gv = { class: "step-children-label" }, _v = { class: "step-name" }, vv = {
|
|
14311
14336
|
key: 0,
|
|
14312
14337
|
class: "step-count"
|
|
14313
|
-
},
|
|
14338
|
+
}, yv = {
|
|
14314
14339
|
key: 1,
|
|
14315
14340
|
class: "step-status running"
|
|
14316
|
-
},
|
|
14341
|
+
}, bv = 2e3, xv = 4e3, Sv = /*#__PURE__*/ F_(/* @__PURE__ */ Fi({
|
|
14317
14342
|
__name: "MessageSteps",
|
|
14318
|
-
props: {
|
|
14343
|
+
props: {
|
|
14344
|
+
steps: {},
|
|
14345
|
+
icons: { default: () => ({ ...__ }) }
|
|
14346
|
+
},
|
|
14319
14347
|
setup(e) {
|
|
14320
14348
|
let t = e;
|
|
14321
14349
|
function n(e) {
|
|
@@ -14383,8 +14411,8 @@ var b_ = { class: "chat-header" }, x_ = { class: "header-left" }, S_ = { class:
|
|
|
14383
14411
|
} catch {
|
|
14384
14412
|
t = String(e);
|
|
14385
14413
|
}
|
|
14386
|
-
return t.length >
|
|
14387
|
-
text: t.slice(0,
|
|
14414
|
+
return t.length > bv ? {
|
|
14415
|
+
text: t.slice(0, bv) + "\n…(展示截断,复制可得全量)",
|
|
14388
14416
|
truncated: !0
|
|
14389
14417
|
} : {
|
|
14390
14418
|
text: t,
|
|
@@ -14395,8 +14423,8 @@ var b_ = { class: "chat-header" }, x_ = { class: "header-left" }, S_ = { class:
|
|
|
14395
14423
|
return e == null || e === "" ? {
|
|
14396
14424
|
text: "",
|
|
14397
14425
|
truncated: !1
|
|
14398
|
-
} : e.length >
|
|
14399
|
-
text: e.slice(0,
|
|
14426
|
+
} : e.length > xv ? {
|
|
14427
|
+
text: e.slice(0, xv) + "\n…(展示截断,复制可得全量)",
|
|
14400
14428
|
truncated: !0
|
|
14401
14429
|
} : {
|
|
14402
14430
|
text: e,
|
|
@@ -14416,65 +14444,65 @@ var b_ = { class: "chat-header" }, x_ = { class: "header-left" }, S_ = { class:
|
|
|
14416
14444
|
}
|
|
14417
14445
|
g_(e);
|
|
14418
14446
|
}
|
|
14419
|
-
return (t, s) => e.steps.length ? (Y(), X("div",
|
|
14420
|
-
key:
|
|
14421
|
-
class: H(["step-item",
|
|
14447
|
+
return (t, s) => e.steps.length ? (Y(), X("div", Q_, [(Y(!0), X(J, null, sa(i.value, (t, i) => (Y(), X("div", {
|
|
14448
|
+
key: i,
|
|
14449
|
+
class: H(["step-item", t.status])
|
|
14422
14450
|
}, [
|
|
14423
|
-
Z("div",
|
|
14424
|
-
Z("span", { class: H(["status-dot",
|
|
14425
|
-
Z("span",
|
|
14426
|
-
a(
|
|
14427
|
-
|
|
14428
|
-
Z("span", { class: H(["step-status",
|
|
14429
|
-
|
|
14430
|
-
f(
|
|
14451
|
+
Z("div", $_, [
|
|
14452
|
+
Z("span", { class: H(["status-dot", t.status]) }, null, 2),
|
|
14453
|
+
Z("span", ev, U(t.name), 1),
|
|
14454
|
+
a(t.name) ? (Y(), X("span", tv, U(e.icons.subagent) + " 子", 1)) : Q("", !0),
|
|
14455
|
+
t.count > 1 ? (Y(), X("span", nv, "×" + U(t.count), 1)) : Q("", !0),
|
|
14456
|
+
Z("span", { class: H(["step-status", t.status]) }, U(n(t.status)), 3),
|
|
14457
|
+
t.durationMs != null && t.status !== "running" ? (Y(), X("span", rv, U(o(t.durationMs)), 1)) : Q("", !0),
|
|
14458
|
+
f(t.calls) ? (Y(), X("button", {
|
|
14431
14459
|
key: 3,
|
|
14432
14460
|
type: "button",
|
|
14433
|
-
class: H(["step-detail-toggle", { open: u.has(
|
|
14434
|
-
onClick: (e) => d(
|
|
14435
|
-
}, U(u.has(
|
|
14461
|
+
class: H(["step-detail-toggle", { open: u.has(i) }]),
|
|
14462
|
+
onClick: (e) => d(i)
|
|
14463
|
+
}, U(u.has(i) ? "收起" : "展开"), 11, iv)) : Q("", !0)
|
|
14436
14464
|
]),
|
|
14437
|
-
u.has(
|
|
14465
|
+
u.has(i) && t.calls?.length ? (Y(), X("div", av, [(Y(!0), X(J, null, sa(t.calls, (e, n) => (Y(), X("div", {
|
|
14438
14466
|
key: n,
|
|
14439
14467
|
class: "step-detail-call"
|
|
14440
14468
|
}, [
|
|
14441
|
-
|
|
14442
|
-
p(
|
|
14469
|
+
t.count > 1 ? (Y(), X("div", ov, "第 " + U(n + 1) + " 次", 1)) : Q("", !0),
|
|
14470
|
+
p(e.args).text ? (Y(), X("div", sv, [Z("div", cv, [s[0] ||= _s("入参", -1), Z("button", {
|
|
14443
14471
|
type: "button",
|
|
14444
14472
|
class: "step-detail-copy",
|
|
14445
|
-
onClick: (
|
|
14446
|
-
}, "复制", 8,
|
|
14447
|
-
|
|
14473
|
+
onClick: (t) => h(p(e.args).text, p(e.args).truncated, e.args)
|
|
14474
|
+
}, "复制", 8, lv)]), Z("pre", uv, U(p(e.args).text), 1)])) : Q("", !0),
|
|
14475
|
+
e.status !== "running" && m(e.result).text ? (Y(), X("div", dv, [Z("div", fv, [s[1] ||= _s("返回值", -1), Z("button", {
|
|
14448
14476
|
type: "button",
|
|
14449
14477
|
class: "step-detail-copy",
|
|
14450
|
-
onClick: (
|
|
14451
|
-
}, "复制", 8,
|
|
14478
|
+
onClick: (t) => h(m(e.result).text, m(e.result).truncated, e.result)
|
|
14479
|
+
}, "复制", 8, pv)]), Z("pre", { class: H(["step-detail-pre", { err: e.status === "error" }]) }, U(m(e.result).text), 3)])) : e.status !== "running" && !m(e.result).text ? (Y(), X("div", mv, "(无返回值)")) : Q("", !0)
|
|
14452
14480
|
]))), 128))])) : Q("", !0),
|
|
14453
|
-
|
|
14481
|
+
t.subReason ? (Y(), as(Z_, {
|
|
14454
14482
|
key: 1,
|
|
14455
|
-
"sub-reason":
|
|
14456
|
-
"sub-reason-full":
|
|
14457
|
-
status:
|
|
14483
|
+
"sub-reason": t.subReason,
|
|
14484
|
+
"sub-reason-full": t.subReasonFull,
|
|
14485
|
+
status: t.status
|
|
14458
14486
|
}, null, 8, [
|
|
14459
14487
|
"sub-reason",
|
|
14460
14488
|
"sub-reason-full",
|
|
14461
14489
|
"status"
|
|
14462
14490
|
])) : Q("", !0),
|
|
14463
|
-
|
|
14491
|
+
t.children && t.children.length ? (Y(), X("div", hv, [Z("div", gv, U(e.icons.subagentProgress) + " 子 agent 进度", 1), (Y(!0), X(J, null, sa(r(t.children), (e, t) => (Y(), X("div", {
|
|
14464
14492
|
key: t,
|
|
14465
14493
|
class: H(["step-child", e.status])
|
|
14466
14494
|
}, [
|
|
14467
14495
|
Z("span", { class: H(["status-dot sm", e.status]) }, null, 2),
|
|
14468
|
-
Z("span",
|
|
14469
|
-
e.count > 1 ? (Y(), X("span",
|
|
14470
|
-
e.status === "running" ? (Y(), X("span",
|
|
14496
|
+
Z("span", _v, U(e.name), 1),
|
|
14497
|
+
e.count > 1 ? (Y(), X("span", vv, "×" + U(e.count), 1)) : Q("", !0),
|
|
14498
|
+
e.status === "running" ? (Y(), X("span", yv, "…")) : Q("", !0)
|
|
14471
14499
|
], 2))), 128))])) : Q("", !0)
|
|
14472
14500
|
], 2))), 128))])) : Q("", !0);
|
|
14473
14501
|
}
|
|
14474
|
-
}), [["__scopeId", "data-v-
|
|
14502
|
+
}), [["__scopeId", "data-v-a60af5d9"]]);
|
|
14475
14503
|
//#endregion
|
|
14476
14504
|
//#region node_modules/marked/lib/marked.esm.js
|
|
14477
|
-
function
|
|
14505
|
+
function Cv() {
|
|
14478
14506
|
return {
|
|
14479
14507
|
async: !1,
|
|
14480
14508
|
breaks: !1,
|
|
@@ -14488,35 +14516,35 @@ function vv() {
|
|
|
14488
14516
|
walkTokens: null
|
|
14489
14517
|
};
|
|
14490
14518
|
}
|
|
14491
|
-
var
|
|
14492
|
-
function
|
|
14493
|
-
|
|
14519
|
+
var wv = Cv();
|
|
14520
|
+
function Tv(e) {
|
|
14521
|
+
wv = e;
|
|
14494
14522
|
}
|
|
14495
|
-
var
|
|
14496
|
-
function
|
|
14523
|
+
var Ev = { exec: () => null };
|
|
14524
|
+
function Dv(e) {
|
|
14497
14525
|
let t = [];
|
|
14498
14526
|
return (n) => {
|
|
14499
14527
|
let r = Math.max(0, Math.min(3, n - 1)), i = t[r];
|
|
14500
14528
|
return i || (i = e(r), t[r] = i), i;
|
|
14501
14529
|
};
|
|
14502
14530
|
}
|
|
14503
|
-
function
|
|
14531
|
+
function Ov(e, t = "") {
|
|
14504
14532
|
let n = typeof e == "string" ? e : e.source, r = {
|
|
14505
14533
|
replace: (e, t) => {
|
|
14506
14534
|
let i = typeof t == "string" ? t : t.source;
|
|
14507
|
-
return i = i.replace(
|
|
14535
|
+
return i = i.replace(Av.caret, "$1"), n = n.replace(e, i), r;
|
|
14508
14536
|
},
|
|
14509
14537
|
getRegex: () => new RegExp(n, t)
|
|
14510
14538
|
};
|
|
14511
14539
|
return r;
|
|
14512
14540
|
}
|
|
14513
|
-
var
|
|
14541
|
+
var kv = ((e = "") => {
|
|
14514
14542
|
try {
|
|
14515
14543
|
return !!RegExp("(?<=1)(?<!1)" + e);
|
|
14516
14544
|
} catch {
|
|
14517
14545
|
return !1;
|
|
14518
14546
|
}
|
|
14519
|
-
})(),
|
|
14547
|
+
})(), Av = {
|
|
14520
14548
|
codeRemoveIndent: /^(?: {1,4}| {0,3}\t)/gm,
|
|
14521
14549
|
outputLinkReplace: /\\([\[\]])/g,
|
|
14522
14550
|
indentCodeCompensation: /^(\s+)(?:```)/,
|
|
@@ -14567,121 +14595,121 @@ var wv = ((e = "") => {
|
|
|
14567
14595
|
notSpaceStart: /^\S*/,
|
|
14568
14596
|
endingNewline: /\n$/,
|
|
14569
14597
|
listItemRegex: (e) => RegExp(`^( {0,3}${e})((?:[ ][^\\n]*)?(?:\\n|$))`),
|
|
14570
|
-
nextBulletRegex:
|
|
14571
|
-
hrRegex:
|
|
14572
|
-
fencesBeginRegex:
|
|
14573
|
-
headingBeginRegex:
|
|
14574
|
-
htmlBeginRegex:
|
|
14575
|
-
blockquoteBeginRegex:
|
|
14576
|
-
},
|
|
14577
|
-
blockquote:
|
|
14578
|
-
code:
|
|
14579
|
-
def:
|
|
14580
|
-
fences:
|
|
14581
|
-
heading:
|
|
14582
|
-
hr:
|
|
14583
|
-
html:
|
|
14584
|
-
lheading:
|
|
14585
|
-
list:
|
|
14586
|
-
newline:
|
|
14587
|
-
paragraph:
|
|
14588
|
-
table:
|
|
14589
|
-
text:
|
|
14590
|
-
},
|
|
14591
|
-
...
|
|
14592
|
-
lheading:
|
|
14593
|
-
table:
|
|
14594
|
-
paragraph:
|
|
14595
|
-
},
|
|
14596
|
-
...
|
|
14597
|
-
html:
|
|
14598
|
+
nextBulletRegex: Dv((e) => RegExp(`^ {0,${e}}(?:[*+-]|\\d{1,9}[.)])((?:[ ][^\\n]*)?(?:\\n|$))`)),
|
|
14599
|
+
hrRegex: Dv((e) => RegExp(`^ {0,${e}}((?:- *){3,}|(?:_ *){3,}|(?:\\* *){3,})(?:\\n+|$)`)),
|
|
14600
|
+
fencesBeginRegex: Dv((e) => RegExp(`^ {0,${e}}(?:\`\`\`|~~~)`)),
|
|
14601
|
+
headingBeginRegex: Dv((e) => RegExp(`^ {0,${e}}#`)),
|
|
14602
|
+
htmlBeginRegex: Dv((e) => RegExp(`^ {0,${e}}<(?:[a-z].*>|!--)`, "i")),
|
|
14603
|
+
blockquoteBeginRegex: Dv((e) => RegExp(`^ {0,${e}}>`))
|
|
14604
|
+
}, jv = /^(?:[ \t]*(?:\n|$))+/, Mv = /^((?: {4}| {0,3}\t)[^\n]+(?:\n(?:[ \t]*(?:\n|$))*)?)+/, Nv = /^ {0,3}(`{3,}(?=[^`\n]*(?:\n|$))|~{3,})([^\n]*)(?:\n|$)(?:|([\s\S]*?)(?:\n|$))(?: {0,3}\1[~`]* *(?=\n|$)|$)/, Pv = /^ {0,3}((?:-[\t ]*){3,}|(?:_[ \t]*){3,}|(?:\*[ \t]*){3,})(?:\n+|$)/, Fv = /^ {0,3}(#{1,6})(?=\s|$)(.*)(?:\n+|$)/, Iv = / {0,3}(?:[*+-]|\d{1,9}[.)])/, Lv = /^(?!bull |blockCode|fences|blockquote|heading|html|table)((?:.|\n(?!\s*?\n|bull |blockCode|fences|blockquote|heading|html|table))+?)\n {0,3}(=+|-+) *(?:\n+|$)/, Rv = Ov(Lv).replace(/bull/g, Iv).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(), zv = Ov(Lv).replace(/bull/g, Iv).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(), Bv = /^([^\n]+(?:\n(?!hr|heading|lheading|blockquote|fences|list|html|table| +\n)[^\n]+)*)/, Vv = /^[^\n]+/, Hv = /(?!\s*\])(?:\\[\s\S]|[^\[\]\\])+/, Uv = Ov(/^ {0,3}\[(label)\]: *(?:\n[ \t]*)?([^<\s][^\s]*|<.*?>)(?:(?: +(?:\n[ \t]*)?| *\n[ \t]*)(title))? *(?:\n+|$)/).replace("label", Hv).replace("title", /(?:"(?:\\"?|[^"\\])*"|'[^'\n]*(?:\n[^'\n]+)*\n?'|\([^()]*\))/).getRegex(), Wv = Ov(/^(bull)([ \t][^\n]*?)?(?:\n|$)/).replace(/bull/g, Iv).getRegex(), Gv = "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", Kv = /<!--(?:-?>|[\s\S]*?(?:-->|$))/, qv = Ov("^ {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", Kv).replace("tag", Gv).replace("attribute", / +[a-zA-Z:_][\w.:-]*(?: *= *"[^"\n]*"| *= *'[^'\n]*'| *= *[^\s"'=<>`]+)?/).getRegex(), Jv = (e) => Ov(Bv).replace("hr", Pv).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", Gv).getRegex(), Yv = Jv(/ {0,3}(?:[*+-]|1[.)])[ \t]+[^ \t\n]/), Xv = Jv(/ {0,3}(?:[*+-]|\d{1,9}[.)])[ \t]+[^ \t\n]/), Zv = {
|
|
14605
|
+
blockquote: Ov(/^( {0,3}> ?(paragraph|[^\n]*)(?:\n|$))+/).replace("paragraph", Xv).getRegex(),
|
|
14606
|
+
code: Mv,
|
|
14607
|
+
def: Uv,
|
|
14608
|
+
fences: Nv,
|
|
14609
|
+
heading: Fv,
|
|
14610
|
+
hr: Pv,
|
|
14611
|
+
html: qv,
|
|
14612
|
+
lheading: Rv,
|
|
14613
|
+
list: Wv,
|
|
14614
|
+
newline: jv,
|
|
14615
|
+
paragraph: Yv,
|
|
14616
|
+
table: Ev,
|
|
14617
|
+
text: Vv
|
|
14618
|
+
}, Qv = Ov("^ *([^\\n ].*)\\n {0,3}((?:\\| *)?:?-+:? *(?:\\| *:?-+:? *)*(?:\\| *)?)(?:\\n((?:(?! *\\n|hr|heading|blockquote|code|fences|list|html).*(?:\\n|$))*)\\n*|$)").replace("hr", Pv).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", Gv).getRegex(), $v = {
|
|
14619
|
+
...Zv,
|
|
14620
|
+
lheading: zv,
|
|
14621
|
+
table: Qv,
|
|
14622
|
+
paragraph: Ov(Bv).replace("hr", Pv).replace("heading", " {0,3}#{1,6}(?:\\s|$)").replace("|lheading", "").replace("table", Qv).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", Gv).getRegex()
|
|
14623
|
+
}, ey = {
|
|
14624
|
+
...Zv,
|
|
14625
|
+
html: Ov("^ *(?:comment *(?:\\n|\\s*$)|<(tag)[\\s\\S]+?</\\1> *(?:\\n{2,}|\\s*$)|<tag(?:\"[^\"]*\"|'[^']*'|\\s[^'\"/>\\s]*)*?/?> *(?:\\n{2,}|\\s*$))").replace("comment", Kv).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(),
|
|
14598
14626
|
def: /^ *\[([^\]]+)\]: *<?([^\s>]+)>?(?: +(["(][^\n]+[")]))? *(?:\n+|$)/,
|
|
14599
14627
|
heading: /^(#{1,6})(.*)(?:\n+|$)/,
|
|
14600
|
-
fences:
|
|
14628
|
+
fences: Ev,
|
|
14601
14629
|
lheading: /^(.+?)\n {0,3}(=+|-+) *(?:\n+|$)/,
|
|
14602
|
-
paragraph:
|
|
14603
|
-
},
|
|
14604
|
-
_backpedal:
|
|
14605
|
-
anyPunctuation:
|
|
14606
|
-
autolink:
|
|
14607
|
-
blockSkip:
|
|
14608
|
-
br:
|
|
14609
|
-
code:
|
|
14610
|
-
del:
|
|
14611
|
-
delLDelim:
|
|
14612
|
-
delRDelim:
|
|
14613
|
-
emStrongLDelim:
|
|
14614
|
-
emStrongRDelimAst:
|
|
14615
|
-
emStrongRDelimUnd:
|
|
14616
|
-
escape:
|
|
14617
|
-
link:
|
|
14618
|
-
nolink:
|
|
14619
|
-
punctuation:
|
|
14620
|
-
reflink:
|
|
14621
|
-
reflinkSearch:
|
|
14622
|
-
tag:
|
|
14623
|
-
text:
|
|
14624
|
-
url:
|
|
14625
|
-
},
|
|
14626
|
-
...
|
|
14627
|
-
link:
|
|
14628
|
-
reflink:
|
|
14629
|
-
},
|
|
14630
|
-
...
|
|
14631
|
-
emStrongRDelimAst:
|
|
14632
|
-
emStrongLDelim:
|
|
14633
|
-
delLDelim:
|
|
14634
|
-
delRDelim:
|
|
14635
|
-
url:
|
|
14630
|
+
paragraph: Ov(Bv).replace("hr", Pv).replace("heading", " *#{1,6} *[^\n]").replace("lheading", Rv).replace("|table", "").replace("blockquote", " {0,3}>").replace("|fences", "").replace("|list", "").replace("|html", "").replace("|tag", "").getRegex()
|
|
14631
|
+
}, ty = /^\\([!"#$%&'()*+,\-./:;<=>?@\[\]\\^_`{|}~])/, ny = /^(`+)([^`]|[^`][\s\S]*?[^`])\1(?!`)/, ry = /^( {2,}|\\)\n(?!\s*$)/, iy = /^(`+|[^`])(?:(?= {2,}\n)|[\s\S]*?(?:(?=[\\<!\[`*_]|\b_|$)|[^ ](?= {2,}\n)))/, ay = /[\p{P}\p{S}]/u, oy = /[\s\p{P}\p{S}]/u, sy = /[^\s\p{P}\p{S}]/u, cy = Ov(/^((?![*_])punctSpace)/, "u").replace(/punctSpace/g, oy).getRegex(), ly = /(?!~)[\p{P}\p{S}]/u, uy = /(?!~)[\s\p{P}\p{S}]/u, dy = /(?:[^\s\p{P}\p{S}]|~)/u, fy = Ov(/link|precode-code|html/, "g").replace("link", /\[(?:[^\[\]`]|(?<a>`+)[^`]+\k<a>(?!`))*?\]\((?:\\[\s\S]|[^\\\(\)]|\((?:\\[\s\S]|[^\\\(\)])*\))*\)/).replace("precode-", kv ? "(?<!`)()" : "(^^|[^`])").replace("code", /(?<b>`+)[^`]+\k<b>(?!`)/).replace("html", /<(?! )[^<>]*?>/).getRegex(), py = /^(?:\*+(?:((?!\*)punct)|([^\s*]))?)|^_+(?:((?!_)punct)|([^\s_]))?/, my = Ov(py, "u").replace(/punct/g, ay).getRegex(), hy = Ov(py, "u").replace(/punct/g, ly).getRegex(), gy = "^[^_*]*?__[^_*]*?\\*[^_*]*?(?=__)|[^*]+(?=[^*])|(?!\\*)punct(\\*+)(?=[\\s]|$)|notPunctSpace(\\*+)(?!\\*)(?=punctSpace|$)|(?!\\*)punctSpace(\\*+)(?=notPunctSpace)|[\\s](\\*+)(?!\\*)(?=punct)|(?!\\*)punct(\\*+)(?!\\*)(?=punct)|notPunctSpace(\\*+)(?=notPunctSpace)", _y = Ov(gy, "gu").replace(/notPunctSpace/g, sy).replace(/punctSpace/g, oy).replace(/punct/g, ay).getRegex(), vy = Ov(gy, "gu").replace(/notPunctSpace/g, dy).replace(/punctSpace/g, uy).replace(/punct/g, ly).getRegex(), yy = Ov("^[^_*]*?\\*\\*[^_*]*?_[^_*]*?(?=\\*\\*)|[^_]+(?=[^_])|(?!_)punct(_+)(?=[\\s]|$)|notPunctSpace(_+)(?!_)(?=punctSpace|$)|(?!_)punctSpace(_+)(?=notPunctSpace)|[\\s](_+)(?!_)(?=punct)|(?!_)punct(_+)(?!_)(?=punct)", "gu").replace(/notPunctSpace/g, sy).replace(/punctSpace/g, oy).replace(/punct/g, ay).getRegex(), by = Ov(/^~~?(?:((?!~)punct)|[^\s~])/, "u").replace(/punct/g, ay).getRegex(), xy = Ov("^[^~]+(?=[^~])|(?!~)punct(~~?)(?=[\\s]|$)|notPunctSpace(~~?)(?!~)(?=punctSpace|$)|(?!~)punctSpace(~~?)(?=notPunctSpace)|[\\s](~~?)(?!~)(?=punct)|(?!~)punct(~~?)(?!~)(?=punct)|notPunctSpace(~~?)(?=notPunctSpace)", "gu").replace(/notPunctSpace/g, sy).replace(/punctSpace/g, oy).replace(/punct/g, ay).getRegex(), Sy = Ov(/\\(punct)/, "gu").replace(/punct/g, ay).getRegex(), Cy = Ov(/^<(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(), wy = Ov(Kv).replace("(?:-->|$)", "-->").getRegex(), Ty = Ov("^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", wy).replace("attribute", /\s+[a-zA-Z:_][\w.:-]*(?:\s*=\s*"[^"]*"|\s*=\s*'[^']*'|\s*=\s*[^\s"'=<>`]+)?/).getRegex(), Ey = /(?:\[(?:\\[\s\S]|[^\[\]\\])*\]|\\[\s\S]|`+(?!`)[^`]*?`+(?!`)|``+(?=\])|[^\[\]\\`])*?/, Dy = Ov(/^!?\[(label)\]\(\s*(href)(?:(?:[ \t]+(?:\n[ \t]*)?|\n[ \t]*)(title))?\s*\)/).replace("label", Ey).replace("href", /<(?:\\.|[^\n<>\\])+>|[^ \t\n\x00-\x1f]+|(?=\))/).replace("title", /"(?:\\"?|[^"\\])*"|'(?:\\'?|[^'\\])*'|\((?:\\\)?|[^)\\])*\)/).getRegex(), Oy = Ov(/^!?\[(label)\]\[(ref)\]/).replace("label", Ey).replace("ref", Hv).getRegex(), ky = Ov(/^!?\[(ref)\](?:\[\])?/).replace("ref", Hv).getRegex(), Ay = Ov("reflink|nolink(?!\\()", "g").replace("reflink", Oy).replace("nolink", ky).getRegex(), jy = /[hH][tT][tT][pP][sS]?|[fF][tT][pP]/, My = {
|
|
14632
|
+
_backpedal: Ev,
|
|
14633
|
+
anyPunctuation: Sy,
|
|
14634
|
+
autolink: Cy,
|
|
14635
|
+
blockSkip: fy,
|
|
14636
|
+
br: ry,
|
|
14637
|
+
code: ny,
|
|
14638
|
+
del: Ev,
|
|
14639
|
+
delLDelim: Ev,
|
|
14640
|
+
delRDelim: Ev,
|
|
14641
|
+
emStrongLDelim: my,
|
|
14642
|
+
emStrongRDelimAst: _y,
|
|
14643
|
+
emStrongRDelimUnd: yy,
|
|
14644
|
+
escape: ty,
|
|
14645
|
+
link: Dy,
|
|
14646
|
+
nolink: ky,
|
|
14647
|
+
punctuation: cy,
|
|
14648
|
+
reflink: Oy,
|
|
14649
|
+
reflinkSearch: Ay,
|
|
14650
|
+
tag: Ty,
|
|
14651
|
+
text: iy,
|
|
14652
|
+
url: Ev
|
|
14653
|
+
}, Ny = {
|
|
14654
|
+
...My,
|
|
14655
|
+
link: Ov(/^!?\[(label)\]\((.*?)\)/).replace("label", Ey).getRegex(),
|
|
14656
|
+
reflink: Ov(/^!?\[(label)\]\s*\[([^\]]*)\]/).replace("label", Ey).getRegex()
|
|
14657
|
+
}, Py = {
|
|
14658
|
+
...My,
|
|
14659
|
+
emStrongRDelimAst: vy,
|
|
14660
|
+
emStrongLDelim: hy,
|
|
14661
|
+
delLDelim: by,
|
|
14662
|
+
delRDelim: xy,
|
|
14663
|
+
url: Ov(/^((?:protocol):\/\/|www\.)(?:[a-zA-Z0-9\-]+\.?)+[^\s<]*|^email/).replace("protocol", jy).replace("email", /[A-Za-z0-9._+-]+(@)[a-zA-Z0-9-_]+(?:\.[a-zA-Z0-9-_]*[a-zA-Z0-9])+(?![-_])/).getRegex(),
|
|
14636
14664
|
_backpedal: /(?:[^?!.,:;*_'"~()&]+|\([^)]*\)|&(?![a-zA-Z0-9]+;$)|[?!.,:;*_'"~)]+(?!$))+/,
|
|
14637
14665
|
del: /^(~~?)(?=[^\s~])((?:\\[\s\S]|[^\\])*?(?:\\[\s\S]|[^\s~\\]))\1(?=[^~]|$)/,
|
|
14638
|
-
text:
|
|
14639
|
-
},
|
|
14640
|
-
...
|
|
14641
|
-
br:
|
|
14642
|
-
text:
|
|
14643
|
-
},
|
|
14644
|
-
normal:
|
|
14645
|
-
gfm:
|
|
14646
|
-
pedantic:
|
|
14647
|
-
},
|
|
14648
|
-
normal:
|
|
14649
|
-
gfm:
|
|
14650
|
-
breaks:
|
|
14651
|
-
pedantic:
|
|
14652
|
-
},
|
|
14666
|
+
text: Ov(/^([`~]+|[^`~])(?:(?= {2,}\n)|(?=[a-zA-Z0-9.!#$%&'*+\/=?_`{\|}~-]+@)|[\s\S]*?(?:(?=[\\<!\[`*~_]|\b_|protocol:\/\/|www\.|$)|[^ ](?= {2,}\n)|[^a-zA-Z0-9.!#$%&'*+\/=?_`{\|}~-](?=[a-zA-Z0-9.!#$%&'*+\/=?_`{\|}~-]+@)))/).replace("protocol", jy).getRegex()
|
|
14667
|
+
}, Fy = {
|
|
14668
|
+
...Py,
|
|
14669
|
+
br: Ov(ry).replace("{2,}", "*").getRegex(),
|
|
14670
|
+
text: Ov(Py.text).replace("\\b_", "\\b_| {2,}\\n").replace(/\{2,\}/g, "*").getRegex()
|
|
14671
|
+
}, Iy = {
|
|
14672
|
+
normal: Zv,
|
|
14673
|
+
gfm: $v,
|
|
14674
|
+
pedantic: ey
|
|
14675
|
+
}, Ly = {
|
|
14676
|
+
normal: My,
|
|
14677
|
+
gfm: Py,
|
|
14678
|
+
breaks: Fy,
|
|
14679
|
+
pedantic: Ny
|
|
14680
|
+
}, Ry = {
|
|
14653
14681
|
"&": "&",
|
|
14654
14682
|
"<": "<",
|
|
14655
14683
|
">": ">",
|
|
14656
14684
|
"\"": """,
|
|
14657
14685
|
"'": "'"
|
|
14658
|
-
},
|
|
14659
|
-
function
|
|
14686
|
+
}, zy = (e) => Ry[e];
|
|
14687
|
+
function By(e, t) {
|
|
14660
14688
|
if (t) {
|
|
14661
|
-
if (
|
|
14662
|
-
} else if (
|
|
14689
|
+
if (Av.escapeTest.test(e)) return e.replace(Av.escapeReplace, zy);
|
|
14690
|
+
} else if (Av.escapeTestNoEncode.test(e)) return e.replace(Av.escapeReplaceNoEncode, zy);
|
|
14663
14691
|
return e;
|
|
14664
14692
|
}
|
|
14665
|
-
function
|
|
14693
|
+
function Vy(e) {
|
|
14666
14694
|
try {
|
|
14667
|
-
e = encodeURI(e).replace(
|
|
14695
|
+
e = encodeURI(e).replace(Av.percentDecode, "%");
|
|
14668
14696
|
} catch {
|
|
14669
14697
|
return null;
|
|
14670
14698
|
}
|
|
14671
14699
|
return e;
|
|
14672
14700
|
}
|
|
14673
|
-
function
|
|
14674
|
-
let n = e.replace(
|
|
14701
|
+
function Hy(e, t) {
|
|
14702
|
+
let n = e.replace(Av.findPipe, (e, t, n) => {
|
|
14675
14703
|
let r = !1, i = t;
|
|
14676
14704
|
for (; --i >= 0 && n[i] === "\\";) r = !r;
|
|
14677
14705
|
return r ? "|" : " |";
|
|
14678
|
-
}).split(
|
|
14706
|
+
}).split(Av.splitPipe), r = 0;
|
|
14679
14707
|
if (n[0].trim() || n.shift(), n.length > 0 && !n.at(-1)?.trim() && n.pop(), t) if (n.length > t) n.splice(t);
|
|
14680
14708
|
else for (; n.length < t;) n.push("");
|
|
14681
|
-
for (; r < n.length; r++) n[r] = n[r].trim().replace(
|
|
14709
|
+
for (; r < n.length; r++) n[r] = n[r].trim().replace(Av.slashPipe, "|");
|
|
14682
14710
|
return n;
|
|
14683
14711
|
}
|
|
14684
|
-
function
|
|
14712
|
+
function Uy(e, t, n) {
|
|
14685
14713
|
let r = e.length;
|
|
14686
14714
|
if (r === 0) return "";
|
|
14687
14715
|
let i = 0;
|
|
@@ -14693,12 +14721,12 @@ function Ry(e, t, n) {
|
|
|
14693
14721
|
}
|
|
14694
14722
|
return e.slice(0, r - i);
|
|
14695
14723
|
}
|
|
14696
|
-
function
|
|
14724
|
+
function Wy(e) {
|
|
14697
14725
|
let t = e.split("\n"), n = t.length - 1;
|
|
14698
|
-
for (; n >= 0 &&
|
|
14726
|
+
for (; n >= 0 && Av.blankLine.test(t[n]);) n--;
|
|
14699
14727
|
return t.length - n <= 2 ? e : t.slice(0, n + 1).join("\n");
|
|
14700
14728
|
}
|
|
14701
|
-
function
|
|
14729
|
+
function Gy(e, t) {
|
|
14702
14730
|
if (e.indexOf(t[1]) === -1) return -1;
|
|
14703
14731
|
let n = 0;
|
|
14704
14732
|
for (let r = 0; r < e.length; r++) if (e[r] === "\\") r++;
|
|
@@ -14706,7 +14734,7 @@ function By(e, t) {
|
|
|
14706
14734
|
else if (e[r] === t[1] && (n--, n < 0)) return r;
|
|
14707
14735
|
return n > 0 ? -2 : -1;
|
|
14708
14736
|
}
|
|
14709
|
-
function
|
|
14737
|
+
function Ky(e, t = 0) {
|
|
14710
14738
|
let n = t, r = "";
|
|
14711
14739
|
for (let t of e) if (t === " ") {
|
|
14712
14740
|
let e = 4 - n % 4;
|
|
@@ -14714,7 +14742,7 @@ function Vy(e, t = 0) {
|
|
|
14714
14742
|
} else r += t, n++;
|
|
14715
14743
|
return r;
|
|
14716
14744
|
}
|
|
14717
|
-
function
|
|
14745
|
+
function qy(e, t, n, r, i) {
|
|
14718
14746
|
let a = t.href, o = t.title || null, s = e[1].replace(i.other.outputLinkReplace, "$1");
|
|
14719
14747
|
r.state.inLink = !0;
|
|
14720
14748
|
let c = {
|
|
@@ -14727,7 +14755,7 @@ function Hy(e, t, n, r, i) {
|
|
|
14727
14755
|
};
|
|
14728
14756
|
return r.state.inLink = !1, c;
|
|
14729
14757
|
}
|
|
14730
|
-
function
|
|
14758
|
+
function Jy(e, t, n) {
|
|
14731
14759
|
let r = e.match(n.other.indentCodeCompensation);
|
|
14732
14760
|
if (r === null) return t;
|
|
14733
14761
|
let i = r[1];
|
|
@@ -14738,12 +14766,12 @@ function Uy(e, t, n) {
|
|
|
14738
14766
|
return r.length >= i.length ? e.slice(i.length) : e;
|
|
14739
14767
|
}).join("\n");
|
|
14740
14768
|
}
|
|
14741
|
-
var
|
|
14769
|
+
var Yy = class {
|
|
14742
14770
|
options;
|
|
14743
14771
|
rules;
|
|
14744
14772
|
lexer;
|
|
14745
14773
|
constructor(e) {
|
|
14746
|
-
this.options = e ||
|
|
14774
|
+
this.options = e || wv;
|
|
14747
14775
|
}
|
|
14748
14776
|
space(e) {
|
|
14749
14777
|
let t = this.rules.block.newline.exec(e);
|
|
@@ -14755,7 +14783,7 @@ var Wy = class {
|
|
|
14755
14783
|
code(e) {
|
|
14756
14784
|
let t = this.rules.block.code.exec(e);
|
|
14757
14785
|
if (t) {
|
|
14758
|
-
let e = this.options.pedantic ? t[0] :
|
|
14786
|
+
let e = this.options.pedantic ? t[0] : Wy(t[0]);
|
|
14759
14787
|
return {
|
|
14760
14788
|
type: "code",
|
|
14761
14789
|
raw: e,
|
|
@@ -14767,7 +14795,7 @@ var Wy = class {
|
|
|
14767
14795
|
fences(e) {
|
|
14768
14796
|
let t = this.rules.block.fences.exec(e);
|
|
14769
14797
|
if (t) {
|
|
14770
|
-
let e = t[0], n =
|
|
14798
|
+
let e = t[0], n = Jy(e, t[3] || "", this.rules);
|
|
14771
14799
|
return {
|
|
14772
14800
|
type: "code",
|
|
14773
14801
|
raw: e,
|
|
@@ -14781,12 +14809,12 @@ var Wy = class {
|
|
|
14781
14809
|
if (t) {
|
|
14782
14810
|
let e = t[2].trim();
|
|
14783
14811
|
if (this.rules.other.endingHash.test(e)) {
|
|
14784
|
-
let t =
|
|
14812
|
+
let t = Uy(e, "#");
|
|
14785
14813
|
(this.options.pedantic || !t || this.rules.other.endingSpaceChar.test(t)) && (e = t.trim());
|
|
14786
14814
|
}
|
|
14787
14815
|
return {
|
|
14788
14816
|
type: "heading",
|
|
14789
|
-
raw:
|
|
14817
|
+
raw: Uy(t[0], "\n"),
|
|
14790
14818
|
depth: t[1].length,
|
|
14791
14819
|
text: e,
|
|
14792
14820
|
tokens: this.lexer.inline(e)
|
|
@@ -14797,13 +14825,13 @@ var Wy = class {
|
|
|
14797
14825
|
let t = this.rules.block.hr.exec(e);
|
|
14798
14826
|
if (t) return {
|
|
14799
14827
|
type: "hr",
|
|
14800
|
-
raw:
|
|
14828
|
+
raw: Uy(t[0], "\n")
|
|
14801
14829
|
};
|
|
14802
14830
|
}
|
|
14803
14831
|
blockquote(e) {
|
|
14804
14832
|
let t = this.rules.block.blockquote.exec(e);
|
|
14805
14833
|
if (t) {
|
|
14806
|
-
let e =
|
|
14834
|
+
let e = Uy(t[0], "\n").split("\n"), n = "", r = "", i = [];
|
|
14807
14835
|
for (; e.length > 0;) {
|
|
14808
14836
|
let t = !1, a = [], o;
|
|
14809
14837
|
for (o = 0; o < e.length; o++) if (this.rules.other.blockquoteStart.test(e[o])) a.push(e[o]), t = !0;
|
|
@@ -14853,7 +14881,7 @@ ${c}` : c;
|
|
|
14853
14881
|
let n = !1, r = "", s = "";
|
|
14854
14882
|
if (!(t = a.exec(e)) || this.rules.block.hr.test(e)) break;
|
|
14855
14883
|
r = t[0], e = e.substring(r.length);
|
|
14856
|
-
let c =
|
|
14884
|
+
let c = Ky(t[2].split("\n", 1)[0], t[1].length), l = e.split("\n", 1)[0], u = !c.trim(), d = 0;
|
|
14857
14885
|
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) {
|
|
14858
14886
|
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);
|
|
14859
14887
|
for (; e;) {
|
|
@@ -14919,7 +14947,7 @@ ${c}` : c;
|
|
|
14919
14947
|
html(e) {
|
|
14920
14948
|
let t = this.rules.block.html.exec(e);
|
|
14921
14949
|
if (t) {
|
|
14922
|
-
let e =
|
|
14950
|
+
let e = Wy(t[0]);
|
|
14923
14951
|
return {
|
|
14924
14952
|
type: "html",
|
|
14925
14953
|
block: !0,
|
|
@@ -14936,7 +14964,7 @@ ${c}` : c;
|
|
|
14936
14964
|
return {
|
|
14937
14965
|
type: "def",
|
|
14938
14966
|
tag: e,
|
|
14939
|
-
raw:
|
|
14967
|
+
raw: Uy(t[0], "\n"),
|
|
14940
14968
|
href: n,
|
|
14941
14969
|
title: r
|
|
14942
14970
|
};
|
|
@@ -14945,9 +14973,9 @@ ${c}` : c;
|
|
|
14945
14973
|
table(e) {
|
|
14946
14974
|
let t = this.rules.block.table.exec(e);
|
|
14947
14975
|
if (!t || !this.rules.other.tableDelimiter.test(t[2])) return;
|
|
14948
|
-
let n =
|
|
14976
|
+
let n = Hy(t[1]), r = t[2].replace(this.rules.other.tableAlignChars, "").split("|"), i = t[3]?.trim() ? t[3].replace(this.rules.other.tableRowBlankLine, "").split("\n") : [], a = {
|
|
14949
14977
|
type: "table",
|
|
14950
|
-
raw:
|
|
14978
|
+
raw: Uy(t[0], "\n"),
|
|
14951
14979
|
header: [],
|
|
14952
14980
|
align: [],
|
|
14953
14981
|
rows: []
|
|
@@ -14960,7 +14988,7 @@ ${c}` : c;
|
|
|
14960
14988
|
header: !0,
|
|
14961
14989
|
align: a.align[e]
|
|
14962
14990
|
});
|
|
14963
|
-
for (let e of i) a.rows.push(
|
|
14991
|
+
for (let e of i) a.rows.push(Hy(e, a.header.length).map((e, t) => ({
|
|
14964
14992
|
text: e,
|
|
14965
14993
|
tokens: this.lexer.inline(e),
|
|
14966
14994
|
header: !1,
|
|
@@ -14975,7 +15003,7 @@ ${c}` : c;
|
|
|
14975
15003
|
let e = t[1].trim();
|
|
14976
15004
|
return {
|
|
14977
15005
|
type: "heading",
|
|
14978
|
-
raw:
|
|
15006
|
+
raw: Uy(t[0], "\n"),
|
|
14979
15007
|
depth: t[2].charAt(0) === "=" ? 1 : 2,
|
|
14980
15008
|
text: e,
|
|
14981
15009
|
tokens: this.lexer.inline(e)
|
|
@@ -15028,10 +15056,10 @@ ${c}` : c;
|
|
|
15028
15056
|
let e = t[2].trim();
|
|
15029
15057
|
if (!this.options.pedantic && this.rules.other.startAngleBracket.test(e)) {
|
|
15030
15058
|
if (!this.rules.other.endAngleBracket.test(e)) return;
|
|
15031
|
-
let t =
|
|
15059
|
+
let t = Uy(e.slice(0, -1), "\\");
|
|
15032
15060
|
if ((e.length - t.length) % 2 == 0) return;
|
|
15033
15061
|
} else {
|
|
15034
|
-
let e =
|
|
15062
|
+
let e = Gy(t[2], "()");
|
|
15035
15063
|
if (e === -2) return;
|
|
15036
15064
|
if (e > -1) {
|
|
15037
15065
|
let n = (t[0].indexOf("!") === 0 ? 5 : 4) + t[1].length + e;
|
|
@@ -15043,7 +15071,7 @@ ${c}` : c;
|
|
|
15043
15071
|
let e = this.rules.other.pedanticHrefTitle.exec(n);
|
|
15044
15072
|
e && (n = e[1], r = e[3]);
|
|
15045
15073
|
} else r = t[3] ? t[3].slice(1, -1) : "";
|
|
15046
|
-
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)),
|
|
15074
|
+
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)), qy(t, {
|
|
15047
15075
|
href: n && n.replace(this.rules.inline.anyPunctuation, "$1"),
|
|
15048
15076
|
title: r && r.replace(this.rules.inline.anyPunctuation, "$1")
|
|
15049
15077
|
}, t[0], this.lexer, this.rules);
|
|
@@ -15061,7 +15089,7 @@ ${c}` : c;
|
|
|
15061
15089
|
text: e
|
|
15062
15090
|
};
|
|
15063
15091
|
}
|
|
15064
|
-
return
|
|
15092
|
+
return qy(n, e, n[0], this.lexer, this.rules);
|
|
15065
15093
|
}
|
|
15066
15094
|
}
|
|
15067
15095
|
emStrong(e, t, n = "") {
|
|
@@ -15193,29 +15221,29 @@ ${c}` : c;
|
|
|
15193
15221
|
};
|
|
15194
15222
|
}
|
|
15195
15223
|
}
|
|
15196
|
-
},
|
|
15224
|
+
}, Xy = class e {
|
|
15197
15225
|
tokens;
|
|
15198
15226
|
options;
|
|
15199
15227
|
state;
|
|
15200
15228
|
inlineQueue;
|
|
15201
15229
|
tokenizer;
|
|
15202
15230
|
constructor(e) {
|
|
15203
|
-
this.tokens = [], this.tokens.links = Object.create(null), this.options = e ||
|
|
15231
|
+
this.tokens = [], this.tokens.links = Object.create(null), this.options = e || wv, this.options.tokenizer = this.options.tokenizer || new Yy(), this.tokenizer = this.options.tokenizer, this.tokenizer.options = this.options, this.tokenizer.lexer = this, this.inlineQueue = [], this.state = {
|
|
15204
15232
|
inLink: !1,
|
|
15205
15233
|
inRawBlock: !1,
|
|
15206
15234
|
top: !0
|
|
15207
15235
|
};
|
|
15208
15236
|
let t = {
|
|
15209
|
-
other:
|
|
15210
|
-
block:
|
|
15211
|
-
inline:
|
|
15237
|
+
other: Av,
|
|
15238
|
+
block: Iy.normal,
|
|
15239
|
+
inline: Ly.normal
|
|
15212
15240
|
};
|
|
15213
|
-
this.options.pedantic ? (t.block =
|
|
15241
|
+
this.options.pedantic ? (t.block = Iy.pedantic, t.inline = Ly.pedantic) : this.options.gfm && (t.block = Iy.gfm, this.options.breaks ? t.inline = Ly.breaks : t.inline = Ly.gfm), this.tokenizer.rules = t;
|
|
15214
15242
|
}
|
|
15215
15243
|
static get rules() {
|
|
15216
15244
|
return {
|
|
15217
|
-
block:
|
|
15218
|
-
inline:
|
|
15245
|
+
block: Iy,
|
|
15246
|
+
inline: Ly
|
|
15219
15247
|
};
|
|
15220
15248
|
}
|
|
15221
15249
|
static lex(t, n) {
|
|
@@ -15225,7 +15253,7 @@ ${c}` : c;
|
|
|
15225
15253
|
return new e(n).inlineTokens(t);
|
|
15226
15254
|
}
|
|
15227
15255
|
lex(e) {
|
|
15228
|
-
e = e.replace(
|
|
15256
|
+
e = e.replace(Av.carriageReturn, "\n"), this.blockTokens(e, this.tokens);
|
|
15229
15257
|
for (let e = 0; e < this.inlineQueue.length; e++) {
|
|
15230
15258
|
let t = this.inlineQueue[e];
|
|
15231
15259
|
this.inlineTokens(t.src, t.tokens);
|
|
@@ -15233,7 +15261,7 @@ ${c}` : c;
|
|
|
15233
15261
|
return this.inlineQueue = [], this.tokens;
|
|
15234
15262
|
}
|
|
15235
15263
|
blockTokens(e, t = [], n = !1) {
|
|
15236
|
-
this.tokenizer.lexer = this, this.options.pedantic && (e = e.replace(
|
|
15264
|
+
this.tokenizer.lexer = this, this.options.pedantic && (e = e.replace(Av.tabCharGlobal, " ").replace(Av.spaceLine, ""));
|
|
15237
15265
|
let r = Infinity;
|
|
15238
15266
|
for (; e;) {
|
|
15239
15267
|
if (e.length < r) r = e.length;
|
|
@@ -15415,18 +15443,18 @@ ${c}` : c;
|
|
|
15415
15443
|
if (this.options.silent) console.error(t);
|
|
15416
15444
|
else throw Error(t);
|
|
15417
15445
|
}
|
|
15418
|
-
},
|
|
15446
|
+
}, Zy = class {
|
|
15419
15447
|
options;
|
|
15420
15448
|
parser;
|
|
15421
15449
|
constructor(e) {
|
|
15422
|
-
this.options = e ||
|
|
15450
|
+
this.options = e || wv;
|
|
15423
15451
|
}
|
|
15424
15452
|
space(e) {
|
|
15425
15453
|
return "";
|
|
15426
15454
|
}
|
|
15427
15455
|
code({ text: e, lang: t, escaped: n }) {
|
|
15428
|
-
let r = (t || "").match(
|
|
15429
|
-
return r ? "<pre><code class=\"language-" +
|
|
15456
|
+
let r = (t || "").match(Av.notSpaceStart)?.[0], i = e.replace(Av.endingNewline, "") + "\n";
|
|
15457
|
+
return r ? "<pre><code class=\"language-" + By(r) + "\">" + (n ? i : By(i, !0)) + "</code></pre>\n" : "<pre><code>" + (n ? i : By(i, !0)) + "</code></pre>\n";
|
|
15430
15458
|
}
|
|
15431
15459
|
blockquote({ tokens: e }) {
|
|
15432
15460
|
return `<blockquote>
|
|
@@ -15496,7 +15524,7 @@ ${e}</tr>
|
|
|
15496
15524
|
return `<em>${this.parser.parseInline(e)}</em>`;
|
|
15497
15525
|
}
|
|
15498
15526
|
codespan({ text: e }) {
|
|
15499
|
-
return `<code>${
|
|
15527
|
+
return `<code>${By(e, !0)}</code>`;
|
|
15500
15528
|
}
|
|
15501
15529
|
br(e) {
|
|
15502
15530
|
return "<br>";
|
|
@@ -15505,24 +15533,24 @@ ${e}</tr>
|
|
|
15505
15533
|
return `<del>${this.parser.parseInline(e)}</del>`;
|
|
15506
15534
|
}
|
|
15507
15535
|
link({ href: e, title: t, tokens: n }) {
|
|
15508
|
-
let r = this.parser.parseInline(n), i =
|
|
15536
|
+
let r = this.parser.parseInline(n), i = Vy(e);
|
|
15509
15537
|
if (i === null) return r;
|
|
15510
15538
|
e = i;
|
|
15511
15539
|
let a = "<a href=\"" + e + "\"";
|
|
15512
|
-
return t && (a += " title=\"" +
|
|
15540
|
+
return t && (a += " title=\"" + By(t) + "\""), a += ">" + r + "</a>", a;
|
|
15513
15541
|
}
|
|
15514
15542
|
image({ href: e, title: t, text: n, tokens: r }) {
|
|
15515
15543
|
r && (n = this.parser.parseInline(r, this.parser.textRenderer));
|
|
15516
|
-
let i =
|
|
15517
|
-
if (i === null) return
|
|
15544
|
+
let i = Vy(e);
|
|
15545
|
+
if (i === null) return By(n);
|
|
15518
15546
|
e = i;
|
|
15519
|
-
let a = `<img src="${e}" alt="${
|
|
15520
|
-
return t && (a += ` title="${
|
|
15547
|
+
let a = `<img src="${e}" alt="${By(n)}"`;
|
|
15548
|
+
return t && (a += ` title="${By(t)}"`), a += ">", a;
|
|
15521
15549
|
}
|
|
15522
15550
|
text(e) {
|
|
15523
|
-
return "tokens" in e && e.tokens ? this.parser.parseInline(e.tokens) : "escaped" in e && e.escaped ? e.text :
|
|
15551
|
+
return "tokens" in e && e.tokens ? this.parser.parseInline(e.tokens) : "escaped" in e && e.escaped ? e.text : By(e.text);
|
|
15524
15552
|
}
|
|
15525
|
-
},
|
|
15553
|
+
}, Qy = class {
|
|
15526
15554
|
strong({ text: e }) {
|
|
15527
15555
|
return e;
|
|
15528
15556
|
}
|
|
@@ -15553,12 +15581,12 @@ ${e}</tr>
|
|
|
15553
15581
|
checkbox({ raw: e }) {
|
|
15554
15582
|
return e;
|
|
15555
15583
|
}
|
|
15556
|
-
},
|
|
15584
|
+
}, $y = class e {
|
|
15557
15585
|
options;
|
|
15558
15586
|
renderer;
|
|
15559
15587
|
textRenderer;
|
|
15560
15588
|
constructor(e) {
|
|
15561
|
-
this.options = e ||
|
|
15589
|
+
this.options = e || wv, this.options.renderer = this.options.renderer || new Zy(), this.renderer = this.options.renderer, this.renderer.options = this.options, this.renderer.parser = this, this.textRenderer = new Qy();
|
|
15562
15590
|
}
|
|
15563
15591
|
static parse(t, n) {
|
|
15564
15592
|
return new e(n).parse(t);
|
|
@@ -15704,11 +15732,11 @@ ${e}</tr>
|
|
|
15704
15732
|
}
|
|
15705
15733
|
return n;
|
|
15706
15734
|
}
|
|
15707
|
-
},
|
|
15735
|
+
}, eb = class {
|
|
15708
15736
|
options;
|
|
15709
15737
|
block;
|
|
15710
15738
|
constructor(e) {
|
|
15711
|
-
this.options = e ||
|
|
15739
|
+
this.options = e || wv;
|
|
15712
15740
|
}
|
|
15713
15741
|
static passThroughHooks = /* @__PURE__ */ new Set([
|
|
15714
15742
|
"preprocess",
|
|
@@ -15734,22 +15762,22 @@ ${e}</tr>
|
|
|
15734
15762
|
return e;
|
|
15735
15763
|
}
|
|
15736
15764
|
provideLexer(e = this.block) {
|
|
15737
|
-
return e ?
|
|
15765
|
+
return e ? Xy.lex : Xy.lexInline;
|
|
15738
15766
|
}
|
|
15739
15767
|
provideParser(e = this.block) {
|
|
15740
|
-
return e ?
|
|
15768
|
+
return e ? $y.parse : $y.parseInline;
|
|
15741
15769
|
}
|
|
15742
|
-
},
|
|
15743
|
-
defaults =
|
|
15770
|
+
}, tb = new class {
|
|
15771
|
+
defaults = Cv();
|
|
15744
15772
|
options = this.setOptions;
|
|
15745
15773
|
parse = this.parseMarkdown(!0);
|
|
15746
15774
|
parseInline = this.parseMarkdown(!1);
|
|
15747
|
-
Parser =
|
|
15748
|
-
Renderer =
|
|
15749
|
-
TextRenderer =
|
|
15750
|
-
Lexer =
|
|
15751
|
-
Tokenizer =
|
|
15752
|
-
Hooks =
|
|
15775
|
+
Parser = $y;
|
|
15776
|
+
Renderer = Zy;
|
|
15777
|
+
TextRenderer = Qy;
|
|
15778
|
+
Lexer = Xy;
|
|
15779
|
+
Tokenizer = Yy;
|
|
15780
|
+
Hooks = eb;
|
|
15753
15781
|
constructor(...e) {
|
|
15754
15782
|
this.use(...e);
|
|
15755
15783
|
}
|
|
@@ -15800,7 +15828,7 @@ ${e}</tr>
|
|
|
15800
15828
|
}
|
|
15801
15829
|
"childTokens" in e && e.childTokens && (t.childTokens[e.name] = e.childTokens);
|
|
15802
15830
|
}), n.extensions = t), e.renderer) {
|
|
15803
|
-
let t = this.defaults.renderer || new
|
|
15831
|
+
let t = this.defaults.renderer || new Zy(this.defaults);
|
|
15804
15832
|
for (let n in e.renderer) {
|
|
15805
15833
|
if (!(n in t)) throw Error(`renderer '${n}' does not exist`);
|
|
15806
15834
|
if (["options", "parser"].includes(n)) continue;
|
|
@@ -15813,7 +15841,7 @@ ${e}</tr>
|
|
|
15813
15841
|
n.renderer = t;
|
|
15814
15842
|
}
|
|
15815
15843
|
if (e.tokenizer) {
|
|
15816
|
-
let t = this.defaults.tokenizer || new
|
|
15844
|
+
let t = this.defaults.tokenizer || new Yy(this.defaults);
|
|
15817
15845
|
for (let n in e.tokenizer) {
|
|
15818
15846
|
if (!(n in t)) throw Error(`tokenizer '${n}' does not exist`);
|
|
15819
15847
|
if ([
|
|
@@ -15830,13 +15858,13 @@ ${e}</tr>
|
|
|
15830
15858
|
n.tokenizer = t;
|
|
15831
15859
|
}
|
|
15832
15860
|
if (e.hooks) {
|
|
15833
|
-
let t = this.defaults.hooks || new
|
|
15861
|
+
let t = this.defaults.hooks || new eb();
|
|
15834
15862
|
for (let n in e.hooks) {
|
|
15835
15863
|
if (!(n in t)) throw Error(`hook '${n}' does not exist`);
|
|
15836
15864
|
if (["options", "block"].includes(n)) continue;
|
|
15837
15865
|
let r = n, i = e.hooks[r], a = t[r];
|
|
15838
|
-
|
|
15839
|
-
if (this.defaults.async &&
|
|
15866
|
+
eb.passThroughHooks.has(n) ? t[r] = (e) => {
|
|
15867
|
+
if (this.defaults.async && eb.passThroughHooksRespectAsync.has(n)) return (async () => {
|
|
15840
15868
|
let n = await i.call(t, e);
|
|
15841
15869
|
return a.call(t, n);
|
|
15842
15870
|
})();
|
|
@@ -15873,10 +15901,10 @@ ${e}</tr>
|
|
|
15873
15901
|
}, this;
|
|
15874
15902
|
}
|
|
15875
15903
|
lexer(e, t) {
|
|
15876
|
-
return
|
|
15904
|
+
return Xy.lex(e, t ?? this.defaults);
|
|
15877
15905
|
}
|
|
15878
15906
|
parser(e, t) {
|
|
15879
|
-
return
|
|
15907
|
+
return $y.parse(e, t ?? this.defaults);
|
|
15880
15908
|
}
|
|
15881
15909
|
parseMarkdown(e) {
|
|
15882
15910
|
return (t, n) => {
|
|
@@ -15888,16 +15916,16 @@ ${e}</tr>
|
|
|
15888
15916
|
if (typeof t > "u" || t === null) return a(/* @__PURE__ */ Error("marked(): input parameter is undefined or null"));
|
|
15889
15917
|
if (typeof t != "string") return a(/* @__PURE__ */ Error("marked(): input parameter is of type " + Object.prototype.toString.call(t) + ", string expected"));
|
|
15890
15918
|
if (i.hooks && (i.hooks.options = i, i.hooks.block = e), i.async) return (async () => {
|
|
15891
|
-
let n = i.hooks ? await i.hooks.preprocess(t) : t, r = await (i.hooks ? await i.hooks.provideLexer(e) : e ?
|
|
15919
|
+
let n = i.hooks ? await i.hooks.preprocess(t) : t, r = await (i.hooks ? await i.hooks.provideLexer(e) : e ? Xy.lex : Xy.lexInline)(n, i), a = i.hooks ? await i.hooks.processAllTokens(r) : r;
|
|
15892
15920
|
i.walkTokens && await Promise.all(this.walkTokens(a, i.walkTokens));
|
|
15893
|
-
let o = await (i.hooks ? await i.hooks.provideParser(e) : e ?
|
|
15921
|
+
let o = await (i.hooks ? await i.hooks.provideParser(e) : e ? $y.parse : $y.parseInline)(a, i);
|
|
15894
15922
|
return i.hooks ? await i.hooks.postprocess(o) : o;
|
|
15895
15923
|
})().catch(a);
|
|
15896
15924
|
try {
|
|
15897
15925
|
i.hooks && (t = i.hooks.preprocess(t));
|
|
15898
|
-
let n = (i.hooks ? i.hooks.provideLexer(e) : e ?
|
|
15926
|
+
let n = (i.hooks ? i.hooks.provideLexer(e) : e ? Xy.lex : Xy.lexInline)(t, i);
|
|
15899
15927
|
i.hooks && (n = i.hooks.processAllTokens(n)), i.walkTokens && this.walkTokens(n, i.walkTokens);
|
|
15900
|
-
let r = (i.hooks ? i.hooks.provideParser(e) : e ?
|
|
15928
|
+
let r = (i.hooks ? i.hooks.provideParser(e) : e ? $y.parse : $y.parseInline)(n, i);
|
|
15901
15929
|
return i.hooks && (r = i.hooks.postprocess(r)), r;
|
|
15902
15930
|
} catch (e) {
|
|
15903
15931
|
return a(e);
|
|
@@ -15907,7 +15935,7 @@ ${e}</tr>
|
|
|
15907
15935
|
onError(e, t) {
|
|
15908
15936
|
return (n) => {
|
|
15909
15937
|
if (n.message += "\nPlease report this to https://github.com/markedjs/marked.", e) {
|
|
15910
|
-
let e = "<p>An error occurred:</p><pre>" +
|
|
15938
|
+
let e = "<p>An error occurred:</p><pre>" + By(n.message + "", !0) + "</pre>";
|
|
15911
15939
|
return t ? Promise.resolve(e) : e;
|
|
15912
15940
|
}
|
|
15913
15941
|
if (t) return Promise.reject(n);
|
|
@@ -15915,19 +15943,19 @@ ${e}</tr>
|
|
|
15915
15943
|
};
|
|
15916
15944
|
}
|
|
15917
15945
|
}();
|
|
15918
|
-
function
|
|
15919
|
-
return
|
|
15920
|
-
}
|
|
15921
|
-
|
|
15922
|
-
return
|
|
15923
|
-
},
|
|
15924
|
-
return
|
|
15925
|
-
},
|
|
15926
|
-
return
|
|
15927
|
-
},
|
|
15946
|
+
function nb(e, t) {
|
|
15947
|
+
return tb.parse(e, t);
|
|
15948
|
+
}
|
|
15949
|
+
nb.options = nb.setOptions = function(e) {
|
|
15950
|
+
return tb.setOptions(e), nb.defaults = tb.defaults, Tv(nb.defaults), nb;
|
|
15951
|
+
}, nb.getDefaults = Cv, nb.defaults = wv, nb.use = function(...e) {
|
|
15952
|
+
return tb.use(...e), nb.defaults = tb.defaults, Tv(nb.defaults), nb;
|
|
15953
|
+
}, nb.walkTokens = function(e, t) {
|
|
15954
|
+
return tb.walkTokens(e, t);
|
|
15955
|
+
}, nb.parseInline = tb.parseInline, nb.Parser = $y, nb.parser = $y.parse, nb.Renderer = Zy, nb.TextRenderer = Qy, nb.Lexer = Xy, nb.lexer = Xy.lex, nb.Tokenizer = Yy, nb.Hooks = eb, nb.parse = nb, nb.options, nb.setOptions, nb.use, nb.walkTokens, nb.parseInline, $y.parse, Xy.lex;
|
|
15928
15956
|
//#endregion
|
|
15929
15957
|
//#region node_modules/highlight.js/lib/core.js
|
|
15930
|
-
var
|
|
15958
|
+
var rb = /* @__PURE__ */ h(((e, t) => {
|
|
15931
15959
|
function n(e) {
|
|
15932
15960
|
return e instanceof Map ? e.clear = e.delete = e.set = function() {
|
|
15933
15961
|
throw Error("map is read-only");
|
|
@@ -16768,7 +16796,7 @@ var Qy = /* @__PURE__ */ h(((e, t) => {
|
|
|
16768
16796
|
return Object.assign(e, L), e;
|
|
16769
16797
|
}, je = Ae({});
|
|
16770
16798
|
je.newInstance = () => Ae({}), t.exports = je, je.HighlightJS = je, je.default = je;
|
|
16771
|
-
})),
|
|
16799
|
+
})), ib = /* @__PURE__ */ h(((e, t) => {
|
|
16772
16800
|
function n(e) {
|
|
16773
16801
|
let t = e.regex, n = t.concat(/[\p{L}_]/u, t.optional(/[\p{L}0-9_.-]*:/u), /[\p{L}0-9_.-]*/u), r = /[\p{L}0-9._:-]+/u, i = {
|
|
16774
16802
|
className: "symbol",
|
|
@@ -16933,7 +16961,7 @@ var Qy = /* @__PURE__ */ h(((e, t) => {
|
|
|
16933
16961
|
};
|
|
16934
16962
|
}
|
|
16935
16963
|
t.exports = n;
|
|
16936
|
-
})),
|
|
16964
|
+
})), ab = /* @__PURE__ */ h(((e, t) => {
|
|
16937
16965
|
function n(e) {
|
|
16938
16966
|
let t = e.regex, n = {}, r = {
|
|
16939
16967
|
begin: /\$\{/,
|
|
@@ -17101,7 +17129,7 @@ var Qy = /* @__PURE__ */ h(((e, t) => {
|
|
|
17101
17129
|
};
|
|
17102
17130
|
}
|
|
17103
17131
|
t.exports = n;
|
|
17104
|
-
})),
|
|
17132
|
+
})), ob = /* @__PURE__ */ h(((e, t) => {
|
|
17105
17133
|
function n(e) {
|
|
17106
17134
|
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 = {
|
|
17107
17135
|
className: "type",
|
|
@@ -17276,7 +17304,7 @@ var Qy = /* @__PURE__ */ h(((e, t) => {
|
|
|
17276
17304
|
};
|
|
17277
17305
|
}
|
|
17278
17306
|
t.exports = n;
|
|
17279
|
-
})),
|
|
17307
|
+
})), sb = /* @__PURE__ */ h(((e, t) => {
|
|
17280
17308
|
function n(e) {
|
|
17281
17309
|
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 = {
|
|
17282
17310
|
className: "type",
|
|
@@ -17500,7 +17528,7 @@ var Qy = /* @__PURE__ */ h(((e, t) => {
|
|
|
17500
17528
|
};
|
|
17501
17529
|
}
|
|
17502
17530
|
t.exports = n;
|
|
17503
|
-
})),
|
|
17531
|
+
})), cb = /* @__PURE__ */ h(((e, t) => {
|
|
17504
17532
|
function n(e) {
|
|
17505
17533
|
let t = [
|
|
17506
17534
|
"bool",
|
|
@@ -17759,7 +17787,7 @@ var Qy = /* @__PURE__ */ h(((e, t) => {
|
|
|
17759
17787
|
};
|
|
17760
17788
|
}
|
|
17761
17789
|
t.exports = n;
|
|
17762
|
-
})),
|
|
17790
|
+
})), lb = /* @__PURE__ */ h(((e, t) => {
|
|
17763
17791
|
var n = (e) => ({
|
|
17764
17792
|
IMPORTANT: {
|
|
17765
17793
|
scope: "meta",
|
|
@@ -17898,7 +17926,7 @@ var Qy = /* @__PURE__ */ h(((e, t) => {
|
|
|
17898
17926
|
};
|
|
17899
17927
|
}
|
|
17900
17928
|
t.exports = u;
|
|
17901
|
-
})),
|
|
17929
|
+
})), ub = /* @__PURE__ */ h(((e, t) => {
|
|
17902
17930
|
function n(e) {
|
|
17903
17931
|
let t = e.regex, n = {
|
|
17904
17932
|
begin: /<\/?[A-Za-z_]/,
|
|
@@ -18078,7 +18106,7 @@ var Qy = /* @__PURE__ */ h(((e, t) => {
|
|
|
18078
18106
|
};
|
|
18079
18107
|
}
|
|
18080
18108
|
t.exports = n;
|
|
18081
|
-
})),
|
|
18109
|
+
})), db = /* @__PURE__ */ h(((e, t) => {
|
|
18082
18110
|
function n(e) {
|
|
18083
18111
|
let t = e.regex;
|
|
18084
18112
|
return {
|
|
@@ -18116,7 +18144,7 @@ var Qy = /* @__PURE__ */ h(((e, t) => {
|
|
|
18116
18144
|
};
|
|
18117
18145
|
}
|
|
18118
18146
|
t.exports = n;
|
|
18119
|
-
})),
|
|
18147
|
+
})), fb = /* @__PURE__ */ h(((e, t) => {
|
|
18120
18148
|
function n(e) {
|
|
18121
18149
|
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 = {
|
|
18122
18150
|
"variable.constant": [
|
|
@@ -18377,7 +18405,7 @@ var Qy = /* @__PURE__ */ h(((e, t) => {
|
|
|
18377
18405
|
};
|
|
18378
18406
|
}
|
|
18379
18407
|
t.exports = n;
|
|
18380
|
-
})),
|
|
18408
|
+
})), pb = /* @__PURE__ */ h(((e, t) => {
|
|
18381
18409
|
function n(e) {
|
|
18382
18410
|
let t = {
|
|
18383
18411
|
keyword: [
|
|
@@ -18516,7 +18544,7 @@ var Qy = /* @__PURE__ */ h(((e, t) => {
|
|
|
18516
18544
|
};
|
|
18517
18545
|
}
|
|
18518
18546
|
t.exports = n;
|
|
18519
|
-
})),
|
|
18547
|
+
})), mb = /* @__PURE__ */ h(((e, t) => {
|
|
18520
18548
|
function n(e) {
|
|
18521
18549
|
let t = e.regex;
|
|
18522
18550
|
return {
|
|
@@ -18582,7 +18610,7 @@ var Qy = /* @__PURE__ */ h(((e, t) => {
|
|
|
18582
18610
|
};
|
|
18583
18611
|
}
|
|
18584
18612
|
t.exports = n;
|
|
18585
|
-
})),
|
|
18613
|
+
})), hb = /* @__PURE__ */ h(((e, t) => {
|
|
18586
18614
|
function n(e) {
|
|
18587
18615
|
let t = e.regex, n = {
|
|
18588
18616
|
className: "number",
|
|
@@ -18669,7 +18697,7 @@ var Qy = /* @__PURE__ */ h(((e, t) => {
|
|
|
18669
18697
|
};
|
|
18670
18698
|
}
|
|
18671
18699
|
t.exports = n;
|
|
18672
|
-
})),
|
|
18700
|
+
})), gb = /* @__PURE__ */ h(((e, t) => {
|
|
18673
18701
|
var n = "[0-9](_*[0-9])*", r = `\\.(${n})`, i = "[0-9a-fA-F](_*[0-9a-fA-F])*", a = {
|
|
18674
18702
|
className: "number",
|
|
18675
18703
|
variants: [
|
|
@@ -18837,7 +18865,7 @@ var Qy = /* @__PURE__ */ h(((e, t) => {
|
|
|
18837
18865
|
};
|
|
18838
18866
|
}
|
|
18839
18867
|
t.exports = s;
|
|
18840
|
-
})),
|
|
18868
|
+
})), _b = /* @__PURE__ */ h(((e, t) => {
|
|
18841
18869
|
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 = [
|
|
18842
18870
|
"true",
|
|
18843
18871
|
"false",
|
|
@@ -19272,7 +19300,7 @@ var Qy = /* @__PURE__ */ h(((e, t) => {
|
|
|
19272
19300
|
};
|
|
19273
19301
|
}
|
|
19274
19302
|
t.exports = u;
|
|
19275
|
-
})),
|
|
19303
|
+
})), vb = /* @__PURE__ */ h(((e, t) => {
|
|
19276
19304
|
function n(e) {
|
|
19277
19305
|
let t = {
|
|
19278
19306
|
className: "attr",
|
|
@@ -19307,7 +19335,7 @@ var Qy = /* @__PURE__ */ h(((e, t) => {
|
|
|
19307
19335
|
};
|
|
19308
19336
|
}
|
|
19309
19337
|
t.exports = n;
|
|
19310
|
-
})),
|
|
19338
|
+
})), yb = /* @__PURE__ */ h(((e, t) => {
|
|
19311
19339
|
var n = "[0-9](_*[0-9])*", r = `\\.(${n})`, i = "[0-9a-fA-F](_*[0-9a-fA-F])*", a = {
|
|
19312
19340
|
className: "number",
|
|
19313
19341
|
variants: [
|
|
@@ -19507,7 +19535,7 @@ var Qy = /* @__PURE__ */ h(((e, t) => {
|
|
|
19507
19535
|
};
|
|
19508
19536
|
}
|
|
19509
19537
|
t.exports = o;
|
|
19510
|
-
})),
|
|
19538
|
+
})), bb = /* @__PURE__ */ h(((e, t) => {
|
|
19511
19539
|
var n = (e) => ({
|
|
19512
19540
|
IMPORTANT: {
|
|
19513
19541
|
scope: "meta",
|
|
@@ -19698,7 +19726,7 @@ var Qy = /* @__PURE__ */ h(((e, t) => {
|
|
|
19698
19726
|
};
|
|
19699
19727
|
}
|
|
19700
19728
|
t.exports = d;
|
|
19701
|
-
})),
|
|
19729
|
+
})), xb = /* @__PURE__ */ h(((e, t) => {
|
|
19702
19730
|
function n(e) {
|
|
19703
19731
|
let t = "\\[=*\\[", n = "\\]=*\\]", r = {
|
|
19704
19732
|
begin: t,
|
|
@@ -19743,7 +19771,7 @@ var Qy = /* @__PURE__ */ h(((e, t) => {
|
|
|
19743
19771
|
};
|
|
19744
19772
|
}
|
|
19745
19773
|
t.exports = n;
|
|
19746
|
-
})),
|
|
19774
|
+
})), Sb = /* @__PURE__ */ h(((e, t) => {
|
|
19747
19775
|
function n(e) {
|
|
19748
19776
|
let t = {
|
|
19749
19777
|
className: "variable",
|
|
@@ -19799,7 +19827,7 @@ var Qy = /* @__PURE__ */ h(((e, t) => {
|
|
|
19799
19827
|
};
|
|
19800
19828
|
}
|
|
19801
19829
|
t.exports = n;
|
|
19802
|
-
})),
|
|
19830
|
+
})), Cb = /* @__PURE__ */ h(((e, t) => {
|
|
19803
19831
|
function n(e) {
|
|
19804
19832
|
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 = {
|
|
19805
19833
|
$pattern: /[\w.]+/,
|
|
@@ -19990,7 +20018,7 @@ var Qy = /* @__PURE__ */ h(((e, t) => {
|
|
|
19990
20018
|
};
|
|
19991
20019
|
}
|
|
19992
20020
|
t.exports = n;
|
|
19993
|
-
})),
|
|
20021
|
+
})), wb = /* @__PURE__ */ h(((e, t) => {
|
|
19994
20022
|
function n(e) {
|
|
19995
20023
|
let t = {
|
|
19996
20024
|
className: "built_in",
|
|
@@ -20106,7 +20134,7 @@ var Qy = /* @__PURE__ */ h(((e, t) => {
|
|
|
20106
20134
|
};
|
|
20107
20135
|
}
|
|
20108
20136
|
t.exports = n;
|
|
20109
|
-
})),
|
|
20137
|
+
})), Tb = /* @__PURE__ */ h(((e, t) => {
|
|
20110
20138
|
function n(e) {
|
|
20111
20139
|
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 = {
|
|
20112
20140
|
scope: "variable",
|
|
@@ -20399,7 +20427,7 @@ var Qy = /* @__PURE__ */ h(((e, t) => {
|
|
|
20399
20427
|
};
|
|
20400
20428
|
}
|
|
20401
20429
|
t.exports = n;
|
|
20402
|
-
})),
|
|
20430
|
+
})), Eb = /* @__PURE__ */ h(((e, t) => {
|
|
20403
20431
|
function n(e) {
|
|
20404
20432
|
return {
|
|
20405
20433
|
name: "PHP template",
|
|
@@ -20441,7 +20469,7 @@ var Qy = /* @__PURE__ */ h(((e, t) => {
|
|
|
20441
20469
|
};
|
|
20442
20470
|
}
|
|
20443
20471
|
t.exports = n;
|
|
20444
|
-
})),
|
|
20472
|
+
})), Db = /* @__PURE__ */ h(((e, t) => {
|
|
20445
20473
|
function n(e) {
|
|
20446
20474
|
return {
|
|
20447
20475
|
name: "Plain text",
|
|
@@ -20450,7 +20478,7 @@ var Qy = /* @__PURE__ */ h(((e, t) => {
|
|
|
20450
20478
|
};
|
|
20451
20479
|
}
|
|
20452
20480
|
t.exports = n;
|
|
20453
|
-
})),
|
|
20481
|
+
})), Ob = /* @__PURE__ */ h(((e, t) => {
|
|
20454
20482
|
function n(e) {
|
|
20455
20483
|
let t = e.regex, n = /[\p{XID_Start}_]\p{XID_Continue}*/u, r = /* @__PURE__ */ "and.as.assert.async.await.break.case.class.continue.def.del.elif.else.except.finally.for.from.global.if.import.in.is.lambda.match.nonlocal|10.not.or.pass.raise.return.try.while.with.yield".split("."), i = {
|
|
20456
20484
|
$pattern: /[A-Za-z]\w+|__\w+__/,
|
|
@@ -20687,7 +20715,7 @@ var Qy = /* @__PURE__ */ h(((e, t) => {
|
|
|
20687
20715
|
};
|
|
20688
20716
|
}
|
|
20689
20717
|
t.exports = n;
|
|
20690
|
-
})),
|
|
20718
|
+
})), kb = /* @__PURE__ */ h(((e, t) => {
|
|
20691
20719
|
function n(e) {
|
|
20692
20720
|
return {
|
|
20693
20721
|
aliases: ["pycon"],
|
|
@@ -20705,7 +20733,7 @@ var Qy = /* @__PURE__ */ h(((e, t) => {
|
|
|
20705
20733
|
};
|
|
20706
20734
|
}
|
|
20707
20735
|
t.exports = n;
|
|
20708
|
-
})),
|
|
20736
|
+
})), Ab = /* @__PURE__ */ h(((e, t) => {
|
|
20709
20737
|
function n(e) {
|
|
20710
20738
|
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(/[()]/, /[{}]/, /\[\[/, /[[\]]/, /\\/, /,/);
|
|
20711
20739
|
return {
|
|
@@ -20844,7 +20872,7 @@ var Qy = /* @__PURE__ */ h(((e, t) => {
|
|
|
20844
20872
|
};
|
|
20845
20873
|
}
|
|
20846
20874
|
t.exports = n;
|
|
20847
|
-
})),
|
|
20875
|
+
})), jb = /* @__PURE__ */ h(((e, t) => {
|
|
20848
20876
|
function n(e) {
|
|
20849
20877
|
let t = e.regex, n = /(r#)?/, r = t.concat(n, e.UNDERSCORE_IDENT_RE), i = t.concat(n, e.IDENT_RE), a = {
|
|
20850
20878
|
className: "title.function.invoke",
|
|
@@ -21012,7 +21040,7 @@ var Qy = /* @__PURE__ */ h(((e, t) => {
|
|
|
21012
21040
|
};
|
|
21013
21041
|
}
|
|
21014
21042
|
t.exports = n;
|
|
21015
|
-
})),
|
|
21043
|
+
})), Mb = /* @__PURE__ */ h(((e, t) => {
|
|
21016
21044
|
var n = (e) => ({
|
|
21017
21045
|
IMPORTANT: {
|
|
21018
21046
|
scope: "meta",
|
|
@@ -21161,7 +21189,7 @@ var Qy = /* @__PURE__ */ h(((e, t) => {
|
|
|
21161
21189
|
};
|
|
21162
21190
|
}
|
|
21163
21191
|
t.exports = u;
|
|
21164
|
-
})),
|
|
21192
|
+
})), Nb = /* @__PURE__ */ h(((e, t) => {
|
|
21165
21193
|
function n(e) {
|
|
21166
21194
|
return {
|
|
21167
21195
|
name: "Shell Session",
|
|
@@ -21177,7 +21205,7 @@ var Qy = /* @__PURE__ */ h(((e, t) => {
|
|
|
21177
21205
|
};
|
|
21178
21206
|
}
|
|
21179
21207
|
t.exports = n;
|
|
21180
|
-
})),
|
|
21208
|
+
})), Pb = /* @__PURE__ */ h(((e, t) => {
|
|
21181
21209
|
function n(e) {
|
|
21182
21210
|
let t = e.regex, n = e.COMMENT("--", "$"), r = {
|
|
21183
21211
|
scope: "string",
|
|
@@ -21294,7 +21322,7 @@ var Qy = /* @__PURE__ */ h(((e, t) => {
|
|
|
21294
21322
|
};
|
|
21295
21323
|
}
|
|
21296
21324
|
t.exports = n;
|
|
21297
|
-
})),
|
|
21325
|
+
})), Fb = /* @__PURE__ */ h(((e, t) => {
|
|
21298
21326
|
function n(e) {
|
|
21299
21327
|
return e ? typeof e == "string" ? e : e.source : null;
|
|
21300
21328
|
}
|
|
@@ -21867,7 +21895,7 @@ var Qy = /* @__PURE__ */ h(((e, t) => {
|
|
|
21867
21895
|
};
|
|
21868
21896
|
}
|
|
21869
21897
|
t.exports = T;
|
|
21870
|
-
})),
|
|
21898
|
+
})), Ib = /* @__PURE__ */ h(((e, t) => {
|
|
21871
21899
|
function n(e) {
|
|
21872
21900
|
let t = "true false yes no null", n = {
|
|
21873
21901
|
className: "attr",
|
|
@@ -22010,7 +22038,7 @@ var Qy = /* @__PURE__ */ h(((e, t) => {
|
|
|
22010
22038
|
};
|
|
22011
22039
|
}
|
|
22012
22040
|
t.exports = n;
|
|
22013
|
-
})),
|
|
22041
|
+
})), Lb = /* @__PURE__ */ h(((e, t) => {
|
|
22014
22042
|
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 = [
|
|
22015
22043
|
"true",
|
|
22016
22044
|
"false",
|
|
@@ -22530,7 +22558,7 @@ var Qy = /* @__PURE__ */ h(((e, t) => {
|
|
|
22530
22558
|
}), a;
|
|
22531
22559
|
}
|
|
22532
22560
|
t.exports = d;
|
|
22533
|
-
})),
|
|
22561
|
+
})), Rb = /* @__PURE__ */ h(((e, t) => {
|
|
22534
22562
|
function n(e) {
|
|
22535
22563
|
let t = e.regex, n = {
|
|
22536
22564
|
className: "string",
|
|
@@ -22598,7 +22626,7 @@ var Qy = /* @__PURE__ */ h(((e, t) => {
|
|
|
22598
22626
|
};
|
|
22599
22627
|
}
|
|
22600
22628
|
t.exports = n;
|
|
22601
|
-
})),
|
|
22629
|
+
})), zb = /* @__PURE__ */ h(((e, t) => {
|
|
22602
22630
|
function n(e) {
|
|
22603
22631
|
e.regex;
|
|
22604
22632
|
let t = e.COMMENT(/\(;/, /;\)/);
|
|
@@ -22660,21 +22688,21 @@ var Qy = /* @__PURE__ */ h(((e, t) => {
|
|
|
22660
22688
|
};
|
|
22661
22689
|
}
|
|
22662
22690
|
t.exports = n;
|
|
22663
|
-
})),
|
|
22664
|
-
var n =
|
|
22665
|
-
n.registerLanguage("xml",
|
|
22691
|
+
})), Bb = (/* @__PURE__ */ _((/* @__PURE__ */ h(((e, t) => {
|
|
22692
|
+
var n = rb();
|
|
22693
|
+
n.registerLanguage("xml", ib()), n.registerLanguage("bash", ab()), n.registerLanguage("c", ob()), n.registerLanguage("cpp", sb()), n.registerLanguage("csharp", cb()), n.registerLanguage("css", lb()), n.registerLanguage("markdown", ub()), n.registerLanguage("diff", db()), n.registerLanguage("ruby", fb()), n.registerLanguage("go", pb()), n.registerLanguage("graphql", mb()), n.registerLanguage("ini", hb()), n.registerLanguage("java", gb()), n.registerLanguage("javascript", _b()), n.registerLanguage("json", vb()), n.registerLanguage("kotlin", yb()), n.registerLanguage("less", bb()), n.registerLanguage("lua", xb()), n.registerLanguage("makefile", Sb()), n.registerLanguage("perl", Cb()), n.registerLanguage("objectivec", wb()), n.registerLanguage("php", Tb()), n.registerLanguage("php-template", Eb()), n.registerLanguage("plaintext", Db()), n.registerLanguage("python", Ob()), n.registerLanguage("python-repl", kb()), n.registerLanguage("r", Ab()), n.registerLanguage("rust", jb()), n.registerLanguage("scss", Mb()), n.registerLanguage("shell", Nb()), n.registerLanguage("sql", Pb()), n.registerLanguage("swift", Fb()), n.registerLanguage("yaml", Ib()), n.registerLanguage("typescript", Lb()), n.registerLanguage("vbnet", Rb()), n.registerLanguage("wasm", zb()), n.HighlightJS = n, n.default = n, t.exports = n;
|
|
22666
22694
|
})))())).default;
|
|
22667
22695
|
//#endregion
|
|
22668
22696
|
//#region node_modules/dompurify/dist/purify.es.mjs
|
|
22669
|
-
function
|
|
22697
|
+
function Vb(e, t) {
|
|
22670
22698
|
(t == null || t > e.length) && (t = e.length);
|
|
22671
22699
|
for (var n = 0, r = Array(t); n < t; n++) r[n] = e[n];
|
|
22672
22700
|
return r;
|
|
22673
22701
|
}
|
|
22674
|
-
function
|
|
22702
|
+
function Hb(e) {
|
|
22675
22703
|
if (Array.isArray(e)) return e;
|
|
22676
22704
|
}
|
|
22677
|
-
function
|
|
22705
|
+
function Ub(e, t) {
|
|
22678
22706
|
var n = e == null ? null : typeof Symbol < "u" && e[Symbol.iterator] || e["@@iterator"];
|
|
22679
22707
|
if (n != null) {
|
|
22680
22708
|
var r, i, a, o, s = [], c = !0, l = !1;
|
|
@@ -22692,113 +22720,113 @@ function Rb(e, t) {
|
|
|
22692
22720
|
return s;
|
|
22693
22721
|
}
|
|
22694
22722
|
}
|
|
22695
|
-
function
|
|
22723
|
+
function Wb() {
|
|
22696
22724
|
throw TypeError("Invalid attempt to destructure non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.");
|
|
22697
22725
|
}
|
|
22698
|
-
function
|
|
22699
|
-
return
|
|
22726
|
+
function Gb(e, t) {
|
|
22727
|
+
return Hb(e) || Ub(e, t) || Kb(e, t) || Wb();
|
|
22700
22728
|
}
|
|
22701
|
-
function
|
|
22729
|
+
function Kb(e, t) {
|
|
22702
22730
|
if (e) {
|
|
22703
|
-
if (typeof e == "string") return
|
|
22731
|
+
if (typeof e == "string") return Vb(e, t);
|
|
22704
22732
|
var n = {}.toString.call(e).slice(8, -1);
|
|
22705
|
-
return n === "Object" && e.constructor && (n = e.constructor.name), n === "Map" || n === "Set" ? Array.from(e) : n === "Arguments" || /^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n) ?
|
|
22733
|
+
return n === "Object" && e.constructor && (n = e.constructor.name), n === "Map" || n === "Set" ? Array.from(e) : n === "Arguments" || /^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n) ? Vb(e, t) : void 0;
|
|
22706
22734
|
}
|
|
22707
22735
|
}
|
|
22708
|
-
var
|
|
22709
|
-
|
|
22736
|
+
var qb = Object.entries, Jb = Object.setPrototypeOf, Yb = Object.isFrozen, Xb = Object.getPrototypeOf, Zb = Object.getOwnPropertyDescriptor, Qb = Object.freeze, $b = Object.seal, ex = Object.create, tx = typeof Reflect < "u" && Reflect, nx = tx.apply, rx = tx.construct;
|
|
22737
|
+
Qb ||= function(e) {
|
|
22710
22738
|
return e;
|
|
22711
|
-
},
|
|
22739
|
+
}, $b ||= function(e) {
|
|
22712
22740
|
return e;
|
|
22713
|
-
},
|
|
22741
|
+
}, nx ||= function(e, t) {
|
|
22714
22742
|
var n = [...arguments].slice(2);
|
|
22715
22743
|
return e.apply(t, n);
|
|
22716
|
-
},
|
|
22744
|
+
}, rx ||= function(e) {
|
|
22717
22745
|
return new e(...[...arguments].slice(1));
|
|
22718
22746
|
};
|
|
22719
|
-
var
|
|
22720
|
-
function
|
|
22747
|
+
var ix = wx(Array.prototype.forEach), ax = wx(Array.prototype.lastIndexOf), ox = wx(Array.prototype.pop), sx = wx(Array.prototype.push), cx = wx(Array.prototype.splice), lx = Array.isArray, ux = wx(String.prototype.toLowerCase), dx = wx(String.prototype.toString), fx = wx(String.prototype.match), px = wx(String.prototype.replace), mx = wx(String.prototype.indexOf), hx = wx(String.prototype.trim), gx = wx(Number.prototype.toString), _x = wx(Boolean.prototype.toString), vx = typeof BigInt > "u" ? null : wx(BigInt.prototype.toString), yx = typeof Symbol > "u" ? null : wx(Symbol.prototype.toString), bx = wx(Object.prototype.hasOwnProperty), xx = wx(Object.prototype.toString), Sx = wx(RegExp.prototype.test), Cx = Tx(TypeError);
|
|
22748
|
+
function wx(e) {
|
|
22721
22749
|
return function(t) {
|
|
22722
22750
|
t instanceof RegExp && (t.lastIndex = 0);
|
|
22723
22751
|
var n = [...arguments].slice(1);
|
|
22724
|
-
return
|
|
22752
|
+
return nx(e, t, n);
|
|
22725
22753
|
};
|
|
22726
22754
|
}
|
|
22727
|
-
function
|
|
22755
|
+
function Tx(e) {
|
|
22728
22756
|
return function() {
|
|
22729
|
-
return
|
|
22757
|
+
return rx(e, [...arguments]);
|
|
22730
22758
|
};
|
|
22731
22759
|
}
|
|
22732
|
-
function
|
|
22733
|
-
let n = arguments.length > 2 && arguments[2] !== void 0 ? arguments[2] :
|
|
22734
|
-
if (
|
|
22760
|
+
function Ex(e, t) {
|
|
22761
|
+
let n = arguments.length > 2 && arguments[2] !== void 0 ? arguments[2] : ux;
|
|
22762
|
+
if (Jb && Jb(e, null), !lx(t)) return e;
|
|
22735
22763
|
let r = t.length;
|
|
22736
22764
|
for (; r--;) {
|
|
22737
22765
|
let i = t[r];
|
|
22738
22766
|
if (typeof i == "string") {
|
|
22739
22767
|
let e = n(i);
|
|
22740
|
-
e !== i && (
|
|
22768
|
+
e !== i && (Yb(t) || (t[r] = e), i = e);
|
|
22741
22769
|
}
|
|
22742
22770
|
e[i] = !0;
|
|
22743
22771
|
}
|
|
22744
22772
|
return e;
|
|
22745
22773
|
}
|
|
22746
|
-
function
|
|
22747
|
-
for (let t = 0; t < e.length; t++)
|
|
22774
|
+
function Dx(e) {
|
|
22775
|
+
for (let t = 0; t < e.length; t++) bx(e, t) || (e[t] = null);
|
|
22748
22776
|
return e;
|
|
22749
22777
|
}
|
|
22750
|
-
function
|
|
22751
|
-
let t =
|
|
22752
|
-
for (let r of
|
|
22753
|
-
var n =
|
|
22778
|
+
function Ox(e) {
|
|
22779
|
+
let t = ex(null);
|
|
22780
|
+
for (let r of qb(e)) {
|
|
22781
|
+
var n = Gb(r, 2);
|
|
22754
22782
|
let i = n[0], a = n[1];
|
|
22755
|
-
|
|
22783
|
+
bx(e, i) && (lx(a) ? t[i] = Dx(a) : a && typeof a == "object" && a.constructor === Object ? t[i] = Ox(a) : t[i] = a);
|
|
22756
22784
|
}
|
|
22757
22785
|
return t;
|
|
22758
22786
|
}
|
|
22759
|
-
function
|
|
22787
|
+
function kx(e) {
|
|
22760
22788
|
switch (typeof e) {
|
|
22761
22789
|
case "string": return e;
|
|
22762
|
-
case "number": return
|
|
22763
|
-
case "boolean": return
|
|
22764
|
-
case "bigint": return
|
|
22765
|
-
case "symbol": return
|
|
22766
|
-
case "undefined": return
|
|
22790
|
+
case "number": return gx(e);
|
|
22791
|
+
case "boolean": return _x(e);
|
|
22792
|
+
case "bigint": return vx ? vx(e) : "0";
|
|
22793
|
+
case "symbol": return yx ? yx(e) : "Symbol()";
|
|
22794
|
+
case "undefined": return xx(e);
|
|
22767
22795
|
case "function":
|
|
22768
22796
|
case "object": {
|
|
22769
|
-
if (e === null) return
|
|
22770
|
-
let t = e, n =
|
|
22797
|
+
if (e === null) return xx(e);
|
|
22798
|
+
let t = e, n = Ax(t, "toString");
|
|
22771
22799
|
if (typeof n == "function") {
|
|
22772
22800
|
let e = n(t);
|
|
22773
|
-
return typeof e == "string" ? e :
|
|
22801
|
+
return typeof e == "string" ? e : xx(e);
|
|
22774
22802
|
}
|
|
22775
|
-
return
|
|
22803
|
+
return xx(e);
|
|
22776
22804
|
}
|
|
22777
|
-
default: return
|
|
22805
|
+
default: return xx(e);
|
|
22778
22806
|
}
|
|
22779
22807
|
}
|
|
22780
|
-
function
|
|
22808
|
+
function Ax(e, t) {
|
|
22781
22809
|
for (; e !== null;) {
|
|
22782
|
-
let n =
|
|
22810
|
+
let n = Zb(e, t);
|
|
22783
22811
|
if (n) {
|
|
22784
|
-
if (n.get) return
|
|
22785
|
-
if (typeof n.value == "function") return
|
|
22812
|
+
if (n.get) return wx(n.get);
|
|
22813
|
+
if (typeof n.value == "function") return wx(n.value);
|
|
22786
22814
|
}
|
|
22787
|
-
e =
|
|
22815
|
+
e = Xb(e);
|
|
22788
22816
|
}
|
|
22789
22817
|
function n() {
|
|
22790
22818
|
return null;
|
|
22791
22819
|
}
|
|
22792
22820
|
return n;
|
|
22793
22821
|
}
|
|
22794
|
-
function
|
|
22822
|
+
function jx(e) {
|
|
22795
22823
|
try {
|
|
22796
|
-
return
|
|
22824
|
+
return Sx(e, ""), !0;
|
|
22797
22825
|
} catch {
|
|
22798
22826
|
return !1;
|
|
22799
22827
|
}
|
|
22800
22828
|
}
|
|
22801
|
-
var
|
|
22829
|
+
var Mx = Qb(/* @__PURE__ */ "a.abbr.acronym.address.area.article.aside.audio.b.bdi.bdo.big.blink.blockquote.body.br.button.canvas.caption.center.cite.code.col.colgroup.content.data.datalist.dd.decorator.del.details.dfn.dialog.dir.div.dl.dt.element.em.fieldset.figcaption.figure.font.footer.form.h1.h2.h3.h4.h5.h6.head.header.hgroup.hr.html.i.img.input.ins.kbd.label.legend.li.main.map.mark.marquee.menu.menuitem.meter.nav.nobr.ol.optgroup.option.output.p.picture.pre.progress.q.rp.rt.ruby.s.samp.search.section.select.shadow.slot.small.source.spacer.span.strike.strong.style.sub.summary.sup.table.tbody.td.template.textarea.tfoot.th.thead.time.tr.track.tt.u.ul.var.video.wbr".split(".")), Nx = Qb(/* @__PURE__ */ "svg.a.altglyph.altglyphdef.altglyphitem.animatecolor.animatemotion.animatetransform.circle.clippath.defs.desc.ellipse.enterkeyhint.exportparts.filter.font.g.glyph.glyphref.hkern.image.inputmode.line.lineargradient.marker.mask.metadata.mpath.part.path.pattern.polygon.polyline.radialgradient.rect.stop.style.switch.symbol.text.textpath.title.tref.tspan.view.vkern".split(".")), Px = Qb([
|
|
22802
22830
|
"feBlend",
|
|
22803
22831
|
"feColorMatrix",
|
|
22804
22832
|
"feComponentTransfer",
|
|
@@ -22824,7 +22852,7 @@ var Dx = qb(/* @__PURE__ */ "a.abbr.acronym.address.area.article.aside.audio.b.b
|
|
|
22824
22852
|
"feSpotLight",
|
|
22825
22853
|
"feTile",
|
|
22826
22854
|
"feTurbulence"
|
|
22827
|
-
]),
|
|
22855
|
+
]), Fx = Qb([
|
|
22828
22856
|
"animate",
|
|
22829
22857
|
"color-profile",
|
|
22830
22858
|
"cursor",
|
|
@@ -22847,7 +22875,7 @@ var Dx = qb(/* @__PURE__ */ "a.abbr.acronym.address.area.article.aside.audio.b.b
|
|
|
22847
22875
|
"solidcolor",
|
|
22848
22876
|
"unknown",
|
|
22849
22877
|
"use"
|
|
22850
|
-
]),
|
|
22878
|
+
]), Ix = Qb(/* @__PURE__ */ "math.menclose.merror.mfenced.mfrac.mglyph.mi.mlabeledtr.mmultiscripts.mn.mo.mover.mpadded.mphantom.mroot.mrow.ms.mspace.msqrt.mstyle.msub.msup.msubsup.mtable.mtd.mtext.mtr.munder.munderover.mprescripts".split(".")), Lx = Qb([
|
|
22851
22879
|
"maction",
|
|
22852
22880
|
"maligngroup",
|
|
22853
22881
|
"malignmark",
|
|
@@ -22863,13 +22891,13 @@ var Dx = qb(/* @__PURE__ */ "a.abbr.acronym.address.area.article.aside.audio.b.b
|
|
|
22863
22891
|
"annotation-xml",
|
|
22864
22892
|
"mprescripts",
|
|
22865
22893
|
"none"
|
|
22866
|
-
]),
|
|
22894
|
+
]), Rx = Qb(["#text"]), zx = Qb(/* @__PURE__ */ "accept.action.align.alt.autocapitalize.autocomplete.autopictureinpicture.autoplay.background.bgcolor.border.capture.cellpadding.cellspacing.checked.cite.class.clear.color.cols.colspan.command.commandfor.controls.controlslist.coords.crossorigin.datetime.decoding.default.dir.disabled.disablepictureinpicture.disableremoteplayback.download.draggable.enctype.enterkeyhint.exportparts.face.for.headers.height.hidden.high.href.hreflang.id.inert.inputmode.integrity.ismap.kind.label.lang.list.loading.loop.low.max.maxlength.media.method.min.minlength.multiple.muted.name.nonce.noshade.novalidate.nowrap.open.optimum.part.pattern.placeholder.playsinline.popover.popovertarget.popovertargetaction.poster.preload.pubdate.radiogroup.readonly.rel.required.rev.reversed.role.rows.rowspan.spellcheck.scope.selected.shape.size.sizes.slot.span.srclang.start.src.srcset.step.style.summary.tabindex.title.translate.type.usemap.valign.value.width.wrap.xmlns".split(".")), Bx = Qb(/* @__PURE__ */ "accent-height.accumulate.additive.alignment-baseline.amplitude.ascent.attributename.attributetype.azimuth.basefrequency.baseline-shift.begin.bias.by.class.clip.clippathunits.clip-path.clip-rule.color.color-interpolation.color-interpolation-filters.color-profile.color-rendering.cx.cy.d.dx.dy.diffuseconstant.direction.display.divisor.dominant-baseline.dur.edgemode.elevation.end.exponent.fill.fill-opacity.fill-rule.filter.filterunits.flood-color.flood-opacity.font-family.font-size.font-size-adjust.font-stretch.font-style.font-variant.font-weight.fx.fy.g1.g2.glyph-name.glyphref.gradientunits.gradienttransform.height.href.id.image-rendering.in.in2.intercept.k.k1.k2.k3.k4.kerning.keypoints.keysplines.keytimes.lang.lengthadjust.letter-spacing.kernelmatrix.kernelunitlength.lighting-color.local.marker-end.marker-mid.marker-start.markerheight.markerunits.markerwidth.maskcontentunits.maskunits.max.mask.mask-type.media.method.mode.min.name.numoctaves.offset.operator.opacity.order.orient.orientation.origin.overflow.paint-order.path.pathlength.patterncontentunits.patterntransform.patternunits.points.preservealpha.preserveaspectratio.primitiveunits.r.rx.ry.radius.refx.refy.repeatcount.repeatdur.restart.result.rotate.scale.seed.shape-rendering.slope.specularconstant.specularexponent.spreadmethod.startoffset.stddeviation.stitchtiles.stop-color.stop-opacity.stroke-dasharray.stroke-dashoffset.stroke-linecap.stroke-linejoin.stroke-miterlimit.stroke-opacity.stroke.stroke-width.style.surfacescale.systemlanguage.tabindex.tablevalues.targetx.targety.transform.transform-origin.text-anchor.text-decoration.text-orientation.text-rendering.textlength.type.u1.u2.unicode.values.viewbox.visibility.version.vert-adv-y.vert-origin-x.vert-origin-y.width.word-spacing.wrap.writing-mode.xchannelselector.ychannelselector.x.x1.x2.xmlns.y.y1.y2.z.zoomandpan".split(".")), Vx = Qb(/* @__PURE__ */ "accent.accentunder.align.bevelled.close.columnalign.columnlines.columnspacing.columnspan.denomalign.depth.dir.display.displaystyle.encoding.fence.frame.height.href.id.largeop.length.linethickness.lquote.lspace.mathbackground.mathcolor.mathsize.mathvariant.maxsize.minsize.movablelimits.notation.numalign.open.rowalign.rowlines.rowspacing.rowspan.rspace.rquote.scriptlevel.scriptminsize.scriptsizemultiplier.selection.separator.separators.stretchy.subscriptshift.supscriptshift.symmetric.voffset.width.xmlns".split(".")), Hx = Qb([
|
|
22867
22895
|
"xlink:href",
|
|
22868
22896
|
"xml:id",
|
|
22869
22897
|
"xlink:title",
|
|
22870
22898
|
"xml:space",
|
|
22871
22899
|
"xmlns:xlink"
|
|
22872
|
-
]),
|
|
22900
|
+
]), Ux = $b(/{{[\w\W]*|^[\w\W]*}}/g), Wx = $b(/<%[\w\W]*|^[\w\W]*%>/g), Gx = $b(/\${[\w\W]*/g), Kx = $b(/^data-[\-\w.\u00B7-\uFFFF]+$/), qx = $b(/^aria-[\-\w]+$/), Jx = $b(/^(?:(?:(?:f|ht)tps?|mailto|tel|callto|sms|cid|xmpp|matrix):|[^a-z]|[a-z+.\-]+(?:[^a-z+.\-:]|$))/i), Yx = $b(/^(?:\w+script|data):/i), Xx = $b(/[\u0000-\u0020\u00A0\u1680\u180E\u2000-\u2029\u205F\u3000]/g), Zx = $b(/^html$/i), Qx = $b(/^[a-z][.\w]*(-[.\w]+)+$/i), $x = $b(/<[/\w!]/g), eS = $b(/<[/\w]/g), tS = $b(/<\/no(script|embed|frames)/i), nS = $b(/\/>/i), rS = {
|
|
22873
22901
|
element: 1,
|
|
22874
22902
|
attribute: 2,
|
|
22875
22903
|
text: 3,
|
|
@@ -22882,9 +22910,9 @@ var Dx = qb(/* @__PURE__ */ "a.abbr.acronym.address.area.article.aside.audio.b.b
|
|
|
22882
22910
|
documentType: 10,
|
|
22883
22911
|
documentFragment: 11,
|
|
22884
22912
|
notation: 12
|
|
22885
|
-
},
|
|
22913
|
+
}, iS = function() {
|
|
22886
22914
|
return typeof window > "u" ? null : window;
|
|
22887
|
-
},
|
|
22915
|
+
}, aS = function(e, t) {
|
|
22888
22916
|
if (typeof e != "object" || typeof e.createPolicy != "function") return null;
|
|
22889
22917
|
let n = null, r = "data-tt-policy-suffix";
|
|
22890
22918
|
t && t.hasAttribute(r) && (n = t.getAttribute(r));
|
|
@@ -22901,7 +22929,7 @@ var Dx = qb(/* @__PURE__ */ "a.abbr.acronym.address.area.article.aside.audio.b.b
|
|
|
22901
22929
|
} catch {
|
|
22902
22930
|
return console.warn("TrustedTypes policy " + i + " could not be created."), null;
|
|
22903
22931
|
}
|
|
22904
|
-
},
|
|
22932
|
+
}, oS = function() {
|
|
22905
22933
|
return {
|
|
22906
22934
|
afterSanitizeAttributes: [],
|
|
22907
22935
|
afterSanitizeElements: [],
|
|
@@ -22913,23 +22941,23 @@ var Dx = qb(/* @__PURE__ */ "a.abbr.acronym.address.area.article.aside.audio.b.b
|
|
|
22913
22941
|
uponSanitizeElement: [],
|
|
22914
22942
|
uponSanitizeShadowNode: []
|
|
22915
22943
|
};
|
|
22916
|
-
},
|
|
22917
|
-
return
|
|
22944
|
+
}, sS = function(e, t, n, r) {
|
|
22945
|
+
return bx(e, t) && lx(e[t]) ? Ex(r.base ? Ox(r.base) : {}, e[t], r.transform) : n;
|
|
22918
22946
|
};
|
|
22919
|
-
function
|
|
22920
|
-
let e = arguments.length > 0 && arguments[0] !== void 0 ? arguments[0] :
|
|
22921
|
-
if (t.version = "3.4.13", t.removed = [], !e || !e.document || e.document.nodeType !==
|
|
22947
|
+
function cS() {
|
|
22948
|
+
let e = arguments.length > 0 && arguments[0] !== void 0 ? arguments[0] : iS(), t = (e) => cS(e);
|
|
22949
|
+
if (t.version = "3.4.13", t.removed = [], !e || !e.document || e.document.nodeType !== rS.document || !e.Element) return t.isSupported = !1, t;
|
|
22922
22950
|
let n = e.document, r = n, i = r.currentScript;
|
|
22923
22951
|
e.DocumentFragment;
|
|
22924
22952
|
let a = e.HTMLTemplateElement, o = e.Node, s = e.Element, c = e.NodeFilter;
|
|
22925
22953
|
e.NamedNodeMap === void 0 && (e.NamedNodeMap || e.MozNamedAttrMap), e.HTMLFormElement;
|
|
22926
|
-
let l = e.DOMParser, u = e.trustedTypes, d = s.prototype, f =
|
|
22954
|
+
let l = e.DOMParser, u = e.trustedTypes, d = s.prototype, f = Ax(d, "cloneNode"), p = Ax(d, "remove"), m = Ax(d, "nextSibling"), h = Ax(d, "childNodes"), g = Ax(d, "parentNode"), _ = Ax(d, "shadowRoot"), v = Ax(d, "attributes"), y = o && o.prototype ? Ax(o.prototype, "nodeType") : null, b = o && o.prototype ? Ax(o.prototype, "nodeName") : null, x = o && o.prototype ? Ax(o.prototype, "ownerDocument") : null;
|
|
22927
22955
|
if (typeof a == "function") {
|
|
22928
22956
|
let e = n.createElement("template");
|
|
22929
22957
|
e.content && e.content.ownerDocument && (n = e.content.ownerDocument);
|
|
22930
22958
|
}
|
|
22931
22959
|
let S, C = "", w, T = !1, E = 0, D = function() {
|
|
22932
|
-
if (E > 0) throw
|
|
22960
|
+
if (E > 0) throw Cx("A configured TRUSTED_TYPES_POLICY callback (createHTML or createScriptURL) must not call DOMPurify.sanitize, as that causes infinite recursion. Do not pass a policy whose callbacks wrap DOMPurify as TRUSTED_TYPES_POLICY; see the \"DOMPurify and Trusted Types\" section of the README.");
|
|
22933
22961
|
}, O = function(e) {
|
|
22934
22962
|
D(), E++;
|
|
22935
22963
|
try {
|
|
@@ -22945,21 +22973,21 @@ function rS() {
|
|
|
22945
22973
|
E--;
|
|
22946
22974
|
}
|
|
22947
22975
|
}, A = function() {
|
|
22948
|
-
return T ||= (w =
|
|
22949
|
-
}, ee = n, j = ee.implementation, M = ee.createNodeIterator, N = ee.createDocumentFragment, te = ee.getElementsByTagName, P = r.importNode, F =
|
|
22950
|
-
t.isSupported = typeof
|
|
22951
|
-
let ne =
|
|
22952
|
-
...
|
|
22953
|
-
...
|
|
22954
|
-
...kx,
|
|
22955
|
-
...jx,
|
|
22956
|
-
...Nx
|
|
22957
|
-
]), ce = null, le = xx({}, [
|
|
22976
|
+
return T ||= (w = aS(u, i), !0), w;
|
|
22977
|
+
}, ee = n, j = ee.implementation, M = ee.createNodeIterator, N = ee.createDocumentFragment, te = ee.getElementsByTagName, P = r.importNode, F = oS();
|
|
22978
|
+
t.isSupported = typeof qb == "function" && typeof g == "function" && j && j.createHTMLDocument !== void 0;
|
|
22979
|
+
let ne = Ux, I = Wx, L = Gx, re = Kx, R = qx, ie = Yx, z = Xx, ae = Qx, oe = Jx, B = null, se = Ex({}, [
|
|
22980
|
+
...Mx,
|
|
22981
|
+
...Nx,
|
|
22958
22982
|
...Px,
|
|
22959
|
-
...Fx,
|
|
22960
22983
|
...Ix,
|
|
22961
|
-
...
|
|
22962
|
-
]),
|
|
22984
|
+
...Rx
|
|
22985
|
+
]), ce = null, le = Ex({}, [
|
|
22986
|
+
...zx,
|
|
22987
|
+
...Bx,
|
|
22988
|
+
...Vx,
|
|
22989
|
+
...Hx
|
|
22990
|
+
]), ue = Object.seal(ex(null, {
|
|
22963
22991
|
tagNameCheck: {
|
|
22964
22992
|
writable: !0,
|
|
22965
22993
|
configurable: !1,
|
|
@@ -22978,7 +23006,7 @@ function rS() {
|
|
|
22978
23006
|
enumerable: !0,
|
|
22979
23007
|
value: !1
|
|
22980
23008
|
}
|
|
22981
|
-
})), de = null, V = null, fe = Object.seal(
|
|
23009
|
+
})), de = null, V = null, fe = Object.seal(ex(null, {
|
|
22982
23010
|
tagCheck: {
|
|
22983
23011
|
writable: !0,
|
|
22984
23012
|
configurable: !1,
|
|
@@ -22991,14 +23019,14 @@ function rS() {
|
|
|
22991
23019
|
enumerable: !0,
|
|
22992
23020
|
value: null
|
|
22993
23021
|
}
|
|
22994
|
-
})), pe = !0, me = !0, he = !1, ge = !0, _e = !1, ve = !0, ye = !1, be = !1, xe = null, Se = null, Ce = !1, we = !1, Te = !1, Ee = !1, De = !0, Oe = !1, ke = "user-content-", Ae = !0, je = !1, Me = {}, H = null, Ne =
|
|
23022
|
+
})), pe = !0, me = !0, he = !1, ge = !0, _e = !1, ve = !0, ye = !1, be = !1, xe = null, Se = null, Ce = !1, we = !1, Te = !1, Ee = !1, De = !0, Oe = !1, ke = "user-content-", Ae = !0, je = !1, Me = {}, H = null, Ne = Ex({}, /* @__PURE__ */ "annotation-xml.audio.colgroup.desc.foreignobject.head.iframe.math.mi.mn.mo.ms.mtext.noembed.noframes.noscript.plaintext.script.selectedcontent.style.svg.template.thead.title.video.xmp".split(".")), Pe = null, Fe = Ex({}, [
|
|
22995
23023
|
"audio",
|
|
22996
23024
|
"video",
|
|
22997
23025
|
"img",
|
|
22998
23026
|
"source",
|
|
22999
23027
|
"image",
|
|
23000
23028
|
"track"
|
|
23001
|
-
]), Ie = null, Le =
|
|
23029
|
+
]), Ie = null, Le = Ex({}, [
|
|
23002
23030
|
"alt",
|
|
23003
23031
|
"class",
|
|
23004
23032
|
"for",
|
|
@@ -23013,17 +23041,17 @@ function rS() {
|
|
|
23013
23041
|
"value",
|
|
23014
23042
|
"style",
|
|
23015
23043
|
"xmlns"
|
|
23016
|
-
]), Re = "http://www.w3.org/1998/Math/MathML", ze = "http://www.w3.org/2000/svg", Be = "http://www.w3.org/1999/xhtml", Ve = Be, He = !1, Ue = null, We =
|
|
23044
|
+
]), Re = "http://www.w3.org/1998/Math/MathML", ze = "http://www.w3.org/2000/svg", Be = "http://www.w3.org/1999/xhtml", Ve = Be, He = !1, Ue = null, We = Ex({}, [
|
|
23017
23045
|
Re,
|
|
23018
23046
|
ze,
|
|
23019
23047
|
Be
|
|
23020
|
-
],
|
|
23048
|
+
], dx), U = Qb([
|
|
23021
23049
|
"mi",
|
|
23022
23050
|
"mo",
|
|
23023
23051
|
"mn",
|
|
23024
23052
|
"ms",
|
|
23025
23053
|
"mtext"
|
|
23026
|
-
]), Ge =
|
|
23054
|
+
]), Ge = Ex({}, U), Ke = Qb(["annotation-xml"]), qe = Ex({}, Ke), Je = Ex({}, [
|
|
23027
23055
|
"title",
|
|
23028
23056
|
"style",
|
|
23029
23057
|
"font",
|
|
@@ -23034,21 +23062,21 @@ function rS() {
|
|
|
23034
23062
|
}, et = function() {
|
|
23035
23063
|
let e = arguments.length > 0 && arguments[0] !== void 0 ? arguments[0] : {};
|
|
23036
23064
|
if (W && W === e) return;
|
|
23037
|
-
(!e || typeof e != "object") && (e = {}), e =
|
|
23065
|
+
(!e || typeof e != "object") && (e = {}), e = Ox(e), Ye = Xe.indexOf(e.PARSER_MEDIA_TYPE) === -1 ? "text/html" : e.PARSER_MEDIA_TYPE, Ze = Ye === "application/xhtml+xml" ? dx : ux, B = sS(e, "ALLOWED_TAGS", se, { transform: Ze }), ce = sS(e, "ALLOWED_ATTR", le, { transform: Ze }), Ue = sS(e, "ALLOWED_NAMESPACES", We, { transform: dx }), Ie = sS(e, "ADD_URI_SAFE_ATTR", Le, {
|
|
23038
23066
|
transform: Ze,
|
|
23039
23067
|
base: Le
|
|
23040
|
-
}), Pe =
|
|
23068
|
+
}), Pe = sS(e, "ADD_DATA_URI_TAGS", Fe, {
|
|
23041
23069
|
transform: Ze,
|
|
23042
23070
|
base: Fe
|
|
23043
|
-
}), H =
|
|
23044
|
-
let t =
|
|
23045
|
-
if (ue =
|
|
23071
|
+
}), H = sS(e, "FORBID_CONTENTS", Ne, { transform: Ze }), de = sS(e, "FORBID_TAGS", Ox({}), { transform: Ze }), V = sS(e, "FORBID_ATTR", Ox({}), { transform: Ze }), Me = bx(e, "USE_PROFILES") ? e.USE_PROFILES && typeof e.USE_PROFILES == "object" ? Ox(e.USE_PROFILES) : e.USE_PROFILES : !1, pe = e.ALLOW_ARIA_ATTR !== !1, me = e.ALLOW_DATA_ATTR !== !1, he = e.ALLOW_UNKNOWN_PROTOCOLS || !1, ge = e.ALLOW_SELF_CLOSE_IN_ATTR !== !1, _e = e.SAFE_FOR_TEMPLATES || !1, ve = e.SAFE_FOR_XML !== !1, ye = e.WHOLE_DOCUMENT || !1, we = e.RETURN_DOM || !1, Te = e.RETURN_DOM_FRAGMENT || !1, Ee = e.RETURN_TRUSTED_TYPE || !1, Ce = e.FORCE_BODY || !1, De = e.SANITIZE_DOM !== !1, Oe = e.SANITIZE_NAMED_PROPS || !1, Ae = e.KEEP_CONTENT !== !1, je = e.IN_PLACE || !1, oe = jx(e.ALLOWED_URI_REGEXP) ? e.ALLOWED_URI_REGEXP : Jx, Ve = typeof e.NAMESPACE == "string" ? e.NAMESPACE : Be, Ge = bx(e, "MATHML_TEXT_INTEGRATION_POINTS") && e.MATHML_TEXT_INTEGRATION_POINTS && typeof e.MATHML_TEXT_INTEGRATION_POINTS == "object" ? Ox(e.MATHML_TEXT_INTEGRATION_POINTS) : Ex({}, U), qe = bx(e, "HTML_INTEGRATION_POINTS") && e.HTML_INTEGRATION_POINTS && typeof e.HTML_INTEGRATION_POINTS == "object" ? Ox(e.HTML_INTEGRATION_POINTS) : Ex({}, Ke);
|
|
23072
|
+
let t = bx(e, "CUSTOM_ELEMENT_HANDLING") && e.CUSTOM_ELEMENT_HANDLING && typeof e.CUSTOM_ELEMENT_HANDLING == "object" ? Ox(e.CUSTOM_ELEMENT_HANDLING) : ex(null);
|
|
23073
|
+
if (ue = ex(null), bx(t, "tagNameCheck") && $e(t.tagNameCheck) && (ue.tagNameCheck = t.tagNameCheck), bx(t, "attributeNameCheck") && $e(t.attributeNameCheck) && (ue.attributeNameCheck = t.attributeNameCheck), bx(t, "allowCustomizedBuiltInElements") && typeof t.allowCustomizedBuiltInElements == "boolean" && (ue.allowCustomizedBuiltInElements = t.allowCustomizedBuiltInElements), $b(ue), _e && (me = !1), Te && (we = !0), Me && (B = Ex({}, Rx), ce = ex(null), Me.html === !0 && (Ex(B, Mx), Ex(ce, zx)), Me.svg === !0 && (Ex(B, Nx), Ex(ce, Bx), Ex(ce, Hx)), Me.svgFilters === !0 && (Ex(B, Px), Ex(ce, Bx), Ex(ce, Hx)), Me.mathMl === !0 && (Ex(B, Ix), Ex(ce, Vx), Ex(ce, Hx))), fe.tagCheck = null, fe.attributeCheck = null, bx(e, "ADD_TAGS") && (typeof e.ADD_TAGS == "function" ? fe.tagCheck = e.ADD_TAGS : lx(e.ADD_TAGS) && (B === se && (B = Ox(B)), Ex(B, e.ADD_TAGS, Ze))), bx(e, "ADD_ATTR") && (typeof e.ADD_ATTR == "function" ? fe.attributeCheck = e.ADD_ATTR : lx(e.ADD_ATTR) && (ce === le && (ce = Ox(ce)), Ex(ce, e.ADD_ATTR, Ze))), bx(e, "ADD_URI_SAFE_ATTR") && lx(e.ADD_URI_SAFE_ATTR) && Ex(Ie, e.ADD_URI_SAFE_ATTR, Ze), bx(e, "FORBID_CONTENTS") && lx(e.FORBID_CONTENTS) && (H === Ne && (H = Ox(H)), Ex(H, e.FORBID_CONTENTS, Ze)), bx(e, "ADD_FORBID_CONTENTS") && lx(e.ADD_FORBID_CONTENTS) && (H === Ne && (H = Ox(H)), Ex(H, e.ADD_FORBID_CONTENTS, Ze)), Ae && (B["#text"] = !0), ye && Ex(B, [
|
|
23046
23074
|
"html",
|
|
23047
23075
|
"head",
|
|
23048
23076
|
"body"
|
|
23049
|
-
]), B.table && (
|
|
23050
|
-
if (typeof e.TRUSTED_TYPES_POLICY.createHTML != "function") throw
|
|
23051
|
-
if (typeof e.TRUSTED_TYPES_POLICY.createScriptURL != "function") throw
|
|
23077
|
+
]), B.table && (Ex(B, ["tbody"]), delete de.tbody), e.TRUSTED_TYPES_POLICY) {
|
|
23078
|
+
if (typeof e.TRUSTED_TYPES_POLICY.createHTML != "function") throw Cx("TRUSTED_TYPES_POLICY configuration option must provide a \"createHTML\" hook.");
|
|
23079
|
+
if (typeof e.TRUSTED_TYPES_POLICY.createScriptURL != "function") throw Cx("TRUSTED_TYPES_POLICY configuration option must provide a \"createScriptURL\" hook.");
|
|
23052
23080
|
let t = S;
|
|
23053
23081
|
S = e.TRUSTED_TYPES_POLICY;
|
|
23054
23082
|
try {
|
|
@@ -23057,12 +23085,12 @@ function rS() {
|
|
|
23057
23085
|
throw S = t, e;
|
|
23058
23086
|
}
|
|
23059
23087
|
} else e.TRUSTED_TYPES_POLICY === null ? (S = void 0, C = "") : (S === void 0 && (S = A()), S && typeof C == "string" && (C = O("")));
|
|
23060
|
-
|
|
23061
|
-
}, tt =
|
|
23062
|
-
...
|
|
23063
|
-
...
|
|
23064
|
-
...
|
|
23065
|
-
]), nt =
|
|
23088
|
+
Qb && Qb(e), W = e;
|
|
23089
|
+
}, tt = Ex({}, [
|
|
23090
|
+
...Nx,
|
|
23091
|
+
...Px,
|
|
23092
|
+
...Fx
|
|
23093
|
+
]), nt = Ex({}, [...Ix, ...Lx]), rt = function(e, t, n) {
|
|
23066
23094
|
return t.namespaceURI === Be ? e === "svg" : t.namespaceURI === Re ? e === "svg" && (n === "annotation-xml" || Ge[n]) : !!tt[e];
|
|
23067
23095
|
}, it = function(e, t, n) {
|
|
23068
23096
|
return t.namespaceURI === Be ? e === "math" : t.namespaceURI === ze ? e === "math" && qe[n] : !!nt[e];
|
|
@@ -23074,23 +23102,23 @@ function rS() {
|
|
|
23074
23102
|
namespaceURI: Ve,
|
|
23075
23103
|
tagName: "template"
|
|
23076
23104
|
});
|
|
23077
|
-
let n =
|
|
23105
|
+
let n = ux(e.tagName), r = ux(t.tagName);
|
|
23078
23106
|
return Ue[e.namespaceURI] ? e.namespaceURI === ze ? rt(n, t, r) : e.namespaceURI === Re ? it(n, t, r) : e.namespaceURI === Be ? at(n, t, r) : !!(Ye === "application/xhtml+xml" && Ue[e.namespaceURI]) : !1;
|
|
23079
23107
|
}, st = function(e) {
|
|
23080
|
-
|
|
23108
|
+
sx(t.removed, { element: e });
|
|
23081
23109
|
try {
|
|
23082
23110
|
g(e).removeChild(e);
|
|
23083
23111
|
} catch {
|
|
23084
|
-
if (p(e), !g(e)) throw
|
|
23112
|
+
if (p(e), !g(e)) throw Cx("a node selected for removal could not be detached from its tree and cannot be safely returned; refusing to sanitize in place");
|
|
23085
23113
|
}
|
|
23086
23114
|
}, ct = function(e) {
|
|
23087
23115
|
dt(e);
|
|
23088
23116
|
let t = h(e);
|
|
23089
23117
|
if (t) {
|
|
23090
23118
|
let e = [];
|
|
23091
|
-
|
|
23092
|
-
|
|
23093
|
-
}),
|
|
23119
|
+
ix(t, (t) => {
|
|
23120
|
+
sx(e, t);
|
|
23121
|
+
}), ix(e, (e) => {
|
|
23094
23122
|
try {
|
|
23095
23123
|
p(e);
|
|
23096
23124
|
} catch {}
|
|
@@ -23105,12 +23133,12 @@ function rS() {
|
|
|
23105
23133
|
}
|
|
23106
23134
|
}, lt = function(e, n) {
|
|
23107
23135
|
try {
|
|
23108
|
-
|
|
23136
|
+
sx(t.removed, {
|
|
23109
23137
|
attribute: n.getAttributeNode(e),
|
|
23110
23138
|
from: n
|
|
23111
23139
|
});
|
|
23112
23140
|
} catch {
|
|
23113
|
-
|
|
23141
|
+
sx(t.removed, {
|
|
23114
23142
|
attribute: null,
|
|
23115
23143
|
from: n
|
|
23116
23144
|
});
|
|
@@ -23133,7 +23161,7 @@ function rS() {
|
|
|
23133
23161
|
let t = [e];
|
|
23134
23162
|
for (; t.length > 0;) {
|
|
23135
23163
|
let e = t.pop();
|
|
23136
|
-
(y ? y(e) : e.nodeType) ===
|
|
23164
|
+
(y ? y(e) : e.nodeType) === rS.element && ut(e);
|
|
23137
23165
|
let n = h(e);
|
|
23138
23166
|
if (n) for (let e = n.length - 1; e >= 0; --e) t.push(n[e]);
|
|
23139
23167
|
}
|
|
@@ -23142,13 +23170,13 @@ function rS() {
|
|
|
23142
23170
|
let t = [e];
|
|
23143
23171
|
for (; t.length > 0;) {
|
|
23144
23172
|
let e = t.pop(), n = y ? y(e) : e.nodeType;
|
|
23145
|
-
if (n ===
|
|
23173
|
+
if (n === rS.processingInstruction || n === rS.comment && Sx(eS, e.data)) {
|
|
23146
23174
|
try {
|
|
23147
23175
|
p(e);
|
|
23148
23176
|
} catch {}
|
|
23149
23177
|
continue;
|
|
23150
23178
|
}
|
|
23151
|
-
if (n ===
|
|
23179
|
+
if (n === rS.element) {
|
|
23152
23180
|
let t = e, n = Ze(b ? b(e) : e.nodeName);
|
|
23153
23181
|
try {
|
|
23154
23182
|
t.hasAttribute && t.hasAttribute("patchsrc") && t.removeAttribute("patchsrc"), t.hasAttribute && t.hasAttribute("for") && n !== "label" && n !== "output" && t.removeAttribute("for");
|
|
@@ -23161,7 +23189,7 @@ function rS() {
|
|
|
23161
23189
|
let t = null, r = null;
|
|
23162
23190
|
if (Ce) e = "<remove></remove>" + e;
|
|
23163
23191
|
else {
|
|
23164
|
-
let t =
|
|
23192
|
+
let t = fx(e, /^[\r\n\t ]+/);
|
|
23165
23193
|
r = t && t[0];
|
|
23166
23194
|
}
|
|
23167
23195
|
Ye === "application/xhtml+xml" && Ve === Be && (e = "<html xmlns=\"http://www.w3.org/1999/xhtml\"><head></head><body>" + e + "</body></html>");
|
|
@@ -23181,13 +23209,13 @@ function rS() {
|
|
|
23181
23209
|
let t = x ? x(e) : e.ownerDocument;
|
|
23182
23210
|
return M.call(t || e, e, c.SHOW_ELEMENT | c.SHOW_COMMENT | c.SHOW_TEXT | c.SHOW_PROCESSING_INSTRUCTION | c.SHOW_CDATA_SECTION, null);
|
|
23183
23211
|
}, ht = function(e) {
|
|
23184
|
-
return e =
|
|
23212
|
+
return e = px(e, ne, " "), e = px(e, I, " "), e = px(e, L, " "), e;
|
|
23185
23213
|
}, gt = function(e) {
|
|
23186
23214
|
e.normalize();
|
|
23187
23215
|
let t = x ? x(e) : e.ownerDocument, n = M.call(t || e, e, c.SHOW_TEXT | c.SHOW_COMMENT | c.SHOW_CDATA_SECTION | c.SHOW_PROCESSING_INSTRUCTION, null), r = n.nextNode();
|
|
23188
23216
|
for (; r;) r.data = ht(r.data), r = n.nextNode();
|
|
23189
23217
|
let i = e.querySelectorAll?.call(e, "template");
|
|
23190
|
-
i &&
|
|
23218
|
+
i && ix(i, (e) => {
|
|
23191
23219
|
vt(e.content) && gt(e.content);
|
|
23192
23220
|
});
|
|
23193
23221
|
}, _t = function(e) {
|
|
@@ -23196,7 +23224,7 @@ function rS() {
|
|
|
23196
23224
|
}, vt = function(e) {
|
|
23197
23225
|
if (!y || typeof e != "object" || !e) return !1;
|
|
23198
23226
|
try {
|
|
23199
|
-
return y(e) ===
|
|
23227
|
+
return y(e) === rS.documentFragment;
|
|
23200
23228
|
} catch {
|
|
23201
23229
|
return !1;
|
|
23202
23230
|
}
|
|
@@ -23209,14 +23237,14 @@ function rS() {
|
|
|
23209
23237
|
}
|
|
23210
23238
|
};
|
|
23211
23239
|
function bt(e, n, r) {
|
|
23212
|
-
e.length !== 0 &&
|
|
23240
|
+
e.length !== 0 && ix(e, (e) => {
|
|
23213
23241
|
e.call(t, n, r, W);
|
|
23214
23242
|
});
|
|
23215
23243
|
}
|
|
23216
23244
|
let xt = function(e, t) {
|
|
23217
|
-
return !!(ve && e.hasChildNodes() && !yt(e.firstElementChild) &&
|
|
23245
|
+
return !!(ve && e.hasChildNodes() && !yt(e.firstElementChild) && Sx($x, e.textContent) && Sx($x, e.innerHTML) || ve && e.namespaceURI === Be && t === "style" && yt(e.firstElementChild) || e.nodeType === rS.processingInstruction || ve && e.nodeType === rS.comment && Sx(eS, e.data));
|
|
23218
23246
|
}, St = function(e, t, n) {
|
|
23219
|
-
if (!de[t] && Dt(t) && (ue.tagNameCheck instanceof RegExp &&
|
|
23247
|
+
if (!de[t] && Dt(t) && (ue.tagNameCheck instanceof RegExp && Sx(ue.tagNameCheck, t) || ue.tagNameCheck instanceof Function && ue.tagNameCheck(t))) return !1;
|
|
23220
23248
|
if (Ae && !H[t]) {
|
|
23221
23249
|
let t = g(e), r = h(e);
|
|
23222
23250
|
if (r && t) {
|
|
@@ -23229,7 +23257,7 @@ function rS() {
|
|
|
23229
23257
|
}
|
|
23230
23258
|
return st(e), !0;
|
|
23231
23259
|
}, Ct = function(e, t, n, r) {
|
|
23232
|
-
return e.length === 0 ? t : t === n || t === r ?
|
|
23260
|
+
return e.length === 0 ? t : t === n || t === r ? Ox(t) : t;
|
|
23233
23261
|
}, wt = function(e, n) {
|
|
23234
23262
|
if (bt(F.beforeSanitizeElements, e, null), e !== n && g(e) === null) return je && dt(e), !0;
|
|
23235
23263
|
if (_t(e)) return st(e), !0;
|
|
@@ -23243,22 +23271,22 @@ function rS() {
|
|
|
23243
23271
|
let t = St(e, r, n);
|
|
23244
23272
|
return t === !1 && bt(F.afterSanitizeElements, e, null), t;
|
|
23245
23273
|
}
|
|
23246
|
-
if ((y ? y(e) : e.nodeType) ===
|
|
23247
|
-
if (_e && e.nodeType ===
|
|
23274
|
+
if ((y ? y(e) : e.nodeType) === rS.element && !ot(e) || (r === "noscript" || r === "noembed" || r === "noframes") && Sx(tS, e.innerHTML)) return st(e), !0;
|
|
23275
|
+
if (_e && e.nodeType === rS.text) {
|
|
23248
23276
|
let n = ht(e.textContent);
|
|
23249
|
-
e.textContent !== n && (
|
|
23277
|
+
e.textContent !== n && (sx(t.removed, { element: e.cloneNode() }), e.textContent = n);
|
|
23250
23278
|
}
|
|
23251
23279
|
return bt(F.afterSanitizeElements, e, null), !1;
|
|
23252
23280
|
}, Tt = function(e, t, r) {
|
|
23253
23281
|
if (V[t] || ve && t === "patchsrc" || ve && t === "for" && e !== "label" && e !== "output" || De && (t === "id" || t === "name") && (r in n || r in Qe)) return !1;
|
|
23254
23282
|
let i = ce[t] || fe.attributeCheck instanceof Function && fe.attributeCheck(t, e);
|
|
23255
|
-
if (!(me &&
|
|
23283
|
+
if (!(me && Sx(re, t)) && !(pe && Sx(R, t))) {
|
|
23256
23284
|
if (!i) {
|
|
23257
|
-
if (!(Dt(e) && (ue.tagNameCheck instanceof RegExp &&
|
|
23258
|
-
} else if (!Ie[t] && !
|
|
23285
|
+
if (!(Dt(e) && (ue.tagNameCheck instanceof RegExp && Sx(ue.tagNameCheck, e) || ue.tagNameCheck instanceof Function && ue.tagNameCheck(e)) && (ue.attributeNameCheck instanceof RegExp && Sx(ue.attributeNameCheck, t) || ue.attributeNameCheck instanceof Function && ue.attributeNameCheck(t, e)) || t === "is" && ue.allowCustomizedBuiltInElements && (ue.tagNameCheck instanceof RegExp && Sx(ue.tagNameCheck, r) || ue.tagNameCheck instanceof Function && ue.tagNameCheck(r)))) return !1;
|
|
23286
|
+
} else if (!Ie[t] && !Sx(oe, px(r, z, "")) && !((t === "src" || t === "xlink:href" || t === "href") && e !== "script" && mx(r, "data:") === 0 && Pe[e]) && !(he && !Sx(ie, px(r, z, ""))) && r) return !1;
|
|
23259
23287
|
}
|
|
23260
23288
|
return !0;
|
|
23261
|
-
}, Et =
|
|
23289
|
+
}, Et = Ex({}, [
|
|
23262
23290
|
"annotation-xml",
|
|
23263
23291
|
"color-profile",
|
|
23264
23292
|
"font-face",
|
|
@@ -23268,7 +23296,7 @@ function rS() {
|
|
|
23268
23296
|
"font-face-uri",
|
|
23269
23297
|
"missing-glyph"
|
|
23270
23298
|
]), Dt = function(e) {
|
|
23271
|
-
return !Et[
|
|
23299
|
+
return !Et[ux(e)] && Sx(ae, e);
|
|
23272
23300
|
}, G = function(e, t, n, r) {
|
|
23273
23301
|
if (S && typeof u == "object" && typeof u.getAttributeType == "function" && !n) switch (u.getAttributeType(e, t)) {
|
|
23274
23302
|
case "TrustedHTML": return O(r);
|
|
@@ -23277,7 +23305,7 @@ function rS() {
|
|
|
23277
23305
|
return r;
|
|
23278
23306
|
}, Ot = function(e, n, r, i) {
|
|
23279
23307
|
try {
|
|
23280
|
-
r ? e.setAttributeNS(r, n, i) : e.setAttribute(n, i), _t(e) ? st(e) :
|
|
23308
|
+
r ? e.setAttributeNS(r, n, i) : e.setAttribute(n, i), _t(e) ? st(e) : ox(t.removed);
|
|
23281
23309
|
} catch {
|
|
23282
23310
|
lt(n, e);
|
|
23283
23311
|
}
|
|
@@ -23294,12 +23322,12 @@ function rS() {
|
|
|
23294
23322
|
forceKeepAttr: void 0
|
|
23295
23323
|
}, r = t.length, i = Ze(e.nodeName);
|
|
23296
23324
|
for (; r--;) {
|
|
23297
|
-
let a = t[r], o = a.name, s = a.namespaceURI, c = a.value, l = Ze(o), u = c, d = o === "value" ? u :
|
|
23298
|
-
if (n.attrName = l, n.attrValue = d, n.keepAttr = !0, n.forceKeepAttr = void 0, bt(F.uponSanitizeAttribute, e, n), d = n.attrValue, Oe && (l === "id" || l === "name") &&
|
|
23325
|
+
let a = t[r], o = a.name, s = a.namespaceURI, c = a.value, l = Ze(o), u = c, d = o === "value" ? u : hx(u);
|
|
23326
|
+
if (n.attrName = l, n.attrValue = d, n.keepAttr = !0, n.forceKeepAttr = void 0, bt(F.uponSanitizeAttribute, e, n), d = n.attrValue, Oe && (l === "id" || l === "name") && mx(d, ke) !== 0 && (lt(o, e), d = ke + d), ve && Sx(/((--!?|])>)|<\/(style|script|title|xmp|textarea|noscript|iframe|noembed|noframes)/i, d)) {
|
|
23299
23327
|
lt(o, e);
|
|
23300
23328
|
continue;
|
|
23301
23329
|
}
|
|
23302
|
-
if (l === "attributename" &&
|
|
23330
|
+
if (l === "attributename" && fx(d, "href")) {
|
|
23303
23331
|
lt(o, e);
|
|
23304
23332
|
continue;
|
|
23305
23333
|
}
|
|
@@ -23308,7 +23336,7 @@ function rS() {
|
|
|
23308
23336
|
lt(o, e);
|
|
23309
23337
|
continue;
|
|
23310
23338
|
}
|
|
23311
|
-
if (!ge &&
|
|
23339
|
+
if (!ge && Sx(nS, d)) {
|
|
23312
23340
|
lt(o, e);
|
|
23313
23341
|
continue;
|
|
23314
23342
|
}
|
|
@@ -23322,7 +23350,7 @@ function rS() {
|
|
|
23322
23350
|
bt(F.afterSanitizeAttributes, e, null);
|
|
23323
23351
|
}, At = function(e) {
|
|
23324
23352
|
let t = null, n = mt(e);
|
|
23325
|
-
for (bt(F.beforeSanitizeShadowDOM, e, null); t = n.nextNode();) if (bt(F.uponSanitizeShadowNode, t, null), wt(t, e), kt(t), vt(t.content) && At(t.content), (y ? y(t) : t.nodeType) ===
|
|
23353
|
+
for (bt(F.beforeSanitizeShadowDOM, e, null); t = n.nextNode();) if (bt(F.uponSanitizeShadowNode, t, null), wt(t, e), kt(t), vt(t.content) && At(t.content), (y ? y(t) : t.nodeType) === rS.element) {
|
|
23326
23354
|
let e = _(t);
|
|
23327
23355
|
vt(e) && (jt(e), At(e));
|
|
23328
23356
|
}
|
|
@@ -23338,7 +23366,7 @@ function rS() {
|
|
|
23338
23366
|
At(e.shadow);
|
|
23339
23367
|
continue;
|
|
23340
23368
|
}
|
|
23341
|
-
let n = e.node, r = (y ? y(n) : n.nodeType) ===
|
|
23369
|
+
let n = e.node, r = (y ? y(n) : n.nodeType) === rS.element, i = h(n);
|
|
23342
23370
|
if (i) for (let e = i.length - 1; e >= 0; --e) t.push({
|
|
23343
23371
|
node: i[e],
|
|
23344
23372
|
shadow: null
|
|
@@ -23367,24 +23395,24 @@ function rS() {
|
|
|
23367
23395
|
};
|
|
23368
23396
|
return t.sanitize = function(e) {
|
|
23369
23397
|
let n = arguments.length > 1 && arguments[1] !== void 0 ? arguments[1] : {}, i = null, a = null, o = null, s = null;
|
|
23370
|
-
if (He = !e, He && (e = "<!-->"), typeof e != "string" && !yt(e) && (e =
|
|
23398
|
+
if (He = !e, He && (e = "<!-->"), typeof e != "string" && !yt(e) && (e = kx(e), typeof e != "string")) throw Cx("dirty is not a string, aborting");
|
|
23371
23399
|
if (!t.isSupported) return e;
|
|
23372
|
-
be ? (B = xe, ce = Se) : et(n), (F.uponSanitizeElement.length > 0 || F.uponSanitizeAttribute.length > 0) && (B =
|
|
23400
|
+
be ? (B = xe, ce = Se) : et(n), (F.uponSanitizeElement.length > 0 || F.uponSanitizeAttribute.length > 0) && (B = Ox(B)), F.uponSanitizeAttribute.length > 0 && (ce = Ox(ce)), t.removed = [];
|
|
23373
23401
|
let c = je && typeof e != "string" && yt(e);
|
|
23374
23402
|
if (c) {
|
|
23375
23403
|
ft(e);
|
|
23376
23404
|
let t = b ? b(e) : e.nodeName;
|
|
23377
23405
|
if (typeof t == "string") {
|
|
23378
23406
|
let n = Ze(t);
|
|
23379
|
-
if (!B[n] || de[n]) throw ct(e),
|
|
23407
|
+
if (!B[n] || de[n]) throw ct(e), Cx("root node is forbidden and cannot be sanitized in-place");
|
|
23380
23408
|
}
|
|
23381
|
-
if (_t(e)) throw ct(e),
|
|
23409
|
+
if (_t(e)) throw ct(e), Cx("root node is clobbered and cannot be sanitized in-place");
|
|
23382
23410
|
try {
|
|
23383
23411
|
jt(e);
|
|
23384
23412
|
} catch (t) {
|
|
23385
23413
|
throw ct(e), t;
|
|
23386
23414
|
}
|
|
23387
|
-
} else if (yt(e)) i = pt("<!---->"), a = i.ownerDocument.importNode(e, !0), a.nodeType ===
|
|
23415
|
+
} else if (yt(e)) i = pt("<!---->"), a = i.ownerDocument.importNode(e, !0), a.nodeType === rS.element && a.nodeName === "BODY" || a.nodeName === "HTML" ? i = a : i.appendChild(a), jt(a);
|
|
23388
23416
|
else {
|
|
23389
23417
|
if (!we && !_e && !ye && e.indexOf("<") === -1) return S && Ee ? O(e) : e;
|
|
23390
23418
|
if (i = pt(e), !i) return we ? null : Ee ? C : "";
|
|
@@ -23395,11 +23423,11 @@ function rS() {
|
|
|
23395
23423
|
let e = mt(l);
|
|
23396
23424
|
for (; o = e.nextNode();) wt(o, l), kt(o), vt(o.content) && At(o.content);
|
|
23397
23425
|
} catch (n) {
|
|
23398
|
-
throw c && (ct(e),
|
|
23426
|
+
throw c && (ct(e), ix(t.removed, (e) => {
|
|
23399
23427
|
e.element && dt(e.element);
|
|
23400
23428
|
})), n;
|
|
23401
23429
|
}
|
|
23402
|
-
if (c) return
|
|
23430
|
+
if (c) return ix(t.removed, (e) => {
|
|
23403
23431
|
e.element && dt(e.element);
|
|
23404
23432
|
}), _e && gt(e), e;
|
|
23405
23433
|
if (we) {
|
|
@@ -23408,7 +23436,7 @@ function rS() {
|
|
|
23408
23436
|
return (ce.shadowroot || ce.shadowrootmode) && (s = P.call(r, s, !0)), s;
|
|
23409
23437
|
}
|
|
23410
23438
|
let u = ye ? i.outerHTML : i.innerHTML;
|
|
23411
|
-
return ye && B["!doctype"] && i.ownerDocument && i.ownerDocument.doctype && i.ownerDocument.doctype.name &&
|
|
23439
|
+
return ye && B["!doctype"] && i.ownerDocument && i.ownerDocument.doctype && i.ownerDocument.doctype.name && Sx(Zx, i.ownerDocument.doctype.name) && (u = "<!DOCTYPE " + i.ownerDocument.doctype.name + ">\n" + u), _e && (u = ht(u)), S && Ee ? O(u) : u;
|
|
23412
23440
|
}, t.setConfig = function() {
|
|
23413
23441
|
let e = arguments.length > 0 && arguments[0] !== void 0 ? arguments[0] : {};
|
|
23414
23442
|
et(e), be = !0, xe = B, Se = ce;
|
|
@@ -23419,77 +23447,77 @@ function rS() {
|
|
|
23419
23447
|
let r = Ze(e), i = Ze(t);
|
|
23420
23448
|
return Tt(r, i, n);
|
|
23421
23449
|
}, t.addHook = function(e, t) {
|
|
23422
|
-
typeof t == "function" &&
|
|
23450
|
+
typeof t == "function" && bx(F, e) && sx(F[e], t);
|
|
23423
23451
|
}, t.removeHook = function(e, t) {
|
|
23424
|
-
if (
|
|
23452
|
+
if (bx(F, e)) {
|
|
23425
23453
|
if (t !== void 0) {
|
|
23426
|
-
let n =
|
|
23427
|
-
return n === -1 ? void 0 :
|
|
23454
|
+
let n = ax(F[e], t);
|
|
23455
|
+
return n === -1 ? void 0 : cx(F[e], n, 1)[0];
|
|
23428
23456
|
}
|
|
23429
|
-
return
|
|
23457
|
+
return ox(F[e]);
|
|
23430
23458
|
}
|
|
23431
23459
|
}, t.removeHooks = function(e) {
|
|
23432
|
-
|
|
23460
|
+
bx(F, e) && (F[e] = []);
|
|
23433
23461
|
}, t.removeAllHooks = function() {
|
|
23434
|
-
F =
|
|
23462
|
+
F = oS();
|
|
23435
23463
|
}, t;
|
|
23436
23464
|
}
|
|
23437
|
-
var
|
|
23465
|
+
var lS = cS();
|
|
23438
23466
|
//#endregion
|
|
23439
23467
|
//#region src/core/composables/useMarkdown.ts
|
|
23440
|
-
|
|
23468
|
+
nb.setOptions({
|
|
23441
23469
|
breaks: !0,
|
|
23442
23470
|
gfm: !0
|
|
23443
23471
|
});
|
|
23444
|
-
var
|
|
23445
|
-
|
|
23472
|
+
var uS = 2e4, dS = new nb.Renderer();
|
|
23473
|
+
dS.code = ({ text: e, lang: t }) => {
|
|
23446
23474
|
let n = (t || "").trim() || "plaintext", r = "";
|
|
23447
|
-
if (e.length > 2e4) r =
|
|
23475
|
+
if (e.length > 2e4) r = pS(e);
|
|
23448
23476
|
else try {
|
|
23449
|
-
r =
|
|
23477
|
+
r = Bb.highlight(e, {
|
|
23450
23478
|
language: n,
|
|
23451
23479
|
ignoreIllegals: !0
|
|
23452
23480
|
}).value;
|
|
23453
23481
|
} catch {
|
|
23454
|
-
r =
|
|
23482
|
+
r = pS(e);
|
|
23455
23483
|
}
|
|
23456
|
-
let i = encodeURIComponent(e), a =
|
|
23484
|
+
let i = encodeURIComponent(e), a = fS(n);
|
|
23457
23485
|
return `<pre class="code-block" data-lang="${a}" data-code="${i}"><code class="hljs language-${a}">${r}</code></pre>`;
|
|
23458
23486
|
};
|
|
23459
|
-
function
|
|
23487
|
+
function fS(e) {
|
|
23460
23488
|
return e.replace(/&/g, "&").replace(/"/g, """).replace(/</g, "<").replace(/>/g, ">");
|
|
23461
23489
|
}
|
|
23462
|
-
function
|
|
23490
|
+
function pS(e) {
|
|
23463
23491
|
return e.replace(/&/g, "&").replace(/</g, "<").replace(/>/g, ">");
|
|
23464
23492
|
}
|
|
23465
|
-
var
|
|
23493
|
+
var mS = { ADD_ATTR: [
|
|
23466
23494
|
"data-code",
|
|
23467
23495
|
"data-lang",
|
|
23468
23496
|
"target",
|
|
23469
23497
|
"rel"
|
|
23470
23498
|
] };
|
|
23471
|
-
function
|
|
23472
|
-
return
|
|
23499
|
+
function hS(e) {
|
|
23500
|
+
return lS.sanitize(e, mS);
|
|
23473
23501
|
}
|
|
23474
|
-
function
|
|
23475
|
-
return
|
|
23502
|
+
function gS(e) {
|
|
23503
|
+
return nb.parse(e || "", { renderer: dS });
|
|
23476
23504
|
}
|
|
23477
|
-
function
|
|
23478
|
-
return
|
|
23505
|
+
function _S(e) {
|
|
23506
|
+
return hS(gS(e));
|
|
23479
23507
|
}
|
|
23480
|
-
var
|
|
23481
|
-
function
|
|
23482
|
-
let t = /* @__PURE__ */ wn(
|
|
23508
|
+
var vS = 100, yS = 2e3;
|
|
23509
|
+
function bS(e) {
|
|
23510
|
+
let t = /* @__PURE__ */ wn(_S(e())), n = 0, r = null;
|
|
23483
23511
|
function i() {
|
|
23484
|
-
r = null, n = Date.now(), t.value =
|
|
23512
|
+
r = null, n = Date.now(), t.value = _S(e());
|
|
23485
23513
|
}
|
|
23486
23514
|
return ni(e, () => {
|
|
23487
23515
|
let a = e();
|
|
23488
|
-
if (a.length <=
|
|
23489
|
-
r &&= (clearTimeout(r), null), n = Date.now(), t.value =
|
|
23516
|
+
if (a.length <= yS) {
|
|
23517
|
+
r &&= (clearTimeout(r), null), n = Date.now(), t.value = _S(a);
|
|
23490
23518
|
return;
|
|
23491
23519
|
}
|
|
23492
|
-
let o = n +
|
|
23520
|
+
let o = n + vS - Date.now();
|
|
23493
23521
|
o <= 0 ? (r &&= (clearTimeout(r), null), i()) : r ||= setTimeout(i, o);
|
|
23494
23522
|
}), Ze(() => {
|
|
23495
23523
|
r &&= (clearTimeout(r), null);
|
|
@@ -23507,20 +23535,20 @@ function hS(e) {
|
|
|
23507
23535
|
}
|
|
23508
23536
|
//#endregion
|
|
23509
23537
|
//#region src/core/components/CodePreview.vue?vue&type=script&setup=true&lang.ts
|
|
23510
|
-
var
|
|
23538
|
+
var xS = { class: "code-preview-modal" }, SS = { class: "preview-header" }, CS = { class: "preview-title" }, wS = { class: "preview-tabs" }, TS = ["disabled"], ES = { class: "preview-actions" }, DS = ["title"], OS = {
|
|
23511
23539
|
key: 0,
|
|
23512
23540
|
viewBox: "0 0 16 16",
|
|
23513
23541
|
fill: "none",
|
|
23514
23542
|
"aria-hidden": "true"
|
|
23515
|
-
},
|
|
23543
|
+
}, kS = {
|
|
23516
23544
|
key: 1,
|
|
23517
23545
|
viewBox: "0 0 16 16",
|
|
23518
23546
|
fill: "none",
|
|
23519
23547
|
"aria-hidden": "true"
|
|
23520
|
-
},
|
|
23548
|
+
}, AS = { class: "preview-body" }, jS = ["srcdoc"], MS = {
|
|
23521
23549
|
key: 1,
|
|
23522
23550
|
class: "preview-source"
|
|
23523
|
-
},
|
|
23551
|
+
}, NS = /*#__PURE__*/ F_(/* @__PURE__ */ Fi({
|
|
23524
23552
|
__name: "CodePreview",
|
|
23525
23553
|
props: {
|
|
23526
23554
|
code: {},
|
|
@@ -23579,28 +23607,28 @@ app.mount('#app');
|
|
|
23579
23607
|
return (t, n) => (Y(), X("div", {
|
|
23580
23608
|
class: "code-preview-overlay",
|
|
23581
23609
|
onClick: n[3] ||= yl((e) => r("close"), ["self"])
|
|
23582
|
-
}, [Z("div",
|
|
23583
|
-
Z("span",
|
|
23584
|
-
Z("div",
|
|
23610
|
+
}, [Z("div", xS, [Z("div", SS, [
|
|
23611
|
+
Z("span", CS, "代码预览 · " + U(e.lang), 1),
|
|
23612
|
+
Z("div", wS, [Z("button", {
|
|
23585
23613
|
class: H({ active: a.value === "preview" }),
|
|
23586
23614
|
disabled: !s.value,
|
|
23587
23615
|
onClick: n[0] ||= (e) => a.value = "preview"
|
|
23588
|
-
}, "预览", 10,
|
|
23616
|
+
}, "预览", 10, TS), Z("button", {
|
|
23589
23617
|
class: H({ active: a.value === "source" }),
|
|
23590
23618
|
onClick: n[1] ||= (e) => a.value = "source"
|
|
23591
23619
|
}, "源码", 2)]),
|
|
23592
|
-
Z("div",
|
|
23620
|
+
Z("div", ES, [
|
|
23593
23621
|
Z("button", {
|
|
23594
23622
|
class: H(["icon-btn", { done: o.value }]),
|
|
23595
23623
|
title: o.value ? "已复制" : "复制代码",
|
|
23596
23624
|
onClick: u
|
|
23597
|
-
}, [o.value ? (Y(), X("svg",
|
|
23625
|
+
}, [o.value ? (Y(), X("svg", OS, [...n[4] ||= [Z("path", {
|
|
23598
23626
|
d: "M3 8.5l3 3 7-7",
|
|
23599
23627
|
stroke: "currentColor",
|
|
23600
23628
|
"stroke-width": "1.6",
|
|
23601
23629
|
"stroke-linecap": "round",
|
|
23602
23630
|
"stroke-linejoin": "round"
|
|
23603
|
-
}, null, -1)]])) : (Y(), X("svg",
|
|
23631
|
+
}, null, -1)]])) : (Y(), X("svg", kS, [...n[5] ||= [Z("rect", {
|
|
23604
23632
|
x: "5.5",
|
|
23605
23633
|
y: "5.5",
|
|
23606
23634
|
width: "8",
|
|
@@ -23612,7 +23640,7 @@ app.mount('#app');
|
|
|
23612
23640
|
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",
|
|
23613
23641
|
stroke: "currentColor",
|
|
23614
23642
|
"stroke-width": "1.3"
|
|
23615
|
-
}, null, -1)]]))], 10,
|
|
23643
|
+
}, null, -1)]]))], 10, DS),
|
|
23616
23644
|
Z("button", {
|
|
23617
23645
|
class: "icon-btn",
|
|
23618
23646
|
title: "新窗口打开",
|
|
@@ -23648,20 +23676,20 @@ app.mount('#app');
|
|
|
23648
23676
|
"stroke-linecap": "round"
|
|
23649
23677
|
})], -1)]])
|
|
23650
23678
|
])
|
|
23651
|
-
]), Z("div",
|
|
23679
|
+
]), Z("div", AS, [a.value === "preview" && s.value ? (Y(), X("iframe", {
|
|
23652
23680
|
key: 0,
|
|
23653
23681
|
ref_key: "iframeRef",
|
|
23654
23682
|
ref: i,
|
|
23655
23683
|
class: "preview-iframe",
|
|
23656
23684
|
sandbox: "allow-scripts allow-modals allow-popups allow-forms",
|
|
23657
23685
|
srcdoc: c.value
|
|
23658
|
-
}, null, 8,
|
|
23686
|
+
}, null, 8, jS)) : (Y(), X("pre", MS, [Z("code", null, U(e.code), 1)]))])])]));
|
|
23659
23687
|
}
|
|
23660
|
-
}), [["__scopeId", "data-v-bf0ccf96"]]),
|
|
23688
|
+
}), [["__scopeId", "data-v-bf0ccf96"]]), PS = ["innerHTML"], FS = /* @__PURE__ */ Fi({
|
|
23661
23689
|
__name: "MessageContent",
|
|
23662
23690
|
props: { content: {} },
|
|
23663
23691
|
setup(e) {
|
|
23664
|
-
let t = e, { html: n, codeBlocks: r } =
|
|
23692
|
+
let t = e, { html: n, codeBlocks: r } = bS(() => t.content), i = /* @__PURE__ */ Cn(null), a = /* @__PURE__ */ Cn(null), o = [
|
|
23665
23693
|
"html",
|
|
23666
23694
|
"htm",
|
|
23667
23695
|
"vue",
|
|
@@ -23734,17 +23762,17 @@ app.mount('#app');
|
|
|
23734
23762
|
ref_key: "containerRef",
|
|
23735
23763
|
ref: i,
|
|
23736
23764
|
innerHTML: K(n)
|
|
23737
|
-
}, null, 8,
|
|
23765
|
+
}, null, 8, PS), (Y(), as(_i, { to: "body" }, [a.value ? (Y(), as(NS, {
|
|
23738
23766
|
key: 0,
|
|
23739
23767
|
code: a.value.code,
|
|
23740
23768
|
lang: a.value.lang,
|
|
23741
23769
|
onClose: t[0] ||= (e) => a.value = null
|
|
23742
23770
|
}, null, 8, ["code", "lang"])) : Q("", !0)]))], 64));
|
|
23743
23771
|
}
|
|
23744
|
-
}),
|
|
23772
|
+
}), IS = {
|
|
23745
23773
|
key: 0,
|
|
23746
23774
|
class: "stream-cursor"
|
|
23747
|
-
},
|
|
23775
|
+
}, LS = /*#__PURE__*/ F_(/* @__PURE__ */ Fi({
|
|
23748
23776
|
__name: "MessageBubble",
|
|
23749
23777
|
props: {
|
|
23750
23778
|
content: {},
|
|
@@ -23754,43 +23782,43 @@ app.mount('#app');
|
|
|
23754
23782
|
showCursor: { type: Boolean }
|
|
23755
23783
|
},
|
|
23756
23784
|
setup(e) {
|
|
23757
|
-
return (t, n) => (Y(), X(J, null, [Z("div", { class: H(["message-bubble", [e.role, { typing: e.isPendingAssistant }]]) }, [e.isPendingAssistant ? (Y(), X(J, { key: 0 }, [Z("span", { class: H(["typing-dot", { pulse: e.showTyping }]) }, null, 2), n[0] ||= Z("span", { class: "typing-text" }, "思考中...", -1)], 64)) : (Y(), X(J, { key: 1 }, [e.role === "assistant" ? (Y(), as(
|
|
23785
|
+
return (t, n) => (Y(), X(J, null, [Z("div", { class: H(["message-bubble", [e.role, { typing: e.isPendingAssistant }]]) }, [e.isPendingAssistant ? (Y(), X(J, { key: 0 }, [Z("span", { class: H(["typing-dot", { pulse: e.showTyping }]) }, null, 2), n[0] ||= Z("span", { class: "typing-text" }, "思考中...", -1)], 64)) : (Y(), X(J, { key: 1 }, [e.role === "assistant" ? (Y(), as(FS, {
|
|
23758
23786
|
key: 0,
|
|
23759
23787
|
content: e.content
|
|
23760
|
-
}, null, 8, ["content"])) : (Y(), X(J, { key: 1 }, [_s(U(e.content), 1)], 64))], 64))], 2), e.showCursor ? (Y(), X("span",
|
|
23788
|
+
}, null, 8, ["content"])) : (Y(), X(J, { key: 1 }, [_s(U(e.content), 1)], 64))], 64))], 2), e.showCursor ? (Y(), X("span", IS)) : Q("", !0)], 64));
|
|
23761
23789
|
}
|
|
23762
|
-
}), [["__scopeId", "data-v-c38029d9"]]),
|
|
23790
|
+
}), [["__scopeId", "data-v-c38029d9"]]), RS = { class: "message-time" }, zS = /*#__PURE__*/ F_(/* @__PURE__ */ Fi({
|
|
23763
23791
|
__name: "MessageTime",
|
|
23764
23792
|
props: { time: {} },
|
|
23765
23793
|
setup(e) {
|
|
23766
|
-
return (t, n) => (Y(), X("div",
|
|
23794
|
+
return (t, n) => (Y(), X("div", RS, U(e.time), 1));
|
|
23767
23795
|
}
|
|
23768
|
-
}), [["__scopeId", "data-v-4a976e4a"]]),
|
|
23796
|
+
}), [["__scopeId", "data-v-4a976e4a"]]), BS = { class: "msg-actions" }, VS = ["title"], HS = {
|
|
23769
23797
|
key: 0,
|
|
23770
23798
|
viewBox: "0 0 16 16",
|
|
23771
23799
|
fill: "none",
|
|
23772
23800
|
"aria-hidden": "true"
|
|
23773
|
-
},
|
|
23801
|
+
}, US = {
|
|
23774
23802
|
key: 1,
|
|
23775
23803
|
viewBox: "0 0 16 16",
|
|
23776
23804
|
fill: "none",
|
|
23777
23805
|
"aria-hidden": "true"
|
|
23778
|
-
},
|
|
23806
|
+
}, WS = /*#__PURE__*/ F_(/* @__PURE__ */ Fi({
|
|
23779
23807
|
__name: "MessageActions",
|
|
23780
23808
|
props: { copied: { type: Boolean } },
|
|
23781
23809
|
emits: ["copy", "regenerate"],
|
|
23782
23810
|
setup(e) {
|
|
23783
|
-
return (t, n) => (Y(), X("div",
|
|
23811
|
+
return (t, n) => (Y(), X("div", BS, [Z("button", {
|
|
23784
23812
|
class: H(["msg-action-btn", { done: e.copied }]),
|
|
23785
23813
|
title: e.copied ? "已复制" : "复制",
|
|
23786
23814
|
onClick: n[0] ||= (e) => t.$emit("copy")
|
|
23787
|
-
}, [e.copied ? (Y(), X("svg",
|
|
23815
|
+
}, [e.copied ? (Y(), X("svg", HS, [...n[2] ||= [Z("path", {
|
|
23788
23816
|
d: "M3 8.5l3 3 7-7",
|
|
23789
23817
|
stroke: "currentColor",
|
|
23790
23818
|
"stroke-width": "1.6",
|
|
23791
23819
|
"stroke-linecap": "round",
|
|
23792
23820
|
"stroke-linejoin": "round"
|
|
23793
|
-
}, null, -1)]])) : (Y(), X("svg",
|
|
23821
|
+
}, null, -1)]])) : (Y(), X("svg", US, [...n[3] ||= [Z("rect", {
|
|
23794
23822
|
x: "5.5",
|
|
23795
23823
|
y: "5.5",
|
|
23796
23824
|
width: "8",
|
|
@@ -23802,7 +23830,7 @@ app.mount('#app');
|
|
|
23802
23830
|
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",
|
|
23803
23831
|
stroke: "currentColor",
|
|
23804
23832
|
"stroke-width": "1.3"
|
|
23805
|
-
}, null, -1)]])), Z("span", null, U(e.copied ? "已复制" : "复制"), 1)], 10,
|
|
23833
|
+
}, null, -1)]])), Z("span", null, U(e.copied ? "已复制" : "复制"), 1)], 10, VS), Z("button", {
|
|
23806
23834
|
class: "msg-action-btn",
|
|
23807
23835
|
title: "重新生成",
|
|
23808
23836
|
onClick: n[1] ||= (e) => t.$emit("regenerate")
|
|
@@ -23823,31 +23851,37 @@ app.mount('#app');
|
|
|
23823
23851
|
"stroke-linejoin": "round"
|
|
23824
23852
|
})], -1), Z("span", null, "重新生成", -1)]])]));
|
|
23825
23853
|
}
|
|
23826
|
-
}), [["__scopeId", "data-v-49dbc830"]]),
|
|
23854
|
+
}), [["__scopeId", "data-v-49dbc830"]]), GS = {
|
|
23827
23855
|
key: 0,
|
|
23856
|
+
class: "avatar-glyph"
|
|
23857
|
+
}, KS = {
|
|
23858
|
+
key: 1,
|
|
23828
23859
|
class: "avatar-icon",
|
|
23829
23860
|
viewBox: "0 0 1024 1024",
|
|
23830
23861
|
xmlns: "http://www.w3.org/2000/svg",
|
|
23831
23862
|
"aria-hidden": "true"
|
|
23832
|
-
},
|
|
23833
|
-
key:
|
|
23863
|
+
}, qS = {
|
|
23864
|
+
key: 2,
|
|
23834
23865
|
class: "avatar-icon",
|
|
23835
23866
|
viewBox: "0 0 1024 1024",
|
|
23836
23867
|
xmlns: "http://www.w3.org/2000/svg",
|
|
23837
23868
|
"aria-hidden": "true"
|
|
23838
|
-
},
|
|
23869
|
+
}, JS = /*#__PURE__*/ F_(/* @__PURE__ */ Fi({
|
|
23839
23870
|
__name: "AvatarIcon",
|
|
23840
|
-
props: {
|
|
23871
|
+
props: {
|
|
23872
|
+
role: {},
|
|
23873
|
+
glyph: {}
|
|
23874
|
+
},
|
|
23841
23875
|
setup(e) {
|
|
23842
|
-
return (t, n) => e.role === "user" ? (Y(), X("svg",
|
|
23876
|
+
return (t, n) => e.glyph ? (Y(), X("span", GS, U(e.glyph), 1)) : e.role === "user" ? (Y(), X("svg", KS, [...n[0] ||= [Z("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)]])) : (Y(), X("svg", qS, [...n[1] ||= [Z("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)]]));
|
|
23843
23877
|
}
|
|
23844
|
-
}), [["__scopeId", "data-v-
|
|
23878
|
+
}), [["__scopeId", "data-v-e6430248"]]), YS = ["data-msg-idx"], XS = {
|
|
23845
23879
|
key: 0,
|
|
23846
23880
|
class: "message-avatar"
|
|
23847
|
-
},
|
|
23881
|
+
}, ZS = { class: "message-content" }, QS = {
|
|
23848
23882
|
key: 2,
|
|
23849
23883
|
class: "msg-focuses"
|
|
23850
|
-
},
|
|
23884
|
+
}, $S = ["title", "onClick"], eC = /*#__PURE__*/ F_(/* @__PURE__ */ Fi({
|
|
23851
23885
|
__name: "MessageRow",
|
|
23852
23886
|
props: {
|
|
23853
23887
|
message: {},
|
|
@@ -23867,28 +23901,32 @@ app.mount('#app');
|
|
|
23867
23901
|
"regenerate"
|
|
23868
23902
|
],
|
|
23869
23903
|
setup(e) {
|
|
23870
|
-
let t = e, n =
|
|
23904
|
+
let t = e, n = x_(), r = Qs(() => t.message.role === "assistant"), i = Qs(() => r.value && "reasoning" in t.message ? t.message.reasoning ?? "" : ""), a = Qs(() => r.value && "steps" in t.message ? t.message.steps ?? [] : []), o = Qs(() => r.value && !!t.message.content && !t.loading && t.isLast), s = Qs(() => r.value && t.loading && t.isLast && !!t.message.content);
|
|
23871
23905
|
return (t, c) => (Y(), X("div", {
|
|
23872
23906
|
class: H(["message-row", e.message.role]),
|
|
23873
23907
|
"data-msg-idx": e.index
|
|
23874
|
-
}, [e.showAvatar ? (Y(), X("div",
|
|
23875
|
-
|
|
23908
|
+
}, [e.showAvatar ? (Y(), X("div", XS, [fs(JS, {
|
|
23909
|
+
role: e.message.role,
|
|
23910
|
+
glyph: e.message.role === "user" ? K(n).icons.userAvatar : K(n).icons.assistantAvatar
|
|
23911
|
+
}, null, 8, ["role", "glyph"])])) : Q("", !0), Z("div", ZS, [
|
|
23912
|
+
r.value ? (Y(), as(K_, {
|
|
23876
23913
|
key: 0,
|
|
23877
23914
|
text: i.value,
|
|
23878
23915
|
expanded: e.reasoningExpanded,
|
|
23879
23916
|
onToggle: c[0] ||= (e) => t.$emit("toggle-reasoning")
|
|
23880
23917
|
}, null, 8, ["text", "expanded"])) : Q("", !0),
|
|
23881
|
-
r.value ? (Y(), as(
|
|
23918
|
+
r.value ? (Y(), as(Sv, {
|
|
23882
23919
|
key: 1,
|
|
23883
|
-
steps: a.value
|
|
23884
|
-
|
|
23885
|
-
|
|
23920
|
+
steps: a.value,
|
|
23921
|
+
icons: K(n).icons
|
|
23922
|
+
}, null, 8, ["steps", "icons"])) : Q("", !0),
|
|
23923
|
+
e.message.role === "user" && e.message.focuses?.length ? (Y(), X("div", QS, [(Y(!0), X(J, null, sa(e.message.focuses, (e) => (Y(), X("span", {
|
|
23886
23924
|
key: e.path,
|
|
23887
23925
|
class: "msg-focus-chip",
|
|
23888
23926
|
title: `回看 ${e.path}`,
|
|
23889
23927
|
onClick: (t) => K(n).focusChipClick(e)
|
|
23890
|
-
}, "
|
|
23891
|
-
fs(
|
|
23928
|
+
}, U(K(n).icons.focus) + " " + U(e.path), 9, $S))), 128))])) : Q("", !0),
|
|
23929
|
+
fs(LS, {
|
|
23892
23930
|
content: e.message.content,
|
|
23893
23931
|
role: e.message.role,
|
|
23894
23932
|
"is-pending-assistant": e.isPendingAssistant,
|
|
@@ -23901,38 +23939,38 @@ app.mount('#app');
|
|
|
23901
23939
|
"show-typing",
|
|
23902
23940
|
"show-cursor"
|
|
23903
23941
|
]),
|
|
23904
|
-
fs(
|
|
23905
|
-
o.value ? (Y(), as(
|
|
23942
|
+
fs(zS, { time: e.time }, null, 8, ["time"]),
|
|
23943
|
+
o.value ? (Y(), as(WS, {
|
|
23906
23944
|
key: 3,
|
|
23907
23945
|
copied: e.copied,
|
|
23908
23946
|
onCopy: c[1] ||= (e) => t.$emit("copy"),
|
|
23909
23947
|
onRegenerate: c[2] ||= (e) => t.$emit("regenerate")
|
|
23910
23948
|
}, null, 8, ["copied"])) : Q("", !0)
|
|
23911
|
-
])], 10,
|
|
23949
|
+
])], 10, YS));
|
|
23912
23950
|
}
|
|
23913
|
-
}), [["__scopeId", "data-v-
|
|
23951
|
+
}), [["__scopeId", "data-v-fccdaca0"]]), tC = { class: "chat-body" }, nC = {
|
|
23914
23952
|
key: 0,
|
|
23915
23953
|
class: "empty-state"
|
|
23916
|
-
},
|
|
23954
|
+
}, rC = { class: "empty-icon" }, iC = {
|
|
23917
23955
|
key: 1,
|
|
23918
23956
|
class: "message-row assistant"
|
|
23919
|
-
},
|
|
23957
|
+
}, aC = {
|
|
23920
23958
|
key: 0,
|
|
23921
23959
|
class: "message-avatar"
|
|
23922
|
-
},
|
|
23960
|
+
}, oC = { class: "message-content" }, sC = {
|
|
23923
23961
|
key: 2,
|
|
23924
23962
|
class: "error-bar"
|
|
23925
|
-
},
|
|
23963
|
+
}, cC = { class: "error-text" }, lC = /*#__PURE__*/ F_(/* @__PURE__ */ Fi({
|
|
23926
23964
|
__name: "MessageList",
|
|
23927
23965
|
props: {
|
|
23928
23966
|
showAvatar: { type: Boolean },
|
|
23929
23967
|
showTyping: { type: Boolean }
|
|
23930
23968
|
},
|
|
23931
23969
|
setup(e) {
|
|
23932
|
-
let { chat: t, formatTime: n, copiedMsg: r, copyMessage: i, isPendingAssistant: a, isReasoningExpanded: o, toggleReasoning: s, canUndo: c, undo: l } =
|
|
23933
|
-
return (t,
|
|
23934
|
-
|
|
23935
|
-
(Y(!0), X(J, null, sa(K(
|
|
23970
|
+
let { chat: t, formatTime: n, copiedMsg: r, copyMessage: i, isPendingAssistant: a, isReasoningExpanded: o, toggleReasoning: s, canUndo: c, undo: l, icons: u } = x_(), { state: d, retry: f, regenerate: p } = t, m = Qs(() => d.messages.length > 0), h = Qs(() => d.messages.some((e) => e.role === "user")), g = Qs(() => d.messages[d.messages.length - 1]?.role === "assistant");
|
|
23971
|
+
return (t, _) => (Y(), X("div", tC, [
|
|
23972
|
+
m.value ? Q("", !0) : (Y(), X("div", nC, [Z("div", rC, U(K(u).empty), 1), _[2] ||= Z("p", null, "有什么可以帮你的?", -1)])),
|
|
23973
|
+
(Y(!0), X(J, null, sa(K(d).messages, (t, c) => (Y(), as(eC, {
|
|
23936
23974
|
key: c,
|
|
23937
23975
|
message: t,
|
|
23938
23976
|
index: c,
|
|
@@ -23941,12 +23979,12 @@ app.mount('#app');
|
|
|
23941
23979
|
"is-pending-assistant": K(a)(c),
|
|
23942
23980
|
"reasoning-expanded": K(o)(c),
|
|
23943
23981
|
copied: K(r),
|
|
23944
|
-
"is-last": c === K(
|
|
23945
|
-
loading: K(
|
|
23982
|
+
"is-last": c === K(d).messages.length - 1,
|
|
23983
|
+
loading: K(d).loading,
|
|
23946
23984
|
time: K(n)(t.timestamp),
|
|
23947
23985
|
onToggleReasoning: (e) => K(s)(c),
|
|
23948
23986
|
onCopy: (e) => K(i)(t.content),
|
|
23949
|
-
onRegenerate: K(
|
|
23987
|
+
onRegenerate: K(p)
|
|
23950
23988
|
}, null, 8, [
|
|
23951
23989
|
"message",
|
|
23952
23990
|
"index",
|
|
@@ -23962,88 +24000,91 @@ app.mount('#app');
|
|
|
23962
24000
|
"onCopy",
|
|
23963
24001
|
"onRegenerate"
|
|
23964
24002
|
]))), 128)),
|
|
23965
|
-
K(
|
|
24003
|
+
K(d).loading && !g.value ? (Y(), X("div", iC, [e.showAvatar ? (Y(), X("div", aC, [fs(JS, {
|
|
24004
|
+
role: "assistant",
|
|
24005
|
+
glyph: K(u).assistantAvatar
|
|
24006
|
+
}, null, 8, ["glyph"])])) : Q("", !0), Z("div", oC, [fs(LS, {
|
|
23966
24007
|
content: "",
|
|
23967
24008
|
role: "assistant",
|
|
23968
24009
|
"is-pending-assistant": !0,
|
|
23969
24010
|
"show-typing": e.showTyping,
|
|
23970
24011
|
"show-cursor": !1
|
|
23971
24012
|
}, null, 8, ["show-typing"])])])) : Q("", !0),
|
|
23972
|
-
K(
|
|
23973
|
-
Z("span",
|
|
23974
|
-
|
|
24013
|
+
K(d).error ? (Y(), X("div", sC, [
|
|
24014
|
+
Z("span", cC, U(K(d).error), 1),
|
|
24015
|
+
h.value ? (Y(), X("button", {
|
|
23975
24016
|
key: 0,
|
|
23976
24017
|
class: "retry-btn",
|
|
23977
|
-
onClick:
|
|
24018
|
+
onClick: _[0] ||= (...e) => K(f) && K(f)(...e)
|
|
23978
24019
|
}, "重试")) : Q("", !0),
|
|
23979
24020
|
K(c) ? (Y(), X("button", {
|
|
23980
24021
|
key: 1,
|
|
23981
24022
|
class: "undo-btn",
|
|
23982
24023
|
title: "回退到上次正常状态(还原对话历史 + 页面属性 + 工作区)",
|
|
23983
|
-
onClick:
|
|
24024
|
+
onClick: _[1] ||= (...e) => K(l) && K(l)(...e)
|
|
23984
24025
|
}, "↩ 回退")) : Q("", !0)
|
|
23985
24026
|
])) : Q("", !0)
|
|
23986
24027
|
]));
|
|
23987
24028
|
}
|
|
23988
|
-
}), [["__scopeId", "data-v-
|
|
24029
|
+
}), [["__scopeId", "data-v-df6d11af"]]), uC = {
|
|
23989
24030
|
key: 0,
|
|
23990
24031
|
class: "queued-bar"
|
|
23991
|
-
},
|
|
24032
|
+
}, dC = { class: "queued-head" }, fC = { class: "queued-icon" }, pC = { class: "queued-count" }, mC = { class: "queued-idx" }, hC = { class: "queued-text" }, gC = ["onClick"], _C = ["onClick"], vC = /*#__PURE__*/ F_(/* @__PURE__ */ Fi({
|
|
23992
24033
|
__name: "QueuedBar",
|
|
23993
24034
|
setup(e) {
|
|
23994
|
-
let { chat: t, editQueued: n } =
|
|
23995
|
-
return (e, t) => K(
|
|
23996
|
-
|
|
23997
|
-
t[
|
|
23998
|
-
Z("span",
|
|
23999
|
-
]), (Y(!0), X(J, null, sa(K(
|
|
24035
|
+
let { chat: t, editQueued: n, icons: r } = x_(), { queuedTasks: i, removeQueuedTask: a } = t;
|
|
24036
|
+
return (e, t) => K(i).length ? (Y(), X("div", uC, [Z("div", dC, [
|
|
24037
|
+
Z("span", fC, U(K(r).queued), 1),
|
|
24038
|
+
t[0] ||= Z("span", { class: "queued-title" }, "排队中 · 生成完后自动执行", -1),
|
|
24039
|
+
Z("span", pC, U(K(i).length), 1)
|
|
24040
|
+
]), (Y(!0), X(J, null, sa(K(i), (e, t) => (Y(), X("div", {
|
|
24000
24041
|
key: t,
|
|
24001
24042
|
class: "queued-item"
|
|
24002
24043
|
}, [
|
|
24003
|
-
Z("span",
|
|
24004
|
-
Z("span",
|
|
24044
|
+
Z("span", mC, U(t + 1), 1),
|
|
24045
|
+
Z("span", hC, U(e), 1),
|
|
24005
24046
|
Z("button", {
|
|
24006
24047
|
class: "queued-act",
|
|
24007
24048
|
title: "修改(填回输入框编辑)",
|
|
24008
24049
|
onClick: (e) => K(n)(t)
|
|
24009
|
-
},
|
|
24050
|
+
}, U(K(r).queuedEdit), 9, gC),
|
|
24010
24051
|
Z("button", {
|
|
24011
24052
|
class: "queued-act queued-del",
|
|
24012
24053
|
title: "撤销该任务",
|
|
24013
|
-
onClick: (e) => K(
|
|
24014
|
-
}, "✕", 8,
|
|
24054
|
+
onClick: (e) => K(a)(t)
|
|
24055
|
+
}, "✕", 8, _C)
|
|
24015
24056
|
]))), 128))])) : Q("", !0);
|
|
24016
24057
|
}
|
|
24017
|
-
}), [["__scopeId", "data-v-
|
|
24058
|
+
}), [["__scopeId", "data-v-d8bbbb53"]]), yC = {
|
|
24018
24059
|
key: 0,
|
|
24019
24060
|
class: "approval-bar"
|
|
24020
|
-
},
|
|
24061
|
+
}, bC = {
|
|
24021
24062
|
key: 0,
|
|
24022
24063
|
class: "approval-question"
|
|
24023
|
-
},
|
|
24064
|
+
}, xC = {
|
|
24024
24065
|
key: 1,
|
|
24025
24066
|
class: "approval-context"
|
|
24026
|
-
},
|
|
24067
|
+
}, SC = {
|
|
24027
24068
|
key: 2,
|
|
24028
24069
|
class: "approval-recommend"
|
|
24029
|
-
},
|
|
24070
|
+
}, CC = {
|
|
24030
24071
|
key: 3,
|
|
24031
24072
|
class: "approval-options"
|
|
24032
|
-
},
|
|
24073
|
+
}, wC = ["onClick"], TC = { class: "approval-actions" }, EC = { class: "approval-head" }, DC = { class: "approval-title" }, OC = {
|
|
24033
24074
|
key: 0,
|
|
24034
24075
|
class: "approval-args"
|
|
24035
|
-
},
|
|
24076
|
+
}, kC = { class: "approval-actions" }, AC = /*#__PURE__*/ F_(/* @__PURE__ */ Fi({
|
|
24036
24077
|
__name: "ApprovalBar",
|
|
24037
24078
|
setup(e) {
|
|
24038
|
-
let { pendingApproval:
|
|
24039
|
-
ni(
|
|
24040
|
-
|
|
24079
|
+
let t = x_(), { pendingApproval: n, resolveApproval: r } = t.chat, i = /* @__PURE__ */ Cn(!1);
|
|
24080
|
+
ni(n, () => {
|
|
24081
|
+
i.value = !1;
|
|
24041
24082
|
});
|
|
24042
|
-
let
|
|
24043
|
-
let e =
|
|
24083
|
+
let a = Qs(() => n.value?.toolName === "request_human_confirmation"), o = Qs(() => {
|
|
24084
|
+
let e = n.value?.args?.options;
|
|
24044
24085
|
return Array.isArray(e) ? e.map(String) : [];
|
|
24045
|
-
}),
|
|
24046
|
-
let e =
|
|
24086
|
+
}), s = Qs(() => {
|
|
24087
|
+
let e = n.value?.args;
|
|
24047
24088
|
if (e == null) return "";
|
|
24048
24089
|
try {
|
|
24049
24090
|
let t = typeof e == "string" ? e : JSON.stringify(e, null, 2);
|
|
@@ -24052,55 +24093,56 @@ app.mount('#app');
|
|
|
24052
24093
|
return String(e);
|
|
24053
24094
|
}
|
|
24054
24095
|
});
|
|
24055
|
-
return (e,
|
|
24056
|
-
|
|
24057
|
-
K(
|
|
24058
|
-
K(
|
|
24059
|
-
K(
|
|
24060
|
-
|
|
24096
|
+
return (e, c) => K(n) ? (Y(), X("div", yC, [a.value ? (Y(), X(J, { key: 0 }, [
|
|
24097
|
+
c[5] ||= Z("div", { class: "approval-head" }, [Z("span", { class: "approval-icon" }, "❓"), Z("span", { class: "approval-title" }, "AI 需要你确认")], -1),
|
|
24098
|
+
K(n).args?.question ? (Y(), X("div", bC, U(K(n).args.question), 1)) : Q("", !0),
|
|
24099
|
+
K(n).args?.context ? (Y(), X("div", xC, U(K(n).args.context), 1)) : Q("", !0),
|
|
24100
|
+
K(n).args?.recommendation ? (Y(), X("div", SC, U(K(t).icons.recommend) + " 推荐:" + U(K(n).args.recommendation), 1)) : Q("", !0),
|
|
24101
|
+
o.value.length ? (Y(), X("div", CC, [(Y(!0), X(J, null, sa(o.value, (e) => (Y(), X("button", {
|
|
24061
24102
|
key: e,
|
|
24062
24103
|
class: "approval-opt",
|
|
24063
|
-
onClick: (t) => K(
|
|
24064
|
-
}, U(e), 9,
|
|
24065
|
-
Z("div",
|
|
24104
|
+
onClick: (t) => K(r)(e)
|
|
24105
|
+
}, U(e), 9, wC))), 128))])) : Q("", !0),
|
|
24106
|
+
Z("div", TC, [Z("button", {
|
|
24066
24107
|
class: "approval-deny",
|
|
24067
|
-
onClick:
|
|
24068
|
-
}, "拒绝"),
|
|
24108
|
+
onClick: c[0] ||= (e) => K(r)(!1)
|
|
24109
|
+
}, "拒绝"), o.value.length ? Q("", !0) : (Y(), X("button", {
|
|
24069
24110
|
key: 0,
|
|
24070
24111
|
class: "approval-allow",
|
|
24071
|
-
onClick:
|
|
24112
|
+
onClick: c[1] ||= (e) => K(r)(!0)
|
|
24072
24113
|
}, "允许"))])
|
|
24073
24114
|
], 64)) : (Y(), X(J, { key: 1 }, [
|
|
24074
|
-
Z("div",
|
|
24075
|
-
|
|
24076
|
-
Z("span",
|
|
24077
|
-
|
|
24115
|
+
Z("div", EC, [
|
|
24116
|
+
c[7] ||= Z("span", { class: "approval-icon" }, "✋", -1),
|
|
24117
|
+
Z("span", DC, [c[6] ||= _s("需确认工具调用:", -1), Z("code", null, U(K(n).toolName), 1)]),
|
|
24118
|
+
s.value ? (Y(), X("button", {
|
|
24078
24119
|
key: 0,
|
|
24079
24120
|
class: "approval-toggle",
|
|
24080
|
-
onClick:
|
|
24081
|
-
}, U(
|
|
24121
|
+
onClick: c[2] ||= (e) => i.value = !i.value
|
|
24122
|
+
}, U(i.value ? "收起参数" : "查看参数") + U(i.value ? " ▴" : " ▾"), 1)) : Q("", !0)
|
|
24082
24123
|
]),
|
|
24083
|
-
|
|
24084
|
-
Z("div",
|
|
24124
|
+
s.value && i.value ? (Y(), X("pre", OC, U(s.value), 1)) : Q("", !0),
|
|
24125
|
+
Z("div", kC, [Z("button", {
|
|
24085
24126
|
class: "approval-deny",
|
|
24086
|
-
onClick:
|
|
24127
|
+
onClick: c[3] ||= (e) => K(r)(!1)
|
|
24087
24128
|
}, "拒绝"), Z("button", {
|
|
24088
24129
|
class: "approval-allow",
|
|
24089
|
-
onClick:
|
|
24130
|
+
onClick: c[4] ||= (e) => K(r)(!0)
|
|
24090
24131
|
}, "允许")])
|
|
24091
24132
|
], 64))])) : Q("", !0);
|
|
24092
24133
|
}
|
|
24093
|
-
}), [["__scopeId", "data-v-
|
|
24134
|
+
}), [["__scopeId", "data-v-f3a61bb6"]]), jC = {
|
|
24094
24135
|
key: 0,
|
|
24095
24136
|
class: "conflict-bar"
|
|
24096
|
-
},
|
|
24137
|
+
}, MC = { class: "conflict-head" }, NC = { class: "conflict-icon" }, PC = { class: "conflict-title" }, FC = { class: "conflict-detail" }, IC = {
|
|
24097
24138
|
key: 0,
|
|
24098
24139
|
class: "conflict-diff"
|
|
24099
|
-
},
|
|
24140
|
+
}, LC = { class: "conflict-diff-col" }, RC = { class: "conflict-diff-pre" }, zC = { class: "conflict-diff-col" }, BC = { class: "conflict-diff-pre" }, VC = { class: "conflict-actions" }, HC = /*#__PURE__*/ F_(/* @__PURE__ */ Fi({
|
|
24100
24141
|
__name: "ConflictBar",
|
|
24101
24142
|
props: {
|
|
24102
24143
|
pendingConflict: {},
|
|
24103
|
-
onResolve: {
|
|
24144
|
+
onResolve: {},
|
|
24145
|
+
icons: { default: () => ({ ...__ }) }
|
|
24104
24146
|
},
|
|
24105
24147
|
setup(e) {
|
|
24106
24148
|
let t = e, n = /* @__PURE__ */ Cn(!1);
|
|
@@ -24126,19 +24168,19 @@ app.mount('#app');
|
|
|
24126
24168
|
return String(e);
|
|
24127
24169
|
}
|
|
24128
24170
|
});
|
|
24129
|
-
return (t, a) => e.pendingConflict ? (Y(), X("div",
|
|
24130
|
-
Z("div",
|
|
24171
|
+
return (t, a) => e.pendingConflict ? (Y(), X("div", jC, [
|
|
24172
|
+
Z("div", MC, [Z("span", NC, U(e.icons.conflict), 1), Z("span", PC, [
|
|
24131
24173
|
a[4] ||= _s("写入冲突:", -1),
|
|
24132
24174
|
Z("code", null, U(e.pendingConflict.path), 1),
|
|
24133
24175
|
a[5] ||= _s(" 已被外部修改", -1)
|
|
24134
24176
|
])]),
|
|
24135
|
-
Z("div",
|
|
24177
|
+
Z("div", FC, " AI 基于「读取时的旧值」准备" + U(e.pendingConflict.op === "delete" ? "删除" : "写入") + ",但该属性在你读取之后被外部代码/其他 agent/手动改过。 ", 1),
|
|
24136
24178
|
Z("button", {
|
|
24137
24179
|
class: "conflict-toggle",
|
|
24138
24180
|
onClick: a[0] ||= (e) => n.value = !n.value
|
|
24139
24181
|
}, U(n.value ? "收起对比" : "查看值对比") + U(n.value ? " ▴" : " ▾"), 1),
|
|
24140
|
-
n.value ? (Y(), X("div",
|
|
24141
|
-
Z("div",
|
|
24182
|
+
n.value ? (Y(), X("div", IC, [Z("div", LC, [a[6] ||= Z("div", { class: "conflict-diff-label" }, "AI 想写的值", -1), Z("pre", RC, U(r.value || "(delete 操作无值)"), 1)]), Z("div", zC, [a[7] ||= Z("div", { class: "conflict-diff-label" }, "外部改后的当前值", -1), Z("pre", BC, U(i.value), 1)])])) : Q("", !0),
|
|
24183
|
+
Z("div", VC, [
|
|
24142
24184
|
Z("button", {
|
|
24143
24185
|
class: "conflict-keep",
|
|
24144
24186
|
onClick: a[1] ||= (t) => e.onResolve?.("keep_external"),
|
|
@@ -24157,16 +24199,16 @@ app.mount('#app');
|
|
|
24157
24199
|
])
|
|
24158
24200
|
])) : Q("", !0);
|
|
24159
24201
|
}
|
|
24160
|
-
}), [["__scopeId", "data-v-
|
|
24202
|
+
}), [["__scopeId", "data-v-71f89be4"]]), UC = { class: "chat-footer" }, WC = { class: "chat-input-wrap" }, GC = {
|
|
24161
24203
|
key: 0,
|
|
24162
24204
|
class: "focus-chips"
|
|
24163
|
-
},
|
|
24205
|
+
}, KC = ["title", "onClick"], qC = { class: "focus-chip-icon" }, JC = { class: "focus-chip-path" }, YC = ["onClick"], XC = ["placeholder", "rows"], ZC = { class: "input-actions" }, QC = ["disabled", "title"], $C = {
|
|
24164
24206
|
key: 0,
|
|
24165
24207
|
width: "16",
|
|
24166
24208
|
height: "16",
|
|
24167
24209
|
viewBox: "0 0 24 24",
|
|
24168
24210
|
fill: "currentColor"
|
|
24169
|
-
},
|
|
24211
|
+
}, ew = {
|
|
24170
24212
|
key: 1,
|
|
24171
24213
|
width: "18",
|
|
24172
24214
|
height: "18",
|
|
@@ -24174,246 +24216,246 @@ app.mount('#app');
|
|
|
24174
24216
|
fill: "none",
|
|
24175
24217
|
stroke: "currentColor",
|
|
24176
24218
|
"stroke-width": "2"
|
|
24177
|
-
},
|
|
24219
|
+
}, tw = /*#__PURE__*/ F_(/* @__PURE__ */ Fi({
|
|
24178
24220
|
__name: "ChatInput",
|
|
24179
24221
|
props: {
|
|
24180
24222
|
placeholder: {},
|
|
24181
24223
|
inputRows: {}
|
|
24182
24224
|
},
|
|
24183
24225
|
setup(e) {
|
|
24184
|
-
let t =
|
|
24185
|
-
return (t,
|
|
24226
|
+
let t = x_(), { inputText: n, send: r, keydown: i, canUndo: a, undo: o, focuses: s, removeFocus: c, focusChipClick: l, icons: u } = t, { state: d, stop: f } = t.chat;
|
|
24227
|
+
return (t, p) => (Y(), X("div", UC, [K(a) ? (Y(), X("button", {
|
|
24186
24228
|
key: 0,
|
|
24187
24229
|
class: "undo-foot-btn",
|
|
24188
24230
|
title: "回退到上次正常状态(还原对话历史 + 页面属性 + 工作区)",
|
|
24189
|
-
onClick:
|
|
24190
|
-
}, "↩ 回退")) : Q("", !0), Z("div",
|
|
24191
|
-
K(s).length ? (Y(), X("div",
|
|
24231
|
+
onClick: p[0] ||= (...e) => K(o) && K(o)(...e)
|
|
24232
|
+
}, "↩ 回退")) : Q("", !0), Z("div", WC, [
|
|
24233
|
+
K(s).length ? (Y(), X("div", GC, [(Y(!0), X(J, null, sa(K(s), (e) => (Y(), X("span", {
|
|
24192
24234
|
key: e.path,
|
|
24193
24235
|
class: "focus-chip",
|
|
24194
24236
|
title: `精修中:${e.path}(点击回看 · ✕ 移除)`,
|
|
24195
24237
|
onClick: (t) => K(l)(e)
|
|
24196
24238
|
}, [
|
|
24197
|
-
|
|
24198
|
-
Z("code",
|
|
24239
|
+
Z("span", qC, U(K(u).focus), 1),
|
|
24240
|
+
Z("code", JC, U(e.path), 1),
|
|
24199
24241
|
Z("button", {
|
|
24200
24242
|
type: "button",
|
|
24201
24243
|
class: "focus-chip-x",
|
|
24202
24244
|
"data-test": "focus-clear",
|
|
24203
24245
|
title: "移除此焦点",
|
|
24204
24246
|
onClick: yl((t) => K(c)(e.path), ["stop"])
|
|
24205
|
-
}, "✕", 8,
|
|
24206
|
-
], 8,
|
|
24247
|
+
}, "✕", 8, YC)
|
|
24248
|
+
], 8, KC))), 128))])) : Q("", !0),
|
|
24207
24249
|
Xr(Z("textarea", {
|
|
24208
|
-
"onUpdate:modelValue":
|
|
24250
|
+
"onUpdate:modelValue": p[1] ||= (e) => /* @__PURE__ */ Sn(n) ? n.value = e : null,
|
|
24209
24251
|
class: H(["chat-input", { "has-focus-chip": K(s).length > 0 }]),
|
|
24210
24252
|
placeholder: e.placeholder,
|
|
24211
24253
|
rows: e.inputRows,
|
|
24212
|
-
onKeydown:
|
|
24213
|
-
}, null, 42,
|
|
24214
|
-
Z("div",
|
|
24215
|
-
class: H(["send-btn", { "stop-btn": K(
|
|
24216
|
-
disabled: !K(
|
|
24217
|
-
title: K(
|
|
24218
|
-
onClick:
|
|
24219
|
-
}, [K(
|
|
24254
|
+
onKeydown: p[2] ||= (...e) => K(i) && K(i)(...e)
|
|
24255
|
+
}, null, 42, XC), [[gl, K(n)]]),
|
|
24256
|
+
Z("div", ZC, [p[6] ||= Z("span", { class: "send-hint" }, "Enter 发送 · Shift+Enter 换行", -1), Z("button", {
|
|
24257
|
+
class: H(["send-btn", { "stop-btn": K(d).loading }]),
|
|
24258
|
+
disabled: !K(d).loading && !K(n).trim(),
|
|
24259
|
+
title: K(d).loading ? "停止生成" : "发送",
|
|
24260
|
+
onClick: p[3] ||= (e) => K(d).loading ? K(f)() : K(r)()
|
|
24261
|
+
}, [K(d).loading ? (Y(), X("svg", $C, [...p[4] ||= [Z("rect", {
|
|
24220
24262
|
x: "6",
|
|
24221
24263
|
y: "6",
|
|
24222
24264
|
width: "12",
|
|
24223
24265
|
height: "12",
|
|
24224
24266
|
rx: "2"
|
|
24225
|
-
}, null, -1)]])) : (Y(), X("svg",
|
|
24267
|
+
}, null, -1)]])) : (Y(), X("svg", ew, [...p[5] ||= [Z("line", {
|
|
24226
24268
|
x1: "22",
|
|
24227
24269
|
y1: "2",
|
|
24228
24270
|
x2: "11",
|
|
24229
24271
|
y2: "13"
|
|
24230
|
-
}, null, -1), Z("polygon", { points: "22 2 15 22 11 13 2 9 22 2" }, null, -1)]]))], 10,
|
|
24272
|
+
}, null, -1), Z("polygon", { points: "22 2 15 22 11 13 2 9 22 2" }, null, -1)]]))], 10, QC)])
|
|
24231
24273
|
])]));
|
|
24232
24274
|
}
|
|
24233
|
-
}), [["__scopeId", "data-v-
|
|
24275
|
+
}), [["__scopeId", "data-v-2f56980e"]]), nw = {
|
|
24234
24276
|
key: 0,
|
|
24235
24277
|
class: "debug-drawer"
|
|
24236
|
-
},
|
|
24278
|
+
}, rw = { class: "drawer-header" }, iw = { class: "tab-group" }, aw = { class: "header-actions" }, ow = {
|
|
24237
24279
|
key: 0,
|
|
24238
24280
|
class: "drawer-filters"
|
|
24239
|
-
},
|
|
24281
|
+
}, sw = ["onClick"], cw = { class: "chip-count" }, lw = { class: "chip-count" }, uw = { class: "drawer-body" }, dw = {
|
|
24240
24282
|
key: 0,
|
|
24241
24283
|
class: "trace-panel"
|
|
24242
|
-
},
|
|
24284
|
+
}, fw = {
|
|
24243
24285
|
key: 0,
|
|
24244
24286
|
class: "trace-empty"
|
|
24245
|
-
},
|
|
24287
|
+
}, pw = { class: "trace-metrics" }, mw = { class: "metric-card" }, hw = { class: "metric-card" }, gw = { class: "metric-card" }, _w = { class: "metric-card" }, vw = {
|
|
24246
24288
|
key: 0,
|
|
24247
24289
|
class: "metric-card"
|
|
24248
|
-
},
|
|
24290
|
+
}, yw = {
|
|
24249
24291
|
key: 1,
|
|
24250
24292
|
class: "metric-card"
|
|
24251
|
-
},
|
|
24293
|
+
}, bw = { class: "trace-spans" }, xw = { class: "span-ico" }, Sw = { class: "span-name" }, Cw = {
|
|
24252
24294
|
key: 0,
|
|
24253
24295
|
class: "span-dur"
|
|
24254
|
-
},
|
|
24296
|
+
}, ww = {
|
|
24255
24297
|
key: 1,
|
|
24256
24298
|
class: "span-status"
|
|
24257
|
-
},
|
|
24299
|
+
}, Tw = {
|
|
24258
24300
|
key: 1,
|
|
24259
24301
|
class: "context-panel"
|
|
24260
|
-
},
|
|
24302
|
+
}, Ew = {
|
|
24261
24303
|
key: 0,
|
|
24262
24304
|
class: "trace-empty"
|
|
24263
|
-
},
|
|
24305
|
+
}, Dw = { class: "ctx-overview" }, Ow = { class: "ctx-occupancy" }, kw = ["title"], Aw = { class: "ctx-pct" }, jw = { class: "ctx-kv-row" }, Mw = { class: "ctx-kv" }, Nw = {
|
|
24264
24306
|
key: 0,
|
|
24265
24307
|
class: "ctx-kv"
|
|
24266
|
-
},
|
|
24308
|
+
}, Pw = {
|
|
24267
24309
|
key: 1,
|
|
24268
24310
|
class: "ctx-kv"
|
|
24269
|
-
},
|
|
24311
|
+
}, Fw = ["title"], Iw = { class: "ctx-cat-bar" }, Lw = { class: "ctx-cat-tokens" }, Rw = {
|
|
24270
24312
|
key: 0,
|
|
24271
24313
|
class: "ctx-compression"
|
|
24272
|
-
},
|
|
24314
|
+
}, zw = { class: "ctx-kv-row" }, Bw = { class: "ctx-kv" }, Vw = { class: "ctx-kv" }, Hw = { class: "ctx-kv" }, Uw = {
|
|
24273
24315
|
key: 0,
|
|
24274
24316
|
class: "ctx-kv"
|
|
24275
|
-
},
|
|
24317
|
+
}, Ww = {
|
|
24276
24318
|
key: 2,
|
|
24277
24319
|
class: "subagent-panel"
|
|
24278
|
-
},
|
|
24320
|
+
}, Gw = {
|
|
24279
24321
|
key: 0,
|
|
24280
24322
|
class: "sub-section"
|
|
24281
|
-
},
|
|
24323
|
+
}, Kw = { class: "sub-section-title" }, qw = {
|
|
24282
24324
|
key: 1,
|
|
24283
24325
|
class: "trace-empty"
|
|
24284
|
-
},
|
|
24326
|
+
}, Jw = {
|
|
24285
24327
|
key: 0,
|
|
24286
24328
|
class: "sub-section"
|
|
24287
|
-
},
|
|
24329
|
+
}, Yw = { class: "sub-section-title" }, Xw = { class: "sub-head" }, Zw = { class: "sub-label" }, Qw = { class: "sub-steps-badge" }, $w = { class: "sub-task" }, eT = {
|
|
24288
24330
|
key: 1,
|
|
24289
24331
|
class: "sub-section"
|
|
24290
|
-
},
|
|
24332
|
+
}, tT = { class: "sub-section-title" }, nT = { class: "sub-head" }, rT = { class: "sub-label" }, iT = {
|
|
24291
24333
|
key: 0,
|
|
24292
24334
|
class: "sub-dur"
|
|
24293
|
-
},
|
|
24335
|
+
}, aT = ["onClick"], oT = { class: "sub-task" }, sT = {
|
|
24294
24336
|
key: 0,
|
|
24295
24337
|
class: "sub-result"
|
|
24296
|
-
},
|
|
24338
|
+
}, cT = {
|
|
24297
24339
|
key: 1,
|
|
24298
24340
|
class: "sub-steps-list"
|
|
24299
|
-
},
|
|
24341
|
+
}, lT = { class: "sub-step-kind" }, uT = { class: "sub-step-name" }, dT = { class: "sub-step-ts" }, fT = {
|
|
24300
24342
|
key: 0,
|
|
24301
24343
|
class: "empty"
|
|
24302
|
-
},
|
|
24344
|
+
}, pT = { class: "log-head" }, mT = {
|
|
24303
24345
|
key: 0,
|
|
24304
24346
|
class: "log-source"
|
|
24305
|
-
},
|
|
24347
|
+
}, hT = { class: "log-time" }, gT = { class: "log-body" }, _T = { class: "kv-grid" }, vT = { class: "kv" }, yT = { class: "v" }, bT = { class: "kv" }, xT = { class: "v" }, ST = { class: "kv" }, CT = { class: "v" }, wT = { class: "kv" }, TT = { class: "v" }, ET = { class: "section-label" }, DT = { class: "chip-row" }, OT = { class: "msg-list" }, kT = { class: "msg-text" }, AT = { class: "badge-row" }, jT = { class: "badge" }, MT = {
|
|
24306
24348
|
key: 0,
|
|
24307
24349
|
class: "badge muted"
|
|
24308
|
-
},
|
|
24350
|
+
}, NT = { class: "badge muted" }, PT = {
|
|
24309
24351
|
key: 1,
|
|
24310
24352
|
class: "badge muted"
|
|
24311
|
-
},
|
|
24353
|
+
}, FT = ["onClick"], IT = {
|
|
24312
24354
|
key: 0,
|
|
24313
24355
|
class: "msg-list"
|
|
24314
|
-
},
|
|
24356
|
+
}, LT = { class: "msg-detail" }, RT = {
|
|
24315
24357
|
key: 0,
|
|
24316
24358
|
class: "msg-text"
|
|
24317
|
-
},
|
|
24359
|
+
}, zT = { class: "tc-inline-name" }, BT = { class: "tc-inline-args" }, VT = {
|
|
24318
24360
|
key: 1,
|
|
24319
24361
|
class: "tc-id"
|
|
24320
|
-
},
|
|
24362
|
+
}, HT = {
|
|
24321
24363
|
key: 1,
|
|
24322
24364
|
class: "log-raw"
|
|
24323
|
-
},
|
|
24365
|
+
}, UT = { class: "badge-row" }, WT = { class: "badge" }, GT = {
|
|
24324
24366
|
key: 0,
|
|
24325
24367
|
class: "badge warn"
|
|
24326
|
-
},
|
|
24368
|
+
}, KT = {
|
|
24327
24369
|
key: 0,
|
|
24328
24370
|
class: "resp-content"
|
|
24329
|
-
},
|
|
24371
|
+
}, qT = {
|
|
24330
24372
|
key: 1,
|
|
24331
24373
|
class: "tc-list"
|
|
24332
|
-
},
|
|
24374
|
+
}, JT = { class: "tc-name" }, YT = { class: "tc-args" }, XT = {
|
|
24333
24375
|
key: 2,
|
|
24334
24376
|
class: "usage-row"
|
|
24335
|
-
},
|
|
24377
|
+
}, ZT = { class: "usage" }, QT = { class: "usage" }, $T = { class: "usage" }, eE = {
|
|
24336
24378
|
key: 3,
|
|
24337
24379
|
class: "tc-card inline"
|
|
24338
|
-
},
|
|
24380
|
+
}, tE = { class: "tc-name" }, nE = { class: "tc-args" }, rE = {
|
|
24339
24381
|
key: 4,
|
|
24340
24382
|
class: "tc-card inline"
|
|
24341
|
-
},
|
|
24383
|
+
}, iE = { class: "tc-name" }, aE = { class: "tc-args" }, oE = {
|
|
24342
24384
|
key: 5,
|
|
24343
24385
|
class: "err-box"
|
|
24344
|
-
},
|
|
24386
|
+
}, sE = { class: "log-footer" }, cE = ["onClick"], lE = ["onClick"], uE = {
|
|
24345
24387
|
key: 0,
|
|
24346
24388
|
class: "log-raw"
|
|
24347
|
-
},
|
|
24389
|
+
}, dE = {
|
|
24348
24390
|
key: 0,
|
|
24349
24391
|
class: "empty"
|
|
24350
|
-
},
|
|
24392
|
+
}, fE = {
|
|
24351
24393
|
key: 1,
|
|
24352
24394
|
class: "flow-section"
|
|
24353
|
-
},
|
|
24395
|
+
}, pE = { class: "flow-ico" }, mE = { class: "flow-label" }, hE = { class: "flow-detail" }, gE = { class: "flow-time" }, _E = { class: "flow-round-head" }, vE = { class: "flow-round-body" }, yE = { class: "flow-ico" }, bE = { class: "flow-label" }, xE = { class: "flow-detail" }, SE = { class: "flow-time" }, CE = {
|
|
24354
24396
|
key: 5,
|
|
24355
24397
|
class: "info-body"
|
|
24356
|
-
},
|
|
24398
|
+
}, wE = {
|
|
24357
24399
|
key: 0,
|
|
24358
24400
|
class: "empty"
|
|
24359
|
-
},
|
|
24401
|
+
}, TE = { class: "info-section" }, EE = { class: "kv-grid" }, DE = { class: "kv" }, OE = { class: "v" }, kE = { class: "kv" }, AE = { class: "v" }, jE = { class: "kv" }, ME = { class: "v" }, NE = { class: "kv" }, PE = { class: "v" }, FE = {
|
|
24360
24402
|
class: "kv",
|
|
24361
24403
|
style: { "margin-top": "6px" }
|
|
24362
|
-
},
|
|
24404
|
+
}, IE = {
|
|
24363
24405
|
class: "v",
|
|
24364
24406
|
style: { "font-size": "11px" }
|
|
24365
|
-
},
|
|
24407
|
+
}, LE = { class: "info-section" }, RE = { class: "info-title" }, zE = { class: "info-name" }, BE = { class: "info-desc" }, VE = {
|
|
24366
24408
|
key: 0,
|
|
24367
24409
|
class: "info-section"
|
|
24368
|
-
},
|
|
24410
|
+
}, HE = { class: "info-title" }, UE = ["onClick"], WE = { class: "info-desc" }, GE = {
|
|
24369
24411
|
key: 0,
|
|
24370
24412
|
class: "skill-content"
|
|
24371
|
-
},
|
|
24413
|
+
}, KE = {
|
|
24372
24414
|
key: 0,
|
|
24373
24415
|
class: "skill-loading"
|
|
24374
|
-
},
|
|
24416
|
+
}, qE = {
|
|
24375
24417
|
key: 1,
|
|
24376
24418
|
class: "skill-error"
|
|
24377
|
-
},
|
|
24419
|
+
}, JE = {
|
|
24378
24420
|
key: 2,
|
|
24379
24421
|
class: "skill-pre"
|
|
24380
|
-
},
|
|
24422
|
+
}, YE = {
|
|
24381
24423
|
key: 1,
|
|
24382
24424
|
class: "info-section"
|
|
24383
|
-
},
|
|
24425
|
+
}, XE = { class: "info-item" }, ZE = { class: "info-name" }, QE = { class: "info-desc" }, $E = { class: "info-section" }, eD = { class: "kv-grid" }, tD = { class: "kv" }, nD = { class: "v" }, rD = { class: "kv" }, iD = { class: "v" }, aD = { class: "kv" }, oD = { class: "v" }, sD = { class: "kv" }, cD = {
|
|
24384
24426
|
class: "v",
|
|
24385
24427
|
style: { "font-size": "11px" }
|
|
24386
|
-
},
|
|
24428
|
+
}, lD = {
|
|
24387
24429
|
key: 2,
|
|
24388
24430
|
class: "info-section"
|
|
24389
|
-
},
|
|
24431
|
+
}, uD = { class: "info-title" }, dD = { class: "info-name" }, fD = { class: "src-tag mcp" }, pD = { class: "info-desc" }, mD = {
|
|
24390
24432
|
key: 3,
|
|
24391
24433
|
class: "info-section"
|
|
24392
|
-
},
|
|
24434
|
+
}, hD = { class: "kv-grid" }, gD = { class: "kv" }, _D = { class: "v" }, vD = { class: "kv" }, yD = { class: "v" }, bD = { class: "kv" }, xD = { class: "v" }, SD = {
|
|
24393
24435
|
key: 0,
|
|
24394
24436
|
class: "kv"
|
|
24395
|
-
},
|
|
24437
|
+
}, CD = {
|
|
24396
24438
|
class: "v",
|
|
24397
24439
|
style: { "font-size": "11px" }
|
|
24398
|
-
},
|
|
24440
|
+
}, wD = {
|
|
24399
24441
|
key: 4,
|
|
24400
24442
|
class: "info-section"
|
|
24401
|
-
},
|
|
24443
|
+
}, TD = { class: "info-title" }, ED = {
|
|
24402
24444
|
key: 5,
|
|
24403
24445
|
class: "info-section"
|
|
24404
|
-
},
|
|
24446
|
+
}, DD = { class: "info-pre" }, OD = {
|
|
24405
24447
|
key: 6,
|
|
24406
24448
|
class: "info-section"
|
|
24407
|
-
},
|
|
24449
|
+
}, kD = { class: "info-kv" }, AD = { class: "kv" }, jD = { class: "v" }, MD = { class: "kv" }, ND = { class: "v" }, PD = { class: "kv" }, FD = { class: "v" }, ID = { class: "kv" }, LD = { class: "v" }, RD = { class: "kv" }, zD = {
|
|
24408
24450
|
class: "v",
|
|
24409
24451
|
style: { "font-size": "11px" }
|
|
24410
|
-
},
|
|
24452
|
+
}, BD = {
|
|
24411
24453
|
key: 0,
|
|
24412
24454
|
class: "kv"
|
|
24413
|
-
},
|
|
24455
|
+
}, VD = {
|
|
24414
24456
|
class: "v",
|
|
24415
24457
|
style: { "font-size": "11px" }
|
|
24416
|
-
},
|
|
24458
|
+
}, HD = /*#__PURE__*/ F_(/* @__PURE__ */ Fi({
|
|
24417
24459
|
__name: "DebugDrawer",
|
|
24418
24460
|
props: {
|
|
24419
24461
|
logs: { default: () => [] },
|
|
@@ -24665,8 +24707,8 @@ app.mount('#app');
|
|
|
24665
24707
|
}
|
|
24666
24708
|
}
|
|
24667
24709
|
return (t, n) => (Y(), as(_i, { to: "body" }, [fs(gc, { name: "drawer" }, {
|
|
24668
|
-
default: Jr(() => [e.visible ? (Y(), X("div",
|
|
24669
|
-
Z("div",
|
|
24710
|
+
default: Jr(() => [e.visible ? (Y(), X("div", nw, [Z("div", { class: H(["drawer-panel", { "cs-theme-dark": e.csTheme === "dark" }]) }, [
|
|
24711
|
+
Z("div", rw, [Z("div", iw, [
|
|
24670
24712
|
Z("button", {
|
|
24671
24713
|
class: H(["tab-btn", { active: y.value === "logs" }]),
|
|
24672
24714
|
onClick: n[0] ||= (e) => w("logs")
|
|
@@ -24695,7 +24737,7 @@ app.mount('#app');
|
|
|
24695
24737
|
class: H(["tab-btn", { active: y.value === "info" }]),
|
|
24696
24738
|
onClick: n[5] ||= (e) => w("info")
|
|
24697
24739
|
}, "🧬 Agent 信息", 2)) : Q("", !0)
|
|
24698
|
-
]), Z("div",
|
|
24740
|
+
]), Z("div", aw, [y.value === "logs" ? (Y(), X("button", {
|
|
24699
24741
|
key: 0,
|
|
24700
24742
|
class: "hd-btn",
|
|
24701
24743
|
title: "清空日志",
|
|
@@ -24705,38 +24747,38 @@ app.mount('#app');
|
|
|
24705
24747
|
title: "关闭",
|
|
24706
24748
|
onClick: _
|
|
24707
24749
|
}, "✕")])]),
|
|
24708
|
-
y.value === "logs" ? (Y(), X("div",
|
|
24750
|
+
y.value === "logs" ? (Y(), X("div", ow, [(Y(), X(J, null, sa(s, (e, t) => Z("button", {
|
|
24709
24751
|
key: t,
|
|
24710
24752
|
class: H(["filter-chip", { active: i.value === t }]),
|
|
24711
24753
|
style: Oe({ "--chip-color": e.color }),
|
|
24712
24754
|
onClick: (e) => i.value = t
|
|
24713
|
-
}, [_s(U(e.icon) + " " + U(e.label) + " ", 1), Z("span",
|
|
24755
|
+
}, [_s(U(e.icon) + " " + U(e.label) + " ", 1), Z("span", cw, U(u.value[t] || 0), 1)], 14, sw)), 64)), Z("button", {
|
|
24714
24756
|
class: H(["filter-chip all", { active: i.value === "all" }]),
|
|
24715
24757
|
onClick: n[6] ||= (e) => i.value = "all"
|
|
24716
|
-
}, [n[7] ||= _s(" 全部 ", -1), Z("span",
|
|
24717
|
-
Z("div",
|
|
24718
|
-
y.value === "trace" ? (Y(), X("div",
|
|
24719
|
-
Z("div",
|
|
24720
|
-
Z("div",
|
|
24721
|
-
Z("div",
|
|
24722
|
-
Z("div",
|
|
24723
|
-
j.value.compressions ? (Y(), X("div",
|
|
24724
|
-
j.value.totalTokens ? (Y(), X("div",
|
|
24725
|
-
]), Z("div",
|
|
24758
|
+
}, [n[7] ||= _s(" 全部 ", -1), Z("span", lw, U(u.value.all || 0), 1)], 2)])) : Q("", !0),
|
|
24759
|
+
Z("div", uw, [
|
|
24760
|
+
y.value === "trace" ? (Y(), X("div", dw, [j.value ? (Y(), X(J, { key: 1 }, [Z("div", pw, [
|
|
24761
|
+
Z("div", mw, [n[9] ||= Z("span", null, "轮次", -1), Z("b", null, U(j.value.rounds), 1)]),
|
|
24762
|
+
Z("div", hw, [n[10] ||= Z("span", null, "总耗时", -1), Z("b", null, U(j.value.totalDurationMs) + "ms", 1)]),
|
|
24763
|
+
Z("div", gw, [n[11] ||= Z("span", null, "平均/轮", -1), Z("b", null, U(j.value.avgRoundMs) + "ms", 1)]),
|
|
24764
|
+
Z("div", _w, [n[12] ||= Z("span", null, "工具", -1), Z("b", null, U(j.value.toolCalls) + "(✅" + U(Math.round(j.value.toolSuccessRate * 100)) + "%)", 1)]),
|
|
24765
|
+
j.value.compressions ? (Y(), X("div", vw, [n[13] ||= Z("span", null, "压缩", -1), Z("b", null, U(j.value.compressions), 1)])) : Q("", !0),
|
|
24766
|
+
j.value.totalTokens ? (Y(), X("div", yw, [n[14] ||= Z("span", null, "Token", -1), Z("b", null, U(j.value.totalTokens.total), 1)])) : Q("", !0)
|
|
24767
|
+
]), Z("div", bw, [(Y(!0), X(J, null, sa(ee.value, (e) => (Y(), X("div", {
|
|
24726
24768
|
key: e.id,
|
|
24727
24769
|
class: H(["trace-span", [e.type, e.status]])
|
|
24728
24770
|
}, [
|
|
24729
|
-
Z("span",
|
|
24730
|
-
Z("span",
|
|
24731
|
-
e.durationMs ? (Y(), X("span",
|
|
24732
|
-
e.status === "error" ? (Y(), X("span",
|
|
24733
|
-
], 2))), 128))])], 64)) : (Y(), X("div",
|
|
24771
|
+
Z("span", xw, U(re(e.type)), 1),
|
|
24772
|
+
Z("span", Sw, U(e.name), 1),
|
|
24773
|
+
e.durationMs ? (Y(), X("span", Cw, U(A(e.durationMs)), 1)) : Q("", !0),
|
|
24774
|
+
e.status === "error" ? (Y(), X("span", ww, "❌")) : Q("", !0)
|
|
24775
|
+
], 2))), 128))])], 64)) : (Y(), X("div", fw, [...n[8] ||= [
|
|
24734
24776
|
_s("未开启 tracing(", -1),
|
|
24735
24777
|
Z("code", null, "capabilities.tracing:true", -1),
|
|
24736
24778
|
_s(")或暂无 trace。跑一轮 agent 后刷新。", -1)
|
|
24737
24779
|
]]))])) : Q("", !0),
|
|
24738
|
-
y.value === "context" ? (Y(), X("div",
|
|
24739
|
-
Z("div",
|
|
24780
|
+
y.value === "context" ? (Y(), X("div", Tw, [M.value ? (Y(), X(J, { key: 1 }, [
|
|
24781
|
+
Z("div", Dw, [Z("div", Ow, [Z("div", {
|
|
24740
24782
|
class: "ctx-bar-track",
|
|
24741
24783
|
title: `占用 ${Math.round(M.value.occupancy * 100)}%`
|
|
24742
24784
|
}, [Z("div", {
|
|
@@ -24747,10 +24789,10 @@ app.mount('#app');
|
|
|
24747
24789
|
class: "ctx-threshold-mark",
|
|
24748
24790
|
style: Oe({ left: Math.min(M.value.thresholdRatio * 100, 100) + "%" }),
|
|
24749
24791
|
title: "压缩阈值"
|
|
24750
|
-
}, null, 4)) : Q("", !0)], 8,
|
|
24751
|
-
Z("span",
|
|
24752
|
-
M.value.contextWindow ? (Y(), X("span",
|
|
24753
|
-
M.value.thresholdRatio > 0 ? (Y(), X("span",
|
|
24792
|
+
}, null, 4)) : Q("", !0)], 8, kw), Z("span", Aw, U(Math.round(M.value.occupancy * 100)) + "%", 1)]), Z("div", jw, [
|
|
24793
|
+
Z("span", Mw, "估算 " + U(M.value.totalTokens) + " token", 1),
|
|
24794
|
+
M.value.contextWindow ? (Y(), X("span", Nw, "窗口 " + U(M.value.contextWindow), 1)) : Q("", !0),
|
|
24795
|
+
M.value.thresholdRatio > 0 ? (Y(), X("span", Pw, "阈值 " + U(Math.round(M.value.thresholdRatio * 100)) + "%", 1)) : Q("", !0)
|
|
24754
24796
|
])]),
|
|
24755
24797
|
n[16] ||= Z("div", { class: "ctx-section-title" }, "分类构成(近似)", -1),
|
|
24756
24798
|
(Y(!0), X(J, null, sa(M.value.categories, (e) => (Y(), X("div", {
|
|
@@ -24760,228 +24802,228 @@ app.mount('#app');
|
|
|
24760
24802
|
Z("span", {
|
|
24761
24803
|
class: "ctx-cat-label",
|
|
24762
24804
|
title: e.label
|
|
24763
|
-
}, U(e.label), 9,
|
|
24764
|
-
Z("div",
|
|
24805
|
+
}, U(e.label), 9, Fw),
|
|
24806
|
+
Z("div", Iw, [Z("div", {
|
|
24765
24807
|
class: "ctx-cat-fill",
|
|
24766
24808
|
style: Oe({ width: Math.max(Math.round(e.pct * 100), 2) + "%" })
|
|
24767
24809
|
}, null, 4)]),
|
|
24768
|
-
Z("span",
|
|
24810
|
+
Z("span", Lw, [_s(U(e.tokens) + " ", 1), Z("i", null, "(" + U(Math.round(e.pct * 100)) + "%)", 1)])
|
|
24769
24811
|
]))), 128)),
|
|
24770
|
-
M.value.compression ? (Y(), X("div",
|
|
24771
|
-
Z("span",
|
|
24772
|
-
Z("span",
|
|
24773
|
-
Z("span",
|
|
24774
|
-
M.value.compression.decision ? (Y(), X("span",
|
|
24812
|
+
M.value.compression ? (Y(), X("div", Rw, [n[15] ||= Z("div", { class: "ctx-section-title" }, "最近压缩", -1), Z("div", zw, [
|
|
24813
|
+
Z("span", Bw, "摘要 " + U(M.value.compression.roundsSummarized) + "/" + U(M.value.compression.roundsTotal) + " 轮", 1),
|
|
24814
|
+
Z("span", Vw, "召回 " + U(M.value.compression.roundsRecalled), 1),
|
|
24815
|
+
Z("span", Hw, U(M.value.compression.strategy), 1),
|
|
24816
|
+
M.value.compression.decision ? (Y(), X("span", Uw, "🤖 agent 决策:" + U(R(M.value.compression.decision)), 1)) : Q("", !0)
|
|
24775
24817
|
])])) : Q("", !0)
|
|
24776
|
-
], 64)) : (Y(), X("div",
|
|
24777
|
-
y.value === "subagent" ? (Y(), X("div",
|
|
24818
|
+
], 64)) : (Y(), X("div", Ew, "未开启 contextInspector(默认开)或暂无快照。跑一轮 agent 后切回刷新。"))])) : Q("", !0),
|
|
24819
|
+
y.value === "subagent" ? (Y(), X("div", Ww, [F.value.length ? (Y(), X("div", Gw, [Z("div", Kw, "🔒 组件锁 (" + U(F.value.length) + ")", 1), (Y(!0), X(J, null, sa(F.value, ([e, t]) => (Y(), X("div", {
|
|
24778
24820
|
key: "lock-" + e,
|
|
24779
24821
|
class: "sub-task"
|
|
24780
|
-
}, "🔒 " + U(e) + " ← " + U(t), 1))), 128))])) : Q("", !0), !te.value.length && !P.value.length ? (Y(), X("div",
|
|
24822
|
+
}, "🔒 " + U(e) + " ← " + U(t), 1))), 128))])) : Q("", !0), !te.value.length && !P.value.length ? (Y(), X("div", qw, [...n[17] ||= [
|
|
24781
24823
|
_s(" 尚未委派子 agent。主 agent 调用 ", -1),
|
|
24782
24824
|
Z("code", null, "use_<id>", -1),
|
|
24783
24825
|
_s(" 或 ", -1),
|
|
24784
24826
|
Z("code", null, "spawn_agent", -1),
|
|
24785
24827
|
_s(" 后,这里展示运行状态与委派历史。 ", -1)
|
|
24786
|
-
]])) : (Y(), X(J, { key: 2 }, [te.value.length ? (Y(), X("div",
|
|
24828
|
+
]])) : (Y(), X(J, { key: 2 }, [te.value.length ? (Y(), X("div", Jw, [Z("div", Yw, "▶ 运行中 (" + U(te.value.length) + ")", 1), (Y(!0), X(J, null, sa(te.value, (e, t) => (Y(), X("div", {
|
|
24787
24829
|
key: "a" + t,
|
|
24788
24830
|
class: H(["sub-card", e.status])
|
|
24789
|
-
}, [Z("div",
|
|
24831
|
+
}, [Z("div", Xw, [
|
|
24790
24832
|
Z("span", {
|
|
24791
24833
|
class: "sub-status",
|
|
24792
24834
|
style: Oe({ background: ne[e.status] && ne[e.status].color || "#9ca3af" })
|
|
24793
24835
|
}, U(ne[e.status] && ne[e.status].label || e.status), 5),
|
|
24794
|
-
Z("span",
|
|
24795
|
-
Z("span",
|
|
24796
|
-
]), Z("div",
|
|
24836
|
+
Z("span", Zw, U(e.label), 1),
|
|
24837
|
+
Z("span", Qw, U(e.steps.length) + " 步", 1)
|
|
24838
|
+
]), Z("div", $w, U(k(e.task, 80)), 1)], 2))), 128))])) : Q("", !0), P.value.length ? (Y(), X("div", eT, [Z("div", tT, "🕐 历史 (" + U(P.value.length) + ")", 1), (Y(!0), X(J, null, sa(P.value, (e, t) => (Y(), X("div", {
|
|
24797
24839
|
key: "h" + t,
|
|
24798
24840
|
class: H(["sub-card", e.status])
|
|
24799
24841
|
}, [
|
|
24800
|
-
Z("div",
|
|
24842
|
+
Z("div", nT, [
|
|
24801
24843
|
Z("span", {
|
|
24802
24844
|
class: "sub-status",
|
|
24803
24845
|
style: Oe({ background: ne[e.status] && ne[e.status].color || "#9ca3af" })
|
|
24804
24846
|
}, U(ne[e.status] && ne[e.status].label || e.status), 5),
|
|
24805
|
-
Z("span",
|
|
24806
|
-
e.durationMs == null ? Q("", !0) : (Y(), X("span",
|
|
24847
|
+
Z("span", rT, U(e.label), 1),
|
|
24848
|
+
e.durationMs == null ? Q("", !0) : (Y(), X("span", iT, U(A(e.durationMs)), 1)),
|
|
24807
24849
|
e.steps.length ? (Y(), X("button", {
|
|
24808
24850
|
key: 1,
|
|
24809
24851
|
class: "sub-toggle",
|
|
24810
24852
|
onClick: (e) => L(t)
|
|
24811
|
-
}, U(I.value.has(t) ? "收起" : "步骤"), 9,
|
|
24853
|
+
}, U(I.value.has(t) ? "收起" : "步骤"), 9, aT)) : Q("", !0)
|
|
24812
24854
|
]),
|
|
24813
|
-
Z("div",
|
|
24814
|
-
e.resultPreview ? (Y(), X("div",
|
|
24815
|
-
I.value.has(t) && e.steps.length ? (Y(), X("div",
|
|
24855
|
+
Z("div", oT, U(k(e.task, 80)), 1),
|
|
24856
|
+
e.resultPreview ? (Y(), X("div", sT, U(e.resultPreview), 1)) : Q("", !0),
|
|
24857
|
+
I.value.has(t) && e.steps.length ? (Y(), X("div", cT, [(Y(!0), X(J, null, sa(e.steps, (e, t) => (Y(), X("div", {
|
|
24816
24858
|
key: t,
|
|
24817
24859
|
class: "sub-step"
|
|
24818
24860
|
}, [
|
|
24819
|
-
Z("span",
|
|
24820
|
-
Z("span",
|
|
24821
|
-
Z("span",
|
|
24861
|
+
Z("span", lT, U(e.kind === "tool_call" ? "🔧" : "✅"), 1),
|
|
24862
|
+
Z("span", uT, U(e.name), 1),
|
|
24863
|
+
Z("span", dT, U(d(e.ts)), 1)
|
|
24822
24864
|
]))), 128))])) : Q("", !0)
|
|
24823
24865
|
], 2))), 128))])) : Q("", !0)], 64))])) : Q("", !0),
|
|
24824
|
-
y.value === "logs" ? (Y(), X(J, { key: 3 }, [l.value.length === 0 ? (Y(), X("div",
|
|
24866
|
+
y.value === "logs" ? (Y(), X(J, { key: 3 }, [l.value.length === 0 ? (Y(), X("div", fT, " 暂无日志,发送消息后这里会显示 Agent 的完整上下文、工具调用等信息 ")) : Q("", !0), (Y(!0), X(J, null, sa(l.value, (e, t) => (Y(), X("div", {
|
|
24825
24867
|
key: t,
|
|
24826
24868
|
class: "log-item"
|
|
24827
24869
|
}, [
|
|
24828
|
-
Z("div",
|
|
24870
|
+
Z("div", pT, [
|
|
24829
24871
|
Z("span", {
|
|
24830
24872
|
class: "log-type",
|
|
24831
24873
|
style: Oe({ background: s[e.type].color })
|
|
24832
24874
|
}, U(s[e.type].icon) + " " + U(s[e.type].label), 5),
|
|
24833
|
-
e.source ? (Y(), X("span",
|
|
24834
|
-
Z("span",
|
|
24875
|
+
e.source ? (Y(), X("span", mT, "↳ " + U(e.source), 1)) : Q("", !0),
|
|
24876
|
+
Z("span", hT, U(d(e.timestamp)), 1)
|
|
24835
24877
|
]),
|
|
24836
|
-
Z("div",
|
|
24837
|
-
Z("div",
|
|
24838
|
-
Z("div",
|
|
24839
|
-
Z("div",
|
|
24840
|
-
Z("div",
|
|
24841
|
-
Z("div",
|
|
24878
|
+
Z("div", gT, [e.type === "context" ? (Y(), X(J, { key: 0 }, [
|
|
24879
|
+
Z("div", _T, [
|
|
24880
|
+
Z("div", vT, [n[18] ||= Z("span", { class: "k" }, "模型", -1), Z("span", yT, U(e.data.model), 1)]),
|
|
24881
|
+
Z("div", bT, [n[19] ||= Z("span", { class: "k" }, "温度", -1), Z("span", xT, U(e.data.temperature), 1)]),
|
|
24882
|
+
Z("div", ST, [n[20] ||= Z("span", { class: "k" }, "MaxTokens", -1), Z("span", CT, U(e.data.maxTokens), 1)]),
|
|
24883
|
+
Z("div", wT, [n[21] ||= Z("span", { class: "k" }, "消息数", -1), Z("span", TT, U(e.data.totalMessages), 1)])
|
|
24842
24884
|
]),
|
|
24843
|
-
Z("div",
|
|
24844
|
-
Z("div",
|
|
24885
|
+
Z("div", ET, "工具 (" + U(e.data.tools?.length || 0) + ")", 1),
|
|
24886
|
+
Z("div", DT, [(Y(!0), X(J, null, sa(e.data.tools, (e) => (Y(), X("span", {
|
|
24845
24887
|
key: e,
|
|
24846
24888
|
class: "tool-chip"
|
|
24847
24889
|
}, U(e), 1))), 128))]),
|
|
24848
24890
|
n[22] ||= Z("div", { class: "section-label" }, "上下文消息", -1),
|
|
24849
|
-
Z("div",
|
|
24891
|
+
Z("div", OT, [(Y(!0), X(J, null, sa(e.data.messages, (e, t) => (Y(), X("div", {
|
|
24850
24892
|
key: t,
|
|
24851
24893
|
class: "msg-row"
|
|
24852
24894
|
}, [Z("span", {
|
|
24853
24895
|
class: "msg-role",
|
|
24854
24896
|
style: Oe({ background: g(e.type).color })
|
|
24855
|
-
}, U(g(e.type).label), 5), Z("span",
|
|
24856
|
-
], 64)) : e.type === "llm_request" ? (Y(), X(J, { key: 1 }, [Z("div",
|
|
24857
|
-
Z("span",
|
|
24858
|
-
e.data.model ? (Y(), X("span",
|
|
24859
|
-
Z("span",
|
|
24860
|
-
e.data.tools?.length ? (Y(), X("span",
|
|
24897
|
+
}, U(g(e.type).label), 5), Z("span", kT, U(e.content), 1)]))), 128))])
|
|
24898
|
+
], 64)) : e.type === "llm_request" ? (Y(), X(J, { key: 1 }, [Z("div", AT, [
|
|
24899
|
+
Z("span", jT, "第 " + U(e.data.round) + " 轮", 1),
|
|
24900
|
+
e.data.model ? (Y(), X("span", MT, U(e.data.model), 1)) : Q("", !0),
|
|
24901
|
+
Z("span", NT, U((e.data.messages || []).length) + " 条消息", 1),
|
|
24902
|
+
e.data.tools?.length ? (Y(), X("span", PT, U(e.data.tools.length) + " 工具", 1)) : Q("", !0),
|
|
24861
24903
|
Z("button", {
|
|
24862
24904
|
class: "view-toggle",
|
|
24863
24905
|
onClick: (e) => p(t)
|
|
24864
|
-
}, U(o.value.has(t) ? "🗂 卡片视图" : "📋 请求体"), 9,
|
|
24865
|
-
]), o.value.has(t) ? (Y(), X("pre",
|
|
24906
|
+
}, U(o.value.has(t) ? "🗂 卡片视图" : "📋 请求体"), 9, FT)
|
|
24907
|
+
]), o.value.has(t) ? (Y(), X("pre", HT, [Z("code", null, U(m(e.data.messages)), 1)])) : (Y(), X("div", IT, [(Y(!0), X(J, null, sa(e.data.messages, (e, t) => (Y(), X("div", {
|
|
24866
24908
|
key: t,
|
|
24867
24909
|
class: "msg-row"
|
|
24868
24910
|
}, [Z("span", {
|
|
24869
24911
|
class: "msg-role",
|
|
24870
24912
|
style: Oe({ background: g(e.role).color })
|
|
24871
|
-
}, U(g(e.role).label), 5), Z("div",
|
|
24872
|
-
e.content ? (Y(), X("span",
|
|
24913
|
+
}, U(g(e.role).label), 5), Z("div", LT, [
|
|
24914
|
+
e.content ? (Y(), X("span", RT, U(e.content), 1)) : Q("", !0),
|
|
24873
24915
|
(Y(!0), X(J, null, sa(e.tool_calls || [], (e, t) => (Y(), X("div", {
|
|
24874
24916
|
key: t,
|
|
24875
24917
|
class: "tc-inline"
|
|
24876
|
-
}, [Z("span",
|
|
24877
|
-
e.tool_call_id ? (Y(), X("span",
|
|
24918
|
+
}, [Z("span", zT, "🔧 " + U(e.function?.name || e.name), 1), Z("code", BT, U(e.function?.arguments ?? e.args), 1)]))), 128)),
|
|
24919
|
+
e.tool_call_id ? (Y(), X("span", VT, "↳ tool_call_id: " + U(e.tool_call_id), 1)) : Q("", !0)
|
|
24878
24920
|
])]))), 128))]))], 64)) : e.type === "llm_response" ? (Y(), X(J, { key: 2 }, [
|
|
24879
|
-
Z("div",
|
|
24880
|
-
e.data.content ? (Y(), X("div",
|
|
24881
|
-
e.data.toolCalls?.length ? (Y(), X("div",
|
|
24921
|
+
Z("div", UT, [Z("span", WT, "第 " + U(e.data.round) + " 轮", 1), e.data.toolCalls?.length ? (Y(), X("span", GT, "🔧 " + U(e.data.toolCalls.length) + " 个工具调用", 1)) : Q("", !0)]),
|
|
24922
|
+
e.data.content ? (Y(), X("div", KT, U(e.data.content), 1)) : Q("", !0),
|
|
24923
|
+
e.data.toolCalls?.length ? (Y(), X("div", qT, [(Y(!0), X(J, null, sa(e.data.toolCalls, (e, t) => (Y(), X("div", {
|
|
24882
24924
|
key: t,
|
|
24883
24925
|
class: "tc-card"
|
|
24884
|
-
}, [Z("div",
|
|
24885
|
-
e.data.usage ? (Y(), X("div",
|
|
24886
|
-
Z("span",
|
|
24887
|
-
Z("span",
|
|
24888
|
-
Z("span",
|
|
24926
|
+
}, [Z("div", JT, "🔧 " + U(e.name), 1), Z("pre", YT, U(m(e.args)), 1)]))), 128))])) : Q("", !0),
|
|
24927
|
+
e.data.usage ? (Y(), X("div", XT, [
|
|
24928
|
+
Z("span", ZT, "prompt: " + U(e.data.usage.prompt_tokens ?? "-"), 1),
|
|
24929
|
+
Z("span", QT, "completion: " + U(e.data.usage.completion_tokens ?? "-"), 1),
|
|
24930
|
+
Z("span", $T, "total: " + U(e.data.usage.total_tokens ?? "-"), 1)
|
|
24889
24931
|
])) : Q("", !0)
|
|
24890
|
-
], 64)) : e.type === "tool_call" ? (Y(), X("div",
|
|
24891
|
-
Z("div",
|
|
24932
|
+
], 64)) : e.type === "tool_call" ? (Y(), X("div", eE, [Z("div", tE, "🔧 " + U(e.data.name), 1), Z("pre", nE, U(m(e.data.args)), 1)])) : e.type === "tool_result" ? (Y(), X("div", rE, [Z("div", iE, "✅ " + U(e.data.name) + " 结果", 1), Z("pre", aE, U(e.data.result), 1)])) : e.type === "error" ? (Y(), X("div", oE, U(e.data.tool ? `[${e.data.tool}] ` : "") + U(e.data.error), 1)) : Q("", !0)]),
|
|
24933
|
+
Z("div", sE, [Z("button", {
|
|
24892
24934
|
class: "raw-toggle",
|
|
24893
24935
|
onClick: (e) => f(t)
|
|
24894
|
-
}, U(a.value.has(t) ? "收起原始 JSON" : "查看原始 JSON"), 9,
|
|
24936
|
+
}, U(a.value.has(t) ? "收起原始 JSON" : "查看原始 JSON"), 9, cE), Z("button", {
|
|
24895
24937
|
class: "raw-toggle",
|
|
24896
24938
|
onClick: (t) => K(g_)(m(e.data))
|
|
24897
|
-
}, "复制", 8,
|
|
24898
|
-
a.value.has(t) ? (Y(), X("pre",
|
|
24939
|
+
}, "复制", 8, lE)]),
|
|
24940
|
+
a.value.has(t) ? (Y(), X("pre", uE, [Z("code", null, U(m(e.data)), 1)])) : Q("", !0)
|
|
24899
24941
|
]))), 128))], 64)) : y.value === "flow" ? (Y(), X(J, { key: 4 }, [
|
|
24900
|
-
c.value.length ? Q("", !0) : (Y(), X("div",
|
|
24901
|
-
O.value.pre.length ? (Y(), X("div",
|
|
24942
|
+
c.value.length ? Q("", !0) : (Y(), X("div", dE, "暂无日志,发送消息后这里按轮次展示执行流程")),
|
|
24943
|
+
O.value.pre.length ? (Y(), X("div", fE, [n[23] ||= Z("div", { class: "flow-section-title" }, "⚙️ 准备 / 其他", -1), (Y(!0), X(J, null, sa(O.value.pre, (e, t) => (Y(), X("div", {
|
|
24902
24944
|
key: "p" + t,
|
|
24903
24945
|
class: H(["flow-node", e.type])
|
|
24904
24946
|
}, [
|
|
24905
|
-
Z("span",
|
|
24906
|
-
Z("span",
|
|
24907
|
-
Z("span",
|
|
24908
|
-
Z("span",
|
|
24947
|
+
Z("span", pE, U(s[e.type]?.icon), 1),
|
|
24948
|
+
Z("span", mE, U(s[e.type]?.label), 1),
|
|
24949
|
+
Z("span", hE, U(ie(e)), 1),
|
|
24950
|
+
Z("span", gE, U(d(e.timestamp)), 1)
|
|
24909
24951
|
], 2))), 128))])) : Q("", !0),
|
|
24910
24952
|
(Y(!0), X(J, null, sa(O.value.rounds, (e) => (Y(), X("div", {
|
|
24911
24953
|
key: e.round,
|
|
24912
24954
|
class: "flow-round"
|
|
24913
|
-
}, [Z("div",
|
|
24955
|
+
}, [Z("div", _E, "🔁 第 " + U(e.round) + " 轮", 1), Z("div", vE, [(Y(!0), X(J, null, sa(e.items, (e, t) => (Y(), X("div", {
|
|
24914
24956
|
key: t,
|
|
24915
24957
|
class: H(["flow-node", e.type])
|
|
24916
24958
|
}, [
|
|
24917
|
-
Z("span",
|
|
24918
|
-
Z("span",
|
|
24919
|
-
Z("span",
|
|
24920
|
-
Z("span",
|
|
24959
|
+
Z("span", yE, U(s[e.type]?.icon), 1),
|
|
24960
|
+
Z("span", bE, U(s[e.type]?.label), 1),
|
|
24961
|
+
Z("span", xE, U(ie(e)), 1),
|
|
24962
|
+
Z("span", SE, U(d(e.timestamp)), 1)
|
|
24921
24963
|
], 2))), 128))])]))), 128))
|
|
24922
|
-
], 64)) : (Y(), X("div",
|
|
24923
|
-
Z("div",
|
|
24964
|
+
], 64)) : (Y(), X("div", CE, [b.value ? (Y(), X(J, { key: 1 }, [
|
|
24965
|
+
Z("div", TE, [
|
|
24924
24966
|
n[29] ||= Z("div", { class: "info-title" }, "基本信息", -1),
|
|
24925
|
-
Z("div",
|
|
24926
|
-
Z("div",
|
|
24927
|
-
Z("div",
|
|
24928
|
-
Z("div",
|
|
24929
|
-
Z("div",
|
|
24967
|
+
Z("div", EE, [
|
|
24968
|
+
Z("div", DE, [n[24] ||= Z("span", { class: "k" }, "ID", -1), Z("span", OE, U(b.value.id), 1)]),
|
|
24969
|
+
Z("div", kE, [n[25] ||= Z("span", { class: "k" }, "模型", -1), Z("span", AE, U(b.value.model || "-"), 1)]),
|
|
24970
|
+
Z("div", jE, [n[26] ||= Z("span", { class: "k" }, "工具数", -1), Z("span", ME, U(b.value.tools.length), 1)]),
|
|
24971
|
+
Z("div", NE, [n[27] ||= Z("span", { class: "k" }, "中间件", -1), Z("span", PE, U(b.value.middleware.length), 1)])
|
|
24930
24972
|
]),
|
|
24931
|
-
Z("div",
|
|
24973
|
+
Z("div", FE, [n[28] ||= Z("span", { class: "k" }, "中间件栈", -1), Z("span", IE, U(b.value.middleware.join(" → ") || "-"), 1)])
|
|
24932
24974
|
]),
|
|
24933
|
-
Z("div",
|
|
24975
|
+
Z("div", LE, [Z("div", RE, "🔧 工具 (" + U(b.value.tools.length) + ")", 1), (Y(!0), X(J, null, sa(b.value.tools, (e) => (Y(), X("div", {
|
|
24934
24976
|
key: e.name,
|
|
24935
24977
|
class: "info-item"
|
|
24936
|
-
}, [Z("div",
|
|
24978
|
+
}, [Z("div", zE, [_s(U(e.name), 1), e.source ? (Y(), X("span", {
|
|
24937
24979
|
key: 0,
|
|
24938
24980
|
class: H(["src-tag", D(e.source)])
|
|
24939
|
-
}, U(e.source), 3)) : Q("", !0)]), Z("div",
|
|
24940
|
-
b.value.skills.length ? (Y(), X("div",
|
|
24981
|
+
}, U(e.source), 3)) : Q("", !0)]), Z("div", BE, U(e.description), 1)]))), 128))]),
|
|
24982
|
+
b.value.skills.length ? (Y(), X("div", VE, [Z("div", HE, [_s("📘 技能 (" + U(b.value.skills.length) + ")", 1), n[30] ||= Z("span", { class: "info-hint" }, "点击展开查看全文", -1)]), (Y(!0), X(J, null, sa(b.value.skills, (e) => (Y(), X("div", {
|
|
24941
24983
|
key: e.name,
|
|
24942
24984
|
class: "info-item"
|
|
24943
24985
|
}, [
|
|
24944
24986
|
Z("div", {
|
|
24945
24987
|
class: "info-name skill-toggle",
|
|
24946
24988
|
onClick: (t) => S(e.name)
|
|
24947
|
-
}, [Z("span", { class: H(["skill-arrow", { open: !!x.value[e.name] }]) }, "▶", 2), _s(" " + U(e.name), 1)], 8,
|
|
24948
|
-
Z("div",
|
|
24949
|
-
x.value[e.name] ? (Y(), X("div",
|
|
24989
|
+
}, [Z("span", { class: H(["skill-arrow", { open: !!x.value[e.name] }]) }, "▶", 2), _s(" " + U(e.name), 1)], 8, UE),
|
|
24990
|
+
Z("div", WE, U(e.description), 1),
|
|
24991
|
+
x.value[e.name] ? (Y(), X("div", GE, [x.value[e.name].loading ? (Y(), X("div", KE, "加载中…")) : x.value[e.name].error ? (Y(), X("div", qE, U(x.value[e.name].error), 1)) : x.value[e.name].content ? (Y(), X("pre", JE, U(x.value[e.name].content), 1)) : Q("", !0)])) : Q("", !0)
|
|
24950
24992
|
]))), 128))])) : Q("", !0),
|
|
24951
|
-
b.value.data ? (Y(), X("div",
|
|
24952
|
-
Z("div",
|
|
24953
|
-
Z("div",
|
|
24954
|
-
Z("div",
|
|
24955
|
-
Z("div",
|
|
24956
|
-
Z("div",
|
|
24993
|
+
b.value.data ? (Y(), X("div", YE, [n[31] ||= Z("div", { class: "info-title" }, "📊 可操作数据", -1), Z("div", XE, [Z("div", ZE, U(b.value.data.description || "主数据对象"), 1), Z("div", QE, "schema: " + U(b.value.data.schema ? "已声明" : "未声明"), 1)])])) : Q("", !0),
|
|
24994
|
+
Z("div", $E, [n[36] ||= Z("div", { class: "info-title" }, "🧬 子 Agent", -1), Z("div", eD, [
|
|
24995
|
+
Z("div", tD, [n[32] ||= Z("span", { class: "k" }, "启用", -1), Z("span", nD, U(b.value.subagent.enabled ? "是" : "否"), 1)]),
|
|
24996
|
+
Z("div", rD, [n[33] ||= Z("span", { class: "k" }, "最大递归", -1), Z("span", iD, U(b.value.subagent.maxDepth), 1)]),
|
|
24997
|
+
Z("div", aD, [n[34] ||= Z("span", { class: "k" }, "并行上限", -1), Z("span", oD, U(b.value.subagent.maxParallel), 1)]),
|
|
24998
|
+
Z("div", sD, [n[35] ||= Z("span", { class: "k" }, "额外工具", -1), Z("span", cD, U(b.value.subagent.allowedTools.length ? b.value.subagent.allowedTools.join(", ") : "默认只读"), 1)])
|
|
24957
24999
|
])]),
|
|
24958
|
-
b.value.mcp?.servers?.length ? (Y(), X("div",
|
|
25000
|
+
b.value.mcp?.servers?.length ? (Y(), X("div", lD, [Z("div", uD, "🔌 MCP (" + U(b.value.mcp.servers.length) + ")", 1), (Y(!0), X(J, null, sa(b.value.mcp.servers, (e) => (Y(), X("div", {
|
|
24959
25001
|
key: e.name,
|
|
24960
25002
|
class: "info-item"
|
|
24961
|
-
}, [Z("div",
|
|
24962
|
-
b.value.verify ? (Y(), X("div",
|
|
24963
|
-
Z("div",
|
|
24964
|
-
Z("div",
|
|
24965
|
-
Z("div",
|
|
24966
|
-
b.value.verify.adversarial ? (Y(), X("div",
|
|
25003
|
+
}, [Z("div", dD, [_s(U(e.name) + " ", 1), Z("span", fD, U(e.toolCount) + " 工具", 1)]), Z("div", pD, U(e.url), 1)]))), 128))])) : Q("", !0),
|
|
25004
|
+
b.value.verify ? (Y(), X("div", mD, [n[41] ||= Z("div", { class: "info-title" }, "✅ Verify 自检", -1), Z("div", hD, [
|
|
25005
|
+
Z("div", gD, [n[37] ||= Z("span", { class: "k" }, "启用", -1), Z("span", _D, U(b.value.verify.enabled ? "是" : "否"), 1)]),
|
|
25006
|
+
Z("div", vD, [n[38] ||= Z("span", { class: "k" }, "自纠上限", -1), Z("span", yD, U(b.value.verify.maxAttempts), 1)]),
|
|
25007
|
+
Z("div", bD, [n[39] ||= Z("span", { class: "k" }, "对抗验证", -1), Z("span", xD, U(b.value.verify.adversarial ? "开启" : "关闭"), 1)]),
|
|
25008
|
+
b.value.verify.adversarial ? (Y(), X("div", SD, [n[40] ||= Z("span", { class: "k" }, "对抗模型", -1), Z("span", CD, U(b.value.model || "-") + "(同主)", 1)])) : Q("", !0)
|
|
24967
25009
|
])])) : Q("", !0),
|
|
24968
|
-
b.value.todos.length ? (Y(), X("div",
|
|
25010
|
+
b.value.todos.length ? (Y(), X("div", wD, [Z("div", TD, "📋 任务清单 (" + U(b.value.todos.length) + ")", 1), (Y(!0), X(J, null, sa(b.value.todos, (e, t) => (Y(), X("div", {
|
|
24969
25011
|
key: t,
|
|
24970
25012
|
class: "info-todo"
|
|
24971
25013
|
}, [Z("span", {
|
|
24972
25014
|
class: "todo-tag",
|
|
24973
25015
|
style: Oe({ background: T[e.status] && T[e.status].color || "#9ca3af" })
|
|
24974
25016
|
}, U(E(e.status)), 5), Z("span", null, U(e.content), 1)]))), 128))])) : Q("", !0),
|
|
24975
|
-
b.value.memory ? (Y(), X("div",
|
|
24976
|
-
b.value.lastCompression ? (Y(), X("div",
|
|
24977
|
-
Z("div",
|
|
24978
|
-
Z("div",
|
|
24979
|
-
Z("div",
|
|
24980
|
-
Z("div",
|
|
24981
|
-
Z("div",
|
|
24982
|
-
b.value.lastCompression.decision ? (Y(), X("div",
|
|
25017
|
+
b.value.memory ? (Y(), X("div", ED, [n[42] ||= Z("div", { class: "info-title" }, "📝 持久指令 (memory)", -1), Z("pre", DD, U(b.value.memory), 1)])) : Q("", !0),
|
|
25018
|
+
b.value.lastCompression ? (Y(), X("div", OD, [n[49] ||= Z("div", { class: "info-title" }, "🗜️ 上轮压缩", -1), Z("div", kD, [
|
|
25019
|
+
Z("div", AD, [n[43] ||= Z("span", { class: "k" }, "触发", -1), Z("span", jD, U(b.value.lastCompression.triggered ? "✓" : "✗(未达阈值)"), 1)]),
|
|
25020
|
+
Z("div", MD, [n[44] ||= Z("span", { class: "k" }, "摘要轮次", -1), Z("span", ND, U(b.value.lastCompression.roundsSummarized) + " / " + U(b.value.lastCompression.roundsTotal), 1)]),
|
|
25021
|
+
Z("div", PD, [n[45] ||= Z("span", { class: "k" }, "召回", -1), Z("span", FD, U(b.value.lastCompression.roundsRecalled) + " 条", 1)]),
|
|
25022
|
+
Z("div", ID, [n[46] ||= Z("span", { class: "k" }, "消息数", -1), Z("span", LD, U(b.value.lastCompression.originalMessages) + " → " + U(b.value.lastCompression.compressedMessages), 1)]),
|
|
25023
|
+
Z("div", RD, [n[47] ||= Z("span", { class: "k" }, "策略", -1), Z("span", zD, U(b.value.lastCompression.strategy), 1)]),
|
|
25024
|
+
b.value.lastCompression.decision ? (Y(), X("div", BD, [n[48] ||= Z("span", { class: "k" }, "压缩决策", -1), Z("span", VD, "🤖 " + U(R(b.value.lastCompression.decision)), 1)])) : Q("", !0)
|
|
24983
25025
|
])])) : Q("", !0)
|
|
24984
|
-
], 64)) : (Y(), X("div",
|
|
25026
|
+
], 64)) : (Y(), X("div", wE, "暂无信息"))]))
|
|
24985
25027
|
])
|
|
24986
25028
|
], 2), Z("div", {
|
|
24987
25029
|
class: "drawer-mask",
|
|
@@ -24990,16 +25032,16 @@ app.mount('#app');
|
|
|
24990
25032
|
_: 1
|
|
24991
25033
|
})]));
|
|
24992
25034
|
}
|
|
24993
|
-
}), [["__scopeId", "data-v-9c201fc3"]]),
|
|
25035
|
+
}), [["__scopeId", "data-v-9c201fc3"]]), UD = { class: "skill-panel" }, WD = { class: "skill-header" }, GD = { class: "skill-section" }, KD = { class: "section-title" }, qD = { class: "field" }, JD = ["disabled"], YD = { class: "field" }, XD = { class: "field field-textarea" }, ZD = {
|
|
24994
25036
|
key: 0,
|
|
24995
25037
|
class: "skill-error"
|
|
24996
|
-
},
|
|
25038
|
+
}, QD = { class: "skill-section" }, $D = { class: "section-title" }, eO = {
|
|
24997
25039
|
key: 0,
|
|
24998
25040
|
class: "empty-hint"
|
|
24999
|
-
},
|
|
25041
|
+
}, tO = {
|
|
25000
25042
|
key: 1,
|
|
25001
25043
|
class: "skill-list"
|
|
25002
|
-
},
|
|
25044
|
+
}, nO = { class: "skill-actions" }, rO = ["onClick"], iO = ["onClick"], aO = /*#__PURE__*/ F_(/* @__PURE__ */ Fi({
|
|
25003
25045
|
__name: "SkillPanel",
|
|
25004
25046
|
props: {
|
|
25005
25047
|
visible: { type: Boolean },
|
|
@@ -25053,54 +25095,54 @@ app.mount('#app');
|
|
|
25053
25095
|
key: 0,
|
|
25054
25096
|
class: "skill-mask",
|
|
25055
25097
|
onClick: n[4] ||= yl((e) => r("close"), ["self"])
|
|
25056
|
-
}, [Z("div",
|
|
25057
|
-
Z("div",
|
|
25098
|
+
}, [Z("div", UD, [
|
|
25099
|
+
Z("div", WD, [n[5] ||= Z("span", { class: "skill-title" }, "🧩 Skill 管理", -1), Z("button", {
|
|
25058
25100
|
class: "skill-close",
|
|
25059
25101
|
title: "关闭",
|
|
25060
25102
|
onClick: n[0] ||= (e) => r("close")
|
|
25061
25103
|
}, "✕")]),
|
|
25062
|
-
Z("div",
|
|
25063
|
-
Z("div",
|
|
25104
|
+
Z("div", GD, [
|
|
25105
|
+
Z("div", KD, [_s(U(u.value ? `编辑 Skill: ${u.value}` : "创建新 Skill") + " ", 1), u.value ? (Y(), X("button", {
|
|
25064
25106
|
key: 0,
|
|
25065
25107
|
class: "btn btn-ghost btn-cancel",
|
|
25066
25108
|
title: "取消编辑,回到新建",
|
|
25067
25109
|
onClick: h
|
|
25068
25110
|
}, "取消编辑")) : Q("", !0)]),
|
|
25069
|
-
Z("label",
|
|
25111
|
+
Z("label", qD, [n[6] ||= Z("span", { class: "field-label" }, "名称", -1), Xr(Z("input", {
|
|
25070
25112
|
"onUpdate:modelValue": n[1] ||= (e) => i.value = e,
|
|
25071
25113
|
disabled: !!u.value,
|
|
25072
25114
|
placeholder: "如:my-writer",
|
|
25073
25115
|
class: "field-input"
|
|
25074
|
-
}, null, 8,
|
|
25075
|
-
Z("label",
|
|
25116
|
+
}, null, 8, JD), [[gl, i.value]])]),
|
|
25117
|
+
Z("label", YD, [n[7] ||= Z("span", { class: "field-label" }, "描述", -1), Xr(Z("input", {
|
|
25076
25118
|
"onUpdate:modelValue": n[2] ||= (e) => a.value = e,
|
|
25077
25119
|
placeholder: "一句话说明用途与触发时机",
|
|
25078
25120
|
class: "field-input"
|
|
25079
25121
|
}, null, 512), [[gl, a.value]])]),
|
|
25080
|
-
Z("label",
|
|
25122
|
+
Z("label", XD, [n[8] ||= Z("span", { class: "field-label" }, "内容", -1), Xr(Z("textarea", {
|
|
25081
25123
|
"onUpdate:modelValue": n[3] ||= (e) => o.value = e,
|
|
25082
25124
|
placeholder: "skill 全文指令(支持 Markdown)",
|
|
25083
25125
|
rows: "6",
|
|
25084
25126
|
class: "field-input"
|
|
25085
25127
|
}, null, 512), [[gl, o.value]])]),
|
|
25086
|
-
s.value ? (Y(), X("div",
|
|
25128
|
+
s.value ? (Y(), X("div", ZD, U(s.value), 1)) : Q("", !0),
|
|
25087
25129
|
Z("button", {
|
|
25088
25130
|
class: "btn btn-primary",
|
|
25089
25131
|
onClick: f
|
|
25090
25132
|
}, U(u.value ? "保存修改" : "添加 Skill"), 1)
|
|
25091
25133
|
]),
|
|
25092
|
-
Z("div",
|
|
25134
|
+
Z("div", QD, [Z("div", $D, "已创建 Skill(" + U(c.value.length) + ")", 1), c.value.length ? (Y(), X("ul", tO, [(Y(!0), X(J, null, sa(c.value, (e) => (Y(), X("li", {
|
|
25093
25135
|
key: e,
|
|
25094
25136
|
class: "skill-item"
|
|
25095
|
-
}, [Z("span", { class: H(["skill-name", { active: u.value === e }]) }, U(e), 3), Z("span",
|
|
25137
|
+
}, [Z("span", { class: H(["skill-name", { active: u.value === e }]) }, U(e), 3), Z("span", nO, [Z("button", {
|
|
25096
25138
|
class: "btn btn-ghost btn-edit",
|
|
25097
25139
|
title: "加载到表单编辑",
|
|
25098
25140
|
onClick: (t) => m(e)
|
|
25099
|
-
}, "编辑", 8,
|
|
25141
|
+
}, "编辑", 8, rO), Z("button", {
|
|
25100
25142
|
class: "btn btn-ghost btn-del",
|
|
25101
25143
|
title: "删除该用户 skill",
|
|
25102
25144
|
onClick: (t) => p(e)
|
|
25103
|
-
}, "删除", 8,
|
|
25145
|
+
}, "删除", 8, iO)])]))), 128))])) : (Y(), X("div", eO, "暂无用户创建的 skill"))]),
|
|
25104
25146
|
n[9] ||= Z("div", { class: "skill-hint" }, [
|
|
25105
25147
|
_s(" 💡 创建/编辑的 skill 会自动加入 agent(下轮 system prompt 索引可见),agent 经 "),
|
|
25106
25148
|
Z("code", null, "load_skill(name)"),
|
|
@@ -25112,7 +25154,7 @@ app.mount('#app');
|
|
|
25112
25154
|
_: 1
|
|
25113
25155
|
})]));
|
|
25114
25156
|
}
|
|
25115
|
-
}), [["__scopeId", "data-v-c6a22ea5"]]),
|
|
25157
|
+
}), [["__scopeId", "data-v-c6a22ea5"]]), oO = /*#__PURE__*/ F_(/* @__PURE__ */ Fi({
|
|
25116
25158
|
__name: "ChatDialog",
|
|
25117
25159
|
props: {
|
|
25118
25160
|
fetchResponse: {},
|
|
@@ -25160,11 +25202,12 @@ app.mount('#app');
|
|
|
25160
25202
|
onRemoveFocus: {},
|
|
25161
25203
|
onFocusChipClick: {},
|
|
25162
25204
|
sections: {},
|
|
25163
|
-
csTheme: {}
|
|
25205
|
+
csTheme: {},
|
|
25206
|
+
icons: {}
|
|
25164
25207
|
},
|
|
25165
25208
|
emits: ["close"],
|
|
25166
25209
|
setup(e, { emit: t }) {
|
|
25167
|
-
let n = e, r = t, i =
|
|
25210
|
+
let n = e, r = t, i = b_({
|
|
25168
25211
|
fetchResponse: n.fetchResponse,
|
|
25169
25212
|
fetchStream: n.fetchStream,
|
|
25170
25213
|
messages: n.initialMessages,
|
|
@@ -25179,9 +25222,10 @@ app.mount('#app');
|
|
|
25179
25222
|
onRemoveFocus: n.onRemoveFocus,
|
|
25180
25223
|
onClearFocus: n.onClearFocus,
|
|
25181
25224
|
onFocusChipClick: n.onFocusChipClick,
|
|
25182
|
-
infoTick: n.infoTick
|
|
25225
|
+
infoTick: n.infoTick,
|
|
25226
|
+
icons: n.icons
|
|
25183
25227
|
});
|
|
25184
|
-
Qr(
|
|
25228
|
+
Qr(y_, i);
|
|
25185
25229
|
let { isExpanded: a, debugVisible: o, skillVisible: s, closeSkill: c } = i, { scrollContainer: l, onScroll: u, onWheel: d } = i.chat;
|
|
25186
25230
|
function f(e) {
|
|
25187
25231
|
return e === "focus" ? n.sections?.focus === !0 : n.sections?.[e] !== !1;
|
|
@@ -25209,7 +25253,7 @@ app.mount('#app');
|
|
|
25209
25253
|
f("header") ? ca(t.$slots, "header", {
|
|
25210
25254
|
key: 0,
|
|
25211
25255
|
chat: K(i)
|
|
25212
|
-
}, () => [fs(
|
|
25256
|
+
}, () => [fs(I_, {
|
|
25213
25257
|
title: e.title,
|
|
25214
25258
|
drawer: e.drawer,
|
|
25215
25259
|
"debug-logs": e.debugLogs,
|
|
@@ -25234,16 +25278,18 @@ app.mount('#app');
|
|
|
25234
25278
|
f("focus") ? ca(t.$slots, "focus", {
|
|
25235
25279
|
key: 1,
|
|
25236
25280
|
chat: K(i)
|
|
25237
|
-
}, () => [fs(
|
|
25281
|
+
}, () => [fs(U_, {
|
|
25238
25282
|
"get-focus": e.getFocus,
|
|
25239
25283
|
"on-set-focus": e.onSetFocus,
|
|
25240
25284
|
"on-clear-focus": e.onClearFocus,
|
|
25241
|
-
"info-tick": e.infoTick
|
|
25285
|
+
"info-tick": e.infoTick,
|
|
25286
|
+
icons: K(i).icons
|
|
25242
25287
|
}, null, 8, [
|
|
25243
25288
|
"get-focus",
|
|
25244
25289
|
"on-set-focus",
|
|
25245
25290
|
"on-clear-focus",
|
|
25246
|
-
"info-tick"
|
|
25291
|
+
"info-tick",
|
|
25292
|
+
"icons"
|
|
25247
25293
|
])], !0) : Q("", !0),
|
|
25248
25294
|
Z("div", {
|
|
25249
25295
|
class: "chat-main",
|
|
@@ -25256,7 +25302,7 @@ app.mount('#app');
|
|
|
25256
25302
|
key: 0,
|
|
25257
25303
|
name: "cs-slide"
|
|
25258
25304
|
}, {
|
|
25259
|
-
default: Jr(() => [ca(t.$slots, "body", { chat: K(i) }, () => [Xr(fs(
|
|
25305
|
+
default: Jr(() => [ca(t.$slots, "body", { chat: K(i) }, () => [Xr(fs(lC, {
|
|
25260
25306
|
"show-avatar": e.showAvatar,
|
|
25261
25307
|
"show-typing": e.showTyping
|
|
25262
25308
|
}, null, 8, ["show-avatar", "show-typing"]), [[Pc, K(a)]])], !0)]),
|
|
@@ -25265,24 +25311,29 @@ app.mount('#app');
|
|
|
25265
25311
|
f("queued") ? ca(t.$slots, "queued", {
|
|
25266
25312
|
key: 1,
|
|
25267
25313
|
chat: K(i)
|
|
25268
|
-
}, () => [fs(
|
|
25314
|
+
}, () => [fs(vC)], !0) : Q("", !0),
|
|
25269
25315
|
f("approval") ? ca(t.$slots, "approval", {
|
|
25270
25316
|
key: 2,
|
|
25271
25317
|
chat: K(i)
|
|
25272
|
-
}, () => [fs(
|
|
25318
|
+
}, () => [fs(AC)], !0) : Q("", !0),
|
|
25273
25319
|
f("conflict") ? ca(t.$slots, "conflict", {
|
|
25274
25320
|
key: 3,
|
|
25275
25321
|
chat: K(i)
|
|
25276
|
-
}, () => [fs(
|
|
25322
|
+
}, () => [fs(HC, {
|
|
25277
25323
|
"pending-conflict": e.pendingConflict,
|
|
25278
|
-
"on-resolve": e.onResolveConflict
|
|
25279
|
-
|
|
25324
|
+
"on-resolve": e.onResolveConflict,
|
|
25325
|
+
icons: K(i).icons
|
|
25326
|
+
}, null, 8, [
|
|
25327
|
+
"pending-conflict",
|
|
25328
|
+
"on-resolve",
|
|
25329
|
+
"icons"
|
|
25330
|
+
])], !0) : Q("", !0)
|
|
25280
25331
|
], 544),
|
|
25281
25332
|
f("footer") ? (Y(), as(gc, {
|
|
25282
25333
|
key: 2,
|
|
25283
25334
|
name: "cs-slide"
|
|
25284
25335
|
}, {
|
|
25285
|
-
default: Jr(() => [ca(t.$slots, "footer", { chat: K(i) }, () => [fs(
|
|
25336
|
+
default: Jr(() => [ca(t.$slots, "footer", { chat: K(i) }, () => [fs(tw, {
|
|
25286
25337
|
placeholder: e.placeholder,
|
|
25287
25338
|
"input-rows": e.inputRows
|
|
25288
25339
|
}, null, 8, ["placeholder", "input-rows"])], !0)]),
|
|
@@ -25291,7 +25342,7 @@ app.mount('#app');
|
|
|
25291
25342
|
f("debug") ? ca(t.$slots, "debug", {
|
|
25292
25343
|
key: 3,
|
|
25293
25344
|
chat: K(i)
|
|
25294
|
-
}, () => [fs(
|
|
25345
|
+
}, () => [fs(HD, {
|
|
25295
25346
|
visible: K(o),
|
|
25296
25347
|
"onUpdate:visible": n[4] ||= (e) => /* @__PURE__ */ Sn(o) ? o.value = e : null,
|
|
25297
25348
|
logs: e.debugLogs,
|
|
@@ -25310,7 +25361,7 @@ app.mount('#app');
|
|
|
25310
25361
|
f("skill") ? ca(t.$slots, "skill", {
|
|
25311
25362
|
key: 4,
|
|
25312
25363
|
chat: K(i)
|
|
25313
|
-
}, () => [fs(
|
|
25364
|
+
}, () => [fs(aO, {
|
|
25314
25365
|
visible: K(s),
|
|
25315
25366
|
"on-add-skill": e.onAddSkill,
|
|
25316
25367
|
"on-remove-skill": e.onRemoveSkill,
|
|
@@ -25327,13 +25378,13 @@ app.mount('#app');
|
|
|
25327
25378
|
])], !0) : Q("", !0)
|
|
25328
25379
|
], 6)], 64));
|
|
25329
25380
|
}
|
|
25330
|
-
}), [["__scopeId", "data-v-
|
|
25381
|
+
}), [["__scopeId", "data-v-74327cc5"]]);
|
|
25331
25382
|
//#endregion
|
|
25332
25383
|
//#region src/core/sdk/mountChatDialog.ts
|
|
25333
|
-
function
|
|
25384
|
+
function sO(e) {
|
|
25334
25385
|
let { core: t, dialogCfg: n } = e, r = null, i = e.el, a = t.agent.debugLogs;
|
|
25335
25386
|
return r = Tl(/* @__PURE__ */ Fi({ setup() {
|
|
25336
|
-
return () => $s(
|
|
25387
|
+
return () => $s(oO, {
|
|
25337
25388
|
fetchStream: e.streaming ? t.stream : void 0,
|
|
25338
25389
|
fetchResponse: e.streaming ? void 0 : (e, n) => {
|
|
25339
25390
|
if (n) {
|
|
@@ -25379,6 +25430,7 @@ function ZD(e) {
|
|
|
25379
25430
|
drawerHidden: n.drawerHidden === !0,
|
|
25380
25431
|
inputRows: n.inputRows,
|
|
25381
25432
|
sections: n.sections,
|
|
25433
|
+
icons: n.icons,
|
|
25382
25434
|
getFocus: () => t.getFocus(),
|
|
25383
25435
|
getFocuses: () => t.getFocuses(),
|
|
25384
25436
|
onSetFocus: (e) => t.setFocus(e),
|
|
@@ -25432,7 +25484,7 @@ function ZD(e) {
|
|
|
25432
25484
|
}
|
|
25433
25485
|
//#endregion
|
|
25434
25486
|
//#region src/core/sdk/ragSubagent.ts
|
|
25435
|
-
function
|
|
25487
|
+
function cO(e, t, n, r, i) {
|
|
25436
25488
|
let a = [];
|
|
25437
25489
|
e && a.push("vfs_grep + vfs_read(搜预注入文档)"), t && a.push(`${r}(语义检索)`), n && a.push(`${i}(按 source 加载)`), a.push("fetch_document(公网 URL)");
|
|
25438
25490
|
let o = [];
|
|
@@ -25447,7 +25499,7 @@ function QD(e, t, n, r, i) {
|
|
|
25447
25499
|
|
|
25448
25500
|
你是只读检索角色,不要尝试修改任何数据。不要尝试上面未列出的工具。`;
|
|
25449
25501
|
}
|
|
25450
|
-
function
|
|
25502
|
+
function lO(e, t, n, r, i) {
|
|
25451
25503
|
let a = [], o = [];
|
|
25452
25504
|
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)
|
|
25453
25505
|
|
|
@@ -25464,12 +25516,12 @@ ${a.join("\n")}
|
|
|
25464
25516
|
## 何时用何源
|
|
25465
25517
|
${o.join("\n")}`;
|
|
25466
25518
|
}
|
|
25467
|
-
var
|
|
25519
|
+
var uO = {
|
|
25468
25520
|
name: "rag-search",
|
|
25469
25521
|
description: "多源知识检索策略:vfs 预注入文档 → 语义检索 → 指定文档加载 → 公网;综合结构化结论 + 溯源",
|
|
25470
|
-
getContent: () =>
|
|
25522
|
+
getContent: () => lO(!0, !0, !0, "search_docs", "load_doc")
|
|
25471
25523
|
};
|
|
25472
|
-
function
|
|
25524
|
+
function dO(e, n, i) {
|
|
25473
25525
|
return r(async ({ query: e, topK: t }) => {
|
|
25474
25526
|
try {
|
|
25475
25527
|
let r = await n(e, { topK: t ?? i });
|
|
@@ -25486,7 +25538,7 @@ function tO(e, n, i) {
|
|
|
25486
25538
|
})
|
|
25487
25539
|
});
|
|
25488
25540
|
}
|
|
25489
|
-
function
|
|
25541
|
+
function fO(e, n) {
|
|
25490
25542
|
return r(async ({ source: e }) => {
|
|
25491
25543
|
try {
|
|
25492
25544
|
let t = await n(e), r = Array.isArray(t) ? t : [t];
|
|
@@ -25500,19 +25552,19 @@ function nO(e, n) {
|
|
|
25500
25552
|
schema: t.object({ source: t.string().describe("文档标识(id/URL/key)") })
|
|
25501
25553
|
});
|
|
25502
25554
|
}
|
|
25503
|
-
function
|
|
25555
|
+
function pO(e) {
|
|
25504
25556
|
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;
|
|
25505
25557
|
if (!t && !n && r === !1) throw Error("[page-agent-sdk][createRagSubagent] 至少配一种知识源:retriever / loader / useVfs(true)");
|
|
25506
25558
|
let p = [];
|
|
25507
|
-
t && p.push(
|
|
25559
|
+
t && p.push(dO(s, t, o)), n && p.push(fO(c, n)), f && p.push(...f);
|
|
25508
25560
|
let m = r ? [
|
|
25509
25561
|
"vfs_grep",
|
|
25510
25562
|
"vfs_read",
|
|
25511
25563
|
"vfs_json_read"
|
|
25512
|
-
] : void 0, h =
|
|
25564
|
+
] : void 0, h = cO(r, !!t, !!n, s, c), g = {
|
|
25513
25565
|
name: "rag-search",
|
|
25514
|
-
description:
|
|
25515
|
-
getContent: () =>
|
|
25566
|
+
description: uO.description,
|
|
25567
|
+
getContent: () => lO(r, !!t, !!n, s, c)
|
|
25516
25568
|
};
|
|
25517
25569
|
return {
|
|
25518
25570
|
id: i,
|
|
@@ -25527,8 +25579,8 @@ function rO(e) {
|
|
|
25527
25579
|
}
|
|
25528
25580
|
//#endregion
|
|
25529
25581
|
//#region src/core/index.ts
|
|
25530
|
-
function
|
|
25531
|
-
return p_(e,
|
|
25582
|
+
function mO(e) {
|
|
25583
|
+
return p_(e, sO);
|
|
25532
25584
|
}
|
|
25533
25585
|
//#endregion
|
|
25534
|
-
export {
|
|
25586
|
+
export { AC as ApprovalBar, Eh as CAPABILITIES, kh as CONTEXT_PRESETS, oO as ChatDialog, I_ as ChatHeader, tw as ChatInput, NS as CodePreview, Bm as CompressDecisionSchema, HC as ConflictBar, __ as DEFAULT_DIALOG_ICONS, Kf as DEFAULT_PROMPT_SOFT_CAP, Wp as DEFAULT_SYSTEM_PROMPT, HD as DebugDrawer, U_ as FocusBar, uS as HLJS_BLOCK_MAX_CHARS, om as HTML_VOID_TAGS, vf as HUMAN_CONFIRM_TOOL_NAME, Ul as MIN_CONTEXT_WINDOW, FS as MessageContent, lC as MessageList, eC as MessageRow, vC as QueuedBar, Gf as SOFT_CAP_MIN_WINDOW, zf as STOP_WORDS, aO as SkillPanel, hd as UNSAFE_KEYS, Hg as actionsToInspectInfo, Vg as actionsToTools, Il as agentError, Lp as analyzeContext, Od as applyPatchToClone, jd as applyPatchToLive, Fl as asAgentError, Gp as buildDataPrompt, jm as buildHtmlFragmentSkill, Kp as buildSystemPrompt, y_ as chatContextKey, hg as commitSetToBind, Up as connectMcp, C as constructLlmFromConfig, S as constructOpenLlmSync, g_ as copyText, ku as createAgent, _f as createApprovalMiddleware, b_ as createChatContext, mO as createChatSdk, Of as createCheckpointManager, kf as createCheckpointMiddleware, Qm as createConflictManager, Rp as createContextInspectorMiddleware, Cg as createDataOps, Nm as createHtmlFormatCheck, Im as createHtmlSubagent, xf as createHumanConfirmMiddleware, bf as createHumanConfirmTool, yh as createMemoryBackend, uf as createMemoryMiddleware, y as createProxyLlm, pO as createRagSubagent, qd as createSandboxRunner, Oh as createSdkEvents, a_ as createSerialRunner, Ch as createSessionStore, t_ as createSkillStore, mp as createSubagentMiddleware, Qf as createSubagentTracker, _p as createSubagentsMiddleware, Yg as createUsageHintsMiddleware, vp as createVerifyMiddleware, Xp as createVfs, xh as createWebStorageBackend, wp as createWriteBackCheck, xd as deepClone, Gg as defineDataToolset, Yd as defineSkill, Lm as defineTool, bd as deleteByPath, Vm as deriveTitle, Ku as describeSchemaNode, pu as detectGarbledToolCall, _u as detectTransitionalReply, Fd as diffObjects, kg as domToStructure, jg as domTools, Wg as domToolsStatic, Vf as estimateMessageTokens, Hf as estimateRoundTokens, Gl as estimateTokens, T as extractReasoningDelta, ad as extractSchemaHint, zp as extractText, w as extractTextDelta, E as extractUsage, Tg as fetchDocTools, Ug as fetchTools, mg as filterByToolMode, Pd as findStrippedKeys, qu as formatConstraints, jl as formatZodIssues, vd as getByPath, Ag as getDomTool, Pg as getEnvSummary, Nu as getSchemaAtPath, Au as getSchemaTopKeys, Jl as getTraceMetrics, Dd as hashValue, Mm as htmlFragmentSkill, ed as htmlOrchestratorPrompt, Uf as indexSummarize, Lg as inspectEnvTool, Rg as inspectTools, Hm as isChatModel, iu as isContextLengthError, ju as isPathAllowed, dh as isQuotaError, gd as isUnsafePath, Uh as jpEval, Nl as jsonParseError, wd as limitDepth, gS as markedToHtml, Sd as maybeParseValue, Ad as moveByPath, x as normalizeBaseUrl, O as normalizeUsage, ql as offloadPassThroughChars, Kl as offloadThresholdChars, $u as presets, Bu as projectBySchema, zu as projectBySchemaDeep, Cd as projectFields, Wf as recallRounds, _S as renderMarkdownHtml, Ju as renderSchemaHint, Yu as renderSchemaOverview, Qu as renderSchemaShallow, Dh as resolveCapabilities, jh as resolveContextOptions, Th as resolveDialogConfig, v_ as resolveDialogIcons, Zm as resolveLlm, Wl as resolveModelCaps, qf as resolvePromptSoftCap, wh as resolveStorage, Nd as restoreInPlace, Md as restoreLive, Pl as routeError, Jd as runHostScript, qh as runSandboxedScript, _d as safeMerge, Ng as safeSerialize, Td as safeStringify, mu as sanitizeGarbledContent, Gh as searchJson, Kg as selectBuiltinTools, yd as setByPath, Jf as shouldTriggerCompression, b as stripStainlessFetch, td as systemPromptHelpers, Bf as tokenize, $ as toolError, Mu as unwrapSchema, h_ as useChat, x_ as useChatContext, cm as validateHtmlFormat, e as z, Ml as zodError };
|