@kong-ui-public/documentation 0.7.82 → 0.7.84
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/_basePickBy-CMfPif8e-CmRJF0Pz.js +151 -0
- package/dist/_baseUniq-CXqhI00C-BfnSCqya.js +615 -0
- package/dist/arc-JIMrD458-iE0qPqUL.js +83 -0
- package/dist/architecture-I3QFYML2-Bgw7-fJd-BmHcSoDq.js +5 -0
- package/dist/{architectureDiagram-V6B76FHG-Pzw1d-oB-DHiQxfgq.js → architectureDiagram-AYX4OTIS-XPsSAXrN-CriQXfFm.js} +4 -4
- package/dist/{astro-Ct9uJo-c-nfJFy9of.js → astro-0iWgpDaK-DRsXAR7M.js} +8 -19
- package/dist/blockDiagram-XN6IQ5JY-IfzOVP1S-DoilgKcQ.js +2247 -0
- package/dist/{c-DKDB_XIB-DKDB_XIB.js → c-TKJGJdXV-TKJGJdXV.js} +1 -2
- package/dist/{c4Diagram-THADGKDP-DNjDxpJj-DCkatXpj.js → c4Diagram-GPMAACGM-RttNBnvg-DemUG3qf.js} +2 -2
- package/dist/{channel-DY4J7hMj-DhxgBwmi.js → channel-DEiqvYYf-DqQTZyIM.js} +1 -1
- package/dist/{chunk-OQCM5LHU-CBZLTHAO-Byg6DDHc.js → chunk-BAOP5US2-D_mPkUfX-Dlqx79Tr.js} +1 -1
- package/dist/chunk-CXDZ2C6O-B6QVQzrJ-CdVn1xaX.js +1301 -0
- package/dist/{chunk-DUMQOTYW-q2xRlZzC-WZX6gsgU.js → chunk-EICJXIV7-B3uVnKYK-BPFil4EM.js} +1 -1
- package/dist/{chunk-2JBRQKJ5-s3ZERvbz-DIvxz4Hk.js → chunk-JZAHL7AJ-B8L_7Xh_-C2ETRUtV.js} +21 -21
- package/dist/{chunk-2RYQ3QTB-CQJ_YWh0-CyGoJsYl.js → chunk-RGXPSUNZ-PjQy3A3Y-BiDEi6k5.js} +1 -1
- package/dist/{chunk-XVOYOM2C-Drq2fxR3-BZgyQieh.js → chunk-VCFP4HPQ-qZEjUbIz-7kfkUrsj.js} +1 -1
- package/dist/classDiagram-FEGYTUDG-Bu9qKgav-DF2ZcQyp.js +14 -0
- package/dist/classDiagram-v2-R65JCUOM-Bu9qKgav-DF2ZcQyp.js +14 -0
- package/dist/{clone-CSh3RmzO-BO_pW9dn.js → clone-elND5I63-U8WRvSPu.js} +1 -1
- package/dist/{csharp-hvsHIX1x-hvsHIX1x.js → csharp-DoJjzS5t-DoJjzS5t.js} +1 -2
- package/dist/{css-twoVIb3q-twoVIb3q.js → css-DHLSoXzW-DHLSoXzW.js} +1 -2
- package/dist/{csv-CyuxiNSX-CyuxiNSX.js → csv-DvCncUGQ-Tno401i9.js} +1 -2
- package/dist/dagre-SWNTG5WE-CcKMLYcK-tREOd3Fb.js +447 -0
- package/dist/{diagram-QS5GVLUX-BYCosWq0-DUyx0Lsp.js → diagram-NZMEDLQF-vjbbgzvH-BDFE_-Eo.js} +6 -6
- package/dist/{diff-BprZv9Bx-BprZv9Bx.js → diff-DKH6jKuv-DKH6jKuv.js} +1 -2
- package/dist/{docker-UByH5rch-UByH5rch.js → docker-M-OegAvW-M-OegAvW.js} +1 -2
- package/dist/documentation.es.js +1 -1
- package/dist/documentation.umd.js +401 -273
- package/dist/{erDiagram-62CBQV5Y-CCkmKSfL-DVupRLHH.js → erDiagram-WO52GFNT-N8TeMKSM-BojFH-Dn.js} +56 -56
- package/dist/flowDiagram-TSWR6T2D-DzECWIN--CnDMIIi-.js +1484 -0
- package/dist/{ganttDiagram-ASEIQ4P5-D1zrowZ9-BAnaAW4v.js → ganttDiagram-FAOCOTIY-DmxDGUpf-BGJLIQAo.js} +61 -61
- package/dist/{git-commit-BpBta0-H-D9ROUaA_.js → git-commit-giWKZ1Ct-l8XOl7Qs.js} +2 -3
- package/dist/{git-rebase-nCu0qkM8-BcHBAqRM.js → git-rebase-BeAKv_ae-YKn1ZA6h.js} +2 -3
- package/dist/gitGraph-YCYPL57B-BKlVjqGu-BRRTPERj.js +5 -0
- package/dist/{gitGraphDiagram-UL5UFKDR-Ck7pRU_R-Dy9Vc0iN.js → gitGraphDiagram-5C7YHVU6-CfJ_hQ2h-C2aLT5AH.js} +21 -21
- package/dist/{go-CVQIWj2N-CVQIWj2N.js → go-Bzd7qChY-Bzd7qChY.js} +1 -2
- package/dist/{graph-DTNue1bF-BLqDvS-5.js → graph-C5siWsaJ-djbzUgq8.js} +52 -55
- package/dist/{graphql-7X52cHqc-CLBzimQB.js → graphql-D7_Dk2ma-CKCeVmAl.js} +5 -6
- package/dist/{haml-28-Av65f-Dih0P9tR.js → haml-S3dmcfEW-DS9Qve_X.js} +5 -14
- package/dist/{handlebars-TFjvroEi-07H8_eE0.js → handlebars-DaIrqVg3-BICytU_W.js} +5 -6
- package/dist/{haskell-DJah2Vxp-DJah2Vxp.js → haskell-CmMIDOJ7-CmMIDOJ7.js} +1 -2
- package/dist/{html-B9SDyQ6N-D-ZKCIRM.js → html-Bx3A18fV-DIK1LUyO.js} +3 -4
- package/dist/{html-derivative-Dst04Arf-DrM5NWms.js → html-derivative-B8TLT7CN-DkAjK9Np.js} +2 -3
- package/dist/{http-nOIbjTbF-C51IpTrN.js → http-DiM0ILv2-7ivPChAf.js} +6 -7
- package/dist/{index-DOm338WG.js → index-BXFfc1qh.js} +17691 -15765
- package/dist/info-46DW6VJ7-QBUrqpM0-D7DXfBfh.js +5 -0
- package/dist/{infoDiagram-7APDZ6AT-BfwYrYzT-Dmsve8VX.js → infoDiagram-P5D6MX3V-CthsN8fk-ju-grajk.js} +2 -2
- package/dist/{ini-CgO4T9Us-CgO4T9Us.js → ini-BUcvsX-U-BUcvsX-U.js} +1 -2
- package/dist/{java-Bd9vXGhZ-Bd9vXGhZ.js → java-Dg4kxH6C-Dg4kxH6C.js} +1 -2
- package/dist/{javascript-CGvwHrzr-CGvwHrzr.js → javascript-CipAzIn1-CipAzIn1.js} +1 -2
- package/dist/{journeyDiagram-G5LC7W2K-CG7eqOA2-BR-Kjflm.js → journeyDiagram-UIGPPNLY-CB1xWSVF-CnOTIXjT.js} +3 -3
- package/dist/{json-B86kHl_g-B86kHl_g.js → json-_04EL6MS-_04EL6MS.js} +1 -2
- package/dist/{json5-GB6TimgH-GB6TimgH.js → json5-Dwmp5XFI-Dwmp5XFI.js} +1 -2
- package/dist/{jsonc-CP3QVoXc-CP3QVoXc.js → jsonc-LqD5auy0-LqD5auy0.js} +1 -2
- package/dist/{jsonl-C2ofTLY8-C2ofTLY8.js → jsonl-B4yVuYQH-B4yVuYQH.js} +1 -2
- package/dist/{jsx-ZpKf1TSy-ZpKf1TSy.js → jsx-Mg4WaD5k-Mg4WaD5k.js} +1 -2
- package/dist/kanban-definition-KMT3NSR2-B76JZ_Kx-BuaYPyou.js +718 -0
- package/dist/{kotlin-CAtfTEpr-CAtfTEpr.js → kotlin-B-KtFKnZ-B-KtFKnZ.js} +1 -2
- package/dist/latex-4X1wferq-jnM3V2Lk.js +11 -0
- package/dist/layout-mwnMvyc4-B2PmGvWD.js +1321 -0
- package/dist/{less-0UFuQRv0-0UFuQRv0.js → less-BBvTHIGe-BBvTHIGe.js} +1 -2
- package/dist/{linear-K1FWf0tW-rovEi7Ez.js → linear-XztDb0hj-RsuwoFLQ.js} +46 -46
- package/dist/{liquid-Uq0DwV7I-CRvdDbph.js → liquid-CY_eqGhE-8pvFZkT3.js} +6 -7
- package/dist/{lua-BEgWEgjO-DU5YUtUR.js → lua-BePGDS3E-DZBHNWZI.js} +2 -3
- package/dist/{make-BDMxblcP-BDMxblcP.js → make-zNwjDE2P-zNwjDE2P.js} +1 -2
- package/dist/{markdown-CzCkSBhS-CzCkSBhS.js → markdown-DAXqtk9a-DAXqtk9a.js} +1 -2
- package/dist/material-theme-lighter-BUBw43Yz-BUBw43Yz.js +4 -0
- package/dist/material-theme-palenight-C1RVm8K1-C1RVm8K1.js +4 -0
- package/dist/{mdc-BA3wmBe6-BAlBXF37.js → mdc-BAm7rFbW-CB-Ca4M0.js} +4 -5
- package/dist/{mdx-KaGu4TbO-KaGu4TbO.js → mdx-CSCKbb_f-CSCKbb_f.js} +1 -2
- package/dist/{mermaid-DZVJOJE0-DZVJOJE0.js → mermaid-nGb_yn9n-nGb_yn9n.js} +1 -2
- package/dist/{mermaid-parser.core-Cj_oowsS-VsEYt1Nc.js → mermaid-parser.core-C4mt_cFi-BuaZi6gx.js} +9 -9
- package/dist/{mindmap-definition-FCEC46F3-CAlFsP0h-CZf0v8Pe.js → mindmap-definition-R7LC4OIY-Cg3Nsctr-BcCPx65V.js} +1 -1
- package/dist/{nginx-zxRCFE-h-BypGKuox.js → nginx-QOAv2a_a-BWrsIdI1.js} +2 -3
- package/dist/{objective-c-D6w3apbj-D6w3apbj.js → objective-c-CEDFCaSx-CEDFCaSx.js} +1 -2
- package/dist/packet-W2GHVCYJ-BJGXYVlB-DlnQVVmK.js +5 -0
- package/dist/{pascal-DenYIYz2-DenYIYz2.js → pascal-l2bqd7Dz-l2bqd7Dz.js} +1 -2
- package/dist/{perl-D3yLJL---Dh53Z1Ch.js → perl-CB2Uc-Hf-ZBolre2-.js} +6 -7
- package/dist/{php-CotrzT_K-Bao4rTV9.js → php-B_-4RJ09-CJdubCs6.js} +7 -8
- package/dist/pie-BEWT4RHE-XO1bTOj2-DEYSeXSg.js +5 -0
- package/dist/{pieDiagram-OZX6XH5M-H8rUXph8-BISJ3i9V.js → pieDiagram-BLWKPB35-Bs5Iyn_g-CnOiPji_.js} +27 -27
- package/dist/{plsql-DH6aemMc-DH6aemMc.js → plsql-oVq_K_wH-oVq_K_wH.js} +1 -2
- package/dist/{postcss-Cf6moWPa-Cf6moWPa.js → postcss-SJfTvo_B-SJfTvo_B.js} +1 -2
- package/dist/{powershell-HbR4eE6x-HbR4eE6x.js → powershell-BEOw57rb-BEOw57rb.js} +1 -2
- package/dist/{proto-FnD6HNAf-FnD6HNAf.js → proto-BWZ41ClP-BWZ41ClP.js} +1 -2
- package/dist/{pug-BQlVJUDw-CHRWHsZp.js → pug-3q2tx0nf-DGKx19t7.js} +6 -15
- package/dist/{python-DmuMvCM0-DmuMvCM0.js → python-Dpup1-fE-Dpup1-fE.js} +1 -2
- package/dist/{quadrantDiagram-VG34DGKC-BEwF7VGA-DIV2JaGU.js → quadrantDiagram-QXWEEFXS-n8j7IqmF-CloVXY0U.js} +16 -16
- package/dist/{r-Bc6kwNk5-Bc6kwNk5.js → r-Chyv38Fv-Chyv38Fv.js} +1 -2
- package/dist/{reg-D7nGELoM-D7nGELoM.js → reg-CD53Yasp-CD53Yasp.js} +1 -2
- package/dist/{requirementDiagram-FPZB6IJI-kQtxPQXX-CmRUwQe6.js → requirementDiagram-XAUNFCZY-DI_Pyl2h-D8hqXle2.js} +20 -20
- package/dist/rst-Euaf_RMd-B96mCjUw.js +40 -0
- package/dist/{ruby-DeHccIAO-BcoQ2TvH.js → ruby-CsHI6ozR-BrDG5TRv.js} +9 -10
- package/dist/{rust-DUjrmsiV-DUjrmsiV.js → rust-C6uk_0pe-C6uk_0pe.js} +1 -2
- package/dist/{sankeyDiagram-KMMQDL5K-i1hmlnC3-C4FQplTB.js → sankeyDiagram-LVV36NHA-Bei7yBJl-DvbyWSci.js} +1 -1
- package/dist/sass-p2RMoqDT-p2RMoqDT.js +6 -0
- package/dist/{scss-CnxrcEK_-CATc0Lba.js → scss-DmlHSoOY-y80_J0a4.js} +2 -3
- package/dist/{sequenceDiagram-PQT5PN7B-CnJbbAPa-BB0ILzU7.js → sequenceDiagram-D25TJ2OB-NAPdhBbI-DQR1b0UZ.js} +21 -21
- package/dist/{shellscript-CLi_Jlup-CLi_Jlup.js → shellscript-CZpPN8_x-CZpPN8_x.js} +1 -2
- package/dist/{shellsession-BgOGDEE0-D_whUPK9.js → shellsession-B-Ndr_EN-JFzqxELg.js} +3 -4
- package/dist/{splunk-ZWH3T4YR-ZWH3T4YR.js → splunk-D2FIaQ3k-D2FIaQ3k.js} +1 -2
- package/dist/{sql-CqEjJWk_-CqEjJWk_.js → sql-DtlkUz2m-DtlkUz2m.js} +1 -2
- package/dist/{ssh-config-cxjN15Iq-cxjN15Iq.js → ssh-config-D5GRD_Np-D5GRD_Np.js} +1 -2
- package/dist/{stateDiagram-TQSDS2D4-C4igPbE8-D-CdRaHA.js → stateDiagram-GNSP7T6Y-Dzq9j0YG-BgVCaCOx.js} +14 -15
- package/dist/{stateDiagram-v2-J5TZWJW5-DAq6KSAM-O6I-IpUw.js → stateDiagram-v2-HP6YRVRG-Jl4ubGlG-BeMvcZLQ.js} +2 -3
- package/dist/{stylus-BqSAqkqK-BqSAqkqK.js → stylus-DEr8eSLm-DEr8eSLm.js} +1 -2
- package/dist/{svelte-Yn79bR_P-TdNy3USA.js → svelte-BRIJF62h-BI1AT0iL.js} +7 -22
- package/dist/{swift-Cii5mold-Cii5mold.js → swift-B9svdVyc-B9svdVyc.js} +1 -2
- package/dist/{timeline-definition-KYQAIZUX-DQEkDwlz-BcdRcAgF.js → timeline-definition-27KQCCZ3-Dyj-cUhB-cBpLcB_z.js} +91 -91
- package/dist/{toml-BrnHWKvZ-BrnHWKvZ.js → toml-C3Ja0Ta7-C3Ja0Ta7.js} +1 -2
- package/dist/{tsx-RDJgLpEg-RDJgLpEg.js → tsx-DTfbgJxi-DTfbgJxi.js} +1 -2
- package/dist/{twig-CyzrzZ6V-CLfeQShi.js → twig-DkDTNtrS-jo7aVWBG.js} +7 -8
- package/dist/{typescript-BRQxorCF-BRQxorCF.js → typescript-CCd4aQHh-CCd4aQHh.js} +1 -2
- package/dist/{v-CBsEUX4x-CBsEUX4x.js → v-DectkoIj-DectkoIj.js} +1 -2
- package/dist/{vb-BCQhaxZY-BCQhaxZY.js → vb-3pua_tRu-3pua_tRu.js} +1 -2
- package/dist/{viml-DUDcfQ_j-DUDcfQ_j.js → viml-CJHUchaf-CJHUchaf.js} +1 -2
- package/dist/vue-CY-KyffX-BnjPeHxm.js +31 -0
- package/dist/{vue-html-DkB4x9kz-BBbMk49e.js → vue-html-C0fH2sQy-Da7Je-I4.js} +3 -4
- package/dist/{wasm-KuMlursr-KuMlursr.js → wasm-VDIDph3E-VDIDph3E.js} +1 -2
- package/dist/{wgsl-CXztftdQ-CXztftdQ.js → wgsl-2np_U3Z8-2np_U3Z8.js} +1 -2
- package/dist/{xml-D46nbCSr-BYMRGyuH.js → xml-CNyphW9R-DycLHq-n.js} +2 -3
- package/dist/{xsl--U1R63rG-D8P_gDHK.js → xsl-C2K1QB6X-B3b1KJxQ.js} +2 -3
- package/dist/{xychartDiagram-LESROZAQ-tgQhgg2Q-CUZY_ot8.js → xychartDiagram-MYLB5AYS-Bc_nZcHL-YLCG5NJT.js} +2 -2
- package/dist/{yaml-BEQ1JqWb-BEQ1JqWb.js → yaml-DxFiVFcM-DxFiVFcM.js} +1 -2
- package/package.json +6 -6
- package/dist/_basePickBy-CU0TiV13-B2lcN6Xi.js +0 -143
- package/dist/_baseUniq-BAMfE4xp-BAs-gBgZ.js +0 -622
- package/dist/arc-Cof8I1nv-BEpAvsYw.js +0 -83
- package/dist/architecture-I3QFYML2-CRA_auFu-BOYIKY2S.js +0 -5
- package/dist/blockDiagram-EN3ZKWFM-CYnZx-IR-Bl0aimgG.js +0 -1232
- package/dist/chunk-BAVOGKFW-B_i9W0mu-aXYqnut5.js +0 -1092
- package/dist/chunk-UGV5ZQQN-lwe0VAyX-BkOr8rah.js +0 -254
- package/dist/chunk-YWFND7JV-r0DobNSv-Qk_ESE3G.js +0 -786
- package/dist/classDiagram-4BHYIK4I-qYBSssh--DFvW-YgH.js +0 -214
- package/dist/classDiagram-v2-FI7KE7WJ-BIgDAZfE-NPVjR0Sp.js +0 -545
- package/dist/coffee-CiEmwUV9-D5Oe8742.js +0 -9
- package/dist/cpp-BphENtVr-DqhLnmUg.js +0 -29
- package/dist/dagre-P3YPLUS5-Bfaw7Bo9-DPdf44wL.js +0 -421
- package/dist/flowDiagram-JSIZSE4D-CEhJC-5_-DHjVPCad.js +0 -1380
- package/dist/gitGraph-YCYPL57B-DfH87xvl-DsibXYdp.js +0 -5
- package/dist/info-46DW6VJ7-DuNWYdzn-PVj3kKJm.js +0 -5
- package/dist/json-aDA71_xz-DxdQPLBu.js +0 -31
- package/dist/latex-14aRsJKm-mj9Fild6.js +0 -62
- package/dist/layout-BrqICqM--CUdWjnyz.js +0 -1381
- package/dist/material-theme-lighter-CnKSyNS5-CnKSyNS5.js +0 -4
- package/dist/material-theme-palenight-BaYUoLXq-BaYUoLXq.js +0 -4
- package/dist/packet-W2GHVCYJ-DL_sFpED-q6WAtxyK.js +0 -5
- package/dist/pie-BEWT4RHE-DM_nCoZ3-D0wjXv38.js +0 -5
- package/dist/rst-CaIq10fc-5Y1LeNh2.js +0 -26
- package/dist/sass-CLufkToV-CLufkToV.js +0 -7
- package/dist/vue-DNFIPpe6-BpXPyld-.js +0 -68
|
@@ -1,1232 +0,0 @@
|
|
|
1
|
-
import { n as ze, e as Te, s as Re, a as Ae } from "./chunk-UGV5ZQQN-lwe0VAyX-BkOr8rah.js";
|
|
2
|
-
import { O as xe, U as Be } from "./chunk-YWFND7JV-r0DobNSv-Qk_ESE3G.js";
|
|
3
|
-
import { _ as h, g as Se, l as L, bm as Pe, aE as ne, af as H, ag as Ke, ao as Fe, as as Me, ab as Ye } from "./index-DOm338WG.js";
|
|
4
|
-
import { a as We } from "./clone-CSh3RmzO-BO_pW9dn.js";
|
|
5
|
-
import { D as Xe } from "./graph-DTNue1bF-BLqDvS-5.js";
|
|
6
|
-
import { t as Ue } from "./channel-DY4J7hMj-DhxgBwmi.js";
|
|
7
|
-
var ie = function() {
|
|
8
|
-
var e = /* @__PURE__ */ h(function(_, i, n, o) {
|
|
9
|
-
for (n = n || {}, o = _.length; o--; n[_[o]] = i) ;
|
|
10
|
-
return n;
|
|
11
|
-
}, "o"), a = [1, 7], u = [1, 13], c = [1, 14], r = [1, 15], d = [1, 19], l = [1, 16], b = [1, 17], x = [1, 18], p = [8, 30], S = [8, 21, 28, 29, 30, 31, 32, 40, 44, 47], k = [1, 23], O = [1, 24], E = [8, 15, 16, 21, 28, 29, 30, 31, 32, 40, 44, 47], N = [8, 15, 16, 21, 27, 28, 29, 30, 31, 32, 40, 44, 47], f = [1, 49], w = {
|
|
12
|
-
trace: /* @__PURE__ */ h(function() {
|
|
13
|
-
}, "trace"),
|
|
14
|
-
yy: {},
|
|
15
|
-
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, block: 31, NODE_ID: 32, nodeShapeNLabel: 33, dirList: 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: 49, $accept: 0, $end: 1 },
|
|
16
|
-
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: "block", 32: "NODE_ID", 35: "DIR", 36: "NODE_DSTART", 37: "NODE_DEND", 38: "BLOCK_ARROW_START", 39: "BLOCK_ARROW_END", 40: "classDef", 41: "CLASSDEF_ID", 42: "CLASSDEF_STYLEOPTS", 43: "DEFAULT", 44: "class", 45: "CLASSENTITY_IDS", 46: "STYLECLASS", 47: "style", 48: "STYLE_ENTITY_IDS", 49: "STYLE_DEFINITION_DATA" },
|
|
17
|
-
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], [34, 1], [34, 2], [33, 3], [33, 4], [23, 3], [23, 3], [24, 3], [25, 3]],
|
|
18
|
-
performAction: /* @__PURE__ */ h(function(_, i, n, o, y, t, g) {
|
|
19
|
-
var s = t.length - 1;
|
|
20
|
-
switch (y) {
|
|
21
|
-
case 4:
|
|
22
|
-
o.getLogger().debug("Rule: separator (NL) ");
|
|
23
|
-
break;
|
|
24
|
-
case 5:
|
|
25
|
-
o.getLogger().debug("Rule: separator (Space) ");
|
|
26
|
-
break;
|
|
27
|
-
case 6:
|
|
28
|
-
o.getLogger().debug("Rule: separator (EOF) ");
|
|
29
|
-
break;
|
|
30
|
-
case 7:
|
|
31
|
-
o.getLogger().debug("Rule: hierarchy: ", t[s - 1]), o.setHierarchy(t[s - 1]);
|
|
32
|
-
break;
|
|
33
|
-
case 8:
|
|
34
|
-
o.getLogger().debug("Stop NL ");
|
|
35
|
-
break;
|
|
36
|
-
case 9:
|
|
37
|
-
o.getLogger().debug("Stop EOF ");
|
|
38
|
-
break;
|
|
39
|
-
case 10:
|
|
40
|
-
o.getLogger().debug("Stop NL2 ");
|
|
41
|
-
break;
|
|
42
|
-
case 11:
|
|
43
|
-
o.getLogger().debug("Stop EOF2 ");
|
|
44
|
-
break;
|
|
45
|
-
case 12:
|
|
46
|
-
o.getLogger().debug("Rule: statement: ", t[s]), typeof t[s].length == "number" ? this.$ = t[s] : this.$ = [t[s]];
|
|
47
|
-
break;
|
|
48
|
-
case 13:
|
|
49
|
-
o.getLogger().debug("Rule: statement #2: ", t[s - 1]), this.$ = [t[s - 1]].concat(t[s]);
|
|
50
|
-
break;
|
|
51
|
-
case 14:
|
|
52
|
-
o.getLogger().debug("Rule: link: ", t[s], _), this.$ = { edgeTypeStr: t[s], label: "" };
|
|
53
|
-
break;
|
|
54
|
-
case 15:
|
|
55
|
-
o.getLogger().debug("Rule: LABEL link: ", t[s - 3], t[s - 1], t[s]), this.$ = { edgeTypeStr: t[s], label: t[s - 1] };
|
|
56
|
-
break;
|
|
57
|
-
case 18:
|
|
58
|
-
const C = parseInt(t[s]), P = o.generateId();
|
|
59
|
-
this.$ = { id: P, type: "space", label: "", width: C, children: [] };
|
|
60
|
-
break;
|
|
61
|
-
case 23:
|
|
62
|
-
o.getLogger().debug("Rule: (nodeStatement link node) ", t[s - 2], t[s - 1], t[s], " typestr: ", t[s - 1].edgeTypeStr);
|
|
63
|
-
const W = o.edgeStrToEdgeData(t[s - 1].edgeTypeStr);
|
|
64
|
-
this.$ = [
|
|
65
|
-
{ id: t[s - 2].id, label: t[s - 2].label, type: t[s - 2].type, directions: t[s - 2].directions },
|
|
66
|
-
{ id: t[s - 2].id + "-" + t[s].id, start: t[s - 2].id, end: t[s].id, label: t[s - 1].label, type: "edge", directions: t[s].directions, arrowTypeEnd: W, arrowTypeStart: "arrow_open" },
|
|
67
|
-
{ id: t[s].id, label: t[s].label, type: o.typeStr2Type(t[s].typeStr), directions: t[s].directions }
|
|
68
|
-
];
|
|
69
|
-
break;
|
|
70
|
-
case 24:
|
|
71
|
-
o.getLogger().debug("Rule: nodeStatement (abc88 node size) ", t[s - 1], t[s]), this.$ = { id: t[s - 1].id, label: t[s - 1].label, type: o.typeStr2Type(t[s - 1].typeStr), directions: t[s - 1].directions, widthInColumns: parseInt(t[s], 10) };
|
|
72
|
-
break;
|
|
73
|
-
case 25:
|
|
74
|
-
o.getLogger().debug("Rule: nodeStatement (node) ", t[s]), this.$ = { id: t[s].id, label: t[s].label, type: o.typeStr2Type(t[s].typeStr), directions: t[s].directions, widthInColumns: 1 };
|
|
75
|
-
break;
|
|
76
|
-
case 26:
|
|
77
|
-
o.getLogger().debug("APA123", this ? this : "na"), o.getLogger().debug("COLUMNS: ", t[s]), this.$ = { type: "column-setting", columns: t[s] === "auto" ? -1 : parseInt(t[s]) };
|
|
78
|
-
break;
|
|
79
|
-
case 27:
|
|
80
|
-
o.getLogger().debug("Rule: id-block statement : ", t[s - 2], t[s - 1]), o.generateId(), this.$ = { ...t[s - 2], type: "composite", children: t[s - 1] };
|
|
81
|
-
break;
|
|
82
|
-
case 28:
|
|
83
|
-
o.getLogger().debug("Rule: blockStatement : ", t[s - 2], t[s - 1], t[s]);
|
|
84
|
-
const A = o.generateId();
|
|
85
|
-
this.$ = { id: A, type: "composite", label: "", children: t[s - 1] };
|
|
86
|
-
break;
|
|
87
|
-
case 29:
|
|
88
|
-
o.getLogger().debug("Rule: node (NODE_ID separator): ", t[s]), this.$ = { id: t[s] };
|
|
89
|
-
break;
|
|
90
|
-
case 30:
|
|
91
|
-
o.getLogger().debug("Rule: node (NODE_ID nodeShapeNLabel separator): ", t[s - 1], t[s]), this.$ = { id: t[s - 1], label: t[s].label, typeStr: t[s].typeStr, directions: t[s].directions };
|
|
92
|
-
break;
|
|
93
|
-
case 31:
|
|
94
|
-
o.getLogger().debug("Rule: dirList: ", t[s]), this.$ = [t[s]];
|
|
95
|
-
break;
|
|
96
|
-
case 32:
|
|
97
|
-
o.getLogger().debug("Rule: dirList: ", t[s - 1], t[s]), this.$ = [t[s - 1]].concat(t[s]);
|
|
98
|
-
break;
|
|
99
|
-
case 33:
|
|
100
|
-
o.getLogger().debug("Rule: nodeShapeNLabel: ", t[s - 2], t[s - 1], t[s]), this.$ = { typeStr: t[s - 2] + t[s], label: t[s - 1] };
|
|
101
|
-
break;
|
|
102
|
-
case 34:
|
|
103
|
-
o.getLogger().debug("Rule: BLOCK_ARROW nodeShapeNLabel: ", t[s - 3], t[s - 2], " #3:", t[s - 1], t[s]), this.$ = { typeStr: t[s - 3] + t[s], label: t[s - 2], directions: t[s - 1] };
|
|
104
|
-
break;
|
|
105
|
-
case 35:
|
|
106
|
-
case 36:
|
|
107
|
-
this.$ = { type: "classDef", id: t[s - 1].trim(), css: t[s].trim() };
|
|
108
|
-
break;
|
|
109
|
-
case 37:
|
|
110
|
-
this.$ = { type: "applyClass", id: t[s - 1].trim(), styleClass: t[s].trim() };
|
|
111
|
-
break;
|
|
112
|
-
case 38:
|
|
113
|
-
this.$ = { type: "applyStyles", id: t[s - 1].trim(), stylesStr: t[s].trim() };
|
|
114
|
-
break;
|
|
115
|
-
}
|
|
116
|
-
}, "anonymous"),
|
|
117
|
-
table: [{ 9: 1, 10: [1, 2] }, { 1: [3] }, { 11: 3, 13: 4, 19: 5, 20: 6, 21: a, 22: 8, 23: 9, 24: 10, 25: 11, 26: 12, 28: u, 29: c, 31: r, 32: d, 40: l, 44: b, 47: x }, { 8: [1, 20] }, e(p, [2, 12], { 13: 4, 19: 5, 20: 6, 22: 8, 23: 9, 24: 10, 25: 11, 26: 12, 11: 21, 21: a, 28: u, 29: c, 31: r, 32: d, 40: l, 44: b, 47: x }), e(S, [2, 16], { 14: 22, 15: k, 16: O }), e(S, [2, 17]), e(S, [2, 18]), e(S, [2, 19]), e(S, [2, 20]), e(S, [2, 21]), e(S, [2, 22]), e(E, [2, 25], { 27: [1, 25] }), e(S, [2, 26]), { 19: 26, 26: 12, 32: d }, { 11: 27, 13: 4, 19: 5, 20: 6, 21: a, 22: 8, 23: 9, 24: 10, 25: 11, 26: 12, 28: u, 29: c, 31: r, 32: d, 40: l, 44: b, 47: x }, { 41: [1, 28], 43: [1, 29] }, { 45: [1, 30] }, { 48: [1, 31] }, e(N, [2, 29], { 33: 32, 36: [1, 33], 38: [1, 34] }), { 1: [2, 7] }, e(p, [2, 13]), { 26: 35, 32: d }, { 32: [2, 14] }, { 17: [1, 36] }, e(E, [2, 24]), { 11: 37, 13: 4, 14: 22, 15: k, 16: O, 19: 5, 20: 6, 21: a, 22: 8, 23: 9, 24: 10, 25: 11, 26: 12, 28: u, 29: c, 31: r, 32: d, 40: l, 44: b, 47: x }, { 30: [1, 38] }, { 42: [1, 39] }, { 42: [1, 40] }, { 46: [1, 41] }, { 49: [1, 42] }, e(N, [2, 30]), { 18: [1, 43] }, { 18: [1, 44] }, e(E, [2, 23]), { 18: [1, 45] }, { 30: [1, 46] }, e(S, [2, 28]), e(S, [2, 35]), e(S, [2, 36]), e(S, [2, 37]), e(S, [2, 38]), { 37: [1, 47] }, { 34: 48, 35: f }, { 15: [1, 50] }, e(S, [2, 27]), e(N, [2, 33]), { 39: [1, 51] }, { 34: 52, 35: f, 39: [2, 31] }, { 32: [2, 15] }, e(N, [2, 34]), { 39: [2, 32] }],
|
|
118
|
-
defaultActions: { 20: [2, 7], 23: [2, 14], 50: [2, 15], 52: [2, 32] },
|
|
119
|
-
parseError: /* @__PURE__ */ h(function(_, i) {
|
|
120
|
-
if (i.recoverable)
|
|
121
|
-
this.trace(_);
|
|
122
|
-
else {
|
|
123
|
-
var n = new Error(_);
|
|
124
|
-
throw n.hash = i, n;
|
|
125
|
-
}
|
|
126
|
-
}, "parseError"),
|
|
127
|
-
parse: /* @__PURE__ */ h(function(_) {
|
|
128
|
-
var i = this, n = [0], o = [], y = [null], t = [], g = this.table, s = "", C = 0, P = 0, W = 2, A = 1, K = t.slice.call(arguments, 1), D = Object.create(this.lexer), F = { yy: {} };
|
|
129
|
-
for (var Q in this.yy)
|
|
130
|
-
Object.prototype.hasOwnProperty.call(this.yy, Q) && (F.yy[Q] = this.yy[Q]);
|
|
131
|
-
D.setInput(_, F.yy), F.yy.lexer = D, F.yy.parser = this, typeof D.yylloc > "u" && (D.yylloc = {});
|
|
132
|
-
var V = D.yylloc;
|
|
133
|
-
t.push(V);
|
|
134
|
-
var Oe = D.options && D.options.ranges;
|
|
135
|
-
typeof F.yy.parseError == "function" ? this.parseError = F.yy.parseError : this.parseError = Object.getPrototypeOf(this).parseError;
|
|
136
|
-
function Ce(I) {
|
|
137
|
-
n.length = n.length - 2 * I, y.length = y.length - I, t.length = t.length - I;
|
|
138
|
-
}
|
|
139
|
-
h(Ce, "popStack");
|
|
140
|
-
function ue() {
|
|
141
|
-
var I;
|
|
142
|
-
return I = o.pop() || D.lex() || A, typeof I != "number" && (I instanceof Array && (o = I, I = o.pop()), I = i.symbols_[I] || I), I;
|
|
143
|
-
}
|
|
144
|
-
h(ue, "lex");
|
|
145
|
-
for (var $, M, z, ee, Y = {}, U, B, he, j; ; ) {
|
|
146
|
-
if (M = n[n.length - 1], this.defaultActions[M] ? z = this.defaultActions[M] : (($ === null || typeof $ > "u") && ($ = ue()), z = g[M] && g[M][$]), typeof z > "u" || !z.length || !z[0]) {
|
|
147
|
-
var te = "";
|
|
148
|
-
j = [];
|
|
149
|
-
for (U in g[M])
|
|
150
|
-
this.terminals_[U] && U > W && j.push("'" + this.terminals_[U] + "'");
|
|
151
|
-
D.showPosition ? te = "Parse error on line " + (C + 1) + `:
|
|
152
|
-
` + D.showPosition() + `
|
|
153
|
-
Expecting ` + j.join(", ") + ", got '" + (this.terminals_[$] || $) + "'" : te = "Parse error on line " + (C + 1) + ": Unexpected " + ($ == A ? "end of input" : "'" + (this.terminals_[$] || $) + "'"), this.parseError(te, {
|
|
154
|
-
text: D.match,
|
|
155
|
-
token: this.terminals_[$] || $,
|
|
156
|
-
line: D.yylineno,
|
|
157
|
-
loc: V,
|
|
158
|
-
expected: j
|
|
159
|
-
});
|
|
160
|
-
}
|
|
161
|
-
if (z[0] instanceof Array && z.length > 1)
|
|
162
|
-
throw new Error("Parse Error: multiple actions possible at state: " + M + ", token: " + $);
|
|
163
|
-
switch (z[0]) {
|
|
164
|
-
case 1:
|
|
165
|
-
n.push($), y.push(D.yytext), t.push(D.yylloc), n.push(z[1]), $ = null, P = D.yyleng, s = D.yytext, C = D.yylineno, V = D.yylloc;
|
|
166
|
-
break;
|
|
167
|
-
case 2:
|
|
168
|
-
if (B = this.productions_[z[1]][1], Y.$ = y[y.length - B], Y._$ = {
|
|
169
|
-
first_line: t[t.length - (B || 1)].first_line,
|
|
170
|
-
last_line: t[t.length - 1].last_line,
|
|
171
|
-
first_column: t[t.length - (B || 1)].first_column,
|
|
172
|
-
last_column: t[t.length - 1].last_column
|
|
173
|
-
}, Oe && (Y._$.range = [
|
|
174
|
-
t[t.length - (B || 1)].range[0],
|
|
175
|
-
t[t.length - 1].range[1]
|
|
176
|
-
]), ee = this.performAction.apply(Y, [
|
|
177
|
-
s,
|
|
178
|
-
P,
|
|
179
|
-
C,
|
|
180
|
-
F.yy,
|
|
181
|
-
z[1],
|
|
182
|
-
y,
|
|
183
|
-
t
|
|
184
|
-
].concat(K)), typeof ee < "u")
|
|
185
|
-
return ee;
|
|
186
|
-
B && (n = n.slice(0, -1 * B * 2), y = y.slice(0, -1 * B), t = t.slice(0, -1 * B)), n.push(this.productions_[z[1]][0]), y.push(Y.$), t.push(Y._$), he = g[n[n.length - 2]][n[n.length - 1]], n.push(he);
|
|
187
|
-
break;
|
|
188
|
-
case 3:
|
|
189
|
-
return !0;
|
|
190
|
-
}
|
|
191
|
-
}
|
|
192
|
-
return !0;
|
|
193
|
-
}, "parse")
|
|
194
|
-
}, R = /* @__PURE__ */ function() {
|
|
195
|
-
var _ = {
|
|
196
|
-
EOF: 1,
|
|
197
|
-
parseError: /* @__PURE__ */ h(function(i, n) {
|
|
198
|
-
if (this.yy.parser)
|
|
199
|
-
this.yy.parser.parseError(i, n);
|
|
200
|
-
else
|
|
201
|
-
throw new Error(i);
|
|
202
|
-
}, "parseError"),
|
|
203
|
-
// resets the lexer, sets new input
|
|
204
|
-
setInput: /* @__PURE__ */ h(function(i, n) {
|
|
205
|
-
return this.yy = n || this.yy || {}, this._input = i, this._more = this._backtrack = this.done = !1, this.yylineno = this.yyleng = 0, this.yytext = this.matched = this.match = "", this.conditionStack = ["INITIAL"], this.yylloc = {
|
|
206
|
-
first_line: 1,
|
|
207
|
-
first_column: 0,
|
|
208
|
-
last_line: 1,
|
|
209
|
-
last_column: 0
|
|
210
|
-
}, this.options.ranges && (this.yylloc.range = [0, 0]), this.offset = 0, this;
|
|
211
|
-
}, "setInput"),
|
|
212
|
-
// consumes and returns one char from the input
|
|
213
|
-
input: /* @__PURE__ */ h(function() {
|
|
214
|
-
var i = this._input[0];
|
|
215
|
-
this.yytext += i, this.yyleng++, this.offset++, this.match += i, this.matched += i;
|
|
216
|
-
var n = i.match(/(?:\r\n?|\n).*/g);
|
|
217
|
-
return n ? (this.yylineno++, this.yylloc.last_line++) : this.yylloc.last_column++, this.options.ranges && this.yylloc.range[1]++, this._input = this._input.slice(1), i;
|
|
218
|
-
}, "input"),
|
|
219
|
-
// unshifts one char (or a string) into the input
|
|
220
|
-
unput: /* @__PURE__ */ h(function(i) {
|
|
221
|
-
var n = i.length, o = i.split(/(?:\r\n?|\n)/g);
|
|
222
|
-
this._input = i + this._input, this.yytext = this.yytext.substr(0, this.yytext.length - n), this.offset -= n;
|
|
223
|
-
var y = this.match.split(/(?:\r\n?|\n)/g);
|
|
224
|
-
this.match = this.match.substr(0, this.match.length - 1), this.matched = this.matched.substr(0, this.matched.length - 1), o.length - 1 && (this.yylineno -= o.length - 1);
|
|
225
|
-
var t = this.yylloc.range;
|
|
226
|
-
return this.yylloc = {
|
|
227
|
-
first_line: this.yylloc.first_line,
|
|
228
|
-
last_line: this.yylineno + 1,
|
|
229
|
-
first_column: this.yylloc.first_column,
|
|
230
|
-
last_column: o ? (o.length === y.length ? this.yylloc.first_column : 0) + y[y.length - o.length].length - o[0].length : this.yylloc.first_column - n
|
|
231
|
-
}, this.options.ranges && (this.yylloc.range = [t[0], t[0] + this.yyleng - n]), this.yyleng = this.yytext.length, this;
|
|
232
|
-
}, "unput"),
|
|
233
|
-
// When called from action, caches matched text and appends it on next action
|
|
234
|
-
more: /* @__PURE__ */ h(function() {
|
|
235
|
-
return this._more = !0, this;
|
|
236
|
-
}, "more"),
|
|
237
|
-
// When called from action, signals the lexer that this rule fails to match the input, so the next matching rule (regex) should be tested instead.
|
|
238
|
-
reject: /* @__PURE__ */ h(function() {
|
|
239
|
-
if (this.options.backtrack_lexer)
|
|
240
|
-
this._backtrack = !0;
|
|
241
|
-
else
|
|
242
|
-
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).
|
|
243
|
-
` + this.showPosition(), {
|
|
244
|
-
text: "",
|
|
245
|
-
token: null,
|
|
246
|
-
line: this.yylineno
|
|
247
|
-
});
|
|
248
|
-
return this;
|
|
249
|
-
}, "reject"),
|
|
250
|
-
// retain first n characters of the match
|
|
251
|
-
less: /* @__PURE__ */ h(function(i) {
|
|
252
|
-
this.unput(this.match.slice(i));
|
|
253
|
-
}, "less"),
|
|
254
|
-
// displays already matched input, i.e. for error messages
|
|
255
|
-
pastInput: /* @__PURE__ */ h(function() {
|
|
256
|
-
var i = this.matched.substr(0, this.matched.length - this.match.length);
|
|
257
|
-
return (i.length > 20 ? "..." : "") + i.substr(-20).replace(/\n/g, "");
|
|
258
|
-
}, "pastInput"),
|
|
259
|
-
// displays upcoming input, i.e. for error messages
|
|
260
|
-
upcomingInput: /* @__PURE__ */ h(function() {
|
|
261
|
-
var i = this.match;
|
|
262
|
-
return i.length < 20 && (i += this._input.substr(0, 20 - i.length)), (i.substr(0, 20) + (i.length > 20 ? "..." : "")).replace(/\n/g, "");
|
|
263
|
-
}, "upcomingInput"),
|
|
264
|
-
// displays the character position where the lexing error occurred, i.e. for error messages
|
|
265
|
-
showPosition: /* @__PURE__ */ h(function() {
|
|
266
|
-
var i = this.pastInput(), n = new Array(i.length + 1).join("-");
|
|
267
|
-
return i + this.upcomingInput() + `
|
|
268
|
-
` + n + "^";
|
|
269
|
-
}, "showPosition"),
|
|
270
|
-
// test the lexed token: return FALSE when not a match, otherwise return token
|
|
271
|
-
test_match: /* @__PURE__ */ h(function(i, n) {
|
|
272
|
-
var o, y, t;
|
|
273
|
-
if (this.options.backtrack_lexer && (t = {
|
|
274
|
-
yylineno: this.yylineno,
|
|
275
|
-
yylloc: {
|
|
276
|
-
first_line: this.yylloc.first_line,
|
|
277
|
-
last_line: this.last_line,
|
|
278
|
-
first_column: this.yylloc.first_column,
|
|
279
|
-
last_column: this.yylloc.last_column
|
|
280
|
-
},
|
|
281
|
-
yytext: this.yytext,
|
|
282
|
-
match: this.match,
|
|
283
|
-
matches: this.matches,
|
|
284
|
-
matched: this.matched,
|
|
285
|
-
yyleng: this.yyleng,
|
|
286
|
-
offset: this.offset,
|
|
287
|
-
_more: this._more,
|
|
288
|
-
_input: this._input,
|
|
289
|
-
yy: this.yy,
|
|
290
|
-
conditionStack: this.conditionStack.slice(0),
|
|
291
|
-
done: this.done
|
|
292
|
-
}, this.options.ranges && (t.yylloc.range = this.yylloc.range.slice(0))), y = i[0].match(/(?:\r\n?|\n).*/g), y && (this.yylineno += y.length), this.yylloc = {
|
|
293
|
-
first_line: this.yylloc.last_line,
|
|
294
|
-
last_line: this.yylineno + 1,
|
|
295
|
-
first_column: this.yylloc.last_column,
|
|
296
|
-
last_column: y ? y[y.length - 1].length - y[y.length - 1].match(/\r?\n?/)[0].length : this.yylloc.last_column + i[0].length
|
|
297
|
-
}, this.yytext += i[0], this.match += i[0], this.matches = i, 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(i[0].length), this.matched += i[0], o = this.performAction.call(this, this.yy, this, n, this.conditionStack[this.conditionStack.length - 1]), this.done && this._input && (this.done = !1), o)
|
|
298
|
-
return o;
|
|
299
|
-
if (this._backtrack) {
|
|
300
|
-
for (var g in t)
|
|
301
|
-
this[g] = t[g];
|
|
302
|
-
return !1;
|
|
303
|
-
}
|
|
304
|
-
return !1;
|
|
305
|
-
}, "test_match"),
|
|
306
|
-
// return next match in input
|
|
307
|
-
next: /* @__PURE__ */ h(function() {
|
|
308
|
-
if (this.done)
|
|
309
|
-
return this.EOF;
|
|
310
|
-
this._input || (this.done = !0);
|
|
311
|
-
var i, n, o, y;
|
|
312
|
-
this._more || (this.yytext = "", this.match = "");
|
|
313
|
-
for (var t = this._currentRules(), g = 0; g < t.length; g++)
|
|
314
|
-
if (o = this._input.match(this.rules[t[g]]), o && (!n || o[0].length > n[0].length)) {
|
|
315
|
-
if (n = o, y = g, this.options.backtrack_lexer) {
|
|
316
|
-
if (i = this.test_match(o, t[g]), i !== !1)
|
|
317
|
-
return i;
|
|
318
|
-
if (this._backtrack) {
|
|
319
|
-
n = !1;
|
|
320
|
-
continue;
|
|
321
|
-
} else
|
|
322
|
-
return !1;
|
|
323
|
-
} else if (!this.options.flex)
|
|
324
|
-
break;
|
|
325
|
-
}
|
|
326
|
-
return n ? (i = this.test_match(n, t[y]), i !== !1 ? i : !1) : this._input === "" ? this.EOF : this.parseError("Lexical error on line " + (this.yylineno + 1) + `. Unrecognized text.
|
|
327
|
-
` + this.showPosition(), {
|
|
328
|
-
text: "",
|
|
329
|
-
token: null,
|
|
330
|
-
line: this.yylineno
|
|
331
|
-
});
|
|
332
|
-
}, "next"),
|
|
333
|
-
// return next match that has a token
|
|
334
|
-
lex: /* @__PURE__ */ h(function() {
|
|
335
|
-
var i = this.next();
|
|
336
|
-
return i || this.lex();
|
|
337
|
-
}, "lex"),
|
|
338
|
-
// activates a new lexer condition state (pushes the new lexer condition state onto the condition stack)
|
|
339
|
-
begin: /* @__PURE__ */ h(function(i) {
|
|
340
|
-
this.conditionStack.push(i);
|
|
341
|
-
}, "begin"),
|
|
342
|
-
// pop the previously active lexer condition state off the condition stack
|
|
343
|
-
popState: /* @__PURE__ */ h(function() {
|
|
344
|
-
var i = this.conditionStack.length - 1;
|
|
345
|
-
return i > 0 ? this.conditionStack.pop() : this.conditionStack[0];
|
|
346
|
-
}, "popState"),
|
|
347
|
-
// produce the lexer rule set which is active for the currently active lexer condition state
|
|
348
|
-
_currentRules: /* @__PURE__ */ h(function() {
|
|
349
|
-
return this.conditionStack.length && this.conditionStack[this.conditionStack.length - 1] ? this.conditions[this.conditionStack[this.conditionStack.length - 1]].rules : this.conditions.INITIAL.rules;
|
|
350
|
-
}, "_currentRules"),
|
|
351
|
-
// return the currently active lexer condition state; when an index argument is provided it produces the N-th previous condition state, if available
|
|
352
|
-
topState: /* @__PURE__ */ h(function(i) {
|
|
353
|
-
return i = this.conditionStack.length - 1 - Math.abs(i || 0), i >= 0 ? this.conditionStack[i] : "INITIAL";
|
|
354
|
-
}, "topState"),
|
|
355
|
-
// alias for begin(condition)
|
|
356
|
-
pushState: /* @__PURE__ */ h(function(i) {
|
|
357
|
-
this.begin(i);
|
|
358
|
-
}, "pushState"),
|
|
359
|
-
// return the number of states currently on the stack
|
|
360
|
-
stateStackSize: /* @__PURE__ */ h(function() {
|
|
361
|
-
return this.conditionStack.length;
|
|
362
|
-
}, "stateStackSize"),
|
|
363
|
-
options: {},
|
|
364
|
-
performAction: /* @__PURE__ */ h(function(i, n, o, y) {
|
|
365
|
-
switch (o) {
|
|
366
|
-
case 0:
|
|
367
|
-
return 10;
|
|
368
|
-
case 1:
|
|
369
|
-
return i.getLogger().debug("Found space-block"), 31;
|
|
370
|
-
case 2:
|
|
371
|
-
return i.getLogger().debug("Found nl-block"), 31;
|
|
372
|
-
case 3:
|
|
373
|
-
return i.getLogger().debug("Found space-block"), 29;
|
|
374
|
-
case 4:
|
|
375
|
-
i.getLogger().debug(".", n.yytext);
|
|
376
|
-
break;
|
|
377
|
-
case 5:
|
|
378
|
-
i.getLogger().debug("_", n.yytext);
|
|
379
|
-
break;
|
|
380
|
-
case 6:
|
|
381
|
-
return 5;
|
|
382
|
-
case 7:
|
|
383
|
-
return n.yytext = -1, 28;
|
|
384
|
-
case 8:
|
|
385
|
-
return n.yytext = n.yytext.replace(/columns\s+/, ""), i.getLogger().debug("COLUMNS (LEX)", n.yytext), 28;
|
|
386
|
-
case 9:
|
|
387
|
-
this.pushState("md_string");
|
|
388
|
-
break;
|
|
389
|
-
case 10:
|
|
390
|
-
return "MD_STR";
|
|
391
|
-
case 11:
|
|
392
|
-
this.popState();
|
|
393
|
-
break;
|
|
394
|
-
case 12:
|
|
395
|
-
this.pushState("string");
|
|
396
|
-
break;
|
|
397
|
-
case 13:
|
|
398
|
-
i.getLogger().debug("LEX: POPPING STR:", n.yytext), this.popState();
|
|
399
|
-
break;
|
|
400
|
-
case 14:
|
|
401
|
-
return i.getLogger().debug("LEX: STR end:", n.yytext), "STR";
|
|
402
|
-
case 15:
|
|
403
|
-
return n.yytext = n.yytext.replace(/space\:/, ""), i.getLogger().debug("SPACE NUM (LEX)", n.yytext), 21;
|
|
404
|
-
case 16:
|
|
405
|
-
return n.yytext = "1", i.getLogger().debug("COLUMNS (LEX)", n.yytext), 21;
|
|
406
|
-
case 17:
|
|
407
|
-
return 43;
|
|
408
|
-
case 18:
|
|
409
|
-
return "LINKSTYLE";
|
|
410
|
-
case 19:
|
|
411
|
-
return "INTERPOLATE";
|
|
412
|
-
case 20:
|
|
413
|
-
return this.pushState("CLASSDEF"), 40;
|
|
414
|
-
case 21:
|
|
415
|
-
return this.popState(), this.pushState("CLASSDEFID"), "DEFAULT_CLASSDEF_ID";
|
|
416
|
-
case 22:
|
|
417
|
-
return this.popState(), this.pushState("CLASSDEFID"), 41;
|
|
418
|
-
case 23:
|
|
419
|
-
return this.popState(), 42;
|
|
420
|
-
case 24:
|
|
421
|
-
return this.pushState("CLASS"), 44;
|
|
422
|
-
case 25:
|
|
423
|
-
return this.popState(), this.pushState("CLASS_STYLE"), 45;
|
|
424
|
-
case 26:
|
|
425
|
-
return this.popState(), 46;
|
|
426
|
-
case 27:
|
|
427
|
-
return this.pushState("STYLE_STMNT"), 47;
|
|
428
|
-
case 28:
|
|
429
|
-
return this.popState(), this.pushState("STYLE_DEFINITION"), 48;
|
|
430
|
-
case 29:
|
|
431
|
-
return this.popState(), 49;
|
|
432
|
-
case 30:
|
|
433
|
-
return this.pushState("acc_title"), "acc_title";
|
|
434
|
-
case 31:
|
|
435
|
-
return this.popState(), "acc_title_value";
|
|
436
|
-
case 32:
|
|
437
|
-
return this.pushState("acc_descr"), "acc_descr";
|
|
438
|
-
case 33:
|
|
439
|
-
return this.popState(), "acc_descr_value";
|
|
440
|
-
case 34:
|
|
441
|
-
this.pushState("acc_descr_multiline");
|
|
442
|
-
break;
|
|
443
|
-
case 35:
|
|
444
|
-
this.popState();
|
|
445
|
-
break;
|
|
446
|
-
case 36:
|
|
447
|
-
return "acc_descr_multiline_value";
|
|
448
|
-
case 37:
|
|
449
|
-
return 30;
|
|
450
|
-
case 38:
|
|
451
|
-
return this.popState(), i.getLogger().debug("Lex: (("), "NODE_DEND";
|
|
452
|
-
case 39:
|
|
453
|
-
return this.popState(), i.getLogger().debug("Lex: (("), "NODE_DEND";
|
|
454
|
-
case 40:
|
|
455
|
-
return this.popState(), i.getLogger().debug("Lex: ))"), "NODE_DEND";
|
|
456
|
-
case 41:
|
|
457
|
-
return this.popState(), i.getLogger().debug("Lex: (("), "NODE_DEND";
|
|
458
|
-
case 42:
|
|
459
|
-
return this.popState(), i.getLogger().debug("Lex: (("), "NODE_DEND";
|
|
460
|
-
case 43:
|
|
461
|
-
return this.popState(), i.getLogger().debug("Lex: (-"), "NODE_DEND";
|
|
462
|
-
case 44:
|
|
463
|
-
return this.popState(), i.getLogger().debug("Lex: -)"), "NODE_DEND";
|
|
464
|
-
case 45:
|
|
465
|
-
return this.popState(), i.getLogger().debug("Lex: (("), "NODE_DEND";
|
|
466
|
-
case 46:
|
|
467
|
-
return this.popState(), i.getLogger().debug("Lex: ]]"), "NODE_DEND";
|
|
468
|
-
case 47:
|
|
469
|
-
return this.popState(), i.getLogger().debug("Lex: ("), "NODE_DEND";
|
|
470
|
-
case 48:
|
|
471
|
-
return this.popState(), i.getLogger().debug("Lex: ])"), "NODE_DEND";
|
|
472
|
-
case 49:
|
|
473
|
-
return this.popState(), i.getLogger().debug("Lex: /]"), "NODE_DEND";
|
|
474
|
-
case 50:
|
|
475
|
-
return this.popState(), i.getLogger().debug("Lex: /]"), "NODE_DEND";
|
|
476
|
-
case 51:
|
|
477
|
-
return this.popState(), i.getLogger().debug("Lex: )]"), "NODE_DEND";
|
|
478
|
-
case 52:
|
|
479
|
-
return this.popState(), i.getLogger().debug("Lex: )"), "NODE_DEND";
|
|
480
|
-
case 53:
|
|
481
|
-
return this.popState(), i.getLogger().debug("Lex: ]>"), "NODE_DEND";
|
|
482
|
-
case 54:
|
|
483
|
-
return this.popState(), i.getLogger().debug("Lex: ]"), "NODE_DEND";
|
|
484
|
-
case 55:
|
|
485
|
-
return i.getLogger().debug("Lexa: -)"), this.pushState("NODE"), 36;
|
|
486
|
-
case 56:
|
|
487
|
-
return i.getLogger().debug("Lexa: (-"), this.pushState("NODE"), 36;
|
|
488
|
-
case 57:
|
|
489
|
-
return i.getLogger().debug("Lexa: ))"), this.pushState("NODE"), 36;
|
|
490
|
-
case 58:
|
|
491
|
-
return i.getLogger().debug("Lexa: )"), this.pushState("NODE"), 36;
|
|
492
|
-
case 59:
|
|
493
|
-
return i.getLogger().debug("Lex: ((("), this.pushState("NODE"), 36;
|
|
494
|
-
case 60:
|
|
495
|
-
return i.getLogger().debug("Lexa: )"), this.pushState("NODE"), 36;
|
|
496
|
-
case 61:
|
|
497
|
-
return i.getLogger().debug("Lexa: )"), this.pushState("NODE"), 36;
|
|
498
|
-
case 62:
|
|
499
|
-
return i.getLogger().debug("Lexa: )"), this.pushState("NODE"), 36;
|
|
500
|
-
case 63:
|
|
501
|
-
return i.getLogger().debug("Lexc: >"), this.pushState("NODE"), 36;
|
|
502
|
-
case 64:
|
|
503
|
-
return i.getLogger().debug("Lexa: (["), this.pushState("NODE"), 36;
|
|
504
|
-
case 65:
|
|
505
|
-
return i.getLogger().debug("Lexa: )"), this.pushState("NODE"), 36;
|
|
506
|
-
case 66:
|
|
507
|
-
return this.pushState("NODE"), 36;
|
|
508
|
-
case 67:
|
|
509
|
-
return this.pushState("NODE"), 36;
|
|
510
|
-
case 68:
|
|
511
|
-
return this.pushState("NODE"), 36;
|
|
512
|
-
case 69:
|
|
513
|
-
return this.pushState("NODE"), 36;
|
|
514
|
-
case 70:
|
|
515
|
-
return this.pushState("NODE"), 36;
|
|
516
|
-
case 71:
|
|
517
|
-
return this.pushState("NODE"), 36;
|
|
518
|
-
case 72:
|
|
519
|
-
return this.pushState("NODE"), 36;
|
|
520
|
-
case 73:
|
|
521
|
-
return i.getLogger().debug("Lexa: ["), this.pushState("NODE"), 36;
|
|
522
|
-
case 74:
|
|
523
|
-
return this.pushState("BLOCK_ARROW"), i.getLogger().debug("LEX ARR START"), 38;
|
|
524
|
-
case 75:
|
|
525
|
-
return i.getLogger().debug("Lex: NODE_ID", n.yytext), 32;
|
|
526
|
-
case 76:
|
|
527
|
-
return i.getLogger().debug("Lex: EOF", n.yytext), 8;
|
|
528
|
-
case 77:
|
|
529
|
-
this.pushState("md_string");
|
|
530
|
-
break;
|
|
531
|
-
case 78:
|
|
532
|
-
this.pushState("md_string");
|
|
533
|
-
break;
|
|
534
|
-
case 79:
|
|
535
|
-
return "NODE_DESCR";
|
|
536
|
-
case 80:
|
|
537
|
-
this.popState();
|
|
538
|
-
break;
|
|
539
|
-
case 81:
|
|
540
|
-
i.getLogger().debug("Lex: Starting string"), this.pushState("string");
|
|
541
|
-
break;
|
|
542
|
-
case 82:
|
|
543
|
-
i.getLogger().debug("LEX ARR: Starting string"), this.pushState("string");
|
|
544
|
-
break;
|
|
545
|
-
case 83:
|
|
546
|
-
return i.getLogger().debug("LEX: NODE_DESCR:", n.yytext), "NODE_DESCR";
|
|
547
|
-
case 84:
|
|
548
|
-
i.getLogger().debug("LEX POPPING"), this.popState();
|
|
549
|
-
break;
|
|
550
|
-
case 85:
|
|
551
|
-
i.getLogger().debug("Lex: =>BAE"), this.pushState("ARROW_DIR");
|
|
552
|
-
break;
|
|
553
|
-
case 86:
|
|
554
|
-
return n.yytext = n.yytext.replace(/^,\s*/, ""), i.getLogger().debug("Lex (right): dir:", n.yytext), "DIR";
|
|
555
|
-
case 87:
|
|
556
|
-
return n.yytext = n.yytext.replace(/^,\s*/, ""), i.getLogger().debug("Lex (left):", n.yytext), "DIR";
|
|
557
|
-
case 88:
|
|
558
|
-
return n.yytext = n.yytext.replace(/^,\s*/, ""), i.getLogger().debug("Lex (x):", n.yytext), "DIR";
|
|
559
|
-
case 89:
|
|
560
|
-
return n.yytext = n.yytext.replace(/^,\s*/, ""), i.getLogger().debug("Lex (y):", n.yytext), "DIR";
|
|
561
|
-
case 90:
|
|
562
|
-
return n.yytext = n.yytext.replace(/^,\s*/, ""), i.getLogger().debug("Lex (up):", n.yytext), "DIR";
|
|
563
|
-
case 91:
|
|
564
|
-
return n.yytext = n.yytext.replace(/^,\s*/, ""), i.getLogger().debug("Lex (down):", n.yytext), "DIR";
|
|
565
|
-
case 92:
|
|
566
|
-
return n.yytext = "]>", i.getLogger().debug("Lex (ARROW_DIR end):", n.yytext), this.popState(), this.popState(), "BLOCK_ARROW_END";
|
|
567
|
-
case 93:
|
|
568
|
-
return i.getLogger().debug("Lex: LINK", "#" + n.yytext + "#"), 15;
|
|
569
|
-
case 94:
|
|
570
|
-
return i.getLogger().debug("Lex: LINK", n.yytext), 15;
|
|
571
|
-
case 95:
|
|
572
|
-
return i.getLogger().debug("Lex: LINK", n.yytext), 15;
|
|
573
|
-
case 96:
|
|
574
|
-
return i.getLogger().debug("Lex: LINK", n.yytext), 15;
|
|
575
|
-
case 97:
|
|
576
|
-
return i.getLogger().debug("Lex: START_LINK", n.yytext), this.pushState("LLABEL"), 16;
|
|
577
|
-
case 98:
|
|
578
|
-
return i.getLogger().debug("Lex: START_LINK", n.yytext), this.pushState("LLABEL"), 16;
|
|
579
|
-
case 99:
|
|
580
|
-
return i.getLogger().debug("Lex: START_LINK", n.yytext), this.pushState("LLABEL"), 16;
|
|
581
|
-
case 100:
|
|
582
|
-
this.pushState("md_string");
|
|
583
|
-
break;
|
|
584
|
-
case 101:
|
|
585
|
-
return i.getLogger().debug("Lex: Starting string"), this.pushState("string"), "LINK_LABEL";
|
|
586
|
-
case 102:
|
|
587
|
-
return this.popState(), i.getLogger().debug("Lex: LINK", "#" + n.yytext + "#"), 15;
|
|
588
|
-
case 103:
|
|
589
|
-
return this.popState(), i.getLogger().debug("Lex: LINK", n.yytext), 15;
|
|
590
|
-
case 104:
|
|
591
|
-
return this.popState(), i.getLogger().debug("Lex: LINK", n.yytext), 15;
|
|
592
|
-
case 105:
|
|
593
|
-
return i.getLogger().debug("Lex: COLON", n.yytext), n.yytext = n.yytext.slice(1), 27;
|
|
594
|
-
}
|
|
595
|
-
}, "anonymous"),
|
|
596
|
-
rules: [/^(?:block-beta\b)/, /^(?:block\s+)/, /^(?:block\n+)/, /^(?:block:)/, /^(?:[\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+)/],
|
|
597
|
-
conditions: { STYLE_DEFINITION: { rules: [29], inclusive: !1 }, STYLE_STMNT: { rules: [28], inclusive: !1 }, CLASSDEFID: { rules: [23], inclusive: !1 }, CLASSDEF: { rules: [21, 22], inclusive: !1 }, CLASS_STYLE: { rules: [26], inclusive: !1 }, CLASS: { rules: [25], inclusive: !1 }, LLABEL: { rules: [100, 101, 102, 103, 104], inclusive: !1 }, ARROW_DIR: { rules: [86, 87, 88, 89, 90, 91, 92], inclusive: !1 }, BLOCK_ARROW: { rules: [77, 82, 85], inclusive: !1 }, NODE: { rules: [38, 39, 40, 41, 42, 43, 44, 45, 46, 47, 48, 49, 50, 51, 52, 53, 54, 78, 81], inclusive: !1 }, md_string: { rules: [10, 11, 79, 80], inclusive: !1 }, space: { rules: [], inclusive: !1 }, string: { rules: [13, 14, 83, 84], inclusive: !1 }, acc_descr_multiline: { rules: [35, 36], inclusive: !1 }, acc_descr: { rules: [33], inclusive: !1 }, acc_title: { rules: [31], inclusive: !1 }, INITIAL: { rules: [0, 1, 2, 3, 4, 5, 6, 7, 8, 9, 12, 15, 16, 17, 18, 19, 20, 24, 27, 30, 32, 34, 37, 55, 56, 57, 58, 59, 60, 61, 62, 63, 64, 65, 66, 67, 68, 69, 70, 71, 72, 73, 74, 75, 76, 93, 94, 95, 96, 97, 98, 99, 105], inclusive: !0 } }
|
|
598
|
-
};
|
|
599
|
-
return _;
|
|
600
|
-
}();
|
|
601
|
-
w.lexer = R;
|
|
602
|
-
function v() {
|
|
603
|
-
this.yy = {};
|
|
604
|
-
}
|
|
605
|
-
return h(v, "Parser"), v.prototype = w, w.Parser = v, new v();
|
|
606
|
-
}();
|
|
607
|
-
ie.parser = ie;
|
|
608
|
-
var je = ie, T = /* @__PURE__ */ new Map(), re = [], se = /* @__PURE__ */ new Map(), de = "color", ge = "fill", He = "bgFill", Le = ",", Ge = Se(), q = /* @__PURE__ */ new Map(), qe = /* @__PURE__ */ h((e) => Ye.sanitizeText(e, Ge), "sanitizeText"), Je = /* @__PURE__ */ h(function(e, a = "") {
|
|
609
|
-
let u = q.get(e);
|
|
610
|
-
u || (u = { id: e, styles: [], textStyles: [] }, q.set(e, u)), a != null && a.split(Le).forEach((c) => {
|
|
611
|
-
const r = c.replace(/([^;]*);/, "$1").trim();
|
|
612
|
-
if (RegExp(de).exec(c)) {
|
|
613
|
-
const d = r.replace(ge, He).replace(de, ge);
|
|
614
|
-
u.textStyles.push(d);
|
|
615
|
-
}
|
|
616
|
-
u.styles.push(r);
|
|
617
|
-
});
|
|
618
|
-
}, "addStyleClass"), Ze = /* @__PURE__ */ h(function(e, a = "") {
|
|
619
|
-
const u = T.get(e);
|
|
620
|
-
a != null && (u.styles = a.split(Le));
|
|
621
|
-
}, "addStyle2Node"), Qe = /* @__PURE__ */ h(function(e, a) {
|
|
622
|
-
e.split(",").forEach(function(u) {
|
|
623
|
-
let c = T.get(u);
|
|
624
|
-
if (c === void 0) {
|
|
625
|
-
const r = u.trim();
|
|
626
|
-
c = { id: r, type: "na", children: [] }, T.set(r, c);
|
|
627
|
-
}
|
|
628
|
-
c.classes || (c.classes = []), c.classes.push(a);
|
|
629
|
-
});
|
|
630
|
-
}, "setCssClass"), fe = /* @__PURE__ */ h((e, a) => {
|
|
631
|
-
const u = e.flat(), c = [];
|
|
632
|
-
for (const r of u) {
|
|
633
|
-
if (r.label && (r.label = qe(r.label)), r.type === "classDef") {
|
|
634
|
-
Je(r.id, r.css);
|
|
635
|
-
continue;
|
|
636
|
-
}
|
|
637
|
-
if (r.type === "applyClass") {
|
|
638
|
-
Qe(r.id, (r == null ? void 0 : r.styleClass) ?? "");
|
|
639
|
-
continue;
|
|
640
|
-
}
|
|
641
|
-
if (r.type === "applyStyles") {
|
|
642
|
-
r != null && r.stylesStr && Ze(r.id, r == null ? void 0 : r.stylesStr);
|
|
643
|
-
continue;
|
|
644
|
-
}
|
|
645
|
-
if (r.type === "column-setting")
|
|
646
|
-
a.columns = r.columns ?? -1;
|
|
647
|
-
else if (r.type === "edge") {
|
|
648
|
-
const d = (se.get(r.id) ?? 0) + 1;
|
|
649
|
-
se.set(r.id, d), r.id = d + "-" + r.id, re.push(r);
|
|
650
|
-
} else {
|
|
651
|
-
r.label || (r.type === "composite" ? r.label = "" : r.label = r.id);
|
|
652
|
-
const d = T.get(r.id);
|
|
653
|
-
if (d === void 0 ? T.set(r.id, r) : (r.type !== "na" && (d.type = r.type), r.label !== r.id && (d.label = r.label)), r.children && fe(r.children, r), r.type === "space") {
|
|
654
|
-
const l = r.width ?? 1;
|
|
655
|
-
for (let b = 0; b < l; b++) {
|
|
656
|
-
const x = We(r);
|
|
657
|
-
x.id = x.id + "-" + b, T.set(x.id, x), c.push(x);
|
|
658
|
-
}
|
|
659
|
-
} else d === void 0 && c.push(r);
|
|
660
|
-
}
|
|
661
|
-
}
|
|
662
|
-
a.children = c;
|
|
663
|
-
}, "populateBlockDatabase"), oe = [], X = { id: "root", type: "composite", children: [], columns: -1 }, Ve = /* @__PURE__ */ h(() => {
|
|
664
|
-
L.debug("Clear called"), Fe(), X = { id: "root", type: "composite", children: [], columns: -1 }, T = /* @__PURE__ */ new Map([["root", X]]), oe = [], q = /* @__PURE__ */ new Map(), re = [], se = /* @__PURE__ */ new Map();
|
|
665
|
-
}, "clear");
|
|
666
|
-
function me(e) {
|
|
667
|
-
switch (L.debug("typeStr2Type", e), e) {
|
|
668
|
-
case "[]":
|
|
669
|
-
return "square";
|
|
670
|
-
case "()":
|
|
671
|
-
return L.debug("we have a round"), "round";
|
|
672
|
-
case "(())":
|
|
673
|
-
return "circle";
|
|
674
|
-
case ">]":
|
|
675
|
-
return "rect_left_inv_arrow";
|
|
676
|
-
case "{}":
|
|
677
|
-
return "diamond";
|
|
678
|
-
case "{{}}":
|
|
679
|
-
return "hexagon";
|
|
680
|
-
case "([])":
|
|
681
|
-
return "stadium";
|
|
682
|
-
case "[[]]":
|
|
683
|
-
return "subroutine";
|
|
684
|
-
case "[()]":
|
|
685
|
-
return "cylinder";
|
|
686
|
-
case "((()))":
|
|
687
|
-
return "doublecircle";
|
|
688
|
-
case "[//]":
|
|
689
|
-
return "lean_right";
|
|
690
|
-
case "[\\\\]":
|
|
691
|
-
return "lean_left";
|
|
692
|
-
case "[/\\]":
|
|
693
|
-
return "trapezoid";
|
|
694
|
-
case "[\\/]":
|
|
695
|
-
return "inv_trapezoid";
|
|
696
|
-
case "<[]>":
|
|
697
|
-
return "block_arrow";
|
|
698
|
-
default:
|
|
699
|
-
return "na";
|
|
700
|
-
}
|
|
701
|
-
}
|
|
702
|
-
h(me, "typeStr2Type");
|
|
703
|
-
function _e(e) {
|
|
704
|
-
switch (L.debug("typeStr2Type", e), e) {
|
|
705
|
-
case "==":
|
|
706
|
-
return "thick";
|
|
707
|
-
default:
|
|
708
|
-
return "normal";
|
|
709
|
-
}
|
|
710
|
-
}
|
|
711
|
-
h(_e, "edgeTypeStr2Type");
|
|
712
|
-
function ke(e) {
|
|
713
|
-
switch (e.trim()) {
|
|
714
|
-
case "--x":
|
|
715
|
-
return "arrow_cross";
|
|
716
|
-
case "--o":
|
|
717
|
-
return "arrow_circle";
|
|
718
|
-
default:
|
|
719
|
-
return "arrow_point";
|
|
720
|
-
}
|
|
721
|
-
}
|
|
722
|
-
h(ke, "edgeStrToEdgeData");
|
|
723
|
-
var pe = 0, et = /* @__PURE__ */ h(() => (pe++, "id-" + Math.random().toString(36).substr(2, 12) + "-" + pe), "generateId"), tt = /* @__PURE__ */ h((e) => {
|
|
724
|
-
X.children = e, fe(e, X), oe = X.children;
|
|
725
|
-
}, "setHierarchy"), it = /* @__PURE__ */ h((e) => {
|
|
726
|
-
const a = T.get(e);
|
|
727
|
-
return a ? a.columns ? a.columns : a.children ? a.children.length : -1 : -1;
|
|
728
|
-
}, "getColumns"), st = /* @__PURE__ */ h(() => [...T.values()], "getBlocksFlat"), nt = /* @__PURE__ */ h(() => oe || [], "getBlocks"), rt = /* @__PURE__ */ h(() => re, "getEdges"), ot = /* @__PURE__ */ h((e) => T.get(e), "getBlock"), at = /* @__PURE__ */ h((e) => {
|
|
729
|
-
T.set(e.id, e);
|
|
730
|
-
}, "setBlock"), lt = /* @__PURE__ */ h(() => console, "getLogger"), ct = /* @__PURE__ */ h(function() {
|
|
731
|
-
return q;
|
|
732
|
-
}, "getClasses"), ut = {
|
|
733
|
-
getConfig: /* @__PURE__ */ h(() => ne().block, "getConfig"),
|
|
734
|
-
typeStr2Type: me,
|
|
735
|
-
edgeTypeStr2Type: _e,
|
|
736
|
-
edgeStrToEdgeData: ke,
|
|
737
|
-
getLogger: lt,
|
|
738
|
-
getBlocksFlat: st,
|
|
739
|
-
getBlocks: nt,
|
|
740
|
-
getEdges: rt,
|
|
741
|
-
setHierarchy: tt,
|
|
742
|
-
getBlock: ot,
|
|
743
|
-
setBlock: at,
|
|
744
|
-
getColumns: it,
|
|
745
|
-
getClasses: ct,
|
|
746
|
-
clear: Ve,
|
|
747
|
-
generateId: et
|
|
748
|
-
}, ht = ut, G = /* @__PURE__ */ h((e, a) => {
|
|
749
|
-
const u = Ue, c = u(e, "r"), r = u(e, "g"), d = u(e, "b");
|
|
750
|
-
return Me(c, r, d, a);
|
|
751
|
-
}, "fade"), dt = /* @__PURE__ */ h((e) => `.label {
|
|
752
|
-
font-family: ${e.fontFamily};
|
|
753
|
-
color: ${e.nodeTextColor || e.textColor};
|
|
754
|
-
}
|
|
755
|
-
.cluster-label text {
|
|
756
|
-
fill: ${e.titleColor};
|
|
757
|
-
}
|
|
758
|
-
.cluster-label span,p {
|
|
759
|
-
color: ${e.titleColor};
|
|
760
|
-
}
|
|
761
|
-
|
|
762
|
-
|
|
763
|
-
|
|
764
|
-
.label text,span,p {
|
|
765
|
-
fill: ${e.nodeTextColor || e.textColor};
|
|
766
|
-
color: ${e.nodeTextColor || e.textColor};
|
|
767
|
-
}
|
|
768
|
-
|
|
769
|
-
.node rect,
|
|
770
|
-
.node circle,
|
|
771
|
-
.node ellipse,
|
|
772
|
-
.node polygon,
|
|
773
|
-
.node path {
|
|
774
|
-
fill: ${e.mainBkg};
|
|
775
|
-
stroke: ${e.nodeBorder};
|
|
776
|
-
stroke-width: 1px;
|
|
777
|
-
}
|
|
778
|
-
.flowchart-label text {
|
|
779
|
-
text-anchor: middle;
|
|
780
|
-
}
|
|
781
|
-
// .flowchart-label .text-outer-tspan {
|
|
782
|
-
// text-anchor: middle;
|
|
783
|
-
// }
|
|
784
|
-
// .flowchart-label .text-inner-tspan {
|
|
785
|
-
// text-anchor: start;
|
|
786
|
-
// }
|
|
787
|
-
|
|
788
|
-
.node .label {
|
|
789
|
-
text-align: center;
|
|
790
|
-
}
|
|
791
|
-
.node.clickable {
|
|
792
|
-
cursor: pointer;
|
|
793
|
-
}
|
|
794
|
-
|
|
795
|
-
.arrowheadPath {
|
|
796
|
-
fill: ${e.arrowheadColor};
|
|
797
|
-
}
|
|
798
|
-
|
|
799
|
-
.edgePath .path {
|
|
800
|
-
stroke: ${e.lineColor};
|
|
801
|
-
stroke-width: 2.0px;
|
|
802
|
-
}
|
|
803
|
-
|
|
804
|
-
.flowchart-link {
|
|
805
|
-
stroke: ${e.lineColor};
|
|
806
|
-
fill: none;
|
|
807
|
-
}
|
|
808
|
-
|
|
809
|
-
.edgeLabel {
|
|
810
|
-
background-color: ${e.edgeLabelBackground};
|
|
811
|
-
rect {
|
|
812
|
-
opacity: 0.5;
|
|
813
|
-
background-color: ${e.edgeLabelBackground};
|
|
814
|
-
fill: ${e.edgeLabelBackground};
|
|
815
|
-
}
|
|
816
|
-
text-align: center;
|
|
817
|
-
}
|
|
818
|
-
|
|
819
|
-
/* For html labels only */
|
|
820
|
-
.labelBkg {
|
|
821
|
-
background-color: ${G(e.edgeLabelBackground, 0.5)};
|
|
822
|
-
// background-color:
|
|
823
|
-
}
|
|
824
|
-
|
|
825
|
-
.node .cluster {
|
|
826
|
-
// fill: ${G(e.mainBkg, 0.5)};
|
|
827
|
-
fill: ${G(e.clusterBkg, 0.5)};
|
|
828
|
-
stroke: ${G(e.clusterBorder, 0.2)};
|
|
829
|
-
box-shadow: rgba(50, 50, 93, 0.25) 0px 13px 27px -5px, rgba(0, 0, 0, 0.3) 0px 8px 16px -8px;
|
|
830
|
-
stroke-width: 1px;
|
|
831
|
-
}
|
|
832
|
-
|
|
833
|
-
.cluster text {
|
|
834
|
-
fill: ${e.titleColor};
|
|
835
|
-
}
|
|
836
|
-
|
|
837
|
-
.cluster span,p {
|
|
838
|
-
color: ${e.titleColor};
|
|
839
|
-
}
|
|
840
|
-
/* .cluster div {
|
|
841
|
-
color: ${e.titleColor};
|
|
842
|
-
} */
|
|
843
|
-
|
|
844
|
-
div.mermaidTooltip {
|
|
845
|
-
position: absolute;
|
|
846
|
-
text-align: center;
|
|
847
|
-
max-width: 200px;
|
|
848
|
-
padding: 2px;
|
|
849
|
-
font-family: ${e.fontFamily};
|
|
850
|
-
font-size: 12px;
|
|
851
|
-
background: ${e.tertiaryColor};
|
|
852
|
-
border: 1px solid ${e.border2};
|
|
853
|
-
border-radius: 2px;
|
|
854
|
-
pointer-events: none;
|
|
855
|
-
z-index: 100;
|
|
856
|
-
}
|
|
857
|
-
|
|
858
|
-
.flowchartTitleText {
|
|
859
|
-
text-anchor: middle;
|
|
860
|
-
font-size: 18px;
|
|
861
|
-
fill: ${e.textColor};
|
|
862
|
-
}
|
|
863
|
-
`, "getStyles"), gt = dt, ye, be, m = ((be = (ye = Se()) == null ? void 0 : ye.block) == null ? void 0 : be.padding) ?? 8;
|
|
864
|
-
function Ee(e, a) {
|
|
865
|
-
if (e === 0 || !Number.isInteger(e))
|
|
866
|
-
throw new Error("Columns must be an integer !== 0.");
|
|
867
|
-
if (a < 0 || !Number.isInteger(a))
|
|
868
|
-
throw new Error("Position must be a non-negative integer." + a);
|
|
869
|
-
if (e < 0)
|
|
870
|
-
return { px: a, py: 0 };
|
|
871
|
-
if (e === 1)
|
|
872
|
-
return { px: 0, py: a };
|
|
873
|
-
const u = a % e, c = Math.floor(a / e);
|
|
874
|
-
return { px: u, py: c };
|
|
875
|
-
}
|
|
876
|
-
h(Ee, "calculateBlockPosition");
|
|
877
|
-
var pt = /* @__PURE__ */ h((e) => {
|
|
878
|
-
let a = 0, u = 0;
|
|
879
|
-
for (const c of e.children) {
|
|
880
|
-
const { width: r, height: d, x: l, y: b } = c.size ?? { width: 0, height: 0, x: 0, y: 0 };
|
|
881
|
-
L.debug(
|
|
882
|
-
"getMaxChildSize abc95 child:",
|
|
883
|
-
c.id,
|
|
884
|
-
"width:",
|
|
885
|
-
r,
|
|
886
|
-
"height:",
|
|
887
|
-
d,
|
|
888
|
-
"x:",
|
|
889
|
-
l,
|
|
890
|
-
"y:",
|
|
891
|
-
b,
|
|
892
|
-
c.type
|
|
893
|
-
), c.type !== "space" && (r > a && (a = r / (e.widthInColumns ?? 1)), d > u && (u = d));
|
|
894
|
-
}
|
|
895
|
-
return { width: a, height: u };
|
|
896
|
-
}, "getMaxChildSize");
|
|
897
|
-
function J(e, a, u = 0, c = 0) {
|
|
898
|
-
var r, d, l, b, x, p, S, k, O, E, N;
|
|
899
|
-
L.debug(
|
|
900
|
-
"setBlockSizes abc95 (start)",
|
|
901
|
-
e.id,
|
|
902
|
-
(r = e == null ? void 0 : e.size) == null ? void 0 : r.x,
|
|
903
|
-
"block width =",
|
|
904
|
-
e == null ? void 0 : e.size,
|
|
905
|
-
"sieblingWidth",
|
|
906
|
-
u
|
|
907
|
-
), (d = e == null ? void 0 : e.size) != null && d.width || (e.size = {
|
|
908
|
-
width: u,
|
|
909
|
-
height: c,
|
|
910
|
-
x: 0,
|
|
911
|
-
y: 0
|
|
912
|
-
});
|
|
913
|
-
let f = 0, w = 0;
|
|
914
|
-
if (((l = e.children) == null ? void 0 : l.length) > 0) {
|
|
915
|
-
for (const t of e.children)
|
|
916
|
-
J(t, a);
|
|
917
|
-
const R = pt(e);
|
|
918
|
-
f = R.width, w = R.height, L.debug("setBlockSizes abc95 maxWidth of", e.id, ":s children is ", f, w);
|
|
919
|
-
for (const t of e.children)
|
|
920
|
-
t.size && (L.debug(
|
|
921
|
-
`abc95 Setting size of children of ${e.id} id=${t.id} ${f} ${w} ${JSON.stringify(t.size)}`
|
|
922
|
-
), t.size.width = f * (t.widthInColumns ?? 1) + m * ((t.widthInColumns ?? 1) - 1), t.size.height = w, t.size.x = 0, t.size.y = 0, L.debug(
|
|
923
|
-
`abc95 updating size of ${e.id} children child:${t.id} maxWidth:${f} maxHeight:${w}`
|
|
924
|
-
));
|
|
925
|
-
for (const t of e.children)
|
|
926
|
-
J(t, a, f, w);
|
|
927
|
-
const v = e.columns ?? -1;
|
|
928
|
-
let _ = 0;
|
|
929
|
-
for (const t of e.children)
|
|
930
|
-
_ += t.widthInColumns ?? 1;
|
|
931
|
-
let i = e.children.length;
|
|
932
|
-
v > 0 && v < _ && (i = v);
|
|
933
|
-
const n = Math.ceil(_ / i);
|
|
934
|
-
let o = i * (f + m) + m, y = n * (w + m) + m;
|
|
935
|
-
if (o < u) {
|
|
936
|
-
L.debug(
|
|
937
|
-
`Detected to small siebling: abc95 ${e.id} sieblingWidth ${u} sieblingHeight ${c} width ${o}`
|
|
938
|
-
), o = u, y = c;
|
|
939
|
-
const t = (u - i * m - m) / i, g = (c - n * m - m) / n;
|
|
940
|
-
L.debug("Size indata abc88", e.id, "childWidth", t, "maxWidth", f), L.debug("Size indata abc88", e.id, "childHeight", g, "maxHeight", w), L.debug("Size indata abc88 xSize", i, "padding", m);
|
|
941
|
-
for (const s of e.children)
|
|
942
|
-
s.size && (s.size.width = t, s.size.height = g, s.size.x = 0, s.size.y = 0);
|
|
943
|
-
}
|
|
944
|
-
if (L.debug(
|
|
945
|
-
`abc95 (finale calc) ${e.id} xSize ${i} ySize ${n} columns ${v}${e.children.length} width=${Math.max(o, ((b = e.size) == null ? void 0 : b.width) || 0)}`
|
|
946
|
-
), o < (((x = e == null ? void 0 : e.size) == null ? void 0 : x.width) || 0)) {
|
|
947
|
-
o = ((p = e == null ? void 0 : e.size) == null ? void 0 : p.width) || 0;
|
|
948
|
-
const t = v > 0 ? Math.min(e.children.length, v) : e.children.length;
|
|
949
|
-
if (t > 0) {
|
|
950
|
-
const g = (o - t * m - m) / t;
|
|
951
|
-
L.debug("abc95 (growing to fit) width", e.id, o, (S = e.size) == null ? void 0 : S.width, g);
|
|
952
|
-
for (const s of e.children)
|
|
953
|
-
s.size && (s.size.width = g);
|
|
954
|
-
}
|
|
955
|
-
}
|
|
956
|
-
e.size = {
|
|
957
|
-
width: o,
|
|
958
|
-
height: y,
|
|
959
|
-
x: 0,
|
|
960
|
-
y: 0
|
|
961
|
-
};
|
|
962
|
-
}
|
|
963
|
-
L.debug(
|
|
964
|
-
"setBlockSizes abc94 (done)",
|
|
965
|
-
e.id,
|
|
966
|
-
(k = e == null ? void 0 : e.size) == null ? void 0 : k.x,
|
|
967
|
-
(O = e == null ? void 0 : e.size) == null ? void 0 : O.width,
|
|
968
|
-
(E = e == null ? void 0 : e.size) == null ? void 0 : E.y,
|
|
969
|
-
(N = e == null ? void 0 : e.size) == null ? void 0 : N.height
|
|
970
|
-
);
|
|
971
|
-
}
|
|
972
|
-
h(J, "setBlockSizes");
|
|
973
|
-
function ae(e, a) {
|
|
974
|
-
var u, c, r, d, l, b, x, p, S, k, O, E, N, f, w, R, v;
|
|
975
|
-
L.debug(
|
|
976
|
-
`abc85 layout blocks (=>layoutBlocks) ${e.id} x: ${(u = e == null ? void 0 : e.size) == null ? void 0 : u.x} y: ${(c = e == null ? void 0 : e.size) == null ? void 0 : c.y} width: ${(r = e == null ? void 0 : e.size) == null ? void 0 : r.width}`
|
|
977
|
-
);
|
|
978
|
-
const _ = e.columns ?? -1;
|
|
979
|
-
if (L.debug("layoutBlocks columns abc95", e.id, "=>", _, e), e.children && // find max width of children
|
|
980
|
-
e.children.length > 0) {
|
|
981
|
-
const i = ((l = (d = e == null ? void 0 : e.children[0]) == null ? void 0 : d.size) == null ? void 0 : l.width) ?? 0, n = e.children.length * i + (e.children.length - 1) * m;
|
|
982
|
-
L.debug("widthOfChildren 88", n, "posX");
|
|
983
|
-
let o = 0;
|
|
984
|
-
L.debug("abc91 block?.size?.x", e.id, (b = e == null ? void 0 : e.size) == null ? void 0 : b.x);
|
|
985
|
-
let y = (x = e == null ? void 0 : e.size) != null && x.x ? ((p = e == null ? void 0 : e.size) == null ? void 0 : p.x) + (-((S = e == null ? void 0 : e.size) == null ? void 0 : S.width) / 2 || 0) : -m, t = 0;
|
|
986
|
-
for (const g of e.children) {
|
|
987
|
-
const s = e;
|
|
988
|
-
if (!g.size)
|
|
989
|
-
continue;
|
|
990
|
-
const { width: C, height: P } = g.size, { px: W, py: A } = Ee(_, o);
|
|
991
|
-
if (A != t && (t = A, y = (k = e == null ? void 0 : e.size) != null && k.x ? ((O = e == null ? void 0 : e.size) == null ? void 0 : O.x) + (-((E = e == null ? void 0 : e.size) == null ? void 0 : E.width) / 2 || 0) : -m, L.debug("New row in layout for block", e.id, " and child ", g.id, t)), L.debug(
|
|
992
|
-
`abc89 layout blocks (child) id: ${g.id} Pos: ${o} (px, py) ${W},${A} (${(N = s == null ? void 0 : s.size) == null ? void 0 : N.x},${(f = s == null ? void 0 : s.size) == null ? void 0 : f.y}) parent: ${s.id} width: ${C}${m}`
|
|
993
|
-
), s.size) {
|
|
994
|
-
const K = C / 2;
|
|
995
|
-
g.size.x = y + m + K, L.debug(
|
|
996
|
-
`abc91 layout blocks (calc) px, pyid:${g.id} startingPos=X${y} new startingPosX${g.size.x} ${K} padding=${m} width=${C} halfWidth=${K} => x:${g.size.x} y:${g.size.y} ${g.widthInColumns} (width * (child?.w || 1)) / 2 ${C * ((g == null ? void 0 : g.widthInColumns) ?? 1) / 2}`
|
|
997
|
-
), y = g.size.x + K, g.size.y = s.size.y - s.size.height / 2 + A * (P + m) + P / 2 + m, L.debug(
|
|
998
|
-
`abc88 layout blocks (calc) px, pyid:${g.id}startingPosX${y}${m}${K}=>x:${g.size.x}y:${g.size.y}${g.widthInColumns}(width * (child?.w || 1)) / 2${C * ((g == null ? void 0 : g.widthInColumns) ?? 1) / 2}`
|
|
999
|
-
);
|
|
1000
|
-
}
|
|
1001
|
-
g.children && ae(g), o += (g == null ? void 0 : g.widthInColumns) ?? 1, L.debug("abc88 columnsPos", g, o);
|
|
1002
|
-
}
|
|
1003
|
-
}
|
|
1004
|
-
L.debug(
|
|
1005
|
-
`layout blocks (<==layoutBlocks) ${e.id} x: ${(w = e == null ? void 0 : e.size) == null ? void 0 : w.x} y: ${(R = e == null ? void 0 : e.size) == null ? void 0 : R.y} width: ${(v = e == null ? void 0 : e.size) == null ? void 0 : v.width}`
|
|
1006
|
-
);
|
|
1007
|
-
}
|
|
1008
|
-
h(ae, "layoutBlocks");
|
|
1009
|
-
function le(e, { minX: a, minY: u, maxX: c, maxY: r } = { minX: 0, minY: 0, maxX: 0, maxY: 0 }) {
|
|
1010
|
-
if (e.size && e.id !== "root") {
|
|
1011
|
-
const { x: d, y: l, width: b, height: x } = e.size;
|
|
1012
|
-
d - b / 2 < a && (a = d - b / 2), l - x / 2 < u && (u = l - x / 2), d + b / 2 > c && (c = d + b / 2), l + x / 2 > r && (r = l + x / 2);
|
|
1013
|
-
}
|
|
1014
|
-
if (e.children)
|
|
1015
|
-
for (const d of e.children)
|
|
1016
|
-
({ minX: a, minY: u, maxX: c, maxY: r } = le(d, { minX: a, minY: u, maxX: c, maxY: r }));
|
|
1017
|
-
return { minX: a, minY: u, maxX: c, maxY: r };
|
|
1018
|
-
}
|
|
1019
|
-
h(le, "findBounds");
|
|
1020
|
-
function De(e) {
|
|
1021
|
-
const a = e.getBlock("root");
|
|
1022
|
-
if (!a)
|
|
1023
|
-
return;
|
|
1024
|
-
J(a, e, 0, 0), ae(a), L.debug("getBlocks", JSON.stringify(a, null, 2));
|
|
1025
|
-
const { minX: u, minY: c, maxX: r, maxY: d } = le(a), l = d - c, b = r - u;
|
|
1026
|
-
return { x: u, y: c, width: b, height: l };
|
|
1027
|
-
}
|
|
1028
|
-
h(De, "layout");
|
|
1029
|
-
function ce(e, a, u = !1) {
|
|
1030
|
-
var c, r, d;
|
|
1031
|
-
const l = e;
|
|
1032
|
-
let b = "default";
|
|
1033
|
-
(((c = l == null ? void 0 : l.classes) == null ? void 0 : c.length) || 0) > 0 && (b = ((l == null ? void 0 : l.classes) ?? []).join(" ")), b = b + " flowchart-label";
|
|
1034
|
-
let x = 0, p = "", S;
|
|
1035
|
-
switch (l.type) {
|
|
1036
|
-
case "round":
|
|
1037
|
-
x = 5, p = "rect";
|
|
1038
|
-
break;
|
|
1039
|
-
case "composite":
|
|
1040
|
-
x = 0, p = "composite", S = 0;
|
|
1041
|
-
break;
|
|
1042
|
-
case "square":
|
|
1043
|
-
p = "rect";
|
|
1044
|
-
break;
|
|
1045
|
-
case "diamond":
|
|
1046
|
-
p = "question";
|
|
1047
|
-
break;
|
|
1048
|
-
case "hexagon":
|
|
1049
|
-
p = "hexagon";
|
|
1050
|
-
break;
|
|
1051
|
-
case "block_arrow":
|
|
1052
|
-
p = "block_arrow";
|
|
1053
|
-
break;
|
|
1054
|
-
case "odd":
|
|
1055
|
-
p = "rect_left_inv_arrow";
|
|
1056
|
-
break;
|
|
1057
|
-
case "lean_right":
|
|
1058
|
-
p = "lean_right";
|
|
1059
|
-
break;
|
|
1060
|
-
case "lean_left":
|
|
1061
|
-
p = "lean_left";
|
|
1062
|
-
break;
|
|
1063
|
-
case "trapezoid":
|
|
1064
|
-
p = "trapezoid";
|
|
1065
|
-
break;
|
|
1066
|
-
case "inv_trapezoid":
|
|
1067
|
-
p = "inv_trapezoid";
|
|
1068
|
-
break;
|
|
1069
|
-
case "rect_left_inv_arrow":
|
|
1070
|
-
p = "rect_left_inv_arrow";
|
|
1071
|
-
break;
|
|
1072
|
-
case "circle":
|
|
1073
|
-
p = "circle";
|
|
1074
|
-
break;
|
|
1075
|
-
case "ellipse":
|
|
1076
|
-
p = "ellipse";
|
|
1077
|
-
break;
|
|
1078
|
-
case "stadium":
|
|
1079
|
-
p = "stadium";
|
|
1080
|
-
break;
|
|
1081
|
-
case "subroutine":
|
|
1082
|
-
p = "subroutine";
|
|
1083
|
-
break;
|
|
1084
|
-
case "cylinder":
|
|
1085
|
-
p = "cylinder";
|
|
1086
|
-
break;
|
|
1087
|
-
case "group":
|
|
1088
|
-
p = "rect";
|
|
1089
|
-
break;
|
|
1090
|
-
case "doublecircle":
|
|
1091
|
-
p = "doublecircle";
|
|
1092
|
-
break;
|
|
1093
|
-
default:
|
|
1094
|
-
p = "rect";
|
|
1095
|
-
}
|
|
1096
|
-
const k = Pe((l == null ? void 0 : l.styles) ?? []), O = l.label, E = l.size ?? { width: 0, height: 0, x: 0, y: 0 };
|
|
1097
|
-
return {
|
|
1098
|
-
labelStyle: k.labelStyle,
|
|
1099
|
-
shape: p,
|
|
1100
|
-
labelText: O,
|
|
1101
|
-
rx: x,
|
|
1102
|
-
ry: x,
|
|
1103
|
-
class: b,
|
|
1104
|
-
style: k.style,
|
|
1105
|
-
id: l.id,
|
|
1106
|
-
directions: l.directions,
|
|
1107
|
-
width: E.width,
|
|
1108
|
-
height: E.height,
|
|
1109
|
-
x: E.x,
|
|
1110
|
-
y: E.y,
|
|
1111
|
-
positioned: u,
|
|
1112
|
-
intersect: void 0,
|
|
1113
|
-
type: l.type,
|
|
1114
|
-
padding: S ?? ((d = (r = ne()) == null ? void 0 : r.block) == null ? void 0 : d.padding) ?? 0
|
|
1115
|
-
};
|
|
1116
|
-
}
|
|
1117
|
-
h(ce, "getNodeFromBlock");
|
|
1118
|
-
async function we(e, a, u) {
|
|
1119
|
-
const c = ce(a, u, !1);
|
|
1120
|
-
if (c.type === "group")
|
|
1121
|
-
return;
|
|
1122
|
-
const r = await xe(e, c), d = r.node().getBBox(), l = u.getBlock(c.id);
|
|
1123
|
-
l.size = { width: d.width, height: d.height, x: 0, y: 0, node: r }, u.setBlock(l), r.remove();
|
|
1124
|
-
}
|
|
1125
|
-
h(we, "calculateBlockSize");
|
|
1126
|
-
async function ve(e, a, u) {
|
|
1127
|
-
const c = ce(a, u, !0);
|
|
1128
|
-
u.getBlock(c.id).type !== "space" && (await xe(e, c), a.intersect = c == null ? void 0 : c.intersect, Be(c));
|
|
1129
|
-
}
|
|
1130
|
-
h(ve, "insertBlockPositioned");
|
|
1131
|
-
async function Z(e, a, u, c) {
|
|
1132
|
-
for (const r of a)
|
|
1133
|
-
await c(e, r, u), r.children && await Z(e, r.children, u, c);
|
|
1134
|
-
}
|
|
1135
|
-
h(Z, "performOperations");
|
|
1136
|
-
async function Ne(e, a, u) {
|
|
1137
|
-
await Z(e, a, u, we);
|
|
1138
|
-
}
|
|
1139
|
-
h(Ne, "calculateBlockSizes");
|
|
1140
|
-
async function $e(e, a, u) {
|
|
1141
|
-
await Z(e, a, u, ve);
|
|
1142
|
-
}
|
|
1143
|
-
h($e, "insertBlocks");
|
|
1144
|
-
async function Ie(e, a, u, c, r) {
|
|
1145
|
-
const d = new Xe({
|
|
1146
|
-
multigraph: !0,
|
|
1147
|
-
compound: !0
|
|
1148
|
-
});
|
|
1149
|
-
d.setGraph({
|
|
1150
|
-
rankdir: "TB",
|
|
1151
|
-
nodesep: 10,
|
|
1152
|
-
ranksep: 10,
|
|
1153
|
-
marginx: 8,
|
|
1154
|
-
marginy: 8
|
|
1155
|
-
});
|
|
1156
|
-
for (const l of u)
|
|
1157
|
-
l.size && d.setNode(l.id, {
|
|
1158
|
-
width: l.size.width,
|
|
1159
|
-
height: l.size.height,
|
|
1160
|
-
intersect: l.intersect
|
|
1161
|
-
});
|
|
1162
|
-
for (const l of a)
|
|
1163
|
-
if (l.start && l.end) {
|
|
1164
|
-
const b = c.getBlock(l.start), x = c.getBlock(l.end);
|
|
1165
|
-
if (b != null && b.size && x != null && x.size) {
|
|
1166
|
-
const p = b.size, S = x.size, k = [
|
|
1167
|
-
{ x: p.x, y: p.y },
|
|
1168
|
-
{ x: p.x + (S.x - p.x) / 2, y: p.y + (S.y - p.y) / 2 },
|
|
1169
|
-
{ x: S.x, y: S.y }
|
|
1170
|
-
];
|
|
1171
|
-
ze(
|
|
1172
|
-
e,
|
|
1173
|
-
{ v: l.start, w: l.end, name: l.id },
|
|
1174
|
-
{
|
|
1175
|
-
...l,
|
|
1176
|
-
arrowTypeEnd: l.arrowTypeEnd,
|
|
1177
|
-
arrowTypeStart: l.arrowTypeStart,
|
|
1178
|
-
points: k,
|
|
1179
|
-
classes: "edge-thickness-normal edge-pattern-solid flowchart-link LS-a1 LE-b1"
|
|
1180
|
-
},
|
|
1181
|
-
void 0,
|
|
1182
|
-
"block",
|
|
1183
|
-
d,
|
|
1184
|
-
r
|
|
1185
|
-
), l.label && (await Te(e, {
|
|
1186
|
-
...l,
|
|
1187
|
-
label: l.label,
|
|
1188
|
-
labelStyle: "stroke: #333; stroke-width: 1.5px;fill:none;",
|
|
1189
|
-
arrowTypeEnd: l.arrowTypeEnd,
|
|
1190
|
-
arrowTypeStart: l.arrowTypeStart,
|
|
1191
|
-
points: k,
|
|
1192
|
-
classes: "edge-thickness-normal edge-pattern-solid flowchart-link LS-a1 LE-b1"
|
|
1193
|
-
}), Re(
|
|
1194
|
-
{ ...l, x: k[1].x, y: k[1].y },
|
|
1195
|
-
{
|
|
1196
|
-
originalPath: k
|
|
1197
|
-
}
|
|
1198
|
-
));
|
|
1199
|
-
}
|
|
1200
|
-
}
|
|
1201
|
-
}
|
|
1202
|
-
h(Ie, "insertEdges");
|
|
1203
|
-
var yt = /* @__PURE__ */ h(function(e, a) {
|
|
1204
|
-
return a.db.getClasses();
|
|
1205
|
-
}, "getClasses"), bt = /* @__PURE__ */ h(async function(e, a, u, c) {
|
|
1206
|
-
const { securityLevel: r, block: d } = ne(), l = c.db;
|
|
1207
|
-
let b;
|
|
1208
|
-
r === "sandbox" && (b = H("#i" + a));
|
|
1209
|
-
const x = r === "sandbox" ? H(b.nodes()[0].contentDocument.body) : H("body"), p = r === "sandbox" ? x.select(`[id="${a}"]`) : H(`[id="${a}"]`);
|
|
1210
|
-
Ae(p, ["point", "circle", "cross"], c.type, a);
|
|
1211
|
-
const S = l.getBlocks(), k = l.getBlocksFlat(), O = l.getEdges(), E = p.insert("g").attr("class", "block");
|
|
1212
|
-
await Ne(E, S, l);
|
|
1213
|
-
const N = De(l);
|
|
1214
|
-
if (await $e(E, S, l), await Ie(E, O, k, l, a), N) {
|
|
1215
|
-
const f = N, w = Math.max(1, Math.round(0.125 * (f.width / f.height))), R = f.height + w + 10, v = f.width + 10, { useMaxWidth: _ } = d;
|
|
1216
|
-
Ke(p, R, v, !!_), L.debug("Here Bounds", N, f), p.attr(
|
|
1217
|
-
"viewBox",
|
|
1218
|
-
`${f.x - 5} ${f.y - 5} ${f.width + 10} ${f.height + 10}`
|
|
1219
|
-
);
|
|
1220
|
-
}
|
|
1221
|
-
}, "draw"), xt = {
|
|
1222
|
-
draw: bt,
|
|
1223
|
-
getClasses: yt
|
|
1224
|
-
}, Et = {
|
|
1225
|
-
parser: je,
|
|
1226
|
-
db: ht,
|
|
1227
|
-
renderer: xt,
|
|
1228
|
-
styles: gt
|
|
1229
|
-
};
|
|
1230
|
-
export {
|
|
1231
|
-
Et as diagram
|
|
1232
|
-
};
|