@pi-outpost/embed 0.15.0 → 0.16.1

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.
Files changed (344) hide show
  1. package/dist/PdfViewer-BEdoeHbS.cjs +1 -0
  2. package/dist/{PdfViewer-BHP5lV-o.js → PdfViewer-DvoTT6jM.js} +5 -5
  3. package/dist/{abnfDiagram-N423BO3Z-WMOVzCba.js → abnfDiagram-VCTEODGH-CYuCmqs8.js} +6 -6
  4. package/dist/abnfDiagram-VCTEODGH-SjZtzoAs.cjs +1 -0
  5. package/dist/{arc-BBnpgwVQ.js → arc-CtDF59mU.js} +8 -6
  6. package/dist/arc-Dh2Zrypi.cjs +1 -0
  7. package/dist/architecture-7GRP2DOG-BtgYGXkq.cjs +1 -0
  8. package/dist/architecture-7GRP2DOG-DBQ9eYgM.js +3 -0
  9. package/dist/{architectureDiagram-T3A2C74G-BH-F8FzB.js → architectureDiagram-5GKGNRK7-D2-hmLgN.js} +327 -318
  10. package/dist/architectureDiagram-5GKGNRK7-wrDPdf3y.cjs +36 -0
  11. package/dist/blockDiagram-OSKFZWR5-Boo8WJyt.cjs +129 -0
  12. package/dist/blockDiagram-OSKFZWR5-Bvi4xQOy.js +1922 -0
  13. package/dist/{browser-CynjNfkw.js → browser-BmmG9yeb.js} +40 -34
  14. package/dist/{browser-CAyUayTx.cjs → browser-CUQnQIhV.cjs} +5 -5
  15. package/dist/c-AHDGPWiJ.cjs +1 -0
  16. package/dist/{c-Cw4FsAeJ.js → c-BCMbpktW.js} +42 -31
  17. package/dist/c4Diagram-7LVT6UL2-BCrC0RQo.cjs +38 -0
  18. package/dist/{c4Diagram-5PPSVZJV-Cfnl6tZM.js → c4Diagram-7LVT6UL2-CU4tNaf1.js} +751 -703
  19. package/dist/{channel-Bq-0ENlK.js → channel-Cuipqk56.js} +1 -1
  20. package/dist/channel-DcrLLvcO.cjs +1 -0
  21. package/dist/{chunk-JQJVKLGR-CZorbEP3.js → chunk-3NF5O7KM-B-2znsHr.js} +155 -115
  22. package/dist/chunk-3NF5O7KM-B-DpUW2r.cjs +168 -0
  23. package/dist/chunk-4HAMMTFA-CtkrBT7X.cjs +62 -0
  24. package/dist/chunk-4HAMMTFA-dRm_HqMI.js +4188 -0
  25. package/dist/chunk-75Z2AOVW-DOXS9ORa.cjs +2 -0
  26. package/dist/{chunk-NSK5VX7P-DPxIxDdV.js → chunk-75Z2AOVW-Eg_bFxBJ.js} +60 -96
  27. package/dist/chunk-DU6HZSFF-3Hhp3Fo5.cjs +127 -0
  28. package/dist/{chunk-I66GZJ75-DexfhZwA.js → chunk-DU6HZSFF-CaHy-FdL.js} +527 -478
  29. package/dist/{chunk-2GRJ4B5K-DzaxUd3W.cjs → chunk-F27PBJKO-3UPgzIlN.cjs} +1 -1
  30. package/dist/{chunk-2GRJ4B5K-DXwE-yr5.js → chunk-F27PBJKO-BriqLvNp.js} +4 -4
  31. package/dist/{chunk-KEIR6QF5-BVnxrdHo.js → chunk-FOHPRMQF-BNNbqxGX.js} +424 -356
  32. package/dist/chunk-FOHPRMQF-tmTlwTeH.cjs +161 -0
  33. package/dist/chunk-GMAD6QVW-B6uvB_wz.cjs +72 -0
  34. package/dist/{chunk-WRU74C26-D4huAZcy.js → chunk-GMAD6QVW-DCCx2Rg1.js} +503 -267
  35. package/dist/chunk-GVQU2GXP-BRMv2gX3.js +37 -0
  36. package/dist/chunk-GVQU2GXP-iZT_vNLp.cjs +1 -0
  37. package/dist/{chunk-GF5L2VYU-BPBMCCz5.js → chunk-HLEWEB6X-DlG0X171.js} +16 -16
  38. package/dist/{chunk-GF5L2VYU-DgG-wovM.cjs → chunk-HLEWEB6X-aqFoPl02.cjs} +4 -4
  39. package/dist/chunk-L3NEJ4N5-DkoFQHrz.js +245 -0
  40. package/dist/chunk-L3NEJ4N5-vW3qRjIb.cjs +1 -0
  41. package/dist/{chunk-7Z6QIM7H-CIoK8R3m.js → chunk-OSK3NFVY-CxjvZYNR.js} +232 -150
  42. package/dist/chunk-OSK3NFVY-DU2FGOlI.cjs +10 -0
  43. package/dist/chunk-P2QGCYS3-DWeL9spl.cjs +1 -0
  44. package/dist/{chunk-W5SLKNZC-Djmw_p6f.js → chunk-P2QGCYS3-uCJfSNHC.js} +19 -19
  45. package/dist/{chunk-KBJHAD2P-CthZVYG5.cjs → chunk-POPQ4Y6H-BRQPB1-9.cjs} +1 -1
  46. package/dist/{chunk-KBJHAD2P-BlQyFndF.js → chunk-POPQ4Y6H-D2Z11lA3.js} +3 -3
  47. package/dist/{chunk-4I5QYGJK-LCSWSJfh.cjs → chunk-PWAF6VOD-CZZKCekP.cjs} +1 -1
  48. package/dist/{chunk-4I5QYGJK-JZmvuONC.js → chunk-PWAF6VOD-j4sFqhOF.js} +7 -9
  49. package/dist/{chunk-6Q2QTUOP-C5n08EA-.cjs → chunk-SVP7TREG-CTKSOFlx.cjs} +2 -2
  50. package/dist/{chunk-6Q2QTUOP-DvJxCxMM.js → chunk-SVP7TREG-CtJsmAIb.js} +4 -4
  51. package/dist/{chunk-XXDRQBXY-DsVp5qjg.js → chunk-XXDRQBXY-fOrVUHLI.js} +1 -1
  52. package/dist/{chunk-XXDRQBXY-gWcN0uCZ.cjs → chunk-XXDRQBXY-yMT3rT5Y.cjs} +1 -1
  53. package/dist/chunk-ZLD2IHE6-BZxKwfuv.cjs +231 -0
  54. package/dist/{chunk-5RXB4S5H-JthGygoA.js → chunk-ZLD2IHE6-tqumZV0E.js} +44 -48
  55. package/dist/classDiagram-CYGNFDIV-CQLOfBmz.cjs +1 -0
  56. package/dist/classDiagram-CYGNFDIV-DIu4rTyR.js +30 -0
  57. package/dist/classDiagram-v2-TLXNO2FR-BsYK4QnI.js +30 -0
  58. package/dist/classDiagram-v2-TLXNO2FR-CQLOfBmz.cjs +1 -0
  59. package/dist/{core-BO2hTFeF.js → core-B9pe29T7.js} +8 -7
  60. package/dist/core-BrupIPpc.cjs +3 -0
  61. package/dist/{cose-bilkent-JH36ORCC-BFo5zomD.js → cose-bilkent-JH36ORCC-1Ad4jvll.js} +65 -62
  62. package/dist/cose-bilkent-JH36ORCC-Cc2qvpLA.cjs +1 -0
  63. package/dist/{cpp-CeyO6lBG.js → cpp-CL2nTisp.js} +25 -14
  64. package/dist/cpp-DpAsh4uT.cjs +1 -0
  65. package/dist/{csharp-Ck6Fet_o.js → csharp-CK75iOSn.js} +37 -37
  66. package/dist/csharp-TOr_W-v9.cjs +1 -0
  67. package/dist/css-4wogsuks.cjs +1 -0
  68. package/dist/{css-ClSGJRju.js → css-DJr8nnnu.js} +6 -1
  69. package/dist/cynefin-OW5HDTMX-BmLJra-4.cjs +1 -0
  70. package/dist/cynefin-OW5HDTMX-CfYr_cVN.js +3 -0
  71. package/dist/{cynefinDiagram-MW4NZA55-CB4ZzMEN.js → cynefinDiagram-5FMLGOSQ-BSRTnQvp.js} +29 -23
  72. package/dist/cynefinDiagram-5FMLGOSQ-GvGZco52.cjs +62 -0
  73. package/dist/{cytoscape.esm-asYnbYTy.js → cytoscape.esm-Cq7KPj0t.js} +2480 -2480
  74. package/dist/cytoscape.esm-uHsEX1XI.cjs +321 -0
  75. package/dist/{dagre-BpqwxFKp.js → dagre-BMKbPnPh.js} +689 -456
  76. package/dist/dagre-EEW2OxRU.cjs +1 -0
  77. package/dist/dagre-OS7QT2EB-DFi6nnZc.cjs +4 -0
  78. package/dist/dagre-OS7QT2EB-DcpSzxsR.js +425 -0
  79. package/dist/{defaultLocale-up9-vqhM.js → defaultLocale-B4ncmkvI.js} +1 -4
  80. package/dist/defaultLocale-ybN1Vtvg.cjs +1 -0
  81. package/dist/diagram-S7CK7UJ4-BA67ZpiO.cjs +30 -0
  82. package/dist/{diagram-7IWD3JNH-Cschro8T.js → diagram-S7CK7UJ4-Cx2fQdp6.js} +39 -38
  83. package/dist/{diagram-UB23O5K3-D-yL2fvd.js → diagram-UQ7AKVKN-CvQH-Box.js} +12 -12
  84. package/dist/diagram-UQ7AKVKN-OteiyKD9.cjs +41 -0
  85. package/dist/{diagram-B4RE2ZJO-DKbKOwkP.cjs → diagram-VSXAHHWV-BjsZz1JJ.cjs} +1 -1
  86. package/dist/{diagram-B4RE2ZJO-B94mhDmV.js → diagram-VSXAHHWV-CCpCVOIq.js} +6 -6
  87. package/dist/diagram-VX7I27RA-Bx9fEhR0.cjs +24 -0
  88. package/dist/{diagram-Q27KOJAE-Cqn3IliP.js → diagram-VX7I27RA-HE5nQAXN.js} +64 -62
  89. package/dist/{diagram-LBJQPF4R-D0MEwBt6.js → diagram-Z3DM3KII-BEu4c4pP.js} +11 -11
  90. package/dist/diagram-Z3DM3KII-jy895UiZ.cjs +24 -0
  91. package/dist/{dist-D6LMt8nW.js → dist-Dtt9eY41.js} +1 -1
  92. package/dist/{dist-DNGlMOWd.cjs → dist-Dwv2VYAL.cjs} +1 -1
  93. package/dist/{ebnfDiagram-BXEA7PRR-B2HDWFYF.js → ebnfDiagram-PWID7BFC-B06rGL3A.js} +6 -6
  94. package/dist/ebnfDiagram-PWID7BFC-BQZKHpUr.cjs +1 -0
  95. package/dist/erDiagram-2YWLMYGG-CuEEIv1I.cjs +99 -0
  96. package/dist/{erDiagram-JOGREHBK-Badv_hu8.js → erDiagram-2YWLMYGG-IL4IhNXb.js} +1046 -807
  97. package/dist/eventmodeling-NTZA5JFV-D57pc07U.cjs +1 -0
  98. package/dist/eventmodeling-NTZA5JFV-DUbGOrrF.js +3 -0
  99. package/dist/flowDiagram-T62WH6J4-DdJo3Te1.js +16 -0
  100. package/dist/flowDiagram-T62WH6J4-YyzE7N5Z.cjs +1 -0
  101. package/dist/{ganttDiagram-PKOTCBZU-By0w7TmO.js → ganttDiagram-EL5Y4UJY-CIBhrOW6.js} +26 -36
  102. package/dist/ganttDiagram-EL5Y4UJY-PTWIufq8.cjs +292 -0
  103. package/dist/gitGraph-4MIJSDKK-CY4IuhXZ.js +3 -0
  104. package/dist/gitGraph-4MIJSDKK-D97vaDci.cjs +1 -0
  105. package/dist/{gitGraphDiagram-DS77QQ5N-B1uJYchG.js → gitGraphDiagram-WWUBYQGX-CjeedV4i.js} +16 -12
  106. package/dist/{gitGraphDiagram-DS77QQ5N-Fw8a66di.cjs → gitGraphDiagram-WWUBYQGX-D5yozoaq.cjs} +3 -3
  107. package/dist/{go-rg7jg1mu.js → go-B2E3I9E3.js} +4 -0
  108. package/dist/{go-D-pz-dmd.cjs → go-BDkypVKn.cjs} +1 -1
  109. package/dist/{graphlib-CkkG5MuS.cjs → graphlib-BaETKKSa.cjs} +1 -1
  110. package/dist/{graphlib-B0GbLif1.js → graphlib-CQa_B3rm.js} +5 -5
  111. package/dist/info-A6RAGUB7-Cx39sHYM.js +3 -0
  112. package/dist/info-A6RAGUB7-DT06-FB3.cjs +1 -0
  113. package/dist/{infoDiagram-6WML65LV-CkWm_KTB.js → infoDiagram-FKFFQAWI-BalzsRT4.js} +6 -6
  114. package/dist/infoDiagram-FKFFQAWI-NPtQF4vB.cjs +2 -0
  115. package/dist/init-BJdqMO10.cjs +1 -0
  116. package/dist/{init-CirqLVcp.js → init-CuXVI8k2.js} +1 -3
  117. package/dist/{ishikawaDiagram-WSZJBQD7-DTeFqC8L.js → ishikawaDiagram-5VMMS53U-BC2vrJSo.js} +14 -14
  118. package/dist/{ishikawaDiagram-WSZJBQD7-CQWHhozU.cjs → ishikawaDiagram-5VMMS53U-DN23jmFw.cjs} +3 -3
  119. package/dist/java-DFBMvIUR.cjs +1 -0
  120. package/dist/{java-HguKEfA2.js → java-T8Nr25pJ.js} +27 -22
  121. package/dist/{javascript-C8NCH8DE.js → javascript-CIP6I0eT.js} +6 -4
  122. package/dist/javascript-Gn0piXHk.cjs +1 -0
  123. package/dist/{journeyDiagram-NVQOT4AX-Cg6C3dFy.js → journeyDiagram-EYS64GPL-CLMBONXO.js} +14 -14
  124. package/dist/{journeyDiagram-NVQOT4AX-DLomv_vN.cjs → journeyDiagram-EYS64GPL-Co9rp-Q1.cjs} +3 -3
  125. package/dist/json-DOqjN5nI.js +42 -0
  126. package/dist/json-LMrXTXZM.cjs +1 -0
  127. package/dist/{kanban-definition-27J2QSJJ-B9Fog3W7.cjs → kanban-definition-UXKFOSKX-DzKPVjAq.cjs} +5 -5
  128. package/dist/{kanban-definition-27J2QSJJ-Bb7nb0gX.js → kanban-definition-UXKFOSKX-SNTHZo65.js} +31 -31
  129. package/dist/katex-CEF6MvLx.cjs +257 -0
  130. package/dist/katex-ohtLbxXc.js +21977 -0
  131. package/dist/{line-yqcJYv29.js → line-4_dF7rOW.js} +2 -2
  132. package/dist/{line-pOZ7Sdj7.cjs → line-D6gR53Af.cjs} +1 -1
  133. package/dist/{linear-CVhyaVzf.js → linear-C1gZJMVz.js} +8 -9
  134. package/dist/linear-Nt9BuHfn.cjs +1 -0
  135. package/dist/{markdown-CzgRofaE.js → markdown-BW-hB0s4.js} +2 -5
  136. package/dist/markdown-CTkHoGys.cjs +1 -0
  137. package/dist/{mermaid-parser.core-Cgsz0CdK.cjs → mermaid-parser.core-CBiDgMLi.cjs} +2 -2
  138. package/dist/{mermaid-parser.core-B8DQcCaz.js → mermaid-parser.core-DLNlSmfj.js} +31 -31
  139. package/dist/mermaid.core-B3QcBB1O.cjs +43 -0
  140. package/dist/mermaid.core-BIqYA7q2.js +3012 -0
  141. package/dist/{mindmap-definition-FAOFIHXS-9wa1P9NT.cjs → mindmap-definition-THT77NOG-Bo3D8RRT.cjs} +4 -4
  142. package/dist/{mindmap-definition-FAOFIHXS-DFG0Zs_1.js → mindmap-definition-THT77NOG-BtDuvAQ_.js} +27 -29
  143. package/dist/{ordinal-D0iNZ43g.cjs → ordinal-Bm_chml2.cjs} +1 -1
  144. package/dist/{ordinal-C1oQzsBn.js → ordinal-D3SPD7Kk.js} +2 -2
  145. package/dist/packet-AYTQ26CC-BGX2McoE.cjs +1 -0
  146. package/dist/packet-AYTQ26CC-IgkU2VYK.js +3 -0
  147. package/dist/path-DIS6ck99.cjs +1 -0
  148. package/dist/{path-mKa7UESy.js → path-PGqhG0Rz.js} +10 -11
  149. package/dist/{pdf-DyDm1M1B.js → pdf-B6zVkETi.js} +182 -220
  150. package/dist/pdf-cYqATYeW.cjs +54 -0
  151. package/dist/pegDiagram-XKGWAZYB-Cx-wZf4B.cjs +1 -0
  152. package/dist/{pegDiagram-VL7TDLO6-XOjprD-j.js → pegDiagram-XKGWAZYB-Ucd8o52_.js} +6 -6
  153. package/dist/{php-C9FOMGEA.js → php-Cn7gPoxt.js} +6 -0
  154. package/dist/{php-j6EhDZDE.cjs → php-DQmdBizx.cjs} +1 -1
  155. package/dist/pi-outpost-embed.cjs +62 -62
  156. package/dist/pi-outpost-embed.js +5192 -5152
  157. package/dist/pie-WAS4IAKB-CEyPj3UJ.cjs +1 -0
  158. package/dist/pie-WAS4IAKB-odE0A7fM.js +3 -0
  159. package/dist/pieDiagram-E7YTZNPT-BC-pW4cK.cjs +39 -0
  160. package/dist/{pieDiagram-7S7Q4E2Y-Cwe7fXgJ.js → pieDiagram-E7YTZNPT-DSx5wFMY.js} +20 -22
  161. package/dist/{python-DKAazMIE.js → python-BUfdXZqP.js} +6 -6
  162. package/dist/python-CrsffQw-.cjs +1 -0
  163. package/dist/{quadrantDiagram-CIZ2JOQS-CbaMHmYB.js → quadrantDiagram-AXDQQJYC-D8Y50xmh.js} +11 -11
  164. package/dist/{quadrantDiagram-CIZ2JOQS-CDfrU0dm.cjs → quadrantDiagram-AXDQQJYC-zPfqM9Q4.cjs} +2 -2
  165. package/dist/radar-RG4KPBEZ-ClYJNseM.cjs +1 -0
  166. package/dist/radar-RG4KPBEZ-DqbNqlJH.js +3 -0
  167. package/dist/railroad-74A4TZTK-Dzt4afqg.js +3 -0
  168. package/dist/railroad-74A4TZTK-hSKcr2y6.cjs +1 -0
  169. package/dist/railroad-abnf-HS5TGJTU-gq2RybTO.js +3 -0
  170. package/dist/railroad-abnf-HS5TGJTU-irEXz0eI.cjs +1 -0
  171. package/dist/railroad-ebnf-LZEXJU2U-CG19A1Xj.cjs +1 -0
  172. package/dist/railroad-ebnf-LZEXJU2U-D-pNpFrj.js +3 -0
  173. package/dist/railroad-peg-WCYAUIDC-BLdK3QCV.cjs +1 -0
  174. package/dist/railroad-peg-WCYAUIDC-Bo7wfe--.js +3 -0
  175. package/dist/railroadDiagram-O6MQD6OU-3JsgWyLe.cjs +1 -0
  176. package/dist/{railroadDiagram-AXF67PYL-CVXAv-Uu.js → railroadDiagram-O6MQD6OU-BTg2KtZO.js} +6 -6
  177. package/dist/{requirementDiagram-LRYGKXZP-Bzik4kgS.js → requirementDiagram-IS5BZ75X-C1OrS7DV.js} +25 -24
  178. package/dist/{requirementDiagram-LRYGKXZP-BGlGCftH.cjs → requirementDiagram-IS5BZ75X-D1BMLxZg.cjs} +4 -4
  179. package/dist/{rolldown-runtime-Dqa2HsxW.js → rolldown-runtime-B0aSnxlc.js} +2 -2
  180. package/dist/{rolldown-runtime-mLOUI7ql.cjs → rolldown-runtime-DF3sbh8G.cjs} +1 -1
  181. package/dist/{rough.esm-r0QOSzHM.cjs → rough.esm-ChRLLRha.cjs} +1 -1
  182. package/dist/{rough.esm-C5XyeDCN.js → rough.esm-D2JJJ0Ot.js} +60 -51
  183. package/dist/{ruby-ClR4zp-1.cjs → ruby-B1inj-Q8.cjs} +1 -1
  184. package/dist/{ruby-BAUeZQKZ.js → ruby-DYVKXPXk.js} +1 -1
  185. package/dist/{rust-DiTjMjP5.js → rust-BihXqTNi.js} +38 -25
  186. package/dist/rust-D39kF6re.cjs +1 -0
  187. package/dist/{sankeyDiagram-W5VNT64P-OeLUMuT6.cjs → sankeyDiagram-P5KCCOFB-D5BHxcxB.cjs} +2 -2
  188. package/dist/{sankeyDiagram-W5VNT64P-_8xZpo45.js → sankeyDiagram-P5KCCOFB-DTnkE4oO.js} +17 -15
  189. package/dist/{scss-CckAvQOx.js → scss-CzfrZ5cc.js} +6 -1
  190. package/dist/scss-t-vKjRr4.cjs +1 -0
  191. package/dist/{sequenceDiagram-SI44F4Z6-X4mzY21C.js → sequenceDiagram-WJ2MYXX4-Ba-z2rSx.js} +36 -48
  192. package/dist/sequenceDiagram-WJ2MYXX4-DlVJIIIl.cjs +162 -0
  193. package/dist/{sizeCapture-X5ZJPWSS-DKbHZNyz.js → sizeCapture-INFHLROL-B5Lg3qGn.js} +1 -1
  194. package/dist/{src-DJ4x3y2O.js → src-BMMAFeC3.js} +288 -291
  195. package/dist/src-D9o9TOtH.cjs +1 -0
  196. package/dist/{stateDiagram-OKZ733FA-CMM1orC_.js → stateDiagram-XQSTLZYL-BtcUS_dg.js} +21 -21
  197. package/dist/stateDiagram-XQSTLZYL-mSOJx_Wv.cjs +1 -0
  198. package/dist/stateDiagram-v2-IH3M54BS-DAa6SuH4.cjs +1 -0
  199. package/dist/stateDiagram-v2-IH3M54BS-E_Rhduzm.js +30 -0
  200. package/dist/swimlanes-V6O3JKXN-BooYLGtP.cjs +1 -0
  201. package/dist/{swimlanes-SLNWSIFB-C7LLK1V2.js → swimlanes-V6O3JKXN-xxlpXv1f.js} +1022 -1109
  202. package/dist/swimlanesDiagram-JKAHXJPX-BaMCBEUQ.cjs +8 -0
  203. package/dist/swimlanesDiagram-JKAHXJPX-DyQwD-QO.js +30 -0
  204. package/dist/timeline-definition-24CTP7MA-D6sSmprF.cjs +120 -0
  205. package/dist/{timeline-definition-Z64GVDOM-Cgc-2OmU.js → timeline-definition-24CTP7MA-Dr8ouzBO.js} +19 -19
  206. package/dist/treeView-Q6P3EWNA-BmkQxkVU.cjs +1 -0
  207. package/dist/treeView-Q6P3EWNA-CPEEGmNv.js +3 -0
  208. package/dist/treemap-WGGIJYW6-CGULpntJ.js +3 -0
  209. package/dist/treemap-WGGIJYW6-Dmi9HAR8.cjs +1 -0
  210. package/dist/typescript-BarIi8q9.cjs +1 -0
  211. package/dist/{typescript-mdYq8uqf.js → typescript-C93MG6Zk.js} +26 -24
  212. package/dist/vennDiagram-4TSXK5OY-D5MMYyff.cjs +34 -0
  213. package/dist/{vennDiagram-T6HMQDX7-BWj1BhMh.js → vennDiagram-4TSXK5OY-i6B1rhUA.js} +15 -15
  214. package/dist/wardley-WFR3VGLG-9zHZLKh9.js +3 -0
  215. package/dist/wardley-WFR3VGLG-B6YvLPJA.cjs +1 -0
  216. package/dist/{wardleyDiagram-T6FBY63Y-d_t4oVLE.js → wardleyDiagram-VM6X3IG4-1SFyFcXg.js} +46 -46
  217. package/dist/{wardleyDiagram-T6FBY63Y-OomvVIFj.cjs → wardleyDiagram-VM6X3IG4-DzZNzmB8.cjs} +36 -36
  218. package/dist/{workspacePath-BScUv3M_.js → workspacePath-CfDl0V4n.js} +1 -1
  219. package/dist/{workspacePath-kqTwbSP1.cjs → workspacePath-EgAFT36l.cjs} +1 -1
  220. package/dist/{xml-BamqaQOf.cjs → xml-B0vjUBag.cjs} +1 -1
  221. package/dist/{xml-DVYfB8uY.js → xml-GxASmsT7.js} +2 -6
  222. package/dist/{xychartDiagram-ELKLHX3M-BOSOdubI.cjs → xychartDiagram-S5SC5T6Z-BOsjfYJh.cjs} +4 -4
  223. package/dist/{xychartDiagram-ELKLHX3M-Ce-ai3a8.js → xychartDiagram-S5SC5T6Z-D6QDBBGJ.js} +263 -158
  224. package/dist/{yaml-_1BORZTQ.js → yaml-CHhF1kKQ.js} +25 -25
  225. package/dist/yaml-DZS9gzaB.cjs +1 -0
  226. package/package.json +2 -2
  227. package/dist/PdfViewer-BBmVq73v.cjs +0 -1
  228. package/dist/abnfDiagram-N423BO3Z-DOZfbvMH.cjs +0 -1
  229. package/dist/arc-DcUn9_NX.cjs +0 -1
  230. package/dist/architecture-TIHT7OUA-D-35jO9Y.cjs +0 -1
  231. package/dist/architecture-TIHT7OUA-DDyMqjR1.js +0 -3
  232. package/dist/architectureDiagram-T3A2C74G-RJUsi-Sx.cjs +0 -36
  233. package/dist/blockDiagram-VBNYF7ZC-Bz8oqXJQ.cjs +0 -132
  234. package/dist/blockDiagram-VBNYF7ZC-DYMmF9bV.js +0 -3160
  235. package/dist/c-4QgYfi8K.cjs +0 -1
  236. package/dist/c4Diagram-5PPSVZJV-DM6x-BYG.cjs +0 -10
  237. package/dist/channel-DoxF0tZj.cjs +0 -1
  238. package/dist/chunk-3NCLNEKW-CO28EZBG.cjs +0 -1
  239. package/dist/chunk-3NCLNEKW-dTH67Ne_.js +0 -10
  240. package/dist/chunk-5RXB4S5H-B5b3tdRl.cjs +0 -231
  241. package/dist/chunk-7BUUIJ7U-BFUeQBoS.js +0 -82
  242. package/dist/chunk-7BUUIJ7U-MzS1pW_S.cjs +0 -1
  243. package/dist/chunk-7Z6QIM7H-Ctljl7Vq.cjs +0 -10
  244. package/dist/chunk-I66GZJ75-CrpH-Rmq.cjs +0 -127
  245. package/dist/chunk-J7OUQ5F2-DhMpZbAr.js +0 -57
  246. package/dist/chunk-J7OUQ5F2-b-MfW4O9.cjs +0 -1
  247. package/dist/chunk-JQJVKLGR-2AQwaWbm.cjs +0 -156
  248. package/dist/chunk-KEIR6QF5-Cy_QBNG6.cjs +0 -161
  249. package/dist/chunk-NSK5VX7P-D5CepZHI.cjs +0 -2
  250. package/dist/chunk-QR6OTTB3-CQ_jjYb-.js +0 -3736
  251. package/dist/chunk-QR6OTTB3-DSg3ZWNW.cjs +0 -62
  252. package/dist/chunk-RYQCIY6F-27FDzaaE.cjs +0 -1
  253. package/dist/chunk-RYQCIY6F-C-YC3QS_.js +0 -239
  254. package/dist/chunk-UBXNYLIW-BBncokef.js +0 -32
  255. package/dist/chunk-UBXNYLIW-DlNyCWjj.cjs +0 -1
  256. package/dist/chunk-W5SLKNZC-bHBkM2CL.cjs +0 -1
  257. package/dist/chunk-WRU74C26-9KZxhHnn.cjs +0 -70
  258. package/dist/chunk-ZIRB5QZD-BU6XQUGC.cjs +0 -32
  259. package/dist/chunk-ZIRB5QZD-Cj-y77rH.js +0 -1146
  260. package/dist/classDiagram-JCYQIIEL-DeHc-x8i.cjs +0 -1
  261. package/dist/classDiagram-JCYQIIEL-DlHKjVPc.js +0 -30
  262. package/dist/classDiagram-v2-OCEON4UE-DeHc-x8i.cjs +0 -1
  263. package/dist/classDiagram-v2-OCEON4UE-DlhHN57j.js +0 -30
  264. package/dist/core-2nR1zkKb.cjs +0 -3
  265. package/dist/cose-bilkent-JH36ORCC-AyWV1dUo.cjs +0 -1
  266. package/dist/cpp-BUtp-HE2.cjs +0 -1
  267. package/dist/csharp-BJu4kEpt.cjs +0 -1
  268. package/dist/css-DeFr0lev.cjs +0 -1
  269. package/dist/cynefin-VYW2F7L2-DHhUPDgc.cjs +0 -1
  270. package/dist/cynefin-VYW2F7L2-DwiVqvhg.js +0 -3
  271. package/dist/cynefinDiagram-MW4NZA55-By102s5I.cjs +0 -62
  272. package/dist/cytoscape.esm-ByjvpCPI.cjs +0 -321
  273. package/dist/dagre-BBlCxSvR.cjs +0 -1
  274. package/dist/dagre-VZM6K2ZE-5zrH2LqV.js +0 -328
  275. package/dist/dagre-VZM6K2ZE-CNe7-jhy.cjs +0 -4
  276. package/dist/defaultLocale-u9yUoUmE.cjs +0 -1
  277. package/dist/diagram-7IWD3JNH-CSzLXhRw.cjs +0 -30
  278. package/dist/diagram-LBJQPF4R-DgD0a56I.cjs +0 -24
  279. package/dist/diagram-Q27KOJAE-DNWfiaD5.cjs +0 -24
  280. package/dist/diagram-UB23O5K3-DguyM6v_.cjs +0 -41
  281. package/dist/ebnfDiagram-BXEA7PRR-DuJrkFn-.cjs +0 -1
  282. package/dist/erDiagram-JOGREHBK-DtyaQROs.cjs +0 -85
  283. package/dist/eventmodeling-45OFAUF4-COTtdYDJ.js +0 -3
  284. package/dist/eventmodeling-45OFAUF4-CPEyr9kU.cjs +0 -1
  285. package/dist/flowDiagram-UKHOOZJN-C7t5VpYH.js +0 -17
  286. package/dist/flowDiagram-UKHOOZJN-CdkElxh8.cjs +0 -1
  287. package/dist/ganttDiagram-PKOTCBZU-CFgz4r57.cjs +0 -292
  288. package/dist/gitGraph-TEB2WS4Q-C3qBT0GM.js +0 -3
  289. package/dist/gitGraph-TEB2WS4Q-a8KsoPmR.cjs +0 -1
  290. package/dist/info-DKCQHKI2-BEYhR6ip.cjs +0 -1
  291. package/dist/info-DKCQHKI2-BPF6-pOb.js +0 -3
  292. package/dist/infoDiagram-6WML65LV-CB6z_iKE.cjs +0 -2
  293. package/dist/init-07zIhv_j.cjs +0 -1
  294. package/dist/java-CUN_usaq.cjs +0 -1
  295. package/dist/javascript-UZXSyUuu.cjs +0 -1
  296. package/dist/json-Cp01TR_B.js +0 -36
  297. package/dist/json-usH_MUzR.cjs +0 -1
  298. package/dist/linear-Cl2-QuPP.cjs +0 -1
  299. package/dist/map-CwPlMWPw.cjs +0 -1
  300. package/dist/map-DU12fF3s.js +0 -241
  301. package/dist/markdown-qeo95R0i.cjs +0 -1
  302. package/dist/mermaid.core-BIq27e0A.js +0 -1068
  303. package/dist/mermaid.core-DpsSj3iy.cjs +0 -10
  304. package/dist/packet-7NZHBO7P-DqvBYJTR.js +0 -3
  305. package/dist/packet-7NZHBO7P-Dz0O2bgq.cjs +0 -1
  306. package/dist/path-Kklx0M1v.cjs +0 -1
  307. package/dist/pdf-aU0TN69t.cjs +0 -54
  308. package/dist/pegDiagram-VL7TDLO6-B4FslsmM.cjs +0 -1
  309. package/dist/pie-RZYD4A2V-Hi9UdoE3.cjs +0 -1
  310. package/dist/pie-RZYD4A2V-qnruo9sH.js +0 -3
  311. package/dist/pieDiagram-7S7Q4E2Y-CNzUVS2d.cjs +0 -39
  312. package/dist/python-BYJzTRkK.cjs +0 -1
  313. package/dist/radar-I7S5WNFK-Dqdssa34.cjs +0 -1
  314. package/dist/radar-I7S5WNFK-np_pJCO-.js +0 -3
  315. package/dist/railroad-3IZDKUUU-NILjDQft.cjs +0 -1
  316. package/dist/railroad-3IZDKUUU-sjKBeXxB.js +0 -3
  317. package/dist/railroad-abnf-AHOZXSZD-BojH9sxV.cjs +0 -1
  318. package/dist/railroad-abnf-AHOZXSZD-x5cC_e_R.js +0 -3
  319. package/dist/railroad-ebnf-EBAXGLYW-2mlWpz38.js +0 -3
  320. package/dist/railroad-ebnf-EBAXGLYW-BKCSut1M.cjs +0 -1
  321. package/dist/railroad-peg-LSFZ7HO6-CsH-gnsp.cjs +0 -1
  322. package/dist/railroad-peg-LSFZ7HO6-D5vguo03.js +0 -3
  323. package/dist/railroadDiagram-AXF67PYL-EO1cBHEj.cjs +0 -1
  324. package/dist/rust-ghVvEWhm.cjs +0 -1
  325. package/dist/scss-CKxh5HRg.cjs +0 -1
  326. package/dist/sequenceDiagram-SI44F4Z6-CuaCFBtR.cjs +0 -162
  327. package/dist/src-CR--T_NF.cjs +0 -1
  328. package/dist/stateDiagram-OKZ733FA-Dq6hI_pq.cjs +0 -1
  329. package/dist/stateDiagram-v2-UEYNNEHI-BmWUstzl.js +0 -30
  330. package/dist/stateDiagram-v2-UEYNNEHI-DZULVhS9.cjs +0 -1
  331. package/dist/swimlanes-SLNWSIFB-BMS6R0BK.cjs +0 -1
  332. package/dist/swimlanesDiagram-ULZ7WXOC-DxHKX_pj.cjs +0 -8
  333. package/dist/swimlanesDiagram-ULZ7WXOC-uXMuqsao.js +0 -31
  334. package/dist/timeline-definition-Z64GVDOM-PPJqDdOy.cjs +0 -120
  335. package/dist/treeView-QDETBFTQ-Cpg_YeQ4.cjs +0 -1
  336. package/dist/treeView-QDETBFTQ-DdpEhzZX.js +0 -3
  337. package/dist/treemap-6X3UGDF4-BeCuRpkA.js +0 -3
  338. package/dist/treemap-6X3UGDF4-CFAmnKaf.cjs +0 -1
  339. package/dist/typescript-clWeqIBY.cjs +0 -1
  340. package/dist/vennDiagram-T6HMQDX7-DqY7YgNx.cjs +0 -34
  341. package/dist/wardley-OPB4EBWU-B0jnKd8x.cjs +0 -1
  342. package/dist/wardley-OPB4EBWU-DlIk2K0J.js +0 -3
  343. package/dist/yaml-bAgWofBg.cjs +0 -1
  344. /package/dist/{sizeCapture-X5ZJPWSS-bJ2ZX4Du.cjs → sizeCapture-INFHLROL-bJ2ZX4Du.cjs} +0 -0
@@ -0,0 +1,1922 @@
1
+ import { n as e } from "./chunk-Y2CYZVJY-CwsV_8W4.js";
2
+ import { m as t, p as n } from "./src-BMMAFeC3.js";
3
+ import { a as r, b as i, c as a, it as o, s, x as c } from "./chunk-DU6HZSFF-CaHy-FdL.js";
4
+ import { t as l } from "./channel-Cuipqk56.js";
5
+ import { A as u, B as d, C as f, D as p, E as m, F as h, G as g, H as _, I as v, L as y, M as b, N as x, O as S, P as C, R as w, T, U as E, V as D, W as O, b as k, j as A, k as j, l as M, v as ee, w as te, z as ne } from "./chunk-75Z2AOVW-Eg_bFxBJ.js";
6
+ import "./chunk-PWAF6VOD-j4sFqhOF.js";
7
+ import "./chunk-GMAD6QVW-DCCx2Rg1.js";
8
+ import { t as re } from "./chunk-5VM5RSS4-BMfgdMFU.js";
9
+ import "./chunk-P2QGCYS3-uCJfSNHC.js";
10
+ import "./chunk-4HAMMTFA-dRm_HqMI.js";
11
+ import { i as ie, r as N } from "./chunk-GVQU2GXP-BRMv2gX3.js";
12
+ import { a as ae, c as oe, i as se, s as ce } from "./chunk-OSK3NFVY-CxjvZYNR.js";
13
+ import { t as le } from "./graphlib-CQa_B3rm.js";
14
+ //#region ../node_modules/es-toolkit/dist/compat/predicate/isArray.mjs
15
+ function ue(e) {
16
+ return Array.isArray(e);
17
+ }
18
+ //#endregion
19
+ //#region ../node_modules/es-toolkit/dist/compat/object/clone.mjs
20
+ function de(e) {
21
+ if (k(e)) return e;
22
+ let t = g(e);
23
+ if (!fe(e)) return {};
24
+ if (ue(e)) {
25
+ let t = Array.from(e);
26
+ return e.length > 0 && typeof e[0] == "string" && Object.hasOwn(e, "index") && (t.index = e.index, t.input = e.input), t;
27
+ }
28
+ if (ee(e)) {
29
+ let t = e, n = t.constructor;
30
+ return new n(t.buffer, t.byteOffset, t.length);
31
+ }
32
+ if (t === "[object ArrayBuffer]") return new ArrayBuffer(e.byteLength);
33
+ if (t === "[object DataView]") {
34
+ let t = e, n = t.buffer, r = t.byteOffset, i = t.byteLength, a = new ArrayBuffer(i), o = new Uint8Array(n, r, i);
35
+ return new Uint8Array(a).set(o), new DataView(a);
36
+ }
37
+ if (t === "[object Boolean]" || t === "[object Number]" || t === "[object String]") {
38
+ let n = e.constructor, r = new n(e.valueOf());
39
+ return t === "[object String]" ? me(r, e) : P(r, e), r;
40
+ }
41
+ if (t === "[object Date]") return new Date(Number(e));
42
+ if (t === "[object RegExp]") {
43
+ let t = e, n = new RegExp(t.source, t.flags);
44
+ return n.lastIndex = t.lastIndex, n;
45
+ }
46
+ if (t === "[object Symbol]") return Object(Symbol.prototype.valueOf.call(e));
47
+ if (t === "[object Map]") {
48
+ let t = e, n = /* @__PURE__ */ new Map();
49
+ return t.forEach((e, t) => {
50
+ n.set(t, e);
51
+ }), n;
52
+ }
53
+ if (t === "[object Set]") {
54
+ let t = e, n = /* @__PURE__ */ new Set();
55
+ return t.forEach((e) => {
56
+ n.add(e);
57
+ }), n;
58
+ }
59
+ if (t === "[object Arguments]") {
60
+ let t = e, n = {};
61
+ return P(n, t), n.length = t.length, n[Symbol.iterator] = t[Symbol.iterator], n;
62
+ }
63
+ let n = {};
64
+ return he(n, e), P(n, e), pe(n, e), n;
65
+ }
66
+ function fe(e) {
67
+ switch (g(e)) {
68
+ case f:
69
+ case T:
70
+ case te:
71
+ case p:
72
+ case m:
73
+ case S:
74
+ case j:
75
+ case u:
76
+ case x:
77
+ case A:
78
+ case b:
79
+ case C:
80
+ case h:
81
+ case v:
82
+ case y:
83
+ case w:
84
+ case ne:
85
+ case d:
86
+ case E:
87
+ case O:
88
+ case D:
89
+ case _: return !0;
90
+ default: return !1;
91
+ }
92
+ }
93
+ function P(e, t) {
94
+ for (let n in t) Object.hasOwn(t, n) && (e[n] = t[n]);
95
+ }
96
+ function pe(e, t) {
97
+ let n = Object.getOwnPropertySymbols(t);
98
+ for (let r = 0; r < n.length; r++) {
99
+ let i = n[r];
100
+ Object.prototype.propertyIsEnumerable.call(t, i) && (e[i] = t[i]);
101
+ }
102
+ }
103
+ function me(e, t) {
104
+ let n = t.valueOf().length;
105
+ for (let r in t) Object.hasOwn(t, r) && (Number.isNaN(Number(r)) || Number(r) >= n) && (e[r] = t[r]);
106
+ }
107
+ function he(e, t) {
108
+ let n = Object.getPrototypeOf(t);
109
+ n !== null && typeof t.constructor == "function" && Object.setPrototypeOf(e, n);
110
+ }
111
+ //#endregion
112
+ //#region ../node_modules/mermaid/dist/chunks/mermaid.core/blockDiagram-OSKFZWR5.mjs
113
+ var F = (function() {
114
+ var t = /* @__PURE__ */ e(function(e, t, n, r) {
115
+ for (n ||= {}, r = e.length; r--; n[e[r]] = t);
116
+ return n;
117
+ }, "o"), n = [1, 15], r = [1, 7], i = [1, 13], a = [1, 14], o = [1, 19], s = [1, 16], c = [1, 17], l = [1, 18], u = [8, 30], d = [
118
+ 8,
119
+ 10,
120
+ 21,
121
+ 28,
122
+ 29,
123
+ 30,
124
+ 31,
125
+ 39,
126
+ 43,
127
+ 46
128
+ ], f = [1, 23], p = [1, 24], m = [
129
+ 8,
130
+ 10,
131
+ 15,
132
+ 16,
133
+ 21,
134
+ 28,
135
+ 29,
136
+ 30,
137
+ 31,
138
+ 39,
139
+ 43,
140
+ 46
141
+ ], h = [
142
+ 8,
143
+ 10,
144
+ 15,
145
+ 16,
146
+ 21,
147
+ 27,
148
+ 28,
149
+ 29,
150
+ 30,
151
+ 31,
152
+ 39,
153
+ 43,
154
+ 46
155
+ ], g = [1, 49], _ = {
156
+ trace: /* @__PURE__ */ e(function() {}, "trace"),
157
+ yy: {},
158
+ symbols_: {
159
+ error: 2,
160
+ spaceLines: 3,
161
+ SPACELINE: 4,
162
+ NL: 5,
163
+ separator: 6,
164
+ SPACE: 7,
165
+ EOF: 8,
166
+ start: 9,
167
+ BLOCK_DIAGRAM_KEY: 10,
168
+ document: 11,
169
+ stop: 12,
170
+ statement: 13,
171
+ link: 14,
172
+ LINK: 15,
173
+ START_LINK: 16,
174
+ LINK_LABEL: 17,
175
+ STR: 18,
176
+ nodeStatement: 19,
177
+ columnsStatement: 20,
178
+ SPACE_BLOCK: 21,
179
+ blockStatement: 22,
180
+ classDefStatement: 23,
181
+ cssClassStatement: 24,
182
+ styleStatement: 25,
183
+ node: 26,
184
+ SIZE: 27,
185
+ COLUMNS: 28,
186
+ "id-block": 29,
187
+ end: 30,
188
+ NODE_ID: 31,
189
+ nodeShapeNLabel: 32,
190
+ dirList: 33,
191
+ DIR: 34,
192
+ NODE_DSTART: 35,
193
+ NODE_DEND: 36,
194
+ BLOCK_ARROW_START: 37,
195
+ BLOCK_ARROW_END: 38,
196
+ classDef: 39,
197
+ CLASSDEF_ID: 40,
198
+ CLASSDEF_STYLEOPTS: 41,
199
+ DEFAULT: 42,
200
+ class: 43,
201
+ CLASSENTITY_IDS: 44,
202
+ STYLECLASS: 45,
203
+ style: 46,
204
+ STYLE_ENTITY_IDS: 47,
205
+ STYLE_DEFINITION_DATA: 48,
206
+ $accept: 0,
207
+ $end: 1
208
+ },
209
+ terminals_: {
210
+ 2: "error",
211
+ 4: "SPACELINE",
212
+ 5: "NL",
213
+ 7: "SPACE",
214
+ 8: "EOF",
215
+ 10: "BLOCK_DIAGRAM_KEY",
216
+ 15: "LINK",
217
+ 16: "START_LINK",
218
+ 17: "LINK_LABEL",
219
+ 18: "STR",
220
+ 21: "SPACE_BLOCK",
221
+ 27: "SIZE",
222
+ 28: "COLUMNS",
223
+ 29: "id-block",
224
+ 30: "end",
225
+ 31: "NODE_ID",
226
+ 34: "DIR",
227
+ 35: "NODE_DSTART",
228
+ 36: "NODE_DEND",
229
+ 37: "BLOCK_ARROW_START",
230
+ 38: "BLOCK_ARROW_END",
231
+ 39: "classDef",
232
+ 40: "CLASSDEF_ID",
233
+ 41: "CLASSDEF_STYLEOPTS",
234
+ 42: "DEFAULT",
235
+ 43: "class",
236
+ 44: "CLASSENTITY_IDS",
237
+ 45: "STYLECLASS",
238
+ 46: "style",
239
+ 47: "STYLE_ENTITY_IDS",
240
+ 48: "STYLE_DEFINITION_DATA"
241
+ },
242
+ productions_: [
243
+ 0,
244
+ [3, 1],
245
+ [3, 2],
246
+ [3, 2],
247
+ [6, 1],
248
+ [6, 1],
249
+ [6, 1],
250
+ [9, 3],
251
+ [12, 1],
252
+ [12, 1],
253
+ [12, 2],
254
+ [12, 2],
255
+ [11, 1],
256
+ [11, 2],
257
+ [14, 1],
258
+ [14, 4],
259
+ [13, 1],
260
+ [13, 1],
261
+ [13, 1],
262
+ [13, 1],
263
+ [13, 1],
264
+ [13, 1],
265
+ [13, 1],
266
+ [19, 3],
267
+ [19, 2],
268
+ [19, 1],
269
+ [20, 1],
270
+ [22, 4],
271
+ [22, 3],
272
+ [26, 1],
273
+ [26, 2],
274
+ [33, 1],
275
+ [33, 2],
276
+ [32, 3],
277
+ [32, 4],
278
+ [23, 3],
279
+ [23, 3],
280
+ [24, 3],
281
+ [25, 3]
282
+ ],
283
+ performAction: /* @__PURE__ */ e(function(e, t, n, r, i, a, o) {
284
+ var s = a.length - 1;
285
+ switch (i) {
286
+ case 4:
287
+ r.getLogger().debug("Rule: separator (NL) ");
288
+ break;
289
+ case 5:
290
+ r.getLogger().debug("Rule: separator (Space) ");
291
+ break;
292
+ case 6:
293
+ r.getLogger().debug("Rule: separator (EOF) ");
294
+ break;
295
+ case 7:
296
+ r.getLogger().debug("Rule: hierarchy: ", a[s - 1]), r.setHierarchy(a[s - 1]);
297
+ break;
298
+ case 8:
299
+ r.getLogger().debug("Stop NL ");
300
+ break;
301
+ case 9:
302
+ r.getLogger().debug("Stop EOF ");
303
+ break;
304
+ case 10:
305
+ r.getLogger().debug("Stop NL2 ");
306
+ break;
307
+ case 11:
308
+ r.getLogger().debug("Stop EOF2 ");
309
+ break;
310
+ case 12:
311
+ r.getLogger().debug("Rule: statement: ", a[s]), this.$ = typeof a[s].length == "number" ? a[s] : [a[s]];
312
+ break;
313
+ case 13:
314
+ r.getLogger().debug("Rule: statement #2: ", a[s - 1]), this.$ = [a[s - 1]].concat(a[s]);
315
+ break;
316
+ case 14:
317
+ r.getLogger().debug("Rule: link: ", a[s], e), this.$ = {
318
+ edgeTypeStr: a[s],
319
+ label: ""
320
+ };
321
+ break;
322
+ case 15:
323
+ r.getLogger().debug("Rule: LABEL link: ", a[s - 3], a[s - 1], a[s]), this.$ = {
324
+ edgeTypeStr: a[s],
325
+ label: a[s - 1]
326
+ };
327
+ break;
328
+ case 18:
329
+ let t = parseInt(a[s]), n = r.generateId();
330
+ this.$ = {
331
+ id: n,
332
+ type: "space",
333
+ label: "",
334
+ width: t,
335
+ children: []
336
+ };
337
+ break;
338
+ case 23:
339
+ r.getLogger().debug("Rule: (nodeStatement link node) ", a[s - 2], a[s - 1], a[s], " typestr: ", a[s - 1].edgeTypeStr);
340
+ let i = r.edgeStrToEdgeData(a[s - 1].edgeTypeStr), o = r.edgeStrToEdgeStartData(a[s - 1].edgeTypeStr), c = r.edgeStrToThickness(a[s - 1].edgeTypeStr), l = r.edgeStrToPattern(a[s - 1].edgeTypeStr);
341
+ this.$ = [
342
+ {
343
+ id: a[s - 2].id,
344
+ label: a[s - 2].label,
345
+ type: a[s - 2].type,
346
+ directions: a[s - 2].directions
347
+ },
348
+ {
349
+ id: a[s - 2].id + "-" + a[s].id,
350
+ start: a[s - 2].id,
351
+ end: a[s].id,
352
+ label: a[s - 1].label,
353
+ type: "edge",
354
+ thickness: c,
355
+ pattern: l,
356
+ directions: a[s].directions,
357
+ arrowTypeEnd: i,
358
+ arrowTypeStart: o
359
+ },
360
+ {
361
+ id: a[s].id,
362
+ label: a[s].label,
363
+ type: r.typeStr2Type(a[s].typeStr),
364
+ directions: a[s].directions
365
+ }
366
+ ];
367
+ break;
368
+ case 24:
369
+ r.getLogger().debug("Rule: nodeStatement (abc88 node size) ", a[s - 1], a[s]), this.$ = {
370
+ id: a[s - 1].id,
371
+ label: a[s - 1].label,
372
+ type: r.typeStr2Type(a[s - 1].typeStr),
373
+ directions: a[s - 1].directions,
374
+ widthInColumns: parseInt(a[s], 10)
375
+ };
376
+ break;
377
+ case 25:
378
+ r.getLogger().debug("Rule: nodeStatement (node) ", a[s]), this.$ = {
379
+ id: a[s].id,
380
+ label: a[s].label,
381
+ type: r.typeStr2Type(a[s].typeStr),
382
+ directions: a[s].directions,
383
+ widthInColumns: 1
384
+ };
385
+ break;
386
+ case 26:
387
+ r.getLogger().debug("APA123", this ? this : "na"), r.getLogger().debug("COLUMNS: ", a[s]), this.$ = {
388
+ type: "column-setting",
389
+ columns: a[s] === "auto" ? -1 : parseInt(a[s])
390
+ };
391
+ break;
392
+ case 27:
393
+ r.getLogger().debug("Rule: id-block statement : ", a[s - 2], a[s - 1]), r.generateId(), this.$ = {
394
+ ...a[s - 2],
395
+ type: "composite",
396
+ children: a[s - 1]
397
+ };
398
+ break;
399
+ case 28:
400
+ r.getLogger().debug("Rule: blockStatement : ", a[s - 2], a[s - 1], a[s]);
401
+ let u = r.generateId();
402
+ this.$ = {
403
+ id: u,
404
+ type: "composite",
405
+ label: "",
406
+ children: a[s - 1]
407
+ };
408
+ break;
409
+ case 29:
410
+ r.getLogger().debug("Rule: node (NODE_ID separator): ", a[s]), this.$ = { id: a[s] };
411
+ break;
412
+ case 30:
413
+ r.getLogger().debug("Rule: node (NODE_ID nodeShapeNLabel separator): ", a[s - 1], a[s]), this.$ = {
414
+ id: a[s - 1],
415
+ label: a[s].label,
416
+ typeStr: a[s].typeStr,
417
+ directions: a[s].directions
418
+ };
419
+ break;
420
+ case 31:
421
+ r.getLogger().debug("Rule: dirList: ", a[s]), this.$ = [a[s]];
422
+ break;
423
+ case 32:
424
+ r.getLogger().debug("Rule: dirList: ", a[s - 1], a[s]), this.$ = [a[s - 1]].concat(a[s]);
425
+ break;
426
+ case 33:
427
+ r.getLogger().debug("Rule: nodeShapeNLabel: ", a[s - 2], a[s - 1], a[s]), this.$ = {
428
+ typeStr: a[s - 2] + a[s],
429
+ label: a[s - 1]
430
+ };
431
+ break;
432
+ case 34:
433
+ r.getLogger().debug("Rule: BLOCK_ARROW nodeShapeNLabel: ", a[s - 3], a[s - 2], " #3:", a[s - 1], a[s]), this.$ = {
434
+ typeStr: a[s - 3] + a[s],
435
+ label: a[s - 2],
436
+ directions: a[s - 1]
437
+ };
438
+ break;
439
+ case 35:
440
+ case 36:
441
+ this.$ = {
442
+ type: "classDef",
443
+ id: a[s - 1].trim(),
444
+ css: a[s].trim()
445
+ };
446
+ break;
447
+ case 37:
448
+ this.$ = {
449
+ type: "applyClass",
450
+ id: a[s - 1].trim(),
451
+ styleClass: a[s].trim()
452
+ };
453
+ break;
454
+ case 38: this.$ = {
455
+ type: "applyStyles",
456
+ id: a[s - 1].trim(),
457
+ stylesStr: a[s].trim()
458
+ };
459
+ }
460
+ }, "anonymous"),
461
+ table: [
462
+ {
463
+ 9: 1,
464
+ 10: [1, 2]
465
+ },
466
+ { 1: [3] },
467
+ {
468
+ 10: n,
469
+ 11: 3,
470
+ 13: 4,
471
+ 19: 5,
472
+ 20: 6,
473
+ 21: r,
474
+ 22: 8,
475
+ 23: 9,
476
+ 24: 10,
477
+ 25: 11,
478
+ 26: 12,
479
+ 28: i,
480
+ 29: a,
481
+ 31: o,
482
+ 39: s,
483
+ 43: c,
484
+ 46: l
485
+ },
486
+ { 8: [1, 20] },
487
+ t(u, [2, 12], {
488
+ 13: 4,
489
+ 19: 5,
490
+ 20: 6,
491
+ 22: 8,
492
+ 23: 9,
493
+ 24: 10,
494
+ 25: 11,
495
+ 26: 12,
496
+ 11: 21,
497
+ 10: n,
498
+ 21: r,
499
+ 28: i,
500
+ 29: a,
501
+ 31: o,
502
+ 39: s,
503
+ 43: c,
504
+ 46: l
505
+ }),
506
+ t(d, [2, 16], {
507
+ 14: 22,
508
+ 15: f,
509
+ 16: p
510
+ }),
511
+ t(d, [2, 17]),
512
+ t(d, [2, 18]),
513
+ t(d, [2, 19]),
514
+ t(d, [2, 20]),
515
+ t(d, [2, 21]),
516
+ t(d, [2, 22]),
517
+ t(m, [2, 25], { 27: [1, 25] }),
518
+ t(d, [2, 26]),
519
+ {
520
+ 19: 26,
521
+ 26: 12,
522
+ 31: o
523
+ },
524
+ {
525
+ 10: n,
526
+ 11: 27,
527
+ 13: 4,
528
+ 19: 5,
529
+ 20: 6,
530
+ 21: r,
531
+ 22: 8,
532
+ 23: 9,
533
+ 24: 10,
534
+ 25: 11,
535
+ 26: 12,
536
+ 28: i,
537
+ 29: a,
538
+ 31: o,
539
+ 39: s,
540
+ 43: c,
541
+ 46: l
542
+ },
543
+ {
544
+ 40: [1, 28],
545
+ 42: [1, 29]
546
+ },
547
+ { 44: [1, 30] },
548
+ { 47: [1, 31] },
549
+ t(h, [2, 29], {
550
+ 32: 32,
551
+ 35: [1, 33],
552
+ 37: [1, 34]
553
+ }),
554
+ { 1: [2, 7] },
555
+ t(u, [2, 13]),
556
+ {
557
+ 26: 35,
558
+ 31: o
559
+ },
560
+ { 31: [2, 14] },
561
+ { 17: [1, 36] },
562
+ t(m, [2, 24]),
563
+ {
564
+ 10: n,
565
+ 11: 37,
566
+ 13: 4,
567
+ 14: 22,
568
+ 15: f,
569
+ 16: p,
570
+ 19: 5,
571
+ 20: 6,
572
+ 21: r,
573
+ 22: 8,
574
+ 23: 9,
575
+ 24: 10,
576
+ 25: 11,
577
+ 26: 12,
578
+ 28: i,
579
+ 29: a,
580
+ 31: o,
581
+ 39: s,
582
+ 43: c,
583
+ 46: l
584
+ },
585
+ { 30: [1, 38] },
586
+ { 41: [1, 39] },
587
+ { 41: [1, 40] },
588
+ { 45: [1, 41] },
589
+ { 48: [1, 42] },
590
+ t(h, [2, 30]),
591
+ { 18: [1, 43] },
592
+ { 18: [1, 44] },
593
+ t(m, [2, 23]),
594
+ { 18: [1, 45] },
595
+ { 30: [1, 46] },
596
+ t(d, [2, 28]),
597
+ t(d, [2, 35]),
598
+ t(d, [2, 36]),
599
+ t(d, [2, 37]),
600
+ t(d, [2, 38]),
601
+ { 36: [1, 47] },
602
+ {
603
+ 33: 48,
604
+ 34: g
605
+ },
606
+ { 15: [1, 50] },
607
+ t(d, [2, 27]),
608
+ t(h, [2, 33]),
609
+ { 38: [1, 51] },
610
+ {
611
+ 33: 52,
612
+ 34: g,
613
+ 38: [2, 31]
614
+ },
615
+ { 31: [2, 15] },
616
+ t(h, [2, 34]),
617
+ { 38: [2, 32] }
618
+ ],
619
+ defaultActions: {
620
+ 20: [2, 7],
621
+ 23: [2, 14],
622
+ 50: [2, 15],
623
+ 52: [2, 32]
624
+ },
625
+ parseError: /* @__PURE__ */ e(function(e, t) {
626
+ if (t.recoverable) this.trace(e);
627
+ else {
628
+ var n = Error(e);
629
+ throw n.hash = t, n;
630
+ }
631
+ }, "parseError"),
632
+ parse: /* @__PURE__ */ e(function(t) {
633
+ var n = this, r = [0], i = [], a = [null], o = [], s = this.table, c = "", l = 0, u = 0, d = 0, f = 2, p = 1, m = o.slice.call(arguments, 1), h = Object.create(this.lexer), g = { yy: {} };
634
+ for (var _ in this.yy) Object.prototype.hasOwnProperty.call(this.yy, _) && (g.yy[_] = this.yy[_]);
635
+ h.setInput(t, g.yy), g.yy.lexer = h, g.yy.parser = this, h.yylloc === void 0 && (h.yylloc = {});
636
+ var v = h.yylloc;
637
+ o.push(v);
638
+ var y = h.options && h.options.ranges;
639
+ this.parseError = typeof g.yy.parseError == "function" ? g.yy.parseError : Object.getPrototypeOf(this).parseError;
640
+ function b(e) {
641
+ r.length -= 2 * e, a.length -= e, o.length -= e;
642
+ }
643
+ e(b, "popStack");
644
+ function x() {
645
+ var e = i.pop() || h.lex() || p;
646
+ return typeof e != "number" && (e instanceof Array && (i = e, e = i.pop()), e = n.symbols_[e] || e), e;
647
+ }
648
+ e(x, "lex");
649
+ for (var S, C, w, T, E, D = {}, O, k, A, j;;) {
650
+ if (w = r[r.length - 1], this.defaultActions[w] ? T = this.defaultActions[w] : (S ??= x(), T = s[w] && s[w][S]), T === void 0 || !T.length || !T[0]) {
651
+ var M = "";
652
+ for (O in j = [], s[w]) this.terminals_[O] && O > f && j.push("'" + this.terminals_[O] + "'");
653
+ M = h.showPosition ? "Parse error on line " + (l + 1) + ":\n" + h.showPosition() + "\nExpecting " + j.join(", ") + ", got '" + (this.terminals_[S] || S) + "'" : "Parse error on line " + (l + 1) + ": Unexpected " + (S == p ? "end of input" : "'" + (this.terminals_[S] || S) + "'"), this.parseError(M, {
654
+ text: h.match,
655
+ token: this.terminals_[S] || S,
656
+ line: h.yylineno,
657
+ loc: v,
658
+ expected: j
659
+ });
660
+ }
661
+ if (T[0] instanceof Array && T.length > 1) throw Error("Parse Error: multiple actions possible at state: " + w + ", token: " + S);
662
+ switch (T[0]) {
663
+ case 1:
664
+ r.push(S), a.push(h.yytext), o.push(h.yylloc), r.push(T[1]), S = null, C ? (S = C, C = null) : (u = h.yyleng, c = h.yytext, l = h.yylineno, v = h.yylloc, d > 0 && d--);
665
+ break;
666
+ case 2:
667
+ if (k = this.productions_[T[1]][1], D.$ = a[a.length - k], D._$ = {
668
+ first_line: o[o.length - (k || 1)].first_line,
669
+ last_line: o[o.length - 1].last_line,
670
+ first_column: o[o.length - (k || 1)].first_column,
671
+ last_column: o[o.length - 1].last_column
672
+ }, y && (D._$.range = [o[o.length - (k || 1)].range[0], o[o.length - 1].range[1]]), E = this.performAction.apply(D, [
673
+ c,
674
+ u,
675
+ l,
676
+ g.yy,
677
+ T[1],
678
+ a,
679
+ o
680
+ ].concat(m)), E !== void 0) return E;
681
+ k && (r = r.slice(0, -1 * k * 2), a = a.slice(0, -1 * k), o = o.slice(0, -1 * k)), r.push(this.productions_[T[1]][0]), a.push(D.$), o.push(D._$), A = s[r[r.length - 2]][r[r.length - 1]], r.push(A);
682
+ break;
683
+ case 3: return !0;
684
+ }
685
+ }
686
+ return !0;
687
+ }, "parse")
688
+ };
689
+ _.lexer = /* @__PURE__ */ (function() {
690
+ return {
691
+ EOF: 1,
692
+ parseError: /* @__PURE__ */ e(function(e, t) {
693
+ if (this.yy.parser) this.yy.parser.parseError(e, t);
694
+ else throw Error(e);
695
+ }, "parseError"),
696
+ setInput: /* @__PURE__ */ e(function(e, t) {
697
+ return this.yy = t || this.yy || {}, this._input = e, this._more = this._backtrack = this.done = !1, this.yylineno = this.yyleng = 0, this.yytext = this.matched = this.match = "", this.conditionStack = ["INITIAL"], this.yylloc = {
698
+ first_line: 1,
699
+ first_column: 0,
700
+ last_line: 1,
701
+ last_column: 0
702
+ }, this.options.ranges && (this.yylloc.range = [0, 0]), this.offset = 0, this;
703
+ }, "setInput"),
704
+ input: /* @__PURE__ */ e(function() {
705
+ var e = this._input[0];
706
+ return this.yytext += e, this.yyleng++, this.offset++, this.match += e, this.matched += e, e.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), e;
707
+ }, "input"),
708
+ unput: /* @__PURE__ */ e(function(e) {
709
+ var t = e.length, n = e.split(/(?:\r\n?|\n)/g);
710
+ this._input = e + this._input, this.yytext = this.yytext.substr(0, this.yytext.length - t), this.offset -= t;
711
+ var r = this.match.split(/(?:\r\n?|\n)/g);
712
+ this.match = this.match.substr(0, this.match.length - 1), this.matched = this.matched.substr(0, this.matched.length - 1), n.length - 1 && (this.yylineno -= n.length - 1);
713
+ var i = this.yylloc.range;
714
+ return this.yylloc = {
715
+ first_line: this.yylloc.first_line,
716
+ last_line: this.yylineno + 1,
717
+ first_column: this.yylloc.first_column,
718
+ last_column: n ? (n.length === r.length ? this.yylloc.first_column : 0) + r[r.length - n.length].length - n[0].length : this.yylloc.first_column - t
719
+ }, this.options.ranges && (this.yylloc.range = [i[0], i[0] + this.yyleng - t]), this.yyleng = this.yytext.length, this;
720
+ }, "unput"),
721
+ more: /* @__PURE__ */ e(function() {
722
+ return this._more = !0, this;
723
+ }, "more"),
724
+ reject: /* @__PURE__ */ e(function() {
725
+ if (this.options.backtrack_lexer) this._backtrack = !0;
726
+ 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).\n" + this.showPosition(), {
727
+ text: "",
728
+ token: null,
729
+ line: this.yylineno
730
+ });
731
+ return this;
732
+ }, "reject"),
733
+ less: /* @__PURE__ */ e(function(e) {
734
+ this.unput(this.match.slice(e));
735
+ }, "less"),
736
+ pastInput: /* @__PURE__ */ e(function() {
737
+ var e = this.matched.substr(0, this.matched.length - this.match.length);
738
+ return (e.length > 20 ? "..." : "") + e.substr(-20).replace(/\n/g, "");
739
+ }, "pastInput"),
740
+ upcomingInput: /* @__PURE__ */ e(function() {
741
+ var e = this.match;
742
+ return e.length < 20 && (e += this._input.substr(0, 20 - e.length)), (e.substr(0, 20) + (e.length > 20 ? "..." : "")).replace(/\n/g, "");
743
+ }, "upcomingInput"),
744
+ showPosition: /* @__PURE__ */ e(function() {
745
+ var e = this.pastInput(), t = Array(e.length + 1).join("-");
746
+ return e + this.upcomingInput() + "\n" + t + "^";
747
+ }, "showPosition"),
748
+ test_match: /* @__PURE__ */ e(function(e, t) {
749
+ var n, r, i;
750
+ if (this.options.backtrack_lexer && (i = {
751
+ yylineno: this.yylineno,
752
+ yylloc: {
753
+ first_line: this.yylloc.first_line,
754
+ last_line: this.last_line,
755
+ first_column: this.yylloc.first_column,
756
+ last_column: this.yylloc.last_column
757
+ },
758
+ yytext: this.yytext,
759
+ match: this.match,
760
+ matches: this.matches,
761
+ matched: this.matched,
762
+ yyleng: this.yyleng,
763
+ offset: this.offset,
764
+ _more: this._more,
765
+ _input: this._input,
766
+ yy: this.yy,
767
+ conditionStack: this.conditionStack.slice(0),
768
+ done: this.done
769
+ }, this.options.ranges && (i.yylloc.range = this.yylloc.range.slice(0))), r = e[0].match(/(?:\r\n?|\n).*/g), r && (this.yylineno += r.length), this.yylloc = {
770
+ first_line: this.yylloc.last_line,
771
+ last_line: this.yylineno + 1,
772
+ first_column: this.yylloc.last_column,
773
+ last_column: r ? r[r.length - 1].length - r[r.length - 1].match(/\r?\n?/)[0].length : this.yylloc.last_column + e[0].length
774
+ }, this.yytext += e[0], this.match += e[0], this.matches = e, 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(e[0].length), this.matched += e[0], n = this.performAction.call(this, this.yy, this, t, this.conditionStack[this.conditionStack.length - 1]), this.done && this._input && (this.done = !1), n) return n;
775
+ if (this._backtrack) {
776
+ for (var a in i) this[a] = i[a];
777
+ return !1;
778
+ }
779
+ return !1;
780
+ }, "test_match"),
781
+ next: /* @__PURE__ */ e(function() {
782
+ if (this.done) return this.EOF;
783
+ this._input || (this.done = !0);
784
+ var e, t, n, r;
785
+ this._more || (this.yytext = "", this.match = "");
786
+ for (var i = this._currentRules(), a = 0; a < i.length; a++) if (n = this._input.match(this.rules[i[a]]), n && (!t || n[0].length > t[0].length)) {
787
+ if (t = n, r = a, this.options.backtrack_lexer) {
788
+ if (e = this.test_match(n, i[a]), e !== !1) return e;
789
+ if (this._backtrack) {
790
+ t = !1;
791
+ continue;
792
+ }
793
+ return !1;
794
+ }
795
+ if (!this.options.flex) break;
796
+ }
797
+ return t ? (e = this.test_match(t, i[r]), e !== !1 && e) : this._input === "" ? this.EOF : this.parseError("Lexical error on line " + (this.yylineno + 1) + ". Unrecognized text.\n" + this.showPosition(), {
798
+ text: "",
799
+ token: null,
800
+ line: this.yylineno
801
+ });
802
+ }, "next"),
803
+ lex: /* @__PURE__ */ e(function() {
804
+ return this.next() || this.lex();
805
+ }, "lex"),
806
+ begin: /* @__PURE__ */ e(function(e) {
807
+ this.conditionStack.push(e);
808
+ }, "begin"),
809
+ popState: /* @__PURE__ */ e(function() {
810
+ return this.conditionStack.length - 1 > 0 ? this.conditionStack.pop() : this.conditionStack[0];
811
+ }, "popState"),
812
+ _currentRules: /* @__PURE__ */ e(function() {
813
+ return this.conditionStack.length && this.conditionStack[this.conditionStack.length - 1] ? this.conditions[this.conditionStack[this.conditionStack.length - 1]].rules : this.conditions.INITIAL.rules;
814
+ }, "_currentRules"),
815
+ topState: /* @__PURE__ */ e(function(e) {
816
+ return e = this.conditionStack.length - 1 - Math.abs(e || 0), e >= 0 ? this.conditionStack[e] : "INITIAL";
817
+ }, "topState"),
818
+ pushState: /* @__PURE__ */ e(function(e) {
819
+ this.begin(e);
820
+ }, "pushState"),
821
+ stateStackSize: /* @__PURE__ */ e(function() {
822
+ return this.conditionStack.length;
823
+ }, "stateStackSize"),
824
+ options: {},
825
+ performAction: /* @__PURE__ */ e(function(e, t, n, r) {
826
+ switch (n) {
827
+ case 0: return e.getLogger().debug("Found block-beta"), 10;
828
+ case 1: return e.getLogger().debug("Found id-block"), 29;
829
+ case 2: return e.getLogger().debug("Found block"), 10;
830
+ case 3:
831
+ e.getLogger().debug(".", t.yytext);
832
+ break;
833
+ case 4:
834
+ e.getLogger().debug("_", t.yytext);
835
+ break;
836
+ case 5: return 5;
837
+ case 6: return t.yytext = -1, 28;
838
+ case 7: return t.yytext = t.yytext.replace(/columns\s+/, ""), e.getLogger().debug("COLUMNS (LEX)", t.yytext), 28;
839
+ case 8:
840
+ this.pushState("md_string");
841
+ break;
842
+ case 9: return "MD_STR";
843
+ case 10:
844
+ this.popState();
845
+ break;
846
+ case 11:
847
+ this.pushState("string");
848
+ break;
849
+ case 12:
850
+ e.getLogger().debug("LEX: POPPING STR:", t.yytext), this.popState();
851
+ break;
852
+ case 13: return e.getLogger().debug("LEX: STR end:", t.yytext), "STR";
853
+ case 14: return t.yytext = t.yytext.replace(/space\:/, ""), e.getLogger().debug("SPACE NUM (LEX)", t.yytext), 21;
854
+ case 15: return t.yytext = "1", e.getLogger().debug("COLUMNS (LEX)", t.yytext), 21;
855
+ case 16: return 42;
856
+ case 17: return "LINKSTYLE";
857
+ case 18: return "INTERPOLATE";
858
+ case 19: return this.pushState("CLASSDEF"), 39;
859
+ case 20: return this.popState(), this.pushState("CLASSDEFID"), "DEFAULT_CLASSDEF_ID";
860
+ case 21: return this.popState(), this.pushState("CLASSDEFID"), 40;
861
+ case 22: return this.popState(), 41;
862
+ case 23: return this.pushState("CLASS"), 43;
863
+ case 24: return this.popState(), this.pushState("CLASS_STYLE"), 44;
864
+ case 25: return this.popState(), 45;
865
+ case 26: return this.pushState("STYLE_STMNT"), 46;
866
+ case 27: return this.popState(), this.pushState("STYLE_DEFINITION"), 47;
867
+ case 28: return this.popState(), 48;
868
+ case 29: return this.pushState("acc_title"), "acc_title";
869
+ case 30: return this.popState(), "acc_title_value";
870
+ case 31: return this.pushState("acc_descr"), "acc_descr";
871
+ case 32: return this.popState(), "acc_descr_value";
872
+ case 33:
873
+ this.pushState("acc_descr_multiline");
874
+ break;
875
+ case 34:
876
+ this.popState();
877
+ break;
878
+ case 35: return "acc_descr_multiline_value";
879
+ case 36: return 30;
880
+ case 37: return this.popState(), e.getLogger().debug("Lex: (("), "NODE_DEND";
881
+ case 38: return this.popState(), e.getLogger().debug("Lex: (("), "NODE_DEND";
882
+ case 39: return this.popState(), e.getLogger().debug("Lex: ))"), "NODE_DEND";
883
+ case 40: return this.popState(), e.getLogger().debug("Lex: (("), "NODE_DEND";
884
+ case 41: return this.popState(), e.getLogger().debug("Lex: (("), "NODE_DEND";
885
+ case 42: return this.popState(), e.getLogger().debug("Lex: (-"), "NODE_DEND";
886
+ case 43: return this.popState(), e.getLogger().debug("Lex: -)"), "NODE_DEND";
887
+ case 44: return this.popState(), e.getLogger().debug("Lex: (("), "NODE_DEND";
888
+ case 45: return this.popState(), e.getLogger().debug("Lex: ]]"), "NODE_DEND";
889
+ case 46: return this.popState(), e.getLogger().debug("Lex: ("), "NODE_DEND";
890
+ case 47: return this.popState(), e.getLogger().debug("Lex: ])"), "NODE_DEND";
891
+ case 48: return this.popState(), e.getLogger().debug("Lex: /]"), "NODE_DEND";
892
+ case 49: return this.popState(), e.getLogger().debug("Lex: /]"), "NODE_DEND";
893
+ case 50: return this.popState(), e.getLogger().debug("Lex: )]"), "NODE_DEND";
894
+ case 51: return this.popState(), e.getLogger().debug("Lex: )"), "NODE_DEND";
895
+ case 52: return this.popState(), e.getLogger().debug("Lex: ]>"), "NODE_DEND";
896
+ case 53: return this.popState(), e.getLogger().debug("Lex: ]"), "NODE_DEND";
897
+ case 54: return e.getLogger().debug("Lexa: -)"), this.pushState("NODE"), 35;
898
+ case 55: return e.getLogger().debug("Lexa: (-"), this.pushState("NODE"), 35;
899
+ case 56: return e.getLogger().debug("Lexa: ))"), this.pushState("NODE"), 35;
900
+ case 57: return e.getLogger().debug("Lexa: )"), this.pushState("NODE"), 35;
901
+ case 58: return e.getLogger().debug("Lex: ((("), this.pushState("NODE"), 35;
902
+ case 59: return e.getLogger().debug("Lexa: )"), this.pushState("NODE"), 35;
903
+ case 60: return e.getLogger().debug("Lexa: )"), this.pushState("NODE"), 35;
904
+ case 61: return e.getLogger().debug("Lexa: )"), this.pushState("NODE"), 35;
905
+ case 62: return e.getLogger().debug("Lexc: >"), this.pushState("NODE"), 35;
906
+ case 63: return e.getLogger().debug("Lexa: (["), this.pushState("NODE"), 35;
907
+ case 64: return e.getLogger().debug("Lexa: )"), this.pushState("NODE"), 35;
908
+ case 65: return this.pushState("NODE"), 35;
909
+ case 66: return this.pushState("NODE"), 35;
910
+ case 67: return this.pushState("NODE"), 35;
911
+ case 68: return this.pushState("NODE"), 35;
912
+ case 69: return this.pushState("NODE"), 35;
913
+ case 70: return this.pushState("NODE"), 35;
914
+ case 71: return this.pushState("NODE"), 35;
915
+ case 72: return e.getLogger().debug("Lexa: ["), this.pushState("NODE"), 35;
916
+ case 73: return this.pushState("BLOCK_ARROW"), e.getLogger().debug("LEX ARR START"), 37;
917
+ case 74: return e.getLogger().debug("Lex: NODE_ID", t.yytext), 31;
918
+ case 75: return e.getLogger().debug("Lex: EOF", t.yytext), 8;
919
+ case 76:
920
+ this.pushState("md_string");
921
+ break;
922
+ case 77:
923
+ this.pushState("md_string");
924
+ break;
925
+ case 78: return "NODE_DESCR";
926
+ case 79:
927
+ this.popState();
928
+ break;
929
+ case 80:
930
+ e.getLogger().debug("Lex: Starting string"), this.pushState("string");
931
+ break;
932
+ case 81:
933
+ e.getLogger().debug("LEX ARR: Starting string"), this.pushState("string");
934
+ break;
935
+ case 82: return e.getLogger().debug("LEX: NODE_DESCR:", t.yytext), "NODE_DESCR";
936
+ case 83:
937
+ e.getLogger().debug("LEX POPPING"), this.popState();
938
+ break;
939
+ case 84:
940
+ e.getLogger().debug("Lex: =>BAE"), this.pushState("ARROW_DIR");
941
+ break;
942
+ case 85: return t.yytext = t.yytext.replace(/^,\s*/, ""), e.getLogger().debug("Lex (right): dir:", t.yytext), "DIR";
943
+ case 86: return t.yytext = t.yytext.replace(/^,\s*/, ""), e.getLogger().debug("Lex (left):", t.yytext), "DIR";
944
+ case 87: return t.yytext = t.yytext.replace(/^,\s*/, ""), e.getLogger().debug("Lex (x):", t.yytext), "DIR";
945
+ case 88: return t.yytext = t.yytext.replace(/^,\s*/, ""), e.getLogger().debug("Lex (y):", t.yytext), "DIR";
946
+ case 89: return t.yytext = t.yytext.replace(/^,\s*/, ""), e.getLogger().debug("Lex (up):", t.yytext), "DIR";
947
+ case 90: return t.yytext = t.yytext.replace(/^,\s*/, ""), e.getLogger().debug("Lex (down):", t.yytext), "DIR";
948
+ case 91: return t.yytext = "]>", e.getLogger().debug("Lex (ARROW_DIR end):", t.yytext), this.popState(), this.popState(), "BLOCK_ARROW_END";
949
+ case 92: return e.getLogger().debug("Lex: LINK", "#" + t.yytext + "#"), 15;
950
+ case 93: return e.getLogger().debug("Lex: LINK", t.yytext), 15;
951
+ case 94: return e.getLogger().debug("Lex: LINK", t.yytext), 15;
952
+ case 95: return e.getLogger().debug("Lex: LINK", t.yytext), 15;
953
+ case 96: return e.getLogger().debug("Lex: START_LINK", t.yytext), this.pushState("LLABEL"), 16;
954
+ case 97: return e.getLogger().debug("Lex: START_LINK", t.yytext), this.pushState("LLABEL"), 16;
955
+ case 98: return e.getLogger().debug("Lex: START_LINK", t.yytext), this.pushState("LLABEL"), 16;
956
+ case 99:
957
+ this.pushState("md_string");
958
+ break;
959
+ case 100: return e.getLogger().debug("Lex: Starting string"), this.pushState("string"), "LINK_LABEL";
960
+ case 101: return this.popState(), e.getLogger().debug("Lex: LINK", "#" + t.yytext + "#"), 15;
961
+ case 102: return this.popState(), e.getLogger().debug("Lex: LINK", t.yytext), 15;
962
+ case 103: return this.popState(), e.getLogger().debug("Lex: LINK", t.yytext), 15;
963
+ case 104: return e.getLogger().debug("Lex: COLON", t.yytext), t.yytext = t.yytext.slice(1), 27;
964
+ }
965
+ }, "anonymous"),
966
+ rules: [
967
+ /^(?:block-beta\b)/,
968
+ /^(?:block:)/,
969
+ /^(?:block\b)/,
970
+ /^(?:[\s]+)/,
971
+ /^(?:[\n]+)/,
972
+ /^(?:((\u000D\u000A)|(\u000A)))/,
973
+ /^(?:columns\s+auto\b)/,
974
+ /^(?:columns\s+[\d]+)/,
975
+ /^(?:["][`])/,
976
+ /^(?:[^`"]+)/,
977
+ /^(?:[`]["])/,
978
+ /^(?:["])/,
979
+ /^(?:["])/,
980
+ /^(?:[^"]*)/,
981
+ /^(?:space[:]\d+)/,
982
+ /^(?:space\b)/,
983
+ /^(?:default\b)/,
984
+ /^(?:linkStyle\b)/,
985
+ /^(?:interpolate\b)/,
986
+ /^(?:classDef\s+)/,
987
+ /^(?:DEFAULT\s+)/,
988
+ /^(?:\w+\s+)/,
989
+ /^(?:[^\n]*)/,
990
+ /^(?:class\s+)/,
991
+ /^(?:(\w+)+((,\s*\w+)*))/,
992
+ /^(?:[^\n]*)/,
993
+ /^(?:style\s+)/,
994
+ /^(?:(\w+)+((,\s*\w+)*))/,
995
+ /^(?:[^\n]*)/,
996
+ /^(?:accTitle\s*:\s*)/,
997
+ /^(?:(?!\n||)*[^\n]*)/,
998
+ /^(?:accDescr\s*:\s*)/,
999
+ /^(?:(?!\n||)*[^\n]*)/,
1000
+ /^(?:accDescr\s*\{\s*)/,
1001
+ /^(?:[\}])/,
1002
+ /^(?:[^\}]*)/,
1003
+ /^(?:end\b\s*)/,
1004
+ /^(?:\(\(\()/,
1005
+ /^(?:\)\)\))/,
1006
+ /^(?:[\)]\))/,
1007
+ /^(?:\}\})/,
1008
+ /^(?:\})/,
1009
+ /^(?:\(-)/,
1010
+ /^(?:-\))/,
1011
+ /^(?:\(\()/,
1012
+ /^(?:\]\])/,
1013
+ /^(?:\()/,
1014
+ /^(?:\]\))/,
1015
+ /^(?:\\\])/,
1016
+ /^(?:\/\])/,
1017
+ /^(?:\)\])/,
1018
+ /^(?:[\)])/,
1019
+ /^(?:\]>)/,
1020
+ /^(?:[\]])/,
1021
+ /^(?:-\))/,
1022
+ /^(?:\(-)/,
1023
+ /^(?:\)\))/,
1024
+ /^(?:\))/,
1025
+ /^(?:\(\(\()/,
1026
+ /^(?:\(\()/,
1027
+ /^(?:\{\{)/,
1028
+ /^(?:\{)/,
1029
+ /^(?:>)/,
1030
+ /^(?:\(\[)/,
1031
+ /^(?:\()/,
1032
+ /^(?:\[\[)/,
1033
+ /^(?:\[\|)/,
1034
+ /^(?:\[\()/,
1035
+ /^(?:\)\)\))/,
1036
+ /^(?:\[\\)/,
1037
+ /^(?:\[\/)/,
1038
+ /^(?:\[\\)/,
1039
+ /^(?:\[)/,
1040
+ /^(?:<\[)/,
1041
+ /^(?:[^\(\[\n\-\)\{\}\s\<\>:=]+)/,
1042
+ /^(?:$)/,
1043
+ /^(?:["][`])/,
1044
+ /^(?:["][`])/,
1045
+ /^(?:[^`"]+)/,
1046
+ /^(?:[`]["])/,
1047
+ /^(?:["])/,
1048
+ /^(?:["])/,
1049
+ /^(?:[^"]+)/,
1050
+ /^(?:["])/,
1051
+ /^(?:\]>\s*\()/,
1052
+ /^(?:,?\s*right\s*)/,
1053
+ /^(?:,?\s*left\s*)/,
1054
+ /^(?:,?\s*x\s*)/,
1055
+ /^(?:,?\s*y\s*)/,
1056
+ /^(?:,?\s*up\s*)/,
1057
+ /^(?:,?\s*down\s*)/,
1058
+ /^(?:\)\s*)/,
1059
+ /^(?:\s*[xo<]?--+[-xo>]\s*)/,
1060
+ /^(?:\s*[xo<]?==+[=xo>]\s*)/,
1061
+ /^(?:\s*[xo<]?-?\.+-[xo>]?\s*)/,
1062
+ /^(?:\s*~~[\~]+\s*)/,
1063
+ /^(?:\s*[xo<]?--\s*)/,
1064
+ /^(?:\s*[xo<]?==\s*)/,
1065
+ /^(?:\s*[xo<]?-\.\s*)/,
1066
+ /^(?:["][`])/,
1067
+ /^(?:["])/,
1068
+ /^(?:\s*[xo<]?--+[-xo>]\s*)/,
1069
+ /^(?:\s*[xo<]?==+[=xo>]\s*)/,
1070
+ /^(?:\s*[xo<]?-?\.+-[xo>]?\s*)/,
1071
+ /^(?::\d+)/
1072
+ ],
1073
+ conditions: {
1074
+ STYLE_DEFINITION: {
1075
+ rules: [28],
1076
+ inclusive: !1
1077
+ },
1078
+ STYLE_STMNT: {
1079
+ rules: [27],
1080
+ inclusive: !1
1081
+ },
1082
+ CLASSDEFID: {
1083
+ rules: [22],
1084
+ inclusive: !1
1085
+ },
1086
+ CLASSDEF: {
1087
+ rules: [20, 21],
1088
+ inclusive: !1
1089
+ },
1090
+ CLASS_STYLE: {
1091
+ rules: [25],
1092
+ inclusive: !1
1093
+ },
1094
+ CLASS: {
1095
+ rules: [24],
1096
+ inclusive: !1
1097
+ },
1098
+ LLABEL: {
1099
+ rules: [
1100
+ 99,
1101
+ 100,
1102
+ 101,
1103
+ 102,
1104
+ 103
1105
+ ],
1106
+ inclusive: !1
1107
+ },
1108
+ ARROW_DIR: {
1109
+ rules: [
1110
+ 85,
1111
+ 86,
1112
+ 87,
1113
+ 88,
1114
+ 89,
1115
+ 90,
1116
+ 91
1117
+ ],
1118
+ inclusive: !1
1119
+ },
1120
+ BLOCK_ARROW: {
1121
+ rules: [
1122
+ 76,
1123
+ 81,
1124
+ 84
1125
+ ],
1126
+ inclusive: !1
1127
+ },
1128
+ NODE: {
1129
+ rules: [
1130
+ 37,
1131
+ 38,
1132
+ 39,
1133
+ 40,
1134
+ 41,
1135
+ 42,
1136
+ 43,
1137
+ 44,
1138
+ 45,
1139
+ 46,
1140
+ 47,
1141
+ 48,
1142
+ 49,
1143
+ 50,
1144
+ 51,
1145
+ 52,
1146
+ 53,
1147
+ 77,
1148
+ 80
1149
+ ],
1150
+ inclusive: !1
1151
+ },
1152
+ md_string: {
1153
+ rules: [
1154
+ 9,
1155
+ 10,
1156
+ 78,
1157
+ 79
1158
+ ],
1159
+ inclusive: !1
1160
+ },
1161
+ space: {
1162
+ rules: [],
1163
+ inclusive: !1
1164
+ },
1165
+ string: {
1166
+ rules: [
1167
+ 12,
1168
+ 13,
1169
+ 82,
1170
+ 83
1171
+ ],
1172
+ inclusive: !1
1173
+ },
1174
+ acc_descr_multiline: {
1175
+ rules: [34, 35],
1176
+ inclusive: !1
1177
+ },
1178
+ acc_descr: {
1179
+ rules: [32],
1180
+ inclusive: !1
1181
+ },
1182
+ acc_title: {
1183
+ rules: [30],
1184
+ inclusive: !1
1185
+ },
1186
+ INITIAL: {
1187
+ rules: [
1188
+ 0,
1189
+ 1,
1190
+ 2,
1191
+ 3,
1192
+ 4,
1193
+ 5,
1194
+ 6,
1195
+ 7,
1196
+ 8,
1197
+ 11,
1198
+ 14,
1199
+ 15,
1200
+ 16,
1201
+ 17,
1202
+ 18,
1203
+ 19,
1204
+ 23,
1205
+ 26,
1206
+ 29,
1207
+ 31,
1208
+ 33,
1209
+ 36,
1210
+ 54,
1211
+ 55,
1212
+ 56,
1213
+ 57,
1214
+ 58,
1215
+ 59,
1216
+ 60,
1217
+ 61,
1218
+ 62,
1219
+ 63,
1220
+ 64,
1221
+ 65,
1222
+ 66,
1223
+ 67,
1224
+ 68,
1225
+ 69,
1226
+ 70,
1227
+ 71,
1228
+ 72,
1229
+ 73,
1230
+ 74,
1231
+ 75,
1232
+ 92,
1233
+ 93,
1234
+ 94,
1235
+ 95,
1236
+ 96,
1237
+ 97,
1238
+ 98,
1239
+ 104
1240
+ ],
1241
+ inclusive: !0
1242
+ }
1243
+ }
1244
+ };
1245
+ })();
1246
+ function v() {
1247
+ this.yy = {};
1248
+ }
1249
+ return e(v, "Parser"), v.prototype = _, _.Parser = v, new v();
1250
+ })();
1251
+ F.parser = F;
1252
+ var ge = F, I = /* @__PURE__ */ new Map(), L = [], R = /* @__PURE__ */ new Map(), _e = "color", z = "fill", ve = "bgFill", ye = ",", B = /* @__PURE__ */ new Map(), V = "", be = /* @__PURE__ */ e((e) => s.sanitizeText(e, c()), "sanitizeText"), xe = /* @__PURE__ */ e(function(e, t = "") {
1253
+ let n = B.get(e);
1254
+ n || (n = {
1255
+ id: e,
1256
+ styles: [],
1257
+ textStyles: []
1258
+ }, B.set(e, n)), t?.split(ye).forEach((e) => {
1259
+ let t = e.replace(/([^;]*);/, "$1").trim();
1260
+ if (RegExp(_e).exec(e)) {
1261
+ let e = t.replace(z, ve).replace(_e, z);
1262
+ n.textStyles.push(e);
1263
+ }
1264
+ n.styles.push(t);
1265
+ });
1266
+ }, "addStyleClass"), Se = /* @__PURE__ */ e(function(e, t = "") {
1267
+ let n = I.get(e);
1268
+ t != null && (n.styles = t.split(ye));
1269
+ }, "addStyle2Node"), Ce = /* @__PURE__ */ e(function(e, t) {
1270
+ e.split(",").forEach(function(e) {
1271
+ let n = I.get(e);
1272
+ if (n === void 0) {
1273
+ let t = e.trim();
1274
+ n = {
1275
+ id: t,
1276
+ type: "na",
1277
+ children: []
1278
+ }, I.set(t, n);
1279
+ }
1280
+ n.classes || (n.classes = []), n.classes.push(t);
1281
+ });
1282
+ }, "setCssClass"), we = /* @__PURE__ */ e((e, n) => {
1283
+ let r = e.flat(), i = [], a = r.find((e) => e?.type === "column-setting")?.columns ?? -1;
1284
+ for (let e of r) {
1285
+ if (typeof a == "number" && a > 0 && e.type !== "column-setting" && typeof e.widthInColumns == "number" && e.widthInColumns > a && t.warn(`Block ${e.id} width ${e.widthInColumns} exceeds configured column width ${a}`), e.label &&= be(e.label), e.type === "classDef") {
1286
+ xe(e.id, e.css);
1287
+ continue;
1288
+ }
1289
+ if (e.type === "applyClass") {
1290
+ Ce(e.id, e?.styleClass ?? "");
1291
+ continue;
1292
+ }
1293
+ if (e.type === "applyStyles") {
1294
+ e?.stylesStr && Se(e.id, e?.stylesStr);
1295
+ continue;
1296
+ }
1297
+ if (e.type === "column-setting") n.columns = e.columns ?? -1;
1298
+ else if (e.type === "edge") {
1299
+ let t = (R.get(e.id) ?? 0) + 1;
1300
+ R.set(e.id, t), e.id = t + "-" + e.id, L.push(e);
1301
+ } else {
1302
+ e.label ||= e.type === "composite" ? "" : e.id;
1303
+ let t = I.get(e.id);
1304
+ if (t === void 0 ? I.set(e.id, e) : (e.type !== "na" && (t.type = e.type), e.label !== e.id && (t.label = e.label)), e.children && we(e.children, e), e.type === "space") {
1305
+ let t = e.width ?? 1;
1306
+ for (let n = 0; n < t; n++) {
1307
+ let t = de(e);
1308
+ t.id = t.id + "-" + n, I.set(t.id, t), i.push(t);
1309
+ }
1310
+ } else t === void 0 && i.push(e);
1311
+ }
1312
+ }
1313
+ n.children = i;
1314
+ }, "populateBlockDatabase"), H = [], U = {
1315
+ id: "root",
1316
+ type: "composite",
1317
+ children: [],
1318
+ columns: -1
1319
+ }, Te = /* @__PURE__ */ e(() => {
1320
+ t.debug("Clear called"), r(), U = {
1321
+ id: "root",
1322
+ type: "composite",
1323
+ children: [],
1324
+ columns: -1
1325
+ }, I = /* @__PURE__ */ new Map([["root", U]]), H = [], B = /* @__PURE__ */ new Map(), L = [], R = /* @__PURE__ */ new Map(), V = "";
1326
+ }, "clear");
1327
+ function Ee(e) {
1328
+ switch (t.debug("typeStr2Type", e), e) {
1329
+ case "[]": return "square";
1330
+ case "()": return t.debug("we have a round"), "round";
1331
+ case "(())": return "circle";
1332
+ case ">]": return "rect_left_inv_arrow";
1333
+ case "{}": return "diamond";
1334
+ case "{{}}": return "hexagon";
1335
+ case "([])": return "stadium";
1336
+ case "[[]]": return "subroutine";
1337
+ case "[()]": return "cylinder";
1338
+ case "((()))": return "doublecircle";
1339
+ case "[//]": return "lean_right";
1340
+ case "[\\\\]": return "lean_left";
1341
+ case "[/\\]": return "trapezoid";
1342
+ case "[\\/]": return "inv_trapezoid";
1343
+ case "<[]>": return "block_arrow";
1344
+ default: return "na";
1345
+ }
1346
+ }
1347
+ e(Ee, "typeStr2Type");
1348
+ function De(e) {
1349
+ switch (t.debug("typeStr2Type", e), e) {
1350
+ case "==": return "thick";
1351
+ default: return "normal";
1352
+ }
1353
+ }
1354
+ e(De, "edgeTypeStr2Type");
1355
+ function Oe(e) {
1356
+ switch (e.trim().slice(-1)) {
1357
+ case "x": return "arrow_cross";
1358
+ case "o": return "arrow_circle";
1359
+ case ">": return "arrow_point";
1360
+ default: return "";
1361
+ }
1362
+ }
1363
+ e(Oe, "edgeStrToEdgeData");
1364
+ function ke(e) {
1365
+ switch (e.trim().charAt(0)) {
1366
+ case "x": return "arrow_cross";
1367
+ case "o": return "arrow_circle";
1368
+ case "<": return "arrow_point";
1369
+ default: return "arrow_open";
1370
+ }
1371
+ }
1372
+ e(ke, "edgeStrToEdgeStartData");
1373
+ function Ae(e) {
1374
+ return e.includes("==") ? "thick" : "normal";
1375
+ }
1376
+ e(Ae, "edgeStrToThickness");
1377
+ function W(e) {
1378
+ return e.includes(".-") ? "dotted" : "solid";
1379
+ }
1380
+ e(W, "edgeStrToPattern");
1381
+ var G = 0, je = {
1382
+ getConfig: /* @__PURE__ */ e(() => i().block, "getConfig"),
1383
+ typeStr2Type: Ee,
1384
+ edgeTypeStr2Type: De,
1385
+ edgeStrToEdgeData: Oe,
1386
+ edgeStrToEdgeStartData: ke,
1387
+ edgeStrToThickness: Ae,
1388
+ edgeStrToPattern: W,
1389
+ getLogger: /* @__PURE__ */ e(() => t, "getLogger"),
1390
+ getBlocksFlat: /* @__PURE__ */ e(() => [...I.values()], "getBlocksFlat"),
1391
+ getBlocks: /* @__PURE__ */ e(() => H || [], "getBlocks"),
1392
+ getEdges: /* @__PURE__ */ e(() => L, "getEdges"),
1393
+ setHierarchy: /* @__PURE__ */ e((e) => {
1394
+ U.children = e, we(e, U), H = U.children;
1395
+ }, "setHierarchy"),
1396
+ getBlock: /* @__PURE__ */ e((e) => I.get(e), "getBlock"),
1397
+ setBlock: /* @__PURE__ */ e((e) => {
1398
+ I.set(e.id, e);
1399
+ }, "setBlock"),
1400
+ getColumns: /* @__PURE__ */ e((e) => {
1401
+ let t = I.get(e);
1402
+ return t ? t.columns ? t.columns : t.children ? t.children.length : -1 : -1;
1403
+ }, "getColumns"),
1404
+ getClasses: /* @__PURE__ */ e(function() {
1405
+ return B;
1406
+ }, "getClasses"),
1407
+ clear: Te,
1408
+ generateId: /* @__PURE__ */ e(() => (G++, "id-" + Math.random().toString(36).substr(2, 12) + "-" + G), "generateId"),
1409
+ setDiagramId: /* @__PURE__ */ e((e) => {
1410
+ V = e;
1411
+ }, "setDiagramId"),
1412
+ getDiagramId: /* @__PURE__ */ e(() => V, "getDiagramId")
1413
+ }, K = /* @__PURE__ */ e((e, t) => {
1414
+ let n = l, r = n(e, "r"), i = n(e, "g"), a = n(e, "b");
1415
+ return o(r, i, a, t);
1416
+ }, "fade"), Me = /* @__PURE__ */ e((e) => `.label {
1417
+ font-family: ${e.fontFamily};
1418
+ color: ${e.nodeTextColor || e.textColor};
1419
+ }
1420
+ .cluster-label text {
1421
+ fill: ${e.titleColor};
1422
+ }
1423
+ .cluster-label span {
1424
+ color: ${e.titleColor};
1425
+ }
1426
+
1427
+
1428
+
1429
+ .label text,span {
1430
+ fill: ${e.nodeTextColor || e.textColor};
1431
+ color: ${e.nodeTextColor || e.textColor};
1432
+ }
1433
+
1434
+ .node rect,
1435
+ .node circle,
1436
+ .node ellipse,
1437
+ .node polygon,
1438
+ .node path {
1439
+ fill: ${e.mainBkg};
1440
+ stroke: ${e.nodeBorder};
1441
+ stroke-width: 1px;
1442
+ }
1443
+ .flowchart-label text {
1444
+ text-anchor: middle;
1445
+ }
1446
+ // .flowchart-label .text-outer-tspan {
1447
+ // text-anchor: middle;
1448
+ // }
1449
+ // .flowchart-label .text-inner-tspan {
1450
+ // text-anchor: start;
1451
+ // }
1452
+
1453
+ .node .label {
1454
+ text-align: center;
1455
+ }
1456
+ .node.clickable {
1457
+ cursor: pointer;
1458
+ }
1459
+
1460
+ .arrowheadPath {
1461
+ fill: ${e.arrowheadColor};
1462
+ }
1463
+
1464
+ .edgePath .path {
1465
+ stroke: ${e.lineColor};
1466
+ stroke-width: 2.0px;
1467
+ }
1468
+
1469
+ .flowchart-link {
1470
+ stroke: ${e.lineColor};
1471
+ fill: none;
1472
+ }
1473
+
1474
+ .edgeLabel {
1475
+ background-color: ${e.edgeLabelBackground};
1476
+ /*
1477
+ * This is for backward compatibility with existing code that didn't
1478
+ * add a \`<p>\` around edge labels.
1479
+ *
1480
+ * TODO: We should probably remove this in a future release.
1481
+ */
1482
+ p {
1483
+ margin: 0;
1484
+ padding: 0;
1485
+ display: inline;
1486
+ }
1487
+ rect {
1488
+ opacity: 0.5;
1489
+ background-color: ${e.edgeLabelBackground};
1490
+ fill: ${e.edgeLabelBackground};
1491
+ }
1492
+ text-align: center;
1493
+ }
1494
+
1495
+ /* For html labels only */
1496
+ .labelBkg {
1497
+ background-color: ${e.edgeLabelBackground};
1498
+ }
1499
+
1500
+ .node .cluster {
1501
+ // fill: ${K(e.mainBkg, .5)};
1502
+ fill: ${K(e.clusterBkg, .5)};
1503
+ stroke: ${K(e.clusterBorder, .2)};
1504
+ box-shadow: rgba(50, 50, 93, 0.25) 0px 13px 27px -5px, rgba(0, 0, 0, 0.3) 0px 8px 16px -8px;
1505
+ stroke-width: 1px;
1506
+ }
1507
+
1508
+ .cluster text {
1509
+ fill: ${e.titleColor};
1510
+ }
1511
+
1512
+ .cluster span {
1513
+ color: ${e.titleColor};
1514
+ }
1515
+ /* .cluster div {
1516
+ color: ${e.titleColor};
1517
+ } */
1518
+
1519
+ div.mermaidTooltip {
1520
+ position: absolute;
1521
+ text-align: center;
1522
+ max-width: 200px;
1523
+ padding: 2px;
1524
+ font-family: ${e.fontFamily};
1525
+ font-size: 12px;
1526
+ background: ${e.tertiaryColor};
1527
+ border: 1px solid ${e.border2};
1528
+ border-radius: 2px;
1529
+ pointer-events: none;
1530
+ z-index: 100;
1531
+ }
1532
+
1533
+ .flowchartTitleText {
1534
+ text-anchor: middle;
1535
+ font-size: 18px;
1536
+ fill: ${e.textColor};
1537
+ }
1538
+ ${re()}
1539
+ `, "getStyles");
1540
+ function q(e, t) {
1541
+ if (e === 0 || !Number.isInteger(e)) throw Error("Columns must be an integer !== 0.");
1542
+ if (t < 0 || !Number.isInteger(t)) throw Error("Position must be a non-negative integer." + t);
1543
+ return e < 0 ? {
1544
+ px: t,
1545
+ py: 0
1546
+ } : e === 1 ? {
1547
+ px: 0,
1548
+ py: t
1549
+ } : {
1550
+ px: t % e,
1551
+ py: Math.floor(t / e)
1552
+ };
1553
+ }
1554
+ e(q, "calculateBlockPosition");
1555
+ var Ne = /* @__PURE__ */ e((e) => {
1556
+ let n = 0, r = 0;
1557
+ for (let i of e.children) {
1558
+ let { width: e, height: a, x: o, y: s } = i.size ?? {
1559
+ width: 0,
1560
+ height: 0,
1561
+ x: 0,
1562
+ y: 0
1563
+ };
1564
+ if (t.debug("getMaxChildSize abc95 child:", i.id, "width:", e, "height:", a, "x:", o, "y:", s, i.type), i.type === "space") continue;
1565
+ let c = e / (i.widthInColumns ?? 1);
1566
+ c > n && (n = c), a > r && (r = a);
1567
+ }
1568
+ return {
1569
+ width: n,
1570
+ height: r
1571
+ };
1572
+ }, "getMaxChildSize");
1573
+ function J(e, n, r = 0, i = 0, a = 8) {
1574
+ t.debug("setBlockSizes abc95 (start)", e.id, e?.size?.x, "block width =", e?.size, "siblingWidth", r), e?.size?.width || (e.size = {
1575
+ width: r,
1576
+ height: i,
1577
+ x: 0,
1578
+ y: 0
1579
+ });
1580
+ let o = 0, s = 0;
1581
+ if (e.children?.length > 0) {
1582
+ for (let t of e.children) J(t, n, 0, 0, a);
1583
+ let c = Ne(e);
1584
+ o = c.width, s = c.height, t.debug("setBlockSizes abc95 maxWidth of", e.id, ":s children is ", o, s);
1585
+ for (let n of e.children) n.size && (t.debug(`abc95 Setting size of children of ${e.id} id=${n.id} ${o} ${s} ${JSON.stringify(n.size)}`), n.size.width = o * (n.widthInColumns ?? 1) + a * ((n.widthInColumns ?? 1) - 1), n.size.height = s, n.size.x = 0, n.size.y = 0, t.debug(`abc95 updating size of ${e.id} children child:${n.id} maxWidth:${o} maxHeight:${s}`));
1586
+ for (let t of e.children) J(t, n, o, s, a);
1587
+ let l = e.columns ?? -1, u = 0;
1588
+ for (let t of e.children) u += t.widthInColumns ?? 1;
1589
+ let d = e.children.length;
1590
+ l > 0 && l < u && (d = l);
1591
+ let f = Math.ceil(u / d), p = d * (o + a) + a, m = f * (s + a) + a;
1592
+ if (p < r) {
1593
+ t.debug(`Detected to small sibling: abc95 ${e.id} siblingWidth ${r} siblingHeight ${i} width ${p}`), p = r, m = i;
1594
+ let n = (r - d * a - a) / d, c = (i - f * a - a) / f;
1595
+ t.debug("Size indata abc88", e.id, "childWidth", n, "maxWidth", o), t.debug("Size indata abc88", e.id, "childHeight", c, "maxHeight", s), t.debug("Size indata abc88 xSize", d, "padding", a);
1596
+ for (let t of e.children) t.size && (t.size.width = n, t.size.height = c, t.size.x = 0, t.size.y = 0);
1597
+ }
1598
+ if (t.debug(`abc95 (finale calc) ${e.id} xSize ${d} ySize ${f} columns ${l}${e.children.length} width=${Math.max(p, e.size?.width || 0)}`), p < (e?.size?.width || 0)) {
1599
+ p = e?.size?.width || 0;
1600
+ let n = l > 0 ? Math.min(e.children.length, l) : e.children.length;
1601
+ if (n > 0) {
1602
+ let r = (p - n * a - a) / n;
1603
+ t.debug("abc95 (growing to fit) width", e.id, p, e.size?.width, r);
1604
+ for (let t of e.children) t.size && (t.size.width = r);
1605
+ }
1606
+ }
1607
+ e.size = {
1608
+ width: p,
1609
+ height: m,
1610
+ x: 0,
1611
+ y: 0
1612
+ };
1613
+ }
1614
+ t.debug("setBlockSizes abc94 (done)", e.id, e?.size?.x, e?.size?.width, e?.size?.y, e?.size?.height);
1615
+ }
1616
+ e(J, "setBlockSizes");
1617
+ function Y(e, n, r = 8) {
1618
+ t.debug(`abc85 layout blocks (=>layoutBlocks) ${e.id} x: ${e?.size?.x} y: ${e?.size?.y} width: ${e?.size?.width}`);
1619
+ let i = e.columns ?? -1;
1620
+ if (t.debug("layoutBlocks columns abc95", e.id, "=>", i, e), e.children && e.children.length > 0) {
1621
+ let a = e?.children[0]?.size?.width ?? 0, o = e.children.length * a + (e.children.length - 1) * r;
1622
+ t.debug("widthOfChildren 88", o, "posX");
1623
+ let s = /* @__PURE__ */ new Map();
1624
+ {
1625
+ let t = 0;
1626
+ for (let n of e.children) {
1627
+ if (!n.size) continue;
1628
+ let { py: e } = q(i, t), r = s.get(e) ?? 0;
1629
+ n.size.height > r && s.set(e, n.size.height);
1630
+ let a = n?.widthInColumns ?? 1;
1631
+ i > 0 && (a = Math.min(a, i - t % i)), t += a;
1632
+ }
1633
+ }
1634
+ let c = /* @__PURE__ */ new Map();
1635
+ {
1636
+ let e = 0, t = [...s.keys()].sort((e, t) => e - t);
1637
+ for (let n of t) c.set(n, e), e += (s.get(n) ?? 0) + r;
1638
+ }
1639
+ let l = 0;
1640
+ t.debug("abc91 block?.size?.x", e.id, e?.size?.x);
1641
+ let u = e?.size?.x ? e?.size?.x + (-e?.size?.width / 2 || 0) : -r, d = 0;
1642
+ for (let a of e.children) {
1643
+ let o = e;
1644
+ if (!a.size) continue;
1645
+ let { width: f, height: p } = a.size, { px: m, py: h } = q(i, l);
1646
+ if (h != d && (d = h, u = e?.size?.x ? e?.size?.x + (-e?.size?.width / 2 || 0) : -r, t.debug("New row in layout for block", e.id, " and child ", a.id, d)), t.debug(`abc89 layout blocks (child) id: ${a.id} Pos: ${l} (px, py) ${m},${h} (${o?.size?.x},${o?.size?.y}) parent: ${o.id} width: ${f}${r}`), o.size) {
1647
+ let e = f / 2;
1648
+ a.size.x = u + r + e, t.debug(`abc91 layout blocks (calc) px, pyid:${a.id} startingPos=X${u} new startingPosX${a.size.x} ${e} padding=${r} width=${f} halfWidth=${e} => x:${a.size.x} y:${a.size.y} ${a.widthInColumns} (width * (child?.w || 1)) / 2 ${f * (a?.widthInColumns ?? 1) / 2}`), u = a.size.x + e;
1649
+ let n = c.get(h) ?? 0, i = s.get(h) ?? p;
1650
+ a.size.y = o.size.y - o.size.height / 2 + n + i / 2 + r, t.debug(`abc88 layout blocks (calc) px, pyid:${a.id}startingPosX${u}${r}${e}=>x:${a.size.x}y:${a.size.y}${a.widthInColumns}(width * (child?.w || 1)) / 2${f * (a?.widthInColumns ?? 1) / 2}`);
1651
+ }
1652
+ a.children && Y(a, n, r);
1653
+ let g = a?.widthInColumns ?? 1;
1654
+ i > 0 && (g = Math.min(g, i - l % i)), l += g, t.debug("abc88 columnsPos", a, l);
1655
+ }
1656
+ }
1657
+ t.debug(`layout blocks (<==layoutBlocks) ${e.id} x: ${e?.size?.x} y: ${e?.size?.y} width: ${e?.size?.width}`);
1658
+ }
1659
+ e(Y, "layoutBlocks");
1660
+ function X(e, { minX: t, minY: n, maxX: r, maxY: i } = {
1661
+ minX: 0,
1662
+ minY: 0,
1663
+ maxX: 0,
1664
+ maxY: 0
1665
+ }) {
1666
+ if (e.size && e.id !== "root") {
1667
+ let { x: a, y: o, width: s, height: c } = e.size;
1668
+ a - s / 2 < t && (t = a - s / 2), o - c / 2 < n && (n = o - c / 2), a + s / 2 > r && (r = a + s / 2), o + c / 2 > i && (i = o + c / 2);
1669
+ }
1670
+ if (e.children) for (let a of e.children) ({minX: t, minY: n, maxX: r, maxY: i} = X(a, {
1671
+ minX: t,
1672
+ minY: n,
1673
+ maxX: r,
1674
+ maxY: i
1675
+ }));
1676
+ return {
1677
+ minX: t,
1678
+ minY: n,
1679
+ maxX: r,
1680
+ maxY: i
1681
+ };
1682
+ }
1683
+ e(X, "findBounds");
1684
+ function Z(e) {
1685
+ let n = e.getBlock("root");
1686
+ if (!n) return;
1687
+ let r = c()?.block?.padding ?? 8;
1688
+ J(n, e, 0, 0, r), Y(n, e, r), t.debug("getBlocks", JSON.stringify(n, null, 2));
1689
+ let { minX: i, minY: a, maxX: o, maxY: s } = X(n), l = s - a;
1690
+ return {
1691
+ x: i,
1692
+ y: a,
1693
+ width: o - i,
1694
+ height: l
1695
+ };
1696
+ }
1697
+ e(Z, "layout");
1698
+ function Q(e, t, n = !1) {
1699
+ let r = e, a = "default";
1700
+ (r?.classes?.length || 0) > 0 && (a = (r?.classes ?? []).join(" ")), a += " flowchart-label";
1701
+ let o = (r?.classes ?? []).flatMap((e) => t.getClasses().get(e)?.styles ?? []), s = 0, c = "rect", l;
1702
+ switch (r.type) {
1703
+ case "round":
1704
+ s = 5, c = "rect";
1705
+ break;
1706
+ case "composite":
1707
+ s = 0, c = "composite", l = 0;
1708
+ break;
1709
+ case "square":
1710
+ c = "rect";
1711
+ break;
1712
+ case "diamond":
1713
+ c = "question";
1714
+ break;
1715
+ case "hexagon":
1716
+ c = "hexagon";
1717
+ break;
1718
+ case "block_arrow":
1719
+ c = "block_arrow";
1720
+ break;
1721
+ case "odd":
1722
+ c = "rect_left_inv_arrow";
1723
+ break;
1724
+ case "lean_right":
1725
+ c = "lean_right";
1726
+ break;
1727
+ case "lean_left":
1728
+ c = "lean_left";
1729
+ break;
1730
+ case "trapezoid":
1731
+ c = "trapezoid";
1732
+ break;
1733
+ case "inv_trapezoid":
1734
+ c = "inv_trapezoid";
1735
+ break;
1736
+ case "rect_left_inv_arrow":
1737
+ c = "rect_left_inv_arrow";
1738
+ break;
1739
+ case "circle":
1740
+ c = "circle";
1741
+ break;
1742
+ case "ellipse":
1743
+ c = "ellipse";
1744
+ break;
1745
+ case "stadium":
1746
+ c = "stadium";
1747
+ break;
1748
+ case "subroutine":
1749
+ c = "subroutine";
1750
+ break;
1751
+ case "cylinder":
1752
+ c = "cylinder";
1753
+ break;
1754
+ case "group":
1755
+ c = "rect";
1756
+ break;
1757
+ case "doublecircle":
1758
+ c = "doublecircle";
1759
+ break;
1760
+ default: c = "rect";
1761
+ }
1762
+ let u = M(r?.styles ?? []), d = r.label, f = r.size ?? {
1763
+ width: 0,
1764
+ height: 0,
1765
+ x: 0,
1766
+ y: 0
1767
+ }, p = t.getDiagramId();
1768
+ return {
1769
+ labelStyle: u.labelStyle,
1770
+ shape: c,
1771
+ label: d,
1772
+ labelText: d,
1773
+ rx: s,
1774
+ ry: s,
1775
+ class: a,
1776
+ cssClasses: a,
1777
+ cssStyles: r?.styles ?? [],
1778
+ cssCompiledStyles: o,
1779
+ style: u.style,
1780
+ id: r.id,
1781
+ domId: p ? `${p}-${r.id}` : r.id,
1782
+ isGroup: !1,
1783
+ directions: r.directions,
1784
+ width: f.width || void 0,
1785
+ height: f.height || void 0,
1786
+ wrappingWidth: f.width || Infinity,
1787
+ x: f.x,
1788
+ y: f.y,
1789
+ positioned: n,
1790
+ intersect: void 0,
1791
+ padding: l ?? i()?.block?.padding ?? 0,
1792
+ widthInColumns: r.widthInColumns ?? 1
1793
+ };
1794
+ }
1795
+ e(Q, "getNodeFromBlock");
1796
+ async function Pe(e, t, n) {
1797
+ let r = Q(t, n, !1);
1798
+ if (t.type === "group") return;
1799
+ let a = i(), o = await N(e, r, { config: a }), s = o.node()?.getBBox() ?? {
1800
+ width: 0,
1801
+ height: 0
1802
+ }, c = n.getBlock(r.id);
1803
+ c.size = {
1804
+ width: s.width,
1805
+ height: s.height,
1806
+ x: 0,
1807
+ y: 0,
1808
+ node: o
1809
+ }, n.setBlock(c), o.remove();
1810
+ }
1811
+ e(Pe, "calculateBlockSize");
1812
+ async function Fe(e, t, n) {
1813
+ let r = Q(t, n, !0);
1814
+ if (n.getBlock(r.id).type !== "space") {
1815
+ let n = i();
1816
+ await N(e, r, { config: n }), t.intersect = r?.intersect, ie(r);
1817
+ }
1818
+ }
1819
+ e(Fe, "insertBlockPositioned");
1820
+ async function $(e, t, n, r) {
1821
+ for (let i of t) await r(e, i, n), i.children && await $(e, i.children, n, r);
1822
+ }
1823
+ e($, "performOperations");
1824
+ async function Ie(e, t, n) {
1825
+ await $(e, t, n, Pe);
1826
+ }
1827
+ e(Ie, "calculateBlockSizes");
1828
+ async function Le(e, t, n) {
1829
+ await $(e, t, n, Fe);
1830
+ }
1831
+ e(Le, "insertBlocks");
1832
+ async function Re(e, t, n, r, i) {
1833
+ let a = new le({
1834
+ multigraph: !0,
1835
+ compound: !0
1836
+ });
1837
+ a.setGraph({
1838
+ rankdir: "TB",
1839
+ nodesep: 10,
1840
+ ranksep: 10,
1841
+ marginx: 8,
1842
+ marginy: 8
1843
+ });
1844
+ for (let e of n) e.size && a.setNode(e.id, {
1845
+ width: e.size.width,
1846
+ height: e.size.height,
1847
+ intersect: e.intersect
1848
+ });
1849
+ for (let n of t) if (n.start && n.end) {
1850
+ let t = r.getBlock(n.start), o = r.getBlock(n.end);
1851
+ if (t?.size && o?.size) {
1852
+ let r = t.size, s = o.size, c = [
1853
+ {
1854
+ x: r.x,
1855
+ y: r.y
1856
+ },
1857
+ {
1858
+ x: r.x + (s.x - r.x) / 2,
1859
+ y: r.y + (s.y - r.y) / 2
1860
+ },
1861
+ {
1862
+ x: s.x,
1863
+ y: s.y
1864
+ }
1865
+ ], l = i ? `${i}-${n.id}` : n.id, u = `${n.thickness === "thick" ? "edge-thickness-thick" : "edge-thickness-normal"} ${n.pattern === "dotted" ? "edge-pattern-dotted" : "edge-pattern-solid"} flowchart-link LS-a1 LE-b1`;
1866
+ se(e, {
1867
+ ...n,
1868
+ id: l,
1869
+ arrowTypeEnd: n.arrowTypeEnd,
1870
+ arrowTypeStart: n.arrowTypeStart,
1871
+ points: c,
1872
+ classes: u
1873
+ }, {}, "block", a.node(n.start), a.node(n.end), i), n.label && (await ae(e, {
1874
+ ...n,
1875
+ label: n.label,
1876
+ labelStyle: "stroke: #333; stroke-width: 1.5px;fill:none;",
1877
+ arrowTypeEnd: n.arrowTypeEnd,
1878
+ arrowTypeStart: n.arrowTypeStart,
1879
+ points: c,
1880
+ classes: u
1881
+ }), oe({
1882
+ ...n,
1883
+ x: c[1].x,
1884
+ y: c[1].y
1885
+ }, { originalPath: c }));
1886
+ }
1887
+ }
1888
+ }
1889
+ e(Re, "insertEdges");
1890
+ var ze = {
1891
+ parser: ge,
1892
+ db: je,
1893
+ renderer: {
1894
+ draw: /* @__PURE__ */ e(async function(e, r, o, s) {
1895
+ let { securityLevel: c, block: l } = i(), u = s.db;
1896
+ u.setDiagramId(r);
1897
+ let d;
1898
+ c === "sandbox" && (d = n("#i" + r));
1899
+ let f = n(c === "sandbox" ? d.nodes()[0].contentDocument.body : "body"), p = c === "sandbox" ? f.select(`[id="${r}"]`) : n(`[id="${r}"]`);
1900
+ ce(p, [
1901
+ "point",
1902
+ "circle",
1903
+ "cross"
1904
+ ], s.type, r);
1905
+ let m = u.getBlocks(), h = u.getBlocksFlat(), g = u.getEdges(), _ = p.insert("g").attr("class", "block");
1906
+ await Ie(_, m, u);
1907
+ let v = Z(u);
1908
+ await Le(_, m, u), await Re(_, g, h, u, r);
1909
+ let y = _.node()?.getBBox(), b = y && Number.isFinite(y.width) && Number.isFinite(y.height) ? y : v;
1910
+ if (b) {
1911
+ let e = Math.max(1, Math.round(.125 * (b.width / b.height))), n = b.height + e + 10, r = b.width + 10, { useMaxWidth: i } = l;
1912
+ a(p, n, r, !!i), t.debug("Here Bounds", v, b), p.attr("viewBox", `${b.x - 5} ${b.y - 5} ${b.width + 10} ${b.height + 10}`);
1913
+ }
1914
+ }, "draw"),
1915
+ getClasses: /* @__PURE__ */ e(function(e, t) {
1916
+ return t.db.getClasses();
1917
+ }, "getClasses")
1918
+ },
1919
+ styles: Me
1920
+ };
1921
+ //#endregion
1922
+ export { ze as diagram };