@vtj/designer 0.16.13 → 0.16.14
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
var sp = Object.defineProperty;
|
|
2
2
|
var ap = (e, t, n) => t in e ? sp(e, t, { enumerable: !0, configurable: !0, writable: !0, value: n }) : e[t] = n;
|
|
3
3
|
var fe = (e, t, n) => ap(e, typeof t != "symbol" ? t + "" : t, n);
|
|
4
|
-
import { computed as V, unref as i, ref as D, watch as le, reactive as sn, shallowRef as bt, shallowReadonly as lp, onMounted as ao, nextTick as Ut, toValue as Mt, getCurrentScope as Ui, onScopeDispose as ip, getCurrentInstance as fs, toRef as cp, readonly as qr, customRef as up, hasInjectionContext as $i, inject as gs, watchEffect as dp, toRaw as Oa, onUnmounted as ms, defineComponent as H, openBlock as h, createElementBlock as j, normalizeClass as
|
|
4
|
+
import { computed as V, unref as i, ref as D, watch as le, reactive as sn, shallowRef as bt, shallowReadonly as lp, onMounted as ao, nextTick as Ut, toValue as Mt, getCurrentScope as Ui, onScopeDispose as ip, getCurrentInstance as fs, toRef as cp, readonly as qr, customRef as up, hasInjectionContext as $i, inject as gs, watchEffect as dp, toRaw as Oa, onUnmounted as ms, defineComponent as H, openBlock as h, createElementBlock as j, normalizeClass as _e, toDisplayString as se, createVNode as v, withCtx as E, createElementVNode as N, createBlock as A, createCommentVNode as L, createTextVNode as ee, mergeProps as ct, h as eo, Fragment as Z, renderList as pe, defineAsyncComponent as pp, normalizeStyle as Kn, resolveDynamicComponent as zi, createSlots as Ia, renderSlot as Ht, withDirectives as Kt, vShow as Mn, normalizeProps as Ra, guardReactiveProps as Da, withModifiers as He, isRef as to, provide as fp, createApp as Na, withKeys as Et, markRaw as lr, shallowReactive as gp, triggerRef as zn, KeepAlive as Fi } from "vue";
|
|
5
5
|
import { ElMessage as At, ElNotification as Va, ElMessageBox as fn, ElLoading as Hi, ElButton as ve, ElDivider as st, ElInput as et, ElRadioGroup as Ji, ElRadioButton as Xo, ElButtonGroup as mp, ElSwitch as ir, ElImage as Er, ElUpload as kr, ElDropdown as Gi, ElDropdownMenu as Ki, ElDropdownItem as Fr, ElEmpty as rt, ElAlert as no, ElTooltip as Wi, ElTag as Pa, ElTree as Ma, ElCollapse as hs, ElCollapseItem as vs, ElRow as Qr, ElCol as Yr, ElCheckbox as Po, ElDrawer as ja, ElForm as Ot, ElSelect as La, ElOptionGroup as ia, ElOption as Xr, ElFormItem as zt, ElBreadcrumb as hp, ElBreadcrumbItem as vp, ElBadge as bp, ElAvatar as bs, vLoading as Ba, ElLink as qi, ElSegmented as yp, ElText as _p, ElDialog as wp, ElSteps as Ep, ElStep as js, ElInputNumber as kp, ElColorPicker as Sp, ElSlider as xp, ElTour as Cp, ElTourStep as Fn, ElConfigProvider as Ap, ElContainer as Rl, ElHeader as Tp, ElAside as Dl, ElMain as Op, ElFooter as Ip } from "element-plus";
|
|
6
6
|
import Rp from "element-plus/es/locale/lang/zh-cn";
|
|
7
7
|
import { XDialogForm as Yt, XField as Y, XIcon as $t, createDialog as Qi, XDialog as Xt, XPanel as ys, XAction as Ne, XTabs as _s, XContainer as Oe, XForm as Ua, XAttachment as Dp, XGrid as $a, XActionBar as Yi, XInputUnit as Xi, vResizable as Nl } from "@vtj/ui";
|
|
@@ -19,10 +19,10 @@ import { editor as Bm } from "monaco-editor";
|
|
|
19
19
|
* Copyright (c) 2026, VTJ.PRO All rights reserved.
|
|
20
20
|
* @name @vtj/designer
|
|
21
21
|
* @author CHC chenhuachun1549@dingtalk.com
|
|
22
|
-
* @version 0.16.
|
|
22
|
+
* @version 0.16.14
|
|
23
23
|
* @license <a href="https://vtj.pro/license.html">MIT License</a>
|
|
24
24
|
*/
|
|
25
|
-
const dr = "0.16.
|
|
25
|
+
const dr = "0.16.14", Um = {
|
|
26
26
|
width: 390,
|
|
27
27
|
height: 844
|
|
28
28
|
}, $m = {
|
|
@@ -1982,10 +1982,10 @@ function io() {
|
|
|
1982
1982
|
}
|
|
1983
1983
|
}, l = () => {
|
|
1984
1984
|
if (n && t) {
|
|
1985
|
-
const M = encodeURIComponent(location.href), { auth: R = "/login" } = t.options, { protocol: U, host: W, pathname: te } = location,
|
|
1985
|
+
const M = encodeURIComponent(location.href), { auth: R = "/login" } = t.options, { protocol: U, host: W, pathname: te } = location, ie = `${U}//${W}${te}#/auth?redirect=${M}`;
|
|
1986
1986
|
if (typeof R == "string") {
|
|
1987
|
-
const
|
|
1988
|
-
location.href = `${
|
|
1987
|
+
const ye = R.startsWith("/") ? `${n}${R}` : R;
|
|
1988
|
+
location.href = `${ye}?r=${encodeURIComponent(ie)}`;
|
|
1989
1989
|
} else
|
|
1990
1990
|
R(location.search);
|
|
1991
1991
|
}
|
|
@@ -2008,8 +2008,8 @@ function io() {
|
|
|
2008
2008
|
}, f = async (M) => {
|
|
2009
2009
|
if (o?.getTemplateById)
|
|
2010
2010
|
return await o?.getTemplateById(M);
|
|
2011
|
-
const R = t?.getData()?.token, U = `${n}/api/open/template/${R}
|
|
2012
|
-
return
|
|
2011
|
+
const R = t?.getData()?.token, U = `${n}/api/open/template/${R}`, W = await Gn(U, { query: { id: M } });
|
|
2012
|
+
return W?.data || W || null;
|
|
2013
2013
|
}, u = async (M) => {
|
|
2014
2014
|
if (o?.removeTemplate)
|
|
2015
2015
|
return await o?.removeTemplate(M);
|
|
@@ -2041,12 +2041,13 @@ function io() {
|
|
|
2041
2041
|
if (o?.publishTemplate)
|
|
2042
2042
|
return await o?.publishTemplate(M);
|
|
2043
2043
|
const R = t?.getData()?.token, U = `${n}/api/open/template/publish/${R}`, W = new FormData();
|
|
2044
|
-
for (const [
|
|
2045
|
-
|
|
2046
|
-
|
|
2044
|
+
for (const [ie, ye] of Object.entries(M))
|
|
2045
|
+
ye !== void 0 && W.append(ie, ye);
|
|
2046
|
+
const te = await window.fetch(U, {
|
|
2047
2047
|
method: "post",
|
|
2048
2048
|
body: W
|
|
2049
|
-
}).then((
|
|
2049
|
+
}).then((ie) => ie.json()).catch(() => null);
|
|
2050
|
+
return new Promise((ie, ye) => te?.success ? ie(te.data) : ye(te));
|
|
2050
2051
|
},
|
|
2051
2052
|
getTemplateById: f,
|
|
2052
2053
|
removeTemplate: u,
|
|
@@ -2101,7 +2102,7 @@ function io() {
|
|
|
2101
2102
|
chatCompletions: async (M, R, U, W) => {
|
|
2102
2103
|
if (o?.chatCompletions)
|
|
2103
2104
|
return await o?.chatCompletions(M, R, U, W);
|
|
2104
|
-
const te = t?.getData()?.token,
|
|
2105
|
+
const te = t?.getData()?.token, ie = `${n}/api/open/completions/${te}?tid=${M}&id=${R}`, ye = new AbortController(), Ge = ye.signal, ft = (yt) => {
|
|
2105
2106
|
if (!yt.startsWith("data: ")) return;
|
|
2106
2107
|
const at = yt.slice(6).trim();
|
|
2107
2108
|
if (at)
|
|
@@ -2113,15 +2114,15 @@ function io() {
|
|
|
2113
2114
|
}
|
|
2114
2115
|
U?.(lt, !1);
|
|
2115
2116
|
} catch {
|
|
2116
|
-
W?.(new Error(at)),
|
|
2117
|
+
W?.(new Error(at)), ye.abort();
|
|
2117
2118
|
}
|
|
2118
2119
|
}, je = (yt) => {
|
|
2119
2120
|
const at = yt instanceof Error && yt.name === "AbortError", lt = yt instanceof Error ? yt : new Error(String(yt));
|
|
2120
|
-
at || (W?.(lt, at),
|
|
2121
|
+
at || (W?.(lt, at), ye.abort());
|
|
2121
2122
|
};
|
|
2122
2123
|
let Je = "";
|
|
2123
2124
|
const bn = new TextDecoder();
|
|
2124
|
-
return fetch(
|
|
2125
|
+
return fetch(ie, {
|
|
2125
2126
|
method: "get",
|
|
2126
2127
|
signal: Ge
|
|
2127
2128
|
}).then(async (yt) => {
|
|
@@ -2144,7 +2145,7 @@ function io() {
|
|
|
2144
2145
|
} catch (lt) {
|
|
2145
2146
|
je(lt);
|
|
2146
2147
|
}
|
|
2147
|
-
}).catch(je), () =>
|
|
2148
|
+
}).catch(je), () => ye.abort();
|
|
2148
2149
|
},
|
|
2149
2150
|
saveChat: async (M) => {
|
|
2150
2151
|
if (o?.saveChat)
|
|
@@ -2206,26 +2207,26 @@ function io() {
|
|
|
2206
2207
|
if (o?.postImageTopic)
|
|
2207
2208
|
return await o?.postImageTopic(M);
|
|
2208
2209
|
const R = t?.getData()?.token, U = `${n}/api/open/topic/image/${R}`, W = new FormData();
|
|
2209
|
-
Object.entries(M).forEach(([
|
|
2210
|
-
W.append(
|
|
2210
|
+
Object.entries(M).forEach(([ie, ye]) => {
|
|
2211
|
+
W.append(ie, ye);
|
|
2211
2212
|
});
|
|
2212
2213
|
const te = await window.fetch(U, {
|
|
2213
2214
|
method: "post",
|
|
2214
2215
|
body: W
|
|
2215
|
-
}).then((
|
|
2216
|
+
}).then((ie) => ie.json()).catch((ie) => ie);
|
|
2216
2217
|
return te?.success || await Gt(te.message || "未知错误"), te;
|
|
2217
2218
|
},
|
|
2218
2219
|
postJsonTopic: async (M) => {
|
|
2219
2220
|
if (o?.postJsonTopic)
|
|
2220
2221
|
return await o?.postJsonTopic(M);
|
|
2221
2222
|
const R = t?.getData()?.token, U = `${n}/api/open/topic/json/${R}`, W = new FormData();
|
|
2222
|
-
Object.entries(M).forEach(([
|
|
2223
|
-
W.append(
|
|
2223
|
+
Object.entries(M).forEach(([ie, ye]) => {
|
|
2224
|
+
W.append(ie, ye);
|
|
2224
2225
|
});
|
|
2225
2226
|
const te = await window.fetch(U, {
|
|
2226
2227
|
method: "post",
|
|
2227
2228
|
body: W
|
|
2228
|
-
}).then((
|
|
2229
|
+
}).then((ie) => ie.json()).catch((ie) => ie);
|
|
2229
2230
|
return te?.success || await Gt(te.message || "未知错误"), te;
|
|
2230
2231
|
},
|
|
2231
2232
|
cancelChat: async (M) => {
|
|
@@ -2612,7 +2613,7 @@ function hv() {
|
|
|
2612
2613
|
postJsonTopic: k,
|
|
2613
2614
|
cancelChat: x,
|
|
2614
2615
|
getSkills: w
|
|
2615
|
-
} = io(), T = "CHAT_HIDE_CODE", S = D(!1), O = D(!1), C = D(!0), I = D(!1), B = fv("LLM", n), $ = D([]), G = D([]), K = D(null), F = D(null), Q = D(), M = D(), R = D(!!an.get(T, { type: "local" })), U = D(""), W = D(), te = V(() => G.value.some((J) => J.status === "Pending")),
|
|
2616
|
+
} = io(), T = "CHAT_HIDE_CODE", S = D(!1), O = D(!1), C = D(!0), I = D(!1), B = fv("LLM", n), $ = D([]), G = D([]), K = D(null), F = D(null), Q = D(), M = D(), R = D(!!an.get(T, { type: "local" })), U = D(""), W = D(), te = V(() => G.value.some((J) => J.status === "Pending")), ie = V(() => W.value ? W.value.mode === 2 && !W.value.invited : !0), { height: ye } = Lo(Q), {
|
|
2616
2617
|
processOutput: Ge,
|
|
2617
2618
|
shouldNext: ft,
|
|
2618
2619
|
createNextPrompt: je,
|
|
@@ -2637,9 +2638,9 @@ function hv() {
|
|
|
2637
2638
|
O.value = !0;
|
|
2638
2639
|
const oe = await gv(J, t), ue = await o(oe).catch(() => null);
|
|
2639
2640
|
if (O.value = !1, ue && ue.success) {
|
|
2640
|
-
const { topic: Ce, chat:
|
|
2641
|
-
|
|
2642
|
-
const _t = sn(
|
|
2641
|
+
const { topic: Ce, chat: Ee } = ue.data;
|
|
2642
|
+
Ee.type = Ce.type, G.value = [], $.value.unshift(Ce), C.value = !1, K.value = Ce;
|
|
2643
|
+
const _t = sn(Ee);
|
|
2643
2644
|
G.value.push(_t), Qe(_t, async (ut) => {
|
|
2644
2645
|
if (J.auto && await Me(ut), ft(ut))
|
|
2645
2646
|
return St({
|
|
@@ -2655,9 +2656,9 @@ function hv() {
|
|
|
2655
2656
|
O.value = !0;
|
|
2656
2657
|
const oe = await Wl(J, t), ue = await b(oe);
|
|
2657
2658
|
if (O.value = !1, ue && ue.success) {
|
|
2658
|
-
const { topic: Ce, chat:
|
|
2659
|
-
G.value = [], $.value.unshift(Ce), C.value = !1, K.value = Ce, Ce.image && (
|
|
2660
|
-
const _t = sn(
|
|
2659
|
+
const { topic: Ce, chat: Ee } = ue.data;
|
|
2660
|
+
G.value = [], $.value.unshift(Ce), C.value = !1, K.value = Ce, Ce.image && (Ee.image = y(Ce.image)), Ee.type = Ce.type;
|
|
2661
|
+
const _t = sn(Ee);
|
|
2661
2662
|
G.value.push(_t), Qe(_t, async (ut) => {
|
|
2662
2663
|
if (ut.status === "Success" && J.auto && await Me(ut), ft(ut))
|
|
2663
2664
|
return St({
|
|
@@ -2674,9 +2675,9 @@ function hv() {
|
|
|
2674
2675
|
O.value = !0;
|
|
2675
2676
|
const oe = await Wl(J, t), ue = await k(oe);
|
|
2676
2677
|
if (O.value = !1, ue && ue.success) {
|
|
2677
|
-
const { topic: Ce, chat:
|
|
2678
|
-
G.value = [], $.value.unshift(Ce), C.value = !1, K.value = Ce, Ce.image && (
|
|
2679
|
-
const _t = sn(
|
|
2678
|
+
const { topic: Ce, chat: Ee } = ue.data;
|
|
2679
|
+
G.value = [], $.value.unshift(Ce), C.value = !1, K.value = Ce, Ce.image && (Ee.image = y(Ce.image)), Ce.json && (Ee.json = _(Ce.json)), Ee.type = Ce.type, Ee.dataType = Ce.dataType;
|
|
2680
|
+
const _t = sn(Ee);
|
|
2680
2681
|
G.value.push(_t), Qe(_t, async (ut) => {
|
|
2681
2682
|
if (ut.status === "Success" && J.auto && await Me(ut), ft(ut))
|
|
2682
2683
|
return St({
|
|
@@ -2700,12 +2701,12 @@ function hv() {
|
|
|
2700
2701
|
}, ue = await a(oe).catch(() => null);
|
|
2701
2702
|
if (O.value = !1, ue && ue.success) {
|
|
2702
2703
|
const Ce = sn(ue.data);
|
|
2703
|
-
G.value.push(Ce), Qe(Ce, async (
|
|
2704
|
-
if (
|
|
2704
|
+
G.value.push(Ce), Qe(Ce, async (Ee) => {
|
|
2705
|
+
if (Ee.status === "Success" && J.auto && await Me(Ee), ft(Ee))
|
|
2705
2706
|
return St({
|
|
2706
2707
|
...J,
|
|
2707
|
-
toolCallId:
|
|
2708
|
-
prompt: je(
|
|
2708
|
+
toolCallId: Ee.toolCallId,
|
|
2709
|
+
prompt: je(Ee)
|
|
2709
2710
|
});
|
|
2710
2711
|
}), await Ie(0), M.value && M.value.scrollToBottom();
|
|
2711
2712
|
} else
|
|
@@ -2721,43 +2722,43 @@ function hv() {
|
|
|
2721
2722
|
return Qo = await c(
|
|
2722
2723
|
J.topicId,
|
|
2723
2724
|
J.id,
|
|
2724
|
-
async (
|
|
2725
|
-
const Ko =
|
|
2725
|
+
async (Ee, _t) => {
|
|
2726
|
+
const Ko = Ee?.choices?.[0]?.delta;
|
|
2726
2727
|
if (Ko) {
|
|
2727
2728
|
const Co = Ko.content || "", Ar = Ko.reasoning_content || "";
|
|
2728
2729
|
Co && (J.content += Co), Ar && (J.reasoning += Ar, ue += Date.now() - Ce);
|
|
2729
2730
|
}
|
|
2730
|
-
if (
|
|
2731
|
+
if (Ee?.usage && (J.tokens = (J.tokens || 0) + (Ee.usage.completion_tokens || 0)), _t) {
|
|
2731
2732
|
J.status = "Success", J.thinking = Math.ceil(ue / 1e3);
|
|
2732
2733
|
const Co = await Ge(J);
|
|
2733
2734
|
await d(J), oe && oe(Co), t.state.streaming = !1;
|
|
2734
2735
|
}
|
|
2735
2736
|
},
|
|
2736
|
-
async (
|
|
2737
|
-
const _t =
|
|
2738
|
-
_t === "network error" ? J.message = "网络异常,请稍后再试" : J.message = _t || "请求失败,请稍后再试", J.status = "Failed", console.warn("completions error",
|
|
2737
|
+
async (Ee) => {
|
|
2738
|
+
const _t = Ee.message || Ee.name;
|
|
2739
|
+
_t === "network error" ? J.message = "网络异常,请稍后再试" : J.message = _t || "请求失败,请稍后再试", J.status = "Failed", console.warn("completions error", Ee), Ee?.message && ze(Ee.message, "生成错误"), await d(J), oe && oe(J), t.state.streaming = !1;
|
|
2739
2740
|
}
|
|
2740
2741
|
), Qo;
|
|
2741
2742
|
}, xt = async (J) => {
|
|
2742
2743
|
if (!K.value || !F.value || !J) return;
|
|
2743
|
-
const { name: oe = "", id: ue = "" } = t.current.value || {}, Ce = t.project.value?.toDsl(),
|
|
2744
|
+
const { name: oe = "", id: ue = "" } = t.current.value || {}, Ce = t.project.value?.toDsl(), Ee = await t.service.parseVue(Ce, {
|
|
2744
2745
|
id: ue,
|
|
2745
2746
|
name: oe,
|
|
2746
2747
|
source: J
|
|
2747
2748
|
}).catch((_t) => _t);
|
|
2748
|
-
if (Array.isArray(
|
|
2749
|
-
return Promise.reject(
|
|
2749
|
+
if (Array.isArray(Ee))
|
|
2750
|
+
return Promise.reject(Ee);
|
|
2750
2751
|
try {
|
|
2751
|
-
F.value.dsl = typeof
|
|
2752
|
+
F.value.dsl = typeof Ee == "object" ? Ee : JSON.parse(Ee);
|
|
2752
2753
|
} catch {
|
|
2753
2754
|
F.value.dsl = null;
|
|
2754
2755
|
}
|
|
2755
|
-
return await d(F.value),
|
|
2756
|
+
return await d(F.value), Ee;
|
|
2756
2757
|
}, Go = () => {
|
|
2757
2758
|
M.value && !C.value && M.value.scrollToTop();
|
|
2758
2759
|
}, uo = () => {
|
|
2759
2760
|
M.value && !C.value && M.value.scrollToBottom();
|
|
2760
|
-
},
|
|
2761
|
+
}, we = () => {
|
|
2761
2762
|
C.value || te.value || G.value.map((J) => {
|
|
2762
2763
|
J.collapsed = !1;
|
|
2763
2764
|
});
|
|
@@ -2799,7 +2800,7 @@ function hv() {
|
|
|
2799
2800
|
}, ne = () => {
|
|
2800
2801
|
C.value || (R.value = !R.value, an.save(T, R.value, { type: "local" }));
|
|
2801
2802
|
};
|
|
2802
|
-
return ao(at), le(
|
|
2803
|
+
return ao(at), le(ye, () => {
|
|
2803
2804
|
M.value && te.value && M.value.autoScrollToBottom();
|
|
2804
2805
|
}), {
|
|
2805
2806
|
engine: t,
|
|
@@ -2827,7 +2828,7 @@ function hv() {
|
|
|
2827
2828
|
showDetail: I,
|
|
2828
2829
|
scrollToTop: Go,
|
|
2829
2830
|
scrollToBottom: uo,
|
|
2830
|
-
expandAll:
|
|
2831
|
+
expandAll: we,
|
|
2831
2832
|
collapseAll: po,
|
|
2832
2833
|
isPending: te,
|
|
2833
2834
|
toggleHideCode: ne,
|
|
@@ -2837,7 +2838,7 @@ function hv() {
|
|
|
2837
2838
|
promptText: U,
|
|
2838
2839
|
getHotTopics: f,
|
|
2839
2840
|
settings: W,
|
|
2840
|
-
inputDisabled:
|
|
2841
|
+
inputDisabled: ie,
|
|
2841
2842
|
createOrder: p,
|
|
2842
2843
|
cancelOrder: g,
|
|
2843
2844
|
getOrder: m,
|
|
@@ -3348,8 +3349,8 @@ function Yv(e, t) {
|
|
|
3348
3349
|
try {
|
|
3349
3350
|
if (t.onTimeoutError?.call(m, C, I) !== !0)
|
|
3350
3351
|
throw new Error(`[birpc] timeout on calling "${C}"`);
|
|
3351
|
-
} catch (
|
|
3352
|
-
M(
|
|
3352
|
+
} catch (ie) {
|
|
3353
|
+
M(ie);
|
|
3353
3354
|
}
|
|
3354
3355
|
p.delete(R);
|
|
3355
3356
|
}, f), typeof U == "object" && (U = U.unref?.())), p.set(R, { resolve: Q, reject: M, timeoutId: U, method: C }), await K(te), F;
|
|
@@ -6606,22 +6607,22 @@ var $y = /* @__PURE__ */ cu(((e, t) => {
|
|
|
6606
6607
|
"(",
|
|
6607
6608
|
")"
|
|
6608
6609
|
].join(""), u = function(_, b) {
|
|
6609
|
-
var k = "-", x = "", w = "", T = !0, S = {}, O, C, I, B, $, G, K, F, Q, M, R, U, W, te,
|
|
6610
|
+
var k = "-", x = "", w = "", T = !0, S = {}, O, C, I, B, $, G, K, F, Q, M, R, U, W, te, ie = "";
|
|
6610
6611
|
if (typeof _ != "string") return "";
|
|
6611
6612
|
if (typeof b == "string" && (k = b), K = l.en, F = a.en, typeof b == "object") {
|
|
6612
|
-
O = b.maintainCase || !1, S = b.custom && typeof b.custom == "object" ? b.custom : S, I = +b.truncate > 1 && b.truncate || !1, B = b.uric || !1, $ = b.uricNoSlash || !1, G = b.mark || !1, T = !(b.symbols === !1 || b.lang === !1), k = b.separator || k, B && (
|
|
6613
|
-
S[
|
|
6614
|
-
}), C = !0) : C = !!b.titleCase, b.custom && typeof b.custom.length == "number" && Array.prototype.toString.call(b.custom) && b.custom.forEach(function(
|
|
6615
|
-
S[
|
|
6616
|
-
}), Object.keys(S).forEach(function(
|
|
6613
|
+
O = b.maintainCase || !1, S = b.custom && typeof b.custom == "object" ? b.custom : S, I = +b.truncate > 1 && b.truncate || !1, B = b.uric || !1, $ = b.uricNoSlash || !1, G = b.mark || !1, T = !(b.symbols === !1 || b.lang === !1), k = b.separator || k, B && (ie += c), $ && (ie += d), G && (ie += f), K = b.lang && l[b.lang] && T ? l[b.lang] : T ? l.en : {}, F = b.lang && a[b.lang] ? a[b.lang] : b.lang === !1 || b.lang === !0 ? {} : a.en, b.titleCase && typeof b.titleCase.length == "number" && Array.prototype.toString.call(b.titleCase) ? (b.titleCase.forEach(function(ye) {
|
|
6614
|
+
S[ye + ""] = ye + "";
|
|
6615
|
+
}), C = !0) : C = !!b.titleCase, b.custom && typeof b.custom.length == "number" && Array.prototype.toString.call(b.custom) && b.custom.forEach(function(ye) {
|
|
6616
|
+
S[ye + ""] = ye + "";
|
|
6617
|
+
}), Object.keys(S).forEach(function(ye) {
|
|
6617
6618
|
var Ge;
|
|
6618
|
-
|
|
6619
|
+
ye.length > 1 ? Ge = new RegExp("\\b" + g(ye) + "\\b", "gi") : Ge = new RegExp(g(ye), "gi"), _ = _.replace(Ge, S[ye]);
|
|
6619
6620
|
});
|
|
6620
|
-
for (R in S)
|
|
6621
|
+
for (R in S) ie += R;
|
|
6621
6622
|
}
|
|
6622
|
-
for (
|
|
6623
|
-
R = _[M], m(R, S) ? W = !1 : F[R] ? (R = W && F[R].match(/[A-Za-z0-9]/) ? " " + F[R] : F[R], W = !1) : R in o ? (M + 1 < U && s.indexOf(_[M + 1]) >= 0 ? (w += R, R = "") : te === !0 ? (R = r[w] + o[R], w = "") : R = W && o[R].match(/[A-Za-z0-9]/) ? " " + o[R] : o[R], W = !1, te = !1) : R in r ? (w += R, R = "", M === U - 1 && (R = r[w]), te = !0) : K[R] && !(B && c.indexOf(R) !== -1) && !($ && d.indexOf(R) !== -1) ? (R = W || x.substr(-1).match(/[A-Za-z0-9]/) ? k + K[R] : K[R], R += _[M + 1] !== void 0 && _[M + 1].match(/[A-Za-z0-9]/) ? k : "", W = !0) : (te === !0 ? (R = r[w] + R, w = "", te = !1) : W && (/[A-Za-z0-9]/.test(R) || x.substr(-1).match(/A-Za-z0-9]/)) && (R = " " + R), W = !1), x += R.replace(new RegExp("[^\\w\\s" +
|
|
6624
|
-
return C && (x = x.replace(/(\w)(\S*)/g, function(
|
|
6623
|
+
for (ie += k, ie = g(ie), _ = _.replace(/(^\s+|\s+$)/g, ""), W = !1, te = !1, M = 0, U = _.length; M < U; M++)
|
|
6624
|
+
R = _[M], m(R, S) ? W = !1 : F[R] ? (R = W && F[R].match(/[A-Za-z0-9]/) ? " " + F[R] : F[R], W = !1) : R in o ? (M + 1 < U && s.indexOf(_[M + 1]) >= 0 ? (w += R, R = "") : te === !0 ? (R = r[w] + o[R], w = "") : R = W && o[R].match(/[A-Za-z0-9]/) ? " " + o[R] : o[R], W = !1, te = !1) : R in r ? (w += R, R = "", M === U - 1 && (R = r[w]), te = !0) : K[R] && !(B && c.indexOf(R) !== -1) && !($ && d.indexOf(R) !== -1) ? (R = W || x.substr(-1).match(/[A-Za-z0-9]/) ? k + K[R] : K[R], R += _[M + 1] !== void 0 && _[M + 1].match(/[A-Za-z0-9]/) ? k : "", W = !0) : (te === !0 ? (R = r[w] + R, w = "", te = !1) : W && (/[A-Za-z0-9]/.test(R) || x.substr(-1).match(/A-Za-z0-9]/)) && (R = " " + R), W = !1), x += R.replace(new RegExp("[^\\w\\s" + ie + "_-]", "g"), k);
|
|
6625
|
+
return C && (x = x.replace(/(\w)(\S*)/g, function(ye, Ge, ft) {
|
|
6625
6626
|
var je = Ge.toUpperCase() + (ft !== null ? ft : "");
|
|
6626
6627
|
return Object.keys(S).indexOf(je.toLowerCase()) < 0 ? je : je.toLowerCase();
|
|
6627
6628
|
})), x = x.replace(/\s+/g, k).replace(new RegExp("\\" + k + "+", "g"), k).replace(new RegExp("(^\\" + k + "+|\\" + k + "+$)", "g"), ""), I && x.length > I && (Q = x.charAt(I) === k, x = x.slice(0, I), Q || (x = x.slice(0, x.lastIndexOf(k)))), !O && !C && (x = x.toLowerCase()), x;
|
|
@@ -8300,7 +8301,7 @@ const Mw = "data:image/svg+xml,%3csvg%20width='200'%20height='200'%20xmlns='http
|
|
|
8300
8301
|
n.link && (location.href = n.link);
|
|
8301
8302
|
};
|
|
8302
8303
|
return (r, a) => (h(), j("div", {
|
|
8303
|
-
class:
|
|
8304
|
+
class: _e(["v-logo-widget", { "is-pointer": !!n.link }]),
|
|
8304
8305
|
onClick: s
|
|
8305
8306
|
}, [
|
|
8306
8307
|
o.value ? (h(), j("img", {
|
|
@@ -8972,7 +8973,7 @@ const Mw = "data:image/svg+xml,%3csvg%20width='200'%20height='200'%20xmlns='http
|
|
|
8972
8973
|
(h(!0), j(Z, null, pe(c.value, (y) => (h(), A(i($t), {
|
|
8973
8974
|
icon: y[1],
|
|
8974
8975
|
onClick: (_) => d(y[0]),
|
|
8975
|
-
class:
|
|
8976
|
+
class: _e({ "is-active": r.value === y[0] })
|
|
8976
8977
|
}, null, 8, ["icon", "onClick", "class"]))), 256)),
|
|
8977
8978
|
c.value.length === 0 ? (h(), A(i(rt), { key: 0 })) : L("", !0)
|
|
8978
8979
|
])
|
|
@@ -8983,7 +8984,7 @@ const Mw = "data:image/svg+xml,%3csvg%20width='200'%20height='200'%20xmlns='http
|
|
|
8983
8984
|
]));
|
|
8984
8985
|
}
|
|
8985
8986
|
}), Ze = pp({
|
|
8986
|
-
loader: () => import("./Editor-
|
|
8987
|
+
loader: () => import("./Editor-D1EJuPe6.js"),
|
|
8987
8988
|
loadingComponent: H({
|
|
8988
8989
|
render() {
|
|
8989
8990
|
return eo("div", "正在拼命加载...");
|
|
@@ -9350,7 +9351,7 @@ const Mw = "data:image/svg+xml,%3csvg%20width='200'%20height='200'%20xmlns='http
|
|
|
9350
9351
|
}), (w, T) => (h(), A(i(ys), {
|
|
9351
9352
|
ref_key: "panelRef",
|
|
9352
9353
|
ref: a,
|
|
9353
|
-
class:
|
|
9354
|
+
class: _e(["v-panel", l.value]),
|
|
9354
9355
|
border: !1,
|
|
9355
9356
|
header: y.value,
|
|
9356
9357
|
fit: ""
|
|
@@ -9527,7 +9528,7 @@ const Mw = "data:image/svg+xml,%3csvg%20width='200'%20height='200'%20xmlns='http
|
|
|
9527
9528
|
N("span", null, [
|
|
9528
9529
|
n.checkable ? (h(), A(i(Ka), {
|
|
9529
9530
|
key: 0,
|
|
9530
|
-
class:
|
|
9531
|
+
class: _e({
|
|
9531
9532
|
"v-tabs__checked": !0,
|
|
9532
9533
|
"is-checked": f.checked
|
|
9533
9534
|
})
|
|
@@ -9666,7 +9667,7 @@ const Mw = "data:image/svg+xml,%3csvg%20width='200'%20height='200'%20xmlns='http
|
|
|
9666
9667
|
r.value = !!p;
|
|
9667
9668
|
}
|
|
9668
9669
|
), (p, g) => (h(), A(i(Oe), {
|
|
9669
|
-
class:
|
|
9670
|
+
class: _e(["v-item", c.value]),
|
|
9670
9671
|
justify: "space-between",
|
|
9671
9672
|
align: "center",
|
|
9672
9673
|
onClick: d
|
|
@@ -9698,7 +9699,7 @@ const Mw = "data:image/svg+xml,%3csvg%20width='200'%20height='200'%20xmlns='http
|
|
|
9698
9699
|
N("span", pE, se(e.title), 1),
|
|
9699
9700
|
e.subtitle ? (h(), j("span", {
|
|
9700
9701
|
key: 0,
|
|
9701
|
-
class:
|
|
9702
|
+
class: _e(["v-item__subtitle", o.subtitleCls])
|
|
9702
9703
|
}, se(e.subtitle), 3)) : L("", !0)
|
|
9703
9704
|
]),
|
|
9704
9705
|
o.textTags ? (h(), j("div", fE, [
|
|
@@ -9812,7 +9813,7 @@ const Mw = "data:image/svg+xml,%3csvg%20width='200'%20height='200'%20xmlns='http
|
|
|
9812
9813
|
o("dragend", n);
|
|
9813
9814
|
};
|
|
9814
9815
|
return (g, m) => (h(), j("div", {
|
|
9815
|
-
class:
|
|
9816
|
+
class: _e(["v-box", f.value]),
|
|
9816
9817
|
draggable: e.draggable,
|
|
9817
9818
|
onDragstart: u,
|
|
9818
9819
|
onDragend: p
|
|
@@ -9857,7 +9858,7 @@ const Mw = "data:image/svg+xml,%3csvg%20width='200'%20height='200'%20xmlns='http
|
|
|
9857
9858
|
})) : L("", !0),
|
|
9858
9859
|
n.tag ? (h(), j("span", {
|
|
9859
9860
|
key: 1,
|
|
9860
|
-
class:
|
|
9861
|
+
class: _e(["v-box__tag", { [`is-${n.tagType}`]: !!n.tagType }])
|
|
9861
9862
|
}, se(n.tag), 3)) : L("", !0)
|
|
9862
9863
|
], 42, gE));
|
|
9863
9864
|
}
|
|
@@ -10282,7 +10283,7 @@ const Mw = "data:image/svg+xml,%3csvg%20width='200'%20height='200'%20xmlns='http
|
|
|
10282
10283
|
}, {
|
|
10283
10284
|
default: E(() => [
|
|
10284
10285
|
(h(!0), j(Z, null, pe(n.slots, (f, u) => (h(), A(i(Oe), {
|
|
10285
|
-
class:
|
|
10286
|
+
class: _e(["v-slots-picker__item", { "is-active": f.name === s.value?.name }]),
|
|
10286
10287
|
grow: "",
|
|
10287
10288
|
flex: !1,
|
|
10288
10289
|
onClick: (p) => a(f)
|
|
@@ -10330,7 +10331,7 @@ const Mw = "data:image/svg+xml,%3csvg%20width='200'%20height='200'%20xmlns='http
|
|
|
10330
10331
|
return t({
|
|
10331
10332
|
scale: r
|
|
10332
10333
|
}), (l, c) => (h(), j("div", {
|
|
10333
|
-
class:
|
|
10334
|
+
class: _e(["v-viewport", o.value]),
|
|
10334
10335
|
style: Kn(a.value)
|
|
10335
10336
|
}, [
|
|
10336
10337
|
Ht(l.$slots, "default")
|
|
@@ -10375,7 +10376,7 @@ const Mw = "data:image/svg+xml,%3csvg%20width='200'%20height='200'%20xmlns='http
|
|
|
10375
10376
|
N("span", null, [
|
|
10376
10377
|
n.checkable ? (h(), A(i(Ka), {
|
|
10377
10378
|
key: 0,
|
|
10378
|
-
class:
|
|
10379
|
+
class: _e({
|
|
10379
10380
|
"v-tabs__checked": !0,
|
|
10380
10381
|
"is-checked": c.checked
|
|
10381
10382
|
})
|
|
@@ -10447,7 +10448,7 @@ const Mw = "data:image/svg+xml,%3csvg%20width='200'%20height='200'%20xmlns='http
|
|
|
10447
10448
|
}, {
|
|
10448
10449
|
default: E(({ data: x, node: w }) => [
|
|
10449
10450
|
v(i(kt), {
|
|
10450
|
-
class:
|
|
10451
|
+
class: _e(["v-pages-widget__item", { "is-layout": x.layout }]),
|
|
10451
10452
|
icon: i(pa)[x.icon],
|
|
10452
10453
|
title: x.title,
|
|
10453
10454
|
subtitle: x.name,
|
|
@@ -11110,7 +11111,7 @@ const Mw = "data:image/svg+xml,%3csvg%20width='200'%20height='200'%20xmlns='http
|
|
|
11110
11111
|
}, {
|
|
11111
11112
|
default: E(({ data: C, node: I }) => [
|
|
11112
11113
|
v(i(kt), {
|
|
11113
|
-
class:
|
|
11114
|
+
class: _e(["v-outline-widget__item", {
|
|
11114
11115
|
"is-locked": C.model.locked,
|
|
11115
11116
|
"is-invisible": C.model.invisible,
|
|
11116
11117
|
"is-dragging": C.dragging,
|
|
@@ -12695,63 +12696,63 @@ const oa = pd, Ci = Qn, Ai = Symbol("nomatch"), V0 = 7, Ed = function(e) {
|
|
|
12695
12696
|
return U.split(/\s+/).find((te) => c(te) || I(te));
|
|
12696
12697
|
}
|
|
12697
12698
|
function f(R, U, W) {
|
|
12698
|
-
let te = "",
|
|
12699
|
-
typeof U == "object" ? (te = R, W = U.ignoreIllegals,
|
|
12700
|
-
https://github.com/highlightjs/highlight.js/issues/2277`),
|
|
12701
|
-
const
|
|
12699
|
+
let te = "", ie = "";
|
|
12700
|
+
typeof U == "object" ? (te = R, W = U.ignoreIllegals, ie = U.language) : (Oo("10.7.0", "highlight(lang, code, ...args) has been deprecated."), Oo("10.7.0", `Please use highlight(code, options) instead.
|
|
12701
|
+
https://github.com/highlightjs/highlight.js/issues/2277`), ie = R, te = U), W === void 0 && (W = !0);
|
|
12702
|
+
const ye = {
|
|
12702
12703
|
code: te,
|
|
12703
|
-
language:
|
|
12704
|
+
language: ie
|
|
12704
12705
|
};
|
|
12705
|
-
Q("before:highlight",
|
|
12706
|
-
const Ge =
|
|
12707
|
-
return Ge.code =
|
|
12706
|
+
Q("before:highlight", ye);
|
|
12707
|
+
const Ge = ye.result ? ye.result : u(ye.language, ye.code, W);
|
|
12708
|
+
return Ge.code = ye.code, Q("after:highlight", Ge), Ge;
|
|
12708
12709
|
}
|
|
12709
12710
|
function u(R, U, W, te) {
|
|
12710
|
-
const
|
|
12711
|
-
function
|
|
12711
|
+
const ie = /* @__PURE__ */ Object.create(null);
|
|
12712
|
+
function ye(ne, J) {
|
|
12712
12713
|
return ne.keywords[J];
|
|
12713
12714
|
}
|
|
12714
12715
|
function Ge() {
|
|
12715
|
-
if (!
|
|
12716
|
+
if (!we.keywords) {
|
|
12716
12717
|
gt.addText(Me);
|
|
12717
12718
|
return;
|
|
12718
12719
|
}
|
|
12719
12720
|
let ne = 0;
|
|
12720
|
-
|
|
12721
|
-
let J =
|
|
12721
|
+
we.keywordPatternRe.lastIndex = 0;
|
|
12722
|
+
let J = we.keywordPatternRe.exec(Me), oe = "";
|
|
12722
12723
|
for (; J; ) {
|
|
12723
12724
|
oe += Me.substring(ne, J.index);
|
|
12724
|
-
const ue = xt.case_insensitive ? J[0].toLowerCase() : J[0], Ce =
|
|
12725
|
+
const ue = xt.case_insensitive ? J[0].toLowerCase() : J[0], Ce = ye(we, ue);
|
|
12725
12726
|
if (Ce) {
|
|
12726
|
-
const [
|
|
12727
|
-
if (gt.addText(oe), oe = "",
|
|
12727
|
+
const [Ee, _t] = Ce;
|
|
12728
|
+
if (gt.addText(oe), oe = "", ie[ue] = (ie[ue] || 0) + 1, ie[ue] <= V0 && (In += _t), Ee.startsWith("_"))
|
|
12728
12729
|
oe += J[0];
|
|
12729
12730
|
else {
|
|
12730
|
-
const ut = xt.classNameAliases[
|
|
12731
|
+
const ut = xt.classNameAliases[Ee] || Ee;
|
|
12731
12732
|
Je(J[0], ut);
|
|
12732
12733
|
}
|
|
12733
12734
|
} else
|
|
12734
12735
|
oe += J[0];
|
|
12735
|
-
ne =
|
|
12736
|
+
ne = we.keywordPatternRe.lastIndex, J = we.keywordPatternRe.exec(Me);
|
|
12736
12737
|
}
|
|
12737
12738
|
oe += Me.substring(ne), gt.addText(oe);
|
|
12738
12739
|
}
|
|
12739
12740
|
function ft() {
|
|
12740
12741
|
if (Me === "") return;
|
|
12741
12742
|
let ne = null;
|
|
12742
|
-
if (typeof
|
|
12743
|
-
if (!t[
|
|
12743
|
+
if (typeof we.subLanguage == "string") {
|
|
12744
|
+
if (!t[we.subLanguage]) {
|
|
12744
12745
|
gt.addText(Me);
|
|
12745
12746
|
return;
|
|
12746
12747
|
}
|
|
12747
|
-
ne = u(
|
|
12748
|
+
ne = u(we.subLanguage, Me, !0, po[we.subLanguage]), po[we.subLanguage] = /** @type {CompiledMode} */
|
|
12748
12749
|
ne._top;
|
|
12749
12750
|
} else
|
|
12750
|
-
ne = g(Me,
|
|
12751
|
-
|
|
12751
|
+
ne = g(Me, we.subLanguage.length ? we.subLanguage : null);
|
|
12752
|
+
we.relevance > 0 && (In += ne.relevance), gt.__addSublanguage(ne._emitter, ne.language);
|
|
12752
12753
|
}
|
|
12753
12754
|
function je() {
|
|
12754
|
-
|
|
12755
|
+
we.subLanguage != null ? ft() : Ge(), Me = "";
|
|
12755
12756
|
}
|
|
12756
12757
|
function Je(ne, J) {
|
|
12757
12758
|
ne !== "" && (gt.startScope(J), gt.addText(ne), gt.endScope());
|
|
@@ -12764,12 +12765,12 @@ https://github.com/highlightjs/highlight.js/issues/2277`), ce = R, te = U), W ==
|
|
|
12764
12765
|
oe++;
|
|
12765
12766
|
continue;
|
|
12766
12767
|
}
|
|
12767
|
-
const Ce = xt.classNameAliases[ne[oe]] || ne[oe],
|
|
12768
|
-
Ce ? Je(
|
|
12768
|
+
const Ce = xt.classNameAliases[ne[oe]] || ne[oe], Ee = J[oe];
|
|
12769
|
+
Ce ? Je(Ee, Ce) : (Me = Ee, Ge(), Me = ""), oe++;
|
|
12769
12770
|
}
|
|
12770
12771
|
}
|
|
12771
12772
|
function yt(ne, J) {
|
|
12772
|
-
return ne.scope && typeof ne.scope == "string" && gt.openNode(xt.classNameAliases[ne.scope] || ne.scope), ne.beginScope && (ne.beginScope._wrap ? (Je(Me, xt.classNameAliases[ne.beginScope._wrap] || ne.beginScope._wrap), Me = "") : ne.beginScope._multi && (bn(ne.beginScope, J), Me = "")),
|
|
12773
|
+
return ne.scope && typeof ne.scope == "string" && gt.openNode(xt.classNameAliases[ne.scope] || ne.scope), ne.beginScope && (ne.beginScope._wrap ? (Je(Me, xt.classNameAliases[ne.beginScope._wrap] || ne.beginScope._wrap), Me = "") : ne.beginScope._multi && (bn(ne.beginScope, J), Me = "")), we = Object.create(ne, { parent: { value: we } }), we;
|
|
12773
12774
|
}
|
|
12774
12775
|
function at(ne, J, oe) {
|
|
12775
12776
|
let ue = QE(ne.endRe, oe);
|
|
@@ -12788,29 +12789,29 @@ https://github.com/highlightjs/highlight.js/issues/2277`), ce = R, te = U), W ==
|
|
|
12788
12789
|
return at(ne.parent, J, oe);
|
|
12789
12790
|
}
|
|
12790
12791
|
function lt(ne) {
|
|
12791
|
-
return
|
|
12792
|
+
return we.matcher.regexIndex === 0 ? (Me += ne[0], 1) : (Wt = !0, 0);
|
|
12792
12793
|
}
|
|
12793
12794
|
function On(ne) {
|
|
12794
12795
|
const J = ne[0], oe = ne.rule, ue = new wi(oe), Ce = [oe.__beforeBegin, oe["on:begin"]];
|
|
12795
|
-
for (const
|
|
12796
|
-
if (
|
|
12796
|
+
for (const Ee of Ce)
|
|
12797
|
+
if (Ee && (Ee(ne, ue), ue.isMatchIgnored))
|
|
12797
12798
|
return lt(J);
|
|
12798
12799
|
return oe.skip ? Me += J : (oe.excludeBegin && (Me += J), je(), !oe.returnBegin && !oe.excludeBegin && (Me = J)), yt(oe, ne), oe.returnBegin ? 0 : J.length;
|
|
12799
12800
|
}
|
|
12800
12801
|
function yn(ne) {
|
|
12801
|
-
const J = ne[0], oe = U.substring(ne.index), ue = at(
|
|
12802
|
+
const J = ne[0], oe = U.substring(ne.index), ue = at(we, ne, oe);
|
|
12802
12803
|
if (!ue)
|
|
12803
12804
|
return Ai;
|
|
12804
|
-
const Ce =
|
|
12805
|
-
|
|
12805
|
+
const Ce = we;
|
|
12806
|
+
we.endScope && we.endScope._wrap ? (je(), Je(J, we.endScope._wrap)) : we.endScope && we.endScope._multi ? (je(), bn(we.endScope, ne)) : Ce.skip ? Me += J : (Ce.returnEnd || Ce.excludeEnd || (Me += J), je(), Ce.excludeEnd && (Me = J));
|
|
12806
12807
|
do
|
|
12807
|
-
|
|
12808
|
-
while (
|
|
12808
|
+
we.scope && gt.closeNode(), !we.skip && !we.subLanguage && (In += we.relevance), we = we.parent;
|
|
12809
|
+
while (we !== ue.parent);
|
|
12809
12810
|
return ue.starts && yt(ue.starts, ne), Ce.returnEnd ? 0 : J.length;
|
|
12810
12811
|
}
|
|
12811
12812
|
function St() {
|
|
12812
12813
|
const ne = [];
|
|
12813
|
-
for (let J =
|
|
12814
|
+
for (let J = we; J !== xt; J = J.parent)
|
|
12814
12815
|
J.scope && ne.unshift(J.scope);
|
|
12815
12816
|
ne.forEach((J) => gt.openNode(J));
|
|
12816
12817
|
}
|
|
@@ -12829,8 +12830,8 @@ https://github.com/highlightjs/highlight.js/issues/2277`), ce = R, te = U), W ==
|
|
|
12829
12830
|
if (It = J, J.type === "begin")
|
|
12830
12831
|
return On(J);
|
|
12831
12832
|
if (J.type === "illegal" && !W) {
|
|
12832
|
-
const ue = new Error('Illegal lexeme "' + oe + '" for mode "' + (
|
|
12833
|
-
throw ue.mode =
|
|
12833
|
+
const ue = new Error('Illegal lexeme "' + oe + '" for mode "' + (we.scope || "<unnamed>") + '"');
|
|
12834
|
+
throw ue.mode = we, ue;
|
|
12834
12835
|
} else if (J.type === "end") {
|
|
12835
12836
|
const ue = yn(J);
|
|
12836
12837
|
if (ue !== Ai)
|
|
@@ -12846,7 +12847,7 @@ https://github.com/highlightjs/highlight.js/issues/2277`), ce = R, te = U), W ==
|
|
|
12846
12847
|
if (!xt)
|
|
12847
12848
|
throw _o(r.replace("{}", R)), new Error('Unknown language: "' + R + '"');
|
|
12848
12849
|
const Go = I0(xt);
|
|
12849
|
-
let uo = "",
|
|
12850
|
+
let uo = "", we = te || Go;
|
|
12850
12851
|
const po = {}, gt = new l.__emitter(l);
|
|
12851
12852
|
St();
|
|
12852
12853
|
let Me = "", In = 0, Rt = 0, Bn = 0, Wt = !1;
|
|
@@ -12854,9 +12855,9 @@ https://github.com/highlightjs/highlight.js/issues/2277`), ce = R, te = U), W ==
|
|
|
12854
12855
|
if (xt.__emitTokens)
|
|
12855
12856
|
xt.__emitTokens(U, gt);
|
|
12856
12857
|
else {
|
|
12857
|
-
for (
|
|
12858
|
-
Bn++, Wt ? Wt = !1 :
|
|
12859
|
-
const ne =
|
|
12858
|
+
for (we.matcher.considerAll(); ; ) {
|
|
12859
|
+
Bn++, Wt ? Wt = !1 : we.matcher.considerAll(), we.matcher.lastIndex = Rt;
|
|
12860
|
+
const ne = we.matcher.exec(U);
|
|
12860
12861
|
if (!ne) break;
|
|
12861
12862
|
const J = U.substring(Rt, ne.index), oe = Qe(J, ne);
|
|
12862
12863
|
Rt = ne.index + oe;
|
|
@@ -12869,7 +12870,7 @@ https://github.com/highlightjs/highlight.js/issues/2277`), ce = R, te = U), W ==
|
|
|
12869
12870
|
relevance: In,
|
|
12870
12871
|
illegal: !1,
|
|
12871
12872
|
_emitter: gt,
|
|
12872
|
-
_top:
|
|
12873
|
+
_top: we
|
|
12873
12874
|
};
|
|
12874
12875
|
} catch (ne) {
|
|
12875
12876
|
if (ne.message && ne.message.includes("Illegal"))
|
|
@@ -12895,7 +12896,7 @@ https://github.com/highlightjs/highlight.js/issues/2277`), ce = R, te = U), W ==
|
|
|
12895
12896
|
relevance: 0,
|
|
12896
12897
|
errorRaised: ne,
|
|
12897
12898
|
_emitter: gt,
|
|
12898
|
-
_top:
|
|
12899
|
+
_top: we
|
|
12899
12900
|
};
|
|
12900
12901
|
throw ne;
|
|
12901
12902
|
}
|
|
@@ -12916,7 +12917,7 @@ https://github.com/highlightjs/highlight.js/issues/2277`), ce = R, te = U), W ==
|
|
|
12916
12917
|
(je) => u(je, R, !1)
|
|
12917
12918
|
);
|
|
12918
12919
|
te.unshift(W);
|
|
12919
|
-
const
|
|
12920
|
+
const ie = te.sort((je, Je) => {
|
|
12920
12921
|
if (je.relevance !== Je.relevance) return Je.relevance - je.relevance;
|
|
12921
12922
|
if (je.language && Je.language) {
|
|
12922
12923
|
if (I(je.language).supersetOf === Je.language)
|
|
@@ -12925,7 +12926,7 @@ https://github.com/highlightjs/highlight.js/issues/2277`), ce = R, te = U), W ==
|
|
|
12925
12926
|
return -1;
|
|
12926
12927
|
}
|
|
12927
12928
|
return 0;
|
|
12928
|
-
}), [
|
|
12929
|
+
}), [ye, Ge] = ie, ft = ye;
|
|
12929
12930
|
return ft.secondBest = Ge, ft;
|
|
12930
12931
|
}
|
|
12931
12932
|
function m(R, U, W) {
|
|
@@ -12949,16 +12950,16 @@ https://github.com/highlightjs/highlight.js/issues/2277`), ce = R, te = U), W ==
|
|
|
12949
12950
|
R.innerHTML
|
|
12950
12951
|
);
|
|
12951
12952
|
U = R;
|
|
12952
|
-
const te = U.textContent,
|
|
12953
|
-
R.innerHTML =
|
|
12954
|
-
language:
|
|
12953
|
+
const te = U.textContent, ie = W ? f(te, { language: W, ignoreIllegals: !0 }) : g(te);
|
|
12954
|
+
R.innerHTML = ie.value, R.dataset.highlighted = "yes", m(R, W, ie.language), R.result = {
|
|
12955
|
+
language: ie.language,
|
|
12955
12956
|
// TODO: remove with version 11.0
|
|
12956
|
-
re:
|
|
12957
|
-
relevance:
|
|
12958
|
-
},
|
|
12959
|
-
language:
|
|
12960
|
-
relevance:
|
|
12961
|
-
}), Q("after:highlightElement", { el: R, result:
|
|
12957
|
+
re: ie.relevance,
|
|
12958
|
+
relevance: ie.relevance
|
|
12959
|
+
}, ie.secondBest && (R.secondBest = {
|
|
12960
|
+
language: ie.secondBest.language,
|
|
12961
|
+
relevance: ie.secondBest.relevance
|
|
12962
|
+
}), Q("after:highlightElement", { el: R, result: ie, text: te });
|
|
12962
12963
|
}
|
|
12963
12964
|
function _(R) {
|
|
12964
12965
|
l = Ci(l, R);
|
|
@@ -13468,13 +13469,13 @@ function $0(e) {
|
|
|
13468
13469
|
return;
|
|
13469
13470
|
}
|
|
13470
13471
|
te === ">" && (n(R, { after: W }) || U.ignoreMatch());
|
|
13471
|
-
let
|
|
13472
|
-
const
|
|
13473
|
-
if (
|
|
13472
|
+
let ie;
|
|
13473
|
+
const ye = R.input.substring(W);
|
|
13474
|
+
if (ie = ye.match(/^\s*=/)) {
|
|
13474
13475
|
U.ignoreMatch();
|
|
13475
13476
|
return;
|
|
13476
13477
|
}
|
|
13477
|
-
if ((
|
|
13478
|
+
if ((ie = ye.match(/^\s+extends\s+/)) && ie.index === 0) {
|
|
13478
13479
|
U.ignoreMatch();
|
|
13479
13480
|
return;
|
|
13480
13481
|
}
|
|
@@ -15781,14 +15782,14 @@ gn.registerLanguage("python", J0);
|
|
|
15781
15782
|
gn.registerLanguage("java", G0);
|
|
15782
15783
|
gn.registerLanguage("bash", K0);
|
|
15783
15784
|
gn.registerLanguage("sql", W0);
|
|
15784
|
-
var
|
|
15785
|
+
var ce = /* @__PURE__ */ ((e) => (e.EQUAL = "equal", e.DELETE = "removed", e.ADD = "added", e.EMPTY = "empty", e))(ce || {});
|
|
15785
15786
|
const Vn = "<code-diff-modified>", Pn = "</code-diff-modified>", q0 = Vn.replace("<", "<").replace(">", ">"), Q0 = Pn.replace("<", "<").replace(">", ">");
|
|
15786
15787
|
function Fo(e) {
|
|
15787
|
-
return e === void 0 ?
|
|
15788
|
+
return e === void 0 ? ce.EQUAL : e.added ? ce.ADD : e.removed ? ce.DELETE : ce.EQUAL;
|
|
15788
15789
|
}
|
|
15789
15790
|
function ps(e, t, n = "word") {
|
|
15790
|
-
return typeof e > "u" ? t : typeof t > "u" ? e : (n === "char" ? ME : LE)(e, t).filter((o) => Fo(o) !==
|
|
15791
|
-
(o) => Fo(o) ===
|
|
15791
|
+
return typeof e > "u" ? t : typeof t > "u" ? e : (n === "char" ? ME : LE)(e, t).filter((o) => Fo(o) !== ce.DELETE).map(
|
|
15792
|
+
(o) => Fo(o) === ce.ADD ? `${Vn}${o.value}${Pn}` : o.value
|
|
15792
15793
|
).join("");
|
|
15793
15794
|
}
|
|
15794
15795
|
function Ad(e, t) {
|
|
@@ -15862,7 +15863,7 @@ function Td(e, t) {
|
|
|
15862
15863
|
};
|
|
15863
15864
|
}
|
|
15864
15865
|
function Y0(e, t, n = "plaintext", o = "word", s = !1, r = 10, a) {
|
|
15865
|
-
const l = () => ({ type:
|
|
15866
|
+
const l = () => ({ type: ce.EMPTY }), c = (k, x, w) => ({ type: k, num: x, code: w }), d = Ad(e, t), f = a ? new RegExp(a) : void 0;
|
|
15866
15867
|
let u = 0, p = 0, g = !1;
|
|
15867
15868
|
const m = [], y = {
|
|
15868
15869
|
changes: m,
|
|
@@ -15880,43 +15881,43 @@ function Y0(e, t, n = "plaintext", o = "word", s = !1, r = 10, a) {
|
|
|
15880
15881
|
for (const I of O) {
|
|
15881
15882
|
let B = l(), $ = l();
|
|
15882
15883
|
const G = tn(n, I);
|
|
15883
|
-
T ===
|
|
15884
|
+
T === ce.EQUAL && (u++, p++, B = c(ce.EQUAL, u, G), $ = c(ce.EQUAL, p, G)), T === ce.DELETE && (u++, B = c(ce.DELETE, u, G), $ = l()), T === ce.ADD && (p++, B = l(), $ = c(ce.ADD, p, G)), m.push({ left: B, right: $ });
|
|
15884
15885
|
}
|
|
15885
15886
|
break;
|
|
15886
15887
|
}
|
|
15887
|
-
if (T ===
|
|
15888
|
+
if (T === ce.EQUAL)
|
|
15888
15889
|
for (const I of O) {
|
|
15889
15890
|
u++, p++;
|
|
15890
15891
|
const B = tn(n, I);
|
|
15891
15892
|
m.push({
|
|
15892
|
-
left: c(
|
|
15893
|
-
right: c(
|
|
15893
|
+
left: c(ce.EQUAL, u, B),
|
|
15894
|
+
right: c(ce.EQUAL, p, B)
|
|
15894
15895
|
});
|
|
15895
15896
|
}
|
|
15896
15897
|
const C = w.value.replace(/\n$/, "").split(`
|
|
15897
15898
|
`);
|
|
15898
|
-
if (T ===
|
|
15899
|
-
if (S ===
|
|
15899
|
+
if (T === ce.DELETE) {
|
|
15900
|
+
if (S === ce.EQUAL)
|
|
15900
15901
|
for (const I of O)
|
|
15901
15902
|
u++, m.push({
|
|
15902
|
-
left: c(
|
|
15903
|
+
left: c(ce.DELETE, u, tn(n, I)),
|
|
15903
15904
|
right: l()
|
|
15904
15905
|
});
|
|
15905
|
-
if (S ===
|
|
15906
|
+
if (S === ce.ADD) {
|
|
15906
15907
|
g = !0;
|
|
15907
15908
|
const I = Math.max(x.count, w.count);
|
|
15908
15909
|
for (let B = 0; B < I; B++) {
|
|
15909
15910
|
B < x.count && u++, B < w.count && p++;
|
|
15910
|
-
const [$, G] = [O[B], C[B]], K = s || O.length === C.length, F = K ? ps(G, $, o) : $, Q = K ? ps($, G, o) : G, M = f != null && f.test($) ?
|
|
15911
|
+
const [$, G] = [O[B], C[B]], K = s || O.length === C.length, F = K ? ps(G, $, o) : $, Q = K ? ps($, G, o) : G, M = f != null && f.test($) ? ce.EQUAL : ce.DELETE, R = f != null && f.test(G) ? ce.EQUAL : ce.ADD, U = B < x.count ? c(M, u, tn(n, F)) : l(), W = B < w.count ? c(R, p, tn(n, Q)) : l();
|
|
15911
15912
|
m.push({ left: U, right: W });
|
|
15912
15913
|
}
|
|
15913
15914
|
}
|
|
15914
15915
|
}
|
|
15915
|
-
if (T ===
|
|
15916
|
+
if (T === ce.ADD)
|
|
15916
15917
|
for (const I of O)
|
|
15917
15918
|
p++, m.push({
|
|
15918
15919
|
left: l(),
|
|
15919
|
-
right: c(
|
|
15920
|
+
right: c(ce.ADD, p, tn(n, I))
|
|
15920
15921
|
});
|
|
15921
15922
|
}
|
|
15922
15923
|
if (e === t) {
|
|
@@ -15926,7 +15927,7 @@ function Y0(e, t, n = "plaintext", o = "word", s = !1, r = 10, a) {
|
|
|
15926
15927
|
}
|
|
15927
15928
|
for (let k = 0; k < m.length; k++) {
|
|
15928
15929
|
const x = m[k];
|
|
15929
|
-
if (x.left.type ===
|
|
15930
|
+
if (x.left.type === ce.DELETE || x.right.type === ce.ADD) {
|
|
15930
15931
|
const [w, T] = [Math.max(k - r, 0), Math.min(k + r + 1, m.length)];
|
|
15931
15932
|
for (let S = w; S < T; S++)
|
|
15932
15933
|
m[S].fold = !1;
|
|
@@ -15968,33 +15969,33 @@ function X0(e, t, n = "plaintext", o = "word", s = !1, r = 10, a) {
|
|
|
15968
15969
|
`);
|
|
15969
15970
|
if (k === void 0) {
|
|
15970
15971
|
for (const O of T) {
|
|
15971
|
-
x ===
|
|
15972
|
+
x === ce.EQUAL && (d++, f++), x === ce.DELETE && d++, x === ce.ADD && f++;
|
|
15972
15973
|
const C = tn(n, O);
|
|
15973
15974
|
p.push({
|
|
15974
15975
|
type: x,
|
|
15975
15976
|
code: C,
|
|
15976
|
-
addNum: x ===
|
|
15977
|
-
delNum: x ===
|
|
15977
|
+
addNum: x === ce.DELETE ? void 0 : f,
|
|
15978
|
+
delNum: x === ce.ADD ? void 0 : d
|
|
15978
15979
|
});
|
|
15979
15980
|
}
|
|
15980
15981
|
break;
|
|
15981
15982
|
}
|
|
15982
|
-
if (x ===
|
|
15983
|
+
if (x === ce.EQUAL)
|
|
15983
15984
|
for (const O of T) {
|
|
15984
15985
|
d++, f++;
|
|
15985
15986
|
const C = tn(n, O);
|
|
15986
|
-
p.push({ type:
|
|
15987
|
+
p.push({ type: ce.EQUAL, code: C, delNum: d, addNum: f });
|
|
15987
15988
|
}
|
|
15988
15989
|
const S = k.value.replace(/\n$/, "").split(`
|
|
15989
15990
|
`);
|
|
15990
|
-
if (x ===
|
|
15991
|
-
if (w ===
|
|
15991
|
+
if (x === ce.DELETE)
|
|
15992
|
+
if (w === ce.ADD && (T.length === S.length || s)) {
|
|
15992
15993
|
for (let O = 0; O < T.length; O++) {
|
|
15993
15994
|
const C = T[O], I = S[O];
|
|
15994
15995
|
d++;
|
|
15995
15996
|
const B = tn(n, ps(I, C, o));
|
|
15996
15997
|
p.push({
|
|
15997
|
-
type: c != null && c.test(C) ?
|
|
15998
|
+
type: c != null && c.test(C) ? ce.EQUAL : ce.DELETE,
|
|
15998
15999
|
code: B,
|
|
15999
16000
|
delNum: d
|
|
16000
16001
|
});
|
|
@@ -16004,7 +16005,7 @@ function X0(e, t, n = "plaintext", o = "word", s = !1, r = 10, a) {
|
|
|
16004
16005
|
f++;
|
|
16005
16006
|
const B = tn(n, ps(C, I, o));
|
|
16006
16007
|
p.push({
|
|
16007
|
-
type: c != null && c.test(I) ?
|
|
16008
|
+
type: c != null && c.test(I) ? ce.EQUAL : ce.ADD,
|
|
16008
16009
|
code: B,
|
|
16009
16010
|
addNum: f
|
|
16010
16011
|
});
|
|
@@ -16014,18 +16015,18 @@ function X0(e, t, n = "plaintext", o = "word", s = !1, r = 10, a) {
|
|
|
16014
16015
|
for (const O of T) {
|
|
16015
16016
|
d++;
|
|
16016
16017
|
const C = tn(n, O);
|
|
16017
|
-
p.push({ type:
|
|
16018
|
+
p.push({ type: ce.DELETE, code: C, delNum: d });
|
|
16018
16019
|
}
|
|
16019
|
-
if (x ===
|
|
16020
|
+
if (x === ce.ADD)
|
|
16020
16021
|
for (const O of T) {
|
|
16021
16022
|
f++;
|
|
16022
16023
|
const C = tn(n, O);
|
|
16023
|
-
p.push({ type:
|
|
16024
|
+
p.push({ type: ce.ADD, code: C, addNum: f });
|
|
16024
16025
|
}
|
|
16025
16026
|
}
|
|
16026
16027
|
for (let _ = 0; _ < p.length; _++) {
|
|
16027
16028
|
const b = p[_];
|
|
16028
|
-
if (b.type ===
|
|
16029
|
+
if (b.type === ce.DELETE || b.type === ce.ADD) {
|
|
16029
16030
|
const [k, x] = [Math.max(_ - r, 0), Math.min(_ + r + 1, p.length)];
|
|
16030
16031
|
for (let w = k; w < x; w++)
|
|
16031
16032
|
p[w].fold = !1;
|
|
@@ -16067,7 +16068,7 @@ const Z0 = { key: 0 }, e1 = /* @__PURE__ */ N("td", {
|
|
|
16067
16068
|
setup(e, { emit: t }) {
|
|
16068
16069
|
const n = t;
|
|
16069
16070
|
function o(s) {
|
|
16070
|
-
return s ===
|
|
16071
|
+
return s === ce.DELETE ? "-" : s === ce.ADD ? "+" : "";
|
|
16071
16072
|
}
|
|
16072
16073
|
return (s, r) => s.line.hideIndex !== void 0 && s.line.hide ? (h(), j("tr", Z0, [
|
|
16073
16074
|
N("td", {
|
|
@@ -16078,26 +16079,26 @@ const Z0 = { key: 0 }, e1 = /* @__PURE__ */ N("td", {
|
|
|
16078
16079
|
e1
|
|
16079
16080
|
])) : s.line.hide ? L("", !0) : (h(), j("tr", t1, [
|
|
16080
16081
|
N("td", {
|
|
16081
|
-
class:
|
|
16082
|
-
"blob-num-deletion": s.line.type === i(
|
|
16083
|
-
"blob-num-addition": s.line.type === i(
|
|
16084
|
-
"blob-num-context": s.line.type === i(
|
|
16082
|
+
class: _e(["blob-num", {
|
|
16083
|
+
"blob-num-deletion": s.line.type === i(ce).DELETE,
|
|
16084
|
+
"blob-num-addition": s.line.type === i(ce).ADD,
|
|
16085
|
+
"blob-num-context": s.line.type === i(ce).EQUAL,
|
|
16085
16086
|
"blob-num-hunk": s.line.hide !== void 0
|
|
16086
16087
|
}])
|
|
16087
16088
|
}, se(s.line.delNum), 3),
|
|
16088
16089
|
N("td", {
|
|
16089
|
-
class:
|
|
16090
|
-
"blob-num-deletion": s.line.type === i(
|
|
16091
|
-
"blob-num-addition": s.line.type === i(
|
|
16092
|
-
"blob-num-context": s.line.type === i(
|
|
16090
|
+
class: _e(["blob-num", {
|
|
16091
|
+
"blob-num-deletion": s.line.type === i(ce).DELETE,
|
|
16092
|
+
"blob-num-addition": s.line.type === i(ce).ADD,
|
|
16093
|
+
"blob-num-context": s.line.type === i(ce).EQUAL,
|
|
16093
16094
|
"blob-num-hunk": s.line.hide !== void 0
|
|
16094
16095
|
}])
|
|
16095
16096
|
}, se(s.line.addNum), 3),
|
|
16096
16097
|
N("td", {
|
|
16097
|
-
class:
|
|
16098
|
-
"blob-code-deletion": s.line.type === i(
|
|
16099
|
-
"blob-code-addition": s.line.type === i(
|
|
16100
|
-
"blob-code-context": s.line.type === i(
|
|
16098
|
+
class: _e(["blob-code", {
|
|
16099
|
+
"blob-code-deletion": s.line.type === i(ce).DELETE,
|
|
16100
|
+
"blob-code-addition": s.line.type === i(ce).ADD,
|
|
16101
|
+
"blob-code-context": s.line.type === i(ce).EQUAL,
|
|
16101
16102
|
"blob-code-hunk": s.line.hide !== void 0
|
|
16102
16103
|
}])
|
|
16103
16104
|
}, [
|
|
@@ -16147,7 +16148,7 @@ const Z0 = { key: 0 }, e1 = /* @__PURE__ */ N("td", {
|
|
|
16147
16148
|
setup(e, { emit: t }) {
|
|
16148
16149
|
const n = t;
|
|
16149
16150
|
function o(r) {
|
|
16150
|
-
return r ===
|
|
16151
|
+
return r === ce.DELETE ? "-" : r === ce.ADD ? "+" : "";
|
|
16151
16152
|
}
|
|
16152
16153
|
function s(r) {
|
|
16153
16154
|
const a = document.querySelectorAll(".file-diff-split .split-side-left"), l = document.querySelectorAll(".file-diff-split .split-side-right");
|
|
@@ -16165,23 +16166,23 @@ const Z0 = { key: 0 }, e1 = /* @__PURE__ */ N("td", {
|
|
|
16165
16166
|
l1
|
|
16166
16167
|
])) : r.splitLine.hide ? L("", !0) : (h(), j("tr", i1, [
|
|
16167
16168
|
(h(!0), j(Z, null, pe([r.splitLine.left, r.splitLine.right], (l, c) => (h(), j(Z, null, [
|
|
16168
|
-
l.type === i(
|
|
16169
|
+
l.type === i(ce).EMPTY ? (h(), j(Z, { key: 0 }, [
|
|
16169
16170
|
c1,
|
|
16170
16171
|
u1
|
|
16171
16172
|
], 64)) : (h(), j(Z, { key: 1 }, [
|
|
16172
16173
|
N("td", {
|
|
16173
|
-
class:
|
|
16174
|
-
"blob-num-deletion": l.type === i(
|
|
16175
|
-
"blob-num-addition": l.type === i(
|
|
16176
|
-
"blob-num-context": l.type === i(
|
|
16174
|
+
class: _e(["blob-num", {
|
|
16175
|
+
"blob-num-deletion": l.type === i(ce).DELETE,
|
|
16176
|
+
"blob-num-addition": l.type === i(ce).ADD,
|
|
16177
|
+
"blob-num-context": l.type === i(ce).EQUAL,
|
|
16177
16178
|
"blob-num-hunk": r.splitLine.hide !== void 0
|
|
16178
16179
|
}])
|
|
16179
16180
|
}, se(l.num), 3),
|
|
16180
16181
|
N("td", {
|
|
16181
|
-
class:
|
|
16182
|
-
"blob-code-deletion": l.type === i(
|
|
16183
|
-
"blob-code-addition": l.type === i(
|
|
16184
|
-
"blob-code-context": l.type === i(
|
|
16182
|
+
class: _e(["blob-code", {
|
|
16183
|
+
"blob-code-deletion": l.type === i(ce).DELETE,
|
|
16184
|
+
"blob-code-addition": l.type === i(ce).ADD,
|
|
16185
|
+
"blob-code-context": l.type === i(ce).EQUAL,
|
|
16185
16186
|
"blob-code-hunk": r.splitLine.hide !== void 0,
|
|
16186
16187
|
"split-side-left": c === 0,
|
|
16187
16188
|
"split-side-right": c === 1
|
|
@@ -17526,7 +17527,7 @@ const Ri = /* @__PURE__ */ Od(E1, [["render", C1]]), A1 = ["theme"], T1 = {
|
|
|
17526
17527
|
o("action", { type: "open", model: n.model });
|
|
17527
17528
|
};
|
|
17528
17529
|
return (p, g) => (h(), j("div", {
|
|
17529
|
-
class:
|
|
17530
|
+
class: _e(["v-actions", [`is-${n.position}`]])
|
|
17530
17531
|
}, [
|
|
17531
17532
|
v(i(Ne), {
|
|
17532
17533
|
mode: "icon",
|
|
@@ -17637,7 +17638,7 @@ const Ri = /* @__PURE__ */ Od(E1, [["render", C1]]), A1 = ["theme"], T1 = {
|
|
|
17637
17638
|
default: E(() => [
|
|
17638
17639
|
i(T) ? (h(), j("div", {
|
|
17639
17640
|
key: 0,
|
|
17640
|
-
class:
|
|
17641
|
+
class: _e(["v-designer__dropping", "is-inner"]),
|
|
17641
17642
|
style: Kn(i(T).style)
|
|
17642
17643
|
}, null, 4)) : L("", !0),
|
|
17643
17644
|
i(w) ? (h(), j("div", {
|
|
@@ -17646,7 +17647,7 @@ const Ri = /* @__PURE__ */ Od(E1, [["render", C1]]), A1 = ["theme"], T1 = {
|
|
|
17646
17647
|
style: Kn(i(w).style)
|
|
17647
17648
|
}, [
|
|
17648
17649
|
N("span", {
|
|
17649
|
-
class:
|
|
17650
|
+
class: _e(`is-${i(w).position}`)
|
|
17650
17651
|
}, [
|
|
17651
17652
|
ee(se(i(w).model.name) + ": ", 1),
|
|
17652
17653
|
N("i", null, se(i(w).model.id), 1)
|
|
@@ -20151,19 +20152,19 @@ const Ri = /* @__PURE__ */ Od(E1, [["render", C1]]), A1 = ["theme"], T1 = {
|
|
|
20151
20152
|
}, null, 8, Kk)
|
|
20152
20153
|
], 8, jk)) : L("", !0),
|
|
20153
20154
|
N("div", {
|
|
20154
|
-
class:
|
|
20155
|
+
class: _e(["spacing-edit margin-top", { "is-setting": t.styleJson["margin-top"] }]),
|
|
20155
20156
|
onClick: m[4] || (m[4] = (y) => p("margin-top"))
|
|
20156
20157
|
}, se(t.styleJson["margin-top"] || "-"), 3),
|
|
20157
20158
|
N("div", {
|
|
20158
|
-
class:
|
|
20159
|
+
class: _e(["spacing-edit margin-right", { "is-setting": t.styleJson["margin-right"] }]),
|
|
20159
20160
|
onClick: m[5] || (m[5] = (y) => p("margin-right"))
|
|
20160
20161
|
}, se(t.styleJson["margin-right"] || "-"), 3),
|
|
20161
20162
|
N("div", {
|
|
20162
|
-
class:
|
|
20163
|
+
class: _e(["spacing-edit margin-bottom", { "is-setting": t.styleJson["margin-bottom"] }]),
|
|
20163
20164
|
onClick: m[6] || (m[6] = (y) => p("margin-bottom"))
|
|
20164
20165
|
}, se(t.styleJson["margin-bottom"] || "-"), 3),
|
|
20165
20166
|
N("div", {
|
|
20166
|
-
class:
|
|
20167
|
+
class: _e(["spacing-edit margin-left", { "is-setting": t.styleJson["margin-left"] }]),
|
|
20167
20168
|
onClick: m[7] || (m[7] = (y) => p("margin-left"))
|
|
20168
20169
|
}, se(t.styleJson["margin-left"] || "-"), 3)
|
|
20169
20170
|
]),
|
|
@@ -20301,19 +20302,19 @@ const Ri = /* @__PURE__ */ Od(E1, [["render", C1]]), A1 = ["theme"], T1 = {
|
|
|
20301
20302
|
}, null, 8, rS)
|
|
20302
20303
|
], 8, Wk)) : L("", !0),
|
|
20303
20304
|
N("div", {
|
|
20304
|
-
class:
|
|
20305
|
+
class: _e(["spacing-edit padding-top", { "is-setting": t.styleJson["padding-top"] }]),
|
|
20305
20306
|
onClick: m[12] || (m[12] = (y) => p("padding-top"))
|
|
20306
20307
|
}, se(t.styleJson["padding-top"] || "-"), 3),
|
|
20307
20308
|
N("div", {
|
|
20308
|
-
class:
|
|
20309
|
+
class: _e(["spacing-edit padding-right", { "is-setting": t.styleJson["padding-right"] }]),
|
|
20309
20310
|
onClick: m[13] || (m[13] = (y) => p("padding-right"))
|
|
20310
20311
|
}, se(t.styleJson["padding-right"] || "-"), 3),
|
|
20311
20312
|
N("div", {
|
|
20312
|
-
class:
|
|
20313
|
+
class: _e(["spacing-edit padding-bottom", { "is-setting": t.styleJson["padding-bottom"] }]),
|
|
20313
20314
|
onClick: m[14] || (m[14] = (y) => p("padding-bottom"))
|
|
20314
20315
|
}, se(t.styleJson["padding-bottom"] || "-"), 3),
|
|
20315
20316
|
N("div", {
|
|
20316
|
-
class:
|
|
20317
|
+
class: _e(["spacing-edit padding-left", { "is-setting": t.styleJson["padding-left"] }]),
|
|
20317
20318
|
onClick: m[15] || (m[15] = (y) => p("padding-left"))
|
|
20318
20319
|
}, se(t.styleJson["padding-left"] || "-"), 3)
|
|
20319
20320
|
], 512),
|
|
@@ -20643,19 +20644,19 @@ const Ri = /* @__PURE__ */ Od(E1, [["render", C1]]), A1 = ["theme"], T1 = {
|
|
|
20643
20644
|
}, null, 8, wS)
|
|
20644
20645
|
], 8, dS)) : L("", !0),
|
|
20645
20646
|
N("div", {
|
|
20646
|
-
class:
|
|
20647
|
+
class: _e(["spacing-edit padding-top", { "is-setting": t.styleJson.top }]),
|
|
20647
20648
|
onClick: m[4] || (m[4] = (y) => u("top"))
|
|
20648
20649
|
}, se(t.styleJson.top || f.value[0] || "-"), 3),
|
|
20649
20650
|
N("div", {
|
|
20650
|
-
class:
|
|
20651
|
+
class: _e(["spacing-edit padding-right", { "is-setting": t.styleJson.right }]),
|
|
20651
20652
|
onClick: m[5] || (m[5] = (y) => u("right"))
|
|
20652
20653
|
}, se(t.styleJson.right || f.value[1] || "-"), 3),
|
|
20653
20654
|
N("div", {
|
|
20654
|
-
class:
|
|
20655
|
+
class: _e(["spacing-edit padding-bottom", { "is-setting": t.styleJson.bottom }]),
|
|
20655
20656
|
onClick: m[6] || (m[6] = (y) => u("bottom"))
|
|
20656
20657
|
}, se(t.styleJson.bottom || f.value[2] || "-"), 3),
|
|
20657
20658
|
N("div", {
|
|
20658
|
-
class:
|
|
20659
|
+
class: _e(["spacing-edit padding-left", { "is-setting": t.styleJson.left }]),
|
|
20659
20660
|
onClick: m[7] || (m[7] = (y) => u("left"))
|
|
20660
20661
|
}, se(t.styleJson.left || f.value[3] || "-"), 3)
|
|
20661
20662
|
], 512),
|
|
@@ -21628,7 +21629,7 @@ const Ri = /* @__PURE__ */ Od(E1, [["render", C1]]), A1 = ["theme"], T1 = {
|
|
|
21628
21629
|
a.value = !0;
|
|
21629
21630
|
};
|
|
21630
21631
|
return (p, g) => (h(), j("div", {
|
|
21631
|
-
class:
|
|
21632
|
+
class: _e(["v-json-setter", { "is-active": r.value }])
|
|
21632
21633
|
}, [
|
|
21633
21634
|
v(i(et), ct({
|
|
21634
21635
|
readonly: "",
|
|
@@ -21704,7 +21705,7 @@ const Ri = /* @__PURE__ */ Od(E1, [["render", C1]]), A1 = ["theme"], T1 = {
|
|
|
21704
21705
|
r.value = !0;
|
|
21705
21706
|
};
|
|
21706
21707
|
return (u, p) => (h(), j("div", {
|
|
21707
|
-
class:
|
|
21708
|
+
class: _e(["v-function-setter", { "is-active": a.value }])
|
|
21708
21709
|
}, [
|
|
21709
21710
|
v(i(et), ct({
|
|
21710
21711
|
readonly: "",
|
|
@@ -21773,7 +21774,7 @@ const Ri = /* @__PURE__ */ Od(E1, [["render", C1]]), A1 = ["theme"], T1 = {
|
|
|
21773
21774
|
a.value = !0;
|
|
21774
21775
|
};
|
|
21775
21776
|
return (u, p) => (h(), j("div", {
|
|
21776
|
-
class:
|
|
21777
|
+
class: _e(["v-json-setter v-css-setter", { "is-active": r.value }])
|
|
21777
21778
|
}, [
|
|
21778
21779
|
v(i(et), ct({
|
|
21779
21780
|
readonly: "",
|
|
@@ -22797,7 +22798,7 @@ function wx() {
|
|
|
22797
22798
|
// look for 3 words in a row
|
|
22798
22799
|
}
|
|
22799
22800
|
), Ae;
|
|
22800
|
-
}, W = U("//", "$"), te = U("/\\*", "\\*/"),
|
|
22801
|
+
}, W = U("//", "$"), te = U("/\\*", "\\*/"), ie = U("#", "$"), ye = {
|
|
22801
22802
|
scope: "number",
|
|
22802
22803
|
begin: I,
|
|
22803
22804
|
relevance: 0
|
|
@@ -22861,11 +22862,11 @@ function wx() {
|
|
|
22861
22862
|
}
|
|
22862
22863
|
);
|
|
22863
22864
|
},
|
|
22864
|
-
HASH_COMMENT_MODE:
|
|
22865
|
+
HASH_COMMENT_MODE: ie,
|
|
22865
22866
|
IDENT_RE: O,
|
|
22866
22867
|
MATCH_NOTHING_RE: S,
|
|
22867
22868
|
METHOD_GUARD: yt,
|
|
22868
|
-
NUMBER_MODE:
|
|
22869
|
+
NUMBER_MODE: ye,
|
|
22869
22870
|
NUMBER_RE: I,
|
|
22870
22871
|
PHRASAL_WORDS_MODE: R,
|
|
22871
22872
|
QUOTE_STRING_MODE: M,
|
|
@@ -22924,8 +22925,8 @@ function wx() {
|
|
|
22924
22925
|
// common variable name
|
|
22925
22926
|
"value"
|
|
22926
22927
|
// common variable name
|
|
22927
|
-
],
|
|
22928
|
-
function po(P, q, re =
|
|
22928
|
+
], we = "keyword";
|
|
22929
|
+
function po(P, q, re = we) {
|
|
22929
22930
|
const Ae = /* @__PURE__ */ Object.create(null);
|
|
22930
22931
|
return typeof P == "string" ? mt(re, P.split(" ")) : Array.isArray(P) ? mt(re, P) : Object.keys(P).forEach(function(ht) {
|
|
22931
22932
|
Object.assign(
|
|
@@ -22981,7 +22982,7 @@ function wx() {
|
|
|
22981
22982
|
function Ce(P) {
|
|
22982
22983
|
P.scope && typeof P.scope == "object" && P.scope !== null && (P.beginScope = P.scope, delete P.scope);
|
|
22983
22984
|
}
|
|
22984
|
-
function
|
|
22985
|
+
function Ee(P) {
|
|
22985
22986
|
Ce(P), typeof P.beginScope == "string" && (P.beginScope = { _wrap: P.beginScope }), typeof P.endScope == "string" && (P.endScope = { _wrap: P.endScope }), oe(P), ue(P);
|
|
22986
22987
|
}
|
|
22987
22988
|
function _t(P) {
|
|
@@ -23061,7 +23062,7 @@ function wx() {
|
|
|
23061
23062
|
// do this early so compiler extensions generally don't have to worry about
|
|
23062
23063
|
// the distinction between match/begin
|
|
23063
23064
|
Qe,
|
|
23064
|
-
|
|
23065
|
+
Ee,
|
|
23065
23066
|
Go
|
|
23066
23067
|
].forEach((wt) => wt(ge, de)), P.compilerExtensions.forEach((wt) => wt(ge, de)), ge.__beforeBegin = null, [
|
|
23067
23068
|
St,
|
|
@@ -23897,26 +23898,26 @@ function Tx(e) {
|
|
|
23897
23898
|
* @param {CallbackResponse} response
|
|
23898
23899
|
*/
|
|
23899
23900
|
isTrulyOpeningTag: (U, W) => {
|
|
23900
|
-
const te = U[0].length + U.index,
|
|
23901
|
+
const te = U[0].length + U.index, ie = U.input[te];
|
|
23901
23902
|
if (
|
|
23902
23903
|
// HTML should not include another raw `<` inside a tag
|
|
23903
23904
|
// nested type?
|
|
23904
23905
|
// `<Array<Array<number>>`, etc.
|
|
23905
|
-
|
|
23906
|
+
ie === "<" || // the , gives away that this is not HTML
|
|
23906
23907
|
// `<T, A extends keyof T, V>`
|
|
23907
|
-
|
|
23908
|
+
ie === ","
|
|
23908
23909
|
) {
|
|
23909
23910
|
W.ignoreMatch();
|
|
23910
23911
|
return;
|
|
23911
23912
|
}
|
|
23912
|
-
|
|
23913
|
-
let
|
|
23913
|
+
ie === ">" && (n(U, { after: te }) || W.ignoreMatch());
|
|
23914
|
+
let ye;
|
|
23914
23915
|
const Ge = U.input.substring(te);
|
|
23915
|
-
if (
|
|
23916
|
+
if (ye = Ge.match(/^\s*=/)) {
|
|
23916
23917
|
W.ignoreMatch();
|
|
23917
23918
|
return;
|
|
23918
23919
|
}
|
|
23919
|
-
if ((
|
|
23920
|
+
if ((ye = Ge.match(/^\s+extends\s+/)) && ye.index === 0) {
|
|
23920
23921
|
W.ignoreMatch();
|
|
23921
23922
|
return;
|
|
23922
23923
|
}
|
|
@@ -25444,7 +25445,7 @@ ${m}${y}`;
|
|
|
25444
25445
|
return (f, u) => (h(), j("div", {
|
|
25445
25446
|
ref_key: "container",
|
|
25446
25447
|
ref: r,
|
|
25447
|
-
class:
|
|
25448
|
+
class: _e(["markdown-container", { "is-hide-code": !n.code }]),
|
|
25448
25449
|
onClick: d,
|
|
25449
25450
|
innerHTML: a.value
|
|
25450
25451
|
}, null, 10, Ux));
|
|
@@ -25537,7 +25538,7 @@ ${m}${y}`;
|
|
|
25537
25538
|
u.value = !1;
|
|
25538
25539
|
}
|
|
25539
25540
|
), (I, B) => (h(), j("div", {
|
|
25540
|
-
class:
|
|
25541
|
+
class: _e(["v-ai-widget-bubble", y.value])
|
|
25541
25542
|
}, [
|
|
25542
25543
|
r.value || a.value ? (h(), A(i(bs), {
|
|
25543
25544
|
key: 0,
|
|
@@ -25548,7 +25549,7 @@ ${m}${y}`;
|
|
|
25548
25549
|
n.type === "user" ? (h(), A(yx, { key: 1 })) : L("", !0),
|
|
25549
25550
|
N("div", $x, [
|
|
25550
25551
|
N("div", {
|
|
25551
|
-
class:
|
|
25552
|
+
class: _e(["v-ai-widget-bubble__content", g.value])
|
|
25552
25553
|
}, [
|
|
25553
25554
|
r.value ? (h(), j(Z, { key: 0 }, [
|
|
25554
25555
|
d.value ? L("", !0) : (h(), A(i(Pa), {
|
|
@@ -25565,7 +25566,7 @@ ${m}${y}`;
|
|
|
25565
25566
|
_: 1
|
|
25566
25567
|
})),
|
|
25567
25568
|
N("div", {
|
|
25568
|
-
class:
|
|
25569
|
+
class: _e({ "is-collapsed": u.value })
|
|
25569
25570
|
}, [
|
|
25570
25571
|
N("div", zx, [
|
|
25571
25572
|
N("pre", null, se(n.data.reasoning), 1)
|
|
@@ -26117,7 +26118,7 @@ ${m}${y}`;
|
|
|
26117
26118
|
a && a.setValue(u);
|
|
26118
26119
|
}
|
|
26119
26120
|
), t({ getEditor: () => a }), (u, p) => (h(), j("div", {
|
|
26120
|
-
class:
|
|
26121
|
+
class: _e(["v-code-editor", { "is-border": o.border }]),
|
|
26121
26122
|
ref_key: "container",
|
|
26122
26123
|
ref: r,
|
|
26123
26124
|
onKeyup: p[0] || (p[0] = Et(He(() => {
|
|
@@ -26492,8 +26493,8 @@ ${m}${y}`;
|
|
|
26492
26493
|
cancelOrder: U,
|
|
26493
26494
|
getOrder: W,
|
|
26494
26495
|
updateChatDsl: te,
|
|
26495
|
-
getImage:
|
|
26496
|
-
onPostImageTopic:
|
|
26496
|
+
getImage: ie,
|
|
26497
|
+
onPostImageTopic: ye,
|
|
26497
26498
|
onPostJsonTopic: Ge,
|
|
26498
26499
|
onCancelChat: ft
|
|
26499
26500
|
} = hv(), je = D(!0), Je = D(!1), bn = V(() => $.value ? {
|
|
@@ -26613,7 +26614,7 @@ ${m}${y}`;
|
|
|
26613
26614
|
disabled: i(M),
|
|
26614
26615
|
fillPromptInput: i(F),
|
|
26615
26616
|
onSend: i(l),
|
|
26616
|
-
onImageSend: i(
|
|
26617
|
+
onImageSend: i(ye),
|
|
26617
26618
|
onJsonSend: i(Ge)
|
|
26618
26619
|
}, null, 8, ["models", "loading", "model-value", "disabled", "fillPromptInput", "onSend", "onImageSend", "onJsonSend"])) : L("", !0),
|
|
26619
26620
|
i(s) ? L("", !0) : (h(), j("div", {
|
|
@@ -26737,13 +26738,13 @@ ${m}${y}`;
|
|
|
26737
26738
|
i(Q) ? (h(), A(EC, {
|
|
26738
26739
|
key: 0,
|
|
26739
26740
|
settings: i(Q),
|
|
26740
|
-
"get-image": i(
|
|
26741
|
+
"get-image": i(ie)
|
|
26741
26742
|
}, null, 8, ["settings", "get-image"])) : L("", !0),
|
|
26742
26743
|
i(Q) ? (h(), A(PC, {
|
|
26743
26744
|
key: 1,
|
|
26744
26745
|
remote: i(n).remote,
|
|
26745
26746
|
settings: i(Q),
|
|
26746
|
-
"get-image": i(
|
|
26747
|
+
"get-image": i(ie),
|
|
26747
26748
|
"create-order": i(R),
|
|
26748
26749
|
"cancel-order": i(U),
|
|
26749
26750
|
"get-order": i(W)
|
|
@@ -27210,7 +27211,7 @@ ${m}${y}`;
|
|
|
27210
27211
|
ref: n,
|
|
27211
27212
|
title: "开发工具",
|
|
27212
27213
|
subtitle: "DevTools",
|
|
27213
|
-
class:
|
|
27214
|
+
class: _e(`v-devtools--${l.value}`),
|
|
27214
27215
|
src: f.value,
|
|
27215
27216
|
width: "50%",
|
|
27216
27217
|
height: "60%",
|
|
@@ -28639,7 +28640,7 @@ ${m}${y}`;
|
|
|
28639
28640
|
(h(!0), j(Z, null, pe(n.options, (l) => (h(), j("span", {
|
|
28640
28641
|
label: l.value,
|
|
28641
28642
|
title: l.label,
|
|
28642
|
-
class:
|
|
28643
|
+
class: _e({
|
|
28643
28644
|
"is-active": n.modelValue === l.value
|
|
28644
28645
|
}),
|
|
28645
28646
|
onClick: (c) => s(l)
|
|
@@ -29128,7 +29129,7 @@ ${m}${y}`;
|
|
|
29128
29129
|
}, {
|
|
29129
29130
|
prepend: E(() => [
|
|
29130
29131
|
N("i", {
|
|
29131
|
-
class:
|
|
29132
|
+
class: _e([`van-icon-${l.value}`, "van-icon"])
|
|
29132
29133
|
}, null, 2)
|
|
29133
29134
|
]),
|
|
29134
29135
|
_: 1
|
|
@@ -29173,7 +29174,7 @@ ${m}${y}`;
|
|
|
29173
29174
|
N("div", AA, [
|
|
29174
29175
|
(h(!0), j(Z, null, pe(c.value, (y) => (h(), j("i", {
|
|
29175
29176
|
onClick: (_) => d(y),
|
|
29176
|
-
class:
|
|
29177
|
+
class: _e([
|
|
29177
29178
|
r.value === y ? "is-active" : "",
|
|
29178
29179
|
`van-icon-${y}`,
|
|
29179
29180
|
"van-icon",
|
|
@@ -32674,7 +32675,7 @@ const Li = new jT(), LT = /* @__PURE__ */ H({
|
|
|
32674
32675
|
a.value ? L("", !0) : Kt((h(), A(i(Dl), {
|
|
32675
32676
|
key: 0,
|
|
32676
32677
|
width: n.leftWidth,
|
|
32677
|
-
class:
|
|
32678
|
+
class: _e(["v-skeleton__left", {
|
|
32678
32679
|
"is-collapsed": w.value
|
|
32679
32680
|
}])
|
|
32680
32681
|
}, {
|
|
@@ -32856,7 +32857,7 @@ const Li = new jT(), LT = /* @__PURE__ */ H({
|
|
|
32856
32857
|
n.variable ? (h(), A(i(Im), {
|
|
32857
32858
|
key: 0,
|
|
32858
32859
|
onClick: g,
|
|
32859
|
-
class:
|
|
32860
|
+
class: _e(["v-icon-vars", { "is-active": c.value }]),
|
|
32860
32861
|
title: "绑定变量"
|
|
32861
32862
|
}, null, 8, ["class"])) : L("", !0),
|
|
32862
32863
|
n.setters.length > 1 ? (h(), A(i(Gi), {
|
|
@@ -32875,7 +32876,7 @@ const Li = new jT(), LT = /* @__PURE__ */ H({
|
|
|
32875
32876
|
}, {
|
|
32876
32877
|
default: E(() => [
|
|
32877
32878
|
v(i(Ka), {
|
|
32878
|
-
class:
|
|
32879
|
+
class: _e({
|
|
32879
32880
|
"is-placeholder": x.name !== a.value.name
|
|
32880
32881
|
})
|
|
32881
32882
|
}, null, 8, ["class"]),
|
|
@@ -33028,7 +33029,7 @@ const Li = new jT(), LT = /* @__PURE__ */ H({
|
|
|
33028
33029
|
N("div", oO, [
|
|
33029
33030
|
(h(!0), j(Z, null, pe(c.value, (k) => (h(), A(i(bi), {
|
|
33030
33031
|
key: `icon-${k.name}`,
|
|
33031
|
-
class:
|
|
33032
|
+
class: _e(`v-apps-region-${k.name}`),
|
|
33032
33033
|
icon: k.icon,
|
|
33033
33034
|
label: k.label,
|
|
33034
33035
|
active: u.value?.name === k.name,
|