mio-previewer 0.2.78 → 0.2.79
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-CtuVwROD.cjs → _basePickBy-C-6tRP2I.cjs} +1 -1
- package/dist/{_basePickBy-CXmXW7jd.js → _basePickBy-D4bNTM3Z.js} +1 -1
- package/dist/{_baseUniq-CYtOXxfV.cjs → _baseUniq-CgY8QW_y.cjs} +1 -1
- package/dist/{_baseUniq-CGoiOkSa.js → _baseUniq-CvnyBGLW.js} +1 -1
- package/dist/architecture-O4VJ6CD3-Bekh0x8X.js +2 -0
- package/dist/architecture-O4VJ6CD3-C0J-LRmO.cjs +1 -0
- package/dist/{architectureDiagram-VXUJARFQ-CYbuyVAs.js → architectureDiagram-VXUJARFQ-CjxvnYE7.js} +2 -2
- package/dist/{architectureDiagram-VXUJARFQ-DEGYSl1f.cjs → architectureDiagram-VXUJARFQ-qzdCK5Ct.cjs} +1 -1
- package/dist/{blockDiagram-VD42YOAC-DeX0dq72.cjs → blockDiagram-VD42YOAC-BM5KaD8Q.cjs} +1 -1
- package/dist/{blockDiagram-VD42YOAC-DaH3L5Ng.js → blockDiagram-VD42YOAC-oDdaxEWg.js} +2 -2
- package/dist/{chunk-B4BG7PRW-C67vroOS.cjs → chunk-B4BG7PRW-BC3MAjCT.cjs} +1 -1
- package/dist/{chunk-B4BG7PRW-DSYuK8dI.js → chunk-B4BG7PRW-DnbgZIQG.js} +1 -1
- package/dist/{chunk-DI55MBZ5-Clru0TyG.js → chunk-DI55MBZ5-B8uR5vzE.js} +1 -1
- package/dist/{chunk-DI55MBZ5-BCvBgHrp.cjs → chunk-DI55MBZ5-C0CODE9K.cjs} +1 -1
- package/dist/{classDiagram-2ON5EDUG-Bv1XCvDZ.js → classDiagram-2ON5EDUG-BkjzOYcB.js} +2 -2
- package/dist/{classDiagram-2ON5EDUG-BzMV1CJW.cjs → classDiagram-2ON5EDUG-DUJllVbY.cjs} +1 -1
- package/dist/{classDiagram-v2-WZHVMYZB-Bqxv5U7u.js → classDiagram-v2-WZHVMYZB-C1tORf6V.js} +2 -2
- package/dist/{classDiagram-v2-WZHVMYZB-BzMV1CJW.cjs → classDiagram-v2-WZHVMYZB-DUJllVbY.cjs} +1 -1
- package/dist/clone-Bg_au2CH.cjs +1 -0
- package/dist/{clone-B0KDIkSS.js → clone-ZBseQO6x.js} +1 -1
- package/dist/{custom-Bl_fVJZ0.cjs → custom-Dzz3lVEd.cjs} +28 -28
- package/dist/{custom-D-TzPpWT.js → custom-vxgVIB3v.js} +825 -807
- package/dist/{dagre-6UL2VRFP-B3NqmIxs.cjs → dagre-6UL2VRFP-C7ejSKjH.cjs} +1 -1
- package/dist/{dagre-6UL2VRFP-3bgUxzqG.js → dagre-6UL2VRFP-CTQsEV-y.js} +5 -5
- package/dist/{dagre-Buvkww-e.cjs → dagre-BLeVvHvV.cjs} +1 -1
- package/dist/{dagre-BfAHSwtP.js → dagre-_RyRpmBm.js} +4 -4
- package/dist/{diagram-PSM6KHXK-C4FjxUHt.cjs → diagram-PSM6KHXK-C9stV6sd.cjs} +1 -1
- package/dist/{diagram-PSM6KHXK-CF8TkgzX.js → diagram-PSM6KHXK-CBe5oVqM.js} +2 -2
- package/dist/{diagram-QEK2KX5R-Z9DYjr44.cjs → diagram-QEK2KX5R-CyR0C3Eq.cjs} +1 -1
- package/dist/{diagram-QEK2KX5R-Dl3IHeA5.js → diagram-QEK2KX5R-DGkgy9JJ.js} +2 -2
- package/dist/{diagram-S2PKOQOG-ZKvn7IEe.js → diagram-S2PKOQOG-BSyOCAO-.js} +2 -2
- package/dist/{diagram-S2PKOQOG-Bib-zL2S.cjs → diagram-S2PKOQOG-DO5KWw9a.cjs} +1 -1
- package/dist/{erDiagram-Q2GNP2WA-DJYJEzEB.js → erDiagram-Q2GNP2WA-Bv8DMAr7.js} +1 -1
- package/dist/{erDiagram-Q2GNP2WA-DFMV9OUT.cjs → erDiagram-Q2GNP2WA-DQL-x8_S.cjs} +1 -1
- package/dist/{flowDiagram-NV44I4VS-CXa6ycqs.js → flowDiagram-NV44I4VS-CEliIL_u.js} +1 -1
- package/dist/{flowDiagram-NV44I4VS-7TxeawHS.cjs → flowDiagram-NV44I4VS-Mqbx7XCA.cjs} +1 -1
- package/dist/gitGraph-ZV4HHKMB-BxhTD2Wo.cjs +1 -0
- package/dist/gitGraph-ZV4HHKMB-Cc-__hED.js +2 -0
- package/dist/{gitGraphDiagram-NY62KEGX-k5xzXg7C.cjs → gitGraphDiagram-NY62KEGX-CegzbC8B.cjs} +1 -1
- package/dist/{gitGraphDiagram-NY62KEGX-Tphu_MeC.js → gitGraphDiagram-NY62KEGX-DBBSI-oa.js} +1 -1
- package/dist/{graphlib-Cdg0u3TT.cjs → graphlib-BwNw1Gxc.cjs} +1 -1
- package/dist/{graphlib-C3tPLMbC.js → graphlib-uu-sQ8no.js} +2 -2
- package/dist/info-63CPKGFF-B0vF_vfC.js +2 -0
- package/dist/info-63CPKGFF-DZUDiFiH.cjs +1 -0
- package/dist/{infoDiagram-F6ZHWCRC-BUoruN76.js → infoDiagram-F6ZHWCRC--PM3wKfu.js} +2 -2
- package/dist/{infoDiagram-F6ZHWCRC-3Jwo4J0f.cjs → infoDiagram-F6ZHWCRC-CyPuCBk4.cjs} +1 -1
- package/dist/{kanban-definition-3W4ZIXB7-txUXjKzB.cjs → kanban-definition-3W4ZIXB7-49dV2Oyz.cjs} +1 -1
- package/dist/{kanban-definition-3W4ZIXB7-AVLIBuMF.js → kanban-definition-3W4ZIXB7-DHhTxyFH.js} +1 -1
- package/dist/{mermaid-parser.core-B84fnaGG.js → mermaid-parser.core-adSCl_zk.js} +11 -11
- package/dist/{mermaid-parser.core-C9EbhVVg.cjs → mermaid-parser.core-cnqU6oUa.cjs} +2 -2
- package/dist/{mindmap-definition-VGOIOE7T-CXlyYsc6.cjs → mindmap-definition-VGOIOE7T-7loMqRTP.cjs} +1 -1
- package/dist/{mindmap-definition-VGOIOE7T-VIt9sDN3.js → mindmap-definition-VGOIOE7T-ez_afevb.js} +1 -1
- package/dist/mio-previewer.cjs.js +2 -2
- package/dist/mio-previewer.css +1 -1
- package/dist/mio-previewer.es.js +783 -771
- package/dist/packet-HUATNLJX-C3sFUqev.cjs +1 -0
- package/dist/packet-HUATNLJX-CPB7Yclo.js +2 -0
- package/dist/pie-WTHONI2E-BVTTZknO.js +2 -0
- package/dist/pie-WTHONI2E-sQC7_r18.cjs +1 -0
- package/dist/{pieDiagram-ADFJNKIX-CTT1YMsk.cjs → pieDiagram-ADFJNKIX-4bnQA7AW.cjs} +1 -1
- package/dist/{pieDiagram-ADFJNKIX-BysReYfx.js → pieDiagram-ADFJNKIX-DnFUaNhH.js} +2 -2
- package/dist/plugins/custom.cjs.js +1 -1
- package/dist/plugins/custom.es.js +1 -1
- package/dist/radar-NJJJXTRR-CvHt9XOc.js +2 -0
- package/dist/radar-NJJJXTRR-CwT3NW1L.cjs +1 -0
- package/dist/{requirementDiagram-UZGBJVZJ-DFRpWnfW.cjs → requirementDiagram-UZGBJVZJ-9lPo6mLh.cjs} +1 -1
- package/dist/{requirementDiagram-UZGBJVZJ-DNYoJyhG.js → requirementDiagram-UZGBJVZJ-pYl3NV8Q.js} +1 -1
- package/dist/{sequenceDiagram-WL72ISMW-D9sXtgAn.cjs → sequenceDiagram-WL72ISMW-CfmthgAL.cjs} +1 -1
- package/dist/{sequenceDiagram-WL72ISMW-Bmptok1c.js → sequenceDiagram-WL72ISMW-Dje8cRzT.js} +1 -1
- package/dist/{stateDiagram-FKZM4ZOC-DiD1WJPM.cjs → stateDiagram-FKZM4ZOC-Bj7mX0dd.cjs} +1 -1
- package/dist/{stateDiagram-FKZM4ZOC-Bmiw8fnW.js → stateDiagram-FKZM4ZOC-DYs-XmmC.js} +4 -4
- package/dist/{stateDiagram-v2-4FDKWEC3-5ADhn1IF.js → stateDiagram-v2-4FDKWEC3-DzKwIUrT.js} +2 -2
- package/dist/{stateDiagram-v2-4FDKWEC3-BjhmCPL1.cjs → stateDiagram-v2-4FDKWEC3-EP67hXTC.cjs} +1 -1
- package/dist/treemap-75Q7IDZK-C8Y17Ps_.cjs +1 -0
- package/dist/treemap-75Q7IDZK-CZkKsngm.js +2 -0
- package/dist/types/types.d.ts +8 -0
- package/dist/types/utils/cors.d.ts +4 -0
- package/dist/{xychartDiagram-PRI3JC2R-BWabDL1u.js → xychartDiagram-PRI3JC2R-10qi3cyY.js} +1 -1
- package/dist/{xychartDiagram-PRI3JC2R-BI6KuGZ2.cjs → xychartDiagram-PRI3JC2R-pjId4L-I.cjs} +1 -1
- package/package.json +1 -2
- package/dist/architecture-O4VJ6CD3-B9qzjtV8.cjs +0 -1
- package/dist/architecture-O4VJ6CD3-wqAP4onK.js +0 -2
- package/dist/clone-wvtBTB6v.cjs +0 -1
- package/dist/gitGraph-ZV4HHKMB-BjaEVcYh.cjs +0 -1
- package/dist/gitGraph-ZV4HHKMB-Cl2I6-l3.js +0 -2
- package/dist/info-63CPKGFF-D2A5GDFo.js +0 -2
- package/dist/info-63CPKGFF-MRaucWlf.cjs +0 -1
- package/dist/packet-HUATNLJX-CGNko_oS.cjs +0 -1
- package/dist/packet-HUATNLJX-CVx40lqO.js +0 -2
- package/dist/pie-WTHONI2E-BdPx0Cfg.cjs +0 -1
- package/dist/pie-WTHONI2E-DX5V8x0L.js +0 -2
- package/dist/radar-NJJJXTRR-CTD6M8nl.js +0 -2
- package/dist/radar-NJJJXTRR-wJoTnQbj.cjs +0 -1
- package/dist/treemap-75Q7IDZK-9TPMYr3R.cjs +0 -1
- package/dist/treemap-75Q7IDZK-u3p-cHDL.js +0 -2
|
@@ -11,9 +11,27 @@ import { i as ge, s as _e } from "./chunk-JA3XYJ7Z-CpKHrbOX.js";
|
|
|
11
11
|
import { a as ve, i as ye, s as be } from "./chunk-JZLCHNYA-CYo7ykJf.js";
|
|
12
12
|
import { a as xe, i as Se, n as Ce, r as we } from "./chunk-QXUST7PY-CxCAwQqP.js";
|
|
13
13
|
import { Teleport as Te, computed as Ee, createBlock as De, createCommentVNode as F, createElementBlock as I, createElementVNode as L, defineComponent as Oe, h as ke, inject as Ae, normalizeClass as je, normalizeStyle as Me, onMounted as Ne, onUnmounted as Pe, openBlock as R, ref as z, toDisplayString as Fe, vShow as Ie, watch as Le, withDirectives as Re, withModifiers as ze } from "vue";
|
|
14
|
+
//#region src/utils/cors.ts
|
|
15
|
+
function Be(e, t) {
|
|
16
|
+
if (!t || !e || e.startsWith("data:") || e.startsWith("blob:")) return !1;
|
|
17
|
+
let n = e.startsWith("http://") || e.startsWith("https://") || e.startsWith("//");
|
|
18
|
+
if (Array.isArray(t)) return t.some((t) => {
|
|
19
|
+
try {
|
|
20
|
+
return (n ? new URL(e, window.location.origin) : new URL(e, "http://dummy.com")).hostname.includes(t);
|
|
21
|
+
} catch {
|
|
22
|
+
return e.includes(t);
|
|
23
|
+
}
|
|
24
|
+
});
|
|
25
|
+
if (t === !0 && n) try {
|
|
26
|
+
return new URL(e, window.location.origin).hostname !== window.location.hostname;
|
|
27
|
+
} catch {
|
|
28
|
+
return !1;
|
|
29
|
+
}
|
|
30
|
+
return !1;
|
|
31
|
+
}
|
|
14
32
|
//#endregion
|
|
15
33
|
//#region node_modules/.pnpm/prismjs@1.30.0/node_modules/prismjs/themes/prism-tomorrow.css
|
|
16
|
-
var
|
|
34
|
+
var Ve = /* @__PURE__ */ e((/* @__PURE__ */ t(((e, t) => {
|
|
17
35
|
var n = function(e) {
|
|
18
36
|
var t = /(?:^|\s)lang(?:uage)?-([\w-]+)(?=\s|$)/i, n = 0, r = {}, i = {
|
|
19
37
|
manual: e.Prism && e.Prism.manual,
|
|
@@ -2381,7 +2399,7 @@ var Be = /* @__PURE__ */ e((/* @__PURE__ */ t(((e, t) => {
|
|
|
2381
2399
|
})(Prism);
|
|
2382
2400
|
//#endregion
|
|
2383
2401
|
//#region src/components/CodeBlock.vue?vue&type=script&setup=true&lang.ts
|
|
2384
|
-
var
|
|
2402
|
+
var He = ["data-lang"], Ue = { class: "code-block-header" }, We = { class: "lang-label" }, Ge = { class: "op-btn-group" }, Ke = ["disabled", "title"], qe = ["title", "innerHTML"], Je = { class: "pre-container" }, Ye = ["innerHTML"], Xe = ["srcdoc"], Ze = "<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>", Qe = "<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>", $e = "<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>", et = "<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>", tt = "<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>", nt = "<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>", rt = "<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>", it = "<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>", at = /* @__PURE__ */ Oe({
|
|
2385
2403
|
__name: "CodeBlock",
|
|
2386
2404
|
props: {
|
|
2387
2405
|
code: {},
|
|
@@ -2401,7 +2419,7 @@ var Ve = ["data-lang"], He = { class: "code-block-header" }, Ue = { class: "lang
|
|
|
2401
2419
|
}
|
|
2402
2420
|
function x() {
|
|
2403
2421
|
let e = t.language || "plaintext";
|
|
2404
|
-
return
|
|
2422
|
+
return Ve.default.languages[e] ? Ve.default.highlight(t.code, Ve.default.languages[e], e) : Ve.default.util.encode(t.code);
|
|
2405
2423
|
}
|
|
2406
2424
|
let S = z(""), C = () => {
|
|
2407
2425
|
S.value = x();
|
|
@@ -2561,13 +2579,13 @@ var Ve = ["data-lang"], He = { class: "code-block-header" }, Ue = { class: "lang
|
|
|
2561
2579
|
top: _.value
|
|
2562
2580
|
})
|
|
2563
2581
|
}, Fe(m.value), 5)) : F("", !0)])),
|
|
2564
|
-
L("div",
|
|
2582
|
+
L("div", Ue, [L("span", We, Fe(e.language.toUpperCase()), 1), L("div", Ge, [
|
|
2565
2583
|
L("button", {
|
|
2566
2584
|
class: "copy-code-button",
|
|
2567
2585
|
type: "button",
|
|
2568
2586
|
title: "复制代码",
|
|
2569
2587
|
onClick: j,
|
|
2570
|
-
innerHTML:
|
|
2588
|
+
innerHTML: Ze
|
|
2571
2589
|
}),
|
|
2572
2590
|
b() && !r.value ? (R(), I("button", {
|
|
2573
2591
|
key: 0,
|
|
@@ -2575,7 +2593,7 @@ var Ve = ["data-lang"], He = { class: "code-block-header" }, Ue = { class: "lang
|
|
|
2575
2593
|
type: "button",
|
|
2576
2594
|
title: "预览 HTML",
|
|
2577
2595
|
onClick: O,
|
|
2578
|
-
innerHTML:
|
|
2596
|
+
innerHTML: Qe
|
|
2579
2597
|
})) : F("", !0),
|
|
2580
2598
|
b() && e.publishUrl ? (R(), I("button", {
|
|
2581
2599
|
key: 1,
|
|
@@ -2584,23 +2602,23 @@ var Ve = ["data-lang"], He = { class: "code-block-header" }, Ue = { class: "lang
|
|
|
2584
2602
|
type: "button",
|
|
2585
2603
|
title: v.value,
|
|
2586
2604
|
onClick: ee,
|
|
2587
|
-
innerHTML:
|
|
2588
|
-
}, null, 8,
|
|
2605
|
+
innerHTML: et
|
|
2606
|
+
}, null, 8, Ke)) : F("", !0),
|
|
2589
2607
|
e.enableCollapse && d.value && !c.value ? (R(), I("button", {
|
|
2590
2608
|
key: 2,
|
|
2591
2609
|
class: "collapse-toggle-button",
|
|
2592
2610
|
type: "button",
|
|
2593
2611
|
title: u.value ? "展开代码" : "折叠代码",
|
|
2594
2612
|
onClick: T,
|
|
2595
|
-
innerHTML: u.value ?
|
|
2596
|
-
}, null, 8,
|
|
2613
|
+
innerHTML: u.value ? rt : it
|
|
2614
|
+
}, null, 8, qe)) : F("", !0),
|
|
2597
2615
|
c.value ? F("", !0) : (R(), I("button", {
|
|
2598
2616
|
key: 3,
|
|
2599
2617
|
class: "fullscreen-button",
|
|
2600
2618
|
type: "button",
|
|
2601
2619
|
title: "全屏",
|
|
2602
2620
|
onClick: M,
|
|
2603
|
-
innerHTML:
|
|
2621
|
+
innerHTML: tt
|
|
2604
2622
|
})),
|
|
2605
2623
|
c.value ? (R(), I("button", {
|
|
2606
2624
|
key: 4,
|
|
@@ -2608,7 +2626,7 @@ var Ve = ["data-lang"], He = { class: "code-block-header" }, Ue = { class: "lang
|
|
|
2608
2626
|
type: "button",
|
|
2609
2627
|
title: "退出全屏",
|
|
2610
2628
|
onClick: N,
|
|
2611
|
-
innerHTML:
|
|
2629
|
+
innerHTML: nt
|
|
2612
2630
|
})) : F("", !0),
|
|
2613
2631
|
r.value ? (R(), I("button", {
|
|
2614
2632
|
key: 5,
|
|
@@ -2616,10 +2634,10 @@ var Ve = ["data-lang"], He = { class: "code-block-header" }, Ue = { class: "lang
|
|
|
2616
2634
|
type: "button",
|
|
2617
2635
|
title: "关闭预览",
|
|
2618
2636
|
onClick: k,
|
|
2619
|
-
innerHTML:
|
|
2637
|
+
innerHTML: $e
|
|
2620
2638
|
})) : F("", !0)
|
|
2621
2639
|
])]),
|
|
2622
|
-
Re(L("div",
|
|
2640
|
+
Re(L("div", Je, [L("pre", {
|
|
2623
2641
|
ref_key: "preRef",
|
|
2624
2642
|
ref: p,
|
|
2625
2643
|
class: je([`language-${e.language}`, { "is-collapsed": e.enableCollapse && u.value && d.value && !c.value }]),
|
|
@@ -2628,13 +2646,13 @@ var Ve = ["data-lang"], He = { class: "code-block-header" }, Ue = { class: "lang
|
|
|
2628
2646
|
}, [L("code", {
|
|
2629
2647
|
class: je(`language-${e.language}`),
|
|
2630
2648
|
innerHTML: S.value
|
|
2631
|
-
}, null, 10,
|
|
2649
|
+
}, null, 10, Ye)], 38), e.enableCollapse && d.value && u.value && !c.value ? (R(), I("div", {
|
|
2632
2650
|
key: 0,
|
|
2633
2651
|
class: "collapse-expand-bar",
|
|
2634
2652
|
onClick: T
|
|
2635
2653
|
}, [n[0] ||= L("span", { class: "expand-prompt-text" }, "展开全部代码", -1), L("span", {
|
|
2636
2654
|
class: "expand-prompt-icon",
|
|
2637
|
-
innerHTML:
|
|
2655
|
+
innerHTML: rt
|
|
2638
2656
|
})])) : F("", !0)], 512), [[Ie, !r.value]]),
|
|
2639
2657
|
r.value ? (R(), I("div", {
|
|
2640
2658
|
key: 0,
|
|
@@ -2647,17 +2665,17 @@ var Ve = ["data-lang"], He = { class: "code-block-header" }, Ue = { class: "lang
|
|
|
2647
2665
|
srcdoc: te.value,
|
|
2648
2666
|
sandbox: "allow-scripts allow-forms allow-popups allow-modals allow-same-origin",
|
|
2649
2667
|
onLoad: ne
|
|
2650
|
-
}, null, 40,
|
|
2651
|
-
], 10,
|
|
2668
|
+
}, null, 40, Xe)], 4)) : F("", !0)
|
|
2669
|
+
], 10, He)], 2)], 8, ["disabled"]));
|
|
2652
2670
|
}
|
|
2653
|
-
}),
|
|
2671
|
+
}), ot = (e, t) => {
|
|
2654
2672
|
let n = e.__vccOpts || e;
|
|
2655
2673
|
for (let [e, r] of t) n[e] = r;
|
|
2656
2674
|
return n;
|
|
2657
|
-
},
|
|
2675
|
+
}, st = /* @__PURE__ */ ot(at, [["__scopeId", "data-v-c3278c00"]]);
|
|
2658
2676
|
//#endregion
|
|
2659
2677
|
//#region src/plugins/custom/codeBlockPlugin.ts
|
|
2660
|
-
function
|
|
2678
|
+
function ct(e) {
|
|
2661
2679
|
let { priority: t = 70, languageAliases: r = {}, publishUrl: i, onPublished: a, cssUrl: o, enableCollapse: s = !0, collapseMaxHeight: c = 300 } = e || {};
|
|
2662
2680
|
return o && typeof window < "u" && n(o), {
|
|
2663
2681
|
name: "codeblock",
|
|
@@ -2669,7 +2687,7 @@ function st(e) {
|
|
|
2669
2687
|
let u = (l.attribs?.class || "").match(/language-(\w+)/), d = u ? u[1] : "plaintext";
|
|
2670
2688
|
r[d] && (d = r[d]);
|
|
2671
2689
|
let f = (e) => e.type === "text" ? e.data || "" : e.children ? e.children.map(f).join("") : "";
|
|
2672
|
-
return ke(
|
|
2690
|
+
return ke(st, {
|
|
2673
2691
|
code: f(l),
|
|
2674
2692
|
language: d,
|
|
2675
2693
|
publishUrl: i,
|
|
@@ -2682,7 +2700,7 @@ function st(e) {
|
|
|
2682
2700
|
}
|
|
2683
2701
|
//#endregion
|
|
2684
2702
|
//#region src/plugins/custom/emojiPlugin.ts
|
|
2685
|
-
function
|
|
2703
|
+
function lt(e) {
|
|
2686
2704
|
let { priority: t = 10, customEmojis: n = {} } = e || {}, r = {
|
|
2687
2705
|
":smile:": "😊",
|
|
2688
2706
|
":heart:": "❤️",
|
|
@@ -2712,7 +2730,7 @@ function ct(e) {
|
|
|
2712
2730
|
}
|
|
2713
2731
|
//#endregion
|
|
2714
2732
|
//#region node_modules/.pnpm/mermaid@11.12.0/node_modules/mermaid/dist/chunks/mermaid.core/chunk-KS23V3DP.mjs
|
|
2715
|
-
var
|
|
2733
|
+
var ut = {
|
|
2716
2734
|
name: "mermaid",
|
|
2717
2735
|
version: "11.12.0",
|
|
2718
2736
|
description: "Markdown-ish syntax for generating flowcharts, mindmaps, sequence diagrams, class diagrams, gantt charts, git graphs and more.",
|
|
@@ -2845,84 +2863,84 @@ var lt = {
|
|
|
2845
2863
|
},
|
|
2846
2864
|
files: ["dist/", "README.md"],
|
|
2847
2865
|
publishConfig: { access: "public" }
|
|
2848
|
-
},
|
|
2866
|
+
}, dt = /* @__PURE__ */ a((e) => {
|
|
2849
2867
|
let { securityLevel: t } = g(), n = o("body");
|
|
2850
2868
|
return t === "sandbox" && (n = o((o(`#i${e}`).node()?.contentDocument ?? document).body)), n.select(`#${e}`);
|
|
2851
2869
|
}, "selectSvgElement");
|
|
2852
2870
|
//#endregion
|
|
2853
2871
|
//#region node_modules/.pnpm/mermaid@11.12.0/node_modules/mermaid/dist/chunks/mermaid.core/chunk-MI3HLSF2.mjs
|
|
2854
|
-
function
|
|
2872
|
+
function ft(e) {
|
|
2855
2873
|
return e == null;
|
|
2856
2874
|
}
|
|
2857
|
-
a(
|
|
2858
|
-
function
|
|
2875
|
+
a(ft, "isNothing");
|
|
2876
|
+
function pt(e) {
|
|
2859
2877
|
return typeof e == "object" && !!e;
|
|
2860
2878
|
}
|
|
2861
|
-
a(
|
|
2862
|
-
function
|
|
2863
|
-
return Array.isArray(e) ? e :
|
|
2879
|
+
a(pt, "isObject");
|
|
2880
|
+
function mt(e) {
|
|
2881
|
+
return Array.isArray(e) ? e : ft(e) ? [] : [e];
|
|
2864
2882
|
}
|
|
2865
|
-
a(
|
|
2866
|
-
function
|
|
2883
|
+
a(mt, "toArray");
|
|
2884
|
+
function ht(e, t) {
|
|
2867
2885
|
var n, r, i, a;
|
|
2868
2886
|
if (t) for (a = Object.keys(t), n = 0, r = a.length; n < r; n += 1) i = a[n], e[i] = t[i];
|
|
2869
2887
|
return e;
|
|
2870
2888
|
}
|
|
2871
|
-
a(
|
|
2872
|
-
function
|
|
2889
|
+
a(ht, "extend");
|
|
2890
|
+
function gt(e, t) {
|
|
2873
2891
|
var n = "", r;
|
|
2874
2892
|
for (r = 0; r < t; r += 1) n += e;
|
|
2875
2893
|
return n;
|
|
2876
2894
|
}
|
|
2877
|
-
a(
|
|
2878
|
-
function
|
|
2895
|
+
a(gt, "repeat");
|
|
2896
|
+
function _t(e) {
|
|
2879
2897
|
return e === 0 && 1 / e == -Infinity;
|
|
2880
2898
|
}
|
|
2881
|
-
a(
|
|
2899
|
+
a(_t, "isNegativeZero");
|
|
2882
2900
|
var B = {
|
|
2883
|
-
isNothing:
|
|
2884
|
-
isObject:
|
|
2885
|
-
toArray:
|
|
2886
|
-
repeat:
|
|
2887
|
-
isNegativeZero:
|
|
2888
|
-
extend:
|
|
2901
|
+
isNothing: ft,
|
|
2902
|
+
isObject: pt,
|
|
2903
|
+
toArray: mt,
|
|
2904
|
+
repeat: gt,
|
|
2905
|
+
isNegativeZero: _t,
|
|
2906
|
+
extend: ht
|
|
2889
2907
|
};
|
|
2890
|
-
function
|
|
2908
|
+
function vt(e, t) {
|
|
2891
2909
|
var n = "", r = e.reason || "(unknown reason)";
|
|
2892
2910
|
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;
|
|
2893
2911
|
}
|
|
2894
|
-
a(
|
|
2895
|
-
function
|
|
2896
|
-
Error.call(this), this.name = "YAMLException", this.reason = e, this.mark = t, this.message =
|
|
2912
|
+
a(vt, "formatError");
|
|
2913
|
+
function yt(e, t) {
|
|
2914
|
+
Error.call(this), this.name = "YAMLException", this.reason = e, this.mark = t, this.message = vt(this, !1), Error.captureStackTrace ? Error.captureStackTrace(this, this.constructor) : this.stack = (/* @__PURE__ */ Error()).stack || "";
|
|
2897
2915
|
}
|
|
2898
|
-
a(
|
|
2899
|
-
return this.name + ": " +
|
|
2916
|
+
a(yt, "YAMLException$1"), yt.prototype = Object.create(Error.prototype), yt.prototype.constructor = yt, yt.prototype.toString = /* @__PURE__ */ a(function(e) {
|
|
2917
|
+
return this.name + ": " + vt(this, e);
|
|
2900
2918
|
}, "toString");
|
|
2901
|
-
var V =
|
|
2902
|
-
function
|
|
2919
|
+
var V = yt;
|
|
2920
|
+
function bt(e, t, n, r, i) {
|
|
2903
2921
|
var a = "", o = "", s = Math.floor(i / 2) - 1;
|
|
2904
2922
|
return r - t > s && (a = " ... ", t = r - s + a.length), n - r > s && (o = " ...", n = r + s - o.length), {
|
|
2905
2923
|
str: a + e.slice(t, n).replace(/\t/g, "→") + o,
|
|
2906
2924
|
pos: r - t + a.length
|
|
2907
2925
|
};
|
|
2908
2926
|
}
|
|
2909
|
-
a(
|
|
2910
|
-
function
|
|
2927
|
+
a(bt, "getLine");
|
|
2928
|
+
function xt(e, t) {
|
|
2911
2929
|
return B.repeat(" ", t - e.length) + e;
|
|
2912
2930
|
}
|
|
2913
|
-
a(
|
|
2914
|
-
function
|
|
2931
|
+
a(xt, "padStart");
|
|
2932
|
+
function St(e, t) {
|
|
2915
2933
|
if (t = Object.create(t || null), !e.buffer) return null;
|
|
2916
2934
|
t.maxLength ||= 79, typeof t.indent != "number" && (t.indent = 1), typeof t.linesBefore != "number" && (t.linesBefore = 3), typeof t.linesAfter != "number" && (t.linesAfter = 2);
|
|
2917
2935
|
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);
|
|
2918
2936
|
o < 0 && (o = r.length - 1);
|
|
2919
2937
|
var s = "", c, l, u = Math.min(e.line + t.linesAfter, i.length).toString().length, d = t.maxLength - (t.indent + u + 3);
|
|
2920
|
-
for (c = 1; c <= t.linesBefore && !(o - c < 0); c++) l =
|
|
2921
|
-
for (l =
|
|
2938
|
+
for (c = 1; c <= t.linesBefore && !(o - c < 0); c++) l = bt(e.buffer, r[o - c], i[o - c], e.position - (r[o] - r[o - c]), d), s = B.repeat(" ", t.indent) + xt((e.line - c + 1).toString(), u) + " | " + l.str + "\n" + s;
|
|
2939
|
+
for (l = bt(e.buffer, r[o], i[o], e.position, d), s += B.repeat(" ", t.indent) + xt((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 = bt(e.buffer, r[o + c], i[o + c], e.position - (r[o] - r[o + c]), d), s += B.repeat(" ", t.indent) + xt((e.line + c + 1).toString(), u) + " | " + l.str + "\n";
|
|
2922
2940
|
return s.replace(/\n$/, "");
|
|
2923
2941
|
}
|
|
2924
|
-
a(
|
|
2925
|
-
var
|
|
2942
|
+
a(St, "makeSnippet");
|
|
2943
|
+
var Ct = St, wt = [
|
|
2926
2944
|
"kind",
|
|
2927
2945
|
"multi",
|
|
2928
2946
|
"resolve",
|
|
@@ -2933,12 +2951,12 @@ var St = xt, Ct = [
|
|
|
2933
2951
|
"representName",
|
|
2934
2952
|
"defaultStyle",
|
|
2935
2953
|
"styleAliases"
|
|
2936
|
-
],
|
|
2954
|
+
], Tt = [
|
|
2937
2955
|
"scalar",
|
|
2938
2956
|
"sequence",
|
|
2939
2957
|
"mapping"
|
|
2940
2958
|
];
|
|
2941
|
-
function
|
|
2959
|
+
function Et(e) {
|
|
2942
2960
|
var t = {};
|
|
2943
2961
|
return e !== null && Object.keys(e).forEach(function(n) {
|
|
2944
2962
|
e[n].forEach(function(e) {
|
|
@@ -2946,19 +2964,19 @@ function Tt(e) {
|
|
|
2946
2964
|
});
|
|
2947
2965
|
}), t;
|
|
2948
2966
|
}
|
|
2949
|
-
a(
|
|
2950
|
-
function
|
|
2967
|
+
a(Et, "compileStyleAliases");
|
|
2968
|
+
function Dt(e, t) {
|
|
2951
2969
|
if (t ||= {}, Object.keys(t).forEach(function(t) {
|
|
2952
|
-
if (
|
|
2970
|
+
if (wt.indexOf(t) === -1) throw new V("Unknown option \"" + t + "\" is met in definition of \"" + e + "\" YAML type.");
|
|
2953
2971
|
}), this.options = t, this.tag = e, this.kind = t.kind || null, this.resolve = t.resolve || function() {
|
|
2954
2972
|
return !0;
|
|
2955
2973
|
}, this.construct = t.construct || function(e) {
|
|
2956
2974
|
return e;
|
|
2957
|
-
}, 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 =
|
|
2975
|
+
}, 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 = Et(t.styleAliases || null), Tt.indexOf(this.kind) === -1) throw new V("Unknown kind \"" + this.kind + "\" is specified for \"" + e + "\" YAML type.");
|
|
2958
2976
|
}
|
|
2959
|
-
a(
|
|
2960
|
-
var H =
|
|
2961
|
-
function
|
|
2977
|
+
a(Dt, "Type$1");
|
|
2978
|
+
var H = Dt;
|
|
2979
|
+
function Ot(e, t) {
|
|
2962
2980
|
var n = [];
|
|
2963
2981
|
return e[t].forEach(function(e) {
|
|
2964
2982
|
var t = n.length;
|
|
@@ -2967,8 +2985,8 @@ function Dt(e, t) {
|
|
|
2967
2985
|
}), n[t] = e;
|
|
2968
2986
|
}), n;
|
|
2969
2987
|
}
|
|
2970
|
-
a(
|
|
2971
|
-
function
|
|
2988
|
+
a(Ot, "compileList");
|
|
2989
|
+
function kt() {
|
|
2972
2990
|
var e = {
|
|
2973
2991
|
scalar: {},
|
|
2974
2992
|
sequence: {},
|
|
@@ -2987,11 +3005,11 @@ function Ot() {
|
|
|
2987
3005
|
for (a(r, "collectType"), t = 0, n = arguments.length; t < n; t += 1) arguments[t].forEach(r);
|
|
2988
3006
|
return e;
|
|
2989
3007
|
}
|
|
2990
|
-
a(
|
|
2991
|
-
function
|
|
3008
|
+
a(kt, "compileMap");
|
|
3009
|
+
function At(e) {
|
|
2992
3010
|
return this.extend(e);
|
|
2993
3011
|
}
|
|
2994
|
-
a(
|
|
3012
|
+
a(At, "Schema$1"), At.prototype.extend = /* @__PURE__ */ a(function(e) {
|
|
2995
3013
|
var t = [], n = [];
|
|
2996
3014
|
if (e instanceof H) n.push(e);
|
|
2997
3015
|
else if (Array.isArray(e)) n = n.concat(e);
|
|
@@ -3004,10 +3022,10 @@ a(kt, "Schema$1"), kt.prototype.extend = /* @__PURE__ */ a(function(e) {
|
|
|
3004
3022
|
}), n.forEach(function(e) {
|
|
3005
3023
|
if (!(e instanceof H)) throw new V("Specified list of YAML types (or a single Type object) contains a non-Type object.");
|
|
3006
3024
|
});
|
|
3007
|
-
var r = Object.create(
|
|
3008
|
-
return r.implicit = (this.implicit || []).concat(t), r.explicit = (this.explicit || []).concat(n), r.compiledImplicit =
|
|
3025
|
+
var r = Object.create(At.prototype);
|
|
3026
|
+
return r.implicit = (this.implicit || []).concat(t), r.explicit = (this.explicit || []).concat(n), r.compiledImplicit = Ot(r, "implicit"), r.compiledExplicit = Ot(r, "explicit"), r.compiledTypeMap = kt(r.compiledImplicit, r.compiledExplicit), r;
|
|
3009
3027
|
}, "extend");
|
|
3010
|
-
var
|
|
3028
|
+
var jt = new At({ explicit: [
|
|
3011
3029
|
new H("tag:yaml.org,2002:str", {
|
|
3012
3030
|
kind: "scalar",
|
|
3013
3031
|
construct: /* @__PURE__ */ a(function(e) {
|
|
@@ -3027,25 +3045,25 @@ var At = new kt({ explicit: [
|
|
|
3027
3045
|
}, "construct")
|
|
3028
3046
|
})
|
|
3029
3047
|
] });
|
|
3030
|
-
function
|
|
3048
|
+
function Mt(e) {
|
|
3031
3049
|
if (e === null) return !0;
|
|
3032
3050
|
var t = e.length;
|
|
3033
3051
|
return t === 1 && e === "~" || t === 4 && (e === "null" || e === "Null" || e === "NULL");
|
|
3034
3052
|
}
|
|
3035
|
-
a(
|
|
3036
|
-
function
|
|
3053
|
+
a(Mt, "resolveYamlNull");
|
|
3054
|
+
function Nt() {
|
|
3037
3055
|
return null;
|
|
3038
3056
|
}
|
|
3039
|
-
a(
|
|
3040
|
-
function
|
|
3057
|
+
a(Nt, "constructYamlNull");
|
|
3058
|
+
function Pt(e) {
|
|
3041
3059
|
return e === null;
|
|
3042
3060
|
}
|
|
3043
|
-
a(
|
|
3044
|
-
var
|
|
3061
|
+
a(Pt, "isNull");
|
|
3062
|
+
var Ft = new H("tag:yaml.org,2002:null", {
|
|
3045
3063
|
kind: "scalar",
|
|
3046
|
-
resolve:
|
|
3047
|
-
construct:
|
|
3048
|
-
predicate:
|
|
3064
|
+
resolve: Mt,
|
|
3065
|
+
construct: Nt,
|
|
3066
|
+
predicate: Pt,
|
|
3049
3067
|
represent: {
|
|
3050
3068
|
canonical: /* @__PURE__ */ a(function() {
|
|
3051
3069
|
return "~";
|
|
@@ -3065,25 +3083,25 @@ var Pt = new H("tag:yaml.org,2002:null", {
|
|
|
3065
3083
|
},
|
|
3066
3084
|
defaultStyle: "lowercase"
|
|
3067
3085
|
});
|
|
3068
|
-
function
|
|
3086
|
+
function It(e) {
|
|
3069
3087
|
if (e === null) return !1;
|
|
3070
3088
|
var t = e.length;
|
|
3071
3089
|
return t === 4 && (e === "true" || e === "True" || e === "TRUE") || t === 5 && (e === "false" || e === "False" || e === "FALSE");
|
|
3072
3090
|
}
|
|
3073
|
-
a(
|
|
3074
|
-
function
|
|
3091
|
+
a(It, "resolveYamlBoolean");
|
|
3092
|
+
function Lt(e) {
|
|
3075
3093
|
return e === "true" || e === "True" || e === "TRUE";
|
|
3076
3094
|
}
|
|
3077
|
-
a(
|
|
3078
|
-
function
|
|
3095
|
+
a(Lt, "constructYamlBoolean");
|
|
3096
|
+
function Rt(e) {
|
|
3079
3097
|
return Object.prototype.toString.call(e) === "[object Boolean]";
|
|
3080
3098
|
}
|
|
3081
|
-
a(
|
|
3082
|
-
var
|
|
3099
|
+
a(Rt, "isBoolean");
|
|
3100
|
+
var zt = new H("tag:yaml.org,2002:bool", {
|
|
3083
3101
|
kind: "scalar",
|
|
3084
|
-
resolve:
|
|
3085
|
-
construct:
|
|
3086
|
-
predicate:
|
|
3102
|
+
resolve: It,
|
|
3103
|
+
construct: Lt,
|
|
3104
|
+
predicate: Rt,
|
|
3087
3105
|
represent: {
|
|
3088
3106
|
lowercase: /* @__PURE__ */ a(function(e) {
|
|
3089
3107
|
return e ? "true" : "false";
|
|
@@ -3097,19 +3115,19 @@ var Rt = new H("tag:yaml.org,2002:bool", {
|
|
|
3097
3115
|
},
|
|
3098
3116
|
defaultStyle: "lowercase"
|
|
3099
3117
|
});
|
|
3100
|
-
function
|
|
3118
|
+
function Bt(e) {
|
|
3101
3119
|
return 48 <= e && e <= 57 || 65 <= e && e <= 70 || 97 <= e && e <= 102;
|
|
3102
3120
|
}
|
|
3103
|
-
a(
|
|
3104
|
-
function
|
|
3121
|
+
a(Bt, "isHexCode");
|
|
3122
|
+
function Vt(e) {
|
|
3105
3123
|
return 48 <= e && e <= 55;
|
|
3106
3124
|
}
|
|
3107
|
-
a(
|
|
3108
|
-
function
|
|
3125
|
+
a(Vt, "isOctCode");
|
|
3126
|
+
function Ht(e) {
|
|
3109
3127
|
return 48 <= e && e <= 57;
|
|
3110
3128
|
}
|
|
3111
|
-
a(
|
|
3112
|
-
function
|
|
3129
|
+
a(Ht, "isDecCode");
|
|
3130
|
+
function Ut(e) {
|
|
3113
3131
|
if (e === null) return !1;
|
|
3114
3132
|
var t = e.length, n = 0, r = !1, i;
|
|
3115
3133
|
if (!t) return !1;
|
|
@@ -3124,14 +3142,14 @@ function Ht(e) {
|
|
|
3124
3142
|
}
|
|
3125
3143
|
if (i === "x") {
|
|
3126
3144
|
for (n++; n < t; n++) if (i = e[n], i !== "_") {
|
|
3127
|
-
if (!
|
|
3145
|
+
if (!Bt(e.charCodeAt(n))) return !1;
|
|
3128
3146
|
r = !0;
|
|
3129
3147
|
}
|
|
3130
3148
|
return r && i !== "_";
|
|
3131
3149
|
}
|
|
3132
3150
|
if (i === "o") {
|
|
3133
3151
|
for (n++; n < t; n++) if (i = e[n], i !== "_") {
|
|
3134
|
-
if (!
|
|
3152
|
+
if (!Vt(e.charCodeAt(n))) return !1;
|
|
3135
3153
|
r = !0;
|
|
3136
3154
|
}
|
|
3137
3155
|
return r && i !== "_";
|
|
@@ -3139,13 +3157,13 @@ function Ht(e) {
|
|
|
3139
3157
|
}
|
|
3140
3158
|
if (i === "_") return !1;
|
|
3141
3159
|
for (; n < t; n++) if (i = e[n], i !== "_") {
|
|
3142
|
-
if (!
|
|
3160
|
+
if (!Ht(e.charCodeAt(n))) return !1;
|
|
3143
3161
|
r = !0;
|
|
3144
3162
|
}
|
|
3145
3163
|
return !(!r || i === "_");
|
|
3146
3164
|
}
|
|
3147
|
-
a(
|
|
3148
|
-
function
|
|
3165
|
+
a(Ut, "resolveYamlInteger");
|
|
3166
|
+
function Wt(e) {
|
|
3149
3167
|
var t = e, n = 1, r;
|
|
3150
3168
|
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;
|
|
3151
3169
|
if (r === "0") {
|
|
@@ -3155,16 +3173,16 @@ function Ut(e) {
|
|
|
3155
3173
|
}
|
|
3156
3174
|
return n * parseInt(t, 10);
|
|
3157
3175
|
}
|
|
3158
|
-
a(
|
|
3159
|
-
function
|
|
3176
|
+
a(Wt, "constructYamlInteger");
|
|
3177
|
+
function Gt(e) {
|
|
3160
3178
|
return Object.prototype.toString.call(e) === "[object Number]" && e % 1 == 0 && !B.isNegativeZero(e);
|
|
3161
3179
|
}
|
|
3162
|
-
a(
|
|
3163
|
-
var
|
|
3180
|
+
a(Gt, "isInteger");
|
|
3181
|
+
var Kt = new H("tag:yaml.org,2002:int", {
|
|
3164
3182
|
kind: "scalar",
|
|
3165
|
-
resolve:
|
|
3166
|
-
construct:
|
|
3167
|
-
predicate:
|
|
3183
|
+
resolve: Ut,
|
|
3184
|
+
construct: Wt,
|
|
3185
|
+
predicate: Gt,
|
|
3168
3186
|
represent: {
|
|
3169
3187
|
binary: /* @__PURE__ */ a(function(e) {
|
|
3170
3188
|
return e >= 0 ? "0b" + e.toString(2) : "-0b" + e.toString(2).slice(1);
|
|
@@ -3186,18 +3204,18 @@ var Gt = new H("tag:yaml.org,2002:int", {
|
|
|
3186
3204
|
decimal: [10, "dec"],
|
|
3187
3205
|
hexadecimal: [16, "hex"]
|
|
3188
3206
|
}
|
|
3189
|
-
}),
|
|
3190
|
-
function qt(e) {
|
|
3191
|
-
return !(e === null || !Kt.test(e) || e[e.length - 1] === "_");
|
|
3192
|
-
}
|
|
3193
|
-
a(qt, "resolveYamlFloat");
|
|
3207
|
+
}), qt = /* @__PURE__ */ RegExp("^(?:[-+]?(?:[0-9][0-9_]*)(?:\\.[0-9_]*)?(?:[eE][-+]?[0-9]+)?|\\.[0-9_]+(?:[eE][-+]?[0-9]+)?|[-+]?\\.(?:inf|Inf|INF)|\\.(?:nan|NaN|NAN))$");
|
|
3194
3208
|
function Jt(e) {
|
|
3209
|
+
return !(e === null || !qt.test(e) || e[e.length - 1] === "_");
|
|
3210
|
+
}
|
|
3211
|
+
a(Jt, "resolveYamlFloat");
|
|
3212
|
+
function Yt(e) {
|
|
3195
3213
|
var t = e.replace(/_/g, "").toLowerCase(), n = t[0] === "-" ? -1 : 1;
|
|
3196
3214
|
return "+-".indexOf(t[0]) >= 0 && (t = t.slice(1)), t === ".inf" ? n === 1 ? Infinity : -Infinity : t === ".nan" ? NaN : n * parseFloat(t, 10);
|
|
3197
3215
|
}
|
|
3198
|
-
a(
|
|
3199
|
-
var
|
|
3200
|
-
function
|
|
3216
|
+
a(Yt, "constructYamlFloat");
|
|
3217
|
+
var Xt = /^[-+]?[0-9]+e/;
|
|
3218
|
+
function Zt(e, t) {
|
|
3201
3219
|
var n;
|
|
3202
3220
|
if (isNaN(e)) switch (t) {
|
|
3203
3221
|
case "lowercase": return ".nan";
|
|
@@ -3215,33 +3233,33 @@ function Xt(e, t) {
|
|
|
3215
3233
|
case "camelcase": return "-.Inf";
|
|
3216
3234
|
}
|
|
3217
3235
|
else if (B.isNegativeZero(e)) return "-0.0";
|
|
3218
|
-
return n = e.toString(10),
|
|
3236
|
+
return n = e.toString(10), Xt.test(n) ? n.replace("e", ".e") : n;
|
|
3219
3237
|
}
|
|
3220
|
-
a(
|
|
3221
|
-
function
|
|
3238
|
+
a(Zt, "representYamlFloat");
|
|
3239
|
+
function Qt(e) {
|
|
3222
3240
|
return Object.prototype.toString.call(e) === "[object Number]" && (e % 1 != 0 || B.isNegativeZero(e));
|
|
3223
3241
|
}
|
|
3224
|
-
a(
|
|
3225
|
-
var
|
|
3242
|
+
a(Qt, "isFloat");
|
|
3243
|
+
var $t = new H("tag:yaml.org,2002:float", {
|
|
3226
3244
|
kind: "scalar",
|
|
3227
|
-
resolve:
|
|
3228
|
-
construct:
|
|
3229
|
-
predicate:
|
|
3230
|
-
represent:
|
|
3245
|
+
resolve: Jt,
|
|
3246
|
+
construct: Yt,
|
|
3247
|
+
predicate: Qt,
|
|
3248
|
+
represent: Zt,
|
|
3231
3249
|
defaultStyle: "lowercase"
|
|
3232
|
-
}),
|
|
3233
|
-
|
|
3234
|
-
|
|
3235
|
-
|
|
3236
|
-
|
|
3237
|
-
] }),
|
|
3238
|
-
function rn(e) {
|
|
3239
|
-
return e === null ? !1 : tn.exec(e) !== null || nn.exec(e) !== null;
|
|
3240
|
-
}
|
|
3241
|
-
a(rn, "resolveYamlTimestamp");
|
|
3250
|
+
}), en = jt.extend({ implicit: [
|
|
3251
|
+
Ft,
|
|
3252
|
+
zt,
|
|
3253
|
+
Kt,
|
|
3254
|
+
$t
|
|
3255
|
+
] }), tn = en, nn = /* @__PURE__ */ RegExp("^([0-9][0-9][0-9][0-9])-([0-9][0-9])-([0-9][0-9])$"), rn = /* @__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]))?))?$");
|
|
3242
3256
|
function an(e) {
|
|
3257
|
+
return e === null ? !1 : nn.exec(e) !== null || rn.exec(e) !== null;
|
|
3258
|
+
}
|
|
3259
|
+
a(an, "resolveYamlTimestamp");
|
|
3260
|
+
function on(e) {
|
|
3243
3261
|
var t, n, r, i, a, o, s, c = 0, l = null, u, d, f;
|
|
3244
|
-
if (t =
|
|
3262
|
+
if (t = nn.exec(e), t === null && (t = rn.exec(e)), t === null) throw Error("Date resolve error");
|
|
3245
3263
|
if (n = +t[1], r = t[2] - 1, i = +t[3], !t[4]) return new Date(Date.UTC(n, r, i));
|
|
3246
3264
|
if (a = +t[4], o = +t[5], s = +t[6], t[7]) {
|
|
3247
3265
|
for (c = t[7].slice(0, 3); c.length < 3;) c += "0";
|
|
@@ -3249,65 +3267,65 @@ function an(e) {
|
|
|
3249
3267
|
}
|
|
3250
3268
|
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;
|
|
3251
3269
|
}
|
|
3252
|
-
a(
|
|
3253
|
-
function
|
|
3270
|
+
a(on, "constructYamlTimestamp");
|
|
3271
|
+
function sn(e) {
|
|
3254
3272
|
return e.toISOString();
|
|
3255
3273
|
}
|
|
3256
|
-
a(
|
|
3257
|
-
var
|
|
3274
|
+
a(sn, "representYamlTimestamp");
|
|
3275
|
+
var cn = new H("tag:yaml.org,2002:timestamp", {
|
|
3258
3276
|
kind: "scalar",
|
|
3259
|
-
resolve:
|
|
3260
|
-
construct:
|
|
3277
|
+
resolve: an,
|
|
3278
|
+
construct: on,
|
|
3261
3279
|
instanceOf: Date,
|
|
3262
|
-
represent:
|
|
3280
|
+
represent: sn
|
|
3263
3281
|
});
|
|
3264
|
-
function
|
|
3282
|
+
function ln(e) {
|
|
3265
3283
|
return e === "<<" || e === null;
|
|
3266
3284
|
}
|
|
3267
|
-
a(
|
|
3268
|
-
var
|
|
3285
|
+
a(ln, "resolveYamlMerge");
|
|
3286
|
+
var un = new H("tag:yaml.org,2002:merge", {
|
|
3269
3287
|
kind: "scalar",
|
|
3270
|
-
resolve:
|
|
3271
|
-
}),
|
|
3272
|
-
function
|
|
3288
|
+
resolve: ln
|
|
3289
|
+
}), dn = "ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/=\n\r";
|
|
3290
|
+
function fn(e) {
|
|
3273
3291
|
if (e === null) return !1;
|
|
3274
|
-
var t, n, r = 0, i = e.length, a =
|
|
3292
|
+
var t, n, r = 0, i = e.length, a = dn;
|
|
3275
3293
|
for (n = 0; n < i; n++) if (t = a.indexOf(e.charAt(n)), !(t > 64)) {
|
|
3276
3294
|
if (t < 0) return !1;
|
|
3277
3295
|
r += 6;
|
|
3278
3296
|
}
|
|
3279
3297
|
return r % 8 == 0;
|
|
3280
3298
|
}
|
|
3281
|
-
a(
|
|
3282
|
-
function
|
|
3283
|
-
var t, n, r = e.replace(/[\r\n=]/g, ""), i = r.length, a =
|
|
3299
|
+
a(fn, "resolveYamlBinary");
|
|
3300
|
+
function pn(e) {
|
|
3301
|
+
var t, n, r = e.replace(/[\r\n=]/g, ""), i = r.length, a = dn, o = 0, s = [];
|
|
3284
3302
|
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));
|
|
3285
3303
|
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);
|
|
3286
3304
|
}
|
|
3287
|
-
a(
|
|
3288
|
-
function
|
|
3289
|
-
var t = "", n = 0, r, i, a = e.length, o =
|
|
3305
|
+
a(pn, "constructYamlBinary");
|
|
3306
|
+
function mn(e) {
|
|
3307
|
+
var t = "", n = 0, r, i, a = e.length, o = dn;
|
|
3290
3308
|
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];
|
|
3291
3309
|
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;
|
|
3292
3310
|
}
|
|
3293
|
-
a(
|
|
3294
|
-
function
|
|
3311
|
+
a(mn, "representYamlBinary");
|
|
3312
|
+
function hn(e) {
|
|
3295
3313
|
return Object.prototype.toString.call(e) === "[object Uint8Array]";
|
|
3296
3314
|
}
|
|
3297
|
-
a(
|
|
3298
|
-
var
|
|
3315
|
+
a(hn, "isBinary");
|
|
3316
|
+
var gn = new H("tag:yaml.org,2002:binary", {
|
|
3299
3317
|
kind: "scalar",
|
|
3300
|
-
resolve:
|
|
3301
|
-
construct:
|
|
3302
|
-
predicate:
|
|
3303
|
-
represent:
|
|
3304
|
-
}),
|
|
3305
|
-
function
|
|
3318
|
+
resolve: fn,
|
|
3319
|
+
construct: pn,
|
|
3320
|
+
predicate: hn,
|
|
3321
|
+
represent: mn
|
|
3322
|
+
}), _n = Object.prototype.hasOwnProperty, vn = Object.prototype.toString;
|
|
3323
|
+
function yn(e) {
|
|
3306
3324
|
if (e === null) return !0;
|
|
3307
3325
|
var t = [], n, r, i, a, o, s = e;
|
|
3308
3326
|
for (n = 0, r = s.length; n < r; n += 1) {
|
|
3309
|
-
if (i = s[n], o = !1,
|
|
3310
|
-
for (a in i) if (
|
|
3327
|
+
if (i = s[n], o = !1, vn.call(i) !== "[object Object]") return !1;
|
|
3328
|
+
for (a in i) if (_n.call(i, a)) if (!o) o = !0;
|
|
3311
3329
|
else return !1;
|
|
3312
3330
|
if (!o) return !1;
|
|
3313
3331
|
if (t.indexOf(a) === -1) t.push(a);
|
|
@@ -3315,111 +3333,111 @@ function vn(e) {
|
|
|
3315
3333
|
}
|
|
3316
3334
|
return !0;
|
|
3317
3335
|
}
|
|
3318
|
-
a(
|
|
3319
|
-
function
|
|
3336
|
+
a(yn, "resolveYamlOmap");
|
|
3337
|
+
function bn(e) {
|
|
3320
3338
|
return e === null ? [] : e;
|
|
3321
3339
|
}
|
|
3322
|
-
a(
|
|
3323
|
-
var
|
|
3340
|
+
a(bn, "constructYamlOmap");
|
|
3341
|
+
var xn = new H("tag:yaml.org,2002:omap", {
|
|
3324
3342
|
kind: "sequence",
|
|
3325
|
-
resolve:
|
|
3326
|
-
construct:
|
|
3327
|
-
}),
|
|
3328
|
-
function
|
|
3343
|
+
resolve: yn,
|
|
3344
|
+
construct: bn
|
|
3345
|
+
}), Sn = Object.prototype.toString;
|
|
3346
|
+
function Cn(e) {
|
|
3329
3347
|
if (e === null) return !0;
|
|
3330
3348
|
var t, n, r, i, a, o = e;
|
|
3331
3349
|
for (a = Array(o.length), t = 0, n = o.length; t < n; t += 1) {
|
|
3332
|
-
if (r = o[t],
|
|
3350
|
+
if (r = o[t], Sn.call(r) !== "[object Object]" || (i = Object.keys(r), i.length !== 1)) return !1;
|
|
3333
3351
|
a[t] = [i[0], r[i[0]]];
|
|
3334
3352
|
}
|
|
3335
3353
|
return !0;
|
|
3336
3354
|
}
|
|
3337
|
-
a(
|
|
3338
|
-
function
|
|
3355
|
+
a(Cn, "resolveYamlPairs");
|
|
3356
|
+
function wn(e) {
|
|
3339
3357
|
if (e === null) return [];
|
|
3340
3358
|
var t, n, r, i, a, o = e;
|
|
3341
3359
|
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]]];
|
|
3342
3360
|
return a;
|
|
3343
3361
|
}
|
|
3344
|
-
a(
|
|
3345
|
-
var
|
|
3362
|
+
a(wn, "constructYamlPairs");
|
|
3363
|
+
var Tn = new H("tag:yaml.org,2002:pairs", {
|
|
3346
3364
|
kind: "sequence",
|
|
3347
|
-
resolve:
|
|
3348
|
-
construct:
|
|
3349
|
-
}),
|
|
3350
|
-
function
|
|
3365
|
+
resolve: Cn,
|
|
3366
|
+
construct: wn
|
|
3367
|
+
}), En = Object.prototype.hasOwnProperty;
|
|
3368
|
+
function Dn(e) {
|
|
3351
3369
|
if (e === null) return !0;
|
|
3352
3370
|
var t, n = e;
|
|
3353
|
-
for (t in n) if (
|
|
3371
|
+
for (t in n) if (En.call(n, t) && n[t] !== null) return !1;
|
|
3354
3372
|
return !0;
|
|
3355
3373
|
}
|
|
3356
|
-
a(
|
|
3357
|
-
function
|
|
3374
|
+
a(Dn, "resolveYamlSet");
|
|
3375
|
+
function On(e) {
|
|
3358
3376
|
return e === null ? {} : e;
|
|
3359
3377
|
}
|
|
3360
|
-
a(
|
|
3361
|
-
var
|
|
3378
|
+
a(On, "constructYamlSet");
|
|
3379
|
+
var kn = new H("tag:yaml.org,2002:set", {
|
|
3362
3380
|
kind: "mapping",
|
|
3363
|
-
resolve:
|
|
3364
|
-
construct:
|
|
3365
|
-
}),
|
|
3366
|
-
implicit: [
|
|
3381
|
+
resolve: Dn,
|
|
3382
|
+
construct: On
|
|
3383
|
+
}), An = tn.extend({
|
|
3384
|
+
implicit: [cn, un],
|
|
3367
3385
|
explicit: [
|
|
3368
|
-
|
|
3369
|
-
|
|
3370
|
-
|
|
3371
|
-
|
|
3386
|
+
gn,
|
|
3387
|
+
xn,
|
|
3388
|
+
Tn,
|
|
3389
|
+
kn
|
|
3372
3390
|
]
|
|
3373
|
-
}),
|
|
3374
|
-
function
|
|
3391
|
+
}), jn = Object.prototype.hasOwnProperty, Mn = 1, Nn = 2, Pn = 3, Fn = 4, In = 1, Ln = 2, Rn = 3, zn = /[\x00-\x08\x0B\x0C\x0E-\x1F\x7F-\x84\x86-\x9F\uFFFE\uFFFF]|[\uD800-\uDBFF](?![\uDC00-\uDFFF])|(?:[^\uD800-\uDBFF]|^)[\uDC00-\uDFFF]/, Bn = /[\x85\u2028\u2029]/, Vn = /[,\[\]\{\}]/, Hn = /^(?:!|!!|![a-z\-]+!)$/i, Un = /^(?:!|[^,\[\]\{\}])(?:%[0-9a-f]{2}|[0-9a-z\-#;\/\?:@&=\+\$,_\.!~\*'\(\)\[\]])*$/i;
|
|
3392
|
+
function Wn(e) {
|
|
3375
3393
|
return Object.prototype.toString.call(e);
|
|
3376
3394
|
}
|
|
3377
|
-
a(
|
|
3395
|
+
a(Wn, "_class");
|
|
3378
3396
|
function U(e) {
|
|
3379
3397
|
return e === 10 || e === 13;
|
|
3380
3398
|
}
|
|
3381
3399
|
a(U, "is_EOL");
|
|
3382
|
-
function
|
|
3400
|
+
function Gn(e) {
|
|
3383
3401
|
return e === 9 || e === 32;
|
|
3384
3402
|
}
|
|
3385
|
-
a(
|
|
3403
|
+
a(Gn, "is_WHITE_SPACE");
|
|
3386
3404
|
function W(e) {
|
|
3387
3405
|
return e === 9 || e === 32 || e === 10 || e === 13;
|
|
3388
3406
|
}
|
|
3389
3407
|
a(W, "is_WS_OR_EOL");
|
|
3390
|
-
function
|
|
3408
|
+
function Kn(e) {
|
|
3391
3409
|
return e === 44 || e === 91 || e === 93 || e === 123 || e === 125;
|
|
3392
3410
|
}
|
|
3393
|
-
a(
|
|
3394
|
-
function
|
|
3411
|
+
a(Kn, "is_FLOW_INDICATOR");
|
|
3412
|
+
function qn(e) {
|
|
3395
3413
|
var t;
|
|
3396
3414
|
return 48 <= e && e <= 57 ? e - 48 : (t = e | 32, 97 <= t && t <= 102 ? t - 97 + 10 : -1);
|
|
3397
3415
|
}
|
|
3398
|
-
a(
|
|
3399
|
-
function
|
|
3416
|
+
a(qn, "fromHexCode");
|
|
3417
|
+
function Jn(e) {
|
|
3400
3418
|
return e === 120 ? 2 : e === 117 ? 4 : e === 85 ? 8 : 0;
|
|
3401
3419
|
}
|
|
3402
|
-
a(
|
|
3403
|
-
function
|
|
3420
|
+
a(Jn, "escapedHexLen");
|
|
3421
|
+
function Yn(e) {
|
|
3404
3422
|
return 48 <= e && e <= 57 ? e - 48 : -1;
|
|
3405
3423
|
}
|
|
3406
|
-
a(
|
|
3407
|
-
function
|
|
3424
|
+
a(Yn, "fromDecimalCode");
|
|
3425
|
+
function Xn(e) {
|
|
3408
3426
|
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" : "";
|
|
3409
3427
|
}
|
|
3410
|
-
a(
|
|
3411
|
-
function
|
|
3428
|
+
a(Xn, "simpleEscapeSequence");
|
|
3429
|
+
function Zn(e) {
|
|
3412
3430
|
return e <= 65535 ? String.fromCharCode(e) : String.fromCharCode((e - 65536 >> 10) + 55296, (e - 65536 & 1023) + 56320);
|
|
3413
3431
|
}
|
|
3414
|
-
a(
|
|
3415
|
-
var
|
|
3416
|
-
for (
|
|
3417
|
-
var
|
|
3418
|
-
function er(e, t) {
|
|
3419
|
-
this.input = e, this.filename = t.filename || null, this.schema = t.schema || kn, 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 = [];
|
|
3420
|
-
}
|
|
3421
|
-
a(er, "State$1");
|
|
3432
|
+
a(Zn, "charFromCodepoint");
|
|
3433
|
+
var Qn = Array(256), $n = Array(256);
|
|
3434
|
+
for (er = 0; er < 256; er++) Qn[er] = +!!Xn(er), $n[er] = Xn(er);
|
|
3435
|
+
var er;
|
|
3422
3436
|
function tr(e, t) {
|
|
3437
|
+
this.input = e, this.filename = t.filename || null, this.schema = t.schema || An, 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 = [];
|
|
3438
|
+
}
|
|
3439
|
+
a(tr, "State$1");
|
|
3440
|
+
function nr(e, t) {
|
|
3423
3441
|
var n = {
|
|
3424
3442
|
name: e.filename,
|
|
3425
3443
|
buffer: e.input.slice(0, -1),
|
|
@@ -3427,25 +3445,25 @@ function tr(e, t) {
|
|
|
3427
3445
|
line: e.line,
|
|
3428
3446
|
column: e.position - e.lineStart
|
|
3429
3447
|
};
|
|
3430
|
-
return n.snippet =
|
|
3448
|
+
return n.snippet = Ct(n), new V(t, n);
|
|
3431
3449
|
}
|
|
3432
|
-
a(
|
|
3450
|
+
a(nr, "generateError");
|
|
3433
3451
|
function G(e, t) {
|
|
3434
|
-
throw
|
|
3452
|
+
throw nr(e, t);
|
|
3435
3453
|
}
|
|
3436
3454
|
a(G, "throwError");
|
|
3437
|
-
function
|
|
3438
|
-
e.onWarning && e.onWarning.call(null,
|
|
3455
|
+
function rr(e, t) {
|
|
3456
|
+
e.onWarning && e.onWarning.call(null, nr(e, t));
|
|
3439
3457
|
}
|
|
3440
|
-
a(
|
|
3441
|
-
var
|
|
3458
|
+
a(rr, "throwWarning");
|
|
3459
|
+
var ir = {
|
|
3442
3460
|
YAML: /* @__PURE__ */ a(function(e, t, n) {
|
|
3443
3461
|
var r, i, a;
|
|
3444
|
-
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 &&
|
|
3462
|
+
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 && rr(e, "unsupported YAML version of the document");
|
|
3445
3463
|
}, "handleYamlDirective"),
|
|
3446
3464
|
TAG: /* @__PURE__ */ a(function(e, t, n) {
|
|
3447
3465
|
var r, i;
|
|
3448
|
-
n.length !== 2 && G(e, "TAG directive accepts exactly two arguments"), r = n[0], i = n[1],
|
|
3466
|
+
n.length !== 2 && G(e, "TAG directive accepts exactly two arguments"), r = n[0], i = n[1], Hn.test(r) || G(e, "ill-formed tag handle (first argument) of the TAG directive"), jn.call(e.tagMap, r) && G(e, "there is a previously declared suffix for \"" + r + "\" tag handle"), Un.test(i) || G(e, "ill-formed tag prefix (second argument) of the TAG directive");
|
|
3449
3467
|
try {
|
|
3450
3468
|
i = decodeURIComponent(i);
|
|
3451
3469
|
} catch {
|
|
@@ -3458,22 +3476,22 @@ function K(e, t, n, r) {
|
|
|
3458
3476
|
var i, a, o, s;
|
|
3459
3477
|
if (t < n) {
|
|
3460
3478
|
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");
|
|
3461
|
-
else
|
|
3479
|
+
else zn.test(s) && G(e, "the stream contains non-printable characters");
|
|
3462
3480
|
e.result += s;
|
|
3463
3481
|
}
|
|
3464
3482
|
}
|
|
3465
3483
|
a(K, "captureSegment");
|
|
3466
|
-
function
|
|
3484
|
+
function ar(e, t, n, r) {
|
|
3467
3485
|
var i, a, o, s;
|
|
3468
|
-
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],
|
|
3486
|
+
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], jn.call(t, a) || (t[a] = n[a], r[a] = !0);
|
|
3469
3487
|
}
|
|
3470
|
-
a(
|
|
3471
|
-
function
|
|
3488
|
+
a(ar, "mergeMappings");
|
|
3489
|
+
function or(e, t, n, r, i, a, o, s, c) {
|
|
3472
3490
|
var l, u;
|
|
3473
|
-
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" &&
|
|
3474
|
-
if (typeof i == "object" &&
|
|
3475
|
-
else
|
|
3476
|
-
else !e.json && !
|
|
3491
|
+
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" && Wn(i[l]) === "[object Object]" && (i[l] = "[object Object]");
|
|
3492
|
+
if (typeof i == "object" && Wn(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) ar(e, t, a[l], n);
|
|
3493
|
+
else ar(e, t, a, n);
|
|
3494
|
+
else !e.json && !jn.call(n, i) && jn.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, {
|
|
3477
3495
|
configurable: !0,
|
|
3478
3496
|
enumerable: !0,
|
|
3479
3497
|
writable: !0,
|
|
@@ -3481,42 +3499,42 @@ function ar(e, t, n, r, i, a, o, s, c) {
|
|
|
3481
3499
|
}) : t[i] = a, delete n[i];
|
|
3482
3500
|
return t;
|
|
3483
3501
|
}
|
|
3484
|
-
a(
|
|
3485
|
-
function
|
|
3502
|
+
a(or, "storeMappingPair");
|
|
3503
|
+
function sr(e) {
|
|
3486
3504
|
var t = e.input.charCodeAt(e.position);
|
|
3487
3505
|
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;
|
|
3488
3506
|
}
|
|
3489
|
-
a(
|
|
3507
|
+
a(sr, "readLineBreak");
|
|
3490
3508
|
function q(e, t, n) {
|
|
3491
3509
|
for (var r = 0, i = e.input.charCodeAt(e.position); i !== 0;) {
|
|
3492
|
-
for (;
|
|
3510
|
+
for (; Gn(i);) i === 9 && e.firstTabInLine === -1 && (e.firstTabInLine = e.position), i = e.input.charCodeAt(++e.position);
|
|
3493
3511
|
if (t && i === 35) do
|
|
3494
3512
|
i = e.input.charCodeAt(++e.position);
|
|
3495
3513
|
while (i !== 10 && i !== 13 && i !== 0);
|
|
3496
|
-
if (U(i)) for (
|
|
3514
|
+
if (U(i)) for (sr(e), i = e.input.charCodeAt(e.position), r++, e.lineIndent = 0; i === 32;) e.lineIndent++, i = e.input.charCodeAt(++e.position);
|
|
3497
3515
|
else break;
|
|
3498
3516
|
}
|
|
3499
|
-
return n !== -1 && r !== 0 && e.lineIndent < n &&
|
|
3517
|
+
return n !== -1 && r !== 0 && e.lineIndent < n && rr(e, "deficient indentation"), r;
|
|
3500
3518
|
}
|
|
3501
3519
|
a(q, "skipSeparationSpace");
|
|
3502
|
-
function
|
|
3520
|
+
function cr(e) {
|
|
3503
3521
|
var t = e.position, n = e.input.charCodeAt(t);
|
|
3504
3522
|
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)));
|
|
3505
3523
|
}
|
|
3506
|
-
a(
|
|
3507
|
-
function
|
|
3524
|
+
a(cr, "testDocumentSeparator");
|
|
3525
|
+
function lr(e, t) {
|
|
3508
3526
|
t === 1 ? e.result += " " : t > 1 && (e.result += B.repeat("\n", t - 1));
|
|
3509
3527
|
}
|
|
3510
|
-
a(
|
|
3511
|
-
function
|
|
3528
|
+
a(lr, "writeFoldedLines");
|
|
3529
|
+
function ur(e, t, n) {
|
|
3512
3530
|
var r, i, a, o, s, c, l, u, d = e.kind, f = e.result, p = e.input.charCodeAt(e.position);
|
|
3513
|
-
if (W(p) ||
|
|
3531
|
+
if (W(p) || Kn(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 && Kn(i))) return !1;
|
|
3514
3532
|
for (e.kind = "scalar", e.result = "", a = o = e.position, s = !1; p !== 0;) {
|
|
3515
3533
|
if (p === 58) {
|
|
3516
|
-
if (i = e.input.charCodeAt(e.position + 1), W(i) || n &&
|
|
3534
|
+
if (i = e.input.charCodeAt(e.position + 1), W(i) || n && Kn(i)) break;
|
|
3517
3535
|
} else if (p === 35) {
|
|
3518
3536
|
if (r = e.input.charCodeAt(e.position - 1), W(r)) break;
|
|
3519
|
-
} else if (e.position === e.lineStart &&
|
|
3537
|
+
} else if (e.position === e.lineStart && cr(e) || n && Kn(p)) break;
|
|
3520
3538
|
else if (U(p)) if (c = e.line, l = e.lineStart, u = e.lineIndent, q(e, !1, -1), e.lineIndent >= t) {
|
|
3521
3539
|
s = !0, p = e.input.charCodeAt(e.position);
|
|
3522
3540
|
continue;
|
|
@@ -3524,81 +3542,81 @@ function lr(e, t, n) {
|
|
|
3524
3542
|
e.position = o, e.line = c, e.lineStart = l, e.lineIndent = u;
|
|
3525
3543
|
break;
|
|
3526
3544
|
}
|
|
3527
|
-
s &&= (K(e, a, o, !1),
|
|
3545
|
+
s &&= (K(e, a, o, !1), lr(e, e.line - c), a = o = e.position, !1), Gn(p) || (o = e.position + 1), p = e.input.charCodeAt(++e.position);
|
|
3528
3546
|
}
|
|
3529
3547
|
return K(e, a, o, !1), e.result ? !0 : (e.kind = d, e.result = f, !1);
|
|
3530
3548
|
}
|
|
3531
|
-
a(
|
|
3532
|
-
function
|
|
3549
|
+
a(ur, "readPlainScalar");
|
|
3550
|
+
function dr(e, t) {
|
|
3533
3551
|
var n = e.input.charCodeAt(e.position), r, i;
|
|
3534
3552
|
if (n !== 39) return !1;
|
|
3535
3553
|
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;
|
|
3536
3554
|
else return !0;
|
|
3537
|
-
else U(n) ? (K(e, r, i, !0),
|
|
3555
|
+
else U(n) ? (K(e, r, i, !0), lr(e, q(e, !1, t)), r = i = e.position) : e.position === e.lineStart && cr(e) ? G(e, "unexpected end of the document within a single quoted scalar") : (e.position++, i = e.position);
|
|
3538
3556
|
G(e, "unexpected end of the stream within a single quoted scalar");
|
|
3539
3557
|
}
|
|
3540
|
-
a(
|
|
3541
|
-
function
|
|
3558
|
+
a(dr, "readSingleQuotedScalar");
|
|
3559
|
+
function fr(e, t) {
|
|
3542
3560
|
var n, r, i, a, o, s = e.input.charCodeAt(e.position);
|
|
3543
3561
|
if (s !== 34) return !1;
|
|
3544
3562
|
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;
|
|
3545
3563
|
else if (s === 92) {
|
|
3546
3564
|
if (K(e, n, e.position, !0), s = e.input.charCodeAt(++e.position), U(s)) q(e, !1, t);
|
|
3547
|
-
else if (s < 256 &&
|
|
3548
|
-
else if ((o =
|
|
3549
|
-
for (i = o, a = 0; i > 0; i--) s = e.input.charCodeAt(++e.position), (o =
|
|
3550
|
-
e.result +=
|
|
3565
|
+
else if (s < 256 && Qn[s]) e.result += $n[s], e.position++;
|
|
3566
|
+
else if ((o = Jn(s)) > 0) {
|
|
3567
|
+
for (i = o, a = 0; i > 0; i--) s = e.input.charCodeAt(++e.position), (o = qn(s)) >= 0 ? a = (a << 4) + o : G(e, "expected hexadecimal character");
|
|
3568
|
+
e.result += Zn(a), e.position++;
|
|
3551
3569
|
} else G(e, "unknown escape sequence");
|
|
3552
3570
|
n = r = e.position;
|
|
3553
|
-
} else U(s) ? (K(e, n, r, !0),
|
|
3571
|
+
} else U(s) ? (K(e, n, r, !0), lr(e, q(e, !1, t)), n = r = e.position) : e.position === e.lineStart && cr(e) ? G(e, "unexpected end of the document within a double quoted scalar") : (e.position++, r = e.position);
|
|
3554
3572
|
G(e, "unexpected end of the stream within a double quoted scalar");
|
|
3555
3573
|
}
|
|
3556
|
-
a(
|
|
3557
|
-
function
|
|
3574
|
+
a(fr, "readDoubleQuotedScalar");
|
|
3575
|
+
function pr(e, t) {
|
|
3558
3576
|
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);
|
|
3559
3577
|
if (v === 91) u = 93, p = !1, s = [];
|
|
3560
3578
|
else if (v === 123) u = 125, p = !0, s = {};
|
|
3561
3579
|
else return !1;
|
|
3562
3580
|
for (e.anchor !== null && (e.anchorMap[e.anchor] = s), v = e.input.charCodeAt(++e.position); v !== 0;) {
|
|
3563
3581
|
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;
|
|
3564
|
-
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,
|
|
3582
|
+
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, br(e, t, Mn, !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), br(e, t, Mn, !1, !0), _ = e.result), p ? or(e, s, m, g, h, _, r, i, a) : d ? s.push(or(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;
|
|
3565
3583
|
}
|
|
3566
3584
|
G(e, "unexpected end of the stream within a flow collection");
|
|
3567
3585
|
}
|
|
3568
|
-
a(
|
|
3569
|
-
function
|
|
3570
|
-
var n, r, i =
|
|
3586
|
+
a(pr, "readFlowCollection");
|
|
3587
|
+
function mr(e, t) {
|
|
3588
|
+
var n, r, i = In, a = !1, o = !1, s = t, c = 0, l = !1, u, d = e.input.charCodeAt(e.position);
|
|
3571
3589
|
if (d === 124) r = !1;
|
|
3572
3590
|
else if (d === 62) r = !0;
|
|
3573
3591
|
else return !1;
|
|
3574
|
-
for (e.kind = "scalar", e.result = ""; d !== 0;) if (d = e.input.charCodeAt(++e.position), d === 43 || d === 45)
|
|
3575
|
-
else if ((u =
|
|
3592
|
+
for (e.kind = "scalar", e.result = ""; d !== 0;) if (d = e.input.charCodeAt(++e.position), d === 43 || d === 45) In === i ? i = d === 43 ? Rn : Ln : G(e, "repeat of a chomping mode identifier");
|
|
3593
|
+
else if ((u = Yn(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);
|
|
3576
3594
|
else break;
|
|
3577
|
-
if (
|
|
3595
|
+
if (Gn(d)) {
|
|
3578
3596
|
do
|
|
3579
3597
|
d = e.input.charCodeAt(++e.position);
|
|
3580
|
-
while (
|
|
3598
|
+
while (Gn(d));
|
|
3581
3599
|
if (d === 35) do
|
|
3582
3600
|
d = e.input.charCodeAt(++e.position);
|
|
3583
3601
|
while (!U(d) && d !== 0);
|
|
3584
3602
|
}
|
|
3585
3603
|
for (; d !== 0;) {
|
|
3586
|
-
for (
|
|
3604
|
+
for (sr(e), e.lineIndent = 0, d = e.input.charCodeAt(e.position); (!o || e.lineIndent < s) && d === 32;) e.lineIndent++, d = e.input.charCodeAt(++e.position);
|
|
3587
3605
|
if (!o && e.lineIndent > s && (s = e.lineIndent), U(d)) {
|
|
3588
3606
|
c++;
|
|
3589
3607
|
continue;
|
|
3590
3608
|
}
|
|
3591
3609
|
if (e.lineIndent < s) {
|
|
3592
|
-
i ===
|
|
3610
|
+
i === Rn ? e.result += B.repeat("\n", a ? 1 + c : c) : i === In && a && (e.result += "\n");
|
|
3593
3611
|
break;
|
|
3594
3612
|
}
|
|
3595
|
-
for (r ?
|
|
3613
|
+
for (r ? Gn(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);
|
|
3596
3614
|
K(e, n, e.position, !1);
|
|
3597
3615
|
}
|
|
3598
3616
|
return !0;
|
|
3599
3617
|
}
|
|
3600
|
-
a(
|
|
3601
|
-
function
|
|
3618
|
+
a(mr, "readBlockScalar");
|
|
3619
|
+
function hr(e, t) {
|
|
3602
3620
|
var n, r = e.tag, i = e.anchor, a = [], o, s = !1, c;
|
|
3603
3621
|
if (e.firstTabInLine !== -1) return !1;
|
|
3604
3622
|
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))));) {
|
|
@@ -3606,34 +3624,34 @@ function mr(e, t) {
|
|
|
3606
3624
|
a.push(null), c = e.input.charCodeAt(e.position);
|
|
3607
3625
|
continue;
|
|
3608
3626
|
}
|
|
3609
|
-
if (n = e.line,
|
|
3627
|
+
if (n = e.line, br(e, t, Pn, !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");
|
|
3610
3628
|
else if (e.lineIndent < t) break;
|
|
3611
3629
|
}
|
|
3612
3630
|
return s ? (e.tag = r, e.anchor = i, e.kind = "sequence", e.result = a, !0) : !1;
|
|
3613
3631
|
}
|
|
3614
|
-
a(
|
|
3615
|
-
function
|
|
3632
|
+
a(hr, "readBlockSequence");
|
|
3633
|
+
function gr(e, t, n) {
|
|
3616
3634
|
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;
|
|
3617
3635
|
if (e.firstTabInLine !== -1) return !1;
|
|
3618
3636
|
for (e.anchor !== null && (e.anchorMap[e.anchor] = d), v = e.input.charCodeAt(e.position); v !== 0;) {
|
|
3619
|
-
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 && (
|
|
3637
|
+
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 && (or(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;
|
|
3620
3638
|
else {
|
|
3621
|
-
if (o = e.line, s = e.lineStart, c = e.position, !
|
|
3639
|
+
if (o = e.line, s = e.lineStart, c = e.position, !br(e, n, Nn, !1, !0)) break;
|
|
3622
3640
|
if (e.line === a) {
|
|
3623
|
-
for (v = e.input.charCodeAt(e.position);
|
|
3624
|
-
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 && (
|
|
3641
|
+
for (v = e.input.charCodeAt(e.position); Gn(v);) v = e.input.charCodeAt(++e.position);
|
|
3642
|
+
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 && (or(e, d, f, p, m, null, o, s, c), p = m = h = null), _ = !0, g = !1, i = !1, p = e.tag, m = e.result;
|
|
3625
3643
|
else if (_) G(e, "can not read an implicit mapping pair; a colon is missed");
|
|
3626
3644
|
else return e.tag = l, e.anchor = u, !0;
|
|
3627
3645
|
} else if (_) G(e, "can not read a block mapping entry; a multiline key may not be an implicit key");
|
|
3628
3646
|
else return e.tag = l, e.anchor = u, !0;
|
|
3629
3647
|
}
|
|
3630
|
-
if ((e.line === a || e.lineIndent > t) && (g && (o = e.line, s = e.lineStart, c = e.position),
|
|
3648
|
+
if ((e.line === a || e.lineIndent > t) && (g && (o = e.line, s = e.lineStart, c = e.position), br(e, t, Fn, !0, i) && (g ? m = e.result : h = e.result), g || (or(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");
|
|
3631
3649
|
else if (e.lineIndent < t) break;
|
|
3632
3650
|
}
|
|
3633
|
-
return g &&
|
|
3651
|
+
return g && or(e, d, f, p, m, null, o, s, c), _ && (e.tag = l, e.anchor = u, e.kind = "mapping", e.result = d), _;
|
|
3634
3652
|
}
|
|
3635
|
-
a(
|
|
3636
|
-
function
|
|
3653
|
+
a(gr, "readBlockMapping");
|
|
3654
|
+
function _r(e) {
|
|
3637
3655
|
var t, n = !1, r = !1, i, a, o = e.input.charCodeAt(e.position);
|
|
3638
3656
|
if (o !== 33) return !1;
|
|
3639
3657
|
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) {
|
|
@@ -3642,43 +3660,43 @@ function gr(e) {
|
|
|
3642
3660
|
while (o !== 0 && o !== 62);
|
|
3643
3661
|
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");
|
|
3644
3662
|
} else {
|
|
3645
|
-
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),
|
|
3646
|
-
a = e.input.slice(t, e.position),
|
|
3663
|
+
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), Hn.test(i) || G(e, "named tag handle cannot contain such characters"), r = !0, t = e.position + 1)), o = e.input.charCodeAt(++e.position);
|
|
3664
|
+
a = e.input.slice(t, e.position), Vn.test(a) && G(e, "tag suffix cannot contain flow indicator characters");
|
|
3647
3665
|
}
|
|
3648
|
-
a && !
|
|
3666
|
+
a && !Un.test(a) && G(e, "tag name cannot contain such characters: " + a);
|
|
3649
3667
|
try {
|
|
3650
3668
|
a = decodeURIComponent(a);
|
|
3651
3669
|
} catch {
|
|
3652
3670
|
G(e, "tag name is malformed: " + a);
|
|
3653
3671
|
}
|
|
3654
|
-
return n ? e.tag = a :
|
|
3672
|
+
return n ? e.tag = a : jn.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;
|
|
3655
3673
|
}
|
|
3656
|
-
a(
|
|
3657
|
-
function
|
|
3674
|
+
a(_r, "readTagProperty");
|
|
3675
|
+
function vr(e) {
|
|
3658
3676
|
var t, n = e.input.charCodeAt(e.position);
|
|
3659
3677
|
if (n !== 38) return !1;
|
|
3660
|
-
for (e.anchor !== null && G(e, "duplication of an anchor property"), n = e.input.charCodeAt(++e.position), t = e.position; n !== 0 && !W(n) && !
|
|
3678
|
+
for (e.anchor !== null && G(e, "duplication of an anchor property"), n = e.input.charCodeAt(++e.position), t = e.position; n !== 0 && !W(n) && !Kn(n);) n = e.input.charCodeAt(++e.position);
|
|
3661
3679
|
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;
|
|
3662
3680
|
}
|
|
3663
|
-
a(
|
|
3664
|
-
function
|
|
3681
|
+
a(vr, "readAnchorProperty");
|
|
3682
|
+
function yr(e) {
|
|
3665
3683
|
var t, n, r = e.input.charCodeAt(e.position);
|
|
3666
3684
|
if (r !== 42) return !1;
|
|
3667
|
-
for (r = e.input.charCodeAt(++e.position), t = e.position; r !== 0 && !W(r) && !
|
|
3668
|
-
return e.position === t && G(e, "name of an alias node must contain at least one character"), n = e.input.slice(t, e.position),
|
|
3685
|
+
for (r = e.input.charCodeAt(++e.position), t = e.position; r !== 0 && !W(r) && !Kn(r);) r = e.input.charCodeAt(++e.position);
|
|
3686
|
+
return e.position === t && G(e, "name of an alias node must contain at least one character"), n = e.input.slice(t, e.position), jn.call(e.anchorMap, n) || G(e, "unidentified alias \"" + n + "\""), e.result = e.anchorMap[n], q(e, !0, -1), !0;
|
|
3669
3687
|
}
|
|
3670
|
-
a(
|
|
3671
|
-
function
|
|
3688
|
+
a(yr, "readAlias");
|
|
3689
|
+
function br(e, t, n, r, i) {
|
|
3672
3690
|
var a, o, s, c = 1, l = !1, u = !1, d, f, p, m, h, g;
|
|
3673
|
-
if (e.listener !== null && e.listener("open", e), e.tag = null, e.anchor = null, e.kind = null, e.result = null, a = o = s =
|
|
3674
|
-
if (s &&= l || i, (c === 1 ||
|
|
3691
|
+
if (e.listener !== null && e.listener("open", e), e.tag = null, e.anchor = null, e.kind = null, e.result = null, a = o = s = Fn === n || Pn === 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 (; _r(e) || vr(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;
|
|
3692
|
+
if (s &&= l || i, (c === 1 || Fn === n) && (h = Mn === n || Nn === n ? t : t + 1, g = e.position - e.lineStart, c === 1 ? s && (hr(e, g) || gr(e, g, h)) || pr(e, h) ? u = !0 : (o && mr(e, h) || dr(e, h) || fr(e, h) ? u = !0 : yr(e) ? (u = !0, (e.tag !== null || e.anchor !== null) && G(e, "alias node should not have any properties")) : ur(e, h, Mn === n) && (u = !0, e.tag === null && (e.tag = "?")), e.anchor !== null && (e.anchorMap[e.anchor] = e.result)) : c === 0 && (u = s && hr(e, g))), e.tag === null) e.anchor !== null && (e.anchorMap[e.anchor] = e.result);
|
|
3675
3693
|
else if (e.tag === "?") {
|
|
3676
3694
|
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)) {
|
|
3677
3695
|
e.result = m.construct(e.result), e.tag = m.tag, e.anchor !== null && (e.anchorMap[e.anchor] = e.result);
|
|
3678
3696
|
break;
|
|
3679
3697
|
}
|
|
3680
3698
|
} else if (e.tag !== "!") {
|
|
3681
|
-
if (
|
|
3699
|
+
if (jn.call(e.typeMap[e.kind || "fallback"], e.tag)) m = e.typeMap[e.kind || "fallback"][e.tag];
|
|
3682
3700
|
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) {
|
|
3683
3701
|
m = p[d];
|
|
3684
3702
|
break;
|
|
@@ -3687,13 +3705,13 @@ function yr(e, t, n, r, i) {
|
|
|
3687
3705
|
}
|
|
3688
3706
|
return e.listener !== null && e.listener("close", e), e.tag !== null || e.anchor !== null || u;
|
|
3689
3707
|
}
|
|
3690
|
-
a(
|
|
3691
|
-
function
|
|
3708
|
+
a(br, "composeNode");
|
|
3709
|
+
function xr(e) {
|
|
3692
3710
|
var t = e.position, n, r, i, a = !1, o;
|
|
3693
3711
|
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));) {
|
|
3694
3712
|
for (a = !0, o = e.input.charCodeAt(++e.position), n = e.position; o !== 0 && !W(o);) o = e.input.charCodeAt(++e.position);
|
|
3695
3713
|
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;) {
|
|
3696
|
-
for (;
|
|
3714
|
+
for (; Gn(o);) o = e.input.charCodeAt(++e.position);
|
|
3697
3715
|
if (o === 35) {
|
|
3698
3716
|
do
|
|
3699
3717
|
o = e.input.charCodeAt(++e.position);
|
|
@@ -3704,45 +3722,45 @@ function br(e) {
|
|
|
3704
3722
|
for (n = e.position; o !== 0 && !W(o);) o = e.input.charCodeAt(++e.position);
|
|
3705
3723
|
i.push(e.input.slice(n, e.position));
|
|
3706
3724
|
}
|
|
3707
|
-
o !== 0 &&
|
|
3725
|
+
o !== 0 && sr(e), jn.call(ir, r) ? ir[r](e, r, i) : rr(e, "unknown document directive \"" + r + "\"");
|
|
3708
3726
|
}
|
|
3709
|
-
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"),
|
|
3727
|
+
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"), br(e, e.lineIndent - 1, Fn, !1, !0), q(e, !0, -1), e.checkLineBreaks && Bn.test(e.input.slice(t, e.position)) && rr(e, "non-ASCII line breaks are interpreted as content"), e.documents.push(e.result), e.position === e.lineStart && cr(e)) {
|
|
3710
3728
|
e.input.charCodeAt(e.position) === 46 && (e.position += 3, q(e, !0, -1));
|
|
3711
3729
|
return;
|
|
3712
3730
|
}
|
|
3713
3731
|
if (e.position < e.length - 1) G(e, "end of the stream or a document separator is expected");
|
|
3714
3732
|
else return;
|
|
3715
3733
|
}
|
|
3716
|
-
a(
|
|
3717
|
-
function
|
|
3734
|
+
a(xr, "readDocument");
|
|
3735
|
+
function Sr(e, t) {
|
|
3718
3736
|
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)));
|
|
3719
|
-
var n = new
|
|
3737
|
+
var n = new tr(e, t), r = e.indexOf("\0");
|
|
3720
3738
|
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;
|
|
3721
|
-
for (; n.position < n.length - 1;)
|
|
3739
|
+
for (; n.position < n.length - 1;) xr(n);
|
|
3722
3740
|
return n.documents;
|
|
3723
3741
|
}
|
|
3724
|
-
a(
|
|
3725
|
-
function
|
|
3742
|
+
a(Sr, "loadDocuments");
|
|
3743
|
+
function Cr(e, t, n) {
|
|
3726
3744
|
typeof t == "object" && t && n === void 0 && (n = t, t = null);
|
|
3727
|
-
var r =
|
|
3745
|
+
var r = Sr(e, n);
|
|
3728
3746
|
if (typeof t != "function") return r;
|
|
3729
3747
|
for (var i = 0, a = r.length; i < a; i += 1) t(r[i]);
|
|
3730
3748
|
}
|
|
3731
|
-
a(
|
|
3732
|
-
function
|
|
3733
|
-
var n =
|
|
3749
|
+
a(Cr, "loadAll$1");
|
|
3750
|
+
function wr(e, t) {
|
|
3751
|
+
var n = Sr(e, t);
|
|
3734
3752
|
if (n.length !== 0) {
|
|
3735
3753
|
if (n.length === 1) return n[0];
|
|
3736
3754
|
throw new V("expected a single document in the stream, but found more");
|
|
3737
3755
|
}
|
|
3738
3756
|
}
|
|
3739
|
-
a(
|
|
3740
|
-
var
|
|
3741
|
-
loadAll:
|
|
3742
|
-
load:
|
|
3743
|
-
},
|
|
3757
|
+
a(wr, "load$1");
|
|
3758
|
+
var Tr = {
|
|
3759
|
+
loadAll: Cr,
|
|
3760
|
+
load: wr
|
|
3761
|
+
}, Er = Object.prototype.toString, Dr = Object.prototype.hasOwnProperty, Or = 65279, kr = 9, Ar = 10, jr = 13, Mr = 32, Nr = 33, Pr = 34, Fr = 35, Ir = 37, Lr = 38, Rr = 39, zr = 42, Br = 44, Vr = 45, Hr = 58, Ur = 61, Wr = 62, Gr = 63, Kr = 64, qr = 91, Jr = 93, Yr = 96, Xr = 123, Zr = 124, Qr = 125, J = {};
|
|
3744
3762
|
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";
|
|
3745
|
-
var
|
|
3763
|
+
var $r = [
|
|
3746
3764
|
"y",
|
|
3747
3765
|
"Y",
|
|
3748
3766
|
"yes",
|
|
@@ -3759,15 +3777,15 @@ var Qr = [
|
|
|
3759
3777
|
"off",
|
|
3760
3778
|
"Off",
|
|
3761
3779
|
"OFF"
|
|
3762
|
-
],
|
|
3763
|
-
function
|
|
3780
|
+
], ei = /^[-+]?[0-9_]+(?::[0-9_]+)+(?:\.[0-9_]*)?$/;
|
|
3781
|
+
function ti(e, t) {
|
|
3764
3782
|
var n, r, i, a, o, s, c;
|
|
3765
3783
|
if (t === null) return {};
|
|
3766
|
-
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 &&
|
|
3784
|
+
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 && Dr.call(c.styleAliases, s) && (s = c.styleAliases[s]), n[o] = s;
|
|
3767
3785
|
return n;
|
|
3768
3786
|
}
|
|
3769
|
-
a(
|
|
3770
|
-
function
|
|
3787
|
+
a(ti, "compileStyleMap");
|
|
3788
|
+
function ni(e) {
|
|
3771
3789
|
var t = e.toString(16).toUpperCase(), n, r;
|
|
3772
3790
|
if (e <= 255) n = "x", r = 2;
|
|
3773
3791
|
else if (e <= 65535) n = "u", r = 4;
|
|
@@ -3775,162 +3793,162 @@ function ti(e) {
|
|
|
3775
3793
|
else throw new V("code point within a string may not be greater than 0xFFFFFFFF");
|
|
3776
3794
|
return "\\" + n + B.repeat("0", r - t.length) + t;
|
|
3777
3795
|
}
|
|
3778
|
-
a(
|
|
3779
|
-
var
|
|
3780
|
-
function
|
|
3781
|
-
this.schema = e.schema ||
|
|
3796
|
+
a(ni, "encodeHex");
|
|
3797
|
+
var ri = 1, ii = 2;
|
|
3798
|
+
function ai(e) {
|
|
3799
|
+
this.schema = e.schema || An, 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 = ti(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 === "\"" ? ii : ri, 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;
|
|
3782
3800
|
}
|
|
3783
|
-
a(
|
|
3784
|
-
function
|
|
3801
|
+
a(ai, "State");
|
|
3802
|
+
function oi(e, t) {
|
|
3785
3803
|
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;
|
|
3786
3804
|
return a;
|
|
3787
3805
|
}
|
|
3788
|
-
a(
|
|
3789
|
-
function
|
|
3806
|
+
a(oi, "indentString");
|
|
3807
|
+
function si(e, t) {
|
|
3790
3808
|
return "\n" + B.repeat(" ", e.indent * t);
|
|
3791
3809
|
}
|
|
3792
|
-
a(
|
|
3793
|
-
function
|
|
3810
|
+
a(si, "generateNextLine");
|
|
3811
|
+
function ci(e, t) {
|
|
3794
3812
|
var n, r, i;
|
|
3795
3813
|
for (n = 0, r = e.implicitTypes.length; n < r; n += 1) if (i = e.implicitTypes[n], i.resolve(t)) return !0;
|
|
3796
3814
|
return !1;
|
|
3797
3815
|
}
|
|
3798
|
-
a(
|
|
3799
|
-
function ci(e) {
|
|
3800
|
-
return e === jr || e === Or;
|
|
3801
|
-
}
|
|
3802
|
-
a(ci, "isWhitespace");
|
|
3816
|
+
a(ci, "testImplicitResolving");
|
|
3803
3817
|
function li(e) {
|
|
3804
|
-
return
|
|
3818
|
+
return e === Mr || e === kr;
|
|
3805
3819
|
}
|
|
3806
|
-
a(li, "
|
|
3820
|
+
a(li, "isWhitespace");
|
|
3807
3821
|
function ui(e) {
|
|
3808
|
-
return
|
|
3822
|
+
return 32 <= e && e <= 126 || 161 <= e && e <= 55295 && e !== 8232 && e !== 8233 || 57344 <= e && e <= 65533 && e !== Or || 65536 <= e && e <= 1114111;
|
|
3809
3823
|
}
|
|
3810
|
-
a(ui, "
|
|
3811
|
-
function di(e
|
|
3812
|
-
|
|
3813
|
-
return (n ? r : r && e !== zr && e !== Kr && e !== qr && e !== Yr && e !== Zr) && e !== Pr && !(t === Vr && !i) || ui(t) && !ci(t) && e === Pr || t === Vr && i;
|
|
3824
|
+
a(ui, "isPrintable");
|
|
3825
|
+
function di(e) {
|
|
3826
|
+
return ui(e) && e !== Or && e !== jr && e !== Ar;
|
|
3814
3827
|
}
|
|
3815
|
-
a(di, "
|
|
3816
|
-
function fi(e) {
|
|
3817
|
-
|
|
3828
|
+
a(di, "isNsCharOrWhitespace");
|
|
3829
|
+
function fi(e, t, n) {
|
|
3830
|
+
var r = di(e), i = r && !li(e);
|
|
3831
|
+
return (n ? r : r && e !== Br && e !== qr && e !== Jr && e !== Xr && e !== Qr) && e !== Fr && !(t === Hr && !i) || di(t) && !li(t) && e === Fr || t === Hr && i;
|
|
3818
3832
|
}
|
|
3819
|
-
a(fi, "
|
|
3833
|
+
a(fi, "isPlainSafe");
|
|
3820
3834
|
function pi(e) {
|
|
3821
|
-
return !
|
|
3835
|
+
return ui(e) && e !== Or && !li(e) && e !== Vr && e !== Gr && e !== Hr && e !== Br && e !== qr && e !== Jr && e !== Xr && e !== Qr && e !== Fr && e !== Lr && e !== zr && e !== Nr && e !== Zr && e !== Ur && e !== Wr && e !== Rr && e !== Pr && e !== Ir && e !== Kr && e !== Yr;
|
|
3822
3836
|
}
|
|
3823
|
-
a(pi, "
|
|
3824
|
-
function mi(e
|
|
3837
|
+
a(pi, "isPlainSafeFirst");
|
|
3838
|
+
function mi(e) {
|
|
3839
|
+
return !li(e) && e !== Hr;
|
|
3840
|
+
}
|
|
3841
|
+
a(mi, "isPlainSafeLast");
|
|
3842
|
+
function hi(e, t) {
|
|
3825
3843
|
var n = e.charCodeAt(t), r;
|
|
3826
3844
|
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;
|
|
3827
3845
|
}
|
|
3828
|
-
a(
|
|
3829
|
-
function
|
|
3846
|
+
a(hi, "codePointAt");
|
|
3847
|
+
function gi(e) {
|
|
3830
3848
|
return /^\n* /.test(e);
|
|
3831
3849
|
}
|
|
3832
|
-
a(
|
|
3833
|
-
var
|
|
3834
|
-
function
|
|
3835
|
-
var c, l = 0, u = null, d = !1, f = !1, p = r !== -1, m = -1, h =
|
|
3850
|
+
a(gi, "needIndentIndicator");
|
|
3851
|
+
var _i = 1, vi = 2, yi = 3, bi = 4, xi = 5;
|
|
3852
|
+
function Si(e, t, n, r, i, a, o, s) {
|
|
3853
|
+
var c, l = 0, u = null, d = !1, f = !1, p = r !== -1, m = -1, h = pi(hi(e, 0)) && mi(hi(e, e.length - 1));
|
|
3836
3854
|
if (t || o) for (c = 0; c < e.length; l >= 65536 ? c += 2 : c++) {
|
|
3837
|
-
if (l =
|
|
3838
|
-
h &&=
|
|
3855
|
+
if (l = hi(e, c), !ui(l)) return xi;
|
|
3856
|
+
h &&= fi(l, u, s), u = l;
|
|
3839
3857
|
}
|
|
3840
3858
|
else {
|
|
3841
3859
|
for (c = 0; c < e.length; l >= 65536 ? c += 2 : c++) {
|
|
3842
|
-
if (l =
|
|
3843
|
-
else if (!
|
|
3844
|
-
h &&=
|
|
3860
|
+
if (l = hi(e, c), l === Ar) d = !0, p && (f ||= c - m - 1 > r && e[m + 1] !== " ", m = c);
|
|
3861
|
+
else if (!ui(l)) return xi;
|
|
3862
|
+
h &&= fi(l, u, s), u = l;
|
|
3845
3863
|
}
|
|
3846
3864
|
f ||= p && c - m - 1 > r && e[m + 1] !== " ";
|
|
3847
3865
|
}
|
|
3848
|
-
return !d && !f ? h && !o && !i(e) ?
|
|
3866
|
+
return !d && !f ? h && !o && !i(e) ? _i : a === ii ? xi : vi : n > 9 && gi(e) ? xi : o ? a === ii ? xi : vi : f ? bi : yi;
|
|
3849
3867
|
}
|
|
3850
|
-
a(
|
|
3851
|
-
function
|
|
3868
|
+
a(Si, "chooseScalarStyle");
|
|
3869
|
+
function Ci(e, t, n, r, i) {
|
|
3852
3870
|
e.dump = (function() {
|
|
3853
|
-
if (t.length === 0) return e.quotingType ===
|
|
3854
|
-
if (!e.noCompatMode && (
|
|
3871
|
+
if (t.length === 0) return e.quotingType === ii ? "\"\"" : "''";
|
|
3872
|
+
if (!e.noCompatMode && ($r.indexOf(t) !== -1 || ei.test(t))) return e.quotingType === ii ? "\"" + t + "\"" : "'" + t + "'";
|
|
3855
3873
|
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;
|
|
3856
3874
|
function l(t) {
|
|
3857
|
-
return
|
|
3875
|
+
return ci(e, t);
|
|
3858
3876
|
}
|
|
3859
|
-
switch (a(l, "testAmbiguity"),
|
|
3860
|
-
case
|
|
3861
|
-
case
|
|
3862
|
-
case
|
|
3863
|
-
case
|
|
3864
|
-
case
|
|
3877
|
+
switch (a(l, "testAmbiguity"), Si(t, c, e.indent, s, l, e.quotingType, e.forceQuotes && !r, i)) {
|
|
3878
|
+
case _i: return t;
|
|
3879
|
+
case vi: return "'" + t.replace(/'/g, "''") + "'";
|
|
3880
|
+
case yi: return "|" + wi(t, e.indent) + Ti(oi(t, o));
|
|
3881
|
+
case bi: return ">" + wi(t, e.indent) + Ti(oi(Ei(t, s), o));
|
|
3882
|
+
case xi: return "\"" + Oi(t) + "\"";
|
|
3865
3883
|
default: throw new V("impossible error: invalid scalar style");
|
|
3866
3884
|
}
|
|
3867
3885
|
})();
|
|
3868
3886
|
}
|
|
3869
|
-
a(
|
|
3870
|
-
function
|
|
3871
|
-
var n =
|
|
3887
|
+
a(Ci, "writeScalar");
|
|
3888
|
+
function wi(e, t) {
|
|
3889
|
+
var n = gi(e) ? String(t) : "", r = e[e.length - 1] === "\n";
|
|
3872
3890
|
return n + (r && (e[e.length - 2] === "\n" || e === "\n") ? "+" : r ? "" : "-") + "\n";
|
|
3873
3891
|
}
|
|
3874
|
-
a(
|
|
3875
|
-
function
|
|
3892
|
+
a(wi, "blockHeader");
|
|
3893
|
+
function Ti(e) {
|
|
3876
3894
|
return e[e.length - 1] === "\n" ? e.slice(0, -1) : e;
|
|
3877
3895
|
}
|
|
3878
|
-
a(
|
|
3879
|
-
function
|
|
3896
|
+
a(Ti, "dropEndingNewline");
|
|
3897
|
+
function Ei(e, t) {
|
|
3880
3898
|
for (var n = /(\n+)([^\n]*)/g, r = (function() {
|
|
3881
3899
|
var r = e.indexOf("\n");
|
|
3882
|
-
return r = r === -1 ? e.length : r, n.lastIndex = r,
|
|
3900
|
+
return r = r === -1 ? e.length : r, n.lastIndex = r, Di(e.slice(0, r), t);
|
|
3883
3901
|
})(), i = e[0] === "\n" || e[0] === " ", a, o; o = n.exec(e);) {
|
|
3884
3902
|
var s = o[1], c = o[2];
|
|
3885
|
-
a = c[0] === " ", r += s + (!i && !a && c !== "" ? "\n" : "") +
|
|
3903
|
+
a = c[0] === " ", r += s + (!i && !a && c !== "" ? "\n" : "") + Di(c, t), i = a;
|
|
3886
3904
|
}
|
|
3887
3905
|
return r;
|
|
3888
3906
|
}
|
|
3889
|
-
a(
|
|
3890
|
-
function
|
|
3907
|
+
a(Ei, "foldString");
|
|
3908
|
+
function Di(e, t) {
|
|
3891
3909
|
if (e === "" || e[0] === " ") return e;
|
|
3892
3910
|
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;
|
|
3893
3911
|
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);
|
|
3894
3912
|
}
|
|
3895
|
-
a(
|
|
3896
|
-
function
|
|
3897
|
-
for (var t = "", n = 0, r, i = 0; i < e.length; n >= 65536 ? i += 2 : i++) n =
|
|
3913
|
+
a(Di, "foldLine");
|
|
3914
|
+
function Oi(e) {
|
|
3915
|
+
for (var t = "", n = 0, r, i = 0; i < e.length; n >= 65536 ? i += 2 : i++) n = hi(e, i), r = J[n], !r && ui(n) ? (t += e[i], n >= 65536 && (t += e[i + 1])) : t += r || ni(n);
|
|
3898
3916
|
return t;
|
|
3899
3917
|
}
|
|
3900
|
-
a(
|
|
3901
|
-
function
|
|
3918
|
+
a(Oi, "escapeString");
|
|
3919
|
+
function ki(e, t, n) {
|
|
3902
3920
|
var r = "", i = e.tag, a, o, s;
|
|
3903
3921
|
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);
|
|
3904
3922
|
e.tag = i, e.dump = "[" + r + "]";
|
|
3905
3923
|
}
|
|
3906
|
-
a(
|
|
3907
|
-
function
|
|
3924
|
+
a(ki, "writeFlowSequence");
|
|
3925
|
+
function Ai(e, t, n, r) {
|
|
3908
3926
|
var i = "", a = e.tag, o, s, c;
|
|
3909
|
-
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 +=
|
|
3927
|
+
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 += si(e, t)), e.dump && Ar === e.dump.charCodeAt(0) ? i += "-" : i += "- ", i += e.dump);
|
|
3910
3928
|
e.tag = a, e.dump = i || "[]";
|
|
3911
3929
|
}
|
|
3912
|
-
a(
|
|
3913
|
-
function
|
|
3930
|
+
a(Ai, "writeBlockSequence");
|
|
3931
|
+
function ji(e, t, n) {
|
|
3914
3932
|
var r = "", i = e.tag, a = Object.keys(n), o, s, c, l, u;
|
|
3915
3933
|
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));
|
|
3916
3934
|
e.tag = i, e.dump = "{" + r + "}";
|
|
3917
3935
|
}
|
|
3918
|
-
a(
|
|
3919
|
-
function
|
|
3936
|
+
a(ji, "writeFlowMapping");
|
|
3937
|
+
function Mi(e, t, n, r) {
|
|
3920
3938
|
var i = "", a = e.tag, o = Object.keys(n), s, c, l, u, d, f;
|
|
3921
3939
|
if (e.sortKeys === !0) o.sort();
|
|
3922
3940
|
else if (typeof e.sortKeys == "function") o.sort(e.sortKeys);
|
|
3923
3941
|
else if (e.sortKeys) throw new V("sortKeys must be a boolean or a function");
|
|
3924
|
-
for (s = 0, c = o.length; s < c; s += 1) f = "", (!r || i !== "") && (f +=
|
|
3942
|
+
for (s = 0, c = o.length; s < c; s += 1) f = "", (!r || i !== "") && (f += si(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 && Ar === e.dump.charCodeAt(0) ? f += "?" : f += "? "), f += e.dump, d && (f += si(e, t)), Y(e, t + 1, u, !0, d) && (e.dump && Ar === e.dump.charCodeAt(0) ? f += ":" : f += ": ", f += e.dump, i += f));
|
|
3925
3943
|
e.tag = a, e.dump = i || "{}";
|
|
3926
3944
|
}
|
|
3927
|
-
a(
|
|
3928
|
-
function
|
|
3945
|
+
a(Mi, "writeBlockMapping");
|
|
3946
|
+
function Ni(e, t, n) {
|
|
3929
3947
|
var r, i = n ? e.explicitTypes : e.implicitTypes, a, o, s, c;
|
|
3930
3948
|
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))) {
|
|
3931
3949
|
if (n ? s.multi && s.representName ? e.tag = s.representName(t) : e.tag = s.tag : e.tag = "?", s.represent) {
|
|
3932
|
-
if (c = e.styleMap[s.tag] || s.defaultStyle,
|
|
3933
|
-
else if (
|
|
3950
|
+
if (c = e.styleMap[s.tag] || s.defaultStyle, Er.call(s.represent) === "[object Function]") r = s.represent(t, c);
|
|
3951
|
+
else if (Dr.call(s.represent, c)) r = s.represent[c](t, c);
|
|
3934
3952
|
else throw new V("!<" + s.tag + "> tag resolver accepts not \"" + c + "\" style");
|
|
3935
3953
|
e.dump = r;
|
|
3936
3954
|
}
|
|
@@ -3938,17 +3956,17 @@ function Mi(e, t, n) {
|
|
|
3938
3956
|
}
|
|
3939
3957
|
return !1;
|
|
3940
3958
|
}
|
|
3941
|
-
a(
|
|
3959
|
+
a(Ni, "detectType");
|
|
3942
3960
|
function Y(e, t, n, r, i, a, o) {
|
|
3943
|
-
e.tag = null, e.dump = n,
|
|
3944
|
-
var s =
|
|
3961
|
+
e.tag = null, e.dump = n, Ni(e, n, !1) || Ni(e, n, !0);
|
|
3962
|
+
var s = Er.call(e.dump), c = r, l;
|
|
3945
3963
|
r &&= e.flowLevel < 0 || e.flowLevel > t;
|
|
3946
3964
|
var u = s === "[object Object]" || s === "[object Array]", d, f;
|
|
3947
3965
|
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;
|
|
3948
3966
|
else {
|
|
3949
|
-
if (u && f && !e.usedDuplicates[d] && (e.usedDuplicates[d] = !0), s === "[object Object]") r && Object.keys(e.dump).length !== 0 ? (
|
|
3950
|
-
else if (s === "[object Array]") r && e.dump.length !== 0 ? (e.noArrayIndent && !o && t > 0 ?
|
|
3951
|
-
else if (s === "[object String]") e.tag !== "?" &&
|
|
3967
|
+
if (u && f && !e.usedDuplicates[d] && (e.usedDuplicates[d] = !0), s === "[object Object]") r && Object.keys(e.dump).length !== 0 ? (Mi(e, t, e.dump, i), f && (e.dump = "&ref_" + d + e.dump)) : (ji(e, t, e.dump), f && (e.dump = "&ref_" + d + " " + e.dump));
|
|
3968
|
+
else if (s === "[object Array]") r && e.dump.length !== 0 ? (e.noArrayIndent && !o && t > 0 ? Ai(e, t - 1, e.dump, i) : Ai(e, t, e.dump, i), f && (e.dump = "&ref_" + d + e.dump)) : (ki(e, t, e.dump), f && (e.dump = "&ref_" + d + " " + e.dump));
|
|
3969
|
+
else if (s === "[object String]") e.tag !== "?" && Ci(e, e.dump, t, a, c);
|
|
3952
3970
|
else if (s === "[object Undefined]") return !1;
|
|
3953
3971
|
else {
|
|
3954
3972
|
if (e.skipInvalid) return !1;
|
|
@@ -3959,39 +3977,39 @@ function Y(e, t, n, r, i, a, o) {
|
|
|
3959
3977
|
return !0;
|
|
3960
3978
|
}
|
|
3961
3979
|
a(Y, "writeNode");
|
|
3962
|
-
function
|
|
3980
|
+
function Pi(e, t) {
|
|
3963
3981
|
var n = [], r = [], i, a;
|
|
3964
|
-
for (
|
|
3982
|
+
for (Fi(e, n, r), i = 0, a = r.length; i < a; i += 1) t.duplicates.push(n[r[i]]);
|
|
3965
3983
|
t.usedDuplicates = Array(a);
|
|
3966
3984
|
}
|
|
3967
|
-
a(
|
|
3968
|
-
function
|
|
3985
|
+
a(Pi, "getDuplicateReferences");
|
|
3986
|
+
function Fi(e, t, n) {
|
|
3969
3987
|
var r, i, a;
|
|
3970
3988
|
if (typeof e == "object" && e) if (i = t.indexOf(e), i !== -1) n.indexOf(i) === -1 && n.push(i);
|
|
3971
|
-
else if (t.push(e), Array.isArray(e)) for (i = 0, a = e.length; i < a; i += 1)
|
|
3972
|
-
else for (r = Object.keys(e), i = 0, a = r.length; i < a; i += 1)
|
|
3989
|
+
else if (t.push(e), Array.isArray(e)) for (i = 0, a = e.length; i < a; i += 1) Fi(e[i], t, n);
|
|
3990
|
+
else for (r = Object.keys(e), i = 0, a = r.length; i < a; i += 1) Fi(e[r[i]], t, n);
|
|
3973
3991
|
}
|
|
3974
|
-
a(
|
|
3975
|
-
function
|
|
3992
|
+
a(Fi, "inspectNode");
|
|
3993
|
+
function Ii(e, t) {
|
|
3976
3994
|
t ||= {};
|
|
3977
|
-
var n = new
|
|
3978
|
-
n.noRefs ||
|
|
3995
|
+
var n = new ai(t);
|
|
3996
|
+
n.noRefs || Pi(e, n);
|
|
3979
3997
|
var r = e;
|
|
3980
3998
|
return n.replacer && (r = n.replacer.call({ "": r }, "", r)), Y(n, 0, r, !0, !0) ? n.dump + "\n" : "";
|
|
3981
3999
|
}
|
|
3982
|
-
a(
|
|
3983
|
-
var
|
|
3984
|
-
function
|
|
4000
|
+
a(Ii, "dump$1");
|
|
4001
|
+
var Li = { dump: Ii };
|
|
4002
|
+
function Ri(e, t) {
|
|
3985
4003
|
return function() {
|
|
3986
4004
|
throw Error("Function yaml." + e + " is removed in js-yaml 4. Use yaml." + t + " instead, which is now safe by default.");
|
|
3987
4005
|
};
|
|
3988
4006
|
}
|
|
3989
|
-
a(
|
|
3990
|
-
var
|
|
3991
|
-
|
|
4007
|
+
a(Ri, "renamed");
|
|
4008
|
+
var zi = en, Bi = Tr.load;
|
|
4009
|
+
Tr.loadAll, Li.dump;
|
|
3992
4010
|
//#endregion
|
|
3993
4011
|
//#region node_modules/.pnpm/mermaid@11.12.0/node_modules/mermaid/dist/chunks/mermaid.core/chunk-N4CR4FBY.mjs
|
|
3994
|
-
var
|
|
4012
|
+
var Vi = {
|
|
3995
4013
|
common: D,
|
|
3996
4014
|
getConfig: j,
|
|
3997
4015
|
insertCluster: ye,
|
|
@@ -4003,55 +4021,55 @@ var Bi = {
|
|
|
4003
4021
|
labelHelper: be,
|
|
4004
4022
|
log: i,
|
|
4005
4023
|
positionEdgeLabel: xe
|
|
4006
|
-
},
|
|
4007
|
-
for (let t of e)
|
|
4024
|
+
}, Hi = {}, Ui = /* @__PURE__ */ a((e) => {
|
|
4025
|
+
for (let t of e) Hi[t.name] = t;
|
|
4008
4026
|
}, "registerLayoutLoaders");
|
|
4009
4027
|
(/* @__PURE__ */ a(() => {
|
|
4010
|
-
|
|
4028
|
+
Ui([{
|
|
4011
4029
|
name: "dagre",
|
|
4012
|
-
loader: /* @__PURE__ */ a(async () => await import("./dagre-6UL2VRFP-
|
|
4030
|
+
loader: /* @__PURE__ */ a(async () => await import("./dagre-6UL2VRFP-CTQsEV-y.js"), "loader")
|
|
4013
4031
|
}, {
|
|
4014
4032
|
name: "cose-bilkent",
|
|
4015
4033
|
loader: /* @__PURE__ */ a(async () => await import("./cose-bilkent-S5V4N54A-bGPAcpg6.js"), "loader")
|
|
4016
4034
|
}]);
|
|
4017
4035
|
}, "registerDefaultLayoutLoaders"))();
|
|
4018
|
-
var
|
|
4019
|
-
if (!(e.layoutAlgorithm in
|
|
4020
|
-
let n =
|
|
4021
|
-
return (await n.loader()).render(e, t,
|
|
4022
|
-
}, "render"),
|
|
4023
|
-
if (e in
|
|
4024
|
-
if (t in
|
|
4036
|
+
var Wi = /* @__PURE__ */ a(async (e, t) => {
|
|
4037
|
+
if (!(e.layoutAlgorithm in Hi)) throw Error(`Unknown layout algorithm: ${e.layoutAlgorithm}`);
|
|
4038
|
+
let n = Hi[e.layoutAlgorithm];
|
|
4039
|
+
return (await n.loader()).render(e, t, Vi, { algorithm: n.algorithm });
|
|
4040
|
+
}, "render"), Gi = /* @__PURE__ */ a((e = "", { fallback: t = "dagre" } = {}) => {
|
|
4041
|
+
if (e in Hi) return e;
|
|
4042
|
+
if (t in Hi) return i.warn(`Layout algorithm ${e} is not registered. Using ${t} as fallback.`), t;
|
|
4025
4043
|
throw Error(`Both layout algorithms ${e} and ${t} are not registered.`);
|
|
4026
|
-
}, "getRegisteredLayoutAlgorithm"),
|
|
4027
|
-
function
|
|
4044
|
+
}, "getRegisteredLayoutAlgorithm"), Ki = "comm", qi = "rule", Ji = "decl", Yi = "@import", Xi = "@namespace", Zi = "@keyframes", Qi = "@layer", $i = Math.abs, ea = String.fromCharCode;
|
|
4045
|
+
function ta(e) {
|
|
4028
4046
|
return e.trim();
|
|
4029
4047
|
}
|
|
4030
|
-
function
|
|
4048
|
+
function na(e, t, n) {
|
|
4031
4049
|
return e.replace(t, n);
|
|
4032
4050
|
}
|
|
4033
|
-
function
|
|
4051
|
+
function ra(e, t, n) {
|
|
4034
4052
|
return e.indexOf(t, n);
|
|
4035
4053
|
}
|
|
4036
|
-
function
|
|
4054
|
+
function ia(e, t) {
|
|
4037
4055
|
return e.charCodeAt(t) | 0;
|
|
4038
4056
|
}
|
|
4039
|
-
function
|
|
4057
|
+
function aa(e, t, n) {
|
|
4040
4058
|
return e.slice(t, n);
|
|
4041
4059
|
}
|
|
4042
4060
|
function X(e) {
|
|
4043
4061
|
return e.length;
|
|
4044
4062
|
}
|
|
4045
|
-
function
|
|
4063
|
+
function oa(e) {
|
|
4046
4064
|
return e.length;
|
|
4047
4065
|
}
|
|
4048
|
-
function
|
|
4066
|
+
function sa(e, t) {
|
|
4049
4067
|
return t.push(e), e;
|
|
4050
4068
|
}
|
|
4051
4069
|
//#endregion
|
|
4052
4070
|
//#region node_modules/.pnpm/stylis@4.3.6/node_modules/stylis/src/Tokenizer.js
|
|
4053
|
-
var
|
|
4054
|
-
function
|
|
4071
|
+
var ca = 1, la = 1, ua = 0, Z = 0, Q = 0, da = "";
|
|
4072
|
+
function fa(e, t, n, r, i, a, o, s) {
|
|
4055
4073
|
return {
|
|
4056
4074
|
value: e,
|
|
4057
4075
|
root: t,
|
|
@@ -4059,32 +4077,32 @@ function da(e, t, n, r, i, a, o, s) {
|
|
|
4059
4077
|
type: r,
|
|
4060
4078
|
props: i,
|
|
4061
4079
|
children: a,
|
|
4062
|
-
line:
|
|
4063
|
-
column:
|
|
4080
|
+
line: ca,
|
|
4081
|
+
column: la,
|
|
4064
4082
|
length: o,
|
|
4065
4083
|
return: "",
|
|
4066
4084
|
siblings: s
|
|
4067
4085
|
};
|
|
4068
4086
|
}
|
|
4069
|
-
function
|
|
4087
|
+
function pa() {
|
|
4070
4088
|
return Q;
|
|
4071
4089
|
}
|
|
4072
|
-
function
|
|
4073
|
-
return Q = Z > 0 ?
|
|
4090
|
+
function ma() {
|
|
4091
|
+
return Q = Z > 0 ? ia(da, --Z) : 0, la--, Q === 10 && (la = 1, ca--), Q;
|
|
4074
4092
|
}
|
|
4075
4093
|
function $() {
|
|
4076
|
-
return Q = Z <
|
|
4077
|
-
}
|
|
4078
|
-
function ma() {
|
|
4079
|
-
return ra(ua, Z);
|
|
4094
|
+
return Q = Z < ua ? ia(da, Z++) : 0, la++, Q === 10 && (la = 1, ca++), Q;
|
|
4080
4095
|
}
|
|
4081
4096
|
function ha() {
|
|
4097
|
+
return ia(da, Z);
|
|
4098
|
+
}
|
|
4099
|
+
function ga() {
|
|
4082
4100
|
return Z;
|
|
4083
4101
|
}
|
|
4084
|
-
function
|
|
4085
|
-
return
|
|
4102
|
+
function _a(e, t) {
|
|
4103
|
+
return aa(da, e, t);
|
|
4086
4104
|
}
|
|
4087
|
-
function
|
|
4105
|
+
function va(e) {
|
|
4088
4106
|
switch (e) {
|
|
4089
4107
|
case 0:
|
|
4090
4108
|
case 9:
|
|
@@ -4111,32 +4129,32 @@ function _a(e) {
|
|
|
4111
4129
|
}
|
|
4112
4130
|
return 0;
|
|
4113
4131
|
}
|
|
4114
|
-
function va(e) {
|
|
4115
|
-
return sa = ca = 1, la = X(ua = e), Z = 0, [];
|
|
4116
|
-
}
|
|
4117
4132
|
function ya(e) {
|
|
4118
|
-
return ua =
|
|
4133
|
+
return ca = la = 1, ua = X(da = e), Z = 0, [];
|
|
4119
4134
|
}
|
|
4120
4135
|
function ba(e) {
|
|
4121
|
-
return
|
|
4136
|
+
return da = "", e;
|
|
4122
4137
|
}
|
|
4123
4138
|
function xa(e) {
|
|
4124
|
-
|
|
4125
|
-
return _a(e) > 2 || _a(Q) > 3 ? "" : " ";
|
|
4139
|
+
return ta(_a(Z - 1, wa(e === 91 ? e + 2 : e === 40 ? e + 1 : e)));
|
|
4126
4140
|
}
|
|
4127
|
-
function Sa(e
|
|
4141
|
+
function Sa(e) {
|
|
4142
|
+
for (; (Q = ha()) && Q < 33;) $();
|
|
4143
|
+
return va(e) > 2 || va(Q) > 3 ? "" : " ";
|
|
4144
|
+
}
|
|
4145
|
+
function Ca(e, t) {
|
|
4128
4146
|
for (; --t && $() && !(Q < 48 || Q > 102 || Q > 57 && Q < 65 || Q > 70 && Q < 97););
|
|
4129
|
-
return
|
|
4147
|
+
return _a(e, ga() + (t < 6 && ha() == 32 && $() == 32));
|
|
4130
4148
|
}
|
|
4131
|
-
function
|
|
4149
|
+
function wa(e) {
|
|
4132
4150
|
for (; $();) switch (Q) {
|
|
4133
4151
|
case e: return Z;
|
|
4134
4152
|
case 34:
|
|
4135
4153
|
case 39:
|
|
4136
|
-
e !== 34 && e !== 39 &&
|
|
4154
|
+
e !== 34 && e !== 39 && wa(Q);
|
|
4137
4155
|
break;
|
|
4138
4156
|
case 40:
|
|
4139
|
-
e === 41 &&
|
|
4157
|
+
e === 41 && wa(e);
|
|
4140
4158
|
break;
|
|
4141
4159
|
case 92:
|
|
4142
4160
|
$();
|
|
@@ -4144,44 +4162,44 @@ function Ca(e) {
|
|
|
4144
4162
|
}
|
|
4145
4163
|
return Z;
|
|
4146
4164
|
}
|
|
4147
|
-
function
|
|
4148
|
-
for (; $() && e + Q !== 57 && !(e + Q === 84 &&
|
|
4149
|
-
return "/*" +
|
|
4165
|
+
function Ta(e, t) {
|
|
4166
|
+
for (; $() && e + Q !== 57 && !(e + Q === 84 && ha() === 47););
|
|
4167
|
+
return "/*" + _a(t, Z - 1) + "*" + ea(e === 47 ? e : $());
|
|
4150
4168
|
}
|
|
4151
|
-
function
|
|
4152
|
-
for (; !
|
|
4153
|
-
return
|
|
4169
|
+
function Ea(e) {
|
|
4170
|
+
for (; !va(ha());) $();
|
|
4171
|
+
return _a(e, Z);
|
|
4154
4172
|
}
|
|
4155
4173
|
//#endregion
|
|
4156
4174
|
//#region node_modules/.pnpm/stylis@4.3.6/node_modules/stylis/src/Parser.js
|
|
4157
|
-
function
|
|
4158
|
-
return
|
|
4175
|
+
function Da(e) {
|
|
4176
|
+
return ba(Oa("", null, null, null, [""], e = ya(e), 0, [0], e));
|
|
4159
4177
|
}
|
|
4160
|
-
function
|
|
4178
|
+
function Oa(e, t, n, r, i, a, o, s, c) {
|
|
4161
4179
|
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 = $()) {
|
|
4162
|
-
case 40: if (m != 108 &&
|
|
4163
|
-
|
|
4180
|
+
case 40: if (m != 108 && ia(C, d - 1) == 58) {
|
|
4181
|
+
ra(C += na(xa(v), "&", "&\f"), "&\f", $i(l ? s[l - 1] : 0)) != -1 && (_ = -1);
|
|
4164
4182
|
break;
|
|
4165
4183
|
}
|
|
4166
4184
|
case 34:
|
|
4167
4185
|
case 39:
|
|
4168
4186
|
case 91:
|
|
4169
|
-
C +=
|
|
4187
|
+
C += xa(v);
|
|
4170
4188
|
break;
|
|
4171
4189
|
case 9:
|
|
4172
4190
|
case 10:
|
|
4173
4191
|
case 13:
|
|
4174
4192
|
case 32:
|
|
4175
|
-
C +=
|
|
4193
|
+
C += Sa(m);
|
|
4176
4194
|
break;
|
|
4177
4195
|
case 92:
|
|
4178
|
-
C +=
|
|
4196
|
+
C += Ca(ga() - 1, 7);
|
|
4179
4197
|
continue;
|
|
4180
4198
|
case 47:
|
|
4181
|
-
switch (
|
|
4199
|
+
switch (ha()) {
|
|
4182
4200
|
case 42:
|
|
4183
4201
|
case 47:
|
|
4184
|
-
|
|
4202
|
+
sa(Aa(Ta($(), ga()), t, n, c), c), (va(m || 1) == 5 || va(ha() || 1) == 5) && X(C) && aa(C, -1, void 0) !== " " && (C += " ");
|
|
4185
4203
|
break;
|
|
4186
4204
|
default: C += "/";
|
|
4187
4205
|
}
|
|
@@ -4194,20 +4212,20 @@ function Da(e, t, n, r, i, a, o, s, c) {
|
|
|
4194
4212
|
case 0:
|
|
4195
4213
|
case 125: g = 0;
|
|
4196
4214
|
case 59 + u:
|
|
4197
|
-
_ == -1 && (C =
|
|
4215
|
+
_ == -1 && (C = na(C, /\f/g, "")), p > 0 && (X(C) - d || h === 0 && m === 47) && sa(p > 32 ? ja(C + ";", r, n, d - 1, c) : ja(na(C, " ", "") + ";", r, n, d - 2, c), c);
|
|
4198
4216
|
break;
|
|
4199
4217
|
case 59: C += ";";
|
|
4200
|
-
default: if (
|
|
4218
|
+
default: if (sa(S = ka(C, t, n, l, u, i, s, y, b = [], x = [], d, a), a), v === 123) if (u === 0) Oa(C, t, S, S, b, a, d, s, x);
|
|
4201
4219
|
else {
|
|
4202
4220
|
switch (f) {
|
|
4203
|
-
case 99: if (
|
|
4204
|
-
case 108: if (
|
|
4221
|
+
case 99: if (ia(C, 3) === 110) break;
|
|
4222
|
+
case 108: if (ia(C, 2) === 97) break;
|
|
4205
4223
|
default: u = 0;
|
|
4206
4224
|
case 100:
|
|
4207
4225
|
case 109:
|
|
4208
4226
|
case 115:
|
|
4209
4227
|
}
|
|
4210
|
-
u ?
|
|
4228
|
+
u ? Oa(e, S, S, r && sa(ka(e, S, S, 0, 0, i, s, y, i, b = [], d, x), x), i, x, d, s, r ? b : x) : Oa(C, S, S, S, [""], x, 0, s, x);
|
|
4211
4229
|
}
|
|
4212
4230
|
}
|
|
4213
4231
|
l = u = p = 0, h = _ = 1, y = C = "", d = o;
|
|
@@ -4216,9 +4234,9 @@ function Da(e, t, n, r, i, a, o, s, c) {
|
|
|
4216
4234
|
default:
|
|
4217
4235
|
if (h < 1) {
|
|
4218
4236
|
if (v == 123) --h;
|
|
4219
|
-
else if (v == 125 && h++ == 0 &&
|
|
4237
|
+
else if (v == 125 && h++ == 0 && ma() == 125) continue;
|
|
4220
4238
|
}
|
|
4221
|
-
switch (C +=
|
|
4239
|
+
switch (C += ea(v), v * h) {
|
|
4222
4240
|
case 38:
|
|
4223
4241
|
_ = u > 0 ? 1 : (C += "\f", -1);
|
|
4224
4242
|
break;
|
|
@@ -4226,356 +4244,356 @@ function Da(e, t, n, r, i, a, o, s, c) {
|
|
|
4226
4244
|
s[l++] = (X(C) - 1) * _, _ = 1;
|
|
4227
4245
|
break;
|
|
4228
4246
|
case 64:
|
|
4229
|
-
|
|
4247
|
+
ha() === 45 && (C += xa($())), f = ha(), u = d = X(y = C += Ea(ga())), v++;
|
|
4230
4248
|
break;
|
|
4231
4249
|
case 45: m === 45 && X(C) == 2 && (h = 0);
|
|
4232
4250
|
}
|
|
4233
4251
|
}
|
|
4234
4252
|
return a;
|
|
4235
4253
|
}
|
|
4236
|
-
function
|
|
4237
|
-
for (var f = i - 1, p = i === 0 ? a : [""], m =
|
|
4238
|
-
return
|
|
4254
|
+
function ka(e, t, n, r, i, a, o, s, c, l, u, d) {
|
|
4255
|
+
for (var f = i - 1, p = i === 0 ? a : [""], m = oa(p), h = 0, g = 0, _ = 0; h < r; ++h) for (var v = 0, y = aa(e, f + 1, f = $i(g = o[h])), b = e; v < m; ++v) (b = ta(g > 0 ? p[v] + " " + y : na(y, /&\f/g, p[v]))) && (c[_++] = b);
|
|
4256
|
+
return fa(e, t, n, i === 0 ? qi : s, c, l, u, d);
|
|
4239
4257
|
}
|
|
4240
|
-
function
|
|
4241
|
-
return
|
|
4258
|
+
function Aa(e, t, n, r) {
|
|
4259
|
+
return fa(e, t, n, Ki, ea(pa()), aa(e, 2, -2), 0, r);
|
|
4242
4260
|
}
|
|
4243
|
-
function
|
|
4244
|
-
return
|
|
4261
|
+
function ja(e, t, n, r, i) {
|
|
4262
|
+
return fa(e, t, n, Ji, aa(e, 0, r), aa(e, r + 1, -1), r, i);
|
|
4245
4263
|
}
|
|
4246
4264
|
//#endregion
|
|
4247
4265
|
//#region node_modules/.pnpm/stylis@4.3.6/node_modules/stylis/src/Serializer.js
|
|
4248
|
-
function
|
|
4266
|
+
function Ma(e, t) {
|
|
4249
4267
|
for (var n = "", r = 0; r < e.length; r++) n += t(e[r], r, e, t) || "";
|
|
4250
4268
|
return n;
|
|
4251
4269
|
}
|
|
4252
|
-
function
|
|
4270
|
+
function Na(e, t, n, r) {
|
|
4253
4271
|
switch (e.type) {
|
|
4254
|
-
case
|
|
4255
|
-
case Ji:
|
|
4272
|
+
case Qi: if (e.children.length) break;
|
|
4256
4273
|
case Yi:
|
|
4257
|
-
case
|
|
4258
|
-
case
|
|
4259
|
-
case
|
|
4260
|
-
case
|
|
4274
|
+
case Xi:
|
|
4275
|
+
case Ji: return e.return = e.return || e.value;
|
|
4276
|
+
case Ki: return "";
|
|
4277
|
+
case Zi: return e.return = e.value + "{" + Ma(e.children, r) + "}";
|
|
4278
|
+
case qi: if (!X(e.value = e.props.join(","))) return "";
|
|
4261
4279
|
}
|
|
4262
|
-
return X(n =
|
|
4280
|
+
return X(n = Ma(e.children, r)) ? e.return = e.value + "{" + n + "}" : "";
|
|
4263
4281
|
}
|
|
4264
4282
|
//#endregion
|
|
4265
4283
|
//#region node_modules/.pnpm/lodash-es@4.17.21/node_modules/lodash-es/_nativeKeys.js
|
|
4266
|
-
var
|
|
4267
|
-
function
|
|
4268
|
-
if (!pe(e)) return
|
|
4284
|
+
var Pa = ae(Object.keys, Object), Fa = Object.prototype.hasOwnProperty;
|
|
4285
|
+
function Ia(e) {
|
|
4286
|
+
if (!pe(e)) return Pa(e);
|
|
4269
4287
|
var t = [];
|
|
4270
|
-
for (var n in Object(e))
|
|
4288
|
+
for (var n in Object(e)) Fa.call(e, n) && n != "constructor" && t.push(n);
|
|
4271
4289
|
return t;
|
|
4272
4290
|
}
|
|
4273
4291
|
//#endregion
|
|
4274
4292
|
//#region node_modules/.pnpm/lodash-es@4.17.21/node_modules/lodash-es/_DataView.js
|
|
4275
|
-
var
|
|
4276
|
-
(
|
|
4277
|
-
var t = ce(e), n = t ==
|
|
4293
|
+
var La = he(oe, "DataView"), Ra = he(oe, "Promise"), za = he(oe, "Set"), Ba = he(oe, "WeakMap"), Va = "[object Map]", Ha = "[object Object]", Ua = "[object Promise]", Wa = "[object Set]", Ga = "[object WeakMap]", Ka = "[object DataView]", qa = P(La), Ja = P(se), Ya = P(Ra), Xa = P(za), Za = P(Ba), Qa = ce;
|
|
4294
|
+
(La && Qa(new La(/* @__PURE__ */ new ArrayBuffer(1))) != Ka || se && Qa(new se()) != Va || Ra && Qa(Ra.resolve()) != Ua || za && Qa(new za()) != Wa || Ba && Qa(new Ba()) != Ga) && (Qa = function(e) {
|
|
4295
|
+
var t = ce(e), n = t == Ha ? e.constructor : void 0, r = n ? P(n) : "";
|
|
4278
4296
|
if (r) switch (r) {
|
|
4279
|
-
case
|
|
4280
|
-
case
|
|
4281
|
-
case Ja: return Ha;
|
|
4297
|
+
case qa: return Ka;
|
|
4298
|
+
case Ja: return Va;
|
|
4282
4299
|
case Ya: return Ua;
|
|
4283
4300
|
case Xa: return Wa;
|
|
4301
|
+
case Za: return Ga;
|
|
4284
4302
|
}
|
|
4285
4303
|
return t;
|
|
4286
4304
|
});
|
|
4287
|
-
var
|
|
4288
|
-
function
|
|
4305
|
+
var $a = Qa, eo = "[object Map]", to = "[object Set]", no = Object.prototype.hasOwnProperty;
|
|
4306
|
+
function ro(e) {
|
|
4289
4307
|
if (e == null) return !0;
|
|
4290
4308
|
if (fe(e) && (le(e) || typeof e == "string" || typeof e.splice == "function" || ue(e) || de(e) || me(e))) return !e.length;
|
|
4291
|
-
var t =
|
|
4292
|
-
if (t ==
|
|
4293
|
-
if (pe(e)) return !
|
|
4294
|
-
for (var n in e) if (
|
|
4309
|
+
var t = $a(e);
|
|
4310
|
+
if (t == eo || t == to) return !e.size;
|
|
4311
|
+
if (pe(e)) return !Ia(e).length;
|
|
4312
|
+
for (var n in e) if (no.call(e, n)) return !1;
|
|
4295
4313
|
return !0;
|
|
4296
4314
|
}
|
|
4297
4315
|
//#endregion
|
|
4298
4316
|
//#region node_modules/.pnpm/mermaid@11.12.0/node_modules/mermaid/dist/mermaid.core.mjs
|
|
4299
|
-
var
|
|
4300
|
-
id:
|
|
4317
|
+
var io = "c4", ao = {
|
|
4318
|
+
id: io,
|
|
4301
4319
|
detector: /* @__PURE__ */ a((e) => /^\s*C4Context|C4Container|C4Component|C4Dynamic|C4Deployment/.test(e), "detector"),
|
|
4302
4320
|
loader: /* @__PURE__ */ a(async () => {
|
|
4303
4321
|
let { diagram: e } = await import("./c4Diagram-YG6GDRKO-CIThIYo6.js");
|
|
4304
4322
|
return {
|
|
4305
|
-
id:
|
|
4323
|
+
id: io,
|
|
4306
4324
|
diagram: e
|
|
4307
4325
|
};
|
|
4308
4326
|
}, "loader")
|
|
4309
|
-
},
|
|
4310
|
-
id:
|
|
4327
|
+
}, oo = "flowchart", so = {
|
|
4328
|
+
id: oo,
|
|
4311
4329
|
detector: /* @__PURE__ */ a((e, t) => t?.flowchart?.defaultRenderer === "dagre-wrapper" || t?.flowchart?.defaultRenderer === "elk" ? !1 : /^\s*graph/.test(e), "detector"),
|
|
4312
4330
|
loader: /* @__PURE__ */ a(async () => {
|
|
4313
|
-
let { diagram: e } = await import("./flowDiagram-NV44I4VS-
|
|
4331
|
+
let { diagram: e } = await import("./flowDiagram-NV44I4VS-CEliIL_u.js");
|
|
4314
4332
|
return {
|
|
4315
|
-
id:
|
|
4333
|
+
id: oo,
|
|
4316
4334
|
diagram: e
|
|
4317
4335
|
};
|
|
4318
4336
|
}, "loader")
|
|
4319
|
-
},
|
|
4320
|
-
id:
|
|
4337
|
+
}, co = "flowchart-v2", lo = {
|
|
4338
|
+
id: co,
|
|
4321
4339
|
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"),
|
|
4322
4340
|
loader: /* @__PURE__ */ a(async () => {
|
|
4323
|
-
let { diagram: e } = await import("./flowDiagram-NV44I4VS-
|
|
4341
|
+
let { diagram: e } = await import("./flowDiagram-NV44I4VS-CEliIL_u.js");
|
|
4324
4342
|
return {
|
|
4325
|
-
id:
|
|
4343
|
+
id: co,
|
|
4326
4344
|
diagram: e
|
|
4327
4345
|
};
|
|
4328
4346
|
}, "loader")
|
|
4329
|
-
},
|
|
4330
|
-
id:
|
|
4347
|
+
}, uo = "er", fo = {
|
|
4348
|
+
id: uo,
|
|
4331
4349
|
detector: /* @__PURE__ */ a((e) => /^\s*erDiagram/.test(e), "detector"),
|
|
4332
4350
|
loader: /* @__PURE__ */ a(async () => {
|
|
4333
|
-
let { diagram: e } = await import("./erDiagram-Q2GNP2WA-
|
|
4351
|
+
let { diagram: e } = await import("./erDiagram-Q2GNP2WA-Bv8DMAr7.js");
|
|
4334
4352
|
return {
|
|
4335
|
-
id:
|
|
4353
|
+
id: uo,
|
|
4336
4354
|
diagram: e
|
|
4337
4355
|
};
|
|
4338
4356
|
}, "loader")
|
|
4339
|
-
},
|
|
4340
|
-
id:
|
|
4357
|
+
}, po = "gitGraph", mo = {
|
|
4358
|
+
id: po,
|
|
4341
4359
|
detector: /* @__PURE__ */ a((e) => /^\s*gitGraph/.test(e), "detector"),
|
|
4342
4360
|
loader: /* @__PURE__ */ a(async () => {
|
|
4343
|
-
let { diagram: e } = await import("./gitGraphDiagram-NY62KEGX-
|
|
4361
|
+
let { diagram: e } = await import("./gitGraphDiagram-NY62KEGX-DBBSI-oa.js");
|
|
4344
4362
|
return {
|
|
4345
|
-
id:
|
|
4363
|
+
id: po,
|
|
4346
4364
|
diagram: e
|
|
4347
4365
|
};
|
|
4348
4366
|
}, "loader")
|
|
4349
|
-
},
|
|
4350
|
-
id:
|
|
4367
|
+
}, ho = "gantt", go = {
|
|
4368
|
+
id: ho,
|
|
4351
4369
|
detector: /* @__PURE__ */ a((e) => /^\s*gantt/.test(e), "detector"),
|
|
4352
4370
|
loader: /* @__PURE__ */ a(async () => {
|
|
4353
4371
|
let { diagram: e } = await import("./ganttDiagram-LVOFAZNH-DqT7pu4m.js");
|
|
4354
4372
|
return {
|
|
4355
|
-
id:
|
|
4373
|
+
id: ho,
|
|
4356
4374
|
diagram: e
|
|
4357
4375
|
};
|
|
4358
4376
|
}, "loader")
|
|
4359
|
-
},
|
|
4360
|
-
id:
|
|
4377
|
+
}, _o = "info", vo = {
|
|
4378
|
+
id: _o,
|
|
4361
4379
|
detector: /* @__PURE__ */ a((e) => /^\s*info/.test(e), "detector"),
|
|
4362
4380
|
loader: /* @__PURE__ */ a(async () => {
|
|
4363
|
-
let { diagram: e } = await import("./infoDiagram-F6ZHWCRC
|
|
4381
|
+
let { diagram: e } = await import("./infoDiagram-F6ZHWCRC--PM3wKfu.js");
|
|
4364
4382
|
return {
|
|
4365
|
-
id:
|
|
4383
|
+
id: _o,
|
|
4366
4384
|
diagram: e
|
|
4367
4385
|
};
|
|
4368
4386
|
}, "loader")
|
|
4369
|
-
},
|
|
4370
|
-
id:
|
|
4387
|
+
}, yo = "pie", bo = {
|
|
4388
|
+
id: yo,
|
|
4371
4389
|
detector: /* @__PURE__ */ a((e) => /^\s*pie/.test(e), "detector"),
|
|
4372
4390
|
loader: /* @__PURE__ */ a(async () => {
|
|
4373
|
-
let { diagram: e } = await import("./pieDiagram-ADFJNKIX-
|
|
4391
|
+
let { diagram: e } = await import("./pieDiagram-ADFJNKIX-DnFUaNhH.js");
|
|
4374
4392
|
return {
|
|
4375
|
-
id:
|
|
4393
|
+
id: yo,
|
|
4376
4394
|
diagram: e
|
|
4377
4395
|
};
|
|
4378
4396
|
}, "loader")
|
|
4379
|
-
},
|
|
4380
|
-
id:
|
|
4397
|
+
}, xo = "quadrantChart", So = {
|
|
4398
|
+
id: xo,
|
|
4381
4399
|
detector: /* @__PURE__ */ a((e) => /^\s*quadrantChart/.test(e), "detector"),
|
|
4382
4400
|
loader: /* @__PURE__ */ a(async () => {
|
|
4383
4401
|
let { diagram: e } = await import("./quadrantDiagram-AYHSOK5B-DRutDK03.js");
|
|
4384
4402
|
return {
|
|
4385
|
-
id:
|
|
4403
|
+
id: xo,
|
|
4386
4404
|
diagram: e
|
|
4387
4405
|
};
|
|
4388
4406
|
}, "loader")
|
|
4389
|
-
},
|
|
4390
|
-
id:
|
|
4407
|
+
}, Co = "xychart", wo = {
|
|
4408
|
+
id: Co,
|
|
4391
4409
|
detector: /* @__PURE__ */ a((e) => /^\s*xychart(-beta)?/.test(e), "detector"),
|
|
4392
4410
|
loader: /* @__PURE__ */ a(async () => {
|
|
4393
|
-
let { diagram: e } = await import("./xychartDiagram-PRI3JC2R-
|
|
4411
|
+
let { diagram: e } = await import("./xychartDiagram-PRI3JC2R-10qi3cyY.js");
|
|
4394
4412
|
return {
|
|
4395
|
-
id:
|
|
4413
|
+
id: Co,
|
|
4396
4414
|
diagram: e
|
|
4397
4415
|
};
|
|
4398
4416
|
}, "loader")
|
|
4399
|
-
},
|
|
4400
|
-
id:
|
|
4417
|
+
}, To = "requirement", Eo = {
|
|
4418
|
+
id: To,
|
|
4401
4419
|
detector: /* @__PURE__ */ a((e) => /^\s*requirement(Diagram)?/.test(e), "detector"),
|
|
4402
4420
|
loader: /* @__PURE__ */ a(async () => {
|
|
4403
|
-
let { diagram: e } = await import("./requirementDiagram-UZGBJVZJ-
|
|
4421
|
+
let { diagram: e } = await import("./requirementDiagram-UZGBJVZJ-pYl3NV8Q.js");
|
|
4404
4422
|
return {
|
|
4405
|
-
id:
|
|
4423
|
+
id: To,
|
|
4406
4424
|
diagram: e
|
|
4407
4425
|
};
|
|
4408
4426
|
}, "loader")
|
|
4409
|
-
},
|
|
4410
|
-
id:
|
|
4427
|
+
}, Do = "sequence", Oo = {
|
|
4428
|
+
id: Do,
|
|
4411
4429
|
detector: /* @__PURE__ */ a((e) => /^\s*sequenceDiagram/.test(e), "detector"),
|
|
4412
4430
|
loader: /* @__PURE__ */ a(async () => {
|
|
4413
|
-
let { diagram: e } = await import("./sequenceDiagram-WL72ISMW-
|
|
4431
|
+
let { diagram: e } = await import("./sequenceDiagram-WL72ISMW-Dje8cRzT.js");
|
|
4414
4432
|
return {
|
|
4415
|
-
id:
|
|
4433
|
+
id: Do,
|
|
4416
4434
|
diagram: e
|
|
4417
4435
|
};
|
|
4418
4436
|
}, "loader")
|
|
4419
|
-
},
|
|
4420
|
-
id:
|
|
4437
|
+
}, ko = "class", Ao = {
|
|
4438
|
+
id: ko,
|
|
4421
4439
|
detector: /* @__PURE__ */ a((e, t) => t?.class?.defaultRenderer === "dagre-wrapper" ? !1 : /^\s*classDiagram/.test(e), "detector"),
|
|
4422
4440
|
loader: /* @__PURE__ */ a(async () => {
|
|
4423
|
-
let { diagram: e } = await import("./classDiagram-2ON5EDUG-
|
|
4441
|
+
let { diagram: e } = await import("./classDiagram-2ON5EDUG-BkjzOYcB.js");
|
|
4424
4442
|
return {
|
|
4425
|
-
id:
|
|
4443
|
+
id: ko,
|
|
4426
4444
|
diagram: e
|
|
4427
4445
|
};
|
|
4428
4446
|
}, "loader")
|
|
4429
|
-
},
|
|
4430
|
-
id:
|
|
4447
|
+
}, jo = "classDiagram", Mo = {
|
|
4448
|
+
id: jo,
|
|
4431
4449
|
detector: /* @__PURE__ */ a((e, t) => /^\s*classDiagram/.test(e) && t?.class?.defaultRenderer === "dagre-wrapper" ? !0 : /^\s*classDiagram-v2/.test(e), "detector"),
|
|
4432
4450
|
loader: /* @__PURE__ */ a(async () => {
|
|
4433
|
-
let { diagram: e } = await import("./classDiagram-v2-WZHVMYZB-
|
|
4451
|
+
let { diagram: e } = await import("./classDiagram-v2-WZHVMYZB-C1tORf6V.js");
|
|
4434
4452
|
return {
|
|
4435
|
-
id:
|
|
4453
|
+
id: jo,
|
|
4436
4454
|
diagram: e
|
|
4437
4455
|
};
|
|
4438
4456
|
}, "loader")
|
|
4439
|
-
},
|
|
4440
|
-
id:
|
|
4457
|
+
}, No = "state", Po = {
|
|
4458
|
+
id: No,
|
|
4441
4459
|
detector: /* @__PURE__ */ a((e, t) => t?.state?.defaultRenderer === "dagre-wrapper" ? !1 : /^\s*stateDiagram/.test(e), "detector"),
|
|
4442
4460
|
loader: /* @__PURE__ */ a(async () => {
|
|
4443
|
-
let { diagram: e } = await import("./stateDiagram-FKZM4ZOC-
|
|
4461
|
+
let { diagram: e } = await import("./stateDiagram-FKZM4ZOC-DYs-XmmC.js");
|
|
4444
4462
|
return {
|
|
4445
|
-
id:
|
|
4463
|
+
id: No,
|
|
4446
4464
|
diagram: e
|
|
4447
4465
|
};
|
|
4448
4466
|
}, "loader")
|
|
4449
|
-
},
|
|
4450
|
-
id:
|
|
4467
|
+
}, Fo = "stateDiagram", Io = {
|
|
4468
|
+
id: Fo,
|
|
4451
4469
|
detector: /* @__PURE__ */ a((e, t) => !!(/^\s*stateDiagram-v2/.test(e) || /^\s*stateDiagram/.test(e) && t?.state?.defaultRenderer === "dagre-wrapper"), "detector"),
|
|
4452
4470
|
loader: /* @__PURE__ */ a(async () => {
|
|
4453
|
-
let { diagram: e } = await import("./stateDiagram-v2-4FDKWEC3-
|
|
4471
|
+
let { diagram: e } = await import("./stateDiagram-v2-4FDKWEC3-DzKwIUrT.js");
|
|
4454
4472
|
return {
|
|
4455
|
-
id:
|
|
4473
|
+
id: Fo,
|
|
4456
4474
|
diagram: e
|
|
4457
4475
|
};
|
|
4458
4476
|
}, "loader")
|
|
4459
|
-
},
|
|
4460
|
-
id:
|
|
4477
|
+
}, Lo = "journey", Ro = {
|
|
4478
|
+
id: Lo,
|
|
4461
4479
|
detector: /* @__PURE__ */ a((e) => /^\s*journey/.test(e), "detector"),
|
|
4462
4480
|
loader: /* @__PURE__ */ a(async () => {
|
|
4463
4481
|
let { diagram: e } = await import("./journeyDiagram-XKPGCS4Q-DB7INfrf.js");
|
|
4464
4482
|
return {
|
|
4465
|
-
id:
|
|
4483
|
+
id: Lo,
|
|
4466
4484
|
diagram: e
|
|
4467
4485
|
};
|
|
4468
4486
|
}, "loader")
|
|
4469
|
-
},
|
|
4487
|
+
}, zo = { draw: /* @__PURE__ */ a((e, t, n) => {
|
|
4470
4488
|
i.debug("rendering svg for syntax error\n");
|
|
4471
|
-
let r =
|
|
4489
|
+
let r = dt(t), a = r.append("g");
|
|
4472
4490
|
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}`);
|
|
4473
|
-
}, "draw") },
|
|
4491
|
+
}, "draw") }, Bo = zo, Vo = {
|
|
4474
4492
|
db: {},
|
|
4475
|
-
renderer:
|
|
4493
|
+
renderer: zo,
|
|
4476
4494
|
parser: { parse: /* @__PURE__ */ a(() => {}, "parse") }
|
|
4477
|
-
},
|
|
4478
|
-
id:
|
|
4495
|
+
}, Ho = "flowchart-elk", Uo = {
|
|
4496
|
+
id: Ho,
|
|
4479
4497
|
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"),
|
|
4480
4498
|
loader: /* @__PURE__ */ a(async () => {
|
|
4481
|
-
let { diagram: e } = await import("./flowDiagram-NV44I4VS-
|
|
4499
|
+
let { diagram: e } = await import("./flowDiagram-NV44I4VS-CEliIL_u.js");
|
|
4482
4500
|
return {
|
|
4483
|
-
id:
|
|
4501
|
+
id: Ho,
|
|
4484
4502
|
diagram: e
|
|
4485
4503
|
};
|
|
4486
4504
|
}, "loader")
|
|
4487
|
-
},
|
|
4488
|
-
id:
|
|
4505
|
+
}, Wo = "timeline", Go = {
|
|
4506
|
+
id: Wo,
|
|
4489
4507
|
detector: /* @__PURE__ */ a((e) => /^\s*timeline/.test(e), "detector"),
|
|
4490
4508
|
loader: /* @__PURE__ */ a(async () => {
|
|
4491
4509
|
let { diagram: e } = await import("./timeline-definition-IT6M3QCI-C9VMls3W.js");
|
|
4492
4510
|
return {
|
|
4493
|
-
id:
|
|
4511
|
+
id: Wo,
|
|
4494
4512
|
diagram: e
|
|
4495
4513
|
};
|
|
4496
4514
|
}, "loader")
|
|
4497
|
-
},
|
|
4498
|
-
id:
|
|
4515
|
+
}, Ko = "mindmap", qo = {
|
|
4516
|
+
id: Ko,
|
|
4499
4517
|
detector: /* @__PURE__ */ a((e) => /^\s*mindmap/.test(e), "detector"),
|
|
4500
4518
|
loader: /* @__PURE__ */ a(async () => {
|
|
4501
|
-
let { diagram: e } = await import("./mindmap-definition-VGOIOE7T-
|
|
4519
|
+
let { diagram: e } = await import("./mindmap-definition-VGOIOE7T-ez_afevb.js");
|
|
4502
4520
|
return {
|
|
4503
|
-
id:
|
|
4521
|
+
id: Ko,
|
|
4504
4522
|
diagram: e
|
|
4505
4523
|
};
|
|
4506
4524
|
}, "loader")
|
|
4507
|
-
},
|
|
4508
|
-
id:
|
|
4525
|
+
}, Jo = "kanban", Yo = {
|
|
4526
|
+
id: Jo,
|
|
4509
4527
|
detector: /* @__PURE__ */ a((e) => /^\s*kanban/.test(e), "detector"),
|
|
4510
4528
|
loader: /* @__PURE__ */ a(async () => {
|
|
4511
|
-
let { diagram: e } = await import("./kanban-definition-3W4ZIXB7-
|
|
4529
|
+
let { diagram: e } = await import("./kanban-definition-3W4ZIXB7-DHhTxyFH.js");
|
|
4512
4530
|
return {
|
|
4513
|
-
id:
|
|
4531
|
+
id: Jo,
|
|
4514
4532
|
diagram: e
|
|
4515
4533
|
};
|
|
4516
4534
|
}, "loader")
|
|
4517
|
-
},
|
|
4518
|
-
id:
|
|
4535
|
+
}, Xo = "sankey", Zo = {
|
|
4536
|
+
id: Xo,
|
|
4519
4537
|
detector: /* @__PURE__ */ a((e) => /^\s*sankey(-beta)?/.test(e), "detector"),
|
|
4520
4538
|
loader: /* @__PURE__ */ a(async () => {
|
|
4521
4539
|
let { diagram: e } = await import("./sankeyDiagram-TZEHDZUN-DD6bkI4Z.js");
|
|
4522
4540
|
return {
|
|
4523
|
-
id:
|
|
4541
|
+
id: Xo,
|
|
4524
4542
|
diagram: e
|
|
4525
4543
|
};
|
|
4526
4544
|
}, "loader")
|
|
4527
|
-
},
|
|
4528
|
-
id:
|
|
4545
|
+
}, Qo = "packet", $o = {
|
|
4546
|
+
id: Qo,
|
|
4529
4547
|
detector: /* @__PURE__ */ a((e) => /^\s*packet(-beta)?/.test(e), "detector"),
|
|
4530
4548
|
loader: /* @__PURE__ */ a(async () => {
|
|
4531
|
-
let { diagram: e } = await import("./diagram-S2PKOQOG-
|
|
4549
|
+
let { diagram: e } = await import("./diagram-S2PKOQOG-BSyOCAO-.js");
|
|
4532
4550
|
return {
|
|
4533
|
-
id:
|
|
4551
|
+
id: Qo,
|
|
4534
4552
|
diagram: e
|
|
4535
4553
|
};
|
|
4536
4554
|
}, "loader")
|
|
4537
|
-
},
|
|
4538
|
-
id:
|
|
4555
|
+
}, es = "radar", ts = {
|
|
4556
|
+
id: es,
|
|
4539
4557
|
detector: /* @__PURE__ */ a((e) => /^\s*radar-beta/.test(e), "detector"),
|
|
4540
4558
|
loader: /* @__PURE__ */ a(async () => {
|
|
4541
|
-
let { diagram: e } = await import("./diagram-QEK2KX5R-
|
|
4559
|
+
let { diagram: e } = await import("./diagram-QEK2KX5R-DGkgy9JJ.js");
|
|
4542
4560
|
return {
|
|
4543
|
-
id:
|
|
4561
|
+
id: es,
|
|
4544
4562
|
diagram: e
|
|
4545
4563
|
};
|
|
4546
4564
|
}, "loader")
|
|
4547
|
-
},
|
|
4548
|
-
id:
|
|
4565
|
+
}, ns = "block", rs = {
|
|
4566
|
+
id: ns,
|
|
4549
4567
|
detector: /* @__PURE__ */ a((e) => /^\s*block(-beta)?/.test(e), "detector"),
|
|
4550
4568
|
loader: /* @__PURE__ */ a(async () => {
|
|
4551
|
-
let { diagram: e } = await import("./blockDiagram-VD42YOAC-
|
|
4569
|
+
let { diagram: e } = await import("./blockDiagram-VD42YOAC-oDdaxEWg.js");
|
|
4552
4570
|
return {
|
|
4553
|
-
id:
|
|
4571
|
+
id: ns,
|
|
4554
4572
|
diagram: e
|
|
4555
4573
|
};
|
|
4556
4574
|
}, "loader")
|
|
4557
|
-
},
|
|
4558
|
-
id:
|
|
4575
|
+
}, is = "architecture", as = {
|
|
4576
|
+
id: is,
|
|
4559
4577
|
detector: /* @__PURE__ */ a((e) => /^\s*architecture/.test(e), "detector"),
|
|
4560
4578
|
loader: /* @__PURE__ */ a(async () => {
|
|
4561
|
-
let { diagram: e } = await import("./architectureDiagram-VXUJARFQ-
|
|
4579
|
+
let { diagram: e } = await import("./architectureDiagram-VXUJARFQ-CjxvnYE7.js");
|
|
4562
4580
|
return {
|
|
4563
|
-
id:
|
|
4581
|
+
id: is,
|
|
4564
4582
|
diagram: e
|
|
4565
4583
|
};
|
|
4566
4584
|
}, "loader")
|
|
4567
|
-
},
|
|
4568
|
-
id:
|
|
4585
|
+
}, os = "treemap", ss = {
|
|
4586
|
+
id: os,
|
|
4569
4587
|
detector: /* @__PURE__ */ a((e) => /^\s*treemap/.test(e), "detector"),
|
|
4570
4588
|
loader: /* @__PURE__ */ a(async () => {
|
|
4571
|
-
let { diagram: e } = await import("./diagram-PSM6KHXK-
|
|
4589
|
+
let { diagram: e } = await import("./diagram-PSM6KHXK-CBe5oVqM.js");
|
|
4572
4590
|
return {
|
|
4573
|
-
id:
|
|
4591
|
+
id: os,
|
|
4574
4592
|
diagram: e
|
|
4575
4593
|
};
|
|
4576
4594
|
}, "loader")
|
|
4577
|
-
},
|
|
4578
|
-
|
|
4595
|
+
}, cs = !1, ls = /* @__PURE__ */ a(() => {
|
|
4596
|
+
cs || (cs = !0, x("error", Vo, (e) => e.toLowerCase().trim() === "error"), x("---", {
|
|
4579
4597
|
db: { clear: /* @__PURE__ */ a(() => {}, "clear") },
|
|
4580
4598
|
styles: {},
|
|
4581
4599
|
renderer: { draw: /* @__PURE__ */ a(() => {}, "draw") },
|
|
@@ -4583,8 +4601,8 @@ var ro = "c4", io = {
|
|
|
4583
4601
|
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");
|
|
4584
4602
|
}, "parse") },
|
|
4585
4603
|
init: /* @__PURE__ */ a(() => null, "init")
|
|
4586
|
-
}, (e) => e.toLowerCase().trimStart().startsWith("---")), c(
|
|
4587
|
-
}, "addDiagrams"),
|
|
4604
|
+
}, (e) => e.toLowerCase().trimStart().startsWith("---")), c(Uo, qo, as), c(ao, Yo, Mo, Ao, fo, go, vo, bo, Eo, Oo, lo, so, Go, mo, Io, Po, Ro, So, Zo, $o, wo, rs, ts, ss));
|
|
4605
|
+
}, "addDiagrams"), us = /* @__PURE__ */ a(async () => {
|
|
4588
4606
|
i.debug("Loading registered diagrams");
|
|
4589
4607
|
let e = (await Promise.allSettled(Object.entries(w).map(async ([e, { detector: t, loader: n }]) => {
|
|
4590
4608
|
if (n) try {
|
|
@@ -4603,12 +4621,12 @@ var ro = "c4", io = {
|
|
|
4603
4621
|
for (let t of e) i.error(t);
|
|
4604
4622
|
throw Error(`Failed to load ${e.length} external diagrams`);
|
|
4605
4623
|
}
|
|
4606
|
-
}, "loadRegisteredDiagrams"),
|
|
4607
|
-
function
|
|
4608
|
-
e.attr("role",
|
|
4624
|
+
}, "loadRegisteredDiagrams"), ds = "graphics-document document";
|
|
4625
|
+
function fs(e, t) {
|
|
4626
|
+
e.attr("role", ds), t !== "" && e.attr("aria-roledescription", t);
|
|
4609
4627
|
}
|
|
4610
|
-
a(
|
|
4611
|
-
function
|
|
4628
|
+
a(fs, "setA11yDiagramInfo");
|
|
4629
|
+
function ps(e, t, n, r) {
|
|
4612
4630
|
if (e.insert !== void 0) {
|
|
4613
4631
|
if (n) {
|
|
4614
4632
|
let t = `chart-desc-${r}`;
|
|
@@ -4620,8 +4638,8 @@ function fs(e, t, n, r) {
|
|
|
4620
4638
|
}
|
|
4621
4639
|
}
|
|
4622
4640
|
}
|
|
4623
|
-
a(
|
|
4624
|
-
var
|
|
4641
|
+
a(ps, "addSVGa11yTitleDescription");
|
|
4642
|
+
var ms = class e {
|
|
4625
4643
|
constructor(e, t, n, r, i) {
|
|
4626
4644
|
this.type = e, this.text = t, this.db = n, this.parser = r, this.renderer = i;
|
|
4627
4645
|
}
|
|
@@ -4651,18 +4669,18 @@ var ps = class e {
|
|
|
4651
4669
|
getType() {
|
|
4652
4670
|
return this.type;
|
|
4653
4671
|
}
|
|
4654
|
-
},
|
|
4655
|
-
|
|
4672
|
+
}, hs = [], gs = /* @__PURE__ */ a(() => {
|
|
4673
|
+
hs.forEach((e) => {
|
|
4656
4674
|
e();
|
|
4657
|
-
}),
|
|
4658
|
-
}, "attachFunctions"),
|
|
4659
|
-
function
|
|
4675
|
+
}), hs = [];
|
|
4676
|
+
}, "attachFunctions"), _s = /* @__PURE__ */ a((e) => e.replace(/^\s*%%(?!{)[^\n]+\n?/gm, "").trimStart(), "cleanupComments");
|
|
4677
|
+
function vs(e) {
|
|
4660
4678
|
let t = e.match(y);
|
|
4661
4679
|
if (!t) return {
|
|
4662
4680
|
text: e,
|
|
4663
4681
|
metadata: {}
|
|
4664
4682
|
};
|
|
4665
|
-
let n =
|
|
4683
|
+
let n = Bi(t[1], { schema: zi }) ?? {};
|
|
4666
4684
|
n = typeof n == "object" && !Array.isArray(n) ? n : {};
|
|
4667
4685
|
let r = {};
|
|
4668
4686
|
return n.displayMode && (r.displayMode = n.displayMode.toString()), n.title && (r.title = n.title.toString()), n.config && (r.config = n.config), {
|
|
@@ -4670,47 +4688,47 @@ function _s(e) {
|
|
|
4670
4688
|
metadata: r
|
|
4671
4689
|
};
|
|
4672
4690
|
}
|
|
4673
|
-
a(
|
|
4674
|
-
var
|
|
4675
|
-
let { text: t, metadata: n } =
|
|
4691
|
+
a(vs, "extractFrontMatter");
|
|
4692
|
+
var ys = /* @__PURE__ */ a((e) => e.replace(/\r\n?/g, "\n").replace(/<(\w+)([^>]*)>/g, (e, t, n) => "<" + t + n.replace(/="([^"]*)"/g, "='$1'") + ">"), "cleanupText"), bs = /* @__PURE__ */ a((e) => {
|
|
4693
|
+
let { text: t, metadata: n } = vs(e), { displayMode: r, title: i, config: a = {} } = n;
|
|
4676
4694
|
return r && (a.gantt ||= {}, a.gantt.displayMode = r), {
|
|
4677
4695
|
title: i,
|
|
4678
4696
|
config: a,
|
|
4679
4697
|
text: t
|
|
4680
4698
|
};
|
|
4681
|
-
}, "processFrontmatter"),
|
|
4699
|
+
}, "processFrontmatter"), xs = /* @__PURE__ */ a((e) => {
|
|
4682
4700
|
let t = N.detectInit(e) ?? {}, n = N.detectDirective(e, "wrap");
|
|
4683
4701
|
return Array.isArray(n) ? t.wrap = n.some(({ type: e }) => e === "wrap") : n?.type === "wrap" && (t.wrap = !0), {
|
|
4684
4702
|
text: ne(e),
|
|
4685
4703
|
directive: t
|
|
4686
4704
|
};
|
|
4687
4705
|
}, "processDirectives");
|
|
4688
|
-
function
|
|
4689
|
-
let t = ys(
|
|
4690
|
-
return e =
|
|
4706
|
+
function Ss(e) {
|
|
4707
|
+
let t = bs(ys(e)), n = xs(t.text), r = re(t.config, n.directive);
|
|
4708
|
+
return e = _s(n.text), {
|
|
4691
4709
|
code: e,
|
|
4692
4710
|
title: t.title,
|
|
4693
4711
|
config: r
|
|
4694
4712
|
};
|
|
4695
4713
|
}
|
|
4696
|
-
a(
|
|
4697
|
-
function
|
|
4714
|
+
a(Ss, "preprocessDiagram");
|
|
4715
|
+
function Cs(e) {
|
|
4698
4716
|
let t = new TextEncoder().encode(e), n = Array.from(t, (e) => String.fromCodePoint(e)).join("");
|
|
4699
4717
|
return btoa(n);
|
|
4700
4718
|
}
|
|
4701
|
-
a(
|
|
4702
|
-
var
|
|
4703
|
-
function
|
|
4704
|
-
let t =
|
|
4719
|
+
a(Cs, "toBase64");
|
|
4720
|
+
var ws = 5e4, Ts = "graph TB;a[Maximum text size in diagram exceeded];style a fill:#faa", Es = "sandbox", Ds = "loose", Os = "http://www.w3.org/2000/svg", ks = "http://www.w3.org/1999/xlink", As = "http://www.w3.org/1999/xhtml", js = "100%", Ms = "100%", Ns = "border:0;margin:0;", Ps = "margin:0", Fs = "allow-top-navigation-by-user-activation allow-popups", Is = "The \"iframe\" tag is not supported by your browser.", Ls = ["foreignobject"], Rs = ["dominant-baseline"];
|
|
4721
|
+
function zs(e) {
|
|
4722
|
+
let t = Ss(e);
|
|
4705
4723
|
return l(), C(t.config ?? {}), t;
|
|
4706
4724
|
}
|
|
4707
|
-
a(
|
|
4708
|
-
async function
|
|
4709
|
-
|
|
4725
|
+
a(zs, "processAndSetConfigs");
|
|
4726
|
+
async function Bs(e, t) {
|
|
4727
|
+
ls();
|
|
4710
4728
|
try {
|
|
4711
|
-
let { code: t, config: n } =
|
|
4729
|
+
let { code: t, config: n } = zs(e);
|
|
4712
4730
|
return {
|
|
4713
|
-
diagramType: (await
|
|
4731
|
+
diagramType: (await Zs(t)).type,
|
|
4714
4732
|
config: n
|
|
4715
4733
|
};
|
|
4716
4734
|
} catch (e) {
|
|
@@ -4718,9 +4736,9 @@ async function zs(e, t) {
|
|
|
4718
4736
|
throw e;
|
|
4719
4737
|
}
|
|
4720
4738
|
}
|
|
4721
|
-
a(
|
|
4722
|
-
var
|
|
4723
|
-
.${e} ${t} { ${n.join(" !important; ")} !important; }`, "cssImportantStyles"),
|
|
4739
|
+
a(Bs, "parse");
|
|
4740
|
+
var Vs = /* @__PURE__ */ a((e, t, n = []) => `
|
|
4741
|
+
.${e} ${t} { ${n.join(" !important; ")} !important; }`, "cssImportantStyles"), Hs = /* @__PURE__ */ a((e, t = /* @__PURE__ */ new Map()) => {
|
|
4724
4742
|
let n = "";
|
|
4725
4743
|
if (e.themeCSS !== void 0 && (n += `
|
|
4726
4744
|
${e.themeCSS}`), e.fontFamily !== void 0 && (n += `
|
|
@@ -4734,90 +4752,90 @@ ${e.themeCSS}`), e.fontFamily !== void 0 && (n += `
|
|
|
4734
4752
|
"path"
|
|
4735
4753
|
];
|
|
4736
4754
|
t.forEach((e) => {
|
|
4737
|
-
|
|
4738
|
-
n +=
|
|
4739
|
-
}),
|
|
4755
|
+
ro(e.styles) || r.forEach((t) => {
|
|
4756
|
+
n += Vs(e.id, t, e.styles);
|
|
4757
|
+
}), ro(e.textStyles) || (n += Vs(e.id, "tspan", (e?.textStyles || []).map((e) => e.replace("color", "fill"))));
|
|
4740
4758
|
});
|
|
4741
4759
|
}
|
|
4742
4760
|
return n;
|
|
4743
|
-
}, "createCssStyles"),
|
|
4761
|
+
}, "createCssStyles"), Us = /* @__PURE__ */ a((e, t, n, r) => Ma(Da(`${r}{${T(t, Hs(e, n), e.themeVariables)}}`), Na), "createUserStyles"), Ws = /* @__PURE__ */ a((e = "", t, n) => {
|
|
4744
4762
|
let r = e;
|
|
4745
4763
|
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;
|
|
4746
|
-
}, "cleanUpSvgCode"),
|
|
4747
|
-
${
|
|
4748
|
-
</iframe>`, "putIntoIFrame"),
|
|
4764
|
+
}, "cleanUpSvgCode"), Gs = /* @__PURE__ */ a((e = "", t) => `<iframe style="width:${js};height:${t?.viewBox?.baseVal?.height ? t.viewBox.baseVal.height + "px" : Ms};${Ns}" src="data:text/html;charset=UTF-8;base64,${Cs(`<body style="${Ps}">${e}</body>`)}" sandbox="${Fs}">
|
|
4765
|
+
${Is}
|
|
4766
|
+
</iframe>`, "putIntoIFrame"), Ks = /* @__PURE__ */ a((e, t, n, r, i) => {
|
|
4749
4767
|
let a = e.append("div");
|
|
4750
4768
|
a.attr("id", n), r && a.attr("style", r);
|
|
4751
|
-
let o = a.append("svg").attr("id", t).attr("width", "100%").attr("xmlns",
|
|
4769
|
+
let o = a.append("svg").attr("id", t).attr("width", "100%").attr("xmlns", Os);
|
|
4752
4770
|
return i && o.attr("xmlns:xlink", i), o.append("g"), e;
|
|
4753
4771
|
}, "appendDivSvgG");
|
|
4754
|
-
function
|
|
4772
|
+
function qs(e, t) {
|
|
4755
4773
|
return e.append("iframe").attr("id", t).attr("style", "width: 100%; height: 100%;").attr("sandbox", "");
|
|
4756
4774
|
}
|
|
4757
|
-
a(
|
|
4758
|
-
var
|
|
4775
|
+
a(qs, "sandboxedIframe");
|
|
4776
|
+
var Js = /* @__PURE__ */ a((e, t, n, r) => {
|
|
4759
4777
|
e.getElementById(t)?.remove(), e.getElementById(n)?.remove(), e.getElementById(r)?.remove();
|
|
4760
|
-
}, "removeExistingElements"),
|
|
4761
|
-
|
|
4762
|
-
let r =
|
|
4778
|
+
}, "removeExistingElements"), Ys = /* @__PURE__ */ a(async function(e, t, n) {
|
|
4779
|
+
ls();
|
|
4780
|
+
let r = zs(t);
|
|
4763
4781
|
t = r.code;
|
|
4764
4782
|
let s = j();
|
|
4765
|
-
i.debug(s), t.length > (s?.maxTextSize ??
|
|
4783
|
+
i.debug(s), t.length > (s?.maxTextSize ?? ws) && (t = Ts);
|
|
4766
4784
|
let c = "#" + e, l = "i" + e, u = "#" + l, d = "d" + e, f = "#" + d, p = /* @__PURE__ */ a(() => {
|
|
4767
4785
|
let e = o(g ? u : f).node();
|
|
4768
4786
|
e && "remove" in e && e.remove();
|
|
4769
|
-
}, "removeTempElements"), h = o("body"), g = s.securityLevel ===
|
|
4770
|
-
n === void 0 ? (
|
|
4787
|
+
}, "removeTempElements"), h = o("body"), g = s.securityLevel === Es, _ = s.securityLevel === Ds, v = s.fontFamily;
|
|
4788
|
+
n === void 0 ? (Js(document, e, d, l), g ? (h = o(qs(o("body"), l).nodes()[0].contentDocument.body), h.node().style.margin = 0) : h = o("body"), Ks(h, e, d)) : (n && (n.innerHTML = ""), g ? (h = o(qs(o(n), l).nodes()[0].contentDocument.body), h.node().style.margin = 0) : h = o(n), Ks(h, e, d, `font-family: ${v}`, ks));
|
|
4771
4789
|
let y, x;
|
|
4772
4790
|
try {
|
|
4773
|
-
y = await
|
|
4791
|
+
y = await ms.fromText(t, { title: r.title });
|
|
4774
4792
|
} catch (e) {
|
|
4775
4793
|
if (s.suppressErrorRendering) throw p(), e;
|
|
4776
|
-
y = await
|
|
4794
|
+
y = await ms.fromText("error"), x = e;
|
|
4777
4795
|
}
|
|
4778
|
-
let S = h.select(f).node(), C = y.type, w = S.firstChild, T = w.firstChild, E = y.renderer.getClasses?.(t, y), D =
|
|
4796
|
+
let S = h.select(f).node(), C = y.type, w = S.firstChild, T = w.firstChild, E = y.renderer.getClasses?.(t, y), D = Us(s, C, E, c), O = document.createElement("style");
|
|
4779
4797
|
O.innerHTML = D, w.insertBefore(O, T);
|
|
4780
4798
|
try {
|
|
4781
|
-
await y.renderer.draw(t, e,
|
|
4799
|
+
await y.renderer.draw(t, e, ut.version, y);
|
|
4782
4800
|
} catch (n) {
|
|
4783
|
-
throw s.suppressErrorRendering ? p() :
|
|
4801
|
+
throw s.suppressErrorRendering ? p() : Bo.draw(t, e, ut.version), n;
|
|
4784
4802
|
}
|
|
4785
4803
|
let k = h.select(`${f} svg`), A = y.db.getAccTitle?.(), ee = y.db.getAccDescription?.();
|
|
4786
|
-
|
|
4804
|
+
Qs(C, k, A, ee), h.select(`[id="${e}"]`).selectAll("foreignobject > *").attr("xmlns", As);
|
|
4787
4805
|
let M = h.select(f).node().innerHTML;
|
|
4788
|
-
if (i.debug("config.arrowMarkerAbsolute", s.arrowMarkerAbsolute), M =
|
|
4806
|
+
if (i.debug("config.arrowMarkerAbsolute", s.arrowMarkerAbsolute), M = Ws(M, g, b(s.arrowMarkerAbsolute)), g) {
|
|
4789
4807
|
let e = h.select(f + " svg").node();
|
|
4790
|
-
M =
|
|
4808
|
+
M = Gs(M, e);
|
|
4791
4809
|
} else _ || (M = m.sanitize(M, {
|
|
4792
|
-
ADD_TAGS:
|
|
4793
|
-
ADD_ATTR:
|
|
4810
|
+
ADD_TAGS: Ls,
|
|
4811
|
+
ADD_ATTR: Rs,
|
|
4794
4812
|
HTML_INTEGRATION_POINTS: { foreignobject: !0 }
|
|
4795
4813
|
}));
|
|
4796
|
-
if (
|
|
4814
|
+
if (gs(), x) throw x;
|
|
4797
4815
|
return p(), {
|
|
4798
4816
|
diagramType: C,
|
|
4799
4817
|
svg: M,
|
|
4800
4818
|
bindFunctions: y.db.bindFunctions
|
|
4801
4819
|
};
|
|
4802
4820
|
}, "render");
|
|
4803
|
-
function
|
|
4821
|
+
function Xs(e = {}) {
|
|
4804
4822
|
let t = E({}, e);
|
|
4805
|
-
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),
|
|
4823
|
+
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), ls();
|
|
4806
4824
|
}
|
|
4807
|
-
a(
|
|
4808
|
-
var
|
|
4809
|
-
let { code: n } =
|
|
4810
|
-
return
|
|
4825
|
+
a(Xs, "initialize");
|
|
4826
|
+
var Zs = /* @__PURE__ */ a((e, t = {}) => {
|
|
4827
|
+
let { code: n } = Ss(e);
|
|
4828
|
+
return ms.fromText(n, t);
|
|
4811
4829
|
}, "getDiagramFromText");
|
|
4812
|
-
function
|
|
4813
|
-
|
|
4814
|
-
}
|
|
4815
|
-
a(
|
|
4816
|
-
var
|
|
4817
|
-
render:
|
|
4818
|
-
parse:
|
|
4819
|
-
getDiagramFromText:
|
|
4820
|
-
initialize:
|
|
4830
|
+
function Qs(e, t, n, r) {
|
|
4831
|
+
fs(t, e), ps(t, n, r, t.attr("id"));
|
|
4832
|
+
}
|
|
4833
|
+
a(Qs, "addA11yInfo");
|
|
4834
|
+
var $s = Object.freeze({
|
|
4835
|
+
render: Ys,
|
|
4836
|
+
parse: Bs,
|
|
4837
|
+
getDiagramFromText: Zs,
|
|
4838
|
+
initialize: Xs,
|
|
4821
4839
|
getConfig: j,
|
|
4822
4840
|
setConfig: f,
|
|
4823
4841
|
getSiteConfig: k,
|
|
@@ -4831,7 +4849,7 @@ var Qs = Object.freeze({
|
|
|
4831
4849
|
defaultConfig: S
|
|
4832
4850
|
});
|
|
4833
4851
|
r(j().logLevel), l(j());
|
|
4834
|
-
var
|
|
4852
|
+
var ec = /* @__PURE__ */ a((e, t, n) => {
|
|
4835
4853
|
i.warn(e), M(e) ? (n && n(e.str, e.hash), t.push({
|
|
4836
4854
|
...e,
|
|
4837
4855
|
message: e.str,
|
|
@@ -4842,20 +4860,20 @@ var $s = /* @__PURE__ */ a((e, t, n) => {
|
|
|
4842
4860
|
hash: e.name,
|
|
4843
4861
|
error: e
|
|
4844
4862
|
}));
|
|
4845
|
-
}, "handleError"),
|
|
4863
|
+
}, "handleError"), tc = /* @__PURE__ */ a(async function(e = { querySelector: ".mermaid" }) {
|
|
4846
4864
|
try {
|
|
4847
|
-
await
|
|
4865
|
+
await nc(e);
|
|
4848
4866
|
} catch (t) {
|
|
4849
|
-
if (M(t) && i.error(t.str),
|
|
4867
|
+
if (M(t) && i.error(t.str), pc.parseError && pc.parseError(t), !e.suppressErrors) throw i.error("Use the suppressErrors option to suppress these errors"), t;
|
|
4850
4868
|
}
|
|
4851
|
-
}, "run"),
|
|
4852
|
-
let r =
|
|
4869
|
+
}, "run"), nc = /* @__PURE__ */ a(async function({ postRenderCallback: e, querySelector: t, nodes: n } = { querySelector: ".mermaid" }) {
|
|
4870
|
+
let r = $s.getConfig();
|
|
4853
4871
|
i.debug(`${e ? "" : "No "}Callback function found`);
|
|
4854
4872
|
let a;
|
|
4855
4873
|
if (n) a = n;
|
|
4856
4874
|
else if (t) a = document.querySelectorAll(t);
|
|
4857
4875
|
else throw Error("Nodes and querySelector are both undefined");
|
|
4858
|
-
i.debug(`Found ${a.length} diagrams`), r?.startOnLoad !== void 0 && (i.debug("Start On Load: " + r?.startOnLoad),
|
|
4876
|
+
i.debug(`Found ${a.length} diagrams`), r?.startOnLoad !== void 0 && (i.debug("Start On Load: " + r?.startOnLoad), $s.updateSiteConfig({ startOnLoad: r?.startOnLoad }));
|
|
4859
4877
|
let o = new N.InitIDGenerator(r.deterministicIds, r.deterministicIDSeed), s, c = [];
|
|
4860
4878
|
for (let t of Array.from(a)) {
|
|
4861
4879
|
if (i.info("Rendering diagram: " + t.id), t.getAttribute("data-processed")) continue;
|
|
@@ -4865,95 +4883,95 @@ var $s = /* @__PURE__ */ a((e, t, n) => {
|
|
|
4865
4883
|
let r = N.detectInit(s);
|
|
4866
4884
|
r && i.debug("Detected early reinit: ", r);
|
|
4867
4885
|
try {
|
|
4868
|
-
let { svg: r, bindFunctions: i } = await
|
|
4886
|
+
let { svg: r, bindFunctions: i } = await fc(n, s, t);
|
|
4869
4887
|
t.innerHTML = r, e && await e(n), i && i(t);
|
|
4870
4888
|
} catch (e) {
|
|
4871
|
-
|
|
4889
|
+
ec(e, c, pc.parseError);
|
|
4872
4890
|
}
|
|
4873
4891
|
}
|
|
4874
4892
|
if (c.length > 0) throw c[0];
|
|
4875
|
-
}, "runThrowsErrors"),
|
|
4876
|
-
|
|
4877
|
-
}, "initialize"),
|
|
4878
|
-
i.warn("mermaid.init is deprecated. Please use run instead."), e &&
|
|
4893
|
+
}, "runThrowsErrors"), rc = /* @__PURE__ */ a(function(e) {
|
|
4894
|
+
$s.initialize(e);
|
|
4895
|
+
}, "initialize"), ic = /* @__PURE__ */ a(async function(e, t, n) {
|
|
4896
|
+
i.warn("mermaid.init is deprecated. Please use run instead."), e && rc(e);
|
|
4879
4897
|
let r = {
|
|
4880
4898
|
postRenderCallback: n,
|
|
4881
4899
|
querySelector: ".mermaid"
|
|
4882
4900
|
};
|
|
4883
|
-
typeof t == "string" ? r.querySelector = t : t && (t instanceof HTMLElement ? r.nodes = [t] : r.nodes = t), await
|
|
4884
|
-
}, "init"),
|
|
4885
|
-
|
|
4886
|
-
}, "registerExternalDiagrams"),
|
|
4887
|
-
if (
|
|
4888
|
-
let { startOnLoad: e } =
|
|
4889
|
-
e &&
|
|
4901
|
+
typeof t == "string" ? r.querySelector = t : t && (t instanceof HTMLElement ? r.nodes = [t] : r.nodes = t), await tc(r);
|
|
4902
|
+
}, "init"), ac = /* @__PURE__ */ a(async (e, { lazyLoad: t = !0 } = {}) => {
|
|
4903
|
+
ls(), c(...e), t === !1 && await us();
|
|
4904
|
+
}, "registerExternalDiagrams"), oc = /* @__PURE__ */ a(function() {
|
|
4905
|
+
if (pc.startOnLoad) {
|
|
4906
|
+
let { startOnLoad: e } = $s.getConfig();
|
|
4907
|
+
e && pc.run().catch((e) => i.error("Mermaid failed to initialize", e));
|
|
4890
4908
|
}
|
|
4891
4909
|
}, "contentLoaded");
|
|
4892
|
-
typeof document < "u" && window.addEventListener("load",
|
|
4893
|
-
var
|
|
4894
|
-
|
|
4895
|
-
}, "setParseErrorHandler"),
|
|
4896
|
-
if (!
|
|
4897
|
-
for (
|
|
4898
|
-
let e =
|
|
4910
|
+
typeof document < "u" && window.addEventListener("load", oc, !1);
|
|
4911
|
+
var sc = /* @__PURE__ */ a(function(e) {
|
|
4912
|
+
pc.parseError = e;
|
|
4913
|
+
}, "setParseErrorHandler"), cc = [], lc = !1, uc = /* @__PURE__ */ a(async () => {
|
|
4914
|
+
if (!lc) {
|
|
4915
|
+
for (lc = !0; cc.length > 0;) {
|
|
4916
|
+
let e = cc.shift();
|
|
4899
4917
|
if (e) try {
|
|
4900
4918
|
await e();
|
|
4901
4919
|
} catch (e) {
|
|
4902
4920
|
i.error("Error executing queue", e);
|
|
4903
4921
|
}
|
|
4904
4922
|
}
|
|
4905
|
-
|
|
4923
|
+
lc = !1;
|
|
4906
4924
|
}
|
|
4907
|
-
}, "executeQueue"),
|
|
4925
|
+
}, "executeQueue"), dc = /* @__PURE__ */ a(async (e, t) => new Promise((n, r) => {
|
|
4908
4926
|
let o = /* @__PURE__ */ a(() => new Promise((a, o) => {
|
|
4909
|
-
|
|
4927
|
+
$s.parse(e, t).then((e) => {
|
|
4910
4928
|
a(e), n(e);
|
|
4911
4929
|
}, (e) => {
|
|
4912
|
-
i.error("Error parsing", e),
|
|
4930
|
+
i.error("Error parsing", e), pc.parseError?.(e), o(e), r(e);
|
|
4913
4931
|
});
|
|
4914
4932
|
}), "performCall");
|
|
4915
|
-
|
|
4916
|
-
}), "parse"),
|
|
4933
|
+
cc.push(o), uc().catch(r);
|
|
4934
|
+
}), "parse"), fc = /* @__PURE__ */ a((e, t, n) => new Promise((r, o) => {
|
|
4917
4935
|
let s = /* @__PURE__ */ a(() => new Promise((a, s) => {
|
|
4918
|
-
|
|
4936
|
+
$s.render(e, t, n).then((e) => {
|
|
4919
4937
|
a(e), r(e);
|
|
4920
4938
|
}, (e) => {
|
|
4921
|
-
i.error("Error parsing", e),
|
|
4939
|
+
i.error("Error parsing", e), pc.parseError?.(e), s(e), o(e);
|
|
4922
4940
|
});
|
|
4923
4941
|
}), "performCall");
|
|
4924
|
-
|
|
4925
|
-
}), "render"),
|
|
4942
|
+
cc.push(s), uc().catch(o);
|
|
4943
|
+
}), "render"), pc = {
|
|
4926
4944
|
startOnLoad: !0,
|
|
4927
|
-
mermaidAPI:
|
|
4928
|
-
parse:
|
|
4929
|
-
render:
|
|
4930
|
-
init:
|
|
4931
|
-
run:
|
|
4932
|
-
registerExternalDiagrams:
|
|
4933
|
-
registerLayoutLoaders:
|
|
4934
|
-
initialize:
|
|
4945
|
+
mermaidAPI: $s,
|
|
4946
|
+
parse: dc,
|
|
4947
|
+
render: fc,
|
|
4948
|
+
init: ic,
|
|
4949
|
+
run: tc,
|
|
4950
|
+
registerExternalDiagrams: ac,
|
|
4951
|
+
registerLayoutLoaders: Ui,
|
|
4952
|
+
initialize: rc,
|
|
4935
4953
|
parseError: void 0,
|
|
4936
|
-
contentLoaded:
|
|
4937
|
-
setParseErrorHandler:
|
|
4954
|
+
contentLoaded: oc,
|
|
4955
|
+
setParseErrorHandler: sc,
|
|
4938
4956
|
detectType: v,
|
|
4939
4957
|
registerIconPacks: ge,
|
|
4940
4958
|
getRegisteredDiagramsMetadata: /* @__PURE__ */ a(() => Object.keys(w).map((e) => ({ id: e })), "getRegisteredDiagramsMetadata")
|
|
4941
|
-
},
|
|
4959
|
+
}, mc = pc, hc = { class: "mermaid-controls" }, gc = ["title"], _c = {
|
|
4942
4960
|
key: 0,
|
|
4943
4961
|
width: "16",
|
|
4944
4962
|
height: "16",
|
|
4945
4963
|
viewBox: "0 0 16 16",
|
|
4946
4964
|
fill: "currentColor"
|
|
4947
|
-
},
|
|
4965
|
+
}, vc = {
|
|
4948
4966
|
key: 1,
|
|
4949
4967
|
width: "16",
|
|
4950
4968
|
height: "16",
|
|
4951
4969
|
viewBox: "0 0 16 16",
|
|
4952
4970
|
fill: "currentColor"
|
|
4953
|
-
},
|
|
4971
|
+
}, yc = { class: "zoom-indicator" }, bc = {
|
|
4954
4972
|
key: 0,
|
|
4955
4973
|
class: "mermaid-error"
|
|
4956
|
-
},
|
|
4974
|
+
}, xc = /* @__PURE__ */ ot(/* @__PURE__ */ Oe({
|
|
4957
4975
|
__name: "MermaidDiagram",
|
|
4958
4976
|
props: {
|
|
4959
4977
|
code: {},
|
|
@@ -4965,7 +4983,7 @@ var oc = /* @__PURE__ */ a(function(e) {
|
|
|
4965
4983
|
let e = document.documentElement.classList.contains("theme-dark") || document.body.classList.contains("theme-dark"), t = document.documentElement.classList.contains("theme-light") || document.body.classList.contains("theme-light");
|
|
4966
4984
|
return e ? "dark" : t ? "default" : window.matchMedia && window.matchMedia("(prefers-color-scheme: dark)").matches ? "dark" : "default";
|
|
4967
4985
|
}, v = (e) => {
|
|
4968
|
-
|
|
4986
|
+
mc.initialize({
|
|
4969
4987
|
suppressErrorRendering: !0,
|
|
4970
4988
|
startOnLoad: !1,
|
|
4971
4989
|
theme: e,
|
|
@@ -5038,7 +5056,7 @@ var oc = /* @__PURE__ */ a(function(e) {
|
|
|
5038
5056
|
try {
|
|
5039
5057
|
let e = _();
|
|
5040
5058
|
e !== a.value && (a.value = e, v(e));
|
|
5041
|
-
let r = `mermaid-${Math.random().toString(36).substr(2, 9)}`, { svg: i } = await
|
|
5059
|
+
let r = `mermaid-${Math.random().toString(36).substr(2, 9)}`, { svg: i } = await mc.render(r, t.code);
|
|
5042
5060
|
if (n.value.innerHTML = i, h.value = n.value.querySelector("svg"), h.value) {
|
|
5043
5061
|
let e = h.value.getAttribute("viewBox");
|
|
5044
5062
|
if (e) {
|
|
@@ -5093,7 +5111,7 @@ var oc = /* @__PURE__ */ a(function(e) {
|
|
|
5093
5111
|
to: "body",
|
|
5094
5112
|
disabled: !m.value
|
|
5095
5113
|
}, [L("div", { class: je(["mermaid-diagram-wrapper", { fullscreen: m.value }]) }, [
|
|
5096
|
-
L("div",
|
|
5114
|
+
L("div", hc, [
|
|
5097
5115
|
L("button", {
|
|
5098
5116
|
onClick: T,
|
|
5099
5117
|
class: "control-btn",
|
|
@@ -5108,8 +5126,8 @@ var oc = /* @__PURE__ */ a(function(e) {
|
|
|
5108
5126
|
onClick: E,
|
|
5109
5127
|
class: "control-btn",
|
|
5110
5128
|
title: m.value ? "退出全屏" : "全屏预览"
|
|
5111
|
-
}, [m.value ? (R(), I("svg",
|
|
5112
|
-
L("span",
|
|
5129
|
+
}, [m.value ? (R(), I("svg", vc, [...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", _c, [...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, gc),
|
|
5130
|
+
L("span", yc, Fe(Math.round(o.value * 100)) + "%", 1)
|
|
5113
5131
|
]),
|
|
5114
5132
|
L("div", {
|
|
5115
5133
|
ref_key: "containerRef",
|
|
@@ -5125,21 +5143,21 @@ var oc = /* @__PURE__ */ a(function(e) {
|
|
|
5125
5143
|
ref: n,
|
|
5126
5144
|
class: "mermaid-diagram-content"
|
|
5127
5145
|
}, null, 512)], 34),
|
|
5128
|
-
i.value && !e.isStreaming ? (R(), I("div",
|
|
5146
|
+
i.value && !e.isStreaming ? (R(), I("div", bc, [a[3] ||= L("strong", null, "Mermaid 渲染错误:", -1), L("pre", null, Fe(i.value), 1)])) : F("", !0)
|
|
5129
5147
|
], 2)], 8, ["disabled"]));
|
|
5130
5148
|
}
|
|
5131
5149
|
}), [["__scopeId", "data-v-abde2fe6"]]);
|
|
5132
5150
|
//#endregion
|
|
5133
5151
|
//#region src/plugins/custom/mermaidPlugin.ts
|
|
5134
|
-
function
|
|
5152
|
+
function Sc(e) {
|
|
5135
5153
|
if (e.type !== "tag" || e.name !== "code") return null;
|
|
5136
5154
|
let t = (e.attribs?.class || "").match(/language-(\w+)/);
|
|
5137
5155
|
return t ? t[1] : null;
|
|
5138
5156
|
}
|
|
5139
|
-
function Sc(e) {
|
|
5140
|
-
return !e.children || e.children.length === 0 ? "" : e.children.map((e) => e.type === "text" ? e.data : e.children ? Sc(e) : "").join("");
|
|
5141
|
-
}
|
|
5142
5157
|
function Cc(e) {
|
|
5158
|
+
return !e.children || e.children.length === 0 ? "" : e.children.map((e) => e.type === "text" ? e.data : e.children ? Cc(e) : "").join("");
|
|
5159
|
+
}
|
|
5160
|
+
function wc(e) {
|
|
5143
5161
|
let { priority: t = 80, theme: r, cssUrl: i, onError: a } = e || {};
|
|
5144
5162
|
return i && typeof window < "u" && n(i), {
|
|
5145
5163
|
name: "mermaid",
|
|
@@ -5147,7 +5165,7 @@ function Cc(e) {
|
|
|
5147
5165
|
test: (e) => {
|
|
5148
5166
|
if (e.type === "tag" && e.name === "pre") {
|
|
5149
5167
|
let t = e.children?.find((e) => e.type === "tag" && e.name === "code");
|
|
5150
|
-
if (t) return
|
|
5168
|
+
if (t) return Sc(t) === "mermaid";
|
|
5151
5169
|
}
|
|
5152
5170
|
return !1;
|
|
5153
5171
|
},
|
|
@@ -5155,16 +5173,16 @@ function Cc(e) {
|
|
|
5155
5173
|
let o = e.children?.find((e) => e.type === "tag" && e.name === "code");
|
|
5156
5174
|
if (!o) return ke("div", { class: "mermaid-error" }, "No code content found");
|
|
5157
5175
|
let s = {
|
|
5158
|
-
code:
|
|
5176
|
+
code: Cc(o),
|
|
5159
5177
|
isStreaming: i?.isStreaming || !1
|
|
5160
5178
|
};
|
|
5161
|
-
return r && (s.theme = r), a && (s.onError = a), ke(
|
|
5179
|
+
return r && (s.theme = r), a && (s.onError = a), ke(xc, s);
|
|
5162
5180
|
}
|
|
5163
5181
|
};
|
|
5164
5182
|
}
|
|
5165
5183
|
//#endregion
|
|
5166
5184
|
//#region src/components/BlinkingCursor.vue
|
|
5167
|
-
var
|
|
5185
|
+
var Tc = /* @__PURE__ */ ot(/* @__PURE__ */ Oe({
|
|
5168
5186
|
__name: "BlinkingCursor",
|
|
5169
5187
|
props: {
|
|
5170
5188
|
shape: { default: "square" },
|
|
@@ -5180,13 +5198,13 @@ var wc = /* @__PURE__ */ at(/* @__PURE__ */ Oe({
|
|
|
5180
5198
|
}), [["__scopeId", "data-v-0d4d5123"]]);
|
|
5181
5199
|
//#endregion
|
|
5182
5200
|
//#region src/plugins/custom/cursorPlugin.ts
|
|
5183
|
-
function
|
|
5201
|
+
function Ec(e = {}) {
|
|
5184
5202
|
let { shape: t = "square", color: n, priority: r = 100 } = e;
|
|
5185
5203
|
return {
|
|
5186
5204
|
name: "cursor",
|
|
5187
5205
|
priority: r,
|
|
5188
5206
|
test: (e) => e.type === "component" && e.name === "cursor",
|
|
5189
|
-
render: (e, r, i, a) => ke(
|
|
5207
|
+
render: (e, r, i, a) => ke(Tc, {
|
|
5190
5208
|
...e.attribs,
|
|
5191
5209
|
shape: t,
|
|
5192
5210
|
...n && { color: n }
|
|
@@ -5195,14 +5213,14 @@ function Tc(e = {}) {
|
|
|
5195
5213
|
}
|
|
5196
5214
|
//#endregion
|
|
5197
5215
|
//#region src/components/ImageViewer.vue?vue&type=script&setup=true&lang.ts
|
|
5198
|
-
var
|
|
5216
|
+
var Dc = [
|
|
5199
5217
|
"src",
|
|
5200
5218
|
"alt",
|
|
5201
5219
|
"title",
|
|
5202
5220
|
"data-original",
|
|
5203
5221
|
"data-index",
|
|
5204
5222
|
"crossorigin"
|
|
5205
|
-
],
|
|
5223
|
+
], Oc = /* @__PURE__ */ ot(/* @__PURE__ */ Oe({
|
|
5206
5224
|
__name: "ImageViewer",
|
|
5207
5225
|
props: {
|
|
5208
5226
|
src: {},
|
|
@@ -5227,7 +5245,7 @@ var Ec = [
|
|
|
5227
5245
|
return n === -1 ? 0 : n;
|
|
5228
5246
|
}
|
|
5229
5247
|
return 0;
|
|
5230
|
-
}), o = Ee(() => t.crossOrigin ? t.src.startsWith("http") && !t.src.includes(window.location.host) :
|
|
5248
|
+
}), o = Ee(() => t.crossOrigin ? t.src.startsWith("http") && !t.src.includes(window.location.host) : Be(t.src, t.context?.autoCors));
|
|
5231
5249
|
Ne(() => {
|
|
5232
5250
|
r && n.value && r.registerImage(n.value);
|
|
5233
5251
|
}), Pe(() => {
|
|
@@ -5248,12 +5266,12 @@ var Ec = [
|
|
|
5248
5266
|
crossorigin: o.value ? "anonymous" : void 0,
|
|
5249
5267
|
style: i,
|
|
5250
5268
|
onClick: s
|
|
5251
|
-
}, null, 8,
|
|
5269
|
+
}, null, 8, Dc));
|
|
5252
5270
|
}
|
|
5253
|
-
}), [["__scopeId", "data-v-
|
|
5271
|
+
}), [["__scopeId", "data-v-f6b36068"]]);
|
|
5254
5272
|
//#endregion
|
|
5255
5273
|
//#region src/plugins/custom/imageViewerPlugin.ts
|
|
5256
|
-
function
|
|
5274
|
+
function kc(e) {
|
|
5257
5275
|
let { priority: t = 50, viewerOptions: n = {}, crossOrigin: r = !1 } = e || {};
|
|
5258
5276
|
return {
|
|
5259
5277
|
name: "imageViewer",
|
|
@@ -5265,7 +5283,7 @@ function Oc(e) {
|
|
|
5265
5283
|
let t = o.findIndex((t) => t.src === e.attribs?.src);
|
|
5266
5284
|
t !== -1 && (s = t);
|
|
5267
5285
|
}
|
|
5268
|
-
return ke(
|
|
5286
|
+
return ke(Oc, {
|
|
5269
5287
|
src: e.attribs?.src || "",
|
|
5270
5288
|
alt: e.attribs?.alt || "",
|
|
5271
5289
|
title: e.attribs?.title || "",
|
|
@@ -5278,4 +5296,4 @@ function Oc(e) {
|
|
|
5278
5296
|
};
|
|
5279
5297
|
}
|
|
5280
5298
|
//#endregion
|
|
5281
|
-
export {
|
|
5299
|
+
export { $a as a, Gi as c, Bi as d, dt as f, Be as g, ct as h, ro as i, Wi as l, lt as m, Ec as n, za as o, ut as p, wc as r, Ia as s, kc as t, zi as u };
|