@pb33f/cowboy-components 0.13.0 → 0.14.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/{_baseUniq-D4w9OEfi.cjs → _baseUniq-BCBHARBa.cjs} +1 -1
- package/dist/{_baseUniq-CwhnPBuZ.js → _baseUniq-DxKTOiyd.js} +74 -74
- package/dist/arc-BuSUjh0s.js +84 -0
- package/dist/arc-CH-0H1TF.cjs +1 -0
- package/dist/{architecture-YZFGNWBL-BSnkfFiL.cjs → architecture-YZFGNWBL-BPn_727R.cjs} +1 -1
- package/dist/{architecture-YZFGNWBL-Cv-BGlq1.js → architecture-YZFGNWBL-BTpBH05L.js} +1 -1
- package/dist/{architectureDiagram-Q4EWVU46-Bi5_oLbN.js → architectureDiagram-Q4EWVU46-CYewkKfJ.js} +4 -4
- package/dist/{architectureDiagram-Q4EWVU46-7qN01149.cjs → architectureDiagram-Q4EWVU46-DiD3e6PQ.cjs} +1 -1
- package/dist/blockDiagram-DXYQGD6D-B1FzGfTA.cjs +132 -0
- package/dist/{blockDiagram-DXYQGD6D-DPZDIH8c.js → blockDiagram-DXYQGD6D-C1Xzgnrv.js} +18 -17
- package/dist/{c4Diagram-AHTNJAMY-CzTGAiLN.js → c4Diagram-AHTNJAMY-L6Az2dvx.js} +2 -2
- package/dist/{c4Diagram-AHTNJAMY-vYFfYNT2.cjs → c4Diagram-AHTNJAMY-c5bsYT5q.cjs} +1 -1
- package/dist/change-list-item-4xBSo3-U.cjs +4586 -0
- package/dist/change-list-item-Bu_mPv-k.js +19108 -0
- package/dist/{channel-xkWi7eyU.cjs → channel-BR_Krb9l.cjs} +1 -1
- package/dist/channel-Bo_TnECw.js +5 -0
- package/dist/{chunk-4BX2VUAB-D5fkGnKT.cjs → chunk-4BX2VUAB-B1uaSl0e.cjs} +1 -1
- package/dist/{chunk-4BX2VUAB-Crsil6rQ.js → chunk-4BX2VUAB-ClX8oE7L.js} +1 -1
- package/dist/{chunk-4TB4RGXK-BK_Zwn1u.cjs → chunk-4TB4RGXK-D0JpJZOs.cjs} +1 -1
- package/dist/{chunk-4TB4RGXK-CqgUAjqs.js → chunk-4TB4RGXK-DzEEAztK.js} +5 -5
- package/dist/{chunk-55IACEB6-CVOd63y7.cjs → chunk-55IACEB6-595ZDi6s.cjs} +1 -1
- package/dist/{chunk-55IACEB6-BHM-gGnN.js → chunk-55IACEB6-DL_DHCyZ.js} +1 -1
- package/dist/{chunk-EDXVE4YY-XhKW7gue.js → chunk-EDXVE4YY-BII9TpbV.js} +1 -1
- package/dist/{chunk-EDXVE4YY-Cg8LIvnn.cjs → chunk-EDXVE4YY-CQbtNtXr.cjs} +1 -1
- package/dist/{chunk-FMBD7UC4-ClqO-tFT.cjs → chunk-FMBD7UC4-BO92YnlB.cjs} +1 -1
- package/dist/{chunk-FMBD7UC4-DZgUWYcc.js → chunk-FMBD7UC4-cN7XywSK.js} +1 -1
- package/dist/{chunk-OYMX7WX6-DPeZUR-5.cjs → chunk-OYMX7WX6-BxqhsynN.cjs} +1 -1
- package/dist/{chunk-OYMX7WX6-DDhPRCvb.js → chunk-OYMX7WX6-DTXPUCgU.js} +35 -35
- package/dist/{chunk-QZHKN3VN-CEfUDcqe.js → chunk-QZHKN3VN-Biauj3yN.js} +1 -1
- package/dist/{chunk-QZHKN3VN-DfLK5brs.cjs → chunk-QZHKN3VN-C-mnteH7.cjs} +1 -1
- package/dist/{chunk-YZCP3GAM-CUdZyEqp.cjs → chunk-YZCP3GAM-WiD5REgL.cjs} +1 -1
- package/dist/{chunk-YZCP3GAM-BseNjeX_.js → chunk-YZCP3GAM-eo-UEr6G.js} +1 -1
- package/dist/{classDiagram-v2-HSJHXN6E-DY4pBvUq.js → classDiagram-6PBFFD2Q-8kzuzUL4.js} +2 -2
- package/dist/{classDiagram-6PBFFD2Q-DANanUVD.cjs → classDiagram-6PBFFD2Q-ay2Efc0y.cjs} +1 -1
- package/dist/{classDiagram-6PBFFD2Q-DY4pBvUq.js → classDiagram-v2-HSJHXN6E-8kzuzUL4.js} +2 -2
- package/dist/{classDiagram-v2-HSJHXN6E-DANanUVD.cjs → classDiagram-v2-HSJHXN6E-ay2Efc0y.cjs} +1 -1
- package/dist/{clone-Dd6Qonyi.js → clone-CC2YvoOD.js} +1 -1
- package/dist/clone-DAIpdsWe.cjs +1 -0
- package/dist/components/diff-viewer/diff-viewer.d.ts +3 -0
- package/dist/components/diff-viewer/diff-viewer.js +34 -37
- package/dist/components/diff-viewer/line-renderer.d.ts +15 -0
- package/dist/components/diff-viewer/line-renderer.js +49 -0
- package/dist/components/footer/footer.d.ts +3 -0
- package/dist/components/footer/footer.js +10 -4
- package/dist/components/logo-wall/logos/apache.svg.d.ts +2 -0
- package/dist/components/logo-wall/logos/apache.svg.js +100 -0
- package/dist/components/logo-wall/logos/apideck.svg.d.ts +2 -0
- package/dist/components/logo-wall/logos/apideck.svg.js +14 -0
- package/dist/components/logo-wall/logos/apigee.svg.d.ts +2 -0
- package/dist/components/logo-wall/logos/apigee.svg.js +16 -0
- package/dist/components/logo-wall/logos/bump.svg.d.ts +2 -0
- package/dist/components/logo-wall/logos/bump.svg.js +14 -0
- package/dist/components/logo-wall/logos/bytebase.svg.d.ts +2 -0
- package/dist/components/logo-wall/logos/bytebase.svg.js +11 -0
- package/dist/components/logo-wall/logos/chainlink.svg.d.ts +2 -0
- package/dist/components/logo-wall/logos/chainlink.svg.js +18 -0
- package/dist/components/logo-wall/logos/cisco.svg.d.ts +2 -0
- package/dist/components/logo-wall/logos/cisco.svg.js +14 -0
- package/dist/components/logo-wall/logos/elastic.svg.d.ts +2 -0
- package/dist/components/logo-wall/logos/elastic.svg.js +14 -0
- package/dist/components/logo-wall/logos/google.svg.d.ts +2 -0
- package/dist/components/logo-wall/logos/google.svg.js +12 -0
- package/dist/components/logo-wall/logos/grafana.svg.d.ts +2 -0
- package/dist/components/logo-wall/logos/grafana.svg.js +14 -0
- package/dist/components/logo-wall/logos/hashicorp.svg.d.ts +2 -0
- package/dist/components/logo-wall/logos/hashicorp.svg.js +18 -0
- package/dist/components/logo-wall/logos/hasura.svg.d.ts +2 -0
- package/dist/components/logo-wall/logos/hasura.svg.js +14 -0
- package/dist/components/logo-wall/logos/jpmorgan.svg.d.ts +2 -0
- package/dist/components/logo-wall/logos/jpmorgan.svg.js +22 -0
- package/dist/components/logo-wall/logos/kong.svg.d.ts +2 -0
- package/dist/components/logo-wall/logos/kong.svg.js +13 -0
- package/dist/components/logo-wall/logos/mongodb.svg.d.ts +2 -0
- package/dist/components/logo-wall/logos/mongodb.svg.js +17 -0
- package/dist/components/logo-wall/logos/nhost.svg.d.ts +2 -0
- package/dist/components/logo-wall/logos/nhost.svg.js +9 -0
- package/dist/components/logo-wall/logos/okta.svg.d.ts +2 -0
- package/dist/components/logo-wall/logos/okta.svg.js +8 -0
- package/dist/components/logo-wall/logos/opentelemetry.svg.d.ts +2 -0
- package/dist/components/logo-wall/logos/opentelemetry.svg.js +8 -0
- package/dist/components/logo-wall/logos/prometheus.svg.d.ts +2 -0
- package/dist/components/logo-wall/logos/prometheus.svg.js +8 -0
- package/dist/components/logo-wall/logos/pulumi.svg.d.ts +2 -0
- package/dist/components/logo-wall/logos/pulumi.svg.js +10 -0
- package/dist/components/logo-wall/logos/redhat.svg.d.ts +2 -0
- package/dist/components/logo-wall/logos/redhat.svg.js +8 -0
- package/dist/components/logo-wall/logos/scalar.svg.d.ts +2 -0
- package/dist/components/logo-wall/logos/scalar.svg.js +19 -0
- package/dist/components/logo-wall/logos/splunk.svg.d.ts +2 -0
- package/dist/components/logo-wall/logos/splunk.svg.js +8 -0
- package/dist/components/logo-wall/logos/unkey.svg.d.ts +2 -0
- package/dist/components/logo-wall/logos/unkey.svg.js +15 -0
- package/dist/components/logo-wall/logowall.d.ts +2 -24
- package/dist/components/logo-wall/logowall.js +58 -373
- package/dist/components/model-tree/tree.js +1 -2
- package/dist/components/premium-gate/premium-gate.css.js +18 -1
- package/dist/components/premium-gate/premium-gate.js +2 -2
- package/dist/components/problem-list/problem-item.js +3 -2
- package/dist/components/problem-list/problem-list.d.ts +2 -0
- package/dist/components/problem-list/problem-list.js +26 -7
- package/dist/components/problems-overview/problem-overview-group.js +2 -1
- package/dist/components/visualizer/edge.d.ts +6 -2
- package/dist/components/visualizer/edge.js +26 -4
- package/dist/components/visualizer/equalizer.css.js +11 -2
- package/dist/components/visualizer/explorer.d.ts +3 -1
- package/dist/components/visualizer/explorer.js +51 -59
- package/dist/components/visualizer/nodes/change-view-node.d.ts +2 -2
- package/dist/components/visualizer/nodes/change-view-node.js +10 -6
- package/dist/components/visualizer/nodes/graph-node.d.ts +12 -8
- package/dist/components/visualizer/nodes/graph-node.js +47 -25
- package/dist/components/visualizer/nodes/schema.d.ts +7 -0
- package/dist/components/visualizer/nodes/schema.js +81 -59
- package/dist/components/visualizer/shared.css.js +48 -10
- package/dist/components/visualizer/viewport-position.d.ts +28 -0
- package/dist/components/visualizer/viewport-position.js +38 -0
- package/dist/components/workspaces/workspace-view.js +10 -7
- package/dist/components/yaml-viewer/yaml-viewer.css.d.ts +2 -0
- package/dist/components/yaml-viewer/yaml-viewer.css.js +45 -0
- package/dist/components/yaml-viewer/yaml-viewer.d.ts +22 -0
- package/dist/components/yaml-viewer/yaml-viewer.js +86 -0
- package/dist/controllers/problem-controller.d.ts +1 -0
- package/dist/controllers/problem-controller.js +40 -24
- package/dist/{cose-bilkent-S5V4N54A-CPd0mzpZ.js → cose-bilkent-S5V4N54A-BvU_SKfP.js} +2 -2
- package/dist/{cose-bilkent-S5V4N54A-BEI30FIt.cjs → cose-bilkent-S5V4N54A-CjLPT2aq.cjs} +1 -1
- package/dist/{cowboy-components-C1bHeXpH.js → cowboy-components-B5MDHQs5.js} +8691 -8836
- package/dist/{cowboy-components-BDlH5KPd.cjs → cowboy-components-DMQv-nwp.cjs} +561 -489
- package/dist/{dagre-KV5264BT-lXj1bQdQ.cjs → dagre-KV5264BT-BJ3g2OfF.cjs} +1 -1
- package/dist/{dagre-KV5264BT-DKYFh03U.js → dagre-KV5264BT-CZZ7IWMJ.js} +29 -29
- package/dist/{diagram-5BDNPKRD-B5z67jan.js → diagram-5BDNPKRD-BtgWDNH6.js} +4 -4
- package/dist/{diagram-5BDNPKRD-BxdT4j_p.cjs → diagram-5BDNPKRD-C8f_rKrj.cjs} +1 -1
- package/dist/{diagram-G4DWMVQ6-CYhKfvVo.cjs → diagram-G4DWMVQ6-CdbbbjZ1.cjs} +1 -1
- package/dist/{diagram-G4DWMVQ6-CW505eM5.js → diagram-G4DWMVQ6-Cvo7MOEn.js} +4 -4
- package/dist/{diagram-MMDJMWI5-CguvhYVm.js → diagram-MMDJMWI5-BBZMNBAZ.js} +3 -3
- package/dist/{diagram-MMDJMWI5-CnbCy2d4.cjs → diagram-MMDJMWI5-CmuOqtUd.cjs} +1 -1
- package/dist/{diagram-TYMM5635-CTqk1SDy.cjs → diagram-TYMM5635-BDWJ5rTp.cjs} +1 -1
- package/dist/{diagram-TYMM5635-DNaputK9.js → diagram-TYMM5635-BJ6YAfrg.js} +3 -3
- package/dist/{erDiagram-SMLLAGMA-CbVmsYT2.js → erDiagram-SMLLAGMA-CYctRkDG.js} +4 -4
- package/dist/{erDiagram-SMLLAGMA-C8J_QyFx.cjs → erDiagram-SMLLAGMA-oQiAbd77.cjs} +1 -1
- package/dist/events/doctor.d.ts +2 -1
- package/dist/factories/explorer-component-factory.d.ts +2 -1
- package/dist/factories/explorer-component-factory.js +1 -0
- package/dist/{flowDiagram-DWJPFMVM-CilWme2B.cjs → flowDiagram-DWJPFMVM-Cl2ZAgx-.cjs} +1 -1
- package/dist/{flowDiagram-DWJPFMVM-CzhP7Mva.js → flowDiagram-DWJPFMVM-XzVvDcKE.js} +6 -6
- package/dist/{ganttDiagram-T4ZO3ILL-D1VjNn5T.js → ganttDiagram-T4ZO3ILL-Bw3whz8Z.js} +3 -3
- package/dist/{ganttDiagram-T4ZO3ILL-CJPTfw3M.cjs → ganttDiagram-T4ZO3ILL-D6p69Xut.cjs} +1 -1
- package/dist/{gitGraph-7Q5UKJZL-KIImqmsm.js → gitGraph-7Q5UKJZL-CV8uXlc6.js} +1 -1
- package/dist/{gitGraph-7Q5UKJZL-Dt7RPGLj.cjs → gitGraph-7Q5UKJZL-Dc00T47S.cjs} +1 -1
- package/dist/{gitGraphDiagram-UUTBAWPF-RgZxgljz.cjs → gitGraphDiagram-UUTBAWPF-DO7-Vg9n.cjs} +1 -1
- package/dist/{gitGraphDiagram-UUTBAWPF-oNmbFzsW.js → gitGraphDiagram-UUTBAWPF-DyF52xzw.js} +4 -4
- package/dist/{graph-CFIa3BqY.js → graph-BNtv6wPN.js} +43 -43
- package/dist/{graph-D7t_ZgqQ.cjs → graph-nnOjqfSF.cjs} +1 -1
- package/dist/info-OMHHGYJF-BEJOj8rC.js +5 -0
- package/dist/{info-OMHHGYJF-DNwPREtC.cjs → info-OMHHGYJF-DenwEztT.cjs} +1 -1
- package/dist/{infoDiagram-42DDH7IO-xpnPsX13.cjs → infoDiagram-42DDH7IO-CDwaPJgE.cjs} +1 -1
- package/dist/{infoDiagram-42DDH7IO-D6tfy_kQ.js → infoDiagram-42DDH7IO-D5ZWT_PY.js} +2 -2
- package/dist/{ishikawaDiagram-UXIWVN3A-1C3ML4wN.js → ishikawaDiagram-UXIWVN3A-DO1TQj8y.js} +1 -1
- package/dist/{ishikawaDiagram-UXIWVN3A-cN7Egzi1.cjs → ishikawaDiagram-UXIWVN3A-DgxKja6G.cjs} +1 -1
- package/dist/{journeyDiagram-VCZTEJTY-BBnQnZeo.js → journeyDiagram-VCZTEJTY-BOrvmHFC.js} +4 -4
- package/dist/{journeyDiagram-VCZTEJTY-CuHlve7g.cjs → journeyDiagram-VCZTEJTY-CJCEu2Bp.cjs} +1 -1
- package/dist/{kanban-definition-6JOO6SKY-w_-A-pcU.cjs → kanban-definition-6JOO6SKY-DEuqG8My.cjs} +1 -1
- package/dist/{kanban-definition-6JOO6SKY-CIUOm1v3.js → kanban-definition-6JOO6SKY-DbcLaE1y.js} +22 -22
- package/dist/{layout-DkbTnSOk.cjs → layout-C5IxZs51.cjs} +1 -1
- package/dist/{layout-B94Gbndw.js → layout-US8yryxu.js} +89 -89
- package/dist/linear-Bmlq6WJ8.cjs +1 -0
- package/dist/{linear-ofqYQwLM.js → linear-D6nUCk2i.js} +26 -26
- package/dist/{mermaid-parser.core-D5yJiPW9.cjs → mermaid-parser.core-COvBhcPG.cjs} +2 -2
- package/dist/{mermaid-parser.core-SWTLxzuR.js → mermaid-parser.core-DvOBQD0s.js} +13 -13
- package/dist/{min-CCJ14kSC.cjs → min-BeG6JEx2.cjs} +1 -1
- package/dist/{min-BVt52F4Z.js → min-gCZaz5eW.js} +8 -8
- package/dist/{mindmap-definition-QFDTVHPH-BBABzpZ_.js → mindmap-definition-QFDTVHPH-Bf7uOPBO.js} +11 -11
- package/dist/{mindmap-definition-QFDTVHPH-DkHlEc6j.cjs → mindmap-definition-QFDTVHPH-Bh_mtad8.cjs} +1 -1
- package/dist/{packet-4T2RLAQJ-C_GHj8I6.js → packet-4T2RLAQJ-CnjxgpUP.js} +1 -1
- package/dist/{packet-4T2RLAQJ-D-3BTAOL.cjs → packet-4T2RLAQJ-EX3JjNtR.cjs} +1 -1
- package/dist/pie-ZZUOXDRM-B0-esN8S.js +5 -0
- package/dist/{pie-ZZUOXDRM-CCr4-X6f.cjs → pie-ZZUOXDRM-S9g0lXgu.cjs} +1 -1
- package/dist/pieDiagram-DEJITSTG-An0q-g5y.cjs +30 -0
- package/dist/{pieDiagram-DEJITSTG-oeQHkFGB.js → pieDiagram-DEJITSTG-DIkSdQCd.js} +43 -42
- package/dist/{quadrantDiagram-34T5L4WZ-CHmpNV-R.cjs → quadrantDiagram-34T5L4WZ-B5f35ihC.cjs} +1 -1
- package/dist/{quadrantDiagram-34T5L4WZ-OYjSZG43.js → quadrantDiagram-34T5L4WZ-CBlxIaIn.js} +2 -2
- package/dist/radar-PYXPWWZC-1Ezs-b76.js +5 -0
- package/dist/{radar-PYXPWWZC-C1rOl50T.cjs → radar-PYXPWWZC-C0zC2ZSo.cjs} +1 -1
- package/dist/{requirementDiagram-MS252O5E-CD_xeIto.cjs → requirementDiagram-MS252O5E-C2bJ8iZf.cjs} +1 -1
- package/dist/{requirementDiagram-MS252O5E-CwRW6-r7.js → requirementDiagram-MS252O5E-CLQv0oWl.js} +3 -3
- package/dist/{sankeyDiagram-XADWPNL6-RMkMjKAW.cjs → sankeyDiagram-XADWPNL6--gS8yJdi.cjs} +1 -1
- package/dist/{sankeyDiagram-XADWPNL6-CQfVCItY.js → sankeyDiagram-XADWPNL6-BPSHvjZ8.js} +1 -1
- package/dist/{sequenceDiagram-FGHM5R23-Bg1onFX3.cjs → sequenceDiagram-FGHM5R23-C8D7r5pW.cjs} +1 -1
- package/dist/{sequenceDiagram-FGHM5R23-CHy2erSS.js → sequenceDiagram-FGHM5R23-Pz7V2MNd.js} +3 -3
- package/dist/services/workspace-service.js +3 -3
- package/dist/stateDiagram-FHFEXIEX-BAF5DJ1S.cjs +1 -0
- package/dist/{stateDiagram-FHFEXIEX-CMl5lVVr.js → stateDiagram-FHFEXIEX-D5m6EHM0.js} +44 -43
- package/dist/{stateDiagram-v2-QKLJ7IA2-Ddx6MvoK.js → stateDiagram-v2-QKLJ7IA2-Bewn3XVh.js} +2 -2
- package/dist/{stateDiagram-v2-QKLJ7IA2-k0ixVO2x.cjs → stateDiagram-v2-QKLJ7IA2-D8ygFuIi.cjs} +1 -1
- package/dist/{timeline-definition-GMOUNBTQ-tsduD7s8.cjs → timeline-definition-GMOUNBTQ-DGnNWVK8.cjs} +1 -1
- package/dist/{timeline-definition-GMOUNBTQ-wGoPQPZW.js → timeline-definition-GMOUNBTQ-D_q_Aq0R.js} +23 -23
- package/dist/{treeView-SZITEDCU-DLnrlNgm.js → treeView-SZITEDCU-CJ-dtg22.js} +1 -1
- package/dist/{treeView-SZITEDCU-0cNlhBgJ.cjs → treeView-SZITEDCU-D_h6_ShC.cjs} +1 -1
- package/dist/{treemap-W4RFUUIX-BhmjFGQ3.js → treemap-W4RFUUIX-B9GQw9aZ.js} +1 -1
- package/dist/{treemap-W4RFUUIX-CKAFw4rq.cjs → treemap-W4RFUUIX-BtKxSF22.cjs} +1 -1
- package/dist/{vennDiagram-DHZGUBPP-D0_k6R1t.js → vennDiagram-DHZGUBPP-JEim8wmH.js} +59 -59
- package/dist/{vennDiagram-DHZGUBPP-cIbatSRt.cjs → vennDiagram-DHZGUBPP-amyk4YMx.cjs} +1 -1
- package/dist/{wardley-RL74JXVD-E_57jQp4.cjs → wardley-RL74JXVD-Cni1Bfk_.cjs} +1 -1
- package/dist/{wardley-RL74JXVD-ClNl5KuH.js → wardley-RL74JXVD-sMbm0y_r.js} +1 -1
- package/dist/{wardleyDiagram-NUSXRM2D-DrU9h_lF.cjs → wardleyDiagram-NUSXRM2D-BxrRpNG2.cjs} +1 -1
- package/dist/{wardleyDiagram-NUSXRM2D-CdC2HbGc.js → wardleyDiagram-NUSXRM2D-C2MLJ-IT.js} +3 -3
- package/dist/workers/elk-fake-worker.generated.d.ts +3 -0
- package/dist/workers/elk-fake-worker.generated.js +50224 -0
- package/dist/workers/elk-layout-blob.generated.js +16 -18
- package/dist/workers/elk-layout.worker.js +5 -2
- package/dist/{xychartDiagram-5P7HB3ND-y-_Hnheq.js → xychartDiagram-5P7HB3ND-CSCEAZnj.js} +8 -7
- package/dist/{xychartDiagram-5P7HB3ND-BsPkSpoT.cjs → xychartDiagram-5P7HB3ND-CpDJRyka.cjs} +4 -4
- package/package.json +11 -2
- package/dist/arc-C1ekKGkb.js +0 -83
- package/dist/arc-R701-DfQ.cjs +0 -1
- package/dist/blockDiagram-DXYQGD6D-C72mCfQb.cjs +0 -132
- package/dist/change-list-item-BEl0JMXU.js +0 -18744
- package/dist/change-list-item-BQAfTtYI.cjs +0 -4535
- package/dist/channel-Bcdtr5hc.js +0 -5
- package/dist/clone-xz9tAnT8.cjs +0 -1
- package/dist/info-OMHHGYJF-CoCJYW0-.js +0 -5
- package/dist/linear-C0WOPIXr.cjs +0 -1
- package/dist/pie-ZZUOXDRM-BZwBUxgW.js +0 -5
- package/dist/pieDiagram-DEJITSTG-DpV5UNcT.cjs +0 -30
- package/dist/radar-PYXPWWZC-CeYN6kDE.js +0 -5
- package/dist/stateDiagram-FHFEXIEX-CYMON_a_.cjs +0 -1
|
@@ -0,0 +1,132 @@
|
|
|
1
|
+
"use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const te=require("./chunk-FMBD7UC4-BO92YnlB.cjs"),i=require("./cowboy-components-DMQv-nwp.cjs"),ee=require("./clone-DAIpdsWe.cjs"),re=require("./graph-nnOjqfSF.cjs"),ae=require("./channel-BR_Krb9l.cjs"),St=require("./change-list-item-4xBSo3-U.cjs");var ht=(function(){var e=i.__name(function(E,m,d,y){for(d=d||{},y=E.length;y--;d[E[y]]=m);return d},"o"),t=[1,15],a=[1,7],n=[1,13],c=[1,14],s=[1,19],r=[1,16],l=[1,17],o=[1,18],x=[8,30],h=[8,10,21,28,29,30,31,39,43,46],u=[1,23],b=[1,24],f=[8,10,15,16,21,28,29,30,31,39,43,46],_=[8,10,15,16,21,27,28,29,30,31,39,43,46],S=[1,49],w={trace:i.__name(function(){},"trace"),yy:{},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},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"},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]],performAction:i.__name(function(m,d,y,L,v,g,A){var p=g.length-1;switch(v){case 4:L.getLogger().debug("Rule: separator (NL) ");break;case 5:L.getLogger().debug("Rule: separator (Space) ");break;case 6:L.getLogger().debug("Rule: separator (EOF) ");break;case 7:L.getLogger().debug("Rule: hierarchy: ",g[p-1]),L.setHierarchy(g[p-1]);break;case 8:L.getLogger().debug("Stop NL ");break;case 9:L.getLogger().debug("Stop EOF ");break;case 10:L.getLogger().debug("Stop NL2 ");break;case 11:L.getLogger().debug("Stop EOF2 ");break;case 12:L.getLogger().debug("Rule: statement: ",g[p]),typeof g[p].length=="number"?this.$=g[p]:this.$=[g[p]];break;case 13:L.getLogger().debug("Rule: statement #2: ",g[p-1]),this.$=[g[p-1]].concat(g[p]);break;case 14:L.getLogger().debug("Rule: link: ",g[p],m),this.$={edgeTypeStr:g[p],label:""};break;case 15:L.getLogger().debug("Rule: LABEL link: ",g[p-3],g[p-1],g[p]),this.$={edgeTypeStr:g[p],label:g[p-1]};break;case 18:const I=parseInt(g[p]),X=L.generateId();this.$={id:X,type:"space",label:"",width:I,children:[]};break;case 23:L.getLogger().debug("Rule: (nodeStatement link node) ",g[p-2],g[p-1],g[p]," typestr: ",g[p-1].edgeTypeStr);const K=L.edgeStrToEdgeData(g[p-1].edgeTypeStr);this.$=[{id:g[p-2].id,label:g[p-2].label,type:g[p-2].type,directions:g[p-2].directions},{id:g[p-2].id+"-"+g[p].id,start:g[p-2].id,end:g[p].id,label:g[p-1].label,type:"edge",directions:g[p].directions,arrowTypeEnd:K,arrowTypeStart:"arrow_open"},{id:g[p].id,label:g[p].label,type:L.typeStr2Type(g[p].typeStr),directions:g[p].directions}];break;case 24:L.getLogger().debug("Rule: nodeStatement (abc88 node size) ",g[p-1],g[p]),this.$={id:g[p-1].id,label:g[p-1].label,type:L.typeStr2Type(g[p-1].typeStr),directions:g[p-1].directions,widthInColumns:parseInt(g[p],10)};break;case 25:L.getLogger().debug("Rule: nodeStatement (node) ",g[p]),this.$={id:g[p].id,label:g[p].label,type:L.typeStr2Type(g[p].typeStr),directions:g[p].directions,widthInColumns:1};break;case 26:L.getLogger().debug("APA123",this?this:"na"),L.getLogger().debug("COLUMNS: ",g[p]),this.$={type:"column-setting",columns:g[p]==="auto"?-1:parseInt(g[p])};break;case 27:L.getLogger().debug("Rule: id-block statement : ",g[p-2],g[p-1]),L.generateId(),this.$={...g[p-2],type:"composite",children:g[p-1]};break;case 28:L.getLogger().debug("Rule: blockStatement : ",g[p-2],g[p-1],g[p]);const J=L.generateId();this.$={id:J,type:"composite",label:"",children:g[p-1]};break;case 29:L.getLogger().debug("Rule: node (NODE_ID separator): ",g[p]),this.$={id:g[p]};break;case 30:L.getLogger().debug("Rule: node (NODE_ID nodeShapeNLabel separator): ",g[p-1],g[p]),this.$={id:g[p-1],label:g[p].label,typeStr:g[p].typeStr,directions:g[p].directions};break;case 31:L.getLogger().debug("Rule: dirList: ",g[p]),this.$=[g[p]];break;case 32:L.getLogger().debug("Rule: dirList: ",g[p-1],g[p]),this.$=[g[p-1]].concat(g[p]);break;case 33:L.getLogger().debug("Rule: nodeShapeNLabel: ",g[p-2],g[p-1],g[p]),this.$={typeStr:g[p-2]+g[p],label:g[p-1]};break;case 34:L.getLogger().debug("Rule: BLOCK_ARROW nodeShapeNLabel: ",g[p-3],g[p-2]," #3:",g[p-1],g[p]),this.$={typeStr:g[p-3]+g[p],label:g[p-2],directions:g[p-1]};break;case 35:case 36:this.$={type:"classDef",id:g[p-1].trim(),css:g[p].trim()};break;case 37:this.$={type:"applyClass",id:g[p-1].trim(),styleClass:g[p].trim()};break;case 38:this.$={type:"applyStyles",id:g[p-1].trim(),stylesStr:g[p].trim()};break}},"anonymous"),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:n,29:c,31:s,39:r,43:l,46:o},{8:[1,20]},e(x,[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:n,29:c,31:s,39:r,43:l,46:o}),e(h,[2,16],{14:22,15:u,16:b}),e(h,[2,17]),e(h,[2,18]),e(h,[2,19]),e(h,[2,20]),e(h,[2,21]),e(h,[2,22]),e(f,[2,25],{27:[1,25]}),e(h,[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:n,29:c,31:s,39:r,43:l,46:o},{40:[1,28],42:[1,29]},{44:[1,30]},{47:[1,31]},e(_,[2,29],{32:32,35:[1,33],37:[1,34]}),{1:[2,7]},e(x,[2,13]),{26:35,31:s},{31:[2,14]},{17:[1,36]},e(f,[2,24]),{10:t,11:37,13:4,14:22,15:u,16:b,19:5,20:6,21:a,22:8,23:9,24:10,25:11,26:12,28:n,29:c,31:s,39:r,43:l,46:o},{30:[1,38]},{41:[1,39]},{41:[1,40]},{45:[1,41]},{48:[1,42]},e(_,[2,30]),{18:[1,43]},{18:[1,44]},e(f,[2,23]),{18:[1,45]},{30:[1,46]},e(h,[2,28]),e(h,[2,35]),e(h,[2,36]),e(h,[2,37]),e(h,[2,38]),{36:[1,47]},{33:48,34:S},{15:[1,50]},e(h,[2,27]),e(_,[2,33]),{38:[1,51]},{33:52,34:S,38:[2,31]},{31:[2,15]},e(_,[2,34]),{38:[2,32]}],defaultActions:{20:[2,7],23:[2,14],50:[2,15],52:[2,32]},parseError:i.__name(function(m,d){if(d.recoverable)this.trace(m);else{var y=new Error(m);throw y.hash=d,y}},"parseError"),parse:i.__name(function(m){var d=this,y=[0],L=[],v=[null],g=[],A=this.table,p="",I=0,X=0,K=2,J=1,Jt=g.slice.call(arguments,1),N=Object.create(this.lexer),j={yy:{}};for(var it in this.yy)Object.prototype.hasOwnProperty.call(this.yy,it)&&(j.yy[it]=this.yy[it]);N.setInput(m,j.yy),j.yy.lexer=N,j.yy.parser=this,typeof N.yylloc>"u"&&(N.yylloc={});var nt=N.yylloc;g.push(nt);var Qt=N.options&&N.options.ranges;typeof j.yy.parseError=="function"?this.parseError=j.yy.parseError:this.parseError=Object.getPrototypeOf(this).parseError;function $t(M){y.length=y.length-2*M,v.length=v.length-M,g.length=g.length-M}i.__name($t,"popStack");function wt(){var M;return M=L.pop()||N.lex()||J,typeof M!="number"&&(M instanceof Array&&(L=M,M=L.pop()),M=d.symbols_[M]||M),M}i.__name(wt,"lex");for(var z,V,H,lt,q={},Q,U,Lt,$;;){if(V=y[y.length-1],this.defaultActions[V]?H=this.defaultActions[V]:((z===null||typeof z>"u")&&(z=wt()),H=A[V]&&A[V][z]),typeof H>"u"||!H.length||!H[0]){var ct="";$=[];for(Q in A[V])this.terminals_[Q]&&Q>K&&$.push("'"+this.terminals_[Q]+"'");N.showPosition?ct="Parse error on line "+(I+1)+`:
|
|
2
|
+
`+N.showPosition()+`
|
|
3
|
+
Expecting `+$.join(", ")+", got '"+(this.terminals_[z]||z)+"'":ct="Parse error on line "+(I+1)+": Unexpected "+(z==J?"end of input":"'"+(this.terminals_[z]||z)+"'"),this.parseError(ct,{text:N.match,token:this.terminals_[z]||z,line:N.yylineno,loc:nt,expected:$})}if(H[0]instanceof Array&&H.length>1)throw new Error("Parse Error: multiple actions possible at state: "+V+", token: "+z);switch(H[0]){case 1:y.push(z),v.push(N.yytext),g.push(N.yylloc),y.push(H[1]),z=null,X=N.yyleng,p=N.yytext,I=N.yylineno,nt=N.yylloc;break;case 2:if(U=this.productions_[H[1]][1],q.$=v[v.length-U],q._$={first_line:g[g.length-(U||1)].first_line,last_line:g[g.length-1].last_line,first_column:g[g.length-(U||1)].first_column,last_column:g[g.length-1].last_column},Qt&&(q._$.range=[g[g.length-(U||1)].range[0],g[g.length-1].range[1]]),lt=this.performAction.apply(q,[p,X,I,j.yy,H[1],v,g].concat(Jt)),typeof lt<"u")return lt;U&&(y=y.slice(0,-1*U*2),v=v.slice(0,-1*U),g=g.slice(0,-1*U)),y.push(this.productions_[H[1]][0]),v.push(q.$),g.push(q._$),Lt=A[y[y.length-2]][y[y.length-1]],y.push(Lt);break;case 3:return!0}}return!0},"parse")},k=(function(){var E={EOF:1,parseError:i.__name(function(d,y){if(this.yy.parser)this.yy.parser.parseError(d,y);else throw new Error(d)},"parseError"),setInput:i.__name(function(m,d){return this.yy=d||this.yy||{},this._input=m,this._more=this._backtrack=this.done=!1,this.yylineno=this.yyleng=0,this.yytext=this.matched=this.match="",this.conditionStack=["INITIAL"],this.yylloc={first_line:1,first_column:0,last_line:1,last_column:0},this.options.ranges&&(this.yylloc.range=[0,0]),this.offset=0,this},"setInput"),input:i.__name(function(){var m=this._input[0];this.yytext+=m,this.yyleng++,this.offset++,this.match+=m,this.matched+=m;var d=m.match(/(?:\r\n?|\n).*/g);return d?(this.yylineno++,this.yylloc.last_line++):this.yylloc.last_column++,this.options.ranges&&this.yylloc.range[1]++,this._input=this._input.slice(1),m},"input"),unput:i.__name(function(m){var d=m.length,y=m.split(/(?:\r\n?|\n)/g);this._input=m+this._input,this.yytext=this.yytext.substr(0,this.yytext.length-d),this.offset-=d;var L=this.match.split(/(?:\r\n?|\n)/g);this.match=this.match.substr(0,this.match.length-1),this.matched=this.matched.substr(0,this.matched.length-1),y.length-1&&(this.yylineno-=y.length-1);var v=this.yylloc.range;return this.yylloc={first_line:this.yylloc.first_line,last_line:this.yylineno+1,first_column:this.yylloc.first_column,last_column:y?(y.length===L.length?this.yylloc.first_column:0)+L[L.length-y.length].length-y[0].length:this.yylloc.first_column-d},this.options.ranges&&(this.yylloc.range=[v[0],v[0]+this.yyleng-d]),this.yyleng=this.yytext.length,this},"unput"),more:i.__name(function(){return this._more=!0,this},"more"),reject:i.__name(function(){if(this.options.backtrack_lexer)this._backtrack=!0;else return this.parseError("Lexical error on line "+(this.yylineno+1)+`. You can only invoke reject() in the lexer when the lexer is of the backtracking persuasion (options.backtrack_lexer = true).
|
|
4
|
+
`+this.showPosition(),{text:"",token:null,line:this.yylineno});return this},"reject"),less:i.__name(function(m){this.unput(this.match.slice(m))},"less"),pastInput:i.__name(function(){var m=this.matched.substr(0,this.matched.length-this.match.length);return(m.length>20?"...":"")+m.substr(-20).replace(/\n/g,"")},"pastInput"),upcomingInput:i.__name(function(){var m=this.match;return m.length<20&&(m+=this._input.substr(0,20-m.length)),(m.substr(0,20)+(m.length>20?"...":"")).replace(/\n/g,"")},"upcomingInput"),showPosition:i.__name(function(){var m=this.pastInput(),d=new Array(m.length+1).join("-");return m+this.upcomingInput()+`
|
|
5
|
+
`+d+"^"},"showPosition"),test_match:i.__name(function(m,d){var y,L,v;if(this.options.backtrack_lexer&&(v={yylineno:this.yylineno,yylloc:{first_line:this.yylloc.first_line,last_line:this.last_line,first_column:this.yylloc.first_column,last_column:this.yylloc.last_column},yytext:this.yytext,match:this.match,matches:this.matches,matched:this.matched,yyleng:this.yyleng,offset:this.offset,_more:this._more,_input:this._input,yy:this.yy,conditionStack:this.conditionStack.slice(0),done:this.done},this.options.ranges&&(v.yylloc.range=this.yylloc.range.slice(0))),L=m[0].match(/(?:\r\n?|\n).*/g),L&&(this.yylineno+=L.length),this.yylloc={first_line:this.yylloc.last_line,last_line:this.yylineno+1,first_column:this.yylloc.last_column,last_column:L?L[L.length-1].length-L[L.length-1].match(/\r?\n?/)[0].length:this.yylloc.last_column+m[0].length},this.yytext+=m[0],this.match+=m[0],this.matches=m,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(m[0].length),this.matched+=m[0],y=this.performAction.call(this,this.yy,this,d,this.conditionStack[this.conditionStack.length-1]),this.done&&this._input&&(this.done=!1),y)return y;if(this._backtrack){for(var g in v)this[g]=v[g];return!1}return!1},"test_match"),next:i.__name(function(){if(this.done)return this.EOF;this._input||(this.done=!0);var m,d,y,L;this._more||(this.yytext="",this.match="");for(var v=this._currentRules(),g=0;g<v.length;g++)if(y=this._input.match(this.rules[v[g]]),y&&(!d||y[0].length>d[0].length)){if(d=y,L=g,this.options.backtrack_lexer){if(m=this.test_match(y,v[g]),m!==!1)return m;if(this._backtrack){d=!1;continue}else return!1}else if(!this.options.flex)break}return d?(m=this.test_match(d,v[L]),m!==!1?m:!1):this._input===""?this.EOF:this.parseError("Lexical error on line "+(this.yylineno+1)+`. Unrecognized text.
|
|
6
|
+
`+this.showPosition(),{text:"",token:null,line:this.yylineno})},"next"),lex:i.__name(function(){var d=this.next();return d||this.lex()},"lex"),begin:i.__name(function(d){this.conditionStack.push(d)},"begin"),popState:i.__name(function(){var d=this.conditionStack.length-1;return d>0?this.conditionStack.pop():this.conditionStack[0]},"popState"),_currentRules:i.__name(function(){return this.conditionStack.length&&this.conditionStack[this.conditionStack.length-1]?this.conditions[this.conditionStack[this.conditionStack.length-1]].rules:this.conditions.INITIAL.rules},"_currentRules"),topState:i.__name(function(d){return d=this.conditionStack.length-1-Math.abs(d||0),d>=0?this.conditionStack[d]:"INITIAL"},"topState"),pushState:i.__name(function(d){this.begin(d)},"pushState"),stateStackSize:i.__name(function(){return this.conditionStack.length},"stateStackSize"),options:{},performAction:i.__name(function(d,y,L,v){switch(L){case 0:return d.getLogger().debug("Found block-beta"),10;case 1:return d.getLogger().debug("Found id-block"),29;case 2:return d.getLogger().debug("Found block"),10;case 3:d.getLogger().debug(".",y.yytext);break;case 4:d.getLogger().debug("_",y.yytext);break;case 5:return 5;case 6:return y.yytext=-1,28;case 7:return y.yytext=y.yytext.replace(/columns\s+/,""),d.getLogger().debug("COLUMNS (LEX)",y.yytext),28;case 8:this.pushState("md_string");break;case 9:return"MD_STR";case 10:this.popState();break;case 11:this.pushState("string");break;case 12:d.getLogger().debug("LEX: POPPING STR:",y.yytext),this.popState();break;case 13:return d.getLogger().debug("LEX: STR end:",y.yytext),"STR";case 14:return y.yytext=y.yytext.replace(/space\:/,""),d.getLogger().debug("SPACE NUM (LEX)",y.yytext),21;case 15:return y.yytext="1",d.getLogger().debug("COLUMNS (LEX)",y.yytext),21;case 16:return 42;case 17:return"LINKSTYLE";case 18:return"INTERPOLATE";case 19:return this.pushState("CLASSDEF"),39;case 20:return this.popState(),this.pushState("CLASSDEFID"),"DEFAULT_CLASSDEF_ID";case 21:return this.popState(),this.pushState("CLASSDEFID"),40;case 22:return this.popState(),41;case 23:return this.pushState("CLASS"),43;case 24:return this.popState(),this.pushState("CLASS_STYLE"),44;case 25:return this.popState(),45;case 26:return this.pushState("STYLE_STMNT"),46;case 27:return this.popState(),this.pushState("STYLE_DEFINITION"),47;case 28:return this.popState(),48;case 29:return this.pushState("acc_title"),"acc_title";case 30:return this.popState(),"acc_title_value";case 31:return this.pushState("acc_descr"),"acc_descr";case 32:return this.popState(),"acc_descr_value";case 33:this.pushState("acc_descr_multiline");break;case 34:this.popState();break;case 35:return"acc_descr_multiline_value";case 36:return 30;case 37:return this.popState(),d.getLogger().debug("Lex: (("),"NODE_DEND";case 38:return this.popState(),d.getLogger().debug("Lex: (("),"NODE_DEND";case 39:return this.popState(),d.getLogger().debug("Lex: ))"),"NODE_DEND";case 40:return this.popState(),d.getLogger().debug("Lex: (("),"NODE_DEND";case 41:return this.popState(),d.getLogger().debug("Lex: (("),"NODE_DEND";case 42:return this.popState(),d.getLogger().debug("Lex: (-"),"NODE_DEND";case 43:return this.popState(),d.getLogger().debug("Lex: -)"),"NODE_DEND";case 44:return this.popState(),d.getLogger().debug("Lex: (("),"NODE_DEND";case 45:return this.popState(),d.getLogger().debug("Lex: ]]"),"NODE_DEND";case 46:return this.popState(),d.getLogger().debug("Lex: ("),"NODE_DEND";case 47:return this.popState(),d.getLogger().debug("Lex: ])"),"NODE_DEND";case 48:return this.popState(),d.getLogger().debug("Lex: /]"),"NODE_DEND";case 49:return this.popState(),d.getLogger().debug("Lex: /]"),"NODE_DEND";case 50:return this.popState(),d.getLogger().debug("Lex: )]"),"NODE_DEND";case 51:return this.popState(),d.getLogger().debug("Lex: )"),"NODE_DEND";case 52:return this.popState(),d.getLogger().debug("Lex: ]>"),"NODE_DEND";case 53:return this.popState(),d.getLogger().debug("Lex: ]"),"NODE_DEND";case 54:return d.getLogger().debug("Lexa: -)"),this.pushState("NODE"),35;case 55:return d.getLogger().debug("Lexa: (-"),this.pushState("NODE"),35;case 56:return d.getLogger().debug("Lexa: ))"),this.pushState("NODE"),35;case 57:return d.getLogger().debug("Lexa: )"),this.pushState("NODE"),35;case 58:return d.getLogger().debug("Lex: ((("),this.pushState("NODE"),35;case 59:return d.getLogger().debug("Lexa: )"),this.pushState("NODE"),35;case 60:return d.getLogger().debug("Lexa: )"),this.pushState("NODE"),35;case 61:return d.getLogger().debug("Lexa: )"),this.pushState("NODE"),35;case 62:return d.getLogger().debug("Lexc: >"),this.pushState("NODE"),35;case 63:return d.getLogger().debug("Lexa: (["),this.pushState("NODE"),35;case 64:return d.getLogger().debug("Lexa: )"),this.pushState("NODE"),35;case 65:return this.pushState("NODE"),35;case 66:return this.pushState("NODE"),35;case 67:return this.pushState("NODE"),35;case 68:return this.pushState("NODE"),35;case 69:return this.pushState("NODE"),35;case 70:return this.pushState("NODE"),35;case 71:return this.pushState("NODE"),35;case 72:return d.getLogger().debug("Lexa: ["),this.pushState("NODE"),35;case 73:return this.pushState("BLOCK_ARROW"),d.getLogger().debug("LEX ARR START"),37;case 74:return d.getLogger().debug("Lex: NODE_ID",y.yytext),31;case 75:return d.getLogger().debug("Lex: EOF",y.yytext),8;case 76:this.pushState("md_string");break;case 77:this.pushState("md_string");break;case 78:return"NODE_DESCR";case 79:this.popState();break;case 80:d.getLogger().debug("Lex: Starting string"),this.pushState("string");break;case 81:d.getLogger().debug("LEX ARR: Starting string"),this.pushState("string");break;case 82:return d.getLogger().debug("LEX: NODE_DESCR:",y.yytext),"NODE_DESCR";case 83:d.getLogger().debug("LEX POPPING"),this.popState();break;case 84:d.getLogger().debug("Lex: =>BAE"),this.pushState("ARROW_DIR");break;case 85:return y.yytext=y.yytext.replace(/^,\s*/,""),d.getLogger().debug("Lex (right): dir:",y.yytext),"DIR";case 86:return y.yytext=y.yytext.replace(/^,\s*/,""),d.getLogger().debug("Lex (left):",y.yytext),"DIR";case 87:return y.yytext=y.yytext.replace(/^,\s*/,""),d.getLogger().debug("Lex (x):",y.yytext),"DIR";case 88:return y.yytext=y.yytext.replace(/^,\s*/,""),d.getLogger().debug("Lex (y):",y.yytext),"DIR";case 89:return y.yytext=y.yytext.replace(/^,\s*/,""),d.getLogger().debug("Lex (up):",y.yytext),"DIR";case 90:return y.yytext=y.yytext.replace(/^,\s*/,""),d.getLogger().debug("Lex (down):",y.yytext),"DIR";case 91:return y.yytext="]>",d.getLogger().debug("Lex (ARROW_DIR end):",y.yytext),this.popState(),this.popState(),"BLOCK_ARROW_END";case 92:return d.getLogger().debug("Lex: LINK","#"+y.yytext+"#"),15;case 93:return d.getLogger().debug("Lex: LINK",y.yytext),15;case 94:return d.getLogger().debug("Lex: LINK",y.yytext),15;case 95:return d.getLogger().debug("Lex: LINK",y.yytext),15;case 96:return d.getLogger().debug("Lex: START_LINK",y.yytext),this.pushState("LLABEL"),16;case 97:return d.getLogger().debug("Lex: START_LINK",y.yytext),this.pushState("LLABEL"),16;case 98:return d.getLogger().debug("Lex: START_LINK",y.yytext),this.pushState("LLABEL"),16;case 99:this.pushState("md_string");break;case 100:return d.getLogger().debug("Lex: Starting string"),this.pushState("string"),"LINK_LABEL";case 101:return this.popState(),d.getLogger().debug("Lex: LINK","#"+y.yytext+"#"),15;case 102:return this.popState(),d.getLogger().debug("Lex: LINK",y.yytext),15;case 103:return this.popState(),d.getLogger().debug("Lex: LINK",y.yytext),15;case 104:return d.getLogger().debug("Lex: COLON",y.yytext),y.yytext=y.yytext.slice(1),27}},"anonymous"),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+)/],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}}};return E})();w.lexer=k;function C(){this.yy={}}return i.__name(C,"Parser"),C.prototype=w,w.Parser=C,new C})();ht.parser=ht;var se=ht,W=new Map,ft=[],gt=new Map,vt="color",kt="fill",ie="bgFill",Ot=",",ne=i.getConfig2(),et=new Map,xt="",le=i.__name(e=>i.common_default.sanitizeText(e,ne),"sanitizeText"),ce=i.__name(function(e,t=""){let a=et.get(e);a||(a={id:e,styles:[],textStyles:[]},et.set(e,a)),t?.split(Ot).forEach(n=>{const c=n.replace(/([^;]*);/,"$1").trim();if(RegExp(vt).exec(n)){const r=c.replace(kt,ie).replace(vt,kt);a.textStyles.push(r)}a.styles.push(c)})},"addStyleClass"),oe=i.__name(function(e,t=""){const a=W.get(e);t!=null&&(a.styles=t.split(Ot))},"addStyle2Node"),he=i.__name(function(e,t){e.split(",").forEach(function(a){let n=W.get(a);if(n===void 0){const c=a.trim();n={id:c,type:"na",children:[]},W.set(c,n)}n.classes||(n.classes=[]),n.classes.push(t)})},"setCssClass"),Rt=i.__name((e,t)=>{const a=e.flat(),n=[],s=a.find(r=>r?.type==="column-setting")?.columns??-1;for(const r of a){if(typeof s=="number"&&s>0&&r.type!=="column-setting"&&typeof r.widthInColumns=="number"&&r.widthInColumns>s&&i.log.warn(`Block ${r.id} width ${r.widthInColumns} exceeds configured column width ${s}`),r.label&&(r.label=le(r.label)),r.type==="classDef"){ce(r.id,r.css);continue}if(r.type==="applyClass"){he(r.id,r?.styleClass??"");continue}if(r.type==="applyStyles"){r?.stylesStr&&oe(r.id,r?.stylesStr);continue}if(r.type==="column-setting")t.columns=r.columns??-1;else if(r.type==="edge"){const l=(gt.get(r.id)??0)+1;gt.set(r.id,l),r.id=l+"-"+r.id,ft.push(r)}else{r.label||(r.type==="composite"?r.label="":r.label=r.id);const l=W.get(r.id);if(l===void 0?W.set(r.id,r):(r.type!=="na"&&(l.type=r.type),r.label!==r.id&&(l.label=r.label)),r.children&&Rt(r.children,r),r.type==="space"){const o=r.width??1;for(let x=0;x<o;x++){const h=ee.clone(r);h.id=h.id+"-"+x,W.set(h.id,h),n.push(h)}}else l===void 0&&n.push(r)}}t.children=n},"populateBlockDatabase"),yt=[],G={id:"root",type:"composite",children:[],columns:-1},ge=i.__name(()=>{i.log.debug("Clear called"),i.clear(),G={id:"root",type:"composite",children:[],columns:-1},W=new Map([["root",G]]),yt=[],et=new Map,ft=[],gt=new Map,xt=""},"clear");function zt(e){switch(i.log.debug("typeStr2Type",e),e){case"[]":return"square";case"()":return i.log.debug("we have a round"),"round";case"(())":return"circle";case">]":return"rect_left_inv_arrow";case"{}":return"diamond";case"{{}}":return"hexagon";case"([])":return"stadium";case"[[]]":return"subroutine";case"[()]":return"cylinder";case"((()))":return"doublecircle";case"[//]":return"lean_right";case"[\\\\]":return"lean_left";case"[/\\]":return"trapezoid";case"[\\/]":return"inv_trapezoid";case"<[]>":return"block_arrow";default:return"na"}}i.__name(zt,"typeStr2Type");function At(e){switch(i.log.debug("typeStr2Type",e),e){case"==":return"thick";default:return"normal"}}i.__name(At,"edgeTypeStr2Type");function Mt(e){switch(e.replace(/^[\s-]+|[\s-]+$/g,"")){case"x":return"arrow_cross";case"o":return"arrow_circle";case">":return"arrow_point";default:return""}}i.__name(Mt,"edgeStrToEdgeData");var Et=0,de=i.__name(()=>(Et++,"id-"+Math.random().toString(36).substr(2,12)+"-"+Et),"generateId"),ue=i.__name(e=>{G.children=e,Rt(e,G),yt=G.children},"setHierarchy"),pe=i.__name(e=>{const t=W.get(e);return t?t.columns?t.columns:t.children?t.children.length:-1:-1},"getColumns"),fe=i.__name(()=>[...W.values()],"getBlocksFlat"),xe=i.__name(()=>yt||[],"getBlocks"),ye=i.__name(()=>ft,"getEdges"),be=i.__name(e=>W.get(e),"getBlock"),me=i.__name(e=>{W.set(e.id,e)},"setBlock"),_e=i.__name(e=>{xt=e},"setDiagramId"),we=i.__name(()=>xt,"getDiagramId"),Le=i.__name(()=>i.log,"getLogger"),Se=i.__name(function(){return et},"getClasses"),ve={getConfig:i.__name(()=>i.getConfig().block,"getConfig"),typeStr2Type:zt,edgeTypeStr2Type:At,edgeStrToEdgeData:Mt,getLogger:Le,getBlocksFlat:fe,getBlocks:xe,getEdges:ye,setHierarchy:ue,getBlock:be,setBlock:me,getColumns:pe,getClasses:Se,clear:ge,generateId:de,setDiagramId:_e,getDiagramId:we},ke=ve,ot=i.__name((e,t)=>{const a=ae.channel,n=a(e,"r"),c=a(e,"g"),s=a(e,"b");return i.rgba(n,c,s,t)},"fade"),Ee=i.__name(e=>`.label {
|
|
7
|
+
font-family: ${e.fontFamily};
|
|
8
|
+
color: ${e.nodeTextColor||e.textColor};
|
|
9
|
+
}
|
|
10
|
+
.cluster-label text {
|
|
11
|
+
fill: ${e.titleColor};
|
|
12
|
+
}
|
|
13
|
+
.cluster-label span,p {
|
|
14
|
+
color: ${e.titleColor};
|
|
15
|
+
}
|
|
16
|
+
|
|
17
|
+
|
|
18
|
+
|
|
19
|
+
.label text,span,p {
|
|
20
|
+
fill: ${e.nodeTextColor||e.textColor};
|
|
21
|
+
color: ${e.nodeTextColor||e.textColor};
|
|
22
|
+
}
|
|
23
|
+
|
|
24
|
+
.node rect,
|
|
25
|
+
.node circle,
|
|
26
|
+
.node ellipse,
|
|
27
|
+
.node polygon,
|
|
28
|
+
.node path {
|
|
29
|
+
fill: ${e.mainBkg};
|
|
30
|
+
stroke: ${e.nodeBorder};
|
|
31
|
+
stroke-width: 1px;
|
|
32
|
+
}
|
|
33
|
+
.flowchart-label text {
|
|
34
|
+
text-anchor: middle;
|
|
35
|
+
}
|
|
36
|
+
// .flowchart-label .text-outer-tspan {
|
|
37
|
+
// text-anchor: middle;
|
|
38
|
+
// }
|
|
39
|
+
// .flowchart-label .text-inner-tspan {
|
|
40
|
+
// text-anchor: start;
|
|
41
|
+
// }
|
|
42
|
+
|
|
43
|
+
.node .label {
|
|
44
|
+
text-align: center;
|
|
45
|
+
}
|
|
46
|
+
.node.clickable {
|
|
47
|
+
cursor: pointer;
|
|
48
|
+
}
|
|
49
|
+
|
|
50
|
+
.arrowheadPath {
|
|
51
|
+
fill: ${e.arrowheadColor};
|
|
52
|
+
}
|
|
53
|
+
|
|
54
|
+
.edgePath .path {
|
|
55
|
+
stroke: ${e.lineColor};
|
|
56
|
+
stroke-width: 2.0px;
|
|
57
|
+
}
|
|
58
|
+
|
|
59
|
+
.flowchart-link {
|
|
60
|
+
stroke: ${e.lineColor};
|
|
61
|
+
fill: none;
|
|
62
|
+
}
|
|
63
|
+
|
|
64
|
+
.edgeLabel {
|
|
65
|
+
background-color: ${e.edgeLabelBackground};
|
|
66
|
+
/*
|
|
67
|
+
* This is for backward compatibility with existing code that didn't
|
|
68
|
+
* add a \`<p>\` around edge labels.
|
|
69
|
+
*
|
|
70
|
+
* TODO: We should probably remove this in a future release.
|
|
71
|
+
*/
|
|
72
|
+
p {
|
|
73
|
+
margin: 0;
|
|
74
|
+
padding: 0;
|
|
75
|
+
display: inline;
|
|
76
|
+
}
|
|
77
|
+
rect {
|
|
78
|
+
opacity: 0.5;
|
|
79
|
+
background-color: ${e.edgeLabelBackground};
|
|
80
|
+
fill: ${e.edgeLabelBackground};
|
|
81
|
+
}
|
|
82
|
+
text-align: center;
|
|
83
|
+
}
|
|
84
|
+
|
|
85
|
+
/* For html labels only */
|
|
86
|
+
.labelBkg {
|
|
87
|
+
background-color: ${e.edgeLabelBackground};
|
|
88
|
+
}
|
|
89
|
+
|
|
90
|
+
.node .cluster {
|
|
91
|
+
// fill: ${ot(e.mainBkg,.5)};
|
|
92
|
+
fill: ${ot(e.clusterBkg,.5)};
|
|
93
|
+
stroke: ${ot(e.clusterBorder,.2)};
|
|
94
|
+
box-shadow: rgba(50, 50, 93, 0.25) 0px 13px 27px -5px, rgba(0, 0, 0, 0.3) 0px 8px 16px -8px;
|
|
95
|
+
stroke-width: 1px;
|
|
96
|
+
}
|
|
97
|
+
|
|
98
|
+
.cluster text {
|
|
99
|
+
fill: ${e.titleColor};
|
|
100
|
+
}
|
|
101
|
+
|
|
102
|
+
.cluster span,p {
|
|
103
|
+
color: ${e.titleColor};
|
|
104
|
+
}
|
|
105
|
+
/* .cluster div {
|
|
106
|
+
color: ${e.titleColor};
|
|
107
|
+
} */
|
|
108
|
+
|
|
109
|
+
div.mermaidTooltip {
|
|
110
|
+
position: absolute;
|
|
111
|
+
text-align: center;
|
|
112
|
+
max-width: 200px;
|
|
113
|
+
padding: 2px;
|
|
114
|
+
font-family: ${e.fontFamily};
|
|
115
|
+
font-size: 12px;
|
|
116
|
+
background: ${e.tertiaryColor};
|
|
117
|
+
border: 1px solid ${e.border2};
|
|
118
|
+
border-radius: 2px;
|
|
119
|
+
pointer-events: none;
|
|
120
|
+
z-index: 100;
|
|
121
|
+
}
|
|
122
|
+
|
|
123
|
+
.flowchartTitleText {
|
|
124
|
+
text-anchor: middle;
|
|
125
|
+
font-size: 18px;
|
|
126
|
+
fill: ${e.textColor};
|
|
127
|
+
}
|
|
128
|
+
${te.getIconStyles()}
|
|
129
|
+
`,"getStyles"),De=Ee,Te=i.__name((e,t,a,n)=>{t.forEach(c=>{Fe[c](e,a,n)})},"insertMarkers"),Ce=i.__name((e,t,a)=>{i.log.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")},"extension"),Be=i.__name((e,t,a)=>{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")},"composition"),Ie=i.__name((e,t,a)=>{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")},"aggregation"),Ne=i.__name((e,t,a)=>{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")},"dependency"),Oe=i.__name((e,t,a)=>{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)},"lollipop"),Re=i.__name((e,t,a)=>{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")},"point"),ze=i.__name((e,t,a)=>{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")},"circle"),Ae=i.__name((e,t,a)=>{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")},"cross"),Me=i.__name((e,t,a)=>{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")},"barb"),Fe={extension:Ce,composition:Be,aggregation:Ie,dependency:Ne,lollipop:Oe,point:Re,circle:ze,cross:Ae,barb:Me},He=Te,B=i.getConfig2()?.block?.padding??8;function dt(e,t){if(e===0||!Number.isInteger(e))throw new Error("Columns must be an integer !== 0.");if(t<0||!Number.isInteger(t))throw new Error("Position must be a non-negative integer."+t);if(e<0)return{px:t,py:0};if(e===1)return{px:0,py:t};const a=t%e,n=Math.floor(t/e);return{px:a,py:n}}i.__name(dt,"calculateBlockPosition");var Pe=i.__name(e=>{let t=0,a=0;for(const n of e.children){const{width:c,height:s,x:r,y:l}=n.size??{width:0,height:0,x:0,y:0};i.log.debug("getMaxChildSize abc95 child:",n.id,"width:",c,"height:",s,"x:",r,"y:",l,n.type),n.type!=="space"&&(c>t&&(t=c/(n.widthInColumns??1)),s>a&&(a=s))}return{width:t,height:a}},"getMaxChildSize");function rt(e,t,a=0,n=0){i.log.debug("setBlockSizes abc95 (start)",e.id,e?.size?.x,"block width =",e?.size,"siblingWidth",a),e?.size?.width||(e.size={width:a,height:n,x:0,y:0});let c=0,s=0;if(e.children?.length>0){for(const f of e.children)rt(f,t);const r=Pe(e);c=r.width,s=r.height,i.log.debug("setBlockSizes abc95 maxWidth of",e.id,":s children is ",c,s);for(const f of e.children)f.size&&(i.log.debug(`abc95 Setting size of children of ${e.id} id=${f.id} ${c} ${s} ${JSON.stringify(f.size)}`),f.size.width=c*(f.widthInColumns??1)+B*((f.widthInColumns??1)-1),f.size.height=s,f.size.x=0,f.size.y=0,i.log.debug(`abc95 updating size of ${e.id} children child:${f.id} maxWidth:${c} maxHeight:${s}`));for(const f of e.children)rt(f,t,c,s);const l=e.columns??-1;let o=0;for(const f of e.children)o+=f.widthInColumns??1;let x=e.children.length;l>0&&l<o&&(x=l);const h=Math.ceil(o/x);let u=x*(c+B)+B,b=h*(s+B)+B;if(u<a){i.log.debug(`Detected to small sibling: abc95 ${e.id} siblingWidth ${a} siblingHeight ${n} width ${u}`),u=a,b=n;const f=(a-x*B-B)/x,_=(n-h*B-B)/h;i.log.debug("Size indata abc88",e.id,"childWidth",f,"maxWidth",c),i.log.debug("Size indata abc88",e.id,"childHeight",_,"maxHeight",s),i.log.debug("Size indata abc88 xSize",x,"padding",B);for(const S of e.children)S.size&&(S.size.width=f,S.size.height=_,S.size.x=0,S.size.y=0)}if(i.log.debug(`abc95 (finale calc) ${e.id} xSize ${x} ySize ${h} columns ${l}${e.children.length} width=${Math.max(u,e.size?.width||0)}`),u<(e?.size?.width||0)){u=e?.size?.width||0;const f=l>0?Math.min(e.children.length,l):e.children.length;if(f>0){const _=(u-f*B-B)/f;i.log.debug("abc95 (growing to fit) width",e.id,u,e.size?.width,_);for(const S of e.children)S.size&&(S.size.width=_)}}e.size={width:u,height:b,x:0,y:0}}i.log.debug("setBlockSizes abc94 (done)",e.id,e?.size?.x,e?.size?.width,e?.size?.y,e?.size?.height)}i.__name(rt,"setBlockSizes");function bt(e,t){i.log.debug(`abc85 layout blocks (=>layoutBlocks) ${e.id} x: ${e?.size?.x} y: ${e?.size?.y} width: ${e?.size?.width}`);const a=e.columns??-1;if(i.log.debug("layoutBlocks columns abc95",e.id,"=>",a,e),e.children&&e.children.length>0){const n=e?.children[0]?.size?.width??0,c=e.children.length*n+(e.children.length-1)*B;i.log.debug("widthOfChildren 88",c,"posX");const s=new Map;{let h=0;for(const u of e.children){if(!u.size)continue;const{py:b}=dt(a,h),f=s.get(b)??0;u.size.height>f&&s.set(b,u.size.height);let _=u?.widthInColumns??1;a>0&&(_=Math.min(_,a-h%a)),h+=_}}const r=new Map;{let h=0;const u=[...s.keys()].sort((b,f)=>b-f);for(const b of u)r.set(b,h),h+=(s.get(b)??0)+B}let l=0;i.log.debug("abc91 block?.size?.x",e.id,e?.size?.x);let o=e?.size?.x?e?.size?.x+(-e?.size?.width/2||0):-B,x=0;for(const h of e.children){const u=e;if(!h.size)continue;const{width:b,height:f}=h.size,{px:_,py:S}=dt(a,l);if(S!=x&&(x=S,o=e?.size?.x?e?.size?.x+(-e?.size?.width/2||0):-B,i.log.debug("New row in layout for block",e.id," and child ",h.id,x)),i.log.debug(`abc89 layout blocks (child) id: ${h.id} Pos: ${l} (px, py) ${_},${S} (${u?.size?.x},${u?.size?.y}) parent: ${u.id} width: ${b}${B}`),u.size){const k=b/2;h.size.x=o+B+k,i.log.debug(`abc91 layout blocks (calc) px, pyid:${h.id} startingPos=X${o} new startingPosX${h.size.x} ${k} padding=${B} width=${b} halfWidth=${k} => x:${h.size.x} y:${h.size.y} ${h.widthInColumns} (width * (child?.w || 1)) / 2 ${b*(h?.widthInColumns??1)/2}`),o=h.size.x+k;const C=r.get(S)??0,E=s.get(S)??f;h.size.y=u.size.y-u.size.height/2+C+E/2+B,i.log.debug(`abc88 layout blocks (calc) px, pyid:${h.id}startingPosX${o}${B}${k}=>x:${h.size.x}y:${h.size.y}${h.widthInColumns}(width * (child?.w || 1)) / 2${b*(h?.widthInColumns??1)/2}`)}h.children&&bt(h);let w=h?.widthInColumns??1;a>0&&(w=Math.min(w,a-l%a)),l+=w,i.log.debug("abc88 columnsPos",h,l)}}i.log.debug(`layout blocks (<==layoutBlocks) ${e.id} x: ${e?.size?.x} y: ${e?.size?.y} width: ${e?.size?.width}`)}i.__name(bt,"layoutBlocks");function mt(e,{minX:t,minY:a,maxX:n,maxY:c}={minX:0,minY:0,maxX:0,maxY:0}){if(e.size&&e.id!=="root"){const{x:s,y:r,width:l,height:o}=e.size;s-l/2<t&&(t=s-l/2),r-o/2<a&&(a=r-o/2),s+l/2>n&&(n=s+l/2),r+o/2>c&&(c=r+o/2)}if(e.children)for(const s of e.children)({minX:t,minY:a,maxX:n,maxY:c}=mt(s,{minX:t,minY:a,maxX:n,maxY:c}));return{minX:t,minY:a,maxX:n,maxY:c}}i.__name(mt,"findBounds");function Ft(e){const t=e.getBlock("root");if(!t)return;rt(t,e,0,0),bt(t),i.log.debug("getBlocks",JSON.stringify(t,null,2));const{minX:a,minY:n,maxX:c,maxY:s}=mt(t),r=s-n,l=c-a;return{x:a,y:n,width:l,height:r}}i.__name(Ft,"layout");var We=i.__name(async(e,t,a,n=!1,c=!1)=>{let s=t||"";typeof s=="object"&&(s=s[0]);const r=i.getConfig2(),l=i.getEffectiveHtmlLabels(r);return await i.createText(e,s,{style:a,isTitle:n,useHtmlLabels:l,markdown:!1,isNode:c,width:Number.POSITIVE_INFINITY},r)},"createLabel"),P=We,Ye=i.__name((e,t,a,n,c)=>{t.arrowTypeStart&&Dt(e,"start",t.arrowTypeStart,a,n,c),t.arrowTypeEnd&&Dt(e,"end",t.arrowTypeEnd,a,n,c)},"addEdgeMarkers"),Ke={arrow_cross:"cross",arrow_point:"point",arrow_barb:"barb",arrow_circle:"circle",aggregation:"aggregation",extension:"extension",composition:"composition",dependency:"dependency",lollipop:"lollipop"},Dt=i.__name((e,t,a,n,c,s)=>{const r=Ke[a];if(!r){i.log.warn(`Unknown arrow type: ${a}`);return}const l=t==="start"?"Start":"End";e.attr(`marker-${t}`,`url(${n}#${c}_${s}-${r}${l})`)},"addEdgeMarker"),ut={},R={},Ue=i.__name(async(e,t)=>{const a=i.getConfig2(),n=i.getEffectiveHtmlLabels(a),c=e.insert("g").attr("class","edgeLabel"),s=c.insert("g").attr("class","label"),r=t.labelType==="markdown",l=await i.createText(e,t.label,{style:t.labelStyle,useHtmlLabels:n,addSvgBackground:r,isNode:!1,markdown:r,width:r?void 0:Number.POSITIVE_INFINITY},a);s.node().appendChild(l);let o=l.getBBox(),x=o;if(n){const u=l.children[0],b=i.select(l);o=u.getBoundingClientRect(),x=o,b.attr("width",o.width),b.attr("height",o.height)}else{const u=i.select(l).select("text").node();u&&typeof u.getBBox=="function"&&(x=u.getBBox())}s.attr("transform",i.computeLabelTransform(x,n)),ut[t.id]=c,t.width=o.width,t.height=o.height;let h;if(t.startLabelLeft){const u=e.insert("g").attr("class","edgeTerminals"),b=u.insert("g").attr("class","inner"),f=await P(b,t.startLabelLeft,t.labelStyle);h=f;let _=f.getBBox();if(n){const S=f.children[0],w=i.select(f);_=S.getBoundingClientRect(),w.attr("width",_.width),w.attr("height",_.height)}b.attr("transform",i.computeLabelTransform(_,n)),R[t.id]||(R[t.id]={}),R[t.id].startLeft=u,Z(h,t.startLabelLeft)}if(t.startLabelRight){const u=e.insert("g").attr("class","edgeTerminals"),b=u.insert("g").attr("class","inner"),f=await P(u,t.startLabelRight,t.labelStyle);h=f,b.node().appendChild(f);let _=f.getBBox();if(n){const S=f.children[0],w=i.select(f);_=S.getBoundingClientRect(),w.attr("width",_.width),w.attr("height",_.height)}b.attr("transform",i.computeLabelTransform(_,n)),R[t.id]||(R[t.id]={}),R[t.id].startRight=u,Z(h,t.startLabelRight)}if(t.endLabelLeft){const u=e.insert("g").attr("class","edgeTerminals"),b=u.insert("g").attr("class","inner"),f=await P(b,t.endLabelLeft,t.labelStyle);h=f;let _=f.getBBox();if(n){const S=f.children[0],w=i.select(f);_=S.getBoundingClientRect(),w.attr("width",_.width),w.attr("height",_.height)}b.attr("transform",i.computeLabelTransform(_,n)),u.node().appendChild(f),R[t.id]||(R[t.id]={}),R[t.id].endLeft=u,Z(h,t.endLabelLeft)}if(t.endLabelRight){const u=e.insert("g").attr("class","edgeTerminals"),b=u.insert("g").attr("class","inner"),f=await P(b,t.endLabelRight,t.labelStyle);h=f;let _=f.getBBox();if(n){const S=f.children[0],w=i.select(f);_=S.getBoundingClientRect(),w.attr("width",_.width),w.attr("height",_.height)}b.attr("transform",i.computeLabelTransform(_,n)),u.node().appendChild(f),R[t.id]||(R[t.id]={}),R[t.id].endRight=u,Z(h,t.endLabelRight)}return l},"insertEdgeLabel");function Z(e,t){i.getEffectiveHtmlLabels(i.getConfig2())&&e&&(e.style.width=t.length*9+"px",e.style.height="12px")}i.__name(Z,"setTerminalWidth");var Xe=i.__name((e,t)=>{i.log.debug("Moving label abc88 ",e.id,e.label,ut[e.id],t);let a=t.updatedPath?t.updatedPath:t.originalPath;const n=i.getConfig2(),{subGraphTitleTotalMargin:c}=i.getSubGraphTitleMargins(n);if(e.label){const s=ut[e.id];let r=e.x,l=e.y;if(a){const o=i.utils_default.calcLabelPosition(a);i.log.debug("Moving label "+e.label+" from (",r,",",l,") to (",o.x,",",o.y,") abc88"),t.updatedPath&&(r=o.x,l=o.y)}s.attr("transform",`translate(${r}, ${l+c/2})`)}if(e.startLabelLeft){const s=R[e.id].startLeft;let r=e.x,l=e.y;if(a){const o=i.utils_default.calcTerminalLabelPosition(e.arrowTypeStart?10:0,"start_left",a);r=o.x,l=o.y}s.attr("transform",`translate(${r}, ${l})`)}if(e.startLabelRight){const s=R[e.id].startRight;let r=e.x,l=e.y;if(a){const o=i.utils_default.calcTerminalLabelPosition(e.arrowTypeStart?10:0,"start_right",a);r=o.x,l=o.y}s.attr("transform",`translate(${r}, ${l})`)}if(e.endLabelLeft){const s=R[e.id].endLeft;let r=e.x,l=e.y;if(a){const o=i.utils_default.calcTerminalLabelPosition(e.arrowTypeEnd?10:0,"end_left",a);r=o.x,l=o.y}s.attr("transform",`translate(${r}, ${l})`)}if(e.endLabelRight){const s=R[e.id].endRight;let r=e.x,l=e.y;if(a){const o=i.utils_default.calcTerminalLabelPosition(e.arrowTypeEnd?10:0,"end_right",a);r=o.x,l=o.y}s.attr("transform",`translate(${r}, ${l})`)}},"positionEdgeLabel"),je=i.__name((e,t)=>{const a=e.x,n=e.y,c=Math.abs(t.x-a),s=Math.abs(t.y-n),r=e.width/2,l=e.height/2;return c>=r||s>=l},"outsideNode"),Ve=i.__name((e,t,a)=>{i.log.debug(`intersection calc abc89:
|
|
130
|
+
outsidePoint: ${JSON.stringify(t)}
|
|
131
|
+
insidePoint : ${JSON.stringify(a)}
|
|
132
|
+
node : x:${e.x} y:${e.y} w:${e.width} h:${e.height}`);const n=e.x,c=e.y,s=Math.abs(n-a.x),r=e.width/2;let l=a.x<t.x?r-s:r+s;const o=e.height/2,x=Math.abs(t.y-a.y),h=Math.abs(t.x-a.x);if(Math.abs(c-t.y)*r>Math.abs(n-t.x)*o){let u=a.y<t.y?t.y-o-c:c-o-t.y;l=h*u/x;const b={x:a.x<t.x?a.x+l:a.x-h+l,y:a.y<t.y?a.y+x-u:a.y-x+u};return l===0&&(b.x=t.x,b.y=t.y),h===0&&(b.x=t.x),x===0&&(b.y=t.y),i.log.debug(`abc89 topp/bott calc, Q ${x}, q ${u}, R ${h}, r ${l}`,b),b}else{a.x<t.x?l=t.x-r-n:l=n-r-t.x;let u=x*l/h,b=a.x<t.x?a.x+h-l:a.x-h+l,f=a.y<t.y?a.y+u:a.y-u;return i.log.debug(`sides calc abc89, Q ${x}, q ${u}, R ${h}, r ${l}`,{_x:b,_y:f}),l===0&&(b=t.x,f=t.y),h===0&&(b=t.x),x===0&&(f=t.y),{x:b,y:f}}},"intersection"),Tt=i.__name((e,t)=>{i.log.debug("abc88 cutPathAtIntersect",e,t);let a=[],n=e[0],c=!1;return e.forEach(s=>{if(!je(t,s)&&!c){const r=Ve(t,n,s);let l=!1;a.forEach(o=>{l=l||o.x===r.x&&o.y===r.y}),a.some(o=>o.x===r.x&&o.y===r.y)||a.push(r),c=!0}else n=s,c||a.push(s)}),a},"cutPathAtIntersect"),qe=i.__name(function(e,t,a,n,c,s,r){let l=a.points;i.log.debug("abc88 InsertEdge: edge=",a,"e=",t);let o=!1;const x=s.node(t.v);var h=s.node(t.w);h?.intersect&&x?.intersect&&(l=l.slice(1,a.points.length-1),l.unshift(x.intersect(l[0])),l.push(h.intersect(l[l.length-1]))),a.toCluster&&(i.log.debug("to cluster abc88",n[a.toCluster]),l=Tt(a.points,n[a.toCluster].node),o=!0),a.fromCluster&&(i.log.debug("from cluster abc88",n[a.fromCluster]),l=Tt(l.reverse(),n[a.fromCluster].node).reverse(),o=!0);const u=l.filter(m=>!Number.isNaN(m.y));let b=St.curveBasis;a.curve&&(c==="graph"||c==="flowchart")&&(b=a.curve);const{x:f,y:_}=i.getLineFunctionsWithOffset(a),S=St.line().x(f).y(_).curve(b);let w;switch(a.thickness){case"normal":w="edge-thickness-normal";break;case"thick":w="edge-thickness-thick";break;case"invisible":w="edge-thickness-thick";break;default:w=""}switch(a.pattern){case"solid":w+=" edge-pattern-solid";break;case"dotted":w+=" edge-pattern-dotted";break;case"dashed":w+=" edge-pattern-dashed";break}const k=e.append("path").attr("d",S(u)).attr("id",a.id).attr("class"," "+w+(a.classes?" "+a.classes:"")).attr("style",a.style);let C="";(i.getConfig2().flowchart.arrowMarkerAbsolute||i.getConfig2().state.arrowMarkerAbsolute)&&(C=i.getUrl(!0)),Ye(k,a,C,r,c);let E={};return o&&(E.updatedPath=l),E.originalPath=a.points,E},"insertEdge"),Ze=i.__name(e=>{const t=new Set;for(const a of e)switch(a){case"x":t.add("right"),t.add("left");break;case"y":t.add("up"),t.add("down");break;default:t.add(a);break}return t},"expandAndDeduplicateDirections"),Ge=i.__name((e,t,a)=>{const n=Ze(e),c=2,s=t.height+2*a.padding,r=s/c,l=t.width+2*r+a.padding,o=a.padding/2;return n.has("right")&&n.has("left")&&n.has("up")&&n.has("down")?[{x:0,y:0},{x:r,y:0},{x:l/2,y:2*o},{x:l-r,y:0},{x:l,y:0},{x:l,y:-s/3},{x:l+2*o,y:-s/2},{x:l,y:-2*s/3},{x:l,y:-s},{x:l-r,y:-s},{x:l/2,y:-s-2*o},{x:r,y:-s},{x:0,y:-s},{x:0,y:-2*s/3},{x:-2*o,y:-s/2},{x:0,y:-s/3}]:n.has("right")&&n.has("left")&&n.has("up")?[{x:r,y:0},{x:l-r,y:0},{x:l,y:-s/2},{x:l-r,y:-s},{x:r,y:-s},{x:0,y:-s/2}]:n.has("right")&&n.has("left")&&n.has("down")?[{x:0,y:0},{x:r,y:-s},{x:l-r,y:-s},{x:l,y:0}]:n.has("right")&&n.has("up")&&n.has("down")?[{x:0,y:0},{x:l,y:-r},{x:l,y:-s+r},{x:0,y:-s}]:n.has("left")&&n.has("up")&&n.has("down")?[{x:l,y:0},{x:0,y:-r},{x:0,y:-s+r},{x:l,y:-s}]:n.has("right")&&n.has("left")?[{x:r,y:0},{x:r,y:-o},{x:l-r,y:-o},{x:l-r,y:0},{x:l,y:-s/2},{x:l-r,y:-s},{x:l-r,y:-s+o},{x:r,y:-s+o},{x:r,y:-s},{x:0,y:-s/2}]:n.has("up")&&n.has("down")?[{x:l/2,y:0},{x:0,y:-o},{x:r,y:-o},{x:r,y:-s+o},{x:0,y:-s+o},{x:l/2,y:-s},{x:l,y:-s+o},{x:l-r,y:-s+o},{x:l-r,y:-o},{x:l,y:-o}]:n.has("right")&&n.has("up")?[{x:0,y:0},{x:l,y:-r},{x:0,y:-s}]:n.has("right")&&n.has("down")?[{x:0,y:0},{x:l,y:0},{x:0,y:-s}]:n.has("left")&&n.has("up")?[{x:l,y:0},{x:0,y:-r},{x:l,y:-s}]:n.has("left")&&n.has("down")?[{x:l,y:0},{x:0,y:0},{x:l,y:-s}]:n.has("right")?[{x:r,y:-o},{x:r,y:-o},{x:l-r,y:-o},{x:l-r,y:0},{x:l,y:-s/2},{x:l-r,y:-s},{x:l-r,y:-s+o},{x:r,y:-s+o},{x:r,y:-s+o}]:n.has("left")?[{x:r,y:0},{x:r,y:-o},{x:l-r,y:-o},{x:l-r,y:-s+o},{x:r,y:-s+o},{x:r,y:-s},{x:0,y:-s/2}]:n.has("up")?[{x:r,y:-o},{x:r,y:-s+o},{x:0,y:-s+o},{x:l/2,y:-s},{x:l,y:-s+o},{x:l-r,y:-s+o},{x:l-r,y:-o}]:n.has("down")?[{x:l/2,y:0},{x:0,y:-o},{x:r,y:-o},{x:r,y:-s+o},{x:l-r,y:-s+o},{x:l-r,y:-o},{x:l,y:-o}]:[{x:0,y:0}]},"getArrowPoints");function Ht(e,t){return e.intersect(t)}i.__name(Ht,"intersectNode");var Je=Ht;function Pt(e,t,a,n){var c=e.x,s=e.y,r=c-n.x,l=s-n.y,o=Math.sqrt(t*t*l*l+a*a*r*r),x=Math.abs(t*a*r/o);n.x<c&&(x=-x);var h=Math.abs(t*a*l/o);return n.y<s&&(h=-h),{x:c+x,y:s+h}}i.__name(Pt,"intersectEllipse");var Wt=Pt;function Yt(e,t,a){return Wt(e,t,t,a)}i.__name(Yt,"intersectCircle");var Qe=Yt;function Kt(e,t,a,n){var c,s,r,l,o,x,h,u,b,f,_,S,w,k,C;if(c=t.y-e.y,r=e.x-t.x,o=t.x*e.y-e.x*t.y,b=c*a.x+r*a.y+o,f=c*n.x+r*n.y+o,!(b!==0&&f!==0&&pt(b,f))&&(s=n.y-a.y,l=a.x-n.x,x=n.x*a.y-a.x*n.y,h=s*e.x+l*e.y+x,u=s*t.x+l*t.y+x,!(h!==0&&u!==0&&pt(h,u))&&(_=c*l-s*r,_!==0)))return S=Math.abs(_/2),w=r*x-l*o,k=w<0?(w-S)/_:(w+S)/_,w=s*o-c*x,C=w<0?(w-S)/_:(w+S)/_,{x:k,y:C}}i.__name(Kt,"intersectLine");function pt(e,t){return e*t>0}i.__name(pt,"sameSign");var $e=Kt,tr=Ut;function Ut(e,t,a){var n=e.x,c=e.y,s=[],r=Number.POSITIVE_INFINITY,l=Number.POSITIVE_INFINITY;typeof t.forEach=="function"?t.forEach(function(_){r=Math.min(r,_.x),l=Math.min(l,_.y)}):(r=Math.min(r,t.x),l=Math.min(l,t.y));for(var o=n-e.width/2-r,x=c-e.height/2-l,h=0;h<t.length;h++){var u=t[h],b=t[h<t.length-1?h+1:0],f=$e(e,a,{x:o+u.x,y:x+u.y},{x:o+b.x,y:x+b.y});f&&s.push(f)}return s.length?(s.length>1&&s.sort(function(_,S){var w=_.x-a.x,k=_.y-a.y,C=Math.sqrt(w*w+k*k),E=S.x-a.x,m=S.y-a.y,d=Math.sqrt(E*E+m*m);return C<d?-1:C===d?0:1}),s[0]):e}i.__name(Ut,"intersectPolygon");var er=i.__name((e,t)=>{var a=e.x,n=e.y,c=t.x-a,s=t.y-n,r=e.width/2,l=e.height/2,o,x;return Math.abs(s)*r>Math.abs(c)*l?(s<0&&(l=-l),o=s===0?0:l*c/s,x=l):(c<0&&(r=-r),o=r,x=c===0?0:r*s/c),{x:a+o,y:n+x}},"intersectRect"),rr=er,D={node:Je,circle:Qe,ellipse:Wt,polygon:tr,rect:rr},O=i.__name(async(e,t,a,n)=>{const c=i.getConfig2();let s;const r=t.useHtmlLabels||i.getEffectiveHtmlLabels(c);a?s=a:s="node default";const l=e.insert("g").attr("class",s).attr("id",t.domId||t.id),o=l.insert("g").attr("class","label").attr("style",t.labelStyle);let x;t.labelText===void 0?x="":x=typeof t.labelText=="string"?t.labelText:t.labelText[0];let h;t.labelType==="markdown"?h=i.createText(o,i.sanitizeText(i.decodeEntities(x),c),{useHtmlLabels:r,width:t.width||c.flowchart.wrappingWidth,classes:"markdown-node-label"},c):h=await P(o,i.sanitizeText(i.decodeEntities(x),c),t.labelStyle,!1,n);let u=h.getBBox();const b=t.padding/2;if(i.getEffectiveHtmlLabels(c)){const f=h.children[0],_=i.select(h);await i.configureLabelImages(f,x),u=f.getBoundingClientRect(),_.attr("width",u.width),_.attr("height",u.height)}return r?o.attr("transform","translate("+-u.width/2+", "+-u.height/2+")"):o.attr("transform","translate(0, "+-u.height/2+")"),t.centerLabel&&o.attr("transform","translate("+-u.width/2+", "+-u.height/2+")"),o.insert("rect",":first-child"),{shapeSvg:l,bbox:u,halfPadding:b,label:o}},"labelHelper"),T=i.__name((e,t)=>{const a=t.node().getBBox();e.width=a.width,e.height=a.height},"updateNodeBounds");function Y(e,t,a,n){return e.insert("polygon",":first-child").attr("points",n.map(function(c){return c.x+","+c.y}).join(" ")).attr("class","label-container").attr("transform","translate("+-t/2+","+a/2+")")}i.__name(Y,"insertPolygonShape");var ar=i.__name(async(e,t)=>{t.useHtmlLabels||i.getEffectiveHtmlLabels(i.getConfig2())||(t.centerLabel=!0);const{shapeSvg:n,bbox:c,halfPadding:s}=await O(e,t,"node "+t.classes,!0);i.log.info("Classes = ",t.classes);const r=n.insert("rect",":first-child");return r.attr("rx",t.rx).attr("ry",t.ry).attr("x",-c.width/2-s).attr("y",-c.height/2-s).attr("width",c.width+t.padding).attr("height",c.height+t.padding),T(t,r),t.intersect=function(l){return D.rect(t,l)},n},"note"),sr=ar,Ct=i.__name(e=>e?" "+e:"","formatClass"),F=i.__name((e,t)=>`${t||"node default"}${Ct(e.classes)} ${Ct(e.class)}`,"getClassesFromNode"),Bt=i.__name(async(e,t)=>{const{shapeSvg:a,bbox:n}=await O(e,t,F(t,void 0),!0),c=n.width+t.padding,s=n.height+t.padding,r=c+s,l=[{x:r/2,y:0},{x:r,y:-r/2},{x:r/2,y:-r},{x:0,y:-r/2}];i.log.info("Question main (Circle)");const o=Y(a,r,r,l);return o.attr("style",t.style),T(t,o),t.intersect=function(x){return i.log.warn("Intersect called"),D.polygon(t,l,x)},a},"question"),ir=i.__name((e,t)=>{const a=e.insert("g").attr("class","node default").attr("id",t.domId||t.id),n=28,c=[{x:0,y:n/2},{x:n/2,y:0},{x:0,y:-n/2},{x:-n/2,y:0}];return a.insert("polygon",":first-child").attr("points",c.map(function(r){return r.x+","+r.y}).join(" ")).attr("class","state-start").attr("r",7).attr("width",28).attr("height",28),t.width=28,t.height=28,t.intersect=function(r){return D.circle(t,14,r)},a},"choice"),nr=i.__name(async(e,t)=>{const{shapeSvg:a,bbox:n}=await O(e,t,F(t,void 0),!0),c=4,s=n.height+t.padding,r=s/c,l=n.width+2*r+t.padding,o=[{x:r,y:0},{x:l-r,y:0},{x:l,y:-s/2},{x:l-r,y:-s},{x:r,y:-s},{x:0,y:-s/2}],x=Y(a,l,s,o);return x.attr("style",t.style),T(t,x),t.intersect=function(h){return D.polygon(t,o,h)},a},"hexagon"),lr=i.__name(async(e,t)=>{const{shapeSvg:a,bbox:n}=await O(e,t,void 0,!0),c=2,s=n.height+2*t.padding,r=s/c,l=n.width+2*r+t.padding,o=Ge(t.directions,n,t),x=Y(a,l,s,o);return x.attr("style",t.style),T(t,x),t.intersect=function(h){return D.polygon(t,o,h)},a},"block_arrow"),cr=i.__name(async(e,t)=>{const{shapeSvg:a,bbox:n}=await O(e,t,F(t,void 0),!0),c=n.width+t.padding,s=n.height+t.padding,r=[{x:-s/2,y:0},{x:c,y:0},{x:c,y:-s},{x:-s/2,y:-s},{x:0,y:-s/2}];return Y(a,c,s,r).attr("style",t.style),t.width=c+s,t.height=s,t.intersect=function(o){return D.polygon(t,r,o)},a},"rect_left_inv_arrow"),or=i.__name(async(e,t)=>{const{shapeSvg:a,bbox:n}=await O(e,t,F(t),!0),c=n.width+t.padding,s=n.height+t.padding,r=[{x:-2*s/6,y:0},{x:c-s/6,y:0},{x:c+2*s/6,y:-s},{x:s/6,y:-s}],l=Y(a,c,s,r);return l.attr("style",t.style),T(t,l),t.intersect=function(o){return D.polygon(t,r,o)},a},"lean_right"),hr=i.__name(async(e,t)=>{const{shapeSvg:a,bbox:n}=await O(e,t,F(t,void 0),!0),c=n.width+t.padding,s=n.height+t.padding,r=[{x:2*s/6,y:0},{x:c+s/6,y:0},{x:c-2*s/6,y:-s},{x:-s/6,y:-s}],l=Y(a,c,s,r);return l.attr("style",t.style),T(t,l),t.intersect=function(o){return D.polygon(t,r,o)},a},"lean_left"),gr=i.__name(async(e,t)=>{const{shapeSvg:a,bbox:n}=await O(e,t,F(t,void 0),!0),c=n.width+t.padding,s=n.height+t.padding,r=[{x:-2*s/6,y:0},{x:c+2*s/6,y:0},{x:c-s/6,y:-s},{x:s/6,y:-s}],l=Y(a,c,s,r);return l.attr("style",t.style),T(t,l),t.intersect=function(o){return D.polygon(t,r,o)},a},"trapezoid"),dr=i.__name(async(e,t)=>{const{shapeSvg:a,bbox:n}=await O(e,t,F(t,void 0),!0),c=n.width+t.padding,s=n.height+t.padding,r=[{x:s/6,y:0},{x:c-s/6,y:0},{x:c+2*s/6,y:-s},{x:-2*s/6,y:-s}],l=Y(a,c,s,r);return l.attr("style",t.style),T(t,l),t.intersect=function(o){return D.polygon(t,r,o)},a},"inv_trapezoid"),ur=i.__name(async(e,t)=>{const{shapeSvg:a,bbox:n}=await O(e,t,F(t,void 0),!0),c=n.width+t.padding,s=n.height+t.padding,r=[{x:0,y:0},{x:c+s/2,y:0},{x:c,y:-s/2},{x:c+s/2,y:-s},{x:0,y:-s}],l=Y(a,c,s,r);return l.attr("style",t.style),T(t,l),t.intersect=function(o){return D.polygon(t,r,o)},a},"rect_right_inv_arrow"),pr=i.__name(async(e,t)=>{const{shapeSvg:a,bbox:n}=await O(e,t,F(t,void 0),!0),c=n.width+t.padding,s=c/2,r=s/(2.5+c/50),l=n.height+r+t.padding,o="M 0,"+r+" a "+s+","+r+" 0,0,0 "+c+" 0 a "+s+","+r+" 0,0,0 "+-c+" 0 l 0,"+l+" a "+s+","+r+" 0,0,0 "+c+" 0 l 0,"+-l,x=a.attr("label-offset-y",r).insert("path",":first-child").attr("style",t.style).attr("d",o).attr("transform","translate("+-c/2+","+-(l/2+r)+")");return T(t,x),t.intersect=function(h){const u=D.rect(t,h),b=u.x-t.x;if(s!=0&&(Math.abs(b)<t.width/2||Math.abs(b)==t.width/2&&Math.abs(u.y-t.y)>t.height/2-r)){let f=r*r*(1-b*b/(s*s));f!=0&&(f=Math.sqrt(f)),f=r-f,h.y-t.y>0&&(f=-f),u.y+=f}return u},a},"cylinder"),fr=i.__name(async(e,t)=>{const{shapeSvg:a,bbox:n,halfPadding:c}=await O(e,t,"node "+t.classes+" "+t.class,!0),s=a.insert("rect",":first-child"),r=t.positioned?t.width:n.width+t.padding,l=t.positioned?t.height:n.height+t.padding,o=t.positioned?-r/2:-n.width/2-c,x=t.positioned?-l/2:-n.height/2-c;if(s.attr("class","basic label-container").attr("style",t.style).attr("rx",t.rx).attr("ry",t.ry).attr("x",o).attr("y",x).attr("width",r).attr("height",l),t.props){const h=new Set(Object.keys(t.props));t.props.borders&&(at(s,t.props.borders,r,l),h.delete("borders")),h.forEach(u=>{i.log.warn(`Unknown node property ${u}`)})}return T(t,s),t.intersect=function(h){return D.rect(t,h)},a},"rect"),xr=i.__name(async(e,t)=>{const{shapeSvg:a,bbox:n,halfPadding:c}=await O(e,t,"node "+t.classes,!0),s=a.insert("rect",":first-child"),r=t.positioned?t.width:n.width+t.padding,l=t.positioned?t.height:n.height+t.padding,o=t.positioned?-r/2:-n.width/2-c,x=t.positioned?-l/2:-n.height/2-c;if(s.attr("class","basic cluster composite label-container").attr("style",t.style).attr("rx",t.rx).attr("ry",t.ry).attr("x",o).attr("y",x).attr("width",r).attr("height",l),t.props){const h=new Set(Object.keys(t.props));t.props.borders&&(at(s,t.props.borders,r,l),h.delete("borders")),h.forEach(u=>{i.log.warn(`Unknown node property ${u}`)})}return T(t,s),t.intersect=function(h){return D.rect(t,h)},a},"composite"),yr=i.__name(async(e,t)=>{const{shapeSvg:a}=await O(e,t,"label",!0);i.log.trace("Classes = ",t.class);const n=a.insert("rect",":first-child"),c=0,s=0;if(n.attr("width",c).attr("height",s),a.attr("class","label edgeLabel"),t.props){const r=new Set(Object.keys(t.props));t.props.borders&&(at(n,t.props.borders,c,s),r.delete("borders")),r.forEach(l=>{i.log.warn(`Unknown node property ${l}`)})}return T(t,n),t.intersect=function(r){return D.rect(t,r)},a},"labelRect");function at(e,t,a,n){const c=[],s=i.__name(l=>{c.push(l,0)},"addBorder"),r=i.__name(l=>{c.push(0,l)},"skipBorder");t.includes("t")?(i.log.debug("add top border"),s(a)):r(a),t.includes("r")?(i.log.debug("add right border"),s(n)):r(n),t.includes("b")?(i.log.debug("add bottom border"),s(a)):r(a),t.includes("l")?(i.log.debug("add left border"),s(n)):r(n),e.attr("stroke-dasharray",c.join(" "))}i.__name(at,"applyNodePropertyBorders");var br=i.__name(async(e,t)=>{let a;t.classes?a="node "+t.classes:a="node default";const n=e.insert("g").attr("class",a).attr("id",t.domId||t.id),c=n.insert("rect",":first-child"),s=n.insert("line"),r=n.insert("g").attr("class","label"),l=t.labelText.flat?t.labelText.flat():t.labelText;let o="";typeof l=="object"?o=l[0]:o=l,i.log.info("Label text abc79",o,l,typeof l=="object");const x=await P(r,o,t.labelStyle,!0,!0);let h={width:0,height:0};if(i.getEffectiveHtmlLabels(i.getConfig2())){const S=x.children[0],w=i.select(x);h=S.getBoundingClientRect(),w.attr("width",h.width),w.attr("height",h.height)}i.log.info("Text 2",l);const u=l.slice(1,l.length);let b=x.getBBox();const f=await P(r,u.join?u.join("<br/>"):u,t.labelStyle,!0,!0);if(i.getEffectiveHtmlLabels(i.getConfig2())){const S=f.children[0],w=i.select(f);h=S.getBoundingClientRect(),w.attr("width",h.width),w.attr("height",h.height)}const _=t.padding/2;return i.select(f).attr("transform","translate( "+(h.width>b.width?0:(b.width-h.width)/2)+", "+(b.height+_+5)+")"),i.select(x).attr("transform","translate( "+(h.width<b.width?0:-(b.width-h.width)/2)+", 0)"),h=r.node().getBBox(),r.attr("transform","translate("+-h.width/2+", "+(-h.height/2-_+3)+")"),c.attr("class","outer title-state").attr("x",-h.width/2-_).attr("y",-h.height/2-_).attr("width",h.width+t.padding).attr("height",h.height+t.padding),s.attr("class","divider").attr("x1",-h.width/2-_).attr("x2",h.width/2+_).attr("y1",-h.height/2-_+b.height+_).attr("y2",-h.height/2-_+b.height+_),T(t,c),t.intersect=function(S){return D.rect(t,S)},n},"rectWithTitle"),mr=i.__name(async(e,t)=>{const{shapeSvg:a,bbox:n}=await O(e,t,F(t,void 0),!0),c=n.height+t.padding,s=n.width+c/4+t.padding,r=a.insert("rect",":first-child").attr("style",t.style).attr("rx",c/2).attr("ry",c/2).attr("x",-s/2).attr("y",-c/2).attr("width",s).attr("height",c);return T(t,r),t.intersect=function(l){return D.rect(t,l)},a},"stadium"),_r=i.__name(async(e,t)=>{const{shapeSvg:a,bbox:n,halfPadding:c}=await O(e,t,F(t,void 0),!0),s=a.insert("circle",":first-child");return s.attr("style",t.style).attr("rx",t.rx).attr("ry",t.ry).attr("r",n.width/2+c).attr("width",n.width+t.padding).attr("height",n.height+t.padding),i.log.info("Circle main"),T(t,s),t.intersect=function(r){return i.log.info("Circle intersect",t,n.width/2+c,r),D.circle(t,n.width/2+c,r)},a},"circle"),wr=i.__name(async(e,t)=>{const{shapeSvg:a,bbox:n,halfPadding:c}=await O(e,t,F(t,void 0),!0),s=5,r=a.insert("g",":first-child"),l=r.insert("circle"),o=r.insert("circle");return r.attr("class",t.class),l.attr("style",t.style).attr("rx",t.rx).attr("ry",t.ry).attr("r",n.width/2+c+s).attr("width",n.width+t.padding+s*2).attr("height",n.height+t.padding+s*2),o.attr("style",t.style).attr("rx",t.rx).attr("ry",t.ry).attr("r",n.width/2+c).attr("width",n.width+t.padding).attr("height",n.height+t.padding),i.log.info("DoubleCircle main"),T(t,l),t.intersect=function(x){return i.log.info("DoubleCircle intersect",t,n.width/2+c+s,x),D.circle(t,n.width/2+c+s,x)},a},"doublecircle"),Lr=i.__name(async(e,t)=>{const{shapeSvg:a,bbox:n}=await O(e,t,F(t,void 0),!0),c=n.width+t.padding,s=n.height+t.padding,r=[{x:0,y:0},{x:c,y:0},{x:c,y:-s},{x:0,y:-s},{x:0,y:0},{x:-8,y:0},{x:c+8,y:0},{x:c+8,y:-s},{x:-8,y:-s},{x:-8,y:0}],l=Y(a,c,s,r);return l.attr("style",t.style),T(t,l),t.intersect=function(o){return D.polygon(t,r,o)},a},"subroutine"),Sr=i.__name((e,t)=>{const a=e.insert("g").attr("class","node default").attr("id",t.domId||t.id),n=a.insert("circle",":first-child");return n.attr("class","state-start").attr("r",7).attr("width",14).attr("height",14),T(t,n),t.intersect=function(c){return D.circle(t,7,c)},a},"start"),It=i.__name((e,t,a)=>{const n=e.insert("g").attr("class","node default").attr("id",t.domId||t.id);let c=70,s=10;a==="LR"&&(c=10,s=70);const r=n.append("rect").attr("x",-1*c/2).attr("y",-1*s/2).attr("width",c).attr("height",s).attr("class","fork-join");return T(t,r),t.height=t.height+t.padding/2,t.width=t.width+t.padding/2,t.intersect=function(l){return D.rect(t,l)},n},"forkJoin"),vr=i.__name((e,t)=>{const a=e.insert("g").attr("class","node default").attr("id",t.domId||t.id),n=a.insert("circle",":first-child"),c=a.insert("circle",":first-child");return c.attr("class","state-start").attr("r",7).attr("width",14).attr("height",14),n.attr("class","state-end").attr("r",5).attr("width",10).attr("height",10),T(t,c),t.intersect=function(s){return D.circle(t,7,s)},a},"end"),kr=i.__name(async(e,t)=>{const a=t.padding/2,n=4,c=8;let s;t.classes?s="node "+t.classes:s="node default";const r=e.insert("g").attr("class",s).attr("id",t.domId||t.id),l=r.insert("rect",":first-child"),o=r.insert("line"),x=r.insert("line");let h=0,u=n;const b=r.insert("g").attr("class","label");let f=0;const _=t.classData.annotations?.[0],S=t.classData.annotations[0]?"«"+t.classData.annotations[0]+"»":"",w=await P(b,S,t.labelStyle,!0,!0);let k=w.getBBox();if(i.getEffectiveHtmlLabels(i.getConfig2())){const v=w.children[0],g=i.select(w);k=v.getBoundingClientRect(),g.attr("width",k.width),g.attr("height",k.height)}t.classData.annotations[0]&&(u+=k.height+n,h+=k.width);let C=t.classData.label;t.classData.type!==void 0&&t.classData.type!==""&&(i.getEffectiveHtmlLabels(i.getConfig2())?C+="<"+t.classData.type+">":C+="<"+t.classData.type+">");const E=await P(b,C,t.labelStyle,!0,!0);i.select(E).attr("class","classTitle");let m=E.getBBox();if(i.getEffectiveHtmlLabels(i.getConfig2())){const v=E.children[0],g=i.select(E);m=v.getBoundingClientRect(),g.attr("width",m.width),g.attr("height",m.height)}u+=m.height+n,m.width>h&&(h=m.width);const d=[];t.classData.members.forEach(async v=>{const g=v.getDisplayDetails();let A=g.displayText;i.getEffectiveHtmlLabels(i.getConfig2())&&(A=A.replace(/</g,"<").replace(/>/g,">"));const p=await P(b,A,g.cssStyle?g.cssStyle:t.labelStyle,!0,!0);let I=p.getBBox();if(i.getEffectiveHtmlLabels(i.getConfig2())){const X=p.children[0],K=i.select(p);I=X.getBoundingClientRect(),K.attr("width",I.width),K.attr("height",I.height)}I.width>h&&(h=I.width),u+=I.height+n,d.push(p)}),u+=c;const y=[];if(t.classData.methods.forEach(async v=>{const g=v.getDisplayDetails();let A=g.displayText;i.getEffectiveHtmlLabels(i.getConfig2())&&(A=A.replace(/</g,"<").replace(/>/g,">"));const p=await P(b,A,g.cssStyle?g.cssStyle:t.labelStyle,!0,!0);let I=p.getBBox();if(i.getEffectiveHtmlLabels(i.getConfig2())){const X=p.children[0],K=i.select(p);I=X.getBoundingClientRect(),K.attr("width",I.width),K.attr("height",I.height)}I.width>h&&(h=I.width),u+=I.height+n,y.push(p)}),u+=c,_){let v=(h-k.width)/2;i.select(w).attr("transform","translate( "+(-1*h/2+v)+", "+-1*u/2+")"),f=k.height+n}let L=(h-m.width)/2;return i.select(E).attr("transform","translate( "+(-1*h/2+L)+", "+(-1*u/2+f)+")"),f+=m.height+n,o.attr("class","divider").attr("x1",-h/2-a).attr("x2",h/2+a).attr("y1",-u/2-a+c+f).attr("y2",-u/2-a+c+f),f+=c,d.forEach(v=>{i.select(v).attr("transform","translate( "+-h/2+", "+(-1*u/2+f+c/2)+")");const g=v?.getBBox();f+=(g?.height??0)+n}),f+=c,x.attr("class","divider").attr("x1",-h/2-a).attr("x2",h/2+a).attr("y1",-u/2-a+c+f).attr("y2",-u/2-a+c+f),f+=c,y.forEach(v=>{i.select(v).attr("transform","translate( "+-h/2+", "+(-1*u/2+f)+")");const g=v?.getBBox();f+=(g?.height??0)+n}),l.attr("style",t.style).attr("class","outer title-state").attr("x",-h/2-a).attr("y",-(u/2)-a).attr("width",h+t.padding).attr("height",u+t.padding),T(t,l),t.intersect=function(v){return D.rect(t,v)},r},"class_box"),Nt={rhombus:Bt,composite:xr,question:Bt,rect:fr,labelRect:yr,rectWithTitle:br,choice:ir,circle:_r,doublecircle:wr,stadium:mr,hexagon:nr,block_arrow:lr,rect_left_inv_arrow:cr,lean_right:or,lean_left:hr,trapezoid:gr,inv_trapezoid:dr,rect_right_inv_arrow:ur,cylinder:pr,start:Sr,end:vr,note:sr,subroutine:Lr,fork:It,join:It,class_box:kr},tt={},Xt=i.__name(async(e,t,a)=>{let n,c;if(t.link){let s;i.getConfig2().securityLevel==="sandbox"?s="_top":t.linkTarget&&(s=t.linkTarget||"_blank"),n=e.insert("svg:a").attr("xlink:href",t.link).attr("target",s),c=await Nt[t.shape](n,t,a)}else c=await Nt[t.shape](e,t,a),n=c;return t.tooltip&&c.attr("title",t.tooltip),t.class&&c.attr("class","node default "+t.class),tt[t.id]=n,t.haveCallback&&tt[t.id].attr("class",tt[t.id].attr("class")+" clickable"),n},"insertNode"),Er=i.__name(e=>{const t=tt[e.id];i.log.trace("Transforming node",e.diff,e,"translate("+(e.x-e.width/2-5)+", "+e.width/2+")");const a=8,n=e.diff||0;return e.clusterNode?t.attr("transform","translate("+(e.x+n-e.width/2)+", "+(e.y-e.height/2-a)+")"):t.attr("transform","translate("+e.x+", "+e.y+")"),n},"positionNode");function _t(e,t,a=!1){const n=e;let c="default";(n?.classes?.length||0)>0&&(c=(n?.classes??[]).join(" ")),c=c+" flowchart-label";let s=0,r="",l;switch(n.type){case"round":s=5,r="rect";break;case"composite":s=0,r="composite",l=0;break;case"square":r="rect";break;case"diamond":r="question";break;case"hexagon":r="hexagon";break;case"block_arrow":r="block_arrow";break;case"odd":r="rect_left_inv_arrow";break;case"lean_right":r="lean_right";break;case"lean_left":r="lean_left";break;case"trapezoid":r="trapezoid";break;case"inv_trapezoid":r="inv_trapezoid";break;case"rect_left_inv_arrow":r="rect_left_inv_arrow";break;case"circle":r="circle";break;case"ellipse":r="ellipse";break;case"stadium":r="stadium";break;case"subroutine":r="subroutine";break;case"cylinder":r="cylinder";break;case"group":r="rect";break;case"doublecircle":r="doublecircle";break;default:r="rect"}const o=i.getStylesFromArray(n?.styles??[]),x=n.label,h=n.size??{width:0,height:0,x:0,y:0},u=t.getDiagramId();return{labelStyle:o.labelStyle,shape:r,labelText:x,rx:s,ry:s,class:c,style:o.style,id:n.id,domId:u?`${u}-${n.id}`:n.id,directions:n.directions,width:h.width,height:h.height,x:h.x,y:h.y,positioned:a,intersect:void 0,type:n.type,padding:l??i.getConfig()?.block?.padding??0}}i.__name(_t,"getNodeFromBlock");async function jt(e,t,a){const n=_t(t,a,!1);if(n.type==="group")return;const c=i.getConfig(),s=await Xt(e,n,{config:c}),r=s.node().getBBox(),l=a.getBlock(n.id);l.size={width:r.width,height:r.height,x:0,y:0,node:s},a.setBlock(l),s.remove()}i.__name(jt,"calculateBlockSize");async function Vt(e,t,a){const n=_t(t,a,!0);if(a.getBlock(n.id).type!=="space"){const s=i.getConfig();await Xt(e,n,{config:s}),t.intersect=n?.intersect,Er(n)}}i.__name(Vt,"insertBlockPositioned");async function st(e,t,a,n){for(const c of t)await n(e,c,a),c.children&&await st(e,c.children,a,n)}i.__name(st,"performOperations");async function qt(e,t,a){await st(e,t,a,jt)}i.__name(qt,"calculateBlockSizes");async function Zt(e,t,a){await st(e,t,a,Vt)}i.__name(Zt,"insertBlocks");async function Gt(e,t,a,n,c){const s=new re.Graph({multigraph:!0,compound:!0});s.setGraph({rankdir:"TB",nodesep:10,ranksep:10,marginx:8,marginy:8});for(const r of a)r.size&&s.setNode(r.id,{width:r.size.width,height:r.size.height,intersect:r.intersect});for(const r of t)if(r.start&&r.end){const l=n.getBlock(r.start),o=n.getBlock(r.end);if(l?.size&&o?.size){const x=l.size,h=o.size,u=[{x:x.x,y:x.y},{x:x.x+(h.x-x.x)/2,y:x.y+(h.y-x.y)/2},{x:h.x,y:h.y}],b=c?`${c}-${r.id}`:r.id;qe(e,{v:r.start,w:r.end,name:b},{...r,id:b,arrowTypeEnd:r.arrowTypeEnd,arrowTypeStart:r.arrowTypeStart,points:u,classes:"edge-thickness-normal edge-pattern-solid flowchart-link LS-a1 LE-b1"},void 0,"block",s,c),r.label&&(await Ue(e,{...r,label:r.label,labelStyle:"stroke: #333; stroke-width: 1.5px;fill:none;",arrowTypeEnd:r.arrowTypeEnd,arrowTypeStart:r.arrowTypeStart,points:u,classes:"edge-thickness-normal edge-pattern-solid flowchart-link LS-a1 LE-b1"}),Xe({...r,x:u[1].x,y:u[1].y},{originalPath:u}))}}}i.__name(Gt,"insertEdges");var Dr=i.__name(function(e,t){return t.db.getClasses()},"getClasses"),Tr=i.__name(async function(e,t,a,n){const{securityLevel:c,block:s}=i.getConfig(),r=n.db;r.setDiagramId(t);let l;c==="sandbox"&&(l=i.select("#i"+t));const o=c==="sandbox"?i.select(l.nodes()[0].contentDocument.body):i.select("body"),x=c==="sandbox"?o.select(`[id="${t}"]`):i.select(`[id="${t}"]`);He(x,["point","circle","cross"],n.type,t);const u=r.getBlocks(),b=r.getBlocksFlat(),f=r.getEdges(),_=x.insert("g").attr("class","block");await qt(_,u,r);const S=Ft(r);if(await Zt(_,u,r),await Gt(_,f,b,r,t),S){const w=S,k=Math.max(1,Math.round(.125*(w.width/w.height))),C=w.height+k+10,E=w.width+10,{useMaxWidth:m}=s;i.configureSvgSize(x,C,E,!!m),i.log.debug("Here Bounds",S,w),x.attr("viewBox",`${w.x-5} ${w.y-5} ${w.width+10} ${w.height+10}`)}},"draw"),Cr={draw:Tr,getClasses:Dr},Br={parser:se,db:ke,renderer:Cr,styles:De};exports.diagram=Br;
|
|
@@ -1,8 +1,9 @@
|
|
|
1
|
-
import { g as oe } from "./chunk-FMBD7UC4-
|
|
2
|
-
import { _ as d, D as at, d as T, e as he, l as S, z as de, B as ge, c as R,
|
|
3
|
-
import { c as
|
|
4
|
-
import { G as
|
|
5
|
-
import { c as
|
|
1
|
+
import { g as oe } from "./chunk-FMBD7UC4-cN7XywSK.js";
|
|
2
|
+
import { _ as d, D as at, d as T, e as he, l as S, z as de, B as ge, c as R, ae as ue, O as pe, af as F, ag as St, ah as $, ai as fe, u as tt, k as xe, aj as ye, i as It, ak as Ct, al as be } from "./cowboy-components-B5MDHQs5.js";
|
|
3
|
+
import { c as we } from "./clone-CC2YvoOD.js";
|
|
4
|
+
import { G as me } from "./graph-BNtv6wPN.js";
|
|
5
|
+
import { c as Le } from "./channel-Bo_TnECw.js";
|
|
6
|
+
import { l as Se, c as ke } from "./change-list-item-Bu_mPv-k.js";
|
|
6
7
|
var yt = (function() {
|
|
7
8
|
var e = /* @__PURE__ */ d(function(D, w, g, y) {
|
|
8
9
|
for (g = g || {}, y = D.length; y--; g[D[y]] = w) ;
|
|
@@ -602,7 +603,7 @@ Expecting ` + nt.join(", ") + ", got '" + (this.terminals_[P] || P) + "'" : ft =
|
|
|
602
603
|
return d(I, "Parser"), I.prototype = L, L.Parser = I, new I();
|
|
603
604
|
})();
|
|
604
605
|
yt.parser = yt;
|
|
605
|
-
var ve = yt, X = /* @__PURE__ */ new Map(), kt = [], bt = /* @__PURE__ */ new Map(), Ot = "color", Rt = "fill", Ee = "bgFill", Ht = ",", _e = R(), ct = /* @__PURE__ */ new Map(), vt = "", De = /* @__PURE__ */ d((e) =>
|
|
606
|
+
var ve = yt, X = /* @__PURE__ */ new Map(), kt = [], bt = /* @__PURE__ */ new Map(), Ot = "color", Rt = "fill", Ee = "bgFill", Ht = ",", _e = R(), ct = /* @__PURE__ */ new Map(), vt = "", De = /* @__PURE__ */ d((e) => xe.sanitizeText(e, _e), "sanitizeText"), Te = /* @__PURE__ */ d(function(e, t = "") {
|
|
606
607
|
let a = ct.get(e);
|
|
607
608
|
a || (a = { id: e, styles: [], textStyles: [] }, ct.set(e, a)), t?.split(Ht).forEach((i) => {
|
|
608
609
|
const l = i.replace(/([^;]*);/, "$1").trim();
|
|
@@ -652,7 +653,7 @@ var ve = yt, X = /* @__PURE__ */ new Map(), kt = [], bt = /* @__PURE__ */ new Ma
|
|
|
652
653
|
if (n === void 0 ? X.set(r.id, r) : (r.type !== "na" && (n.type = r.type), r.label !== r.id && (n.label = r.label)), r.children && Kt(r.children, r), r.type === "space") {
|
|
653
654
|
const c = r.width ?? 1;
|
|
654
655
|
for (let x = 0; x < c; x++) {
|
|
655
|
-
const o =
|
|
656
|
+
const o = we(r);
|
|
656
657
|
o.id = o.id + "-" + x, X.set(o.id, o), i.push(o);
|
|
657
658
|
}
|
|
658
659
|
} else n === void 0 && i.push(r);
|
|
@@ -751,7 +752,7 @@ var zt = 0, Ce = /* @__PURE__ */ d(() => (zt++, "id-" + Math.random().toString(3
|
|
|
751
752
|
setDiagramId: We,
|
|
752
753
|
getDiagramId: Ye
|
|
753
754
|
}, Xe = Ue, xt = /* @__PURE__ */ d((e, t) => {
|
|
754
|
-
const a =
|
|
755
|
+
const a = Le, i = a(e, "r"), l = a(e, "g"), s = a(e, "b");
|
|
755
756
|
return ge(i, l, s, t);
|
|
756
757
|
}, "fade"), je = /* @__PURE__ */ d((e) => `.label {
|
|
757
758
|
font-family: ${e.fontFamily};
|
|
@@ -1213,7 +1214,7 @@ d(et, "setTerminalWidth");
|
|
|
1213
1214
|
var dr = /* @__PURE__ */ d((e, t) => {
|
|
1214
1215
|
S.debug("Moving label abc88 ", e.id, e.label, mt[e.id], t);
|
|
1215
1216
|
let a = t.updatedPath ? t.updatedPath : t.originalPath;
|
|
1216
|
-
const i = R(), { subGraphTitleTotalMargin: l } =
|
|
1217
|
+
const i = R(), { subGraphTitleTotalMargin: l } = fe(i);
|
|
1217
1218
|
if (e.label) {
|
|
1218
1219
|
const s = mt[e.id];
|
|
1219
1220
|
let r = e.x, n = e.y;
|
|
@@ -1318,9 +1319,9 @@ var dr = /* @__PURE__ */ d((e, t) => {
|
|
|
1318
1319
|
var o = s.node(t.w);
|
|
1319
1320
|
o?.intersect && x?.intersect && (n = n.slice(1, a.points.length - 1), n.unshift(x.intersect(n[0])), n.push(o.intersect(n[n.length - 1]))), a.toCluster && (S.debug("to cluster abc88", i[a.toCluster]), n = Mt(a.points, i[a.toCluster].node), c = !0), a.fromCluster && (S.debug("from cluster abc88", i[a.fromCluster]), n = Mt(n.reverse(), i[a.fromCluster].node).reverse(), c = !0);
|
|
1320
1321
|
const u = n.filter((w) => !Number.isNaN(w.y));
|
|
1321
|
-
let b =
|
|
1322
|
+
let b = ke;
|
|
1322
1323
|
a.curve && (l === "graph" || l === "flowchart") && (b = a.curve);
|
|
1323
|
-
const { x: f, y: m } = ue(a), v =
|
|
1324
|
+
const { x: f, y: m } = ue(a), v = Se().x(f).y(m).curve(b);
|
|
1324
1325
|
let L;
|
|
1325
1326
|
switch (a.thickness) {
|
|
1326
1327
|
case "normal":
|
|
@@ -1348,7 +1349,7 @@ var dr = /* @__PURE__ */ d((e, t) => {
|
|
|
1348
1349
|
}
|
|
1349
1350
|
const _ = e.append("path").attr("d", v(u)).attr("id", a.id).attr("class", " " + L + (a.classes ? " " + a.classes : "")).attr("style", a.style);
|
|
1350
1351
|
let I = "";
|
|
1351
|
-
(R().flowchart.arrowMarkerAbsolute || R().state.arrowMarkerAbsolute) && (I =
|
|
1352
|
+
(R().flowchart.arrowMarkerAbsolute || R().state.arrowMarkerAbsolute) && (I = pe(!0)), cr(_, a, I, r, l);
|
|
1352
1353
|
let D = {};
|
|
1353
1354
|
return c && (D.updatedPath = n), D.originalPath = a.points, D;
|
|
1354
1355
|
}, "insertEdge"), fr = /* @__PURE__ */ d((e) => {
|
|
@@ -1586,7 +1587,7 @@ var Lr = /* @__PURE__ */ d((e, t) => {
|
|
|
1586
1587
|
const b = t.padding / 2;
|
|
1587
1588
|
if (F(l)) {
|
|
1588
1589
|
const f = o.children[0], m = T(o);
|
|
1589
|
-
await
|
|
1590
|
+
await be(f, x), u = f.getBoundingClientRect(), m.attr("width", u.width), m.attr("height", u.height);
|
|
1590
1591
|
}
|
|
1591
1592
|
return r ? c.attr("transform", "translate(" + -u.width / 2 + ", " + -u.height / 2 + ")") : c.attr("transform", "translate(0, " + -u.height / 2 + ")"), t.centerLabel && c.attr("transform", "translate(" + -u.width / 2 + ", " + -u.height / 2 + ")"), c.insert("rect", ":first-child"), { shapeSvg: n, bbox: u, halfPadding: b, label: c };
|
|
1592
1593
|
}, "labelHelper"), N = /* @__PURE__ */ d((e, t) => {
|
|
@@ -2155,7 +2156,7 @@ function Tt(e, t, a = !1) {
|
|
|
2155
2156
|
default:
|
|
2156
2157
|
r = "rect";
|
|
2157
2158
|
}
|
|
2158
|
-
const c =
|
|
2159
|
+
const c = ye(i?.styles ?? []), x = i.label, o = i.size ?? { width: 0, height: 0, x: 0, y: 0 }, u = t.getDiagramId();
|
|
2159
2160
|
return {
|
|
2160
2161
|
labelStyle: c.labelStyle,
|
|
2161
2162
|
shape: r,
|
|
@@ -2208,7 +2209,7 @@ async function se(e, t, a) {
|
|
|
2208
2209
|
}
|
|
2209
2210
|
d(se, "insertBlocks");
|
|
2210
2211
|
async function ie(e, t, a, i, l) {
|
|
2211
|
-
const s = new
|
|
2212
|
+
const s = new me({
|
|
2212
2213
|
multigraph: !0,
|
|
2213
2214
|
compound: !0
|
|
2214
2215
|
});
|
|
@@ -2289,12 +2290,12 @@ var Vr = /* @__PURE__ */ d(function(e, t) {
|
|
|
2289
2290
|
}, "draw"), Zr = {
|
|
2290
2291
|
draw: Gr,
|
|
2291
2292
|
getClasses: Vr
|
|
2292
|
-
},
|
|
2293
|
+
}, ra = {
|
|
2293
2294
|
parser: ve,
|
|
2294
2295
|
db: Xe,
|
|
2295
2296
|
renderer: Zr,
|
|
2296
2297
|
styles: Ve
|
|
2297
2298
|
};
|
|
2298
2299
|
export {
|
|
2299
|
-
|
|
2300
|
+
ra as diagram
|
|
2300
2301
|
};
|
|
@@ -1,5 +1,5 @@
|
|
|
1
|
-
import { g as Se, d as De } from "./chunk-YZCP3GAM-
|
|
2
|
-
import { _ as y, s as Pe, g as Be, a as Ie, b as Me, c as Bt, d as jt, l as de, e as Le, f as Ne, h as Tt, i as ge, j as Ye, w as je, k as $t, m as fe } from "./cowboy-components-
|
|
1
|
+
import { g as Se, d as De } from "./chunk-YZCP3GAM-eo-UEr6G.js";
|
|
2
|
+
import { _ as y, s as Pe, g as Be, a as Ie, b as Me, c as Bt, d as jt, l as de, e as Le, f as Ne, h as Tt, i as ge, j as Ye, w as je, k as $t, m as fe } from "./cowboy-components-B5MDHQs5.js";
|
|
3
3
|
var Ft = (function() {
|
|
4
4
|
var a = /* @__PURE__ */ y(function(_t, x, v, E) {
|
|
5
5
|
for (v = v || {}, E = _t.length; E--; v[_t[E]] = x) ;
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
"use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const he=require("./chunk-YZCP3GAM-CUdZyEqp.cjs"),u=require("./cowboy-components-BDlH5KPd.cjs");var Yt=(function(){var a=u.__name(function(mt,b,v,E){for(v=v||{},E=mt.length;E--;v[mt[E]]=b);return v},"o"),t=[1,24],s=[1,25],o=[1,26],r=[1,27],l=[1,28],e=[1,63],i=[1,64],n=[1,65],d=[1,66],_=[1,67],p=[1,68],y=[1,69],x=[1,29],O=[1,30],S=[1,31],P=[1,32],I=[1,33],U=[1,34],H=[1,35],q=[1,36],G=[1,37],K=[1,38],J=[1,39],Z=[1,40],$=[1,41],tt=[1,42],et=[1,43],at=[1,44],nt=[1,45],it=[1,46],st=[1,47],rt=[1,48],lt=[1,50],ot=[1,51],ct=[1,52],ht=[1,53],ut=[1,54],dt=[1,55],_t=[1,56],ft=[1,57],pt=[1,58],yt=[1,59],gt=[1,60],kt=[14,42],Wt=[14,34,36,37,38,39,40,41,42,44,45,46,47,48,49,50,51,52,53,54,55,56,57,58,59,60,61,62,63,64,65,66,67,68,69,70,71,72,73,74],Rt=[12,14,34,36,37,38,39,40,41,42,44,45,46,47,48,49,50,51,52,53,54,55,56,57,58,59,60,61,62,63,64,65,66,67,68,69,70,71,72,73,74],A=[1,82],C=[1,83],k=[1,84],w=[1,85],T=[12,14,42],ne=[12,14,33,42],Bt=[12,14,33,42,76,77,79,80],vt=[12,33],zt=[34,36,37,38,39,40,41,44,45,46,47,48,49,50,51,52,53,54,55,56,57,58,59,60,61,62,63,64,65,66,67,68,69,70,71,72,73,74],Xt={trace:u.__name(function(){},"trace"),yy:{},symbols_:{error:2,start:3,mermaidDoc:4,direction:5,direction_tb:6,direction_bt:7,direction_rl:8,direction_lr:9,graphConfig:10,C4_CONTEXT:11,NEWLINE:12,statements:13,EOF:14,C4_CONTAINER:15,C4_COMPONENT:16,C4_DYNAMIC:17,C4_DEPLOYMENT:18,otherStatements:19,diagramStatements:20,otherStatement:21,title:22,accDescription:23,acc_title:24,acc_title_value:25,acc_descr:26,acc_descr_value:27,acc_descr_multiline_value:28,boundaryStatement:29,boundaryStartStatement:30,boundaryStopStatement:31,boundaryStart:32,LBRACE:33,ENTERPRISE_BOUNDARY:34,attributes:35,SYSTEM_BOUNDARY:36,BOUNDARY:37,CONTAINER_BOUNDARY:38,NODE:39,NODE_L:40,NODE_R:41,RBRACE:42,diagramStatement:43,PERSON:44,PERSON_EXT:45,SYSTEM:46,SYSTEM_DB:47,SYSTEM_QUEUE:48,SYSTEM_EXT:49,SYSTEM_EXT_DB:50,SYSTEM_EXT_QUEUE:51,CONTAINER:52,CONTAINER_DB:53,CONTAINER_QUEUE:54,CONTAINER_EXT:55,CONTAINER_EXT_DB:56,CONTAINER_EXT_QUEUE:57,COMPONENT:58,COMPONENT_DB:59,COMPONENT_QUEUE:60,COMPONENT_EXT:61,COMPONENT_EXT_DB:62,COMPONENT_EXT_QUEUE:63,REL:64,BIREL:65,REL_U:66,REL_D:67,REL_L:68,REL_R:69,REL_B:70,REL_INDEX:71,UPDATE_EL_STYLE:72,UPDATE_REL_STYLE:73,UPDATE_LAYOUT_CONFIG:74,attribute:75,STR:76,STR_KEY:77,STR_VALUE:78,ATTRIBUTE:79,ATTRIBUTE_EMPTY:80,$accept:0,$end:1},terminals_:{2:"error",6:"direction_tb",7:"direction_bt",8:"direction_rl",9:"direction_lr",11:"C4_CONTEXT",12:"NEWLINE",14:"EOF",15:"C4_CONTAINER",16:"C4_COMPONENT",17:"C4_DYNAMIC",18:"C4_DEPLOYMENT",22:"title",23:"accDescription",24:"acc_title",25:"acc_title_value",26:"acc_descr",27:"acc_descr_value",28:"acc_descr_multiline_value",33:"LBRACE",34:"ENTERPRISE_BOUNDARY",36:"SYSTEM_BOUNDARY",37:"BOUNDARY",38:"CONTAINER_BOUNDARY",39:"NODE",40:"NODE_L",41:"NODE_R",42:"RBRACE",44:"PERSON",45:"PERSON_EXT",46:"SYSTEM",47:"SYSTEM_DB",48:"SYSTEM_QUEUE",49:"SYSTEM_EXT",50:"SYSTEM_EXT_DB",51:"SYSTEM_EXT_QUEUE",52:"CONTAINER",53:"CONTAINER_DB",54:"CONTAINER_QUEUE",55:"CONTAINER_EXT",56:"CONTAINER_EXT_DB",57:"CONTAINER_EXT_QUEUE",58:"COMPONENT",59:"COMPONENT_DB",60:"COMPONENT_QUEUE",61:"COMPONENT_EXT",62:"COMPONENT_EXT_DB",63:"COMPONENT_EXT_QUEUE",64:"REL",65:"BIREL",66:"REL_U",67:"REL_D",68:"REL_L",69:"REL_R",70:"REL_B",71:"REL_INDEX",72:"UPDATE_EL_STYLE",73:"UPDATE_REL_STYLE",74:"UPDATE_LAYOUT_CONFIG",76:"STR",77:"STR_KEY",78:"STR_VALUE",79:"ATTRIBUTE",80:"ATTRIBUTE_EMPTY"},productions_:[0,[3,1],[3,1],[5,1],[5,1],[5,1],[5,1],[4,1],[10,4],[10,4],[10,4],[10,4],[10,4],[13,1],[13,1],[13,2],[19,1],[19,2],[19,3],[21,1],[21,1],[21,2],[21,2],[21,1],[29,3],[30,3],[30,3],[30,4],[32,2],[32,2],[32,2],[32,2],[32,2],[32,2],[32,2],[31,1],[20,1],[20,2],[20,3],[43,2],[43,2],[43,2],[43,2],[43,2],[43,2],[43,2],[43,2],[43,2],[43,2],[43,2],[43,2],[43,2],[43,2],[43,2],[43,2],[43,2],[43,2],[43,2],[43,2],[43,1],[43,2],[43,2],[43,2],[43,2],[43,2],[43,2],[43,2],[43,2],[43,2],[43,2],[43,2],[35,1],[35,2],[75,1],[75,2],[75,1],[75,1]],performAction:u.__name(function(b,v,E,g,R,h,St){var f=h.length-1;switch(R){case 3:g.setDirection("TB");break;case 4:g.setDirection("BT");break;case 5:g.setDirection("RL");break;case 6:g.setDirection("LR");break;case 8:case 9:case 10:case 11:case 12:g.setC4Type(h[f-3]);break;case 19:g.setTitle(h[f].substring(6)),this.$=h[f].substring(6);break;case 20:g.setAccDescription(h[f].substring(15)),this.$=h[f].substring(15);break;case 21:this.$=h[f].trim(),g.setTitle(this.$);break;case 22:case 23:this.$=h[f].trim(),g.setAccDescription(this.$);break;case 28:h[f].splice(2,0,"ENTERPRISE"),g.addPersonOrSystemBoundary(...h[f]),this.$=h[f];break;case 29:h[f].splice(2,0,"SYSTEM"),g.addPersonOrSystemBoundary(...h[f]),this.$=h[f];break;case 30:g.addPersonOrSystemBoundary(...h[f]),this.$=h[f];break;case 31:h[f].splice(2,0,"CONTAINER"),g.addContainerBoundary(...h[f]),this.$=h[f];break;case 32:g.addDeploymentNode("node",...h[f]),this.$=h[f];break;case 33:g.addDeploymentNode("nodeL",...h[f]),this.$=h[f];break;case 34:g.addDeploymentNode("nodeR",...h[f]),this.$=h[f];break;case 35:g.popBoundaryParseStack();break;case 39:g.addPersonOrSystem("person",...h[f]),this.$=h[f];break;case 40:g.addPersonOrSystem("external_person",...h[f]),this.$=h[f];break;case 41:g.addPersonOrSystem("system",...h[f]),this.$=h[f];break;case 42:g.addPersonOrSystem("system_db",...h[f]),this.$=h[f];break;case 43:g.addPersonOrSystem("system_queue",...h[f]),this.$=h[f];break;case 44:g.addPersonOrSystem("external_system",...h[f]),this.$=h[f];break;case 45:g.addPersonOrSystem("external_system_db",...h[f]),this.$=h[f];break;case 46:g.addPersonOrSystem("external_system_queue",...h[f]),this.$=h[f];break;case 47:g.addContainer("container",...h[f]),this.$=h[f];break;case 48:g.addContainer("container_db",...h[f]),this.$=h[f];break;case 49:g.addContainer("container_queue",...h[f]),this.$=h[f];break;case 50:g.addContainer("external_container",...h[f]),this.$=h[f];break;case 51:g.addContainer("external_container_db",...h[f]),this.$=h[f];break;case 52:g.addContainer("external_container_queue",...h[f]),this.$=h[f];break;case 53:g.addComponent("component",...h[f]),this.$=h[f];break;case 54:g.addComponent("component_db",...h[f]),this.$=h[f];break;case 55:g.addComponent("component_queue",...h[f]),this.$=h[f];break;case 56:g.addComponent("external_component",...h[f]),this.$=h[f];break;case 57:g.addComponent("external_component_db",...h[f]),this.$=h[f];break;case 58:g.addComponent("external_component_queue",...h[f]),this.$=h[f];break;case 60:g.addRel("rel",...h[f]),this.$=h[f];break;case 61:g.addRel("birel",...h[f]),this.$=h[f];break;case 62:g.addRel("rel_u",...h[f]),this.$=h[f];break;case 63:g.addRel("rel_d",...h[f]),this.$=h[f];break;case 64:g.addRel("rel_l",...h[f]),this.$=h[f];break;case 65:g.addRel("rel_r",...h[f]),this.$=h[f];break;case 66:g.addRel("rel_b",...h[f]),this.$=h[f];break;case 67:h[f].splice(0,1),g.addRel("rel",...h[f]),this.$=h[f];break;case 68:g.updateElStyle("update_el_style",...h[f]),this.$=h[f];break;case 69:g.updateRelStyle("update_rel_style",...h[f]),this.$=h[f];break;case 70:g.updateLayoutConfig("update_layout_config",...h[f]),this.$=h[f];break;case 71:this.$=[h[f]];break;case 72:h[f].unshift(h[f-1]),this.$=h[f];break;case 73:case 75:this.$=h[f].trim();break;case 74:let Et={};Et[h[f-1].trim()]=h[f].trim(),this.$=Et;break;case 76:this.$="";break}},"anonymous"),table:[{3:1,4:2,5:3,6:[1,5],7:[1,6],8:[1,7],9:[1,8],10:4,11:[1,9],15:[1,10],16:[1,11],17:[1,12],18:[1,13]},{1:[3]},{1:[2,1]},{1:[2,2]},{1:[2,7]},{1:[2,3]},{1:[2,4]},{1:[2,5]},{1:[2,6]},{12:[1,14]},{12:[1,15]},{12:[1,16]},{12:[1,17]},{12:[1,18]},{13:19,19:20,20:21,21:22,22:t,23:s,24:o,26:r,28:l,29:49,30:61,32:62,34:e,36:i,37:n,38:d,39:_,40:p,41:y,43:23,44:x,45:O,46:S,47:P,48:I,49:U,50:H,51:q,52:G,53:K,54:J,55:Z,56:$,57:tt,58:et,59:at,60:nt,61:it,62:st,63:rt,64:lt,65:ot,66:ct,67:ht,68:ut,69:dt,70:_t,71:ft,72:pt,73:yt,74:gt},{13:70,19:20,20:21,21:22,22:t,23:s,24:o,26:r,28:l,29:49,30:61,32:62,34:e,36:i,37:n,38:d,39:_,40:p,41:y,43:23,44:x,45:O,46:S,47:P,48:I,49:U,50:H,51:q,52:G,53:K,54:J,55:Z,56:$,57:tt,58:et,59:at,60:nt,61:it,62:st,63:rt,64:lt,65:ot,66:ct,67:ht,68:ut,69:dt,70:_t,71:ft,72:pt,73:yt,74:gt},{13:71,19:20,20:21,21:22,22:t,23:s,24:o,26:r,28:l,29:49,30:61,32:62,34:e,36:i,37:n,38:d,39:_,40:p,41:y,43:23,44:x,45:O,46:S,47:P,48:I,49:U,50:H,51:q,52:G,53:K,54:J,55:Z,56:$,57:tt,58:et,59:at,60:nt,61:it,62:st,63:rt,64:lt,65:ot,66:ct,67:ht,68:ut,69:dt,70:_t,71:ft,72:pt,73:yt,74:gt},{13:72,19:20,20:21,21:22,22:t,23:s,24:o,26:r,28:l,29:49,30:61,32:62,34:e,36:i,37:n,38:d,39:_,40:p,41:y,43:23,44:x,45:O,46:S,47:P,48:I,49:U,50:H,51:q,52:G,53:K,54:J,55:Z,56:$,57:tt,58:et,59:at,60:nt,61:it,62:st,63:rt,64:lt,65:ot,66:ct,67:ht,68:ut,69:dt,70:_t,71:ft,72:pt,73:yt,74:gt},{13:73,19:20,20:21,21:22,22:t,23:s,24:o,26:r,28:l,29:49,30:61,32:62,34:e,36:i,37:n,38:d,39:_,40:p,41:y,43:23,44:x,45:O,46:S,47:P,48:I,49:U,50:H,51:q,52:G,53:K,54:J,55:Z,56:$,57:tt,58:et,59:at,60:nt,61:it,62:st,63:rt,64:lt,65:ot,66:ct,67:ht,68:ut,69:dt,70:_t,71:ft,72:pt,73:yt,74:gt},{14:[1,74]},a(kt,[2,13],{43:23,29:49,30:61,32:62,20:75,34:e,36:i,37:n,38:d,39:_,40:p,41:y,44:x,45:O,46:S,47:P,48:I,49:U,50:H,51:q,52:G,53:K,54:J,55:Z,56:$,57:tt,58:et,59:at,60:nt,61:it,62:st,63:rt,64:lt,65:ot,66:ct,67:ht,68:ut,69:dt,70:_t,71:ft,72:pt,73:yt,74:gt}),a(kt,[2,14]),a(Wt,[2,16],{12:[1,76]}),a(kt,[2,36],{12:[1,77]}),a(Rt,[2,19]),a(Rt,[2,20]),{25:[1,78]},{27:[1,79]},a(Rt,[2,23]),{35:80,75:81,76:A,77:C,79:k,80:w},{35:86,75:81,76:A,77:C,79:k,80:w},{35:87,75:81,76:A,77:C,79:k,80:w},{35:88,75:81,76:A,77:C,79:k,80:w},{35:89,75:81,76:A,77:C,79:k,80:w},{35:90,75:81,76:A,77:C,79:k,80:w},{35:91,75:81,76:A,77:C,79:k,80:w},{35:92,75:81,76:A,77:C,79:k,80:w},{35:93,75:81,76:A,77:C,79:k,80:w},{35:94,75:81,76:A,77:C,79:k,80:w},{35:95,75:81,76:A,77:C,79:k,80:w},{35:96,75:81,76:A,77:C,79:k,80:w},{35:97,75:81,76:A,77:C,79:k,80:w},{35:98,75:81,76:A,77:C,79:k,80:w},{35:99,75:81,76:A,77:C,79:k,80:w},{35:100,75:81,76:A,77:C,79:k,80:w},{35:101,75:81,76:A,77:C,79:k,80:w},{35:102,75:81,76:A,77:C,79:k,80:w},{35:103,75:81,76:A,77:C,79:k,80:w},{35:104,75:81,76:A,77:C,79:k,80:w},a(T,[2,59]),{35:105,75:81,76:A,77:C,79:k,80:w},{35:106,75:81,76:A,77:C,79:k,80:w},{35:107,75:81,76:A,77:C,79:k,80:w},{35:108,75:81,76:A,77:C,79:k,80:w},{35:109,75:81,76:A,77:C,79:k,80:w},{35:110,75:81,76:A,77:C,79:k,80:w},{35:111,75:81,76:A,77:C,79:k,80:w},{35:112,75:81,76:A,77:C,79:k,80:w},{35:113,75:81,76:A,77:C,79:k,80:w},{35:114,75:81,76:A,77:C,79:k,80:w},{35:115,75:81,76:A,77:C,79:k,80:w},{20:116,29:49,30:61,32:62,34:e,36:i,37:n,38:d,39:_,40:p,41:y,43:23,44:x,45:O,46:S,47:P,48:I,49:U,50:H,51:q,52:G,53:K,54:J,55:Z,56:$,57:tt,58:et,59:at,60:nt,61:it,62:st,63:rt,64:lt,65:ot,66:ct,67:ht,68:ut,69:dt,70:_t,71:ft,72:pt,73:yt,74:gt},{12:[1,118],33:[1,117]},{35:119,75:81,76:A,77:C,79:k,80:w},{35:120,75:81,76:A,77:C,79:k,80:w},{35:121,75:81,76:A,77:C,79:k,80:w},{35:122,75:81,76:A,77:C,79:k,80:w},{35:123,75:81,76:A,77:C,79:k,80:w},{35:124,75:81,76:A,77:C,79:k,80:w},{35:125,75:81,76:A,77:C,79:k,80:w},{14:[1,126]},{14:[1,127]},{14:[1,128]},{14:[1,129]},{1:[2,8]},a(kt,[2,15]),a(Wt,[2,17],{21:22,19:130,22:t,23:s,24:o,26:r,28:l}),a(kt,[2,37],{19:20,20:21,21:22,43:23,29:49,30:61,32:62,13:131,22:t,23:s,24:o,26:r,28:l,34:e,36:i,37:n,38:d,39:_,40:p,41:y,44:x,45:O,46:S,47:P,48:I,49:U,50:H,51:q,52:G,53:K,54:J,55:Z,56:$,57:tt,58:et,59:at,60:nt,61:it,62:st,63:rt,64:lt,65:ot,66:ct,67:ht,68:ut,69:dt,70:_t,71:ft,72:pt,73:yt,74:gt}),a(Rt,[2,21]),a(Rt,[2,22]),a(T,[2,39]),a(ne,[2,71],{75:81,35:132,76:A,77:C,79:k,80:w}),a(Bt,[2,73]),{78:[1,133]},a(Bt,[2,75]),a(Bt,[2,76]),a(T,[2,40]),a(T,[2,41]),a(T,[2,42]),a(T,[2,43]),a(T,[2,44]),a(T,[2,45]),a(T,[2,46]),a(T,[2,47]),a(T,[2,48]),a(T,[2,49]),a(T,[2,50]),a(T,[2,51]),a(T,[2,52]),a(T,[2,53]),a(T,[2,54]),a(T,[2,55]),a(T,[2,56]),a(T,[2,57]),a(T,[2,58]),a(T,[2,60]),a(T,[2,61]),a(T,[2,62]),a(T,[2,63]),a(T,[2,64]),a(T,[2,65]),a(T,[2,66]),a(T,[2,67]),a(T,[2,68]),a(T,[2,69]),a(T,[2,70]),{31:134,42:[1,135]},{12:[1,136]},{33:[1,137]},a(vt,[2,28]),a(vt,[2,29]),a(vt,[2,30]),a(vt,[2,31]),a(vt,[2,32]),a(vt,[2,33]),a(vt,[2,34]),{1:[2,9]},{1:[2,10]},{1:[2,11]},{1:[2,12]},a(Wt,[2,18]),a(kt,[2,38]),a(ne,[2,72]),a(Bt,[2,74]),a(T,[2,24]),a(T,[2,35]),a(zt,[2,25]),a(zt,[2,26],{12:[1,138]}),a(zt,[2,27])],defaultActions:{2:[2,1],3:[2,2],4:[2,7],5:[2,3],6:[2,4],7:[2,5],8:[2,6],74:[2,8],126:[2,9],127:[2,10],128:[2,11],129:[2,12]},parseError:u.__name(function(b,v){if(v.recoverable)this.trace(b);else{var E=new Error(b);throw E.hash=v,E}},"parseError"),parse:u.__name(function(b){var v=this,E=[0],g=[],R=[null],h=[],St=this.table,f="",Et=0,ie=0,xe=2,se=1,ve=h.slice.call(arguments,1),D=Object.create(this.lexer),At={yy:{}};for(var Qt in this.yy)Object.prototype.hasOwnProperty.call(this.yy,Qt)&&(At.yy[Qt]=this.yy[Qt]);D.setInput(b,At.yy),At.yy.lexer=D,At.yy.parser=this,typeof D.yylloc>"u"&&(D.yylloc={});var Ht=D.yylloc;h.push(Ht);var Ee=D.options&&D.options.ranges;typeof At.yy.parseError=="function"?this.parseError=At.yy.parseError:this.parseError=Object.getPrototypeOf(this).parseError;function Ae(L){E.length=E.length-2*L,R.length=R.length-L,h.length=h.length-L}u.__name(Ae,"popStack");function re(){var L;return L=g.pop()||D.lex()||se,typeof L!="number"&&(L instanceof Array&&(g=L,L=g.pop()),L=v.symbols_[L]||L),L}u.__name(re,"lex");for(var M,Ct,N,qt,wt={},It,X,le,Lt;;){if(Ct=E[E.length-1],this.defaultActions[Ct]?N=this.defaultActions[Ct]:((M===null||typeof M>"u")&&(M=re()),N=St[Ct]&&St[Ct][M]),typeof N>"u"||!N.length||!N[0]){var Gt="";Lt=[];for(It in St[Ct])this.terminals_[It]&&It>xe&&Lt.push("'"+this.terminals_[It]+"'");D.showPosition?Gt="Parse error on line "+(Et+1)+`:
|
|
1
|
+
"use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const he=require("./chunk-YZCP3GAM-WiD5REgL.cjs"),u=require("./cowboy-components-DMQv-nwp.cjs");var Yt=(function(){var a=u.__name(function(mt,b,v,E){for(v=v||{},E=mt.length;E--;v[mt[E]]=b);return v},"o"),t=[1,24],s=[1,25],o=[1,26],r=[1,27],l=[1,28],e=[1,63],i=[1,64],n=[1,65],d=[1,66],_=[1,67],p=[1,68],y=[1,69],x=[1,29],O=[1,30],S=[1,31],P=[1,32],I=[1,33],U=[1,34],H=[1,35],q=[1,36],G=[1,37],K=[1,38],J=[1,39],Z=[1,40],$=[1,41],tt=[1,42],et=[1,43],at=[1,44],nt=[1,45],it=[1,46],st=[1,47],rt=[1,48],lt=[1,50],ot=[1,51],ct=[1,52],ht=[1,53],ut=[1,54],dt=[1,55],_t=[1,56],ft=[1,57],pt=[1,58],yt=[1,59],gt=[1,60],kt=[14,42],Wt=[14,34,36,37,38,39,40,41,42,44,45,46,47,48,49,50,51,52,53,54,55,56,57,58,59,60,61,62,63,64,65,66,67,68,69,70,71,72,73,74],Rt=[12,14,34,36,37,38,39,40,41,42,44,45,46,47,48,49,50,51,52,53,54,55,56,57,58,59,60,61,62,63,64,65,66,67,68,69,70,71,72,73,74],A=[1,82],C=[1,83],k=[1,84],w=[1,85],T=[12,14,42],ne=[12,14,33,42],Bt=[12,14,33,42,76,77,79,80],vt=[12,33],zt=[34,36,37,38,39,40,41,44,45,46,47,48,49,50,51,52,53,54,55,56,57,58,59,60,61,62,63,64,65,66,67,68,69,70,71,72,73,74],Xt={trace:u.__name(function(){},"trace"),yy:{},symbols_:{error:2,start:3,mermaidDoc:4,direction:5,direction_tb:6,direction_bt:7,direction_rl:8,direction_lr:9,graphConfig:10,C4_CONTEXT:11,NEWLINE:12,statements:13,EOF:14,C4_CONTAINER:15,C4_COMPONENT:16,C4_DYNAMIC:17,C4_DEPLOYMENT:18,otherStatements:19,diagramStatements:20,otherStatement:21,title:22,accDescription:23,acc_title:24,acc_title_value:25,acc_descr:26,acc_descr_value:27,acc_descr_multiline_value:28,boundaryStatement:29,boundaryStartStatement:30,boundaryStopStatement:31,boundaryStart:32,LBRACE:33,ENTERPRISE_BOUNDARY:34,attributes:35,SYSTEM_BOUNDARY:36,BOUNDARY:37,CONTAINER_BOUNDARY:38,NODE:39,NODE_L:40,NODE_R:41,RBRACE:42,diagramStatement:43,PERSON:44,PERSON_EXT:45,SYSTEM:46,SYSTEM_DB:47,SYSTEM_QUEUE:48,SYSTEM_EXT:49,SYSTEM_EXT_DB:50,SYSTEM_EXT_QUEUE:51,CONTAINER:52,CONTAINER_DB:53,CONTAINER_QUEUE:54,CONTAINER_EXT:55,CONTAINER_EXT_DB:56,CONTAINER_EXT_QUEUE:57,COMPONENT:58,COMPONENT_DB:59,COMPONENT_QUEUE:60,COMPONENT_EXT:61,COMPONENT_EXT_DB:62,COMPONENT_EXT_QUEUE:63,REL:64,BIREL:65,REL_U:66,REL_D:67,REL_L:68,REL_R:69,REL_B:70,REL_INDEX:71,UPDATE_EL_STYLE:72,UPDATE_REL_STYLE:73,UPDATE_LAYOUT_CONFIG:74,attribute:75,STR:76,STR_KEY:77,STR_VALUE:78,ATTRIBUTE:79,ATTRIBUTE_EMPTY:80,$accept:0,$end:1},terminals_:{2:"error",6:"direction_tb",7:"direction_bt",8:"direction_rl",9:"direction_lr",11:"C4_CONTEXT",12:"NEWLINE",14:"EOF",15:"C4_CONTAINER",16:"C4_COMPONENT",17:"C4_DYNAMIC",18:"C4_DEPLOYMENT",22:"title",23:"accDescription",24:"acc_title",25:"acc_title_value",26:"acc_descr",27:"acc_descr_value",28:"acc_descr_multiline_value",33:"LBRACE",34:"ENTERPRISE_BOUNDARY",36:"SYSTEM_BOUNDARY",37:"BOUNDARY",38:"CONTAINER_BOUNDARY",39:"NODE",40:"NODE_L",41:"NODE_R",42:"RBRACE",44:"PERSON",45:"PERSON_EXT",46:"SYSTEM",47:"SYSTEM_DB",48:"SYSTEM_QUEUE",49:"SYSTEM_EXT",50:"SYSTEM_EXT_DB",51:"SYSTEM_EXT_QUEUE",52:"CONTAINER",53:"CONTAINER_DB",54:"CONTAINER_QUEUE",55:"CONTAINER_EXT",56:"CONTAINER_EXT_DB",57:"CONTAINER_EXT_QUEUE",58:"COMPONENT",59:"COMPONENT_DB",60:"COMPONENT_QUEUE",61:"COMPONENT_EXT",62:"COMPONENT_EXT_DB",63:"COMPONENT_EXT_QUEUE",64:"REL",65:"BIREL",66:"REL_U",67:"REL_D",68:"REL_L",69:"REL_R",70:"REL_B",71:"REL_INDEX",72:"UPDATE_EL_STYLE",73:"UPDATE_REL_STYLE",74:"UPDATE_LAYOUT_CONFIG",76:"STR",77:"STR_KEY",78:"STR_VALUE",79:"ATTRIBUTE",80:"ATTRIBUTE_EMPTY"},productions_:[0,[3,1],[3,1],[5,1],[5,1],[5,1],[5,1],[4,1],[10,4],[10,4],[10,4],[10,4],[10,4],[13,1],[13,1],[13,2],[19,1],[19,2],[19,3],[21,1],[21,1],[21,2],[21,2],[21,1],[29,3],[30,3],[30,3],[30,4],[32,2],[32,2],[32,2],[32,2],[32,2],[32,2],[32,2],[31,1],[20,1],[20,2],[20,3],[43,2],[43,2],[43,2],[43,2],[43,2],[43,2],[43,2],[43,2],[43,2],[43,2],[43,2],[43,2],[43,2],[43,2],[43,2],[43,2],[43,2],[43,2],[43,2],[43,2],[43,1],[43,2],[43,2],[43,2],[43,2],[43,2],[43,2],[43,2],[43,2],[43,2],[43,2],[43,2],[35,1],[35,2],[75,1],[75,2],[75,1],[75,1]],performAction:u.__name(function(b,v,E,g,R,h,St){var f=h.length-1;switch(R){case 3:g.setDirection("TB");break;case 4:g.setDirection("BT");break;case 5:g.setDirection("RL");break;case 6:g.setDirection("LR");break;case 8:case 9:case 10:case 11:case 12:g.setC4Type(h[f-3]);break;case 19:g.setTitle(h[f].substring(6)),this.$=h[f].substring(6);break;case 20:g.setAccDescription(h[f].substring(15)),this.$=h[f].substring(15);break;case 21:this.$=h[f].trim(),g.setTitle(this.$);break;case 22:case 23:this.$=h[f].trim(),g.setAccDescription(this.$);break;case 28:h[f].splice(2,0,"ENTERPRISE"),g.addPersonOrSystemBoundary(...h[f]),this.$=h[f];break;case 29:h[f].splice(2,0,"SYSTEM"),g.addPersonOrSystemBoundary(...h[f]),this.$=h[f];break;case 30:g.addPersonOrSystemBoundary(...h[f]),this.$=h[f];break;case 31:h[f].splice(2,0,"CONTAINER"),g.addContainerBoundary(...h[f]),this.$=h[f];break;case 32:g.addDeploymentNode("node",...h[f]),this.$=h[f];break;case 33:g.addDeploymentNode("nodeL",...h[f]),this.$=h[f];break;case 34:g.addDeploymentNode("nodeR",...h[f]),this.$=h[f];break;case 35:g.popBoundaryParseStack();break;case 39:g.addPersonOrSystem("person",...h[f]),this.$=h[f];break;case 40:g.addPersonOrSystem("external_person",...h[f]),this.$=h[f];break;case 41:g.addPersonOrSystem("system",...h[f]),this.$=h[f];break;case 42:g.addPersonOrSystem("system_db",...h[f]),this.$=h[f];break;case 43:g.addPersonOrSystem("system_queue",...h[f]),this.$=h[f];break;case 44:g.addPersonOrSystem("external_system",...h[f]),this.$=h[f];break;case 45:g.addPersonOrSystem("external_system_db",...h[f]),this.$=h[f];break;case 46:g.addPersonOrSystem("external_system_queue",...h[f]),this.$=h[f];break;case 47:g.addContainer("container",...h[f]),this.$=h[f];break;case 48:g.addContainer("container_db",...h[f]),this.$=h[f];break;case 49:g.addContainer("container_queue",...h[f]),this.$=h[f];break;case 50:g.addContainer("external_container",...h[f]),this.$=h[f];break;case 51:g.addContainer("external_container_db",...h[f]),this.$=h[f];break;case 52:g.addContainer("external_container_queue",...h[f]),this.$=h[f];break;case 53:g.addComponent("component",...h[f]),this.$=h[f];break;case 54:g.addComponent("component_db",...h[f]),this.$=h[f];break;case 55:g.addComponent("component_queue",...h[f]),this.$=h[f];break;case 56:g.addComponent("external_component",...h[f]),this.$=h[f];break;case 57:g.addComponent("external_component_db",...h[f]),this.$=h[f];break;case 58:g.addComponent("external_component_queue",...h[f]),this.$=h[f];break;case 60:g.addRel("rel",...h[f]),this.$=h[f];break;case 61:g.addRel("birel",...h[f]),this.$=h[f];break;case 62:g.addRel("rel_u",...h[f]),this.$=h[f];break;case 63:g.addRel("rel_d",...h[f]),this.$=h[f];break;case 64:g.addRel("rel_l",...h[f]),this.$=h[f];break;case 65:g.addRel("rel_r",...h[f]),this.$=h[f];break;case 66:g.addRel("rel_b",...h[f]),this.$=h[f];break;case 67:h[f].splice(0,1),g.addRel("rel",...h[f]),this.$=h[f];break;case 68:g.updateElStyle("update_el_style",...h[f]),this.$=h[f];break;case 69:g.updateRelStyle("update_rel_style",...h[f]),this.$=h[f];break;case 70:g.updateLayoutConfig("update_layout_config",...h[f]),this.$=h[f];break;case 71:this.$=[h[f]];break;case 72:h[f].unshift(h[f-1]),this.$=h[f];break;case 73:case 75:this.$=h[f].trim();break;case 74:let Et={};Et[h[f-1].trim()]=h[f].trim(),this.$=Et;break;case 76:this.$="";break}},"anonymous"),table:[{3:1,4:2,5:3,6:[1,5],7:[1,6],8:[1,7],9:[1,8],10:4,11:[1,9],15:[1,10],16:[1,11],17:[1,12],18:[1,13]},{1:[3]},{1:[2,1]},{1:[2,2]},{1:[2,7]},{1:[2,3]},{1:[2,4]},{1:[2,5]},{1:[2,6]},{12:[1,14]},{12:[1,15]},{12:[1,16]},{12:[1,17]},{12:[1,18]},{13:19,19:20,20:21,21:22,22:t,23:s,24:o,26:r,28:l,29:49,30:61,32:62,34:e,36:i,37:n,38:d,39:_,40:p,41:y,43:23,44:x,45:O,46:S,47:P,48:I,49:U,50:H,51:q,52:G,53:K,54:J,55:Z,56:$,57:tt,58:et,59:at,60:nt,61:it,62:st,63:rt,64:lt,65:ot,66:ct,67:ht,68:ut,69:dt,70:_t,71:ft,72:pt,73:yt,74:gt},{13:70,19:20,20:21,21:22,22:t,23:s,24:o,26:r,28:l,29:49,30:61,32:62,34:e,36:i,37:n,38:d,39:_,40:p,41:y,43:23,44:x,45:O,46:S,47:P,48:I,49:U,50:H,51:q,52:G,53:K,54:J,55:Z,56:$,57:tt,58:et,59:at,60:nt,61:it,62:st,63:rt,64:lt,65:ot,66:ct,67:ht,68:ut,69:dt,70:_t,71:ft,72:pt,73:yt,74:gt},{13:71,19:20,20:21,21:22,22:t,23:s,24:o,26:r,28:l,29:49,30:61,32:62,34:e,36:i,37:n,38:d,39:_,40:p,41:y,43:23,44:x,45:O,46:S,47:P,48:I,49:U,50:H,51:q,52:G,53:K,54:J,55:Z,56:$,57:tt,58:et,59:at,60:nt,61:it,62:st,63:rt,64:lt,65:ot,66:ct,67:ht,68:ut,69:dt,70:_t,71:ft,72:pt,73:yt,74:gt},{13:72,19:20,20:21,21:22,22:t,23:s,24:o,26:r,28:l,29:49,30:61,32:62,34:e,36:i,37:n,38:d,39:_,40:p,41:y,43:23,44:x,45:O,46:S,47:P,48:I,49:U,50:H,51:q,52:G,53:K,54:J,55:Z,56:$,57:tt,58:et,59:at,60:nt,61:it,62:st,63:rt,64:lt,65:ot,66:ct,67:ht,68:ut,69:dt,70:_t,71:ft,72:pt,73:yt,74:gt},{13:73,19:20,20:21,21:22,22:t,23:s,24:o,26:r,28:l,29:49,30:61,32:62,34:e,36:i,37:n,38:d,39:_,40:p,41:y,43:23,44:x,45:O,46:S,47:P,48:I,49:U,50:H,51:q,52:G,53:K,54:J,55:Z,56:$,57:tt,58:et,59:at,60:nt,61:it,62:st,63:rt,64:lt,65:ot,66:ct,67:ht,68:ut,69:dt,70:_t,71:ft,72:pt,73:yt,74:gt},{14:[1,74]},a(kt,[2,13],{43:23,29:49,30:61,32:62,20:75,34:e,36:i,37:n,38:d,39:_,40:p,41:y,44:x,45:O,46:S,47:P,48:I,49:U,50:H,51:q,52:G,53:K,54:J,55:Z,56:$,57:tt,58:et,59:at,60:nt,61:it,62:st,63:rt,64:lt,65:ot,66:ct,67:ht,68:ut,69:dt,70:_t,71:ft,72:pt,73:yt,74:gt}),a(kt,[2,14]),a(Wt,[2,16],{12:[1,76]}),a(kt,[2,36],{12:[1,77]}),a(Rt,[2,19]),a(Rt,[2,20]),{25:[1,78]},{27:[1,79]},a(Rt,[2,23]),{35:80,75:81,76:A,77:C,79:k,80:w},{35:86,75:81,76:A,77:C,79:k,80:w},{35:87,75:81,76:A,77:C,79:k,80:w},{35:88,75:81,76:A,77:C,79:k,80:w},{35:89,75:81,76:A,77:C,79:k,80:w},{35:90,75:81,76:A,77:C,79:k,80:w},{35:91,75:81,76:A,77:C,79:k,80:w},{35:92,75:81,76:A,77:C,79:k,80:w},{35:93,75:81,76:A,77:C,79:k,80:w},{35:94,75:81,76:A,77:C,79:k,80:w},{35:95,75:81,76:A,77:C,79:k,80:w},{35:96,75:81,76:A,77:C,79:k,80:w},{35:97,75:81,76:A,77:C,79:k,80:w},{35:98,75:81,76:A,77:C,79:k,80:w},{35:99,75:81,76:A,77:C,79:k,80:w},{35:100,75:81,76:A,77:C,79:k,80:w},{35:101,75:81,76:A,77:C,79:k,80:w},{35:102,75:81,76:A,77:C,79:k,80:w},{35:103,75:81,76:A,77:C,79:k,80:w},{35:104,75:81,76:A,77:C,79:k,80:w},a(T,[2,59]),{35:105,75:81,76:A,77:C,79:k,80:w},{35:106,75:81,76:A,77:C,79:k,80:w},{35:107,75:81,76:A,77:C,79:k,80:w},{35:108,75:81,76:A,77:C,79:k,80:w},{35:109,75:81,76:A,77:C,79:k,80:w},{35:110,75:81,76:A,77:C,79:k,80:w},{35:111,75:81,76:A,77:C,79:k,80:w},{35:112,75:81,76:A,77:C,79:k,80:w},{35:113,75:81,76:A,77:C,79:k,80:w},{35:114,75:81,76:A,77:C,79:k,80:w},{35:115,75:81,76:A,77:C,79:k,80:w},{20:116,29:49,30:61,32:62,34:e,36:i,37:n,38:d,39:_,40:p,41:y,43:23,44:x,45:O,46:S,47:P,48:I,49:U,50:H,51:q,52:G,53:K,54:J,55:Z,56:$,57:tt,58:et,59:at,60:nt,61:it,62:st,63:rt,64:lt,65:ot,66:ct,67:ht,68:ut,69:dt,70:_t,71:ft,72:pt,73:yt,74:gt},{12:[1,118],33:[1,117]},{35:119,75:81,76:A,77:C,79:k,80:w},{35:120,75:81,76:A,77:C,79:k,80:w},{35:121,75:81,76:A,77:C,79:k,80:w},{35:122,75:81,76:A,77:C,79:k,80:w},{35:123,75:81,76:A,77:C,79:k,80:w},{35:124,75:81,76:A,77:C,79:k,80:w},{35:125,75:81,76:A,77:C,79:k,80:w},{14:[1,126]},{14:[1,127]},{14:[1,128]},{14:[1,129]},{1:[2,8]},a(kt,[2,15]),a(Wt,[2,17],{21:22,19:130,22:t,23:s,24:o,26:r,28:l}),a(kt,[2,37],{19:20,20:21,21:22,43:23,29:49,30:61,32:62,13:131,22:t,23:s,24:o,26:r,28:l,34:e,36:i,37:n,38:d,39:_,40:p,41:y,44:x,45:O,46:S,47:P,48:I,49:U,50:H,51:q,52:G,53:K,54:J,55:Z,56:$,57:tt,58:et,59:at,60:nt,61:it,62:st,63:rt,64:lt,65:ot,66:ct,67:ht,68:ut,69:dt,70:_t,71:ft,72:pt,73:yt,74:gt}),a(Rt,[2,21]),a(Rt,[2,22]),a(T,[2,39]),a(ne,[2,71],{75:81,35:132,76:A,77:C,79:k,80:w}),a(Bt,[2,73]),{78:[1,133]},a(Bt,[2,75]),a(Bt,[2,76]),a(T,[2,40]),a(T,[2,41]),a(T,[2,42]),a(T,[2,43]),a(T,[2,44]),a(T,[2,45]),a(T,[2,46]),a(T,[2,47]),a(T,[2,48]),a(T,[2,49]),a(T,[2,50]),a(T,[2,51]),a(T,[2,52]),a(T,[2,53]),a(T,[2,54]),a(T,[2,55]),a(T,[2,56]),a(T,[2,57]),a(T,[2,58]),a(T,[2,60]),a(T,[2,61]),a(T,[2,62]),a(T,[2,63]),a(T,[2,64]),a(T,[2,65]),a(T,[2,66]),a(T,[2,67]),a(T,[2,68]),a(T,[2,69]),a(T,[2,70]),{31:134,42:[1,135]},{12:[1,136]},{33:[1,137]},a(vt,[2,28]),a(vt,[2,29]),a(vt,[2,30]),a(vt,[2,31]),a(vt,[2,32]),a(vt,[2,33]),a(vt,[2,34]),{1:[2,9]},{1:[2,10]},{1:[2,11]},{1:[2,12]},a(Wt,[2,18]),a(kt,[2,38]),a(ne,[2,72]),a(Bt,[2,74]),a(T,[2,24]),a(T,[2,35]),a(zt,[2,25]),a(zt,[2,26],{12:[1,138]}),a(zt,[2,27])],defaultActions:{2:[2,1],3:[2,2],4:[2,7],5:[2,3],6:[2,4],7:[2,5],8:[2,6],74:[2,8],126:[2,9],127:[2,10],128:[2,11],129:[2,12]},parseError:u.__name(function(b,v){if(v.recoverable)this.trace(b);else{var E=new Error(b);throw E.hash=v,E}},"parseError"),parse:u.__name(function(b){var v=this,E=[0],g=[],R=[null],h=[],St=this.table,f="",Et=0,ie=0,xe=2,se=1,ve=h.slice.call(arguments,1),D=Object.create(this.lexer),At={yy:{}};for(var Qt in this.yy)Object.prototype.hasOwnProperty.call(this.yy,Qt)&&(At.yy[Qt]=this.yy[Qt]);D.setInput(b,At.yy),At.yy.lexer=D,At.yy.parser=this,typeof D.yylloc>"u"&&(D.yylloc={});var Ht=D.yylloc;h.push(Ht);var Ee=D.options&&D.options.ranges;typeof At.yy.parseError=="function"?this.parseError=At.yy.parseError:this.parseError=Object.getPrototypeOf(this).parseError;function Ae(L){E.length=E.length-2*L,R.length=R.length-L,h.length=h.length-L}u.__name(Ae,"popStack");function re(){var L;return L=g.pop()||D.lex()||se,typeof L!="number"&&(L instanceof Array&&(g=L,L=g.pop()),L=v.symbols_[L]||L),L}u.__name(re,"lex");for(var M,Ct,N,qt,wt={},It,X,le,Lt;;){if(Ct=E[E.length-1],this.defaultActions[Ct]?N=this.defaultActions[Ct]:((M===null||typeof M>"u")&&(M=re()),N=St[Ct]&&St[Ct][M]),typeof N>"u"||!N.length||!N[0]){var Gt="";Lt=[];for(It in St[Ct])this.terminals_[It]&&It>xe&&Lt.push("'"+this.terminals_[It]+"'");D.showPosition?Gt="Parse error on line "+(Et+1)+`:
|
|
2
2
|
`+D.showPosition()+`
|
|
3
3
|
Expecting `+Lt.join(", ")+", got '"+(this.terminals_[M]||M)+"'":Gt="Parse error on line "+(Et+1)+": Unexpected "+(M==se?"end of input":"'"+(this.terminals_[M]||M)+"'"),this.parseError(Gt,{text:D.match,token:this.terminals_[M]||M,line:D.yylineno,loc:Ht,expected:Lt})}if(N[0]instanceof Array&&N.length>1)throw new Error("Parse Error: multiple actions possible at state: "+Ct+", token: "+M);switch(N[0]){case 1:E.push(M),R.push(D.yytext),h.push(D.yylloc),E.push(N[1]),M=null,ie=D.yyleng,f=D.yytext,Et=D.yylineno,Ht=D.yylloc;break;case 2:if(X=this.productions_[N[1]][1],wt.$=R[R.length-X],wt._$={first_line:h[h.length-(X||1)].first_line,last_line:h[h.length-1].last_line,first_column:h[h.length-(X||1)].first_column,last_column:h[h.length-1].last_column},Ee&&(wt._$.range=[h[h.length-(X||1)].range[0],h[h.length-1].range[1]]),qt=this.performAction.apply(wt,[f,ie,Et,At.yy,N[1],R,h].concat(ve)),typeof qt<"u")return qt;X&&(E=E.slice(0,-1*X*2),R=R.slice(0,-1*X),h=h.slice(0,-1*X)),E.push(this.productions_[N[1]][0]),R.push(wt.$),h.push(wt._$),le=St[E[E.length-2]][E[E.length-1]],E.push(le);break;case 3:return!0}}return!0},"parse")},be=(function(){var mt={EOF:1,parseError:u.__name(function(v,E){if(this.yy.parser)this.yy.parser.parseError(v,E);else throw new Error(v)},"parseError"),setInput:u.__name(function(b,v){return this.yy=v||this.yy||{},this._input=b,this._more=this._backtrack=this.done=!1,this.yylineno=this.yyleng=0,this.yytext=this.matched=this.match="",this.conditionStack=["INITIAL"],this.yylloc={first_line:1,first_column:0,last_line:1,last_column:0},this.options.ranges&&(this.yylloc.range=[0,0]),this.offset=0,this},"setInput"),input:u.__name(function(){var b=this._input[0];this.yytext+=b,this.yyleng++,this.offset++,this.match+=b,this.matched+=b;var v=b.match(/(?:\r\n?|\n).*/g);return v?(this.yylineno++,this.yylloc.last_line++):this.yylloc.last_column++,this.options.ranges&&this.yylloc.range[1]++,this._input=this._input.slice(1),b},"input"),unput:u.__name(function(b){var v=b.length,E=b.split(/(?:\r\n?|\n)/g);this._input=b+this._input,this.yytext=this.yytext.substr(0,this.yytext.length-v),this.offset-=v;var g=this.match.split(/(?:\r\n?|\n)/g);this.match=this.match.substr(0,this.match.length-1),this.matched=this.matched.substr(0,this.matched.length-1),E.length-1&&(this.yylineno-=E.length-1);var R=this.yylloc.range;return this.yylloc={first_line:this.yylloc.first_line,last_line:this.yylineno+1,first_column:this.yylloc.first_column,last_column:E?(E.length===g.length?this.yylloc.first_column:0)+g[g.length-E.length].length-E[0].length:this.yylloc.first_column-v},this.options.ranges&&(this.yylloc.range=[R[0],R[0]+this.yyleng-v]),this.yyleng=this.yytext.length,this},"unput"),more:u.__name(function(){return this._more=!0,this},"more"),reject:u.__name(function(){if(this.options.backtrack_lexer)this._backtrack=!0;else return this.parseError("Lexical error on line "+(this.yylineno+1)+`. You can only invoke reject() in the lexer when the lexer is of the backtracking persuasion (options.backtrack_lexer = true).
|
|
4
4
|
`+this.showPosition(),{text:"",token:null,line:this.yylineno});return this},"reject"),less:u.__name(function(b){this.unput(this.match.slice(b))},"less"),pastInput:u.__name(function(){var b=this.matched.substr(0,this.matched.length-this.match.length);return(b.length>20?"...":"")+b.substr(-20).replace(/\n/g,"")},"pastInput"),upcomingInput:u.__name(function(){var b=this.match;return b.length<20&&(b+=this._input.substr(0,20-b.length)),(b.substr(0,20)+(b.length>20?"...":"")).replace(/\n/g,"")},"upcomingInput"),showPosition:u.__name(function(){var b=this.pastInput(),v=new Array(b.length+1).join("-");return b+this.upcomingInput()+`
|