mio-previewer 0.2.73 → 0.2.76
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/README.md +1 -0
- package/README.zh-CN.md +2 -1
- package/dist/_basePickBy-CXmXW7jd.js +166 -0
- package/dist/_basePickBy-CtuVwROD.cjs +1 -0
- package/dist/_baseUniq-CGoiOkSa.js +682 -0
- package/dist/_baseUniq-CYtOXxfV.cjs +1 -0
- package/dist/_createAssigner-DqH64jc7.cjs +1 -0
- package/dist/_createAssigner-IEX8lwxm.js +573 -0
- package/dist/arc-C78br9Yj.cjs +1 -0
- package/dist/arc-vLgDTVZZ.js +80 -0
- package/dist/architecture-O4VJ6CD3-B9qzjtV8.cjs +1 -0
- package/dist/architecture-O4VJ6CD3-wqAP4onK.js +2 -0
- package/dist/architectureDiagram-VXUJARFQ-CYbuyVAs.js +4039 -0
- package/dist/architectureDiagram-VXUJARFQ-DEGYSl1f.cjs +36 -0
- package/dist/array-CApNbSU9.js +6 -0
- package/dist/array-DZSRzHA_.cjs +1 -0
- package/dist/assets/parser.worker-Bzb1GItl.js +14 -0
- package/dist/blockDiagram-VD42YOAC-DaH3L5Ng.js +3009 -0
- package/dist/blockDiagram-VD42YOAC-DeX0dq72.cjs +122 -0
- package/dist/c4Diagram-YG6GDRKO-CIThIYo6.js +2959 -0
- package/dist/c4Diagram-YG6GDRKO-Dz6dif_9.cjs +10 -0
- package/dist/channel-BWHkpgVD.cjs +1 -0
- package/dist/channel-JT7eWw2w.js +5 -0
- package/dist/chunk-4BX2VUAB-BZTgbbzC.js +8 -0
- package/dist/chunk-4BX2VUAB-HXFjpyQg.cjs +1 -0
- package/dist/chunk-55IACEB6-DWUqxxdp.js +8 -0
- package/dist/chunk-55IACEB6-Hy_THNUs.cjs +1 -0
- package/dist/chunk-ABZYJK2D-CbIYYZa_.cjs +80 -0
- package/dist/chunk-ABZYJK2D-DDrmE3Q7.js +2518 -0
- package/dist/chunk-ATLVNIR6-DHlCNWnJ.js +67 -0
- package/dist/chunk-ATLVNIR6-shAOudT0.cjs +1 -0
- package/dist/chunk-B4BG7PRW-C67vroOS.cjs +165 -0
- package/dist/chunk-B4BG7PRW-DSYuK8dI.js +3116 -0
- package/dist/chunk-BNMv73og.cjs +1 -0
- package/dist/chunk-CVBHYZKI-CLVcv_xh.cjs +1 -0
- package/dist/chunk-CVBHYZKI-CiCGetln.js +12 -0
- package/dist/chunk-DI55MBZ5-BCvBgHrp.cjs +220 -0
- package/dist/chunk-DI55MBZ5-Clru0TyG.js +2000 -0
- package/dist/chunk-Dbv0sNQl.js +20 -0
- package/dist/chunk-FMBD7UC4-D4kohRVY.js +5 -0
- package/dist/{chunk-FMBD7UC4-DxkUZTpt.cjs → chunk-FMBD7UC4-DWMVCXKq.cjs} +2 -2
- package/dist/chunk-HN2XXSSU-BwmRMa2r.cjs +1 -0
- package/dist/chunk-HN2XXSSU-CJL8wAZ2.js +76 -0
- package/dist/chunk-JA3XYJ7Z-BaAdjYEy.cjs +70 -0
- package/dist/chunk-JA3XYJ7Z-CpKHrbOX.js +1849 -0
- package/dist/chunk-JZLCHNYA-CYo7ykJf.js +4863 -0
- package/dist/chunk-JZLCHNYA-CvPIQFXP.cjs +54 -0
- package/dist/chunk-QN33PNHL-BFbXAWI4.js +25 -0
- package/dist/chunk-QN33PNHL-Cu0FHarG.cjs +1 -0
- package/dist/chunk-QXUST7PY-CnnfdJrM.cjs +7 -0
- package/dist/chunk-QXUST7PY-CxCAwQqP.js +488 -0
- package/dist/chunk-QZHKN3VN-2e6nJr8c.cjs +1 -0
- package/dist/chunk-QZHKN3VN-Dal4kx9B.js +15 -0
- package/dist/chunk-S3R3BYOJ-B2ozcJNg.cjs +2 -0
- package/dist/chunk-S3R3BYOJ-CG6GoSCd.js +1119 -0
- package/dist/chunk-TZMSLE5B-CooeLs4Q.js +57 -0
- package/dist/chunk-TZMSLE5B-D92K1Ja5.cjs +1 -0
- package/dist/classDiagram-2ON5EDUG-Bv1XCvDZ.js +28 -0
- package/dist/classDiagram-2ON5EDUG-BzMV1CJW.cjs +1 -0
- package/dist/classDiagram-v2-WZHVMYZB-Bqxv5U7u.js +28 -0
- package/dist/classDiagram-v2-WZHVMYZB-BzMV1CJW.cjs +1 -0
- package/dist/clone-B0KDIkSS.js +8 -0
- package/dist/clone-wvtBTB6v.cjs +1 -0
- package/dist/cose-bilkent-S5V4N54A-DMHTv1aW.cjs +1 -0
- package/dist/cose-bilkent-S5V4N54A-bGPAcpg6.js +2250 -0
- package/dist/custom-Bl_fVJZ0.cjs +84 -0
- package/dist/custom-D-TzPpWT.js +5281 -0
- package/dist/cytoscape.esm-CElDUMAx.cjs +321 -0
- package/dist/cytoscape.esm-xf9dtmBj.js +18100 -0
- package/dist/dagre-6UL2VRFP-3bgUxzqG.js +294 -0
- package/dist/dagre-6UL2VRFP-B3NqmIxs.cjs +4 -0
- package/dist/dagre-BfAHSwtP.js +1472 -0
- package/dist/dagre-Buvkww-e.cjs +1 -0
- package/dist/defaultLocale-B5dSAwiC.js +201 -0
- package/dist/defaultLocale-G0HsdRIB.cjs +1 -0
- package/dist/diagram-PSM6KHXK-C4FjxUHt.cjs +24 -0
- package/dist/diagram-PSM6KHXK-CF8TkgzX.js +527 -0
- package/dist/diagram-QEK2KX5R-Dl3IHeA5.js +213 -0
- package/dist/diagram-QEK2KX5R-Z9DYjr44.cjs +43 -0
- package/dist/diagram-S2PKOQOG-Bib-zL2S.cjs +24 -0
- package/dist/diagram-S2PKOQOG-ZKvn7IEe.js +133 -0
- package/dist/dist-DC-lM4uX.cjs +1 -0
- package/dist/dist-zNcLEPGR.js +51 -0
- package/dist/erDiagram-Q2GNP2WA-DFMV9OUT.cjs +60 -0
- package/dist/erDiagram-Q2GNP2WA-DJYJEzEB.js +1600 -0
- package/dist/flowDiagram-NV44I4VS-7TxeawHS.cjs +162 -0
- package/dist/flowDiagram-NV44I4VS-CXa6ycqs.js +4128 -0
- package/dist/ganttDiagram-LVOFAZNH-DqT7pu4m.js +2869 -0
- package/dist/ganttDiagram-LVOFAZNH-iiExGpwF.cjs +267 -0
- package/dist/gitGraph-ZV4HHKMB-BjaEVcYh.cjs +1 -0
- package/dist/gitGraph-ZV4HHKMB-Cl2I6-l3.js +2 -0
- package/dist/gitGraphDiagram-NY62KEGX-Tphu_MeC.js +621 -0
- package/dist/gitGraphDiagram-NY62KEGX-k5xzXg7C.cjs +65 -0
- package/dist/graphlib-C3tPLMbC.js +225 -0
- package/dist/graphlib-Cdg0u3TT.cjs +1 -0
- package/dist/info-63CPKGFF-D2A5GDFo.js +2 -0
- package/dist/info-63CPKGFF-MRaucWlf.cjs +1 -0
- package/dist/infoDiagram-F6ZHWCRC-3Jwo4J0f.cjs +2 -0
- package/dist/infoDiagram-F6ZHWCRC-BUoruN76.js +19 -0
- package/dist/init-07zIhv_j.cjs +1 -0
- package/dist/init-Bwwdo3M6.js +15 -0
- package/dist/journeyDiagram-XKPGCS4Q-C_3oD9RV.cjs +139 -0
- package/dist/journeyDiagram-XKPGCS4Q-DB7INfrf.js +883 -0
- package/dist/kanban-definition-3W4ZIXB7-AVLIBuMF.js +968 -0
- package/dist/kanban-definition-3W4ZIXB7-txUXjKzB.cjs +89 -0
- package/dist/katex-6UpFeIdV.cjs +261 -0
- package/dist/katex-BHcJffnM.js +22112 -0
- package/dist/line-DYhVGH2B.js +34 -0
- package/dist/line-DdNAPGaw.cjs +1 -0
- package/dist/linear-n4_iirEu.js +289 -0
- package/dist/linear-rQLpRrSH.cjs +1 -0
- package/dist/loadCss-D6257oR0.js +8 -0
- package/dist/loadCss-DhrQh6-A.cjs +1 -0
- package/dist/markdown-it-Cz3KGZjR.cjs +2 -0
- package/dist/markdown-it-D-hH4G7k.js +173 -0
- package/dist/math-G8rF7UWn.cjs +1 -0
- package/dist/math-H49DsxYR.js +10 -0
- package/dist/mermaid-parser.core-B84fnaGG.js +11904 -0
- package/dist/mermaid-parser.core-C9EbhVVg.cjs +82 -0
- package/dist/mindmap-definition-VGOIOE7T-CXlyYsc6.cjs +68 -0
- package/dist/mindmap-definition-VGOIOE7T-VIt9sDN3.js +963 -0
- package/dist/mio-previewer.cjs.js +11 -21
- package/dist/mio-previewer.css +2 -9
- package/dist/mio-previewer.esm.js +4939 -0
- package/dist/ordinal-C55HfHHp.js +65 -0
- package/dist/ordinal-CUPR-p0T.cjs +1 -0
- package/dist/packet-HUATNLJX-CGNko_oS.cjs +1 -0
- package/dist/packet-HUATNLJX-CVx40lqO.js +2 -0
- package/dist/path-DNvJyUE8.js +85 -0
- package/dist/path-Kklx0M1v.cjs +1 -0
- package/dist/pie-WTHONI2E-BdPx0Cfg.cjs +1 -0
- package/dist/pie-WTHONI2E-DX5V8x0L.js +2 -0
- package/dist/pieDiagram-ADFJNKIX-BysReYfx.js +165 -0
- package/dist/pieDiagram-ADFJNKIX-CTT1YMsk.cjs +30 -0
- package/dist/plugins/custom.cjs.js +1 -1
- package/dist/plugins/custom.esm.js +2 -0
- package/dist/plugins/markdown-it.cjs.js +1 -3
- package/dist/plugins/markdown-it.esm.js +2 -0
- package/dist/quadrantDiagram-AYHSOK5B-8-V3cwsC.cjs +7 -0
- package/dist/quadrantDiagram-AYHSOK5B-DRutDK03.js +1974 -0
- package/dist/radar-NJJJXTRR-CTD6M8nl.js +2 -0
- package/dist/radar-NJJJXTRR-wJoTnQbj.cjs +1 -0
- package/dist/requirementDiagram-UZGBJVZJ-DFRpWnfW.cjs +64 -0
- package/dist/requirementDiagram-UZGBJVZJ-DNYoJyhG.js +2191 -0
- package/dist/sankeyDiagram-TZEHDZUN-B9fxDP0Q.cjs +10 -0
- package/dist/sankeyDiagram-TZEHDZUN-DD6bkI4Z.js +920 -0
- package/dist/sequenceDiagram-WL72ISMW-Bmptok1c.js +3562 -0
- package/dist/sequenceDiagram-WL72ISMW-D9sXtgAn.cjs +145 -0
- package/dist/src-BMjps4Ui.cjs +1 -0
- package/dist/src-BuisGndr.js +2149 -0
- package/dist/stateDiagram-FKZM4ZOC-Bmiw8fnW.js +217 -0
- package/dist/stateDiagram-FKZM4ZOC-DiD1WJPM.cjs +1 -0
- package/dist/stateDiagram-v2-4FDKWEC3-5ADhn1IF.js +27 -0
- package/dist/stateDiagram-v2-4FDKWEC3-BjhmCPL1.cjs +1 -0
- package/dist/timeline-definition-IT6M3QCI-C9VMls3W.js +830 -0
- package/dist/timeline-definition-IT6M3QCI-ZzbHXhNl.cjs +61 -0
- package/dist/treemap-75Q7IDZK-9TPMYr3R.cjs +1 -0
- package/dist/treemap-75Q7IDZK-u3p-cHDL.js +2 -0
- package/dist/types/plugins/custom/codeBlockPlugin.d.ts +8 -0
- package/dist/types/plugins/custom/mermaidPlugin.d.ts +4 -0
- package/dist/xychartDiagram-PRI3JC2R-BI6KuGZ2.cjs +7 -0
- package/dist/xychartDiagram-PRI3JC2R-BWabDL1u.js +2041 -0
- package/package.json +2 -2
- package/dist/_basePickBy-Be3yyf2d.js +0 -151
- package/dist/_basePickBy-Z0DtrAKQ.cjs +0 -1
- package/dist/_baseUniq-BXkA0Pgx.js +0 -614
- package/dist/_baseUniq-Dq2eV1vY.cjs +0 -1
- package/dist/arc-B-QGG8RZ.cjs +0 -1
- package/dist/arc-djW14lrn.js +0 -83
- package/dist/architecture-O4VJ6CD3-Cws_zM2K.cjs +0 -1
- package/dist/architecture-O4VJ6CD3-pdMXTCaT.js +0 -5
- package/dist/architectureDiagram-VXUJARFQ-BwchhvqL.js +0 -4661
- package/dist/architectureDiagram-VXUJARFQ-DxDLWGpO.cjs +0 -36
- package/dist/assets/parser.worker-67NQKZt5.js +0 -16
- package/dist/blockDiagram-VD42YOAC-B4Xc8gfX.cjs +0 -122
- package/dist/blockDiagram-VD42YOAC-DpPneP6J.js +0 -2261
- package/dist/c4Diagram-YG6GDRKO-695lQbrZ.cjs +0 -10
- package/dist/c4Diagram-YG6GDRKO-Cnlax2Xq.js +0 -1580
- package/dist/channel-D_ITz6Jy.cjs +0 -1
- package/dist/channel-sXy9EduO.js +0 -5
- package/dist/chunk-4BX2VUAB-Bdx3_f83.cjs +0 -1
- package/dist/chunk-4BX2VUAB-DRkGmgAZ.js +0 -8
- package/dist/chunk-55IACEB6-BB03hpRC.cjs +0 -1
- package/dist/chunk-55IACEB6-Ord5OQlh.js +0 -8
- package/dist/chunk-B4BG7PRW-Ca0fOgzA.cjs +0 -165
- package/dist/chunk-B4BG7PRW-D-cs8bDX.js +0 -1375
- package/dist/chunk-DI55MBZ5-BsRe2B2M.cjs +0 -220
- package/dist/chunk-DI55MBZ5-DSmlLD1s.js +0 -1370
- package/dist/chunk-FMBD7UC4-IYQmAMTo.js +0 -19
- package/dist/chunk-QN33PNHL-B7G6Qlf3.cjs +0 -1
- package/dist/chunk-QN33PNHL-EYMc4JVr.js +0 -19
- package/dist/chunk-QZHKN3VN-B8NJ6Ahx.cjs +0 -1
- package/dist/chunk-QZHKN3VN-C4WIG5z8.js +0 -15
- package/dist/chunk-TZMSLE5B-BoM53RHv.js +0 -64
- package/dist/chunk-TZMSLE5B-CgLDb48A.cjs +0 -1
- package/dist/classDiagram-2ON5EDUG-CxmdZvqc.js +0 -16
- package/dist/classDiagram-2ON5EDUG-DIRim8qa.cjs +0 -1
- package/dist/classDiagram-v2-WZHVMYZB-CxmdZvqc.js +0 -16
- package/dist/classDiagram-v2-WZHVMYZB-DIRim8qa.cjs +0 -1
- package/dist/clone-DOYxaT_d.js +0 -8
- package/dist/clone-DSlm33NG.cjs +0 -1
- package/dist/cose-bilkent-S5V4N54A-BD3p1OC_.cjs +0 -1
- package/dist/cose-bilkent-S5V4N54A-yLoaqH3G.js +0 -2608
- package/dist/cytoscape.esm-DHF7mANN.cjs +0 -331
- package/dist/cytoscape.esm-DfdJODL8.js +0 -18735
- package/dist/dagre-6UL2VRFP-DG1oQ4B2.cjs +0 -4
- package/dist/dagre-6UL2VRFP-VjboDBbp.js +0 -444
- package/dist/defaultLocale-D7EN2tov.js +0 -171
- package/dist/defaultLocale-DIVzfLaQ.cjs +0 -1
- package/dist/diagram-PSM6KHXK-C1p0l5TY.js +0 -531
- package/dist/diagram-PSM6KHXK-a4rni6rJ.cjs +0 -24
- package/dist/diagram-QEK2KX5R-CErKOsX1.cjs +0 -43
- package/dist/diagram-QEK2KX5R-CKmmuumX.js +0 -217
- package/dist/diagram-S2PKOQOG-B1M7qCNl.cjs +0 -24
- package/dist/diagram-S2PKOQOG-BMLCJExF.js +0 -142
- package/dist/erDiagram-Q2GNP2WA-BfuCa_Za.cjs +0 -60
- package/dist/erDiagram-Q2GNP2WA-fOTsQA-d.js +0 -841
- package/dist/flowDiagram-NV44I4VS-BEqeUuqz.cjs +0 -162
- package/dist/flowDiagram-NV44I4VS-DDwRAjVG.js +0 -1620
- package/dist/ganttDiagram-LVOFAZNH-BbuRS8g3.js +0 -2505
- package/dist/ganttDiagram-LVOFAZNH-BlVeWKRf.cjs +0 -267
- package/dist/gitGraph-ZV4HHKMB-Bmu8r_Iq.cjs +0 -1
- package/dist/gitGraph-ZV4HHKMB-DcQ2E4dF.js +0 -5
- package/dist/gitGraphDiagram-NY62KEGX-DcMEeNh7.cjs +0 -65
- package/dist/gitGraphDiagram-NY62KEGX-_sWVSKbL.js +0 -699
- package/dist/graph-DEnt0OtZ.js +0 -247
- package/dist/graph-Dgcjs2XL.cjs +0 -1
- package/dist/info-63CPKGFF-DVDDcoHy.js +0 -5
- package/dist/info-63CPKGFF-Dc3cWL0G.cjs +0 -1
- package/dist/infoDiagram-F6ZHWCRC-DoUSS0kC.js +0 -24
- package/dist/infoDiagram-F6ZHWCRC-ZeTrjgaE.cjs +0 -2
- package/dist/init-CHZsXQcr.cjs +0 -1
- package/dist/init-DjUOC4st.js +0 -16
- package/dist/journeyDiagram-XKPGCS4Q-DGe13iBu.js +0 -834
- package/dist/journeyDiagram-XKPGCS4Q-Ihl9g4mY.cjs +0 -139
- package/dist/kanban-definition-3W4ZIXB7-2qkrkVLK.cjs +0 -89
- package/dist/kanban-definition-3W4ZIXB7-BhWe5nMU.js +0 -719
- package/dist/katex-CmGeg_OO.js +0 -11692
- package/dist/katex-DEiiRhcn.cjs +0 -261
- package/dist/layout-BDNzBIaA.cjs +0 -1
- package/dist/layout-DTBfbHzy.js +0 -1324
- package/dist/linear-BRl2UYUr.cjs +0 -1
- package/dist/linear-CwbXkgvF.js +0 -259
- package/dist/loadCss-BbD6mdv-.cjs +0 -1
- package/dist/loadCss-DS0Fuaxe.js +0 -8
- package/dist/mermaid-parser.core-CJ1yJm0s.js +0 -12966
- package/dist/mermaid-parser.core-CxTcWSA2.cjs +0 -128
- package/dist/mindmap-definition-VGOIOE7T-BPUEmP7g.cjs +0 -68
- package/dist/mindmap-definition-VGOIOE7T-DSqZBgzR.js +0 -784
- package/dist/mio-previewer.es.js +0 -6171
- package/dist/ordinal-CagbB1m8.cjs +0 -1
- package/dist/ordinal-DfAQgscy.js +0 -61
- package/dist/packet-HUATNLJX-B-qfkr5X.cjs +0 -1
- package/dist/packet-HUATNLJX-Dxob_meO.js +0 -5
- package/dist/pie-WTHONI2E-BRtdTGWt.js +0 -5
- package/dist/pie-WTHONI2E-DK7f6qJw.cjs +0 -1
- package/dist/pieDiagram-ADFJNKIX-Dhq_bEzm.js +0 -161
- package/dist/pieDiagram-ADFJNKIX-V04ms3gr.cjs +0 -30
- package/dist/plugins/custom.es.js +0 -85
- package/dist/plugins/markdown-it.es.js +0 -173
- package/dist/quadrantDiagram-AYHSOK5B-C97bOmUE.js +0 -1022
- package/dist/quadrantDiagram-AYHSOK5B-DlqFPVhi.cjs +0 -7
- package/dist/radar-NJJJXTRR-B9jT3LP3.cjs +0 -1
- package/dist/radar-NJJJXTRR-D8plmle3.js +0 -5
- package/dist/requirementDiagram-UZGBJVZJ-BxVMLKfQ.js +0 -850
- package/dist/requirementDiagram-UZGBJVZJ-DENJ74Ew.cjs +0 -64
- package/dist/sankeyDiagram-TZEHDZUN-DwgW7Suq.js +0 -810
- package/dist/sankeyDiagram-TZEHDZUN-lTBLhaSq.cjs +0 -10
- package/dist/sequenceDiagram-WL72ISMW-BAOeX1dA.js +0 -2511
- package/dist/sequenceDiagram-WL72ISMW-BRVvH1X4.cjs +0 -145
- package/dist/stateDiagram-FKZM4ZOC-BrFQE7Gl.js +0 -263
- package/dist/stateDiagram-FKZM4ZOC-D8GjooGL.cjs +0 -1
- package/dist/stateDiagram-v2-4FDKWEC3-4VRIY-eH.cjs +0 -1
- package/dist/stateDiagram-v2-4FDKWEC3-DnrWD6a3.js +0 -16
- package/dist/timeline-definition-IT6M3QCI-BJMIlueb.js +0 -795
- package/dist/timeline-definition-IT6M3QCI-BQFGUuGP.cjs +0 -61
- package/dist/treemap-75Q7IDZK-BX1vBFWf.cjs +0 -1
- package/dist/treemap-75Q7IDZK-CMTkunTV.js +0 -5
- package/dist/viewer-CZUSHxhf.js +0 -19131
- package/dist/viewer-Canph5Zx.cjs +0 -305
- package/dist/xychartDiagram-PRI3JC2R-Sl8WX8wc.cjs +0 -7
- package/dist/xychartDiagram-PRI3JC2R-WnFI7Ezu.js +0 -1340
|
@@ -1 +0,0 @@
|
|
|
1
|
-
"use strict";const l=require("./init-CHZsXQcr.cjs");class o extends Map{constructor(n,t=p){if(super(),Object.defineProperties(this,{_intern:{value:new Map},_key:{value:t}}),n!=null)for(const[r,s]of n)this.set(r,s)}get(n){return super.get(c(this,n))}has(n){return super.has(c(this,n))}set(n,t){return super.set(g(this,n),t)}delete(n){return super.delete(h(this,n))}}function c({_intern:e,_key:n},t){const r=n(t);return e.has(r)?e.get(r):t}function g({_intern:e,_key:n},t){const r=n(t);return e.has(r)?e.get(r):(e.set(r,t),t)}function h({_intern:e,_key:n},t){const r=n(t);return e.has(r)&&(t=e.get(r),e.delete(r)),t}function p(e){return e!==null&&typeof e=="object"?e.valueOf():e}const f=Symbol("implicit");function a(){var e=new o,n=[],t=[],r=f;function s(i){let u=e.get(i);if(u===void 0){if(r!==f)return r;e.set(i,u=n.push(i)-1)}return t[u%t.length]}return s.domain=function(i){if(!arguments.length)return n.slice();n=[],e=new o;for(const u of i)e.has(u)||e.set(u,n.push(u)-1);return s},s.range=function(i){return arguments.length?(t=Array.from(i),s):t.slice()},s.unknown=function(i){return arguments.length?(r=i,s):r},s.copy=function(){return a(n,t).unknown(r)},l.initRange.apply(s,arguments),s}exports.ordinal=a;
|
package/dist/ordinal-DfAQgscy.js
DELETED
|
@@ -1,61 +0,0 @@
|
|
|
1
|
-
import { i as a } from "./init-DjUOC4st.js";
|
|
2
|
-
class o extends Map {
|
|
3
|
-
constructor(n, t = g) {
|
|
4
|
-
if (super(), Object.defineProperties(this, { _intern: { value: /* @__PURE__ */ new Map() }, _key: { value: t } }), n != null) for (const [r, s] of n) this.set(r, s);
|
|
5
|
-
}
|
|
6
|
-
get(n) {
|
|
7
|
-
return super.get(c(this, n));
|
|
8
|
-
}
|
|
9
|
-
has(n) {
|
|
10
|
-
return super.has(c(this, n));
|
|
11
|
-
}
|
|
12
|
-
set(n, t) {
|
|
13
|
-
return super.set(l(this, n), t);
|
|
14
|
-
}
|
|
15
|
-
delete(n) {
|
|
16
|
-
return super.delete(p(this, n));
|
|
17
|
-
}
|
|
18
|
-
}
|
|
19
|
-
function c({ _intern: e, _key: n }, t) {
|
|
20
|
-
const r = n(t);
|
|
21
|
-
return e.has(r) ? e.get(r) : t;
|
|
22
|
-
}
|
|
23
|
-
function l({ _intern: e, _key: n }, t) {
|
|
24
|
-
const r = n(t);
|
|
25
|
-
return e.has(r) ? e.get(r) : (e.set(r, t), t);
|
|
26
|
-
}
|
|
27
|
-
function p({ _intern: e, _key: n }, t) {
|
|
28
|
-
const r = n(t);
|
|
29
|
-
return e.has(r) && (t = e.get(r), e.delete(r)), t;
|
|
30
|
-
}
|
|
31
|
-
function g(e) {
|
|
32
|
-
return e !== null && typeof e == "object" ? e.valueOf() : e;
|
|
33
|
-
}
|
|
34
|
-
const f = Symbol("implicit");
|
|
35
|
-
function h() {
|
|
36
|
-
var e = new o(), n = [], t = [], r = f;
|
|
37
|
-
function s(u) {
|
|
38
|
-
let i = e.get(u);
|
|
39
|
-
if (i === void 0) {
|
|
40
|
-
if (r !== f) return r;
|
|
41
|
-
e.set(u, i = n.push(u) - 1);
|
|
42
|
-
}
|
|
43
|
-
return t[i % t.length];
|
|
44
|
-
}
|
|
45
|
-
return s.domain = function(u) {
|
|
46
|
-
if (!arguments.length) return n.slice();
|
|
47
|
-
n = [], e = new o();
|
|
48
|
-
for (const i of u)
|
|
49
|
-
e.has(i) || e.set(i, n.push(i) - 1);
|
|
50
|
-
return s;
|
|
51
|
-
}, s.range = function(u) {
|
|
52
|
-
return arguments.length ? (t = Array.from(u), s) : t.slice();
|
|
53
|
-
}, s.unknown = function(u) {
|
|
54
|
-
return arguments.length ? (r = u, s) : r;
|
|
55
|
-
}, s.copy = function() {
|
|
56
|
-
return h(n, t).unknown(r);
|
|
57
|
-
}, a.apply(s, arguments), s;
|
|
58
|
-
}
|
|
59
|
-
export {
|
|
60
|
-
h as o
|
|
61
|
-
};
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
"use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const e=require("./mermaid-parser.core-CxTcWSA2.cjs");exports.PacketModule=e.PacketModule;exports.createPacketServices=e.createPacketServices;
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
"use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const e=require("./mermaid-parser.core-CxTcWSA2.cjs");exports.PieModule=e.PieModule;exports.createPieServices=e.createPieServices;
|
|
@@ -1,161 +0,0 @@
|
|
|
1
|
-
import { a8 as S, a3 as F, aL as j, _ as p, g as q, s as H, a as Z, b as J, q as K, p as Q, l as z, c as X, D as Y, H as ee, N as te, e as ae, y as re, F as ne } from "./viewer-CZUSHxhf.js";
|
|
2
|
-
import { p as ie } from "./chunk-4BX2VUAB-DRkGmgAZ.js";
|
|
3
|
-
import { p as se } from "./mermaid-parser.core-CJ1yJm0s.js";
|
|
4
|
-
import { d as R } from "./arc-djW14lrn.js";
|
|
5
|
-
import { o as le } from "./ordinal-DfAQgscy.js";
|
|
6
|
-
function oe(e, a) {
|
|
7
|
-
return a < e ? -1 : a > e ? 1 : a >= e ? 0 : NaN;
|
|
8
|
-
}
|
|
9
|
-
function ce(e) {
|
|
10
|
-
return e;
|
|
11
|
-
}
|
|
12
|
-
function ue() {
|
|
13
|
-
var e = ce, a = oe, f = null, y = S(0), s = S(F), o = S(0);
|
|
14
|
-
function l(t) {
|
|
15
|
-
var n, c = (t = j(t)).length, d, x, m = 0, u = new Array(c), i = new Array(c), v = +y.apply(this, arguments), w = Math.min(F, Math.max(-F, s.apply(this, arguments) - v)), h, C = Math.min(Math.abs(w) / c, o.apply(this, arguments)), $ = C * (w < 0 ? -1 : 1), g;
|
|
16
|
-
for (n = 0; n < c; ++n)
|
|
17
|
-
(g = i[u[n] = n] = +e(t[n], n, t)) > 0 && (m += g);
|
|
18
|
-
for (a != null ? u.sort(function(A, D) {
|
|
19
|
-
return a(i[A], i[D]);
|
|
20
|
-
}) : f != null && u.sort(function(A, D) {
|
|
21
|
-
return f(t[A], t[D]);
|
|
22
|
-
}), n = 0, x = m ? (w - c * $) / m : 0; n < c; ++n, v = h)
|
|
23
|
-
d = u[n], g = i[d], h = v + (g > 0 ? g * x : 0) + $, i[d] = {
|
|
24
|
-
data: t[d],
|
|
25
|
-
index: n,
|
|
26
|
-
value: g,
|
|
27
|
-
startAngle: v,
|
|
28
|
-
endAngle: h,
|
|
29
|
-
padAngle: C
|
|
30
|
-
};
|
|
31
|
-
return i;
|
|
32
|
-
}
|
|
33
|
-
return l.value = function(t) {
|
|
34
|
-
return arguments.length ? (e = typeof t == "function" ? t : S(+t), l) : e;
|
|
35
|
-
}, l.sortValues = function(t) {
|
|
36
|
-
return arguments.length ? (a = t, f = null, l) : a;
|
|
37
|
-
}, l.sort = function(t) {
|
|
38
|
-
return arguments.length ? (f = t, a = null, l) : f;
|
|
39
|
-
}, l.startAngle = function(t) {
|
|
40
|
-
return arguments.length ? (y = typeof t == "function" ? t : S(+t), l) : y;
|
|
41
|
-
}, l.endAngle = function(t) {
|
|
42
|
-
return arguments.length ? (s = typeof t == "function" ? t : S(+t), l) : s;
|
|
43
|
-
}, l.padAngle = function(t) {
|
|
44
|
-
return arguments.length ? (o = typeof t == "function" ? t : S(+t), l) : o;
|
|
45
|
-
}, l;
|
|
46
|
-
}
|
|
47
|
-
var pe = ne.pie, N = {
|
|
48
|
-
sections: /* @__PURE__ */ new Map(),
|
|
49
|
-
showData: !1
|
|
50
|
-
}, T = N.sections, G = N.showData, de = structuredClone(pe), ge = /* @__PURE__ */ p(() => structuredClone(de), "getConfig"), fe = /* @__PURE__ */ p(() => {
|
|
51
|
-
T = /* @__PURE__ */ new Map(), G = N.showData, re();
|
|
52
|
-
}, "clear"), he = /* @__PURE__ */ p(({ label: e, value: a }) => {
|
|
53
|
-
if (a < 0)
|
|
54
|
-
throw new Error(
|
|
55
|
-
`"${e}" has invalid value: ${a}. Negative values are not allowed in pie charts. All slice values must be >= 0.`
|
|
56
|
-
);
|
|
57
|
-
T.has(e) || (T.set(e, a), z.debug(`added new section: ${e}, with value: ${a}`));
|
|
58
|
-
}, "addSection"), me = /* @__PURE__ */ p(() => T, "getSections"), ve = /* @__PURE__ */ p((e) => {
|
|
59
|
-
G = e;
|
|
60
|
-
}, "setShowData"), Se = /* @__PURE__ */ p(() => G, "getShowData"), I = {
|
|
61
|
-
getConfig: ge,
|
|
62
|
-
clear: fe,
|
|
63
|
-
setDiagramTitle: Q,
|
|
64
|
-
getDiagramTitle: K,
|
|
65
|
-
setAccTitle: J,
|
|
66
|
-
getAccTitle: Z,
|
|
67
|
-
setAccDescription: H,
|
|
68
|
-
getAccDescription: q,
|
|
69
|
-
addSection: he,
|
|
70
|
-
getSections: me,
|
|
71
|
-
setShowData: ve,
|
|
72
|
-
getShowData: Se
|
|
73
|
-
}, ye = /* @__PURE__ */ p((e, a) => {
|
|
74
|
-
ie(e, a), a.setShowData(e.showData), e.sections.map(a.addSection);
|
|
75
|
-
}, "populateDb"), xe = {
|
|
76
|
-
parse: /* @__PURE__ */ p(async (e) => {
|
|
77
|
-
const a = await se("pie", e);
|
|
78
|
-
z.debug(a), ye(a, I);
|
|
79
|
-
}, "parse")
|
|
80
|
-
}, we = /* @__PURE__ */ p((e) => `
|
|
81
|
-
.pieCircle{
|
|
82
|
-
stroke: ${e.pieStrokeColor};
|
|
83
|
-
stroke-width : ${e.pieStrokeWidth};
|
|
84
|
-
opacity : ${e.pieOpacity};
|
|
85
|
-
}
|
|
86
|
-
.pieOuterCircle{
|
|
87
|
-
stroke: ${e.pieOuterStrokeColor};
|
|
88
|
-
stroke-width: ${e.pieOuterStrokeWidth};
|
|
89
|
-
fill: none;
|
|
90
|
-
}
|
|
91
|
-
.pieTitleText {
|
|
92
|
-
text-anchor: middle;
|
|
93
|
-
font-size: ${e.pieTitleTextSize};
|
|
94
|
-
fill: ${e.pieTitleTextColor};
|
|
95
|
-
font-family: ${e.fontFamily};
|
|
96
|
-
}
|
|
97
|
-
.slice {
|
|
98
|
-
font-family: ${e.fontFamily};
|
|
99
|
-
fill: ${e.pieSectionTextColor};
|
|
100
|
-
font-size:${e.pieSectionTextSize};
|
|
101
|
-
// fill: white;
|
|
102
|
-
}
|
|
103
|
-
.legend text {
|
|
104
|
-
fill: ${e.pieLegendTextColor};
|
|
105
|
-
font-family: ${e.fontFamily};
|
|
106
|
-
font-size: ${e.pieLegendTextSize};
|
|
107
|
-
}
|
|
108
|
-
`, "getStyles"), Ae = we, De = /* @__PURE__ */ p((e) => {
|
|
109
|
-
const a = [...e.values()].reduce((s, o) => s + o, 0), f = [...e.entries()].map(([s, o]) => ({ label: s, value: o })).filter((s) => s.value / a * 100 >= 1).sort((s, o) => o.value - s.value);
|
|
110
|
-
return ue().value((s) => s.value)(f);
|
|
111
|
-
}, "createPieArcs"), Ce = /* @__PURE__ */ p((e, a, f, y) => {
|
|
112
|
-
z.debug(`rendering pie chart
|
|
113
|
-
` + e);
|
|
114
|
-
const s = y.db, o = X(), l = Y(s.getConfig(), o.pie), t = 40, n = 18, c = 4, d = 450, x = d, m = ee(a), u = m.append("g");
|
|
115
|
-
u.attr("transform", "translate(" + x / 2 + "," + d / 2 + ")");
|
|
116
|
-
const { themeVariables: i } = o;
|
|
117
|
-
let [v] = te(i.pieOuterStrokeWidth);
|
|
118
|
-
v ??= 2;
|
|
119
|
-
const w = l.textPosition, h = Math.min(x, d) / 2 - t, C = R().innerRadius(0).outerRadius(h), $ = R().innerRadius(h * w).outerRadius(h * w);
|
|
120
|
-
u.append("circle").attr("cx", 0).attr("cy", 0).attr("r", h + v / 2).attr("class", "pieOuterCircle");
|
|
121
|
-
const g = s.getSections(), A = De(g), D = [
|
|
122
|
-
i.pie1,
|
|
123
|
-
i.pie2,
|
|
124
|
-
i.pie3,
|
|
125
|
-
i.pie4,
|
|
126
|
-
i.pie5,
|
|
127
|
-
i.pie6,
|
|
128
|
-
i.pie7,
|
|
129
|
-
i.pie8,
|
|
130
|
-
i.pie9,
|
|
131
|
-
i.pie10,
|
|
132
|
-
i.pie11,
|
|
133
|
-
i.pie12
|
|
134
|
-
];
|
|
135
|
-
let b = 0;
|
|
136
|
-
g.forEach((r) => {
|
|
137
|
-
b += r;
|
|
138
|
-
});
|
|
139
|
-
const W = A.filter((r) => (r.data.value / b * 100).toFixed(0) !== "0"), E = le(D);
|
|
140
|
-
u.selectAll("mySlices").data(W).enter().append("path").attr("d", C).attr("fill", (r) => E(r.data.label)).attr("class", "pieCircle"), u.selectAll("mySlices").data(W).enter().append("text").text((r) => (r.data.value / b * 100).toFixed(0) + "%").attr("transform", (r) => "translate(" + $.centroid(r) + ")").style("text-anchor", "middle").attr("class", "slice"), u.append("text").text(s.getDiagramTitle()).attr("x", 0).attr("y", -400 / 2).attr("class", "pieTitleText");
|
|
141
|
-
const L = [...g.entries()].map(([r, M]) => ({
|
|
142
|
-
label: r,
|
|
143
|
-
value: M
|
|
144
|
-
})), k = u.selectAll(".legend").data(L).enter().append("g").attr("class", "legend").attr("transform", (r, M) => {
|
|
145
|
-
const P = n + c, B = P * L.length / 2, V = 12 * n, U = M * P - B;
|
|
146
|
-
return "translate(" + V + "," + U + ")";
|
|
147
|
-
});
|
|
148
|
-
k.append("rect").attr("width", n).attr("height", n).style("fill", (r) => E(r.label)).style("stroke", (r) => E(r.label)), k.append("text").attr("x", n + c).attr("y", n - c).text((r) => s.getShowData() ? `${r.label} [${r.value}]` : r.label);
|
|
149
|
-
const _ = Math.max(
|
|
150
|
-
...k.selectAll("text").nodes().map((r) => r?.getBoundingClientRect().width ?? 0)
|
|
151
|
-
), O = x + t + n + c + _;
|
|
152
|
-
m.attr("viewBox", `0 0 ${O} ${d}`), ae(m, d, O, l.useMaxWidth);
|
|
153
|
-
}, "draw"), $e = { draw: Ce }, Fe = {
|
|
154
|
-
parser: xe,
|
|
155
|
-
db: I,
|
|
156
|
-
renderer: $e,
|
|
157
|
-
styles: Ae
|
|
158
|
-
};
|
|
159
|
-
export {
|
|
160
|
-
Fe as diagram
|
|
161
|
-
};
|
|
@@ -1,30 +0,0 @@
|
|
|
1
|
-
"use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const t=require("./viewer-Canph5Zx.cjs"),q=require("./chunk-4BX2VUAB-Bdx3_f83.cjs"),B=require("./mermaid-parser.core-CxTcWSA2.cjs"),N=require("./arc-B-QGG8RZ.cjs"),V=require("./ordinal-CagbB1m8.cjs");function U(e,n){return n<e?-1:n>e?1:n>=e?0:NaN}function j(e){return e}function X(){var e=j,n=U,f=null,S=t.constant(0),s=t.constant(t.tau),c=t.constant(0);function o(a){var i,u=(a=t.array(a)).length,d,y,h=0,g=new Array(u),l=new Array(u),v=+S.apply(this,arguments),A=Math.min(t.tau,Math.max(-t.tau,s.apply(this,arguments)-v)),m,D=Math.min(Math.abs(A)/u,c.apply(this,arguments)),T=D*(A<0?-1:1),p;for(i=0;i<u;++i)(p=l[g[i]=i]=+e(a[i],i,a))>0&&(h+=p);for(n!=null?g.sort(function(x,w){return n(l[x],l[w])}):f!=null&&g.sort(function(x,w){return f(a[x],a[w])}),i=0,y=h?(A-u*T)/h:0;i<u;++i,v=m)d=g[i],p=l[d],m=v+(p>0?p*y:0)+T,l[d]={data:a[d],index:i,value:p,startAngle:v,endAngle:m,padAngle:D};return l}return o.value=function(a){return arguments.length?(e=typeof a=="function"?a:t.constant(+a),o):e},o.sortValues=function(a){return arguments.length?(n=a,f=null,o):n},o.sort=function(a){return arguments.length?(f=a,n=null,o):f},o.startAngle=function(a){return arguments.length?(S=typeof a=="function"?a:t.constant(+a),o):S},o.endAngle=function(a){return arguments.length?(s=typeof a=="function"?a:t.constant(+a),o):s},o.padAngle=function(a){return arguments.length?(c=typeof a=="function"?a:t.constant(+a),o):c},o}var Z=t.defaultConfig_default.pie,E={sections:new Map,showData:!1},_=E.sections,M=E.showData,H=structuredClone(Z),J=t.__name(()=>structuredClone(H),"getConfig"),K=t.__name(()=>{_=new Map,M=E.showData,t.clear()},"clear"),Q=t.__name(({label:e,value:n})=>{if(n<0)throw new Error(`"${e}" has invalid value: ${n}. Negative values are not allowed in pie charts. All slice values must be >= 0.`);_.has(e)||(_.set(e,n),t.log.debug(`added new section: ${e}, with value: ${n}`))},"addSection"),Y=t.__name(()=>_,"getSections"),ee=t.__name(e=>{M=e},"setShowData"),te=t.__name(()=>M,"getShowData"),O={getConfig:J,clear:K,setDiagramTitle:t.setDiagramTitle,getDiagramTitle:t.getDiagramTitle,setAccTitle:t.setAccTitle,getAccTitle:t.getAccTitle,setAccDescription:t.setAccDescription,getAccDescription:t.getAccDescription,addSection:Q,getSections:Y,setShowData:ee,getShowData:te},ae=t.__name((e,n)=>{q.populateCommonDb(e,n),n.setShowData(e.showData),e.sections.map(n.addSection)},"populateDb"),ne={parse:t.__name(async e=>{const n=await B.parse("pie",e);t.log.debug(n),ae(n,O)},"parse")},re=t.__name(e=>`
|
|
2
|
-
.pieCircle{
|
|
3
|
-
stroke: ${e.pieStrokeColor};
|
|
4
|
-
stroke-width : ${e.pieStrokeWidth};
|
|
5
|
-
opacity : ${e.pieOpacity};
|
|
6
|
-
}
|
|
7
|
-
.pieOuterCircle{
|
|
8
|
-
stroke: ${e.pieOuterStrokeColor};
|
|
9
|
-
stroke-width: ${e.pieOuterStrokeWidth};
|
|
10
|
-
fill: none;
|
|
11
|
-
}
|
|
12
|
-
.pieTitleText {
|
|
13
|
-
text-anchor: middle;
|
|
14
|
-
font-size: ${e.pieTitleTextSize};
|
|
15
|
-
fill: ${e.pieTitleTextColor};
|
|
16
|
-
font-family: ${e.fontFamily};
|
|
17
|
-
}
|
|
18
|
-
.slice {
|
|
19
|
-
font-family: ${e.fontFamily};
|
|
20
|
-
fill: ${e.pieSectionTextColor};
|
|
21
|
-
font-size:${e.pieSectionTextSize};
|
|
22
|
-
// fill: white;
|
|
23
|
-
}
|
|
24
|
-
.legend text {
|
|
25
|
-
fill: ${e.pieLegendTextColor};
|
|
26
|
-
font-family: ${e.fontFamily};
|
|
27
|
-
font-size: ${e.pieLegendTextSize};
|
|
28
|
-
}
|
|
29
|
-
`,"getStyles"),ie=re,le=t.__name(e=>{const n=[...e.values()].reduce((s,c)=>s+c,0),f=[...e.entries()].map(([s,c])=>({label:s,value:c})).filter(s=>s.value/n*100>=1).sort((s,c)=>c.value-s.value);return X().value(s=>s.value)(f)},"createPieArcs"),se=t.__name((e,n,f,S)=>{t.log.debug(`rendering pie chart
|
|
30
|
-
`+e);const s=S.db,c=t.getConfig2(),o=t.cleanAndMerge(s.getConfig(),c.pie),a=40,i=18,u=4,d=450,y=d,h=t.selectSvgElement(n),g=h.append("g");g.attr("transform","translate("+y/2+","+d/2+")");const{themeVariables:l}=c;let[v]=t.parseFontSize(l.pieOuterStrokeWidth);v??=2;const A=o.textPosition,m=Math.min(y,d)/2-a,D=N.d3arc().innerRadius(0).outerRadius(m),T=N.d3arc().innerRadius(m*A).outerRadius(m*A);g.append("circle").attr("cx",0).attr("cy",0).attr("r",m+v/2).attr("class","pieOuterCircle");const p=s.getSections(),x=le(p),w=[l.pie1,l.pie2,l.pie3,l.pie4,l.pie5,l.pie6,l.pie7,l.pie8,l.pie9,l.pie10,l.pie11,l.pie12];let C=0;p.forEach(r=>{C+=r});const z=x.filter(r=>(r.data.value/C*100).toFixed(0)!=="0"),$=V.ordinal(w);g.selectAll("mySlices").data(z).enter().append("path").attr("d",D).attr("fill",r=>$(r.data.label)).attr("class","pieCircle"),g.selectAll("mySlices").data(z).enter().append("text").text(r=>(r.data.value/C*100).toFixed(0)+"%").attr("transform",r=>"translate("+T.centroid(r)+")").style("text-anchor","middle").attr("class","slice"),g.append("text").text(s.getDiagramTitle()).attr("x",0).attr("y",-400/2).attr("class","pieTitleText");const F=[...p.entries()].map(([r,k])=>({label:r,value:k})),b=g.selectAll(".legend").data(F).enter().append("g").attr("class","legend").attr("transform",(r,k)=>{const G=i+u,R=G*F.length/2,I=12*i,L=k*G-R;return"translate("+I+","+L+")"});b.append("rect").attr("width",i).attr("height",i).style("fill",r=>$(r.label)).style("stroke",r=>$(r.label)),b.append("text").attr("x",i+u).attr("y",i-u).text(r=>s.getShowData()?`${r.label} [${r.value}]`:r.label);const W=Math.max(...b.selectAll("text").nodes().map(r=>r?.getBoundingClientRect().width??0)),P=y+a+i+u+W;h.attr("viewBox",`0 0 ${P} ${d}`),t.configureSvgSize(h,d,P,o.useMaxWidth)},"draw"),oe={draw:se},ce={parser:ne,db:O,renderer:oe,styles:ie};exports.diagram=ce;
|
|
@@ -1,85 +0,0 @@
|
|
|
1
|
-
import { aF as d } from "../viewer-CZUSHxhf.js";
|
|
2
|
-
import { aG as M, aJ as R, aH as j, aI as S } from "../viewer-CZUSHxhf.js";
|
|
3
|
-
import { defineComponent as f, ref as x, inject as h, computed as g, onMounted as v, onUnmounted as w, createElementBlock as p, openBlock as I, h as y } from "vue";
|
|
4
|
-
const k = ["src", "alt", "title", "data-original", "data-index", "crossorigin"], b = /* @__PURE__ */ f({
|
|
5
|
-
__name: "ImageViewer",
|
|
6
|
-
props: {
|
|
7
|
-
src: {},
|
|
8
|
-
alt: { default: "" },
|
|
9
|
-
title: { default: "" },
|
|
10
|
-
index: { default: 0 },
|
|
11
|
-
crossOrigin: { type: Boolean, default: !1 },
|
|
12
|
-
context: {}
|
|
13
|
-
},
|
|
14
|
-
setup(t) {
|
|
15
|
-
const i = t, n = x(null), r = h("imageViewerManager", null), e = {
|
|
16
|
-
cursor: "pointer",
|
|
17
|
-
maxWidth: "100%",
|
|
18
|
-
height: "auto"
|
|
19
|
-
}, l = g(() => {
|
|
20
|
-
const a = i.context?.images || [];
|
|
21
|
-
if (i.src && a.length > 0) {
|
|
22
|
-
const s = a.findIndex((c) => c.src === i.src);
|
|
23
|
-
return s !== -1 ? s : 0;
|
|
24
|
-
}
|
|
25
|
-
return 0;
|
|
26
|
-
}), u = g(() => i.crossOrigin ? i.src.startsWith("http") && !i.src.includes(window.location.host) : !1);
|
|
27
|
-
v(() => {
|
|
28
|
-
r && n.value && r.registerImage(n.value);
|
|
29
|
-
}), w(() => {
|
|
30
|
-
r && n.value && r.unregisterImage(n.value);
|
|
31
|
-
});
|
|
32
|
-
function o() {
|
|
33
|
-
r && r.show(l.value);
|
|
34
|
-
}
|
|
35
|
-
return (a, s) => (I(), p("img", {
|
|
36
|
-
ref_key: "imgRef",
|
|
37
|
-
ref: n,
|
|
38
|
-
src: t.src,
|
|
39
|
-
alt: t.alt,
|
|
40
|
-
title: t.title,
|
|
41
|
-
"data-original": t.src,
|
|
42
|
-
"data-index": t.index,
|
|
43
|
-
class: "mio-image-viewer",
|
|
44
|
-
crossorigin: u.value ? "anonymous" : void 0,
|
|
45
|
-
style: e,
|
|
46
|
-
onClick: o
|
|
47
|
-
}, null, 8, k));
|
|
48
|
-
}
|
|
49
|
-
}), C = /* @__PURE__ */ d(b, [["__scopeId", "data-v-768757af"]]);
|
|
50
|
-
function V(t) {
|
|
51
|
-
const {
|
|
52
|
-
priority: i = 50,
|
|
53
|
-
viewerOptions: n = {},
|
|
54
|
-
crossOrigin: r = !1
|
|
55
|
-
} = t || {};
|
|
56
|
-
return {
|
|
57
|
-
name: "imageViewer",
|
|
58
|
-
priority: i,
|
|
59
|
-
test: (e) => e.type === "tag" && e.name === "img",
|
|
60
|
-
render: (e, l, u, o) => {
|
|
61
|
-
const a = o?.images || [];
|
|
62
|
-
let s = 0;
|
|
63
|
-
if (e.attribs?.src && a.length > 0) {
|
|
64
|
-
const c = a.findIndex((m) => m.src === e.attribs?.src);
|
|
65
|
-
c !== -1 && (s = c);
|
|
66
|
-
}
|
|
67
|
-
return y(C, {
|
|
68
|
-
src: e.attribs?.src || "",
|
|
69
|
-
alt: e.attribs?.alt || "",
|
|
70
|
-
title: e.attribs?.title || "",
|
|
71
|
-
index: s,
|
|
72
|
-
viewerOptions: n,
|
|
73
|
-
crossOrigin: r,
|
|
74
|
-
context: o
|
|
75
|
-
});
|
|
76
|
-
}
|
|
77
|
-
};
|
|
78
|
-
}
|
|
79
|
-
export {
|
|
80
|
-
M as codeBlockPlugin,
|
|
81
|
-
R as cursorPlugin,
|
|
82
|
-
j as emojiPlugin,
|
|
83
|
-
V as imageViewerPlugin,
|
|
84
|
-
S as mermaidPlugin
|
|
85
|
-
};
|
|
@@ -1,173 +0,0 @@
|
|
|
1
|
-
import E from "../katex-CmGeg_OO.js";
|
|
2
|
-
import { l as P } from "../loadCss-DS0Fuaxe.js";
|
|
3
|
-
function A(u, a, k) {
|
|
4
|
-
function b(e) {
|
|
5
|
-
return e.trim().split(" ", 2)[0] === a;
|
|
6
|
-
}
|
|
7
|
-
function g(e, r, m, y, o) {
|
|
8
|
-
return e[r].nesting === 1 && e[r].attrJoin("class", a), o.renderToken(e, r, m, y, o);
|
|
9
|
-
}
|
|
10
|
-
k = k || {};
|
|
11
|
-
const n = 3, i = k.marker || ":", f = i.charCodeAt(0), t = i.length, c = k.validate || b, s = k.render || g;
|
|
12
|
-
function p(e, r, m, y) {
|
|
13
|
-
let o, x = !1, l = e.bMarks[r] + e.tShift[r], d = e.eMarks[r];
|
|
14
|
-
if (f !== e.src.charCodeAt(l))
|
|
15
|
-
return !1;
|
|
16
|
-
for (o = l + 1; o <= d && i[(o - l) % t] === e.src[o]; o++)
|
|
17
|
-
;
|
|
18
|
-
const M = Math.floor((o - l) / t);
|
|
19
|
-
if (M < n)
|
|
20
|
-
return !1;
|
|
21
|
-
o -= (o - l) % t;
|
|
22
|
-
const $ = e.src.slice(l, o), v = e.src.slice(o, d);
|
|
23
|
-
if (!c(v, $))
|
|
24
|
-
return !1;
|
|
25
|
-
if (y)
|
|
26
|
-
return !0;
|
|
27
|
-
let h = r;
|
|
28
|
-
for (; h++, !(h >= m || (l = e.bMarks[h] + e.tShift[h], d = e.eMarks[h], l < d && e.sCount[h] < e.blkIndent)); )
|
|
29
|
-
if (f === e.src.charCodeAt(l) && !(e.sCount[h] - e.blkIndent >= 4)) {
|
|
30
|
-
for (o = l + 1; o <= d && i[(o - l) % t] === e.src[o]; o++)
|
|
31
|
-
;
|
|
32
|
-
if (!(Math.floor((o - l) / t) < M) && (o -= (o - l) % t, o = e.skipSpaces(o), !(o < d))) {
|
|
33
|
-
x = !0;
|
|
34
|
-
break;
|
|
35
|
-
}
|
|
36
|
-
}
|
|
37
|
-
const C = e.parentType, T = e.lineMax;
|
|
38
|
-
e.parentType = "container", e.lineMax = h;
|
|
39
|
-
const _ = e.push("container_" + a + "_open", "div", 1);
|
|
40
|
-
_.markup = $, _.block = !0, _.info = v, _.map = [r, h], e.md.block.tokenize(e, r + 1, h);
|
|
41
|
-
const S = e.push("container_" + a + "_close", "div", -1);
|
|
42
|
-
return S.markup = e.src.slice(l, o), S.block = !0, e.parentType = C, e.lineMax = T, e.line = h + (x ? 1 : 0), !0;
|
|
43
|
-
}
|
|
44
|
-
u.block.ruler.before("fence", "container_" + a, p, {
|
|
45
|
-
alt: ["paragraph", "reference", "blockquote", "list"]
|
|
46
|
-
}), u.renderer.rules["container_" + a + "_open"] = s, u.renderer.rules["container_" + a + "_close"] = s;
|
|
47
|
-
}
|
|
48
|
-
function R(u) {
|
|
49
|
-
const a = ["info", "warning", "error", "success"], k = {
|
|
50
|
-
info: "#0ea5e9",
|
|
51
|
-
warning: "#f59e0b",
|
|
52
|
-
error: "#ef4444",
|
|
53
|
-
success: "#10b981"
|
|
54
|
-
};
|
|
55
|
-
a.forEach((b) => {
|
|
56
|
-
u.use(A, b, {
|
|
57
|
-
render: (g, n) => {
|
|
58
|
-
const i = k[b];
|
|
59
|
-
return g[n].nesting === 1 ? `<div class="custom-alert alert-${b}" style="padding: 12px 16px; border-left: 4px solid ${i}; background-color: ${i}15; margin: 8px 0; border-radius: 4px; font-family: system-ui, -apple-system, sans-serif;">
|
|
60
|
-
` : `</div>
|
|
61
|
-
`;
|
|
62
|
-
}
|
|
63
|
-
});
|
|
64
|
-
});
|
|
65
|
-
}
|
|
66
|
-
function H(u) {
|
|
67
|
-
return w(u);
|
|
68
|
-
}
|
|
69
|
-
function K(u) {
|
|
70
|
-
const { cssUrl: a } = u || {};
|
|
71
|
-
return (k) => (a && typeof window < "u" && P(a), w(k));
|
|
72
|
-
}
|
|
73
|
-
function w(u) {
|
|
74
|
-
const a = [
|
|
75
|
-
{ open: "$$", close: "$$", display: !0 },
|
|
76
|
-
{ open: "\\[", close: "\\]", display: !0 },
|
|
77
|
-
{ open: "\\(", close: "\\)", display: !1 },
|
|
78
|
-
{ open: "$", close: "$", display: !1 }
|
|
79
|
-
], k = (n, i) => {
|
|
80
|
-
const f = n.src;
|
|
81
|
-
for (const t of a) {
|
|
82
|
-
if (!f.startsWith(t.open, n.pos)) continue;
|
|
83
|
-
const c = n.pos + t.open.length;
|
|
84
|
-
let s = c, p = -1;
|
|
85
|
-
for (; (s = f.indexOf(t.close, s)) !== -1; ) {
|
|
86
|
-
let r = s - 1, m = 0;
|
|
87
|
-
for (; r >= 0 && f[r] === "\\"; )
|
|
88
|
-
m++, r--;
|
|
89
|
-
if (m % 2 === 0) {
|
|
90
|
-
p = s;
|
|
91
|
-
break;
|
|
92
|
-
}
|
|
93
|
-
s += t.close.length;
|
|
94
|
-
}
|
|
95
|
-
if (p === -1)
|
|
96
|
-
return i || (n.pending += t.open), n.pos += t.open.length, !0;
|
|
97
|
-
const e = f.slice(c, p);
|
|
98
|
-
if (!i) {
|
|
99
|
-
const r = n.push("math", "math", 0);
|
|
100
|
-
r.content = e, r.markup = t.open, r.meta = { display: t.display };
|
|
101
|
-
}
|
|
102
|
-
return n.pos = p + t.close.length, !0;
|
|
103
|
-
}
|
|
104
|
-
return !1;
|
|
105
|
-
}, b = (n, i) => {
|
|
106
|
-
const f = n[i], t = f.meta?.display || !1;
|
|
107
|
-
try {
|
|
108
|
-
const c = E.renderToString(f.content, {
|
|
109
|
-
displayMode: t,
|
|
110
|
-
throwOnError: !1,
|
|
111
|
-
// Only output MathML markup (remove the HTML output). This keeps the
|
|
112
|
-
// MathML representation and prevents the HTML portion // appended alongside it.
|
|
113
|
-
output: "mathml",
|
|
114
|
-
// Do not trust input to avoid inserting raw text nodes
|
|
115
|
-
trust: !1
|
|
116
|
-
});
|
|
117
|
-
return t ? `<div class="katex-block">${c}</div>` : c;
|
|
118
|
-
} catch (c) {
|
|
119
|
-
const s = c instanceof Error ? c.message : String(c), p = u.utils ? u.utils.escapeHtml(f.content) : f.content;
|
|
120
|
-
return `<span class="katex-error" title="${u.utils ? u.utils.escapeHtml(s) : s}">${p}</span>`;
|
|
121
|
-
}
|
|
122
|
-
};
|
|
123
|
-
u.inline.ruler.before("escape", "math", k), u.renderer.rules.math = b;
|
|
124
|
-
const g = (n, i, f, t) => {
|
|
125
|
-
for (const c of a) {
|
|
126
|
-
if (!c.display) continue;
|
|
127
|
-
let s = n.bMarks[i] + n.tShift[i], p = n.eMarks[i];
|
|
128
|
-
if (s + c.open.length > p || n.src.slice(s, s + c.open.length) !== c.open)
|
|
129
|
-
continue;
|
|
130
|
-
s += c.open.length;
|
|
131
|
-
const e = n.src.slice(s, p);
|
|
132
|
-
if (e.trim().endsWith(c.close)) {
|
|
133
|
-
const l = e.trim().slice(0, -c.close.length);
|
|
134
|
-
if (!t) {
|
|
135
|
-
const d = n.push("math", "math", 0);
|
|
136
|
-
d.block = !0, d.content = l, d.markup = c.open, d.meta = { display: c.display }, d.map = [i, i + 1];
|
|
137
|
-
}
|
|
138
|
-
return n.line = i + 1, !0;
|
|
139
|
-
}
|
|
140
|
-
let r = i, m = !1;
|
|
141
|
-
for (; r < f && (r++, !(r >= f || (s = n.bMarks[r] + n.tShift[r], p = n.eMarks[r], s < p && n.tShift[r] < n.blkIndent))); )
|
|
142
|
-
if (n.src.slice(s, p).trim() === c.close) {
|
|
143
|
-
m = !0;
|
|
144
|
-
break;
|
|
145
|
-
}
|
|
146
|
-
if (!m) continue;
|
|
147
|
-
const y = n.parentType, o = n.lineMax;
|
|
148
|
-
n.parentType = "math";
|
|
149
|
-
let x = "";
|
|
150
|
-
for (let l = i + 1; l < r; l++) {
|
|
151
|
-
const d = n.getLines(
|
|
152
|
-
l,
|
|
153
|
-
l + 1,
|
|
154
|
-
n.tShift[i],
|
|
155
|
-
!1
|
|
156
|
-
);
|
|
157
|
-
x += d;
|
|
158
|
-
}
|
|
159
|
-
if (!t) {
|
|
160
|
-
const l = n.push("math", "math", 0);
|
|
161
|
-
l.block = !0, l.content = x.trim(), l.markup = c.open, l.meta = { display: c.display }, l.map = [i, r + 1];
|
|
162
|
-
}
|
|
163
|
-
return n.parentType = y, n.lineMax = o, n.line = r + 1, !0;
|
|
164
|
-
}
|
|
165
|
-
return !1;
|
|
166
|
-
};
|
|
167
|
-
u.block.ruler.before("fence", "math_block", g);
|
|
168
|
-
}
|
|
169
|
-
export {
|
|
170
|
-
R as alertPlugin,
|
|
171
|
-
K as createKatexPlugin,
|
|
172
|
-
H as katexPlugin
|
|
173
|
-
};
|