@spteck/react-controls-v2 2.3.91 → 2.4.0

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 (318) hide show
  1. package/dist/LocalizationProvider-BbfcY9z3.cjs +2 -0
  2. package/dist/{LocalizationProvider-te5iu_6z.js → LocalizationProvider-CvSHuk0e.js} +46 -46
  3. package/dist/{ar-Blifx2MN.js → ar-BPzd6WER.js} +1 -1
  4. package/dist/ar-CBSdRr5Q.cjs +2 -0
  5. package/dist/az-DoZjCfF0.cjs +2 -0
  6. package/dist/{az-CMhDjtnj.js → az-MWX-WDgc.js} +1 -1
  7. package/dist/{bg-C96WirSv.js → bg-CvRGS4sF.js} +1 -1
  8. package/dist/bg-DI8UD_HF.cjs +2 -0
  9. package/dist/bs-DQhZlEEo.cjs +2 -0
  10. package/dist/{bs-_St1wBE_.js → bs-aXQgChJT.js} +1 -1
  11. package/dist/{ca-QlLcV4wf.js → ca-BCXCXzgh.js} +1 -1
  12. package/dist/ca-DSC32tOX.cjs +2 -0
  13. package/dist/components/dropDownField/IOption.d.ts +2 -0
  14. package/dist/cs-B0C33FJt.cjs +2 -0
  15. package/dist/{cs-MrS2bH7F.js → cs-VHWnqXwJ.js} +1 -1
  16. package/dist/cy-BNabORao.cjs +2 -0
  17. package/dist/{cy-BX97Tgwk.js → cy-qF-aNCW-.js} +1 -1
  18. package/dist/da-BmgXTEXm.cjs +2 -0
  19. package/dist/{da-BnewPPrh.js → da-rR5TnSBw.js} +1 -1
  20. package/dist/de-B4w38-0d.cjs +2 -0
  21. package/dist/{de-BSZuzGTL.js → de-DbeDjRNp.js} +1 -1
  22. package/dist/el-Cgk6VsxL.cjs +2 -0
  23. package/dist/{el-DrOk3N7-.js → el-DDeD6FiX.js} +1 -1
  24. package/dist/es-3ugMIZuA.cjs +2 -0
  25. package/dist/{es-CGqzubZ2.js → es-dvKffn6Q.js} +1 -1
  26. package/dist/et-CIIzxbat.cjs +2 -0
  27. package/dist/{et-DGqkocuq.js → et-DgZFBtK7.js} +1 -1
  28. package/dist/eu-BUNUOJ7E.cjs +2 -0
  29. package/dist/{eu-DEo7fdTW.js → eu-C6r1_PRy.js} +1 -1
  30. package/dist/{fi-DxErwnd5.js → fi-CzOKgmjK.js} +1 -1
  31. package/dist/fi-q6BFPHtt.cjs +2 -0
  32. package/dist/fr-BEnCZ733.cjs +2 -0
  33. package/dist/{fr-zrtSZX0o.js → fr-D0cDkdbn.js} +1 -1
  34. package/dist/{ga-CbHxGc9_.js → ga-0A7ndSzw.js} +1 -1
  35. package/dist/ga-BXyKTnJr.cjs +2 -0
  36. package/dist/{gl--w0P3RY4.js → gl-BNwj4XAu.js} +1 -1
  37. package/dist/gl-DR1C-hSi.cjs +2 -0
  38. package/dist/{he-DY19lzWp.js → he-BPiZ6D5h.js} +1 -1
  39. package/dist/he-OD1Ex2Fw.cjs +2 -0
  40. package/dist/{hi-CFSsoO_8.js → hi-CSgtp9Yg.js} +1 -1
  41. package/dist/hi-Dt9FvBmh.cjs +2 -0
  42. package/dist/{hr-DIRJ1Z8e.js → hr-CDSSj52Q.js} +1 -1
  43. package/dist/hr-DMzwNhar.cjs +2 -0
  44. package/dist/hu-Bc-rChfV.cjs +2 -0
  45. package/dist/{hu-DqYPRWZh.js → hu-TDJYiDOB.js} +1 -1
  46. package/dist/{id-Dgj7SUCi.js → id-B3IF5pnh.js} +1 -1
  47. package/dist/id-CwndN9HH.cjs +2 -0
  48. package/dist/index.cjs +105 -114
  49. package/dist/index.js +5052 -17522
  50. package/dist/{it-QdChHqVN.js → it-BLET318M.js} +1 -1
  51. package/dist/it-DaYS5Vil.cjs +2 -0
  52. package/dist/ja-BYA2LXHy.cjs +2 -0
  53. package/dist/{ja-BNS0BbY-.js → ja-NxwXLaKV.js} +1 -1
  54. package/dist/{kk-Dhkax68h.js → kk-CceJcjtl.js} +1 -1
  55. package/dist/kk-Ctrvuqlz.cjs +2 -0
  56. package/dist/{ko-heRMHZWp.js → ko-cS_OE967.js} +1 -1
  57. package/dist/ko-evIcpTG8.cjs +2 -0
  58. package/dist/lt-CYTLGgh6.cjs +2 -0
  59. package/dist/{lt-Decqbo8S.js → lt-CZ-kk_5b.js} +1 -1
  60. package/dist/{lv-wZASv0Lw.js → lv-BTvPpEjc.js} +1 -1
  61. package/dist/lv-COjitD3w.cjs +2 -0
  62. package/dist/mk-B-LF5gVL.cjs +2 -0
  63. package/dist/{mk-BTsLGTJT.js → mk-CSSyI3El.js} +1 -1
  64. package/dist/ms-CzEvkib0.cjs +2 -0
  65. package/dist/{ms-C0cVNwky.js → ms-Dz5JnKJ1.js} +1 -1
  66. package/dist/nb-B1KWSX94.cjs +2 -0
  67. package/dist/{nb-DGX4q4tS.js → nb-DkgTg1et.js} +1 -1
  68. package/dist/{nl-CnXZa8tZ.js → nl-CQ5eoxw2.js} +1 -1
  69. package/dist/nl-knWqo2aX.cjs +2 -0
  70. package/dist/{pl-DbIdTNpg.js → pl-BQJfOizT.js} +1 -1
  71. package/dist/pl-Ce6dq53t.cjs +2 -0
  72. package/dist/providers.cjs +1 -1
  73. package/dist/providers.js +1 -1
  74. package/dist/pt-BVqTnGkF.cjs +2 -0
  75. package/dist/{pt-CcKYweQk.js → pt-b0p7DoD0.js} +1 -1
  76. package/dist/ro-DqJMfhmX.cjs +2 -0
  77. package/dist/{ro-C-8tiqgA.js → ro-sbBtUVJV.js} +1 -1
  78. package/dist/ru-Dm2NAQyK.cjs +2 -0
  79. package/dist/{ru-Dhnz96q2.js → ru-ofzbka6D.js} +1 -1
  80. package/dist/sk-BNe6CHG-.cjs +2 -0
  81. package/dist/{sk-BU-Z5EsC.js → sk-BtpdNCPC.js} +1 -1
  82. package/dist/{sl-CcfjJFxo.js → sl-B4GsKLu6.js} +1 -1
  83. package/dist/sl-BKmEUGyu.cjs +2 -0
  84. package/dist/{sr-S53unrLA.js → sr-C76YVpkQ.js} +1 -1
  85. package/dist/sr-Dwya5lwF.cjs +2 -0
  86. package/dist/sv-BGL2G9Vm.cjs +2 -0
  87. package/dist/{sv-BiJrVfZr.js → sv-PesX57cX.js} +1 -1
  88. package/dist/{th-vQ7LQ7nD.js → th-CbCNOBnR.js} +1 -1
  89. package/dist/th-DEv6shFI.cjs +2 -0
  90. package/dist/{tr-C5RrNGLz.js → tr-B0TPxXKS.js} +1 -1
  91. package/dist/tr-BB-QonGE.cjs +2 -0
  92. package/dist/uk-B-3fLKpR.cjs +2 -0
  93. package/dist/{uk-WGCFH0fY.js → uk-_9cNoBNe.js} +1 -1
  94. package/dist/{vi-Waa7HkXq.js → vi-B8SfqLW6.js} +1 -1
  95. package/dist/vi-Dx6pJ0ir.cjs +2 -0
  96. package/dist/zh-DD0ml2HG.cjs +2 -0
  97. package/dist/{zh-BmUS7Wn_.js → zh-DqHnbp6B.js} +1 -1
  98. package/package.json +3 -2
  99. package/dist/LocalizationProvider-B6NxHbu2.cjs +0 -2
  100. package/dist/_arrayEach-BuSFKyFt.js +0 -54
  101. package/dist/_arrayEach-ChR-TejB.cjs +0 -2
  102. package/dist/_getTag-BRuLtYrv.js +0 -28
  103. package/dist/_getTag-D6VVyrEu.cjs +0 -2
  104. package/dist/ar-ip3bGOX3.cjs +0 -2
  105. package/dist/arc-4yb49ncY.js +0 -82
  106. package/dist/arc-djsA8IT0.cjs +0 -2
  107. package/dist/architecture-PBZL5I3N-CvTfVLFi.js +0 -3
  108. package/dist/architecture-PBZL5I3N-wZIE3ggH.cjs +0 -1
  109. package/dist/architectureDiagram-2XIMDMQ5-DFEvJNx1.cjs +0 -37
  110. package/dist/architectureDiagram-2XIMDMQ5-g-HotzpG.js +0 -4047
  111. package/dist/array-BNB_vRFv.cjs +0 -2
  112. package/dist/array-DP0duYiO.js +0 -8
  113. package/dist/az-CyVLdUDz.cjs +0 -2
  114. package/dist/bg-Bexoz3hL.cjs +0 -2
  115. package/dist/blockDiagram-WCTKOSBZ-DWgb5Ghz.js +0 -3165
  116. package/dist/blockDiagram-WCTKOSBZ-Dl04FBAy.cjs +0 -133
  117. package/dist/bs-MMcvhwLv.cjs +0 -2
  118. package/dist/c4Diagram-IC4MRINW-ClZvialQ.js +0 -2966
  119. package/dist/c4Diagram-IC4MRINW-ZFE2cGZP.cjs +0 -11
  120. package/dist/ca-BspMSeHN.cjs +0 -2
  121. package/dist/channel-2Bqnb1FY.js +0 -7
  122. package/dist/channel-5_aP1EVB.cjs +0 -2
  123. package/dist/chunk-4BX2VUAB-B5Va_oZz.js +0 -10
  124. package/dist/chunk-4BX2VUAB-BWDW-gYk.cjs +0 -2
  125. package/dist/chunk-55IACEB6-4ind_ByS.cjs +0 -2
  126. package/dist/chunk-55IACEB6-Pcyz_aR_.js +0 -10
  127. package/dist/chunk-7E7YKBS2-Sw9_w4gt.cjs +0 -2
  128. package/dist/chunk-7E7YKBS2-VHdgsed6.js +0 -25
  129. package/dist/chunk-7R4GIKGN-BKoqTTU_.cjs +0 -81
  130. package/dist/chunk-7R4GIKGN-CaQJ0QBF.js +0 -2598
  131. package/dist/chunk-C72U2L5F-CCvi6jiy.cjs +0 -2
  132. package/dist/chunk-C72U2L5F-MjJQTOMh.js +0 -25
  133. package/dist/chunk-D-IZpNpi.cjs +0 -1
  134. package/dist/chunk-EGIJ26TM-Bffl84Wq.cjs +0 -2
  135. package/dist/chunk-EGIJ26TM-DLMAfvpZ.js +0 -25
  136. package/dist/chunk-FMBD7UC4-BvqqU04Z.cjs +0 -16
  137. package/dist/chunk-FMBD7UC4-xjRtkFXe.js +0 -7
  138. package/dist/chunk-GEFDOKGD-BNgT40Ex.js +0 -1302
  139. package/dist/chunk-GEFDOKGD-BOwd6Jqp.cjs +0 -3
  140. package/dist/chunk-GLR3WWYH-DdNAJNRC.cjs +0 -2
  141. package/dist/chunk-GLR3WWYH-kyo6BUtq.js +0 -43
  142. package/dist/chunk-HHEYEP7N-DO1AYIZw.js +0 -11
  143. package/dist/chunk-HHEYEP7N-pdmgQZzP.cjs +0 -2
  144. package/dist/chunk-JSJVCQXG-Ci0seBb4.cjs +0 -2
  145. package/dist/chunk-JSJVCQXG-DowfYWcD.js +0 -62
  146. package/dist/chunk-KX2RTZJC-BJeOHReu.cjs +0 -2
  147. package/dist/chunk-KX2RTZJC-D-bUTSNy.js +0 -27
  148. package/dist/chunk-KYZI473N-DEPuSXaW.js +0 -3436
  149. package/dist/chunk-KYZI473N-DzBMFOER.cjs +0 -54
  150. package/dist/chunk-L3YUKLVL-BDGCTzmy.js +0 -25
  151. package/dist/chunk-L3YUKLVL-BZ17sqh5.cjs +0 -2
  152. package/dist/chunk-MX3YWQON-CAsnAj2e.js +0 -82
  153. package/dist/chunk-MX3YWQON-DulrBJdn.cjs +0 -2
  154. package/dist/chunk-NBPlniwU.js +0 -23
  155. package/dist/chunk-NQ4KR5QH-BJBAT2kM.cjs +0 -221
  156. package/dist/chunk-NQ4KR5QH-DFem-ORD.js +0 -2004
  157. package/dist/chunk-O4XLMI2P-BQF7MAo7.cjs +0 -8
  158. package/dist/chunk-O4XLMI2P-DA4TPzPG.js +0 -513
  159. package/dist/chunk-OZEHJAEY-CAiiXJUP.cjs +0 -2
  160. package/dist/chunk-OZEHJAEY-D7SX2SbR.js +0 -66
  161. package/dist/chunk-PQ6SQG4A-BZnW4-Sd.cjs +0 -2
  162. package/dist/chunk-PQ6SQG4A-ObFGkauo.js +0 -69
  163. package/dist/chunk-PU5JKC2W-BM5NPS-q.js +0 -1887
  164. package/dist/chunk-PU5JKC2W-eRU8wnTH.cjs +0 -71
  165. package/dist/chunk-QZHKN3VN-Dhli_tM0.cjs +0 -2
  166. package/dist/chunk-QZHKN3VN-x258g6EH.js +0 -17
  167. package/dist/chunk-R5LLSJPH-CNTEucEd.cjs +0 -2
  168. package/dist/chunk-R5LLSJPH-Gt27ml2m.js +0 -37
  169. package/dist/chunk-WL4C6EOR-CQXw6d0l.cjs +0 -190
  170. package/dist/chunk-WL4C6EOR-DuM6QmqM.js +0 -3196
  171. package/dist/chunk-XIRO2GV7-CswC9CO8.cjs +0 -2
  172. package/dist/chunk-XIRO2GV7-DXlO8X82.js +0 -32
  173. package/dist/chunk-XPW4576I-Bpsr4SZJ.js +0 -1148
  174. package/dist/chunk-XPW4576I-C68T-WIW.cjs +0 -33
  175. package/dist/chunk-XZSTWKYB-DJv9rEVU.cjs +0 -95
  176. package/dist/chunk-XZSTWKYB-jD9M1izK.js +0 -16132
  177. package/dist/chunk-YBOYWFTD-B6CeuteH.js +0 -34
  178. package/dist/chunk-YBOYWFTD-CiLW6HW_.cjs +0 -2
  179. package/dist/classDiagram-VBA2DB6C-Us0kuDfz.cjs +0 -2
  180. package/dist/classDiagram-VBA2DB6C-VOsE3gN0.js +0 -31
  181. package/dist/classDiagram-v2-RAHNMMFH-BWsm3ea6.cjs +0 -2
  182. package/dist/classDiagram-v2-RAHNMMFH-DPqMNfOz.js +0 -31
  183. package/dist/cose-bilkent-S5V4N54A-CKhwzobJ.js +0 -2252
  184. package/dist/cose-bilkent-S5V4N54A-DmyaRQ6l.cjs +0 -2
  185. package/dist/cs-FZSeHYld.cjs +0 -2
  186. package/dist/cy-CzQmM2lQ.cjs +0 -2
  187. package/dist/cytoscape.esm-CcJAI0wG.cjs +0 -322
  188. package/dist/cytoscape.esm-D9EjU25_.js +0 -18102
  189. package/dist/da-CexFt-Oj.cjs +0 -2
  190. package/dist/dagre-CpEPaL3r.cjs +0 -2
  191. package/dist/dagre-Dd8wCGc6.js +0 -1305
  192. package/dist/dagre-KLK3FWXG-BpxkjvB3.js +0 -294
  193. package/dist/dagre-KLK3FWXG-DIznPQl_.cjs +0 -5
  194. package/dist/de-B68HwuYu.cjs +0 -2
  195. package/dist/defaultLocale-CYOzCjwh.js +0 -203
  196. package/dist/defaultLocale-DSgylVA1.cjs +0 -2
  197. package/dist/diagram-E7M64L7V-dXqTi77U.cjs +0 -25
  198. package/dist/diagram-E7M64L7V-oX07GVAD.js +0 -529
  199. package/dist/diagram-IFDJBPK2-CriVAAmI.cjs +0 -44
  200. package/dist/diagram-IFDJBPK2-lCNF06_S.js +0 -215
  201. package/dist/diagram-P4PSJMXO-TfwVJh4S.js +0 -135
  202. package/dist/diagram-P4PSJMXO-k7F0lH6Q.cjs +0 -25
  203. package/dist/dist-CV9Ez7cn.js +0 -52
  204. package/dist/dist-DVthN7lF.cjs +0 -2
  205. package/dist/el-DQc4jSMd.cjs +0 -2
  206. package/dist/erDiagram-INFDFZHY-CDt3mOSU.cjs +0 -71
  207. package/dist/erDiagram-INFDFZHY-Ds_R2Ds4.js +0 -1668
  208. package/dist/es-DI8Y4Bv1.cjs +0 -2
  209. package/dist/et-DfaryKvp.cjs +0 -2
  210. package/dist/eu-BVOSXciF.cjs +0 -2
  211. package/dist/fi-C5L-OzaI.cjs +0 -2
  212. package/dist/flowDiagram-PKNHOUZH-7XJG07fo.cjs +0 -163
  213. package/dist/flowDiagram-PKNHOUZH-CkeYebJ5.js +0 -4163
  214. package/dist/fr-yFvjqx8B.cjs +0 -2
  215. package/dist/ga-6mVQhlWi.cjs +0 -2
  216. package/dist/ganttDiagram-A5KZAMGK-Bbck1pyM.cjs +0 -293
  217. package/dist/ganttDiagram-A5KZAMGK-CFT3Xn_r.js +0 -3074
  218. package/dist/gitGraph-HDMCJU4V-BKE04oIl.js +0 -3
  219. package/dist/gitGraph-HDMCJU4V-C9GYfOYb.cjs +0 -1
  220. package/dist/gitGraphDiagram-K3NZZRJ6-CXz9SHBX.js +0 -627
  221. package/dist/gitGraphDiagram-K3NZZRJ6-Dt4D-ig1.cjs +0 -66
  222. package/dist/gl-BJzJe1sq.cjs +0 -2
  223. package/dist/graphlib-CPo7oIsu.js +0 -223
  224. package/dist/graphlib-CmUS4Qin.cjs +0 -2
  225. package/dist/he-B3Bw3qr0.cjs +0 -2
  226. package/dist/hi-kofL-mD8.cjs +0 -2
  227. package/dist/hr-CDxqA9Jm.cjs +0 -2
  228. package/dist/hu-Defen_75.cjs +0 -2
  229. package/dist/id-DcwMRgmX.cjs +0 -2
  230. package/dist/identity-6JlhFhuM.cjs +0 -2
  231. package/dist/identity-C1jKsMoW.js +0 -395
  232. package/dist/info-3K5VOQVL-DfN_3mKd.js +0 -3
  233. package/dist/info-3K5VOQVL-d6J9FY0_.cjs +0 -1
  234. package/dist/infoDiagram-LFFYTUFH-Bp9btqnA.cjs +0 -3
  235. package/dist/infoDiagram-LFFYTUFH-DnvgRFnx.js +0 -21
  236. package/dist/init-BAFZAp9S.cjs +0 -2
  237. package/dist/init-m0TwgR4W.js +0 -17
  238. package/dist/isEmpty-BTp1uKIj.cjs +0 -2
  239. package/dist/isEmpty-uXVYZZYe.js +0 -17
  240. package/dist/ishikawaDiagram-PHBUUO56-DLaOkz38.js +0 -719
  241. package/dist/ishikawaDiagram-PHBUUO56-DmqObwMZ.cjs +0 -71
  242. package/dist/it-D5nM6KCi.cjs +0 -2
  243. package/dist/ja-BtuHirv7.cjs +0 -2
  244. package/dist/journeyDiagram-4ABVD52K-Cv0DbLMi.cjs +0 -140
  245. package/dist/journeyDiagram-4ABVD52K-DYmmcNK4.js +0 -885
  246. package/dist/kanban-definition-K7BYSVSG-BdQLAMeB.cjs +0 -90
  247. package/dist/kanban-definition-K7BYSVSG-CLEYqSz5.js +0 -973
  248. package/dist/katex-B-Nju2J8.js +0 -22002
  249. package/dist/katex-WY67Rp7A.cjs +0 -266
  250. package/dist/kk-BSl8IqgQ.cjs +0 -2
  251. package/dist/ko-eplb1GD0.cjs +0 -2
  252. package/dist/line-CbEBKCYr.js +0 -36
  253. package/dist/line-DqSdvtRR.cjs +0 -2
  254. package/dist/linear-DvLDpS6A.cjs +0 -2
  255. package/dist/linear-Eb79THx6.js +0 -291
  256. package/dist/lt-DsYAWFbF.cjs +0 -2
  257. package/dist/lv-DHmTjCb8.cjs +0 -2
  258. package/dist/maplibre-gl-qSrG75fp.js +0 -33003
  259. package/dist/maplibre-gl-tm_pVdmb.cjs +0 -757
  260. package/dist/math-DR9t6ixc.cjs +0 -2
  261. package/dist/math-DyURnvXC.js +0 -12
  262. package/dist/mermaid-parser.core-BdTB9qx-.js +0 -61
  263. package/dist/mermaid-parser.core-BlzF5RRD.cjs +0 -4
  264. package/dist/mindmap-definition-YRQLILUH-CzcVgr-U.js +0 -966
  265. package/dist/mindmap-definition-YRQLILUH-zWN_YXC3.cjs +0 -69
  266. package/dist/mk-CCV_308U.cjs +0 -2
  267. package/dist/ms-CH83xVYN.cjs +0 -2
  268. package/dist/nb-DZ-DlwcL.cjs +0 -2
  269. package/dist/nl-Xdf-A19i.cjs +0 -2
  270. package/dist/ordinal-BAWGEQkf.js +0 -67
  271. package/dist/ordinal-CL2X4e2C.cjs +0 -2
  272. package/dist/packet-RMMSAZCW-Bek1stRX.cjs +0 -1
  273. package/dist/packet-RMMSAZCW-DUN6t9lN.js +0 -3
  274. package/dist/path-Bt6guLtL.cjs +0 -2
  275. package/dist/path-DSzKK8fH.js +0 -87
  276. package/dist/pie-UPGHQEXC-DjqNO54R.js +0 -3
  277. package/dist/pie-UPGHQEXC-pJq6_YgE.cjs +0 -1
  278. package/dist/pieDiagram-SKSYHLDU-Ba-c0fRA.cjs +0 -31
  279. package/dist/pieDiagram-SKSYHLDU-ya07MTY-.js +0 -167
  280. package/dist/pl-BStql1S-.cjs +0 -2
  281. package/dist/pt-Dk4jELuZ.cjs +0 -2
  282. package/dist/quadrantDiagram-337W2JSQ-CQQEVC49.cjs +0 -8
  283. package/dist/quadrantDiagram-337W2JSQ-Dp_QyIEO.js +0 -1976
  284. package/dist/radar-KQ55EAFF-Bid2hXXI.cjs +0 -1
  285. package/dist/radar-KQ55EAFF-C6zhEkCz.js +0 -3
  286. package/dist/requirementDiagram-Z7DCOOCP-CRl2914V.js +0 -2203
  287. package/dist/requirementDiagram-Z7DCOOCP-CeMYhXEm.cjs +0 -74
  288. package/dist/ro-BvhMyTKh.cjs +0 -2
  289. package/dist/rough.esm-BjJ_weyP.cjs +0 -2
  290. package/dist/rough.esm-DBHP55VQ.js +0 -1354
  291. package/dist/ru-BQosng8l.cjs +0 -2
  292. package/dist/sankeyDiagram-WA2Y5GQK-BFrF47Iv.js +0 -922
  293. package/dist/sankeyDiagram-WA2Y5GQK-DDfjtQ4G.cjs +0 -11
  294. package/dist/sequenceDiagram-2WXFIKYE-B-zWyr9f.cjs +0 -146
  295. package/dist/sequenceDiagram-2WXFIKYE-BAd8OVlz.js +0 -4111
  296. package/dist/sk-BhA7UeAk.cjs +0 -2
  297. package/dist/sl-6Mczv4jG.cjs +0 -2
  298. package/dist/sr-CxObZdu0.cjs +0 -2
  299. package/dist/src-DFxq-N5I.cjs +0 -2
  300. package/dist/src-Dm6r9c7l.js +0 -2148
  301. package/dist/stateDiagram-RAJIS63D-C-tfqeC-.js +0 -219
  302. package/dist/stateDiagram-RAJIS63D-C1Aj8vJQ.cjs +0 -2
  303. package/dist/stateDiagram-v2-FVOUBMTO-C-w53gXL.js +0 -29
  304. package/dist/stateDiagram-v2-FVOUBMTO-VoIE_KVn.cjs +0 -2
  305. package/dist/sv-BfiunVuX.cjs +0 -2
  306. package/dist/th-BqLGltZi.cjs +0 -2
  307. package/dist/timeline-definition-YZTLITO2-CE1y2S_r.js +0 -832
  308. package/dist/timeline-definition-YZTLITO2-D8aFfnYE.cjs +0 -62
  309. package/dist/tr-Brwl4o_Z.cjs +0 -2
  310. package/dist/treemap-KZPCXAKY-D2v0uStP.cjs +0 -1
  311. package/dist/treemap-KZPCXAKY-DLE_f1Bk.js +0 -3
  312. package/dist/uk-CV49TRvS.cjs +0 -2
  313. package/dist/vennDiagram-LZ73GAT5-BSpVMORX.js +0 -1860
  314. package/dist/vennDiagram-LZ73GAT5-DvnB0e7u.cjs +0 -35
  315. package/dist/vi-JzM7bjn_.cjs +0 -2
  316. package/dist/xychartDiagram-JWTSCODW-0qbVGrDs.cjs +0 -8
  317. package/dist/xychartDiagram-JWTSCODW-DpIry-th.js +0 -2043
  318. package/dist/zh-DEm0SGzZ.cjs +0 -2
@@ -1,4111 +0,0 @@
1
- import { g as e, h as t, p as n } from "./src-Dm6r9c7l.js";
2
- import { B as r, C as i, D as a, L as o, P as s, U as c, V as l, W as u, _ as d, a as f, b as p, c as m, i as h, k as g, r as _, s as v, v as y, y as b } from "./chunk-7R4GIKGN-CaQJ0QBF.js";
3
- import { f as x, h as S } from "./chunk-GEFDOKGD-BNgT40Ex.js";
4
- import { n as C, t as w } from "./chunk-XPW4576I-Bpsr4SZJ.js";
5
- import { t as T } from "./dist-CV9Ez7cn.js";
6
- import { a as E, c as D, i as O, n as k, r as A, s as j } from "./chunk-JSJVCQXG-DowfYWcD.js";
7
- import { t as M } from "./chunk-QZHKN3VN-x258g6EH.js";
8
- //#region node_modules/mermaid/dist/chunks/mermaid.core/sequenceDiagram-2WXFIKYE.mjs
9
- var N = T(), P = (function() {
10
- var e = /* @__PURE__ */ t(function(e, t, n, r) {
11
- for (n ||= {}, r = e.length; r--; n[e[r]] = t);
12
- return n;
13
- }, "o"), n = [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
- 1,
15
- 4,
16
- 5,
17
- 10,
18
- 14,
19
- 15,
20
- 17,
21
- 19,
22
- 22,
23
- 24,
24
- 30,
25
- 31,
26
- 32,
27
- 34,
28
- 36,
29
- 37,
30
- 38,
31
- 39,
32
- 40,
33
- 42,
34
- 44,
35
- 45,
36
- 47,
37
- 48,
38
- 49,
39
- 50,
40
- 51,
41
- 53,
42
- 54,
43
- 56,
44
- 61,
45
- 62,
46
- 63,
47
- 64,
48
- 73
49
- ], ee = [1, 74], te = [1, 80], ne = [1, 81], re = [1, 82], ie = [1, 83], L = [1, 84], R = [1, 85], z = [1, 86], B = [1, 87], V = [1, 88], H = [1, 89], ae = [1, 90], U = [1, 91], oe = [1, 92], W = [1, 93], se = [1, 94], G = [1, 95], ce = [1, 96], le = [1, 97], ue = [1, 98], de = [1, 99], fe = [1, 100], pe = [1, 101], me = [1, 102], he = [1, 103], ge = [1, 104], _e = [1, 105], ve = [2, 78], ye = [
50
- 4,
51
- 5,
52
- 17,
53
- 51,
54
- 53,
55
- 54
56
- ], be = [
57
- 4,
58
- 5,
59
- 10,
60
- 14,
61
- 15,
62
- 17,
63
- 19,
64
- 22,
65
- 24,
66
- 30,
67
- 31,
68
- 32,
69
- 34,
70
- 36,
71
- 37,
72
- 38,
73
- 39,
74
- 40,
75
- 42,
76
- 44,
77
- 45,
78
- 47,
79
- 51,
80
- 53,
81
- 54,
82
- 56,
83
- 61,
84
- 62,
85
- 63,
86
- 64,
87
- 73
88
- ], xe = [
89
- 4,
90
- 5,
91
- 10,
92
- 14,
93
- 15,
94
- 17,
95
- 19,
96
- 22,
97
- 24,
98
- 30,
99
- 31,
100
- 32,
101
- 34,
102
- 36,
103
- 37,
104
- 38,
105
- 39,
106
- 40,
107
- 42,
108
- 44,
109
- 45,
110
- 47,
111
- 50,
112
- 51,
113
- 53,
114
- 54,
115
- 56,
116
- 61,
117
- 62,
118
- 63,
119
- 64,
120
- 73
121
- ], Se = [
122
- 4,
123
- 5,
124
- 10,
125
- 14,
126
- 15,
127
- 17,
128
- 19,
129
- 22,
130
- 24,
131
- 30,
132
- 31,
133
- 32,
134
- 34,
135
- 36,
136
- 37,
137
- 38,
138
- 39,
139
- 40,
140
- 42,
141
- 44,
142
- 45,
143
- 47,
144
- 49,
145
- 51,
146
- 53,
147
- 54,
148
- 56,
149
- 61,
150
- 62,
151
- 63,
152
- 64,
153
- 73
154
- ], Ce = [
155
- 4,
156
- 5,
157
- 10,
158
- 14,
159
- 15,
160
- 17,
161
- 19,
162
- 22,
163
- 24,
164
- 30,
165
- 31,
166
- 32,
167
- 34,
168
- 36,
169
- 37,
170
- 38,
171
- 39,
172
- 40,
173
- 42,
174
- 44,
175
- 45,
176
- 47,
177
- 48,
178
- 51,
179
- 53,
180
- 54,
181
- 56,
182
- 61,
183
- 62,
184
- 63,
185
- 64,
186
- 73
187
- ], we = [5, 52], K = [
188
- 70,
189
- 71,
190
- 72,
191
- 73
192
- ], q = [1, 151], Te = {
193
- trace: /* @__PURE__ */ t(function() {}, "trace"),
194
- yy: {},
195
- symbols_: {
196
- error: 2,
197
- start: 3,
198
- SPACE: 4,
199
- NEWLINE: 5,
200
- SD: 6,
201
- document: 7,
202
- line: 8,
203
- statement: 9,
204
- INVALID: 10,
205
- box_section: 11,
206
- box_line: 12,
207
- participant_statement: 13,
208
- create: 14,
209
- box: 15,
210
- restOfLine: 16,
211
- end: 17,
212
- signal: 18,
213
- autonumber: 19,
214
- NUM: 20,
215
- off: 21,
216
- activate: 22,
217
- actor: 23,
218
- deactivate: 24,
219
- note_statement: 25,
220
- links_statement: 26,
221
- link_statement: 27,
222
- properties_statement: 28,
223
- details_statement: 29,
224
- title: 30,
225
- legacy_title: 31,
226
- acc_title: 32,
227
- acc_title_value: 33,
228
- acc_descr: 34,
229
- acc_descr_value: 35,
230
- acc_descr_multiline_value: 36,
231
- loop: 37,
232
- rect: 38,
233
- opt: 39,
234
- alt: 40,
235
- else_sections: 41,
236
- par: 42,
237
- par_sections: 43,
238
- par_over: 44,
239
- critical: 45,
240
- option_sections: 46,
241
- break: 47,
242
- option: 48,
243
- and: 49,
244
- else: 50,
245
- participant: 51,
246
- AS: 52,
247
- participant_actor: 53,
248
- destroy: 54,
249
- actor_with_config: 55,
250
- note: 56,
251
- placement: 57,
252
- text2: 58,
253
- over: 59,
254
- actor_pair: 60,
255
- links: 61,
256
- link: 62,
257
- properties: 63,
258
- details: 64,
259
- spaceList: 65,
260
- ",": 66,
261
- left_of: 67,
262
- right_of: 68,
263
- signaltype: 69,
264
- "+": 70,
265
- "-": 71,
266
- "()": 72,
267
- ACTOR: 73,
268
- config_object: 74,
269
- CONFIG_START: 75,
270
- CONFIG_CONTENT: 76,
271
- CONFIG_END: 77,
272
- SOLID_OPEN_ARROW: 78,
273
- DOTTED_OPEN_ARROW: 79,
274
- SOLID_ARROW: 80,
275
- SOLID_ARROW_TOP: 81,
276
- SOLID_ARROW_BOTTOM: 82,
277
- STICK_ARROW_TOP: 83,
278
- STICK_ARROW_BOTTOM: 84,
279
- SOLID_ARROW_TOP_DOTTED: 85,
280
- SOLID_ARROW_BOTTOM_DOTTED: 86,
281
- STICK_ARROW_TOP_DOTTED: 87,
282
- STICK_ARROW_BOTTOM_DOTTED: 88,
283
- SOLID_ARROW_TOP_REVERSE: 89,
284
- SOLID_ARROW_BOTTOM_REVERSE: 90,
285
- STICK_ARROW_TOP_REVERSE: 91,
286
- STICK_ARROW_BOTTOM_REVERSE: 92,
287
- SOLID_ARROW_TOP_REVERSE_DOTTED: 93,
288
- SOLID_ARROW_BOTTOM_REVERSE_DOTTED: 94,
289
- STICK_ARROW_TOP_REVERSE_DOTTED: 95,
290
- STICK_ARROW_BOTTOM_REVERSE_DOTTED: 96,
291
- BIDIRECTIONAL_SOLID_ARROW: 97,
292
- DOTTED_ARROW: 98,
293
- BIDIRECTIONAL_DOTTED_ARROW: 99,
294
- SOLID_CROSS: 100,
295
- DOTTED_CROSS: 101,
296
- SOLID_POINT: 102,
297
- DOTTED_POINT: 103,
298
- TXT: 104,
299
- $accept: 0,
300
- $end: 1
301
- },
302
- terminals_: {
303
- 2: "error",
304
- 4: "SPACE",
305
- 5: "NEWLINE",
306
- 6: "SD",
307
- 10: "INVALID",
308
- 14: "create",
309
- 15: "box",
310
- 16: "restOfLine",
311
- 17: "end",
312
- 19: "autonumber",
313
- 20: "NUM",
314
- 21: "off",
315
- 22: "activate",
316
- 24: "deactivate",
317
- 30: "title",
318
- 31: "legacy_title",
319
- 32: "acc_title",
320
- 33: "acc_title_value",
321
- 34: "acc_descr",
322
- 35: "acc_descr_value",
323
- 36: "acc_descr_multiline_value",
324
- 37: "loop",
325
- 38: "rect",
326
- 39: "opt",
327
- 40: "alt",
328
- 42: "par",
329
- 44: "par_over",
330
- 45: "critical",
331
- 47: "break",
332
- 48: "option",
333
- 49: "and",
334
- 50: "else",
335
- 51: "participant",
336
- 52: "AS",
337
- 53: "participant_actor",
338
- 54: "destroy",
339
- 56: "note",
340
- 59: "over",
341
- 61: "links",
342
- 62: "link",
343
- 63: "properties",
344
- 64: "details",
345
- 66: ",",
346
- 67: "left_of",
347
- 68: "right_of",
348
- 70: "+",
349
- 71: "-",
350
- 72: "()",
351
- 73: "ACTOR",
352
- 75: "CONFIG_START",
353
- 76: "CONFIG_CONTENT",
354
- 77: "CONFIG_END",
355
- 78: "SOLID_OPEN_ARROW",
356
- 79: "DOTTED_OPEN_ARROW",
357
- 80: "SOLID_ARROW",
358
- 81: "SOLID_ARROW_TOP",
359
- 82: "SOLID_ARROW_BOTTOM",
360
- 83: "STICK_ARROW_TOP",
361
- 84: "STICK_ARROW_BOTTOM",
362
- 85: "SOLID_ARROW_TOP_DOTTED",
363
- 86: "SOLID_ARROW_BOTTOM_DOTTED",
364
- 87: "STICK_ARROW_TOP_DOTTED",
365
- 88: "STICK_ARROW_BOTTOM_DOTTED",
366
- 89: "SOLID_ARROW_TOP_REVERSE",
367
- 90: "SOLID_ARROW_BOTTOM_REVERSE",
368
- 91: "STICK_ARROW_TOP_REVERSE",
369
- 92: "STICK_ARROW_BOTTOM_REVERSE",
370
- 93: "SOLID_ARROW_TOP_REVERSE_DOTTED",
371
- 94: "SOLID_ARROW_BOTTOM_REVERSE_DOTTED",
372
- 95: "STICK_ARROW_TOP_REVERSE_DOTTED",
373
- 96: "STICK_ARROW_BOTTOM_REVERSE_DOTTED",
374
- 97: "BIDIRECTIONAL_SOLID_ARROW",
375
- 98: "DOTTED_ARROW",
376
- 99: "BIDIRECTIONAL_DOTTED_ARROW",
377
- 100: "SOLID_CROSS",
378
- 101: "DOTTED_CROSS",
379
- 102: "SOLID_POINT",
380
- 103: "DOTTED_POINT",
381
- 104: "TXT"
382
- },
383
- productions_: [
384
- 0,
385
- [3, 2],
386
- [3, 2],
387
- [3, 2],
388
- [7, 0],
389
- [7, 2],
390
- [8, 2],
391
- [8, 1],
392
- [8, 1],
393
- [8, 1],
394
- [11, 0],
395
- [11, 2],
396
- [12, 2],
397
- [12, 1],
398
- [12, 1],
399
- [9, 1],
400
- [9, 2],
401
- [9, 4],
402
- [9, 2],
403
- [9, 4],
404
- [9, 3],
405
- [9, 3],
406
- [9, 2],
407
- [9, 3],
408
- [9, 3],
409
- [9, 2],
410
- [9, 2],
411
- [9, 2],
412
- [9, 2],
413
- [9, 2],
414
- [9, 1],
415
- [9, 1],
416
- [9, 2],
417
- [9, 2],
418
- [9, 1],
419
- [9, 4],
420
- [9, 4],
421
- [9, 4],
422
- [9, 4],
423
- [9, 4],
424
- [9, 4],
425
- [9, 4],
426
- [9, 4],
427
- [46, 1],
428
- [46, 4],
429
- [43, 1],
430
- [43, 4],
431
- [41, 1],
432
- [41, 4],
433
- [13, 5],
434
- [13, 3],
435
- [13, 5],
436
- [13, 3],
437
- [13, 3],
438
- [13, 5],
439
- [13, 3],
440
- [13, 5],
441
- [13, 3],
442
- [25, 4],
443
- [25, 4],
444
- [26, 3],
445
- [27, 3],
446
- [28, 3],
447
- [29, 3],
448
- [65, 2],
449
- [65, 1],
450
- [60, 3],
451
- [60, 1],
452
- [57, 1],
453
- [57, 1],
454
- [18, 5],
455
- [18, 5],
456
- [18, 5],
457
- [18, 5],
458
- [18, 6],
459
- [18, 4],
460
- [55, 2],
461
- [74, 3],
462
- [23, 1],
463
- [69, 1],
464
- [69, 1],
465
- [69, 1],
466
- [69, 1],
467
- [69, 1],
468
- [69, 1],
469
- [69, 1],
470
- [69, 1],
471
- [69, 1],
472
- [69, 1],
473
- [69, 1],
474
- [69, 1],
475
- [69, 1],
476
- [69, 1],
477
- [69, 1],
478
- [69, 1],
479
- [69, 1],
480
- [69, 1],
481
- [69, 1],
482
- [69, 1],
483
- [69, 1],
484
- [69, 1],
485
- [69, 1],
486
- [69, 1],
487
- [69, 1],
488
- [69, 1],
489
- [58, 1]
490
- ],
491
- performAction: /* @__PURE__ */ t(function(e, t, n, r, i, a, o) {
492
- var s = a.length - 1;
493
- switch (i) {
494
- case 3: return r.apply(a[s]), a[s];
495
- case 4:
496
- case 10:
497
- this.$ = [];
498
- break;
499
- case 5:
500
- case 11:
501
- a[s - 1].push(a[s]), this.$ = a[s - 1];
502
- break;
503
- case 6:
504
- case 7:
505
- case 12:
506
- case 13:
507
- this.$ = a[s];
508
- break;
509
- case 8:
510
- case 9:
511
- case 14:
512
- this.$ = [];
513
- break;
514
- case 16:
515
- a[s].type = "createParticipant", this.$ = a[s];
516
- break;
517
- case 17:
518
- a[s - 1].unshift({
519
- type: "boxStart",
520
- boxData: r.parseBoxData(a[s - 2])
521
- }), a[s - 1].push({
522
- type: "boxEnd",
523
- boxText: a[s - 2]
524
- }), this.$ = a[s - 1];
525
- break;
526
- case 19:
527
- this.$ = {
528
- type: "sequenceIndex",
529
- sequenceIndex: Number(a[s - 2]),
530
- sequenceIndexStep: Number(a[s - 1]),
531
- sequenceVisible: !0,
532
- signalType: r.LINETYPE.AUTONUMBER
533
- };
534
- break;
535
- case 20:
536
- this.$ = {
537
- type: "sequenceIndex",
538
- sequenceIndex: Number(a[s - 1]),
539
- sequenceIndexStep: 1,
540
- sequenceVisible: !0,
541
- signalType: r.LINETYPE.AUTONUMBER
542
- };
543
- break;
544
- case 21:
545
- this.$ = {
546
- type: "sequenceIndex",
547
- sequenceVisible: !1,
548
- signalType: r.LINETYPE.AUTONUMBER
549
- };
550
- break;
551
- case 22:
552
- this.$ = {
553
- type: "sequenceIndex",
554
- sequenceVisible: !0,
555
- signalType: r.LINETYPE.AUTONUMBER
556
- };
557
- break;
558
- case 23:
559
- this.$ = {
560
- type: "activeStart",
561
- signalType: r.LINETYPE.ACTIVE_START,
562
- actor: a[s - 1].actor
563
- };
564
- break;
565
- case 24:
566
- this.$ = {
567
- type: "activeEnd",
568
- signalType: r.LINETYPE.ACTIVE_END,
569
- actor: a[s - 1].actor
570
- };
571
- break;
572
- case 30:
573
- r.setDiagramTitle(a[s].substring(6)), this.$ = a[s].substring(6);
574
- break;
575
- case 31:
576
- r.setDiagramTitle(a[s].substring(7)), this.$ = a[s].substring(7);
577
- break;
578
- case 32:
579
- this.$ = a[s].trim(), r.setAccTitle(this.$);
580
- break;
581
- case 33:
582
- case 34:
583
- this.$ = a[s].trim(), r.setAccDescription(this.$);
584
- break;
585
- case 35:
586
- a[s - 1].unshift({
587
- type: "loopStart",
588
- loopText: r.parseMessage(a[s - 2]),
589
- signalType: r.LINETYPE.LOOP_START
590
- }), a[s - 1].push({
591
- type: "loopEnd",
592
- loopText: a[s - 2],
593
- signalType: r.LINETYPE.LOOP_END
594
- }), this.$ = a[s - 1];
595
- break;
596
- case 36:
597
- a[s - 1].unshift({
598
- type: "rectStart",
599
- color: r.parseMessage(a[s - 2]),
600
- signalType: r.LINETYPE.RECT_START
601
- }), a[s - 1].push({
602
- type: "rectEnd",
603
- color: r.parseMessage(a[s - 2]),
604
- signalType: r.LINETYPE.RECT_END
605
- }), this.$ = a[s - 1];
606
- break;
607
- case 37:
608
- a[s - 1].unshift({
609
- type: "optStart",
610
- optText: r.parseMessage(a[s - 2]),
611
- signalType: r.LINETYPE.OPT_START
612
- }), a[s - 1].push({
613
- type: "optEnd",
614
- optText: r.parseMessage(a[s - 2]),
615
- signalType: r.LINETYPE.OPT_END
616
- }), this.$ = a[s - 1];
617
- break;
618
- case 38:
619
- a[s - 1].unshift({
620
- type: "altStart",
621
- altText: r.parseMessage(a[s - 2]),
622
- signalType: r.LINETYPE.ALT_START
623
- }), a[s - 1].push({
624
- type: "altEnd",
625
- signalType: r.LINETYPE.ALT_END
626
- }), this.$ = a[s - 1];
627
- break;
628
- case 39:
629
- a[s - 1].unshift({
630
- type: "parStart",
631
- parText: r.parseMessage(a[s - 2]),
632
- signalType: r.LINETYPE.PAR_START
633
- }), a[s - 1].push({
634
- type: "parEnd",
635
- signalType: r.LINETYPE.PAR_END
636
- }), this.$ = a[s - 1];
637
- break;
638
- case 40:
639
- a[s - 1].unshift({
640
- type: "parStart",
641
- parText: r.parseMessage(a[s - 2]),
642
- signalType: r.LINETYPE.PAR_OVER_START
643
- }), a[s - 1].push({
644
- type: "parEnd",
645
- signalType: r.LINETYPE.PAR_END
646
- }), this.$ = a[s - 1];
647
- break;
648
- case 41:
649
- a[s - 1].unshift({
650
- type: "criticalStart",
651
- criticalText: r.parseMessage(a[s - 2]),
652
- signalType: r.LINETYPE.CRITICAL_START
653
- }), a[s - 1].push({
654
- type: "criticalEnd",
655
- signalType: r.LINETYPE.CRITICAL_END
656
- }), this.$ = a[s - 1];
657
- break;
658
- case 42:
659
- a[s - 1].unshift({
660
- type: "breakStart",
661
- breakText: r.parseMessage(a[s - 2]),
662
- signalType: r.LINETYPE.BREAK_START
663
- }), a[s - 1].push({
664
- type: "breakEnd",
665
- optText: r.parseMessage(a[s - 2]),
666
- signalType: r.LINETYPE.BREAK_END
667
- }), this.$ = a[s - 1];
668
- break;
669
- case 44:
670
- this.$ = a[s - 3].concat([{
671
- type: "option",
672
- optionText: r.parseMessage(a[s - 1]),
673
- signalType: r.LINETYPE.CRITICAL_OPTION
674
- }, a[s]]);
675
- break;
676
- case 46:
677
- this.$ = a[s - 3].concat([{
678
- type: "and",
679
- parText: r.parseMessage(a[s - 1]),
680
- signalType: r.LINETYPE.PAR_AND
681
- }, a[s]]);
682
- break;
683
- case 48:
684
- this.$ = a[s - 3].concat([{
685
- type: "else",
686
- altText: r.parseMessage(a[s - 1]),
687
- signalType: r.LINETYPE.ALT_ELSE
688
- }, a[s]]);
689
- break;
690
- case 49:
691
- a[s - 3].draw = "participant", a[s - 3].type = "addParticipant", a[s - 3].description = r.parseMessage(a[s - 1]), this.$ = a[s - 3];
692
- break;
693
- case 50:
694
- a[s - 1].draw = "participant", a[s - 1].type = "addParticipant", this.$ = a[s - 1];
695
- break;
696
- case 51:
697
- a[s - 3].draw = "actor", a[s - 3].type = "addParticipant", a[s - 3].description = r.parseMessage(a[s - 1]), this.$ = a[s - 3];
698
- break;
699
- case 52:
700
- case 57:
701
- a[s - 1].draw = "actor", a[s - 1].type = "addParticipant", this.$ = a[s - 1];
702
- break;
703
- case 53:
704
- a[s - 1].type = "destroyParticipant", this.$ = a[s - 1];
705
- break;
706
- case 54:
707
- a[s - 3].draw = "participant", a[s - 3].type = "addParticipant", a[s - 3].description = r.parseMessage(a[s - 1]), this.$ = a[s - 3];
708
- break;
709
- case 55:
710
- a[s - 1].draw = "participant", a[s - 1].type = "addParticipant", this.$ = a[s - 1];
711
- break;
712
- case 56:
713
- a[s - 3].draw = "actor", a[s - 3].type = "addParticipant", a[s - 3].description = r.parseMessage(a[s - 1]), this.$ = a[s - 3];
714
- break;
715
- case 58:
716
- this.$ = [a[s - 1], {
717
- type: "addNote",
718
- placement: a[s - 2],
719
- actor: a[s - 1].actor,
720
- text: a[s]
721
- }];
722
- break;
723
- case 59:
724
- a[s - 2] = [].concat(a[s - 1], a[s - 1]).slice(0, 2), a[s - 2][0] = a[s - 2][0].actor, a[s - 2][1] = a[s - 2][1].actor, this.$ = [a[s - 1], {
725
- type: "addNote",
726
- placement: r.PLACEMENT.OVER,
727
- actor: a[s - 2].slice(0, 2),
728
- text: a[s]
729
- }];
730
- break;
731
- case 60:
732
- this.$ = [a[s - 1], {
733
- type: "addLinks",
734
- actor: a[s - 1].actor,
735
- text: a[s]
736
- }];
737
- break;
738
- case 61:
739
- this.$ = [a[s - 1], {
740
- type: "addALink",
741
- actor: a[s - 1].actor,
742
- text: a[s]
743
- }];
744
- break;
745
- case 62:
746
- this.$ = [a[s - 1], {
747
- type: "addProperties",
748
- actor: a[s - 1].actor,
749
- text: a[s]
750
- }];
751
- break;
752
- case 63:
753
- this.$ = [a[s - 1], {
754
- type: "addDetails",
755
- actor: a[s - 1].actor,
756
- text: a[s]
757
- }];
758
- break;
759
- case 66:
760
- this.$ = [a[s - 2], a[s]];
761
- break;
762
- case 67:
763
- this.$ = a[s];
764
- break;
765
- case 68:
766
- this.$ = r.PLACEMENT.LEFTOF;
767
- break;
768
- case 69:
769
- this.$ = r.PLACEMENT.RIGHTOF;
770
- break;
771
- case 70:
772
- this.$ = [
773
- a[s - 4],
774
- a[s - 1],
775
- {
776
- type: "addMessage",
777
- from: a[s - 4].actor,
778
- to: a[s - 1].actor,
779
- signalType: a[s - 3],
780
- msg: a[s],
781
- activate: !0
782
- },
783
- {
784
- type: "activeStart",
785
- signalType: r.LINETYPE.ACTIVE_START,
786
- actor: a[s - 1].actor
787
- }
788
- ];
789
- break;
790
- case 71:
791
- this.$ = [
792
- a[s - 4],
793
- a[s - 1],
794
- {
795
- type: "addMessage",
796
- from: a[s - 4].actor,
797
- to: a[s - 1].actor,
798
- signalType: a[s - 3],
799
- msg: a[s]
800
- },
801
- {
802
- type: "activeEnd",
803
- signalType: r.LINETYPE.ACTIVE_END,
804
- actor: a[s - 4].actor
805
- }
806
- ];
807
- break;
808
- case 72:
809
- this.$ = [
810
- a[s - 4],
811
- a[s - 1],
812
- {
813
- type: "addMessage",
814
- from: a[s - 4].actor,
815
- to: a[s - 1].actor,
816
- signalType: a[s - 3],
817
- msg: a[s],
818
- activate: !0,
819
- centralConnection: r.LINETYPE.CENTRAL_CONNECTION
820
- },
821
- {
822
- type: "centralConnection",
823
- signalType: r.LINETYPE.CENTRAL_CONNECTION,
824
- actor: a[s - 1].actor
825
- }
826
- ];
827
- break;
828
- case 73:
829
- this.$ = [
830
- a[s - 4],
831
- a[s - 1],
832
- {
833
- type: "addMessage",
834
- from: a[s - 4].actor,
835
- to: a[s - 1].actor,
836
- signalType: a[s - 2],
837
- msg: a[s],
838
- activate: !1,
839
- centralConnection: r.LINETYPE.CENTRAL_CONNECTION_REVERSE
840
- },
841
- {
842
- type: "centralConnectionReverse",
843
- signalType: r.LINETYPE.CENTRAL_CONNECTION_REVERSE,
844
- actor: a[s - 4].actor
845
- }
846
- ];
847
- break;
848
- case 74:
849
- this.$ = [
850
- a[s - 5],
851
- a[s - 1],
852
- {
853
- type: "addMessage",
854
- from: a[s - 5].actor,
855
- to: a[s - 1].actor,
856
- signalType: a[s - 3],
857
- msg: a[s],
858
- activate: !0,
859
- centralConnection: r.LINETYPE.CENTRAL_CONNECTION_DUAL
860
- },
861
- {
862
- type: "centralConnection",
863
- signalType: r.LINETYPE.CENTRAL_CONNECTION,
864
- actor: a[s - 1].actor
865
- },
866
- {
867
- type: "centralConnectionReverse",
868
- signalType: r.LINETYPE.CENTRAL_CONNECTION_REVERSE,
869
- actor: a[s - 5].actor
870
- }
871
- ];
872
- break;
873
- case 75:
874
- this.$ = [
875
- a[s - 3],
876
- a[s - 1],
877
- {
878
- type: "addMessage",
879
- from: a[s - 3].actor,
880
- to: a[s - 1].actor,
881
- signalType: a[s - 2],
882
- msg: a[s]
883
- }
884
- ];
885
- break;
886
- case 76:
887
- this.$ = {
888
- type: "addParticipant",
889
- actor: a[s - 1],
890
- config: a[s]
891
- };
892
- break;
893
- case 77:
894
- this.$ = a[s - 1].trim();
895
- break;
896
- case 78:
897
- this.$ = {
898
- type: "addParticipant",
899
- actor: a[s]
900
- };
901
- break;
902
- case 79:
903
- this.$ = r.LINETYPE.SOLID_OPEN;
904
- break;
905
- case 80:
906
- this.$ = r.LINETYPE.DOTTED_OPEN;
907
- break;
908
- case 81:
909
- this.$ = r.LINETYPE.SOLID;
910
- break;
911
- case 82:
912
- this.$ = r.LINETYPE.SOLID_TOP;
913
- break;
914
- case 83:
915
- this.$ = r.LINETYPE.SOLID_BOTTOM;
916
- break;
917
- case 84:
918
- this.$ = r.LINETYPE.STICK_TOP;
919
- break;
920
- case 85:
921
- this.$ = r.LINETYPE.STICK_BOTTOM;
922
- break;
923
- case 86:
924
- this.$ = r.LINETYPE.SOLID_TOP_DOTTED;
925
- break;
926
- case 87:
927
- this.$ = r.LINETYPE.SOLID_BOTTOM_DOTTED;
928
- break;
929
- case 88:
930
- this.$ = r.LINETYPE.STICK_TOP_DOTTED;
931
- break;
932
- case 89:
933
- this.$ = r.LINETYPE.STICK_BOTTOM_DOTTED;
934
- break;
935
- case 90:
936
- this.$ = r.LINETYPE.SOLID_ARROW_TOP_REVERSE;
937
- break;
938
- case 91:
939
- this.$ = r.LINETYPE.SOLID_ARROW_BOTTOM_REVERSE;
940
- break;
941
- case 92:
942
- this.$ = r.LINETYPE.STICK_ARROW_TOP_REVERSE;
943
- break;
944
- case 93:
945
- this.$ = r.LINETYPE.STICK_ARROW_BOTTOM_REVERSE;
946
- break;
947
- case 94:
948
- this.$ = r.LINETYPE.SOLID_ARROW_TOP_REVERSE_DOTTED;
949
- break;
950
- case 95:
951
- this.$ = r.LINETYPE.SOLID_ARROW_BOTTOM_REVERSE_DOTTED;
952
- break;
953
- case 96:
954
- this.$ = r.LINETYPE.STICK_ARROW_TOP_REVERSE_DOTTED;
955
- break;
956
- case 97:
957
- this.$ = r.LINETYPE.STICK_ARROW_BOTTOM_REVERSE_DOTTED;
958
- break;
959
- case 98:
960
- this.$ = r.LINETYPE.BIDIRECTIONAL_SOLID;
961
- break;
962
- case 99:
963
- this.$ = r.LINETYPE.DOTTED;
964
- break;
965
- case 100:
966
- this.$ = r.LINETYPE.BIDIRECTIONAL_DOTTED;
967
- break;
968
- case 101:
969
- this.$ = r.LINETYPE.SOLID_CROSS;
970
- break;
971
- case 102:
972
- this.$ = r.LINETYPE.DOTTED_CROSS;
973
- break;
974
- case 103:
975
- this.$ = r.LINETYPE.SOLID_POINT;
976
- break;
977
- case 104:
978
- this.$ = r.LINETYPE.DOTTED_POINT;
979
- break;
980
- case 105:
981
- this.$ = r.parseMessage(a[s].trim().substring(1));
982
- break;
983
- }
984
- }, "anonymous"),
985
- table: [
986
- {
987
- 3: 1,
988
- 4: n,
989
- 5: r,
990
- 6: i
991
- },
992
- { 1: [3] },
993
- {
994
- 3: 5,
995
- 4: n,
996
- 5: r,
997
- 6: i
998
- },
999
- {
1000
- 3: 6,
1001
- 4: n,
1002
- 5: r,
1003
- 6: i
1004
- },
1005
- e([
1006
- 1,
1007
- 4,
1008
- 5,
1009
- 10,
1010
- 14,
1011
- 15,
1012
- 19,
1013
- 22,
1014
- 24,
1015
- 30,
1016
- 31,
1017
- 32,
1018
- 34,
1019
- 36,
1020
- 37,
1021
- 38,
1022
- 39,
1023
- 40,
1024
- 42,
1025
- 44,
1026
- 45,
1027
- 47,
1028
- 51,
1029
- 53,
1030
- 54,
1031
- 56,
1032
- 61,
1033
- 62,
1034
- 63,
1035
- 64,
1036
- 73
1037
- ], a, { 7: 7 }),
1038
- { 1: [2, 1] },
1039
- { 1: [2, 2] },
1040
- {
1041
- 1: [2, 3],
1042
- 4: o,
1043
- 5: s,
1044
- 8: 8,
1045
- 9: 10,
1046
- 10: c,
1047
- 13: 13,
1048
- 14: l,
1049
- 15: u,
1050
- 18: 16,
1051
- 19: d,
1052
- 22: f,
1053
- 23: 41,
1054
- 24: p,
1055
- 25: 20,
1056
- 26: 21,
1057
- 27: 22,
1058
- 28: 23,
1059
- 29: 24,
1060
- 30: m,
1061
- 31: h,
1062
- 32: g,
1063
- 34: _,
1064
- 36: v,
1065
- 37: y,
1066
- 38: b,
1067
- 39: x,
1068
- 40: S,
1069
- 42: C,
1070
- 44: w,
1071
- 45: T,
1072
- 47: E,
1073
- 51: D,
1074
- 53: O,
1075
- 54: k,
1076
- 56: A,
1077
- 61: j,
1078
- 62: M,
1079
- 63: N,
1080
- 64: P,
1081
- 73: F
1082
- },
1083
- e(I, [2, 5]),
1084
- {
1085
- 9: 48,
1086
- 13: 13,
1087
- 14: l,
1088
- 15: u,
1089
- 18: 16,
1090
- 19: d,
1091
- 22: f,
1092
- 23: 41,
1093
- 24: p,
1094
- 25: 20,
1095
- 26: 21,
1096
- 27: 22,
1097
- 28: 23,
1098
- 29: 24,
1099
- 30: m,
1100
- 31: h,
1101
- 32: g,
1102
- 34: _,
1103
- 36: v,
1104
- 37: y,
1105
- 38: b,
1106
- 39: x,
1107
- 40: S,
1108
- 42: C,
1109
- 44: w,
1110
- 45: T,
1111
- 47: E,
1112
- 51: D,
1113
- 53: O,
1114
- 54: k,
1115
- 56: A,
1116
- 61: j,
1117
- 62: M,
1118
- 63: N,
1119
- 64: P,
1120
- 73: F
1121
- },
1122
- e(I, [2, 7]),
1123
- e(I, [2, 8]),
1124
- e(I, [2, 9]),
1125
- e(I, [2, 15]),
1126
- {
1127
- 13: 49,
1128
- 51: D,
1129
- 53: O,
1130
- 54: k
1131
- },
1132
- { 16: [1, 50] },
1133
- { 5: [1, 51] },
1134
- {
1135
- 5: [1, 54],
1136
- 20: [1, 52],
1137
- 21: [1, 53]
1138
- },
1139
- {
1140
- 23: 55,
1141
- 73: F
1142
- },
1143
- {
1144
- 23: 56,
1145
- 73: F
1146
- },
1147
- { 5: [1, 57] },
1148
- { 5: [1, 58] },
1149
- { 5: [1, 59] },
1150
- { 5: [1, 60] },
1151
- { 5: [1, 61] },
1152
- e(I, [2, 30]),
1153
- e(I, [2, 31]),
1154
- { 33: [1, 62] },
1155
- { 35: [1, 63] },
1156
- e(I, [2, 34]),
1157
- { 16: [1, 64] },
1158
- { 16: [1, 65] },
1159
- { 16: [1, 66] },
1160
- { 16: [1, 67] },
1161
- { 16: [1, 68] },
1162
- { 16: [1, 69] },
1163
- { 16: [1, 70] },
1164
- { 16: [1, 71] },
1165
- {
1166
- 23: 72,
1167
- 55: 73,
1168
- 73: ee
1169
- },
1170
- {
1171
- 23: 75,
1172
- 55: 76,
1173
- 73: ee
1174
- },
1175
- {
1176
- 23: 77,
1177
- 73: F
1178
- },
1179
- {
1180
- 69: 78,
1181
- 72: [1, 79],
1182
- 78: te,
1183
- 79: ne,
1184
- 80: re,
1185
- 81: ie,
1186
- 82: L,
1187
- 83: R,
1188
- 84: z,
1189
- 85: B,
1190
- 86: V,
1191
- 87: H,
1192
- 88: ae,
1193
- 89: U,
1194
- 90: oe,
1195
- 91: W,
1196
- 92: se,
1197
- 93: G,
1198
- 94: ce,
1199
- 95: le,
1200
- 96: ue,
1201
- 97: de,
1202
- 98: fe,
1203
- 99: pe,
1204
- 100: me,
1205
- 101: he,
1206
- 102: ge,
1207
- 103: _e
1208
- },
1209
- {
1210
- 57: 106,
1211
- 59: [1, 107],
1212
- 67: [1, 108],
1213
- 68: [1, 109]
1214
- },
1215
- {
1216
- 23: 110,
1217
- 73: F
1218
- },
1219
- {
1220
- 23: 111,
1221
- 73: F
1222
- },
1223
- {
1224
- 23: 112,
1225
- 73: F
1226
- },
1227
- {
1228
- 23: 113,
1229
- 73: F
1230
- },
1231
- e([
1232
- 5,
1233
- 66,
1234
- 72,
1235
- 78,
1236
- 79,
1237
- 80,
1238
- 81,
1239
- 82,
1240
- 83,
1241
- 84,
1242
- 85,
1243
- 86,
1244
- 87,
1245
- 88,
1246
- 89,
1247
- 90,
1248
- 91,
1249
- 92,
1250
- 93,
1251
- 94,
1252
- 95,
1253
- 96,
1254
- 97,
1255
- 98,
1256
- 99,
1257
- 100,
1258
- 101,
1259
- 102,
1260
- 103,
1261
- 104
1262
- ], ve),
1263
- e(I, [2, 6]),
1264
- e(I, [2, 16]),
1265
- e(ye, [2, 10], { 11: 114 }),
1266
- e(I, [2, 18]),
1267
- {
1268
- 5: [1, 116],
1269
- 20: [1, 115]
1270
- },
1271
- { 5: [1, 117] },
1272
- e(I, [2, 22]),
1273
- { 5: [1, 118] },
1274
- { 5: [1, 119] },
1275
- e(I, [2, 25]),
1276
- e(I, [2, 26]),
1277
- e(I, [2, 27]),
1278
- e(I, [2, 28]),
1279
- e(I, [2, 29]),
1280
- e(I, [2, 32]),
1281
- e(I, [2, 33]),
1282
- e(be, a, { 7: 120 }),
1283
- e(be, a, { 7: 121 }),
1284
- e(be, a, { 7: 122 }),
1285
- e(xe, a, {
1286
- 41: 123,
1287
- 7: 124
1288
- }),
1289
- e(Se, a, {
1290
- 43: 125,
1291
- 7: 126
1292
- }),
1293
- e(Se, a, {
1294
- 7: 126,
1295
- 43: 127
1296
- }),
1297
- e(Ce, a, {
1298
- 46: 128,
1299
- 7: 129
1300
- }),
1301
- e(be, a, { 7: 130 }),
1302
- {
1303
- 5: [1, 132],
1304
- 52: [1, 131]
1305
- },
1306
- {
1307
- 5: [1, 134],
1308
- 52: [1, 133]
1309
- },
1310
- e(we, ve, {
1311
- 74: 135,
1312
- 75: [1, 136]
1313
- }),
1314
- {
1315
- 5: [1, 138],
1316
- 52: [1, 137]
1317
- },
1318
- {
1319
- 5: [1, 140],
1320
- 52: [1, 139]
1321
- },
1322
- { 5: [1, 141] },
1323
- {
1324
- 23: 145,
1325
- 70: [1, 142],
1326
- 71: [1, 143],
1327
- 72: [1, 144],
1328
- 73: F
1329
- },
1330
- {
1331
- 69: 146,
1332
- 78: te,
1333
- 79: ne,
1334
- 80: re,
1335
- 81: ie,
1336
- 82: L,
1337
- 83: R,
1338
- 84: z,
1339
- 85: B,
1340
- 86: V,
1341
- 87: H,
1342
- 88: ae,
1343
- 89: U,
1344
- 90: oe,
1345
- 91: W,
1346
- 92: se,
1347
- 93: G,
1348
- 94: ce,
1349
- 95: le,
1350
- 96: ue,
1351
- 97: de,
1352
- 98: fe,
1353
- 99: pe,
1354
- 100: me,
1355
- 101: he,
1356
- 102: ge,
1357
- 103: _e
1358
- },
1359
- e(K, [2, 79]),
1360
- e(K, [2, 80]),
1361
- e(K, [2, 81]),
1362
- e(K, [2, 82]),
1363
- e(K, [2, 83]),
1364
- e(K, [2, 84]),
1365
- e(K, [2, 85]),
1366
- e(K, [2, 86]),
1367
- e(K, [2, 87]),
1368
- e(K, [2, 88]),
1369
- e(K, [2, 89]),
1370
- e(K, [2, 90]),
1371
- e(K, [2, 91]),
1372
- e(K, [2, 92]),
1373
- e(K, [2, 93]),
1374
- e(K, [2, 94]),
1375
- e(K, [2, 95]),
1376
- e(K, [2, 96]),
1377
- e(K, [2, 97]),
1378
- e(K, [2, 98]),
1379
- e(K, [2, 99]),
1380
- e(K, [2, 100]),
1381
- e(K, [2, 101]),
1382
- e(K, [2, 102]),
1383
- e(K, [2, 103]),
1384
- e(K, [2, 104]),
1385
- {
1386
- 23: 147,
1387
- 73: F
1388
- },
1389
- {
1390
- 23: 149,
1391
- 60: 148,
1392
- 73: F
1393
- },
1394
- { 73: [2, 68] },
1395
- { 73: [2, 69] },
1396
- {
1397
- 58: 150,
1398
- 104: q
1399
- },
1400
- {
1401
- 58: 152,
1402
- 104: q
1403
- },
1404
- {
1405
- 58: 153,
1406
- 104: q
1407
- },
1408
- {
1409
- 58: 154,
1410
- 104: q
1411
- },
1412
- {
1413
- 4: [1, 157],
1414
- 5: [1, 159],
1415
- 12: 156,
1416
- 13: 158,
1417
- 17: [1, 155],
1418
- 51: D,
1419
- 53: O,
1420
- 54: k
1421
- },
1422
- { 5: [1, 160] },
1423
- e(I, [2, 20]),
1424
- e(I, [2, 21]),
1425
- e(I, [2, 23]),
1426
- e(I, [2, 24]),
1427
- {
1428
- 4: o,
1429
- 5: s,
1430
- 8: 8,
1431
- 9: 10,
1432
- 10: c,
1433
- 13: 13,
1434
- 14: l,
1435
- 15: u,
1436
- 17: [1, 161],
1437
- 18: 16,
1438
- 19: d,
1439
- 22: f,
1440
- 23: 41,
1441
- 24: p,
1442
- 25: 20,
1443
- 26: 21,
1444
- 27: 22,
1445
- 28: 23,
1446
- 29: 24,
1447
- 30: m,
1448
- 31: h,
1449
- 32: g,
1450
- 34: _,
1451
- 36: v,
1452
- 37: y,
1453
- 38: b,
1454
- 39: x,
1455
- 40: S,
1456
- 42: C,
1457
- 44: w,
1458
- 45: T,
1459
- 47: E,
1460
- 51: D,
1461
- 53: O,
1462
- 54: k,
1463
- 56: A,
1464
- 61: j,
1465
- 62: M,
1466
- 63: N,
1467
- 64: P,
1468
- 73: F
1469
- },
1470
- {
1471
- 4: o,
1472
- 5: s,
1473
- 8: 8,
1474
- 9: 10,
1475
- 10: c,
1476
- 13: 13,
1477
- 14: l,
1478
- 15: u,
1479
- 17: [1, 162],
1480
- 18: 16,
1481
- 19: d,
1482
- 22: f,
1483
- 23: 41,
1484
- 24: p,
1485
- 25: 20,
1486
- 26: 21,
1487
- 27: 22,
1488
- 28: 23,
1489
- 29: 24,
1490
- 30: m,
1491
- 31: h,
1492
- 32: g,
1493
- 34: _,
1494
- 36: v,
1495
- 37: y,
1496
- 38: b,
1497
- 39: x,
1498
- 40: S,
1499
- 42: C,
1500
- 44: w,
1501
- 45: T,
1502
- 47: E,
1503
- 51: D,
1504
- 53: O,
1505
- 54: k,
1506
- 56: A,
1507
- 61: j,
1508
- 62: M,
1509
- 63: N,
1510
- 64: P,
1511
- 73: F
1512
- },
1513
- {
1514
- 4: o,
1515
- 5: s,
1516
- 8: 8,
1517
- 9: 10,
1518
- 10: c,
1519
- 13: 13,
1520
- 14: l,
1521
- 15: u,
1522
- 17: [1, 163],
1523
- 18: 16,
1524
- 19: d,
1525
- 22: f,
1526
- 23: 41,
1527
- 24: p,
1528
- 25: 20,
1529
- 26: 21,
1530
- 27: 22,
1531
- 28: 23,
1532
- 29: 24,
1533
- 30: m,
1534
- 31: h,
1535
- 32: g,
1536
- 34: _,
1537
- 36: v,
1538
- 37: y,
1539
- 38: b,
1540
- 39: x,
1541
- 40: S,
1542
- 42: C,
1543
- 44: w,
1544
- 45: T,
1545
- 47: E,
1546
- 51: D,
1547
- 53: O,
1548
- 54: k,
1549
- 56: A,
1550
- 61: j,
1551
- 62: M,
1552
- 63: N,
1553
- 64: P,
1554
- 73: F
1555
- },
1556
- { 17: [1, 164] },
1557
- {
1558
- 4: o,
1559
- 5: s,
1560
- 8: 8,
1561
- 9: 10,
1562
- 10: c,
1563
- 13: 13,
1564
- 14: l,
1565
- 15: u,
1566
- 17: [2, 47],
1567
- 18: 16,
1568
- 19: d,
1569
- 22: f,
1570
- 23: 41,
1571
- 24: p,
1572
- 25: 20,
1573
- 26: 21,
1574
- 27: 22,
1575
- 28: 23,
1576
- 29: 24,
1577
- 30: m,
1578
- 31: h,
1579
- 32: g,
1580
- 34: _,
1581
- 36: v,
1582
- 37: y,
1583
- 38: b,
1584
- 39: x,
1585
- 40: S,
1586
- 42: C,
1587
- 44: w,
1588
- 45: T,
1589
- 47: E,
1590
- 50: [1, 165],
1591
- 51: D,
1592
- 53: O,
1593
- 54: k,
1594
- 56: A,
1595
- 61: j,
1596
- 62: M,
1597
- 63: N,
1598
- 64: P,
1599
- 73: F
1600
- },
1601
- { 17: [1, 166] },
1602
- {
1603
- 4: o,
1604
- 5: s,
1605
- 8: 8,
1606
- 9: 10,
1607
- 10: c,
1608
- 13: 13,
1609
- 14: l,
1610
- 15: u,
1611
- 17: [2, 45],
1612
- 18: 16,
1613
- 19: d,
1614
- 22: f,
1615
- 23: 41,
1616
- 24: p,
1617
- 25: 20,
1618
- 26: 21,
1619
- 27: 22,
1620
- 28: 23,
1621
- 29: 24,
1622
- 30: m,
1623
- 31: h,
1624
- 32: g,
1625
- 34: _,
1626
- 36: v,
1627
- 37: y,
1628
- 38: b,
1629
- 39: x,
1630
- 40: S,
1631
- 42: C,
1632
- 44: w,
1633
- 45: T,
1634
- 47: E,
1635
- 49: [1, 167],
1636
- 51: D,
1637
- 53: O,
1638
- 54: k,
1639
- 56: A,
1640
- 61: j,
1641
- 62: M,
1642
- 63: N,
1643
- 64: P,
1644
- 73: F
1645
- },
1646
- { 17: [1, 168] },
1647
- { 17: [1, 169] },
1648
- {
1649
- 4: o,
1650
- 5: s,
1651
- 8: 8,
1652
- 9: 10,
1653
- 10: c,
1654
- 13: 13,
1655
- 14: l,
1656
- 15: u,
1657
- 17: [2, 43],
1658
- 18: 16,
1659
- 19: d,
1660
- 22: f,
1661
- 23: 41,
1662
- 24: p,
1663
- 25: 20,
1664
- 26: 21,
1665
- 27: 22,
1666
- 28: 23,
1667
- 29: 24,
1668
- 30: m,
1669
- 31: h,
1670
- 32: g,
1671
- 34: _,
1672
- 36: v,
1673
- 37: y,
1674
- 38: b,
1675
- 39: x,
1676
- 40: S,
1677
- 42: C,
1678
- 44: w,
1679
- 45: T,
1680
- 47: E,
1681
- 48: [1, 170],
1682
- 51: D,
1683
- 53: O,
1684
- 54: k,
1685
- 56: A,
1686
- 61: j,
1687
- 62: M,
1688
- 63: N,
1689
- 64: P,
1690
- 73: F
1691
- },
1692
- {
1693
- 4: o,
1694
- 5: s,
1695
- 8: 8,
1696
- 9: 10,
1697
- 10: c,
1698
- 13: 13,
1699
- 14: l,
1700
- 15: u,
1701
- 17: [1, 171],
1702
- 18: 16,
1703
- 19: d,
1704
- 22: f,
1705
- 23: 41,
1706
- 24: p,
1707
- 25: 20,
1708
- 26: 21,
1709
- 27: 22,
1710
- 28: 23,
1711
- 29: 24,
1712
- 30: m,
1713
- 31: h,
1714
- 32: g,
1715
- 34: _,
1716
- 36: v,
1717
- 37: y,
1718
- 38: b,
1719
- 39: x,
1720
- 40: S,
1721
- 42: C,
1722
- 44: w,
1723
- 45: T,
1724
- 47: E,
1725
- 51: D,
1726
- 53: O,
1727
- 54: k,
1728
- 56: A,
1729
- 61: j,
1730
- 62: M,
1731
- 63: N,
1732
- 64: P,
1733
- 73: F
1734
- },
1735
- { 16: [1, 172] },
1736
- e(I, [2, 50]),
1737
- { 16: [1, 173] },
1738
- e(I, [2, 55]),
1739
- e(we, [2, 76]),
1740
- { 76: [1, 174] },
1741
- { 16: [1, 175] },
1742
- e(I, [2, 52]),
1743
- { 16: [1, 176] },
1744
- e(I, [2, 57]),
1745
- e(I, [2, 53]),
1746
- {
1747
- 23: 177,
1748
- 73: F
1749
- },
1750
- {
1751
- 23: 178,
1752
- 73: F
1753
- },
1754
- {
1755
- 23: 179,
1756
- 73: F
1757
- },
1758
- {
1759
- 58: 180,
1760
- 104: q
1761
- },
1762
- {
1763
- 23: 181,
1764
- 72: [1, 182],
1765
- 73: F
1766
- },
1767
- {
1768
- 58: 183,
1769
- 104: q
1770
- },
1771
- {
1772
- 58: 184,
1773
- 104: q
1774
- },
1775
- {
1776
- 66: [1, 185],
1777
- 104: [2, 67]
1778
- },
1779
- { 5: [2, 60] },
1780
- { 5: [2, 105] },
1781
- { 5: [2, 61] },
1782
- { 5: [2, 62] },
1783
- { 5: [2, 63] },
1784
- e(I, [2, 17]),
1785
- e(ye, [2, 11]),
1786
- {
1787
- 13: 186,
1788
- 51: D,
1789
- 53: O,
1790
- 54: k
1791
- },
1792
- e(ye, [2, 13]),
1793
- e(ye, [2, 14]),
1794
- e(I, [2, 19]),
1795
- e(I, [2, 35]),
1796
- e(I, [2, 36]),
1797
- e(I, [2, 37]),
1798
- e(I, [2, 38]),
1799
- { 16: [1, 187] },
1800
- e(I, [2, 39]),
1801
- { 16: [1, 188] },
1802
- e(I, [2, 40]),
1803
- e(I, [2, 41]),
1804
- { 16: [1, 189] },
1805
- e(I, [2, 42]),
1806
- { 5: [1, 190] },
1807
- { 5: [1, 191] },
1808
- { 77: [1, 192] },
1809
- { 5: [1, 193] },
1810
- { 5: [1, 194] },
1811
- {
1812
- 58: 195,
1813
- 104: q
1814
- },
1815
- {
1816
- 58: 196,
1817
- 104: q
1818
- },
1819
- {
1820
- 58: 197,
1821
- 104: q
1822
- },
1823
- { 5: [2, 75] },
1824
- {
1825
- 58: 198,
1826
- 104: q
1827
- },
1828
- {
1829
- 23: 199,
1830
- 73: F
1831
- },
1832
- { 5: [2, 58] },
1833
- { 5: [2, 59] },
1834
- {
1835
- 23: 200,
1836
- 73: F
1837
- },
1838
- e(ye, [2, 12]),
1839
- e(xe, a, {
1840
- 7: 124,
1841
- 41: 201
1842
- }),
1843
- e(Se, a, {
1844
- 7: 126,
1845
- 43: 202
1846
- }),
1847
- e(Ce, a, {
1848
- 7: 129,
1849
- 46: 203
1850
- }),
1851
- e(I, [2, 49]),
1852
- e(I, [2, 54]),
1853
- e(we, [2, 77]),
1854
- e(I, [2, 51]),
1855
- e(I, [2, 56]),
1856
- { 5: [2, 70] },
1857
- { 5: [2, 71] },
1858
- { 5: [2, 72] },
1859
- { 5: [2, 73] },
1860
- {
1861
- 58: 204,
1862
- 104: q
1863
- },
1864
- { 104: [2, 66] },
1865
- { 17: [2, 48] },
1866
- { 17: [2, 46] },
1867
- { 17: [2, 44] },
1868
- { 5: [2, 74] }
1869
- ],
1870
- defaultActions: {
1871
- 5: [2, 1],
1872
- 6: [2, 2],
1873
- 108: [2, 68],
1874
- 109: [2, 69],
1875
- 150: [2, 60],
1876
- 151: [2, 105],
1877
- 152: [2, 61],
1878
- 153: [2, 62],
1879
- 154: [2, 63],
1880
- 180: [2, 75],
1881
- 183: [2, 58],
1882
- 184: [2, 59],
1883
- 195: [2, 70],
1884
- 196: [2, 71],
1885
- 197: [2, 72],
1886
- 198: [2, 73],
1887
- 200: [2, 66],
1888
- 201: [2, 48],
1889
- 202: [2, 46],
1890
- 203: [2, 44],
1891
- 204: [2, 74]
1892
- },
1893
- parseError: /* @__PURE__ */ t(function(e, t) {
1894
- if (t.recoverable) this.trace(e);
1895
- else {
1896
- var n = Error(e);
1897
- throw n.hash = t, n;
1898
- }
1899
- }, "parseError"),
1900
- parse: /* @__PURE__ */ t(function(e) {
1901
- var n = this, r = [0], i = [], a = [null], o = [], s = this.table, c = "", l = 0, u = 0, d = 0, f = 2, p = 1, m = o.slice.call(arguments, 1), h = Object.create(this.lexer), g = { yy: {} };
1902
- for (var _ in this.yy) Object.prototype.hasOwnProperty.call(this.yy, _) && (g.yy[_] = this.yy[_]);
1903
- h.setInput(e, g.yy), g.yy.lexer = h, g.yy.parser = this, h.yylloc === void 0 && (h.yylloc = {});
1904
- var v = h.yylloc;
1905
- o.push(v);
1906
- var y = h.options && h.options.ranges;
1907
- typeof g.yy.parseError == "function" ? this.parseError = g.yy.parseError : this.parseError = Object.getPrototypeOf(this).parseError;
1908
- function b(e) {
1909
- r.length -= 2 * e, a.length -= e, o.length -= e;
1910
- }
1911
- t(b, "popStack");
1912
- function x() {
1913
- var e = i.pop() || h.lex() || p;
1914
- return typeof e != "number" && (e instanceof Array && (i = e, e = i.pop()), e = n.symbols_[e] || e), e;
1915
- }
1916
- t(x, "lex");
1917
- for (var S, C, w, T, E, D = {}, O, k, A, j;;) {
1918
- if (w = r[r.length - 1], this.defaultActions[w] ? T = this.defaultActions[w] : (S ??= x(), T = s[w] && s[w][S]), T === void 0 || !T.length || !T[0]) {
1919
- var M = "";
1920
- for (O in j = [], s[w]) this.terminals_[O] && O > f && j.push("'" + this.terminals_[O] + "'");
1921
- 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, {
1922
- text: h.match,
1923
- token: this.terminals_[S] || S,
1924
- line: h.yylineno,
1925
- loc: v,
1926
- expected: j
1927
- });
1928
- }
1929
- if (T[0] instanceof Array && T.length > 1) throw Error("Parse Error: multiple actions possible at state: " + w + ", token: " + S);
1930
- switch (T[0]) {
1931
- case 1:
1932
- 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
- break;
1934
- case 2:
1935
- if (k = this.productions_[T[1]][1], D.$ = a[a.length - k], D._$ = {
1936
- first_line: o[o.length - (k || 1)].first_line,
1937
- last_line: o[o.length - 1].last_line,
1938
- first_column: o[o.length - (k || 1)].first_column,
1939
- last_column: o[o.length - 1].last_column
1940
- }, y && (D._$.range = [o[o.length - (k || 1)].range[0], o[o.length - 1].range[1]]), E = this.performAction.apply(D, [
1941
- c,
1942
- u,
1943
- l,
1944
- g.yy,
1945
- T[1],
1946
- a,
1947
- o
1948
- ].concat(m)), E !== void 0) return E;
1949
- 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
- break;
1951
- case 3: return !0;
1952
- }
1953
- }
1954
- return !0;
1955
- }, "parse")
1956
- };
1957
- Te.lexer = /* @__PURE__ */ (function() {
1958
- return {
1959
- EOF: 1,
1960
- parseError: /* @__PURE__ */ t(function(e, t) {
1961
- if (this.yy.parser) this.yy.parser.parseError(e, t);
1962
- else throw Error(e);
1963
- }, "parseError"),
1964
- setInput: /* @__PURE__ */ t(function(e, t) {
1965
- 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 = {
1966
- first_line: 1,
1967
- first_column: 0,
1968
- last_line: 1,
1969
- last_column: 0
1970
- }, this.options.ranges && (this.yylloc.range = [0, 0]), this.offset = 0, this;
1971
- }, "setInput"),
1972
- input: /* @__PURE__ */ t(function() {
1973
- var e = this._input[0];
1974
- 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;
1975
- }, "input"),
1976
- unput: /* @__PURE__ */ t(function(e) {
1977
- var t = e.length, n = e.split(/(?:\r\n?|\n)/g);
1978
- this._input = e + this._input, this.yytext = this.yytext.substr(0, this.yytext.length - t), this.offset -= t;
1979
- var r = this.match.split(/(?:\r\n?|\n)/g);
1980
- this.match = this.match.substr(0, this.match.length - 1), this.matched = this.matched.substr(0, this.matched.length - 1), n.length - 1 && (this.yylineno -= n.length - 1);
1981
- var i = this.yylloc.range;
1982
- return this.yylloc = {
1983
- first_line: this.yylloc.first_line,
1984
- last_line: this.yylineno + 1,
1985
- first_column: this.yylloc.first_column,
1986
- 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
1987
- }, this.options.ranges && (this.yylloc.range = [i[0], i[0] + this.yyleng - t]), this.yyleng = this.yytext.length, this;
1988
- }, "unput"),
1989
- more: /* @__PURE__ */ t(function() {
1990
- return this._more = !0, this;
1991
- }, "more"),
1992
- reject: /* @__PURE__ */ t(function() {
1993
- if (this.options.backtrack_lexer) this._backtrack = !0;
1994
- 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(), {
1995
- text: "",
1996
- token: null,
1997
- line: this.yylineno
1998
- });
1999
- return this;
2000
- }, "reject"),
2001
- less: /* @__PURE__ */ t(function(e) {
2002
- this.unput(this.match.slice(e));
2003
- }, "less"),
2004
- pastInput: /* @__PURE__ */ t(function() {
2005
- var e = this.matched.substr(0, this.matched.length - this.match.length);
2006
- return (e.length > 20 ? "..." : "") + e.substr(-20).replace(/\n/g, "");
2007
- }, "pastInput"),
2008
- upcomingInput: /* @__PURE__ */ t(function() {
2009
- var e = this.match;
2010
- return e.length < 20 && (e += this._input.substr(0, 20 - e.length)), (e.substr(0, 20) + (e.length > 20 ? "..." : "")).replace(/\n/g, "");
2011
- }, "upcomingInput"),
2012
- showPosition: /* @__PURE__ */ t(function() {
2013
- var e = this.pastInput(), t = Array(e.length + 1).join("-");
2014
- return e + this.upcomingInput() + "\n" + t + "^";
2015
- }, "showPosition"),
2016
- test_match: /* @__PURE__ */ t(function(e, t) {
2017
- var n, r, i;
2018
- if (this.options.backtrack_lexer && (i = {
2019
- yylineno: this.yylineno,
2020
- yylloc: {
2021
- first_line: this.yylloc.first_line,
2022
- last_line: this.last_line,
2023
- first_column: this.yylloc.first_column,
2024
- last_column: this.yylloc.last_column
2025
- },
2026
- yytext: this.yytext,
2027
- match: this.match,
2028
- matches: this.matches,
2029
- matched: this.matched,
2030
- yyleng: this.yyleng,
2031
- offset: this.offset,
2032
- _more: this._more,
2033
- _input: this._input,
2034
- yy: this.yy,
2035
- conditionStack: this.conditionStack.slice(0),
2036
- done: this.done
2037
- }, this.options.ranges && (i.yylloc.range = this.yylloc.range.slice(0))), r = e[0].match(/(?:\r\n?|\n).*/g), r && (this.yylineno += r.length), this.yylloc = {
2038
- first_line: this.yylloc.last_line,
2039
- last_line: this.yylineno + 1,
2040
- first_column: this.yylloc.last_column,
2041
- last_column: r ? r[r.length - 1].length - r[r.length - 1].match(/\r?\n?/)[0].length : this.yylloc.last_column + e[0].length
2042
- }, this.yytext += e[0], this.match += e[0], this.matches = e, this.yyleng = this.yytext.length, this.options.ranges && (this.yylloc.range = [this.offset, this.offset += this.yyleng]), this._more = !1, this._backtrack = !1, this._input = this._input.slice(e[0].length), this.matched += e[0], n = this.performAction.call(this, this.yy, this, t, this.conditionStack[this.conditionStack.length - 1]), this.done && this._input && (this.done = !1), n) return n;
2043
- if (this._backtrack) {
2044
- for (var a in i) this[a] = i[a];
2045
- return !1;
2046
- }
2047
- return !1;
2048
- }, "test_match"),
2049
- next: /* @__PURE__ */ t(function() {
2050
- if (this.done) return this.EOF;
2051
- this._input || (this.done = !0);
2052
- var e, t, n, r;
2053
- this._more || (this.yytext = "", this.match = "");
2054
- for (var i = this._currentRules(), a = 0; a < i.length; a++) if (n = this._input.match(this.rules[i[a]]), n && (!t || n[0].length > t[0].length)) {
2055
- if (t = n, r = a, this.options.backtrack_lexer) {
2056
- if (e = this.test_match(n, i[a]), e !== !1) return e;
2057
- if (this._backtrack) {
2058
- t = !1;
2059
- continue;
2060
- } else return !1;
2061
- } else if (!this.options.flex) break;
2062
- }
2063
- return t ? (e = this.test_match(t, i[r]), e === !1 ? !1 : e) : this._input === "" ? this.EOF : this.parseError("Lexical error on line " + (this.yylineno + 1) + ". Unrecognized text.\n" + this.showPosition(), {
2064
- text: "",
2065
- token: null,
2066
- line: this.yylineno
2067
- });
2068
- }, "next"),
2069
- lex: /* @__PURE__ */ t(function() {
2070
- return this.next() || this.lex();
2071
- }, "lex"),
2072
- begin: /* @__PURE__ */ t(function(e) {
2073
- this.conditionStack.push(e);
2074
- }, "begin"),
2075
- popState: /* @__PURE__ */ t(function() {
2076
- return this.conditionStack.length - 1 > 0 ? this.conditionStack.pop() : this.conditionStack[0];
2077
- }, "popState"),
2078
- _currentRules: /* @__PURE__ */ t(function() {
2079
- return this.conditionStack.length && this.conditionStack[this.conditionStack.length - 1] ? this.conditions[this.conditionStack[this.conditionStack.length - 1]].rules : this.conditions.INITIAL.rules;
2080
- }, "_currentRules"),
2081
- topState: /* @__PURE__ */ t(function(e) {
2082
- return e = this.conditionStack.length - 1 - Math.abs(e || 0), e >= 0 ? this.conditionStack[e] : "INITIAL";
2083
- }, "topState"),
2084
- pushState: /* @__PURE__ */ t(function(e) {
2085
- this.begin(e);
2086
- }, "pushState"),
2087
- stateStackSize: /* @__PURE__ */ t(function() {
2088
- return this.conditionStack.length;
2089
- }, "stateStackSize"),
2090
- options: { "case-insensitive": !0 },
2091
- performAction: /* @__PURE__ */ t(function(e, t, n, r) {
2092
- switch (n) {
2093
- case 0: return 5;
2094
- case 1: break;
2095
- case 2: break;
2096
- case 3: break;
2097
- case 4: break;
2098
- case 5: break;
2099
- case 6: return 20;
2100
- case 7: return this.begin("CONFIG"), 75;
2101
- case 8: return 76;
2102
- case 9: return this.popState(), this.begin("ALIAS"), 77;
2103
- case 10: return this.popState(), this.popState(), 77;
2104
- case 11: return t.yytext = t.yytext.trim(), 73;
2105
- case 12: return t.yytext = t.yytext.trim(), this.begin("ALIAS"), 73;
2106
- case 13: return t.yytext = t.yytext.trim(), this.popState(), 73;
2107
- case 14: return this.popState(), 10;
2108
- case 15: return this.begin("LINE"), 15;
2109
- case 16: return this.begin("ID"), 51;
2110
- case 17: return this.begin("ID"), 53;
2111
- case 18: return 14;
2112
- case 19: return this.begin("ID"), 54;
2113
- case 20: return this.popState(), this.popState(), this.begin("LINE"), 52;
2114
- case 21: return this.popState(), this.popState(), 5;
2115
- case 22: return this.begin("LINE"), 37;
2116
- case 23: return this.begin("LINE"), 38;
2117
- case 24: return this.begin("LINE"), 39;
2118
- case 25: return this.begin("LINE"), 40;
2119
- case 26: return this.begin("LINE"), 50;
2120
- case 27: return this.begin("LINE"), 42;
2121
- case 28: return this.begin("LINE"), 44;
2122
- case 29: return this.begin("LINE"), 49;
2123
- case 30: return this.begin("LINE"), 45;
2124
- case 31: return this.begin("LINE"), 48;
2125
- case 32: return this.begin("LINE"), 47;
2126
- case 33: return this.popState(), 16;
2127
- case 34: return 17;
2128
- case 35: return 67;
2129
- case 36: return 68;
2130
- case 37: return 61;
2131
- case 38: return 62;
2132
- case 39: return 63;
2133
- case 40: return 64;
2134
- case 41: return 59;
2135
- case 42: return 56;
2136
- case 43: return this.begin("ID"), 22;
2137
- case 44: return this.begin("ID"), 24;
2138
- case 45: return 30;
2139
- case 46: return 31;
2140
- case 47: return this.begin("acc_title"), 32;
2141
- case 48: return this.popState(), "acc_title_value";
2142
- case 49: return this.begin("acc_descr"), 34;
2143
- case 50: return this.popState(), "acc_descr_value";
2144
- case 51:
2145
- this.begin("acc_descr_multiline");
2146
- break;
2147
- case 52:
2148
- this.popState();
2149
- break;
2150
- case 53: return "acc_descr_multiline_value";
2151
- case 54: return 6;
2152
- case 55: return 19;
2153
- case 56: return 21;
2154
- case 57: return 66;
2155
- case 58: return 5;
2156
- case 59: return t.yytext = t.yytext.trim(), 73;
2157
- case 60: return 80;
2158
- case 61: return 97;
2159
- case 62: return 98;
2160
- case 63: return 99;
2161
- case 64: return 78;
2162
- case 65: return 79;
2163
- case 66: return 100;
2164
- case 67: return 101;
2165
- case 68: return 102;
2166
- case 69: return 103;
2167
- case 70: return 85;
2168
- case 71: return 86;
2169
- case 72: return 87;
2170
- case 73: return 88;
2171
- case 74: return 93;
2172
- case 75: return 94;
2173
- case 76: return 95;
2174
- case 77: return 96;
2175
- case 78: return 81;
2176
- case 79: return 82;
2177
- case 80: return 83;
2178
- case 81: return 84;
2179
- case 82: return 89;
2180
- case 83: return 90;
2181
- case 84: return 91;
2182
- case 85: return 92;
2183
- case 86: return 104;
2184
- case 87: return 104;
2185
- case 88: return 70;
2186
- case 89: return 71;
2187
- case 90: return 72;
2188
- case 91: return 5;
2189
- case 92: return 10;
2190
- }
2191
- }, "anonymous"),
2192
- rules: [
2193
- /^(?:[\n]+)/i,
2194
- /^(?:\s+)/i,
2195
- /^(?:((?!\n)\s)+)/i,
2196
- /^(?:#[^\n]*)/i,
2197
- /^(?:%(?!\{)[^\n]*)/i,
2198
- /^(?:[^\}]%%[^\n]*)/i,
2199
- /^(?:[0-9]+(?=[ \n]+))/i,
2200
- /^(?:@\{)/i,
2201
- /^(?:[^\}]+)/i,
2202
- /^(?:\}(?=\s+as\s))/i,
2203
- /^(?:\})/i,
2204
- /^(?:[^\<->\->:\n,;@\s]+(?=@\{))/i,
2205
- /^(?:[^<>:\n,;@\s]+(?=\s+as\s))/i,
2206
- /^(?:[^<>:\n,;@]+(?=\s*[\n;#]|$))/i,
2207
- /^(?:[^<>:\n,;@]*<[^\n]*)/i,
2208
- /^(?:box\b)/i,
2209
- /^(?:participant\b)/i,
2210
- /^(?:actor\b)/i,
2211
- /^(?:create\b)/i,
2212
- /^(?:destroy\b)/i,
2213
- /^(?:as\b)/i,
2214
- /^(?:(?:))/i,
2215
- /^(?:loop\b)/i,
2216
- /^(?:rect\b)/i,
2217
- /^(?:opt\b)/i,
2218
- /^(?:alt\b)/i,
2219
- /^(?:else\b)/i,
2220
- /^(?:par\b)/i,
2221
- /^(?:par_over\b)/i,
2222
- /^(?:and\b)/i,
2223
- /^(?:critical\b)/i,
2224
- /^(?:option\b)/i,
2225
- /^(?:break\b)/i,
2226
- /^(?:(?:[:]?(?:no)?wrap)?[^#\n;]*)/i,
2227
- /^(?:end\b)/i,
2228
- /^(?:left of\b)/i,
2229
- /^(?:right of\b)/i,
2230
- /^(?:links\b)/i,
2231
- /^(?:link\b)/i,
2232
- /^(?:properties\b)/i,
2233
- /^(?:details\b)/i,
2234
- /^(?:over\b)/i,
2235
- /^(?:note\b)/i,
2236
- /^(?:activate\b)/i,
2237
- /^(?:deactivate\b)/i,
2238
- /^(?:title\s[^#\n;]+)/i,
2239
- /^(?:title:\s[^#\n;]+)/i,
2240
- /^(?:accTitle\s*:\s*)/i,
2241
- /^(?:(?!\n||)*[^\n]*)/i,
2242
- /^(?:accDescr\s*:\s*)/i,
2243
- /^(?:(?!\n||)*[^\n]*)/i,
2244
- /^(?:accDescr\s*\{\s*)/i,
2245
- /^(?:[\}])/i,
2246
- /^(?:[^\}]*)/i,
2247
- /^(?:sequenceDiagram\b)/i,
2248
- /^(?:autonumber\b)/i,
2249
- /^(?:off\b)/i,
2250
- /^(?:,)/i,
2251
- /^(?:;)/i,
2252
- /^(?:[^\/\\\+\()\+<\->\->:\n,;]+((?!(-x|--x|-\)|--\)|-\|\\|-\\|-\/|-\/\/|-\|\/|\/\|-|\\\|-|\/\/-|\\\\-|\/\|-|--\|\\|--|\(\)))[\-]*[^\+<\->\->:\n,;]+)*)/i,
2253
- /^(?:->>)/i,
2254
- /^(?:<<->>)/i,
2255
- /^(?:-->>)/i,
2256
- /^(?:<<-->>)/i,
2257
- /^(?:->)/i,
2258
- /^(?:-->)/i,
2259
- /^(?:-[x])/i,
2260
- /^(?:--[x])/i,
2261
- /^(?:-[\)])/i,
2262
- /^(?:--[\)])/i,
2263
- /^(?:--\|\\)/i,
2264
- /^(?:--\|\/)/i,
2265
- /^(?:--\\\\)/i,
2266
- /^(?:--\/\/)/i,
2267
- /^(?:\/\|--)/i,
2268
- /^(?:\\\|--)/i,
2269
- /^(?:\/\/--)/i,
2270
- /^(?:\\\\--)/i,
2271
- /^(?:-\|\\)/i,
2272
- /^(?:-\|\/)/i,
2273
- /^(?:-\\\\)/i,
2274
- /^(?:-\/\/)/i,
2275
- /^(?:\/\|-)/i,
2276
- /^(?:\\\|-)/i,
2277
- /^(?:\/\/-)/i,
2278
- /^(?:\\\\-)/i,
2279
- /^(?::(?:(?:no)?wrap)?[^#\n;]*)/i,
2280
- /^(?::)/i,
2281
- /^(?:\+)/i,
2282
- /^(?:-)/i,
2283
- /^(?:\(\))/i,
2284
- /^(?:$)/i,
2285
- /^(?:.)/i
2286
- ],
2287
- conditions: {
2288
- acc_descr_multiline: {
2289
- rules: [52, 53],
2290
- inclusive: !1
2291
- },
2292
- acc_descr: {
2293
- rules: [50],
2294
- inclusive: !1
2295
- },
2296
- acc_title: {
2297
- rules: [48],
2298
- inclusive: !1
2299
- },
2300
- ID: {
2301
- rules: [
2302
- 2,
2303
- 3,
2304
- 7,
2305
- 11,
2306
- 12,
2307
- 13,
2308
- 14
2309
- ],
2310
- inclusive: !1
2311
- },
2312
- ALIAS: {
2313
- rules: [
2314
- 2,
2315
- 3,
2316
- 20,
2317
- 21
2318
- ],
2319
- inclusive: !1
2320
- },
2321
- LINE: {
2322
- rules: [
2323
- 2,
2324
- 3,
2325
- 33
2326
- ],
2327
- inclusive: !1
2328
- },
2329
- CONFIG: {
2330
- rules: [
2331
- 8,
2332
- 9,
2333
- 10
2334
- ],
2335
- inclusive: !1
2336
- },
2337
- CONFIG_DATA: {
2338
- rules: [],
2339
- inclusive: !1
2340
- },
2341
- INITIAL: {
2342
- rules: [
2343
- 0,
2344
- 1,
2345
- 3,
2346
- 4,
2347
- 5,
2348
- 6,
2349
- 15,
2350
- 16,
2351
- 17,
2352
- 18,
2353
- 19,
2354
- 22,
2355
- 23,
2356
- 24,
2357
- 25,
2358
- 26,
2359
- 27,
2360
- 28,
2361
- 29,
2362
- 30,
2363
- 31,
2364
- 32,
2365
- 34,
2366
- 35,
2367
- 36,
2368
- 37,
2369
- 38,
2370
- 39,
2371
- 40,
2372
- 41,
2373
- 42,
2374
- 43,
2375
- 44,
2376
- 45,
2377
- 46,
2378
- 47,
2379
- 49,
2380
- 51,
2381
- 54,
2382
- 55,
2383
- 56,
2384
- 57,
2385
- 58,
2386
- 59,
2387
- 60,
2388
- 61,
2389
- 62,
2390
- 63,
2391
- 64,
2392
- 65,
2393
- 66,
2394
- 67,
2395
- 68,
2396
- 69,
2397
- 70,
2398
- 71,
2399
- 72,
2400
- 73,
2401
- 74,
2402
- 75,
2403
- 76,
2404
- 77,
2405
- 78,
2406
- 79,
2407
- 80,
2408
- 81,
2409
- 82,
2410
- 83,
2411
- 84,
2412
- 85,
2413
- 86,
2414
- 87,
2415
- 88,
2416
- 89,
2417
- 90,
2418
- 91,
2419
- 92
2420
- ],
2421
- inclusive: !0
2422
- }
2423
- }
2424
- };
2425
- })();
2426
- function Ee() {
2427
- this.yy = {};
2428
- }
2429
- return t(Ee, "Parser"), Ee.prototype = Te, Te.Parser = Ee, new Ee();
2430
- })();
2431
- P.parser = P;
2432
- var F = P, I = {
2433
- SOLID: 0,
2434
- DOTTED: 1,
2435
- NOTE: 2,
2436
- SOLID_CROSS: 3,
2437
- DOTTED_CROSS: 4,
2438
- SOLID_OPEN: 5,
2439
- DOTTED_OPEN: 6,
2440
- LOOP_START: 10,
2441
- LOOP_END: 11,
2442
- ALT_START: 12,
2443
- ALT_ELSE: 13,
2444
- ALT_END: 14,
2445
- OPT_START: 15,
2446
- OPT_END: 16,
2447
- ACTIVE_START: 17,
2448
- ACTIVE_END: 18,
2449
- PAR_START: 19,
2450
- PAR_AND: 20,
2451
- PAR_END: 21,
2452
- RECT_START: 22,
2453
- RECT_END: 23,
2454
- SOLID_POINT: 24,
2455
- DOTTED_POINT: 25,
2456
- AUTONUMBER: 26,
2457
- CRITICAL_START: 27,
2458
- CRITICAL_OPTION: 28,
2459
- CRITICAL_END: 29,
2460
- BREAK_START: 30,
2461
- BREAK_END: 31,
2462
- PAR_OVER_START: 32,
2463
- BIDIRECTIONAL_SOLID: 33,
2464
- BIDIRECTIONAL_DOTTED: 34,
2465
- SOLID_TOP: 41,
2466
- SOLID_BOTTOM: 42,
2467
- STICK_TOP: 43,
2468
- STICK_BOTTOM: 44,
2469
- SOLID_ARROW_TOP_REVERSE: 45,
2470
- SOLID_ARROW_BOTTOM_REVERSE: 46,
2471
- STICK_ARROW_TOP_REVERSE: 47,
2472
- STICK_ARROW_BOTTOM_REVERSE: 48,
2473
- SOLID_TOP_DOTTED: 51,
2474
- SOLID_BOTTOM_DOTTED: 52,
2475
- STICK_TOP_DOTTED: 53,
2476
- STICK_BOTTOM_DOTTED: 54,
2477
- SOLID_ARROW_TOP_REVERSE_DOTTED: 55,
2478
- SOLID_ARROW_BOTTOM_REVERSE_DOTTED: 56,
2479
- STICK_ARROW_TOP_REVERSE_DOTTED: 57,
2480
- STICK_ARROW_BOTTOM_REVERSE_DOTTED: 58,
2481
- CENTRAL_CONNECTION: 59,
2482
- CENTRAL_CONNECTION_REVERSE: 60,
2483
- CENTRAL_CONNECTION_DUAL: 61
2484
- }, ee = {
2485
- FILLED: 0,
2486
- OPEN: 1
2487
- }, te = {
2488
- LEFTOF: 0,
2489
- RIGHTOF: 1,
2490
- OVER: 2
2491
- }, ne = {
2492
- ACTOR: "actor",
2493
- BOUNDARY: "boundary",
2494
- COLLECTIONS: "collections",
2495
- CONTROL: "control",
2496
- DATABASE: "database",
2497
- ENTITY: "entity",
2498
- PARTICIPANT: "participant",
2499
- QUEUE: "queue"
2500
- }, re = class {
2501
- constructor() {
2502
- this.state = new M(() => ({
2503
- prevActor: void 0,
2504
- actors: /* @__PURE__ */ new Map(),
2505
- createdActors: /* @__PURE__ */ new Map(),
2506
- destroyedActors: /* @__PURE__ */ new Map(),
2507
- boxes: [],
2508
- messages: [],
2509
- notes: [],
2510
- sequenceNumbersEnabled: !1,
2511
- wrapEnabled: void 0,
2512
- currentBox: void 0,
2513
- lastCreated: void 0,
2514
- lastDestroyed: void 0
2515
- })), this.setAccTitle = l, this.setAccDescription = r, this.setDiagramTitle = u, this.getAccTitle = y, this.getAccDescription = d, this.getDiagramTitle = i, this.apply = this.apply.bind(this), this.parseBoxData = this.parseBoxData.bind(this), this.parseMessage = this.parseMessage.bind(this), this.clear(), this.setWrap(p().wrap), this.LINETYPE = I, this.ARROWTYPE = ee, this.PLACEMENT = te;
2516
- }
2517
- static {
2518
- t(this, "SequenceDB");
2519
- }
2520
- addBox(e) {
2521
- this.state.records.boxes.push({
2522
- name: e.text,
2523
- wrap: e.wrap ?? this.autoWrap(),
2524
- fill: e.color,
2525
- actorKeys: []
2526
- }), this.state.records.currentBox = this.state.records.boxes.slice(-1)[0];
2527
- }
2528
- addActor(e, t, n, r, i) {
2529
- let a = this.state.records.currentBox, o;
2530
- if (i !== void 0) {
2531
- let e;
2532
- e = i.includes("\n") ? i + "\n" : "{\n" + i + "\n}", o = C(e, { schema: w });
2533
- }
2534
- r = o?.type ?? r, o?.alias && (!n || n.text === t) && (n = {
2535
- text: o.alias,
2536
- wrap: n?.wrap,
2537
- type: r
2538
- });
2539
- let s = this.state.records.actors.get(e);
2540
- if (s) {
2541
- if (this.state.records.currentBox && s.box && this.state.records.currentBox !== s.box) throw Error(`A same participant should only be defined in one Box: ${s.name} can't be in '${s.box.name}' and in '${this.state.records.currentBox.name}' at the same time.`);
2542
- if (a = s.box ? s.box : this.state.records.currentBox, s.box = a, s && t === s.name && n == null) return;
2543
- }
2544
- if (n?.text ?? (n = {
2545
- text: t,
2546
- type: r
2547
- }), (r == null || n.text == null) && (n = {
2548
- text: t,
2549
- type: r
2550
- }), this.state.records.actors.set(e, {
2551
- box: a,
2552
- name: t,
2553
- description: n.text,
2554
- wrap: n.wrap ?? this.autoWrap(),
2555
- prevActor: this.state.records.prevActor,
2556
- links: {},
2557
- properties: {},
2558
- actorCnt: null,
2559
- rectData: null,
2560
- type: r ?? "participant"
2561
- }), this.state.records.prevActor) {
2562
- let t = this.state.records.actors.get(this.state.records.prevActor);
2563
- t && (t.nextActor = e);
2564
- }
2565
- this.state.records.currentBox && this.state.records.currentBox.actorKeys.push(e), this.state.records.prevActor = e;
2566
- }
2567
- activationCount(e) {
2568
- let t, n = 0;
2569
- if (!e) return 0;
2570
- for (t = 0; t < this.state.records.messages.length; t++) this.state.records.messages[t].type === this.LINETYPE.ACTIVE_START && this.state.records.messages[t].from === e && n++, this.state.records.messages[t].type === this.LINETYPE.ACTIVE_END && this.state.records.messages[t].from === e && n--;
2571
- return n;
2572
- }
2573
- addMessage(e, t, n, r) {
2574
- this.state.records.messages.push({
2575
- id: this.state.records.messages.length.toString(),
2576
- from: e,
2577
- to: t,
2578
- message: n.text,
2579
- wrap: n.wrap ?? this.autoWrap(),
2580
- answer: r
2581
- });
2582
- }
2583
- addSignal(e, t, n, r, i = !1, a) {
2584
- if (r === this.LINETYPE.ACTIVE_END && this.activationCount(e ?? "") < 1) {
2585
- let t = /* @__PURE__ */ Error("Trying to inactivate an inactive participant (" + e + ")");
2586
- throw t.hash = {
2587
- text: "->>-",
2588
- token: "->>-",
2589
- line: "1",
2590
- loc: {
2591
- first_line: 1,
2592
- last_line: 1,
2593
- first_column: 1,
2594
- last_column: 1
2595
- },
2596
- expected: ["'ACTIVE_PARTICIPANT'"]
2597
- }, t;
2598
- }
2599
- return this.state.records.messages.push({
2600
- id: this.state.records.messages.length.toString(),
2601
- from: e,
2602
- to: t,
2603
- message: n?.text ?? "",
2604
- wrap: n?.wrap ?? this.autoWrap(),
2605
- type: r,
2606
- activate: i,
2607
- centralConnection: a ?? 0
2608
- }), !0;
2609
- }
2610
- hasAtLeastOneBox() {
2611
- return this.state.records.boxes.length > 0;
2612
- }
2613
- hasAtLeastOneBoxWithTitle() {
2614
- return this.state.records.boxes.some((e) => e.name);
2615
- }
2616
- getMessages() {
2617
- return this.state.records.messages;
2618
- }
2619
- getBoxes() {
2620
- return this.state.records.boxes;
2621
- }
2622
- getActors() {
2623
- return this.state.records.actors;
2624
- }
2625
- getCreatedActors() {
2626
- return this.state.records.createdActors;
2627
- }
2628
- getDestroyedActors() {
2629
- return this.state.records.destroyedActors;
2630
- }
2631
- getActor(e) {
2632
- return this.state.records.actors.get(e);
2633
- }
2634
- getActorKeys() {
2635
- return [...this.state.records.actors.keys()];
2636
- }
2637
- enableSequenceNumbers() {
2638
- this.state.records.sequenceNumbersEnabled = !0;
2639
- }
2640
- disableSequenceNumbers() {
2641
- this.state.records.sequenceNumbersEnabled = !1;
2642
- }
2643
- showSequenceNumbers() {
2644
- return this.state.records.sequenceNumbersEnabled;
2645
- }
2646
- setWrap(e) {
2647
- this.state.records.wrapEnabled = e;
2648
- }
2649
- extractWrap(e) {
2650
- if (e === void 0) return {};
2651
- e = e.trim();
2652
- let t = /^:?wrap:/.exec(e) === null ? /^:?nowrap:/.exec(e) === null ? void 0 : !1 : !0;
2653
- return {
2654
- cleanedText: (t === void 0 ? e : e.replace(/^:?(?:no)?wrap:/, "")).trim(),
2655
- wrap: t
2656
- };
2657
- }
2658
- autoWrap() {
2659
- return this.state.records.wrapEnabled === void 0 ? p().sequence?.wrap ?? !1 : this.state.records.wrapEnabled;
2660
- }
2661
- clear() {
2662
- this.state.reset(), f();
2663
- }
2664
- parseMessage(t) {
2665
- let n = t.trim(), { wrap: r, cleanedText: i } = this.extractWrap(n), a = {
2666
- text: i,
2667
- wrap: r
2668
- };
2669
- return e.debug(`parseMessage: ${JSON.stringify(a)}`), a;
2670
- }
2671
- parseBoxData(e) {
2672
- let t = /^((?:rgba?|hsla?)\s*\(.*\)|\w*)(.*)$/.exec(e), n = t?.[1] ? t[1].trim() : "transparent", r = t?.[2] ? t[2].trim() : void 0;
2673
- if (window?.CSS) window.CSS.supports("color", n) || (n = "transparent", r = e.trim());
2674
- else {
2675
- let t = new Option().style;
2676
- t.color = n, t.color !== n && (n = "transparent", r = e.trim());
2677
- }
2678
- let { wrap: i, cleanedText: a } = this.extractWrap(r);
2679
- return {
2680
- text: a ? o(a, p()) : void 0,
2681
- color: n,
2682
- wrap: i
2683
- };
2684
- }
2685
- addNote(e, t, n) {
2686
- let r = {
2687
- actor: e,
2688
- placement: t,
2689
- message: n.text,
2690
- wrap: n.wrap ?? this.autoWrap()
2691
- }, i = [].concat(e, e);
2692
- this.state.records.notes.push(r), this.state.records.messages.push({
2693
- id: this.state.records.messages.length.toString(),
2694
- from: i[0],
2695
- to: i[1],
2696
- message: n.text,
2697
- wrap: n.wrap ?? this.autoWrap(),
2698
- type: this.LINETYPE.NOTE,
2699
- placement: t
2700
- });
2701
- }
2702
- addLinks(t, n) {
2703
- let r = this.getActor(t);
2704
- try {
2705
- let e = o(n.text, p());
2706
- e = e.replace(/&equals;/g, "="), e = e.replace(/&amp;/g, "&");
2707
- let t = JSON.parse(e);
2708
- this.insertLinks(r, t);
2709
- } catch (t) {
2710
- e.error("error while parsing actor link text", t);
2711
- }
2712
- }
2713
- addALink(t, n) {
2714
- let r = this.getActor(t);
2715
- try {
2716
- let e = {}, t = o(n.text, p()), i = t.indexOf("@");
2717
- t = t.replace(/&equals;/g, "="), t = t.replace(/&amp;/g, "&");
2718
- let a = t.slice(0, i - 1).trim();
2719
- e[a] = t.slice(i + 1).trim(), this.insertLinks(r, e);
2720
- } catch (t) {
2721
- e.error("error while parsing actor link text", t);
2722
- }
2723
- }
2724
- insertLinks(e, t) {
2725
- if (e.links == null) e.links = t;
2726
- else for (let n in t) e.links[n] = t[n];
2727
- }
2728
- addProperties(t, n) {
2729
- let r = this.getActor(t);
2730
- try {
2731
- let e = o(n.text, p()), t = JSON.parse(e);
2732
- this.insertProperties(r, t);
2733
- } catch (t) {
2734
- e.error("error while parsing actor properties text", t);
2735
- }
2736
- }
2737
- insertProperties(e, t) {
2738
- if (e.properties == null) e.properties = t;
2739
- else for (let n in t) e.properties[n] = t[n];
2740
- }
2741
- boxEnd() {
2742
- this.state.records.currentBox = void 0;
2743
- }
2744
- addDetails(t, n) {
2745
- let r = this.getActor(t), i = document.getElementById(n.text);
2746
- try {
2747
- let e = i.innerHTML, t = JSON.parse(e);
2748
- t.properties && this.insertProperties(r, t.properties), t.links && this.insertLinks(r, t.links);
2749
- } catch (t) {
2750
- e.error("error while parsing actor details text", t);
2751
- }
2752
- }
2753
- getActorProperty(e, t) {
2754
- if (e?.properties !== void 0) return e.properties[t];
2755
- }
2756
- apply(e) {
2757
- if (Array.isArray(e)) e.forEach((e) => {
2758
- this.apply(e);
2759
- });
2760
- else switch (e.type) {
2761
- case "sequenceIndex":
2762
- this.state.records.messages.push({
2763
- id: this.state.records.messages.length.toString(),
2764
- from: void 0,
2765
- to: void 0,
2766
- message: {
2767
- start: e.sequenceIndex,
2768
- step: e.sequenceIndexStep,
2769
- visible: e.sequenceVisible
2770
- },
2771
- wrap: !1,
2772
- type: e.signalType
2773
- });
2774
- break;
2775
- case "addParticipant":
2776
- this.addActor(e.actor, e.actor, e.description, e.draw, e.config);
2777
- break;
2778
- case "createParticipant":
2779
- if (this.state.records.actors.has(e.actor)) throw Error("It is not possible to have actors with the same id, even if one is destroyed before the next is created. Use 'AS' aliases to simulate the behavior");
2780
- this.state.records.lastCreated = e.actor, this.addActor(e.actor, e.actor, e.description, e.draw, e.config), this.state.records.createdActors.set(e.actor, this.state.records.messages.length);
2781
- break;
2782
- case "destroyParticipant":
2783
- this.state.records.lastDestroyed = e.actor, this.state.records.destroyedActors.set(e.actor, this.state.records.messages.length);
2784
- break;
2785
- case "activeStart":
2786
- this.addSignal(e.actor, void 0, void 0, e.signalType);
2787
- break;
2788
- case "centralConnection":
2789
- this.addSignal(e.actor, void 0, void 0, e.signalType);
2790
- break;
2791
- case "centralConnectionReverse":
2792
- this.addSignal(e.actor, void 0, void 0, e.signalType);
2793
- break;
2794
- case "activeEnd":
2795
- this.addSignal(e.actor, void 0, void 0, e.signalType);
2796
- break;
2797
- case "addNote":
2798
- this.addNote(e.actor, e.placement, e.text);
2799
- break;
2800
- case "addLinks":
2801
- this.addLinks(e.actor, e.text);
2802
- break;
2803
- case "addALink":
2804
- this.addALink(e.actor, e.text);
2805
- break;
2806
- case "addProperties":
2807
- this.addProperties(e.actor, e.text);
2808
- break;
2809
- case "addDetails":
2810
- this.addDetails(e.actor, e.text);
2811
- break;
2812
- case "addMessage":
2813
- if (this.state.records.lastCreated) {
2814
- if (e.to !== this.state.records.lastCreated) throw Error("The created participant " + this.state.records.lastCreated.name + " does not have an associated creating message after its declaration. Please check the sequence diagram.");
2815
- this.state.records.lastCreated = void 0;
2816
- } else if (this.state.records.lastDestroyed) {
2817
- if (e.to !== this.state.records.lastDestroyed && e.from !== this.state.records.lastDestroyed) throw Error("The destroyed participant " + this.state.records.lastDestroyed.name + " does not have an associated destroying message after its declaration. Please check the sequence diagram.");
2818
- this.state.records.lastDestroyed = void 0;
2819
- }
2820
- this.addSignal(e.from, e.to, e.msg, e.signalType, e.activate, e.centralConnection);
2821
- break;
2822
- case "boxStart":
2823
- this.addBox(e.boxData);
2824
- break;
2825
- case "boxEnd":
2826
- this.boxEnd();
2827
- break;
2828
- case "loopStart":
2829
- this.addSignal(void 0, void 0, e.loopText, e.signalType);
2830
- break;
2831
- case "loopEnd":
2832
- this.addSignal(void 0, void 0, void 0, e.signalType);
2833
- break;
2834
- case "rectStart":
2835
- this.addSignal(void 0, void 0, e.color, e.signalType);
2836
- break;
2837
- case "rectEnd":
2838
- this.addSignal(void 0, void 0, void 0, e.signalType);
2839
- break;
2840
- case "optStart":
2841
- this.addSignal(void 0, void 0, e.optText, e.signalType);
2842
- break;
2843
- case "optEnd":
2844
- this.addSignal(void 0, void 0, void 0, e.signalType);
2845
- break;
2846
- case "altStart":
2847
- this.addSignal(void 0, void 0, e.altText, e.signalType);
2848
- break;
2849
- case "else":
2850
- this.addSignal(void 0, void 0, e.altText, e.signalType);
2851
- break;
2852
- case "altEnd":
2853
- this.addSignal(void 0, void 0, void 0, e.signalType);
2854
- break;
2855
- case "setAccTitle":
2856
- l(e.text);
2857
- break;
2858
- case "parStart":
2859
- this.addSignal(void 0, void 0, e.parText, e.signalType);
2860
- break;
2861
- case "and":
2862
- this.addSignal(void 0, void 0, e.parText, e.signalType);
2863
- break;
2864
- case "parEnd":
2865
- this.addSignal(void 0, void 0, void 0, e.signalType);
2866
- break;
2867
- case "criticalStart":
2868
- this.addSignal(void 0, void 0, e.criticalText, e.signalType);
2869
- break;
2870
- case "option":
2871
- this.addSignal(void 0, void 0, e.optionText, e.signalType);
2872
- break;
2873
- case "criticalEnd":
2874
- this.addSignal(void 0, void 0, void 0, e.signalType);
2875
- break;
2876
- case "breakStart":
2877
- this.addSignal(void 0, void 0, e.breakText, e.signalType);
2878
- break;
2879
- case "breakEnd":
2880
- this.addSignal(void 0, void 0, void 0, e.signalType);
2881
- break;
2882
- }
2883
- }
2884
- getConfig() {
2885
- return p().sequence;
2886
- }
2887
- }, ie = /* @__PURE__ */ t((e) => `.actor {
2888
- stroke: ${e.actorBorder};
2889
- fill: ${e.actorBkg};
2890
- }
2891
-
2892
- text.actor > tspan {
2893
- fill: ${e.actorTextColor};
2894
- stroke: none;
2895
- }
2896
-
2897
- .actor-line {
2898
- stroke: ${e.actorLineColor};
2899
- }
2900
-
2901
- .innerArc {
2902
- stroke-width: 1.5;
2903
- stroke-dasharray: none;
2904
- }
2905
-
2906
- .messageLine0 {
2907
- stroke-width: 1.5;
2908
- stroke-dasharray: none;
2909
- stroke: ${e.signalColor};
2910
- }
2911
-
2912
- .messageLine1 {
2913
- stroke-width: 1.5;
2914
- stroke-dasharray: 2, 2;
2915
- stroke: ${e.signalColor};
2916
- }
2917
-
2918
- #arrowhead path {
2919
- fill: ${e.signalColor};
2920
- stroke: ${e.signalColor};
2921
- }
2922
-
2923
- .sequenceNumber {
2924
- fill: ${e.sequenceNumberColor};
2925
- }
2926
-
2927
- #sequencenumber {
2928
- fill: ${e.signalColor};
2929
- }
2930
-
2931
- #crosshead path {
2932
- fill: ${e.signalColor};
2933
- stroke: ${e.signalColor};
2934
- }
2935
-
2936
- .messageText {
2937
- fill: ${e.signalTextColor};
2938
- stroke: none;
2939
- }
2940
-
2941
- .labelBox {
2942
- stroke: ${e.labelBoxBorderColor};
2943
- fill: ${e.labelBoxBkgColor};
2944
- }
2945
-
2946
- .labelText, .labelText > tspan {
2947
- fill: ${e.labelTextColor};
2948
- stroke: none;
2949
- }
2950
-
2951
- .loopText, .loopText > tspan {
2952
- fill: ${e.loopTextColor};
2953
- stroke: none;
2954
- }
2955
-
2956
- .loopLine {
2957
- stroke-width: 2px;
2958
- stroke-dasharray: 2, 2;
2959
- stroke: ${e.labelBoxBorderColor};
2960
- fill: ${e.labelBoxBorderColor};
2961
- }
2962
-
2963
- .note {
2964
- //stroke: #decc93;
2965
- stroke: ${e.noteBorderColor};
2966
- fill: ${e.noteBkgColor};
2967
- }
2968
-
2969
- .noteText, .noteText > tspan {
2970
- fill: ${e.noteTextColor};
2971
- stroke: none;
2972
- }
2973
-
2974
- .activation0 {
2975
- fill: ${e.activationBkgColor};
2976
- stroke: ${e.activationBorderColor};
2977
- }
2978
-
2979
- .activation1 {
2980
- fill: ${e.activationBkgColor};
2981
- stroke: ${e.activationBorderColor};
2982
- }
2983
-
2984
- .activation2 {
2985
- fill: ${e.activationBkgColor};
2986
- stroke: ${e.activationBorderColor};
2987
- }
2988
-
2989
- .actorPopupMenu {
2990
- position: absolute;
2991
- }
2992
-
2993
- .actorPopupMenuPanel {
2994
- position: absolute;
2995
- fill: ${e.actorBkg};
2996
- box-shadow: 0px 8px 16px 0px rgba(0,0,0,0.2);
2997
- filter: drop-shadow(3px 5px 2px rgb(0 0 0 / 0.4));
2998
- }
2999
- .actor-man line {
3000
- stroke: ${e.actorBorder};
3001
- fill: ${e.actorBkg};
3002
- }
3003
- .actor-man circle, line {
3004
- stroke: ${e.actorBorder};
3005
- fill: ${e.actorBkg};
3006
- stroke-width: 2px;
3007
- }
3008
-
3009
- `, "getStyles"), L = 36, R = "actor-top", z = "actor-bottom", B = "actor-box", V = "actor-man", H = /* @__PURE__ */ t(function(e, t) {
3010
- return E(e, t);
3011
- }, "drawRect"), ae = /* @__PURE__ */ t(function(e, t, n, r, i) {
3012
- if (t.links === void 0 || t.links === null || Object.keys(t.links).length === 0) return {
3013
- height: 0,
3014
- width: 0
3015
- };
3016
- let a = t.links, o = t.actorCnt, s = t.rectData;
3017
- var c = "none";
3018
- i && (c = "block !important");
3019
- let l = e.append("g");
3020
- l.attr("id", "actor" + o + "_popup"), l.attr("class", "actorPopupMenu"), l.attr("display", c);
3021
- var u = "";
3022
- s.class !== void 0 && (u = " " + s.class);
3023
- let d = s.width > n ? s.width : n, f = l.append("rect");
3024
- if (f.attr("class", "actorPopupMenuPanel" + u), f.attr("x", s.x), f.attr("y", s.height), f.attr("fill", s.fill), f.attr("stroke", s.stroke), f.attr("width", d), f.attr("height", s.height), f.attr("rx", s.rx), f.attr("ry", s.ry), a != null) {
3025
- var p = 20;
3026
- for (let e in a) {
3027
- var m = l.append("a"), h = (0, N.sanitizeUrl)(a[e]);
3028
- m.attr("xlink:href", h), m.attr("target", "_blank"), Ae(r)(e, m, s.x + 10, s.height + p, d, 20, { class: "actor" }, r), p += 30;
3029
- }
3030
- }
3031
- return f.attr("height", p), {
3032
- height: s.height + p,
3033
- width: d
3034
- };
3035
- }, "drawPopup"), U = /* @__PURE__ */ t(function(e) {
3036
- return "var pu = document.getElementById('" + e + "'); if (pu != null) { pu.style.display = pu.style.display == 'block' ? 'none' : 'block'; }";
3037
- }, "popupMenuToggle"), oe = /* @__PURE__ */ t(async function(e, t, n = null) {
3038
- let r = e.append("foreignObject"), i = await s(t.text, b()), a = r.append("xhtml:div").attr("style", "width: fit-content;").attr("xmlns", "http://www.w3.org/1999/xhtml").html(i).node().getBoundingClientRect();
3039
- if (r.attr("height", Math.round(a.height)).attr("width", Math.round(a.width)), t.class === "noteText") {
3040
- let n = e.node().firstChild;
3041
- n.setAttribute("height", a.height + 2 * t.textMargin);
3042
- let i = n.getBBox();
3043
- r.attr("x", Math.round(i.x + i.width / 2 - a.width / 2)).attr("y", Math.round(i.y + i.height / 2 - a.height / 2));
3044
- } else if (n) {
3045
- let { startx: e, stopx: i, starty: o } = n;
3046
- if (e > i) {
3047
- let t = e;
3048
- e = i, i = t;
3049
- }
3050
- 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));
3051
- }
3052
- return [r];
3053
- }, "drawKatex"), W = /* @__PURE__ */ t(function(e, n) {
3054
- let r = 0, i = 0, a = n.text.split(v.lineBreakRegex), [o, s] = x(n.fontSize), c = [], l = 0, u = /* @__PURE__ */ t(() => n.y, "yfunc");
3055
- if (n.valign !== void 0 && n.textMargin !== void 0 && n.textMargin > 0) switch (n.valign) {
3056
- case "top":
3057
- case "start":
3058
- u = /* @__PURE__ */ t(() => Math.round(n.y + n.textMargin), "yfunc");
3059
- break;
3060
- case "middle":
3061
- case "center":
3062
- u = /* @__PURE__ */ t(() => Math.round(n.y + (r + i + n.textMargin) / 2), "yfunc");
3063
- break;
3064
- case "bottom":
3065
- case "end":
3066
- u = /* @__PURE__ */ t(() => Math.round(n.y + (r + i + 2 * n.textMargin) - n.textMargin), "yfunc");
3067
- break;
3068
- }
3069
- if (n.anchor !== void 0 && n.textMargin !== void 0 && n.width !== void 0) switch (n.anchor) {
3070
- case "left":
3071
- case "start":
3072
- n.x = Math.round(n.x + n.textMargin), n.anchor = "start", n.dominantBaseline = "middle", n.alignmentBaseline = "middle";
3073
- break;
3074
- case "middle":
3075
- case "center":
3076
- n.x = Math.round(n.x + n.width / 2), n.anchor = "middle", n.dominantBaseline = "middle", n.alignmentBaseline = "middle";
3077
- break;
3078
- case "right":
3079
- case "end":
3080
- n.x = Math.round(n.x + n.width - n.textMargin), n.anchor = "end", n.dominantBaseline = "middle", n.alignmentBaseline = "middle";
3081
- break;
3082
- }
3083
- for (let [t, d] of a.entries()) {
3084
- n.textMargin !== void 0 && n.textMargin === 0 && o !== void 0 && (l = t * o);
3085
- let a = e.append("text");
3086
- a.attr("x", n.x), a.attr("y", u()), n.anchor !== void 0 && a.attr("text-anchor", n.anchor).attr("dominant-baseline", n.dominantBaseline).attr("alignment-baseline", n.alignmentBaseline), n.fontFamily !== void 0 && a.style("font-family", n.fontFamily), s !== void 0 && a.style("font-size", s), n.fontWeight !== void 0 && a.style("font-weight", n.fontWeight), n.fill !== void 0 && a.attr("fill", n.fill), n.class !== void 0 && a.attr("class", n.class), n.dy === void 0 ? l !== 0 && a.attr("dy", l) : a.attr("dy", n.dy);
3087
- let f = d || "​";
3088
- if (n.tspan) {
3089
- let e = a.append("tspan");
3090
- e.attr("x", n.x), n.fill !== void 0 && e.attr("fill", n.fill), e.text(f);
3091
- } else a.text(f);
3092
- n.valign !== void 0 && n.textMargin !== void 0 && n.textMargin > 0 && (i += (a._groups || a)[0][0].getBBox().height, r = i), c.push(a);
3093
- }
3094
- return c;
3095
- }, "drawText"), se = /* @__PURE__ */ t(function(e, n) {
3096
- function r(e, t, n, r, i) {
3097
- return e + "," + t + " " + (e + n) + "," + t + " " + (e + n) + "," + (t + r - i) + " " + (e + n - i * 1.2) + "," + (t + r) + " " + e + "," + (t + r);
3098
- }
3099
- t(r, "genPoints");
3100
- let i = e.append("polygon");
3101
- return i.attr("points", r(n.x, n.y, n.width, n.height, 7)), i.attr("class", "labelBox"), n.y += n.height / 2, W(e, n), i;
3102
- }, "drawLabel"), G = -1, ce = /* @__PURE__ */ t((e, t, n, r) => {
3103
- e.select && n.forEach((n) => {
3104
- let i = t.get(n), a = e.select("#actor" + i.actorCnt);
3105
- !r.mirrorActors && i.stopy ? a.attr("y2", i.stopy + i.height / 2) : r.mirrorActors && a.attr("y2", i.stopy);
3106
- });
3107
- }, "fixLifeLineHeights"), le = /* @__PURE__ */ t(function(e, t, n, r) {
3108
- let i = r ? t.stopy : t.starty, a = t.x + t.width / 2, o = i + t.height, s = e.append("g").lower();
3109
- var c = s;
3110
- r || (G++, Object.keys(t.links || {}).length && !n.forceMenus && c.attr("onclick", U(`actor${G}_popup`)).attr("cursor", "pointer"), c.append("line").attr("id", "actor" + G).attr("x1", a).attr("y1", o).attr("x2", a).attr("y2", 2e3).attr("class", "actor-line 200").attr("stroke-width", "0.5px").attr("stroke", "#999").attr("name", t.name), c = s.append("g"), t.actorCnt = G, t.links != null && c.attr("id", "root-" + G));
3111
- let l = j();
3112
- var u = "actor";
3113
- t.properties?.class ? u = t.properties.class : l.fill = "#eaeaea", r ? u += ` ${z}` : u += ` ${R}`, l.x = t.x, l.y = i, l.width = t.width, l.height = t.height, l.class = u, l.rx = 3, l.ry = 3, l.name = t.name;
3114
- let d = H(c, l);
3115
- if (t.rectData = l, t.properties?.icon) {
3116
- let e = t.properties.icon.trim();
3117
- e.charAt(0) === "@" ? A(c, l.x + l.width - 20, l.y + 10, e.substr(1)) : O(c, l.x + l.width - 20, l.y + 10, e);
3118
- }
3119
- J(n, g(t.description))(t.description, c, l.x, l.y, l.width, l.height, { class: `actor ${B}` }, n);
3120
- let f = t.height;
3121
- if (d.node) {
3122
- let e = d.node().getBBox();
3123
- t.height = e.height, f = e.height;
3124
- }
3125
- return f;
3126
- }, "drawActorTypeParticipant"), ue = /* @__PURE__ */ t(function(e, t, n, r) {
3127
- let i = r ? t.stopy : t.starty, a = t.x + t.width / 2, o = i + t.height, s = e.append("g").lower();
3128
- var c = s;
3129
- r || (G++, Object.keys(t.links || {}).length && !n.forceMenus && c.attr("onclick", U(`actor${G}_popup`)).attr("cursor", "pointer"), c.append("line").attr("id", "actor" + G).attr("x1", a).attr("y1", o).attr("x2", a).attr("y2", 2e3).attr("class", "actor-line 200").attr("stroke-width", "0.5px").attr("stroke", "#999").attr("name", t.name), c = s.append("g"), t.actorCnt = G, t.links != null && c.attr("id", "root-" + G));
3130
- let l = j();
3131
- var u = "actor";
3132
- t.properties?.class ? u = t.properties.class : l.fill = "#eaeaea", r ? u += ` ${z}` : u += ` ${R}`, l.x = t.x, l.y = i, l.width = t.width, l.height = t.height, l.class = u, l.name = t.name;
3133
- let d = {
3134
- ...l,
3135
- x: l.x + -6,
3136
- y: l.y + 6,
3137
- class: "actor"
3138
- }, f = H(c, l);
3139
- if (H(c, d), t.rectData = l, t.properties?.icon) {
3140
- let e = t.properties.icon.trim();
3141
- e.charAt(0) === "@" ? A(c, l.x + l.width - 20, l.y + 10, e.substr(1)) : O(c, l.x + l.width - 20, l.y + 10, e);
3142
- }
3143
- J(n, g(t.description))(t.description, c, l.x - 6, l.y + 6, l.width, l.height, { class: `actor ${B}` }, n);
3144
- let p = t.height;
3145
- if (f.node) {
3146
- let e = f.node().getBBox();
3147
- t.height = e.height, p = e.height;
3148
- }
3149
- return p;
3150
- }, "drawActorTypeCollections"), de = /* @__PURE__ */ t(function(e, t, n, r) {
3151
- let i = r ? t.stopy : t.starty, a = t.x + t.width / 2, o = i + t.height, s = e.append("g").lower(), c = s;
3152
- r || (G++, Object.keys(t.links || {}).length && !n.forceMenus && c.attr("onclick", U(`actor${G}_popup`)).attr("cursor", "pointer"), c.append("line").attr("id", "actor" + G).attr("x1", a).attr("y1", o).attr("x2", a).attr("y2", 2e3).attr("class", "actor-line 200").attr("stroke-width", "0.5px").attr("stroke", "#999").attr("name", t.name), c = s.append("g"), t.actorCnt = G, t.links != null && c.attr("id", "root-" + G));
3153
- let l = j(), u = "actor";
3154
- t.properties?.class ? u = t.properties.class : l.fill = "#eaeaea", r ? u += ` ${z}` : u += ` ${R}`, l.x = t.x, l.y = i, l.width = t.width, l.height = t.height, l.class = u, l.name = t.name;
3155
- let d = l.height / 2, f = d / (2.5 + l.height / 50), p = c.append("g"), m = c.append("g");
3156
- if (p.append("path").attr("d", `M ${l.x},${l.y + d}
3157
- a ${f},${d} 0 0 0 0,${l.height}
3158
- h ${l.width - 2 * f}
3159
- a ${f},${d} 0 0 0 0,-${l.height}
3160
- Z
3161
- `).attr("class", u), m.append("path").attr("d", `M ${l.x},${l.y + d}
3162
- a ${f},${d} 0 0 0 0,${l.height}`).attr("stroke", "#666").attr("stroke-width", "1px").attr("class", u), p.attr("transform", `translate(${f}, ${-(l.height / 2)})`), m.attr("transform", `translate(${l.width - f}, ${-l.height / 2})`), t.rectData = l, t.properties?.icon) {
3163
- let e = t.properties.icon.trim(), n = l.x + l.width - 20, r = l.y + 10;
3164
- e.charAt(0) === "@" ? A(c, n, r, e.substr(1)) : O(c, n, r, e);
3165
- }
3166
- J(n, g(t.description))(t.description, c, l.x, l.y, l.width, l.height, { class: `actor ${B}` }, n);
3167
- let h = t.height, _ = p.select("path:last-child");
3168
- if (_.node()) {
3169
- let e = _.node().getBBox();
3170
- t.height = e.height, h = e.height;
3171
- }
3172
- return h;
3173
- }, "drawActorTypeQueue"), fe = /* @__PURE__ */ t(function(e, t, n, r) {
3174
- let i = r ? t.stopy : t.starty, a = t.x + t.width / 2, o = i + 75, s = e.append("g").lower();
3175
- r || (G++, s.append("line").attr("id", "actor" + G).attr("x1", a).attr("y1", o).attr("x2", a).attr("y2", 2e3).attr("class", "actor-line 200").attr("stroke-width", "0.5px").attr("stroke", "#999").attr("name", t.name), t.actorCnt = G);
3176
- let c = e.append("g"), l = V;
3177
- r ? l += ` ${z}` : l += ` ${R}`, c.attr("class", l), c.attr("name", t.name);
3178
- let u = j();
3179
- u.x = t.x, u.y = i, u.fill = "#eaeaea", u.width = t.width, u.height = t.height, u.class = "actor";
3180
- let d = t.x + t.width / 2, f = i + 32;
3181
- return c.append("defs").append("marker").attr("id", "filled-head-control").attr("refX", 11).attr("refY", 5.8).attr("markerWidth", 20).attr("markerHeight", 28).attr("orient", "172.5").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"), c.append("circle").attr("cx", d).attr("cy", f).attr("r", 22).attr("fill", "#eaeaf7").attr("stroke", "#666").attr("stroke-width", 1.2), c.append("line").attr("marker-end", "url(#filled-head-control)").attr("transform", `translate(${d}, ${f - 22})`), t.height = c.node().getBBox().height + 2 * (n?.sequence?.labelBoxHeight ?? 0), J(n, g(t.description))(t.description, c, u.x, u.y + 22 + (r ? 5 : 12), u.width, u.height, { class: `actor ${V}` }, n), t.height;
3182
- }, "drawActorTypeControl"), pe = /* @__PURE__ */ t(function(e, t, n, r) {
3183
- let i = r ? t.stopy : t.starty, a = t.x + t.width / 2, o = i + 75, s = e.append("g").lower(), c = e.append("g"), l = "actor";
3184
- r ? l += ` ${z}` : l += ` ${R}`, c.attr("class", l), c.attr("name", t.name);
3185
- let u = j();
3186
- u.x = t.x, u.y = i, u.fill = "#eaeaea", u.width = t.width, u.height = t.height, u.class = "actor";
3187
- let d = t.x + t.width / 2, f = i + (r ? 10 : 25);
3188
- return c.append("circle").attr("cx", d).attr("cy", f).attr("r", 22).attr("width", t.width).attr("height", t.height), c.append("line").attr("x1", d - 22).attr("x2", d + 22).attr("y1", f + 22).attr("y2", f + 22).attr("stroke-width", 2), t.height = c.node().getBBox().height + (n?.sequence?.labelBoxHeight ?? 0), r || (G++, s.append("line").attr("id", "actor" + G).attr("x1", a).attr("y1", o).attr("x2", a).attr("y2", 2e3).attr("class", "actor-line 200").attr("stroke-width", "0.5px").attr("stroke", "#999").attr("name", t.name), t.actorCnt = G), J(n, g(t.description))(t.description, c, u.x, u.y + (r ? 15 : 30), u.width, u.height, { class: `actor ${V}` }, n), r ? c.attr("transform", "translate(0, 22)") : c.attr("transform", `translate(0, ${22 / 2 - 5})`), t.height;
3189
- }, "drawActorTypeEntity"), me = /* @__PURE__ */ t(function(e, t, n, r) {
3190
- let i = r ? t.stopy : t.starty, a = t.x + t.width / 2, o = i + t.height + 2 * n.boxTextMargin, s = e.append("g").lower(), c = s;
3191
- r || (G++, Object.keys(t.links || {}).length && !n.forceMenus && c.attr("onclick", U(`actor${G}_popup`)).attr("cursor", "pointer"), c.append("line").attr("id", "actor" + G).attr("x1", a).attr("y1", o).attr("x2", a).attr("y2", 2e3).attr("class", "actor-line 200").attr("stroke-width", "0.5px").attr("stroke", "#999").attr("name", t.name), c = s.append("g"), t.actorCnt = G, t.links != null && c.attr("id", "root-" + G));
3192
- let l = j(), u = "actor";
3193
- t.properties?.class ? u = t.properties.class : l.fill = "#eaeaea", r ? u += ` ${z}` : u += ` ${R}`, l.x = t.x, l.y = i, l.width = t.width, l.height = t.height, l.class = u, l.name = t.name, l.x = t.x, l.y = i;
3194
- let d = l.width / 3, f = l.width / 3, p = d / 2, m = p / (2.5 + d / 50), h = c.append("g"), _ = `
3195
- M ${l.x},${l.y + m}
3196
- a ${p},${m} 0 0 0 ${d},0
3197
- a ${p},${m} 0 0 0 -${d},0
3198
- l 0,${f - 2 * m}
3199
- a ${p},${m} 0 0 0 ${d},0
3200
- l 0,-${f - 2 * m}
3201
- `;
3202
- h.append("path").attr("d", _).attr("fill", "#eaeaea").attr("stroke", "#000").attr("stroke-width", 1).attr("class", u), h.attr("transform", `translate(${d}, ${m})`), t.rectData = l, J(n, g(t.description))(t.description, c, l.x, l.y + 35, l.width, l.height, { class: `actor ${B}` }, n);
3203
- let v = h.select("path:last-child");
3204
- return v.node() && (t.height = v.node().getBBox().height + (n.sequence.labelBoxHeight ?? 0)), t.height;
3205
- }, "drawActorTypeDatabase"), he = /* @__PURE__ */ t(function(e, t, n, r) {
3206
- let i = r ? t.stopy : t.starty, a = t.x + t.width / 2, o = i + 80, s = e.append("g").lower();
3207
- r || (G++, s.append("line").attr("id", "actor" + G).attr("x1", a).attr("y1", o).attr("x2", a).attr("y2", 2e3).attr("class", "actor-line 200").attr("stroke-width", "0.5px").attr("stroke", "#999").attr("name", t.name), t.actorCnt = G);
3208
- let c = e.append("g"), l = V;
3209
- r ? l += ` ${z}` : l += ` ${R}`, c.attr("class", l), c.attr("name", t.name);
3210
- let u = j();
3211
- return u.x = t.x, u.y = i, u.fill = "#eaeaea", u.width = t.width, u.height = t.height, u.class = "actor", c.append("line").attr("id", "actor-man-torso" + G).attr("x1", t.x + t.width / 2 - 22 * 2.5).attr("y1", i + 12).attr("x2", t.x + t.width / 2 - 15).attr("y2", i + 12), c.append("line").attr("id", "actor-man-arms" + G).attr("x1", t.x + t.width / 2 - 22 * 2.5).attr("y1", i + 2).attr("x2", t.x + t.width / 2 - 22 * 2.5).attr("y2", i + 22), c.append("circle").attr("cx", t.x + t.width / 2).attr("cy", i + 12).attr("r", 22), t.height = c.node().getBBox().height + (n.sequence.labelBoxHeight ?? 0), J(n, g(t.description))(t.description, c, u.x, u.y + 15, u.width, u.height, { class: `actor ${V}` }, n), c.attr("transform", "translate(0,21)"), t.height;
3212
- }, "drawActorTypeBoundary"), ge = /* @__PURE__ */ t(function(e, t, n, r) {
3213
- let i = r ? t.stopy : t.starty, a = t.x + t.width / 2, o = i + 80, s = e.append("g").lower();
3214
- r || (G++, s.append("line").attr("id", "actor" + G).attr("x1", a).attr("y1", o).attr("x2", a).attr("y2", 2e3).attr("class", "actor-line 200").attr("stroke-width", "0.5px").attr("stroke", "#999").attr("name", t.name), t.actorCnt = G);
3215
- let c = e.append("g"), l = V;
3216
- r ? l += ` ${z}` : l += ` ${R}`, c.attr("class", l), c.attr("name", t.name);
3217
- let u = j();
3218
- u.x = t.x, u.y = i, u.fill = "#eaeaea", u.width = t.width, u.height = t.height, u.class = "actor", u.rx = 3, u.ry = 3, c.append("line").attr("id", "actor-man-torso" + G).attr("x1", a).attr("y1", i + 25).attr("x2", a).attr("y2", i + 45), c.append("line").attr("id", "actor-man-arms" + G).attr("x1", a - L / 2).attr("y1", i + 33).attr("x2", a + L / 2).attr("y2", i + 33), c.append("line").attr("x1", a - L / 2).attr("y1", i + 60).attr("x2", a).attr("y2", i + 45), c.append("line").attr("x1", a).attr("y1", i + 45).attr("x2", a + L / 2 - 2).attr("y2", i + 60);
3219
- let d = c.append("circle");
3220
- return d.attr("cx", t.x + t.width / 2), d.attr("cy", i + 10), d.attr("r", 15), d.attr("width", t.width), d.attr("height", t.height), t.height = c.node().getBBox().height, J(n, g(t.description))(t.description, c, u.x, u.y + 35, u.width, u.height, { class: `actor ${V}` }, n), t.height;
3221
- }, "drawActorTypeActor"), _e = /* @__PURE__ */ t(async function(e, t, n, r) {
3222
- switch (t.type) {
3223
- case "actor": return await ge(e, t, n, r);
3224
- case "participant": return await le(e, t, n, r);
3225
- case "boundary": return await he(e, t, n, r);
3226
- case "control": return await fe(e, t, n, r);
3227
- case "entity": return await pe(e, t, n, r);
3228
- case "database": return await me(e, t, n, r);
3229
- case "collections": return await ue(e, t, n, r);
3230
- case "queue": return await de(e, t, n, r);
3231
- }
3232
- }, "drawActor"), ve = /* @__PURE__ */ t(function(e, t, n) {
3233
- let r = e.append("g");
3234
- Se(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();
3235
- }, "drawBox"), ye = /* @__PURE__ */ t(function(e) {
3236
- return e.append("g");
3237
- }, "anchorElement"), be = /* @__PURE__ */ t(function(e, t, n, r, i) {
3238
- let a = j(), o = t.anchored;
3239
- a.x = t.startx, a.y = t.starty, a.class = "activation" + i % 3, a.width = t.stopx - t.startx, a.height = n - t.starty, H(o, a);
3240
- }, "drawActivation"), xe = /* @__PURE__ */ t(async function(e, n, r, i) {
3241
- let { boxMargin: a, boxTextMargin: o, labelBoxHeight: s, labelBoxWidth: c, messageFontFamily: l, messageFontSize: u, messageFontWeight: d } = i, f = e.append("g"), p = /* @__PURE__ */ t(function(e, t, n, r) {
3242
- return f.append("line").attr("x1", e).attr("y1", t).attr("x2", n).attr("y2", r).attr("class", "loopLine");
3243
- }, "drawLoopLine");
3244
- p(n.startx, n.starty, n.stopx, n.starty), p(n.stopx, n.starty, n.stopx, n.stopy), p(n.startx, n.stopy, n.stopx, n.stopy), p(n.startx, n.starty, n.startx, n.stopy), n.sections !== void 0 && n.sections.forEach(function(e) {
3245
- p(n.startx, e.y, n.stopx, e.y).style("stroke-dasharray", "3, 3");
3246
- });
3247
- let m = D();
3248
- m.text = r, m.x = n.startx, m.y = n.starty, m.fontFamily = l, m.fontSize = u, m.fontWeight = d, m.anchor = "middle", m.valign = "middle", m.tspan = !1, m.width = c || 50, m.height = s || 20, m.textMargin = o, m.class = "labelText", se(f, m), m = Oe(), m.text = n.title, m.x = n.startx + c / 2 + (n.stopx - n.startx) / 2, m.y = n.starty + a + o, m.anchor = "middle", m.valign = "middle", m.textMargin = o, m.class = "loopText", m.fontFamily = l, m.fontSize = u, m.fontWeight = d, m.wrap = !0;
3249
- let h = g(m.text) ? await oe(f, m, n) : W(f, m);
3250
- if (n.sectionTitles !== void 0) {
3251
- for (let [e, t] of Object.entries(n.sectionTitles)) if (t.message) {
3252
- m.text = t.message, m.x = n.startx + (n.stopx - n.startx) / 2, m.y = n.sections[e].y + a + o, m.class = "loopText", m.anchor = "middle", m.valign = "middle", m.tspan = !1, m.fontFamily = l, m.fontSize = u, m.fontWeight = d, m.wrap = n.wrap, g(m.text) ? (n.starty = n.sections[e].y, await oe(f, m, n)) : W(f, m);
3253
- let r = Math.round(h.map((e) => (e._groups || e)[0][0].getBBox().height).reduce((e, t) => e + t));
3254
- n.sections[e].height += r - (a + o);
3255
- }
3256
- }
3257
- return n.height = Math.round(n.stopy - n.starty), f;
3258
- }, "drawLoop"), Se = /* @__PURE__ */ t(function(e, t) {
3259
- k(e, t);
3260
- }, "drawBackgroundRect"), Ce = /* @__PURE__ */ t(function(e) {
3261
- e.append("defs").append("symbol").attr("id", "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");
3262
- }, "insertDatabaseIcon"), we = /* @__PURE__ */ t(function(e) {
3263
- e.append("defs").append("symbol").attr("id", "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");
3264
- }, "insertComputerIcon"), K = /* @__PURE__ */ t(function(e) {
3265
- e.append("defs").append("symbol").attr("id", "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");
3266
- }, "insertClockIcon"), q = /* @__PURE__ */ t(function(e) {
3267
- e.append("defs").append("marker").attr("id", "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");
3268
- }, "insertArrowHead"), Te = /* @__PURE__ */ t(function(e) {
3269
- e.append("defs").append("marker").attr("id", "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");
3270
- }, "insertArrowFilledHead"), Ee = /* @__PURE__ */ t(function(e) {
3271
- e.append("defs").append("marker").attr("id", "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);
3272
- }, "insertSequenceNumber"), De = /* @__PURE__ */ t(function(e) {
3273
- e.append("defs").append("marker").attr("id", "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");
3274
- }, "insertArrowCrossHead"), Oe = /* @__PURE__ */ t(function() {
3275
- return {
3276
- x: 0,
3277
- y: 0,
3278
- fill: void 0,
3279
- anchor: void 0,
3280
- style: "#666",
3281
- width: void 0,
3282
- height: void 0,
3283
- textMargin: 0,
3284
- rx: 0,
3285
- ry: 0,
3286
- tspan: !0,
3287
- valign: void 0
3288
- };
3289
- }, "getTextObj"), ke = /* @__PURE__ */ t(function() {
3290
- return {
3291
- x: 0,
3292
- y: 0,
3293
- fill: "#EDF2AE",
3294
- stroke: "#666",
3295
- width: 100,
3296
- anchor: "start",
3297
- height: 100,
3298
- rx: 0,
3299
- ry: 0
3300
- };
3301
- }, "getNoteRect"), J = /* @__PURE__ */ (function() {
3302
- function e(e, t, n, r, i, o, s) {
3303
- a(t.append("text").attr("x", n + i / 2).attr("y", r + o / 2 + 5).style("text-anchor", "middle").text(e), s);
3304
- }
3305
- t(e, "byText");
3306
- function n(e, t, n, r, i, o, s, c) {
3307
- let { actorFontSize: l, actorFontFamily: u, actorFontWeight: d } = c, [f, p] = x(l), m = e.split(v.lineBreakRegex);
3308
- for (let e = 0; e < m.length; e++) {
3309
- 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);
3310
- 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);
3311
- }
3312
- }
3313
- t(n, "byTspan");
3314
- function r(e, t, r, i, o, s, c, l) {
3315
- let u = t.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%");
3316
- d.append("div").style("display", "table-cell").style("text-align", "center").style("vertical-align", "middle").text(e), n(e, u, r, i, o, s, c, l), a(d, c);
3317
- }
3318
- t(r, "byFo");
3319
- async function i(e, t, r, i, o, c, l, u) {
3320
- let d = await h(e, b()), f = t.append("switch"), p = f.append("foreignObject").attr("x", r + o / 2 - d.width / 2).attr("y", i + c / 2 - d.height / 2).attr("width", d.width).attr("height", d.height).append("xhtml:div").style("height", "100%").style("width", "100%");
3321
- p.append("div").style("text-align", "center").style("vertical-align", "middle").html(await s(e, b())), n(e, f, r, i, o, c, l, u), a(p, l);
3322
- }
3323
- t(i, "byKatex");
3324
- function a(e, t) {
3325
- for (let n in t) t.hasOwnProperty(n) && e.attr(n, t[n]);
3326
- }
3327
- return t(a, "_setTextAttrs"), function(t, a = !1) {
3328
- return a ? i : t.textPlacement === "fo" ? r : t.textPlacement === "old" ? e : n;
3329
- };
3330
- })(), Ae = /* @__PURE__ */ (function() {
3331
- function e(e, t, n, r, a, o, s) {
3332
- i(t.append("text").attr("x", n).attr("y", r).style("text-anchor", "start").text(e), s);
3333
- }
3334
- t(e, "byText");
3335
- function n(e, t, n, r, a, o, s, c) {
3336
- let { actorFontSize: l, actorFontFamily: u, actorFontWeight: d } = c, f = e.split(v.lineBreakRegex);
3337
- for (let e = 0; e < f.length; e++) {
3338
- 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);
3339
- 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);
3340
- }
3341
- }
3342
- t(n, "byTspan");
3343
- function r(e, t, r, a, o, s, c, l) {
3344
- let u = t.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%");
3345
- d.append("div").style("display", "table-cell").style("text-align", "center").style("vertical-align", "middle").text(e), n(e, u, r, a, o, s, c, l), i(d, c);
3346
- }
3347
- t(r, "byFo");
3348
- function i(e, t) {
3349
- for (let n in t) t.hasOwnProperty(n) && e.attr(n, t[n]);
3350
- }
3351
- return t(i, "_setTextAttrs"), function(t) {
3352
- return t.textPlacement === "fo" ? r : t.textPlacement === "old" ? e : n;
3353
- };
3354
- })(), Y = {
3355
- drawRect: H,
3356
- drawText: W,
3357
- drawLabel: se,
3358
- drawActor: _e,
3359
- drawBox: ve,
3360
- drawPopup: ae,
3361
- anchorElement: ye,
3362
- drawActivation: be,
3363
- drawLoop: xe,
3364
- drawBackgroundRect: Se,
3365
- insertArrowHead: q,
3366
- insertArrowFilledHead: Te,
3367
- insertSequenceNumber: Ee,
3368
- insertArrowCrossHead: De,
3369
- insertDatabaseIcon: Ce,
3370
- insertComputerIcon: we,
3371
- insertClockIcon: K,
3372
- getTextObj: Oe,
3373
- getNoteRect: ke,
3374
- fixLifeLineHeights: ce,
3375
- sanitizeUrl: N.sanitizeUrl,
3376
- insertSolidTopArrowHead: /* @__PURE__ */ t(function(e) {
3377
- e.append("defs").append("marker").attr("id", "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");
3378
- }, "insertSolidTopArrowHead"),
3379
- insertSolidBottomArrowHead: /* @__PURE__ */ t(function(e) {
3380
- e.append("defs").append("marker").attr("id", "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");
3381
- }, "insertSolidBottomArrowHead"),
3382
- insertStickTopArrowHead: /* @__PURE__ */ t(function(e) {
3383
- e.append("defs").append("marker").attr("id", "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");
3384
- }, "insertStickTopArrowHead"),
3385
- insertStickBottomArrowHead: /* @__PURE__ */ t(function(e) {
3386
- e.append("defs").append("marker").attr("id", "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");
3387
- }, "insertStickBottomArrowHead")
3388
- }, X = {}, Z = {
3389
- data: {
3390
- startx: void 0,
3391
- stopx: void 0,
3392
- starty: void 0,
3393
- stopy: void 0
3394
- },
3395
- verticalPos: 0,
3396
- sequenceItems: [],
3397
- activations: [],
3398
- models: {
3399
- getHeight: /* @__PURE__ */ t(function() {
3400
- 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));
3401
- }, "getHeight"),
3402
- clear: /* @__PURE__ */ t(function() {
3403
- this.actors = [], this.boxes = [], this.loops = [], this.messages = [], this.notes = [];
3404
- }, "clear"),
3405
- addBox: /* @__PURE__ */ t(function(e) {
3406
- this.boxes.push(e);
3407
- }, "addBox"),
3408
- addActor: /* @__PURE__ */ t(function(e) {
3409
- this.actors.push(e);
3410
- }, "addActor"),
3411
- addLoop: /* @__PURE__ */ t(function(e) {
3412
- this.loops.push(e);
3413
- }, "addLoop"),
3414
- addMessage: /* @__PURE__ */ t(function(e) {
3415
- this.messages.push(e);
3416
- }, "addMessage"),
3417
- addNote: /* @__PURE__ */ t(function(e) {
3418
- this.notes.push(e);
3419
- }, "addNote"),
3420
- lastActor: /* @__PURE__ */ t(function() {
3421
- return this.actors[this.actors.length - 1];
3422
- }, "lastActor"),
3423
- lastLoop: /* @__PURE__ */ t(function() {
3424
- return this.loops[this.loops.length - 1];
3425
- }, "lastLoop"),
3426
- lastMessage: /* @__PURE__ */ t(function() {
3427
- return this.messages[this.messages.length - 1];
3428
- }, "lastMessage"),
3429
- lastNote: /* @__PURE__ */ t(function() {
3430
- return this.notes[this.notes.length - 1];
3431
- }, "lastNote"),
3432
- actors: [],
3433
- boxes: [],
3434
- loops: [],
3435
- messages: [],
3436
- notes: []
3437
- },
3438
- init: /* @__PURE__ */ t(function() {
3439
- this.sequenceItems = [], this.activations = [], this.models.clear(), this.data = {
3440
- startx: void 0,
3441
- stopx: void 0,
3442
- starty: void 0,
3443
- stopy: void 0
3444
- }, this.verticalPos = 0, Be(p());
3445
- }, "init"),
3446
- updateVal: /* @__PURE__ */ t(function(e, t, n, r) {
3447
- e[t] === void 0 ? e[t] = n : e[t] = r(n, e[t]);
3448
- }, "updateVal"),
3449
- updateBounds: /* @__PURE__ */ t(function(e, n, r, i) {
3450
- let a = this, o = 0;
3451
- function s(s) {
3452
- return /* @__PURE__ */ t(function(t) {
3453
- o++;
3454
- let c = a.sequenceItems.length - o + 1;
3455
- a.updateVal(t, "starty", n - c * X.boxMargin, Math.min), a.updateVal(t, "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(t, "startx", e - c * X.boxMargin, Math.min), a.updateVal(t, "stopx", r + c * X.boxMargin, Math.max), a.updateVal(Z.data, "starty", n - c * X.boxMargin, Math.min), a.updateVal(Z.data, "stopy", i + c * X.boxMargin, Math.max));
3456
- }, "updateItemBounds");
3457
- }
3458
- t(s, "updateFn"), this.sequenceItems.forEach(s()), this.activations.forEach(s("activation"));
3459
- }, "updateBounds"),
3460
- insert: /* @__PURE__ */ t(function(e, t, n, r) {
3461
- let i = v.getMin(e, n), a = v.getMax(e, n), o = v.getMin(t, r), s = v.getMax(t, r);
3462
- 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);
3463
- }, "insert"),
3464
- newActivation: /* @__PURE__ */ t(function(e, t, n) {
3465
- let r = n.get(e.from), i = Ve(e.from).length || 0, a = r.x + r.width / 2 + (i - 1) * X.activationWidth / 2;
3466
- this.activations.push({
3467
- startx: a,
3468
- starty: this.verticalPos + 2,
3469
- stopx: a + X.activationWidth,
3470
- stopy: void 0,
3471
- actor: e.from,
3472
- anchored: Y.anchorElement(t)
3473
- });
3474
- }, "newActivation"),
3475
- endActivation: /* @__PURE__ */ t(function(e) {
3476
- let t = this.activations.map(function(e) {
3477
- return e.actor;
3478
- }).lastIndexOf(e.from);
3479
- return this.activations.splice(t, 1)[0];
3480
- }, "endActivation"),
3481
- createLoop: /* @__PURE__ */ t(function(e = {
3482
- message: void 0,
3483
- wrap: !1,
3484
- width: void 0
3485
- }, t) {
3486
- return {
3487
- startx: void 0,
3488
- starty: this.verticalPos,
3489
- stopx: void 0,
3490
- stopy: void 0,
3491
- title: e.message,
3492
- wrap: e.wrap,
3493
- width: e.width,
3494
- height: 0,
3495
- fill: t
3496
- };
3497
- }, "createLoop"),
3498
- newLoop: /* @__PURE__ */ t(function(e = {
3499
- message: void 0,
3500
- wrap: !1,
3501
- width: void 0
3502
- }, t) {
3503
- this.sequenceItems.push(this.createLoop(e, t));
3504
- }, "newLoop"),
3505
- endLoop: /* @__PURE__ */ t(function() {
3506
- return this.sequenceItems.pop();
3507
- }, "endLoop"),
3508
- isLoopOverlap: /* @__PURE__ */ t(function() {
3509
- return this.sequenceItems.length ? this.sequenceItems[this.sequenceItems.length - 1].overlap : !1;
3510
- }, "isLoopOverlap"),
3511
- addSectionToLoop: /* @__PURE__ */ t(function(e) {
3512
- let t = this.sequenceItems.pop();
3513
- t.sections = t.sections || [], t.sectionTitles = t.sectionTitles || [], t.sections.push({
3514
- y: Z.getVerticalPos(),
3515
- height: 0
3516
- }), t.sectionTitles.push(e), this.sequenceItems.push(t);
3517
- }, "addSectionToLoop"),
3518
- saveVerticalPos: /* @__PURE__ */ t(function() {
3519
- this.isLoopOverlap() && (this.savedVerticalPos = this.verticalPos);
3520
- }, "saveVerticalPos"),
3521
- resetVerticalPos: /* @__PURE__ */ t(function() {
3522
- this.isLoopOverlap() && (this.verticalPos = this.savedVerticalPos);
3523
- }, "resetVerticalPos"),
3524
- bumpVerticalPos: /* @__PURE__ */ t(function(e) {
3525
- this.verticalPos += e, this.data.stopy = v.getMax(this.data.stopy, this.verticalPos);
3526
- }, "bumpVerticalPos"),
3527
- getVerticalPos: /* @__PURE__ */ t(function() {
3528
- return this.verticalPos;
3529
- }, "getVerticalPos"),
3530
- getBounds: /* @__PURE__ */ t(function() {
3531
- return {
3532
- bounds: this.data,
3533
- models: this.models
3534
- };
3535
- }, "getBounds")
3536
- }, je = /* @__PURE__ */ t(async function(e, t) {
3537
- Z.bumpVerticalPos(X.boxMargin), t.height = X.boxMargin, t.starty = Z.getVerticalPos();
3538
- let n = j();
3539
- n.x = t.startx, n.y = t.starty, n.width = t.width || X.width, n.class = "note";
3540
- let r = e.append("g"), i = Y.drawRect(r, n), a = D();
3541
- a.x = t.startx, a.y = t.starty, a.width = n.width, a.dy = "1em", a.text = t.message, a.class = "noteText", a.fontFamily = X.noteFontFamily, a.fontSize = X.noteFontSize, a.fontWeight = X.noteFontWeight, a.anchor = X.noteAlign, a.textMargin = X.noteMargin, a.valign = "center";
3542
- let o = g(a.text) ? await oe(r, a) : W(r, a), s = Math.round(o.map((e) => (e._groups || e)[0][0].getBBox().height).reduce((e, t) => e + t));
3543
- i.attr("height", s + 2 * X.noteMargin), t.height += s + 2 * X.noteMargin, Z.bumpVerticalPos(s + 2 * X.noteMargin), t.stopy = t.starty + s + 2 * X.noteMargin, t.stopx = t.startx + n.width, Z.insert(t.startx, t.starty, t.stopx, t.stopy), Z.models.addNote(t);
3544
- }, "drawNote"), Me = /* @__PURE__ */ t(function(e, n, r, i, a, o, s) {
3545
- let c = i.db.getActors(), l = c.get(n.from), u = c.get(n.to), d = r.sequenceVisible, f = l.x + l.width / 2, p = u.x + u.width / 2, m = f <= p, h = $e(n, i), g = e.append("g"), _ = 16.5, v = /* @__PURE__ */ t((e, t) => {
3546
- let n = e ? _ : -_;
3547
- return t ? -n : n;
3548
- }, "getCircleOffset"), y = /* @__PURE__ */ t((e) => {
3549
- g.append("circle").attr("cx", e).attr("cy", s).attr("r", 5).attr("width", 10).attr("height", 10);
3550
- }, "drawCircle"), { CENTRAL_CONNECTION: b, CENTRAL_CONNECTION_REVERSE: x, CENTRAL_CONNECTION_DUAL: S } = i.db.LINETYPE;
3551
- if (d) switch (n.centralConnection) {
3552
- case b:
3553
- h && (p += v(m, !0));
3554
- break;
3555
- case x:
3556
- h || (f += v(m, !1));
3557
- break;
3558
- case S:
3559
- h ? p += v(m, !0) : f += v(m, !1);
3560
- break;
3561
- }
3562
- switch (n.centralConnection) {
3563
- case b:
3564
- y(p);
3565
- break;
3566
- case x:
3567
- y(f);
3568
- break;
3569
- case S:
3570
- y(f), y(p);
3571
- break;
3572
- }
3573
- }, "drawCentralConnection"), Q = /* @__PURE__ */ t((e) => ({
3574
- fontFamily: e.messageFontFamily,
3575
- fontSize: e.messageFontSize,
3576
- fontWeight: e.messageFontWeight
3577
- }), "messageFont"), Ne = /* @__PURE__ */ t((e) => ({
3578
- fontFamily: e.noteFontFamily,
3579
- fontSize: e.noteFontSize,
3580
- fontWeight: e.noteFontWeight
3581
- }), "noteFont"), Pe = /* @__PURE__ */ t((e) => ({
3582
- fontFamily: e.actorFontFamily,
3583
- fontSize: e.actorFontSize,
3584
- fontWeight: e.actorFontWeight
3585
- }), "actorFont");
3586
- async function Fe(e, t) {
3587
- Z.bumpVerticalPos(10);
3588
- let { startx: n, stopx: r, message: i } = t, a = v.splitBreaks(i).length, o = g(i), s = o ? await h(i, p()) : S.calculateTextDimensions(i, Q(X));
3589
- if (!o) {
3590
- let e = s.height / a;
3591
- t.height += e, Z.bumpVerticalPos(e);
3592
- }
3593
- let c, l = s.height - 10, u = s.width;
3594
- if (n === r) {
3595
- c = Z.getVerticalPos() + l, X.rightAngles || (l += X.boxMargin, c = Z.getVerticalPos() + l), l += 30;
3596
- let e = v.getMax(u / 2, X.width / 2);
3597
- Z.insert(n - e, Z.getVerticalPos() - 10 + l, r + e, Z.getVerticalPos() + 30 + l);
3598
- } else l += X.boxMargin, c = Z.getVerticalPos() + l, Z.insert(n, c - 10, r, c);
3599
- return Z.bumpVerticalPos(l), t.height += l, t.stopy = t.starty + t.height, Z.insert(t.fromBounds, t.starty, t.toBounds, t.stopy), c;
3600
- }
3601
- t(Fe, "boundMessage");
3602
- var Ie = /* @__PURE__ */ t(async function(e, t, n, r, i) {
3603
- let { startx: o, stopx: s, starty: c, message: l, type: u, sequenceIndex: d, sequenceVisible: f } = t, p = S.calculateTextDimensions(l, Q(X)), m = D();
3604
- m.x = o, m.y = c + 10, m.width = s - o, m.class = "messageText", m.dy = "1em", m.text = l, m.fontFamily = X.messageFontFamily, m.fontSize = X.messageFontSize, m.fontWeight = X.messageFontWeight, m.anchor = X.messageAlign, m.valign = "center", m.textMargin = X.wrapPadding, m.tspan = !1, g(m.text) ? await oe(e, m, {
3605
- startx: o,
3606
- stopx: s,
3607
- starty: n
3608
- }) : W(e, m);
3609
- let h = p.width, _;
3610
- if (o === s) {
3611
- let t = f || X.showSequenceNumbers, a = $e(i, r), s = et(i, r), c = o + (t && (a || s) ? 10 : 0);
3612
- _ = X.rightAngles ? e.append("path").attr("d", `M ${c},${n} H ${o + v.getMax(X.width / 2, h / 2)} V ${n + 25} H ${o}`) : e.append("path").attr("d", "M " + c + "," + n + " C " + (c + 60) + "," + (n - 10) + " " + (o + 60) + "," + (n + 30) + " " + o + "," + (n + 20));
3613
- } else _ = e.append("line"), _.attr("x1", o), _.attr("y1", n), _.attr("x2", s), _.attr("y2", n), Ze(i, r) && Me(e, i, t, r, o, s, n);
3614
- u === r.db.LINETYPE.DOTTED || u === r.db.LINETYPE.DOTTED_CROSS || u === r.db.LINETYPE.DOTTED_POINT || u === r.db.LINETYPE.DOTTED_OPEN || u === r.db.LINETYPE.BIDIRECTIONAL_DOTTED || u === r.db.LINETYPE.SOLID_TOP_DOTTED || u === r.db.LINETYPE.SOLID_BOTTOM_DOTTED || u === r.db.LINETYPE.STICK_TOP_DOTTED || u === r.db.LINETYPE.STICK_BOTTOM_DOTTED || u === r.db.LINETYPE.SOLID_ARROW_TOP_REVERSE_DOTTED || u === r.db.LINETYPE.SOLID_ARROW_BOTTOM_REVERSE_DOTTED || u === r.db.LINETYPE.STICK_ARROW_TOP_REVERSE_DOTTED || u === r.db.LINETYPE.STICK_ARROW_BOTTOM_REVERSE_DOTTED ? (_.style("stroke-dasharray", "3, 3"), _.attr("class", "messageLine1")) : _.attr("class", "messageLine0");
3615
- let y = "";
3616
- if (X.arrowMarkerAbsolute && (y = a(!0)), _.attr("stroke-width", 2), _.attr("stroke", "none"), _.style("fill", "none"), (u === r.db.LINETYPE.SOLID_TOP || u === r.db.LINETYPE.SOLID_TOP_DOTTED) && _.attr("marker-end", "url(" + y + "#solidTopArrowHead)"), (u === r.db.LINETYPE.SOLID_BOTTOM || u === r.db.LINETYPE.SOLID_BOTTOM_DOTTED) && _.attr("marker-end", "url(" + y + "#solidBottomArrowHead)"), (u === r.db.LINETYPE.STICK_TOP || u === r.db.LINETYPE.STICK_TOP_DOTTED) && _.attr("marker-end", "url(" + y + "#stickTopArrowHead)"), (u === r.db.LINETYPE.STICK_BOTTOM || u === r.db.LINETYPE.STICK_BOTTOM_DOTTED) && _.attr("marker-end", "url(" + y + "#stickBottomArrowHead)"), (u === r.db.LINETYPE.SOLID_ARROW_TOP_REVERSE || u === r.db.LINETYPE.SOLID_ARROW_TOP_REVERSE_DOTTED) && _.attr("marker-start", "url(" + y + "#solidBottomArrowHead)"), (u === r.db.LINETYPE.SOLID_ARROW_BOTTOM_REVERSE || u === r.db.LINETYPE.SOLID_ARROW_BOTTOM_REVERSE_DOTTED) && _.attr("marker-start", "url(" + y + "#solidTopArrowHead)"), (u === r.db.LINETYPE.STICK_ARROW_TOP_REVERSE || u === r.db.LINETYPE.STICK_ARROW_TOP_REVERSE_DOTTED) && _.attr("marker-start", "url(" + y + "#stickBottomArrowHead)"), (u === r.db.LINETYPE.STICK_ARROW_BOTTOM_REVERSE || u === r.db.LINETYPE.STICK_ARROW_BOTTOM_REVERSE_DOTTED) && _.attr("marker-start", "url(" + y + "#stickTopArrowHead)"), (u === r.db.LINETYPE.SOLID || u === r.db.LINETYPE.DOTTED) && _.attr("marker-end", "url(" + y + "#arrowhead)"), (u === r.db.LINETYPE.BIDIRECTIONAL_SOLID || u === r.db.LINETYPE.BIDIRECTIONAL_DOTTED) && (_.attr("marker-start", "url(" + y + "#arrowhead)"), _.attr("marker-end", "url(" + y + "#arrowhead)")), (u === r.db.LINETYPE.SOLID_POINT || u === r.db.LINETYPE.DOTTED_POINT) && _.attr("marker-end", "url(" + y + "#filled-head)"), (u === r.db.LINETYPE.SOLID_CROSS || u === r.db.LINETYPE.DOTTED_CROSS) && _.attr("marker-end", "url(" + y + "#crosshead)"), f || X.showSequenceNumbers) {
3617
- let a = u === r.db.LINETYPE.BIDIRECTIONAL_SOLID || u === r.db.LINETYPE.BIDIRECTIONAL_DOTTED, c = u === r.db.LINETYPE.SOLID_ARROW_TOP_REVERSE || u === r.db.LINETYPE.SOLID_ARROW_TOP_REVERSE_DOTTED || u === r.db.LINETYPE.SOLID_ARROW_BOTTOM_REVERSE || u === r.db.LINETYPE.SOLID_ARROW_BOTTOM_REVERSE_DOTTED || u === r.db.LINETYPE.STICK_ARROW_TOP_REVERSE || u === r.db.LINETYPE.STICK_ARROW_TOP_REVERSE_DOTTED || u === r.db.LINETYPE.STICK_ARROW_BOTTOM_REVERSE || u === r.db.LINETYPE.STICK_ARROW_BOTTOM_REVERSE_DOTTED, l = Ze(i, r), f = o, p = s;
3618
- a ? (o < s ? f = o + 12 : (f = o - 6 + (l ? -5 : 0), f += i?.centralConnection === r.db.LINETYPE.CENTRAL_CONNECTION_DUAL || i?.centralConnection === r.db.LINETYPE.CENTRAL_CONNECTION_REVERSE ? -7.5 : 0), _.attr("x1", f)) : c ? (s > o ? p = s - 12 : (p = s - 6, f += i?.centralConnection === r.db.LINETYPE.CENTRAL_CONNECTION_DUAL || i?.centralConnection === r.db.LINETYPE.CENTRAL_CONNECTION_REVERSE ? -7.5 : 0), p += l ? 15 : 0, _.attr("x2", p), _.attr("x1", f)) : _.attr("x1", o + 6);
3619
- let m = 0, h = o === s, g = o <= s;
3620
- m = h ? t.fromBounds + 1 : c ? g ? t.toBounds - 1 : t.fromBounds + 1 : g ? t.fromBounds + 1 : t.toBounds - 1, e.append("line").attr("x1", m).attr("y1", n).attr("x2", m).attr("y2", n).attr("stroke-width", 0).attr("marker-start", "url(" + y + "#sequencenumber)"), e.append("text").attr("x", m).attr("y", n + 4).attr("font-family", "sans-serif").attr("font-size", "12px").attr("text-anchor", "middle").attr("class", "sequenceNumber").text(d);
3621
- }
3622
- }, "drawMessage"), Le = /* @__PURE__ */ t(function(e, t, n, r, i, a, o) {
3623
- let s = 0, c = 0, l, u = 0;
3624
- for (let e of r) {
3625
- let r = t.get(e), a = r.box;
3626
- 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 = r.width || X.width, r.height = v.getMax(r.height || X.height, X.height), r.margin = r.margin || X.actorMargin, u = v.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);
3627
- }
3628
- l && !o && Z.models.addBox(l), Z.bumpVerticalPos(u);
3629
- }, "addActorRenderingData"), Re = /* @__PURE__ */ t(async function(e, t, n, r) {
3630
- if (r) {
3631
- let r = 0;
3632
- Z.bumpVerticalPos(X.boxMargin * 2);
3633
- for (let i of n) {
3634
- let n = t.get(i);
3635
- n.stopy ||= Z.getVerticalPos();
3636
- let a = await Y.drawActor(e, n, X, !0);
3637
- r = v.getMax(r, a);
3638
- }
3639
- Z.bumpVerticalPos(r + X.boxMargin);
3640
- } else for (let r of n) {
3641
- let n = t.get(r);
3642
- await Y.drawActor(e, n, X, !1);
3643
- }
3644
- }, "drawActors"), ze = /* @__PURE__ */ t(function(e, t, n, r) {
3645
- let i = 0, a = 0;
3646
- for (let o of n) {
3647
- let n = t.get(o), s = Ke(n), c = Y.drawPopup(e, n, s, X, X.forceMenus, r);
3648
- c.height > i && (i = c.height), c.width + n.x > a && (a = c.width + n.x);
3649
- }
3650
- return {
3651
- maxHeight: i,
3652
- maxWidth: a
3653
- };
3654
- }, "drawActorsPopup"), Be = /* @__PURE__ */ t(function(e) {
3655
- _(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);
3656
- }, "setConf"), Ve = /* @__PURE__ */ t(function(e) {
3657
- return Z.activations.filter(function(t) {
3658
- return t.actor === e;
3659
- });
3660
- }, "actorActivations"), He = /* @__PURE__ */ t(function(e, t) {
3661
- let n = t.get(e), r = Ve(e);
3662
- return [r.reduce(function(e, t) {
3663
- return v.getMin(e, t.startx);
3664
- }, n.x + n.width / 2 - 1), r.reduce(function(e, t) {
3665
- return v.getMax(e, t.stopx);
3666
- }, n.x + n.width / 2 + 1)];
3667
- }, "activationBounds");
3668
- function $(t, n, r, i, a) {
3669
- Z.bumpVerticalPos(r);
3670
- let o = i;
3671
- if (n.id && n.message && t[n.id]) {
3672
- let r = t[n.id].width, a = Q(X);
3673
- n.message = S.wrapLabel(`[${n.message}]`, r - 2 * X.wrapPadding, a), n.width = r, n.wrap = !0;
3674
- let s = S.calculateTextDimensions(n.message, a), c = v.getMax(s.height, X.labelBoxHeight);
3675
- o = i + c, e.debug(`${c} - ${n.message}`);
3676
- }
3677
- a(n), Z.bumpVerticalPos(o);
3678
- }
3679
- t($, "adjustLoopHeightForWrap");
3680
- function Ue(e, n, r, i, a, o, s) {
3681
- function c(t, r) {
3682
- t.x < a.get(e.from).x ? (Z.insert(n.stopx - r, n.starty, n.startx, n.stopy + t.height / 2 + X.noteMargin), n.stopx += r) : (Z.insert(n.startx, n.starty, n.stopx + r, n.stopy + t.height / 2 + X.noteMargin), n.stopx -= r);
3683
- }
3684
- t(c, "receiverAdjustment");
3685
- function l(t, r) {
3686
- t.x < a.get(e.to).x ? (Z.insert(n.startx - r, n.starty, n.stopx, n.stopy + t.height / 2 + X.noteMargin), n.startx += r) : (Z.insert(n.stopx, n.starty, n.startx + r, n.stopy + t.height / 2 + X.noteMargin), n.startx -= r);
3687
- }
3688
- t(l, "senderAdjustment");
3689
- let u = [
3690
- ne.ACTOR,
3691
- ne.CONTROL,
3692
- ne.ENTITY,
3693
- ne.DATABASE
3694
- ];
3695
- if (o.get(e.to) == i) {
3696
- let t = a.get(e.to);
3697
- c(t, u.includes(t.type) ? L / 2 + 3 : t.width / 2 + 3), t.starty = r - t.height / 2, Z.bumpVerticalPos(t.height / 2);
3698
- } else if (s.get(e.from) == i) {
3699
- let t = a.get(e.from);
3700
- X.mirrorActors && l(t, u.includes(t.type) ? L / 2 : t.width / 2), t.stopy = r - t.height / 2, Z.bumpVerticalPos(t.height / 2);
3701
- } else if (s.get(e.to) == i) {
3702
- let t = a.get(e.to);
3703
- X.mirrorActors && c(t, u.includes(t.type) ? L / 2 + 3 : t.width / 2 + 3), t.stopy = r - t.height / 2, Z.bumpVerticalPos(t.height / 2);
3704
- }
3705
- }
3706
- t(Ue, "adjustCreatedDestroyedData");
3707
- var We = /* @__PURE__ */ t(async function(r, i, a, o) {
3708
- let { securityLevel: s, sequence: c } = p();
3709
- X = c;
3710
- let l;
3711
- s === "sandbox" && (l = n("#i" + i));
3712
- let u = n(s === "sandbox" ? l.nodes()[0].contentDocument.body : "body"), d = s === "sandbox" ? l.nodes()[0].contentDocument : document;
3713
- Z.init(), e.debug(o.db);
3714
- let f = s === "sandbox" ? u.select(`[id="${i}"]`) : n(`[id="${i}"]`), h = o.db.getActors(), g = o.db.getCreatedActors(), _ = o.db.getDestroyedActors(), v = o.db.getBoxes(), y = o.db.getActorKeys(), b = o.db.getMessages(), x = o.db.getDiagramTitle(), S = o.db.hasAtLeastOneBox(), C = o.db.hasAtLeastOneBoxWithTitle(), w = await Ge(h, b, o);
3715
- if (X.height = await qe(h, w, v), Y.insertComputerIcon(f), Y.insertDatabaseIcon(f), Y.insertClockIcon(f), S && (Z.bumpVerticalPos(X.boxMargin), C && Z.bumpVerticalPos(v[0].textMaxHeight)), X.hideUnusedParticipants === !0) {
3716
- let e = /* @__PURE__ */ new Set();
3717
- b.forEach((t) => {
3718
- e.add(t.from), e.add(t.to);
3719
- }), y = y.filter((t) => e.has(t));
3720
- }
3721
- Le(f, h, g, y, 0, b, !1);
3722
- let T = await nt(b, h, w, o);
3723
- Y.insertArrowHead(f), Y.insertArrowCrossHead(f), Y.insertArrowFilledHead(f), Y.insertSequenceNumber(f), Y.insertSolidTopArrowHead(f), Y.insertSolidBottomArrowHead(f), Y.insertStickTopArrowHead(f), Y.insertStickBottomArrowHead(f);
3724
- function E(e, t) {
3725
- let n = Z.endActivation(e);
3726
- n.starty + 18 > t && (n.starty = t - 6, t += 12), Y.drawActivation(f, n, t, X, Ve(e.from).length), Z.insert(n.startx, t - 10, n.stopx, t);
3727
- }
3728
- t(E, "activeEnd");
3729
- let D = 1, O = 1, k = [], A = [], j = 0;
3730
- for (let t of b) {
3731
- let n, r, i;
3732
- switch (t.type) {
3733
- case o.db.LINETYPE.NOTE:
3734
- Z.resetVerticalPos(), r = t.noteModel, await je(f, r);
3735
- break;
3736
- case o.db.LINETYPE.ACTIVE_START:
3737
- Z.newActivation(t, f, h);
3738
- break;
3739
- case o.db.LINETYPE.CENTRAL_CONNECTION:
3740
- Z.newActivation(t, f, h);
3741
- break;
3742
- case o.db.LINETYPE.CENTRAL_CONNECTION_REVERSE:
3743
- Z.newActivation(t, f, h);
3744
- break;
3745
- case o.db.LINETYPE.ACTIVE_END:
3746
- E(t, Z.getVerticalPos());
3747
- break;
3748
- case o.db.LINETYPE.LOOP_START:
3749
- $(T, t, X.boxMargin, X.boxMargin + X.boxTextMargin, (e) => Z.newLoop(e));
3750
- break;
3751
- case o.db.LINETYPE.LOOP_END:
3752
- n = Z.endLoop(), await Y.drawLoop(f, n, "loop", X), Z.bumpVerticalPos(n.stopy - Z.getVerticalPos()), Z.models.addLoop(n);
3753
- break;
3754
- case o.db.LINETYPE.RECT_START:
3755
- $(T, t, X.boxMargin, X.boxMargin, (e) => Z.newLoop(void 0, e.message));
3756
- break;
3757
- case o.db.LINETYPE.RECT_END:
3758
- n = Z.endLoop(), A.push(n), Z.models.addLoop(n), Z.bumpVerticalPos(n.stopy - Z.getVerticalPos());
3759
- break;
3760
- case o.db.LINETYPE.OPT_START:
3761
- $(T, t, X.boxMargin, X.boxMargin + X.boxTextMargin, (e) => Z.newLoop(e));
3762
- break;
3763
- case o.db.LINETYPE.OPT_END:
3764
- n = Z.endLoop(), await Y.drawLoop(f, n, "opt", X), Z.bumpVerticalPos(n.stopy - Z.getVerticalPos()), Z.models.addLoop(n);
3765
- break;
3766
- case o.db.LINETYPE.ALT_START:
3767
- $(T, t, X.boxMargin, X.boxMargin + X.boxTextMargin, (e) => Z.newLoop(e));
3768
- break;
3769
- case o.db.LINETYPE.ALT_ELSE:
3770
- $(T, t, X.boxMargin + X.boxTextMargin, X.boxMargin, (e) => Z.addSectionToLoop(e));
3771
- break;
3772
- case o.db.LINETYPE.ALT_END:
3773
- n = Z.endLoop(), await Y.drawLoop(f, n, "alt", X), Z.bumpVerticalPos(n.stopy - Z.getVerticalPos()), Z.models.addLoop(n);
3774
- break;
3775
- case o.db.LINETYPE.PAR_START:
3776
- case o.db.LINETYPE.PAR_OVER_START:
3777
- $(T, t, X.boxMargin, X.boxMargin + X.boxTextMargin, (e) => Z.newLoop(e)), Z.saveVerticalPos();
3778
- break;
3779
- case o.db.LINETYPE.PAR_AND:
3780
- $(T, t, X.boxMargin + X.boxTextMargin, X.boxMargin, (e) => Z.addSectionToLoop(e));
3781
- break;
3782
- case o.db.LINETYPE.PAR_END:
3783
- n = Z.endLoop(), await Y.drawLoop(f, n, "par", X), Z.bumpVerticalPos(n.stopy - Z.getVerticalPos()), Z.models.addLoop(n);
3784
- break;
3785
- case o.db.LINETYPE.AUTONUMBER:
3786
- D = t.message.start || D, O = t.message.step || O, t.message.visible ? o.db.enableSequenceNumbers() : o.db.disableSequenceNumbers();
3787
- break;
3788
- case o.db.LINETYPE.CRITICAL_START:
3789
- $(T, t, X.boxMargin, X.boxMargin + X.boxTextMargin, (e) => Z.newLoop(e));
3790
- break;
3791
- case o.db.LINETYPE.CRITICAL_OPTION:
3792
- $(T, t, X.boxMargin + X.boxTextMargin, X.boxMargin, (e) => Z.addSectionToLoop(e));
3793
- break;
3794
- case o.db.LINETYPE.CRITICAL_END:
3795
- n = Z.endLoop(), await Y.drawLoop(f, n, "critical", X), Z.bumpVerticalPos(n.stopy - Z.getVerticalPos()), Z.models.addLoop(n);
3796
- break;
3797
- case o.db.LINETYPE.BREAK_START:
3798
- $(T, t, X.boxMargin, X.boxMargin + X.boxTextMargin, (e) => Z.newLoop(e));
3799
- break;
3800
- case o.db.LINETYPE.BREAK_END:
3801
- n = Z.endLoop(), await Y.drawLoop(f, n, "break", X), Z.bumpVerticalPos(n.stopy - Z.getVerticalPos()), Z.models.addLoop(n);
3802
- break;
3803
- default: try {
3804
- i = t.msgModel, i.starty = Z.getVerticalPos(), i.sequenceIndex = D, i.sequenceVisible = o.db.showSequenceNumbers();
3805
- let e = await Fe(f, i);
3806
- Ue(t, i, e, j, h, g, _), k.push({
3807
- messageModel: i,
3808
- lineStartY: e,
3809
- msg: t
3810
- }), Z.models.addMessage(i);
3811
- } catch (t) {
3812
- e.error("error while drawing message", t);
3813
- }
3814
- }
3815
- [
3816
- o.db.LINETYPE.SOLID_OPEN,
3817
- o.db.LINETYPE.DOTTED_OPEN,
3818
- o.db.LINETYPE.SOLID,
3819
- o.db.LINETYPE.SOLID_TOP,
3820
- o.db.LINETYPE.SOLID_BOTTOM,
3821
- o.db.LINETYPE.STICK_TOP,
3822
- o.db.LINETYPE.STICK_BOTTOM,
3823
- o.db.LINETYPE.SOLID_TOP_DOTTED,
3824
- o.db.LINETYPE.SOLID_BOTTOM_DOTTED,
3825
- o.db.LINETYPE.STICK_TOP_DOTTED,
3826
- o.db.LINETYPE.STICK_BOTTOM_DOTTED,
3827
- o.db.LINETYPE.SOLID_ARROW_TOP_REVERSE,
3828
- o.db.LINETYPE.SOLID_ARROW_BOTTOM_REVERSE,
3829
- o.db.LINETYPE.STICK_ARROW_TOP_REVERSE,
3830
- o.db.LINETYPE.STICK_ARROW_BOTTOM_REVERSE,
3831
- o.db.LINETYPE.SOLID_ARROW_TOP_REVERSE_DOTTED,
3832
- o.db.LINETYPE.SOLID_ARROW_BOTTOM_REVERSE_DOTTED,
3833
- o.db.LINETYPE.STICK_ARROW_TOP_REVERSE_DOTTED,
3834
- o.db.LINETYPE.STICK_ARROW_BOTTOM_REVERSE_DOTTED,
3835
- o.db.LINETYPE.DOTTED,
3836
- o.db.LINETYPE.SOLID_CROSS,
3837
- o.db.LINETYPE.DOTTED_CROSS,
3838
- o.db.LINETYPE.SOLID_POINT,
3839
- o.db.LINETYPE.DOTTED_POINT,
3840
- o.db.LINETYPE.BIDIRECTIONAL_SOLID,
3841
- o.db.LINETYPE.BIDIRECTIONAL_DOTTED
3842
- ].includes(t.type) && (D += O), j++;
3843
- }
3844
- e.debug("createdActors", g), e.debug("destroyedActors", _), await Re(f, h, y, !1);
3845
- for (let e of k) await Ie(f, e.messageModel, e.lineStartY, o, e.msg);
3846
- X.mirrorActors && await Re(f, h, y, !0), A.forEach((e) => Y.drawBackgroundRect(f, e)), ce(f, h, y, X);
3847
- for (let e of Z.models.boxes) {
3848
- e.height = Z.getVerticalPos() - e.y, Z.insert(e.x, e.y, e.x + e.width, e.height);
3849
- let t = X.boxMargin * 2;
3850
- 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(f, e, X);
3851
- }
3852
- S && Z.bumpVerticalPos(X.boxMargin);
3853
- let M = ze(f, h, y, d), { bounds: N } = Z.getBounds();
3854
- N.startx === void 0 && (N.startx = 0), N.starty === void 0 && (N.starty = 0), N.stopx === void 0 && (N.stopx = 0), N.stopy === void 0 && (N.stopy = 0);
3855
- let P = N.stopy - N.starty;
3856
- P < M.maxHeight && (P = M.maxHeight);
3857
- let F = P + 2 * X.diagramMarginY;
3858
- X.mirrorActors && (F = F - X.boxMargin + X.bottomMarginAdj);
3859
- let I = N.stopx - N.startx;
3860
- I < M.maxWidth && (I = M.maxWidth);
3861
- let ee = I + 2 * X.diagramMarginX;
3862
- x && f.append("text").text(x).attr("x", (N.stopx - N.startx) / 2 - 2 * X.diagramMarginX).attr("y", -25), m(f, F, ee, X.useMaxWidth);
3863
- let te = x ? 40 : 0;
3864
- f.attr("viewBox", N.startx - X.diagramMarginX + " -" + (X.diagramMarginY + te) + " " + ee + " " + (F + te)), e.debug("models:", Z.models);
3865
- }, "draw");
3866
- async function Ge(t, n, r) {
3867
- let i = {};
3868
- for (let e of n) if (t.get(e.to) && t.get(e.from)) {
3869
- let n = t.get(e.to);
3870
- if (e.placement === r.db.PLACEMENT.LEFTOF && !n.prevActor || e.placement === r.db.PLACEMENT.RIGHTOF && !n.nextActor) continue;
3871
- let a = e.placement !== void 0, o = !a, s = a ? Ne(X) : Q(X), c = e.wrap ? S.wrapLabel(e.message, X.width - 2 * X.wrapPadding, s) : e.message, l = (g(c) ? await h(e.message, p()) : S.calculateTextDimensions(c, s)).width + 2 * X.wrapPadding;
3872
- o && e.from === n.nextActor ? i[e.to] = v.getMax(i[e.to] || 0, l) : o && e.from === n.prevActor ? i[e.from] = v.getMax(i[e.from] || 0, l) : o && e.from === e.to ? (i[e.from] = v.getMax(i[e.from] || 0, l / 2), i[e.to] = v.getMax(i[e.to] || 0, l / 2)) : e.placement === r.db.PLACEMENT.RIGHTOF ? i[e.from] = v.getMax(i[e.from] || 0, l) : e.placement === r.db.PLACEMENT.LEFTOF ? i[n.prevActor] = v.getMax(i[n.prevActor] || 0, l) : e.placement === r.db.PLACEMENT.OVER && (n.prevActor && (i[n.prevActor] = v.getMax(i[n.prevActor] || 0, l / 2)), n.nextActor && (i[e.from] = v.getMax(i[e.from] || 0, l / 2)));
3873
- }
3874
- return e.debug("maxMessageWidthPerActor:", i), i;
3875
- }
3876
- t(Ge, "getMaxMessageWidthPerActor");
3877
- var Ke = /* @__PURE__ */ t(function(e) {
3878
- let t = 0, n = Pe(X);
3879
- for (let r in e.links) {
3880
- let e = S.calculateTextDimensions(r, n).width + 2 * X.wrapPadding + 2 * X.boxMargin;
3881
- t < e && (t = e);
3882
- }
3883
- return t;
3884
- }, "getRequiredPopupWidth");
3885
- async function qe(e, t, n) {
3886
- let r = 0;
3887
- for (let t of e.keys()) {
3888
- let n = e.get(t);
3889
- n.wrap && (n.description = S.wrapLabel(n.description, X.width - 2 * X.wrapPadding, Pe(X)));
3890
- let i = g(n.description) ? await h(n.description, p()) : S.calculateTextDimensions(n.description, Pe(X));
3891
- n.width = n.wrap ? X.width : v.getMax(X.width, i.width + 2 * X.wrapPadding), n.height = n.wrap ? v.getMax(i.height, X.height) : X.height, r = v.getMax(r, n.height);
3892
- }
3893
- for (let n in t) {
3894
- let r = e.get(n);
3895
- if (!r) continue;
3896
- let i = e.get(r.nextActor);
3897
- if (!i) {
3898
- let e = t[n] + X.actorMargin - r.width / 2;
3899
- r.margin = v.getMax(e, X.actorMargin);
3900
- continue;
3901
- }
3902
- let a = t[n] + X.actorMargin - r.width / 2 - i.width / 2;
3903
- r.margin = v.getMax(a, X.actorMargin);
3904
- }
3905
- let i = 0;
3906
- return n.forEach((t) => {
3907
- 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;
3908
- r += a, r -= 2 * X.boxTextMargin, t.wrap && (t.name = S.wrapLabel(t.name, r - 2 * X.wrapPadding, n));
3909
- let o = S.calculateTextDimensions(t.name, n);
3910
- i = v.getMax(o.height, i);
3911
- let s = v.getMax(r, o.width + 2 * X.wrapPadding);
3912
- if (t.margin = X.boxTextMargin, r < s) {
3913
- let e = (s - r) / 2;
3914
- t.margin += e;
3915
- }
3916
- }), n.forEach((e) => e.textMaxHeight = i), v.getMax(r, X.height);
3917
- }
3918
- t(qe, "calculateActorMargins");
3919
- var Je = /* @__PURE__ */ t(async function(t, n, r) {
3920
- let i = n.get(t.from), a = n.get(t.to), o = i.x, s = a.x, c = t.wrap && t.message, l = g(t.message) ? await h(t.message, p()) : S.calculateTextDimensions(c ? S.wrapLabel(t.message, X.width, Ne(X)) : t.message, Ne(X)), u = {
3921
- width: c ? X.width : v.getMax(X.width, l.width + 2 * X.noteMargin),
3922
- height: 0,
3923
- startx: i.x,
3924
- stopx: 0,
3925
- starty: 0,
3926
- stopy: 0,
3927
- message: t.message
3928
- };
3929
- return t.placement === r.db.PLACEMENT.RIGHTOF ? (u.width = c ? v.getMax(X.width, l.width) : v.getMax(i.width / 2 + a.width / 2, l.width + 2 * X.noteMargin), u.startx = o + (i.width + X.actorMargin) / 2) : t.placement === r.db.PLACEMENT.LEFTOF ? (u.width = c ? v.getMax(X.width, l.width + 2 * X.noteMargin) : v.getMax(i.width / 2 + a.width / 2, l.width + 2 * X.noteMargin), u.startx = o - u.width + (i.width - X.actorMargin) / 2) : t.to === t.from ? (l = S.calculateTextDimensions(c ? S.wrapLabel(t.message, v.getMax(X.width, i.width), Ne(X)) : t.message, Ne(X)), u.width = c ? v.getMax(X.width, i.width) : v.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 = S.wrapLabel(t.message, u.width - 2 * X.wrapPadding, Ne(X))), e.debug(`NM:[${u.startx},${u.stopx},${u.starty},${u.stopy}:${u.width},${u.height}=${t.message}]`), u;
3930
- }, "buildNoteModel"), Ye = 4, Xe = 6, Ze = /* @__PURE__ */ t(function(e, t) {
3931
- let { CENTRAL_CONNECTION: n, CENTRAL_CONNECTION_REVERSE: r, CENTRAL_CONNECTION_DUAL: i } = t.db.LINETYPE;
3932
- return [
3933
- n,
3934
- r,
3935
- i
3936
- ].includes(e.centralConnection);
3937
- }, "hasCentralConnection"), Qe = /* @__PURE__ */ t(function(e, t, n) {
3938
- let { CENTRAL_CONNECTION_REVERSE: r, CENTRAL_CONNECTION_DUAL: i, BIDIRECTIONAL_SOLID: a, BIDIRECTIONAL_DOTTED: o } = t.db.LINETYPE, s = 0;
3939
- return (e.centralConnection === r || e.centralConnection === i) && (s += Ye), (e.centralConnection === r || e.centralConnection === i) && (e.type === a || e.type === o) && (s += n ? 0 : -Xe), s;
3940
- }, "calculateCentralConnectionOffset"), $e = /* @__PURE__ */ t(function(e, t) {
3941
- 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;
3942
- return [
3943
- n,
3944
- r,
3945
- i,
3946
- a,
3947
- o,
3948
- s,
3949
- c,
3950
- l
3951
- ].includes(e.type);
3952
- }, "isReverseArrowType"), et = /* @__PURE__ */ t(function(e, t) {
3953
- let { BIDIRECTIONAL_SOLID: n, BIDIRECTIONAL_DOTTED: r } = t.db.LINETYPE;
3954
- return [n, r].includes(e.type);
3955
- }, "isBidirectionalArrowType"), tt = /* @__PURE__ */ t(function(e, n, r) {
3956
- if (![
3957
- r.db.LINETYPE.SOLID_OPEN,
3958
- r.db.LINETYPE.DOTTED_OPEN,
3959
- r.db.LINETYPE.SOLID,
3960
- r.db.LINETYPE.SOLID_TOP,
3961
- r.db.LINETYPE.SOLID_BOTTOM,
3962
- r.db.LINETYPE.STICK_TOP,
3963
- r.db.LINETYPE.STICK_BOTTOM,
3964
- r.db.LINETYPE.SOLID_TOP_DOTTED,
3965
- r.db.LINETYPE.SOLID_BOTTOM_DOTTED,
3966
- r.db.LINETYPE.STICK_TOP_DOTTED,
3967
- r.db.LINETYPE.STICK_BOTTOM_DOTTED,
3968
- r.db.LINETYPE.SOLID_ARROW_TOP_REVERSE,
3969
- r.db.LINETYPE.SOLID_ARROW_BOTTOM_REVERSE,
3970
- r.db.LINETYPE.STICK_ARROW_TOP_REVERSE,
3971
- r.db.LINETYPE.STICK_ARROW_BOTTOM_REVERSE,
3972
- r.db.LINETYPE.SOLID_ARROW_TOP_REVERSE_DOTTED,
3973
- r.db.LINETYPE.SOLID_ARROW_BOTTOM_REVERSE_DOTTED,
3974
- r.db.LINETYPE.STICK_ARROW_TOP_REVERSE_DOTTED,
3975
- r.db.LINETYPE.STICK_ARROW_BOTTOM_REVERSE_DOTTED,
3976
- r.db.LINETYPE.DOTTED,
3977
- r.db.LINETYPE.SOLID_CROSS,
3978
- r.db.LINETYPE.DOTTED_CROSS,
3979
- r.db.LINETYPE.SOLID_POINT,
3980
- r.db.LINETYPE.DOTTED_POINT,
3981
- r.db.LINETYPE.BIDIRECTIONAL_SOLID,
3982
- r.db.LINETYPE.BIDIRECTIONAL_DOTTED
3983
- ].includes(e.type)) return {};
3984
- let [i, a] = He(e.from, n), [o, s] = He(e.to, n), c = i <= o, l = c ? a : i, u = c ? o : s;
3985
- l += Qe(e, r, c);
3986
- let d = Math.abs(o - s) > 2, f = /* @__PURE__ */ t((e) => c ? -e : e, "adjustValue");
3987
- e.from === e.to ? u = l : (e.activate && !d && (u += f(X.activationWidth / 2 - 1)), [
3988
- r.db.LINETYPE.SOLID_OPEN,
3989
- r.db.LINETYPE.DOTTED_OPEN,
3990
- r.db.LINETYPE.STICK_TOP,
3991
- r.db.LINETYPE.STICK_BOTTOM,
3992
- r.db.LINETYPE.STICK_TOP_DOTTED,
3993
- r.db.LINETYPE.STICK_BOTTOM_DOTTED,
3994
- r.db.LINETYPE.SOLID_ARROW_TOP_REVERSE_DOTTED,
3995
- r.db.LINETYPE.SOLID_ARROW_BOTTOM_REVERSE_DOTTED,
3996
- r.db.LINETYPE.STICK_ARROW_TOP_REVERSE,
3997
- r.db.LINETYPE.STICK_ARROW_BOTTOM_REVERSE,
3998
- r.db.LINETYPE.STICK_ARROW_TOP_REVERSE_DOTTED,
3999
- r.db.LINETYPE.STICK_ARROW_BOTTOM_REVERSE_DOTTED,
4000
- r.db.LINETYPE.SOLID_ARROW_TOP_REVERSE,
4001
- r.db.LINETYPE.SOLID_ARROW_BOTTOM_REVERSE
4002
- ].includes(e.type) || (u += f(3)), [
4003
- r.db.LINETYPE.BIDIRECTIONAL_SOLID,
4004
- r.db.LINETYPE.BIDIRECTIONAL_DOTTED,
4005
- r.db.LINETYPE.SOLID_ARROW_TOP_REVERSE_DOTTED,
4006
- r.db.LINETYPE.SOLID_ARROW_BOTTOM_REVERSE_DOTTED,
4007
- r.db.LINETYPE.SOLID_ARROW_TOP_REVERSE,
4008
- r.db.LINETYPE.SOLID_ARROW_BOTTOM_REVERSE
4009
- ].includes(e.type) && (l -= f(3)));
4010
- let p = [
4011
- i,
4012
- a,
4013
- o,
4014
- s
4015
- ], m = Math.abs(l - u);
4016
- e.wrap && e.message && (e.message = S.wrapLabel(e.message, v.getMax(m + 2 * X.wrapPadding, X.width), Q(X)));
4017
- let h = S.calculateTextDimensions(e.message, Q(X));
4018
- return {
4019
- width: v.getMax(e.wrap ? 0 : h.width + 2 * X.wrapPadding, m + 2 * X.wrapPadding, X.width),
4020
- height: 0,
4021
- startx: l,
4022
- stopx: u,
4023
- starty: 0,
4024
- stopy: 0,
4025
- message: e.message,
4026
- type: e.type,
4027
- wrap: e.wrap,
4028
- fromBounds: Math.min.apply(null, p),
4029
- toBounds: Math.max.apply(null, p)
4030
- };
4031
- }, "buildMessageModel"), nt = /* @__PURE__ */ t(async function(t, n, r, i) {
4032
- let a = {}, o = [], s, c, l;
4033
- for (let e of t) {
4034
- switch (e.type) {
4035
- case i.db.LINETYPE.LOOP_START:
4036
- case i.db.LINETYPE.ALT_START:
4037
- case i.db.LINETYPE.OPT_START:
4038
- case i.db.LINETYPE.PAR_START:
4039
- case i.db.LINETYPE.PAR_OVER_START:
4040
- case i.db.LINETYPE.CRITICAL_START:
4041
- case i.db.LINETYPE.BREAK_START:
4042
- o.push({
4043
- id: e.id,
4044
- msg: e.message,
4045
- from: 2 ** 53 - 1,
4046
- to: -(2 ** 53 - 1),
4047
- width: 0
4048
- });
4049
- break;
4050
- case i.db.LINETYPE.ALT_ELSE:
4051
- case i.db.LINETYPE.PAR_AND:
4052
- case i.db.LINETYPE.CRITICAL_OPTION:
4053
- e.message && (s = o.pop(), a[s.id] = s, a[e.id] = s, o.push(s));
4054
- break;
4055
- case i.db.LINETYPE.LOOP_END:
4056
- case i.db.LINETYPE.ALT_END:
4057
- case i.db.LINETYPE.OPT_END:
4058
- case i.db.LINETYPE.PAR_END:
4059
- case i.db.LINETYPE.CRITICAL_END:
4060
- case i.db.LINETYPE.BREAK_END:
4061
- s = o.pop(), a[s.id] = s;
4062
- break;
4063
- case i.db.LINETYPE.ACTIVE_START:
4064
- {
4065
- let t = n.get(e.from ? e.from : e.to.actor), r = Ve(e.from ? e.from : e.to.actor).length, i = t.x + t.width / 2 + (r - 1) * X.activationWidth / 2, a = {
4066
- startx: i,
4067
- stopx: i + X.activationWidth,
4068
- actor: e.from,
4069
- enabled: !0
4070
- };
4071
- Z.activations.push(a);
4072
- }
4073
- break;
4074
- case i.db.LINETYPE.ACTIVE_END:
4075
- {
4076
- let t = Z.activations.map((e) => e.actor).lastIndexOf(e.from);
4077
- Z.activations.splice(t, 1).splice(0, 1);
4078
- }
4079
- break;
4080
- }
4081
- e.placement === void 0 ? (l = tt(e, n, i), e.msgModel = l, l.startx && l.stopx && o.length > 0 && o.forEach((t) => {
4082
- if (s = t, l.startx === l.stopx) {
4083
- let t = n.get(e.from), r = n.get(e.to);
4084
- s.from = v.getMin(t.x - l.width / 2, t.x - t.width / 2, s.from), s.to = v.getMax(r.x + l.width / 2, r.x + t.width / 2, s.to), s.width = v.getMax(s.width, Math.abs(s.to - s.from)) - X.labelBoxWidth;
4085
- } else s.from = v.getMin(l.startx, s.from), s.to = v.getMax(l.stopx, s.to), s.width = v.getMax(s.width, l.width) - X.labelBoxWidth;
4086
- })) : (c = await Je(e, n, i), e.noteModel = c, o.forEach((e) => {
4087
- s = e, s.from = v.getMin(s.from, c.startx), s.to = v.getMax(s.to, c.startx + c.width), s.width = v.getMax(s.width, Math.abs(s.from - s.to)) - X.labelBoxWidth;
4088
- }));
4089
- }
4090
- return Z.activations = [], e.debug("Loop type widths:", a), a;
4091
- }, "calculateLoopBounds"), rt = {
4092
- parser: F,
4093
- get db() {
4094
- return new re();
4095
- },
4096
- renderer: {
4097
- bounds: Z,
4098
- drawActors: Re,
4099
- drawActorsPopup: ze,
4100
- setConf: Be,
4101
- draw: We
4102
- },
4103
- styles: ie,
4104
- init: /* @__PURE__ */ t((e) => {
4105
- e.sequence ||= {}, e.wrap && (e.sequence.wrap = e.wrap, c({ sequence: { wrap: e.wrap } }));
4106
- }, "init")
4107
- };
4108
- //#endregion
4109
- export { rt as diagram };
4110
-
4111
- //# sourceMappingURL=sequenceDiagram-2WXFIKYE-BAd8OVlz.js.map