@sme.up/ketchup2 2.0.0 → 2.1.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/arc-CqG9Hxdf.cjs +1 -0
- package/dist/arc-Klgb378K.js +80 -0
- package/dist/architecture-YZFGNWBL-BRqToLcm.js +3 -0
- package/dist/architecture-YZFGNWBL-BTOWQWD9.cjs +1 -0
- package/dist/architectureDiagram-Q4EWVU46-JSjagcXX.cjs +36 -0
- package/dist/architectureDiagram-Q4EWVU46-u2vgZv3N.js +4057 -0
- package/dist/array-D8NZ46Ht.js +6 -0
- package/dist/array-Dxz0O8Q3.cjs +1 -0
- package/dist/assets/imageListAssets.d.ts +3 -1
- package/dist/assets/imageListAssets.d.ts.map +1 -1
- package/dist/basic-components/autocomplete/autocomplete.d.ts.map +1 -1
- package/dist/basic-components/list/list-types.d.ts +0 -1
- package/dist/basic-components/list/list-types.d.ts.map +1 -1
- package/dist/basic-components/list/list.d.ts.map +1 -1
- package/dist/basic-components/notification/notification.assets.d.ts.map +1 -1
- package/dist/basic-components/select/select.d.ts.map +1 -1
- package/dist/basic-components/text-editor/text-editor-utils.d.ts.map +1 -1
- package/dist/blockDiagram-DXYQGD6D-BpB6_kTP.js +3033 -0
- package/dist/blockDiagram-DXYQGD6D-DlcDXSwH.cjs +132 -0
- package/dist/c4Diagram-AHTNJAMY-B5Z8nO1s.js +2961 -0
- package/dist/c4Diagram-AHTNJAMY-CX5IjREU.cjs +10 -0
- package/dist/channel-BY9Lkyz7.cjs +1 -0
- package/dist/channel-BqNr2cYO.js +5 -0
- package/dist/chunk-2KRD3SAO-Ca3zDQyj.js +23 -0
- package/dist/chunk-2KRD3SAO-oZrIWZvV.cjs +1 -0
- package/dist/chunk-336JU56O-CuXRn1VH.cjs +1 -0
- package/dist/chunk-336JU56O-xKPgkG3O.js +49 -0
- package/dist/chunk-426QAEUC-Df31vuwu.cjs +1 -0
- package/dist/chunk-426QAEUC-JjFVHKYG.js +9 -0
- package/dist/chunk-4BX2VUAB-BW54-JWg.js +8 -0
- package/dist/chunk-4BX2VUAB-Qba52sxc.cjs +1 -0
- package/dist/chunk-4TB4RGXK-CKyHmNcP.js +3253 -0
- package/dist/chunk-4TB4RGXK-DdKJIFS5.cjs +206 -0
- package/dist/chunk-55IACEB6-Bu3k0Yz5.js +8 -0
- package/dist/chunk-55IACEB6-DPatBzu7.cjs +1 -0
- package/dist/chunk-5FUZZQ4R-2kdZJWq2.js +3638 -0
- package/dist/chunk-5FUZZQ4R-D_vnCbAb.cjs +62 -0
- package/dist/chunk-5PVQY5BW-C5U7sJAA.js +1299 -0
- package/dist/chunk-5PVQY5BW-CfQDYQZt.cjs +2 -0
- package/dist/chunk-67CJDMHE-2Qg7i1xJ.cjs +1 -0
- package/dist/chunk-67CJDMHE-YMBkJcAO.js +23 -0
- package/dist/chunk-7N4EOEYR-C-GuhRgW.js +35 -0
- package/dist/chunk-7N4EOEYR-jNBQwvHx.cjs +1 -0
- package/dist/chunk-AA7GKIK3-B_ZB6dou.js +30 -0
- package/dist/chunk-AA7GKIK3-dqnTmnvO.cjs +1 -0
- package/dist/chunk-BSJP7CBP-CFzYPvgr.cjs +1 -0
- package/dist/chunk-BSJP7CBP-oNTXVRA7.js +82 -0
- package/dist/chunk-CIAEETIT-ClHUj0Su.cjs +1 -0
- package/dist/chunk-CIAEETIT-XlxsAz-4.js +23 -0
- package/dist/chunk-D-IZpNpi.cjs +1 -0
- package/dist/chunk-EDXVE4YY-BZsJORf8.cjs +1 -0
- package/dist/chunk-EDXVE4YY-Bzf4FU3i.js +25 -0
- package/dist/chunk-ENJZ2VHE-BluGQPyl.js +560 -0
- package/dist/chunk-ENJZ2VHE-CwgVASaU.cjs +10 -0
- package/dist/{chunk-FMBD7UC4-C1wIcaJH.js → chunk-FMBD7UC4-CS9_r76V.cjs} +2 -6
- package/dist/chunk-FMBD7UC4-RRSc9jqt.js +5 -0
- package/dist/chunk-FOC6F5B3-DcZs851j.cjs +1 -0
- package/dist/chunk-FOC6F5B3-E9n6-juB.js +23 -0
- package/dist/chunk-ICPOFSXX-CoaJw-IT.cjs +122 -0
- package/dist/chunk-ICPOFSXX-Sn6LWD0k.js +3316 -0
- package/dist/chunk-K5T4RW27-BzDQkjC7.cjs +94 -0
- package/dist/chunk-K5T4RW27-DY7TOEqa.js +16070 -0
- package/dist/chunk-KGLVRYIC-5OJpfQCj.js +23 -0
- package/dist/chunk-KGLVRYIC-DnbIkai8.cjs +1 -0
- package/dist/chunk-LIHQZDEY-59I4-LWb.js +64 -0
- package/dist/chunk-LIHQZDEY-CrogR3nT.cjs +1 -0
- package/dist/chunk-ORNJ4GCN-CcrEtiCn.cjs +1 -0
- package/dist/chunk-ORNJ4GCN-CwkOSFbS.js +31 -0
- package/dist/chunk-OYMX7WX6-BCT45RPu.cjs +231 -0
- package/dist/chunk-OYMX7WX6-BQADsxYi.js +2014 -0
- package/dist/chunk-QZHKN3VN-Bx8I6l3c.js +15 -0
- package/dist/chunk-QZHKN3VN-CSMKL2rB.cjs +1 -0
- package/dist/chunk-U2HBQHQK-BZ3YFMXB.js +1879 -0
- package/dist/chunk-U2HBQHQK-D0AoQWxK.cjs +70 -0
- package/dist/chunk-WQLz0Won.js +20 -0
- package/dist/chunk-X2U36JSP-CY7mJR8m.js +67 -0
- package/dist/chunk-X2U36JSP-D1RYKjVc.cjs +1 -0
- package/dist/chunk-XPW4576I-BcWkx-AL.js +1146 -0
- package/dist/chunk-XPW4576I-D8Pp6a3j.cjs +32 -0
- package/dist/chunk-YZCP3GAM-9K9WNdyN.js +60 -0
- package/dist/chunk-YZCP3GAM-BmaAafMm.cjs +1 -0
- package/dist/chunk-ZZ45TVLE-AQQsnXy4.cjs +1 -0
- package/dist/chunk-ZZ45TVLE-CIYrdg-O.js +32 -0
- package/dist/classDiagram-6PBFFD2Q-B6betnLH.cjs +1 -0
- package/dist/classDiagram-6PBFFD2Q-XGxl_AeB.js +29 -0
- package/dist/classDiagram-v2-HSJHXN6E-CwayYG4G.js +29 -0
- package/dist/classDiagram-v2-HSJHXN6E-Dda8WDvn.cjs +1 -0
- package/dist/clone-Dn__H8fX.js +8 -0
- package/dist/clone-lShkT11Q.cjs +1 -0
- package/dist/components/image-list/components/image-list-command-panel.d.ts +15 -0
- package/dist/components/image-list/components/image-list-command-panel.d.ts.map +1 -0
- package/dist/components/image-list/components/image-list-command-trigger.d.ts +16 -0
- package/dist/components/image-list/components/image-list-command-trigger.d.ts.map +1 -0
- package/dist/components/image-list/components/image-list-filter-picker.d.ts +14 -0
- package/dist/components/image-list/components/image-list-filter-picker.d.ts.map +1 -0
- package/dist/components/image-list/components/image-list-h-strip.d.ts.map +1 -1
- package/dist/components/image-list/components/image-list-json-viewer.d.ts +11 -0
- package/dist/components/image-list/components/image-list-json-viewer.d.ts.map +1 -0
- package/dist/components/image-list/components/image-list-menu.d.ts.map +1 -1
- package/dist/components/image-list/components/image-list-navigation-picker.d.ts +6 -2
- package/dist/components/image-list/components/image-list-navigation-picker.d.ts.map +1 -1
- package/dist/components/image-list/components/image-list-sort-picker.d.ts +14 -0
- package/dist/components/image-list/components/image-list-sort-picker.d.ts.map +1 -0
- package/dist/components/image-list/components/image-list-v-strip.d.ts.map +1 -1
- package/dist/components/image-list/components/items/image-list-card-item.d.ts +5 -0
- package/dist/components/image-list/components/items/image-list-card-item.d.ts.map +1 -0
- package/dist/components/image-list/components/items/image-list-folder-item.d.ts.map +1 -1
- package/dist/components/image-list/components/items/image-list-item.d.ts.map +1 -1
- package/dist/components/image-list/components/menu-nav-item.d.ts.map +1 -1
- package/dist/components/image-list/components/navigation-modes/image-list-catalog.d.ts.map +1 -1
- package/dist/components/image-list/components/navigation-modes/image-list-explorer.d.ts.map +1 -1
- package/dist/components/image-list/components/navigation-modes/image-list-tree.d.ts.map +1 -1
- package/dist/components/image-list/components/strip-item.d.ts.map +1 -1
- package/dist/components/image-list/hooks/useCommandPickers.d.ts +13 -0
- package/dist/components/image-list/hooks/useCommandPickers.d.ts.map +1 -0
- package/dist/components/image-list/image-list-column-utils.d.ts +9 -0
- package/dist/components/image-list/image-list-column-utils.d.ts.map +1 -0
- package/dist/components/image-list/image-list-context.d.ts +5 -2
- package/dist/components/image-list/image-list-context.d.ts.map +1 -1
- package/dist/components/image-list/image-list-debug-utils.d.ts +13 -0
- package/dist/components/image-list/image-list-debug-utils.d.ts.map +1 -0
- package/dist/components/image-list/image-list-filter-context.d.ts +9 -0
- package/dist/components/image-list/image-list-filter-context.d.ts.map +1 -0
- package/dist/components/image-list/image-list-filter-utils.d.ts +12 -0
- package/dist/components/image-list/image-list-filter-utils.d.ts.map +1 -0
- package/dist/components/image-list/image-list-sort-context.d.ts +9 -0
- package/dist/components/image-list/image-list-sort-context.d.ts.map +1 -0
- package/dist/components/image-list/image-list-sort-utils.d.ts +13 -0
- package/dist/components/image-list/image-list-sort-utils.d.ts.map +1 -0
- package/dist/components/image-list/image-list-state-context.d.ts +5 -0
- package/dist/components/image-list/image-list-state-context.d.ts.map +1 -0
- package/dist/components/image-list/image-list-types.d.ts +45 -2
- package/dist/components/image-list/image-list-types.d.ts.map +1 -1
- package/dist/components/image-list/image-list-utils.d.ts +24 -1
- package/dist/components/image-list/image-list-utils.d.ts.map +1 -1
- package/dist/components/image-list/image-list.d.ts +1 -1
- package/dist/components/image-list/image-list.d.ts.map +1 -1
- package/dist/cose-bilkent-S5V4N54A-B30Rh9DR.js +2250 -0
- package/dist/cose-bilkent-S5V4N54A-Bhdp-wcb.cjs +1 -0
- package/dist/cytoscape.esm-CPjF_mSK.js +18100 -0
- package/dist/cytoscape.esm-CrBwLFXE.cjs +321 -0
- package/dist/dagre-BjnWDdkw.cjs +1 -0
- package/dist/dagre-DVLnxd7n.js +1606 -0
- package/dist/dagre-KV5264BT-BjqayRYC.js +293 -0
- package/dist/dagre-KV5264BT-BvInGAUC.cjs +4 -0
- package/dist/defaultLocale-Dcyuaxxg.js +201 -0
- package/dist/defaultLocale-DtzyZW63.cjs +1 -0
- package/dist/diagram-5BDNPKRD-Bk7depC0.js +101 -0
- package/dist/diagram-5BDNPKRD-D6EXksHo.cjs +10 -0
- package/dist/diagram-G4DWMVQ6-BkQnbCLv.js +524 -0
- package/dist/diagram-G4DWMVQ6-CJASbR70.cjs +24 -0
- package/dist/diagram-MMDJMWI5-DEt7jQx9.cjs +43 -0
- package/dist/diagram-MMDJMWI5-DUUVPi55.js +213 -0
- package/dist/diagram-TYMM5635-5auoAFCi.cjs +24 -0
- package/dist/diagram-TYMM5635-Cpj8wfoJ.js +133 -0
- package/dist/dist-BgvMZbfo.cjs +1 -0
- package/dist/dist-DL30VIBI.js +60 -0
- package/dist/erDiagram-SMLLAGMA-DVUT6TBy.cjs +85 -0
- package/dist/erDiagram-SMLLAGMA-D_ByPk0C.js +1700 -0
- package/dist/flatten-BE1bWL-7.js +40 -0
- package/dist/flatten-DxvYSoR8.cjs +1 -0
- package/dist/flowDiagram-DWJPFMVM-BWrkDnqc.js +4145 -0
- package/dist/flowDiagram-DWJPFMVM-BbK42NaF.cjs +162 -0
- package/dist/functional-components/action/action-types.d.ts +6 -1
- package/dist/functional-components/action/action-types.d.ts.map +1 -1
- package/dist/functional-components/action/action.d.ts.map +1 -1
- package/dist/ganttDiagram-T4ZO3ILL-DUi8jF9H.cjs +292 -0
- package/dist/ganttDiagram-T4ZO3ILL-LuaYkUvj.js +3077 -0
- package/dist/gitGraph-7Q5UKJZL-DZea3ltD.cjs +1 -0
- package/dist/gitGraph-7Q5UKJZL-sjlqDwJ_.js +3 -0
- package/dist/gitGraphDiagram-UUTBAWPF-D-tMWUQ1.cjs +106 -0
- package/dist/gitGraphDiagram-UUTBAWPF-DKkENwcV.js +728 -0
- package/dist/graphlib-Cpifseqb.js +373 -0
- package/dist/graphlib-HdfvGLpV.cjs +1 -0
- package/dist/hooks/useClickOutside.d.ts.map +1 -1
- package/dist/identity-KQSjemTb.cjs +1 -0
- package/dist/identity-g0dsMjx7.js +393 -0
- package/dist/info-OMHHGYJF-Bk0VWVNW.js +3 -0
- package/dist/info-OMHHGYJF-C8QtwF0k.cjs +1 -0
- package/dist/infoDiagram-42DDH7IO-CH5xHj8H.cjs +2 -0
- package/dist/infoDiagram-42DDH7IO-CLkQPFe0.js +19 -0
- package/dist/init-B2MubQrj.cjs +1 -0
- package/dist/init-BO60vQHJ.js +15 -0
- package/dist/isEmpty-CA3kJuev.cjs +1 -0
- package/dist/isEmpty-RwX-oIQS.js +35 -0
- package/dist/ishikawaDiagram-UXIWVN3A-Cl3Ivm8H.cjs +70 -0
- package/dist/ishikawaDiagram-UXIWVN3A-DqbVPChK.js +718 -0
- package/dist/journeyDiagram-VCZTEJTY-DudduR0c.js +883 -0
- package/dist/journeyDiagram-VCZTEJTY-XRc0J8gM.cjs +139 -0
- package/dist/kanban-definition-6JOO6SKY-Br87atRc.cjs +89 -0
- package/dist/kanban-definition-6JOO6SKY-DzEqE64J.js +973 -0
- package/dist/katex-Du5WiYIy.js +22000 -0
- package/dist/katex-SAH56fvc.cjs +257 -0
- package/dist/ketchup2.cjs.js +190 -1
- package/dist/ketchup2.css +2 -1
- package/dist/ketchup2.es.js +132419 -52
- package/dist/line-BbHmiwbs.cjs +1 -0
- package/dist/line-JyRBGWft.js +34 -0
- package/dist/linear-BsPvNLJv.js +289 -0
- package/dist/linear-CxHa1DsM.cjs +1 -0
- package/dist/mermaid-parser.core-CERDf-UG.js +69 -0
- package/dist/mermaid-parser.core-DHpvGOZR.cjs +3 -0
- package/dist/mindmap-definition-QFDTVHPH-BCq8zmLt.cjs +96 -0
- package/dist/mindmap-definition-QFDTVHPH-NGjPQ5SM.js +978 -0
- package/dist/ordinal-C-VoL0XF.js +65 -0
- package/dist/ordinal-Civr0hZL.cjs +1 -0
- package/dist/packet-4T2RLAQJ-X0BMsNFj.js +3 -0
- package/dist/packet-4T2RLAQJ-lvmQnXPI.cjs +1 -0
- package/dist/path-Civic7PQ.cjs +1 -0
- package/dist/path-CvfwEr8y.js +85 -0
- package/dist/pie-ZZUOXDRM-CJ_fU5k1.js +3 -0
- package/dist/pie-ZZUOXDRM-Dp4APKqR.cjs +1 -0
- package/dist/pieDiagram-DEJITSTG-CK4xy0PS.cjs +30 -0
- package/dist/pieDiagram-DEJITSTG-DTeyzHmB.js +165 -0
- package/dist/quadrantDiagram-34T5L4WZ-CCcJIf91.js +1974 -0
- package/dist/quadrantDiagram-34T5L4WZ-D-_iiK79.cjs +7 -0
- package/dist/radar-PYXPWWZC-BHWJy_E1.cjs +1 -0
- package/dist/radar-PYXPWWZC-DgZIW9Ah.js +3 -0
- package/dist/reduce-B7WW9rkU.cjs +1 -0
- package/dist/reduce-DNnkcf3M.js +532 -0
- package/dist/requirementDiagram-MS252O5E-BdOanuYe.js +2221 -0
- package/dist/requirementDiagram-MS252O5E-EfY029Xj.cjs +84 -0
- package/dist/rough.esm-1mqTSjCt.js +1352 -0
- package/dist/rough.esm-BLKo1fIQ.cjs +1 -0
- package/dist/sankeyDiagram-XADWPNL6-3jlM2UcU.cjs +10 -0
- package/dist/sankeyDiagram-XADWPNL6-3wviN_U4.js +920 -0
- package/dist/sequenceDiagram-FGHM5R23-DC8SjhFN.js +4157 -0
- package/dist/sequenceDiagram-FGHM5R23-lK1G3QLN.cjs +157 -0
- package/dist/src-BQiFKP24.js +2146 -0
- package/dist/src-DFxq-N5I.cjs +1 -0
- package/dist/stateDiagram-FHFEXIEX-DnkzFphf.js +217 -0
- package/dist/stateDiagram-FHFEXIEX-DsQigFuR.cjs +1 -0
- package/dist/stateDiagram-v2-QKLJ7IA2-2v8JiIJr.js +27 -0
- package/dist/stateDiagram-v2-QKLJ7IA2-UKKfWPoT.cjs +1 -0
- package/dist/timeline-definition-GMOUNBTQ-CBnYBWN0.js +1068 -0
- package/dist/timeline-definition-GMOUNBTQ-DWpngnE4.cjs +120 -0
- package/dist/treeView-SZITEDCU-CT5vX0q9.cjs +1 -0
- package/dist/treeView-SZITEDCU-Df3xzFtO.js +3 -0
- package/dist/treemap-W4RFUUIX-Bk_jVZ7D.cjs +1 -0
- package/dist/treemap-W4RFUUIX-ClUtdSdn.js +3 -0
- package/dist/utils/translation.d.ts.map +1 -1
- package/dist/v4-6yr83DbP.cjs +1 -0
- package/dist/v4-BR71w5_q.js +33 -0
- package/dist/vennDiagram-DHZGUBPP-D-kj-sVU.cjs +34 -0
- package/dist/vennDiagram-DHZGUBPP-M-kkEkXj.js +1858 -0
- package/dist/wardley-RL74JXVD-BtHQbnUy.js +3 -0
- package/dist/wardley-RL74JXVD-y8RO5Iqv.cjs +1 -0
- package/dist/wardleyDiagram-NUSXRM2D-CUX1SYhw.js +578 -0
- package/dist/wardleyDiagram-NUSXRM2D-thoOuA_D.cjs +20 -0
- package/dist/xychartDiagram-5P7HB3ND-1cXRZ1bi.js +2044 -0
- package/dist/xychartDiagram-5P7HB3ND-BF2WmJ4-.cjs +7 -0
- package/package.json +31 -31
- package/dist/_basePickBy-CPekwY_Z.js +0 -151
- package/dist/_basePickBy-DDhgLyLp.cjs +0 -1
- package/dist/_baseUniq-CAhfZr5S.js +0 -614
- package/dist/_baseUniq-bLb2QO_4.cjs +0 -1
- package/dist/arc-CnmUepZA.cjs +0 -1
- package/dist/arc-Md6Ds0JZ.js +0 -83
- package/dist/architecture-7HQA4BMR-DLImbuCr.js +0 -6
- package/dist/architecture-7HQA4BMR-zD1jCFXs.cjs +0 -1
- package/dist/architectureDiagram-VXUJARFQ-BkTy7RJA.js +0 -4661
- package/dist/architectureDiagram-VXUJARFQ-Vl-ya9R6.cjs +0 -36
- package/dist/blockDiagram-VD42YOAC-C9AJNM79.js +0 -2256
- package/dist/blockDiagram-VD42YOAC-D_EmYywD.cjs +0 -122
- package/dist/c4Diagram-YG6GDRKO-BfwBYulK.cjs +0 -10
- package/dist/c4Diagram-YG6GDRKO-YW-l-SYp.js +0 -1580
- package/dist/channel-BGeX_R6w.cjs +0 -1
- package/dist/channel-lqmaHMPZ.js +0 -5
- package/dist/chunk-4BX2VUAB-C6nahV0u.cjs +0 -1
- package/dist/chunk-4BX2VUAB-UMbIiF-V.js +0 -8
- package/dist/chunk-55IACEB6-CH_wWg2p.js +0 -8
- package/dist/chunk-55IACEB6-Cxt8uWHb.cjs +0 -1
- package/dist/chunk-B4BG7PRW-CTNZzNh0.js +0 -1375
- package/dist/chunk-B4BG7PRW-ekpXKNa3.cjs +0 -165
- package/dist/chunk-DI55MBZ5-BrLh6Fue.js +0 -1370
- package/dist/chunk-DI55MBZ5-TYqUGYGr.cjs +0 -220
- package/dist/chunk-FMBD7UC4-D0Nmh8EL.cjs +0 -15
- package/dist/chunk-QN33PNHL-B91UelWj.js +0 -19
- package/dist/chunk-QN33PNHL-KGNgU1-8.cjs +0 -1
- package/dist/chunk-QZHKN3VN-IV7jnz-R.js +0 -15
- package/dist/chunk-QZHKN3VN-ajuovO9B.cjs +0 -1
- package/dist/chunk-TZMSLE5B-Bkf7U79o.cjs +0 -1
- package/dist/chunk-TZMSLE5B-DArsm2Pn.js +0 -64
- package/dist/classDiagram-2ON5EDUG-C0_Gqd5k.js +0 -16
- package/dist/classDiagram-2ON5EDUG-Cnous8-m.cjs +0 -1
- package/dist/classDiagram-v2-WZHVMYZB-C0_Gqd5k.js +0 -16
- package/dist/classDiagram-v2-WZHVMYZB-Cnous8-m.cjs +0 -1
- package/dist/clone-B_MxWhab.js +0 -8
- package/dist/clone-D6gFD6F-.cjs +0 -1
- package/dist/cose-bilkent-S5V4N54A-DHZ_jZYH.js +0 -2608
- package/dist/cose-bilkent-S5V4N54A-Da7jSuau.cjs +0 -1
- package/dist/cytoscape.esm-CNUX3VTg.cjs +0 -321
- package/dist/cytoscape.esm-Cvf3sx9F.js +0 -18704
- package/dist/dagre-6UL2VRFP-CI2ww-SU.js +0 -444
- package/dist/dagre-6UL2VRFP-qOR4yAIQ.cjs +0 -4
- package/dist/defaultLocale-D7EN2tov.js +0 -171
- package/dist/defaultLocale-DIVzfLaQ.cjs +0 -1
- package/dist/diagram-PSM6KHXK-1g8345m3.js +0 -531
- package/dist/diagram-PSM6KHXK-DHWL3g5V.cjs +0 -24
- package/dist/diagram-QEK2KX5R-B-VP4dVY.js +0 -217
- package/dist/diagram-QEK2KX5R-DDWbMmAv.cjs +0 -43
- package/dist/diagram-S2PKOQOG-BbSGqLET.js +0 -142
- package/dist/diagram-S2PKOQOG-Djw9RGNh.cjs +0 -24
- package/dist/erDiagram-Q2GNP2WA-CxY1P4hJ.js +0 -841
- package/dist/erDiagram-Q2GNP2WA-Pw9i-eBN.cjs +0 -60
- package/dist/flowDiagram-NV44I4VS-BOr3T0H8.js +0 -1620
- package/dist/flowDiagram-NV44I4VS-D9VKU1cV.cjs +0 -162
- package/dist/ganttDiagram-JELNMOA3-B4T6J11z.js +0 -2670
- package/dist/ganttDiagram-JELNMOA3-C4Y4VT0h.cjs +0 -267
- package/dist/gitGraph-G5XIXVHT-C5QaeLIs.cjs +0 -1
- package/dist/gitGraph-G5XIXVHT-bOZ2ppp1.js +0 -6
- package/dist/gitGraphDiagram-V2S2FVAM-CteUW9ML.js +0 -699
- package/dist/gitGraphDiagram-V2S2FVAM-D_v6ae_z.cjs +0 -65
- package/dist/graph-BBPk5jyk.cjs +0 -1
- package/dist/graph-h6vsxKyr.js +0 -247
- package/dist/index-CYQM-t1d.cjs +0 -390
- package/dist/index-FiV1b00w.js +0 -133122
- package/dist/info-VBDWY6EO-BEIYBsnB.cjs +0 -1
- package/dist/info-VBDWY6EO-BQAW_660.js +0 -6
- package/dist/infoDiagram-HS3SLOUP-DMalb3kC.js +0 -24
- package/dist/infoDiagram-HS3SLOUP-Tepm6ygN.cjs +0 -2
- package/dist/init-CHZsXQcr.cjs +0 -1
- package/dist/init-DjUOC4st.js +0 -16
- package/dist/journeyDiagram-XKPGCS4Q-CzePcKne.cjs +0 -139
- package/dist/journeyDiagram-XKPGCS4Q-D0u-RLFV.js +0 -834
- package/dist/kanban-definition-3W4ZIXB7-BSCzAsMJ.js +0 -719
- package/dist/kanban-definition-3W4ZIXB7-DdbH9sci.cjs +0 -89
- package/dist/katex-C2g-EhzP.cjs +0 -261
- package/dist/katex-CUSbq6rG.js +0 -11692
- package/dist/layout-6z7-eUnZ.js +0 -1335
- package/dist/layout-DbcrMh5B.cjs +0 -1
- package/dist/linear-BKevCbhh.js +0 -259
- package/dist/linear-C7uVEtWW.cjs +0 -1
- package/dist/mermaid-parser.core-Cwy51n_e.js +0 -17907
- package/dist/mermaid-parser.core-DQ2yhapR.cjs +0 -160
- package/dist/mindmap-definition-VGOIOE7T-CcEisj0R.cjs +0 -68
- package/dist/mindmap-definition-VGOIOE7T-xp6GmSIx.js +0 -758
- package/dist/ordinal-B6-f3MAq.js +0 -61
- package/dist/ordinal-CagbB1m8.cjs +0 -1
- package/dist/packet-DYOGHKS2-BGgwnMhM.js +0 -6
- package/dist/packet-DYOGHKS2-BWg8qxI8.cjs +0 -1
- package/dist/pie-VRWISCQL-DhM8CUW4.cjs +0 -1
- package/dist/pie-VRWISCQL-DrWIWm7W.js +0 -6
- package/dist/pieDiagram-ADFJNKIX-BdvacM-Z.cjs +0 -30
- package/dist/pieDiagram-ADFJNKIX-D6Fa7W_r.js +0 -161
- package/dist/quadrantDiagram-AYHSOK5B-CHMoSBvg.js +0 -1022
- package/dist/quadrantDiagram-AYHSOK5B-ddq5zZEg.cjs +0 -7
- package/dist/radar-ZZBFDIW7-CPvW4Njh.js +0 -6
- package/dist/radar-ZZBFDIW7-YJK72BlV.cjs +0 -1
- package/dist/requirementDiagram-UZGBJVZJ-Cr9HnGVO.js +0 -850
- package/dist/requirementDiagram-UZGBJVZJ-NdpzVbnf.cjs +0 -64
- package/dist/sankeyDiagram-TZEHDZUN-3f19WwKd.js +0 -810
- package/dist/sankeyDiagram-TZEHDZUN-D2Hzq4Kr.cjs +0 -10
- package/dist/sequenceDiagram-WL72ISMW-Cu-7V--6.js +0 -2511
- package/dist/sequenceDiagram-WL72ISMW-Nk6vhSK9.cjs +0 -145
- package/dist/stateDiagram-FKZM4ZOC-BSnDKUaW.cjs +0 -1
- package/dist/stateDiagram-FKZM4ZOC-BleTIniP.js +0 -263
- package/dist/stateDiagram-v2-4FDKWEC3-7EjW078x.js +0 -16
- package/dist/stateDiagram-v2-4FDKWEC3-BJPzO53y.cjs +0 -1
- package/dist/timeline-definition-IT6M3QCI-CFTjPpKy.js +0 -795
- package/dist/timeline-definition-IT6M3QCI-CfaGtuF2.cjs +0 -61
- package/dist/treemap-GDKQZRPO-CtDdEOaj.cjs +0 -1
- package/dist/treemap-GDKQZRPO-DlODAdQ2.js +0 -6
- package/dist/xychartDiagram-PRI3JC2R-mShGv2CD.cjs +0 -7
- package/dist/xychartDiagram-PRI3JC2R-vEJER5zT.js +0 -1340
|
@@ -0,0 +1,1299 @@
|
|
|
1
|
+
import { I as e, f as t, m as n, r, s as i } from "./chunk-ICPOFSXX-Sn6LWD0k.js";
|
|
2
|
+
import { g as a, h as o, p as s } from "./src-BQiFKP24.js";
|
|
3
|
+
import { t as c } from "./dist-DL30VIBI.js";
|
|
4
|
+
import { E as l, O as u, S as d, T as f, _ as p, c as m, d as ee, f as h, g as te, h as ne, i as re, m as ie, n as ae, p as oe, r as se, s as ce, t as g, u as le, v as _, w as ue, x as v } from "./identity-g0dsMjx7.js";
|
|
5
|
+
//#region node_modules/d3-shape/src/curve/linear.js
|
|
6
|
+
function de(e) {
|
|
7
|
+
this._context = e;
|
|
8
|
+
}
|
|
9
|
+
de.prototype = {
|
|
10
|
+
areaStart: function() {
|
|
11
|
+
this._line = 0;
|
|
12
|
+
},
|
|
13
|
+
areaEnd: function() {
|
|
14
|
+
this._line = NaN;
|
|
15
|
+
},
|
|
16
|
+
lineStart: function() {
|
|
17
|
+
this._point = 0;
|
|
18
|
+
},
|
|
19
|
+
lineEnd: function() {
|
|
20
|
+
(this._line || this._line !== 0 && this._point === 1) && this._context.closePath(), this._line = 1 - this._line;
|
|
21
|
+
},
|
|
22
|
+
point: function(e, t) {
|
|
23
|
+
switch (e = +e, t = +t, this._point) {
|
|
24
|
+
case 0:
|
|
25
|
+
this._point = 1, this._line ? this._context.lineTo(e, t) : this._context.moveTo(e, t);
|
|
26
|
+
break;
|
|
27
|
+
case 1: this._point = 2;
|
|
28
|
+
default:
|
|
29
|
+
this._context.lineTo(e, t);
|
|
30
|
+
break;
|
|
31
|
+
}
|
|
32
|
+
}
|
|
33
|
+
};
|
|
34
|
+
function fe(e) {
|
|
35
|
+
return new de(e);
|
|
36
|
+
}
|
|
37
|
+
//#endregion
|
|
38
|
+
//#region node_modules/d3-shape/src/curve/bump.js
|
|
39
|
+
var pe = class {
|
|
40
|
+
constructor(e, t) {
|
|
41
|
+
this._context = e, this._x = t;
|
|
42
|
+
}
|
|
43
|
+
areaStart() {
|
|
44
|
+
this._line = 0;
|
|
45
|
+
}
|
|
46
|
+
areaEnd() {
|
|
47
|
+
this._line = NaN;
|
|
48
|
+
}
|
|
49
|
+
lineStart() {
|
|
50
|
+
this._point = 0;
|
|
51
|
+
}
|
|
52
|
+
lineEnd() {
|
|
53
|
+
(this._line || this._line !== 0 && this._point === 1) && this._context.closePath(), this._line = 1 - this._line;
|
|
54
|
+
}
|
|
55
|
+
point(e, t) {
|
|
56
|
+
switch (e = +e, t = +t, this._point) {
|
|
57
|
+
case 0:
|
|
58
|
+
this._point = 1, this._line ? this._context.lineTo(e, t) : this._context.moveTo(e, t);
|
|
59
|
+
break;
|
|
60
|
+
case 1: this._point = 2;
|
|
61
|
+
default:
|
|
62
|
+
this._x ? this._context.bezierCurveTo(this._x0 = (this._x0 + e) / 2, this._y0, this._x0, t, e, t) : this._context.bezierCurveTo(this._x0, this._y0 = (this._y0 + t) / 2, e, this._y0, e, t);
|
|
63
|
+
break;
|
|
64
|
+
}
|
|
65
|
+
this._x0 = e, this._y0 = t;
|
|
66
|
+
}
|
|
67
|
+
};
|
|
68
|
+
function me(e) {
|
|
69
|
+
return new pe(e, !0);
|
|
70
|
+
}
|
|
71
|
+
function he(e) {
|
|
72
|
+
return new pe(e, !1);
|
|
73
|
+
}
|
|
74
|
+
//#endregion
|
|
75
|
+
//#region node_modules/d3-shape/src/noop.js
|
|
76
|
+
function y() {}
|
|
77
|
+
//#endregion
|
|
78
|
+
//#region node_modules/d3-shape/src/curve/basis.js
|
|
79
|
+
function b(e, t, n) {
|
|
80
|
+
e._context.bezierCurveTo((2 * e._x0 + e._x1) / 3, (2 * e._y0 + e._y1) / 3, (e._x0 + 2 * e._x1) / 3, (e._y0 + 2 * e._y1) / 3, (e._x0 + 4 * e._x1 + t) / 6, (e._y0 + 4 * e._y1 + n) / 6);
|
|
81
|
+
}
|
|
82
|
+
function x(e) {
|
|
83
|
+
this._context = e;
|
|
84
|
+
}
|
|
85
|
+
x.prototype = {
|
|
86
|
+
areaStart: function() {
|
|
87
|
+
this._line = 0;
|
|
88
|
+
},
|
|
89
|
+
areaEnd: function() {
|
|
90
|
+
this._line = NaN;
|
|
91
|
+
},
|
|
92
|
+
lineStart: function() {
|
|
93
|
+
this._x0 = this._x1 = this._y0 = this._y1 = NaN, this._point = 0;
|
|
94
|
+
},
|
|
95
|
+
lineEnd: function() {
|
|
96
|
+
switch (this._point) {
|
|
97
|
+
case 3: b(this, this._x1, this._y1);
|
|
98
|
+
case 2:
|
|
99
|
+
this._context.lineTo(this._x1, this._y1);
|
|
100
|
+
break;
|
|
101
|
+
}
|
|
102
|
+
(this._line || this._line !== 0 && this._point === 1) && this._context.closePath(), this._line = 1 - this._line;
|
|
103
|
+
},
|
|
104
|
+
point: function(e, t) {
|
|
105
|
+
switch (e = +e, t = +t, this._point) {
|
|
106
|
+
case 0:
|
|
107
|
+
this._point = 1, this._line ? this._context.lineTo(e, t) : this._context.moveTo(e, t);
|
|
108
|
+
break;
|
|
109
|
+
case 1:
|
|
110
|
+
this._point = 2;
|
|
111
|
+
break;
|
|
112
|
+
case 2: this._point = 3, this._context.lineTo((5 * this._x0 + this._x1) / 6, (5 * this._y0 + this._y1) / 6);
|
|
113
|
+
default:
|
|
114
|
+
b(this, e, t);
|
|
115
|
+
break;
|
|
116
|
+
}
|
|
117
|
+
this._x0 = this._x1, this._x1 = e, this._y0 = this._y1, this._y1 = t;
|
|
118
|
+
}
|
|
119
|
+
};
|
|
120
|
+
function ge(e) {
|
|
121
|
+
return new x(e);
|
|
122
|
+
}
|
|
123
|
+
//#endregion
|
|
124
|
+
//#region node_modules/d3-shape/src/curve/basisClosed.js
|
|
125
|
+
function _e(e) {
|
|
126
|
+
this._context = e;
|
|
127
|
+
}
|
|
128
|
+
_e.prototype = {
|
|
129
|
+
areaStart: y,
|
|
130
|
+
areaEnd: y,
|
|
131
|
+
lineStart: function() {
|
|
132
|
+
this._x0 = this._x1 = this._x2 = this._x3 = this._x4 = this._y0 = this._y1 = this._y2 = this._y3 = this._y4 = NaN, this._point = 0;
|
|
133
|
+
},
|
|
134
|
+
lineEnd: function() {
|
|
135
|
+
switch (this._point) {
|
|
136
|
+
case 1:
|
|
137
|
+
this._context.moveTo(this._x2, this._y2), this._context.closePath();
|
|
138
|
+
break;
|
|
139
|
+
case 2:
|
|
140
|
+
this._context.moveTo((this._x2 + 2 * this._x3) / 3, (this._y2 + 2 * this._y3) / 3), this._context.lineTo((this._x3 + 2 * this._x2) / 3, (this._y3 + 2 * this._y2) / 3), this._context.closePath();
|
|
141
|
+
break;
|
|
142
|
+
case 3:
|
|
143
|
+
this.point(this._x2, this._y2), this.point(this._x3, this._y3), this.point(this._x4, this._y4);
|
|
144
|
+
break;
|
|
145
|
+
}
|
|
146
|
+
},
|
|
147
|
+
point: function(e, t) {
|
|
148
|
+
switch (e = +e, t = +t, this._point) {
|
|
149
|
+
case 0:
|
|
150
|
+
this._point = 1, this._x2 = e, this._y2 = t;
|
|
151
|
+
break;
|
|
152
|
+
case 1:
|
|
153
|
+
this._point = 2, this._x3 = e, this._y3 = t;
|
|
154
|
+
break;
|
|
155
|
+
case 2:
|
|
156
|
+
this._point = 3, this._x4 = e, this._y4 = t, this._context.moveTo((this._x0 + 4 * this._x1 + e) / 6, (this._y0 + 4 * this._y1 + t) / 6);
|
|
157
|
+
break;
|
|
158
|
+
default:
|
|
159
|
+
b(this, e, t);
|
|
160
|
+
break;
|
|
161
|
+
}
|
|
162
|
+
this._x0 = this._x1, this._x1 = e, this._y0 = this._y1, this._y1 = t;
|
|
163
|
+
}
|
|
164
|
+
};
|
|
165
|
+
function ve(e) {
|
|
166
|
+
return new _e(e);
|
|
167
|
+
}
|
|
168
|
+
//#endregion
|
|
169
|
+
//#region node_modules/d3-shape/src/curve/basisOpen.js
|
|
170
|
+
function ye(e) {
|
|
171
|
+
this._context = e;
|
|
172
|
+
}
|
|
173
|
+
ye.prototype = {
|
|
174
|
+
areaStart: function() {
|
|
175
|
+
this._line = 0;
|
|
176
|
+
},
|
|
177
|
+
areaEnd: function() {
|
|
178
|
+
this._line = NaN;
|
|
179
|
+
},
|
|
180
|
+
lineStart: function() {
|
|
181
|
+
this._x0 = this._x1 = this._y0 = this._y1 = NaN, this._point = 0;
|
|
182
|
+
},
|
|
183
|
+
lineEnd: function() {
|
|
184
|
+
(this._line || this._line !== 0 && this._point === 3) && this._context.closePath(), this._line = 1 - this._line;
|
|
185
|
+
},
|
|
186
|
+
point: function(e, t) {
|
|
187
|
+
switch (e = +e, t = +t, this._point) {
|
|
188
|
+
case 0:
|
|
189
|
+
this._point = 1;
|
|
190
|
+
break;
|
|
191
|
+
case 1:
|
|
192
|
+
this._point = 2;
|
|
193
|
+
break;
|
|
194
|
+
case 2:
|
|
195
|
+
this._point = 3;
|
|
196
|
+
var n = (this._x0 + 4 * this._x1 + e) / 6, r = (this._y0 + 4 * this._y1 + t) / 6;
|
|
197
|
+
this._line ? this._context.lineTo(n, r) : this._context.moveTo(n, r);
|
|
198
|
+
break;
|
|
199
|
+
case 3: this._point = 4;
|
|
200
|
+
default:
|
|
201
|
+
b(this, e, t);
|
|
202
|
+
break;
|
|
203
|
+
}
|
|
204
|
+
this._x0 = this._x1, this._x1 = e, this._y0 = this._y1, this._y1 = t;
|
|
205
|
+
}
|
|
206
|
+
};
|
|
207
|
+
function be(e) {
|
|
208
|
+
return new ye(e);
|
|
209
|
+
}
|
|
210
|
+
//#endregion
|
|
211
|
+
//#region node_modules/d3-shape/src/curve/bundle.js
|
|
212
|
+
function xe(e, t) {
|
|
213
|
+
this._basis = new x(e), this._beta = t;
|
|
214
|
+
}
|
|
215
|
+
xe.prototype = {
|
|
216
|
+
lineStart: function() {
|
|
217
|
+
this._x = [], this._y = [], this._basis.lineStart();
|
|
218
|
+
},
|
|
219
|
+
lineEnd: function() {
|
|
220
|
+
var e = this._x, t = this._y, n = e.length - 1;
|
|
221
|
+
if (n > 0) for (var r = e[0], i = t[0], a = e[n] - r, o = t[n] - i, s = -1, c; ++s <= n;) c = s / n, this._basis.point(this._beta * e[s] + (1 - this._beta) * (r + c * a), this._beta * t[s] + (1 - this._beta) * (i + c * o));
|
|
222
|
+
this._x = this._y = null, this._basis.lineEnd();
|
|
223
|
+
},
|
|
224
|
+
point: function(e, t) {
|
|
225
|
+
this._x.push(+e), this._y.push(+t);
|
|
226
|
+
}
|
|
227
|
+
};
|
|
228
|
+
var Se = (function e(t) {
|
|
229
|
+
function n(e) {
|
|
230
|
+
return t === 1 ? new x(e) : new xe(e, t);
|
|
231
|
+
}
|
|
232
|
+
return n.beta = function(t) {
|
|
233
|
+
return e(+t);
|
|
234
|
+
}, n;
|
|
235
|
+
})(.85);
|
|
236
|
+
//#endregion
|
|
237
|
+
//#region node_modules/d3-shape/src/curve/cardinal.js
|
|
238
|
+
function S(e, t, n) {
|
|
239
|
+
e._context.bezierCurveTo(e._x1 + e._k * (e._x2 - e._x0), e._y1 + e._k * (e._y2 - e._y0), e._x2 + e._k * (e._x1 - t), e._y2 + e._k * (e._y1 - n), e._x2, e._y2);
|
|
240
|
+
}
|
|
241
|
+
function C(e, t) {
|
|
242
|
+
this._context = e, this._k = (1 - t) / 6;
|
|
243
|
+
}
|
|
244
|
+
C.prototype = {
|
|
245
|
+
areaStart: function() {
|
|
246
|
+
this._line = 0;
|
|
247
|
+
},
|
|
248
|
+
areaEnd: function() {
|
|
249
|
+
this._line = NaN;
|
|
250
|
+
},
|
|
251
|
+
lineStart: function() {
|
|
252
|
+
this._x0 = this._x1 = this._x2 = this._y0 = this._y1 = this._y2 = NaN, this._point = 0;
|
|
253
|
+
},
|
|
254
|
+
lineEnd: function() {
|
|
255
|
+
switch (this._point) {
|
|
256
|
+
case 2:
|
|
257
|
+
this._context.lineTo(this._x2, this._y2);
|
|
258
|
+
break;
|
|
259
|
+
case 3:
|
|
260
|
+
S(this, this._x1, this._y1);
|
|
261
|
+
break;
|
|
262
|
+
}
|
|
263
|
+
(this._line || this._line !== 0 && this._point === 1) && this._context.closePath(), this._line = 1 - this._line;
|
|
264
|
+
},
|
|
265
|
+
point: function(e, t) {
|
|
266
|
+
switch (e = +e, t = +t, this._point) {
|
|
267
|
+
case 0:
|
|
268
|
+
this._point = 1, this._line ? this._context.lineTo(e, t) : this._context.moveTo(e, t);
|
|
269
|
+
break;
|
|
270
|
+
case 1:
|
|
271
|
+
this._point = 2, this._x1 = e, this._y1 = t;
|
|
272
|
+
break;
|
|
273
|
+
case 2: this._point = 3;
|
|
274
|
+
default:
|
|
275
|
+
S(this, e, t);
|
|
276
|
+
break;
|
|
277
|
+
}
|
|
278
|
+
this._x0 = this._x1, this._x1 = this._x2, this._x2 = e, this._y0 = this._y1, this._y1 = this._y2, this._y2 = t;
|
|
279
|
+
}
|
|
280
|
+
};
|
|
281
|
+
var Ce = (function e(t) {
|
|
282
|
+
function n(e) {
|
|
283
|
+
return new C(e, t);
|
|
284
|
+
}
|
|
285
|
+
return n.tension = function(t) {
|
|
286
|
+
return e(+t);
|
|
287
|
+
}, n;
|
|
288
|
+
})(0);
|
|
289
|
+
//#endregion
|
|
290
|
+
//#region node_modules/d3-shape/src/curve/cardinalClosed.js
|
|
291
|
+
function w(e, t) {
|
|
292
|
+
this._context = e, this._k = (1 - t) / 6;
|
|
293
|
+
}
|
|
294
|
+
w.prototype = {
|
|
295
|
+
areaStart: y,
|
|
296
|
+
areaEnd: y,
|
|
297
|
+
lineStart: function() {
|
|
298
|
+
this._x0 = this._x1 = this._x2 = this._x3 = this._x4 = this._x5 = this._y0 = this._y1 = this._y2 = this._y3 = this._y4 = this._y5 = NaN, this._point = 0;
|
|
299
|
+
},
|
|
300
|
+
lineEnd: function() {
|
|
301
|
+
switch (this._point) {
|
|
302
|
+
case 1:
|
|
303
|
+
this._context.moveTo(this._x3, this._y3), this._context.closePath();
|
|
304
|
+
break;
|
|
305
|
+
case 2:
|
|
306
|
+
this._context.lineTo(this._x3, this._y3), this._context.closePath();
|
|
307
|
+
break;
|
|
308
|
+
case 3:
|
|
309
|
+
this.point(this._x3, this._y3), this.point(this._x4, this._y4), this.point(this._x5, this._y5);
|
|
310
|
+
break;
|
|
311
|
+
}
|
|
312
|
+
},
|
|
313
|
+
point: function(e, t) {
|
|
314
|
+
switch (e = +e, t = +t, this._point) {
|
|
315
|
+
case 0:
|
|
316
|
+
this._point = 1, this._x3 = e, this._y3 = t;
|
|
317
|
+
break;
|
|
318
|
+
case 1:
|
|
319
|
+
this._point = 2, this._context.moveTo(this._x4 = e, this._y4 = t);
|
|
320
|
+
break;
|
|
321
|
+
case 2:
|
|
322
|
+
this._point = 3, this._x5 = e, this._y5 = t;
|
|
323
|
+
break;
|
|
324
|
+
default:
|
|
325
|
+
S(this, e, t);
|
|
326
|
+
break;
|
|
327
|
+
}
|
|
328
|
+
this._x0 = this._x1, this._x1 = this._x2, this._x2 = e, this._y0 = this._y1, this._y1 = this._y2, this._y2 = t;
|
|
329
|
+
}
|
|
330
|
+
};
|
|
331
|
+
var we = (function e(t) {
|
|
332
|
+
function n(e) {
|
|
333
|
+
return new w(e, t);
|
|
334
|
+
}
|
|
335
|
+
return n.tension = function(t) {
|
|
336
|
+
return e(+t);
|
|
337
|
+
}, n;
|
|
338
|
+
})(0);
|
|
339
|
+
//#endregion
|
|
340
|
+
//#region node_modules/d3-shape/src/curve/cardinalOpen.js
|
|
341
|
+
function T(e, t) {
|
|
342
|
+
this._context = e, this._k = (1 - t) / 6;
|
|
343
|
+
}
|
|
344
|
+
T.prototype = {
|
|
345
|
+
areaStart: function() {
|
|
346
|
+
this._line = 0;
|
|
347
|
+
},
|
|
348
|
+
areaEnd: function() {
|
|
349
|
+
this._line = NaN;
|
|
350
|
+
},
|
|
351
|
+
lineStart: function() {
|
|
352
|
+
this._x0 = this._x1 = this._x2 = this._y0 = this._y1 = this._y2 = NaN, this._point = 0;
|
|
353
|
+
},
|
|
354
|
+
lineEnd: function() {
|
|
355
|
+
(this._line || this._line !== 0 && this._point === 3) && this._context.closePath(), this._line = 1 - this._line;
|
|
356
|
+
},
|
|
357
|
+
point: function(e, t) {
|
|
358
|
+
switch (e = +e, t = +t, this._point) {
|
|
359
|
+
case 0:
|
|
360
|
+
this._point = 1;
|
|
361
|
+
break;
|
|
362
|
+
case 1:
|
|
363
|
+
this._point = 2;
|
|
364
|
+
break;
|
|
365
|
+
case 2:
|
|
366
|
+
this._point = 3, this._line ? this._context.lineTo(this._x2, this._y2) : this._context.moveTo(this._x2, this._y2);
|
|
367
|
+
break;
|
|
368
|
+
case 3: this._point = 4;
|
|
369
|
+
default:
|
|
370
|
+
S(this, e, t);
|
|
371
|
+
break;
|
|
372
|
+
}
|
|
373
|
+
this._x0 = this._x1, this._x1 = this._x2, this._x2 = e, this._y0 = this._y1, this._y1 = this._y2, this._y2 = t;
|
|
374
|
+
}
|
|
375
|
+
};
|
|
376
|
+
var Te = (function e(t) {
|
|
377
|
+
function n(e) {
|
|
378
|
+
return new T(e, t);
|
|
379
|
+
}
|
|
380
|
+
return n.tension = function(t) {
|
|
381
|
+
return e(+t);
|
|
382
|
+
}, n;
|
|
383
|
+
})(0);
|
|
384
|
+
//#endregion
|
|
385
|
+
//#region node_modules/d3-shape/src/curve/catmullRom.js
|
|
386
|
+
function E(e, t, n) {
|
|
387
|
+
var r = e._x1, i = e._y1, a = e._x2, o = e._y2;
|
|
388
|
+
if (e._l01_a > 1e-12) {
|
|
389
|
+
var s = 2 * e._l01_2a + 3 * e._l01_a * e._l12_a + e._l12_2a, c = 3 * e._l01_a * (e._l01_a + e._l12_a);
|
|
390
|
+
r = (r * s - e._x0 * e._l12_2a + e._x2 * e._l01_2a) / c, i = (i * s - e._y0 * e._l12_2a + e._y2 * e._l01_2a) / c;
|
|
391
|
+
}
|
|
392
|
+
if (e._l23_a > 1e-12) {
|
|
393
|
+
var l = 2 * e._l23_2a + 3 * e._l23_a * e._l12_a + e._l12_2a, u = 3 * e._l23_a * (e._l23_a + e._l12_a);
|
|
394
|
+
a = (a * l + e._x1 * e._l23_2a - t * e._l12_2a) / u, o = (o * l + e._y1 * e._l23_2a - n * e._l12_2a) / u;
|
|
395
|
+
}
|
|
396
|
+
e._context.bezierCurveTo(r, i, a, o, e._x2, e._y2);
|
|
397
|
+
}
|
|
398
|
+
function D(e, t) {
|
|
399
|
+
this._context = e, this._alpha = t;
|
|
400
|
+
}
|
|
401
|
+
D.prototype = {
|
|
402
|
+
areaStart: function() {
|
|
403
|
+
this._line = 0;
|
|
404
|
+
},
|
|
405
|
+
areaEnd: function() {
|
|
406
|
+
this._line = NaN;
|
|
407
|
+
},
|
|
408
|
+
lineStart: function() {
|
|
409
|
+
this._x0 = this._x1 = this._x2 = this._y0 = this._y1 = this._y2 = NaN, this._l01_a = this._l12_a = this._l23_a = this._l01_2a = this._l12_2a = this._l23_2a = this._point = 0;
|
|
410
|
+
},
|
|
411
|
+
lineEnd: function() {
|
|
412
|
+
switch (this._point) {
|
|
413
|
+
case 2:
|
|
414
|
+
this._context.lineTo(this._x2, this._y2);
|
|
415
|
+
break;
|
|
416
|
+
case 3:
|
|
417
|
+
this.point(this._x2, this._y2);
|
|
418
|
+
break;
|
|
419
|
+
}
|
|
420
|
+
(this._line || this._line !== 0 && this._point === 1) && this._context.closePath(), this._line = 1 - this._line;
|
|
421
|
+
},
|
|
422
|
+
point: function(e, t) {
|
|
423
|
+
if (e = +e, t = +t, this._point) {
|
|
424
|
+
var n = this._x2 - e, r = this._y2 - t;
|
|
425
|
+
this._l23_a = Math.sqrt(this._l23_2a = (n * n + r * r) ** +this._alpha);
|
|
426
|
+
}
|
|
427
|
+
switch (this._point) {
|
|
428
|
+
case 0:
|
|
429
|
+
this._point = 1, this._line ? this._context.lineTo(e, t) : this._context.moveTo(e, t);
|
|
430
|
+
break;
|
|
431
|
+
case 1:
|
|
432
|
+
this._point = 2;
|
|
433
|
+
break;
|
|
434
|
+
case 2: this._point = 3;
|
|
435
|
+
default:
|
|
436
|
+
E(this, e, t);
|
|
437
|
+
break;
|
|
438
|
+
}
|
|
439
|
+
this._l01_a = this._l12_a, this._l12_a = this._l23_a, this._l01_2a = this._l12_2a, this._l12_2a = this._l23_2a, this._x0 = this._x1, this._x1 = this._x2, this._x2 = e, this._y0 = this._y1, this._y1 = this._y2, this._y2 = t;
|
|
440
|
+
}
|
|
441
|
+
};
|
|
442
|
+
var O = (function e(t) {
|
|
443
|
+
function n(e) {
|
|
444
|
+
return t ? new D(e, t) : new C(e, 0);
|
|
445
|
+
}
|
|
446
|
+
return n.alpha = function(t) {
|
|
447
|
+
return e(+t);
|
|
448
|
+
}, n;
|
|
449
|
+
})(.5);
|
|
450
|
+
//#endregion
|
|
451
|
+
//#region node_modules/d3-shape/src/curve/catmullRomClosed.js
|
|
452
|
+
function k(e, t) {
|
|
453
|
+
this._context = e, this._alpha = t;
|
|
454
|
+
}
|
|
455
|
+
k.prototype = {
|
|
456
|
+
areaStart: y,
|
|
457
|
+
areaEnd: y,
|
|
458
|
+
lineStart: function() {
|
|
459
|
+
this._x0 = this._x1 = this._x2 = this._x3 = this._x4 = this._x5 = this._y0 = this._y1 = this._y2 = this._y3 = this._y4 = this._y5 = NaN, this._l01_a = this._l12_a = this._l23_a = this._l01_2a = this._l12_2a = this._l23_2a = this._point = 0;
|
|
460
|
+
},
|
|
461
|
+
lineEnd: function() {
|
|
462
|
+
switch (this._point) {
|
|
463
|
+
case 1:
|
|
464
|
+
this._context.moveTo(this._x3, this._y3), this._context.closePath();
|
|
465
|
+
break;
|
|
466
|
+
case 2:
|
|
467
|
+
this._context.lineTo(this._x3, this._y3), this._context.closePath();
|
|
468
|
+
break;
|
|
469
|
+
case 3:
|
|
470
|
+
this.point(this._x3, this._y3), this.point(this._x4, this._y4), this.point(this._x5, this._y5);
|
|
471
|
+
break;
|
|
472
|
+
}
|
|
473
|
+
},
|
|
474
|
+
point: function(e, t) {
|
|
475
|
+
if (e = +e, t = +t, this._point) {
|
|
476
|
+
var n = this._x2 - e, r = this._y2 - t;
|
|
477
|
+
this._l23_a = Math.sqrt(this._l23_2a = (n * n + r * r) ** +this._alpha);
|
|
478
|
+
}
|
|
479
|
+
switch (this._point) {
|
|
480
|
+
case 0:
|
|
481
|
+
this._point = 1, this._x3 = e, this._y3 = t;
|
|
482
|
+
break;
|
|
483
|
+
case 1:
|
|
484
|
+
this._point = 2, this._context.moveTo(this._x4 = e, this._y4 = t);
|
|
485
|
+
break;
|
|
486
|
+
case 2:
|
|
487
|
+
this._point = 3, this._x5 = e, this._y5 = t;
|
|
488
|
+
break;
|
|
489
|
+
default:
|
|
490
|
+
E(this, e, t);
|
|
491
|
+
break;
|
|
492
|
+
}
|
|
493
|
+
this._l01_a = this._l12_a, this._l12_a = this._l23_a, this._l01_2a = this._l12_2a, this._l12_2a = this._l23_2a, this._x0 = this._x1, this._x1 = this._x2, this._x2 = e, this._y0 = this._y1, this._y1 = this._y2, this._y2 = t;
|
|
494
|
+
}
|
|
495
|
+
};
|
|
496
|
+
var Ee = (function e(t) {
|
|
497
|
+
function n(e) {
|
|
498
|
+
return t ? new k(e, t) : new w(e, 0);
|
|
499
|
+
}
|
|
500
|
+
return n.alpha = function(t) {
|
|
501
|
+
return e(+t);
|
|
502
|
+
}, n;
|
|
503
|
+
})(.5);
|
|
504
|
+
//#endregion
|
|
505
|
+
//#region node_modules/d3-shape/src/curve/catmullRomOpen.js
|
|
506
|
+
function A(e, t) {
|
|
507
|
+
this._context = e, this._alpha = t;
|
|
508
|
+
}
|
|
509
|
+
A.prototype = {
|
|
510
|
+
areaStart: function() {
|
|
511
|
+
this._line = 0;
|
|
512
|
+
},
|
|
513
|
+
areaEnd: function() {
|
|
514
|
+
this._line = NaN;
|
|
515
|
+
},
|
|
516
|
+
lineStart: function() {
|
|
517
|
+
this._x0 = this._x1 = this._x2 = this._y0 = this._y1 = this._y2 = NaN, this._l01_a = this._l12_a = this._l23_a = this._l01_2a = this._l12_2a = this._l23_2a = this._point = 0;
|
|
518
|
+
},
|
|
519
|
+
lineEnd: function() {
|
|
520
|
+
(this._line || this._line !== 0 && this._point === 3) && this._context.closePath(), this._line = 1 - this._line;
|
|
521
|
+
},
|
|
522
|
+
point: function(e, t) {
|
|
523
|
+
if (e = +e, t = +t, this._point) {
|
|
524
|
+
var n = this._x2 - e, r = this._y2 - t;
|
|
525
|
+
this._l23_a = Math.sqrt(this._l23_2a = (n * n + r * r) ** +this._alpha);
|
|
526
|
+
}
|
|
527
|
+
switch (this._point) {
|
|
528
|
+
case 0:
|
|
529
|
+
this._point = 1;
|
|
530
|
+
break;
|
|
531
|
+
case 1:
|
|
532
|
+
this._point = 2;
|
|
533
|
+
break;
|
|
534
|
+
case 2:
|
|
535
|
+
this._point = 3, this._line ? this._context.lineTo(this._x2, this._y2) : this._context.moveTo(this._x2, this._y2);
|
|
536
|
+
break;
|
|
537
|
+
case 3: this._point = 4;
|
|
538
|
+
default:
|
|
539
|
+
E(this, e, t);
|
|
540
|
+
break;
|
|
541
|
+
}
|
|
542
|
+
this._l01_a = this._l12_a, this._l12_a = this._l23_a, this._l01_2a = this._l12_2a, this._l12_2a = this._l23_2a, this._x0 = this._x1, this._x1 = this._x2, this._x2 = e, this._y0 = this._y1, this._y1 = this._y2, this._y2 = t;
|
|
543
|
+
}
|
|
544
|
+
};
|
|
545
|
+
var De = (function e(t) {
|
|
546
|
+
function n(e) {
|
|
547
|
+
return t ? new A(e, t) : new T(e, 0);
|
|
548
|
+
}
|
|
549
|
+
return n.alpha = function(t) {
|
|
550
|
+
return e(+t);
|
|
551
|
+
}, n;
|
|
552
|
+
})(.5);
|
|
553
|
+
//#endregion
|
|
554
|
+
//#region node_modules/d3-shape/src/curve/linearClosed.js
|
|
555
|
+
function j(e) {
|
|
556
|
+
this._context = e;
|
|
557
|
+
}
|
|
558
|
+
j.prototype = {
|
|
559
|
+
areaStart: y,
|
|
560
|
+
areaEnd: y,
|
|
561
|
+
lineStart: function() {
|
|
562
|
+
this._point = 0;
|
|
563
|
+
},
|
|
564
|
+
lineEnd: function() {
|
|
565
|
+
this._point && this._context.closePath();
|
|
566
|
+
},
|
|
567
|
+
point: function(e, t) {
|
|
568
|
+
e = +e, t = +t, this._point ? this._context.lineTo(e, t) : (this._point = 1, this._context.moveTo(e, t));
|
|
569
|
+
}
|
|
570
|
+
};
|
|
571
|
+
function Oe(e) {
|
|
572
|
+
return new j(e);
|
|
573
|
+
}
|
|
574
|
+
//#endregion
|
|
575
|
+
//#region node_modules/d3-shape/src/curve/monotone.js
|
|
576
|
+
function M(e) {
|
|
577
|
+
return e < 0 ? -1 : 1;
|
|
578
|
+
}
|
|
579
|
+
function N(e, t, n) {
|
|
580
|
+
var r = e._x1 - e._x0, i = t - e._x1, a = (e._y1 - e._y0) / (r || i < 0 && -0), o = (n - e._y1) / (i || r < 0 && -0), s = (a * i + o * r) / (r + i);
|
|
581
|
+
return (M(a) + M(o)) * Math.min(Math.abs(a), Math.abs(o), .5 * Math.abs(s)) || 0;
|
|
582
|
+
}
|
|
583
|
+
function ke(e, t) {
|
|
584
|
+
var n = e._x1 - e._x0;
|
|
585
|
+
return n ? (3 * (e._y1 - e._y0) / n - t) / 2 : t;
|
|
586
|
+
}
|
|
587
|
+
function P(e, t, n) {
|
|
588
|
+
var r = e._x0, i = e._y0, a = e._x1, o = e._y1, s = (a - r) / 3;
|
|
589
|
+
e._context.bezierCurveTo(r + s, i + s * t, a - s, o - s * n, a, o);
|
|
590
|
+
}
|
|
591
|
+
function F(e) {
|
|
592
|
+
this._context = e;
|
|
593
|
+
}
|
|
594
|
+
F.prototype = {
|
|
595
|
+
areaStart: function() {
|
|
596
|
+
this._line = 0;
|
|
597
|
+
},
|
|
598
|
+
areaEnd: function() {
|
|
599
|
+
this._line = NaN;
|
|
600
|
+
},
|
|
601
|
+
lineStart: function() {
|
|
602
|
+
this._x0 = this._x1 = this._y0 = this._y1 = this._t0 = NaN, this._point = 0;
|
|
603
|
+
},
|
|
604
|
+
lineEnd: function() {
|
|
605
|
+
switch (this._point) {
|
|
606
|
+
case 2:
|
|
607
|
+
this._context.lineTo(this._x1, this._y1);
|
|
608
|
+
break;
|
|
609
|
+
case 3:
|
|
610
|
+
P(this, this._t0, ke(this, this._t0));
|
|
611
|
+
break;
|
|
612
|
+
}
|
|
613
|
+
(this._line || this._line !== 0 && this._point === 1) && this._context.closePath(), this._line = 1 - this._line;
|
|
614
|
+
},
|
|
615
|
+
point: function(e, t) {
|
|
616
|
+
var n = NaN;
|
|
617
|
+
if (e = +e, t = +t, !(e === this._x1 && t === this._y1)) {
|
|
618
|
+
switch (this._point) {
|
|
619
|
+
case 0:
|
|
620
|
+
this._point = 1, this._line ? this._context.lineTo(e, t) : this._context.moveTo(e, t);
|
|
621
|
+
break;
|
|
622
|
+
case 1:
|
|
623
|
+
this._point = 2;
|
|
624
|
+
break;
|
|
625
|
+
case 2:
|
|
626
|
+
this._point = 3, P(this, ke(this, n = N(this, e, t)), n);
|
|
627
|
+
break;
|
|
628
|
+
default:
|
|
629
|
+
P(this, this._t0, n = N(this, e, t));
|
|
630
|
+
break;
|
|
631
|
+
}
|
|
632
|
+
this._x0 = this._x1, this._x1 = e, this._y0 = this._y1, this._y1 = t, this._t0 = n;
|
|
633
|
+
}
|
|
634
|
+
}
|
|
635
|
+
};
|
|
636
|
+
function Ae(e) {
|
|
637
|
+
this._context = new je(e);
|
|
638
|
+
}
|
|
639
|
+
(Ae.prototype = Object.create(F.prototype)).point = function(e, t) {
|
|
640
|
+
F.prototype.point.call(this, t, e);
|
|
641
|
+
};
|
|
642
|
+
function je(e) {
|
|
643
|
+
this._context = e;
|
|
644
|
+
}
|
|
645
|
+
je.prototype = {
|
|
646
|
+
moveTo: function(e, t) {
|
|
647
|
+
this._context.moveTo(t, e);
|
|
648
|
+
},
|
|
649
|
+
closePath: function() {
|
|
650
|
+
this._context.closePath();
|
|
651
|
+
},
|
|
652
|
+
lineTo: function(e, t) {
|
|
653
|
+
this._context.lineTo(t, e);
|
|
654
|
+
},
|
|
655
|
+
bezierCurveTo: function(e, t, n, r, i, a) {
|
|
656
|
+
this._context.bezierCurveTo(t, e, r, n, a, i);
|
|
657
|
+
}
|
|
658
|
+
};
|
|
659
|
+
function Me(e) {
|
|
660
|
+
return new F(e);
|
|
661
|
+
}
|
|
662
|
+
function Ne(e) {
|
|
663
|
+
return new Ae(e);
|
|
664
|
+
}
|
|
665
|
+
//#endregion
|
|
666
|
+
//#region node_modules/d3-shape/src/curve/natural.js
|
|
667
|
+
function Pe(e) {
|
|
668
|
+
this._context = e;
|
|
669
|
+
}
|
|
670
|
+
Pe.prototype = {
|
|
671
|
+
areaStart: function() {
|
|
672
|
+
this._line = 0;
|
|
673
|
+
},
|
|
674
|
+
areaEnd: function() {
|
|
675
|
+
this._line = NaN;
|
|
676
|
+
},
|
|
677
|
+
lineStart: function() {
|
|
678
|
+
this._x = [], this._y = [];
|
|
679
|
+
},
|
|
680
|
+
lineEnd: function() {
|
|
681
|
+
var e = this._x, t = this._y, n = e.length;
|
|
682
|
+
if (n) if (this._line ? this._context.lineTo(e[0], t[0]) : this._context.moveTo(e[0], t[0]), n === 2) this._context.lineTo(e[1], t[1]);
|
|
683
|
+
else for (var r = Fe(e), i = Fe(t), a = 0, o = 1; o < n; ++a, ++o) this._context.bezierCurveTo(r[0][a], i[0][a], r[1][a], i[1][a], e[o], t[o]);
|
|
684
|
+
(this._line || this._line !== 0 && n === 1) && this._context.closePath(), this._line = 1 - this._line, this._x = this._y = null;
|
|
685
|
+
},
|
|
686
|
+
point: function(e, t) {
|
|
687
|
+
this._x.push(+e), this._y.push(+t);
|
|
688
|
+
}
|
|
689
|
+
};
|
|
690
|
+
function Fe(e) {
|
|
691
|
+
var t, n = e.length - 1, r, i = Array(n), a = Array(n), o = Array(n);
|
|
692
|
+
for (i[0] = 0, a[0] = 2, o[0] = e[0] + 2 * e[1], t = 1; t < n - 1; ++t) i[t] = 1, a[t] = 4, o[t] = 4 * e[t] + 2 * e[t + 1];
|
|
693
|
+
for (i[n - 1] = 2, a[n - 1] = 7, o[n - 1] = 8 * e[n - 1] + e[n], t = 1; t < n; ++t) r = i[t] / a[t - 1], a[t] -= r, o[t] -= r * o[t - 1];
|
|
694
|
+
for (i[n - 1] = o[n - 1] / a[n - 1], t = n - 2; t >= 0; --t) i[t] = (o[t] - i[t + 1]) / a[t];
|
|
695
|
+
for (a[n - 1] = (e[n] + i[n - 1]) / 2, t = 0; t < n - 1; ++t) a[t] = 2 * e[t + 1] - i[t + 1];
|
|
696
|
+
return [i, a];
|
|
697
|
+
}
|
|
698
|
+
function Ie(e) {
|
|
699
|
+
return new Pe(e);
|
|
700
|
+
}
|
|
701
|
+
//#endregion
|
|
702
|
+
//#region node_modules/d3-shape/src/curve/step.js
|
|
703
|
+
function I(e, t) {
|
|
704
|
+
this._context = e, this._t = t;
|
|
705
|
+
}
|
|
706
|
+
I.prototype = {
|
|
707
|
+
areaStart: function() {
|
|
708
|
+
this._line = 0;
|
|
709
|
+
},
|
|
710
|
+
areaEnd: function() {
|
|
711
|
+
this._line = NaN;
|
|
712
|
+
},
|
|
713
|
+
lineStart: function() {
|
|
714
|
+
this._x = this._y = NaN, this._point = 0;
|
|
715
|
+
},
|
|
716
|
+
lineEnd: function() {
|
|
717
|
+
0 < this._t && this._t < 1 && this._point === 2 && this._context.lineTo(this._x, this._y), (this._line || this._line !== 0 && this._point === 1) && this._context.closePath(), this._line >= 0 && (this._t = 1 - this._t, this._line = 1 - this._line);
|
|
718
|
+
},
|
|
719
|
+
point: function(e, t) {
|
|
720
|
+
switch (e = +e, t = +t, this._point) {
|
|
721
|
+
case 0:
|
|
722
|
+
this._point = 1, this._line ? this._context.lineTo(e, t) : this._context.moveTo(e, t);
|
|
723
|
+
break;
|
|
724
|
+
case 1: this._point = 2;
|
|
725
|
+
default:
|
|
726
|
+
if (this._t <= 0) this._context.lineTo(this._x, t), this._context.lineTo(e, t);
|
|
727
|
+
else {
|
|
728
|
+
var n = this._x * (1 - this._t) + e * this._t;
|
|
729
|
+
this._context.lineTo(n, this._y), this._context.lineTo(n, t);
|
|
730
|
+
}
|
|
731
|
+
break;
|
|
732
|
+
}
|
|
733
|
+
this._x = e, this._y = t;
|
|
734
|
+
}
|
|
735
|
+
};
|
|
736
|
+
function Le(e) {
|
|
737
|
+
return new I(e, .5);
|
|
738
|
+
}
|
|
739
|
+
function Re(e) {
|
|
740
|
+
return new I(e, 0);
|
|
741
|
+
}
|
|
742
|
+
function ze(e) {
|
|
743
|
+
return new I(e, 1);
|
|
744
|
+
}
|
|
745
|
+
//#endregion
|
|
746
|
+
//#region node_modules/lodash-es/_defineProperty.js
|
|
747
|
+
var Be = c(), L = function() {
|
|
748
|
+
try {
|
|
749
|
+
var e = d(Object, "defineProperty");
|
|
750
|
+
return e({}, "", {}), e;
|
|
751
|
+
} catch {}
|
|
752
|
+
}();
|
|
753
|
+
//#endregion
|
|
754
|
+
//#region node_modules/lodash-es/_baseAssignValue.js
|
|
755
|
+
function R(e, t, n) {
|
|
756
|
+
t == "__proto__" && L ? L(e, t, {
|
|
757
|
+
configurable: !0,
|
|
758
|
+
enumerable: !0,
|
|
759
|
+
value: n,
|
|
760
|
+
writable: !0
|
|
761
|
+
}) : e[t] = n;
|
|
762
|
+
}
|
|
763
|
+
//#endregion
|
|
764
|
+
//#region node_modules/lodash-es/_assignMergeValue.js
|
|
765
|
+
function z(e, t, n) {
|
|
766
|
+
(n !== void 0 && !v(e[t], n) || n === void 0 && !(t in e)) && R(e, t, n);
|
|
767
|
+
}
|
|
768
|
+
//#endregion
|
|
769
|
+
//#region node_modules/lodash-es/_cloneBuffer.js
|
|
770
|
+
var Ve = typeof exports == "object" && exports && !exports.nodeType && exports, He = Ve && typeof module == "object" && module && !module.nodeType && module, Ue = He && He.exports === Ve ? u.Buffer : void 0, We = Ue ? Ue.allocUnsafe : void 0;
|
|
771
|
+
function Ge(e, t) {
|
|
772
|
+
if (t) return e.slice();
|
|
773
|
+
var n = e.length, r = We ? We(n) : new e.constructor(n);
|
|
774
|
+
return e.copy(r), r;
|
|
775
|
+
}
|
|
776
|
+
//#endregion
|
|
777
|
+
//#region node_modules/lodash-es/_cloneArrayBuffer.js
|
|
778
|
+
function Ke(e) {
|
|
779
|
+
var t = new e.constructor(e.byteLength);
|
|
780
|
+
return new ne(t).set(new ne(e)), t;
|
|
781
|
+
}
|
|
782
|
+
//#endregion
|
|
783
|
+
//#region node_modules/lodash-es/_cloneTypedArray.js
|
|
784
|
+
function qe(e, t) {
|
|
785
|
+
var n = t ? Ke(e.buffer) : e.buffer;
|
|
786
|
+
return new e.constructor(n, e.byteOffset, e.length);
|
|
787
|
+
}
|
|
788
|
+
//#endregion
|
|
789
|
+
//#region node_modules/lodash-es/_copyArray.js
|
|
790
|
+
function B(e, t) {
|
|
791
|
+
var n = -1, r = e.length;
|
|
792
|
+
for (t ||= Array(r); ++n < r;) t[n] = e[n];
|
|
793
|
+
return t;
|
|
794
|
+
}
|
|
795
|
+
//#endregion
|
|
796
|
+
//#region node_modules/lodash-es/_baseCreate.js
|
|
797
|
+
var Je = Object.create, Ye = function() {
|
|
798
|
+
function e() {}
|
|
799
|
+
return function(t) {
|
|
800
|
+
if (!f(t)) return {};
|
|
801
|
+
if (Je) return Je(t);
|
|
802
|
+
e.prototype = t;
|
|
803
|
+
var n = new e();
|
|
804
|
+
return e.prototype = void 0, n;
|
|
805
|
+
};
|
|
806
|
+
}(), V = ie(Object.getPrototypeOf, Object);
|
|
807
|
+
//#endregion
|
|
808
|
+
//#region node_modules/lodash-es/_initCloneObject.js
|
|
809
|
+
function Xe(e) {
|
|
810
|
+
return typeof e.constructor == "function" && !oe(e) ? Ye(V(e)) : {};
|
|
811
|
+
}
|
|
812
|
+
//#endregion
|
|
813
|
+
//#region node_modules/lodash-es/isArrayLikeObject.js
|
|
814
|
+
function Ze(e) {
|
|
815
|
+
return h(e) && m(e);
|
|
816
|
+
}
|
|
817
|
+
//#endregion
|
|
818
|
+
//#region node_modules/lodash-es/isPlainObject.js
|
|
819
|
+
var Qe = "[object Object]", $e = Function.prototype, et = Object.prototype, tt = $e.toString, nt = et.hasOwnProperty, rt = tt.call(Object);
|
|
820
|
+
function it(e) {
|
|
821
|
+
if (!h(e) || l(e) != Qe) return !1;
|
|
822
|
+
var t = V(e);
|
|
823
|
+
if (t === null) return !0;
|
|
824
|
+
var n = nt.call(t, "constructor") && t.constructor;
|
|
825
|
+
return typeof n == "function" && n instanceof n && tt.call(n) == rt;
|
|
826
|
+
}
|
|
827
|
+
//#endregion
|
|
828
|
+
//#region node_modules/lodash-es/_safeGet.js
|
|
829
|
+
function H(e, t) {
|
|
830
|
+
if (!(t === "constructor" && typeof e[t] == "function") && t != "__proto__") return e[t];
|
|
831
|
+
}
|
|
832
|
+
//#endregion
|
|
833
|
+
//#region node_modules/lodash-es/_assignValue.js
|
|
834
|
+
var at = Object.prototype.hasOwnProperty;
|
|
835
|
+
function ot(e, t, n) {
|
|
836
|
+
var r = e[t];
|
|
837
|
+
(!(at.call(e, t) && v(r, n)) || n === void 0 && !(t in e)) && R(e, t, n);
|
|
838
|
+
}
|
|
839
|
+
//#endregion
|
|
840
|
+
//#region node_modules/lodash-es/_copyObject.js
|
|
841
|
+
function st(e, t, n, r) {
|
|
842
|
+
var i = !n;
|
|
843
|
+
n ||= {};
|
|
844
|
+
for (var a = -1, o = t.length; ++a < o;) {
|
|
845
|
+
var s = t[a], c = r ? r(n[s], e[s], s, n, e) : void 0;
|
|
846
|
+
c === void 0 && (c = e[s]), i ? R(n, s, c) : ot(n, s, c);
|
|
847
|
+
}
|
|
848
|
+
return n;
|
|
849
|
+
}
|
|
850
|
+
//#endregion
|
|
851
|
+
//#region node_modules/lodash-es/_nativeKeysIn.js
|
|
852
|
+
function ct(e) {
|
|
853
|
+
var t = [];
|
|
854
|
+
if (e != null) for (var n in Object(e)) t.push(n);
|
|
855
|
+
return t;
|
|
856
|
+
}
|
|
857
|
+
//#endregion
|
|
858
|
+
//#region node_modules/lodash-es/_baseKeysIn.js
|
|
859
|
+
var lt = Object.prototype.hasOwnProperty;
|
|
860
|
+
function ut(e) {
|
|
861
|
+
if (!f(e)) return ct(e);
|
|
862
|
+
var t = oe(e), n = [];
|
|
863
|
+
for (var r in e) r == "constructor" && (t || !lt.call(e, r)) || n.push(r);
|
|
864
|
+
return n;
|
|
865
|
+
}
|
|
866
|
+
//#endregion
|
|
867
|
+
//#region node_modules/lodash-es/keysIn.js
|
|
868
|
+
function U(e) {
|
|
869
|
+
return m(e) ? ae(e, !0) : ut(e);
|
|
870
|
+
}
|
|
871
|
+
//#endregion
|
|
872
|
+
//#region node_modules/lodash-es/toPlainObject.js
|
|
873
|
+
function dt(e) {
|
|
874
|
+
return st(e, U(e));
|
|
875
|
+
}
|
|
876
|
+
//#endregion
|
|
877
|
+
//#region node_modules/lodash-es/_baseMergeDeep.js
|
|
878
|
+
function ft(e, t, n, r, i, a, o) {
|
|
879
|
+
var s = H(e, n), c = H(t, n), l = o.get(c);
|
|
880
|
+
if (l) {
|
|
881
|
+
z(e, n, l);
|
|
882
|
+
return;
|
|
883
|
+
}
|
|
884
|
+
var u = a ? a(s, c, n + "", e, t, o) : void 0, d = u === void 0;
|
|
885
|
+
if (d) {
|
|
886
|
+
var p = le(c), m = !p && ce(c), h = !p && !m && re(c);
|
|
887
|
+
u = c, p || m || h ? le(s) ? u = s : Ze(s) ? u = B(s) : m ? (d = !1, u = Ge(c, !0)) : h ? (d = !1, u = qe(c, !0)) : u = [] : it(c) || ee(c) ? (u = s, ee(s) ? u = dt(s) : (!f(s) || ue(s)) && (u = Xe(c))) : d = !1;
|
|
888
|
+
}
|
|
889
|
+
d && (o.set(c, u), i(u, c, r, a, o), o.delete(c)), z(e, n, u);
|
|
890
|
+
}
|
|
891
|
+
//#endregion
|
|
892
|
+
//#region node_modules/lodash-es/_baseMerge.js
|
|
893
|
+
function pt(e, t, n, r, i) {
|
|
894
|
+
e !== t && te(t, function(a, o) {
|
|
895
|
+
if (i ||= new p(), f(a)) ft(e, t, o, n, pt, r, i);
|
|
896
|
+
else {
|
|
897
|
+
var s = r ? r(H(e, o), a, o + "", e, t, i) : void 0;
|
|
898
|
+
s === void 0 && (s = a), z(e, o, s);
|
|
899
|
+
}
|
|
900
|
+
}, U);
|
|
901
|
+
}
|
|
902
|
+
//#endregion
|
|
903
|
+
//#region node_modules/lodash-es/_apply.js
|
|
904
|
+
function mt(e, t, n) {
|
|
905
|
+
switch (n.length) {
|
|
906
|
+
case 0: return e.call(t);
|
|
907
|
+
case 1: return e.call(t, n[0]);
|
|
908
|
+
case 2: return e.call(t, n[0], n[1]);
|
|
909
|
+
case 3: return e.call(t, n[0], n[1], n[2]);
|
|
910
|
+
}
|
|
911
|
+
return e.apply(t, n);
|
|
912
|
+
}
|
|
913
|
+
//#endregion
|
|
914
|
+
//#region node_modules/lodash-es/_overRest.js
|
|
915
|
+
var ht = Math.max;
|
|
916
|
+
function gt(e, t, n) {
|
|
917
|
+
return t = ht(t === void 0 ? e.length - 1 : t, 0), function() {
|
|
918
|
+
for (var r = arguments, i = -1, a = ht(r.length - t, 0), o = Array(a); ++i < a;) o[i] = r[t + i];
|
|
919
|
+
i = -1;
|
|
920
|
+
for (var s = Array(t + 1); ++i < t;) s[i] = r[i];
|
|
921
|
+
return s[t] = n(o), mt(e, this, s);
|
|
922
|
+
};
|
|
923
|
+
}
|
|
924
|
+
//#endregion
|
|
925
|
+
//#region node_modules/lodash-es/constant.js
|
|
926
|
+
function _t(e) {
|
|
927
|
+
return function() {
|
|
928
|
+
return e;
|
|
929
|
+
};
|
|
930
|
+
}
|
|
931
|
+
//#endregion
|
|
932
|
+
//#region node_modules/lodash-es/_baseSetToString.js
|
|
933
|
+
var vt = L ? function(e, t) {
|
|
934
|
+
return L(e, "toString", {
|
|
935
|
+
configurable: !0,
|
|
936
|
+
enumerable: !1,
|
|
937
|
+
value: _t(t),
|
|
938
|
+
writable: !0
|
|
939
|
+
});
|
|
940
|
+
} : g, yt = 800, bt = 16, xt = Date.now;
|
|
941
|
+
function St(e) {
|
|
942
|
+
var t = 0, n = 0;
|
|
943
|
+
return function() {
|
|
944
|
+
var r = xt(), i = bt - (r - n);
|
|
945
|
+
if (n = r, i > 0) {
|
|
946
|
+
if (++t >= yt) return arguments[0];
|
|
947
|
+
} else t = 0;
|
|
948
|
+
return e.apply(void 0, arguments);
|
|
949
|
+
};
|
|
950
|
+
}
|
|
951
|
+
//#endregion
|
|
952
|
+
//#region node_modules/lodash-es/_setToString.js
|
|
953
|
+
var Ct = St(vt);
|
|
954
|
+
//#endregion
|
|
955
|
+
//#region node_modules/lodash-es/_baseRest.js
|
|
956
|
+
function wt(e, t) {
|
|
957
|
+
return Ct(gt(e, t, g), e + "");
|
|
958
|
+
}
|
|
959
|
+
//#endregion
|
|
960
|
+
//#region node_modules/lodash-es/_isIterateeCall.js
|
|
961
|
+
function Tt(e, t, n) {
|
|
962
|
+
if (!f(n)) return !1;
|
|
963
|
+
var r = typeof t;
|
|
964
|
+
return (r == "number" ? m(n) && se(t, n.length) : r == "string" && t in n) ? v(n[t], e) : !1;
|
|
965
|
+
}
|
|
966
|
+
//#endregion
|
|
967
|
+
//#region node_modules/lodash-es/_createAssigner.js
|
|
968
|
+
function Et(e) {
|
|
969
|
+
return wt(function(t, n) {
|
|
970
|
+
var r = -1, i = n.length, a = i > 1 ? n[i - 1] : void 0, o = i > 2 ? n[2] : void 0;
|
|
971
|
+
for (a = e.length > 3 && typeof a == "function" ? (i--, a) : void 0, o && Tt(n[0], n[1], o) && (a = i < 3 ? void 0 : a, i = 1), t = Object(t); ++r < i;) {
|
|
972
|
+
var s = n[r];
|
|
973
|
+
s && e(t, s, r, a);
|
|
974
|
+
}
|
|
975
|
+
return t;
|
|
976
|
+
});
|
|
977
|
+
}
|
|
978
|
+
//#endregion
|
|
979
|
+
//#region node_modules/lodash-es/merge.js
|
|
980
|
+
var Dt = Et(function(e, t, n) {
|
|
981
|
+
pt(e, t, n);
|
|
982
|
+
}), Ot = {
|
|
983
|
+
curveBasis: ge,
|
|
984
|
+
curveBasisClosed: ve,
|
|
985
|
+
curveBasisOpen: be,
|
|
986
|
+
curveBumpX: me,
|
|
987
|
+
curveBumpY: he,
|
|
988
|
+
curveBundle: Se,
|
|
989
|
+
curveCardinalClosed: we,
|
|
990
|
+
curveCardinalOpen: Te,
|
|
991
|
+
curveCardinal: Ce,
|
|
992
|
+
curveCatmullRomClosed: Ee,
|
|
993
|
+
curveCatmullRomOpen: De,
|
|
994
|
+
curveCatmullRom: O,
|
|
995
|
+
curveLinear: fe,
|
|
996
|
+
curveLinearClosed: Oe,
|
|
997
|
+
curveMonotoneX: Me,
|
|
998
|
+
curveMonotoneY: Ne,
|
|
999
|
+
curveNatural: Ie,
|
|
1000
|
+
curveStep: Le,
|
|
1001
|
+
curveStepAfter: ze,
|
|
1002
|
+
curveStepBefore: Re
|
|
1003
|
+
}, kt = /\s*(?:(\w+)(?=:):|(\w+))\s*(?:(\w+)|((?:(?!}%{2}).|\r?\n)*))?\s*(?:}%{2})?/gi, At = /* @__PURE__ */ o(function(n, i) {
|
|
1004
|
+
let a = jt(n, /(?:init\b)|(?:initialize\b)/), o = {};
|
|
1005
|
+
if (Array.isArray(a)) {
|
|
1006
|
+
let t = a.map((e) => e.args);
|
|
1007
|
+
e(t), o = r(o, [...t]);
|
|
1008
|
+
} else o = a.args;
|
|
1009
|
+
if (!o) return;
|
|
1010
|
+
let s = t(n, i), c = "config";
|
|
1011
|
+
return o[c] !== void 0 && (s === "flowchart-v2" && (s = "flowchart"), o[s] = o[c], delete o[c]), o;
|
|
1012
|
+
}, "detectInit"), jt = /* @__PURE__ */ o(function(e, t = null) {
|
|
1013
|
+
try {
|
|
1014
|
+
let r = RegExp(`[%]{2}(?![{]${kt.source})(?=[}][%]{2}).*
|
|
1015
|
+
`, "ig");
|
|
1016
|
+
e = e.trim().replace(r, "").replace(/'/gm, "\""), a.debug(`Detecting diagram directive${t === null ? "" : " type:" + t} based on the text:${e}`);
|
|
1017
|
+
let i, o = [];
|
|
1018
|
+
for (; (i = n.exec(e)) !== null;) if (i.index === n.lastIndex && n.lastIndex++, i && !t || t && i[1]?.match(t) || t && i[2]?.match(t)) {
|
|
1019
|
+
let e = i[1] ? i[1] : i[2], t = i[3] ? i[3].trim() : i[4] ? JSON.parse(i[4].trim()) : null;
|
|
1020
|
+
o.push({
|
|
1021
|
+
type: e,
|
|
1022
|
+
args: t
|
|
1023
|
+
});
|
|
1024
|
+
}
|
|
1025
|
+
return o.length === 0 ? {
|
|
1026
|
+
type: e,
|
|
1027
|
+
args: null
|
|
1028
|
+
} : o.length === 1 ? o[0] : o;
|
|
1029
|
+
} catch (n) {
|
|
1030
|
+
return a.error(`ERROR: ${n.message} - Unable to parse directive type: '${t}' based on the text: '${e}'`), {
|
|
1031
|
+
type: void 0,
|
|
1032
|
+
args: null
|
|
1033
|
+
};
|
|
1034
|
+
}
|
|
1035
|
+
}, "detectDirective"), Mt = /* @__PURE__ */ o(function(e) {
|
|
1036
|
+
return e.replace(n, "");
|
|
1037
|
+
}, "removeDirectives"), Nt = /* @__PURE__ */ o(function(e, t) {
|
|
1038
|
+
for (let [n, r] of t.entries()) if (r.match(e)) return n;
|
|
1039
|
+
return -1;
|
|
1040
|
+
}, "isSubstringInArray");
|
|
1041
|
+
function W(e, t) {
|
|
1042
|
+
return e ? Ot[`curve${e.charAt(0).toUpperCase() + e.slice(1)}`] ?? t : t;
|
|
1043
|
+
}
|
|
1044
|
+
o(W, "interpolateToCurve");
|
|
1045
|
+
function Pt(e, t) {
|
|
1046
|
+
let n = e.trim();
|
|
1047
|
+
if (n) return t.securityLevel === "loose" ? n : (0, Be.sanitizeUrl)(n);
|
|
1048
|
+
}
|
|
1049
|
+
o(Pt, "formatUrl");
|
|
1050
|
+
var Ft = /* @__PURE__ */ o((e, ...t) => {
|
|
1051
|
+
let n = e.split("."), r = n.length - 1, i = n[r], o = window;
|
|
1052
|
+
for (let t = 0; t < r; t++) if (o = o[n[t]], !o) {
|
|
1053
|
+
a.error(`Function name: ${e} not found in window`);
|
|
1054
|
+
return;
|
|
1055
|
+
}
|
|
1056
|
+
o[i](...t);
|
|
1057
|
+
}, "runFunc");
|
|
1058
|
+
function G(e, t) {
|
|
1059
|
+
return !e || !t ? 0 : Math.sqrt((t.x - e.x) ** 2 + (t.y - e.y) ** 2);
|
|
1060
|
+
}
|
|
1061
|
+
o(G, "distance");
|
|
1062
|
+
function It(e) {
|
|
1063
|
+
let t, n = 0;
|
|
1064
|
+
return e.forEach((e) => {
|
|
1065
|
+
n += G(e, t), t = e;
|
|
1066
|
+
}), K(e, n / 2);
|
|
1067
|
+
}
|
|
1068
|
+
o(It, "traverseEdge");
|
|
1069
|
+
function Lt(e) {
|
|
1070
|
+
return e.length === 1 ? e[0] : It(e);
|
|
1071
|
+
}
|
|
1072
|
+
o(Lt, "calcLabelPosition");
|
|
1073
|
+
var Rt = /* @__PURE__ */ o((e, t = 2) => {
|
|
1074
|
+
let n = 10 ** t;
|
|
1075
|
+
return Math.round(e * n) / n;
|
|
1076
|
+
}, "roundNumber"), K = /* @__PURE__ */ o((e, t) => {
|
|
1077
|
+
let n, r = t;
|
|
1078
|
+
for (let t of e) {
|
|
1079
|
+
if (n) {
|
|
1080
|
+
let e = G(t, n);
|
|
1081
|
+
if (e === 0) return n;
|
|
1082
|
+
if (e < r) r -= e;
|
|
1083
|
+
else {
|
|
1084
|
+
let i = r / e;
|
|
1085
|
+
if (i <= 0) return n;
|
|
1086
|
+
if (i >= 1) return {
|
|
1087
|
+
x: t.x,
|
|
1088
|
+
y: t.y
|
|
1089
|
+
};
|
|
1090
|
+
if (i > 0 && i < 1) return {
|
|
1091
|
+
x: Rt((1 - i) * n.x + i * t.x, 5),
|
|
1092
|
+
y: Rt((1 - i) * n.y + i * t.y, 5)
|
|
1093
|
+
};
|
|
1094
|
+
}
|
|
1095
|
+
}
|
|
1096
|
+
n = t;
|
|
1097
|
+
}
|
|
1098
|
+
throw Error("Could not find a suitable point for the given distance");
|
|
1099
|
+
}, "calculatePoint"), zt = /* @__PURE__ */ o((e, t, n) => {
|
|
1100
|
+
a.info(`our points ${JSON.stringify(t)}`), t[0] !== n && (t = t.reverse());
|
|
1101
|
+
let r = K(t, 25), i = e ? 10 : 5, o = Math.atan2(t[0].y - r.y, t[0].x - r.x), s = {
|
|
1102
|
+
x: 0,
|
|
1103
|
+
y: 0
|
|
1104
|
+
};
|
|
1105
|
+
return s.x = Math.sin(o) * i + (t[0].x + r.x) / 2, s.y = -Math.cos(o) * i + (t[0].y + r.y) / 2, s;
|
|
1106
|
+
}, "calcCardinalityPosition");
|
|
1107
|
+
function Bt(e, t, n) {
|
|
1108
|
+
let r = structuredClone(n);
|
|
1109
|
+
a.info("our points", r), t !== "start_left" && t !== "start_right" && r.reverse();
|
|
1110
|
+
let i = K(r, 25 + e), o = 10 + e * .5, s = Math.atan2(r[0].y - i.y, r[0].x - i.x), c = {
|
|
1111
|
+
x: 0,
|
|
1112
|
+
y: 0
|
|
1113
|
+
};
|
|
1114
|
+
return t === "start_left" ? (c.x = Math.sin(s + Math.PI) * o + (r[0].x + i.x) / 2, c.y = -Math.cos(s + Math.PI) * o + (r[0].y + i.y) / 2) : t === "end_right" ? (c.x = Math.sin(s - Math.PI) * o + (r[0].x + i.x) / 2 - 5, c.y = -Math.cos(s - Math.PI) * o + (r[0].y + i.y) / 2 - 5) : t === "end_left" ? (c.x = Math.sin(s) * o + (r[0].x + i.x) / 2 - 5, c.y = -Math.cos(s) * o + (r[0].y + i.y) / 2 - 5) : (c.x = Math.sin(s) * o + (r[0].x + i.x) / 2, c.y = -Math.cos(s) * o + (r[0].y + i.y) / 2), c;
|
|
1115
|
+
}
|
|
1116
|
+
o(Bt, "calcTerminalLabelPosition");
|
|
1117
|
+
function q(e) {
|
|
1118
|
+
let t = "", n = "";
|
|
1119
|
+
for (let r of e) r !== void 0 && (r.startsWith("color:") || r.startsWith("text-align:") ? n = n + r + ";" : t = t + r + ";");
|
|
1120
|
+
return {
|
|
1121
|
+
style: t,
|
|
1122
|
+
labelStyle: n
|
|
1123
|
+
};
|
|
1124
|
+
}
|
|
1125
|
+
o(q, "getStylesFromArray");
|
|
1126
|
+
var Vt = 0, Ht = /* @__PURE__ */ o(() => (Vt++, "id-" + Math.random().toString(36).substr(2, 12) + "-" + Vt), "generateId");
|
|
1127
|
+
function Ut(e) {
|
|
1128
|
+
let t = "";
|
|
1129
|
+
for (let n = 0; n < e; n++) t += "0123456789abcdef".charAt(Math.floor(Math.random() * 16));
|
|
1130
|
+
return t;
|
|
1131
|
+
}
|
|
1132
|
+
o(Ut, "makeRandomHex");
|
|
1133
|
+
var Wt = /* @__PURE__ */ o((e) => Ut(e.length), "random"), Gt = /* @__PURE__ */ o(function() {
|
|
1134
|
+
return {
|
|
1135
|
+
x: 0,
|
|
1136
|
+
y: 0,
|
|
1137
|
+
fill: void 0,
|
|
1138
|
+
anchor: "start",
|
|
1139
|
+
style: "#666",
|
|
1140
|
+
width: 100,
|
|
1141
|
+
height: 100,
|
|
1142
|
+
textMargin: 0,
|
|
1143
|
+
rx: 0,
|
|
1144
|
+
ry: 0,
|
|
1145
|
+
valign: void 0,
|
|
1146
|
+
text: ""
|
|
1147
|
+
};
|
|
1148
|
+
}, "getTextObj"), Kt = /* @__PURE__ */ o(function(e, t) {
|
|
1149
|
+
let n = t.text.replace(i.lineBreakRegex, " "), [, r] = Q(t.fontSize), a = e.append("text");
|
|
1150
|
+
a.attr("x", t.x), a.attr("y", t.y), a.style("text-anchor", t.anchor), a.style("font-family", t.fontFamily), a.style("font-size", r), a.style("font-weight", t.fontWeight), a.attr("fill", t.fill), t.class !== void 0 && a.attr("class", t.class);
|
|
1151
|
+
let o = a.append("tspan");
|
|
1152
|
+
return o.attr("x", t.x + t.textMargin * 2), o.attr("fill", t.fill), o.text(n), a;
|
|
1153
|
+
}, "drawSimpleText"), qt = _((e, t, n) => {
|
|
1154
|
+
if (!e || (n = Object.assign({
|
|
1155
|
+
fontSize: 12,
|
|
1156
|
+
fontWeight: 400,
|
|
1157
|
+
fontFamily: "Arial",
|
|
1158
|
+
joinWith: "<br/>"
|
|
1159
|
+
}, n), i.lineBreakRegex.test(e))) return e;
|
|
1160
|
+
let r = e.split(" ").filter(Boolean), a = [], o = "";
|
|
1161
|
+
return r.forEach((e, i) => {
|
|
1162
|
+
let s = Y(`${e} `, n), c = Y(o, n);
|
|
1163
|
+
if (s > t) {
|
|
1164
|
+
let { hyphenatedStrings: r, remainingWord: i } = Jt(e, t, "-", n);
|
|
1165
|
+
a.push(o, ...r), o = i;
|
|
1166
|
+
} else c + s >= t ? (a.push(o), o = e) : o = [o, e].filter(Boolean).join(" ");
|
|
1167
|
+
i + 1 === r.length && a.push(o);
|
|
1168
|
+
}), a.filter((e) => e !== "").join(n.joinWith);
|
|
1169
|
+
}, (e, t, n) => `${e}${t}${n.fontSize}${n.fontWeight}${n.fontFamily}${n.joinWith}`), Jt = _((e, t, n = "-", r) => {
|
|
1170
|
+
r = Object.assign({
|
|
1171
|
+
fontSize: 12,
|
|
1172
|
+
fontWeight: 400,
|
|
1173
|
+
fontFamily: "Arial",
|
|
1174
|
+
margin: 0
|
|
1175
|
+
}, r);
|
|
1176
|
+
let i = [...e], a = [], o = "";
|
|
1177
|
+
return i.forEach((e, s) => {
|
|
1178
|
+
let c = `${o}${e}`;
|
|
1179
|
+
if (Y(c, r) >= t) {
|
|
1180
|
+
let e = s + 1, t = i.length === e, r = `${c}${n}`;
|
|
1181
|
+
a.push(t ? c : r), o = "";
|
|
1182
|
+
} else o = c;
|
|
1183
|
+
}), {
|
|
1184
|
+
hyphenatedStrings: a,
|
|
1185
|
+
remainingWord: o
|
|
1186
|
+
};
|
|
1187
|
+
}, (e, t, n = "-", r) => `${e}${t}${n}${r.fontSize}${r.fontWeight}${r.fontFamily}`);
|
|
1188
|
+
function J(e, t) {
|
|
1189
|
+
return X(e, t).height;
|
|
1190
|
+
}
|
|
1191
|
+
o(J, "calculateTextHeight");
|
|
1192
|
+
function Y(e, t) {
|
|
1193
|
+
return X(e, t).width;
|
|
1194
|
+
}
|
|
1195
|
+
o(Y, "calculateTextWidth");
|
|
1196
|
+
var X = _((e, t) => {
|
|
1197
|
+
let { fontSize: n = 12, fontFamily: r = "Arial", fontWeight: a = 400 } = t;
|
|
1198
|
+
if (!e) return {
|
|
1199
|
+
width: 0,
|
|
1200
|
+
height: 0
|
|
1201
|
+
};
|
|
1202
|
+
let [, o] = Q(n), c = ["sans-serif", r], l = e.split(i.lineBreakRegex), u = [], d = s("body");
|
|
1203
|
+
if (!d.remove) return {
|
|
1204
|
+
width: 0,
|
|
1205
|
+
height: 0,
|
|
1206
|
+
lineHeight: 0
|
|
1207
|
+
};
|
|
1208
|
+
let f = d.append("svg");
|
|
1209
|
+
for (let e of c) {
|
|
1210
|
+
let t = 0, n = {
|
|
1211
|
+
width: 0,
|
|
1212
|
+
height: 0,
|
|
1213
|
+
lineHeight: 0
|
|
1214
|
+
};
|
|
1215
|
+
for (let r of l) {
|
|
1216
|
+
let i = Gt();
|
|
1217
|
+
i.text = r || "";
|
|
1218
|
+
let s = Kt(f, i).style("font-size", o).style("font-weight", a).style("font-family", e), c = (s._groups || s)[0][0].getBBox();
|
|
1219
|
+
if (c.width === 0 && c.height === 0) throw Error("svg element not in render tree");
|
|
1220
|
+
n.width = Math.round(Math.max(n.width, c.width)), t = Math.round(c.height), n.height += t, n.lineHeight = Math.round(Math.max(n.lineHeight, t));
|
|
1221
|
+
}
|
|
1222
|
+
u.push(n);
|
|
1223
|
+
}
|
|
1224
|
+
return f.remove(), u[isNaN(u[1].height) || isNaN(u[1].width) || isNaN(u[1].lineHeight) || u[0].height > u[1].height && u[0].width > u[1].width && u[0].lineHeight > u[1].lineHeight ? 0 : 1];
|
|
1225
|
+
}, (e, t) => `${e}${t.fontSize}${t.fontWeight}${t.fontFamily}`), Yt = class {
|
|
1226
|
+
constructor(e = !1, t) {
|
|
1227
|
+
this.count = 0, this.count = t ? t.length : 0, this.next = e ? () => this.count++ : () => Date.now();
|
|
1228
|
+
}
|
|
1229
|
+
static {
|
|
1230
|
+
o(this, "InitIDGenerator");
|
|
1231
|
+
}
|
|
1232
|
+
}, Z, Xt = /* @__PURE__ */ o(function(e) {
|
|
1233
|
+
return Z ||= document.createElement("div"), e = escape(e).replace(/%26/g, "&").replace(/%23/g, "#").replace(/%3B/g, ";"), Z.innerHTML = e, unescape(Z.textContent);
|
|
1234
|
+
}, "entityDecode");
|
|
1235
|
+
function Zt(e) {
|
|
1236
|
+
return "str" in e;
|
|
1237
|
+
}
|
|
1238
|
+
o(Zt, "isDetailedError");
|
|
1239
|
+
var Qt = /* @__PURE__ */ o((e, t, n, r) => {
|
|
1240
|
+
if (!r) return;
|
|
1241
|
+
let i = e.node()?.getBBox();
|
|
1242
|
+
i && e.append("text").text(r).attr("text-anchor", "middle").attr("x", i.x + i.width / 2).attr("y", -n).attr("class", t);
|
|
1243
|
+
}, "insertTitle"), Q = /* @__PURE__ */ o((e) => {
|
|
1244
|
+
if (typeof e == "number") return [e, e + "px"];
|
|
1245
|
+
let t = parseInt(e ?? "", 10);
|
|
1246
|
+
return Number.isNaN(t) ? [void 0, void 0] : e === String(t) ? [t, e + "px"] : [t, e];
|
|
1247
|
+
}, "parseFontSize");
|
|
1248
|
+
function $(e, t) {
|
|
1249
|
+
return Dt({}, e, t);
|
|
1250
|
+
}
|
|
1251
|
+
o($, "cleanAndMerge");
|
|
1252
|
+
var $t = {
|
|
1253
|
+
assignWithDepth: r,
|
|
1254
|
+
wrapLabel: qt,
|
|
1255
|
+
calculateTextHeight: J,
|
|
1256
|
+
calculateTextWidth: Y,
|
|
1257
|
+
calculateTextDimensions: X,
|
|
1258
|
+
cleanAndMerge: $,
|
|
1259
|
+
detectInit: At,
|
|
1260
|
+
detectDirective: jt,
|
|
1261
|
+
isSubstringInArray: Nt,
|
|
1262
|
+
interpolateToCurve: W,
|
|
1263
|
+
calcLabelPosition: Lt,
|
|
1264
|
+
calcCardinalityPosition: zt,
|
|
1265
|
+
calcTerminalLabelPosition: Bt,
|
|
1266
|
+
formatUrl: Pt,
|
|
1267
|
+
getStylesFromArray: q,
|
|
1268
|
+
generateId: Ht,
|
|
1269
|
+
random: Wt,
|
|
1270
|
+
runFunc: Ft,
|
|
1271
|
+
entityDecode: Xt,
|
|
1272
|
+
insertTitle: Qt,
|
|
1273
|
+
isLabelCoordinateInPath: an,
|
|
1274
|
+
parseFontSize: Q,
|
|
1275
|
+
InitIDGenerator: Yt
|
|
1276
|
+
}, en = /* @__PURE__ */ o(function(e) {
|
|
1277
|
+
let t = e;
|
|
1278
|
+
return t = t.replace(/style.*:\S*#.*;/g, function(e) {
|
|
1279
|
+
return e.substring(0, e.length - 1);
|
|
1280
|
+
}), t = t.replace(/classDef.*:\S*#.*;/g, function(e) {
|
|
1281
|
+
return e.substring(0, e.length - 1);
|
|
1282
|
+
}), t = t.replace(/#\w+;/g, function(e) {
|
|
1283
|
+
let t = e.substring(1, e.length - 1);
|
|
1284
|
+
return /^\+?\d+$/.test(t) ? "fl°°" + t + "¶ß" : "fl°" + t + "¶ß";
|
|
1285
|
+
}), t;
|
|
1286
|
+
}, "encodeEntities"), tn = /* @__PURE__ */ o(function(e) {
|
|
1287
|
+
return e.replace(/fl°°/g, "&#").replace(/fl°/g, "&").replace(/¶ß/g, ";");
|
|
1288
|
+
}, "decodeEntities"), nn = /* @__PURE__ */ o((e, t, { counter: n = 0, prefix: r, suffix: i }, a) => a || `${r ? `${r}_` : ""}${e}_${t}_${n}${i ? `_${i}` : ""}`, "getEdgeId");
|
|
1289
|
+
function rn(e) {
|
|
1290
|
+
return e ?? null;
|
|
1291
|
+
}
|
|
1292
|
+
o(rn, "handleUndefinedAttr");
|
|
1293
|
+
function an(e, t) {
|
|
1294
|
+
let n = Math.round(e.x), r = Math.round(e.y), i = t.replace(/(\d+\.\d+)/g, (e) => Math.round(parseFloat(e)).toString());
|
|
1295
|
+
return i.includes(n.toString()) || i.includes(r.toString());
|
|
1296
|
+
}
|
|
1297
|
+
o(an, "isLabelCoordinateInPath");
|
|
1298
|
+
//#endregion
|
|
1299
|
+
export { qe as A, O as B, U as C, Xe as D, Ze as E, Re as F, fe as G, ge as H, Le as I, Ie as L, Ge as M, R as N, V as O, ze as P, Me as R, gt as S, ot as T, me as U, Ce as V, he as W, Dt as _, en as a, Ct as b, q as c, Zt as d, Q as f, qt as g, $t as h, tn as i, Ke as j, B as k, rn as l, Mt as m, Y as n, Ht as o, Wt as p, $ as r, nn as s, J as t, W as u, Tt as v, st as w, _t as x, wt as y, Ne as z };
|