ranui 0.2.1-alpha.1 → 0.2.1-alpha.3
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/abnfDiagram-VRR7QNED-CH_pIv_l.cjs +1 -0
- package/dist/abnfDiagram-VRR7QNED-CTsqwzwi.js +95 -0
- package/dist/arc-D25LhgTs.cjs +1 -0
- package/dist/arc-DRPGof21.js +82 -0
- package/dist/architecture-TIHT7OUA-BbBd15_y.cjs +1 -0
- package/dist/architecture-TIHT7OUA-pbFO1xSx.js +5 -0
- package/dist/architectureDiagram-ZJ3FMSHR-8mjyXr-w.js +4279 -0
- package/dist/architectureDiagram-ZJ3FMSHR-D_jWFFZx.cjs +36 -0
- package/dist/array-By5736M5.js +7 -0
- package/dist/array-C3cbN3GY.cjs +1 -0
- package/dist/blockDiagram-677ZJIJ3-3F79MOSt.js +3321 -0
- package/dist/blockDiagram-677ZJIJ3-Cx35khWe.cjs +132 -0
- package/dist/builder.d.ts +2 -2
- package/dist/builder.js +39 -34
- package/dist/{builtin-D9djWkCE.js → builtin-BkM0LLof.js} +83 -76
- package/dist/button-D0zcnKnG.js +117 -0
- package/dist/button.js +1 -1
- package/dist/c4Diagram-LMCZKHZV-Cxn_gqu_.js +3064 -0
- package/dist/c4Diagram-LMCZKHZV-TRNb3Gvl.cjs +10 -0
- package/dist/{card-CqJa4Q_v.js → card-CygMndQS.js} +2 -2
- package/dist/card.js +1 -1
- package/dist/channel-C9WSNwcS.cjs +1 -0
- package/dist/channel-k5-UxdcV.js +5 -0
- package/dist/{checkbox-CThC9-vy.js → checkbox-D5om9aJO.js} +10 -10
- package/dist/checkbox.js +1 -1
- package/dist/chunk-2Q5K7J3B-CTMy5FII.cjs +1 -0
- package/dist/chunk-2Q5K7J3B-DlFVJRAn.js +15 -0
- package/dist/chunk-32BRIVSS-BXVdG_nV.cjs +1 -0
- package/dist/chunk-32BRIVSS-jAuAwMVV.js +68 -0
- package/dist/chunk-52WLFC77-BChUrU24.cjs +10 -0
- package/dist/chunk-52WLFC77-wpL7en7e.js +630 -0
- package/dist/chunk-5VM5RSS4-Cni2Ogq2.js +19 -0
- package/dist/chunk-5VM5RSS4-DudUFQ_Z.cjs +15 -0
- package/dist/chunk-7BUUIJ7U-9hiBbc7O.js +87 -0
- package/dist/chunk-7BUUIJ7U-DMv_UkjI.cjs +1 -0
- package/dist/chunk-C7G6YPKG-CA-DNpvI.js +71 -0
- package/dist/chunk-C7G6YPKG-CKEeW9TM.cjs +1 -0
- package/dist/chunk-EX3LRPZG-BCmf0iDq.js +2137 -0
- package/dist/chunk-EX3LRPZG-DbfbNdXo.cjs +231 -0
- package/dist/chunk-FWX5IMBZ-D11-gbhc.cjs +1 -0
- package/dist/chunk-FWX5IMBZ-DZ5VYvm5.js +60 -0
- package/dist/chunk-HOUHSVGY-BGB3dOvI.cjs +1 -0
- package/dist/chunk-HOUHSVGY-DRQcQeMT.js +268 -0
- package/dist/chunk-ICXQ74PX-BbT9JaEW.cjs +2 -0
- package/dist/chunk-ICXQ74PX-DR8rL-xF.js +1377 -0
- package/dist/chunk-JWPE2WC7-CGEmUMMZ.js +8 -0
- package/dist/chunk-JWPE2WC7-D8EnWK1B.cjs +1 -0
- package/dist/chunk-KEIR6QF5-B2Op7cFH.js +22155 -0
- package/dist/chunk-KEIR6QF5-C4fcHpY0.cjs +161 -0
- package/dist/chunk-MOJQB5TN-BC46HDyu.js +516 -0
- package/dist/chunk-MOJQB5TN-oOeq982_.cjs +88 -0
- package/dist/chunk-OGEWGWER-BV51ll2w.js +33 -0
- package/dist/chunk-OGEWGWER-DX8sW1dT.cjs +1 -0
- package/dist/chunk-PUDLZKDR-48YaqVoF.cjs +156 -0
- package/dist/chunk-PUDLZKDR-NdMR0Ft5.js +4282 -0
- package/dist/chunk-Q4XR5HBZ-3BHjjc9u.js +1709 -0
- package/dist/chunk-Q4XR5HBZ-aBnPq509.cjs +70 -0
- package/dist/chunk-RYQCIY6F-BER2T9t0.js +246 -0
- package/dist/chunk-RYQCIY6F-DVRzSnsI.cjs +1 -0
- package/dist/chunk-V7JOEXUC-Cr_hr02u.js +3467 -0
- package/dist/chunk-V7JOEXUC-DHizzTla.cjs +206 -0
- package/dist/chunk-VAUOI2AC-DfQf5L2_.cjs +1 -0
- package/dist/chunk-VAUOI2AC-izt0o4id.js +11 -0
- package/dist/chunk-VR4S4FIN-CJi5okl4.js +26 -0
- package/dist/chunk-VR4S4FIN-KiwnPF31.cjs +1 -0
- package/dist/chunk-WYO6CB5R-DDHkKowO.js +4535 -0
- package/dist/chunk-WYO6CB5R-u4mJNOcO.cjs +127 -0
- package/dist/chunk-XXDRQBXY-BB1i_53q.js +9 -0
- package/dist/chunk-XXDRQBXY-C8VGLZmt.cjs +1 -0
- package/dist/chunk-Y2CYZVJY-0JxdZxki.js +13 -0
- package/dist/chunk-Y2CYZVJY-DPaYLFFP.cjs +1 -0
- package/dist/chunk-ZGVPDNZ5-6uMbTJXy.js +3841 -0
- package/dist/chunk-ZGVPDNZ5-Cw5_HJba.cjs +62 -0
- package/dist/chunk-ZIRB5QZD-C7OH2FI2.js +1280 -0
- package/dist/chunk-ZIRB5QZD-aLu-4ITN.cjs +32 -0
- package/dist/classDiagram-OUVF2IWQ-D6rqYIh0.cjs +1 -0
- package/dist/classDiagram-OUVF2IWQ-Df0ghim9.js +30 -0
- package/dist/classDiagram-v2-EOCWNBFH-D6rqYIh0.cjs +1 -0
- package/dist/classDiagram-v2-EOCWNBFH-Df0ghim9.js +30 -0
- package/dist/{colorpicker-XNxDRcQ-.js → colorpicker-qWnaTlYX.js} +8 -8
- package/dist/colorpicker.js +1 -1
- package/dist/components/glass/index.d.ts +52 -0
- package/dist/components/icon/core-icons.d.ts +13 -0
- package/dist/components/icon/index.d.ts +1 -1
- package/dist/components/mermaid/index.d.ts +52 -0
- package/dist/components/modal/index.d.ts +9 -0
- package/dist/content-Rry-U6ir.js +39 -0
- package/dist/content.js +5 -0
- package/dist/cose-bilkent-JH36ORCC-BUxFTdey.cjs +1 -0
- package/dist/cose-bilkent-JH36ORCC-DTwvJlGw.js +2353 -0
- package/dist/cynefin-VYW2F7L2-6c1GOGXW.cjs +1 -0
- package/dist/cynefin-VYW2F7L2-ALQKF7N6.js +5 -0
- package/dist/cynefinDiagram-TSTJHNR4-Bjt4QTVh.js +355 -0
- package/dist/cynefinDiagram-TSTJHNR4-ISDORSxO.cjs +62 -0
- package/dist/cytoscape.esm-CFq1_DTa.js +18906 -0
- package/dist/cytoscape.esm-pygMw4dR.cjs +321 -0
- package/dist/dagre-D1-W1tt6.cjs +1 -0
- package/dist/dagre-D8GLTwuf.js +1578 -0
- package/dist/dagre-VKFMJZFB-DXI69qAN.cjs +4 -0
- package/dist/dagre-VKFMJZFB-Dfku86Az.js +341 -0
- package/dist/defaultLocale-0M_kMcEH.js +184 -0
- package/dist/defaultLocale-DSqtvhxg.cjs +1 -0
- package/dist/diagram-FQU43EPY-BAiRt5eL.cjs +3 -0
- package/dist/diagram-FQU43EPY-BvQ5jmVn.js +452 -0
- package/dist/diagram-G47NLZAW-DGnmEa8u.cjs +24 -0
- package/dist/diagram-G47NLZAW-DT2BBA0T.js +498 -0
- package/dist/diagram-NH7WQ7WH-DxgkStA3.cjs +24 -0
- package/dist/diagram-NH7WQ7WH-W7jg4Vh8.js +135 -0
- package/dist/diagram-OA4YK3LP-DkvFII73.cjs +30 -0
- package/dist/diagram-OA4YK3LP-jU--aqQl.js +317 -0
- package/dist/diagram-WEI45ONY-C_Qhf4ny.js +215 -0
- package/dist/diagram-WEI45ONY-XvzRFmmY.cjs +41 -0
- package/dist/dist-C0Fwsvsq.js +70 -0
- package/dist/dist-C20XxSsP.cjs +1 -0
- package/dist/{dropdown-CCvsambb.js → dropdown-DzdAR1nI.js} +4 -4
- package/dist/dropdown.js +1 -1
- package/dist/ebnfDiagram-CCIWWBDH-Cu8bAlhC.cjs +1 -0
- package/dist/ebnfDiagram-CCIWWBDH-Gnr20Oc1.js +112 -0
- package/dist/erDiagram-Q63AITRT-CxLSa9Yv.cjs +85 -0
- package/dist/erDiagram-Q63AITRT-D0Hh9b-W.js +1822 -0
- package/dist/eventmodeling-45OFAUF4-C6VXxUn1.cjs +1 -0
- package/dist/eventmodeling-45OFAUF4-DMpGs2yI.js +5 -0
- package/dist/factory-BkvRcCOx.js +482 -0
- package/dist/flowDiagram-23GEKE2U-B6gASEYG.cjs +1 -0
- package/dist/flowDiagram-23GEKE2U-BY4wE2vw.js +19 -0
- package/dist/{form-Ceq3uJzz.js → form-CUJpeQ7Q.js} +5 -5
- package/dist/form.js +1 -1
- package/dist/ganttDiagram-NO4QXBWP-B40Eabk0.js +3125 -0
- package/dist/ganttDiagram-NO4QXBWP-DZT79qJr.cjs +292 -0
- package/dist/gitGraph-TEB2WS4Q-BbtF3MDr.cjs +1 -0
- package/dist/gitGraph-TEB2WS4Q-D6Ru11Cs.js +5 -0
- package/dist/gitGraphDiagram-IHSO6WYX-BUJNSssA.js +754 -0
- package/dist/gitGraphDiagram-IHSO6WYX-DW06165m.cjs +106 -0
- package/dist/glass-Bj1Zf8Hy.js +115 -0
- package/dist/glass.js +5 -0
- package/dist/graphlib-CCKThIKP.js +1104 -0
- package/dist/graphlib-Du-578Js.cjs +1 -0
- package/dist/{icon-C_ENrJ3F.js → icon-CtlZJISZ.js} +77 -25
- package/dist/icon.js +1 -1
- package/dist/icons.js +1 -1
- package/dist/iife/button.iife.js +1 -1
- package/dist/iife/card.iife.js +1 -1
- package/dist/iife/checkbox.iife.js +1 -1
- package/dist/iife/colorpicker.iife.js +2 -2
- package/dist/iife/content.iife.js +1 -0
- package/dist/iife/dropdown.iife.js +1 -1
- package/dist/iife/form.iife.js +1 -1
- package/dist/iife/glass.iife.js +1 -0
- package/dist/iife/icon.iife.js +1 -1
- package/dist/iife/image.iife.js +1 -1
- package/dist/iife/input.iife.js +1 -1
- package/dist/iife/loading.iife.js +1 -1
- package/dist/iife/math.iife.js +14 -14
- package/dist/iife/mermaid.iife.js +3535 -0
- package/dist/iife/message.iife.js +1 -1
- package/dist/iife/modal.iife.js +1 -1
- package/dist/iife/player.iife.js +8 -8
- package/dist/iife/popover.iife.js +1 -1
- package/dist/iife/progress.iife.js +1 -1
- package/dist/iife/radar.iife.js +1 -1
- package/dist/iife/route.iife.js +1 -1
- package/dist/iife/router.iife.js +1 -1
- package/dist/iife/scratch.iife.js +1 -1
- package/dist/iife/section.iife.js +1 -1
- package/dist/iife/select.iife.js +1 -1
- package/dist/iife/skeleton.iife.js +1 -1
- package/dist/iife/tab.iife.js +1 -1
- package/dist/iife/tabpane.iife.js +1 -1
- package/dist/{image-B7MBI5n_.js → image-ILZNlaGc.js} +4 -4
- package/dist/image.js +1 -1
- package/dist/index.cjs +38 -37
- package/dist/index.d.ts +8 -0
- package/dist/index.iife.js +3623 -88
- package/dist/index.js +88 -84
- package/dist/info-DKCQHKI2-DNOtUIin.cjs +1 -0
- package/dist/info-DKCQHKI2-Df7h9MSE.js +5 -0
- package/dist/infoDiagram-FWYZ7A6U-C8dZc-Ki.cjs +2 -0
- package/dist/infoDiagram-FWYZ7A6U-Dc0m9qAx.js +21 -0
- package/dist/init-1VpIn1S3.js +16 -0
- package/dist/init-CbDwVtpO.cjs +1 -0
- package/dist/{input-RNqdEHPf.js → input-CDH6zY9I.js} +6 -6
- package/dist/input.js +1 -1
- package/dist/ishikawaDiagram-FXEZZL3T-BugNyysB.cjs +70 -0
- package/dist/ishikawaDiagram-FXEZZL3T-DuFtHOmf.js +742 -0
- package/dist/journeyDiagram-5HDEW3XC-Bshelnhq.js +928 -0
- package/dist/journeyDiagram-5HDEW3XC-ItmURvA2.cjs +139 -0
- package/dist/kanban-definition-HUTT4EX6-BL512R2A.cjs +89 -0
- package/dist/kanban-definition-HUTT4EX6-Dogv2paU.js +1050 -0
- package/dist/katex-Cq3Y8cmK.cjs +257 -0
- package/dist/katex-Pg2EqTH0.js +23485 -0
- package/dist/line-BIPmUVxO.js +33 -0
- package/dist/line-CAB5QHC6.cjs +1 -0
- package/dist/linear-B2AM4ZBe.js +259 -0
- package/dist/linear-CSAfNEpl.cjs +1 -0
- package/dist/{link-DURZzd7u.js → link-BCrmHvXP.js} +3 -3
- package/dist/link.js +1 -1
- package/dist/{loading-B9MFI03l.js → loading-DJWGih1g.js} +4 -4
- package/dist/loading.js +1 -1
- package/dist/map-BC2bk_rV.cjs +1 -0
- package/dist/map-DMSWkcq6.js +208 -0
- package/dist/{math-CudIwEXZ.js → math-DRmkEDSQ.js} +4 -4
- package/dist/math.js +1 -1
- package/dist/mermaid-CMhm7npE.js +261 -0
- package/dist/mermaid-parser.core-DYumW1vq.cjs +6 -0
- package/dist/mermaid-parser.core-uIDZYuBu.js +654 -0
- package/dist/mermaid.core-B2d5lQW2.js +1085 -0
- package/dist/mermaid.core-a1hgpWfs.cjs +10 -0
- package/dist/mermaid.js +5 -0
- package/dist/{message-DW7qWpEm.js → message-BpYJBvYn.js} +6 -6
- package/dist/message.js +1 -1
- package/dist/mindmap-definition-LN4V7U3C-DYZgIZym.cjs +96 -0
- package/dist/mindmap-definition-LN4V7U3C-f7s5ZePP.js +1070 -0
- package/dist/{modal-CrvGKL2B.js → modal-BeQlDYDP.js} +40 -24
- package/dist/modal.js +1 -1
- package/dist/ordinal-BMN81JG2.js +64 -0
- package/dist/ordinal-BplLHIij.cjs +1 -0
- package/dist/packet-7NZHBO7P-4PLslLZJ.js +5 -0
- package/dist/packet-7NZHBO7P-DeyLCrSn.cjs +1 -0
- package/dist/path-Bja5PoYn.js +82 -0
- package/dist/path-DmfWsuKi.cjs +1 -0
- package/dist/pegDiagram-2B236MQR-B-Xeh55J.js +107 -0
- package/dist/pegDiagram-2B236MQR-Bo5Nj40u.cjs +1 -0
- package/dist/pie-RZYD4A2V-DBE9a8Kz.js +5 -0
- package/dist/pie-RZYD4A2V-pDNZ2ZyB.cjs +1 -0
- package/dist/pieDiagram-ENE6RG2P-BkSiP4iu.cjs +39 -0
- package/dist/pieDiagram-ENE6RG2P-CVSE95zc.js +207 -0
- package/dist/{player-BKQaaT7o.js → player-CQ4e3Yeo.js} +196 -195
- package/dist/player.js +1 -1
- package/dist/{popover-CvYIVgUS.js → popover-eZMnL1F3.js} +22 -54
- package/dist/popover.js +1 -1
- package/dist/{progress-C6jctsFH.js → progress-DyHgW4Ep.js} +5 -5
- package/dist/progress.js +1 -1
- package/dist/quadrantDiagram-ABIIQ3AL-BDmdDGsh.cjs +7 -0
- package/dist/quadrantDiagram-ABIIQ3AL-TJ8FmqES.js +2058 -0
- package/dist/{radar-BUb4EzmG.js → radar-D21Rccap.js} +5 -5
- package/dist/radar-I7S5WNFK-CY5ycn2a.cjs +1 -0
- package/dist/radar-I7S5WNFK-DFTxtd_t.js +5 -0
- package/dist/radar.js +1 -1
- package/dist/railroad-3IZDKUUU-DALJwv16.js +5 -0
- package/dist/railroad-3IZDKUUU-DGzXHqt7.cjs +1 -0
- package/dist/railroad-abnf-AHOZXSZD-BCIHdSw6.cjs +1 -0
- package/dist/railroad-abnf-AHOZXSZD-CntW2udQ.js +5 -0
- package/dist/railroad-ebnf-EBAXGLYW-4vFZrfHF.cjs +1 -0
- package/dist/railroad-ebnf-EBAXGLYW-s_1ZOb_9.js +5 -0
- package/dist/railroad-peg-LSFZ7HO6-CaM5A0Ml.js +5 -0
- package/dist/railroad-peg-LSFZ7HO6-D_oFW1Bo.cjs +1 -0
- package/dist/railroadDiagram-RFXS5EU6-0lS5wYI7.js +83 -0
- package/dist/railroadDiagram-RFXS5EU6-DJKAtnQk.cjs +1 -0
- package/dist/ranui.css +1 -1
- package/dist/requirementDiagram-TGXJPOKE-Bg701bNl.cjs +84 -0
- package/dist/requirementDiagram-TGXJPOKE-viCQLyJd.js +2301 -0
- package/dist/rolldown-runtime-9ZSF5uba.js +16 -0
- package/dist/rolldown-runtime-CAnuVJ4g.cjs +1 -0
- package/dist/rough.esm-BWe9E0Nz.js +1387 -0
- package/dist/rough.esm-BfSi6CZE.cjs +1 -0
- package/dist/{route-Djrf9UR_.js → route-pR5P4ann.js} +10 -10
- package/dist/route.js +1 -1
- package/dist/{router-BU2KhtxV.js → router-CewzSH7O.js} +5 -5
- package/dist/router.js +1 -1
- package/dist/sankeyDiagram-HTMAVEWB-CV6_AuMF.js +974 -0
- package/dist/sankeyDiagram-HTMAVEWB-K-nGMsuS.cjs +40 -0
- package/dist/{scratch-CO4I2dIa.js → scratch-BFVsgl-7.js} +2 -2
- package/dist/scratch.js +1 -1
- package/dist/{section-CsUkp8bv.js → section-DSPCsIxv.js} +2 -2
- package/dist/section.js +1 -1
- package/dist/{select-Dn26ajJZ.js → select-B58nMfB1.js} +13 -13
- package/dist/select.js +1 -1
- package/dist/sequenceDiagram-DBY2YBRQ-4GdkLnUr.cjs +162 -0
- package/dist/sequenceDiagram-DBY2YBRQ-B9WNesh2.js +4326 -0
- package/dist/sizeCapture-X5ZJPWSS-BUY3-n09.cjs +1 -0
- package/dist/sizeCapture-X5ZJPWSS-D7rGsqTl.js +48 -0
- package/dist/{skeleton-BuMLhvzQ.js → skeleton-DoHYMsTn.js} +5 -5
- package/dist/skeleton.js +1 -1
- package/dist/src-C9EhKhbk.cjs +1 -0
- package/dist/src-DtRLxcYO.js +2104 -0
- package/dist/stateDiagram-2N3HPSRC-B7VpgjJu.cjs +1 -0
- package/dist/stateDiagram-2N3HPSRC-DxH4BMSh.js +237 -0
- package/dist/stateDiagram-v2-6OUMAXLB-CQv7GIaO.cjs +1 -0
- package/dist/stateDiagram-v2-6OUMAXLB-CWfn6e7n.js +30 -0
- package/dist/swimlanes-5IMT3BWC-DcADNGpg.js +5258 -0
- package/dist/swimlanes-5IMT3BWC-o-MjdPlw.cjs +1 -0
- package/dist/swimlanesDiagram-G3AALYLV-D-rmAGky.cjs +8 -0
- package/dist/swimlanesDiagram-G3AALYLV-DDtDtl1L.js +31 -0
- package/dist/{tab-40fDkuox.js → tab-BRPdZ9Ws.js} +5 -5
- package/dist/tab.js +1 -1
- package/dist/{tabpane-F4Pd7JtC.js → tabpane-Owf72hw_.js} +5 -5
- package/dist/tabpane.js +1 -1
- package/dist/{theme-switch-B09egc6h.js → theme-switch-CZDIIonc.js} +4 -4
- package/dist/theme-switch.js +1 -1
- package/dist/timeline-definition-FHXFAJF6-C80VjPLh.js +1119 -0
- package/dist/timeline-definition-FHXFAJF6-DOwvOb3S.cjs +120 -0
- package/dist/treeView-QDETBFTQ-B1Ejxfpg.cjs +1 -0
- package/dist/treeView-QDETBFTQ-vTKOZls1.js +5 -0
- package/dist/treemap-6X3UGDF4-D0FeO_NX.cjs +1 -0
- package/dist/treemap-6X3UGDF4-Ddzv6Gqd.js +5 -0
- package/dist/utils/builder/core.d.ts +133 -3
- package/dist/utils/builder/index.d.ts +1 -1
- package/dist/{utils-DBfrRFoE.js → utils-D1iZnChu.js} +38 -31
- package/dist/vennDiagram-L72KCM5P-BYHB7OW8.js +1955 -0
- package/dist/vennDiagram-L72KCM5P-CidVJK6y.cjs +34 -0
- package/dist/wardley-OPB4EBWU-C1hXbbD4.cjs +1 -0
- package/dist/wardley-OPB4EBWU-DBgFLc64.js +5 -0
- package/dist/wardleyDiagram-EHGQE667--ubmCaWM.js +652 -0
- package/dist/wardleyDiagram-EHGQE667-K6ckkRZS.cjs +78 -0
- package/dist/xychartDiagram-FW5EYKEG-CzdokxrM.cjs +7 -0
- package/dist/xychartDiagram-FW5EYKEG-DLqWcTPt.js +2154 -0
- package/docs/BUILDER.md +155 -2
- package/package.json +7 -1
- package/dist/button-BfYw0fes.js +0 -117
- package/dist/factory-DCrO37si.js +0 -334
|
@@ -0,0 +1,2137 @@
|
|
|
1
|
+
import { n as u } from "./chunk-Y2CYZVJY-0JxdZxki.js";
|
|
2
|
+
import { m as _, p as kt } from "./src-DtRLxcYO.js";
|
|
3
|
+
import { $ as ee, H as se, K as ie, U as re, a as ae, s as U, v as ne, w as oe, x as $, y as le } from "./chunk-WYO6CB5R-DDHkKowO.js";
|
|
4
|
+
import { g as ce, s as he } from "./chunk-ICXQ74PX-DR8rL-xF.js";
|
|
5
|
+
import { t as ue } from "./chunk-32BRIVSS-jAuAwMVV.js";
|
|
6
|
+
import { t as de } from "./chunk-XXDRQBXY-BB1i_53q.js";
|
|
7
|
+
import { t as fe } from "./chunk-VR4S4FIN-CJi5okl4.js";
|
|
8
|
+
import { r as pe } from "./chunk-FWX5IMBZ-DZ5VYvm5.js";
|
|
9
|
+
var Ct = (function() {
|
|
10
|
+
var t = /* @__PURE__ */ u(function(a, f, l, p) {
|
|
11
|
+
for (l = l || {}, p = a.length; p--; l[a[p]] = f) ;
|
|
12
|
+
return l;
|
|
13
|
+
}, "o"), e = [1, 2], r = [1, 3], s = [1, 4], h = [2, 4], c = [1, 9], y = [1, 11], T = [1, 16], n = [1, 17], g = [1, 18], v = [1, 19], C = [1, 33], A = [1, 20], R = [1, 21], d = [1, 22], b = [1, 23], I = [1, 24], w = [1, 26], B = [1, 27], D = [1, 28], P = [1, 29], et = [1, 30], st = [1, 31], it = [1, 32], rt = [1, 35], at = [1, 36], nt = [1, 37], ot = [1, 38], j = [1, 34], S = [
|
|
14
|
+
1,
|
|
15
|
+
4,
|
|
16
|
+
5,
|
|
17
|
+
16,
|
|
18
|
+
17,
|
|
19
|
+
19,
|
|
20
|
+
21,
|
|
21
|
+
22,
|
|
22
|
+
24,
|
|
23
|
+
25,
|
|
24
|
+
26,
|
|
25
|
+
27,
|
|
26
|
+
28,
|
|
27
|
+
29,
|
|
28
|
+
33,
|
|
29
|
+
35,
|
|
30
|
+
37,
|
|
31
|
+
38,
|
|
32
|
+
41,
|
|
33
|
+
45,
|
|
34
|
+
48,
|
|
35
|
+
51,
|
|
36
|
+
52,
|
|
37
|
+
53,
|
|
38
|
+
54,
|
|
39
|
+
57
|
|
40
|
+
], lt = [
|
|
41
|
+
1,
|
|
42
|
+
4,
|
|
43
|
+
5,
|
|
44
|
+
14,
|
|
45
|
+
15,
|
|
46
|
+
16,
|
|
47
|
+
17,
|
|
48
|
+
19,
|
|
49
|
+
21,
|
|
50
|
+
22,
|
|
51
|
+
24,
|
|
52
|
+
25,
|
|
53
|
+
26,
|
|
54
|
+
27,
|
|
55
|
+
28,
|
|
56
|
+
29,
|
|
57
|
+
33,
|
|
58
|
+
35,
|
|
59
|
+
37,
|
|
60
|
+
38,
|
|
61
|
+
39,
|
|
62
|
+
40,
|
|
63
|
+
41,
|
|
64
|
+
45,
|
|
65
|
+
48,
|
|
66
|
+
51,
|
|
67
|
+
52,
|
|
68
|
+
53,
|
|
69
|
+
54,
|
|
70
|
+
57
|
|
71
|
+
], Lt = [
|
|
72
|
+
4,
|
|
73
|
+
5,
|
|
74
|
+
16,
|
|
75
|
+
17,
|
|
76
|
+
19,
|
|
77
|
+
21,
|
|
78
|
+
22,
|
|
79
|
+
24,
|
|
80
|
+
25,
|
|
81
|
+
26,
|
|
82
|
+
27,
|
|
83
|
+
28,
|
|
84
|
+
29,
|
|
85
|
+
33,
|
|
86
|
+
35,
|
|
87
|
+
37,
|
|
88
|
+
38,
|
|
89
|
+
41,
|
|
90
|
+
45,
|
|
91
|
+
48,
|
|
92
|
+
51,
|
|
93
|
+
52,
|
|
94
|
+
53,
|
|
95
|
+
54,
|
|
96
|
+
57
|
|
97
|
+
], gt = {
|
|
98
|
+
trace: /* @__PURE__ */ u(function() {
|
|
99
|
+
}, "trace"),
|
|
100
|
+
yy: {},
|
|
101
|
+
symbols_: {
|
|
102
|
+
error: 2,
|
|
103
|
+
start: 3,
|
|
104
|
+
SPACE: 4,
|
|
105
|
+
NL: 5,
|
|
106
|
+
SD: 6,
|
|
107
|
+
document: 7,
|
|
108
|
+
line: 8,
|
|
109
|
+
statement: 9,
|
|
110
|
+
classDefStatement: 10,
|
|
111
|
+
styleStatement: 11,
|
|
112
|
+
cssClassStatement: 12,
|
|
113
|
+
idStatement: 13,
|
|
114
|
+
DESCR: 14,
|
|
115
|
+
"-->": 15,
|
|
116
|
+
HIDE_EMPTY: 16,
|
|
117
|
+
scale: 17,
|
|
118
|
+
WIDTH: 18,
|
|
119
|
+
COMPOSIT_STATE: 19,
|
|
120
|
+
STRUCT_START: 20,
|
|
121
|
+
STRUCT_STOP: 21,
|
|
122
|
+
STATE_DESCR: 22,
|
|
123
|
+
AS: 23,
|
|
124
|
+
ID: 24,
|
|
125
|
+
FORK: 25,
|
|
126
|
+
JOIN: 26,
|
|
127
|
+
CHOICE: 27,
|
|
128
|
+
CONCURRENT: 28,
|
|
129
|
+
note: 29,
|
|
130
|
+
notePosition: 30,
|
|
131
|
+
NOTE_TEXT: 31,
|
|
132
|
+
direction: 32,
|
|
133
|
+
acc_title: 33,
|
|
134
|
+
acc_title_value: 34,
|
|
135
|
+
acc_descr: 35,
|
|
136
|
+
acc_descr_value: 36,
|
|
137
|
+
acc_descr_multiline_value: 37,
|
|
138
|
+
CLICK: 38,
|
|
139
|
+
STRING: 39,
|
|
140
|
+
HREF: 40,
|
|
141
|
+
classDef: 41,
|
|
142
|
+
CLASSDEF_ID: 42,
|
|
143
|
+
CLASSDEF_STYLEOPTS: 43,
|
|
144
|
+
DEFAULT: 44,
|
|
145
|
+
style: 45,
|
|
146
|
+
STYLE_IDS: 46,
|
|
147
|
+
STYLEDEF_STYLEOPTS: 47,
|
|
148
|
+
class: 48,
|
|
149
|
+
CLASSENTITY_IDS: 49,
|
|
150
|
+
STYLECLASS: 50,
|
|
151
|
+
direction_tb: 51,
|
|
152
|
+
direction_bt: 52,
|
|
153
|
+
direction_rl: 53,
|
|
154
|
+
direction_lr: 54,
|
|
155
|
+
eol: 55,
|
|
156
|
+
";": 56,
|
|
157
|
+
EDGE_STATE: 57,
|
|
158
|
+
STYLE_SEPARATOR: 58,
|
|
159
|
+
left_of: 59,
|
|
160
|
+
right_of: 60,
|
|
161
|
+
$accept: 0,
|
|
162
|
+
$end: 1
|
|
163
|
+
},
|
|
164
|
+
terminals_: {
|
|
165
|
+
2: "error",
|
|
166
|
+
4: "SPACE",
|
|
167
|
+
5: "NL",
|
|
168
|
+
6: "SD",
|
|
169
|
+
14: "DESCR",
|
|
170
|
+
15: "-->",
|
|
171
|
+
16: "HIDE_EMPTY",
|
|
172
|
+
17: "scale",
|
|
173
|
+
18: "WIDTH",
|
|
174
|
+
19: "COMPOSIT_STATE",
|
|
175
|
+
20: "STRUCT_START",
|
|
176
|
+
21: "STRUCT_STOP",
|
|
177
|
+
22: "STATE_DESCR",
|
|
178
|
+
23: "AS",
|
|
179
|
+
24: "ID",
|
|
180
|
+
25: "FORK",
|
|
181
|
+
26: "JOIN",
|
|
182
|
+
27: "CHOICE",
|
|
183
|
+
28: "CONCURRENT",
|
|
184
|
+
29: "note",
|
|
185
|
+
31: "NOTE_TEXT",
|
|
186
|
+
33: "acc_title",
|
|
187
|
+
34: "acc_title_value",
|
|
188
|
+
35: "acc_descr",
|
|
189
|
+
36: "acc_descr_value",
|
|
190
|
+
37: "acc_descr_multiline_value",
|
|
191
|
+
38: "CLICK",
|
|
192
|
+
39: "STRING",
|
|
193
|
+
40: "HREF",
|
|
194
|
+
41: "classDef",
|
|
195
|
+
42: "CLASSDEF_ID",
|
|
196
|
+
43: "CLASSDEF_STYLEOPTS",
|
|
197
|
+
44: "DEFAULT",
|
|
198
|
+
45: "style",
|
|
199
|
+
46: "STYLE_IDS",
|
|
200
|
+
47: "STYLEDEF_STYLEOPTS",
|
|
201
|
+
48: "class",
|
|
202
|
+
49: "CLASSENTITY_IDS",
|
|
203
|
+
50: "STYLECLASS",
|
|
204
|
+
51: "direction_tb",
|
|
205
|
+
52: "direction_bt",
|
|
206
|
+
53: "direction_rl",
|
|
207
|
+
54: "direction_lr",
|
|
208
|
+
56: ";",
|
|
209
|
+
57: "EDGE_STATE",
|
|
210
|
+
58: "STYLE_SEPARATOR",
|
|
211
|
+
59: "left_of",
|
|
212
|
+
60: "right_of"
|
|
213
|
+
},
|
|
214
|
+
productions_: [
|
|
215
|
+
0,
|
|
216
|
+
[3, 2],
|
|
217
|
+
[3, 2],
|
|
218
|
+
[3, 2],
|
|
219
|
+
[7, 0],
|
|
220
|
+
[7, 2],
|
|
221
|
+
[8, 2],
|
|
222
|
+
[8, 1],
|
|
223
|
+
[8, 1],
|
|
224
|
+
[9, 1],
|
|
225
|
+
[9, 1],
|
|
226
|
+
[9, 1],
|
|
227
|
+
[9, 1],
|
|
228
|
+
[9, 2],
|
|
229
|
+
[9, 3],
|
|
230
|
+
[9, 4],
|
|
231
|
+
[9, 1],
|
|
232
|
+
[9, 2],
|
|
233
|
+
[9, 1],
|
|
234
|
+
[9, 4],
|
|
235
|
+
[9, 3],
|
|
236
|
+
[9, 6],
|
|
237
|
+
[9, 1],
|
|
238
|
+
[9, 1],
|
|
239
|
+
[9, 1],
|
|
240
|
+
[9, 1],
|
|
241
|
+
[9, 4],
|
|
242
|
+
[9, 4],
|
|
243
|
+
[9, 1],
|
|
244
|
+
[9, 2],
|
|
245
|
+
[9, 2],
|
|
246
|
+
[9, 1],
|
|
247
|
+
[9, 5],
|
|
248
|
+
[9, 5],
|
|
249
|
+
[10, 3],
|
|
250
|
+
[10, 3],
|
|
251
|
+
[11, 3],
|
|
252
|
+
[12, 3],
|
|
253
|
+
[32, 1],
|
|
254
|
+
[32, 1],
|
|
255
|
+
[32, 1],
|
|
256
|
+
[32, 1],
|
|
257
|
+
[55, 1],
|
|
258
|
+
[55, 1],
|
|
259
|
+
[13, 1],
|
|
260
|
+
[13, 1],
|
|
261
|
+
[13, 3],
|
|
262
|
+
[13, 3],
|
|
263
|
+
[30, 1],
|
|
264
|
+
[30, 1]
|
|
265
|
+
],
|
|
266
|
+
performAction: /* @__PURE__ */ u(function(f, l, p, m, E, i, G) {
|
|
267
|
+
var o = i.length - 1;
|
|
268
|
+
switch (E) {
|
|
269
|
+
case 3:
|
|
270
|
+
return m.setRootDoc(i[o]), i[o];
|
|
271
|
+
case 4:
|
|
272
|
+
this.$ = [];
|
|
273
|
+
break;
|
|
274
|
+
case 5:
|
|
275
|
+
i[o] != "nl" && (i[o - 1].push(i[o]), this.$ = i[o - 1]);
|
|
276
|
+
break;
|
|
277
|
+
case 6:
|
|
278
|
+
case 7:
|
|
279
|
+
this.$ = i[o];
|
|
280
|
+
break;
|
|
281
|
+
case 8:
|
|
282
|
+
this.$ = "nl";
|
|
283
|
+
break;
|
|
284
|
+
case 12:
|
|
285
|
+
this.$ = i[o];
|
|
286
|
+
break;
|
|
287
|
+
case 13:
|
|
288
|
+
const ht = i[o - 1];
|
|
289
|
+
ht.description = m.trimColon(i[o]), this.$ = ht;
|
|
290
|
+
break;
|
|
291
|
+
case 14:
|
|
292
|
+
this.$ = {
|
|
293
|
+
stmt: "relation",
|
|
294
|
+
state1: i[o - 2],
|
|
295
|
+
state2: i[o]
|
|
296
|
+
};
|
|
297
|
+
break;
|
|
298
|
+
case 15:
|
|
299
|
+
const ut = m.trimColon(i[o]);
|
|
300
|
+
this.$ = {
|
|
301
|
+
stmt: "relation",
|
|
302
|
+
state1: i[o - 3],
|
|
303
|
+
state2: i[o - 1],
|
|
304
|
+
description: ut
|
|
305
|
+
};
|
|
306
|
+
break;
|
|
307
|
+
case 19:
|
|
308
|
+
this.$ = {
|
|
309
|
+
stmt: "state",
|
|
310
|
+
id: i[o - 3],
|
|
311
|
+
type: "default",
|
|
312
|
+
description: "",
|
|
313
|
+
doc: i[o - 1]
|
|
314
|
+
};
|
|
315
|
+
break;
|
|
316
|
+
case 20:
|
|
317
|
+
var V = i[o], H = i[o - 2].trim();
|
|
318
|
+
if (i[o].match(":")) {
|
|
319
|
+
var J = i[o].split(":");
|
|
320
|
+
V = J[0], H = [H, J[1]];
|
|
321
|
+
}
|
|
322
|
+
this.$ = {
|
|
323
|
+
stmt: "state",
|
|
324
|
+
id: V,
|
|
325
|
+
type: "default",
|
|
326
|
+
description: H
|
|
327
|
+
};
|
|
328
|
+
break;
|
|
329
|
+
case 21:
|
|
330
|
+
this.$ = {
|
|
331
|
+
stmt: "state",
|
|
332
|
+
id: i[o - 3],
|
|
333
|
+
type: "default",
|
|
334
|
+
description: i[o - 5],
|
|
335
|
+
doc: i[o - 1]
|
|
336
|
+
};
|
|
337
|
+
break;
|
|
338
|
+
case 22:
|
|
339
|
+
this.$ = {
|
|
340
|
+
stmt: "state",
|
|
341
|
+
id: i[o],
|
|
342
|
+
type: "fork"
|
|
343
|
+
};
|
|
344
|
+
break;
|
|
345
|
+
case 23:
|
|
346
|
+
this.$ = {
|
|
347
|
+
stmt: "state",
|
|
348
|
+
id: i[o],
|
|
349
|
+
type: "join"
|
|
350
|
+
};
|
|
351
|
+
break;
|
|
352
|
+
case 24:
|
|
353
|
+
this.$ = {
|
|
354
|
+
stmt: "state",
|
|
355
|
+
id: i[o],
|
|
356
|
+
type: "choice"
|
|
357
|
+
};
|
|
358
|
+
break;
|
|
359
|
+
case 25:
|
|
360
|
+
this.$ = {
|
|
361
|
+
stmt: "state",
|
|
362
|
+
id: m.getDividerId(),
|
|
363
|
+
type: "divider"
|
|
364
|
+
};
|
|
365
|
+
break;
|
|
366
|
+
case 26:
|
|
367
|
+
this.$ = {
|
|
368
|
+
stmt: "state",
|
|
369
|
+
id: i[o - 1].trim(),
|
|
370
|
+
note: {
|
|
371
|
+
position: i[o - 2].trim(),
|
|
372
|
+
text: i[o].trim()
|
|
373
|
+
}
|
|
374
|
+
};
|
|
375
|
+
break;
|
|
376
|
+
case 29:
|
|
377
|
+
this.$ = i[o].trim(), m.setAccTitle(this.$);
|
|
378
|
+
break;
|
|
379
|
+
case 30:
|
|
380
|
+
case 31:
|
|
381
|
+
this.$ = i[o].trim(), m.setAccDescription(this.$);
|
|
382
|
+
break;
|
|
383
|
+
case 32:
|
|
384
|
+
this.$ = {
|
|
385
|
+
stmt: "click",
|
|
386
|
+
id: i[o - 3],
|
|
387
|
+
url: i[o - 2],
|
|
388
|
+
tooltip: i[o - 1]
|
|
389
|
+
};
|
|
390
|
+
break;
|
|
391
|
+
case 33:
|
|
392
|
+
this.$ = {
|
|
393
|
+
stmt: "click",
|
|
394
|
+
id: i[o - 3],
|
|
395
|
+
url: i[o - 1],
|
|
396
|
+
tooltip: ""
|
|
397
|
+
};
|
|
398
|
+
break;
|
|
399
|
+
case 34:
|
|
400
|
+
case 35:
|
|
401
|
+
this.$ = {
|
|
402
|
+
stmt: "classDef",
|
|
403
|
+
id: i[o - 1].trim(),
|
|
404
|
+
classes: i[o].trim()
|
|
405
|
+
};
|
|
406
|
+
break;
|
|
407
|
+
case 36:
|
|
408
|
+
this.$ = {
|
|
409
|
+
stmt: "style",
|
|
410
|
+
id: i[o - 1].trim(),
|
|
411
|
+
styleClass: i[o].trim()
|
|
412
|
+
};
|
|
413
|
+
break;
|
|
414
|
+
case 37:
|
|
415
|
+
this.$ = {
|
|
416
|
+
stmt: "applyClass",
|
|
417
|
+
id: i[o - 1].trim(),
|
|
418
|
+
styleClass: i[o].trim()
|
|
419
|
+
};
|
|
420
|
+
break;
|
|
421
|
+
case 38:
|
|
422
|
+
m.setDirection("TB"), this.$ = {
|
|
423
|
+
stmt: "dir",
|
|
424
|
+
value: "TB"
|
|
425
|
+
};
|
|
426
|
+
break;
|
|
427
|
+
case 39:
|
|
428
|
+
m.setDirection("BT"), this.$ = {
|
|
429
|
+
stmt: "dir",
|
|
430
|
+
value: "BT"
|
|
431
|
+
};
|
|
432
|
+
break;
|
|
433
|
+
case 40:
|
|
434
|
+
m.setDirection("RL"), this.$ = {
|
|
435
|
+
stmt: "dir",
|
|
436
|
+
value: "RL"
|
|
437
|
+
};
|
|
438
|
+
break;
|
|
439
|
+
case 41:
|
|
440
|
+
m.setDirection("LR"), this.$ = {
|
|
441
|
+
stmt: "dir",
|
|
442
|
+
value: "LR"
|
|
443
|
+
};
|
|
444
|
+
break;
|
|
445
|
+
case 44:
|
|
446
|
+
case 45:
|
|
447
|
+
this.$ = {
|
|
448
|
+
stmt: "state",
|
|
449
|
+
id: i[o].trim(),
|
|
450
|
+
type: "default",
|
|
451
|
+
description: ""
|
|
452
|
+
};
|
|
453
|
+
break;
|
|
454
|
+
case 46:
|
|
455
|
+
this.$ = {
|
|
456
|
+
stmt: "state",
|
|
457
|
+
id: i[o - 2].trim(),
|
|
458
|
+
classes: [i[o].trim()],
|
|
459
|
+
type: "default",
|
|
460
|
+
description: ""
|
|
461
|
+
};
|
|
462
|
+
break;
|
|
463
|
+
case 47:
|
|
464
|
+
this.$ = {
|
|
465
|
+
stmt: "state",
|
|
466
|
+
id: i[o - 2].trim(),
|
|
467
|
+
classes: [i[o].trim()],
|
|
468
|
+
type: "default",
|
|
469
|
+
description: ""
|
|
470
|
+
};
|
|
471
|
+
break;
|
|
472
|
+
}
|
|
473
|
+
}, "anonymous"),
|
|
474
|
+
table: [
|
|
475
|
+
{
|
|
476
|
+
3: 1,
|
|
477
|
+
4: e,
|
|
478
|
+
5: r,
|
|
479
|
+
6: s
|
|
480
|
+
},
|
|
481
|
+
{ 1: [3] },
|
|
482
|
+
{
|
|
483
|
+
3: 5,
|
|
484
|
+
4: e,
|
|
485
|
+
5: r,
|
|
486
|
+
6: s
|
|
487
|
+
},
|
|
488
|
+
{
|
|
489
|
+
3: 6,
|
|
490
|
+
4: e,
|
|
491
|
+
5: r,
|
|
492
|
+
6: s
|
|
493
|
+
},
|
|
494
|
+
t([
|
|
495
|
+
1,
|
|
496
|
+
4,
|
|
497
|
+
5,
|
|
498
|
+
16,
|
|
499
|
+
17,
|
|
500
|
+
19,
|
|
501
|
+
22,
|
|
502
|
+
24,
|
|
503
|
+
25,
|
|
504
|
+
26,
|
|
505
|
+
27,
|
|
506
|
+
28,
|
|
507
|
+
29,
|
|
508
|
+
33,
|
|
509
|
+
35,
|
|
510
|
+
37,
|
|
511
|
+
38,
|
|
512
|
+
41,
|
|
513
|
+
45,
|
|
514
|
+
48,
|
|
515
|
+
51,
|
|
516
|
+
52,
|
|
517
|
+
53,
|
|
518
|
+
54,
|
|
519
|
+
57
|
|
520
|
+
], h, { 7: 7 }),
|
|
521
|
+
{ 1: [2, 1] },
|
|
522
|
+
{ 1: [2, 2] },
|
|
523
|
+
{
|
|
524
|
+
1: [2, 3],
|
|
525
|
+
4: c,
|
|
526
|
+
5: y,
|
|
527
|
+
8: 8,
|
|
528
|
+
9: 10,
|
|
529
|
+
10: 12,
|
|
530
|
+
11: 13,
|
|
531
|
+
12: 14,
|
|
532
|
+
13: 15,
|
|
533
|
+
16: T,
|
|
534
|
+
17: n,
|
|
535
|
+
19: g,
|
|
536
|
+
22: v,
|
|
537
|
+
24: C,
|
|
538
|
+
25: A,
|
|
539
|
+
26: R,
|
|
540
|
+
27: d,
|
|
541
|
+
28: b,
|
|
542
|
+
29: I,
|
|
543
|
+
32: 25,
|
|
544
|
+
33: w,
|
|
545
|
+
35: B,
|
|
546
|
+
37: D,
|
|
547
|
+
38: P,
|
|
548
|
+
41: et,
|
|
549
|
+
45: st,
|
|
550
|
+
48: it,
|
|
551
|
+
51: rt,
|
|
552
|
+
52: at,
|
|
553
|
+
53: nt,
|
|
554
|
+
54: ot,
|
|
555
|
+
57: j
|
|
556
|
+
},
|
|
557
|
+
t(S, [2, 5]),
|
|
558
|
+
{
|
|
559
|
+
9: 39,
|
|
560
|
+
10: 12,
|
|
561
|
+
11: 13,
|
|
562
|
+
12: 14,
|
|
563
|
+
13: 15,
|
|
564
|
+
16: T,
|
|
565
|
+
17: n,
|
|
566
|
+
19: g,
|
|
567
|
+
22: v,
|
|
568
|
+
24: C,
|
|
569
|
+
25: A,
|
|
570
|
+
26: R,
|
|
571
|
+
27: d,
|
|
572
|
+
28: b,
|
|
573
|
+
29: I,
|
|
574
|
+
32: 25,
|
|
575
|
+
33: w,
|
|
576
|
+
35: B,
|
|
577
|
+
37: D,
|
|
578
|
+
38: P,
|
|
579
|
+
41: et,
|
|
580
|
+
45: st,
|
|
581
|
+
48: it,
|
|
582
|
+
51: rt,
|
|
583
|
+
52: at,
|
|
584
|
+
53: nt,
|
|
585
|
+
54: ot,
|
|
586
|
+
57: j
|
|
587
|
+
},
|
|
588
|
+
t(S, [2, 7]),
|
|
589
|
+
t(S, [2, 8]),
|
|
590
|
+
t(S, [2, 9]),
|
|
591
|
+
t(S, [2, 10]),
|
|
592
|
+
t(S, [2, 11]),
|
|
593
|
+
t(S, [2, 12], {
|
|
594
|
+
14: [1, 40],
|
|
595
|
+
15: [1, 41]
|
|
596
|
+
}),
|
|
597
|
+
t(S, [2, 16]),
|
|
598
|
+
{ 18: [1, 42] },
|
|
599
|
+
t(S, [2, 18], { 20: [1, 43] }),
|
|
600
|
+
{ 23: [1, 44] },
|
|
601
|
+
t(S, [2, 22]),
|
|
602
|
+
t(S, [2, 23]),
|
|
603
|
+
t(S, [2, 24]),
|
|
604
|
+
t(S, [2, 25]),
|
|
605
|
+
{
|
|
606
|
+
30: 45,
|
|
607
|
+
31: [1, 46],
|
|
608
|
+
59: [1, 47],
|
|
609
|
+
60: [1, 48]
|
|
610
|
+
},
|
|
611
|
+
t(S, [2, 28]),
|
|
612
|
+
{ 34: [1, 49] },
|
|
613
|
+
{ 36: [1, 50] },
|
|
614
|
+
t(S, [2, 31]),
|
|
615
|
+
{
|
|
616
|
+
13: 51,
|
|
617
|
+
24: C,
|
|
618
|
+
57: j
|
|
619
|
+
},
|
|
620
|
+
{
|
|
621
|
+
42: [1, 52],
|
|
622
|
+
44: [1, 53]
|
|
623
|
+
},
|
|
624
|
+
{ 46: [1, 54] },
|
|
625
|
+
{ 49: [1, 55] },
|
|
626
|
+
t(lt, [2, 44], { 58: [1, 56] }),
|
|
627
|
+
t(lt, [2, 45], { 58: [1, 57] }),
|
|
628
|
+
t(S, [2, 38]),
|
|
629
|
+
t(S, [2, 39]),
|
|
630
|
+
t(S, [2, 40]),
|
|
631
|
+
t(S, [2, 41]),
|
|
632
|
+
t(S, [2, 6]),
|
|
633
|
+
t(S, [2, 13]),
|
|
634
|
+
{
|
|
635
|
+
13: 58,
|
|
636
|
+
24: C,
|
|
637
|
+
57: j
|
|
638
|
+
},
|
|
639
|
+
t(S, [2, 17]),
|
|
640
|
+
t(Lt, h, { 7: 59 }),
|
|
641
|
+
{ 24: [1, 60] },
|
|
642
|
+
{ 24: [1, 61] },
|
|
643
|
+
{ 23: [1, 62] },
|
|
644
|
+
{ 24: [2, 48] },
|
|
645
|
+
{ 24: [2, 49] },
|
|
646
|
+
t(S, [2, 29]),
|
|
647
|
+
t(S, [2, 30]),
|
|
648
|
+
{
|
|
649
|
+
39: [1, 63],
|
|
650
|
+
40: [1, 64]
|
|
651
|
+
},
|
|
652
|
+
{ 43: [1, 65] },
|
|
653
|
+
{ 43: [1, 66] },
|
|
654
|
+
{ 47: [1, 67] },
|
|
655
|
+
{ 50: [1, 68] },
|
|
656
|
+
{ 24: [1, 69] },
|
|
657
|
+
{ 24: [1, 70] },
|
|
658
|
+
t(S, [2, 14], { 14: [1, 71] }),
|
|
659
|
+
{
|
|
660
|
+
4: c,
|
|
661
|
+
5: y,
|
|
662
|
+
8: 8,
|
|
663
|
+
9: 10,
|
|
664
|
+
10: 12,
|
|
665
|
+
11: 13,
|
|
666
|
+
12: 14,
|
|
667
|
+
13: 15,
|
|
668
|
+
16: T,
|
|
669
|
+
17: n,
|
|
670
|
+
19: g,
|
|
671
|
+
21: [1, 72],
|
|
672
|
+
22: v,
|
|
673
|
+
24: C,
|
|
674
|
+
25: A,
|
|
675
|
+
26: R,
|
|
676
|
+
27: d,
|
|
677
|
+
28: b,
|
|
678
|
+
29: I,
|
|
679
|
+
32: 25,
|
|
680
|
+
33: w,
|
|
681
|
+
35: B,
|
|
682
|
+
37: D,
|
|
683
|
+
38: P,
|
|
684
|
+
41: et,
|
|
685
|
+
45: st,
|
|
686
|
+
48: it,
|
|
687
|
+
51: rt,
|
|
688
|
+
52: at,
|
|
689
|
+
53: nt,
|
|
690
|
+
54: ot,
|
|
691
|
+
57: j
|
|
692
|
+
},
|
|
693
|
+
t(S, [2, 20], { 20: [1, 73] }),
|
|
694
|
+
{ 31: [1, 74] },
|
|
695
|
+
{ 24: [1, 75] },
|
|
696
|
+
{ 39: [1, 76] },
|
|
697
|
+
{ 39: [1, 77] },
|
|
698
|
+
t(S, [2, 34]),
|
|
699
|
+
t(S, [2, 35]),
|
|
700
|
+
t(S, [2, 36]),
|
|
701
|
+
t(S, [2, 37]),
|
|
702
|
+
t(lt, [2, 46]),
|
|
703
|
+
t(lt, [2, 47]),
|
|
704
|
+
t(S, [2, 15]),
|
|
705
|
+
t(S, [2, 19]),
|
|
706
|
+
t(Lt, h, { 7: 78 }),
|
|
707
|
+
t(S, [2, 26]),
|
|
708
|
+
t(S, [2, 27]),
|
|
709
|
+
{ 5: [1, 79] },
|
|
710
|
+
{ 5: [1, 80] },
|
|
711
|
+
{
|
|
712
|
+
4: c,
|
|
713
|
+
5: y,
|
|
714
|
+
8: 8,
|
|
715
|
+
9: 10,
|
|
716
|
+
10: 12,
|
|
717
|
+
11: 13,
|
|
718
|
+
12: 14,
|
|
719
|
+
13: 15,
|
|
720
|
+
16: T,
|
|
721
|
+
17: n,
|
|
722
|
+
19: g,
|
|
723
|
+
21: [1, 81],
|
|
724
|
+
22: v,
|
|
725
|
+
24: C,
|
|
726
|
+
25: A,
|
|
727
|
+
26: R,
|
|
728
|
+
27: d,
|
|
729
|
+
28: b,
|
|
730
|
+
29: I,
|
|
731
|
+
32: 25,
|
|
732
|
+
33: w,
|
|
733
|
+
35: B,
|
|
734
|
+
37: D,
|
|
735
|
+
38: P,
|
|
736
|
+
41: et,
|
|
737
|
+
45: st,
|
|
738
|
+
48: it,
|
|
739
|
+
51: rt,
|
|
740
|
+
52: at,
|
|
741
|
+
53: nt,
|
|
742
|
+
54: ot,
|
|
743
|
+
57: j
|
|
744
|
+
},
|
|
745
|
+
t(S, [2, 32]),
|
|
746
|
+
t(S, [2, 33]),
|
|
747
|
+
t(S, [2, 21])
|
|
748
|
+
],
|
|
749
|
+
defaultActions: {
|
|
750
|
+
5: [2, 1],
|
|
751
|
+
6: [2, 2],
|
|
752
|
+
47: [2, 48],
|
|
753
|
+
48: [2, 49]
|
|
754
|
+
},
|
|
755
|
+
parseError: /* @__PURE__ */ u(function(f, l) {
|
|
756
|
+
if (l.recoverable) this.trace(f);
|
|
757
|
+
else {
|
|
758
|
+
var p = new Error(f);
|
|
759
|
+
throw p.hash = l, p;
|
|
760
|
+
}
|
|
761
|
+
}, "parseError"),
|
|
762
|
+
parse: /* @__PURE__ */ u(function(f) {
|
|
763
|
+
var l = this, p = [0], m = [], E = [null], i = [], G = this.table, o = "", V = 0, H = 0, J = 0, ht = 2, ut = 1, Qt = i.slice.call(arguments, 1), k = Object.create(this.lexer), M = { yy: {} };
|
|
764
|
+
for (var Tt in this.yy) Object.prototype.hasOwnProperty.call(this.yy, Tt) && (M.yy[Tt] = this.yy[Tt]);
|
|
765
|
+
k.setInput(f, M.yy), M.yy.lexer = k, M.yy.parser = this, typeof k.yylloc > "u" && (k.yylloc = {});
|
|
766
|
+
var mt = k.yylloc;
|
|
767
|
+
i.push(mt);
|
|
768
|
+
var Zt = k.options && k.options.ranges;
|
|
769
|
+
typeof M.yy.parseError == "function" ? this.parseError = M.yy.parseError : this.parseError = Object.getPrototypeOf(this).parseError;
|
|
770
|
+
function te(O) {
|
|
771
|
+
p.length = p.length - 2 * O, E.length = E.length - O, i.length = i.length - O;
|
|
772
|
+
}
|
|
773
|
+
u(te, "popStack");
|
|
774
|
+
function It() {
|
|
775
|
+
var O = m.pop() || k.lex() || ut;
|
|
776
|
+
return typeof O != "number" && (O instanceof Array && (m = O, O = m.pop()), O = l.symbols_[O] || O), O;
|
|
777
|
+
}
|
|
778
|
+
u(It, "lex");
|
|
779
|
+
for (var x, Et, W, N, _t, z = {}, dt, Y, wt, ft; ; ) {
|
|
780
|
+
if (W = p[p.length - 1], this.defaultActions[W] ? N = this.defaultActions[W] : ((x === null || typeof x > "u") && (x = It()), N = G[W] && G[W][x]), typeof N > "u" || !N.length || !N[0]) {
|
|
781
|
+
var bt = "";
|
|
782
|
+
ft = [];
|
|
783
|
+
for (dt in G[W]) this.terminals_[dt] && dt > ht && ft.push("'" + this.terminals_[dt] + "'");
|
|
784
|
+
k.showPosition ? bt = "Parse error on line " + (V + 1) + `:
|
|
785
|
+
` + k.showPosition() + `
|
|
786
|
+
Expecting ` + ft.join(", ") + ", got '" + (this.terminals_[x] || x) + "'" : bt = "Parse error on line " + (V + 1) + ": Unexpected " + (x == ut ? "end of input" : "'" + (this.terminals_[x] || x) + "'"), this.parseError(bt, {
|
|
787
|
+
text: k.match,
|
|
788
|
+
token: this.terminals_[x] || x,
|
|
789
|
+
line: k.yylineno,
|
|
790
|
+
loc: mt,
|
|
791
|
+
expected: ft
|
|
792
|
+
});
|
|
793
|
+
}
|
|
794
|
+
if (N[0] instanceof Array && N.length > 1) throw new Error("Parse Error: multiple actions possible at state: " + W + ", token: " + x);
|
|
795
|
+
switch (N[0]) {
|
|
796
|
+
case 1:
|
|
797
|
+
p.push(x), E.push(k.yytext), i.push(k.yylloc), p.push(N[1]), x = null, Et ? (x = Et, Et = null) : (H = k.yyleng, o = k.yytext, V = k.yylineno, mt = k.yylloc, J > 0 && J--);
|
|
798
|
+
break;
|
|
799
|
+
case 2:
|
|
800
|
+
if (Y = this.productions_[N[1]][1], z.$ = E[E.length - Y], z._$ = {
|
|
801
|
+
first_line: i[i.length - (Y || 1)].first_line,
|
|
802
|
+
last_line: i[i.length - 1].last_line,
|
|
803
|
+
first_column: i[i.length - (Y || 1)].first_column,
|
|
804
|
+
last_column: i[i.length - 1].last_column
|
|
805
|
+
}, Zt && (z._$.range = [i[i.length - (Y || 1)].range[0], i[i.length - 1].range[1]]), _t = this.performAction.apply(z, [
|
|
806
|
+
o,
|
|
807
|
+
H,
|
|
808
|
+
V,
|
|
809
|
+
M.yy,
|
|
810
|
+
N[1],
|
|
811
|
+
E,
|
|
812
|
+
i
|
|
813
|
+
].concat(Qt)), typeof _t < "u") return _t;
|
|
814
|
+
Y && (p = p.slice(0, -1 * Y * 2), E = E.slice(0, -1 * Y), i = i.slice(0, -1 * Y)), p.push(this.productions_[N[1]][0]), E.push(z.$), i.push(z._$), wt = G[p[p.length - 2]][p[p.length - 1]], p.push(wt);
|
|
815
|
+
break;
|
|
816
|
+
case 3:
|
|
817
|
+
return !0;
|
|
818
|
+
}
|
|
819
|
+
}
|
|
820
|
+
return !0;
|
|
821
|
+
}, "parse")
|
|
822
|
+
};
|
|
823
|
+
gt.lexer = /* @__PURE__ */ (function() {
|
|
824
|
+
return {
|
|
825
|
+
EOF: 1,
|
|
826
|
+
parseError: /* @__PURE__ */ u(function(f, l) {
|
|
827
|
+
if (this.yy.parser) this.yy.parser.parseError(f, l);
|
|
828
|
+
else throw new Error(f);
|
|
829
|
+
}, "parseError"),
|
|
830
|
+
setInput: /* @__PURE__ */ u(function(a, f) {
|
|
831
|
+
return this.yy = f || this.yy || {}, this._input = a, this._more = this._backtrack = this.done = !1, this.yylineno = this.yyleng = 0, this.yytext = this.matched = this.match = "", this.conditionStack = ["INITIAL"], this.yylloc = {
|
|
832
|
+
first_line: 1,
|
|
833
|
+
first_column: 0,
|
|
834
|
+
last_line: 1,
|
|
835
|
+
last_column: 0
|
|
836
|
+
}, this.options.ranges && (this.yylloc.range = [0, 0]), this.offset = 0, this;
|
|
837
|
+
}, "setInput"),
|
|
838
|
+
input: /* @__PURE__ */ u(function() {
|
|
839
|
+
var a = this._input[0];
|
|
840
|
+
return this.yytext += a, this.yyleng++, this.offset++, this.match += a, this.matched += a, a.match(/(?:\r\n?|\n).*/g) ? (this.yylineno++, this.yylloc.last_line++) : this.yylloc.last_column++, this.options.ranges && this.yylloc.range[1]++, this._input = this._input.slice(1), a;
|
|
841
|
+
}, "input"),
|
|
842
|
+
unput: /* @__PURE__ */ u(function(a) {
|
|
843
|
+
var f = a.length, l = a.split(/(?:\r\n?|\n)/g);
|
|
844
|
+
this._input = a + this._input, this.yytext = this.yytext.substr(0, this.yytext.length - f), this.offset -= f;
|
|
845
|
+
var p = this.match.split(/(?:\r\n?|\n)/g);
|
|
846
|
+
this.match = this.match.substr(0, this.match.length - 1), this.matched = this.matched.substr(0, this.matched.length - 1), l.length - 1 && (this.yylineno -= l.length - 1);
|
|
847
|
+
var m = this.yylloc.range;
|
|
848
|
+
return this.yylloc = {
|
|
849
|
+
first_line: this.yylloc.first_line,
|
|
850
|
+
last_line: this.yylineno + 1,
|
|
851
|
+
first_column: this.yylloc.first_column,
|
|
852
|
+
last_column: l ? (l.length === p.length ? this.yylloc.first_column : 0) + p[p.length - l.length].length - l[0].length : this.yylloc.first_column - f
|
|
853
|
+
}, this.options.ranges && (this.yylloc.range = [m[0], m[0] + this.yyleng - f]), this.yyleng = this.yytext.length, this;
|
|
854
|
+
}, "unput"),
|
|
855
|
+
more: /* @__PURE__ */ u(function() {
|
|
856
|
+
return this._more = !0, this;
|
|
857
|
+
}, "more"),
|
|
858
|
+
reject: /* @__PURE__ */ u(function() {
|
|
859
|
+
if (this.options.backtrack_lexer) this._backtrack = !0;
|
|
860
|
+
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).
|
|
861
|
+
` + this.showPosition(), {
|
|
862
|
+
text: "",
|
|
863
|
+
token: null,
|
|
864
|
+
line: this.yylineno
|
|
865
|
+
});
|
|
866
|
+
return this;
|
|
867
|
+
}, "reject"),
|
|
868
|
+
less: /* @__PURE__ */ u(function(a) {
|
|
869
|
+
this.unput(this.match.slice(a));
|
|
870
|
+
}, "less"),
|
|
871
|
+
pastInput: /* @__PURE__ */ u(function() {
|
|
872
|
+
var a = this.matched.substr(0, this.matched.length - this.match.length);
|
|
873
|
+
return (a.length > 20 ? "..." : "") + a.substr(-20).replace(/\n/g, "");
|
|
874
|
+
}, "pastInput"),
|
|
875
|
+
upcomingInput: /* @__PURE__ */ u(function() {
|
|
876
|
+
var a = this.match;
|
|
877
|
+
return a.length < 20 && (a += this._input.substr(0, 20 - a.length)), (a.substr(0, 20) + (a.length > 20 ? "..." : "")).replace(/\n/g, "");
|
|
878
|
+
}, "upcomingInput"),
|
|
879
|
+
showPosition: /* @__PURE__ */ u(function() {
|
|
880
|
+
var a = this.pastInput(), f = new Array(a.length + 1).join("-");
|
|
881
|
+
return a + this.upcomingInput() + `
|
|
882
|
+
` + f + "^";
|
|
883
|
+
}, "showPosition"),
|
|
884
|
+
test_match: /* @__PURE__ */ u(function(a, f) {
|
|
885
|
+
var l, p, m;
|
|
886
|
+
if (this.options.backtrack_lexer && (m = {
|
|
887
|
+
yylineno: this.yylineno,
|
|
888
|
+
yylloc: {
|
|
889
|
+
first_line: this.yylloc.first_line,
|
|
890
|
+
last_line: this.last_line,
|
|
891
|
+
first_column: this.yylloc.first_column,
|
|
892
|
+
last_column: this.yylloc.last_column
|
|
893
|
+
},
|
|
894
|
+
yytext: this.yytext,
|
|
895
|
+
match: this.match,
|
|
896
|
+
matches: this.matches,
|
|
897
|
+
matched: this.matched,
|
|
898
|
+
yyleng: this.yyleng,
|
|
899
|
+
offset: this.offset,
|
|
900
|
+
_more: this._more,
|
|
901
|
+
_input: this._input,
|
|
902
|
+
yy: this.yy,
|
|
903
|
+
conditionStack: this.conditionStack.slice(0),
|
|
904
|
+
done: this.done
|
|
905
|
+
}, this.options.ranges && (m.yylloc.range = this.yylloc.range.slice(0))), p = a[0].match(/(?:\r\n?|\n).*/g), p && (this.yylineno += p.length), this.yylloc = {
|
|
906
|
+
first_line: this.yylloc.last_line,
|
|
907
|
+
last_line: this.yylineno + 1,
|
|
908
|
+
first_column: this.yylloc.last_column,
|
|
909
|
+
last_column: p ? p[p.length - 1].length - p[p.length - 1].match(/\r?\n?/)[0].length : this.yylloc.last_column + a[0].length
|
|
910
|
+
}, this.yytext += a[0], this.match += a[0], this.matches = a, 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(a[0].length), this.matched += a[0], l = this.performAction.call(this, this.yy, this, f, this.conditionStack[this.conditionStack.length - 1]), this.done && this._input && (this.done = !1), l) return l;
|
|
911
|
+
if (this._backtrack) {
|
|
912
|
+
for (var E in m) this[E] = m[E];
|
|
913
|
+
return !1;
|
|
914
|
+
}
|
|
915
|
+
return !1;
|
|
916
|
+
}, "test_match"),
|
|
917
|
+
next: /* @__PURE__ */ u(function() {
|
|
918
|
+
if (this.done) return this.EOF;
|
|
919
|
+
this._input || (this.done = !0);
|
|
920
|
+
var a, f, l, p;
|
|
921
|
+
this._more || (this.yytext = "", this.match = "");
|
|
922
|
+
for (var m = this._currentRules(), E = 0; E < m.length; E++)
|
|
923
|
+
if (l = this._input.match(this.rules[m[E]]), l && (!f || l[0].length > f[0].length)) {
|
|
924
|
+
if (f = l, p = E, this.options.backtrack_lexer) {
|
|
925
|
+
if (a = this.test_match(l, m[E]), a !== !1) return a;
|
|
926
|
+
if (this._backtrack) {
|
|
927
|
+
f = !1;
|
|
928
|
+
continue;
|
|
929
|
+
} else return !1;
|
|
930
|
+
} else if (!this.options.flex) break;
|
|
931
|
+
}
|
|
932
|
+
return f ? (a = this.test_match(f, m[p]), a !== !1 ? a : !1) : this._input === "" ? this.EOF : this.parseError("Lexical error on line " + (this.yylineno + 1) + `. Unrecognized text.
|
|
933
|
+
` + this.showPosition(), {
|
|
934
|
+
text: "",
|
|
935
|
+
token: null,
|
|
936
|
+
line: this.yylineno
|
|
937
|
+
});
|
|
938
|
+
}, "next"),
|
|
939
|
+
lex: /* @__PURE__ */ u(function() {
|
|
940
|
+
var f = this.next();
|
|
941
|
+
return f || this.lex();
|
|
942
|
+
}, "lex"),
|
|
943
|
+
begin: /* @__PURE__ */ u(function(f) {
|
|
944
|
+
this.conditionStack.push(f);
|
|
945
|
+
}, "begin"),
|
|
946
|
+
popState: /* @__PURE__ */ u(function() {
|
|
947
|
+
return this.conditionStack.length - 1 > 0 ? this.conditionStack.pop() : this.conditionStack[0];
|
|
948
|
+
}, "popState"),
|
|
949
|
+
_currentRules: /* @__PURE__ */ u(function() {
|
|
950
|
+
return this.conditionStack.length && this.conditionStack[this.conditionStack.length - 1] ? this.conditions[this.conditionStack[this.conditionStack.length - 1]].rules : this.conditions.INITIAL.rules;
|
|
951
|
+
}, "_currentRules"),
|
|
952
|
+
topState: /* @__PURE__ */ u(function(f) {
|
|
953
|
+
return f = this.conditionStack.length - 1 - Math.abs(f || 0), f >= 0 ? this.conditionStack[f] : "INITIAL";
|
|
954
|
+
}, "topState"),
|
|
955
|
+
pushState: /* @__PURE__ */ u(function(f) {
|
|
956
|
+
this.begin(f);
|
|
957
|
+
}, "pushState"),
|
|
958
|
+
stateStackSize: /* @__PURE__ */ u(function() {
|
|
959
|
+
return this.conditionStack.length;
|
|
960
|
+
}, "stateStackSize"),
|
|
961
|
+
options: { "case-insensitive": !0 },
|
|
962
|
+
performAction: /* @__PURE__ */ u(function(f, l, p, m) {
|
|
963
|
+
function E() {
|
|
964
|
+
const i = l.yytext.indexOf("%%");
|
|
965
|
+
if (i === 0) return !1;
|
|
966
|
+
if (i > 0) {
|
|
967
|
+
const G = l.yytext.slice(0, i), o = l.yytext.slice(i);
|
|
968
|
+
o && f.lexer.unput(o), l.yytext = G;
|
|
969
|
+
}
|
|
970
|
+
return !0;
|
|
971
|
+
}
|
|
972
|
+
switch (u(E, "processId"), p) {
|
|
973
|
+
case 0:
|
|
974
|
+
return 38;
|
|
975
|
+
case 1:
|
|
976
|
+
return 40;
|
|
977
|
+
case 2:
|
|
978
|
+
return 39;
|
|
979
|
+
case 3:
|
|
980
|
+
return 44;
|
|
981
|
+
case 4:
|
|
982
|
+
return 51;
|
|
983
|
+
case 5:
|
|
984
|
+
return 52;
|
|
985
|
+
case 6:
|
|
986
|
+
return 53;
|
|
987
|
+
case 7:
|
|
988
|
+
return 54;
|
|
989
|
+
case 8:
|
|
990
|
+
return 5;
|
|
991
|
+
case 9:
|
|
992
|
+
break;
|
|
993
|
+
case 10:
|
|
994
|
+
break;
|
|
995
|
+
case 11:
|
|
996
|
+
break;
|
|
997
|
+
case 12:
|
|
998
|
+
break;
|
|
999
|
+
case 13:
|
|
1000
|
+
return this.pushState("SCALE"), 17;
|
|
1001
|
+
case 14:
|
|
1002
|
+
return 18;
|
|
1003
|
+
case 15:
|
|
1004
|
+
this.popState();
|
|
1005
|
+
break;
|
|
1006
|
+
case 16:
|
|
1007
|
+
return this.begin("acc_title"), 33;
|
|
1008
|
+
case 17:
|
|
1009
|
+
return this.popState(), "acc_title_value";
|
|
1010
|
+
case 18:
|
|
1011
|
+
return this.begin("acc_descr"), 35;
|
|
1012
|
+
case 19:
|
|
1013
|
+
return this.popState(), "acc_descr_value";
|
|
1014
|
+
case 20:
|
|
1015
|
+
this.begin("acc_descr_multiline");
|
|
1016
|
+
break;
|
|
1017
|
+
case 21:
|
|
1018
|
+
this.popState();
|
|
1019
|
+
break;
|
|
1020
|
+
case 22:
|
|
1021
|
+
return "acc_descr_multiline_value";
|
|
1022
|
+
case 23:
|
|
1023
|
+
return this.pushState("CLASSDEF"), 41;
|
|
1024
|
+
case 24:
|
|
1025
|
+
return this.popState(), this.pushState("CLASSDEFID"), "DEFAULT_CLASSDEF_ID";
|
|
1026
|
+
case 25:
|
|
1027
|
+
return this.popState(), this.pushState("CLASSDEFID"), 42;
|
|
1028
|
+
case 26:
|
|
1029
|
+
return this.popState(), 43;
|
|
1030
|
+
case 27:
|
|
1031
|
+
return this.pushState("CLASS"), 48;
|
|
1032
|
+
case 28:
|
|
1033
|
+
return this.popState(), this.pushState("CLASS_STYLE"), 49;
|
|
1034
|
+
case 29:
|
|
1035
|
+
return this.popState(), 50;
|
|
1036
|
+
case 30:
|
|
1037
|
+
return this.pushState("STYLE"), 45;
|
|
1038
|
+
case 31:
|
|
1039
|
+
return this.popState(), this.pushState("STYLEDEF_STYLES"), 46;
|
|
1040
|
+
case 32:
|
|
1041
|
+
return this.popState(), 47;
|
|
1042
|
+
case 33:
|
|
1043
|
+
return this.pushState("SCALE"), 17;
|
|
1044
|
+
case 34:
|
|
1045
|
+
return 18;
|
|
1046
|
+
case 35:
|
|
1047
|
+
this.popState();
|
|
1048
|
+
break;
|
|
1049
|
+
case 36:
|
|
1050
|
+
this.pushState("STATE");
|
|
1051
|
+
break;
|
|
1052
|
+
case 37:
|
|
1053
|
+
return this.popState(), l.yytext = l.yytext.slice(0, -8).trim(), 25;
|
|
1054
|
+
case 38:
|
|
1055
|
+
return this.popState(), l.yytext = l.yytext.slice(0, -8).trim(), 26;
|
|
1056
|
+
case 39:
|
|
1057
|
+
return this.popState(), l.yytext = l.yytext.slice(0, -10).trim(), 27;
|
|
1058
|
+
case 40:
|
|
1059
|
+
return this.popState(), l.yytext = l.yytext.slice(0, -8).trim(), 25;
|
|
1060
|
+
case 41:
|
|
1061
|
+
return this.popState(), l.yytext = l.yytext.slice(0, -8).trim(), 26;
|
|
1062
|
+
case 42:
|
|
1063
|
+
return this.popState(), l.yytext = l.yytext.slice(0, -10).trim(), 27;
|
|
1064
|
+
case 43:
|
|
1065
|
+
return 51;
|
|
1066
|
+
case 44:
|
|
1067
|
+
return 52;
|
|
1068
|
+
case 45:
|
|
1069
|
+
return 53;
|
|
1070
|
+
case 46:
|
|
1071
|
+
return 54;
|
|
1072
|
+
case 47:
|
|
1073
|
+
this.pushState("STATE_STRING");
|
|
1074
|
+
break;
|
|
1075
|
+
case 48:
|
|
1076
|
+
return this.pushState("STATE_ID"), "AS";
|
|
1077
|
+
case 49:
|
|
1078
|
+
return E() ? (this.popState(), "ID") : void 0;
|
|
1079
|
+
case 50:
|
|
1080
|
+
this.popState();
|
|
1081
|
+
break;
|
|
1082
|
+
case 51:
|
|
1083
|
+
return "STATE_DESCR";
|
|
1084
|
+
case 52:
|
|
1085
|
+
throw new Error('Error: State name must be a single word. Found: "' + l.yytext.trim() + '"');
|
|
1086
|
+
case 53:
|
|
1087
|
+
return 19;
|
|
1088
|
+
case 54:
|
|
1089
|
+
this.popState();
|
|
1090
|
+
break;
|
|
1091
|
+
case 55:
|
|
1092
|
+
return this.popState(), this.pushState("struct"), 20;
|
|
1093
|
+
case 56:
|
|
1094
|
+
return this.popState(), 21;
|
|
1095
|
+
case 57:
|
|
1096
|
+
break;
|
|
1097
|
+
case 58:
|
|
1098
|
+
return this.begin("NOTE"), 29;
|
|
1099
|
+
case 59:
|
|
1100
|
+
return this.popState(), this.pushState("NOTE_ID"), 59;
|
|
1101
|
+
case 60:
|
|
1102
|
+
return this.popState(), this.pushState("NOTE_ID"), 60;
|
|
1103
|
+
case 61:
|
|
1104
|
+
this.popState(), this.pushState("FLOATING_NOTE");
|
|
1105
|
+
break;
|
|
1106
|
+
case 62:
|
|
1107
|
+
return this.popState(), this.pushState("FLOATING_NOTE_ID"), "AS";
|
|
1108
|
+
case 63:
|
|
1109
|
+
break;
|
|
1110
|
+
case 64:
|
|
1111
|
+
return "NOTE_TEXT";
|
|
1112
|
+
case 65:
|
|
1113
|
+
return E() ? (this.popState(), "ID") : void 0;
|
|
1114
|
+
case 66:
|
|
1115
|
+
return E() ? (this.popState(), this.pushState("NOTE_TEXT"), 24) : void 0;
|
|
1116
|
+
case 67:
|
|
1117
|
+
return this.popState(), l.yytext = l.yytext.substr(2).trim(), 31;
|
|
1118
|
+
case 68:
|
|
1119
|
+
return this.popState(), l.yytext = l.yytext.slice(0, -8).trim(), 31;
|
|
1120
|
+
case 69:
|
|
1121
|
+
return 6;
|
|
1122
|
+
case 70:
|
|
1123
|
+
return 6;
|
|
1124
|
+
case 71:
|
|
1125
|
+
return 16;
|
|
1126
|
+
case 72:
|
|
1127
|
+
return 57;
|
|
1128
|
+
case 73:
|
|
1129
|
+
return E() ? 24 : void 0;
|
|
1130
|
+
case 74:
|
|
1131
|
+
return l.yytext = l.yytext.trim(), 14;
|
|
1132
|
+
case 75:
|
|
1133
|
+
return 15;
|
|
1134
|
+
case 76:
|
|
1135
|
+
return 28;
|
|
1136
|
+
case 77:
|
|
1137
|
+
return 58;
|
|
1138
|
+
case 78:
|
|
1139
|
+
return 5;
|
|
1140
|
+
case 79:
|
|
1141
|
+
return "INVALID";
|
|
1142
|
+
}
|
|
1143
|
+
}, "anonymous"),
|
|
1144
|
+
rules: [
|
|
1145
|
+
/^(?:click\b)/i,
|
|
1146
|
+
/^(?:href\b)/i,
|
|
1147
|
+
/^(?:"[^"]*")/i,
|
|
1148
|
+
/^(?:default\b)/i,
|
|
1149
|
+
/^(?:.*direction\s+TB[^\n]*)/i,
|
|
1150
|
+
/^(?:.*direction\s+BT[^\n]*)/i,
|
|
1151
|
+
/^(?:.*direction\s+RL[^\n]*)/i,
|
|
1152
|
+
/^(?:.*direction\s+LR[^\n]*)/i,
|
|
1153
|
+
/^(?:[\n]+)/i,
|
|
1154
|
+
/^(?:[\s]+)/i,
|
|
1155
|
+
/^(?:((?!\n)\s)+)/i,
|
|
1156
|
+
/^(?:#[^\n]*)/i,
|
|
1157
|
+
/^(?:%%(?!\{)[^\n]*)/i,
|
|
1158
|
+
/^(?:scale\s+)/i,
|
|
1159
|
+
/^(?:\d+)/i,
|
|
1160
|
+
/^(?:\s+width\b)/i,
|
|
1161
|
+
/^(?:accTitle\s*:\s*)/i,
|
|
1162
|
+
/^(?:(?!\n||)*[^\n]*)/i,
|
|
1163
|
+
/^(?:accDescr\s*:\s*)/i,
|
|
1164
|
+
/^(?:(?!\n||)*[^\n]*)/i,
|
|
1165
|
+
/^(?:accDescr\s*\{\s*)/i,
|
|
1166
|
+
/^(?:[\}])/i,
|
|
1167
|
+
/^(?:[^\}]*)/i,
|
|
1168
|
+
/^(?:classDef\s+)/i,
|
|
1169
|
+
/^(?:DEFAULT\s+)/i,
|
|
1170
|
+
/^(?:\w+\s+)/i,
|
|
1171
|
+
/^(?:[^\n]*)/i,
|
|
1172
|
+
/^(?:class\s+)/i,
|
|
1173
|
+
/^(?:(\w+)+((,\s*\w+)*))/i,
|
|
1174
|
+
/^(?:[^\n]*)/i,
|
|
1175
|
+
/^(?:style\s+)/i,
|
|
1176
|
+
/^(?:[\w,]+\s+)/i,
|
|
1177
|
+
/^(?:[^\n]*)/i,
|
|
1178
|
+
/^(?:scale\s+)/i,
|
|
1179
|
+
/^(?:\d+)/i,
|
|
1180
|
+
/^(?:\s+width\b)/i,
|
|
1181
|
+
/^(?:state\s+)/i,
|
|
1182
|
+
/^(?:.*<<fork>>)/i,
|
|
1183
|
+
/^(?:.*<<join>>)/i,
|
|
1184
|
+
/^(?:.*<<choice>>)/i,
|
|
1185
|
+
/^(?:.*\[\[fork\]\])/i,
|
|
1186
|
+
/^(?:.*\[\[join\]\])/i,
|
|
1187
|
+
/^(?:.*\[\[choice\]\])/i,
|
|
1188
|
+
/^(?:.*direction\s+TB[^\n]*)/i,
|
|
1189
|
+
/^(?:.*direction\s+BT[^\n]*)/i,
|
|
1190
|
+
/^(?:.*direction\s+RL[^\n]*)/i,
|
|
1191
|
+
/^(?:.*direction\s+LR[^\n]*)/i,
|
|
1192
|
+
/^(?:["])/i,
|
|
1193
|
+
/^(?:\s*as\s+)/i,
|
|
1194
|
+
/^(?:[^\n\{]*)/i,
|
|
1195
|
+
/^(?:["])/i,
|
|
1196
|
+
/^(?:[^"]*)/i,
|
|
1197
|
+
/^(?:\w+\s+\w+.*?\{)/i,
|
|
1198
|
+
/^(?:[^\n\s\{]+)/i,
|
|
1199
|
+
/^(?:\n)/i,
|
|
1200
|
+
/^(?:\{)/i,
|
|
1201
|
+
/^(?:\})/i,
|
|
1202
|
+
/^(?:[\n])/i,
|
|
1203
|
+
/^(?:note\s+)/i,
|
|
1204
|
+
/^(?:left of\b)/i,
|
|
1205
|
+
/^(?:right of\b)/i,
|
|
1206
|
+
/^(?:")/i,
|
|
1207
|
+
/^(?:\s*as\s*)/i,
|
|
1208
|
+
/^(?:["])/i,
|
|
1209
|
+
/^(?:[^"]*)/i,
|
|
1210
|
+
/^(?:[^\n]*)/i,
|
|
1211
|
+
/^(?:\s*[^:\n\s\-]+)/i,
|
|
1212
|
+
/^(?:\s*:[^:\n;]+)/i,
|
|
1213
|
+
/^(?:[\s\S]*?\n\s*end note\b)/i,
|
|
1214
|
+
/^(?:stateDiagram\s+)/i,
|
|
1215
|
+
/^(?:stateDiagram-v2\s+)/i,
|
|
1216
|
+
/^(?:hide empty description\b)/i,
|
|
1217
|
+
/^(?:\[\*\])/i,
|
|
1218
|
+
/^(?:[^:\n\s\-\{]+)/i,
|
|
1219
|
+
/^(?:\s*:(?:[^:\n;]|:[^:\n;])+)/i,
|
|
1220
|
+
/^(?:-->)/i,
|
|
1221
|
+
/^(?:--)/i,
|
|
1222
|
+
/^(?::::)/i,
|
|
1223
|
+
/^(?:$)/i,
|
|
1224
|
+
/^(?:.)/i
|
|
1225
|
+
],
|
|
1226
|
+
conditions: {
|
|
1227
|
+
LINE: {
|
|
1228
|
+
rules: [
|
|
1229
|
+
10,
|
|
1230
|
+
11,
|
|
1231
|
+
12
|
|
1232
|
+
],
|
|
1233
|
+
inclusive: !1
|
|
1234
|
+
},
|
|
1235
|
+
struct: {
|
|
1236
|
+
rules: [
|
|
1237
|
+
10,
|
|
1238
|
+
11,
|
|
1239
|
+
12,
|
|
1240
|
+
23,
|
|
1241
|
+
27,
|
|
1242
|
+
30,
|
|
1243
|
+
36,
|
|
1244
|
+
43,
|
|
1245
|
+
44,
|
|
1246
|
+
45,
|
|
1247
|
+
46,
|
|
1248
|
+
56,
|
|
1249
|
+
57,
|
|
1250
|
+
58,
|
|
1251
|
+
72,
|
|
1252
|
+
73,
|
|
1253
|
+
74,
|
|
1254
|
+
75,
|
|
1255
|
+
76,
|
|
1256
|
+
77
|
|
1257
|
+
],
|
|
1258
|
+
inclusive: !1
|
|
1259
|
+
},
|
|
1260
|
+
FLOATING_NOTE_ID: {
|
|
1261
|
+
rules: [65],
|
|
1262
|
+
inclusive: !1
|
|
1263
|
+
},
|
|
1264
|
+
FLOATING_NOTE: {
|
|
1265
|
+
rules: [
|
|
1266
|
+
62,
|
|
1267
|
+
63,
|
|
1268
|
+
64
|
|
1269
|
+
],
|
|
1270
|
+
inclusive: !1
|
|
1271
|
+
},
|
|
1272
|
+
NOTE_TEXT: {
|
|
1273
|
+
rules: [67, 68],
|
|
1274
|
+
inclusive: !1
|
|
1275
|
+
},
|
|
1276
|
+
NOTE_ID: {
|
|
1277
|
+
rules: [66],
|
|
1278
|
+
inclusive: !1
|
|
1279
|
+
},
|
|
1280
|
+
NOTE: {
|
|
1281
|
+
rules: [
|
|
1282
|
+
59,
|
|
1283
|
+
60,
|
|
1284
|
+
61
|
|
1285
|
+
],
|
|
1286
|
+
inclusive: !1
|
|
1287
|
+
},
|
|
1288
|
+
STYLEDEF_STYLEOPTS: {
|
|
1289
|
+
rules: [],
|
|
1290
|
+
inclusive: !1
|
|
1291
|
+
},
|
|
1292
|
+
STYLEDEF_STYLES: {
|
|
1293
|
+
rules: [32],
|
|
1294
|
+
inclusive: !1
|
|
1295
|
+
},
|
|
1296
|
+
STYLE_IDS: {
|
|
1297
|
+
rules: [],
|
|
1298
|
+
inclusive: !1
|
|
1299
|
+
},
|
|
1300
|
+
STYLE: {
|
|
1301
|
+
rules: [31],
|
|
1302
|
+
inclusive: !1
|
|
1303
|
+
},
|
|
1304
|
+
CLASS_STYLE: {
|
|
1305
|
+
rules: [29],
|
|
1306
|
+
inclusive: !1
|
|
1307
|
+
},
|
|
1308
|
+
CLASS: {
|
|
1309
|
+
rules: [28],
|
|
1310
|
+
inclusive: !1
|
|
1311
|
+
},
|
|
1312
|
+
CLASSDEFID: {
|
|
1313
|
+
rules: [26],
|
|
1314
|
+
inclusive: !1
|
|
1315
|
+
},
|
|
1316
|
+
CLASSDEF: {
|
|
1317
|
+
rules: [24, 25],
|
|
1318
|
+
inclusive: !1
|
|
1319
|
+
},
|
|
1320
|
+
acc_descr_multiline: {
|
|
1321
|
+
rules: [21, 22],
|
|
1322
|
+
inclusive: !1
|
|
1323
|
+
},
|
|
1324
|
+
acc_descr: {
|
|
1325
|
+
rules: [19],
|
|
1326
|
+
inclusive: !1
|
|
1327
|
+
},
|
|
1328
|
+
acc_title: {
|
|
1329
|
+
rules: [17],
|
|
1330
|
+
inclusive: !1
|
|
1331
|
+
},
|
|
1332
|
+
SCALE: {
|
|
1333
|
+
rules: [
|
|
1334
|
+
14,
|
|
1335
|
+
15,
|
|
1336
|
+
34,
|
|
1337
|
+
35
|
|
1338
|
+
],
|
|
1339
|
+
inclusive: !1
|
|
1340
|
+
},
|
|
1341
|
+
ALIAS: {
|
|
1342
|
+
rules: [],
|
|
1343
|
+
inclusive: !1
|
|
1344
|
+
},
|
|
1345
|
+
STATE_ID: {
|
|
1346
|
+
rules: [49],
|
|
1347
|
+
inclusive: !1
|
|
1348
|
+
},
|
|
1349
|
+
STATE_STRING: {
|
|
1350
|
+
rules: [50, 51],
|
|
1351
|
+
inclusive: !1
|
|
1352
|
+
},
|
|
1353
|
+
FORK_STATE: {
|
|
1354
|
+
rules: [],
|
|
1355
|
+
inclusive: !1
|
|
1356
|
+
},
|
|
1357
|
+
STATE: {
|
|
1358
|
+
rules: [
|
|
1359
|
+
10,
|
|
1360
|
+
11,
|
|
1361
|
+
12,
|
|
1362
|
+
37,
|
|
1363
|
+
38,
|
|
1364
|
+
39,
|
|
1365
|
+
40,
|
|
1366
|
+
41,
|
|
1367
|
+
42,
|
|
1368
|
+
47,
|
|
1369
|
+
48,
|
|
1370
|
+
52,
|
|
1371
|
+
53,
|
|
1372
|
+
54,
|
|
1373
|
+
55
|
|
1374
|
+
],
|
|
1375
|
+
inclusive: !1
|
|
1376
|
+
},
|
|
1377
|
+
ID: {
|
|
1378
|
+
rules: [
|
|
1379
|
+
10,
|
|
1380
|
+
11,
|
|
1381
|
+
12
|
|
1382
|
+
],
|
|
1383
|
+
inclusive: !1
|
|
1384
|
+
},
|
|
1385
|
+
INITIAL: {
|
|
1386
|
+
rules: [
|
|
1387
|
+
0,
|
|
1388
|
+
1,
|
|
1389
|
+
2,
|
|
1390
|
+
3,
|
|
1391
|
+
4,
|
|
1392
|
+
5,
|
|
1393
|
+
6,
|
|
1394
|
+
7,
|
|
1395
|
+
8,
|
|
1396
|
+
9,
|
|
1397
|
+
11,
|
|
1398
|
+
12,
|
|
1399
|
+
13,
|
|
1400
|
+
16,
|
|
1401
|
+
18,
|
|
1402
|
+
20,
|
|
1403
|
+
23,
|
|
1404
|
+
27,
|
|
1405
|
+
30,
|
|
1406
|
+
33,
|
|
1407
|
+
36,
|
|
1408
|
+
55,
|
|
1409
|
+
58,
|
|
1410
|
+
69,
|
|
1411
|
+
70,
|
|
1412
|
+
71,
|
|
1413
|
+
72,
|
|
1414
|
+
73,
|
|
1415
|
+
74,
|
|
1416
|
+
75,
|
|
1417
|
+
77,
|
|
1418
|
+
78,
|
|
1419
|
+
79
|
|
1420
|
+
],
|
|
1421
|
+
inclusive: !0
|
|
1422
|
+
}
|
|
1423
|
+
}
|
|
1424
|
+
};
|
|
1425
|
+
})();
|
|
1426
|
+
function ct() {
|
|
1427
|
+
this.yy = {};
|
|
1428
|
+
}
|
|
1429
|
+
return u(ct, "Parser"), ct.prototype = gt, gt.Parser = ct, new ct();
|
|
1430
|
+
})();
|
|
1431
|
+
Ct.parser = Ct;
|
|
1432
|
+
var Ve = Ct, Se = "TB", Ft = "TB", Nt = "dir", X = "state", K = "root", At = "relation", ye = "classDef", ge = "style", Te = "applyClass", Z = "default", Gt = "divider", Vt = "fill:none", Mt = "fill: #333", Wt = "c", Ut = "markdown", jt = "normal", Dt = "rect", vt = "rectWithTitle", me = "stateStart", Ee = "stateEnd", Ot = "divider", Rt = "roundedWithTitle", _e = "note", be = "noteGroup", tt = "statediagram", ke = `${tt}-state`, Ht = "transition", De = "note", ve = `${Ht} note-edge`, Ce = `${tt}-${De}`, Ae = `${tt}-cluster`, xe = `${tt}-cluster-alt`, zt = "parent", Kt = "note", Le = "state", xt = "----", Ie = `${xt}${Kt}`, $t = `${xt}${zt}`, Xt = /* @__PURE__ */ u((t, e = Ft) => {
|
|
1433
|
+
if (!t.doc) return e;
|
|
1434
|
+
let r = e;
|
|
1435
|
+
for (const s of t.doc) s.stmt === "dir" && (r = s.value);
|
|
1436
|
+
return r;
|
|
1437
|
+
}, "getDir"), Me = {
|
|
1438
|
+
getClasses: /* @__PURE__ */ u(function(t, e) {
|
|
1439
|
+
return e.db.getClasses();
|
|
1440
|
+
}, "getClasses"),
|
|
1441
|
+
draw: /* @__PURE__ */ u(async function(t, e, r, s) {
|
|
1442
|
+
_.info("REF0:"), _.info("Drawing state diagram (v2)", e);
|
|
1443
|
+
const { securityLevel: h, state: c, layout: y } = $();
|
|
1444
|
+
s.db.extract(s.db.getRootDocV2());
|
|
1445
|
+
const T = s.db.getData(), n = de(e, h);
|
|
1446
|
+
T.type = s.type, T.layoutAlgorithm = y, T.nodeSpacing = c?.nodeSpacing || 50, T.rankSpacing = c?.rankSpacing || 50, $().look === "neo" ? T.markers = ["barbNeo"] : T.markers = ["barb"], T.diagramId = e, await pe(T, n);
|
|
1447
|
+
const g = 8;
|
|
1448
|
+
try {
|
|
1449
|
+
(typeof s.db.getLinks == "function" ? s.db.getLinks() : /* @__PURE__ */ new Map()).forEach((v, C) => {
|
|
1450
|
+
const A = typeof C == "string" ? C : typeof C?.id == "string" ? C.id : "", R = T.nodes.find((D) => D.id === A);
|
|
1451
|
+
if (!A) {
|
|
1452
|
+
_.warn("⚠️ Invalid or missing stateId from key:", JSON.stringify(C));
|
|
1453
|
+
return;
|
|
1454
|
+
}
|
|
1455
|
+
const d = n.node()?.querySelectorAll("g.node, g.rough-node");
|
|
1456
|
+
let b;
|
|
1457
|
+
if (d?.forEach((D) => {
|
|
1458
|
+
const P = D.textContent?.trim();
|
|
1459
|
+
(D.id === R?.domId || P === A) && (b = D);
|
|
1460
|
+
}), !b) {
|
|
1461
|
+
_.warn("⚠️ Could not find node matching text:", A);
|
|
1462
|
+
return;
|
|
1463
|
+
}
|
|
1464
|
+
const I = b.parentNode;
|
|
1465
|
+
if (!I) {
|
|
1466
|
+
_.warn("⚠️ Node has no parent, cannot wrap:", A);
|
|
1467
|
+
return;
|
|
1468
|
+
}
|
|
1469
|
+
const w = document.createElementNS("http://www.w3.org/2000/svg", "a"), B = v.url.replace(/^"+|"+$/g, "");
|
|
1470
|
+
if (w.setAttributeNS("http://www.w3.org/1999/xlink", "xlink:href", B), w.setAttribute("target", "_blank"), v.tooltip) {
|
|
1471
|
+
const D = v.tooltip.replace(/^"+|"+$/g, "");
|
|
1472
|
+
w.setAttribute("title", D), b.setAttribute("title", D);
|
|
1473
|
+
}
|
|
1474
|
+
I.replaceChild(w, b), w.appendChild(b), _.info("🔗 Wrapped node in <a> tag for:", A, v.url);
|
|
1475
|
+
});
|
|
1476
|
+
} catch (v) {
|
|
1477
|
+
_.error("❌ Error injecting clickable links:", v);
|
|
1478
|
+
}
|
|
1479
|
+
ce.insertTitle(n, "statediagramTitleText", c?.titleTopMargin ?? 25, s.db.getDiagramTitle()), fe(n, g, tt, c?.useMaxWidth ?? !0);
|
|
1480
|
+
}, "draw"),
|
|
1481
|
+
getDir: Xt
|
|
1482
|
+
}, St = /* @__PURE__ */ new Map(), F = 0;
|
|
1483
|
+
function yt(t = "", e = 0, r = "", s = xt) {
|
|
1484
|
+
return `${Le}-${t}${r !== null && r.length > 0 ? `${s}${r}` : ""}-${e}`;
|
|
1485
|
+
}
|
|
1486
|
+
u(yt, "stateDomId");
|
|
1487
|
+
var we = /* @__PURE__ */ u((t, e, r, s, h, c, y, T) => {
|
|
1488
|
+
_.trace("items", e), e.forEach((n) => {
|
|
1489
|
+
switch (n.stmt) {
|
|
1490
|
+
case X:
|
|
1491
|
+
Q(t, n, r, s, h, c, y, T);
|
|
1492
|
+
break;
|
|
1493
|
+
case Z:
|
|
1494
|
+
Q(t, n, r, s, h, c, y, T);
|
|
1495
|
+
break;
|
|
1496
|
+
case At:
|
|
1497
|
+
{
|
|
1498
|
+
Q(t, n.state1, r, s, h, c, y, T), Q(t, n.state2, r, s, h, c, y, T);
|
|
1499
|
+
const g = y === "neo", v = {
|
|
1500
|
+
id: "edge" + F,
|
|
1501
|
+
start: n.state1.id,
|
|
1502
|
+
end: n.state2.id,
|
|
1503
|
+
arrowhead: "normal",
|
|
1504
|
+
arrowTypeEnd: g ? "arrow_barb_neo" : "arrow_barb",
|
|
1505
|
+
style: Vt,
|
|
1506
|
+
labelStyle: "",
|
|
1507
|
+
label: U.sanitizeText(n.description ?? "", $()),
|
|
1508
|
+
arrowheadStyle: Mt,
|
|
1509
|
+
labelpos: Wt,
|
|
1510
|
+
labelType: Ut,
|
|
1511
|
+
thickness: jt,
|
|
1512
|
+
classes: Ht,
|
|
1513
|
+
look: y
|
|
1514
|
+
};
|
|
1515
|
+
h.push(v), F++;
|
|
1516
|
+
}
|
|
1517
|
+
break;
|
|
1518
|
+
}
|
|
1519
|
+
});
|
|
1520
|
+
}, "setupDoc"), Pt = /* @__PURE__ */ u((t, e = Ft) => {
|
|
1521
|
+
let r = e;
|
|
1522
|
+
if (t.doc)
|
|
1523
|
+
for (const s of t.doc) s.stmt === "dir" && (r = s.value);
|
|
1524
|
+
return r;
|
|
1525
|
+
}, "getDir");
|
|
1526
|
+
function q(t, e, r) {
|
|
1527
|
+
if (!e.id || e.id === "</join></fork>" || e.id === "</choice>") return;
|
|
1528
|
+
e.cssClasses && (Array.isArray(e.cssCompiledStyles) || (e.cssCompiledStyles = []), e.cssClasses.split(" ").forEach((h) => {
|
|
1529
|
+
const c = r.get(h);
|
|
1530
|
+
c && (e.cssCompiledStyles = [...e.cssCompiledStyles ?? [], ...c.styles]);
|
|
1531
|
+
}));
|
|
1532
|
+
const s = t.find((h) => h.id === e.id);
|
|
1533
|
+
s ? Object.assign(s, e) : t.push(e);
|
|
1534
|
+
}
|
|
1535
|
+
u(q, "insertOrUpdateNode");
|
|
1536
|
+
function Jt(t) {
|
|
1537
|
+
return t?.classes?.join(" ") ?? "";
|
|
1538
|
+
}
|
|
1539
|
+
u(Jt, "getClassesFromDbInfo");
|
|
1540
|
+
function qt(t) {
|
|
1541
|
+
return t?.styles ?? [];
|
|
1542
|
+
}
|
|
1543
|
+
u(qt, "getStylesFromDbInfo");
|
|
1544
|
+
var Q = /* @__PURE__ */ u((t, e, r, s, h, c, y, T) => {
|
|
1545
|
+
const n = e.id, g = r.get(n), v = Jt(g), C = qt(g), A = $();
|
|
1546
|
+
if (_.info("dataFetcher parsedItem", e, g, C), n !== "root") {
|
|
1547
|
+
let R = Dt;
|
|
1548
|
+
e.start === !0 ? R = me : e.start === !1 && (R = Ee), e.type !== Z && (R = e.type), St.get(n) || St.set(n, {
|
|
1549
|
+
id: n,
|
|
1550
|
+
shape: R,
|
|
1551
|
+
description: U.sanitizeText(n, A),
|
|
1552
|
+
cssClasses: `${v} ${ke}`,
|
|
1553
|
+
cssStyles: C
|
|
1554
|
+
});
|
|
1555
|
+
const d = St.get(n);
|
|
1556
|
+
e.description && (Array.isArray(d.description) ? (d.shape = vt, d.description.push(e.description)) : d.description?.length && d.description.length > 0 ? (d.shape = vt, d.description === n ? d.description = [e.description] : d.description = [d.description, e.description]) : (d.shape = Dt, d.description = e.description), d.description = U.sanitizeTextOrArray(d.description, A)), d.description?.length === 1 && d.shape === vt && (d.type === "group" ? d.shape = Rt : d.shape = Dt), !d.type && e.doc && (_.info("Setting cluster for XCX", n, Pt(e)), d.type = "group", d.isGroup = !0, d.dir = Pt(e), d.explicitDir = e.doc.some((I) => I.stmt === "dir"), d.shape = e.type === Gt ? Ot : Rt, d.cssClasses = `${d.cssClasses} ${Ae} ${c ? xe : ""}`);
|
|
1557
|
+
const b = {
|
|
1558
|
+
labelStyle: "",
|
|
1559
|
+
shape: d.shape,
|
|
1560
|
+
label: d.description,
|
|
1561
|
+
cssClasses: d.cssClasses,
|
|
1562
|
+
cssCompiledStyles: [],
|
|
1563
|
+
cssStyles: d.cssStyles,
|
|
1564
|
+
id: n,
|
|
1565
|
+
dir: d.dir,
|
|
1566
|
+
domId: yt(n, F),
|
|
1567
|
+
type: d.type,
|
|
1568
|
+
isGroup: d.type === "group",
|
|
1569
|
+
padding: 8,
|
|
1570
|
+
rx: 10,
|
|
1571
|
+
ry: 10,
|
|
1572
|
+
look: y,
|
|
1573
|
+
labelType: "markdown"
|
|
1574
|
+
};
|
|
1575
|
+
if (b.shape === Ot && (b.label = ""), t && t.id !== "root" && (_.trace("Setting node ", n, " to be child of its parent ", t.id), b.parentId = t.id), b.centerLabel = !0, e.note) {
|
|
1576
|
+
const I = {
|
|
1577
|
+
labelStyle: "",
|
|
1578
|
+
shape: _e,
|
|
1579
|
+
label: e.note.text,
|
|
1580
|
+
labelType: "markdown",
|
|
1581
|
+
cssClasses: Ce,
|
|
1582
|
+
cssStyles: [],
|
|
1583
|
+
cssCompiledStyles: [],
|
|
1584
|
+
id: n + Ie + "-" + F,
|
|
1585
|
+
domId: yt(n, F, Kt),
|
|
1586
|
+
type: d.type,
|
|
1587
|
+
isGroup: d.type === "group",
|
|
1588
|
+
padding: A.flowchart?.padding,
|
|
1589
|
+
look: y,
|
|
1590
|
+
position: e.note.position
|
|
1591
|
+
}, w = n + $t, B = {
|
|
1592
|
+
labelStyle: "",
|
|
1593
|
+
shape: be,
|
|
1594
|
+
label: e.note.text,
|
|
1595
|
+
cssClasses: d.cssClasses,
|
|
1596
|
+
cssStyles: [],
|
|
1597
|
+
id: n + $t,
|
|
1598
|
+
domId: yt(n, F, zt),
|
|
1599
|
+
type: "group",
|
|
1600
|
+
isGroup: !0,
|
|
1601
|
+
padding: 16,
|
|
1602
|
+
look: y,
|
|
1603
|
+
position: e.note.position
|
|
1604
|
+
};
|
|
1605
|
+
F++, B.id = w, I.parentId = w, q(s, B, T), q(s, I, T), q(s, b, T);
|
|
1606
|
+
let D = n, P = I.id;
|
|
1607
|
+
e.note.position === "left of" && (D = I.id, P = n), h.push({
|
|
1608
|
+
id: D + "-" + P,
|
|
1609
|
+
start: D,
|
|
1610
|
+
end: P,
|
|
1611
|
+
arrowhead: "none",
|
|
1612
|
+
arrowTypeEnd: "",
|
|
1613
|
+
style: Vt,
|
|
1614
|
+
labelStyle: "",
|
|
1615
|
+
classes: ve,
|
|
1616
|
+
arrowheadStyle: Mt,
|
|
1617
|
+
labelpos: Wt,
|
|
1618
|
+
labelType: Ut,
|
|
1619
|
+
thickness: jt,
|
|
1620
|
+
look: y
|
|
1621
|
+
});
|
|
1622
|
+
} else q(s, b, T);
|
|
1623
|
+
}
|
|
1624
|
+
e.doc && (_.trace("Adding nodes children "), we(e, e.doc, r, s, h, !c, y, T));
|
|
1625
|
+
}, "dataFetcher"), Ne = /* @__PURE__ */ u(() => {
|
|
1626
|
+
St.clear(), F = 0;
|
|
1627
|
+
}, "reset"), L = {
|
|
1628
|
+
START_NODE: "[*]",
|
|
1629
|
+
START_TYPE: "start",
|
|
1630
|
+
END_NODE: "[*]",
|
|
1631
|
+
END_TYPE: "end",
|
|
1632
|
+
COLOR_KEYWORD: "color",
|
|
1633
|
+
FILL_KEYWORD: "fill",
|
|
1634
|
+
BG_FILL: "bgFill",
|
|
1635
|
+
STYLECLASS_SEP: ","
|
|
1636
|
+
}, Bt = /* @__PURE__ */ u(() => /* @__PURE__ */ new Map(), "newClassesList"), Yt = /* @__PURE__ */ u(() => ({
|
|
1637
|
+
relations: [],
|
|
1638
|
+
states: /* @__PURE__ */ new Map(),
|
|
1639
|
+
documents: {}
|
|
1640
|
+
}), "newDoc"), pt = /* @__PURE__ */ u((t) => JSON.parse(JSON.stringify(t)), "clone"), We = class {
|
|
1641
|
+
constructor(t) {
|
|
1642
|
+
this.version = t, this.nodes = [], this.edges = [], this.rootDoc = [], this.classes = Bt(), this.documents = { root: Yt() }, this.currentDocument = this.documents.root, this.startEndCount = 0, this.dividerCnt = 0, this.links = /* @__PURE__ */ new Map(), this.funs = [], this.getAccTitle = le, this.setAccTitle = re, this.getAccDescription = ne, this.setAccDescription = se, this.setDiagramTitle = ie, this.getDiagramTitle = oe, this.clear(), this.setRootDoc = this.setRootDoc.bind(this), this.getDividerId = this.getDividerId.bind(this), this.setDirection = this.setDirection.bind(this), this.trimColon = this.trimColon.bind(this), this.bindFunctions = this.bindFunctions.bind(this);
|
|
1643
|
+
}
|
|
1644
|
+
static {
|
|
1645
|
+
u(this, "StateDB");
|
|
1646
|
+
}
|
|
1647
|
+
static {
|
|
1648
|
+
this.relationType = {
|
|
1649
|
+
AGGREGATION: 0,
|
|
1650
|
+
EXTENSION: 1,
|
|
1651
|
+
COMPOSITION: 2,
|
|
1652
|
+
DEPENDENCY: 3
|
|
1653
|
+
};
|
|
1654
|
+
}
|
|
1655
|
+
extract(t) {
|
|
1656
|
+
this.clear(!0);
|
|
1657
|
+
for (const s of Array.isArray(t) ? t : t.doc) switch (s.stmt) {
|
|
1658
|
+
case X:
|
|
1659
|
+
this.addState(s.id.trim(), s.type, s.doc, s.description, s.note);
|
|
1660
|
+
break;
|
|
1661
|
+
case At:
|
|
1662
|
+
this.addRelation(s.state1, s.state2, s.description);
|
|
1663
|
+
break;
|
|
1664
|
+
case ye:
|
|
1665
|
+
this.addStyleClass(s.id.trim(), s.classes);
|
|
1666
|
+
break;
|
|
1667
|
+
case ge:
|
|
1668
|
+
this.handleStyleDef(s);
|
|
1669
|
+
break;
|
|
1670
|
+
case Te:
|
|
1671
|
+
this.setCssClass(s.id.trim(), s.styleClass);
|
|
1672
|
+
break;
|
|
1673
|
+
case "click":
|
|
1674
|
+
this.addLink(s.id, s.url, s.tooltip);
|
|
1675
|
+
break;
|
|
1676
|
+
}
|
|
1677
|
+
const e = this.getStates(), r = $();
|
|
1678
|
+
Ne(), Q(void 0, this.getRootDocV2(), e, this.nodes, this.edges, !0, r.look, this.classes);
|
|
1679
|
+
for (const s of this.nodes)
|
|
1680
|
+
if (Array.isArray(s.label)) {
|
|
1681
|
+
if (s.description = s.label.slice(1), s.isGroup && s.description.length > 0) throw new Error(`Group nodes can only have label. Remove the additional description for node [${s.id}]`);
|
|
1682
|
+
s.label = s.label[0];
|
|
1683
|
+
}
|
|
1684
|
+
}
|
|
1685
|
+
handleStyleDef(t) {
|
|
1686
|
+
const e = t.id.trim().split(","), r = t.styleClass.split(",");
|
|
1687
|
+
for (const s of e) {
|
|
1688
|
+
let h = this.getState(s);
|
|
1689
|
+
if (!h) {
|
|
1690
|
+
const c = s.trim();
|
|
1691
|
+
this.addState(c), h = this.getState(c);
|
|
1692
|
+
}
|
|
1693
|
+
h && (h.styles = r.map((c) => c.replace(/;/g, "")?.trim()));
|
|
1694
|
+
}
|
|
1695
|
+
}
|
|
1696
|
+
setRootDoc(t) {
|
|
1697
|
+
_.info("Setting root doc", t), this.rootDoc = t, this.version === 1 ? this.extract(t) : this.extract(this.getRootDocV2());
|
|
1698
|
+
}
|
|
1699
|
+
docTranslator(t, e, r) {
|
|
1700
|
+
if (e.stmt === At) {
|
|
1701
|
+
this.docTranslator(t, e.state1, !0), this.docTranslator(t, e.state2, !1);
|
|
1702
|
+
return;
|
|
1703
|
+
}
|
|
1704
|
+
if (e.stmt === X && (e.id === L.START_NODE ? (e.id = t.id + (r ? "_start" : "_end"), e.start = r) : e.id = e.id.trim()), e.stmt !== K && e.stmt !== X || !e.doc) return;
|
|
1705
|
+
const s = [];
|
|
1706
|
+
let h = [];
|
|
1707
|
+
for (const c of e.doc) if (c.type === Gt) {
|
|
1708
|
+
const y = pt(c);
|
|
1709
|
+
y.doc = pt(h), s.push(y), h = [];
|
|
1710
|
+
} else h.push(c);
|
|
1711
|
+
if (s.length > 0 && h.length > 0) {
|
|
1712
|
+
const c = {
|
|
1713
|
+
stmt: X,
|
|
1714
|
+
id: he(),
|
|
1715
|
+
type: "divider",
|
|
1716
|
+
doc: pt(h)
|
|
1717
|
+
};
|
|
1718
|
+
s.push(pt(c)), e.doc = s;
|
|
1719
|
+
}
|
|
1720
|
+
e.doc.forEach((c) => this.docTranslator(e, c, !0));
|
|
1721
|
+
}
|
|
1722
|
+
getRootDocV2() {
|
|
1723
|
+
return this.docTranslator({
|
|
1724
|
+
id: K,
|
|
1725
|
+
stmt: K
|
|
1726
|
+
}, {
|
|
1727
|
+
id: K,
|
|
1728
|
+
stmt: K,
|
|
1729
|
+
doc: this.rootDoc
|
|
1730
|
+
}, !0), {
|
|
1731
|
+
id: K,
|
|
1732
|
+
doc: this.rootDoc
|
|
1733
|
+
};
|
|
1734
|
+
}
|
|
1735
|
+
addState(t, e = Z, r = void 0, s = void 0, h = void 0, c = void 0, y = void 0, T = void 0) {
|
|
1736
|
+
const n = t?.trim();
|
|
1737
|
+
if (!this.currentDocument.states.has(n))
|
|
1738
|
+
_.info("Adding state ", n, s), this.currentDocument.states.set(n, {
|
|
1739
|
+
stmt: X,
|
|
1740
|
+
id: n,
|
|
1741
|
+
descriptions: [],
|
|
1742
|
+
type: e,
|
|
1743
|
+
doc: r,
|
|
1744
|
+
note: h,
|
|
1745
|
+
classes: [],
|
|
1746
|
+
styles: [],
|
|
1747
|
+
textStyles: []
|
|
1748
|
+
});
|
|
1749
|
+
else {
|
|
1750
|
+
const g = this.currentDocument.states.get(n);
|
|
1751
|
+
if (!g) throw new Error(`State not found: ${n}`);
|
|
1752
|
+
g.doc || (g.doc = r), g.type || (g.type = e);
|
|
1753
|
+
}
|
|
1754
|
+
if (s && (_.info("Setting state description", n, s), (Array.isArray(s) ? s : [s]).forEach((g) => this.addDescription(n, g.trim()))), h) {
|
|
1755
|
+
const g = this.currentDocument.states.get(n);
|
|
1756
|
+
if (!g) throw new Error(`State not found: ${n}`);
|
|
1757
|
+
g.note = h, g.note.text = U.sanitizeText(g.note.text, $());
|
|
1758
|
+
}
|
|
1759
|
+
c && (_.info("Setting state classes", n, c), (Array.isArray(c) ? c : [c]).forEach((g) => this.setCssClass(n, g.trim()))), y && (_.info("Setting state styles", n, y), (Array.isArray(y) ? y : [y]).forEach((g) => this.setStyle(n, g.trim()))), T && (_.info("Setting state styles", n, y), (Array.isArray(T) ? T : [T]).forEach((g) => this.setTextStyle(n, g.trim())));
|
|
1760
|
+
}
|
|
1761
|
+
clear(t) {
|
|
1762
|
+
this.nodes = [], this.edges = [], this.funs = [this.setupToolTips.bind(this)], this.documents = { root: Yt() }, this.currentDocument = this.documents.root, this.startEndCount = 0, this.classes = Bt(), t || (this.links = /* @__PURE__ */ new Map(), ae());
|
|
1763
|
+
}
|
|
1764
|
+
getState(t) {
|
|
1765
|
+
return this.currentDocument.states.get(t);
|
|
1766
|
+
}
|
|
1767
|
+
getStates() {
|
|
1768
|
+
return this.currentDocument.states;
|
|
1769
|
+
}
|
|
1770
|
+
logDocuments() {
|
|
1771
|
+
_.info("Documents = ", this.documents);
|
|
1772
|
+
}
|
|
1773
|
+
getRelations() {
|
|
1774
|
+
return this.currentDocument.relations;
|
|
1775
|
+
}
|
|
1776
|
+
addLink(t, e, r) {
|
|
1777
|
+
this.links.set(t, {
|
|
1778
|
+
url: e,
|
|
1779
|
+
tooltip: r
|
|
1780
|
+
}), _.warn("Adding link", t, e, r);
|
|
1781
|
+
}
|
|
1782
|
+
getLinks() {
|
|
1783
|
+
return this.links;
|
|
1784
|
+
}
|
|
1785
|
+
startIdIfNeeded(t = "") {
|
|
1786
|
+
return t === L.START_NODE ? (this.startEndCount++, `${L.START_TYPE}${this.startEndCount}`) : t;
|
|
1787
|
+
}
|
|
1788
|
+
startTypeIfNeeded(t = "", e = Z) {
|
|
1789
|
+
return t === L.START_NODE ? L.START_TYPE : e;
|
|
1790
|
+
}
|
|
1791
|
+
endIdIfNeeded(t = "") {
|
|
1792
|
+
return t === L.END_NODE ? (this.startEndCount++, `${L.END_TYPE}${this.startEndCount}`) : t;
|
|
1793
|
+
}
|
|
1794
|
+
endTypeIfNeeded(t = "", e = Z) {
|
|
1795
|
+
return t === L.END_NODE ? L.END_TYPE : e;
|
|
1796
|
+
}
|
|
1797
|
+
addRelationObjs(t, e, r = "") {
|
|
1798
|
+
const s = this.startIdIfNeeded(t.id.trim()), h = this.startTypeIfNeeded(t.id.trim(), t.type), c = this.startIdIfNeeded(e.id.trim()), y = this.startTypeIfNeeded(e.id.trim(), e.type);
|
|
1799
|
+
this.addState(s, h, t.doc, t.description, t.note, t.classes, t.styles, t.textStyles), this.addState(c, y, e.doc, e.description, e.note, e.classes, e.styles, e.textStyles), this.currentDocument.relations.push({
|
|
1800
|
+
id1: s,
|
|
1801
|
+
id2: c,
|
|
1802
|
+
relationTitle: U.sanitizeText(r, $())
|
|
1803
|
+
});
|
|
1804
|
+
}
|
|
1805
|
+
addRelation(t, e, r) {
|
|
1806
|
+
if (typeof t == "object" && typeof e == "object") this.addRelationObjs(t, e, r);
|
|
1807
|
+
else if (typeof t == "string" && typeof e == "string") {
|
|
1808
|
+
const s = this.startIdIfNeeded(t.trim()), h = this.startTypeIfNeeded(t), c = this.endIdIfNeeded(e.trim()), y = this.endTypeIfNeeded(e);
|
|
1809
|
+
this.addState(s, h), this.addState(c, y), this.currentDocument.relations.push({
|
|
1810
|
+
id1: s,
|
|
1811
|
+
id2: c,
|
|
1812
|
+
relationTitle: r ? U.sanitizeText(r, $()) : void 0
|
|
1813
|
+
});
|
|
1814
|
+
}
|
|
1815
|
+
}
|
|
1816
|
+
addDescription(t, e) {
|
|
1817
|
+
const r = this.currentDocument.states.get(t), s = e.startsWith(":") ? e.replace(":", "").trim() : e;
|
|
1818
|
+
r?.descriptions?.push(U.sanitizeText(s, $()));
|
|
1819
|
+
}
|
|
1820
|
+
cleanupLabel(t) {
|
|
1821
|
+
return t.startsWith(":") ? t.slice(2).trim() : t.trim();
|
|
1822
|
+
}
|
|
1823
|
+
getDividerId() {
|
|
1824
|
+
return this.dividerCnt++, `divider-id-${this.dividerCnt}`;
|
|
1825
|
+
}
|
|
1826
|
+
addStyleClass(t, e = "") {
|
|
1827
|
+
this.classes.has(t) || this.classes.set(t, {
|
|
1828
|
+
id: t,
|
|
1829
|
+
styles: [],
|
|
1830
|
+
textStyles: []
|
|
1831
|
+
});
|
|
1832
|
+
const r = this.classes.get(t);
|
|
1833
|
+
e && r && e.split(L.STYLECLASS_SEP).forEach((s) => {
|
|
1834
|
+
const h = s.replace(/([^;]*);/, "$1").trim();
|
|
1835
|
+
if (RegExp(L.COLOR_KEYWORD).exec(s)) {
|
|
1836
|
+
const c = h.replace(L.FILL_KEYWORD, L.BG_FILL).replace(L.COLOR_KEYWORD, L.FILL_KEYWORD);
|
|
1837
|
+
r.textStyles.push(c);
|
|
1838
|
+
}
|
|
1839
|
+
r.styles.push(h);
|
|
1840
|
+
});
|
|
1841
|
+
}
|
|
1842
|
+
getClasses() {
|
|
1843
|
+
return this.classes;
|
|
1844
|
+
}
|
|
1845
|
+
setupToolTips(t) {
|
|
1846
|
+
const e = ue();
|
|
1847
|
+
kt(t).select("svg").selectAll("g.node, g.rough-node").on("mouseover", (r) => {
|
|
1848
|
+
const s = kt(r.currentTarget), h = s.attr("title");
|
|
1849
|
+
if (h === null) return;
|
|
1850
|
+
const c = r.currentTarget?.getBoundingClientRect();
|
|
1851
|
+
e.transition().duration(200).style("opacity", ".9"), e.style("left", window.scrollX + c.left + (c.right - c.left) / 2 + "px").style("top", window.scrollY + c.bottom + "px"), e.html(ee.sanitize(h)), s.classed("hover", !0);
|
|
1852
|
+
}).on("mouseout", (r) => {
|
|
1853
|
+
e.transition().duration(500).style("opacity", 0), kt(r.currentTarget).classed("hover", !1);
|
|
1854
|
+
});
|
|
1855
|
+
}
|
|
1856
|
+
setCssClass(t, e) {
|
|
1857
|
+
t.split(",").forEach((r) => {
|
|
1858
|
+
let s = this.getState(r);
|
|
1859
|
+
if (!s) {
|
|
1860
|
+
const h = r.trim();
|
|
1861
|
+
this.addState(h), s = this.getState(h);
|
|
1862
|
+
}
|
|
1863
|
+
s?.classes?.push(e);
|
|
1864
|
+
});
|
|
1865
|
+
}
|
|
1866
|
+
setStyle(t, e) {
|
|
1867
|
+
this.getState(t)?.styles?.push(e);
|
|
1868
|
+
}
|
|
1869
|
+
setTextStyle(t, e) {
|
|
1870
|
+
this.getState(t)?.textStyles?.push(e);
|
|
1871
|
+
}
|
|
1872
|
+
bindFunctions(t) {
|
|
1873
|
+
this.funs.forEach((e) => {
|
|
1874
|
+
e(t);
|
|
1875
|
+
});
|
|
1876
|
+
}
|
|
1877
|
+
getDirectionStatement() {
|
|
1878
|
+
return this.rootDoc.find((t) => t.stmt === Nt);
|
|
1879
|
+
}
|
|
1880
|
+
getDirection() {
|
|
1881
|
+
return this.getDirectionStatement()?.value ?? Se;
|
|
1882
|
+
}
|
|
1883
|
+
setDirection(t) {
|
|
1884
|
+
const e = this.getDirectionStatement();
|
|
1885
|
+
e ? e.value = t : this.rootDoc.unshift({
|
|
1886
|
+
stmt: Nt,
|
|
1887
|
+
value: t
|
|
1888
|
+
});
|
|
1889
|
+
}
|
|
1890
|
+
trimColon(t) {
|
|
1891
|
+
return t.startsWith(":") ? t.slice(1).trim() : t.trim();
|
|
1892
|
+
}
|
|
1893
|
+
getData() {
|
|
1894
|
+
const t = $();
|
|
1895
|
+
return {
|
|
1896
|
+
nodes: this.nodes,
|
|
1897
|
+
edges: this.edges,
|
|
1898
|
+
other: {},
|
|
1899
|
+
config: t,
|
|
1900
|
+
direction: Xt(this.getRootDocV2())
|
|
1901
|
+
};
|
|
1902
|
+
}
|
|
1903
|
+
getConfig() {
|
|
1904
|
+
return $().state;
|
|
1905
|
+
}
|
|
1906
|
+
}, Ue = /* @__PURE__ */ u((t) => `
|
|
1907
|
+
defs [id$="-barbEnd"] {
|
|
1908
|
+
fill: ${t.transitionColor};
|
|
1909
|
+
stroke: ${t.transitionColor};
|
|
1910
|
+
}
|
|
1911
|
+
g.stateGroup text {
|
|
1912
|
+
fill: ${t.nodeBorder};
|
|
1913
|
+
stroke: none;
|
|
1914
|
+
font-size: 10px;
|
|
1915
|
+
}
|
|
1916
|
+
g.stateGroup text {
|
|
1917
|
+
fill: ${t.textColor};
|
|
1918
|
+
stroke: none;
|
|
1919
|
+
font-size: 10px;
|
|
1920
|
+
|
|
1921
|
+
}
|
|
1922
|
+
g.stateGroup .state-title {
|
|
1923
|
+
font-weight: bolder;
|
|
1924
|
+
fill: ${t.stateLabelColor};
|
|
1925
|
+
}
|
|
1926
|
+
|
|
1927
|
+
g.stateGroup rect {
|
|
1928
|
+
fill: ${t.mainBkg};
|
|
1929
|
+
stroke: ${t.nodeBorder};
|
|
1930
|
+
}
|
|
1931
|
+
|
|
1932
|
+
g.stateGroup line {
|
|
1933
|
+
stroke: ${t.lineColor};
|
|
1934
|
+
stroke-width: ${t.strokeWidth || 1};
|
|
1935
|
+
}
|
|
1936
|
+
|
|
1937
|
+
.transition {
|
|
1938
|
+
stroke: ${t.transitionColor};
|
|
1939
|
+
stroke-width: ${t.strokeWidth || 1};
|
|
1940
|
+
fill: none;
|
|
1941
|
+
}
|
|
1942
|
+
|
|
1943
|
+
.stateGroup .composit {
|
|
1944
|
+
fill: ${t.background};
|
|
1945
|
+
border-bottom: 1px
|
|
1946
|
+
}
|
|
1947
|
+
|
|
1948
|
+
.stateGroup .alt-composit {
|
|
1949
|
+
fill: #e0e0e0;
|
|
1950
|
+
border-bottom: 1px
|
|
1951
|
+
}
|
|
1952
|
+
|
|
1953
|
+
.state-note {
|
|
1954
|
+
stroke: ${t.noteBorderColor};
|
|
1955
|
+
fill: ${t.noteBkgColor};
|
|
1956
|
+
|
|
1957
|
+
text {
|
|
1958
|
+
fill: ${t.noteTextColor};
|
|
1959
|
+
stroke: none;
|
|
1960
|
+
font-size: 10px;
|
|
1961
|
+
}
|
|
1962
|
+
}
|
|
1963
|
+
|
|
1964
|
+
.stateLabel .box {
|
|
1965
|
+
stroke: none;
|
|
1966
|
+
stroke-width: 0;
|
|
1967
|
+
fill: ${t.mainBkg};
|
|
1968
|
+
opacity: 0.5;
|
|
1969
|
+
}
|
|
1970
|
+
|
|
1971
|
+
.edgeLabel .label rect {
|
|
1972
|
+
fill: ${t.labelBackgroundColor};
|
|
1973
|
+
opacity: 0.5;
|
|
1974
|
+
}
|
|
1975
|
+
.edgeLabel {
|
|
1976
|
+
background-color: ${t.edgeLabelBackground};
|
|
1977
|
+
p {
|
|
1978
|
+
background-color: ${t.edgeLabelBackground};
|
|
1979
|
+
}
|
|
1980
|
+
rect {
|
|
1981
|
+
opacity: 0.5;
|
|
1982
|
+
background-color: ${t.edgeLabelBackground};
|
|
1983
|
+
fill: ${t.edgeLabelBackground};
|
|
1984
|
+
}
|
|
1985
|
+
text-align: center;
|
|
1986
|
+
}
|
|
1987
|
+
.edgeLabel .label text {
|
|
1988
|
+
fill: ${t.transitionLabelColor || t.tertiaryTextColor};
|
|
1989
|
+
}
|
|
1990
|
+
.label div .edgeLabel {
|
|
1991
|
+
color: ${t.transitionLabelColor || t.tertiaryTextColor};
|
|
1992
|
+
}
|
|
1993
|
+
|
|
1994
|
+
.stateLabel text {
|
|
1995
|
+
fill: ${t.stateLabelColor};
|
|
1996
|
+
font-size: 10px;
|
|
1997
|
+
font-weight: bold;
|
|
1998
|
+
}
|
|
1999
|
+
|
|
2000
|
+
.node circle.state-start {
|
|
2001
|
+
fill: ${t.specialStateColor};
|
|
2002
|
+
stroke: ${t.specialStateColor};
|
|
2003
|
+
}
|
|
2004
|
+
|
|
2005
|
+
.node .fork-join {
|
|
2006
|
+
fill: ${t.specialStateColor};
|
|
2007
|
+
stroke: ${t.specialStateColor};
|
|
2008
|
+
}
|
|
2009
|
+
|
|
2010
|
+
.node circle.state-end {
|
|
2011
|
+
fill: ${t.innerEndBackground};
|
|
2012
|
+
stroke: ${t.background};
|
|
2013
|
+
stroke-width: 1.5
|
|
2014
|
+
}
|
|
2015
|
+
.end-state-inner {
|
|
2016
|
+
fill: ${t.compositeBackground || t.background};
|
|
2017
|
+
// stroke: ${t.background};
|
|
2018
|
+
stroke-width: 1.5
|
|
2019
|
+
}
|
|
2020
|
+
|
|
2021
|
+
.node rect {
|
|
2022
|
+
fill: ${t.stateBkg || t.mainBkg};
|
|
2023
|
+
stroke: ${t.stateBorder || t.nodeBorder};
|
|
2024
|
+
stroke-width: ${t.strokeWidth || 1}px;
|
|
2025
|
+
}
|
|
2026
|
+
.node polygon {
|
|
2027
|
+
fill: ${t.mainBkg};
|
|
2028
|
+
stroke: ${t.stateBorder || t.nodeBorder};;
|
|
2029
|
+
stroke-width: ${t.strokeWidth || 1}px;
|
|
2030
|
+
}
|
|
2031
|
+
[id$="-barbEnd"] {
|
|
2032
|
+
fill: ${t.lineColor};
|
|
2033
|
+
}
|
|
2034
|
+
|
|
2035
|
+
.statediagram-cluster rect {
|
|
2036
|
+
fill: ${t.compositeTitleBackground};
|
|
2037
|
+
stroke: ${t.stateBorder || t.nodeBorder};
|
|
2038
|
+
stroke-width: ${t.strokeWidth || 1}px;
|
|
2039
|
+
}
|
|
2040
|
+
|
|
2041
|
+
.cluster-label, .nodeLabel {
|
|
2042
|
+
color: ${t.stateLabelColor};
|
|
2043
|
+
// line-height: 1;
|
|
2044
|
+
}
|
|
2045
|
+
|
|
2046
|
+
.statediagram-cluster rect.outer {
|
|
2047
|
+
rx: 5px;
|
|
2048
|
+
ry: 5px;
|
|
2049
|
+
}
|
|
2050
|
+
.statediagram-state .divider {
|
|
2051
|
+
stroke: ${t.stateBorder || t.nodeBorder};
|
|
2052
|
+
}
|
|
2053
|
+
|
|
2054
|
+
.statediagram-state .title-state {
|
|
2055
|
+
rx: 5px;
|
|
2056
|
+
ry: 5px;
|
|
2057
|
+
}
|
|
2058
|
+
.statediagram-cluster.statediagram-cluster .inner {
|
|
2059
|
+
fill: ${t.compositeBackground || t.background};
|
|
2060
|
+
}
|
|
2061
|
+
.statediagram-cluster.statediagram-cluster-alt .inner {
|
|
2062
|
+
fill: ${t.altBackground ? t.altBackground : "#efefef"};
|
|
2063
|
+
}
|
|
2064
|
+
|
|
2065
|
+
.statediagram-cluster .inner {
|
|
2066
|
+
rx:0;
|
|
2067
|
+
ry:0;
|
|
2068
|
+
}
|
|
2069
|
+
|
|
2070
|
+
.statediagram-state rect.basic {
|
|
2071
|
+
rx: 5px;
|
|
2072
|
+
ry: 5px;
|
|
2073
|
+
}
|
|
2074
|
+
.statediagram-state rect.divider {
|
|
2075
|
+
stroke-dasharray: 10,10;
|
|
2076
|
+
fill: ${t.altBackground ? t.altBackground : "#efefef"};
|
|
2077
|
+
}
|
|
2078
|
+
|
|
2079
|
+
.note-edge {
|
|
2080
|
+
stroke-dasharray: 5;
|
|
2081
|
+
}
|
|
2082
|
+
|
|
2083
|
+
.statediagram-note rect {
|
|
2084
|
+
fill: ${t.noteBkgColor};
|
|
2085
|
+
stroke: ${t.noteBorderColor};
|
|
2086
|
+
stroke-width: 1px;
|
|
2087
|
+
rx: 0;
|
|
2088
|
+
ry: 0;
|
|
2089
|
+
}
|
|
2090
|
+
.statediagram-note rect {
|
|
2091
|
+
fill: ${t.noteBkgColor};
|
|
2092
|
+
stroke: ${t.noteBorderColor};
|
|
2093
|
+
stroke-width: 1px;
|
|
2094
|
+
rx: 0;
|
|
2095
|
+
ry: 0;
|
|
2096
|
+
}
|
|
2097
|
+
|
|
2098
|
+
.statediagram-note text {
|
|
2099
|
+
fill: ${t.noteTextColor};
|
|
2100
|
+
}
|
|
2101
|
+
|
|
2102
|
+
.statediagram-note .nodeLabel {
|
|
2103
|
+
color: ${t.noteTextColor};
|
|
2104
|
+
}
|
|
2105
|
+
.statediagram .edgeLabel {
|
|
2106
|
+
color: red; // ${t.noteTextColor};
|
|
2107
|
+
}
|
|
2108
|
+
|
|
2109
|
+
[id$="-dependencyStart"], [id$="-dependencyEnd"] {
|
|
2110
|
+
fill: ${t.lineColor};
|
|
2111
|
+
stroke: ${t.lineColor};
|
|
2112
|
+
stroke-width: ${t.strokeWidth || 1};
|
|
2113
|
+
}
|
|
2114
|
+
|
|
2115
|
+
.statediagramTitleText {
|
|
2116
|
+
text-anchor: middle;
|
|
2117
|
+
font-size: 18px;
|
|
2118
|
+
fill: ${t.textColor};
|
|
2119
|
+
}
|
|
2120
|
+
|
|
2121
|
+
[data-look="neo"].statediagram-cluster rect {
|
|
2122
|
+
fill: ${t.mainBkg};
|
|
2123
|
+
stroke: ${t.useGradient ? "url(" + t.svgId + "-gradient)" : t.stateBorder || t.nodeBorder};
|
|
2124
|
+
stroke-width: ${t.strokeWidth ?? 1};
|
|
2125
|
+
}
|
|
2126
|
+
[data-look="neo"].statediagram-cluster rect.outer {
|
|
2127
|
+
rx: ${t.radius}px;
|
|
2128
|
+
ry: ${t.radius}px;
|
|
2129
|
+
filter: ${t.dropShadow ? t.dropShadow.replace("url(#drop-shadow)", `url(${t.svgId}-drop-shadow)`) : "none"}
|
|
2130
|
+
}
|
|
2131
|
+
`, "getStyles");
|
|
2132
|
+
export {
|
|
2133
|
+
Ue as i,
|
|
2134
|
+
Ve as n,
|
|
2135
|
+
Me as r,
|
|
2136
|
+
We as t
|
|
2137
|
+
};
|