@jackuait/blok 0.10.5 → 0.10.6
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/blok.mjs +2 -2
- package/dist/chunks/_basePickBy--UeZi0iS.mjs +166 -0
- package/dist/chunks/_baseUniq-C977U_l-.mjs +682 -0
- package/dist/chunks/{arc-D-pL2Ftf.mjs → arc-Woh6y3jm.mjs} +2 -2
- package/dist/chunks/architecture-YZFGNWBL-aVO23UKm.mjs +3 -0
- package/dist/chunks/{architectureDiagram-Q4EWVU46-DS7mqjL2.mjs → architectureDiagram-Q4EWVU46-GTqLmLqg.mjs} +115 -115
- package/dist/chunks/{blockDiagram-DXYQGD6D-BTtcn4NG.mjs → blockDiagram-DXYQGD6D-CML01I1L.mjs} +681 -866
- package/dist/chunks/{blok-DSP5zC_s.mjs → blok-B0k4z2h1.mjs} +604 -564
- package/dist/chunks/{c4Diagram-AHTNJAMY-Y4Dcwcoo.mjs → c4Diagram-AHTNJAMY-C29OuYjO.mjs} +239 -239
- package/dist/chunks/{channel-Cln-eWE0.mjs → channel-Zp_OyvEW.mjs} +1 -1
- package/dist/chunks/{chunk-2KRD3SAO-DkM7qh-k.mjs → chunk-2KRD3SAO-mVfUZfox.mjs} +1 -1
- package/dist/chunks/{chunk-336JU56O-B17AtzlK.mjs → chunk-336JU56O-mJNxs0cr.mjs} +18 -18
- package/dist/chunks/{chunk-426QAEUC-D6UAVUog.mjs → chunk-426QAEUC-TajZlyP-.mjs} +2 -2
- package/dist/chunks/{chunk-4BX2VUAB-CgIkjF7Z.mjs → chunk-4BX2VUAB-CsopMMb6.mjs} +1 -1
- package/dist/chunks/{chunk-4TB4RGXK-BUP4eON3.mjs → chunk-4TB4RGXK-DC963IrJ.mjs} +129 -129
- package/dist/chunks/{chunk-55IACEB6-zZ-IgaSt.mjs → chunk-55IACEB6-yyL3mncJ.mjs} +1 -1
- package/dist/chunks/{chunk-5FUZZQ4R-DsZnJYxM.mjs → chunk-5FUZZQ4R-Dr4NE8rh.mjs} +663 -663
- package/dist/chunks/chunk-5PVQY5BW-BP7ENjg7.mjs +1122 -0
- package/dist/chunks/{chunk-67CJDMHE-m0UKdcSH.mjs → chunk-67CJDMHE-Dbl-PjEf.mjs} +1 -1
- package/dist/chunks/{chunk-7N4EOEYR-DKNajFZd.mjs → chunk-7N4EOEYR-p-g3cKuX.mjs} +1 -1
- package/dist/chunks/{chunk-AA7GKIK3-BeLhNzKa.mjs → chunk-AA7GKIK3-Dt0Kr5Va.mjs} +1 -1
- package/dist/chunks/{chunk-BSJP7CBP-CJExmx8a.mjs → chunk-BSJP7CBP-DGU2WHwh.mjs} +1 -1
- package/dist/chunks/{chunk-CIAEETIT-CTikoJ19.mjs → chunk-CIAEETIT-BQ4crY5r.mjs} +1 -1
- package/dist/chunks/{chunk-EDXVE4YY-DjInnnwb.mjs → chunk-EDXVE4YY-B9_aGwkV.mjs} +2 -2
- package/dist/chunks/{chunk-ENJZ2VHE-CIl5FRDA.mjs → chunk-ENJZ2VHE-23pY8ft5.mjs} +243 -243
- package/dist/chunks/{chunk-FMBD7UC4-DjV0W7UE.mjs → chunk-FMBD7UC4-D_RQlBGX.mjs} +1 -1
- package/dist/chunks/{chunk-FOC6F5B3-LmHCCWYY.mjs → chunk-FOC6F5B3-CJfr-iwx.mjs} +1 -1
- package/dist/chunks/{chunk-ICPOFSXX-BHZIN46A.mjs → chunk-ICPOFSXX-BOvOTlG6.mjs} +2 -2
- package/dist/chunks/{chunk-K5T4RW27-BPZ6fFnW.mjs → chunk-K5T4RW27-CHSI0vpp.mjs} +572 -570
- package/dist/chunks/{chunk-KGLVRYIC-S1OQdW76.mjs → chunk-KGLVRYIC-ngXT4XVA.mjs} +1 -1
- package/dist/chunks/{chunk-LIHQZDEY-CjtyJlI6.mjs → chunk-LIHQZDEY-CnP7bym1.mjs} +1 -1
- package/dist/chunks/{chunk-ORNJ4GCN-CdO0hAge.mjs → chunk-ORNJ4GCN-BPaghT45.mjs} +1 -1
- package/dist/chunks/{chunk-OYMX7WX6-ApX8eV4o.mjs → chunk-OYMX7WX6-CKjTvqTg.mjs} +172 -172
- package/dist/chunks/{chunk-QZHKN3VN-BGFuA6-k.mjs → chunk-QZHKN3VN-uW1N2UWF.mjs} +1 -1
- package/dist/chunks/{chunk-U2HBQHQK-B88ZUOTL.mjs → chunk-U2HBQHQK-DiQOEtQH.mjs} +65 -65
- package/dist/chunks/{chunk-X2U36JSP-1VS5TyCr.mjs → chunk-X2U36JSP-Cznp5Jm-.mjs} +2 -2
- package/dist/chunks/{chunk-XPW4576I-BMupdrvo.mjs → chunk-XPW4576I-W5t_agZI.mjs} +1 -1
- package/dist/chunks/{chunk-YZCP3GAM-BQ7eEsm2.mjs → chunk-YZCP3GAM-BV02tG_z.mjs} +3 -3
- package/dist/chunks/{chunk-ZZ45TVLE-D1xks9zd.mjs → chunk-ZZ45TVLE-D28EyJ6R.mjs} +7 -7
- package/dist/chunks/classDiagram-6PBFFD2Q-DXsClapu.mjs +30 -0
- package/dist/chunks/classDiagram-v2-HSJHXN6E-B6TlQ_PM.mjs +30 -0
- package/dist/chunks/{clone-Ckjt1LtE.mjs → clone-CUNvBGto.mjs} +1 -1
- package/dist/chunks/{constants-B0Tns0mh.mjs → constants-lOEJu8bC.mjs} +4 -2
- package/dist/chunks/{cose-bilkent-S5V4N54A-Bpcs2jA_.mjs → cose-bilkent-S5V4N54A-D-Xgf_Xn.mjs} +2 -2
- package/dist/chunks/{cpp-BdjvAny0.mjs → cpp-DaTV1RSp.mjs} +2 -2
- package/dist/chunks/{dagre-KV5264BT-DUD9ikgN.mjs → dagre-KV5264BT-BB3SAlfA.mjs} +15 -15
- package/dist/chunks/{dagre-CGNbYTKq.mjs → dagre-dysBn-m8.mjs} +499 -552
- package/dist/chunks/diagram-5BDNPKRD-B1410bPG.mjs +112 -0
- package/dist/chunks/{diagram-G4DWMVQ6-CuS0-h95.mjs → diagram-G4DWMVQ6-CdhBBETB.mjs} +82 -82
- package/dist/chunks/{diagram-MMDJMWI5-C-AEApYz.mjs → diagram-MMDJMWI5-B3HWfHe1.mjs} +48 -48
- package/dist/chunks/{diagram-TYMM5635-CiwAJVMq.mjs → diagram-TYMM5635-D0JzRYCN.mjs} +51 -51
- package/dist/chunks/{erDiagram-SMLLAGMA-DeH5yck2.mjs → erDiagram-SMLLAGMA-DfIG0QBk.mjs} +142 -142
- package/dist/chunks/{flowDiagram-DWJPFMVM-Cr6dwmQ5.mjs → flowDiagram-DWJPFMVM-BOL8JsQX.mjs} +176 -176
- package/dist/chunks/{ganttDiagram-T4ZO3ILL-K-divBg_.mjs → ganttDiagram-T4ZO3ILL-CiUr_YRw.mjs} +230 -230
- package/dist/chunks/gitGraph-7Q5UKJZL-B3aq166w.mjs +3 -0
- package/dist/chunks/{gitGraphDiagram-UUTBAWPF-UytPZv72.mjs → gitGraphDiagram-UUTBAWPF-CtNkTTWO.mjs} +218 -218
- package/dist/chunks/{graphlib-Cye9EPNq.mjs → graphlib-BXNPwKuI.mjs} +48 -46
- package/dist/chunks/{graphql-BSnqmqgO.mjs → graphql-DNumR9m-.mjs} +2 -2
- package/dist/chunks/{html-BLNeZvnp.mjs → html-CanPsi1Y.mjs} +2 -2
- package/dist/chunks/{i18next-loader-D_v0EmDP.mjs → i18next-loader-CIXsptng.mjs} +1 -1
- package/dist/chunks/info-OMHHGYJF-SX91-Wub.mjs +3 -0
- package/dist/chunks/{infoDiagram-42DDH7IO-DuYnDbF3.mjs → infoDiagram-42DDH7IO-CD7nVBvi.mjs} +14 -14
- package/dist/chunks/isArrayLikeObject-DzUNFfIK.mjs +578 -0
- package/dist/chunks/isEmpty-D8B0aRsG.mjs +35 -0
- package/dist/chunks/{ishikawaDiagram-UXIWVN3A-CHc59dLn.mjs → ishikawaDiagram-UXIWVN3A-BOaC9qJs.mjs} +81 -81
- package/dist/chunks/{journeyDiagram-VCZTEJTY-CD25C4_n.mjs → journeyDiagram-VCZTEJTY-DKf55ZdJ.mjs} +6 -6
- package/dist/chunks/{kanban-definition-6JOO6SKY-CTCT6N_p.mjs → kanban-definition-6JOO6SKY-D2CrAXqB.mjs} +11 -11
- package/dist/chunks/{latex-24n3TcOR.mjs → latex-DY1HNB4U.mjs} +1 -1
- package/dist/chunks/line-CuvDsrkE.mjs +34 -0
- package/dist/chunks/{linear-BRCpMvtr.mjs → linear-JRIqMpGQ.mjs} +3 -3
- package/dist/chunks/{lua-DV0fuZWx.mjs → lua-COOfzihE.mjs} +1 -1
- package/dist/chunks/{mermaid-parser.core-CA3DKkuk.mjs → mermaid-parser.core-BhpZC2lA.mjs} +10 -10
- package/dist/chunks/mermaid.core-C40gcVfv.mjs +977 -0
- package/dist/chunks/{micromark-extension-math-BbkUb36G.mjs → micromark-extension-math-D-s54WWf.mjs} +1 -1
- package/dist/chunks/{mindmap-definition-QFDTVHPH-hNnyBkEP.mjs → mindmap-definition-QFDTVHPH-C-0fwUUS.mjs} +13 -13
- package/dist/chunks/{ordinal-B-kolV-i.mjs → ordinal-fyJMP-lj.mjs} +1 -1
- package/dist/chunks/packet-4T2RLAQJ-suhU85JN.mjs +3 -0
- package/dist/chunks/{php-DmXKyPwJ.mjs → php-DA-SOiqC.mjs} +6 -6
- package/dist/chunks/pie-ZZUOXDRM-DF5e16CP.mjs +3 -0
- package/dist/chunks/pieDiagram-DEJITSTG-BPyqheXv.mjs +179 -0
- package/dist/chunks/{quadrantDiagram-34T5L4WZ-CQ5fGYI5.mjs → quadrantDiagram-34T5L4WZ-kOZ1zIXB.mjs} +4 -4
- package/dist/chunks/radar-PYXPWWZC-DgzodpRv.mjs +3 -0
- package/dist/chunks/{requirementDiagram-MS252O5E-DjWKB42c.mjs → requirementDiagram-MS252O5E-C8Zkq6Lq.mjs} +64 -64
- package/dist/chunks/{ruby-DdOo03Kg.mjs → ruby-HDUjp8gK.mjs} +11 -11
- package/dist/chunks/{sankeyDiagram-XADWPNL6-BIN2evSB.mjs → sankeyDiagram-XADWPNL6-B0FhkAL9.mjs} +3 -3
- package/dist/chunks/{sequenceDiagram-FGHM5R23-CQz2lMoS.mjs → sequenceDiagram-FGHM5R23-Dv2H5Lbc.mjs} +447 -447
- package/dist/chunks/stateDiagram-FHFEXIEX-D1vcO7H_.mjs +218 -0
- package/dist/chunks/stateDiagram-v2-QKLJ7IA2-AoHzFiaI.mjs +28 -0
- package/dist/chunks/{timeline-definition-GMOUNBTQ-CzvQ7Lav.mjs → timeline-definition-GMOUNBTQ-DJmJ0TPa.mjs} +195 -195
- package/dist/chunks/{tools-KZmhOKEo.mjs → tools-FmtWXVgt.mjs} +102 -100
- package/dist/chunks/treeView-SZITEDCU-C1mc9PWf.mjs +3 -0
- package/dist/chunks/treemap-W4RFUUIX-ClV9Slyp.mjs +3 -0
- package/dist/chunks/{vennDiagram-DHZGUBPP-B0DmLQqe.mjs → vennDiagram-DHZGUBPP-Dx1rMP24.mjs} +76 -76
- package/dist/chunks/wardley-RL74JXVD-Dj7t7jHR.mjs +3 -0
- package/dist/chunks/{wardleyDiagram-NUSXRM2D-CzoKesUw.mjs → wardleyDiagram-NUSXRM2D-Dnm6lvMn.mjs} +15 -15
- package/dist/chunks/{xml-g8kXXALs.mjs → xml-Dq1lpp8G.mjs} +1 -1
- package/dist/chunks/{xychartDiagram-5P7HB3ND-CixwR8r2.mjs → xychartDiagram-5P7HB3ND-C9wFc2e9.mjs} +120 -120
- package/dist/full.mjs +3 -3
- package/dist/markdown.mjs +1 -1
- package/dist/react.mjs +2 -2
- package/dist/tools.mjs +2 -2
- package/dist/vendor.LICENSE.txt +64 -64
- package/package.json +3 -2
- package/src/components/block/index.ts +2 -2
- package/src/components/block-tunes/block-tune-delete.ts +1 -0
- package/src/components/modules/blockEvents/composers/markdownShortcuts.ts +105 -2
- package/src/components/modules/blockEvents/constants.ts +24 -0
- package/src/components/modules/blockManager/blockManager.ts +1 -1
- package/src/components/modules/blockManager/types.ts +1 -1
- package/src/components/modules/toolbar/blockSettings.ts +89 -11
- package/src/components/modules/yjs/document-store.ts +1 -1
- package/src/components/modules/yjs/index.ts +1 -1
- package/src/components/utils/popover/popover-abstract.ts +9 -0
- package/src/tools/code/index.ts +1 -0
- package/src/tools/quote/index.ts +1 -0
- package/types/configs/blok-config.d.ts +13 -3
- package/types/configs/index.d.ts +1 -0
- package/types/configs/user-info.d.ts +14 -0
- package/types/data-formats/output-data.d.ts +2 -2
- package/types/index.d.ts +1 -0
- package/dist/chunks/_basePickBy-DISiGhsr.mjs +0 -410
- package/dist/chunks/_baseUniq-gAuHRtRF.mjs +0 -1045
- package/dist/chunks/_getTag-Aj56Wgor.mjs +0 -26
- package/dist/chunks/architecture-YZFGNWBL-CuqTb_ae.mjs +0 -3
- package/dist/chunks/chunk-5PVQY5BW-CORl9dnu.mjs +0 -1692
- package/dist/chunks/classDiagram-6PBFFD2Q-C59BZJxp.mjs +0 -30
- package/dist/chunks/classDiagram-v2-HSJHXN6E-7a0qeMsE.mjs +0 -30
- package/dist/chunks/diagram-5BDNPKRD-CZGfTYEe.mjs +0 -112
- package/dist/chunks/gitGraph-7Q5UKJZL-Dl-vQzrq.mjs +0 -3
- package/dist/chunks/info-OMHHGYJF-BOejJvJR.mjs +0 -3
- package/dist/chunks/line-Dct5pMmw.mjs +0 -34
- package/dist/chunks/mermaid.core-CA8nc1sZ.mjs +0 -989
- package/dist/chunks/packet-4T2RLAQJ-B5ZMgwzZ.mjs +0 -3
- package/dist/chunks/pie-ZZUOXDRM-B9l6y0XJ.mjs +0 -3
- package/dist/chunks/pieDiagram-DEJITSTG-Gw-fsc6U.mjs +0 -179
- package/dist/chunks/radar-PYXPWWZC-D5kYmUaB.mjs +0 -3
- package/dist/chunks/stateDiagram-FHFEXIEX-BIBFsF65.mjs +0 -218
- package/dist/chunks/stateDiagram-v2-QKLJ7IA2-BZUmAVw7.mjs +0 -28
- package/dist/chunks/treeView-SZITEDCU-BNtnNxpI.mjs +0 -3
- package/dist/chunks/treemap-W4RFUUIX-DYENULz2.mjs +0 -3
- package/dist/chunks/wardley-RL74JXVD-ByNHVBTb.mjs +0 -3
- /package/dist/chunks/{am-BxlkYGsI.mjs → am-Bbd7cTHS.mjs} +0 -0
- /package/dist/chunks/{ar-9vlpr9V8.mjs → ar-Bo71sCQE.mjs} +0 -0
- /package/dist/chunks/{array-BsrkCVSZ.mjs → array-DbiMs_0t.mjs} +0 -0
- /package/dist/chunks/{az-ON63W_FP.mjs → az-BnNrO_xK.mjs} +0 -0
- /package/dist/chunks/{bg-CtXWTP5w.mjs → bg-CMd2n-OG.mjs} +0 -0
- /package/dist/chunks/{bn-BERvhXM4.mjs → bn-B3lorfXA.mjs} +0 -0
- /package/dist/chunks/{bs-CBg8NVPG.mjs → bs-_zM8QBsA.mjs} +0 -0
- /package/dist/chunks/{c-C6JXJf5K.mjs → c-DmKJe6GM.mjs} +0 -0
- /package/dist/chunks/{core-Bm6DWt7D.mjs → core-C942GvJO.mjs} +0 -0
- /package/dist/chunks/{cs-DeQddxS7.mjs → cs-nodpmLBf.mjs} +0 -0
- /package/dist/chunks/{csharp-YHxeHpeH.mjs → csharp-Drv96dbi.mjs} +0 -0
- /package/dist/chunks/{css-DdLevFaX.mjs → css-82tNAoU6.mjs} +0 -0
- /package/dist/chunks/{cytoscape.esm-BvD8wo00.mjs → cytoscape.esm-DSb9a7HE.mjs} +0 -0
- /package/dist/chunks/{da-DyTo-ec_.mjs → da-DwzgQcXQ.mjs} +0 -0
- /package/dist/chunks/{dart-DrPWqfcC.mjs → dart-DE9j8McI.mjs} +0 -0
- /package/dist/chunks/{de-Cu7545m1.mjs → de-BvWPiNt6.mjs} +0 -0
- /package/dist/chunks/{defaultLocale-ChuSeAxU.mjs → defaultLocale-yTyMJ3IT.mjs} +0 -0
- /package/dist/chunks/{dist-Ctq-pyfb.mjs → dist-X14EnMrO.mjs} +0 -0
- /package/dist/chunks/{dockerfile-C68ALcaN.mjs → dockerfile-D9DFksUy.mjs} +0 -0
- /package/dist/chunks/{el-oiubLRBq.mjs → el-B_D7wUrZ.mjs} +0 -0
- /package/dist/chunks/{engine-javascript-CJpnSvzf.mjs → engine-javascript-Dd6ViPCH.mjs} +0 -0
- /package/dist/chunks/{es-DZUC6Klv.mjs → es-Bn_ZFyW9.mjs} +0 -0
- /package/dist/chunks/{et-CDeklAog.mjs → et-CUcULjoh.mjs} +0 -0
- /package/dist/chunks/{fa-Cafp7_Li.mjs → fa-BRhCTsOy.mjs} +0 -0
- /package/dist/chunks/{fi-BD_V_aVW.mjs → fi-BEvyU9n6.mjs} +0 -0
- /package/dist/chunks/{fil-Crsfbtx4.mjs → fil-Dlp1_W2B.mjs} +0 -0
- /package/dist/chunks/{fr-BGGc04Zv.mjs → fr-DJBeOAx1.mjs} +0 -0
- /package/dist/chunks/{go-Fm5N96DN.mjs → go-jyWjtO8q.mjs} +0 -0
- /package/dist/chunks/{gu-Vg_BgCTp.mjs → gu-0hWvx16l.mjs} +0 -0
- /package/dist/chunks/{he-DTY9chlZ.mjs → he-CYe88qXp.mjs} +0 -0
- /package/dist/chunks/{hi-DChMXk0x.mjs → hi-DuLkkPWn.mjs} +0 -0
- /package/dist/chunks/{hr-BWVgNU8k.mjs → hr-BwCB1IMW.mjs} +0 -0
- /package/dist/chunks/{hu-B37awHXA.mjs → hu-C2dLyTeX.mjs} +0 -0
- /package/dist/chunks/{hy-DGC_GDHh.mjs → hy-DXKoDpv9.mjs} +0 -0
- /package/dist/chunks/{i18next-CXx5niYF.mjs → i18next-CLUkHqmV.mjs} +0 -0
- /package/dist/chunks/{id-V7cw6La2.mjs → id-D4chLuW_.mjs} +0 -0
- /package/dist/chunks/{init-C6T-mugb.mjs → init-BlLeEogJ.mjs} +0 -0
- /package/dist/chunks/{it-DrTGP8Rn.mjs → it-Hto3G26t.mjs} +0 -0
- /package/dist/chunks/{ja-DS4pbJEG.mjs → ja-UxHm_PPZ.mjs} +0 -0
- /package/dist/chunks/{java-83DWBpzu.mjs → java-Dhv78FEb.mjs} +0 -0
- /package/dist/chunks/{javascript-CBgeF1Xx.mjs → javascript-DilE9EuZ.mjs} +0 -0
- /package/dist/chunks/{json-BI17y-1H.mjs → json-LUtHrtDA.mjs} +0 -0
- /package/dist/chunks/{ka-BueyosRh.mjs → ka-BnjXwPUq.mjs} +0 -0
- /package/dist/chunks/{katex-CmTPfM0f.mjs → katex-B8jUB5Cv.mjs} +0 -0
- /package/dist/chunks/{km-B0K891yW.mjs → km-exgzZBIE.mjs} +0 -0
- /package/dist/chunks/{kn-BQ__skg8.mjs → kn-DjjUg8aO.mjs} +0 -0
- /package/dist/chunks/{ko-BuPxi_7e.mjs → ko-Cu0YUSV6.mjs} +0 -0
- /package/dist/chunks/{kotlin-DjnvsrfO.mjs → kotlin-DFLPXbOQ.mjs} +0 -0
- /package/dist/chunks/{ku-nQjwPRw2.mjs → ku-D-IxJ0fx.mjs} +0 -0
- /package/dist/chunks/{lo-K5NVFoq1.mjs → lo-BcwjJBcv.mjs} +0 -0
- /package/dist/chunks/{lt-D3xD6Eb2.mjs → lt-Bt05MFPC.mjs} +0 -0
- /package/dist/chunks/{lv-DH13mzZj.mjs → lv-B01TmEFW.mjs} +0 -0
- /package/dist/chunks/{markdown-BqQYT45f.mjs → markdown-C6pnqcPd.mjs} +0 -0
- /package/dist/chunks/{mdast-util-math-BlK2Zu-1.mjs → mdast-util-math-D56mMxhB.mjs} +0 -0
- /package/dist/chunks/{mermaid-vF0cEnZ0.mjs → mermaid-BKA834jS.mjs} +0 -0
- /package/dist/chunks/{messages-Buwm8xrX2.mjs → messages--G2XLc8E.mjs} +0 -0
- /package/dist/chunks/{messages-DKjUcEfs.mjs → messages-3kHDtQLN.mjs} +0 -0
- /package/dist/chunks/{messages-f-YBthdd2.mjs → messages-4Y8dL_1j2.mjs} +0 -0
- /package/dist/chunks/{messages--tSqMtkx2.mjs → messages-9Nx7kteY2.mjs} +0 -0
- /package/dist/chunks/{messages-B5ZVSxG4.mjs → messages-B29Wm2zT.mjs} +0 -0
- /package/dist/chunks/{messages-CDtmVcBc.mjs → messages-B9mzGzZ_.mjs} +0 -0
- /package/dist/chunks/{messages-B9PUHq4t.mjs → messages-BCfsOOlp.mjs} +0 -0
- /package/dist/chunks/{messages-adEATsLK.mjs → messages-BJTwY1tq.mjs} +0 -0
- /package/dist/chunks/{messages-DqGv-lj6.mjs → messages-BK6AwU6C.mjs} +0 -0
- /package/dist/chunks/{messages-DGYjioKM.mjs → messages-BPxMr5HC.mjs} +0 -0
- /package/dist/chunks/{messages-DKZHsfXy2.mjs → messages-BS9zk4mI2.mjs} +0 -0
- /package/dist/chunks/{messages-CEWKcK-Q.mjs → messages-BSXBVdsp.mjs} +0 -0
- /package/dist/chunks/{messages-gNK1EolD.mjs → messages-BSyO1EWC.mjs} +0 -0
- /package/dist/chunks/{messages-DggaAu362.mjs → messages-BUQTXTew2.mjs} +0 -0
- /package/dist/chunks/{messages-Bg8uBETk2.mjs → messages-Bhn5V9FQ2.mjs} +0 -0
- /package/dist/chunks/{messages-bteFpBer.mjs → messages-Bi629xgG.mjs} +0 -0
- /package/dist/chunks/{messages-Dle6Hv30.mjs → messages-BimpUMRx.mjs} +0 -0
- /package/dist/chunks/{messages-Bedied602.mjs → messages-BkaUIuz-2.mjs} +0 -0
- /package/dist/chunks/{messages-DIUegdwv2.mjs → messages-BmC2yhsC2.mjs} +0 -0
- /package/dist/chunks/{messages-Blg1X6YL.mjs → messages-Bo7Cbk_O.mjs} +0 -0
- /package/dist/chunks/{messages-CdWS0hvw.mjs → messages-Bq7fo8X0.mjs} +0 -0
- /package/dist/chunks/{messages-3w1e16T2.mjs → messages-BsqBho4T.mjs} +0 -0
- /package/dist/chunks/{messages-BqKIunt0.mjs → messages-C7E8C3-S.mjs} +0 -0
- /package/dist/chunks/{messages-JRjsu_bC.mjs → messages-C9QhLDA2.mjs} +0 -0
- /package/dist/chunks/{messages-D5lY22F4.mjs → messages-C9UIaF6N.mjs} +0 -0
- /package/dist/chunks/{messages-BmDMK9Dg.mjs → messages-CAX3qQi0.mjs} +0 -0
- /package/dist/chunks/{messages-CrCalcxK.mjs → messages-CEJtxBxU.mjs} +0 -0
- /package/dist/chunks/{messages-D5NWb-B9.mjs → messages-CF0SW1zy.mjs} +0 -0
- /package/dist/chunks/{messages--X-ZzYSb.mjs → messages-CIre8L_r.mjs} +0 -0
- /package/dist/chunks/{messages-DalLfJNC.mjs → messages-CJ8IkF1P.mjs} +0 -0
- /package/dist/chunks/{messages-b8XGiuAa2.mjs → messages-CKP6aUXN2.mjs} +0 -0
- /package/dist/chunks/{messages-DlTG06-j.mjs → messages-CMMq-u7e.mjs} +0 -0
- /package/dist/chunks/{messages-ByHXyVi6.mjs → messages-CR5irc8q.mjs} +0 -0
- /package/dist/chunks/{messages-IjEU7XAq.mjs → messages-CRH0RWBs.mjs} +0 -0
- /package/dist/chunks/{messages-DpnhbDoK2.mjs → messages-CWm_2RvD2.mjs} +0 -0
- /package/dist/chunks/{messages-cR48x2Aq2.mjs → messages-CY76MvbX2.mjs} +0 -0
- /package/dist/chunks/{messages-Dk-d3mmM.mjs → messages-CpLq4ZZg.mjs} +0 -0
- /package/dist/chunks/{messages-C9HPruJj2.mjs → messages-CrpOkt8c2.mjs} +0 -0
- /package/dist/chunks/{messages-CmGixnBb2.mjs → messages-D3fu2FHB2.mjs} +0 -0
- /package/dist/chunks/{messages-CXjSY5Fy.mjs → messages-D6_I0L06.mjs} +0 -0
- /package/dist/chunks/{messages-DgoJDjHm.mjs → messages-DHzT8CZv.mjs} +0 -0
- /package/dist/chunks/{messages-BmDw1fZF2.mjs → messages-DIVQmVS92.mjs} +0 -0
- /package/dist/chunks/{messages-DSMFg80t.mjs → messages-DJYT0upW.mjs} +0 -0
- /package/dist/chunks/{messages-DIH2U0ZD.mjs → messages-DPcc6xp-.mjs} +0 -0
- /package/dist/chunks/{messages-D3wlt9eE.mjs → messages-Dass0QsQ.mjs} +0 -0
- /package/dist/chunks/{messages-vqR3RAU4.mjs → messages-DcUYfD6m.mjs} +0 -0
- /package/dist/chunks/{messages-BAxCMQgm.mjs → messages-DfLcy0CY.mjs} +0 -0
- /package/dist/chunks/{messages-Cic0Y1z6.mjs → messages-DhoZXmg_.mjs} +0 -0
- /package/dist/chunks/{messages-DslnYTHU2.mjs → messages-DiQkvwE32.mjs} +0 -0
- /package/dist/chunks/{messages-BvoElEE_.mjs → messages-DmvWmURo.mjs} +0 -0
- /package/dist/chunks/{messages-DOPK-Xif2.mjs → messages-Dobxrshu2.mjs} +0 -0
- /package/dist/chunks/{messages-BKeL1zk-2.mjs → messages-DsMIxm6I2.mjs} +0 -0
- /package/dist/chunks/{messages-BHUQs6402.mjs → messages-DtssWM8x2.mjs} +0 -0
- /package/dist/chunks/{messages-BIXCvkbG.mjs → messages-E1tsNNG5.mjs} +0 -0
- /package/dist/chunks/{messages-BDhWRN6Y.mjs → messages-PFfYbqlm.mjs} +0 -0
- /package/dist/chunks/{messages-DT6eM0I22.mjs → messages-bIzBNzdr2.mjs} +0 -0
- /package/dist/chunks/{messages-W2zpf0Mu2.mjs → messages-dGYum7sj2.mjs} +0 -0
- /package/dist/chunks/{messages-B5BaA6AV.mjs → messages-kKXlI5xZ.mjs} +0 -0
- /package/dist/chunks/{messages-BGpx2ecP2.mjs → messages-mo5OrbVj2.mjs} +0 -0
- /package/dist/chunks/{messages-DZTQIS9F.mjs → messages-nAdoEqRi.mjs} +0 -0
- /package/dist/chunks/{messages-wSX_4fK1.mjs → messages-rNLuCrAb.mjs} +0 -0
- /package/dist/chunks/{messages-PkO_43Eb.mjs → messages-v26RM5PC.mjs} +0 -0
- /package/dist/chunks/{messages-fUpUvsRN.mjs → messages-x0kzc2oy.mjs} +0 -0
- /package/dist/chunks/{messages-DoD9yWMu2.mjs → messages-x6y6csd52.mjs} +0 -0
- /package/dist/chunks/{messages-DhgEjOjw2.mjs → messages-x_eMclsl2.mjs} +0 -0
- /package/dist/chunks/{messages-BszGK0ox.mjs → messages-z5pham9o.mjs} +0 -0
- /package/dist/chunks/{messages-CRLvJfNU2.mjs → messages-zcqQ8x232.mjs} +0 -0
- /package/dist/chunks/{mk-Bb48BcDA.mjs → mk-DlZNyDhn.mjs} +0 -0
- /package/dist/chunks/{ml-BHPEj1kD.mjs → ml-CizMIOxl.mjs} +0 -0
- /package/dist/chunks/{mn-BNGzpdI6.mjs → mn-B_pDvxok.mjs} +0 -0
- /package/dist/chunks/{mr-D5PgU-cH.mjs → mr-D8D_7YmW.mjs} +0 -0
- /package/dist/chunks/{ms-DPkxqKz5.mjs → ms-CM93I8ec.mjs} +0 -0
- /package/dist/chunks/{my-DZGcyfxy.mjs → my-BGnGdDAV.mjs} +0 -0
- /package/dist/chunks/{ne-BU_Wh4Wv.mjs → ne-C6ZmmqhH.mjs} +0 -0
- /package/dist/chunks/{nl-DtAPk1mK.mjs → nl-UGFOU80W.mjs} +0 -0
- /package/dist/chunks/{no-CdW3n3BY.mjs → no-as-DKhC4.mjs} +0 -0
- /package/dist/chunks/{notifier-CuvTt9pe.mjs → notifier-PpnFhM0m.mjs} +0 -0
- /package/dist/chunks/{one-light-DmNO_Y4X.mjs → one-light-Di_o5Kb7.mjs} +0 -0
- /package/dist/chunks/{pa-BacCHz87.mjs → pa-DiOAveAI.mjs} +0 -0
- /package/dist/chunks/{path-rIMjg_tH.mjs → path-7pA19U_d.mjs} +0 -0
- /package/dist/chunks/{pl-8zBJbmhZ.mjs → pl-DXk8ye3B.mjs} +0 -0
- /package/dist/chunks/{ps-c6nGXD-W.mjs → ps-CuxilZ3F.mjs} +0 -0
- /package/dist/chunks/{pt-B5yR8Qhr.mjs → pt-DsT6E77q.mjs} +0 -0
- /package/dist/chunks/{python-DfwfY9t5.mjs → python-DYiHKGPV.mjs} +0 -0
- /package/dist/chunks/{r-BD2D7qEW.mjs → r-BZ4pC-Uz.mjs} +0 -0
- /package/dist/chunks/{ro-Nscylsqb.mjs → ro-CcAQOL-B.mjs} +0 -0
- /package/dist/chunks/{rough.esm-cmMIcj7N.mjs → rough.esm-BPA_YwbP.mjs} +0 -0
- /package/dist/chunks/{ru-DxERQkVJ.mjs → ru-hD41D0Fd.mjs} +0 -0
- /package/dist/chunks/{rust-DEDueB5R.mjs → rust-Db_HEGL5.mjs} +0 -0
- /package/dist/chunks/{scala-CsjqvxE4.mjs → scala-B1kK21mu.mjs} +0 -0
- /package/dist/chunks/{sd-5z-QY3q9.mjs → sd-Biu7f00A.mjs} +0 -0
- /package/dist/chunks/{shellscript-Bh5zEpnQ.mjs → shellscript-BBh7AxMC.mjs} +0 -0
- /package/dist/chunks/{si-DTL0mzrx.mjs → si-Bhto6prC.mjs} +0 -0
- /package/dist/chunks/{sk-DrGczTvY.mjs → sk-Ce7J4sHX.mjs} +0 -0
- /package/dist/chunks/{sl-D8nJjig4.mjs → sl-Fz7idR9w.mjs} +0 -0
- /package/dist/chunks/{sq-C74Hm3YL.mjs → sq-CnLb3bAQ.mjs} +0 -0
- /package/dist/chunks/{sql-D9CrOi1i.mjs → sql-DHkazX4B.mjs} +0 -0
- /package/dist/chunks/{sr-DAwB05Gj.mjs → sr-Bc5JbF-b.mjs} +0 -0
- /package/dist/chunks/{src-DVJl6f6s.mjs → src-B3rrEIze.mjs} +0 -0
- /package/dist/chunks/{sv-BkHBsN4y.mjs → sv-B86P2LyK.mjs} +0 -0
- /package/dist/chunks/{sw-BBQLTq_z.mjs → sw-CnQXriTg.mjs} +0 -0
- /package/dist/chunks/{swift-Dpyt0s2c.mjs → swift-DZdprfb-.mjs} +0 -0
- /package/dist/chunks/{ta-DRRzdKky.mjs → ta-CG4BbxjE.mjs} +0 -0
- /package/dist/chunks/{te-CedXLsKM.mjs → te-CkE35V1X.mjs} +0 -0
- /package/dist/chunks/{th-DDOlGA0W.mjs → th-BCtkHu3E.mjs} +0 -0
- /package/dist/chunks/{tr-ClgvwOlL.mjs → tr-D5Cexvko.mjs} +0 -0
- /package/dist/chunks/{typescript-DO5cd4m8.mjs → typescript-DhtGMhWX.mjs} +0 -0
- /package/dist/chunks/{ug-bXxwiinM.mjs → ug-Bt9xMT4p.mjs} +0 -0
- /package/dist/chunks/{uk-Dp46o_VT.mjs → uk-D1g7UV0v.mjs} +0 -0
- /package/dist/chunks/{ur-MfEEhdFq.mjs → ur-B69faQh_.mjs} +0 -0
- /package/dist/chunks/{vi-bt-3LPGO.mjs → vi--gW42cZG.mjs} +0 -0
- /package/dist/chunks/{vitesse-dark-CcorSKT2.mjs → vitesse-dark-B5oAIYZ5.mjs} +0 -0
- /package/dist/chunks/{yaml-CrNNZyLb.mjs → yaml-T4MCc8o4.mjs} +0 -0
- /package/dist/chunks/{zh-Dgyb5Ly8.mjs → zh-DgQ6P8Lu.mjs} +0 -0
package/dist/chunks/{blockDiagram-DXYQGD6D-BTtcn4NG.mjs → blockDiagram-DXYQGD6D-CML01I1L.mjs}
RENAMED
|
@@ -1,207 +1,22 @@
|
|
|
1
1
|
import { t as e } from "./objectSpread2-CWwMYL_U.mjs";
|
|
2
|
-
import { t } from "./
|
|
3
|
-
import {
|
|
4
|
-
import {
|
|
5
|
-
import {
|
|
6
|
-
import "./
|
|
7
|
-
import {
|
|
8
|
-
import
|
|
9
|
-
import {
|
|
10
|
-
import {
|
|
11
|
-
import {
|
|
12
|
-
import { n as
|
|
13
|
-
import { n as
|
|
14
|
-
//#region node_modules/mermaid/node_modules/lodash-es/_arrayEach.js
|
|
15
|
-
function pe(e, t) {
|
|
16
|
-
for (var n = -1, r = e == null ? 0 : e.length; ++n < r && t(e[n], n, e) !== !1;);
|
|
17
|
-
return e;
|
|
18
|
-
}
|
|
19
|
-
//#endregion
|
|
20
|
-
//#region node_modules/mermaid/node_modules/lodash-es/keys.js
|
|
21
|
-
function me(e) {
|
|
22
|
-
return T(e) ? re(e) : de(e);
|
|
23
|
-
}
|
|
24
|
-
//#endregion
|
|
25
|
-
//#region node_modules/mermaid/node_modules/lodash-es/_baseAssign.js
|
|
26
|
-
function he(e, t) {
|
|
27
|
-
return e && M(t, me(t), e);
|
|
28
|
-
}
|
|
29
|
-
//#endregion
|
|
30
|
-
//#region node_modules/mermaid/node_modules/lodash-es/_baseAssignIn.js
|
|
31
|
-
function ge(e, t) {
|
|
32
|
-
return e && M(t, O(t), e);
|
|
33
|
-
}
|
|
34
|
-
//#endregion
|
|
35
|
-
//#region node_modules/mermaid/node_modules/lodash-es/_arrayFilter.js
|
|
36
|
-
function _e(e, t) {
|
|
37
|
-
for (var n = -1, r = e == null ? 0 : e.length, i = 0, a = []; ++n < r;) {
|
|
38
|
-
var o = e[n];
|
|
39
|
-
t(o, n, e) && (a[i++] = o);
|
|
40
|
-
}
|
|
41
|
-
return a;
|
|
42
|
-
}
|
|
43
|
-
//#endregion
|
|
44
|
-
//#region node_modules/mermaid/node_modules/lodash-es/stubArray.js
|
|
45
|
-
function ve() {
|
|
46
|
-
return [];
|
|
47
|
-
}
|
|
48
|
-
//#endregion
|
|
49
|
-
//#region node_modules/mermaid/node_modules/lodash-es/_getSymbols.js
|
|
50
|
-
var ye = Object.prototype.propertyIsEnumerable, be = Object.getOwnPropertySymbols, xe = be ? function(e) {
|
|
51
|
-
return e == null ? [] : (e = Object(e), _e(be(e), function(t) {
|
|
52
|
-
return ye.call(e, t);
|
|
53
|
-
}));
|
|
54
|
-
} : ve;
|
|
55
|
-
//#endregion
|
|
56
|
-
//#region node_modules/mermaid/node_modules/lodash-es/_copySymbols.js
|
|
57
|
-
function Se(e, t) {
|
|
58
|
-
return M(e, xe(e), t);
|
|
59
|
-
}
|
|
60
|
-
//#endregion
|
|
61
|
-
//#region node_modules/mermaid/node_modules/lodash-es/_arrayPush.js
|
|
62
|
-
function Ce(e, t) {
|
|
63
|
-
for (var n = -1, r = t.length, i = e.length; ++n < r;) e[i + n] = t[n];
|
|
64
|
-
return e;
|
|
65
|
-
}
|
|
66
|
-
//#endregion
|
|
67
|
-
//#region node_modules/mermaid/node_modules/lodash-es/_getSymbolsIn.js
|
|
68
|
-
var we = Object.getOwnPropertySymbols ? function(e) {
|
|
69
|
-
for (var t = []; e;) Ce(t, xe(e)), e = te(e);
|
|
70
|
-
return t;
|
|
71
|
-
} : ve;
|
|
72
|
-
//#endregion
|
|
73
|
-
//#region node_modules/mermaid/node_modules/lodash-es/_copySymbolsIn.js
|
|
74
|
-
function Te(e, t) {
|
|
75
|
-
return M(e, we(e), t);
|
|
76
|
-
}
|
|
77
|
-
//#endregion
|
|
78
|
-
//#region node_modules/mermaid/node_modules/lodash-es/_baseGetAllKeys.js
|
|
79
|
-
function Ee(e, t, n) {
|
|
80
|
-
var r = t(e);
|
|
81
|
-
return _(e) ? r : Ce(r, n(e));
|
|
82
|
-
}
|
|
83
|
-
//#endregion
|
|
84
|
-
//#region node_modules/mermaid/node_modules/lodash-es/_getAllKeys.js
|
|
85
|
-
function De(e) {
|
|
86
|
-
return Ee(e, me, xe);
|
|
87
|
-
}
|
|
88
|
-
//#endregion
|
|
89
|
-
//#region node_modules/mermaid/node_modules/lodash-es/_getAllKeysIn.js
|
|
90
|
-
function Oe(e) {
|
|
91
|
-
return Ee(e, O, we);
|
|
92
|
-
}
|
|
93
|
-
//#endregion
|
|
94
|
-
//#region node_modules/mermaid/node_modules/lodash-es/_initCloneArray.js
|
|
95
|
-
var ke = Object.prototype.hasOwnProperty;
|
|
96
|
-
function Ae(e) {
|
|
97
|
-
var t = e.length, n = new e.constructor(t);
|
|
98
|
-
return t && typeof e[0] == "string" && ke.call(e, "index") && (n.index = e.index, n.input = e.input), n;
|
|
99
|
-
}
|
|
100
|
-
//#endregion
|
|
101
|
-
//#region node_modules/mermaid/node_modules/lodash-es/_cloneDataView.js
|
|
102
|
-
function je(e, t) {
|
|
103
|
-
var n = t ? v(e.buffer) : e.buffer;
|
|
104
|
-
return new e.constructor(n, e.byteOffset, e.byteLength);
|
|
105
|
-
}
|
|
106
|
-
//#endregion
|
|
107
|
-
//#region node_modules/mermaid/node_modules/lodash-es/_cloneRegExp.js
|
|
108
|
-
var Me = /\w*$/;
|
|
109
|
-
function Ne(e) {
|
|
110
|
-
var t = new e.constructor(e.source, Me.exec(e));
|
|
111
|
-
return t.lastIndex = e.lastIndex, t;
|
|
112
|
-
}
|
|
113
|
-
//#endregion
|
|
114
|
-
//#region node_modules/mermaid/node_modules/lodash-es/_cloneSymbol.js
|
|
115
|
-
var Pe = E ? E.prototype : void 0, Fe = Pe ? Pe.valueOf : void 0;
|
|
116
|
-
function Ie(e) {
|
|
117
|
-
return Fe ? Object(Fe.call(e)) : {};
|
|
118
|
-
}
|
|
119
|
-
//#endregion
|
|
120
|
-
//#region node_modules/mermaid/node_modules/lodash-es/_initCloneByTag.js
|
|
121
|
-
var Le = "[object Boolean]", Re = "[object Date]", ze = "[object Map]", Be = "[object Number]", Ve = "[object RegExp]", He = "[object Set]", Ue = "[object String]", We = "[object Symbol]", Ge = "[object ArrayBuffer]", Ke = "[object DataView]", qe = "[object Float32Array]", Je = "[object Float64Array]", Ye = "[object Int8Array]", Xe = "[object Int16Array]", Ze = "[object Int32Array]", Qe = "[object Uint8Array]", $e = "[object Uint8ClampedArray]", et = "[object Uint16Array]", tt = "[object Uint32Array]";
|
|
122
|
-
function nt(e, t, n) {
|
|
123
|
-
var r = e.constructor;
|
|
124
|
-
switch (t) {
|
|
125
|
-
case Ge: return v(e);
|
|
126
|
-
case Le:
|
|
127
|
-
case Re: return new r(+e);
|
|
128
|
-
case Ke: return je(e, n);
|
|
129
|
-
case qe:
|
|
130
|
-
case Je:
|
|
131
|
-
case Ye:
|
|
132
|
-
case Xe:
|
|
133
|
-
case Ze:
|
|
134
|
-
case Qe:
|
|
135
|
-
case $e:
|
|
136
|
-
case et:
|
|
137
|
-
case tt: return C(e, n);
|
|
138
|
-
case ze: return new r();
|
|
139
|
-
case Be:
|
|
140
|
-
case Ue: return new r(e);
|
|
141
|
-
case Ve: return Ne(e);
|
|
142
|
-
case He: return new r();
|
|
143
|
-
case We: return Ie(e);
|
|
144
|
-
}
|
|
145
|
-
}
|
|
146
|
-
//#endregion
|
|
147
|
-
//#region node_modules/mermaid/node_modules/lodash-es/_baseIsMap.js
|
|
148
|
-
var rt = "[object Map]";
|
|
149
|
-
function it(e) {
|
|
150
|
-
return S(e) && fe(e) == rt;
|
|
151
|
-
}
|
|
152
|
-
//#endregion
|
|
153
|
-
//#region node_modules/mermaid/node_modules/lodash-es/isMap.js
|
|
154
|
-
var at = w && w.isMap, ot = at ? g(at) : it, st = "[object Set]";
|
|
155
|
-
function ct(e) {
|
|
156
|
-
return S(e) && fe(e) == st;
|
|
157
|
-
}
|
|
158
|
-
//#endregion
|
|
159
|
-
//#region node_modules/mermaid/node_modules/lodash-es/isSet.js
|
|
160
|
-
var lt = w && w.isSet, ut = lt ? g(lt) : ct, dt = 1, ft = 2, pt = 4, mt = "[object Arguments]", ht = "[object Array]", gt = "[object Boolean]", _t = "[object Date]", vt = "[object Error]", yt = "[object Function]", bt = "[object GeneratorFunction]", xt = "[object Map]", St = "[object Number]", Ct = "[object Object]", wt = "[object RegExp]", Tt = "[object Set]", Et = "[object String]", Dt = "[object Symbol]", Ot = "[object WeakMap]", kt = "[object ArrayBuffer]", At = "[object DataView]", jt = "[object Float32Array]", Mt = "[object Float64Array]", Nt = "[object Int8Array]", Pt = "[object Int16Array]", Ft = "[object Int32Array]", It = "[object Uint8Array]", Lt = "[object Uint8ClampedArray]", Rt = "[object Uint16Array]", zt = "[object Uint32Array]", P = {};
|
|
161
|
-
P[mt] = P[ht] = P[kt] = P[At] = P[gt] = P[_t] = P[jt] = P[Mt] = P[Nt] = P[Pt] = P[Ft] = P[xt] = P[St] = P[Ct] = P[wt] = P[Tt] = P[Et] = P[Dt] = P[It] = P[Lt] = P[Rt] = P[zt] = !0, P[vt] = P[yt] = P[Ot] = !1;
|
|
162
|
-
function F(e, t, n, r, i, a) {
|
|
163
|
-
var o, s = t & dt, c = t & ft, l = t & pt;
|
|
164
|
-
if (n && (o = i ? n(e, r, i, a) : n(e)), o !== void 0) return o;
|
|
165
|
-
if (!D(e)) return e;
|
|
166
|
-
var u = _(e);
|
|
167
|
-
if (u) {
|
|
168
|
-
if (o = Ae(e), !s) return x(e, o);
|
|
169
|
-
} else {
|
|
170
|
-
var d = fe(e), f = d == yt || d == bt;
|
|
171
|
-
if (ie(e)) return y(e, s);
|
|
172
|
-
if (d == Ct || d == mt || f && !i) {
|
|
173
|
-
if (o = c || f ? {} : ne(e), !s) return c ? Te(e, ge(o, e)) : Se(e, he(o, e));
|
|
174
|
-
} else {
|
|
175
|
-
if (!P[d]) return i ? e : {};
|
|
176
|
-
o = nt(e, d, s);
|
|
177
|
-
}
|
|
178
|
-
}
|
|
179
|
-
a || (a = new b());
|
|
180
|
-
var p = a.get(e);
|
|
181
|
-
if (p) return p;
|
|
182
|
-
a.set(e, o), ut(e) ? e.forEach(function(r) {
|
|
183
|
-
o.add(F(r, t, n, r, e, a));
|
|
184
|
-
}) : ot(e) && e.forEach(function(r, i) {
|
|
185
|
-
o.set(i, F(r, t, n, i, e, a));
|
|
186
|
-
});
|
|
187
|
-
var m = u ? void 0 : (l ? c ? Oe : De : c ? O : me)(e);
|
|
188
|
-
return pe(m || e, function(r, i) {
|
|
189
|
-
m && (i = r, r = e[i]), k(o, i, F(r, t, n, i, e, a));
|
|
190
|
-
}), o;
|
|
191
|
-
}
|
|
192
|
-
//#endregion
|
|
193
|
-
//#region node_modules/mermaid/node_modules/lodash-es/clone.js
|
|
194
|
-
var Bt = 4;
|
|
195
|
-
function Vt(e) {
|
|
196
|
-
return F(e, Bt);
|
|
197
|
-
}
|
|
198
|
-
//#endregion
|
|
2
|
+
import { T as t, c as n, h as r, i } from "./chunk-5PVQY5BW-BP7ENjg7.mjs";
|
|
3
|
+
import { t as a } from "./clone-CUNvBGto.mjs";
|
|
4
|
+
import { t as o } from "./graphlib-BXNPwKuI.mjs";
|
|
5
|
+
import { g as s, h as c, p as l } from "./src-B3rrEIze.mjs";
|
|
6
|
+
import { D as u, L as d, a as f, b as p, c as m, nt as h, s as g, w as _, y as v } from "./chunk-ICPOFSXX-BOvOTlG6.mjs";
|
|
7
|
+
import { t as y } from "./channel-Zp_OyvEW.mjs";
|
|
8
|
+
import "./dist-X14EnMrO.mjs";
|
|
9
|
+
import { t as b } from "./line-CuvDsrkE.mjs";
|
|
10
|
+
import { n as x } from "./chunk-U2HBQHQK-DiQOEtQH.mjs";
|
|
11
|
+
import { t as S } from "./chunk-FMBD7UC4-D_RQlBGX.mjs";
|
|
12
|
+
import { n as C, t as w } from "./chunk-BSJP7CBP-DGU2WHwh.mjs";
|
|
13
|
+
import { n as T, t as E } from "./chunk-ZZ45TVLE-D28EyJ6R.mjs";
|
|
199
14
|
//#region node_modules/mermaid/dist/chunks/mermaid.core/blockDiagram-DXYQGD6D.mjs
|
|
200
|
-
var
|
|
201
|
-
var t = /* @__PURE__ */
|
|
15
|
+
var D, O, k = (function() {
|
|
16
|
+
var t = /* @__PURE__ */ c(function(e, t, n, r) {
|
|
202
17
|
for (n = n || {}, r = e.length; r--; n[e[r]] = t);
|
|
203
18
|
return n;
|
|
204
|
-
}, "o"), n = [1, 15],
|
|
19
|
+
}, "o"), n = [1, 15], r = [1, 7], i = [1, 13], a = [1, 14], o = [1, 19], s = [1, 16], l = [1, 17], u = [1, 18], d = [8, 30], f = [
|
|
205
20
|
8,
|
|
206
21
|
10,
|
|
207
22
|
21,
|
|
@@ -240,7 +55,7 @@ var Ht, I, Ut = (function() {
|
|
|
240
55
|
43,
|
|
241
56
|
46
|
|
242
57
|
], _ = [1, 49], v = {
|
|
243
|
-
trace: /* @__PURE__ */
|
|
58
|
+
trace: /* @__PURE__ */ c(function() {}, "trace"),
|
|
244
59
|
yy: {},
|
|
245
60
|
symbols_: {
|
|
246
61
|
error: 2,
|
|
@@ -367,7 +182,7 @@ var Ht, I, Ut = (function() {
|
|
|
367
182
|
[24, 3],
|
|
368
183
|
[25, 3]
|
|
369
184
|
],
|
|
370
|
-
performAction: /* @__PURE__ */
|
|
185
|
+
performAction: /* @__PURE__ */ c(function(t, n, r, i, a, o, s) {
|
|
371
186
|
var c = o.length - 1;
|
|
372
187
|
switch (a) {
|
|
373
188
|
case 4:
|
|
@@ -554,16 +369,16 @@ var Ht, I, Ut = (function() {
|
|
|
554
369
|
13: 4,
|
|
555
370
|
19: 5,
|
|
556
371
|
20: 6,
|
|
557
|
-
21:
|
|
372
|
+
21: r,
|
|
558
373
|
22: 8,
|
|
559
374
|
23: 9,
|
|
560
375
|
24: 10,
|
|
561
376
|
25: 11,
|
|
562
377
|
26: 12,
|
|
563
|
-
28:
|
|
564
|
-
29:
|
|
565
|
-
31:
|
|
566
|
-
39:
|
|
378
|
+
28: i,
|
|
379
|
+
29: a,
|
|
380
|
+
31: o,
|
|
381
|
+
39: s,
|
|
567
382
|
43: l,
|
|
568
383
|
46: u
|
|
569
384
|
},
|
|
@@ -579,11 +394,11 @@ var Ht, I, Ut = (function() {
|
|
|
579
394
|
26: 12,
|
|
580
395
|
11: 21,
|
|
581
396
|
10: n,
|
|
582
|
-
21:
|
|
583
|
-
28:
|
|
584
|
-
29:
|
|
585
|
-
31:
|
|
586
|
-
39:
|
|
397
|
+
21: r,
|
|
398
|
+
28: i,
|
|
399
|
+
29: a,
|
|
400
|
+
31: o,
|
|
401
|
+
39: s,
|
|
587
402
|
43: l,
|
|
588
403
|
46: u
|
|
589
404
|
}),
|
|
@@ -603,7 +418,7 @@ var Ht, I, Ut = (function() {
|
|
|
603
418
|
{
|
|
604
419
|
19: 26,
|
|
605
420
|
26: 12,
|
|
606
|
-
31:
|
|
421
|
+
31: o
|
|
607
422
|
},
|
|
608
423
|
{
|
|
609
424
|
10: n,
|
|
@@ -611,16 +426,16 @@ var Ht, I, Ut = (function() {
|
|
|
611
426
|
13: 4,
|
|
612
427
|
19: 5,
|
|
613
428
|
20: 6,
|
|
614
|
-
21:
|
|
429
|
+
21: r,
|
|
615
430
|
22: 8,
|
|
616
431
|
23: 9,
|
|
617
432
|
24: 10,
|
|
618
433
|
25: 11,
|
|
619
434
|
26: 12,
|
|
620
|
-
28:
|
|
621
|
-
29:
|
|
622
|
-
31:
|
|
623
|
-
39:
|
|
435
|
+
28: i,
|
|
436
|
+
29: a,
|
|
437
|
+
31: o,
|
|
438
|
+
39: s,
|
|
624
439
|
43: l,
|
|
625
440
|
46: u
|
|
626
441
|
},
|
|
@@ -639,7 +454,7 @@ var Ht, I, Ut = (function() {
|
|
|
639
454
|
t(d, [2, 13]),
|
|
640
455
|
{
|
|
641
456
|
26: 35,
|
|
642
|
-
31:
|
|
457
|
+
31: o
|
|
643
458
|
},
|
|
644
459
|
{ 31: [2, 14] },
|
|
645
460
|
{ 17: [1, 36] },
|
|
@@ -653,16 +468,16 @@ var Ht, I, Ut = (function() {
|
|
|
653
468
|
16: m,
|
|
654
469
|
19: 5,
|
|
655
470
|
20: 6,
|
|
656
|
-
21:
|
|
471
|
+
21: r,
|
|
657
472
|
22: 8,
|
|
658
473
|
23: 9,
|
|
659
474
|
24: 10,
|
|
660
475
|
25: 11,
|
|
661
476
|
26: 12,
|
|
662
|
-
28:
|
|
663
|
-
29:
|
|
664
|
-
31:
|
|
665
|
-
39:
|
|
477
|
+
28: i,
|
|
478
|
+
29: a,
|
|
479
|
+
31: o,
|
|
480
|
+
39: s,
|
|
666
481
|
43: l,
|
|
667
482
|
46: u
|
|
668
483
|
},
|
|
@@ -706,63 +521,63 @@ var Ht, I, Ut = (function() {
|
|
|
706
521
|
50: [2, 15],
|
|
707
522
|
52: [2, 32]
|
|
708
523
|
},
|
|
709
|
-
parseError: /* @__PURE__ */
|
|
524
|
+
parseError: /* @__PURE__ */ c(function(e, t) {
|
|
710
525
|
if (t.recoverable) this.trace(e);
|
|
711
526
|
else {
|
|
712
527
|
var n = Error(e);
|
|
713
528
|
throw n.hash = t, n;
|
|
714
529
|
}
|
|
715
530
|
}, "parseError"),
|
|
716
|
-
parse: /* @__PURE__ */
|
|
717
|
-
var t = this, n = [0],
|
|
531
|
+
parse: /* @__PURE__ */ c(function(e) {
|
|
532
|
+
var t = this, n = [0], r = [], i = [null], a = [], o = this.table, s = "", l = 0, u = 0, d = 0, f = 2, p = 1, m = a.slice.call(arguments, 1), h = Object.create(this.lexer), g = { yy: {} };
|
|
718
533
|
for (var _ in this.yy) Object.prototype.hasOwnProperty.call(this.yy, _) && (g.yy[_] = this.yy[_]);
|
|
719
534
|
h.setInput(e, g.yy), g.yy.lexer = h, g.yy.parser = this, h.yylloc === void 0 && (h.yylloc = {});
|
|
720
535
|
var v = h.yylloc;
|
|
721
|
-
|
|
536
|
+
a.push(v);
|
|
722
537
|
var y = h.options && h.options.ranges;
|
|
723
538
|
typeof g.yy.parseError == "function" ? this.parseError = g.yy.parseError : this.parseError = Object.getPrototypeOf(this).parseError;
|
|
724
539
|
function b(e) {
|
|
725
|
-
n.length -= 2 * e,
|
|
540
|
+
n.length -= 2 * e, i.length -= e, a.length -= e;
|
|
726
541
|
}
|
|
727
|
-
|
|
542
|
+
c(b, "popStack");
|
|
728
543
|
function x() {
|
|
729
|
-
var e =
|
|
730
|
-
return typeof e != "number" && (e instanceof Array && (
|
|
544
|
+
var e = r.pop() || h.lex() || p;
|
|
545
|
+
return typeof e != "number" && (e instanceof Array && (r = e, e = r.pop()), e = t.symbols_[e] || e), e;
|
|
731
546
|
}
|
|
732
|
-
|
|
733
|
-
for (var S, C, w, T, E, D = {}, O, k,
|
|
734
|
-
if (w = n[n.length - 1], this.defaultActions[w] ? T = this.defaultActions[w] : (S == null && (S = x()), T =
|
|
735
|
-
var
|
|
736
|
-
for (O in
|
|
737
|
-
|
|
547
|
+
c(x, "lex");
|
|
548
|
+
for (var S, C, w, T, E, D = {}, O, k, A, j;;) {
|
|
549
|
+
if (w = n[n.length - 1], this.defaultActions[w] ? T = this.defaultActions[w] : (S == null && (S = x()), T = o[w] && o[w][S]), T === void 0 || !T.length || !T[0]) {
|
|
550
|
+
var M = "";
|
|
551
|
+
for (O in j = [], o[w]) this.terminals_[O] && O > f && j.push("'" + this.terminals_[O] + "'");
|
|
552
|
+
M = h.showPosition ? "Parse error on line " + (l + 1) + ":\n" + h.showPosition() + "\nExpecting " + j.join(", ") + ", got '" + (this.terminals_[S] || S) + "'" : "Parse error on line " + (l + 1) + ": Unexpected " + (S == p ? "end of input" : "'" + (this.terminals_[S] || S) + "'"), this.parseError(M, {
|
|
738
553
|
text: h.match,
|
|
739
554
|
token: this.terminals_[S] || S,
|
|
740
555
|
line: h.yylineno,
|
|
741
556
|
loc: v,
|
|
742
|
-
expected:
|
|
557
|
+
expected: j
|
|
743
558
|
});
|
|
744
559
|
}
|
|
745
560
|
if (T[0] instanceof Array && T.length > 1) throw Error("Parse Error: multiple actions possible at state: " + w + ", token: " + S);
|
|
746
561
|
switch (T[0]) {
|
|
747
562
|
case 1:
|
|
748
|
-
n.push(S),
|
|
563
|
+
n.push(S), i.push(h.yytext), a.push(h.yylloc), n.push(T[1]), S = null, C ? (S = C, C = null) : (u = h.yyleng, s = h.yytext, l = h.yylineno, v = h.yylloc, d > 0 && d--);
|
|
749
564
|
break;
|
|
750
565
|
case 2:
|
|
751
|
-
if (k = this.productions_[T[1]][1], D.$ =
|
|
752
|
-
first_line:
|
|
753
|
-
last_line:
|
|
754
|
-
first_column:
|
|
755
|
-
last_column:
|
|
756
|
-
}, y && (D._$.range = [
|
|
757
|
-
|
|
566
|
+
if (k = this.productions_[T[1]][1], D.$ = i[i.length - k], D._$ = {
|
|
567
|
+
first_line: a[a.length - (k || 1)].first_line,
|
|
568
|
+
last_line: a[a.length - 1].last_line,
|
|
569
|
+
first_column: a[a.length - (k || 1)].first_column,
|
|
570
|
+
last_column: a[a.length - 1].last_column
|
|
571
|
+
}, y && (D._$.range = [a[a.length - (k || 1)].range[0], a[a.length - 1].range[1]]), E = this.performAction.apply(D, [
|
|
572
|
+
s,
|
|
758
573
|
u,
|
|
759
574
|
l,
|
|
760
575
|
g.yy,
|
|
761
576
|
T[1],
|
|
762
|
-
|
|
763
|
-
|
|
577
|
+
i,
|
|
578
|
+
a
|
|
764
579
|
].concat(m)), E !== void 0) return E;
|
|
765
|
-
k && (n = n.slice(0, -1 * k * 2),
|
|
580
|
+
k && (n = n.slice(0, -1 * k * 2), i = i.slice(0, -1 * k), a = a.slice(0, -1 * k)), n.push(this.productions_[T[1]][0]), i.push(D.$), a.push(D._$), A = o[n[n.length - 2]][n[n.length - 1]], n.push(A);
|
|
766
581
|
break;
|
|
767
582
|
case 3: return !0;
|
|
768
583
|
}
|
|
@@ -773,11 +588,11 @@ var Ht, I, Ut = (function() {
|
|
|
773
588
|
v.lexer = /* @__PURE__ */ (function() {
|
|
774
589
|
return {
|
|
775
590
|
EOF: 1,
|
|
776
|
-
parseError: /* @__PURE__ */
|
|
591
|
+
parseError: /* @__PURE__ */ c(function(e, t) {
|
|
777
592
|
if (this.yy.parser) this.yy.parser.parseError(e, t);
|
|
778
593
|
else throw Error(e);
|
|
779
594
|
}, "parseError"),
|
|
780
|
-
setInput: /* @__PURE__ */
|
|
595
|
+
setInput: /* @__PURE__ */ c(function(e, t) {
|
|
781
596
|
return this.yy = t || this.yy || {}, this._input = e, this._more = this._backtrack = this.done = !1, this.yylineno = this.yyleng = 0, this.yytext = this.matched = this.match = "", this.conditionStack = ["INITIAL"], this.yylloc = {
|
|
782
597
|
first_line: 1,
|
|
783
598
|
first_column: 0,
|
|
@@ -785,11 +600,11 @@ var Ht, I, Ut = (function() {
|
|
|
785
600
|
last_column: 0
|
|
786
601
|
}, this.options.ranges && (this.yylloc.range = [0, 0]), this.offset = 0, this;
|
|
787
602
|
}, "setInput"),
|
|
788
|
-
input: /* @__PURE__ */
|
|
603
|
+
input: /* @__PURE__ */ c(function() {
|
|
789
604
|
var e = this._input[0];
|
|
790
605
|
return this.yytext += e, this.yyleng++, this.offset++, this.match += e, this.matched += e, e.match(/(?:\r\n?|\n).*/g) ? (this.yylineno++, this.yylloc.last_line++) : this.yylloc.last_column++, this.options.ranges && this.yylloc.range[1]++, this._input = this._input.slice(1), e;
|
|
791
606
|
}, "input"),
|
|
792
|
-
unput: /* @__PURE__ */
|
|
607
|
+
unput: /* @__PURE__ */ c(function(e) {
|
|
793
608
|
var t = e.length, n = e.split(/(?:\r\n?|\n)/g);
|
|
794
609
|
this._input = e + this._input, this.yytext = this.yytext.substr(0, this.yytext.length - t), this.offset -= t;
|
|
795
610
|
var r = this.match.split(/(?:\r\n?|\n)/g);
|
|
@@ -802,10 +617,10 @@ var Ht, I, Ut = (function() {
|
|
|
802
617
|
last_column: n ? (n.length === r.length ? this.yylloc.first_column : 0) + r[r.length - n.length].length - n[0].length : this.yylloc.first_column - t
|
|
803
618
|
}, this.options.ranges && (this.yylloc.range = [i[0], i[0] + this.yyleng - t]), this.yyleng = this.yytext.length, this;
|
|
804
619
|
}, "unput"),
|
|
805
|
-
more: /* @__PURE__ */
|
|
620
|
+
more: /* @__PURE__ */ c(function() {
|
|
806
621
|
return this._more = !0, this;
|
|
807
622
|
}, "more"),
|
|
808
|
-
reject: /* @__PURE__ */
|
|
623
|
+
reject: /* @__PURE__ */ c(function() {
|
|
809
624
|
if (this.options.backtrack_lexer) this._backtrack = !0;
|
|
810
625
|
else return this.parseError("Lexical error on line " + (this.yylineno + 1) + ". You can only invoke reject() in the lexer when the lexer is of the backtracking persuasion (options.backtrack_lexer = true).\n" + this.showPosition(), {
|
|
811
626
|
text: "",
|
|
@@ -814,22 +629,22 @@ var Ht, I, Ut = (function() {
|
|
|
814
629
|
});
|
|
815
630
|
return this;
|
|
816
631
|
}, "reject"),
|
|
817
|
-
less: /* @__PURE__ */
|
|
632
|
+
less: /* @__PURE__ */ c(function(e) {
|
|
818
633
|
this.unput(this.match.slice(e));
|
|
819
634
|
}, "less"),
|
|
820
|
-
pastInput: /* @__PURE__ */
|
|
635
|
+
pastInput: /* @__PURE__ */ c(function() {
|
|
821
636
|
var e = this.matched.substr(0, this.matched.length - this.match.length);
|
|
822
637
|
return (e.length > 20 ? "..." : "") + e.substr(-20).replace(/\n/g, "");
|
|
823
638
|
}, "pastInput"),
|
|
824
|
-
upcomingInput: /* @__PURE__ */
|
|
639
|
+
upcomingInput: /* @__PURE__ */ c(function() {
|
|
825
640
|
var e = this.match;
|
|
826
641
|
return e.length < 20 && (e += this._input.substr(0, 20 - e.length)), (e.substr(0, 20) + (e.length > 20 ? "..." : "")).replace(/\n/g, "");
|
|
827
642
|
}, "upcomingInput"),
|
|
828
|
-
showPosition: /* @__PURE__ */
|
|
643
|
+
showPosition: /* @__PURE__ */ c(function() {
|
|
829
644
|
var e = this.pastInput(), t = Array(e.length + 1).join("-");
|
|
830
645
|
return e + this.upcomingInput() + "\n" + t + "^";
|
|
831
646
|
}, "showPosition"),
|
|
832
|
-
test_match: /* @__PURE__ */
|
|
647
|
+
test_match: /* @__PURE__ */ c(function(e, t) {
|
|
833
648
|
var n, r, i;
|
|
834
649
|
if (this.options.backtrack_lexer && (i = {
|
|
835
650
|
yylineno: this.yylineno,
|
|
@@ -862,7 +677,7 @@ var Ht, I, Ut = (function() {
|
|
|
862
677
|
}
|
|
863
678
|
return !1;
|
|
864
679
|
}, "test_match"),
|
|
865
|
-
next: /* @__PURE__ */
|
|
680
|
+
next: /* @__PURE__ */ c(function() {
|
|
866
681
|
if (this.done) return this.EOF;
|
|
867
682
|
this._input || (this.done = !0);
|
|
868
683
|
var e, t, n, r;
|
|
@@ -882,29 +697,29 @@ var Ht, I, Ut = (function() {
|
|
|
882
697
|
line: this.yylineno
|
|
883
698
|
});
|
|
884
699
|
}, "next"),
|
|
885
|
-
lex: /* @__PURE__ */
|
|
700
|
+
lex: /* @__PURE__ */ c(function() {
|
|
886
701
|
return this.next() || this.lex();
|
|
887
702
|
}, "lex"),
|
|
888
|
-
begin: /* @__PURE__ */
|
|
703
|
+
begin: /* @__PURE__ */ c(function(e) {
|
|
889
704
|
this.conditionStack.push(e);
|
|
890
705
|
}, "begin"),
|
|
891
|
-
popState: /* @__PURE__ */
|
|
706
|
+
popState: /* @__PURE__ */ c(function() {
|
|
892
707
|
return this.conditionStack.length - 1 > 0 ? this.conditionStack.pop() : this.conditionStack[0];
|
|
893
708
|
}, "popState"),
|
|
894
|
-
_currentRules: /* @__PURE__ */
|
|
709
|
+
_currentRules: /* @__PURE__ */ c(function() {
|
|
895
710
|
return this.conditionStack.length && this.conditionStack[this.conditionStack.length - 1] ? this.conditions[this.conditionStack[this.conditionStack.length - 1]].rules : this.conditions.INITIAL.rules;
|
|
896
711
|
}, "_currentRules"),
|
|
897
|
-
topState: /* @__PURE__ */
|
|
712
|
+
topState: /* @__PURE__ */ c(function(e) {
|
|
898
713
|
return e = this.conditionStack.length - 1 - Math.abs(e || 0), e >= 0 ? this.conditionStack[e] : "INITIAL";
|
|
899
714
|
}, "topState"),
|
|
900
|
-
pushState: /* @__PURE__ */
|
|
715
|
+
pushState: /* @__PURE__ */ c(function(e) {
|
|
901
716
|
this.begin(e);
|
|
902
717
|
}, "pushState"),
|
|
903
|
-
stateStackSize: /* @__PURE__ */
|
|
718
|
+
stateStackSize: /* @__PURE__ */ c(function() {
|
|
904
719
|
return this.conditionStack.length;
|
|
905
720
|
}, "stateStackSize"),
|
|
906
721
|
options: {},
|
|
907
|
-
performAction: /* @__PURE__ */
|
|
722
|
+
performAction: /* @__PURE__ */ c(function(e, t, n, r) {
|
|
908
723
|
switch (n) {
|
|
909
724
|
case 0: return e.getLogger().debug("Found block-beta"), 10;
|
|
910
725
|
case 1: return e.getLogger().debug("Found id-block"), 29;
|
|
@@ -1328,94 +1143,94 @@ var Ht, I, Ut = (function() {
|
|
|
1328
1143
|
function y() {
|
|
1329
1144
|
this.yy = {};
|
|
1330
1145
|
}
|
|
1331
|
-
return
|
|
1146
|
+
return c(y, "Parser"), y.prototype = v, v.Parser = y, new y();
|
|
1332
1147
|
})();
|
|
1333
|
-
|
|
1334
|
-
var
|
|
1335
|
-
let n =
|
|
1148
|
+
k.parser = k;
|
|
1149
|
+
var A = k, j = /* @__PURE__ */ new Map(), M = [], N = /* @__PURE__ */ new Map(), ee = "color", te = "fill", ne = "bgFill", re = ",", ie = p(), P = /* @__PURE__ */ new Map(), F = "", ae = /* @__PURE__ */ c((e) => g.sanitizeText(e, ie), "sanitizeText"), oe = /* @__PURE__ */ c(function(e, t = "") {
|
|
1150
|
+
let n = P.get(e);
|
|
1336
1151
|
n || (n = {
|
|
1337
1152
|
id: e,
|
|
1338
1153
|
styles: [],
|
|
1339
1154
|
textStyles: []
|
|
1340
|
-
},
|
|
1155
|
+
}, P.set(e, n)), t != null && t.split(re).forEach((e) => {
|
|
1341
1156
|
let t = e.replace(/([^;]*);/, "$1").trim();
|
|
1342
|
-
if (RegExp(
|
|
1343
|
-
let e = t.replace(
|
|
1157
|
+
if (RegExp(ee).exec(e)) {
|
|
1158
|
+
let e = t.replace(te, ne).replace(ee, te);
|
|
1344
1159
|
n.textStyles.push(e);
|
|
1345
1160
|
}
|
|
1346
1161
|
n.styles.push(t);
|
|
1347
1162
|
});
|
|
1348
|
-
}, "addStyleClass"),
|
|
1349
|
-
let n =
|
|
1350
|
-
t != null && (n.styles = t.split(
|
|
1351
|
-
}, "addStyle2Node"),
|
|
1163
|
+
}, "addStyleClass"), se = /* @__PURE__ */ c(function(e, t = "") {
|
|
1164
|
+
let n = j.get(e);
|
|
1165
|
+
t != null && (n.styles = t.split(re));
|
|
1166
|
+
}, "addStyle2Node"), ce = /* @__PURE__ */ c(function(e, t) {
|
|
1352
1167
|
e.split(",").forEach(function(e) {
|
|
1353
|
-
let n =
|
|
1168
|
+
let n = j.get(e);
|
|
1354
1169
|
if (n === void 0) {
|
|
1355
1170
|
let t = e.trim();
|
|
1356
1171
|
n = {
|
|
1357
1172
|
id: t,
|
|
1358
1173
|
type: "na",
|
|
1359
1174
|
children: []
|
|
1360
|
-
},
|
|
1175
|
+
}, j.set(t, n);
|
|
1361
1176
|
}
|
|
1362
1177
|
n.classes || (n.classes = []), n.classes.push(t);
|
|
1363
1178
|
});
|
|
1364
|
-
}, "setCssClass"),
|
|
1365
|
-
var
|
|
1366
|
-
let
|
|
1367
|
-
for (let e of
|
|
1368
|
-
if (typeof
|
|
1369
|
-
|
|
1179
|
+
}, "setCssClass"), le = /* @__PURE__ */ c((e, t) => {
|
|
1180
|
+
var n;
|
|
1181
|
+
let r = e.flat(), i = [], o = r.find((e) => (e == null ? void 0 : e.type) === "column-setting"), c = (n = o == null ? void 0 : o.columns) == null ? -1 : n;
|
|
1182
|
+
for (let e of r) {
|
|
1183
|
+
if (typeof c == "number" && c > 0 && e.type !== "column-setting" && typeof e.widthInColumns == "number" && e.widthInColumns > c && s.warn(`Block ${e.id} width ${e.widthInColumns} exceeds configured column width ${c}`), e.label && (e.label = ae(e.label)), e.type === "classDef") {
|
|
1184
|
+
oe(e.id, e.css);
|
|
1370
1185
|
continue;
|
|
1371
1186
|
}
|
|
1372
1187
|
if (e.type === "applyClass") {
|
|
1373
|
-
var
|
|
1374
|
-
|
|
1188
|
+
var l;
|
|
1189
|
+
ce(e.id, (l = e == null ? void 0 : e.styleClass) == null ? "" : l);
|
|
1375
1190
|
continue;
|
|
1376
1191
|
}
|
|
1377
1192
|
if (e.type === "applyStyles") {
|
|
1378
|
-
e != null && e.stylesStr &&
|
|
1193
|
+
e != null && e.stylesStr && se(e.id, e == null ? void 0 : e.stylesStr);
|
|
1379
1194
|
continue;
|
|
1380
1195
|
}
|
|
1381
1196
|
if (e.type === "column-setting") {
|
|
1382
|
-
var l;
|
|
1383
|
-
t.columns = (l = e.columns) == null ? -1 : l;
|
|
1384
|
-
} else if (e.type === "edge") {
|
|
1385
1197
|
var u;
|
|
1386
|
-
|
|
1387
|
-
|
|
1198
|
+
t.columns = (u = e.columns) == null ? -1 : u;
|
|
1199
|
+
} else if (e.type === "edge") {
|
|
1200
|
+
var d;
|
|
1201
|
+
let t = ((d = N.get(e.id)) == null ? 0 : d) + 1;
|
|
1202
|
+
N.set(e.id, t), e.id = t + "-" + e.id, M.push(e);
|
|
1388
1203
|
} else {
|
|
1389
1204
|
e.label || (e.type === "composite" ? e.label = "" : e.label = e.id);
|
|
1390
|
-
let t =
|
|
1391
|
-
if (t === void 0 ?
|
|
1392
|
-
var
|
|
1393
|
-
let t = (
|
|
1205
|
+
let t = j.get(e.id);
|
|
1206
|
+
if (t === void 0 ? j.set(e.id, e) : (e.type !== "na" && (t.type = e.type), e.label !== e.id && (t.label = e.label)), e.children && le(e.children, e), e.type === "space") {
|
|
1207
|
+
var f;
|
|
1208
|
+
let t = (f = e.width) == null ? 1 : f;
|
|
1394
1209
|
for (let n = 0; n < t; n++) {
|
|
1395
|
-
let t =
|
|
1396
|
-
t.id = t.id + "-" + n,
|
|
1210
|
+
let t = a(e);
|
|
1211
|
+
t.id = t.id + "-" + n, j.set(t.id, t), i.push(t);
|
|
1397
1212
|
}
|
|
1398
|
-
} else t === void 0 &&
|
|
1213
|
+
} else t === void 0 && i.push(e);
|
|
1399
1214
|
}
|
|
1400
1215
|
}
|
|
1401
|
-
t.children =
|
|
1402
|
-
}, "populateBlockDatabase"),
|
|
1216
|
+
t.children = i;
|
|
1217
|
+
}, "populateBlockDatabase"), I = [], L = {
|
|
1403
1218
|
id: "root",
|
|
1404
1219
|
type: "composite",
|
|
1405
1220
|
children: [],
|
|
1406
1221
|
columns: -1
|
|
1407
|
-
},
|
|
1408
|
-
|
|
1222
|
+
}, ue = /* @__PURE__ */ c(() => {
|
|
1223
|
+
s.debug("Clear called"), f(), L = {
|
|
1409
1224
|
id: "root",
|
|
1410
1225
|
type: "composite",
|
|
1411
1226
|
children: [],
|
|
1412
1227
|
columns: -1
|
|
1413
|
-
},
|
|
1228
|
+
}, j = /* @__PURE__ */ new Map([["root", L]]), I = [], P = /* @__PURE__ */ new Map(), M = [], N = /* @__PURE__ */ new Map(), F = "";
|
|
1414
1229
|
}, "clear");
|
|
1415
|
-
function
|
|
1416
|
-
switch (
|
|
1230
|
+
function de(e) {
|
|
1231
|
+
switch (s.debug("typeStr2Type", e), e) {
|
|
1417
1232
|
case "[]": return "square";
|
|
1418
|
-
case "()": return
|
|
1233
|
+
case "()": return s.debug("we have a round"), "round";
|
|
1419
1234
|
case "(())": return "circle";
|
|
1420
1235
|
case ">]": return "rect_left_inv_arrow";
|
|
1421
1236
|
case "{}": return "diamond";
|
|
@@ -1432,15 +1247,15 @@ function on(e) {
|
|
|
1432
1247
|
default: return "na";
|
|
1433
1248
|
}
|
|
1434
1249
|
}
|
|
1435
|
-
|
|
1436
|
-
function
|
|
1437
|
-
switch (
|
|
1250
|
+
c(de, "typeStr2Type");
|
|
1251
|
+
function fe(e) {
|
|
1252
|
+
switch (s.debug("typeStr2Type", e), e) {
|
|
1438
1253
|
case "==": return "thick";
|
|
1439
1254
|
default: return "normal";
|
|
1440
1255
|
}
|
|
1441
1256
|
}
|
|
1442
|
-
|
|
1443
|
-
function
|
|
1257
|
+
c(fe, "edgeTypeStr2Type");
|
|
1258
|
+
function pe(e) {
|
|
1444
1259
|
switch (e.replace(/^[\s-]+|[\s-]+$/g, "")) {
|
|
1445
1260
|
case "x": return "arrow_cross";
|
|
1446
1261
|
case "o": return "arrow_circle";
|
|
@@ -1448,40 +1263,40 @@ function cn(e) {
|
|
|
1448
1263
|
default: return "";
|
|
1449
1264
|
}
|
|
1450
1265
|
}
|
|
1451
|
-
|
|
1452
|
-
var
|
|
1453
|
-
getConfig: /* @__PURE__ */
|
|
1454
|
-
typeStr2Type:
|
|
1455
|
-
edgeTypeStr2Type:
|
|
1456
|
-
edgeStrToEdgeData:
|
|
1457
|
-
getLogger: /* @__PURE__ */
|
|
1458
|
-
getBlocksFlat: /* @__PURE__ */
|
|
1459
|
-
getBlocks: /* @__PURE__ */
|
|
1460
|
-
getEdges: /* @__PURE__ */
|
|
1461
|
-
setHierarchy: /* @__PURE__ */
|
|
1462
|
-
|
|
1266
|
+
c(pe, "edgeStrToEdgeData");
|
|
1267
|
+
var me = 0, he = {
|
|
1268
|
+
getConfig: /* @__PURE__ */ c(() => v().block, "getConfig"),
|
|
1269
|
+
typeStr2Type: de,
|
|
1270
|
+
edgeTypeStr2Type: fe,
|
|
1271
|
+
edgeStrToEdgeData: pe,
|
|
1272
|
+
getLogger: /* @__PURE__ */ c(() => s, "getLogger"),
|
|
1273
|
+
getBlocksFlat: /* @__PURE__ */ c(() => [...j.values()], "getBlocksFlat"),
|
|
1274
|
+
getBlocks: /* @__PURE__ */ c(() => I || [], "getBlocks"),
|
|
1275
|
+
getEdges: /* @__PURE__ */ c(() => M, "getEdges"),
|
|
1276
|
+
setHierarchy: /* @__PURE__ */ c((e) => {
|
|
1277
|
+
L.children = e, le(e, L), I = L.children;
|
|
1463
1278
|
}, "setHierarchy"),
|
|
1464
|
-
getBlock: /* @__PURE__ */
|
|
1465
|
-
setBlock: /* @__PURE__ */
|
|
1466
|
-
|
|
1279
|
+
getBlock: /* @__PURE__ */ c((e) => j.get(e), "getBlock"),
|
|
1280
|
+
setBlock: /* @__PURE__ */ c((e) => {
|
|
1281
|
+
j.set(e.id, e);
|
|
1467
1282
|
}, "setBlock"),
|
|
1468
|
-
getColumns: /* @__PURE__ */
|
|
1469
|
-
let t =
|
|
1283
|
+
getColumns: /* @__PURE__ */ c((e) => {
|
|
1284
|
+
let t = j.get(e);
|
|
1470
1285
|
return t ? t.columns ? t.columns : t.children ? t.children.length : -1 : -1;
|
|
1471
1286
|
}, "getColumns"),
|
|
1472
|
-
getClasses: /* @__PURE__ */
|
|
1473
|
-
return
|
|
1287
|
+
getClasses: /* @__PURE__ */ c(function() {
|
|
1288
|
+
return P;
|
|
1474
1289
|
}, "getClasses"),
|
|
1475
|
-
clear:
|
|
1476
|
-
generateId: /* @__PURE__ */
|
|
1477
|
-
setDiagramId: /* @__PURE__ */
|
|
1478
|
-
|
|
1290
|
+
clear: ue,
|
|
1291
|
+
generateId: /* @__PURE__ */ c(() => (me++, "id-" + Math.random().toString(36).substr(2, 12) + "-" + me), "generateId"),
|
|
1292
|
+
setDiagramId: /* @__PURE__ */ c((e) => {
|
|
1293
|
+
F = e;
|
|
1479
1294
|
}, "setDiagramId"),
|
|
1480
|
-
getDiagramId: /* @__PURE__ */
|
|
1481
|
-
},
|
|
1482
|
-
let n =
|
|
1483
|
-
return
|
|
1484
|
-
}, "fade"),
|
|
1295
|
+
getDiagramId: /* @__PURE__ */ c(() => F, "getDiagramId")
|
|
1296
|
+
}, R = /* @__PURE__ */ c((e, t) => {
|
|
1297
|
+
let n = y;
|
|
1298
|
+
return h(n(e, "r"), n(e, "g"), n(e, "b"), t);
|
|
1299
|
+
}, "fade"), ge = /* @__PURE__ */ c((e) => `.label {
|
|
1485
1300
|
font-family: ${e.fontFamily};
|
|
1486
1301
|
color: ${e.nodeTextColor || e.textColor};
|
|
1487
1302
|
}
|
|
@@ -1566,9 +1381,9 @@ var ln = 0, un = {
|
|
|
1566
1381
|
}
|
|
1567
1382
|
|
|
1568
1383
|
.node .cluster {
|
|
1569
|
-
// fill: ${
|
|
1570
|
-
fill: ${
|
|
1571
|
-
stroke: ${
|
|
1384
|
+
// fill: ${R(e.mainBkg, .5)};
|
|
1385
|
+
fill: ${R(e.clusterBkg, .5)};
|
|
1386
|
+
stroke: ${R(e.clusterBorder, .2)};
|
|
1572
1387
|
box-shadow: rgba(50, 50, 93, 0.25) 0px 13px 27px -5px, rgba(0, 0, 0, 0.3) 0px 8px 16px -8px;
|
|
1573
1388
|
stroke-width: 1px;
|
|
1574
1389
|
}
|
|
@@ -1603,41 +1418,41 @@ var ln = 0, un = {
|
|
|
1603
1418
|
font-size: 18px;
|
|
1604
1419
|
fill: ${e.textColor};
|
|
1605
1420
|
}
|
|
1606
|
-
${
|
|
1607
|
-
`, "getStyles"),
|
|
1421
|
+
${S()}
|
|
1422
|
+
`, "getStyles"), _e = /* @__PURE__ */ c((e, t, n, r) => {
|
|
1608
1423
|
t.forEach((t) => {
|
|
1609
|
-
|
|
1424
|
+
ve[t](e, n, r);
|
|
1610
1425
|
});
|
|
1611
|
-
}, "insertMarkers"),
|
|
1612
|
-
extension: /* @__PURE__ */
|
|
1613
|
-
|
|
1426
|
+
}, "insertMarkers"), ve = {
|
|
1427
|
+
extension: /* @__PURE__ */ c((e, t, n) => {
|
|
1428
|
+
s.trace("Making markers for ", n), e.append("defs").append("marker").attr("id", n + "_" + t + "-extensionStart").attr("class", "marker extension " + t).attr("refX", 18).attr("refY", 7).attr("markerWidth", 190).attr("markerHeight", 240).attr("orient", "auto").append("path").attr("d", "M 1,7 L18,13 V 1 Z"), e.append("defs").append("marker").attr("id", n + "_" + t + "-extensionEnd").attr("class", "marker extension " + t).attr("refX", 1).attr("refY", 7).attr("markerWidth", 20).attr("markerHeight", 28).attr("orient", "auto").append("path").attr("d", "M 1,1 V 13 L18,7 Z");
|
|
1614
1429
|
}, "extension"),
|
|
1615
|
-
composition: /* @__PURE__ */
|
|
1430
|
+
composition: /* @__PURE__ */ c((e, t, n) => {
|
|
1616
1431
|
e.append("defs").append("marker").attr("id", n + "_" + t + "-compositionStart").attr("class", "marker composition " + t).attr("refX", 18).attr("refY", 7).attr("markerWidth", 190).attr("markerHeight", 240).attr("orient", "auto").append("path").attr("d", "M 18,7 L9,13 L1,7 L9,1 Z"), e.append("defs").append("marker").attr("id", n + "_" + t + "-compositionEnd").attr("class", "marker composition " + t).attr("refX", 1).attr("refY", 7).attr("markerWidth", 20).attr("markerHeight", 28).attr("orient", "auto").append("path").attr("d", "M 18,7 L9,13 L1,7 L9,1 Z");
|
|
1617
1432
|
}, "composition"),
|
|
1618
|
-
aggregation: /* @__PURE__ */
|
|
1433
|
+
aggregation: /* @__PURE__ */ c((e, t, n) => {
|
|
1619
1434
|
e.append("defs").append("marker").attr("id", n + "_" + t + "-aggregationStart").attr("class", "marker aggregation " + t).attr("refX", 18).attr("refY", 7).attr("markerWidth", 190).attr("markerHeight", 240).attr("orient", "auto").append("path").attr("d", "M 18,7 L9,13 L1,7 L9,1 Z"), e.append("defs").append("marker").attr("id", n + "_" + t + "-aggregationEnd").attr("class", "marker aggregation " + t).attr("refX", 1).attr("refY", 7).attr("markerWidth", 20).attr("markerHeight", 28).attr("orient", "auto").append("path").attr("d", "M 18,7 L9,13 L1,7 L9,1 Z");
|
|
1620
1435
|
}, "aggregation"),
|
|
1621
|
-
dependency: /* @__PURE__ */
|
|
1436
|
+
dependency: /* @__PURE__ */ c((e, t, n) => {
|
|
1622
1437
|
e.append("defs").append("marker").attr("id", n + "_" + t + "-dependencyStart").attr("class", "marker dependency " + t).attr("refX", 6).attr("refY", 7).attr("markerWidth", 190).attr("markerHeight", 240).attr("orient", "auto").append("path").attr("d", "M 5,7 L9,13 L1,7 L9,1 Z"), e.append("defs").append("marker").attr("id", n + "_" + t + "-dependencyEnd").attr("class", "marker dependency " + t).attr("refX", 13).attr("refY", 7).attr("markerWidth", 20).attr("markerHeight", 28).attr("orient", "auto").append("path").attr("d", "M 18,7 L9,13 L14,7 L9,1 Z");
|
|
1623
1438
|
}, "dependency"),
|
|
1624
|
-
lollipop: /* @__PURE__ */
|
|
1439
|
+
lollipop: /* @__PURE__ */ c((e, t, n) => {
|
|
1625
1440
|
e.append("defs").append("marker").attr("id", n + "_" + t + "-lollipopStart").attr("class", "marker lollipop " + t).attr("refX", 13).attr("refY", 7).attr("markerWidth", 190).attr("markerHeight", 240).attr("orient", "auto").append("circle").attr("stroke", "black").attr("fill", "transparent").attr("cx", 7).attr("cy", 7).attr("r", 6), e.append("defs").append("marker").attr("id", n + "_" + t + "-lollipopEnd").attr("class", "marker lollipop " + t).attr("refX", 1).attr("refY", 7).attr("markerWidth", 190).attr("markerHeight", 240).attr("orient", "auto").append("circle").attr("stroke", "black").attr("fill", "transparent").attr("cx", 7).attr("cy", 7).attr("r", 6);
|
|
1626
1441
|
}, "lollipop"),
|
|
1627
|
-
point: /* @__PURE__ */
|
|
1442
|
+
point: /* @__PURE__ */ c((e, t, n) => {
|
|
1628
1443
|
e.append("marker").attr("id", n + "_" + t + "-pointEnd").attr("class", "marker " + t).attr("viewBox", "0 0 10 10").attr("refX", 6).attr("refY", 5).attr("markerUnits", "userSpaceOnUse").attr("markerWidth", 12).attr("markerHeight", 12).attr("orient", "auto").append("path").attr("d", "M 0 0 L 10 5 L 0 10 z").attr("class", "arrowMarkerPath").style("stroke-width", 1).style("stroke-dasharray", "1,0"), e.append("marker").attr("id", n + "_" + t + "-pointStart").attr("class", "marker " + t).attr("viewBox", "0 0 10 10").attr("refX", 4.5).attr("refY", 5).attr("markerUnits", "userSpaceOnUse").attr("markerWidth", 12).attr("markerHeight", 12).attr("orient", "auto").append("path").attr("d", "M 0 5 L 10 10 L 10 0 z").attr("class", "arrowMarkerPath").style("stroke-width", 1).style("stroke-dasharray", "1,0");
|
|
1629
1444
|
}, "point"),
|
|
1630
|
-
circle: /* @__PURE__ */
|
|
1445
|
+
circle: /* @__PURE__ */ c((e, t, n) => {
|
|
1631
1446
|
e.append("marker").attr("id", n + "_" + t + "-circleEnd").attr("class", "marker " + t).attr("viewBox", "0 0 10 10").attr("refX", 11).attr("refY", 5).attr("markerUnits", "userSpaceOnUse").attr("markerWidth", 11).attr("markerHeight", 11).attr("orient", "auto").append("circle").attr("cx", "5").attr("cy", "5").attr("r", "5").attr("class", "arrowMarkerPath").style("stroke-width", 1).style("stroke-dasharray", "1,0"), e.append("marker").attr("id", n + "_" + t + "-circleStart").attr("class", "marker " + t).attr("viewBox", "0 0 10 10").attr("refX", -1).attr("refY", 5).attr("markerUnits", "userSpaceOnUse").attr("markerWidth", 11).attr("markerHeight", 11).attr("orient", "auto").append("circle").attr("cx", "5").attr("cy", "5").attr("r", "5").attr("class", "arrowMarkerPath").style("stroke-width", 1).style("stroke-dasharray", "1,0");
|
|
1632
1447
|
}, "circle"),
|
|
1633
|
-
cross: /* @__PURE__ */
|
|
1448
|
+
cross: /* @__PURE__ */ c((e, t, n) => {
|
|
1634
1449
|
e.append("marker").attr("id", n + "_" + t + "-crossEnd").attr("class", "marker cross " + t).attr("viewBox", "0 0 11 11").attr("refX", 12).attr("refY", 5.2).attr("markerUnits", "userSpaceOnUse").attr("markerWidth", 11).attr("markerHeight", 11).attr("orient", "auto").append("path").attr("d", "M 1,1 l 9,9 M 10,1 l -9,9").attr("class", "arrowMarkerPath").style("stroke-width", 2).style("stroke-dasharray", "1,0"), e.append("marker").attr("id", n + "_" + t + "-crossStart").attr("class", "marker cross " + t).attr("viewBox", "0 0 11 11").attr("refX", -1).attr("refY", 5.2).attr("markerUnits", "userSpaceOnUse").attr("markerWidth", 11).attr("markerHeight", 11).attr("orient", "auto").append("path").attr("d", "M 1,1 l 9,9 M 10,1 l -9,9").attr("class", "arrowMarkerPath").style("stroke-width", 2).style("stroke-dasharray", "1,0");
|
|
1635
1450
|
}, "cross"),
|
|
1636
|
-
barb: /* @__PURE__ */
|
|
1451
|
+
barb: /* @__PURE__ */ c((e, t, n) => {
|
|
1637
1452
|
e.append("defs").append("marker").attr("id", n + "_" + t + "-barbEnd").attr("refX", 19).attr("refY", 7).attr("markerWidth", 20).attr("markerHeight", 14).attr("markerUnits", "strokeWidth").attr("orient", "auto").append("path").attr("d", "M 19,7 L9,13 L14,7 L9,1 Z");
|
|
1638
1453
|
}, "barb")
|
|
1639
|
-
},
|
|
1640
|
-
function
|
|
1454
|
+
}, ye = _e, z = (D = (O = p()) == null || (O = O.block) == null ? void 0 : O.padding) == null ? 8 : D;
|
|
1455
|
+
function be(e, t) {
|
|
1641
1456
|
if (e === 0 || !Number.isInteger(e)) throw Error("Columns must be an integer !== 0.");
|
|
1642
1457
|
if (t < 0 || !Number.isInteger(t)) throw Error("Position must be a non-negative integer." + t);
|
|
1643
1458
|
return e < 0 ? {
|
|
@@ -1651,72 +1466,72 @@ function gn(e, t) {
|
|
|
1651
1466
|
py: Math.floor(t / e)
|
|
1652
1467
|
};
|
|
1653
1468
|
}
|
|
1654
|
-
|
|
1655
|
-
var
|
|
1656
|
-
let t = 0,
|
|
1657
|
-
for (let
|
|
1658
|
-
var
|
|
1659
|
-
let { width: e, height:
|
|
1469
|
+
c(be, "calculateBlockPosition");
|
|
1470
|
+
var xe = /* @__PURE__ */ c((e) => {
|
|
1471
|
+
let t = 0, n = 0;
|
|
1472
|
+
for (let a of e.children) {
|
|
1473
|
+
var r;
|
|
1474
|
+
let { width: e, height: o, x: c, y: l } = (r = a.size) == null ? {
|
|
1660
1475
|
width: 0,
|
|
1661
1476
|
height: 0,
|
|
1662
1477
|
x: 0,
|
|
1663
1478
|
y: 0
|
|
1664
|
-
} :
|
|
1665
|
-
if (
|
|
1479
|
+
} : r;
|
|
1480
|
+
if (s.debug("getMaxChildSize abc95 child:", a.id, "width:", e, "height:", o, "x:", c, "y:", l, a.type), a.type !== "space") {
|
|
1666
1481
|
if (e > t) {
|
|
1667
|
-
var
|
|
1668
|
-
t = e / ((
|
|
1482
|
+
var i;
|
|
1483
|
+
t = e / ((i = a.widthInColumns) == null ? 1 : i);
|
|
1669
1484
|
}
|
|
1670
|
-
|
|
1485
|
+
o > n && (n = o);
|
|
1671
1486
|
}
|
|
1672
1487
|
}
|
|
1673
1488
|
return {
|
|
1674
1489
|
width: t,
|
|
1675
|
-
height:
|
|
1490
|
+
height: n
|
|
1676
1491
|
};
|
|
1677
1492
|
}, "getMaxChildSize");
|
|
1678
|
-
function
|
|
1679
|
-
var a, o,
|
|
1680
|
-
|
|
1681
|
-
width:
|
|
1682
|
-
height:
|
|
1493
|
+
function B(e, t, n = 0, r = 0) {
|
|
1494
|
+
var i, a, o, c, l, u, d;
|
|
1495
|
+
s.debug("setBlockSizes abc95 (start)", e.id, e == null || (i = e.size) == null ? void 0 : i.x, "block width =", e == null ? void 0 : e.size, "siblingWidth", n), !(e == null || (a = e.size) == null) && a.width || (e.size = {
|
|
1496
|
+
width: n,
|
|
1497
|
+
height: r,
|
|
1683
1498
|
x: 0,
|
|
1684
1499
|
y: 0
|
|
1685
1500
|
});
|
|
1686
1501
|
let f = 0, p = 0;
|
|
1687
|
-
if (((
|
|
1502
|
+
if (((o = e.children) == null ? void 0 : o.length) > 0) {
|
|
1688
1503
|
var m, h, g;
|
|
1689
|
-
for (let n of e.children)
|
|
1690
|
-
let
|
|
1691
|
-
f =
|
|
1504
|
+
for (let n of e.children) B(n, t);
|
|
1505
|
+
let i = xe(e);
|
|
1506
|
+
f = i.width, p = i.height, s.debug("setBlockSizes abc95 maxWidth of", e.id, ":s children is ", f, p);
|
|
1692
1507
|
for (let t of e.children) if (t.size) {
|
|
1693
1508
|
var _, v;
|
|
1694
|
-
|
|
1509
|
+
s.debug(`abc95 Setting size of children of ${e.id} id=${t.id} ${f} ${p} ${JSON.stringify(t.size)}`), t.size.width = f * ((_ = t.widthInColumns) == null ? 1 : _) + z * (((v = t.widthInColumns) == null ? 1 : v) - 1), t.size.height = p, t.size.x = 0, t.size.y = 0, s.debug(`abc95 updating size of ${e.id} children child:${t.id} maxWidth:${f} maxHeight:${p}`);
|
|
1695
1510
|
}
|
|
1696
|
-
for (let n of e.children)
|
|
1697
|
-
let
|
|
1511
|
+
for (let n of e.children) B(n, t, f, p);
|
|
1512
|
+
let a = (m = e.columns) == null ? -1 : m, o = 0;
|
|
1698
1513
|
for (let t of e.children) {
|
|
1699
1514
|
var y;
|
|
1700
|
-
|
|
1515
|
+
o += (y = t.widthInColumns) == null ? 1 : y;
|
|
1701
1516
|
}
|
|
1702
1517
|
let c = e.children.length;
|
|
1703
|
-
|
|
1704
|
-
let l = Math.ceil(
|
|
1705
|
-
if (u <
|
|
1706
|
-
|
|
1707
|
-
let t = (
|
|
1708
|
-
|
|
1709
|
-
for (let n of e.children) n.size && (n.size.width = t, n.size.height =
|
|
1518
|
+
a > 0 && a < o && (c = a);
|
|
1519
|
+
let l = Math.ceil(o / c), u = c * (f + z) + z, d = l * (p + z) + z;
|
|
1520
|
+
if (u < n) {
|
|
1521
|
+
s.debug(`Detected to small sibling: abc95 ${e.id} siblingWidth ${n} siblingHeight ${r} width ${u}`), u = n, d = r;
|
|
1522
|
+
let t = (n - c * z - z) / c, i = (r - l * z - z) / l;
|
|
1523
|
+
s.debug("Size indata abc88", e.id, "childWidth", t, "maxWidth", f), s.debug("Size indata abc88", e.id, "childHeight", i, "maxHeight", p), s.debug("Size indata abc88 xSize", c, "padding", z);
|
|
1524
|
+
for (let n of e.children) n.size && (n.size.width = t, n.size.height = i, n.size.x = 0, n.size.y = 0);
|
|
1710
1525
|
}
|
|
1711
|
-
if (
|
|
1526
|
+
if (s.debug(`abc95 (finale calc) ${e.id} xSize ${c} ySize ${l} columns ${a}${e.children.length} width=${Math.max(u, ((h = e.size) == null ? void 0 : h.width) || 0)}`), u < ((e == null || (g = e.size) == null ? void 0 : g.width) || 0)) {
|
|
1712
1527
|
var b;
|
|
1713
1528
|
u = (e == null || (b = e.size) == null ? void 0 : b.width) || 0;
|
|
1714
|
-
let t =
|
|
1529
|
+
let t = a > 0 ? Math.min(e.children.length, a) : e.children.length;
|
|
1715
1530
|
if (t > 0) {
|
|
1716
1531
|
var x;
|
|
1717
|
-
let
|
|
1718
|
-
|
|
1719
|
-
for (let t of e.children) t.size && (t.size.width =
|
|
1532
|
+
let n = (u - t * z - z) / t;
|
|
1533
|
+
s.debug("abc95 (growing to fit) width", e.id, u, (x = e.size) == null ? void 0 : x.width, n);
|
|
1534
|
+
for (let t of e.children) t.size && (t.size.width = n);
|
|
1720
1535
|
}
|
|
1721
1536
|
}
|
|
1722
1537
|
e.size = {
|
|
@@ -1726,65 +1541,65 @@ function H(e, t, r = 0, i = 0) {
|
|
|
1726
1541
|
y: 0
|
|
1727
1542
|
};
|
|
1728
1543
|
}
|
|
1729
|
-
|
|
1544
|
+
s.debug("setBlockSizes abc94 (done)", e.id, e == null || (c = e.size) == null ? void 0 : c.x, e == null || (l = e.size) == null ? void 0 : l.width, e == null || (u = e.size) == null ? void 0 : u.y, e == null || (d = e.size) == null ? void 0 : d.height);
|
|
1730
1545
|
}
|
|
1731
|
-
|
|
1732
|
-
function
|
|
1733
|
-
var r, i, a, o,
|
|
1734
|
-
|
|
1735
|
-
let u = (
|
|
1736
|
-
if (
|
|
1546
|
+
c(B, "setBlockSizes");
|
|
1547
|
+
function Se(e, t) {
|
|
1548
|
+
var n, r, i, a, o, c, l;
|
|
1549
|
+
s.debug(`abc85 layout blocks (=>layoutBlocks) ${e.id} x: ${e == null || (n = e.size) == null ? void 0 : n.x} y: ${e == null || (r = e.size) == null ? void 0 : r.y} width: ${e == null || (i = e.size) == null ? void 0 : i.width}`);
|
|
1550
|
+
let u = (a = e.columns) == null ? -1 : a;
|
|
1551
|
+
if (s.debug("layoutBlocks columns abc95", e.id, "=>", u, e), e.children && e.children.length > 0) {
|
|
1737
1552
|
var d, f, p, m, h, g;
|
|
1738
|
-
let
|
|
1739
|
-
|
|
1740
|
-
let
|
|
1553
|
+
let n = (d = e == null || (f = e.children[0]) == null || (f = f.size) == null ? void 0 : f.width) == null ? 0 : d, r = e.children.length * n + (e.children.length - 1) * z;
|
|
1554
|
+
s.debug("widthOfChildren 88", r, "posX");
|
|
1555
|
+
let i = /* @__PURE__ */ new Map();
|
|
1741
1556
|
{
|
|
1742
1557
|
let t = 0;
|
|
1743
1558
|
for (let n of e.children) {
|
|
1744
1559
|
var _, v;
|
|
1745
1560
|
if (!n.size) continue;
|
|
1746
|
-
let { py: e } =
|
|
1747
|
-
n.size.height > r &&
|
|
1748
|
-
let
|
|
1749
|
-
u > 0 && (
|
|
1561
|
+
let { py: e } = be(u, t), r = (_ = i.get(e)) == null ? 0 : _;
|
|
1562
|
+
n.size.height > r && i.set(e, n.size.height);
|
|
1563
|
+
let a = (v = n == null ? void 0 : n.widthInColumns) == null ? 1 : v;
|
|
1564
|
+
u > 0 && (a = Math.min(a, u - t % u)), t += a;
|
|
1750
1565
|
}
|
|
1751
1566
|
}
|
|
1752
|
-
let
|
|
1567
|
+
let a = /* @__PURE__ */ new Map();
|
|
1753
1568
|
{
|
|
1754
|
-
let e = 0, t = [...
|
|
1569
|
+
let e = 0, t = [...i.keys()].sort((e, t) => e - t);
|
|
1755
1570
|
for (let n of t) {
|
|
1756
1571
|
var y;
|
|
1757
|
-
|
|
1572
|
+
a.set(n, e), e += ((y = i.get(n)) == null ? 0 : y) + z;
|
|
1758
1573
|
}
|
|
1759
1574
|
}
|
|
1760
|
-
let
|
|
1761
|
-
|
|
1762
|
-
let c = !(e == null || (m = e.size) == null) && m.x ? (e == null || (h = e.size) == null ? void 0 : h.x) + (-(e == null || (g = e.size) == null ? void 0 : g.width) / 2 || 0) : -
|
|
1763
|
-
for (let
|
|
1575
|
+
let o = 0;
|
|
1576
|
+
s.debug("abc91 block?.size?.x", e.id, e == null || (p = e.size) == null ? void 0 : p.x);
|
|
1577
|
+
let c = !(e == null || (m = e.size) == null) && m.x ? (e == null || (h = e.size) == null ? void 0 : h.x) + (-(e == null || (g = e.size) == null ? void 0 : g.width) / 2 || 0) : -z, l = 0;
|
|
1578
|
+
for (let n of e.children) {
|
|
1764
1579
|
var b, x, S;
|
|
1765
|
-
let
|
|
1766
|
-
if (!
|
|
1767
|
-
let { width: d, height: f } =
|
|
1580
|
+
let r = e;
|
|
1581
|
+
if (!n.size) continue;
|
|
1582
|
+
let { width: d, height: f } = n.size, { px: p, py: m } = be(u, o);
|
|
1768
1583
|
if (m != l) {
|
|
1769
1584
|
var C, w, T;
|
|
1770
|
-
l = m, c = !(e == null || (C = e.size) == null) && C.x ? (e == null || (w = e.size) == null ? void 0 : w.x) + (-(e == null || (T = e.size) == null ? void 0 : T.width) / 2 || 0) : -
|
|
1585
|
+
l = m, c = !(e == null || (C = e.size) == null) && C.x ? (e == null || (w = e.size) == null ? void 0 : w.x) + (-(e == null || (T = e.size) == null ? void 0 : T.width) / 2 || 0) : -z, s.debug("New row in layout for block", e.id, " and child ", n.id, l);
|
|
1771
1586
|
}
|
|
1772
|
-
if (
|
|
1587
|
+
if (s.debug(`abc89 layout blocks (child) id: ${n.id} Pos: ${o} (px, py) ${p},${m} (${r == null || (b = r.size) == null ? void 0 : b.x},${r == null || (x = r.size) == null ? void 0 : x.y}) parent: ${r.id} width: ${d}${z}`), r.size) {
|
|
1773
1588
|
var E, D, O, k;
|
|
1774
1589
|
let e = d / 2;
|
|
1775
|
-
|
|
1776
|
-
let t = (D =
|
|
1777
|
-
|
|
1590
|
+
n.size.x = c + z + e, s.debug(`abc91 layout blocks (calc) px, pyid:${n.id} startingPos=X${c} new startingPosX${n.size.x} ${e} padding=${z} width=${d} halfWidth=${e} => x:${n.size.x} y:${n.size.y} ${n.widthInColumns} (width * (child?.w || 1)) / 2 ${d * ((E = n == null ? void 0 : n.widthInColumns) == null ? 1 : E) / 2}`), c = n.size.x + e;
|
|
1591
|
+
let t = (D = a.get(m)) == null ? 0 : D, o = (O = i.get(m)) == null ? f : O;
|
|
1592
|
+
n.size.y = r.size.y - r.size.height / 2 + t + o / 2 + z, s.debug(`abc88 layout blocks (calc) px, pyid:${n.id}startingPosX${c}${z}${e}=>x:${n.size.x}y:${n.size.y}${n.widthInColumns}(width * (child?.w || 1)) / 2${d * ((k = n == null ? void 0 : n.widthInColumns) == null ? 1 : k) / 2}`);
|
|
1778
1593
|
}
|
|
1779
|
-
|
|
1780
|
-
let h = (S =
|
|
1781
|
-
u > 0 && (h = Math.min(h, u -
|
|
1594
|
+
n.children && Se(n, t);
|
|
1595
|
+
let h = (S = n == null ? void 0 : n.widthInColumns) == null ? 1 : S;
|
|
1596
|
+
u > 0 && (h = Math.min(h, u - o % u)), o += h, s.debug("abc88 columnsPos", n, o);
|
|
1782
1597
|
}
|
|
1783
1598
|
}
|
|
1784
|
-
|
|
1599
|
+
s.debug(`layout blocks (<==layoutBlocks) ${e.id} x: ${e == null || (o = e.size) == null ? void 0 : o.x} y: ${e == null || (c = e.size) == null ? void 0 : c.y} width: ${e == null || (l = e.size) == null ? void 0 : l.width}`);
|
|
1785
1600
|
}
|
|
1786
|
-
|
|
1787
|
-
function
|
|
1601
|
+
c(Se, "layoutBlocks");
|
|
1602
|
+
function Ce(e, { minX: t, minY: n, maxX: r, maxY: i } = {
|
|
1788
1603
|
minX: 0,
|
|
1789
1604
|
minY: 0,
|
|
1790
1605
|
maxX: 0,
|
|
@@ -1794,7 +1609,7 @@ function yn(e, { minX: t, minY: n, maxX: r, maxY: i } = {
|
|
|
1794
1609
|
let { x: a, y: o, width: s, height: c } = e.size;
|
|
1795
1610
|
a - s / 2 < t && (t = a - s / 2), o - c / 2 < n && (n = o - c / 2), a + s / 2 > r && (r = a + s / 2), o + c / 2 > i && (i = o + c / 2);
|
|
1796
1611
|
}
|
|
1797
|
-
if (e.children) for (let a of e.children) ({minX: t, minY: n, maxX: r, maxY: i} =
|
|
1612
|
+
if (e.children) for (let a of e.children) ({minX: t, minY: n, maxX: r, maxY: i} = Ce(a, {
|
|
1798
1613
|
minX: t,
|
|
1799
1614
|
minY: n,
|
|
1800
1615
|
maxX: r,
|
|
@@ -1807,25 +1622,25 @@ function yn(e, { minX: t, minY: n, maxX: r, maxY: i } = {
|
|
|
1807
1622
|
maxY: i
|
|
1808
1623
|
};
|
|
1809
1624
|
}
|
|
1810
|
-
|
|
1811
|
-
function
|
|
1625
|
+
c(Ce, "findBounds");
|
|
1626
|
+
function we(e) {
|
|
1812
1627
|
let t = e.getBlock("root");
|
|
1813
1628
|
if (!t) return;
|
|
1814
|
-
|
|
1815
|
-
let { minX:
|
|
1629
|
+
B(t, e, 0, 0), Se(t, e), s.debug("getBlocks", JSON.stringify(t, null, 2));
|
|
1630
|
+
let { minX: n, minY: r, maxX: i, maxY: a } = Ce(t), o = a - r;
|
|
1816
1631
|
return {
|
|
1817
|
-
x:
|
|
1818
|
-
y:
|
|
1819
|
-
width:
|
|
1820
|
-
height:
|
|
1632
|
+
x: n,
|
|
1633
|
+
y: r,
|
|
1634
|
+
width: i - n,
|
|
1635
|
+
height: o
|
|
1821
1636
|
};
|
|
1822
1637
|
}
|
|
1823
|
-
|
|
1824
|
-
var
|
|
1638
|
+
c(we, "layout");
|
|
1639
|
+
var V = /* @__PURE__ */ c(async (e, t, n, r = !1, i = !1) => {
|
|
1825
1640
|
let a = t || "";
|
|
1826
1641
|
typeof a == "object" && (a = a[0]);
|
|
1827
|
-
let o =
|
|
1828
|
-
return await
|
|
1642
|
+
let o = p(), s = _(o);
|
|
1643
|
+
return await x(e, a, {
|
|
1829
1644
|
style: n,
|
|
1830
1645
|
isTitle: r,
|
|
1831
1646
|
useHtmlLabels: s,
|
|
@@ -1833,9 +1648,9 @@ var U = /* @__PURE__ */ r(async (e, t, n, r = !1, i = !1) => {
|
|
|
1833
1648
|
isNode: i,
|
|
1834
1649
|
width: Infinity
|
|
1835
1650
|
}, o);
|
|
1836
|
-
}, "createLabel"),
|
|
1837
|
-
t.arrowTypeStart &&
|
|
1838
|
-
}, "addEdgeMarkers"),
|
|
1651
|
+
}, "createLabel"), Te = /* @__PURE__ */ c((e, t, n, r, i) => {
|
|
1652
|
+
t.arrowTypeStart && De(e, "start", t.arrowTypeStart, n, r, i), t.arrowTypeEnd && De(e, "end", t.arrowTypeEnd, n, r, i);
|
|
1653
|
+
}, "addEdgeMarkers"), Ee = {
|
|
1839
1654
|
arrow_cross: "cross",
|
|
1840
1655
|
arrow_point: "point",
|
|
1841
1656
|
arrow_barb: "barb",
|
|
@@ -1845,199 +1660,199 @@ var U = /* @__PURE__ */ r(async (e, t, n, r = !1, i = !1) => {
|
|
|
1845
1660
|
composition: "composition",
|
|
1846
1661
|
dependency: "dependency",
|
|
1847
1662
|
lollipop: "lollipop"
|
|
1848
|
-
},
|
|
1849
|
-
let
|
|
1850
|
-
if (!
|
|
1851
|
-
|
|
1663
|
+
}, De = /* @__PURE__ */ c((e, t, n, r, i, a) => {
|
|
1664
|
+
let o = Ee[n];
|
|
1665
|
+
if (!o) {
|
|
1666
|
+
s.warn(`Unknown arrow type: ${n}`);
|
|
1852
1667
|
return;
|
|
1853
1668
|
}
|
|
1854
1669
|
let c = t === "start" ? "Start" : "End";
|
|
1855
|
-
e.attr(`marker-${t}`, `url(${
|
|
1856
|
-
}, "addEdgeMarker"),
|
|
1857
|
-
let n =
|
|
1670
|
+
e.attr(`marker-${t}`, `url(${r}#${i}_${a}-${o}${c})`);
|
|
1671
|
+
}, "addEdgeMarker"), H = {}, U = {}, Oe = /* @__PURE__ */ c(async (e, t) => {
|
|
1672
|
+
let n = p(), r = _(n), i = e.insert("g").attr("class", "edgeLabel"), a = i.insert("g").attr("class", "label"), o = t.labelType === "markdown", s = await x(e, t.label, {
|
|
1858
1673
|
style: t.labelStyle,
|
|
1859
1674
|
useHtmlLabels: r,
|
|
1860
|
-
addSvgBackground:
|
|
1675
|
+
addSvgBackground: o,
|
|
1861
1676
|
isNode: !1,
|
|
1862
|
-
markdown:
|
|
1863
|
-
width:
|
|
1677
|
+
markdown: o,
|
|
1678
|
+
width: o ? void 0 : Infinity
|
|
1864
1679
|
}, n);
|
|
1865
|
-
|
|
1866
|
-
let
|
|
1680
|
+
a.node().appendChild(s);
|
|
1681
|
+
let c = s.getBBox(), u = c;
|
|
1867
1682
|
if (r) {
|
|
1868
|
-
let e =
|
|
1869
|
-
|
|
1683
|
+
let e = s.children[0], t = l(s);
|
|
1684
|
+
c = e.getBoundingClientRect(), u = c, t.attr("width", c.width), t.attr("height", c.height);
|
|
1870
1685
|
} else {
|
|
1871
|
-
let e =
|
|
1872
|
-
e && typeof e.getBBox == "function" && (
|
|
1686
|
+
let e = l(s).select("text").node();
|
|
1687
|
+
e && typeof e.getBBox == "function" && (u = e.getBBox());
|
|
1873
1688
|
}
|
|
1874
|
-
|
|
1875
|
-
let
|
|
1689
|
+
a.attr("transform", w(u, r)), H[t.id] = i, t.width = c.width, t.height = c.height;
|
|
1690
|
+
let d;
|
|
1876
1691
|
if (t.startLabelLeft) {
|
|
1877
|
-
let n = e.insert("g").attr("class", "edgeTerminals"),
|
|
1878
|
-
|
|
1879
|
-
let
|
|
1692
|
+
let n = e.insert("g").attr("class", "edgeTerminals"), i = n.insert("g").attr("class", "inner"), a = await V(i, t.startLabelLeft, t.labelStyle);
|
|
1693
|
+
d = a;
|
|
1694
|
+
let o = a.getBBox();
|
|
1880
1695
|
if (r) {
|
|
1881
|
-
let e =
|
|
1882
|
-
|
|
1696
|
+
let e = a.children[0], t = l(a);
|
|
1697
|
+
o = e.getBoundingClientRect(), t.attr("width", o.width), t.attr("height", o.height);
|
|
1883
1698
|
}
|
|
1884
|
-
|
|
1699
|
+
i.attr("transform", w(o, r)), U[t.id] || (U[t.id] = {}), U[t.id].startLeft = n, W(d, t.startLabelLeft);
|
|
1885
1700
|
}
|
|
1886
1701
|
if (t.startLabelRight) {
|
|
1887
|
-
let n = e.insert("g").attr("class", "edgeTerminals"),
|
|
1888
|
-
|
|
1889
|
-
let
|
|
1702
|
+
let n = e.insert("g").attr("class", "edgeTerminals"), i = n.insert("g").attr("class", "inner"), a = await V(n, t.startLabelRight, t.labelStyle);
|
|
1703
|
+
d = a, i.node().appendChild(a);
|
|
1704
|
+
let o = a.getBBox();
|
|
1890
1705
|
if (r) {
|
|
1891
|
-
let e =
|
|
1892
|
-
|
|
1706
|
+
let e = a.children[0], t = l(a);
|
|
1707
|
+
o = e.getBoundingClientRect(), t.attr("width", o.width), t.attr("height", o.height);
|
|
1893
1708
|
}
|
|
1894
|
-
|
|
1709
|
+
i.attr("transform", w(o, r)), U[t.id] || (U[t.id] = {}), U[t.id].startRight = n, W(d, t.startLabelRight);
|
|
1895
1710
|
}
|
|
1896
1711
|
if (t.endLabelLeft) {
|
|
1897
|
-
let n = e.insert("g").attr("class", "edgeTerminals"),
|
|
1898
|
-
|
|
1899
|
-
let
|
|
1712
|
+
let n = e.insert("g").attr("class", "edgeTerminals"), i = n.insert("g").attr("class", "inner"), a = await V(i, t.endLabelLeft, t.labelStyle);
|
|
1713
|
+
d = a;
|
|
1714
|
+
let o = a.getBBox();
|
|
1900
1715
|
if (r) {
|
|
1901
|
-
let e =
|
|
1902
|
-
|
|
1716
|
+
let e = a.children[0], t = l(a);
|
|
1717
|
+
o = e.getBoundingClientRect(), t.attr("width", o.width), t.attr("height", o.height);
|
|
1903
1718
|
}
|
|
1904
|
-
|
|
1719
|
+
i.attr("transform", w(o, r)), n.node().appendChild(a), U[t.id] || (U[t.id] = {}), U[t.id].endLeft = n, W(d, t.endLabelLeft);
|
|
1905
1720
|
}
|
|
1906
1721
|
if (t.endLabelRight) {
|
|
1907
|
-
let n = e.insert("g").attr("class", "edgeTerminals"),
|
|
1908
|
-
|
|
1909
|
-
let
|
|
1722
|
+
let n = e.insert("g").attr("class", "edgeTerminals"), i = n.insert("g").attr("class", "inner"), a = await V(i, t.endLabelRight, t.labelStyle);
|
|
1723
|
+
d = a;
|
|
1724
|
+
let o = a.getBBox();
|
|
1910
1725
|
if (r) {
|
|
1911
|
-
let e =
|
|
1912
|
-
|
|
1726
|
+
let e = a.children[0], t = l(a);
|
|
1727
|
+
o = e.getBoundingClientRect(), t.attr("width", o.width), t.attr("height", o.height);
|
|
1913
1728
|
}
|
|
1914
|
-
|
|
1729
|
+
i.attr("transform", w(o, r)), n.node().appendChild(a), U[t.id] || (U[t.id] = {}), U[t.id].endRight = n, W(d, t.endLabelRight);
|
|
1915
1730
|
}
|
|
1916
|
-
return
|
|
1731
|
+
return s;
|
|
1917
1732
|
}, "insertEdgeLabel");
|
|
1918
|
-
function
|
|
1919
|
-
|
|
1733
|
+
function W(e, t) {
|
|
1734
|
+
_(p()) && e && (e.style.width = t.length * 9 + "px", e.style.height = "12px");
|
|
1920
1735
|
}
|
|
1921
|
-
|
|
1922
|
-
var
|
|
1923
|
-
|
|
1924
|
-
let
|
|
1736
|
+
c(W, "setTerminalWidth");
|
|
1737
|
+
var ke = /* @__PURE__ */ c((e, t) => {
|
|
1738
|
+
s.debug("Moving label abc88 ", e.id, e.label, H[e.id], t);
|
|
1739
|
+
let n = t.updatedPath ? t.updatedPath : t.originalPath, { subGraphTitleTotalMargin: i } = T(p());
|
|
1925
1740
|
if (e.label) {
|
|
1926
|
-
let a =
|
|
1927
|
-
if (
|
|
1928
|
-
let i =
|
|
1929
|
-
|
|
1741
|
+
let a = H[e.id], o = e.x, c = e.y;
|
|
1742
|
+
if (n) {
|
|
1743
|
+
let i = r.calcLabelPosition(n);
|
|
1744
|
+
s.debug("Moving label " + e.label + " from (", o, ",", c, ") to (", i.x, ",", i.y, ") abc88"), t.updatedPath && (o = i.x, c = i.y);
|
|
1930
1745
|
}
|
|
1931
|
-
a.attr("transform", `translate(${o}, ${
|
|
1746
|
+
a.attr("transform", `translate(${o}, ${c + i / 2})`);
|
|
1932
1747
|
}
|
|
1933
1748
|
if (e.startLabelLeft) {
|
|
1934
|
-
let t =
|
|
1935
|
-
if (
|
|
1936
|
-
let t =
|
|
1937
|
-
|
|
1749
|
+
let t = U[e.id].startLeft, i = e.x, a = e.y;
|
|
1750
|
+
if (n) {
|
|
1751
|
+
let t = r.calcTerminalLabelPosition(e.arrowTypeStart ? 10 : 0, "start_left", n);
|
|
1752
|
+
i = t.x, a = t.y;
|
|
1938
1753
|
}
|
|
1939
|
-
t.attr("transform", `translate(${
|
|
1754
|
+
t.attr("transform", `translate(${i}, ${a})`);
|
|
1940
1755
|
}
|
|
1941
1756
|
if (e.startLabelRight) {
|
|
1942
|
-
let t =
|
|
1943
|
-
if (
|
|
1944
|
-
let t =
|
|
1945
|
-
|
|
1757
|
+
let t = U[e.id].startRight, i = e.x, a = e.y;
|
|
1758
|
+
if (n) {
|
|
1759
|
+
let t = r.calcTerminalLabelPosition(e.arrowTypeStart ? 10 : 0, "start_right", n);
|
|
1760
|
+
i = t.x, a = t.y;
|
|
1946
1761
|
}
|
|
1947
|
-
t.attr("transform", `translate(${
|
|
1762
|
+
t.attr("transform", `translate(${i}, ${a})`);
|
|
1948
1763
|
}
|
|
1949
1764
|
if (e.endLabelLeft) {
|
|
1950
|
-
let t =
|
|
1951
|
-
if (
|
|
1952
|
-
let t =
|
|
1953
|
-
|
|
1765
|
+
let t = U[e.id].endLeft, i = e.x, a = e.y;
|
|
1766
|
+
if (n) {
|
|
1767
|
+
let t = r.calcTerminalLabelPosition(e.arrowTypeEnd ? 10 : 0, "end_left", n);
|
|
1768
|
+
i = t.x, a = t.y;
|
|
1954
1769
|
}
|
|
1955
|
-
t.attr("transform", `translate(${
|
|
1770
|
+
t.attr("transform", `translate(${i}, ${a})`);
|
|
1956
1771
|
}
|
|
1957
1772
|
if (e.endLabelRight) {
|
|
1958
|
-
let t =
|
|
1959
|
-
if (
|
|
1960
|
-
let t =
|
|
1961
|
-
|
|
1773
|
+
let t = U[e.id].endRight, i = e.x, a = e.y;
|
|
1774
|
+
if (n) {
|
|
1775
|
+
let t = r.calcTerminalLabelPosition(e.arrowTypeEnd ? 10 : 0, "end_right", n);
|
|
1776
|
+
i = t.x, a = t.y;
|
|
1962
1777
|
}
|
|
1963
|
-
t.attr("transform", `translate(${
|
|
1778
|
+
t.attr("transform", `translate(${i}, ${a})`);
|
|
1964
1779
|
}
|
|
1965
|
-
}, "positionEdgeLabel"),
|
|
1780
|
+
}, "positionEdgeLabel"), Ae = /* @__PURE__ */ c((e, t) => {
|
|
1966
1781
|
let n = e.x, r = e.y, i = Math.abs(t.x - n), a = Math.abs(t.y - r), o = e.width / 2, s = e.height / 2;
|
|
1967
1782
|
return i >= o || a >= s;
|
|
1968
|
-
}, "outsideNode"),
|
|
1969
|
-
|
|
1783
|
+
}, "outsideNode"), je = /* @__PURE__ */ c((e, t, n) => {
|
|
1784
|
+
s.debug(`intersection calc abc89:
|
|
1970
1785
|
outsidePoint: ${JSON.stringify(t)}
|
|
1971
|
-
insidePoint : ${JSON.stringify(
|
|
1786
|
+
insidePoint : ${JSON.stringify(n)}
|
|
1972
1787
|
node : x:${e.x} y:${e.y} w:${e.width} h:${e.height}`);
|
|
1973
|
-
let
|
|
1974
|
-
if (Math.abs(
|
|
1975
|
-
let e =
|
|
1788
|
+
let r = e.x, i = e.y, a = Math.abs(r - n.x), o = e.width / 2, c = n.x < t.x ? o - a : o + a, l = e.height / 2, u = Math.abs(t.y - n.y), d = Math.abs(t.x - n.x);
|
|
1789
|
+
if (Math.abs(i - t.y) * o > Math.abs(r - t.x) * l) {
|
|
1790
|
+
let e = n.y < t.y ? t.y - l - i : i - l - t.y;
|
|
1976
1791
|
c = d * e / u;
|
|
1977
|
-
let
|
|
1978
|
-
x:
|
|
1979
|
-
y:
|
|
1792
|
+
let r = {
|
|
1793
|
+
x: n.x < t.x ? n.x + c : n.x - d + c,
|
|
1794
|
+
y: n.y < t.y ? n.y + u - e : n.y - u + e
|
|
1980
1795
|
};
|
|
1981
|
-
return c === 0 && (
|
|
1796
|
+
return c === 0 && (r.x = t.x, r.y = t.y), d === 0 && (r.x = t.x), u === 0 && (r.y = t.y), s.debug(`abc89 topp/bott calc, Q ${u}, q ${e}, R ${d}, r ${c}`, r), r;
|
|
1982
1797
|
} else {
|
|
1983
|
-
c =
|
|
1984
|
-
let e = u * c / d,
|
|
1985
|
-
return
|
|
1986
|
-
_x:
|
|
1987
|
-
_y:
|
|
1988
|
-
}), c === 0 && (
|
|
1989
|
-
x:
|
|
1990
|
-
y:
|
|
1798
|
+
c = n.x < t.x ? t.x - o - r : r - o - t.x;
|
|
1799
|
+
let e = u * c / d, i = n.x < t.x ? n.x + d - c : n.x - d + c, a = n.y < t.y ? n.y + e : n.y - e;
|
|
1800
|
+
return s.debug(`sides calc abc89, Q ${u}, q ${e}, R ${d}, r ${c}`, {
|
|
1801
|
+
_x: i,
|
|
1802
|
+
_y: a
|
|
1803
|
+
}), c === 0 && (i = t.x, a = t.y), d === 0 && (i = t.x), u === 0 && (a = t.y), {
|
|
1804
|
+
x: i,
|
|
1805
|
+
y: a
|
|
1991
1806
|
};
|
|
1992
1807
|
}
|
|
1993
|
-
}, "intersection"),
|
|
1994
|
-
|
|
1995
|
-
let
|
|
1808
|
+
}, "intersection"), Me = /* @__PURE__ */ c((e, t) => {
|
|
1809
|
+
s.debug("abc88 cutPathAtIntersect", e, t);
|
|
1810
|
+
let n = [], r = e[0], i = !1;
|
|
1996
1811
|
return e.forEach((e) => {
|
|
1997
|
-
if (!
|
|
1998
|
-
let
|
|
1999
|
-
|
|
2000
|
-
o = o || e.x ===
|
|
2001
|
-
}),
|
|
2002
|
-
} else
|
|
2003
|
-
}),
|
|
2004
|
-
}, "cutPathAtIntersect"),
|
|
2005
|
-
let
|
|
2006
|
-
|
|
2007
|
-
let d = !1, f =
|
|
2008
|
-
var
|
|
2009
|
-
|
|
2010
|
-
let
|
|
2011
|
-
r.curve && (
|
|
2012
|
-
let { x: _, y: v } =
|
|
1812
|
+
if (!Ae(t, e) && !i) {
|
|
1813
|
+
let a = je(t, r, e), o = !1;
|
|
1814
|
+
n.forEach((e) => {
|
|
1815
|
+
o = o || e.x === a.x && e.y === a.y;
|
|
1816
|
+
}), n.some((e) => e.x === a.x && e.y === a.y) || n.push(a), i = !0;
|
|
1817
|
+
} else r = e, i || n.push(e);
|
|
1818
|
+
}), n;
|
|
1819
|
+
}, "cutPathAtIntersect"), Ne = /* @__PURE__ */ c(function(e, n, r, i, a, o, c) {
|
|
1820
|
+
let l = r.points;
|
|
1821
|
+
s.debug("abc88 InsertEdge: edge=", r, "e=", n);
|
|
1822
|
+
let d = !1, f = o.node(n.v);
|
|
1823
|
+
var m = o.node(n.w);
|
|
1824
|
+
m != null && m.intersect && f != null && f.intersect && (l = l.slice(1, r.points.length - 1), l.unshift(f.intersect(l[0])), l.push(m.intersect(l[l.length - 1]))), r.toCluster && (s.debug("to cluster abc88", i[r.toCluster]), l = Me(r.points, i[r.toCluster].node), d = !0), r.fromCluster && (s.debug("from cluster abc88", i[r.fromCluster]), l = Me(l.reverse(), i[r.fromCluster].node).reverse(), d = !0);
|
|
1825
|
+
let h = l.filter((e) => !Number.isNaN(e.y)), g = t;
|
|
1826
|
+
r.curve && (a === "graph" || a === "flowchart") && (g = r.curve);
|
|
1827
|
+
let { x: _, y: v } = C(r), y = b().x(_).y(v).curve(g), x;
|
|
2013
1828
|
switch (r.thickness) {
|
|
2014
1829
|
case "normal":
|
|
2015
|
-
|
|
1830
|
+
x = "edge-thickness-normal";
|
|
2016
1831
|
break;
|
|
2017
1832
|
case "thick":
|
|
2018
|
-
|
|
1833
|
+
x = "edge-thickness-thick";
|
|
2019
1834
|
break;
|
|
2020
1835
|
case "invisible":
|
|
2021
|
-
|
|
1836
|
+
x = "edge-thickness-thick";
|
|
2022
1837
|
break;
|
|
2023
|
-
default:
|
|
1838
|
+
default: x = "";
|
|
2024
1839
|
}
|
|
2025
1840
|
switch (r.pattern) {
|
|
2026
1841
|
case "solid":
|
|
2027
|
-
|
|
1842
|
+
x += " edge-pattern-solid";
|
|
2028
1843
|
break;
|
|
2029
1844
|
case "dotted":
|
|
2030
|
-
|
|
1845
|
+
x += " edge-pattern-dotted";
|
|
2031
1846
|
break;
|
|
2032
1847
|
case "dashed":
|
|
2033
|
-
|
|
1848
|
+
x += " edge-pattern-dashed";
|
|
2034
1849
|
break;
|
|
2035
1850
|
}
|
|
2036
|
-
let
|
|
2037
|
-
(
|
|
2038
|
-
let
|
|
2039
|
-
return d && (
|
|
2040
|
-
}, "insertEdge"),
|
|
1851
|
+
let S = e.append("path").attr("d", y(h)).attr("id", r.id).attr("class", " " + x + (r.classes ? " " + r.classes : "")).attr("style", r.style), w = "";
|
|
1852
|
+
(p().flowchart.arrowMarkerAbsolute || p().state.arrowMarkerAbsolute) && (w = u(!0)), Te(S, r, w, c, a);
|
|
1853
|
+
let T = {};
|
|
1854
|
+
return d && (T.updatedPath = l), T.originalPath = r.points, T;
|
|
1855
|
+
}, "insertEdge"), Pe = /* @__PURE__ */ c((e) => {
|
|
2041
1856
|
let t = /* @__PURE__ */ new Set();
|
|
2042
1857
|
for (let n of e) switch (n) {
|
|
2043
1858
|
case "x":
|
|
@@ -2051,8 +1866,8 @@ var En = /* @__PURE__ */ r((e, t) => {
|
|
|
2051
1866
|
break;
|
|
2052
1867
|
}
|
|
2053
1868
|
return t;
|
|
2054
|
-
}, "expandAndDeduplicateDirections"),
|
|
2055
|
-
let r =
|
|
1869
|
+
}, "expandAndDeduplicateDirections"), Fe = /* @__PURE__ */ c((e, t, n) => {
|
|
1870
|
+
let r = Pe(e), i = t.height + 2 * n.padding, a = i / 2, o = t.width + 2 * a + n.padding, s = n.padding / 2;
|
|
2056
1871
|
return r.has("right") && r.has("left") && r.has("up") && r.has("down") ? [
|
|
2057
1872
|
{
|
|
2058
1873
|
x: 0,
|
|
@@ -2457,12 +2272,12 @@ var En = /* @__PURE__ */ r((e, t) => {
|
|
|
2457
2272
|
y: 0
|
|
2458
2273
|
}];
|
|
2459
2274
|
}, "getArrowPoints");
|
|
2460
|
-
function
|
|
2275
|
+
function Ie(e, t) {
|
|
2461
2276
|
return e.intersect(t);
|
|
2462
2277
|
}
|
|
2463
|
-
|
|
2464
|
-
var
|
|
2465
|
-
function
|
|
2278
|
+
c(Ie, "intersectNode");
|
|
2279
|
+
var Le = Ie;
|
|
2280
|
+
function Re(e, t, n, r) {
|
|
2466
2281
|
var i = e.x, a = e.y, o = i - r.x, s = a - r.y, c = Math.sqrt(t * t * s * s + n * n * o * o), l = Math.abs(t * n * o / c);
|
|
2467
2282
|
r.x < i && (l = -l);
|
|
2468
2283
|
var u = Math.abs(t * n * s / c);
|
|
@@ -2471,33 +2286,33 @@ function Fn(e, t, n, r) {
|
|
|
2471
2286
|
y: a + u
|
|
2472
2287
|
};
|
|
2473
2288
|
}
|
|
2474
|
-
|
|
2475
|
-
var
|
|
2476
|
-
function
|
|
2477
|
-
return
|
|
2289
|
+
c(Re, "intersectEllipse");
|
|
2290
|
+
var ze = Re;
|
|
2291
|
+
function Be(e, t, n) {
|
|
2292
|
+
return ze(e, t, t, n);
|
|
2478
2293
|
}
|
|
2479
|
-
|
|
2480
|
-
var
|
|
2481
|
-
function
|
|
2294
|
+
c(Be, "intersectCircle");
|
|
2295
|
+
var Ve = Be;
|
|
2296
|
+
function He(e, t, n, r) {
|
|
2482
2297
|
var i = t.y - e.y, a, o = e.x - t.x, s, c = t.x * e.y - e.x * t.y, l, u, d, f = i * n.x + o * n.y + c, p = i * r.x + o * r.y + c, m, h, g, _, v;
|
|
2483
|
-
if (!(f !== 0 && p !== 0 &&
|
|
2298
|
+
if (!(f !== 0 && p !== 0 && G(f, p)) && (a = r.y - n.y, s = n.x - r.x, l = r.x * n.y - n.x * r.y, u = a * e.x + s * e.y + l, d = a * t.x + s * t.y + l, !(u !== 0 && d !== 0 && G(u, d)) && (m = i * s - a * o, m !== 0))) return h = Math.abs(m / 2), g = o * l - s * c, _ = g < 0 ? (g - h) / m : (g + h) / m, g = a * c - i * l, v = g < 0 ? (g - h) / m : (g + h) / m, {
|
|
2484
2299
|
x: _,
|
|
2485
2300
|
y: v
|
|
2486
2301
|
};
|
|
2487
2302
|
}
|
|
2488
|
-
|
|
2489
|
-
function
|
|
2303
|
+
c(He, "intersectLine");
|
|
2304
|
+
function G(e, t) {
|
|
2490
2305
|
return e * t > 0;
|
|
2491
2306
|
}
|
|
2492
|
-
|
|
2493
|
-
var
|
|
2494
|
-
function
|
|
2307
|
+
c(G, "sameSign");
|
|
2308
|
+
var Ue = He, We = Ge;
|
|
2309
|
+
function Ge(e, t, n) {
|
|
2495
2310
|
var r = e.x, i = e.y, a = [], o = Infinity, s = Infinity;
|
|
2496
2311
|
typeof t.forEach == "function" ? t.forEach(function(e) {
|
|
2497
2312
|
o = Math.min(o, e.x), s = Math.min(s, e.y);
|
|
2498
2313
|
}) : (o = Math.min(o, t.x), s = Math.min(s, t.y));
|
|
2499
2314
|
for (var c = r - e.width / 2 - o, l = i - e.height / 2 - s, u = 0; u < t.length; u++) {
|
|
2500
|
-
var d = t[u], f = t[u < t.length - 1 ? u + 1 : 0], p =
|
|
2315
|
+
var d = t[u], f = t[u < t.length - 1 ? u + 1 : 0], p = Ue(e, n, {
|
|
2501
2316
|
x: c + d.x,
|
|
2502
2317
|
y: l + d.y
|
|
2503
2318
|
}, {
|
|
@@ -2511,42 +2326,42 @@ function Un(e, t, n) {
|
|
|
2511
2326
|
return a < c ? -1 : a === c ? 0 : 1;
|
|
2512
2327
|
}), a[0]) : e;
|
|
2513
2328
|
}
|
|
2514
|
-
|
|
2329
|
+
c(Ge, "intersectPolygon");
|
|
2515
2330
|
var K = {
|
|
2516
|
-
node:
|
|
2517
|
-
circle:
|
|
2518
|
-
ellipse:
|
|
2519
|
-
polygon:
|
|
2520
|
-
rect: /* @__PURE__ */
|
|
2331
|
+
node: Le,
|
|
2332
|
+
circle: Ve,
|
|
2333
|
+
ellipse: ze,
|
|
2334
|
+
polygon: We,
|
|
2335
|
+
rect: /* @__PURE__ */ c((e, t) => {
|
|
2521
2336
|
var n = e.x, r = e.y, i = t.x - n, a = t.y - r, o = e.width / 2, s = e.height / 2, c, l;
|
|
2522
2337
|
return Math.abs(a) * o > Math.abs(i) * s ? (a < 0 && (s = -s), c = a === 0 ? 0 : s * i / a, l = s) : (i < 0 && (o = -o), c = o, l = i === 0 ? 0 : o * a / i), {
|
|
2523
2338
|
x: n + c,
|
|
2524
2339
|
y: r + l
|
|
2525
2340
|
};
|
|
2526
2341
|
}, "intersectRect")
|
|
2527
|
-
}, q = /* @__PURE__ */
|
|
2528
|
-
let a =
|
|
2529
|
-
|
|
2530
|
-
let
|
|
2531
|
-
|
|
2342
|
+
}, q = /* @__PURE__ */ c(async (e, t, n, r) => {
|
|
2343
|
+
let a = p(), o, s = t.useHtmlLabels || _(a);
|
|
2344
|
+
o = n || "node default";
|
|
2345
|
+
let c = e.insert("g").attr("class", o).attr("id", t.domId || t.id), u = c.insert("g").attr("class", "label").attr("style", t.labelStyle), f;
|
|
2346
|
+
f = t.labelText === void 0 ? "" : typeof t.labelText == "string" ? t.labelText : t.labelText[0];
|
|
2532
2347
|
let m;
|
|
2533
|
-
m = t.labelType === "markdown" ?
|
|
2534
|
-
useHtmlLabels:
|
|
2348
|
+
m = t.labelType === "markdown" ? x(u, d(i(f), a), {
|
|
2349
|
+
useHtmlLabels: s,
|
|
2535
2350
|
width: t.width || a.flowchart.wrappingWidth,
|
|
2536
2351
|
classes: "markdown-node-label"
|
|
2537
|
-
}, a) : await
|
|
2352
|
+
}, a) : await V(u, d(i(f), a), t.labelStyle, !1, r);
|
|
2538
2353
|
let h = m.getBBox(), g = t.padding / 2;
|
|
2539
|
-
if (
|
|
2540
|
-
let e = m.children[0], t =
|
|
2541
|
-
await
|
|
2354
|
+
if (_(a)) {
|
|
2355
|
+
let e = m.children[0], t = l(m);
|
|
2356
|
+
await E(e, f), h = e.getBoundingClientRect(), t.attr("width", h.width), t.attr("height", h.height);
|
|
2542
2357
|
}
|
|
2543
|
-
return
|
|
2544
|
-
shapeSvg:
|
|
2358
|
+
return s ? u.attr("transform", "translate(" + -h.width / 2 + ", " + -h.height / 2 + ")") : u.attr("transform", "translate(0, " + -h.height / 2 + ")"), t.centerLabel && u.attr("transform", "translate(" + -h.width / 2 + ", " + -h.height / 2 + ")"), u.insert("rect", ":first-child"), {
|
|
2359
|
+
shapeSvg: c,
|
|
2545
2360
|
bbox: h,
|
|
2546
2361
|
halfPadding: g,
|
|
2547
|
-
label:
|
|
2362
|
+
label: u
|
|
2548
2363
|
};
|
|
2549
|
-
}, "labelHelper"), J = /* @__PURE__ */
|
|
2364
|
+
}, "labelHelper"), J = /* @__PURE__ */ c((e, t) => {
|
|
2550
2365
|
let n = t.node().getBBox();
|
|
2551
2366
|
e.width = n.width, e.height = n.height;
|
|
2552
2367
|
}, "updateNodeBounds");
|
|
@@ -2555,40 +2370,40 @@ function Y(e, t, n, r) {
|
|
|
2555
2370
|
return e.x + "," + e.y;
|
|
2556
2371
|
}).join(" ")).attr("class", "label-container").attr("transform", "translate(" + -t / 2 + "," + n / 2 + ")");
|
|
2557
2372
|
}
|
|
2558
|
-
|
|
2559
|
-
var
|
|
2560
|
-
t.useHtmlLabels ||
|
|
2561
|
-
let { shapeSvg:
|
|
2562
|
-
|
|
2563
|
-
let
|
|
2564
|
-
return
|
|
2373
|
+
c(Y, "insertPolygonShape");
|
|
2374
|
+
var Ke = /* @__PURE__ */ c(async (e, t) => {
|
|
2375
|
+
t.useHtmlLabels || _(p()) || (t.centerLabel = !0);
|
|
2376
|
+
let { shapeSvg: n, bbox: r, halfPadding: i } = await q(e, t, "node " + t.classes, !0);
|
|
2377
|
+
s.info("Classes = ", t.classes);
|
|
2378
|
+
let a = n.insert("rect", ":first-child");
|
|
2379
|
+
return a.attr("rx", t.rx).attr("ry", t.ry).attr("x", -r.width / 2 - i).attr("y", -r.height / 2 - i).attr("width", r.width + t.padding).attr("height", r.height + t.padding), J(t, a), t.intersect = function(e) {
|
|
2565
2380
|
return K.rect(t, e);
|
|
2566
|
-
},
|
|
2567
|
-
}, "note"),
|
|
2568
|
-
let { shapeSvg:
|
|
2381
|
+
}, n;
|
|
2382
|
+
}, "note"), qe = /* @__PURE__ */ c((e) => e ? " " + e : "", "formatClass"), X = /* @__PURE__ */ c((e, t) => `${t || "node default"}${qe(e.classes)} ${qe(e.class)}`, "getClassesFromNode"), Je = /* @__PURE__ */ c(async (e, t) => {
|
|
2383
|
+
let { shapeSvg: n, bbox: r } = await q(e, t, X(t, void 0), !0), i = r.width + t.padding + (r.height + t.padding), a = [
|
|
2569
2384
|
{
|
|
2570
|
-
x:
|
|
2385
|
+
x: i / 2,
|
|
2571
2386
|
y: 0
|
|
2572
2387
|
},
|
|
2573
2388
|
{
|
|
2574
|
-
x:
|
|
2575
|
-
y: -
|
|
2389
|
+
x: i,
|
|
2390
|
+
y: -i / 2
|
|
2576
2391
|
},
|
|
2577
2392
|
{
|
|
2578
|
-
x:
|
|
2579
|
-
y: -
|
|
2393
|
+
x: i / 2,
|
|
2394
|
+
y: -i
|
|
2580
2395
|
},
|
|
2581
2396
|
{
|
|
2582
2397
|
x: 0,
|
|
2583
|
-
y: -
|
|
2398
|
+
y: -i / 2
|
|
2584
2399
|
}
|
|
2585
2400
|
];
|
|
2586
|
-
|
|
2587
|
-
let
|
|
2588
|
-
return
|
|
2589
|
-
return
|
|
2590
|
-
},
|
|
2591
|
-
}, "question"),
|
|
2401
|
+
s.info("Question main (Circle)");
|
|
2402
|
+
let o = Y(n, i, i, a);
|
|
2403
|
+
return o.attr("style", t.style), J(t, o), t.intersect = function(e) {
|
|
2404
|
+
return s.warn("Intersect called"), K.polygon(t, a, e);
|
|
2405
|
+
}, n;
|
|
2406
|
+
}, "question"), Ye = /* @__PURE__ */ c((e, t) => {
|
|
2592
2407
|
let n = e.insert("g").attr("class", "node default").attr("id", t.domId || t.id);
|
|
2593
2408
|
return n.insert("polygon", ":first-child").attr("points", [
|
|
2594
2409
|
{
|
|
@@ -2612,7 +2427,7 @@ var Wn = /* @__PURE__ */ r(async (e, t) => {
|
|
|
2612
2427
|
}).join(" ")).attr("class", "state-start").attr("r", 7).attr("width", 28).attr("height", 28), t.width = 28, t.height = 28, t.intersect = function(e) {
|
|
2613
2428
|
return K.circle(t, 14, e);
|
|
2614
2429
|
}, n;
|
|
2615
|
-
}, "choice"),
|
|
2430
|
+
}, "choice"), Xe = /* @__PURE__ */ c(async (e, t) => {
|
|
2616
2431
|
let { shapeSvg: n, bbox: r } = await q(e, t, X(t, void 0), !0), i = r.height + t.padding, a = i / 4, o = r.width + 2 * a + t.padding, s = [
|
|
2617
2432
|
{
|
|
2618
2433
|
x: a,
|
|
@@ -2642,12 +2457,12 @@ var Wn = /* @__PURE__ */ r(async (e, t) => {
|
|
|
2642
2457
|
return c.attr("style", t.style), J(t, c), t.intersect = function(e) {
|
|
2643
2458
|
return K.polygon(t, s, e);
|
|
2644
2459
|
}, n;
|
|
2645
|
-
}, "hexagon"),
|
|
2646
|
-
let { shapeSvg: n, bbox: r } = await q(e, t, void 0, !0), i = r.height + 2 * t.padding, a = i / 2, o = r.width + 2 * a + t.padding, s =
|
|
2460
|
+
}, "hexagon"), Ze = /* @__PURE__ */ c(async (e, t) => {
|
|
2461
|
+
let { shapeSvg: n, bbox: r } = await q(e, t, void 0, !0), i = r.height + 2 * t.padding, a = i / 2, o = r.width + 2 * a + t.padding, s = Fe(t.directions, r, t), c = Y(n, o, i, s);
|
|
2647
2462
|
return c.attr("style", t.style), J(t, c), t.intersect = function(e) {
|
|
2648
2463
|
return K.polygon(t, s, e);
|
|
2649
2464
|
}, n;
|
|
2650
|
-
}, "block_arrow"),
|
|
2465
|
+
}, "block_arrow"), Qe = /* @__PURE__ */ c(async (e, t) => {
|
|
2651
2466
|
let { shapeSvg: n, bbox: r } = await q(e, t, X(t, void 0), !0), i = r.width + t.padding, a = r.height + t.padding, o = [
|
|
2652
2467
|
{
|
|
2653
2468
|
x: -a / 2,
|
|
@@ -2673,7 +2488,7 @@ var Wn = /* @__PURE__ */ r(async (e, t) => {
|
|
|
2673
2488
|
return Y(n, i, a, o).attr("style", t.style), t.width = i + a, t.height = a, t.intersect = function(e) {
|
|
2674
2489
|
return K.polygon(t, o, e);
|
|
2675
2490
|
}, n;
|
|
2676
|
-
}, "rect_left_inv_arrow"),
|
|
2491
|
+
}, "rect_left_inv_arrow"), $e = /* @__PURE__ */ c(async (e, t) => {
|
|
2677
2492
|
let { shapeSvg: n, bbox: r } = await q(e, t, X(t), !0), i = r.width + t.padding, a = r.height + t.padding, o = [
|
|
2678
2493
|
{
|
|
2679
2494
|
x: -2 * a / 6,
|
|
@@ -2695,7 +2510,7 @@ var Wn = /* @__PURE__ */ r(async (e, t) => {
|
|
|
2695
2510
|
return s.attr("style", t.style), J(t, s), t.intersect = function(e) {
|
|
2696
2511
|
return K.polygon(t, o, e);
|
|
2697
2512
|
}, n;
|
|
2698
|
-
}, "lean_right"),
|
|
2513
|
+
}, "lean_right"), et = /* @__PURE__ */ c(async (e, t) => {
|
|
2699
2514
|
let { shapeSvg: n, bbox: r } = await q(e, t, X(t, void 0), !0), i = r.width + t.padding, a = r.height + t.padding, o = [
|
|
2700
2515
|
{
|
|
2701
2516
|
x: 2 * a / 6,
|
|
@@ -2717,7 +2532,7 @@ var Wn = /* @__PURE__ */ r(async (e, t) => {
|
|
|
2717
2532
|
return s.attr("style", t.style), J(t, s), t.intersect = function(e) {
|
|
2718
2533
|
return K.polygon(t, o, e);
|
|
2719
2534
|
}, n;
|
|
2720
|
-
}, "lean_left"),
|
|
2535
|
+
}, "lean_left"), tt = /* @__PURE__ */ c(async (e, t) => {
|
|
2721
2536
|
let { shapeSvg: n, bbox: r } = await q(e, t, X(t, void 0), !0), i = r.width + t.padding, a = r.height + t.padding, o = [
|
|
2722
2537
|
{
|
|
2723
2538
|
x: -2 * a / 6,
|
|
@@ -2739,7 +2554,7 @@ var Wn = /* @__PURE__ */ r(async (e, t) => {
|
|
|
2739
2554
|
return s.attr("style", t.style), J(t, s), t.intersect = function(e) {
|
|
2740
2555
|
return K.polygon(t, o, e);
|
|
2741
2556
|
}, n;
|
|
2742
|
-
}, "trapezoid"),
|
|
2557
|
+
}, "trapezoid"), nt = /* @__PURE__ */ c(async (e, t) => {
|
|
2743
2558
|
let { shapeSvg: n, bbox: r } = await q(e, t, X(t, void 0), !0), i = r.width + t.padding, a = r.height + t.padding, o = [
|
|
2744
2559
|
{
|
|
2745
2560
|
x: a / 6,
|
|
@@ -2761,7 +2576,7 @@ var Wn = /* @__PURE__ */ r(async (e, t) => {
|
|
|
2761
2576
|
return s.attr("style", t.style), J(t, s), t.intersect = function(e) {
|
|
2762
2577
|
return K.polygon(t, o, e);
|
|
2763
2578
|
}, n;
|
|
2764
|
-
}, "inv_trapezoid"),
|
|
2579
|
+
}, "inv_trapezoid"), rt = /* @__PURE__ */ c(async (e, t) => {
|
|
2765
2580
|
let { shapeSvg: n, bbox: r } = await q(e, t, X(t, void 0), !0), i = r.width + t.padding, a = r.height + t.padding, o = [
|
|
2766
2581
|
{
|
|
2767
2582
|
x: 0,
|
|
@@ -2787,7 +2602,7 @@ var Wn = /* @__PURE__ */ r(async (e, t) => {
|
|
|
2787
2602
|
return s.attr("style", t.style), J(t, s), t.intersect = function(e) {
|
|
2788
2603
|
return K.polygon(t, o, e);
|
|
2789
2604
|
}, n;
|
|
2790
|
-
}, "rect_right_inv_arrow"),
|
|
2605
|
+
}, "rect_right_inv_arrow"), it = /* @__PURE__ */ c(async (e, t) => {
|
|
2791
2606
|
let { shapeSvg: n, bbox: r } = await q(e, t, X(t, void 0), !0), i = r.width + t.padding, a = i / 2, o = a / (2.5 + i / 50), s = r.height + o + t.padding, c = "M 0," + o + " a " + a + "," + o + " 0,0,0 " + i + " 0 a " + a + "," + o + " 0,0,0 " + -i + " 0 l 0," + s + " a " + a + "," + o + " 0,0,0 " + i + " 0 l 0," + -s;
|
|
2792
2607
|
return J(t, n.attr("label-offset-y", o).insert("path", ":first-child").attr("style", t.style).attr("d", c).attr("transform", "translate(" + -i / 2 + "," + -(s / 2 + o) + ")")), t.intersect = function(e) {
|
|
2793
2608
|
let n = K.rect(t, e), r = n.x - t.x;
|
|
@@ -2797,90 +2612,90 @@ var Wn = /* @__PURE__ */ r(async (e, t) => {
|
|
|
2797
2612
|
}
|
|
2798
2613
|
return n;
|
|
2799
2614
|
}, n;
|
|
2800
|
-
}, "cylinder"),
|
|
2801
|
-
let { shapeSvg:
|
|
2802
|
-
if (
|
|
2615
|
+
}, "cylinder"), at = /* @__PURE__ */ c(async (e, t) => {
|
|
2616
|
+
let { shapeSvg: n, bbox: r, halfPadding: i } = await q(e, t, "node " + t.classes + " " + t.class, !0), a = n.insert("rect", ":first-child"), o = t.positioned ? t.width : r.width + t.padding, c = t.positioned ? t.height : r.height + t.padding, l = t.positioned ? -o / 2 : -r.width / 2 - i, u = t.positioned ? -c / 2 : -r.height / 2 - i;
|
|
2617
|
+
if (a.attr("class", "basic label-container").attr("style", t.style).attr("rx", t.rx).attr("ry", t.ry).attr("x", l).attr("y", u).attr("width", o).attr("height", c), t.props) {
|
|
2803
2618
|
let e = new Set(Object.keys(t.props));
|
|
2804
|
-
t.props.borders && (Z(
|
|
2805
|
-
|
|
2619
|
+
t.props.borders && (Z(a, t.props.borders, o, c), e.delete("borders")), e.forEach((e) => {
|
|
2620
|
+
s.warn(`Unknown node property ${e}`);
|
|
2806
2621
|
});
|
|
2807
2622
|
}
|
|
2808
|
-
return J(t,
|
|
2623
|
+
return J(t, a), t.intersect = function(e) {
|
|
2809
2624
|
return K.rect(t, e);
|
|
2810
|
-
},
|
|
2811
|
-
}, "rect"),
|
|
2812
|
-
let { shapeSvg:
|
|
2813
|
-
if (
|
|
2625
|
+
}, n;
|
|
2626
|
+
}, "rect"), ot = /* @__PURE__ */ c(async (e, t) => {
|
|
2627
|
+
let { shapeSvg: n, bbox: r, halfPadding: i } = await q(e, t, "node " + t.classes, !0), a = n.insert("rect", ":first-child"), o = t.positioned ? t.width : r.width + t.padding, c = t.positioned ? t.height : r.height + t.padding, l = t.positioned ? -o / 2 : -r.width / 2 - i, u = t.positioned ? -c / 2 : -r.height / 2 - i;
|
|
2628
|
+
if (a.attr("class", "basic cluster composite label-container").attr("style", t.style).attr("rx", t.rx).attr("ry", t.ry).attr("x", l).attr("y", u).attr("width", o).attr("height", c), t.props) {
|
|
2814
2629
|
let e = new Set(Object.keys(t.props));
|
|
2815
|
-
t.props.borders && (Z(
|
|
2816
|
-
|
|
2630
|
+
t.props.borders && (Z(a, t.props.borders, o, c), e.delete("borders")), e.forEach((e) => {
|
|
2631
|
+
s.warn(`Unknown node property ${e}`);
|
|
2817
2632
|
});
|
|
2818
2633
|
}
|
|
2819
|
-
return J(t,
|
|
2634
|
+
return J(t, a), t.intersect = function(e) {
|
|
2820
2635
|
return K.rect(t, e);
|
|
2821
|
-
},
|
|
2822
|
-
}, "composite"),
|
|
2823
|
-
let { shapeSvg:
|
|
2824
|
-
|
|
2825
|
-
let
|
|
2826
|
-
if (
|
|
2636
|
+
}, n;
|
|
2637
|
+
}, "composite"), st = /* @__PURE__ */ c(async (e, t) => {
|
|
2638
|
+
let { shapeSvg: n } = await q(e, t, "label", !0);
|
|
2639
|
+
s.trace("Classes = ", t.class);
|
|
2640
|
+
let r = n.insert("rect", ":first-child");
|
|
2641
|
+
if (r.attr("width", 0).attr("height", 0), n.attr("class", "label edgeLabel"), t.props) {
|
|
2827
2642
|
let e = new Set(Object.keys(t.props));
|
|
2828
|
-
t.props.borders && (Z(
|
|
2829
|
-
|
|
2643
|
+
t.props.borders && (Z(r, t.props.borders, 0, 0), e.delete("borders")), e.forEach((e) => {
|
|
2644
|
+
s.warn(`Unknown node property ${e}`);
|
|
2830
2645
|
});
|
|
2831
2646
|
}
|
|
2832
|
-
return J(t,
|
|
2647
|
+
return J(t, r), t.intersect = function(e) {
|
|
2833
2648
|
return K.rect(t, e);
|
|
2834
|
-
},
|
|
2649
|
+
}, n;
|
|
2835
2650
|
}, "labelRect");
|
|
2836
|
-
function Z(e, t,
|
|
2837
|
-
let
|
|
2838
|
-
|
|
2839
|
-
}, "addBorder"),
|
|
2840
|
-
|
|
2651
|
+
function Z(e, t, n, r) {
|
|
2652
|
+
let i = [], a = /* @__PURE__ */ c((e) => {
|
|
2653
|
+
i.push(e, 0);
|
|
2654
|
+
}, "addBorder"), o = /* @__PURE__ */ c((e) => {
|
|
2655
|
+
i.push(0, e);
|
|
2841
2656
|
}, "skipBorder");
|
|
2842
|
-
t.includes("t") ? (
|
|
2657
|
+
t.includes("t") ? (s.debug("add top border"), a(n)) : o(n), t.includes("r") ? (s.debug("add right border"), a(r)) : o(r), t.includes("b") ? (s.debug("add bottom border"), a(n)) : o(n), t.includes("l") ? (s.debug("add left border"), a(r)) : o(r), e.attr("stroke-dasharray", i.join(" "));
|
|
2843
2658
|
}
|
|
2844
|
-
|
|
2845
|
-
var
|
|
2846
|
-
let
|
|
2847
|
-
|
|
2848
|
-
let
|
|
2849
|
-
|
|
2850
|
-
let
|
|
2659
|
+
c(Z, "applyNodePropertyBorders");
|
|
2660
|
+
var ct = /* @__PURE__ */ c(async (e, t) => {
|
|
2661
|
+
let n;
|
|
2662
|
+
n = t.classes ? "node " + t.classes : "node default";
|
|
2663
|
+
let r = e.insert("g").attr("class", n).attr("id", t.domId || t.id), i = r.insert("rect", ":first-child"), a = r.insert("line"), o = r.insert("g").attr("class", "label"), c = t.labelText.flat ? t.labelText.flat() : t.labelText, u = "";
|
|
2664
|
+
u = typeof c == "object" ? c[0] : c, s.info("Label text abc79", u, c, typeof c == "object");
|
|
2665
|
+
let d = await V(o, u, t.labelStyle, !0, !0), f = {
|
|
2851
2666
|
width: 0,
|
|
2852
2667
|
height: 0
|
|
2853
2668
|
};
|
|
2854
|
-
if (
|
|
2855
|
-
let e =
|
|
2856
|
-
|
|
2669
|
+
if (_(p())) {
|
|
2670
|
+
let e = d.children[0], t = l(d);
|
|
2671
|
+
f = e.getBoundingClientRect(), t.attr("width", f.width), t.attr("height", f.height);
|
|
2857
2672
|
}
|
|
2858
|
-
|
|
2859
|
-
let
|
|
2860
|
-
if (
|
|
2861
|
-
let e =
|
|
2862
|
-
|
|
2673
|
+
s.info("Text 2", c);
|
|
2674
|
+
let m = c.slice(1, c.length), h = d.getBBox(), g = await V(o, m.join ? m.join("<br/>") : m, t.labelStyle, !0, !0);
|
|
2675
|
+
if (_(p())) {
|
|
2676
|
+
let e = g.children[0], t = l(g);
|
|
2677
|
+
f = e.getBoundingClientRect(), t.attr("width", f.width), t.attr("height", f.height);
|
|
2863
2678
|
}
|
|
2864
2679
|
let v = t.padding / 2;
|
|
2865
|
-
return
|
|
2680
|
+
return l(g).attr("transform", "translate( " + (f.width > h.width ? 0 : (h.width - f.width) / 2) + ", " + (h.height + v + 5) + ")"), l(d).attr("transform", "translate( " + (f.width < h.width ? 0 : -(h.width - f.width) / 2) + ", 0)"), f = o.node().getBBox(), o.attr("transform", "translate(" + -f.width / 2 + ", " + (-f.height / 2 - v + 3) + ")"), i.attr("class", "outer title-state").attr("x", -f.width / 2 - v).attr("y", -f.height / 2 - v).attr("width", f.width + t.padding).attr("height", f.height + t.padding), a.attr("class", "divider").attr("x1", -f.width / 2 - v).attr("x2", f.width / 2 + v).attr("y1", -f.height / 2 - v + h.height + v).attr("y2", -f.height / 2 - v + h.height + v), J(t, i), t.intersect = function(e) {
|
|
2866
2681
|
return K.rect(t, e);
|
|
2867
|
-
},
|
|
2868
|
-
}, "rectWithTitle"),
|
|
2682
|
+
}, r;
|
|
2683
|
+
}, "rectWithTitle"), lt = /* @__PURE__ */ c(async (e, t) => {
|
|
2869
2684
|
let { shapeSvg: n, bbox: r } = await q(e, t, X(t, void 0), !0), i = r.height + t.padding, a = r.width + i / 4 + t.padding;
|
|
2870
2685
|
return J(t, n.insert("rect", ":first-child").attr("style", t.style).attr("rx", i / 2).attr("ry", i / 2).attr("x", -a / 2).attr("y", -i / 2).attr("width", a).attr("height", i)), t.intersect = function(e) {
|
|
2871
2686
|
return K.rect(t, e);
|
|
2872
2687
|
}, n;
|
|
2873
|
-
}, "stadium"),
|
|
2874
|
-
let { shapeSvg:
|
|
2875
|
-
return
|
|
2876
|
-
return
|
|
2877
|
-
},
|
|
2878
|
-
}, "circle"),
|
|
2879
|
-
let { shapeSvg:
|
|
2880
|
-
return
|
|
2881
|
-
return
|
|
2882
|
-
},
|
|
2883
|
-
}, "doublecircle"),
|
|
2688
|
+
}, "stadium"), ut = /* @__PURE__ */ c(async (e, t) => {
|
|
2689
|
+
let { shapeSvg: n, bbox: r, halfPadding: i } = await q(e, t, X(t, void 0), !0), a = n.insert("circle", ":first-child");
|
|
2690
|
+
return a.attr("style", t.style).attr("rx", t.rx).attr("ry", t.ry).attr("r", r.width / 2 + i).attr("width", r.width + t.padding).attr("height", r.height + t.padding), s.info("Circle main"), J(t, a), t.intersect = function(e) {
|
|
2691
|
+
return s.info("Circle intersect", t, r.width / 2 + i, e), K.circle(t, r.width / 2 + i, e);
|
|
2692
|
+
}, n;
|
|
2693
|
+
}, "circle"), dt = /* @__PURE__ */ c(async (e, t) => {
|
|
2694
|
+
let { shapeSvg: n, bbox: r, halfPadding: i } = await q(e, t, X(t, void 0), !0), a = n.insert("g", ":first-child"), o = a.insert("circle"), c = a.insert("circle");
|
|
2695
|
+
return a.attr("class", t.class), o.attr("style", t.style).attr("rx", t.rx).attr("ry", t.ry).attr("r", r.width / 2 + i + 5).attr("width", r.width + t.padding + 10).attr("height", r.height + t.padding + 10), c.attr("style", t.style).attr("rx", t.rx).attr("ry", t.ry).attr("r", r.width / 2 + i).attr("width", r.width + t.padding).attr("height", r.height + t.padding), s.info("DoubleCircle main"), J(t, o), t.intersect = function(e) {
|
|
2696
|
+
return s.info("DoubleCircle intersect", t, r.width / 2 + i + 5, e), K.circle(t, r.width / 2 + i + 5, e);
|
|
2697
|
+
}, n;
|
|
2698
|
+
}, "doublecircle"), ft = /* @__PURE__ */ c(async (e, t) => {
|
|
2884
2699
|
let { shapeSvg: n, bbox: r } = await q(e, t, X(t, void 0), !0), i = r.width + t.padding, a = r.height + t.padding, o = [
|
|
2885
2700
|
{
|
|
2886
2701
|
x: 0,
|
|
@@ -2926,135 +2741,135 @@ var or = /* @__PURE__ */ r(async (e, t) => {
|
|
|
2926
2741
|
return s.attr("style", t.style), J(t, s), t.intersect = function(e) {
|
|
2927
2742
|
return K.polygon(t, o, e);
|
|
2928
2743
|
}, n;
|
|
2929
|
-
}, "subroutine"),
|
|
2744
|
+
}, "subroutine"), pt = /* @__PURE__ */ c((e, t) => {
|
|
2930
2745
|
let n = e.insert("g").attr("class", "node default").attr("id", t.domId || t.id), r = n.insert("circle", ":first-child");
|
|
2931
2746
|
return r.attr("class", "state-start").attr("r", 7).attr("width", 14).attr("height", 14), J(t, r), t.intersect = function(e) {
|
|
2932
2747
|
return K.circle(t, 7, e);
|
|
2933
2748
|
}, n;
|
|
2934
|
-
}, "start"),
|
|
2749
|
+
}, "start"), mt = /* @__PURE__ */ c((e, t, n) => {
|
|
2935
2750
|
let r = e.insert("g").attr("class", "node default").attr("id", t.domId || t.id), i = 70, a = 10;
|
|
2936
2751
|
return n === "LR" && (i = 10, a = 70), J(t, r.append("rect").attr("x", -1 * i / 2).attr("y", -1 * a / 2).attr("width", i).attr("height", a).attr("class", "fork-join")), t.height += t.padding / 2, t.width += t.padding / 2, t.intersect = function(e) {
|
|
2937
2752
|
return K.rect(t, e);
|
|
2938
2753
|
}, r;
|
|
2939
|
-
}, "forkJoin"),
|
|
2940
|
-
rhombus:
|
|
2941
|
-
composite:
|
|
2942
|
-
question:
|
|
2943
|
-
rect:
|
|
2944
|
-
labelRect:
|
|
2945
|
-
rectWithTitle:
|
|
2946
|
-
choice:
|
|
2947
|
-
circle:
|
|
2948
|
-
doublecircle:
|
|
2949
|
-
stadium:
|
|
2950
|
-
hexagon:
|
|
2951
|
-
block_arrow:
|
|
2952
|
-
rect_left_inv_arrow:
|
|
2953
|
-
lean_right:
|
|
2954
|
-
lean_left:
|
|
2955
|
-
trapezoid:
|
|
2956
|
-
inv_trapezoid:
|
|
2957
|
-
rect_right_inv_arrow:
|
|
2958
|
-
cylinder:
|
|
2959
|
-
start:
|
|
2960
|
-
end: /* @__PURE__ */
|
|
2754
|
+
}, "forkJoin"), ht = {
|
|
2755
|
+
rhombus: Je,
|
|
2756
|
+
composite: ot,
|
|
2757
|
+
question: Je,
|
|
2758
|
+
rect: at,
|
|
2759
|
+
labelRect: st,
|
|
2760
|
+
rectWithTitle: ct,
|
|
2761
|
+
choice: Ye,
|
|
2762
|
+
circle: ut,
|
|
2763
|
+
doublecircle: dt,
|
|
2764
|
+
stadium: lt,
|
|
2765
|
+
hexagon: Xe,
|
|
2766
|
+
block_arrow: Ze,
|
|
2767
|
+
rect_left_inv_arrow: Qe,
|
|
2768
|
+
lean_right: $e,
|
|
2769
|
+
lean_left: et,
|
|
2770
|
+
trapezoid: tt,
|
|
2771
|
+
inv_trapezoid: nt,
|
|
2772
|
+
rect_right_inv_arrow: rt,
|
|
2773
|
+
cylinder: it,
|
|
2774
|
+
start: pt,
|
|
2775
|
+
end: /* @__PURE__ */ c((e, t) => {
|
|
2961
2776
|
let n = e.insert("g").attr("class", "node default").attr("id", t.domId || t.id), r = n.insert("circle", ":first-child"), i = n.insert("circle", ":first-child");
|
|
2962
2777
|
return i.attr("class", "state-start").attr("r", 7).attr("width", 14).attr("height", 14), r.attr("class", "state-end").attr("r", 5).attr("width", 10).attr("height", 10), J(t, i), t.intersect = function(e) {
|
|
2963
2778
|
return K.circle(t, 7, e);
|
|
2964
2779
|
}, n;
|
|
2965
2780
|
}, "end"),
|
|
2966
|
-
note:
|
|
2967
|
-
subroutine:
|
|
2968
|
-
fork:
|
|
2969
|
-
join:
|
|
2970
|
-
class_box: /* @__PURE__ */
|
|
2781
|
+
note: Ke,
|
|
2782
|
+
subroutine: ft,
|
|
2783
|
+
fork: mt,
|
|
2784
|
+
join: mt,
|
|
2785
|
+
class_box: /* @__PURE__ */ c(async (e, t) => {
|
|
2971
2786
|
var n;
|
|
2972
|
-
let r = t.padding / 2,
|
|
2973
|
-
|
|
2974
|
-
let
|
|
2975
|
-
if (
|
|
2976
|
-
let e =
|
|
2787
|
+
let r = t.padding / 2, i;
|
|
2788
|
+
i = t.classes ? "node " + t.classes : "node default";
|
|
2789
|
+
let a = e.insert("g").attr("class", i).attr("id", t.domId || t.id), o = a.insert("rect", ":first-child"), s = a.insert("line"), c = a.insert("line"), u = 0, d = 4, f = a.insert("g").attr("class", "label"), m = 0, h = (n = t.classData.annotations) == null ? void 0 : n[0], g = await V(f, t.classData.annotations[0] ? "«" + t.classData.annotations[0] + "»" : "", t.labelStyle, !0, !0), v = g.getBBox();
|
|
2790
|
+
if (_(p())) {
|
|
2791
|
+
let e = g.children[0], t = l(g);
|
|
2977
2792
|
v = e.getBoundingClientRect(), t.attr("width", v.width), t.attr("height", v.height);
|
|
2978
2793
|
}
|
|
2979
|
-
t.classData.annotations[0] && (
|
|
2794
|
+
t.classData.annotations[0] && (d += v.height + 4, u += v.width);
|
|
2980
2795
|
let y = t.classData.label;
|
|
2981
|
-
t.classData.type !== void 0 && t.classData.type !== "" && (
|
|
2982
|
-
let b = await
|
|
2983
|
-
|
|
2796
|
+
t.classData.type !== void 0 && t.classData.type !== "" && (_(p()) ? y += "<" + t.classData.type + ">" : y += "<" + t.classData.type + ">");
|
|
2797
|
+
let b = await V(f, y, t.labelStyle, !0, !0);
|
|
2798
|
+
l(b).attr("class", "classTitle");
|
|
2984
2799
|
let x = b.getBBox();
|
|
2985
|
-
if (
|
|
2986
|
-
let e = b.children[0], t =
|
|
2800
|
+
if (_(p())) {
|
|
2801
|
+
let e = b.children[0], t = l(b);
|
|
2987
2802
|
x = e.getBoundingClientRect(), t.attr("width", x.width), t.attr("height", x.height);
|
|
2988
2803
|
}
|
|
2989
|
-
|
|
2804
|
+
d += x.height + 4, x.width > u && (u = x.width);
|
|
2990
2805
|
let S = [];
|
|
2991
2806
|
t.classData.members.forEach(async (e) => {
|
|
2992
2807
|
let n = e.getDisplayDetails(), r = n.displayText;
|
|
2993
|
-
|
|
2994
|
-
let
|
|
2995
|
-
if (
|
|
2996
|
-
let e =
|
|
2997
|
-
|
|
2808
|
+
_(p()) && (r = r.replace(/</g, "<").replace(/>/g, ">"));
|
|
2809
|
+
let i = await V(f, r, n.cssStyle ? n.cssStyle : t.labelStyle, !0, !0), a = i.getBBox();
|
|
2810
|
+
if (_(p())) {
|
|
2811
|
+
let e = i.children[0], t = l(i);
|
|
2812
|
+
a = e.getBoundingClientRect(), t.attr("width", a.width), t.attr("height", a.height);
|
|
2998
2813
|
}
|
|
2999
|
-
|
|
3000
|
-
}),
|
|
2814
|
+
a.width > u && (u = a.width), d += a.height + 4, S.push(i);
|
|
2815
|
+
}), d += 8;
|
|
3001
2816
|
let C = [];
|
|
3002
2817
|
if (t.classData.methods.forEach(async (e) => {
|
|
3003
2818
|
let n = e.getDisplayDetails(), r = n.displayText;
|
|
3004
|
-
|
|
3005
|
-
let
|
|
3006
|
-
if (
|
|
3007
|
-
let e =
|
|
3008
|
-
|
|
2819
|
+
_(p()) && (r = r.replace(/</g, "<").replace(/>/g, ">"));
|
|
2820
|
+
let i = await V(f, r, n.cssStyle ? n.cssStyle : t.labelStyle, !0, !0), a = i.getBBox();
|
|
2821
|
+
if (_(p())) {
|
|
2822
|
+
let e = i.children[0], t = l(i);
|
|
2823
|
+
a = e.getBoundingClientRect(), t.attr("width", a.width), t.attr("height", a.height);
|
|
3009
2824
|
}
|
|
3010
|
-
|
|
3011
|
-
}),
|
|
3012
|
-
let e = (
|
|
3013
|
-
|
|
2825
|
+
a.width > u && (u = a.width), d += a.height + 4, C.push(i);
|
|
2826
|
+
}), d += 8, h) {
|
|
2827
|
+
let e = (u - v.width) / 2;
|
|
2828
|
+
l(g).attr("transform", "translate( " + (-1 * u / 2 + e) + ", " + -1 * d / 2 + ")"), m = v.height + 4;
|
|
3014
2829
|
}
|
|
3015
|
-
let w = (
|
|
3016
|
-
return
|
|
2830
|
+
let w = (u - x.width) / 2;
|
|
2831
|
+
return l(b).attr("transform", "translate( " + (-1 * u / 2 + w) + ", " + (-1 * d / 2 + m) + ")"), m += x.height + 4, s.attr("class", "divider").attr("x1", -u / 2 - r).attr("x2", u / 2 + r).attr("y1", -d / 2 - r + 8 + m).attr("y2", -d / 2 - r + 8 + m), m += 8, S.forEach((e) => {
|
|
3017
2832
|
var t;
|
|
3018
|
-
|
|
2833
|
+
l(e).attr("transform", "translate( " + -u / 2 + ", " + (-1 * d / 2 + m + 8 / 2) + ")");
|
|
3019
2834
|
let n = e == null ? void 0 : e.getBBox();
|
|
3020
|
-
|
|
3021
|
-
}),
|
|
2835
|
+
m += ((t = n == null ? void 0 : n.height) == null ? 0 : t) + 4;
|
|
2836
|
+
}), m += 8, c.attr("class", "divider").attr("x1", -u / 2 - r).attr("x2", u / 2 + r).attr("y1", -d / 2 - r + 8 + m).attr("y2", -d / 2 - r + 8 + m), m += 8, C.forEach((e) => {
|
|
3022
2837
|
var t;
|
|
3023
|
-
|
|
2838
|
+
l(e).attr("transform", "translate( " + -u / 2 + ", " + (-1 * d / 2 + m) + ")");
|
|
3024
2839
|
let n = e == null ? void 0 : e.getBBox();
|
|
3025
|
-
|
|
3026
|
-
}),
|
|
2840
|
+
m += ((t = n == null ? void 0 : n.height) == null ? 0 : t) + 4;
|
|
2841
|
+
}), o.attr("style", t.style).attr("class", "outer title-state").attr("x", -u / 2 - r).attr("y", -(d / 2) - r).attr("width", u + t.padding).attr("height", d + t.padding), J(t, o), t.intersect = function(e) {
|
|
3027
2842
|
return K.rect(t, e);
|
|
3028
|
-
},
|
|
2843
|
+
}, a;
|
|
3029
2844
|
}, "class_box")
|
|
3030
|
-
}, Q = {},
|
|
2845
|
+
}, Q = {}, gt = /* @__PURE__ */ c(async (e, t, n) => {
|
|
3031
2846
|
let r, i;
|
|
3032
2847
|
if (t.link) {
|
|
3033
2848
|
let a;
|
|
3034
|
-
|
|
3035
|
-
} else i = await
|
|
2849
|
+
p().securityLevel === "sandbox" ? a = "_top" : t.linkTarget && (a = t.linkTarget || "_blank"), r = e.insert("svg:a").attr("xlink:href", t.link).attr("target", a), i = await ht[t.shape](r, t, n);
|
|
2850
|
+
} else i = await ht[t.shape](e, t, n), r = i;
|
|
3036
2851
|
return t.tooltip && i.attr("title", t.tooltip), t.class && i.attr("class", "node default " + t.class), Q[t.id] = r, t.haveCallback && Q[t.id].attr("class", Q[t.id].attr("class") + " clickable"), r;
|
|
3037
|
-
}, "insertNode"),
|
|
2852
|
+
}, "insertNode"), _t = /* @__PURE__ */ c((e) => {
|
|
3038
2853
|
let t = Q[e.id];
|
|
3039
|
-
|
|
3040
|
-
let
|
|
3041
|
-
return e.clusterNode ? t.attr("transform", "translate(" + (e.x +
|
|
2854
|
+
s.trace("Transforming node", e.diff, e, "translate(" + (e.x - e.width / 2 - 5) + ", " + e.width / 2 + ")");
|
|
2855
|
+
let n = e.diff || 0;
|
|
2856
|
+
return e.clusterNode ? t.attr("transform", "translate(" + (e.x + n - e.width / 2) + ", " + (e.y - e.height / 2 - 8) + ")") : t.attr("transform", "translate(" + e.x + ", " + e.y + ")"), n;
|
|
3042
2857
|
}, "positionNode");
|
|
3043
|
-
function
|
|
3044
|
-
var
|
|
3045
|
-
let
|
|
3046
|
-
if (((
|
|
3047
|
-
var
|
|
3048
|
-
|
|
2858
|
+
function vt(e, t, r = !1) {
|
|
2859
|
+
var i, a, o, s, c, l;
|
|
2860
|
+
let u = e, d = "default";
|
|
2861
|
+
if (((u == null || (i = u.classes) == null ? void 0 : i.length) || 0) > 0) {
|
|
2862
|
+
var f;
|
|
2863
|
+
d = ((f = u == null ? void 0 : u.classes) == null ? [] : f).join(" ");
|
|
3049
2864
|
}
|
|
3050
|
-
|
|
3051
|
-
let
|
|
3052
|
-
switch (
|
|
2865
|
+
d += " flowchart-label";
|
|
2866
|
+
let p = 0, m = "", h;
|
|
2867
|
+
switch (u.type) {
|
|
3053
2868
|
case "round":
|
|
3054
|
-
|
|
2869
|
+
p = 5, m = "rect";
|
|
3055
2870
|
break;
|
|
3056
2871
|
case "composite":
|
|
3057
|
-
|
|
2872
|
+
p = 0, m = "composite", h = 0;
|
|
3058
2873
|
break;
|
|
3059
2874
|
case "square":
|
|
3060
2875
|
m = "rect";
|
|
@@ -3109,38 +2924,38 @@ function gr(e, t, n = !1) {
|
|
|
3109
2924
|
break;
|
|
3110
2925
|
default: m = "rect";
|
|
3111
2926
|
}
|
|
3112
|
-
let g =
|
|
2927
|
+
let g = n((a = u == null ? void 0 : u.styles) == null ? [] : a), _ = u.label, y = (o = u.size) == null ? {
|
|
3113
2928
|
width: 0,
|
|
3114
2929
|
height: 0,
|
|
3115
2930
|
x: 0,
|
|
3116
2931
|
y: 0
|
|
3117
|
-
} :
|
|
2932
|
+
} : o, b = t.getDiagramId();
|
|
3118
2933
|
return {
|
|
3119
2934
|
labelStyle: g.labelStyle,
|
|
3120
2935
|
shape: m,
|
|
3121
2936
|
labelText: _,
|
|
3122
|
-
rx:
|
|
3123
|
-
ry:
|
|
3124
|
-
class:
|
|
2937
|
+
rx: p,
|
|
2938
|
+
ry: p,
|
|
2939
|
+
class: d,
|
|
3125
2940
|
style: g.style,
|
|
3126
|
-
id:
|
|
3127
|
-
domId:
|
|
3128
|
-
directions:
|
|
3129
|
-
width:
|
|
3130
|
-
height:
|
|
3131
|
-
x:
|
|
3132
|
-
y:
|
|
3133
|
-
positioned:
|
|
2941
|
+
id: u.id,
|
|
2942
|
+
domId: b ? `${b}-${u.id}` : u.id,
|
|
2943
|
+
directions: u.directions,
|
|
2944
|
+
width: y.width,
|
|
2945
|
+
height: y.height,
|
|
2946
|
+
x: y.x,
|
|
2947
|
+
y: y.y,
|
|
2948
|
+
positioned: r,
|
|
3134
2949
|
intersect: void 0,
|
|
3135
|
-
type:
|
|
3136
|
-
padding: (
|
|
2950
|
+
type: u.type,
|
|
2951
|
+
padding: (s = (c = h) == null ? (l = v()) == null || (l = l.block) == null ? void 0 : l.padding : c) == null ? 0 : s
|
|
3137
2952
|
};
|
|
3138
2953
|
}
|
|
3139
|
-
|
|
3140
|
-
async function
|
|
3141
|
-
let r =
|
|
2954
|
+
c(vt, "getNodeFromBlock");
|
|
2955
|
+
async function yt(e, t, n) {
|
|
2956
|
+
let r = vt(t, n, !1);
|
|
3142
2957
|
if (r.type === "group") return;
|
|
3143
|
-
let i = await
|
|
2958
|
+
let i = await gt(e, r, { config: v() }), a = i.node().getBBox(), o = n.getBlock(r.id);
|
|
3144
2959
|
o.size = {
|
|
3145
2960
|
width: a.width,
|
|
3146
2961
|
height: a.height,
|
|
@@ -3149,26 +2964,26 @@ async function _r(e, t, n) {
|
|
|
3149
2964
|
node: i
|
|
3150
2965
|
}, n.setBlock(o), i.remove();
|
|
3151
2966
|
}
|
|
3152
|
-
|
|
3153
|
-
async function
|
|
3154
|
-
let r =
|
|
3155
|
-
n.getBlock(r.id).type !== "space" && (await
|
|
2967
|
+
c(yt, "calculateBlockSize");
|
|
2968
|
+
async function bt(e, t, n) {
|
|
2969
|
+
let r = vt(t, n, !0);
|
|
2970
|
+
n.getBlock(r.id).type !== "space" && (await gt(e, r, { config: v() }), t.intersect = r == null ? void 0 : r.intersect, _t(r));
|
|
3156
2971
|
}
|
|
3157
|
-
|
|
2972
|
+
c(bt, "insertBlockPositioned");
|
|
3158
2973
|
async function $(e, t, n, r) {
|
|
3159
2974
|
for (let i of t) await r(e, i, n), i.children && await $(e, i.children, n, r);
|
|
3160
2975
|
}
|
|
3161
|
-
|
|
3162
|
-
async function
|
|
3163
|
-
await $(e, t, n,
|
|
2976
|
+
c($, "performOperations");
|
|
2977
|
+
async function xt(e, t, n) {
|
|
2978
|
+
await $(e, t, n, yt);
|
|
3164
2979
|
}
|
|
3165
|
-
|
|
3166
|
-
async function
|
|
3167
|
-
await $(e, t, n,
|
|
2980
|
+
c(xt, "calculateBlockSizes");
|
|
2981
|
+
async function St(e, t, n) {
|
|
2982
|
+
await $(e, t, n, bt);
|
|
3168
2983
|
}
|
|
3169
|
-
|
|
3170
|
-
async function
|
|
3171
|
-
let s = new
|
|
2984
|
+
c(St, "insertBlocks");
|
|
2985
|
+
async function Ct(t, n, r, i, a) {
|
|
2986
|
+
let s = new o({
|
|
3172
2987
|
multigraph: !0,
|
|
3173
2988
|
compound: !0
|
|
3174
2989
|
});
|
|
@@ -3179,81 +2994,81 @@ async function xr(n, r, i, a, o) {
|
|
|
3179
2994
|
marginx: 8,
|
|
3180
2995
|
marginy: 8
|
|
3181
2996
|
});
|
|
3182
|
-
for (let e of
|
|
2997
|
+
for (let e of r) e.size && s.setNode(e.id, {
|
|
3183
2998
|
width: e.size.width,
|
|
3184
2999
|
height: e.size.height,
|
|
3185
3000
|
intersect: e.intersect
|
|
3186
3001
|
});
|
|
3187
|
-
for (let
|
|
3188
|
-
let
|
|
3189
|
-
if (
|
|
3190
|
-
let
|
|
3002
|
+
for (let r of n) if (r.start && r.end) {
|
|
3003
|
+
let n = i.getBlock(r.start), o = i.getBlock(r.end);
|
|
3004
|
+
if (n != null && n.size && o != null && o.size) {
|
|
3005
|
+
let i = n.size, c = o.size, l = [
|
|
3191
3006
|
{
|
|
3192
|
-
x:
|
|
3193
|
-
y:
|
|
3007
|
+
x: i.x,
|
|
3008
|
+
y: i.y
|
|
3194
3009
|
},
|
|
3195
3010
|
{
|
|
3196
|
-
x:
|
|
3197
|
-
y:
|
|
3011
|
+
x: i.x + (c.x - i.x) / 2,
|
|
3012
|
+
y: i.y + (c.y - i.y) / 2
|
|
3198
3013
|
},
|
|
3199
3014
|
{
|
|
3200
3015
|
x: c.x,
|
|
3201
3016
|
y: c.y
|
|
3202
3017
|
}
|
|
3203
|
-
], u =
|
|
3204
|
-
|
|
3205
|
-
v:
|
|
3206
|
-
w:
|
|
3018
|
+
], u = a ? `${a}-${r.id}` : r.id;
|
|
3019
|
+
Ne(t, {
|
|
3020
|
+
v: r.start,
|
|
3021
|
+
w: r.end,
|
|
3207
3022
|
name: u
|
|
3208
|
-
}, e(e({},
|
|
3023
|
+
}, e(e({}, r), {}, {
|
|
3209
3024
|
id: u,
|
|
3210
|
-
arrowTypeEnd:
|
|
3211
|
-
arrowTypeStart:
|
|
3025
|
+
arrowTypeEnd: r.arrowTypeEnd,
|
|
3026
|
+
arrowTypeStart: r.arrowTypeStart,
|
|
3212
3027
|
points: l,
|
|
3213
3028
|
classes: "edge-thickness-normal edge-pattern-solid flowchart-link LS-a1 LE-b1"
|
|
3214
|
-
}), void 0, "block", s,
|
|
3215
|
-
label:
|
|
3029
|
+
}), void 0, "block", s, a), r.label && (await Oe(t, e(e({}, r), {}, {
|
|
3030
|
+
label: r.label,
|
|
3216
3031
|
labelStyle: "stroke: #333; stroke-width: 1.5px;fill:none;",
|
|
3217
|
-
arrowTypeEnd:
|
|
3218
|
-
arrowTypeStart:
|
|
3032
|
+
arrowTypeEnd: r.arrowTypeEnd,
|
|
3033
|
+
arrowTypeStart: r.arrowTypeStart,
|
|
3219
3034
|
points: l,
|
|
3220
3035
|
classes: "edge-thickness-normal edge-pattern-solid flowchart-link LS-a1 LE-b1"
|
|
3221
|
-
})),
|
|
3036
|
+
})), ke(e(e({}, r), {}, {
|
|
3222
3037
|
x: l[1].x,
|
|
3223
3038
|
y: l[1].y
|
|
3224
3039
|
}), { originalPath: l }));
|
|
3225
3040
|
}
|
|
3226
3041
|
}
|
|
3227
3042
|
}
|
|
3228
|
-
|
|
3229
|
-
var
|
|
3230
|
-
parser:
|
|
3231
|
-
db:
|
|
3043
|
+
c(Ct, "insertEdges");
|
|
3044
|
+
var wt = {
|
|
3045
|
+
parser: A,
|
|
3046
|
+
db: he,
|
|
3232
3047
|
renderer: {
|
|
3233
|
-
draw: /* @__PURE__ */
|
|
3234
|
-
let { securityLevel:
|
|
3235
|
-
|
|
3236
|
-
let
|
|
3237
|
-
|
|
3238
|
-
let
|
|
3239
|
-
|
|
3048
|
+
draw: /* @__PURE__ */ c(async function(e, t, n, r) {
|
|
3049
|
+
let { securityLevel: i, block: a } = v(), o = r.db;
|
|
3050
|
+
o.setDiagramId(t);
|
|
3051
|
+
let c;
|
|
3052
|
+
i === "sandbox" && (c = l("#i" + t));
|
|
3053
|
+
let u = l(i === "sandbox" ? c.nodes()[0].contentDocument.body : "body"), d = i === "sandbox" ? u.select(`[id="${t}"]`) : l(`[id="${t}"]`);
|
|
3054
|
+
ye(d, [
|
|
3240
3055
|
"point",
|
|
3241
3056
|
"circle",
|
|
3242
3057
|
"cross"
|
|
3243
|
-
],
|
|
3244
|
-
let
|
|
3245
|
-
await
|
|
3246
|
-
let
|
|
3247
|
-
if (await
|
|
3248
|
-
let e =
|
|
3249
|
-
|
|
3058
|
+
], r.type, t);
|
|
3059
|
+
let f = o.getBlocks(), p = o.getBlocksFlat(), h = o.getEdges(), g = d.insert("g").attr("class", "block");
|
|
3060
|
+
await xt(g, f, o);
|
|
3061
|
+
let _ = we(o);
|
|
3062
|
+
if (await St(g, f, o), await Ct(g, h, p, o, t), _) {
|
|
3063
|
+
let e = _, t = Math.max(1, Math.round(.125 * (e.width / e.height))), n = e.height + t + 10, r = e.width + 10, { useMaxWidth: i } = a;
|
|
3064
|
+
m(d, n, r, !!i), s.debug("Here Bounds", _, e), d.attr("viewBox", `${e.x - 5} ${e.y - 5} ${e.width + 10} ${e.height + 10}`);
|
|
3250
3065
|
}
|
|
3251
3066
|
}, "draw"),
|
|
3252
|
-
getClasses: /* @__PURE__ */
|
|
3067
|
+
getClasses: /* @__PURE__ */ c(function(e, t) {
|
|
3253
3068
|
return t.db.getClasses();
|
|
3254
3069
|
}, "getClasses")
|
|
3255
3070
|
},
|
|
3256
|
-
styles:
|
|
3071
|
+
styles: ge
|
|
3257
3072
|
};
|
|
3258
3073
|
//#endregion
|
|
3259
|
-
export {
|
|
3074
|
+
export { wt as diagram };
|