@foris/avocado-not-front 1.12.0 → 2.0.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/avocado-not-front.es.js +2165 -8
- package/dist/avocado-not-front.umd.js +3 -4642
- package/dist/hooks/useAction.d.ts +3 -3
- package/dist/services/axios/useFetchAndLoad.d.ts +1 -1
- package/package.json +35 -18
- package/dist/abap-Y8Dl9g_6-Y8Dl9g_6.js +0 -6
- package/dist/actionscript-3-DZzbMeqX-DZzbMeqX.js +0 -6
- package/dist/ada-vP6ak0IW-vP6ak0IW.js +0 -6
- package/dist/andromeeda-BIpZ7gaU-BIpZ7gaU.js +0 -4
- package/dist/angular-html-DPB4Rf0C-1_1_4tyh.js +0 -34
- package/dist/angular-ts-CeqPwKaz-ohSx1G-R.js +0 -24
- package/dist/apache-BUjz-sD2-BUjz-sD2.js +0 -6
- package/dist/apex-oLhhs58q-oLhhs58q.js +0 -6
- package/dist/apl-Bfz1rp5e-DI6exAvT.js +0 -17
- package/dist/applescript-BPx7YFFu-BPx7YFFu.js +0 -6
- package/dist/ara-Z2fSOxSw-Z2fSOxSw.js +0 -6
- package/dist/arc-DHSZg76Q-C6o4oFmD.js +0 -85
- package/dist/architectureDiagram-VXUJARFQ-Cp8vugxX-9O3-degh.js +0 -4672
- package/dist/asciidoc-B-pCoB3G-B-pCoB3G.js +0 -6
- package/dist/asm-BTWLY5ym-BTWLY5ym.js +0 -6
- package/dist/astro-CFFExE8Q-D857V_mk.js +0 -18
- package/dist/aurora-x-BwoVEUWZ-BwoVEUWZ.js +0 -4
- package/dist/awk-Fb0P9dkn-Fb0P9dkn.js +0 -6
- package/dist/ayu-dark-CxPZkpb2-CxPZkpb2.js +0 -4
- package/dist/ballerina-oZK-YekG-oZK-YekG.js +0 -6
- package/dist/bat-0FvbqU9S-0FvbqU9S.js +0 -6
- package/dist/beancount-DqJEb89h-DqJEb89h.js +0 -6
- package/dist/berry-DODBq_Ff-DODBq_Ff.js +0 -6
- package/dist/bibtex-EULQRLY5-EULQRLY5.js +0 -6
- package/dist/bicep-BorU73w0-BorU73w0.js +0 -6
- package/dist/blade-DRRSiTQz-DuQj1Sqy.js +0 -21
- package/dist/blockDiagram-VD42YOAC-B4cTulr6-CNlYtTjf.js +0 -2407
- package/dist/bsl-NkNNwerW-DeWv6DbE.js +0 -8
- package/dist/c-eeMepfLm-eeMepfLm.js +0 -6
- package/dist/c4Diagram-YG6GDRKO-B8--s8xx-CZw1PsLU.js +0 -1585
- package/dist/cadence-02UX7mW8-02UX7mW8.js +0 -6
- package/dist/cairo-DM6WF2e3-BLxuUSuB.js +0 -8
- package/dist/catppuccin-frappe-D3cH2rXe-D3cH2rXe.js +0 -4
- package/dist/catppuccin-latte-C0LRGUW4-C0LRGUW4.js +0 -4
- package/dist/catppuccin-macchiato-c5wQ11TT-c5wQ11TT.js +0 -4
- package/dist/catppuccin-mocha-WMD6Qvya-WMD6Qvya.js +0 -4
- package/dist/channel-Cqk_cOiy-72hMZ_v0.js +0 -5
- package/dist/chunk-4BX2VUAB-Cb-wAjVN-DlY_dtbp.js +0 -9
- package/dist/chunk-55IACEB6-QFXfbMHG-AnxyrPT-.js +0 -8
- package/dist/chunk-B4BG7PRW-CFs53zrP-DB12fnkn.js +0 -1375
- package/dist/chunk-DI55MBZ5-CKjAOeh7-D98MsfUL.js +0 -1383
- package/dist/chunk-FMBD7UC4-B29MtLTn-tjtGIWPm.js +0 -19
- package/dist/chunk-QN33PNHL-5bU-bM6A-vK9OZVa6.js +0 -20
- package/dist/chunk-QZHKN3VN-B_Q6cMrq-78n0e61s.js +0 -15
- package/dist/chunk-TZMSLE5B-DlULRafu-BlGLxuE_.js +0 -64
- package/dist/clarity-PKm5CwqM-PKm5CwqM.js +0 -6
- package/dist/classDiagram-2ON5EDUG-DJmXfcVi-CF8YlvOv.js +0 -22
- package/dist/classDiagram-v2-WZHVMYZB-DJmXfcVi-CF8YlvOv.js +0 -22
- package/dist/clojure-CXJfHrL3-CXJfHrL3.js +0 -6
- package/dist/cmake-BJz8BOTU-BJz8BOTU.js +0 -6
- package/dist/cobol-DYTFdEK1-1eoMdnt0.js +0 -12
- package/dist/code-block-QI2IAROF-C_F85uim-MNaL7yo9.js +0 -2805
- package/dist/codeowners-Bt9yU6NX-Bt9yU6NX.js +0 -6
- package/dist/codeql-DHkodjjI-DHkodjjI.js +0 -6
- package/dist/coffee-DGBR_nr_-Cu5d6u6p.js +0 -8
- package/dist/common-lisp-EVqT9Zhp-EVqT9Zhp.js +0 -6
- package/dist/coq-B0L9upzn-B0L9upzn.js +0 -6
- package/dist/cose-bilkent-S5V4N54A-N3jM_XQd-BbbJbKzj.js +0 -2612
- package/dist/cpp-ZFnOq6fV-CkUSzFY-.js +0 -19
- package/dist/crystal-CRJyc4G--B_7jzPPy.js +0 -18
- package/dist/csharp-C7yUs7-w-C7yUs7-w.js +0 -6
- package/dist/css-CECN5uSL-CECN5uSL.js +0 -6
- package/dist/csv-CmYOceLb-DlI6xKnA.js +0 -6
- package/dist/cue-ZzumE7IT-ZzumE7IT.js +0 -6
- package/dist/cypher-jpdmjtA6-jpdmjtA6.js +0 -6
- package/dist/cytoscape.esm-ClN43hhW-Dh4GqQxb.js +0 -18836
- package/dist/d-CBagWSwH-CBagWSwH.js +0 -6
- package/dist/dagre-6UL2VRFP-CJdrtgOu-CLaqjT6l.js +0 -451
- package/dist/dark-plus-pUHDTVV0-pUHDTVV0.js +0 -4
- package/dist/dart-6ObCrKr9-6ObCrKr9.js +0 -6
- package/dist/dax-CcDT-8dH-CcDT-8dH.js +0 -6
- package/dist/defaultLocale-DcQU6Vee-C62bXCQv.js +0 -177
- package/dist/desktop-B93p9R9O-B93p9R9O.js +0 -6
- package/dist/diagram-PSM6KHXK-DSaDqHvO-DVH1Sew6.js +0 -544
- package/dist/diagram-QEK2KX5R-BbxboH_--DYDmO4S1.js +0 -224
- package/dist/diagram-S2PKOQOG-DWsCb5He--yPVUK-A.js +0 -146
- package/dist/diff-BxzP2J8R-BxzP2J8R.js +0 -6
- package/dist/docker-CsHqm9tx-CsHqm9tx.js +0 -6
- package/dist/dotenv-BMjVjUL1-BMjVjUL1.js +0 -6
- package/dist/dracula-BtZx2Kac-BtZx2Kac.js +0 -4
- package/dist/dracula-soft-BKa-aqBv-BKa-aqBv.js +0 -4
- package/dist/dream-maker-PAx17jaB-PAx17jaB.js +0 -6
- package/dist/edge-B882-fmN-CXsL8OuZ.js +0 -14
- package/dist/elixir-DRzNHQCz-EnC5QsDh.js +0 -10
- package/dist/elm-DZPAA5Qn-BCPZo0aa.js +0 -9
- package/dist/emacs-lisp-Cfxdx5D--Cfxdx5D-.js +0 -6
- package/dist/erDiagram-Q2GNP2WA-Bl0uHx93-Cm6cgw10.js +0 -844
- package/dist/erb-DB1DqdBc-CnAEHkSC.js +0 -27
- package/dist/erlang-DNcDT8Hi-Cs3llSSi.js +0 -8
- package/dist/everforest-dark-DMCBqXCK-DMCBqXCK.js +0 -4
- package/dist/everforest-light-BbXl82Em-BbXl82Em.js +0 -4
- package/dist/fennel-N4WcXuKx-N4WcXuKx.js +0 -6
- package/dist/fish-BTDEUgqH-BTDEUgqH.js +0 -6
- package/dist/flowDiagram-NV44I4VS-Dq0mXT8f-BL0sk42H.js +0 -1631
- package/dist/fluent-BMXUxfv1-BMXUxfv1.js +0 -6
- package/dist/fortran-fixed-form-DUsA-VGo-CYX4aMfD.js +0 -8
- package/dist/fortran-free-form-DPIT_jbP-DPIT_jbP.js +0 -6
- package/dist/fsharp-CYOiIVNx-D3KYyprZ.js +0 -8
- package/dist/ganttDiagram-JELNMOA3-Dj1adndm-BODWVm5T.js +0 -2702
- package/dist/gdresource-BwtMIoBm-DVtwhfL2.js +0 -10
- package/dist/gdscript-BifyeYhI-BifyeYhI.js +0 -6
- package/dist/gdshader-Bk8fF6yr-Bk8fF6yr.js +0 -6
- package/dist/genie-DzUvd7U9-DzUvd7U9.js +0 -6
- package/dist/gherkin-DHRaV0YP-DHRaV0YP.js +0 -6
- package/dist/git-commit-Bd32YZ0K-D9qSjMiw.js +0 -8
- package/dist/git-rebase-ZWUFO_T4-uqUGWt5o.js +0 -8
- package/dist/gitGraphDiagram-NY62KEGX-DIFZugA1-BsIE257G.js +0 -715
- package/dist/github-dark-DenFmJkN-DenFmJkN.js +0 -4
- package/dist/github-dark-default-BJPUVz4H-BJPUVz4H.js +0 -4
- package/dist/github-dark-dimmed-DUshB20C-DUshB20C.js +0 -4
- package/dist/github-dark-high-contrast-D3aGCnF8-D3aGCnF8.js +0 -4
- package/dist/github-light-JYsPkUQd-JYsPkUQd.js +0 -4
- package/dist/github-light-default-D99KPAby-D99KPAby.js +0 -4
- package/dist/github-light-high-contrast-BbmZE-Mp-BbmZE-Mp.js +0 -4
- package/dist/gleam-Bv284lvN-Bv284lvN.js +0 -6
- package/dist/glimmer-js-DkxNrfPT-Dr8vv_dk.js +0 -14
- package/dist/glimmer-ts-D6YZEmK_-CeJS1lkt.js +0 -14
- package/dist/glsl-CkUcVZNK-D6P60Alb.js +0 -8
- package/dist/gnuplot-yPG9-sE_-yPG9-sE_.js +0 -6
- package/dist/go-ChxJuLYK-ChxJuLYK.js +0 -6
- package/dist/graph-DB2UxkYH-Bs-uwV4G.js +0 -1190
- package/dist/graphql-CBu2ehBn-B9KpeKh4.js +0 -14
- package/dist/groovy-CJQTphOW-CJQTphOW.js +0 -6
- package/dist/gruvbox-dark-hard-C5HOtKIh-C5HOtKIh.js +0 -4
- package/dist/gruvbox-dark-medium-FVgwJHuz-FVgwJHuz.js +0 -4
- package/dist/gruvbox-dark-soft-B46F314v-B46F314v.js +0 -4
- package/dist/gruvbox-light-hard-CJD38wDZ-CJD38wDZ.js +0 -4
- package/dist/gruvbox-light-medium-BlIhMYTA-BlIhMYTA.js +0 -4
- package/dist/gruvbox-light-soft-DoPHyLVZ-DoPHyLVZ.js +0 -4
- package/dist/hack-DVWgrvc2-CFszvyOs.js +0 -12
- package/dist/haml-NZLVzu_R-6sAynSNG.js +0 -10
- package/dist/handlebars-mxStpSE7-C1GOcwW1.js +0 -14
- package/dist/haskell-WeIwNIP6-WeIwNIP6.js +0 -6
- package/dist/haxe-TztHsm5T-TztHsm5T.js +0 -6
- package/dist/hcl-D438OF-I-D438OF-I.js +0 -6
- package/dist/hjson-DYBUbqOl-DYBUbqOl.js +0 -6
- package/dist/hlsl-Bk8TCZNL-Bk8TCZNL.js +0 -6
- package/dist/houston-BDYrDoDW-BDYrDoDW.js +0 -4
- package/dist/html-B50bmoVb-BJ3eCZKL.js +0 -10
- package/dist/html-derivative-ByyNxAP5-BxLhKRHw.js +0 -10
- package/dist/http-BVIWqb92-CjnDmEd8.js +0 -19
- package/dist/hurl-B8OTiYoQ-DoRwHSAy.js +0 -17
- package/dist/hxml-GbqSQCLa-BnvJylRx.js +0 -8
- package/dist/hy-Brt5EZ7--Brt5EZ7-.js +0 -6
- package/dist/imba-CimUv-Uh-CimUv-Uh.js +0 -6
- package/dist/infoDiagram-WHAUD3N6-DPjzRs82-ChgGSBbk.js +0 -27
- package/dist/ini-BZIuRIvJ-BZIuRIvJ.js +0 -6
- package/dist/init-DjUOC4st-C8Nwz6AJ.js +0 -16
- package/dist/java-DY6VlHhP-DY6VlHhP.js +0 -6
- package/dist/javascript-C25yR2R2-C25yR2R2.js +0 -6
- package/dist/jinja-CI-LSgSv-BEWEZ83m.js +0 -13
- package/dist/jison-DdreslRX-DzaoIrEq.js +0 -8
- package/dist/journeyDiagram-XKPGCS4Q-DLrlPVyq-DYzqQ6Qu.js +0 -840
- package/dist/json-DxJze_jm-DxJze_jm.js +0 -6
- package/dist/json5-BT4Fjg39-BT4Fjg39.js +0 -6
- package/dist/jsonc-CHjZD8gR-CHjZD8gR.js +0 -6
- package/dist/jsonl-BGuvDmy9-BGuvDmy9.js +0 -6
- package/dist/jsonnet-Bx2cfsXg-Bx2cfsXg.js +0 -6
- package/dist/jssm-BcADi6EI-BcADi6EI.js +0 -6
- package/dist/jsx-BtKADgXT-BtKADgXT.js +0 -6
- package/dist/julia-ll8P6QXy-CifMye9u.js +0 -19
- package/dist/kanagawa-dragon-CiKur4Hl-CiKur4Hl.js +0 -4
- package/dist/kanagawa-lotus-BKu-smKu-BKu-smKu.js +0 -4
- package/dist/kanagawa-wave-CQwozSzG-CQwozSzG.js +0 -4
- package/dist/kanban-definition-3W4ZIXB7-BTI5yGHx-Bz8MmnxI.js +0 -724
- package/dist/katex.min-l0sNRNKZ-l0sNRNKZ.js +0 -1
- package/dist/kdl-BNOv9TC3-0Q4F1UAs.js +0 -6
- package/dist/kotlin-ByBMgTeR-ByBMgTeR.js +0 -6
- package/dist/kusto-VWFLl2T0-VWFLl2T0.js +0 -6
- package/dist/laserwave-6a00oqik-6a00oqik.js +0 -4
- package/dist/latex-DF20280u-RMy1LUrW.js +0 -9
- package/dist/layout-Q6wQN5dr-BC95Y2G0.js +0 -1727
- package/dist/lean-D5yRrexI-D5yRrexI.js +0 -6
- package/dist/less-B1GLI2Di-B1GLI2Di.js +0 -6
- package/dist/light-plus-CZuVqSLX-CZuVqSLX.js +0 -4
- package/dist/linear-UL3ZZUJv-CWZvrkAD.js +0 -277
- package/dist/liquid-CHzkx3jT-G75tv0iE.js +0 -14
- package/dist/llvm-co1rIKs3-co1rIKs3.js +0 -6
- package/dist/log-Al8wyEFV-Al8wyEFV.js +0 -6
- package/dist/logo-DBa4JDzV-DBa4JDzV.js +0 -6
- package/dist/lua-kX5WP_P5-DxLUTRud.js +0 -8
- package/dist/luau-DtBSxLyz-DtBSxLyz.js +0 -6
- package/dist/make-CsMclxtr-CsMclxtr.js +0 -6
- package/dist/markdown-CrScaQ96-CrScaQ96.js +0 -6
- package/dist/marko-ls0Jg2j8-BHrfxEh0.js +0 -14
- package/dist/material-theme-D6KBX41T-D6KBX41T.js +0 -4
- package/dist/material-theme-darker-CkRroheE-CkRroheE.js +0 -4
- package/dist/material-theme-lighter-BUBw43Yz-BUBw43Yz.js +0 -4
- package/dist/material-theme-ocean-ClGX14Ja-ClGX14Ja.js +0 -4
- package/dist/material-theme-palenight-C1RVm8K1-C1RVm8K1.js +0 -4
- package/dist/matlab-BOAaUVP0-BOAaUVP0.js +0 -6
- package/dist/mdc-DIP5_jeM-Cff0amyo.js +0 -15
- package/dist/mdx-BOhZZUJ8-BOhZZUJ8.js +0 -6
- package/dist/mermaid-B0ixDHKN-B0ixDHKN.js +0 -6
- package/dist/mermaid-NA5CF7SZ-BDJrKfjz-Cq0tva8U.js +0 -140994
- package/dist/mermaid.core-Cpfp0NBU-DQS-fLaZ.js +0 -14401
- package/dist/min-dark-C7ak0t6c-C7ak0t6c.js +0 -4
- package/dist/min-light-CKFxVcPp-CKFxVcPp.js +0 -4
- package/dist/mindmap-definition-VGOIOE7T-B6ovfeib-CXlRkpn9.js +0 -790
- package/dist/mipsasm-CTx18fBl-CTx18fBl.js +0 -6
- package/dist/mojo-BD611d7o-BD611d7o.js +0 -6
- package/dist/monokai-C1KBYcO0-C1KBYcO0.js +0 -4
- package/dist/move-F-dICmj2-F-dICmj2.js +0 -6
- package/dist/narrat-DmhDCBs--DmhDCBs-.js +0 -6
- package/dist/nextflow-DmSVRGjG-DmSVRGjG.js +0 -6
- package/dist/nginx-COxS3qoU-CvZmIOfz.js +0 -9
- package/dist/night-owl-Bm2rzalh-Bm2rzalh.js +0 -4
- package/dist/nim-CCwXZLHG-CVhjPGL5.js +0 -21
- package/dist/nix-BZK5F767-BZK5F767.js +0 -9
- package/dist/nord-CC5OiUXg-CC5OiUXg.js +0 -4
- package/dist/nushell-D8j3dhT--D8j3dhT-.js +0 -6
- package/dist/objective-c-Itk8tzmv-Itk8tzmv.js +0 -6
- package/dist/objective-cpp-DGt5UKRO-DGt5UKRO.js +0 -6
- package/dist/ocaml-eSVK32Eg-eSVK32Eg.js +0 -6
- package/dist/one-dark-pro-DTA3VF0_-DTA3VF0_.js +0 -4
- package/dist/one-light-D9sNaUtq-D9sNaUtq.js +0 -4
- package/dist/openscad-Sp5uZ6f2-Sp5uZ6f2.js +0 -6
- package/dist/ordinal-MUacOSdK-B1MUT0BL.js +0 -65
- package/dist/pascal-xy8pJNns-xy8pJNns.js +0 -6
- package/dist/perl-NvKK8p2P-DbsmNmLT.js +0 -17
- package/dist/php-CK5hNnT0-DEpqLZ_n.js +0 -19
- package/dist/pieDiagram-ADFJNKIX-Bn24elWA-iGwy_4tX.js +0 -166
- package/dist/pkl-C-zSNmaA-C-zSNmaA.js +0 -6
- package/dist/plastic-CSTz3KZp-CSTz3KZp.js +0 -4
- package/dist/plsql-pVbGZfOv-pVbGZfOv.js +0 -6
- package/dist/po-BNfHvqmm-BNfHvqmm.js +0 -6
- package/dist/poimandres-C-VADXHD-C-VADXHD.js +0 -4
- package/dist/polar-CAZahv3u-CAZahv3u.js +0 -6
- package/dist/postcss-05aHdL-n-05aHdL-n.js +0 -6
- package/dist/powerquery-DI9HkTvs-DI9HkTvs.js +0 -6
- package/dist/powershell-Clc4ydu--Clc4ydu-.js +0 -6
- package/dist/prisma-FZjmVtSl-FZjmVtSl.js +0 -6
- package/dist/prolog-C5-yg4TO-C5-yg4TO.js +0 -6
- package/dist/proto-MmCPeFAD-MmCPeFAD.js +0 -6
- package/dist/pug-XOw9Q1Ho-BO4tUzTj.js +0 -12
- package/dist/puppet-CUJHmnxV-CUJHmnxV.js +0 -6
- package/dist/purescript-rUfGld-4-rUfGld-4.js +0 -6
- package/dist/python-BFNSHbwJ-BFNSHbwJ.js +0 -6
- package/dist/qml-rTNXsquU-DeTe0b4l.js +0 -8
- package/dist/qmldir-BInDYbpo-BInDYbpo.js +0 -6
- package/dist/qss-AeJTysr_-AeJTysr_.js +0 -6
- package/dist/quadrantDiagram-AYHSOK5B-CsbmyLll-CFP8fgtI.js +0 -1030
- package/dist/r-Bm0uF0U2-Bm0uF0U2.js +0 -6
- package/dist/racket-B83wSAja-B83wSAja.js +0 -6
- package/dist/raku-nEQ4ZJJ7-nEQ4ZJJ7.js +0 -6
- package/dist/razor-CoqPuKQU-DUBs-Qe6.js +0 -12
- package/dist/red-7y8PH7HH-7y8PH7HH.js +0 -4
- package/dist/reg-m_s_Kiip-m_s_Kiip.js +0 -6
- package/dist/regexp-BazyLpPg-BazyLpPg.js +0 -6
- package/dist/rel-BcRfyd6Q-BcRfyd6Q.js +0 -6
- package/dist/requirementDiagram-UZGBJVZJ--9rfbKaz-CC8EZoyz.js +0 -854
- package/dist/riscv-Ce8MAQLP-Ce8MAQLP.js +0 -6
- package/dist/rose-pine-BKc3yVeu-BKc3yVeu.js +0 -4
- package/dist/rose-pine-dawn-BulJcPZT-BulJcPZT.js +0 -4
- package/dist/rose-pine-moon-j6jiXKV8-j6jiXKV8.js +0 -4
- package/dist/rosmsg-Cz0w1km8-Cz0w1km8.js +0 -6
- package/dist/rst-AoEjemIj-Dr7TcJwd.js +0 -36
- package/dist/ruby-CGSl8JoB-D4hDjzwe.js +0 -36
- package/dist/rust-CLzF9zIN-CLzF9zIN.js +0 -6
- package/dist/sankeyDiagram-TZEHDZUN-Cp2id-3k-DhByp8vU.js +0 -830
- package/dist/sas-fpEvgATw-D9dNv8Ej.js +0 -8
- package/dist/sass-DxHp5rTx-DxHp5rTx.js +0 -6
- package/dist/scala-D4grkFkl-D4grkFkl.js +0 -6
- package/dist/scheme-BCRWuEm4-BCRWuEm4.js +0 -6
- package/dist/scss-B1FaCqwR-DbNEJJFR.js +0 -8
- package/dist/sdbl-B7T8abf4-B7T8abf4.js +0 -6
- package/dist/sequenceDiagram-WL72ISMW-Bdoz1Co7-DcFuWrLs.js +0 -2526
- package/dist/shaderlab-Cr62-Wb4-D_jbKjpl.js +0 -8
- package/dist/shellscript-InADTalH-InADTalH.js +0 -6
- package/dist/shellsession-DiDJNQdy-BGvYrs9g.js +0 -8
- package/dist/slack-dark-i7wN4OET-i7wN4OET.js +0 -4
- package/dist/slack-ochin-ndHf0LoP-ndHf0LoP.js +0 -4
- package/dist/smalltalk-BlI1_OkM-BlI1_OkM.js +0 -6
- package/dist/snazzy-light-BlSJXAu4-BlSJXAu4.js +0 -4
- package/dist/solarized-dark-UTmkh7lw-UTmkh7lw.js +0 -4
- package/dist/solarized-light-BheCkDPT-BheCkDPT.js +0 -4
- package/dist/solidity-DUWnFhS6-DUWnFhS6.js +0 -6
- package/dist/soy-YPoZ1G2p-C1q7UQeu.js +0 -10
- package/dist/sparql-B0KWFEri-CqC-y0Su.js +0 -8
- package/dist/splunk-CRXR8A9s-CRXR8A9s.js +0 -6
- package/dist/sql-Cn_v3PB0-Cn_v3PB0.js +0 -6
- package/dist/ssh-config-DP-hNVbF-DP-hNVbF.js +0 -6
- package/dist/stata-B8c5fTjX-Bf3brRPV.js +0 -8
- package/dist/stateDiagram-FKZM4ZOC-BLHxjrc8-FBnBvaVW.js +0 -268
- package/dist/stateDiagram-v2-4FDKWEC3-CbxCwS8b-B_Pfgmu4.js +0 -21
- package/dist/stylus-CyKEU1Ej-CyKEU1Ej.js +0 -6
- package/dist/svelte-5UasyOg7-e8KUCojE.js +0 -14
- package/dist/swift-9UzSvamq-9UzSvamq.js +0 -6
- package/dist/synthwave-84-NU3C_KFZ-NU3C_KFZ.js +0 -4
- package/dist/system-verilog-BCm7smPJ-BCm7smPJ.js +0 -6
- package/dist/systemd-C-4qm6XH-C-4qm6XH.js +0 -6
- package/dist/talonscript-CFF3LF_O-CvtCkGGO.js +0 -6
- package/dist/tasl-Cg_WBUAe-Cg_WBUAe.js +0 -6
- package/dist/tcl-DN7buRTF-DN7buRTF.js +0 -6
- package/dist/templ-peLZIM2D-DkTUdVi-.js +0 -12
- package/dist/terraform-DGvcn9zM-DGvcn9zM.js +0 -6
- package/dist/tex-DpOayVob-BjP51rYh.js +0 -8
- package/dist/timeline-definition-IT6M3QCI-s3Wsbz6h-DfdfMl2Q.js +0 -805
- package/dist/tokyo-night-DP4TmcQl-DP4TmcQl.js +0 -4
- package/dist/toml-DY62mUL_-DY62mUL_.js +0 -6
- package/dist/treemap-KMMF4GRG-D_L55G0b-CANAYd5X.js +0 -15006
- package/dist/ts-tags-CWmBp2js-DrKIoTCJ.js +0 -43
- package/dist/tsv-BtvSkaG0-BtvSkaG0.js +0 -6
- package/dist/tsx-B8rCNbgL-B8rCNbgL.js +0 -6
- package/dist/turtle-_H59FV7D-_H59FV7D.js +0 -6
- package/dist/twig-Cpoho6oi-CQE9XWXP.js +0 -35
- package/dist/typescript-RycA9KXf-RycA9KXf.js +0 -6
- package/dist/typespec-DWqp-kUU-DWqp-kUU.js +0 -6
- package/dist/typst-D_1QKWns-D_1QKWns.js +0 -6
- package/dist/v-BPCNiyYe-BPCNiyYe.js +0 -6
- package/dist/vala-uxaPR7d1-uxaPR7d1.js +0 -6
- package/dist/vb-D8_c5-KN-D8_c5-KN.js +0 -6
- package/dist/verilog-B-bybjPF-B-bybjPF.js +0 -6
- package/dist/vesper-BckBta1U-BckBta1U.js +0 -4
- package/dist/vhdl-CUlNa8ac-CUlNa8ac.js +0 -6
- package/dist/viml-DsfA-sWm-DsfA-sWm.js +0 -6
- package/dist/vitesse-black-BoGvW84i-BoGvW84i.js +0 -4
- package/dist/vitesse-dark-Cym-eLtO-Cym-eLtO.js +0 -4
- package/dist/vitesse-light-CcmG315c-CcmG315c.js +0 -4
- package/dist/vue-DmFKWfEU-DXvRBLDJ.js +0 -31
- package/dist/vue-html-BB2aI7Yc-e0S8MQFq.js +0 -15
- package/dist/vue-vine-CznNap4x-DAbzn77p.js +0 -24
- package/dist/vyper-CPQuu50u-CPQuu50u.js +0 -6
- package/dist/wasm-BBXxrAl7-BBXxrAl7.js +0 -6
- package/dist/wasm-DQxwEHae-DQxwEHae.js +0 -7
- package/dist/wenyan-pbVjoM9_-pbVjoM9_.js +0 -6
- package/dist/wgsl-DY4iK1q1-DY4iK1q1.js +0 -6
- package/dist/wikitext-Z-MoUasO-Z-MoUasO.js +0 -6
- package/dist/wit-CQMQOlTg-CQMQOlTg.js +0 -6
- package/dist/wolfram-Dz4KXISs-Dz4KXISs.js +0 -6
- package/dist/xml-C2J0sS9M-IZlib8U3.js +0 -8
- package/dist/xsl-CbTBIiv3-CgleMmCH.js +0 -9
- package/dist/xychartDiagram-PRI3JC2R-D3ejwy7u-CFsnZXTL.js +0 -1345
- package/dist/yaml-DaO7k5B1-DaO7k5B1.js +0 -6
- package/dist/zenscript-CxBjpf9c-CxBjpf9c.js +0 -6
- package/dist/zig-Vm0PO9wB-Vm0PO9wB.js +0 -6
|
@@ -1,2407 +0,0 @@
|
|
|
1
|
-
import { l as Ne } from "./chunk-FMBD7UC4-B29MtLTn-tjtGIWPm.js";
|
|
2
|
-
import { aL as Bt, aQ as dt, _ as u, d as z, l as S, j as A, i as mt, aZ as Te, G as st, a_ as V, az as Jt, ar as Ie, u as et, a$ as Ce, a9 as Oe, a4 as Be, k as Ae, v as ze, B as Re, aa as Me, b0 as Pe, b1 as wt, e as je, aS as Fe, aT as We, aP as Et, aU as Ye, aV as Ue, aW as He, aX as Xe, aJ as Qt, aM as Ke, aN as Ze, aR as qt, aK as te, aY as Ge, aG as Ve, aH as Je, aI as Qe, aO as ee } from "./mermaid.core-Cpfp0NBU-DQS-fLaZ.js";
|
|
3
|
-
import { g as qe } from "./graph-DB2UxkYH-Bs-uwV4G.js";
|
|
4
|
-
import { t as tr } from "./channel-Cqk_cOiy-72hMZ_v0.js";
|
|
5
|
-
import "./mermaid-NA5CF7SZ-BDJrKfjz-Cq0tva8U.js";
|
|
6
|
-
import "react";
|
|
7
|
-
import "react-dom";
|
|
8
|
-
function er(e, t) {
|
|
9
|
-
for (var a = -1, i = e == null ? 0 : e.length; ++a < i && t(e[a], a, e) !== !1; )
|
|
10
|
-
;
|
|
11
|
-
return e;
|
|
12
|
-
}
|
|
13
|
-
function re(e) {
|
|
14
|
-
return Ve(e) ? Je(e) : Qe(e);
|
|
15
|
-
}
|
|
16
|
-
function rr(e, t) {
|
|
17
|
-
return e && Qt(t, re(t), e);
|
|
18
|
-
}
|
|
19
|
-
function ar(e, t) {
|
|
20
|
-
for (var a = -1, i = e == null ? 0 : e.length, o = 0, s = []; ++a < i; ) {
|
|
21
|
-
var r = e[a];
|
|
22
|
-
t(r, a, e) && (s[o++] = r);
|
|
23
|
-
}
|
|
24
|
-
return s;
|
|
25
|
-
}
|
|
26
|
-
function sr() {
|
|
27
|
-
return [];
|
|
28
|
-
}
|
|
29
|
-
var ir = Object.prototype, nr = ir.propertyIsEnumerable, At = Object.getOwnPropertySymbols, ae = At ? function(e) {
|
|
30
|
-
return e == null ? [] : (e = Object(e), ar(At(e), function(t) {
|
|
31
|
-
return nr.call(e, t);
|
|
32
|
-
}));
|
|
33
|
-
} : sr;
|
|
34
|
-
function or(e, t) {
|
|
35
|
-
return Qt(e, ae(e), t);
|
|
36
|
-
}
|
|
37
|
-
function lr(e, t) {
|
|
38
|
-
for (var a = -1, i = t.length, o = e.length; ++a < i; )
|
|
39
|
-
e[o + a] = t[a];
|
|
40
|
-
return e;
|
|
41
|
-
}
|
|
42
|
-
function cr(e, t, a) {
|
|
43
|
-
var i = t(e);
|
|
44
|
-
return te(e) ? i : lr(i, a(e));
|
|
45
|
-
}
|
|
46
|
-
function dr(e) {
|
|
47
|
-
return cr(e, re, ae);
|
|
48
|
-
}
|
|
49
|
-
var hr = Object.prototype, gr = hr.hasOwnProperty;
|
|
50
|
-
function ur(e) {
|
|
51
|
-
var t = e.length, a = new e.constructor(t);
|
|
52
|
-
return t && typeof e[0] == "string" && gr.call(e, "index") && (a.index = e.index, a.input = e.input), a;
|
|
53
|
-
}
|
|
54
|
-
function yr(e, t) {
|
|
55
|
-
var a = e.buffer;
|
|
56
|
-
return new e.constructor(a, e.byteOffset, e.byteLength);
|
|
57
|
-
}
|
|
58
|
-
var pr = /\w*$/;
|
|
59
|
-
function br(e) {
|
|
60
|
-
var t = new e.constructor(e.source, pr.exec(e));
|
|
61
|
-
return t.lastIndex = e.lastIndex, t;
|
|
62
|
-
}
|
|
63
|
-
var zt = Bt ? Bt.prototype : void 0, Rt = zt ? zt.valueOf : void 0;
|
|
64
|
-
function xr(e) {
|
|
65
|
-
return Rt ? Object(Rt.call(e)) : {};
|
|
66
|
-
}
|
|
67
|
-
var fr = "[object Boolean]", mr = "[object Date]", wr = "[object Map]", Sr = "[object Number]", Lr = "[object RegExp]", kr = "[object Set]", _r = "[object String]", vr = "[object Symbol]", Er = "[object ArrayBuffer]", Dr = "[object DataView]", $r = "[object Float32Array]", Nr = "[object Float64Array]", Tr = "[object Int8Array]", Ir = "[object Int16Array]", Cr = "[object Int32Array]", Or = "[object Uint8Array]", Br = "[object Uint8ClampedArray]", Ar = "[object Uint16Array]", zr = "[object Uint32Array]";
|
|
68
|
-
function Rr(e, t, a) {
|
|
69
|
-
var i = e.constructor;
|
|
70
|
-
switch (t) {
|
|
71
|
-
case Er:
|
|
72
|
-
return Ze(e);
|
|
73
|
-
case fr:
|
|
74
|
-
case mr:
|
|
75
|
-
return new i(+e);
|
|
76
|
-
case Dr:
|
|
77
|
-
return yr(e);
|
|
78
|
-
case $r:
|
|
79
|
-
case Nr:
|
|
80
|
-
case Tr:
|
|
81
|
-
case Ir:
|
|
82
|
-
case Cr:
|
|
83
|
-
case Or:
|
|
84
|
-
case Br:
|
|
85
|
-
case Ar:
|
|
86
|
-
case zr:
|
|
87
|
-
return Ke(e, a);
|
|
88
|
-
case wr:
|
|
89
|
-
return new i();
|
|
90
|
-
case Sr:
|
|
91
|
-
case _r:
|
|
92
|
-
return new i(e);
|
|
93
|
-
case Lr:
|
|
94
|
-
return br(e);
|
|
95
|
-
case kr:
|
|
96
|
-
return new i();
|
|
97
|
-
case vr:
|
|
98
|
-
return xr(e);
|
|
99
|
-
}
|
|
100
|
-
}
|
|
101
|
-
var Mr = "[object Map]";
|
|
102
|
-
function Pr(e) {
|
|
103
|
-
return ee(e) && Et(e) == Mr;
|
|
104
|
-
}
|
|
105
|
-
var Mt = dt && dt.isMap, jr = Mt ? qt(Mt) : Pr, Fr = "[object Set]";
|
|
106
|
-
function Wr(e) {
|
|
107
|
-
return ee(e) && Et(e) == Fr;
|
|
108
|
-
}
|
|
109
|
-
var Pt = dt && dt.isSet, Yr = Pt ? qt(Pt) : Wr, Ur = 1, se = "[object Arguments]", Hr = "[object Array]", Xr = "[object Boolean]", Kr = "[object Date]", Zr = "[object Error]", ie = "[object Function]", Gr = "[object GeneratorFunction]", Vr = "[object Map]", Jr = "[object Number]", ne = "[object Object]", Qr = "[object RegExp]", qr = "[object Set]", ta = "[object String]", ea = "[object Symbol]", ra = "[object WeakMap]", aa = "[object ArrayBuffer]", sa = "[object DataView]", ia = "[object Float32Array]", na = "[object Float64Array]", oa = "[object Int8Array]", la = "[object Int16Array]", ca = "[object Int32Array]", da = "[object Uint8Array]", ha = "[object Uint8ClampedArray]", ga = "[object Uint16Array]", ua = "[object Uint32Array]", $ = {};
|
|
110
|
-
$[se] = $[Hr] = $[aa] = $[sa] = $[Xr] = $[Kr] = $[ia] = $[na] = $[oa] = $[la] = $[ca] = $[Vr] = $[Jr] = $[ne] = $[Qr] = $[qr] = $[ta] = $[ea] = $[da] = $[ha] = $[ga] = $[ua] = !0;
|
|
111
|
-
$[Zr] = $[ie] = $[ra] = !1;
|
|
112
|
-
function lt(e, t, a, i, o, s) {
|
|
113
|
-
var r, n = t & Ur;
|
|
114
|
-
if (r !== void 0)
|
|
115
|
-
return r;
|
|
116
|
-
if (!Fe(e))
|
|
117
|
-
return e;
|
|
118
|
-
var l = te(e);
|
|
119
|
-
if (l)
|
|
120
|
-
return r = ur(e), We(e, r);
|
|
121
|
-
var h = Et(e), y = h == ie || h == Gr;
|
|
122
|
-
if (Ye(e))
|
|
123
|
-
return Ue(e, n);
|
|
124
|
-
if (h == ne || h == se || y && !o)
|
|
125
|
-
return r = y ? {} : He(e), or(e, rr(r, e));
|
|
126
|
-
if (!$[h])
|
|
127
|
-
return o ? e : {};
|
|
128
|
-
r = Rr(e, h, n), s || (s = new Xe());
|
|
129
|
-
var b = s.get(e);
|
|
130
|
-
if (b)
|
|
131
|
-
return b;
|
|
132
|
-
s.set(e, r), Yr(e) ? e.forEach(function(m) {
|
|
133
|
-
r.add(lt(m, t, a, m, e, s));
|
|
134
|
-
}) : jr(e) && e.forEach(function(m, k) {
|
|
135
|
-
r.set(k, lt(m, t, a, k, e, s));
|
|
136
|
-
});
|
|
137
|
-
var x = dr, L = l ? void 0 : x(e);
|
|
138
|
-
return er(L || e, function(m, k) {
|
|
139
|
-
L && (k = m, m = e[k]), Ge(r, k, lt(m, t, a, k, e, s));
|
|
140
|
-
}), r;
|
|
141
|
-
}
|
|
142
|
-
var ya = 4;
|
|
143
|
-
function pa(e) {
|
|
144
|
-
return lt(e, ya);
|
|
145
|
-
}
|
|
146
|
-
var St = function() {
|
|
147
|
-
var e = /* @__PURE__ */ u(function(D, d, p, f) {
|
|
148
|
-
for (p = p || {}, f = D.length; f--; p[D[f]] = d)
|
|
149
|
-
;
|
|
150
|
-
return p;
|
|
151
|
-
}, "o"), t = [1, 15], a = [1, 7], i = [1, 13], o = [1, 14], s = [1, 19], r = [1, 16], n = [1, 17], l = [1, 18], h = [8, 30], y = [8, 10, 21, 28, 29, 30, 31, 39, 43, 46], b = [1, 23], x = [1, 24], L = [8, 10, 15, 16, 21, 28, 29, 30, 31, 39, 43, 46], m = [8, 10, 15, 16, 21, 27, 28, 29, 30, 31, 39, 43, 46], k = [1, 49], _ = {
|
|
152
|
-
trace: /* @__PURE__ */ u(function() {
|
|
153
|
-
}, "trace"),
|
|
154
|
-
yy: {},
|
|
155
|
-
symbols_: { error: 2, spaceLines: 3, SPACELINE: 4, NL: 5, separator: 6, SPACE: 7, EOF: 8, start: 9, BLOCK_DIAGRAM_KEY: 10, document: 11, stop: 12, statement: 13, link: 14, LINK: 15, START_LINK: 16, LINK_LABEL: 17, STR: 18, nodeStatement: 19, columnsStatement: 20, SPACE_BLOCK: 21, blockStatement: 22, classDefStatement: 23, cssClassStatement: 24, styleStatement: 25, node: 26, SIZE: 27, COLUMNS: 28, "id-block": 29, end: 30, NODE_ID: 31, nodeShapeNLabel: 32, dirList: 33, DIR: 34, NODE_DSTART: 35, NODE_DEND: 36, BLOCK_ARROW_START: 37, BLOCK_ARROW_END: 38, classDef: 39, CLASSDEF_ID: 40, CLASSDEF_STYLEOPTS: 41, DEFAULT: 42, class: 43, CLASSENTITY_IDS: 44, STYLECLASS: 45, style: 46, STYLE_ENTITY_IDS: 47, STYLE_DEFINITION_DATA: 48, $accept: 0, $end: 1 },
|
|
156
|
-
terminals_: { 2: "error", 4: "SPACELINE", 5: "NL", 7: "SPACE", 8: "EOF", 10: "BLOCK_DIAGRAM_KEY", 15: "LINK", 16: "START_LINK", 17: "LINK_LABEL", 18: "STR", 21: "SPACE_BLOCK", 27: "SIZE", 28: "COLUMNS", 29: "id-block", 30: "end", 31: "NODE_ID", 34: "DIR", 35: "NODE_DSTART", 36: "NODE_DEND", 37: "BLOCK_ARROW_START", 38: "BLOCK_ARROW_END", 39: "classDef", 40: "CLASSDEF_ID", 41: "CLASSDEF_STYLEOPTS", 42: "DEFAULT", 43: "class", 44: "CLASSENTITY_IDS", 45: "STYLECLASS", 46: "style", 47: "STYLE_ENTITY_IDS", 48: "STYLE_DEFINITION_DATA" },
|
|
157
|
-
productions_: [0, [3, 1], [3, 2], [3, 2], [6, 1], [6, 1], [6, 1], [9, 3], [12, 1], [12, 1], [12, 2], [12, 2], [11, 1], [11, 2], [14, 1], [14, 4], [13, 1], [13, 1], [13, 1], [13, 1], [13, 1], [13, 1], [13, 1], [19, 3], [19, 2], [19, 1], [20, 1], [22, 4], [22, 3], [26, 1], [26, 2], [33, 1], [33, 2], [32, 3], [32, 4], [23, 3], [23, 3], [24, 3], [25, 3]],
|
|
158
|
-
performAction: /* @__PURE__ */ u(function(D, d, p, f, E, c, w) {
|
|
159
|
-
var g = c.length - 1;
|
|
160
|
-
switch (E) {
|
|
161
|
-
case 4:
|
|
162
|
-
f.getLogger().debug("Rule: separator (NL) ");
|
|
163
|
-
break;
|
|
164
|
-
case 5:
|
|
165
|
-
f.getLogger().debug("Rule: separator (Space) ");
|
|
166
|
-
break;
|
|
167
|
-
case 6:
|
|
168
|
-
f.getLogger().debug("Rule: separator (EOF) ");
|
|
169
|
-
break;
|
|
170
|
-
case 7:
|
|
171
|
-
f.getLogger().debug("Rule: hierarchy: ", c[g - 1]), f.setHierarchy(c[g - 1]);
|
|
172
|
-
break;
|
|
173
|
-
case 8:
|
|
174
|
-
f.getLogger().debug("Stop NL ");
|
|
175
|
-
break;
|
|
176
|
-
case 9:
|
|
177
|
-
f.getLogger().debug("Stop EOF ");
|
|
178
|
-
break;
|
|
179
|
-
case 10:
|
|
180
|
-
f.getLogger().debug("Stop NL2 ");
|
|
181
|
-
break;
|
|
182
|
-
case 11:
|
|
183
|
-
f.getLogger().debug("Stop EOF2 ");
|
|
184
|
-
break;
|
|
185
|
-
case 12:
|
|
186
|
-
f.getLogger().debug("Rule: statement: ", c[g]), typeof c[g].length == "number" ? this.$ = c[g] : this.$ = [c[g]];
|
|
187
|
-
break;
|
|
188
|
-
case 13:
|
|
189
|
-
f.getLogger().debug("Rule: statement #2: ", c[g - 1]), this.$ = [c[g - 1]].concat(c[g]);
|
|
190
|
-
break;
|
|
191
|
-
case 14:
|
|
192
|
-
f.getLogger().debug("Rule: link: ", c[g], D), this.$ = { edgeTypeStr: c[g], label: "" };
|
|
193
|
-
break;
|
|
194
|
-
case 15:
|
|
195
|
-
f.getLogger().debug("Rule: LABEL link: ", c[g - 3], c[g - 1], c[g]), this.$ = { edgeTypeStr: c[g], label: c[g - 1] };
|
|
196
|
-
break;
|
|
197
|
-
case 18:
|
|
198
|
-
const B = parseInt(c[g]), P = f.generateId();
|
|
199
|
-
this.$ = { id: P, type: "space", label: "", width: B, children: [] };
|
|
200
|
-
break;
|
|
201
|
-
case 23:
|
|
202
|
-
f.getLogger().debug("Rule: (nodeStatement link node) ", c[g - 2], c[g - 1], c[g], " typestr: ", c[g - 1].edgeTypeStr);
|
|
203
|
-
const R = f.edgeStrToEdgeData(c[g - 1].edgeTypeStr);
|
|
204
|
-
this.$ = [
|
|
205
|
-
{ id: c[g - 2].id, label: c[g - 2].label, type: c[g - 2].type, directions: c[g - 2].directions },
|
|
206
|
-
{ id: c[g - 2].id + "-" + c[g].id, start: c[g - 2].id, end: c[g].id, label: c[g - 1].label, type: "edge", directions: c[g].directions, arrowTypeEnd: R, arrowTypeStart: "arrow_open" },
|
|
207
|
-
{ id: c[g].id, label: c[g].label, type: f.typeStr2Type(c[g].typeStr), directions: c[g].directions }
|
|
208
|
-
];
|
|
209
|
-
break;
|
|
210
|
-
case 24:
|
|
211
|
-
f.getLogger().debug("Rule: nodeStatement (abc88 node size) ", c[g - 1], c[g]), this.$ = { id: c[g - 1].id, label: c[g - 1].label, type: f.typeStr2Type(c[g - 1].typeStr), directions: c[g - 1].directions, widthInColumns: parseInt(c[g], 10) };
|
|
212
|
-
break;
|
|
213
|
-
case 25:
|
|
214
|
-
f.getLogger().debug("Rule: nodeStatement (node) ", c[g]), this.$ = { id: c[g].id, label: c[g].label, type: f.typeStr2Type(c[g].typeStr), directions: c[g].directions, widthInColumns: 1 };
|
|
215
|
-
break;
|
|
216
|
-
case 26:
|
|
217
|
-
f.getLogger().debug("APA123", this ? this : "na"), f.getLogger().debug("COLUMNS: ", c[g]), this.$ = { type: "column-setting", columns: c[g] === "auto" ? -1 : parseInt(c[g]) };
|
|
218
|
-
break;
|
|
219
|
-
case 27:
|
|
220
|
-
f.getLogger().debug("Rule: id-block statement : ", c[g - 2], c[g - 1]), f.generateId(), this.$ = { ...c[g - 2], type: "composite", children: c[g - 1] };
|
|
221
|
-
break;
|
|
222
|
-
case 28:
|
|
223
|
-
f.getLogger().debug("Rule: blockStatement : ", c[g - 2], c[g - 1], c[g]);
|
|
224
|
-
const W = f.generateId();
|
|
225
|
-
this.$ = { id: W, type: "composite", label: "", children: c[g - 1] };
|
|
226
|
-
break;
|
|
227
|
-
case 29:
|
|
228
|
-
f.getLogger().debug("Rule: node (NODE_ID separator): ", c[g]), this.$ = { id: c[g] };
|
|
229
|
-
break;
|
|
230
|
-
case 30:
|
|
231
|
-
f.getLogger().debug("Rule: node (NODE_ID nodeShapeNLabel separator): ", c[g - 1], c[g]), this.$ = { id: c[g - 1], label: c[g].label, typeStr: c[g].typeStr, directions: c[g].directions };
|
|
232
|
-
break;
|
|
233
|
-
case 31:
|
|
234
|
-
f.getLogger().debug("Rule: dirList: ", c[g]), this.$ = [c[g]];
|
|
235
|
-
break;
|
|
236
|
-
case 32:
|
|
237
|
-
f.getLogger().debug("Rule: dirList: ", c[g - 1], c[g]), this.$ = [c[g - 1]].concat(c[g]);
|
|
238
|
-
break;
|
|
239
|
-
case 33:
|
|
240
|
-
f.getLogger().debug("Rule: nodeShapeNLabel: ", c[g - 2], c[g - 1], c[g]), this.$ = { typeStr: c[g - 2] + c[g], label: c[g - 1] };
|
|
241
|
-
break;
|
|
242
|
-
case 34:
|
|
243
|
-
f.getLogger().debug("Rule: BLOCK_ARROW nodeShapeNLabel: ", c[g - 3], c[g - 2], " #3:", c[g - 1], c[g]), this.$ = { typeStr: c[g - 3] + c[g], label: c[g - 2], directions: c[g - 1] };
|
|
244
|
-
break;
|
|
245
|
-
case 35:
|
|
246
|
-
case 36:
|
|
247
|
-
this.$ = { type: "classDef", id: c[g - 1].trim(), css: c[g].trim() };
|
|
248
|
-
break;
|
|
249
|
-
case 37:
|
|
250
|
-
this.$ = { type: "applyClass", id: c[g - 1].trim(), styleClass: c[g].trim() };
|
|
251
|
-
break;
|
|
252
|
-
case 38:
|
|
253
|
-
this.$ = { type: "applyStyles", id: c[g - 1].trim(), stylesStr: c[g].trim() };
|
|
254
|
-
break;
|
|
255
|
-
}
|
|
256
|
-
}, "anonymous"),
|
|
257
|
-
table: [{ 9: 1, 10: [1, 2] }, { 1: [3] }, { 10: t, 11: 3, 13: 4, 19: 5, 20: 6, 21: a, 22: 8, 23: 9, 24: 10, 25: 11, 26: 12, 28: i, 29: o, 31: s, 39: r, 43: n, 46: l }, { 8: [1, 20] }, e(h, [2, 12], { 13: 4, 19: 5, 20: 6, 22: 8, 23: 9, 24: 10, 25: 11, 26: 12, 11: 21, 10: t, 21: a, 28: i, 29: o, 31: s, 39: r, 43: n, 46: l }), e(y, [2, 16], { 14: 22, 15: b, 16: x }), e(y, [2, 17]), e(y, [2, 18]), e(y, [2, 19]), e(y, [2, 20]), e(y, [2, 21]), e(y, [2, 22]), e(L, [2, 25], { 27: [1, 25] }), e(y, [2, 26]), { 19: 26, 26: 12, 31: s }, { 10: t, 11: 27, 13: 4, 19: 5, 20: 6, 21: a, 22: 8, 23: 9, 24: 10, 25: 11, 26: 12, 28: i, 29: o, 31: s, 39: r, 43: n, 46: l }, { 40: [1, 28], 42: [1, 29] }, { 44: [1, 30] }, { 47: [1, 31] }, e(m, [2, 29], { 32: 32, 35: [1, 33], 37: [1, 34] }), { 1: [2, 7] }, e(h, [2, 13]), { 26: 35, 31: s }, { 31: [2, 14] }, { 17: [1, 36] }, e(L, [2, 24]), { 10: t, 11: 37, 13: 4, 14: 22, 15: b, 16: x, 19: 5, 20: 6, 21: a, 22: 8, 23: 9, 24: 10, 25: 11, 26: 12, 28: i, 29: o, 31: s, 39: r, 43: n, 46: l }, { 30: [1, 38] }, { 41: [1, 39] }, { 41: [1, 40] }, { 45: [1, 41] }, { 48: [1, 42] }, e(m, [2, 30]), { 18: [1, 43] }, { 18: [1, 44] }, e(L, [2, 23]), { 18: [1, 45] }, { 30: [1, 46] }, e(y, [2, 28]), e(y, [2, 35]), e(y, [2, 36]), e(y, [2, 37]), e(y, [2, 38]), { 36: [1, 47] }, { 33: 48, 34: k }, { 15: [1, 50] }, e(y, [2, 27]), e(m, [2, 33]), { 38: [1, 51] }, { 33: 52, 34: k, 38: [2, 31] }, { 31: [2, 15] }, e(m, [2, 34]), { 38: [2, 32] }],
|
|
258
|
-
defaultActions: { 20: [2, 7], 23: [2, 14], 50: [2, 15], 52: [2, 32] },
|
|
259
|
-
parseError: /* @__PURE__ */ u(function(D, d) {
|
|
260
|
-
if (d.recoverable)
|
|
261
|
-
this.trace(D);
|
|
262
|
-
else {
|
|
263
|
-
var p = new Error(D);
|
|
264
|
-
throw p.hash = d, p;
|
|
265
|
-
}
|
|
266
|
-
}, "parseError"),
|
|
267
|
-
parse: /* @__PURE__ */ u(function(D) {
|
|
268
|
-
var d = this, p = [0], f = [], E = [null], c = [], w = this.table, g = "", B = 0, P = 0, R = 2, W = 1, K = c.slice.call(arguments, 1), T = Object.create(this.lexer), Q = { yy: {} };
|
|
269
|
-
for (var pt in this.yy)
|
|
270
|
-
Object.prototype.hasOwnProperty.call(this.yy, pt) && (Q.yy[pt] = this.yy[pt]);
|
|
271
|
-
T.setInput(D, Q.yy), Q.yy.lexer = T, Q.yy.parser = this, typeof T.yylloc > "u" && (T.yylloc = {});
|
|
272
|
-
var bt = T.yylloc;
|
|
273
|
-
c.push(bt);
|
|
274
|
-
var De = T.options && T.options.ranges;
|
|
275
|
-
typeof Q.yy.parseError == "function" ? this.parseError = Q.yy.parseError : this.parseError = Object.getPrototypeOf(this).parseError;
|
|
276
|
-
function $e(Y) {
|
|
277
|
-
p.length = p.length - 2 * Y, E.length = E.length - Y, c.length = c.length - Y;
|
|
278
|
-
}
|
|
279
|
-
u($e, "popStack");
|
|
280
|
-
function Ct() {
|
|
281
|
-
var Y;
|
|
282
|
-
return Y = f.pop() || T.lex() || W, typeof Y != "number" && (Y instanceof Array && (f = Y, Y = f.pop()), Y = d.symbols_[Y] || Y), Y;
|
|
283
|
-
}
|
|
284
|
-
u(Ct, "lex");
|
|
285
|
-
for (var F, q, H, xt, tt = {}, it, J, Ot, nt; ; ) {
|
|
286
|
-
if (q = p[p.length - 1], this.defaultActions[q] ? H = this.defaultActions[q] : ((F === null || typeof F > "u") && (F = Ct()), H = w[q] && w[q][F]), typeof H > "u" || !H.length || !H[0]) {
|
|
287
|
-
var ft = "";
|
|
288
|
-
nt = [];
|
|
289
|
-
for (it in w[q])
|
|
290
|
-
this.terminals_[it] && it > R && nt.push("'" + this.terminals_[it] + "'");
|
|
291
|
-
T.showPosition ? ft = "Parse error on line " + (B + 1) + `:
|
|
292
|
-
` + T.showPosition() + `
|
|
293
|
-
Expecting ` + nt.join(", ") + ", got '" + (this.terminals_[F] || F) + "'" : ft = "Parse error on line " + (B + 1) + ": Unexpected " + (F == W ? "end of input" : "'" + (this.terminals_[F] || F) + "'"), this.parseError(ft, {
|
|
294
|
-
text: T.match,
|
|
295
|
-
token: this.terminals_[F] || F,
|
|
296
|
-
line: T.yylineno,
|
|
297
|
-
loc: bt,
|
|
298
|
-
expected: nt
|
|
299
|
-
});
|
|
300
|
-
}
|
|
301
|
-
if (H[0] instanceof Array && H.length > 1)
|
|
302
|
-
throw new Error("Parse Error: multiple actions possible at state: " + q + ", token: " + F);
|
|
303
|
-
switch (H[0]) {
|
|
304
|
-
case 1:
|
|
305
|
-
p.push(F), E.push(T.yytext), c.push(T.yylloc), p.push(H[1]), F = null, P = T.yyleng, g = T.yytext, B = T.yylineno, bt = T.yylloc;
|
|
306
|
-
break;
|
|
307
|
-
case 2:
|
|
308
|
-
if (J = this.productions_[H[1]][1], tt.$ = E[E.length - J], tt._$ = {
|
|
309
|
-
first_line: c[c.length - (J || 1)].first_line,
|
|
310
|
-
last_line: c[c.length - 1].last_line,
|
|
311
|
-
first_column: c[c.length - (J || 1)].first_column,
|
|
312
|
-
last_column: c[c.length - 1].last_column
|
|
313
|
-
}, De && (tt._$.range = [
|
|
314
|
-
c[c.length - (J || 1)].range[0],
|
|
315
|
-
c[c.length - 1].range[1]
|
|
316
|
-
]), xt = this.performAction.apply(tt, [
|
|
317
|
-
g,
|
|
318
|
-
P,
|
|
319
|
-
B,
|
|
320
|
-
Q.yy,
|
|
321
|
-
H[1],
|
|
322
|
-
E,
|
|
323
|
-
c
|
|
324
|
-
].concat(K)), typeof xt < "u")
|
|
325
|
-
return xt;
|
|
326
|
-
J && (p = p.slice(0, -1 * J * 2), E = E.slice(0, -1 * J), c = c.slice(0, -1 * J)), p.push(this.productions_[H[1]][0]), E.push(tt.$), c.push(tt._$), Ot = w[p[p.length - 2]][p[p.length - 1]], p.push(Ot);
|
|
327
|
-
break;
|
|
328
|
-
case 3:
|
|
329
|
-
return !0;
|
|
330
|
-
}
|
|
331
|
-
}
|
|
332
|
-
return !0;
|
|
333
|
-
}, "parse")
|
|
334
|
-
}, N = /* @__PURE__ */ function() {
|
|
335
|
-
var D = {
|
|
336
|
-
EOF: 1,
|
|
337
|
-
parseError: /* @__PURE__ */ u(function(d, p) {
|
|
338
|
-
if (this.yy.parser)
|
|
339
|
-
this.yy.parser.parseError(d, p);
|
|
340
|
-
else
|
|
341
|
-
throw new Error(d);
|
|
342
|
-
}, "parseError"),
|
|
343
|
-
// resets the lexer, sets new input
|
|
344
|
-
setInput: /* @__PURE__ */ u(function(d, p) {
|
|
345
|
-
return this.yy = p || this.yy || {}, this._input = d, this._more = this._backtrack = this.done = !1, this.yylineno = this.yyleng = 0, this.yytext = this.matched = this.match = "", this.conditionStack = ["INITIAL"], this.yylloc = {
|
|
346
|
-
first_line: 1,
|
|
347
|
-
first_column: 0,
|
|
348
|
-
last_line: 1,
|
|
349
|
-
last_column: 0
|
|
350
|
-
}, this.options.ranges && (this.yylloc.range = [0, 0]), this.offset = 0, this;
|
|
351
|
-
}, "setInput"),
|
|
352
|
-
// consumes and returns one char from the input
|
|
353
|
-
input: /* @__PURE__ */ u(function() {
|
|
354
|
-
var d = this._input[0];
|
|
355
|
-
this.yytext += d, this.yyleng++, this.offset++, this.match += d, this.matched += d;
|
|
356
|
-
var p = d.match(/(?:\r\n?|\n).*/g);
|
|
357
|
-
return p ? (this.yylineno++, this.yylloc.last_line++) : this.yylloc.last_column++, this.options.ranges && this.yylloc.range[1]++, this._input = this._input.slice(1), d;
|
|
358
|
-
}, "input"),
|
|
359
|
-
// unshifts one char (or a string) into the input
|
|
360
|
-
unput: /* @__PURE__ */ u(function(d) {
|
|
361
|
-
var p = d.length, f = d.split(/(?:\r\n?|\n)/g);
|
|
362
|
-
this._input = d + this._input, this.yytext = this.yytext.substr(0, this.yytext.length - p), this.offset -= p;
|
|
363
|
-
var E = this.match.split(/(?:\r\n?|\n)/g);
|
|
364
|
-
this.match = this.match.substr(0, this.match.length - 1), this.matched = this.matched.substr(0, this.matched.length - 1), f.length - 1 && (this.yylineno -= f.length - 1);
|
|
365
|
-
var c = this.yylloc.range;
|
|
366
|
-
return this.yylloc = {
|
|
367
|
-
first_line: this.yylloc.first_line,
|
|
368
|
-
last_line: this.yylineno + 1,
|
|
369
|
-
first_column: this.yylloc.first_column,
|
|
370
|
-
last_column: f ? (f.length === E.length ? this.yylloc.first_column : 0) + E[E.length - f.length].length - f[0].length : this.yylloc.first_column - p
|
|
371
|
-
}, this.options.ranges && (this.yylloc.range = [c[0], c[0] + this.yyleng - p]), this.yyleng = this.yytext.length, this;
|
|
372
|
-
}, "unput"),
|
|
373
|
-
// When called from action, caches matched text and appends it on next action
|
|
374
|
-
more: /* @__PURE__ */ u(function() {
|
|
375
|
-
return this._more = !0, this;
|
|
376
|
-
}, "more"),
|
|
377
|
-
// When called from action, signals the lexer that this rule fails to match the input, so the next matching rule (regex) should be tested instead.
|
|
378
|
-
reject: /* @__PURE__ */ u(function() {
|
|
379
|
-
if (this.options.backtrack_lexer)
|
|
380
|
-
this._backtrack = !0;
|
|
381
|
-
else
|
|
382
|
-
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).
|
|
383
|
-
` + this.showPosition(), {
|
|
384
|
-
text: "",
|
|
385
|
-
token: null,
|
|
386
|
-
line: this.yylineno
|
|
387
|
-
});
|
|
388
|
-
return this;
|
|
389
|
-
}, "reject"),
|
|
390
|
-
// retain first n characters of the match
|
|
391
|
-
less: /* @__PURE__ */ u(function(d) {
|
|
392
|
-
this.unput(this.match.slice(d));
|
|
393
|
-
}, "less"),
|
|
394
|
-
// displays already matched input, i.e. for error messages
|
|
395
|
-
pastInput: /* @__PURE__ */ u(function() {
|
|
396
|
-
var d = this.matched.substr(0, this.matched.length - this.match.length);
|
|
397
|
-
return (d.length > 20 ? "..." : "") + d.substr(-20).replace(/\n/g, "");
|
|
398
|
-
}, "pastInput"),
|
|
399
|
-
// displays upcoming input, i.e. for error messages
|
|
400
|
-
upcomingInput: /* @__PURE__ */ u(function() {
|
|
401
|
-
var d = this.match;
|
|
402
|
-
return d.length < 20 && (d += this._input.substr(0, 20 - d.length)), (d.substr(0, 20) + (d.length > 20 ? "..." : "")).replace(/\n/g, "");
|
|
403
|
-
}, "upcomingInput"),
|
|
404
|
-
// displays the character position where the lexing error occurred, i.e. for error messages
|
|
405
|
-
showPosition: /* @__PURE__ */ u(function() {
|
|
406
|
-
var d = this.pastInput(), p = new Array(d.length + 1).join("-");
|
|
407
|
-
return d + this.upcomingInput() + `
|
|
408
|
-
` + p + "^";
|
|
409
|
-
}, "showPosition"),
|
|
410
|
-
// test the lexed token: return FALSE when not a match, otherwise return token
|
|
411
|
-
test_match: /* @__PURE__ */ u(function(d, p) {
|
|
412
|
-
var f, E, c;
|
|
413
|
-
if (this.options.backtrack_lexer && (c = {
|
|
414
|
-
yylineno: this.yylineno,
|
|
415
|
-
yylloc: {
|
|
416
|
-
first_line: this.yylloc.first_line,
|
|
417
|
-
last_line: this.last_line,
|
|
418
|
-
first_column: this.yylloc.first_column,
|
|
419
|
-
last_column: this.yylloc.last_column
|
|
420
|
-
},
|
|
421
|
-
yytext: this.yytext,
|
|
422
|
-
match: this.match,
|
|
423
|
-
matches: this.matches,
|
|
424
|
-
matched: this.matched,
|
|
425
|
-
yyleng: this.yyleng,
|
|
426
|
-
offset: this.offset,
|
|
427
|
-
_more: this._more,
|
|
428
|
-
_input: this._input,
|
|
429
|
-
yy: this.yy,
|
|
430
|
-
conditionStack: this.conditionStack.slice(0),
|
|
431
|
-
done: this.done
|
|
432
|
-
}, this.options.ranges && (c.yylloc.range = this.yylloc.range.slice(0))), E = d[0].match(/(?:\r\n?|\n).*/g), E && (this.yylineno += E.length), this.yylloc = {
|
|
433
|
-
first_line: this.yylloc.last_line,
|
|
434
|
-
last_line: this.yylineno + 1,
|
|
435
|
-
first_column: this.yylloc.last_column,
|
|
436
|
-
last_column: E ? E[E.length - 1].length - E[E.length - 1].match(/\r?\n?/)[0].length : this.yylloc.last_column + d[0].length
|
|
437
|
-
}, this.yytext += d[0], this.match += d[0], this.matches = d, this.yyleng = this.yytext.length, this.options.ranges && (this.yylloc.range = [this.offset, this.offset += this.yyleng]), this._more = !1, this._backtrack = !1, this._input = this._input.slice(d[0].length), this.matched += d[0], f = this.performAction.call(this, this.yy, this, p, this.conditionStack[this.conditionStack.length - 1]), this.done && this._input && (this.done = !1), f)
|
|
438
|
-
return f;
|
|
439
|
-
if (this._backtrack) {
|
|
440
|
-
for (var w in c)
|
|
441
|
-
this[w] = c[w];
|
|
442
|
-
return !1;
|
|
443
|
-
}
|
|
444
|
-
return !1;
|
|
445
|
-
}, "test_match"),
|
|
446
|
-
// return next match in input
|
|
447
|
-
next: /* @__PURE__ */ u(function() {
|
|
448
|
-
if (this.done)
|
|
449
|
-
return this.EOF;
|
|
450
|
-
this._input || (this.done = !0);
|
|
451
|
-
var d, p, f, E;
|
|
452
|
-
this._more || (this.yytext = "", this.match = "");
|
|
453
|
-
for (var c = this._currentRules(), w = 0; w < c.length; w++)
|
|
454
|
-
if (f = this._input.match(this.rules[c[w]]), f && (!p || f[0].length > p[0].length)) {
|
|
455
|
-
if (p = f, E = w, this.options.backtrack_lexer) {
|
|
456
|
-
if (d = this.test_match(f, c[w]), d !== !1)
|
|
457
|
-
return d;
|
|
458
|
-
if (this._backtrack) {
|
|
459
|
-
p = !1;
|
|
460
|
-
continue;
|
|
461
|
-
} else
|
|
462
|
-
return !1;
|
|
463
|
-
} else if (!this.options.flex)
|
|
464
|
-
break;
|
|
465
|
-
}
|
|
466
|
-
return p ? (d = this.test_match(p, c[E]), d !== !1 ? d : !1) : this._input === "" ? this.EOF : this.parseError("Lexical error on line " + (this.yylineno + 1) + `. Unrecognized text.
|
|
467
|
-
` + this.showPosition(), {
|
|
468
|
-
text: "",
|
|
469
|
-
token: null,
|
|
470
|
-
line: this.yylineno
|
|
471
|
-
});
|
|
472
|
-
}, "next"),
|
|
473
|
-
// return next match that has a token
|
|
474
|
-
lex: /* @__PURE__ */ u(function() {
|
|
475
|
-
var d = this.next();
|
|
476
|
-
return d || this.lex();
|
|
477
|
-
}, "lex"),
|
|
478
|
-
// activates a new lexer condition state (pushes the new lexer condition state onto the condition stack)
|
|
479
|
-
begin: /* @__PURE__ */ u(function(d) {
|
|
480
|
-
this.conditionStack.push(d);
|
|
481
|
-
}, "begin"),
|
|
482
|
-
// pop the previously active lexer condition state off the condition stack
|
|
483
|
-
popState: /* @__PURE__ */ u(function() {
|
|
484
|
-
var d = this.conditionStack.length - 1;
|
|
485
|
-
return d > 0 ? this.conditionStack.pop() : this.conditionStack[0];
|
|
486
|
-
}, "popState"),
|
|
487
|
-
// produce the lexer rule set which is active for the currently active lexer condition state
|
|
488
|
-
_currentRules: /* @__PURE__ */ u(function() {
|
|
489
|
-
return this.conditionStack.length && this.conditionStack[this.conditionStack.length - 1] ? this.conditions[this.conditionStack[this.conditionStack.length - 1]].rules : this.conditions.INITIAL.rules;
|
|
490
|
-
}, "_currentRules"),
|
|
491
|
-
// return the currently active lexer condition state; when an index argument is provided it produces the N-th previous condition state, if available
|
|
492
|
-
topState: /* @__PURE__ */ u(function(d) {
|
|
493
|
-
return d = this.conditionStack.length - 1 - Math.abs(d || 0), d >= 0 ? this.conditionStack[d] : "INITIAL";
|
|
494
|
-
}, "topState"),
|
|
495
|
-
// alias for begin(condition)
|
|
496
|
-
pushState: /* @__PURE__ */ u(function(d) {
|
|
497
|
-
this.begin(d);
|
|
498
|
-
}, "pushState"),
|
|
499
|
-
// return the number of states currently on the stack
|
|
500
|
-
stateStackSize: /* @__PURE__ */ u(function() {
|
|
501
|
-
return this.conditionStack.length;
|
|
502
|
-
}, "stateStackSize"),
|
|
503
|
-
options: {},
|
|
504
|
-
performAction: /* @__PURE__ */ u(function(d, p, f, E) {
|
|
505
|
-
switch (f) {
|
|
506
|
-
case 0:
|
|
507
|
-
return d.getLogger().debug("Found block-beta"), 10;
|
|
508
|
-
case 1:
|
|
509
|
-
return d.getLogger().debug("Found id-block"), 29;
|
|
510
|
-
case 2:
|
|
511
|
-
return d.getLogger().debug("Found block"), 10;
|
|
512
|
-
case 3:
|
|
513
|
-
d.getLogger().debug(".", p.yytext);
|
|
514
|
-
break;
|
|
515
|
-
case 4:
|
|
516
|
-
d.getLogger().debug("_", p.yytext);
|
|
517
|
-
break;
|
|
518
|
-
case 5:
|
|
519
|
-
return 5;
|
|
520
|
-
case 6:
|
|
521
|
-
return p.yytext = -1, 28;
|
|
522
|
-
case 7:
|
|
523
|
-
return p.yytext = p.yytext.replace(/columns\s+/, ""), d.getLogger().debug("COLUMNS (LEX)", p.yytext), 28;
|
|
524
|
-
case 8:
|
|
525
|
-
this.pushState("md_string");
|
|
526
|
-
break;
|
|
527
|
-
case 9:
|
|
528
|
-
return "MD_STR";
|
|
529
|
-
case 10:
|
|
530
|
-
this.popState();
|
|
531
|
-
break;
|
|
532
|
-
case 11:
|
|
533
|
-
this.pushState("string");
|
|
534
|
-
break;
|
|
535
|
-
case 12:
|
|
536
|
-
d.getLogger().debug("LEX: POPPING STR:", p.yytext), this.popState();
|
|
537
|
-
break;
|
|
538
|
-
case 13:
|
|
539
|
-
return d.getLogger().debug("LEX: STR end:", p.yytext), "STR";
|
|
540
|
-
case 14:
|
|
541
|
-
return p.yytext = p.yytext.replace(/space\:/, ""), d.getLogger().debug("SPACE NUM (LEX)", p.yytext), 21;
|
|
542
|
-
case 15:
|
|
543
|
-
return p.yytext = "1", d.getLogger().debug("COLUMNS (LEX)", p.yytext), 21;
|
|
544
|
-
case 16:
|
|
545
|
-
return 42;
|
|
546
|
-
case 17:
|
|
547
|
-
return "LINKSTYLE";
|
|
548
|
-
case 18:
|
|
549
|
-
return "INTERPOLATE";
|
|
550
|
-
case 19:
|
|
551
|
-
return this.pushState("CLASSDEF"), 39;
|
|
552
|
-
case 20:
|
|
553
|
-
return this.popState(), this.pushState("CLASSDEFID"), "DEFAULT_CLASSDEF_ID";
|
|
554
|
-
case 21:
|
|
555
|
-
return this.popState(), this.pushState("CLASSDEFID"), 40;
|
|
556
|
-
case 22:
|
|
557
|
-
return this.popState(), 41;
|
|
558
|
-
case 23:
|
|
559
|
-
return this.pushState("CLASS"), 43;
|
|
560
|
-
case 24:
|
|
561
|
-
return this.popState(), this.pushState("CLASS_STYLE"), 44;
|
|
562
|
-
case 25:
|
|
563
|
-
return this.popState(), 45;
|
|
564
|
-
case 26:
|
|
565
|
-
return this.pushState("STYLE_STMNT"), 46;
|
|
566
|
-
case 27:
|
|
567
|
-
return this.popState(), this.pushState("STYLE_DEFINITION"), 47;
|
|
568
|
-
case 28:
|
|
569
|
-
return this.popState(), 48;
|
|
570
|
-
case 29:
|
|
571
|
-
return this.pushState("acc_title"), "acc_title";
|
|
572
|
-
case 30:
|
|
573
|
-
return this.popState(), "acc_title_value";
|
|
574
|
-
case 31:
|
|
575
|
-
return this.pushState("acc_descr"), "acc_descr";
|
|
576
|
-
case 32:
|
|
577
|
-
return this.popState(), "acc_descr_value";
|
|
578
|
-
case 33:
|
|
579
|
-
this.pushState("acc_descr_multiline");
|
|
580
|
-
break;
|
|
581
|
-
case 34:
|
|
582
|
-
this.popState();
|
|
583
|
-
break;
|
|
584
|
-
case 35:
|
|
585
|
-
return "acc_descr_multiline_value";
|
|
586
|
-
case 36:
|
|
587
|
-
return 30;
|
|
588
|
-
case 37:
|
|
589
|
-
return this.popState(), d.getLogger().debug("Lex: (("), "NODE_DEND";
|
|
590
|
-
case 38:
|
|
591
|
-
return this.popState(), d.getLogger().debug("Lex: (("), "NODE_DEND";
|
|
592
|
-
case 39:
|
|
593
|
-
return this.popState(), d.getLogger().debug("Lex: ))"), "NODE_DEND";
|
|
594
|
-
case 40:
|
|
595
|
-
return this.popState(), d.getLogger().debug("Lex: (("), "NODE_DEND";
|
|
596
|
-
case 41:
|
|
597
|
-
return this.popState(), d.getLogger().debug("Lex: (("), "NODE_DEND";
|
|
598
|
-
case 42:
|
|
599
|
-
return this.popState(), d.getLogger().debug("Lex: (-"), "NODE_DEND";
|
|
600
|
-
case 43:
|
|
601
|
-
return this.popState(), d.getLogger().debug("Lex: -)"), "NODE_DEND";
|
|
602
|
-
case 44:
|
|
603
|
-
return this.popState(), d.getLogger().debug("Lex: (("), "NODE_DEND";
|
|
604
|
-
case 45:
|
|
605
|
-
return this.popState(), d.getLogger().debug("Lex: ]]"), "NODE_DEND";
|
|
606
|
-
case 46:
|
|
607
|
-
return this.popState(), d.getLogger().debug("Lex: ("), "NODE_DEND";
|
|
608
|
-
case 47:
|
|
609
|
-
return this.popState(), d.getLogger().debug("Lex: ])"), "NODE_DEND";
|
|
610
|
-
case 48:
|
|
611
|
-
return this.popState(), d.getLogger().debug("Lex: /]"), "NODE_DEND";
|
|
612
|
-
case 49:
|
|
613
|
-
return this.popState(), d.getLogger().debug("Lex: /]"), "NODE_DEND";
|
|
614
|
-
case 50:
|
|
615
|
-
return this.popState(), d.getLogger().debug("Lex: )]"), "NODE_DEND";
|
|
616
|
-
case 51:
|
|
617
|
-
return this.popState(), d.getLogger().debug("Lex: )"), "NODE_DEND";
|
|
618
|
-
case 52:
|
|
619
|
-
return this.popState(), d.getLogger().debug("Lex: ]>"), "NODE_DEND";
|
|
620
|
-
case 53:
|
|
621
|
-
return this.popState(), d.getLogger().debug("Lex: ]"), "NODE_DEND";
|
|
622
|
-
case 54:
|
|
623
|
-
return d.getLogger().debug("Lexa: -)"), this.pushState("NODE"), 35;
|
|
624
|
-
case 55:
|
|
625
|
-
return d.getLogger().debug("Lexa: (-"), this.pushState("NODE"), 35;
|
|
626
|
-
case 56:
|
|
627
|
-
return d.getLogger().debug("Lexa: ))"), this.pushState("NODE"), 35;
|
|
628
|
-
case 57:
|
|
629
|
-
return d.getLogger().debug("Lexa: )"), this.pushState("NODE"), 35;
|
|
630
|
-
case 58:
|
|
631
|
-
return d.getLogger().debug("Lex: ((("), this.pushState("NODE"), 35;
|
|
632
|
-
case 59:
|
|
633
|
-
return d.getLogger().debug("Lexa: )"), this.pushState("NODE"), 35;
|
|
634
|
-
case 60:
|
|
635
|
-
return d.getLogger().debug("Lexa: )"), this.pushState("NODE"), 35;
|
|
636
|
-
case 61:
|
|
637
|
-
return d.getLogger().debug("Lexa: )"), this.pushState("NODE"), 35;
|
|
638
|
-
case 62:
|
|
639
|
-
return d.getLogger().debug("Lexc: >"), this.pushState("NODE"), 35;
|
|
640
|
-
case 63:
|
|
641
|
-
return d.getLogger().debug("Lexa: (["), this.pushState("NODE"), 35;
|
|
642
|
-
case 64:
|
|
643
|
-
return d.getLogger().debug("Lexa: )"), this.pushState("NODE"), 35;
|
|
644
|
-
case 65:
|
|
645
|
-
return this.pushState("NODE"), 35;
|
|
646
|
-
case 66:
|
|
647
|
-
return this.pushState("NODE"), 35;
|
|
648
|
-
case 67:
|
|
649
|
-
return this.pushState("NODE"), 35;
|
|
650
|
-
case 68:
|
|
651
|
-
return this.pushState("NODE"), 35;
|
|
652
|
-
case 69:
|
|
653
|
-
return this.pushState("NODE"), 35;
|
|
654
|
-
case 70:
|
|
655
|
-
return this.pushState("NODE"), 35;
|
|
656
|
-
case 71:
|
|
657
|
-
return this.pushState("NODE"), 35;
|
|
658
|
-
case 72:
|
|
659
|
-
return d.getLogger().debug("Lexa: ["), this.pushState("NODE"), 35;
|
|
660
|
-
case 73:
|
|
661
|
-
return this.pushState("BLOCK_ARROW"), d.getLogger().debug("LEX ARR START"), 37;
|
|
662
|
-
case 74:
|
|
663
|
-
return d.getLogger().debug("Lex: NODE_ID", p.yytext), 31;
|
|
664
|
-
case 75:
|
|
665
|
-
return d.getLogger().debug("Lex: EOF", p.yytext), 8;
|
|
666
|
-
case 76:
|
|
667
|
-
this.pushState("md_string");
|
|
668
|
-
break;
|
|
669
|
-
case 77:
|
|
670
|
-
this.pushState("md_string");
|
|
671
|
-
break;
|
|
672
|
-
case 78:
|
|
673
|
-
return "NODE_DESCR";
|
|
674
|
-
case 79:
|
|
675
|
-
this.popState();
|
|
676
|
-
break;
|
|
677
|
-
case 80:
|
|
678
|
-
d.getLogger().debug("Lex: Starting string"), this.pushState("string");
|
|
679
|
-
break;
|
|
680
|
-
case 81:
|
|
681
|
-
d.getLogger().debug("LEX ARR: Starting string"), this.pushState("string");
|
|
682
|
-
break;
|
|
683
|
-
case 82:
|
|
684
|
-
return d.getLogger().debug("LEX: NODE_DESCR:", p.yytext), "NODE_DESCR";
|
|
685
|
-
case 83:
|
|
686
|
-
d.getLogger().debug("LEX POPPING"), this.popState();
|
|
687
|
-
break;
|
|
688
|
-
case 84:
|
|
689
|
-
d.getLogger().debug("Lex: =>BAE"), this.pushState("ARROW_DIR");
|
|
690
|
-
break;
|
|
691
|
-
case 85:
|
|
692
|
-
return p.yytext = p.yytext.replace(/^,\s*/, ""), d.getLogger().debug("Lex (right): dir:", p.yytext), "DIR";
|
|
693
|
-
case 86:
|
|
694
|
-
return p.yytext = p.yytext.replace(/^,\s*/, ""), d.getLogger().debug("Lex (left):", p.yytext), "DIR";
|
|
695
|
-
case 87:
|
|
696
|
-
return p.yytext = p.yytext.replace(/^,\s*/, ""), d.getLogger().debug("Lex (x):", p.yytext), "DIR";
|
|
697
|
-
case 88:
|
|
698
|
-
return p.yytext = p.yytext.replace(/^,\s*/, ""), d.getLogger().debug("Lex (y):", p.yytext), "DIR";
|
|
699
|
-
case 89:
|
|
700
|
-
return p.yytext = p.yytext.replace(/^,\s*/, ""), d.getLogger().debug("Lex (up):", p.yytext), "DIR";
|
|
701
|
-
case 90:
|
|
702
|
-
return p.yytext = p.yytext.replace(/^,\s*/, ""), d.getLogger().debug("Lex (down):", p.yytext), "DIR";
|
|
703
|
-
case 91:
|
|
704
|
-
return p.yytext = "]>", d.getLogger().debug("Lex (ARROW_DIR end):", p.yytext), this.popState(), this.popState(), "BLOCK_ARROW_END";
|
|
705
|
-
case 92:
|
|
706
|
-
return d.getLogger().debug("Lex: LINK", "#" + p.yytext + "#"), 15;
|
|
707
|
-
case 93:
|
|
708
|
-
return d.getLogger().debug("Lex: LINK", p.yytext), 15;
|
|
709
|
-
case 94:
|
|
710
|
-
return d.getLogger().debug("Lex: LINK", p.yytext), 15;
|
|
711
|
-
case 95:
|
|
712
|
-
return d.getLogger().debug("Lex: LINK", p.yytext), 15;
|
|
713
|
-
case 96:
|
|
714
|
-
return d.getLogger().debug("Lex: START_LINK", p.yytext), this.pushState("LLABEL"), 16;
|
|
715
|
-
case 97:
|
|
716
|
-
return d.getLogger().debug("Lex: START_LINK", p.yytext), this.pushState("LLABEL"), 16;
|
|
717
|
-
case 98:
|
|
718
|
-
return d.getLogger().debug("Lex: START_LINK", p.yytext), this.pushState("LLABEL"), 16;
|
|
719
|
-
case 99:
|
|
720
|
-
this.pushState("md_string");
|
|
721
|
-
break;
|
|
722
|
-
case 100:
|
|
723
|
-
return d.getLogger().debug("Lex: Starting string"), this.pushState("string"), "LINK_LABEL";
|
|
724
|
-
case 101:
|
|
725
|
-
return this.popState(), d.getLogger().debug("Lex: LINK", "#" + p.yytext + "#"), 15;
|
|
726
|
-
case 102:
|
|
727
|
-
return this.popState(), d.getLogger().debug("Lex: LINK", p.yytext), 15;
|
|
728
|
-
case 103:
|
|
729
|
-
return this.popState(), d.getLogger().debug("Lex: LINK", p.yytext), 15;
|
|
730
|
-
case 104:
|
|
731
|
-
return d.getLogger().debug("Lex: COLON", p.yytext), p.yytext = p.yytext.slice(1), 27;
|
|
732
|
-
}
|
|
733
|
-
}, "anonymous"),
|
|
734
|
-
rules: [/^(?:block-beta\b)/, /^(?:block:)/, /^(?:block\b)/, /^(?:[\s]+)/, /^(?:[\n]+)/, /^(?:((\u000D\u000A)|(\u000A)))/, /^(?:columns\s+auto\b)/, /^(?:columns\s+[\d]+)/, /^(?:["][`])/, /^(?:[^`"]+)/, /^(?:[`]["])/, /^(?:["])/, /^(?:["])/, /^(?:[^"]*)/, /^(?:space[:]\d+)/, /^(?:space\b)/, /^(?:default\b)/, /^(?:linkStyle\b)/, /^(?:interpolate\b)/, /^(?:classDef\s+)/, /^(?:DEFAULT\s+)/, /^(?:\w+\s+)/, /^(?:[^\n]*)/, /^(?:class\s+)/, /^(?:(\w+)+((,\s*\w+)*))/, /^(?:[^\n]*)/, /^(?:style\s+)/, /^(?:(\w+)+((,\s*\w+)*))/, /^(?:[^\n]*)/, /^(?:accTitle\s*:\s*)/, /^(?:(?!\n||)*[^\n]*)/, /^(?:accDescr\s*:\s*)/, /^(?:(?!\n||)*[^\n]*)/, /^(?:accDescr\s*\{\s*)/, /^(?:[\}])/, /^(?:[^\}]*)/, /^(?:end\b\s*)/, /^(?:\(\(\()/, /^(?:\)\)\))/, /^(?:[\)]\))/, /^(?:\}\})/, /^(?:\})/, /^(?:\(-)/, /^(?:-\))/, /^(?:\(\()/, /^(?:\]\])/, /^(?:\()/, /^(?:\]\))/, /^(?:\\\])/, /^(?:\/\])/, /^(?:\)\])/, /^(?:[\)])/, /^(?:\]>)/, /^(?:[\]])/, /^(?:-\))/, /^(?:\(-)/, /^(?:\)\))/, /^(?:\))/, /^(?:\(\(\()/, /^(?:\(\()/, /^(?:\{\{)/, /^(?:\{)/, /^(?:>)/, /^(?:\(\[)/, /^(?:\()/, /^(?:\[\[)/, /^(?:\[\|)/, /^(?:\[\()/, /^(?:\)\)\))/, /^(?:\[\\)/, /^(?:\[\/)/, /^(?:\[\\)/, /^(?:\[)/, /^(?:<\[)/, /^(?:[^\(\[\n\-\)\{\}\s\<\>:]+)/, /^(?:$)/, /^(?:["][`])/, /^(?:["][`])/, /^(?:[^`"]+)/, /^(?:[`]["])/, /^(?:["])/, /^(?:["])/, /^(?:[^"]+)/, /^(?:["])/, /^(?:\]>\s*\()/, /^(?:,?\s*right\s*)/, /^(?:,?\s*left\s*)/, /^(?:,?\s*x\s*)/, /^(?:,?\s*y\s*)/, /^(?:,?\s*up\s*)/, /^(?:,?\s*down\s*)/, /^(?:\)\s*)/, /^(?:\s*[xo<]?--+[-xo>]\s*)/, /^(?:\s*[xo<]?==+[=xo>]\s*)/, /^(?:\s*[xo<]?-?\.+-[xo>]?\s*)/, /^(?:\s*~~[\~]+\s*)/, /^(?:\s*[xo<]?--\s*)/, /^(?:\s*[xo<]?==\s*)/, /^(?:\s*[xo<]?-\.\s*)/, /^(?:["][`])/, /^(?:["])/, /^(?:\s*[xo<]?--+[-xo>]\s*)/, /^(?:\s*[xo<]?==+[=xo>]\s*)/, /^(?:\s*[xo<]?-?\.+-[xo>]?\s*)/, /^(?::\d+)/],
|
|
735
|
-
conditions: { STYLE_DEFINITION: { rules: [28], inclusive: !1 }, STYLE_STMNT: { rules: [27], inclusive: !1 }, CLASSDEFID: { rules: [22], inclusive: !1 }, CLASSDEF: { rules: [20, 21], inclusive: !1 }, CLASS_STYLE: { rules: [25], inclusive: !1 }, CLASS: { rules: [24], inclusive: !1 }, LLABEL: { rules: [99, 100, 101, 102, 103], inclusive: !1 }, ARROW_DIR: { rules: [85, 86, 87, 88, 89, 90, 91], inclusive: !1 }, BLOCK_ARROW: { rules: [76, 81, 84], inclusive: !1 }, NODE: { rules: [37, 38, 39, 40, 41, 42, 43, 44, 45, 46, 47, 48, 49, 50, 51, 52, 53, 77, 80], inclusive: !1 }, md_string: { rules: [9, 10, 78, 79], inclusive: !1 }, space: { rules: [], inclusive: !1 }, string: { rules: [12, 13, 82, 83], inclusive: !1 }, acc_descr_multiline: { rules: [34, 35], inclusive: !1 }, acc_descr: { rules: [32], inclusive: !1 }, acc_title: { rules: [30], inclusive: !1 }, INITIAL: { rules: [0, 1, 2, 3, 4, 5, 6, 7, 8, 11, 14, 15, 16, 17, 18, 19, 23, 26, 29, 31, 33, 36, 54, 55, 56, 57, 58, 59, 60, 61, 62, 63, 64, 65, 66, 67, 68, 69, 70, 71, 72, 73, 74, 75, 92, 93, 94, 95, 96, 97, 98, 104], inclusive: !0 } }
|
|
736
|
-
};
|
|
737
|
-
return D;
|
|
738
|
-
}();
|
|
739
|
-
_.lexer = N;
|
|
740
|
-
function v() {
|
|
741
|
-
this.yy = {};
|
|
742
|
-
}
|
|
743
|
-
return u(v, "Parser"), v.prototype = _, _.Parser = v, new v();
|
|
744
|
-
}();
|
|
745
|
-
St.parser = St;
|
|
746
|
-
var ba = St, Z = /* @__PURE__ */ new Map(), Dt = [], Lt = /* @__PURE__ */ new Map(), jt = "color", Ft = "fill", xa = "bgFill", oe = ",", fa = z(), ht = /* @__PURE__ */ new Map(), ma = /* @__PURE__ */ u((e) => je.sanitizeText(e, fa), "sanitizeText"), wa = /* @__PURE__ */ u(function(e, t = "") {
|
|
747
|
-
let a = ht.get(e);
|
|
748
|
-
a || (a = { id: e, styles: [], textStyles: [] }, ht.set(e, a)), t != null && t.split(oe).forEach((i) => {
|
|
749
|
-
const o = i.replace(/([^;]*);/, "$1").trim();
|
|
750
|
-
if (RegExp(jt).exec(i)) {
|
|
751
|
-
const s = o.replace(Ft, xa).replace(jt, Ft);
|
|
752
|
-
a.textStyles.push(s);
|
|
753
|
-
}
|
|
754
|
-
a.styles.push(o);
|
|
755
|
-
});
|
|
756
|
-
}, "addStyleClass"), Sa = /* @__PURE__ */ u(function(e, t = "") {
|
|
757
|
-
const a = Z.get(e);
|
|
758
|
-
t != null && (a.styles = t.split(oe));
|
|
759
|
-
}, "addStyle2Node"), La = /* @__PURE__ */ u(function(e, t) {
|
|
760
|
-
e.split(",").forEach(function(a) {
|
|
761
|
-
let i = Z.get(a);
|
|
762
|
-
if (i === void 0) {
|
|
763
|
-
const o = a.trim();
|
|
764
|
-
i = { id: o, type: "na", children: [] }, Z.set(o, i);
|
|
765
|
-
}
|
|
766
|
-
i.classes || (i.classes = []), i.classes.push(t);
|
|
767
|
-
});
|
|
768
|
-
}, "setCssClass"), le = /* @__PURE__ */ u((e, t) => {
|
|
769
|
-
const a = e.flat(), i = [], o = a.find((r) => (r == null ? void 0 : r.type) === "column-setting"), s = (o == null ? void 0 : o.columns) ?? -1;
|
|
770
|
-
for (const r of a) {
|
|
771
|
-
if (typeof s == "number" && s > 0 && r.type !== "column-setting" && typeof r.widthInColumns == "number" && r.widthInColumns > s && S.warn(
|
|
772
|
-
`Block ${r.id} width ${r.widthInColumns} exceeds configured column width ${s}`
|
|
773
|
-
), r.label && (r.label = ma(r.label)), r.type === "classDef") {
|
|
774
|
-
wa(r.id, r.css);
|
|
775
|
-
continue;
|
|
776
|
-
}
|
|
777
|
-
if (r.type === "applyClass") {
|
|
778
|
-
La(r.id, (r == null ? void 0 : r.styleClass) ?? "");
|
|
779
|
-
continue;
|
|
780
|
-
}
|
|
781
|
-
if (r.type === "applyStyles") {
|
|
782
|
-
r != null && r.stylesStr && Sa(r.id, r == null ? void 0 : r.stylesStr);
|
|
783
|
-
continue;
|
|
784
|
-
}
|
|
785
|
-
if (r.type === "column-setting")
|
|
786
|
-
t.columns = r.columns ?? -1;
|
|
787
|
-
else if (r.type === "edge") {
|
|
788
|
-
const n = (Lt.get(r.id) ?? 0) + 1;
|
|
789
|
-
Lt.set(r.id, n), r.id = n + "-" + r.id, Dt.push(r);
|
|
790
|
-
} else {
|
|
791
|
-
r.label || (r.type === "composite" ? r.label = "" : r.label = r.id);
|
|
792
|
-
const n = Z.get(r.id);
|
|
793
|
-
if (n === void 0 ? Z.set(r.id, r) : (r.type !== "na" && (n.type = r.type), r.label !== r.id && (n.label = r.label)), r.children && le(r.children, r), r.type === "space") {
|
|
794
|
-
const l = r.width ?? 1;
|
|
795
|
-
for (let h = 0; h < l; h++) {
|
|
796
|
-
const y = pa(r);
|
|
797
|
-
y.id = y.id + "-" + h, Z.set(y.id, y), i.push(y);
|
|
798
|
-
}
|
|
799
|
-
} else
|
|
800
|
-
n === void 0 && i.push(r);
|
|
801
|
-
}
|
|
802
|
-
}
|
|
803
|
-
t.children = i;
|
|
804
|
-
}, "populateBlockDatabase"), $t = [], at = { id: "root", type: "composite", children: [], columns: -1 }, ka = /* @__PURE__ */ u(() => {
|
|
805
|
-
S.debug("Clear called"), ze(), at = { id: "root", type: "composite", children: [], columns: -1 }, Z = /* @__PURE__ */ new Map([["root", at]]), $t = [], ht = /* @__PURE__ */ new Map(), Dt = [], Lt = /* @__PURE__ */ new Map();
|
|
806
|
-
}, "clear");
|
|
807
|
-
function ce(e) {
|
|
808
|
-
switch (S.debug("typeStr2Type", e), e) {
|
|
809
|
-
case "[]":
|
|
810
|
-
return "square";
|
|
811
|
-
case "()":
|
|
812
|
-
return S.debug("we have a round"), "round";
|
|
813
|
-
case "(())":
|
|
814
|
-
return "circle";
|
|
815
|
-
case ">]":
|
|
816
|
-
return "rect_left_inv_arrow";
|
|
817
|
-
case "{}":
|
|
818
|
-
return "diamond";
|
|
819
|
-
case "{{}}":
|
|
820
|
-
return "hexagon";
|
|
821
|
-
case "([])":
|
|
822
|
-
return "stadium";
|
|
823
|
-
case "[[]]":
|
|
824
|
-
return "subroutine";
|
|
825
|
-
case "[()]":
|
|
826
|
-
return "cylinder";
|
|
827
|
-
case "((()))":
|
|
828
|
-
return "doublecircle";
|
|
829
|
-
case "[//]":
|
|
830
|
-
return "lean_right";
|
|
831
|
-
case "[\\\\]":
|
|
832
|
-
return "lean_left";
|
|
833
|
-
case "[/\\]":
|
|
834
|
-
return "trapezoid";
|
|
835
|
-
case "[\\/]":
|
|
836
|
-
return "inv_trapezoid";
|
|
837
|
-
case "<[]>":
|
|
838
|
-
return "block_arrow";
|
|
839
|
-
default:
|
|
840
|
-
return "na";
|
|
841
|
-
}
|
|
842
|
-
}
|
|
843
|
-
u(ce, "typeStr2Type");
|
|
844
|
-
function de(e) {
|
|
845
|
-
switch (S.debug("typeStr2Type", e), e) {
|
|
846
|
-
case "==":
|
|
847
|
-
return "thick";
|
|
848
|
-
default:
|
|
849
|
-
return "normal";
|
|
850
|
-
}
|
|
851
|
-
}
|
|
852
|
-
u(de, "edgeTypeStr2Type");
|
|
853
|
-
function he(e) {
|
|
854
|
-
switch (e.replace(/^[\s-]+|[\s-]+$/g, "")) {
|
|
855
|
-
case "x":
|
|
856
|
-
return "arrow_cross";
|
|
857
|
-
case "o":
|
|
858
|
-
return "arrow_circle";
|
|
859
|
-
case ">":
|
|
860
|
-
return "arrow_point";
|
|
861
|
-
default:
|
|
862
|
-
return "";
|
|
863
|
-
}
|
|
864
|
-
}
|
|
865
|
-
u(he, "edgeStrToEdgeData");
|
|
866
|
-
var Wt = 0, _a = /* @__PURE__ */ u(() => (Wt++, "id-" + Math.random().toString(36).substr(2, 12) + "-" + Wt), "generateId"), va = /* @__PURE__ */ u((e) => {
|
|
867
|
-
at.children = e, le(e, at), $t = at.children;
|
|
868
|
-
}, "setHierarchy"), Ea = /* @__PURE__ */ u((e) => {
|
|
869
|
-
const t = Z.get(e);
|
|
870
|
-
return t ? t.columns ? t.columns : t.children ? t.children.length : -1 : -1;
|
|
871
|
-
}, "getColumns"), Da = /* @__PURE__ */ u(() => [...Z.values()], "getBlocksFlat"), $a = /* @__PURE__ */ u(() => $t || [], "getBlocks"), Na = /* @__PURE__ */ u(() => Dt, "getEdges"), Ta = /* @__PURE__ */ u((e) => Z.get(e), "getBlock"), Ia = /* @__PURE__ */ u((e) => {
|
|
872
|
-
Z.set(e.id, e);
|
|
873
|
-
}, "setBlock"), Ca = /* @__PURE__ */ u(() => S, "getLogger"), Oa = /* @__PURE__ */ u(function() {
|
|
874
|
-
return ht;
|
|
875
|
-
}, "getClasses"), Ba = {
|
|
876
|
-
getConfig: /* @__PURE__ */ u(() => st().block, "getConfig"),
|
|
877
|
-
typeStr2Type: ce,
|
|
878
|
-
edgeTypeStr2Type: de,
|
|
879
|
-
edgeStrToEdgeData: he,
|
|
880
|
-
getLogger: Ca,
|
|
881
|
-
getBlocksFlat: Da,
|
|
882
|
-
getBlocks: $a,
|
|
883
|
-
getEdges: Na,
|
|
884
|
-
setHierarchy: va,
|
|
885
|
-
getBlock: Ta,
|
|
886
|
-
setBlock: Ia,
|
|
887
|
-
getColumns: Ea,
|
|
888
|
-
getClasses: Oa,
|
|
889
|
-
clear: ka,
|
|
890
|
-
generateId: _a
|
|
891
|
-
}, Aa = Ba, ot = /* @__PURE__ */ u((e, t) => {
|
|
892
|
-
const a = tr, i = a(e, "r"), o = a(e, "g"), s = a(e, "b");
|
|
893
|
-
return Re(i, o, s, t);
|
|
894
|
-
}, "fade"), za = /* @__PURE__ */ u((e) => `.label {
|
|
895
|
-
font-family: ${e.fontFamily};
|
|
896
|
-
color: ${e.nodeTextColor || e.textColor};
|
|
897
|
-
}
|
|
898
|
-
.cluster-label text {
|
|
899
|
-
fill: ${e.titleColor};
|
|
900
|
-
}
|
|
901
|
-
.cluster-label span,p {
|
|
902
|
-
color: ${e.titleColor};
|
|
903
|
-
}
|
|
904
|
-
|
|
905
|
-
|
|
906
|
-
|
|
907
|
-
.label text,span,p {
|
|
908
|
-
fill: ${e.nodeTextColor || e.textColor};
|
|
909
|
-
color: ${e.nodeTextColor || e.textColor};
|
|
910
|
-
}
|
|
911
|
-
|
|
912
|
-
.node rect,
|
|
913
|
-
.node circle,
|
|
914
|
-
.node ellipse,
|
|
915
|
-
.node polygon,
|
|
916
|
-
.node path {
|
|
917
|
-
fill: ${e.mainBkg};
|
|
918
|
-
stroke: ${e.nodeBorder};
|
|
919
|
-
stroke-width: 1px;
|
|
920
|
-
}
|
|
921
|
-
.flowchart-label text {
|
|
922
|
-
text-anchor: middle;
|
|
923
|
-
}
|
|
924
|
-
// .flowchart-label .text-outer-tspan {
|
|
925
|
-
// text-anchor: middle;
|
|
926
|
-
// }
|
|
927
|
-
// .flowchart-label .text-inner-tspan {
|
|
928
|
-
// text-anchor: start;
|
|
929
|
-
// }
|
|
930
|
-
|
|
931
|
-
.node .label {
|
|
932
|
-
text-align: center;
|
|
933
|
-
}
|
|
934
|
-
.node.clickable {
|
|
935
|
-
cursor: pointer;
|
|
936
|
-
}
|
|
937
|
-
|
|
938
|
-
.arrowheadPath {
|
|
939
|
-
fill: ${e.arrowheadColor};
|
|
940
|
-
}
|
|
941
|
-
|
|
942
|
-
.edgePath .path {
|
|
943
|
-
stroke: ${e.lineColor};
|
|
944
|
-
stroke-width: 2.0px;
|
|
945
|
-
}
|
|
946
|
-
|
|
947
|
-
.flowchart-link {
|
|
948
|
-
stroke: ${e.lineColor};
|
|
949
|
-
fill: none;
|
|
950
|
-
}
|
|
951
|
-
|
|
952
|
-
.edgeLabel {
|
|
953
|
-
background-color: ${e.edgeLabelBackground};
|
|
954
|
-
rect {
|
|
955
|
-
opacity: 0.5;
|
|
956
|
-
background-color: ${e.edgeLabelBackground};
|
|
957
|
-
fill: ${e.edgeLabelBackground};
|
|
958
|
-
}
|
|
959
|
-
text-align: center;
|
|
960
|
-
}
|
|
961
|
-
|
|
962
|
-
/* For html labels only */
|
|
963
|
-
.labelBkg {
|
|
964
|
-
background-color: ${ot(e.edgeLabelBackground, 0.5)};
|
|
965
|
-
// background-color:
|
|
966
|
-
}
|
|
967
|
-
|
|
968
|
-
.node .cluster {
|
|
969
|
-
// fill: ${ot(e.mainBkg, 0.5)};
|
|
970
|
-
fill: ${ot(e.clusterBkg, 0.5)};
|
|
971
|
-
stroke: ${ot(e.clusterBorder, 0.2)};
|
|
972
|
-
box-shadow: rgba(50, 50, 93, 0.25) 0px 13px 27px -5px, rgba(0, 0, 0, 0.3) 0px 8px 16px -8px;
|
|
973
|
-
stroke-width: 1px;
|
|
974
|
-
}
|
|
975
|
-
|
|
976
|
-
.cluster text {
|
|
977
|
-
fill: ${e.titleColor};
|
|
978
|
-
}
|
|
979
|
-
|
|
980
|
-
.cluster span,p {
|
|
981
|
-
color: ${e.titleColor};
|
|
982
|
-
}
|
|
983
|
-
/* .cluster div {
|
|
984
|
-
color: ${e.titleColor};
|
|
985
|
-
} */
|
|
986
|
-
|
|
987
|
-
div.mermaidTooltip {
|
|
988
|
-
position: absolute;
|
|
989
|
-
text-align: center;
|
|
990
|
-
max-width: 200px;
|
|
991
|
-
padding: 2px;
|
|
992
|
-
font-family: ${e.fontFamily};
|
|
993
|
-
font-size: 12px;
|
|
994
|
-
background: ${e.tertiaryColor};
|
|
995
|
-
border: 1px solid ${e.border2};
|
|
996
|
-
border-radius: 2px;
|
|
997
|
-
pointer-events: none;
|
|
998
|
-
z-index: 100;
|
|
999
|
-
}
|
|
1000
|
-
|
|
1001
|
-
.flowchartTitleText {
|
|
1002
|
-
text-anchor: middle;
|
|
1003
|
-
font-size: 18px;
|
|
1004
|
-
fill: ${e.textColor};
|
|
1005
|
-
}
|
|
1006
|
-
${Ne()}
|
|
1007
|
-
`, "getStyles"), Ra = za, Ma = /* @__PURE__ */ u((e, t, a, i) => {
|
|
1008
|
-
t.forEach((o) => {
|
|
1009
|
-
Za[o](e, a, i);
|
|
1010
|
-
});
|
|
1011
|
-
}, "insertMarkers"), Pa = /* @__PURE__ */ u((e, t, a) => {
|
|
1012
|
-
S.trace("Making markers for ", a), e.append("defs").append("marker").attr("id", a + "_" + 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", a + "_" + 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");
|
|
1013
|
-
}, "extension"), ja = /* @__PURE__ */ u((e, t, a) => {
|
|
1014
|
-
e.append("defs").append("marker").attr("id", a + "_" + 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", a + "_" + 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");
|
|
1015
|
-
}, "composition"), Fa = /* @__PURE__ */ u((e, t, a) => {
|
|
1016
|
-
e.append("defs").append("marker").attr("id", a + "_" + 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", a + "_" + 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");
|
|
1017
|
-
}, "aggregation"), Wa = /* @__PURE__ */ u((e, t, a) => {
|
|
1018
|
-
e.append("defs").append("marker").attr("id", a + "_" + 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", a + "_" + 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");
|
|
1019
|
-
}, "dependency"), Ya = /* @__PURE__ */ u((e, t, a) => {
|
|
1020
|
-
e.append("defs").append("marker").attr("id", a + "_" + 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", a + "_" + 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);
|
|
1021
|
-
}, "lollipop"), Ua = /* @__PURE__ */ u((e, t, a) => {
|
|
1022
|
-
e.append("marker").attr("id", a + "_" + 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", a + "_" + 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");
|
|
1023
|
-
}, "point"), Ha = /* @__PURE__ */ u((e, t, a) => {
|
|
1024
|
-
e.append("marker").attr("id", a + "_" + 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", a + "_" + 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");
|
|
1025
|
-
}, "circle"), Xa = /* @__PURE__ */ u((e, t, a) => {
|
|
1026
|
-
e.append("marker").attr("id", a + "_" + 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", a + "_" + 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");
|
|
1027
|
-
}, "cross"), Ka = /* @__PURE__ */ u((e, t, a) => {
|
|
1028
|
-
e.append("defs").append("marker").attr("id", a + "_" + 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");
|
|
1029
|
-
}, "barb"), Za = {
|
|
1030
|
-
extension: Pa,
|
|
1031
|
-
composition: ja,
|
|
1032
|
-
aggregation: Fa,
|
|
1033
|
-
dependency: Wa,
|
|
1034
|
-
lollipop: Ya,
|
|
1035
|
-
point: Ua,
|
|
1036
|
-
circle: Ha,
|
|
1037
|
-
cross: Xa,
|
|
1038
|
-
barb: Ka
|
|
1039
|
-
}, Ga = Ma, Yt, Ut, O = ((Ut = (Yt = z()) == null ? void 0 : Yt.block) == null ? void 0 : Ut.padding) ?? 8;
|
|
1040
|
-
function ge(e, t) {
|
|
1041
|
-
if (e === 0 || !Number.isInteger(e))
|
|
1042
|
-
throw new Error("Columns must be an integer !== 0.");
|
|
1043
|
-
if (t < 0 || !Number.isInteger(t))
|
|
1044
|
-
throw new Error("Position must be a non-negative integer." + t);
|
|
1045
|
-
if (e < 0)
|
|
1046
|
-
return { px: t, py: 0 };
|
|
1047
|
-
if (e === 1)
|
|
1048
|
-
return { px: 0, py: t };
|
|
1049
|
-
const a = t % e, i = Math.floor(t / e);
|
|
1050
|
-
return { px: a, py: i };
|
|
1051
|
-
}
|
|
1052
|
-
u(ge, "calculateBlockPosition");
|
|
1053
|
-
var Va = /* @__PURE__ */ u((e) => {
|
|
1054
|
-
let t = 0, a = 0;
|
|
1055
|
-
for (const i of e.children) {
|
|
1056
|
-
const { width: o, height: s, x: r, y: n } = i.size ?? { width: 0, height: 0, x: 0, y: 0 };
|
|
1057
|
-
S.debug(
|
|
1058
|
-
"getMaxChildSize abc95 child:",
|
|
1059
|
-
i.id,
|
|
1060
|
-
"width:",
|
|
1061
|
-
o,
|
|
1062
|
-
"height:",
|
|
1063
|
-
s,
|
|
1064
|
-
"x:",
|
|
1065
|
-
r,
|
|
1066
|
-
"y:",
|
|
1067
|
-
n,
|
|
1068
|
-
i.type
|
|
1069
|
-
), i.type !== "space" && (o > t && (t = o / (e.widthInColumns ?? 1)), s > a && (a = s));
|
|
1070
|
-
}
|
|
1071
|
-
return { width: t, height: a };
|
|
1072
|
-
}, "getMaxChildSize");
|
|
1073
|
-
function gt(e, t, a = 0, i = 0) {
|
|
1074
|
-
var o, s, r, n, l, h, y, b, x, L, m;
|
|
1075
|
-
S.debug(
|
|
1076
|
-
"setBlockSizes abc95 (start)",
|
|
1077
|
-
e.id,
|
|
1078
|
-
(o = e == null ? void 0 : e.size) == null ? void 0 : o.x,
|
|
1079
|
-
"block width =",
|
|
1080
|
-
e == null ? void 0 : e.size,
|
|
1081
|
-
"siblingWidth",
|
|
1082
|
-
a
|
|
1083
|
-
), (s = e == null ? void 0 : e.size) != null && s.width || (e.size = {
|
|
1084
|
-
width: a,
|
|
1085
|
-
height: i,
|
|
1086
|
-
x: 0,
|
|
1087
|
-
y: 0
|
|
1088
|
-
});
|
|
1089
|
-
let k = 0, _ = 0;
|
|
1090
|
-
if (((r = e.children) == null ? void 0 : r.length) > 0) {
|
|
1091
|
-
for (const c of e.children)
|
|
1092
|
-
gt(c, t);
|
|
1093
|
-
const N = Va(e);
|
|
1094
|
-
k = N.width, _ = N.height, S.debug("setBlockSizes abc95 maxWidth of", e.id, ":s children is ", k, _);
|
|
1095
|
-
for (const c of e.children)
|
|
1096
|
-
c.size && (S.debug(
|
|
1097
|
-
`abc95 Setting size of children of ${e.id} id=${c.id} ${k} ${_} ${JSON.stringify(c.size)}`
|
|
1098
|
-
), c.size.width = k * (c.widthInColumns ?? 1) + O * ((c.widthInColumns ?? 1) - 1), c.size.height = _, c.size.x = 0, c.size.y = 0, S.debug(
|
|
1099
|
-
`abc95 updating size of ${e.id} children child:${c.id} maxWidth:${k} maxHeight:${_}`
|
|
1100
|
-
));
|
|
1101
|
-
for (const c of e.children)
|
|
1102
|
-
gt(c, t, k, _);
|
|
1103
|
-
const v = e.columns ?? -1;
|
|
1104
|
-
let D = 0;
|
|
1105
|
-
for (const c of e.children)
|
|
1106
|
-
D += c.widthInColumns ?? 1;
|
|
1107
|
-
let d = e.children.length;
|
|
1108
|
-
v > 0 && v < D && (d = v);
|
|
1109
|
-
const p = Math.ceil(D / d);
|
|
1110
|
-
let f = d * (k + O) + O, E = p * (_ + O) + O;
|
|
1111
|
-
if (f < a) {
|
|
1112
|
-
S.debug(
|
|
1113
|
-
`Detected to small sibling: abc95 ${e.id} siblingWidth ${a} siblingHeight ${i} width ${f}`
|
|
1114
|
-
), f = a, E = i;
|
|
1115
|
-
const c = (a - d * O - O) / d, w = (i - p * O - O) / p;
|
|
1116
|
-
S.debug("Size indata abc88", e.id, "childWidth", c, "maxWidth", k), S.debug("Size indata abc88", e.id, "childHeight", w, "maxHeight", _), S.debug("Size indata abc88 xSize", d, "padding", O);
|
|
1117
|
-
for (const g of e.children)
|
|
1118
|
-
g.size && (g.size.width = c, g.size.height = w, g.size.x = 0, g.size.y = 0);
|
|
1119
|
-
}
|
|
1120
|
-
if (S.debug(
|
|
1121
|
-
`abc95 (finale calc) ${e.id} xSize ${d} ySize ${p} columns ${v}${e.children.length} width=${Math.max(f, ((n = e.size) == null ? void 0 : n.width) || 0)}`
|
|
1122
|
-
), f < (((l = e == null ? void 0 : e.size) == null ? void 0 : l.width) || 0)) {
|
|
1123
|
-
f = ((h = e == null ? void 0 : e.size) == null ? void 0 : h.width) || 0;
|
|
1124
|
-
const c = v > 0 ? Math.min(e.children.length, v) : e.children.length;
|
|
1125
|
-
if (c > 0) {
|
|
1126
|
-
const w = (f - c * O - O) / c;
|
|
1127
|
-
S.debug("abc95 (growing to fit) width", e.id, f, (y = e.size) == null ? void 0 : y.width, w);
|
|
1128
|
-
for (const g of e.children)
|
|
1129
|
-
g.size && (g.size.width = w);
|
|
1130
|
-
}
|
|
1131
|
-
}
|
|
1132
|
-
e.size = {
|
|
1133
|
-
width: f,
|
|
1134
|
-
height: E,
|
|
1135
|
-
x: 0,
|
|
1136
|
-
y: 0
|
|
1137
|
-
};
|
|
1138
|
-
}
|
|
1139
|
-
S.debug(
|
|
1140
|
-
"setBlockSizes abc94 (done)",
|
|
1141
|
-
e.id,
|
|
1142
|
-
(b = e == null ? void 0 : e.size) == null ? void 0 : b.x,
|
|
1143
|
-
(x = e == null ? void 0 : e.size) == null ? void 0 : x.width,
|
|
1144
|
-
(L = e == null ? void 0 : e.size) == null ? void 0 : L.y,
|
|
1145
|
-
(m = e == null ? void 0 : e.size) == null ? void 0 : m.height
|
|
1146
|
-
);
|
|
1147
|
-
}
|
|
1148
|
-
u(gt, "setBlockSizes");
|
|
1149
|
-
function Nt(e, t) {
|
|
1150
|
-
var a, i, o, s, r, n, l, h, y, b, x, L, m, k, _, N, v;
|
|
1151
|
-
S.debug(
|
|
1152
|
-
`abc85 layout blocks (=>layoutBlocks) ${e.id} x: ${(a = e == null ? void 0 : e.size) == null ? void 0 : a.x} y: ${(i = e == null ? void 0 : e.size) == null ? void 0 : i.y} width: ${(o = e == null ? void 0 : e.size) == null ? void 0 : o.width}`
|
|
1153
|
-
);
|
|
1154
|
-
const D = e.columns ?? -1;
|
|
1155
|
-
if (S.debug("layoutBlocks columns abc95", e.id, "=>", D, e), e.children && // find max width of children
|
|
1156
|
-
e.children.length > 0) {
|
|
1157
|
-
const d = ((r = (s = e == null ? void 0 : e.children[0]) == null ? void 0 : s.size) == null ? void 0 : r.width) ?? 0, p = e.children.length * d + (e.children.length - 1) * O;
|
|
1158
|
-
S.debug("widthOfChildren 88", p, "posX");
|
|
1159
|
-
let f = 0;
|
|
1160
|
-
S.debug("abc91 block?.size?.x", e.id, (n = e == null ? void 0 : e.size) == null ? void 0 : n.x);
|
|
1161
|
-
let E = (l = e == null ? void 0 : e.size) != null && l.x ? ((h = e == null ? void 0 : e.size) == null ? void 0 : h.x) + (-((y = e == null ? void 0 : e.size) == null ? void 0 : y.width) / 2 || 0) : -O, c = 0;
|
|
1162
|
-
for (const w of e.children) {
|
|
1163
|
-
const g = e;
|
|
1164
|
-
if (!w.size)
|
|
1165
|
-
continue;
|
|
1166
|
-
const { width: B, height: P } = w.size, { px: R, py: W } = ge(D, f);
|
|
1167
|
-
if (W != c && (c = W, E = (b = e == null ? void 0 : e.size) != null && b.x ? ((x = e == null ? void 0 : e.size) == null ? void 0 : x.x) + (-((L = e == null ? void 0 : e.size) == null ? void 0 : L.width) / 2 || 0) : -O, S.debug("New row in layout for block", e.id, " and child ", w.id, c)), S.debug(
|
|
1168
|
-
`abc89 layout blocks (child) id: ${w.id} Pos: ${f} (px, py) ${R},${W} (${(m = g == null ? void 0 : g.size) == null ? void 0 : m.x},${(k = g == null ? void 0 : g.size) == null ? void 0 : k.y}) parent: ${g.id} width: ${B}${O}`
|
|
1169
|
-
), g.size) {
|
|
1170
|
-
const T = B / 2;
|
|
1171
|
-
w.size.x = E + O + T, S.debug(
|
|
1172
|
-
`abc91 layout blocks (calc) px, pyid:${w.id} startingPos=X${E} new startingPosX${w.size.x} ${T} padding=${O} width=${B} halfWidth=${T} => x:${w.size.x} y:${w.size.y} ${w.widthInColumns} (width * (child?.w || 1)) / 2 ${B * ((w == null ? void 0 : w.widthInColumns) ?? 1) / 2}`
|
|
1173
|
-
), E = w.size.x + T, w.size.y = g.size.y - g.size.height / 2 + W * (P + O) + P / 2 + O, S.debug(
|
|
1174
|
-
`abc88 layout blocks (calc) px, pyid:${w.id}startingPosX${E}${O}${T}=>x:${w.size.x}y:${w.size.y}${w.widthInColumns}(width * (child?.w || 1)) / 2${B * ((w == null ? void 0 : w.widthInColumns) ?? 1) / 2}`
|
|
1175
|
-
);
|
|
1176
|
-
}
|
|
1177
|
-
w.children && Nt(w);
|
|
1178
|
-
let K = (w == null ? void 0 : w.widthInColumns) ?? 1;
|
|
1179
|
-
D > 0 && (K = Math.min(K, D - f % D)), f += K, S.debug("abc88 columnsPos", w, f);
|
|
1180
|
-
}
|
|
1181
|
-
}
|
|
1182
|
-
S.debug(
|
|
1183
|
-
`layout blocks (<==layoutBlocks) ${e.id} x: ${(_ = e == null ? void 0 : e.size) == null ? void 0 : _.x} y: ${(N = e == null ? void 0 : e.size) == null ? void 0 : N.y} width: ${(v = e == null ? void 0 : e.size) == null ? void 0 : v.width}`
|
|
1184
|
-
);
|
|
1185
|
-
}
|
|
1186
|
-
u(Nt, "layoutBlocks");
|
|
1187
|
-
function Tt(e, { minX: t, minY: a, maxX: i, maxY: o } = { minX: 0, minY: 0, maxX: 0, maxY: 0 }) {
|
|
1188
|
-
if (e.size && e.id !== "root") {
|
|
1189
|
-
const { x: s, y: r, width: n, height: l } = e.size;
|
|
1190
|
-
s - n / 2 < t && (t = s - n / 2), r - l / 2 < a && (a = r - l / 2), s + n / 2 > i && (i = s + n / 2), r + l / 2 > o && (o = r + l / 2);
|
|
1191
|
-
}
|
|
1192
|
-
if (e.children)
|
|
1193
|
-
for (const s of e.children)
|
|
1194
|
-
({ minX: t, minY: a, maxX: i, maxY: o } = Tt(s, { minX: t, minY: a, maxX: i, maxY: o }));
|
|
1195
|
-
return { minX: t, minY: a, maxX: i, maxY: o };
|
|
1196
|
-
}
|
|
1197
|
-
u(Tt, "findBounds");
|
|
1198
|
-
function ue(e) {
|
|
1199
|
-
const t = e.getBlock("root");
|
|
1200
|
-
if (!t)
|
|
1201
|
-
return;
|
|
1202
|
-
gt(t, e, 0, 0), Nt(t), S.debug("getBlocks", JSON.stringify(t, null, 2));
|
|
1203
|
-
const { minX: a, minY: i, maxX: o, maxY: s } = Tt(t), r = s - i, n = o - a;
|
|
1204
|
-
return { x: a, y: i, width: n, height: r };
|
|
1205
|
-
}
|
|
1206
|
-
u(ue, "layout");
|
|
1207
|
-
function kt(e, t) {
|
|
1208
|
-
t && e.attr("style", t);
|
|
1209
|
-
}
|
|
1210
|
-
u(kt, "applyStyle");
|
|
1211
|
-
function ye(e, t) {
|
|
1212
|
-
const a = A(document.createElementNS("http://www.w3.org/2000/svg", "foreignObject")), i = a.append("xhtml:div"), o = e.label, s = e.isNode ? "nodeLabel" : "edgeLabel", r = i.append("span");
|
|
1213
|
-
return r.html(mt(o, t)), kt(r, e.labelStyle), r.attr("class", s), kt(i, e.labelStyle), i.style("display", "inline-block"), i.style("white-space", "nowrap"), i.attr("xmlns", "http://www.w3.org/1999/xhtml"), a.node();
|
|
1214
|
-
}
|
|
1215
|
-
u(ye, "addHtmlLabel");
|
|
1216
|
-
var Ja = /* @__PURE__ */ u(async (e, t, a, i) => {
|
|
1217
|
-
let o = e || "";
|
|
1218
|
-
typeof o == "object" && (o = o[0]);
|
|
1219
|
-
const s = z();
|
|
1220
|
-
if (V(s.flowchart.htmlLabels)) {
|
|
1221
|
-
o = o.replace(/\\n|\n/g, "<br />"), S.debug("vertexText" + o);
|
|
1222
|
-
const r = await Pe(wt(o)), n = {
|
|
1223
|
-
isNode: i,
|
|
1224
|
-
label: r,
|
|
1225
|
-
labelStyle: t.replace("fill:", "color:")
|
|
1226
|
-
};
|
|
1227
|
-
return ye(n, s);
|
|
1228
|
-
} else {
|
|
1229
|
-
const r = document.createElementNS("http://www.w3.org/2000/svg", "text");
|
|
1230
|
-
r.setAttribute("style", t.replace("color:", "fill:"));
|
|
1231
|
-
let n = [];
|
|
1232
|
-
typeof o == "string" ? n = o.split(/\\n|\n|<br\s*\/?>/gi) : Array.isArray(o) ? n = o : n = [];
|
|
1233
|
-
for (const l of n) {
|
|
1234
|
-
const h = document.createElementNS("http://www.w3.org/2000/svg", "tspan");
|
|
1235
|
-
h.setAttributeNS("http://www.w3.org/XML/1998/namespace", "xml:space", "preserve"), h.setAttribute("dy", "1em"), h.setAttribute("x", "0"), a ? h.setAttribute("class", "title-row") : h.setAttribute("class", "row"), h.textContent = l.trim(), r.appendChild(h);
|
|
1236
|
-
}
|
|
1237
|
-
return r;
|
|
1238
|
-
}
|
|
1239
|
-
}, "createLabel"), X = Ja, Qa = /* @__PURE__ */ u((e, t, a, i, o) => {
|
|
1240
|
-
t.arrowTypeStart && Ht(e, "start", t.arrowTypeStart, a, i, o), t.arrowTypeEnd && Ht(e, "end", t.arrowTypeEnd, a, i, o);
|
|
1241
|
-
}, "addEdgeMarkers"), qa = {
|
|
1242
|
-
arrow_cross: "cross",
|
|
1243
|
-
arrow_point: "point",
|
|
1244
|
-
arrow_barb: "barb",
|
|
1245
|
-
arrow_circle: "circle",
|
|
1246
|
-
aggregation: "aggregation",
|
|
1247
|
-
extension: "extension",
|
|
1248
|
-
composition: "composition",
|
|
1249
|
-
dependency: "dependency",
|
|
1250
|
-
lollipop: "lollipop"
|
|
1251
|
-
}, Ht = /* @__PURE__ */ u((e, t, a, i, o, s) => {
|
|
1252
|
-
const r = qa[a];
|
|
1253
|
-
if (!r) {
|
|
1254
|
-
S.warn(`Unknown arrow type: ${a}`);
|
|
1255
|
-
return;
|
|
1256
|
-
}
|
|
1257
|
-
const n = t === "start" ? "Start" : "End";
|
|
1258
|
-
e.attr(`marker-${t}`, `url(${i}#${o}_${s}-${r}${n})`);
|
|
1259
|
-
}, "addEdgeMarker"), _t = {}, j = {}, ts = /* @__PURE__ */ u(async (e, t) => {
|
|
1260
|
-
const a = z(), i = V(a.flowchart.htmlLabels), o = t.labelType === "markdown" ? Jt(
|
|
1261
|
-
e,
|
|
1262
|
-
t.label,
|
|
1263
|
-
{
|
|
1264
|
-
style: t.labelStyle,
|
|
1265
|
-
useHtmlLabels: i,
|
|
1266
|
-
addSvgBackground: !0
|
|
1267
|
-
},
|
|
1268
|
-
a
|
|
1269
|
-
) : await X(t.label, t.labelStyle), s = e.insert("g").attr("class", "edgeLabel"), r = s.insert("g").attr("class", "label");
|
|
1270
|
-
r.node().appendChild(o);
|
|
1271
|
-
let n = o.getBBox();
|
|
1272
|
-
if (i) {
|
|
1273
|
-
const h = o.children[0], y = A(o);
|
|
1274
|
-
n = h.getBoundingClientRect(), y.attr("width", n.width), y.attr("height", n.height);
|
|
1275
|
-
}
|
|
1276
|
-
r.attr("transform", "translate(" + -n.width / 2 + ", " + -n.height / 2 + ")"), _t[t.id] = s, t.width = n.width, t.height = n.height;
|
|
1277
|
-
let l;
|
|
1278
|
-
if (t.startLabelLeft) {
|
|
1279
|
-
const h = await X(t.startLabelLeft, t.labelStyle), y = e.insert("g").attr("class", "edgeTerminals"), b = y.insert("g").attr("class", "inner");
|
|
1280
|
-
l = b.node().appendChild(h);
|
|
1281
|
-
const x = h.getBBox();
|
|
1282
|
-
b.attr("transform", "translate(" + -x.width / 2 + ", " + -x.height / 2 + ")"), j[t.id] || (j[t.id] = {}), j[t.id].startLeft = y, rt(l, t.startLabelLeft);
|
|
1283
|
-
}
|
|
1284
|
-
if (t.startLabelRight) {
|
|
1285
|
-
const h = await X(t.startLabelRight, t.labelStyle), y = e.insert("g").attr("class", "edgeTerminals"), b = y.insert("g").attr("class", "inner");
|
|
1286
|
-
l = y.node().appendChild(h), b.node().appendChild(h);
|
|
1287
|
-
const x = h.getBBox();
|
|
1288
|
-
b.attr("transform", "translate(" + -x.width / 2 + ", " + -x.height / 2 + ")"), j[t.id] || (j[t.id] = {}), j[t.id].startRight = y, rt(l, t.startLabelRight);
|
|
1289
|
-
}
|
|
1290
|
-
if (t.endLabelLeft) {
|
|
1291
|
-
const h = await X(t.endLabelLeft, t.labelStyle), y = e.insert("g").attr("class", "edgeTerminals"), b = y.insert("g").attr("class", "inner");
|
|
1292
|
-
l = b.node().appendChild(h);
|
|
1293
|
-
const x = h.getBBox();
|
|
1294
|
-
b.attr("transform", "translate(" + -x.width / 2 + ", " + -x.height / 2 + ")"), y.node().appendChild(h), j[t.id] || (j[t.id] = {}), j[t.id].endLeft = y, rt(l, t.endLabelLeft);
|
|
1295
|
-
}
|
|
1296
|
-
if (t.endLabelRight) {
|
|
1297
|
-
const h = await X(t.endLabelRight, t.labelStyle), y = e.insert("g").attr("class", "edgeTerminals"), b = y.insert("g").attr("class", "inner");
|
|
1298
|
-
l = b.node().appendChild(h);
|
|
1299
|
-
const x = h.getBBox();
|
|
1300
|
-
b.attr("transform", "translate(" + -x.width / 2 + ", " + -x.height / 2 + ")"), y.node().appendChild(h), j[t.id] || (j[t.id] = {}), j[t.id].endRight = y, rt(l, t.endLabelRight);
|
|
1301
|
-
}
|
|
1302
|
-
return o;
|
|
1303
|
-
}, "insertEdgeLabel");
|
|
1304
|
-
function rt(e, t) {
|
|
1305
|
-
z().flowchart.htmlLabels && e && (e.style.width = t.length * 9 + "px", e.style.height = "12px");
|
|
1306
|
-
}
|
|
1307
|
-
u(rt, "setTerminalWidth");
|
|
1308
|
-
var es = /* @__PURE__ */ u((e, t) => {
|
|
1309
|
-
S.debug("Moving label abc88 ", e.id, e.label, _t[e.id], t);
|
|
1310
|
-
let a = t.updatedPath ? t.updatedPath : t.originalPath;
|
|
1311
|
-
const i = z(), { subGraphTitleTotalMargin: o } = Ie(i);
|
|
1312
|
-
if (e.label) {
|
|
1313
|
-
const s = _t[e.id];
|
|
1314
|
-
let r = e.x, n = e.y;
|
|
1315
|
-
if (a) {
|
|
1316
|
-
const l = et.calcLabelPosition(a);
|
|
1317
|
-
S.debug(
|
|
1318
|
-
"Moving label " + e.label + " from (",
|
|
1319
|
-
r,
|
|
1320
|
-
",",
|
|
1321
|
-
n,
|
|
1322
|
-
") to (",
|
|
1323
|
-
l.x,
|
|
1324
|
-
",",
|
|
1325
|
-
l.y,
|
|
1326
|
-
") abc88"
|
|
1327
|
-
), t.updatedPath && (r = l.x, n = l.y);
|
|
1328
|
-
}
|
|
1329
|
-
s.attr("transform", `translate(${r}, ${n + o / 2})`);
|
|
1330
|
-
}
|
|
1331
|
-
if (e.startLabelLeft) {
|
|
1332
|
-
const s = j[e.id].startLeft;
|
|
1333
|
-
let r = e.x, n = e.y;
|
|
1334
|
-
if (a) {
|
|
1335
|
-
const l = et.calcTerminalLabelPosition(e.arrowTypeStart ? 10 : 0, "start_left", a);
|
|
1336
|
-
r = l.x, n = l.y;
|
|
1337
|
-
}
|
|
1338
|
-
s.attr("transform", `translate(${r}, ${n})`);
|
|
1339
|
-
}
|
|
1340
|
-
if (e.startLabelRight) {
|
|
1341
|
-
const s = j[e.id].startRight;
|
|
1342
|
-
let r = e.x, n = e.y;
|
|
1343
|
-
if (a) {
|
|
1344
|
-
const l = et.calcTerminalLabelPosition(
|
|
1345
|
-
e.arrowTypeStart ? 10 : 0,
|
|
1346
|
-
"start_right",
|
|
1347
|
-
a
|
|
1348
|
-
);
|
|
1349
|
-
r = l.x, n = l.y;
|
|
1350
|
-
}
|
|
1351
|
-
s.attr("transform", `translate(${r}, ${n})`);
|
|
1352
|
-
}
|
|
1353
|
-
if (e.endLabelLeft) {
|
|
1354
|
-
const s = j[e.id].endLeft;
|
|
1355
|
-
let r = e.x, n = e.y;
|
|
1356
|
-
if (a) {
|
|
1357
|
-
const l = et.calcTerminalLabelPosition(e.arrowTypeEnd ? 10 : 0, "end_left", a);
|
|
1358
|
-
r = l.x, n = l.y;
|
|
1359
|
-
}
|
|
1360
|
-
s.attr("transform", `translate(${r}, ${n})`);
|
|
1361
|
-
}
|
|
1362
|
-
if (e.endLabelRight) {
|
|
1363
|
-
const s = j[e.id].endRight;
|
|
1364
|
-
let r = e.x, n = e.y;
|
|
1365
|
-
if (a) {
|
|
1366
|
-
const l = et.calcTerminalLabelPosition(e.arrowTypeEnd ? 10 : 0, "end_right", a);
|
|
1367
|
-
r = l.x, n = l.y;
|
|
1368
|
-
}
|
|
1369
|
-
s.attr("transform", `translate(${r}, ${n})`);
|
|
1370
|
-
}
|
|
1371
|
-
}, "positionEdgeLabel"), rs = /* @__PURE__ */ u((e, t) => {
|
|
1372
|
-
const a = e.x, i = e.y, o = Math.abs(t.x - a), s = Math.abs(t.y - i), r = e.width / 2, n = e.height / 2;
|
|
1373
|
-
return o >= r || s >= n;
|
|
1374
|
-
}, "outsideNode"), as = /* @__PURE__ */ u((e, t, a) => {
|
|
1375
|
-
S.debug(`intersection calc abc89:
|
|
1376
|
-
outsidePoint: ${JSON.stringify(t)}
|
|
1377
|
-
insidePoint : ${JSON.stringify(a)}
|
|
1378
|
-
node : x:${e.x} y:${e.y} w:${e.width} h:${e.height}`);
|
|
1379
|
-
const i = e.x, o = e.y, s = Math.abs(i - a.x), r = e.width / 2;
|
|
1380
|
-
let n = a.x < t.x ? r - s : r + s;
|
|
1381
|
-
const l = e.height / 2, h = Math.abs(t.y - a.y), y = Math.abs(t.x - a.x);
|
|
1382
|
-
if (Math.abs(o - t.y) * r > Math.abs(i - t.x) * l) {
|
|
1383
|
-
let b = a.y < t.y ? t.y - l - o : o - l - t.y;
|
|
1384
|
-
n = y * b / h;
|
|
1385
|
-
const x = {
|
|
1386
|
-
x: a.x < t.x ? a.x + n : a.x - y + n,
|
|
1387
|
-
y: a.y < t.y ? a.y + h - b : a.y - h + b
|
|
1388
|
-
};
|
|
1389
|
-
return n === 0 && (x.x = t.x, x.y = t.y), y === 0 && (x.x = t.x), h === 0 && (x.y = t.y), S.debug(`abc89 topp/bott calc, Q ${h}, q ${b}, R ${y}, r ${n}`, x), x;
|
|
1390
|
-
} else {
|
|
1391
|
-
a.x < t.x ? n = t.x - r - i : n = i - r - t.x;
|
|
1392
|
-
let b = h * n / y, x = a.x < t.x ? a.x + y - n : a.x - y + n, L = a.y < t.y ? a.y + b : a.y - b;
|
|
1393
|
-
return S.debug(`sides calc abc89, Q ${h}, q ${b}, R ${y}, r ${n}`, { _x: x, _y: L }), n === 0 && (x = t.x, L = t.y), y === 0 && (x = t.x), h === 0 && (L = t.y), { x, y: L };
|
|
1394
|
-
}
|
|
1395
|
-
}, "intersection"), Xt = /* @__PURE__ */ u((e, t) => {
|
|
1396
|
-
S.debug("abc88 cutPathAtIntersect", e, t);
|
|
1397
|
-
let a = [], i = e[0], o = !1;
|
|
1398
|
-
return e.forEach((s) => {
|
|
1399
|
-
if (!rs(t, s) && !o) {
|
|
1400
|
-
const r = as(t, i, s);
|
|
1401
|
-
let n = !1;
|
|
1402
|
-
a.forEach((l) => {
|
|
1403
|
-
n = n || l.x === r.x && l.y === r.y;
|
|
1404
|
-
}), a.some((l) => l.x === r.x && l.y === r.y) || a.push(r), o = !0;
|
|
1405
|
-
} else
|
|
1406
|
-
i = s, o || a.push(s);
|
|
1407
|
-
}), a;
|
|
1408
|
-
}, "cutPathAtIntersect"), ss = /* @__PURE__ */ u(function(e, t, a, i, o, s, r) {
|
|
1409
|
-
let n = a.points;
|
|
1410
|
-
S.debug("abc88 InsertEdge: edge=", a, "e=", t);
|
|
1411
|
-
let l = !1;
|
|
1412
|
-
const h = s.node(t.v);
|
|
1413
|
-
var y = s.node(t.w);
|
|
1414
|
-
y != null && y.intersect && h != null && h.intersect && (n = n.slice(1, a.points.length - 1), n.unshift(h.intersect(n[0])), n.push(y.intersect(n[n.length - 1]))), a.toCluster && (S.debug("to cluster abc88", i[a.toCluster]), n = Xt(a.points, i[a.toCluster].node), l = !0), a.fromCluster && (S.debug("from cluster abc88", i[a.fromCluster]), n = Xt(n.reverse(), i[a.fromCluster].node).reverse(), l = !0);
|
|
1415
|
-
const b = n.filter((d) => !Number.isNaN(d.y));
|
|
1416
|
-
let x = Me;
|
|
1417
|
-
a.curve && (o === "graph" || o === "flowchart") && (x = a.curve);
|
|
1418
|
-
const { x: L, y: m } = Ce(a), k = Oe().x(L).y(m).curve(x);
|
|
1419
|
-
let _;
|
|
1420
|
-
switch (a.thickness) {
|
|
1421
|
-
case "normal":
|
|
1422
|
-
_ = "edge-thickness-normal";
|
|
1423
|
-
break;
|
|
1424
|
-
case "thick":
|
|
1425
|
-
_ = "edge-thickness-thick";
|
|
1426
|
-
break;
|
|
1427
|
-
case "invisible":
|
|
1428
|
-
_ = "edge-thickness-thick";
|
|
1429
|
-
break;
|
|
1430
|
-
default:
|
|
1431
|
-
_ = "";
|
|
1432
|
-
}
|
|
1433
|
-
switch (a.pattern) {
|
|
1434
|
-
case "solid":
|
|
1435
|
-
_ += " edge-pattern-solid";
|
|
1436
|
-
break;
|
|
1437
|
-
case "dotted":
|
|
1438
|
-
_ += " edge-pattern-dotted";
|
|
1439
|
-
break;
|
|
1440
|
-
case "dashed":
|
|
1441
|
-
_ += " edge-pattern-dashed";
|
|
1442
|
-
break;
|
|
1443
|
-
}
|
|
1444
|
-
const N = e.append("path").attr("d", k(b)).attr("id", a.id).attr("class", " " + _ + (a.classes ? " " + a.classes : "")).attr("style", a.style);
|
|
1445
|
-
let v = "";
|
|
1446
|
-
(z().flowchart.arrowMarkerAbsolute || z().state.arrowMarkerAbsolute) && (v = Be(!0)), Qa(N, a, v, r, o);
|
|
1447
|
-
let D = {};
|
|
1448
|
-
return l && (D.updatedPath = n), D.originalPath = a.points, D;
|
|
1449
|
-
}, "insertEdge"), is = /* @__PURE__ */ u((e) => {
|
|
1450
|
-
const t = /* @__PURE__ */ new Set();
|
|
1451
|
-
for (const a of e)
|
|
1452
|
-
switch (a) {
|
|
1453
|
-
case "x":
|
|
1454
|
-
t.add("right"), t.add("left");
|
|
1455
|
-
break;
|
|
1456
|
-
case "y":
|
|
1457
|
-
t.add("up"), t.add("down");
|
|
1458
|
-
break;
|
|
1459
|
-
default:
|
|
1460
|
-
t.add(a);
|
|
1461
|
-
break;
|
|
1462
|
-
}
|
|
1463
|
-
return t;
|
|
1464
|
-
}, "expandAndDeduplicateDirections"), ns = /* @__PURE__ */ u((e, t, a) => {
|
|
1465
|
-
const i = is(e), o = 2, s = t.height + 2 * a.padding, r = s / o, n = t.width + 2 * r + a.padding, l = a.padding / 2;
|
|
1466
|
-
return i.has("right") && i.has("left") && i.has("up") && i.has("down") ? [
|
|
1467
|
-
// Bottom
|
|
1468
|
-
{ x: 0, y: 0 },
|
|
1469
|
-
{ x: r, y: 0 },
|
|
1470
|
-
{ x: n / 2, y: 2 * l },
|
|
1471
|
-
{ x: n - r, y: 0 },
|
|
1472
|
-
{ x: n, y: 0 },
|
|
1473
|
-
// Right
|
|
1474
|
-
{ x: n, y: -s / 3 },
|
|
1475
|
-
{ x: n + 2 * l, y: -s / 2 },
|
|
1476
|
-
{ x: n, y: -2 * s / 3 },
|
|
1477
|
-
{ x: n, y: -s },
|
|
1478
|
-
// Top
|
|
1479
|
-
{ x: n - r, y: -s },
|
|
1480
|
-
{ x: n / 2, y: -s - 2 * l },
|
|
1481
|
-
{ x: r, y: -s },
|
|
1482
|
-
// Left
|
|
1483
|
-
{ x: 0, y: -s },
|
|
1484
|
-
{ x: 0, y: -2 * s / 3 },
|
|
1485
|
-
{ x: -2 * l, y: -s / 2 },
|
|
1486
|
-
{ x: 0, y: -s / 3 }
|
|
1487
|
-
] : i.has("right") && i.has("left") && i.has("up") ? [
|
|
1488
|
-
{ x: r, y: 0 },
|
|
1489
|
-
{ x: n - r, y: 0 },
|
|
1490
|
-
{ x: n, y: -s / 2 },
|
|
1491
|
-
{ x: n - r, y: -s },
|
|
1492
|
-
{ x: r, y: -s },
|
|
1493
|
-
{ x: 0, y: -s / 2 }
|
|
1494
|
-
] : i.has("right") && i.has("left") && i.has("down") ? [
|
|
1495
|
-
{ x: 0, y: 0 },
|
|
1496
|
-
{ x: r, y: -s },
|
|
1497
|
-
{ x: n - r, y: -s },
|
|
1498
|
-
{ x: n, y: 0 }
|
|
1499
|
-
] : i.has("right") && i.has("up") && i.has("down") ? [
|
|
1500
|
-
{ x: 0, y: 0 },
|
|
1501
|
-
{ x: n, y: -r },
|
|
1502
|
-
{ x: n, y: -s + r },
|
|
1503
|
-
{ x: 0, y: -s }
|
|
1504
|
-
] : i.has("left") && i.has("up") && i.has("down") ? [
|
|
1505
|
-
{ x: n, y: 0 },
|
|
1506
|
-
{ x: 0, y: -r },
|
|
1507
|
-
{ x: 0, y: -s + r },
|
|
1508
|
-
{ x: n, y: -s }
|
|
1509
|
-
] : i.has("right") && i.has("left") ? [
|
|
1510
|
-
{ x: r, y: 0 },
|
|
1511
|
-
{ x: r, y: -l },
|
|
1512
|
-
{ x: n - r, y: -l },
|
|
1513
|
-
{ x: n - r, y: 0 },
|
|
1514
|
-
{ x: n, y: -s / 2 },
|
|
1515
|
-
{ x: n - r, y: -s },
|
|
1516
|
-
{ x: n - r, y: -s + l },
|
|
1517
|
-
{ x: r, y: -s + l },
|
|
1518
|
-
{ x: r, y: -s },
|
|
1519
|
-
{ x: 0, y: -s / 2 }
|
|
1520
|
-
] : i.has("up") && i.has("down") ? [
|
|
1521
|
-
// Bottom center
|
|
1522
|
-
{ x: n / 2, y: 0 },
|
|
1523
|
-
// Left pont of bottom arrow
|
|
1524
|
-
{ x: 0, y: -l },
|
|
1525
|
-
{ x: r, y: -l },
|
|
1526
|
-
// Left top over vertical section
|
|
1527
|
-
{ x: r, y: -s + l },
|
|
1528
|
-
{ x: 0, y: -s + l },
|
|
1529
|
-
// Top of arrow
|
|
1530
|
-
{ x: n / 2, y: -s },
|
|
1531
|
-
{ x: n, y: -s + l },
|
|
1532
|
-
// Top of right vertical bar
|
|
1533
|
-
{ x: n - r, y: -s + l },
|
|
1534
|
-
{ x: n - r, y: -l },
|
|
1535
|
-
{ x: n, y: -l }
|
|
1536
|
-
] : i.has("right") && i.has("up") ? [
|
|
1537
|
-
{ x: 0, y: 0 },
|
|
1538
|
-
{ x: n, y: -r },
|
|
1539
|
-
{ x: 0, y: -s }
|
|
1540
|
-
] : i.has("right") && i.has("down") ? [
|
|
1541
|
-
{ x: 0, y: 0 },
|
|
1542
|
-
{ x: n, y: 0 },
|
|
1543
|
-
{ x: 0, y: -s }
|
|
1544
|
-
] : i.has("left") && i.has("up") ? [
|
|
1545
|
-
{ x: n, y: 0 },
|
|
1546
|
-
{ x: 0, y: -r },
|
|
1547
|
-
{ x: n, y: -s }
|
|
1548
|
-
] : i.has("left") && i.has("down") ? [
|
|
1549
|
-
{ x: n, y: 0 },
|
|
1550
|
-
{ x: 0, y: 0 },
|
|
1551
|
-
{ x: n, y: -s }
|
|
1552
|
-
] : i.has("right") ? [
|
|
1553
|
-
{ x: r, y: -l },
|
|
1554
|
-
{ x: r, y: -l },
|
|
1555
|
-
{ x: n - r, y: -l },
|
|
1556
|
-
{ x: n - r, y: 0 },
|
|
1557
|
-
{ x: n, y: -s / 2 },
|
|
1558
|
-
{ x: n - r, y: -s },
|
|
1559
|
-
{ x: n - r, y: -s + l },
|
|
1560
|
-
// top left corner of arrow
|
|
1561
|
-
{ x: r, y: -s + l },
|
|
1562
|
-
{ x: r, y: -s + l }
|
|
1563
|
-
] : i.has("left") ? [
|
|
1564
|
-
{ x: r, y: 0 },
|
|
1565
|
-
{ x: r, y: -l },
|
|
1566
|
-
// Two points, the right corners
|
|
1567
|
-
{ x: n - r, y: -l },
|
|
1568
|
-
{ x: n - r, y: -s + l },
|
|
1569
|
-
{ x: r, y: -s + l },
|
|
1570
|
-
{ x: r, y: -s },
|
|
1571
|
-
{ x: 0, y: -s / 2 }
|
|
1572
|
-
] : i.has("up") ? [
|
|
1573
|
-
// Bottom center
|
|
1574
|
-
{ x: r, y: -l },
|
|
1575
|
-
// Left top over vertical section
|
|
1576
|
-
{ x: r, y: -s + l },
|
|
1577
|
-
{ x: 0, y: -s + l },
|
|
1578
|
-
// Top of arrow
|
|
1579
|
-
{ x: n / 2, y: -s },
|
|
1580
|
-
{ x: n, y: -s + l },
|
|
1581
|
-
// Top of right vertical bar
|
|
1582
|
-
{ x: n - r, y: -s + l },
|
|
1583
|
-
{ x: n - r, y: -l }
|
|
1584
|
-
] : i.has("down") ? [
|
|
1585
|
-
// Bottom center
|
|
1586
|
-
{ x: n / 2, y: 0 },
|
|
1587
|
-
// Left pont of bottom arrow
|
|
1588
|
-
{ x: 0, y: -l },
|
|
1589
|
-
{ x: r, y: -l },
|
|
1590
|
-
// Left top over vertical section
|
|
1591
|
-
{ x: r, y: -s + l },
|
|
1592
|
-
{ x: n - r, y: -s + l },
|
|
1593
|
-
{ x: n - r, y: -l },
|
|
1594
|
-
{ x: n, y: -l }
|
|
1595
|
-
] : [{ x: 0, y: 0 }];
|
|
1596
|
-
}, "getArrowPoints");
|
|
1597
|
-
function pe(e, t) {
|
|
1598
|
-
return e.intersect(t);
|
|
1599
|
-
}
|
|
1600
|
-
u(pe, "intersectNode");
|
|
1601
|
-
var os = pe;
|
|
1602
|
-
function be(e, t, a, i) {
|
|
1603
|
-
var o = e.x, s = e.y, r = o - i.x, n = s - i.y, l = Math.sqrt(t * t * n * n + a * a * r * r), h = Math.abs(t * a * r / l);
|
|
1604
|
-
i.x < o && (h = -h);
|
|
1605
|
-
var y = Math.abs(t * a * n / l);
|
|
1606
|
-
return i.y < s && (y = -y), { x: o + h, y: s + y };
|
|
1607
|
-
}
|
|
1608
|
-
u(be, "intersectEllipse");
|
|
1609
|
-
var xe = be;
|
|
1610
|
-
function fe(e, t, a) {
|
|
1611
|
-
return xe(e, t, t, a);
|
|
1612
|
-
}
|
|
1613
|
-
u(fe, "intersectCircle");
|
|
1614
|
-
var ls = fe;
|
|
1615
|
-
function me(e, t, a, i) {
|
|
1616
|
-
var o, s, r, n, l, h, y, b, x, L, m, k, _, N, v;
|
|
1617
|
-
if (o = t.y - e.y, r = e.x - t.x, l = t.x * e.y - e.x * t.y, x = o * a.x + r * a.y + l, L = o * i.x + r * i.y + l, !(x !== 0 && L !== 0 && vt(x, L)) && (s = i.y - a.y, n = a.x - i.x, h = i.x * a.y - a.x * i.y, y = s * e.x + n * e.y + h, b = s * t.x + n * t.y + h, !(y !== 0 && b !== 0 && vt(y, b)) && (m = o * n - s * r, m !== 0)))
|
|
1618
|
-
return k = Math.abs(m / 2), _ = r * h - n * l, N = _ < 0 ? (_ - k) / m : (_ + k) / m, _ = s * l - o * h, v = _ < 0 ? (_ - k) / m : (_ + k) / m, { x: N, y: v };
|
|
1619
|
-
}
|
|
1620
|
-
u(me, "intersectLine");
|
|
1621
|
-
function vt(e, t) {
|
|
1622
|
-
return e * t > 0;
|
|
1623
|
-
}
|
|
1624
|
-
u(vt, "sameSign");
|
|
1625
|
-
var cs = me, ds = we;
|
|
1626
|
-
function we(e, t, a) {
|
|
1627
|
-
var i = e.x, o = e.y, s = [], r = Number.POSITIVE_INFINITY, n = Number.POSITIVE_INFINITY;
|
|
1628
|
-
typeof t.forEach == "function" ? t.forEach(function(m) {
|
|
1629
|
-
r = Math.min(r, m.x), n = Math.min(n, m.y);
|
|
1630
|
-
}) : (r = Math.min(r, t.x), n = Math.min(n, t.y));
|
|
1631
|
-
for (var l = i - e.width / 2 - r, h = o - e.height / 2 - n, y = 0; y < t.length; y++) {
|
|
1632
|
-
var b = t[y], x = t[y < t.length - 1 ? y + 1 : 0], L = cs(
|
|
1633
|
-
e,
|
|
1634
|
-
a,
|
|
1635
|
-
{ x: l + b.x, y: h + b.y },
|
|
1636
|
-
{ x: l + x.x, y: h + x.y }
|
|
1637
|
-
);
|
|
1638
|
-
L && s.push(L);
|
|
1639
|
-
}
|
|
1640
|
-
return s.length ? (s.length > 1 && s.sort(function(m, k) {
|
|
1641
|
-
var _ = m.x - a.x, N = m.y - a.y, v = Math.sqrt(_ * _ + N * N), D = k.x - a.x, d = k.y - a.y, p = Math.sqrt(D * D + d * d);
|
|
1642
|
-
return v < p ? -1 : v === p ? 0 : 1;
|
|
1643
|
-
}), s[0]) : e;
|
|
1644
|
-
}
|
|
1645
|
-
u(we, "intersectPolygon");
|
|
1646
|
-
var hs = /* @__PURE__ */ u((e, t) => {
|
|
1647
|
-
var a = e.x, i = e.y, o = t.x - a, s = t.y - i, r = e.width / 2, n = e.height / 2, l, h;
|
|
1648
|
-
return Math.abs(s) * r > Math.abs(o) * n ? (s < 0 && (n = -n), l = s === 0 ? 0 : n * o / s, h = n) : (o < 0 && (r = -r), l = r, h = o === 0 ? 0 : r * s / o), { x: a + l, y: i + h };
|
|
1649
|
-
}, "intersectRect"), gs = hs, I = {
|
|
1650
|
-
node: os,
|
|
1651
|
-
circle: ls,
|
|
1652
|
-
ellipse: xe,
|
|
1653
|
-
polygon: ds,
|
|
1654
|
-
rect: gs
|
|
1655
|
-
}, M = /* @__PURE__ */ u(async (e, t, a, i) => {
|
|
1656
|
-
const o = z();
|
|
1657
|
-
let s;
|
|
1658
|
-
const r = t.useHtmlLabels || V(o.flowchart.htmlLabels);
|
|
1659
|
-
a ? s = a : s = "node default";
|
|
1660
|
-
const n = e.insert("g").attr("class", s).attr("id", t.domId || t.id), l = n.insert("g").attr("class", "label").attr("style", t.labelStyle);
|
|
1661
|
-
let h;
|
|
1662
|
-
t.labelText === void 0 ? h = "" : h = typeof t.labelText == "string" ? t.labelText : t.labelText[0];
|
|
1663
|
-
const y = l.node();
|
|
1664
|
-
let b;
|
|
1665
|
-
t.labelType === "markdown" ? b = Jt(
|
|
1666
|
-
l,
|
|
1667
|
-
mt(wt(h), o),
|
|
1668
|
-
{
|
|
1669
|
-
useHtmlLabels: r,
|
|
1670
|
-
width: t.width || o.flowchart.wrappingWidth,
|
|
1671
|
-
classes: "markdown-node-label"
|
|
1672
|
-
},
|
|
1673
|
-
o
|
|
1674
|
-
) : b = y.appendChild(
|
|
1675
|
-
await X(
|
|
1676
|
-
mt(wt(h), o),
|
|
1677
|
-
t.labelStyle,
|
|
1678
|
-
!1,
|
|
1679
|
-
i
|
|
1680
|
-
)
|
|
1681
|
-
);
|
|
1682
|
-
let x = b.getBBox();
|
|
1683
|
-
const L = t.padding / 2;
|
|
1684
|
-
if (V(o.flowchart.htmlLabels)) {
|
|
1685
|
-
const m = b.children[0], k = A(b), _ = m.getElementsByTagName("img");
|
|
1686
|
-
if (_) {
|
|
1687
|
-
const N = h.replace(/<img[^>]*>/g, "").trim() === "";
|
|
1688
|
-
await Promise.all(
|
|
1689
|
-
[..._].map(
|
|
1690
|
-
(v) => new Promise((D) => {
|
|
1691
|
-
function d() {
|
|
1692
|
-
if (v.style.display = "flex", v.style.flexDirection = "column", N) {
|
|
1693
|
-
const p = o.fontSize ? o.fontSize : window.getComputedStyle(document.body).fontSize, f = parseInt(p, 10) * 5 + "px";
|
|
1694
|
-
v.style.minWidth = f, v.style.maxWidth = f;
|
|
1695
|
-
} else
|
|
1696
|
-
v.style.width = "100%";
|
|
1697
|
-
D(v);
|
|
1698
|
-
}
|
|
1699
|
-
u(d, "setupImage"), setTimeout(() => {
|
|
1700
|
-
v.complete && d();
|
|
1701
|
-
}), v.addEventListener("error", d), v.addEventListener("load", d);
|
|
1702
|
-
})
|
|
1703
|
-
)
|
|
1704
|
-
);
|
|
1705
|
-
}
|
|
1706
|
-
x = m.getBoundingClientRect(), k.attr("width", x.width), k.attr("height", x.height);
|
|
1707
|
-
}
|
|
1708
|
-
return r ? l.attr("transform", "translate(" + -x.width / 2 + ", " + -x.height / 2 + ")") : l.attr("transform", "translate(0, " + -x.height / 2 + ")"), t.centerLabel && l.attr("transform", "translate(" + -x.width / 2 + ", " + -x.height / 2 + ")"), l.insert("rect", ":first-child"), { shapeSvg: n, bbox: x, halfPadding: L, label: l };
|
|
1709
|
-
}, "labelHelper"), C = /* @__PURE__ */ u((e, t) => {
|
|
1710
|
-
const a = t.node().getBBox();
|
|
1711
|
-
e.width = a.width, e.height = a.height;
|
|
1712
|
-
}, "updateNodeBounds");
|
|
1713
|
-
function G(e, t, a, i) {
|
|
1714
|
-
return e.insert("polygon", ":first-child").attr(
|
|
1715
|
-
"points",
|
|
1716
|
-
i.map(function(o) {
|
|
1717
|
-
return o.x + "," + o.y;
|
|
1718
|
-
}).join(" ")
|
|
1719
|
-
).attr("class", "label-container").attr("transform", "translate(" + -t / 2 + "," + a / 2 + ")");
|
|
1720
|
-
}
|
|
1721
|
-
u(G, "insertPolygonShape");
|
|
1722
|
-
var us = /* @__PURE__ */ u(async (e, t) => {
|
|
1723
|
-
t.useHtmlLabels || z().flowchart.htmlLabels || (t.centerLabel = !0);
|
|
1724
|
-
const { shapeSvg: a, bbox: i, halfPadding: o } = await M(
|
|
1725
|
-
e,
|
|
1726
|
-
t,
|
|
1727
|
-
"node " + t.classes,
|
|
1728
|
-
!0
|
|
1729
|
-
);
|
|
1730
|
-
S.info("Classes = ", t.classes);
|
|
1731
|
-
const s = a.insert("rect", ":first-child");
|
|
1732
|
-
return s.attr("rx", t.rx).attr("ry", t.ry).attr("x", -i.width / 2 - o).attr("y", -i.height / 2 - o).attr("width", i.width + t.padding).attr("height", i.height + t.padding), C(t, s), t.intersect = function(r) {
|
|
1733
|
-
return I.rect(t, r);
|
|
1734
|
-
}, a;
|
|
1735
|
-
}, "note"), ys = us, Kt = /* @__PURE__ */ u((e) => e ? " " + e : "", "formatClass"), U = /* @__PURE__ */ u((e, t) => `${t || "node default"}${Kt(e.classes)} ${Kt(
|
|
1736
|
-
e.class
|
|
1737
|
-
)}`, "getClassesFromNode"), Zt = /* @__PURE__ */ u(async (e, t) => {
|
|
1738
|
-
const { shapeSvg: a, bbox: i } = await M(
|
|
1739
|
-
e,
|
|
1740
|
-
t,
|
|
1741
|
-
U(t, void 0),
|
|
1742
|
-
!0
|
|
1743
|
-
), o = i.width + t.padding, s = i.height + t.padding, r = o + s, n = [
|
|
1744
|
-
{ x: r / 2, y: 0 },
|
|
1745
|
-
{ x: r, y: -r / 2 },
|
|
1746
|
-
{ x: r / 2, y: -r },
|
|
1747
|
-
{ x: 0, y: -r / 2 }
|
|
1748
|
-
];
|
|
1749
|
-
S.info("Question main (Circle)");
|
|
1750
|
-
const l = G(a, r, r, n);
|
|
1751
|
-
return l.attr("style", t.style), C(t, l), t.intersect = function(h) {
|
|
1752
|
-
return S.warn("Intersect called"), I.polygon(t, n, h);
|
|
1753
|
-
}, a;
|
|
1754
|
-
}, "question"), ps = /* @__PURE__ */ u((e, t) => {
|
|
1755
|
-
const a = e.insert("g").attr("class", "node default").attr("id", t.domId || t.id), i = 28, o = [
|
|
1756
|
-
{ x: 0, y: i / 2 },
|
|
1757
|
-
{ x: i / 2, y: 0 },
|
|
1758
|
-
{ x: 0, y: -i / 2 },
|
|
1759
|
-
{ x: -i / 2, y: 0 }
|
|
1760
|
-
];
|
|
1761
|
-
return a.insert("polygon", ":first-child").attr(
|
|
1762
|
-
"points",
|
|
1763
|
-
o.map(function(s) {
|
|
1764
|
-
return s.x + "," + s.y;
|
|
1765
|
-
}).join(" ")
|
|
1766
|
-
).attr("class", "state-start").attr("r", 7).attr("width", 28).attr("height", 28), t.width = 28, t.height = 28, t.intersect = function(s) {
|
|
1767
|
-
return I.circle(t, 14, s);
|
|
1768
|
-
}, a;
|
|
1769
|
-
}, "choice"), bs = /* @__PURE__ */ u(async (e, t) => {
|
|
1770
|
-
const { shapeSvg: a, bbox: i } = await M(
|
|
1771
|
-
e,
|
|
1772
|
-
t,
|
|
1773
|
-
U(t, void 0),
|
|
1774
|
-
!0
|
|
1775
|
-
), o = 4, s = i.height + t.padding, r = s / o, n = i.width + 2 * r + t.padding, l = [
|
|
1776
|
-
{ x: r, y: 0 },
|
|
1777
|
-
{ x: n - r, y: 0 },
|
|
1778
|
-
{ x: n, y: -s / 2 },
|
|
1779
|
-
{ x: n - r, y: -s },
|
|
1780
|
-
{ x: r, y: -s },
|
|
1781
|
-
{ x: 0, y: -s / 2 }
|
|
1782
|
-
], h = G(a, n, s, l);
|
|
1783
|
-
return h.attr("style", t.style), C(t, h), t.intersect = function(y) {
|
|
1784
|
-
return I.polygon(t, l, y);
|
|
1785
|
-
}, a;
|
|
1786
|
-
}, "hexagon"), xs = /* @__PURE__ */ u(async (e, t) => {
|
|
1787
|
-
const { shapeSvg: a, bbox: i } = await M(e, t, void 0, !0), o = 2, s = i.height + 2 * t.padding, r = s / o, n = i.width + 2 * r + t.padding, l = ns(t.directions, i, t), h = G(a, n, s, l);
|
|
1788
|
-
return h.attr("style", t.style), C(t, h), t.intersect = function(y) {
|
|
1789
|
-
return I.polygon(t, l, y);
|
|
1790
|
-
}, a;
|
|
1791
|
-
}, "block_arrow"), fs = /* @__PURE__ */ u(async (e, t) => {
|
|
1792
|
-
const { shapeSvg: a, bbox: i } = await M(
|
|
1793
|
-
e,
|
|
1794
|
-
t,
|
|
1795
|
-
U(t, void 0),
|
|
1796
|
-
!0
|
|
1797
|
-
), o = i.width + t.padding, s = i.height + t.padding, r = [
|
|
1798
|
-
{ x: -s / 2, y: 0 },
|
|
1799
|
-
{ x: o, y: 0 },
|
|
1800
|
-
{ x: o, y: -s },
|
|
1801
|
-
{ x: -s / 2, y: -s },
|
|
1802
|
-
{ x: 0, y: -s / 2 }
|
|
1803
|
-
];
|
|
1804
|
-
return G(a, o, s, r).attr("style", t.style), t.width = o + s, t.height = s, t.intersect = function(n) {
|
|
1805
|
-
return I.polygon(t, r, n);
|
|
1806
|
-
}, a;
|
|
1807
|
-
}, "rect_left_inv_arrow"), ms = /* @__PURE__ */ u(async (e, t) => {
|
|
1808
|
-
const { shapeSvg: a, bbox: i } = await M(e, t, U(t), !0), o = i.width + t.padding, s = i.height + t.padding, r = [
|
|
1809
|
-
{ x: -2 * s / 6, y: 0 },
|
|
1810
|
-
{ x: o - s / 6, y: 0 },
|
|
1811
|
-
{ x: o + 2 * s / 6, y: -s },
|
|
1812
|
-
{ x: s / 6, y: -s }
|
|
1813
|
-
], n = G(a, o, s, r);
|
|
1814
|
-
return n.attr("style", t.style), C(t, n), t.intersect = function(l) {
|
|
1815
|
-
return I.polygon(t, r, l);
|
|
1816
|
-
}, a;
|
|
1817
|
-
}, "lean_right"), ws = /* @__PURE__ */ u(async (e, t) => {
|
|
1818
|
-
const { shapeSvg: a, bbox: i } = await M(
|
|
1819
|
-
e,
|
|
1820
|
-
t,
|
|
1821
|
-
U(t, void 0),
|
|
1822
|
-
!0
|
|
1823
|
-
), o = i.width + t.padding, s = i.height + t.padding, r = [
|
|
1824
|
-
{ x: 2 * s / 6, y: 0 },
|
|
1825
|
-
{ x: o + s / 6, y: 0 },
|
|
1826
|
-
{ x: o - 2 * s / 6, y: -s },
|
|
1827
|
-
{ x: -s / 6, y: -s }
|
|
1828
|
-
], n = G(a, o, s, r);
|
|
1829
|
-
return n.attr("style", t.style), C(t, n), t.intersect = function(l) {
|
|
1830
|
-
return I.polygon(t, r, l);
|
|
1831
|
-
}, a;
|
|
1832
|
-
}, "lean_left"), Ss = /* @__PURE__ */ u(async (e, t) => {
|
|
1833
|
-
const { shapeSvg: a, bbox: i } = await M(
|
|
1834
|
-
e,
|
|
1835
|
-
t,
|
|
1836
|
-
U(t, void 0),
|
|
1837
|
-
!0
|
|
1838
|
-
), o = i.width + t.padding, s = i.height + t.padding, r = [
|
|
1839
|
-
{ x: -2 * s / 6, y: 0 },
|
|
1840
|
-
{ x: o + 2 * s / 6, y: 0 },
|
|
1841
|
-
{ x: o - s / 6, y: -s },
|
|
1842
|
-
{ x: s / 6, y: -s }
|
|
1843
|
-
], n = G(a, o, s, r);
|
|
1844
|
-
return n.attr("style", t.style), C(t, n), t.intersect = function(l) {
|
|
1845
|
-
return I.polygon(t, r, l);
|
|
1846
|
-
}, a;
|
|
1847
|
-
}, "trapezoid"), Ls = /* @__PURE__ */ u(async (e, t) => {
|
|
1848
|
-
const { shapeSvg: a, bbox: i } = await M(
|
|
1849
|
-
e,
|
|
1850
|
-
t,
|
|
1851
|
-
U(t, void 0),
|
|
1852
|
-
!0
|
|
1853
|
-
), o = i.width + t.padding, s = i.height + t.padding, r = [
|
|
1854
|
-
{ x: s / 6, y: 0 },
|
|
1855
|
-
{ x: o - s / 6, y: 0 },
|
|
1856
|
-
{ x: o + 2 * s / 6, y: -s },
|
|
1857
|
-
{ x: -2 * s / 6, y: -s }
|
|
1858
|
-
], n = G(a, o, s, r);
|
|
1859
|
-
return n.attr("style", t.style), C(t, n), t.intersect = function(l) {
|
|
1860
|
-
return I.polygon(t, r, l);
|
|
1861
|
-
}, a;
|
|
1862
|
-
}, "inv_trapezoid"), ks = /* @__PURE__ */ u(async (e, t) => {
|
|
1863
|
-
const { shapeSvg: a, bbox: i } = await M(
|
|
1864
|
-
e,
|
|
1865
|
-
t,
|
|
1866
|
-
U(t, void 0),
|
|
1867
|
-
!0
|
|
1868
|
-
), o = i.width + t.padding, s = i.height + t.padding, r = [
|
|
1869
|
-
{ x: 0, y: 0 },
|
|
1870
|
-
{ x: o + s / 2, y: 0 },
|
|
1871
|
-
{ x: o, y: -s / 2 },
|
|
1872
|
-
{ x: o + s / 2, y: -s },
|
|
1873
|
-
{ x: 0, y: -s }
|
|
1874
|
-
], n = G(a, o, s, r);
|
|
1875
|
-
return n.attr("style", t.style), C(t, n), t.intersect = function(l) {
|
|
1876
|
-
return I.polygon(t, r, l);
|
|
1877
|
-
}, a;
|
|
1878
|
-
}, "rect_right_inv_arrow"), _s = /* @__PURE__ */ u(async (e, t) => {
|
|
1879
|
-
const { shapeSvg: a, bbox: i } = await M(
|
|
1880
|
-
e,
|
|
1881
|
-
t,
|
|
1882
|
-
U(t, void 0),
|
|
1883
|
-
!0
|
|
1884
|
-
), o = i.width + t.padding, s = o / 2, r = s / (2.5 + o / 50), n = i.height + r + t.padding, l = "M 0," + r + " a " + s + "," + r + " 0,0,0 " + o + " 0 a " + s + "," + r + " 0,0,0 " + -o + " 0 l 0," + n + " a " + s + "," + r + " 0,0,0 " + o + " 0 l 0," + -n, h = a.attr("label-offset-y", r).insert("path", ":first-child").attr("style", t.style).attr("d", l).attr("transform", "translate(" + -o / 2 + "," + -(n / 2 + r) + ")");
|
|
1885
|
-
return C(t, h), t.intersect = function(y) {
|
|
1886
|
-
const b = I.rect(t, y), x = b.x - t.x;
|
|
1887
|
-
if (s != 0 && (Math.abs(x) < t.width / 2 || Math.abs(x) == t.width / 2 && Math.abs(b.y - t.y) > t.height / 2 - r)) {
|
|
1888
|
-
let L = r * r * (1 - x * x / (s * s));
|
|
1889
|
-
L != 0 && (L = Math.sqrt(L)), L = r - L, y.y - t.y > 0 && (L = -L), b.y += L;
|
|
1890
|
-
}
|
|
1891
|
-
return b;
|
|
1892
|
-
}, a;
|
|
1893
|
-
}, "cylinder"), vs = /* @__PURE__ */ u(async (e, t) => {
|
|
1894
|
-
const { shapeSvg: a, bbox: i, halfPadding: o } = await M(
|
|
1895
|
-
e,
|
|
1896
|
-
t,
|
|
1897
|
-
"node " + t.classes + " " + t.class,
|
|
1898
|
-
!0
|
|
1899
|
-
), s = a.insert("rect", ":first-child"), r = t.positioned ? t.width : i.width + t.padding, n = t.positioned ? t.height : i.height + t.padding, l = t.positioned ? -r / 2 : -i.width / 2 - o, h = t.positioned ? -n / 2 : -i.height / 2 - o;
|
|
1900
|
-
if (s.attr("class", "basic label-container").attr("style", t.style).attr("rx", t.rx).attr("ry", t.ry).attr("x", l).attr("y", h).attr("width", r).attr("height", n), t.props) {
|
|
1901
|
-
const y = new Set(Object.keys(t.props));
|
|
1902
|
-
t.props.borders && (ut(s, t.props.borders, r, n), y.delete("borders")), y.forEach((b) => {
|
|
1903
|
-
S.warn(`Unknown node property ${b}`);
|
|
1904
|
-
});
|
|
1905
|
-
}
|
|
1906
|
-
return C(t, s), t.intersect = function(y) {
|
|
1907
|
-
return I.rect(t, y);
|
|
1908
|
-
}, a;
|
|
1909
|
-
}, "rect"), Es = /* @__PURE__ */ u(async (e, t) => {
|
|
1910
|
-
const { shapeSvg: a, bbox: i, halfPadding: o } = await M(
|
|
1911
|
-
e,
|
|
1912
|
-
t,
|
|
1913
|
-
"node " + t.classes,
|
|
1914
|
-
!0
|
|
1915
|
-
), s = a.insert("rect", ":first-child"), r = t.positioned ? t.width : i.width + t.padding, n = t.positioned ? t.height : i.height + t.padding, l = t.positioned ? -r / 2 : -i.width / 2 - o, h = t.positioned ? -n / 2 : -i.height / 2 - o;
|
|
1916
|
-
if (s.attr("class", "basic cluster composite label-container").attr("style", t.style).attr("rx", t.rx).attr("ry", t.ry).attr("x", l).attr("y", h).attr("width", r).attr("height", n), t.props) {
|
|
1917
|
-
const y = new Set(Object.keys(t.props));
|
|
1918
|
-
t.props.borders && (ut(s, t.props.borders, r, n), y.delete("borders")), y.forEach((b) => {
|
|
1919
|
-
S.warn(`Unknown node property ${b}`);
|
|
1920
|
-
});
|
|
1921
|
-
}
|
|
1922
|
-
return C(t, s), t.intersect = function(y) {
|
|
1923
|
-
return I.rect(t, y);
|
|
1924
|
-
}, a;
|
|
1925
|
-
}, "composite"), Ds = /* @__PURE__ */ u(async (e, t) => {
|
|
1926
|
-
const { shapeSvg: a } = await M(e, t, "label", !0);
|
|
1927
|
-
S.trace("Classes = ", t.class);
|
|
1928
|
-
const i = a.insert("rect", ":first-child"), o = 0, s = 0;
|
|
1929
|
-
if (i.attr("width", o).attr("height", s), a.attr("class", "label edgeLabel"), t.props) {
|
|
1930
|
-
const r = new Set(Object.keys(t.props));
|
|
1931
|
-
t.props.borders && (ut(i, t.props.borders, o, s), r.delete("borders")), r.forEach((n) => {
|
|
1932
|
-
S.warn(`Unknown node property ${n}`);
|
|
1933
|
-
});
|
|
1934
|
-
}
|
|
1935
|
-
return C(t, i), t.intersect = function(r) {
|
|
1936
|
-
return I.rect(t, r);
|
|
1937
|
-
}, a;
|
|
1938
|
-
}, "labelRect");
|
|
1939
|
-
function ut(e, t, a, i) {
|
|
1940
|
-
const o = [], s = /* @__PURE__ */ u((n) => {
|
|
1941
|
-
o.push(n, 0);
|
|
1942
|
-
}, "addBorder"), r = /* @__PURE__ */ u((n) => {
|
|
1943
|
-
o.push(0, n);
|
|
1944
|
-
}, "skipBorder");
|
|
1945
|
-
t.includes("t") ? (S.debug("add top border"), s(a)) : r(a), t.includes("r") ? (S.debug("add right border"), s(i)) : r(i), t.includes("b") ? (S.debug("add bottom border"), s(a)) : r(a), t.includes("l") ? (S.debug("add left border"), s(i)) : r(i), e.attr("stroke-dasharray", o.join(" "));
|
|
1946
|
-
}
|
|
1947
|
-
u(ut, "applyNodePropertyBorders");
|
|
1948
|
-
var $s = /* @__PURE__ */ u(async (e, t) => {
|
|
1949
|
-
let a;
|
|
1950
|
-
t.classes ? a = "node " + t.classes : a = "node default";
|
|
1951
|
-
const i = e.insert("g").attr("class", a).attr("id", t.domId || t.id), o = i.insert("rect", ":first-child"), s = i.insert("line"), r = i.insert("g").attr("class", "label"), n = t.labelText.flat ? t.labelText.flat() : t.labelText;
|
|
1952
|
-
let l = "";
|
|
1953
|
-
typeof n == "object" ? l = n[0] : l = n, S.info("Label text abc79", l, n, typeof n == "object");
|
|
1954
|
-
const h = r.node().appendChild(await X(l, t.labelStyle, !0, !0));
|
|
1955
|
-
let y = { width: 0, height: 0 };
|
|
1956
|
-
if (V(z().flowchart.htmlLabels)) {
|
|
1957
|
-
const k = h.children[0], _ = A(h);
|
|
1958
|
-
y = k.getBoundingClientRect(), _.attr("width", y.width), _.attr("height", y.height);
|
|
1959
|
-
}
|
|
1960
|
-
S.info("Text 2", n);
|
|
1961
|
-
const b = n.slice(1, n.length);
|
|
1962
|
-
let x = h.getBBox();
|
|
1963
|
-
const L = r.node().appendChild(
|
|
1964
|
-
await X(
|
|
1965
|
-
b.join ? b.join("<br/>") : b,
|
|
1966
|
-
t.labelStyle,
|
|
1967
|
-
!0,
|
|
1968
|
-
!0
|
|
1969
|
-
)
|
|
1970
|
-
);
|
|
1971
|
-
if (V(z().flowchart.htmlLabels)) {
|
|
1972
|
-
const k = L.children[0], _ = A(L);
|
|
1973
|
-
y = k.getBoundingClientRect(), _.attr("width", y.width), _.attr("height", y.height);
|
|
1974
|
-
}
|
|
1975
|
-
const m = t.padding / 2;
|
|
1976
|
-
return A(L).attr(
|
|
1977
|
-
"transform",
|
|
1978
|
-
"translate( " + // (titleBox.width - bbox.width) / 2 +
|
|
1979
|
-
(y.width > x.width ? 0 : (x.width - y.width) / 2) + ", " + (x.height + m + 5) + ")"
|
|
1980
|
-
), A(h).attr(
|
|
1981
|
-
"transform",
|
|
1982
|
-
"translate( " + // (titleBox.width - bbox.width) / 2 +
|
|
1983
|
-
(y.width < x.width ? 0 : -(x.width - y.width) / 2) + ", 0)"
|
|
1984
|
-
), y = r.node().getBBox(), r.attr(
|
|
1985
|
-
"transform",
|
|
1986
|
-
"translate(" + -y.width / 2 + ", " + (-y.height / 2 - m + 3) + ")"
|
|
1987
|
-
), o.attr("class", "outer title-state").attr("x", -y.width / 2 - m).attr("y", -y.height / 2 - m).attr("width", y.width + t.padding).attr("height", y.height + t.padding), s.attr("class", "divider").attr("x1", -y.width / 2 - m).attr("x2", y.width / 2 + m).attr("y1", -y.height / 2 - m + x.height + m).attr("y2", -y.height / 2 - m + x.height + m), C(t, o), t.intersect = function(k) {
|
|
1988
|
-
return I.rect(t, k);
|
|
1989
|
-
}, i;
|
|
1990
|
-
}, "rectWithTitle"), Ns = /* @__PURE__ */ u(async (e, t) => {
|
|
1991
|
-
const { shapeSvg: a, bbox: i } = await M(
|
|
1992
|
-
e,
|
|
1993
|
-
t,
|
|
1994
|
-
U(t, void 0),
|
|
1995
|
-
!0
|
|
1996
|
-
), o = i.height + t.padding, s = i.width + o / 4 + t.padding, r = a.insert("rect", ":first-child").attr("style", t.style).attr("rx", o / 2).attr("ry", o / 2).attr("x", -s / 2).attr("y", -o / 2).attr("width", s).attr("height", o);
|
|
1997
|
-
return C(t, r), t.intersect = function(n) {
|
|
1998
|
-
return I.rect(t, n);
|
|
1999
|
-
}, a;
|
|
2000
|
-
}, "stadium"), Ts = /* @__PURE__ */ u(async (e, t) => {
|
|
2001
|
-
const { shapeSvg: a, bbox: i, halfPadding: o } = await M(
|
|
2002
|
-
e,
|
|
2003
|
-
t,
|
|
2004
|
-
U(t, void 0),
|
|
2005
|
-
!0
|
|
2006
|
-
), s = a.insert("circle", ":first-child");
|
|
2007
|
-
return s.attr("style", t.style).attr("rx", t.rx).attr("ry", t.ry).attr("r", i.width / 2 + o).attr("width", i.width + t.padding).attr("height", i.height + t.padding), S.info("Circle main"), C(t, s), t.intersect = function(r) {
|
|
2008
|
-
return S.info("Circle intersect", t, i.width / 2 + o, r), I.circle(t, i.width / 2 + o, r);
|
|
2009
|
-
}, a;
|
|
2010
|
-
}, "circle"), Is = /* @__PURE__ */ u(async (e, t) => {
|
|
2011
|
-
const { shapeSvg: a, bbox: i, halfPadding: o } = await M(
|
|
2012
|
-
e,
|
|
2013
|
-
t,
|
|
2014
|
-
U(t, void 0),
|
|
2015
|
-
!0
|
|
2016
|
-
), s = 5, r = a.insert("g", ":first-child"), n = r.insert("circle"), l = r.insert("circle");
|
|
2017
|
-
return r.attr("class", t.class), n.attr("style", t.style).attr("rx", t.rx).attr("ry", t.ry).attr("r", i.width / 2 + o + s).attr("width", i.width + t.padding + s * 2).attr("height", i.height + t.padding + s * 2), l.attr("style", t.style).attr("rx", t.rx).attr("ry", t.ry).attr("r", i.width / 2 + o).attr("width", i.width + t.padding).attr("height", i.height + t.padding), S.info("DoubleCircle main"), C(t, n), t.intersect = function(h) {
|
|
2018
|
-
return S.info("DoubleCircle intersect", t, i.width / 2 + o + s, h), I.circle(t, i.width / 2 + o + s, h);
|
|
2019
|
-
}, a;
|
|
2020
|
-
}, "doublecircle"), Cs = /* @__PURE__ */ u(async (e, t) => {
|
|
2021
|
-
const { shapeSvg: a, bbox: i } = await M(
|
|
2022
|
-
e,
|
|
2023
|
-
t,
|
|
2024
|
-
U(t, void 0),
|
|
2025
|
-
!0
|
|
2026
|
-
), o = i.width + t.padding, s = i.height + t.padding, r = [
|
|
2027
|
-
{ x: 0, y: 0 },
|
|
2028
|
-
{ x: o, y: 0 },
|
|
2029
|
-
{ x: o, y: -s },
|
|
2030
|
-
{ x: 0, y: -s },
|
|
2031
|
-
{ x: 0, y: 0 },
|
|
2032
|
-
{ x: -8, y: 0 },
|
|
2033
|
-
{ x: o + 8, y: 0 },
|
|
2034
|
-
{ x: o + 8, y: -s },
|
|
2035
|
-
{ x: -8, y: -s },
|
|
2036
|
-
{ x: -8, y: 0 }
|
|
2037
|
-
], n = G(a, o, s, r);
|
|
2038
|
-
return n.attr("style", t.style), C(t, n), t.intersect = function(l) {
|
|
2039
|
-
return I.polygon(t, r, l);
|
|
2040
|
-
}, a;
|
|
2041
|
-
}, "subroutine"), Os = /* @__PURE__ */ u((e, t) => {
|
|
2042
|
-
const a = e.insert("g").attr("class", "node default").attr("id", t.domId || t.id), i = a.insert("circle", ":first-child");
|
|
2043
|
-
return i.attr("class", "state-start").attr("r", 7).attr("width", 14).attr("height", 14), C(t, i), t.intersect = function(o) {
|
|
2044
|
-
return I.circle(t, 7, o);
|
|
2045
|
-
}, a;
|
|
2046
|
-
}, "start"), Gt = /* @__PURE__ */ u((e, t, a) => {
|
|
2047
|
-
const i = e.insert("g").attr("class", "node default").attr("id", t.domId || t.id);
|
|
2048
|
-
let o = 70, s = 10;
|
|
2049
|
-
a === "LR" && (o = 10, s = 70);
|
|
2050
|
-
const r = i.append("rect").attr("x", -1 * o / 2).attr("y", -1 * s / 2).attr("width", o).attr("height", s).attr("class", "fork-join");
|
|
2051
|
-
return C(t, r), t.height = t.height + t.padding / 2, t.width = t.width + t.padding / 2, t.intersect = function(n) {
|
|
2052
|
-
return I.rect(t, n);
|
|
2053
|
-
}, i;
|
|
2054
|
-
}, "forkJoin"), Bs = /* @__PURE__ */ u((e, t) => {
|
|
2055
|
-
const a = e.insert("g").attr("class", "node default").attr("id", t.domId || t.id), i = a.insert("circle", ":first-child"), o = a.insert("circle", ":first-child");
|
|
2056
|
-
return o.attr("class", "state-start").attr("r", 7).attr("width", 14).attr("height", 14), i.attr("class", "state-end").attr("r", 5).attr("width", 10).attr("height", 10), C(t, o), t.intersect = function(s) {
|
|
2057
|
-
return I.circle(t, 7, s);
|
|
2058
|
-
}, a;
|
|
2059
|
-
}, "end"), As = /* @__PURE__ */ u(async (e, t) => {
|
|
2060
|
-
var a;
|
|
2061
|
-
const i = t.padding / 2, o = 4, s = 8;
|
|
2062
|
-
let r;
|
|
2063
|
-
t.classes ? r = "node " + t.classes : r = "node default";
|
|
2064
|
-
const n = e.insert("g").attr("class", r).attr("id", t.domId || t.id), l = n.insert("rect", ":first-child"), h = n.insert("line"), y = n.insert("line");
|
|
2065
|
-
let b = 0, x = o;
|
|
2066
|
-
const L = n.insert("g").attr("class", "label");
|
|
2067
|
-
let m = 0;
|
|
2068
|
-
const k = (a = t.classData.annotations) == null ? void 0 : a[0], _ = t.classData.annotations[0] ? "«" + t.classData.annotations[0] + "»" : "", N = L.node().appendChild(await X(_, t.labelStyle, !0, !0));
|
|
2069
|
-
let v = N.getBBox();
|
|
2070
|
-
if (V(z().flowchart.htmlLabels)) {
|
|
2071
|
-
const w = N.children[0], g = A(N);
|
|
2072
|
-
v = w.getBoundingClientRect(), g.attr("width", v.width), g.attr("height", v.height);
|
|
2073
|
-
}
|
|
2074
|
-
t.classData.annotations[0] && (x += v.height + o, b += v.width);
|
|
2075
|
-
let D = t.classData.label;
|
|
2076
|
-
t.classData.type !== void 0 && t.classData.type !== "" && (z().flowchart.htmlLabels ? D += "<" + t.classData.type + ">" : D += "<" + t.classData.type + ">");
|
|
2077
|
-
const d = L.node().appendChild(await X(D, t.labelStyle, !0, !0));
|
|
2078
|
-
A(d).attr("class", "classTitle");
|
|
2079
|
-
let p = d.getBBox();
|
|
2080
|
-
if (V(z().flowchart.htmlLabels)) {
|
|
2081
|
-
const w = d.children[0], g = A(d);
|
|
2082
|
-
p = w.getBoundingClientRect(), g.attr("width", p.width), g.attr("height", p.height);
|
|
2083
|
-
}
|
|
2084
|
-
x += p.height + o, p.width > b && (b = p.width);
|
|
2085
|
-
const f = [];
|
|
2086
|
-
t.classData.members.forEach(async (w) => {
|
|
2087
|
-
const g = w.getDisplayDetails();
|
|
2088
|
-
let B = g.displayText;
|
|
2089
|
-
z().flowchart.htmlLabels && (B = B.replace(/</g, "<").replace(/>/g, ">"));
|
|
2090
|
-
const P = L.node().appendChild(
|
|
2091
|
-
await X(
|
|
2092
|
-
B,
|
|
2093
|
-
g.cssStyle ? g.cssStyle : t.labelStyle,
|
|
2094
|
-
!0,
|
|
2095
|
-
!0
|
|
2096
|
-
)
|
|
2097
|
-
);
|
|
2098
|
-
let R = P.getBBox();
|
|
2099
|
-
if (V(z().flowchart.htmlLabels)) {
|
|
2100
|
-
const W = P.children[0], K = A(P);
|
|
2101
|
-
R = W.getBoundingClientRect(), K.attr("width", R.width), K.attr("height", R.height);
|
|
2102
|
-
}
|
|
2103
|
-
R.width > b && (b = R.width), x += R.height + o, f.push(P);
|
|
2104
|
-
}), x += s;
|
|
2105
|
-
const E = [];
|
|
2106
|
-
if (t.classData.methods.forEach(async (w) => {
|
|
2107
|
-
const g = w.getDisplayDetails();
|
|
2108
|
-
let B = g.displayText;
|
|
2109
|
-
z().flowchart.htmlLabels && (B = B.replace(/</g, "<").replace(/>/g, ">"));
|
|
2110
|
-
const P = L.node().appendChild(
|
|
2111
|
-
await X(
|
|
2112
|
-
B,
|
|
2113
|
-
g.cssStyle ? g.cssStyle : t.labelStyle,
|
|
2114
|
-
!0,
|
|
2115
|
-
!0
|
|
2116
|
-
)
|
|
2117
|
-
);
|
|
2118
|
-
let R = P.getBBox();
|
|
2119
|
-
if (V(z().flowchart.htmlLabels)) {
|
|
2120
|
-
const W = P.children[0], K = A(P);
|
|
2121
|
-
R = W.getBoundingClientRect(), K.attr("width", R.width), K.attr("height", R.height);
|
|
2122
|
-
}
|
|
2123
|
-
R.width > b && (b = R.width), x += R.height + o, E.push(P);
|
|
2124
|
-
}), x += s, k) {
|
|
2125
|
-
let w = (b - v.width) / 2;
|
|
2126
|
-
A(N).attr(
|
|
2127
|
-
"transform",
|
|
2128
|
-
"translate( " + (-1 * b / 2 + w) + ", " + -1 * x / 2 + ")"
|
|
2129
|
-
), m = v.height + o;
|
|
2130
|
-
}
|
|
2131
|
-
let c = (b - p.width) / 2;
|
|
2132
|
-
return A(d).attr(
|
|
2133
|
-
"transform",
|
|
2134
|
-
"translate( " + (-1 * b / 2 + c) + ", " + (-1 * x / 2 + m) + ")"
|
|
2135
|
-
), m += p.height + o, h.attr("class", "divider").attr("x1", -b / 2 - i).attr("x2", b / 2 + i).attr("y1", -x / 2 - i + s + m).attr("y2", -x / 2 - i + s + m), m += s, f.forEach((w) => {
|
|
2136
|
-
A(w).attr(
|
|
2137
|
-
"transform",
|
|
2138
|
-
"translate( " + -b / 2 + ", " + (-1 * x / 2 + m + s / 2) + ")"
|
|
2139
|
-
);
|
|
2140
|
-
const g = w == null ? void 0 : w.getBBox();
|
|
2141
|
-
m += ((g == null ? void 0 : g.height) ?? 0) + o;
|
|
2142
|
-
}), m += s, y.attr("class", "divider").attr("x1", -b / 2 - i).attr("x2", b / 2 + i).attr("y1", -x / 2 - i + s + m).attr("y2", -x / 2 - i + s + m), m += s, E.forEach((w) => {
|
|
2143
|
-
A(w).attr(
|
|
2144
|
-
"transform",
|
|
2145
|
-
"translate( " + -b / 2 + ", " + (-1 * x / 2 + m) + ")"
|
|
2146
|
-
);
|
|
2147
|
-
const g = w == null ? void 0 : w.getBBox();
|
|
2148
|
-
m += ((g == null ? void 0 : g.height) ?? 0) + o;
|
|
2149
|
-
}), l.attr("style", t.style).attr("class", "outer title-state").attr("x", -b / 2 - i).attr("y", -(x / 2) - i).attr("width", b + t.padding).attr("height", x + t.padding), C(t, l), t.intersect = function(w) {
|
|
2150
|
-
return I.rect(t, w);
|
|
2151
|
-
}, n;
|
|
2152
|
-
}, "class_box"), Vt = {
|
|
2153
|
-
rhombus: Zt,
|
|
2154
|
-
composite: Es,
|
|
2155
|
-
question: Zt,
|
|
2156
|
-
rect: vs,
|
|
2157
|
-
labelRect: Ds,
|
|
2158
|
-
rectWithTitle: $s,
|
|
2159
|
-
choice: ps,
|
|
2160
|
-
circle: Ts,
|
|
2161
|
-
doublecircle: Is,
|
|
2162
|
-
stadium: Ns,
|
|
2163
|
-
hexagon: bs,
|
|
2164
|
-
block_arrow: xs,
|
|
2165
|
-
rect_left_inv_arrow: fs,
|
|
2166
|
-
lean_right: ms,
|
|
2167
|
-
lean_left: ws,
|
|
2168
|
-
trapezoid: Ss,
|
|
2169
|
-
inv_trapezoid: Ls,
|
|
2170
|
-
rect_right_inv_arrow: ks,
|
|
2171
|
-
cylinder: _s,
|
|
2172
|
-
start: Os,
|
|
2173
|
-
end: Bs,
|
|
2174
|
-
note: ys,
|
|
2175
|
-
subroutine: Cs,
|
|
2176
|
-
fork: Gt,
|
|
2177
|
-
join: Gt,
|
|
2178
|
-
class_box: As
|
|
2179
|
-
}, ct = {}, Se = /* @__PURE__ */ u(async (e, t, a) => {
|
|
2180
|
-
let i, o;
|
|
2181
|
-
if (t.link) {
|
|
2182
|
-
let s;
|
|
2183
|
-
z().securityLevel === "sandbox" ? s = "_top" : t.linkTarget && (s = t.linkTarget || "_blank"), i = e.insert("svg:a").attr("xlink:href", t.link).attr("target", s), o = await Vt[t.shape](i, t, a);
|
|
2184
|
-
} else
|
|
2185
|
-
o = await Vt[t.shape](e, t, a), i = o;
|
|
2186
|
-
return t.tooltip && o.attr("title", t.tooltip), t.class && o.attr("class", "node default " + t.class), ct[t.id] = i, t.haveCallback && ct[t.id].attr("class", ct[t.id].attr("class") + " clickable"), i;
|
|
2187
|
-
}, "insertNode"), zs = /* @__PURE__ */ u((e) => {
|
|
2188
|
-
const t = ct[e.id];
|
|
2189
|
-
S.trace(
|
|
2190
|
-
"Transforming node",
|
|
2191
|
-
e.diff,
|
|
2192
|
-
e,
|
|
2193
|
-
"translate(" + (e.x - e.width / 2 - 5) + ", " + e.width / 2 + ")"
|
|
2194
|
-
);
|
|
2195
|
-
const a = 8, i = e.diff || 0;
|
|
2196
|
-
return e.clusterNode ? t.attr(
|
|
2197
|
-
"transform",
|
|
2198
|
-
"translate(" + (e.x + i - e.width / 2) + ", " + (e.y - e.height / 2 - a) + ")"
|
|
2199
|
-
) : t.attr("transform", "translate(" + e.x + ", " + e.y + ")"), i;
|
|
2200
|
-
}, "positionNode");
|
|
2201
|
-
function It(e, t, a = !1) {
|
|
2202
|
-
var i, o, s;
|
|
2203
|
-
const r = e;
|
|
2204
|
-
let n = "default";
|
|
2205
|
-
(((i = r == null ? void 0 : r.classes) == null ? void 0 : i.length) || 0) > 0 && (n = ((r == null ? void 0 : r.classes) ?? []).join(" ")), n = n + " flowchart-label";
|
|
2206
|
-
let l = 0, h = "", y;
|
|
2207
|
-
switch (r.type) {
|
|
2208
|
-
case "round":
|
|
2209
|
-
l = 5, h = "rect";
|
|
2210
|
-
break;
|
|
2211
|
-
case "composite":
|
|
2212
|
-
l = 0, h = "composite", y = 0;
|
|
2213
|
-
break;
|
|
2214
|
-
case "square":
|
|
2215
|
-
h = "rect";
|
|
2216
|
-
break;
|
|
2217
|
-
case "diamond":
|
|
2218
|
-
h = "question";
|
|
2219
|
-
break;
|
|
2220
|
-
case "hexagon":
|
|
2221
|
-
h = "hexagon";
|
|
2222
|
-
break;
|
|
2223
|
-
case "block_arrow":
|
|
2224
|
-
h = "block_arrow";
|
|
2225
|
-
break;
|
|
2226
|
-
case "odd":
|
|
2227
|
-
h = "rect_left_inv_arrow";
|
|
2228
|
-
break;
|
|
2229
|
-
case "lean_right":
|
|
2230
|
-
h = "lean_right";
|
|
2231
|
-
break;
|
|
2232
|
-
case "lean_left":
|
|
2233
|
-
h = "lean_left";
|
|
2234
|
-
break;
|
|
2235
|
-
case "trapezoid":
|
|
2236
|
-
h = "trapezoid";
|
|
2237
|
-
break;
|
|
2238
|
-
case "inv_trapezoid":
|
|
2239
|
-
h = "inv_trapezoid";
|
|
2240
|
-
break;
|
|
2241
|
-
case "rect_left_inv_arrow":
|
|
2242
|
-
h = "rect_left_inv_arrow";
|
|
2243
|
-
break;
|
|
2244
|
-
case "circle":
|
|
2245
|
-
h = "circle";
|
|
2246
|
-
break;
|
|
2247
|
-
case "ellipse":
|
|
2248
|
-
h = "ellipse";
|
|
2249
|
-
break;
|
|
2250
|
-
case "stadium":
|
|
2251
|
-
h = "stadium";
|
|
2252
|
-
break;
|
|
2253
|
-
case "subroutine":
|
|
2254
|
-
h = "subroutine";
|
|
2255
|
-
break;
|
|
2256
|
-
case "cylinder":
|
|
2257
|
-
h = "cylinder";
|
|
2258
|
-
break;
|
|
2259
|
-
case "group":
|
|
2260
|
-
h = "rect";
|
|
2261
|
-
break;
|
|
2262
|
-
case "doublecircle":
|
|
2263
|
-
h = "doublecircle";
|
|
2264
|
-
break;
|
|
2265
|
-
default:
|
|
2266
|
-
h = "rect";
|
|
2267
|
-
}
|
|
2268
|
-
const b = Te((r == null ? void 0 : r.styles) ?? []), x = r.label, L = r.size ?? { width: 0, height: 0, x: 0, y: 0 };
|
|
2269
|
-
return {
|
|
2270
|
-
labelStyle: b.labelStyle,
|
|
2271
|
-
shape: h,
|
|
2272
|
-
labelText: x,
|
|
2273
|
-
rx: l,
|
|
2274
|
-
ry: l,
|
|
2275
|
-
class: n,
|
|
2276
|
-
style: b.style,
|
|
2277
|
-
id: r.id,
|
|
2278
|
-
directions: r.directions,
|
|
2279
|
-
width: L.width,
|
|
2280
|
-
height: L.height,
|
|
2281
|
-
x: L.x,
|
|
2282
|
-
y: L.y,
|
|
2283
|
-
positioned: a,
|
|
2284
|
-
intersect: void 0,
|
|
2285
|
-
type: r.type,
|
|
2286
|
-
padding: y ?? ((s = (o = st()) == null ? void 0 : o.block) == null ? void 0 : s.padding) ?? 0
|
|
2287
|
-
};
|
|
2288
|
-
}
|
|
2289
|
-
u(It, "getNodeFromBlock");
|
|
2290
|
-
async function Le(e, t, a) {
|
|
2291
|
-
const i = It(t, a, !1);
|
|
2292
|
-
if (i.type === "group")
|
|
2293
|
-
return;
|
|
2294
|
-
const o = st(), s = await Se(e, i, { config: o }), r = s.node().getBBox(), n = a.getBlock(i.id);
|
|
2295
|
-
n.size = { width: r.width, height: r.height, x: 0, y: 0, node: s }, a.setBlock(n), s.remove();
|
|
2296
|
-
}
|
|
2297
|
-
u(Le, "calculateBlockSize");
|
|
2298
|
-
async function ke(e, t, a) {
|
|
2299
|
-
const i = It(t, a, !0);
|
|
2300
|
-
if (a.getBlock(i.id).type !== "space") {
|
|
2301
|
-
const o = st();
|
|
2302
|
-
await Se(e, i, { config: o }), t.intersect = i == null ? void 0 : i.intersect, zs(i);
|
|
2303
|
-
}
|
|
2304
|
-
}
|
|
2305
|
-
u(ke, "insertBlockPositioned");
|
|
2306
|
-
async function yt(e, t, a, i) {
|
|
2307
|
-
for (const o of t)
|
|
2308
|
-
await i(e, o, a), o.children && await yt(e, o.children, a, i);
|
|
2309
|
-
}
|
|
2310
|
-
u(yt, "performOperations");
|
|
2311
|
-
async function _e(e, t, a) {
|
|
2312
|
-
await yt(e, t, a, Le);
|
|
2313
|
-
}
|
|
2314
|
-
u(_e, "calculateBlockSizes");
|
|
2315
|
-
async function ve(e, t, a) {
|
|
2316
|
-
await yt(e, t, a, ke);
|
|
2317
|
-
}
|
|
2318
|
-
u(ve, "insertBlocks");
|
|
2319
|
-
async function Ee(e, t, a, i, o) {
|
|
2320
|
-
const s = new qe({
|
|
2321
|
-
multigraph: !0,
|
|
2322
|
-
compound: !0
|
|
2323
|
-
});
|
|
2324
|
-
s.setGraph({
|
|
2325
|
-
rankdir: "TB",
|
|
2326
|
-
nodesep: 10,
|
|
2327
|
-
ranksep: 10,
|
|
2328
|
-
marginx: 8,
|
|
2329
|
-
marginy: 8
|
|
2330
|
-
});
|
|
2331
|
-
for (const r of a)
|
|
2332
|
-
r.size && s.setNode(r.id, {
|
|
2333
|
-
width: r.size.width,
|
|
2334
|
-
height: r.size.height,
|
|
2335
|
-
intersect: r.intersect
|
|
2336
|
-
});
|
|
2337
|
-
for (const r of t)
|
|
2338
|
-
if (r.start && r.end) {
|
|
2339
|
-
const n = i.getBlock(r.start), l = i.getBlock(r.end);
|
|
2340
|
-
if (n != null && n.size && l != null && l.size) {
|
|
2341
|
-
const h = n.size, y = l.size, b = [
|
|
2342
|
-
{ x: h.x, y: h.y },
|
|
2343
|
-
{ x: h.x + (y.x - h.x) / 2, y: h.y + (y.y - h.y) / 2 },
|
|
2344
|
-
{ x: y.x, y: y.y }
|
|
2345
|
-
];
|
|
2346
|
-
ss(
|
|
2347
|
-
e,
|
|
2348
|
-
{ v: r.start, w: r.end, name: r.id },
|
|
2349
|
-
{
|
|
2350
|
-
...r,
|
|
2351
|
-
arrowTypeEnd: r.arrowTypeEnd,
|
|
2352
|
-
arrowTypeStart: r.arrowTypeStart,
|
|
2353
|
-
points: b,
|
|
2354
|
-
classes: "edge-thickness-normal edge-pattern-solid flowchart-link LS-a1 LE-b1"
|
|
2355
|
-
},
|
|
2356
|
-
void 0,
|
|
2357
|
-
"block",
|
|
2358
|
-
s,
|
|
2359
|
-
o
|
|
2360
|
-
), r.label && (await ts(e, {
|
|
2361
|
-
...r,
|
|
2362
|
-
label: r.label,
|
|
2363
|
-
labelStyle: "stroke: #333; stroke-width: 1.5px;fill:none;",
|
|
2364
|
-
arrowTypeEnd: r.arrowTypeEnd,
|
|
2365
|
-
arrowTypeStart: r.arrowTypeStart,
|
|
2366
|
-
points: b,
|
|
2367
|
-
classes: "edge-thickness-normal edge-pattern-solid flowchart-link LS-a1 LE-b1"
|
|
2368
|
-
}), es(
|
|
2369
|
-
{ ...r, x: b[1].x, y: b[1].y },
|
|
2370
|
-
{
|
|
2371
|
-
originalPath: b
|
|
2372
|
-
}
|
|
2373
|
-
));
|
|
2374
|
-
}
|
|
2375
|
-
}
|
|
2376
|
-
}
|
|
2377
|
-
u(Ee, "insertEdges");
|
|
2378
|
-
var Rs = /* @__PURE__ */ u(function(e, t) {
|
|
2379
|
-
return t.db.getClasses();
|
|
2380
|
-
}, "getClasses"), Ms = /* @__PURE__ */ u(async function(e, t, a, i) {
|
|
2381
|
-
const { securityLevel: o, block: s } = st(), r = i.db;
|
|
2382
|
-
let n;
|
|
2383
|
-
o === "sandbox" && (n = A("#i" + t));
|
|
2384
|
-
const l = o === "sandbox" ? A(n.nodes()[0].contentDocument.body) : A("body"), h = o === "sandbox" ? l.select(`[id="${t}"]`) : A(`[id="${t}"]`);
|
|
2385
|
-
Ga(h, ["point", "circle", "cross"], i.type, t);
|
|
2386
|
-
const y = r.getBlocks(), b = r.getBlocksFlat(), x = r.getEdges(), L = h.insert("g").attr("class", "block");
|
|
2387
|
-
await _e(L, y, r);
|
|
2388
|
-
const m = ue(r);
|
|
2389
|
-
if (await ve(L, y, r), await Ee(L, x, b, r, t), m) {
|
|
2390
|
-
const k = m, _ = Math.max(1, Math.round(0.125 * (k.width / k.height))), N = k.height + _ + 10, v = k.width + 10, { useMaxWidth: D } = s;
|
|
2391
|
-
Ae(h, N, v, !!D), S.debug("Here Bounds", m, k), h.attr(
|
|
2392
|
-
"viewBox",
|
|
2393
|
-
`${k.x - 5} ${k.y - 5} ${k.width + 10} ${k.height + 10}`
|
|
2394
|
-
);
|
|
2395
|
-
}
|
|
2396
|
-
}, "draw"), Ps = {
|
|
2397
|
-
draw: Ms,
|
|
2398
|
-
getClasses: Rs
|
|
2399
|
-
}, Ks = {
|
|
2400
|
-
parser: ba,
|
|
2401
|
-
db: Aa,
|
|
2402
|
-
renderer: Ps,
|
|
2403
|
-
styles: Ra
|
|
2404
|
-
};
|
|
2405
|
-
export {
|
|
2406
|
-
Ks as diagram
|
|
2407
|
-
};
|