@pi-outpost/embed 0.32.4 → 0.34.0
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/{abnfDiagram-VCTEODGH-SjZtzoAs.cjs → abnfDiagram-YUKMZFIV-CgM8_qF6.cjs} +1 -1
- package/dist/{abnfDiagram-VCTEODGH-BX4P82Y6.js → abnfDiagram-YUKMZFIV-dNHR2FX4.js} +5 -5
- package/dist/architecture-WOLXFQ4H-DupyKILn.cjs +1 -0
- package/dist/architecture-WOLXFQ4H-X4ZWxzi-.js +3 -0
- package/dist/{architectureDiagram-5GKGNRK7-BRdxCCja.js → architectureDiagram-47P4ROYG-C_rUoWaO.js} +31 -31
- package/dist/{architectureDiagram-5GKGNRK7-wrDPdf3y.cjs → architectureDiagram-47P4ROYG-bflaQP1L.cjs} +3 -3
- package/dist/{blockDiagram-OSKFZWR5-Boo8WJyt.cjs → blockDiagram-E7TT5TSB-BKw9FE2U.cjs} +19 -8
- package/dist/{blockDiagram-OSKFZWR5-B1pU8Z2f.js → blockDiagram-E7TT5TSB-CEa2A5E9.js} +217 -193
- package/dist/c4Diagram-CRA5TL53-C-PuMGA5.cjs +38 -0
- package/dist/{c4Diagram-7LVT6UL2-WfERxhw2.js → c4Diagram-CRA5TL53-CtJh9DsO.js} +283 -273
- package/dist/channel-BjC1TKrU.cjs +1 -0
- package/dist/{channel-Cf_XiG-0.js → channel-DCXZw5aW.js} +1 -1
- package/dist/{chunk-OSK3NFVY-BUXOUgUl.js → chunk-2BW5OAIV-DWtmlmt_.js} +178 -154
- package/dist/chunk-2BW5OAIV-FkhgcL6B.cjs +10 -0
- package/dist/{chunk-75Z2AOVW-DoA8rENV.js → chunk-3YJQHVM4-BNbfg-7y.js} +235 -231
- package/dist/chunk-3YJQHVM4-ChvNe1M8.cjs +2 -0
- package/dist/chunk-4EA7E6EY-3OELTJ93.cjs +1 -0
- package/dist/{chunk-P2QGCYS3-BoMkrMIF.js → chunk-4EA7E6EY-B5P7n2an.js} +6 -6
- package/dist/{chunk-F27PBJKO-s9M3oGHp.js → chunk-7TKQ45FW-CD1KuemG.js} +2 -2
- package/dist/{chunk-F27PBJKO-3UPgzIlN.cjs → chunk-7TKQ45FW-Djscho_M.cjs} +1 -1
- package/dist/{chunk-SVP7TREG-CTKSOFlx.cjs → chunk-AW2ZBBNX-C4uNh90t.cjs} +3 -3
- package/dist/{chunk-SVP7TREG-weNUySou.js → chunk-AW2ZBBNX-CVsDDdv5.js} +33 -33
- package/dist/{chunk-GVQU2GXP-iZT_vNLp.cjs → chunk-DBDB3WZW-DSRcln4l.cjs} +1 -1
- package/dist/{chunk-GVQU2GXP-BhLneNgJ.js → chunk-DBDB3WZW-DpEOsLsQ.js} +3 -3
- package/dist/chunk-DUW6YSOI-2RXTEh_8.cjs +1 -0
- package/dist/chunk-DUW6YSOI-CVhxvrBO.js +10 -0
- package/dist/{chunk-GMAD6QVW-DZ2r0pLj.js → chunk-E2ZNV5FY-Bu796yUY.js} +354 -361
- package/dist/chunk-E2ZNV5FY-DIRTchKA.cjs +72 -0
- package/dist/chunk-EU5HNXII-DNBbmfcI.cjs +213 -0
- package/dist/{chunk-3NF5O7KM-DQV4G__C.js → chunk-EU5HNXII-DW-QTb0f.js} +426 -357
- package/dist/chunk-FVRAUYC3-Crqd-lTD.cjs +1 -0
- package/dist/chunk-FVRAUYC3-tiT7dtx-.js +356 -0
- package/dist/{chunk-PWAF6VOD-9dCi1q-p.js → chunk-HJ2JQQFS-CgYTXthn.js} +2 -2
- package/dist/{chunk-PWAF6VOD-CZZKCekP.cjs → chunk-HJ2JQQFS-DnrogIdt.cjs} +1 -1
- package/dist/chunk-HTAEGDNF-D4u24-lD.js +236 -0
- package/dist/chunk-HTAEGDNF-I4JlqwMr.cjs +1 -0
- package/dist/chunk-J5ZVWO5B-CK5HGA-t.cjs +1 -0
- package/dist/chunk-J5ZVWO5B-DEP-pB-1.js +12 -0
- package/dist/{chunk-POPQ4Y6H-BRQPB1-9.cjs → chunk-KQW6MTUR-C_XQxsme.cjs} +1 -1
- package/dist/{chunk-POPQ4Y6H-vLTNjxsT.js → chunk-KQW6MTUR-c0XOjr_c.js} +2 -2
- package/dist/chunk-NGNAAXSQ-DM0DL2MX.js +19836 -0
- package/dist/chunk-NGNAAXSQ-kHtfTQLE.cjs +136 -0
- package/dist/chunk-NTY3LDVX-CvRtOCpm.js +363 -0
- package/dist/chunk-NTY3LDVX-DBVRlnMJ.cjs +1 -0
- package/dist/chunk-VPRB5NB3-CT204jN6.cjs +129 -0
- package/dist/{chunk-DU6HZSFF-BW30DVuW.js → chunk-VPRB5NB3-DJh7spRO.js} +791 -611
- package/dist/chunk-XC4XBNZT-BTUjiQhE.cjs +62 -0
- package/dist/{chunk-4HAMMTFA-C2YXJpQw.js → chunk-XC4XBNZT-CSiWBPH9.js} +1378 -1079
- package/dist/classDiagram-v2-K4WV4PDN-BndXIwai.cjs +217 -0
- package/dist/{chunk-HLEWEB6X-BrzeadBj.js → classDiagram-v2-K4WV4PDN-C39xKke0.js} +254 -214
- package/dist/{conversationExport-QWEGKkKB.js → conversationExport-0aa7tXBv.js} +2 -2
- package/dist/{conversationExport-D2ekPeYe.cjs → conversationExport-BVHvnvh5.cjs} +1 -1
- package/dist/conversationHistory-CNfOwM8H.cjs +287 -0
- package/dist/{conversationHistory-BylZCAb1.js → conversationHistory-D-hT7EvD.js} +9066 -6513
- package/dist/cynefin-EF2NZ3EQ-BB_WO8YQ.js +3 -0
- package/dist/cynefin-EF2NZ3EQ-Du3-s5Z7.cjs +1 -0
- package/dist/{cynefinDiagram-5FMLGOSQ-GvGZco52.cjs → cynefinDiagram-3GCD6N5R-Bmvj-sQO.cjs} +1 -1
- package/dist/{cynefinDiagram-5FMLGOSQ-BEFzUfsd.js → cynefinDiagram-3GCD6N5R-C2CRSeJl.js} +14 -14
- package/dist/dagre-W4DXFKR2-ECmxkO0T.js +2356 -0
- package/dist/dagre-W4DXFKR2-aPKdYPEj.cjs +4 -0
- package/dist/diagram-2UJZ2QOL-B1JKtFHG.cjs +200 -0
- package/dist/diagram-2UJZ2QOL-CJRsGDwn.js +5081 -0
- package/dist/{diagram-VX7I27RA-Bx9fEhR0.cjs → diagram-OVF4WLC6-CwZeVpHT.cjs} +1 -1
- package/dist/{diagram-VX7I27RA-BK8jsKkD.js → diagram-OVF4WLC6-D6r6aTeO.js} +61 -61
- package/dist/{diagram-S7CK7UJ4-BH8mrGrv.js → diagram-PFPMY2P6-BpOJbdZ5.js} +15 -15
- package/dist/{diagram-S7CK7UJ4-BA67ZpiO.cjs → diagram-PFPMY2P6-DlLbGc_k.cjs} +3 -3
- package/dist/{diagram-Z3DM3KII-jy895UiZ.cjs → diagram-UMYRVEAY-BE-t_ZdV.cjs} +1 -1
- package/dist/{diagram-Z3DM3KII-CqouFf3D.js → diagram-UMYRVEAY-blW7NpUU.js} +14 -14
- package/dist/{diagram-UQ7AKVKN-Bvz7faiB.js → diagram-YEKJPTXX-BOgf87BN.js} +15 -15
- package/dist/{diagram-UQ7AKVKN-OteiyKD9.cjs → diagram-YEKJPTXX-CeQjir5H.cjs} +2 -2
- package/dist/diagram-ZIFT7M5P-BHePHmHl.cjs +3 -0
- package/dist/{diagram-VSXAHHWV-l9f6spkp.js → diagram-ZIFT7M5P-CZOnEYez.js} +40 -25
- package/dist/{docxExport-DK8uhXvT.js → docxExport-Cyk5ToUi.js} +1 -1
- package/dist/{docxExport-Dt55TJ2h.cjs → docxExport-DF-PXilo.cjs} +1 -1
- package/dist/{ebnfDiagram-PWID7BFC-Bwmmg23f.js → ebnfDiagram-VR2GEFS7-Cr0a3Ho_.js} +5 -5
- package/dist/{ebnfDiagram-PWID7BFC-BQZKHpUr.cjs → ebnfDiagram-VR2GEFS7-cgyTJ-Xs.cjs} +1 -1
- package/dist/elk-IJKZMXRS-NO3xNT-V.cjs +27 -0
- package/dist/elk-IJKZMXRS-V31is6hS.js +47984 -0
- package/dist/{erDiagram-2YWLMYGG-RTHTTqyH.js → erDiagram-O2IAPWRE-CP06GjjM.js} +60 -56
- package/dist/{erDiagram-2YWLMYGG-CuEEIv1I.cjs → erDiagram-O2IAPWRE-CnkFrABC.cjs} +13 -13
- package/dist/eventmodeling-K75KTNOO-CMoz0K5S.js +3 -0
- package/dist/eventmodeling-K75KTNOO-DZdZrgwl.cjs +1 -0
- package/dist/flowDiagram-OXPTDLAJ-BdYr7Idm.cjs +1 -0
- package/dist/flowDiagram-OXPTDLAJ-R_xf7pNW.js +16 -0
- package/dist/{ganttDiagram-EL5Y4UJY-PTWIufq8.cjs → ganttDiagram-R7TSEDQI-Jhax10tw.cjs} +3 -3
- package/dist/{ganttDiagram-EL5Y4UJY-BTvevd1z.js → ganttDiagram-R7TSEDQI-y1bDU8Ba.js} +103 -92
- package/dist/gitGraph-VSP46ZUC-DoTshgkY.js +3 -0
- package/dist/gitGraph-VSP46ZUC-lawIO6K6.cjs +1 -0
- package/dist/{gitGraphDiagram-WWUBYQGX-D5yozoaq.cjs → gitGraphDiagram-XJZIOB7I-CLZLQcPk.cjs} +5 -5
- package/dist/{gitGraphDiagram-WWUBYQGX-Bh9F7wif.js → gitGraphDiagram-XJZIOB7I-CYZa0-Ct.js} +45 -45
- package/dist/info-OHQRW6UA-DPTZOb30.js +3 -0
- package/dist/info-OHQRW6UA-deop1PPz.cjs +1 -0
- package/dist/infoDiagram-5W2HQ5XZ-D8fJK3ph.cjs +2 -0
- package/dist/{infoDiagram-FKFFQAWI-D6en39j4.js → infoDiagram-5W2HQ5XZ-Dw_D4zI1.js} +5 -5
- package/dist/{ishikawaDiagram-5VMMS53U-CvVqTWku.js → ishikawaDiagram-K3B6WC7H-BeLiZFVY.js} +25 -25
- package/dist/{ishikawaDiagram-5VMMS53U-DN23jmFw.cjs → ishikawaDiagram-K3B6WC7H-DtjgiZAB.cjs} +2 -2
- package/dist/{journeyDiagram-EYS64GPL-CqhBN0KZ.js → journeyDiagram-COXZFDF6-B-qvdudB.js} +31 -31
- package/dist/{journeyDiagram-EYS64GPL-Co9rp-Q1.cjs → journeyDiagram-COXZFDF6-Dge2AV0B.cjs} +4 -4
- package/dist/{kanban-definition-UXKFOSKX-DzKPVjAq.cjs → kanban-definition-P3RFRI5V-C02YfFZv.cjs} +4 -4
- package/dist/{kanban-definition-UXKFOSKX-CWx_Y40t.js → kanban-definition-P3RFRI5V-D0XAXDl8.js} +42 -42
- package/dist/{line-D6gR53Af.cjs → line-5eGinYgh.cjs} +1 -1
- package/dist/{line-CwYnx9Ke.js → line-BTenwQwq.js} +1 -1
- package/dist/loadReferencedImage-C60bzMNm.cjs +1 -0
- package/dist/{loadReferencedImage-BKEDAhWQ.js → loadReferencedImage-XQS67fhR.js} +3 -1
- package/dist/mermaid-parser.core-BHBS1DqP.cjs +6 -0
- package/dist/{mermaid-parser.core-DLNlSmfj.js → mermaid-parser.core-CI12FMcX.js} +163 -163
- package/dist/mermaid.core-4MZ-Iwu7.cjs +43 -0
- package/dist/{mermaid.core-DI1iFk6G.js → mermaid.core-BJkDCzqA.js} +875 -1150
- package/dist/{mindmap-definition-THT77NOG-Bo3D8RRT.cjs → mindmap-definition-LZFPQGKD-CXV1hV3a.cjs} +3 -3
- package/dist/{mindmap-definition-THT77NOG-B9hdpQgy.js → mindmap-definition-LZFPQGKD-gYumvdwo.js} +78 -78
- package/dist/packet-JDAUHWVQ-Bcik24Kz.js +3 -0
- package/dist/packet-JDAUHWVQ-CrY7ylWJ.cjs +1 -0
- package/dist/{pegDiagram-XKGWAZYB-Cx-wZf4B.cjs → pegDiagram-BGZESJAR-BICf3jMN.cjs} +1 -1
- package/dist/{pegDiagram-XKGWAZYB-CIBfY2Ob.js → pegDiagram-BGZESJAR-Dw9pRv5d.js} +5 -5
- package/dist/pi-outpost-embed.cjs +9 -10
- package/dist/pi-outpost-embed.js +2833 -2786
- package/dist/pie-XZMESJXO-BYQC-ufi.js +3 -0
- package/dist/pie-XZMESJXO-WjCBboSE.cjs +1 -0
- package/dist/{pieDiagram-E7YTZNPT-BC-pW4cK.cjs → pieDiagram-CAPJLFHJ-CF8cTQpC.cjs} +2 -2
- package/dist/{pieDiagram-E7YTZNPT-SG9oy_nV.js → pieDiagram-CAPJLFHJ-uz37FR9I.js} +18 -18
- package/dist/{quadrantDiagram-AXDQQJYC-C65HQ6gT.js → quadrantDiagram-GDMTTRAM-C4rt8LIh.js} +40 -40
- package/dist/{quadrantDiagram-AXDQQJYC-zPfqM9Q4.cjs → quadrantDiagram-GDMTTRAM-D9SYFJ_P.cjs} +2 -2
- package/dist/radar-ABXABTNO-BoQ7hH7Z.cjs +1 -0
- package/dist/radar-ABXABTNO-MxbyaZja.js +3 -0
- package/dist/railroad-I3PHUGI6-DckUArT-.js +3 -0
- package/dist/railroad-I3PHUGI6-DuGTlHry.cjs +1 -0
- package/dist/railroad-abnf-LNEFI6M7-DmAJaMEu.js +3 -0
- package/dist/railroad-abnf-LNEFI6M7-DoWf9u55.cjs +1 -0
- package/dist/railroad-ebnf-DWYD2UWJ-Bf05ZyW1.cjs +1 -0
- package/dist/railroad-ebnf-DWYD2UWJ-CS2AUYSv.js +3 -0
- package/dist/railroad-peg-JR7BVNR7-B-nctVbV.js +3 -0
- package/dist/railroad-peg-JR7BVNR7-CcV5KH4m.cjs +1 -0
- package/dist/{railroadDiagram-O6MQD6OU-3JsgWyLe.cjs → railroadDiagram-SM67HX2B-GgesxX7v.cjs} +1 -1
- package/dist/{railroadDiagram-O6MQD6OU-DLBEWyaH.js → railroadDiagram-SM67HX2B-T5SG0kEf.js} +5 -5
- package/dist/{requirementDiagram-IS5BZ75X-DwrHgMzq.js → requirementDiagram-X7JNWC4A-BEeCszC1.js} +49 -45
- package/dist/{requirementDiagram-IS5BZ75X-D1BMLxZg.cjs → requirementDiagram-X7JNWC4A-BVzf-VRr.cjs} +11 -11
- package/dist/{sankeyDiagram-P5KCCOFB-D5BHxcxB.cjs → sankeyDiagram-UM26HJRW-CdBXqklJ.cjs} +3 -3
- package/dist/{sankeyDiagram-P5KCCOFB-CcT0ZbW6.js → sankeyDiagram-UM26HJRW-DLDVzhPm.js} +16 -16
- package/dist/{sequenceDiagram-WJ2MYXX4-DM6BpXMT.js → sequenceDiagram-ZO4K6R2Y-B8wM6a-A.js} +704 -619
- package/dist/sequenceDiagram-ZO4K6R2Y-ytX57BES.cjs +169 -0
- package/dist/stateDiagram-v2-TBUQTH76-BTuAbG28.cjs +291 -0
- package/dist/{chunk-ZLD2IHE6-CqnVd2rq.js → stateDiagram-v2-TBUQTH76-PRnBJSrY.js} +271 -174
- package/dist/swimlanes-N4OXWK64-41SBE_L2.cjs +1 -0
- package/dist/{swimlanes-V6O3JKXN-BR7rwPmC.js → swimlanes-N4OXWK64-DipLcZla.js} +1006 -1219
- package/dist/swimlanesDiagram-K3J5GTZL-D6tIMgkj.cjs +8 -0
- package/dist/swimlanesDiagram-K3J5GTZL-_MehEHMi.js +27 -0
- package/dist/timeline-definition-YOQAKGHF-D_LWHCSA.cjs +120 -0
- package/dist/{timeline-definition-24CTP7MA-BQmq-H07.js → timeline-definition-YOQAKGHF-h8_spxIb.js} +210 -206
- package/dist/treeView-D4JQ5SDB-C3ticT1s.cjs +1 -0
- package/dist/treeView-D4JQ5SDB-CEuRf8gK.js +3 -0
- package/dist/treemap-SAJKECNS-BwIfwvl-.cjs +1 -0
- package/dist/treemap-SAJKECNS-DiC0668-.js +3 -0
- package/dist/usecaseDiagram-VIAY4XPW-DCfwvERR.js +7187 -0
- package/dist/usecaseDiagram-VIAY4XPW-PJHZiyJN.cjs +328 -0
- package/dist/{vennDiagram-4TSXK5OY-BdzbrV6i.js → vennDiagram-BLWOH2XV-_zHkfDVB.js} +43 -43
- package/dist/{vennDiagram-4TSXK5OY-D5MMYyff.cjs → vennDiagram-BLWOH2XV-niExkaFk.cjs} +3 -3
- package/dist/wardley-7MLQ67FV-BoIyQQ0E.cjs +1 -0
- package/dist/wardley-7MLQ67FV-CFF6IT1d.js +3 -0
- package/dist/{wardleyDiagram-VM6X3IG4-Ccz1enMd.js → wardleyDiagram-YMQ3BMBF-BKvQkiZP.js} +17 -17
- package/dist/{wardleyDiagram-VM6X3IG4-DzZNzmB8.cjs → wardleyDiagram-YMQ3BMBF-btlDrKA6.cjs} +3 -3
- package/dist/xychartDiagram-TAQBALBS-CkNZcyIi.cjs +7 -0
- package/dist/{xychartDiagram-S5SC5T6Z-B-sQkN_B.js → xychartDiagram-TAQBALBS-DlfKpBG9.js} +34 -30
- package/package.json +2 -2
- package/dist/architecture-7GRP2DOG-BtgYGXkq.cjs +0 -1
- package/dist/architecture-7GRP2DOG-DBQ9eYgM.js +0 -3
- package/dist/c4Diagram-7LVT6UL2-BCrC0RQo.cjs +0 -38
- package/dist/channel-DcrLLvcO.cjs +0 -1
- package/dist/chunk-3NF5O7KM-B-DpUW2r.cjs +0 -168
- package/dist/chunk-4HAMMTFA-CtkrBT7X.cjs +0 -62
- package/dist/chunk-75Z2AOVW-DOXS9ORa.cjs +0 -2
- package/dist/chunk-DU6HZSFF-3Hhp3Fo5.cjs +0 -127
- package/dist/chunk-FOHPRMQF-BNNbqxGX.js +0 -21456
- package/dist/chunk-FOHPRMQF-tmTlwTeH.cjs +0 -161
- package/dist/chunk-GMAD6QVW-B6uvB_wz.cjs +0 -72
- package/dist/chunk-HLEWEB6X-aqFoPl02.cjs +0 -206
- package/dist/chunk-L3NEJ4N5-BaR_9rF3.js +0 -245
- package/dist/chunk-L3NEJ4N5-vW3qRjIb.cjs +0 -1
- package/dist/chunk-OSK3NFVY-DU2FGOlI.cjs +0 -10
- package/dist/chunk-P2QGCYS3-DWeL9spl.cjs +0 -1
- package/dist/chunk-ZLD2IHE6-BZxKwfuv.cjs +0 -231
- package/dist/classDiagram-CYGNFDIV-CQLOfBmz.cjs +0 -1
- package/dist/classDiagram-CYGNFDIV-DsnY_WNO.js +0 -30
- package/dist/classDiagram-v2-TLXNO2FR-CQLOfBmz.cjs +0 -1
- package/dist/classDiagram-v2-TLXNO2FR-DeNpu9ZP.js +0 -30
- package/dist/conversationHistory-BmpdU77I.cjs +0 -286
- package/dist/cynefin-OW5HDTMX-BmLJra-4.cjs +0 -1
- package/dist/cynefin-OW5HDTMX-CfYr_cVN.js +0 -3
- package/dist/dagre-BMKbPnPh.js +0 -1934
- package/dist/dagre-EEW2OxRU.cjs +0 -1
- package/dist/dagre-OS7QT2EB-BtJ6v_Nc.js +0 -425
- package/dist/dagre-OS7QT2EB-DFi6nnZc.cjs +0 -4
- package/dist/diagram-VSXAHHWV-BjsZz1JJ.cjs +0 -3
- package/dist/eventmodeling-NTZA5JFV-D57pc07U.cjs +0 -1
- package/dist/eventmodeling-NTZA5JFV-DUbGOrrF.js +0 -3
- package/dist/flowDiagram-T62WH6J4-YyzE7N5Z.cjs +0 -1
- package/dist/flowDiagram-T62WH6J4-ptBWC6KI.js +0 -16
- package/dist/gitGraph-4MIJSDKK-CY4IuhXZ.js +0 -3
- package/dist/gitGraph-4MIJSDKK-D97vaDci.cjs +0 -1
- package/dist/info-A6RAGUB7-Cx39sHYM.js +0 -3
- package/dist/info-A6RAGUB7-DT06-FB3.cjs +0 -1
- package/dist/infoDiagram-FKFFQAWI-NPtQF4vB.cjs +0 -2
- package/dist/loadReferencedImage-DlRgJ4vm.cjs +0 -1
- package/dist/mermaid-parser.core-CBiDgMLi.cjs +0 -6
- package/dist/mermaid.core-B3QcBB1O.cjs +0 -43
- package/dist/packet-AYTQ26CC-BGX2McoE.cjs +0 -1
- package/dist/packet-AYTQ26CC-IgkU2VYK.js +0 -3
- package/dist/pie-WAS4IAKB-CEyPj3UJ.cjs +0 -1
- package/dist/pie-WAS4IAKB-odE0A7fM.js +0 -3
- package/dist/radar-RG4KPBEZ-ClYJNseM.cjs +0 -1
- package/dist/radar-RG4KPBEZ-DqbNqlJH.js +0 -3
- package/dist/railroad-74A4TZTK-Dzt4afqg.js +0 -3
- package/dist/railroad-74A4TZTK-hSKcr2y6.cjs +0 -1
- package/dist/railroad-abnf-HS5TGJTU-gq2RybTO.js +0 -3
- package/dist/railroad-abnf-HS5TGJTU-irEXz0eI.cjs +0 -1
- package/dist/railroad-ebnf-LZEXJU2U-CG19A1Xj.cjs +0 -1
- package/dist/railroad-ebnf-LZEXJU2U-D-pNpFrj.js +0 -3
- package/dist/railroad-peg-WCYAUIDC-BLdK3QCV.cjs +0 -1
- package/dist/railroad-peg-WCYAUIDC-Bo7wfe--.js +0 -3
- package/dist/sequenceDiagram-WJ2MYXX4-DlVJIIIl.cjs +0 -162
- package/dist/stateDiagram-XQSTLZYL-BhzcW44q.js +0 -220
- package/dist/stateDiagram-XQSTLZYL-mSOJx_Wv.cjs +0 -1
- package/dist/stateDiagram-v2-IH3M54BS-BE5CXOTu.js +0 -30
- package/dist/stateDiagram-v2-IH3M54BS-DAa6SuH4.cjs +0 -1
- package/dist/swimlanes-V6O3JKXN-BooYLGtP.cjs +0 -1
- package/dist/swimlanesDiagram-JKAHXJPX-BaMCBEUQ.cjs +0 -8
- package/dist/swimlanesDiagram-JKAHXJPX-lIPwQ8Mc.js +0 -30
- package/dist/timeline-definition-24CTP7MA-D6sSmprF.cjs +0 -120
- package/dist/treeView-Q6P3EWNA-BmkQxkVU.cjs +0 -1
- package/dist/treeView-Q6P3EWNA-CPEEGmNv.js +0 -3
- package/dist/treemap-WGGIJYW6-CGULpntJ.js +0 -3
- package/dist/treemap-WGGIJYW6-Dmi9HAR8.cjs +0 -1
- package/dist/wardley-WFR3VGLG-9zHZLKh9.js +0 -3
- package/dist/wardley-WFR3VGLG-B6YvLPJA.cjs +0 -1
- package/dist/xychartDiagram-S5SC5T6Z-BOsjfYJh.cjs +0 -7
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
const e=require("./mermaid-parser.core-CBiDgMLi.cjs"),t=require("./chunk-Y2CYZVJY-CnmLqFtv.cjs"),n=require("./src-D9o9TOtH.cjs"),r=require("./chunk-DU6HZSFF-3Hhp3Fo5.cjs"),i=require("./ordinal-Bm_chml2.cjs"),a=require("./defaultLocale-ybN1Vtvg.cjs"),o=require("./chunk-75Z2AOVW-DOXS9ORa.cjs"),s=require("./chunk-JWPE2WC7-Cs1kjq8S.cjs"),c=require("./chunk-P2QGCYS3-DWeL9spl.cjs"),l=require("./chunk-POPQ4Y6H-BRQPB1-9.cjs"),u=require("./mermaid.core-B3QcBB1O.cjs");function d(e){var t=0,n=e.children,r=n&&n.length;if(!r)t=1;else for(;--r>=0;)t+=n[r].value;e.value=t}function f(){return this.eachAfter(d)}function p(e,t){let n=-1;for(let r of this)e.call(t,r,++n,this);return this}function m(e,t){for(var n=this,r=[n],i,a,o=-1;n=r.pop();)if(e.call(t,n,++o,this),i=n.children)for(a=i.length-1;a>=0;--a)r.push(i[a]);return this}function h(e,t){for(var n=this,r=[n],i=[],a,o,s,c=-1;n=r.pop();)if(i.push(n),a=n.children)for(o=0,s=a.length;o<s;++o)r.push(a[o]);for(;n=i.pop();)e.call(t,n,++c,this);return this}function g(e,t){let n=-1;for(let r of this)if(e.call(t,r,++n,this))return r}function _(e){return this.eachAfter(function(t){for(var n=+e(t.data)||0,r=t.children,i=r&&r.length;--i>=0;)n+=r[i].value;t.value=n})}function v(e){return this.eachBefore(function(t){t.children&&t.children.sort(e)})}function y(e){for(var t=this,n=b(t,e),r=[t];t!==n;)t=t.parent,r.push(t);for(var i=r.length;e!==n;)r.splice(i,0,e),e=e.parent;return r}function b(e,t){if(e===t)return e;var n=e.ancestors(),r=t.ancestors(),i=null;for(e=n.pop(),t=r.pop();e===t;)i=e,e=n.pop(),t=r.pop();return i}function x(){for(var e=this,t=[e];e=e.parent;)t.push(e);return t}function S(){return Array.from(this)}function C(){var e=[];return this.eachBefore(function(t){t.children||e.push(t)}),e}function w(){var e=this,t=[];return e.each(function(n){n!==e&&t.push({source:n.parent,target:n})}),t}function*T(){var e=this,t,n=[e],r,i,a;do for(t=n.reverse(),n=[];e=t.pop();)if(yield e,r=e.children)for(i=0,a=r.length;i<a;++i)n.push(r[i]);while(n.length)}function E(e,t){e instanceof Map?(e=[void 0,e],t===void 0&&(t=k)):t===void 0&&(t=O);for(var n=new M(e),r,i=[n],a,o,s,c;r=i.pop();)if((o=t(r.data))&&(c=(o=Array.from(o)).length))for(r.children=o,s=c-1;s>=0;--s)i.push(a=o[s]=new M(o[s])),a.parent=r,a.depth=r.depth+1;return n.eachBefore(j)}function D(){return E(this).eachBefore(A)}function O(e){return e.children}function k(e){return Array.isArray(e)?e[1]:null}function A(e){e.data.value!==void 0&&(e.value=e.data.value),e.data=e.data.data}function j(e){var t=0;do e.height=t;while((e=e.parent)&&e.height<++t)}function M(e){this.data=e,this.depth=this.height=0,this.parent=null}M.prototype=E.prototype={constructor:M,count:f,each:p,eachAfter:h,eachBefore:m,find:g,sum:_,sort:v,path:y,ancestors:x,descendants:S,leaves:C,links:w,copy:D,[Symbol.iterator]:T};function N(e){if(typeof e!=`function`)throw Error();return e}function P(){return 0}function F(e){return function(){return e}}function I(e){e.x0=Math.round(e.x0),e.y0=Math.round(e.y0),e.x1=Math.round(e.x1),e.y1=Math.round(e.y1)}function L(e,t,n,r,i){for(var a=e.children,o,s=-1,c=a.length,l=e.value&&(r-t)/e.value;++s<c;)o=a[s],o.y0=n,o.y1=i,o.x0=t,o.x1=t+=o.value*l}function R(e,t,n,r,i){for(var a=e.children,o,s=-1,c=a.length,l=e.value&&(i-n)/e.value;++s<c;)o=a[s],o.x0=t,o.x1=r,o.y0=n,o.y1=n+=o.value*l}var z=(1+Math.sqrt(5))/2;function B(e,t,n,r,i,a){for(var o=[],s=t.children,c,l,u=0,d=0,f=s.length,p,m,h=t.value,g,_,v,y,b,x,S;u<f;){p=i-n,m=a-r;do g=s[d++].value;while(!g&&d<f);for(_=v=g,x=Math.max(m/p,p/m)/(h*e),S=g*g*x,b=Math.max(v/S,S/_);d<f;++d){if(g+=l=s[d].value,l<_&&(_=l),l>v&&(v=l),S=g*g*x,y=Math.max(v/S,S/_),y>b){g-=l;break}b=y}o.push(c={value:g,dice:p<m,children:s.slice(u,d)}),c.dice?L(c,n,r,i,h?r+=m*g/h:a):R(c,n,r,h?n+=p*g/h:i,a),h-=g,u=d}return o}var V=(function e(t){function n(e,n,r,i,a){B(t,e,n,r,i,a)}return n.ratio=function(t){return e((t=+t)>1?t:1)},n})(z);function H(){var e=V,t=!1,n=1,r=1,i=[0],a=P,o=P,s=P,c=P,l=P;function u(e){return e.x0=e.y0=0,e.x1=n,e.y1=r,e.eachBefore(d),i=[0],t&&e.eachBefore(I),e}function d(t){var n=i[t.depth],r=t.x0+n,u=t.y0+n,d=t.x1-n,f=t.y1-n;d<r&&(r=d=(r+d)/2),f<u&&(u=f=(u+f)/2),t.x0=r,t.y0=u,t.x1=d,t.y1=f,t.children&&(n=i[t.depth+1]=a(t)/2,r+=l(t)-n,u+=o(t)-n,d-=s(t)-n,f-=c(t)-n,d<r&&(r=d=(r+d)/2),f<u&&(u=f=(u+f)/2),e(t,r,u,d,f))}return u.round=function(e){return arguments.length?(t=!!e,u):t},u.size=function(e){return arguments.length?(n=+e[0],r=+e[1],u):[n,r]},u.tile=function(t){return arguments.length?(e=N(t),u):e},u.padding=function(e){return arguments.length?u.paddingInner(e).paddingOuter(e):u.paddingInner()},u.paddingInner=function(e){return arguments.length?(a=typeof e==`function`?e:F(+e),u):a},u.paddingOuter=function(e){return arguments.length?u.paddingTop(e).paddingRight(e).paddingBottom(e).paddingLeft(e):u.paddingTop()},u.paddingTop=function(e){return arguments.length?(o=typeof e==`function`?e:F(+e),u):o},u.paddingRight=function(e){return arguments.length?(s=typeof e==`function`?e:F(+e),u):s},u.paddingBottom=function(e){return arguments.length?(c=typeof e==`function`?e:F(+e),u):c},u.paddingLeft=function(e){return arguments.length?(l=typeof e==`function`?e:F(+e),u):l},u}var U=class{constructor(){this.nodes=[],this.levels=new Map,this.outerNodes=[],this.classes=new Map,this.setAccTitle=r.U,this.getAccTitle=r.y,this.setDiagramTitle=r.K,this.getDiagramTitle=r.w,this.getAccDescription=r.v,this.setAccDescription=r.H}static{t.n(this,`TreeMapDB`)}getNodes(){return this.nodes}getConfig(){let e=r.f,t=r.b();return o.i({...e.treemap,...t.treemap??{}})}addNode(e,t){this.nodes.push(e),this.levels.set(e,t),t===0&&(this.outerNodes.push(e),this.root??=e)}getRoot(){return{name:``,children:this.outerNodes}}addClass(e,t){let n=this.classes.get(e)??{id:e,styles:[],textStyles:[]},r=t.replace(/\\,/g,`§§§`).replace(/,/g,`;`).replace(/§§§/g,`,`).split(`;`);r&&r.forEach(e=>{c.n(e)&&(n?.textStyles?n.textStyles.push(e):n.textStyles=[e]),n?.styles?n.styles.push(e):n.styles=[e]}),this.classes.set(e,n)}getClasses(){return this.classes}getStylesForClass(e){return this.classes.get(e)?.styles??[]}clear(){r.a(),this.nodes=[],this.levels=new Map,this.outerNodes=[],this.classes=new Map,this.root=void 0}};function W(e){if(!e.length)return[];let t=[],n=[];return e.forEach(e=>{let r={name:e.name,children:e.type===`Leaf`?void 0:[]};for(r.classSelector=e?.classSelector,e?.cssCompiledStyles&&(r.cssCompiledStyles=e.cssCompiledStyles),e.type===`Leaf`&&e.value!==void 0&&(r.value=e.value);n.length>0&&n[n.length-1].level>=e.level;)n.pop();if(n.length===0)t.push(r);else{let e=n[n.length-1].node;e.children?e.children.push(r):e.children=[r]}e.type!==`Leaf`&&n.push({node:r,level:e.level})}),t}t.n(W,`buildHierarchy`);var G=t.n((e,n)=>{s.t(e,n);let r=[];for(let t of e.TreemapRows??[])t.$type===`ClassDefStatement`&&n.addClass(t.className??``,t.styleText??``);for(let t of e.TreemapRows??[]){let e=t.item;if(!e)continue;let i=t.indent?parseInt(t.indent):0,a=K(e),o=e.classSelector?n.getStylesForClass(e.classSelector):[],s=o.length>0?o:void 0,c={level:i,name:a,type:e.$type,value:e.value,classSelector:e.classSelector,cssCompiledStyles:s};r.push(c)}let i=W(r),a=t.n((e,t)=>{for(let r of e)n.addNode(r,t),r.children&&r.children.length>0&&a(r.children,t+1)},`addNodesRecursively`);a(i,0)},`populate`),K=t.n(e=>e.name?String(e.name):``,`getItemName`),q={parser:{yy:void 0},parse:t.n(async t=>{try{let r=await e.n(`treemap`,t);n.m.debug(`Treemap AST:`,r);let i=q.parser?.yy;if(!(i instanceof U))throw Error(`parser.parser?.yy was not a TreemapDB. This is due to a bug within Mermaid, please report this issue at https://github.com/mermaid-js/mermaid/issues.`);G(r,i)}catch(e){throw n.m.error(`Error parsing treemap:`,e),e}},`parse`)},J=10,Y=10,X=25,Z={draw:t.n((e,o,s,d)=>{let f=d.db,p=f.getConfig(),m=p.padding??J,h=f.getDiagramTitle(),g=f.getRoot(),{themeVariables:_}=r.b();if(!g)return;let v=h?30:0,y=u.f(o),b=p.nodeWidth?p.nodeWidth*Y:960,x=p.nodeHeight?p.nodeHeight*Y:500,S=b,C=x+v;y.attr(`viewBox`,`0 0 ${S} ${C}`),r.c(y,C,S,p.useMaxWidth);let w;try{let e=p.valueFormat||`,`;if(e===`$0,0`)w=t.n(e=>`$`+a.t(`,`)(e),`valueFormat`);else if(e.startsWith(`$`)&&e.includes(`,`)){let n=/\.\d+/.exec(e),r=n?n[0]:``;w=t.n(e=>`$`+a.t(`,`+r)(e),`valueFormat`)}else if(e.startsWith(`$`)){let n=e.substring(1);w=t.n(e=>`$`+a.t(n||``)(e),`valueFormat`)}else w=a.t(e)}catch(e){n.m.error(`Error creating format function:`,e),w=a.t(`,`)}let T=i.t().range([`transparent`,_.cScale0,_.cScale1,_.cScale2,_.cScale3,_.cScale4,_.cScale5,_.cScale6,_.cScale7,_.cScale8,_.cScale9,_.cScale10,_.cScale11]),D=i.t().range([`transparent`,_.cScalePeer0,_.cScalePeer1,_.cScalePeer2,_.cScalePeer3,_.cScalePeer4,_.cScalePeer5,_.cScalePeer6,_.cScalePeer7,_.cScalePeer8,_.cScalePeer9,_.cScalePeer10,_.cScalePeer11]),O=i.t().range([_.cScaleLabel0,_.cScaleLabel1,_.cScaleLabel2,_.cScaleLabel3,_.cScaleLabel4,_.cScaleLabel5,_.cScaleLabel6,_.cScaleLabel7,_.cScaleLabel8,_.cScaleLabel9,_.cScaleLabel10,_.cScaleLabel11]);h&&y.append(`text`).attr(`x`,S/2).attr(`y`,v/2).attr(`class`,`treemapTitle`).attr(`text-anchor`,`middle`).attr(`dominant-baseline`,`middle`).text(h);let k=y.append(`g`).attr(`transform`,`translate(0, ${v})`).attr(`class`,`treemapContainer`),A=E(g).sum(e=>e.value??0).sort((e,t)=>(t.value??0)-(e.value??0)),j=H().size([b,x]).paddingTop(e=>e.children&&e.children.length>0?X+Y:0).paddingInner(m).paddingLeft(e=>e.children&&e.children.length>0?Y:0).paddingRight(e=>e.children&&e.children.length>0?Y:0).paddingBottom(e=>e.children&&e.children.length>0?Y:0).round(!0)(A),M=j.descendants().filter(e=>e.children&&e.children.length>0),N=k.selectAll(`.treemapSection`).data(M).enter().append(`g`).attr(`class`,`treemapSection`).attr(`transform`,e=>`translate(${e.x0},${e.y0})`);N.append(`rect`).attr(`width`,e=>e.x1-e.x0).attr(`height`,X).attr(`class`,`treemapSectionHeader`).attr(`fill`,`none`).attr(`fill-opacity`,.6).attr(`stroke-width`,.6).attr(`style`,e=>e.depth===0?`display: none;`:``),N.append(`clipPath`).attr(`id`,(e,t)=>`clip-section-${o}-${t}`).append(`rect`).attr(`width`,e=>Math.max(0,e.x1-e.x0-12)).attr(`height`,X),N.append(`rect`).attr(`width`,e=>e.x1-e.x0).attr(`height`,e=>e.y1-e.y0).attr(`class`,(e,t)=>`treemapSection section${t}`).attr(`fill`,e=>T(e.data.name)).attr(`fill-opacity`,.6).attr(`stroke`,e=>D(e.data.name)).attr(`stroke-width`,2).attr(`stroke-opacity`,.4).attr(`style`,e=>{if(e.depth===0)return`display: none;`;let t=c.i({cssCompiledStyles:e.data.cssCompiledStyles});return t.nodeStyles+`;`+t.borderStyles.join(`;`)}),N.append(`text`).attr(`class`,`treemapSectionLabel`).attr(`x`,6).attr(`y`,X/2).attr(`dominant-baseline`,`middle`).text(e=>e.depth===0?``:e.data.name).attr(`font-weight`,`bold`).attr(`clip-path`,(e,t)=>`url(#clip-section-${o}-${t})`).attr(`style`,e=>e.depth===0?`display: none;`:`dominant-baseline: middle; font-size: 12px; fill:`+O(e.data.name)+`; white-space: nowrap; overflow: hidden; text-overflow: ellipsis;`+c.i({cssCompiledStyles:e.data.cssCompiledStyles}).labelStyles.replace(`color:`,`fill:`)).each(function(e){if(e.depth===0)return;let t=n.p(this),r=e.data.name;t.text(r);let i=e.x1-e.x0,a;a=p.showValues!==!1&&e.value?i-10-30-10-6:i-6-6;let o=Math.max(15,a),s=t.node();if(s.getComputedTextLength()>o){let e=r;for(;e.length>0;){if(e=r.substring(0,e.length-1),e.length===0){t.text(`...`),s.getComputedTextLength()>o&&t.text(``);break}if(t.text(e+`...`),s.getComputedTextLength()<=o)break}}}),p.showValues!==!1&&N.append(`text`).attr(`class`,`treemapSectionValue`).attr(`x`,e=>e.x1-e.x0-10).attr(`y`,X/2).attr(`text-anchor`,`end`).attr(`dominant-baseline`,`middle`).text(e=>e.value?w(e.value):``).attr(`font-style`,`italic`).attr(`style`,e=>e.depth===0?`display: none;`:`text-anchor: end; dominant-baseline: middle; font-size: 10px; fill:`+O(e.data.name)+`; white-space: nowrap; overflow: hidden; text-overflow: ellipsis;`+c.i({cssCompiledStyles:e.data.cssCompiledStyles}).labelStyles.replace(`color:`,`fill:`));let P=j.leaves(),F=P.length>20,I=F?16:38,L=F?14:28,R=F?4:8,z=F?4:6,B=F?2:4,V=F?8:10,U=F?1:2,W=k.selectAll(`.treemapLeafGroup`).data(P).enter().append(`g`).attr(`class`,(e,t)=>`treemapNode treemapLeafGroup leaf${t}${e.data.classSelector?` ${e.data.classSelector}`:``}x`).attr(`transform`,e=>`translate(${e.x0},${e.y0})`);W.append(`rect`).attr(`width`,e=>e.x1-e.x0).attr(`height`,e=>e.y1-e.y0).attr(`class`,`treemapLeaf`).attr(`fill`,e=>e.parent?T(e.parent.data.name):T(e.data.name)).attr(`style`,e=>c.i({cssCompiledStyles:e.data.cssCompiledStyles}).nodeStyles).attr(`fill-opacity`,.3).attr(`stroke`,e=>e.parent?T(e.parent.data.name):T(e.data.name)).attr(`stroke-width`,3),W.append(`clipPath`).attr(`id`,(e,t)=>`clip-${o}-${t}`).append(`rect`).attr(`width`,e=>Math.max(0,e.x1-e.x0-4)).attr(`height`,e=>Math.max(0,e.y1-e.y0-4)),W.append(`text`).attr(`class`,`treemapLabel`).attr(`x`,e=>(e.x1-e.x0)/2).attr(`y`,e=>(e.y1-e.y0)/2).attr(`style`,e=>`text-anchor: middle; dominant-baseline: middle; font-size: ${I}px;fill:`+O(e.data.name)+`;`+c.i({cssCompiledStyles:e.data.cssCompiledStyles}).labelStyles.replace(`color:`,`fill:`)).attr(`clip-path`,(e,t)=>`url(#clip-${o}-${t})`).text(e=>e.data.name).each(function(e){let t=n.p(this),r=e.x1-e.x0,i=e.y1-e.y0,a=t.node(),o=r-2*B,s=i-2*B;if(o<V||s<V){t.style(`display`,`none`);return}let c=parseInt(t.style(`font-size`),10),l=.6;for(;a.getComputedTextLength()>o&&c>R;)c--,t.style(`font-size`,`${c}px`);let u=Math.max(z,Math.min(L,Math.round(c*l))),d=c+U+u;for(;d>s&&c>R&&(c--,u=Math.max(z,Math.min(L,Math.round(c*l))),!(u<z&&c===R));)t.style(`font-size`,`${c}px`),d=c+U+u;t.style(`font-size`,`${c}px`),F?(c<R||s<R)&&t.style(`display`,`none`):(a.getComputedTextLength()>o||c<R||s<c)&&t.style(`display`,`none`)}),p.showValues!==!1&&W.append(`text`).attr(`class`,`treemapValue`).attr(`x`,e=>(e.x1-e.x0)/2).attr(`y`,function(e){return(e.y1-e.y0)/2}).attr(`style`,e=>`text-anchor: middle; dominant-baseline: hanging; font-size: ${L}px;fill:`+O(e.data.name)+`;`+c.i({cssCompiledStyles:e.data.cssCompiledStyles}).labelStyles.replace(`color:`,`fill:`)).attr(`clip-path`,(e,t)=>`url(#clip-${o}-${t})`).text(e=>e.value?w(e.value):``).each(function(e){let t=n.p(this),r=this.parentNode;if(!r){t.style(`display`,`none`);return}let i=n.p(r).select(`.treemapLabel`);if(i.empty()||i.style(`display`)===`none`){t.style(`display`,`none`);return}let a=parseFloat(i.style(`font-size`)),o=Math.max(z,Math.min(L,Math.round(a*.6)));t.style(`font-size`,`${o}px`);let s=(e.y1-e.y0)/2+a/2+U;t.attr(`y`,s);let c=e.x1-e.x0,l=e.y1-e.y0-4,u=c-2*B;t.node().getComputedTextLength()>u||s+o>l||o<z?t.style(`display`,`none`):t.style(`display`,null)});let G=p.diagramPadding??8;l.t(y,G,`flowchart`,p?.useMaxWidth||!1)},`draw`),getClasses:t.n(function(e,t){return t.db.getClasses()},`getClasses`)},Q={sectionStrokeColor:`black`,sectionStrokeWidth:`1`,sectionFillColor:`#efefef`,leafStrokeColor:`black`,leafStrokeWidth:`1`,leafFillColor:`#efefef`,labelFontSize:`12px`,valueFontSize:`10px`,titleFontSize:`14px`},$={parser:q,get db(){return new U},renderer:Z,styles:t.n(({treemap:e}={})=>{let t=r.D(),n=r.b(),i=o.i(t,n.themeVariables),a=o.i(Q,e),s=a.titleColor??i.titleColor,c=a.labelColor??i.textColor,l=a.valueColor??i.textColor;return`
|
|
1
|
+
const e=require("./mermaid-parser.core-BHBS1DqP.cjs"),t=require("./chunk-Y2CYZVJY-CnmLqFtv.cjs"),n=require("./src-D9o9TOtH.cjs"),r=require("./chunk-VPRB5NB3-CT204jN6.cjs"),i=require("./ordinal-Bm_chml2.cjs"),a=require("./defaultLocale-ybN1Vtvg.cjs"),o=require("./chunk-3YJQHVM4-ChvNe1M8.cjs"),s=require("./chunk-JWPE2WC7-Cs1kjq8S.cjs"),c=require("./chunk-4EA7E6EY-3OELTJ93.cjs"),l=require("./chunk-KQW6MTUR-C_XQxsme.cjs"),u=require("./mermaid.core-4MZ-Iwu7.cjs");function d(e){var t=0,n=e.children,r=n&&n.length;if(!r)t=1;else for(;--r>=0;)t+=n[r].value;e.value=t}function f(){return this.eachAfter(d)}function p(e,t){let n=-1;for(let r of this)e.call(t,r,++n,this);return this}function m(e,t){for(var n=this,r=[n],i,a,o=-1;n=r.pop();)if(e.call(t,n,++o,this),i=n.children)for(a=i.length-1;a>=0;--a)r.push(i[a]);return this}function h(e,t){for(var n=this,r=[n],i=[],a,o,s,c=-1;n=r.pop();)if(i.push(n),a=n.children)for(o=0,s=a.length;o<s;++o)r.push(a[o]);for(;n=i.pop();)e.call(t,n,++c,this);return this}function g(e,t){let n=-1;for(let r of this)if(e.call(t,r,++n,this))return r}function _(e){return this.eachAfter(function(t){for(var n=+e(t.data)||0,r=t.children,i=r&&r.length;--i>=0;)n+=r[i].value;t.value=n})}function v(e){return this.eachBefore(function(t){t.children&&t.children.sort(e)})}function y(e){for(var t=this,n=b(t,e),r=[t];t!==n;)t=t.parent,r.push(t);for(var i=r.length;e!==n;)r.splice(i,0,e),e=e.parent;return r}function b(e,t){if(e===t)return e;var n=e.ancestors(),r=t.ancestors(),i=null;for(e=n.pop(),t=r.pop();e===t;)i=e,e=n.pop(),t=r.pop();return i}function x(){for(var e=this,t=[e];e=e.parent;)t.push(e);return t}function S(){return Array.from(this)}function C(){var e=[];return this.eachBefore(function(t){t.children||e.push(t)}),e}function w(){var e=this,t=[];return e.each(function(n){n!==e&&t.push({source:n.parent,target:n})}),t}function*T(){var e=this,t,n=[e],r,i,a;do for(t=n.reverse(),n=[];e=t.pop();)if(yield e,r=e.children)for(i=0,a=r.length;i<a;++i)n.push(r[i]);while(n.length)}function E(e,t){e instanceof Map?(e=[void 0,e],t===void 0&&(t=k)):t===void 0&&(t=O);for(var n=new M(e),r,i=[n],a,o,s,c;r=i.pop();)if((o=t(r.data))&&(c=(o=Array.from(o)).length))for(r.children=o,s=c-1;s>=0;--s)i.push(a=o[s]=new M(o[s])),a.parent=r,a.depth=r.depth+1;return n.eachBefore(j)}function D(){return E(this).eachBefore(A)}function O(e){return e.children}function k(e){return Array.isArray(e)?e[1]:null}function A(e){e.data.value!==void 0&&(e.value=e.data.value),e.data=e.data.data}function j(e){var t=0;do e.height=t;while((e=e.parent)&&e.height<++t)}function M(e){this.data=e,this.depth=this.height=0,this.parent=null}M.prototype=E.prototype={constructor:M,count:f,each:p,eachAfter:h,eachBefore:m,find:g,sum:_,sort:v,path:y,ancestors:x,descendants:S,leaves:C,links:w,copy:D,[Symbol.iterator]:T};function N(e){if(typeof e!=`function`)throw Error();return e}function P(){return 0}function F(e){return function(){return e}}function I(e){e.x0=Math.round(e.x0),e.y0=Math.round(e.y0),e.x1=Math.round(e.x1),e.y1=Math.round(e.y1)}function L(e,t,n,r,i){for(var a=e.children,o,s=-1,c=a.length,l=e.value&&(r-t)/e.value;++s<c;)o=a[s],o.y0=n,o.y1=i,o.x0=t,o.x1=t+=o.value*l}function R(e,t,n,r,i){for(var a=e.children,o,s=-1,c=a.length,l=e.value&&(i-n)/e.value;++s<c;)o=a[s],o.x0=t,o.x1=r,o.y0=n,o.y1=n+=o.value*l}var z=(1+Math.sqrt(5))/2;function B(e,t,n,r,i,a){for(var o=[],s=t.children,c,l,u=0,d=0,f=s.length,p,m,h=t.value,g,_,v,y,b,x,S;u<f;){p=i-n,m=a-r;do g=s[d++].value;while(!g&&d<f);for(_=v=g,x=Math.max(m/p,p/m)/(h*e),S=g*g*x,b=Math.max(v/S,S/_);d<f;++d){if(g+=l=s[d].value,l<_&&(_=l),l>v&&(v=l),S=g*g*x,y=Math.max(v/S,S/_),y>b){g-=l;break}b=y}o.push(c={value:g,dice:p<m,children:s.slice(u,d)}),c.dice?L(c,n,r,i,h?r+=m*g/h:a):R(c,n,r,h?n+=p*g/h:i,a),h-=g,u=d}return o}var V=(function e(t){function n(e,n,r,i,a){B(t,e,n,r,i,a)}return n.ratio=function(t){return e((t=+t)>1?t:1)},n})(z);function H(){var e=V,t=!1,n=1,r=1,i=[0],a=P,o=P,s=P,c=P,l=P;function u(e){return e.x0=e.y0=0,e.x1=n,e.y1=r,e.eachBefore(d),i=[0],t&&e.eachBefore(I),e}function d(t){var n=i[t.depth],r=t.x0+n,u=t.y0+n,d=t.x1-n,f=t.y1-n;d<r&&(r=d=(r+d)/2),f<u&&(u=f=(u+f)/2),t.x0=r,t.y0=u,t.x1=d,t.y1=f,t.children&&(n=i[t.depth+1]=a(t)/2,r+=l(t)-n,u+=o(t)-n,d-=s(t)-n,f-=c(t)-n,d<r&&(r=d=(r+d)/2),f<u&&(u=f=(u+f)/2),e(t,r,u,d,f))}return u.round=function(e){return arguments.length?(t=!!e,u):t},u.size=function(e){return arguments.length?(n=+e[0],r=+e[1],u):[n,r]},u.tile=function(t){return arguments.length?(e=N(t),u):e},u.padding=function(e){return arguments.length?u.paddingInner(e).paddingOuter(e):u.paddingInner()},u.paddingInner=function(e){return arguments.length?(a=typeof e==`function`?e:F(+e),u):a},u.paddingOuter=function(e){return arguments.length?u.paddingTop(e).paddingRight(e).paddingBottom(e).paddingLeft(e):u.paddingTop()},u.paddingTop=function(e){return arguments.length?(o=typeof e==`function`?e:F(+e),u):o},u.paddingRight=function(e){return arguments.length?(s=typeof e==`function`?e:F(+e),u):s},u.paddingBottom=function(e){return arguments.length?(c=typeof e==`function`?e:F(+e),u):c},u.paddingLeft=function(e){return arguments.length?(l=typeof e==`function`?e:F(+e),u):l},u}var U=class{constructor(){this.nodes=[],this.levels=new Map,this.outerNodes=[],this.classes=new Map,this.setAccTitle=r.U,this.getAccTitle=r.v,this.setDiagramTitle=r.q,this.getDiagramTitle=r.C,this.getAccDescription=r._,this.setAccDescription=r.H}static{t.n(this,`TreeMapDB`)}getNodes(){return this.nodes}getConfig(){let e=r.f,t=r.y();return o.i({...e.treemap,...t.treemap??{}})}addNode(e,t){this.nodes.push(e),this.levels.set(e,t),t===0&&(this.outerNodes.push(e),this.root??=e)}getRoot(){return{name:``,children:this.outerNodes}}addClass(e,t){let n=this.classes.get(e)??{id:e,styles:[],textStyles:[]},r=t.replace(/\\,/g,`§§§`).replace(/,/g,`;`).replace(/§§§/g,`,`).split(`;`);r&&r.forEach(e=>{c.n(e)&&(n?.textStyles?n.textStyles.push(e):n.textStyles=[e]),n?.styles?n.styles.push(e):n.styles=[e]}),this.classes.set(e,n)}getClasses(){return this.classes}getStylesForClass(e){return this.classes.get(e)?.styles??[]}clear(){r.a(),this.nodes=[],this.levels=new Map,this.outerNodes=[],this.classes=new Map,this.root=void 0}};function W(e){if(!e.length)return[];let t=[],n=[];return e.forEach(e=>{let r={name:e.name,children:e.type===`Leaf`?void 0:[]};for(r.classSelector=e?.classSelector,e?.cssCompiledStyles&&(r.cssCompiledStyles=e.cssCompiledStyles),e.type===`Leaf`&&e.value!==void 0&&(r.value=e.value);n.length>0&&n[n.length-1].level>=e.level;)n.pop();if(n.length===0)t.push(r);else{let e=n[n.length-1].node;e.children?e.children.push(r):e.children=[r]}e.type!==`Leaf`&&n.push({node:r,level:e.level})}),t}t.n(W,`buildHierarchy`);var G=t.n((e,n)=>{s.t(e,n);let r=[];for(let t of e.TreemapRows??[])t.$type===`ClassDefStatement`&&n.addClass(t.className??``,t.styleText??``);for(let t of e.TreemapRows??[]){let e=t.item;if(!e)continue;let i=t.indent?parseInt(t.indent):0,a=K(e),o=e.classSelector?n.getStylesForClass(e.classSelector):[],s=o.length>0?o:void 0,c={level:i,name:a,type:e.$type,value:e.value,classSelector:e.classSelector,cssCompiledStyles:s};r.push(c)}let i=W(r),a=t.n((e,t)=>{for(let r of e)n.addNode(r,t),r.children&&r.children.length>0&&a(r.children,t+1)},`addNodesRecursively`);a(i,0)},`populate`),K=t.n(e=>e.name?String(e.name):``,`getItemName`),q={parser:{yy:void 0},parse:t.n(async t=>{try{let r=await e.n(`treemap`,t);n.m.debug(`Treemap AST:`,r);let i=q.parser?.yy;if(!(i instanceof U))throw Error(`parser.parser?.yy was not a TreemapDB. This is due to a bug within Mermaid, please report this issue at https://github.com/mermaid-js/mermaid/issues.`);G(r,i)}catch(e){throw n.m.error(`Error parsing treemap:`,e),e}},`parse`)},J=10,Y=10,X=25,Z={draw:t.n((e,o,s,d)=>{let f=d.db,p=f.getConfig(),m=p.padding??J,h=f.getDiagramTitle(),g=f.getRoot(),{themeVariables:_}=r.y();if(!g)return;let v=h?30:0,y=u.o(o),b=p.nodeWidth?p.nodeWidth*Y:960,x=p.nodeHeight?p.nodeHeight*Y:500,S=b,C=x+v;y.attr(`viewBox`,`0 0 ${S} ${C}`),r.c(y,C,S,p.useMaxWidth);let w;try{let e=p.valueFormat||`,`;if(e===`$0,0`)w=t.n(e=>`$`+a.t(`,`)(e),`valueFormat`);else if(e.startsWith(`$`)&&e.includes(`,`)){let n=/\.\d+/.exec(e),r=n?n[0]:``;w=t.n(e=>`$`+a.t(`,`+r)(e),`valueFormat`)}else if(e.startsWith(`$`)){let n=e.substring(1);w=t.n(e=>`$`+a.t(n||``)(e),`valueFormat`)}else w=a.t(e)}catch(e){n.m.error(`Error creating format function:`,e),w=a.t(`,`)}let T=i.t().range([`transparent`,_.cScale0,_.cScale1,_.cScale2,_.cScale3,_.cScale4,_.cScale5,_.cScale6,_.cScale7,_.cScale8,_.cScale9,_.cScale10,_.cScale11]),D=i.t().range([`transparent`,_.cScalePeer0,_.cScalePeer1,_.cScalePeer2,_.cScalePeer3,_.cScalePeer4,_.cScalePeer5,_.cScalePeer6,_.cScalePeer7,_.cScalePeer8,_.cScalePeer9,_.cScalePeer10,_.cScalePeer11]),O=i.t().range([_.cScaleLabel0,_.cScaleLabel1,_.cScaleLabel2,_.cScaleLabel3,_.cScaleLabel4,_.cScaleLabel5,_.cScaleLabel6,_.cScaleLabel7,_.cScaleLabel8,_.cScaleLabel9,_.cScaleLabel10,_.cScaleLabel11]);h&&y.append(`text`).attr(`x`,S/2).attr(`y`,v/2).attr(`class`,`treemapTitle`).attr(`text-anchor`,`middle`).attr(`dominant-baseline`,`middle`).text(h);let k=y.append(`g`).attr(`transform`,`translate(0, ${v})`).attr(`class`,`treemapContainer`),A=E(g).sum(e=>e.value??0).sort((e,t)=>(t.value??0)-(e.value??0)),j=H().size([b,x]).paddingTop(e=>e.children&&e.children.length>0?X+Y:0).paddingInner(m).paddingLeft(e=>e.children&&e.children.length>0?Y:0).paddingRight(e=>e.children&&e.children.length>0?Y:0).paddingBottom(e=>e.children&&e.children.length>0?Y:0).round(!0)(A),M=j.descendants().filter(e=>e.children&&e.children.length>0),N=k.selectAll(`.treemapSection`).data(M).enter().append(`g`).attr(`class`,`treemapSection`).attr(`transform`,e=>`translate(${e.x0},${e.y0})`);N.append(`rect`).attr(`width`,e=>e.x1-e.x0).attr(`height`,X).attr(`class`,`treemapSectionHeader`).attr(`fill`,`none`).attr(`fill-opacity`,.6).attr(`stroke-width`,.6).attr(`style`,e=>e.depth===0?`display: none;`:``),N.append(`clipPath`).attr(`id`,(e,t)=>`clip-section-${o}-${t}`).append(`rect`).attr(`width`,e=>Math.max(0,e.x1-e.x0-12)).attr(`height`,X),N.append(`rect`).attr(`width`,e=>e.x1-e.x0).attr(`height`,e=>e.y1-e.y0).attr(`class`,(e,t)=>`treemapSection section${t}`).attr(`fill`,e=>T(e.data.name)).attr(`fill-opacity`,.6).attr(`stroke`,e=>D(e.data.name)).attr(`stroke-width`,2).attr(`stroke-opacity`,.4).attr(`style`,e=>{if(e.depth===0)return`display: none;`;let t=c.i({cssCompiledStyles:e.data.cssCompiledStyles});return t.nodeStyles+`;`+t.borderStyles.join(`;`)}),N.append(`text`).attr(`class`,`treemapSectionLabel`).attr(`x`,6).attr(`y`,X/2).attr(`dominant-baseline`,`middle`).text(e=>e.depth===0?``:e.data.name).attr(`font-weight`,`bold`).attr(`clip-path`,(e,t)=>`url(#clip-section-${o}-${t})`).attr(`style`,e=>e.depth===0?`display: none;`:`dominant-baseline: middle; font-size: 12px; fill:`+O(e.data.name)+`; white-space: nowrap; overflow: hidden; text-overflow: ellipsis;`+c.i({cssCompiledStyles:e.data.cssCompiledStyles}).labelStyles.replace(`color:`,`fill:`)).each(function(e){if(e.depth===0)return;let t=n.p(this),r=e.data.name;t.text(r);let i=e.x1-e.x0,a;a=p.showValues!==!1&&e.value?i-10-30-10-6:i-6-6;let o=Math.max(15,a),s=t.node();if(s.getComputedTextLength()>o){let e=r;for(;e.length>0;){if(e=r.substring(0,e.length-1),e.length===0){t.text(`...`),s.getComputedTextLength()>o&&t.text(``);break}if(t.text(e+`...`),s.getComputedTextLength()<=o)break}}}),p.showValues!==!1&&N.append(`text`).attr(`class`,`treemapSectionValue`).attr(`x`,e=>e.x1-e.x0-10).attr(`y`,X/2).attr(`text-anchor`,`end`).attr(`dominant-baseline`,`middle`).text(e=>e.value?w(e.value):``).attr(`font-style`,`italic`).attr(`style`,e=>e.depth===0?`display: none;`:`text-anchor: end; dominant-baseline: middle; font-size: 10px; fill:`+O(e.data.name)+`; white-space: nowrap; overflow: hidden; text-overflow: ellipsis;`+c.i({cssCompiledStyles:e.data.cssCompiledStyles}).labelStyles.replace(`color:`,`fill:`));let P=j.leaves(),F=P.length>20,I=F?16:38,L=F?14:28,R=F?4:8,z=F?4:6,B=F?2:4,V=F?8:10,U=F?1:2,W=k.selectAll(`.treemapLeafGroup`).data(P).enter().append(`g`).attr(`class`,(e,t)=>`treemapNode treemapLeafGroup leaf${t}${e.data.classSelector?` ${e.data.classSelector}`:``}x`).attr(`transform`,e=>`translate(${e.x0},${e.y0})`);W.append(`rect`).attr(`width`,e=>e.x1-e.x0).attr(`height`,e=>e.y1-e.y0).attr(`class`,`treemapLeaf`).attr(`fill`,e=>e.parent?T(e.parent.data.name):T(e.data.name)).attr(`style`,e=>c.i({cssCompiledStyles:e.data.cssCompiledStyles}).nodeStyles).attr(`fill-opacity`,.3).attr(`stroke`,e=>e.parent?T(e.parent.data.name):T(e.data.name)).attr(`stroke-width`,3),W.append(`clipPath`).attr(`id`,(e,t)=>`clip-${o}-${t}`).append(`rect`).attr(`width`,e=>Math.max(0,e.x1-e.x0-4)).attr(`height`,e=>Math.max(0,e.y1-e.y0-4)),W.append(`text`).attr(`class`,`treemapLabel`).attr(`x`,e=>(e.x1-e.x0)/2).attr(`y`,e=>(e.y1-e.y0)/2).attr(`style`,e=>`text-anchor: middle; dominant-baseline: middle; font-size: ${I}px;fill:`+O(e.data.name)+`;`+c.i({cssCompiledStyles:e.data.cssCompiledStyles}).labelStyles.replace(`color:`,`fill:`)).attr(`clip-path`,(e,t)=>`url(#clip-${o}-${t})`).text(e=>e.data.name).each(function(e){let t=n.p(this),r=e.x1-e.x0,i=e.y1-e.y0,a=t.node(),o=r-2*B,s=i-2*B;if(o<V||s<V){t.style(`display`,`none`);return}let c=parseInt(t.style(`font-size`),10),l=.6;for(;a.getComputedTextLength()>o&&c>R;)c--,t.style(`font-size`,`${c}px`);let u=Math.max(z,Math.min(L,Math.round(c*l))),d=c+U+u;for(;d>s&&c>R&&(c--,u=Math.max(z,Math.min(L,Math.round(c*l))),!(u<z&&c===R));)t.style(`font-size`,`${c}px`),d=c+U+u;t.style(`font-size`,`${c}px`),F?(c<R||s<R)&&t.style(`display`,`none`):(a.getComputedTextLength()>o||c<R||s<c)&&t.style(`display`,`none`)}),p.showValues!==!1&&W.append(`text`).attr(`class`,`treemapValue`).attr(`x`,e=>(e.x1-e.x0)/2).attr(`y`,function(e){return(e.y1-e.y0)/2}).attr(`style`,e=>`text-anchor: middle; dominant-baseline: hanging; font-size: ${L}px;fill:`+O(e.data.name)+`;`+c.i({cssCompiledStyles:e.data.cssCompiledStyles}).labelStyles.replace(`color:`,`fill:`)).attr(`clip-path`,(e,t)=>`url(#clip-${o}-${t})`).text(e=>e.value?w(e.value):``).each(function(e){let t=n.p(this),r=this.parentNode;if(!r){t.style(`display`,`none`);return}let i=n.p(r).select(`.treemapLabel`);if(i.empty()||i.style(`display`)===`none`){t.style(`display`,`none`);return}let a=parseFloat(i.style(`font-size`)),o=Math.max(z,Math.min(L,Math.round(a*.6)));t.style(`font-size`,`${o}px`);let s=(e.y1-e.y0)/2+a/2+U;t.attr(`y`,s);let c=e.x1-e.x0,l=e.y1-e.y0-4,u=c-2*B;t.node().getComputedTextLength()>u||s+o>l||o<z?t.style(`display`,`none`):t.style(`display`,null)});let G=p.diagramPadding??8;l.t(y,G,`flowchart`,p?.useMaxWidth||!1)},`draw`),getClasses:t.n(function(e,t){return t.db.getClasses()},`getClasses`)},Q={sectionStrokeColor:`black`,sectionStrokeWidth:`1`,sectionFillColor:`#efefef`,leafStrokeColor:`black`,leafStrokeWidth:`1`,leafFillColor:`#efefef`,labelFontSize:`12px`,valueFontSize:`10px`,titleFontSize:`14px`},$={parser:q,get db(){return new U},renderer:Z,styles:t.n(({treemap:e}={})=>{let t=r.E(),n=r.y(),i=o.i(t,n.themeVariables),a=o.i(Q,e),s=a.titleColor??i.titleColor,c=a.labelColor??i.textColor,l=a.valueColor??i.textColor;return`
|
|
2
2
|
.treemapNode.section {
|
|
3
3
|
stroke: ${a.sectionStrokeColor};
|
|
4
4
|
stroke-width: ${a.sectionStrokeWidth};
|
|
@@ -1,14 +1,14 @@
|
|
|
1
|
-
import { n as e } from "./mermaid-parser.core-
|
|
1
|
+
import { n as e } from "./mermaid-parser.core-CI12FMcX.js";
|
|
2
2
|
import { n as t } from "./chunk-Y2CYZVJY-CwsV_8W4.js";
|
|
3
3
|
import { m as n, p as r } from "./src-Dkp7vqs8.js";
|
|
4
|
-
import {
|
|
4
|
+
import { C as i, E as a, H as o, U as s, _ as c, a as l, c as u, f as d, q as f, v as p, y as m } from "./chunk-VPRB5NB3-DJh7spRO.js";
|
|
5
5
|
import { t as h } from "./ordinal-D3SPD7Kk.js";
|
|
6
6
|
import { t as g } from "./defaultLocale-B4ncmkvI.js";
|
|
7
|
-
import { i as _ } from "./chunk-
|
|
7
|
+
import { i as _ } from "./chunk-3YJQHVM4-BNbfg-7y.js";
|
|
8
8
|
import { t as v } from "./chunk-JWPE2WC7-B_J6qwQL.js";
|
|
9
|
-
import { i as y, n as b } from "./chunk-
|
|
10
|
-
import { t as x } from "./chunk-
|
|
11
|
-
import {
|
|
9
|
+
import { i as y, n as b } from "./chunk-4EA7E6EY-B5P7n2an.js";
|
|
10
|
+
import { t as x } from "./chunk-KQW6MTUR-c0XOjr_c.js";
|
|
11
|
+
import { o as S } from "./mermaid.core-BJkDCzqA.js";
|
|
12
12
|
//#region ../node_modules/d3-hierarchy/src/hierarchy/count.js
|
|
13
13
|
function C(e) {
|
|
14
14
|
var t = 0, n = e.children, r = n && n.length;
|
|
@@ -253,10 +253,10 @@ function oe() {
|
|
|
253
253
|
}, u;
|
|
254
254
|
}
|
|
255
255
|
//#endregion
|
|
256
|
-
//#region ../node_modules/mermaid/dist/chunks/mermaid.core/diagram-
|
|
256
|
+
//#region ../node_modules/mermaid/dist/chunks/mermaid.core/diagram-OVF4WLC6.mjs
|
|
257
257
|
var J = class {
|
|
258
258
|
constructor() {
|
|
259
|
-
this.nodes = [], this.levels = /* @__PURE__ */ new Map(), this.outerNodes = [], this.classes = /* @__PURE__ */ new Map(), this.setAccTitle = s, this.getAccTitle =
|
|
259
|
+
this.nodes = [], this.levels = /* @__PURE__ */ new Map(), this.outerNodes = [], this.classes = /* @__PURE__ */ new Map(), this.setAccTitle = s, this.getAccTitle = p, this.setDiagramTitle = f, this.getDiagramTitle = i, this.getAccDescription = c, this.setAccDescription = o;
|
|
260
260
|
}
|
|
261
261
|
static {
|
|
262
262
|
t(this, "TreeMapDB");
|
|
@@ -265,7 +265,7 @@ var J = class {
|
|
|
265
265
|
return this.nodes;
|
|
266
266
|
}
|
|
267
267
|
getConfig() {
|
|
268
|
-
let e = d, t =
|
|
268
|
+
let e = d, t = m();
|
|
269
269
|
return _({
|
|
270
270
|
...e.treemap,
|
|
271
271
|
...t.treemap ?? {}
|
|
@@ -297,7 +297,7 @@ var J = class {
|
|
|
297
297
|
return this.classes.get(e)?.styles ?? [];
|
|
298
298
|
}
|
|
299
299
|
clear() {
|
|
300
|
-
|
|
300
|
+
l(), this.nodes = [], this.levels = /* @__PURE__ */ new Map(), this.outerNodes = [], this.classes = /* @__PURE__ */ new Map(), this.root = void 0;
|
|
301
301
|
}
|
|
302
302
|
};
|
|
303
303
|
function Y(e) {
|
|
@@ -357,9 +357,9 @@ var se = /* @__PURE__ */ t((e, n) => {
|
|
|
357
357
|
}, "parse")
|
|
358
358
|
}, Z = 10, Q = 10, $ = 25, le = {
|
|
359
359
|
draw: /* @__PURE__ */ t((e, i, a, o) => {
|
|
360
|
-
let s = o.db, c = s.getConfig(),
|
|
361
|
-
if (!
|
|
362
|
-
let _ =
|
|
360
|
+
let s = o.db, c = s.getConfig(), l = c.padding ?? Z, d = s.getDiagramTitle(), f = s.getRoot(), { themeVariables: p } = m();
|
|
361
|
+
if (!f) return;
|
|
362
|
+
let _ = d ? 30 : 0, v = S(i), b = c.nodeWidth ? c.nodeWidth * Q : 960, C = c.nodeHeight ? c.nodeHeight * Q : 500, w = b, T = C + _;
|
|
363
363
|
v.attr("viewBox", `0 0 ${w} ${T}`), u(v, T, w, c.useMaxWidth);
|
|
364
364
|
let E;
|
|
365
365
|
try {
|
|
@@ -377,48 +377,48 @@ var se = /* @__PURE__ */ t((e, n) => {
|
|
|
377
377
|
}
|
|
378
378
|
let D = h().range([
|
|
379
379
|
"transparent",
|
|
380
|
-
|
|
381
|
-
|
|
382
|
-
|
|
383
|
-
|
|
384
|
-
|
|
385
|
-
|
|
386
|
-
|
|
387
|
-
|
|
388
|
-
|
|
389
|
-
|
|
390
|
-
|
|
391
|
-
|
|
380
|
+
p.cScale0,
|
|
381
|
+
p.cScale1,
|
|
382
|
+
p.cScale2,
|
|
383
|
+
p.cScale3,
|
|
384
|
+
p.cScale4,
|
|
385
|
+
p.cScale5,
|
|
386
|
+
p.cScale6,
|
|
387
|
+
p.cScale7,
|
|
388
|
+
p.cScale8,
|
|
389
|
+
p.cScale9,
|
|
390
|
+
p.cScale10,
|
|
391
|
+
p.cScale11
|
|
392
392
|
]), O = h().range([
|
|
393
393
|
"transparent",
|
|
394
|
-
|
|
395
|
-
|
|
396
|
-
|
|
397
|
-
|
|
398
|
-
|
|
399
|
-
|
|
400
|
-
|
|
401
|
-
|
|
402
|
-
|
|
403
|
-
|
|
404
|
-
|
|
405
|
-
|
|
394
|
+
p.cScalePeer0,
|
|
395
|
+
p.cScalePeer1,
|
|
396
|
+
p.cScalePeer2,
|
|
397
|
+
p.cScalePeer3,
|
|
398
|
+
p.cScalePeer4,
|
|
399
|
+
p.cScalePeer5,
|
|
400
|
+
p.cScalePeer6,
|
|
401
|
+
p.cScalePeer7,
|
|
402
|
+
p.cScalePeer8,
|
|
403
|
+
p.cScalePeer9,
|
|
404
|
+
p.cScalePeer10,
|
|
405
|
+
p.cScalePeer11
|
|
406
406
|
]), k = h().range([
|
|
407
|
-
|
|
408
|
-
|
|
409
|
-
|
|
410
|
-
|
|
411
|
-
|
|
412
|
-
|
|
413
|
-
|
|
414
|
-
|
|
415
|
-
|
|
416
|
-
|
|
417
|
-
|
|
418
|
-
|
|
407
|
+
p.cScaleLabel0,
|
|
408
|
+
p.cScaleLabel1,
|
|
409
|
+
p.cScaleLabel2,
|
|
410
|
+
p.cScaleLabel3,
|
|
411
|
+
p.cScaleLabel4,
|
|
412
|
+
p.cScaleLabel5,
|
|
413
|
+
p.cScaleLabel6,
|
|
414
|
+
p.cScaleLabel7,
|
|
415
|
+
p.cScaleLabel8,
|
|
416
|
+
p.cScaleLabel9,
|
|
417
|
+
p.cScaleLabel10,
|
|
418
|
+
p.cScaleLabel11
|
|
419
419
|
]);
|
|
420
|
-
|
|
421
|
-
let A = v.append("g").attr("transform", `translate(0, ${_})`).attr("class", "treemapContainer"), j = R(
|
|
420
|
+
d && v.append("text").attr("x", w / 2).attr("y", _ / 2).attr("class", "treemapTitle").attr("text-anchor", "middle").attr("dominant-baseline", "middle").text(d);
|
|
421
|
+
let A = v.append("g").attr("transform", `translate(0, ${_})`).attr("class", "treemapContainer"), j = R(f).sum((e) => e.value ?? 0).sort((e, t) => (t.value ?? 0) - (e.value ?? 0)), M = oe().size([b, C]).paddingTop((e) => e.children && e.children.length > 0 ? $ + Q : 0).paddingInner(l).paddingLeft((e) => e.children && e.children.length > 0 ? Q : 0).paddingRight((e) => e.children && e.children.length > 0 ? Q : 0).paddingBottom((e) => e.children && e.children.length > 0 ? Q : 0).round(!0)(j), N = M.descendants().filter((e) => e.children && e.children.length > 0), P = A.selectAll(".treemapSection").data(N).enter().append("g").attr("class", "treemapSection").attr("transform", (e) => `translate(${e.x0},${e.y0})`);
|
|
422
422
|
P.append("rect").attr("width", (e) => e.x1 - e.x0).attr("height", $).attr("class", "treemapSectionHeader").attr("fill", "none").attr("fill-opacity", .6).attr("stroke-width", .6).attr("style", (e) => e.depth === 0 ? "display: none;" : ""), P.append("clipPath").attr("id", (e, t) => `clip-section-${i}-${t}`).append("rect").attr("width", (e) => Math.max(0, e.x1 - e.x0 - 12)).attr("height", $), P.append("rect").attr("width", (e) => e.x1 - e.x0).attr("height", (e) => e.y1 - e.y0).attr("class", (e, t) => `treemapSection section${t}`).attr("fill", (e) => D(e.data.name)).attr("fill-opacity", .6).attr("stroke", (e) => O(e.data.name)).attr("stroke-width", 2).attr("stroke-opacity", .4).attr("style", (e) => {
|
|
423
423
|
if (e.depth === 0) return "display: none;";
|
|
424
424
|
let t = y({ cssCompiledStyles: e.data.cssCompiledStyles });
|
|
@@ -496,29 +496,29 @@ var se = /* @__PURE__ */ t((e, n) => {
|
|
|
496
496
|
},
|
|
497
497
|
renderer: le,
|
|
498
498
|
styles: /* @__PURE__ */ t(({ treemap: e } = {}) => {
|
|
499
|
-
let t =
|
|
499
|
+
let t = a(), n = m(), r = _(t, n.themeVariables), i = _(ue, e), o = i.titleColor ?? r.titleColor, s = i.labelColor ?? r.textColor, c = i.valueColor ?? r.textColor;
|
|
500
500
|
return `
|
|
501
501
|
.treemapNode.section {
|
|
502
|
-
stroke: ${
|
|
503
|
-
stroke-width: ${
|
|
504
|
-
fill: ${
|
|
502
|
+
stroke: ${i.sectionStrokeColor};
|
|
503
|
+
stroke-width: ${i.sectionStrokeWidth};
|
|
504
|
+
fill: ${i.sectionFillColor};
|
|
505
505
|
}
|
|
506
506
|
.treemapNode.leaf {
|
|
507
|
-
stroke: ${
|
|
508
|
-
stroke-width: ${
|
|
509
|
-
fill: ${
|
|
507
|
+
stroke: ${i.leafStrokeColor};
|
|
508
|
+
stroke-width: ${i.leafStrokeWidth};
|
|
509
|
+
fill: ${i.leafFillColor};
|
|
510
510
|
}
|
|
511
511
|
.treemapLabel {
|
|
512
512
|
fill: ${s};
|
|
513
|
-
font-size: ${
|
|
513
|
+
font-size: ${i.labelFontSize};
|
|
514
514
|
}
|
|
515
515
|
.treemapValue {
|
|
516
516
|
fill: ${c};
|
|
517
|
-
font-size: ${
|
|
517
|
+
font-size: ${i.valueFontSize};
|
|
518
518
|
}
|
|
519
519
|
.treemapTitle {
|
|
520
520
|
fill: ${o};
|
|
521
|
-
font-size: ${
|
|
521
|
+
font-size: ${i.titleFontSize};
|
|
522
522
|
}
|
|
523
523
|
`;
|
|
524
524
|
}, "getStyles")
|
|
@@ -1,13 +1,13 @@
|
|
|
1
|
-
import { n as e } from "./mermaid-parser.core-
|
|
1
|
+
import { n as e } from "./mermaid-parser.core-CI12FMcX.js";
|
|
2
2
|
import { n as t } from "./chunk-Y2CYZVJY-CwsV_8W4.js";
|
|
3
3
|
import { m as n } from "./src-Dkp7vqs8.js";
|
|
4
|
-
import {
|
|
5
|
-
import { i as m } from "./chunk-
|
|
4
|
+
import { C as r, H as i, U as a, _ as o, a as s, c, f as l, q as u, v as d, y as f, z as p } from "./chunk-VPRB5NB3-DJh7spRO.js";
|
|
5
|
+
import { i as m } from "./chunk-3YJQHVM4-BNbfg-7y.js";
|
|
6
6
|
import { t as h } from "./chunk-JWPE2WC7-B_J6qwQL.js";
|
|
7
|
-
import { r as g, t as _ } from "./chunk-
|
|
7
|
+
import { r as g, t as _ } from "./chunk-HJ2JQQFS-CgYTXthn.js";
|
|
8
8
|
import { t as v } from "./chunk-2Q5K7J3B-DqJF2oYF.js";
|
|
9
|
-
import {
|
|
10
|
-
//#region ../node_modules/mermaid/dist/chunks/mermaid.core/diagram-
|
|
9
|
+
import { o as y } from "./mermaid.core-BJkDCzqA.js";
|
|
10
|
+
//#region ../node_modules/mermaid/dist/chunks/mermaid.core/diagram-PFPMY2P6.mjs
|
|
11
11
|
var b = /[─━│┃└┗├┣]/, x = /[└┗├┣]/, S = /[─━]/, C = /^[\s│┃]+$/, w = /^\s*(title[\t ]|accTitle[\t ]*:|accDescr[\t ]*[:{])/, T = /^\s*%%/, E = " ";
|
|
12
12
|
function D(e) {
|
|
13
13
|
return e.some((e) => b.test(e));
|
|
@@ -94,7 +94,7 @@ var j = new v(() => ({
|
|
|
94
94
|
children: []
|
|
95
95
|
}]
|
|
96
96
|
})), M = /* @__PURE__ */ t(() => {
|
|
97
|
-
j.reset(),
|
|
97
|
+
j.reset(), s();
|
|
98
98
|
}, "clear"), N = /* @__PURE__ */ t(() => j.records.stack[0], "getRoot"), P = /* @__PURE__ */ t(() => j.records.cnt, "getCount"), F = l.treeView, I = {
|
|
99
99
|
clear: M,
|
|
100
100
|
addNode: /* @__PURE__ */ t((e, t, n, r, i, a) => {
|
|
@@ -113,20 +113,20 @@ var j = new v(() => ({
|
|
|
113
113
|
}, "addNode"),
|
|
114
114
|
getRoot: N,
|
|
115
115
|
getCount: P,
|
|
116
|
-
getConfig: /* @__PURE__ */ t(() => m(F,
|
|
117
|
-
getAccTitle:
|
|
118
|
-
getAccDescription:
|
|
119
|
-
getDiagramTitle:
|
|
120
|
-
setAccDescription:
|
|
116
|
+
getConfig: /* @__PURE__ */ t(() => m(F, f().treeView), "getConfig"),
|
|
117
|
+
getAccTitle: d,
|
|
118
|
+
getAccDescription: o,
|
|
119
|
+
getDiagramTitle: r,
|
|
120
|
+
setAccDescription: i,
|
|
121
121
|
setAccTitle: a,
|
|
122
|
-
setDiagramTitle:
|
|
122
|
+
setDiagramTitle: u
|
|
123
123
|
}, L = /* @__PURE__ */ t((e) => {
|
|
124
124
|
h(e, I);
|
|
125
125
|
for (let t of e.nodes) {
|
|
126
126
|
let e = typeof t.indent == "number" ? t.indent : 0, n = t.name, r = n.endsWith("/");
|
|
127
127
|
r && (n = n.slice(0, -1));
|
|
128
|
-
let i = r ? "directory" : "file", a = t.classAnnotation || void 0, o = t.iconAnnotation,
|
|
129
|
-
I.addNode(e, n, i, a,
|
|
128
|
+
let i = r ? "directory" : "file", a = t.classAnnotation || void 0, o = t.iconAnnotation, s = o === void 0 ? void 0 : o || "none", c = t.descAnnotation || void 0, l = c ? p(c, f()) : void 0;
|
|
129
|
+
I.addNode(e, n, i, a, s, l);
|
|
130
130
|
}
|
|
131
131
|
}, "populate"), R = { parse: /* @__PURE__ */ t(async (t) => {
|
|
132
132
|
let { text: r, lineMap: i } = A(t);
|
|
@@ -1,7 +1,7 @@
|
|
|
1
|
-
const e=require("./mermaid-parser.core-
|
|
1
|
+
const e=require("./mermaid-parser.core-BHBS1DqP.cjs"),t=require("./chunk-Y2CYZVJY-CnmLqFtv.cjs"),n=require("./src-D9o9TOtH.cjs"),r=require("./chunk-VPRB5NB3-CT204jN6.cjs"),i=require("./chunk-3YJQHVM4-ChvNe1M8.cjs"),a=require("./chunk-JWPE2WC7-Cs1kjq8S.cjs"),o=require("./chunk-HJ2JQQFS-DnrogIdt.cjs"),s=require("./chunk-2Q5K7J3B-B8v9mTdK.cjs"),c=require("./mermaid.core-4MZ-Iwu7.cjs");var l=/[─━│┃└┗├┣]/,u=/[└┗├┣]/,d=/[─━]/,f=/^[\s│┃]+$/,p=/^\s*(title[\t ]|accTitle[\t ]*:|accDescr[\t ]*[:{])/,m=/^\s*%%/,h=` `;function g(e){return e.some(e=>l.test(e))}t.n(g,`isBoxDrawingFormat`);function _(e){for(let t of e){let e=u.exec(t);if(e?.index&&e.index>0)return e.index}return 4}t.n(_,`inferSegmentWidth`);function v(e,t){return e.replace(/\bline\s+(\d+)\b/gi,(e,n)=>{let r=parseInt(n,10),i=t.get(r);return i?`line ${i}`:e})}t.n(v,`remapErrorLines`);function y(e){let t=e.split(`
|
|
2
2
|
`),n=new Map,r=-1;for(let[e,n]of t.entries())if(n.trim()===`treeView-beta`){r=e;break}if(r===-1)return{text:e,lineMap:n};let i=[];for(let e=r+1;e<t.length;e++){let n=t[e];n.trim()===``||m.test(n)||p.test(n)||f.test(n)||i.push(n.replace(/\t/g,` `))}if(!g(i))return{text:e,lineMap:n};let a=_(i),o=[],s=0;for(let e=0;e<=r;e++)o.push(t[e]),s++,n.set(s,e+1);for(let e=r+1;e<t.length;e++){let r=t[e],i=r.trim(),c=e+1;if(i===``){o.push(r),s++,n.set(s,c);continue}if(m.test(r)){o.push(r),s++,n.set(s,c);continue}if(p.test(r)){o.push(r),s++,n.set(s,c);continue}if(f.test(r))continue;let g=r.replace(/\t/g,` `),_=u.exec(g);if(_?.index!==void 0){let e=_.index,t=Math.round(e/a)+1,r=e+1;for(;r<g.length&&d.test(g[r]);)r++;for(;r<g.length&&g[r]===` `;)r++;let i=g.slice(r).trimEnd();if(!i)throw Error(`Line ${c}: Empty node \u2014 expected a filename or directory name after the box-drawing prefix`);let l=h.repeat(t);o.push(l+i),s++,n.set(s,c)}else if(/^[\s─━│┃└┗├┣]+$/.test(g))continue;else if(l.test(g))o.push(r),s++,n.set(s,c);else if(/^\s+/.test(g))throw Error(`Line ${c}: Unexpected indentation without box-drawing characters. In box-drawing format, use \u251C\u2500\u2500 or \u2514\u2500\u2500 prefixes for indented nodes.`);else o.push(r),s++,n.set(s,c)}return{text:o.join(`
|
|
3
|
-
`),lineMap:n}}t.n(y,`preprocessBoxDrawing`);var b=new s.t(()=>({cnt:1,stack:[{id:0,level:-1,name:`/`,nodeType:`directory`,children:[]}]})),x=t.n(()=>{b.reset(),r.a()},`clear`),S=t.n(()=>b.records.stack[0],`getRoot`),C=t.n(()=>b.records.cnt,`getCount`),w=r.f.treeView,T={clear:x,addNode:t.n((e,t,n,r,i,a)=>{for(;e<=b.records.stack[b.records.stack.length-1].level;)b.records.stack.pop();let o={id:b.records.cnt++,level:e,name:t,nodeType:n,icon:i,cssClass:r,description:a,children:[]};b.records.stack[b.records.stack.length-1].children.push(o),b.records.stack.push(o)},`addNode`),getRoot:S,getCount:C,getConfig:t.n(()=>i.i(w,r.
|
|
4
|
-
`+e);let o=a.db,s=o.getRoot(),l=o.getConfig(),u=c.
|
|
3
|
+
`),lineMap:n}}t.n(y,`preprocessBoxDrawing`);var b=new s.t(()=>({cnt:1,stack:[{id:0,level:-1,name:`/`,nodeType:`directory`,children:[]}]})),x=t.n(()=>{b.reset(),r.a()},`clear`),S=t.n(()=>b.records.stack[0],`getRoot`),C=t.n(()=>b.records.cnt,`getCount`),w=r.f.treeView,T={clear:x,addNode:t.n((e,t,n,r,i,a)=>{for(;e<=b.records.stack[b.records.stack.length-1].level;)b.records.stack.pop();let o={id:b.records.cnt++,level:e,name:t,nodeType:n,icon:i,cssClass:r,description:a,children:[]};b.records.stack[b.records.stack.length-1].children.push(o),b.records.stack.push(o)},`addNode`),getRoot:S,getCount:C,getConfig:t.n(()=>i.i(w,r.y().treeView),`getConfig`),getAccTitle:r.v,getAccDescription:r._,getDiagramTitle:r.C,setAccDescription:r.H,setAccTitle:r.U,setDiagramTitle:r.q},E=t.n(e=>{a.t(e,T);for(let t of e.nodes){let e=typeof t.indent==`number`?t.indent:0,n=t.name,i=n.endsWith(`/`);i&&(n=n.slice(0,-1));let a=i?`directory`:`file`,o=t.classAnnotation||void 0,s=t.iconAnnotation,c=s===void 0?void 0:s||`none`,l=t.descAnnotation||void 0,u=l?r.z(l,r.y()):void 0;T.addNode(e,n,a,o,c,u)}},`populate`),D={parse:t.n(async t=>{let{text:r,lineMap:i}=y(t);try{let t=await e.n(`treeView`,r);n.m.debug(t),E(t)}catch(e){throw i.size>0&&e instanceof Error&&(e.message=v(e.message,i)),e}},`parse`)},O={prefix:`mermaid-treeview`,height:24,width:24,icons:{folder:{body:`<path fill="currentColor" d="M10.59 4.59A2 2 0 0 0 9.17 4H4a2 2 0 0 0-2 2v12a2 2 0 0 0 2 2h16a2 2 0 0 0 2-2V8a2 2 0 0 0-2-2h-7.17z"/>`},file:{body:`<path fill="currentColor" fill-rule="evenodd" d="M6 2a2 2 0 0 0-2 2v16a2 2 0 0 0 2 2h12a2 2 0 0 0 2-2V8.83a2 2 0 0 0-.59-1.42l-4.82-4.82A2 2 0 0 0 13.17 2H6Zm7.5 1.9l4.6 4.6h-3.6a1 1 0 0 1-1-1V3.9Z" clip-rule="evenodd"/>`}}};function k(e,t){let n=t?.filenameIcons?.[e];if(n)return n;let r=e.lastIndexOf(`.`);if(r>0){let n=e.substring(r).toLowerCase(),i=t?.extensionIcons;return i?.[n]??i?.[n.slice(1)]}}t.n(k,`detectIcon`);function A(e,t){return e.includes(`:`)?e:e in O.icons||!t?`${O.prefix}:${e}`:`${t}:${e}`}t.n(A,`qualifyIcon`);function j(e,t){if(e.icon!==`none`){if(e.icon)return A(e.icon,t.defaultIconPack);if(t.showIcons){if(e.nodeType===`file`){let n=k(e.name,t);if(n===`none`)return;if(n)return A(n,t.defaultIconPack)}return`${O.prefix}:${e.nodeType===`directory`?`folder`:`file`}`}}}t.n(j,`getNodeIcon`),o.r([{name:O.prefix,icons:O}]);var M=14,N=4,P=16,F=t.n(async(e,n)=>{let r=[],i=t.n(e=>{let t=j(e,n);t&&r.push({icon:t,node:e}),e.children.forEach(i)},`collect`);i(e);let a=await Promise.all(r.map(async({icon:e,node:t})=>({id:t.id,svg:await o.t(e,{height:M,width:M})})));return new Map(a.map(({id:e,svg:t})=>[e,t]))},`resolveNodeIcons`),I=t.n((e,t,n,r,i,a)=>{let o=r.append(`g`),s=`treeView-node-label`;n.nodeType===`directory`&&(s+=` treeView-node-dir`),n.cssClass&&(s+=` ${n.cssClass}`);let c=M+N,l=j(n,i),u=l!==void 0;l&&o.append(`g`).attr(`class`,`treeView-node-icon`).attr(`transform`,`translate(${e+i.paddingX}, ${t+i.paddingY})`).html(a.get(n.id)??``);let d=o.append(`text`).text(n.name).attr(`dominant-baseline`,`middle`).attr(`class`,s),{height:f,width:p}=d.node().getBBox(),m=f+i.paddingY*2,h=e+i.paddingX+(u?c:0);d.attr(`x`,h),d.attr(`y`,t+m/2);let g=h+p;return n.BBox={x:e,y:t,width:p+i.paddingX*2+(u?c:0),height:m},n.cssClass?.split(/\s+/).includes(`highlight`)&&o.insert(`rect`,`:first-child`).attr(`x`,e).attr(`y`,t+1).attr(`width`,0).attr(`height`,m-2).attr(`rx`,3).attr(`class`,`treeView-highlight-bg`),{node:n,nodeGroup:o,labelRightEdge:g,centerY:t+m/2}},`positionLabel`),L=t.n((e,t,n,r,i,a)=>e.append(`line`).attr(`x1`,t).attr(`y1`,n).attr(`x2`,r).attr(`y2`,i).attr(`stroke-width`,a).attr(`class`,`treeView-node-line`),`positionLine`),R=t.n((e,n,r,i)=>{let a=0,o=0,s=[],c=t.n((e,t,n,r)=>{let c=r*(n.rowIndent+n.paddingX),l=I(c,a,t,e,n,i);s.push(l);let{height:u,width:d}=t.BBox;L(e,c-n.rowIndent,a+u/2,c,a+u/2,n.lineThickness),o=Math.max(o,c+d),a+=u},`drawNode`),l=t.n((t,n=0)=>{c(e,t,r,n),t.children.forEach(e=>{l(e,n+1)});let{x:i,y:a,height:o}=t.BBox;if(t.children.length){let{y:n,height:s}=t.children[t.children.length-1].BBox;L(e,i+r.paddingX,a+o,i+r.paddingX,n+s/2+r.lineThickness/2,r.lineThickness)}},`processNode`);l(n);let u=s.filter(e=>e.node.description);if(u.length>0){let e=Math.max(...s.map(e=>e.labelRightEdge))+P;for(let t of u){let n=t.nodeGroup.append(`text`).text(t.node.description).attr(`dominant-baseline`,`middle`).attr(`class`,`treeView-node-description`).attr(`x`,e).attr(`y`,t.centerY).node().getBBox();o=Math.max(o,e+n.width+r.paddingX)}}for(let e of s)if(e.node.cssClass?.split(/\s+/).includes(`highlight`)){let t=e.nodeGroup.select(`.treeView-highlight-bg`);if(!t.empty()){let n=o-e.node.BBox.x+8;t.attr(`width`,n),o=Math.max(o,e.node.BBox.x+n+2)}}return{totalHeight:a,totalWidth:o}},`drawTree`),z={draw:t.n(async(e,t,i,a)=>{n.m.debug(`Rendering treeView diagram
|
|
4
|
+
`+e);let o=a.db,s=o.getRoot(),l=o.getConfig(),u=c.o(t),d=u.append(`g`);d.attr(`class`,`tree-view`);let{totalHeight:f,totalWidth:p}=R(d,s,l,await F(s,l));u.attr(`viewBox`,`-${l.lineThickness/2} 0 ${p} ${f}`),r.c(u,f,p,l.useMaxWidth)},`draw`)},B={labelFontSize:`16px`,labelColor:`black`,lineColor:`black`,iconColor:`#546e7a`,descriptionColor:`#6a9955`,highlightBg:`rgba(255, 193, 7, 0.15)`,highlightStroke:`#ffc107`},V={db:T,renderer:z,parser:D,styles:t.n(({treeView:e})=>{let{labelFontSize:t,labelColor:n,lineColor:r,iconColor:a,descriptionColor:o,highlightBg:s,highlightStroke:c}=i.i(B,e);return`
|
|
5
5
|
.treeView-node-label {
|
|
6
6
|
font-size: ${t};
|
|
7
7
|
fill: ${n};
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
const e=require("./mermaid-parser.core-
|
|
1
|
+
const e=require("./mermaid-parser.core-BHBS1DqP.cjs"),t=require("./chunk-Y2CYZVJY-CnmLqFtv.cjs"),n=require("./src-D9o9TOtH.cjs"),r=require("./chunk-VPRB5NB3-CT204jN6.cjs"),i=require("./chunk-3YJQHVM4-ChvNe1M8.cjs"),a=require("./chunk-JWPE2WC7-Cs1kjq8S.cjs"),o=require("./mermaid.core-4MZ-Iwu7.cjs");var s=r.f.packet,c=class{constructor(){this.packet=[],this.setAccTitle=r.U,this.getAccTitle=r.v,this.setDiagramTitle=r.q,this.getDiagramTitle=r.C,this.getAccDescription=r._,this.setAccDescription=r.H}static{t.n(this,`PacketDB`)}getConfig(){let e=i.i({...s,...r.y().packet});return e.showBits&&(e.paddingY+=10),e}getPacket(){return this.packet}pushWord(e){e.length>0&&this.packet.push(e)}clear(){r.a(),this.packet=[]}},l=1e4,u=t.n((e,t)=>{a.t(e,t);let r=-1,i=[],o=1,{bitsPerRow:s}=t.getConfig();for(let{start:a,end:c,bits:u,label:f}of e.blocks){if(a!==void 0&&c!==void 0&&c<a)throw Error(`Packet block ${a} - ${c} is invalid. End must be greater than start.`);if(a??=r+1,a!==r+1)throw Error(`Packet block ${a} - ${c??a} is not contiguous. It should start from ${r+1}.`);if(u===0)throw Error(`Packet block ${a} is invalid. Cannot have a zero bit field.`);for(c??=a+(u??1)-1,u??=c-a+1,r=c,n.m.debug(`Packet block ${a} - ${r} with label ${f}`);i.length<=s+1&&t.getPacket().length<l;){let[e,n]=d({start:a,end:c,bits:u,label:f},o,s);if(i.push(e),e.end+1===o*s&&(t.pushWord(i),i=[],o++),!n)break;({start:a,end:c,bits:u,label:f}=n)}}t.pushWord(i)},`populate`),d=t.n((e,t,n)=>{if(e.start===void 0)throw Error(`start should have been set during first phase`);if(e.end===void 0)throw Error(`end should have been set during first phase`);if(e.start>e.end)throw Error(`Block start ${e.start} is greater than block end ${e.end}.`);if(e.end+1<=t*n)return[e,void 0];let r=t*n-1,i=t*n;return[{start:e.start,end:r,label:e.label,bits:r-e.start},{start:i,end:e.end,label:e.label,bits:e.end-i}]},`getNextFittingBlock`),f={parser:{yy:void 0},parse:t.n(async t=>{let r=await e.n(`packet`,t),i=f.parser?.yy;if(!(i instanceof c))throw Error(`parser.parser?.yy was not a PacketDB. This is due to a bug within Mermaid, please report this issue at https://github.com/mermaid-js/mermaid/issues.`);n.m.debug(r),u(r,i)},`parse`)},p=t.n((e,t,n,i)=>{let a=i.db,s=a.getConfig(),{rowHeight:c,paddingY:l,bitWidth:u,bitsPerRow:d}=s,f=a.getPacket(),p=a.getDiagramTitle(),h=c+l,g=h*(f.length+1)-(p?0:c),_=u*d+2,v=o.o(t);v.attr(`viewBox`,`0 0 ${_} ${g}`),r.c(v,g,_,s.useMaxWidth);for(let[e,t]of f.entries())m(v,t,e,s);v.append(`text`).text(p).attr(`x`,_/2).attr(`y`,g-h/2).attr(`dominant-baseline`,`middle`).attr(`text-anchor`,`middle`).attr(`class`,`packetTitle`)},`draw`),m=t.n((e,t,n,{rowHeight:r,paddingX:i,paddingY:a,bitWidth:o,bitsPerRow:s,showBits:c,bitOrder:l})=>{let u=e.append(`g`),d=n*(r+a)+a,f=l===`descending`;for(let e of t){let t=e.end-e.start+1,n=e.start%s,a=(f?s-n-t:n)*o+1,l=t*o-i;if(u.append(`rect`).attr(`x`,a).attr(`y`,d).attr(`width`,l).attr(`height`,r).attr(`class`,`packetBlock`),u.append(`text`).attr(`x`,a+l/2).attr(`y`,d+r/2).attr(`class`,`packetLabel`).attr(`dominant-baseline`,`middle`).attr(`text-anchor`,`middle`).text(e.label),!c)continue;let[p,m]=f?[e.end,e.start]:[e.start,e.end],h=t===1,g=d-2;u.append(`text`).attr(`x`,a+(h?l/2:0)).attr(`y`,g).attr(`class`,`packetByte start`).attr(`dominant-baseline`,`auto`).attr(`text-anchor`,h?`middle`:`start`).text(p),h||u.append(`text`).attr(`x`,a+l).attr(`y`,g).attr(`class`,`packetByte end`).attr(`dominant-baseline`,`auto`).attr(`text-anchor`,`end`).text(m)}},`drawWord`),h={draw:p},g={byteFontSize:`10px`,startByteColor:`black`,endByteColor:`black`,labelColor:`black`,labelFontSize:`12px`,titleColor:`black`,titleFontSize:`14px`,blockStrokeColor:`black`,blockStrokeWidth:`1`,blockFillColor:`#efefef`},_={parser:f,get db(){return new c},renderer:h,styles:t.n(({packet:e}={})=>{let t=i.i(g,e);return`
|
|
2
2
|
.packetByte {
|
|
3
3
|
font-size: ${t.byteFontSize};
|
|
4
4
|
}
|
|
@@ -1,14 +1,14 @@
|
|
|
1
|
-
import { n as e } from "./mermaid-parser.core-
|
|
1
|
+
import { n as e } from "./mermaid-parser.core-CI12FMcX.js";
|
|
2
2
|
import { n as t } from "./chunk-Y2CYZVJY-CwsV_8W4.js";
|
|
3
3
|
import { m as n } from "./src-Dkp7vqs8.js";
|
|
4
|
-
import {
|
|
5
|
-
import { i as p } from "./chunk-
|
|
4
|
+
import { C as r, H as i, U as a, _ as o, a as s, c, f as l, q as u, v as d, y as f } from "./chunk-VPRB5NB3-DJh7spRO.js";
|
|
5
|
+
import { i as p } from "./chunk-3YJQHVM4-BNbfg-7y.js";
|
|
6
6
|
import { t as m } from "./chunk-JWPE2WC7-B_J6qwQL.js";
|
|
7
|
-
import {
|
|
8
|
-
//#region ../node_modules/mermaid/dist/chunks/mermaid.core/diagram-
|
|
7
|
+
import { o as h } from "./mermaid.core-BJkDCzqA.js";
|
|
8
|
+
//#region ../node_modules/mermaid/dist/chunks/mermaid.core/diagram-UMYRVEAY.mjs
|
|
9
9
|
var g = l.packet, _ = class {
|
|
10
10
|
constructor() {
|
|
11
|
-
this.packet = [], this.setAccTitle = a, this.getAccTitle =
|
|
11
|
+
this.packet = [], this.setAccTitle = a, this.getAccTitle = d, this.setDiagramTitle = u, this.getDiagramTitle = r, this.getAccDescription = o, this.setAccDescription = i;
|
|
12
12
|
}
|
|
13
13
|
static {
|
|
14
14
|
t(this, "PacketDB");
|
|
@@ -16,7 +16,7 @@ var g = l.packet, _ = class {
|
|
|
16
16
|
getConfig() {
|
|
17
17
|
let e = p({
|
|
18
18
|
...g,
|
|
19
|
-
...
|
|
19
|
+
...f().packet
|
|
20
20
|
});
|
|
21
21
|
return e.showBits && (e.paddingY += 10), e;
|
|
22
22
|
}
|
|
@@ -27,7 +27,7 @@ var g = l.packet, _ = class {
|
|
|
27
27
|
e.length > 0 && this.packet.push(e);
|
|
28
28
|
}
|
|
29
29
|
clear() {
|
|
30
|
-
|
|
30
|
+
s(), this.packet = [];
|
|
31
31
|
}
|
|
32
32
|
}, v = 1e4, y = /* @__PURE__ */ t((e, t) => {
|
|
33
33
|
m(e, t);
|
|
@@ -77,13 +77,13 @@ var g = l.packet, _ = class {
|
|
|
77
77
|
_.attr("viewBox", `0 0 ${g} ${m}`), c(_, m, g, a.useMaxWidth);
|
|
78
78
|
for (let [e, t] of d.entries()) C(_, t, e, a);
|
|
79
79
|
_.append("text").text(f).attr("x", g / 2).attr("y", m - p / 2).attr("dominant-baseline", "middle").attr("text-anchor", "middle").attr("class", "packetTitle");
|
|
80
|
-
}, "draw"), C = /* @__PURE__ */ t((e, t, n, { rowHeight: r, paddingX: i, paddingY: a, bitWidth: o, bitsPerRow: s, showBits: c }) => {
|
|
81
|
-
let
|
|
80
|
+
}, "draw"), C = /* @__PURE__ */ t((e, t, n, { rowHeight: r, paddingX: i, paddingY: a, bitWidth: o, bitsPerRow: s, showBits: c, bitOrder: l }) => {
|
|
81
|
+
let u = e.append("g"), d = n * (r + a) + a, f = l === "descending";
|
|
82
82
|
for (let e of t) {
|
|
83
|
-
let t = e.
|
|
84
|
-
if (
|
|
85
|
-
let
|
|
86
|
-
|
|
83
|
+
let t = e.end - e.start + 1, n = e.start % s, a = (f ? s - n - t : n) * o + 1, l = t * o - i;
|
|
84
|
+
if (u.append("rect").attr("x", a).attr("y", d).attr("width", l).attr("height", r).attr("class", "packetBlock"), u.append("text").attr("x", a + l / 2).attr("y", d + r / 2).attr("class", "packetLabel").attr("dominant-baseline", "middle").attr("text-anchor", "middle").text(e.label), !c) continue;
|
|
85
|
+
let [p, m] = f ? [e.end, e.start] : [e.start, e.end], h = t === 1, g = d - 2;
|
|
86
|
+
u.append("text").attr("x", a + (h ? l / 2 : 0)).attr("y", g).attr("class", "packetByte start").attr("dominant-baseline", "auto").attr("text-anchor", h ? "middle" : "start").text(p), h || u.append("text").attr("x", a + l).attr("y", g).attr("class", "packetByte end").attr("dominant-baseline", "auto").attr("text-anchor", "end").text(m);
|
|
87
87
|
}
|
|
88
88
|
}, "drawWord"), w = { draw: S }, T = {
|
|
89
89
|
byteFontSize: "10px",
|
|
@@ -1,11 +1,11 @@
|
|
|
1
|
-
import { n as e } from "./mermaid-parser.core-
|
|
1
|
+
import { n as e } from "./mermaid-parser.core-CI12FMcX.js";
|
|
2
2
|
import { n as t } from "./chunk-Y2CYZVJY-CwsV_8W4.js";
|
|
3
3
|
import { m as n } from "./src-Dkp7vqs8.js";
|
|
4
|
-
import {
|
|
5
|
-
import { i as m } from "./chunk-
|
|
4
|
+
import { C as r, E as i, H as a, U as o, _ as s, a as c, c as l, f as u, q as d, v as f, y as p } from "./chunk-VPRB5NB3-DJh7spRO.js";
|
|
5
|
+
import { i as m } from "./chunk-3YJQHVM4-BNbfg-7y.js";
|
|
6
6
|
import { t as h } from "./chunk-JWPE2WC7-B_J6qwQL.js";
|
|
7
|
-
import {
|
|
8
|
-
//#region ../node_modules/mermaid/dist/chunks/mermaid.core/diagram-
|
|
7
|
+
import { o as g } from "./mermaid.core-BJkDCzqA.js";
|
|
8
|
+
//#region ../node_modules/mermaid/dist/chunks/mermaid.core/diagram-YEKJPTXX.mjs
|
|
9
9
|
var _ = {
|
|
10
10
|
showLegend: !0,
|
|
11
11
|
ticks: 5,
|
|
@@ -18,7 +18,7 @@ var _ = {
|
|
|
18
18
|
options: _
|
|
19
19
|
}, b = structuredClone(y), x = u.radar, S = /* @__PURE__ */ t(() => m({
|
|
20
20
|
...x,
|
|
21
|
-
...
|
|
21
|
+
...p().radar
|
|
22
22
|
}), "getConfig"), C = /* @__PURE__ */ t(() => b.axes, "getAxes"), w = /* @__PURE__ */ t(() => b.curves, "getCurves"), T = /* @__PURE__ */ t(() => b.options, "getOptions"), E = /* @__PURE__ */ t((e) => {
|
|
23
23
|
b.axes = e.map((e) => ({
|
|
24
24
|
name: e.name,
|
|
@@ -57,14 +57,14 @@ var _ = {
|
|
|
57
57
|
}, "setOptions"),
|
|
58
58
|
getConfig: S,
|
|
59
59
|
clear: /* @__PURE__ */ t(() => {
|
|
60
|
-
|
|
60
|
+
c(), b = structuredClone(y);
|
|
61
61
|
}, "clear"),
|
|
62
62
|
setAccTitle: o,
|
|
63
|
-
getAccTitle:
|
|
64
|
-
setDiagramTitle:
|
|
65
|
-
getDiagramTitle:
|
|
66
|
-
getAccDescription:
|
|
67
|
-
setAccDescription:
|
|
63
|
+
getAccTitle: f,
|
|
64
|
+
setDiagramTitle: d,
|
|
65
|
+
getDiagramTitle: r,
|
|
66
|
+
getAccDescription: s,
|
|
67
|
+
setAccDescription: a
|
|
68
68
|
}, A = /* @__PURE__ */ t((e) => {
|
|
69
69
|
h(e, k);
|
|
70
70
|
let { axes: t, curves: n, options: r } = e;
|
|
@@ -169,10 +169,10 @@ var B = { draw: M }, V = /* @__PURE__ */ t((e, t) => {
|
|
|
169
169
|
}
|
|
170
170
|
return n;
|
|
171
171
|
}, "genIndexStyles"), H = /* @__PURE__ */ t((e) => {
|
|
172
|
-
let t =
|
|
172
|
+
let t = i(), n = p(), r = m(t, n.themeVariables);
|
|
173
173
|
return {
|
|
174
|
-
themeVariables:
|
|
175
|
-
radarOptions: m(
|
|
174
|
+
themeVariables: r,
|
|
175
|
+
radarOptions: m(r.radar, e)
|
|
176
176
|
};
|
|
177
177
|
}, "buildRadarStyleOptions"), U = {
|
|
178
178
|
parser: j,
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
const e=require("./mermaid-parser.core-
|
|
1
|
+
const e=require("./mermaid-parser.core-BHBS1DqP.cjs"),t=require("./chunk-Y2CYZVJY-CnmLqFtv.cjs"),n=require("./src-D9o9TOtH.cjs"),r=require("./chunk-VPRB5NB3-CT204jN6.cjs"),i=require("./chunk-3YJQHVM4-ChvNe1M8.cjs"),a=require("./chunk-JWPE2WC7-Cs1kjq8S.cjs"),o=require("./mermaid.core-4MZ-Iwu7.cjs");var s={showLegend:!0,ticks:5,max:null,min:0,graticule:`circle`},c=32,l={axes:[],curves:[],options:s},u=structuredClone(l),d=r.f.radar,f=t.n(()=>i.i({...d,...r.y().radar}),`getConfig`),p=t.n(()=>u.axes,`getAxes`),m=t.n(()=>u.curves,`getCurves`),h=t.n(()=>u.options,`getOptions`),g=t.n(e=>{u.axes=e.map(e=>({name:e.name,label:e.label??e.name}))},`setAxes`),_=t.n(e=>{u.curves=e.map(e=>({name:e.name,label:e.label??e.name,entries:v(e.entries)}))},`setCurves`),v=t.n(e=>{if(e[0].axis==null)return e.map(e=>e.value);let t=p();if(t.length===0)throw Error(`Axes must be populated before curves for reference entries`);return t.map(t=>{let n=e.find(e=>e.axis?.$refText===t.name);if(n===void 0)throw Error(`Missing entry for axis `+t.label);return n.value})},`computeCurveEntries`),y={getAxes:p,getCurves:m,getOptions:h,setAxes:g,setCurves:_,setOptions:t.n(e=>{let t=e.reduce((e,t)=>(e[t.name]=t,e),{});u.options={showLegend:t.showLegend?.value??s.showLegend,ticks:t.ticks?.value??s.ticks,max:t.max?.value??s.max,min:t.min?.value??s.min,graticule:t.graticule?.value??s.graticule},u.options.ticks>c&&(n.m.warn(`Radar diagram ticks (${u.options.ticks}) exceeds maximum allowed (${c}). Using ${c} instead.`),u.options.ticks=c)},`setOptions`),getConfig:f,clear:t.n(()=>{r.a(),u=structuredClone(l)},`clear`),setAccTitle:r.U,getAccTitle:r.v,setDiagramTitle:r.q,getDiagramTitle:r.C,getAccDescription:r._,setAccDescription:r.H},b=t.n(e=>{a.t(e,y);let{axes:t,curves:n,options:r}=e;y.setAxes(t),y.setCurves(n),y.setOptions(r)},`populate`),x={parse:t.n(async t=>{let r=await e.n(`radar`,t);n.m.debug(r),b(r)},`parse`)},S=t.n((e,t,n,r)=>{let i=r.db,a=i.getAxes(),s=i.getCurves(),c=i.getOptions(),l=i.getConfig(),u=i.getDiagramTitle(),d=C(o.o(t),l),f=c.max??Math.max(...s.map(e=>Math.max(...e.entries))),p=c.min,m=Math.min(l.width,l.height)/2;w(d,a,m,c.ticks,c.graticule),T(d,a,m,l),E(d,a,s,p,f,c.graticule,l),k(d,s,c.showLegend,l),d.append(`text`).attr(`class`,`radarTitle`).text(u).attr(`x`,0).attr(`y`,-l.height/2-l.marginTop)},`draw`),C=t.n((e,t)=>{let n=t.width+t.marginLeft+t.marginRight,i=t.height+t.marginTop+t.marginBottom,a={x:t.marginLeft+t.width/2,y:t.marginTop+t.height/2};return r.c(e,i,n,t.useMaxWidth??!0),e.attr(`viewBox`,`0 0 ${n} ${i}`).attr(`overflow`,`visible`),e.append(`g`).attr(`transform`,`translate(${a.x}, ${a.y})`)},`drawFrame`),w=t.n((e,t,n,r,i)=>{if(i===`circle`)for(let t=0;t<r;t++){let i=n*(t+1)/r;e.append(`circle`).attr(`r`,i).attr(`class`,`radarGraticule`)}else if(i===`polygon`){let i=t.length;for(let a=0;a<r;a++){let o=n*(a+1)/r,s=t.map((e,t)=>{let n=2*t*Math.PI/i-Math.PI/2;return`${o*Math.cos(n)},${o*Math.sin(n)}`}).join(` `);e.append(`polygon`).attr(`points`,s).attr(`class`,`radarGraticule`)}}},`drawGraticule`),T=t.n((e,t,n,r)=>{let i=t.length;for(let a=0;a<i;a++){let o=t[a].label,s=2*a*Math.PI/i-Math.PI/2,c=Math.cos(s),l=Math.sin(s);e.append(`line`).attr(`x1`,0).attr(`y1`,0).attr(`x2`,n*r.axisScaleFactor*c).attr(`y2`,n*r.axisScaleFactor*l).attr(`class`,`radarAxisLine`);let u=c>.01?`start`:c<-.01?`end`:`middle`,d=l>.01?`hanging`:l<-.01?`auto`:`central`;e.append(`text`).text(o).attr(`x`,n*r.axisLabelFactor*c+4*c).attr(`y`,n*r.axisLabelFactor*l+4*l).attr(`text-anchor`,u).attr(`dominant-baseline`,d).attr(`class`,`radarAxisLabel`)}},`drawAxes`);function E(e,t,n,r,i,a,o){let s=t.length,c=Math.min(o.width,o.height)/2;n.forEach((t,n)=>{if(t.entries.length!==s)return;let l=t.entries.map((e,t)=>{let n=2*Math.PI*t/s-Math.PI/2,a=D(e,r,i,c);return{x:a*Math.cos(n),y:a*Math.sin(n)}});a===`circle`?e.append(`path`).attr(`d`,O(l,o.curveTension)).attr(`class`,`radarCurve-${n}`):a===`polygon`&&e.append(`polygon`).attr(`points`,l.map(e=>`${e.x},${e.y}`).join(` `)).attr(`class`,`radarCurve-${n}`)})}t.n(E,`drawCurves`);function D(e,t,n,r){return r*(Math.min(Math.max(e,t),n)-t)/(n-t)}t.n(D,`relativeRadius`);function O(e,t){let n=e.length,r=`M${e[0].x},${e[0].y}`;for(let i=0;i<n;i++){let a=e[(i-1+n)%n],o=e[i],s=e[(i+1)%n],c=e[(i+2)%n],l={x:o.x+(s.x-a.x)*t,y:o.y+(s.y-a.y)*t},u={x:s.x-(c.x-o.x)*t,y:s.y-(c.y-o.y)*t};r+=` C${l.x},${l.y} ${u.x},${u.y} ${s.x},${s.y}`}return`${r} Z`}t.n(O,`closedRoundCurve`);function k(e,t,n,r){if(!n)return;let i=(r.width/2+r.marginRight)*3/4,a=-(r.height/2+r.marginTop)*3/4;t.forEach((t,n)=>{let r=e.append(`g`).attr(`transform`,`translate(${i}, ${a+n*20})`);r.append(`rect`).attr(`width`,12).attr(`height`,12).attr(`class`,`radarLegendBox-${n}`),r.append(`text`).attr(`x`,16).attr(`y`,0).attr(`class`,`radarLegendText`).text(t.label)})}t.n(k,`drawLegend`);var A={draw:S},j=t.n((e,t)=>{let n=``;for(let r=0;r<e.THEME_COLOR_LIMIT;r++){let i=e[`cScale${r}`];n+=`
|
|
2
2
|
.radarCurve-${r} {
|
|
3
3
|
color: ${i};
|
|
4
4
|
fill: ${i};
|
|
@@ -11,7 +11,7 @@ const e=require("./mermaid-parser.core-CBiDgMLi.cjs"),t=require("./chunk-Y2CYZVJ
|
|
|
11
11
|
fill-opacity: ${t.curveOpacity};
|
|
12
12
|
stroke: ${i};
|
|
13
13
|
}
|
|
14
|
-
`}return n},`genIndexStyles`),M=t.n(e=>{let t=r.
|
|
14
|
+
`}return n},`genIndexStyles`),M=t.n(e=>{let t=r.E(),n=r.y(),a=i.i(t,n.themeVariables);return{themeVariables:a,radarOptions:i.i(a.radar,e)}},`buildRadarStyleOptions`),N={parser:x,db:y,renderer:A,styles:t.n(({radar:e}={})=>{let{themeVariables:t,radarOptions:n}=M(e);return`
|
|
15
15
|
.radarTitle {
|
|
16
16
|
font-size: ${t.fontSize};
|
|
17
17
|
color: ${t.titleColor};
|
|
@@ -0,0 +1,3 @@
|
|
|
1
|
+
const e=require("./chunk-NGNAAXSQ-kHtfTQLE.cjs"),t=require("./mermaid-parser.core-BHBS1DqP.cjs"),n=require("./chunk-Y2CYZVJY-CnmLqFtv.cjs"),r=require("./src-D9o9TOtH.cjs"),i=require("./chunk-VPRB5NB3-CT204jN6.cjs"),a=require("./chunk-3YJQHVM4-ChvNe1M8.cjs"),o=require("./chunk-JWPE2WC7-Cs1kjq8S.cjs");var s=`position frame`,c=`frame positioned`,l=`position relation`,u=`relation positioned`,d=n.n(function(e){r.m.debug(`options str`,e)},`setOptions`),f=n.n(function(){return{}},`getOptions`),p=n.n(function(){m(),i.a()},`clear`);function m(){_={}}n.n(m,`reset`);var h=i.f.eventmodeling,g=n.n(()=>a.i({...h,...i.y().eventmodeling}),`getConfig`),_={};function v(){let e=S,{ast:t}=_,n=x();if(!t)throw Error(`No data for EventModel`);return t.frames.forEach((i,a)=>{let o=k(i,t.dataEntities,n);e=G(e,{$kind:s,index:a,frame:i,textProps:o});let c;I(i)?(r.m.debug(`source frame`,i.sourceFrames),c=t.frames.filter(e=>i.sourceFrames.some(t=>t.$refText===e.name)),c.forEach(t=>{e=G(e,{$kind:l,index:a,frame:i,sourceFrame:t})})):e=G(e,{$kind:l,index:a,frame:i})}),e={...e,sortedSwimlanesArray:N(e.swimlanes)},e}n.n(v,`getState`);function y(e){_.ast=void 0;let t=new Set;for(let n of e.frames){if(t.has(n.name)){let e=n.$cstNode?.range.start.line,t=e===void 0?``:` on line ${e+1}`;throw Error(`Duplicate event modeling frame ID "${n.name}"${t}`)}t.add(n.name)}_.ast=e}n.n(y,`setAst`);var b={swimlaneMinHeight:70,swimlanePadding:15,swimlaneGap:10,boxPadding:10,boxOverlap:90,boxDefaultY:0,boxMinWidth:80,boxMaxWidth:450,boxMinHeight:80,boxMaxHeight:750,contentStartX:250,textMaxWidth:430,boxTextFontWeight:`bold`,boxTextPadding:10,swimlaneTextFontWeight:`bold`,labelUiAutomation:`UI/Automation`,labelUiAutomationPrefix:`UI/A: `,labelCommandReadModel:`Command/Read Model`,labelCommandReadModelPrefix:`C/RM: `,labelEvents:`Events`,labelEventsPrefix:`Stream: `};function x(){return b}n.n(x,`getDiagramProps`);var S={boxes:[],swimlanes:{},relations:[],maxR:0,sortedSwimlanesArray:[]};function C(e){let t=e.split(`.`);if(t.length===2)return t[0]}n.n(C,`extractNamespace`);function w(e){let t=e.split(`.`);return t.length===2?t[1]:e}n.n(w,`extractName`);function T(e,t){if(!(!t||t.length===0))return Object.values(e).find(e=>e.namespace===t)}n.n(T,`findSwimlaneByNamespace`);function E(e,t,n){return Math.max(t,...Object.keys(e).filter(e=>{let r=Number.parseInt(e);return r>t&&r<n}).map(e=>Number.parseInt(e)))+1}n.n(E,`findNextAvailableIndex`);function D(e,t){let n=C(e.entityIdentifier),r=T(t,n);switch(e.modelEntityType){case`ui`:case`pcr`:case`processor`:return r?{index:r.index,label:r.namespace||b.labelUiAutomation}:n?{index:E(t,0,100),label:b.labelUiAutomationPrefix+n}:{index:0,label:b.labelUiAutomation};case`rmo`:case`readmodel`:case`cmd`:case`command`:return r?{index:r.index,label:r.namespace||b.labelCommandReadModel}:n?{index:E(t,100,200),label:b.labelCommandReadModelPrefix+n}:{index:100,label:b.labelCommandReadModel};default:return r?{index:r.index,label:r.namespace||b.labelEvents}:n?{index:E(t,200,300),label:b.labelEventsPrefix+n}:{index:200,label:b.labelEvents}}}n.n(D,`calculateSwimlaneProps`);function O(e){let{themeVariables:t}=i.y();switch(e.modelEntityType){case`ui`:return{fill:t.emUiFill??`white`,stroke:t.emUiStroke??`#dbdada`};case`pcr`:case`processor`:return{fill:t.emProcessorFill??`#edb3f6`,stroke:t.emProcessorStroke??`#b88cbf`};case`rmo`:case`readmodel`:return{fill:t.emReadModelFill??`#d3f1a2`,stroke:t.emReadModelStroke??`#a3b732`};case`cmd`:case`command`:return{fill:t.emCommandFill??`#bcd6fe`,stroke:t.emCommandStroke??`#679ac3`};case`evt`:case`event`:return{fill:t.emEventFill??`#ffb778`,stroke:t.emEventStroke??`#c19a0f`};default:return{fill:`red`,stroke:`black`}}}n.n(O,`calculateEntityVisualProps`);function k(e,t,n){let o=i.y(),s=i.z(w(e.entityIdentifier)??``,o),c,l={fontSize:16,fontWeight:700,fontFamily:`"trebuchet ms", verdana, arial, sans-serif`,joinWith:`<br/>`},u=`<b>${a.v(s,n.textMaxWidth,l)}</b>`;if(e.dataInlineValue&&(c=e.dataInlineValue,c=c.substring(c.indexOf(`{`)+1),c=c.substring(0,c.lastIndexOf(`}`)-1),c=i.z(c,o),c=a.v(c,n.textMaxWidth,l),c=c.replaceAll(` `,` `)),e.dataReference){let r=t.find(t=>t.name===e.dataReference?.$refText);r&&(c=r.dataBlockValue,c=c.substring(c.indexOf(`{
|
|
2
|
+
`)+2),c=c.substring(0,c.lastIndexOf(`}`)-1),c=i.z(c,o),c=a.v(c,n.textMaxWidth,l),c=c.replaceAll(` `,` `),c+=`<br/>`)}let d=c!==void 0;d&&(u+=`<br/><br/><code style="text-align: left; display: block;max-width:${n.textMaxWidth}px">${c}</code>`);let f={fontSize:l.fontSize,fontWeight:l.fontWeight,fontFamily:l.fontFamily},p=a.t(u,f),m=d?p.width/3:p.width,h={content:u,width:m,height:p.height};return r.m.debug(`[${e.name}] ${e.entityIdentifier} text`,h),h}n.n(k,`calculateTextProps`);function A(e,t){let n=t,r=O(n.frame),i={width:n.textProps.width+2*b.boxTextPadding,height:n.textProps.height+2*b.boxTextPadding};return[{$kind:c,frame:n.frame,index:n.index,visual:r,dimension:i,textProps:n.textProps}]}n.n(A,`decidePositionFrame`);function j(e,t,n){return t===void 0?b.contentStartX:t.index===e.index&&e.r?e.r+b.boxPadding:n===void 0?b.contentStartX:n.r-b.boxOverlap+b.boxPadding}n.n(j,`calculateX`);function M(e,t){let n=[...e.map(e=>e.r),t];return Math.max(...n)}n.n(M,`calculateMaxRight`);function N(e){return Object.values(e).sort((e,t)=>e.index-t.index)}n.n(N,`sortedSwimlanesArray`);function P(e,t){let n=t,r=D(n.frame,e.swimlanes),i;i=r.index in e.swimlanes?e.swimlanes[r.index]:{index:r.index,label:r.label,r:0,y:r.index*b.swimlaneMinHeight+b.swimlaneGap,height:b.swimlaneMinHeight,maxHeight:b.swimlaneMinHeight};let a=e.boxes.length>0?e.boxes[e.boxes.length-1]:void 0,o=e.previousSwimlaneNumber===void 0?void 0:e.swimlanes[e.previousSwimlaneNumber],s={width:Math.max(b.boxMinWidth,Math.min(b.boxMaxWidth,n.dimension.width))+2*b.boxPadding,height:Math.max(b.boxMinHeight,Math.min(b.boxMaxHeight,n.dimension.height))+2*b.boxPadding},c=j(i,o,a),l=c+s.width+b.boxPadding,u=M(Object.values(e.swimlanes),l);i.r=c+s.width,i.maxHeight=Math.max(i.maxHeight,s.height),i.height=Math.max(b.swimlaneMinHeight,i.maxHeight)+2*b.swimlanePadding;let d={x:c,y:b.swimlanePadding+i.y,r:l,dimension:s,leftSibling:!1,swimlane:i,visual:n.visual,text:n.textProps.content,frame:n.frame,index:n.index},f={...e,boxes:[...e.boxes,d],swimlanes:{...e.swimlanes,[`${i.index}`]:i},previousSwimlaneNumber:r.index,previousFrame:n.frame,maxR:u},p=N(f.swimlanes);p.length>0&&(p[0].y=0);for(let e=1;e<p.length;e++){let t=p[e],n=p[e-1];t.y=n.y+n.height+b.swimlaneGap}return f}n.n(P,`evolveFramePositioned`);function F(e,t){return e===0&&t.sourceFrames.length===0}n.n(F,`isFirstFrame`);function I(e){return e.sourceFrames!==void 0&&e.sourceFrames!==null&&e.sourceFrames.length>0}n.n(I,`hasSourceFrame`);function L(e,t){if(t!=null)return e.find(e=>e.frame.name===t.name)}n.n(L,`findBoxByFrame`);function R(e,t,n){if(!(n<0))for(let r=n;r>=0;r--){let n=e[r];if(n.swimlane.index!==t)return n}}n.n(R,`findBoxByLineIndex`);function z(t,n){let r=n;if(F(r.index,r.frame))return[];let i=L(t.boxes,r.frame);if(i===void 0)throw Error(`Target box not found for frame ${r.frame.name}`);let a;if(r.sourceFrame)a=L(t.boxes,r.sourceFrame);else{if(e.T(r.frame))return[];a=R(t.boxes,i.swimlane.index,r.index-1)}return a===void 0?[]:[{$kind:u,frame:r.frame,index:r.index,sourceBox:a,targetBox:i}]}n.n(z,`decidePositionRelation`);function B(e,t){let n=t,r={visual:{fill:`none`,stroke:`#000`},source:{x:n.sourceBox.x,y:n.sourceBox.y},target:{x:n.targetBox.x,y:n.targetBox.y},sourceBox:n.sourceBox,targetBox:n.targetBox};return{...e,relations:[...e.relations,r]}}n.n(B,`evolveRelationPositioned`);var V={[s]:A,[l]:z},H={[c]:P,[u]:B};function U(e,t){let n=V[t.$kind];if(n==null)return[];let i=n(e,t);return r.m.debug(`decided events`,i),i}n.n(U,`decide`);function W(e,t){let n=t.reduce((e,t)=>{let n=H[t.$kind];return n==null?e:n(e,t)},e);return r.m.debug(`evolve events`,{state:e,newState:n,events:t}),n}n.n(W,`evolve`);function G(e,t){return W(e,U(e,t))}n.n(G,`dispatch`);var K={getConfig:g,preserveCommentsWhenParsing:!0,setOptions:d,getOptions:f,clear:p,setAccTitle:i.U,getAccTitle:i.v,getAccDescription:i._,setAccDescription:i.H,setDiagramTitle:i.q,getDiagramTitle:i.C,setAst:y,getDiagramProps:x,getState:v},q={parse:n.n(async e=>{let n=await t.n(`eventmodeling`,e);r.m.debug(n),K.setAst(n),o.t(n,K)},`parse`)},J=i.b()?.eventmodeling;function Y(e,t){return n=>{let r=n.swimlane.y+t.swimlanePadding,i=e.append(`g`).attr(`class`,`em-box`);i.append(`rect`).attr(`x`,n.x).attr(`y`,r).attr(`rx`,`3`).attr(`width`,n.dimension.width).attr(`height`,n.dimension.height).attr(`stroke`,n.visual.stroke).attr(`fill`,n.visual.fill),i.append(`foreignObject`).attr(`x`,n.x+t.boxPadding).attr(`y`,r+10).attr(`width`,n.dimension.width-2*t.boxPadding).attr(`height`,n.dimension.height-2*t.boxPadding).append(`xhtml:div`).style(`display`,`table`).style(`height`,`100%`).style(`width`,`100%`).append(`span`).style(`display`,`table-cell`).style(`text-align`,`center`).style(`vertical-align`,`middle`).html(n.text)}}n.n(Y,`renderD3Box`);function X(e,t){return e>t}n.n(X,`dirUpwards`);function Z(e,t,n,i){return a=>{let o=a.sourceBox.swimlane.y+t.swimlanePadding,s=a.targetBox.swimlane.y+t.swimlanePadding,c=X(o,s),l=a.sourceBox.x+a.sourceBox.dimension.width*2/3,u=a.targetBox.x+a.targetBox.dimension.width/3,d,f;r.m.debug(`rendering relation up=${c} for `,{sourceBox:a.sourceBox,targetBox:a.targetBox}),c?(d=o,f=s+a.targetBox.dimension.height):(d=o+a.sourceBox.dimension.height,f=s);let p=i.emRelationStroke??a.visual.stroke;e.append(`path`).attr(`class`,`em-relation`).attr(`fill`,a.visual.fill).attr(`stroke`,p).attr(`stroke-width`,`1`).attr(`marker-end`,`url(#${n})`).attr(`d`,`M${l} ${d} L${u} ${f}`)}}n.n(Z,`renderD3Relation`);function Q(e,t,n,r){return i=>{let a=e.append(`g`).attr(`class`,`em-swimlane`),o=r.emSwimlaneBackgroundOdd??`rgb(250,250,250)`,s=r.emSwimlaneBackgroundStroke??`rgb(240,240,240)`;a.append(`rect`).attr(`x`,0).attr(`y`,i.y).attr(`rx`,`3`).attr(`width`,t+n.swimlanePadding).attr(`height`,i.height).attr(`fill`,o).attr(`stroke`,s),a.append(`text`).attr(`font-weight`,n.swimlaneTextFontWeight).attr(`x`,30).attr(`y`,i.y+30).text(i.label)}}n.n(Q,`renderD3Swimlane`);var $={parser:q,db:K,renderer:{draw:n.n(function(e,t,n,a){if(r.m.debug(`in eventmodeling renderer`,e+`
|
|
3
|
+
`,`id:`,t,n),!J)throw Error(`EventModeling config not found`);let o=a.db,{themeVariables:s,eventmodeling:c}=i.b(),l=r.p(`[id="${t}"]`),u=o.getDiagramProps(),d=o.getState(),f=`em-arrowhead-${t}`,p=s.emArrowhead??`#000000`;d.sortedSwimlanesArray.forEach(Q(l,d.maxR,u,s)),d.boxes.forEach(Y(l,u)),d.relations.forEach(Z(l,u,f,s)),l.append(`defs`).append(`marker`).attr(`id`,f).attr(`markerWidth`,`10`).attr(`markerHeight`,`7`).attr(`refX`,`10`).attr(`refY`,`3.5`).attr(`orient`,`auto`).append(`polygon`).attr(`points`,`0 0, 10 3.5, 0 7`).attr(`fill`,p),i.X(void 0,l,c?.padding??30,c?.useMaxWidth)},`draw`)},styles:n.n(e=>``,`getStyles`)};exports.diagram=$;
|