@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,17 +1,17 @@
1
1
  import { t as e } from "./objectSpread2-CWwMYL_U.mjs";
2
- import { g as t, h as n, p as r } from "./src-DVJl6f6s.mjs";
3
- import { B as i, C as a, D as o, L as s, P as c, U as l, V as u, W as d, _ as f, a as p, b as m, c as h, i as g, k as _, r as v, s as y, v as b, y as x } from "./chunk-ICPOFSXX-BHZIN46A.mjs";
4
- import { t as S } from "./dist-Ctq-pyfb.mjs";
5
- import { f as C, h as w } from "./chunk-5PVQY5BW-CORl9dnu.mjs";
6
- import { a as T, c as E, i as D, n as O, r as k, s as A } from "./chunk-YZCP3GAM-BQ7eEsm2.mjs";
7
- import { t as j } from "./chunk-QZHKN3VN-BGFuA6-k.mjs";
8
- import { n as M, t as N } from "./chunk-XPW4576I-BMupdrvo.mjs";
2
+ import { f as t, h as n } from "./chunk-5PVQY5BW-BP7ENjg7.mjs";
3
+ import { g as r, h as i, p as a } from "./src-B3rrEIze.mjs";
4
+ import { B as o, C as s, D as c, L as l, P as u, U as d, V as f, W as p, _ as m, a as h, b as g, c as _, i as v, k as y, r as b, s as x, v as S, y as C } from "./chunk-ICPOFSXX-BOvOTlG6.mjs";
5
+ import { t as w } from "./dist-X14EnMrO.mjs";
6
+ import { a as T, c as E, i as D, n as O, r as k, s as A } from "./chunk-YZCP3GAM-BV02tG_z.mjs";
7
+ import { t as j } from "./chunk-QZHKN3VN-uW1N2UWF.mjs";
8
+ import { n as M, t as N } from "./chunk-XPW4576I-W5t_agZI.mjs";
9
9
  //#region node_modules/mermaid/dist/chunks/mermaid.core/sequenceDiagram-FGHM5R23.mjs
10
- var P = S(), F, I = (function() {
11
- var e = /* @__PURE__ */ n(function(e, t, n, r) {
10
+ var P = w(), F, I = (function() {
11
+ var e = /* @__PURE__ */ i(function(e, t, n, r) {
12
12
  for (n = n || {}, r = e.length; r--; n[e[r]] = t);
13
13
  return n;
14
- }, "o"), t = [1, 2], r = [1, 3], i = [1, 4], a = [2, 4], o = [1, 9], s = [1, 11], c = [1, 12], l = [1, 14], u = [1, 15], d = [1, 17], f = [1, 18], p = [1, 19], m = [1, 25], h = [1, 26], g = [1, 27], _ = [1, 28], v = [1, 29], y = [1, 30], b = [1, 31], x = [1, 32], S = [1, 33], C = [1, 34], w = [1, 35], T = [1, 36], E = [1, 37], D = [1, 38], O = [1, 39], k = [1, 40], A = [1, 42], j = [1, 43], M = [1, 44], N = [1, 45], P = [1, 46], F = [1, 47], I = [
14
+ }, "o"), t = [1, 2], n = [1, 3], r = [1, 4], a = [2, 4], o = [1, 9], s = [1, 11], c = [1, 12], l = [1, 14], u = [1, 15], d = [1, 17], f = [1, 18], p = [1, 19], m = [1, 25], h = [1, 26], g = [1, 27], _ = [1, 28], v = [1, 29], y = [1, 30], b = [1, 31], x = [1, 32], S = [1, 33], C = [1, 34], w = [1, 35], T = [1, 36], E = [1, 37], D = [1, 38], O = [1, 39], k = [1, 40], A = [1, 42], j = [1, 43], M = [1, 44], N = [1, 45], P = [1, 46], F = [1, 47], I = [
15
15
  1,
16
16
  4,
17
17
  5,
@@ -191,7 +191,7 @@ var P = S(), F, I = (function() {
191
191
  72,
192
192
  73
193
193
  ], q = [1, 151], Te = {
194
- trace: /* @__PURE__ */ n(function() {}, "trace"),
194
+ trace: /* @__PURE__ */ i(function() {}, "trace"),
195
195
  yy: {},
196
196
  symbols_: {
197
197
  error: 2,
@@ -489,7 +489,7 @@ var P = S(), F, I = (function() {
489
489
  [69, 1],
490
490
  [58, 1]
491
491
  ],
492
- performAction: /* @__PURE__ */ n(function(e, t, n, r, i, a, o) {
492
+ performAction: /* @__PURE__ */ i(function(e, t, n, r, i, a, o) {
493
493
  var s = a.length - 1;
494
494
  switch (i) {
495
495
  case 3: return r.apply(a[s]), a[s];
@@ -987,21 +987,21 @@ var P = S(), F, I = (function() {
987
987
  {
988
988
  3: 1,
989
989
  4: t,
990
- 5: r,
991
- 6: i
990
+ 5: n,
991
+ 6: r
992
992
  },
993
993
  { 1: [3] },
994
994
  {
995
995
  3: 5,
996
996
  4: t,
997
- 5: r,
998
- 6: i
997
+ 5: n,
998
+ 6: r
999
999
  },
1000
1000
  {
1001
1001
  3: 6,
1002
1002
  4: t,
1003
- 5: r,
1004
- 6: i
1003
+ 5: n,
1004
+ 6: r
1005
1005
  },
1006
1006
  e([
1007
1007
  1,
@@ -1891,15 +1891,15 @@ var P = S(), F, I = (function() {
1891
1891
  203: [2, 44],
1892
1892
  204: [2, 74]
1893
1893
  },
1894
- parseError: /* @__PURE__ */ n(function(e, t) {
1894
+ parseError: /* @__PURE__ */ i(function(e, t) {
1895
1895
  if (t.recoverable) this.trace(e);
1896
1896
  else {
1897
1897
  var n = Error(e);
1898
1898
  throw n.hash = t, n;
1899
1899
  }
1900
1900
  }, "parseError"),
1901
- parse: /* @__PURE__ */ n(function(e) {
1902
- var t = this, r = [0], i = [], a = [null], o = [], s = this.table, c = "", l = 0, u = 0, d = 0, f = 2, p = 1, m = o.slice.call(arguments, 1), h = Object.create(this.lexer), g = { yy: {} };
1901
+ parse: /* @__PURE__ */ i(function(e) {
1902
+ var t = this, n = [0], r = [], 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: {} };
1903
1903
  for (var _ in this.yy) Object.prototype.hasOwnProperty.call(this.yy, _) && (g.yy[_] = this.yy[_]);
1904
1904
  h.setInput(e, g.yy), g.yy.lexer = h, g.yy.parser = this, h.yylloc === void 0 && (h.yylloc = {});
1905
1905
  var v = h.yylloc;
@@ -1907,16 +1907,16 @@ var P = S(), F, I = (function() {
1907
1907
  var y = h.options && h.options.ranges;
1908
1908
  typeof g.yy.parseError == "function" ? this.parseError = g.yy.parseError : this.parseError = Object.getPrototypeOf(this).parseError;
1909
1909
  function b(e) {
1910
- r.length -= 2 * e, a.length -= e, o.length -= e;
1910
+ n.length -= 2 * e, a.length -= e, o.length -= e;
1911
1911
  }
1912
- n(b, "popStack");
1912
+ i(b, "popStack");
1913
1913
  function x() {
1914
- var e = i.pop() || h.lex() || p;
1915
- return typeof e != "number" && (e instanceof Array && (i = e, e = i.pop()), e = t.symbols_[e] || e), e;
1914
+ var e = r.pop() || h.lex() || p;
1915
+ return typeof e != "number" && (e instanceof Array && (r = e, e = r.pop()), e = t.symbols_[e] || e), e;
1916
1916
  }
1917
- n(x, "lex");
1917
+ i(x, "lex");
1918
1918
  for (var S, C, w, T, E, D = {}, O, k, A, j;;) {
1919
- if (w = r[r.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]) {
1919
+ 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]) {
1920
1920
  var M = "";
1921
1921
  for (O in j = [], s[w]) this.terminals_[O] && O > f && j.push("'" + this.terminals_[O] + "'");
1922
1922
  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, {
@@ -1930,7 +1930,7 @@ var P = S(), F, I = (function() {
1930
1930
  if (T[0] instanceof Array && T.length > 1) throw Error("Parse Error: multiple actions possible at state: " + w + ", token: " + S);
1931
1931
  switch (T[0]) {
1932
1932
  case 1:
1933
- r.push(S), a.push(h.yytext), o.push(h.yylloc), r.push(T[1]), S = null, C ? (S = C, C = null) : (u = h.yyleng, c = h.yytext, l = h.yylineno, v = h.yylloc, d > 0 && d--);
1933
+ 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--);
1934
1934
  break;
1935
1935
  case 2:
1936
1936
  if (k = this.productions_[T[1]][1], D.$ = a[a.length - k], D._$ = {
@@ -1947,7 +1947,7 @@ var P = S(), F, I = (function() {
1947
1947
  a,
1948
1948
  o
1949
1949
  ].concat(m)), E !== void 0) return E;
1950
- k && (r = r.slice(0, -1 * k * 2), a = a.slice(0, -1 * k), o = o.slice(0, -1 * k)), r.push(this.productions_[T[1]][0]), a.push(D.$), o.push(D._$), A = s[r[r.length - 2]][r[r.length - 1]], r.push(A);
1950
+ 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._$), A = s[n[n.length - 2]][n[n.length - 1]], n.push(A);
1951
1951
  break;
1952
1952
  case 3: return !0;
1953
1953
  }
@@ -1958,11 +1958,11 @@ var P = S(), F, I = (function() {
1958
1958
  Te.lexer = /* @__PURE__ */ (function() {
1959
1959
  return {
1960
1960
  EOF: 1,
1961
- parseError: /* @__PURE__ */ n(function(e, t) {
1961
+ parseError: /* @__PURE__ */ i(function(e, t) {
1962
1962
  if (this.yy.parser) this.yy.parser.parseError(e, t);
1963
1963
  else throw Error(e);
1964
1964
  }, "parseError"),
1965
- setInput: /* @__PURE__ */ n(function(e, t) {
1965
+ setInput: /* @__PURE__ */ i(function(e, t) {
1966
1966
  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 = {
1967
1967
  first_line: 1,
1968
1968
  first_column: 0,
@@ -1970,11 +1970,11 @@ var P = S(), F, I = (function() {
1970
1970
  last_column: 0
1971
1971
  }, this.options.ranges && (this.yylloc.range = [0, 0]), this.offset = 0, this;
1972
1972
  }, "setInput"),
1973
- input: /* @__PURE__ */ n(function() {
1973
+ input: /* @__PURE__ */ i(function() {
1974
1974
  var e = this._input[0];
1975
1975
  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;
1976
1976
  }, "input"),
1977
- unput: /* @__PURE__ */ n(function(e) {
1977
+ unput: /* @__PURE__ */ i(function(e) {
1978
1978
  var t = e.length, n = e.split(/(?:\r\n?|\n)/g);
1979
1979
  this._input = e + this._input, this.yytext = this.yytext.substr(0, this.yytext.length - t), this.offset -= t;
1980
1980
  var r = this.match.split(/(?:\r\n?|\n)/g);
@@ -1987,10 +1987,10 @@ var P = S(), F, I = (function() {
1987
1987
  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
1988
1988
  }, this.options.ranges && (this.yylloc.range = [i[0], i[0] + this.yyleng - t]), this.yyleng = this.yytext.length, this;
1989
1989
  }, "unput"),
1990
- more: /* @__PURE__ */ n(function() {
1990
+ more: /* @__PURE__ */ i(function() {
1991
1991
  return this._more = !0, this;
1992
1992
  }, "more"),
1993
- reject: /* @__PURE__ */ n(function() {
1993
+ reject: /* @__PURE__ */ i(function() {
1994
1994
  if (this.options.backtrack_lexer) this._backtrack = !0;
1995
1995
  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(), {
1996
1996
  text: "",
@@ -1999,22 +1999,22 @@ var P = S(), F, I = (function() {
1999
1999
  });
2000
2000
  return this;
2001
2001
  }, "reject"),
2002
- less: /* @__PURE__ */ n(function(e) {
2002
+ less: /* @__PURE__ */ i(function(e) {
2003
2003
  this.unput(this.match.slice(e));
2004
2004
  }, "less"),
2005
- pastInput: /* @__PURE__ */ n(function() {
2005
+ pastInput: /* @__PURE__ */ i(function() {
2006
2006
  var e = this.matched.substr(0, this.matched.length - this.match.length);
2007
2007
  return (e.length > 20 ? "..." : "") + e.substr(-20).replace(/\n/g, "");
2008
2008
  }, "pastInput"),
2009
- upcomingInput: /* @__PURE__ */ n(function() {
2009
+ upcomingInput: /* @__PURE__ */ i(function() {
2010
2010
  var e = this.match;
2011
2011
  return e.length < 20 && (e += this._input.substr(0, 20 - e.length)), (e.substr(0, 20) + (e.length > 20 ? "..." : "")).replace(/\n/g, "");
2012
2012
  }, "upcomingInput"),
2013
- showPosition: /* @__PURE__ */ n(function() {
2013
+ showPosition: /* @__PURE__ */ i(function() {
2014
2014
  var e = this.pastInput(), t = Array(e.length + 1).join("-");
2015
2015
  return e + this.upcomingInput() + "\n" + t + "^";
2016
2016
  }, "showPosition"),
2017
- test_match: /* @__PURE__ */ n(function(e, t) {
2017
+ test_match: /* @__PURE__ */ i(function(e, t) {
2018
2018
  var n, r, i;
2019
2019
  if (this.options.backtrack_lexer && (i = {
2020
2020
  yylineno: this.yylineno,
@@ -2047,7 +2047,7 @@ var P = S(), F, I = (function() {
2047
2047
  }
2048
2048
  return !1;
2049
2049
  }, "test_match"),
2050
- next: /* @__PURE__ */ n(function() {
2050
+ next: /* @__PURE__ */ i(function() {
2051
2051
  if (this.done) return this.EOF;
2052
2052
  this._input || (this.done = !0);
2053
2053
  var e, t, n, r;
@@ -2067,29 +2067,29 @@ var P = S(), F, I = (function() {
2067
2067
  line: this.yylineno
2068
2068
  });
2069
2069
  }, "next"),
2070
- lex: /* @__PURE__ */ n(function() {
2070
+ lex: /* @__PURE__ */ i(function() {
2071
2071
  return this.next() || this.lex();
2072
2072
  }, "lex"),
2073
- begin: /* @__PURE__ */ n(function(e) {
2073
+ begin: /* @__PURE__ */ i(function(e) {
2074
2074
  this.conditionStack.push(e);
2075
2075
  }, "begin"),
2076
- popState: /* @__PURE__ */ n(function() {
2076
+ popState: /* @__PURE__ */ i(function() {
2077
2077
  return this.conditionStack.length - 1 > 0 ? this.conditionStack.pop() : this.conditionStack[0];
2078
2078
  }, "popState"),
2079
- _currentRules: /* @__PURE__ */ n(function() {
2079
+ _currentRules: /* @__PURE__ */ i(function() {
2080
2080
  return this.conditionStack.length && this.conditionStack[this.conditionStack.length - 1] ? this.conditions[this.conditionStack[this.conditionStack.length - 1]].rules : this.conditions.INITIAL.rules;
2081
2081
  }, "_currentRules"),
2082
- topState: /* @__PURE__ */ n(function(e) {
2082
+ topState: /* @__PURE__ */ i(function(e) {
2083
2083
  return e = this.conditionStack.length - 1 - Math.abs(e || 0), e >= 0 ? this.conditionStack[e] : "INITIAL";
2084
2084
  }, "topState"),
2085
- pushState: /* @__PURE__ */ n(function(e) {
2085
+ pushState: /* @__PURE__ */ i(function(e) {
2086
2086
  this.begin(e);
2087
2087
  }, "pushState"),
2088
- stateStackSize: /* @__PURE__ */ n(function() {
2088
+ stateStackSize: /* @__PURE__ */ i(function() {
2089
2089
  return this.conditionStack.length;
2090
2090
  }, "stateStackSize"),
2091
2091
  options: { "case-insensitive": !0 },
2092
- performAction: /* @__PURE__ */ n(function(e, t, n, r) {
2092
+ performAction: /* @__PURE__ */ i(function(e, t, n, r) {
2093
2093
  switch (n) {
2094
2094
  case 0: return 5;
2095
2095
  case 1: break;
@@ -2430,7 +2430,7 @@ var P = S(), F, I = (function() {
2430
2430
  function Ee() {
2431
2431
  this.yy = {};
2432
2432
  }
2433
- return n(Ee, "Parser"), Ee.prototype = Te, Te.Parser = Ee, new Ee();
2433
+ return i(Ee, "Parser"), Ee.prototype = Te, Te.Parser = Ee, new Ee();
2434
2434
  })();
2435
2435
  I.parser = I;
2436
2436
  var L = I, ee = {
@@ -2516,7 +2516,7 @@ var L = I, ee = {
2516
2516
  currentBox: void 0,
2517
2517
  lastCreated: void 0,
2518
2518
  lastDestroyed: void 0
2519
- })), this.setAccTitle = u, this.setAccDescription = i, this.setDiagramTitle = d, this.getAccTitle = b, this.getAccDescription = f, this.getDiagramTitle = a, this.apply = this.apply.bind(this), this.parseBoxData = this.parseBoxData.bind(this), this.parseMessage = this.parseMessage.bind(this), this.clear(), this.setWrap(m().wrap), this.LINETYPE = ee, this.ARROWTYPE = te, this.PLACEMENT = ne;
2519
+ })), this.setAccTitle = f, this.setAccDescription = o, this.setDiagramTitle = p, this.getAccTitle = S, this.getAccDescription = m, this.getDiagramTitle = s, this.apply = this.apply.bind(this), this.parseBoxData = this.parseBoxData.bind(this), this.parseMessage = this.parseMessage.bind(this), this.clear(), this.setWrap(g().wrap), this.LINETYPE = ee, this.ARROWTYPE = te, this.PLACEMENT = ne;
2520
2520
  }
2521
2521
  addBox(e) {
2522
2522
  var t;
@@ -2662,17 +2662,17 @@ var L = I, ee = {
2662
2662
  }
2663
2663
  autoWrap() {
2664
2664
  var e, t;
2665
- return this.state.records.wrapEnabled === void 0 ? (e = (t = m().sequence) == null ? void 0 : t.wrap) == null ? !1 : e : this.state.records.wrapEnabled;
2665
+ return this.state.records.wrapEnabled === void 0 ? (e = (t = g().sequence) == null ? void 0 : t.wrap) == null ? !1 : e : this.state.records.wrapEnabled;
2666
2666
  }
2667
2667
  clear() {
2668
- this.state.reset(), p();
2668
+ this.state.reset(), h();
2669
2669
  }
2670
2670
  parseMessage(e) {
2671
- let n = e.trim(), { wrap: r, cleanedText: i } = this.extractWrap(n), a = {
2671
+ let t = e.trim(), { wrap: n, cleanedText: i } = this.extractWrap(t), a = {
2672
2672
  text: i,
2673
- wrap: r
2673
+ wrap: n
2674
2674
  };
2675
- return t.debug(`parseMessage: ${JSON.stringify(a)}`), a;
2675
+ return r.debug(`parseMessage: ${JSON.stringify(a)}`), a;
2676
2676
  }
2677
2677
  parseBoxData(e) {
2678
2678
  var t;
@@ -2684,7 +2684,7 @@ var L = I, ee = {
2684
2684
  }
2685
2685
  let { wrap: a, cleanedText: o } = this.extractWrap(i);
2686
2686
  return {
2687
- text: o ? s(o, m()) : void 0,
2687
+ text: o ? l(o, g()) : void 0,
2688
2688
  color: r,
2689
2689
  wrap: a
2690
2690
  };
@@ -2707,39 +2707,39 @@ var L = I, ee = {
2707
2707
  placement: t
2708
2708
  });
2709
2709
  }
2710
- addLinks(e, n) {
2711
- let r = this.getActor(e);
2710
+ addLinks(e, t) {
2711
+ let n = this.getActor(e);
2712
2712
  try {
2713
- let e = s(n.text, m());
2713
+ let e = l(t.text, g());
2714
2714
  e = e.replace(/&equals;/g, "="), e = e.replace(/&amp;/g, "&");
2715
- let t = JSON.parse(e);
2716
- this.insertLinks(r, t);
2715
+ let r = JSON.parse(e);
2716
+ this.insertLinks(n, r);
2717
2717
  } catch (e) {
2718
- t.error("error while parsing actor link text", e);
2718
+ r.error("error while parsing actor link text", e);
2719
2719
  }
2720
2720
  }
2721
- addALink(e, n) {
2722
- let r = this.getActor(e);
2721
+ addALink(e, t) {
2722
+ let n = this.getActor(e);
2723
2723
  try {
2724
- let e = {}, t = s(n.text, m()), i = t.indexOf("@");
2725
- t = t.replace(/&equals;/g, "="), t = t.replace(/&amp;/g, "&");
2726
- let a = t.slice(0, i - 1).trim();
2727
- e[a] = t.slice(i + 1).trim(), this.insertLinks(r, e);
2724
+ let e = {}, r = l(t.text, g()), i = r.indexOf("@");
2725
+ r = r.replace(/&equals;/g, "="), r = r.replace(/&amp;/g, "&");
2726
+ let a = r.slice(0, i - 1).trim();
2727
+ e[a] = r.slice(i + 1).trim(), this.insertLinks(n, e);
2728
2728
  } catch (e) {
2729
- t.error("error while parsing actor link text", e);
2729
+ r.error("error while parsing actor link text", e);
2730
2730
  }
2731
2731
  }
2732
2732
  insertLinks(e, t) {
2733
2733
  if (e.links == null) e.links = t;
2734
2734
  else for (let n in t) e.links[n] = t[n];
2735
2735
  }
2736
- addProperties(e, n) {
2737
- let r = this.getActor(e);
2736
+ addProperties(e, t) {
2737
+ let n = this.getActor(e);
2738
2738
  try {
2739
- let e = s(n.text, m()), t = JSON.parse(e);
2740
- this.insertProperties(r, t);
2739
+ let e = l(t.text, g()), r = JSON.parse(e);
2740
+ this.insertProperties(n, r);
2741
2741
  } catch (e) {
2742
- t.error("error while parsing actor properties text", e);
2742
+ r.error("error while parsing actor properties text", e);
2743
2743
  }
2744
2744
  }
2745
2745
  insertProperties(e, t) {
@@ -2749,13 +2749,13 @@ var L = I, ee = {
2749
2749
  boxEnd() {
2750
2750
  this.state.records.currentBox = void 0;
2751
2751
  }
2752
- addDetails(e, n) {
2753
- let r = this.getActor(e), i = document.getElementById(n.text);
2752
+ addDetails(e, t) {
2753
+ let n = this.getActor(e), i = document.getElementById(t.text);
2754
2754
  try {
2755
2755
  let e = i.innerHTML, t = JSON.parse(e);
2756
- t.properties && this.insertProperties(r, t.properties), t.links && this.insertLinks(r, t.links);
2756
+ t.properties && this.insertProperties(n, t.properties), t.links && this.insertLinks(n, t.links);
2757
2757
  } catch (e) {
2758
- t.error("error while parsing actor details text", e);
2758
+ r.error("error while parsing actor details text", e);
2759
2759
  }
2760
2760
  }
2761
2761
  getActorProperty(e, t) {
@@ -2861,7 +2861,7 @@ var L = I, ee = {
2861
2861
  this.addSignal(void 0, void 0, void 0, e.signalType);
2862
2862
  break;
2863
2863
  case "setAccTitle":
2864
- u(e.text);
2864
+ f(e.text);
2865
2865
  break;
2866
2866
  case "parStart":
2867
2867
  this.addSignal(void 0, void 0, e.parText, e.signalType);
@@ -2890,11 +2890,11 @@ var L = I, ee = {
2890
2890
  }
2891
2891
  }
2892
2892
  getConfig() {
2893
- return m().sequence;
2893
+ return g().sequence;
2894
2894
  }
2895
- }, n(F, "SequenceDB"), F), ie = /* @__PURE__ */ n((e) => {
2895
+ }, i(F, "SequenceDB"), F), ie = /* @__PURE__ */ i((e) => {
2896
2896
  var t, n;
2897
- let r = (t = e.dropShadow) == null ? "none" : t, { look: i } = m();
2897
+ let r = (t = e.dropShadow) == null ? "none" : t, { look: i } = g();
2898
2898
  return `.actor {
2899
2899
  stroke: ${e.actorBorder};
2900
2900
  fill: ${e.actorBkg};
@@ -3030,10 +3030,10 @@ var L = I, ee = {
3030
3030
  stroke: ${e.nodeBorder};
3031
3031
  }
3032
3032
  `;
3033
- }, "getStyles"), z = 36, B = "actor-top", V = "actor-bottom", ae = "actor-box", H = "actor-man", U = /* @__PURE__ */ new Set(["redux-color", "redux-dark-color"]), oe = /* @__PURE__ */ n(function(e, t) {
3033
+ }, "getStyles"), z = 36, B = "actor-top", V = "actor-bottom", ae = "actor-box", H = "actor-man", U = /* @__PURE__ */ new Set(["redux-color", "redux-dark-color"]), oe = /* @__PURE__ */ i(function(e, t) {
3034
3034
  let n = T(e, t);
3035
- return x().look === "neo" && n.attr("data-look", "neo"), n;
3036
- }, "drawRect"), se = /* @__PURE__ */ n(function(e, t, n, r, i) {
3035
+ return C().look === "neo" && n.attr("data-look", "neo"), n;
3036
+ }, "drawRect"), se = /* @__PURE__ */ i(function(e, t, n, r, i) {
3037
3037
  if (t.links === void 0 || t.links === null || Object.keys(t.links).length === 0) return {
3038
3038
  height: 0,
3039
3039
  width: 0
@@ -3057,10 +3057,10 @@ var L = I, ee = {
3057
3057
  height: s.height + p,
3058
3058
  width: d
3059
3059
  };
3060
- }, "drawPopup"), ce = /* @__PURE__ */ n(function(e) {
3060
+ }, "drawPopup"), ce = /* @__PURE__ */ i(function(e) {
3061
3061
  return "var pu = document.getElementById('" + e + "'); if (pu != null) { pu.style.display = pu.style.display == 'block' ? 'none' : 'block'; }";
3062
- }, "popupMenuToggle"), le = /* @__PURE__ */ n(async function(e, t, n = null) {
3063
- let r = e.append("foreignObject"), i = await c(t.text, x()), a = r.append("xhtml:div").attr("style", "width: fit-content;").attr("xmlns", "http://www.w3.org/1999/xhtml").html(i).node().getBoundingClientRect();
3062
+ }, "popupMenuToggle"), le = /* @__PURE__ */ i(async function(e, t, n = null) {
3063
+ let r = e.append("foreignObject"), i = await u(t.text, C()), a = r.append("xhtml:div").attr("style", "width: fit-content;").attr("xmlns", "http://www.w3.org/1999/xhtml").html(i).node().getBoundingClientRect();
3064
3064
  if (r.attr("height", Math.round(a.height)).attr("width", Math.round(a.width)), t.class === "noteText") {
3065
3065
  let n = e.node().firstChild;
3066
3066
  n.setAttribute("height", a.height + 2 * t.textMargin);
@@ -3075,85 +3075,85 @@ var L = I, ee = {
3075
3075
  r.attr("x", Math.round(e + Math.abs(e - i) / 2 - a.width / 2)), t.class === "loopText" ? r.attr("y", Math.round(o)) : r.attr("y", Math.round(o - a.height));
3076
3076
  }
3077
3077
  return [r];
3078
- }, "drawKatex"), W = /* @__PURE__ */ n(function(e, t) {
3079
- let r = 0, i = 0, a = t.text.split(y.lineBreakRegex), [o, s] = C(t.fontSize), c = [], l = 0, u = /* @__PURE__ */ n(() => t.y, "yfunc");
3080
- if (t.valign !== void 0 && t.textMargin !== void 0 && t.textMargin > 0) switch (t.valign) {
3078
+ }, "drawKatex"), W = /* @__PURE__ */ i(function(e, n) {
3079
+ let r = 0, a = 0, o = n.text.split(x.lineBreakRegex), [s, c] = t(n.fontSize), l = [], u = 0, d = /* @__PURE__ */ i(() => n.y, "yfunc");
3080
+ if (n.valign !== void 0 && n.textMargin !== void 0 && n.textMargin > 0) switch (n.valign) {
3081
3081
  case "top":
3082
3082
  case "start":
3083
- u = /* @__PURE__ */ n(() => Math.round(t.y + t.textMargin), "yfunc");
3083
+ d = /* @__PURE__ */ i(() => Math.round(n.y + n.textMargin), "yfunc");
3084
3084
  break;
3085
3085
  case "middle":
3086
3086
  case "center":
3087
- u = /* @__PURE__ */ n(() => Math.round(t.y + (r + i + t.textMargin) / 2), "yfunc");
3087
+ d = /* @__PURE__ */ i(() => Math.round(n.y + (r + a + n.textMargin) / 2), "yfunc");
3088
3088
  break;
3089
3089
  case "bottom":
3090
3090
  case "end":
3091
- u = /* @__PURE__ */ n(() => Math.round(t.y + (r + i + 2 * t.textMargin) - t.textMargin), "yfunc");
3091
+ d = /* @__PURE__ */ i(() => Math.round(n.y + (r + a + 2 * n.textMargin) - n.textMargin), "yfunc");
3092
3092
  break;
3093
3093
  }
3094
- if (t.anchor !== void 0 && t.textMargin !== void 0 && t.width !== void 0) switch (t.anchor) {
3094
+ if (n.anchor !== void 0 && n.textMargin !== void 0 && n.width !== void 0) switch (n.anchor) {
3095
3095
  case "left":
3096
3096
  case "start":
3097
- t.x = Math.round(t.x + t.textMargin), t.anchor = "start", t.dominantBaseline = "middle", t.alignmentBaseline = "middle";
3097
+ n.x = Math.round(n.x + n.textMargin), n.anchor = "start", n.dominantBaseline = "middle", n.alignmentBaseline = "middle";
3098
3098
  break;
3099
3099
  case "middle":
3100
3100
  case "center":
3101
- t.x = Math.round(t.x + t.width / 2), t.anchor = "middle", t.dominantBaseline = "middle", t.alignmentBaseline = "middle";
3101
+ n.x = Math.round(n.x + n.width / 2), n.anchor = "middle", n.dominantBaseline = "middle", n.alignmentBaseline = "middle";
3102
3102
  break;
3103
3103
  case "right":
3104
3104
  case "end":
3105
- t.x = Math.round(t.x + t.width - t.textMargin), t.anchor = "end", t.dominantBaseline = "middle", t.alignmentBaseline = "middle";
3105
+ n.x = Math.round(n.x + n.width - n.textMargin), n.anchor = "end", n.dominantBaseline = "middle", n.alignmentBaseline = "middle";
3106
3106
  break;
3107
3107
  }
3108
- for (let [n, d] of a.entries()) {
3109
- t.textMargin !== void 0 && t.textMargin === 0 && o !== void 0 && (l = n * o);
3110
- let a = e.append("text");
3111
- a.attr("x", t.x), a.attr("y", u()), t.anchor !== void 0 && a.attr("text-anchor", t.anchor).attr("dominant-baseline", t.dominantBaseline).attr("alignment-baseline", t.alignmentBaseline), t.fontFamily !== void 0 && a.style("font-family", t.fontFamily), s !== void 0 && a.style("font-size", s), t.fontWeight !== void 0 && a.style("font-weight", t.fontWeight), t.fill !== void 0 && a.attr("fill", t.fill), t.class !== void 0 && a.attr("class", t.class), t.dy === void 0 ? l !== 0 && a.attr("dy", l) : a.attr("dy", t.dy);
3112
- let f = d || "​";
3113
- if (t.tspan) {
3114
- let e = a.append("tspan");
3115
- e.attr("x", t.x), t.fill !== void 0 && e.attr("fill", t.fill), e.text(f);
3116
- } else a.text(f);
3117
- t.valign !== void 0 && t.textMargin !== void 0 && t.textMargin > 0 && (i += (a._groups || a)[0][0].getBBox().height, r = i), c.push(a);
3108
+ for (let [t, i] of o.entries()) {
3109
+ n.textMargin !== void 0 && n.textMargin === 0 && s !== void 0 && (u = t * s);
3110
+ let o = e.append("text");
3111
+ o.attr("x", n.x), o.attr("y", d()), n.anchor !== void 0 && o.attr("text-anchor", n.anchor).attr("dominant-baseline", n.dominantBaseline).attr("alignment-baseline", n.alignmentBaseline), n.fontFamily !== void 0 && o.style("font-family", n.fontFamily), c !== void 0 && o.style("font-size", c), n.fontWeight !== void 0 && o.style("font-weight", n.fontWeight), n.fill !== void 0 && o.attr("fill", n.fill), n.class !== void 0 && o.attr("class", n.class), n.dy === void 0 ? u !== 0 && o.attr("dy", u) : o.attr("dy", n.dy);
3112
+ let f = i || "​";
3113
+ if (n.tspan) {
3114
+ let e = o.append("tspan");
3115
+ e.attr("x", n.x), n.fill !== void 0 && e.attr("fill", n.fill), e.text(f);
3116
+ } else o.text(f);
3117
+ n.valign !== void 0 && n.textMargin !== void 0 && n.textMargin > 0 && (a += (o._groups || o)[0][0].getBBox().height, r = a), l.push(o);
3118
3118
  }
3119
- return c;
3120
- }, "drawText"), ue = /* @__PURE__ */ n(function(e, t) {
3121
- function r(e, t, n, r, i) {
3119
+ return l;
3120
+ }, "drawText"), ue = /* @__PURE__ */ i(function(e, t) {
3121
+ function n(e, t, n, r, i) {
3122
3122
  return e + "," + t + " " + (e + n) + "," + t + " " + (e + n) + "," + (t + r - i) + " " + (e + n - i * 1.2) + "," + (t + r) + " " + e + "," + (t + r);
3123
3123
  }
3124
- n(r, "genPoints");
3125
- let i = e.append("polygon");
3126
- return i.attr("points", r(t.x, t.y, t.width, t.height, 7)), i.attr("class", "labelBox"), t.y += t.height / 2, W(e, t), i;
3127
- }, "drawLabel"), G = -1, de = /* @__PURE__ */ n((e, t, n, r) => {
3124
+ i(n, "genPoints");
3125
+ let r = e.append("polygon");
3126
+ return r.attr("points", n(t.x, t.y, t.width, t.height, 7)), r.attr("class", "labelBox"), t.y += t.height / 2, W(e, t), r;
3127
+ }, "drawLabel"), G = -1, de = /* @__PURE__ */ i((e, t, n, r) => {
3128
3128
  e.select && n.forEach((n) => {
3129
3129
  let i = t.get(n), a = e.select("#actor" + i.actorCnt);
3130
3130
  !r.mirrorActors && i.stopy ? a.attr("y2", i.stopy + i.height / 2) : r.mirrorActors && a.attr("y2", i.stopy);
3131
3131
  });
3132
- }, "fixLifeLineHeights"), fe = /* @__PURE__ */ n(function(e, t, n, r, i) {
3132
+ }, "fixLifeLineHeights"), fe = /* @__PURE__ */ i(function(e, t, n, r, i) {
3133
3133
  var a, o, s;
3134
3134
  let c = r ? t.stopy : t.starty, l = t.x + t.width / 2, u = c + t.height, { look: d, theme: f, themeVariables: p } = n, { bkgColorArray: m, borderColorArray: h } = p, g = e.append("g").lower();
3135
- var v = g;
3136
- r || (G++, Object.keys(t.links || {}).length && !n.forceMenus && v.attr("onclick", ce(`actor${G}_popup`)).attr("cursor", "pointer"), v.append("line").attr("id", "actor" + G).attr("x1", l).attr("y1", u).attr("x2", l).attr("y2", 2e3).attr("class", "actor-line 200").attr("stroke-width", "0.5px").attr("stroke", "#999").attr("name", t.name).attr("data-et", "life-line").attr("data-id", t.name), v = g.append("g"), t.actorCnt = G, t.links != null && v.attr("id", "root-" + G), d === "neo" && v.attr("data-look", "neo"));
3137
- let y = A();
3135
+ var _ = g;
3136
+ r || (G++, Object.keys(t.links || {}).length && !n.forceMenus && _.attr("onclick", ce(`actor${G}_popup`)).attr("cursor", "pointer"), _.append("line").attr("id", "actor" + G).attr("x1", l).attr("y1", u).attr("x2", l).attr("y2", 2e3).attr("class", "actor-line 200").attr("stroke-width", "0.5px").attr("stroke", "#999").attr("name", t.name).attr("data-et", "life-line").attr("data-id", t.name), _ = g.append("g"), t.actorCnt = G, t.links != null && _.attr("id", "root-" + G), d === "neo" && _.attr("data-look", "neo"));
3137
+ let v = A();
3138
3138
  var b = "actor";
3139
- (a = t.properties) != null && a.class ? b = t.properties.class : y.fill = "#eaeaea", r ? b += ` ${V}` : b += ` ${B}`, y.x = t.x, y.y = c, y.width = t.width, y.height = t.height, y.class = b, y.rx = 3, y.ry = 3, y.name = t.name, d === "neo" && (y.rx = 6, y.ry = 6);
3140
- let x = oe(v, y), S = (o = i.get(t.name)) == null ? 0 : o;
3141
- if (U.has(f) && (x.style("stroke", h[S % h.length]), x.style("fill", m[S % h.length])), d === "neo" && x.attr("filter", "url(#drop-shadow)"), t.rectData = y, (s = t.properties) != null && s.icon) {
3139
+ (a = t.properties) != null && a.class ? b = t.properties.class : v.fill = "#eaeaea", r ? b += ` ${V}` : b += ` ${B}`, v.x = t.x, v.y = c, v.width = t.width, v.height = t.height, v.class = b, v.rx = 3, v.ry = 3, v.name = t.name, d === "neo" && (v.rx = 6, v.ry = 6);
3140
+ let x = oe(_, v), S = (o = i.get(t.name)) == null ? 0 : o;
3141
+ if (U.has(f) && (x.style("stroke", h[S % h.length]), x.style("fill", m[S % h.length])), d === "neo" && x.attr("filter", "url(#drop-shadow)"), t.rectData = v, (s = t.properties) != null && s.icon) {
3142
3142
  let e = t.properties.icon.trim();
3143
- e.charAt(0) === "@" ? k(v, y.x + y.width - 20, y.y + 10, e.substr(1)) : D(v, y.x + y.width - 20, y.y + 10, e);
3143
+ e.charAt(0) === "@" ? k(_, v.x + v.width - 20, v.y + 10, e.substr(1)) : D(_, v.x + v.width - 20, v.y + 10, e);
3144
3144
  }
3145
- r || (v.attr("data-et", "participant"), v.attr("data-type", "participant"), v.attr("data-id", t.name)), J(n, _(t.description))(t.description, v, y.x, y.y, y.width, y.height, { class: `actor ${ae}` }, n);
3145
+ r || (_.attr("data-et", "participant"), _.attr("data-type", "participant"), _.attr("data-id", t.name)), J(n, y(t.description))(t.description, _, v.x, v.y, v.width, v.height, { class: `actor ${ae}` }, n);
3146
3146
  let C = t.height;
3147
3147
  if (x.node) {
3148
3148
  let e = x.node().getBBox();
3149
3149
  t.height = e.height, C = e.height;
3150
3150
  }
3151
3151
  return C;
3152
- }, "drawActorTypeParticipant"), pe = /* @__PURE__ */ n(function(t, n, r, i, a) {
3152
+ }, "drawActorTypeParticipant"), pe = /* @__PURE__ */ i(function(t, n, r, i, a) {
3153
3153
  var o, s, c;
3154
- let l = i ? n.stopy : n.starty, u = n.x + n.width / 2, d = l + n.height, { look: f, theme: p, themeVariables: m } = r, { bkgColorArray: h, borderColorArray: g } = m, v = t.append("g").lower();
3155
- var y = v;
3156
- i || (G++, Object.keys(n.links || {}).length && !r.forceMenus && y.attr("onclick", ce(`actor${G}_popup`)).attr("cursor", "pointer"), y.append("line").attr("id", "actor" + G).attr("x1", u).attr("y1", d).attr("x2", u).attr("y2", 2e3).attr("class", "actor-line 200").attr("stroke-width", "0.5px").attr("stroke", "#999").attr("name", n.name).attr("data-et", "life-line").attr("data-id", n.name), y = v.append("g"), n.actorCnt = G, n.links != null && y.attr("id", "root-" + G), f === "neo" && y.attr("data-look", "neo"));
3154
+ let l = i ? n.stopy : n.starty, u = n.x + n.width / 2, d = l + n.height, { look: f, theme: p, themeVariables: m } = r, { bkgColorArray: h, borderColorArray: g } = m, _ = t.append("g").lower();
3155
+ var v = _;
3156
+ i || (G++, Object.keys(n.links || {}).length && !r.forceMenus && v.attr("onclick", ce(`actor${G}_popup`)).attr("cursor", "pointer"), v.append("line").attr("id", "actor" + G).attr("x1", u).attr("y1", d).attr("x2", u).attr("y2", 2e3).attr("class", "actor-line 200").attr("stroke-width", "0.5px").attr("stroke", "#999").attr("name", n.name).attr("data-et", "life-line").attr("data-id", n.name), v = _.append("g"), n.actorCnt = G, n.links != null && v.attr("id", "root-" + G), f === "neo" && v.attr("data-look", "neo"));
3157
3157
  let b = A();
3158
3158
  var x = "actor";
3159
3159
  (o = n.properties) != null && o.class ? x = n.properties.class : b.fill = "#eaeaea", i ? x += ` ${V}` : x += ` ${B}`, b.x = n.x, b.y = l, b.width = n.width, b.height = n.height, b.class = x, b.name = n.name;
@@ -3161,49 +3161,49 @@ var L = I, ee = {
3161
3161
  x: b.x + -6,
3162
3162
  y: b.y + 6,
3163
3163
  class: "actor"
3164
- }), C = oe(y, b), w = oe(y, S);
3165
- n.rectData = b, f === "neo" && y.attr("filter", "url(#drop-shadow)");
3164
+ }), C = oe(v, b), w = oe(v, S);
3165
+ n.rectData = b, f === "neo" && v.attr("filter", "url(#drop-shadow)");
3166
3166
  let T = (s = a.get(n.name)) == null ? 0 : s;
3167
3167
  if (U.has(p) && (C.style("stroke", g[T % g.length]), C.style("fill", h[T % g.length]), w.style("stroke", g[T % g.length]), w.style("fill", h[T % g.length])), (c = n.properties) != null && c.icon) {
3168
3168
  let e = n.properties.icon.trim();
3169
- e.charAt(0) === "@" ? k(y, b.x + b.width - 20, b.y + 10, e.substr(1)) : D(y, b.x + b.width - 20, b.y + 10, e);
3169
+ e.charAt(0) === "@" ? k(v, b.x + b.width - 20, b.y + 10, e.substr(1)) : D(v, b.x + b.width - 20, b.y + 10, e);
3170
3170
  }
3171
- J(r, _(n.description))(n.description, y, b.x - 6, b.y + 6, b.width, b.height, { class: `actor ${ae}` }, r);
3171
+ J(r, y(n.description))(n.description, v, b.x - 6, b.y + 6, b.width, b.height, { class: `actor ${ae}` }, r);
3172
3172
  let E = n.height;
3173
3173
  if (C.node) {
3174
3174
  let e = C.node().getBBox();
3175
3175
  n.height = e.height, E = e.height;
3176
3176
  }
3177
- return i || (y.attr("data-et", "participant"), y.attr("data-type", "collections"), y.attr("data-id", n.name)), E;
3178
- }, "drawActorTypeCollections"), me = /* @__PURE__ */ n(function(e, t, n, r, i) {
3177
+ return i || (v.attr("data-et", "participant"), v.attr("data-type", "collections"), v.attr("data-id", n.name)), E;
3178
+ }, "drawActorTypeCollections"), me = /* @__PURE__ */ i(function(e, t, n, r, i) {
3179
3179
  var a, o, s;
3180
- let c = r ? t.stopy : t.starty, l = t.x + t.width / 2, u = c + t.height, { look: d, theme: f, themeVariables: p } = n, { bkgColorArray: m, borderColorArray: h } = p, g = e.append("g").lower(), v = g;
3181
- r || (G++, Object.keys(t.links || {}).length && !n.forceMenus && v.attr("onclick", ce(`actor${G}_popup`)).attr("cursor", "pointer"), v.append("line").attr("id", "actor" + G).attr("x1", l).attr("y1", u).attr("x2", l).attr("y2", 2e3).attr("class", "actor-line 200").attr("stroke-width", "0.5px").attr("stroke", "#999").attr("name", t.name).attr("data-et", "life-line").attr("data-id", t.name), v = g.append("g"), t.actorCnt = G, t.links != null && v.attr("id", "root-" + G), d === "neo" && v.attr("data-look", "neo"));
3182
- let y = A(), b = "actor";
3183
- (a = t.properties) != null && a.class ? b = t.properties.class : y.fill = "#eaeaea", r ? b += ` ${V}` : b += ` ${B}`, v.attr("class", b), y.x = t.x, y.y = c, y.width = t.width, y.height = t.height, y.name = t.name;
3184
- let x = y.height / 2, S = x / (2.5 + y.height / 50), C = v.append("g"), w = v.append("g"), T = `M ${y.x},${y.y + x}
3185
- a ${S},${x} 0 0 0 0,${y.height}
3186
- h ${y.width - 2 * S}
3187
- a ${S},${x} 0 0 0 0,-${y.height}
3180
+ let c = r ? t.stopy : t.starty, l = t.x + t.width / 2, u = c + t.height, { look: d, theme: f, themeVariables: p } = n, { bkgColorArray: m, borderColorArray: h } = p, g = e.append("g").lower(), _ = g;
3181
+ r || (G++, Object.keys(t.links || {}).length && !n.forceMenus && _.attr("onclick", ce(`actor${G}_popup`)).attr("cursor", "pointer"), _.append("line").attr("id", "actor" + G).attr("x1", l).attr("y1", u).attr("x2", l).attr("y2", 2e3).attr("class", "actor-line 200").attr("stroke-width", "0.5px").attr("stroke", "#999").attr("name", t.name).attr("data-et", "life-line").attr("data-id", t.name), _ = g.append("g"), t.actorCnt = G, t.links != null && _.attr("id", "root-" + G), d === "neo" && _.attr("data-look", "neo"));
3182
+ let v = A(), b = "actor";
3183
+ (a = t.properties) != null && a.class ? b = t.properties.class : v.fill = "#eaeaea", r ? b += ` ${V}` : b += ` ${B}`, _.attr("class", b), v.x = t.x, v.y = c, v.width = t.width, v.height = t.height, v.name = t.name;
3184
+ let x = v.height / 2, S = x / (2.5 + v.height / 50), C = _.append("g"), w = _.append("g"), T = `M ${v.x},${v.y + x}
3185
+ a ${S},${x} 0 0 0 0,${v.height}
3186
+ h ${v.width - 2 * S}
3187
+ a ${S},${x} 0 0 0 0,-${v.height}
3188
3188
  Z
3189
3189
  `;
3190
- C.append("path").attr("d", T), w.append("path").attr("d", `M ${y.x},${y.y + x}
3191
- a ${S},${x} 0 0 0 0,${y.height}`), C.attr("transform", `translate(${S}, ${-(y.height / 2)})`), w.attr("transform", `translate(${y.width - S}, ${-y.height / 2})`), t.rectData = y, d === "neo" && C.attr("filter", "url(#drop-shadow)");
3190
+ C.append("path").attr("d", T), w.append("path").attr("d", `M ${v.x},${v.y + x}
3191
+ a ${S},${x} 0 0 0 0,${v.height}`), C.attr("transform", `translate(${S}, ${-(v.height / 2)})`), w.attr("transform", `translate(${v.width - S}, ${-v.height / 2})`), t.rectData = v, d === "neo" && C.attr("filter", "url(#drop-shadow)");
3192
3192
  let E = (o = i.get(t.name)) == null ? 0 : o;
3193
3193
  if (U.has(f) && (C.style("stroke", h[E % h.length]), C.style("fill", m[E % h.length]), w.style("stroke", h[E % h.length]), w.style("fill", m[E % h.length])), (s = t.properties) != null && s.icon) {
3194
- let e = t.properties.icon.trim(), n = y.x + y.width - 20, r = y.y + 10;
3195
- e.charAt(0) === "@" ? k(v, n, r, e.substr(1)) : D(v, n, r, e);
3194
+ let e = t.properties.icon.trim(), n = v.x + v.width - 20, r = v.y + 10;
3195
+ e.charAt(0) === "@" ? k(_, n, r, e.substr(1)) : D(_, n, r, e);
3196
3196
  }
3197
- J(n, _(t.description))(t.description, v, y.x, y.y, y.width, y.height, { class: `actor ${ae}` }, n);
3197
+ J(n, y(t.description))(t.description, _, v.x, v.y, v.width, v.height, { class: `actor ${ae}` }, n);
3198
3198
  let O = t.height, j = C.select("path:last-child");
3199
3199
  if (j.node()) {
3200
3200
  let e = j.node().getBBox();
3201
3201
  t.height = e.height, O = e.height;
3202
3202
  }
3203
- return r || (v.attr("data-et", "participant"), v.attr("data-type", "queue"), v.attr("data-id", t.name)), O;
3204
- }, "drawActorTypeQueue"), he = /* @__PURE__ */ n(function(e, t, n, r, i, a) {
3203
+ return r || (_.attr("data-et", "participant"), _.attr("data-type", "queue"), _.attr("data-id", t.name)), O;
3204
+ }, "drawActorTypeQueue"), he = /* @__PURE__ */ i(function(e, t, n, r, i, a) {
3205
3205
  var o, s, c;
3206
- let l = r ? t.stopy : t.starty, u = t.x + t.width / 2, d = l + 75, { look: f, theme: p, themeVariables: m } = n, { bkgColorArray: h, borderColorArray: g, actorBorder: v, actorBkg: y } = m, b = e.append("g").lower();
3206
+ let l = r ? t.stopy : t.starty, u = t.x + t.width / 2, d = l + 75, { look: f, theme: p, themeVariables: m } = n, { bkgColorArray: h, borderColorArray: g, actorBorder: _, actorBkg: v } = m, b = e.append("g").lower();
3207
3207
  r || (G++, b.append("line").attr("id", "actor" + G).attr("x1", u).attr("y1", d).attr("x2", u).attr("y2", 2e3).attr("class", "actor-line 200").attr("stroke-width", "0.5px").attr("stroke", "#999").attr("name", t.name).attr("data-et", "life-line").attr("data-id", t.name), t.actorCnt = G);
3208
3208
  let x = e.append("g"), S = H;
3209
3209
  r ? S += ` ${V}` : S += ` ${B}`, x.attr("class", S), x.attr("name", t.name);
@@ -3212,27 +3212,27 @@ var L = I, ee = {
3212
3212
  let w = t.x + t.width / 2, T = l + 32;
3213
3213
  x.append("defs").append("marker").attr("id", i + "-filled-head-control").attr("refX", 11).attr("refY", 5.8).attr("markerWidth", 20).attr("markerHeight", 28).attr("orient", "172.5").attr("stroke-width", 1.2).append("path").attr("d", "M 14.4 5.6 L 7.2 10.4 L 8.8 5.6 L 7.2 0.8 Z"), x.append("circle").attr("cx", w).attr("cy", T).attr("r", 22).attr("filter", `${f === "neo" ? "url(#drop-shadow)" : ""}`), x.append("line").attr("marker-end", "url(#" + i + "-filled-head-control)").attr("transform", `translate(${w}, ${T - 22})`);
3214
3214
  let E = (o = a.get(t.name)) == null ? 0 : o;
3215
- return U.has(p) ? (x.style("stroke", g[E % g.length]), x.style("fill", h[E % g.length])) : (x.style("stroke", v), x.style("fill", y)), t.height = x.node().getBBox().height + 2 * ((s = n == null || (c = n.sequence) == null ? void 0 : c.labelBoxHeight) == null ? 0 : s), J(n, _(t.description))(t.description, x, C.x, C.y + 22 + (r ? 5 : 12), C.width, C.height, { class: `actor ${H}` }, n), r || (x.attr("data-et", "participant"), x.attr("data-type", "control"), x.attr("data-id", t.name)), t.height;
3216
- }, "drawActorTypeControl"), ge = /* @__PURE__ */ n(function(e, t, n, r, i) {
3215
+ return U.has(p) ? (x.style("stroke", g[E % g.length]), x.style("fill", h[E % g.length])) : (x.style("stroke", _), x.style("fill", v)), t.height = x.node().getBBox().height + 2 * ((s = n == null || (c = n.sequence) == null ? void 0 : c.labelBoxHeight) == null ? 0 : s), J(n, y(t.description))(t.description, x, C.x, C.y + 22 + (r ? 5 : 12), C.width, C.height, { class: `actor ${H}` }, n), r || (x.attr("data-et", "participant"), x.attr("data-type", "control"), x.attr("data-id", t.name)), t.height;
3216
+ }, "drawActorTypeControl"), ge = /* @__PURE__ */ i(function(e, t, n, r, i) {
3217
3217
  var a, o, s;
3218
- let c = r ? t.stopy : t.starty, l = t.x + t.width / 2, u = c + 75, { look: d, theme: f, themeVariables: p } = n, { bkgColorArray: m, borderColorArray: h } = p, g = e.append("g").lower(), v = e.append("g"), y = "actor";
3219
- r ? y += ` ${V}` : y += ` ${B}`, v.attr("class", y), v.attr("name", t.name);
3218
+ let c = r ? t.stopy : t.starty, l = t.x + t.width / 2, u = c + 75, { look: d, theme: f, themeVariables: p } = n, { bkgColorArray: m, borderColorArray: h } = p, g = e.append("g").lower(), _ = e.append("g"), v = "actor";
3219
+ r ? v += ` ${V}` : v += ` ${B}`, _.attr("class", v), _.attr("name", t.name);
3220
3220
  let b = A();
3221
3221
  b.x = t.x, b.y = c, b.fill = "#eaeaea", b.width = t.width, b.height = t.height, b.class = "actor";
3222
3222
  let x = t.x + t.width / 2, S = c + (r ? 10 : 25);
3223
- v.append("circle").attr("cx", x).attr("cy", S).attr("r", 22).attr("width", t.width).attr("height", t.height), v.append("line").attr("x1", x - 22).attr("x2", x + 22).attr("y1", S + 22).attr("y2", S + 22).attr("stroke-width", 2), d === "neo" && v.attr("filter", "url(#drop-shadow)");
3223
+ _.append("circle").attr("cx", x).attr("cy", S).attr("r", 22).attr("width", t.width).attr("height", t.height), _.append("line").attr("x1", x - 22).attr("x2", x + 22).attr("y1", S + 22).attr("y2", S + 22).attr("stroke-width", 2), d === "neo" && _.attr("filter", "url(#drop-shadow)");
3224
3224
  let C = (a = i.get(t.name)) == null ? 0 : a;
3225
- return U.has(f) && (v.style("stroke", h[C % h.length]), v.style("fill", m[C % h.length])), t.height = v.node().getBBox().height + ((o = n == null || (s = n.sequence) == null ? void 0 : s.labelBoxHeight) == null ? 0 : o), r || (G++, g.append("line").attr("id", "actor" + G).attr("x1", l).attr("y1", u).attr("x2", l).attr("y2", 2e3).attr("class", "actor-line 200").attr("stroke-width", "0.5px").attr("stroke", "#999").attr("name", t.name).attr("data-et", "life-line").attr("data-id", t.name), t.actorCnt = G), J(n, _(t.description))(t.description, v, b.x, b.y + (r ? 15 : 30), b.width, b.height, { class: `actor ${H}` }, n), r ? v.attr("transform", "translate(0, 22)") : (v.attr("transform", `translate(0, ${22 / 2 - 5})`), v.attr("data-et", "participant"), v.attr("data-type", "entity"), v.attr("data-id", t.name)), t.height;
3226
- }, "drawActorTypeEntity"), _e = /* @__PURE__ */ n(function(e, t, n, r, i) {
3225
+ return U.has(f) && (_.style("stroke", h[C % h.length]), _.style("fill", m[C % h.length])), t.height = _.node().getBBox().height + ((o = n == null || (s = n.sequence) == null ? void 0 : s.labelBoxHeight) == null ? 0 : o), r || (G++, g.append("line").attr("id", "actor" + G).attr("x1", l).attr("y1", u).attr("x2", l).attr("y2", 2e3).attr("class", "actor-line 200").attr("stroke-width", "0.5px").attr("stroke", "#999").attr("name", t.name).attr("data-et", "life-line").attr("data-id", t.name), t.actorCnt = G), J(n, y(t.description))(t.description, _, b.x, b.y + (r ? 15 : 30), b.width, b.height, { class: `actor ${H}` }, n), r ? _.attr("transform", "translate(0, 22)") : (_.attr("transform", `translate(0, ${22 / 2 - 5})`), _.attr("data-et", "participant"), _.attr("data-type", "entity"), _.attr("data-id", t.name)), t.height;
3226
+ }, "drawActorTypeEntity"), _e = /* @__PURE__ */ i(function(e, t, n, r, i) {
3227
3227
  var a, o;
3228
- let s = r ? t.stopy : t.starty, c = t.x + t.width / 2, l = s + t.height + 2 * n.boxTextMargin, { theme: u, themeVariables: d, look: f } = n, { bkgColorArray: p, borderColorArray: m, actorBorder: h } = d, g = e.append("g").lower(), v = g;
3229
- r || (G++, Object.keys(t.links || {}).length && !n.forceMenus && v.attr("onclick", ce(`actor${G}_popup`)).attr("cursor", "pointer"), v.append("line").attr("id", "actor" + G).attr("x1", c).attr("y1", l).attr("x2", c).attr("y2", 2e3).attr("class", "actor-line 200").attr("stroke-width", "0.5px").attr("stroke", "#999").attr("name", t.name).attr("data-et", "life-line").attr("data-id", t.name), v = g.append("g"), t.actorCnt = G, t.links != null && v.attr("id", "root-" + G), f === "neo" && v.attr("data-look", "neo"));
3230
- let y = A(), b = "actor";
3231
- (a = t.properties) != null && a.class ? b = t.properties.class : y.fill = "#eaeaea", r ? b += ` ${V}` : b += ` ${B}`, y.x = t.x, y.y = s, y.width = t.width, y.height = t.height, y.class = b, y.name = t.name, y.x = t.x, y.y = s;
3232
- let x = y.width / 3, S = y.width / 3, C = x / 2, w = C / (2.5 + x / 50), T = v.append("g");
3228
+ let s = r ? t.stopy : t.starty, c = t.x + t.width / 2, l = s + t.height + 2 * n.boxTextMargin, { theme: u, themeVariables: d, look: f } = n, { bkgColorArray: p, borderColorArray: m, actorBorder: h } = d, g = e.append("g").lower(), _ = g;
3229
+ r || (G++, Object.keys(t.links || {}).length && !n.forceMenus && _.attr("onclick", ce(`actor${G}_popup`)).attr("cursor", "pointer"), _.append("line").attr("id", "actor" + G).attr("x1", c).attr("y1", l).attr("x2", c).attr("y2", 2e3).attr("class", "actor-line 200").attr("stroke-width", "0.5px").attr("stroke", "#999").attr("name", t.name).attr("data-et", "life-line").attr("data-id", t.name), _ = g.append("g"), t.actorCnt = G, t.links != null && _.attr("id", "root-" + G), f === "neo" && _.attr("data-look", "neo"));
3230
+ let v = A(), b = "actor";
3231
+ (a = t.properties) != null && a.class ? b = t.properties.class : v.fill = "#eaeaea", r ? b += ` ${V}` : b += ` ${B}`, v.x = t.x, v.y = s, v.width = t.width, v.height = t.height, v.class = b, v.name = t.name, v.x = t.x, v.y = s;
3232
+ let x = v.width / 3, S = v.width / 3, C = x / 2, w = C / (2.5 + x / 50), T = _.append("g");
3233
3233
  T.attr("class", b);
3234
3234
  let E = `
3235
- M ${y.x},${y.y + w}
3235
+ M ${v.x},${v.y + w}
3236
3236
  a ${C},${w} 0 0 0 ${x},0
3237
3237
  a ${C},${w} 0 0 0 -${x},0
3238
3238
  l 0,${S - 2 * w}
@@ -3241,38 +3241,38 @@ var L = I, ee = {
3241
3241
  `;
3242
3242
  T.append("path").attr("d", E), f === "neo" && T.attr("filter", "url(#drop-shadow)");
3243
3243
  let D = (o = i.get(t.name)) == null ? 0 : o;
3244
- U.has(u) ? (T.style("stroke", m[D % m.length]), T.style("fill", p[D % m.length])) : T.style("stroke", h), T.attr("transform", `translate(${x}, ${w})`), t.rectData = y, J(n, _(t.description))(t.description, v, y.x, y.y + 35, y.width, y.height, { class: `actor ${ae}` }, n);
3244
+ U.has(u) ? (T.style("stroke", m[D % m.length]), T.style("fill", p[D % m.length])) : T.style("stroke", h), T.attr("transform", `translate(${x}, ${w})`), t.rectData = v, J(n, y(t.description))(t.description, _, v.x, v.y + 35, v.width, v.height, { class: `actor ${ae}` }, n);
3245
3245
  let O = T.select("path:last-child");
3246
3246
  if (O.node()) {
3247
3247
  var k;
3248
3248
  t.height = O.node().getBBox().height + ((k = n.sequence.labelBoxHeight) == null ? 0 : k);
3249
3249
  }
3250
- return r || (v.attr("data-et", "participant"), v.attr("data-type", "database"), v.attr("data-id", t.name)), t.height;
3251
- }, "drawActorTypeDatabase"), ve = /* @__PURE__ */ n(function(e, t, n, r, i) {
3250
+ return r || (_.attr("data-et", "participant"), _.attr("data-type", "database"), _.attr("data-id", t.name)), t.height;
3251
+ }, "drawActorTypeDatabase"), ve = /* @__PURE__ */ i(function(e, t, n, r, i) {
3252
3252
  var a, o;
3253
3253
  let s = r ? t.stopy : t.starty, c = t.x + t.width / 2, l = s + 80, u = e.append("g").lower(), { look: d, theme: f, themeVariables: p } = n, { bkgColorArray: m, borderColorArray: h, actorBorder: g } = p;
3254
3254
  r || (G++, u.append("line").attr("id", "actor" + G).attr("x1", c).attr("y1", l).attr("x2", c).attr("y2", 2e3).attr("class", "actor-line 200").attr("stroke-width", "0.5px").attr("stroke", "#999").attr("name", t.name).attr("data-et", "life-line").attr("data-id", t.name), t.actorCnt = G);
3255
- let v = e.append("g"), y = H;
3256
- r ? y += ` ${V}` : y += ` ${B}`, v.attr("class", y), v.attr("name", t.name);
3255
+ let _ = e.append("g"), v = H;
3256
+ r ? v += ` ${V}` : v += ` ${B}`, _.attr("class", v), _.attr("name", t.name);
3257
3257
  let b = A();
3258
- b.x = t.x, b.y = s, b.fill = "#eaeaea", b.width = t.width, b.height = t.height, b.class = "actor", v.append("line").attr("id", "actor-man-torso" + G).attr("x1", t.x + t.width / 2 - 22 * 2.5).attr("y1", s + 12).attr("x2", t.x + t.width / 2 - 15).attr("y2", s + 12), v.append("line").attr("id", "actor-man-arms" + G).attr("x1", t.x + t.width / 2 - 22 * 2.5).attr("y1", s + 2).attr("x2", t.x + t.width / 2 - 22 * 2.5).attr("y2", s + 22), v.append("circle").attr("cx", t.x + t.width / 2).attr("cy", s + 12).attr("r", 22), d === "neo" && v.attr("filter", "url(#drop-shadow)");
3258
+ b.x = t.x, b.y = s, b.fill = "#eaeaea", b.width = t.width, b.height = t.height, b.class = "actor", _.append("line").attr("id", "actor-man-torso" + G).attr("x1", t.x + t.width / 2 - 22 * 2.5).attr("y1", s + 12).attr("x2", t.x + t.width / 2 - 15).attr("y2", s + 12), _.append("line").attr("id", "actor-man-arms" + G).attr("x1", t.x + t.width / 2 - 22 * 2.5).attr("y1", s + 2).attr("x2", t.x + t.width / 2 - 22 * 2.5).attr("y2", s + 22), _.append("circle").attr("cx", t.x + t.width / 2).attr("cy", s + 12).attr("r", 22), d === "neo" && _.attr("filter", "url(#drop-shadow)");
3259
3259
  let x = (a = i.get(t.name)) == null ? 0 : a;
3260
- return U.has(f) ? (v.style("stroke", h[x % h.length]), v.style("fill", m[x % h.length])) : v.style("stroke", g), t.height = v.node().getBBox().height + ((o = n.sequence.labelBoxHeight) == null ? 0 : o), J(n, _(t.description))(t.description, v, b.x, b.y + 15, b.width, b.height, { class: `actor ${H}` }, n), v.attr("transform", "translate(0,21)"), r || (v.attr("data-et", "participant"), v.attr("data-type", "boundary"), v.attr("data-id", t.name)), t.height;
3261
- }, "drawActorTypeBoundary"), ye = /* @__PURE__ */ n(function(e, t, n, r, i) {
3260
+ return U.has(f) ? (_.style("stroke", h[x % h.length]), _.style("fill", m[x % h.length])) : _.style("stroke", g), t.height = _.node().getBBox().height + ((o = n.sequence.labelBoxHeight) == null ? 0 : o), J(n, y(t.description))(t.description, _, b.x, b.y + 15, b.width, b.height, { class: `actor ${H}` }, n), _.attr("transform", "translate(0,21)"), r || (_.attr("data-et", "participant"), _.attr("data-type", "boundary"), _.attr("data-id", t.name)), t.height;
3261
+ }, "drawActorTypeBoundary"), ye = /* @__PURE__ */ i(function(e, t, n, r, i) {
3262
3262
  var a;
3263
3263
  let o = r ? t.stopy : t.starty, s = t.x + t.width / 2, c = o + 80, { look: l, theme: u, themeVariables: d } = n, { bkgColorArray: f, borderColorArray: p, actorBorder: m } = d, h = e.append("g").lower();
3264
3264
  r || (G++, h.append("line").attr("id", "actor" + G).attr("x1", s).attr("y1", c).attr("x2", s).attr("y2", 2e3).attr("class", "actor-line 200").attr("stroke-width", "0.5px").attr("stroke", "#999").attr("name", t.name).attr("data-et", "life-line").attr("data-id", t.name), t.actorCnt = G);
3265
- let g = e.append("g"), v = H;
3266
- r ? v += ` ${V}` : v += ` ${B}`, g.attr("class", v), g.attr("name", t.name), r || g.attr("data-et", "participant").attr("data-type", "actor").attr("data-id", t.name);
3267
- let y = l === "neo" ? .5 : 1, b = l === "neo" ? o + (1 - y) * 30 : o;
3268
- g.append("line").attr("id", "actor-man-torso" + G).attr("x1", s).attr("y1", b + 25 * y).attr("x2", s).attr("y2", b + 45 * y), g.append("line").attr("id", "actor-man-arms" + G).attr("x1", s - z / 2 * y).attr("y1", b + 33 * y).attr("x2", s + z / 2 * y).attr("y2", b + 33 * y), g.append("line").attr("x1", s - z / 2 * y).attr("y1", b + 60 * y).attr("x2", s).attr("y2", b + 45 * y), g.append("line").attr("x1", s).attr("y1", b + 45 * y).attr("x2", s + (z / 2 - 2) * y).attr("y2", b + 60 * y);
3265
+ let g = e.append("g"), _ = H;
3266
+ r ? _ += ` ${V}` : _ += ` ${B}`, g.attr("class", _), g.attr("name", t.name), r || g.attr("data-et", "participant").attr("data-type", "actor").attr("data-id", t.name);
3267
+ let v = l === "neo" ? .5 : 1, b = l === "neo" ? o + (1 - v) * 30 : o;
3268
+ g.append("line").attr("id", "actor-man-torso" + G).attr("x1", s).attr("y1", b + 25 * v).attr("x2", s).attr("y2", b + 45 * v), g.append("line").attr("id", "actor-man-arms" + G).attr("x1", s - z / 2 * v).attr("y1", b + 33 * v).attr("x2", s + z / 2 * v).attr("y2", b + 33 * v), g.append("line").attr("x1", s - z / 2 * v).attr("y1", b + 60 * v).attr("x2", s).attr("y2", b + 45 * v), g.append("line").attr("x1", s).attr("y1", b + 45 * v).attr("x2", s + (z / 2 - 2) * v).attr("y2", b + 60 * v);
3269
3269
  let x = g.append("circle");
3270
- x.attr("cx", t.x + t.width / 2), x.attr("cy", b + 10 * y), x.attr("r", 15 * y), x.attr("width", t.width * y), x.attr("height", t.height * y), t.height = g.node().getBBox().height;
3270
+ x.attr("cx", t.x + t.width / 2), x.attr("cy", b + 10 * v), x.attr("r", 15 * v), x.attr("width", t.width * v), x.attr("height", t.height * v), t.height = g.node().getBBox().height;
3271
3271
  let S = A();
3272
- S.x = t.x, S.y = b, S.fill = "#eaeaea", S.width = t.width, S.height = t.height / y, S.class = "actor", S.rx = 3, S.ry = 3;
3272
+ S.x = t.x, S.y = b, S.fill = "#eaeaea", S.width = t.width, S.height = t.height / v, S.class = "actor", S.rx = 3, S.ry = 3;
3273
3273
  let C = (a = i.get(t.name)) == null ? 0 : a;
3274
- return U.has(u) ? (g.style("stroke", p[C % p.length]), g.style("fill", f[C % p.length])) : g.style("stroke", m), J(n, _(t.description))(t.description, g, S.x, b + 35 * y - (l === "neo" ? 10 : 0), S.width, S.height, { class: `actor ${H}` }, n), t.height;
3275
- }, "drawActorTypeActor"), be = /* @__PURE__ */ n(async function(e, t, n, r, i, a, o) {
3274
+ return U.has(u) ? (g.style("stroke", p[C % p.length]), g.style("fill", f[C % p.length])) : g.style("stroke", m), J(n, y(t.description))(t.description, g, S.x, b + 35 * v - (l === "neo" ? 10 : 0), S.width, S.height, { class: `actor ${H}` }, n), t.height;
3275
+ }, "drawActorTypeActor"), be = /* @__PURE__ */ i(async function(e, t, n, r, i, a, o) {
3276
3276
  let s = o == null ? new Map([...a.db.getActors().values()].map((e, t) => [e.name, t])) : o;
3277
3277
  switch (t.type) {
3278
3278
  case "actor": return await ye(e, t, n, r, s);
@@ -3284,12 +3284,12 @@ var L = I, ee = {
3284
3284
  case "collections": return await pe(e, t, n, r, s);
3285
3285
  case "queue": return await me(e, t, n, r, s);
3286
3286
  }
3287
- }, "drawActor"), xe = /* @__PURE__ */ n(function(e, t, n) {
3287
+ }, "drawActor"), xe = /* @__PURE__ */ i(function(e, t, n) {
3288
3288
  let r = e.append("g");
3289
3289
  K(r, t), t.name && J(n)(t.name, r, t.x, t.y + n.boxTextMargin + (t.textMaxHeight || 0) / 2, t.width, 0, { class: "text" }, n), r.lower();
3290
- }, "drawBox"), Se = /* @__PURE__ */ n(function(e) {
3290
+ }, "drawBox"), Se = /* @__PURE__ */ i(function(e) {
3291
3291
  return e.append("g");
3292
- }, "anchorElement"), Ce = /* @__PURE__ */ n(function(e, t, n, r, i, a, o) {
3292
+ }, "anchorElement"), Ce = /* @__PURE__ */ i(function(e, t, n, r, i, a, o) {
3293
3293
  var s;
3294
3294
  let { theme: c, themeVariables: l } = r, { bkgColorArray: u, borderColorArray: d, mainBkg: f } = l, p = A(), m = t.anchored, h = t.actor;
3295
3295
  p.x = t.startx, p.y = t.starty, p.class = "activation" + i % 3, p.width = t.stopx - t.startx, p.height = n - t.starty;
@@ -3298,44 +3298,44 @@ var L = I, ee = {
3298
3298
  var v;
3299
3299
  g.style("stroke", d[_ % d.length]), g.style("fill", (v = u[_ % d.length]) == null ? f : v);
3300
3300
  }
3301
- }, "drawActivation"), we = /* @__PURE__ */ n(async function(e, t, r, i, a) {
3302
- let { boxMargin: o, boxTextMargin: s, labelBoxHeight: c, labelBoxWidth: l, messageFontFamily: u, messageFontSize: d, messageFontWeight: f } = i, p = e.append("g").attr("data-et", "control-structure").attr("data-id", "i" + a.id), m = /* @__PURE__ */ n(function(e, t, n, r) {
3301
+ }, "drawActivation"), we = /* @__PURE__ */ i(async function(e, t, n, r, a) {
3302
+ let { boxMargin: o, boxTextMargin: s, labelBoxHeight: c, labelBoxWidth: l, messageFontFamily: u, messageFontSize: d, messageFontWeight: f } = r, p = e.append("g").attr("data-et", "control-structure").attr("data-id", "i" + a.id), m = /* @__PURE__ */ i(function(e, t, n, r) {
3303
3303
  return p.append("line").attr("x1", e).attr("y1", t).attr("x2", n).attr("y2", r).attr("class", "loopLine");
3304
3304
  }, "drawLoopLine");
3305
3305
  m(t.startx, t.starty, t.stopx, t.starty), m(t.stopx, t.starty, t.stopx, t.stopy), m(t.startx, t.stopy, t.stopx, t.stopy), m(t.startx, t.starty, t.startx, t.stopy), t.sections !== void 0 && t.sections.forEach(function(e) {
3306
3306
  m(t.startx, e.y, t.stopx, e.y).style("stroke-dasharray", "3, 3");
3307
3307
  });
3308
3308
  let h = E();
3309
- h.text = r, h.x = t.startx, h.y = t.starty, h.fontFamily = u, h.fontSize = d, h.fontWeight = f, h.anchor = "middle", h.valign = "middle", h.tspan = !1, h.width = Math.max(l == null ? 0 : l, 50), h.height = c + (i.look === "neo" ? 15 : 0) || 20, h.textMargin = s, h.class = "labelText", ue(p, h), h = Me(), h.text = t.title, h.x = t.startx + l / 2 + (t.stopx - t.startx) / 2, h.y = t.starty + o + s, h.anchor = "middle", h.valign = "middle", h.textMargin = s, h.class = "loopText", h.fontFamily = u, h.fontSize = d, h.fontWeight = f, h.wrap = !0;
3310
- let g = _(h.text) ? await le(p, h, t) : W(p, h);
3309
+ h.text = n, h.x = t.startx, h.y = t.starty, h.fontFamily = u, h.fontSize = d, h.fontWeight = f, h.anchor = "middle", h.valign = "middle", h.tspan = !1, h.width = Math.max(l == null ? 0 : l, 50), h.height = c + (r.look === "neo" ? 15 : 0) || 20, h.textMargin = s, h.class = "labelText", ue(p, h), h = Me(), h.text = t.title, h.x = t.startx + l / 2 + (t.stopx - t.startx) / 2, h.y = t.starty + o + s, h.anchor = "middle", h.valign = "middle", h.textMargin = s, h.class = "loopText", h.fontFamily = u, h.fontSize = d, h.fontWeight = f, h.wrap = !0;
3310
+ let g = y(h.text) ? await le(p, h, t) : W(p, h);
3311
3311
  if (t.sectionTitles !== void 0) {
3312
3312
  for (let [e, n] of Object.entries(t.sectionTitles)) if (n.message) {
3313
- h.text = n.message, h.x = t.startx + (t.stopx - t.startx) / 2, h.y = t.sections[e].y + o + s, h.class = "loopText", h.anchor = "middle", h.valign = "middle", h.tspan = !1, h.fontFamily = u, h.fontSize = d, h.fontWeight = f, h.wrap = t.wrap, _(h.text) ? (t.starty = t.sections[e].y, await le(p, h, t)) : W(p, h);
3313
+ h.text = n.message, h.x = t.startx + (t.stopx - t.startx) / 2, h.y = t.sections[e].y + o + s, h.class = "loopText", h.anchor = "middle", h.valign = "middle", h.tspan = !1, h.fontFamily = u, h.fontSize = d, h.fontWeight = f, h.wrap = t.wrap, y(h.text) ? (t.starty = t.sections[e].y, await le(p, h, t)) : W(p, h);
3314
3314
  let r = Math.round(g.map((e) => (e._groups || e)[0][0].getBBox().height).reduce((e, t) => e + t));
3315
3315
  t.sections[e].height += r - (o + s);
3316
3316
  }
3317
3317
  }
3318
3318
  return t.height = Math.round(t.stopy - t.starty), p;
3319
- }, "drawLoop"), K = /* @__PURE__ */ n(function(e, t) {
3319
+ }, "drawLoop"), K = /* @__PURE__ */ i(function(e, t) {
3320
3320
  O(e, t);
3321
- }, "drawBackgroundRect"), q = /* @__PURE__ */ n(function(e, t) {
3321
+ }, "drawBackgroundRect"), q = /* @__PURE__ */ i(function(e, t) {
3322
3322
  e.append("defs").append("symbol").attr("id", t + "-database").attr("fill-rule", "evenodd").attr("clip-rule", "evenodd").append("path").attr("transform", "scale(.5)").attr("d", "M12.258.001l.256.004.255.005.253.008.251.01.249.012.247.015.246.016.242.019.241.02.239.023.236.024.233.027.231.028.229.031.225.032.223.034.22.036.217.038.214.04.211.041.208.043.205.045.201.046.198.048.194.05.191.051.187.053.183.054.18.056.175.057.172.059.168.06.163.061.16.063.155.064.15.066.074.033.073.033.071.034.07.034.069.035.068.035.067.035.066.035.064.036.064.036.062.036.06.036.06.037.058.037.058.037.055.038.055.038.053.038.052.038.051.039.05.039.048.039.047.039.045.04.044.04.043.04.041.04.04.041.039.041.037.041.036.041.034.041.033.042.032.042.03.042.029.042.027.042.026.043.024.043.023.043.021.043.02.043.018.044.017.043.015.044.013.044.012.044.011.045.009.044.007.045.006.045.004.045.002.045.001.045v17l-.001.045-.002.045-.004.045-.006.045-.007.045-.009.044-.011.045-.012.044-.013.044-.015.044-.017.043-.018.044-.02.043-.021.043-.023.043-.024.043-.026.043-.027.042-.029.042-.03.042-.032.042-.033.042-.034.041-.036.041-.037.041-.039.041-.04.041-.041.04-.043.04-.044.04-.045.04-.047.039-.048.039-.05.039-.051.039-.052.038-.053.038-.055.038-.055.038-.058.037-.058.037-.06.037-.06.036-.062.036-.064.036-.064.036-.066.035-.067.035-.068.035-.069.035-.07.034-.071.034-.073.033-.074.033-.15.066-.155.064-.16.063-.163.061-.168.06-.172.059-.175.057-.18.056-.183.054-.187.053-.191.051-.194.05-.198.048-.201.046-.205.045-.208.043-.211.041-.214.04-.217.038-.22.036-.223.034-.225.032-.229.031-.231.028-.233.027-.236.024-.239.023-.241.02-.242.019-.246.016-.247.015-.249.012-.251.01-.253.008-.255.005-.256.004-.258.001-.258-.001-.256-.004-.255-.005-.253-.008-.251-.01-.249-.012-.247-.015-.245-.016-.243-.019-.241-.02-.238-.023-.236-.024-.234-.027-.231-.028-.228-.031-.226-.032-.223-.034-.22-.036-.217-.038-.214-.04-.211-.041-.208-.043-.204-.045-.201-.046-.198-.048-.195-.05-.19-.051-.187-.053-.184-.054-.179-.056-.176-.057-.172-.059-.167-.06-.164-.061-.159-.063-.155-.064-.151-.066-.074-.033-.072-.033-.072-.034-.07-.034-.069-.035-.068-.035-.067-.035-.066-.035-.064-.036-.063-.036-.062-.036-.061-.036-.06-.037-.058-.037-.057-.037-.056-.038-.055-.038-.053-.038-.052-.038-.051-.039-.049-.039-.049-.039-.046-.039-.046-.04-.044-.04-.043-.04-.041-.04-.04-.041-.039-.041-.037-.041-.036-.041-.034-.041-.033-.042-.032-.042-.03-.042-.029-.042-.027-.042-.026-.043-.024-.043-.023-.043-.021-.043-.02-.043-.018-.044-.017-.043-.015-.044-.013-.044-.012-.044-.011-.045-.009-.044-.007-.045-.006-.045-.004-.045-.002-.045-.001-.045v-17l.001-.045.002-.045.004-.045.006-.045.007-.045.009-.044.011-.045.012-.044.013-.044.015-.044.017-.043.018-.044.02-.043.021-.043.023-.043.024-.043.026-.043.027-.042.029-.042.03-.042.032-.042.033-.042.034-.041.036-.041.037-.041.039-.041.04-.041.041-.04.043-.04.044-.04.046-.04.046-.039.049-.039.049-.039.051-.039.052-.038.053-.038.055-.038.056-.038.057-.037.058-.037.06-.037.061-.036.062-.036.063-.036.064-.036.066-.035.067-.035.068-.035.069-.035.07-.034.072-.034.072-.033.074-.033.151-.066.155-.064.159-.063.164-.061.167-.06.172-.059.176-.057.179-.056.184-.054.187-.053.19-.051.195-.05.198-.048.201-.046.204-.045.208-.043.211-.041.214-.04.217-.038.22-.036.223-.034.226-.032.228-.031.231-.028.234-.027.236-.024.238-.023.241-.02.243-.019.245-.016.247-.015.249-.012.251-.01.253-.008.255-.005.256-.004.258-.001.258.001zm-9.258 20.499v.01l.001.021.003.021.004.022.005.021.006.022.007.022.009.023.01.022.011.023.012.023.013.023.015.023.016.024.017.023.018.024.019.024.021.024.022.025.023.024.024.025.052.049.056.05.061.051.066.051.07.051.075.051.079.052.084.052.088.052.092.052.097.052.102.051.105.052.11.052.114.051.119.051.123.051.127.05.131.05.135.05.139.048.144.049.147.047.152.047.155.047.16.045.163.045.167.043.171.043.176.041.178.041.183.039.187.039.19.037.194.035.197.035.202.033.204.031.209.03.212.029.216.027.219.025.222.024.226.021.23.02.233.018.236.016.24.015.243.012.246.01.249.008.253.005.256.004.259.001.26-.001.257-.004.254-.005.25-.008.247-.011.244-.012.241-.014.237-.016.233-.018.231-.021.226-.021.224-.024.22-.026.216-.027.212-.028.21-.031.205-.031.202-.034.198-.034.194-.036.191-.037.187-.039.183-.04.179-.04.175-.042.172-.043.168-.044.163-.045.16-.046.155-.046.152-.047.148-.048.143-.049.139-.049.136-.05.131-.05.126-.05.123-.051.118-.052.114-.051.11-.052.106-.052.101-.052.096-.052.092-.052.088-.053.083-.051.079-.052.074-.052.07-.051.065-.051.06-.051.056-.05.051-.05.023-.024.023-.025.021-.024.02-.024.019-.024.018-.024.017-.024.015-.023.014-.024.013-.023.012-.023.01-.023.01-.022.008-.022.006-.022.006-.022.004-.022.004-.021.001-.021.001-.021v-4.127l-.077.055-.08.053-.083.054-.085.053-.087.052-.09.052-.093.051-.095.05-.097.05-.1.049-.102.049-.105.048-.106.047-.109.047-.111.046-.114.045-.115.045-.118.044-.12.043-.122.042-.124.042-.126.041-.128.04-.13.04-.132.038-.134.038-.135.037-.138.037-.139.035-.142.035-.143.034-.144.033-.147.032-.148.031-.15.03-.151.03-.153.029-.154.027-.156.027-.158.026-.159.025-.161.024-.162.023-.163.022-.165.021-.166.02-.167.019-.169.018-.169.017-.171.016-.173.015-.173.014-.175.013-.175.012-.177.011-.178.01-.179.008-.179.008-.181.006-.182.005-.182.004-.184.003-.184.002h-.37l-.184-.002-.184-.003-.182-.004-.182-.005-.181-.006-.179-.008-.179-.008-.178-.01-.176-.011-.176-.012-.175-.013-.173-.014-.172-.015-.171-.016-.17-.017-.169-.018-.167-.019-.166-.02-.165-.021-.163-.022-.162-.023-.161-.024-.159-.025-.157-.026-.156-.027-.155-.027-.153-.029-.151-.03-.15-.03-.148-.031-.146-.032-.145-.033-.143-.034-.141-.035-.14-.035-.137-.037-.136-.037-.134-.038-.132-.038-.13-.04-.128-.04-.126-.041-.124-.042-.122-.042-.12-.044-.117-.043-.116-.045-.113-.045-.112-.046-.109-.047-.106-.047-.105-.048-.102-.049-.1-.049-.097-.05-.095-.05-.093-.052-.09-.051-.087-.052-.085-.053-.083-.054-.08-.054-.077-.054v4.127zm0-5.654v.011l.001.021.003.021.004.021.005.022.006.022.007.022.009.022.01.022.011.023.012.023.013.023.015.024.016.023.017.024.018.024.019.024.021.024.022.024.023.025.024.024.052.05.056.05.061.05.066.051.07.051.075.052.079.051.084.052.088.052.092.052.097.052.102.052.105.052.11.051.114.051.119.052.123.05.127.051.131.05.135.049.139.049.144.048.147.048.152.047.155.046.16.045.163.045.167.044.171.042.176.042.178.04.183.04.187.038.19.037.194.036.197.034.202.033.204.032.209.03.212.028.216.027.219.025.222.024.226.022.23.02.233.018.236.016.24.014.243.012.246.01.249.008.253.006.256.003.259.001.26-.001.257-.003.254-.006.25-.008.247-.01.244-.012.241-.015.237-.016.233-.018.231-.02.226-.022.224-.024.22-.025.216-.027.212-.029.21-.03.205-.032.202-.033.198-.035.194-.036.191-.037.187-.039.183-.039.179-.041.175-.042.172-.043.168-.044.163-.045.16-.045.155-.047.152-.047.148-.048.143-.048.139-.05.136-.049.131-.05.126-.051.123-.051.118-.051.114-.052.11-.052.106-.052.101-.052.096-.052.092-.052.088-.052.083-.052.079-.052.074-.051.07-.052.065-.051.06-.05.056-.051.051-.049.023-.025.023-.024.021-.025.02-.024.019-.024.018-.024.017-.024.015-.023.014-.023.013-.024.012-.022.01-.023.01-.023.008-.022.006-.022.006-.022.004-.021.004-.022.001-.021.001-.021v-4.139l-.077.054-.08.054-.083.054-.085.052-.087.053-.09.051-.093.051-.095.051-.097.05-.1.049-.102.049-.105.048-.106.047-.109.047-.111.046-.114.045-.115.044-.118.044-.12.044-.122.042-.124.042-.126.041-.128.04-.13.039-.132.039-.134.038-.135.037-.138.036-.139.036-.142.035-.143.033-.144.033-.147.033-.148.031-.15.03-.151.03-.153.028-.154.028-.156.027-.158.026-.159.025-.161.024-.162.023-.163.022-.165.021-.166.02-.167.019-.169.018-.169.017-.171.016-.173.015-.173.014-.175.013-.175.012-.177.011-.178.009-.179.009-.179.007-.181.007-.182.005-.182.004-.184.003-.184.002h-.37l-.184-.002-.184-.003-.182-.004-.182-.005-.181-.007-.179-.007-.179-.009-.178-.009-.176-.011-.176-.012-.175-.013-.173-.014-.172-.015-.171-.016-.17-.017-.169-.018-.167-.019-.166-.02-.165-.021-.163-.022-.162-.023-.161-.024-.159-.025-.157-.026-.156-.027-.155-.028-.153-.028-.151-.03-.15-.03-.148-.031-.146-.033-.145-.033-.143-.033-.141-.035-.14-.036-.137-.036-.136-.037-.134-.038-.132-.039-.13-.039-.128-.04-.126-.041-.124-.042-.122-.043-.12-.043-.117-.044-.116-.044-.113-.046-.112-.046-.109-.046-.106-.047-.105-.048-.102-.049-.1-.049-.097-.05-.095-.051-.093-.051-.09-.051-.087-.053-.085-.052-.083-.054-.08-.054-.077-.054v4.139zm0-5.666v.011l.001.02.003.022.004.021.005.022.006.021.007.022.009.023.01.022.011.023.012.023.013.023.015.023.016.024.017.024.018.023.019.024.021.025.022.024.023.024.024.025.052.05.056.05.061.05.066.051.07.051.075.052.079.051.084.052.088.052.092.052.097.052.102.052.105.051.11.052.114.051.119.051.123.051.127.05.131.05.135.05.139.049.144.048.147.048.152.047.155.046.16.045.163.045.167.043.171.043.176.042.178.04.183.04.187.038.19.037.194.036.197.034.202.033.204.032.209.03.212.028.216.027.219.025.222.024.226.021.23.02.233.018.236.017.24.014.243.012.246.01.249.008.253.006.256.003.259.001.26-.001.257-.003.254-.006.25-.008.247-.01.244-.013.241-.014.237-.016.233-.018.231-.02.226-.022.224-.024.22-.025.216-.027.212-.029.21-.03.205-.032.202-.033.198-.035.194-.036.191-.037.187-.039.183-.039.179-.041.175-.042.172-.043.168-.044.163-.045.16-.045.155-.047.152-.047.148-.048.143-.049.139-.049.136-.049.131-.051.126-.05.123-.051.118-.052.114-.051.11-.052.106-.052.101-.052.096-.052.092-.052.088-.052.083-.052.079-.052.074-.052.07-.051.065-.051.06-.051.056-.05.051-.049.023-.025.023-.025.021-.024.02-.024.019-.024.018-.024.017-.024.015-.023.014-.024.013-.023.012-.023.01-.022.01-.023.008-.022.006-.022.006-.022.004-.022.004-.021.001-.021.001-.021v-4.153l-.077.054-.08.054-.083.053-.085.053-.087.053-.09.051-.093.051-.095.051-.097.05-.1.049-.102.048-.105.048-.106.048-.109.046-.111.046-.114.046-.115.044-.118.044-.12.043-.122.043-.124.042-.126.041-.128.04-.13.039-.132.039-.134.038-.135.037-.138.036-.139.036-.142.034-.143.034-.144.033-.147.032-.148.032-.15.03-.151.03-.153.028-.154.028-.156.027-.158.026-.159.024-.161.024-.162.023-.163.023-.165.021-.166.02-.167.019-.169.018-.169.017-.171.016-.173.015-.173.014-.175.013-.175.012-.177.01-.178.01-.179.009-.179.007-.181.006-.182.006-.182.004-.184.003-.184.001-.185.001-.185-.001-.184-.001-.184-.003-.182-.004-.182-.006-.181-.006-.179-.007-.179-.009-.178-.01-.176-.01-.176-.012-.175-.013-.173-.014-.172-.015-.171-.016-.17-.017-.169-.018-.167-.019-.166-.02-.165-.021-.163-.023-.162-.023-.161-.024-.159-.024-.157-.026-.156-.027-.155-.028-.153-.028-.151-.03-.15-.03-.148-.032-.146-.032-.145-.033-.143-.034-.141-.034-.14-.036-.137-.036-.136-.037-.134-.038-.132-.039-.13-.039-.128-.041-.126-.041-.124-.041-.122-.043-.12-.043-.117-.044-.116-.044-.113-.046-.112-.046-.109-.046-.106-.048-.105-.048-.102-.048-.1-.05-.097-.049-.095-.051-.093-.051-.09-.052-.087-.052-.085-.053-.083-.053-.08-.054-.077-.054v4.153zm8.74-8.179l-.257.004-.254.005-.25.008-.247.011-.244.012-.241.014-.237.016-.233.018-.231.021-.226.022-.224.023-.22.026-.216.027-.212.028-.21.031-.205.032-.202.033-.198.034-.194.036-.191.038-.187.038-.183.04-.179.041-.175.042-.172.043-.168.043-.163.045-.16.046-.155.046-.152.048-.148.048-.143.048-.139.049-.136.05-.131.05-.126.051-.123.051-.118.051-.114.052-.11.052-.106.052-.101.052-.096.052-.092.052-.088.052-.083.052-.079.052-.074.051-.07.052-.065.051-.06.05-.056.05-.051.05-.023.025-.023.024-.021.024-.02.025-.019.024-.018.024-.017.023-.015.024-.014.023-.013.023-.012.023-.01.023-.01.022-.008.022-.006.023-.006.021-.004.022-.004.021-.001.021-.001.021.001.021.001.021.004.021.004.022.006.021.006.023.008.022.01.022.01.023.012.023.013.023.014.023.015.024.017.023.018.024.019.024.02.025.021.024.023.024.023.025.051.05.056.05.06.05.065.051.07.052.074.051.079.052.083.052.088.052.092.052.096.052.101.052.106.052.11.052.114.052.118.051.123.051.126.051.131.05.136.05.139.049.143.048.148.048.152.048.155.046.16.046.163.045.168.043.172.043.175.042.179.041.183.04.187.038.191.038.194.036.198.034.202.033.205.032.21.031.212.028.216.027.22.026.224.023.226.022.231.021.233.018.237.016.241.014.244.012.247.011.25.008.254.005.257.004.26.001.26-.001.257-.004.254-.005.25-.008.247-.011.244-.012.241-.014.237-.016.233-.018.231-.021.226-.022.224-.023.22-.026.216-.027.212-.028.21-.031.205-.032.202-.033.198-.034.194-.036.191-.038.187-.038.183-.04.179-.041.175-.042.172-.043.168-.043.163-.045.16-.046.155-.046.152-.048.148-.048.143-.048.139-.049.136-.05.131-.05.126-.051.123-.051.118-.051.114-.052.11-.052.106-.052.101-.052.096-.052.092-.052.088-.052.083-.052.079-.052.074-.051.07-.052.065-.051.06-.05.056-.05.051-.05.023-.025.023-.024.021-.024.02-.025.019-.024.018-.024.017-.023.015-.024.014-.023.013-.023.012-.023.01-.023.01-.022.008-.022.006-.023.006-.021.004-.022.004-.021.001-.021.001-.021-.001-.021-.001-.021-.004-.021-.004-.022-.006-.021-.006-.023-.008-.022-.01-.022-.01-.023-.012-.023-.013-.023-.014-.023-.015-.024-.017-.023-.018-.024-.019-.024-.02-.025-.021-.024-.023-.024-.023-.025-.051-.05-.056-.05-.06-.05-.065-.051-.07-.052-.074-.051-.079-.052-.083-.052-.088-.052-.092-.052-.096-.052-.101-.052-.106-.052-.11-.052-.114-.052-.118-.051-.123-.051-.126-.051-.131-.05-.136-.05-.139-.049-.143-.048-.148-.048-.152-.048-.155-.046-.16-.046-.163-.045-.168-.043-.172-.043-.175-.042-.179-.041-.183-.04-.187-.038-.191-.038-.194-.036-.198-.034-.202-.033-.205-.032-.21-.031-.212-.028-.216-.027-.22-.026-.224-.023-.226-.022-.231-.021-.233-.018-.237-.016-.241-.014-.244-.012-.247-.011-.25-.008-.254-.005-.257-.004-.26-.001-.26.001z");
3323
- }, "insertDatabaseIcon"), Te = /* @__PURE__ */ n(function(e, t) {
3323
+ }, "insertDatabaseIcon"), Te = /* @__PURE__ */ i(function(e, t) {
3324
3324
  e.append("defs").append("symbol").attr("id", t + "-computer").attr("width", "24").attr("height", "24").append("path").attr("transform", "scale(.5)").attr("d", "M2 2v13h20v-13h-20zm18 11h-16v-9h16v9zm-10.228 6l.466-1h3.524l.467 1h-4.457zm14.228 3h-24l2-6h2.104l-1.33 4h18.45l-1.297-4h2.073l2 6zm-5-10h-14v-7h14v7z");
3325
- }, "insertComputerIcon"), Ee = /* @__PURE__ */ n(function(e, t) {
3325
+ }, "insertComputerIcon"), Ee = /* @__PURE__ */ i(function(e, t) {
3326
3326
  e.append("defs").append("symbol").attr("id", t + "-clock").attr("width", "24").attr("height", "24").append("path").attr("transform", "scale(.5)").attr("d", "M12 2c5.514 0 10 4.486 10 10s-4.486 10-10 10-10-4.486-10-10 4.486-10 10-10zm0-2c-6.627 0-12 5.373-12 12s5.373 12 12 12 12-5.373 12-12-5.373-12-12-12zm5.848 12.459c.202.038.202.333.001.372-1.907.361-6.045 1.111-6.547 1.111-.719 0-1.301-.582-1.301-1.301 0-.512.77-5.447 1.125-7.445.034-.192.312-.181.343.014l.985 6.238 5.394 1.011z");
3327
- }, "insertClockIcon"), De = /* @__PURE__ */ n(function(e, t) {
3327
+ }, "insertClockIcon"), De = /* @__PURE__ */ i(function(e, t) {
3328
3328
  e.append("defs").append("marker").attr("id", t + "-arrowhead").attr("refX", 7.9).attr("refY", 5).attr("markerUnits", "userSpaceOnUse").attr("markerWidth", 12).attr("markerHeight", 12).attr("orient", "auto-start-reverse").append("path").attr("d", "M -1 0 L 10 5 L 0 10 z");
3329
- }, "insertArrowHead"), Oe = /* @__PURE__ */ n(function(e, t) {
3329
+ }, "insertArrowHead"), Oe = /* @__PURE__ */ i(function(e, t) {
3330
3330
  e.append("defs").append("marker").attr("id", t + "-filled-head").attr("refX", 15.5).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");
3331
- }, "insertArrowFilledHead"), ke = /* @__PURE__ */ n(function(e, t) {
3331
+ }, "insertArrowFilledHead"), ke = /* @__PURE__ */ i(function(e, t) {
3332
3332
  e.append("defs").append("marker").attr("id", t + "-sequencenumber").attr("refX", 15).attr("refY", 15).attr("markerWidth", 60).attr("markerHeight", 40).attr("orient", "auto").append("circle").attr("cx", 15).attr("cy", 15).attr("r", 6);
3333
- }, "insertSequenceNumber"), Ae = /* @__PURE__ */ n(function(e, t) {
3333
+ }, "insertSequenceNumber"), Ae = /* @__PURE__ */ i(function(e, t) {
3334
3334
  e.append("defs").append("marker").attr("id", t + "-crosshead").attr("markerWidth", 15).attr("markerHeight", 8).attr("orient", "auto").attr("refX", 4).attr("refY", 4.5).append("path").attr("fill", "none").attr("stroke", "#000000").style("stroke-dasharray", "0, 0").attr("stroke-width", "1pt").attr("d", "M 1,2 L 6,7 M 6,2 L 1,7");
3335
- }, "insertArrowCrossHead"), je = /* @__PURE__ */ n(function(e, t) {
3335
+ }, "insertArrowCrossHead"), je = /* @__PURE__ */ i(function(e, t) {
3336
3336
  let { theme: n } = t;
3337
3337
  e.append("defs").append("filter").attr("id", "drop-shadow").attr("height", "130%").attr("width", "130%").append("feDropShadow").attr("dx", "4").attr("dy", "4").attr("stdDeviation", 0).attr("flood-opacity", "0.06").attr("flood-color", `${n === "redux" || n === "redux-color" ? "#000000" : "#FFFFFF"}`);
3338
- }, "insertDropShadow"), Me = /* @__PURE__ */ n(function() {
3338
+ }, "insertDropShadow"), Me = /* @__PURE__ */ i(function() {
3339
3339
  return {
3340
3340
  x: 0,
3341
3341
  y: 0,
@@ -3350,7 +3350,7 @@ var L = I, ee = {
3350
3350
  tspan: !0,
3351
3351
  valign: void 0
3352
3352
  };
3353
- }, "getTextObj"), Ne = /* @__PURE__ */ n(function() {
3353
+ }, "getTextObj"), Ne = /* @__PURE__ */ i(function() {
3354
3354
  return {
3355
3355
  x: 0,
3356
3356
  y: 0,
@@ -3363,57 +3363,57 @@ var L = I, ee = {
3363
3363
  ry: 0
3364
3364
  };
3365
3365
  }, "getNoteRect"), J = /* @__PURE__ */ (function() {
3366
- function e(e, t, n, r, i, o, s) {
3367
- a(t.append("text").attr("x", n + i / 2).attr("y", r + o / 2 + 5).style("text-anchor", "middle").text(e), s);
3366
+ function e(e, t, n, r, i, a, s) {
3367
+ o(t.append("text").attr("x", n + i / 2).attr("y", r + a / 2 + 5).style("text-anchor", "middle").text(e), s);
3368
3368
  }
3369
- n(e, "byText");
3370
- function t(e, t, n, r, i, o, s, c) {
3371
- let { actorFontSize: l, actorFontFamily: u, actorFontWeight: d } = c, [f, p] = C(l), m = e.split(y.lineBreakRegex);
3372
- for (let e = 0; e < m.length; e++) {
3373
- let c = e * f - f * (m.length - 1) / 2, l = t.append("text").attr("x", n + i / 2).attr("y", r).style("text-anchor", "middle").style("font-size", p).style("font-weight", d).style("font-family", u);
3374
- l.append("tspan").attr("x", n + i / 2).attr("dy", c).text(m[e]), l.attr("y", r + o / 2).attr("dominant-baseline", "central").attr("alignment-baseline", "central"), a(l, s);
3369
+ i(e, "byText");
3370
+ function n(e, n, r, i, a, s, c, l) {
3371
+ let { actorFontSize: u, actorFontFamily: d, actorFontWeight: f } = l, [p, m] = t(u), h = e.split(x.lineBreakRegex);
3372
+ for (let e = 0; e < h.length; e++) {
3373
+ let t = e * p - p * (h.length - 1) / 2, l = n.append("text").attr("x", r + a / 2).attr("y", i).style("text-anchor", "middle").style("font-size", m).style("font-weight", f).style("font-family", d);
3374
+ l.append("tspan").attr("x", r + a / 2).attr("dy", t).text(h[e]), l.attr("y", i + s / 2).attr("dominant-baseline", "central").attr("alignment-baseline", "central"), o(l, c);
3375
3375
  }
3376
3376
  }
3377
- n(t, "byTspan");
3378
- function r(e, n, r, i, o, s, c, l) {
3379
- let u = n.append("switch"), d = u.append("foreignObject").attr("x", r).attr("y", i).attr("width", o).attr("height", s).append("xhtml:div").style("display", "table").style("height", "100%").style("width", "100%");
3380
- d.append("div").style("display", "table-cell").style("text-align", "center").style("vertical-align", "middle").text(e), t(e, u, r, i, o, s, c, l), a(d, c);
3377
+ i(n, "byTspan");
3378
+ function r(e, t, r, i, a, s, c, l) {
3379
+ let u = t.append("switch"), d = u.append("foreignObject").attr("x", r).attr("y", i).attr("width", a).attr("height", s).append("xhtml:div").style("display", "table").style("height", "100%").style("width", "100%");
3380
+ d.append("div").style("display", "table-cell").style("text-align", "center").style("vertical-align", "middle").text(e), n(e, u, r, i, a, s, c, l), o(d, c);
3381
3381
  }
3382
- n(r, "byFo");
3383
- async function i(e, n, r, i, o, s, l, u) {
3384
- let d = await g(e, x()), f = n.append("switch"), p = f.append("foreignObject").attr("x", r + o / 2 - d.width / 2).attr("y", i + s / 2 - d.height / 2).attr("width", d.width).attr("height", d.height).append("xhtml:div").style("height", "100%").style("width", "100%");
3385
- p.append("div").style("text-align", "center").style("vertical-align", "middle").html(await c(e, x())), t(e, f, r, i, o, s, l, u), a(p, l);
3382
+ i(r, "byFo");
3383
+ async function a(e, t, r, i, a, s, c, l) {
3384
+ let d = await v(e, C()), f = t.append("switch"), p = f.append("foreignObject").attr("x", r + a / 2 - d.width / 2).attr("y", i + s / 2 - d.height / 2).attr("width", d.width).attr("height", d.height).append("xhtml:div").style("height", "100%").style("width", "100%");
3385
+ p.append("div").style("text-align", "center").style("vertical-align", "middle").html(await u(e, C())), n(e, f, r, i, a, s, c, l), o(p, c);
3386
3386
  }
3387
- n(i, "byKatex");
3388
- function a(e, t) {
3387
+ i(a, "byKatex");
3388
+ function o(e, t) {
3389
3389
  for (let n in t) t.hasOwnProperty(n) && e.attr(n, t[n]);
3390
3390
  }
3391
- return n(a, "_setTextAttrs"), function(n, a = !1) {
3392
- return a ? i : n.textPlacement === "fo" ? r : n.textPlacement === "old" ? e : t;
3391
+ return i(o, "_setTextAttrs"), function(t, i = !1) {
3392
+ return i ? a : t.textPlacement === "fo" ? r : t.textPlacement === "old" ? e : n;
3393
3393
  };
3394
3394
  })(), Pe = /* @__PURE__ */ (function() {
3395
- function e(e, t, n, r, a, o, s) {
3396
- i(t.append("text").attr("x", n).attr("y", r).style("text-anchor", "start").text(e), s);
3395
+ function e(e, t, n, i, a, o, s) {
3396
+ r(t.append("text").attr("x", n).attr("y", i).style("text-anchor", "start").text(e), s);
3397
3397
  }
3398
- n(e, "byText");
3399
- function t(e, t, n, r, a, o, s, c) {
3400
- let { actorFontSize: l, actorFontFamily: u, actorFontWeight: d } = c, f = e.split(y.lineBreakRegex);
3398
+ i(e, "byText");
3399
+ function t(e, t, n, i, a, o, s, c) {
3400
+ let { actorFontSize: l, actorFontFamily: u, actorFontWeight: d } = c, f = e.split(x.lineBreakRegex);
3401
3401
  for (let e = 0; e < f.length; e++) {
3402
- let a = e * l - l * (f.length - 1) / 2, c = t.append("text").attr("x", n).attr("y", r).style("text-anchor", "start").style("font-size", l).style("font-weight", d).style("font-family", u);
3403
- c.append("tspan").attr("x", n).attr("dy", a).text(f[e]), c.attr("y", r + o / 2).attr("dominant-baseline", "central").attr("alignment-baseline", "central"), i(c, s);
3402
+ let a = e * l - l * (f.length - 1) / 2, c = t.append("text").attr("x", n).attr("y", i).style("text-anchor", "start").style("font-size", l).style("font-weight", d).style("font-family", u);
3403
+ c.append("tspan").attr("x", n).attr("dy", a).text(f[e]), c.attr("y", i + o / 2).attr("dominant-baseline", "central").attr("alignment-baseline", "central"), r(c, s);
3404
3404
  }
3405
3405
  }
3406
- n(t, "byTspan");
3407
- function r(e, n, r, a, o, s, c, l) {
3408
- let u = n.append("switch"), d = u.append("foreignObject").attr("x", r).attr("y", a).attr("width", o).attr("height", s).append("xhtml:div").style("display", "table").style("height", "100%").style("width", "100%");
3409
- d.append("div").style("display", "table-cell").style("text-align", "center").style("vertical-align", "middle").text(e), t(e, u, r, a, o, s, c, l), i(d, c);
3406
+ i(t, "byTspan");
3407
+ function n(e, n, i, a, o, s, c, l) {
3408
+ let u = n.append("switch"), d = u.append("foreignObject").attr("x", i).attr("y", a).attr("width", o).attr("height", s).append("xhtml:div").style("display", "table").style("height", "100%").style("width", "100%");
3409
+ d.append("div").style("display", "table-cell").style("text-align", "center").style("vertical-align", "middle").text(e), t(e, u, i, a, o, s, c, l), r(d, c);
3410
3410
  }
3411
- n(r, "byFo");
3412
- function i(e, t) {
3411
+ i(n, "byFo");
3412
+ function r(e, t) {
3413
3413
  for (let n in t) t.hasOwnProperty(n) && e.attr(n, t[n]);
3414
3414
  }
3415
- return n(i, "_setTextAttrs"), function(n) {
3416
- return n.textPlacement === "fo" ? r : n.textPlacement === "old" ? e : t;
3415
+ return i(r, "_setTextAttrs"), function(r) {
3416
+ return r.textPlacement === "fo" ? n : r.textPlacement === "old" ? e : t;
3417
3417
  };
3418
3418
  })(), Y = {
3419
3419
  drawRect: oe,
@@ -3438,16 +3438,16 @@ var L = I, ee = {
3438
3438
  fixLifeLineHeights: de,
3439
3439
  sanitizeUrl: P.sanitizeUrl,
3440
3440
  insertDropShadow: je,
3441
- insertSolidTopArrowHead: /* @__PURE__ */ n(function(e, t) {
3441
+ insertSolidTopArrowHead: /* @__PURE__ */ i(function(e, t) {
3442
3442
  e.append("defs").append("marker").attr("id", t + "-solidTopArrowHead").attr("refX", 7.9).attr("refY", 7.25).attr("markerUnits", "userSpaceOnUse").attr("markerWidth", 12).attr("markerHeight", 12).attr("orient", "auto-start-reverse").append("path").attr("d", "M 0 0 L 10 8 L 0 8 z");
3443
3443
  }, "insertSolidTopArrowHead"),
3444
- insertSolidBottomArrowHead: /* @__PURE__ */ n(function(e, t) {
3444
+ insertSolidBottomArrowHead: /* @__PURE__ */ i(function(e, t) {
3445
3445
  e.append("defs").append("marker").attr("id", t + "-solidBottomArrowHead").attr("refX", 7.9).attr("refY", .75).attr("markerUnits", "userSpaceOnUse").attr("markerWidth", 12).attr("markerHeight", 12).attr("orient", "auto-start-reverse").append("path").attr("d", "M 0 0 L 10 0 L 0 8 z");
3446
3446
  }, "insertSolidBottomArrowHead"),
3447
- insertStickTopArrowHead: /* @__PURE__ */ n(function(e, t) {
3447
+ insertStickTopArrowHead: /* @__PURE__ */ i(function(e, t) {
3448
3448
  e.append("defs").append("marker").attr("id", t + "-stickTopArrowHead").attr("refX", 7.5).attr("refY", 7).attr("markerUnits", "userSpaceOnUse").attr("markerWidth", 12).attr("markerHeight", 12).attr("orient", "auto-start-reverse").append("path").attr("d", "M 0 0 L 7 7").attr("stroke", "black").attr("stroke-width", 1.5).attr("fill", "none");
3449
3449
  }, "insertStickTopArrowHead"),
3450
- insertStickBottomArrowHead: /* @__PURE__ */ n(function(e, t) {
3450
+ insertStickBottomArrowHead: /* @__PURE__ */ i(function(e, t) {
3451
3451
  e.append("defs").append("marker").attr("id", t + "-stickBottomArrowHead").attr("refX", 7.5).attr("refY", 0).attr("markerUnits", "userSpaceOnUse").attr("markerWidth", 12).attr("markerHeight", 12).attr("orient", "auto-start-reverse").append("path").attr("d", "M 0 7 L 7 0").attr("stroke", "black").attr("stroke-width", 1.5).attr("fill", "none");
3452
3452
  }, "insertStickBottomArrowHead")
3453
3453
  }, X = {}, Z = {
@@ -3461,37 +3461,37 @@ var L = I, ee = {
3461
3461
  sequenceItems: [],
3462
3462
  activations: [],
3463
3463
  models: {
3464
- getHeight: /* @__PURE__ */ n(function() {
3464
+ getHeight: /* @__PURE__ */ i(function() {
3465
3465
  return Math.max.apply(null, this.actors.length === 0 ? [0] : this.actors.map((e) => e.height || 0)) + (this.loops.length === 0 ? 0 : this.loops.map((e) => e.height || 0).reduce((e, t) => e + t)) + (this.messages.length === 0 ? 0 : this.messages.map((e) => e.height || 0).reduce((e, t) => e + t)) + (this.notes.length === 0 ? 0 : this.notes.map((e) => e.height || 0).reduce((e, t) => e + t));
3466
3466
  }, "getHeight"),
3467
- clear: /* @__PURE__ */ n(function() {
3467
+ clear: /* @__PURE__ */ i(function() {
3468
3468
  this.actors = [], this.boxes = [], this.loops = [], this.messages = [], this.notes = [];
3469
3469
  }, "clear"),
3470
- addBox: /* @__PURE__ */ n(function(e) {
3470
+ addBox: /* @__PURE__ */ i(function(e) {
3471
3471
  this.boxes.push(e);
3472
3472
  }, "addBox"),
3473
- addActor: /* @__PURE__ */ n(function(e) {
3473
+ addActor: /* @__PURE__ */ i(function(e) {
3474
3474
  this.actors.push(e);
3475
3475
  }, "addActor"),
3476
- addLoop: /* @__PURE__ */ n(function(e) {
3476
+ addLoop: /* @__PURE__ */ i(function(e) {
3477
3477
  this.loops.push(e);
3478
3478
  }, "addLoop"),
3479
- addMessage: /* @__PURE__ */ n(function(e) {
3479
+ addMessage: /* @__PURE__ */ i(function(e) {
3480
3480
  this.messages.push(e);
3481
3481
  }, "addMessage"),
3482
- addNote: /* @__PURE__ */ n(function(e) {
3482
+ addNote: /* @__PURE__ */ i(function(e) {
3483
3483
  this.notes.push(e);
3484
3484
  }, "addNote"),
3485
- lastActor: /* @__PURE__ */ n(function() {
3485
+ lastActor: /* @__PURE__ */ i(function() {
3486
3486
  return this.actors[this.actors.length - 1];
3487
3487
  }, "lastActor"),
3488
- lastLoop: /* @__PURE__ */ n(function() {
3488
+ lastLoop: /* @__PURE__ */ i(function() {
3489
3489
  return this.loops[this.loops.length - 1];
3490
3490
  }, "lastLoop"),
3491
- lastMessage: /* @__PURE__ */ n(function() {
3491
+ lastMessage: /* @__PURE__ */ i(function() {
3492
3492
  return this.messages[this.messages.length - 1];
3493
3493
  }, "lastMessage"),
3494
- lastNote: /* @__PURE__ */ n(function() {
3494
+ lastNote: /* @__PURE__ */ i(function() {
3495
3495
  return this.notes[this.notes.length - 1];
3496
3496
  }, "lastNote"),
3497
3497
  actors: [],
@@ -3500,33 +3500,33 @@ var L = I, ee = {
3500
3500
  messages: [],
3501
3501
  notes: []
3502
3502
  },
3503
- init: /* @__PURE__ */ n(function() {
3503
+ init: /* @__PURE__ */ i(function() {
3504
3504
  this.sequenceItems = [], this.activations = [], this.models.clear(), this.data = {
3505
3505
  startx: void 0,
3506
3506
  stopx: void 0,
3507
3507
  starty: void 0,
3508
3508
  stopy: void 0
3509
- }, this.verticalPos = 0, We(m());
3509
+ }, this.verticalPos = 0, We(g());
3510
3510
  }, "init"),
3511
- updateVal: /* @__PURE__ */ n(function(e, t, n, r) {
3511
+ updateVal: /* @__PURE__ */ i(function(e, t, n, r) {
3512
3512
  e[t] === void 0 ? e[t] = n : e[t] = r(n, e[t]);
3513
3513
  }, "updateVal"),
3514
- updateBounds: /* @__PURE__ */ n(function(e, t, r, i) {
3514
+ updateBounds: /* @__PURE__ */ i(function(e, t, n, r) {
3515
3515
  let a = this, o = 0;
3516
3516
  function s(s) {
3517
- return /* @__PURE__ */ n(function(n) {
3517
+ return /* @__PURE__ */ i(function(i) {
3518
3518
  o++;
3519
3519
  let c = a.sequenceItems.length - o + 1;
3520
- a.updateVal(n, "starty", t - c * X.boxMargin, Math.min), a.updateVal(n, "stopy", i + c * X.boxMargin, Math.max), a.updateVal(Z.data, "startx", e - c * X.boxMargin, Math.min), a.updateVal(Z.data, "stopx", r + c * X.boxMargin, Math.max), s !== "activation" && (a.updateVal(n, "startx", e - c * X.boxMargin, Math.min), a.updateVal(n, "stopx", r + c * X.boxMargin, Math.max), a.updateVal(Z.data, "starty", t - c * X.boxMargin, Math.min), a.updateVal(Z.data, "stopy", i + c * X.boxMargin, Math.max));
3520
+ a.updateVal(i, "starty", t - c * X.boxMargin, Math.min), a.updateVal(i, "stopy", r + c * X.boxMargin, Math.max), a.updateVal(Z.data, "startx", e - c * X.boxMargin, Math.min), a.updateVal(Z.data, "stopx", n + c * X.boxMargin, Math.max), s !== "activation" && (a.updateVal(i, "startx", e - c * X.boxMargin, Math.min), a.updateVal(i, "stopx", n + c * X.boxMargin, Math.max), a.updateVal(Z.data, "starty", t - c * X.boxMargin, Math.min), a.updateVal(Z.data, "stopy", r + c * X.boxMargin, Math.max));
3521
3521
  }, "updateItemBounds");
3522
3522
  }
3523
- n(s, "updateFn"), this.sequenceItems.forEach(s()), this.activations.forEach(s("activation"));
3523
+ i(s, "updateFn"), this.sequenceItems.forEach(s()), this.activations.forEach(s("activation"));
3524
3524
  }, "updateBounds"),
3525
- insert: /* @__PURE__ */ n(function(e, t, n, r) {
3526
- let i = y.getMin(e, n), a = y.getMax(e, n), o = y.getMin(t, r), s = y.getMax(t, r);
3525
+ insert: /* @__PURE__ */ i(function(e, t, n, r) {
3526
+ let i = x.getMin(e, n), a = x.getMax(e, n), o = x.getMin(t, r), s = x.getMax(t, r);
3527
3527
  this.updateVal(Z.data, "startx", i, Math.min), this.updateVal(Z.data, "starty", o, Math.min), this.updateVal(Z.data, "stopx", a, Math.max), this.updateVal(Z.data, "stopy", s, Math.max), this.updateBounds(i, o, a, s);
3528
3528
  }, "insert"),
3529
- newActivation: /* @__PURE__ */ n(function(e, t, n) {
3529
+ newActivation: /* @__PURE__ */ i(function(e, t, n) {
3530
3530
  let r = n.get(e.from), i = Ge(e.from).length || 0, a = r.x + r.width / 2 + (i - 1) * X.activationWidth / 2;
3531
3531
  this.activations.push({
3532
3532
  startx: a,
@@ -3537,13 +3537,13 @@ var L = I, ee = {
3537
3537
  anchored: Y.anchorElement(t)
3538
3538
  });
3539
3539
  }, "newActivation"),
3540
- endActivation: /* @__PURE__ */ n(function(e) {
3540
+ endActivation: /* @__PURE__ */ i(function(e) {
3541
3541
  let t = this.activations.map(function(e) {
3542
3542
  return e.actor;
3543
3543
  }).lastIndexOf(e.from);
3544
3544
  return this.activations.splice(t, 1)[0];
3545
3545
  }, "endActivation"),
3546
- createLoop: /* @__PURE__ */ n(function(e = {
3546
+ createLoop: /* @__PURE__ */ i(function(e = {
3547
3547
  message: void 0,
3548
3548
  wrap: !1,
3549
3549
  width: void 0
@@ -3560,45 +3560,45 @@ var L = I, ee = {
3560
3560
  fill: t
3561
3561
  };
3562
3562
  }, "createLoop"),
3563
- newLoop: /* @__PURE__ */ n(function(e = {
3563
+ newLoop: /* @__PURE__ */ i(function(e = {
3564
3564
  message: void 0,
3565
3565
  wrap: !1,
3566
3566
  width: void 0
3567
3567
  }, t) {
3568
3568
  this.sequenceItems.push(this.createLoop(e, t));
3569
3569
  }, "newLoop"),
3570
- endLoop: /* @__PURE__ */ n(function() {
3570
+ endLoop: /* @__PURE__ */ i(function() {
3571
3571
  return this.sequenceItems.pop();
3572
3572
  }, "endLoop"),
3573
- isLoopOverlap: /* @__PURE__ */ n(function() {
3573
+ isLoopOverlap: /* @__PURE__ */ i(function() {
3574
3574
  return this.sequenceItems.length ? this.sequenceItems[this.sequenceItems.length - 1].overlap : !1;
3575
3575
  }, "isLoopOverlap"),
3576
- addSectionToLoop: /* @__PURE__ */ n(function(e) {
3576
+ addSectionToLoop: /* @__PURE__ */ i(function(e) {
3577
3577
  let t = this.sequenceItems.pop();
3578
3578
  t.sections = t.sections || [], t.sectionTitles = t.sectionTitles || [], t.sections.push({
3579
3579
  y: Z.getVerticalPos(),
3580
3580
  height: 0
3581
3581
  }), t.sectionTitles.push(e), this.sequenceItems.push(t);
3582
3582
  }, "addSectionToLoop"),
3583
- saveVerticalPos: /* @__PURE__ */ n(function() {
3583
+ saveVerticalPos: /* @__PURE__ */ i(function() {
3584
3584
  this.isLoopOverlap() && (this.savedVerticalPos = this.verticalPos);
3585
3585
  }, "saveVerticalPos"),
3586
- resetVerticalPos: /* @__PURE__ */ n(function() {
3586
+ resetVerticalPos: /* @__PURE__ */ i(function() {
3587
3587
  this.isLoopOverlap() && (this.verticalPos = this.savedVerticalPos);
3588
3588
  }, "resetVerticalPos"),
3589
- bumpVerticalPos: /* @__PURE__ */ n(function(e) {
3590
- this.verticalPos += e, this.data.stopy = y.getMax(this.data.stopy, this.verticalPos);
3589
+ bumpVerticalPos: /* @__PURE__ */ i(function(e) {
3590
+ this.verticalPos += e, this.data.stopy = x.getMax(this.data.stopy, this.verticalPos);
3591
3591
  }, "bumpVerticalPos"),
3592
- getVerticalPos: /* @__PURE__ */ n(function() {
3592
+ getVerticalPos: /* @__PURE__ */ i(function() {
3593
3593
  return this.verticalPos;
3594
3594
  }, "getVerticalPos"),
3595
- getBounds: /* @__PURE__ */ n(function() {
3595
+ getBounds: /* @__PURE__ */ i(function() {
3596
3596
  return {
3597
3597
  bounds: this.data,
3598
3598
  models: this.models
3599
3599
  };
3600
3600
  }, "getBounds")
3601
- }, Fe = /* @__PURE__ */ n(async function(e, t, n) {
3601
+ }, Fe = /* @__PURE__ */ i(async function(e, t, n) {
3602
3602
  Z.bumpVerticalPos(X.boxMargin), t.height = X.boxMargin, t.starty = Z.getVerticalPos();
3603
3603
  let r = A();
3604
3604
  r.x = t.startx, r.y = t.starty, r.width = t.width || X.width, r.class = "note";
@@ -3606,15 +3606,15 @@ var L = I, ee = {
3606
3606
  i.attr("data-et", "note"), i.attr("data-id", "i" + n);
3607
3607
  let a = Y.drawRect(i, r), o = E();
3608
3608
  o.x = t.startx, o.y = t.starty, o.width = r.width, o.dy = "1em", o.text = t.message, o.class = "noteText", o.fontFamily = X.noteFontFamily, o.fontSize = X.noteFontSize, o.fontWeight = X.noteFontWeight, o.anchor = X.noteAlign, o.textMargin = X.noteMargin, o.valign = "center";
3609
- let s = _(o.text) ? await le(i, o) : W(i, o), c = Math.round(s.map((e) => (e._groups || e)[0][0].getBBox().height).reduce((e, t) => e + t));
3609
+ let s = y(o.text) ? await le(i, o) : W(i, o), c = Math.round(s.map((e) => (e._groups || e)[0][0].getBBox().height).reduce((e, t) => e + t));
3610
3610
  a.attr("height", c + 2 * X.noteMargin), t.height += c + 2 * X.noteMargin, Z.bumpVerticalPos(c + 2 * X.noteMargin), t.stopy = t.starty + c + 2 * X.noteMargin, t.stopx = t.startx + r.width, Z.insert(t.startx, t.starty, t.stopx, t.stopy), Z.models.addNote(t);
3611
- }, "drawNote"), Ie = /* @__PURE__ */ n(function(e, t, r, i, a, o, s) {
3612
- let c = i.db.getActors(), l = c.get(t.from), u = c.get(t.to), d = r.sequenceVisible, f = l.x + l.width / 2, p = u.x + u.width / 2, m = f <= p, h = rt(t, i), g = e.append("g"), _ = 16.5, v = /* @__PURE__ */ n((e, t) => {
3611
+ }, "drawNote"), Ie = /* @__PURE__ */ i(function(e, t, n, r, a, o, s) {
3612
+ let c = r.db.getActors(), l = c.get(t.from), u = c.get(t.to), d = n.sequenceVisible, f = l.x + l.width / 2, p = u.x + u.width / 2, m = f <= p, h = rt(t, r), g = e.append("g"), _ = 16.5, v = /* @__PURE__ */ i((e, t) => {
3613
3613
  let n = e ? _ : -_;
3614
3614
  return t ? -n : n;
3615
- }, "getCircleOffset"), y = /* @__PURE__ */ n((e) => {
3615
+ }, "getCircleOffset"), y = /* @__PURE__ */ i((e) => {
3616
3616
  g.append("circle").attr("cx", e).attr("cy", s).attr("r", 5).attr("width", 10).attr("height", 10);
3617
- }, "drawCircle"), { CENTRAL_CONNECTION: b, CENTRAL_CONNECTION_REVERSE: x, CENTRAL_CONNECTION_DUAL: S } = i.db.LINETYPE;
3617
+ }, "drawCircle"), { CENTRAL_CONNECTION: b, CENTRAL_CONNECTION_REVERSE: x, CENTRAL_CONNECTION_DUAL: S } = r.db.LINETYPE;
3618
3618
  if (d) switch (t.centralConnection) {
3619
3619
  case b:
3620
3620
  h && (p += v(m, !0));
@@ -3637,63 +3637,63 @@ var L = I, ee = {
3637
3637
  y(f), y(p);
3638
3638
  break;
3639
3639
  }
3640
- }, "drawCentralConnection"), Q = /* @__PURE__ */ n((e) => ({
3640
+ }, "drawCentralConnection"), Q = /* @__PURE__ */ i((e) => ({
3641
3641
  fontFamily: e.messageFontFamily,
3642
3642
  fontSize: e.messageFontSize,
3643
3643
  fontWeight: e.messageFontWeight
3644
- }), "messageFont"), Le = /* @__PURE__ */ n((e) => ({
3644
+ }), "messageFont"), Le = /* @__PURE__ */ i((e) => ({
3645
3645
  fontFamily: e.noteFontFamily,
3646
3646
  fontSize: e.noteFontSize,
3647
3647
  fontWeight: e.noteFontWeight
3648
- }), "noteFont"), Re = /* @__PURE__ */ n((e) => ({
3648
+ }), "noteFont"), Re = /* @__PURE__ */ i((e) => ({
3649
3649
  fontFamily: e.actorFontFamily,
3650
3650
  fontSize: e.actorFontSize,
3651
3651
  fontWeight: e.actorFontWeight
3652
3652
  }), "actorFont");
3653
3653
  async function ze(e, t) {
3654
3654
  Z.bumpVerticalPos(10);
3655
- let { startx: n, stopx: r, message: i } = t, a = y.splitBreaks(i).length, o = _(i), s = o ? await g(i, m()) : w.calculateTextDimensions(i, Q(X));
3656
- if (!o) {
3657
- let e = s.height / a;
3655
+ let { startx: r, stopx: i, message: a } = t, o = x.splitBreaks(a).length, s = y(a), c = s ? await v(a, g()) : n.calculateTextDimensions(a, Q(X));
3656
+ if (!s) {
3657
+ let e = c.height / o;
3658
3658
  t.height += e, Z.bumpVerticalPos(e);
3659
3659
  }
3660
- let c, l = s.height - 10, u = s.width;
3661
- if (n === r) {
3662
- c = Z.getVerticalPos() + l, X.rightAngles || (l += X.boxMargin, c = Z.getVerticalPos() + l), l += 30;
3663
- let e = y.getMax(u / 2, X.width / 2);
3664
- Z.insert(n - e, Z.getVerticalPos() - 10 + l, r + e, Z.getVerticalPos() + 30 + l);
3665
- } else l += X.boxMargin, c = Z.getVerticalPos() + l, Z.insert(n, c - 10, r, c);
3666
- return Z.bumpVerticalPos(l), t.height += l, t.stopy = t.starty + t.height, Z.insert(t.fromBounds, t.starty, t.toBounds, t.stopy), c;
3660
+ let l, u = c.height - 10, d = c.width;
3661
+ if (r === i) {
3662
+ l = Z.getVerticalPos() + u, X.rightAngles || (u += X.boxMargin, l = Z.getVerticalPos() + u), u += 30;
3663
+ let e = x.getMax(d / 2, X.width / 2);
3664
+ Z.insert(r - e, Z.getVerticalPos() - 10 + u, i + e, Z.getVerticalPos() + 30 + u);
3665
+ } else u += X.boxMargin, l = Z.getVerticalPos() + u, Z.insert(r, l - 10, i, l);
3666
+ return Z.bumpVerticalPos(u), t.height += u, t.stopy = t.starty + t.height, Z.insert(t.fromBounds, t.starty, t.toBounds, t.stopy), l;
3667
3667
  }
3668
- n(ze, "boundMessage");
3669
- var Be = /* @__PURE__ */ n(async function(e, t, n, r, i, a) {
3670
- let { startx: s, stopx: c, starty: l, message: u, type: d, sequenceIndex: f, sequenceVisible: p } = t, m = w.calculateTextDimensions(u, Q(X)), h = E();
3671
- h.x = s, h.y = l + 10, h.width = c - s, h.class = "messageText", h.dy = "1em", h.text = u, h.fontFamily = X.messageFontFamily, h.fontSize = X.messageFontSize, h.fontWeight = X.messageFontWeight, h.anchor = X.messageAlign, h.valign = "center", h.textMargin = X.wrapPadding, h.tspan = !1, _(h.text) ? await le(e, h, {
3668
+ i(ze, "boundMessage");
3669
+ var Be = /* @__PURE__ */ i(async function(e, t, r, i, a, o) {
3670
+ let { startx: s, stopx: l, starty: u, message: d, type: f, sequenceIndex: p, sequenceVisible: m } = t, h = n.calculateTextDimensions(d, Q(X)), g = E();
3671
+ g.x = s, g.y = u + 10, g.width = l - s, g.class = "messageText", g.dy = "1em", g.text = d, g.fontFamily = X.messageFontFamily, g.fontSize = X.messageFontSize, g.fontWeight = X.messageFontWeight, g.anchor = X.messageAlign, g.valign = "center", g.textMargin = X.wrapPadding, g.tspan = !1, y(g.text) ? await le(e, g, {
3672
3672
  startx: s,
3673
- stopx: c,
3674
- starty: n
3675
- }) : W(e, h);
3676
- let g = m.width, v;
3677
- if (s === c) {
3678
- let a = p || X.showSequenceNumbers, o = rt(i, r), l = it(i, r), u = s + (a && (o || l) ? 10 : 0);
3679
- v = X.rightAngles ? e.append("path").attr("d", `M ${u},${n} H ${s + y.getMax(X.width / 2, g / 2)} V ${n + 25} H ${s}`) : e.append("path").attr("d", "M " + u + "," + n + " C " + (u + 60) + "," + (n - 10) + " " + (s + 60) + "," + (n + 30) + " " + s + "," + (n + 20)), tt(i, r) && Ie(e, i, t, r, s, c, n);
3680
- } else v = e.append("line"), v.attr("x1", s), v.attr("y1", n), v.attr("x2", c), v.attr("y2", n), tt(i, r) && Ie(e, i, t, r, s, c, n);
3681
- d === r.db.LINETYPE.DOTTED || d === r.db.LINETYPE.DOTTED_CROSS || d === r.db.LINETYPE.DOTTED_POINT || d === r.db.LINETYPE.DOTTED_OPEN || d === r.db.LINETYPE.BIDIRECTIONAL_DOTTED || d === r.db.LINETYPE.SOLID_TOP_DOTTED || d === r.db.LINETYPE.SOLID_BOTTOM_DOTTED || d === r.db.LINETYPE.STICK_TOP_DOTTED || d === r.db.LINETYPE.STICK_BOTTOM_DOTTED || d === r.db.LINETYPE.SOLID_ARROW_TOP_REVERSE_DOTTED || d === r.db.LINETYPE.SOLID_ARROW_BOTTOM_REVERSE_DOTTED || d === r.db.LINETYPE.STICK_ARROW_TOP_REVERSE_DOTTED || d === r.db.LINETYPE.STICK_ARROW_BOTTOM_REVERSE_DOTTED ? (v.style("stroke-dasharray", "3, 3"), v.attr("class", "messageLine1")) : v.attr("class", "messageLine0"), v.attr("data-et", "message"), v.attr("data-id", "i" + t.id), v.attr("data-from", t.from), v.attr("data-to", t.to);
3673
+ stopx: l,
3674
+ starty: r
3675
+ }) : W(e, g);
3676
+ let _ = h.width, v;
3677
+ if (s === l) {
3678
+ let n = m || X.showSequenceNumbers, o = rt(a, i), c = it(a, i), u = s + (n && (o || c) ? 10 : 0);
3679
+ v = X.rightAngles ? e.append("path").attr("d", `M ${u},${r} H ${s + x.getMax(X.width / 2, _ / 2)} V ${r + 25} H ${s}`) : e.append("path").attr("d", "M " + u + "," + r + " C " + (u + 60) + "," + (r - 10) + " " + (s + 60) + "," + (r + 30) + " " + s + "," + (r + 20)), tt(a, i) && Ie(e, a, t, i, s, l, r);
3680
+ } else v = e.append("line"), v.attr("x1", s), v.attr("y1", r), v.attr("x2", l), v.attr("y2", r), tt(a, i) && Ie(e, a, t, i, s, l, r);
3681
+ f === i.db.LINETYPE.DOTTED || f === i.db.LINETYPE.DOTTED_CROSS || f === i.db.LINETYPE.DOTTED_POINT || f === i.db.LINETYPE.DOTTED_OPEN || f === i.db.LINETYPE.BIDIRECTIONAL_DOTTED || f === i.db.LINETYPE.SOLID_TOP_DOTTED || f === i.db.LINETYPE.SOLID_BOTTOM_DOTTED || f === i.db.LINETYPE.STICK_TOP_DOTTED || f === i.db.LINETYPE.STICK_BOTTOM_DOTTED || f === i.db.LINETYPE.SOLID_ARROW_TOP_REVERSE_DOTTED || f === i.db.LINETYPE.SOLID_ARROW_BOTTOM_REVERSE_DOTTED || f === i.db.LINETYPE.STICK_ARROW_TOP_REVERSE_DOTTED || f === i.db.LINETYPE.STICK_ARROW_BOTTOM_REVERSE_DOTTED ? (v.style("stroke-dasharray", "3, 3"), v.attr("class", "messageLine1")) : v.attr("class", "messageLine0"), v.attr("data-et", "message"), v.attr("data-id", "i" + t.id), v.attr("data-from", t.from), v.attr("data-to", t.to);
3682
3682
  let b = "";
3683
- if (X.arrowMarkerAbsolute && (b = o(!0)), v.attr("stroke-width", 2), v.attr("stroke", "none"), v.style("fill", "none"), (d === r.db.LINETYPE.SOLID_TOP || d === r.db.LINETYPE.SOLID_TOP_DOTTED) && v.attr("marker-end", "url(" + b + "#" + a + "-solidTopArrowHead)"), (d === r.db.LINETYPE.SOLID_BOTTOM || d === r.db.LINETYPE.SOLID_BOTTOM_DOTTED) && v.attr("marker-end", "url(" + b + "#" + a + "-solidBottomArrowHead)"), (d === r.db.LINETYPE.STICK_TOP || d === r.db.LINETYPE.STICK_TOP_DOTTED) && v.attr("marker-end", "url(" + b + "#" + a + "-stickTopArrowHead)"), (d === r.db.LINETYPE.STICK_BOTTOM || d === r.db.LINETYPE.STICK_BOTTOM_DOTTED) && v.attr("marker-end", "url(" + b + "#" + a + "-stickBottomArrowHead)"), (d === r.db.LINETYPE.SOLID_ARROW_TOP_REVERSE || d === r.db.LINETYPE.SOLID_ARROW_TOP_REVERSE_DOTTED) && v.attr("marker-start", "url(" + b + "#" + a + "-solidBottomArrowHead)"), (d === r.db.LINETYPE.SOLID_ARROW_BOTTOM_REVERSE || d === r.db.LINETYPE.SOLID_ARROW_BOTTOM_REVERSE_DOTTED) && v.attr("marker-start", "url(" + b + "#" + a + "-solidTopArrowHead)"), (d === r.db.LINETYPE.STICK_ARROW_TOP_REVERSE || d === r.db.LINETYPE.STICK_ARROW_TOP_REVERSE_DOTTED) && v.attr("marker-start", "url(" + b + "#" + a + "-stickBottomArrowHead)"), (d === r.db.LINETYPE.STICK_ARROW_BOTTOM_REVERSE || d === r.db.LINETYPE.STICK_ARROW_BOTTOM_REVERSE_DOTTED) && v.attr("marker-start", "url(" + b + "#" + a + "-stickTopArrowHead)"), (d === r.db.LINETYPE.SOLID || d === r.db.LINETYPE.DOTTED) && v.attr("marker-end", "url(" + b + "#" + a + "-arrowhead)"), (d === r.db.LINETYPE.BIDIRECTIONAL_SOLID || d === r.db.LINETYPE.BIDIRECTIONAL_DOTTED) && (v.attr("marker-start", "url(" + b + "#" + a + "-arrowhead)"), v.attr("marker-end", "url(" + b + "#" + a + "-arrowhead)")), (d === r.db.LINETYPE.SOLID_POINT || d === r.db.LINETYPE.DOTTED_POINT) && v.attr("marker-end", "url(" + b + "#" + a + "-filled-head)"), (d === r.db.LINETYPE.SOLID_CROSS || d === r.db.LINETYPE.DOTTED_CROSS) && v.attr("marker-end", "url(" + b + "#" + a + "-crosshead)"), p || X.showSequenceNumbers) {
3684
- let o = d === r.db.LINETYPE.BIDIRECTIONAL_SOLID || d === r.db.LINETYPE.BIDIRECTIONAL_DOTTED, l = d === r.db.LINETYPE.SOLID_ARROW_TOP_REVERSE || d === r.db.LINETYPE.SOLID_ARROW_TOP_REVERSE_DOTTED || d === r.db.LINETYPE.SOLID_ARROW_BOTTOM_REVERSE || d === r.db.LINETYPE.SOLID_ARROW_BOTTOM_REVERSE_DOTTED || d === r.db.LINETYPE.STICK_ARROW_TOP_REVERSE || d === r.db.LINETYPE.STICK_ARROW_TOP_REVERSE_DOTTED || d === r.db.LINETYPE.STICK_ARROW_BOTTOM_REVERSE || d === r.db.LINETYPE.STICK_ARROW_BOTTOM_REVERSE_DOTTED, u = tt(i, r), p = s, m = c;
3685
- o ? (s < c ? p = s + 12 : (p = s - 6 + (u ? -5 : 0), p += (i == null ? void 0 : i.centralConnection) === r.db.LINETYPE.CENTRAL_CONNECTION_DUAL || (i == null ? void 0 : i.centralConnection) === r.db.LINETYPE.CENTRAL_CONNECTION_REVERSE ? -7.5 : 0), v.attr("x1", p)) : l ? (c > s ? m = c - 12 : (m = c - 6, p += (i == null ? void 0 : i.centralConnection) === r.db.LINETYPE.CENTRAL_CONNECTION_DUAL || (i == null ? void 0 : i.centralConnection) === r.db.LINETYPE.CENTRAL_CONNECTION_REVERSE ? -7.5 : 0), m += u ? 15 : 0, v.attr("x2", m), v.attr("x1", p)) : v.attr("x1", s + 6);
3686
- let h = 0, g = s === c, _ = s <= c;
3687
- h = g ? t.fromBounds + 1 : l ? _ ? t.toBounds - 1 : t.fromBounds + 1 : _ ? t.fromBounds + 1 : t.toBounds - 1, e.append("line").attr("x1", h).attr("y1", n).attr("x2", h).attr("y2", n).attr("stroke-width", 0).attr("marker-start", "url(" + b + "#" + a + "-sequencenumber)"), e.append("text").attr("x", h).attr("y", n + 4).attr("font-family", "sans-serif").attr("font-size", "12px").attr("text-anchor", "middle").attr("class", "sequenceNumber").text(f);
3683
+ if (X.arrowMarkerAbsolute && (b = c(!0)), v.attr("stroke-width", 2), v.attr("stroke", "none"), v.style("fill", "none"), (f === i.db.LINETYPE.SOLID_TOP || f === i.db.LINETYPE.SOLID_TOP_DOTTED) && v.attr("marker-end", "url(" + b + "#" + o + "-solidTopArrowHead)"), (f === i.db.LINETYPE.SOLID_BOTTOM || f === i.db.LINETYPE.SOLID_BOTTOM_DOTTED) && v.attr("marker-end", "url(" + b + "#" + o + "-solidBottomArrowHead)"), (f === i.db.LINETYPE.STICK_TOP || f === i.db.LINETYPE.STICK_TOP_DOTTED) && v.attr("marker-end", "url(" + b + "#" + o + "-stickTopArrowHead)"), (f === i.db.LINETYPE.STICK_BOTTOM || f === i.db.LINETYPE.STICK_BOTTOM_DOTTED) && v.attr("marker-end", "url(" + b + "#" + o + "-stickBottomArrowHead)"), (f === i.db.LINETYPE.SOLID_ARROW_TOP_REVERSE || f === i.db.LINETYPE.SOLID_ARROW_TOP_REVERSE_DOTTED) && v.attr("marker-start", "url(" + b + "#" + o + "-solidBottomArrowHead)"), (f === i.db.LINETYPE.SOLID_ARROW_BOTTOM_REVERSE || f === i.db.LINETYPE.SOLID_ARROW_BOTTOM_REVERSE_DOTTED) && v.attr("marker-start", "url(" + b + "#" + o + "-solidTopArrowHead)"), (f === i.db.LINETYPE.STICK_ARROW_TOP_REVERSE || f === i.db.LINETYPE.STICK_ARROW_TOP_REVERSE_DOTTED) && v.attr("marker-start", "url(" + b + "#" + o + "-stickBottomArrowHead)"), (f === i.db.LINETYPE.STICK_ARROW_BOTTOM_REVERSE || f === i.db.LINETYPE.STICK_ARROW_BOTTOM_REVERSE_DOTTED) && v.attr("marker-start", "url(" + b + "#" + o + "-stickTopArrowHead)"), (f === i.db.LINETYPE.SOLID || f === i.db.LINETYPE.DOTTED) && v.attr("marker-end", "url(" + b + "#" + o + "-arrowhead)"), (f === i.db.LINETYPE.BIDIRECTIONAL_SOLID || f === i.db.LINETYPE.BIDIRECTIONAL_DOTTED) && (v.attr("marker-start", "url(" + b + "#" + o + "-arrowhead)"), v.attr("marker-end", "url(" + b + "#" + o + "-arrowhead)")), (f === i.db.LINETYPE.SOLID_POINT || f === i.db.LINETYPE.DOTTED_POINT) && v.attr("marker-end", "url(" + b + "#" + o + "-filled-head)"), (f === i.db.LINETYPE.SOLID_CROSS || f === i.db.LINETYPE.DOTTED_CROSS) && v.attr("marker-end", "url(" + b + "#" + o + "-crosshead)"), m || X.showSequenceNumbers) {
3684
+ let n = f === i.db.LINETYPE.BIDIRECTIONAL_SOLID || f === i.db.LINETYPE.BIDIRECTIONAL_DOTTED, c = f === i.db.LINETYPE.SOLID_ARROW_TOP_REVERSE || f === i.db.LINETYPE.SOLID_ARROW_TOP_REVERSE_DOTTED || f === i.db.LINETYPE.SOLID_ARROW_BOTTOM_REVERSE || f === i.db.LINETYPE.SOLID_ARROW_BOTTOM_REVERSE_DOTTED || f === i.db.LINETYPE.STICK_ARROW_TOP_REVERSE || f === i.db.LINETYPE.STICK_ARROW_TOP_REVERSE_DOTTED || f === i.db.LINETYPE.STICK_ARROW_BOTTOM_REVERSE || f === i.db.LINETYPE.STICK_ARROW_BOTTOM_REVERSE_DOTTED, u = tt(a, i), d = s, m = l;
3685
+ n ? (s < l ? d = s + 12 : (d = s - 6 + (u ? -5 : 0), d += (a == null ? void 0 : a.centralConnection) === i.db.LINETYPE.CENTRAL_CONNECTION_DUAL || (a == null ? void 0 : a.centralConnection) === i.db.LINETYPE.CENTRAL_CONNECTION_REVERSE ? -7.5 : 0), v.attr("x1", d)) : c ? (l > s ? m = l - 12 : (m = l - 6, d += (a == null ? void 0 : a.centralConnection) === i.db.LINETYPE.CENTRAL_CONNECTION_DUAL || (a == null ? void 0 : a.centralConnection) === i.db.LINETYPE.CENTRAL_CONNECTION_REVERSE ? -7.5 : 0), m += u ? 15 : 0, v.attr("x2", m), v.attr("x1", d)) : v.attr("x1", s + 6);
3686
+ let h = 0, g = s === l, _ = s <= l;
3687
+ h = g ? t.fromBounds + 1 : c ? _ ? t.toBounds - 1 : t.fromBounds + 1 : _ ? t.fromBounds + 1 : t.toBounds - 1, e.append("line").attr("x1", h).attr("y1", r).attr("x2", h).attr("y2", r).attr("stroke-width", 0).attr("marker-start", "url(" + b + "#" + o + "-sequencenumber)"), e.append("text").attr("x", h).attr("y", r + 4).attr("font-family", "sans-serif").attr("font-size", "12px").attr("text-anchor", "middle").attr("class", "sequenceNumber").text(p);
3688
3688
  }
3689
- }, "drawMessage"), Ve = /* @__PURE__ */ n(function(e, t, n, r, i, a, o) {
3689
+ }, "drawMessage"), Ve = /* @__PURE__ */ i(function(e, t, n, r, i, a, o) {
3690
3690
  let s = 0, c = 0, l, u = 0;
3691
3691
  for (let e of r) {
3692
3692
  let r = t.get(e), a = r.box;
3693
- l && l != a && (o || Z.models.addBox(l), c += X.boxMargin + l.margin), a && a != l && (o || (a.x = s + c, a.y = i), c += a.margin), r.width = y.getMax(r.width || X.width, X.width), r.height = y.getMax(r.height || X.height, X.height), r.margin = r.margin || X.actorMargin, u = y.getMax(u, r.height), n.get(r.name) && (c += r.width / 2), r.x = s + c, r.starty = Z.getVerticalPos(), Z.insert(r.x, i, r.x + r.width, r.height), s += r.width + c, r.box && (r.box.width = s + a.margin - r.box.x), c = r.margin, l = r.box, Z.models.addActor(r);
3693
+ l && l != a && (o || Z.models.addBox(l), c += X.boxMargin + l.margin), a && a != l && (o || (a.x = s + c, a.y = i), c += a.margin), r.width = x.getMax(r.width || X.width, X.width), r.height = x.getMax(r.height || X.height, X.height), r.margin = r.margin || X.actorMargin, u = x.getMax(u, r.height), n.get(r.name) && (c += r.width / 2), r.x = s + c, r.starty = Z.getVerticalPos(), Z.insert(r.x, i, r.x + r.width, r.height), s += r.width + c, r.box && (r.box.width = s + a.margin - r.box.x), c = r.margin, l = r.box, Z.models.addActor(r);
3694
3694
  }
3695
3695
  l && !o && Z.models.addBox(l), Z.bumpVerticalPos(u);
3696
- }, "addActorRenderingData"), He = /* @__PURE__ */ n(async function(e, t, n, r, i, a, o) {
3696
+ }, "addActorRenderingData"), He = /* @__PURE__ */ i(async function(e, t, n, r, i, a, o) {
3697
3697
  if (r) {
3698
3698
  let r = 0;
3699
3699
  Z.bumpVerticalPos(X.boxMargin * 2);
@@ -3701,14 +3701,14 @@ var Be = /* @__PURE__ */ n(async function(e, t, n, r, i, a) {
3701
3701
  let n = t.get(s);
3702
3702
  n.stopy || (n.stopy = Z.getVerticalPos());
3703
3703
  let c = await Y.drawActor(e, n, X, !0, i, a, o);
3704
- r = y.getMax(r, c);
3704
+ r = x.getMax(r, c);
3705
3705
  }
3706
3706
  Z.bumpVerticalPos(r + X.boxMargin);
3707
3707
  } else for (let r of n) {
3708
3708
  let n = t.get(r);
3709
3709
  await Y.drawActor(e, n, X, !1, i, a, o);
3710
3710
  }
3711
- }, "drawActors"), Ue = /* @__PURE__ */ n(function(e, t, n, r) {
3711
+ }, "drawActors"), Ue = /* @__PURE__ */ i(function(e, t, n, r) {
3712
3712
  let i = 0, a = 0;
3713
3713
  for (let o of n) {
3714
3714
  let n = t.get(o), s = Xe(n), c = Y.drawPopup(e, n, s, X, X.forceMenus, r);
@@ -3718,68 +3718,68 @@ var Be = /* @__PURE__ */ n(async function(e, t, n, r, i, a) {
3718
3718
  maxHeight: i,
3719
3719
  maxWidth: a
3720
3720
  };
3721
- }, "drawActorsPopup"), We = /* @__PURE__ */ n(function(e) {
3722
- v(X, e), e.fontFamily && (X.actorFontFamily = X.noteFontFamily = X.messageFontFamily = e.fontFamily), e.fontSize && (X.actorFontSize = X.noteFontSize = X.messageFontSize = e.fontSize), e.fontWeight && (X.actorFontWeight = X.noteFontWeight = X.messageFontWeight = e.fontWeight);
3723
- }, "setConf"), Ge = /* @__PURE__ */ n(function(e) {
3721
+ }, "drawActorsPopup"), We = /* @__PURE__ */ i(function(e) {
3722
+ b(X, e), e.fontFamily && (X.actorFontFamily = X.noteFontFamily = X.messageFontFamily = e.fontFamily), e.fontSize && (X.actorFontSize = X.noteFontSize = X.messageFontSize = e.fontSize), e.fontWeight && (X.actorFontWeight = X.noteFontWeight = X.messageFontWeight = e.fontWeight);
3723
+ }, "setConf"), Ge = /* @__PURE__ */ i(function(e) {
3724
3724
  return Z.activations.filter(function(t) {
3725
3725
  return t.actor === e;
3726
3726
  });
3727
- }, "actorActivations"), Ke = /* @__PURE__ */ n(function(e, t) {
3727
+ }, "actorActivations"), Ke = /* @__PURE__ */ i(function(e, t) {
3728
3728
  let n = t.get(e), r = Ge(e);
3729
3729
  return [r.reduce(function(e, t) {
3730
- return y.getMin(e, t.startx);
3730
+ return x.getMin(e, t.startx);
3731
3731
  }, n.x + n.width / 2 - 1), r.reduce(function(e, t) {
3732
- return y.getMax(e, t.stopx);
3732
+ return x.getMax(e, t.stopx);
3733
3733
  }, n.x + n.width / 2 + 1)];
3734
3734
  }, "activationBounds");
3735
- function $(e, n, r, i, a) {
3736
- Z.bumpVerticalPos(r);
3737
- let o = i;
3738
- if (n.id && n.message && e[n.id]) {
3739
- let r = e[n.id].width, a = Q(X);
3740
- n.message = w.wrapLabel(`[${n.message}]`, r - 2 * X.wrapPadding, a), n.width = r, n.wrap = !0;
3741
- let s = w.calculateTextDimensions(n.message, a), c = y.getMax(s.height, X.labelBoxHeight);
3742
- o = i + c, t.debug(`${c} - ${n.message}`);
3735
+ function $(e, t, i, a, o) {
3736
+ Z.bumpVerticalPos(i);
3737
+ let s = a;
3738
+ if (t.id && t.message && e[t.id]) {
3739
+ let i = e[t.id].width, o = Q(X);
3740
+ t.message = n.wrapLabel(`[${t.message}]`, i - 2 * X.wrapPadding, o), t.width = i, t.wrap = !0;
3741
+ let c = n.calculateTextDimensions(t.message, o), l = x.getMax(c.height, X.labelBoxHeight);
3742
+ s = a + l, r.debug(`${l} - ${t.message}`);
3743
3743
  }
3744
- a(n), Z.bumpVerticalPos(o);
3744
+ o(t), Z.bumpVerticalPos(s);
3745
3745
  }
3746
- n($, "adjustLoopHeightForWrap");
3747
- function qe(e, t, r, i, a, o, s) {
3746
+ i($, "adjustLoopHeightForWrap");
3747
+ function qe(e, t, n, r, a, o, s) {
3748
3748
  function c(n, r) {
3749
3749
  n.x < a.get(e.from).x ? (Z.insert(t.stopx - r, t.starty, t.startx, t.stopy + n.height / 2 + X.noteMargin), t.stopx += r) : (Z.insert(t.startx, t.starty, t.stopx + r, t.stopy + n.height / 2 + X.noteMargin), t.stopx -= r);
3750
3750
  }
3751
- n(c, "receiverAdjustment");
3751
+ i(c, "receiverAdjustment");
3752
3752
  function l(n, r) {
3753
3753
  n.x < a.get(e.to).x ? (Z.insert(t.startx - r, t.starty, t.stopx, t.stopy + n.height / 2 + X.noteMargin), t.startx += r) : (Z.insert(t.stopx, t.starty, t.startx + r, t.stopy + n.height / 2 + X.noteMargin), t.startx -= r);
3754
3754
  }
3755
- n(l, "senderAdjustment");
3755
+ i(l, "senderAdjustment");
3756
3756
  let u = [
3757
3757
  R.ACTOR,
3758
3758
  R.CONTROL,
3759
3759
  R.ENTITY,
3760
3760
  R.DATABASE
3761
3761
  ];
3762
- if (o.get(e.to) == i) {
3762
+ if (o.get(e.to) == r) {
3763
3763
  let t = a.get(e.to);
3764
- c(t, u.includes(t.type) ? z / 2 + 3 : t.width / 2 + 3), t.starty = r - t.height / 2, Z.bumpVerticalPos(t.height / 2);
3765
- } else if (s.get(e.from) == i) {
3764
+ c(t, u.includes(t.type) ? z / 2 + 3 : t.width / 2 + 3), t.starty = n - t.height / 2, Z.bumpVerticalPos(t.height / 2);
3765
+ } else if (s.get(e.from) == r) {
3766
3766
  let t = a.get(e.from);
3767
- X.mirrorActors && l(t, u.includes(t.type) ? z / 2 : t.width / 2), t.stopy = r - t.height / 2, Z.bumpVerticalPos(t.height / 2);
3768
- } else if (s.get(e.to) == i) {
3767
+ X.mirrorActors && l(t, u.includes(t.type) ? z / 2 : t.width / 2), t.stopy = n - t.height / 2, Z.bumpVerticalPos(t.height / 2);
3768
+ } else if (s.get(e.to) == r) {
3769
3769
  let t = a.get(e.to);
3770
- X.mirrorActors && c(t, u.includes(t.type) ? z / 2 + 3 : t.width / 2 + 3), t.stopy = r - t.height / 2, Z.bumpVerticalPos(t.height / 2);
3770
+ X.mirrorActors && c(t, u.includes(t.type) ? z / 2 + 3 : t.width / 2 + 3), t.stopy = n - t.height / 2, Z.bumpVerticalPos(t.height / 2);
3771
3771
  }
3772
3772
  }
3773
- n(qe, "adjustCreatedDestroyedData");
3774
- var Je = /* @__PURE__ */ n(async function(e, i, a, o) {
3775
- let { securityLevel: s, sequence: c, look: l } = m();
3773
+ i(qe, "adjustCreatedDestroyedData");
3774
+ var Je = /* @__PURE__ */ i(async function(e, t, n, o) {
3775
+ let { securityLevel: s, sequence: c, look: l } = g();
3776
3776
  X = c;
3777
3777
  let u;
3778
- s === "sandbox" && (u = r("#i" + i));
3779
- let d = r(s === "sandbox" ? u.nodes()[0].contentDocument.body : "body"), f = s === "sandbox" ? u.nodes()[0].contentDocument : document;
3780
- Z.init(), t.debug(o.db);
3781
- let p = s === "sandbox" ? d.select(`[id="${i}"]`) : r(`[id="${i}"]`), g = o.db.getActors(), _ = o.db.getCreatedActors(), v = o.db.getDestroyedActors(), y = o.db.getBoxes(), b = o.db.getActorKeys(), x = o.db.getMessages(), S = o.db.getDiagramTitle(), C = o.db.hasAtLeastOneBox(), w = o.db.hasAtLeastOneBoxWithTitle(), T = await Ye(g, x, o);
3782
- if (X.height = await Ze(g, T, y), Y.insertComputerIcon(p, i), Y.insertDatabaseIcon(p, i), Y.insertClockIcon(p, i), C && (Z.bumpVerticalPos(X.boxMargin), w && Z.bumpVerticalPos(y[0].textMaxHeight)), X.hideUnusedParticipants === !0) {
3778
+ s === "sandbox" && (u = a("#i" + t));
3779
+ let d = a(s === "sandbox" ? u.nodes()[0].contentDocument.body : "body"), f = s === "sandbox" ? u.nodes()[0].contentDocument : document;
3780
+ Z.init(), r.debug(o.db);
3781
+ let p = s === "sandbox" ? d.select(`[id="${t}"]`) : a(`[id="${t}"]`), m = o.db.getActors(), h = o.db.getCreatedActors(), v = o.db.getDestroyedActors(), y = o.db.getBoxes(), b = o.db.getActorKeys(), x = o.db.getMessages(), S = o.db.getDiagramTitle(), C = o.db.hasAtLeastOneBox(), w = o.db.hasAtLeastOneBoxWithTitle(), T = await Ye(m, x, o);
3782
+ if (X.height = await Ze(m, T, y), Y.insertComputerIcon(p, t), Y.insertDatabaseIcon(p, t), Y.insertClockIcon(p, t), C && (Z.bumpVerticalPos(X.boxMargin), w && Z.bumpVerticalPos(y[0].textMaxHeight)), X.hideUnusedParticipants === !0) {
3783
3783
  let e = /* @__PURE__ */ new Set();
3784
3784
  x.forEach((t) => {
3785
3785
  e.add(t.from), e.add(t.to);
@@ -3787,31 +3787,31 @@ var Je = /* @__PURE__ */ n(async function(e, i, a, o) {
3787
3787
  }
3788
3788
  let E = new Map(b.map((e, t) => {
3789
3789
  var n, r;
3790
- return [(n = (r = g.get(e)) == null ? void 0 : r.name) == null ? e : n, t];
3790
+ return [(n = (r = m.get(e)) == null ? void 0 : r.name) == null ? e : n, t];
3791
3791
  }));
3792
- Ve(p, g, _, b, 0, x, !1);
3793
- let D = await ot(x, g, T, o);
3794
- Y.insertArrowHead(p, i), Y.insertArrowCrossHead(p, i), Y.insertArrowFilledHead(p, i), Y.insertSequenceNumber(p, i), Y.insertSolidTopArrowHead(p, i), Y.insertSolidBottomArrowHead(p, i), Y.insertStickTopArrowHead(p, i), Y.insertStickBottomArrowHead(p, i), l === "neo" && Y.insertDropShadow(p, X);
3792
+ Ve(p, m, h, b, 0, x, !1);
3793
+ let D = await ot(x, m, T, o);
3794
+ Y.insertArrowHead(p, t), Y.insertArrowCrossHead(p, t), Y.insertArrowFilledHead(p, t), Y.insertSequenceNumber(p, t), Y.insertSolidTopArrowHead(p, t), Y.insertSolidBottomArrowHead(p, t), Y.insertStickTopArrowHead(p, t), Y.insertStickBottomArrowHead(p, t), l === "neo" && Y.insertDropShadow(p, X);
3795
3795
  function O(e, t) {
3796
3796
  let n = Z.endActivation(e);
3797
3797
  n.starty + 18 > t && (n.starty = t - 6, t += 12), Y.drawActivation(p, n, t, X, Ge(e.from).length, o, E), Z.insert(n.startx, t - 10, n.stopx, t);
3798
3798
  }
3799
- n(O, "activeEnd");
3799
+ i(O, "activeEnd");
3800
3800
  let k = 1, A = 1, j = [], M = [], N = 0;
3801
3801
  for (let e of x) {
3802
- let n, r, i;
3802
+ let t, n, i;
3803
3803
  switch (e.type) {
3804
3804
  case o.db.LINETYPE.NOTE:
3805
- Z.resetVerticalPos(), r = e.noteModel, await Fe(p, r, e.id);
3805
+ Z.resetVerticalPos(), n = e.noteModel, await Fe(p, n, e.id);
3806
3806
  break;
3807
3807
  case o.db.LINETYPE.ACTIVE_START:
3808
- Z.newActivation(e, p, g);
3808
+ Z.newActivation(e, p, m);
3809
3809
  break;
3810
3810
  case o.db.LINETYPE.CENTRAL_CONNECTION:
3811
- Z.newActivation(e, p, g);
3811
+ Z.newActivation(e, p, m);
3812
3812
  break;
3813
3813
  case o.db.LINETYPE.CENTRAL_CONNECTION_REVERSE:
3814
- Z.newActivation(e, p, g);
3814
+ Z.newActivation(e, p, m);
3815
3815
  break;
3816
3816
  case o.db.LINETYPE.ACTIVE_END:
3817
3817
  O(e, Z.getVerticalPos());
@@ -3820,19 +3820,19 @@ var Je = /* @__PURE__ */ n(async function(e, i, a, o) {
3820
3820
  $(D, e, X.boxMargin, X.boxMargin + X.boxTextMargin, (e) => Z.newLoop(e));
3821
3821
  break;
3822
3822
  case o.db.LINETYPE.LOOP_END:
3823
- n = Z.endLoop(), await Y.drawLoop(p, n, "loop", X, e), Z.bumpVerticalPos(n.stopy - Z.getVerticalPos()), Z.models.addLoop(n);
3823
+ t = Z.endLoop(), await Y.drawLoop(p, t, "loop", X, e), Z.bumpVerticalPos(t.stopy - Z.getVerticalPos()), Z.models.addLoop(t);
3824
3824
  break;
3825
3825
  case o.db.LINETYPE.RECT_START:
3826
3826
  $(D, e, X.boxMargin, X.boxMargin, (e) => Z.newLoop(void 0, e.message));
3827
3827
  break;
3828
3828
  case o.db.LINETYPE.RECT_END:
3829
- n = Z.endLoop(), M.push(n), Z.models.addLoop(n), Z.bumpVerticalPos(n.stopy - Z.getVerticalPos());
3829
+ t = Z.endLoop(), M.push(t), Z.models.addLoop(t), Z.bumpVerticalPos(t.stopy - Z.getVerticalPos());
3830
3830
  break;
3831
3831
  case o.db.LINETYPE.OPT_START:
3832
3832
  $(D, e, X.boxMargin, X.boxMargin + X.boxTextMargin, (e) => Z.newLoop(e));
3833
3833
  break;
3834
3834
  case o.db.LINETYPE.OPT_END:
3835
- n = Z.endLoop(), await Y.drawLoop(p, n, "opt", X, e), Z.bumpVerticalPos(n.stopy - Z.getVerticalPos()), Z.models.addLoop(n);
3835
+ t = Z.endLoop(), await Y.drawLoop(p, t, "opt", X, e), Z.bumpVerticalPos(t.stopy - Z.getVerticalPos()), Z.models.addLoop(t);
3836
3836
  break;
3837
3837
  case o.db.LINETYPE.ALT_START:
3838
3838
  $(D, e, X.boxMargin, X.boxMargin + X.boxTextMargin, (e) => Z.newLoop(e));
@@ -3841,7 +3841,7 @@ var Je = /* @__PURE__ */ n(async function(e, i, a, o) {
3841
3841
  $(D, e, X.boxMargin + X.boxTextMargin, X.boxMargin, (e) => Z.addSectionToLoop(e));
3842
3842
  break;
3843
3843
  case o.db.LINETYPE.ALT_END:
3844
- n = Z.endLoop(), await Y.drawLoop(p, n, "alt", X, e), Z.bumpVerticalPos(n.stopy - Z.getVerticalPos()), Z.models.addLoop(n);
3844
+ t = Z.endLoop(), await Y.drawLoop(p, t, "alt", X, e), Z.bumpVerticalPos(t.stopy - Z.getVerticalPos()), Z.models.addLoop(t);
3845
3845
  break;
3846
3846
  case o.db.LINETYPE.PAR_START:
3847
3847
  case o.db.LINETYPE.PAR_OVER_START:
@@ -3851,7 +3851,7 @@ var Je = /* @__PURE__ */ n(async function(e, i, a, o) {
3851
3851
  $(D, e, X.boxMargin + X.boxTextMargin, X.boxMargin, (e) => Z.addSectionToLoop(e));
3852
3852
  break;
3853
3853
  case o.db.LINETYPE.PAR_END:
3854
- n = Z.endLoop(), await Y.drawLoop(p, n, "par", X, e), Z.bumpVerticalPos(n.stopy - Z.getVerticalPos()), Z.models.addLoop(n);
3854
+ t = Z.endLoop(), await Y.drawLoop(p, t, "par", X, e), Z.bumpVerticalPos(t.stopy - Z.getVerticalPos()), Z.models.addLoop(t);
3855
3855
  break;
3856
3856
  case o.db.LINETYPE.AUTONUMBER:
3857
3857
  k = e.message.start || k, A = e.message.step || A, e.message.visible ? o.db.enableSequenceNumbers() : o.db.disableSequenceNumbers();
@@ -3863,24 +3863,24 @@ var Je = /* @__PURE__ */ n(async function(e, i, a, o) {
3863
3863
  $(D, e, X.boxMargin + X.boxTextMargin, X.boxMargin, (e) => Z.addSectionToLoop(e));
3864
3864
  break;
3865
3865
  case o.db.LINETYPE.CRITICAL_END:
3866
- n = Z.endLoop(), await Y.drawLoop(p, n, "critical", X, e), Z.bumpVerticalPos(n.stopy - Z.getVerticalPos()), Z.models.addLoop(n);
3866
+ t = Z.endLoop(), await Y.drawLoop(p, t, "critical", X, e), Z.bumpVerticalPos(t.stopy - Z.getVerticalPos()), Z.models.addLoop(t);
3867
3867
  break;
3868
3868
  case o.db.LINETYPE.BREAK_START:
3869
3869
  $(D, e, X.boxMargin, X.boxMargin + X.boxTextMargin, (e) => Z.newLoop(e));
3870
3870
  break;
3871
3871
  case o.db.LINETYPE.BREAK_END:
3872
- n = Z.endLoop(), await Y.drawLoop(p, n, "break", X, e), Z.bumpVerticalPos(n.stopy - Z.getVerticalPos()), Z.models.addLoop(n);
3872
+ t = Z.endLoop(), await Y.drawLoop(p, t, "break", X, e), Z.bumpVerticalPos(t.stopy - Z.getVerticalPos()), Z.models.addLoop(t);
3873
3873
  break;
3874
3874
  default: try {
3875
3875
  i = e.msgModel, i.starty = Z.getVerticalPos(), i.sequenceIndex = k, i.sequenceVisible = o.db.showSequenceNumbers(), i.id = e.id, i.from = e.from, i.to = e.to;
3876
3876
  let t = await ze(p, i);
3877
- qe(e, i, t, N, g, _, v), j.push({
3877
+ qe(e, i, t, N, m, h, v), j.push({
3878
3878
  messageModel: i,
3879
3879
  lineStartY: t,
3880
3880
  msg: e
3881
3881
  }), Z.models.addMessage(i);
3882
3882
  } catch (e) {
3883
- t.error("error while drawing message", e);
3883
+ r.error("error while drawing message", e);
3884
3884
  }
3885
3885
  }
3886
3886
  [
@@ -3912,16 +3912,16 @@ var Je = /* @__PURE__ */ n(async function(e, i, a, o) {
3912
3912
  o.db.LINETYPE.BIDIRECTIONAL_DOTTED
3913
3913
  ].includes(e.type) && (k += A), N++;
3914
3914
  }
3915
- t.debug("createdActors", _), t.debug("destroyedActors", v), await He(p, g, b, !1, i, o, E);
3916
- for (let e of j) await Be(p, e.messageModel, e.lineStartY, o, e.msg, i);
3917
- X.mirrorActors && await He(p, g, b, !0, i, o, E), M.forEach((e) => Y.drawBackgroundRect(p, e)), de(p, g, b, X);
3915
+ r.debug("createdActors", h), r.debug("destroyedActors", v), await He(p, m, b, !1, t, o, E);
3916
+ for (let e of j) await Be(p, e.messageModel, e.lineStartY, o, e.msg, t);
3917
+ X.mirrorActors && await He(p, m, b, !0, t, o, E), M.forEach((e) => Y.drawBackgroundRect(p, e)), de(p, m, b, X);
3918
3918
  for (let e of Z.models.boxes) {
3919
3919
  e.height = Z.getVerticalPos() - e.y, Z.insert(e.x, e.y, e.x + e.width, e.height);
3920
3920
  let t = X.boxMargin * 2;
3921
3921
  e.startx = e.x - t, e.starty = e.y - t * .25, e.stopx = e.startx + e.width + 2 * t, e.stopy = e.starty + e.height + t * .75, e.stroke = "rgb(0,0,0, 0.5)", Y.drawBox(p, e, X);
3922
3922
  }
3923
3923
  C && Z.bumpVerticalPos(X.boxMargin);
3924
- let P = Ue(p, g, b, f), { bounds: F } = Z.getBounds();
3924
+ let P = Ue(p, m, b, f), { bounds: F } = Z.getBounds();
3925
3925
  F.startx === void 0 && (F.startx = 0), F.starty === void 0 && (F.starty = 0), F.stopx === void 0 && (F.stopx = 0), F.stopy === void 0 && (F.stopy = 0);
3926
3926
  let I = F.stopy - F.starty;
3927
3927
  I < P.maxHeight && (I = P.maxHeight);
@@ -3930,36 +3930,36 @@ var Je = /* @__PURE__ */ n(async function(e, i, a, o) {
3930
3930
  let ee = F.stopx - F.startx;
3931
3931
  ee < P.maxWidth && (ee = P.maxWidth);
3932
3932
  let te = ee + 2 * X.diagramMarginX;
3933
- S && p.append("text").text(S).attr("x", (F.stopx - F.startx) / 2 - 2 * X.diagramMarginX).attr("y", -25), h(p, L, te, X.useMaxWidth);
3934
- let ne = S ? 40 : 0, R = g.size && l === "neo" ? 30 : 0;
3935
- p.attr("viewBox", F.startx - X.diagramMarginX + " -" + (X.diagramMarginY + ne) + " " + te + " " + (L + ne + R)), t.debug("models:", Z.models);
3933
+ S && p.append("text").text(S).attr("x", (F.stopx - F.startx) / 2 - 2 * X.diagramMarginX).attr("y", -25), _(p, L, te, X.useMaxWidth);
3934
+ let ne = S ? 40 : 0, R = m.size && l === "neo" ? 30 : 0;
3935
+ p.attr("viewBox", F.startx - X.diagramMarginX + " -" + (X.diagramMarginY + ne) + " " + te + " " + (L + ne + R)), r.debug("models:", Z.models);
3936
3936
  }, "draw");
3937
- async function Ye(e, n, r) {
3938
- let i = {};
3939
- for (let t of n) if (e.get(t.to) && e.get(t.from)) {
3940
- let n = e.get(t.to);
3941
- if (t.placement === r.db.PLACEMENT.LEFTOF && !n.prevActor || t.placement === r.db.PLACEMENT.RIGHTOF && !n.nextActor) continue;
3942
- let a = t.placement !== void 0, o = !a, s = a ? Le(X) : Q(X), c = t.wrap ? w.wrapLabel(t.message, X.width - 2 * X.wrapPadding, s) : t.message, l = (_(c) ? await g(t.message, m()) : w.calculateTextDimensions(c, s)).width + 2 * X.wrapPadding;
3943
- o && t.from === n.nextActor ? i[t.to] = y.getMax(i[t.to] || 0, l) : o && t.from === n.prevActor ? i[t.from] = y.getMax(i[t.from] || 0, l) : o && t.from === t.to ? (i[t.from] = y.getMax(i[t.from] || 0, l / 2), i[t.to] = y.getMax(i[t.to] || 0, l / 2)) : t.placement === r.db.PLACEMENT.RIGHTOF ? i[t.from] = y.getMax(i[t.from] || 0, l) : t.placement === r.db.PLACEMENT.LEFTOF ? i[n.prevActor] = y.getMax(i[n.prevActor] || 0, l) : t.placement === r.db.PLACEMENT.OVER && (n.prevActor && (i[n.prevActor] = y.getMax(i[n.prevActor] || 0, l / 2)), n.nextActor && (i[t.from] = y.getMax(i[t.from] || 0, l / 2)));
3937
+ async function Ye(e, t, i) {
3938
+ let a = {};
3939
+ for (let r of t) if (e.get(r.to) && e.get(r.from)) {
3940
+ let t = e.get(r.to);
3941
+ if (r.placement === i.db.PLACEMENT.LEFTOF && !t.prevActor || r.placement === i.db.PLACEMENT.RIGHTOF && !t.nextActor) continue;
3942
+ let o = r.placement !== void 0, s = !o, c = o ? Le(X) : Q(X), l = r.wrap ? n.wrapLabel(r.message, X.width - 2 * X.wrapPadding, c) : r.message, u = (y(l) ? await v(r.message, g()) : n.calculateTextDimensions(l, c)).width + 2 * X.wrapPadding;
3943
+ s && r.from === t.nextActor ? a[r.to] = x.getMax(a[r.to] || 0, u) : s && r.from === t.prevActor ? a[r.from] = x.getMax(a[r.from] || 0, u) : s && r.from === r.to ? (a[r.from] = x.getMax(a[r.from] || 0, u / 2), a[r.to] = x.getMax(a[r.to] || 0, u / 2)) : r.placement === i.db.PLACEMENT.RIGHTOF ? a[r.from] = x.getMax(a[r.from] || 0, u) : r.placement === i.db.PLACEMENT.LEFTOF ? a[t.prevActor] = x.getMax(a[t.prevActor] || 0, u) : r.placement === i.db.PLACEMENT.OVER && (t.prevActor && (a[t.prevActor] = x.getMax(a[t.prevActor] || 0, u / 2)), t.nextActor && (a[r.from] = x.getMax(a[r.from] || 0, u / 2)));
3944
3944
  }
3945
- return t.debug("maxMessageWidthPerActor:", i), i;
3945
+ return r.debug("maxMessageWidthPerActor:", a), a;
3946
3946
  }
3947
- n(Ye, "getMaxMessageWidthPerActor");
3948
- var Xe = /* @__PURE__ */ n(function(e) {
3949
- let t = 0, n = Re(X);
3950
- for (let r in e.links) {
3951
- let e = w.calculateTextDimensions(r, n).width + 2 * X.wrapPadding + 2 * X.boxMargin;
3947
+ i(Ye, "getMaxMessageWidthPerActor");
3948
+ var Xe = /* @__PURE__ */ i(function(e) {
3949
+ let t = 0, r = Re(X);
3950
+ for (let i in e.links) {
3951
+ let e = n.calculateTextDimensions(i, r).width + 2 * X.wrapPadding + 2 * X.boxMargin;
3952
3952
  t < e && (t = e);
3953
3953
  }
3954
3954
  return t;
3955
3955
  }, "getRequiredPopupWidth");
3956
- async function Ze(e, t, n) {
3957
- let r = 0;
3956
+ async function Ze(e, t, r) {
3957
+ let i = 0;
3958
3958
  for (let t of e.keys()) {
3959
- let n = e.get(t);
3960
- n.wrap && (n.description = w.wrapLabel(n.description, X.width - 2 * X.wrapPadding, Re(X)));
3961
- let i = _(n.description) ? await g(n.description, m()) : w.calculateTextDimensions(n.description, Re(X));
3962
- n.width = n.wrap ? X.width : y.getMax(X.width, i.width + 2 * X.wrapPadding), n.height = n.wrap ? y.getMax(i.height, X.height) : X.height, r = y.getMax(r, n.height);
3959
+ let r = e.get(t);
3960
+ r.wrap && (r.description = n.wrapLabel(r.description, X.width - 2 * X.wrapPadding, Re(X)));
3961
+ let a = y(r.description) ? await v(r.description, g()) : n.calculateTextDimensions(r.description, Re(X));
3962
+ r.width = r.wrap ? X.width : x.getMax(X.width, a.width + 2 * X.wrapPadding), r.height = r.wrap ? x.getMax(a.height, X.height) : X.height, i = x.getMax(i, r.height);
3963
3963
  }
3964
3964
  for (let n in t) {
3965
3965
  let r = e.get(n);
@@ -3967,48 +3967,48 @@ async function Ze(e, t, n) {
3967
3967
  let i = e.get(r.nextActor);
3968
3968
  if (!i) {
3969
3969
  let e = t[n] + X.actorMargin - r.width / 2;
3970
- r.margin = y.getMax(e, X.actorMargin);
3970
+ r.margin = x.getMax(e, X.actorMargin);
3971
3971
  continue;
3972
3972
  }
3973
3973
  let a = t[n] + X.actorMargin - r.width / 2 - i.width / 2;
3974
- r.margin = y.getMax(a, X.actorMargin);
3974
+ r.margin = x.getMax(a, X.actorMargin);
3975
3975
  }
3976
- let i = 0;
3977
- return n.forEach((t) => {
3978
- let n = Q(X), r = t.actorKeys.reduce((t, n) => t += e.get(n).width + (e.get(n).margin || 0), 0), a = X.boxMargin * 8;
3979
- r += a, r -= 2 * X.boxTextMargin, t.wrap && (t.name = w.wrapLabel(t.name, r - 2 * X.wrapPadding, n));
3980
- let o = w.calculateTextDimensions(t.name, n);
3981
- i = y.getMax(o.height, i);
3982
- let s = y.getMax(r, o.width + 2 * X.wrapPadding);
3983
- if (t.margin = X.boxTextMargin, r < s) {
3984
- let e = (s - r) / 2;
3976
+ let a = 0;
3977
+ return r.forEach((t) => {
3978
+ let r = Q(X), i = t.actorKeys.reduce((t, n) => t += e.get(n).width + (e.get(n).margin || 0), 0), o = X.boxMargin * 8;
3979
+ i += o, i -= 2 * X.boxTextMargin, t.wrap && (t.name = n.wrapLabel(t.name, i - 2 * X.wrapPadding, r));
3980
+ let s = n.calculateTextDimensions(t.name, r);
3981
+ a = x.getMax(s.height, a);
3982
+ let c = x.getMax(i, s.width + 2 * X.wrapPadding);
3983
+ if (t.margin = X.boxTextMargin, i < c) {
3984
+ let e = (c - i) / 2;
3985
3985
  t.margin += e;
3986
3986
  }
3987
- }), n.forEach((e) => e.textMaxHeight = i), y.getMax(r, X.height);
3987
+ }), r.forEach((e) => e.textMaxHeight = a), x.getMax(i, X.height);
3988
3988
  }
3989
- n(Ze, "calculateActorMargins");
3990
- var Qe = /* @__PURE__ */ n(async function(e, n, r) {
3991
- let i = n.get(e.from), a = n.get(e.to), o = i.x, s = a.x, c = e.wrap && e.message, l = _(e.message) ? await g(e.message, m()) : w.calculateTextDimensions(c ? w.wrapLabel(e.message, X.width, Le(X)) : e.message, Le(X)), u = {
3992
- width: c ? X.width : y.getMax(X.width, l.width + 2 * X.noteMargin),
3989
+ i(Ze, "calculateActorMargins");
3990
+ var Qe = /* @__PURE__ */ i(async function(e, t, i) {
3991
+ let a = t.get(e.from), o = t.get(e.to), s = a.x, c = o.x, l = e.wrap && e.message, u = y(e.message) ? await v(e.message, g()) : n.calculateTextDimensions(l ? n.wrapLabel(e.message, X.width, Le(X)) : e.message, Le(X)), d = {
3992
+ width: l ? X.width : x.getMax(X.width, u.width + 2 * X.noteMargin),
3993
3993
  height: 0,
3994
- startx: i.x,
3994
+ startx: a.x,
3995
3995
  stopx: 0,
3996
3996
  starty: 0,
3997
3997
  stopy: 0,
3998
3998
  message: e.message
3999
3999
  };
4000
- return e.placement === r.db.PLACEMENT.RIGHTOF ? (u.width = c ? y.getMax(X.width, l.width) : y.getMax(i.width / 2 + a.width / 2, l.width + 2 * X.noteMargin), u.startx = o + (i.width + X.actorMargin) / 2) : e.placement === r.db.PLACEMENT.LEFTOF ? (u.width = c ? y.getMax(X.width, l.width + 2 * X.noteMargin) : y.getMax(i.width / 2 + a.width / 2, l.width + 2 * X.noteMargin), u.startx = o - u.width + (i.width - X.actorMargin) / 2) : e.to === e.from ? (l = w.calculateTextDimensions(c ? w.wrapLabel(e.message, y.getMax(X.width, i.width), Le(X)) : e.message, Le(X)), u.width = c ? y.getMax(X.width, i.width) : y.getMax(i.width, X.width, l.width + 2 * X.noteMargin), u.startx = o + (i.width - u.width) / 2) : (u.width = Math.abs(o + i.width / 2 - (s + a.width / 2)) + X.actorMargin, u.startx = o < s ? o + i.width / 2 - X.actorMargin / 2 : s + a.width / 2 - X.actorMargin / 2), c && (u.message = w.wrapLabel(e.message, u.width - 2 * X.wrapPadding, Le(X))), t.debug(`NM:[${u.startx},${u.stopx},${u.starty},${u.stopy}:${u.width},${u.height}=${e.message}]`), u;
4001
- }, "buildNoteModel"), $e = 4, et = 6, tt = /* @__PURE__ */ n(function(e, t) {
4000
+ return e.placement === i.db.PLACEMENT.RIGHTOF ? (d.width = l ? x.getMax(X.width, u.width) : x.getMax(a.width / 2 + o.width / 2, u.width + 2 * X.noteMargin), d.startx = s + (a.width + X.actorMargin) / 2) : e.placement === i.db.PLACEMENT.LEFTOF ? (d.width = l ? x.getMax(X.width, u.width + 2 * X.noteMargin) : x.getMax(a.width / 2 + o.width / 2, u.width + 2 * X.noteMargin), d.startx = s - d.width + (a.width - X.actorMargin) / 2) : e.to === e.from ? (u = n.calculateTextDimensions(l ? n.wrapLabel(e.message, x.getMax(X.width, a.width), Le(X)) : e.message, Le(X)), d.width = l ? x.getMax(X.width, a.width) : x.getMax(a.width, X.width, u.width + 2 * X.noteMargin), d.startx = s + (a.width - d.width) / 2) : (d.width = Math.abs(s + a.width / 2 - (c + o.width / 2)) + X.actorMargin, d.startx = s < c ? s + a.width / 2 - X.actorMargin / 2 : c + o.width / 2 - X.actorMargin / 2), l && (d.message = n.wrapLabel(e.message, d.width - 2 * X.wrapPadding, Le(X))), r.debug(`NM:[${d.startx},${d.stopx},${d.starty},${d.stopy}:${d.width},${d.height}=${e.message}]`), d;
4001
+ }, "buildNoteModel"), $e = 4, et = 6, tt = /* @__PURE__ */ i(function(e, t) {
4002
4002
  let { CENTRAL_CONNECTION: n, CENTRAL_CONNECTION_REVERSE: r, CENTRAL_CONNECTION_DUAL: i } = t.db.LINETYPE;
4003
4003
  return [
4004
4004
  n,
4005
4005
  r,
4006
4006
  i
4007
4007
  ].includes(e.centralConnection);
4008
- }, "hasCentralConnection"), nt = /* @__PURE__ */ n(function(e, t, n) {
4008
+ }, "hasCentralConnection"), nt = /* @__PURE__ */ i(function(e, t, n) {
4009
4009
  let { CENTRAL_CONNECTION_REVERSE: r, CENTRAL_CONNECTION_DUAL: i, BIDIRECTIONAL_SOLID: a, BIDIRECTIONAL_DOTTED: o } = t.db.LINETYPE, s = 0;
4010
4010
  return (e.centralConnection === r || e.centralConnection === i) && (s += $e), (e.centralConnection === r || e.centralConnection === i) && (e.type === a || e.type === o) && (s += n ? 0 : -et), s;
4011
- }, "calculateCentralConnectionOffset"), rt = /* @__PURE__ */ n(function(e, t) {
4011
+ }, "calculateCentralConnectionOffset"), rt = /* @__PURE__ */ i(function(e, t) {
4012
4012
  let { SOLID_ARROW_TOP_REVERSE: n, SOLID_ARROW_TOP_REVERSE_DOTTED: r, SOLID_ARROW_BOTTOM_REVERSE: i, SOLID_ARROW_BOTTOM_REVERSE_DOTTED: a, STICK_ARROW_TOP_REVERSE: o, STICK_ARROW_TOP_REVERSE_DOTTED: s, STICK_ARROW_BOTTOM_REVERSE: c, STICK_ARROW_BOTTOM_REVERSE_DOTTED: l } = t.db.LINETYPE;
4013
4013
  return [
4014
4014
  n,
@@ -4020,11 +4020,11 @@ var Qe = /* @__PURE__ */ n(async function(e, n, r) {
4020
4020
  c,
4021
4021
  l
4022
4022
  ].includes(e.type);
4023
- }, "isReverseArrowType"), it = /* @__PURE__ */ n(function(e, t) {
4023
+ }, "isReverseArrowType"), it = /* @__PURE__ */ i(function(e, t) {
4024
4024
  let { BIDIRECTIONAL_SOLID: n, BIDIRECTIONAL_DOTTED: r } = t.db.LINETYPE;
4025
4025
  return [n, r].includes(e.type);
4026
- }, "isBidirectionalArrowType"), at = /* @__PURE__ */ n(function(e, t, r) {
4027
- let { look: i } = m();
4026
+ }, "isBidirectionalArrowType"), at = /* @__PURE__ */ i(function(e, t, r) {
4027
+ let { look: a } = g();
4028
4028
  if (![
4029
4029
  r.db.LINETYPE.SOLID_OPEN,
4030
4030
  r.db.LINETYPE.DOTTED_OPEN,
@@ -4053,10 +4053,10 @@ var Qe = /* @__PURE__ */ n(async function(e, n, r) {
4053
4053
  r.db.LINETYPE.BIDIRECTIONAL_SOLID,
4054
4054
  r.db.LINETYPE.BIDIRECTIONAL_DOTTED
4055
4055
  ].includes(e.type)) return {};
4056
- let [a, o] = Ke(e.from, t), [s, c] = Ke(e.to, t), l = a <= s, u = l ? o : a, d = l ? s : c;
4057
- i === "neo" && (e.type !== r.db.LINETYPE.SOLID_OPEN && (d += l ? -3 : 3), (e.type === r.db.LINETYPE.BIDIRECTIONAL_SOLID || e.type === r.db.LINETYPE.BIDIRECTIONAL_DOTTED) && (u += l ? 3 : -3)), u += nt(e, r, l);
4058
- let f = Math.abs(s - c) > 2, p = /* @__PURE__ */ n((e) => l ? -e : e, "adjustValue");
4059
- e.from === e.to ? d = u : (e.activate && !f && (d += p(X.activationWidth / 2 - 1)), [
4056
+ let [o, s] = Ke(e.from, t), [c, l] = Ke(e.to, t), u = o <= c, d = u ? s : o, f = u ? c : l;
4057
+ a === "neo" && (e.type !== r.db.LINETYPE.SOLID_OPEN && (f += u ? -3 : 3), (e.type === r.db.LINETYPE.BIDIRECTIONAL_SOLID || e.type === r.db.LINETYPE.BIDIRECTIONAL_DOTTED) && (d += u ? 3 : -3)), d += nt(e, r, u);
4058
+ let p = Math.abs(c - l) > 2, m = /* @__PURE__ */ i((e) => u ? -e : e, "adjustValue");
4059
+ e.from === e.to ? f = d : (e.activate && !p && (f += m(X.activationWidth / 2 - 1)), [
4060
4060
  r.db.LINETYPE.SOLID_OPEN,
4061
4061
  r.db.LINETYPE.DOTTED_OPEN,
4062
4062
  r.db.LINETYPE.STICK_TOP,
@@ -4071,27 +4071,27 @@ var Qe = /* @__PURE__ */ n(async function(e, n, r) {
4071
4071
  r.db.LINETYPE.STICK_ARROW_BOTTOM_REVERSE_DOTTED,
4072
4072
  r.db.LINETYPE.SOLID_ARROW_TOP_REVERSE,
4073
4073
  r.db.LINETYPE.SOLID_ARROW_BOTTOM_REVERSE
4074
- ].includes(e.type) || (d += p(3)), [
4074
+ ].includes(e.type) || (f += m(3)), [
4075
4075
  r.db.LINETYPE.BIDIRECTIONAL_SOLID,
4076
4076
  r.db.LINETYPE.BIDIRECTIONAL_DOTTED,
4077
4077
  r.db.LINETYPE.SOLID_ARROW_TOP_REVERSE_DOTTED,
4078
4078
  r.db.LINETYPE.SOLID_ARROW_BOTTOM_REVERSE_DOTTED,
4079
4079
  r.db.LINETYPE.SOLID_ARROW_TOP_REVERSE,
4080
4080
  r.db.LINETYPE.SOLID_ARROW_BOTTOM_REVERSE
4081
- ].includes(e.type) && (u -= p(3)));
4081
+ ].includes(e.type) && (d -= m(3)));
4082
4082
  let h = [
4083
- a,
4084
4083
  o,
4085
4084
  s,
4086
- c
4087
- ], g = Math.abs(u - d);
4088
- e.wrap && e.message && (e.message = w.wrapLabel(e.message, y.getMax(g + 2 * X.wrapPadding, X.width), Q(X)));
4089
- let _ = w.calculateTextDimensions(e.message, Q(X));
4085
+ c,
4086
+ l
4087
+ ], _ = Math.abs(d - f);
4088
+ e.wrap && e.message && (e.message = n.wrapLabel(e.message, x.getMax(_ + 2 * X.wrapPadding, X.width), Q(X)));
4089
+ let v = n.calculateTextDimensions(e.message, Q(X));
4090
4090
  return {
4091
- width: y.getMax(e.wrap ? 0 : _.width + 2 * X.wrapPadding, g + 2 * X.wrapPadding, X.width),
4091
+ width: x.getMax(e.wrap ? 0 : v.width + 2 * X.wrapPadding, _ + 2 * X.wrapPadding, X.width),
4092
4092
  height: 0,
4093
- startx: u,
4094
- stopx: d,
4093
+ startx: d,
4094
+ stopx: f,
4095
4095
  starty: 0,
4096
4096
  stopy: 0,
4097
4097
  message: e.message,
@@ -4100,10 +4100,10 @@ var Qe = /* @__PURE__ */ n(async function(e, n, r) {
4100
4100
  fromBounds: Math.min.apply(null, h),
4101
4101
  toBounds: Math.max.apply(null, h)
4102
4102
  };
4103
- }, "buildMessageModel"), ot = /* @__PURE__ */ n(async function(e, n, r, i) {
4103
+ }, "buildMessageModel"), ot = /* @__PURE__ */ i(async function(e, t, n, i) {
4104
4104
  let a = {}, o = [], s, c, l;
4105
- for (let t of e) {
4106
- switch (t.type) {
4105
+ for (let n of e) {
4106
+ switch (n.type) {
4107
4107
  case i.db.LINETYPE.LOOP_START:
4108
4108
  case i.db.LINETYPE.ALT_START:
4109
4109
  case i.db.LINETYPE.OPT_START:
@@ -4112,8 +4112,8 @@ var Qe = /* @__PURE__ */ n(async function(e, n, r) {
4112
4112
  case i.db.LINETYPE.CRITICAL_START:
4113
4113
  case i.db.LINETYPE.BREAK_START:
4114
4114
  o.push({
4115
- id: t.id,
4116
- msg: t.message,
4115
+ id: n.id,
4116
+ msg: n.message,
4117
4117
  from: 2 ** 53 - 1,
4118
4118
  to: -(2 ** 53 - 1),
4119
4119
  width: 0
@@ -4122,7 +4122,7 @@ var Qe = /* @__PURE__ */ n(async function(e, n, r) {
4122
4122
  case i.db.LINETYPE.ALT_ELSE:
4123
4123
  case i.db.LINETYPE.PAR_AND:
4124
4124
  case i.db.LINETYPE.CRITICAL_OPTION:
4125
- t.message && (s = o.pop(), a[s.id] = s, a[t.id] = s, o.push(s));
4125
+ n.message && (s = o.pop(), a[s.id] = s, a[n.id] = s, o.push(s));
4126
4126
  break;
4127
4127
  case i.db.LINETYPE.LOOP_END:
4128
4128
  case i.db.LINETYPE.ALT_END:
@@ -4134,10 +4134,10 @@ var Qe = /* @__PURE__ */ n(async function(e, n, r) {
4134
4134
  break;
4135
4135
  case i.db.LINETYPE.ACTIVE_START:
4136
4136
  {
4137
- let e = n.get(t.from ? t.from : t.to.actor), r = Ge(t.from ? t.from : t.to.actor).length, i = e.x + e.width / 2 + (r - 1) * X.activationWidth / 2, a = {
4137
+ let e = t.get(n.from ? n.from : n.to.actor), r = Ge(n.from ? n.from : n.to.actor).length, i = e.x + e.width / 2 + (r - 1) * X.activationWidth / 2, a = {
4138
4138
  startx: i,
4139
4139
  stopx: i + X.activationWidth,
4140
- actor: t.from,
4140
+ actor: n.from,
4141
4141
  enabled: !0
4142
4142
  };
4143
4143
  Z.activations.push(a);
@@ -4145,21 +4145,21 @@ var Qe = /* @__PURE__ */ n(async function(e, n, r) {
4145
4145
  break;
4146
4146
  case i.db.LINETYPE.ACTIVE_END:
4147
4147
  {
4148
- let e = Z.activations.map((e) => e.actor).lastIndexOf(t.from);
4148
+ let e = Z.activations.map((e) => e.actor).lastIndexOf(n.from);
4149
4149
  Z.activations.splice(e, 1).splice(0, 1);
4150
4150
  }
4151
4151
  break;
4152
4152
  }
4153
- t.placement === void 0 ? (l = at(t, n, i), t.msgModel = l, l.startx && l.stopx && o.length > 0 && o.forEach((e) => {
4153
+ n.placement === void 0 ? (l = at(n, t, i), n.msgModel = l, l.startx && l.stopx && o.length > 0 && o.forEach((e) => {
4154
4154
  if (s = e, l.startx === l.stopx) {
4155
- let e = n.get(t.from), r = n.get(t.to);
4156
- s.from = y.getMin(e.x - l.width / 2, e.x - e.width / 2, s.from), s.to = y.getMax(r.x + l.width / 2, r.x + e.width / 2, s.to), s.width = y.getMax(s.width, Math.abs(s.to - s.from)) - X.labelBoxWidth;
4157
- } else s.from = y.getMin(l.startx, s.from), s.to = y.getMax(l.stopx, s.to), s.width = y.getMax(s.width, l.width) - X.labelBoxWidth;
4158
- })) : (c = await Qe(t, n, i), t.noteModel = c, o.forEach((e) => {
4159
- s = e, s.from = y.getMin(s.from, c.startx), s.to = y.getMax(s.to, c.startx + c.width), s.width = y.getMax(s.width, Math.abs(s.from - s.to)) - X.labelBoxWidth;
4155
+ let e = t.get(n.from), r = t.get(n.to);
4156
+ s.from = x.getMin(e.x - l.width / 2, e.x - e.width / 2, s.from), s.to = x.getMax(r.x + l.width / 2, r.x + e.width / 2, s.to), s.width = x.getMax(s.width, Math.abs(s.to - s.from)) - X.labelBoxWidth;
4157
+ } else s.from = x.getMin(l.startx, s.from), s.to = x.getMax(l.stopx, s.to), s.width = x.getMax(s.width, l.width) - X.labelBoxWidth;
4158
+ })) : (c = await Qe(n, t, i), n.noteModel = c, o.forEach((e) => {
4159
+ s = e, s.from = x.getMin(s.from, c.startx), s.to = x.getMax(s.to, c.startx + c.width), s.width = x.getMax(s.width, Math.abs(s.from - s.to)) - X.labelBoxWidth;
4160
4160
  }));
4161
4161
  }
4162
- return Z.activations = [], t.debug("Loop type widths:", a), a;
4162
+ return Z.activations = [], r.debug("Loop type widths:", a), a;
4163
4163
  }, "calculateLoopBounds"), st = {
4164
4164
  parser: L,
4165
4165
  get db() {
@@ -4173,8 +4173,8 @@ var Qe = /* @__PURE__ */ n(async function(e, n, r) {
4173
4173
  draw: Je
4174
4174
  },
4175
4175
  styles: ie,
4176
- init: /* @__PURE__ */ n((e) => {
4177
- e.sequence || (e.sequence = {}), e.wrap && (e.sequence.wrap = e.wrap, l({ sequence: { wrap: e.wrap } }));
4176
+ init: /* @__PURE__ */ i((e) => {
4177
+ e.sequence || (e.sequence = {}), e.wrap && (e.sequence.wrap = e.wrap, d({ sequence: { wrap: e.wrap } }));
4178
4178
  }, "init")
4179
4179
  };
4180
4180
  //#endregion