mio-previewer 0.2.81 → 0.2.83
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/dist/{_basePickBy-4DeI7Sd9.js → _basePickBy-B_fUHBq7.js} +1 -1
- package/dist/{_basePickBy-fK38Is48.cjs → _basePickBy-Dqo5imhM.cjs} +1 -1
- package/dist/{_baseUniq-DbG7pvUV.cjs → _baseUniq-CGg_yy3w.cjs} +1 -1
- package/dist/{_baseUniq-BiOfy4Zq.js → _baseUniq-D_yJ2cWz.js} +1 -1
- package/dist/architecture-O4VJ6CD3-BS1qaWrP.js +2 -0
- package/dist/architecture-O4VJ6CD3-pWor6yxt.cjs +1 -0
- package/dist/{architectureDiagram-VXUJARFQ-XQiXCJ1R.cjs → architectureDiagram-VXUJARFQ-CLwpMJT5.cjs} +1 -1
- package/dist/{architectureDiagram-VXUJARFQ-BjO8TT3C.js → architectureDiagram-VXUJARFQ-DcNHf7VL.js} +2 -2
- package/dist/{blockDiagram-VD42YOAC-3797lmee.cjs → blockDiagram-VD42YOAC-BLLCnii-.cjs} +1 -1
- package/dist/{blockDiagram-VD42YOAC-kn2a-098.js → blockDiagram-VD42YOAC-Btz-ItbV.js} +2 -2
- package/dist/{chunk-B4BG7PRW-BtJEjwS8.cjs → chunk-B4BG7PRW-Ci2sdKF-.cjs} +1 -1
- package/dist/{chunk-B4BG7PRW-DHY7VtDV.js → chunk-B4BG7PRW-ZQiq1R0I.js} +1 -1
- package/dist/{chunk-DI55MBZ5-4e69XZPR.js → chunk-DI55MBZ5-D-GpYXKH.js} +1 -1
- package/dist/{chunk-DI55MBZ5-DprPlFVg.cjs → chunk-DI55MBZ5-XEFwozWD.cjs} +1 -1
- package/dist/{classDiagram-2ON5EDUG-CGQPb_Ub.js → classDiagram-2ON5EDUG-D6DuGzSf.js} +2 -2
- package/dist/{classDiagram-2ON5EDUG-1aO8MRfO.cjs → classDiagram-2ON5EDUG-DkRQ5GOj.cjs} +1 -1
- package/dist/{classDiagram-v2-WZHVMYZB-BfB0DYeF.js → classDiagram-v2-WZHVMYZB-Ah0fVcwK.js} +2 -2
- package/dist/{classDiagram-v2-WZHVMYZB-1aO8MRfO.cjs → classDiagram-v2-WZHVMYZB-DkRQ5GOj.cjs} +1 -1
- package/dist/{clone-B7ysxKje.js → clone-6W0bDM--.js} +1 -1
- package/dist/clone-BzPrn9vX.cjs +1 -0
- package/dist/{custom-zFYvYngn.js → custom-BEVHZhjn.js} +1057 -1059
- package/dist/{custom-CTbYnXJM.cjs → custom-CFJtq50-.cjs} +9 -9
- package/dist/{dagre-6UL2VRFP-BaHUY8Hb.js → dagre-6UL2VRFP-C3Ipvs60.js} +5 -5
- package/dist/{dagre-6UL2VRFP-htRqTf-w.cjs → dagre-6UL2VRFP-CjL-Aopb.cjs} +1 -1
- package/dist/{dagre-BsYISGks.js → dagre-C8kEqhY-.js} +4 -4
- package/dist/{dagre-LrmDlPcx.cjs → dagre-CKZi16ud.cjs} +1 -1
- package/dist/{diagram-PSM6KHXK-DNvQqRSW.cjs → diagram-PSM6KHXK-DMa_Nrh3.cjs} +1 -1
- package/dist/{diagram-PSM6KHXK-DgowxSOD.js → diagram-PSM6KHXK-DpWcqYnH.js} +2 -2
- package/dist/{diagram-QEK2KX5R-I5j0P1Gg.cjs → diagram-QEK2KX5R-C1I_WFRU.cjs} +1 -1
- package/dist/{diagram-QEK2KX5R-wbcwN2OH.js → diagram-QEK2KX5R-meoSBUIM.js} +2 -2
- package/dist/{diagram-S2PKOQOG-R3_EPZ4Z.js → diagram-S2PKOQOG-CT-b436r.js} +2 -2
- package/dist/{diagram-S2PKOQOG-DK84ClRy.cjs → diagram-S2PKOQOG-DhWT3-d3.cjs} +1 -1
- package/dist/{erDiagram-Q2GNP2WA-D67CXTUo.cjs → erDiagram-Q2GNP2WA-BcI48E73.cjs} +1 -1
- package/dist/{erDiagram-Q2GNP2WA-3muHSADM.js → erDiagram-Q2GNP2WA-DTb2sgR_.js} +1 -1
- package/dist/{flowDiagram-NV44I4VS-JmA5InDJ.cjs → flowDiagram-NV44I4VS-CojdaEhH.cjs} +1 -1
- package/dist/{flowDiagram-NV44I4VS-CXF2rH58.js → flowDiagram-NV44I4VS-DW3pSjNx.js} +1 -1
- package/dist/gitGraph-ZV4HHKMB-BbcJrvYt.js +2 -0
- package/dist/gitGraph-ZV4HHKMB-DXFDUL4o.cjs +1 -0
- package/dist/{gitGraphDiagram-NY62KEGX-DnaSfz6O.js → gitGraphDiagram-NY62KEGX-DfMVgHMj.js} +1 -1
- package/dist/{gitGraphDiagram-NY62KEGX-Cky6DbTs.cjs → gitGraphDiagram-NY62KEGX-Do6avzMz.cjs} +1 -1
- package/dist/{graphlib-BDSGIwy5.js → graphlib-DZdg5a0e.js} +2 -2
- package/dist/{graphlib-COlsWh5G.cjs → graphlib-DlDIM8qv.cjs} +1 -1
- package/dist/info-63CPKGFF-BF1W-kBt.js +2 -0
- package/dist/info-63CPKGFF-OqKEIkyb.cjs +1 -0
- package/dist/{infoDiagram-F6ZHWCRC-CowQBjpH.cjs → infoDiagram-F6ZHWCRC-D83iIi2o.cjs} +1 -1
- package/dist/{infoDiagram-F6ZHWCRC-C-2JvOQj.js → infoDiagram-F6ZHWCRC-DkHDmcca.js} +2 -2
- package/dist/{kanban-definition-3W4ZIXB7-DFwQurcd.cjs → kanban-definition-3W4ZIXB7-BjUoDDjG.cjs} +1 -1
- package/dist/{kanban-definition-3W4ZIXB7-BA-P9_O1.js → kanban-definition-3W4ZIXB7-CRenxDOa.js} +1 -1
- package/dist/{mermaid-parser.core-CaUKRbWB.cjs → mermaid-parser.core-BY0bWKp5.cjs} +2 -2
- package/dist/{mermaid-parser.core-C0stGw3M.js → mermaid-parser.core-CTjeJcfH.js} +11 -11
- package/dist/{mindmap-definition-VGOIOE7T-JxzPkyHv.cjs → mindmap-definition-VGOIOE7T-BLEOQkZC.cjs} +1 -1
- package/dist/{mindmap-definition-VGOIOE7T-Bqx5iev5.js → mindmap-definition-VGOIOE7T-BeJDmJ4f.js} +1 -1
- package/dist/mio-previewer.cjs.js +2 -2
- package/dist/mio-previewer.css +1 -1
- package/dist/mio-previewer.es.js +85 -48
- package/dist/packet-HUATNLJX-BVdybaXv.js +2 -0
- package/dist/packet-HUATNLJX-DS1ZaMFj.cjs +1 -0
- package/dist/pie-WTHONI2E-DIWIyQKf.js +2 -0
- package/dist/pie-WTHONI2E-DY813YuK.cjs +1 -0
- package/dist/{pieDiagram-ADFJNKIX-i8x87zyM.cjs → pieDiagram-ADFJNKIX-89MFsDom.cjs} +1 -1
- package/dist/{pieDiagram-ADFJNKIX-CqeByC3c.js → pieDiagram-ADFJNKIX-DjW2gwan.js} +2 -2
- package/dist/plugins/custom.cjs.js +1 -1
- package/dist/plugins/custom.es.js +1 -1
- package/dist/radar-NJJJXTRR-DRgjWYOi.cjs +1 -0
- package/dist/radar-NJJJXTRR-qBj3iw7X.js +2 -0
- package/dist/{requirementDiagram-UZGBJVZJ-CHV5QyaU.js → requirementDiagram-UZGBJVZJ-CZw8XwAQ.js} +1 -1
- package/dist/{requirementDiagram-UZGBJVZJ-CkcmHGky.cjs → requirementDiagram-UZGBJVZJ-DUGy8FaZ.cjs} +1 -1
- package/dist/{sequenceDiagram-WL72ISMW-C6ZHiCkW.cjs → sequenceDiagram-WL72ISMW-CaEuUrMX.cjs} +1 -1
- package/dist/{sequenceDiagram-WL72ISMW-BrXwkh9-.js → sequenceDiagram-WL72ISMW-D_npYx8y.js} +1 -1
- package/dist/{stateDiagram-FKZM4ZOC-BexHjwuY.cjs → stateDiagram-FKZM4ZOC-B0OX9oAF.cjs} +1 -1
- package/dist/{stateDiagram-FKZM4ZOC-BNKd7Zjp.js → stateDiagram-FKZM4ZOC-CybCdeuK.js} +4 -4
- package/dist/{stateDiagram-v2-4FDKWEC3-BV5hZe8g.cjs → stateDiagram-v2-4FDKWEC3-B_aDvBm0.cjs} +1 -1
- package/dist/{stateDiagram-v2-4FDKWEC3-BBQ_35IT.js → stateDiagram-v2-4FDKWEC3-BhgHpXjD.js} +2 -2
- package/dist/treemap-75Q7IDZK-CN96qMnk.cjs +1 -0
- package/dist/treemap-75Q7IDZK-DW1QHTpM.js +2 -0
- package/dist/{xychartDiagram-PRI3JC2R-Sign6lKR.js → xychartDiagram-PRI3JC2R-C4S1jDTS.js} +1 -1
- package/dist/{xychartDiagram-PRI3JC2R-Uuh1GI7r.cjs → xychartDiagram-PRI3JC2R-nUj0lqZ0.cjs} +1 -1
- package/package.json +1 -1
- package/dist/architecture-O4VJ6CD3-Br6wckiC.js +0 -2
- package/dist/architecture-O4VJ6CD3-DW6Y0DyO.cjs +0 -1
- package/dist/clone-Cigigie7.cjs +0 -1
- package/dist/gitGraph-ZV4HHKMB-Bd0sDnQF.js +0 -2
- package/dist/gitGraph-ZV4HHKMB-Dw6oOGGz.cjs +0 -1
- package/dist/info-63CPKGFF-C1ouGYsz.js +0 -2
- package/dist/info-63CPKGFF-DXINRvni.cjs +0 -1
- package/dist/packet-HUATNLJX-BKMh2g_W.js +0 -2
- package/dist/packet-HUATNLJX-s8JssPJD.cjs +0 -1
- package/dist/pie-WTHONI2E-Cx-MoId6.cjs +0 -1
- package/dist/pie-WTHONI2E-DOIqNUp0.js +0 -2
- package/dist/radar-NJJJXTRR-B4jjqv__.js +0 -2
- package/dist/radar-NJJJXTRR-CEg_Sqsk.cjs +0 -1
- package/dist/treemap-75Q7IDZK-BsMDB8ct.cjs +0 -1
- package/dist/treemap-75Q7IDZK-sGAH33Jt.js +0 -2
|
@@ -10,9 +10,9 @@ import { B as ae, E as oe, G as se, L as ce, U as le, b as ue, g as de, p as fe,
|
|
|
10
10
|
import { i as _e, s as ve } from "./chunk-JA3XYJ7Z-CpKHrbOX.js";
|
|
11
11
|
import { a as ye, i as be, s as xe } from "./chunk-JZLCHNYA-CYo7ykJf.js";
|
|
12
12
|
import { a as Se, i as Ce, n as we, r as Te } from "./chunk-QXUST7PY-CxCAwQqP.js";
|
|
13
|
-
import { Fragment as Ee, Teleport as De, computed as
|
|
13
|
+
import { Fragment as Ee, Teleport as De, computed as P, createBlock as Oe, createCommentVNode as F, createElementBlock as I, createElementVNode as L, defineComponent as ke, h as Ae, inject as je, normalizeClass as Me, normalizeStyle as Ne, onMounted as Pe, onUnmounted as Fe, openBlock as R, ref as z, renderList as Ie, toDisplayString as Le, vShow as Re, watch as ze, withDirectives as Be, withModifiers as Ve } from "vue";
|
|
14
14
|
//#region src/utils/cors.ts
|
|
15
|
-
function
|
|
15
|
+
function He(e, t) {
|
|
16
16
|
if (!t || !e || e.startsWith("data:") || e.startsWith("blob:")) return !1;
|
|
17
17
|
let n = e.startsWith("http://") || e.startsWith("https://") || e.startsWith("//");
|
|
18
18
|
if (Array.isArray(t)) return t.some((t) => {
|
|
@@ -31,7 +31,7 @@ function Ue(e, t) {
|
|
|
31
31
|
}
|
|
32
32
|
//#endregion
|
|
33
33
|
//#region node_modules/.pnpm/prismjs@1.30.0/node_modules/prismjs/themes/prism-tomorrow.css
|
|
34
|
-
var
|
|
34
|
+
var Ue = /* @__PURE__ */ e((/* @__PURE__ */ t(((e, t) => {
|
|
35
35
|
var n = function(e) {
|
|
36
36
|
var t = /(?:^|\s)lang(?:uage)?-([\w-]+)(?=\s|$)/i, n = 0, r = {}, i = {
|
|
37
37
|
manual: e.Prism && e.Prism.manual,
|
|
@@ -2399,11 +2399,11 @@ var We = /* @__PURE__ */ e((/* @__PURE__ */ t(((e, t) => {
|
|
|
2399
2399
|
})(Prism);
|
|
2400
2400
|
//#endregion
|
|
2401
2401
|
//#region src/components/CodeBlock.vue?vue&type=script&setup=true&lang.ts
|
|
2402
|
-
var
|
|
2402
|
+
var We = ["data-lang"], Ge = { class: "code-block-header" }, Ke = { class: "lang-label" }, qe = { class: "op-btn-group" }, Je = ["disabled", "title"], Ye = ["title", "innerHTML"], Xe = { class: "pre-container" }, Ze = {
|
|
2403
2403
|
key: 0,
|
|
2404
2404
|
class: "line-numbers-rows",
|
|
2405
2405
|
"aria-hidden": "true"
|
|
2406
|
-
},
|
|
2406
|
+
}, Qe = ["innerHTML"], $e = ["srcdoc"], et = "<svg width=\"16\" height=\"16\" viewBox=\"0 0 16 16\"><path fill=\"currentColor\" d=\"M4 2a2 2 0 0 1 2-2h6a2 2 0 0 1 2 2v10a2 2 0 0 1-2 2H6a2 2 0 0 1-2-2V2zm2 0v10h6V2H6zm-1 2V2a1 1 0 0 1 1-1h6a1 1 0 0 1 1 1v10a1 1 0 0 1-1 1H7a1 1 0 0 1-1-1v-8zm-2 2H2V14a2 2 0 0 0 2 2h6v-2a2 2 0 0 0-2-2H4V4zm0 0v10a1 1 0 0 0 1 1h6a1 1 0 0 0 1-1V4H4z\"/></svg>", tt = "<svg width=\"17\" height=\"17\" viewBox=\"0 0 20 20\"><path fill=\"currentColor\" d=\"M2 5a2 2 0 0 1 2-2h12a2 2 0 0 1 2 2v10a2 2 0 0 1-2 2H4a2 2 0 0 1-2-2V5zm2 0v10h12V5H4zm3.6 3.55l1.4 1.45l-1.4 1.45L7 11.38l2-2l-2-2zm5.4.83l-1.4-1.45L13 6.62l2 2l-2 2z\"/></svg>", nt = "<svg width=\"17\" height=\"17\" viewBox=\"0 0 20 20\"><path fill=\"currentColor\" d=\"M6.23 4.81a1 1 0 0 1 1.41 0L10 7.17l2.36-2.36a1 1 0 0 1 1.41 1.41L11.41 8.59l2.36 2.36a1 1 0 1 1-1.41 1.41L10 10l-2.36 2.36a1 1 0 0 1-1.41-1.41L8.59 8.59 6.23 6.23a1 1 0 0 1 0-1.41z\"/></svg>", rt = "<svg width=\"16\" height=\"16\" viewBox=\"0 0 24 24\"><path fill=\"currentColor\" d=\"M9 16.2L4.8 12l-1.4 1.4L9 19 21 7l-1.4-1.4L9 16.2z\"/></svg>", it = "<svg width=\"16\" height=\"16\" viewBox=\"0 0 24 24\"><path fill=\"currentColor\" d=\"M7 14H5v5h5v-2H7v-3zm-2-4h2V7h3V5H5v5zm12 7h-3v2h5v-5h-2v3zM14 5v2h3v3h2V5h-5z\"/></svg>", at = "<svg width=\"16\" height=\"16\" viewBox=\"0 0 24 24\"><path fill=\"currentColor\" d=\"M5 16h3v3h2v-5H5v2zm3-8H5v2h5V5H8v3zm6 11h2v-3h3v-2h-5v5zm2-11V5h-2v5h5V8h-3z\"/></svg>", ot = "<svg width=\"16\" height=\"16\" viewBox=\"0 0 24 24\"><path fill=\"currentColor\" d=\"M16.59 8.59L12 13.17 7.41 8.59 6 10l6 6 6-6z\"/></svg>", st = "<svg width=\"16\" height=\"16\" viewBox=\"0 0 24 24\"><path fill=\"currentColor\" d=\"M12 8l-6 6 1.41 1.41L12 10.83l4.59 4.58L18 14z\"/></svg>", ct = /* @__PURE__ */ ke({
|
|
2407
2407
|
__name: "CodeBlock",
|
|
2408
2408
|
props: {
|
|
2409
2409
|
code: {},
|
|
@@ -2421,103 +2421,103 @@ var Ge = ["data-lang"], Ke = { class: "code-block-header" }, qe = { class: "lang
|
|
|
2421
2421
|
}
|
|
2422
2422
|
},
|
|
2423
2423
|
setup(e) {
|
|
2424
|
-
let t = e, n =
|
|
2424
|
+
let t = e, n = z(!1), r = z(!1), i = z(null), a = z("300px"), o = z(!1), s = z(!1), c = z(!1), l = z(null), u = je("isMarkdownDark"), d = P(() => u ? u.value : !1), f = z(!0), p = z(!1), m = z(!1), h = z(null), g = P(() => {
|
|
2425
2425
|
if (!t.code) return 0;
|
|
2426
2426
|
let e = t.code.match(/\n(?!$)/g);
|
|
2427
2427
|
return e ? e.length + 1 : 1;
|
|
2428
|
-
}),
|
|
2429
|
-
function
|
|
2428
|
+
}), _ = z(""), v = z(!1), y = z("0px"), b = z("0px"), x = P(() => o.value ? "正在发布..." : s.value ? "已发布成功" : "发布 HTML"), S = `iframe-${Math.random().toString(36).substr(2, 9)}-${Date.now()}`;
|
|
2429
|
+
function C() {
|
|
2430
2430
|
return t.language.toLowerCase() === "html" || t.language.toLowerCase() === "markup";
|
|
2431
2431
|
}
|
|
2432
|
-
function
|
|
2432
|
+
function w() {
|
|
2433
2433
|
let e = t.language || "plaintext";
|
|
2434
|
-
return
|
|
2434
|
+
return Ue.default.languages[e] ? Ue.default.highlight(t.code, Ue.default.languages[e], e) : Ue.default.util.encode(t.code);
|
|
2435
2435
|
}
|
|
2436
|
-
let
|
|
2437
|
-
|
|
2438
|
-
},
|
|
2436
|
+
let T = z(""), E = () => {
|
|
2437
|
+
T.value = w();
|
|
2438
|
+
}, D = () => {
|
|
2439
2439
|
if (!t.enableCollapse) {
|
|
2440
|
-
|
|
2440
|
+
p.value = !1;
|
|
2441
2441
|
return;
|
|
2442
2442
|
}
|
|
2443
|
-
|
|
2444
|
-
},
|
|
2445
|
-
|
|
2446
|
-
},
|
|
2443
|
+
h.value && (p.value = h.value.scrollHeight > t.collapseMaxHeight);
|
|
2444
|
+
}, O = () => {
|
|
2445
|
+
f.value = !f.value, h.value && (h.value.scrollTop = 0, m.value = !1);
|
|
2446
|
+
}, k = P(() => t.enableCollapse && f.value && p.value && !c.value ? {
|
|
2447
2447
|
maxHeight: `${t.collapseMaxHeight}px`,
|
|
2448
2448
|
overflowY: "auto"
|
|
2449
|
-
} : {}),
|
|
2450
|
-
if (
|
|
2451
|
-
let { scrollTop: e, scrollHeight: t, clientHeight: n } =
|
|
2452
|
-
|
|
2449
|
+
} : {}), A = () => {
|
|
2450
|
+
if (h.value) {
|
|
2451
|
+
let { scrollTop: e, scrollHeight: t, clientHeight: n } = h.value;
|
|
2452
|
+
m.value = t - e <= n + 15;
|
|
2453
2453
|
}
|
|
2454
2454
|
};
|
|
2455
|
-
|
|
2455
|
+
E(), ze(() => [t.code, t.language], () => {
|
|
2456
2456
|
let e = !0;
|
|
2457
|
-
if (
|
|
2458
|
-
let { scrollTop: t, scrollHeight: n, clientHeight: r } =
|
|
2457
|
+
if (h.value) {
|
|
2458
|
+
let { scrollTop: t, scrollHeight: n, clientHeight: r } = h.value;
|
|
2459
2459
|
e = n <= r || n - t <= r + 30;
|
|
2460
2460
|
}
|
|
2461
|
-
|
|
2462
|
-
|
|
2461
|
+
E(), setTimeout(() => {
|
|
2462
|
+
D(), h.value && (e && (h.value.scrollTop = h.value.scrollHeight), A());
|
|
2463
2463
|
}, 50);
|
|
2464
2464
|
});
|
|
2465
|
-
let
|
|
2465
|
+
let j = () => {
|
|
2466
2466
|
r.value = !0;
|
|
2467
|
-
},
|
|
2467
|
+
}, ee = () => {
|
|
2468
2468
|
r.value = !1, a.value = "300px";
|
|
2469
|
-
},
|
|
2469
|
+
}, M = (e, t, n = 2e3) => {
|
|
2470
2470
|
if (!t) {
|
|
2471
2471
|
console.warn("showTooltip: button is null");
|
|
2472
2472
|
return;
|
|
2473
2473
|
}
|
|
2474
|
-
|
|
2474
|
+
_.value = e;
|
|
2475
2475
|
let r = t.getBoundingClientRect(), i = r.left + r.width / 2, a = r.top;
|
|
2476
|
-
|
|
2476
|
+
y.value = `${i}px`, b.value = `${a}px`, console.log("Tooltip:", {
|
|
2477
2477
|
message: e,
|
|
2478
2478
|
left: i,
|
|
2479
2479
|
top: a,
|
|
2480
2480
|
visible: !0
|
|
2481
|
-
}),
|
|
2482
|
-
|
|
2481
|
+
}), v.value = !0, setTimeout(() => {
|
|
2482
|
+
v.value = !1;
|
|
2483
2483
|
}, n);
|
|
2484
|
-
},
|
|
2484
|
+
}, N = async (e) => {
|
|
2485
2485
|
let r = e.currentTarget;
|
|
2486
2486
|
try {
|
|
2487
2487
|
let e = t.code.replace(/\u00A0/g, " ");
|
|
2488
|
-
await navigator.clipboard.writeText(e), n.value = !0,
|
|
2488
|
+
await navigator.clipboard.writeText(e), n.value = !0, M("已复制", r), setTimeout(() => {
|
|
2489
2489
|
n.value = !1;
|
|
2490
2490
|
}, 1700);
|
|
2491
2491
|
} catch (e) {
|
|
2492
|
-
console.error("复制失败:", e),
|
|
2492
|
+
console.error("复制失败:", e), M("复制失败", r);
|
|
2493
2493
|
}
|
|
2494
|
-
},
|
|
2494
|
+
}, te = async (e) => {
|
|
2495
2495
|
if (!t.publishUrl || o.value) return;
|
|
2496
2496
|
let n = e.currentTarget;
|
|
2497
|
-
o.value = !0, s.value = !1,
|
|
2497
|
+
o.value = !0, s.value = !1, M("正在发布...", n, 1e4);
|
|
2498
2498
|
try {
|
|
2499
2499
|
let e = await (await fetch(t.publishUrl, {
|
|
2500
2500
|
method: "POST",
|
|
2501
2501
|
headers: { "Content-Type": "application/json" },
|
|
2502
2502
|
body: JSON.stringify({ html: t.code })
|
|
2503
2503
|
})).json();
|
|
2504
|
-
e.code === 0 ? (s.value = !0, t.onPublished && e.url ? (t.onPublished(e.url),
|
|
2504
|
+
e.code === 0 ? (s.value = !0, t.onPublished && e.url ? (t.onPublished(e.url), M("已发布成功", n)) : e.url ? (await navigator.clipboard.writeText(e.url), M("已发布,URL 已复制", n)) : M("已发布成功", n), setTimeout(() => {
|
|
2505
2505
|
s.value = !1;
|
|
2506
|
-
}, 2e3)) : (
|
|
2506
|
+
}, 2e3)) : (M(`发布失败: ${e.msg || "未知错误"}`, n), console.error("发布失败:", e.msg || "未知错误"));
|
|
2507
2507
|
} catch (e) {
|
|
2508
|
-
|
|
2508
|
+
M("发布失败,请检查网络", n), console.error("发布失败:", e);
|
|
2509
2509
|
} finally {
|
|
2510
2510
|
o.value = !1;
|
|
2511
2511
|
}
|
|
2512
|
-
},
|
|
2512
|
+
}, ne = () => {
|
|
2513
2513
|
c.value = !0, document.body.style.overflow = "hidden";
|
|
2514
|
-
},
|
|
2514
|
+
}, re = () => {
|
|
2515
2515
|
c.value = !1, document.body.style.overflow = "";
|
|
2516
|
-
},
|
|
2516
|
+
}, ie = P(() => {
|
|
2517
2517
|
let e = `
|
|
2518
2518
|
<script>
|
|
2519
2519
|
(function() {
|
|
2520
|
-
const iframeId = '${
|
|
2520
|
+
const iframeId = '${S}';
|
|
2521
2521
|
|
|
2522
2522
|
function sendHeight() {
|
|
2523
2523
|
const height = Math.max(
|
|
@@ -2558,150 +2558,154 @@ var Ge = ["data-lang"], Ke = { class: "code-block-header" }, qe = { class: "lang
|
|
|
2558
2558
|
<\/script>
|
|
2559
2559
|
`;
|
|
2560
2560
|
return t.code.toLowerCase().includes("</body>") ? t.code.replace("</body>", `${e}</body>`) : t.code + e;
|
|
2561
|
-
}),
|
|
2562
|
-
if (e.data && e.data.type === "iframe-height" && e.data.iframeId ===
|
|
2561
|
+
}), ae = () => {}, oe = (e) => {
|
|
2562
|
+
if (e.data && e.data.type === "iframe-height" && e.data.iframeId === S) {
|
|
2563
2563
|
let t = e.data.height;
|
|
2564
2564
|
a.value = `${Math.max(100, Math.min(1e3, t))}px`;
|
|
2565
2565
|
}
|
|
2566
|
-
},
|
|
2567
|
-
e.key === "Escape" && c.value &&
|
|
2568
|
-
},
|
|
2569
|
-
return
|
|
2570
|
-
window.addEventListener("message",
|
|
2571
|
-
|
|
2572
|
-
}, 50), typeof ResizeObserver < "u" &&
|
|
2573
|
-
|
|
2574
|
-
}),
|
|
2575
|
-
}),
|
|
2576
|
-
window.removeEventListener("message",
|
|
2577
|
-
}), (t, n) => (
|
|
2566
|
+
}, se = (e) => {
|
|
2567
|
+
e.key === "Escape" && c.value && re();
|
|
2568
|
+
}, ce = null;
|
|
2569
|
+
return Pe(() => {
|
|
2570
|
+
window.addEventListener("message", oe), window.addEventListener("keydown", se), setTimeout(() => {
|
|
2571
|
+
D(), A();
|
|
2572
|
+
}, 50), typeof ResizeObserver < "u" && h.value && (ce = new ResizeObserver(() => {
|
|
2573
|
+
D();
|
|
2574
|
+
}), ce.observe(h.value));
|
|
2575
|
+
}), Fe(() => {
|
|
2576
|
+
window.removeEventListener("message", oe), window.removeEventListener("keydown", se), document.body.style.overflow = "", ce && ce.disconnect();
|
|
2577
|
+
}), (t, n) => (R(), Oe(De, {
|
|
2578
2578
|
to: "body",
|
|
2579
2579
|
disabled: !c.value
|
|
2580
|
-
}, [
|
|
2580
|
+
}, [L("div", { class: Me({ "markdown-body": c.value }) }, [L("div", {
|
|
2581
2581
|
ref_key: "wrapperRef",
|
|
2582
2582
|
ref: l,
|
|
2583
|
-
class:
|
|
2583
|
+
class: Me(["code-block-wrapper", {
|
|
2584
|
+
fullscreen: c.value,
|
|
2585
|
+
"theme-dark": d.value,
|
|
2586
|
+
"theme-light": !d.value
|
|
2587
|
+
}]),
|
|
2584
2588
|
"data-lang": e.language
|
|
2585
2589
|
}, [
|
|
2586
|
-
(
|
|
2590
|
+
(R(), Oe(De, { to: "body" }, [v.value ? (R(), I("div", {
|
|
2587
2591
|
key: 0,
|
|
2588
2592
|
class: "code-block-tooltip",
|
|
2589
|
-
style:
|
|
2590
|
-
left:
|
|
2591
|
-
top:
|
|
2593
|
+
style: Ne({
|
|
2594
|
+
left: y.value,
|
|
2595
|
+
top: b.value
|
|
2592
2596
|
})
|
|
2593
|
-
},
|
|
2594
|
-
|
|
2595
|
-
|
|
2597
|
+
}, Le(_.value), 5)) : F("", !0)])),
|
|
2598
|
+
L("div", Ge, [L("span", Ke, Le(e.language.toUpperCase()), 1), L("div", qe, [
|
|
2599
|
+
L("button", {
|
|
2596
2600
|
class: "copy-code-button",
|
|
2597
2601
|
type: "button",
|
|
2598
2602
|
title: "复制代码",
|
|
2599
|
-
onClick:
|
|
2600
|
-
innerHTML:
|
|
2603
|
+
onClick: N,
|
|
2604
|
+
innerHTML: et
|
|
2601
2605
|
}),
|
|
2602
|
-
|
|
2606
|
+
C() && !r.value ? (R(), I("button", {
|
|
2603
2607
|
key: 0,
|
|
2604
2608
|
class: "preview-html-button",
|
|
2605
2609
|
type: "button",
|
|
2606
2610
|
title: "预览 HTML",
|
|
2607
|
-
onClick:
|
|
2608
|
-
innerHTML:
|
|
2609
|
-
})) :
|
|
2610
|
-
|
|
2611
|
+
onClick: j,
|
|
2612
|
+
innerHTML: tt
|
|
2613
|
+
})) : F("", !0),
|
|
2614
|
+
C() && e.publishUrl ? (R(), I("button", {
|
|
2611
2615
|
key: 1,
|
|
2612
2616
|
class: "publish-html-button",
|
|
2613
2617
|
disabled: o.value,
|
|
2614
2618
|
type: "button",
|
|
2615
|
-
title:
|
|
2616
|
-
onClick:
|
|
2617
|
-
innerHTML:
|
|
2618
|
-
}, null, 8,
|
|
2619
|
-
e.enableCollapse &&
|
|
2619
|
+
title: x.value,
|
|
2620
|
+
onClick: te,
|
|
2621
|
+
innerHTML: rt
|
|
2622
|
+
}, null, 8, Je)) : F("", !0),
|
|
2623
|
+
e.enableCollapse && p.value && !c.value ? (R(), I("button", {
|
|
2620
2624
|
key: 2,
|
|
2621
2625
|
class: "collapse-toggle-button",
|
|
2622
2626
|
type: "button",
|
|
2623
|
-
title:
|
|
2624
|
-
onClick:
|
|
2625
|
-
innerHTML:
|
|
2626
|
-
}, null, 8,
|
|
2627
|
-
c.value ?
|
|
2627
|
+
title: f.value ? "展开代码" : "折叠代码",
|
|
2628
|
+
onClick: O,
|
|
2629
|
+
innerHTML: f.value ? ot : st
|
|
2630
|
+
}, null, 8, Ye)) : F("", !0),
|
|
2631
|
+
c.value ? F("", !0) : (R(), I("button", {
|
|
2628
2632
|
key: 3,
|
|
2629
2633
|
class: "fullscreen-button",
|
|
2630
2634
|
type: "button",
|
|
2631
2635
|
title: "全屏",
|
|
2632
|
-
onClick:
|
|
2633
|
-
innerHTML:
|
|
2636
|
+
onClick: ne,
|
|
2637
|
+
innerHTML: it
|
|
2634
2638
|
})),
|
|
2635
|
-
c.value ? (
|
|
2639
|
+
c.value ? (R(), I("button", {
|
|
2636
2640
|
key: 4,
|
|
2637
2641
|
class: "exit-fullscreen-button",
|
|
2638
2642
|
type: "button",
|
|
2639
2643
|
title: "退出全屏",
|
|
2640
|
-
onClick:
|
|
2641
|
-
innerHTML:
|
|
2642
|
-
})) :
|
|
2643
|
-
r.value ? (
|
|
2644
|
+
onClick: re,
|
|
2645
|
+
innerHTML: at
|
|
2646
|
+
})) : F("", !0),
|
|
2647
|
+
r.value ? (R(), I("button", {
|
|
2644
2648
|
key: 5,
|
|
2645
2649
|
class: "close-preview-button",
|
|
2646
2650
|
type: "button",
|
|
2647
2651
|
title: "关闭预览",
|
|
2648
|
-
onClick:
|
|
2649
|
-
innerHTML:
|
|
2650
|
-
})) :
|
|
2652
|
+
onClick: ee,
|
|
2653
|
+
innerHTML: nt
|
|
2654
|
+
})) : F("", !0)
|
|
2651
2655
|
])]),
|
|
2652
|
-
|
|
2653
|
-
|
|
2656
|
+
Be(L("div", Xe, [
|
|
2657
|
+
L("pre", {
|
|
2654
2658
|
ref_key: "preRef",
|
|
2655
|
-
ref:
|
|
2656
|
-
class:
|
|
2657
|
-
"is-collapsed": e.enableCollapse &&
|
|
2659
|
+
ref: h,
|
|
2660
|
+
class: Me([`language-${e.language}`, {
|
|
2661
|
+
"is-collapsed": e.enableCollapse && f.value && p.value && !c.value,
|
|
2658
2662
|
"line-numbers": e.showLineNumbers
|
|
2659
2663
|
}]),
|
|
2660
|
-
style:
|
|
2661
|
-
onScroll:
|
|
2662
|
-
}, [e.showLineNumbers ? (
|
|
2663
|
-
class:
|
|
2664
|
-
innerHTML:
|
|
2665
|
-
}, null, 10,
|
|
2666
|
-
e.enableCollapse &&
|
|
2664
|
+
style: Ne(k.value),
|
|
2665
|
+
onScroll: A
|
|
2666
|
+
}, [e.showLineNumbers ? (R(), I("span", Ze, [(R(!0), I(Ee, null, Ie(g.value, (e) => (R(), I("span", { key: e }))), 128))])) : F("", !0), L("code", {
|
|
2667
|
+
class: Me(`language-${e.language}`),
|
|
2668
|
+
innerHTML: T.value
|
|
2669
|
+
}, null, 10, Qe)], 38),
|
|
2670
|
+
e.enableCollapse && p.value && f.value && !c.value ? (R(), I("div", {
|
|
2667
2671
|
key: 0,
|
|
2668
2672
|
class: "collapse-expand-bar",
|
|
2669
|
-
onClick:
|
|
2670
|
-
}, [n[0] ||=
|
|
2673
|
+
onClick: O
|
|
2674
|
+
}, [n[0] ||= L("span", { class: "expand-prompt-text" }, "展开全部代码", -1), L("span", {
|
|
2671
2675
|
class: "expand-prompt-icon",
|
|
2672
|
-
innerHTML:
|
|
2673
|
-
})])) :
|
|
2674
|
-
e.enableCollapse &&
|
|
2676
|
+
innerHTML: ot
|
|
2677
|
+
})])) : F("", !0),
|
|
2678
|
+
e.enableCollapse && p.value && !f.value && !c.value ? (R(), I("div", {
|
|
2675
2679
|
key: 1,
|
|
2676
2680
|
class: "collapse-expand-bar collapse-bar",
|
|
2677
|
-
onClick:
|
|
2678
|
-
}, [n[1] ||=
|
|
2681
|
+
onClick: O
|
|
2682
|
+
}, [n[1] ||= L("span", { class: "expand-prompt-text" }, "收起全部代码", -1), L("span", {
|
|
2679
2683
|
class: "expand-prompt-icon",
|
|
2680
|
-
innerHTML:
|
|
2681
|
-
})])) :
|
|
2682
|
-
], 512), [[
|
|
2683
|
-
r.value ? (
|
|
2684
|
+
innerHTML: st
|
|
2685
|
+
})])) : F("", !0)
|
|
2686
|
+
], 512), [[Re, !r.value]]),
|
|
2687
|
+
r.value ? (R(), I("div", {
|
|
2684
2688
|
key: 0,
|
|
2685
2689
|
class: "iframe-wrapper",
|
|
2686
|
-
style:
|
|
2687
|
-
}, [
|
|
2690
|
+
style: Ne({ height: a.value })
|
|
2691
|
+
}, [L("iframe", {
|
|
2688
2692
|
ref_key: "previewIframe",
|
|
2689
2693
|
ref: i,
|
|
2690
2694
|
class: "html-preview-iframe",
|
|
2691
|
-
srcdoc:
|
|
2695
|
+
srcdoc: ie.value,
|
|
2692
2696
|
sandbox: "allow-scripts allow-forms allow-popups allow-modals allow-same-origin",
|
|
2693
|
-
onLoad:
|
|
2694
|
-
}, null, 40,
|
|
2695
|
-
], 10,
|
|
2697
|
+
onLoad: ae
|
|
2698
|
+
}, null, 40, $e)], 4)) : F("", !0)
|
|
2699
|
+
], 10, We)], 2)], 8, ["disabled"]));
|
|
2696
2700
|
}
|
|
2697
|
-
}),
|
|
2701
|
+
}), lt = (e, t) => {
|
|
2698
2702
|
let n = e.__vccOpts || e;
|
|
2699
2703
|
for (let [e, r] of t) n[e] = r;
|
|
2700
2704
|
return n;
|
|
2701
|
-
},
|
|
2705
|
+
}, ut = /* @__PURE__ */ lt(ct, [["__scopeId", "data-v-aa3e2800"]]);
|
|
2702
2706
|
//#endregion
|
|
2703
2707
|
//#region src/plugins/custom/codeBlockPlugin.ts
|
|
2704
|
-
function
|
|
2708
|
+
function dt(e) {
|
|
2705
2709
|
let { priority: t = 70, languageAliases: r = {}, publishUrl: i, onPublished: a, cssUrl: o, enableCollapse: s = !0, collapseMaxHeight: c = 300, showLineNumbers: l = !0 } = e || {};
|
|
2706
2710
|
return o && typeof window < "u" && n(o), {
|
|
2707
2711
|
name: "codeblock",
|
|
@@ -2709,11 +2713,11 @@ function ft(e) {
|
|
|
2709
2713
|
test: (e) => e.type !== "tag" || e.name !== "pre" ? !1 : !!e.children?.some((e) => e.type === "tag" && e.name === "code"),
|
|
2710
2714
|
render: (e, t, n, o) => {
|
|
2711
2715
|
let u = e.children?.find((e) => e.type === "tag" && e.name === "code");
|
|
2712
|
-
if (!u) return
|
|
2716
|
+
if (!u) return Ae("pre", {}, "");
|
|
2713
2717
|
let d = (u.attribs?.class || "").match(/language-(\w+)/), f = d ? d[1] : "plaintext";
|
|
2714
2718
|
r[f] && (f = r[f]);
|
|
2715
2719
|
let p = (e) => e.type === "text" ? e.data || "" : e.children ? e.children.map(p).join("") : "";
|
|
2716
|
-
return
|
|
2720
|
+
return Ae(ut, {
|
|
2717
2721
|
code: p(u),
|
|
2718
2722
|
language: f,
|
|
2719
2723
|
publishUrl: i,
|
|
@@ -2727,7 +2731,7 @@ function ft(e) {
|
|
|
2727
2731
|
}
|
|
2728
2732
|
//#endregion
|
|
2729
2733
|
//#region src/plugins/custom/emojiPlugin.ts
|
|
2730
|
-
function
|
|
2734
|
+
function ft(e) {
|
|
2731
2735
|
let { priority: t = 10, customEmojis: n = {} } = e || {}, r = {
|
|
2732
2736
|
":smile:": "😊",
|
|
2733
2737
|
":heart:": "❤️",
|
|
@@ -2757,7 +2761,7 @@ function pt(e) {
|
|
|
2757
2761
|
}
|
|
2758
2762
|
//#endregion
|
|
2759
2763
|
//#region node_modules/.pnpm/mermaid@11.12.0/node_modules/mermaid/dist/chunks/mermaid.core/chunk-KS23V3DP.mjs
|
|
2760
|
-
var
|
|
2764
|
+
var pt = {
|
|
2761
2765
|
name: "mermaid",
|
|
2762
2766
|
version: "11.12.0",
|
|
2763
2767
|
description: "Markdown-ish syntax for generating flowcharts, mindmaps, sequence diagrams, class diagrams, gantt charts, git graphs and more.",
|
|
@@ -2890,84 +2894,84 @@ var mt = {
|
|
|
2890
2894
|
},
|
|
2891
2895
|
files: ["dist/", "README.md"],
|
|
2892
2896
|
publishConfig: { access: "public" }
|
|
2893
|
-
},
|
|
2897
|
+
}, mt = /* @__PURE__ */ a((e) => {
|
|
2894
2898
|
let { securityLevel: t } = g(), n = o("body");
|
|
2895
2899
|
return t === "sandbox" && (n = o((o(`#i${e}`).node()?.contentDocument ?? document).body)), n.select(`#${e}`);
|
|
2896
2900
|
}, "selectSvgElement");
|
|
2897
2901
|
//#endregion
|
|
2898
2902
|
//#region node_modules/.pnpm/mermaid@11.12.0/node_modules/mermaid/dist/chunks/mermaid.core/chunk-MI3HLSF2.mjs
|
|
2899
|
-
function
|
|
2903
|
+
function ht(e) {
|
|
2900
2904
|
return e == null;
|
|
2901
2905
|
}
|
|
2902
|
-
a(
|
|
2903
|
-
function
|
|
2906
|
+
a(ht, "isNothing");
|
|
2907
|
+
function gt(e) {
|
|
2904
2908
|
return typeof e == "object" && !!e;
|
|
2905
2909
|
}
|
|
2906
|
-
a(
|
|
2907
|
-
function
|
|
2908
|
-
return Array.isArray(e) ? e :
|
|
2910
|
+
a(gt, "isObject");
|
|
2911
|
+
function _t(e) {
|
|
2912
|
+
return Array.isArray(e) ? e : ht(e) ? [] : [e];
|
|
2909
2913
|
}
|
|
2910
|
-
a(
|
|
2911
|
-
function
|
|
2914
|
+
a(_t, "toArray");
|
|
2915
|
+
function vt(e, t) {
|
|
2912
2916
|
var n, r, i, a;
|
|
2913
2917
|
if (t) for (a = Object.keys(t), n = 0, r = a.length; n < r; n += 1) i = a[n], e[i] = t[i];
|
|
2914
2918
|
return e;
|
|
2915
2919
|
}
|
|
2916
|
-
a(
|
|
2917
|
-
function
|
|
2920
|
+
a(vt, "extend");
|
|
2921
|
+
function yt(e, t) {
|
|
2918
2922
|
var n = "", r;
|
|
2919
2923
|
for (r = 0; r < t; r += 1) n += e;
|
|
2920
2924
|
return n;
|
|
2921
2925
|
}
|
|
2922
|
-
a(
|
|
2923
|
-
function
|
|
2926
|
+
a(yt, "repeat");
|
|
2927
|
+
function bt(e) {
|
|
2924
2928
|
return e === 0 && 1 / e == -Infinity;
|
|
2925
2929
|
}
|
|
2926
|
-
a(
|
|
2927
|
-
var
|
|
2928
|
-
isNothing:
|
|
2929
|
-
isObject:
|
|
2930
|
-
toArray:
|
|
2931
|
-
repeat:
|
|
2932
|
-
isNegativeZero:
|
|
2933
|
-
extend:
|
|
2930
|
+
a(bt, "isNegativeZero");
|
|
2931
|
+
var B = {
|
|
2932
|
+
isNothing: ht,
|
|
2933
|
+
isObject: gt,
|
|
2934
|
+
toArray: _t,
|
|
2935
|
+
repeat: yt,
|
|
2936
|
+
isNegativeZero: bt,
|
|
2937
|
+
extend: vt
|
|
2934
2938
|
};
|
|
2935
|
-
function
|
|
2939
|
+
function xt(e, t) {
|
|
2936
2940
|
var n = "", r = e.reason || "(unknown reason)";
|
|
2937
2941
|
return e.mark ? (e.mark.name && (n += "in \"" + e.mark.name + "\" "), n += "(" + (e.mark.line + 1) + ":" + (e.mark.column + 1) + ")", !t && e.mark.snippet && (n += "\n\n" + e.mark.snippet), r + " " + n) : r;
|
|
2938
2942
|
}
|
|
2939
|
-
a(
|
|
2940
|
-
function
|
|
2941
|
-
Error.call(this), this.name = "YAMLException", this.reason = e, this.mark = t, this.message =
|
|
2943
|
+
a(xt, "formatError");
|
|
2944
|
+
function St(e, t) {
|
|
2945
|
+
Error.call(this), this.name = "YAMLException", this.reason = e, this.mark = t, this.message = xt(this, !1), Error.captureStackTrace ? Error.captureStackTrace(this, this.constructor) : this.stack = (/* @__PURE__ */ Error()).stack || "";
|
|
2942
2946
|
}
|
|
2943
|
-
a(
|
|
2944
|
-
return this.name + ": " +
|
|
2947
|
+
a(St, "YAMLException$1"), St.prototype = Object.create(Error.prototype), St.prototype.constructor = St, St.prototype.toString = /* @__PURE__ */ a(function(e) {
|
|
2948
|
+
return this.name + ": " + xt(this, e);
|
|
2945
2949
|
}, "toString");
|
|
2946
|
-
var
|
|
2947
|
-
function
|
|
2950
|
+
var V = St;
|
|
2951
|
+
function Ct(e, t, n, r, i) {
|
|
2948
2952
|
var a = "", o = "", s = Math.floor(i / 2) - 1;
|
|
2949
2953
|
return r - t > s && (a = " ... ", t = r - s + a.length), n - r > s && (o = " ...", n = r + s - o.length), {
|
|
2950
2954
|
str: a + e.slice(t, n).replace(/\t/g, "→") + o,
|
|
2951
2955
|
pos: r - t + a.length
|
|
2952
2956
|
};
|
|
2953
2957
|
}
|
|
2954
|
-
a(
|
|
2955
|
-
function
|
|
2956
|
-
return
|
|
2958
|
+
a(Ct, "getLine");
|
|
2959
|
+
function wt(e, t) {
|
|
2960
|
+
return B.repeat(" ", t - e.length) + e;
|
|
2957
2961
|
}
|
|
2958
|
-
a(
|
|
2959
|
-
function
|
|
2962
|
+
a(wt, "padStart");
|
|
2963
|
+
function Tt(e, t) {
|
|
2960
2964
|
if (t = Object.create(t || null), !e.buffer) return null;
|
|
2961
2965
|
t.maxLength ||= 79, typeof t.indent != "number" && (t.indent = 1), typeof t.linesBefore != "number" && (t.linesBefore = 3), typeof t.linesAfter != "number" && (t.linesAfter = 2);
|
|
2962
2966
|
for (var n = /\r?\n|\r|\0/g, r = [0], i = [], a, o = -1; a = n.exec(e.buffer);) i.push(a.index), r.push(a.index + a[0].length), e.position <= a.index && o < 0 && (o = r.length - 2);
|
|
2963
2967
|
o < 0 && (o = r.length - 1);
|
|
2964
2968
|
var s = "", c, l, u = Math.min(e.line + t.linesAfter, i.length).toString().length, d = t.maxLength - (t.indent + u + 3);
|
|
2965
|
-
for (c = 1; c <= t.linesBefore && !(o - c < 0); c++) l =
|
|
2966
|
-
for (l =
|
|
2969
|
+
for (c = 1; c <= t.linesBefore && !(o - c < 0); c++) l = Ct(e.buffer, r[o - c], i[o - c], e.position - (r[o] - r[o - c]), d), s = B.repeat(" ", t.indent) + wt((e.line - c + 1).toString(), u) + " | " + l.str + "\n" + s;
|
|
2970
|
+
for (l = Ct(e.buffer, r[o], i[o], e.position, d), s += B.repeat(" ", t.indent) + wt((e.line + 1).toString(), u) + " | " + l.str + "\n", s += B.repeat("-", t.indent + u + 3 + l.pos) + "^\n", c = 1; c <= t.linesAfter && !(o + c >= i.length); c++) l = Ct(e.buffer, r[o + c], i[o + c], e.position - (r[o] - r[o + c]), d), s += B.repeat(" ", t.indent) + wt((e.line + c + 1).toString(), u) + " | " + l.str + "\n";
|
|
2967
2971
|
return s.replace(/\n$/, "");
|
|
2968
2972
|
}
|
|
2969
|
-
a(
|
|
2970
|
-
var
|
|
2973
|
+
a(Tt, "makeSnippet");
|
|
2974
|
+
var Et = Tt, Dt = [
|
|
2971
2975
|
"kind",
|
|
2972
2976
|
"multi",
|
|
2973
2977
|
"resolve",
|
|
@@ -2978,12 +2982,12 @@ var Dt = Et, Ot = [
|
|
|
2978
2982
|
"representName",
|
|
2979
2983
|
"defaultStyle",
|
|
2980
2984
|
"styleAliases"
|
|
2981
|
-
],
|
|
2985
|
+
], Ot = [
|
|
2982
2986
|
"scalar",
|
|
2983
2987
|
"sequence",
|
|
2984
2988
|
"mapping"
|
|
2985
2989
|
];
|
|
2986
|
-
function
|
|
2990
|
+
function kt(e) {
|
|
2987
2991
|
var t = {};
|
|
2988
2992
|
return e !== null && Object.keys(e).forEach(function(n) {
|
|
2989
2993
|
e[n].forEach(function(e) {
|
|
@@ -2991,19 +2995,19 @@ function At(e) {
|
|
|
2991
2995
|
});
|
|
2992
2996
|
}), t;
|
|
2993
2997
|
}
|
|
2994
|
-
a(
|
|
2995
|
-
function
|
|
2998
|
+
a(kt, "compileStyleAliases");
|
|
2999
|
+
function At(e, t) {
|
|
2996
3000
|
if (t ||= {}, Object.keys(t).forEach(function(t) {
|
|
2997
|
-
if (
|
|
3001
|
+
if (Dt.indexOf(t) === -1) throw new V("Unknown option \"" + t + "\" is met in definition of \"" + e + "\" YAML type.");
|
|
2998
3002
|
}), this.options = t, this.tag = e, this.kind = t.kind || null, this.resolve = t.resolve || function() {
|
|
2999
3003
|
return !0;
|
|
3000
3004
|
}, this.construct = t.construct || function(e) {
|
|
3001
3005
|
return e;
|
|
3002
|
-
}, this.instanceOf = t.instanceOf || null, this.predicate = t.predicate || null, this.represent = t.represent || null, this.representName = t.representName || null, this.defaultStyle = t.defaultStyle || null, this.multi = t.multi || !1, this.styleAliases =
|
|
3006
|
+
}, this.instanceOf = t.instanceOf || null, this.predicate = t.predicate || null, this.represent = t.represent || null, this.representName = t.representName || null, this.defaultStyle = t.defaultStyle || null, this.multi = t.multi || !1, this.styleAliases = kt(t.styleAliases || null), Ot.indexOf(this.kind) === -1) throw new V("Unknown kind \"" + this.kind + "\" is specified for \"" + e + "\" YAML type.");
|
|
3003
3007
|
}
|
|
3004
|
-
a(
|
|
3005
|
-
var
|
|
3006
|
-
function
|
|
3008
|
+
a(At, "Type$1");
|
|
3009
|
+
var H = At;
|
|
3010
|
+
function jt(e, t) {
|
|
3007
3011
|
var n = [];
|
|
3008
3012
|
return e[t].forEach(function(e) {
|
|
3009
3013
|
var t = n.length;
|
|
@@ -3012,8 +3016,8 @@ function Mt(e, t) {
|
|
|
3012
3016
|
}), n[t] = e;
|
|
3013
3017
|
}), n;
|
|
3014
3018
|
}
|
|
3015
|
-
a(
|
|
3016
|
-
function
|
|
3019
|
+
a(jt, "compileList");
|
|
3020
|
+
function Mt() {
|
|
3017
3021
|
var e = {
|
|
3018
3022
|
scalar: {},
|
|
3019
3023
|
sequence: {},
|
|
@@ -3032,65 +3036,65 @@ function Nt() {
|
|
|
3032
3036
|
for (a(r, "collectType"), t = 0, n = arguments.length; t < n; t += 1) arguments[t].forEach(r);
|
|
3033
3037
|
return e;
|
|
3034
3038
|
}
|
|
3035
|
-
a(
|
|
3036
|
-
function
|
|
3039
|
+
a(Mt, "compileMap");
|
|
3040
|
+
function Nt(e) {
|
|
3037
3041
|
return this.extend(e);
|
|
3038
3042
|
}
|
|
3039
|
-
a(
|
|
3043
|
+
a(Nt, "Schema$1"), Nt.prototype.extend = /* @__PURE__ */ a(function(e) {
|
|
3040
3044
|
var t = [], n = [];
|
|
3041
|
-
if (e instanceof
|
|
3045
|
+
if (e instanceof H) n.push(e);
|
|
3042
3046
|
else if (Array.isArray(e)) n = n.concat(e);
|
|
3043
3047
|
else if (e && (Array.isArray(e.implicit) || Array.isArray(e.explicit))) e.implicit && (t = t.concat(e.implicit)), e.explicit && (n = n.concat(e.explicit));
|
|
3044
|
-
else throw new
|
|
3048
|
+
else throw new V("Schema.extend argument should be a Type, [ Type ], or a schema definition ({ implicit: [...], explicit: [...] })");
|
|
3045
3049
|
t.forEach(function(e) {
|
|
3046
|
-
if (!(e instanceof
|
|
3047
|
-
if (e.loadKind && e.loadKind !== "scalar") throw new
|
|
3048
|
-
if (e.multi) throw new
|
|
3050
|
+
if (!(e instanceof H)) throw new V("Specified list of YAML types (or a single Type object) contains a non-Type object.");
|
|
3051
|
+
if (e.loadKind && e.loadKind !== "scalar") throw new V("There is a non-scalar type in the implicit list of a schema. Implicit resolving of such types is not supported.");
|
|
3052
|
+
if (e.multi) throw new V("There is a multi type in the implicit list of a schema. Multi tags can only be listed as explicit.");
|
|
3049
3053
|
}), n.forEach(function(e) {
|
|
3050
|
-
if (!(e instanceof
|
|
3054
|
+
if (!(e instanceof H)) throw new V("Specified list of YAML types (or a single Type object) contains a non-Type object.");
|
|
3051
3055
|
});
|
|
3052
|
-
var r = Object.create(
|
|
3053
|
-
return r.implicit = (this.implicit || []).concat(t), r.explicit = (this.explicit || []).concat(n), r.compiledImplicit =
|
|
3056
|
+
var r = Object.create(Nt.prototype);
|
|
3057
|
+
return r.implicit = (this.implicit || []).concat(t), r.explicit = (this.explicit || []).concat(n), r.compiledImplicit = jt(r, "implicit"), r.compiledExplicit = jt(r, "explicit"), r.compiledTypeMap = Mt(r.compiledImplicit, r.compiledExplicit), r;
|
|
3054
3058
|
}, "extend");
|
|
3055
|
-
var
|
|
3056
|
-
new
|
|
3059
|
+
var Pt = new Nt({ explicit: [
|
|
3060
|
+
new H("tag:yaml.org,2002:str", {
|
|
3057
3061
|
kind: "scalar",
|
|
3058
3062
|
construct: /* @__PURE__ */ a(function(e) {
|
|
3059
3063
|
return e === null ? "" : e;
|
|
3060
3064
|
}, "construct")
|
|
3061
3065
|
}),
|
|
3062
|
-
new
|
|
3066
|
+
new H("tag:yaml.org,2002:seq", {
|
|
3063
3067
|
kind: "sequence",
|
|
3064
3068
|
construct: /* @__PURE__ */ a(function(e) {
|
|
3065
3069
|
return e === null ? [] : e;
|
|
3066
3070
|
}, "construct")
|
|
3067
3071
|
}),
|
|
3068
|
-
new
|
|
3072
|
+
new H("tag:yaml.org,2002:map", {
|
|
3069
3073
|
kind: "mapping",
|
|
3070
3074
|
construct: /* @__PURE__ */ a(function(e) {
|
|
3071
3075
|
return e === null ? {} : e;
|
|
3072
3076
|
}, "construct")
|
|
3073
3077
|
})
|
|
3074
3078
|
] });
|
|
3075
|
-
function
|
|
3079
|
+
function Ft(e) {
|
|
3076
3080
|
if (e === null) return !0;
|
|
3077
3081
|
var t = e.length;
|
|
3078
3082
|
return t === 1 && e === "~" || t === 4 && (e === "null" || e === "Null" || e === "NULL");
|
|
3079
3083
|
}
|
|
3080
|
-
a(
|
|
3081
|
-
function
|
|
3084
|
+
a(Ft, "resolveYamlNull");
|
|
3085
|
+
function It() {
|
|
3082
3086
|
return null;
|
|
3083
3087
|
}
|
|
3084
|
-
a(
|
|
3085
|
-
function
|
|
3088
|
+
a(It, "constructYamlNull");
|
|
3089
|
+
function Lt(e) {
|
|
3086
3090
|
return e === null;
|
|
3087
3091
|
}
|
|
3088
|
-
a(
|
|
3089
|
-
var
|
|
3092
|
+
a(Lt, "isNull");
|
|
3093
|
+
var Rt = new H("tag:yaml.org,2002:null", {
|
|
3090
3094
|
kind: "scalar",
|
|
3091
|
-
resolve:
|
|
3092
|
-
construct:
|
|
3093
|
-
predicate:
|
|
3095
|
+
resolve: Ft,
|
|
3096
|
+
construct: It,
|
|
3097
|
+
predicate: Lt,
|
|
3094
3098
|
represent: {
|
|
3095
3099
|
canonical: /* @__PURE__ */ a(function() {
|
|
3096
3100
|
return "~";
|
|
@@ -3110,25 +3114,25 @@ var zt = new V("tag:yaml.org,2002:null", {
|
|
|
3110
3114
|
},
|
|
3111
3115
|
defaultStyle: "lowercase"
|
|
3112
3116
|
});
|
|
3113
|
-
function
|
|
3117
|
+
function zt(e) {
|
|
3114
3118
|
if (e === null) return !1;
|
|
3115
3119
|
var t = e.length;
|
|
3116
3120
|
return t === 4 && (e === "true" || e === "True" || e === "TRUE") || t === 5 && (e === "false" || e === "False" || e === "FALSE");
|
|
3117
3121
|
}
|
|
3118
|
-
a(
|
|
3119
|
-
function
|
|
3122
|
+
a(zt, "resolveYamlBoolean");
|
|
3123
|
+
function Bt(e) {
|
|
3120
3124
|
return e === "true" || e === "True" || e === "TRUE";
|
|
3121
3125
|
}
|
|
3122
|
-
a(
|
|
3123
|
-
function
|
|
3126
|
+
a(Bt, "constructYamlBoolean");
|
|
3127
|
+
function Vt(e) {
|
|
3124
3128
|
return Object.prototype.toString.call(e) === "[object Boolean]";
|
|
3125
3129
|
}
|
|
3126
|
-
a(
|
|
3127
|
-
var
|
|
3130
|
+
a(Vt, "isBoolean");
|
|
3131
|
+
var Ht = new H("tag:yaml.org,2002:bool", {
|
|
3128
3132
|
kind: "scalar",
|
|
3129
|
-
resolve:
|
|
3130
|
-
construct:
|
|
3131
|
-
predicate:
|
|
3133
|
+
resolve: zt,
|
|
3134
|
+
construct: Bt,
|
|
3135
|
+
predicate: Vt,
|
|
3132
3136
|
represent: {
|
|
3133
3137
|
lowercase: /* @__PURE__ */ a(function(e) {
|
|
3134
3138
|
return e ? "true" : "false";
|
|
@@ -3142,19 +3146,19 @@ var Ut = new V("tag:yaml.org,2002:bool", {
|
|
|
3142
3146
|
},
|
|
3143
3147
|
defaultStyle: "lowercase"
|
|
3144
3148
|
});
|
|
3145
|
-
function
|
|
3149
|
+
function Ut(e) {
|
|
3146
3150
|
return 48 <= e && e <= 57 || 65 <= e && e <= 70 || 97 <= e && e <= 102;
|
|
3147
3151
|
}
|
|
3148
|
-
a(
|
|
3149
|
-
function
|
|
3152
|
+
a(Ut, "isHexCode");
|
|
3153
|
+
function Wt(e) {
|
|
3150
3154
|
return 48 <= e && e <= 55;
|
|
3151
3155
|
}
|
|
3152
|
-
a(
|
|
3153
|
-
function
|
|
3156
|
+
a(Wt, "isOctCode");
|
|
3157
|
+
function Gt(e) {
|
|
3154
3158
|
return 48 <= e && e <= 57;
|
|
3155
3159
|
}
|
|
3156
|
-
a(
|
|
3157
|
-
function
|
|
3160
|
+
a(Gt, "isDecCode");
|
|
3161
|
+
function Kt(e) {
|
|
3158
3162
|
if (e === null) return !1;
|
|
3159
3163
|
var t = e.length, n = 0, r = !1, i;
|
|
3160
3164
|
if (!t) return !1;
|
|
@@ -3169,14 +3173,14 @@ function qt(e) {
|
|
|
3169
3173
|
}
|
|
3170
3174
|
if (i === "x") {
|
|
3171
3175
|
for (n++; n < t; n++) if (i = e[n], i !== "_") {
|
|
3172
|
-
if (!
|
|
3176
|
+
if (!Ut(e.charCodeAt(n))) return !1;
|
|
3173
3177
|
r = !0;
|
|
3174
3178
|
}
|
|
3175
3179
|
return r && i !== "_";
|
|
3176
3180
|
}
|
|
3177
3181
|
if (i === "o") {
|
|
3178
3182
|
for (n++; n < t; n++) if (i = e[n], i !== "_") {
|
|
3179
|
-
if (!
|
|
3183
|
+
if (!Wt(e.charCodeAt(n))) return !1;
|
|
3180
3184
|
r = !0;
|
|
3181
3185
|
}
|
|
3182
3186
|
return r && i !== "_";
|
|
@@ -3184,13 +3188,13 @@ function qt(e) {
|
|
|
3184
3188
|
}
|
|
3185
3189
|
if (i === "_") return !1;
|
|
3186
3190
|
for (; n < t; n++) if (i = e[n], i !== "_") {
|
|
3187
|
-
if (!
|
|
3191
|
+
if (!Gt(e.charCodeAt(n))) return !1;
|
|
3188
3192
|
r = !0;
|
|
3189
3193
|
}
|
|
3190
3194
|
return !(!r || i === "_");
|
|
3191
3195
|
}
|
|
3192
|
-
a(
|
|
3193
|
-
function
|
|
3196
|
+
a(Kt, "resolveYamlInteger");
|
|
3197
|
+
function qt(e) {
|
|
3194
3198
|
var t = e, n = 1, r;
|
|
3195
3199
|
if (t.indexOf("_") !== -1 && (t = t.replace(/_/g, "")), r = t[0], (r === "-" || r === "+") && (r === "-" && (n = -1), t = t.slice(1), r = t[0]), t === "0") return 0;
|
|
3196
3200
|
if (r === "0") {
|
|
@@ -3200,16 +3204,16 @@ function Jt(e) {
|
|
|
3200
3204
|
}
|
|
3201
3205
|
return n * parseInt(t, 10);
|
|
3202
3206
|
}
|
|
3203
|
-
a(
|
|
3204
|
-
function
|
|
3205
|
-
return Object.prototype.toString.call(e) === "[object Number]" && e % 1 == 0 && !
|
|
3207
|
+
a(qt, "constructYamlInteger");
|
|
3208
|
+
function Jt(e) {
|
|
3209
|
+
return Object.prototype.toString.call(e) === "[object Number]" && e % 1 == 0 && !B.isNegativeZero(e);
|
|
3206
3210
|
}
|
|
3207
|
-
a(
|
|
3208
|
-
var
|
|
3211
|
+
a(Jt, "isInteger");
|
|
3212
|
+
var Yt = new H("tag:yaml.org,2002:int", {
|
|
3209
3213
|
kind: "scalar",
|
|
3210
|
-
resolve:
|
|
3211
|
-
construct:
|
|
3212
|
-
predicate:
|
|
3214
|
+
resolve: Kt,
|
|
3215
|
+
construct: qt,
|
|
3216
|
+
predicate: Jt,
|
|
3213
3217
|
represent: {
|
|
3214
3218
|
binary: /* @__PURE__ */ a(function(e) {
|
|
3215
3219
|
return e >= 0 ? "0b" + e.toString(2) : "-0b" + e.toString(2).slice(1);
|
|
@@ -3231,18 +3235,18 @@ var Xt = new V("tag:yaml.org,2002:int", {
|
|
|
3231
3235
|
decimal: [10, "dec"],
|
|
3232
3236
|
hexadecimal: [16, "hex"]
|
|
3233
3237
|
}
|
|
3234
|
-
}),
|
|
3235
|
-
function
|
|
3236
|
-
return !(e === null || !
|
|
3238
|
+
}), Xt = /* @__PURE__ */ RegExp("^(?:[-+]?(?:[0-9][0-9_]*)(?:\\.[0-9_]*)?(?:[eE][-+]?[0-9]+)?|\\.[0-9_]+(?:[eE][-+]?[0-9]+)?|[-+]?\\.(?:inf|Inf|INF)|\\.(?:nan|NaN|NAN))$");
|
|
3239
|
+
function Zt(e) {
|
|
3240
|
+
return !(e === null || !Xt.test(e) || e[e.length - 1] === "_");
|
|
3237
3241
|
}
|
|
3238
|
-
a(
|
|
3239
|
-
function
|
|
3242
|
+
a(Zt, "resolveYamlFloat");
|
|
3243
|
+
function Qt(e) {
|
|
3240
3244
|
var t = e.replace(/_/g, "").toLowerCase(), n = t[0] === "-" ? -1 : 1;
|
|
3241
3245
|
return "+-".indexOf(t[0]) >= 0 && (t = t.slice(1)), t === ".inf" ? n === 1 ? Infinity : -Infinity : t === ".nan" ? NaN : n * parseFloat(t, 10);
|
|
3242
3246
|
}
|
|
3243
|
-
a(
|
|
3244
|
-
var
|
|
3245
|
-
function
|
|
3247
|
+
a(Qt, "constructYamlFloat");
|
|
3248
|
+
var $t = /^[-+]?[0-9]+e/;
|
|
3249
|
+
function en(e, t) {
|
|
3246
3250
|
var n;
|
|
3247
3251
|
if (isNaN(e)) switch (t) {
|
|
3248
3252
|
case "lowercase": return ".nan";
|
|
@@ -3259,34 +3263,34 @@ function tn(e, t) {
|
|
|
3259
3263
|
case "uppercase": return "-.INF";
|
|
3260
3264
|
case "camelcase": return "-.Inf";
|
|
3261
3265
|
}
|
|
3262
|
-
else if (
|
|
3263
|
-
return n = e.toString(10),
|
|
3266
|
+
else if (B.isNegativeZero(e)) return "-0.0";
|
|
3267
|
+
return n = e.toString(10), $t.test(n) ? n.replace("e", ".e") : n;
|
|
3264
3268
|
}
|
|
3265
|
-
a(
|
|
3266
|
-
function
|
|
3267
|
-
return Object.prototype.toString.call(e) === "[object Number]" && (e % 1 != 0 ||
|
|
3269
|
+
a(en, "representYamlFloat");
|
|
3270
|
+
function tn(e) {
|
|
3271
|
+
return Object.prototype.toString.call(e) === "[object Number]" && (e % 1 != 0 || B.isNegativeZero(e));
|
|
3268
3272
|
}
|
|
3269
|
-
a(
|
|
3270
|
-
var
|
|
3273
|
+
a(tn, "isFloat");
|
|
3274
|
+
var nn = new H("tag:yaml.org,2002:float", {
|
|
3271
3275
|
kind: "scalar",
|
|
3272
|
-
resolve:
|
|
3273
|
-
construct:
|
|
3274
|
-
predicate:
|
|
3275
|
-
represent:
|
|
3276
|
+
resolve: Zt,
|
|
3277
|
+
construct: Qt,
|
|
3278
|
+
predicate: tn,
|
|
3279
|
+
represent: en,
|
|
3276
3280
|
defaultStyle: "lowercase"
|
|
3277
|
-
}),
|
|
3278
|
-
|
|
3279
|
-
|
|
3280
|
-
|
|
3281
|
-
|
|
3282
|
-
] }),
|
|
3281
|
+
}), rn = Pt.extend({ implicit: [
|
|
3282
|
+
Rt,
|
|
3283
|
+
Ht,
|
|
3284
|
+
Yt,
|
|
3285
|
+
nn
|
|
3286
|
+
] }), an = rn, on = /* @__PURE__ */ RegExp("^([0-9][0-9][0-9][0-9])-([0-9][0-9])-([0-9][0-9])$"), sn = /* @__PURE__ */ RegExp("^([0-9][0-9][0-9][0-9])-([0-9][0-9]?)-([0-9][0-9]?)(?:[Tt]|[ \\t]+)([0-9][0-9]?):([0-9][0-9]):([0-9][0-9])(?:\\.([0-9]*))?(?:[ \\t]*(Z|([-+])([0-9][0-9]?)(?::([0-9][0-9]))?))?$");
|
|
3287
|
+
function cn(e) {
|
|
3288
|
+
return e === null ? !1 : on.exec(e) !== null || sn.exec(e) !== null;
|
|
3289
|
+
}
|
|
3290
|
+
a(cn, "resolveYamlTimestamp");
|
|
3283
3291
|
function ln(e) {
|
|
3284
|
-
return e === null ? !1 : sn.exec(e) !== null || cn.exec(e) !== null;
|
|
3285
|
-
}
|
|
3286
|
-
a(ln, "resolveYamlTimestamp");
|
|
3287
|
-
function un(e) {
|
|
3288
3292
|
var t, n, r, i, a, o, s, c = 0, l = null, u, d, f;
|
|
3289
|
-
if (t =
|
|
3293
|
+
if (t = on.exec(e), t === null && (t = sn.exec(e)), t === null) throw Error("Date resolve error");
|
|
3290
3294
|
if (n = +t[1], r = t[2] - 1, i = +t[3], !t[4]) return new Date(Date.UTC(n, r, i));
|
|
3291
3295
|
if (a = +t[4], o = +t[5], s = +t[6], t[7]) {
|
|
3292
3296
|
for (c = t[7].slice(0, 3); c.length < 3;) c += "0";
|
|
@@ -3294,65 +3298,65 @@ function un(e) {
|
|
|
3294
3298
|
}
|
|
3295
3299
|
return t[9] && (u = +t[10], d = +(t[11] || 0), l = (u * 60 + d) * 6e4, t[9] === "-" && (l = -l)), f = new Date(Date.UTC(n, r, i, a, o, s, c)), l && f.setTime(f.getTime() - l), f;
|
|
3296
3300
|
}
|
|
3297
|
-
a(
|
|
3298
|
-
function
|
|
3301
|
+
a(ln, "constructYamlTimestamp");
|
|
3302
|
+
function un(e) {
|
|
3299
3303
|
return e.toISOString();
|
|
3300
3304
|
}
|
|
3301
|
-
a(
|
|
3302
|
-
var
|
|
3305
|
+
a(un, "representYamlTimestamp");
|
|
3306
|
+
var dn = new H("tag:yaml.org,2002:timestamp", {
|
|
3303
3307
|
kind: "scalar",
|
|
3304
|
-
resolve:
|
|
3305
|
-
construct:
|
|
3308
|
+
resolve: cn,
|
|
3309
|
+
construct: ln,
|
|
3306
3310
|
instanceOf: Date,
|
|
3307
|
-
represent:
|
|
3311
|
+
represent: un
|
|
3308
3312
|
});
|
|
3309
|
-
function
|
|
3313
|
+
function fn(e) {
|
|
3310
3314
|
return e === "<<" || e === null;
|
|
3311
3315
|
}
|
|
3312
|
-
a(
|
|
3313
|
-
var
|
|
3316
|
+
a(fn, "resolveYamlMerge");
|
|
3317
|
+
var pn = new H("tag:yaml.org,2002:merge", {
|
|
3314
3318
|
kind: "scalar",
|
|
3315
|
-
resolve:
|
|
3316
|
-
}),
|
|
3317
|
-
function
|
|
3319
|
+
resolve: fn
|
|
3320
|
+
}), mn = "ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/=\n\r";
|
|
3321
|
+
function hn(e) {
|
|
3318
3322
|
if (e === null) return !1;
|
|
3319
|
-
var t, n, r = 0, i = e.length, a =
|
|
3323
|
+
var t, n, r = 0, i = e.length, a = mn;
|
|
3320
3324
|
for (n = 0; n < i; n++) if (t = a.indexOf(e.charAt(n)), !(t > 64)) {
|
|
3321
3325
|
if (t < 0) return !1;
|
|
3322
3326
|
r += 6;
|
|
3323
3327
|
}
|
|
3324
3328
|
return r % 8 == 0;
|
|
3325
3329
|
}
|
|
3326
|
-
a(
|
|
3327
|
-
function
|
|
3328
|
-
var t, n, r = e.replace(/[\r\n=]/g, ""), i = r.length, a =
|
|
3330
|
+
a(hn, "resolveYamlBinary");
|
|
3331
|
+
function gn(e) {
|
|
3332
|
+
var t, n, r = e.replace(/[\r\n=]/g, ""), i = r.length, a = mn, o = 0, s = [];
|
|
3329
3333
|
for (t = 0; t < i; t++) t % 4 == 0 && t && (s.push(o >> 16 & 255), s.push(o >> 8 & 255), s.push(o & 255)), o = o << 6 | a.indexOf(r.charAt(t));
|
|
3330
3334
|
return n = i % 4 * 6, n === 0 ? (s.push(o >> 16 & 255), s.push(o >> 8 & 255), s.push(o & 255)) : n === 18 ? (s.push(o >> 10 & 255), s.push(o >> 2 & 255)) : n === 12 && s.push(o >> 4 & 255), new Uint8Array(s);
|
|
3331
3335
|
}
|
|
3332
|
-
a(
|
|
3333
|
-
function
|
|
3334
|
-
var t = "", n = 0, r, i, a = e.length, o =
|
|
3336
|
+
a(gn, "constructYamlBinary");
|
|
3337
|
+
function _n(e) {
|
|
3338
|
+
var t = "", n = 0, r, i, a = e.length, o = mn;
|
|
3335
3339
|
for (r = 0; r < a; r++) r % 3 == 0 && r && (t += o[n >> 18 & 63], t += o[n >> 12 & 63], t += o[n >> 6 & 63], t += o[n & 63]), n = (n << 8) + e[r];
|
|
3336
3340
|
return i = a % 3, i === 0 ? (t += o[n >> 18 & 63], t += o[n >> 12 & 63], t += o[n >> 6 & 63], t += o[n & 63]) : i === 2 ? (t += o[n >> 10 & 63], t += o[n >> 4 & 63], t += o[n << 2 & 63], t += o[64]) : i === 1 && (t += o[n >> 2 & 63], t += o[n << 4 & 63], t += o[64], t += o[64]), t;
|
|
3337
3341
|
}
|
|
3338
|
-
a(
|
|
3339
|
-
function
|
|
3342
|
+
a(_n, "representYamlBinary");
|
|
3343
|
+
function vn(e) {
|
|
3340
3344
|
return Object.prototype.toString.call(e) === "[object Uint8Array]";
|
|
3341
3345
|
}
|
|
3342
|
-
a(
|
|
3343
|
-
var
|
|
3346
|
+
a(vn, "isBinary");
|
|
3347
|
+
var yn = new H("tag:yaml.org,2002:binary", {
|
|
3344
3348
|
kind: "scalar",
|
|
3345
|
-
resolve:
|
|
3346
|
-
construct:
|
|
3347
|
-
predicate:
|
|
3348
|
-
represent:
|
|
3349
|
-
}),
|
|
3350
|
-
function
|
|
3349
|
+
resolve: hn,
|
|
3350
|
+
construct: gn,
|
|
3351
|
+
predicate: vn,
|
|
3352
|
+
represent: _n
|
|
3353
|
+
}), bn = Object.prototype.hasOwnProperty, xn = Object.prototype.toString;
|
|
3354
|
+
function Sn(e) {
|
|
3351
3355
|
if (e === null) return !0;
|
|
3352
3356
|
var t = [], n, r, i, a, o, s = e;
|
|
3353
3357
|
for (n = 0, r = s.length; n < r; n += 1) {
|
|
3354
|
-
if (i = s[n], o = !1,
|
|
3355
|
-
for (a in i) if (
|
|
3358
|
+
if (i = s[n], o = !1, xn.call(i) !== "[object Object]") return !1;
|
|
3359
|
+
for (a in i) if (bn.call(i, a)) if (!o) o = !0;
|
|
3356
3360
|
else return !1;
|
|
3357
3361
|
if (!o) return !1;
|
|
3358
3362
|
if (t.indexOf(a) === -1) t.push(a);
|
|
@@ -3360,111 +3364,111 @@ function Cn(e) {
|
|
|
3360
3364
|
}
|
|
3361
3365
|
return !0;
|
|
3362
3366
|
}
|
|
3363
|
-
a(
|
|
3364
|
-
function
|
|
3367
|
+
a(Sn, "resolveYamlOmap");
|
|
3368
|
+
function Cn(e) {
|
|
3365
3369
|
return e === null ? [] : e;
|
|
3366
3370
|
}
|
|
3367
|
-
a(
|
|
3368
|
-
var
|
|
3371
|
+
a(Cn, "constructYamlOmap");
|
|
3372
|
+
var wn = new H("tag:yaml.org,2002:omap", {
|
|
3369
3373
|
kind: "sequence",
|
|
3370
|
-
resolve:
|
|
3371
|
-
construct:
|
|
3372
|
-
}),
|
|
3373
|
-
function
|
|
3374
|
+
resolve: Sn,
|
|
3375
|
+
construct: Cn
|
|
3376
|
+
}), Tn = Object.prototype.toString;
|
|
3377
|
+
function En(e) {
|
|
3374
3378
|
if (e === null) return !0;
|
|
3375
3379
|
var t, n, r, i, a, o = e;
|
|
3376
3380
|
for (a = Array(o.length), t = 0, n = o.length; t < n; t += 1) {
|
|
3377
|
-
if (r = o[t],
|
|
3381
|
+
if (r = o[t], Tn.call(r) !== "[object Object]" || (i = Object.keys(r), i.length !== 1)) return !1;
|
|
3378
3382
|
a[t] = [i[0], r[i[0]]];
|
|
3379
3383
|
}
|
|
3380
3384
|
return !0;
|
|
3381
3385
|
}
|
|
3382
|
-
a(
|
|
3383
|
-
function
|
|
3386
|
+
a(En, "resolveYamlPairs");
|
|
3387
|
+
function Dn(e) {
|
|
3384
3388
|
if (e === null) return [];
|
|
3385
3389
|
var t, n, r, i, a, o = e;
|
|
3386
3390
|
for (a = Array(o.length), t = 0, n = o.length; t < n; t += 1) r = o[t], i = Object.keys(r), a[t] = [i[0], r[i[0]]];
|
|
3387
3391
|
return a;
|
|
3388
3392
|
}
|
|
3389
|
-
a(
|
|
3390
|
-
var
|
|
3393
|
+
a(Dn, "constructYamlPairs");
|
|
3394
|
+
var On = new H("tag:yaml.org,2002:pairs", {
|
|
3391
3395
|
kind: "sequence",
|
|
3392
|
-
resolve:
|
|
3393
|
-
construct:
|
|
3394
|
-
}),
|
|
3395
|
-
function
|
|
3396
|
+
resolve: En,
|
|
3397
|
+
construct: Dn
|
|
3398
|
+
}), kn = Object.prototype.hasOwnProperty;
|
|
3399
|
+
function An(e) {
|
|
3396
3400
|
if (e === null) return !0;
|
|
3397
3401
|
var t, n = e;
|
|
3398
|
-
for (t in n) if (
|
|
3402
|
+
for (t in n) if (kn.call(n, t) && n[t] !== null) return !1;
|
|
3399
3403
|
return !0;
|
|
3400
3404
|
}
|
|
3401
|
-
a(
|
|
3402
|
-
function
|
|
3405
|
+
a(An, "resolveYamlSet");
|
|
3406
|
+
function jn(e) {
|
|
3403
3407
|
return e === null ? {} : e;
|
|
3404
3408
|
}
|
|
3405
|
-
a(
|
|
3406
|
-
var
|
|
3409
|
+
a(jn, "constructYamlSet");
|
|
3410
|
+
var Mn = new H("tag:yaml.org,2002:set", {
|
|
3407
3411
|
kind: "mapping",
|
|
3408
|
-
resolve:
|
|
3409
|
-
construct:
|
|
3410
|
-
}),
|
|
3411
|
-
implicit: [
|
|
3412
|
+
resolve: An,
|
|
3413
|
+
construct: jn
|
|
3414
|
+
}), Nn = an.extend({
|
|
3415
|
+
implicit: [dn, pn],
|
|
3412
3416
|
explicit: [
|
|
3413
|
-
|
|
3414
|
-
|
|
3415
|
-
|
|
3416
|
-
|
|
3417
|
+
yn,
|
|
3418
|
+
wn,
|
|
3419
|
+
On,
|
|
3420
|
+
Mn
|
|
3417
3421
|
]
|
|
3418
|
-
}),
|
|
3419
|
-
function
|
|
3422
|
+
}), Pn = Object.prototype.hasOwnProperty, Fn = 1, In = 2, Ln = 3, Rn = 4, zn = 1, Bn = 2, Vn = 3, Hn = /[\x00-\x08\x0B\x0C\x0E-\x1F\x7F-\x84\x86-\x9F\uFFFE\uFFFF]|[\uD800-\uDBFF](?![\uDC00-\uDFFF])|(?:[^\uD800-\uDBFF]|^)[\uDC00-\uDFFF]/, Un = /[\x85\u2028\u2029]/, Wn = /[,\[\]\{\}]/, Gn = /^(?:!|!!|![a-z\-]+!)$/i, Kn = /^(?:!|[^,\[\]\{\}])(?:%[0-9a-f]{2}|[0-9a-z\-#;\/\?:@&=\+\$,_\.!~\*'\(\)\[\]])*$/i;
|
|
3423
|
+
function qn(e) {
|
|
3420
3424
|
return Object.prototype.toString.call(e);
|
|
3421
3425
|
}
|
|
3422
|
-
a(
|
|
3423
|
-
function
|
|
3426
|
+
a(qn, "_class");
|
|
3427
|
+
function U(e) {
|
|
3424
3428
|
return e === 10 || e === 13;
|
|
3425
3429
|
}
|
|
3426
|
-
a(
|
|
3427
|
-
function
|
|
3430
|
+
a(U, "is_EOL");
|
|
3431
|
+
function Jn(e) {
|
|
3428
3432
|
return e === 9 || e === 32;
|
|
3429
3433
|
}
|
|
3430
|
-
a(
|
|
3431
|
-
function
|
|
3434
|
+
a(Jn, "is_WHITE_SPACE");
|
|
3435
|
+
function W(e) {
|
|
3432
3436
|
return e === 9 || e === 32 || e === 10 || e === 13;
|
|
3433
3437
|
}
|
|
3434
|
-
a(
|
|
3435
|
-
function
|
|
3438
|
+
a(W, "is_WS_OR_EOL");
|
|
3439
|
+
function Yn(e) {
|
|
3436
3440
|
return e === 44 || e === 91 || e === 93 || e === 123 || e === 125;
|
|
3437
3441
|
}
|
|
3438
|
-
a(
|
|
3439
|
-
function
|
|
3442
|
+
a(Yn, "is_FLOW_INDICATOR");
|
|
3443
|
+
function Xn(e) {
|
|
3440
3444
|
var t;
|
|
3441
3445
|
return 48 <= e && e <= 57 ? e - 48 : (t = e | 32, 97 <= t && t <= 102 ? t - 97 + 10 : -1);
|
|
3442
3446
|
}
|
|
3443
|
-
a(
|
|
3444
|
-
function
|
|
3447
|
+
a(Xn, "fromHexCode");
|
|
3448
|
+
function Zn(e) {
|
|
3445
3449
|
return e === 120 ? 2 : e === 117 ? 4 : e === 85 ? 8 : 0;
|
|
3446
3450
|
}
|
|
3447
|
-
a(
|
|
3448
|
-
function
|
|
3451
|
+
a(Zn, "escapedHexLen");
|
|
3452
|
+
function Qn(e) {
|
|
3449
3453
|
return 48 <= e && e <= 57 ? e - 48 : -1;
|
|
3450
3454
|
}
|
|
3451
|
-
a(
|
|
3452
|
-
function
|
|
3455
|
+
a(Qn, "fromDecimalCode");
|
|
3456
|
+
function $n(e) {
|
|
3453
3457
|
return e === 48 ? "\0" : e === 97 ? "\x07" : e === 98 ? "\b" : e === 116 || e === 9 ? " " : e === 110 ? "\n" : e === 118 ? "\v" : e === 102 ? "\f" : e === 114 ? "\r" : e === 101 ? "\x1B" : e === 32 ? " " : e === 34 ? "\"" : e === 47 ? "/" : e === 92 ? "\\" : e === 78 ? "
" : e === 95 ? "\xA0" : e === 76 ? "\u2028" : e === 80 ? "\u2029" : "";
|
|
3454
3458
|
}
|
|
3455
|
-
a(
|
|
3456
|
-
function
|
|
3459
|
+
a($n, "simpleEscapeSequence");
|
|
3460
|
+
function er(e) {
|
|
3457
3461
|
return e <= 65535 ? String.fromCharCode(e) : String.fromCharCode((e - 65536 >> 10) + 55296, (e - 65536 & 1023) + 56320);
|
|
3458
3462
|
}
|
|
3459
|
-
a(
|
|
3460
|
-
var
|
|
3461
|
-
for (
|
|
3462
|
-
var
|
|
3463
|
-
function
|
|
3464
|
-
this.input = e, this.filename = t.filename || null, this.schema = t.schema ||
|
|
3463
|
+
a(er, "charFromCodepoint");
|
|
3464
|
+
var tr = Array(256), nr = Array(256);
|
|
3465
|
+
for (rr = 0; rr < 256; rr++) tr[rr] = +!!$n(rr), nr[rr] = $n(rr);
|
|
3466
|
+
var rr;
|
|
3467
|
+
function ir(e, t) {
|
|
3468
|
+
this.input = e, this.filename = t.filename || null, this.schema = t.schema || Nn, this.onWarning = t.onWarning || null, this.legacy = t.legacy || !1, this.json = t.json || !1, this.listener = t.listener || null, this.implicitTypes = this.schema.compiledImplicit, this.typeMap = this.schema.compiledTypeMap, this.length = e.length, this.position = 0, this.line = 0, this.lineStart = 0, this.lineIndent = 0, this.firstTabInLine = -1, this.documents = [];
|
|
3465
3469
|
}
|
|
3466
|
-
a(
|
|
3467
|
-
function
|
|
3470
|
+
a(ir, "State$1");
|
|
3471
|
+
function ar(e, t) {
|
|
3468
3472
|
var n = {
|
|
3469
3473
|
name: e.filename,
|
|
3470
3474
|
buffer: e.input.slice(0, -1),
|
|
@@ -3472,53 +3476,53 @@ function or(e, t) {
|
|
|
3472
3476
|
line: e.line,
|
|
3473
3477
|
column: e.position - e.lineStart
|
|
3474
3478
|
};
|
|
3475
|
-
return n.snippet =
|
|
3479
|
+
return n.snippet = Et(n), new V(t, n);
|
|
3476
3480
|
}
|
|
3477
|
-
a(
|
|
3478
|
-
function
|
|
3479
|
-
throw
|
|
3481
|
+
a(ar, "generateError");
|
|
3482
|
+
function G(e, t) {
|
|
3483
|
+
throw ar(e, t);
|
|
3480
3484
|
}
|
|
3481
|
-
a(
|
|
3482
|
-
function
|
|
3483
|
-
e.onWarning && e.onWarning.call(null,
|
|
3485
|
+
a(G, "throwError");
|
|
3486
|
+
function or(e, t) {
|
|
3487
|
+
e.onWarning && e.onWarning.call(null, ar(e, t));
|
|
3484
3488
|
}
|
|
3485
|
-
a(
|
|
3486
|
-
var
|
|
3489
|
+
a(or, "throwWarning");
|
|
3490
|
+
var sr = {
|
|
3487
3491
|
YAML: /* @__PURE__ */ a(function(e, t, n) {
|
|
3488
3492
|
var r, i, a;
|
|
3489
|
-
e.version !== null &&
|
|
3493
|
+
e.version !== null && G(e, "duplication of %YAML directive"), n.length !== 1 && G(e, "YAML directive accepts exactly one argument"), r = /^([0-9]+)\.([0-9]+)$/.exec(n[0]), r === null && G(e, "ill-formed argument of the YAML directive"), i = parseInt(r[1], 10), a = parseInt(r[2], 10), i !== 1 && G(e, "unacceptable YAML version of the document"), e.version = n[0], e.checkLineBreaks = a < 2, a !== 1 && a !== 2 && or(e, "unsupported YAML version of the document");
|
|
3490
3494
|
}, "handleYamlDirective"),
|
|
3491
3495
|
TAG: /* @__PURE__ */ a(function(e, t, n) {
|
|
3492
3496
|
var r, i;
|
|
3493
|
-
n.length !== 2 &&
|
|
3497
|
+
n.length !== 2 && G(e, "TAG directive accepts exactly two arguments"), r = n[0], i = n[1], Gn.test(r) || G(e, "ill-formed tag handle (first argument) of the TAG directive"), Pn.call(e.tagMap, r) && G(e, "there is a previously declared suffix for \"" + r + "\" tag handle"), Kn.test(i) || G(e, "ill-formed tag prefix (second argument) of the TAG directive");
|
|
3494
3498
|
try {
|
|
3495
3499
|
i = decodeURIComponent(i);
|
|
3496
3500
|
} catch {
|
|
3497
|
-
|
|
3501
|
+
G(e, "tag prefix is malformed: " + i);
|
|
3498
3502
|
}
|
|
3499
3503
|
e.tagMap[r] = i;
|
|
3500
3504
|
}, "handleTagDirective")
|
|
3501
3505
|
};
|
|
3502
|
-
function
|
|
3506
|
+
function K(e, t, n, r) {
|
|
3503
3507
|
var i, a, o, s;
|
|
3504
3508
|
if (t < n) {
|
|
3505
|
-
if (s = e.input.slice(t, n), r) for (i = 0, a = s.length; i < a; i += 1) o = s.charCodeAt(i), o === 9 || 32 <= o && o <= 1114111 ||
|
|
3506
|
-
else
|
|
3509
|
+
if (s = e.input.slice(t, n), r) for (i = 0, a = s.length; i < a; i += 1) o = s.charCodeAt(i), o === 9 || 32 <= o && o <= 1114111 || G(e, "expected valid JSON character");
|
|
3510
|
+
else Hn.test(s) && G(e, "the stream contains non-printable characters");
|
|
3507
3511
|
e.result += s;
|
|
3508
3512
|
}
|
|
3509
3513
|
}
|
|
3510
|
-
a(
|
|
3511
|
-
function
|
|
3514
|
+
a(K, "captureSegment");
|
|
3515
|
+
function cr(e, t, n, r) {
|
|
3512
3516
|
var i, a, o, s;
|
|
3513
|
-
for (
|
|
3517
|
+
for (B.isObject(n) || G(e, "cannot merge mappings; the provided source object is unacceptable"), i = Object.keys(n), o = 0, s = i.length; o < s; o += 1) a = i[o], Pn.call(t, a) || (t[a] = n[a], r[a] = !0);
|
|
3514
3518
|
}
|
|
3515
|
-
a(
|
|
3516
|
-
function
|
|
3519
|
+
a(cr, "mergeMappings");
|
|
3520
|
+
function lr(e, t, n, r, i, a, o, s, c) {
|
|
3517
3521
|
var l, u;
|
|
3518
|
-
if (Array.isArray(i)) for (i = Array.prototype.slice.call(i), l = 0, u = i.length; l < u; l += 1) Array.isArray(i[l]) &&
|
|
3519
|
-
if (typeof i == "object" &&
|
|
3520
|
-
else
|
|
3521
|
-
else !e.json && !
|
|
3522
|
+
if (Array.isArray(i)) for (i = Array.prototype.slice.call(i), l = 0, u = i.length; l < u; l += 1) Array.isArray(i[l]) && G(e, "nested arrays are not supported inside keys"), typeof i == "object" && qn(i[l]) === "[object Object]" && (i[l] = "[object Object]");
|
|
3523
|
+
if (typeof i == "object" && qn(i) === "[object Object]" && (i = "[object Object]"), i = String(i), t === null && (t = {}), r === "tag:yaml.org,2002:merge") if (Array.isArray(a)) for (l = 0, u = a.length; l < u; l += 1) cr(e, t, a[l], n);
|
|
3524
|
+
else cr(e, t, a, n);
|
|
3525
|
+
else !e.json && !Pn.call(n, i) && Pn.call(t, i) && (e.line = o || e.line, e.lineStart = s || e.lineStart, e.position = c || e.position, G(e, "duplicated mapping key")), i === "__proto__" ? Object.defineProperty(t, i, {
|
|
3522
3526
|
configurable: !0,
|
|
3523
3527
|
enumerable: !0,
|
|
3524
3528
|
writable: !0,
|
|
@@ -3526,268 +3530,268 @@ function ur(e, t, n, r, i, a, o, s, c) {
|
|
|
3526
3530
|
}) : t[i] = a, delete n[i];
|
|
3527
3531
|
return t;
|
|
3528
3532
|
}
|
|
3529
|
-
a(
|
|
3530
|
-
function
|
|
3533
|
+
a(lr, "storeMappingPair");
|
|
3534
|
+
function ur(e) {
|
|
3531
3535
|
var t = e.input.charCodeAt(e.position);
|
|
3532
|
-
t === 10 ? e.position++ : t === 13 ? (e.position++, e.input.charCodeAt(e.position) === 10 && e.position++) :
|
|
3536
|
+
t === 10 ? e.position++ : t === 13 ? (e.position++, e.input.charCodeAt(e.position) === 10 && e.position++) : G(e, "a line break is expected"), e.line += 1, e.lineStart = e.position, e.firstTabInLine = -1;
|
|
3533
3537
|
}
|
|
3534
|
-
a(
|
|
3535
|
-
function
|
|
3538
|
+
a(ur, "readLineBreak");
|
|
3539
|
+
function q(e, t, n) {
|
|
3536
3540
|
for (var r = 0, i = e.input.charCodeAt(e.position); i !== 0;) {
|
|
3537
|
-
for (;
|
|
3541
|
+
for (; Jn(i);) i === 9 && e.firstTabInLine === -1 && (e.firstTabInLine = e.position), i = e.input.charCodeAt(++e.position);
|
|
3538
3542
|
if (t && i === 35) do
|
|
3539
3543
|
i = e.input.charCodeAt(++e.position);
|
|
3540
3544
|
while (i !== 10 && i !== 13 && i !== 0);
|
|
3541
|
-
if (
|
|
3545
|
+
if (U(i)) for (ur(e), i = e.input.charCodeAt(e.position), r++, e.lineIndent = 0; i === 32;) e.lineIndent++, i = e.input.charCodeAt(++e.position);
|
|
3542
3546
|
else break;
|
|
3543
3547
|
}
|
|
3544
|
-
return n !== -1 && r !== 0 && e.lineIndent < n &&
|
|
3548
|
+
return n !== -1 && r !== 0 && e.lineIndent < n && or(e, "deficient indentation"), r;
|
|
3545
3549
|
}
|
|
3546
|
-
a(
|
|
3547
|
-
function
|
|
3550
|
+
a(q, "skipSeparationSpace");
|
|
3551
|
+
function dr(e) {
|
|
3548
3552
|
var t = e.position, n = e.input.charCodeAt(t);
|
|
3549
|
-
return !!((n === 45 || n === 46) && n === e.input.charCodeAt(t + 1) && n === e.input.charCodeAt(t + 2) && (t += 3, n = e.input.charCodeAt(t), n === 0 ||
|
|
3553
|
+
return !!((n === 45 || n === 46) && n === e.input.charCodeAt(t + 1) && n === e.input.charCodeAt(t + 2) && (t += 3, n = e.input.charCodeAt(t), n === 0 || W(n)));
|
|
3550
3554
|
}
|
|
3551
|
-
a(
|
|
3552
|
-
function
|
|
3553
|
-
t === 1 ? e.result += " " : t > 1 && (e.result +=
|
|
3555
|
+
a(dr, "testDocumentSeparator");
|
|
3556
|
+
function fr(e, t) {
|
|
3557
|
+
t === 1 ? e.result += " " : t > 1 && (e.result += B.repeat("\n", t - 1));
|
|
3554
3558
|
}
|
|
3555
|
-
a(
|
|
3556
|
-
function
|
|
3559
|
+
a(fr, "writeFoldedLines");
|
|
3560
|
+
function pr(e, t, n) {
|
|
3557
3561
|
var r, i, a, o, s, c, l, u, d = e.kind, f = e.result, p = e.input.charCodeAt(e.position);
|
|
3558
|
-
if (
|
|
3562
|
+
if (W(p) || Yn(p) || p === 35 || p === 38 || p === 42 || p === 33 || p === 124 || p === 62 || p === 39 || p === 34 || p === 37 || p === 64 || p === 96 || (p === 63 || p === 45) && (i = e.input.charCodeAt(e.position + 1), W(i) || n && Yn(i))) return !1;
|
|
3559
3563
|
for (e.kind = "scalar", e.result = "", a = o = e.position, s = !1; p !== 0;) {
|
|
3560
3564
|
if (p === 58) {
|
|
3561
|
-
if (i = e.input.charCodeAt(e.position + 1),
|
|
3565
|
+
if (i = e.input.charCodeAt(e.position + 1), W(i) || n && Yn(i)) break;
|
|
3562
3566
|
} else if (p === 35) {
|
|
3563
|
-
if (r = e.input.charCodeAt(e.position - 1),
|
|
3564
|
-
} else if (e.position === e.lineStart &&
|
|
3565
|
-
else if (
|
|
3567
|
+
if (r = e.input.charCodeAt(e.position - 1), W(r)) break;
|
|
3568
|
+
} else if (e.position === e.lineStart && dr(e) || n && Yn(p)) break;
|
|
3569
|
+
else if (U(p)) if (c = e.line, l = e.lineStart, u = e.lineIndent, q(e, !1, -1), e.lineIndent >= t) {
|
|
3566
3570
|
s = !0, p = e.input.charCodeAt(e.position);
|
|
3567
3571
|
continue;
|
|
3568
3572
|
} else {
|
|
3569
3573
|
e.position = o, e.line = c, e.lineStart = l, e.lineIndent = u;
|
|
3570
3574
|
break;
|
|
3571
3575
|
}
|
|
3572
|
-
s &&= (
|
|
3576
|
+
s &&= (K(e, a, o, !1), fr(e, e.line - c), a = o = e.position, !1), Jn(p) || (o = e.position + 1), p = e.input.charCodeAt(++e.position);
|
|
3573
3577
|
}
|
|
3574
|
-
return
|
|
3578
|
+
return K(e, a, o, !1), e.result ? !0 : (e.kind = d, e.result = f, !1);
|
|
3575
3579
|
}
|
|
3576
|
-
a(
|
|
3577
|
-
function
|
|
3580
|
+
a(pr, "readPlainScalar");
|
|
3581
|
+
function mr(e, t) {
|
|
3578
3582
|
var n = e.input.charCodeAt(e.position), r, i;
|
|
3579
3583
|
if (n !== 39) return !1;
|
|
3580
|
-
for (e.kind = "scalar", e.result = "", e.position++, r = i = e.position; (n = e.input.charCodeAt(e.position)) !== 0;) if (n === 39) if (
|
|
3584
|
+
for (e.kind = "scalar", e.result = "", e.position++, r = i = e.position; (n = e.input.charCodeAt(e.position)) !== 0;) if (n === 39) if (K(e, r, e.position, !0), n = e.input.charCodeAt(++e.position), n === 39) r = e.position, e.position++, i = e.position;
|
|
3581
3585
|
else return !0;
|
|
3582
|
-
else
|
|
3583
|
-
|
|
3586
|
+
else U(n) ? (K(e, r, i, !0), fr(e, q(e, !1, t)), r = i = e.position) : e.position === e.lineStart && dr(e) ? G(e, "unexpected end of the document within a single quoted scalar") : (e.position++, i = e.position);
|
|
3587
|
+
G(e, "unexpected end of the stream within a single quoted scalar");
|
|
3584
3588
|
}
|
|
3585
|
-
a(
|
|
3586
|
-
function
|
|
3589
|
+
a(mr, "readSingleQuotedScalar");
|
|
3590
|
+
function hr(e, t) {
|
|
3587
3591
|
var n, r, i, a, o, s = e.input.charCodeAt(e.position);
|
|
3588
3592
|
if (s !== 34) return !1;
|
|
3589
|
-
for (e.kind = "scalar", e.result = "", e.position++, n = r = e.position; (s = e.input.charCodeAt(e.position)) !== 0;) if (s === 34) return
|
|
3593
|
+
for (e.kind = "scalar", e.result = "", e.position++, n = r = e.position; (s = e.input.charCodeAt(e.position)) !== 0;) if (s === 34) return K(e, n, e.position, !0), e.position++, !0;
|
|
3590
3594
|
else if (s === 92) {
|
|
3591
|
-
if (
|
|
3592
|
-
else if (s < 256 &&
|
|
3593
|
-
else if ((o =
|
|
3594
|
-
for (i = o, a = 0; i > 0; i--) s = e.input.charCodeAt(++e.position), (o =
|
|
3595
|
-
e.result +=
|
|
3596
|
-
} else
|
|
3595
|
+
if (K(e, n, e.position, !0), s = e.input.charCodeAt(++e.position), U(s)) q(e, !1, t);
|
|
3596
|
+
else if (s < 256 && tr[s]) e.result += nr[s], e.position++;
|
|
3597
|
+
else if ((o = Zn(s)) > 0) {
|
|
3598
|
+
for (i = o, a = 0; i > 0; i--) s = e.input.charCodeAt(++e.position), (o = Xn(s)) >= 0 ? a = (a << 4) + o : G(e, "expected hexadecimal character");
|
|
3599
|
+
e.result += er(a), e.position++;
|
|
3600
|
+
} else G(e, "unknown escape sequence");
|
|
3597
3601
|
n = r = e.position;
|
|
3598
|
-
} else
|
|
3599
|
-
|
|
3602
|
+
} else U(s) ? (K(e, n, r, !0), fr(e, q(e, !1, t)), n = r = e.position) : e.position === e.lineStart && dr(e) ? G(e, "unexpected end of the document within a double quoted scalar") : (e.position++, r = e.position);
|
|
3603
|
+
G(e, "unexpected end of the stream within a double quoted scalar");
|
|
3600
3604
|
}
|
|
3601
|
-
a(
|
|
3602
|
-
function
|
|
3605
|
+
a(hr, "readDoubleQuotedScalar");
|
|
3606
|
+
function gr(e, t) {
|
|
3603
3607
|
var n = !0, r, i, a, o = e.tag, s, c = e.anchor, l, u, d, f, p, m = /* @__PURE__ */ Object.create(null), h, g, _, v = e.input.charCodeAt(e.position);
|
|
3604
3608
|
if (v === 91) u = 93, p = !1, s = [];
|
|
3605
3609
|
else if (v === 123) u = 125, p = !0, s = {};
|
|
3606
3610
|
else return !1;
|
|
3607
3611
|
for (e.anchor !== null && (e.anchorMap[e.anchor] = s), v = e.input.charCodeAt(++e.position); v !== 0;) {
|
|
3608
|
-
if (
|
|
3609
|
-
n ? v === 44 &&
|
|
3612
|
+
if (q(e, !0, t), v = e.input.charCodeAt(e.position), v === u) return e.position++, e.tag = o, e.anchor = c, e.kind = p ? "mapping" : "sequence", e.result = s, !0;
|
|
3613
|
+
n ? v === 44 && G(e, "expected the node content, but found ','") : G(e, "missed comma between flow collection entries"), g = h = _ = null, d = f = !1, v === 63 && (l = e.input.charCodeAt(e.position + 1), W(l) && (d = f = !0, e.position++, q(e, !0, t))), r = e.line, i = e.lineStart, a = e.position, Cr(e, t, Fn, !1, !0), g = e.tag, h = e.result, q(e, !0, t), v = e.input.charCodeAt(e.position), (f || e.line === r) && v === 58 && (d = !0, v = e.input.charCodeAt(++e.position), q(e, !0, t), Cr(e, t, Fn, !1, !0), _ = e.result), p ? lr(e, s, m, g, h, _, r, i, a) : d ? s.push(lr(e, null, m, g, h, _, r, i, a)) : s.push(h), q(e, !0, t), v = e.input.charCodeAt(e.position), v === 44 ? (n = !0, v = e.input.charCodeAt(++e.position)) : n = !1;
|
|
3610
3614
|
}
|
|
3611
|
-
|
|
3615
|
+
G(e, "unexpected end of the stream within a flow collection");
|
|
3612
3616
|
}
|
|
3613
|
-
a(
|
|
3614
|
-
function
|
|
3615
|
-
var n, r, i =
|
|
3617
|
+
a(gr, "readFlowCollection");
|
|
3618
|
+
function _r(e, t) {
|
|
3619
|
+
var n, r, i = zn, a = !1, o = !1, s = t, c = 0, l = !1, u, d = e.input.charCodeAt(e.position);
|
|
3616
3620
|
if (d === 124) r = !1;
|
|
3617
3621
|
else if (d === 62) r = !0;
|
|
3618
3622
|
else return !1;
|
|
3619
|
-
for (e.kind = "scalar", e.result = ""; d !== 0;) if (d = e.input.charCodeAt(++e.position), d === 43 || d === 45)
|
|
3620
|
-
else if ((u =
|
|
3623
|
+
for (e.kind = "scalar", e.result = ""; d !== 0;) if (d = e.input.charCodeAt(++e.position), d === 43 || d === 45) zn === i ? i = d === 43 ? Vn : Bn : G(e, "repeat of a chomping mode identifier");
|
|
3624
|
+
else if ((u = Qn(d)) >= 0) u === 0 ? G(e, "bad explicit indentation width of a block scalar; it cannot be less than one") : o ? G(e, "repeat of an indentation width identifier") : (s = t + u - 1, o = !0);
|
|
3621
3625
|
else break;
|
|
3622
|
-
if (
|
|
3626
|
+
if (Jn(d)) {
|
|
3623
3627
|
do
|
|
3624
3628
|
d = e.input.charCodeAt(++e.position);
|
|
3625
|
-
while (
|
|
3629
|
+
while (Jn(d));
|
|
3626
3630
|
if (d === 35) do
|
|
3627
3631
|
d = e.input.charCodeAt(++e.position);
|
|
3628
|
-
while (!
|
|
3632
|
+
while (!U(d) && d !== 0);
|
|
3629
3633
|
}
|
|
3630
3634
|
for (; d !== 0;) {
|
|
3631
|
-
for (
|
|
3632
|
-
if (!o && e.lineIndent > s && (s = e.lineIndent),
|
|
3635
|
+
for (ur(e), e.lineIndent = 0, d = e.input.charCodeAt(e.position); (!o || e.lineIndent < s) && d === 32;) e.lineIndent++, d = e.input.charCodeAt(++e.position);
|
|
3636
|
+
if (!o && e.lineIndent > s && (s = e.lineIndent), U(d)) {
|
|
3633
3637
|
c++;
|
|
3634
3638
|
continue;
|
|
3635
3639
|
}
|
|
3636
3640
|
if (e.lineIndent < s) {
|
|
3637
|
-
i ===
|
|
3641
|
+
i === Vn ? e.result += B.repeat("\n", a ? 1 + c : c) : i === zn && a && (e.result += "\n");
|
|
3638
3642
|
break;
|
|
3639
3643
|
}
|
|
3640
|
-
for (r ?
|
|
3641
|
-
|
|
3644
|
+
for (r ? Jn(d) ? (l = !0, e.result += B.repeat("\n", a ? 1 + c : c)) : l ? (l = !1, e.result += B.repeat("\n", c + 1)) : c === 0 ? a && (e.result += " ") : e.result += B.repeat("\n", c) : e.result += B.repeat("\n", a ? 1 + c : c), a = !0, o = !0, c = 0, n = e.position; !U(d) && d !== 0;) d = e.input.charCodeAt(++e.position);
|
|
3645
|
+
K(e, n, e.position, !1);
|
|
3642
3646
|
}
|
|
3643
3647
|
return !0;
|
|
3644
3648
|
}
|
|
3645
|
-
a(
|
|
3646
|
-
function
|
|
3649
|
+
a(_r, "readBlockScalar");
|
|
3650
|
+
function vr(e, t) {
|
|
3647
3651
|
var n, r = e.tag, i = e.anchor, a = [], o, s = !1, c;
|
|
3648
3652
|
if (e.firstTabInLine !== -1) return !1;
|
|
3649
|
-
for (e.anchor !== null && (e.anchorMap[e.anchor] = a), c = e.input.charCodeAt(e.position); c !== 0 && (e.firstTabInLine !== -1 && (e.position = e.firstTabInLine,
|
|
3650
|
-
if (s = !0, e.position++,
|
|
3653
|
+
for (e.anchor !== null && (e.anchorMap[e.anchor] = a), c = e.input.charCodeAt(e.position); c !== 0 && (e.firstTabInLine !== -1 && (e.position = e.firstTabInLine, G(e, "tab characters must not be used in indentation")), !(c !== 45 || (o = e.input.charCodeAt(e.position + 1), !W(o))));) {
|
|
3654
|
+
if (s = !0, e.position++, q(e, !0, -1) && e.lineIndent <= t) {
|
|
3651
3655
|
a.push(null), c = e.input.charCodeAt(e.position);
|
|
3652
3656
|
continue;
|
|
3653
3657
|
}
|
|
3654
|
-
if (n = e.line,
|
|
3658
|
+
if (n = e.line, Cr(e, t, Ln, !1, !0), a.push(e.result), q(e, !0, -1), c = e.input.charCodeAt(e.position), (e.line === n || e.lineIndent > t) && c !== 0) G(e, "bad indentation of a sequence entry");
|
|
3655
3659
|
else if (e.lineIndent < t) break;
|
|
3656
3660
|
}
|
|
3657
3661
|
return s ? (e.tag = r, e.anchor = i, e.kind = "sequence", e.result = a, !0) : !1;
|
|
3658
3662
|
}
|
|
3659
|
-
a(
|
|
3660
|
-
function
|
|
3663
|
+
a(vr, "readBlockSequence");
|
|
3664
|
+
function yr(e, t, n) {
|
|
3661
3665
|
var r, i, a, o, s, c, l = e.tag, u = e.anchor, d = {}, f = /* @__PURE__ */ Object.create(null), p = null, m = null, h = null, g = !1, _ = !1, v;
|
|
3662
3666
|
if (e.firstTabInLine !== -1) return !1;
|
|
3663
3667
|
for (e.anchor !== null && (e.anchorMap[e.anchor] = d), v = e.input.charCodeAt(e.position); v !== 0;) {
|
|
3664
|
-
if (!g && e.firstTabInLine !== -1 && (e.position = e.firstTabInLine,
|
|
3668
|
+
if (!g && e.firstTabInLine !== -1 && (e.position = e.firstTabInLine, G(e, "tab characters must not be used in indentation")), r = e.input.charCodeAt(e.position + 1), a = e.line, (v === 63 || v === 58) && W(r)) v === 63 ? (g && (lr(e, d, f, p, m, null, o, s, c), p = m = h = null), _ = !0, g = !0, i = !0) : g ? (g = !1, i = !0) : G(e, "incomplete explicit mapping pair; a key node is missed; or followed by a non-tabulated empty line"), e.position += 1, v = r;
|
|
3665
3669
|
else {
|
|
3666
|
-
if (o = e.line, s = e.lineStart, c = e.position, !
|
|
3670
|
+
if (o = e.line, s = e.lineStart, c = e.position, !Cr(e, n, In, !1, !0)) break;
|
|
3667
3671
|
if (e.line === a) {
|
|
3668
|
-
for (v = e.input.charCodeAt(e.position);
|
|
3669
|
-
if (v === 58) v = e.input.charCodeAt(++e.position),
|
|
3670
|
-
else if (_)
|
|
3672
|
+
for (v = e.input.charCodeAt(e.position); Jn(v);) v = e.input.charCodeAt(++e.position);
|
|
3673
|
+
if (v === 58) v = e.input.charCodeAt(++e.position), W(v) || G(e, "a whitespace character is expected after the key-value separator within a block mapping"), g && (lr(e, d, f, p, m, null, o, s, c), p = m = h = null), _ = !0, g = !1, i = !1, p = e.tag, m = e.result;
|
|
3674
|
+
else if (_) G(e, "can not read an implicit mapping pair; a colon is missed");
|
|
3671
3675
|
else return e.tag = l, e.anchor = u, !0;
|
|
3672
|
-
} else if (_)
|
|
3676
|
+
} else if (_) G(e, "can not read a block mapping entry; a multiline key may not be an implicit key");
|
|
3673
3677
|
else return e.tag = l, e.anchor = u, !0;
|
|
3674
3678
|
}
|
|
3675
|
-
if ((e.line === a || e.lineIndent > t) && (g && (o = e.line, s = e.lineStart, c = e.position),
|
|
3679
|
+
if ((e.line === a || e.lineIndent > t) && (g && (o = e.line, s = e.lineStart, c = e.position), Cr(e, t, Rn, !0, i) && (g ? m = e.result : h = e.result), g || (lr(e, d, f, p, m, h, o, s, c), p = m = h = null), q(e, !0, -1), v = e.input.charCodeAt(e.position)), (e.line === a || e.lineIndent > t) && v !== 0) G(e, "bad indentation of a mapping entry");
|
|
3676
3680
|
else if (e.lineIndent < t) break;
|
|
3677
3681
|
}
|
|
3678
|
-
return g &&
|
|
3682
|
+
return g && lr(e, d, f, p, m, null, o, s, c), _ && (e.tag = l, e.anchor = u, e.kind = "mapping", e.result = d), _;
|
|
3679
3683
|
}
|
|
3680
|
-
a(
|
|
3681
|
-
function
|
|
3684
|
+
a(yr, "readBlockMapping");
|
|
3685
|
+
function br(e) {
|
|
3682
3686
|
var t, n = !1, r = !1, i, a, o = e.input.charCodeAt(e.position);
|
|
3683
3687
|
if (o !== 33) return !1;
|
|
3684
|
-
if (e.tag !== null &&
|
|
3688
|
+
if (e.tag !== null && G(e, "duplication of a tag property"), o = e.input.charCodeAt(++e.position), o === 60 ? (n = !0, o = e.input.charCodeAt(++e.position)) : o === 33 ? (r = !0, i = "!!", o = e.input.charCodeAt(++e.position)) : i = "!", t = e.position, n) {
|
|
3685
3689
|
do
|
|
3686
3690
|
o = e.input.charCodeAt(++e.position);
|
|
3687
3691
|
while (o !== 0 && o !== 62);
|
|
3688
|
-
e.position < e.length ? (a = e.input.slice(t, e.position), o = e.input.charCodeAt(++e.position)) :
|
|
3692
|
+
e.position < e.length ? (a = e.input.slice(t, e.position), o = e.input.charCodeAt(++e.position)) : G(e, "unexpected end of the stream within a verbatim tag");
|
|
3689
3693
|
} else {
|
|
3690
|
-
for (; o !== 0 && !
|
|
3691
|
-
a = e.input.slice(t, e.position),
|
|
3694
|
+
for (; o !== 0 && !W(o);) o === 33 && (r ? G(e, "tag suffix cannot contain exclamation marks") : (i = e.input.slice(t - 1, e.position + 1), Gn.test(i) || G(e, "named tag handle cannot contain such characters"), r = !0, t = e.position + 1)), o = e.input.charCodeAt(++e.position);
|
|
3695
|
+
a = e.input.slice(t, e.position), Wn.test(a) && G(e, "tag suffix cannot contain flow indicator characters");
|
|
3692
3696
|
}
|
|
3693
|
-
a && !
|
|
3697
|
+
a && !Kn.test(a) && G(e, "tag name cannot contain such characters: " + a);
|
|
3694
3698
|
try {
|
|
3695
3699
|
a = decodeURIComponent(a);
|
|
3696
3700
|
} catch {
|
|
3697
|
-
|
|
3701
|
+
G(e, "tag name is malformed: " + a);
|
|
3698
3702
|
}
|
|
3699
|
-
return n ? e.tag = a :
|
|
3703
|
+
return n ? e.tag = a : Pn.call(e.tagMap, i) ? e.tag = e.tagMap[i] + a : i === "!" ? e.tag = "!" + a : i === "!!" ? e.tag = "tag:yaml.org,2002:" + a : G(e, "undeclared tag handle \"" + i + "\""), !0;
|
|
3700
3704
|
}
|
|
3701
|
-
a(
|
|
3702
|
-
function
|
|
3705
|
+
a(br, "readTagProperty");
|
|
3706
|
+
function xr(e) {
|
|
3703
3707
|
var t, n = e.input.charCodeAt(e.position);
|
|
3704
3708
|
if (n !== 38) return !1;
|
|
3705
|
-
for (e.anchor !== null &&
|
|
3706
|
-
return e.position === t &&
|
|
3709
|
+
for (e.anchor !== null && G(e, "duplication of an anchor property"), n = e.input.charCodeAt(++e.position), t = e.position; n !== 0 && !W(n) && !Yn(n);) n = e.input.charCodeAt(++e.position);
|
|
3710
|
+
return e.position === t && G(e, "name of an anchor node must contain at least one character"), e.anchor = e.input.slice(t, e.position), !0;
|
|
3707
3711
|
}
|
|
3708
|
-
a(
|
|
3709
|
-
function
|
|
3712
|
+
a(xr, "readAnchorProperty");
|
|
3713
|
+
function Sr(e) {
|
|
3710
3714
|
var t, n, r = e.input.charCodeAt(e.position);
|
|
3711
3715
|
if (r !== 42) return !1;
|
|
3712
|
-
for (r = e.input.charCodeAt(++e.position), t = e.position; r !== 0 && !
|
|
3713
|
-
return e.position === t &&
|
|
3716
|
+
for (r = e.input.charCodeAt(++e.position), t = e.position; r !== 0 && !W(r) && !Yn(r);) r = e.input.charCodeAt(++e.position);
|
|
3717
|
+
return e.position === t && G(e, "name of an alias node must contain at least one character"), n = e.input.slice(t, e.position), Pn.call(e.anchorMap, n) || G(e, "unidentified alias \"" + n + "\""), e.result = e.anchorMap[n], q(e, !0, -1), !0;
|
|
3714
3718
|
}
|
|
3715
|
-
a(
|
|
3716
|
-
function
|
|
3719
|
+
a(Sr, "readAlias");
|
|
3720
|
+
function Cr(e, t, n, r, i) {
|
|
3717
3721
|
var a, o, s, c = 1, l = !1, u = !1, d, f, p, m, h, g;
|
|
3718
|
-
if (e.listener !== null && e.listener("open", e), e.tag = null, e.anchor = null, e.kind = null, e.result = null, a = o = s =
|
|
3719
|
-
if (s &&= l || i, (c === 1 ||
|
|
3722
|
+
if (e.listener !== null && e.listener("open", e), e.tag = null, e.anchor = null, e.kind = null, e.result = null, a = o = s = Rn === n || Ln === n, r && q(e, !0, -1) && (l = !0, e.lineIndent > t ? c = 1 : e.lineIndent === t ? c = 0 : e.lineIndent < t && (c = -1)), c === 1) for (; br(e) || xr(e);) q(e, !0, -1) ? (l = !0, s = a, e.lineIndent > t ? c = 1 : e.lineIndent === t ? c = 0 : e.lineIndent < t && (c = -1)) : s = !1;
|
|
3723
|
+
if (s &&= l || i, (c === 1 || Rn === n) && (h = Fn === n || In === n ? t : t + 1, g = e.position - e.lineStart, c === 1 ? s && (vr(e, g) || yr(e, g, h)) || gr(e, h) ? u = !0 : (o && _r(e, h) || mr(e, h) || hr(e, h) ? u = !0 : Sr(e) ? (u = !0, (e.tag !== null || e.anchor !== null) && G(e, "alias node should not have any properties")) : pr(e, h, Fn === n) && (u = !0, e.tag === null && (e.tag = "?")), e.anchor !== null && (e.anchorMap[e.anchor] = e.result)) : c === 0 && (u = s && vr(e, g))), e.tag === null) e.anchor !== null && (e.anchorMap[e.anchor] = e.result);
|
|
3720
3724
|
else if (e.tag === "?") {
|
|
3721
|
-
for (e.result !== null && e.kind !== "scalar" &&
|
|
3725
|
+
for (e.result !== null && e.kind !== "scalar" && G(e, "unacceptable node kind for !<?> tag; it should be \"scalar\", not \"" + e.kind + "\""), d = 0, f = e.implicitTypes.length; d < f; d += 1) if (m = e.implicitTypes[d], m.resolve(e.result)) {
|
|
3722
3726
|
e.result = m.construct(e.result), e.tag = m.tag, e.anchor !== null && (e.anchorMap[e.anchor] = e.result);
|
|
3723
3727
|
break;
|
|
3724
3728
|
}
|
|
3725
3729
|
} else if (e.tag !== "!") {
|
|
3726
|
-
if (
|
|
3730
|
+
if (Pn.call(e.typeMap[e.kind || "fallback"], e.tag)) m = e.typeMap[e.kind || "fallback"][e.tag];
|
|
3727
3731
|
else for (m = null, p = e.typeMap.multi[e.kind || "fallback"], d = 0, f = p.length; d < f; d += 1) if (e.tag.slice(0, p[d].tag.length) === p[d].tag) {
|
|
3728
3732
|
m = p[d];
|
|
3729
3733
|
break;
|
|
3730
3734
|
}
|
|
3731
|
-
m ||
|
|
3735
|
+
m || G(e, "unknown tag !<" + e.tag + ">"), e.result !== null && m.kind !== e.kind && G(e, "unacceptable node kind for !<" + e.tag + "> tag; it should be \"" + m.kind + "\", not \"" + e.kind + "\""), m.resolve(e.result, e.tag) ? (e.result = m.construct(e.result, e.tag), e.anchor !== null && (e.anchorMap[e.anchor] = e.result)) : G(e, "cannot resolve a node with !<" + e.tag + "> explicit tag");
|
|
3732
3736
|
}
|
|
3733
3737
|
return e.listener !== null && e.listener("close", e), e.tag !== null || e.anchor !== null || u;
|
|
3734
3738
|
}
|
|
3735
|
-
a(
|
|
3736
|
-
function
|
|
3739
|
+
a(Cr, "composeNode");
|
|
3740
|
+
function wr(e) {
|
|
3737
3741
|
var t = e.position, n, r, i, a = !1, o;
|
|
3738
|
-
for (e.version = null, e.checkLineBreaks = e.legacy, e.tagMap = /* @__PURE__ */ Object.create(null), e.anchorMap = /* @__PURE__ */ Object.create(null); (o = e.input.charCodeAt(e.position)) !== 0 && (
|
|
3739
|
-
for (a = !0, o = e.input.charCodeAt(++e.position), n = e.position; o !== 0 && !
|
|
3740
|
-
for (r = e.input.slice(n, e.position), i = [], r.length < 1 &&
|
|
3741
|
-
for (;
|
|
3742
|
+
for (e.version = null, e.checkLineBreaks = e.legacy, e.tagMap = /* @__PURE__ */ Object.create(null), e.anchorMap = /* @__PURE__ */ Object.create(null); (o = e.input.charCodeAt(e.position)) !== 0 && (q(e, !0, -1), o = e.input.charCodeAt(e.position), !(e.lineIndent > 0 || o !== 37));) {
|
|
3743
|
+
for (a = !0, o = e.input.charCodeAt(++e.position), n = e.position; o !== 0 && !W(o);) o = e.input.charCodeAt(++e.position);
|
|
3744
|
+
for (r = e.input.slice(n, e.position), i = [], r.length < 1 && G(e, "directive name must not be less than one character in length"); o !== 0;) {
|
|
3745
|
+
for (; Jn(o);) o = e.input.charCodeAt(++e.position);
|
|
3742
3746
|
if (o === 35) {
|
|
3743
3747
|
do
|
|
3744
3748
|
o = e.input.charCodeAt(++e.position);
|
|
3745
|
-
while (o !== 0 && !
|
|
3749
|
+
while (o !== 0 && !U(o));
|
|
3746
3750
|
break;
|
|
3747
3751
|
}
|
|
3748
|
-
if (
|
|
3749
|
-
for (n = e.position; o !== 0 && !
|
|
3752
|
+
if (U(o)) break;
|
|
3753
|
+
for (n = e.position; o !== 0 && !W(o);) o = e.input.charCodeAt(++e.position);
|
|
3750
3754
|
i.push(e.input.slice(n, e.position));
|
|
3751
3755
|
}
|
|
3752
|
-
o !== 0 &&
|
|
3756
|
+
o !== 0 && ur(e), Pn.call(sr, r) ? sr[r](e, r, i) : or(e, "unknown document directive \"" + r + "\"");
|
|
3753
3757
|
}
|
|
3754
|
-
if (
|
|
3755
|
-
e.input.charCodeAt(e.position) === 46 && (e.position += 3,
|
|
3758
|
+
if (q(e, !0, -1), e.lineIndent === 0 && e.input.charCodeAt(e.position) === 45 && e.input.charCodeAt(e.position + 1) === 45 && e.input.charCodeAt(e.position + 2) === 45 ? (e.position += 3, q(e, !0, -1)) : a && G(e, "directives end mark is expected"), Cr(e, e.lineIndent - 1, Rn, !1, !0), q(e, !0, -1), e.checkLineBreaks && Un.test(e.input.slice(t, e.position)) && or(e, "non-ASCII line breaks are interpreted as content"), e.documents.push(e.result), e.position === e.lineStart && dr(e)) {
|
|
3759
|
+
e.input.charCodeAt(e.position) === 46 && (e.position += 3, q(e, !0, -1));
|
|
3756
3760
|
return;
|
|
3757
3761
|
}
|
|
3758
|
-
if (e.position < e.length - 1)
|
|
3762
|
+
if (e.position < e.length - 1) G(e, "end of the stream or a document separator is expected");
|
|
3759
3763
|
else return;
|
|
3760
3764
|
}
|
|
3761
|
-
a(
|
|
3762
|
-
function
|
|
3765
|
+
a(wr, "readDocument");
|
|
3766
|
+
function Tr(e, t) {
|
|
3763
3767
|
e = String(e), t ||= {}, e.length !== 0 && (e.charCodeAt(e.length - 1) !== 10 && e.charCodeAt(e.length - 1) !== 13 && (e += "\n"), e.charCodeAt(0) === 65279 && (e = e.slice(1)));
|
|
3764
|
-
var n = new
|
|
3765
|
-
for (r !== -1 && (n.position = r,
|
|
3766
|
-
for (; n.position < n.length - 1;)
|
|
3768
|
+
var n = new ir(e, t), r = e.indexOf("\0");
|
|
3769
|
+
for (r !== -1 && (n.position = r, G(n, "null byte is not allowed in input")), n.input += "\0"; n.input.charCodeAt(n.position) === 32;) n.lineIndent += 1, n.position += 1;
|
|
3770
|
+
for (; n.position < n.length - 1;) wr(n);
|
|
3767
3771
|
return n.documents;
|
|
3768
3772
|
}
|
|
3769
|
-
a(
|
|
3770
|
-
function
|
|
3773
|
+
a(Tr, "loadDocuments");
|
|
3774
|
+
function Er(e, t, n) {
|
|
3771
3775
|
typeof t == "object" && t && n === void 0 && (n = t, t = null);
|
|
3772
|
-
var r =
|
|
3776
|
+
var r = Tr(e, n);
|
|
3773
3777
|
if (typeof t != "function") return r;
|
|
3774
3778
|
for (var i = 0, a = r.length; i < a; i += 1) t(r[i]);
|
|
3775
3779
|
}
|
|
3776
|
-
a(
|
|
3777
|
-
function
|
|
3778
|
-
var n =
|
|
3780
|
+
a(Er, "loadAll$1");
|
|
3781
|
+
function Dr(e, t) {
|
|
3782
|
+
var n = Tr(e, t);
|
|
3779
3783
|
if (n.length !== 0) {
|
|
3780
3784
|
if (n.length === 1) return n[0];
|
|
3781
|
-
throw new
|
|
3785
|
+
throw new V("expected a single document in the stream, but found more");
|
|
3782
3786
|
}
|
|
3783
3787
|
}
|
|
3784
|
-
a(
|
|
3785
|
-
var
|
|
3786
|
-
loadAll:
|
|
3787
|
-
load:
|
|
3788
|
-
},
|
|
3789
|
-
|
|
3790
|
-
var
|
|
3788
|
+
a(Dr, "load$1");
|
|
3789
|
+
var Or = {
|
|
3790
|
+
loadAll: Er,
|
|
3791
|
+
load: Dr
|
|
3792
|
+
}, kr = Object.prototype.toString, Ar = Object.prototype.hasOwnProperty, jr = 65279, Mr = 9, Nr = 10, Pr = 13, Fr = 32, Ir = 33, Lr = 34, Rr = 35, zr = 37, Br = 38, Vr = 39, Hr = 42, Ur = 44, Wr = 45, Gr = 58, Kr = 61, qr = 62, Jr = 63, Yr = 64, Xr = 91, Zr = 93, Qr = 96, $r = 123, ei = 124, ti = 125, J = {};
|
|
3793
|
+
J[0] = "\\0", J[7] = "\\a", J[8] = "\\b", J[9] = "\\t", J[10] = "\\n", J[11] = "\\v", J[12] = "\\f", J[13] = "\\r", J[27] = "\\e", J[34] = "\\\"", J[92] = "\\\\", J[133] = "\\N", J[160] = "\\_", J[8232] = "\\L", J[8233] = "\\P";
|
|
3794
|
+
var ni = [
|
|
3791
3795
|
"y",
|
|
3792
3796
|
"Y",
|
|
3793
3797
|
"yes",
|
|
@@ -3804,239 +3808,239 @@ var ri = [
|
|
|
3804
3808
|
"off",
|
|
3805
3809
|
"Off",
|
|
3806
3810
|
"OFF"
|
|
3807
|
-
],
|
|
3808
|
-
function
|
|
3811
|
+
], ri = /^[-+]?[0-9_]+(?::[0-9_]+)+(?:\.[0-9_]*)?$/;
|
|
3812
|
+
function ii(e, t) {
|
|
3809
3813
|
var n, r, i, a, o, s, c;
|
|
3810
3814
|
if (t === null) return {};
|
|
3811
|
-
for (n = {}, r = Object.keys(t), i = 0, a = r.length; i < a; i += 1) o = r[i], s = String(t[o]), o.slice(0, 2) === "!!" && (o = "tag:yaml.org,2002:" + o.slice(2)), c = e.compiledTypeMap.fallback[o], c &&
|
|
3815
|
+
for (n = {}, r = Object.keys(t), i = 0, a = r.length; i < a; i += 1) o = r[i], s = String(t[o]), o.slice(0, 2) === "!!" && (o = "tag:yaml.org,2002:" + o.slice(2)), c = e.compiledTypeMap.fallback[o], c && Ar.call(c.styleAliases, s) && (s = c.styleAliases[s]), n[o] = s;
|
|
3812
3816
|
return n;
|
|
3813
3817
|
}
|
|
3814
|
-
a(
|
|
3815
|
-
function
|
|
3818
|
+
a(ii, "compileStyleMap");
|
|
3819
|
+
function ai(e) {
|
|
3816
3820
|
var t = e.toString(16).toUpperCase(), n, r;
|
|
3817
3821
|
if (e <= 255) n = "x", r = 2;
|
|
3818
3822
|
else if (e <= 65535) n = "u", r = 4;
|
|
3819
3823
|
else if (e <= 4294967295) n = "U", r = 8;
|
|
3820
|
-
else throw new
|
|
3821
|
-
return "\\" + n +
|
|
3824
|
+
else throw new V("code point within a string may not be greater than 0xFFFFFFFF");
|
|
3825
|
+
return "\\" + n + B.repeat("0", r - t.length) + t;
|
|
3822
3826
|
}
|
|
3823
|
-
a(
|
|
3824
|
-
var
|
|
3825
|
-
function
|
|
3826
|
-
this.schema = e.schema ||
|
|
3827
|
+
a(ai, "encodeHex");
|
|
3828
|
+
var oi = 1, si = 2;
|
|
3829
|
+
function ci(e) {
|
|
3830
|
+
this.schema = e.schema || Nn, this.indent = Math.max(1, e.indent || 2), this.noArrayIndent = e.noArrayIndent || !1, this.skipInvalid = e.skipInvalid || !1, this.flowLevel = B.isNothing(e.flowLevel) ? -1 : e.flowLevel, this.styleMap = ii(this.schema, e.styles || null), this.sortKeys = e.sortKeys || !1, this.lineWidth = e.lineWidth || 80, this.noRefs = e.noRefs || !1, this.noCompatMode = e.noCompatMode || !1, this.condenseFlow = e.condenseFlow || !1, this.quotingType = e.quotingType === "\"" ? si : oi, this.forceQuotes = e.forceQuotes || !1, this.replacer = typeof e.replacer == "function" ? e.replacer : null, this.implicitTypes = this.schema.compiledImplicit, this.explicitTypes = this.schema.compiledExplicit, this.tag = null, this.result = "", this.duplicates = [], this.usedDuplicates = null;
|
|
3827
3831
|
}
|
|
3828
|
-
a(
|
|
3829
|
-
function
|
|
3830
|
-
for (var n =
|
|
3832
|
+
a(ci, "State");
|
|
3833
|
+
function li(e, t) {
|
|
3834
|
+
for (var n = B.repeat(" ", t), r = 0, i = -1, a = "", o, s = e.length; r < s;) i = e.indexOf("\n", r), i === -1 ? (o = e.slice(r), r = s) : (o = e.slice(r, i + 1), r = i + 1), o.length && o !== "\n" && (a += n), a += o;
|
|
3831
3835
|
return a;
|
|
3832
3836
|
}
|
|
3833
|
-
a(
|
|
3834
|
-
function
|
|
3835
|
-
return "\n" +
|
|
3837
|
+
a(li, "indentString");
|
|
3838
|
+
function ui(e, t) {
|
|
3839
|
+
return "\n" + B.repeat(" ", e.indent * t);
|
|
3836
3840
|
}
|
|
3837
|
-
a(
|
|
3838
|
-
function
|
|
3841
|
+
a(ui, "generateNextLine");
|
|
3842
|
+
function di(e, t) {
|
|
3839
3843
|
var n, r, i;
|
|
3840
3844
|
for (n = 0, r = e.implicitTypes.length; n < r; n += 1) if (i = e.implicitTypes[n], i.resolve(t)) return !0;
|
|
3841
3845
|
return !1;
|
|
3842
3846
|
}
|
|
3843
|
-
a(
|
|
3847
|
+
a(di, "testImplicitResolving");
|
|
3848
|
+
function fi(e) {
|
|
3849
|
+
return e === Fr || e === Mr;
|
|
3850
|
+
}
|
|
3851
|
+
a(fi, "isWhitespace");
|
|
3844
3852
|
function pi(e) {
|
|
3845
|
-
return e
|
|
3853
|
+
return 32 <= e && e <= 126 || 161 <= e && e <= 55295 && e !== 8232 && e !== 8233 || 57344 <= e && e <= 65533 && e !== jr || 65536 <= e && e <= 1114111;
|
|
3846
3854
|
}
|
|
3847
|
-
a(pi, "
|
|
3855
|
+
a(pi, "isPrintable");
|
|
3848
3856
|
function mi(e) {
|
|
3849
|
-
return
|
|
3857
|
+
return pi(e) && e !== jr && e !== Pr && e !== Nr;
|
|
3850
3858
|
}
|
|
3851
|
-
a(mi, "
|
|
3852
|
-
function hi(e) {
|
|
3853
|
-
|
|
3859
|
+
a(mi, "isNsCharOrWhitespace");
|
|
3860
|
+
function hi(e, t, n) {
|
|
3861
|
+
var r = mi(e), i = r && !fi(e);
|
|
3862
|
+
return (n ? r : r && e !== Ur && e !== Xr && e !== Zr && e !== $r && e !== ti) && e !== Rr && !(t === Gr && !i) || mi(t) && !fi(t) && e === Rr || t === Gr && i;
|
|
3854
3863
|
}
|
|
3855
|
-
a(hi, "
|
|
3856
|
-
function gi(e
|
|
3857
|
-
|
|
3858
|
-
return (n ? r : r && e !== Wr && e !== Zr && e !== Qr && e !== ei && e !== ni) && e !== zr && !(t === Kr && !i) || hi(t) && !pi(t) && e === zr || t === Kr && i;
|
|
3864
|
+
a(hi, "isPlainSafe");
|
|
3865
|
+
function gi(e) {
|
|
3866
|
+
return pi(e) && e !== jr && !fi(e) && e !== Wr && e !== Jr && e !== Gr && e !== Ur && e !== Xr && e !== Zr && e !== $r && e !== ti && e !== Rr && e !== Br && e !== Hr && e !== Ir && e !== ei && e !== Kr && e !== qr && e !== Vr && e !== Lr && e !== zr && e !== Yr && e !== Qr;
|
|
3859
3867
|
}
|
|
3860
|
-
a(gi, "
|
|
3868
|
+
a(gi, "isPlainSafeFirst");
|
|
3861
3869
|
function _i(e) {
|
|
3862
|
-
return
|
|
3863
|
-
}
|
|
3864
|
-
a(_i, "isPlainSafeFirst");
|
|
3865
|
-
function vi(e) {
|
|
3866
|
-
return !pi(e) && e !== Kr;
|
|
3870
|
+
return !fi(e) && e !== Gr;
|
|
3867
3871
|
}
|
|
3868
|
-
a(
|
|
3869
|
-
function
|
|
3872
|
+
a(_i, "isPlainSafeLast");
|
|
3873
|
+
function vi(e, t) {
|
|
3870
3874
|
var n = e.charCodeAt(t), r;
|
|
3871
3875
|
return n >= 55296 && n <= 56319 && t + 1 < e.length && (r = e.charCodeAt(t + 1), r >= 56320 && r <= 57343) ? (n - 55296) * 1024 + r - 56320 + 65536 : n;
|
|
3872
3876
|
}
|
|
3873
|
-
a(
|
|
3874
|
-
function
|
|
3877
|
+
a(vi, "codePointAt");
|
|
3878
|
+
function yi(e) {
|
|
3875
3879
|
return /^\n* /.test(e);
|
|
3876
3880
|
}
|
|
3877
|
-
a(
|
|
3878
|
-
var
|
|
3879
|
-
function
|
|
3880
|
-
var c, l = 0, u = null, d = !1, f = !1, p = r !== -1, m = -1, h =
|
|
3881
|
+
a(yi, "needIndentIndicator");
|
|
3882
|
+
var bi = 1, xi = 2, Si = 3, Ci = 4, wi = 5;
|
|
3883
|
+
function Ti(e, t, n, r, i, a, o, s) {
|
|
3884
|
+
var c, l = 0, u = null, d = !1, f = !1, p = r !== -1, m = -1, h = gi(vi(e, 0)) && _i(vi(e, e.length - 1));
|
|
3881
3885
|
if (t || o) for (c = 0; c < e.length; l >= 65536 ? c += 2 : c++) {
|
|
3882
|
-
if (l =
|
|
3883
|
-
h &&=
|
|
3886
|
+
if (l = vi(e, c), !pi(l)) return wi;
|
|
3887
|
+
h &&= hi(l, u, s), u = l;
|
|
3884
3888
|
}
|
|
3885
3889
|
else {
|
|
3886
3890
|
for (c = 0; c < e.length; l >= 65536 ? c += 2 : c++) {
|
|
3887
|
-
if (l =
|
|
3888
|
-
else if (!
|
|
3889
|
-
h &&=
|
|
3891
|
+
if (l = vi(e, c), l === Nr) d = !0, p && (f ||= c - m - 1 > r && e[m + 1] !== " ", m = c);
|
|
3892
|
+
else if (!pi(l)) return wi;
|
|
3893
|
+
h &&= hi(l, u, s), u = l;
|
|
3890
3894
|
}
|
|
3891
3895
|
f ||= p && c - m - 1 > r && e[m + 1] !== " ";
|
|
3892
3896
|
}
|
|
3893
|
-
return !d && !f ? h && !o && !i(e) ?
|
|
3897
|
+
return !d && !f ? h && !o && !i(e) ? bi : a === si ? wi : xi : n > 9 && yi(e) ? wi : o ? a === si ? wi : xi : f ? Ci : Si;
|
|
3894
3898
|
}
|
|
3895
|
-
a(
|
|
3896
|
-
function
|
|
3899
|
+
a(Ti, "chooseScalarStyle");
|
|
3900
|
+
function Ei(e, t, n, r, i) {
|
|
3897
3901
|
e.dump = (function() {
|
|
3898
|
-
if (t.length === 0) return e.quotingType ===
|
|
3899
|
-
if (!e.noCompatMode && (
|
|
3902
|
+
if (t.length === 0) return e.quotingType === si ? "\"\"" : "''";
|
|
3903
|
+
if (!e.noCompatMode && (ni.indexOf(t) !== -1 || ri.test(t))) return e.quotingType === si ? "\"" + t + "\"" : "'" + t + "'";
|
|
3900
3904
|
var o = e.indent * Math.max(1, n), s = e.lineWidth === -1 ? -1 : Math.max(Math.min(e.lineWidth, 40), e.lineWidth - o), c = r || e.flowLevel > -1 && n >= e.flowLevel;
|
|
3901
3905
|
function l(t) {
|
|
3902
|
-
return
|
|
3906
|
+
return di(e, t);
|
|
3903
3907
|
}
|
|
3904
|
-
switch (a(l, "testAmbiguity"),
|
|
3905
|
-
case
|
|
3906
|
-
case
|
|
3907
|
-
case
|
|
3908
|
-
case
|
|
3909
|
-
case
|
|
3910
|
-
default: throw new
|
|
3908
|
+
switch (a(l, "testAmbiguity"), Ti(t, c, e.indent, s, l, e.quotingType, e.forceQuotes && !r, i)) {
|
|
3909
|
+
case bi: return t;
|
|
3910
|
+
case xi: return "'" + t.replace(/'/g, "''") + "'";
|
|
3911
|
+
case Si: return "|" + Di(t, e.indent) + Oi(li(t, o));
|
|
3912
|
+
case Ci: return ">" + Di(t, e.indent) + Oi(li(ki(t, s), o));
|
|
3913
|
+
case wi: return "\"" + ji(t) + "\"";
|
|
3914
|
+
default: throw new V("impossible error: invalid scalar style");
|
|
3911
3915
|
}
|
|
3912
3916
|
})();
|
|
3913
3917
|
}
|
|
3914
|
-
a(
|
|
3915
|
-
function
|
|
3916
|
-
var n =
|
|
3918
|
+
a(Ei, "writeScalar");
|
|
3919
|
+
function Di(e, t) {
|
|
3920
|
+
var n = yi(e) ? String(t) : "", r = e[e.length - 1] === "\n";
|
|
3917
3921
|
return n + (r && (e[e.length - 2] === "\n" || e === "\n") ? "+" : r ? "" : "-") + "\n";
|
|
3918
3922
|
}
|
|
3919
|
-
a(
|
|
3920
|
-
function
|
|
3923
|
+
a(Di, "blockHeader");
|
|
3924
|
+
function Oi(e) {
|
|
3921
3925
|
return e[e.length - 1] === "\n" ? e.slice(0, -1) : e;
|
|
3922
3926
|
}
|
|
3923
|
-
a(
|
|
3924
|
-
function
|
|
3927
|
+
a(Oi, "dropEndingNewline");
|
|
3928
|
+
function ki(e, t) {
|
|
3925
3929
|
for (var n = /(\n+)([^\n]*)/g, r = (function() {
|
|
3926
3930
|
var r = e.indexOf("\n");
|
|
3927
|
-
return r = r === -1 ? e.length : r, n.lastIndex = r,
|
|
3931
|
+
return r = r === -1 ? e.length : r, n.lastIndex = r, Ai(e.slice(0, r), t);
|
|
3928
3932
|
})(), i = e[0] === "\n" || e[0] === " ", a, o; o = n.exec(e);) {
|
|
3929
3933
|
var s = o[1], c = o[2];
|
|
3930
|
-
a = c[0] === " ", r += s + (!i && !a && c !== "" ? "\n" : "") +
|
|
3934
|
+
a = c[0] === " ", r += s + (!i && !a && c !== "" ? "\n" : "") + Ai(c, t), i = a;
|
|
3931
3935
|
}
|
|
3932
3936
|
return r;
|
|
3933
3937
|
}
|
|
3934
|
-
a(
|
|
3935
|
-
function
|
|
3938
|
+
a(ki, "foldString");
|
|
3939
|
+
function Ai(e, t) {
|
|
3936
3940
|
if (e === "" || e[0] === " ") return e;
|
|
3937
3941
|
for (var n = / [^ ]/g, r, i = 0, a, o = 0, s = 0, c = ""; r = n.exec(e);) s = r.index, s - i > t && (a = o > i ? o : s, c += "\n" + e.slice(i, a), i = a + 1), o = s;
|
|
3938
3942
|
return c += "\n", e.length - i > t && o > i ? c += e.slice(i, o) + "\n" + e.slice(o + 1) : c += e.slice(i), c.slice(1);
|
|
3939
3943
|
}
|
|
3940
|
-
a(
|
|
3941
|
-
function
|
|
3942
|
-
for (var t = "", n = 0, r, i = 0; i < e.length; n >= 65536 ? i += 2 : i++) n =
|
|
3944
|
+
a(Ai, "foldLine");
|
|
3945
|
+
function ji(e) {
|
|
3946
|
+
for (var t = "", n = 0, r, i = 0; i < e.length; n >= 65536 ? i += 2 : i++) n = vi(e, i), r = J[n], !r && pi(n) ? (t += e[i], n >= 65536 && (t += e[i + 1])) : t += r || ai(n);
|
|
3943
3947
|
return t;
|
|
3944
3948
|
}
|
|
3945
|
-
a(
|
|
3946
|
-
function
|
|
3949
|
+
a(ji, "escapeString");
|
|
3950
|
+
function Mi(e, t, n) {
|
|
3947
3951
|
var r = "", i = e.tag, a, o, s;
|
|
3948
|
-
for (a = 0, o = n.length; a < o; a += 1) s = n[a], e.replacer && (s = e.replacer.call(n, String(a), s)), (
|
|
3952
|
+
for (a = 0, o = n.length; a < o; a += 1) s = n[a], e.replacer && (s = e.replacer.call(n, String(a), s)), (Y(e, t, s, !1, !1) || s === void 0 && Y(e, t, null, !1, !1)) && (r !== "" && (r += "," + (e.condenseFlow ? "" : " ")), r += e.dump);
|
|
3949
3953
|
e.tag = i, e.dump = "[" + r + "]";
|
|
3950
3954
|
}
|
|
3951
|
-
a(
|
|
3952
|
-
function
|
|
3955
|
+
a(Mi, "writeFlowSequence");
|
|
3956
|
+
function Ni(e, t, n, r) {
|
|
3953
3957
|
var i = "", a = e.tag, o, s, c;
|
|
3954
|
-
for (o = 0, s = n.length; o < s; o += 1) c = n[o], e.replacer && (c = e.replacer.call(n, String(o), c)), (
|
|
3958
|
+
for (o = 0, s = n.length; o < s; o += 1) c = n[o], e.replacer && (c = e.replacer.call(n, String(o), c)), (Y(e, t + 1, c, !0, !0, !1, !0) || c === void 0 && Y(e, t + 1, null, !0, !0, !1, !0)) && ((!r || i !== "") && (i += ui(e, t)), e.dump && Nr === e.dump.charCodeAt(0) ? i += "-" : i += "- ", i += e.dump);
|
|
3955
3959
|
e.tag = a, e.dump = i || "[]";
|
|
3956
3960
|
}
|
|
3957
|
-
a(
|
|
3958
|
-
function
|
|
3961
|
+
a(Ni, "writeBlockSequence");
|
|
3962
|
+
function Pi(e, t, n) {
|
|
3959
3963
|
var r = "", i = e.tag, a = Object.keys(n), o, s, c, l, u;
|
|
3960
|
-
for (o = 0, s = a.length; o < s; o += 1) u = "", r !== "" && (u += ", "), e.condenseFlow && (u += "\""), c = a[o], l = n[c], e.replacer && (l = e.replacer.call(n, c, l)),
|
|
3964
|
+
for (o = 0, s = a.length; o < s; o += 1) u = "", r !== "" && (u += ", "), e.condenseFlow && (u += "\""), c = a[o], l = n[c], e.replacer && (l = e.replacer.call(n, c, l)), Y(e, t, c, !1, !1) && (e.dump.length > 1024 && (u += "? "), u += e.dump + (e.condenseFlow ? "\"" : "") + ":" + (e.condenseFlow ? "" : " "), Y(e, t, l, !1, !1) && (u += e.dump, r += u));
|
|
3961
3965
|
e.tag = i, e.dump = "{" + r + "}";
|
|
3962
3966
|
}
|
|
3963
|
-
a(
|
|
3964
|
-
function
|
|
3967
|
+
a(Pi, "writeFlowMapping");
|
|
3968
|
+
function Fi(e, t, n, r) {
|
|
3965
3969
|
var i = "", a = e.tag, o = Object.keys(n), s, c, l, u, d, f;
|
|
3966
3970
|
if (e.sortKeys === !0) o.sort();
|
|
3967
3971
|
else if (typeof e.sortKeys == "function") o.sort(e.sortKeys);
|
|
3968
|
-
else if (e.sortKeys) throw new
|
|
3969
|
-
for (s = 0, c = o.length; s < c; s += 1) f = "", (!r || i !== "") && (f +=
|
|
3972
|
+
else if (e.sortKeys) throw new V("sortKeys must be a boolean or a function");
|
|
3973
|
+
for (s = 0, c = o.length; s < c; s += 1) f = "", (!r || i !== "") && (f += ui(e, t)), l = o[s], u = n[l], e.replacer && (u = e.replacer.call(n, l, u)), Y(e, t + 1, l, !0, !0, !0) && (d = e.tag !== null && e.tag !== "?" || e.dump && e.dump.length > 1024, d && (e.dump && Nr === e.dump.charCodeAt(0) ? f += "?" : f += "? "), f += e.dump, d && (f += ui(e, t)), Y(e, t + 1, u, !0, d) && (e.dump && Nr === e.dump.charCodeAt(0) ? f += ":" : f += ": ", f += e.dump, i += f));
|
|
3970
3974
|
e.tag = a, e.dump = i || "{}";
|
|
3971
3975
|
}
|
|
3972
|
-
a(
|
|
3973
|
-
function
|
|
3976
|
+
a(Fi, "writeBlockMapping");
|
|
3977
|
+
function Ii(e, t, n) {
|
|
3974
3978
|
var r, i = n ? e.explicitTypes : e.implicitTypes, a, o, s, c;
|
|
3975
3979
|
for (a = 0, o = i.length; a < o; a += 1) if (s = i[a], (s.instanceOf || s.predicate) && (!s.instanceOf || typeof t == "object" && t instanceof s.instanceOf) && (!s.predicate || s.predicate(t))) {
|
|
3976
3980
|
if (n ? s.multi && s.representName ? e.tag = s.representName(t) : e.tag = s.tag : e.tag = "?", s.represent) {
|
|
3977
|
-
if (c = e.styleMap[s.tag] || s.defaultStyle,
|
|
3978
|
-
else if (
|
|
3979
|
-
else throw new
|
|
3981
|
+
if (c = e.styleMap[s.tag] || s.defaultStyle, kr.call(s.represent) === "[object Function]") r = s.represent(t, c);
|
|
3982
|
+
else if (Ar.call(s.represent, c)) r = s.represent[c](t, c);
|
|
3983
|
+
else throw new V("!<" + s.tag + "> tag resolver accepts not \"" + c + "\" style");
|
|
3980
3984
|
e.dump = r;
|
|
3981
3985
|
}
|
|
3982
3986
|
return !0;
|
|
3983
3987
|
}
|
|
3984
3988
|
return !1;
|
|
3985
3989
|
}
|
|
3986
|
-
a(
|
|
3987
|
-
function
|
|
3988
|
-
e.tag = null, e.dump = n,
|
|
3989
|
-
var s =
|
|
3990
|
+
a(Ii, "detectType");
|
|
3991
|
+
function Y(e, t, n, r, i, a, o) {
|
|
3992
|
+
e.tag = null, e.dump = n, Ii(e, n, !1) || Ii(e, n, !0);
|
|
3993
|
+
var s = kr.call(e.dump), c = r, l;
|
|
3990
3994
|
r &&= e.flowLevel < 0 || e.flowLevel > t;
|
|
3991
3995
|
var u = s === "[object Object]" || s === "[object Array]", d, f;
|
|
3992
3996
|
if (u && (d = e.duplicates.indexOf(n), f = d !== -1), (e.tag !== null && e.tag !== "?" || f || e.indent !== 2 && t > 0) && (i = !1), f && e.usedDuplicates[d]) e.dump = "*ref_" + d;
|
|
3993
3997
|
else {
|
|
3994
|
-
if (u && f && !e.usedDuplicates[d] && (e.usedDuplicates[d] = !0), s === "[object Object]") r && Object.keys(e.dump).length !== 0 ? (
|
|
3995
|
-
else if (s === "[object Array]") r && e.dump.length !== 0 ? (e.noArrayIndent && !o && t > 0 ?
|
|
3996
|
-
else if (s === "[object String]") e.tag !== "?" &&
|
|
3998
|
+
if (u && f && !e.usedDuplicates[d] && (e.usedDuplicates[d] = !0), s === "[object Object]") r && Object.keys(e.dump).length !== 0 ? (Fi(e, t, e.dump, i), f && (e.dump = "&ref_" + d + e.dump)) : (Pi(e, t, e.dump), f && (e.dump = "&ref_" + d + " " + e.dump));
|
|
3999
|
+
else if (s === "[object Array]") r && e.dump.length !== 0 ? (e.noArrayIndent && !o && t > 0 ? Ni(e, t - 1, e.dump, i) : Ni(e, t, e.dump, i), f && (e.dump = "&ref_" + d + e.dump)) : (Mi(e, t, e.dump), f && (e.dump = "&ref_" + d + " " + e.dump));
|
|
4000
|
+
else if (s === "[object String]") e.tag !== "?" && Ei(e, e.dump, t, a, c);
|
|
3997
4001
|
else if (s === "[object Undefined]") return !1;
|
|
3998
4002
|
else {
|
|
3999
4003
|
if (e.skipInvalid) return !1;
|
|
4000
|
-
throw new
|
|
4004
|
+
throw new V("unacceptable kind of an object to dump " + s);
|
|
4001
4005
|
}
|
|
4002
4006
|
e.tag !== null && e.tag !== "?" && (l = encodeURI(e.tag[0] === "!" ? e.tag.slice(1) : e.tag).replace(/!/g, "%21"), l = e.tag[0] === "!" ? "!" + l : l.slice(0, 18) === "tag:yaml.org,2002:" ? "!!" + l.slice(18) : "!<" + l + ">", e.dump = l + " " + e.dump);
|
|
4003
4007
|
}
|
|
4004
4008
|
return !0;
|
|
4005
4009
|
}
|
|
4006
|
-
a(
|
|
4007
|
-
function
|
|
4010
|
+
a(Y, "writeNode");
|
|
4011
|
+
function Li(e, t) {
|
|
4008
4012
|
var n = [], r = [], i, a;
|
|
4009
|
-
for (
|
|
4013
|
+
for (Ri(e, n, r), i = 0, a = r.length; i < a; i += 1) t.duplicates.push(n[r[i]]);
|
|
4010
4014
|
t.usedDuplicates = Array(a);
|
|
4011
4015
|
}
|
|
4012
|
-
a(
|
|
4013
|
-
function
|
|
4016
|
+
a(Li, "getDuplicateReferences");
|
|
4017
|
+
function Ri(e, t, n) {
|
|
4014
4018
|
var r, i, a;
|
|
4015
4019
|
if (typeof e == "object" && e) if (i = t.indexOf(e), i !== -1) n.indexOf(i) === -1 && n.push(i);
|
|
4016
|
-
else if (t.push(e), Array.isArray(e)) for (i = 0, a = e.length; i < a; i += 1)
|
|
4017
|
-
else for (r = Object.keys(e), i = 0, a = r.length; i < a; i += 1)
|
|
4020
|
+
else if (t.push(e), Array.isArray(e)) for (i = 0, a = e.length; i < a; i += 1) Ri(e[i], t, n);
|
|
4021
|
+
else for (r = Object.keys(e), i = 0, a = r.length; i < a; i += 1) Ri(e[r[i]], t, n);
|
|
4018
4022
|
}
|
|
4019
|
-
a(
|
|
4020
|
-
function
|
|
4023
|
+
a(Ri, "inspectNode");
|
|
4024
|
+
function zi(e, t) {
|
|
4021
4025
|
t ||= {};
|
|
4022
|
-
var n = new
|
|
4023
|
-
n.noRefs ||
|
|
4026
|
+
var n = new ci(t);
|
|
4027
|
+
n.noRefs || Li(e, n);
|
|
4024
4028
|
var r = e;
|
|
4025
|
-
return n.replacer && (r = n.replacer.call({ "": r }, "", r)),
|
|
4029
|
+
return n.replacer && (r = n.replacer.call({ "": r }, "", r)), Y(n, 0, r, !0, !0) ? n.dump + "\n" : "";
|
|
4026
4030
|
}
|
|
4027
|
-
a(
|
|
4028
|
-
var
|
|
4029
|
-
function
|
|
4031
|
+
a(zi, "dump$1");
|
|
4032
|
+
var Bi = { dump: zi };
|
|
4033
|
+
function Vi(e, t) {
|
|
4030
4034
|
return function() {
|
|
4031
4035
|
throw Error("Function yaml." + e + " is removed in js-yaml 4. Use yaml." + t + " instead, which is now safe by default.");
|
|
4032
4036
|
};
|
|
4033
4037
|
}
|
|
4034
|
-
a(
|
|
4035
|
-
var
|
|
4036
|
-
|
|
4038
|
+
a(Vi, "renamed");
|
|
4039
|
+
var Hi = rn, Ui = Or.load;
|
|
4040
|
+
Or.loadAll, Bi.dump;
|
|
4037
4041
|
//#endregion
|
|
4038
4042
|
//#region node_modules/.pnpm/mermaid@11.12.0/node_modules/mermaid/dist/chunks/mermaid.core/chunk-N4CR4FBY.mjs
|
|
4039
|
-
var
|
|
4043
|
+
var Wi = {
|
|
4040
4044
|
common: D,
|
|
4041
4045
|
getConfig: j,
|
|
4042
4046
|
insertCluster: be,
|
|
@@ -4048,55 +4052,55 @@ var Gi = {
|
|
|
4048
4052
|
labelHelper: xe,
|
|
4049
4053
|
log: i,
|
|
4050
4054
|
positionEdgeLabel: Se
|
|
4051
|
-
},
|
|
4052
|
-
for (let t of e)
|
|
4055
|
+
}, Gi = {}, Ki = /* @__PURE__ */ a((e) => {
|
|
4056
|
+
for (let t of e) Gi[t.name] = t;
|
|
4053
4057
|
}, "registerLayoutLoaders");
|
|
4054
4058
|
(/* @__PURE__ */ a(() => {
|
|
4055
|
-
|
|
4059
|
+
Ki([{
|
|
4056
4060
|
name: "dagre",
|
|
4057
|
-
loader: /* @__PURE__ */ a(async () => await import("./dagre-6UL2VRFP-
|
|
4061
|
+
loader: /* @__PURE__ */ a(async () => await import("./dagre-6UL2VRFP-C3Ipvs60.js"), "loader")
|
|
4058
4062
|
}, {
|
|
4059
4063
|
name: "cose-bilkent",
|
|
4060
4064
|
loader: /* @__PURE__ */ a(async () => await import("./cose-bilkent-S5V4N54A-bGPAcpg6.js"), "loader")
|
|
4061
4065
|
}]);
|
|
4062
4066
|
}, "registerDefaultLayoutLoaders"))();
|
|
4063
|
-
var
|
|
4064
|
-
if (!(e.layoutAlgorithm in
|
|
4065
|
-
let n =
|
|
4066
|
-
return (await n.loader()).render(e, t,
|
|
4067
|
-
}, "render"),
|
|
4068
|
-
if (e in
|
|
4069
|
-
if (t in
|
|
4067
|
+
var qi = /* @__PURE__ */ a(async (e, t) => {
|
|
4068
|
+
if (!(e.layoutAlgorithm in Gi)) throw Error(`Unknown layout algorithm: ${e.layoutAlgorithm}`);
|
|
4069
|
+
let n = Gi[e.layoutAlgorithm];
|
|
4070
|
+
return (await n.loader()).render(e, t, Wi, { algorithm: n.algorithm });
|
|
4071
|
+
}, "render"), Ji = /* @__PURE__ */ a((e = "", { fallback: t = "dagre" } = {}) => {
|
|
4072
|
+
if (e in Gi) return e;
|
|
4073
|
+
if (t in Gi) return i.warn(`Layout algorithm ${e} is not registered. Using ${t} as fallback.`), t;
|
|
4070
4074
|
throw Error(`Both layout algorithms ${e} and ${t} are not registered.`);
|
|
4071
|
-
}, "getRegisteredLayoutAlgorithm"),
|
|
4072
|
-
function
|
|
4075
|
+
}, "getRegisteredLayoutAlgorithm"), Yi = "comm", Xi = "rule", Zi = "decl", Qi = "@import", $i = "@namespace", ea = "@keyframes", ta = "@layer", na = Math.abs, ra = String.fromCharCode;
|
|
4076
|
+
function ia(e) {
|
|
4073
4077
|
return e.trim();
|
|
4074
4078
|
}
|
|
4075
|
-
function
|
|
4079
|
+
function aa(e, t, n) {
|
|
4076
4080
|
return e.replace(t, n);
|
|
4077
4081
|
}
|
|
4078
|
-
function
|
|
4082
|
+
function oa(e, t, n) {
|
|
4079
4083
|
return e.indexOf(t, n);
|
|
4080
4084
|
}
|
|
4081
|
-
function
|
|
4085
|
+
function sa(e, t) {
|
|
4082
4086
|
return e.charCodeAt(t) | 0;
|
|
4083
4087
|
}
|
|
4084
|
-
function
|
|
4088
|
+
function ca(e, t, n) {
|
|
4085
4089
|
return e.slice(t, n);
|
|
4086
4090
|
}
|
|
4087
|
-
function
|
|
4091
|
+
function X(e) {
|
|
4088
4092
|
return e.length;
|
|
4089
4093
|
}
|
|
4090
|
-
function
|
|
4094
|
+
function la(e) {
|
|
4091
4095
|
return e.length;
|
|
4092
4096
|
}
|
|
4093
|
-
function
|
|
4097
|
+
function ua(e, t) {
|
|
4094
4098
|
return t.push(e), e;
|
|
4095
4099
|
}
|
|
4096
4100
|
//#endregion
|
|
4097
4101
|
//#region node_modules/.pnpm/stylis@4.3.6/node_modules/stylis/src/Tokenizer.js
|
|
4098
|
-
var
|
|
4099
|
-
function
|
|
4102
|
+
var da = 1, fa = 1, pa = 0, Z = 0, Q = 0, ma = "";
|
|
4103
|
+
function ha(e, t, n, r, i, a, o, s) {
|
|
4100
4104
|
return {
|
|
4101
4105
|
value: e,
|
|
4102
4106
|
root: t,
|
|
@@ -4104,32 +4108,32 @@ function ga(e, t, n, r, i, a, o, s) {
|
|
|
4104
4108
|
type: r,
|
|
4105
4109
|
props: i,
|
|
4106
4110
|
children: a,
|
|
4107
|
-
line:
|
|
4108
|
-
column:
|
|
4111
|
+
line: da,
|
|
4112
|
+
column: fa,
|
|
4109
4113
|
length: o,
|
|
4110
4114
|
return: "",
|
|
4111
4115
|
siblings: s
|
|
4112
4116
|
};
|
|
4113
4117
|
}
|
|
4118
|
+
function ga() {
|
|
4119
|
+
return Q;
|
|
4120
|
+
}
|
|
4114
4121
|
function _a() {
|
|
4115
|
-
return Z;
|
|
4122
|
+
return Q = Z > 0 ? sa(ma, --Z) : 0, fa--, Q === 10 && (fa = 1, da--), Q;
|
|
4116
4123
|
}
|
|
4117
|
-
function
|
|
4118
|
-
return
|
|
4124
|
+
function $() {
|
|
4125
|
+
return Q = Z < pa ? sa(ma, Z++) : 0, fa++, Q === 10 && (fa = 1, da++), Q;
|
|
4119
4126
|
}
|
|
4120
|
-
function
|
|
4121
|
-
return
|
|
4127
|
+
function va() {
|
|
4128
|
+
return sa(ma, Z);
|
|
4122
4129
|
}
|
|
4123
4130
|
function ya() {
|
|
4124
|
-
return
|
|
4125
|
-
}
|
|
4126
|
-
function ba() {
|
|
4127
|
-
return X;
|
|
4131
|
+
return Z;
|
|
4128
4132
|
}
|
|
4129
|
-
function
|
|
4130
|
-
return
|
|
4133
|
+
function ba(e, t) {
|
|
4134
|
+
return ca(ma, e, t);
|
|
4131
4135
|
}
|
|
4132
|
-
function
|
|
4136
|
+
function xa(e) {
|
|
4133
4137
|
switch (e) {
|
|
4134
4138
|
case 0:
|
|
4135
4139
|
case 9:
|
|
@@ -4156,82 +4160,82 @@ function Sa(e) {
|
|
|
4156
4160
|
}
|
|
4157
4161
|
return 0;
|
|
4158
4162
|
}
|
|
4163
|
+
function Sa(e) {
|
|
4164
|
+
return da = fa = 1, pa = X(ma = e), Z = 0, [];
|
|
4165
|
+
}
|
|
4159
4166
|
function Ca(e) {
|
|
4160
|
-
return
|
|
4167
|
+
return ma = "", e;
|
|
4161
4168
|
}
|
|
4162
4169
|
function wa(e) {
|
|
4163
|
-
return
|
|
4170
|
+
return ia(ba(Z - 1, Da(e === 91 ? e + 2 : e === 40 ? e + 1 : e)));
|
|
4164
4171
|
}
|
|
4165
4172
|
function Ta(e) {
|
|
4166
|
-
|
|
4173
|
+
for (; (Q = va()) && Q < 33;) $();
|
|
4174
|
+
return xa(e) > 2 || xa(Q) > 3 ? "" : " ";
|
|
4167
4175
|
}
|
|
4168
|
-
function Ea(e) {
|
|
4169
|
-
for (;
|
|
4170
|
-
return
|
|
4176
|
+
function Ea(e, t) {
|
|
4177
|
+
for (; --t && $() && !(Q < 48 || Q > 102 || Q > 57 && Q < 65 || Q > 70 && Q < 97););
|
|
4178
|
+
return ba(e, ya() + (t < 6 && va() == 32 && $() == 32));
|
|
4171
4179
|
}
|
|
4172
|
-
function Da(e
|
|
4173
|
-
for (;
|
|
4174
|
-
|
|
4175
|
-
}
|
|
4176
|
-
function Oa(e) {
|
|
4177
|
-
for (; Q();) switch (Z) {
|
|
4178
|
-
case e: return X;
|
|
4180
|
+
function Da(e) {
|
|
4181
|
+
for (; $();) switch (Q) {
|
|
4182
|
+
case e: return Z;
|
|
4179
4183
|
case 34:
|
|
4180
4184
|
case 39:
|
|
4181
|
-
e !== 34 && e !== 39 &&
|
|
4185
|
+
e !== 34 && e !== 39 && Da(Q);
|
|
4182
4186
|
break;
|
|
4183
4187
|
case 40:
|
|
4184
|
-
e === 41 &&
|
|
4188
|
+
e === 41 && Da(e);
|
|
4185
4189
|
break;
|
|
4186
4190
|
case 92:
|
|
4187
|
-
|
|
4191
|
+
$();
|
|
4188
4192
|
break;
|
|
4189
4193
|
}
|
|
4190
|
-
return
|
|
4194
|
+
return Z;
|
|
4191
4195
|
}
|
|
4192
|
-
function
|
|
4193
|
-
for (;
|
|
4194
|
-
return "/*" +
|
|
4196
|
+
function Oa(e, t) {
|
|
4197
|
+
for (; $() && e + Q !== 57 && !(e + Q === 84 && va() === 47););
|
|
4198
|
+
return "/*" + ba(t, Z - 1) + "*" + ra(e === 47 ? e : $());
|
|
4195
4199
|
}
|
|
4196
|
-
function
|
|
4197
|
-
for (; !
|
|
4198
|
-
return
|
|
4200
|
+
function ka(e) {
|
|
4201
|
+
for (; !xa(va());) $();
|
|
4202
|
+
return ba(e, Z);
|
|
4199
4203
|
}
|
|
4200
4204
|
//#endregion
|
|
4201
4205
|
//#region node_modules/.pnpm/stylis@4.3.6/node_modules/stylis/src/Parser.js
|
|
4202
|
-
function
|
|
4203
|
-
return
|
|
4206
|
+
function Aa(e) {
|
|
4207
|
+
return Ca(ja("", null, null, null, [""], e = Sa(e), 0, [0], e));
|
|
4204
4208
|
}
|
|
4205
|
-
function
|
|
4206
|
-
for (var l = 0, u = 0, d = o, f = 0, p = 0, m = 0, h = 1, g = 1, _ = 1, v = 0, y = "", b = i, x = a, S = r, C = y; g;) switch (m = v, v =
|
|
4207
|
-
case 40: if (m != 108 &&
|
|
4208
|
-
|
|
4209
|
+
function ja(e, t, n, r, i, a, o, s, c) {
|
|
4210
|
+
for (var l = 0, u = 0, d = o, f = 0, p = 0, m = 0, h = 1, g = 1, _ = 1, v = 0, y = "", b = i, x = a, S = r, C = y; g;) switch (m = v, v = $()) {
|
|
4211
|
+
case 40: if (m != 108 && sa(C, d - 1) == 58) {
|
|
4212
|
+
oa(C += aa(wa(v), "&", "&\f"), "&\f", na(l ? s[l - 1] : 0)) != -1 && (_ = -1);
|
|
4209
4213
|
break;
|
|
4210
4214
|
}
|
|
4211
4215
|
case 34:
|
|
4212
4216
|
case 39:
|
|
4213
4217
|
case 91:
|
|
4214
|
-
C +=
|
|
4218
|
+
C += wa(v);
|
|
4215
4219
|
break;
|
|
4216
4220
|
case 9:
|
|
4217
4221
|
case 10:
|
|
4218
4222
|
case 13:
|
|
4219
4223
|
case 32:
|
|
4220
|
-
C +=
|
|
4224
|
+
C += Ta(m);
|
|
4221
4225
|
break;
|
|
4222
4226
|
case 92:
|
|
4223
|
-
C +=
|
|
4227
|
+
C += Ea(ya() - 1, 7);
|
|
4224
4228
|
continue;
|
|
4225
4229
|
case 47:
|
|
4226
|
-
switch (
|
|
4230
|
+
switch (va()) {
|
|
4227
4231
|
case 42:
|
|
4228
4232
|
case 47:
|
|
4229
|
-
|
|
4233
|
+
ua(Na(Oa($(), ya()), t, n, c), c), (xa(m || 1) == 5 || xa(va() || 1) == 5) && X(C) && ca(C, -1, void 0) !== " " && (C += " ");
|
|
4230
4234
|
break;
|
|
4231
4235
|
default: C += "/";
|
|
4232
4236
|
}
|
|
4233
4237
|
break;
|
|
4234
|
-
case 123 * h: s[l++] =
|
|
4238
|
+
case 123 * h: s[l++] = X(C) * _;
|
|
4235
4239
|
case 125 * h:
|
|
4236
4240
|
case 59:
|
|
4237
4241
|
case 0:
|
|
@@ -4239,388 +4243,388 @@ function Ma(e, t, n, r, i, a, o, s, c) {
|
|
|
4239
4243
|
case 0:
|
|
4240
4244
|
case 125: g = 0;
|
|
4241
4245
|
case 59 + u:
|
|
4242
|
-
_ == -1 && (C =
|
|
4246
|
+
_ == -1 && (C = aa(C, /\f/g, "")), p > 0 && (X(C) - d || h === 0 && m === 47) && ua(p > 32 ? Pa(C + ";", r, n, d - 1, c) : Pa(aa(C, " ", "") + ";", r, n, d - 2, c), c);
|
|
4243
4247
|
break;
|
|
4244
4248
|
case 59: C += ";";
|
|
4245
|
-
default: if (
|
|
4249
|
+
default: if (ua(S = Ma(C, t, n, l, u, i, s, y, b = [], x = [], d, a), a), v === 123) if (u === 0) ja(C, t, S, S, b, a, d, s, x);
|
|
4246
4250
|
else {
|
|
4247
4251
|
switch (f) {
|
|
4248
|
-
case 99: if (
|
|
4249
|
-
case 108: if (
|
|
4252
|
+
case 99: if (sa(C, 3) === 110) break;
|
|
4253
|
+
case 108: if (sa(C, 2) === 97) break;
|
|
4250
4254
|
default: u = 0;
|
|
4251
4255
|
case 100:
|
|
4252
4256
|
case 109:
|
|
4253
4257
|
case 115:
|
|
4254
4258
|
}
|
|
4255
|
-
u ?
|
|
4259
|
+
u ? ja(e, S, S, r && ua(Ma(e, S, S, 0, 0, i, s, y, i, b = [], d, x), x), i, x, d, s, r ? b : x) : ja(C, S, S, S, [""], x, 0, s, x);
|
|
4256
4260
|
}
|
|
4257
4261
|
}
|
|
4258
4262
|
l = u = p = 0, h = _ = 1, y = C = "", d = o;
|
|
4259
4263
|
break;
|
|
4260
|
-
case 58: d = 1 +
|
|
4264
|
+
case 58: d = 1 + X(C), p = m;
|
|
4261
4265
|
default:
|
|
4262
4266
|
if (h < 1) {
|
|
4263
4267
|
if (v == 123) --h;
|
|
4264
|
-
else if (v == 125 && h++ == 0 &&
|
|
4268
|
+
else if (v == 125 && h++ == 0 && _a() == 125) continue;
|
|
4265
4269
|
}
|
|
4266
|
-
switch (C +=
|
|
4270
|
+
switch (C += ra(v), v * h) {
|
|
4267
4271
|
case 38:
|
|
4268
4272
|
_ = u > 0 ? 1 : (C += "\f", -1);
|
|
4269
4273
|
break;
|
|
4270
4274
|
case 44:
|
|
4271
|
-
s[l++] = (
|
|
4275
|
+
s[l++] = (X(C) - 1) * _, _ = 1;
|
|
4272
4276
|
break;
|
|
4273
4277
|
case 64:
|
|
4274
|
-
|
|
4278
|
+
va() === 45 && (C += wa($())), f = va(), u = d = X(y = C += ka(ya())), v++;
|
|
4275
4279
|
break;
|
|
4276
|
-
case 45: m === 45 &&
|
|
4280
|
+
case 45: m === 45 && X(C) == 2 && (h = 0);
|
|
4277
4281
|
}
|
|
4278
4282
|
}
|
|
4279
4283
|
return a;
|
|
4280
4284
|
}
|
|
4281
|
-
function
|
|
4282
|
-
for (var f = i - 1, p = i === 0 ? a : [""], m =
|
|
4283
|
-
return
|
|
4285
|
+
function Ma(e, t, n, r, i, a, o, s, c, l, u, d) {
|
|
4286
|
+
for (var f = i - 1, p = i === 0 ? a : [""], m = la(p), h = 0, g = 0, _ = 0; h < r; ++h) for (var v = 0, y = ca(e, f + 1, f = na(g = o[h])), b = e; v < m; ++v) (b = ia(g > 0 ? p[v] + " " + y : aa(y, /&\f/g, p[v]))) && (c[_++] = b);
|
|
4287
|
+
return ha(e, t, n, i === 0 ? Xi : s, c, l, u, d);
|
|
4284
4288
|
}
|
|
4285
|
-
function
|
|
4286
|
-
return
|
|
4289
|
+
function Na(e, t, n, r) {
|
|
4290
|
+
return ha(e, t, n, Yi, ra(ga()), ca(e, 2, -2), 0, r);
|
|
4287
4291
|
}
|
|
4288
|
-
function
|
|
4289
|
-
return
|
|
4292
|
+
function Pa(e, t, n, r, i) {
|
|
4293
|
+
return ha(e, t, n, Zi, ca(e, 0, r), ca(e, r + 1, -1), r, i);
|
|
4290
4294
|
}
|
|
4291
4295
|
//#endregion
|
|
4292
4296
|
//#region node_modules/.pnpm/stylis@4.3.6/node_modules/stylis/src/Serializer.js
|
|
4293
|
-
function
|
|
4297
|
+
function Fa(e, t) {
|
|
4294
4298
|
for (var n = "", r = 0; r < e.length; r++) n += t(e[r], r, e, t) || "";
|
|
4295
4299
|
return n;
|
|
4296
4300
|
}
|
|
4297
|
-
function
|
|
4301
|
+
function Ia(e, t, n, r) {
|
|
4298
4302
|
switch (e.type) {
|
|
4299
|
-
case
|
|
4303
|
+
case ta: if (e.children.length) break;
|
|
4304
|
+
case Qi:
|
|
4300
4305
|
case $i:
|
|
4301
|
-
case
|
|
4302
|
-
case
|
|
4303
|
-
case
|
|
4304
|
-
case
|
|
4305
|
-
case Zi: if (!Y(e.value = e.props.join(","))) return "";
|
|
4306
|
+
case Zi: return e.return = e.return || e.value;
|
|
4307
|
+
case Yi: return "";
|
|
4308
|
+
case ea: return e.return = e.value + "{" + Fa(e.children, r) + "}";
|
|
4309
|
+
case Xi: if (!X(e.value = e.props.join(","))) return "";
|
|
4306
4310
|
}
|
|
4307
|
-
return
|
|
4311
|
+
return X(n = Fa(e.children, r)) ? e.return = e.value + "{" + n + "}" : "";
|
|
4308
4312
|
}
|
|
4309
4313
|
//#endregion
|
|
4310
4314
|
//#region node_modules/.pnpm/lodash-es@4.17.21/node_modules/lodash-es/_nativeKeys.js
|
|
4311
|
-
var
|
|
4312
|
-
function
|
|
4313
|
-
if (!me(e)) return
|
|
4315
|
+
var La = oe(Object.keys, Object), Ra = Object.prototype.hasOwnProperty;
|
|
4316
|
+
function za(e) {
|
|
4317
|
+
if (!me(e)) return La(e);
|
|
4314
4318
|
var t = [];
|
|
4315
|
-
for (var n in Object(e))
|
|
4319
|
+
for (var n in Object(e)) Ra.call(e, n) && n != "constructor" && t.push(n);
|
|
4316
4320
|
return t;
|
|
4317
4321
|
}
|
|
4318
4322
|
//#endregion
|
|
4319
4323
|
//#region node_modules/.pnpm/lodash-es@4.17.21/node_modules/lodash-es/_DataView.js
|
|
4320
|
-
var
|
|
4321
|
-
(
|
|
4322
|
-
var t = le(e), n = t ==
|
|
4324
|
+
var Ba = ge(se, "DataView"), Va = ge(se, "Promise"), Ha = ge(se, "Set"), Ua = ge(se, "WeakMap"), Wa = "[object Map]", Ga = "[object Object]", Ka = "[object Promise]", qa = "[object Set]", Ja = "[object WeakMap]", Ya = "[object DataView]", Xa = ae(Ba), Za = ae(ce), Qa = ae(Va), $a = ae(Ha), eo = ae(Ua), to = le;
|
|
4325
|
+
(Ba && to(new Ba(/* @__PURE__ */ new ArrayBuffer(1))) != Ya || ce && to(new ce()) != Wa || Va && to(Va.resolve()) != Ka || Ha && to(new Ha()) != qa || Ua && to(new Ua()) != Ja) && (to = function(e) {
|
|
4326
|
+
var t = le(e), n = t == Ga ? e.constructor : void 0, r = n ? ae(n) : "";
|
|
4323
4327
|
if (r) switch (r) {
|
|
4324
|
-
case
|
|
4325
|
-
case
|
|
4328
|
+
case Xa: return Ya;
|
|
4329
|
+
case Za: return Wa;
|
|
4330
|
+
case Qa: return Ka;
|
|
4326
4331
|
case $a: return qa;
|
|
4327
4332
|
case eo: return Ja;
|
|
4328
|
-
case to: return Ya;
|
|
4329
4333
|
}
|
|
4330
4334
|
return t;
|
|
4331
4335
|
});
|
|
4332
|
-
var
|
|
4333
|
-
function
|
|
4336
|
+
var no = to, ro = "[object Map]", io = "[object Set]", ao = Object.prototype.hasOwnProperty;
|
|
4337
|
+
function oo(e) {
|
|
4334
4338
|
if (e == null) return !0;
|
|
4335
4339
|
if (pe(e) && (ue(e) || typeof e == "string" || typeof e.splice == "function" || de(e) || fe(e) || he(e))) return !e.length;
|
|
4336
|
-
var t =
|
|
4337
|
-
if (t ==
|
|
4338
|
-
if (me(e)) return !
|
|
4339
|
-
for (var n in e) if (
|
|
4340
|
+
var t = no(e);
|
|
4341
|
+
if (t == ro || t == io) return !e.size;
|
|
4342
|
+
if (me(e)) return !za(e).length;
|
|
4343
|
+
for (var n in e) if (ao.call(e, n)) return !1;
|
|
4340
4344
|
return !0;
|
|
4341
4345
|
}
|
|
4342
4346
|
//#endregion
|
|
4343
4347
|
//#region node_modules/.pnpm/mermaid@11.12.0/node_modules/mermaid/dist/mermaid.core.mjs
|
|
4344
|
-
var
|
|
4345
|
-
id:
|
|
4348
|
+
var so = "c4", co = {
|
|
4349
|
+
id: so,
|
|
4346
4350
|
detector: /* @__PURE__ */ a((e) => /^\s*C4Context|C4Container|C4Component|C4Dynamic|C4Deployment/.test(e), "detector"),
|
|
4347
4351
|
loader: /* @__PURE__ */ a(async () => {
|
|
4348
4352
|
let { diagram: e } = await import("./c4Diagram-YG6GDRKO-CIThIYo6.js");
|
|
4349
4353
|
return {
|
|
4350
|
-
id:
|
|
4354
|
+
id: so,
|
|
4351
4355
|
diagram: e
|
|
4352
4356
|
};
|
|
4353
4357
|
}, "loader")
|
|
4354
|
-
},
|
|
4355
|
-
id:
|
|
4358
|
+
}, lo = "flowchart", uo = {
|
|
4359
|
+
id: lo,
|
|
4356
4360
|
detector: /* @__PURE__ */ a((e, t) => t?.flowchart?.defaultRenderer === "dagre-wrapper" || t?.flowchart?.defaultRenderer === "elk" ? !1 : /^\s*graph/.test(e), "detector"),
|
|
4357
4361
|
loader: /* @__PURE__ */ a(async () => {
|
|
4358
|
-
let { diagram: e } = await import("./flowDiagram-NV44I4VS-
|
|
4362
|
+
let { diagram: e } = await import("./flowDiagram-NV44I4VS-DW3pSjNx.js");
|
|
4359
4363
|
return {
|
|
4360
|
-
id:
|
|
4364
|
+
id: lo,
|
|
4361
4365
|
diagram: e
|
|
4362
4366
|
};
|
|
4363
4367
|
}, "loader")
|
|
4364
|
-
},
|
|
4365
|
-
id:
|
|
4368
|
+
}, fo = "flowchart-v2", po = {
|
|
4369
|
+
id: fo,
|
|
4366
4370
|
detector: /* @__PURE__ */ a((e, t) => t?.flowchart?.defaultRenderer === "dagre-d3" ? !1 : (t?.flowchart?.defaultRenderer === "elk" && (t.layout = "elk"), /^\s*graph/.test(e) && t?.flowchart?.defaultRenderer === "dagre-wrapper" ? !0 : /^\s*flowchart/.test(e)), "detector"),
|
|
4367
4371
|
loader: /* @__PURE__ */ a(async () => {
|
|
4368
|
-
let { diagram: e } = await import("./flowDiagram-NV44I4VS-
|
|
4372
|
+
let { diagram: e } = await import("./flowDiagram-NV44I4VS-DW3pSjNx.js");
|
|
4369
4373
|
return {
|
|
4370
|
-
id:
|
|
4374
|
+
id: fo,
|
|
4371
4375
|
diagram: e
|
|
4372
4376
|
};
|
|
4373
4377
|
}, "loader")
|
|
4374
|
-
},
|
|
4375
|
-
id:
|
|
4378
|
+
}, mo = "er", ho = {
|
|
4379
|
+
id: mo,
|
|
4376
4380
|
detector: /* @__PURE__ */ a((e) => /^\s*erDiagram/.test(e), "detector"),
|
|
4377
4381
|
loader: /* @__PURE__ */ a(async () => {
|
|
4378
|
-
let { diagram: e } = await import("./erDiagram-Q2GNP2WA-
|
|
4382
|
+
let { diagram: e } = await import("./erDiagram-Q2GNP2WA-DTb2sgR_.js");
|
|
4379
4383
|
return {
|
|
4380
|
-
id:
|
|
4384
|
+
id: mo,
|
|
4381
4385
|
diagram: e
|
|
4382
4386
|
};
|
|
4383
4387
|
}, "loader")
|
|
4384
|
-
},
|
|
4385
|
-
id:
|
|
4388
|
+
}, go = "gitGraph", _o = {
|
|
4389
|
+
id: go,
|
|
4386
4390
|
detector: /* @__PURE__ */ a((e) => /^\s*gitGraph/.test(e), "detector"),
|
|
4387
4391
|
loader: /* @__PURE__ */ a(async () => {
|
|
4388
|
-
let { diagram: e } = await import("./gitGraphDiagram-NY62KEGX-
|
|
4392
|
+
let { diagram: e } = await import("./gitGraphDiagram-NY62KEGX-DfMVgHMj.js");
|
|
4389
4393
|
return {
|
|
4390
|
-
id:
|
|
4394
|
+
id: go,
|
|
4391
4395
|
diagram: e
|
|
4392
4396
|
};
|
|
4393
4397
|
}, "loader")
|
|
4394
|
-
},
|
|
4395
|
-
id:
|
|
4398
|
+
}, vo = "gantt", yo = {
|
|
4399
|
+
id: vo,
|
|
4396
4400
|
detector: /* @__PURE__ */ a((e) => /^\s*gantt/.test(e), "detector"),
|
|
4397
4401
|
loader: /* @__PURE__ */ a(async () => {
|
|
4398
4402
|
let { diagram: e } = await import("./ganttDiagram-LVOFAZNH-DqT7pu4m.js");
|
|
4399
4403
|
return {
|
|
4400
|
-
id:
|
|
4404
|
+
id: vo,
|
|
4401
4405
|
diagram: e
|
|
4402
4406
|
};
|
|
4403
4407
|
}, "loader")
|
|
4404
|
-
},
|
|
4405
|
-
id:
|
|
4408
|
+
}, bo = "info", xo = {
|
|
4409
|
+
id: bo,
|
|
4406
4410
|
detector: /* @__PURE__ */ a((e) => /^\s*info/.test(e), "detector"),
|
|
4407
4411
|
loader: /* @__PURE__ */ a(async () => {
|
|
4408
|
-
let { diagram: e } = await import("./infoDiagram-F6ZHWCRC-
|
|
4412
|
+
let { diagram: e } = await import("./infoDiagram-F6ZHWCRC-DkHDmcca.js");
|
|
4409
4413
|
return {
|
|
4410
|
-
id:
|
|
4414
|
+
id: bo,
|
|
4411
4415
|
diagram: e
|
|
4412
4416
|
};
|
|
4413
4417
|
}, "loader")
|
|
4414
|
-
},
|
|
4415
|
-
id:
|
|
4418
|
+
}, So = "pie", Co = {
|
|
4419
|
+
id: So,
|
|
4416
4420
|
detector: /* @__PURE__ */ a((e) => /^\s*pie/.test(e), "detector"),
|
|
4417
4421
|
loader: /* @__PURE__ */ a(async () => {
|
|
4418
|
-
let { diagram: e } = await import("./pieDiagram-ADFJNKIX-
|
|
4422
|
+
let { diagram: e } = await import("./pieDiagram-ADFJNKIX-DjW2gwan.js");
|
|
4419
4423
|
return {
|
|
4420
|
-
id:
|
|
4424
|
+
id: So,
|
|
4421
4425
|
diagram: e
|
|
4422
4426
|
};
|
|
4423
4427
|
}, "loader")
|
|
4424
|
-
},
|
|
4425
|
-
id:
|
|
4428
|
+
}, wo = "quadrantChart", To = {
|
|
4429
|
+
id: wo,
|
|
4426
4430
|
detector: /* @__PURE__ */ a((e) => /^\s*quadrantChart/.test(e), "detector"),
|
|
4427
4431
|
loader: /* @__PURE__ */ a(async () => {
|
|
4428
4432
|
let { diagram: e } = await import("./quadrantDiagram-AYHSOK5B-DRutDK03.js");
|
|
4429
4433
|
return {
|
|
4430
|
-
id:
|
|
4434
|
+
id: wo,
|
|
4431
4435
|
diagram: e
|
|
4432
4436
|
};
|
|
4433
4437
|
}, "loader")
|
|
4434
|
-
},
|
|
4435
|
-
id:
|
|
4438
|
+
}, Eo = "xychart", Do = {
|
|
4439
|
+
id: Eo,
|
|
4436
4440
|
detector: /* @__PURE__ */ a((e) => /^\s*xychart(-beta)?/.test(e), "detector"),
|
|
4437
4441
|
loader: /* @__PURE__ */ a(async () => {
|
|
4438
|
-
let { diagram: e } = await import("./xychartDiagram-PRI3JC2R-
|
|
4442
|
+
let { diagram: e } = await import("./xychartDiagram-PRI3JC2R-C4S1jDTS.js");
|
|
4439
4443
|
return {
|
|
4440
|
-
id:
|
|
4444
|
+
id: Eo,
|
|
4441
4445
|
diagram: e
|
|
4442
4446
|
};
|
|
4443
4447
|
}, "loader")
|
|
4444
|
-
},
|
|
4445
|
-
id:
|
|
4448
|
+
}, Oo = "requirement", ko = {
|
|
4449
|
+
id: Oo,
|
|
4446
4450
|
detector: /* @__PURE__ */ a((e) => /^\s*requirement(Diagram)?/.test(e), "detector"),
|
|
4447
4451
|
loader: /* @__PURE__ */ a(async () => {
|
|
4448
|
-
let { diagram: e } = await import("./requirementDiagram-UZGBJVZJ-
|
|
4452
|
+
let { diagram: e } = await import("./requirementDiagram-UZGBJVZJ-CZw8XwAQ.js");
|
|
4449
4453
|
return {
|
|
4450
|
-
id:
|
|
4454
|
+
id: Oo,
|
|
4451
4455
|
diagram: e
|
|
4452
4456
|
};
|
|
4453
4457
|
}, "loader")
|
|
4454
|
-
},
|
|
4455
|
-
id:
|
|
4458
|
+
}, Ao = "sequence", jo = {
|
|
4459
|
+
id: Ao,
|
|
4456
4460
|
detector: /* @__PURE__ */ a((e) => /^\s*sequenceDiagram/.test(e), "detector"),
|
|
4457
4461
|
loader: /* @__PURE__ */ a(async () => {
|
|
4458
|
-
let { diagram: e } = await import("./sequenceDiagram-WL72ISMW-
|
|
4462
|
+
let { diagram: e } = await import("./sequenceDiagram-WL72ISMW-D_npYx8y.js");
|
|
4459
4463
|
return {
|
|
4460
|
-
id:
|
|
4464
|
+
id: Ao,
|
|
4461
4465
|
diagram: e
|
|
4462
4466
|
};
|
|
4463
4467
|
}, "loader")
|
|
4464
|
-
},
|
|
4465
|
-
id:
|
|
4468
|
+
}, Mo = "class", No = {
|
|
4469
|
+
id: Mo,
|
|
4466
4470
|
detector: /* @__PURE__ */ a((e, t) => t?.class?.defaultRenderer === "dagre-wrapper" ? !1 : /^\s*classDiagram/.test(e), "detector"),
|
|
4467
4471
|
loader: /* @__PURE__ */ a(async () => {
|
|
4468
|
-
let { diagram: e } = await import("./classDiagram-2ON5EDUG-
|
|
4472
|
+
let { diagram: e } = await import("./classDiagram-2ON5EDUG-D6DuGzSf.js");
|
|
4469
4473
|
return {
|
|
4470
|
-
id:
|
|
4474
|
+
id: Mo,
|
|
4471
4475
|
diagram: e
|
|
4472
4476
|
};
|
|
4473
4477
|
}, "loader")
|
|
4474
|
-
},
|
|
4475
|
-
id:
|
|
4478
|
+
}, Po = "classDiagram", Fo = {
|
|
4479
|
+
id: Po,
|
|
4476
4480
|
detector: /* @__PURE__ */ a((e, t) => /^\s*classDiagram/.test(e) && t?.class?.defaultRenderer === "dagre-wrapper" ? !0 : /^\s*classDiagram-v2/.test(e), "detector"),
|
|
4477
4481
|
loader: /* @__PURE__ */ a(async () => {
|
|
4478
|
-
let { diagram: e } = await import("./classDiagram-v2-WZHVMYZB-
|
|
4482
|
+
let { diagram: e } = await import("./classDiagram-v2-WZHVMYZB-Ah0fVcwK.js");
|
|
4479
4483
|
return {
|
|
4480
|
-
id:
|
|
4484
|
+
id: Po,
|
|
4481
4485
|
diagram: e
|
|
4482
4486
|
};
|
|
4483
4487
|
}, "loader")
|
|
4484
|
-
},
|
|
4485
|
-
id:
|
|
4488
|
+
}, Io = "state", Lo = {
|
|
4489
|
+
id: Io,
|
|
4486
4490
|
detector: /* @__PURE__ */ a((e, t) => t?.state?.defaultRenderer === "dagre-wrapper" ? !1 : /^\s*stateDiagram/.test(e), "detector"),
|
|
4487
4491
|
loader: /* @__PURE__ */ a(async () => {
|
|
4488
|
-
let { diagram: e } = await import("./stateDiagram-FKZM4ZOC-
|
|
4492
|
+
let { diagram: e } = await import("./stateDiagram-FKZM4ZOC-CybCdeuK.js");
|
|
4489
4493
|
return {
|
|
4490
|
-
id:
|
|
4494
|
+
id: Io,
|
|
4491
4495
|
diagram: e
|
|
4492
4496
|
};
|
|
4493
4497
|
}, "loader")
|
|
4494
|
-
},
|
|
4495
|
-
id:
|
|
4498
|
+
}, Ro = "stateDiagram", zo = {
|
|
4499
|
+
id: Ro,
|
|
4496
4500
|
detector: /* @__PURE__ */ a((e, t) => !!(/^\s*stateDiagram-v2/.test(e) || /^\s*stateDiagram/.test(e) && t?.state?.defaultRenderer === "dagre-wrapper"), "detector"),
|
|
4497
4501
|
loader: /* @__PURE__ */ a(async () => {
|
|
4498
|
-
let { diagram: e } = await import("./stateDiagram-v2-4FDKWEC3-
|
|
4502
|
+
let { diagram: e } = await import("./stateDiagram-v2-4FDKWEC3-BhgHpXjD.js");
|
|
4499
4503
|
return {
|
|
4500
|
-
id:
|
|
4504
|
+
id: Ro,
|
|
4501
4505
|
diagram: e
|
|
4502
4506
|
};
|
|
4503
4507
|
}, "loader")
|
|
4504
|
-
},
|
|
4505
|
-
id:
|
|
4508
|
+
}, Bo = "journey", Vo = {
|
|
4509
|
+
id: Bo,
|
|
4506
4510
|
detector: /* @__PURE__ */ a((e) => /^\s*journey/.test(e), "detector"),
|
|
4507
4511
|
loader: /* @__PURE__ */ a(async () => {
|
|
4508
4512
|
let { diagram: e } = await import("./journeyDiagram-XKPGCS4Q-DB7INfrf.js");
|
|
4509
4513
|
return {
|
|
4510
|
-
id:
|
|
4514
|
+
id: Bo,
|
|
4511
4515
|
diagram: e
|
|
4512
4516
|
};
|
|
4513
4517
|
}, "loader")
|
|
4514
|
-
},
|
|
4518
|
+
}, Ho = { draw: /* @__PURE__ */ a((e, t, n) => {
|
|
4515
4519
|
i.debug("rendering svg for syntax error\n");
|
|
4516
|
-
let r =
|
|
4520
|
+
let r = mt(t), a = r.append("g");
|
|
4517
4521
|
r.attr("viewBox", "0 0 2412 512"), _(r, 100, 512, !0), a.append("path").attr("class", "error-icon").attr("d", "m411.313,123.313c6.25-6.25 6.25-16.375 0-22.625s-16.375-6.25-22.625,0l-32,32-9.375,9.375-20.688-20.688c-12.484-12.5-32.766-12.5-45.25,0l-16,16c-1.261,1.261-2.304,2.648-3.31,4.051-21.739-8.561-45.324-13.426-70.065-13.426-105.867,0-192,86.133-192,192s86.133,192 192,192 192-86.133 192-192c0-24.741-4.864-48.327-13.426-70.065 1.402-1.007 2.79-2.049 4.051-3.31l16-16c12.5-12.492 12.5-32.758 0-45.25l-20.688-20.688 9.375-9.375 32.001-31.999zm-219.313,100.687c-52.938,0-96,43.063-96,96 0,8.836-7.164,16-16,16s-16-7.164-16-16c0-70.578 57.422-128 128-128 8.836,0 16,7.164 16,16s-7.164,16-16,16z"), a.append("path").attr("class", "error-icon").attr("d", "m459.02,148.98c-6.25-6.25-16.375-6.25-22.625,0s-6.25,16.375 0,22.625l16,16c3.125,3.125 7.219,4.688 11.313,4.688 4.094,0 8.188-1.563 11.313-4.688 6.25-6.25 6.25-16.375 0-22.625l-16.001-16z"), a.append("path").attr("class", "error-icon").attr("d", "m340.395,75.605c3.125,3.125 7.219,4.688 11.313,4.688 4.094,0 8.188-1.563 11.313-4.688 6.25-6.25 6.25-16.375 0-22.625l-16-16c-6.25-6.25-16.375-6.25-22.625,0s-6.25,16.375 0,22.625l15.999,16z"), a.append("path").attr("class", "error-icon").attr("d", "m400,64c8.844,0 16-7.164 16-16v-32c0-8.836-7.156-16-16-16-8.844,0-16,7.164-16,16v32c0,8.836 7.156,16 16,16z"), a.append("path").attr("class", "error-icon").attr("d", "m496,96.586h-32c-8.844,0-16,7.164-16,16 0,8.836 7.156,16 16,16h32c8.844,0 16-7.164 16-16 0-8.836-7.156-16-16-16z"), a.append("path").attr("class", "error-icon").attr("d", "m436.98,75.605c3.125,3.125 7.219,4.688 11.313,4.688 4.094,0 8.188-1.563 11.313-4.688l32-32c6.25-6.25 6.25-16.375 0-22.625s-16.375-6.25-22.625,0l-32,32c-6.251,6.25-6.251,16.375-0.001,22.625z"), a.append("text").attr("class", "error-text").attr("x", 1440).attr("y", 250).attr("font-size", "150px").style("text-anchor", "middle").text("Syntax error in text"), a.append("text").attr("class", "error-text").attr("x", 1250).attr("y", 400).attr("font-size", "100px").style("text-anchor", "middle").text(`mermaid version ${n}`);
|
|
4518
|
-
}, "draw") },
|
|
4522
|
+
}, "draw") }, Uo = Ho, Wo = {
|
|
4519
4523
|
db: {},
|
|
4520
|
-
renderer:
|
|
4524
|
+
renderer: Ho,
|
|
4521
4525
|
parser: { parse: /* @__PURE__ */ a(() => {}, "parse") }
|
|
4522
|
-
},
|
|
4523
|
-
id:
|
|
4526
|
+
}, Go = "flowchart-elk", Ko = {
|
|
4527
|
+
id: Go,
|
|
4524
4528
|
detector: /* @__PURE__ */ a((e, t = {}) => /^\s*flowchart-elk/.test(e) || /^\s*(flowchart|graph)/.test(e) && t?.flowchart?.defaultRenderer === "elk" ? (t.layout = "elk", !0) : !1, "detector"),
|
|
4525
4529
|
loader: /* @__PURE__ */ a(async () => {
|
|
4526
|
-
let { diagram: e } = await import("./flowDiagram-NV44I4VS-
|
|
4530
|
+
let { diagram: e } = await import("./flowDiagram-NV44I4VS-DW3pSjNx.js");
|
|
4527
4531
|
return {
|
|
4528
|
-
id:
|
|
4532
|
+
id: Go,
|
|
4529
4533
|
diagram: e
|
|
4530
4534
|
};
|
|
4531
4535
|
}, "loader")
|
|
4532
|
-
},
|
|
4533
|
-
id:
|
|
4536
|
+
}, qo = "timeline", Jo = {
|
|
4537
|
+
id: qo,
|
|
4534
4538
|
detector: /* @__PURE__ */ a((e) => /^\s*timeline/.test(e), "detector"),
|
|
4535
4539
|
loader: /* @__PURE__ */ a(async () => {
|
|
4536
4540
|
let { diagram: e } = await import("./timeline-definition-IT6M3QCI-C9VMls3W.js");
|
|
4537
4541
|
return {
|
|
4538
|
-
id:
|
|
4542
|
+
id: qo,
|
|
4539
4543
|
diagram: e
|
|
4540
4544
|
};
|
|
4541
4545
|
}, "loader")
|
|
4542
|
-
},
|
|
4543
|
-
id:
|
|
4546
|
+
}, Yo = "mindmap", Xo = {
|
|
4547
|
+
id: Yo,
|
|
4544
4548
|
detector: /* @__PURE__ */ a((e) => /^\s*mindmap/.test(e), "detector"),
|
|
4545
4549
|
loader: /* @__PURE__ */ a(async () => {
|
|
4546
|
-
let { diagram: e } = await import("./mindmap-definition-VGOIOE7T-
|
|
4550
|
+
let { diagram: e } = await import("./mindmap-definition-VGOIOE7T-BeJDmJ4f.js");
|
|
4547
4551
|
return {
|
|
4548
|
-
id:
|
|
4552
|
+
id: Yo,
|
|
4549
4553
|
diagram: e
|
|
4550
4554
|
};
|
|
4551
4555
|
}, "loader")
|
|
4552
|
-
},
|
|
4553
|
-
id:
|
|
4556
|
+
}, Zo = "kanban", Qo = {
|
|
4557
|
+
id: Zo,
|
|
4554
4558
|
detector: /* @__PURE__ */ a((e) => /^\s*kanban/.test(e), "detector"),
|
|
4555
4559
|
loader: /* @__PURE__ */ a(async () => {
|
|
4556
|
-
let { diagram: e } = await import("./kanban-definition-3W4ZIXB7-
|
|
4560
|
+
let { diagram: e } = await import("./kanban-definition-3W4ZIXB7-CRenxDOa.js");
|
|
4557
4561
|
return {
|
|
4558
|
-
id:
|
|
4562
|
+
id: Zo,
|
|
4559
4563
|
diagram: e
|
|
4560
4564
|
};
|
|
4561
4565
|
}, "loader")
|
|
4562
|
-
},
|
|
4563
|
-
id:
|
|
4566
|
+
}, $o = "sankey", es = {
|
|
4567
|
+
id: $o,
|
|
4564
4568
|
detector: /* @__PURE__ */ a((e) => /^\s*sankey(-beta)?/.test(e), "detector"),
|
|
4565
4569
|
loader: /* @__PURE__ */ a(async () => {
|
|
4566
4570
|
let { diagram: e } = await import("./sankeyDiagram-TZEHDZUN-DD6bkI4Z.js");
|
|
4567
4571
|
return {
|
|
4568
|
-
id:
|
|
4572
|
+
id: $o,
|
|
4569
4573
|
diagram: e
|
|
4570
4574
|
};
|
|
4571
4575
|
}, "loader")
|
|
4572
|
-
},
|
|
4573
|
-
id:
|
|
4576
|
+
}, ts = "packet", ns = {
|
|
4577
|
+
id: ts,
|
|
4574
4578
|
detector: /* @__PURE__ */ a((e) => /^\s*packet(-beta)?/.test(e), "detector"),
|
|
4575
4579
|
loader: /* @__PURE__ */ a(async () => {
|
|
4576
|
-
let { diagram: e } = await import("./diagram-S2PKOQOG-
|
|
4580
|
+
let { diagram: e } = await import("./diagram-S2PKOQOG-CT-b436r.js");
|
|
4577
4581
|
return {
|
|
4578
|
-
id:
|
|
4582
|
+
id: ts,
|
|
4579
4583
|
diagram: e
|
|
4580
4584
|
};
|
|
4581
4585
|
}, "loader")
|
|
4582
|
-
},
|
|
4583
|
-
id:
|
|
4586
|
+
}, rs = "radar", is = {
|
|
4587
|
+
id: rs,
|
|
4584
4588
|
detector: /* @__PURE__ */ a((e) => /^\s*radar-beta/.test(e), "detector"),
|
|
4585
4589
|
loader: /* @__PURE__ */ a(async () => {
|
|
4586
|
-
let { diagram: e } = await import("./diagram-QEK2KX5R-
|
|
4590
|
+
let { diagram: e } = await import("./diagram-QEK2KX5R-meoSBUIM.js");
|
|
4587
4591
|
return {
|
|
4588
|
-
id:
|
|
4592
|
+
id: rs,
|
|
4589
4593
|
diagram: e
|
|
4590
4594
|
};
|
|
4591
4595
|
}, "loader")
|
|
4592
|
-
},
|
|
4593
|
-
id:
|
|
4596
|
+
}, as = "block", os = {
|
|
4597
|
+
id: as,
|
|
4594
4598
|
detector: /* @__PURE__ */ a((e) => /^\s*block(-beta)?/.test(e), "detector"),
|
|
4595
4599
|
loader: /* @__PURE__ */ a(async () => {
|
|
4596
|
-
let { diagram: e } = await import("./blockDiagram-VD42YOAC-
|
|
4600
|
+
let { diagram: e } = await import("./blockDiagram-VD42YOAC-Btz-ItbV.js");
|
|
4597
4601
|
return {
|
|
4598
|
-
id:
|
|
4602
|
+
id: as,
|
|
4599
4603
|
diagram: e
|
|
4600
4604
|
};
|
|
4601
4605
|
}, "loader")
|
|
4602
|
-
},
|
|
4603
|
-
id:
|
|
4606
|
+
}, ss = "architecture", cs = {
|
|
4607
|
+
id: ss,
|
|
4604
4608
|
detector: /* @__PURE__ */ a((e) => /^\s*architecture/.test(e), "detector"),
|
|
4605
4609
|
loader: /* @__PURE__ */ a(async () => {
|
|
4606
|
-
let { diagram: e } = await import("./architectureDiagram-VXUJARFQ-
|
|
4610
|
+
let { diagram: e } = await import("./architectureDiagram-VXUJARFQ-DcNHf7VL.js");
|
|
4607
4611
|
return {
|
|
4608
|
-
id:
|
|
4612
|
+
id: ss,
|
|
4609
4613
|
diagram: e
|
|
4610
4614
|
};
|
|
4611
4615
|
}, "loader")
|
|
4612
|
-
},
|
|
4613
|
-
id:
|
|
4616
|
+
}, ls = "treemap", us = {
|
|
4617
|
+
id: ls,
|
|
4614
4618
|
detector: /* @__PURE__ */ a((e) => /^\s*treemap/.test(e), "detector"),
|
|
4615
4619
|
loader: /* @__PURE__ */ a(async () => {
|
|
4616
|
-
let { diagram: e } = await import("./diagram-PSM6KHXK-
|
|
4620
|
+
let { diagram: e } = await import("./diagram-PSM6KHXK-DpWcqYnH.js");
|
|
4617
4621
|
return {
|
|
4618
|
-
id:
|
|
4622
|
+
id: ls,
|
|
4619
4623
|
diagram: e
|
|
4620
4624
|
};
|
|
4621
4625
|
}, "loader")
|
|
4622
|
-
},
|
|
4623
|
-
|
|
4626
|
+
}, ds = !1, fs = /* @__PURE__ */ a(() => {
|
|
4627
|
+
ds || (ds = !0, x("error", Wo, (e) => e.toLowerCase().trim() === "error"), x("---", {
|
|
4624
4628
|
db: { clear: /* @__PURE__ */ a(() => {}, "clear") },
|
|
4625
4629
|
styles: {},
|
|
4626
4630
|
renderer: { draw: /* @__PURE__ */ a(() => {}, "draw") },
|
|
@@ -4628,8 +4632,8 @@ var co = "c4", lo = {
|
|
|
4628
4632
|
throw Error("Diagrams beginning with --- are not valid. If you were trying to use a YAML front-matter, please ensure that you've correctly opened and closed the YAML front-matter with un-indented `---` blocks");
|
|
4629
4633
|
}, "parse") },
|
|
4630
4634
|
init: /* @__PURE__ */ a(() => null, "init")
|
|
4631
|
-
}, (e) => e.toLowerCase().trimStart().startsWith("---")), c(
|
|
4632
|
-
}, "addDiagrams"),
|
|
4635
|
+
}, (e) => e.toLowerCase().trimStart().startsWith("---")), c(Ko, Xo, cs), c(co, Qo, Fo, No, ho, yo, xo, Co, ko, jo, po, uo, Jo, _o, zo, Lo, Vo, To, es, ns, Do, os, is, us));
|
|
4636
|
+
}, "addDiagrams"), ps = /* @__PURE__ */ a(async () => {
|
|
4633
4637
|
i.debug("Loading registered diagrams");
|
|
4634
4638
|
let e = (await Promise.allSettled(Object.entries(w).map(async ([e, { detector: t, loader: n }]) => {
|
|
4635
4639
|
if (n) try {
|
|
@@ -4648,12 +4652,12 @@ var co = "c4", lo = {
|
|
|
4648
4652
|
for (let t of e) i.error(t);
|
|
4649
4653
|
throw Error(`Failed to load ${e.length} external diagrams`);
|
|
4650
4654
|
}
|
|
4651
|
-
}, "loadRegisteredDiagrams"),
|
|
4652
|
-
function
|
|
4653
|
-
e.attr("role",
|
|
4655
|
+
}, "loadRegisteredDiagrams"), ms = "graphics-document document";
|
|
4656
|
+
function hs(e, t) {
|
|
4657
|
+
e.attr("role", ms), t !== "" && e.attr("aria-roledescription", t);
|
|
4654
4658
|
}
|
|
4655
|
-
a(
|
|
4656
|
-
function
|
|
4659
|
+
a(hs, "setA11yDiagramInfo");
|
|
4660
|
+
function gs(e, t, n, r) {
|
|
4657
4661
|
if (e.insert !== void 0) {
|
|
4658
4662
|
if (n) {
|
|
4659
4663
|
let t = `chart-desc-${r}`;
|
|
@@ -4665,8 +4669,8 @@ function _s(e, t, n, r) {
|
|
|
4665
4669
|
}
|
|
4666
4670
|
}
|
|
4667
4671
|
}
|
|
4668
|
-
a(
|
|
4669
|
-
var
|
|
4672
|
+
a(gs, "addSVGa11yTitleDescription");
|
|
4673
|
+
var _s = class e {
|
|
4670
4674
|
constructor(e, t, n, r, i) {
|
|
4671
4675
|
this.type = e, this.text = t, this.db = n, this.parser = r, this.renderer = i;
|
|
4672
4676
|
}
|
|
@@ -4696,18 +4700,18 @@ var vs = class e {
|
|
|
4696
4700
|
getType() {
|
|
4697
4701
|
return this.type;
|
|
4698
4702
|
}
|
|
4699
|
-
},
|
|
4700
|
-
|
|
4703
|
+
}, vs = [], ys = /* @__PURE__ */ a(() => {
|
|
4704
|
+
vs.forEach((e) => {
|
|
4701
4705
|
e();
|
|
4702
|
-
}),
|
|
4703
|
-
}, "attachFunctions"),
|
|
4704
|
-
function
|
|
4706
|
+
}), vs = [];
|
|
4707
|
+
}, "attachFunctions"), bs = /* @__PURE__ */ a((e) => e.replace(/^\s*%%(?!{)[^\n]+\n?/gm, "").trimStart(), "cleanupComments");
|
|
4708
|
+
function xs(e) {
|
|
4705
4709
|
let t = e.match(y);
|
|
4706
4710
|
if (!t) return {
|
|
4707
4711
|
text: e,
|
|
4708
4712
|
metadata: {}
|
|
4709
4713
|
};
|
|
4710
|
-
let n =
|
|
4714
|
+
let n = Ui(t[1], { schema: Hi }) ?? {};
|
|
4711
4715
|
n = typeof n == "object" && !Array.isArray(n) ? n : {};
|
|
4712
4716
|
let r = {};
|
|
4713
4717
|
return n.displayMode && (r.displayMode = n.displayMode.toString()), n.title && (r.title = n.title.toString()), n.config && (r.config = n.config), {
|
|
@@ -4715,47 +4719,47 @@ function Ss(e) {
|
|
|
4715
4719
|
metadata: r
|
|
4716
4720
|
};
|
|
4717
4721
|
}
|
|
4718
|
-
a(
|
|
4719
|
-
var
|
|
4720
|
-
let { text: t, metadata: n } =
|
|
4722
|
+
a(xs, "extractFrontMatter");
|
|
4723
|
+
var Ss = /* @__PURE__ */ a((e) => e.replace(/\r\n?/g, "\n").replace(/<(\w+)([^>]*)>/g, (e, t, n) => "<" + t + n.replace(/="([^"]*)"/g, "='$1'") + ">"), "cleanupText"), Cs = /* @__PURE__ */ a((e) => {
|
|
4724
|
+
let { text: t, metadata: n } = xs(e), { displayMode: r, title: i, config: a = {} } = n;
|
|
4721
4725
|
return r && (a.gantt ||= {}, a.gantt.displayMode = r), {
|
|
4722
4726
|
title: i,
|
|
4723
4727
|
config: a,
|
|
4724
4728
|
text: t
|
|
4725
4729
|
};
|
|
4726
|
-
}, "processFrontmatter"),
|
|
4730
|
+
}, "processFrontmatter"), ws = /* @__PURE__ */ a((e) => {
|
|
4727
4731
|
let t = N.detectInit(e) ?? {}, n = N.detectDirective(e, "wrap");
|
|
4728
4732
|
return Array.isArray(n) ? t.wrap = n.some(({ type: e }) => e === "wrap") : n?.type === "wrap" && (t.wrap = !0), {
|
|
4729
4733
|
text: ne(e),
|
|
4730
4734
|
directive: t
|
|
4731
4735
|
};
|
|
4732
4736
|
}, "processDirectives");
|
|
4733
|
-
function
|
|
4734
|
-
let t =
|
|
4735
|
-
return e =
|
|
4737
|
+
function Ts(e) {
|
|
4738
|
+
let t = Cs(Ss(e)), n = ws(t.text), r = re(t.config, n.directive);
|
|
4739
|
+
return e = bs(n.text), {
|
|
4736
4740
|
code: e,
|
|
4737
4741
|
title: t.title,
|
|
4738
4742
|
config: r
|
|
4739
4743
|
};
|
|
4740
4744
|
}
|
|
4741
|
-
a(
|
|
4742
|
-
function
|
|
4745
|
+
a(Ts, "preprocessDiagram");
|
|
4746
|
+
function Es(e) {
|
|
4743
4747
|
let t = new TextEncoder().encode(e), n = Array.from(t, (e) => String.fromCodePoint(e)).join("");
|
|
4744
4748
|
return btoa(n);
|
|
4745
4749
|
}
|
|
4746
|
-
a(
|
|
4747
|
-
var
|
|
4748
|
-
function
|
|
4749
|
-
let t =
|
|
4750
|
+
a(Es, "toBase64");
|
|
4751
|
+
var Ds = 5e4, Os = "graph TB;a[Maximum text size in diagram exceeded];style a fill:#faa", ks = "sandbox", As = "loose", js = "http://www.w3.org/2000/svg", Ms = "http://www.w3.org/1999/xlink", Ns = "http://www.w3.org/1999/xhtml", Ps = "100%", Fs = "100%", Is = "border:0;margin:0;", Ls = "margin:0", Rs = "allow-top-navigation-by-user-activation allow-popups", zs = "The \"iframe\" tag is not supported by your browser.", Bs = ["foreignobject"], Vs = ["dominant-baseline"];
|
|
4752
|
+
function Hs(e) {
|
|
4753
|
+
let t = Ts(e);
|
|
4750
4754
|
return l(), C(t.config ?? {}), t;
|
|
4751
4755
|
}
|
|
4752
|
-
a(
|
|
4753
|
-
async function
|
|
4754
|
-
|
|
4756
|
+
a(Hs, "processAndSetConfigs");
|
|
4757
|
+
async function Us(e, t) {
|
|
4758
|
+
fs();
|
|
4755
4759
|
try {
|
|
4756
|
-
let { code: t, config: n } =
|
|
4760
|
+
let { code: t, config: n } = Hs(e);
|
|
4757
4761
|
return {
|
|
4758
|
-
diagramType: (await
|
|
4762
|
+
diagramType: (await ec(t)).type,
|
|
4759
4763
|
config: n
|
|
4760
4764
|
};
|
|
4761
4765
|
} catch (e) {
|
|
@@ -4763,9 +4767,9 @@ async function Ws(e, t) {
|
|
|
4763
4767
|
throw e;
|
|
4764
4768
|
}
|
|
4765
4769
|
}
|
|
4766
|
-
a(
|
|
4767
|
-
var
|
|
4768
|
-
.${e} ${t} { ${n.join(" !important; ")} !important; }`, "cssImportantStyles"),
|
|
4770
|
+
a(Us, "parse");
|
|
4771
|
+
var Ws = /* @__PURE__ */ a((e, t, n = []) => `
|
|
4772
|
+
.${e} ${t} { ${n.join(" !important; ")} !important; }`, "cssImportantStyles"), Gs = /* @__PURE__ */ a((e, t = /* @__PURE__ */ new Map()) => {
|
|
4769
4773
|
let n = "";
|
|
4770
4774
|
if (e.themeCSS !== void 0 && (n += `
|
|
4771
4775
|
${e.themeCSS}`), e.fontFamily !== void 0 && (n += `
|
|
@@ -4779,90 +4783,90 @@ ${e.themeCSS}`), e.fontFamily !== void 0 && (n += `
|
|
|
4779
4783
|
"path"
|
|
4780
4784
|
];
|
|
4781
4785
|
t.forEach((e) => {
|
|
4782
|
-
|
|
4783
|
-
n +=
|
|
4784
|
-
}),
|
|
4786
|
+
oo(e.styles) || r.forEach((t) => {
|
|
4787
|
+
n += Ws(e.id, t, e.styles);
|
|
4788
|
+
}), oo(e.textStyles) || (n += Ws(e.id, "tspan", (e?.textStyles || []).map((e) => e.replace("color", "fill"))));
|
|
4785
4789
|
});
|
|
4786
4790
|
}
|
|
4787
4791
|
return n;
|
|
4788
|
-
}, "createCssStyles"),
|
|
4792
|
+
}, "createCssStyles"), Ks = /* @__PURE__ */ a((e, t, n, r) => Fa(Aa(`${r}{${T(t, Gs(e, n), e.themeVariables)}}`), Ia), "createUserStyles"), qs = /* @__PURE__ */ a((e = "", t, n) => {
|
|
4789
4793
|
let r = e;
|
|
4790
4794
|
return !n && !t && (r = r.replace(/marker-end="url\([\d+./:=?A-Za-z-]*?#/g, "marker-end=\"url(#")), r = te(r), r = r.replace(/<br>/g, "<br/>"), r;
|
|
4791
|
-
}, "cleanUpSvgCode"),
|
|
4792
|
-
${
|
|
4793
|
-
</iframe>`, "putIntoIFrame"),
|
|
4795
|
+
}, "cleanUpSvgCode"), Js = /* @__PURE__ */ a((e = "", t) => `<iframe style="width:${Ps};height:${t?.viewBox?.baseVal?.height ? t.viewBox.baseVal.height + "px" : Fs};${Is}" src="data:text/html;charset=UTF-8;base64,${Es(`<body style="${Ls}">${e}</body>`)}" sandbox="${Rs}">
|
|
4796
|
+
${zs}
|
|
4797
|
+
</iframe>`, "putIntoIFrame"), Ys = /* @__PURE__ */ a((e, t, n, r, i) => {
|
|
4794
4798
|
let a = e.append("div");
|
|
4795
4799
|
a.attr("id", n), r && a.attr("style", r);
|
|
4796
|
-
let o = a.append("svg").attr("id", t).attr("width", "100%").attr("xmlns",
|
|
4800
|
+
let o = a.append("svg").attr("id", t).attr("width", "100%").attr("xmlns", js);
|
|
4797
4801
|
return i && o.attr("xmlns:xlink", i), o.append("g"), e;
|
|
4798
4802
|
}, "appendDivSvgG");
|
|
4799
|
-
function
|
|
4803
|
+
function Xs(e, t) {
|
|
4800
4804
|
return e.append("iframe").attr("id", t).attr("style", "width: 100%; height: 100%;").attr("sandbox", "");
|
|
4801
4805
|
}
|
|
4802
|
-
a(
|
|
4803
|
-
var
|
|
4806
|
+
a(Xs, "sandboxedIframe");
|
|
4807
|
+
var Zs = /* @__PURE__ */ a((e, t, n, r) => {
|
|
4804
4808
|
e.getElementById(t)?.remove(), e.getElementById(n)?.remove(), e.getElementById(r)?.remove();
|
|
4805
|
-
}, "removeExistingElements"),
|
|
4806
|
-
|
|
4807
|
-
let r =
|
|
4809
|
+
}, "removeExistingElements"), Qs = /* @__PURE__ */ a(async function(e, t, n) {
|
|
4810
|
+
fs();
|
|
4811
|
+
let r = Hs(t);
|
|
4808
4812
|
t = r.code;
|
|
4809
4813
|
let s = j();
|
|
4810
|
-
i.debug(s), t.length > (s?.maxTextSize ??
|
|
4814
|
+
i.debug(s), t.length > (s?.maxTextSize ?? Ds) && (t = Os);
|
|
4811
4815
|
let c = "#" + e, l = "i" + e, u = "#" + l, d = "d" + e, f = "#" + d, p = /* @__PURE__ */ a(() => {
|
|
4812
4816
|
let e = o(g ? u : f).node();
|
|
4813
4817
|
e && "remove" in e && e.remove();
|
|
4814
|
-
}, "removeTempElements"), h = o("body"), g = s.securityLevel ===
|
|
4815
|
-
n === void 0 ? (
|
|
4818
|
+
}, "removeTempElements"), h = o("body"), g = s.securityLevel === ks, _ = s.securityLevel === As, v = s.fontFamily;
|
|
4819
|
+
n === void 0 ? (Zs(document, e, d, l), g ? (h = o(Xs(o("body"), l).nodes()[0].contentDocument.body), h.node().style.margin = 0) : h = o("body"), Ys(h, e, d)) : (n && (n.innerHTML = ""), g ? (h = o(Xs(o(n), l).nodes()[0].contentDocument.body), h.node().style.margin = 0) : h = o(n), Ys(h, e, d, `font-family: ${v}`, Ms));
|
|
4816
4820
|
let y, x;
|
|
4817
4821
|
try {
|
|
4818
|
-
y = await
|
|
4822
|
+
y = await _s.fromText(t, { title: r.title });
|
|
4819
4823
|
} catch (e) {
|
|
4820
4824
|
if (s.suppressErrorRendering) throw p(), e;
|
|
4821
|
-
y = await
|
|
4825
|
+
y = await _s.fromText("error"), x = e;
|
|
4822
4826
|
}
|
|
4823
|
-
let S = h.select(f).node(), C = y.type, w = S.firstChild, T = w.firstChild, E = y.renderer.getClasses?.(t, y), D =
|
|
4827
|
+
let S = h.select(f).node(), C = y.type, w = S.firstChild, T = w.firstChild, E = y.renderer.getClasses?.(t, y), D = Ks(s, C, E, c), O = document.createElement("style");
|
|
4824
4828
|
O.innerHTML = D, w.insertBefore(O, T);
|
|
4825
4829
|
try {
|
|
4826
|
-
await y.renderer.draw(t, e,
|
|
4830
|
+
await y.renderer.draw(t, e, pt.version, y);
|
|
4827
4831
|
} catch (n) {
|
|
4828
|
-
throw s.suppressErrorRendering ? p() :
|
|
4832
|
+
throw s.suppressErrorRendering ? p() : Uo.draw(t, e, pt.version), n;
|
|
4829
4833
|
}
|
|
4830
4834
|
let k = h.select(`${f} svg`), A = y.db.getAccTitle?.(), ee = y.db.getAccDescription?.();
|
|
4831
|
-
|
|
4835
|
+
tc(C, k, A, ee), h.select(`[id="${e}"]`).selectAll("foreignobject > *").attr("xmlns", Ns);
|
|
4832
4836
|
let M = h.select(f).node().innerHTML;
|
|
4833
|
-
if (i.debug("config.arrowMarkerAbsolute", s.arrowMarkerAbsolute), M =
|
|
4837
|
+
if (i.debug("config.arrowMarkerAbsolute", s.arrowMarkerAbsolute), M = qs(M, g, b(s.arrowMarkerAbsolute)), g) {
|
|
4834
4838
|
let e = h.select(f + " svg").node();
|
|
4835
|
-
M =
|
|
4839
|
+
M = Js(M, e);
|
|
4836
4840
|
} else _ || (M = m.sanitize(M, {
|
|
4837
|
-
ADD_TAGS:
|
|
4838
|
-
ADD_ATTR:
|
|
4841
|
+
ADD_TAGS: Bs,
|
|
4842
|
+
ADD_ATTR: Vs,
|
|
4839
4843
|
HTML_INTEGRATION_POINTS: { foreignobject: !0 }
|
|
4840
4844
|
}));
|
|
4841
|
-
if (
|
|
4845
|
+
if (ys(), x) throw x;
|
|
4842
4846
|
return p(), {
|
|
4843
4847
|
diagramType: C,
|
|
4844
4848
|
svg: M,
|
|
4845
4849
|
bindFunctions: y.db.bindFunctions
|
|
4846
4850
|
};
|
|
4847
4851
|
}, "render");
|
|
4848
|
-
function
|
|
4852
|
+
function $s(e = {}) {
|
|
4849
4853
|
let t = E({}, e);
|
|
4850
|
-
t?.fontFamily && !t.themeVariables?.fontFamily && (t.themeVariables ||= {}, t.themeVariables.fontFamily = t.fontFamily), u(t), t?.theme && t.theme in s ? t.themeVariables = s[t.theme].getThemeVariables(t.themeVariables) : t && (t.themeVariables = s.default.getThemeVariables(t.themeVariables)), r((typeof t == "object" ? p(t) : k()).logLevel),
|
|
4854
|
+
t?.fontFamily && !t.themeVariables?.fontFamily && (t.themeVariables ||= {}, t.themeVariables.fontFamily = t.fontFamily), u(t), t?.theme && t.theme in s ? t.themeVariables = s[t.theme].getThemeVariables(t.themeVariables) : t && (t.themeVariables = s.default.getThemeVariables(t.themeVariables)), r((typeof t == "object" ? p(t) : k()).logLevel), fs();
|
|
4851
4855
|
}
|
|
4852
|
-
a(
|
|
4853
|
-
var
|
|
4854
|
-
let { code: n } =
|
|
4855
|
-
return
|
|
4856
|
+
a($s, "initialize");
|
|
4857
|
+
var ec = /* @__PURE__ */ a((e, t = {}) => {
|
|
4858
|
+
let { code: n } = Ts(e);
|
|
4859
|
+
return _s.fromText(n, t);
|
|
4856
4860
|
}, "getDiagramFromText");
|
|
4857
|
-
function
|
|
4858
|
-
|
|
4859
|
-
}
|
|
4860
|
-
a(
|
|
4861
|
-
var
|
|
4862
|
-
render:
|
|
4863
|
-
parse:
|
|
4864
|
-
getDiagramFromText:
|
|
4865
|
-
initialize:
|
|
4861
|
+
function tc(e, t, n, r) {
|
|
4862
|
+
hs(t, e), gs(t, n, r, t.attr("id"));
|
|
4863
|
+
}
|
|
4864
|
+
a(tc, "addA11yInfo");
|
|
4865
|
+
var nc = Object.freeze({
|
|
4866
|
+
render: Qs,
|
|
4867
|
+
parse: Us,
|
|
4868
|
+
getDiagramFromText: ec,
|
|
4869
|
+
initialize: $s,
|
|
4866
4870
|
getConfig: j,
|
|
4867
4871
|
setConfig: f,
|
|
4868
4872
|
getSiteConfig: k,
|
|
@@ -4876,7 +4880,7 @@ var rc = Object.freeze({
|
|
|
4876
4880
|
defaultConfig: S
|
|
4877
4881
|
});
|
|
4878
4882
|
r(j().logLevel), l(j());
|
|
4879
|
-
var
|
|
4883
|
+
var rc = /* @__PURE__ */ a((e, t, n) => {
|
|
4880
4884
|
i.warn(e), M(e) ? (n && n(e.str, e.hash), t.push({
|
|
4881
4885
|
...e,
|
|
4882
4886
|
message: e.str,
|
|
@@ -4887,20 +4891,20 @@ var ic = /* @__PURE__ */ a((e, t, n) => {
|
|
|
4887
4891
|
hash: e.name,
|
|
4888
4892
|
error: e
|
|
4889
4893
|
}));
|
|
4890
|
-
}, "handleError"),
|
|
4894
|
+
}, "handleError"), ic = /* @__PURE__ */ a(async function(e = { querySelector: ".mermaid" }) {
|
|
4891
4895
|
try {
|
|
4892
|
-
await
|
|
4896
|
+
await ac(e);
|
|
4893
4897
|
} catch (t) {
|
|
4894
|
-
if (M(t) && i.error(t.str),
|
|
4898
|
+
if (M(t) && i.error(t.str), gc.parseError && gc.parseError(t), !e.suppressErrors) throw i.error("Use the suppressErrors option to suppress these errors"), t;
|
|
4895
4899
|
}
|
|
4896
|
-
}, "run"),
|
|
4897
|
-
let r =
|
|
4900
|
+
}, "run"), ac = /* @__PURE__ */ a(async function({ postRenderCallback: e, querySelector: t, nodes: n } = { querySelector: ".mermaid" }) {
|
|
4901
|
+
let r = nc.getConfig();
|
|
4898
4902
|
i.debug(`${e ? "" : "No "}Callback function found`);
|
|
4899
4903
|
let a;
|
|
4900
4904
|
if (n) a = n;
|
|
4901
4905
|
else if (t) a = document.querySelectorAll(t);
|
|
4902
4906
|
else throw Error("Nodes and querySelector are both undefined");
|
|
4903
|
-
i.debug(`Found ${a.length} diagrams`), r?.startOnLoad !== void 0 && (i.debug("Start On Load: " + r?.startOnLoad),
|
|
4907
|
+
i.debug(`Found ${a.length} diagrams`), r?.startOnLoad !== void 0 && (i.debug("Start On Load: " + r?.startOnLoad), nc.updateSiteConfig({ startOnLoad: r?.startOnLoad }));
|
|
4904
4908
|
let o = new N.InitIDGenerator(r.deterministicIds, r.deterministicIDSeed), s, c = [];
|
|
4905
4909
|
for (let t of Array.from(a)) {
|
|
4906
4910
|
if (i.info("Rendering diagram: " + t.id), t.getAttribute("data-processed")) continue;
|
|
@@ -4910,80 +4914,80 @@ var ic = /* @__PURE__ */ a((e, t, n) => {
|
|
|
4910
4914
|
let r = N.detectInit(s);
|
|
4911
4915
|
r && i.debug("Detected early reinit: ", r);
|
|
4912
4916
|
try {
|
|
4913
|
-
let { svg: r, bindFunctions: i } = await
|
|
4917
|
+
let { svg: r, bindFunctions: i } = await hc(n, s, t);
|
|
4914
4918
|
t.innerHTML = r, e && await e(n), i && i(t);
|
|
4915
4919
|
} catch (e) {
|
|
4916
|
-
|
|
4920
|
+
rc(e, c, gc.parseError);
|
|
4917
4921
|
}
|
|
4918
4922
|
}
|
|
4919
4923
|
if (c.length > 0) throw c[0];
|
|
4920
|
-
}, "runThrowsErrors"),
|
|
4921
|
-
|
|
4922
|
-
}, "initialize"),
|
|
4923
|
-
i.warn("mermaid.init is deprecated. Please use run instead."), e &&
|
|
4924
|
+
}, "runThrowsErrors"), oc = /* @__PURE__ */ a(function(e) {
|
|
4925
|
+
nc.initialize(e);
|
|
4926
|
+
}, "initialize"), sc = /* @__PURE__ */ a(async function(e, t, n) {
|
|
4927
|
+
i.warn("mermaid.init is deprecated. Please use run instead."), e && oc(e);
|
|
4924
4928
|
let r = {
|
|
4925
4929
|
postRenderCallback: n,
|
|
4926
4930
|
querySelector: ".mermaid"
|
|
4927
4931
|
};
|
|
4928
|
-
typeof t == "string" ? r.querySelector = t : t && (t instanceof HTMLElement ? r.nodes = [t] : r.nodes = t), await
|
|
4929
|
-
}, "init"),
|
|
4930
|
-
|
|
4931
|
-
}, "registerExternalDiagrams"),
|
|
4932
|
-
if (
|
|
4933
|
-
let { startOnLoad: e } =
|
|
4934
|
-
e &&
|
|
4932
|
+
typeof t == "string" ? r.querySelector = t : t && (t instanceof HTMLElement ? r.nodes = [t] : r.nodes = t), await ic(r);
|
|
4933
|
+
}, "init"), cc = /* @__PURE__ */ a(async (e, { lazyLoad: t = !0 } = {}) => {
|
|
4934
|
+
fs(), c(...e), t === !1 && await ps();
|
|
4935
|
+
}, "registerExternalDiagrams"), lc = /* @__PURE__ */ a(function() {
|
|
4936
|
+
if (gc.startOnLoad) {
|
|
4937
|
+
let { startOnLoad: e } = nc.getConfig();
|
|
4938
|
+
e && gc.run().catch((e) => i.error("Mermaid failed to initialize", e));
|
|
4935
4939
|
}
|
|
4936
4940
|
}, "contentLoaded");
|
|
4937
|
-
typeof document < "u" && window.addEventListener("load",
|
|
4938
|
-
var
|
|
4939
|
-
|
|
4940
|
-
}, "setParseErrorHandler"),
|
|
4941
|
-
if (!
|
|
4942
|
-
for (
|
|
4943
|
-
let e =
|
|
4941
|
+
typeof document < "u" && window.addEventListener("load", lc, !1);
|
|
4942
|
+
var uc = /* @__PURE__ */ a(function(e) {
|
|
4943
|
+
gc.parseError = e;
|
|
4944
|
+
}, "setParseErrorHandler"), dc = [], fc = !1, pc = /* @__PURE__ */ a(async () => {
|
|
4945
|
+
if (!fc) {
|
|
4946
|
+
for (fc = !0; dc.length > 0;) {
|
|
4947
|
+
let e = dc.shift();
|
|
4944
4948
|
if (e) try {
|
|
4945
4949
|
await e();
|
|
4946
4950
|
} catch (e) {
|
|
4947
4951
|
i.error("Error executing queue", e);
|
|
4948
4952
|
}
|
|
4949
4953
|
}
|
|
4950
|
-
|
|
4954
|
+
fc = !1;
|
|
4951
4955
|
}
|
|
4952
|
-
}, "executeQueue"),
|
|
4956
|
+
}, "executeQueue"), mc = /* @__PURE__ */ a(async (e, t) => new Promise((n, r) => {
|
|
4953
4957
|
let o = /* @__PURE__ */ a(() => new Promise((a, o) => {
|
|
4954
|
-
|
|
4958
|
+
nc.parse(e, t).then((e) => {
|
|
4955
4959
|
a(e), n(e);
|
|
4956
4960
|
}, (e) => {
|
|
4957
|
-
i.error("Error parsing", e),
|
|
4961
|
+
i.error("Error parsing", e), gc.parseError?.(e), o(e), r(e);
|
|
4958
4962
|
});
|
|
4959
4963
|
}), "performCall");
|
|
4960
|
-
|
|
4961
|
-
}), "parse"),
|
|
4964
|
+
dc.push(o), pc().catch(r);
|
|
4965
|
+
}), "parse"), hc = /* @__PURE__ */ a((e, t, n) => new Promise((r, o) => {
|
|
4962
4966
|
let s = /* @__PURE__ */ a(() => new Promise((a, s) => {
|
|
4963
|
-
|
|
4967
|
+
nc.render(e, t, n).then((e) => {
|
|
4964
4968
|
a(e), r(e);
|
|
4965
4969
|
}, (e) => {
|
|
4966
|
-
i.error("Error parsing", e),
|
|
4970
|
+
i.error("Error parsing", e), gc.parseError?.(e), s(e), o(e);
|
|
4967
4971
|
});
|
|
4968
4972
|
}), "performCall");
|
|
4969
|
-
|
|
4970
|
-
}), "render"),
|
|
4973
|
+
dc.push(s), pc().catch(o);
|
|
4974
|
+
}), "render"), gc = {
|
|
4971
4975
|
startOnLoad: !0,
|
|
4972
|
-
mermaidAPI:
|
|
4973
|
-
parse:
|
|
4974
|
-
render:
|
|
4975
|
-
init:
|
|
4976
|
-
run:
|
|
4977
|
-
registerExternalDiagrams:
|
|
4978
|
-
registerLayoutLoaders:
|
|
4979
|
-
initialize:
|
|
4976
|
+
mermaidAPI: nc,
|
|
4977
|
+
parse: mc,
|
|
4978
|
+
render: hc,
|
|
4979
|
+
init: sc,
|
|
4980
|
+
run: ic,
|
|
4981
|
+
registerExternalDiagrams: cc,
|
|
4982
|
+
registerLayoutLoaders: Ki,
|
|
4983
|
+
initialize: oc,
|
|
4980
4984
|
parseError: void 0,
|
|
4981
|
-
contentLoaded:
|
|
4982
|
-
setParseErrorHandler:
|
|
4985
|
+
contentLoaded: lc,
|
|
4986
|
+
setParseErrorHandler: uc,
|
|
4983
4987
|
detectType: v,
|
|
4984
4988
|
registerIconPacks: _e,
|
|
4985
4989
|
getRegisteredDiagramsMetadata: /* @__PURE__ */ a(() => Object.keys(w).map((e) => ({ id: e })), "getRegisteredDiagramsMetadata")
|
|
4986
|
-
}, _c =
|
|
4990
|
+
}, _c = gc, vc = { class: "mermaid-controls" }, yc = ["title"], bc = {
|
|
4987
4991
|
key: 0,
|
|
4988
4992
|
width: "16",
|
|
4989
4993
|
height: "16",
|
|
@@ -4998,7 +5002,7 @@ var dc = /* @__PURE__ */ a(function(e) {
|
|
|
4998
5002
|
}, Sc = { class: "zoom-indicator" }, Cc = {
|
|
4999
5003
|
key: 0,
|
|
5000
5004
|
class: "mermaid-error"
|
|
5001
|
-
}, wc = /* @__PURE__ */
|
|
5005
|
+
}, wc = /* @__PURE__ */ lt(/* @__PURE__ */ ke({
|
|
5002
5006
|
__name: "MermaidDiagram",
|
|
5003
5007
|
props: {
|
|
5004
5008
|
code: {},
|
|
@@ -5006,10 +5010,12 @@ var dc = /* @__PURE__ */ a(function(e) {
|
|
|
5006
5010
|
onError: { type: Function }
|
|
5007
5011
|
},
|
|
5008
5012
|
setup(e) {
|
|
5009
|
-
let t = e, n =
|
|
5010
|
-
|
|
5011
|
-
|
|
5012
|
-
|
|
5013
|
+
let t = e, n = z(null), r = z(null), i = z(null), a = z("default"), o = z(1), s = z(0), c = z(0), l = z(!1), u = z(0), d = z(0), f = z(0), p = z(0), m = z(!1), h = z(null), g = z(null), _ = je("isMarkdownDark"), v = P(() => _ ? _.value : !1), y = () => v.value ? "dark" : "default";
|
|
5014
|
+
ze(() => v.value, (e) => {
|
|
5015
|
+
let t = e ? "dark" : "default";
|
|
5016
|
+
a.value = t, b(t), A();
|
|
5017
|
+
});
|
|
5018
|
+
let b = (e) => {
|
|
5013
5019
|
_c.initialize({
|
|
5014
5020
|
suppressErrorRendering: !0,
|
|
5015
5021
|
startOnLoad: !1,
|
|
@@ -5047,42 +5053,42 @@ var dc = /* @__PURE__ */ a(function(e) {
|
|
|
5047
5053
|
sequenceNumberColor: "#1e1e1e"
|
|
5048
5054
|
} : {}
|
|
5049
5055
|
});
|
|
5050
|
-
},
|
|
5056
|
+
}, x = () => {
|
|
5051
5057
|
if (!h.value || !g.value) return;
|
|
5052
5058
|
let e = g.value, t = e.width / o.value, n = e.height / o.value, r = (e.width - t) / 2, i = (e.height - n) / 2, a = e.x + r - s.value / o.value, l = e.y + i - c.value / o.value;
|
|
5053
5059
|
h.value.setAttribute("viewBox", `${a} ${l} ${t} ${n}`);
|
|
5054
|
-
},
|
|
5060
|
+
}, S = (e) => {
|
|
5055
5061
|
if (!h.value || !r.value || !g.value) return;
|
|
5056
5062
|
let t = e.deltaY > 0 ? .9 : 1.1, n = o.value, i = Math.min(Math.max(.1, o.value * t), 5);
|
|
5057
5063
|
if (n === i) return;
|
|
5058
|
-
let a = r.value.getBoundingClientRect(), l = e.clientX - a.left, u = e.clientY - a.top, d = h.value.getBoundingClientRect(), f = d.left - a.left, p = d.top - a.top, m = l - f, _ = u - p, v = g.value,
|
|
5059
|
-
s.value = (v.x + N - ee) * i, c.value = (v.y + te - M) * i, o.value = i,
|
|
5060
|
-
},
|
|
5064
|
+
let a = r.value.getBoundingClientRect(), l = e.clientX - a.left, u = e.clientY - a.top, d = h.value.getBoundingClientRect(), f = d.left - a.left, p = d.top - a.top, m = l - f, _ = u - p, v = g.value, y = v.width / n, b = v.height / n, S = m / d.width, C = _ / d.height, w = (v.width - y) / 2, T = (v.height - b) / 2, E = v.x + w - s.value / n, D = v.y + T - c.value / n, O = E + S * y, k = D + C * b, A = v.width / i, j = v.height / i, ee = O - S * A, M = k - C * j, N = (v.width - A) / 2, te = (v.height - j) / 2;
|
|
5065
|
+
s.value = (v.x + N - ee) * i, c.value = (v.y + te - M) * i, o.value = i, x();
|
|
5066
|
+
}, C = (e) => {
|
|
5061
5067
|
l.value = !0, u.value = e.clientX, d.value = e.clientY, f.value = s.value, p.value = c.value, r.value && (r.value.style.cursor = "grabbing");
|
|
5062
|
-
},
|
|
5068
|
+
}, w = (e) => {
|
|
5063
5069
|
if (!l.value) return;
|
|
5064
5070
|
let t = e.clientX - u.value, n = e.clientY - d.value;
|
|
5065
|
-
s.value = f.value + t, c.value = p.value + n,
|
|
5066
|
-
}, C = () => {
|
|
5067
|
-
l.value = !1, r.value && (r.value.style.cursor = "grab");
|
|
5068
|
-
}, w = () => {
|
|
5069
|
-
l.value && (l.value = !1, r.value && (r.value.style.cursor = "grab"));
|
|
5071
|
+
s.value = f.value + t, c.value = p.value + n, x();
|
|
5070
5072
|
}, T = () => {
|
|
5071
|
-
|
|
5073
|
+
l.value = !1, r.value && (r.value.style.cursor = "grab");
|
|
5072
5074
|
}, E = () => {
|
|
5075
|
+
l.value && (l.value = !1, r.value && (r.value.style.cursor = "grab"));
|
|
5076
|
+
}, D = () => {
|
|
5077
|
+
o.value = 1, s.value = 0, c.value = 0, x();
|
|
5078
|
+
}, O = () => {
|
|
5073
5079
|
m.value = !m.value;
|
|
5074
|
-
},
|
|
5075
|
-
e.key === "Escape" && m.value &&
|
|
5080
|
+
}, k = (e) => {
|
|
5081
|
+
e.key === "Escape" && m.value && O();
|
|
5076
5082
|
};
|
|
5077
|
-
|
|
5078
|
-
e ? document.body.style.overflow = "hidden" : (document.body.style.overflow = "",
|
|
5083
|
+
ze(m, (e) => {
|
|
5084
|
+
e ? document.body.style.overflow = "hidden" : (document.body.style.overflow = "", D()), h.value && (e ? h.value.style.maxHeight = "100vh" : h.value.style.maxHeight = "600px");
|
|
5079
5085
|
});
|
|
5080
|
-
let
|
|
5086
|
+
let A = async () => {
|
|
5081
5087
|
if (!(!n.value || !t.code)) {
|
|
5082
5088
|
i.value = null, n.value.innerHTML = "";
|
|
5083
5089
|
try {
|
|
5084
|
-
let e =
|
|
5085
|
-
e !== a.value && (a.value = e,
|
|
5090
|
+
let e = y();
|
|
5091
|
+
e !== a.value && (a.value = e, b(e));
|
|
5086
5092
|
let r = `mermaid-${Math.random().toString(36).substr(2, 9)}`, { svg: i } = await _c.render(r, t.code);
|
|
5087
5093
|
if (n.value.innerHTML = i, h.value = n.value.querySelector("svg"), h.value) {
|
|
5088
5094
|
let e = h.value.getAttribute("viewBox");
|
|
@@ -5103,7 +5109,7 @@ var dc = /* @__PURE__ */ a(function(e) {
|
|
|
5103
5109
|
height: t
|
|
5104
5110
|
}, h.value.setAttribute("viewBox", `0 0 ${e} ${t}`);
|
|
5105
5111
|
}
|
|
5106
|
-
h.value.removeAttribute("width"), h.value.removeAttribute("height"), h.value.style.width = "100%", h.value.style.height = "100%", h.value.style.maxWidth = "100%", h.value.style.maxHeight = "600px",
|
|
5112
|
+
h.value.removeAttribute("width"), h.value.removeAttribute("height"), h.value.style.width = "100%", h.value.style.height = "100%", h.value.style.maxWidth = "100%", h.value.style.maxHeight = "600px", x();
|
|
5107
5113
|
}
|
|
5108
5114
|
} catch (e) {
|
|
5109
5115
|
let n = e?.message || String(e);
|
|
@@ -5115,65 +5121,57 @@ var dc = /* @__PURE__ */ a(function(e) {
|
|
|
5115
5121
|
console.log("Mermaid render skipped in streaming mode.");
|
|
5116
5122
|
}
|
|
5117
5123
|
}
|
|
5118
|
-
}, k = null, A = () => {
|
|
5119
|
-
O();
|
|
5120
5124
|
};
|
|
5121
|
-
return
|
|
5122
|
-
a.value =
|
|
5123
|
-
|
|
5124
|
-
|
|
5125
|
-
|
|
5126
|
-
|
|
5127
|
-
|
|
5128
|
-
attributeFilter: ["class"]
|
|
5129
|
-
}), e.observe(document.body, {
|
|
5130
|
-
attributes: !0,
|
|
5131
|
-
attributeFilter: ["class"]
|
|
5132
|
-
}), n.value.__observer = e, window.addEventListener("keydown", D);
|
|
5133
|
-
}), Ie(() => {
|
|
5134
|
-
k && k.removeEventListener("change", A), n.value && n.value.__observer && n.value.__observer.disconnect(), window.removeEventListener("keydown", D), document.body.style.overflow = "";
|
|
5135
|
-
}), Be(() => [t.code, t.isStreaming], () => {
|
|
5136
|
-
O();
|
|
5137
|
-
}), (t, a) => (L(), ke(De, {
|
|
5125
|
+
return Pe(() => {
|
|
5126
|
+
a.value = y(), b(a.value), A(), window.addEventListener("keydown", k);
|
|
5127
|
+
}), Fe(() => {
|
|
5128
|
+
window.removeEventListener("keydown", k), document.body.style.overflow = "";
|
|
5129
|
+
}), ze(() => [t.code, t.isStreaming], () => {
|
|
5130
|
+
A();
|
|
5131
|
+
}), (t, a) => (R(), Oe(De, {
|
|
5138
5132
|
to: "body",
|
|
5139
5133
|
disabled: !m.value
|
|
5140
|
-
}, [
|
|
5141
|
-
|
|
5142
|
-
|
|
5143
|
-
|
|
5134
|
+
}, [L("div", { class: Me(["mermaid-diagram-wrapper", {
|
|
5135
|
+
fullscreen: m.value,
|
|
5136
|
+
"theme-dark": v.value,
|
|
5137
|
+
"theme-light": !v.value
|
|
5138
|
+
}]) }, [
|
|
5139
|
+
L("div", vc, [
|
|
5140
|
+
L("button", {
|
|
5141
|
+
onClick: D,
|
|
5144
5142
|
class: "control-btn",
|
|
5145
5143
|
title: "重置缩放"
|
|
5146
|
-
}, [...a[0] ||= [
|
|
5144
|
+
}, [...a[0] ||= [L("svg", {
|
|
5147
5145
|
width: "16",
|
|
5148
5146
|
height: "16",
|
|
5149
5147
|
viewBox: "0 0 16 16",
|
|
5150
5148
|
fill: "currentColor"
|
|
5151
|
-
}, [
|
|
5152
|
-
|
|
5153
|
-
onClick:
|
|
5149
|
+
}, [L("path", { d: "M8 3a5 5 0 1 0 0 10A5 5 0 0 0 8 3zM1 8a7 7 0 1 1 14 0A7 7 0 0 1 1 8z" }), L("path", { d: "M8 4.5a.5.5 0 0 1 .5.5v2h2a.5.5 0 0 1 0 1h-2v2a.5.5 0 0 1-1 0v-2h-2a.5.5 0 0 1 0-1h2v-2A.5.5 0 0 1 8 4.5z" })], -1)]]),
|
|
5150
|
+
L("button", {
|
|
5151
|
+
onClick: O,
|
|
5154
5152
|
class: "control-btn",
|
|
5155
5153
|
title: m.value ? "退出全屏" : "全屏预览"
|
|
5156
|
-
}, [m.value ? (
|
|
5157
|
-
|
|
5154
|
+
}, [m.value ? (R(), I("svg", xc, [...a[2] ||= [L("path", { d: "M5.5 0a.5.5 0 0 1 .5.5v4A1.5 1.5 0 0 1 4.5 6h-4a.5.5 0 0 1 0-1h4a.5.5 0 0 0 .5-.5v-4a.5.5 0 0 1 .5-.5zm5 0a.5.5 0 0 1 .5.5v4a.5.5 0 0 0 .5.5h4a.5.5 0 0 1 0 1h-4A1.5 1.5 0 0 1 10 4.5v-4a.5.5 0 0 1 .5-.5zM0 10.5a.5.5 0 0 1 .5-.5h4A1.5 1.5 0 0 1 6 11.5v4a.5.5 0 0 1-1 0v-4a.5.5 0 0 0-.5-.5h-4a.5.5 0 0 1-.5-.5zm10 1a1.5 1.5 0 0 1 1.5-1.5h4a.5.5 0 0 1 0 1h-4a.5.5 0 0 0-.5.5v4a.5.5 0 0 1-1 0v-4z" }, null, -1)]])) : (R(), I("svg", bc, [...a[1] ||= [L("path", { d: "M1.5 1a.5.5 0 0 0-.5.5v4a.5.5 0 0 1-1 0v-4A1.5 1.5 0 0 1 1.5 0h4a.5.5 0 0 1 0 1h-4zM10 .5a.5.5 0 0 1 .5-.5h4A1.5 1.5 0 0 1 16 1.5v4a.5.5 0 0 1-1 0v-4a.5.5 0 0 0-.5-.5h-4a.5.5 0 0 1-.5-.5zM.5 10a.5.5 0 0 1 .5.5v4a.5.5 0 0 0 .5.5h4a.5.5 0 0 1 0 1h-4A1.5 1.5 0 0 1 0 14.5v-4a.5.5 0 0 1 .5-.5zm15 0a.5.5 0 0 1 .5.5v4a1.5 1.5 0 0 1-1.5 1.5h-4a.5.5 0 0 1 0-1h4a.5.5 0 0 0 .5-.5v-4a.5.5 0 0 1 .5-.5z" }, null, -1)]]))], 8, yc),
|
|
5155
|
+
L("span", Sc, Le(Math.round(o.value * 100)) + "%", 1)
|
|
5158
5156
|
]),
|
|
5159
|
-
|
|
5157
|
+
L("div", {
|
|
5160
5158
|
ref_key: "containerRef",
|
|
5161
5159
|
ref: r,
|
|
5162
|
-
class:
|
|
5163
|
-
onWheel:
|
|
5164
|
-
onMousedown:
|
|
5165
|
-
onMousemove:
|
|
5166
|
-
onMouseup:
|
|
5167
|
-
onMouseleave:
|
|
5168
|
-
}, [
|
|
5160
|
+
class: Me(["mermaid-diagram", { "is-dragging": l.value }]),
|
|
5161
|
+
onWheel: Ve(S, ["prevent"]),
|
|
5162
|
+
onMousedown: C,
|
|
5163
|
+
onMousemove: w,
|
|
5164
|
+
onMouseup: T,
|
|
5165
|
+
onMouseleave: E
|
|
5166
|
+
}, [L("div", {
|
|
5169
5167
|
ref_key: "diagramRef",
|
|
5170
5168
|
ref: n,
|
|
5171
5169
|
class: "mermaid-diagram-content"
|
|
5172
5170
|
}, null, 512)], 34),
|
|
5173
|
-
i.value && !e.isStreaming ? (
|
|
5171
|
+
i.value && !e.isStreaming ? (R(), I("div", Cc, [a[3] ||= L("strong", null, "Mermaid 渲染错误:", -1), L("pre", null, Le(i.value), 1)])) : F("", !0)
|
|
5174
5172
|
], 2)], 8, ["disabled"]));
|
|
5175
5173
|
}
|
|
5176
|
-
}), [["__scopeId", "data-v-
|
|
5174
|
+
}), [["__scopeId", "data-v-5f6504e7"]]);
|
|
5177
5175
|
//#endregion
|
|
5178
5176
|
//#region src/plugins/custom/mermaidPlugin.ts
|
|
5179
5177
|
function Tc(e) {
|
|
@@ -5198,28 +5196,28 @@ function Dc(e) {
|
|
|
5198
5196
|
},
|
|
5199
5197
|
render: (e, t, n, i) => {
|
|
5200
5198
|
let o = e.children?.find((e) => e.type === "tag" && e.name === "code");
|
|
5201
|
-
if (!o) return
|
|
5199
|
+
if (!o) return Ae("div", { class: "mermaid-error" }, "No code content found");
|
|
5202
5200
|
let s = {
|
|
5203
5201
|
code: Ec(o),
|
|
5204
5202
|
isStreaming: i?.isStreaming || !1
|
|
5205
5203
|
};
|
|
5206
|
-
return r && (s.theme = r), a && (s.onError = a),
|
|
5204
|
+
return r && (s.theme = r), a && (s.onError = a), Ae(wc, s);
|
|
5207
5205
|
}
|
|
5208
5206
|
};
|
|
5209
5207
|
}
|
|
5210
5208
|
//#endregion
|
|
5211
5209
|
//#region src/components/BlinkingCursor.vue
|
|
5212
|
-
var Oc = /* @__PURE__ */
|
|
5210
|
+
var Oc = /* @__PURE__ */ lt(/* @__PURE__ */ ke({
|
|
5213
5211
|
__name: "BlinkingCursor",
|
|
5214
5212
|
props: {
|
|
5215
5213
|
shape: { default: "square" },
|
|
5216
5214
|
color: { default: "#333" }
|
|
5217
5215
|
},
|
|
5218
5216
|
setup(e) {
|
|
5219
|
-
let t = e, n =
|
|
5220
|
-
return (t, r) => (
|
|
5221
|
-
class:
|
|
5222
|
-
style:
|
|
5217
|
+
let t = e, n = P(() => ({ backgroundColor: t.color }));
|
|
5218
|
+
return (t, r) => (R(), I("span", {
|
|
5219
|
+
class: Me(["blinking-cursor", `cursor-${e.shape}`]),
|
|
5220
|
+
style: Ne(n.value)
|
|
5223
5221
|
}, null, 6));
|
|
5224
5222
|
}
|
|
5225
5223
|
}), [["__scopeId", "data-v-0d4d5123"]]);
|
|
@@ -5231,7 +5229,7 @@ function kc(e = {}) {
|
|
|
5231
5229
|
name: "cursor",
|
|
5232
5230
|
priority: r,
|
|
5233
5231
|
test: (e) => e.type === "component" && e.name === "cursor",
|
|
5234
|
-
render: (e, r, i, a) =>
|
|
5232
|
+
render: (e, r, i, a) => Ae(Oc, {
|
|
5235
5233
|
...e.attribs,
|
|
5236
5234
|
shape: t,
|
|
5237
5235
|
...n && { color: n }
|
|
@@ -5247,7 +5245,7 @@ var Ac = [
|
|
|
5247
5245
|
"data-original",
|
|
5248
5246
|
"data-index",
|
|
5249
5247
|
"crossorigin"
|
|
5250
|
-
], jc = /* @__PURE__ */
|
|
5248
|
+
], jc = /* @__PURE__ */ lt(/* @__PURE__ */ ke({
|
|
5251
5249
|
__name: "ImageViewer",
|
|
5252
5250
|
props: {
|
|
5253
5251
|
src: {},
|
|
@@ -5261,27 +5259,27 @@ var Ac = [
|
|
|
5261
5259
|
context: {}
|
|
5262
5260
|
},
|
|
5263
5261
|
setup(e) {
|
|
5264
|
-
let t = e, n =
|
|
5262
|
+
let t = e, n = z(null), r = je("imageViewerManager", null), i = {
|
|
5265
5263
|
cursor: "pointer",
|
|
5266
5264
|
maxWidth: "100%",
|
|
5267
5265
|
height: "auto"
|
|
5268
|
-
}, a =
|
|
5266
|
+
}, a = P(() => {
|
|
5269
5267
|
let e = t.context?.images || [];
|
|
5270
5268
|
if (t.src && e.length > 0) {
|
|
5271
5269
|
let n = e.findIndex((e) => e.src === t.src);
|
|
5272
5270
|
return n === -1 ? 0 : n;
|
|
5273
5271
|
}
|
|
5274
5272
|
return 0;
|
|
5275
|
-
}), o =
|
|
5276
|
-
|
|
5273
|
+
}), o = P(() => t.crossOrigin ? t.src.startsWith("http") && !t.src.includes(window.location.host) : He(t.src, t.context?.autoCors));
|
|
5274
|
+
Pe(() => {
|
|
5277
5275
|
r && n.value && r.registerImage(n.value);
|
|
5278
|
-
}),
|
|
5276
|
+
}), Fe(() => {
|
|
5279
5277
|
r && n.value && r.unregisterImage(n.value);
|
|
5280
5278
|
});
|
|
5281
5279
|
function s() {
|
|
5282
5280
|
r && r.show(a.value);
|
|
5283
5281
|
}
|
|
5284
|
-
return (t, r) => (
|
|
5282
|
+
return (t, r) => (R(), I("img", {
|
|
5285
5283
|
ref_key: "imgRef",
|
|
5286
5284
|
ref: n,
|
|
5287
5285
|
src: e.src,
|
|
@@ -5310,7 +5308,7 @@ function Mc(e) {
|
|
|
5310
5308
|
let t = o.findIndex((t) => t.src === e.attribs?.src);
|
|
5311
5309
|
t !== -1 && (s = t);
|
|
5312
5310
|
}
|
|
5313
|
-
return
|
|
5311
|
+
return Ae(jc, {
|
|
5314
5312
|
src: e.attribs?.src || "",
|
|
5315
5313
|
alt: e.attribs?.alt || "",
|
|
5316
5314
|
title: e.attribs?.title || "",
|
|
@@ -5323,4 +5321,4 @@ function Mc(e) {
|
|
|
5323
5321
|
};
|
|
5324
5322
|
}
|
|
5325
5323
|
//#endregion
|
|
5326
|
-
export {
|
|
5324
|
+
export { no as a, Ji as c, Ui as d, mt as f, He as g, dt as h, oo as i, qi as l, ft as m, kc as n, Ha as o, pt as p, Dc as r, za as s, Mc as t, Hi as u };
|