@jackuait/blok 0.10.4 → 0.10.6

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 (459) hide show
  1. package/dist/blok.mjs +2 -2
  2. package/dist/chunks/_basePickBy--UeZi0iS.mjs +166 -0
  3. package/dist/chunks/_baseUniq-C977U_l-.mjs +682 -0
  4. package/dist/chunks/{arc-D-pL2Ftf.mjs → arc-Woh6y3jm.mjs} +2 -2
  5. package/dist/chunks/architecture-YZFGNWBL-aVO23UKm.mjs +3 -0
  6. package/dist/chunks/{architectureDiagram-Q4EWVU46-DS7mqjL2.mjs → architectureDiagram-Q4EWVU46-GTqLmLqg.mjs} +115 -115
  7. package/dist/chunks/{blockDiagram-DXYQGD6D-BTtcn4NG.mjs → blockDiagram-DXYQGD6D-CML01I1L.mjs} +681 -866
  8. package/dist/chunks/{blok-NcdNQ0I6.mjs → blok-B0k4z2h1.mjs} +673 -604
  9. package/dist/chunks/{c4Diagram-AHTNJAMY-Y4Dcwcoo.mjs → c4Diagram-AHTNJAMY-C29OuYjO.mjs} +239 -239
  10. package/dist/chunks/{channel-Cln-eWE0.mjs → channel-Zp_OyvEW.mjs} +1 -1
  11. package/dist/chunks/{chunk-2KRD3SAO-DkM7qh-k.mjs → chunk-2KRD3SAO-mVfUZfox.mjs} +1 -1
  12. package/dist/chunks/{chunk-336JU56O-B17AtzlK.mjs → chunk-336JU56O-mJNxs0cr.mjs} +18 -18
  13. package/dist/chunks/{chunk-426QAEUC-D6UAVUog.mjs → chunk-426QAEUC-TajZlyP-.mjs} +2 -2
  14. package/dist/chunks/{chunk-4BX2VUAB-CgIkjF7Z.mjs → chunk-4BX2VUAB-CsopMMb6.mjs} +1 -1
  15. package/dist/chunks/{chunk-4TB4RGXK-BUP4eON3.mjs → chunk-4TB4RGXK-DC963IrJ.mjs} +129 -129
  16. package/dist/chunks/{chunk-55IACEB6-zZ-IgaSt.mjs → chunk-55IACEB6-yyL3mncJ.mjs} +1 -1
  17. package/dist/chunks/{chunk-5FUZZQ4R-DsZnJYxM.mjs → chunk-5FUZZQ4R-Dr4NE8rh.mjs} +663 -663
  18. package/dist/chunks/chunk-5PVQY5BW-BP7ENjg7.mjs +1122 -0
  19. package/dist/chunks/{chunk-67CJDMHE-m0UKdcSH.mjs → chunk-67CJDMHE-Dbl-PjEf.mjs} +1 -1
  20. package/dist/chunks/{chunk-7N4EOEYR-DKNajFZd.mjs → chunk-7N4EOEYR-p-g3cKuX.mjs} +1 -1
  21. package/dist/chunks/{chunk-AA7GKIK3-BeLhNzKa.mjs → chunk-AA7GKIK3-Dt0Kr5Va.mjs} +1 -1
  22. package/dist/chunks/{chunk-BSJP7CBP-CJExmx8a.mjs → chunk-BSJP7CBP-DGU2WHwh.mjs} +1 -1
  23. package/dist/chunks/{chunk-CIAEETIT-CTikoJ19.mjs → chunk-CIAEETIT-BQ4crY5r.mjs} +1 -1
  24. package/dist/chunks/{chunk-EDXVE4YY-DjInnnwb.mjs → chunk-EDXVE4YY-B9_aGwkV.mjs} +2 -2
  25. package/dist/chunks/{chunk-ENJZ2VHE-CIl5FRDA.mjs → chunk-ENJZ2VHE-23pY8ft5.mjs} +243 -243
  26. package/dist/chunks/{chunk-FMBD7UC4-DjV0W7UE.mjs → chunk-FMBD7UC4-D_RQlBGX.mjs} +1 -1
  27. package/dist/chunks/{chunk-FOC6F5B3-LmHCCWYY.mjs → chunk-FOC6F5B3-CJfr-iwx.mjs} +1 -1
  28. package/dist/chunks/{chunk-ICPOFSXX-BHZIN46A.mjs → chunk-ICPOFSXX-BOvOTlG6.mjs} +2 -2
  29. package/dist/chunks/{chunk-K5T4RW27-BPZ6fFnW.mjs → chunk-K5T4RW27-CHSI0vpp.mjs} +572 -570
  30. package/dist/chunks/{chunk-KGLVRYIC-S1OQdW76.mjs → chunk-KGLVRYIC-ngXT4XVA.mjs} +1 -1
  31. package/dist/chunks/{chunk-LIHQZDEY-CjtyJlI6.mjs → chunk-LIHQZDEY-CnP7bym1.mjs} +1 -1
  32. package/dist/chunks/{chunk-ORNJ4GCN-CdO0hAge.mjs → chunk-ORNJ4GCN-BPaghT45.mjs} +1 -1
  33. package/dist/chunks/{chunk-OYMX7WX6-ApX8eV4o.mjs → chunk-OYMX7WX6-CKjTvqTg.mjs} +172 -172
  34. package/dist/chunks/{chunk-QZHKN3VN-BGFuA6-k.mjs → chunk-QZHKN3VN-uW1N2UWF.mjs} +1 -1
  35. package/dist/chunks/{chunk-U2HBQHQK-B88ZUOTL.mjs → chunk-U2HBQHQK-DiQOEtQH.mjs} +65 -65
  36. package/dist/chunks/{chunk-X2U36JSP-1VS5TyCr.mjs → chunk-X2U36JSP-Cznp5Jm-.mjs} +2 -2
  37. package/dist/chunks/{chunk-XPW4576I-BMupdrvo.mjs → chunk-XPW4576I-W5t_agZI.mjs} +1 -1
  38. package/dist/chunks/{chunk-YZCP3GAM-BQ7eEsm2.mjs → chunk-YZCP3GAM-BV02tG_z.mjs} +3 -3
  39. package/dist/chunks/{chunk-ZZ45TVLE-D1xks9zd.mjs → chunk-ZZ45TVLE-D28EyJ6R.mjs} +7 -7
  40. package/dist/chunks/classDiagram-6PBFFD2Q-DXsClapu.mjs +30 -0
  41. package/dist/chunks/classDiagram-v2-HSJHXN6E-B6TlQ_PM.mjs +30 -0
  42. package/dist/chunks/{clone-Ckjt1LtE.mjs → clone-CUNvBGto.mjs} +1 -1
  43. package/dist/chunks/{constants-DtfShkXT.mjs → constants-lOEJu8bC.mjs} +4 -2
  44. package/dist/chunks/{cose-bilkent-S5V4N54A-Bpcs2jA_.mjs → cose-bilkent-S5V4N54A-D-Xgf_Xn.mjs} +2 -2
  45. package/dist/chunks/{cpp-BdjvAny0.mjs → cpp-DaTV1RSp.mjs} +2 -2
  46. package/dist/chunks/{dagre-KV5264BT-DUD9ikgN.mjs → dagre-KV5264BT-BB3SAlfA.mjs} +15 -15
  47. package/dist/chunks/{dagre-CGNbYTKq.mjs → dagre-dysBn-m8.mjs} +499 -552
  48. package/dist/chunks/diagram-5BDNPKRD-B1410bPG.mjs +112 -0
  49. package/dist/chunks/{diagram-G4DWMVQ6-CuS0-h95.mjs → diagram-G4DWMVQ6-CdhBBETB.mjs} +82 -82
  50. package/dist/chunks/{diagram-MMDJMWI5-C-AEApYz.mjs → diagram-MMDJMWI5-B3HWfHe1.mjs} +48 -48
  51. package/dist/chunks/{diagram-TYMM5635-CiwAJVMq.mjs → diagram-TYMM5635-D0JzRYCN.mjs} +51 -51
  52. package/dist/chunks/{erDiagram-SMLLAGMA-DeH5yck2.mjs → erDiagram-SMLLAGMA-DfIG0QBk.mjs} +142 -142
  53. package/dist/chunks/{flowDiagram-DWJPFMVM-Cr6dwmQ5.mjs → flowDiagram-DWJPFMVM-BOL8JsQX.mjs} +176 -176
  54. package/dist/chunks/{ganttDiagram-T4ZO3ILL-K-divBg_.mjs → ganttDiagram-T4ZO3ILL-CiUr_YRw.mjs} +230 -230
  55. package/dist/chunks/gitGraph-7Q5UKJZL-B3aq166w.mjs +3 -0
  56. package/dist/chunks/{gitGraphDiagram-UUTBAWPF-UytPZv72.mjs → gitGraphDiagram-UUTBAWPF-CtNkTTWO.mjs} +218 -218
  57. package/dist/chunks/{graphlib-Cye9EPNq.mjs → graphlib-BXNPwKuI.mjs} +48 -46
  58. package/dist/chunks/{graphql-BSnqmqgO.mjs → graphql-DNumR9m-.mjs} +2 -2
  59. package/dist/chunks/{html-BLNeZvnp.mjs → html-CanPsi1Y.mjs} +2 -2
  60. package/dist/chunks/{i18next-loader-D32EUWLr.mjs → i18next-loader-CIXsptng.mjs} +2 -2
  61. package/dist/chunks/info-OMHHGYJF-SX91-Wub.mjs +3 -0
  62. package/dist/chunks/{infoDiagram-42DDH7IO-DuYnDbF3.mjs → infoDiagram-42DDH7IO-CD7nVBvi.mjs} +14 -14
  63. package/dist/chunks/isArrayLikeObject-DzUNFfIK.mjs +578 -0
  64. package/dist/chunks/isEmpty-D8B0aRsG.mjs +35 -0
  65. package/dist/chunks/{ishikawaDiagram-UXIWVN3A-CHc59dLn.mjs → ishikawaDiagram-UXIWVN3A-BOaC9qJs.mjs} +81 -81
  66. package/dist/chunks/{journeyDiagram-VCZTEJTY-CD25C4_n.mjs → journeyDiagram-VCZTEJTY-DKf55ZdJ.mjs} +6 -6
  67. package/dist/chunks/{kanban-definition-6JOO6SKY-CTCT6N_p.mjs → kanban-definition-6JOO6SKY-D2CrAXqB.mjs} +11 -11
  68. package/dist/chunks/{latex-24n3TcOR.mjs → latex-DY1HNB4U.mjs} +1 -1
  69. package/dist/chunks/{lightweight-i18n-DpkvRXEd.mjs → lightweight-i18n-DTYoSr_o.mjs} +2 -0
  70. package/dist/chunks/line-CuvDsrkE.mjs +34 -0
  71. package/dist/chunks/{linear-BRCpMvtr.mjs → linear-JRIqMpGQ.mjs} +3 -3
  72. package/dist/chunks/{lua-DV0fuZWx.mjs → lua-COOfzihE.mjs} +1 -1
  73. package/dist/chunks/{mermaid-parser.core-CA3DKkuk.mjs → mermaid-parser.core-BhpZC2lA.mjs} +10 -10
  74. package/dist/chunks/mermaid.core-C40gcVfv.mjs +977 -0
  75. package/dist/chunks/{messages-DtZ9U9g72.mjs → messages--G2XLc8E.mjs} +8 -5
  76. package/dist/{messages-CFUBJfnf.mjs → chunks/messages-3kHDtQLN.mjs} +8 -5
  77. package/dist/{messages-0lOPMv8u.mjs → chunks/messages-4Y8dL_1j2.mjs} +8 -5
  78. package/dist/{messages-DQ1icG7L.mjs → chunks/messages-9Nx7kteY2.mjs} +8 -5
  79. package/dist/{messages-aoO_TtoE2.mjs → chunks/messages-B29Wm2zT.mjs} +9 -6
  80. package/dist/chunks/{messages-oPV2oMxM.mjs → messages-B9mzGzZ_.mjs} +11 -8
  81. package/dist/{messages-Di3-WVzq.mjs → chunks/messages-BCfsOOlp.mjs} +8 -5
  82. package/dist/{messages-CA6J_QoC.mjs → chunks/messages-BJTwY1tq.mjs} +7 -4
  83. package/dist/chunks/{messages-Cxy_E2IS.mjs → messages-BK6AwU6C.mjs} +8 -5
  84. package/dist/chunks/{messages-DoPdy75l.mjs → messages-BPxMr5HC.mjs} +10 -7
  85. package/dist/chunks/{messages-Ci7UXRVI2.mjs → messages-BS9zk4mI2.mjs} +9 -6
  86. package/dist/chunks/{messages-BouFtpfO.mjs → messages-BSXBVdsp.mjs} +7 -4
  87. package/dist/{messages-DqDlcEPn.mjs → chunks/messages-BSyO1EWC.mjs} +9 -6
  88. package/dist/{messages-DzknMM7W.mjs → chunks/messages-BUQTXTew2.mjs} +8 -5
  89. package/dist/chunks/{messages-BJNFCDv42.mjs → messages-Bhn5V9FQ2.mjs} +8 -5
  90. package/dist/chunks/{messages-zWqsggJh.mjs → messages-Bi629xgG.mjs} +8 -5
  91. package/dist/{messages-CR4gHjd82.mjs → chunks/messages-BimpUMRx.mjs} +6 -3
  92. package/dist/{messages-BCMFYqKc2.mjs → chunks/messages-BkaUIuz-2.mjs} +8 -5
  93. package/dist/{messages-5wuR90qS.mjs → chunks/messages-BmC2yhsC2.mjs} +8 -5
  94. package/dist/chunks/{messages-HzH9_QH8.mjs → messages-Bo7Cbk_O.mjs} +8 -5
  95. package/dist/chunks/{messages-BcHZf9o-.mjs → messages-Bq7fo8X0.mjs} +16 -13
  96. package/dist/{messages-bh8BiOee2.mjs → chunks/messages-BsqBho4T.mjs} +9 -6
  97. package/dist/{messages-C-8qb9sf2.mjs → chunks/messages-C7E8C3-S.mjs} +8 -5
  98. package/dist/chunks/{messages-DRJxSTqs.mjs → messages-C9QhLDA2.mjs} +9 -6
  99. package/dist/chunks/{messages-DSbI0vJf.mjs → messages-C9UIaF6N.mjs} +8 -5
  100. package/dist/chunks/{messages-dpXwA3Sz.mjs → messages-CAX3qQi0.mjs} +8 -5
  101. package/dist/chunks/{messages-DpydMd36.mjs → messages-CEJtxBxU.mjs} +8 -5
  102. package/dist/chunks/{messages-DkP3Jf4F.mjs → messages-CF0SW1zy.mjs} +7 -4
  103. package/dist/{messages-B_UKuqrH.mjs → chunks/messages-CIre8L_r.mjs} +8 -5
  104. package/dist/{messages-DT7dwzEe.mjs → chunks/messages-CJ8IkF1P.mjs} +8 -5
  105. package/dist/{messages-BORkMoil2.mjs → chunks/messages-CKP6aUXN2.mjs} +7 -4
  106. package/dist/chunks/{messages-DY8zPIZW.mjs → messages-CMMq-u7e.mjs} +9 -6
  107. package/dist/chunks/{messages-CTdSIOAc.mjs → messages-CR5irc8q.mjs} +7 -4
  108. package/dist/chunks/{messages-ZhHLC6dk.mjs → messages-CRH0RWBs.mjs} +8 -5
  109. package/dist/chunks/{messages-C7sBaZOO2.mjs → messages-CWm_2RvD2.mjs} +8 -5
  110. package/dist/{messages-CLUBh7O_.mjs → chunks/messages-CY76MvbX2.mjs} +8 -5
  111. package/dist/{messages-PyOr_YgV.mjs → chunks/messages-CpLq4ZZg.mjs} +6 -3
  112. package/dist/chunks/{messages-CGLTjtRv2.mjs → messages-CrpOkt8c2.mjs} +8 -5
  113. package/dist/{messages-DwiykEgr2.mjs → chunks/messages-D3fu2FHB2.mjs} +8 -5
  114. package/dist/{messages-hya8YLMj.mjs → chunks/messages-D6_I0L06.mjs} +8 -5
  115. package/dist/chunks/{messages-oXBbHW9A.mjs → messages-DHzT8CZv.mjs} +8 -5
  116. package/dist/chunks/{messages-ChayV9WY2.mjs → messages-DIVQmVS92.mjs} +8 -5
  117. package/dist/{messages-BrYeJsSE2.mjs → chunks/messages-DJYT0upW.mjs} +9 -6
  118. package/dist/chunks/{messages-THR8q8bJ.mjs → messages-DPcc6xp-.mjs} +16 -13
  119. package/dist/chunks/{messages-CDSyoUft.mjs → messages-Dass0QsQ.mjs} +6 -3
  120. package/dist/chunks/{messages-DVvrZRyZ.mjs → messages-DcUYfD6m.mjs} +8 -5
  121. package/dist/chunks/{messages-BNy4e7Xl.mjs → messages-DfLcy0CY.mjs} +8 -5
  122. package/dist/chunks/{messages-H6vLy8wJ.mjs → messages-DhoZXmg_.mjs} +8 -5
  123. package/dist/{messages-ZHgPRUj02.mjs → chunks/messages-DiQkvwE32.mjs} +8 -5
  124. package/dist/{messages-BKXjO3NH.mjs → chunks/messages-DmvWmURo.mjs} +8 -5
  125. package/dist/chunks/{messages-DjSuq0-y2.mjs → messages-Dobxrshu2.mjs} +8 -5
  126. package/dist/{messages-DPFuzIdF2.mjs → chunks/messages-DsMIxm6I2.mjs} +8 -5
  127. package/dist/{messages-D6RYu9JW2.mjs → chunks/messages-DtssWM8x2.mjs} +8 -5
  128. package/dist/{messages-gZEhkRrR2.mjs → chunks/messages-E1tsNNG5.mjs} +8 -5
  129. package/dist/chunks/{messages-D9uWAWjW.mjs → messages-PFfYbqlm.mjs} +9 -6
  130. package/dist/{messages-DCdP2ujL.mjs → chunks/messages-bIzBNzdr2.mjs} +6 -3
  131. package/dist/{messages-WsUHzXMu2.mjs → chunks/messages-dGYum7sj2.mjs} +8 -5
  132. package/dist/chunks/{messages-C-EBhOHE.mjs → messages-kKXlI5xZ.mjs} +8 -5
  133. package/dist/chunks/{messages-Cfbmwdep2.mjs → messages-mo5OrbVj2.mjs} +8 -5
  134. package/dist/{messages-9L4qqCKh2.mjs → chunks/messages-nAdoEqRi.mjs} +8 -5
  135. package/dist/chunks/{messages-Bop7vrhU.mjs → messages-rNLuCrAb.mjs} +8 -5
  136. package/dist/chunks/{messages-yGedmr61.mjs → messages-v26RM5PC.mjs} +8 -5
  137. package/dist/{messages-Cd5CW5Tt.mjs → chunks/messages-x0kzc2oy.mjs} +9 -6
  138. package/dist/{messages-DB4UKN8D.mjs → chunks/messages-x6y6csd52.mjs} +6 -3
  139. package/dist/chunks/{messages-Br6bE1FD2.mjs → messages-x_eMclsl2.mjs} +9 -6
  140. package/dist/{messages-CVMngZNA.mjs → chunks/messages-z5pham9o.mjs} +10 -7
  141. package/dist/chunks/{messages-D9syZVGi2.mjs → messages-zcqQ8x232.mjs} +6 -3
  142. package/dist/chunks/{micromark-extension-math-BbkUb36G.mjs → micromark-extension-math-D-s54WWf.mjs} +1 -1
  143. package/dist/chunks/{mindmap-definition-QFDTVHPH-hNnyBkEP.mjs → mindmap-definition-QFDTVHPH-C-0fwUUS.mjs} +13 -13
  144. package/dist/chunks/{ordinal-B-kolV-i.mjs → ordinal-fyJMP-lj.mjs} +1 -1
  145. package/dist/chunks/packet-4T2RLAQJ-suhU85JN.mjs +3 -0
  146. package/dist/chunks/{php-DmXKyPwJ.mjs → php-DA-SOiqC.mjs} +6 -6
  147. package/dist/chunks/pie-ZZUOXDRM-DF5e16CP.mjs +3 -0
  148. package/dist/chunks/pieDiagram-DEJITSTG-BPyqheXv.mjs +179 -0
  149. package/dist/chunks/{quadrantDiagram-34T5L4WZ-CQ5fGYI5.mjs → quadrantDiagram-34T5L4WZ-kOZ1zIXB.mjs} +4 -4
  150. package/dist/chunks/radar-PYXPWWZC-DgzodpRv.mjs +3 -0
  151. package/dist/chunks/{requirementDiagram-MS252O5E-DjWKB42c.mjs → requirementDiagram-MS252O5E-C8Zkq6Lq.mjs} +64 -64
  152. package/dist/chunks/{ruby-DdOo03Kg.mjs → ruby-HDUjp8gK.mjs} +11 -11
  153. package/dist/chunks/{sankeyDiagram-XADWPNL6-BIN2evSB.mjs → sankeyDiagram-XADWPNL6-B0FhkAL9.mjs} +3 -3
  154. package/dist/chunks/{sequenceDiagram-FGHM5R23-CQz2lMoS.mjs → sequenceDiagram-FGHM5R23-Dv2H5Lbc.mjs} +447 -447
  155. package/dist/chunks/stateDiagram-FHFEXIEX-D1vcO7H_.mjs +218 -0
  156. package/dist/chunks/stateDiagram-v2-QKLJ7IA2-AoHzFiaI.mjs +28 -0
  157. package/dist/chunks/{timeline-definition-GMOUNBTQ-CzvQ7Lav.mjs → timeline-definition-GMOUNBTQ-DJmJ0TPa.mjs} +195 -195
  158. package/dist/chunks/{tools-DMSi-3RW.mjs → tools-FmtWXVgt.mjs} +109 -142
  159. package/dist/chunks/treeView-SZITEDCU-C1mc9PWf.mjs +3 -0
  160. package/dist/chunks/treemap-W4RFUUIX-ClV9Slyp.mjs +3 -0
  161. package/dist/chunks/{vennDiagram-DHZGUBPP-B0DmLQqe.mjs → vennDiagram-DHZGUBPP-Dx1rMP24.mjs} +76 -76
  162. package/dist/chunks/wardley-RL74JXVD-Dj7t7jHR.mjs +3 -0
  163. package/dist/chunks/{wardleyDiagram-NUSXRM2D-CzoKesUw.mjs → wardleyDiagram-NUSXRM2D-Dnm6lvMn.mjs} +15 -15
  164. package/dist/chunks/{xml-g8kXXALs.mjs → xml-Dq1lpp8G.mjs} +1 -1
  165. package/dist/chunks/{xychartDiagram-5P7HB3ND-CixwR8r2.mjs → xychartDiagram-5P7HB3ND-C9wFc2e9.mjs} +120 -120
  166. package/dist/full.mjs +3 -3
  167. package/dist/locales.mjs +69 -67
  168. package/dist/markdown.mjs +1 -1
  169. package/dist/{chunks/messages-CPFB2_m-2.mjs → messages--zgIPYtb.mjs} +6 -3
  170. package/dist/{messages-D8dO6OMN.mjs → messages-4jULpVvw.mjs} +16 -13
  171. package/dist/{chunks/messages-CNaaqQVz.mjs → messages-AbwSlRf_.mjs} +10 -7
  172. package/dist/{chunks/messages-AD17iDBx.mjs → messages-B-dl7Pwb2.mjs} +9 -6
  173. package/dist/{chunks/messages-CGFlOwst.mjs → messages-B3rCRhb1.mjs} +8 -5
  174. package/dist/{chunks/messages-CCEgR9GN2.mjs → messages-B73L8nKc2.mjs} +8 -5
  175. package/dist/{chunks/messages-wYQksm10.mjs → messages-BAjsD2Vm2.mjs} +8 -5
  176. package/dist/{messages-C34dTwF72.mjs → messages-BBodSb5B2.mjs} +8 -5
  177. package/dist/{chunks/messages-O6FOfUgF.mjs → messages-BTpn6H9x2.mjs} +6 -3
  178. package/dist/{chunks/messages-Cql2ozf_2.mjs → messages-BWb0GjTj2.mjs} +8 -5
  179. package/dist/{messages-ELvF3qMl2.mjs → messages-BbCgnri12.mjs} +8 -5
  180. package/dist/{chunks/messages-OSP4Hj5o.mjs → messages-Bfon_Y3q.mjs} +9 -6
  181. package/dist/{chunks/messages-fbL5y58u2.mjs → messages-BhOtow9J2.mjs} +8 -5
  182. package/dist/{messages-6eX0fWGR2.mjs → messages-BoB7m0uu2.mjs} +9 -6
  183. package/dist/{chunks/messages-C3X7dv3f.mjs → messages-BsOZPjeg.mjs} +8 -5
  184. package/dist/{chunks/messages-vDgsEqQW2.mjs → messages-BuzKUYPV.mjs} +8 -5
  185. package/dist/{chunks/messages-BjyYZeBm2.mjs → messages-BzOKMdMQ.mjs} +6 -3
  186. package/dist/{messages-CxZarWTm2.mjs → messages-C2H3PeQW2.mjs} +8 -5
  187. package/dist/{messages-D0eT_eWA.mjs → messages-C5KNzSTk.mjs} +8 -5
  188. package/dist/{messages-CNGwdIEz.mjs → messages-CIDYjE6l.mjs} +8 -5
  189. package/dist/{messages-BPw_x-6H.mjs → messages-CJmyF5ye.mjs} +7 -4
  190. package/dist/{messages-VrQw3tQ62.mjs → messages-CTwiYb2a2.mjs} +6 -3
  191. package/dist/{messages-BM2kx9Td.mjs → messages-CUHoJaDO.mjs} +8 -5
  192. package/dist/{chunks/messages-RiqdVwuN2.mjs → messages-CVeuqUjQ2.mjs} +8 -5
  193. package/dist/{messages-KVerxvZC.mjs → messages-CW75b4sz.mjs} +8 -5
  194. package/dist/{messages-DA4T9WBe.mjs → messages-CXd7YeWV.mjs} +8 -5
  195. package/dist/{chunks/messages-CXVWb9js.mjs → messages-CjlYkunD.mjs} +8 -5
  196. package/dist/{chunks/messages-B8hICx3L.mjs → messages-CrGx64yd.mjs} +9 -6
  197. package/dist/{chunks/messages-C7Pjof0d2.mjs → messages-Ct0jbgHd.mjs} +8 -5
  198. package/dist/{messages-C67YUZ9-.mjs → messages-CtKrCYD1.mjs} +8 -5
  199. package/dist/{chunks/messages-B03yUEra2.mjs → messages-Cu2eLjfJ.mjs} +8 -5
  200. package/dist/{messages-BwttyHDI2.mjs → messages-CvwQ-fK_2.mjs} +8 -5
  201. package/dist/{chunks/messages-zQOpKjl3.mjs → messages-Cy6UYN9b.mjs} +6 -3
  202. package/dist/{messages-CrjQ2Op0.mjs → messages-D01vnfA9.mjs} +8 -5
  203. package/dist/{messages-C6yKu_PJ.mjs → messages-D0BAV45W.mjs} +8 -5
  204. package/dist/{messages-DxEiqa-B.mjs → messages-D5LGpdga.mjs} +9 -6
  205. package/dist/{messages-Dl0bfeA-.mjs → messages-DATK4ftv.mjs} +9 -6
  206. package/dist/{chunks/messages-D_kZN9rB.mjs → messages-DEl77Urv2.mjs} +9 -6
  207. package/dist/{messages-BRY51SEw2.mjs → messages-DHNjM2nv2.mjs} +6 -3
  208. package/dist/{messages-OOiDDmVw.mjs → messages-DMW8b_sO.mjs} +8 -5
  209. package/dist/{messages-tb1FD_ge.mjs → messages-DNmgANKr.mjs} +7 -4
  210. package/dist/{messages-Do3mHd9U.mjs → messages-DQaa3cEM.mjs} +9 -6
  211. package/dist/{chunks/messages-VtfKWZ2S.mjs → messages-DSlD4bV9.mjs} +8 -5
  212. package/dist/{messages-Dxr1BBvo.mjs → messages-DTzbkXFt.mjs} +8 -5
  213. package/dist/{chunks/messages-SP659Sal2.mjs → messages-DbZihxtV.mjs} +8 -5
  214. package/dist/{messages-Cv1PSaNk.mjs → messages-DeE8fyKQ.mjs} +8 -5
  215. package/dist/{messages-B4zPxKl62.mjs → messages-Dg-TpO2S2.mjs} +8 -5
  216. package/dist/{messages-CLZoy5fQ.mjs → messages-DgP82LzF.mjs} +7 -4
  217. package/dist/{chunks/messages-C85zv_7x.mjs → messages-Dh3Vt7WC.mjs} +7 -4
  218. package/dist/{chunks/messages-bFEdH3lv.mjs → messages-DiVVyZD22.mjs} +9 -6
  219. package/dist/{messages-BSNsrZVN.mjs → messages-DpRnGjoe.mjs} +10 -7
  220. package/dist/{messages-Dx5n6MLQ2.mjs → messages-DqZmrFaa2.mjs} +8 -5
  221. package/dist/{messages-D8U5D391.mjs → messages-Dra9Fz5Q.mjs} +11 -8
  222. package/dist/{chunks/messages-CpXvyGWv2.mjs → messages-DuPBRgEF2.mjs} +7 -4
  223. package/dist/{messages-JVJdC0Er2.mjs → messages-DuxEyAY-2.mjs} +9 -6
  224. package/dist/{chunks/messages-BGmvvtg_.mjs → messages-FmJD6lHR2.mjs} +8 -5
  225. package/dist/{messages-BLW2GX7J2.mjs → messages-ONielGl92.mjs} +8 -5
  226. package/dist/{chunks/messages-B2dU00Z3.mjs → messages-RzgUqCGb2.mjs} +8 -5
  227. package/dist/{chunks/messages-YbckahVx2.mjs → messages-U22AKGKs.mjs} +8 -5
  228. package/dist/{chunks/messages-CGPxUESo.mjs → messages-XufeeRfO.mjs} +8 -5
  229. package/dist/{messages-DUYxMxrQ2.mjs → messages-fprUm7SO2.mjs} +8 -5
  230. package/dist/{chunks/messages-BCifzMVO2.mjs → messages-gFNdz3Tn2.mjs} +8 -5
  231. package/dist/{messages-DfqM_XvD.mjs → messages-h_n5GBm6.mjs} +16 -13
  232. package/dist/{chunks/messages-VlEyFUxF2.mjs → messages-oOogIpsL2.mjs} +8 -5
  233. package/dist/{messages-D_V0kHD7.mjs → messages-otwg3KcK.mjs} +8 -5
  234. package/dist/{messages-BLfK27kX.mjs → messages-rDDoBMWb.mjs} +8 -5
  235. package/dist/{chunks/messages-BBe45sPH.mjs → messages-trQPxZIu.mjs} +8 -5
  236. package/dist/react.mjs +2 -2
  237. package/dist/tools.mjs +2 -2
  238. package/dist/vendor.LICENSE.txt +64 -64
  239. package/package.json +3 -2
  240. package/src/blok.ts +55 -0
  241. package/src/components/block/index.ts +2 -2
  242. package/src/components/block-tunes/block-tune-delete.ts +1 -0
  243. package/src/components/i18n/locales/am/messages.json +8 -5
  244. package/src/components/i18n/locales/ar/messages.json +8 -5
  245. package/src/components/i18n/locales/az/messages.json +8 -5
  246. package/src/components/i18n/locales/bg/messages.json +7 -4
  247. package/src/components/i18n/locales/bn/messages.json +8 -5
  248. package/src/components/i18n/locales/bs/messages.json +10 -7
  249. package/src/components/i18n/locales/cs/messages.json +9 -6
  250. package/src/components/i18n/locales/da/messages.json +9 -6
  251. package/src/components/i18n/locales/de/messages.json +9 -6
  252. package/src/components/i18n/locales/dv/messages.json +8 -5
  253. package/src/components/i18n/locales/el/messages.json +8 -5
  254. package/src/components/i18n/locales/en/messages.json +2 -0
  255. package/src/components/i18n/locales/es/messages.json +9 -6
  256. package/src/components/i18n/locales/et/messages.json +7 -4
  257. package/src/components/i18n/locales/fa/messages.json +8 -5
  258. package/src/components/i18n/locales/fi/messages.json +8 -5
  259. package/src/components/i18n/locales/fil/messages.json +16 -13
  260. package/src/components/i18n/locales/fr/messages.json +8 -5
  261. package/src/components/i18n/locales/gu/messages.json +8 -5
  262. package/src/components/i18n/locales/he/messages.json +8 -5
  263. package/src/components/i18n/locales/hi/messages.json +8 -5
  264. package/src/components/i18n/locales/hr/messages.json +10 -7
  265. package/src/components/i18n/locales/hu/messages.json +9 -6
  266. package/src/components/i18n/locales/hy/messages.json +16 -13
  267. package/src/components/i18n/locales/id/messages.json +7 -4
  268. package/src/components/i18n/locales/it/messages.json +11 -8
  269. package/src/components/i18n/locales/ja/messages.json +8 -5
  270. package/src/components/i18n/locales/ka/messages.json +8 -5
  271. package/src/components/i18n/locales/km/messages.json +6 -3
  272. package/src/components/i18n/locales/kn/messages.json +8 -5
  273. package/src/components/i18n/locales/ko/messages.json +8 -5
  274. package/src/components/i18n/locales/ku/messages.json +8 -5
  275. package/src/components/i18n/locales/lo/messages.json +6 -3
  276. package/src/components/i18n/locales/lt/messages.json +8 -5
  277. package/src/components/i18n/locales/lv/messages.json +8 -5
  278. package/src/components/i18n/locales/mk/messages.json +8 -5
  279. package/src/components/i18n/locales/ml/messages.json +8 -5
  280. package/src/components/i18n/locales/mn/messages.json +8 -5
  281. package/src/components/i18n/locales/mr/messages.json +8 -5
  282. package/src/components/i18n/locales/ms/messages.json +6 -3
  283. package/src/components/i18n/locales/my/messages.json +8 -5
  284. package/src/components/i18n/locales/ne/messages.json +8 -5
  285. package/src/components/i18n/locales/nl/messages.json +8 -5
  286. package/src/components/i18n/locales/no/messages.json +9 -6
  287. package/src/components/i18n/locales/pa/messages.json +8 -5
  288. package/src/components/i18n/locales/pl/messages.json +9 -6
  289. package/src/components/i18n/locales/ps/messages.json +8 -5
  290. package/src/components/i18n/locales/pt/messages.json +8 -5
  291. package/src/components/i18n/locales/ro/messages.json +8 -5
  292. package/src/components/i18n/locales/ru/messages.json +7 -4
  293. package/src/components/i18n/locales/sd/messages.json +8 -5
  294. package/src/components/i18n/locales/si/messages.json +8 -5
  295. package/src/components/i18n/locales/sk/messages.json +9 -6
  296. package/src/components/i18n/locales/sl/messages.json +9 -6
  297. package/src/components/i18n/locales/sq/messages.json +9 -6
  298. package/src/components/i18n/locales/sr/messages.json +8 -5
  299. package/src/components/i18n/locales/sv/messages.json +8 -5
  300. package/src/components/i18n/locales/sw/messages.json +6 -3
  301. package/src/components/i18n/locales/ta/messages.json +8 -5
  302. package/src/components/i18n/locales/te/messages.json +8 -5
  303. package/src/components/i18n/locales/th/messages.json +6 -3
  304. package/src/components/i18n/locales/tr/messages.json +8 -5
  305. package/src/components/i18n/locales/ug/messages.json +8 -5
  306. package/src/components/i18n/locales/uk/messages.json +7 -4
  307. package/src/components/i18n/locales/ur/messages.json +8 -5
  308. package/src/components/i18n/locales/vi/messages.json +6 -3
  309. package/src/components/i18n/locales/yi/messages.json +8 -5
  310. package/src/components/i18n/locales/zh/messages.json +8 -5
  311. package/src/components/inline-tools/inline-tool-code.ts +0 -19
  312. package/src/components/inline-tools/inline-tool-italic.ts +3 -20
  313. package/src/components/inline-tools/inline-tool-strikethrough.ts +0 -19
  314. package/src/components/inline-tools/inline-tool-underline.ts +0 -19
  315. package/src/components/inline-tools/services/bold-normalization-pass.ts +1 -29
  316. package/src/components/modules/blockEvents/composers/keyboardNavigation.ts +11 -5
  317. package/src/components/modules/blockEvents/composers/markdownShortcuts.ts +105 -2
  318. package/src/components/modules/blockEvents/constants.ts +24 -0
  319. package/src/components/modules/blockManager/blockManager.ts +1 -1
  320. package/src/components/modules/blockManager/types.ts +1 -1
  321. package/src/components/modules/toolbar/blockSettings.ts +89 -11
  322. package/src/components/modules/ui.ts +1 -0
  323. package/src/components/modules/uiControllers/controllers/keyboard.ts +55 -5
  324. package/src/components/modules/yjs/document-store.ts +1 -1
  325. package/src/components/modules/yjs/index.ts +1 -1
  326. package/src/components/utils/popover/popover-abstract.ts +9 -0
  327. package/src/styles/main.css +3 -0
  328. package/src/tools/code/index.ts +1 -0
  329. package/src/tools/database/database-view.ts +269 -0
  330. package/src/tools/database/types.ts +16 -0
  331. package/src/tools/quote/index.ts +1 -0
  332. package/types/configs/blok-config.d.ts +13 -3
  333. package/types/configs/index.d.ts +1 -0
  334. package/types/configs/user-info.d.ts +14 -0
  335. package/types/data-formats/output-data.d.ts +2 -2
  336. package/types/index.d.ts +1 -0
  337. package/dist/chunks/_basePickBy-DISiGhsr.mjs +0 -410
  338. package/dist/chunks/_baseUniq-gAuHRtRF.mjs +0 -1045
  339. package/dist/chunks/_getTag-Aj56Wgor.mjs +0 -26
  340. package/dist/chunks/architecture-YZFGNWBL-CuqTb_ae.mjs +0 -3
  341. package/dist/chunks/chunk-5PVQY5BW-CORl9dnu.mjs +0 -1692
  342. package/dist/chunks/classDiagram-6PBFFD2Q-C59BZJxp.mjs +0 -30
  343. package/dist/chunks/classDiagram-v2-HSJHXN6E-7a0qeMsE.mjs +0 -30
  344. package/dist/chunks/diagram-5BDNPKRD-CZGfTYEe.mjs +0 -112
  345. package/dist/chunks/gitGraph-7Q5UKJZL-Dl-vQzrq.mjs +0 -3
  346. package/dist/chunks/info-OMHHGYJF-BOejJvJR.mjs +0 -3
  347. package/dist/chunks/line-Dct5pMmw.mjs +0 -34
  348. package/dist/chunks/mermaid.core-CA8nc1sZ.mjs +0 -989
  349. package/dist/chunks/packet-4T2RLAQJ-B5ZMgwzZ.mjs +0 -3
  350. package/dist/chunks/pie-ZZUOXDRM-B9l6y0XJ.mjs +0 -3
  351. package/dist/chunks/pieDiagram-DEJITSTG-Gw-fsc6U.mjs +0 -179
  352. package/dist/chunks/radar-PYXPWWZC-D5kYmUaB.mjs +0 -3
  353. package/dist/chunks/stateDiagram-FHFEXIEX-BIBFsF65.mjs +0 -218
  354. package/dist/chunks/stateDiagram-v2-QKLJ7IA2-BZUmAVw7.mjs +0 -28
  355. package/dist/chunks/treeView-SZITEDCU-BNtnNxpI.mjs +0 -3
  356. package/dist/chunks/treemap-W4RFUUIX-DYENULz2.mjs +0 -3
  357. package/dist/chunks/wardley-RL74JXVD-ByNHVBTb.mjs +0 -3
  358. /package/dist/chunks/{am-BxlkYGsI.mjs → am-Bbd7cTHS.mjs} +0 -0
  359. /package/dist/chunks/{ar-9vlpr9V8.mjs → ar-Bo71sCQE.mjs} +0 -0
  360. /package/dist/chunks/{array-BsrkCVSZ.mjs → array-DbiMs_0t.mjs} +0 -0
  361. /package/dist/chunks/{az-ON63W_FP.mjs → az-BnNrO_xK.mjs} +0 -0
  362. /package/dist/chunks/{bg-CtXWTP5w.mjs → bg-CMd2n-OG.mjs} +0 -0
  363. /package/dist/chunks/{bn-BERvhXM4.mjs → bn-B3lorfXA.mjs} +0 -0
  364. /package/dist/chunks/{bs-CBg8NVPG.mjs → bs-_zM8QBsA.mjs} +0 -0
  365. /package/dist/chunks/{c-C6JXJf5K.mjs → c-DmKJe6GM.mjs} +0 -0
  366. /package/dist/chunks/{core-Bm6DWt7D.mjs → core-C942GvJO.mjs} +0 -0
  367. /package/dist/chunks/{cs-DeQddxS7.mjs → cs-nodpmLBf.mjs} +0 -0
  368. /package/dist/chunks/{csharp-YHxeHpeH.mjs → csharp-Drv96dbi.mjs} +0 -0
  369. /package/dist/chunks/{css-DdLevFaX.mjs → css-82tNAoU6.mjs} +0 -0
  370. /package/dist/chunks/{cytoscape.esm-BvD8wo00.mjs → cytoscape.esm-DSb9a7HE.mjs} +0 -0
  371. /package/dist/chunks/{da-DyTo-ec_.mjs → da-DwzgQcXQ.mjs} +0 -0
  372. /package/dist/chunks/{dart-DrPWqfcC.mjs → dart-DE9j8McI.mjs} +0 -0
  373. /package/dist/chunks/{de-Cu7545m1.mjs → de-BvWPiNt6.mjs} +0 -0
  374. /package/dist/chunks/{defaultLocale-ChuSeAxU.mjs → defaultLocale-yTyMJ3IT.mjs} +0 -0
  375. /package/dist/chunks/{dist-Ctq-pyfb.mjs → dist-X14EnMrO.mjs} +0 -0
  376. /package/dist/chunks/{dockerfile-C68ALcaN.mjs → dockerfile-D9DFksUy.mjs} +0 -0
  377. /package/dist/chunks/{el-oiubLRBq.mjs → el-B_D7wUrZ.mjs} +0 -0
  378. /package/dist/chunks/{engine-javascript-CJpnSvzf.mjs → engine-javascript-Dd6ViPCH.mjs} +0 -0
  379. /package/dist/chunks/{es-DZUC6Klv.mjs → es-Bn_ZFyW9.mjs} +0 -0
  380. /package/dist/chunks/{et-CDeklAog.mjs → et-CUcULjoh.mjs} +0 -0
  381. /package/dist/chunks/{fa-Cafp7_Li.mjs → fa-BRhCTsOy.mjs} +0 -0
  382. /package/dist/chunks/{fi-BD_V_aVW.mjs → fi-BEvyU9n6.mjs} +0 -0
  383. /package/dist/chunks/{fil-Crsfbtx4.mjs → fil-Dlp1_W2B.mjs} +0 -0
  384. /package/dist/chunks/{fr-BGGc04Zv.mjs → fr-DJBeOAx1.mjs} +0 -0
  385. /package/dist/chunks/{go-Fm5N96DN.mjs → go-jyWjtO8q.mjs} +0 -0
  386. /package/dist/chunks/{gu-Vg_BgCTp.mjs → gu-0hWvx16l.mjs} +0 -0
  387. /package/dist/chunks/{he-DTY9chlZ.mjs → he-CYe88qXp.mjs} +0 -0
  388. /package/dist/chunks/{hi-DChMXk0x.mjs → hi-DuLkkPWn.mjs} +0 -0
  389. /package/dist/chunks/{hr-BWVgNU8k.mjs → hr-BwCB1IMW.mjs} +0 -0
  390. /package/dist/chunks/{hu-B37awHXA.mjs → hu-C2dLyTeX.mjs} +0 -0
  391. /package/dist/chunks/{hy-DGC_GDHh.mjs → hy-DXKoDpv9.mjs} +0 -0
  392. /package/dist/chunks/{i18next-CXx5niYF.mjs → i18next-CLUkHqmV.mjs} +0 -0
  393. /package/dist/chunks/{id-V7cw6La2.mjs → id-D4chLuW_.mjs} +0 -0
  394. /package/dist/chunks/{init-C6T-mugb.mjs → init-BlLeEogJ.mjs} +0 -0
  395. /package/dist/chunks/{it-DrTGP8Rn.mjs → it-Hto3G26t.mjs} +0 -0
  396. /package/dist/chunks/{ja-DS4pbJEG.mjs → ja-UxHm_PPZ.mjs} +0 -0
  397. /package/dist/chunks/{java-83DWBpzu.mjs → java-Dhv78FEb.mjs} +0 -0
  398. /package/dist/chunks/{javascript-CBgeF1Xx.mjs → javascript-DilE9EuZ.mjs} +0 -0
  399. /package/dist/chunks/{json-BI17y-1H.mjs → json-LUtHrtDA.mjs} +0 -0
  400. /package/dist/chunks/{ka-BueyosRh.mjs → ka-BnjXwPUq.mjs} +0 -0
  401. /package/dist/chunks/{katex-CmTPfM0f.mjs → katex-B8jUB5Cv.mjs} +0 -0
  402. /package/dist/chunks/{km-B0K891yW.mjs → km-exgzZBIE.mjs} +0 -0
  403. /package/dist/chunks/{kn-BQ__skg8.mjs → kn-DjjUg8aO.mjs} +0 -0
  404. /package/dist/chunks/{ko-BuPxi_7e.mjs → ko-Cu0YUSV6.mjs} +0 -0
  405. /package/dist/chunks/{kotlin-DjnvsrfO.mjs → kotlin-DFLPXbOQ.mjs} +0 -0
  406. /package/dist/chunks/{ku-nQjwPRw2.mjs → ku-D-IxJ0fx.mjs} +0 -0
  407. /package/dist/chunks/{lo-K5NVFoq1.mjs → lo-BcwjJBcv.mjs} +0 -0
  408. /package/dist/chunks/{lt-D3xD6Eb2.mjs → lt-Bt05MFPC.mjs} +0 -0
  409. /package/dist/chunks/{lv-DH13mzZj.mjs → lv-B01TmEFW.mjs} +0 -0
  410. /package/dist/chunks/{markdown-BqQYT45f.mjs → markdown-C6pnqcPd.mjs} +0 -0
  411. /package/dist/chunks/{mdast-util-math-BlK2Zu-1.mjs → mdast-util-math-D56mMxhB.mjs} +0 -0
  412. /package/dist/chunks/{mermaid-vF0cEnZ0.mjs → mermaid-BKA834jS.mjs} +0 -0
  413. /package/dist/chunks/{mk-Bb48BcDA.mjs → mk-DlZNyDhn.mjs} +0 -0
  414. /package/dist/chunks/{ml-BHPEj1kD.mjs → ml-CizMIOxl.mjs} +0 -0
  415. /package/dist/chunks/{mn-BNGzpdI6.mjs → mn-B_pDvxok.mjs} +0 -0
  416. /package/dist/chunks/{mr-D5PgU-cH.mjs → mr-D8D_7YmW.mjs} +0 -0
  417. /package/dist/chunks/{ms-DPkxqKz5.mjs → ms-CM93I8ec.mjs} +0 -0
  418. /package/dist/chunks/{my-DZGcyfxy.mjs → my-BGnGdDAV.mjs} +0 -0
  419. /package/dist/chunks/{ne-BU_Wh4Wv.mjs → ne-C6ZmmqhH.mjs} +0 -0
  420. /package/dist/chunks/{nl-DtAPk1mK.mjs → nl-UGFOU80W.mjs} +0 -0
  421. /package/dist/chunks/{no-CdW3n3BY.mjs → no-as-DKhC4.mjs} +0 -0
  422. /package/dist/chunks/{notifier-CuvTt9pe.mjs → notifier-PpnFhM0m.mjs} +0 -0
  423. /package/dist/chunks/{one-light-DmNO_Y4X.mjs → one-light-Di_o5Kb7.mjs} +0 -0
  424. /package/dist/chunks/{pa-BacCHz87.mjs → pa-DiOAveAI.mjs} +0 -0
  425. /package/dist/chunks/{path-rIMjg_tH.mjs → path-7pA19U_d.mjs} +0 -0
  426. /package/dist/chunks/{pl-8zBJbmhZ.mjs → pl-DXk8ye3B.mjs} +0 -0
  427. /package/dist/chunks/{ps-c6nGXD-W.mjs → ps-CuxilZ3F.mjs} +0 -0
  428. /package/dist/chunks/{pt-B5yR8Qhr.mjs → pt-DsT6E77q.mjs} +0 -0
  429. /package/dist/chunks/{python-DfwfY9t5.mjs → python-DYiHKGPV.mjs} +0 -0
  430. /package/dist/chunks/{r-BD2D7qEW.mjs → r-BZ4pC-Uz.mjs} +0 -0
  431. /package/dist/chunks/{ro-Nscylsqb.mjs → ro-CcAQOL-B.mjs} +0 -0
  432. /package/dist/chunks/{rough.esm-cmMIcj7N.mjs → rough.esm-BPA_YwbP.mjs} +0 -0
  433. /package/dist/chunks/{ru-DxERQkVJ.mjs → ru-hD41D0Fd.mjs} +0 -0
  434. /package/dist/chunks/{rust-DEDueB5R.mjs → rust-Db_HEGL5.mjs} +0 -0
  435. /package/dist/chunks/{scala-CsjqvxE4.mjs → scala-B1kK21mu.mjs} +0 -0
  436. /package/dist/chunks/{sd-5z-QY3q9.mjs → sd-Biu7f00A.mjs} +0 -0
  437. /package/dist/chunks/{shellscript-Bh5zEpnQ.mjs → shellscript-BBh7AxMC.mjs} +0 -0
  438. /package/dist/chunks/{si-DTL0mzrx.mjs → si-Bhto6prC.mjs} +0 -0
  439. /package/dist/chunks/{sk-DrGczTvY.mjs → sk-Ce7J4sHX.mjs} +0 -0
  440. /package/dist/chunks/{sl-D8nJjig4.mjs → sl-Fz7idR9w.mjs} +0 -0
  441. /package/dist/chunks/{sq-C74Hm3YL.mjs → sq-CnLb3bAQ.mjs} +0 -0
  442. /package/dist/chunks/{sql-D9CrOi1i.mjs → sql-DHkazX4B.mjs} +0 -0
  443. /package/dist/chunks/{sr-DAwB05Gj.mjs → sr-Bc5JbF-b.mjs} +0 -0
  444. /package/dist/chunks/{src-DVJl6f6s.mjs → src-B3rrEIze.mjs} +0 -0
  445. /package/dist/chunks/{sv-BkHBsN4y.mjs → sv-B86P2LyK.mjs} +0 -0
  446. /package/dist/chunks/{sw-BBQLTq_z.mjs → sw-CnQXriTg.mjs} +0 -0
  447. /package/dist/chunks/{swift-Dpyt0s2c.mjs → swift-DZdprfb-.mjs} +0 -0
  448. /package/dist/chunks/{ta-DRRzdKky.mjs → ta-CG4BbxjE.mjs} +0 -0
  449. /package/dist/chunks/{te-CedXLsKM.mjs → te-CkE35V1X.mjs} +0 -0
  450. /package/dist/chunks/{th-DDOlGA0W.mjs → th-BCtkHu3E.mjs} +0 -0
  451. /package/dist/chunks/{tr-ClgvwOlL.mjs → tr-D5Cexvko.mjs} +0 -0
  452. /package/dist/chunks/{typescript-DO5cd4m8.mjs → typescript-DhtGMhWX.mjs} +0 -0
  453. /package/dist/chunks/{ug-bXxwiinM.mjs → ug-Bt9xMT4p.mjs} +0 -0
  454. /package/dist/chunks/{uk-Dp46o_VT.mjs → uk-D1g7UV0v.mjs} +0 -0
  455. /package/dist/chunks/{ur-MfEEhdFq.mjs → ur-B69faQh_.mjs} +0 -0
  456. /package/dist/chunks/{vi-bt-3LPGO.mjs → vi--gW42cZG.mjs} +0 -0
  457. /package/dist/chunks/{vitesse-dark-CcorSKT2.mjs → vitesse-dark-B5oAIYZ5.mjs} +0 -0
  458. /package/dist/chunks/{yaml-CrNNZyLb.mjs → yaml-T4MCc8o4.mjs} +0 -0
  459. /package/dist/chunks/{zh-Dgyb5Ly8.mjs → zh-DgQ6P8Lu.mjs} +0 -0
@@ -1,207 +1,22 @@
1
1
  import { t as e } from "./objectSpread2-CWwMYL_U.mjs";
2
- import { t } from "./graphlib-Cye9EPNq.mjs";
3
- import { g as n, h as r, p as i } from "./src-DVJl6f6s.mjs";
4
- import { D as a, L as o, a as s, b as c, c as l, nt as u, s as d, w as f, y as p } from "./chunk-ICPOFSXX-BHZIN46A.mjs";
5
- import { t as m } from "./channel-Cln-eWE0.mjs";
6
- import "./dist-Ctq-pyfb.mjs";
7
- import { $ as h, C as g, E as _, F as v, I as y, L as b, N as x, O as S, P as C, S as w, T, U as E, V as D, _ as O, b as k, c as ee, h as A, i as j, j as te, k as ne, v as re, w as ie, y as M } from "./chunk-5PVQY5BW-CORl9dnu.mjs";
8
- import { t as ae } from "./line-Dct5pMmw.mjs";
9
- import { n as oe } from "./chunk-U2HBQHQK-B88ZUOTL.mjs";
10
- import { t as se } from "./chunk-FMBD7UC4-DjV0W7UE.mjs";
11
- import { n as ce, t as N } from "./chunk-BSJP7CBP-CJExmx8a.mjs";
12
- import { n as le, t as ue } from "./chunk-ZZ45TVLE-D1xks9zd.mjs";
13
- import { n as de, t as fe } from "./_getTag-Aj56Wgor.mjs";
14
- //#region node_modules/mermaid/node_modules/lodash-es/_arrayEach.js
15
- function pe(e, t) {
16
- for (var n = -1, r = e == null ? 0 : e.length; ++n < r && t(e[n], n, e) !== !1;);
17
- return e;
18
- }
19
- //#endregion
20
- //#region node_modules/mermaid/node_modules/lodash-es/keys.js
21
- function me(e) {
22
- return T(e) ? re(e) : de(e);
23
- }
24
- //#endregion
25
- //#region node_modules/mermaid/node_modules/lodash-es/_baseAssign.js
26
- function he(e, t) {
27
- return e && M(t, me(t), e);
28
- }
29
- //#endregion
30
- //#region node_modules/mermaid/node_modules/lodash-es/_baseAssignIn.js
31
- function ge(e, t) {
32
- return e && M(t, O(t), e);
33
- }
34
- //#endregion
35
- //#region node_modules/mermaid/node_modules/lodash-es/_arrayFilter.js
36
- function _e(e, t) {
37
- for (var n = -1, r = e == null ? 0 : e.length, i = 0, a = []; ++n < r;) {
38
- var o = e[n];
39
- t(o, n, e) && (a[i++] = o);
40
- }
41
- return a;
42
- }
43
- //#endregion
44
- //#region node_modules/mermaid/node_modules/lodash-es/stubArray.js
45
- function ve() {
46
- return [];
47
- }
48
- //#endregion
49
- //#region node_modules/mermaid/node_modules/lodash-es/_getSymbols.js
50
- var ye = Object.prototype.propertyIsEnumerable, be = Object.getOwnPropertySymbols, xe = be ? function(e) {
51
- return e == null ? [] : (e = Object(e), _e(be(e), function(t) {
52
- return ye.call(e, t);
53
- }));
54
- } : ve;
55
- //#endregion
56
- //#region node_modules/mermaid/node_modules/lodash-es/_copySymbols.js
57
- function Se(e, t) {
58
- return M(e, xe(e), t);
59
- }
60
- //#endregion
61
- //#region node_modules/mermaid/node_modules/lodash-es/_arrayPush.js
62
- function Ce(e, t) {
63
- for (var n = -1, r = t.length, i = e.length; ++n < r;) e[i + n] = t[n];
64
- return e;
65
- }
66
- //#endregion
67
- //#region node_modules/mermaid/node_modules/lodash-es/_getSymbolsIn.js
68
- var we = Object.getOwnPropertySymbols ? function(e) {
69
- for (var t = []; e;) Ce(t, xe(e)), e = te(e);
70
- return t;
71
- } : ve;
72
- //#endregion
73
- //#region node_modules/mermaid/node_modules/lodash-es/_copySymbolsIn.js
74
- function Te(e, t) {
75
- return M(e, we(e), t);
76
- }
77
- //#endregion
78
- //#region node_modules/mermaid/node_modules/lodash-es/_baseGetAllKeys.js
79
- function Ee(e, t, n) {
80
- var r = t(e);
81
- return _(e) ? r : Ce(r, n(e));
82
- }
83
- //#endregion
84
- //#region node_modules/mermaid/node_modules/lodash-es/_getAllKeys.js
85
- function De(e) {
86
- return Ee(e, me, xe);
87
- }
88
- //#endregion
89
- //#region node_modules/mermaid/node_modules/lodash-es/_getAllKeysIn.js
90
- function Oe(e) {
91
- return Ee(e, O, we);
92
- }
93
- //#endregion
94
- //#region node_modules/mermaid/node_modules/lodash-es/_initCloneArray.js
95
- var ke = Object.prototype.hasOwnProperty;
96
- function Ae(e) {
97
- var t = e.length, n = new e.constructor(t);
98
- return t && typeof e[0] == "string" && ke.call(e, "index") && (n.index = e.index, n.input = e.input), n;
99
- }
100
- //#endregion
101
- //#region node_modules/mermaid/node_modules/lodash-es/_cloneDataView.js
102
- function je(e, t) {
103
- var n = t ? v(e.buffer) : e.buffer;
104
- return new e.constructor(n, e.byteOffset, e.byteLength);
105
- }
106
- //#endregion
107
- //#region node_modules/mermaid/node_modules/lodash-es/_cloneRegExp.js
108
- var Me = /\w*$/;
109
- function Ne(e) {
110
- var t = new e.constructor(e.source, Me.exec(e));
111
- return t.lastIndex = e.lastIndex, t;
112
- }
113
- //#endregion
114
- //#region node_modules/mermaid/node_modules/lodash-es/_cloneSymbol.js
115
- var Pe = E ? E.prototype : void 0, Fe = Pe ? Pe.valueOf : void 0;
116
- function Ie(e) {
117
- return Fe ? Object(Fe.call(e)) : {};
118
- }
119
- //#endregion
120
- //#region node_modules/mermaid/node_modules/lodash-es/_initCloneByTag.js
121
- var Le = "[object Boolean]", Re = "[object Date]", ze = "[object Map]", Be = "[object Number]", Ve = "[object RegExp]", He = "[object Set]", Ue = "[object String]", We = "[object Symbol]", Ge = "[object ArrayBuffer]", Ke = "[object DataView]", qe = "[object Float32Array]", Je = "[object Float64Array]", Ye = "[object Int8Array]", Xe = "[object Int16Array]", Ze = "[object Int32Array]", Qe = "[object Uint8Array]", $e = "[object Uint8ClampedArray]", et = "[object Uint16Array]", tt = "[object Uint32Array]";
122
- function nt(e, t, n) {
123
- var r = e.constructor;
124
- switch (t) {
125
- case Ge: return v(e);
126
- case Le:
127
- case Re: return new r(+e);
128
- case Ke: return je(e, n);
129
- case qe:
130
- case Je:
131
- case Ye:
132
- case Xe:
133
- case Ze:
134
- case Qe:
135
- case $e:
136
- case et:
137
- case tt: return C(e, n);
138
- case ze: return new r();
139
- case Be:
140
- case Ue: return new r(e);
141
- case Ve: return Ne(e);
142
- case He: return new r();
143
- case We: return Ie(e);
144
- }
145
- }
146
- //#endregion
147
- //#region node_modules/mermaid/node_modules/lodash-es/_baseIsMap.js
148
- var rt = "[object Map]";
149
- function it(e) {
150
- return S(e) && fe(e) == rt;
151
- }
152
- //#endregion
153
- //#region node_modules/mermaid/node_modules/lodash-es/isMap.js
154
- var at = w && w.isMap, ot = at ? g(at) : it, st = "[object Set]";
155
- function ct(e) {
156
- return S(e) && fe(e) == st;
157
- }
158
- //#endregion
159
- //#region node_modules/mermaid/node_modules/lodash-es/isSet.js
160
- var lt = w && w.isSet, ut = lt ? g(lt) : ct, dt = 1, ft = 2, pt = 4, mt = "[object Arguments]", ht = "[object Array]", gt = "[object Boolean]", _t = "[object Date]", vt = "[object Error]", yt = "[object Function]", bt = "[object GeneratorFunction]", xt = "[object Map]", St = "[object Number]", Ct = "[object Object]", wt = "[object RegExp]", Tt = "[object Set]", Et = "[object String]", Dt = "[object Symbol]", Ot = "[object WeakMap]", kt = "[object ArrayBuffer]", At = "[object DataView]", jt = "[object Float32Array]", Mt = "[object Float64Array]", Nt = "[object Int8Array]", Pt = "[object Int16Array]", Ft = "[object Int32Array]", It = "[object Uint8Array]", Lt = "[object Uint8ClampedArray]", Rt = "[object Uint16Array]", zt = "[object Uint32Array]", P = {};
161
- P[mt] = P[ht] = P[kt] = P[At] = P[gt] = P[_t] = P[jt] = P[Mt] = P[Nt] = P[Pt] = P[Ft] = P[xt] = P[St] = P[Ct] = P[wt] = P[Tt] = P[Et] = P[Dt] = P[It] = P[Lt] = P[Rt] = P[zt] = !0, P[vt] = P[yt] = P[Ot] = !1;
162
- function F(e, t, n, r, i, a) {
163
- var o, s = t & dt, c = t & ft, l = t & pt;
164
- if (n && (o = i ? n(e, r, i, a) : n(e)), o !== void 0) return o;
165
- if (!D(e)) return e;
166
- var u = _(e);
167
- if (u) {
168
- if (o = Ae(e), !s) return x(e, o);
169
- } else {
170
- var d = fe(e), f = d == yt || d == bt;
171
- if (ie(e)) return y(e, s);
172
- if (d == Ct || d == mt || f && !i) {
173
- if (o = c || f ? {} : ne(e), !s) return c ? Te(e, ge(o, e)) : Se(e, he(o, e));
174
- } else {
175
- if (!P[d]) return i ? e : {};
176
- o = nt(e, d, s);
177
- }
178
- }
179
- a || (a = new b());
180
- var p = a.get(e);
181
- if (p) return p;
182
- a.set(e, o), ut(e) ? e.forEach(function(r) {
183
- o.add(F(r, t, n, r, e, a));
184
- }) : ot(e) && e.forEach(function(r, i) {
185
- o.set(i, F(r, t, n, i, e, a));
186
- });
187
- var m = u ? void 0 : (l ? c ? Oe : De : c ? O : me)(e);
188
- return pe(m || e, function(r, i) {
189
- m && (i = r, r = e[i]), k(o, i, F(r, t, n, i, e, a));
190
- }), o;
191
- }
192
- //#endregion
193
- //#region node_modules/mermaid/node_modules/lodash-es/clone.js
194
- var Bt = 4;
195
- function Vt(e) {
196
- return F(e, Bt);
197
- }
198
- //#endregion
2
+ import { T as t, c as n, h as r, i } from "./chunk-5PVQY5BW-BP7ENjg7.mjs";
3
+ import { t as a } from "./clone-CUNvBGto.mjs";
4
+ import { t as o } from "./graphlib-BXNPwKuI.mjs";
5
+ import { g as s, h as c, p as l } from "./src-B3rrEIze.mjs";
6
+ import { D as u, L as d, a as f, b as p, c as m, nt as h, s as g, w as _, y as v } from "./chunk-ICPOFSXX-BOvOTlG6.mjs";
7
+ import { t as y } from "./channel-Zp_OyvEW.mjs";
8
+ import "./dist-X14EnMrO.mjs";
9
+ import { t as b } from "./line-CuvDsrkE.mjs";
10
+ import { n as x } from "./chunk-U2HBQHQK-DiQOEtQH.mjs";
11
+ import { t as S } from "./chunk-FMBD7UC4-D_RQlBGX.mjs";
12
+ import { n as C, t as w } from "./chunk-BSJP7CBP-DGU2WHwh.mjs";
13
+ import { n as T, t as E } from "./chunk-ZZ45TVLE-D28EyJ6R.mjs";
199
14
  //#region node_modules/mermaid/dist/chunks/mermaid.core/blockDiagram-DXYQGD6D.mjs
200
- var Ht, I, Ut = (function() {
201
- var t = /* @__PURE__ */ r(function(e, t, n, r) {
15
+ var D, O, k = (function() {
16
+ var t = /* @__PURE__ */ c(function(e, t, n, r) {
202
17
  for (n = n || {}, r = e.length; r--; n[e[r]] = t);
203
18
  return n;
204
- }, "o"), n = [1, 15], i = [1, 7], a = [1, 13], o = [1, 14], s = [1, 19], c = [1, 16], l = [1, 17], u = [1, 18], d = [8, 30], f = [
19
+ }, "o"), n = [1, 15], r = [1, 7], i = [1, 13], a = [1, 14], o = [1, 19], s = [1, 16], l = [1, 17], u = [1, 18], d = [8, 30], f = [
205
20
  8,
206
21
  10,
207
22
  21,
@@ -240,7 +55,7 @@ var Ht, I, Ut = (function() {
240
55
  43,
241
56
  46
242
57
  ], _ = [1, 49], v = {
243
- trace: /* @__PURE__ */ r(function() {}, "trace"),
58
+ trace: /* @__PURE__ */ c(function() {}, "trace"),
244
59
  yy: {},
245
60
  symbols_: {
246
61
  error: 2,
@@ -367,7 +182,7 @@ var Ht, I, Ut = (function() {
367
182
  [24, 3],
368
183
  [25, 3]
369
184
  ],
370
- performAction: /* @__PURE__ */ r(function(t, n, r, i, a, o, s) {
185
+ performAction: /* @__PURE__ */ c(function(t, n, r, i, a, o, s) {
371
186
  var c = o.length - 1;
372
187
  switch (a) {
373
188
  case 4:
@@ -554,16 +369,16 @@ var Ht, I, Ut = (function() {
554
369
  13: 4,
555
370
  19: 5,
556
371
  20: 6,
557
- 21: i,
372
+ 21: r,
558
373
  22: 8,
559
374
  23: 9,
560
375
  24: 10,
561
376
  25: 11,
562
377
  26: 12,
563
- 28: a,
564
- 29: o,
565
- 31: s,
566
- 39: c,
378
+ 28: i,
379
+ 29: a,
380
+ 31: o,
381
+ 39: s,
567
382
  43: l,
568
383
  46: u
569
384
  },
@@ -579,11 +394,11 @@ var Ht, I, Ut = (function() {
579
394
  26: 12,
580
395
  11: 21,
581
396
  10: n,
582
- 21: i,
583
- 28: a,
584
- 29: o,
585
- 31: s,
586
- 39: c,
397
+ 21: r,
398
+ 28: i,
399
+ 29: a,
400
+ 31: o,
401
+ 39: s,
587
402
  43: l,
588
403
  46: u
589
404
  }),
@@ -603,7 +418,7 @@ var Ht, I, Ut = (function() {
603
418
  {
604
419
  19: 26,
605
420
  26: 12,
606
- 31: s
421
+ 31: o
607
422
  },
608
423
  {
609
424
  10: n,
@@ -611,16 +426,16 @@ var Ht, I, Ut = (function() {
611
426
  13: 4,
612
427
  19: 5,
613
428
  20: 6,
614
- 21: i,
429
+ 21: r,
615
430
  22: 8,
616
431
  23: 9,
617
432
  24: 10,
618
433
  25: 11,
619
434
  26: 12,
620
- 28: a,
621
- 29: o,
622
- 31: s,
623
- 39: c,
435
+ 28: i,
436
+ 29: a,
437
+ 31: o,
438
+ 39: s,
624
439
  43: l,
625
440
  46: u
626
441
  },
@@ -639,7 +454,7 @@ var Ht, I, Ut = (function() {
639
454
  t(d, [2, 13]),
640
455
  {
641
456
  26: 35,
642
- 31: s
457
+ 31: o
643
458
  },
644
459
  { 31: [2, 14] },
645
460
  { 17: [1, 36] },
@@ -653,16 +468,16 @@ var Ht, I, Ut = (function() {
653
468
  16: m,
654
469
  19: 5,
655
470
  20: 6,
656
- 21: i,
471
+ 21: r,
657
472
  22: 8,
658
473
  23: 9,
659
474
  24: 10,
660
475
  25: 11,
661
476
  26: 12,
662
- 28: a,
663
- 29: o,
664
- 31: s,
665
- 39: c,
477
+ 28: i,
478
+ 29: a,
479
+ 31: o,
480
+ 39: s,
666
481
  43: l,
667
482
  46: u
668
483
  },
@@ -706,63 +521,63 @@ var Ht, I, Ut = (function() {
706
521
  50: [2, 15],
707
522
  52: [2, 32]
708
523
  },
709
- parseError: /* @__PURE__ */ r(function(e, t) {
524
+ parseError: /* @__PURE__ */ c(function(e, t) {
710
525
  if (t.recoverable) this.trace(e);
711
526
  else {
712
527
  var n = Error(e);
713
528
  throw n.hash = t, n;
714
529
  }
715
530
  }, "parseError"),
716
- parse: /* @__PURE__ */ r(function(e) {
717
- var t = this, n = [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: {} };
531
+ parse: /* @__PURE__ */ c(function(e) {
532
+ var t = this, n = [0], r = [], i = [null], a = [], o = this.table, s = "", l = 0, u = 0, d = 0, f = 2, p = 1, m = a.slice.call(arguments, 1), h = Object.create(this.lexer), g = { yy: {} };
718
533
  for (var _ in this.yy) Object.prototype.hasOwnProperty.call(this.yy, _) && (g.yy[_] = this.yy[_]);
719
534
  h.setInput(e, g.yy), g.yy.lexer = h, g.yy.parser = this, h.yylloc === void 0 && (h.yylloc = {});
720
535
  var v = h.yylloc;
721
- o.push(v);
536
+ a.push(v);
722
537
  var y = h.options && h.options.ranges;
723
538
  typeof g.yy.parseError == "function" ? this.parseError = g.yy.parseError : this.parseError = Object.getPrototypeOf(this).parseError;
724
539
  function b(e) {
725
- n.length -= 2 * e, a.length -= e, o.length -= e;
540
+ n.length -= 2 * e, i.length -= e, a.length -= e;
726
541
  }
727
- r(b, "popStack");
542
+ c(b, "popStack");
728
543
  function x() {
729
- var e = i.pop() || h.lex() || p;
730
- return typeof e != "number" && (e instanceof Array && (i = e, e = i.pop()), e = t.symbols_[e] || e), e;
544
+ var e = r.pop() || h.lex() || p;
545
+ return typeof e != "number" && (e instanceof Array && (r = e, e = r.pop()), e = t.symbols_[e] || e), e;
731
546
  }
732
- r(x, "lex");
733
- for (var S, C, w, T, E, D = {}, O, k, ee, A;;) {
734
- if (w = n[n.length - 1], this.defaultActions[w] ? T = this.defaultActions[w] : (S == null && (S = x()), T = s[w] && s[w][S]), T === void 0 || !T.length || !T[0]) {
735
- var j = "";
736
- for (O in A = [], s[w]) this.terminals_[O] && O > f && A.push("'" + this.terminals_[O] + "'");
737
- j = h.showPosition ? "Parse error on line " + (l + 1) + ":\n" + h.showPosition() + "\nExpecting " + A.join(", ") + ", got '" + (this.terminals_[S] || S) + "'" : "Parse error on line " + (l + 1) + ": Unexpected " + (S == p ? "end of input" : "'" + (this.terminals_[S] || S) + "'"), this.parseError(j, {
547
+ c(x, "lex");
548
+ for (var S, C, w, T, E, D = {}, O, k, A, j;;) {
549
+ if (w = n[n.length - 1], this.defaultActions[w] ? T = this.defaultActions[w] : (S == null && (S = x()), T = o[w] && o[w][S]), T === void 0 || !T.length || !T[0]) {
550
+ var M = "";
551
+ for (O in j = [], o[w]) this.terminals_[O] && O > f && j.push("'" + this.terminals_[O] + "'");
552
+ M = h.showPosition ? "Parse error on line " + (l + 1) + ":\n" + h.showPosition() + "\nExpecting " + j.join(", ") + ", got '" + (this.terminals_[S] || S) + "'" : "Parse error on line " + (l + 1) + ": Unexpected " + (S == p ? "end of input" : "'" + (this.terminals_[S] || S) + "'"), this.parseError(M, {
738
553
  text: h.match,
739
554
  token: this.terminals_[S] || S,
740
555
  line: h.yylineno,
741
556
  loc: v,
742
- expected: A
557
+ expected: j
743
558
  });
744
559
  }
745
560
  if (T[0] instanceof Array && T.length > 1) throw Error("Parse Error: multiple actions possible at state: " + w + ", token: " + S);
746
561
  switch (T[0]) {
747
562
  case 1:
748
- n.push(S), a.push(h.yytext), o.push(h.yylloc), n.push(T[1]), S = null, C ? (S = C, C = null) : (u = h.yyleng, c = h.yytext, l = h.yylineno, v = h.yylloc, d > 0 && d--);
563
+ n.push(S), i.push(h.yytext), a.push(h.yylloc), n.push(T[1]), S = null, C ? (S = C, C = null) : (u = h.yyleng, s = h.yytext, l = h.yylineno, v = h.yylloc, d > 0 && d--);
749
564
  break;
750
565
  case 2:
751
- if (k = this.productions_[T[1]][1], D.$ = a[a.length - k], D._$ = {
752
- first_line: o[o.length - (k || 1)].first_line,
753
- last_line: o[o.length - 1].last_line,
754
- first_column: o[o.length - (k || 1)].first_column,
755
- last_column: o[o.length - 1].last_column
756
- }, y && (D._$.range = [o[o.length - (k || 1)].range[0], o[o.length - 1].range[1]]), E = this.performAction.apply(D, [
757
- c,
566
+ if (k = this.productions_[T[1]][1], D.$ = i[i.length - k], D._$ = {
567
+ first_line: a[a.length - (k || 1)].first_line,
568
+ last_line: a[a.length - 1].last_line,
569
+ first_column: a[a.length - (k || 1)].first_column,
570
+ last_column: a[a.length - 1].last_column
571
+ }, y && (D._$.range = [a[a.length - (k || 1)].range[0], a[a.length - 1].range[1]]), E = this.performAction.apply(D, [
572
+ s,
758
573
  u,
759
574
  l,
760
575
  g.yy,
761
576
  T[1],
762
- a,
763
- o
577
+ i,
578
+ a
764
579
  ].concat(m)), E !== void 0) return E;
765
- k && (n = n.slice(0, -1 * k * 2), a = a.slice(0, -1 * k), o = o.slice(0, -1 * k)), n.push(this.productions_[T[1]][0]), a.push(D.$), o.push(D._$), ee = s[n[n.length - 2]][n[n.length - 1]], n.push(ee);
580
+ k && (n = n.slice(0, -1 * k * 2), i = i.slice(0, -1 * k), a = a.slice(0, -1 * k)), n.push(this.productions_[T[1]][0]), i.push(D.$), a.push(D._$), A = o[n[n.length - 2]][n[n.length - 1]], n.push(A);
766
581
  break;
767
582
  case 3: return !0;
768
583
  }
@@ -773,11 +588,11 @@ var Ht, I, Ut = (function() {
773
588
  v.lexer = /* @__PURE__ */ (function() {
774
589
  return {
775
590
  EOF: 1,
776
- parseError: /* @__PURE__ */ r(function(e, t) {
591
+ parseError: /* @__PURE__ */ c(function(e, t) {
777
592
  if (this.yy.parser) this.yy.parser.parseError(e, t);
778
593
  else throw Error(e);
779
594
  }, "parseError"),
780
- setInput: /* @__PURE__ */ r(function(e, t) {
595
+ setInput: /* @__PURE__ */ c(function(e, t) {
781
596
  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 = {
782
597
  first_line: 1,
783
598
  first_column: 0,
@@ -785,11 +600,11 @@ var Ht, I, Ut = (function() {
785
600
  last_column: 0
786
601
  }, this.options.ranges && (this.yylloc.range = [0, 0]), this.offset = 0, this;
787
602
  }, "setInput"),
788
- input: /* @__PURE__ */ r(function() {
603
+ input: /* @__PURE__ */ c(function() {
789
604
  var e = this._input[0];
790
605
  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;
791
606
  }, "input"),
792
- unput: /* @__PURE__ */ r(function(e) {
607
+ unput: /* @__PURE__ */ c(function(e) {
793
608
  var t = e.length, n = e.split(/(?:\r\n?|\n)/g);
794
609
  this._input = e + this._input, this.yytext = this.yytext.substr(0, this.yytext.length - t), this.offset -= t;
795
610
  var r = this.match.split(/(?:\r\n?|\n)/g);
@@ -802,10 +617,10 @@ var Ht, I, Ut = (function() {
802
617
  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
803
618
  }, this.options.ranges && (this.yylloc.range = [i[0], i[0] + this.yyleng - t]), this.yyleng = this.yytext.length, this;
804
619
  }, "unput"),
805
- more: /* @__PURE__ */ r(function() {
620
+ more: /* @__PURE__ */ c(function() {
806
621
  return this._more = !0, this;
807
622
  }, "more"),
808
- reject: /* @__PURE__ */ r(function() {
623
+ reject: /* @__PURE__ */ c(function() {
809
624
  if (this.options.backtrack_lexer) this._backtrack = !0;
810
625
  else return this.parseError("Lexical error on line " + (this.yylineno + 1) + ". You can only invoke reject() in the lexer when the lexer is of the backtracking persuasion (options.backtrack_lexer = true).\n" + this.showPosition(), {
811
626
  text: "",
@@ -814,22 +629,22 @@ var Ht, I, Ut = (function() {
814
629
  });
815
630
  return this;
816
631
  }, "reject"),
817
- less: /* @__PURE__ */ r(function(e) {
632
+ less: /* @__PURE__ */ c(function(e) {
818
633
  this.unput(this.match.slice(e));
819
634
  }, "less"),
820
- pastInput: /* @__PURE__ */ r(function() {
635
+ pastInput: /* @__PURE__ */ c(function() {
821
636
  var e = this.matched.substr(0, this.matched.length - this.match.length);
822
637
  return (e.length > 20 ? "..." : "") + e.substr(-20).replace(/\n/g, "");
823
638
  }, "pastInput"),
824
- upcomingInput: /* @__PURE__ */ r(function() {
639
+ upcomingInput: /* @__PURE__ */ c(function() {
825
640
  var e = this.match;
826
641
  return e.length < 20 && (e += this._input.substr(0, 20 - e.length)), (e.substr(0, 20) + (e.length > 20 ? "..." : "")).replace(/\n/g, "");
827
642
  }, "upcomingInput"),
828
- showPosition: /* @__PURE__ */ r(function() {
643
+ showPosition: /* @__PURE__ */ c(function() {
829
644
  var e = this.pastInput(), t = Array(e.length + 1).join("-");
830
645
  return e + this.upcomingInput() + "\n" + t + "^";
831
646
  }, "showPosition"),
832
- test_match: /* @__PURE__ */ r(function(e, t) {
647
+ test_match: /* @__PURE__ */ c(function(e, t) {
833
648
  var n, r, i;
834
649
  if (this.options.backtrack_lexer && (i = {
835
650
  yylineno: this.yylineno,
@@ -862,7 +677,7 @@ var Ht, I, Ut = (function() {
862
677
  }
863
678
  return !1;
864
679
  }, "test_match"),
865
- next: /* @__PURE__ */ r(function() {
680
+ next: /* @__PURE__ */ c(function() {
866
681
  if (this.done) return this.EOF;
867
682
  this._input || (this.done = !0);
868
683
  var e, t, n, r;
@@ -882,29 +697,29 @@ var Ht, I, Ut = (function() {
882
697
  line: this.yylineno
883
698
  });
884
699
  }, "next"),
885
- lex: /* @__PURE__ */ r(function() {
700
+ lex: /* @__PURE__ */ c(function() {
886
701
  return this.next() || this.lex();
887
702
  }, "lex"),
888
- begin: /* @__PURE__ */ r(function(e) {
703
+ begin: /* @__PURE__ */ c(function(e) {
889
704
  this.conditionStack.push(e);
890
705
  }, "begin"),
891
- popState: /* @__PURE__ */ r(function() {
706
+ popState: /* @__PURE__ */ c(function() {
892
707
  return this.conditionStack.length - 1 > 0 ? this.conditionStack.pop() : this.conditionStack[0];
893
708
  }, "popState"),
894
- _currentRules: /* @__PURE__ */ r(function() {
709
+ _currentRules: /* @__PURE__ */ c(function() {
895
710
  return this.conditionStack.length && this.conditionStack[this.conditionStack.length - 1] ? this.conditions[this.conditionStack[this.conditionStack.length - 1]].rules : this.conditions.INITIAL.rules;
896
711
  }, "_currentRules"),
897
- topState: /* @__PURE__ */ r(function(e) {
712
+ topState: /* @__PURE__ */ c(function(e) {
898
713
  return e = this.conditionStack.length - 1 - Math.abs(e || 0), e >= 0 ? this.conditionStack[e] : "INITIAL";
899
714
  }, "topState"),
900
- pushState: /* @__PURE__ */ r(function(e) {
715
+ pushState: /* @__PURE__ */ c(function(e) {
901
716
  this.begin(e);
902
717
  }, "pushState"),
903
- stateStackSize: /* @__PURE__ */ r(function() {
718
+ stateStackSize: /* @__PURE__ */ c(function() {
904
719
  return this.conditionStack.length;
905
720
  }, "stateStackSize"),
906
721
  options: {},
907
- performAction: /* @__PURE__ */ r(function(e, t, n, r) {
722
+ performAction: /* @__PURE__ */ c(function(e, t, n, r) {
908
723
  switch (n) {
909
724
  case 0: return e.getLogger().debug("Found block-beta"), 10;
910
725
  case 1: return e.getLogger().debug("Found id-block"), 29;
@@ -1328,94 +1143,94 @@ var Ht, I, Ut = (function() {
1328
1143
  function y() {
1329
1144
  this.yy = {};
1330
1145
  }
1331
- return r(y, "Parser"), y.prototype = v, v.Parser = y, new y();
1146
+ return c(y, "Parser"), y.prototype = v, v.Parser = y, new y();
1332
1147
  })();
1333
- Ut.parser = Ut;
1334
- var Wt = Ut, L = /* @__PURE__ */ new Map(), R = [], Gt = /* @__PURE__ */ new Map(), Kt = "color", qt = "fill", Jt = "bgFill", Yt = ",", Xt = c(), z = /* @__PURE__ */ new Map(), Zt = "", Qt = /* @__PURE__ */ r((e) => d.sanitizeText(e, Xt), "sanitizeText"), $t = /* @__PURE__ */ r(function(e, t = "") {
1335
- let n = z.get(e);
1148
+ k.parser = k;
1149
+ var A = k, j = /* @__PURE__ */ new Map(), M = [], N = /* @__PURE__ */ new Map(), ee = "color", te = "fill", ne = "bgFill", re = ",", ie = p(), P = /* @__PURE__ */ new Map(), F = "", ae = /* @__PURE__ */ c((e) => g.sanitizeText(e, ie), "sanitizeText"), oe = /* @__PURE__ */ c(function(e, t = "") {
1150
+ let n = P.get(e);
1336
1151
  n || (n = {
1337
1152
  id: e,
1338
1153
  styles: [],
1339
1154
  textStyles: []
1340
- }, z.set(e, n)), t != null && t.split(Yt).forEach((e) => {
1155
+ }, P.set(e, n)), t != null && t.split(re).forEach((e) => {
1341
1156
  let t = e.replace(/([^;]*);/, "$1").trim();
1342
- if (RegExp(Kt).exec(e)) {
1343
- let e = t.replace(qt, Jt).replace(Kt, qt);
1157
+ if (RegExp(ee).exec(e)) {
1158
+ let e = t.replace(te, ne).replace(ee, te);
1344
1159
  n.textStyles.push(e);
1345
1160
  }
1346
1161
  n.styles.push(t);
1347
1162
  });
1348
- }, "addStyleClass"), en = /* @__PURE__ */ r(function(e, t = "") {
1349
- let n = L.get(e);
1350
- t != null && (n.styles = t.split(Yt));
1351
- }, "addStyle2Node"), tn = /* @__PURE__ */ r(function(e, t) {
1163
+ }, "addStyleClass"), se = /* @__PURE__ */ c(function(e, t = "") {
1164
+ let n = j.get(e);
1165
+ t != null && (n.styles = t.split(re));
1166
+ }, "addStyle2Node"), ce = /* @__PURE__ */ c(function(e, t) {
1352
1167
  e.split(",").forEach(function(e) {
1353
- let n = L.get(e);
1168
+ let n = j.get(e);
1354
1169
  if (n === void 0) {
1355
1170
  let t = e.trim();
1356
1171
  n = {
1357
1172
  id: t,
1358
1173
  type: "na",
1359
1174
  children: []
1360
- }, L.set(t, n);
1175
+ }, j.set(t, n);
1361
1176
  }
1362
1177
  n.classes || (n.classes = []), n.classes.push(t);
1363
1178
  });
1364
- }, "setCssClass"), nn = /* @__PURE__ */ r((e, t) => {
1365
- var r;
1366
- let i = e.flat(), a = [], o = i.find((e) => (e == null ? void 0 : e.type) === "column-setting"), s = (r = o == null ? void 0 : o.columns) == null ? -1 : r;
1367
- for (let e of i) {
1368
- if (typeof s == "number" && s > 0 && e.type !== "column-setting" && typeof e.widthInColumns == "number" && e.widthInColumns > s && n.warn(`Block ${e.id} width ${e.widthInColumns} exceeds configured column width ${s}`), e.label && (e.label = Qt(e.label)), e.type === "classDef") {
1369
- $t(e.id, e.css);
1179
+ }, "setCssClass"), le = /* @__PURE__ */ c((e, t) => {
1180
+ var n;
1181
+ let r = e.flat(), i = [], o = r.find((e) => (e == null ? void 0 : e.type) === "column-setting"), c = (n = o == null ? void 0 : o.columns) == null ? -1 : n;
1182
+ for (let e of r) {
1183
+ if (typeof c == "number" && c > 0 && e.type !== "column-setting" && typeof e.widthInColumns == "number" && e.widthInColumns > c && s.warn(`Block ${e.id} width ${e.widthInColumns} exceeds configured column width ${c}`), e.label && (e.label = ae(e.label)), e.type === "classDef") {
1184
+ oe(e.id, e.css);
1370
1185
  continue;
1371
1186
  }
1372
1187
  if (e.type === "applyClass") {
1373
- var c;
1374
- tn(e.id, (c = e == null ? void 0 : e.styleClass) == null ? "" : c);
1188
+ var l;
1189
+ ce(e.id, (l = e == null ? void 0 : e.styleClass) == null ? "" : l);
1375
1190
  continue;
1376
1191
  }
1377
1192
  if (e.type === "applyStyles") {
1378
- e != null && e.stylesStr && en(e.id, e == null ? void 0 : e.stylesStr);
1193
+ e != null && e.stylesStr && se(e.id, e == null ? void 0 : e.stylesStr);
1379
1194
  continue;
1380
1195
  }
1381
1196
  if (e.type === "column-setting") {
1382
- var l;
1383
- t.columns = (l = e.columns) == null ? -1 : l;
1384
- } else if (e.type === "edge") {
1385
1197
  var u;
1386
- let t = ((u = Gt.get(e.id)) == null ? 0 : u) + 1;
1387
- Gt.set(e.id, t), e.id = t + "-" + e.id, R.push(e);
1198
+ t.columns = (u = e.columns) == null ? -1 : u;
1199
+ } else if (e.type === "edge") {
1200
+ var d;
1201
+ let t = ((d = N.get(e.id)) == null ? 0 : d) + 1;
1202
+ N.set(e.id, t), e.id = t + "-" + e.id, M.push(e);
1388
1203
  } else {
1389
1204
  e.label || (e.type === "composite" ? e.label = "" : e.label = e.id);
1390
- let t = L.get(e.id);
1391
- if (t === void 0 ? L.set(e.id, e) : (e.type !== "na" && (t.type = e.type), e.label !== e.id && (t.label = e.label)), e.children && nn(e.children, e), e.type === "space") {
1392
- var d;
1393
- let t = (d = e.width) == null ? 1 : d;
1205
+ let t = j.get(e.id);
1206
+ if (t === void 0 ? j.set(e.id, e) : (e.type !== "na" && (t.type = e.type), e.label !== e.id && (t.label = e.label)), e.children && le(e.children, e), e.type === "space") {
1207
+ var f;
1208
+ let t = (f = e.width) == null ? 1 : f;
1394
1209
  for (let n = 0; n < t; n++) {
1395
- let t = Vt(e);
1396
- t.id = t.id + "-" + n, L.set(t.id, t), a.push(t);
1210
+ let t = a(e);
1211
+ t.id = t.id + "-" + n, j.set(t.id, t), i.push(t);
1397
1212
  }
1398
- } else t === void 0 && a.push(e);
1213
+ } else t === void 0 && i.push(e);
1399
1214
  }
1400
1215
  }
1401
- t.children = a;
1402
- }, "populateBlockDatabase"), rn = [], B = {
1216
+ t.children = i;
1217
+ }, "populateBlockDatabase"), I = [], L = {
1403
1218
  id: "root",
1404
1219
  type: "composite",
1405
1220
  children: [],
1406
1221
  columns: -1
1407
- }, an = /* @__PURE__ */ r(() => {
1408
- n.debug("Clear called"), s(), B = {
1222
+ }, ue = /* @__PURE__ */ c(() => {
1223
+ s.debug("Clear called"), f(), L = {
1409
1224
  id: "root",
1410
1225
  type: "composite",
1411
1226
  children: [],
1412
1227
  columns: -1
1413
- }, L = /* @__PURE__ */ new Map([["root", B]]), rn = [], z = /* @__PURE__ */ new Map(), R = [], Gt = /* @__PURE__ */ new Map(), Zt = "";
1228
+ }, j = /* @__PURE__ */ new Map([["root", L]]), I = [], P = /* @__PURE__ */ new Map(), M = [], N = /* @__PURE__ */ new Map(), F = "";
1414
1229
  }, "clear");
1415
- function on(e) {
1416
- switch (n.debug("typeStr2Type", e), e) {
1230
+ function de(e) {
1231
+ switch (s.debug("typeStr2Type", e), e) {
1417
1232
  case "[]": return "square";
1418
- case "()": return n.debug("we have a round"), "round";
1233
+ case "()": return s.debug("we have a round"), "round";
1419
1234
  case "(())": return "circle";
1420
1235
  case ">]": return "rect_left_inv_arrow";
1421
1236
  case "{}": return "diamond";
@@ -1432,15 +1247,15 @@ function on(e) {
1432
1247
  default: return "na";
1433
1248
  }
1434
1249
  }
1435
- r(on, "typeStr2Type");
1436
- function sn(e) {
1437
- switch (n.debug("typeStr2Type", e), e) {
1250
+ c(de, "typeStr2Type");
1251
+ function fe(e) {
1252
+ switch (s.debug("typeStr2Type", e), e) {
1438
1253
  case "==": return "thick";
1439
1254
  default: return "normal";
1440
1255
  }
1441
1256
  }
1442
- r(sn, "edgeTypeStr2Type");
1443
- function cn(e) {
1257
+ c(fe, "edgeTypeStr2Type");
1258
+ function pe(e) {
1444
1259
  switch (e.replace(/^[\s-]+|[\s-]+$/g, "")) {
1445
1260
  case "x": return "arrow_cross";
1446
1261
  case "o": return "arrow_circle";
@@ -1448,40 +1263,40 @@ function cn(e) {
1448
1263
  default: return "";
1449
1264
  }
1450
1265
  }
1451
- r(cn, "edgeStrToEdgeData");
1452
- var ln = 0, un = {
1453
- getConfig: /* @__PURE__ */ r(() => p().block, "getConfig"),
1454
- typeStr2Type: on,
1455
- edgeTypeStr2Type: sn,
1456
- edgeStrToEdgeData: cn,
1457
- getLogger: /* @__PURE__ */ r(() => n, "getLogger"),
1458
- getBlocksFlat: /* @__PURE__ */ r(() => [...L.values()], "getBlocksFlat"),
1459
- getBlocks: /* @__PURE__ */ r(() => rn || [], "getBlocks"),
1460
- getEdges: /* @__PURE__ */ r(() => R, "getEdges"),
1461
- setHierarchy: /* @__PURE__ */ r((e) => {
1462
- B.children = e, nn(e, B), rn = B.children;
1266
+ c(pe, "edgeStrToEdgeData");
1267
+ var me = 0, he = {
1268
+ getConfig: /* @__PURE__ */ c(() => v().block, "getConfig"),
1269
+ typeStr2Type: de,
1270
+ edgeTypeStr2Type: fe,
1271
+ edgeStrToEdgeData: pe,
1272
+ getLogger: /* @__PURE__ */ c(() => s, "getLogger"),
1273
+ getBlocksFlat: /* @__PURE__ */ c(() => [...j.values()], "getBlocksFlat"),
1274
+ getBlocks: /* @__PURE__ */ c(() => I || [], "getBlocks"),
1275
+ getEdges: /* @__PURE__ */ c(() => M, "getEdges"),
1276
+ setHierarchy: /* @__PURE__ */ c((e) => {
1277
+ L.children = e, le(e, L), I = L.children;
1463
1278
  }, "setHierarchy"),
1464
- getBlock: /* @__PURE__ */ r((e) => L.get(e), "getBlock"),
1465
- setBlock: /* @__PURE__ */ r((e) => {
1466
- L.set(e.id, e);
1279
+ getBlock: /* @__PURE__ */ c((e) => j.get(e), "getBlock"),
1280
+ setBlock: /* @__PURE__ */ c((e) => {
1281
+ j.set(e.id, e);
1467
1282
  }, "setBlock"),
1468
- getColumns: /* @__PURE__ */ r((e) => {
1469
- let t = L.get(e);
1283
+ getColumns: /* @__PURE__ */ c((e) => {
1284
+ let t = j.get(e);
1470
1285
  return t ? t.columns ? t.columns : t.children ? t.children.length : -1 : -1;
1471
1286
  }, "getColumns"),
1472
- getClasses: /* @__PURE__ */ r(function() {
1473
- return z;
1287
+ getClasses: /* @__PURE__ */ c(function() {
1288
+ return P;
1474
1289
  }, "getClasses"),
1475
- clear: an,
1476
- generateId: /* @__PURE__ */ r(() => (ln++, "id-" + Math.random().toString(36).substr(2, 12) + "-" + ln), "generateId"),
1477
- setDiagramId: /* @__PURE__ */ r((e) => {
1478
- Zt = e;
1290
+ clear: ue,
1291
+ generateId: /* @__PURE__ */ c(() => (me++, "id-" + Math.random().toString(36).substr(2, 12) + "-" + me), "generateId"),
1292
+ setDiagramId: /* @__PURE__ */ c((e) => {
1293
+ F = e;
1479
1294
  }, "setDiagramId"),
1480
- getDiagramId: /* @__PURE__ */ r(() => Zt, "getDiagramId")
1481
- }, dn = /* @__PURE__ */ r((e, t) => {
1482
- let n = m;
1483
- return u(n(e, "r"), n(e, "g"), n(e, "b"), t);
1484
- }, "fade"), fn = /* @__PURE__ */ r((e) => `.label {
1295
+ getDiagramId: /* @__PURE__ */ c(() => F, "getDiagramId")
1296
+ }, R = /* @__PURE__ */ c((e, t) => {
1297
+ let n = y;
1298
+ return h(n(e, "r"), n(e, "g"), n(e, "b"), t);
1299
+ }, "fade"), ge = /* @__PURE__ */ c((e) => `.label {
1485
1300
  font-family: ${e.fontFamily};
1486
1301
  color: ${e.nodeTextColor || e.textColor};
1487
1302
  }
@@ -1566,9 +1381,9 @@ var ln = 0, un = {
1566
1381
  }
1567
1382
 
1568
1383
  .node .cluster {
1569
- // fill: ${dn(e.mainBkg, .5)};
1570
- fill: ${dn(e.clusterBkg, .5)};
1571
- stroke: ${dn(e.clusterBorder, .2)};
1384
+ // fill: ${R(e.mainBkg, .5)};
1385
+ fill: ${R(e.clusterBkg, .5)};
1386
+ stroke: ${R(e.clusterBorder, .2)};
1572
1387
  box-shadow: rgba(50, 50, 93, 0.25) 0px 13px 27px -5px, rgba(0, 0, 0, 0.3) 0px 8px 16px -8px;
1573
1388
  stroke-width: 1px;
1574
1389
  }
@@ -1603,41 +1418,41 @@ var ln = 0, un = {
1603
1418
  font-size: 18px;
1604
1419
  fill: ${e.textColor};
1605
1420
  }
1606
- ${se()}
1607
- `, "getStyles"), pn = /* @__PURE__ */ r((e, t, n, r) => {
1421
+ ${S()}
1422
+ `, "getStyles"), _e = /* @__PURE__ */ c((e, t, n, r) => {
1608
1423
  t.forEach((t) => {
1609
- mn[t](e, n, r);
1424
+ ve[t](e, n, r);
1610
1425
  });
1611
- }, "insertMarkers"), mn = {
1612
- extension: /* @__PURE__ */ r((e, t, r) => {
1613
- n.trace("Making markers for ", r), e.append("defs").append("marker").attr("id", r + "_" + t + "-extensionStart").attr("class", "marker extension " + t).attr("refX", 18).attr("refY", 7).attr("markerWidth", 190).attr("markerHeight", 240).attr("orient", "auto").append("path").attr("d", "M 1,7 L18,13 V 1 Z"), e.append("defs").append("marker").attr("id", r + "_" + t + "-extensionEnd").attr("class", "marker extension " + t).attr("refX", 1).attr("refY", 7).attr("markerWidth", 20).attr("markerHeight", 28).attr("orient", "auto").append("path").attr("d", "M 1,1 V 13 L18,7 Z");
1426
+ }, "insertMarkers"), ve = {
1427
+ extension: /* @__PURE__ */ c((e, t, n) => {
1428
+ s.trace("Making markers for ", n), e.append("defs").append("marker").attr("id", n + "_" + t + "-extensionStart").attr("class", "marker extension " + t).attr("refX", 18).attr("refY", 7).attr("markerWidth", 190).attr("markerHeight", 240).attr("orient", "auto").append("path").attr("d", "M 1,7 L18,13 V 1 Z"), e.append("defs").append("marker").attr("id", n + "_" + t + "-extensionEnd").attr("class", "marker extension " + t).attr("refX", 1).attr("refY", 7).attr("markerWidth", 20).attr("markerHeight", 28).attr("orient", "auto").append("path").attr("d", "M 1,1 V 13 L18,7 Z");
1614
1429
  }, "extension"),
1615
- composition: /* @__PURE__ */ r((e, t, n) => {
1430
+ composition: /* @__PURE__ */ c((e, t, n) => {
1616
1431
  e.append("defs").append("marker").attr("id", n + "_" + t + "-compositionStart").attr("class", "marker composition " + t).attr("refX", 18).attr("refY", 7).attr("markerWidth", 190).attr("markerHeight", 240).attr("orient", "auto").append("path").attr("d", "M 18,7 L9,13 L1,7 L9,1 Z"), e.append("defs").append("marker").attr("id", n + "_" + t + "-compositionEnd").attr("class", "marker composition " + t).attr("refX", 1).attr("refY", 7).attr("markerWidth", 20).attr("markerHeight", 28).attr("orient", "auto").append("path").attr("d", "M 18,7 L9,13 L1,7 L9,1 Z");
1617
1432
  }, "composition"),
1618
- aggregation: /* @__PURE__ */ r((e, t, n) => {
1433
+ aggregation: /* @__PURE__ */ c((e, t, n) => {
1619
1434
  e.append("defs").append("marker").attr("id", n + "_" + t + "-aggregationStart").attr("class", "marker aggregation " + t).attr("refX", 18).attr("refY", 7).attr("markerWidth", 190).attr("markerHeight", 240).attr("orient", "auto").append("path").attr("d", "M 18,7 L9,13 L1,7 L9,1 Z"), e.append("defs").append("marker").attr("id", n + "_" + t + "-aggregationEnd").attr("class", "marker aggregation " + t).attr("refX", 1).attr("refY", 7).attr("markerWidth", 20).attr("markerHeight", 28).attr("orient", "auto").append("path").attr("d", "M 18,7 L9,13 L1,7 L9,1 Z");
1620
1435
  }, "aggregation"),
1621
- dependency: /* @__PURE__ */ r((e, t, n) => {
1436
+ dependency: /* @__PURE__ */ c((e, t, n) => {
1622
1437
  e.append("defs").append("marker").attr("id", n + "_" + t + "-dependencyStart").attr("class", "marker dependency " + t).attr("refX", 6).attr("refY", 7).attr("markerWidth", 190).attr("markerHeight", 240).attr("orient", "auto").append("path").attr("d", "M 5,7 L9,13 L1,7 L9,1 Z"), e.append("defs").append("marker").attr("id", n + "_" + t + "-dependencyEnd").attr("class", "marker dependency " + t).attr("refX", 13).attr("refY", 7).attr("markerWidth", 20).attr("markerHeight", 28).attr("orient", "auto").append("path").attr("d", "M 18,7 L9,13 L14,7 L9,1 Z");
1623
1438
  }, "dependency"),
1624
- lollipop: /* @__PURE__ */ r((e, t, n) => {
1439
+ lollipop: /* @__PURE__ */ c((e, t, n) => {
1625
1440
  e.append("defs").append("marker").attr("id", n + "_" + t + "-lollipopStart").attr("class", "marker lollipop " + t).attr("refX", 13).attr("refY", 7).attr("markerWidth", 190).attr("markerHeight", 240).attr("orient", "auto").append("circle").attr("stroke", "black").attr("fill", "transparent").attr("cx", 7).attr("cy", 7).attr("r", 6), e.append("defs").append("marker").attr("id", n + "_" + t + "-lollipopEnd").attr("class", "marker lollipop " + t).attr("refX", 1).attr("refY", 7).attr("markerWidth", 190).attr("markerHeight", 240).attr("orient", "auto").append("circle").attr("stroke", "black").attr("fill", "transparent").attr("cx", 7).attr("cy", 7).attr("r", 6);
1626
1441
  }, "lollipop"),
1627
- point: /* @__PURE__ */ r((e, t, n) => {
1442
+ point: /* @__PURE__ */ c((e, t, n) => {
1628
1443
  e.append("marker").attr("id", n + "_" + t + "-pointEnd").attr("class", "marker " + t).attr("viewBox", "0 0 10 10").attr("refX", 6).attr("refY", 5).attr("markerUnits", "userSpaceOnUse").attr("markerWidth", 12).attr("markerHeight", 12).attr("orient", "auto").append("path").attr("d", "M 0 0 L 10 5 L 0 10 z").attr("class", "arrowMarkerPath").style("stroke-width", 1).style("stroke-dasharray", "1,0"), e.append("marker").attr("id", n + "_" + t + "-pointStart").attr("class", "marker " + t).attr("viewBox", "0 0 10 10").attr("refX", 4.5).attr("refY", 5).attr("markerUnits", "userSpaceOnUse").attr("markerWidth", 12).attr("markerHeight", 12).attr("orient", "auto").append("path").attr("d", "M 0 5 L 10 10 L 10 0 z").attr("class", "arrowMarkerPath").style("stroke-width", 1).style("stroke-dasharray", "1,0");
1629
1444
  }, "point"),
1630
- circle: /* @__PURE__ */ r((e, t, n) => {
1445
+ circle: /* @__PURE__ */ c((e, t, n) => {
1631
1446
  e.append("marker").attr("id", n + "_" + t + "-circleEnd").attr("class", "marker " + t).attr("viewBox", "0 0 10 10").attr("refX", 11).attr("refY", 5).attr("markerUnits", "userSpaceOnUse").attr("markerWidth", 11).attr("markerHeight", 11).attr("orient", "auto").append("circle").attr("cx", "5").attr("cy", "5").attr("r", "5").attr("class", "arrowMarkerPath").style("stroke-width", 1).style("stroke-dasharray", "1,0"), e.append("marker").attr("id", n + "_" + t + "-circleStart").attr("class", "marker " + t).attr("viewBox", "0 0 10 10").attr("refX", -1).attr("refY", 5).attr("markerUnits", "userSpaceOnUse").attr("markerWidth", 11).attr("markerHeight", 11).attr("orient", "auto").append("circle").attr("cx", "5").attr("cy", "5").attr("r", "5").attr("class", "arrowMarkerPath").style("stroke-width", 1).style("stroke-dasharray", "1,0");
1632
1447
  }, "circle"),
1633
- cross: /* @__PURE__ */ r((e, t, n) => {
1448
+ cross: /* @__PURE__ */ c((e, t, n) => {
1634
1449
  e.append("marker").attr("id", n + "_" + t + "-crossEnd").attr("class", "marker cross " + t).attr("viewBox", "0 0 11 11").attr("refX", 12).attr("refY", 5.2).attr("markerUnits", "userSpaceOnUse").attr("markerWidth", 11).attr("markerHeight", 11).attr("orient", "auto").append("path").attr("d", "M 1,1 l 9,9 M 10,1 l -9,9").attr("class", "arrowMarkerPath").style("stroke-width", 2).style("stroke-dasharray", "1,0"), e.append("marker").attr("id", n + "_" + t + "-crossStart").attr("class", "marker cross " + t).attr("viewBox", "0 0 11 11").attr("refX", -1).attr("refY", 5.2).attr("markerUnits", "userSpaceOnUse").attr("markerWidth", 11).attr("markerHeight", 11).attr("orient", "auto").append("path").attr("d", "M 1,1 l 9,9 M 10,1 l -9,9").attr("class", "arrowMarkerPath").style("stroke-width", 2).style("stroke-dasharray", "1,0");
1635
1450
  }, "cross"),
1636
- barb: /* @__PURE__ */ r((e, t, n) => {
1451
+ barb: /* @__PURE__ */ c((e, t, n) => {
1637
1452
  e.append("defs").append("marker").attr("id", n + "_" + t + "-barbEnd").attr("refX", 19).attr("refY", 7).attr("markerWidth", 20).attr("markerHeight", 14).attr("markerUnits", "strokeWidth").attr("orient", "auto").append("path").attr("d", "M 19,7 L9,13 L14,7 L9,1 Z");
1638
1453
  }, "barb")
1639
- }, hn = pn, V = (Ht = (I = c()) == null || (I = I.block) == null ? void 0 : I.padding) == null ? 8 : Ht;
1640
- function gn(e, t) {
1454
+ }, ye = _e, z = (D = (O = p()) == null || (O = O.block) == null ? void 0 : O.padding) == null ? 8 : D;
1455
+ function be(e, t) {
1641
1456
  if (e === 0 || !Number.isInteger(e)) throw Error("Columns must be an integer !== 0.");
1642
1457
  if (t < 0 || !Number.isInteger(t)) throw Error("Position must be a non-negative integer." + t);
1643
1458
  return e < 0 ? {
@@ -1651,72 +1466,72 @@ function gn(e, t) {
1651
1466
  py: Math.floor(t / e)
1652
1467
  };
1653
1468
  }
1654
- r(gn, "calculateBlockPosition");
1655
- var _n = /* @__PURE__ */ r((e) => {
1656
- let t = 0, r = 0;
1657
- for (let o of e.children) {
1658
- var i;
1659
- let { width: e, height: s, x: c, y: l } = (i = o.size) == null ? {
1469
+ c(be, "calculateBlockPosition");
1470
+ var xe = /* @__PURE__ */ c((e) => {
1471
+ let t = 0, n = 0;
1472
+ for (let a of e.children) {
1473
+ var r;
1474
+ let { width: e, height: o, x: c, y: l } = (r = a.size) == null ? {
1660
1475
  width: 0,
1661
1476
  height: 0,
1662
1477
  x: 0,
1663
1478
  y: 0
1664
- } : i;
1665
- if (n.debug("getMaxChildSize abc95 child:", o.id, "width:", e, "height:", s, "x:", c, "y:", l, o.type), o.type !== "space") {
1479
+ } : r;
1480
+ if (s.debug("getMaxChildSize abc95 child:", a.id, "width:", e, "height:", o, "x:", c, "y:", l, a.type), a.type !== "space") {
1666
1481
  if (e > t) {
1667
- var a;
1668
- t = e / ((a = o.widthInColumns) == null ? 1 : a);
1482
+ var i;
1483
+ t = e / ((i = a.widthInColumns) == null ? 1 : i);
1669
1484
  }
1670
- s > r && (r = s);
1485
+ o > n && (n = o);
1671
1486
  }
1672
1487
  }
1673
1488
  return {
1674
1489
  width: t,
1675
- height: r
1490
+ height: n
1676
1491
  };
1677
1492
  }, "getMaxChildSize");
1678
- function H(e, t, r = 0, i = 0) {
1679
- var a, o, s, c, l, u, d;
1680
- n.debug("setBlockSizes abc95 (start)", e.id, e == null || (a = e.size) == null ? void 0 : a.x, "block width =", e == null ? void 0 : e.size, "siblingWidth", r), !(e == null || (o = e.size) == null) && o.width || (e.size = {
1681
- width: r,
1682
- height: i,
1493
+ function B(e, t, n = 0, r = 0) {
1494
+ var i, a, o, c, l, u, d;
1495
+ s.debug("setBlockSizes abc95 (start)", e.id, e == null || (i = e.size) == null ? void 0 : i.x, "block width =", e == null ? void 0 : e.size, "siblingWidth", n), !(e == null || (a = e.size) == null) && a.width || (e.size = {
1496
+ width: n,
1497
+ height: r,
1683
1498
  x: 0,
1684
1499
  y: 0
1685
1500
  });
1686
1501
  let f = 0, p = 0;
1687
- if (((s = e.children) == null ? void 0 : s.length) > 0) {
1502
+ if (((o = e.children) == null ? void 0 : o.length) > 0) {
1688
1503
  var m, h, g;
1689
- for (let n of e.children) H(n, t);
1690
- let a = _n(e);
1691
- f = a.width, p = a.height, n.debug("setBlockSizes abc95 maxWidth of", e.id, ":s children is ", f, p);
1504
+ for (let n of e.children) B(n, t);
1505
+ let i = xe(e);
1506
+ f = i.width, p = i.height, s.debug("setBlockSizes abc95 maxWidth of", e.id, ":s children is ", f, p);
1692
1507
  for (let t of e.children) if (t.size) {
1693
1508
  var _, v;
1694
- n.debug(`abc95 Setting size of children of ${e.id} id=${t.id} ${f} ${p} ${JSON.stringify(t.size)}`), t.size.width = f * ((_ = t.widthInColumns) == null ? 1 : _) + V * (((v = t.widthInColumns) == null ? 1 : v) - 1), t.size.height = p, t.size.x = 0, t.size.y = 0, n.debug(`abc95 updating size of ${e.id} children child:${t.id} maxWidth:${f} maxHeight:${p}`);
1509
+ s.debug(`abc95 Setting size of children of ${e.id} id=${t.id} ${f} ${p} ${JSON.stringify(t.size)}`), t.size.width = f * ((_ = t.widthInColumns) == null ? 1 : _) + z * (((v = t.widthInColumns) == null ? 1 : v) - 1), t.size.height = p, t.size.x = 0, t.size.y = 0, s.debug(`abc95 updating size of ${e.id} children child:${t.id} maxWidth:${f} maxHeight:${p}`);
1695
1510
  }
1696
- for (let n of e.children) H(n, t, f, p);
1697
- let o = (m = e.columns) == null ? -1 : m, s = 0;
1511
+ for (let n of e.children) B(n, t, f, p);
1512
+ let a = (m = e.columns) == null ? -1 : m, o = 0;
1698
1513
  for (let t of e.children) {
1699
1514
  var y;
1700
- s += (y = t.widthInColumns) == null ? 1 : y;
1515
+ o += (y = t.widthInColumns) == null ? 1 : y;
1701
1516
  }
1702
1517
  let c = e.children.length;
1703
- o > 0 && o < s && (c = o);
1704
- let l = Math.ceil(s / c), u = c * (f + V) + V, d = l * (p + V) + V;
1705
- if (u < r) {
1706
- n.debug(`Detected to small sibling: abc95 ${e.id} siblingWidth ${r} siblingHeight ${i} width ${u}`), u = r, d = i;
1707
- let t = (r - c * V - V) / c, a = (i - l * V - V) / l;
1708
- n.debug("Size indata abc88", e.id, "childWidth", t, "maxWidth", f), n.debug("Size indata abc88", e.id, "childHeight", a, "maxHeight", p), n.debug("Size indata abc88 xSize", c, "padding", V);
1709
- for (let n of e.children) n.size && (n.size.width = t, n.size.height = a, n.size.x = 0, n.size.y = 0);
1518
+ a > 0 && a < o && (c = a);
1519
+ let l = Math.ceil(o / c), u = c * (f + z) + z, d = l * (p + z) + z;
1520
+ if (u < n) {
1521
+ s.debug(`Detected to small sibling: abc95 ${e.id} siblingWidth ${n} siblingHeight ${r} width ${u}`), u = n, d = r;
1522
+ let t = (n - c * z - z) / c, i = (r - l * z - z) / l;
1523
+ s.debug("Size indata abc88", e.id, "childWidth", t, "maxWidth", f), s.debug("Size indata abc88", e.id, "childHeight", i, "maxHeight", p), s.debug("Size indata abc88 xSize", c, "padding", z);
1524
+ for (let n of e.children) n.size && (n.size.width = t, n.size.height = i, n.size.x = 0, n.size.y = 0);
1710
1525
  }
1711
- if (n.debug(`abc95 (finale calc) ${e.id} xSize ${c} ySize ${l} columns ${o}${e.children.length} width=${Math.max(u, ((h = e.size) == null ? void 0 : h.width) || 0)}`), u < ((e == null || (g = e.size) == null ? void 0 : g.width) || 0)) {
1526
+ if (s.debug(`abc95 (finale calc) ${e.id} xSize ${c} ySize ${l} columns ${a}${e.children.length} width=${Math.max(u, ((h = e.size) == null ? void 0 : h.width) || 0)}`), u < ((e == null || (g = e.size) == null ? void 0 : g.width) || 0)) {
1712
1527
  var b;
1713
1528
  u = (e == null || (b = e.size) == null ? void 0 : b.width) || 0;
1714
- let t = o > 0 ? Math.min(e.children.length, o) : e.children.length;
1529
+ let t = a > 0 ? Math.min(e.children.length, a) : e.children.length;
1715
1530
  if (t > 0) {
1716
1531
  var x;
1717
- let r = (u - t * V - V) / t;
1718
- n.debug("abc95 (growing to fit) width", e.id, u, (x = e.size) == null ? void 0 : x.width, r);
1719
- for (let t of e.children) t.size && (t.size.width = r);
1532
+ let n = (u - t * z - z) / t;
1533
+ s.debug("abc95 (growing to fit) width", e.id, u, (x = e.size) == null ? void 0 : x.width, n);
1534
+ for (let t of e.children) t.size && (t.size.width = n);
1720
1535
  }
1721
1536
  }
1722
1537
  e.size = {
@@ -1726,65 +1541,65 @@ function H(e, t, r = 0, i = 0) {
1726
1541
  y: 0
1727
1542
  };
1728
1543
  }
1729
- n.debug("setBlockSizes abc94 (done)", e.id, e == null || (c = e.size) == null ? void 0 : c.x, e == null || (l = e.size) == null ? void 0 : l.width, e == null || (u = e.size) == null ? void 0 : u.y, e == null || (d = e.size) == null ? void 0 : d.height);
1544
+ s.debug("setBlockSizes abc94 (done)", e.id, e == null || (c = e.size) == null ? void 0 : c.x, e == null || (l = e.size) == null ? void 0 : l.width, e == null || (u = e.size) == null ? void 0 : u.y, e == null || (d = e.size) == null ? void 0 : d.height);
1730
1545
  }
1731
- r(H, "setBlockSizes");
1732
- function vn(e, t) {
1733
- var r, i, a, o, s, c, l;
1734
- n.debug(`abc85 layout blocks (=>layoutBlocks) ${e.id} x: ${e == null || (r = e.size) == null ? void 0 : r.x} y: ${e == null || (i = e.size) == null ? void 0 : i.y} width: ${e == null || (a = e.size) == null ? void 0 : a.width}`);
1735
- let u = (o = e.columns) == null ? -1 : o;
1736
- if (n.debug("layoutBlocks columns abc95", e.id, "=>", u, e), e.children && e.children.length > 0) {
1546
+ c(B, "setBlockSizes");
1547
+ function Se(e, t) {
1548
+ var n, r, i, a, o, c, l;
1549
+ s.debug(`abc85 layout blocks (=>layoutBlocks) ${e.id} x: ${e == null || (n = e.size) == null ? void 0 : n.x} y: ${e == null || (r = e.size) == null ? void 0 : r.y} width: ${e == null || (i = e.size) == null ? void 0 : i.width}`);
1550
+ let u = (a = e.columns) == null ? -1 : a;
1551
+ if (s.debug("layoutBlocks columns abc95", e.id, "=>", u, e), e.children && e.children.length > 0) {
1737
1552
  var d, f, p, m, h, g;
1738
- let r = (d = e == null || (f = e.children[0]) == null || (f = f.size) == null ? void 0 : f.width) == null ? 0 : d, i = e.children.length * r + (e.children.length - 1) * V;
1739
- n.debug("widthOfChildren 88", i, "posX");
1740
- let a = /* @__PURE__ */ new Map();
1553
+ let n = (d = e == null || (f = e.children[0]) == null || (f = f.size) == null ? void 0 : f.width) == null ? 0 : d, r = e.children.length * n + (e.children.length - 1) * z;
1554
+ s.debug("widthOfChildren 88", r, "posX");
1555
+ let i = /* @__PURE__ */ new Map();
1741
1556
  {
1742
1557
  let t = 0;
1743
1558
  for (let n of e.children) {
1744
1559
  var _, v;
1745
1560
  if (!n.size) continue;
1746
- let { py: e } = gn(u, t), r = (_ = a.get(e)) == null ? 0 : _;
1747
- n.size.height > r && a.set(e, n.size.height);
1748
- let i = (v = n == null ? void 0 : n.widthInColumns) == null ? 1 : v;
1749
- u > 0 && (i = Math.min(i, u - t % u)), t += i;
1561
+ let { py: e } = be(u, t), r = (_ = i.get(e)) == null ? 0 : _;
1562
+ n.size.height > r && i.set(e, n.size.height);
1563
+ let a = (v = n == null ? void 0 : n.widthInColumns) == null ? 1 : v;
1564
+ u > 0 && (a = Math.min(a, u - t % u)), t += a;
1750
1565
  }
1751
1566
  }
1752
- let o = /* @__PURE__ */ new Map();
1567
+ let a = /* @__PURE__ */ new Map();
1753
1568
  {
1754
- let e = 0, t = [...a.keys()].sort((e, t) => e - t);
1569
+ let e = 0, t = [...i.keys()].sort((e, t) => e - t);
1755
1570
  for (let n of t) {
1756
1571
  var y;
1757
- o.set(n, e), e += ((y = a.get(n)) == null ? 0 : y) + V;
1572
+ a.set(n, e), e += ((y = i.get(n)) == null ? 0 : y) + z;
1758
1573
  }
1759
1574
  }
1760
- let s = 0;
1761
- n.debug("abc91 block?.size?.x", e.id, e == null || (p = e.size) == null ? void 0 : p.x);
1762
- let c = !(e == null || (m = e.size) == null) && m.x ? (e == null || (h = e.size) == null ? void 0 : h.x) + (-(e == null || (g = e.size) == null ? void 0 : g.width) / 2 || 0) : -V, l = 0;
1763
- for (let r of e.children) {
1575
+ let o = 0;
1576
+ s.debug("abc91 block?.size?.x", e.id, e == null || (p = e.size) == null ? void 0 : p.x);
1577
+ let c = !(e == null || (m = e.size) == null) && m.x ? (e == null || (h = e.size) == null ? void 0 : h.x) + (-(e == null || (g = e.size) == null ? void 0 : g.width) / 2 || 0) : -z, l = 0;
1578
+ for (let n of e.children) {
1764
1579
  var b, x, S;
1765
- let i = e;
1766
- if (!r.size) continue;
1767
- let { width: d, height: f } = r.size, { px: p, py: m } = gn(u, s);
1580
+ let r = e;
1581
+ if (!n.size) continue;
1582
+ let { width: d, height: f } = n.size, { px: p, py: m } = be(u, o);
1768
1583
  if (m != l) {
1769
1584
  var C, w, T;
1770
- l = m, c = !(e == null || (C = e.size) == null) && C.x ? (e == null || (w = e.size) == null ? void 0 : w.x) + (-(e == null || (T = e.size) == null ? void 0 : T.width) / 2 || 0) : -V, n.debug("New row in layout for block", e.id, " and child ", r.id, l);
1585
+ l = m, c = !(e == null || (C = e.size) == null) && C.x ? (e == null || (w = e.size) == null ? void 0 : w.x) + (-(e == null || (T = e.size) == null ? void 0 : T.width) / 2 || 0) : -z, s.debug("New row in layout for block", e.id, " and child ", n.id, l);
1771
1586
  }
1772
- if (n.debug(`abc89 layout blocks (child) id: ${r.id} Pos: ${s} (px, py) ${p},${m} (${i == null || (b = i.size) == null ? void 0 : b.x},${i == null || (x = i.size) == null ? void 0 : x.y}) parent: ${i.id} width: ${d}${V}`), i.size) {
1587
+ if (s.debug(`abc89 layout blocks (child) id: ${n.id} Pos: ${o} (px, py) ${p},${m} (${r == null || (b = r.size) == null ? void 0 : b.x},${r == null || (x = r.size) == null ? void 0 : x.y}) parent: ${r.id} width: ${d}${z}`), r.size) {
1773
1588
  var E, D, O, k;
1774
1589
  let e = d / 2;
1775
- r.size.x = c + V + e, n.debug(`abc91 layout blocks (calc) px, pyid:${r.id} startingPos=X${c} new startingPosX${r.size.x} ${e} padding=${V} width=${d} halfWidth=${e} => x:${r.size.x} y:${r.size.y} ${r.widthInColumns} (width * (child?.w || 1)) / 2 ${d * ((E = r == null ? void 0 : r.widthInColumns) == null ? 1 : E) / 2}`), c = r.size.x + e;
1776
- let t = (D = o.get(m)) == null ? 0 : D, s = (O = a.get(m)) == null ? f : O;
1777
- r.size.y = i.size.y - i.size.height / 2 + t + s / 2 + V, n.debug(`abc88 layout blocks (calc) px, pyid:${r.id}startingPosX${c}${V}${e}=>x:${r.size.x}y:${r.size.y}${r.widthInColumns}(width * (child?.w || 1)) / 2${d * ((k = r == null ? void 0 : r.widthInColumns) == null ? 1 : k) / 2}`);
1590
+ n.size.x = c + z + e, s.debug(`abc91 layout blocks (calc) px, pyid:${n.id} startingPos=X${c} new startingPosX${n.size.x} ${e} padding=${z} width=${d} halfWidth=${e} => x:${n.size.x} y:${n.size.y} ${n.widthInColumns} (width * (child?.w || 1)) / 2 ${d * ((E = n == null ? void 0 : n.widthInColumns) == null ? 1 : E) / 2}`), c = n.size.x + e;
1591
+ let t = (D = a.get(m)) == null ? 0 : D, o = (O = i.get(m)) == null ? f : O;
1592
+ n.size.y = r.size.y - r.size.height / 2 + t + o / 2 + z, s.debug(`abc88 layout blocks (calc) px, pyid:${n.id}startingPosX${c}${z}${e}=>x:${n.size.x}y:${n.size.y}${n.widthInColumns}(width * (child?.w || 1)) / 2${d * ((k = n == null ? void 0 : n.widthInColumns) == null ? 1 : k) / 2}`);
1778
1593
  }
1779
- r.children && vn(r, t);
1780
- let h = (S = r == null ? void 0 : r.widthInColumns) == null ? 1 : S;
1781
- u > 0 && (h = Math.min(h, u - s % u)), s += h, n.debug("abc88 columnsPos", r, s);
1594
+ n.children && Se(n, t);
1595
+ let h = (S = n == null ? void 0 : n.widthInColumns) == null ? 1 : S;
1596
+ u > 0 && (h = Math.min(h, u - o % u)), o += h, s.debug("abc88 columnsPos", n, o);
1782
1597
  }
1783
1598
  }
1784
- n.debug(`layout blocks (<==layoutBlocks) ${e.id} x: ${e == null || (s = e.size) == null ? void 0 : s.x} y: ${e == null || (c = e.size) == null ? void 0 : c.y} width: ${e == null || (l = e.size) == null ? void 0 : l.width}`);
1599
+ s.debug(`layout blocks (<==layoutBlocks) ${e.id} x: ${e == null || (o = e.size) == null ? void 0 : o.x} y: ${e == null || (c = e.size) == null ? void 0 : c.y} width: ${e == null || (l = e.size) == null ? void 0 : l.width}`);
1785
1600
  }
1786
- r(vn, "layoutBlocks");
1787
- function yn(e, { minX: t, minY: n, maxX: r, maxY: i } = {
1601
+ c(Se, "layoutBlocks");
1602
+ function Ce(e, { minX: t, minY: n, maxX: r, maxY: i } = {
1788
1603
  minX: 0,
1789
1604
  minY: 0,
1790
1605
  maxX: 0,
@@ -1794,7 +1609,7 @@ function yn(e, { minX: t, minY: n, maxX: r, maxY: i } = {
1794
1609
  let { x: a, y: o, width: s, height: c } = e.size;
1795
1610
  a - s / 2 < t && (t = a - s / 2), o - c / 2 < n && (n = o - c / 2), a + s / 2 > r && (r = a + s / 2), o + c / 2 > i && (i = o + c / 2);
1796
1611
  }
1797
- if (e.children) for (let a of e.children) ({minX: t, minY: n, maxX: r, maxY: i} = yn(a, {
1612
+ if (e.children) for (let a of e.children) ({minX: t, minY: n, maxX: r, maxY: i} = Ce(a, {
1798
1613
  minX: t,
1799
1614
  minY: n,
1800
1615
  maxX: r,
@@ -1807,25 +1622,25 @@ function yn(e, { minX: t, minY: n, maxX: r, maxY: i } = {
1807
1622
  maxY: i
1808
1623
  };
1809
1624
  }
1810
- r(yn, "findBounds");
1811
- function bn(e) {
1625
+ c(Ce, "findBounds");
1626
+ function we(e) {
1812
1627
  let t = e.getBlock("root");
1813
1628
  if (!t) return;
1814
- H(t, e, 0, 0), vn(t, e), n.debug("getBlocks", JSON.stringify(t, null, 2));
1815
- let { minX: r, minY: i, maxX: a, maxY: o } = yn(t), s = o - i;
1629
+ B(t, e, 0, 0), Se(t, e), s.debug("getBlocks", JSON.stringify(t, null, 2));
1630
+ let { minX: n, minY: r, maxX: i, maxY: a } = Ce(t), o = a - r;
1816
1631
  return {
1817
- x: r,
1818
- y: i,
1819
- width: a - r,
1820
- height: s
1632
+ x: n,
1633
+ y: r,
1634
+ width: i - n,
1635
+ height: o
1821
1636
  };
1822
1637
  }
1823
- r(bn, "layout");
1824
- var U = /* @__PURE__ */ r(async (e, t, n, r = !1, i = !1) => {
1638
+ c(we, "layout");
1639
+ var V = /* @__PURE__ */ c(async (e, t, n, r = !1, i = !1) => {
1825
1640
  let a = t || "";
1826
1641
  typeof a == "object" && (a = a[0]);
1827
- let o = c(), s = f(o);
1828
- return await oe(e, a, {
1642
+ let o = p(), s = _(o);
1643
+ return await x(e, a, {
1829
1644
  style: n,
1830
1645
  isTitle: r,
1831
1646
  useHtmlLabels: s,
@@ -1833,9 +1648,9 @@ var U = /* @__PURE__ */ r(async (e, t, n, r = !1, i = !1) => {
1833
1648
  isNode: i,
1834
1649
  width: Infinity
1835
1650
  }, o);
1836
- }, "createLabel"), xn = /* @__PURE__ */ r((e, t, n, r, i) => {
1837
- t.arrowTypeStart && Cn(e, "start", t.arrowTypeStart, n, r, i), t.arrowTypeEnd && Cn(e, "end", t.arrowTypeEnd, n, r, i);
1838
- }, "addEdgeMarkers"), Sn = {
1651
+ }, "createLabel"), Te = /* @__PURE__ */ c((e, t, n, r, i) => {
1652
+ t.arrowTypeStart && De(e, "start", t.arrowTypeStart, n, r, i), t.arrowTypeEnd && De(e, "end", t.arrowTypeEnd, n, r, i);
1653
+ }, "addEdgeMarkers"), Ee = {
1839
1654
  arrow_cross: "cross",
1840
1655
  arrow_point: "point",
1841
1656
  arrow_barb: "barb",
@@ -1845,199 +1660,199 @@ var U = /* @__PURE__ */ r(async (e, t, n, r = !1, i = !1) => {
1845
1660
  composition: "composition",
1846
1661
  dependency: "dependency",
1847
1662
  lollipop: "lollipop"
1848
- }, Cn = /* @__PURE__ */ r((e, t, r, i, a, o) => {
1849
- let s = Sn[r];
1850
- if (!s) {
1851
- n.warn(`Unknown arrow type: ${r}`);
1663
+ }, De = /* @__PURE__ */ c((e, t, n, r, i, a) => {
1664
+ let o = Ee[n];
1665
+ if (!o) {
1666
+ s.warn(`Unknown arrow type: ${n}`);
1852
1667
  return;
1853
1668
  }
1854
1669
  let c = t === "start" ? "Start" : "End";
1855
- e.attr(`marker-${t}`, `url(${i}#${a}_${o}-${s}${c})`);
1856
- }, "addEdgeMarker"), wn = {}, W = {}, Tn = /* @__PURE__ */ r(async (e, t) => {
1857
- let n = c(), r = f(n), a = e.insert("g").attr("class", "edgeLabel"), o = a.insert("g").attr("class", "label"), s = t.labelType === "markdown", l = await oe(e, t.label, {
1670
+ e.attr(`marker-${t}`, `url(${r}#${i}_${a}-${o}${c})`);
1671
+ }, "addEdgeMarker"), H = {}, U = {}, Oe = /* @__PURE__ */ c(async (e, t) => {
1672
+ let n = p(), r = _(n), i = e.insert("g").attr("class", "edgeLabel"), a = i.insert("g").attr("class", "label"), o = t.labelType === "markdown", s = await x(e, t.label, {
1858
1673
  style: t.labelStyle,
1859
1674
  useHtmlLabels: r,
1860
- addSvgBackground: s,
1675
+ addSvgBackground: o,
1861
1676
  isNode: !1,
1862
- markdown: s,
1863
- width: s ? void 0 : Infinity
1677
+ markdown: o,
1678
+ width: o ? void 0 : Infinity
1864
1679
  }, n);
1865
- o.node().appendChild(l);
1866
- let u = l.getBBox(), d = u;
1680
+ a.node().appendChild(s);
1681
+ let c = s.getBBox(), u = c;
1867
1682
  if (r) {
1868
- let e = l.children[0], t = i(l);
1869
- u = e.getBoundingClientRect(), d = u, t.attr("width", u.width), t.attr("height", u.height);
1683
+ let e = s.children[0], t = l(s);
1684
+ c = e.getBoundingClientRect(), u = c, t.attr("width", c.width), t.attr("height", c.height);
1870
1685
  } else {
1871
- let e = i(l).select("text").node();
1872
- e && typeof e.getBBox == "function" && (d = e.getBBox());
1686
+ let e = l(s).select("text").node();
1687
+ e && typeof e.getBBox == "function" && (u = e.getBBox());
1873
1688
  }
1874
- o.attr("transform", N(d, r)), wn[t.id] = a, t.width = u.width, t.height = u.height;
1875
- let p;
1689
+ a.attr("transform", w(u, r)), H[t.id] = i, t.width = c.width, t.height = c.height;
1690
+ let d;
1876
1691
  if (t.startLabelLeft) {
1877
- let n = e.insert("g").attr("class", "edgeTerminals"), a = n.insert("g").attr("class", "inner"), o = await U(a, t.startLabelLeft, t.labelStyle);
1878
- p = o;
1879
- let s = o.getBBox();
1692
+ let n = e.insert("g").attr("class", "edgeTerminals"), i = n.insert("g").attr("class", "inner"), a = await V(i, t.startLabelLeft, t.labelStyle);
1693
+ d = a;
1694
+ let o = a.getBBox();
1880
1695
  if (r) {
1881
- let e = o.children[0], t = i(o);
1882
- s = e.getBoundingClientRect(), t.attr("width", s.width), t.attr("height", s.height);
1696
+ let e = a.children[0], t = l(a);
1697
+ o = e.getBoundingClientRect(), t.attr("width", o.width), t.attr("height", o.height);
1883
1698
  }
1884
- a.attr("transform", N(s, r)), W[t.id] || (W[t.id] = {}), W[t.id].startLeft = n, G(p, t.startLabelLeft);
1699
+ i.attr("transform", w(o, r)), U[t.id] || (U[t.id] = {}), U[t.id].startLeft = n, W(d, t.startLabelLeft);
1885
1700
  }
1886
1701
  if (t.startLabelRight) {
1887
- let n = e.insert("g").attr("class", "edgeTerminals"), a = n.insert("g").attr("class", "inner"), o = await U(n, t.startLabelRight, t.labelStyle);
1888
- p = o, a.node().appendChild(o);
1889
- let s = o.getBBox();
1702
+ let n = e.insert("g").attr("class", "edgeTerminals"), i = n.insert("g").attr("class", "inner"), a = await V(n, t.startLabelRight, t.labelStyle);
1703
+ d = a, i.node().appendChild(a);
1704
+ let o = a.getBBox();
1890
1705
  if (r) {
1891
- let e = o.children[0], t = i(o);
1892
- s = e.getBoundingClientRect(), t.attr("width", s.width), t.attr("height", s.height);
1706
+ let e = a.children[0], t = l(a);
1707
+ o = e.getBoundingClientRect(), t.attr("width", o.width), t.attr("height", o.height);
1893
1708
  }
1894
- a.attr("transform", N(s, r)), W[t.id] || (W[t.id] = {}), W[t.id].startRight = n, G(p, t.startLabelRight);
1709
+ i.attr("transform", w(o, r)), U[t.id] || (U[t.id] = {}), U[t.id].startRight = n, W(d, t.startLabelRight);
1895
1710
  }
1896
1711
  if (t.endLabelLeft) {
1897
- let n = e.insert("g").attr("class", "edgeTerminals"), a = n.insert("g").attr("class", "inner"), o = await U(a, t.endLabelLeft, t.labelStyle);
1898
- p = o;
1899
- let s = o.getBBox();
1712
+ let n = e.insert("g").attr("class", "edgeTerminals"), i = n.insert("g").attr("class", "inner"), a = await V(i, t.endLabelLeft, t.labelStyle);
1713
+ d = a;
1714
+ let o = a.getBBox();
1900
1715
  if (r) {
1901
- let e = o.children[0], t = i(o);
1902
- s = e.getBoundingClientRect(), t.attr("width", s.width), t.attr("height", s.height);
1716
+ let e = a.children[0], t = l(a);
1717
+ o = e.getBoundingClientRect(), t.attr("width", o.width), t.attr("height", o.height);
1903
1718
  }
1904
- a.attr("transform", N(s, r)), n.node().appendChild(o), W[t.id] || (W[t.id] = {}), W[t.id].endLeft = n, G(p, t.endLabelLeft);
1719
+ i.attr("transform", w(o, r)), n.node().appendChild(a), U[t.id] || (U[t.id] = {}), U[t.id].endLeft = n, W(d, t.endLabelLeft);
1905
1720
  }
1906
1721
  if (t.endLabelRight) {
1907
- let n = e.insert("g").attr("class", "edgeTerminals"), a = n.insert("g").attr("class", "inner"), o = await U(a, t.endLabelRight, t.labelStyle);
1908
- p = o;
1909
- let s = o.getBBox();
1722
+ let n = e.insert("g").attr("class", "edgeTerminals"), i = n.insert("g").attr("class", "inner"), a = await V(i, t.endLabelRight, t.labelStyle);
1723
+ d = a;
1724
+ let o = a.getBBox();
1910
1725
  if (r) {
1911
- let e = o.children[0], t = i(o);
1912
- s = e.getBoundingClientRect(), t.attr("width", s.width), t.attr("height", s.height);
1726
+ let e = a.children[0], t = l(a);
1727
+ o = e.getBoundingClientRect(), t.attr("width", o.width), t.attr("height", o.height);
1913
1728
  }
1914
- a.attr("transform", N(s, r)), n.node().appendChild(o), W[t.id] || (W[t.id] = {}), W[t.id].endRight = n, G(p, t.endLabelRight);
1729
+ i.attr("transform", w(o, r)), n.node().appendChild(a), U[t.id] || (U[t.id] = {}), U[t.id].endRight = n, W(d, t.endLabelRight);
1915
1730
  }
1916
- return l;
1731
+ return s;
1917
1732
  }, "insertEdgeLabel");
1918
- function G(e, t) {
1919
- f(c()) && e && (e.style.width = t.length * 9 + "px", e.style.height = "12px");
1733
+ function W(e, t) {
1734
+ _(p()) && e && (e.style.width = t.length * 9 + "px", e.style.height = "12px");
1920
1735
  }
1921
- r(G, "setTerminalWidth");
1922
- var En = /* @__PURE__ */ r((e, t) => {
1923
- n.debug("Moving label abc88 ", e.id, e.label, wn[e.id], t);
1924
- let r = t.updatedPath ? t.updatedPath : t.originalPath, { subGraphTitleTotalMargin: i } = le(c());
1736
+ c(W, "setTerminalWidth");
1737
+ var ke = /* @__PURE__ */ c((e, t) => {
1738
+ s.debug("Moving label abc88 ", e.id, e.label, H[e.id], t);
1739
+ let n = t.updatedPath ? t.updatedPath : t.originalPath, { subGraphTitleTotalMargin: i } = T(p());
1925
1740
  if (e.label) {
1926
- let a = wn[e.id], o = e.x, s = e.y;
1927
- if (r) {
1928
- let i = A.calcLabelPosition(r);
1929
- n.debug("Moving label " + e.label + " from (", o, ",", s, ") to (", i.x, ",", i.y, ") abc88"), t.updatedPath && (o = i.x, s = i.y);
1741
+ let a = H[e.id], o = e.x, c = e.y;
1742
+ if (n) {
1743
+ let i = r.calcLabelPosition(n);
1744
+ s.debug("Moving label " + e.label + " from (", o, ",", c, ") to (", i.x, ",", i.y, ") abc88"), t.updatedPath && (o = i.x, c = i.y);
1930
1745
  }
1931
- a.attr("transform", `translate(${o}, ${s + i / 2})`);
1746
+ a.attr("transform", `translate(${o}, ${c + i / 2})`);
1932
1747
  }
1933
1748
  if (e.startLabelLeft) {
1934
- let t = W[e.id].startLeft, n = e.x, i = e.y;
1935
- if (r) {
1936
- let t = A.calcTerminalLabelPosition(e.arrowTypeStart ? 10 : 0, "start_left", r);
1937
- n = t.x, i = t.y;
1749
+ let t = U[e.id].startLeft, i = e.x, a = e.y;
1750
+ if (n) {
1751
+ let t = r.calcTerminalLabelPosition(e.arrowTypeStart ? 10 : 0, "start_left", n);
1752
+ i = t.x, a = t.y;
1938
1753
  }
1939
- t.attr("transform", `translate(${n}, ${i})`);
1754
+ t.attr("transform", `translate(${i}, ${a})`);
1940
1755
  }
1941
1756
  if (e.startLabelRight) {
1942
- let t = W[e.id].startRight, n = e.x, i = e.y;
1943
- if (r) {
1944
- let t = A.calcTerminalLabelPosition(e.arrowTypeStart ? 10 : 0, "start_right", r);
1945
- n = t.x, i = t.y;
1757
+ let t = U[e.id].startRight, i = e.x, a = e.y;
1758
+ if (n) {
1759
+ let t = r.calcTerminalLabelPosition(e.arrowTypeStart ? 10 : 0, "start_right", n);
1760
+ i = t.x, a = t.y;
1946
1761
  }
1947
- t.attr("transform", `translate(${n}, ${i})`);
1762
+ t.attr("transform", `translate(${i}, ${a})`);
1948
1763
  }
1949
1764
  if (e.endLabelLeft) {
1950
- let t = W[e.id].endLeft, n = e.x, i = e.y;
1951
- if (r) {
1952
- let t = A.calcTerminalLabelPosition(e.arrowTypeEnd ? 10 : 0, "end_left", r);
1953
- n = t.x, i = t.y;
1765
+ let t = U[e.id].endLeft, i = e.x, a = e.y;
1766
+ if (n) {
1767
+ let t = r.calcTerminalLabelPosition(e.arrowTypeEnd ? 10 : 0, "end_left", n);
1768
+ i = t.x, a = t.y;
1954
1769
  }
1955
- t.attr("transform", `translate(${n}, ${i})`);
1770
+ t.attr("transform", `translate(${i}, ${a})`);
1956
1771
  }
1957
1772
  if (e.endLabelRight) {
1958
- let t = W[e.id].endRight, n = e.x, i = e.y;
1959
- if (r) {
1960
- let t = A.calcTerminalLabelPosition(e.arrowTypeEnd ? 10 : 0, "end_right", r);
1961
- n = t.x, i = t.y;
1773
+ let t = U[e.id].endRight, i = e.x, a = e.y;
1774
+ if (n) {
1775
+ let t = r.calcTerminalLabelPosition(e.arrowTypeEnd ? 10 : 0, "end_right", n);
1776
+ i = t.x, a = t.y;
1962
1777
  }
1963
- t.attr("transform", `translate(${n}, ${i})`);
1778
+ t.attr("transform", `translate(${i}, ${a})`);
1964
1779
  }
1965
- }, "positionEdgeLabel"), Dn = /* @__PURE__ */ r((e, t) => {
1780
+ }, "positionEdgeLabel"), Ae = /* @__PURE__ */ c((e, t) => {
1966
1781
  let n = e.x, r = e.y, i = Math.abs(t.x - n), a = Math.abs(t.y - r), o = e.width / 2, s = e.height / 2;
1967
1782
  return i >= o || a >= s;
1968
- }, "outsideNode"), On = /* @__PURE__ */ r((e, t, r) => {
1969
- n.debug(`intersection calc abc89:
1783
+ }, "outsideNode"), je = /* @__PURE__ */ c((e, t, n) => {
1784
+ s.debug(`intersection calc abc89:
1970
1785
  outsidePoint: ${JSON.stringify(t)}
1971
- insidePoint : ${JSON.stringify(r)}
1786
+ insidePoint : ${JSON.stringify(n)}
1972
1787
  node : x:${e.x} y:${e.y} w:${e.width} h:${e.height}`);
1973
- let i = e.x, a = e.y, o = Math.abs(i - r.x), s = e.width / 2, c = r.x < t.x ? s - o : s + o, l = e.height / 2, u = Math.abs(t.y - r.y), d = Math.abs(t.x - r.x);
1974
- if (Math.abs(a - t.y) * s > Math.abs(i - t.x) * l) {
1975
- let e = r.y < t.y ? t.y - l - a : a - l - t.y;
1788
+ let r = e.x, i = e.y, a = Math.abs(r - n.x), o = e.width / 2, c = n.x < t.x ? o - a : o + a, l = e.height / 2, u = Math.abs(t.y - n.y), d = Math.abs(t.x - n.x);
1789
+ if (Math.abs(i - t.y) * o > Math.abs(r - t.x) * l) {
1790
+ let e = n.y < t.y ? t.y - l - i : i - l - t.y;
1976
1791
  c = d * e / u;
1977
- let i = {
1978
- x: r.x < t.x ? r.x + c : r.x - d + c,
1979
- y: r.y < t.y ? r.y + u - e : r.y - u + e
1792
+ let r = {
1793
+ x: n.x < t.x ? n.x + c : n.x - d + c,
1794
+ y: n.y < t.y ? n.y + u - e : n.y - u + e
1980
1795
  };
1981
- return c === 0 && (i.x = t.x, i.y = t.y), d === 0 && (i.x = t.x), u === 0 && (i.y = t.y), n.debug(`abc89 topp/bott calc, Q ${u}, q ${e}, R ${d}, r ${c}`, i), i;
1796
+ return c === 0 && (r.x = t.x, r.y = t.y), d === 0 && (r.x = t.x), u === 0 && (r.y = t.y), s.debug(`abc89 topp/bott calc, Q ${u}, q ${e}, R ${d}, r ${c}`, r), r;
1982
1797
  } else {
1983
- c = r.x < t.x ? t.x - s - i : i - s - t.x;
1984
- let e = u * c / d, a = r.x < t.x ? r.x + d - c : r.x - d + c, o = r.y < t.y ? r.y + e : r.y - e;
1985
- return n.debug(`sides calc abc89, Q ${u}, q ${e}, R ${d}, r ${c}`, {
1986
- _x: a,
1987
- _y: o
1988
- }), c === 0 && (a = t.x, o = t.y), d === 0 && (a = t.x), u === 0 && (o = t.y), {
1989
- x: a,
1990
- y: o
1798
+ c = n.x < t.x ? t.x - o - r : r - o - t.x;
1799
+ let e = u * c / d, i = n.x < t.x ? n.x + d - c : n.x - d + c, a = n.y < t.y ? n.y + e : n.y - e;
1800
+ return s.debug(`sides calc abc89, Q ${u}, q ${e}, R ${d}, r ${c}`, {
1801
+ _x: i,
1802
+ _y: a
1803
+ }), c === 0 && (i = t.x, a = t.y), d === 0 && (i = t.x), u === 0 && (a = t.y), {
1804
+ x: i,
1805
+ y: a
1991
1806
  };
1992
1807
  }
1993
- }, "intersection"), kn = /* @__PURE__ */ r((e, t) => {
1994
- n.debug("abc88 cutPathAtIntersect", e, t);
1995
- let r = [], i = e[0], a = !1;
1808
+ }, "intersection"), Me = /* @__PURE__ */ c((e, t) => {
1809
+ s.debug("abc88 cutPathAtIntersect", e, t);
1810
+ let n = [], r = e[0], i = !1;
1996
1811
  return e.forEach((e) => {
1997
- if (!Dn(t, e) && !a) {
1998
- let n = On(t, i, e), o = !1;
1999
- r.forEach((e) => {
2000
- o = o || e.x === n.x && e.y === n.y;
2001
- }), r.some((e) => e.x === n.x && e.y === n.y) || r.push(n), a = !0;
2002
- } else i = e, a || r.push(e);
2003
- }), r;
2004
- }, "cutPathAtIntersect"), An = /* @__PURE__ */ r(function(e, t, r, i, o, s, l) {
2005
- let u = r.points;
2006
- n.debug("abc88 InsertEdge: edge=", r, "e=", t);
2007
- let d = !1, f = s.node(t.v);
2008
- var p = s.node(t.w);
2009
- p != null && p.intersect && f != null && f.intersect && (u = u.slice(1, r.points.length - 1), u.unshift(f.intersect(u[0])), u.push(p.intersect(u[u.length - 1]))), r.toCluster && (n.debug("to cluster abc88", i[r.toCluster]), u = kn(r.points, i[r.toCluster].node), d = !0), r.fromCluster && (n.debug("from cluster abc88", i[r.fromCluster]), u = kn(u.reverse(), i[r.fromCluster].node).reverse(), d = !0);
2010
- let m = u.filter((e) => !Number.isNaN(e.y)), g = h;
2011
- r.curve && (o === "graph" || o === "flowchart") && (g = r.curve);
2012
- let { x: _, y: v } = ce(r), y = ae().x(_).y(v).curve(g), b;
1812
+ if (!Ae(t, e) && !i) {
1813
+ let a = je(t, r, e), o = !1;
1814
+ n.forEach((e) => {
1815
+ o = o || e.x === a.x && e.y === a.y;
1816
+ }), n.some((e) => e.x === a.x && e.y === a.y) || n.push(a), i = !0;
1817
+ } else r = e, i || n.push(e);
1818
+ }), n;
1819
+ }, "cutPathAtIntersect"), Ne = /* @__PURE__ */ c(function(e, n, r, i, a, o, c) {
1820
+ let l = r.points;
1821
+ s.debug("abc88 InsertEdge: edge=", r, "e=", n);
1822
+ let d = !1, f = o.node(n.v);
1823
+ var m = o.node(n.w);
1824
+ m != null && m.intersect && f != null && f.intersect && (l = l.slice(1, r.points.length - 1), l.unshift(f.intersect(l[0])), l.push(m.intersect(l[l.length - 1]))), r.toCluster && (s.debug("to cluster abc88", i[r.toCluster]), l = Me(r.points, i[r.toCluster].node), d = !0), r.fromCluster && (s.debug("from cluster abc88", i[r.fromCluster]), l = Me(l.reverse(), i[r.fromCluster].node).reverse(), d = !0);
1825
+ let h = l.filter((e) => !Number.isNaN(e.y)), g = t;
1826
+ r.curve && (a === "graph" || a === "flowchart") && (g = r.curve);
1827
+ let { x: _, y: v } = C(r), y = b().x(_).y(v).curve(g), x;
2013
1828
  switch (r.thickness) {
2014
1829
  case "normal":
2015
- b = "edge-thickness-normal";
1830
+ x = "edge-thickness-normal";
2016
1831
  break;
2017
1832
  case "thick":
2018
- b = "edge-thickness-thick";
1833
+ x = "edge-thickness-thick";
2019
1834
  break;
2020
1835
  case "invisible":
2021
- b = "edge-thickness-thick";
1836
+ x = "edge-thickness-thick";
2022
1837
  break;
2023
- default: b = "";
1838
+ default: x = "";
2024
1839
  }
2025
1840
  switch (r.pattern) {
2026
1841
  case "solid":
2027
- b += " edge-pattern-solid";
1842
+ x += " edge-pattern-solid";
2028
1843
  break;
2029
1844
  case "dotted":
2030
- b += " edge-pattern-dotted";
1845
+ x += " edge-pattern-dotted";
2031
1846
  break;
2032
1847
  case "dashed":
2033
- b += " edge-pattern-dashed";
1848
+ x += " edge-pattern-dashed";
2034
1849
  break;
2035
1850
  }
2036
- let x = e.append("path").attr("d", y(m)).attr("id", r.id).attr("class", " " + b + (r.classes ? " " + r.classes : "")).attr("style", r.style), S = "";
2037
- (c().flowchart.arrowMarkerAbsolute || c().state.arrowMarkerAbsolute) && (S = a(!0)), xn(x, r, S, l, o);
2038
- let C = {};
2039
- return d && (C.updatedPath = u), C.originalPath = r.points, C;
2040
- }, "insertEdge"), jn = /* @__PURE__ */ r((e) => {
1851
+ let S = e.append("path").attr("d", y(h)).attr("id", r.id).attr("class", " " + x + (r.classes ? " " + r.classes : "")).attr("style", r.style), w = "";
1852
+ (p().flowchart.arrowMarkerAbsolute || p().state.arrowMarkerAbsolute) && (w = u(!0)), Te(S, r, w, c, a);
1853
+ let T = {};
1854
+ return d && (T.updatedPath = l), T.originalPath = r.points, T;
1855
+ }, "insertEdge"), Pe = /* @__PURE__ */ c((e) => {
2041
1856
  let t = /* @__PURE__ */ new Set();
2042
1857
  for (let n of e) switch (n) {
2043
1858
  case "x":
@@ -2051,8 +1866,8 @@ var En = /* @__PURE__ */ r((e, t) => {
2051
1866
  break;
2052
1867
  }
2053
1868
  return t;
2054
- }, "expandAndDeduplicateDirections"), Mn = /* @__PURE__ */ r((e, t, n) => {
2055
- let r = jn(e), i = t.height + 2 * n.padding, a = i / 2, o = t.width + 2 * a + n.padding, s = n.padding / 2;
1869
+ }, "expandAndDeduplicateDirections"), Fe = /* @__PURE__ */ c((e, t, n) => {
1870
+ let r = Pe(e), i = t.height + 2 * n.padding, a = i / 2, o = t.width + 2 * a + n.padding, s = n.padding / 2;
2056
1871
  return r.has("right") && r.has("left") && r.has("up") && r.has("down") ? [
2057
1872
  {
2058
1873
  x: 0,
@@ -2457,12 +2272,12 @@ var En = /* @__PURE__ */ r((e, t) => {
2457
2272
  y: 0
2458
2273
  }];
2459
2274
  }, "getArrowPoints");
2460
- function Nn(e, t) {
2275
+ function Ie(e, t) {
2461
2276
  return e.intersect(t);
2462
2277
  }
2463
- r(Nn, "intersectNode");
2464
- var Pn = Nn;
2465
- function Fn(e, t, n, r) {
2278
+ c(Ie, "intersectNode");
2279
+ var Le = Ie;
2280
+ function Re(e, t, n, r) {
2466
2281
  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);
2467
2282
  r.x < i && (l = -l);
2468
2283
  var u = Math.abs(t * n * s / c);
@@ -2471,33 +2286,33 @@ function Fn(e, t, n, r) {
2471
2286
  y: a + u
2472
2287
  };
2473
2288
  }
2474
- r(Fn, "intersectEllipse");
2475
- var In = Fn;
2476
- function Ln(e, t, n) {
2477
- return In(e, t, t, n);
2289
+ c(Re, "intersectEllipse");
2290
+ var ze = Re;
2291
+ function Be(e, t, n) {
2292
+ return ze(e, t, t, n);
2478
2293
  }
2479
- r(Ln, "intersectCircle");
2480
- var Rn = Ln;
2481
- function zn(e, t, n, r) {
2294
+ c(Be, "intersectCircle");
2295
+ var Ve = Be;
2296
+ function He(e, t, n, r) {
2482
2297
  var i = t.y - e.y, a, o = e.x - t.x, s, c = t.x * e.y - e.x * t.y, l, u, d, f = i * n.x + o * n.y + c, p = i * r.x + o * r.y + c, m, h, g, _, v;
2483
- if (!(f !== 0 && p !== 0 && Bn(f, p)) && (a = r.y - n.y, s = n.x - r.x, l = r.x * n.y - n.x * r.y, u = a * e.x + s * e.y + l, d = a * t.x + s * t.y + l, !(u !== 0 && d !== 0 && Bn(u, d)) && (m = i * s - a * o, m !== 0))) return h = Math.abs(m / 2), g = o * l - s * c, _ = g < 0 ? (g - h) / m : (g + h) / m, g = a * c - i * l, v = g < 0 ? (g - h) / m : (g + h) / m, {
2298
+ if (!(f !== 0 && p !== 0 && G(f, p)) && (a = r.y - n.y, s = n.x - r.x, l = r.x * n.y - n.x * r.y, u = a * e.x + s * e.y + l, d = a * t.x + s * t.y + l, !(u !== 0 && d !== 0 && G(u, d)) && (m = i * s - a * o, m !== 0))) return h = Math.abs(m / 2), g = o * l - s * c, _ = g < 0 ? (g - h) / m : (g + h) / m, g = a * c - i * l, v = g < 0 ? (g - h) / m : (g + h) / m, {
2484
2299
  x: _,
2485
2300
  y: v
2486
2301
  };
2487
2302
  }
2488
- r(zn, "intersectLine");
2489
- function Bn(e, t) {
2303
+ c(He, "intersectLine");
2304
+ function G(e, t) {
2490
2305
  return e * t > 0;
2491
2306
  }
2492
- r(Bn, "sameSign");
2493
- var Vn = zn, Hn = Un;
2494
- function Un(e, t, n) {
2307
+ c(G, "sameSign");
2308
+ var Ue = He, We = Ge;
2309
+ function Ge(e, t, n) {
2495
2310
  var r = e.x, i = e.y, a = [], o = Infinity, s = Infinity;
2496
2311
  typeof t.forEach == "function" ? t.forEach(function(e) {
2497
2312
  o = Math.min(o, e.x), s = Math.min(s, e.y);
2498
2313
  }) : (o = Math.min(o, t.x), s = Math.min(s, t.y));
2499
2314
  for (var c = r - e.width / 2 - o, l = i - e.height / 2 - s, u = 0; u < t.length; u++) {
2500
- var d = t[u], f = t[u < t.length - 1 ? u + 1 : 0], p = Vn(e, n, {
2315
+ var d = t[u], f = t[u < t.length - 1 ? u + 1 : 0], p = Ue(e, n, {
2501
2316
  x: c + d.x,
2502
2317
  y: l + d.y
2503
2318
  }, {
@@ -2511,42 +2326,42 @@ function Un(e, t, n) {
2511
2326
  return a < c ? -1 : a === c ? 0 : 1;
2512
2327
  }), a[0]) : e;
2513
2328
  }
2514
- r(Un, "intersectPolygon");
2329
+ c(Ge, "intersectPolygon");
2515
2330
  var K = {
2516
- node: Pn,
2517
- circle: Rn,
2518
- ellipse: In,
2519
- polygon: Hn,
2520
- rect: /* @__PURE__ */ r((e, t) => {
2331
+ node: Le,
2332
+ circle: Ve,
2333
+ ellipse: ze,
2334
+ polygon: We,
2335
+ rect: /* @__PURE__ */ c((e, t) => {
2521
2336
  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;
2522
2337
  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), {
2523
2338
  x: n + c,
2524
2339
  y: r + l
2525
2340
  };
2526
2341
  }, "intersectRect")
2527
- }, q = /* @__PURE__ */ r(async (e, t, n, r) => {
2528
- let a = c(), s, l = t.useHtmlLabels || f(a);
2529
- s = n || "node default";
2530
- let u = e.insert("g").attr("class", s).attr("id", t.domId || t.id), d = u.insert("g").attr("class", "label").attr("style", t.labelStyle), p;
2531
- p = t.labelText === void 0 ? "" : typeof t.labelText == "string" ? t.labelText : t.labelText[0];
2342
+ }, q = /* @__PURE__ */ c(async (e, t, n, r) => {
2343
+ let a = p(), o, s = t.useHtmlLabels || _(a);
2344
+ o = n || "node default";
2345
+ let c = e.insert("g").attr("class", o).attr("id", t.domId || t.id), u = c.insert("g").attr("class", "label").attr("style", t.labelStyle), f;
2346
+ f = t.labelText === void 0 ? "" : typeof t.labelText == "string" ? t.labelText : t.labelText[0];
2532
2347
  let m;
2533
- m = t.labelType === "markdown" ? oe(d, o(j(p), a), {
2534
- useHtmlLabels: l,
2348
+ m = t.labelType === "markdown" ? x(u, d(i(f), a), {
2349
+ useHtmlLabels: s,
2535
2350
  width: t.width || a.flowchart.wrappingWidth,
2536
2351
  classes: "markdown-node-label"
2537
- }, a) : await U(d, o(j(p), a), t.labelStyle, !1, r);
2352
+ }, a) : await V(u, d(i(f), a), t.labelStyle, !1, r);
2538
2353
  let h = m.getBBox(), g = t.padding / 2;
2539
- if (f(a)) {
2540
- let e = m.children[0], t = i(m);
2541
- await ue(e, p), h = e.getBoundingClientRect(), t.attr("width", h.width), t.attr("height", h.height);
2354
+ if (_(a)) {
2355
+ let e = m.children[0], t = l(m);
2356
+ await E(e, f), h = e.getBoundingClientRect(), t.attr("width", h.width), t.attr("height", h.height);
2542
2357
  }
2543
- return l ? d.attr("transform", "translate(" + -h.width / 2 + ", " + -h.height / 2 + ")") : d.attr("transform", "translate(0, " + -h.height / 2 + ")"), t.centerLabel && d.attr("transform", "translate(" + -h.width / 2 + ", " + -h.height / 2 + ")"), d.insert("rect", ":first-child"), {
2544
- shapeSvg: u,
2358
+ return s ? u.attr("transform", "translate(" + -h.width / 2 + ", " + -h.height / 2 + ")") : u.attr("transform", "translate(0, " + -h.height / 2 + ")"), t.centerLabel && u.attr("transform", "translate(" + -h.width / 2 + ", " + -h.height / 2 + ")"), u.insert("rect", ":first-child"), {
2359
+ shapeSvg: c,
2545
2360
  bbox: h,
2546
2361
  halfPadding: g,
2547
- label: d
2362
+ label: u
2548
2363
  };
2549
- }, "labelHelper"), J = /* @__PURE__ */ r((e, t) => {
2364
+ }, "labelHelper"), J = /* @__PURE__ */ c((e, t) => {
2550
2365
  let n = t.node().getBBox();
2551
2366
  e.width = n.width, e.height = n.height;
2552
2367
  }, "updateNodeBounds");
@@ -2555,40 +2370,40 @@ function Y(e, t, n, r) {
2555
2370
  return e.x + "," + e.y;
2556
2371
  }).join(" ")).attr("class", "label-container").attr("transform", "translate(" + -t / 2 + "," + n / 2 + ")");
2557
2372
  }
2558
- r(Y, "insertPolygonShape");
2559
- var Wn = /* @__PURE__ */ r(async (e, t) => {
2560
- t.useHtmlLabels || f(c()) || (t.centerLabel = !0);
2561
- let { shapeSvg: r, bbox: i, halfPadding: a } = await q(e, t, "node " + t.classes, !0);
2562
- n.info("Classes = ", t.classes);
2563
- let o = r.insert("rect", ":first-child");
2564
- return o.attr("rx", t.rx).attr("ry", t.ry).attr("x", -i.width / 2 - a).attr("y", -i.height / 2 - a).attr("width", i.width + t.padding).attr("height", i.height + t.padding), J(t, o), t.intersect = function(e) {
2373
+ c(Y, "insertPolygonShape");
2374
+ var Ke = /* @__PURE__ */ c(async (e, t) => {
2375
+ t.useHtmlLabels || _(p()) || (t.centerLabel = !0);
2376
+ let { shapeSvg: n, bbox: r, halfPadding: i } = await q(e, t, "node " + t.classes, !0);
2377
+ s.info("Classes = ", t.classes);
2378
+ let a = n.insert("rect", ":first-child");
2379
+ return a.attr("rx", t.rx).attr("ry", t.ry).attr("x", -r.width / 2 - i).attr("y", -r.height / 2 - i).attr("width", r.width + t.padding).attr("height", r.height + t.padding), J(t, a), t.intersect = function(e) {
2565
2380
  return K.rect(t, e);
2566
- }, r;
2567
- }, "note"), Gn = /* @__PURE__ */ r((e) => e ? " " + e : "", "formatClass"), X = /* @__PURE__ */ r((e, t) => `${t || "node default"}${Gn(e.classes)} ${Gn(e.class)}`, "getClassesFromNode"), Kn = /* @__PURE__ */ r(async (e, t) => {
2568
- let { shapeSvg: r, bbox: i } = await q(e, t, X(t, void 0), !0), a = i.width + t.padding + (i.height + t.padding), o = [
2381
+ }, n;
2382
+ }, "note"), qe = /* @__PURE__ */ c((e) => e ? " " + e : "", "formatClass"), X = /* @__PURE__ */ c((e, t) => `${t || "node default"}${qe(e.classes)} ${qe(e.class)}`, "getClassesFromNode"), Je = /* @__PURE__ */ c(async (e, t) => {
2383
+ let { shapeSvg: n, bbox: r } = await q(e, t, X(t, void 0), !0), i = r.width + t.padding + (r.height + t.padding), a = [
2569
2384
  {
2570
- x: a / 2,
2385
+ x: i / 2,
2571
2386
  y: 0
2572
2387
  },
2573
2388
  {
2574
- x: a,
2575
- y: -a / 2
2389
+ x: i,
2390
+ y: -i / 2
2576
2391
  },
2577
2392
  {
2578
- x: a / 2,
2579
- y: -a
2393
+ x: i / 2,
2394
+ y: -i
2580
2395
  },
2581
2396
  {
2582
2397
  x: 0,
2583
- y: -a / 2
2398
+ y: -i / 2
2584
2399
  }
2585
2400
  ];
2586
- n.info("Question main (Circle)");
2587
- let s = Y(r, a, a, o);
2588
- return s.attr("style", t.style), J(t, s), t.intersect = function(e) {
2589
- return n.warn("Intersect called"), K.polygon(t, o, e);
2590
- }, r;
2591
- }, "question"), qn = /* @__PURE__ */ r((e, t) => {
2401
+ s.info("Question main (Circle)");
2402
+ let o = Y(n, i, i, a);
2403
+ return o.attr("style", t.style), J(t, o), t.intersect = function(e) {
2404
+ return s.warn("Intersect called"), K.polygon(t, a, e);
2405
+ }, n;
2406
+ }, "question"), Ye = /* @__PURE__ */ c((e, t) => {
2592
2407
  let n = e.insert("g").attr("class", "node default").attr("id", t.domId || t.id);
2593
2408
  return n.insert("polygon", ":first-child").attr("points", [
2594
2409
  {
@@ -2612,7 +2427,7 @@ var Wn = /* @__PURE__ */ r(async (e, t) => {
2612
2427
  }).join(" ")).attr("class", "state-start").attr("r", 7).attr("width", 28).attr("height", 28), t.width = 28, t.height = 28, t.intersect = function(e) {
2613
2428
  return K.circle(t, 14, e);
2614
2429
  }, n;
2615
- }, "choice"), Jn = /* @__PURE__ */ r(async (e, t) => {
2430
+ }, "choice"), Xe = /* @__PURE__ */ c(async (e, t) => {
2616
2431
  let { shapeSvg: n, bbox: r } = await q(e, t, X(t, void 0), !0), i = r.height + t.padding, a = i / 4, o = r.width + 2 * a + t.padding, s = [
2617
2432
  {
2618
2433
  x: a,
@@ -2642,12 +2457,12 @@ var Wn = /* @__PURE__ */ r(async (e, t) => {
2642
2457
  return c.attr("style", t.style), J(t, c), t.intersect = function(e) {
2643
2458
  return K.polygon(t, s, e);
2644
2459
  }, n;
2645
- }, "hexagon"), Yn = /* @__PURE__ */ r(async (e, t) => {
2646
- let { shapeSvg: n, bbox: r } = await q(e, t, void 0, !0), i = r.height + 2 * t.padding, a = i / 2, o = r.width + 2 * a + t.padding, s = Mn(t.directions, r, t), c = Y(n, o, i, s);
2460
+ }, "hexagon"), Ze = /* @__PURE__ */ c(async (e, t) => {
2461
+ let { shapeSvg: n, bbox: r } = await q(e, t, void 0, !0), i = r.height + 2 * t.padding, a = i / 2, o = r.width + 2 * a + t.padding, s = Fe(t.directions, r, t), c = Y(n, o, i, s);
2647
2462
  return c.attr("style", t.style), J(t, c), t.intersect = function(e) {
2648
2463
  return K.polygon(t, s, e);
2649
2464
  }, n;
2650
- }, "block_arrow"), Xn = /* @__PURE__ */ r(async (e, t) => {
2465
+ }, "block_arrow"), Qe = /* @__PURE__ */ c(async (e, t) => {
2651
2466
  let { shapeSvg: n, bbox: r } = await q(e, t, X(t, void 0), !0), i = r.width + t.padding, a = r.height + t.padding, o = [
2652
2467
  {
2653
2468
  x: -a / 2,
@@ -2673,7 +2488,7 @@ var Wn = /* @__PURE__ */ r(async (e, t) => {
2673
2488
  return Y(n, i, a, o).attr("style", t.style), t.width = i + a, t.height = a, t.intersect = function(e) {
2674
2489
  return K.polygon(t, o, e);
2675
2490
  }, n;
2676
- }, "rect_left_inv_arrow"), Zn = /* @__PURE__ */ r(async (e, t) => {
2491
+ }, "rect_left_inv_arrow"), $e = /* @__PURE__ */ c(async (e, t) => {
2677
2492
  let { shapeSvg: n, bbox: r } = await q(e, t, X(t), !0), i = r.width + t.padding, a = r.height + t.padding, o = [
2678
2493
  {
2679
2494
  x: -2 * a / 6,
@@ -2695,7 +2510,7 @@ var Wn = /* @__PURE__ */ r(async (e, t) => {
2695
2510
  return s.attr("style", t.style), J(t, s), t.intersect = function(e) {
2696
2511
  return K.polygon(t, o, e);
2697
2512
  }, n;
2698
- }, "lean_right"), Qn = /* @__PURE__ */ r(async (e, t) => {
2513
+ }, "lean_right"), et = /* @__PURE__ */ c(async (e, t) => {
2699
2514
  let { shapeSvg: n, bbox: r } = await q(e, t, X(t, void 0), !0), i = r.width + t.padding, a = r.height + t.padding, o = [
2700
2515
  {
2701
2516
  x: 2 * a / 6,
@@ -2717,7 +2532,7 @@ var Wn = /* @__PURE__ */ r(async (e, t) => {
2717
2532
  return s.attr("style", t.style), J(t, s), t.intersect = function(e) {
2718
2533
  return K.polygon(t, o, e);
2719
2534
  }, n;
2720
- }, "lean_left"), $n = /* @__PURE__ */ r(async (e, t) => {
2535
+ }, "lean_left"), tt = /* @__PURE__ */ c(async (e, t) => {
2721
2536
  let { shapeSvg: n, bbox: r } = await q(e, t, X(t, void 0), !0), i = r.width + t.padding, a = r.height + t.padding, o = [
2722
2537
  {
2723
2538
  x: -2 * a / 6,
@@ -2739,7 +2554,7 @@ var Wn = /* @__PURE__ */ r(async (e, t) => {
2739
2554
  return s.attr("style", t.style), J(t, s), t.intersect = function(e) {
2740
2555
  return K.polygon(t, o, e);
2741
2556
  }, n;
2742
- }, "trapezoid"), er = /* @__PURE__ */ r(async (e, t) => {
2557
+ }, "trapezoid"), nt = /* @__PURE__ */ c(async (e, t) => {
2743
2558
  let { shapeSvg: n, bbox: r } = await q(e, t, X(t, void 0), !0), i = r.width + t.padding, a = r.height + t.padding, o = [
2744
2559
  {
2745
2560
  x: a / 6,
@@ -2761,7 +2576,7 @@ var Wn = /* @__PURE__ */ r(async (e, t) => {
2761
2576
  return s.attr("style", t.style), J(t, s), t.intersect = function(e) {
2762
2577
  return K.polygon(t, o, e);
2763
2578
  }, n;
2764
- }, "inv_trapezoid"), tr = /* @__PURE__ */ r(async (e, t) => {
2579
+ }, "inv_trapezoid"), rt = /* @__PURE__ */ c(async (e, t) => {
2765
2580
  let { shapeSvg: n, bbox: r } = await q(e, t, X(t, void 0), !0), i = r.width + t.padding, a = r.height + t.padding, o = [
2766
2581
  {
2767
2582
  x: 0,
@@ -2787,7 +2602,7 @@ var Wn = /* @__PURE__ */ r(async (e, t) => {
2787
2602
  return s.attr("style", t.style), J(t, s), t.intersect = function(e) {
2788
2603
  return K.polygon(t, o, e);
2789
2604
  }, n;
2790
- }, "rect_right_inv_arrow"), nr = /* @__PURE__ */ r(async (e, t) => {
2605
+ }, "rect_right_inv_arrow"), it = /* @__PURE__ */ c(async (e, t) => {
2791
2606
  let { shapeSvg: n, bbox: r } = await q(e, t, X(t, void 0), !0), i = r.width + t.padding, a = i / 2, o = a / (2.5 + i / 50), s = r.height + o + t.padding, c = "M 0," + o + " a " + a + "," + o + " 0,0,0 " + i + " 0 a " + a + "," + o + " 0,0,0 " + -i + " 0 l 0," + s + " a " + a + "," + o + " 0,0,0 " + i + " 0 l 0," + -s;
2792
2607
  return J(t, n.attr("label-offset-y", o).insert("path", ":first-child").attr("style", t.style).attr("d", c).attr("transform", "translate(" + -i / 2 + "," + -(s / 2 + o) + ")")), t.intersect = function(e) {
2793
2608
  let n = K.rect(t, e), r = n.x - t.x;
@@ -2797,90 +2612,90 @@ var Wn = /* @__PURE__ */ r(async (e, t) => {
2797
2612
  }
2798
2613
  return n;
2799
2614
  }, n;
2800
- }, "cylinder"), rr = /* @__PURE__ */ r(async (e, t) => {
2801
- let { shapeSvg: r, bbox: i, halfPadding: a } = await q(e, t, "node " + t.classes + " " + t.class, !0), o = r.insert("rect", ":first-child"), s = t.positioned ? t.width : i.width + t.padding, c = t.positioned ? t.height : i.height + t.padding, l = t.positioned ? -s / 2 : -i.width / 2 - a, u = t.positioned ? -c / 2 : -i.height / 2 - a;
2802
- if (o.attr("class", "basic label-container").attr("style", t.style).attr("rx", t.rx).attr("ry", t.ry).attr("x", l).attr("y", u).attr("width", s).attr("height", c), t.props) {
2615
+ }, "cylinder"), at = /* @__PURE__ */ c(async (e, t) => {
2616
+ let { shapeSvg: n, bbox: r, halfPadding: i } = await q(e, t, "node " + t.classes + " " + t.class, !0), a = n.insert("rect", ":first-child"), o = t.positioned ? t.width : r.width + t.padding, c = t.positioned ? t.height : r.height + t.padding, l = t.positioned ? -o / 2 : -r.width / 2 - i, u = t.positioned ? -c / 2 : -r.height / 2 - i;
2617
+ if (a.attr("class", "basic label-container").attr("style", t.style).attr("rx", t.rx).attr("ry", t.ry).attr("x", l).attr("y", u).attr("width", o).attr("height", c), t.props) {
2803
2618
  let e = new Set(Object.keys(t.props));
2804
- t.props.borders && (Z(o, t.props.borders, s, c), e.delete("borders")), e.forEach((e) => {
2805
- n.warn(`Unknown node property ${e}`);
2619
+ t.props.borders && (Z(a, t.props.borders, o, c), e.delete("borders")), e.forEach((e) => {
2620
+ s.warn(`Unknown node property ${e}`);
2806
2621
  });
2807
2622
  }
2808
- return J(t, o), t.intersect = function(e) {
2623
+ return J(t, a), t.intersect = function(e) {
2809
2624
  return K.rect(t, e);
2810
- }, r;
2811
- }, "rect"), ir = /* @__PURE__ */ r(async (e, t) => {
2812
- let { shapeSvg: r, bbox: i, halfPadding: a } = await q(e, t, "node " + t.classes, !0), o = r.insert("rect", ":first-child"), s = t.positioned ? t.width : i.width + t.padding, c = t.positioned ? t.height : i.height + t.padding, l = t.positioned ? -s / 2 : -i.width / 2 - a, u = t.positioned ? -c / 2 : -i.height / 2 - a;
2813
- if (o.attr("class", "basic cluster composite label-container").attr("style", t.style).attr("rx", t.rx).attr("ry", t.ry).attr("x", l).attr("y", u).attr("width", s).attr("height", c), t.props) {
2625
+ }, n;
2626
+ }, "rect"), ot = /* @__PURE__ */ c(async (e, t) => {
2627
+ let { shapeSvg: n, bbox: r, halfPadding: i } = await q(e, t, "node " + t.classes, !0), a = n.insert("rect", ":first-child"), o = t.positioned ? t.width : r.width + t.padding, c = t.positioned ? t.height : r.height + t.padding, l = t.positioned ? -o / 2 : -r.width / 2 - i, u = t.positioned ? -c / 2 : -r.height / 2 - i;
2628
+ if (a.attr("class", "basic cluster composite label-container").attr("style", t.style).attr("rx", t.rx).attr("ry", t.ry).attr("x", l).attr("y", u).attr("width", o).attr("height", c), t.props) {
2814
2629
  let e = new Set(Object.keys(t.props));
2815
- t.props.borders && (Z(o, t.props.borders, s, c), e.delete("borders")), e.forEach((e) => {
2816
- n.warn(`Unknown node property ${e}`);
2630
+ t.props.borders && (Z(a, t.props.borders, o, c), e.delete("borders")), e.forEach((e) => {
2631
+ s.warn(`Unknown node property ${e}`);
2817
2632
  });
2818
2633
  }
2819
- return J(t, o), t.intersect = function(e) {
2634
+ return J(t, a), t.intersect = function(e) {
2820
2635
  return K.rect(t, e);
2821
- }, r;
2822
- }, "composite"), ar = /* @__PURE__ */ r(async (e, t) => {
2823
- let { shapeSvg: r } = await q(e, t, "label", !0);
2824
- n.trace("Classes = ", t.class);
2825
- let i = r.insert("rect", ":first-child");
2826
- if (i.attr("width", 0).attr("height", 0), r.attr("class", "label edgeLabel"), t.props) {
2636
+ }, n;
2637
+ }, "composite"), st = /* @__PURE__ */ c(async (e, t) => {
2638
+ let { shapeSvg: n } = await q(e, t, "label", !0);
2639
+ s.trace("Classes = ", t.class);
2640
+ let r = n.insert("rect", ":first-child");
2641
+ if (r.attr("width", 0).attr("height", 0), n.attr("class", "label edgeLabel"), t.props) {
2827
2642
  let e = new Set(Object.keys(t.props));
2828
- t.props.borders && (Z(i, t.props.borders, 0, 0), e.delete("borders")), e.forEach((e) => {
2829
- n.warn(`Unknown node property ${e}`);
2643
+ t.props.borders && (Z(r, t.props.borders, 0, 0), e.delete("borders")), e.forEach((e) => {
2644
+ s.warn(`Unknown node property ${e}`);
2830
2645
  });
2831
2646
  }
2832
- return J(t, i), t.intersect = function(e) {
2647
+ return J(t, r), t.intersect = function(e) {
2833
2648
  return K.rect(t, e);
2834
- }, r;
2649
+ }, n;
2835
2650
  }, "labelRect");
2836
- function Z(e, t, i, a) {
2837
- let o = [], s = /* @__PURE__ */ r((e) => {
2838
- o.push(e, 0);
2839
- }, "addBorder"), c = /* @__PURE__ */ r((e) => {
2840
- o.push(0, e);
2651
+ function Z(e, t, n, r) {
2652
+ let i = [], a = /* @__PURE__ */ c((e) => {
2653
+ i.push(e, 0);
2654
+ }, "addBorder"), o = /* @__PURE__ */ c((e) => {
2655
+ i.push(0, e);
2841
2656
  }, "skipBorder");
2842
- t.includes("t") ? (n.debug("add top border"), s(i)) : c(i), t.includes("r") ? (n.debug("add right border"), s(a)) : c(a), t.includes("b") ? (n.debug("add bottom border"), s(i)) : c(i), t.includes("l") ? (n.debug("add left border"), s(a)) : c(a), e.attr("stroke-dasharray", o.join(" "));
2657
+ t.includes("t") ? (s.debug("add top border"), a(n)) : o(n), t.includes("r") ? (s.debug("add right border"), a(r)) : o(r), t.includes("b") ? (s.debug("add bottom border"), a(n)) : o(n), t.includes("l") ? (s.debug("add left border"), a(r)) : o(r), e.attr("stroke-dasharray", i.join(" "));
2843
2658
  }
2844
- r(Z, "applyNodePropertyBorders");
2845
- var or = /* @__PURE__ */ r(async (e, t) => {
2846
- let r;
2847
- r = t.classes ? "node " + t.classes : "node default";
2848
- let a = e.insert("g").attr("class", r).attr("id", t.domId || t.id), o = a.insert("rect", ":first-child"), s = a.insert("line"), l = a.insert("g").attr("class", "label"), u = t.labelText.flat ? t.labelText.flat() : t.labelText, d = "";
2849
- d = typeof u == "object" ? u[0] : u, n.info("Label text abc79", d, u, typeof u == "object");
2850
- let p = await U(l, d, t.labelStyle, !0, !0), m = {
2659
+ c(Z, "applyNodePropertyBorders");
2660
+ var ct = /* @__PURE__ */ c(async (e, t) => {
2661
+ let n;
2662
+ n = t.classes ? "node " + t.classes : "node default";
2663
+ let r = e.insert("g").attr("class", n).attr("id", t.domId || t.id), i = r.insert("rect", ":first-child"), a = r.insert("line"), o = r.insert("g").attr("class", "label"), c = t.labelText.flat ? t.labelText.flat() : t.labelText, u = "";
2664
+ u = typeof c == "object" ? c[0] : c, s.info("Label text abc79", u, c, typeof c == "object");
2665
+ let d = await V(o, u, t.labelStyle, !0, !0), f = {
2851
2666
  width: 0,
2852
2667
  height: 0
2853
2668
  };
2854
- if (f(c())) {
2855
- let e = p.children[0], t = i(p);
2856
- m = e.getBoundingClientRect(), t.attr("width", m.width), t.attr("height", m.height);
2669
+ if (_(p())) {
2670
+ let e = d.children[0], t = l(d);
2671
+ f = e.getBoundingClientRect(), t.attr("width", f.width), t.attr("height", f.height);
2857
2672
  }
2858
- n.info("Text 2", u);
2859
- let h = u.slice(1, u.length), g = p.getBBox(), _ = await U(l, h.join ? h.join("<br/>") : h, t.labelStyle, !0, !0);
2860
- if (f(c())) {
2861
- let e = _.children[0], t = i(_);
2862
- m = e.getBoundingClientRect(), t.attr("width", m.width), t.attr("height", m.height);
2673
+ s.info("Text 2", c);
2674
+ let m = c.slice(1, c.length), h = d.getBBox(), g = await V(o, m.join ? m.join("<br/>") : m, t.labelStyle, !0, !0);
2675
+ if (_(p())) {
2676
+ let e = g.children[0], t = l(g);
2677
+ f = e.getBoundingClientRect(), t.attr("width", f.width), t.attr("height", f.height);
2863
2678
  }
2864
2679
  let v = t.padding / 2;
2865
- return i(_).attr("transform", "translate( " + (m.width > g.width ? 0 : (g.width - m.width) / 2) + ", " + (g.height + v + 5) + ")"), i(p).attr("transform", "translate( " + (m.width < g.width ? 0 : -(g.width - m.width) / 2) + ", 0)"), m = l.node().getBBox(), l.attr("transform", "translate(" + -m.width / 2 + ", " + (-m.height / 2 - v + 3) + ")"), o.attr("class", "outer title-state").attr("x", -m.width / 2 - v).attr("y", -m.height / 2 - v).attr("width", m.width + t.padding).attr("height", m.height + t.padding), s.attr("class", "divider").attr("x1", -m.width / 2 - v).attr("x2", m.width / 2 + v).attr("y1", -m.height / 2 - v + g.height + v).attr("y2", -m.height / 2 - v + g.height + v), J(t, o), t.intersect = function(e) {
2680
+ return l(g).attr("transform", "translate( " + (f.width > h.width ? 0 : (h.width - f.width) / 2) + ", " + (h.height + v + 5) + ")"), l(d).attr("transform", "translate( " + (f.width < h.width ? 0 : -(h.width - f.width) / 2) + ", 0)"), f = o.node().getBBox(), o.attr("transform", "translate(" + -f.width / 2 + ", " + (-f.height / 2 - v + 3) + ")"), i.attr("class", "outer title-state").attr("x", -f.width / 2 - v).attr("y", -f.height / 2 - v).attr("width", f.width + t.padding).attr("height", f.height + t.padding), a.attr("class", "divider").attr("x1", -f.width / 2 - v).attr("x2", f.width / 2 + v).attr("y1", -f.height / 2 - v + h.height + v).attr("y2", -f.height / 2 - v + h.height + v), J(t, i), t.intersect = function(e) {
2866
2681
  return K.rect(t, e);
2867
- }, a;
2868
- }, "rectWithTitle"), sr = /* @__PURE__ */ r(async (e, t) => {
2682
+ }, r;
2683
+ }, "rectWithTitle"), lt = /* @__PURE__ */ c(async (e, t) => {
2869
2684
  let { shapeSvg: n, bbox: r } = await q(e, t, X(t, void 0), !0), i = r.height + t.padding, a = r.width + i / 4 + t.padding;
2870
2685
  return J(t, n.insert("rect", ":first-child").attr("style", t.style).attr("rx", i / 2).attr("ry", i / 2).attr("x", -a / 2).attr("y", -i / 2).attr("width", a).attr("height", i)), t.intersect = function(e) {
2871
2686
  return K.rect(t, e);
2872
2687
  }, n;
2873
- }, "stadium"), cr = /* @__PURE__ */ r(async (e, t) => {
2874
- let { shapeSvg: r, bbox: i, halfPadding: a } = await q(e, t, X(t, void 0), !0), o = r.insert("circle", ":first-child");
2875
- return o.attr("style", t.style).attr("rx", t.rx).attr("ry", t.ry).attr("r", i.width / 2 + a).attr("width", i.width + t.padding).attr("height", i.height + t.padding), n.info("Circle main"), J(t, o), t.intersect = function(e) {
2876
- return n.info("Circle intersect", t, i.width / 2 + a, e), K.circle(t, i.width / 2 + a, e);
2877
- }, r;
2878
- }, "circle"), lr = /* @__PURE__ */ r(async (e, t) => {
2879
- let { shapeSvg: r, bbox: i, halfPadding: a } = await q(e, t, X(t, void 0), !0), o = r.insert("g", ":first-child"), s = o.insert("circle"), c = o.insert("circle");
2880
- return o.attr("class", t.class), s.attr("style", t.style).attr("rx", t.rx).attr("ry", t.ry).attr("r", i.width / 2 + a + 5).attr("width", i.width + t.padding + 10).attr("height", i.height + t.padding + 10), c.attr("style", t.style).attr("rx", t.rx).attr("ry", t.ry).attr("r", i.width / 2 + a).attr("width", i.width + t.padding).attr("height", i.height + t.padding), n.info("DoubleCircle main"), J(t, s), t.intersect = function(e) {
2881
- return n.info("DoubleCircle intersect", t, i.width / 2 + a + 5, e), K.circle(t, i.width / 2 + a + 5, e);
2882
- }, r;
2883
- }, "doublecircle"), ur = /* @__PURE__ */ r(async (e, t) => {
2688
+ }, "stadium"), ut = /* @__PURE__ */ c(async (e, t) => {
2689
+ let { shapeSvg: n, bbox: r, halfPadding: i } = await q(e, t, X(t, void 0), !0), a = n.insert("circle", ":first-child");
2690
+ return a.attr("style", t.style).attr("rx", t.rx).attr("ry", t.ry).attr("r", r.width / 2 + i).attr("width", r.width + t.padding).attr("height", r.height + t.padding), s.info("Circle main"), J(t, a), t.intersect = function(e) {
2691
+ return s.info("Circle intersect", t, r.width / 2 + i, e), K.circle(t, r.width / 2 + i, e);
2692
+ }, n;
2693
+ }, "circle"), dt = /* @__PURE__ */ c(async (e, t) => {
2694
+ let { shapeSvg: n, bbox: r, halfPadding: i } = await q(e, t, X(t, void 0), !0), a = n.insert("g", ":first-child"), o = a.insert("circle"), c = a.insert("circle");
2695
+ return a.attr("class", t.class), o.attr("style", t.style).attr("rx", t.rx).attr("ry", t.ry).attr("r", r.width / 2 + i + 5).attr("width", r.width + t.padding + 10).attr("height", r.height + t.padding + 10), c.attr("style", t.style).attr("rx", t.rx).attr("ry", t.ry).attr("r", r.width / 2 + i).attr("width", r.width + t.padding).attr("height", r.height + t.padding), s.info("DoubleCircle main"), J(t, o), t.intersect = function(e) {
2696
+ return s.info("DoubleCircle intersect", t, r.width / 2 + i + 5, e), K.circle(t, r.width / 2 + i + 5, e);
2697
+ }, n;
2698
+ }, "doublecircle"), ft = /* @__PURE__ */ c(async (e, t) => {
2884
2699
  let { shapeSvg: n, bbox: r } = await q(e, t, X(t, void 0), !0), i = r.width + t.padding, a = r.height + t.padding, o = [
2885
2700
  {
2886
2701
  x: 0,
@@ -2926,135 +2741,135 @@ var or = /* @__PURE__ */ r(async (e, t) => {
2926
2741
  return s.attr("style", t.style), J(t, s), t.intersect = function(e) {
2927
2742
  return K.polygon(t, o, e);
2928
2743
  }, n;
2929
- }, "subroutine"), dr = /* @__PURE__ */ r((e, t) => {
2744
+ }, "subroutine"), pt = /* @__PURE__ */ c((e, t) => {
2930
2745
  let n = e.insert("g").attr("class", "node default").attr("id", t.domId || t.id), r = n.insert("circle", ":first-child");
2931
2746
  return r.attr("class", "state-start").attr("r", 7).attr("width", 14).attr("height", 14), J(t, r), t.intersect = function(e) {
2932
2747
  return K.circle(t, 7, e);
2933
2748
  }, n;
2934
- }, "start"), fr = /* @__PURE__ */ r((e, t, n) => {
2749
+ }, "start"), mt = /* @__PURE__ */ c((e, t, n) => {
2935
2750
  let r = e.insert("g").attr("class", "node default").attr("id", t.domId || t.id), i = 70, a = 10;
2936
2751
  return n === "LR" && (i = 10, a = 70), J(t, r.append("rect").attr("x", -1 * i / 2).attr("y", -1 * a / 2).attr("width", i).attr("height", a).attr("class", "fork-join")), t.height += t.padding / 2, t.width += t.padding / 2, t.intersect = function(e) {
2937
2752
  return K.rect(t, e);
2938
2753
  }, r;
2939
- }, "forkJoin"), pr = {
2940
- rhombus: Kn,
2941
- composite: ir,
2942
- question: Kn,
2943
- rect: rr,
2944
- labelRect: ar,
2945
- rectWithTitle: or,
2946
- choice: qn,
2947
- circle: cr,
2948
- doublecircle: lr,
2949
- stadium: sr,
2950
- hexagon: Jn,
2951
- block_arrow: Yn,
2952
- rect_left_inv_arrow: Xn,
2953
- lean_right: Zn,
2954
- lean_left: Qn,
2955
- trapezoid: $n,
2956
- inv_trapezoid: er,
2957
- rect_right_inv_arrow: tr,
2958
- cylinder: nr,
2959
- start: dr,
2960
- end: /* @__PURE__ */ r((e, t) => {
2754
+ }, "forkJoin"), ht = {
2755
+ rhombus: Je,
2756
+ composite: ot,
2757
+ question: Je,
2758
+ rect: at,
2759
+ labelRect: st,
2760
+ rectWithTitle: ct,
2761
+ choice: Ye,
2762
+ circle: ut,
2763
+ doublecircle: dt,
2764
+ stadium: lt,
2765
+ hexagon: Xe,
2766
+ block_arrow: Ze,
2767
+ rect_left_inv_arrow: Qe,
2768
+ lean_right: $e,
2769
+ lean_left: et,
2770
+ trapezoid: tt,
2771
+ inv_trapezoid: nt,
2772
+ rect_right_inv_arrow: rt,
2773
+ cylinder: it,
2774
+ start: pt,
2775
+ end: /* @__PURE__ */ c((e, t) => {
2961
2776
  let n = e.insert("g").attr("class", "node default").attr("id", t.domId || t.id), r = n.insert("circle", ":first-child"), i = n.insert("circle", ":first-child");
2962
2777
  return i.attr("class", "state-start").attr("r", 7).attr("width", 14).attr("height", 14), r.attr("class", "state-end").attr("r", 5).attr("width", 10).attr("height", 10), J(t, i), t.intersect = function(e) {
2963
2778
  return K.circle(t, 7, e);
2964
2779
  }, n;
2965
2780
  }, "end"),
2966
- note: Wn,
2967
- subroutine: ur,
2968
- fork: fr,
2969
- join: fr,
2970
- class_box: /* @__PURE__ */ r(async (e, t) => {
2781
+ note: Ke,
2782
+ subroutine: ft,
2783
+ fork: mt,
2784
+ join: mt,
2785
+ class_box: /* @__PURE__ */ c(async (e, t) => {
2971
2786
  var n;
2972
- let r = t.padding / 2, a;
2973
- a = t.classes ? "node " + t.classes : "node default";
2974
- let o = e.insert("g").attr("class", a).attr("id", t.domId || t.id), s = o.insert("rect", ":first-child"), l = o.insert("line"), u = o.insert("line"), d = 0, p = 4, m = o.insert("g").attr("class", "label"), h = 0, g = (n = t.classData.annotations) == null ? void 0 : n[0], _ = await U(m, t.classData.annotations[0] ? "«" + t.classData.annotations[0] + "»" : "", t.labelStyle, !0, !0), v = _.getBBox();
2975
- if (f(c())) {
2976
- let e = _.children[0], t = i(_);
2787
+ let r = t.padding / 2, i;
2788
+ i = t.classes ? "node " + t.classes : "node default";
2789
+ let a = e.insert("g").attr("class", i).attr("id", t.domId || t.id), o = a.insert("rect", ":first-child"), s = a.insert("line"), c = a.insert("line"), u = 0, d = 4, f = a.insert("g").attr("class", "label"), m = 0, h = (n = t.classData.annotations) == null ? void 0 : n[0], g = await V(f, t.classData.annotations[0] ? "«" + t.classData.annotations[0] + "»" : "", t.labelStyle, !0, !0), v = g.getBBox();
2790
+ if (_(p())) {
2791
+ let e = g.children[0], t = l(g);
2977
2792
  v = e.getBoundingClientRect(), t.attr("width", v.width), t.attr("height", v.height);
2978
2793
  }
2979
- t.classData.annotations[0] && (p += v.height + 4, d += v.width);
2794
+ t.classData.annotations[0] && (d += v.height + 4, u += v.width);
2980
2795
  let y = t.classData.label;
2981
- t.classData.type !== void 0 && t.classData.type !== "" && (f(c()) ? y += "&lt;" + t.classData.type + "&gt;" : y += "<" + t.classData.type + ">");
2982
- let b = await U(m, y, t.labelStyle, !0, !0);
2983
- i(b).attr("class", "classTitle");
2796
+ t.classData.type !== void 0 && t.classData.type !== "" && (_(p()) ? y += "&lt;" + t.classData.type + "&gt;" : y += "<" + t.classData.type + ">");
2797
+ let b = await V(f, y, t.labelStyle, !0, !0);
2798
+ l(b).attr("class", "classTitle");
2984
2799
  let x = b.getBBox();
2985
- if (f(c())) {
2986
- let e = b.children[0], t = i(b);
2800
+ if (_(p())) {
2801
+ let e = b.children[0], t = l(b);
2987
2802
  x = e.getBoundingClientRect(), t.attr("width", x.width), t.attr("height", x.height);
2988
2803
  }
2989
- p += x.height + 4, x.width > d && (d = x.width);
2804
+ d += x.height + 4, x.width > u && (u = x.width);
2990
2805
  let S = [];
2991
2806
  t.classData.members.forEach(async (e) => {
2992
2807
  let n = e.getDisplayDetails(), r = n.displayText;
2993
- f(c()) && (r = r.replace(/</g, "&lt;").replace(/>/g, "&gt;"));
2994
- let a = await U(m, r, n.cssStyle ? n.cssStyle : t.labelStyle, !0, !0), o = a.getBBox();
2995
- if (f(c())) {
2996
- let e = a.children[0], t = i(a);
2997
- o = e.getBoundingClientRect(), t.attr("width", o.width), t.attr("height", o.height);
2808
+ _(p()) && (r = r.replace(/</g, "&lt;").replace(/>/g, "&gt;"));
2809
+ let i = await V(f, r, n.cssStyle ? n.cssStyle : t.labelStyle, !0, !0), a = i.getBBox();
2810
+ if (_(p())) {
2811
+ let e = i.children[0], t = l(i);
2812
+ a = e.getBoundingClientRect(), t.attr("width", a.width), t.attr("height", a.height);
2998
2813
  }
2999
- o.width > d && (d = o.width), p += o.height + 4, S.push(a);
3000
- }), p += 8;
2814
+ a.width > u && (u = a.width), d += a.height + 4, S.push(i);
2815
+ }), d += 8;
3001
2816
  let C = [];
3002
2817
  if (t.classData.methods.forEach(async (e) => {
3003
2818
  let n = e.getDisplayDetails(), r = n.displayText;
3004
- f(c()) && (r = r.replace(/</g, "&lt;").replace(/>/g, "&gt;"));
3005
- let a = await U(m, r, n.cssStyle ? n.cssStyle : t.labelStyle, !0, !0), o = a.getBBox();
3006
- if (f(c())) {
3007
- let e = a.children[0], t = i(a);
3008
- o = e.getBoundingClientRect(), t.attr("width", o.width), t.attr("height", o.height);
2819
+ _(p()) && (r = r.replace(/</g, "&lt;").replace(/>/g, "&gt;"));
2820
+ let i = await V(f, r, n.cssStyle ? n.cssStyle : t.labelStyle, !0, !0), a = i.getBBox();
2821
+ if (_(p())) {
2822
+ let e = i.children[0], t = l(i);
2823
+ a = e.getBoundingClientRect(), t.attr("width", a.width), t.attr("height", a.height);
3009
2824
  }
3010
- o.width > d && (d = o.width), p += o.height + 4, C.push(a);
3011
- }), p += 8, g) {
3012
- let e = (d - v.width) / 2;
3013
- i(_).attr("transform", "translate( " + (-1 * d / 2 + e) + ", " + -1 * p / 2 + ")"), h = v.height + 4;
2825
+ a.width > u && (u = a.width), d += a.height + 4, C.push(i);
2826
+ }), d += 8, h) {
2827
+ let e = (u - v.width) / 2;
2828
+ l(g).attr("transform", "translate( " + (-1 * u / 2 + e) + ", " + -1 * d / 2 + ")"), m = v.height + 4;
3014
2829
  }
3015
- let w = (d - x.width) / 2;
3016
- return i(b).attr("transform", "translate( " + (-1 * d / 2 + w) + ", " + (-1 * p / 2 + h) + ")"), h += x.height + 4, l.attr("class", "divider").attr("x1", -d / 2 - r).attr("x2", d / 2 + r).attr("y1", -p / 2 - r + 8 + h).attr("y2", -p / 2 - r + 8 + h), h += 8, S.forEach((e) => {
2830
+ let w = (u - x.width) / 2;
2831
+ return l(b).attr("transform", "translate( " + (-1 * u / 2 + w) + ", " + (-1 * d / 2 + m) + ")"), m += x.height + 4, s.attr("class", "divider").attr("x1", -u / 2 - r).attr("x2", u / 2 + r).attr("y1", -d / 2 - r + 8 + m).attr("y2", -d / 2 - r + 8 + m), m += 8, S.forEach((e) => {
3017
2832
  var t;
3018
- i(e).attr("transform", "translate( " + -d / 2 + ", " + (-1 * p / 2 + h + 8 / 2) + ")");
2833
+ l(e).attr("transform", "translate( " + -u / 2 + ", " + (-1 * d / 2 + m + 8 / 2) + ")");
3019
2834
  let n = e == null ? void 0 : e.getBBox();
3020
- h += ((t = n == null ? void 0 : n.height) == null ? 0 : t) + 4;
3021
- }), h += 8, u.attr("class", "divider").attr("x1", -d / 2 - r).attr("x2", d / 2 + r).attr("y1", -p / 2 - r + 8 + h).attr("y2", -p / 2 - r + 8 + h), h += 8, C.forEach((e) => {
2835
+ m += ((t = n == null ? void 0 : n.height) == null ? 0 : t) + 4;
2836
+ }), m += 8, c.attr("class", "divider").attr("x1", -u / 2 - r).attr("x2", u / 2 + r).attr("y1", -d / 2 - r + 8 + m).attr("y2", -d / 2 - r + 8 + m), m += 8, C.forEach((e) => {
3022
2837
  var t;
3023
- i(e).attr("transform", "translate( " + -d / 2 + ", " + (-1 * p / 2 + h) + ")");
2838
+ l(e).attr("transform", "translate( " + -u / 2 + ", " + (-1 * d / 2 + m) + ")");
3024
2839
  let n = e == null ? void 0 : e.getBBox();
3025
- h += ((t = n == null ? void 0 : n.height) == null ? 0 : t) + 4;
3026
- }), s.attr("style", t.style).attr("class", "outer title-state").attr("x", -d / 2 - r).attr("y", -(p / 2) - r).attr("width", d + t.padding).attr("height", p + t.padding), J(t, s), t.intersect = function(e) {
2840
+ m += ((t = n == null ? void 0 : n.height) == null ? 0 : t) + 4;
2841
+ }), o.attr("style", t.style).attr("class", "outer title-state").attr("x", -u / 2 - r).attr("y", -(d / 2) - r).attr("width", u + t.padding).attr("height", d + t.padding), J(t, o), t.intersect = function(e) {
3027
2842
  return K.rect(t, e);
3028
- }, o;
2843
+ }, a;
3029
2844
  }, "class_box")
3030
- }, Q = {}, mr = /* @__PURE__ */ r(async (e, t, n) => {
2845
+ }, Q = {}, gt = /* @__PURE__ */ c(async (e, t, n) => {
3031
2846
  let r, i;
3032
2847
  if (t.link) {
3033
2848
  let a;
3034
- c().securityLevel === "sandbox" ? a = "_top" : t.linkTarget && (a = t.linkTarget || "_blank"), r = e.insert("svg:a").attr("xlink:href", t.link).attr("target", a), i = await pr[t.shape](r, t, n);
3035
- } else i = await pr[t.shape](e, t, n), r = i;
2849
+ p().securityLevel === "sandbox" ? a = "_top" : t.linkTarget && (a = t.linkTarget || "_blank"), r = e.insert("svg:a").attr("xlink:href", t.link).attr("target", a), i = await ht[t.shape](r, t, n);
2850
+ } else i = await ht[t.shape](e, t, n), r = i;
3036
2851
  return t.tooltip && i.attr("title", t.tooltip), t.class && i.attr("class", "node default " + t.class), Q[t.id] = r, t.haveCallback && Q[t.id].attr("class", Q[t.id].attr("class") + " clickable"), r;
3037
- }, "insertNode"), hr = /* @__PURE__ */ r((e) => {
2852
+ }, "insertNode"), _t = /* @__PURE__ */ c((e) => {
3038
2853
  let t = Q[e.id];
3039
- n.trace("Transforming node", e.diff, e, "translate(" + (e.x - e.width / 2 - 5) + ", " + e.width / 2 + ")");
3040
- let r = e.diff || 0;
3041
- return e.clusterNode ? t.attr("transform", "translate(" + (e.x + r - e.width / 2) + ", " + (e.y - e.height / 2 - 8) + ")") : t.attr("transform", "translate(" + e.x + ", " + e.y + ")"), r;
2854
+ s.trace("Transforming node", e.diff, e, "translate(" + (e.x - e.width / 2 - 5) + ", " + e.width / 2 + ")");
2855
+ let n = e.diff || 0;
2856
+ return e.clusterNode ? t.attr("transform", "translate(" + (e.x + n - e.width / 2) + ", " + (e.y - e.height / 2 - 8) + ")") : t.attr("transform", "translate(" + e.x + ", " + e.y + ")"), n;
3042
2857
  }, "positionNode");
3043
- function gr(e, t, n = !1) {
3044
- var r, i, a, o, s, c;
3045
- let l = e, u = "default";
3046
- if (((l == null || (r = l.classes) == null ? void 0 : r.length) || 0) > 0) {
3047
- var d;
3048
- u = ((d = l == null ? void 0 : l.classes) == null ? [] : d).join(" ");
2858
+ function vt(e, t, r = !1) {
2859
+ var i, a, o, s, c, l;
2860
+ let u = e, d = "default";
2861
+ if (((u == null || (i = u.classes) == null ? void 0 : i.length) || 0) > 0) {
2862
+ var f;
2863
+ d = ((f = u == null ? void 0 : u.classes) == null ? [] : f).join(" ");
3049
2864
  }
3050
- u += " flowchart-label";
3051
- let f = 0, m = "", h;
3052
- switch (l.type) {
2865
+ d += " flowchart-label";
2866
+ let p = 0, m = "", h;
2867
+ switch (u.type) {
3053
2868
  case "round":
3054
- f = 5, m = "rect";
2869
+ p = 5, m = "rect";
3055
2870
  break;
3056
2871
  case "composite":
3057
- f = 0, m = "composite", h = 0;
2872
+ p = 0, m = "composite", h = 0;
3058
2873
  break;
3059
2874
  case "square":
3060
2875
  m = "rect";
@@ -3109,38 +2924,38 @@ function gr(e, t, n = !1) {
3109
2924
  break;
3110
2925
  default: m = "rect";
3111
2926
  }
3112
- let g = ee((i = l == null ? void 0 : l.styles) == null ? [] : i), _ = l.label, v = (a = l.size) == null ? {
2927
+ let g = n((a = u == null ? void 0 : u.styles) == null ? [] : a), _ = u.label, y = (o = u.size) == null ? {
3113
2928
  width: 0,
3114
2929
  height: 0,
3115
2930
  x: 0,
3116
2931
  y: 0
3117
- } : a, y = t.getDiagramId();
2932
+ } : o, b = t.getDiagramId();
3118
2933
  return {
3119
2934
  labelStyle: g.labelStyle,
3120
2935
  shape: m,
3121
2936
  labelText: _,
3122
- rx: f,
3123
- ry: f,
3124
- class: u,
2937
+ rx: p,
2938
+ ry: p,
2939
+ class: d,
3125
2940
  style: g.style,
3126
- id: l.id,
3127
- domId: y ? `${y}-${l.id}` : l.id,
3128
- directions: l.directions,
3129
- width: v.width,
3130
- height: v.height,
3131
- x: v.x,
3132
- y: v.y,
3133
- positioned: n,
2941
+ id: u.id,
2942
+ domId: b ? `${b}-${u.id}` : u.id,
2943
+ directions: u.directions,
2944
+ width: y.width,
2945
+ height: y.height,
2946
+ x: y.x,
2947
+ y: y.y,
2948
+ positioned: r,
3134
2949
  intersect: void 0,
3135
- type: l.type,
3136
- padding: (o = (s = h) == null ? (c = p()) == null || (c = c.block) == null ? void 0 : c.padding : s) == null ? 0 : o
2950
+ type: u.type,
2951
+ padding: (s = (c = h) == null ? (l = v()) == null || (l = l.block) == null ? void 0 : l.padding : c) == null ? 0 : s
3137
2952
  };
3138
2953
  }
3139
- r(gr, "getNodeFromBlock");
3140
- async function _r(e, t, n) {
3141
- let r = gr(t, n, !1);
2954
+ c(vt, "getNodeFromBlock");
2955
+ async function yt(e, t, n) {
2956
+ let r = vt(t, n, !1);
3142
2957
  if (r.type === "group") return;
3143
- let i = await mr(e, r, { config: p() }), a = i.node().getBBox(), o = n.getBlock(r.id);
2958
+ let i = await gt(e, r, { config: v() }), a = i.node().getBBox(), o = n.getBlock(r.id);
3144
2959
  o.size = {
3145
2960
  width: a.width,
3146
2961
  height: a.height,
@@ -3149,26 +2964,26 @@ async function _r(e, t, n) {
3149
2964
  node: i
3150
2965
  }, n.setBlock(o), i.remove();
3151
2966
  }
3152
- r(_r, "calculateBlockSize");
3153
- async function vr(e, t, n) {
3154
- let r = gr(t, n, !0);
3155
- n.getBlock(r.id).type !== "space" && (await mr(e, r, { config: p() }), t.intersect = r == null ? void 0 : r.intersect, hr(r));
2967
+ c(yt, "calculateBlockSize");
2968
+ async function bt(e, t, n) {
2969
+ let r = vt(t, n, !0);
2970
+ n.getBlock(r.id).type !== "space" && (await gt(e, r, { config: v() }), t.intersect = r == null ? void 0 : r.intersect, _t(r));
3156
2971
  }
3157
- r(vr, "insertBlockPositioned");
2972
+ c(bt, "insertBlockPositioned");
3158
2973
  async function $(e, t, n, r) {
3159
2974
  for (let i of t) await r(e, i, n), i.children && await $(e, i.children, n, r);
3160
2975
  }
3161
- r($, "performOperations");
3162
- async function yr(e, t, n) {
3163
- await $(e, t, n, _r);
2976
+ c($, "performOperations");
2977
+ async function xt(e, t, n) {
2978
+ await $(e, t, n, yt);
3164
2979
  }
3165
- r(yr, "calculateBlockSizes");
3166
- async function br(e, t, n) {
3167
- await $(e, t, n, vr);
2980
+ c(xt, "calculateBlockSizes");
2981
+ async function St(e, t, n) {
2982
+ await $(e, t, n, bt);
3168
2983
  }
3169
- r(br, "insertBlocks");
3170
- async function xr(n, r, i, a, o) {
3171
- let s = new t({
2984
+ c(St, "insertBlocks");
2985
+ async function Ct(t, n, r, i, a) {
2986
+ let s = new o({
3172
2987
  multigraph: !0,
3173
2988
  compound: !0
3174
2989
  });
@@ -3179,81 +2994,81 @@ async function xr(n, r, i, a, o) {
3179
2994
  marginx: 8,
3180
2995
  marginy: 8
3181
2996
  });
3182
- for (let e of i) e.size && s.setNode(e.id, {
2997
+ for (let e of r) e.size && s.setNode(e.id, {
3183
2998
  width: e.size.width,
3184
2999
  height: e.size.height,
3185
3000
  intersect: e.intersect
3186
3001
  });
3187
- for (let t of r) if (t.start && t.end) {
3188
- let r = a.getBlock(t.start), i = a.getBlock(t.end);
3189
- if (r != null && r.size && i != null && i.size) {
3190
- let a = r.size, c = i.size, l = [
3002
+ for (let r of n) if (r.start && r.end) {
3003
+ let n = i.getBlock(r.start), o = i.getBlock(r.end);
3004
+ if (n != null && n.size && o != null && o.size) {
3005
+ let i = n.size, c = o.size, l = [
3191
3006
  {
3192
- x: a.x,
3193
- y: a.y
3007
+ x: i.x,
3008
+ y: i.y
3194
3009
  },
3195
3010
  {
3196
- x: a.x + (c.x - a.x) / 2,
3197
- y: a.y + (c.y - a.y) / 2
3011
+ x: i.x + (c.x - i.x) / 2,
3012
+ y: i.y + (c.y - i.y) / 2
3198
3013
  },
3199
3014
  {
3200
3015
  x: c.x,
3201
3016
  y: c.y
3202
3017
  }
3203
- ], u = o ? `${o}-${t.id}` : t.id;
3204
- An(n, {
3205
- v: t.start,
3206
- w: t.end,
3018
+ ], u = a ? `${a}-${r.id}` : r.id;
3019
+ Ne(t, {
3020
+ v: r.start,
3021
+ w: r.end,
3207
3022
  name: u
3208
- }, e(e({}, t), {}, {
3023
+ }, e(e({}, r), {}, {
3209
3024
  id: u,
3210
- arrowTypeEnd: t.arrowTypeEnd,
3211
- arrowTypeStart: t.arrowTypeStart,
3025
+ arrowTypeEnd: r.arrowTypeEnd,
3026
+ arrowTypeStart: r.arrowTypeStart,
3212
3027
  points: l,
3213
3028
  classes: "edge-thickness-normal edge-pattern-solid flowchart-link LS-a1 LE-b1"
3214
- }), void 0, "block", s, o), t.label && (await Tn(n, e(e({}, t), {}, {
3215
- label: t.label,
3029
+ }), void 0, "block", s, a), r.label && (await Oe(t, e(e({}, r), {}, {
3030
+ label: r.label,
3216
3031
  labelStyle: "stroke: #333; stroke-width: 1.5px;fill:none;",
3217
- arrowTypeEnd: t.arrowTypeEnd,
3218
- arrowTypeStart: t.arrowTypeStart,
3032
+ arrowTypeEnd: r.arrowTypeEnd,
3033
+ arrowTypeStart: r.arrowTypeStart,
3219
3034
  points: l,
3220
3035
  classes: "edge-thickness-normal edge-pattern-solid flowchart-link LS-a1 LE-b1"
3221
- })), En(e(e({}, t), {}, {
3036
+ })), ke(e(e({}, r), {}, {
3222
3037
  x: l[1].x,
3223
3038
  y: l[1].y
3224
3039
  }), { originalPath: l }));
3225
3040
  }
3226
3041
  }
3227
3042
  }
3228
- r(xr, "insertEdges");
3229
- var Sr = {
3230
- parser: Wt,
3231
- db: un,
3043
+ c(Ct, "insertEdges");
3044
+ var wt = {
3045
+ parser: A,
3046
+ db: he,
3232
3047
  renderer: {
3233
- draw: /* @__PURE__ */ r(async function(e, t, r, a) {
3234
- let { securityLevel: o, block: s } = p(), c = a.db;
3235
- c.setDiagramId(t);
3236
- let u;
3237
- o === "sandbox" && (u = i("#i" + t));
3238
- let d = i(o === "sandbox" ? u.nodes()[0].contentDocument.body : "body"), f = o === "sandbox" ? d.select(`[id="${t}"]`) : i(`[id="${t}"]`);
3239
- hn(f, [
3048
+ draw: /* @__PURE__ */ c(async function(e, t, n, r) {
3049
+ let { securityLevel: i, block: a } = v(), o = r.db;
3050
+ o.setDiagramId(t);
3051
+ let c;
3052
+ i === "sandbox" && (c = l("#i" + t));
3053
+ let u = l(i === "sandbox" ? c.nodes()[0].contentDocument.body : "body"), d = i === "sandbox" ? u.select(`[id="${t}"]`) : l(`[id="${t}"]`);
3054
+ ye(d, [
3240
3055
  "point",
3241
3056
  "circle",
3242
3057
  "cross"
3243
- ], a.type, t);
3244
- let m = c.getBlocks(), h = c.getBlocksFlat(), g = c.getEdges(), _ = f.insert("g").attr("class", "block");
3245
- await yr(_, m, c);
3246
- let v = bn(c);
3247
- if (await br(_, m, c), await xr(_, g, h, c, t), v) {
3248
- let e = v, t = Math.max(1, Math.round(.125 * (e.width / e.height))), r = e.height + t + 10, i = e.width + 10, { useMaxWidth: a } = s;
3249
- l(f, r, i, !!a), n.debug("Here Bounds", v, e), f.attr("viewBox", `${e.x - 5} ${e.y - 5} ${e.width + 10} ${e.height + 10}`);
3058
+ ], r.type, t);
3059
+ let f = o.getBlocks(), p = o.getBlocksFlat(), h = o.getEdges(), g = d.insert("g").attr("class", "block");
3060
+ await xt(g, f, o);
3061
+ let _ = we(o);
3062
+ if (await St(g, f, o), await Ct(g, h, p, o, t), _) {
3063
+ let e = _, t = Math.max(1, Math.round(.125 * (e.width / e.height))), n = e.height + t + 10, r = e.width + 10, { useMaxWidth: i } = a;
3064
+ m(d, n, r, !!i), s.debug("Here Bounds", _, e), d.attr("viewBox", `${e.x - 5} ${e.y - 5} ${e.width + 10} ${e.height + 10}`);
3250
3065
  }
3251
3066
  }, "draw"),
3252
- getClasses: /* @__PURE__ */ r(function(e, t) {
3067
+ getClasses: /* @__PURE__ */ c(function(e, t) {
3253
3068
  return t.db.getClasses();
3254
3069
  }, "getClasses")
3255
3070
  },
3256
- styles: fn
3071
+ styles: ge
3257
3072
  };
3258
3073
  //#endregion
3259
- export { Sr as diagram };
3074
+ export { wt as diagram };