mio-previewer 0.1.2 → 0.1.4
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/AlertPlugin-B74_-nlo.cjs +3 -0
- package/dist/AlertPlugin-DUG0ldg_.js +66 -0
- package/dist/{MdRenderer.vue_vue_type_style_index_0_lang-ClzqKjX4.js → MdRenderer.vue_vue_type_style_index_0_lang-B26E5SLd.js} +1 -1
- package/dist/{MdRenderer.vue_vue_type_style_index_0_lang-Dpnz3CdM.cjs → MdRenderer.vue_vue_type_style_index_0_lang-CT8VuqF6.cjs} +1 -1
- package/dist/{_basePickBy-nvL1-X4h.js → _basePickBy-ClXR16YL.js} +11 -11
- package/dist/_basePickBy-wjzVR2ZI.cjs +1 -0
- package/dist/_baseUniq-BtmrXn_-.cjs +1 -0
- package/dist/{_baseUniq-Cwhfu1XM.js → _baseUniq-BvAvxwqe.js} +13 -13
- package/dist/arc-CBMtpv9r.cjs +1 -0
- package/dist/{arc-C9I4pYLv.js → arc-Hx3N9DvE.js} +1 -1
- package/dist/{architecture-O4VJ6CD3-dKuizgWO.cjs → architecture-O4VJ6CD3-BNArGrzK.cjs} +1 -1
- package/dist/{architecture-O4VJ6CD3-D00QJU0o.js → architecture-O4VJ6CD3-xCUefH5y.js} +1 -1
- package/dist/{architectureDiagram-VXUJARFQ-VWr1UuPv.js → architectureDiagram-VXUJARFQ-B6mJb2i9.js} +20 -21
- package/dist/architectureDiagram-VXUJARFQ-BJuzZIv9.cjs +36 -0
- package/dist/{blockDiagram-VD42YOAC-DuC96I2Q.js → blockDiagram-VD42YOAC-BGxFHnMs.js} +5 -5
- package/dist/{blockDiagram-VD42YOAC-EC2x5LwN.cjs → blockDiagram-VD42YOAC-CG3089Xu.cjs} +1 -1
- package/dist/{c4Diagram-YG6GDRKO-Dm5d0BWL.cjs → c4Diagram-YG6GDRKO-Cmg_2WS3.cjs} +1 -1
- package/dist/{c4Diagram-YG6GDRKO-OB8wIuF8.js → c4Diagram-YG6GDRKO-Rr7zONcv.js} +2 -2
- package/dist/channel-BleEicRr.cjs +1 -0
- package/dist/{channel-C-uR528Z.js → channel-DgGKpNRA.js} +1 -1
- package/dist/{chunk-4BX2VUAB-j8LeaMvy.js → chunk-4BX2VUAB-BbICN0Ec.js} +1 -1
- package/dist/chunk-4BX2VUAB-Bt9zCVip.cjs +1 -0
- package/dist/chunk-55IACEB6-CBJvnwMn.cjs +1 -0
- package/dist/{chunk-55IACEB6-IYAIzfR4.js → chunk-55IACEB6-DYOSrdgH.js} +1 -1
- package/dist/{chunk-B4BG7PRW-DB5df3Iz.js → chunk-B4BG7PRW-TxrPoDdp.js} +4 -4
- package/dist/{chunk-B4BG7PRW-CpqTB0S5.cjs → chunk-B4BG7PRW-l7q-a31H.cjs} +1 -1
- package/dist/{chunk-DI55MBZ5-wqsoqtNw.cjs → chunk-DI55MBZ5-Bp0pNyM4.cjs} +1 -1
- package/dist/{chunk-DI55MBZ5-BoFZpvY3.js → chunk-DI55MBZ5-CsB2AXBx.js} +3 -3
- package/dist/{chunk-FMBD7UC4-BZS_4hun.cjs → chunk-FMBD7UC4-BcpCv0n4.cjs} +1 -1
- package/dist/{chunk-FMBD7UC4-CdmoYYnM.js → chunk-FMBD7UC4-D5PKNbki.js} +1 -1
- package/dist/chunk-QN33PNHL-B1Px0282.cjs +1 -0
- package/dist/{chunk-QN33PNHL-BuyP9RXS.js → chunk-QN33PNHL-B5zdVrte.js} +1 -1
- package/dist/{chunk-QZHKN3VN-15dJyQk0.js → chunk-QZHKN3VN-C-Vfb6xz.js} +1 -1
- package/dist/chunk-QZHKN3VN-Dg1DeAnJ.cjs +1 -0
- package/dist/chunk-TZMSLE5B-Bd4ivTqX.cjs +1 -0
- package/dist/{chunk-TZMSLE5B-BgFWf03M.js → chunk-TZMSLE5B-xm8uzxSg.js} +1 -1
- package/dist/{classDiagram-2ON5EDUG-BQz3UzKi.js → classDiagram-2ON5EDUG-CK_iHiNY.js} +2 -2
- package/dist/classDiagram-2ON5EDUG-DaNkCwSZ.cjs +1 -0
- package/dist/{classDiagram-v2-WZHVMYZB-BQz3UzKi.js → classDiagram-v2-WZHVMYZB-CK_iHiNY.js} +2 -2
- package/dist/classDiagram-v2-WZHVMYZB-DaNkCwSZ.cjs +1 -0
- package/dist/{clone-D6h_cwF4.js → clone-Bha0jTOw.js} +1 -1
- package/dist/clone-C1QAYyzI.cjs +1 -0
- package/dist/cose-bilkent-S5V4N54A-CV1wgztW.cjs +1 -0
- package/dist/{cose-bilkent-S5V4N54A-D2q7jBXB.js → cose-bilkent-S5V4N54A-hCsgqyKM.js} +5 -6
- package/dist/{plugin-mermaid-y4lbJ7sL.js → custom-B4yTjcNy.js} +8845 -5380
- package/dist/custom-DUStvHau.cjs +263 -0
- package/dist/{dagre-6UL2VRFP-Cfh4UdSr.js → dagre-6UL2VRFP-DgeWg1SE.js} +108 -108
- package/dist/dagre-6UL2VRFP-yXKAxpPT.cjs +4 -0
- package/dist/{diagram-PSM6KHXK-BZDEX43o.js → diagram-PSM6KHXK-Cvtq1BMM.js} +16 -16
- package/dist/diagram-PSM6KHXK-D8-R7SoU.cjs +24 -0
- package/dist/diagram-QEK2KX5R-BJwfOJRv.cjs +43 -0
- package/dist/{diagram-QEK2KX5R-Dda_FEDc.js → diagram-QEK2KX5R-Bk1U0LhS.js} +3 -3
- package/dist/{diagram-S2PKOQOG-Cnw4b7LB.js → diagram-S2PKOQOG-C1GhQvXr.js} +3 -3
- package/dist/diagram-S2PKOQOG-CrU1lFAd.cjs +24 -0
- package/dist/entries/md.cjs.js +1 -1
- package/dist/entries/md.es.js +1 -1
- package/dist/{erDiagram-Q2GNP2WA-qAdA8fbE.js → erDiagram-Q2GNP2WA-BW644HGe.js} +4 -4
- package/dist/{erDiagram-Q2GNP2WA-DE4JLeNF.cjs → erDiagram-Q2GNP2WA-DwCMcLlJ.cjs} +1 -1
- package/dist/{flowDiagram-NV44I4VS-j3dB-fjF.cjs → flowDiagram-NV44I4VS-CwBt-lqk.cjs} +1 -1
- package/dist/{flowDiagram-NV44I4VS-C7YBx4JP.js → flowDiagram-NV44I4VS-wXa2zQjd.js} +5 -5
- package/dist/ganttDiagram-LVOFAZNH-CFZ-PmU5.cjs +267 -0
- package/dist/{ganttDiagram-LVOFAZNH-BL-Yjadx.js → ganttDiagram-LVOFAZNH-DEQvlmR2.js} +55 -56
- package/dist/{gitGraph-ZV4HHKMB-Dr9sn7R3.js → gitGraph-ZV4HHKMB-Bd_PHDMp.js} +1 -1
- package/dist/{gitGraph-ZV4HHKMB-DyXW77WY.cjs → gitGraph-ZV4HHKMB-CbfGP-N9.cjs} +1 -1
- package/dist/gitGraphDiagram-NY62KEGX-j4D9jXL4.cjs +65 -0
- package/dist/{gitGraphDiagram-NY62KEGX-DFn7h5BH.js → gitGraphDiagram-NY62KEGX-xl70htLN.js} +4 -4
- package/dist/graph-6iViBDku.cjs +1 -0
- package/dist/{graph-DiGqaw_6.js → graph-D6yOZd92.js} +7 -7
- package/dist/info-63CPKGFF-du1jd1Lv.js +5 -0
- package/dist/{info-63CPKGFF-BGxbI0Qv.cjs → info-63CPKGFF-gOwyweiZ.cjs} +1 -1
- package/dist/{infoDiagram-F6ZHWCRC-DOtGa28U.js → infoDiagram-F6ZHWCRC-BfGS0mg6.js} +2 -2
- package/dist/infoDiagram-F6ZHWCRC-Vx_DX2z8.cjs +2 -0
- package/dist/{journeyDiagram-XKPGCS4Q-bJncB3oe.js → journeyDiagram-XKPGCS4Q-C74m57vy.js} +4 -4
- package/dist/{journeyDiagram-XKPGCS4Q-h-CtcfbS.cjs → journeyDiagram-XKPGCS4Q-Cwfm3gkE.cjs} +1 -1
- package/dist/{kanban-definition-3W4ZIXB7-C3y0C_bw.cjs → kanban-definition-3W4ZIXB7-CgUhoGem.cjs} +3 -3
- package/dist/{kanban-definition-3W4ZIXB7-nMPCi8GW.js → kanban-definition-3W4ZIXB7-Zs307aAz.js} +2 -2
- package/dist/{layout-CHaNS4g6.js → layout-BVJXml4k.js} +33 -33
- package/dist/layout-DiSbzXpp.cjs +1 -0
- package/dist/{linear-CPFNaVnw.js → linear-BE7L7Wq8.js} +5 -5
- package/dist/linear-CF8o0osj.cjs +1 -0
- package/dist/{mermaid-parser.core-CkQKh-yb.js → mermaid-parser.core-CvS4VcbX.js} +11 -11
- package/dist/{mermaid-parser.core-CR8Rcyps.cjs → mermaid-parser.core-D8AljRep.cjs} +2 -2
- package/dist/{mindmap-definition-VGOIOE7T-C63AEIdU.js → mindmap-definition-VGOIOE7T-BAXsNT0n.js} +3 -3
- package/dist/{mindmap-definition-VGOIOE7T-CHI9UFtA.cjs → mindmap-definition-VGOIOE7T-BidsJOPm.cjs} +1 -1
- package/dist/mio-previewer.cjs.js +2 -2
- package/dist/mio-previewer.css +1 -1
- package/dist/mio-previewer.es.js +12 -4
- package/dist/{packet-HUATNLJX-dnmrn2-l.js → packet-HUATNLJX-B1eLognS.js} +1 -1
- package/dist/{packet-HUATNLJX-BeAGxpDF.cjs → packet-HUATNLJX-CgY4KC5-.cjs} +1 -1
- package/dist/{pie-WTHONI2E-BifrFKgo.cjs → pie-WTHONI2E-DBm7_2Ma.cjs} +1 -1
- package/dist/pie-WTHONI2E-RplLoGbc.js +5 -0
- package/dist/{pieDiagram-ADFJNKIX-CEMFAt9B.js → pieDiagram-ADFJNKIX-CWK1C9xc.js} +4 -4
- package/dist/{pieDiagram-ADFJNKIX-B9OONHi_.cjs → pieDiagram-ADFJNKIX-DTKW3svv.cjs} +1 -1
- package/dist/plugins/custom.cjs.js +1 -0
- package/dist/plugins/custom.es.js +6 -0
- package/dist/plugins/markdown-it.cjs.js +1 -0
- package/dist/{entries/plugin-katex.es.js → plugins/markdown-it.es.js} +20 -7
- package/dist/{quadrantDiagram-AYHSOK5B-DobvzsAU.js → quadrantDiagram-AYHSOK5B-BNrGATyu.js} +2 -2
- package/dist/{quadrantDiagram-AYHSOK5B-DqXDgyBD.cjs → quadrantDiagram-AYHSOK5B-qLZyIHgG.cjs} +3 -3
- package/dist/radar-NJJJXTRR-DRmyBDWp.js +5 -0
- package/dist/{radar-NJJJXTRR-BPN19Spv.cjs → radar-NJJJXTRR-EpcDInzR.cjs} +1 -1
- package/dist/{requirementDiagram-UZGBJVZJ-CVbmNF7M.cjs → requirementDiagram-UZGBJVZJ-BTCSXGaW.cjs} +1 -1
- package/dist/{requirementDiagram-UZGBJVZJ-M-MPvTnX.js → requirementDiagram-UZGBJVZJ-CkxxLi7P.js} +3 -3
- package/dist/sankeyDiagram-TZEHDZUN-BNlI2aP-.cjs +10 -0
- package/dist/{sankeyDiagram-TZEHDZUN-Czsin99f.js → sankeyDiagram-TZEHDZUN-DJ1q5E3K.js} +1 -1
- package/dist/{sequenceDiagram-WL72ISMW-DApIQwP-.cjs → sequenceDiagram-WL72ISMW-CjMzI1c2.cjs} +1 -1
- package/dist/{sequenceDiagram-WL72ISMW-BJByNQsK.js → sequenceDiagram-WL72ISMW-nQ6UBL1y.js} +3 -3
- package/dist/stateDiagram-FKZM4ZOC-BBEPk90z.cjs +1 -0
- package/dist/{stateDiagram-FKZM4ZOC-jAiBDhVn.js → stateDiagram-FKZM4ZOC-Dr_-m8dE.js} +4 -4
- package/dist/{stateDiagram-v2-4FDKWEC3-umSVoFht.js → stateDiagram-v2-4FDKWEC3-CG--f0tc.js} +2 -2
- package/dist/stateDiagram-v2-4FDKWEC3-D7NtOxif.cjs +1 -0
- package/dist/{timeline-definition-IT6M3QCI-BfAvK0gf.cjs → timeline-definition-IT6M3QCI-2DClSZLV.cjs} +3 -3
- package/dist/{timeline-definition-IT6M3QCI-I--lBLTi.js → timeline-definition-IT6M3QCI-d0F8eBhC.js} +2 -2
- package/dist/{treemap-75Q7IDZK-bjql9DgL.js → treemap-75Q7IDZK-BBuuvHE0.js} +1 -1
- package/dist/{treemap-75Q7IDZK-DNt-zuL8.cjs → treemap-75Q7IDZK-CI86AmBT.cjs} +1 -1
- package/dist/types/entries/plugins/custom.d.ts +3 -0
- package/dist/types/entries/plugins/markdown-it.d.ts +2 -0
- package/dist/types/helpers/containerHelpers.d.ts +11 -0
- package/dist/types/index.d.ts +1 -1
- package/dist/types/plugins/AlertPlugin.d.ts +10 -8
- package/dist/{xychartDiagram-PRI3JC2R-BN9e47xe.cjs → xychartDiagram-PRI3JC2R-BkUjTJNu.cjs} +1 -1
- package/dist/{xychartDiagram-PRI3JC2R-XrOK_egj.js → xychartDiagram-PRI3JC2R-DLXTvnDG.js} +2 -2
- package/package.json +12 -32
- package/dist/_basePickBy-CZxbwAvt.cjs +0 -1
- package/dist/_baseUniq-DunUk-cd.cjs +0 -1
- package/dist/_commonjsHelpers-DKOUU3wS.cjs +0 -1
- package/dist/_commonjsHelpers-DaMA6jEr.js +0 -8
- package/dist/arc-fCflz0gB.cjs +0 -1
- package/dist/architectureDiagram-VXUJARFQ-DQ-YD3RX.cjs +0 -36
- package/dist/channel-YfH5CBV-.cjs +0 -1
- package/dist/chunk-4BX2VUAB-3Liht_XN.cjs +0 -1
- package/dist/chunk-55IACEB6-Dm3mi3ha.cjs +0 -1
- package/dist/chunk-QN33PNHL-CHI_-zix.cjs +0 -1
- package/dist/chunk-QZHKN3VN-DfH9qQ3T.cjs +0 -1
- package/dist/chunk-TZMSLE5B-qIo1h7Gz.cjs +0 -1
- package/dist/classDiagram-2ON5EDUG-CZWeacVd.cjs +0 -1
- package/dist/classDiagram-v2-WZHVMYZB-CZWeacVd.cjs +0 -1
- package/dist/clone-ByeQKKoW.cjs +0 -1
- package/dist/cose-bilkent-S5V4N54A-5dO3qpr4.cjs +0 -1
- package/dist/dagre-6UL2VRFP-DS2Ki9Dv.cjs +0 -4
- package/dist/diagram-PSM6KHXK-CTsP6f2a.cjs +0 -24
- package/dist/diagram-QEK2KX5R-BDKMNi97.cjs +0 -43
- package/dist/diagram-S2PKOQOG-CmfsKOvs.cjs +0 -24
- package/dist/entries/plugin-alert.cjs.js +0 -1
- package/dist/entries/plugin-alert.es.js +0 -27
- package/dist/entries/plugin-codeblock.cjs.js +0 -9
- package/dist/entries/plugin-codeblock.es.js +0 -3441
- package/dist/entries/plugin-emoji.cjs.js +0 -1
- package/dist/entries/plugin-emoji.es.js +0 -28
- package/dist/entries/plugin-katex.cjs.js +0 -1
- package/dist/entries/plugin-mermaid.cjs.js +0 -1
- package/dist/entries/plugin-mermaid.es.js +0 -4
- package/dist/ganttDiagram-LVOFAZNH-CBhzET57.cjs +0 -267
- package/dist/gitGraphDiagram-NY62KEGX-DDklxVnY.cjs +0 -65
- package/dist/graph-CHoeKkVR.cjs +0 -1
- package/dist/info-63CPKGFF-xflgSxfH.js +0 -5
- package/dist/infoDiagram-F6ZHWCRC-Duylo4r7.cjs +0 -2
- package/dist/layout-BG4AbhIW.cjs +0 -1
- package/dist/linear-Bqd4C_Yb.cjs +0 -1
- package/dist/pie-WTHONI2E-BKoHQt0i.js +0 -5
- package/dist/plugin-mermaid-FTki7cN8.cjs +0 -255
- package/dist/radar-NJJJXTRR-Bj9rI8mr.js +0 -5
- package/dist/sankeyDiagram-TZEHDZUN-C-ESiLJA.cjs +0 -10
- package/dist/stateDiagram-FKZM4ZOC-BuKL2w66.cjs +0 -1
- package/dist/stateDiagram-v2-4FDKWEC3-Ct5PFxdd.cjs +0 -1
|
@@ -1,7 +1,6 @@
|
|
|
1
|
-
import {
|
|
2
|
-
import {
|
|
3
|
-
import {
|
|
4
|
-
import { i as Qn } from "./init-DjUOC4st.js";
|
|
1
|
+
import { b0 as nn, b1 as Ln, b2 as rn, b3 as an, b4 as sn, b5 as se, b6 as An, aI as we, _ as h, g as In, s as Wn, q as On, p as Hn, a as Nn, b as Vn, c as _t, d as Bt, e as Pn, b7 as at, l as Kt, k as zn, j as Rn, y as qn, u as Bn } from "./custom-B4yTjcNy.js";
|
|
2
|
+
import { b as Zn, t as Oe, c as Xn, a as Gn, l as Qn } from "./linear-BE7L7Wq8.js";
|
|
3
|
+
import { i as $n } from "./init-DjUOC4st.js";
|
|
5
4
|
function jn(t, e) {
|
|
6
5
|
let n;
|
|
7
6
|
if (e === void 0)
|
|
@@ -48,15 +47,15 @@ function ar() {
|
|
|
48
47
|
function on(t, e) {
|
|
49
48
|
var n = [], r = null, a = null, i = 6, s = 6, y = 3, _ = typeof window < "u" && window.devicePixelRatio > 1 ? 0 : 0.5, p = t === Xt || t === Zt ? -1 : 1, g = t === Zt || t === oe ? "x" : "y", E = t === Xt || t === ke ? tr : er;
|
|
50
49
|
function C(b) {
|
|
51
|
-
var X = r ?? (e.ticks ? e.ticks.apply(e, n) : e.domain()), O = a ?? (e.tickFormat ? e.tickFormat.apply(e, n) : Kn), M = Math.max(i, 0) + y, I = e.range(), V = +I[0] + _, W = +I[I.length - 1] + _, B = (e.bandwidth ? rr : nr)(e.copy(), _),
|
|
52
|
-
D = D.merge(D.enter().insert("path", ".tick").attr("class", "domain").attr("stroke", "currentColor")), H = H.merge(Y), F = F.merge(Y.append("line").attr("stroke", "currentColor").attr(g + "2", p * i)), S = S.merge(Y.append("text").attr("fill", "currentColor").attr(g, p * M).attr("dy", t === Xt ? "0em" : t === ke ? "0.71em" : "0.32em")), b !==
|
|
50
|
+
var X = r ?? (e.ticks ? e.ticks.apply(e, n) : e.domain()), O = a ?? (e.tickFormat ? e.tickFormat.apply(e, n) : Kn), M = Math.max(i, 0) + y, I = e.range(), V = +I[0] + _, W = +I[I.length - 1] + _, B = (e.bandwidth ? rr : nr)(e.copy(), _), $ = b.selection ? b.selection() : b, D = $.selectAll(".domain").data([null]), H = $.selectAll(".tick").data(X, e).order(), x = H.exit(), Y = H.enter().append("g").attr("class", "tick"), F = H.select("line"), S = H.select("text");
|
|
51
|
+
D = D.merge(D.enter().insert("path", ".tick").attr("class", "domain").attr("stroke", "currentColor")), H = H.merge(Y), F = F.merge(Y.append("line").attr("stroke", "currentColor").attr(g + "2", p * i)), S = S.merge(Y.append("text").attr("fill", "currentColor").attr(g, p * M).attr("dy", t === Xt ? "0em" : t === ke ? "0.71em" : "0.32em")), b !== $ && (D = D.transition(b), H = H.transition(b), F = F.transition(b), S = S.transition(b), x = x.transition(b).attr("opacity", He).attr("transform", function(v) {
|
|
53
52
|
return isFinite(v = B(v)) ? E(v + _) : this.getAttribute("transform");
|
|
54
53
|
}), Y.attr("opacity", He).attr("transform", function(v) {
|
|
55
54
|
var U = this.parentNode.__axis;
|
|
56
55
|
return E((U && isFinite(U = U(v)) ? U : B(v)) + _);
|
|
57
56
|
})), x.remove(), D.attr("d", t === Zt || t === oe ? s ? "M" + p * s + "," + V + "H" + _ + "V" + W + "H" + p * s : "M" + _ + "," + V + "V" + W : s ? "M" + V + "," + p * s + "V" + _ + "H" + W + "V" + p * s : "M" + V + "," + _ + "H" + W), H.attr("opacity", 1).attr("transform", function(v) {
|
|
58
57
|
return E(B(v) + _);
|
|
59
|
-
}), F.attr(g + "2", p * i), S.attr(g, p * M).text(O),
|
|
58
|
+
}), F.attr(g + "2", p * i), S.attr(g, p * M).text(O), $.filter(ar).attr("fill", "none").attr("font-size", 10).attr("font-family", "sans-serif").attr("text-anchor", t === oe ? "start" : t === Zt ? "end" : "middle"), $.each(function() {
|
|
60
59
|
this.__axis = B;
|
|
61
60
|
});
|
|
62
61
|
}
|
|
@@ -387,19 +386,19 @@ function Mr(t) {
|
|
|
387
386
|
c: null,
|
|
388
387
|
d: Be,
|
|
389
388
|
e: Be,
|
|
390
|
-
f:
|
|
389
|
+
f: Qr,
|
|
391
390
|
g: ia,
|
|
392
391
|
G: oa,
|
|
393
392
|
H: Zr,
|
|
394
393
|
I: Xr,
|
|
395
394
|
j: Gr,
|
|
396
395
|
L: Tn,
|
|
397
|
-
m:
|
|
396
|
+
m: $r,
|
|
398
397
|
M: jr,
|
|
399
398
|
p: o,
|
|
400
399
|
q: z,
|
|
401
400
|
Q: Ge,
|
|
402
|
-
s:
|
|
401
|
+
s: Qe,
|
|
403
402
|
S: Jr,
|
|
404
403
|
u: Kr,
|
|
405
404
|
U: ta,
|
|
@@ -432,7 +431,7 @@ function Mr(t) {
|
|
|
432
431
|
p: j,
|
|
433
432
|
q: it,
|
|
434
433
|
Q: Ge,
|
|
435
|
-
s:
|
|
434
|
+
s: Qe,
|
|
436
435
|
S: ga,
|
|
437
436
|
u: ya,
|
|
438
437
|
U: ka,
|
|
@@ -445,7 +444,7 @@ function Mr(t) {
|
|
|
445
444
|
Y: wa,
|
|
446
445
|
Z: Ca,
|
|
447
446
|
"%": Xe
|
|
448
|
-
},
|
|
447
|
+
}, $ = {
|
|
449
448
|
a: F,
|
|
450
449
|
A: S,
|
|
451
450
|
b: v,
|
|
@@ -482,30 +481,30 @@ function Mr(t) {
|
|
|
482
481
|
W.x = D(n, W), W.X = D(r, W), W.c = D(e, W), B.x = D(n, B), B.X = D(r, B), B.c = D(e, B);
|
|
483
482
|
function D(k, A) {
|
|
484
483
|
return function(N) {
|
|
485
|
-
var f = [], J = -1, L = 0,
|
|
486
|
-
for (N instanceof Date || (N = /* @__PURE__ */ new Date(+N)); ++J <
|
|
484
|
+
var f = [], J = -1, L = 0, Q = k.length, Z, rt, st;
|
|
485
|
+
for (N instanceof Date || (N = /* @__PURE__ */ new Date(+N)); ++J < Q; )
|
|
487
486
|
k.charCodeAt(J) === 37 && (f.push(k.slice(L, J)), (rt = Ve[Z = k.charAt(++J)]) != null ? Z = k.charAt(++J) : rt = Z === "e" ? " " : "0", (st = A[Z]) && (Z = st(N, rt)), f.push(Z), L = J + 1);
|
|
488
487
|
return f.push(k.slice(L, J)), f.join("");
|
|
489
488
|
};
|
|
490
489
|
}
|
|
491
490
|
function H(k, A) {
|
|
492
491
|
return function(N) {
|
|
493
|
-
var f = Lt(1900, void 0, 1), J = x(f, k, N += "", 0), L,
|
|
492
|
+
var f = Lt(1900, void 0, 1), J = x(f, k, N += "", 0), L, Q;
|
|
494
493
|
if (J != N.length) return null;
|
|
495
494
|
if ("Q" in f) return new Date(f.Q);
|
|
496
495
|
if ("s" in f) return new Date(f.s * 1e3 + ("L" in f ? f.L : 0));
|
|
497
496
|
if (A && !("Z" in f) && (f.Z = 0), "p" in f && (f.H = f.H % 12 + f.p * 12), f.m === void 0 && (f.m = "q" in f ? f.q : 0), "V" in f) {
|
|
498
497
|
if (f.V < 1 || f.V > 53) return null;
|
|
499
|
-
"w" in f || (f.w = 1), "Z" in f ? (L = ye(Lt(f.y, 0, 1)),
|
|
500
|
-
} else ("W" in f || "U" in f) && ("w" in f || (f.w = "u" in f ? f.u % 7 : "W" in f ? 1 : 0),
|
|
498
|
+
"w" in f || (f.w = 1), "Z" in f ? (L = ye(Lt(f.y, 0, 1)), Q = L.getUTCDay(), L = Q > 4 || Q === 0 ? ee.ceil(L) : ee(L), L = Ce.offset(L, (f.V - 1) * 7), f.y = L.getUTCFullYear(), f.m = L.getUTCMonth(), f.d = L.getUTCDate() + (f.w + 6) % 7) : (L = ge(Lt(f.y, 0, 1)), Q = L.getDay(), L = Q > 4 || Q === 0 ? Ht.ceil(L) : Ht(L), L = Tt.offset(L, (f.V - 1) * 7), f.y = L.getFullYear(), f.m = L.getMonth(), f.d = L.getDate() + (f.w + 6) % 7);
|
|
499
|
+
} else ("W" in f || "U" in f) && ("w" in f || (f.w = "u" in f ? f.u % 7 : "W" in f ? 1 : 0), Q = "Z" in f ? ye(Lt(f.y, 0, 1)).getUTCDay() : ge(Lt(f.y, 0, 1)).getDay(), f.m = 0, f.d = "W" in f ? (f.w + 6) % 7 + f.W * 7 - (Q + 5) % 7 : f.w + f.U * 7 - (Q + 6) % 7);
|
|
501
500
|
return "Z" in f ? (f.H += f.Z / 100 | 0, f.M += f.Z % 100, ye(f)) : ge(f);
|
|
502
501
|
};
|
|
503
502
|
}
|
|
504
503
|
function x(k, A, N, f) {
|
|
505
|
-
for (var J = 0, L = A.length,
|
|
506
|
-
if (f >=
|
|
504
|
+
for (var J = 0, L = A.length, Q = N.length, Z, rt; J < L; ) {
|
|
505
|
+
if (f >= Q) return -1;
|
|
507
506
|
if (Z = A.charCodeAt(J++), Z === 37) {
|
|
508
|
-
if (Z = A.charAt(J++), rt =
|
|
507
|
+
if (Z = A.charAt(J++), rt = $[Z in Ve ? A.charAt(J++) : Z], !rt || (f = rt(k, N, f)) < 0) return -1;
|
|
509
508
|
} else if (Z != N.charCodeAt(f++))
|
|
510
509
|
return -1;
|
|
511
510
|
}
|
|
@@ -712,10 +711,10 @@ function Gr(t, e) {
|
|
|
712
711
|
function Tn(t, e) {
|
|
713
712
|
return q(t.getMilliseconds(), e, 3);
|
|
714
713
|
}
|
|
715
|
-
function
|
|
714
|
+
function Qr(t, e) {
|
|
716
715
|
return Tn(t, e) + "000";
|
|
717
716
|
}
|
|
718
|
-
function
|
|
717
|
+
function $r(t, e) {
|
|
719
718
|
return q(t.getMonth() + 1, e, 2);
|
|
720
719
|
}
|
|
721
720
|
function jr(t, e) {
|
|
@@ -830,7 +829,7 @@ function Xe() {
|
|
|
830
829
|
function Ge(t) {
|
|
831
830
|
return +t;
|
|
832
831
|
}
|
|
833
|
-
function
|
|
832
|
+
function Qe(t) {
|
|
834
833
|
return Math.floor(+t / 1e3);
|
|
835
834
|
}
|
|
836
835
|
var Mt, ne;
|
|
@@ -855,7 +854,7 @@ function Sa(t) {
|
|
|
855
854
|
}
|
|
856
855
|
function Dn(t, e, n, r, a, i, s, y, _, p) {
|
|
857
856
|
var g = Xn(), E = g.invert, C = g.domain, b = p(".%L"), X = p(":%S"), O = p("%I:%M"), M = p("%I %p"), I = p("%a %d"), V = p("%b %d"), W = p("%B"), B = p("%Y");
|
|
858
|
-
function
|
|
857
|
+
function $(D) {
|
|
859
858
|
return (_(D) < D ? b : y(D) < D ? X : s(D) < D ? O : i(D) < D ? M : r(D) < D ? a(D) < D ? I : V : n(D) < D ? W : B)(D);
|
|
860
859
|
}
|
|
861
860
|
return g.invert = function(D) {
|
|
@@ -866,7 +865,7 @@ function Dn(t, e, n, r, a, i, s, y, _, p) {
|
|
|
866
865
|
var H = C();
|
|
867
866
|
return t(H[0], H[H.length - 1], D ?? 10);
|
|
868
867
|
}, g.tickFormat = function(D, H) {
|
|
869
|
-
return H == null ?
|
|
868
|
+
return H == null ? $ : p(H);
|
|
870
869
|
}, g.nice = function(D) {
|
|
871
870
|
var H = C();
|
|
872
871
|
return (!D || typeof D.range != "function") && (D = e(H[0], H[H.length - 1], D ?? 10)), D ? C(mr(H, D)) : g;
|
|
@@ -875,11 +874,11 @@ function Dn(t, e, n, r, a, i, s, y, _, p) {
|
|
|
875
874
|
}, g;
|
|
876
875
|
}
|
|
877
876
|
function Fa() {
|
|
878
|
-
return
|
|
877
|
+
return $n.apply(Dn(Dr, Cr, kt, Nt, Vt, Tt, Ot, Wt, vt, ne).domain([new Date(2e3, 0, 1), new Date(2e3, 0, 2)]), arguments);
|
|
879
878
|
}
|
|
880
|
-
var Gt = { exports: {} }, Ya = Gt.exports,
|
|
879
|
+
var Gt = { exports: {} }, Ya = Gt.exports, $e;
|
|
881
880
|
function Ua() {
|
|
882
|
-
return
|
|
881
|
+
return $e || ($e = 1, (function(t, e) {
|
|
883
882
|
(function(n, r) {
|
|
884
883
|
t.exports = r();
|
|
885
884
|
})(Ya, (function() {
|
|
@@ -908,7 +907,7 @@ function Ua() {
|
|
|
908
907
|
}
|
|
909
908
|
var Ea = Ua();
|
|
910
909
|
const La = /* @__PURE__ */ we(Ea);
|
|
911
|
-
var
|
|
910
|
+
var Qt = { exports: {} }, Aa = Qt.exports, je;
|
|
912
911
|
function Ia() {
|
|
913
912
|
return je || (je = 1, (function(t, e) {
|
|
914
913
|
(function(n, r) {
|
|
@@ -974,9 +973,9 @@ function Ia() {
|
|
|
974
973
|
return S || V[v] || n[v] || V[U].replace(/(\[[^\]]+])|(MMMM|MM|DD|dddd)/g, (function(l, m, T) {
|
|
975
974
|
return m || T.slice(1);
|
|
976
975
|
}));
|
|
977
|
-
}))).match(r), B = W.length,
|
|
978
|
-
var D = W[
|
|
979
|
-
W[
|
|
976
|
+
}))).match(r), B = W.length, $ = 0; $ < B; $ += 1) {
|
|
977
|
+
var D = W[$], H = X[D], x = H && H[0], Y = H && H[1];
|
|
978
|
+
W[$] = Y ? { regex: x, parser: Y } : D.replace(/^\[|\]$/g, "");
|
|
980
979
|
}
|
|
981
980
|
return function(F) {
|
|
982
981
|
for (var S = {}, v = 0, U = 0; v < B; v += 1) {
|
|
@@ -999,8 +998,8 @@ function Ia() {
|
|
|
999
998
|
return function(M, I, V) {
|
|
1000
999
|
V.p.customParseFormat = !0, M && M.parseTwoDigitYear && (p = M.parseTwoDigitYear);
|
|
1001
1000
|
var W = I.prototype, B = W.parse;
|
|
1002
|
-
W.parse = function(
|
|
1003
|
-
var D =
|
|
1001
|
+
W.parse = function($) {
|
|
1002
|
+
var D = $.date, H = $.utc, x = $.args;
|
|
1004
1003
|
this.$u = H;
|
|
1005
1004
|
var Y = x[1];
|
|
1006
1005
|
if (typeof Y == "string") {
|
|
@@ -1010,8 +1009,8 @@ function Ia() {
|
|
|
1010
1009
|
if (["x", "X"].indexOf(w) > -1) return new Date((w === "X" ? 1e3 : 1) * d);
|
|
1011
1010
|
var o = O(w)(d), z = o.year, P = o.month, R = o.day, K = o.hours, G = o.minutes, j = o.seconds, it = o.milliseconds, k = o.zone, A = o.week, N = /* @__PURE__ */ new Date(), f = R || (z || P ? 1 : N.getDate()), J = z || N.getFullYear(), L = 0;
|
|
1012
1011
|
z && !P || (L = P > 0 ? P - 1 : N.getMonth());
|
|
1013
|
-
var
|
|
1014
|
-
return k ? new Date(Date.UTC(J, L, f, Z, rt, st, pt + 60 * k.offset * 1e3)) : c ? new Date(Date.UTC(J, L, f, Z, rt, st, pt)) : (
|
|
1012
|
+
var Q, Z = K || 0, rt = G || 0, st = j || 0, pt = it || 0;
|
|
1013
|
+
return k ? new Date(Date.UTC(J, L, f, Z, rt, st, pt + 60 * k.offset * 1e3)) : c ? new Date(Date.UTC(J, L, f, Z, rt, st, pt)) : (Q = new Date(J, L, f, Z, rt, st, pt), A && (Q = u(Q).week(A).toDate()), Q);
|
|
1015
1014
|
} catch {
|
|
1016
1015
|
return /* @__PURE__ */ new Date("");
|
|
1017
1016
|
}
|
|
@@ -1025,15 +1024,15 @@ function Ia() {
|
|
|
1025
1024
|
}
|
|
1026
1025
|
m === l && (this.$d = /* @__PURE__ */ new Date(""));
|
|
1027
1026
|
}
|
|
1028
|
-
else B.call(this,
|
|
1027
|
+
else B.call(this, $);
|
|
1029
1028
|
};
|
|
1030
1029
|
};
|
|
1031
1030
|
}));
|
|
1032
|
-
})(
|
|
1031
|
+
})(Qt)), Qt.exports;
|
|
1033
1032
|
}
|
|
1034
1033
|
var Wa = Ia();
|
|
1035
1034
|
const Oa = /* @__PURE__ */ we(Wa);
|
|
1036
|
-
var
|
|
1035
|
+
var $t = { exports: {} }, Ha = $t.exports, Je;
|
|
1037
1036
|
function Na() {
|
|
1038
1037
|
return Je || (Je = 1, (function(t, e) {
|
|
1039
1038
|
(function(n, r) {
|
|
@@ -1081,7 +1080,7 @@ function Na() {
|
|
|
1081
1080
|
};
|
|
1082
1081
|
};
|
|
1083
1082
|
}));
|
|
1084
|
-
})(
|
|
1083
|
+
})($t)), $t.exports;
|
|
1085
1084
|
}
|
|
1086
1085
|
var Va = Na();
|
|
1087
1086
|
const Pa = /* @__PURE__ */ we(Va);
|
|
@@ -1089,7 +1088,7 @@ var ve = (function() {
|
|
|
1089
1088
|
var t = /* @__PURE__ */ h(function(U, l, m, T) {
|
|
1090
1089
|
for (m = m || {}, T = U.length; T--; m[U[T]] = l) ;
|
|
1091
1090
|
return m;
|
|
1092
|
-
}, "o"), e = [6, 8, 10, 12, 13, 14, 15, 16, 17, 18, 20, 21, 22, 23, 24, 25, 26, 27, 28, 29, 30, 31, 33, 35, 36, 38, 40], n = [1, 26], r = [1, 27], a = [1, 28], i = [1, 29], s = [1, 30], y = [1, 31], _ = [1, 32], p = [1, 33], g = [1, 34], E = [1, 9], C = [1, 10], b = [1, 11], X = [1, 12], O = [1, 13], M = [1, 14], I = [1, 15], V = [1, 16], W = [1, 19], B = [1, 20],
|
|
1091
|
+
}, "o"), e = [6, 8, 10, 12, 13, 14, 15, 16, 17, 18, 20, 21, 22, 23, 24, 25, 26, 27, 28, 29, 30, 31, 33, 35, 36, 38, 40], n = [1, 26], r = [1, 27], a = [1, 28], i = [1, 29], s = [1, 30], y = [1, 31], _ = [1, 32], p = [1, 33], g = [1, 34], E = [1, 9], C = [1, 10], b = [1, 11], X = [1, 12], O = [1, 13], M = [1, 14], I = [1, 15], V = [1, 16], W = [1, 19], B = [1, 20], $ = [1, 21], D = [1, 22], H = [1, 23], x = [1, 25], Y = [1, 35], F = {
|
|
1093
1092
|
trace: /* @__PURE__ */ h(function() {
|
|
1094
1093
|
}, "trace"),
|
|
1095
1094
|
yy: {},
|
|
@@ -1218,7 +1217,7 @@ var ve = (function() {
|
|
|
1218
1217
|
break;
|
|
1219
1218
|
}
|
|
1220
1219
|
}, "anonymous"),
|
|
1221
|
-
table: [{ 3: 1, 4: [1, 2] }, { 1: [3] }, t(e, [2, 2], { 5: 3 }), { 6: [1, 4], 7: 5, 8: [1, 6], 9: 7, 10: [1, 8], 11: 17, 12: n, 13: r, 14: a, 15: i, 16: s, 17: y, 18: _, 19: 18, 20: p, 21: g, 22: E, 23: C, 24: b, 25: X, 26: O, 27: M, 28: I, 29: V, 30: W, 31: B, 33:
|
|
1220
|
+
table: [{ 3: 1, 4: [1, 2] }, { 1: [3] }, t(e, [2, 2], { 5: 3 }), { 6: [1, 4], 7: 5, 8: [1, 6], 9: 7, 10: [1, 8], 11: 17, 12: n, 13: r, 14: a, 15: i, 16: s, 17: y, 18: _, 19: 18, 20: p, 21: g, 22: E, 23: C, 24: b, 25: X, 26: O, 27: M, 28: I, 29: V, 30: W, 31: B, 33: $, 35: D, 36: H, 37: 24, 38: x, 40: Y }, t(e, [2, 7], { 1: [2, 1] }), t(e, [2, 3]), { 9: 36, 11: 17, 12: n, 13: r, 14: a, 15: i, 16: s, 17: y, 18: _, 19: 18, 20: p, 21: g, 22: E, 23: C, 24: b, 25: X, 26: O, 27: M, 28: I, 29: V, 30: W, 31: B, 33: $, 35: D, 36: H, 37: 24, 38: x, 40: Y }, t(e, [2, 5]), t(e, [2, 6]), t(e, [2, 17]), t(e, [2, 18]), t(e, [2, 19]), t(e, [2, 20]), t(e, [2, 21]), t(e, [2, 22]), t(e, [2, 23]), t(e, [2, 24]), t(e, [2, 25]), t(e, [2, 26]), t(e, [2, 27]), { 32: [1, 37] }, { 34: [1, 38] }, t(e, [2, 30]), t(e, [2, 31]), t(e, [2, 32]), { 39: [1, 39] }, t(e, [2, 8]), t(e, [2, 9]), t(e, [2, 10]), t(e, [2, 11]), t(e, [2, 12]), t(e, [2, 13]), t(e, [2, 14]), t(e, [2, 15]), t(e, [2, 16]), { 41: [1, 40], 43: [1, 41] }, t(e, [2, 4]), t(e, [2, 28]), t(e, [2, 29]), t(e, [2, 33]), t(e, [2, 34], { 42: [1, 42], 43: [1, 43] }), t(e, [2, 40], { 41: [1, 44] }), t(e, [2, 35], { 43: [1, 45] }), t(e, [2, 36]), t(e, [2, 38], { 42: [1, 46] }), t(e, [2, 37]), t(e, [2, 39])],
|
|
1222
1221
|
defaultActions: {},
|
|
1223
1222
|
parseError: /* @__PURE__ */ h(function(l, m) {
|
|
1224
1223
|
if (m.recoverable)
|
|
@@ -1246,11 +1245,11 @@ var ve = (function() {
|
|
|
1246
1245
|
return ot = d.pop() || j.lex() || K, typeof ot != "number" && (ot instanceof Array && (d = ot, ot = d.pop()), ot = m.symbols_[ot] || ot), ot;
|
|
1247
1246
|
}
|
|
1248
1247
|
h(J, "lex");
|
|
1249
|
-
for (var L,
|
|
1250
|
-
if (
|
|
1248
|
+
for (var L, Q, Z, rt, st = {}, pt, ut, We, qt; ; ) {
|
|
1249
|
+
if (Q = T[T.length - 1], this.defaultActions[Q] ? Z = this.defaultActions[Q] : ((L === null || typeof L > "u") && (L = J()), Z = u[Q] && u[Q][L]), typeof Z > "u" || !Z.length || !Z[0]) {
|
|
1251
1250
|
var ie = "";
|
|
1252
1251
|
qt = [];
|
|
1253
|
-
for (pt in u[
|
|
1252
|
+
for (pt in u[Q])
|
|
1254
1253
|
this.terminals_[pt] && pt > R && qt.push("'" + this.terminals_[pt] + "'");
|
|
1255
1254
|
j.showPosition ? ie = "Parse error on line " + (z + 1) + `:
|
|
1256
1255
|
` + j.showPosition() + `
|
|
@@ -1263,7 +1262,7 @@ Expecting ` + qt.join(", ") + ", got '" + (this.terminals_[L] || L) + "'" : ie =
|
|
|
1263
1262
|
});
|
|
1264
1263
|
}
|
|
1265
1264
|
if (Z[0] instanceof Array && Z.length > 1)
|
|
1266
|
-
throw new Error("Parse Error: multiple actions possible at state: " +
|
|
1265
|
+
throw new Error("Parse Error: multiple actions possible at state: " + Q + ", token: " + L);
|
|
1267
1266
|
switch (Z[0]) {
|
|
1268
1267
|
case 1:
|
|
1269
1268
|
T.push(L), w.push(j.yytext), c.push(j.yylloc), T.push(Z[1]), L = null, P = j.yyleng, o = j.yytext, z = j.yylineno, A = j.yylloc;
|
|
@@ -1613,9 +1612,9 @@ var Ke = { friday: 5, saturday: 6 }, lt = "", Me = "", _e = void 0, Se = "", Pt
|
|
|
1613
1612
|
return _e;
|
|
1614
1613
|
}, "getTickInterval"), Ga = /* @__PURE__ */ h(function(t) {
|
|
1615
1614
|
Se = t;
|
|
1616
|
-
}, "setTodayMarker"),
|
|
1615
|
+
}, "setTodayMarker"), Qa = /* @__PURE__ */ h(function() {
|
|
1617
1616
|
return Se;
|
|
1618
|
-
}, "getTodayMarker"),
|
|
1617
|
+
}, "getTodayMarker"), $a = /* @__PURE__ */ h(function(t) {
|
|
1619
1618
|
lt = t;
|
|
1620
1619
|
}, "setDateFormat"), ja = /* @__PURE__ */ h(function() {
|
|
1621
1620
|
Rt = !0;
|
|
@@ -1901,7 +1900,7 @@ var Ke = { friday: 5, saturday: 6 }, lt = "", Me = "", _e = void 0, Se = "", Pt
|
|
|
1901
1900
|
}, "bindFunctions"), Di = {
|
|
1902
1901
|
getConfig: /* @__PURE__ */ h(() => _t().gantt, "getConfig"),
|
|
1903
1902
|
clear: Ra,
|
|
1904
|
-
setDateFormat:
|
|
1903
|
+
setDateFormat: $a,
|
|
1905
1904
|
getDateFormat: ri,
|
|
1906
1905
|
enableInclusiveEndDates: ja,
|
|
1907
1906
|
endDatesAreInclusive: Ja,
|
|
@@ -1912,7 +1911,7 @@ var Ke = { friday: 5, saturday: 6 }, lt = "", Me = "", _e = void 0, Se = "", Pt
|
|
|
1912
1911
|
setTickInterval: Za,
|
|
1913
1912
|
getTickInterval: Xa,
|
|
1914
1913
|
setTodayMarker: Ga,
|
|
1915
|
-
getTodayMarker:
|
|
1914
|
+
getTodayMarker: Qa,
|
|
1916
1915
|
setAccTitle: Vn,
|
|
1917
1916
|
getAccTitle: Nn,
|
|
1918
1917
|
setDiagramTitle: Hn,
|
|
@@ -2012,7 +2011,7 @@ var Ci = /* @__PURE__ */ h(function() {
|
|
|
2012
2011
|
}
|
|
2013
2012
|
h(M, "taskCompare"), g.sort(M), I(g, ht, b), Pn(X, b, ht, a.useMaxWidth), X.append("text").text(r.db.getDiagramTitle()).attr("x", ht / 2).attr("y", a.titleTopMargin).attr("class", "titleText");
|
|
2014
2013
|
function I(x, Y, F) {
|
|
2015
|
-
const S = a.barHeight, v = S + a.barGap, U = a.topPadding, l = a.leftPadding, m =
|
|
2014
|
+
const S = a.barHeight, v = S + a.barGap, U = a.topPadding, l = a.leftPadding, m = Qn().domain([0, E.length]).range(["#00B9FA", "#F95002"]).interpolate(dr);
|
|
2016
2015
|
W(
|
|
2017
2016
|
v,
|
|
2018
2017
|
U,
|
|
@@ -2022,7 +2021,7 @@ var Ci = /* @__PURE__ */ h(function() {
|
|
|
2022
2021
|
x,
|
|
2023
2022
|
r.db.getExcludes(),
|
|
2024
2023
|
r.db.getIncludes()
|
|
2025
|
-
), B(l, U, Y, F), V(x, v, U, l, S, m, Y),
|
|
2024
|
+
), B(l, U, Y, F), V(x, v, U, l, S, m, Y), $(v, U), D(l, U, Y, F);
|
|
2026
2025
|
}
|
|
2027
2026
|
h(I, "makeGantt");
|
|
2028
2027
|
function V(x, Y, F, S, v, U, l) {
|
|
@@ -2191,7 +2190,7 @@ var Ci = /* @__PURE__ */ h(function() {
|
|
|
2191
2190
|
}
|
|
2192
2191
|
}
|
|
2193
2192
|
h(B, "makeGrid");
|
|
2194
|
-
function
|
|
2193
|
+
function $(x, Y) {
|
|
2195
2194
|
let F = 0;
|
|
2196
2195
|
const S = Object.keys(C).map((v) => [v, C[v]]);
|
|
2197
2196
|
X.append("g").selectAll("text").data(S).enter().append(function(v) {
|
|
@@ -2215,7 +2214,7 @@ var Ci = /* @__PURE__ */ h(function() {
|
|
|
2215
2214
|
return "sectionTitle";
|
|
2216
2215
|
});
|
|
2217
2216
|
}
|
|
2218
|
-
h(
|
|
2217
|
+
h($, "vertLabels");
|
|
2219
2218
|
function D(x, Y, F, S) {
|
|
2220
2219
|
const v = r.db.getTodayMarker();
|
|
2221
2220
|
if (v === "off")
|
|
@@ -2495,12 +2494,12 @@ var Ci = /* @__PURE__ */ h(function() {
|
|
|
2495
2494
|
fill: ${t.titleColor || t.textColor};
|
|
2496
2495
|
font-family: ${t.fontFamily};
|
|
2497
2496
|
}
|
|
2498
|
-
`, "getStyles"), Yi = Fi,
|
|
2497
|
+
`, "getStyles"), Yi = Fi, Ai = {
|
|
2499
2498
|
parser: za,
|
|
2500
2499
|
db: Di,
|
|
2501
2500
|
renderer: Si,
|
|
2502
2501
|
styles: Yi
|
|
2503
2502
|
};
|
|
2504
2503
|
export {
|
|
2505
|
-
|
|
2504
|
+
Ai as diagram
|
|
2506
2505
|
};
|
|
@@ -1 +1 @@
|
|
|
1
|
-
"use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const e=require("./mermaid-parser.core-
|
|
1
|
+
"use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const e=require("./mermaid-parser.core-D8AljRep.cjs");exports.GitGraphModule=e.GitGraphModule;exports.createGitGraphServices=e.createGitGraphServices;
|
|
@@ -0,0 +1,65 @@
|
|
|
1
|
+
"use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const W=require("./chunk-4BX2VUAB-Bt9zCVip.cjs"),j=require("./chunk-QZHKN3VN-Dg1DeAnJ.cjs"),s=require("./custom-DUStvHau.cjs"),K=require("./mermaid-parser.core-D8AljRep.cjs");var x={NORMAL:0,REVERSE:1,HIGHLIGHT:2,MERGE:3,CHERRY_PICK:4},U=s.defaultConfig_default.gitGraph,L=s.__name(()=>s.cleanAndMerge({...U,...s.getConfig().gitGraph}),"getConfig"),i=new j.ImperativeState(()=>{const t=L(),e=t.mainBranchName,n=t.mainBranchOrder;return{mainBranchName:e,commits:new Map,head:null,branchConfig:new Map([[e,{name:e,order:n}]]),branches:new Map([[e,null]]),currBranch:e,direction:"LR",seq:0,options:{}}});function G(){return s.random({length:7})}s.__name(G,"getID");function H(t,e){const n=Object.create(null);return t.reduce((o,r)=>{const a=e(r);return n[a]||(n[a]=!0,o.push(r)),o},[])}s.__name(H,"uniqBy");var Y=s.__name(function(t){i.records.direction=t},"setDirection"),V=s.__name(function(t){s.log.debug("options str",t),t=t?.trim(),t=t||"{}";try{i.records.options=JSON.parse(t)}catch(e){s.log.error("error while parsing gitGraph options",e.message)}},"setOptions"),X=s.__name(function(){return i.records.options},"getOptions"),Q=s.__name(function(t){let e=t.msg,n=t.id;const o=t.type;let r=t.tags;s.log.info("commit",e,n,o,r),s.log.debug("Entering commit:",e,n,o,r);const a=L();n=s.common_default.sanitizeText(n,a),e=s.common_default.sanitizeText(e,a),r=r?.map(c=>s.common_default.sanitizeText(c,a));const l={id:n||i.records.seq+"-"+G(),message:e,seq:i.records.seq++,type:o??x.NORMAL,tags:r??[],parents:i.records.head==null?[]:[i.records.head.id],branch:i.records.currBranch};i.records.head=l,s.log.info("main branch",a.mainBranchName),i.records.commits.has(l.id)&&s.log.warn(`Commit ID ${l.id} already exists`),i.records.commits.set(l.id,l),i.records.branches.set(i.records.currBranch,l.id),s.log.debug("in pushCommit "+l.id)},"commit"),J=s.__name(function(t){let e=t.name;const n=t.order;if(e=s.common_default.sanitizeText(e,L()),i.records.branches.has(e))throw new Error(`Trying to create an existing branch. (Help: Either use a new name if you want create a new branch or try using "checkout ${e}")`);i.records.branches.set(e,i.records.head!=null?i.records.head.id:null),i.records.branchConfig.set(e,{name:e,order:n}),D(e),s.log.debug("in createBranch")},"branch"),Z=s.__name(t=>{let e=t.branch,n=t.id;const o=t.type,r=t.tags,a=L();e=s.common_default.sanitizeText(e,a),n&&(n=s.common_default.sanitizeText(n,a));const l=i.records.branches.get(i.records.currBranch),c=i.records.branches.get(e),f=l?i.records.commits.get(l):void 0,h=c?i.records.commits.get(c):void 0;if(f&&h&&f.branch===e)throw new Error(`Cannot merge branch '${e}' into itself.`);if(i.records.currBranch===e){const d=new Error('Incorrect usage of "merge". Cannot merge a branch to itself');throw d.hash={text:`merge ${e}`,token:`merge ${e}`,expected:["branch abc"]},d}if(f===void 0||!f){const d=new Error(`Incorrect usage of "merge". Current branch (${i.records.currBranch})has no commits`);throw d.hash={text:`merge ${e}`,token:`merge ${e}`,expected:["commit"]},d}if(!i.records.branches.has(e)){const d=new Error('Incorrect usage of "merge". Branch to be merged ('+e+") does not exist");throw d.hash={text:`merge ${e}`,token:`merge ${e}`,expected:[`branch ${e}`]},d}if(h===void 0||!h){const d=new Error('Incorrect usage of "merge". Branch to be merged ('+e+") has no commits");throw d.hash={text:`merge ${e}`,token:`merge ${e}`,expected:['"commit"']},d}if(f===h){const d=new Error('Incorrect usage of "merge". Both branches have same head');throw d.hash={text:`merge ${e}`,token:`merge ${e}`,expected:["branch abc"]},d}if(n&&i.records.commits.has(n)){const d=new Error('Incorrect usage of "merge". Commit with id:'+n+" already exists, use different custom id");throw d.hash={text:`merge ${e} ${n} ${o} ${r?.join(" ")}`,token:`merge ${e} ${n} ${o} ${r?.join(" ")}`,expected:[`merge ${e} ${n}_UNIQUE ${o} ${r?.join(" ")}`]},d}const $=c||"",g={id:n||`${i.records.seq}-${G()}`,message:`merged branch ${e} into ${i.records.currBranch}`,seq:i.records.seq++,parents:i.records.head==null?[]:[i.records.head.id,$],branch:i.records.currBranch,type:x.MERGE,customType:o,customId:!!n,tags:r??[]};i.records.head=g,i.records.commits.set(g.id,g),i.records.branches.set(i.records.currBranch,g.id),s.log.debug(i.records.branches),s.log.debug("in mergeBranch")},"merge"),ee=s.__name(function(t){let e=t.id,n=t.targetId,o=t.tags,r=t.parent;s.log.debug("Entering cherryPick:",e,n,o);const a=L();if(e=s.common_default.sanitizeText(e,a),n=s.common_default.sanitizeText(n,a),o=o?.map(f=>s.common_default.sanitizeText(f,a)),r=s.common_default.sanitizeText(r,a),!e||!i.records.commits.has(e)){const f=new Error('Incorrect usage of "cherryPick". Source commit id should exist and provided');throw f.hash={text:`cherryPick ${e} ${n}`,token:`cherryPick ${e} ${n}`,expected:["cherry-pick abc"]},f}const l=i.records.commits.get(e);if(l===void 0||!l)throw new Error('Incorrect usage of "cherryPick". Source commit id should exist and provided');if(r&&!(Array.isArray(l.parents)&&l.parents.includes(r)))throw new Error("Invalid operation: The specified parent commit is not an immediate parent of the cherry-picked commit.");const c=l.branch;if(l.type===x.MERGE&&!r)throw new Error("Incorrect usage of cherry-pick: If the source commit is a merge commit, an immediate parent commit must be specified.");if(!n||!i.records.commits.has(n)){if(c===i.records.currBranch){const g=new Error('Incorrect usage of "cherryPick". Source commit is already on current branch');throw g.hash={text:`cherryPick ${e} ${n}`,token:`cherryPick ${e} ${n}`,expected:["cherry-pick abc"]},g}const f=i.records.branches.get(i.records.currBranch);if(f===void 0||!f){const g=new Error(`Incorrect usage of "cherry-pick". Current branch (${i.records.currBranch})has no commits`);throw g.hash={text:`cherryPick ${e} ${n}`,token:`cherryPick ${e} ${n}`,expected:["cherry-pick abc"]},g}const h=i.records.commits.get(f);if(h===void 0||!h){const g=new Error(`Incorrect usage of "cherry-pick". Current branch (${i.records.currBranch})has no commits`);throw g.hash={text:`cherryPick ${e} ${n}`,token:`cherryPick ${e} ${n}`,expected:["cherry-pick abc"]},g}const $={id:i.records.seq+"-"+G(),message:`cherry-picked ${l?.message} into ${i.records.currBranch}`,seq:i.records.seq++,parents:i.records.head==null?[]:[i.records.head.id,l.id],branch:i.records.currBranch,type:x.CHERRY_PICK,tags:o?o.filter(Boolean):[`cherry-pick:${l.id}${l.type===x.MERGE?`|parent:${r}`:""}`]};i.records.head=$,i.records.commits.set($.id,$),i.records.branches.set(i.records.currBranch,$.id),s.log.debug(i.records.branches),s.log.debug("in cherryPick")}},"cherryPick"),D=s.__name(function(t){if(t=s.common_default.sanitizeText(t,L()),i.records.branches.has(t)){i.records.currBranch=t;const e=i.records.branches.get(i.records.currBranch);e===void 0||!e?i.records.head=null:i.records.head=i.records.commits.get(e)??null}else{const e=new Error(`Trying to checkout branch which is not yet created. (Help try using "branch ${t}")`);throw e.hash={text:`checkout ${t}`,token:`checkout ${t}`,expected:[`branch ${t}`]},e}},"checkout");function A(t,e,n){const o=t.indexOf(e);o===-1?t.push(n):t.splice(o,1,n)}s.__name(A,"upsert");function q(t){const e=t.reduce((r,a)=>r.seq>a.seq?r:a,t[0]);let n="";t.forEach(function(r){r===e?n+=" *":n+=" |"});const o=[n,e.id,e.seq];for(const r in i.records.branches)i.records.branches.get(r)===e.id&&o.push(r);if(s.log.debug(o.join(" ")),e.parents&&e.parents.length==2&&e.parents[0]&&e.parents[1]){const r=i.records.commits.get(e.parents[0]);A(t,e,r),e.parents[1]&&t.push(i.records.commits.get(e.parents[1]))}else{if(e.parents.length==0)return;if(e.parents[0]){const r=i.records.commits.get(e.parents[0]);A(t,e,r)}}t=H(t,r=>r.id),q(t)}s.__name(q,"prettyPrintCommitHistory");var re=s.__name(function(){s.log.debug(i.records.commits);const t=N()[0];q([t])},"prettyPrint"),te=s.__name(function(){i.reset(),s.clear()},"clear"),ae=s.__name(function(){return[...i.records.branchConfig.values()].map((e,n)=>e.order!==null&&e.order!==void 0?e:{...e,order:parseFloat(`0.${n}`)}).sort((e,n)=>(e.order??0)-(n.order??0)).map(({name:e})=>({name:e}))},"getBranchesAsObjArray"),ne=s.__name(function(){return i.records.branches},"getBranches"),se=s.__name(function(){return i.records.commits},"getCommits"),N=s.__name(function(){const t=[...i.records.commits.values()];return t.forEach(function(e){s.log.debug(e.id)}),t.sort((e,n)=>e.seq-n.seq),t},"getCommitsArray"),oe=s.__name(function(){return i.records.currBranch},"getCurrentBranch"),ce=s.__name(function(){return i.records.direction},"getDirection"),ie=s.__name(function(){return i.records.head},"getHead"),z={commitType:x,getConfig:L,setDirection:Y,setOptions:V,getOptions:X,commit:Q,branch:J,merge:Z,cherryPick:ee,checkout:D,prettyPrint:re,clear:te,getBranchesAsObjArray:ae,getBranches:ne,getCommits:se,getCommitsArray:N,getCurrentBranch:oe,getDirection:ce,getHead:ie,setAccTitle:s.setAccTitle,getAccTitle:s.getAccTitle,getAccDescription:s.getAccDescription,setAccDescription:s.setAccDescription,setDiagramTitle:s.setDiagramTitle,getDiagramTitle:s.getDiagramTitle},de=s.__name((t,e)=>{W.populateCommonDb(t,e),t.dir&&e.setDirection(t.dir);for(const n of t.statements)le(n,e)},"populate"),le=s.__name((t,e)=>{const o={Commit:s.__name(r=>e.commit(he(r)),"Commit"),Branch:s.__name(r=>e.branch($e(r)),"Branch"),Merge:s.__name(r=>e.merge(fe(r)),"Merge"),Checkout:s.__name(r=>e.checkout(ge(r)),"Checkout"),CherryPicking:s.__name(r=>e.cherryPick(ye(r)),"CherryPicking")}[t.$type];o?o(t):s.log.error(`Unknown statement type: ${t.$type}`)},"parseStatement"),he=s.__name(t=>({id:t.id,msg:t.message??"",type:t.type!==void 0?x[t.type]:x.NORMAL,tags:t.tags??void 0}),"parseCommit"),$e=s.__name(t=>({name:t.name,order:t.order??0}),"parseBranch"),fe=s.__name(t=>({branch:t.branch,id:t.id??"",type:t.type!==void 0?x[t.type]:void 0,tags:t.tags??void 0}),"parseMerge"),ge=s.__name(t=>t.branch,"parseCheckout"),ye=s.__name(t=>({id:t.id,targetId:"",tags:t.tags?.length===0?void 0:t.tags,parent:t.parent}),"parseCherryPicking"),ue={parse:s.__name(async t=>{const e=await K.parse("gitGraph",t);s.log.debug(e),de(e,z)},"parse")},me=s.getConfig2(),_=me?.gitGraph,E=10,T=40,w=4,v=2,B=8,p=new Map,b=new Map,I=30,k=new Map,R=[],C=0,u="LR",xe=s.__name(()=>{p.clear(),b.clear(),k.clear(),C=0,R=[],u="LR"},"clear"),F=s.__name(t=>{const e=document.createElementNS("http://www.w3.org/2000/svg","text");return(typeof t=="string"?t.split(/\\n|\n|<br\s*\/?>/gi):t).forEach(o=>{const r=document.createElementNS("http://www.w3.org/2000/svg","tspan");r.setAttributeNS("http://www.w3.org/XML/1998/namespace","xml:space","preserve"),r.setAttribute("dy","1em"),r.setAttribute("x","0"),r.setAttribute("class","row"),r.textContent=o.trim(),e.appendChild(r)}),e},"drawText"),S=s.__name(t=>{let e,n,o;return u==="BT"?(n=s.__name((r,a)=>r<=a,"comparisonFunc"),o=1/0):(n=s.__name((r,a)=>r>=a,"comparisonFunc"),o=0),t.forEach(r=>{const a=u==="TB"||u=="BT"?b.get(r)?.y:b.get(r)?.x;a!==void 0&&n(a,o)&&(e=r,o=a)}),e},"findClosestParent"),pe=s.__name(t=>{let e="",n=1/0;return t.forEach(o=>{const r=b.get(o).y;r<=n&&(e=o,n=r)}),e||void 0},"findClosestParentBT"),be=s.__name((t,e,n)=>{let o=n,r=n;const a=[];t.forEach(l=>{const c=e.get(l);if(!c)throw new Error(`Commit not found for key ${l}`);c.parents.length?(o=we(c),r=Math.max(o,r)):a.push(c),ve(c,o)}),o=r,a.forEach(l=>{Ce(l,o,n)}),t.forEach(l=>{const c=e.get(l);if(c?.parents.length){const f=pe(c.parents);o=b.get(f).y-T,o<=r&&(r=o);const h=p.get(c.branch).pos,$=o-E;b.set(c.id,{x:h,y:$})}})},"setParallelBTPos"),_e=s.__name(t=>{const e=S(t.parents.filter(o=>o!==null));if(!e)throw new Error(`Closest parent not found for commit ${t.id}`);const n=b.get(e)?.y;if(n===void 0)throw new Error(`Closest parent position not found for commit ${t.id}`);return n},"findClosestParentPos"),we=s.__name(t=>_e(t)+T,"calculateCommitPosition"),ve=s.__name((t,e)=>{const n=p.get(t.branch);if(!n)throw new Error(`Branch not found for commit ${t.id}`);const o=n.pos,r=e+E;return b.set(t.id,{x:o,y:r}),{x:o,y:r}},"setCommitPosition"),Ce=s.__name((t,e,n)=>{const o=p.get(t.branch);if(!o)throw new Error(`Branch not found for commit ${t.id}`);const r=e+n,a=o.pos;b.set(t.id,{x:a,y:r})},"setRootPosition"),Ee=s.__name((t,e,n,o,r,a)=>{if(a===x.HIGHLIGHT)t.append("rect").attr("x",n.x-10).attr("y",n.y-10).attr("width",20).attr("height",20).attr("class",`commit ${e.id} commit-highlight${r%B} ${o}-outer`),t.append("rect").attr("x",n.x-6).attr("y",n.y-6).attr("width",12).attr("height",12).attr("class",`commit ${e.id} commit${r%B} ${o}-inner`);else if(a===x.CHERRY_PICK)t.append("circle").attr("cx",n.x).attr("cy",n.y).attr("r",10).attr("class",`commit ${e.id} ${o}`),t.append("circle").attr("cx",n.x-3).attr("cy",n.y+2).attr("r",2.75).attr("fill","#fff").attr("class",`commit ${e.id} ${o}`),t.append("circle").attr("cx",n.x+3).attr("cy",n.y+2).attr("r",2.75).attr("fill","#fff").attr("class",`commit ${e.id} ${o}`),t.append("line").attr("x1",n.x+3).attr("y1",n.y+1).attr("x2",n.x).attr("y2",n.y-5).attr("stroke","#fff").attr("class",`commit ${e.id} ${o}`),t.append("line").attr("x1",n.x-3).attr("y1",n.y+1).attr("x2",n.x).attr("y2",n.y-5).attr("stroke","#fff").attr("class",`commit ${e.id} ${o}`);else{const l=t.append("circle");if(l.attr("cx",n.x),l.attr("cy",n.y),l.attr("r",e.type===x.MERGE?9:10),l.attr("class",`commit ${e.id} commit${r%B}`),a===x.MERGE){const c=t.append("circle");c.attr("cx",n.x),c.attr("cy",n.y),c.attr("r",6),c.attr("class",`commit ${o} ${e.id} commit${r%B}`)}a===x.REVERSE&&t.append("path").attr("d",`M ${n.x-5},${n.y-5}L${n.x+5},${n.y+5}M${n.x-5},${n.y+5}L${n.x+5},${n.y-5}`).attr("class",`commit ${o} ${e.id} commit${r%B}`)}},"drawCommitBullet"),Te=s.__name((t,e,n,o)=>{if(e.type!==x.CHERRY_PICK&&(e.customId&&e.type===x.MERGE||e.type!==x.MERGE)&&_?.showCommitLabel){const r=t.append("g"),a=r.insert("rect").attr("class","commit-label-bkg"),l=r.append("text").attr("x",o).attr("y",n.y+25).attr("class","commit-label").text(e.id),c=l.node()?.getBBox();if(c&&(a.attr("x",n.posWithOffset-c.width/2-v).attr("y",n.y+13.5).attr("width",c.width+2*v).attr("height",c.height+2*v),u==="TB"||u==="BT"?(a.attr("x",n.x-(c.width+4*w+5)).attr("y",n.y-12),l.attr("x",n.x-(c.width+4*w)).attr("y",n.y+c.height-12)):l.attr("x",n.posWithOffset-c.width/2),_.rotateCommitLabel))if(u==="TB"||u==="BT")l.attr("transform","rotate(-45, "+n.x+", "+n.y+")"),a.attr("transform","rotate(-45, "+n.x+", "+n.y+")");else{const f=-7.5-(c.width+10)/25*9.5,h=10+c.width/25*8.5;r.attr("transform","translate("+f+", "+h+") rotate(-45, "+o+", "+n.y+")")}}},"drawCommitLabel"),Be=s.__name((t,e,n,o)=>{if(e.tags.length>0){let r=0,a=0,l=0;const c=[];for(const f of e.tags.reverse()){const h=t.insert("polygon"),$=t.append("circle"),g=t.append("text").attr("y",n.y-16-r).attr("class","tag-label").text(f),d=g.node()?.getBBox();if(!d)throw new Error("Tag bbox not found");a=Math.max(a,d.width),l=Math.max(l,d.height),g.attr("x",n.posWithOffset-d.width/2),c.push({tag:g,hole:$,rect:h,yOffset:r}),r+=20}for(const{tag:f,hole:h,rect:$,yOffset:g}of c){const d=l/2,y=n.y-19.2-g;if($.attr("class","tag-label-bkg").attr("points",`
|
|
2
|
+
${o-a/2-w/2},${y+v}
|
|
3
|
+
${o-a/2-w/2},${y-v}
|
|
4
|
+
${n.posWithOffset-a/2-w},${y-d-v}
|
|
5
|
+
${n.posWithOffset+a/2+w},${y-d-v}
|
|
6
|
+
${n.posWithOffset+a/2+w},${y+d+v}
|
|
7
|
+
${n.posWithOffset-a/2-w},${y+d+v}`),h.attr("cy",y).attr("cx",o-a/2+w/2).attr("r",1.5).attr("class","tag-hole"),u==="TB"||u==="BT"){const m=o+g;$.attr("class","tag-label-bkg").attr("points",`
|
|
8
|
+
${n.x},${m+2}
|
|
9
|
+
${n.x},${m-2}
|
|
10
|
+
${n.x+E},${m-d-2}
|
|
11
|
+
${n.x+E+a+4},${m-d-2}
|
|
12
|
+
${n.x+E+a+4},${m+d+2}
|
|
13
|
+
${n.x+E},${m+d+2}`).attr("transform","translate(12,12) rotate(45, "+n.x+","+o+")"),h.attr("cx",n.x+w/2).attr("cy",m).attr("transform","translate(12,12) rotate(45, "+n.x+","+o+")"),f.attr("x",n.x+5).attr("y",m+3).attr("transform","translate(14,14) rotate(45, "+n.x+","+o+")")}}}},"drawCommitTags"),Le=s.__name(t=>{switch(t.customType??t.type){case x.NORMAL:return"commit-normal";case x.REVERSE:return"commit-reverse";case x.HIGHLIGHT:return"commit-highlight";case x.MERGE:return"commit-merge";case x.CHERRY_PICK:return"commit-cherry-pick";default:return"commit-normal"}},"getCommitClassType"),ke=s.__name((t,e,n,o)=>{const r={x:0,y:0};if(t.parents.length>0){const a=S(t.parents);if(a){const l=o.get(a)??r;return e==="TB"?l.y+T:e==="BT"?(o.get(t.id)??r).y-T:l.x+T}}else return e==="TB"?I:e==="BT"?(o.get(t.id)??r).y-T:0;return 0},"calculatePosition"),Me=s.__name((t,e,n)=>{const o=u==="BT"&&n?e:e+E,r=u==="TB"||u==="BT"?o:p.get(t.branch)?.pos,a=u==="TB"||u==="BT"?p.get(t.branch)?.pos:o;if(a===void 0||r===void 0)throw new Error(`Position were undefined for commit ${t.id}`);return{x:a,y:r,posWithOffset:o}},"getCommitPosition"),P=s.__name((t,e,n)=>{if(!_)throw new Error("GitGraph config not found");const o=t.append("g").attr("class","commit-bullets"),r=t.append("g").attr("class","commit-labels");let a=u==="TB"||u==="BT"?I:0;const l=[...e.keys()],c=_?.parallelCommits??!1,f=s.__name(($,g)=>{const d=e.get($)?.seq,y=e.get(g)?.seq;return d!==void 0&&y!==void 0?d-y:0},"sortKeys");let h=l.sort(f);u==="BT"&&(c&&be(h,e,a),h=h.reverse()),h.forEach($=>{const g=e.get($);if(!g)throw new Error(`Commit not found for key ${$}`);c&&(a=ke(g,u,a,b));const d=Me(g,a,c);if(n){const y=Le(g),m=g.customType??g.type,O=p.get(g.branch)?.index??0;Ee(o,g,d,y,O,m),Te(r,g,d,a),Be(r,g,d,a)}u==="TB"||u==="BT"?b.set(g.id,{x:d.x,y:d.posWithOffset}):b.set(g.id,{x:d.posWithOffset,y:d.y}),a=u==="BT"&&c?a+T:a+T+E,a>C&&(C=a)})},"drawCommits"),Ie=s.__name((t,e,n,o,r)=>{const l=(u==="TB"||u==="BT"?n.x<o.x:n.y<o.y)?e.branch:t.branch,c=s.__name(h=>h.branch===l,"isOnBranchToGetCurve"),f=s.__name(h=>h.seq>t.seq&&h.seq<e.seq,"isBetweenCommits");return[...r.values()].some(h=>f(h)&&c(h))},"shouldRerouteArrow"),M=s.__name((t,e,n=0)=>{const o=t+Math.abs(t-e)/2;if(n>5)return o;if(R.every(l=>Math.abs(l-o)>=10))return R.push(o),o;const a=Math.abs(t-e);return M(t,e-a/5,n+1)},"findLane"),Re=s.__name((t,e,n,o)=>{const r=b.get(e.id),a=b.get(n.id);if(r===void 0||a===void 0)throw new Error(`Commit positions not found for commits ${e.id} and ${n.id}`);const l=Ie(e,n,r,a,o);let c="",f="",h=0,$=0,g=p.get(n.branch)?.index;n.type===x.MERGE&&e.id!==n.parents[0]&&(g=p.get(e.branch)?.index);let d;if(l){c="A 10 10, 0, 0, 0,",f="A 10 10, 0, 0, 1,",h=10,$=10;const y=r.y<a.y?M(r.y,a.y):M(a.y,r.y),m=r.x<a.x?M(r.x,a.x):M(a.x,r.x);u==="TB"?r.x<a.x?d=`M ${r.x} ${r.y} L ${m-h} ${r.y} ${f} ${m} ${r.y+$} L ${m} ${a.y-h} ${c} ${m+$} ${a.y} L ${a.x} ${a.y}`:(g=p.get(e.branch)?.index,d=`M ${r.x} ${r.y} L ${m+h} ${r.y} ${c} ${m} ${r.y+$} L ${m} ${a.y-h} ${f} ${m-$} ${a.y} L ${a.x} ${a.y}`):u==="BT"?r.x<a.x?d=`M ${r.x} ${r.y} L ${m-h} ${r.y} ${c} ${m} ${r.y-$} L ${m} ${a.y+h} ${f} ${m+$} ${a.y} L ${a.x} ${a.y}`:(g=p.get(e.branch)?.index,d=`M ${r.x} ${r.y} L ${m+h} ${r.y} ${f} ${m} ${r.y-$} L ${m} ${a.y+h} ${c} ${m-$} ${a.y} L ${a.x} ${a.y}`):r.y<a.y?d=`M ${r.x} ${r.y} L ${r.x} ${y-h} ${c} ${r.x+$} ${y} L ${a.x-h} ${y} ${f} ${a.x} ${y+$} L ${a.x} ${a.y}`:(g=p.get(e.branch)?.index,d=`M ${r.x} ${r.y} L ${r.x} ${y+h} ${f} ${r.x+$} ${y} L ${a.x-h} ${y} ${c} ${a.x} ${y-$} L ${a.x} ${a.y}`)}else c="A 20 20, 0, 0, 0,",f="A 20 20, 0, 0, 1,",h=20,$=20,u==="TB"?(r.x<a.x&&(n.type===x.MERGE&&e.id!==n.parents[0]?d=`M ${r.x} ${r.y} L ${r.x} ${a.y-h} ${c} ${r.x+$} ${a.y} L ${a.x} ${a.y}`:d=`M ${r.x} ${r.y} L ${a.x-h} ${r.y} ${f} ${a.x} ${r.y+$} L ${a.x} ${a.y}`),r.x>a.x&&(c="A 20 20, 0, 0, 0,",f="A 20 20, 0, 0, 1,",h=20,$=20,n.type===x.MERGE&&e.id!==n.parents[0]?d=`M ${r.x} ${r.y} L ${r.x} ${a.y-h} ${f} ${r.x-$} ${a.y} L ${a.x} ${a.y}`:d=`M ${r.x} ${r.y} L ${a.x+h} ${r.y} ${c} ${a.x} ${r.y+$} L ${a.x} ${a.y}`),r.x===a.x&&(d=`M ${r.x} ${r.y} L ${a.x} ${a.y}`)):u==="BT"?(r.x<a.x&&(n.type===x.MERGE&&e.id!==n.parents[0]?d=`M ${r.x} ${r.y} L ${r.x} ${a.y+h} ${f} ${r.x+$} ${a.y} L ${a.x} ${a.y}`:d=`M ${r.x} ${r.y} L ${a.x-h} ${r.y} ${c} ${a.x} ${r.y-$} L ${a.x} ${a.y}`),r.x>a.x&&(c="A 20 20, 0, 0, 0,",f="A 20 20, 0, 0, 1,",h=20,$=20,n.type===x.MERGE&&e.id!==n.parents[0]?d=`M ${r.x} ${r.y} L ${r.x} ${a.y+h} ${c} ${r.x-$} ${a.y} L ${a.x} ${a.y}`:d=`M ${r.x} ${r.y} L ${a.x-h} ${r.y} ${c} ${a.x} ${r.y-$} L ${a.x} ${a.y}`),r.x===a.x&&(d=`M ${r.x} ${r.y} L ${a.x} ${a.y}`)):(r.y<a.y&&(n.type===x.MERGE&&e.id!==n.parents[0]?d=`M ${r.x} ${r.y} L ${a.x-h} ${r.y} ${f} ${a.x} ${r.y+$} L ${a.x} ${a.y}`:d=`M ${r.x} ${r.y} L ${r.x} ${a.y-h} ${c} ${r.x+$} ${a.y} L ${a.x} ${a.y}`),r.y>a.y&&(n.type===x.MERGE&&e.id!==n.parents[0]?d=`M ${r.x} ${r.y} L ${a.x-h} ${r.y} ${c} ${a.x} ${r.y-$} L ${a.x} ${a.y}`:d=`M ${r.x} ${r.y} L ${r.x} ${a.y+h} ${f} ${r.x+$} ${a.y} L ${a.x} ${a.y}`),r.y===a.y&&(d=`M ${r.x} ${r.y} L ${a.x} ${a.y}`));if(d===void 0)throw new Error("Line definition not found");t.append("path").attr("d",d).attr("class","arrow arrow"+g%B)},"drawArrow"),Ge=s.__name((t,e)=>{const n=t.append("g").attr("class","commit-arrows");[...e.keys()].forEach(o=>{const r=e.get(o);r.parents&&r.parents.length>0&&r.parents.forEach(a=>{Re(n,e.get(a),r,e)})})},"drawArrows"),Oe=s.__name((t,e)=>{const n=t.append("g");e.forEach((o,r)=>{const a=r%B,l=p.get(o.name)?.pos;if(l===void 0)throw new Error(`Position not found for branch ${o.name}`);const c=n.append("line");c.attr("x1",0),c.attr("y1",l),c.attr("x2",C),c.attr("y2",l),c.attr("class","branch branch"+a),u==="TB"?(c.attr("y1",I),c.attr("x1",l),c.attr("y2",C),c.attr("x2",l)):u==="BT"&&(c.attr("y1",C),c.attr("x1",l),c.attr("y2",I),c.attr("x2",l)),R.push(l);const f=o.name,h=F(f),$=n.insert("rect"),d=n.insert("g").attr("class","branchLabel").insert("g").attr("class","label branch-label"+a);d.node().appendChild(h);const y=h.getBBox();$.attr("class","branchLabelBkg label"+a).attr("rx",4).attr("ry",4).attr("x",-y.width-4-(_?.rotateCommitLabel===!0?30:0)).attr("y",-y.height/2+8).attr("width",y.width+18).attr("height",y.height+4),d.attr("transform","translate("+(-y.width-14-(_?.rotateCommitLabel===!0?30:0))+", "+(l-y.height/2-1)+")"),u==="TB"?($.attr("x",l-y.width/2-10).attr("y",0),d.attr("transform","translate("+(l-y.width/2-5)+", 0)")):u==="BT"?($.attr("x",l-y.width/2-10).attr("y",C),d.attr("transform","translate("+(l-y.width/2-5)+", "+C+")")):$.attr("transform","translate(-19, "+(l-y.height/2)+")")})},"drawBranches"),Ae=s.__name(function(t,e,n,o,r){return p.set(t,{pos:e,index:n}),e+=50+(r?40:0)+(u==="TB"||u==="BT"?o.width/2:0),e},"setBranchPosition"),qe=s.__name(function(t,e,n,o){if(xe(),s.log.debug("in gitgraph renderer",t+`
|
|
14
|
+
`,"id:",e,n),!_)throw new Error("GitGraph config not found");const r=_.rotateCommitLabel??!1,a=o.db;k=a.getCommits();const l=a.getBranchesAsObjArray();u=a.getDirection();const c=s.select(`[id="${e}"]`);let f=0;l.forEach((h,$)=>{const g=F(h.name),d=c.append("g"),y=d.insert("g").attr("class","branchLabel"),m=y.insert("g").attr("class","label branch-label");m.node()?.appendChild(g);const O=g.getBBox();f=Ae(h.name,f,$,O,r),m.remove(),y.remove(),d.remove()}),P(c,k,!1),_.showBranches&&Oe(c,l),Ge(c,k),P(c,k,!0),s.utils_default.insertTitle(c,"gitTitleText",_.titleTopMargin??0,a.getDiagramTitle()),s.setupGraphViewbox2(void 0,c,_.diagramPadding,_.useMaxWidth)},"draw"),Pe={draw:qe},He=s.__name(t=>`
|
|
15
|
+
.commit-id,
|
|
16
|
+
.commit-msg,
|
|
17
|
+
.branch-label {
|
|
18
|
+
fill: lightgrey;
|
|
19
|
+
color: lightgrey;
|
|
20
|
+
font-family: 'trebuchet ms', verdana, arial, sans-serif;
|
|
21
|
+
font-family: var(--mermaid-font-family);
|
|
22
|
+
}
|
|
23
|
+
${[0,1,2,3,4,5,6,7].map(e=>`
|
|
24
|
+
.branch-label${e} { fill: ${t["gitBranchLabel"+e]}; }
|
|
25
|
+
.commit${e} { stroke: ${t["git"+e]}; fill: ${t["git"+e]}; }
|
|
26
|
+
.commit-highlight${e} { stroke: ${t["gitInv"+e]}; fill: ${t["gitInv"+e]}; }
|
|
27
|
+
.label${e} { fill: ${t["git"+e]}; }
|
|
28
|
+
.arrow${e} { stroke: ${t["git"+e]}; }
|
|
29
|
+
`).join(`
|
|
30
|
+
`)}
|
|
31
|
+
|
|
32
|
+
.branch {
|
|
33
|
+
stroke-width: 1;
|
|
34
|
+
stroke: ${t.lineColor};
|
|
35
|
+
stroke-dasharray: 2;
|
|
36
|
+
}
|
|
37
|
+
.commit-label { font-size: ${t.commitLabelFontSize}; fill: ${t.commitLabelColor};}
|
|
38
|
+
.commit-label-bkg { font-size: ${t.commitLabelFontSize}; fill: ${t.commitLabelBackground}; opacity: 0.5; }
|
|
39
|
+
.tag-label { font-size: ${t.tagLabelFontSize}; fill: ${t.tagLabelColor};}
|
|
40
|
+
.tag-label-bkg { fill: ${t.tagLabelBackground}; stroke: ${t.tagLabelBorder}; }
|
|
41
|
+
.tag-hole { fill: ${t.textColor}; }
|
|
42
|
+
|
|
43
|
+
.commit-merge {
|
|
44
|
+
stroke: ${t.primaryColor};
|
|
45
|
+
fill: ${t.primaryColor};
|
|
46
|
+
}
|
|
47
|
+
.commit-reverse {
|
|
48
|
+
stroke: ${t.primaryColor};
|
|
49
|
+
fill: ${t.primaryColor};
|
|
50
|
+
stroke-width: 3;
|
|
51
|
+
}
|
|
52
|
+
.commit-highlight-outer {
|
|
53
|
+
}
|
|
54
|
+
.commit-highlight-inner {
|
|
55
|
+
stroke: ${t.primaryColor};
|
|
56
|
+
fill: ${t.primaryColor};
|
|
57
|
+
}
|
|
58
|
+
|
|
59
|
+
.arrow { stroke-width: 8; stroke-linecap: round; fill: none}
|
|
60
|
+
.gitTitleText {
|
|
61
|
+
text-anchor: middle;
|
|
62
|
+
font-size: 18px;
|
|
63
|
+
fill: ${t.textColor};
|
|
64
|
+
}
|
|
65
|
+
`,"getStyles"),De=He,Ne={parser:ue,db:z,renderer:Pe,styles:De};exports.diagram=Ne;
|
|
@@ -1,7 +1,7 @@
|
|
|
1
|
-
import { p as Y } from "./chunk-4BX2VUAB-
|
|
2
|
-
import { I as K } from "./chunk-QZHKN3VN-
|
|
3
|
-
import { _ as l, q as U, p as V, s as X, g as J, a as Q, b as Z, l as m, c as rr, d as er, u as tr, C as ar, y as sr, k as C, D as nr, E as or, F as cr, G as ir } from "./
|
|
4
|
-
import { p as dr } from "./mermaid-parser.core-
|
|
1
|
+
import { p as Y } from "./chunk-4BX2VUAB-BbICN0Ec.js";
|
|
2
|
+
import { I as K } from "./chunk-QZHKN3VN-C-Vfb6xz.js";
|
|
3
|
+
import { _ as l, q as U, p as V, s as X, g as J, a as Q, b as Z, l as m, c as rr, d as er, u as tr, C as ar, y as sr, k as C, D as nr, E as or, F as cr, G as ir } from "./custom-B4yTjcNy.js";
|
|
4
|
+
import { p as dr } from "./mermaid-parser.core-CvS4VcbX.js";
|
|
5
5
|
var p = {
|
|
6
6
|
NORMAL: 0,
|
|
7
7
|
REVERSE: 1,
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
"use strict";const u=require("./custom-DUStvHau.cjs"),n=require("./_baseUniq-BtmrXn_-.cjs");var b=u.baseRest(function(d){return n.baseUniq(n.baseFlatten(d,1,u.isArrayLikeObject,!0))}),E="\0",a="\0",g="";class f{constructor(e={}){this._isDirected=Object.prototype.hasOwnProperty.call(e,"directed")?e.directed:!0,this._isMultigraph=Object.prototype.hasOwnProperty.call(e,"multigraph")?e.multigraph:!1,this._isCompound=Object.prototype.hasOwnProperty.call(e,"compound")?e.compound:!1,this._label=void 0,this._defaultNodeLabelFn=u.constant$1(void 0),this._defaultEdgeLabelFn=u.constant$1(void 0),this._nodes={},this._isCompound&&(this._parent={},this._children={},this._children[a]={}),this._in={},this._preds={},this._out={},this._sucs={},this._edgeObjs={},this._edgeLabels={}}isDirected(){return this._isDirected}isMultigraph(){return this._isMultigraph}isCompound(){return this._isCompound}setGraph(e){return this._label=e,this}graph(){return this._label}setDefaultNodeLabel(e){return u.isFunction(e)||(e=u.constant$1(e)),this._defaultNodeLabelFn=e,this}nodeCount(){return this._nodeCount}nodes(){return n.keys(this._nodes)}sources(){var e=this;return n.filter(this.nodes(),function(t){return u.isEmpty(e._in[t])})}sinks(){var e=this;return n.filter(this.nodes(),function(t){return u.isEmpty(e._out[t])})}setNodes(e,t){var s=arguments,i=this;return n.forEach(e,function(r){s.length>1?i.setNode(r,t):i.setNode(r)}),this}setNode(e,t){return Object.prototype.hasOwnProperty.call(this._nodes,e)?(arguments.length>1&&(this._nodes[e]=t),this):(this._nodes[e]=arguments.length>1?t:this._defaultNodeLabelFn(e),this._isCompound&&(this._parent[e]=a,this._children[e]={},this._children[a][e]=!0),this._in[e]={},this._preds[e]={},this._out[e]={},this._sucs[e]={},++this._nodeCount,this)}node(e){return this._nodes[e]}hasNode(e){return Object.prototype.hasOwnProperty.call(this._nodes,e)}removeNode(e){if(Object.prototype.hasOwnProperty.call(this._nodes,e)){var t=s=>this.removeEdge(this._edgeObjs[s]);delete this._nodes[e],this._isCompound&&(this._removeFromParentsChildList(e),delete this._parent[e],n.forEach(this.children(e),s=>{this.setParent(s)}),delete this._children[e]),n.forEach(n.keys(this._in[e]),t),delete this._in[e],delete this._preds[e],n.forEach(n.keys(this._out[e]),t),delete this._out[e],delete this._sucs[e],--this._nodeCount}return this}setParent(e,t){if(!this._isCompound)throw new Error("Cannot set parent in a non-compound graph");if(n.isUndefined(t))t=a;else{t+="";for(var s=t;!n.isUndefined(s);s=this.parent(s))if(s===e)throw new Error("Setting "+t+" as parent of "+e+" would create a cycle");this.setNode(t)}return this.setNode(e),this._removeFromParentsChildList(e),this._parent[e]=t,this._children[t][e]=!0,this}_removeFromParentsChildList(e){delete this._children[this._parent[e]][e]}parent(e){if(this._isCompound){var t=this._parent[e];if(t!==a)return t}}children(e){if(n.isUndefined(e)&&(e=a),this._isCompound){var t=this._children[e];if(t)return n.keys(t)}else{if(e===a)return this.nodes();if(this.hasNode(e))return[]}}predecessors(e){var t=this._preds[e];if(t)return n.keys(t)}successors(e){var t=this._sucs[e];if(t)return n.keys(t)}neighbors(e){var t=this.predecessors(e);if(t)return b(t,this.successors(e))}isLeaf(e){var t;return this.isDirected()?t=this.successors(e):t=this.neighbors(e),t.length===0}filterNodes(e){var t=new this.constructor({directed:this._isDirected,multigraph:this._isMultigraph,compound:this._isCompound});t.setGraph(this.graph());var s=this;n.forEach(this._nodes,function(h,o){e(o)&&t.setNode(o,h)}),n.forEach(this._edgeObjs,function(h){t.hasNode(h.v)&&t.hasNode(h.w)&&t.setEdge(h,s.edge(h))});var i={};function r(h){var o=s.parent(h);return o===void 0||t.hasNode(o)?(i[h]=o,o):o in i?i[o]:r(o)}return this._isCompound&&n.forEach(t.nodes(),function(h){t.setParent(h,r(h))}),t}setDefaultEdgeLabel(e){return u.isFunction(e)||(e=u.constant$1(e)),this._defaultEdgeLabelFn=e,this}edgeCount(){return this._edgeCount}edges(){return n.values(this._edgeObjs)}setPath(e,t){var s=this,i=arguments;return n.reduce(e,function(r,h){return i.length>1?s.setEdge(r,h,t):s.setEdge(r,h),h}),this}setEdge(){var e,t,s,i,r=!1,h=arguments[0];typeof h=="object"&&h!==null&&"v"in h?(e=h.v,t=h.w,s=h.name,arguments.length===2&&(i=arguments[1],r=!0)):(e=h,t=arguments[1],s=arguments[3],arguments.length>2&&(i=arguments[2],r=!0)),e=""+e,t=""+t,n.isUndefined(s)||(s=""+s);var o=_(this._isDirected,e,t,s);if(Object.prototype.hasOwnProperty.call(this._edgeLabels,o))return r&&(this._edgeLabels[o]=i),this;if(!n.isUndefined(s)&&!this._isMultigraph)throw new Error("Cannot set a named edge when isMultigraph = false");this.setNode(e),this.setNode(t),this._edgeLabels[o]=r?i:this._defaultEdgeLabelFn(e,t,s);var l=y(this._isDirected,e,t,s);return e=l.v,t=l.w,Object.freeze(l),this._edgeObjs[o]=l,p(this._preds[t],e),p(this._sucs[e],t),this._in[t][o]=l,this._out[e][o]=l,this._edgeCount++,this}edge(e,t,s){var i=arguments.length===1?c(this._isDirected,arguments[0]):_(this._isDirected,e,t,s);return this._edgeLabels[i]}hasEdge(e,t,s){var i=arguments.length===1?c(this._isDirected,arguments[0]):_(this._isDirected,e,t,s);return Object.prototype.hasOwnProperty.call(this._edgeLabels,i)}removeEdge(e,t,s){var i=arguments.length===1?c(this._isDirected,arguments[0]):_(this._isDirected,e,t,s),r=this._edgeObjs[i];return r&&(e=r.v,t=r.w,delete this._edgeLabels[i],delete this._edgeObjs[i],m(this._preds[t],e),m(this._sucs[e],t),delete this._in[t][i],delete this._out[e][i],this._edgeCount--),this}inEdges(e,t){var s=this._in[e];if(s){var i=n.values(s);return t?n.filter(i,function(r){return r.v===t}):i}}outEdges(e,t){var s=this._out[e];if(s){var i=n.values(s);return t?n.filter(i,function(r){return r.w===t}):i}}nodeEdges(e,t){var s=this.inEdges(e,t);if(s)return s.concat(this.outEdges(e,t))}}f.prototype._nodeCount=0;f.prototype._edgeCount=0;function p(d,e){d[e]?d[e]++:d[e]=1}function m(d,e){--d[e]||delete d[e]}function _(d,e,t,s){var i=""+e,r=""+t;if(!d&&i>r){var h=i;i=r,r=h}return i+g+r+g+(n.isUndefined(s)?E:s)}function y(d,e,t,s){var i=""+e,r=""+t;if(!d&&i>r){var h=i;i=r,r=h}var o={v:i,w:r};return s&&(o.name=s),o}function c(d,e){return _(d,e.v,e.w,e.name)}exports.Graph=f;
|
|
@@ -1,7 +1,7 @@
|
|
|
1
|
-
import {
|
|
2
|
-
import { a as
|
|
1
|
+
import { aA as N, aB as j, aC as f, aD as b, aE as E } from "./custom-B4yTjcNy.js";
|
|
2
|
+
import { a as v, c as P, k as _, f as g, d, i as l, v as p, r as D } from "./_baseUniq-BvAvxwqe.js";
|
|
3
3
|
var w = N(function(o) {
|
|
4
|
-
return
|
|
4
|
+
return v(P(o, 1, j, !0));
|
|
5
5
|
}), F = "\0", a = "\0", O = "";
|
|
6
6
|
class L {
|
|
7
7
|
constructor(e = {}) {
|
|
@@ -176,7 +176,7 @@ class L {
|
|
|
176
176
|
throw new Error("Cannot set a named edge when isMultigraph = false");
|
|
177
177
|
this.setNode(e), this.setNode(t), this._edgeLabels[h] = r ? i : this._defaultEdgeLabelFn(e, t, s);
|
|
178
178
|
var u = M(this._isDirected, e, t, s);
|
|
179
|
-
return e = u.v, t = u.w, Object.freeze(u), this._edgeObjs[h] = u,
|
|
179
|
+
return e = u.v, t = u.w, Object.freeze(u), this._edgeObjs[h] = u, C(this._preds[t], e), C(this._sucs[e], t), this._in[t][h] = u, this._out[e][h] = u, this._edgeCount++, this;
|
|
180
180
|
}
|
|
181
181
|
edge(e, t, s) {
|
|
182
182
|
var i = arguments.length === 1 ? m(this._isDirected, arguments[0]) : c(this._isDirected, e, t, s);
|
|
@@ -188,7 +188,7 @@ class L {
|
|
|
188
188
|
}
|
|
189
189
|
removeEdge(e, t, s) {
|
|
190
190
|
var i = arguments.length === 1 ? m(this._isDirected, arguments[0]) : c(this._isDirected, e, t, s), r = this._edgeObjs[i];
|
|
191
|
-
return r && (e = r.v, t = r.w, delete this._edgeLabels[i], delete this._edgeObjs[i],
|
|
191
|
+
return r && (e = r.v, t = r.w, delete this._edgeLabels[i], delete this._edgeObjs[i], y(this._preds[t], e), y(this._sucs[e], t), delete this._in[t][i], delete this._out[e][i], this._edgeCount--), this;
|
|
192
192
|
}
|
|
193
193
|
inEdges(e, t) {
|
|
194
194
|
var s = this._in[e];
|
|
@@ -216,10 +216,10 @@ class L {
|
|
|
216
216
|
}
|
|
217
217
|
L.prototype._nodeCount = 0;
|
|
218
218
|
L.prototype._edgeCount = 0;
|
|
219
|
-
function
|
|
219
|
+
function C(o, e) {
|
|
220
220
|
o[e] ? o[e]++ : o[e] = 1;
|
|
221
221
|
}
|
|
222
|
-
function
|
|
222
|
+
function y(o, e) {
|
|
223
223
|
--o[e] || delete o[e];
|
|
224
224
|
}
|
|
225
225
|
function c(o, e, t, s) {
|
|
@@ -1 +1 @@
|
|
|
1
|
-
"use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const e=require("./mermaid-parser.core-
|
|
1
|
+
"use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const e=require("./mermaid-parser.core-D8AljRep.cjs");exports.InfoModule=e.InfoModule;exports.createInfoServices=e.createInfoServices;
|
|
@@ -1,5 +1,5 @@
|
|
|
1
|
-
import { _ as e, l as s, H as o, e as i, I as g } from "./
|
|
2
|
-
import { p } from "./mermaid-parser.core-
|
|
1
|
+
import { _ as e, l as s, H as o, e as i, I as g } from "./custom-B4yTjcNy.js";
|
|
2
|
+
import { p } from "./mermaid-parser.core-CvS4VcbX.js";
|
|
3
3
|
var v = {
|
|
4
4
|
parse: /* @__PURE__ */ e(async (r) => {
|
|
5
5
|
const a = await p("info", r);
|
|
@@ -0,0 +1,2 @@
|
|
|
1
|
+
"use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const e=require("./custom-DUStvHau.cjs"),s=require("./mermaid-parser.core-D8AljRep.cjs");var o={parse:e.__name(async r=>{const a=await s.parse("info",r);e.log.debug(a)},"parse")},i={version:e.package_default.version+""},g=e.__name(()=>i.version,"getVersion"),d={getVersion:g},v=e.__name((r,a,n)=>{e.log.debug(`rendering info diagram
|
|
2
|
+
`+r);const t=e.selectSvgElement(a);e.configureSvgSize(t,100,400,!0),t.append("g").append("text").attr("x",100).attr("y",40).attr("class","version").attr("font-size",32).style("text-anchor","middle").text(`v${n}`)},"draw"),c={draw:v},u={parser:o,db:d,renderer:c};exports.diagram=u;
|
|
@@ -1,7 +1,7 @@
|
|
|
1
|
-
import { a as gt, g as lt, f as mt, d as xt } from "./chunk-TZMSLE5B-
|
|
2
|
-
import { g as kt } from "./chunk-FMBD7UC4-
|
|
3
|
-
import { _ as n, g as _t, s as vt, a as bt, b as wt, q as Tt, p as St, c as R, d as X, e as $t, y as Mt } from "./
|
|
4
|
-
import { d as et } from "./arc-
|
|
1
|
+
import { a as gt, g as lt, f as mt, d as xt } from "./chunk-TZMSLE5B-xm8uzxSg.js";
|
|
2
|
+
import { g as kt } from "./chunk-FMBD7UC4-D5PKNbki.js";
|
|
3
|
+
import { _ as n, g as _t, s as vt, a as bt, b as wt, q as Tt, p as St, c as R, d as X, e as $t, y as Mt } from "./custom-B4yTjcNy.js";
|
|
4
|
+
import { d as et } from "./arc-Hx3N9DvE.js";
|
|
5
5
|
var U = (function() {
|
|
6
6
|
var t = /* @__PURE__ */ n(function(h, i, a, l) {
|
|
7
7
|
for (a = a || {}, l = h.length; l--; a[h[l]] = i) ;
|