@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,168 @@
1
+ const e=require("./chunk-Y2CYZVJY-CnmLqFtv.cjs"),t=require("./src-D9o9TOtH.cjs"),n=require("./chunk-DU6HZSFF-3Hhp3Fo5.cjs"),r=require("./channel-DcrLLvcO.cjs"),i=require("./chunk-75Z2AOVW-DOXS9ORa.cjs"),a=require("./chunk-5VM5RSS4-CwDmQ9T_.cjs"),o=require("./chunk-4HAMMTFA-CtkrBT7X.cjs"),s=require("./chunk-F27PBJKO-3UPgzIlN.cjs"),c=require("./chunk-XXDRQBXY-yMT3rT5Y.cjs"),l=require("./chunk-POPQ4Y6H-BRQPB1-9.cjs"),u=require("./mermaid.core-B3QcBB1O.cjs");var d=`flowchart-`,f=class{constructor(){this.vertexCounter=0,this.config=n.x(),this.diagramId=``,this.vertices=new Map,this.edges=[],this.classes=new Map,this.subGraphs=[],this.subGraphLookup=new Map,this.tooltips=new Map,this.subCount=0,this.firstGraphFlag=!0,this.secCount=-1,this.posCrossRef=[],this.funs=[],this.setAccTitle=n.U,this.setAccDescription=n.H,this.setDiagramTitle=n.K,this.getAccTitle=n.y,this.getAccDescription=n.v,this.getDiagramTitle=n.w,this.funs.push(this.setupToolTips.bind(this)),this.addVertex=this.addVertex.bind(this),this.firstGraph=this.firstGraph.bind(this),this.setDirection=this.setDirection.bind(this),this.addSubGraph=this.addSubGraph.bind(this),this.addLink=this.addLink.bind(this),this.setLink=this.setLink.bind(this),this.updateLink=this.updateLink.bind(this),this.addClass=this.addClass.bind(this),this.setClass=this.setClass.bind(this),this.destructLink=this.destructLink.bind(this),this.setClickEvent=this.setClickEvent.bind(this),this.setTooltip=this.setTooltip.bind(this),this.updateLinkInterpolate=this.updateLinkInterpolate.bind(this),this.setClickFun=this.setClickFun.bind(this),this.bindFunctions=this.bindFunctions.bind(this),this.lex={firstGraph:this.firstGraph.bind(this)},this.clear(),this.setGen(`gen-2`)}static{e.n(this,`FlowDB`)}sanitizeText(e){return n.s.sanitizeText(e,this.config)}sanitizeNodeLabelType(e){switch(e){case`markdown`:case`string`:case`text`:return e;default:return`markdown`}}setDiagramId(e){this.diagramId=e}lookUpDomId(e){for(let t of this.vertices.values())if(t.id===e)return this.diagramId?`${this.diagramId}-${t.domId}`:t.domId;return this.diagramId?`${this.diagramId}-${e}`:e}addVertex(e,r,i,a,s,c,l={},f){if(!e||e.trim().length===0)return;let p;if(f!==void 0){let e;e=f.includes(`
2
+ `)?f+`
3
+ `:`{
4
+ `+f+`
5
+ }`,p=u.r(e,{schema:u.n})}let m=this.subGraphLookup.get(e);if(m&&p){m.metadata={...m.metadata,...p};return}let h=this.edges.find(t=>t.id===e);if(h){let e=p;e?.animate!==void 0&&(h.animate=e.animate),e?.animation!==void 0&&(h.animation=e.animation),e?.curve!==void 0&&(h.interpolate=e.curve);return}let g,_=this.vertices.get(e);if(_===void 0&&(r===void 0&&i===void 0&&a!=null&&t.m.warn(`Style applied to unknown node "${e}". This may indicate a typo. The node will be created automatically.`),_={id:e,labelType:`text`,domId:d+e+`-`+this.vertexCounter,styles:[],classes:[]},this.vertices.set(e,_)),this.vertexCounter++,r===void 0?_.text===void 0&&(_.text=e):(this.config=n.x(),g=this.sanitizeText(r.text.trim()),_.labelType=r.type,g.startsWith(`"`)&&g.endsWith(`"`)&&(g=g.substring(1,g.length-1)),_.text=g),i!==void 0&&(_.type=i),a?.forEach(e=>{_.styles.push(e)}),s?.forEach(e=>{_.classes.push(e)}),c!==void 0&&(_.dir=c),_.props===void 0?_.props=l:l!==void 0&&Object.assign(_.props,l),p!==void 0){if(p.shape){if(p.shape!==p.shape.toLowerCase()||p.shape.includes(`_`))throw Error(`No such shape: ${p.shape}. Shape names should be lowercase.`);if(!o.i(p.shape))throw Error(`No such shape: ${p.shape}.`);_.type=p?.shape}p?.label&&(_.text=p?.label,_.labelType=this.sanitizeNodeLabelType(p?.labelType)),p?.icon&&(_.icon=p?.icon,!p.label?.trim()&&_.text===e&&(_.text=``)),p?.form&&(_.form=p?.form),p?.pos&&(_.pos=p?.pos),p?.img&&(_.img=p?.img,!p.label?.trim()&&_.text===e&&(_.text=``)),p?.constraint&&(_.constraint=p.constraint),p.w&&(_.assetWidth=Number(p.w)),p.h&&(_.assetHeight=Number(p.h))}}addSingleLink(e,n,r,a){let o={start:e,end:n,type:void 0,text:``,labelType:`text`,classes:[],isUserDefinedId:!1,interpolate:this.edges.defaultInterpolate};t.m.info(`abc78 Got edge...`,o);let s=r.text;if(s!==void 0&&(o.text=this.sanitizeText(s.text.trim()),o.text.startsWith(`"`)&&o.text.endsWith(`"`)&&(o.text=o.text.substring(1,o.text.length-1)),o.labelType=this.sanitizeNodeLabelType(s.type)),r!==void 0&&(o.type=r.type,o.stroke=r.stroke,o.length=r.length>10?10:r.length),a&&!this.edges.some(e=>e.id===a))o.id=a,o.isUserDefinedId=!0;else{let e=this.edges.filter(e=>e.start===o.start&&e.end===o.end);o.id=e.length===0?i.c(o.start,o.end,{counter:0,prefix:`L`}):i.c(o.start,o.end,{counter:e.length+1,prefix:`L`})}if(this.edges.length<(this.config.maxEdges??500))t.m.info(`Pushing edge...`),this.edges.push(o);else throw Error(`Edge limit exceeded. ${this.edges.length} edges found, but the limit is ${this.config.maxEdges}.
6
+
7
+ Initialize mermaid with maxEdges set to a higher number to allow more edges.
8
+ You cannot set this config via configuration inside the diagram as it is a secure config.
9
+ You have to call mermaid.initialize.`)}isLinkData(e){return typeof e==`object`&&!!e&&`id`in e&&typeof e.id==`string`}addLink(e,n,r){let i=this.isLinkData(r)?r.id.replace(`@`,``):void 0;t.m.info(`addLink`,e,n,i);for(let t of e)for(let a of n){let o=t===e[e.length-1],s=a===n[0];o&&s?this.addSingleLink(t,a,r,i):this.addSingleLink(t,a,r,void 0)}}updateLinkInterpolate(e,t){e.forEach(e=>{e==="default"?this.edges.defaultInterpolate=t:this.edges[e].interpolate=t})}updateLink(e,t){e.forEach(e=>{if(typeof e==`number`&&e>=this.edges.length)throw Error(`The index ${e} for linkStyle is out of bounds. Valid indices for linkStyle are between 0 and ${this.edges.length-1}. (Help: Ensure that the index is within the range of existing edges.)`);e==="default"?this.edges.defaultStyle=t:(this.edges[e].style=t,(this.edges[e]?.style?.length??0)>0&&!this.edges[e]?.style?.some(e=>e?.startsWith(`fill`))&&this.edges[e]?.style?.push(`fill:none`))})}addClass(e,t){let n=t.join().replace(/\\,/g,`§§§`).replace(/,/g,`;`).replace(/§§§/g,`,`).split(`;`);e.split(`,`).forEach(e=>{let t=this.classes.get(e);t===void 0&&(t={id:e,styles:[],textStyles:[]},this.classes.set(e,t)),n?.forEach(e=>{if(/color/.exec(e)){let n=e.replace(`fill`,`bgFill`);t.textStyles.push(n)}t.styles.push(e)})})}setDirection(e){this.direction=e.trim(),/.*</.exec(this.direction)&&(this.direction=`RL`),/.*\^/.exec(this.direction)&&(this.direction=`BT`),/.*>/.exec(this.direction)&&(this.direction=`LR`),/.*v/.exec(this.direction)&&(this.direction=`TB`),this.direction===`TD`&&(this.direction=`TB`)}setClass(e,t){for(let n of e.split(`,`)){let e=this.vertices.get(n);e&&e.classes.push(t);let r=this.edges.find(e=>e.id===n);r&&r.classes.push(t);let i=this.subGraphLookup.get(n);i&&i.classes.push(t)}}setTooltip(e,t){if(t!==void 0){t=this.sanitizeText(t);for(let n of e.split(`,`))this.tooltips.set(this.version===`gen-1`?this.lookUpDomId(n):n,t)}}setClickFun(e,t,r){if(n.x().securityLevel!==`loose`||t===void 0)return;let a=[];if(typeof r==`string`){a=r.split(/,(?=(?:(?:[^"]*"){2})*[^"]*$)/);for(let e=0;e<a.length;e++){let t=a[e].trim();t.startsWith(`"`)&&t.endsWith(`"`)&&(t=t.substr(1,t.length-2)),a[e]=t}}a.length===0&&a.push(e);let o=this.vertices.get(e);o&&(o.haveCallback=!0,this.funs.push(()=>{let n=this.lookUpDomId(e),r=document.querySelector(`[id="${n}"]`);r!==null&&r.addEventListener(`click`,()=>{i.g.runFunc(t,...a)},!1)}))}setLink(e,t,n){e.split(`,`).forEach(e=>{let r=this.vertices.get(e);r!==void 0&&(r.link=i.g.formatUrl(t,this.config),r.linkTarget=n)}),this.setClass(e,`clickable`)}getTooltip(e){return this.tooltips.get(e)}setClickEvent(e,t,n){e.split(`,`).forEach(e=>{this.setClickFun(e,t,n)}),this.setClass(e,`clickable`)}bindFunctions(e){this.funs.forEach(t=>{t(e)})}getDirection(){return this.direction?.trim()}getVertices(){return this.vertices}getEdges(){return this.edges}getClasses(){return this.classes}setupToolTips(e){let r=s.t();t.p(e).select(`svg`).selectAll(`g.node`).on(`mouseover`,e=>{let i=t.p(e.currentTarget),a=i.attr(`title`);if(a===null)return;let o=e.currentTarget?.getBoundingClientRect();r.transition().duration(200).style(`opacity`,`.9`),r.text(i.attr(`title`)).style(`left`,window.scrollX+o.left+(o.right-o.left)/2+`px`).style(`top`,window.scrollY+o.bottom+`px`),r.html(n.$.sanitize(a)),i.classed(`hover`,!0)}).on(`mouseout`,e=>{r.transition().duration(500).style(`opacity`,0),t.p(e.currentTarget).classed(`hover`,!1)})}clear(e=`gen-2`){this.vertices=new Map,this.classes=new Map,this.edges=[],this.funs=[this.setupToolTips.bind(this)],this.diagramId=``,this.subGraphs=[],this.subGraphLookup=new Map,this.subCount=0,this.tooltips=new Map,this.firstGraphFlag=!0,this.version=e,this.config=n.x(),n.a()}setGen(e){this.version=e||`gen-2`}defaultStyle(){return`fill:#ffa;stroke: #f66; stroke-width: 3px; stroke-dasharray: 5, 5;fill:#ffa;stroke: #666;`}addSubGraph(r,i,a){let o=r.text.trim(),s=a.text;r===a&&/\s/.exec(a.text)&&(o=void 0);let c=e.n(e=>{let t={boolean:{},number:{},string:{}},n=[],r;return{nodeList:e.filter(function(e){let i=typeof e;return e.stmt&&e.stmt===`dir`?(r=e.value,!1):e.trim()===``?!1:i in t?t[i].hasOwnProperty(e)?!1:t[i][e]=!0:!n.includes(e)&&n.push(e)}),dir:r}},`uniq`)(i.flat()),l=c.nodeList,u=c.dir,d=n.x().flowchart??{};if(u??=d.inheritDir?this.getDirection()??n.x().direction??void 0:void 0,this.version===`gen-1`)for(let e=0;e<l.length;e++)l[e]=this.lookUpDomId(l[e]);o??=`subGraph`+this.subCount,s||=``,s=this.sanitizeText(s),this.subCount+=1;let f={id:o,nodes:l,title:s.trim(),classes:[],dir:u,labelType:this.sanitizeNodeLabelType(a?.type)};return t.m.info(`Adding`,f.id,f.nodes,f.dir),f.nodes=this.makeUniq(f,this.subGraphs).nodes,this.subGraphs.push(f),this.subGraphLookup.set(o,f),o}getPosForId(e){for(let[t,n]of this.subGraphs.entries())if(n.id===e)return t;return-1}indexNodes2(e,t){let n=this.subGraphs[t].nodes;if(this.secCount+=1,this.secCount>2e3)return{result:!1,count:0};if(this.posCrossRef[this.secCount]=t,this.subGraphs[t].id===e)return{result:!0,count:0};let r=0,i=1;for(;r<n.length;){let t=this.getPosForId(n[r]);if(t>=0){let n=this.indexNodes2(e,t);if(n.result)return{result:!0,count:i+n.count};i+=n.count}r+=1}return{result:!1,count:i}}getDepthFirstPos(e){return this.posCrossRef[e]}indexNodes(){this.secCount=-1,this.subGraphs.length>0&&this.indexNodes2(`none`,this.subGraphs.length-1)}getSubGraphs(){return this.subGraphs}firstGraph(){return this.firstGraphFlag?(this.firstGraphFlag=!1,!0):!1}destructStartLink(e){let t=e.trim(),n=`arrow_open`;switch(t[0]){case`<`:n=`arrow_point`,t=t.slice(1);break;case`x`:n=`arrow_cross`,t=t.slice(1);break;case`o`:n=`arrow_circle`,t=t.slice(1)}let r=`normal`;return t.includes(`=`)&&(r=`thick`),t.includes(`.`)&&(r=`dotted`),{type:n,stroke:r}}countChar(e,t){let n=t.length,r=0;for(let i=0;i<n;++i)t[i]===e&&++r;return r}destructEndLink(e){let t=e.trim(),n=t.slice(0,-1),r=`arrow_open`;switch(t.slice(-1)){case`x`:r=`arrow_cross`,t.startsWith(`x`)&&(r=`double_`+r,n=n.slice(1));break;case`>`:r=`arrow_point`,t.startsWith(`<`)&&(r=`double_`+r,n=n.slice(1));break;case`o`:r=`arrow_circle`,t.startsWith(`o`)&&(r=`double_`+r,n=n.slice(1))}let i=`normal`,a=n.length-1;n.startsWith(`=`)&&(i=`thick`),n.startsWith(`~`)&&(i=`invisible`);let o=this.countChar(`.`,n);return o&&(i=`dotted`,a=o),{type:r,stroke:i,length:a}}destructLink(e,t){let n=this.destructEndLink(e),r;if(t){if(r=this.destructStartLink(t),r.stroke!==n.stroke)return{type:`INVALID`,stroke:`INVALID`};if(r.type===`arrow_open`)r.type=n.type;else{if(r.type!==n.type)return{type:`INVALID`,stroke:`INVALID`};r.type=`double_`+r.type}return r.type===`double_arrow`&&(r.type=`double_arrow_point`),r.length=n.length,r}return n}exists(e,t){for(let n of e)if(n.nodes.includes(t))return!0;return!1}makeUniq(e,t){let n=[];return e.nodes.forEach((r,i)=>{this.exists(t,r)||n.push(e.nodes[i])}),{nodes:n}}getTypeFromVertex(e){if(e.img)return`imageSquare`;if(e.icon)return e.form===`circle`?`iconCircle`:e.form===`square`?`iconSquare`:e.form===`rounded`?`iconRounded`:`icon`;switch(e.type){case`square`:case void 0:return`squareRect`;case`round`:return`roundedRect`;case`ellipse`:return`ellipse`;default:return e.type}}findNode(e,t){return e.find(e=>e.id===t)}destructEdgeType(e){let t=`none`,n=`arrow_point`;switch(e){case`arrow_point`:case`arrow_circle`:case`arrow_cross`:n=e;break;case`double_arrow_point`:case`double_arrow_circle`:case`double_arrow_cross`:t=e.replace(`double_`,``),n=t}return{arrowTypeStart:t,arrowTypeEnd:n}}addNodeFromVertex(e,t,n,r,i,a){let o=n.get(e.id),s=r.get(e.id)??!1,c=this.findNode(t,e.id);if(c)c.cssStyles=e.styles,c.cssCompiledStyles=this.getCompiledStyles(e.classes),c.cssClasses=e.classes.join(` `);else{let n={id:e.id,label:e.text,labelType:e.labelType,labelStyle:``,parentId:o,padding:i.flowchart?.padding||8,cssStyles:e.styles,cssCompiledStyles:this.getCompiledStyles([`default`,`node`,...e.classes]),cssClasses:`default `+e.classes.join(` `),dir:e.dir,domId:e.domId,look:a,link:e.link,linkTarget:e.linkTarget,tooltip:this.getTooltip(e.id),icon:e.icon,pos:e.pos,img:e.img,assetWidth:e.assetWidth,assetHeight:e.assetHeight,constraint:e.constraint};s?t.push({...n,isGroup:!0,shape:`rect`}):t.push({...n,isGroup:!1,shape:this.getTypeFromVertex(e)})}}getCompiledStyles(e){let t=[];for(let n of e){let e=this.classes.get(n);e?.styles&&(t=[...t,...e.styles??[]].map(e=>e.trim())),e?.textStyles&&(t=[...t,...e.textStyles??[]].map(e=>e.trim()))}return t}getData(){let t=n.x(),r=[],a=[],o=this.getSubGraphs(),s=new Map,c=new Map,l=new Map;for(let e of o)for(let t of e.nodes)this.subGraphLookup.has(t)&&l.set(t,e.id);let u=e.n(e=>this.subGraphLookup.get(e)?.metadata?.view===`collapsed`,`isCollapsed`),d=e.n(e=>{let t,n=new Set,r=e;for(;r!==void 0&&!n.has(r);)n.add(r),u(r)&&(t=r),r=l.get(r);return t},`outermostCollapsed`),f=new Set,p=new Map;for(let e of o){let t=d(e.id);if(t!==void 0){e.id!==t&&(f.add(e.id),p.set(e.id,t));for(let n of e.nodes)n!==t&&(f.add(n),p.set(n,t))}}for(let e=o.length-1;e>=0;e--){let t=o[e];if(!f.has(t.id)){t.nodes.length>0&&c.set(t.id,!0);for(let e of t.nodes)s.set(e,t.id)}}for(let e=o.length-1;e>=0;e--){let n=o[e];f.has(n.id)||(n.metadata?.view===`collapsed`?r.push({id:n.id,label:n.title,labelStyle:``,labelType:n.labelType,parentId:s.get(n.id),padding:8,cssCompiledStyles:this.getCompiledStyles(n.classes),cssClasses:n.classes.join(` `),shape:`collapsedGroup`,dir:n.dir,isGroup:!1,look:t.look}):r.push({id:n.id,label:n.title,labelStyle:``,labelType:n.labelType,parentId:s.get(n.id),padding:8,cssCompiledStyles:this.getCompiledStyles(n.classes),cssClasses:n.classes.join(` `),shape:`rect`,dir:n.dir,isGroup:!0,look:t.look}))}this.getVertices().forEach(e=>{f.has(e.id)||this.addNodeFromVertex(e,r,s,c,t,t.look||`classic`)});let m=this.getEdges();return m.forEach((e,n)=>{let{arrowTypeStart:r,arrowTypeEnd:o}=this.destructEdgeType(e.type),s=[...m.defaultStyle??[]],c=p.get(e.start)??e.start,l=p.get(e.end)??e.end;if(c===l&&(p.has(e.start)||p.has(e.end)))return;e.style&&s.push(...e.style);let u={id:i.c(c,l,{counter:n,prefix:`L`},e.id),isUserDefinedId:e.isUserDefinedId,start:c,end:l,type:e.type??`normal`,label:e.text,labelType:e.labelType,labelpos:`c`,thickness:e.stroke,minlen:e.length,classes:e?.stroke===`invisible`?``:`edge-thickness-normal edge-pattern-solid flowchart-link`,arrowTypeStart:e?.stroke===`invisible`||e?.type===`arrow_open`?`none`:r,arrowTypeEnd:e?.stroke===`invisible`||e?.type===`arrow_open`?`none`:o,arrowheadStyle:`fill: #333`,cssCompiledStyles:this.getCompiledStyles(e.classes),labelStyle:s,style:s,pattern:e.stroke,look:t.look,animate:e.animate,animation:e.animation,curve:e.interpolate||this.edges.defaultInterpolate||t.flowchart?.curve};a.push(u)}),{nodes:r,edges:a,other:{},config:t}}defaultConfig(){return n.d.flowchart}},p={getClasses:e.n(function(e,t){return t.db.getClasses()},`getClasses`),draw:e.n(async function(e,r,a,o){t.m.info(`REF0:`),t.m.info(`Drawing state diagram (v2)`,r);let{securityLevel:s,flowchart:d,layout:f}=n.x();o.db.setDiagramId(r),t.m.debug(`Before getData: `);let p=o.db.getData();t.m.debug(`Data: `,p);let m=c.t(r,s),h=o.db.getDirection();p.type=o.type,p.layoutAlgorithm=u.u(f),p.layoutAlgorithm===`dagre`&&f===`elk`&&t.m.warn("flowchart-elk was moved to an external package in Mermaid v11. Please refer [release notes](https://github.com/mermaid-js/mermaid/releases/tag/v11.0.0) for more details. This diagram will be rendered using `dagre` layout as a fallback."),p.direction=h,p.nodeSpacing=d?.nodeSpacing||50,p.rankSpacing=d?.rankSpacing||50,p.markers=[`point`,`circle`,`cross`],p.diagramId=r,t.m.debug(`REF1:`,p),await u.d(p,m);let g=p.config.flowchart?.diagramPadding??8;i.g.insertTitle(m,`flowchartTitleText`,d?.titleTopMargin||0,o.db.getDiagramTitle()),l.t(m,g,`flowchart`,d?.useMaxWidth||!1)},`draw`)},m=(function(){var t=e.n(function(e,t,n,r){for(n||={},r=e.length;r--;n[e[r]]=t);return n},`o`),n=[1,4],r=[1,3],i=[1,5],a=[1,8,9,10,11,27,34,36,38,44,60,84,85,86,87,88,89,102,105,106,109,111,114,115,116,121,122,123,124,125],o=[2,2],s=[1,13],c=[1,14],l=[1,15],u=[1,16],d=[1,23],f=[1,25],p=[1,26],m=[1,27],h=[1,50],g=[1,49],_=[1,29],v=[1,30],ee=[1,31],te=[1,32],ne=[1,33],y=[1,45],b=[1,47],x=[1,43],S=[1,48],C=[1,44],w=[1,51],T=[1,46],E=[1,52],D=[1,53],O=[1,34],re=[1,35],ie=[1,36],ae=[1,37],oe=[1,38],k=[1,58],A=[1,8,9,10,11,27,32,34,36,38,44,60,84,85,86,87,88,89,102,105,106,109,111,114,115,116,121,122,123,124,125],j=[1,62],M=[1,61],N=[1,63],se=[8,9,11,75,77,78],ce=[1,79],le=[1,92],ue=[1,97],de=[1,96],fe=[1,93],pe=[1,89],me=[1,95],he=[1,91],ge=[1,98],_e=[1,94],ve=[1,99],ye=[1,90],be=[8,9,10,11,40,75,77,78],P=[8,9,10,11,40,46,75,77,78],F=[8,9,10,11,29,40,44,46,48,50,52,54,56,58,60,63,65,67,68,70,75,77,78,89,102,105,106,109,111,114,115,116],xe=[8,9,11,44,60,75,77,78,89,102,105,106,109,111,114,115,116],Se=[44,60,89,102,105,106,109,111,114,115,116],Ce=[1,122],we=[1,123],Te=[1,125],Ee=[1,124],De=[44,60,62,74,89,102,105,106,109,111,114,115,116],Oe=[1,134],ke=[1,148],Ae=[1,149],je=[1,150],Me=[1,151],Ne=[1,136],Pe=[1,138],Fe=[1,142],Ie=[1,143],Le=[1,144],Re=[1,145],ze=[1,146],Be=[1,147],Ve=[1,152],He=[1,153],Ue=[1,132],We=[1,133],Ge=[1,140],Ke=[1,135],qe=[1,139],Je=[1,137],Ye=[8,9,10,11,27,32,34,36,38,44,60,84,85,86,87,88,89,102,105,106,109,111,114,115,116,121,122,123,124,125],Xe=[1,155],Ze=[1,157],I=[8,9,11],L=[8,9,10,11,14,44,60,89,105,106,109,111,114,115,116],R=[1,177],z=[1,173],B=[1,174],V=[1,178],H=[1,175],U=[1,176],Qe=[77,116,119],W=[8,9,10,11,12,14,27,29,32,44,60,75,84,85,86,87,88,89,90,105,109,111,114,115,116],$e=[10,106],et=[31,49,51,53,55,57,62,64,66,67,69,71,116,117,118],G=[1,248],K=[1,246],q=[1,250],J=[1,244],Y=[1,245],X=[1,247],Z=[1,249],Q=[1,251],tt=[1,269],nt=[8,9,11,106],$=[8,9,10,11,60,84,105,106,109,110,111,112],rt={trace:e.n(function(){},`trace`),yy:{},symbols_:{error:2,start:3,graphConfig:4,document:5,line:6,statement:7,SEMI:8,NEWLINE:9,SPACE:10,EOF:11,GRAPH:12,NODIR:13,DIR:14,FirstStmtSeparator:15,ending:16,endToken:17,spaceList:18,spaceListNewline:19,vertexStatement:20,separator:21,styleStatement:22,linkStyleStatement:23,classDefStatement:24,classStatement:25,clickStatement:26,subgraph:27,textNoTags:28,SQS:29,text:30,SQE:31,end:32,direction:33,acc_title:34,acc_title_value:35,acc_descr:36,acc_descr_value:37,acc_descr_multiline_value:38,shapeData:39,SHAPE_DATA:40,link:41,node:42,styledVertex:43,AMP:44,vertex:45,STYLE_SEPARATOR:46,idString:47,DOUBLECIRCLESTART:48,DOUBLECIRCLEEND:49,PS:50,PE:51,"(-":52,"-)":53,STADIUMSTART:54,STADIUMEND:55,SUBROUTINESTART:56,SUBROUTINEEND:57,VERTEX_WITH_PROPS_START:58,"NODE_STRING[field]":59,COLON:60,"NODE_STRING[value]":61,PIPE:62,CYLINDERSTART:63,CYLINDEREND:64,DIAMOND_START:65,DIAMOND_STOP:66,TAGEND:67,TRAPSTART:68,TRAPEND:69,INVTRAPSTART:70,INVTRAPEND:71,linkStatement:72,arrowText:73,TESTSTR:74,START_LINK:75,edgeText:76,LINK:77,LINK_ID:78,edgeTextToken:79,STR:80,MD_STR:81,textToken:82,keywords:83,STYLE:84,LINKSTYLE:85,CLASSDEF:86,CLASS:87,CLICK:88,DOWN:89,UP:90,textNoTagsToken:91,stylesOpt:92,"idString[vertex]":93,"idString[class]":94,CALLBACKNAME:95,CALLBACKARGS:96,HREF:97,LINK_TARGET:98,"STR[link]":99,"STR[tooltip]":100,alphaNum:101,DEFAULT:102,numList:103,INTERPOLATE:104,NUM:105,COMMA:106,style:107,styleComponent:108,NODE_STRING:109,UNIT:110,BRKT:111,PCT:112,idStringToken:113,MINUS:114,MULT:115,UNICODE_TEXT:116,TEXT:117,TAGSTART:118,EDGE_TEXT:119,alphaNumToken:120,direction_tb:121,direction_bt:122,direction_rl:123,direction_lr:124,direction_td:125,$accept:0,$end:1},terminals_:{2:`error`,8:`SEMI`,9:`NEWLINE`,10:`SPACE`,11:`EOF`,12:`GRAPH`,13:`NODIR`,14:`DIR`,27:`subgraph`,29:`SQS`,31:`SQE`,32:`end`,34:`acc_title`,35:`acc_title_value`,36:`acc_descr`,37:`acc_descr_value`,38:`acc_descr_multiline_value`,40:`SHAPE_DATA`,44:`AMP`,46:`STYLE_SEPARATOR`,48:`DOUBLECIRCLESTART`,49:`DOUBLECIRCLEEND`,50:`PS`,51:`PE`,52:`(-`,53:`-)`,54:`STADIUMSTART`,55:`STADIUMEND`,56:`SUBROUTINESTART`,57:`SUBROUTINEEND`,58:`VERTEX_WITH_PROPS_START`,59:`NODE_STRING[field]`,60:`COLON`,61:`NODE_STRING[value]`,62:`PIPE`,63:`CYLINDERSTART`,64:`CYLINDEREND`,65:`DIAMOND_START`,66:`DIAMOND_STOP`,67:`TAGEND`,68:`TRAPSTART`,69:`TRAPEND`,70:`INVTRAPSTART`,71:`INVTRAPEND`,74:`TESTSTR`,75:`START_LINK`,77:`LINK`,78:`LINK_ID`,80:`STR`,81:`MD_STR`,84:`STYLE`,85:`LINKSTYLE`,86:`CLASSDEF`,87:`CLASS`,88:`CLICK`,89:`DOWN`,90:`UP`,93:`idString[vertex]`,94:`idString[class]`,95:`CALLBACKNAME`,96:`CALLBACKARGS`,97:`HREF`,98:`LINK_TARGET`,99:`STR[link]`,100:`STR[tooltip]`,102:`DEFAULT`,104:`INTERPOLATE`,105:`NUM`,106:`COMMA`,109:`NODE_STRING`,110:`UNIT`,111:`BRKT`,112:`PCT`,114:`MINUS`,115:`MULT`,116:`UNICODE_TEXT`,117:`TEXT`,118:`TAGSTART`,119:`EDGE_TEXT`,121:`direction_tb`,122:`direction_bt`,123:`direction_rl`,124:`direction_lr`,125:`direction_td`},productions_:[0,[3,2],[5,0],[5,2],[6,1],[6,1],[6,1],[6,1],[6,1],[4,2],[4,2],[4,2],[4,3],[16,2],[16,1],[17,1],[17,1],[17,1],[15,1],[15,1],[15,2],[19,2],[19,2],[19,1],[19,1],[18,2],[18,1],[7,2],[7,2],[7,2],[7,2],[7,2],[7,2],[7,9],[7,6],[7,4],[7,1],[7,2],[7,2],[7,1],[21,1],[21,1],[21,1],[39,2],[39,1],[20,4],[20,3],[20,4],[20,2],[20,2],[20,1],[42,1],[42,6],[42,5],[43,1],[43,3],[45,4],[45,4],[45,6],[45,4],[45,4],[45,4],[45,8],[45,4],[45,4],[45,4],[45,6],[45,4],[45,4],[45,4],[45,4],[45,4],[45,1],[41,2],[41,3],[41,3],[41,1],[41,3],[41,4],[76,1],[76,2],[76,1],[76,1],[72,1],[72,2],[73,3],[30,1],[30,2],[30,1],[30,1],[83,1],[83,1],[83,1],[83,1],[83,1],[83,1],[83,1],[83,1],[83,1],[83,1],[83,1],[28,1],[28,2],[28,1],[28,1],[24,5],[25,5],[26,2],[26,4],[26,3],[26,5],[26,3],[26,5],[26,5],[26,7],[26,2],[26,4],[26,2],[26,4],[26,4],[26,6],[22,5],[23,5],[23,5],[23,9],[23,9],[23,7],[23,7],[103,1],[103,3],[92,1],[92,3],[107,1],[107,2],[108,1],[108,1],[108,1],[108,1],[108,1],[108,1],[108,1],[108,1],[113,1],[113,1],[113,1],[113,1],[113,1],[113,1],[113,1],[113,1],[113,1],[113,1],[113,1],[82,1],[82,1],[82,1],[82,1],[91,1],[91,1],[91,1],[91,1],[91,1],[91,1],[91,1],[91,1],[91,1],[91,1],[91,1],[79,1],[79,1],[120,1],[120,1],[120,1],[120,1],[120,1],[120,1],[120,1],[120,1],[120,1],[120,1],[120,1],[47,1],[47,2],[101,1],[101,2],[33,1],[33,1],[33,1],[33,1],[33,1]],performAction:e.n(function(e,t,n,r,i,a,o){var s=a.length-1;switch(i){case 2:this.$=[];break;case 3:(!Array.isArray(a[s])||a[s].length>0)&&a[s-1].push(a[s]),this.$=a[s-1];break;case 4:case 183:this.$=a[s];break;case 11:r.setDirection(`TB`),this.$=`TB`;break;case 12:r.setDirection(a[s-1]),this.$=a[s-1];break;case 27:this.$=a[s-1].nodes;break;case 28:case 29:case 30:case 31:case 32:this.$=[];break;case 33:this.$=r.addSubGraph(a[s-6],a[s-1],a[s-4]);break;case 34:this.$=r.addSubGraph(a[s-3],a[s-1],a[s-3]);break;case 35:this.$=r.addSubGraph(void 0,a[s-1],void 0);break;case 37:this.$=a[s].trim(),r.setAccTitle(this.$);break;case 38:case 39:this.$=a[s].trim(),r.setAccDescription(this.$);break;case 43:this.$=a[s-1]+a[s];break;case 44:this.$=a[s];break;case 45:r.addVertex(a[s-1][a[s-1].length-1],void 0,void 0,void 0,void 0,void 0,void 0,a[s]),r.addLink(a[s-3].stmt,a[s-1],a[s-2]),this.$={stmt:a[s-1],nodes:a[s-1].concat(a[s-3].nodes)};break;case 46:r.addLink(a[s-2].stmt,a[s],a[s-1]),this.$={stmt:a[s],nodes:a[s].concat(a[s-2].nodes)};break;case 47:r.addLink(a[s-3].stmt,a[s-1],a[s-2]),this.$={stmt:a[s-1],nodes:a[s-1].concat(a[s-3].nodes)};break;case 48:this.$={stmt:a[s-1],nodes:a[s-1]};break;case 49:r.addVertex(a[s-1][a[s-1].length-1],void 0,void 0,void 0,void 0,void 0,void 0,a[s]),this.$={stmt:a[s-1],nodes:a[s-1],shapeData:a[s]};break;case 50:this.$={stmt:a[s],nodes:a[s]};break;case 51:this.$=[a[s]];break;case 52:r.addVertex(a[s-5][a[s-5].length-1],void 0,void 0,void 0,void 0,void 0,void 0,a[s-4]),this.$=a[s-5].concat(a[s]);break;case 53:this.$=a[s-4].concat(a[s]);break;case 54:this.$=a[s];break;case 55:this.$=a[s-2],r.setClass(a[s-2],a[s]);break;case 56:this.$=a[s-3],r.addVertex(a[s-3],a[s-1],`square`);break;case 57:this.$=a[s-3],r.addVertex(a[s-3],a[s-1],`doublecircle`);break;case 58:this.$=a[s-5],r.addVertex(a[s-5],a[s-2],`circle`);break;case 59:this.$=a[s-3],r.addVertex(a[s-3],a[s-1],`ellipse`);break;case 60:this.$=a[s-3],r.addVertex(a[s-3],a[s-1],`stadium`);break;case 61:this.$=a[s-3],r.addVertex(a[s-3],a[s-1],`subroutine`);break;case 62:this.$=a[s-7],r.addVertex(a[s-7],a[s-1],`rect`,void 0,void 0,void 0,Object.fromEntries([[a[s-5],a[s-3]]]));break;case 63:this.$=a[s-3],r.addVertex(a[s-3],a[s-1],`cylinder`);break;case 64:this.$=a[s-3],r.addVertex(a[s-3],a[s-1],`round`);break;case 65:this.$=a[s-3],r.addVertex(a[s-3],a[s-1],`diamond`);break;case 66:this.$=a[s-5],r.addVertex(a[s-5],a[s-2],`hexagon`);break;case 67:this.$=a[s-3],r.addVertex(a[s-3],a[s-1],`odd`);break;case 68:this.$=a[s-3],r.addVertex(a[s-3],a[s-1],`trapezoid`);break;case 69:this.$=a[s-3],r.addVertex(a[s-3],a[s-1],`inv_trapezoid`);break;case 70:this.$=a[s-3],r.addVertex(a[s-3],a[s-1],`lean_right`);break;case 71:this.$=a[s-3],r.addVertex(a[s-3],a[s-1],`lean_left`);break;case 72:this.$=a[s],r.addVertex(a[s]);break;case 73:a[s-1].text=a[s],this.$=a[s-1];break;case 74:case 75:a[s-2].text=a[s-1],this.$=a[s-2];break;case 76:this.$=a[s];break;case 77:var c=r.destructLink(a[s],a[s-2]);this.$={type:c.type,stroke:c.stroke,length:c.length,text:a[s-1]};break;case 78:var c=r.destructLink(a[s],a[s-2]);this.$={type:c.type,stroke:c.stroke,length:c.length,text:a[s-1],id:a[s-3]};break;case 79:this.$={text:a[s],type:`text`};break;case 80:this.$={text:a[s-1].text+``+a[s],type:a[s-1].type};break;case 81:this.$={text:a[s],type:`string`};break;case 82:this.$={text:a[s],type:`markdown`};break;case 83:var c=r.destructLink(a[s]);this.$={type:c.type,stroke:c.stroke,length:c.length};break;case 84:var c=r.destructLink(a[s]);this.$={type:c.type,stroke:c.stroke,length:c.length,id:a[s-1]};break;case 85:this.$=a[s-1];break;case 86:this.$={text:a[s],type:`text`};break;case 87:this.$={text:a[s-1].text+``+a[s],type:a[s-1].type};break;case 88:this.$={text:a[s],type:`string`};break;case 89:case 104:this.$={text:a[s],type:`markdown`};break;case 101:this.$={text:a[s],type:`text`};break;case 102:this.$={text:a[s-1].text+``+a[s],type:a[s-1].type};break;case 103:this.$={text:a[s],type:`text`};break;case 105:this.$=a[s-4],r.addClass(a[s-2],a[s]);break;case 106:this.$=a[s-4],r.setClass(a[s-2],a[s]);break;case 107:case 115:this.$=a[s-1],r.setClickEvent(a[s-1],a[s]);break;case 108:case 116:this.$=a[s-3],r.setClickEvent(a[s-3],a[s-2]),r.setTooltip(a[s-3],a[s]);break;case 109:this.$=a[s-2],r.setClickEvent(a[s-2],a[s-1],a[s]);break;case 110:this.$=a[s-4],r.setClickEvent(a[s-4],a[s-3],a[s-2]),r.setTooltip(a[s-4],a[s]);break;case 111:this.$=a[s-2],r.setLink(a[s-2],a[s]);break;case 112:this.$=a[s-4],r.setLink(a[s-4],a[s-2]),r.setTooltip(a[s-4],a[s]);break;case 113:this.$=a[s-4],r.setLink(a[s-4],a[s-2],a[s]);break;case 114:this.$=a[s-6],r.setLink(a[s-6],a[s-4],a[s]),r.setTooltip(a[s-6],a[s-2]);break;case 117:this.$=a[s-1],r.setLink(a[s-1],a[s]);break;case 118:this.$=a[s-3],r.setLink(a[s-3],a[s-2]),r.setTooltip(a[s-3],a[s]);break;case 119:this.$=a[s-3],r.setLink(a[s-3],a[s-2],a[s]);break;case 120:this.$=a[s-5],r.setLink(a[s-5],a[s-4],a[s]),r.setTooltip(a[s-5],a[s-2]);break;case 121:this.$=a[s-4],r.addVertex(a[s-2],void 0,void 0,a[s]);break;case 122:this.$=a[s-4],r.updateLink([a[s-2]],a[s]);break;case 123:this.$=a[s-4],r.updateLink(a[s-2],a[s]);break;case 124:this.$=a[s-8],r.updateLinkInterpolate([a[s-6]],a[s-2]),r.updateLink([a[s-6]],a[s]);break;case 125:this.$=a[s-8],r.updateLinkInterpolate(a[s-6],a[s-2]),r.updateLink(a[s-6],a[s]);break;case 126:this.$=a[s-6],r.updateLinkInterpolate([a[s-4]],a[s]);break;case 127:this.$=a[s-6],r.updateLinkInterpolate(a[s-4],a[s]);break;case 128:case 130:this.$=[a[s]];break;case 129:case 131:a[s-2].push(a[s]),this.$=a[s-2];break;case 133:this.$=a[s-1]+a[s];break;case 181:this.$=a[s];break;case 182:this.$=a[s-1]+``+a[s];break;case 184:this.$=a[s-1]+``+a[s];break;case 185:this.$={stmt:`dir`,value:`TB`};break;case 186:this.$={stmt:`dir`,value:`BT`};break;case 187:this.$={stmt:`dir`,value:`RL`};break;case 188:this.$={stmt:`dir`,value:`LR`};break;case 189:this.$={stmt:`dir`,value:`TD`}}},`anonymous`),table:[{3:1,4:2,9:n,10:r,12:i},{1:[3]},t(a,o,{5:6}),{4:7,9:n,10:r,12:i},{4:8,9:n,10:r,12:i},{13:[1,9],14:[1,10]},{1:[2,1],6:11,7:12,8:s,9:c,10:l,11:u,20:17,22:18,23:19,24:20,25:21,26:22,27:d,33:24,34:f,36:p,38:m,42:28,43:39,44:h,45:40,47:41,60:g,84:_,85:v,86:ee,87:te,88:ne,89:y,102:b,105:x,106:S,109:C,111:w,113:42,114:T,115:E,116:D,121:O,122:re,123:ie,124:ae,125:oe},t(a,[2,9]),t(a,[2,10]),t(a,[2,11]),{8:[1,55],9:[1,56],10:k,15:54,18:57},t(A,[2,3]),t(A,[2,4]),t(A,[2,5]),t(A,[2,6]),t(A,[2,7]),t(A,[2,8]),{8:j,9:M,11:N,21:59,41:60,72:64,75:[1,65],77:[1,67],78:[1,66]},{8:j,9:M,11:N,21:68},{8:j,9:M,11:N,21:69},{8:j,9:M,11:N,21:70},{8:j,9:M,11:N,21:71},{8:j,9:M,11:N,21:72},{8:j,9:M,10:[1,73],11:N,21:74},t(A,[2,36]),{35:[1,75]},{37:[1,76]},t(A,[2,39]),t(se,[2,50],{18:77,39:78,10:k,40:ce}),{10:[1,80]},{10:[1,81]},{10:[1,82]},{10:[1,83]},{14:le,44:ue,60:de,80:[1,87],89:fe,95:[1,84],97:[1,85],101:86,105:pe,106:me,109:he,111:ge,114:_e,115:ve,116:ye,120:88},t(A,[2,185]),t(A,[2,186]),t(A,[2,187]),t(A,[2,188]),t(A,[2,189]),t(be,[2,51]),t(be,[2,54],{46:[1,100]}),t(P,[2,72],{113:113,29:[1,101],44:h,48:[1,102],50:[1,103],52:[1,104],54:[1,105],56:[1,106],58:[1,107],60:g,63:[1,108],65:[1,109],67:[1,110],68:[1,111],70:[1,112],89:y,102:b,105:x,106:S,109:C,111:w,114:T,115:E,116:D}),t(F,[2,181]),t(F,[2,142]),t(F,[2,143]),t(F,[2,144]),t(F,[2,145]),t(F,[2,146]),t(F,[2,147]),t(F,[2,148]),t(F,[2,149]),t(F,[2,150]),t(F,[2,151]),t(F,[2,152]),t(a,[2,12]),t(a,[2,18]),t(a,[2,19]),{9:[1,114]},t(xe,[2,26],{18:115,10:k}),t(A,[2,27]),{42:116,43:39,44:h,45:40,47:41,60:g,89:y,102:b,105:x,106:S,109:C,111:w,113:42,114:T,115:E,116:D},t(A,[2,40]),t(A,[2,41]),t(A,[2,42]),t(Se,[2,76],{73:117,62:[1,119],74:[1,118]}),{76:120,79:121,80:Ce,81:we,116:Te,119:Ee},{75:[1,126],77:[1,127]},t(De,[2,83]),t(A,[2,28]),t(A,[2,29]),t(A,[2,30]),t(A,[2,31]),t(A,[2,32]),{10:Oe,12:ke,14:Ae,27:je,28:128,32:Me,44:Ne,60:Pe,75:Fe,80:[1,130],81:[1,131],83:141,84:Ie,85:Le,86:Re,87:ze,88:Be,89:Ve,90:He,91:129,105:Ue,109:We,111:Ge,114:Ke,115:qe,116:Je},t(Ye,o,{5:154}),t(A,[2,37]),t(A,[2,38]),t(se,[2,48],{44:Xe}),t(se,[2,49],{18:156,10:k,40:Ze}),t(be,[2,44]),{44:h,47:158,60:g,89:y,102:b,105:x,106:S,109:C,111:w,113:42,114:T,115:E,116:D},{102:[1,159],103:160,105:[1,161]},{44:h,47:162,60:g,89:y,102:b,105:x,106:S,109:C,111:w,113:42,114:T,115:E,116:D},{44:h,47:163,60:g,89:y,102:b,105:x,106:S,109:C,111:w,113:42,114:T,115:E,116:D},t(I,[2,107],{10:[1,164],96:[1,165]}),{80:[1,166]},t(I,[2,115],{120:168,10:[1,167],14:le,44:ue,60:de,89:fe,105:pe,106:me,109:he,111:ge,114:_e,115:ve,116:ye}),t(I,[2,117],{10:[1,169]}),t(L,[2,183]),t(L,[2,170]),t(L,[2,171]),t(L,[2,172]),t(L,[2,173]),t(L,[2,174]),t(L,[2,175]),t(L,[2,176]),t(L,[2,177]),t(L,[2,178]),t(L,[2,179]),t(L,[2,180]),{44:h,47:170,60:g,89:y,102:b,105:x,106:S,109:C,111:w,113:42,114:T,115:E,116:D},{30:171,67:R,80:z,81:B,82:172,116:V,117:H,118:U},{30:179,67:R,80:z,81:B,82:172,116:V,117:H,118:U},{30:181,50:[1,180],67:R,80:z,81:B,82:172,116:V,117:H,118:U},{30:182,67:R,80:z,81:B,82:172,116:V,117:H,118:U},{30:183,67:R,80:z,81:B,82:172,116:V,117:H,118:U},{30:184,67:R,80:z,81:B,82:172,116:V,117:H,118:U},{109:[1,185]},{30:186,67:R,80:z,81:B,82:172,116:V,117:H,118:U},{30:187,65:[1,188],67:R,80:z,81:B,82:172,116:V,117:H,118:U},{30:189,67:R,80:z,81:B,82:172,116:V,117:H,118:U},{30:190,67:R,80:z,81:B,82:172,116:V,117:H,118:U},{30:191,67:R,80:z,81:B,82:172,116:V,117:H,118:U},t(F,[2,182]),t(a,[2,20]),t(xe,[2,25]),t(se,[2,46],{39:192,18:193,10:k,40:ce}),t(Se,[2,73],{10:[1,194]}),{10:[1,195]},{30:196,67:R,80:z,81:B,82:172,116:V,117:H,118:U},{77:[1,197],79:198,116:Te,119:Ee},t(Qe,[2,79]),t(Qe,[2,81]),t(Qe,[2,82]),t(Qe,[2,168]),t(Qe,[2,169]),{76:199,79:121,80:Ce,81:we,116:Te,119:Ee},t(De,[2,84]),{8:j,9:M,10:Oe,11:N,12:ke,14:Ae,21:201,27:je,29:[1,200],32:Me,44:Ne,60:Pe,75:Fe,83:141,84:Ie,85:Le,86:Re,87:ze,88:Be,89:Ve,90:He,91:202,105:Ue,109:We,111:Ge,114:Ke,115:qe,116:Je},t(W,[2,101]),t(W,[2,103]),t(W,[2,104]),t(W,[2,157]),t(W,[2,158]),t(W,[2,159]),t(W,[2,160]),t(W,[2,161]),t(W,[2,162]),t(W,[2,163]),t(W,[2,164]),t(W,[2,165]),t(W,[2,166]),t(W,[2,167]),t(W,[2,90]),t(W,[2,91]),t(W,[2,92]),t(W,[2,93]),t(W,[2,94]),t(W,[2,95]),t(W,[2,96]),t(W,[2,97]),t(W,[2,98]),t(W,[2,99]),t(W,[2,100]),{6:11,7:12,8:s,9:c,10:l,11:u,20:17,22:18,23:19,24:20,25:21,26:22,27:d,32:[1,203],33:24,34:f,36:p,38:m,42:28,43:39,44:h,45:40,47:41,60:g,84:_,85:v,86:ee,87:te,88:ne,89:y,102:b,105:x,106:S,109:C,111:w,113:42,114:T,115:E,116:D,121:O,122:re,123:ie,124:ae,125:oe},{10:k,18:204},{44:[1,205]},t(be,[2,43]),{10:[1,206],44:h,60:g,89:y,102:b,105:x,106:S,109:C,111:w,113:113,114:T,115:E,116:D},{10:[1,207]},{10:[1,208],106:[1,209]},t($e,[2,128]),{10:[1,210],44:h,60:g,89:y,102:b,105:x,106:S,109:C,111:w,113:113,114:T,115:E,116:D},{10:[1,211],44:h,60:g,89:y,102:b,105:x,106:S,109:C,111:w,113:113,114:T,115:E,116:D},{80:[1,212]},t(I,[2,109],{10:[1,213]}),t(I,[2,111],{10:[1,214]}),{80:[1,215]},t(L,[2,184]),{80:[1,216],98:[1,217]},t(be,[2,55],{113:113,44:h,60:g,89:y,102:b,105:x,106:S,109:C,111:w,114:T,115:E,116:D}),{31:[1,218],67:R,82:219,116:V,117:H,118:U},t(et,[2,86]),t(et,[2,88]),t(et,[2,89]),t(et,[2,153]),t(et,[2,154]),t(et,[2,155]),t(et,[2,156]),{49:[1,220],67:R,82:219,116:V,117:H,118:U},{30:221,67:R,80:z,81:B,82:172,116:V,117:H,118:U},{51:[1,222],67:R,82:219,116:V,117:H,118:U},{53:[1,223],67:R,82:219,116:V,117:H,118:U},{55:[1,224],67:R,82:219,116:V,117:H,118:U},{57:[1,225],67:R,82:219,116:V,117:H,118:U},{60:[1,226]},{64:[1,227],67:R,82:219,116:V,117:H,118:U},{66:[1,228],67:R,82:219,116:V,117:H,118:U},{30:229,67:R,80:z,81:B,82:172,116:V,117:H,118:U},{31:[1,230],67:R,82:219,116:V,117:H,118:U},{67:R,69:[1,231],71:[1,232],82:219,116:V,117:H,118:U},{67:R,69:[1,234],71:[1,233],82:219,116:V,117:H,118:U},t(se,[2,45],{18:156,10:k,40:Ze}),t(se,[2,47],{44:Xe}),t(Se,[2,75]),t(Se,[2,74]),{62:[1,235],67:R,82:219,116:V,117:H,118:U},t(Se,[2,77]),t(Qe,[2,80]),{77:[1,236],79:198,116:Te,119:Ee},{30:237,67:R,80:z,81:B,82:172,116:V,117:H,118:U},t(Ye,o,{5:238}),t(W,[2,102]),t(A,[2,35]),{43:239,44:h,45:40,47:41,60:g,89:y,102:b,105:x,106:S,109:C,111:w,113:42,114:T,115:E,116:D},{10:k,18:240},{10:G,60:K,84:q,92:241,105:J,107:242,108:243,109:Y,110:X,111:Z,112:Q},{10:G,60:K,84:q,92:252,104:[1,253],105:J,107:242,108:243,109:Y,110:X,111:Z,112:Q},{10:G,60:K,84:q,92:254,104:[1,255],105:J,107:242,108:243,109:Y,110:X,111:Z,112:Q},{105:[1,256]},{10:G,60:K,84:q,92:257,105:J,107:242,108:243,109:Y,110:X,111:Z,112:Q},{44:h,47:258,60:g,89:y,102:b,105:x,106:S,109:C,111:w,113:42,114:T,115:E,116:D},t(I,[2,108]),{80:[1,259]},{80:[1,260],98:[1,261]},t(I,[2,116]),t(I,[2,118],{10:[1,262]}),t(I,[2,119]),t(P,[2,56]),t(et,[2,87]),t(P,[2,57]),{51:[1,263],67:R,82:219,116:V,117:H,118:U},t(P,[2,64]),t(P,[2,59]),t(P,[2,60]),t(P,[2,61]),{109:[1,264]},t(P,[2,63]),t(P,[2,65]),{66:[1,265],67:R,82:219,116:V,117:H,118:U},t(P,[2,67]),t(P,[2,68]),t(P,[2,70]),t(P,[2,69]),t(P,[2,71]),t([10,44,60,89,102,105,106,109,111,114,115,116],[2,85]),t(Se,[2,78]),{31:[1,266],67:R,82:219,116:V,117:H,118:U},{6:11,7:12,8:s,9:c,10:l,11:u,20:17,22:18,23:19,24:20,25:21,26:22,27:d,32:[1,267],33:24,34:f,36:p,38:m,42:28,43:39,44:h,45:40,47:41,60:g,84:_,85:v,86:ee,87:te,88:ne,89:y,102:b,105:x,106:S,109:C,111:w,113:42,114:T,115:E,116:D,121:O,122:re,123:ie,124:ae,125:oe},t(be,[2,53]),{43:268,44:h,45:40,47:41,60:g,89:y,102:b,105:x,106:S,109:C,111:w,113:42,114:T,115:E,116:D},t(I,[2,121],{106:tt}),t(nt,[2,130],{108:270,10:G,60:K,84:q,105:J,109:Y,110:X,111:Z,112:Q}),t($,[2,132]),t($,[2,134]),t($,[2,135]),t($,[2,136]),t($,[2,137]),t($,[2,138]),t($,[2,139]),t($,[2,140]),t($,[2,141]),t(I,[2,122],{106:tt}),{10:[1,271]},t(I,[2,123],{106:tt}),{10:[1,272]},t($e,[2,129]),t(I,[2,105],{106:tt}),t(I,[2,106],{113:113,44:h,60:g,89:y,102:b,105:x,106:S,109:C,111:w,114:T,115:E,116:D}),t(I,[2,110]),t(I,[2,112],{10:[1,273]}),t(I,[2,113]),{98:[1,274]},{51:[1,275]},{62:[1,276]},{66:[1,277]},{8:j,9:M,11:N,21:278},t(A,[2,34]),t(be,[2,52]),{10:G,60:K,84:q,105:J,107:279,108:243,109:Y,110:X,111:Z,112:Q},t($,[2,133]),{14:le,44:ue,60:de,89:fe,101:280,105:pe,106:me,109:he,111:ge,114:_e,115:ve,116:ye,120:88},{14:le,44:ue,60:de,89:fe,101:281,105:pe,106:me,109:he,111:ge,114:_e,115:ve,116:ye,120:88},{98:[1,282]},t(I,[2,120]),t(P,[2,58]),{30:283,67:R,80:z,81:B,82:172,116:V,117:H,118:U},t(P,[2,66]),t(Ye,o,{5:284}),t(nt,[2,131],{108:270,10:G,60:K,84:q,105:J,109:Y,110:X,111:Z,112:Q}),t(I,[2,126],{120:168,10:[1,285],14:le,44:ue,60:de,89:fe,105:pe,106:me,109:he,111:ge,114:_e,115:ve,116:ye}),t(I,[2,127],{120:168,10:[1,286],14:le,44:ue,60:de,89:fe,105:pe,106:me,109:he,111:ge,114:_e,115:ve,116:ye}),t(I,[2,114]),{31:[1,287],67:R,82:219,116:V,117:H,118:U},{6:11,7:12,8:s,9:c,10:l,11:u,20:17,22:18,23:19,24:20,25:21,26:22,27:d,32:[1,288],33:24,34:f,36:p,38:m,42:28,43:39,44:h,45:40,47:41,60:g,84:_,85:v,86:ee,87:te,88:ne,89:y,102:b,105:x,106:S,109:C,111:w,113:42,114:T,115:E,116:D,121:O,122:re,123:ie,124:ae,125:oe},{10:G,60:K,84:q,92:289,105:J,107:242,108:243,109:Y,110:X,111:Z,112:Q},{10:G,60:K,84:q,92:290,105:J,107:242,108:243,109:Y,110:X,111:Z,112:Q},t(P,[2,62]),t(A,[2,33]),t(I,[2,124],{106:tt}),t(I,[2,125],{106:tt})],defaultActions:{},parseError:e.n(function(e,t){if(t.recoverable)this.trace(e);else{var n=Error(e);throw n.hash=t,n}},`parseError`),parse:e.n(function(t){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:{}};for(var _ in this.yy)Object.prototype.hasOwnProperty.call(this.yy,_)&&(g.yy[_]=this.yy[_]);h.setInput(t,g.yy),g.yy.lexer=h,g.yy.parser=this,h.yylloc===void 0&&(h.yylloc={});var v=h.yylloc;o.push(v);var ee=h.options&&h.options.ranges;this.parseError=typeof g.yy.parseError==`function`?g.yy.parseError:Object.getPrototypeOf(this).parseError;function te(e){r.length-=2*e,a.length-=e,o.length-=e}e.n(te,`popStack`);function ne(){var e=i.pop()||h.lex()||p;return typeof e!=`number`&&(e instanceof Array&&(i=e,e=i.pop()),e=n.symbols_[e]||e),e}e.n(ne,`lex`);for(var y,b,x,S,C,w={},T,E,D,O;;){if(x=r[r.length-1],this.defaultActions[x]?S=this.defaultActions[x]:(y??=ne(),S=s[x]&&s[x][y]),S===void 0||!S.length||!S[0]){var re=``;for(T in O=[],s[x])this.terminals_[T]&&T>f&&O.push(`'`+this.terminals_[T]+`'`);re=h.showPosition?`Parse error on line `+(l+1)+`:
10
+ `+h.showPosition()+`
11
+ Expecting `+O.join(`, `)+`, got '`+(this.terminals_[y]||y)+`'`:`Parse error on line `+(l+1)+`: Unexpected `+(y==p?`end of input`:`'`+(this.terminals_[y]||y)+`'`),this.parseError(re,{text:h.match,token:this.terminals_[y]||y,line:h.yylineno,loc:v,expected:O})}if(S[0]instanceof Array&&S.length>1)throw Error(`Parse Error: multiple actions possible at state: `+x+`, token: `+y);switch(S[0]){case 1:r.push(y),a.push(h.yytext),o.push(h.yylloc),r.push(S[1]),y=null,b?(y=b,b=null):(u=h.yyleng,c=h.yytext,l=h.yylineno,v=h.yylloc,d>0&&d--);break;case 2:if(E=this.productions_[S[1]][1],w.$=a[a.length-E],w._$={first_line:o[o.length-(E||1)].first_line,last_line:o[o.length-1].last_line,first_column:o[o.length-(E||1)].first_column,last_column:o[o.length-1].last_column},ee&&(w._$.range=[o[o.length-(E||1)].range[0],o[o.length-1].range[1]]),C=this.performAction.apply(w,[c,u,l,g.yy,S[1],a,o].concat(m)),C!==void 0)return C;E&&(r=r.slice(0,-1*E*2),a=a.slice(0,-1*E),o=o.slice(0,-1*E)),r.push(this.productions_[S[1]][0]),a.push(w.$),o.push(w._$),D=s[r[r.length-2]][r[r.length-1]],r.push(D);break;case 3:return!0}}return!0},`parse`)};rt.lexer=(function(){return{EOF:1,parseError:e.n(function(e,t){if(this.yy.parser)this.yy.parser.parseError(e,t);else throw Error(e)},`parseError`),setInput:e.n(function(e,t){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={first_line:1,first_column:0,last_line:1,last_column:0},this.options.ranges&&(this.yylloc.range=[0,0]),this.offset=0,this},`setInput`),input:e.n(function(){var e=this._input[0];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},`input`),unput:e.n(function(e){var t=e.length,n=e.split(/(?:\r\n?|\n)/g);this._input=e+this._input,this.yytext=this.yytext.substr(0,this.yytext.length-t),this.offset-=t;var r=this.match.split(/(?:\r\n?|\n)/g);this.match=this.match.substr(0,this.match.length-1),this.matched=this.matched.substr(0,this.matched.length-1),n.length-1&&(this.yylineno-=n.length-1);var i=this.yylloc.range;return this.yylloc={first_line:this.yylloc.first_line,last_line:this.yylineno+1,first_column:this.yylloc.first_column,last_column:n?(n.length===r.length?this.yylloc.first_column:0)+r[r.length-n.length].length-n[0].length:this.yylloc.first_column-t},this.options.ranges&&(this.yylloc.range=[i[0],i[0]+this.yyleng-t]),this.yyleng=this.yytext.length,this},`unput`),more:e.n(function(){return this._more=!0,this},`more`),reject:e.n(function(){if(this.options.backtrack_lexer)this._backtrack=!0;else return this.parseError(`Lexical error on line `+(this.yylineno+1)+`. You can only invoke reject() in the lexer when the lexer is of the backtracking persuasion (options.backtrack_lexer = true).
12
+ `+this.showPosition(),{text:``,token:null,line:this.yylineno});return this},`reject`),less:e.n(function(e){this.unput(this.match.slice(e))},`less`),pastInput:e.n(function(){var e=this.matched.substr(0,this.matched.length-this.match.length);return(e.length>20?`...`:``)+e.substr(-20).replace(/\n/g,``)},`pastInput`),upcomingInput:e.n(function(){var e=this.match;return e.length<20&&(e+=this._input.substr(0,20-e.length)),(e.substr(0,20)+(e.length>20?`...`:``)).replace(/\n/g,``)},`upcomingInput`),showPosition:e.n(function(){var e=this.pastInput(),t=Array(e.length+1).join(`-`);return e+this.upcomingInput()+`
13
+ `+t+`^`},`showPosition`),test_match:e.n(function(e,t){var n,r,i;if(this.options.backtrack_lexer&&(i={yylineno:this.yylineno,yylloc:{first_line:this.yylloc.first_line,last_line:this.last_line,first_column:this.yylloc.first_column,last_column:this.yylloc.last_column},yytext:this.yytext,match:this.match,matches:this.matches,matched:this.matched,yyleng:this.yyleng,offset:this.offset,_more:this._more,_input:this._input,yy:this.yy,conditionStack:this.conditionStack.slice(0),done:this.done},this.options.ranges&&(i.yylloc.range=this.yylloc.range.slice(0))),r=e[0].match(/(?:\r\n?|\n).*/g),r&&(this.yylineno+=r.length),this.yylloc={first_line:this.yylloc.last_line,last_line:this.yylineno+1,first_column:this.yylloc.last_column,last_column:r?r[r.length-1].length-r[r.length-1].match(/\r?\n?/)[0].length:this.yylloc.last_column+e[0].length},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;if(this._backtrack){for(var a in i)this[a]=i[a];return!1}return!1},`test_match`),next:e.n(function(){if(this.done)return this.EOF;this._input||(this.done=!0);var e,t,n,r;this._more||(this.yytext=``,this.match=``);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)){if(t=n,r=a,this.options.backtrack_lexer){if(e=this.test_match(n,i[a]),e!==!1)return e;if(this._backtrack){t=!1;continue}return!1}if(!this.options.flex)break}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.
14
+ `+this.showPosition(),{text:``,token:null,line:this.yylineno})},`next`),lex:e.n(function(){return this.next()||this.lex()},`lex`),begin:e.n(function(e){this.conditionStack.push(e)},`begin`),popState:e.n(function(){return this.conditionStack.length-1>0?this.conditionStack.pop():this.conditionStack[0]},`popState`),_currentRules:e.n(function(){return this.conditionStack.length&&this.conditionStack[this.conditionStack.length-1]?this.conditions[this.conditionStack[this.conditionStack.length-1]].rules:this.conditions.INITIAL.rules},`_currentRules`),topState:e.n(function(e){return e=this.conditionStack.length-1-Math.abs(e||0),e>=0?this.conditionStack[e]:`INITIAL`},`topState`),pushState:e.n(function(e){this.begin(e)},`pushState`),stateStackSize:e.n(function(){return this.conditionStack.length},`stateStackSize`),options:{},performAction:e.n(function(e,t,n,r){switch(n){case 0:return this.begin(`acc_title`),34;case 1:return this.popState(),`acc_title_value`;case 2:return this.begin(`acc_descr`),36;case 3:return this.popState(),`acc_descr_value`;case 4:this.begin(`acc_descr_multiline`);break;case 5:this.popState();break;case 6:return`acc_descr_multiline_value`;case 7:return this.pushState(`shapeData`),t.yytext=``,40;case 8:return this.pushState(`shapeDataStr`),40;case 9:return this.popState(),40;case 10:return t.yytext=t.yytext.replace(/\n\s*/g,`<br/>`),40;case 11:return 40;case 12:this.popState();break;case 13:this.begin(`callbackname`);break;case 14:this.popState();break;case 15:this.popState(),this.begin(`callbackargs`);break;case 16:return 95;case 17:this.popState();break;case 18:return 96;case 19:return`MD_STR`;case 20:this.popState();break;case 21:this.begin(`md_string`);break;case 22:return`STR`;case 23:this.popState();break;case 24:this.pushState(`string`);break;case 25:return 84;case 26:return 102;case 27:return 85;case 28:return 104;case 29:return 86;case 30:return 87;case 31:return 97;case 32:this.begin(`click`);break;case 33:this.popState();break;case 34:return 88;case 35:return e.lex.firstGraph()&&this.begin(`dir`),12;case 36:return e.lex.firstGraph()&&this.begin(`dir`),12;case 37:return e.lex.firstGraph()&&this.begin(`dir`),12;case 38:return e.lex.firstGraph()&&this.begin(`dir`),12;case 39:return 27;case 40:return 32;case 41:return 98;case 42:return 98;case 43:return 98;case 44:return 98;case 45:return this.popState(),13;case 46:return this.popState(),14;case 47:return this.popState(),14;case 48:return this.popState(),14;case 49:return this.popState(),14;case 50:return this.popState(),14;case 51:return this.popState(),14;case 52:return this.popState(),14;case 53:return this.popState(),14;case 54:return this.popState(),14;case 55:return this.popState(),14;case 56:return 121;case 57:return 122;case 58:return 123;case 59:return 124;case 60:return 125;case 61:return 78;case 62:return 105;case 63:return 111;case 64:return 46;case 65:return 60;case 66:return 44;case 67:return 8;case 68:return 106;case 69:return 115;case 70:return this.popState(),77;case 71:return this.pushState(`edgeText`),75;case 72:return 119;case 73:return this.popState(),77;case 74:return this.pushState(`thickEdgeText`),75;case 75:return 119;case 76:return this.popState(),77;case 77:return this.pushState(`dottedEdgeText`),75;case 78:return 119;case 79:return 77;case 80:return this.popState(),53;case 81:return`TEXT`;case 82:return this.pushState(`ellipseText`),52;case 83:return this.popState(),55;case 84:return this.pushState(`text`),54;case 85:return this.popState(),57;case 86:return this.pushState(`text`),56;case 87:return 58;case 88:return this.pushState(`text`),67;case 89:return this.popState(),64;case 90:return this.pushState(`text`),63;case 91:return this.popState(),49;case 92:return this.pushState(`text`),48;case 93:return this.popState(),69;case 94:return this.popState(),71;case 95:return 117;case 96:return this.pushState(`trapText`),68;case 97:return this.pushState(`trapText`),70;case 98:return 118;case 99:return 67;case 100:return 90;case 101:return`SEP`;case 102:return 89;case 103:return 115;case 104:return 111;case 105:return 44;case 106:return 109;case 107:return 114;case 108:return 116;case 109:return this.popState(),62;case 110:return this.pushState(`text`),62;case 111:return this.popState(),51;case 112:return this.pushState(`text`),50;case 113:return this.popState(),31;case 114:return this.pushState(`text`),29;case 115:return this.popState(),66;case 116:return this.pushState(`text`),65;case 117:return`TEXT`;case 118:return`QUOTE`;case 119:return 9;case 120:return 10;case 121:return 11}},`anonymous`),rules:[/^(?:accTitle\s*:\s*)/,/^(?:(?!\n||)*[^\n]*)/,/^(?:accDescr\s*:\s*)/,/^(?:(?!\n||)*[^\n]*)/,/^(?:accDescr\s*\{\s*)/,/^(?:[\}])/,/^(?:[^\}]*)/,/^(?:@\{)/,/^(?:["])/,/^(?:["])/,/^(?:[^\"]+)/,/^(?:[^}^"]+)/,/^(?:\})/,/^(?:call[\s]+)/,/^(?:\([\s]*\))/,/^(?:\()/,/^(?:[^(]*)/,/^(?:\))/,/^(?:[^)]*)/,/^(?:[^`"]+)/,/^(?:[`]["])/,/^(?:["][`])/,/^(?:[^"]+)/,/^(?:["])/,/^(?:["])/,/^(?:style\b)/,/^(?:default\b)/,/^(?:linkStyle\b)/,/^(?:interpolate\b)/,/^(?:classDef\b)/,/^(?:class\b)/,/^(?:href[\s])/,/^(?:click[\s]+)/,/^(?:[\s\n])/,/^(?:[^\s\n]*)/,/^(?:flowchart-elk\b)/,/^(?:swimlane-beta\b)/,/^(?:graph\b)/,/^(?:flowchart\b)/,/^(?:subgraph\b)/,/^(?:end\b\s*)/,/^(?:_self\b)/,/^(?:_blank\b)/,/^(?:_parent\b)/,/^(?:_top\b)/,/^(?:(\r?\n)*\s*\n)/,/^(?:\s*LR\b)/,/^(?:\s*RL\b)/,/^(?:\s*TB\b)/,/^(?:\s*BT\b)/,/^(?:\s*TD\b)/,/^(?:\s*BR\b)/,/^(?:\s*<)/,/^(?:\s*>)/,/^(?:\s*\^)/,/^(?:\s*v\b)/,/^(?:.*direction\s+TB[^\n]*)/,/^(?:.*direction\s+BT[^\n]*)/,/^(?:.*direction\s+RL[^\n]*)/,/^(?:.*direction\s+LR[^\n]*)/,/^(?:.*direction\s+TD[^\n]*)/,/^(?:[^\s\"]+@(?=[^\{\"]))/,/^(?:[0-9]+)/,/^(?:#)/,/^(?::::)/,/^(?::)/,/^(?:&)/,/^(?:;)/,/^(?:,)/,/^(?:\*)/,/^(?:\s*[xo<]?--+[-xo>]\s*)/,/^(?:\s*[xo<]?--\s*)/,/^(?:[^-]|-(?!-)+)/,/^(?:\s*[xo<]?==+[=xo>]\s*)/,/^(?:\s*[xo<]?==\s*)/,/^(?:[^=]|=(?!))/,/^(?:\s*[xo<]?-?\.+-[xo>]?\s*)/,/^(?:\s*[xo<]?-\.\s*)/,/^(?:[^\.]|\.(?!))/,/^(?:\s*~~[\~]+\s*)/,/^(?:[-/\)][\)])/,/^(?:[^\(\)\[\]\{\}]|!\)+)/,/^(?:\(-)/,/^(?:\]\))/,/^(?:\(\[)/,/^(?:\]\])/,/^(?:\[\[)/,/^(?:\[\|)/,/^(?:>)/,/^(?:\)\])/,/^(?:\[\()/,/^(?:\)\)\))/,/^(?:\(\(\()/,/^(?:[\\(?=\])][\]])/,/^(?:\/(?=\])\])/,/^(?:\/(?!\])|\\(?!\])|[^\\\[\]\(\)\{\}\/]+)/,/^(?:\[\/)/,/^(?:\[\\)/,/^(?:<)/,/^(?:>)/,/^(?:\^)/,/^(?:\\\|)/,/^(?:v\b)/,/^(?:\*)/,/^(?:#)/,/^(?:&)/,/^(?:([A-Za-z0-9!"\#$%&'*+\.`?\\_\/]|-(?=[^\>\-\.])|(?!))+)/,/^(?:-)/,/^(?:[\u00AA\u00B5\u00BA\u00C0-\u00D6\u00D8-\u00F6]|[\u00F8-\u02C1\u02C6-\u02D1\u02E0-\u02E4\u02EC\u02EE\u0370-\u0374\u0376\u0377]|[\u037A-\u037D\u0386\u0388-\u038A\u038C\u038E-\u03A1\u03A3-\u03F5]|[\u03F7-\u0481\u048A-\u0527\u0531-\u0556\u0559\u0561-\u0587\u05D0-\u05EA]|[\u05F0-\u05F2\u0620-\u064A\u066E\u066F\u0671-\u06D3\u06D5\u06E5\u06E6\u06EE]|[\u06EF\u06FA-\u06FC\u06FF\u0710\u0712-\u072F\u074D-\u07A5\u07B1\u07CA-\u07EA]|[\u07F4\u07F5\u07FA\u0800-\u0815\u081A\u0824\u0828\u0840-\u0858\u08A0]|[\u08A2-\u08AC\u0904-\u0939\u093D\u0950\u0958-\u0961\u0971-\u0977]|[\u0979-\u097F\u0985-\u098C\u098F\u0990\u0993-\u09A8\u09AA-\u09B0\u09B2]|[\u09B6-\u09B9\u09BD\u09CE\u09DC\u09DD\u09DF-\u09E1\u09F0\u09F1\u0A05-\u0A0A]|[\u0A0F\u0A10\u0A13-\u0A28\u0A2A-\u0A30\u0A32\u0A33\u0A35\u0A36\u0A38\u0A39]|[\u0A59-\u0A5C\u0A5E\u0A72-\u0A74\u0A85-\u0A8D\u0A8F-\u0A91\u0A93-\u0AA8]|[\u0AAA-\u0AB0\u0AB2\u0AB3\u0AB5-\u0AB9\u0ABD\u0AD0\u0AE0\u0AE1\u0B05-\u0B0C]|[\u0B0F\u0B10\u0B13-\u0B28\u0B2A-\u0B30\u0B32\u0B33\u0B35-\u0B39\u0B3D\u0B5C]|[\u0B5D\u0B5F-\u0B61\u0B71\u0B83\u0B85-\u0B8A\u0B8E-\u0B90\u0B92-\u0B95\u0B99]|[\u0B9A\u0B9C\u0B9E\u0B9F\u0BA3\u0BA4\u0BA8-\u0BAA\u0BAE-\u0BB9\u0BD0]|[\u0C05-\u0C0C\u0C0E-\u0C10\u0C12-\u0C28\u0C2A-\u0C33\u0C35-\u0C39\u0C3D]|[\u0C58\u0C59\u0C60\u0C61\u0C85-\u0C8C\u0C8E-\u0C90\u0C92-\u0CA8\u0CAA-\u0CB3]|[\u0CB5-\u0CB9\u0CBD\u0CDE\u0CE0\u0CE1\u0CF1\u0CF2\u0D05-\u0D0C\u0D0E-\u0D10]|[\u0D12-\u0D3A\u0D3D\u0D4E\u0D60\u0D61\u0D7A-\u0D7F\u0D85-\u0D96\u0D9A-\u0DB1]|[\u0DB3-\u0DBB\u0DBD\u0DC0-\u0DC6\u0E01-\u0E30\u0E32\u0E33\u0E40-\u0E46\u0E81]|[\u0E82\u0E84\u0E87\u0E88\u0E8A\u0E8D\u0E94-\u0E97\u0E99-\u0E9F\u0EA1-\u0EA3]|[\u0EA5\u0EA7\u0EAA\u0EAB\u0EAD-\u0EB0\u0EB2\u0EB3\u0EBD\u0EC0-\u0EC4\u0EC6]|[\u0EDC-\u0EDF\u0F00\u0F40-\u0F47\u0F49-\u0F6C\u0F88-\u0F8C\u1000-\u102A]|[\u103F\u1050-\u1055\u105A-\u105D\u1061\u1065\u1066\u106E-\u1070\u1075-\u1081]|[\u108E\u10A0-\u10C5\u10C7\u10CD\u10D0-\u10FA\u10FC-\u1248\u124A-\u124D]|[\u1250-\u1256\u1258\u125A-\u125D\u1260-\u1288\u128A-\u128D\u1290-\u12B0]|[\u12B2-\u12B5\u12B8-\u12BE\u12C0\u12C2-\u12C5\u12C8-\u12D6\u12D8-\u1310]|[\u1312-\u1315\u1318-\u135A\u1380-\u138F\u13A0-\u13F4\u1401-\u166C]|[\u166F-\u167F\u1681-\u169A\u16A0-\u16EA\u1700-\u170C\u170E-\u1711]|[\u1720-\u1731\u1740-\u1751\u1760-\u176C\u176E-\u1770\u1780-\u17B3\u17D7]|[\u17DC\u1820-\u1877\u1880-\u18A8\u18AA\u18B0-\u18F5\u1900-\u191C]|[\u1950-\u196D\u1970-\u1974\u1980-\u19AB\u19C1-\u19C7\u1A00-\u1A16]|[\u1A20-\u1A54\u1AA7\u1B05-\u1B33\u1B45-\u1B4B\u1B83-\u1BA0\u1BAE\u1BAF]|[\u1BBA-\u1BE5\u1C00-\u1C23\u1C4D-\u1C4F\u1C5A-\u1C7D\u1CE9-\u1CEC]|[\u1CEE-\u1CF1\u1CF5\u1CF6\u1D00-\u1DBF\u1E00-\u1F15\u1F18-\u1F1D]|[\u1F20-\u1F45\u1F48-\u1F4D\u1F50-\u1F57\u1F59\u1F5B\u1F5D\u1F5F-\u1F7D]|[\u1F80-\u1FB4\u1FB6-\u1FBC\u1FBE\u1FC2-\u1FC4\u1FC6-\u1FCC\u1FD0-\u1FD3]|[\u1FD6-\u1FDB\u1FE0-\u1FEC\u1FF2-\u1FF4\u1FF6-\u1FFC\u2071\u207F]|[\u2090-\u209C\u2102\u2107\u210A-\u2113\u2115\u2119-\u211D\u2124\u2126\u2128]|[\u212A-\u212D\u212F-\u2139\u213C-\u213F\u2145-\u2149\u214E\u2183\u2184]|[\u2C00-\u2C2E\u2C30-\u2C5E\u2C60-\u2CE4\u2CEB-\u2CEE\u2CF2\u2CF3]|[\u2D00-\u2D25\u2D27\u2D2D\u2D30-\u2D67\u2D6F\u2D80-\u2D96\u2DA0-\u2DA6]|[\u2DA8-\u2DAE\u2DB0-\u2DB6\u2DB8-\u2DBE\u2DC0-\u2DC6\u2DC8-\u2DCE]|[\u2DD0-\u2DD6\u2DD8-\u2DDE\u2E2F\u3005\u3006\u3031-\u3035\u303B\u303C]|[\u3041-\u3096\u309D-\u309F\u30A1-\u30FA\u30FC-\u30FF\u3105-\u312D]|[\u3131-\u318E\u31A0-\u31BA\u31F0-\u31FF\u3400-\u4DB5\u4E00-\u9FCC]|[\uA000-\uA48C\uA4D0-\uA4FD\uA500-\uA60C\uA610-\uA61F\uA62A\uA62B]|[\uA640-\uA66E\uA67F-\uA697\uA6A0-\uA6E5\uA717-\uA71F\uA722-\uA788]|[\uA78B-\uA78E\uA790-\uA793\uA7A0-\uA7AA\uA7F8-\uA801\uA803-\uA805]|[\uA807-\uA80A\uA80C-\uA822\uA840-\uA873\uA882-\uA8B3\uA8F2-\uA8F7\uA8FB]|[\uA90A-\uA925\uA930-\uA946\uA960-\uA97C\uA984-\uA9B2\uA9CF\uAA00-\uAA28]|[\uAA40-\uAA42\uAA44-\uAA4B\uAA60-\uAA76\uAA7A\uAA80-\uAAAF\uAAB1\uAAB5]|[\uAAB6\uAAB9-\uAABD\uAAC0\uAAC2\uAADB-\uAADD\uAAE0-\uAAEA\uAAF2-\uAAF4]|[\uAB01-\uAB06\uAB09-\uAB0E\uAB11-\uAB16\uAB20-\uAB26\uAB28-\uAB2E]|[\uABC0-\uABE2\uAC00-\uD7A3\uD7B0-\uD7C6\uD7CB-\uD7FB\uF900-\uFA6D]|[\uFA70-\uFAD9\uFB00-\uFB06\uFB13-\uFB17\uFB1D\uFB1F-\uFB28\uFB2A-\uFB36]|[\uFB38-\uFB3C\uFB3E\uFB40\uFB41\uFB43\uFB44\uFB46-\uFBB1\uFBD3-\uFD3D]|[\uFD50-\uFD8F\uFD92-\uFDC7\uFDF0-\uFDFB\uFE70-\uFE74\uFE76-\uFEFC]|[\uFF21-\uFF3A\uFF41-\uFF5A\uFF66-\uFFBE\uFFC2-\uFFC7\uFFCA-\uFFCF]|[\uFFD2-\uFFD7\uFFDA-\uFFDC])/,/^(?:\|)/,/^(?:\|)/,/^(?:\))/,/^(?:\()/,/^(?:\])/,/^(?:\[)/,/^(?:(\}))/,/^(?:\{)/,/^(?:[^\[\]\(\)\{\}\|\"]+)/,/^(?:")/,/^(?:(\r?\n)+)/,/^(?:\s)/,/^(?:$)/],conditions:{shapeDataEndBracket:{rules:[21,24,79,82,84,86,90,92,96,97,110,112,114,116],inclusive:!1},shapeDataStr:{rules:[9,10,21,24,79,82,84,86,90,92,96,97,110,112,114,116],inclusive:!1},shapeData:{rules:[8,11,12,21,24,79,82,84,86,90,92,96,97,110,112,114,116],inclusive:!1},callbackargs:{rules:[17,18,21,24,79,82,84,86,90,92,96,97,110,112,114,116],inclusive:!1},callbackname:{rules:[14,15,16,21,24,79,82,84,86,90,92,96,97,110,112,114,116],inclusive:!1},href:{rules:[21,24,79,82,84,86,90,92,96,97,110,112,114,116],inclusive:!1},click:{rules:[21,24,33,34,79,82,84,86,90,92,96,97,110,112,114,116],inclusive:!1},dottedEdgeText:{rules:[21,24,76,78,79,82,84,86,90,92,96,97,110,112,114,116],inclusive:!1},thickEdgeText:{rules:[21,24,73,75,79,82,84,86,90,92,96,97,110,112,114,116],inclusive:!1},edgeText:{rules:[21,24,70,72,79,82,84,86,90,92,96,97,110,112,114,116],inclusive:!1},trapText:{rules:[21,24,79,82,84,86,90,92,93,94,95,96,97,110,112,114,116],inclusive:!1},ellipseText:{rules:[21,24,79,80,81,82,84,86,90,92,96,97,110,112,114,116],inclusive:!1},text:{rules:[21,24,79,82,83,84,85,86,89,90,91,92,96,97,109,110,111,112,113,114,115,116,117],inclusive:!1},vertex:{rules:[21,24,79,82,84,86,90,92,96,97,110,112,114,116],inclusive:!1},dir:{rules:[21,24,45,46,47,48,49,50,51,52,53,54,55,79,82,84,86,90,92,96,97,110,112,114,116],inclusive:!1},acc_descr_multiline:{rules:[5,6,21,24,79,82,84,86,90,92,96,97,110,112,114,116],inclusive:!1},acc_descr:{rules:[3,21,24,79,82,84,86,90,92,96,97,110,112,114,116],inclusive:!1},acc_title:{rules:[1,21,24,79,82,84,86,90,92,96,97,110,112,114,116],inclusive:!1},md_string:{rules:[19,20,21,24,79,82,84,86,90,92,96,97,110,112,114,116],inclusive:!1},string:{rules:[21,22,23,24,79,82,84,86,90,92,96,97,110,112,114,116],inclusive:!1},INITIAL:{rules:[0,2,4,7,13,21,24,25,26,27,28,29,30,31,32,35,36,37,38,39,40,41,42,43,44,56,57,58,59,60,61,62,63,64,65,66,67,68,69,70,71,73,74,76,77,79,82,84,86,87,88,90,92,96,97,98,99,100,101,102,103,104,105,106,107,108,110,112,114,116,118,119,120,121],inclusive:!0}}}})();function it(){this.yy={}}return e.n(it,`Parser`),it.prototype=rt,rt.Parser=it,new it})();m.parser=m;var h=m,g=Object.assign({},h);g.parse=e=>{let t=e.replace(/}\s*\n/g,`}
15
+ `);return h.parse(t)};var _=g,v=e.n((e,t)=>{let i=r.t,a=i(e,`r`),o=i(e,`g`),s=i(e,`b`);return n.it(a,o,s,t)},`fade`),ee=e.n(e=>`.label {
16
+ font-family: ${e.fontFamily};
17
+ color: ${e.nodeTextColor||e.textColor};
18
+ }
19
+ .cluster-label text {
20
+ fill: ${e.titleColor};
21
+ }
22
+ .cluster-label span {
23
+ color: ${e.titleColor};
24
+ }
25
+ .cluster-label span p {
26
+ background-color: transparent;
27
+ }
28
+
29
+ .label text,span {
30
+ fill: ${e.nodeTextColor||e.textColor};
31
+ color: ${e.nodeTextColor||e.textColor};
32
+ }
33
+
34
+ .node rect,
35
+ .node circle,
36
+ .node ellipse,
37
+ .node polygon,
38
+ .node path {
39
+ fill: ${e.mainBkg};
40
+ stroke: ${e.nodeBorder};
41
+ stroke-width: ${e.strokeWidth??1}px;
42
+ }
43
+ .rough-node .label text , .node .label text, .image-shape .label, .icon-shape .label {
44
+ text-anchor: middle;
45
+ }
46
+
47
+ .node .katex path {
48
+ fill: #000;
49
+ stroke: #000;
50
+ stroke-width: 1px;
51
+ }
52
+
53
+ .rough-node .label,.node .label, .image-shape .label, .icon-shape .label {
54
+ text-align: center;
55
+ }
56
+ .node.clickable {
57
+ cursor: pointer;
58
+ }
59
+
60
+
61
+ .root .anchor path {
62
+ fill: ${e.lineColor} !important;
63
+ stroke-width: 0;
64
+ stroke: ${e.lineColor};
65
+ }
66
+
67
+ .arrowheadPath {
68
+ fill: ${e.arrowheadColor};
69
+ }
70
+
71
+ .edgePath .path {
72
+ stroke: ${e.lineColor};
73
+ stroke-width: ${e.strokeWidth??2}px;
74
+ }
75
+
76
+ .flowchart-link {
77
+ stroke: ${e.lineColor};
78
+ fill: none;
79
+ }
80
+
81
+ .edgeLabel {
82
+ background-color: ${e.edgeLabelBackground};
83
+ p {
84
+ background-color: ${e.edgeLabelBackground};
85
+ }
86
+ rect {
87
+ opacity: 0.5;
88
+ background-color: ${e.edgeLabelBackground};
89
+ fill: ${e.edgeLabelBackground};
90
+ }
91
+ text-align: center;
92
+ }
93
+
94
+ /* For html labels only */
95
+ .labelBkg {
96
+ background-color: ${v(e.edgeLabelBackground,.5)};
97
+ // background-color:
98
+ }
99
+
100
+ .cluster rect {
101
+ fill: ${e.clusterBkg};
102
+ stroke: ${e.clusterBorder};
103
+ stroke-width: 1px;
104
+ }
105
+
106
+ .cluster text {
107
+ fill: ${e.titleColor};
108
+ }
109
+
110
+ .cluster span {
111
+ color: ${e.titleColor};
112
+ }
113
+ /* .cluster div {
114
+ color: ${e.titleColor};
115
+ } */
116
+
117
+ /* Collapsed subgraph node (@{ view: collapsed }) */
118
+ .node .collapsed-indicator {
119
+ fill: ${e.clusterBorder};
120
+ stroke: none;
121
+ opacity: 0.6;
122
+ }
123
+
124
+ .node .collapsed-separator {
125
+ stroke: ${e.clusterBorder};
126
+ stroke-width: 0.75px;
127
+ }
128
+
129
+ div.mermaidTooltip {
130
+ position: absolute;
131
+ text-align: center;
132
+ max-width: 200px;
133
+ padding: 2px;
134
+ font-family: ${e.fontFamily};
135
+ font-size: 12px;
136
+ background: ${e.tertiaryColor};
137
+ border: 1px solid ${e.border2};
138
+ border-radius: 2px;
139
+ pointer-events: none;
140
+ z-index: 100;
141
+ }
142
+
143
+ .flowchartTitleText {
144
+ text-anchor: middle;
145
+ font-size: 18px;
146
+ fill: ${e.textColor};
147
+ }
148
+
149
+ rect.text {
150
+ fill: none;
151
+ stroke-width: 0;
152
+ }
153
+
154
+ .icon-shape, .image-shape {
155
+ background-color: ${e.edgeLabelBackground};
156
+ p {
157
+ background-color: ${e.edgeLabelBackground};
158
+ padding: 2px;
159
+ }
160
+ .label rect {
161
+ opacity: 0.5;
162
+ background-color: ${e.edgeLabelBackground};
163
+ fill: ${e.edgeLabelBackground};
164
+ }
165
+ text-align: center;
166
+ }
167
+ ${a.t()}
168
+ `,`getStyles`),te=e.n(({defaultLayout:t,styles:r=ee}={})=>({parser:_,get db(){return new f},renderer:p,styles:r,init:e.n(e=>{e.flowchart||={};let r=n.k().layout??t??e.layout;r&&n.G({layout:r}),e.flowchart.arrowMarkerAbsolute=e.arrowMarkerAbsolute,n.G({flowchart:{arrowMarkerAbsolute:e.arrowMarkerAbsolute}})},`init`)}),`createFlowDiagram`),ne=te();Object.defineProperty(exports,"n",{enumerable:!0,get:function(){return ne}}),Object.defineProperty(exports,"r",{enumerable:!0,get:function(){return ee}}),Object.defineProperty(exports,"t",{enumerable:!0,get:function(){return te}});
@@ -0,0 +1,62 @@
1
+ const e=require("./chunk-Y2CYZVJY-CnmLqFtv.cjs"),t=require("./src-D9o9TOtH.cjs"),n=require("./chunk-DU6HZSFF-3Hhp3Fo5.cjs"),r=require("./chunk-75Z2AOVW-DOXS9ORa.cjs"),i=require("./chunk-PWAF6VOD-CZZKCekP.cjs"),a=require("./chunk-GMAD6QVW-B6uvB_wz.cjs"),o=require("./chunk-P2QGCYS3-DWeL9spl.cjs"),s=require("./rough.esm-ChRLLRha.cjs");var c=1,l=3;async function u(t){let i=t.getElementsByTagName(`img`);if(!i||i.length===0)return;let a=!d(t);await Promise.all([...i].map(t=>new Promise(i=>{function o(){if(t.style.display=`flex`,t.style.flexDirection=`column`,a){let e=n.x().fontSize?n.x().fontSize:window.getComputedStyle(document.body).fontSize,[i=n.f.fontSize]=r.p(e),a=i*5+`px`;t.style.minWidth=a,t.style.maxWidth=a}else t.style.width=`100%`;i(t)}e.n(o,`setupImage`),setTimeout(()=>{t.complete&&o()}),t.addEventListener(`error`,o),t.addEventListener(`load`,o)})))}e.n(u,`configureLabelImages`);function d(e){return e.nodeType===l?e.textContent?.trim()!==``:e.nodeType!==c||e.tagName.toLowerCase()===`img`?!1:[...e.childNodes].some(d)}e.n(d,`hasTextBesidesImages`);var f=3,p=32,m=e.n(async(e,i,o)=>{let s=n.x(),c=e.insert(`g`).attr(`class`,o??`node default`).attr(`id`,i.domId||i.id),l=c.insert(`g`).attr(`class`,`label`).attr(`style`,r.u(i.labelStyle)),u=[{text:typeof i.label==`string`?i.label:i.label?.[0]??``,cssClass:`c4-name`},{text:i.stereotype,cssClass:`c4-type`},...(i.description??[]).map(e=>({text:e,cssClass:`c4-descr`}))].filter(e=>e.text),d=i.width?Math.max(i.width-2*(i.padding??0),p):n.x().flowchart?.wrappingWidth??200,m=s.c4?.wrap??!0?d:1/0,h=await Promise.all(u.map(async e=>{let o=l.append(`g`).attr(`class`,e.cssClass),c=await a.n(o,n.z(r.a(e.text??``),s),{useHtmlLabels:!1,markdown:!1,isNode:!0,width:m,style:i.labelStyle},s);return t.p(c).selectAll(`tspan.text-outer-tspan`).attr(`text-anchor`,`middle`),t.p(c).selectAll(`tspan.text-inner-tspan`).attr(`font-weight`,null).attr(`font-style`,null),{el:o,box:o.node().getBBox()}})),g=Math.max(...h.map(({box:e})=>e.width),0),_=0;for(let{el:e,box:t}of h)e.attr(`transform`,`translate(${g/2-t.x-t.width/2}, ${_-t.y})`),_+=t.height+f;let v=h.length>0?_-f:0;return l.insert(`rect`,`:first-child`),l.attr(`transform`,`translate(${-g/2}, ${-v/2})`),{shapeSvg:c,bbox:l.node().getBBox(),halfPadding:(i.padding??0)/2,label:l}},`c4LabelHelper`),h=e.n(async(e,i,o)=>{if(i.stereotype!==void 0)return m(e,i,o);let s,c=i.useHtmlLabels||n.g(n.x()?.htmlLabels);s=o||`node default`;let l=e.insert(`g`).attr(`class`,s).attr(`id`,i.domId||i.id),d=l.insert(`g`).attr(`class`,`label`).attr(`style`,r.u(i.labelStyle)),f;f=i.label===void 0?``:typeof i.label==`string`?i.label:i.label[0];let p=!!i.icon||!!i.img,h=i.labelType===`markdown`,g=await a.n(d,n.z(r.a(f),n.x()),{useHtmlLabels:c,width:i.width||i.wrappingWidth||n.x().flowchart?.wrappingWidth,classes:h?`markdown-node-label`:``,style:i.labelStyle,addSvgBackground:p,markdown:h},n.x()),_=(i?.padding??0)/2,v;if(c){let e=g.children[0],n=t.p(g);await u(e),v=await a.r.measure(()=>e.getBoundingClientRect()),n.attr(`width`,v.width),n.attr(`height`,v.height)}else v=await a.r.measure(()=>g.getBBox());return c?d.attr(`transform`,`translate(`+-v.width/2+`, `+-v.height/2+`)`):d.attr(`transform`,`translate(0, `+-v.height/2+`)`),i.centerLabel&&d.attr(`transform`,`translate(`+-v.width/2+`, `+-v.height/2+`)`),d.insert(`rect`,`:first-child`),{shapeSvg:l,bbox:v,halfPadding:_,label:d}},`labelHelper`),g=e.n(async(e,i,o)=>{let s=o.useHtmlLabels??n.T(n.x()),c=e.insert(`g`).attr(`class`,`label`).attr(`style`,o.labelStyle||``),l=await a.n(c,n.z(r.a(i),n.x()),{useHtmlLabels:s,width:o.width||n.x()?.flowchart?.wrappingWidth,style:o.labelStyle,addSvgBackground:!!o.icon||!!o.img}),u=o.padding/2,d;if(n.T(n.x())){let e=l.children[0],n=t.p(l);d=await a.r.measure(()=>e.getBoundingClientRect()),n.attr(`width`,d.width),n.attr(`height`,d.height)}else d=await a.r.measure(()=>l.getBBox());return s?c.attr(`transform`,`translate(`+-d.width/2+`, `+-d.height/2+`)`):c.attr(`transform`,`translate(0, `+-d.height/2+`)`),o.centerLabel&&c.attr(`transform`,`translate(`+-d.width/2+`, `+-d.height/2+`)`),c.insert(`rect`,`:first-child`),{shapeSvg:e,bbox:d,halfPadding:u,label:c}},`insertLabel`),_=e.n((e,t,n)=>{if(n){e.width=n.width,e.height=n.height;return}let r=t.node().getBBox();e.width=r.width,e.height=r.height},`updateNodeBounds`),v=e.n((e,t)=>(e.look===`handDrawn`?`rough-node`:`node`)+` `+e.cssClasses+` `+(t||``),`getNodeClasses`);function y(e){let t=e.map((e,t)=>`${t===0?`M`:`L`}${e.x},${e.y}`);return t.push(`Z`),t.join(` `)}e.n(y,`createPathFromPoints`);function b(e,t,n,r,i,a){let o=[],s=n-e,c=r-t,l=s/a,u=2*Math.PI/l,d=t+c/2;for(let t=0;t<=50;t++){let n=e+t/50*s,r=d+i*Math.sin(u*(n-e));o.push({x:n,y:r})}return o}e.n(b,`generateFullSineWavePoints`);function x(e,t,n,r,i,a){let o=[],s=i*Math.PI/180,c=(a*Math.PI/180-s)/(r-1);for(let i=0;i<r;i++){let r=s+i*c,a=e+n*Math.cos(r),l=t+n*Math.sin(r);o.push({x:-a,y:-l})}return o}e.n(x,`generateCirclePoints`);function S(t){let n=Array.from(t.childNodes).filter(e=>e.tagName===`path`),r=document.createElementNS(`http://www.w3.org/2000/svg`,`path`),i=n.map(e=>e.getAttribute(`d`)).filter(e=>e!==null).join(` `);r.setAttribute(`d`,i);let a=n.find(e=>e.getAttribute(`fill`)!==`none`),o=n.find(e=>e.getAttribute(`stroke`)!==`none`),s=e.n((e,t)=>e?.getAttribute(t)??void 0,`getAttr`);if(a){let e={fill:s(a,`fill`),"fill-opacity":s(a,`fill-opacity`)??`1`};Object.entries(e).forEach(([e,t])=>{t&&r.setAttribute(e,t)})}if(o){let e={stroke:s(o,`stroke`),"stroke-width":s(o,`stroke-width`)??`1`,"stroke-opacity":s(o,`stroke-opacity`)??`1`};Object.entries(e).forEach(([e,t])=>{t&&r.setAttribute(e,t)})}let c=document.createElementNS(`http://www.w3.org/2000/svg`,`g`);return c.appendChild(r),c}e.n(S,`mergePaths`);var C=e.n((e,t)=>{var n=e.x,r=e.y,i=t.x-n,a=t.y-r,o=e.width/2,s=e.height/2,c,l;return Math.abs(a)*o>Math.abs(i)*s?(a<0&&(s=-s),c=a===0?0:s*i/a,l=s):(i<0&&(o=-o),c=o,l=i===0?0:o*a/i),{x:n+c,y:r+l}},`intersectRect`),w=e.n((e,t,n,r,i)=>[`M`,e+i,t,`H`,e+n-i,`A`,i,i,0,0,1,e+n,t+i,`V`,t+r-i,`A`,i,i,0,0,1,e+n-i,t+r,`H`,e+i,`A`,i,i,0,0,1,e,t+r-i,`V`,t+i,`A`,i,i,0,0,1,e+i,t,`Z`].join(` `),`createRoundedRectPathD`),T=e.n(async(e,t,r,i=!1,o=!1)=>{let s=t||``;typeof s==`object`&&(s=s[0]);let c=n.x(),l=n.T(c);return await a.n(e,s,{style:r,isTitle:i,useHtmlLabels:l,markdown:!1,isNode:o,width:1/0},c)},`createLabel`);function E(e,t){return e.intersect(t)}e.n(E,`intersectNode`);var D=E;function O(e,t,n,r){var i=e.x,a=e.y,o=i-r.x,s=a-r.y,c=Math.sqrt(t*t*s*s+n*n*o*o),l=Math.abs(t*n*o/c);r.x<i&&(l=-l);var u=Math.abs(t*n*s/c);return r.y<a&&(u=-u),{x:i+l,y:a+u}}e.n(O,`intersectEllipse`);var k=O;function A(e,t,n){return k(e,t,t,n)}e.n(A,`intersectCircle`);var j=A;function M(e,t,n,r){{let i=t.y-e.y,a=e.x-t.x,o=t.x*e.y-e.x*t.y,s=i*n.x+a*n.y+o,c=i*r.x+a*r.y+o,l=1e-6;if(s!==0&&c!==0&&N(s,c))return;let u=r.y-n.y,d=n.x-r.x,f=r.x*n.y-n.x*r.y,p=u*e.x+d*e.y+f,m=u*t.x+d*t.y+f;if(Math.abs(p)<l&&Math.abs(m)<l&&N(p,m))return;let h=i*d-u*a;if(h===0)return;let g=Math.abs(h/2),_=a*f-d*o,v=_<0?(_-g)/h:(_+g)/h;return _=u*o-i*f,{x:v,y:_<0?(_-g)/h:(_+g)/h}}}e.n(M,`intersectLine`);function N(e,t){return e*t>0}e.n(N,`sameSign`);var P=M;function F(e,t,n){let r=e.x,i=e.y,a=[],o=1/0,s=1/0;typeof t.forEach==`function`?t.forEach(function(e){o=Math.min(o,e.x),s=Math.min(s,e.y)}):(o=Math.min(o,t.x),s=Math.min(s,t.y));let c=r-e.width/2-o,l=i-e.height/2-s;for(let r=0;r<t.length;r++){let i=t[r],o=t[r<t.length-1?r+1:0],s=P(e,n,{x:c+i.x,y:l+i.y},{x:c+o.x,y:l+o.y});s&&a.push(s)}return a.length?(a.length>1&&a.sort(function(e,t){let r=e.x-n.x,i=e.y-n.y,a=Math.sqrt(r*r+i*i),o=t.x-n.x,s=t.y-n.y,c=Math.sqrt(o*o+s*s);return a<c?-1:a===c?0:1}),a[0]):e}e.n(F,`intersectPolygon`);var I={node:D,circle:j,ellipse:k,polygon:F,rect:C};function ee(e,n){let{labelStyles:i}=o.i(n);n.labelStyle=i;let a=v(n),c=a;a||(c=`anchor`);let l=e.insert(`g`).attr(`class`,c).attr(`id`,n.domId||n.id),{cssStyles:u}=n,d=s.t.svg(l),f=o.a(n,{fill:`black`,stroke:`none`,fillStyle:`solid`});n.look!==`handDrawn`&&(f.roughness=0);let p=d.circle(0,0,2,f),m=l.insert(()=>p,`:first-child`);return m.attr(`class`,`anchor`).attr(`style`,r.u(u)),_(n,m),n.intersect=function(e){return t.m.info(`Circle intersect`,n,1,e),I.circle(n,1,e)},l}e.n(ee,`anchor`);function L(e,t,n,r,i,a,o){let s=(e+n)/2,c=(t+r)/2,l=Math.atan2(r-t,n-e),u=(n-e)/2,d=(r-t)/2,f=u/i,p=d/a,m=Math.sqrt(f**2+p**2);if(m>1)throw Error(`The given radii are too small to create an arc between the points.`);let h=Math.sqrt(1-m**2),g=s+h*a*Math.sin(l)*(o?-1:1),_=c-h*i*Math.cos(l)*(o?-1:1),v=Math.atan2((t-_)/a,(e-g)/i),y=Math.atan2((r-_)/a,(n-g)/i)-v;o&&y<0&&(y+=2*Math.PI),!o&&y>0&&(y-=2*Math.PI);let b=[];for(let e=0;e<20;e++){let t=v+e/19*y,n=g+i*Math.cos(t),r=_+a*Math.sin(t);b.push({x:n,y:r})}return b}e.n(L,`generateArcPoints`);function R(e,t,n){let[r,i]=[t,n].sort((e,t)=>t-e);return i*(1-Math.sqrt(1-(e/r/2)**2))}e.n(R,`calculateArcSagitta`);async function te(t,n){let{labelStyles:r,nodeStyles:i}=o.i(n);n.labelStyle=r;let a=n.padding??0,c=n.look===`neo`?16:a,l=n.look===`neo`?12:a,u=e.n(e=>e+l,`calcTotalHeight`),d=e.n(e=>{let t=e/2;return[t/(2.5+e/50),t]},`calcEllipseRadius`),{shapeSvg:f,bbox:p}=await h(t,n,v(n)),m=u(n?.height?n?.height:p.height),[g,b]=d(m),x=R(m,g,b),S=(n?.width?n?.width:p.width)+c*2+x-x,C=m,{cssStyles:w}=n,T=[{x:S/2,y:-C/2},{x:-S/2,y:-C/2},...L(-S/2,-C/2,-S/2,C/2,g,b,!1),{x:S/2,y:C/2},...L(S/2,C/2,S/2,-C/2,g,b,!0)],E=s.t.svg(f),D=o.a(n,{});n.look!==`handDrawn`&&(D.roughness=0,D.fillStyle=`solid`);let O=y(T),k=E.path(O,D),A=f.insert(()=>k,`:first-child`);return A.attr(`class`,`basic label-container outer-path`),w&&n.look!==`handDrawn`&&A.selectAll(`path`).attr(`style`,w),i&&n.look!==`handDrawn`&&A.selectAll(`path`).attr(`style`,i),A.attr(`transform`,`translate(${g/2}, 0)`),_(n,A),n.intersect=function(e){return I.polygon(n,T,e)},f}e.n(te,`bowTieRect`);async function z(t,n,{config:{themeVariables:r}}){let{labelStyles:i,nodeStyles:a}=o.i(n);n.labelStyle=i;let{shapeSvg:c,bbox:l,label:u}=await h(t,n,v(n)),d=r?.nodeBorder??r?.lineColor??`currentColor`,f=n.padding??12,p=Math.max(l.width+f*2,n.width??0,80),m=Math.max(Math.min(p*.08,12),5),g=Math.max(l.height+f*2+m,n.height??0),y=-g/2+m,b=g/2,x=p*.72,S=[`M${-p/2},${y}`,`L${-x/2},${b}`,`A${x/2},${m} 0 0 0 ${x/2},${b}`,`L${p/2},${y}`,`A${p/2},${m} 0 0 0 ${-p/2},${y}`,`Z`].join(` `),{cssStyles:C}=n,w=c.insert(`g`,`:first-child`).attr(`class`,`basic label-container`);if(n.look===`handDrawn`){let e=s.t.svg(c).path(S,o.a(n,{}));w.node()?.appendChild(e),C&&w.attr(`style`,C)}else w.append(`path`).attr(`d`,S).attr(`style`,a);w.append(`ellipse`).attr(`cx`,0).attr(`cy`,y).attr(`rx`,p/2).attr(`ry`,m).attr(`style`,`fill:none;stroke:${d};stroke-width:1px`),_(n,w);let T=y+(b-y)/2;u.attr(`transform`,`translate(${-(l.width/2)-(l.x-(l.left??0))}, ${T-l.height/2-(l.y-(l.top??0))})`);let E=e.n((e,t,n)=>Array.from({length:13},(r,i)=>{let a=Math.PI-i*Math.PI/12;return{x:e*Math.cos(a),y:t+n*m*Math.sin(a)}}),`arc`),D=[...E(p/2,y,-1),...E(x/2,b,1).reverse()];return n.intersect=function(e){return I.polygon(n,D,e)},c}e.n(z,`bucket`);var B=20,V=8,H=80,ne=8;async function re(e,t){let{themeVariables:i}=n.x(),a=i.clusterBkg,c=i.clusterBorder,{nodeStyles:l}=o.i(t),{shapeSvg:u,bbox:d}=await h(e,t,v(t)),f=t.padding??8,p=d.height,m=Math.max(d.width+f*2,H,t?.width??0),g=Math.max(p+V+B+f*2,t?.height??0),y=-m/2,b=-g/2,x=-(V+B)/2,S=u.select(`.label`);S&&(t.useHtmlLabels??n.T(n.x())?S.attr(`transform`,`translate(${-d.width/2}, ${-d.height/2+x})`):S.attr(`transform`,`translate(0, ${-d.height/2+x})`));let C;if(t.look===`handDrawn`){let e=s.t.svg(u),n=o.a(t,{fill:a,stroke:c,fillStyle:`solid`}),i=e.path(w(y,b,m,g,ne),n);C=u.insert(()=>i,`:first-child`),C.attr(`class`,`basic label-container collapsed-group`).attr(`style`,r.u(t.cssStyles))}else C=u.insert(`rect`,`:first-child`),C.attr(`class`,`basic label-container collapsed-group`).attr(`style`,l).attr(`rx`,ne).attr(`ry`,ne).attr(`x`,y).attr(`y`,b).attr(`width`,m).attr(`height`,g).attr(`fill`,a).attr(`stroke`,c);let T=b+f+p+V;u.append(`line`).attr(`class`,`collapsed-separator`).attr(`x1`,y+8).attr(`y1`,T).attr(`x2`,y+m-8).attr(`y2`,T).attr(`stroke`,c).attr(`stroke-dasharray`,`3, 3`);let E=T+B/2;for(let e=-1;e<=1;e++)u.append(`circle`).attr(`class`,`collapsed-indicator`).attr(`cx`,e*10).attr(`cy`,E).attr(`r`,2.5).attr(`fill`,c);return _(t,C),t.calcIntersect=function(e,t){return I.rect(e,t)},t.intersect=function(e){return I.rect(t,e)},u}e.n(re,`collapsedGroup`);function U(e,t,n,r){return e.insert(`polygon`,`:first-child`).attr(`points`,r.map(function(e){return e.x+`,`+e.y}).join(` `)).attr(`class`,`label-container`).attr(`transform`,`translate(`+-t/2+`,`+n/2+`)`)}e.n(U,`insertPolygonShape`);var W=[`right`,`left`,`up`,`down`],G=`point`,ie=e.n(e=>{let t=new Set;for(let n of e)switch(n){case`x`:t.add(`right`),t.add(`left`);break;case`y`:t.add(`up`),t.add(`down`);break;default:t.add(n)}return t},`expandAndDeduplicateDirections`),ae=e.n(e=>W.filter(t=>e.has(t)).join(`|`)||G,`getDirectionKey`),oe={"right|left|up|down":e.n(({height:e,midpoint:t,padding:n,width:r})=>[{x:0,y:0},{x:t,y:0},{x:r/2,y:2*n},{x:r-t,y:0},{x:r,y:0},{x:r,y:-e/3},{x:r+2*n,y:-e/2},{x:r,y:-2*e/3},{x:r,y:-e},{x:r-t,y:-e},{x:r/2,y:-e-2*n},{x:t,y:-e},{x:0,y:-e},{x:0,y:-2*e/3},{x:-2*n,y:-e/2},{x:0,y:-e/3}],`right|left|up|down`),"right|left|up":e.n(({height:e,midpoint:t,width:n})=>[{x:t,y:0},{x:n-t,y:0},{x:n,y:-e/2},{x:n-t,y:-e},{x:t,y:-e},{x:0,y:-e/2}],`right|left|up`),"right|left|down":e.n(({height:e,midpoint:t,width:n})=>[{x:0,y:0},{x:t,y:-e},{x:n-t,y:-e},{x:n,y:0}],`right|left|down`),"right|up|down":e.n(({height:e,midpoint:t,width:n})=>[{x:0,y:0},{x:n,y:-t},{x:n,y:-e+t},{x:0,y:-e}],`right|up|down`),"left|up|down":e.n(({height:e,midpoint:t,width:n})=>[{x:n,y:0},{x:0,y:-t},{x:0,y:-e+t},{x:n,y:-e}],`left|up|down`),"right|left":e.n(({height:e,midpoint:t,padding:n,width:r})=>[{x:t,y:0},{x:t,y:-n},{x:r-t,y:-n},{x:r-t,y:0},{x:r,y:-e/2},{x:r-t,y:-e},{x:r-t,y:-e+n},{x:t,y:-e+n},{x:t,y:-e},{x:0,y:-e/2}],`right|left`),"up|down":e.n(({height:e,midpoint:t,padding:n,width:r})=>[{x:r/2,y:0},{x:0,y:-n},{x:t,y:-n},{x:t,y:-e+n},{x:0,y:-e+n},{x:r/2,y:-e},{x:r,y:-e+n},{x:r-t,y:-e+n},{x:r-t,y:-n},{x:r,y:-n}],`up|down`),"right|up":e.n(({height:e,midpoint:t,width:n})=>[{x:0,y:0},{x:n,y:-t},{x:0,y:-e}],`right|up`),"right|down":e.n(({height:e,width:t})=>[{x:0,y:0},{x:t,y:0},{x:0,y:-e}],`right|down`),"left|up":e.n(({height:e,midpoint:t,width:n})=>[{x:n,y:0},{x:0,y:-t},{x:n,y:-e}],`left|up`),"left|down":e.n(({height:e,width:t})=>[{x:t,y:0},{x:0,y:0},{x:t,y:-e}],`left|down`),right:e.n(({height:e,midpoint:t,padding:n,width:r})=>[{x:t,y:-n},{x:t,y:-n},{x:r-t,y:-n},{x:r-t,y:0},{x:r,y:-e/2},{x:r-t,y:-e},{x:r-t,y:-e+n},{x:t,y:-e+n},{x:t,y:-e+n}],`right`),left:e.n(({height:e,midpoint:t,padding:n,width:r})=>[{x:t,y:0},{x:t,y:-n},{x:r-t,y:-n},{x:r-t,y:-e+n},{x:t,y:-e+n},{x:t,y:-e},{x:0,y:-e/2}],`left`),up:e.n(({height:e,midpoint:t,padding:n,width:r})=>[{x:t,y:-n},{x:t,y:-e+n},{x:0,y:-e+n},{x:r/2,y:-e},{x:r,y:-e+n},{x:r-t,y:-e+n},{x:r-t,y:-n}],`up`),down:e.n(({height:e,midpoint:t,padding:n,width:r})=>[{x:r/2,y:0},{x:0,y:-n},{x:t,y:-n},{x:t,y:-e+n},{x:r-t,y:-e+n},{x:r-t,y:-n},{x:r,y:-n}],`down`),[G]:()=>[{x:0,y:0}]},se=e.n((e,t,n,r)=>{let i=ie(e),a=(n.padding??0)/2,o=t.height+4*a,s=o/2,c=r??t.width+2*s+2*a;return(oe[ae(i)]??oe[G])({height:o,midpoint:s,padding:a,width:c})},`getArrowPoints`);async function ce(e,t){let n=t,{shapeSvg:r,bbox:i}=await h(e,n,v(n)),a=n.padding??0,o=i.height+2*a,s=o/2,c=i.width+2*s+a,l=n.width??0,u=n.positioned&&(n.widthInColumns??1)>1&&l>c?l:c,d=se(n.directions??[],i,n,u),f=U(r,u,o,d);return f.attr(`style`,n.style??null),_(n,f),n.intersect=function(e){return I.polygon(n,d,e)},r}e.n(ce,`block_arrow`);async function le(e,t,{config:{themeVariables:n}}){let{labelStyles:r,nodeStyles:i}=o.i(t);t.labelStyle=r;let{shapeSvg:a,bbox:c,label:l}=await h(e,t,v(t)),u=n?.nodeBorder??n?.lineColor??`currentColor`,d=t.padding??12,f=Math.max(c.width+d*2,t.width??0,90),p=Math.max(c.height+d*2+18,t.height??0),m=-p/2,{cssStyles:g}=t,y=a.insert(`g`,`:first-child`).attr(`class`,`basic label-container`);if(t.look===`handDrawn`){let e=s.t.svg(a).path(w(-f/2,m,f,p,12),o.a(t,{}));y.node()?.appendChild(e),g&&y.attr(`style`,g)}else y.append(`rect`).attr(`x`,-f/2).attr(`y`,m).attr(`width`,f).attr(`height`,p).attr(`rx`,12).attr(`ry`,12).attr(`style`,i);y.append(`line`).attr(`x1`,-f/2).attr(`y1`,m+18).attr(`x2`,f/2).attr(`y2`,m+18).attr(`style`,`stroke:${u};stroke-width:1px`);for(let e=0;e<3;e++)y.append(`circle`).attr(`cx`,-f/2+12+e*9).attr(`cy`,m+9).attr(`r`,2.5).attr(`style`,`fill:${u};stroke:none`);y.append(`rect`).attr(`class`,`browser-address-bar`).attr(`x`,-f/2+44).attr(`y`,m+4).attr(`width`,Math.max(f-56,10)).attr(`height`,10).attr(`rx`,3).attr(`ry`,3).attr(`style`,`fill:none;stroke:${u};stroke-width:1px;opacity:0.6`),_(t,y);let b=m+18+(p-18)/2;return l.attr(`transform`,`translate(${-(c.width/2)-(c.x-(c.left??0))}, ${b-c.height/2-(c.y-(c.top??0))})`),t.intersect=function(e){return I.rect(t,e)},a}e.n(le,`browser`);var ue=12;async function de(e,t){let{labelStyles:n,nodeStyles:r}=o.i(t);t.labelStyle=n;let i=t.padding??0,a=t.look===`neo`?28:i,c=t.look===`neo`?24:i,{shapeSvg:l,bbox:u}=await h(e,t,v(t)),d=(t?.width??u.width)+(t.look===`neo`?a*2:a+ue),f=(t?.height??u.height)+(t.look===`neo`?c*2:c),p=d,m=-f,g=[{x:0+ue,y:m},{x:p,y:m},{x:p,y:0},{x:0,y:0},{x:0,y:m+ue},{x:0+ue,y:m}],b,{cssStyles:x}=t;if(t.look===`handDrawn`){let e=s.t.svg(l),n=o.a(t,{}),r=y(g),i=e.path(r,n);b=l.insert(()=>i,`:first-child`).attr(`transform`,`translate(${-d/2}, ${f/2})`),x&&b.attr(`style`,x)}else b=U(l,d,f,g);return r&&b.attr(`style`,r),_(t,b),t.intersect=function(e){return I.polygon(t,g,e)},l}e.n(de,`card`);function fe(e,t){let{nodeStyles:n}=o.i(t);t.label=``;let r=e.insert(`g`).attr(`class`,v(t)).attr(`id`,t.domId??t.id),{cssStyles:i}=t,a=Math.max(28,t.width??0),c=[{x:0,y:a/2},{x:a/2,y:0},{x:0,y:-a/2},{x:-a/2,y:0}],l=s.t.svg(r),u=o.a(t,{});t.look!==`handDrawn`&&(u.roughness=0,u.fillStyle=`solid`);let d=y(c),f=l.path(d,u),p=r.insert(()=>f,`:first-child`);return i&&t.look!==`handDrawn`&&p.selectAll(`path`).attr(`style`,i),n&&t.look!==`handDrawn`&&p.selectAll(`path`).attr(`style`,n),t.width=28,t.height=28,t.intersect=function(e){return I.polygon(t,c,e)},r}e.n(fe,`choice`);async function pe(e,n,i){let{labelStyles:a,nodeStyles:c}=o.i(n);n.labelStyle=a;let{shapeSvg:l,bbox:u,halfPadding:d}=await h(e,n,v(n)),f=i?.padding??d,p=n.look===`neo`?u.width/2+32:u.width/2+f,m,{cssStyles:g}=n;if(n.look===`handDrawn`){let e=s.t.svg(l),t=o.a(n,{}),i=e.circle(0,0,p*2,t);m=l.insert(()=>i,`:first-child`),m.attr(`class`,`basic label-container`).attr(`style`,r.u(g))}else m=l.insert(`circle`,`:first-child`).attr(`class`,`basic label-container`).attr(`style`,c).attr(`r`,p).attr(`cx`,0).attr(`cy`,0);return _(n,m),n.calcIntersect=function(e,t){let n=e.width/2;return I.circle(e,n,t)},n.intersect=function(e){return t.m.info(`Circle intersect`,n,p,e),I.circle(n,p,e)},l}e.n(pe,`circle`);async function me(e,t){let n=t,{shapeSvg:r,bbox:i,halfPadding:a}=await h(e,n,[`node`,n.cssClasses,n.class].filter(Boolean).join(` `)),o=r.insert(`rect`,`:first-child`),s=n.padding??0,c=n.positioned?n.width??0:i.width+s,l=n.positioned?n.height??0:i.height+s,u=n.positioned?-c/2:-i.width/2-a,d=n.positioned?-l/2:-i.height/2-a;return o.attr(`class`,`basic cluster composite label-container`).attr(`style`,n.style??null).attr(`rx`,n.rx??null).attr(`ry`,n.ry??null).attr(`x`,u).attr(`y`,d).attr(`width`,c).attr(`height`,l),_(n,o),n.intersect=function(e){return I.rect(n,e)},r}e.n(me,`composite`);async function he(e,t,{config:{themeVariables:n}}){let{labelStyles:r,nodeStyles:i}=o.i(t);t.labelStyle=r;let{shapeSvg:a,bbox:c,label:l}=await h(e,t,v(t)),u=n?.nodeBorder??n?.lineColor??`currentColor`,d=t.padding??12,f=Math.max(c.width+d*2,t.width??0,90),p=Math.max(c.height+d*2+20,t.height??0),m=-p/2,{cssStyles:g}=t,y=a.insert(`g`,`:first-child`).attr(`class`,`basic label-container`);if(t.look===`handDrawn`){let e=s.t.svg(a).path(w(-f/2,m,f,p,12),o.a(t,{}));y.node()?.appendChild(e),g&&y.attr(`style`,g)}else y.append(`rect`).attr(`x`,-f/2).attr(`y`,m).attr(`width`,f).attr(`height`,p).attr(`rx`,12).attr(`ry`,12).attr(`style`,i);y.append(`text`).attr(`x`,-f/2+12).attr(`y`,m+16).attr(`class`,`console-glyph`).attr(`style`,`font-family:monospace;font-weight:bold;font-size:14px;fill:${u}`).text(`>_`),_(t,y);let b=m+20+(p-20)/2;return l.attr(`transform`,`translate(${-(c.width/2)-(c.x-(c.left??0))}, ${b-c.height/2-(c.y-(c.top??0))})`),t.intersect=function(e){return I.rect(t,e)},a}e.n(he,`consoleWindow`);function ge(e){let t=Math.cos(Math.PI/4),n=Math.sin(Math.PI/4),r=e*2,i={x:r/2*t,y:r/2*n},a={x:-(r/2)*t,y:r/2*n},o={x:-(r/2)*t,y:-(r/2)*n},s={x:r/2*t,y:-(r/2)*n};return`M ${a.x},${a.y} L ${s.x},${s.y}
2
+ M ${i.x},${i.y} L ${o.x},${o.y}`}e.n(ge,`createLine`);function _e(e,n){let{labelStyles:r,nodeStyles:i}=o.i(n);n.labelStyle=r,n.label=``;let a=e.insert(`g`).attr(`class`,v(n)).attr(`id`,n.domId??n.id),c=Math.max(30,n?.width??0),{cssStyles:l}=n,u=s.t.svg(a),d=o.a(n,{});n.look!==`handDrawn`&&(d.roughness=0,d.fillStyle=`solid`);let f=u.circle(0,0,c*2,d),p=ge(c),m=u.path(p,d),h=a.insert(()=>f,`:first-child`);return h.insert(()=>m),h.attr(`class`,`outer-path`),l&&n.look!==`handDrawn`&&h.selectAll(`path`).attr(`style`,l),i&&n.look!==`handDrawn`&&h.selectAll(`path`).attr(`style`,i),_(n,h),n.intersect=function(e){return t.m.info(`crossedCircle intersect`,n,{radius:c,point:e}),I.circle(n,c,e)},a}e.n(_e,`crossedCircle`);function K(e,t,n,r=100,i=0,a=180){let o=[],s=i*Math.PI/180,c=(a*Math.PI/180-s)/(r-1);for(let i=0;i<r;i++){let r=s+i*c,a=e+n*Math.cos(r),l=t+n*Math.sin(r);o.push({x:-a,y:-l})}return o}e.n(K,`generateCirclePoints`);async function ve(e,t){let{labelStyles:n,nodeStyles:r}=o.i(t);t.labelStyle=n;let{shapeSvg:i,bbox:a,label:c}=await h(e,t,v(t)),l=t.look===`neo`?18:t.padding??0,u=t.look===`neo`?12:t.padding??0,d=a.width+l,f=a.height+u,p=Math.max(5,f*.1),{cssStyles:m}=t,g=[...K(d/2,-f/2,p,30,-90,0),{x:-d/2-p,y:p},...K(d/2+p*2,-p,p,20,-180,-270),...K(d/2+p*2,p,p,20,-90,-180),{x:-d/2-p,y:-f/2},...K(d/2,f/2,p,20,0,90)],b=[{x:d/2,y:-f/2-p},{x:-d/2,y:-f/2-p},...K(d/2,-f/2,p,20,-90,0),{x:-d/2-p,y:-p},...K(d/2+d*.1,-p,p,20,-180,-270),...K(d/2+d*.1,p,p,20,-90,-180),{x:-d/2-p,y:f/2},...K(d/2,f/2,p,20,0,90),{x:-d/2,y:f/2+p},{x:d/2,y:f/2+p}],x=s.t.svg(i),S=o.a(t,{fill:`none`});t.look!==`handDrawn`&&(S.roughness=0,S.fillStyle=`solid`);let C=y(g).replace(`Z`,``),w=x.path(C,S),T=y(b),E=x.path(T,{...S}),D=i.insert(`g`,`:first-child`);return D.insert(()=>E,`:first-child`).attr(`stroke-opacity`,0),D.insert(()=>w,`:first-child`),D.attr(`class`,`text`),m&&t.look!==`handDrawn`&&D.selectAll(`path`).attr(`style`,m),r&&t.look!==`handDrawn`&&D.selectAll(`path`).attr(`style`,r),D.attr(`transform`,`translate(${p}, 0)`),c.attr(`transform`,`translate(${-d/2+p-(a.x-(a.left??0))},${-f/2+(t.padding??0)/2-(a.y-(a.top??0))})`),_(t,D),t.intersect=function(e){return I.polygon(t,b,e)},i}e.n(ve,`curlyBraceLeft`);function q(e,t,n,r=100,i=0,a=180){let o=[],s=i*Math.PI/180,c=(a*Math.PI/180-s)/(r-1);for(let i=0;i<r;i++){let r=s+i*c,a=e+n*Math.cos(r),l=t+n*Math.sin(r);o.push({x:a,y:l})}return o}e.n(q,`generateCirclePoints`);async function ye(e,t){let{labelStyles:n,nodeStyles:r}=o.i(t);t.labelStyle=n;let{shapeSvg:i,bbox:a,label:c}=await h(e,t,v(t)),l=t.look===`neo`?18:t.padding??0,u=t.look===`neo`?12:t.padding??0,d=a.width+(t.look===`neo`?l*2:l),f=a.height+(t.look===`neo`?u*2:u),p=Math.max(5,f*.1),{cssStyles:m}=t,g=[...q(d/2,-f/2,p,20,-90,0),{x:d/2+p,y:-p},...q(d/2+p*2,-p,p,20,-180,-270),...q(d/2+p*2,p,p,20,-90,-180),{x:d/2+p,y:f/2},...q(d/2,f/2,p,20,0,90)],b=[{x:-d/2,y:-f/2-p},{x:d/2,y:-f/2-p},...q(d/2,-f/2,p,20,-90,0),{x:d/2+p,y:-p},...q(d/2+p*2,-p,p,20,-180,-270),...q(d/2+p*2,p,p,20,-90,-180),{x:d/2+p,y:f/2},...q(d/2,f/2,p,20,0,90),{x:d/2,y:f/2+p},{x:-d/2,y:f/2+p}],x=s.t.svg(i),S=o.a(t,{fill:`none`});t.look!==`handDrawn`&&(S.roughness=0,S.fillStyle=`solid`);let C=y(g).replace(`Z`,``),w=x.path(C,S),T=y(b),E=x.path(T,{...S}),D=i.insert(`g`,`:first-child`);return D.insert(()=>E,`:first-child`).attr(`stroke-opacity`,0),D.insert(()=>w,`:first-child`),D.attr(`class`,`text`),m&&t.look!==`handDrawn`&&D.selectAll(`path`).attr(`style`,m),r&&t.look!==`handDrawn`&&D.selectAll(`path`).attr(`style`,r),D.attr(`transform`,`translate(${-p}, 0)`),c.attr(`transform`,`translate(${-d/2+(t.padding??0)/2-(a.x-(a.left??0))},${-f/2+(t.padding??0)/2-(a.y-(a.top??0))})`),_(t,D),t.intersect=function(e){return I.polygon(t,b,e)},i}e.n(ye,`curlyBraceRight`);function J(e,t,n,r=100,i=0,a=180){let o=[],s=i*Math.PI/180,c=(a*Math.PI/180-s)/(r-1);for(let i=0;i<r;i++){let r=s+i*c,a=e+n*Math.cos(r),l=t+n*Math.sin(r);o.push({x:-a,y:-l})}return o}e.n(J,`generateCirclePoints`);async function be(e,t){let{labelStyles:n,nodeStyles:r}=o.i(t);t.labelStyle=n;let{shapeSvg:i,bbox:a,label:c}=await h(e,t,v(t)),l=t.look===`neo`?18:t.padding??0,u=t.look===`neo`?12:t.padding??0,d=a.width+(t.look===`neo`?l*2:l),f=a.height+(t.look===`neo`?u*2:u),p=Math.max(5,f*.1),{cssStyles:m}=t,g=[...J(d/2,-f/2,p,30,-90,0),{x:-d/2-p,y:p},...J(d/2+p*2,-p,p,20,-180,-270),...J(d/2+p*2,p,p,20,-90,-180),{x:-d/2-p,y:-f/2},...J(d/2,f/2,p,20,0,90)],b=[...J(-d/2+p+p/2,-f/2,p,20,-90,-180),{x:d/2-p/2,y:p},...J(-d/2-p/2,-p,p,20,0,90),...J(-d/2-p/2,p,p,20,-90,0),{x:d/2-p/2,y:-p},...J(-d/2+p+p/2,f/2,p,30,-180,-270)],x=[{x:d/2,y:-f/2-p},{x:-d/2,y:-f/2-p},...J(d/2,-f/2,p,20,-90,0),{x:-d/2-p,y:-p},...J(d/2+p*2,-p,p,20,-180,-270),...J(d/2+p*2,p,p,20,-90,-180),{x:-d/2-p,y:f/2},...J(d/2,f/2,p,20,0,90),{x:-d/2,y:f/2+p},{x:d/2-p-p/2,y:f/2+p},...J(-d/2+p+p/2,-f/2,p,20,-90,-180),{x:d/2-p/2,y:p},...J(-d/2-p/2,-p,p,20,0,90),...J(-d/2-p/2,p,p,20,-90,0),{x:d/2-p/2,y:-p},...J(-d/2+p+p/2,f/2,p,30,-180,-270)],S=s.t.svg(i),C=o.a(t,{fill:`none`});t.look!==`handDrawn`&&(C.roughness=0,C.fillStyle=`solid`);let w=y(g).replace(`Z`,``),T=S.path(w,C),E=y(b).replace(`Z`,``),D=S.path(E,C),O=y(x),k=S.path(O,{...C}),A=i.insert(`g`,`:first-child`);return A.insert(()=>k,`:first-child`).attr(`stroke-opacity`,0),A.insert(()=>T,`:first-child`),A.insert(()=>D,`:first-child`),A.attr(`class`,`text`),m&&t.look!==`handDrawn`&&A.selectAll(`path`).attr(`style`,m),r&&t.look!==`handDrawn`&&A.selectAll(`path`).attr(`style`,r),A.attr(`transform`,`translate(${p-p/4}, 0)`),c.attr(`transform`,`translate(${-d/2+(t.padding??0)/2-(a.x-(a.left??0))},${-f/2+(t.padding??0)/2-(a.y-(a.top??0))})`),_(t,A),t.intersect=function(e){return I.polygon(t,x,e)},i}e.n(be,`curlyBraces`);async function xe(e,t){let{labelStyles:n,nodeStyles:r}=o.i(t);t.labelStyle=n;let i=t.padding??0,a=t.look===`neo`?16:i,c=t.look===`neo`?12:i,{shapeSvg:l,bbox:u}=await h(e,t,v(t)),d=Math.max(20,(u.width+a*2)*1.25,t?.width??0),f=Math.max(5,u.height+c*2,t?.height??0),p=f/2,{cssStyles:m}=t,g=s.t.svg(l),b=o.a(t,{});t.look!==`handDrawn`&&(b.roughness=0,b.fillStyle=`solid`);let S=d,C=f,w=S-p,T=C/4,E=[{x:w,y:0},{x:T,y:0},{x:0,y:C/2},{x:T,y:C},{x:w,y:C},...x(-w,-C/2,p,50,270,90)],D=y(E),O=g.path(D,b),k=l.insert(()=>O,`:first-child`);return k.attr(`class`,`basic label-container outer-path`),m&&t.look!==`handDrawn`&&k.selectChildren(`path`).attr(`style`,m),r&&t.look!==`handDrawn`&&k.selectChildren(`path`).attr(`style`,r),k.attr(`transform`,`translate(${-d/2}, ${-f/2})`),_(t,k),t.intersect=function(e){return I.polygon(t,E,e)},l}e.n(xe,`curvedTrapezoid`);async function Se(e,t){let{labelStyles:n,nodeStyles:r}=o.i(t);t.labelStyle=n;let{shapeSvg:i,bbox:a,label:c}=await h(e,t,v(t)),l=t.padding??20,u=Math.max(a.width+l*2,t.width??0,100),d=Math.min(Math.max(u*.23,16),56),f=d*.27,p=Math.max(a.height+l*2,t.height?t.height-(2*d-f):0),m=Math.min(u*.177,p*.45),g=p+2*d-f,y=-g/2,b=y+2*d-f,S=i.insert(`g`,`:first-child`).attr(`class`,`basic label-container`),{cssStyles:C}=t;if(t.look===`handDrawn`){let e=s.t.svg(i),n=o.a(t,{}),r=e.path(w(-u/2,b,u,p,m),n),a=e.circle(0,y+d,d*2,n);S.insert(()=>a,`:first-child`),S.insert(()=>r,`:first-child`),C&&S.attr(`style`,C)}else S.append(`rect`).attr(`x`,-u/2).attr(`y`,b).attr(`width`,u).attr(`height`,p).attr(`rx`,m).attr(`ry`,m).attr(`style`,r),S.append(`circle`).attr(`cx`,0).attr(`cy`,y+d).attr(`r`,d).attr(`style`,r);_(t,S);let T=b+p/2;c.attr(`transform`,`translate(${-(a.width/2)-(a.x-(a.left??0))}, ${T-a.height/2-(a.y-(a.top??0))})`);let E=y+d,D=Math.asin(Math.min(1,(b-E)/d))*180/Math.PI,O=[...x(0,-E,d,24,180+D,-D),...x(-(-u/2+m),-(b+m),m,12,90,0),...x(-(-u/2+m),-(g/2-m),m,12,360,270),...x(-(u/2-m),-(g/2-m),m,12,270,180),...x(-(u/2-m),-(b+m),m,12,180,90)];return t.intersect=function(e){return I.polygon(t,O,e)},i}e.n(Se,`person`);var Ce=e.n((e,t,n,r,i,a)=>[`M${e},${t+a}`,`a${i},${a} 0,0,0 ${n},0`,`a${i},${a} 0,0,0 ${-n},0`,`l0,${r}`,`a${i},${a} 0,0,0 ${n},0`,`l0,${-r}`].join(` `),`createCylinderPathD`),we=e.n((e,t,n,r,i,a)=>[`M${e},${t+a}`,`M${e+n},${t+a}`,`a${i},${a} 0,0,0 ${-n},0`,`l0,${r}`,`a${i},${a} 0,0,0 ${n},0`,`l0,${-r}`].join(` `),`createOuterCylinderPathD`),Te=e.n((e,t,n,r,i,a)=>[`M${e-n/2},${-r/2}`,`a${i},${a} 0,0,0 ${n},0`].join(` `),`createInnerCylinderPathD`),Ee=8,De=8;async function Oe(e,t){let{labelStyles:n,nodeStyles:i}=o.i(t);t.labelStyle=n;let a=t.padding??0,c=t.look===`neo`?24:a,l=t.look===`neo`?24:a,u=t.width??0;if(t.width&&(t.width-=l,t.width<De&&(t.width=De)),t.height){let e=u/2/(2.5+u/50);t.height=t.height-c-e*3,t.height<Ee&&(t.height=Ee)}let{shapeSvg:d,bbox:f,label:p}=await h(e,t,v(t)),m=Math.max(t.width??0,f.width)+l,g=m/2,y=g/(2.5+m/50),b=Math.max(t.height??0,f.height)+c+y,x,{cssStyles:S}=t;if(t.look===`handDrawn`){let e=s.t.svg(d),n=we(0,0,m,b,g,y),r=Te(0,y,m,b,g,y),i=o.a(t,{}),a=e.path(n,i),c=e.path(r,o.a(t,{fill:`none`}));x=d.insert(()=>c,`:first-child`),x=d.insert(()=>a,`:first-child`),x.attr(`class`,`basic label-container`),S&&x.attr(`style`,S)}else{let e=Ce(0,0,m,b,g,y);x=d.insert(`path`,`:first-child`).attr(`d`,e).attr(`class`,`basic label-container outer-path`).attr(`style`,r.u(S)).attr(`style`,i)}return x.attr(`label-offset-y`,y),x.attr(`transform`,`translate(${-m/2}, ${-(b/2+y)})`),_(t,x),p.attr(`transform`,`translate(${-(f.width/2)-(f.x-(f.left??0))}, ${-(f.height/2)+(t.padding??0)/1.5-(f.y-(f.top??0))})`),t.intersect=function(e){let n=I.rect(t,e),r=n.x-(t.x??0);if(g!=0&&(Math.abs(r)<(t.width??0)/2||Math.abs(r)==(t.width??0)/2&&Math.abs(n.y-(t.y??0))>(t.height??0)/2-y)){let i=y*y*(1-r*r/(g*g));i>0&&(i=Math.sqrt(i)),i=y-i,e.y-(t.y??0)>0&&(i=-i),n.y+=i}return n},d}e.n(Oe,`cylinder`);async function Y(e,t,n){let{labelStyles:i,nodeStyles:a}=o.i(t);t.labelStyle=i;let{shapeSvg:c,bbox:l}=await h(e,t,v(t)),u=Math.max(l.width+n.labelPaddingX*2,t?.width||0),d=Math.max(l.height+n.labelPaddingY*2,t?.height||0),f=-u/2,p=-d/2,m,{rx:g,ry:y}=t,{cssStyles:b}=t;if(n?.rx&&n.ry&&(g=n.rx,y=n.ry),t.look===`handDrawn`){let e=s.t.svg(c),n=o.a(t,{}),i=g||y?e.path(w(f,p,u,d,g||0),n):e.rectangle(f,p,u,d,n);m=c.insert(()=>i,`:first-child`),m.attr(`class`,`basic label-container`).attr(`style`,r.u(b))}else m=c.insert(`rect`,`:first-child`),m.attr(`class`,`basic label-container`).attr(`style`,a).attr(`rx`,r.u(g)).attr(`ry`,r.u(y)).attr(`x`,f).attr(`y`,p).attr(`width`,u).attr(`height`,d);return _(t,m,t.look===`handDrawn`?void 0:{width:u,height:d}),t.calcIntersect=function(e,t){return I.rect(e,t)},t.intersect=function(e){return I.rect(t,e)},c}e.n(Y,`drawRect`);async function ke(e,t){let{cssClasses:n,labelPaddingX:r,labelPaddingY:i,padding:a,width:c,height:l}=t,u=await Y(e,t,{rx:0,ry:0,classes:n??``,labelPaddingX:r??(a??0)*2,labelPaddingY:i??a??0});if(t.look===`handDrawn`){let e=s.t.svg(u),n=o.a(t,{}),r=u.select(`.basic.label-container > path:nth-child(2)`),i=r.node();if(!i)return u;let a=null;if(i instanceof SVGGraphicsElement)a=i.getBBox();else return u;return u.insert(()=>e.line(a.x,a.y,a.x+a.width,a.y,n),`.basic.label-container g.label`),u.insert(()=>e.line(a.x,a.y+a.height,a.x+a.width,a.y+a.height,n),`.basic.label-container g.label`),r.remove(),u}let d=u.select(`.basic.label-container`),f=(Number(d.attr(`width`))||c)??0,p=(Number(d.attr(`height`))||l)??0;return f>0&&p>0&&d.attr(`stroke-dasharray`,`${f} ${p}`),u}e.n(ke,`datastore`);async function Ae(e,t){let{labelStyles:n,nodeStyles:r}=o.i(t);t.labelStyle=n;let i=t.look===`neo`?16:t.padding??0,a=t.look===`neo`?16:t.padding??0,{shapeSvg:c,bbox:l,label:u}=await h(e,t,v(t)),d=l.width+i,f=l.height+a,p=f*.2,m=-d/2,g=-f/2-p/2,{cssStyles:y}=t,b=s.t.svg(c),x=o.a(t,{});t.look!==`handDrawn`&&(x.roughness=0,x.fillStyle=`solid`);let S=[{x:m,y:g+p},{x:-m,y:g+p},{x:-m,y:-g},{x:m,y:-g},{x:m,y:g},{x:-m,y:g},{x:-m,y:g+p}],C=b.polygon(S.map(e=>[e.x,e.y]),x),w=c.insert(()=>C,`:first-child`);return w.attr(`class`,`basic label-container outer-path`),y&&t.look!==`handDrawn`&&w.selectAll(`path`).attr(`style`,y),r&&t.look!==`handDrawn`&&w.selectAll(`path`).attr(`style`,r),u.attr(`transform`,`translate(${m+(t.padding??0)/2-(l.x-(l.left??0))}, ${g+p+(t.padding??0)/2-(l.y-(l.top??0))})`),_(t,w),t.intersect=function(e){return I.rect(t,e)},c}e.n(Ae,`dividedRectangle`);async function je(e,n){let{labelStyles:i,nodeStyles:a}=o.i(n),c=n.look===`neo`?12:5;n.labelStyle=i;let l=n.padding??0,u=n.look===`neo`?16:l,{shapeSvg:d,bbox:f}=await h(e,n,v(n)),p=(n?.width?n?.width/2:f.width/2)+(u??0),m=p-c,g,{cssStyles:y}=n;if(n.look===`handDrawn`){let e=s.t.svg(d),t=o.a(n,{roughness:.2,strokeWidth:2.5}),i=o.a(n,{roughness:.2,strokeWidth:1.5}),a=e.circle(0,0,p*2,t),c=e.circle(0,0,m*2,i);g=d.insert(`g`,`:first-child`),g.attr(`class`,r.u(n.cssClasses)).attr(`style`,r.u(y)),g.node()?.appendChild(a),g.node()?.appendChild(c)}else{g=d.insert(`g`,`:first-child`);let e=g.insert(`circle`,`:first-child`),t=g.insert(`circle`);g.attr(`class`,`basic label-container`).attr(`style`,a),e.attr(`class`,`outer-circle`).attr(`style`,a).attr(`r`,p).attr(`cx`,0).attr(`cy`,0),t.attr(`class`,`inner-circle`).attr(`style`,a).attr(`r`,m).attr(`cx`,0).attr(`cy`,0)}return _(n,g),n.intersect=function(e){return t.m.info(`DoubleCircle intersect`,n,p,e),I.circle(n,p,e)},d}e.n(je,`doublecircle`);function Me(e,n,{config:{themeVariables:r}}){let{labelStyles:i,nodeStyles:a}=o.i(n);n.label=``,n.labelStyle=i;let c=e.insert(`g`).attr(`class`,v(n)).attr(`id`,n.domId??n.id),{cssStyles:l}=n,u=s.t.svg(c),{nodeBorder:d}=r,f=o.a(n,{fillStyle:`solid`});n.look!==`handDrawn`&&(f.roughness=0);let p=u.circle(0,0,14,f),m=c.insert(()=>p,`:first-child`);return m.selectAll(`path`).attr(`style`,`fill: ${d} !important;`),l&&l.length>0&&n.look!==`handDrawn`&&m.selectAll(`path`).attr(`style`,l),a&&n.look!==`handDrawn`&&m.selectAll(`path`).attr(`style`,a),_(n,m),n.intersect=function(e){return t.m.info(`filledCircle intersect`,n,{radius:7,point:e}),I.circle(n,7,e)},c}e.n(Me,`filledCircle`);var Ne=10,Pe=10;async function Fe(e,n){let{labelStyles:r,nodeStyles:i}=o.i(n);n.labelStyle=r;let a=n.padding??0,c=n.look===`neo`?a*2:a;(n.width||n.height)&&(n.height=n?.height??0,n.height<Ne&&(n.height=Ne),n.width=(n?.width??0)-c-c/2,n.width<Pe&&(n.width=Pe));let{shapeSvg:l,bbox:u,label:d}=await h(e,n,v(n)),f=(n?.width?n?.width:u.width)+(c??0),p=n?.height?n?.height:f+u.height,m=p,g=[{x:0,y:-p},{x:m,y:-p},{x:m/2,y:0}],{cssStyles:b}=n,x=s.t.svg(l),S=o.a(n,{});n.look!==`handDrawn`&&(S.roughness=0,S.fillStyle=`solid`);let C=y(g),w=x.path(C,S),T=l.insert(()=>w,`:first-child`).attr(`transform`,`translate(${-p/2}, ${p/2})`).attr(`class`,`outer-path`);return b&&n.look!==`handDrawn`&&T.selectChildren(`path`).attr(`style`,b),i&&n.look!==`handDrawn`&&T.selectChildren(`path`).attr(`style`,i),n.width=f,n.height=p,_(n,T),d.attr(`transform`,`translate(${-u.width/2-(u.x-(u.left??0))}, ${-p/2+(n.padding??0)/2+(u.y-(u.top??0))})`),n.intersect=function(e){return t.m.info(`Triangle intersect`,n,g,e),I.polygon(n,g,e)},l}e.n(Fe,`flippedTriangle`);async function Ie(e,t){let{labelStyles:n,nodeStyles:r}=o.i(t);t.labelStyle=n;let{shapeSvg:i,bbox:a,label:c}=await h(e,t,v(t)),l=t.padding??12,u=Math.max(a.width+l*2,t.width??0,90),d=a.height+l*2,f=Math.max(Math.min(d*.16,14),8),p=Math.max(d+f,t.height??0),m=p-f,g=Math.max(u*.38,28),y=-p/2,b=[{x:-u/2,y},{x:-u/2+g,y},{x:-u/2+g,y:y+f},{x:u/2,y:y+f},{x:u/2,y:p/2},{x:-u/2,y:p/2}],x=[`M${b[0].x},${b[0].y}`,...b.slice(1).map(e=>`L${e.x},${e.y}`),`Z`].join(` `),{cssStyles:S}=t,C;if(t.look===`handDrawn`){let e=s.t.svg(i).path(x,o.a(t,{}));C=i.insert(()=>e,`:first-child`).attr(`class`,`basic label-container`),S&&C.attr(`style`,S)}else C=i.insert(`path`,`:first-child`).attr(`d`,x).attr(`class`,`basic label-container`).attr(`style`,r);t.look===`handDrawn`?_(t,C):_(t,C,{width:u,height:p});let w=y+f+m/2;return c.attr(`transform`,`translate(${-(a.width/2)-(a.x-(a.left??0))}, ${w-a.height/2-(a.y-(a.top??0))})`),t.intersect=function(e){return I.polygon(t,b,e)},i}e.n(Ie,`folder`);function Le(e,t,{dir:n,config:{state:r,themeVariables:i}}){let{nodeStyles:a}=o.i(t);t.label=``;let c=e.insert(`g`).attr(`class`,v(t)).attr(`id`,t.domId??t.id),{cssStyles:l}=t,u=Math.max(70,t?.width??0),d=Math.max(10,t?.height??0);n===`LR`&&(u=Math.max(10,t?.width??0),d=Math.max(70,t?.height??0));let f=-1*u/2,p=-1*d/2,m=s.t.svg(c),h=o.a(t,{stroke:i.lineColor,fill:i.lineColor});t.look!==`handDrawn`&&(h.roughness=0,h.fillStyle=`solid`);let g=m.rectangle(f,p,u,d,h),y=c.insert(()=>g,`:first-child`);l&&t.look!==`handDrawn`&&y.selectAll(`path`).attr(`style`,l),a&&t.look!==`handDrawn`&&y.selectAll(`path`).attr(`style`,a),_(t,y);let b=r?.padding??0;return t.width&&t.height&&(t.width+=b/2||0,t.height+=b/2||0),t.intersect=function(e){return I.rect(t,e)},c}e.n(Le,`forkJoin`);async function Re(e,n){let{labelStyles:r,nodeStyles:i}=o.i(n);n.labelStyle=r;let a=n.look===`neo`?16:n.padding??0,c=n.look===`neo`?12:n.padding??0;(n.width||n.height)&&(n.height=(n?.height??0)-c*2,n.height<10&&(n.height=10),n.width=(n?.width??0)-a*2,n.width<15&&(n.width=15));let{shapeSvg:l,bbox:u}=await h(e,n,v(n)),d=(n?.width?n?.width:Math.max(15,u.width))+a*2,f=(n?.height?n?.height:Math.max(10,u.height))+c*2,p=f/2,{cssStyles:m}=n,g=s.t.svg(l),b=o.a(n,{});n.look!==`handDrawn`&&(b.roughness=0,b.fillStyle=`solid`);let S=[{x:-d/2,y:-f/2},{x:d/2-p,y:-f/2},...x(-d/2+p,0,p,50,90,270),{x:d/2-p,y:f/2},{x:-d/2,y:f/2}],C=y(S),w=g.path(C,b),T=l.insert(()=>w,`:first-child`);return T.attr(`class`,`basic label-container outer-path`),m&&n.look!==`handDrawn`&&T.selectChildren(`path`).attr(`style`,m),i&&n.look!==`handDrawn`&&T.selectChildren(`path`).attr(`style`,i),_(n,T),n.intersect=function(e){return t.m.info(`Pill intersect`,n,{radius:p,point:e}),I.polygon(n,S,e)},l}e.n(Re,`halfRoundedRectangle`);var ze=e.n((e,t,n,r,i)=>[`M${e+i},${t}`,`L${e+n-i},${t}`,`L${e+n},${t-r/2}`,`L${e+n-i},${t-r}`,`L${e+i},${t-r}`,`L${e},${t-r/2}`,`Z`].join(` `),`createHexagonPathD`);async function Be(e,t){let{labelStyles:n,nodeStyles:r}=o.i(t),i=t.look===`neo`?3.5:4;t.labelStyle=n;let a=t.padding??0,c=t.look===`neo`?70:a,l=t.look===`neo`?32:a;if(t.width||t.height){let e=(t.height??0)/i;t.width=(t?.width??0)-2*e-l,t.height=(t.height??0)-c}let{shapeSvg:u,bbox:d}=await h(e,t,v(t)),f=(t?.height?t?.height:d.height)+c,p=f/i,m=(t?.width?t?.width:d.width)+2*p+l,g=[{x:p,y:0},{x:m-p,y:0},{x:m,y:-f/2},{x:m-p,y:-f},{x:p,y:-f},{x:0,y:-f/2}],y,{cssStyles:b}=t;if(t.look===`handDrawn`){let e=s.t.svg(u),n=o.a(t,{}),r=ze(0,0,m,f,p),i=e.path(r,n);y=u.insert(()=>i,`:first-child`).attr(`transform`,`translate(${-m/2}, ${f/2})`),b&&y.attr(`style`,b)}else y=U(u,m,f,g);return r&&y.attr(`style`,r),t.width=m,t.height=f,_(t,y),t.intersect=function(e){return I.polygon(t,g,e)},u}e.n(Be,`hexagon`);async function Ve(e,n){let{labelStyles:r,nodeStyles:i}=o.i(n);n.label=``,n.labelStyle=r;let{shapeSvg:a}=await h(e,n,v(n)),c=Math.max(30,n?.width??0),l=Math.max(30,n?.height??0),{cssStyles:u}=n,d=s.t.svg(a),f=o.a(n,{});n.look!==`handDrawn`&&(f.roughness=0,f.fillStyle=`solid`);let p=[{x:0,y:0},{x:c,y:0},{x:0,y:l},{x:c,y:l}],m=y(p),g=d.path(m,f),b=a.insert(()=>g,`:first-child`);return b.attr(`class`,`basic label-container outer-path`),u&&n.look!==`handDrawn`&&b.selectChildren(`path`).attr(`style`,u),i&&n.look!==`handDrawn`&&b.selectChildren(`path`).attr(`style`,i),b.attr(`transform`,`translate(${-c/2}, ${-l/2})`),_(n,b),n.intersect=function(e){return t.m.info(`Pill intersect`,n,{points:p}),I.polygon(n,p,e)},a}e.n(Ve,`hourglass`);async function He(e,n,{config:{themeVariables:r,flowchart:a}}){let{labelStyles:c}=o.i(n);n.labelStyle=c;let l=n.assetHeight??48,u=n.assetWidth??48,d=Math.max(l,u),f=a?.wrappingWidth;n.width=Math.max(d,f??0);let{shapeSvg:p,bbox:m,label:g}=await h(e,n,`icon-shape default`),v=n.pos===`t`,y=d,b=d,{nodeBorder:x}=r,{stylesMap:S}=o.t(n),C=-b/2,w=-y/2,T=n.label?8:0,E=s.t.svg(p),D=o.a(n,{stroke:`none`,fill:`none`});n.look!==`handDrawn`&&(D.roughness=0,D.fillStyle=`solid`);let O=E.rectangle(C,w,b,y,D),k=Math.max(b,m.width),A=y+m.height+T,j=E.rectangle(-k/2,-A/2,k,A,{...D,fill:`transparent`,stroke:`none`}),M=p.insert(()=>O,`:first-child`),N=p.insert(()=>j);if(n.icon){let e=p.append(`g`);e.html(`<g>${await i.t(n.icon,{height:d,width:d,fallbackPrefix:``})}</g>`);let t=e.node().getBBox(),r=t.width,a=t.height,o=t.x,s=t.y;e.attr(`transform`,`translate(${-r/2-o},${v?m.height/2+T/2-a/2-s:-m.height/2-T/2-a/2-s})`),e.attr(`style`,`color: ${S.get(`stroke`)??x};`)}return g.attr(`transform`,`translate(${-m.width/2-(m.x-(m.left??0))},${v?-A/2:A/2-m.height})`),M.attr(`transform`,`translate(0,${v?m.height/2+T/2:-m.height/2-T/2})`),_(n,N),n.intersect=function(e){if(t.m.info(`iconSquare intersect`,n,e),!n.label)return I.rect(n,e);let r=n.x??0,i=n.y??0,a=n.height??0,o=[];return o=v?[{x:r-m.width/2,y:i-a/2},{x:r+m.width/2,y:i-a/2},{x:r+m.width/2,y:i-a/2+m.height+T},{x:r+b/2,y:i-a/2+m.height+T},{x:r+b/2,y:i+a/2},{x:r-b/2,y:i+a/2},{x:r-b/2,y:i-a/2+m.height+T},{x:r-m.width/2,y:i-a/2+m.height+T}]:[{x:r-b/2,y:i-a/2},{x:r+b/2,y:i-a/2},{x:r+b/2,y:i-a/2+y},{x:r+m.width/2,y:i-a/2+y},{x:r+m.width/2/2,y:i+a/2},{x:r-m.width/2,y:i+a/2},{x:r-m.width/2,y:i-a/2+y},{x:r-b/2,y:i-a/2+y}],I.polygon(n,o,e)},p}e.n(He,`icon`);async function Ue(e,n,{config:{themeVariables:r,flowchart:a}}){let{labelStyles:c}=o.i(n);n.labelStyle=c;let l=n.assetHeight??48,u=n.assetWidth??48,d=Math.max(l,u),f=a?.wrappingWidth;n.width=Math.max(d,f??0);let{shapeSvg:p,bbox:m,label:g}=await h(e,n,`icon-shape default`),v=n.label?8:0,y=n.pos===`t`,{nodeBorder:b,mainBkg:x}=r,{stylesMap:S}=o.t(n),C=s.t.svg(p),w=o.a(n,{});n.look!==`handDrawn`&&(w.roughness=0,w.fillStyle=`solid`),w.stroke=S.get(`fill`)??x;let T=p.append(`g`);n.icon&&T.html(`<g>${await i.t(n.icon,{height:d,width:d,fallbackPrefix:``})}</g>`);let E=T.node().getBBox(),D=E.width,O=E.height,k=E.x,A=E.y,j=Math.max(D,O)*Math.SQRT2+40,M=C.circle(0,0,j,w),N=Math.max(j,m.width),P=j+m.height+v,F=C.rectangle(-N/2,-P/2,N,P,{...w,fill:`transparent`,stroke:`none`}),ee=p.insert(()=>M,`:first-child`),L=p.insert(()=>F);return T.attr(`transform`,`translate(${-D/2-k},${y?m.height/2+v/2-O/2-A:-m.height/2-v/2-O/2-A})`),T.attr(`style`,`color: ${S.get(`stroke`)??b};`),g.attr(`transform`,`translate(${-m.width/2-(m.x-(m.left??0))},${y?-P/2:P/2-m.height})`),ee.attr(`transform`,`translate(0,${y?m.height/2+v/2:-m.height/2-v/2})`),_(n,L),n.intersect=function(e){return t.m.info(`iconSquare intersect`,n,e),I.rect(n,e)},p}e.n(Ue,`iconCircle`);async function We(e,n,{config:{themeVariables:r,flowchart:a}}){let{labelStyles:c}=o.i(n);n.labelStyle=c;let l=n.assetHeight??48,u=n.assetWidth??48,d=Math.max(l,u),f=a?.wrappingWidth;n.width=Math.max(d,f??0);let{shapeSvg:p,bbox:m,halfPadding:g,label:v}=await h(e,n,`icon-shape default`),y=n.pos===`t`,b=d+g*2,x=d+g*2,{nodeBorder:S,mainBkg:C}=r,{stylesMap:T}=o.t(n),E=-x/2,D=-b/2,O=n.label?8:0,k=s.t.svg(p),A=o.a(n,{});n.look!==`handDrawn`&&(A.roughness=0,A.fillStyle=`solid`),A.stroke=T.get(`fill`)??C;let j=k.path(w(E,D,x,b,5),A),M=Math.max(x,m.width),N=b+m.height+O,P=k.rectangle(-M/2,-N/2,M,N,{...A,fill:`transparent`,stroke:`none`}),F=p.insert(()=>j,`:first-child`).attr(`class`,`icon-shape2`),ee=p.insert(()=>P);if(n.icon){let e=p.append(`g`);e.html(`<g>${await i.t(n.icon,{height:d,width:d,fallbackPrefix:``})}</g>`);let t=e.node().getBBox(),r=t.width,a=t.height,o=t.x,s=t.y;e.attr(`transform`,`translate(${-r/2-o},${y?m.height/2+O/2-a/2-s:-m.height/2-O/2-a/2-s})`),e.attr(`style`,`color: ${T.get(`stroke`)??S};`)}return v.attr(`transform`,`translate(${-m.width/2-(m.x-(m.left??0))},${y?-N/2:N/2-m.height})`),F.attr(`transform`,`translate(0,${y?m.height/2+O/2:-m.height/2-O/2})`),_(n,ee),n.intersect=function(e){if(t.m.info(`iconSquare intersect`,n,e),!n.label)return I.rect(n,e);let r=n.x??0,i=n.y??0,a=n.height??0,o=[];return o=y?[{x:r-m.width/2,y:i-a/2},{x:r+m.width/2,y:i-a/2},{x:r+m.width/2,y:i-a/2+m.height+O},{x:r+x/2,y:i-a/2+m.height+O},{x:r+x/2,y:i+a/2},{x:r-x/2,y:i+a/2},{x:r-x/2,y:i-a/2+m.height+O},{x:r-m.width/2,y:i-a/2+m.height+O}]:[{x:r-x/2,y:i-a/2},{x:r+x/2,y:i-a/2},{x:r+x/2,y:i-a/2+b},{x:r+m.width/2,y:i-a/2+b},{x:r+m.width/2/2,y:i+a/2},{x:r-m.width/2,y:i+a/2},{x:r-m.width/2,y:i-a/2+b},{x:r-x/2,y:i-a/2+b}],I.polygon(n,o,e)},p}e.n(We,`iconRounded`);async function Ge(e,n,{config:{themeVariables:r,flowchart:a}}){let{labelStyles:c}=o.i(n);n.labelStyle=c;let l=n.assetHeight??48,u=n.assetWidth??48,d=Math.max(l,u),f=a?.wrappingWidth;n.width=Math.max(d,f??0);let{shapeSvg:p,bbox:m,halfPadding:g,label:v}=await h(e,n,`icon-shape default`),y=n.pos===`t`,b=d+g*2,x=d+g*2,{nodeBorder:S,mainBkg:C}=r,{stylesMap:T}=o.t(n),E=-x/2,D=-b/2,O=n.label?8:0,k=s.t.svg(p),A=o.a(n,{});n.look!==`handDrawn`&&(A.roughness=0,A.fillStyle=`solid`),A.stroke=T.get(`fill`)??C;let j=k.path(w(E,D,x,b,.1),A),M=Math.max(x,m.width),N=b+m.height+O,P=k.rectangle(-M/2,-N/2,M,N,{...A,fill:`transparent`,stroke:`none`}),F=p.insert(()=>j,`:first-child`),ee=p.insert(()=>P);if(n.icon){let e=p.append(`g`);e.html(`<g>${await i.t(n.icon,{height:d,width:d,fallbackPrefix:``})}</g>`);let t=e.node().getBBox(),r=t.width,a=t.height,o=t.x,s=t.y;e.attr(`transform`,`translate(${-r/2-o},${y?m.height/2+O/2-a/2-s:-m.height/2-O/2-a/2-s})`),e.attr(`style`,`color: ${T.get(`stroke`)??S};`)}return v.attr(`transform`,`translate(${-m.width/2-(m.x-(m.left??0))},${y?-N/2:N/2-m.height})`),F.attr(`transform`,`translate(0,${y?m.height/2+O/2:-m.height/2-O/2})`),_(n,ee),n.intersect=function(e){if(t.m.info(`iconSquare intersect`,n,e),!n.label)return I.rect(n,e);let r=n.x??0,i=n.y??0,a=n.height??0,o=[];return o=y?[{x:r-m.width/2,y:i-a/2},{x:r+m.width/2,y:i-a/2},{x:r+m.width/2,y:i-a/2+m.height+O},{x:r+x/2,y:i-a/2+m.height+O},{x:r+x/2,y:i+a/2},{x:r-x/2,y:i+a/2},{x:r-x/2,y:i-a/2+m.height+O},{x:r-m.width/2,y:i-a/2+m.height+O}]:[{x:r-x/2,y:i-a/2},{x:r+x/2,y:i-a/2},{x:r+x/2,y:i-a/2+b},{x:r+m.width/2,y:i-a/2+b},{x:r+m.width/2/2,y:i+a/2},{x:r-m.width/2,y:i+a/2},{x:r-m.width/2,y:i-a/2+b},{x:r-x/2,y:i-a/2+b}],I.polygon(n,o,e)},p}e.n(Ge,`iconSquare`);async function Ke(e,n,{config:{flowchart:r}}){let i=new Image;i.src=n?.img??``,await i.decode();let a=Number(i.naturalWidth.toString().replace(`px`,``)),c=Number(i.naturalHeight.toString().replace(`px`,``));n.imageAspectRatio=a/c;let{labelStyles:l}=o.i(n);n.labelStyle=l;let u=r?.wrappingWidth;n.defaultWidth=r?.wrappingWidth;let d=Math.max(n.label?u??0:0,n?.assetWidth??a),f=n.constraint===`on`&&n?.assetHeight?n.assetHeight*n.imageAspectRatio:d,p=n.constraint===`on`?f/n.imageAspectRatio:n?.assetHeight??c;n.width=Math.max(f,u??0);let{shapeSvg:m,bbox:g,label:v}=await h(e,n,`image-shape default`),y=n.pos===`t`,b=-f/2,x=-p/2,S=n.label?8:0,C=s.t.svg(m),w=o.a(n,{});n.look!==`handDrawn`&&(w.roughness=0,w.fillStyle=`solid`);let T=C.rectangle(b,x,f,p,w),E=Math.max(f,g.width),D=p+g.height+S,O=C.rectangle(-E/2,-D/2,E,D,{...w,fill:`none`,stroke:`none`}),k=m.insert(()=>T,`:first-child`),A=m.insert(()=>O);if(n.img){let e=m.append(`image`);e.attr(`href`,n.img),e.attr(`width`,f),e.attr(`height`,p),e.attr(`preserveAspectRatio`,`none`),e.attr(`transform`,`translate(${-f/2},${y?D/2-p:-D/2})`)}return v.attr(`transform`,`translate(${-g.width/2-(g.x-(g.left??0))},${y?-p/2-g.height/2-S/2:p/2-g.height/2+S/2})`),k.attr(`transform`,`translate(0,${y?g.height/2+S/2:-g.height/2-S/2})`),_(n,A),n.intersect=function(e){if(t.m.info(`iconSquare intersect`,n,e),!n.label)return I.rect(n,e);let r=n.x??0,i=n.y??0,a=n.height??0,o=[];return o=y?[{x:r-g.width/2,y:i-a/2},{x:r+g.width/2,y:i-a/2},{x:r+g.width/2,y:i-a/2+g.height+S},{x:r+f/2,y:i-a/2+g.height+S},{x:r+f/2,y:i+a/2},{x:r-f/2,y:i+a/2},{x:r-f/2,y:i-a/2+g.height+S},{x:r-g.width/2,y:i-a/2+g.height+S}]:[{x:r-f/2,y:i-a/2},{x:r+f/2,y:i-a/2},{x:r+f/2,y:i-a/2+p},{x:r+g.width/2,y:i-a/2+p},{x:r+g.width/2/2,y:i+a/2},{x:r-g.width/2,y:i+a/2},{x:r-g.width/2,y:i-a/2+p},{x:r-f/2,y:i-a/2+p}],I.polygon(n,o,e)},m}e.n(Ke,`imageSquare`);async function qe(e,t){let{labelStyles:n,nodeStyles:r}=o.i(t);t.labelStyle=n;let i=t.padding??0,a=i,c=t.look===`neo`?i*2:i,{shapeSvg:l,bbox:u}=await h(e,t,v(t)),d=Math.max(u.height+a*2,t.height??0),f=Math.max(u.width+c*2,(t.width??0)-d),p=[{x:0,y:0},{x:f,y:0},{x:f+3*d/6,y:-d},{x:-3*d/6,y:-d}],m,{cssStyles:g}=t;if(t.look===`handDrawn`){let e=s.t.svg(l),n=o.a(t,{}),r=y(p),i=e.path(r,n);m=l.insert(()=>i,`:first-child`).attr(`transform`,`translate(${-f/2}, ${d/2})`),g&&m.attr(`style`,g)}else m=U(l,f,d,p);return r&&m.attr(`style`,r),t.width=f,t.height=d,_(t,m),t.intersect=function(e){return I.polygon(t,p,e)},l}e.n(qe,`inv_trapezoid`);async function Je(e,t){let{shapeSvg:n,bbox:r,label:i}=await h(e,t,`label`),a=n.insert(`rect`,`:first-child`);return a.attr(`width`,.1).attr(`height`,.1),n.attr(`class`,`label edgeLabel`),i.attr(`transform`,`translate(${-(r.width/2)-(r.x-(r.left??0))}, ${-(r.height/2)-(r.y-(r.top??0))})`),_(t,a),t.intersect=function(e){return I.rect(t,e)},n}e.n(Je,`labelRect`);async function Ye(e,t){let{labelStyles:n,nodeStyles:r}=o.i(t);t.labelStyle=n;let i=t.padding??0,a=i,c=t.look===`neo`?i*2:i,{shapeSvg:l,bbox:u}=await h(e,t,v(t)),d=Math.max(u.height+a,t.height??0),f=Math.max(u.width+c,(t.width??0)-d),p=[{x:0,y:0},{x:f+3*d/6,y:0},{x:f,y:-d},{x:-(3*d)/6,y:-d}],m,{cssStyles:g}=t;if(t.look===`handDrawn`){let e=s.t.svg(l),n=o.a(t,{}),r=y(p),i=e.path(r,n);m=l.insert(()=>i,`:first-child`).attr(`transform`,`translate(${-f/2}, ${d/2})`),g&&m.attr(`style`,g)}else m=U(l,f,d,p);return r&&m.attr(`style`,r),t.width=f,t.height=d,_(t,m),t.intersect=function(e){return I.polygon(t,p,e)},l}e.n(Ye,`lean_left`);async function Xe(e,t){let{labelStyles:n,nodeStyles:r}=o.i(t);t.labelStyle=n;let i=t.padding??0,a=i,c=t.look===`neo`?i*2:i,{shapeSvg:l,bbox:u}=await h(e,t,v(t)),d=Math.max(u.height+a,t.height??0),f=Math.max(u.width+c,(t.width??0)-d),p=[{x:-3*d/6,y:0},{x:f,y:0},{x:f+3*d/6,y:-d},{x:0,y:-d}],m,{cssStyles:g}=t;if(t.look===`handDrawn`){let e=s.t.svg(l),n=o.a(t,{}),r=y(p),i=e.path(r,n);m=l.insert(()=>i,`:first-child`).attr(`transform`,`translate(${-f/2}, ${d/2})`),g&&m.attr(`style`,g)}else m=U(l,f,d,p);return r&&m.attr(`style`,r),t.width=f,t.height=d,_(t,m),t.intersect=function(e){return I.polygon(t,p,e)},l}e.n(Xe,`lean_right`);function Ze(e,n){let{labelStyles:r,nodeStyles:i}=o.i(n);n.label=``,n.labelStyle=r;let a=e.insert(`g`).attr(`class`,v(n)).attr(`id`,n.domId??n.id),{cssStyles:c}=n,l=Math.max(35,n?.width??0),u=Math.max(35,n?.height??0),d=[{x:l,y:0},{x:0,y:u+7/2},{x:l-14,y:u+7/2},{x:0,y:2*u},{x:l,y:u-7/2},{x:14,y:u-7/2}],f=s.t.svg(a),p=o.a(n,{});n.look!==`handDrawn`&&(p.roughness=0,p.fillStyle=`solid`);let m=y(d),h=f.path(m,p),g=a.insert(()=>h,`:first-child`);return g.attr(`class`,`outer-path`),c&&n.look!==`handDrawn`&&g.selectAll(`path`).attr(`style`,c),i&&n.look!==`handDrawn`&&g.selectAll(`path`).attr(`style`,i),g.attr(`transform`,`translate(-${l/2},${-u})`),_(n,g),n.intersect=function(e){return t.m.info(`lightningBolt intersect`,n,e),I.polygon(n,d,e)},a}e.n(Ze,`lightningBolt`);var Qe=e.n((e,t,n,r,i,a,o)=>[`M${e},${t+a}`,`a${i},${a} 0,0,0 ${n},0`,`a${i},${a} 0,0,0 ${-n},0`,`l0,${r}`,`a${i},${a} 0,0,0 ${n},0`,`l0,${-r}`,`M${e},${t+a+o}`,`a${i},${a} 0,0,0 ${n},0`].join(` `),`createCylinderPathD`),$e=e.n((e,t,n,r,i,a,o)=>[`M${e},${t+a}`,`M${e+n},${t+a}`,`a${i},${a} 0,0,0 ${-n},0`,`l0,${r}`,`a${i},${a} 0,0,0 ${n},0`,`l0,${-r}`,`M${e},${t+a+o}`,`a${i},${a} 0,0,0 ${n},0`].join(` `),`createOuterCylinderPathD`),et=e.n((e,t,n,r,i,a)=>[`M${e-n/2},${-r/2}`,`a${i},${a} 0,0,0 ${n},0`].join(` `),`createInnerCylinderPathD`),tt=10,nt=10;async function rt(e,t){let{labelStyles:n,nodeStyles:i}=o.i(t);t.labelStyle=n;let a=t.padding??0,c=t.look===`neo`?16:a,l=t.look===`neo`?24:a;if(t.width||t.height){let e=t.width??0;t.width=(t.width??0)-c,t.width<nt&&(t.width=nt);let n=e/2/(2.5+e/50);t.height=(t.height??0)-l-n*3,t.height<tt&&(t.height=tt)}let{shapeSvg:u,bbox:d,label:f}=await h(e,t,v(t)),p=(t?.width?t?.width:d.width)+c*2,m=p/2,g=m/(2.5+p/50),y=(t?.height?t?.height:d.height)+g+l*2,b=y*.1,x,{cssStyles:S}=t;if(t.look===`handDrawn`){let e=s.t.svg(u),n=$e(0,0,p,y,m,g,b),r=et(0,g,p,y,m,g),i=o.a(t,{}),a=e.path(n,i),c=e.path(r,i);u.insert(()=>c,`:first-child`).attr(`class`,`line`),x=u.insert(()=>a,`:first-child`),x.attr(`class`,`basic label-container`),S&&x.attr(`style`,S)}else{let e=Qe(0,0,p,y,m,g,b);x=u.insert(`path`,`:first-child`).attr(`d`,e).attr(`class`,`basic label-container outer-path`).attr(`style`,r.u(S)).attr(`style`,i)}return x.attr(`label-offset-y`,g),x.attr(`transform`,`translate(${-p/2}, ${-(y/2+g)})`),_(t,x),f.attr(`transform`,`translate(${-(d.width/2)-(d.x-(d.left??0))}, ${-(d.height/2)+g-(d.y-(d.top??0))})`),t.intersect=function(e){let n=I.rect(t,e),r=n.x-(t.x??0);if(m!=0&&(Math.abs(r)<(t.width??0)/2||Math.abs(r)==(t.width??0)/2&&Math.abs(n.y-(t.y??0))>(t.height??0)/2-g)){let i=g*g*(1-r*r/(m*m));i>0&&(i=Math.sqrt(i)),i=g-i,e.y-(t.y??0)>0&&(i=-i),n.y+=i}return n},u}e.n(rt,`linedCylinder`);async function it(e,t){let{labelStyles:n,nodeStyles:r}=o.i(t);t.labelStyle=n;let i=t.padding??0,a=t.look===`neo`?16:i,c=t.look===`neo`?12:i;(t.width||t.height)&&(t.width=(t.width??0)*10/11-a*2,t.width<10&&(t.width=10),t.height=(t?.height??0)-c*2,t.height<10&&(t.height=10));let{shapeSvg:l,bbox:u,label:d}=await h(e,t,v(t)),f=(t?.width?t?.width:u.width)+(a??0)*2,p=(t?.height?t?.height:u.height)+(c??0)*2,m=t.look===`neo`?p/4:p/8,g=p+m,{cssStyles:y}=t,x=s.t.svg(l),S=o.a(t,{});t.look!==`handDrawn`&&(S.roughness=0,S.fillStyle=`solid`);let C=[{x:-f/2-f/2*.1,y:-g/2},{x:-f/2-f/2*.1,y:g/2},...b(-f/2-f/2*.1,g/2,f/2+f/2*.1,g/2,m,.8),{x:f/2+f/2*.1,y:-g/2},{x:-f/2-f/2*.1,y:-g/2},{x:-f/2,y:-g/2},{x:-f/2,y:g/2*1.1},{x:-f/2,y:-g/2}],w=x.polygon(C.map(e=>[e.x,e.y]),S),T=l.insert(()=>w,`:first-child`);return T.attr(`class`,`basic label-container outer-path`),y&&t.look!==`handDrawn`&&T.selectAll(`path`).attr(`style`,y),r&&t.look!==`handDrawn`&&T.selectAll(`path`).attr(`style`,r),T.attr(`transform`,`translate(0,${-m/2})`),d.attr(`transform`,`translate(${-f/2+(t.padding??0)+f/2*.1/2-(u.x-(u.left??0))},${-p/2+(t.padding??0)-m/2-(u.y-(u.top??0))})`),_(t,T),t.intersect=function(e){return I.polygon(t,C,e)},l}e.n(it,`linedWaveEdgedRect`);async function at(e,t){let{labelStyles:n,nodeStyles:r}=o.i(t);t.labelStyle=n;let i=t.padding??0,a=t.look===`neo`?16:i,c=t.look===`neo`?12:i,l=t.look===`neo`?10:5;(t.width||t.height)&&(t.width=Math.max((t?.width??0)-a*2-2*l,10),t.height=Math.max((t?.height??0)-c*2-2*l,10));let{shapeSvg:u,bbox:d,label:f}=await h(e,t,v(t)),p=(t?.width?t?.width:d.width)+a*2+2*l,m=(t?.height?t?.height:d.height)+c*2+2*l,g=p-2*l,b=m-2*l,x=-g/2,C=-b/2,{cssStyles:w}=t,T=s.t.svg(u),E=o.a(t,{}),D=[{x:x-l,y:C+l},{x:x-l,y:C+b+l},{x:x+g-l,y:C+b+l},{x:x+g-l,y:C+b},{x:x+g,y:C+b},{x:x+g,y:C+b-l},{x:x+g+l,y:C+b-l},{x:x+g+l,y:C-l},{x:x+l,y:C-l},{x:x+l,y:C},{x,y:C},{x,y:C+l}],O=[{x,y:C+l},{x:x+g-l,y:C+l},{x:x+g-l,y:C+b},{x:x+g,y:C+b},{x:x+g,y:C},{x,y:C}];t.look!==`handDrawn`&&(E.roughness=0,E.fillStyle=`solid`);let k=y(D),A=T.path(k,E),j=y(O),M=T.path(j,E);t.look!==`handDrawn`&&(A=S(A),M=S(M));let N=u.insert(`g`,`:first-child`);return N.insert(()=>A),N.insert(()=>M),N.attr(`class`,`basic label-container outer-path`),w&&t.look!==`handDrawn`&&N.selectAll(`path`).attr(`style`,w),r&&t.look!==`handDrawn`&&N.selectAll(`path`).attr(`style`,r),f.attr(`transform`,`translate(${-(d.width/2)-l-(d.x-(d.left??0))}, ${-(d.height/2)+l-(d.y-(d.top??0))})`),_(t,N),t.intersect=function(e){return I.polygon(t,D,e)},u}e.n(at,`multiRect`);async function ot(e,t){let{labelStyles:n,nodeStyles:r}=o.i(t);t.labelStyle=n;let{shapeSvg:i,bbox:a,label:c}=await h(e,t,v(t)),l=t.padding??0,u=t.look===`neo`?16:l,d=t.look===`neo`?12:l,f=!0;(t.width||t.height)&&(f=!1,t.width=(t?.width??0)-u*2,t.height=(t?.height??0)-d*3);let p=Math.max(a.width,t?.width??0)+u*2,m=Math.max(a.height,t?.height??0)+d*3,g=t.look===`neo`?m/4:m/8,x=m+(f?g/2:-g/2),S=-p/2,C=-x/2,{cssStyles:w}=t,T=b(S-10,C+x+10,S+p-10,C+x+10,g,.8),E=T?.[T.length-1],D=[{x:S-10,y:C+10},{x:S-10,y:C+x+10},...T,{x:S+p-10,y:E.y-10},{x:S+p,y:E.y-10},{x:S+p,y:E.y-20},{x:S+p+10,y:E.y-20},{x:S+p+10,y:C-10},{x:S+10,y:C-10},{x:S+10,y:C},{x:S,y:C},{x:S,y:C+10}],O=[{x:S,y:C+10},{x:S+p-10,y:C+10},{x:S+p-10,y:E.y-10},{x:S+p,y:E.y-10},{x:S+p,y:C},{x:S,y:C}],k=s.t.svg(i),A=o.a(t,{});t.look!==`handDrawn`&&(A.roughness=0,A.fillStyle=`solid`);let j=y(D),M=k.path(j,A),N=y(O),P=k.path(N,A),F=i.insert(()=>M,`:first-child`);return F.insert(()=>P),F.attr(`class`,`basic label-container outer-path`),w&&t.look!==`handDrawn`&&F.selectAll(`path`).attr(`style`,w),r&&t.look!==`handDrawn`&&F.selectAll(`path`).attr(`style`,r),F.attr(`transform`,`translate(0,${-g/2})`),c.attr(`transform`,`translate(${-(a.width/2)-10-(a.x-(a.left??0))}, ${-(a.height/2)+10-g/2-(a.y-(a.top??0))})`),_(t,F),t.intersect=function(e){return I.polygon(t,D,e)},i}e.n(ot,`multiWaveEdgedRectangle`);async function st(e,t,{config:{themeVariables:r}}){let{labelStyles:i,nodeStyles:a}=o.i(t);t.labelStyle=i,t.useHtmlLabels||n.T(n.b())||(t.centerLabel=!0);let{shapeSvg:c,bbox:l,label:u}=await h(e,t,v(t)),d=Math.max(l.width+(t.padding??0)*2,t?.width??0),f=Math.max(l.height+(t.padding??0)*2,t?.height??0),p=-d/2,m=-f/2,{cssStyles:g}=t,y=s.t.svg(c),b=o.a(t,{fill:r.noteBkgColor,stroke:r.noteBorderColor});t.look!==`handDrawn`&&(b.roughness=0,b.fillStyle=`solid`);let x=y.rectangle(p,m,d,f,b),S=c.insert(()=>x,`:first-child`);return S.attr(`class`,`basic label-container outer-path`),u.attr(`class`,`label noteLabel`),g&&t.look!==`handDrawn`&&S.selectAll(`path`).attr(`style`,g),a&&t.look!==`handDrawn`&&S.selectAll(`path`).attr(`style`,a),u.attr(`transform`,`translate(${-l.width/2-(l.x-(l.left??0))}, ${-(l.height/2)-(l.y-(l.top??0))})`),_(t,S),t.intersect=function(e){return I.rect(t,e)},c}e.n(st,`note`);var ct=e.n((e,t,n)=>[`M${e+n/2},${t}`,`L${e+n},${t-n/2}`,`L${e+n/2},${t-n}`,`L${e},${t-n/2}`,`Z`].join(` `),`createDecisionBoxPathD`);async function lt(e,t){let{labelStyles:n,nodeStyles:r}=o.i(t);t.labelStyle=n;let{shapeSvg:i,bbox:a}=await h(e,t,v(t)),c=a.width+(t.padding??0)+(a.height+(t.padding??0)),l=.5,u=[{x:c/2,y:0},{x:c,y:-c/2},{x:c/2,y:-c},{x:0,y:-c/2}],d,{cssStyles:f}=t;if(t.look===`handDrawn`){let e=s.t.svg(i),n=o.a(t,{}),r=ct(0,0,c),a=e.path(r,n);d=i.insert(()=>a,`:first-child`).attr(`transform`,`translate(${-c/2+l}, ${c/2})`),f&&d.attr(`style`,f)}else d=U(i,c,c,u),d.attr(`transform`,`translate(${-c/2+l}, ${c/2})`);return r&&d.attr(`style`,r),_(t,d),t.calcIntersect=function(e,t){let n=e.width,r=[{x:n/2,y:0},{x:n,y:-n/2},{x:n/2,y:-n},{x:0,y:-n/2}],i=I.polygon(e,r,t);return{x:i.x-.5,y:i.y-.5}},t.intersect=function(e){return this.calcIntersect(t,e)},i}e.n(lt,`question`);async function ut(e,t){let{labelStyles:n,nodeStyles:r}=o.i(t);t.labelStyle=n;let i=t.padding??0,a=t.look===`neo`?21:i??0,c=t.look===`neo`?12:i??0,{shapeSvg:l,bbox:u,label:d}=await h(e,t,v(t)),f=u.width+(t.look===`neo`?a*2:a),p=Math.max(u.height+(t.look===`neo`?c*2:c),t.height??0),m=p/4,g=-Math.max(f,(t.width??0)-m)/2,b=-p/2,x=b/2,S=[{x:g+x,y:b},{x:g,y:0},{x:g+x,y:-b},{x:-g,y:-b},{x:-g,y:b}],{cssStyles:C}=t,w=s.t.svg(l),T=o.a(t,{});t.look!==`handDrawn`&&(T.roughness=0,T.fillStyle=`solid`);let E=y(S),D=w.path(E,T),O=l.insert(()=>D,`:first-child`);return O.attr(`class`,`basic label-container outer-path`),C&&t.look!==`handDrawn`&&O.selectAll(`path`).attr(`style`,C),r&&t.look!==`handDrawn`&&O.selectAll(`path`).attr(`style`,r),O.attr(`transform`,`translate(${-x/2},0)`),d.attr(`transform`,`translate(${-x/2-u.width/2-(u.x-(u.left??0))}, ${-(u.height/2)-(u.y-(u.top??0))})`),_(t,O),t.intersect=function(e){return I.polygon(t,S,e)},l}e.n(ut,`rect_left_inv_arrow`);async function dt(e,r){let{labelStyles:i,nodeStyles:a}=o.i(r);r.labelStyle=i;let c;c=r.cssClasses?`node `+r.cssClasses:`node default`;let l=e.insert(`g`).attr(`class`,c).attr(`id`,r.domId||r.id),u=l.insert(`g`),d=l.insert(`g`).attr(`class`,`label`).attr(`style`,a),f=r.description,p=r.label,m=await T(d,p,r.labelStyle,!0,!0),h={width:0,height:0};if(n.T(n.x())){let e=m.children[0],n=t.p(m);h=e.getBoundingClientRect(),n.attr(`width`,h.width),n.attr(`height`,h.height)}t.m.info(`Text 2`,f);let g=f||[],v=m.getBBox(),y=await T(d,Array.isArray(g)?g.join(`<br/>`):g,r.labelStyle,!0,!0),b=y.children[0],x=t.p(y);h=b.getBoundingClientRect(),x.attr(`width`,h.width),x.attr(`height`,h.height);let S=(r.padding||0)/2;t.p(y).attr(`transform`,`translate( `+(h.width>v.width?0:(v.width-h.width)/2)+`, `+(v.height+S+5)+`)`),t.p(m).attr(`transform`,`translate( `+(h.width<v.width?0:-(v.width-h.width)/2)+`, 0)`),h=d.node().getBBox(),d.attr(`transform`,`translate(`+-h.width/2+`, `+(-h.height/2-S+3)+`)`);let C=h.width+(r.padding||0),E=h.height+(r.padding||0),D=-h.width/2-S,O=-h.height/2-S,k,A;if(r.look===`handDrawn`){let e=s.t.svg(l),n=o.a(r,{}),i=e.path(w(D,O,C,E,r.rx||0),n),a=e.line(-h.width/2-S,-h.height/2-S+v.height+S,h.width/2+S,-h.height/2-S+v.height+S,n);A=l.insert(()=>(t.m.debug(`Rough node insert CXC`,i),a),`:first-child`),k=l.insert(()=>(t.m.debug(`Rough node insert CXC`,i),i),`:first-child`)}else k=u.insert(`rect`,`:first-child`),A=u.insert(`line`),k.attr(`class`,`outer title-state`).attr(`style`,a).attr(`x`,-h.width/2-S).attr(`y`,-h.height/2-S).attr(`width`,h.width+(r.padding||0)).attr(`height`,h.height+(r.padding||0)),A.attr(`class`,`divider`).attr(`x1`,-h.width/2-S).attr(`x2`,h.width/2+S).attr(`y1`,-h.height/2-S+v.height+S).attr(`y2`,-h.height/2-S+v.height+S);return _(r,k),r.intersect=function(e){return I.rect(r,e)},l}e.n(dt,`rectWithTitle`);async function ft(e,t,{config:{themeVariables:n}}){let r=n?.radius??5;return Y(e,t,{rx:r,ry:r,classes:``,labelPaddingX:(t?.padding??0)*1,labelPaddingY:(t?.padding??0)*1})}e.n(ft,`roundedRect`);var X=8;async function pt(e,t){let{labelStyles:n,nodeStyles:i}=o.i(t);t.labelStyle=n;let a=t.look===`neo`?16:t.padding??0,c=t.look===`neo`?12:t.padding??0,{shapeSvg:l,bbox:u,label:d}=await h(e,t,v(t)),f=(t?.width??u.width)+a*2+(t.look===`neo`?X:X*2),p=(t?.height??u.height)+c*2,m=f-X,g=p,y=X-f/2,b=-p/2,{cssStyles:x}=t,S=s.t.svg(l),C=o.a(t,{});t.look!==`handDrawn`&&(C.roughness=0,C.fillStyle=`solid`);let w=[{x:y,y:b},{x:y+m,y:b},{x:y+m,y:b+g},{x:y-X,y:b+g},{x:y-X,y:b},{x:y,y:b},{x:y,y:b+g}],T=S.polygon(w.map(e=>[e.x,e.y]),C),E=l.insert(()=>T,`:first-child`);return E.attr(`class`,`basic label-container outer-path`).attr(`style`,r.u(x)),i&&t.look!==`handDrawn`&&E.selectAll(`path`).attr(`style`,i),x&&t.look!==`handDrawn`&&E.selectAll(`path`).attr(`style`,i),d.attr(`transform`,`translate(${X/2-u.width/2-(u.x-(u.left??0))}, ${-(u.height/2)-(u.y-(u.top??0))})`),_(t,E),t.intersect=function(e){return I.rect(t,e)},l}e.n(pt,`shadedProcess`);async function mt(e,t){let{labelStyles:n,nodeStyles:r}=o.i(t);t.labelStyle=n;let i=t.padding??0,a=t.look===`neo`?16:i,c=t.look===`neo`?12:i;(t.width||t.height)&&(t.width=Math.max((t?.width??0)-a*2,10),t.height=Math.max((t?.height??0)/1.5-c*2,10));let{shapeSvg:l,bbox:u,label:d}=await h(e,t,v(t)),f=(t?.width?t?.width:u.width)+a*2,p=((t?.height?t?.height:u.height)+c*2)*1.5,m=f,g=p/1.5,b=-m/2,x=-g/2,{cssStyles:S}=t,C=s.t.svg(l),w=o.a(t,{});t.look!==`handDrawn`&&(w.roughness=0,w.fillStyle=`solid`);let T=[{x:b,y:x},{x:b,y:x+g},{x:b+m,y:x+g},{x:b+m,y:x-g/2}],E=y(T),D=C.path(E,w),O=l.insert(()=>D,`:first-child`);return O.attr(`class`,`basic label-container outer-path`),S&&t.look!==`handDrawn`&&O.selectChildren(`path`).attr(`style`,S),r&&t.look!==`handDrawn`&&O.selectChildren(`path`).attr(`style`,r),O.attr(`transform`,`translate(0, ${g/4})`),d.attr(`transform`,`translate(${-m/2+(t.padding??0)-(u.x-(u.left??0))}, ${-g/4+(t.padding??0)-(u.y-(u.top??0))})`),_(t,O),t.intersect=function(e){return I.polygon(t,T,e)},l}e.n(mt,`slopedRect`);async function ht(e,t){let n=t.padding??0,r=t.look===`neo`?16:n*2,i=t.look===`neo`?12:n;return Y(e,t,{rx:0,ry:0,classes:``,labelPaddingX:t.labelPaddingX??r,labelPaddingY:i})}e.n(ht,`squareRect`);async function gt(e,t){let{labelStyles:n,nodeStyles:r}=o.i(t);t.labelStyle=n;let i=t.padding??0,a=t.look===`neo`?20:i,c=t.look===`neo`?12:i,{shapeSvg:l,bbox:u}=await h(e,t,v(t)),d=u.height+(t.look===`neo`?c*2:c),f=u.width+d/4+(t.look===`neo`?a*2:a),p=d/2,{cssStyles:m}=t,g=s.t.svg(l),b=o.a(t,{});t.look!==`handDrawn`&&(b.roughness=0,b.fillStyle=`solid`);let S=[{x:-f/2+p,y:-d/2},{x:f/2-p,y:-d/2},...x(-f/2+p,0,p,50,90,270),{x:f/2-p,y:d/2},...x(f/2-p,0,p,50,270,450)],C=y(S),w=g.path(C,b),T=l.insert(()=>w,`:first-child`);return T.attr(`class`,`basic label-container outer-path`),m&&t.look!==`handDrawn`&&T.selectChildren(`path`).attr(`style`,m),r&&t.look!==`handDrawn`&&T.selectChildren(`path`).attr(`style`,r),_(t,T),t.intersect=function(e){return I.polygon(t,S,e)},l}e.n(gt,`stadium`);async function _t(e,t){return Y(e,t,{rx:t.look===`neo`?3:5,ry:t.look===`neo`?3:5,classes:`flowchart-node`})}e.n(_t,`state`);function vt(e,t,{config:{themeVariables:n}}){let{labelStyles:r,nodeStyles:i}=o.i(t);t.labelStyle=r;let{cssStyles:a}=t,{lineColor:c,stateBorder:l,nodeBorder:u,nodeShadow:d}=n;(t.width||t.height)&&((t.width??0)<14&&(t.width=14),(t.height??0)<14&&(t.height=14)),t.width||=14,t.height||=14;let f=e.insert(`g`).attr(`class`,`node default`).attr(`id`,t.domId??t.id),p=s.t.svg(f),m=o.a(t,{});t.look!==`handDrawn`&&(m.roughness=0,m.fillStyle=`solid`);let h=p.circle(0,0,t.width,{...m,stroke:c,strokeWidth:2}),g=l??u,v=(t.width??0)*5/14,y=p.circle(0,0,v,{...m,fill:g,stroke:g,strokeWidth:2,fillStyle:`solid`}),b=f.insert(()=>h,`:first-child`);if(b.insert(()=>y),t.look!==`handDrawn`&&b.attr(`class`,`outer-path`),a&&b.selectAll(`path`).attr(`style`,a),i&&b.selectAll(`path`).attr(`style`,i),t.width<25&&d&&t.look!==`handDrawn`){let t=e.node()?.ownerSVGElement?.id??``,n=t?`${t}-drop-shadow-small`:`drop-shadow-small`;b.attr(`style`,`filter:url(#${n})`)}return _(t,b),t.intersect=function(e){return I.circle(t,(t.width??0)/2,e)},f}e.n(vt,`stateEnd`);function yt(e,t,{config:{themeVariables:n}}){let{lineColor:r,nodeShadow:i}=n;(t.width||t.height)&&((t.width??0)<14&&(t.width=14),(t.height??0)<14&&(t.height=14)),t.width||=14,t.height||=14;let a=e.insert(`g`).attr(`class`,`node default`).attr(`id`,t.domId||t.id),c;if(t.look===`handDrawn`){let e=s.t.svg(a).circle(0,0,t.width,o.r(r));c=a.insert(()=>e),c.attr(`class`,`state-start`).attr(`r`,(t.width??7)/2).attr(`width`,t.width??14).attr(`height`,t.height??14)}else c=a.insert(`circle`,`:first-child`),c.attr(`class`,`state-start`).attr(`r`,(t.width??7)/2).attr(`width`,t.width??14).attr(`height`,t.height??14);if(t.width<25&&i&&t.look!==`handDrawn`){let t=e.node()?.ownerSVGElement?.id??``,n=t?`${t}-drop-shadow-small`:`drop-shadow-small`;c.attr(`style`,`filter:url(#${n})`)}return _(t,c),t.intersect=function(e){return I.circle(t,(t.width??7)/2,e)},a}e.n(yt,`stateStart`);var bt=8;async function xt(e,t){let{labelStyles:n,nodeStyles:i}=o.i(t);t.labelStyle=n;let a=t?.padding??8,c=t.look===`neo`?28:a,l=t.look===`neo`?12:a,{shapeSvg:u,bbox:d}=await h(e,t,v(t)),f=Math.max(d.width+2*bt+c,t.width??0),p=Math.max(d.height+l,t.height??0),m=f-2*bt,g=p,y=-f/2,b=-p/2,x=[{x:0,y:0},{x:m,y:0},{x:m,y:-g},{x:0,y:-g},{x:0,y:0},{x:-8,y:0},{x:m+8,y:0},{x:m+8,y:-g},{x:-8,y:-g},{x:-8,y:0}];if(t.look===`handDrawn`){let e=s.t.svg(u),n=o.a(t,{}),i=e.rectangle(y,b,m+16,g,n),a=e.line(y+bt,b,y+bt,b+g,n),c=e.line(y+bt+m,b,y+bt+m,b+g,n);u.insert(()=>a,`:first-child`),u.insert(()=>c,`:first-child`);let l=u.insert(()=>i,`:first-child`),{cssStyles:d}=t;l.attr(`class`,`basic label-container`).attr(`style`,r.u(d)),_(t,l)}else{let e=U(u,m,g,x);i&&e.attr(`style`,i),_(t,e)}return t.intersect=function(e){return I.polygon(t,x,e)},u}e.n(xt,`subroutine`);var St=.2;async function Ct(e,t){let{labelStyles:n,nodeStyles:r}=o.i(t);t.labelStyle=n;let i=t.padding??0,a=t.look===`neo`?16:i,c=t.look===`neo`?12:i;(t.width||t.height)&&(t.height=Math.max((t?.height??0)-c*2,10),t.width=Math.max((t?.width??0)-a*2-St*(t.height+c*2),10));let{shapeSvg:l,bbox:u}=await h(e,t,v(t)),d=(t?.height?t?.height:u.height)+c*2,f=St*d,p=St*d,m=(t?.width?t?.width:u.width)+a*2+f-f,g=d,b=-m/2,x=-g/2,{cssStyles:S}=t,C=s.t.svg(l),w=o.a(t,{}),T=[{x:b-f/2,y:x},{x:b+m+f/2,y:x},{x:b+m+f/2,y:x+g},{x:b-f/2,y:x+g}],E=[{x:b+m-f/2,y:x+g},{x:b+m+f/2,y:x+g},{x:b+m+f/2,y:x+g-p}];t.look!==`handDrawn`&&(w.roughness=0,w.fillStyle=`solid`);let D=y(T),O=C.path(D,w),k=y(E),A=C.path(k,{...w,fillStyle:`solid`}),j=l.insert(()=>A,`:first-child`);return j.insert(()=>O,`:first-child`),j.attr(`class`,`basic label-container outer-path`),S&&t.look!==`handDrawn`&&j.selectAll(`path`).attr(`style`,S),r&&t.look!==`handDrawn`&&j.selectAll(`path`).attr(`style`,r),_(t,j),t.intersect=function(e){return I.polygon(t,T,e)},l}e.n(Ct,`taggedRect`);async function wt(e,t){let{labelStyles:n,nodeStyles:r}=o.i(t);t.labelStyle=n;let{shapeSvg:i,bbox:a,label:c}=await h(e,t,v(t)),l=Math.max(a.width+(t.padding??0)*2,t?.width??0),u=Math.max(a.height+(t.padding??0)*2,t?.height??0),d=u/8,f=.2*l,p=.2*u,m=u+d,{cssStyles:g}=t,x=s.t.svg(i),S=o.a(t,{});t.look!==`handDrawn`&&(S.roughness=0,S.fillStyle=`solid`);let C=[{x:-l/2-l/2*.1,y:m/2},...b(-l/2-l/2*.1,m/2,l/2+l/2*.1,m/2,d,.8),{x:l/2+l/2*.1,y:-m/2},{x:-l/2-l/2*.1,y:-m/2}],w=-l/2+l/2*.1,T=-m/2-p*.4,E=[{x:w+l-f,y:(T+u)*1.3},{x:w+l,y:T+u-p},{x:w+l,y:(T+u)*.9},...b(w+l,(T+u)*1.25,w+l-f,(T+u)*1.3,-u*.02,.5)],D=y(C),O=x.path(D,S),k=y(E),A=x.path(k,{...S,fillStyle:`solid`}),j=i.insert(()=>A,`:first-child`);return j.insert(()=>O,`:first-child`),j.attr(`class`,`basic label-container outer-path`),g&&t.look!==`handDrawn`&&j.selectAll(`path`).attr(`style`,g),r&&t.look!==`handDrawn`&&j.selectAll(`path`).attr(`style`,r),j.attr(`transform`,`translate(0,${-d/2})`),c.attr(`transform`,`translate(${-l/2+(t.padding??0)-(a.x-(a.left??0))},${-u/2+(t.padding??0)-d/2-(a.y-(a.top??0))})`),_(t,j),t.intersect=function(e){return I.polygon(t,C,e)},i}e.n(wt,`taggedWaveEdgedRectangle`);async function Tt(e,t){let{labelStyles:n,nodeStyles:r}=o.i(t);t.labelStyle=n;let{shapeSvg:i,bbox:a}=await h(e,t,v(t)),s=Math.max(a.width+(t.padding??0),t?.width||0),c=Math.max(a.height+(t.padding??0),t?.height||0),l=-s/2,u=-c/2,d=i.insert(`rect`,`:first-child`);return d.attr(`class`,`text`).attr(`style`,r).attr(`rx`,0).attr(`ry`,0).attr(`x`,l).attr(`y`,u).attr(`width`,s).attr(`height`,c),_(t,d),t.intersect=function(e){return I.rect(t,e)},i}e.n(Tt,`text`);var Et=e.n((e,t,n,r,i,a)=>`M${e},${t}
3
+ a${i},${a} 0,0,1 0,${-r}
4
+ l${n},0
5
+ a${i},${a} 0,0,1 0,${r}
6
+ M${n},${-r}
7
+ a${i},${a} 0,0,0 0,${r}
8
+ l${-n},0`,`createCylinderPathD`),Dt=e.n((e,t,n,r,i,a)=>[`M${e},${t}`,`M${e+n},${t}`,`a${i},${a} 0,0,0 0,${-r}`,`l${-n},0`,`a${i},${a} 0,0,0 0,${r}`,`l${n},0`].join(` `),`createOuterCylinderPathD`),Ot=e.n((e,t,n,r,i,a)=>[`M${e+n/2},${-r/2}`,`a${i},${a} 0,0,0 0,${r}`].join(` `),`createInnerCylinderPathD`),kt=5,At=10;async function jt(e,t){let{labelStyles:n,nodeStyles:i}=o.i(t);t.labelStyle=n;let a=t.padding??0,c=t.look===`neo`?12:a/2,l=t.height??0;if(t.height&&(t.height-=c,t.height<kt&&(t.height=kt)),t.width){let e=l/2/(2.5+l/50);t.width=t.width-c-e*3,t.width<At&&(t.width=At)}let{shapeSvg:u,bbox:d,label:f}=await h(e,t,v(t)),p=Math.max(t.height??0,d.height)+c,m=p/2,g=m/(2.5+p/50),y=Math.max(t.width??0,d.width)+g+c,{cssStyles:b}=t,x;if(t.look===`handDrawn`){let e=s.t.svg(u),n=Dt(0,0,y,p,g,m),r=Ot(0,0,y,p,g,m),i=e.path(n,o.a(t,{})),a=e.path(r,o.a(t,{fill:`none`}));x=u.insert(()=>a,`:first-child`),x=u.insert(()=>i,`:first-child`),x.attr(`class`,`basic label-container`),b&&x.attr(`style`,b)}else{let e=Et(0,0,y,p,g,m);x=u.insert(`path`,`:first-child`).attr(`d`,e).attr(`class`,`basic label-container`).attr(`style`,r.u(b)).attr(`style`,i),x.attr(`class`,`basic label-container outer-path`),b&&x.selectAll(`path`).attr(`style`,b),i&&x.selectAll(`path`).attr(`style`,i)}return x.attr(`label-offset-x`,g),x.attr(`transform`,`translate(${-y/2}, ${p/2} )`),f.attr(`transform`,`translate(${-(d.width/2)-g-(d.x-(d.left??0))}, ${-(d.height/2)-(d.y-(d.top??0))})`),_(t,x),t.intersect=function(e){let n=I.rect(t,e),r=n.y-(t.y??0);if(m!=0&&(Math.abs(r)<(t.height??0)/2||Math.abs(r)==(t.height??0)/2&&Math.abs(n.x-(t.x??0))>(t.width??0)/2-g)){let i=g*g*(1-r*r/(m*m));i!=0&&(i=Math.sqrt(Math.abs(i))),i=g-i,e.x-(t.x??0)>0&&(i=-i),n.x+=i}return n},u}e.n(jt,`tiltedCylinder`);async function Mt(e,t){let{labelStyles:n,nodeStyles:r}=o.i(t);t.labelStyle=n;let i=t.padding??0,a=(t.look,i),c=t.look===`neo`?i*2:i,{shapeSvg:l,bbox:u}=await h(e,t,v(t)),d=Math.max(u.height+a,t.height??0),f=Math.max(u.width+c,(t.width??0)-d),p=[{x:-3*d/6,y:0},{x:f+3*d/6,y:0},{x:f,y:-d},{x:0,y:-d}],m,{cssStyles:g}=t;if(t.look===`handDrawn`){let e=s.t.svg(l),n=o.a(t,{}),r=y(p),i=e.path(r,n);m=l.insert(()=>i,`:first-child`).attr(`transform`,`translate(${-f/2}, ${d/2})`),g&&m.attr(`style`,g)}else m=U(l,f,d,p);return r&&m.attr(`style`,r),t.width=f,t.height=d,_(t,m),t.intersect=function(e){return I.polygon(t,p,e)},l}e.n(Mt,`trapezoid`);async function Nt(e,t){let{labelStyles:n,nodeStyles:r}=o.i(t);t.labelStyle=n;let i=t.padding??0,a=t.look===`neo`?16:i,c=t.look===`neo`?12:i;(t.width||t.height)&&(t.height=(t.height??0)-c*2,t.height<5&&(t.height=5),t.width=(t.width??0)-a*2,t.width<15&&(t.width=15));let{shapeSvg:l,bbox:u}=await h(e,t,v(t)),d=(t?.width?t?.width:u.width)+a*2,f=(t?.height?t?.height:u.height)+c*2,{cssStyles:p}=t,m=s.t.svg(l),g=o.a(t,{});t.look!==`handDrawn`&&(g.roughness=0,g.fillStyle=`solid`);let b=[{x:-d/2*.8,y:-f/2},{x:d/2*.8,y:-f/2},{x:d/2,y:-f/2*.6},{x:d/2,y:f/2},{x:-d/2,y:f/2},{x:-d/2,y:-f/2*.6}],x=y(b),S=m.path(x,g),C=l.insert(()=>S,`:first-child`);return C.attr(`class`,`basic label-container outer-path`),p&&t.look!==`handDrawn`&&C.selectChildren(`path`).attr(`style`,p),r&&t.look!==`handDrawn`&&C.selectChildren(`path`).attr(`style`,r),_(t,C),t.intersect=function(e){return I.polygon(t,b,e)},l}e.n(Nt,`trapezoidalPentagon`);var Pt=10,Ft=10;async function It(e,r){let{labelStyles:i,nodeStyles:a}=o.i(r);r.labelStyle=i;let c=r.padding??0,l=r.look===`neo`?c*2:c;(r.width||r.height)&&(r.width=((r?.width??0)-l)/2,r.width<Ft&&(r.width=Ft),r.height=r?.height??0,r.height<Pt&&(r.height=Pt));let{shapeSvg:u,bbox:d,label:f}=await h(e,r,v(r)),p=n.g(n.x().flowchart?.htmlLabels),m=(r?.width?r?.width:d.width)+l,g=r?.height?r?.height:m+d.height,b=g,x=[{x:0,y:0},{x:b,y:0},{x:b/2,y:-g}],{cssStyles:S}=r,C=s.t.svg(u),w=o.a(r,{});r.look!==`handDrawn`&&(w.roughness=0,w.fillStyle=`solid`);let T=y(x),E=C.path(T,w),D=u.insert(()=>E,`:first-child`).attr(`transform`,`translate(${-g/2}, ${g/2})`).attr(`class`,`outer-path`);return S&&r.look!==`handDrawn`&&D.selectChildren(`path`).attr(`style`,S),a&&r.look!==`handDrawn`&&D.selectChildren(`path`).attr(`style`,a),r.width=m,r.height=g,_(r,D),f.attr(`transform`,`translate(${-d.width/2-(d.x-(d.left??0))}, ${g/2-(d.height+(r.padding??0)/(p?2:1)-(d.y-(d.top??0)))})`),r.intersect=function(e){return t.m.info(`Triangle intersect`,r,x,e),I.polygon(r,x,e)},u}e.n(It,`triangle`);async function Lt(e,t){let{labelStyles:n,nodeStyles:r}=o.i(t);t.labelStyle=n;let i=t.padding??0,a=t.look===`neo`?16:i,c=t.look===`neo`?12:i,l=!0;(t.width||t.height)&&(l=!1,t.width=(t?.width??0)-a*2,t.width<10&&(t.width=10),t.height=(t?.height??0)-c*2,t.height<10&&(t.height=10));let{shapeSvg:u,bbox:d,label:f}=await h(e,t,v(t)),p=(t?.width?t?.width:d.width)+(a??0)*2,m=(t?.height?t?.height:d.height)+(c??0)*2,g=t.look===`neo`?m/4:m/8,x=m+(l?g:-g),{cssStyles:S}=t,C=14-p,w=C>0?C/2:0,T=s.t.svg(u),E=o.a(t,{});t.look!==`handDrawn`&&(E.roughness=0,E.fillStyle=`solid`);let D=[{x:-p/2-w,y:x/2},...b(-p/2-w,x/2,p/2+w,x/2,g,.8),{x:p/2+w,y:-x/2},{x:-p/2-w,y:-x/2}],O=y(D),k=T.path(O,E),A=u.insert(()=>k,`:first-child`);return A.attr(`class`,`basic label-container outer-path`),S&&t.look!==`handDrawn`&&A.selectAll(`path`).attr(`style`,S),r&&t.look!==`handDrawn`&&A.selectAll(`path`).attr(`style`,r),A.attr(`transform`,`translate(0,${-g/2})`),f.attr(`transform`,`translate(${-p/2+(t.padding??0)-(d.x-(d.left??0))},${-m/2+(t.padding??0)-g-(d.y-(d.top??0))})`),_(t,A),t.intersect=function(e){return I.polygon(t,D,e)},u}e.n(Lt,`waveEdgedRectangle`);async function Rt(e,t){let{labelStyles:n,nodeStyles:r}=o.i(t);t.labelStyle=n;let i=t.padding??0,a=t.look===`neo`?16:i,c=t.look===`neo`?20:i;if(t.width||t.height){t.width=t?.width??0,t.width<20&&(t.width=20),t.height=t?.height??0,t.height<10&&(t.height=10);let e=Math.min(t.height*.2,t.height/4);t.height=Math.ceil(t.height-c-20/9*e),t.width-=a*2}let{shapeSvg:l,bbox:u}=await h(e,t,v(t)),d=(t?.width?t?.width:u.width)+a*2,f=(t?.height?t?.height:u.height)+c,p=f/8,m=f+p*2,{cssStyles:g}=t,x=s.t.svg(l),S=o.a(t,{});t.look!==`handDrawn`&&(S.roughness=0,S.fillStyle=`solid`);let C=[{x:-d/2,y:m/2},...b(-d/2,m/2,d/2,m/2,p,1),{x:d/2,y:-m/2},...b(d/2,-m/2,-d/2,-m/2,p,-1)],w=y(C),T=x.path(w,S),E=l.insert(()=>T,`:first-child`);return E.attr(`class`,`basic label-container`),g&&t.look!==`handDrawn`&&E.selectAll(`path`).attr(`style`,g),r&&t.look!==`handDrawn`&&E.selectAll(`path`).attr(`style`,r),_(t,E),t.intersect=function(e){return I.polygon(t,C,e)},l}e.n(Rt,`waveRectangle`);var Z=10;async function zt(e,t){let{labelStyles:n,nodeStyles:r}=o.i(t);t.labelStyle=n;let i=t.look===`neo`?16:t.padding??0,a=t.look===`neo`?12:t.padding??0;(t.width||t.height)&&(t.width=Math.max((t?.width??0)-i*2-Z,10),t.height=Math.max((t?.height??0)-a*2-Z,10));let{shapeSvg:c,bbox:l,label:u}=await h(e,t,v(t)),d=(t?.width?t?.width:l.width)+i*2+Z,f=(t?.height?t?.height:l.height)+a*2+Z,p=d-Z,m=f-Z,g=-p/2,y=-m/2,{cssStyles:b}=t,x=s.t.svg(c),S=o.a(t,{}),C=[{x:g-Z,y:y-Z},{x:g-Z,y:y+m},{x:g+p,y:y+m},{x:g+p,y:y-Z}],w=`M${g-Z},${y-Z} L${g+p},${y-Z} L${g+p},${y+m} L${g-Z},${y+m} L${g-Z},${y-Z}
9
+ M${g-Z},${y} L${g+p},${y}
10
+ M${g},${y-Z} L${g},${y+m}`;t.look!==`handDrawn`&&(S.roughness=0,S.fillStyle=`solid`);let T=x.path(w,S),E=c.insert(()=>T,`:first-child`);return E.attr(`transform`,`translate(${Z/2}, ${Z/2})`),E.attr(`class`,`basic label-container outer-path`),b&&t.look!==`handDrawn`&&E.selectAll(`path`).attr(`style`,b),r&&t.look!==`handDrawn`&&E.selectAll(`path`).attr(`style`,r),u.attr(`transform`,`translate(${-(l.width/2)+Z/2-(l.x-(l.left??0))}, ${-(l.height/2)+Z/2-(l.y-(l.top??0))})`),_(t,E),t.intersect=function(e){return I.polygon(t,C,e)},c}e.n(zt,`windowPane`);var Bt=new Set([`redux-color`,`redux-dark-color`]),Vt=new Set([`redux`,`redux-dark`,`redux-color`,`redux-dark-color`]);async function Ht(e,i){let a=i;a.alias&&(i.label=a.alias);let{theme:c,themeVariables:l}=n.b(),{rowEven:u,rowOdd:d,nodeBorder:f,borderColorArray:p}=l;if(i.look===`handDrawn`){let{themeVariables:t}=n.b(),{background:r}=t;await Ht(e,{...i,id:i.id+`-background`,domId:(i.domId||i.id)+`-background`,look:`default`,cssStyles:[`stroke: none`,`fill: ${r}`]})}let m=n.b();i.useHtmlLabels=m.htmlLabels;let h=m.er?.diagramPadding??10,g=m.er?.entityPadding??6,{cssStyles:y}=i,{labelStyles:b,nodeStyles:x}=o.i(i);if(a.attributes.length===0&&i.label){let t={rx:0,ry:0,labelPaddingX:h,labelPaddingY:h*1.5,classes:``};r.r(i.label,m)+t.labelPaddingX*2<m.er.minEntityWidth&&(i.width=m.er.minEntityWidth);let o=await Y(e,i,t);if(c!=null&&Bt.has(c)){let e=a.colorIndex??0;o.attr(`data-color-id`,`color-${e%p.length}`)}if(!n.g(m.htmlLabels)){let e=o.select(`text`),t=e.node()?.getBBox();e.attr(`transform`,`translate(${-t.width/2}, 0)`)}return o}m.htmlLabels||(h*=1.25,g*=1.25);let S=v(i);S||=`node default`;let C=e.insert(`g`).attr(`class`,S).attr(`id`,i.domId||i.id),w=await Q(C,i.label??``,m,0,0,[`name`],b);w.height+=g;let T=0,E=[],D=[],O=0,k=0,A=0,j=0,M=!0,N=!0;for(let e of a.attributes){let t=await Q(C,e.type,m,0,T,[`attribute-type`],b);O=Math.max(O,t.width+h);let n=await Q(C,e.name,m,0,T,[`attribute-name`],b);k=Math.max(k,n.width+h);let r=await Q(C,e.keys.join(),m,0,T,[`attribute-keys`],b);A=Math.max(A,r.width+h);let i=await Q(C,e.comment,m,0,T,[`attribute-comment`],b);j=Math.max(j,i.width+h);let a=Math.max(t.height,n.height,r.height,i.height)+g;D.push({yOffset:T,rowHeight:a}),T+=a}let P=4;A<=h&&(M=!1,A=0,P--),j<=h&&(N=!1,j=0,P--);let F=C.node().getBBox();if(w.width+h*2-(O+k+A+j)>0){let e=w.width+h*2-(O+k+A+j);O+=e/P,k+=e/P,A>0&&(A+=e/P),j>0&&(j+=e/P)}let ee=O+k+A+j,L=s.t.svg(C),R=o.a(i,{});i.look!==`handDrawn`&&(R.roughness=0,R.fillStyle=`solid`);let te=0;D.length>0&&(te=D.reduce((e,t)=>e+(t?.rowHeight??0),0));let z=Math.max(F.width+h*2,i?.width||0,ee),B=Math.max((te??0)+w.height,i?.height||0),V=-z/2,H=-B/2;if(C.selectAll(`g:not(:first-child)`).each((e,n,r)=>{let i=t.p(r[n]),a=i.attr(`transform`),o=0,s=0;if(a){let e=RegExp(/translate\(([^,]+),([^)]+)\)/).exec(a);e&&(o=parseFloat(e[1]),s=parseFloat(e[2]),i.attr(`class`).includes(`attribute-name`)?o+=O:i.attr(`class`).includes(`attribute-keys`)?o+=O+k:i.attr(`class`).includes(`attribute-comment`)&&(o+=O+k+A))}i.attr(`transform`,`translate(${V+h/2+o}, ${s+H+w.height+g/2})`)}),C.select(`.name`).attr(`transform`,`translate(`+-w.width/2+`, `+(H+g/2)+`)`),c!=null&&Bt.has(c)){let e=a.colorIndex??0;C.attr(`data-color-id`,`color-${e%p.length}`)}let ne=L.rectangle(V,H,z,B,R),re=C.insert(()=>ne,`:first-child`).attr(`class`,`outer-path`).attr(`style`,y.join(``));E.push(0);for(let[e,t]of D.entries()){let n=(e+1)%2==0&&t.yOffset!==0,r=L.rectangle(V,w.height+H+t?.yOffset,z,t?.rowHeight,{...R,fill:n?u:d,stroke:f});C.insert(()=>r,`g.label`).attr(`style`,y.join(``)).attr(`class`,`row-rect-${n?`even`:`odd`}`)}let U=1e-4,W=Ut(V,w.height+H,z+V,w.height+H,U),G=L.polygon(W.map(e=>[e.x,e.y]),R);if(C.insert(()=>G).attr(`class`,`divider`),W=Ut(O+V,w.height+H,O+V,B+H,U),G=L.polygon(W.map(e=>[e.x,e.y]),R),C.insert(()=>G).attr(`class`,`divider`),M){let e=O+k+V;W=Ut(e,w.height+H,e,B+H,U),G=L.polygon(W.map(e=>[e.x,e.y]),R),C.insert(()=>G).attr(`class`,`divider`)}if(N){let e=O+k+A+V;W=Ut(e,w.height+H,e,B+H,U),G=L.polygon(W.map(e=>[e.x,e.y]),R),C.insert(()=>G).attr(`class`,`divider`)}for(let e of E){let t=w.height+H+e;W=Ut(V,t,z+V,t,U),G=L.polygon(W.map(e=>[e.x,e.y]),R),C.insert(()=>G).attr(`class`,`divider`)}if(_(i,re),x&&i.look!==`handDrawn`){if(c!=null&&Vt.has(c))C.selectAll(`path`).attr(`style`,x);else{let e=x.split(`;`)?.filter(e=>e.includes(`stroke`))?.map(e=>`${e}`).join(`; `);C.selectAll(`path`).attr(`style`,e??``),C.selectAll(`.row-rect-even path`).attr(`style`,x)}}return i.intersect=function(e){return I.rect(i,e)},C}e.n(Ht,`erBox`);async function Q(e,i,o,s=0,c=0,l=[],u=``){let d=e.insert(`g`).attr(`class`,`label ${l.join(` `)}`).attr(`transform`,`translate(${s}, ${c})`).attr(`style`,u);i!==n.M(i)&&(i=n.M(i),i=i.replaceAll(`<`,`&lt;`).replaceAll(`>`,`&gt;`));let f=d.node().appendChild(await a.n(d,i,{width:r.r(i,o)+100,style:u,useHtmlLabels:o.htmlLabels},o));if(i.includes(`&lt;`)||i.includes(`&gt;`)){let e=f.children[0];for(e.textContent=e.textContent.replaceAll(`&lt;`,`<`).replaceAll(`&gt;`,`>`);e.childNodes[0];)e=e.childNodes[0],e.textContent=e.textContent.replaceAll(`&lt;`,`<`).replaceAll(`&gt;`,`>`)}let p=f.getBBox();if(n.g(o.htmlLabels)){let e=f.children[0];e.style.textAlign=`start`;let n=t.p(f);p=e.getBoundingClientRect(),n.attr(`width`,p.width),n.attr(`height`,p.height)}return p}e.n(Q,`addText`);function Ut(e,t,n,r,i){return e===n?[{x:e-i/2,y:t},{x:e+i/2,y:t},{x:n+i/2,y:r},{x:n-i/2,y:r}]:[{x:e,y:t-i/2},{x:e,y:t+i/2},{x:n,y:r+i/2},{x:n,y:r-i/2}]}e.n(Ut,`lineToPolygon`);async function Wt(e,t,n,r,i=n.class.padding??12){let a=r?0:3,o=e.insert(`g`).attr(`class`,v(t)).attr(`id`,t.domId||t.id),s=null,c=null,l=null,u=null,d=0,f=0,p=0;if(s=o.insert(`g`).attr(`class`,`annotation-group text`),t.annotations.length>0){let e=t.annotations[0];await Gt(s,{text:`\xAB${e}\xBB`},0),d=s.node().getBBox().height}c=o.insert(`g`).attr(`class`,`label-group text`),await Gt(c,t,0,[`font-weight: bolder`]);let m=c.node().getBBox();f=m.height,l=o.insert(`g`).attr(`class`,`members-group text`);let h=0;for(let e of t.members){let t=await Gt(l,e,h,[e.parseClassifier()]);h+=t+a}p=l.node().getBBox().height,p<=0&&(p=i/2),u=o.insert(`g`).attr(`class`,`methods-group text`);let g=0;for(let e of t.methods){let t=await Gt(u,e,g,[e.parseClassifier()]);g+=t+a}let _=o.node().getBBox();if(s!==null){let e=s.node().getBBox();s.attr(`transform`,`translate(${-e.width/2})`)}return c.attr(`transform`,`translate(${-m.width/2}, ${d})`),_=o.node().getBBox(),l.attr(`transform`,`translate(0, ${d+f+i*2})`),_=o.node().getBBox(),u.attr(`transform`,`translate(0, ${d+f+(p?p+i*4:i*2)})`),_=o.node().getBBox(),{shapeSvg:o,bbox:_}}e.n(Wt,`textHelper`);async function Gt(e,i,o,s=[]){let c=e.insert(`g`).attr(`class`,`label`).attr(`style`,s.join(`; `)),l=n.b(),d=`useHtmlLabels`in i?i.useHtmlLabels:n.g(l.htmlLabels)??!0,f=``;f=`text`in i?i.text:i.label,!d&&f.startsWith(`\\`)&&(f=f.substring(1)),n.A(f)&&(d=!0);let p=await a.n(c,n.B(r.a(f)),{width:r.r(f,l)+50,classes:`markdown-node-label`,useHtmlLabels:d},l),m,h=1;if(d){let e=p.children[0],n=t.p(p);h=e.innerHTML.split(`<br>`).length,e.innerHTML.includes(`</math>`)&&(h+=e.innerHTML.split(`<mrow>`).length-1),await u(e),m=e.getBoundingClientRect(),n.attr(`width`,m.width),n.attr(`height`,m.height)}else{s.includes(`font-weight: bolder`)&&t.p(p).selectAll(`tspan`).attr(`font-weight`,``),h=p.children.length;let e=p.children[0];(p.textContent===``||p.textContent.includes(`&gt`))&&(e.textContent=f[0]+f.substring(1).replaceAll(`&gt;`,`>`).replaceAll(`&lt;`,`<`).trim(),f[1]===` `&&(e.textContent=e.textContent[0]+` `+e.textContent.substring(1))),e.textContent===`undefined`&&(e.textContent=``),m=p.getBBox()}return c.attr(`transform`,`translate(0,`+(-m.height/(2*h)+o)+`)`),m.height}e.n(Gt,`addText`);async function Kt(e,r){let i=n.x(),{themeVariables:a}=i,{useGradient:c}=a,l=i.class.padding??12,u=l,d=r.useHtmlLabels??n.g(i.htmlLabels)??!0,f=r;f.annotations=f.annotations??[],f.members=f.members??[],f.methods=f.methods??[];let{shapeSvg:p,bbox:m}=await Wt(e,r,i,d,u),{labelStyles:h,nodeStyles:g}=o.i(r);r.labelStyle=h,r.cssStyles=f.styles||``;let v=f.styles?.join(`;`)||g||``;r.cssStyles||=v.replaceAll(`!important`,``).split(`;`);let y=f.members.length===0&&f.methods.length===0&&!i.class?.hideEmptyMembersBox,b=s.t.svg(p),x=o.a(r,{});r.look!==`handDrawn`&&(x.roughness=0,x.fillStyle=`solid`);let S=Math.max(r.width??0,m.width),C=Math.max(r.height??0,m.height),w=(r.height??0)>m.height;f.members.length===0&&f.methods.length===0?C+=u:f.members.length>0&&f.methods.length===0&&(C+=u*2);let T=-S/2,E=-C/2,D=y?l*2:f.members.length===0&&f.methods.length===0?-l:0;w&&(D=l*2);let O=b.rectangle(T-l,E-l-(y?l:f.members.length===0&&f.methods.length===0?-l/2:0),S+2*l,C+2*l+D,x),k=p.insert(()=>O,`:first-child`);k.attr(`class`,`basic label-container outer-path`);let A=k.node().getBBox(),j=p.select(`.annotation-group`).node().getBBox().height-(y?l/2:0)||0,M=p.select(`.label-group`).node().getBBox().height-(y?l/2:0)||0,N=p.select(`.members-group`).node().getBBox().height-(y?l/2:0)||0,P=(j+M+E+l-(E-l-(y?l:f.members.length===0&&f.methods.length===0?-l/2:0)))/2;if(p.selectAll(`.text`).each((e,n,r)=>{let a=t.p(r[n]),o=a.attr(`transform`),s=0;if(o){let e=RegExp(/translate\(([^,]+),([^)]+)\)/).exec(o);e&&(s=parseFloat(e[2]))}let c=s+E+l-(y?l:f.members.length===0&&f.methods.length===0?-l/2:0);if(a.attr(`class`).includes(`methods-group`)){let e=Math.max(N,u/2);c=w?Math.max(P,j+M+e+E+u*2+l)+u*2:j+M+e+E+u*4+l}f.members.length===0&&f.methods.length===0&&i.class?.hideEmptyMembersBox&&(c=f.annotations.length>0?s-u:s),d||(c-=4);let m=T;(a.attr(`class`).includes(`label-group`)||a.attr(`class`).includes(`annotation-group`))&&(m=-a.node()?.getBBox().width/2||0,p.selectAll(`text`).each(function(e,t,n){window.getComputedStyle(n[t]).textAnchor===`middle`&&(m=0)})),a.attr(`transform`,`translate(${m}, ${c})`)}),f.members.length>0||f.methods.length>0||y){let e=j+M+E+l,t=b.line(A.x,e,A.x+A.width,e+.001,x);p.insert(()=>t).attr(`class`,`divider${r.look===`neo`&&!c?` neo-line`:``}`).attr(`style`,v)}if(y||f.members.length>0||f.methods.length>0){let e=j+M+N+E+u*2+l,t=b.line(A.x,w?Math.max(P,e):e,A.x+A.width,(w?Math.max(P,e):e)+.001,x);p.insert(()=>t).attr(`class`,`divider${r.look===`neo`&&!c?` neo-line`:``}`).attr(`style`,v)}if(f.look!==`handDrawn`&&p.selectAll(`path`).attr(`style`,v),k.select(`:nth-child(2)`).attr(`style`,v),p.selectAll(`.divider`).select(`path`).attr(`style`,v),r.labelStyle?p.selectAll(`span`).attr(`style`,r.labelStyle):p.selectAll(`span`).attr(`style`,v),!d){let e=RegExp(/color\s*:\s*([^;]*)/),t=e.exec(v);if(t){let e=t[0].replace(`color`,`fill`);p.selectAll(`tspan`).attr(`style`,e)}else if(h){let t=e.exec(h);if(t){let e=t[0].replace(`color`,`fill`);p.selectAll(`tspan`).attr(`style`,e)}}}return _(r,k),r.intersect=function(e){return I.rect(r,e)},p}e.n(Kt,`classBox`);async function qt(e,r){let{labelStyles:i,nodeStyles:a}=o.i(r);r.labelStyle=i;let c=r,l=r,u=`verifyMethod`in r,d=v(r),f=n.x(),{themeVariables:p}=f,{borderColorArray:m,requirementEdgeLabelBackground:h}=p,g=f.layout===`elk`?`start`:`center`,y=e.insert(`g`).attr(`class`,d).attr(`id`,r.domId??r.id),b;b=u?await $(y,`&lt;&lt;${c.type}&gt;&gt;`,0,r.labelStyle):await $(y,`&lt;&lt;Element&gt;&gt;`,0,r.labelStyle);let x=b,S=await $(y,c.name,x,r.labelStyle+`; font-weight: bold;`);if(x+=S+20,u){let e=await $(y,`${c.requirementId?`ID: ${c.requirementId}`:``}`,x,r.labelStyle,g);x+=e;let t=await $(y,`${c.text?`Text: ${c.text}`:``}`,x,r.labelStyle,g);x+=t;let n=await $(y,`${c.risk?`Risk: ${c.risk}`:``}`,x,r.labelStyle,g);x+=n,await $(y,`${c.verifyMethod?`Verification: ${c.verifyMethod}`:``}`,x,r.labelStyle,g)}else{let e=await $(y,`${l.type?`Type: ${l.type}`:``}`,x,r.labelStyle,g);x+=e,await $(y,`${l.docRef?`Doc Ref: ${l.docRef}`:``}`,x,r.labelStyle,g)}let C=(y.node()?.getBBox().width??200)+20,w=(y.node()?.getBBox().height??200)+20,T=-C/2,E=-w/2,D=s.t.svg(y),O=o.a(r,{});r.look!==`handDrawn`&&(O.roughness=0,O.fillStyle=`solid`);let k=D.rectangle(T,E,C,w,O),A=y.insert(()=>k,`:first-child`);if(A.attr(`class`,`basic label-container outer-path`).attr(`style`,a),m?.length){let e=r.colorIndex??0;y.attr(`data-color-id`,`color-${e%m.length}`)}if(y.selectAll(`.label`).each((e,n,r)=>{let i=t.p(r[n]),a=i.attr(`transform`),o=0,s=0;if(a){let e=RegExp(/translate\(([^,]+),([^)]+)\)/).exec(a);e&&(o=parseFloat(e[1]),s=parseFloat(e[2]))}let c=s-w/2,l=T+10;(n===0||n===1)&&(l=o),i.attr(`transform`,`translate(${l}, ${c+20})`)}),x>b+S+20){let e=E+b+S+20,t;if(r.look===`neo`){let n=.001,r=[[T,e],[T+C,e],[T+C,e+n],[T,e+n]];t=D.polygon(r,O)}else t=D.line(T,e,T+C,e,O);y.insert(()=>t).attr(`class`,`divider`)}return _(r,A),r.intersect=function(e){return I.rect(r,e)},a&&r.look!==`handDrawn`&&(h||m?.length)&&y.selectAll(`path`).attr(`style`,a),y}e.n(qt,`requirementBox`);async function $(e,i,o,s=``,c=`center`){if(i===``)return 0;let l=e.insert(`g`).attr(`class`,`label`).attr(`style`,s),u=n.x(),d=u.htmlLabels??!0,f=await a.n(l,n.B(r.a(i)),{width:r.r(i,u)+50,classes:`markdown-node-label`,useHtmlLabels:d,style:s},u),p;if(d){let e=f.children[0],n=t.p(f);c===`start`&&t.p(e).style(`text-align`,`left`),p=e.getBoundingClientRect(),n.attr(`width`,p.width),n.attr(`height`,p.height)}else{let e=f.children[0];for(let t of e.children)s&&t.setAttribute(`style`,s);if(c===`start`){e.setAttribute(`text-anchor`,`start`);for(let t of e.children)t.setAttribute(`text-anchor`,`start`)}p=f.getBBox(),p.height+=6}return l.attr(`transform`,`translate(${-p.width/2},${-p.height/2+o})`),p.height}e.n($,`addText`);var Jt=e.n(e=>{switch(e){case`Very High`:return`red`;case`High`:return`orange`;case`Medium`:return null;case`Low`:return`blue`;case`Very Low`:return`lightblue`}},`colorFromPriority`);async function Yt(e,t,{config:n}){let{labelStyles:r,nodeStyles:i}=o.i(t);t.labelStyle=r||``;let a=t.width;t.width=(t.width??200)-10;let{shapeSvg:c,bbox:l,label:u}=await h(e,t,v(t)),d=t.padding||10,f=``,p;`ticket`in t&&t.ticket&&n?.kanban?.ticketBaseUrl&&(f=n?.kanban?.ticketBaseUrl.replace(`#TICKET#`,t.ticket),p=c.insert(`svg:a`,`:first-child`).attr(`class`,`kanban-ticket-link`).attr(`xlink:href`,f).attr(`target`,`_blank`));let m={useHtmlLabels:t.useHtmlLabels,labelStyle:t.labelStyle||``,width:t.width,img:t.img,padding:t.padding||8,centerLabel:!1},y,b;p?{label:y,bbox:b}=await g(p,`ticket`in t&&t.ticket||``,m):{label:y,bbox:b}=await g(c,`ticket`in t&&t.ticket||``,m);let{label:x,bbox:S}=await g(c,`assigned`in t&&t.assigned||``,m);t.width=a;let C=t?.width||0,T=Math.max(b.height,S.height)/2,E=Math.max(l.height+20,t?.height||0)+T,D=-C/2,O=-E/2;u.attr(`transform`,`translate(`+(d-C/2)+`, `+(-T-l.height/2)+`)`),y.attr(`transform`,`translate(`+(d-C/2)+`, `+(-T+l.height/2)+`)`),x.attr(`transform`,`translate(`+(d+C/2-S.width-20)+`, `+(-T+l.height/2)+`)`);let k,{rx:A,ry:j}=t,{cssStyles:M}=t;if(t.look===`handDrawn`){let e=s.t.svg(c),n=o.a(t,{}),r=A||j?e.path(w(D,O,C,E,A||0),n):e.rectangle(D,O,C,E,n);k=c.insert(()=>r,`:first-child`),k.attr(`class`,`basic label-container`).attr(`style`,M||null)}else{k=c.insert(`rect`,`:first-child`),k.attr(`class`,`basic label-container __APA__`).attr(`style`,i).attr(`rx`,A??5).attr(`ry`,j??5).attr(`x`,D).attr(`y`,O).attr(`width`,C).attr(`height`,E);let e=`priority`in t&&t.priority;if(e){let t=c.append(`line`),n=D+2,r=O+Math.floor((A??0)/2),i=O+E-Math.floor((A??0)/2);t.attr(`x1`,n).attr(`y1`,r).attr(`x2`,n).attr(`y2`,i).attr(`stroke-width`,`4`).attr(`stroke`,Jt(e))}}return _(t,k),t.height=E,t.intersect=function(e){return I.rect(t,e)},c}e.n(Yt,`kanbanItem`);async function Xt(e,n){let{labelStyles:i,nodeStyles:a}=o.i(n);n.labelStyle=i;let{shapeSvg:c,bbox:l,halfPadding:u,label:d}=await h(e,n,v(n)),f=l.width+10*u,p=l.height+8*u,m=.15*f,{cssStyles:g}=n,y=l.width+20,b=l.height+20,x=Math.max(f,y),S=Math.max(p,b);d.attr(`transform`,`translate(${-l.width/2}, ${-l.height/2})`);let C,w=`M0 0
11
+ a${m},${m} 1 0,0 ${x*.25},${-1*S*.1}
12
+ a${m},${m} 1 0,0 ${x*.25},0
13
+ a${m},${m} 1 0,0 ${x*.25},0
14
+ a${m},${m} 1 0,0 ${x*.25},${S*.1}
15
+
16
+ a${m},${m} 1 0,0 ${x*.15},${S*.33}
17
+ a${m*.8},${m*.8} 1 0,0 0,${S*.34}
18
+ a${m},${m} 1 0,0 ${-1*x*.15},${S*.33}
19
+
20
+ a${m},${m} 1 0,0 ${-1*x*.25},${S*.15}
21
+ a${m},${m} 1 0,0 ${-1*x*.25},0
22
+ a${m},${m} 1 0,0 ${-1*x*.25},0
23
+ a${m},${m} 1 0,0 ${-1*x*.25},${-1*S*.15}
24
+
25
+ a${m},${m} 1 0,0 ${-1*x*.1},${-1*S*.33}
26
+ a${m*.8},${m*.8} 1 0,0 0,${-1*S*.34}
27
+ a${m},${m} 1 0,0 ${x*.1},${-1*S*.33}
28
+ H0 V0 Z`;if(n.look===`handDrawn`){let e=s.t.svg(c),t=o.a(n,{}),i=e.path(w,t);C=c.insert(()=>i,`:first-child`),C.attr(`class`,`basic label-container`).attr(`style`,r.u(g))}else C=c.insert(`path`,`:first-child`).attr(`class`,`basic label-container`).attr(`style`,a).attr(`d`,w);return C.attr(`transform`,`translate(${-x/2}, ${-S/2})`),_(n,C),n.calcIntersect=function(e,t){return I.rect(e,t)},n.intersect=function(e){return t.m.info(`Bang intersect`,n,e),I.rect(n,e)},c}e.n(Xt,`bang`);async function Zt(e,n){let{labelStyles:i,nodeStyles:a}=o.i(n);n.labelStyle=i;let{shapeSvg:c,bbox:l,halfPadding:u,label:d}=await h(e,n,v(n)),f=l.width+2*u,p=l.height+2*u,m=.15*f,g=.25*f,y=.35*f,b=.2*f,{cssStyles:x}=n,S,C=`M0 0
29
+ a${m},${m} 0 0,1 ${f*.25},${-1*f*.1}
30
+ a${y},${y} 1 0,1 ${f*.4},${-1*f*.1}
31
+ a${g},${g} 1 0,1 ${f*.35},${f*.2}
32
+
33
+ a${m},${m} 1 0,1 ${f*.15},${p*.35}
34
+ a${b},${b} 1 0,1 ${-1*f*.15},${p*.65}
35
+
36
+ a${g},${m} 1 0,1 ${-1*f*.25},${f*.15}
37
+ a${y},${y} 1 0,1 ${-1*f*.5},0
38
+ a${m},${m} 1 0,1 ${-1*f*.25},${-1*f*.15}
39
+
40
+ a${m},${m} 1 0,1 ${-1*f*.1},${-1*p*.35}
41
+ a${b},${b} 1 0,1 ${f*.1},${-1*p*.65}
42
+ H0 V0 Z`;if(n.look===`handDrawn`){let e=s.t.svg(c),t=o.a(n,{}),i=e.path(C,t);S=c.insert(()=>i,`:first-child`),S.attr(`class`,`basic label-container`).attr(`style`,r.u(x))}else S=c.insert(`path`,`:first-child`).attr(`class`,`basic label-container`).attr(`style`,a).attr(`d`,C);return d.attr(`transform`,`translate(${-l.width/2}, ${-l.height/2})`),S.attr(`transform`,`translate(${-f/2}, ${-p/2})`),_(n,S),n.calcIntersect=function(e,t){return I.rect(e,t)},n.intersect=function(e){return t.m.info(`Cloud intersect`,n,e),I.rect(n,e)},c}e.n(Zt,`cloud`);async function Qt(e,t){let{labelStyles:n,nodeStyles:r}=o.i(t);t.labelStyle=n;let{shapeSvg:i,bbox:a,halfPadding:s,label:c}=await h(e,t,v(t)),l=a.width+8*s,u=a.height+2*s,d=t.look===`neo`?`
43
+ M${-l/2} ${u/2-5}
44
+ v${-u+10}
45
+ q0,-5 5,-5
46
+ h${l-10}
47
+ q5,0 5,5
48
+ v${u-5}
49
+ H${-l/2}
50
+ Z
51
+ `:`
52
+ M${-l/2} ${u/2-5}
53
+ v${-u+10}
54
+ q0,-5 5,-5
55
+ h${l-10}
56
+ q5,0 5,5
57
+ v${u-10}
58
+ q0,5 -5,5
59
+ h${-(l-10)}
60
+ q-5,0 -5,-5
61
+ Z
62
+ `;if(!t.domId)throw Error(`defaultMindmapNode: node "${t.id}" is missing a domId \u2014 was render.ts domId prefixing skipped?`);let f=i.append(`path`).attr(`id`,t.domId).attr(`class`,`node-bkg node-`+t.type).attr(`style`,r).attr(`d`,d);return i.append(`line`).attr(`class`,`node-line-`).attr(`x1`,-l/2).attr(`y1`,u/2).attr(`x2`,l/2).attr(`y2`,u/2),c.attr(`transform`,`translate(${-a.width/2}, ${-a.height/2})`),i.append(()=>c.node()),_(t,f),t.calcIntersect=function(e,t){return I.rect(e,t)},t.intersect=function(e){return I.rect(t,e)},i}e.n(Qt,`defaultMindmapNode`);async function $t(e,t){return pe(e,t,{padding:t.padding??0})}e.n($t,`mindmapCircle`);var en=[{semanticName:`Process`,name:`Rectangle`,shortName:`rect`,description:`Standard process shape`,aliases:[`proc`,`process`,`rectangle`],internalAliases:[`squareRect`],handler:ht},{semanticName:`Event`,name:`Rounded Rectangle`,shortName:`rounded`,description:`Represents an event`,aliases:[`event`],internalAliases:[`roundedRect`],handler:ft},{semanticName:`Terminal Point`,name:`Stadium`,shortName:`stadium`,description:`Terminal point`,aliases:[`terminal`,`pill`],handler:gt},{semanticName:`Subprocess`,name:`Framed Rectangle`,shortName:`fr-rect`,description:`Subprocess`,aliases:[`subprocess`,`subproc`,`framed-rectangle`,`subroutine`],handler:xt},{semanticName:`Database`,name:`Cylinder`,shortName:`cyl`,description:`Database storage`,aliases:[`db`,`database`,`cylinder`],handler:Oe},{semanticName:`Data Store`,name:`Data Store`,shortName:`datastore`,description:`Data flow diagram data store`,aliases:[`data-store`],handler:ke},{semanticName:`Folder`,name:`Folder`,shortName:`folder`,description:`Folder or directory`,aliases:[`directory`],handler:Ie},{semanticName:`Bucket`,name:`Bucket`,shortName:`bucket`,description:`Object storage bucket`,handler:z},{semanticName:`Console`,name:`Console (terminal window)`,shortName:`console`,description:`Terminal or console window`,handler:he},{semanticName:`Browser`,name:`Browser`,shortName:`browser`,description:`Browser window`,handler:le},{semanticName:`Person`,name:`Person`,shortName:`person`,description:`Person (circular head above a rounded body)`,handler:Se},{semanticName:`Start`,name:`Circle`,shortName:`circle`,description:`Starting point`,aliases:[`circ`],handler:pe},{semanticName:`Bang`,name:`Bang`,shortName:`bang`,description:`Bang`,aliases:[`bang`],handler:Xt},{semanticName:`Cloud`,name:`Cloud`,shortName:`cloud`,description:`cloud`,aliases:[`cloud`],handler:Zt},{semanticName:`Decision`,name:`Diamond`,shortName:`diam`,description:`Decision-making step`,aliases:[`decision`,`diamond`,`question`],handler:lt},{semanticName:`Prepare Conditional`,name:`Hexagon`,shortName:`hex`,description:`Preparation or condition step`,aliases:[`hexagon`,`prepare`],handler:Be},{semanticName:`Data Input/Output`,name:`Lean Right`,shortName:`lean-r`,description:`Represents input or output`,aliases:[`lean-right`,`in-out`],internalAliases:[`lean_right`],handler:Xe},{semanticName:`Data Input/Output`,name:`Lean Left`,shortName:`lean-l`,description:`Represents output or input`,aliases:[`lean-left`,`out-in`],internalAliases:[`lean_left`],handler:Ye},{semanticName:`Priority Action`,name:`Trapezoid Base Bottom`,shortName:`trap-b`,description:`Priority action`,aliases:[`priority`,`trapezoid-bottom`,`trapezoid`],handler:Mt},{semanticName:`Manual Operation`,name:`Trapezoid Base Top`,shortName:`trap-t`,description:`Represents a manual task`,aliases:[`manual`,`trapezoid-top`,`inv-trapezoid`],internalAliases:[`inv_trapezoid`],handler:qe},{semanticName:`Stop`,name:`Double Circle`,shortName:`dbl-circ`,description:`Represents a stop point`,aliases:[`double-circle`],internalAliases:[`doublecircle`],handler:je},{semanticName:`Text Block`,name:`Text Block`,shortName:`text`,description:`Text block`,handler:Tt},{semanticName:`Card`,name:`Notched Rectangle`,shortName:`notch-rect`,description:`Represents a card`,aliases:[`card`,`notched-rectangle`],handler:de},{semanticName:`Lined/Shaded Process`,name:`Lined Rectangle`,shortName:`lin-rect`,description:`Lined process shape`,aliases:[`lined-rectangle`,`lined-process`,`lin-proc`,`shaded-process`],handler:pt},{semanticName:`Start`,name:`Small Circle`,shortName:`sm-circ`,description:`Small starting point`,aliases:[`start`,`small-circle`],internalAliases:[`stateStart`],handler:yt},{semanticName:`Stop`,name:`Framed Circle`,shortName:`fr-circ`,description:`Stop point`,aliases:[`stop`,`framed-circle`],internalAliases:[`stateEnd`],handler:vt},{semanticName:`Fork/Join`,name:`Filled Rectangle`,shortName:`fork`,description:`Fork or join in process flow`,aliases:[`join`],internalAliases:[`forkJoin`],handler:Le},{semanticName:`Collate`,name:`Hourglass`,shortName:`hourglass`,description:`Represents a collate operation`,aliases:[`hourglass`,`collate`],handler:Ve},{semanticName:`Comment`,name:`Curly Brace`,shortName:`brace`,description:`Adds a comment`,aliases:[`comment`,`brace-l`],handler:ve},{semanticName:`Comment Right`,name:`Curly Brace`,shortName:`brace-r`,description:`Adds a comment`,handler:ye},{semanticName:`Comment with braces on both sides`,name:`Curly Braces`,shortName:`braces`,description:`Adds a comment`,handler:be},{semanticName:`Com Link`,name:`Lightning Bolt`,shortName:`bolt`,description:`Communication link`,aliases:[`com-link`,`lightning-bolt`],handler:Ze},{semanticName:`Document`,name:`Document`,shortName:`doc`,description:`Represents a document`,aliases:[`doc`,`document`],handler:Lt},{semanticName:`Delay`,name:`Half-Rounded Rectangle`,shortName:`delay`,description:`Represents a delay`,aliases:[`half-rounded-rectangle`],handler:Re},{semanticName:`Direct Access Storage`,name:`Horizontal Cylinder`,shortName:`h-cyl`,description:`Direct access storage`,aliases:[`das`,`horizontal-cylinder`],handler:jt},{semanticName:`Disk Storage`,name:`Lined Cylinder`,shortName:`lin-cyl`,description:`Disk storage`,aliases:[`disk`,`lined-cylinder`],handler:rt},{semanticName:`Display`,name:`Curved Trapezoid`,shortName:`curv-trap`,description:`Represents a display`,aliases:[`curved-trapezoid`,`display`],handler:xe},{semanticName:`Divided Process`,name:`Divided Rectangle`,shortName:`div-rect`,description:`Divided process shape`,aliases:[`div-proc`,`divided-rectangle`,`divided-process`],handler:Ae},{semanticName:`Extract`,name:`Triangle`,shortName:`tri`,description:`Extraction process`,aliases:[`extract`,`triangle`],handler:It},{semanticName:`Internal Storage`,name:`Window Pane`,shortName:`win-pane`,description:`Internal storage`,aliases:[`internal-storage`,`window-pane`],handler:zt},{semanticName:`Junction`,name:`Filled Circle`,shortName:`f-circ`,description:`Junction point`,aliases:[`junction`,`filled-circle`],handler:Me},{semanticName:`Loop Limit`,name:`Trapezoidal Pentagon`,shortName:`notch-pent`,description:`Loop limit step`,aliases:[`loop-limit`,`notched-pentagon`],handler:Nt},{semanticName:`Manual File`,name:`Flipped Triangle`,shortName:`flip-tri`,description:`Manual file operation`,aliases:[`manual-file`,`flipped-triangle`],handler:Fe},{semanticName:`Manual Input`,name:`Sloped Rectangle`,shortName:`sl-rect`,description:`Manual input step`,aliases:[`manual-input`,`sloped-rectangle`],handler:mt},{semanticName:`Multi-Document`,name:`Stacked Document`,shortName:`docs`,description:`Multiple documents`,aliases:[`documents`,`st-doc`,`stacked-document`],handler:ot},{semanticName:`Multi-Process`,name:`Stacked Rectangle`,shortName:`st-rect`,description:`Multiple processes`,aliases:[`procs`,`processes`,`stacked-rectangle`],handler:at},{semanticName:`Stored Data`,name:`Bow Tie Rectangle`,shortName:`bow-rect`,description:`Stored data`,aliases:[`stored-data`,`bow-tie-rectangle`],handler:te},{semanticName:`Summary`,name:`Crossed Circle`,shortName:`cross-circ`,description:`Summary`,aliases:[`summary`,`crossed-circle`],handler:_e},{semanticName:`Tagged Document`,name:`Tagged Document`,shortName:`tag-doc`,description:`Tagged document`,aliases:[`tag-doc`,`tagged-document`],handler:wt},{semanticName:`Tagged Process`,name:`Tagged Rectangle`,shortName:`tag-rect`,description:`Tagged process`,aliases:[`tagged-rectangle`,`tag-proc`,`tagged-process`],handler:Ct},{semanticName:`Paper Tape`,name:`Flag`,shortName:`flag`,description:`Paper tape`,aliases:[`paper-tape`],handler:Rt},{semanticName:`Odd`,name:`Odd`,shortName:`odd`,description:`Odd shape`,internalAliases:[`rect_left_inv_arrow`],handler:ut},{semanticName:`Lined Document`,name:`Lined Document`,shortName:`lin-doc`,description:`Lined document`,aliases:[`lined-document`],handler:it}],tn=e.n(()=>{let e=[...Object.entries({state:_t,choice:fe,note:st,composite:me,rectWithTitle:dt,labelRect:Je,block_arrow:ce,collapsedGroup:re,iconSquare:Ge,iconCircle:Ue,icon:He,iconRounded:We,imageSquare:Ke,anchor:ee,kanbanItem:Yt,mindmapCircle:$t,defaultMindmapNode:Qt,classBox:Kt,erBox:Ht,requirementBox:qt}),...en.flatMap(e=>[e.shortName,...`aliases`in e?e.aliases:[],...`internalAliases`in e?e.internalAliases:[]].map(t=>[t,e.handler]))];return Object.fromEntries(e)},`generateShapeMap`)();function nn(e){return e in tn}e.n(nn,`isValidShape`),Object.defineProperty(exports,"a",{enumerable:!0,get:function(){return h}}),Object.defineProperty(exports,"i",{enumerable:!0,get:function(){return nn}}),Object.defineProperty(exports,"n",{enumerable:!0,get:function(){return w}}),Object.defineProperty(exports,"o",{enumerable:!0,get:function(){return tn}}),Object.defineProperty(exports,"r",{enumerable:!0,get:function(){return C}}),Object.defineProperty(exports,"s",{enumerable:!0,get:function(){return _}}),Object.defineProperty(exports,"t",{enumerable:!0,get:function(){return T}});