@chaibuilder/pages 0.16.10 → 0.16.12

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 (764) hide show
  1. package/dist/{2AITGKQY-C0A7leVc.cjs → 2AITGKQY-AK2WgbeT.cjs} +1 -1
  2. package/dist/{2AITGKQY-LtoYzpXb.js → 2AITGKQY-D1mM4eEh.js} +2 -2
  3. package/dist/{NCMVHL6D-BqKNTZhH.js → NCMVHL6D-BeRsWdGV.js} +2 -2
  4. package/dist/{NCMVHL6D-BbCiXTDR.cjs → NCMVHL6D-DItDf9IY.cjs} +1 -1
  5. package/dist/{ZDWCUMSJ-DEjMuvHw.cjs → ZDWCUMSJ-COSBY-at.cjs} +1 -1
  6. package/dist/{ZDWCUMSJ-CudD-G3A.js → ZDWCUMSJ-D6caRaY7.js} +1 -1
  7. package/dist/{add-new-language-page-CTZglguY.cjs → add-new-language-page-CQcFi0Tp.cjs} +1 -1
  8. package/dist/{add-new-language-page-C3R8vwOA.js → add-new-language-page-nnaUe-qk.js} +2 -2
  9. package/dist/{add-new-page-Dn-jphFf.js → add-new-page-Ba1fq6LH.js} +1 -1
  10. package/dist/{add-new-page-ByCsABU-.cjs → add-new-page-DxObnvo_.cjs} +1 -1
  11. package/dist/{ai-panel-content-VYS5Bn3a.cjs → ai-panel-content-B2AgBWqo.cjs} +1 -1
  12. package/dist/{ai-panel-content-CF7-wrq0.js → ai-panel-content-M1UnzG_f.js} +2 -2
  13. package/dist/{ai-panel-default-lang-C_zJzkZ4.js → ai-panel-default-lang-CHOFEwmV.js} +2 -2
  14. package/dist/{ai-panel-default-lang-D5vpT3cL.cjs → ai-panel-default-lang-sy6vkQJh.cjs} +3 -3
  15. package/dist/{ai-panel-other-lang-5Hdkr4eJ.js → ai-panel-other-lang-B4euTuod.js} +2 -2
  16. package/dist/ai-panel-other-lang-BwjSDD3L.cjs +1 -0
  17. package/dist/ai-prompt-input-B_NRADBT.js +988 -0
  18. package/dist/ai-prompt-input-DcyVXcLG.cjs +1 -0
  19. package/dist/{ai-translation-prompt-E3TEDobP.js → ai-translation-prompt-CVuPbgXw.js} +1 -1
  20. package/dist/{ai-translation-prompt-BYubvAxO.cjs → ai-translation-prompt-Ip7w2_Ey.cjs} +1 -1
  21. package/dist/{delete-page-CecAr8Ev.cjs → delete-page-CbY8q5M3.cjs} +1 -1
  22. package/dist/{delete-page-BtWRzpTh.js → delete-page-SX9X35nA.js} +1 -1
  23. package/dist/{digital-asset-manager-Y8YMABE1.cjs → digital-asset-manager-CIMo79Di.cjs} +1 -1
  24. package/dist/{digital-asset-manager-CyBlpHrq.js → digital-asset-manager-SAFNO_mx.js} +1 -1
  25. package/dist/{duplicate-page-3Dv56tPR.js → duplicate-page-5SwLvmkX.js} +2 -2
  26. package/dist/{duplicate-page-nGQAYVQc.cjs → duplicate-page-CXK2HcxD.cjs} +1 -1
  27. package/dist/{dynamic-page-selector-B9XaZMxt.cjs → dynamic-page-selector-Crd3y4Hk.cjs} +1 -1
  28. package/dist/{dynamic-page-selector-BapENUmp.js → dynamic-page-selector-DfcuTqRN.js} +1 -1
  29. package/dist/{image-editor-EmBN_Nn_.cjs → image-editor-CnDnY97s.cjs} +1 -1
  30. package/dist/{index-C1bimRWu.cjs → index-Bz7smSC0.cjs} +2 -2
  31. package/dist/{index-C_34q9jG.js → index-EnM7J19_.js} +16 -16
  32. package/dist/index.cjs +1 -1
  33. package/dist/index.js +1 -1
  34. package/dist/{json-diff-viewer-D2tCblUU.js → json-diff-viewer-CDwpbuag.js} +1 -1
  35. package/dist/{json-diff-viewer-B9kQEwcr.cjs → json-diff-viewer-D34kDA_c.cjs} +2 -2
  36. package/dist/{lang-panel-CsA6jzez.js → lang-panel-CUIeO5bb.js} +2 -2
  37. package/dist/{lang-panel-ClCAoE4L.cjs → lang-panel-CaFrYllL.cjs} +1 -1
  38. package/dist/{mark-as-template-BsOhlLYx.js → mark-as-template-D0dLQaIB.js} +1 -1
  39. package/dist/{mark-as-template-DUeGBAgn.cjs → mark-as-template-v182tmN6.cjs} +1 -1
  40. package/dist/{no-language-page-content-KLiCVKWw.cjs → no-language-page-content-Bk4fEx_p.cjs} +1 -1
  41. package/dist/{no-language-page-content-DveHrqZF.js → no-language-page-content-ByRFD_qA.js} +1 -1
  42. package/dist/{page-creator-Du1tv5PL.js → page-creator-Bh0IUGR3.js} +2 -2
  43. package/dist/{page-creator-I5z6OA-y.cjs → page-creator-BnvaGZVI.cjs} +1 -1
  44. package/dist/{page-lock-request-DSCZ2b9Y.cjs → page-lock-request-C2b1kqyA.cjs} +1 -1
  45. package/dist/{page-lock-request-C_FjXr4-.js → page-lock-request-CaNqxfD6.js} +1 -1
  46. package/dist/{page-locked-by-dialog-DAJlxcUt.js → page-locked-by-dialog--WLDdkw9.js} +1 -1
  47. package/dist/{page-locked-by-dialog-Daefw0-2.cjs → page-locked-by-dialog-90ElC8aG.cjs} +1 -1
  48. package/dist/{page-manager-new-BNk_0XVK.js → page-manager-new-Bo4-zwfW.js} +2 -2
  49. package/dist/{page-manager-new-DmA0Ka0c.cjs → page-manager-new-SNRQn7Az.cjs} +1 -1
  50. package/dist/{page-manager-search-and-filter-heV_U9x0.js → page-manager-search-and-filter-BETHSa3y.js} +1 -1
  51. package/dist/{page-manager-search-and-filter-DkR8sFPh.cjs → page-manager-search-and-filter-hyUIHOD_.cjs} +1 -1
  52. package/dist/{page-revisions-content-BIhjzS21.cjs → page-revisions-content-BCMjvZRZ.cjs} +1 -1
  53. package/dist/{page-revisions-content-BVg59skx.js → page-revisions-content-VWthKL7O.js} +2 -2
  54. package/dist/pages.css +1 -1
  55. package/dist/{publish-pages-content-BhJ_uRxQ.js → publish-pages-content-6N7aEcM1.js} +2 -2
  56. package/dist/{publish-pages-content-CKydxoZ_.cjs → publish-pages-content-CaBwfekc.cjs} +1 -1
  57. package/dist/{save-to-lib-C3mx8iXu.cjs → save-to-lib-CtGpDkC6.cjs} +1 -1
  58. package/dist/{save-to-lib-Byfa7tCG.js → save-to-lib-YYBxY7MV.js} +1 -1
  59. package/dist/selected-block-display-BEbuJn0l.cjs +16 -0
  60. package/dist/selected-block-display-DdW-DWF1.js +394 -0
  61. package/dist/{seo-panel-DxaEiunO.cjs → seo-panel-B9P7fXjo.cjs} +1 -1
  62. package/dist/{seo-panel-CrpYigIp.js → seo-panel-CqJDhbj-.js} +1 -1
  63. package/dist/server.cjs +4 -52
  64. package/dist/server.js +309 -10089
  65. package/dist/{shared-json-ld-CcUhox6j.cjs → shared-json-ld-CyxmC9y5.cjs} +1 -1
  66. package/dist/{shared-json-ld-DczSLaqw.js → shared-json-ld-DxEPILj_.js} +1 -1
  67. package/dist/{slug-input-CsniBgYf.cjs → slug-input-RNiSrU3p.cjs} +1 -1
  68. package/dist/{slug-input-CjagPxIn.js → slug-input-j5z5ZQn9.js} +1 -1
  69. package/dist/{theme-panel-footer-BYI0_a19.cjs → theme-panel-footer-CCsiDIVl.cjs} +1 -1
  70. package/dist/{theme-panel-footer-C-uSbeOf.js → theme-panel-footer-DD2yalfG.js} +1 -1
  71. package/dist/{unmark-as-template-CGKkAZPZ.js → unmark-as-template-B2hKhAHn.js} +1 -1
  72. package/dist/{unmark-as-template-GuUssCYI.cjs → unmark-as-template-DXjLbqOM.cjs} +1 -1
  73. package/dist/{unpublish-page-D67IrGmd.cjs → unpublish-page-BdJScWMX.cjs} +1 -1
  74. package/dist/{unpublish-page-ow8e1CXO.js → unpublish-page-BvB1PGSz.js} +1 -1
  75. package/dist/use-page-expand-manager-2KjeYfVS.cjs +1 -0
  76. package/dist/{web-preview-Dm8A9E8S.cjs → web-preview-BI4jd0O7.cjs} +1 -1
  77. package/dist/{web-preview-NCfHy3pB.js → web-preview-CwVpkcwU.js} +1 -1
  78. package/package.json +1 -1
  79. package/dist/_arrayEach-7nw56Qes.cjs +0 -1
  80. package/dist/_arrayEach-CBNlJl8q.js +0 -44
  81. package/dist/abap-DV7Q1lGP.cjs +0 -1
  82. package/dist/abap-Y8Dl9g_6.js +0 -6
  83. package/dist/actionscript-3-DXOxkRa2.cjs +0 -1
  84. package/dist/actionscript-3-DZzbMeqX.js +0 -6
  85. package/dist/ada-D46EKCNf.cjs +0 -1
  86. package/dist/ada-vP6ak0IW.js +0 -6
  87. package/dist/ai-panel-other-lang-BFnghH5Z.cjs +0 -1
  88. package/dist/ai-prompt-input-BXp7SxcJ.cjs +0 -45
  89. package/dist/ai-prompt-input-CrBweB8X.js +0 -4027
  90. package/dist/andromeeda-BIpZ7gaU.js +0 -4
  91. package/dist/andromeeda-DVDxRwp5.cjs +0 -1
  92. package/dist/angular-html-DPB4Rf0C.js +0 -32
  93. package/dist/angular-html-KMf2QdtP.cjs +0 -1
  94. package/dist/angular-ts-BxIbo3R1.cjs +0 -1
  95. package/dist/angular-ts-CTOR2ofC.js +0 -21
  96. package/dist/apache-BUjz-sD2.js +0 -6
  97. package/dist/apache-DL1xuH1f.cjs +0 -1
  98. package/dist/apex-CtcXmQ6V.js +0 -6
  99. package/dist/apex-UUd3Occv.cjs +0 -1
  100. package/dist/apl-CjNiDgad.js +0 -16
  101. package/dist/apl-Dj2G2M9w.cjs +0 -1
  102. package/dist/applescript-BPx7YFFu.js +0 -6
  103. package/dist/applescript-COilsSrZ.cjs +0 -1
  104. package/dist/ara-B6Lpq1YJ.cjs +0 -1
  105. package/dist/ara-Z2fSOxSw.js +0 -6
  106. package/dist/arc-CuYV2Z4i.js +0 -83
  107. package/dist/arc-Dzs-yn9V.cjs +0 -1
  108. package/dist/architecture-U656AL7Q-BFW69Rn1.js +0 -5
  109. package/dist/architecture-U656AL7Q-C1RBosC-.cjs +0 -1
  110. package/dist/architectureDiagram-VXUJARFQ-C7E-J7qp.js +0 -4669
  111. package/dist/architectureDiagram-VXUJARFQ-i1olysFf.cjs +0 -36
  112. package/dist/asciidoc-B-pCoB3G.js +0 -6
  113. package/dist/asciidoc-DcKqW72n.cjs +0 -1
  114. package/dist/asm-BTWLY5ym.js +0 -6
  115. package/dist/asm-DYMFy-sD.cjs +0 -1
  116. package/dist/astro-CFFExE8Q.js +0 -18
  117. package/dist/astro-DAOP_Xq6.cjs +0 -1
  118. package/dist/aurora-x-BwoVEUWZ.js +0 -4
  119. package/dist/aurora-x-C5IpmIOG.cjs +0 -1
  120. package/dist/awk-Fb0P9dkn.js +0 -6
  121. package/dist/awk-IEszImW6.cjs +0 -1
  122. package/dist/ayu-dark-Cv7nTiif.cjs +0 -1
  123. package/dist/ayu-dark-CxPZkpb2.js +0 -4
  124. package/dist/ballerina-Dr6dU4hP.cjs +0 -1
  125. package/dist/ballerina-oZK-YekG.js +0 -6
  126. package/dist/bat-0FvbqU9S.js +0 -6
  127. package/dist/bat-DGkUhhn2.cjs +0 -1
  128. package/dist/beancount-Bv1Sweoy.cjs +0 -1
  129. package/dist/beancount-DqJEb89h.js +0 -6
  130. package/dist/berry-DZkhZ7K3.cjs +0 -1
  131. package/dist/berry-PwsHPR_K.js +0 -6
  132. package/dist/bibtex-BgA36Z3k.cjs +0 -1
  133. package/dist/bibtex-EULQRLY5.js +0 -6
  134. package/dist/bicep-BorU73w0.js +0 -6
  135. package/dist/bicep-DL0zb-7W.cjs +0 -1
  136. package/dist/blade-BYkiyM-T.cjs +0 -1
  137. package/dist/blade-CRa6j5zS.js +0 -20
  138. package/dist/blockDiagram-VD42YOAC-8bGFphRU.js +0 -2368
  139. package/dist/blockDiagram-VD42YOAC-DG8nN7FI.cjs +0 -122
  140. package/dist/bsl-9bVgFeM9.cjs +0 -1
  141. package/dist/bsl-NkNNwerW.js +0 -8
  142. package/dist/c-CtlmKnPF.cjs +0 -1
  143. package/dist/c-eeMepfLm.js +0 -6
  144. package/dist/c4Diagram-YG6GDRKO-C5vTWKII.js +0 -1581
  145. package/dist/c4Diagram-YG6GDRKO-ojLwrHAZ.cjs +0 -10
  146. package/dist/cadence-02UX7mW8.js +0 -6
  147. package/dist/cadence-DcbmM5v3.cjs +0 -1
  148. package/dist/cairo-DM6WF2e3.js +0 -8
  149. package/dist/cairo-li7sQsxU.cjs +0 -1
  150. package/dist/catppuccin-frappe-Bn4lgmUk.cjs +0 -1
  151. package/dist/catppuccin-frappe-D3cH2rXe.js +0 -4
  152. package/dist/catppuccin-latte-BPtsb8jD.cjs +0 -1
  153. package/dist/catppuccin-latte-C0LRGUW4.js +0 -4
  154. package/dist/catppuccin-macchiato-BLfpQWhT.cjs +0 -1
  155. package/dist/catppuccin-macchiato-c5wQ11TT.js +0 -4
  156. package/dist/catppuccin-mocha-COMta283.cjs +0 -1
  157. package/dist/catppuccin-mocha-WMD6Qvya.js +0 -4
  158. package/dist/channel-Cdlcq82Q.js +0 -5
  159. package/dist/channel-D8SQrHOQ.cjs +0 -1
  160. package/dist/chunk-4BX2VUAB-D0Nkkvke.cjs +0 -1
  161. package/dist/chunk-4BX2VUAB-kRXCJxGQ.js +0 -9
  162. package/dist/chunk-55IACEB6-Ya_-e5Gj.cjs +0 -1
  163. package/dist/chunk-55IACEB6-xzVewFKl.js +0 -8
  164. package/dist/chunk-B4BG7PRW-C8Sj4Rta.cjs +0 -165
  165. package/dist/chunk-B4BG7PRW-DG5qX3ch.js +0 -1376
  166. package/dist/chunk-DI55MBZ5-C9He0Rku.cjs +0 -220
  167. package/dist/chunk-DI55MBZ5-CI_Ti_F2.js +0 -1382
  168. package/dist/chunk-FMBD7UC4-9Wx_99-Q.js +0 -19
  169. package/dist/chunk-FMBD7UC4-Be12B01Q.cjs +0 -15
  170. package/dist/chunk-QN33PNHL-B65aZfT8.cjs +0 -1
  171. package/dist/chunk-QN33PNHL-qSV2Zj2E.js +0 -20
  172. package/dist/chunk-QZHKN3VN-Dcw61eWf.js +0 -15
  173. package/dist/chunk-QZHKN3VN-V8GIXVhC.cjs +0 -1
  174. package/dist/chunk-TZMSLE5B-BUsuXR8P.cjs +0 -1
  175. package/dist/chunk-TZMSLE5B-De8BBIp6.js +0 -64
  176. package/dist/clarity-PKm5CwqM.js +0 -6
  177. package/dist/clarity-gPuvqtpF.cjs +0 -1
  178. package/dist/classDiagram-2ON5EDUG-DD8PWOat.cjs +0 -1
  179. package/dist/classDiagram-2ON5EDUG-DYXMSnp5.js +0 -16
  180. package/dist/classDiagram-v2-WZHVMYZB-DD8PWOat.cjs +0 -1
  181. package/dist/classDiagram-v2-WZHVMYZB-DYXMSnp5.js +0 -16
  182. package/dist/clojure-CXJfHrL3.js +0 -6
  183. package/dist/clojure-OUsr1SUl.cjs +0 -1
  184. package/dist/cmake-BJz8BOTU.js +0 -6
  185. package/dist/cmake-jM6P58qY.cjs +0 -1
  186. package/dist/cobol-CcrsCSUZ.cjs +0 -1
  187. package/dist/cobol-HihOMwht.js +0 -10
  188. package/dist/codeowners-Bt9yU6NX.js +0 -6
  189. package/dist/codeowners-QhPK6lIJ.cjs +0 -1
  190. package/dist/codeql-D9-TdUN8.cjs +0 -1
  191. package/dist/codeql-DHkodjjI.js +0 -6
  192. package/dist/coffee-DGBR_nr_.js +0 -8
  193. package/dist/coffee-DycxIFwY.cjs +0 -1
  194. package/dist/common-lisp-C77gR-8i.cjs +0 -1
  195. package/dist/common-lisp-EVqT9Zhp.js +0 -6
  196. package/dist/coq-B0L9upzn.js +0 -6
  197. package/dist/coq-vlPdR5hP.cjs +0 -1
  198. package/dist/cose-bilkent-S5V4N54A-BzynRFve.cjs +0 -1
  199. package/dist/cose-bilkent-S5V4N54A-C0LrMYq9.js +0 -2609
  200. package/dist/cpp-Cj177cuW.js +0 -18
  201. package/dist/cpp-DvI2Eoso.cjs +0 -1
  202. package/dist/crystal-B_WXhL2O.cjs +0 -1
  203. package/dist/crystal-CRJyc4G-.js +0 -18
  204. package/dist/csharp-C902_8Dy.cjs +0 -1
  205. package/dist/csharp-COJ2mCKr.js +0 -6
  206. package/dist/css-CECN5uSL.js +0 -6
  207. package/dist/css-Do0mp2lm.cjs +0 -1
  208. package/dist/csv-CmYOceLb.js +0 -6
  209. package/dist/csv-DiEdJzSJ.cjs +0 -1
  210. package/dist/cue-D1vJRJEx.cjs +0 -1
  211. package/dist/cue-ZzumE7IT.js +0 -6
  212. package/dist/cypher-atSM3NsM.cjs +0 -1
  213. package/dist/cypher-jpdmjtA6.js +0 -6
  214. package/dist/cytoscape.esm-DdQZKk9f.js +0 -18735
  215. package/dist/cytoscape.esm-DkGgpG6d.cjs +0 -331
  216. package/dist/d-2qe3NhmZ.cjs +0 -1
  217. package/dist/d-CBagWSwH.js +0 -6
  218. package/dist/dagre-6UL2VRFP-CJe6baLS.cjs +0 -4
  219. package/dist/dagre-6UL2VRFP-DK7rwVEg.js +0 -445
  220. package/dist/dark-plus-CRFsux2L.js +0 -4
  221. package/dist/dark-plus-DwC1RSst.cjs +0 -1
  222. package/dist/dart-6ObCrKr9.js +0 -6
  223. package/dist/dart-Ds0_0fwe.cjs +0 -1
  224. package/dist/dax-CcDT-8dH.js +0 -6
  225. package/dist/dax-DbkQa40E.cjs +0 -1
  226. package/dist/defaultLocale-D7EN2tov.js +0 -171
  227. package/dist/defaultLocale-DIVzfLaQ.cjs +0 -1
  228. package/dist/desktop-B93p9R9O.js +0 -6
  229. package/dist/desktop-tn3MFXCZ.cjs +0 -1
  230. package/dist/diagram-PSM6KHXK-C_A00ng9.js +0 -534
  231. package/dist/diagram-PSM6KHXK-X4v5dsQ4.cjs +0 -24
  232. package/dist/diagram-QEK2KX5R-rhfU6qwd.cjs +0 -43
  233. package/dist/diagram-QEK2KX5R-tTChUtDg.js +0 -221
  234. package/dist/diagram-S2PKOQOG-CJixlBq7.js +0 -143
  235. package/dist/diagram-S2PKOQOG-XyZUZk_b.cjs +0 -24
  236. package/dist/diff-BxzP2J8R.js +0 -6
  237. package/dist/diff-CA31fCOg.cjs +0 -1
  238. package/dist/docker-CsHqm9tx.js +0 -6
  239. package/dist/docker-zJpMwmYa.cjs +0 -1
  240. package/dist/dotenv-BMjVjUL1.js +0 -6
  241. package/dist/dotenv-DpcNCNek.cjs +0 -1
  242. package/dist/dracula-BNgwAJ-d.cjs +0 -1
  243. package/dist/dracula-BtZx2Kac.js +0 -4
  244. package/dist/dracula-soft-BHZ7sHFu.cjs +0 -1
  245. package/dist/dracula-soft-BKa-aqBv.js +0 -4
  246. package/dist/dream-maker-BkijXDkm.cjs +0 -1
  247. package/dist/dream-maker-PAx17jaB.js +0 -6
  248. package/dist/edge-BYQkOzbF.js +0 -12
  249. package/dist/edge-DaIYN5Mx.cjs +0 -1
  250. package/dist/elixir-BH_wmMK4.cjs +0 -1
  251. package/dist/elixir-Dh036GMp.js +0 -8
  252. package/dist/elm-BtNbw_Cd.js +0 -8
  253. package/dist/elm-Dc4sEBjc.cjs +0 -1
  254. package/dist/emacs-lisp-C1UCIjUO.cjs +0 -1
  255. package/dist/emacs-lisp-Cfxdx5D-.js +0 -6
  256. package/dist/erDiagram-Q2GNP2WA-B1QcX93p.js +0 -842
  257. package/dist/erDiagram-Q2GNP2WA-Up8_IT91.cjs +0 -60
  258. package/dist/erb-BqFQADjR.cjs +0 -1
  259. package/dist/erb-CS4zioBv.js +0 -10
  260. package/dist/erlang-CB2cfp6Z.cjs +0 -1
  261. package/dist/erlang-DNcDT8Hi.js +0 -8
  262. package/dist/everforest-dark-DMCBqXCK.js +0 -4
  263. package/dist/everforest-dark-_sBMomR1.cjs +0 -1
  264. package/dist/everforest-light-BbXl82Em.js +0 -4
  265. package/dist/everforest-light-H0xoYxl0.cjs +0 -1
  266. package/dist/fennel-Bz9-EMMc.cjs +0 -1
  267. package/dist/fennel-N4WcXuKx.js +0 -6
  268. package/dist/fish-BTDEUgqH.js +0 -6
  269. package/dist/fish-DwmQKRZi.cjs +0 -1
  270. package/dist/flowDiagram-NV44I4VS-BJffdKk6.cjs +0 -162
  271. package/dist/flowDiagram-NV44I4VS-Dq0-N_i3.js +0 -1627
  272. package/dist/fluent-BMXUxfv1.js +0 -6
  273. package/dist/fluent-CJtpNuaO.cjs +0 -1
  274. package/dist/fortran-fixed-form-DUsA-VGo.js +0 -8
  275. package/dist/fortran-fixed-form-rAbNFykM.cjs +0 -1
  276. package/dist/fortran-free-form-DPIT_jbP.js +0 -6
  277. package/dist/fortran-free-form-DRAcQkel.cjs +0 -1
  278. package/dist/fsharp-CYOiIVNx.js +0 -8
  279. package/dist/fsharp-DVcRF7k-.cjs +0 -1
  280. package/dist/ganttDiagram-LVOFAZNH-CndRZUwp.cjs +0 -267
  281. package/dist/ganttDiagram-LVOFAZNH-DCuouHg6.js +0 -2506
  282. package/dist/gdresource-BwtMIoBm.js +0 -10
  283. package/dist/gdresource-CcLusmd_.cjs +0 -1
  284. package/dist/gdscript-BifyeYhI.js +0 -6
  285. package/dist/gdscript-DSegQKMB.cjs +0 -1
  286. package/dist/gdshader-Bk8fF6yr.js +0 -6
  287. package/dist/gdshader-DsmqQl4t.cjs +0 -1
  288. package/dist/genie-Dy2rU8CF.cjs +0 -1
  289. package/dist/genie-DzUvd7U9.js +0 -6
  290. package/dist/gherkin-BmiEVBJ1.cjs +0 -1
  291. package/dist/gherkin-DHRaV0YP.js +0 -6
  292. package/dist/git-commit-Bd32YZ0K.js +0 -8
  293. package/dist/git-commit-DlVDzq9L.cjs +0 -1
  294. package/dist/git-rebase-Bn4RLd7u.cjs +0 -1
  295. package/dist/git-rebase-ZWUFO_T4.js +0 -8
  296. package/dist/gitGraph-F6HP7TQM-1lOuaCHS.cjs +0 -1
  297. package/dist/gitGraph-F6HP7TQM-Bwgh2Tgj.js +0 -5
  298. package/dist/gitGraphDiagram-NY62KEGX-BFpRv9B4.js +0 -712
  299. package/dist/gitGraphDiagram-NY62KEGX-Cc8RVspd.cjs +0 -65
  300. package/dist/github-dark-BKL9xNgN.cjs +0 -1
  301. package/dist/github-dark-DenFmJkN.js +0 -4
  302. package/dist/github-dark-default-BJPUVz4H.js +0 -4
  303. package/dist/github-dark-default-Dsv5MuSi.cjs +0 -1
  304. package/dist/github-dark-dimmed-CtB9hz8U.cjs +0 -1
  305. package/dist/github-dark-dimmed-DUshB20C.js +0 -4
  306. package/dist/github-dark-high-contrast-BqZVM-jF.cjs +0 -1
  307. package/dist/github-dark-high-contrast-D3aGCnF8.js +0 -4
  308. package/dist/github-light-BFTOhCbz.cjs +0 -1
  309. package/dist/github-light-JYsPkUQd.js +0 -4
  310. package/dist/github-light-default-BZoWH9dH.cjs +0 -1
  311. package/dist/github-light-default-D99KPAby.js +0 -4
  312. package/dist/github-light-high-contrast-BbmZE-Mp.js +0 -4
  313. package/dist/github-light-high-contrast-Ks3kPGJU.cjs +0 -1
  314. package/dist/gleam-Bv284lvN.js +0 -6
  315. package/dist/gleam-DHVuTCr7.cjs +0 -1
  316. package/dist/glimmer-js-CzmC7OX8.cjs +0 -1
  317. package/dist/glimmer-js-DkxNrfPT.js +0 -14
  318. package/dist/glimmer-ts-D6YZEmK_.js +0 -14
  319. package/dist/glimmer-ts-DLN2_wRt.cjs +0 -1
  320. package/dist/glsl-CQekZ3Zq.cjs +0 -1
  321. package/dist/glsl-CkUcVZNK.js +0 -8
  322. package/dist/gnuplot-CDPKvI9X.cjs +0 -1
  323. package/dist/gnuplot-yPG9-sE_.js +0 -6
  324. package/dist/go-ChxJuLYK.js +0 -6
  325. package/dist/go-epHseFUa.cjs +0 -1
  326. package/dist/graph-BJDrjORS.js +0 -244
  327. package/dist/graph-BLd2spTm.cjs +0 -1
  328. package/dist/graphql-BnP1YhXQ.cjs +0 -1
  329. package/dist/graphql-CBu2ehBn.js +0 -14
  330. package/dist/groovy-CJQTphOW.js +0 -6
  331. package/dist/groovy-D7VuDBXz.cjs +0 -1
  332. package/dist/gruvbox-dark-hard-C5HOtKIh.js +0 -4
  333. package/dist/gruvbox-dark-hard-CUGefKS6.cjs +0 -1
  334. package/dist/gruvbox-dark-medium-BoKPlKfz.cjs +0 -1
  335. package/dist/gruvbox-dark-medium-FVgwJHuz.js +0 -4
  336. package/dist/gruvbox-dark-soft-B46F314v.js +0 -4
  337. package/dist/gruvbox-dark-soft-DSrhOWeL.cjs +0 -1
  338. package/dist/gruvbox-light-hard-CJD38wDZ.js +0 -4
  339. package/dist/gruvbox-light-hard-De4IuseP.cjs +0 -1
  340. package/dist/gruvbox-light-medium-BlIhMYTA.js +0 -4
  341. package/dist/gruvbox-light-medium-CzMY3IEJ.cjs +0 -1
  342. package/dist/gruvbox-light-soft-DoPHyLVZ.js +0 -4
  343. package/dist/gruvbox-light-soft-U4iAIpWZ.cjs +0 -1
  344. package/dist/hack-BaDv2o40.cjs +0 -1
  345. package/dist/hack-ItRNKiEb.js +0 -10
  346. package/dist/haml-Bk21rGjP.cjs +0 -1
  347. package/dist/haml-NZLVzu_R.js +0 -10
  348. package/dist/handlebars-CJJi3lrU.cjs +0 -1
  349. package/dist/handlebars-mxStpSE7.js +0 -14
  350. package/dist/haskell-BShesV2P.cjs +0 -1
  351. package/dist/haskell-WeIwNIP6.js +0 -6
  352. package/dist/haxe-Bo5XuRS0.cjs +0 -1
  353. package/dist/haxe-TztHsm5T.js +0 -6
  354. package/dist/hcl-CrZnvm-1.cjs +0 -1
  355. package/dist/hcl-D438OF-I.js +0 -6
  356. package/dist/hjson-CEESwTUP.cjs +0 -1
  357. package/dist/hjson-DYBUbqOl.js +0 -6
  358. package/dist/hlsl-Bk8TCZNL.js +0 -6
  359. package/dist/hlsl-CyvYRIb9.cjs +0 -1
  360. package/dist/houston-BDYrDoDW.js +0 -4
  361. package/dist/houston-T57H3gQZ.cjs +0 -1
  362. package/dist/html-B50bmoVb.js +0 -10
  363. package/dist/html-C62Zf2h4.cjs +0 -1
  364. package/dist/html-derivative-C6bxFbFW.js +0 -8
  365. package/dist/html-derivative-NDb86jON.cjs +0 -1
  366. package/dist/http-BPlLI56k.cjs +0 -1
  367. package/dist/http-DLvAkeD-.js +0 -14
  368. package/dist/hurl-BQGBr8gH.cjs +0 -1
  369. package/dist/hurl-CgkFN90t.js +0 -12
  370. package/dist/hxml-GbqSQCLa.js +0 -8
  371. package/dist/hxml-vnw7fzrV.cjs +0 -1
  372. package/dist/hy-Brt5EZ7-.js +0 -6
  373. package/dist/hy-a1E2Ed6P.cjs +0 -1
  374. package/dist/imba-CR1Q6r17.cjs +0 -1
  375. package/dist/imba-CimUv-Uh.js +0 -6
  376. package/dist/info-NVLQJR56-C3piIB8L.cjs +0 -1
  377. package/dist/info-NVLQJR56-DxpWS9Ek.js +0 -5
  378. package/dist/infoDiagram-ER5ION4S-DqXS6eRb.cjs +0 -2
  379. package/dist/infoDiagram-ER5ION4S-iBX13SKY.js +0 -24
  380. package/dist/ini-BZIuRIvJ.js +0 -6
  381. package/dist/ini-Dpu3Xy2p.cjs +0 -1
  382. package/dist/init-CHZsXQcr.cjs +0 -1
  383. package/dist/init-DjUOC4st.js +0 -16
  384. package/dist/java--6gf61wy.cjs +0 -1
  385. package/dist/java-DY6VlHhP.js +0 -6
  386. package/dist/javascript-C25yR2R2.js +0 -6
  387. package/dist/javascript-DgmXW4Ha.cjs +0 -1
  388. package/dist/jinja-6NmewwV8.cjs +0 -1
  389. package/dist/jinja-CFW5uAwY.js +0 -11
  390. package/dist/jison-CD9Qsaj0.cjs +0 -1
  391. package/dist/jison-DdreslRX.js +0 -8
  392. package/dist/journeyDiagram-XKPGCS4Q-CIELmZlO.js +0 -836
  393. package/dist/journeyDiagram-XKPGCS4Q-CJX0XVNj.cjs +0 -139
  394. package/dist/json-DxJze_jm.js +0 -6
  395. package/dist/json-YkPizm35.cjs +0 -1
  396. package/dist/json5-BT4Fjg39.js +0 -6
  397. package/dist/json5-CCgFZiQn.cjs +0 -1
  398. package/dist/jsonc-CHjZD8gR.js +0 -6
  399. package/dist/jsonc-CKPHIcXW.cjs +0 -1
  400. package/dist/jsonl-BGuvDmy9.js +0 -6
  401. package/dist/jsonl-Dq56Hab-.cjs +0 -1
  402. package/dist/jsonnet-Bx2cfsXg.js +0 -6
  403. package/dist/jsonnet-Csh7E68F.cjs +0 -1
  404. package/dist/jssm-BcADi6EI.js +0 -6
  405. package/dist/jssm-D0M9iZPY.cjs +0 -1
  406. package/dist/jsx-BtKADgXT.js +0 -6
  407. package/dist/jsx-DLX6UGgg.cjs +0 -1
  408. package/dist/julia--2-efCjg.js +0 -16
  409. package/dist/julia-DimQn8rn.cjs +0 -1
  410. package/dist/kanagawa-dragon-BJZF7xDr.cjs +0 -1
  411. package/dist/kanagawa-dragon-CiKur4Hl.js +0 -4
  412. package/dist/kanagawa-lotus-BKu-smKu.js +0 -4
  413. package/dist/kanagawa-lotus-BhgzmRV4.cjs +0 -1
  414. package/dist/kanagawa-wave-BgJip59C.cjs +0 -1
  415. package/dist/kanagawa-wave-CQwozSzG.js +0 -4
  416. package/dist/kanban-definition-3W4ZIXB7-DnhdFt_Y.cjs +0 -89
  417. package/dist/kanban-definition-3W4ZIXB7-WK7l1gdb.js +0 -721
  418. package/dist/kdl-BNOv9TC3.js +0 -6
  419. package/dist/kdl-CDG1p2Qi.cjs +0 -1
  420. package/dist/kotlin-BHZjvNqT.cjs +0 -1
  421. package/dist/kotlin-ByBMgTeR.js +0 -6
  422. package/dist/kusto-BgZ0fOqg.cjs +0 -1
  423. package/dist/kusto-VWFLl2T0.js +0 -6
  424. package/dist/laserwave--izBLY1I.cjs +0 -1
  425. package/dist/laserwave-6a00oqik.js +0 -4
  426. package/dist/latex-CO8r39zT.js +0 -8
  427. package/dist/latex-Xma1qZep.cjs +0 -1
  428. package/dist/layout-AXx0t5i6.cjs +0 -1
  429. package/dist/layout-B6VyrpKo.js +0 -1223
  430. package/dist/lean-BCqiTZhG.cjs +0 -1
  431. package/dist/lean-k2QBx9cb.js +0 -6
  432. package/dist/less-B1GLI2Di.js +0 -6
  433. package/dist/less-Dtg8mm6P.cjs +0 -1
  434. package/dist/light-plus-B5D0le0o.cjs +0 -1
  435. package/dist/light-plus-CZuVqSLX.js +0 -4
  436. package/dist/linear-CdbmJ0kA.cjs +0 -1
  437. package/dist/linear-CebAae2s.js +0 -259
  438. package/dist/liquid-CHzkx3jT.js +0 -14
  439. package/dist/liquid-DjlCV7Vm.cjs +0 -1
  440. package/dist/llvm-DcRvQ_r8.cjs +0 -1
  441. package/dist/llvm-co1rIKs3.js +0 -6
  442. package/dist/log-Al8wyEFV.js +0 -6
  443. package/dist/log-CjTZ0gSB.cjs +0 -1
  444. package/dist/logo-BAktp_5i.cjs +0 -1
  445. package/dist/logo-DBa4JDzV.js +0 -6
  446. package/dist/lua-BfOnSJPp.cjs +0 -1
  447. package/dist/lua-kX5WP_P5.js +0 -8
  448. package/dist/luau-DTep-u3e.cjs +0 -1
  449. package/dist/luau-DtBSxLyz.js +0 -6
  450. package/dist/make-CsMclxtr.js +0 -6
  451. package/dist/make-NcdIe21U.cjs +0 -1
  452. package/dist/markdown-Byu9Sdmq.cjs +0 -1
  453. package/dist/markdown-CrScaQ96.js +0 -6
  454. package/dist/marko-Cvx4TamJ.cjs +0 -1
  455. package/dist/marko-ls0Jg2j8.js +0 -14
  456. package/dist/material-theme-D6KBX41T.js +0 -4
  457. package/dist/material-theme-Dj0-OyRN.cjs +0 -1
  458. package/dist/material-theme-darker-CkRroheE.js +0 -4
  459. package/dist/material-theme-darker-Dvfs29ir.cjs +0 -1
  460. package/dist/material-theme-lighter-BUBw43Yz.js +0 -4
  461. package/dist/material-theme-lighter-EU3ZGl_r.cjs +0 -1
  462. package/dist/material-theme-ocean-ClGX14Ja.js +0 -4
  463. package/dist/material-theme-ocean-px_3Pwqa.cjs +0 -1
  464. package/dist/material-theme-palenight-38jxvsGX.cjs +0 -1
  465. package/dist/material-theme-palenight-C1RVm8K1.js +0 -4
  466. package/dist/matlab-BOAaUVP0.js +0 -6
  467. package/dist/matlab-CHTOL9Kx.cjs +0 -1
  468. package/dist/mdc-DEPKJPdx.cjs +0 -1
  469. package/dist/mdc-uaivvctV.js +0 -12
  470. package/dist/mdx-BOhZZUJ8.js +0 -6
  471. package/dist/mdx-CjwI68TB.cjs +0 -1
  472. package/dist/mermaid-B0ixDHKN.js +0 -6
  473. package/dist/mermaid-XEfjk_VN.cjs +0 -1
  474. package/dist/mermaid-parser.core-DKJdj2_U.cjs +0 -128
  475. package/dist/mermaid-parser.core-GitSl6co.js +0 -13256
  476. package/dist/mermaid.core-3NhAXOzj.js +0 -14260
  477. package/dist/mermaid.core-Cop_RRH4.cjs +0 -196
  478. package/dist/min-dark-C7ak0t6c.js +0 -4
  479. package/dist/min-dark-tt5o_I5e.cjs +0 -1
  480. package/dist/min-light-CKFxVcPp.js +0 -4
  481. package/dist/min-light-tmTHl_CQ.cjs +0 -1
  482. package/dist/mindmap-definition-VGOIOE7T-BOk1rAbB.js +0 -787
  483. package/dist/mindmap-definition-VGOIOE7T-cJsasSc0.cjs +0 -68
  484. package/dist/mipsasm-BSlRcFIy.cjs +0 -1
  485. package/dist/mipsasm-CTx18fBl.js +0 -6
  486. package/dist/mojo-BD611d7o.js +0 -6
  487. package/dist/mojo-BQ8pQfYA.cjs +0 -1
  488. package/dist/monokai-C1KBYcO0.js +0 -4
  489. package/dist/monokai-DMIxv6MM.cjs +0 -1
  490. package/dist/move-Bm1vlCWg.cjs +0 -1
  491. package/dist/move-F-dICmj2.js +0 -6
  492. package/dist/narrat-CBeKHgTl.cjs +0 -1
  493. package/dist/narrat-DmhDCBs-.js +0 -6
  494. package/dist/nextflow-0_vzQJwQ.cjs +0 -1
  495. package/dist/nextflow-BAAEJxI_.js +0 -6
  496. package/dist/nginx-5vhPAEw3.js +0 -8
  497. package/dist/nginx-ByVOUyIE.cjs +0 -1
  498. package/dist/night-owl-BN78kThQ.cjs +0 -1
  499. package/dist/night-owl-Bm2rzalh.js +0 -4
  500. package/dist/nim-Bqmp5Of3.cjs +0 -1
  501. package/dist/nim-QAjRdh9w.js +0 -20
  502. package/dist/nix-B_7Vy2bT.js +0 -6
  503. package/dist/nix-BoOZl1xr.cjs +0 -1
  504. package/dist/nord-CC5OiUXg.js +0 -4
  505. package/dist/nord-Ca5AGUWc.cjs +0 -1
  506. package/dist/nushell-D8j3dhT-.js +0 -6
  507. package/dist/nushell-nGrB_wpI.cjs +0 -1
  508. package/dist/objective-c-Itk8tzmv.js +0 -6
  509. package/dist/objective-c-RjkWwFge.cjs +0 -1
  510. package/dist/objective-cpp-DGt5UKRO.js +0 -6
  511. package/dist/objective-cpp-HnfhWwRe.cjs +0 -1
  512. package/dist/ocaml-Cx8ewW_A.cjs +0 -1
  513. package/dist/ocaml-eSVK32Eg.js +0 -6
  514. package/dist/one-dark-pro-C09VQHwB.cjs +0 -1
  515. package/dist/one-dark-pro-DTA3VF0_.js +0 -4
  516. package/dist/one-light-020-h_lv.cjs +0 -1
  517. package/dist/one-light-D9sNaUtq.js +0 -4
  518. package/dist/ordinal-CagbB1m8.cjs +0 -1
  519. package/dist/ordinal-DfAQgscy.js +0 -61
  520. package/dist/packet-BFZMPI3H-B0uDu6gg.cjs +0 -1
  521. package/dist/packet-BFZMPI3H-tS-CKRal.js +0 -5
  522. package/dist/pascal-DBu9vQ2o.cjs +0 -1
  523. package/dist/pascal-xy8pJNns.js +0 -6
  524. package/dist/perl-CxWZPeDZ.cjs +0 -1
  525. package/dist/perl-DkVrgJBg.js +0 -16
  526. package/dist/php-BLXVJphD.cjs +0 -1
  527. package/dist/php-j2zCzTEz.js +0 -18
  528. package/dist/pie-7BOR55EZ-CcDzfu0_.js +0 -5
  529. package/dist/pie-7BOR55EZ-CqYqIXXG.cjs +0 -1
  530. package/dist/pieDiagram-ADFJNKIX-CFfE-HG7.js +0 -162
  531. package/dist/pieDiagram-ADFJNKIX-DWVdC3zW.cjs +0 -30
  532. package/dist/pkl-C-zSNmaA.js +0 -6
  533. package/dist/pkl-Dvyry4Rm.cjs +0 -1
  534. package/dist/plastic-CSTz3KZp.js +0 -4
  535. package/dist/plastic-r5piqq-S.cjs +0 -1
  536. package/dist/plsql-IJkoPJ9P.cjs +0 -1
  537. package/dist/plsql-pVbGZfOv.js +0 -6
  538. package/dist/po-BNfHvqmm.js +0 -6
  539. package/dist/po-Rhu6MvnX.cjs +0 -1
  540. package/dist/poimandres-BLP3NNjc.cjs +0 -1
  541. package/dist/poimandres-C-VADXHD.js +0 -4
  542. package/dist/polar-BtWqSUq2.cjs +0 -1
  543. package/dist/polar-CAZahv3u.js +0 -6
  544. package/dist/postcss-05aHdL-n.js +0 -6
  545. package/dist/postcss-Dh97DcaJ.cjs +0 -1
  546. package/dist/powerquery-BGL6VIw7.cjs +0 -1
  547. package/dist/powerquery-DI9HkTvs.js +0 -6
  548. package/dist/powershell-BiEPMjy-.cjs +0 -1
  549. package/dist/powershell-Clc4ydu-.js +0 -6
  550. package/dist/prisma-Dp473sn0.cjs +0 -1
  551. package/dist/prisma-FZjmVtSl.js +0 -6
  552. package/dist/prolog-C5-yg4TO.js +0 -6
  553. package/dist/prolog-N1U-3UeF.cjs +0 -1
  554. package/dist/proto-MmCPeFAD.js +0 -6
  555. package/dist/proto-kd7Vn2fe.cjs +0 -1
  556. package/dist/pug-DiGNE7sm.cjs +0 -1
  557. package/dist/pug-XOw9Q1Ho.js +0 -12
  558. package/dist/puppet-CUJHmnxV.js +0 -6
  559. package/dist/puppet-cDQP_ZC_.cjs +0 -1
  560. package/dist/purescript-DMxb59gF.cjs +0 -1
  561. package/dist/purescript-rUfGld-4.js +0 -6
  562. package/dist/python-BFNSHbwJ.js +0 -6
  563. package/dist/python-s9jfVbew.cjs +0 -1
  564. package/dist/qml-beorq0E4.cjs +0 -1
  565. package/dist/qml-rTNXsquU.js +0 -8
  566. package/dist/qmldir-BInDYbpo.js +0 -6
  567. package/dist/qmldir-DNF9H2ir.cjs +0 -1
  568. package/dist/qss-AeJTysr_.js +0 -6
  569. package/dist/qss-DwA_oiAM.cjs +0 -1
  570. package/dist/quadrantDiagram-AYHSOK5B-6xSOcCxL.js +0 -1024
  571. package/dist/quadrantDiagram-AYHSOK5B-J0R9fpox.cjs +0 -7
  572. package/dist/r-Bm0uF0U2.js +0 -6
  573. package/dist/r-ChIwckeM.cjs +0 -1
  574. package/dist/racket-B83wSAja.js +0 -6
  575. package/dist/racket-D4laxZit.cjs +0 -1
  576. package/dist/radar-NHE76QYJ-C4G7hzu6.js +0 -5
  577. package/dist/radar-NHE76QYJ-EznHmPEg.cjs +0 -1
  578. package/dist/raku-DHySPsLw.cjs +0 -1
  579. package/dist/raku-nEQ4ZJJ7.js +0 -6
  580. package/dist/razor-DgCbant-.cjs +0 -1
  581. package/dist/razor-Dh1wKTmh.js +0 -10
  582. package/dist/red-7y8PH7HH.js +0 -4
  583. package/dist/red-BQGOv1D5.cjs +0 -1
  584. package/dist/reg-CevkCKuZ.cjs +0 -1
  585. package/dist/reg-m_s_Kiip.js +0 -6
  586. package/dist/regexp-BazyLpPg.js +0 -6
  587. package/dist/regexp-DabTWNLE.cjs +0 -1
  588. package/dist/rel-BS5APza7.cjs +0 -1
  589. package/dist/rel-BcRfyd6Q.js +0 -6
  590. package/dist/requirementDiagram-UZGBJVZJ-DXq0f3Op.cjs +0 -64
  591. package/dist/requirementDiagram-UZGBJVZJ-p2d3AnQ8.js +0 -852
  592. package/dist/riscv-BnGFr6V7.cjs +0 -1
  593. package/dist/riscv-Ce8MAQLP.js +0 -6
  594. package/dist/rose-pine-Cr4kwgAY.js +0 -4
  595. package/dist/rose-pine-Dynd1SQq.cjs +0 -1
  596. package/dist/rose-pine-dawn-ClRRUdXX.js +0 -4
  597. package/dist/rose-pine-dawn-DwrpEjkh.cjs +0 -1
  598. package/dist/rose-pine-moon-8HmiewSG.cjs +0 -1
  599. package/dist/rose-pine-moon-ucNn3Gm8.js +0 -4
  600. package/dist/rosmsg-C7VSFzUC.cjs +0 -1
  601. package/dist/rosmsg-Cz0w1km8.js +0 -6
  602. package/dist/rst-CcbeA9zE.js +0 -22
  603. package/dist/rst-D08gsKw8.cjs +0 -1
  604. package/dist/ruby-B5H7kBtd.cjs +0 -1
  605. package/dist/ruby-DMPw6uKF.js +0 -30
  606. package/dist/rust-CLzF9zIN.js +0 -6
  607. package/dist/rust-CNeTMPbB.cjs +0 -1
  608. package/dist/sankeyDiagram-TZEHDZUN-CLBuuob-.cjs +0 -10
  609. package/dist/sankeyDiagram-TZEHDZUN-CbASga1e.js +0 -810
  610. package/dist/sas-D5Fn8Q38.cjs +0 -1
  611. package/dist/sas-fpEvgATw.js +0 -8
  612. package/dist/sass-DxHp5rTx.js +0 -6
  613. package/dist/sass-vyo-bUwh.cjs +0 -1
  614. package/dist/scala-D4grkFkl.js +0 -6
  615. package/dist/scala-ZSekD-8-.cjs +0 -1
  616. package/dist/scheme-BCRWuEm4.js +0 -6
  617. package/dist/scheme-vM0LdD-_.cjs +0 -1
  618. package/dist/scss-B1FaCqwR.js +0 -8
  619. package/dist/scss-CKlduTMv.cjs +0 -1
  620. package/dist/sdbl-B7T8abf4.js +0 -6
  621. package/dist/sdbl-DeWT5r4i.cjs +0 -1
  622. package/dist/selected-block-display-CZ3zwgqL.js +0 -43632
  623. package/dist/selected-block-display-GwQBADhp.cjs +0 -541
  624. package/dist/sequenceDiagram-WL72ISMW-3T2mzAhA.js +0 -2522
  625. package/dist/sequenceDiagram-WL72ISMW-DmS_WEPR.cjs +0 -145
  626. package/dist/shaderlab-Cr62-Wb4.js +0 -8
  627. package/dist/shaderlab-DGJjQHxC.cjs +0 -1
  628. package/dist/shellscript-DYWjN7qW.cjs +0 -1
  629. package/dist/shellscript-InADTalH.js +0 -6
  630. package/dist/shellsession-DMUSXX8m.cjs +0 -1
  631. package/dist/shellsession-DiDJNQdy.js +0 -8
  632. package/dist/slack-dark-akqwQ7ED.cjs +0 -1
  633. package/dist/slack-dark-i7wN4OET.js +0 -4
  634. package/dist/slack-ochin-BoQQWmTv.cjs +0 -1
  635. package/dist/slack-ochin-ndHf0LoP.js +0 -4
  636. package/dist/smalltalk-BNs6hxu4.cjs +0 -1
  637. package/dist/smalltalk-BlI1_OkM.js +0 -6
  638. package/dist/snazzy-light-BlSJXAu4.js +0 -4
  639. package/dist/snazzy-light-D_IwRieF.cjs +0 -1
  640. package/dist/solarized-dark-UTmkh7lw.js +0 -4
  641. package/dist/solarized-dark-gmm-WbDC.cjs +0 -1
  642. package/dist/solarized-light-BheCkDPT.js +0 -4
  643. package/dist/solarized-light-DzcxRSZP.cjs +0 -1
  644. package/dist/solidity-CYggdHYd.cjs +0 -1
  645. package/dist/solidity-CneOhxmR.js +0 -6
  646. package/dist/soy-C1-6njHa.js +0 -8
  647. package/dist/soy-CDFPDtGX.cjs +0 -1
  648. package/dist/sparql-6Cg9ppCl.cjs +0 -1
  649. package/dist/sparql-B0KWFEri.js +0 -8
  650. package/dist/splunk-CRXR8A9s.js +0 -6
  651. package/dist/splunk-CWPivao_.cjs +0 -1
  652. package/dist/sql-Cn_v3PB0.js +0 -6
  653. package/dist/sql-DhUUVgH1.cjs +0 -1
  654. package/dist/ssh-config-B93wBIBa.cjs +0 -1
  655. package/dist/ssh-config-DP-hNVbF.js +0 -6
  656. package/dist/stata-B8c5fTjX.js +0 -8
  657. package/dist/stata-DCWFCQQG.cjs +0 -1
  658. package/dist/stateDiagram-FKZM4ZOC-BmMX9umD.cjs +0 -1
  659. package/dist/stateDiagram-FKZM4ZOC-D9lkyJcL.js +0 -264
  660. package/dist/stateDiagram-v2-4FDKWEC3-BwQkMtRv.cjs +0 -1
  661. package/dist/stateDiagram-v2-4FDKWEC3-D0yq-_gB.js +0 -16
  662. package/dist/stylus-B64Bt0D4.cjs +0 -1
  663. package/dist/stylus-CyKEU1Ej.js +0 -6
  664. package/dist/svelte-5UasyOg7.js +0 -14
  665. package/dist/svelte-DFg_x5i4.cjs +0 -1
  666. package/dist/swift-9UzSvamq.js +0 -6
  667. package/dist/swift-BMbGdc3j.cjs +0 -1
  668. package/dist/synthwave-84-BBRLOmNT.cjs +0 -1
  669. package/dist/synthwave-84-NU3C_KFZ.js +0 -4
  670. package/dist/system-verilog-BCm7smPJ.js +0 -6
  671. package/dist/system-verilog-BFclLo9e.cjs +0 -1
  672. package/dist/systemd-C-4qm6XH.js +0 -6
  673. package/dist/systemd-Dtw7P4tb.cjs +0 -1
  674. package/dist/talonscript-CFF3LF_O.js +0 -6
  675. package/dist/talonscript-D8SvZJVc.cjs +0 -1
  676. package/dist/tasl--DC4oX-L.cjs +0 -1
  677. package/dist/tasl-Cg_WBUAe.js +0 -6
  678. package/dist/tcl-0Q0H86Yn.cjs +0 -1
  679. package/dist/tcl-DN7buRTF.js +0 -6
  680. package/dist/templ-BDNMUns0.cjs +0 -1
  681. package/dist/templ-peLZIM2D.js +0 -12
  682. package/dist/terraform-C0RDrmWi.cjs +0 -1
  683. package/dist/terraform-DGvcn9zM.js +0 -6
  684. package/dist/tex-BUUuwxQS.js +0 -8
  685. package/dist/tex-By7qnogv.cjs +0 -1
  686. package/dist/timeline-definition-IT6M3QCI-Bi9IiYMF.cjs +0 -61
  687. package/dist/timeline-definition-IT6M3QCI-LtkAohDp.js +0 -801
  688. package/dist/tokyo-night-DP4TmcQl.js +0 -4
  689. package/dist/tokyo-night-GOhjzM5y.cjs +0 -1
  690. package/dist/toml-DY62mUL_.js +0 -6
  691. package/dist/toml-Q64DoSvG.cjs +0 -1
  692. package/dist/treemap-KMMF4GRG-DAuFMsAI.cjs +0 -1
  693. package/dist/treemap-KMMF4GRG-vy1iI8-N.js +0 -5
  694. package/dist/ts-tags-DILCom6A.cjs +0 -1
  695. package/dist/ts-tags-ioVe2PKw.js +0 -41
  696. package/dist/tsv-BtvSkaG0.js +0 -6
  697. package/dist/tsv-DqNGnuVj.cjs +0 -1
  698. package/dist/tsx-B8rCNbgL.js +0 -6
  699. package/dist/tsx-DIpfUf9u.cjs +0 -1
  700. package/dist/turtle-DipIidr5.cjs +0 -1
  701. package/dist/turtle-_H59FV7D.js +0 -6
  702. package/dist/twig-B42NGISI.cjs +0 -1
  703. package/dist/twig-CcRLVyUg.js +0 -18
  704. package/dist/typescript-RycA9KXf.js +0 -6
  705. package/dist/typescript-b48wo4zk.cjs +0 -1
  706. package/dist/typespec-CLqB-2XS.cjs +0 -1
  707. package/dist/typespec-Djmco60m.js +0 -6
  708. package/dist/typst-Cqq4j4V-.cjs +0 -1
  709. package/dist/typst-D_1QKWns.js +0 -6
  710. package/dist/use-page-expand-manager-B5Y2KS1c.cjs +0 -1
  711. package/dist/v-81C2s01-.cjs +0 -1
  712. package/dist/v-BPCNiyYe.js +0 -6
  713. package/dist/vala-CsAYdCD2.cjs +0 -1
  714. package/dist/vala-uxaPR7d1.js +0 -6
  715. package/dist/vb-AiTMb16X.cjs +0 -1
  716. package/dist/vb-D8_c5-KN.js +0 -6
  717. package/dist/verilog-AMohXZcN.cjs +0 -1
  718. package/dist/verilog-B-bybjPF.js +0 -6
  719. package/dist/vesper-B59Iw4gV.cjs +0 -1
  720. package/dist/vesper-BckBta1U.js +0 -4
  721. package/dist/vhdl-CUlNa8ac.js +0 -6
  722. package/dist/vhdl-DIdR1NA5.cjs +0 -1
  723. package/dist/viml-D01eKeA4.cjs +0 -1
  724. package/dist/viml-DsfA-sWm.js +0 -6
  725. package/dist/vitesse-black-BoGvW84i.js +0 -4
  726. package/dist/vitesse-black-MF-1S1MG.cjs +0 -1
  727. package/dist/vitesse-dark-Cym-eLtO.js +0 -4
  728. package/dist/vitesse-dark-SIffJYSe.cjs +0 -1
  729. package/dist/vitesse-light-CcmG315c.js +0 -4
  730. package/dist/vitesse-light-U63SkYGT.cjs +0 -1
  731. package/dist/vue-DUYfTwgV.cjs +0 -1
  732. package/dist/vue-DrinnB8Y.js +0 -31
  733. package/dist/vue-html-B8T_zUQ-.cjs +0 -1
  734. package/dist/vue-html-CQOyCFnQ.js +0 -10
  735. package/dist/vue-vine-CAyeVfAj.js +0 -20
  736. package/dist/vue-vine-ClEtVpt5.cjs +0 -1
  737. package/dist/vyper-CPQuu50u.js +0 -6
  738. package/dist/vyper-DTzyzn3a.cjs +0 -1
  739. package/dist/wasm-BBXxrAl7.js +0 -6
  740. package/dist/wasm-DQxwEHae.js +0 -7
  741. package/dist/wasm-Dp-QrJpp.cjs +0 -1
  742. package/dist/wasm-Dw4u1m6u.cjs +0 -1
  743. package/dist/wenyan-CRNx8UP3.cjs +0 -1
  744. package/dist/wenyan-pbVjoM9_.js +0 -6
  745. package/dist/wgsl-DF5qc9dd.cjs +0 -1
  746. package/dist/wgsl-DY4iK1q1.js +0 -6
  747. package/dist/wikitext-D7uzEIfK.cjs +0 -1
  748. package/dist/wikitext-Z-MoUasO.js +0 -6
  749. package/dist/wit-BjWgLsJj.cjs +0 -1
  750. package/dist/wit-CQMQOlTg.js +0 -6
  751. package/dist/wolfram-BR4t3Ffc.cjs +0 -1
  752. package/dist/wolfram-Dz4KXISs.js +0 -6
  753. package/dist/xml-BpsKWkuV.cjs +0 -1
  754. package/dist/xml-C2J0sS9M.js +0 -8
  755. package/dist/xsl-BmSZphgC.js +0 -8
  756. package/dist/xsl-D-3VYix6.cjs +0 -1
  757. package/dist/xychartDiagram-PRI3JC2R-d5V8_6ka.cjs +0 -7
  758. package/dist/xychartDiagram-PRI3JC2R-ggiHJXU7.js +0 -1340
  759. package/dist/yaml-DaO7k5B1.js +0 -6
  760. package/dist/yaml-XVBmpKh-.cjs +0 -1
  761. package/dist/zenscript-CxBjpf9c.js +0 -6
  762. package/dist/zenscript-fNvwKexi.cjs +0 -1
  763. package/dist/zig-BAyIAcWK.cjs +0 -1
  764. package/dist/zig-Vm0PO9wB.js +0 -6
@@ -1,2522 +0,0 @@
1
- import { g as ct, a as Xt, d as we, b as ve, c as Jt, e as Qt } from "./chunk-TZMSLE5B-De8BBIp6.js";
2
- import { _ as f, s as se, c as Ie, o as Le, g as Ae, b as _e, p as ke, d as st, q as Pe, J as Ne, v as Se, l as Q, i as St, y as Me, e as I, a2 as z, a3 as At, u as F, a as Re, j as Mt, k as De, m as re, a4 as Ce, a5 as ie, G as Ht, a6 as ne, a7 as Oe } from "./mermaid.core-3NhAXOzj.js";
3
- import { I as Be } from "./chunk-QZHKN3VN-Dcw61eWf.js";
4
- var Ut = function() {
5
- var e = /* @__PURE__ */ f(function(pt, v, _, L) {
6
- for (_ = _ || {}, L = pt.length; L--; _[pt[L]] = v) ;
7
- return _;
8
- }, "o"), t = [1, 2], n = [1, 3], s = [1, 4], r = [2, 4], i = [1, 9], c = [1, 11], h = [1, 13], o = [1, 14], a = [1, 16], p = [1, 17], g = [1, 18], x = [1, 24], y = [1, 25], b = [1, 26], w = [1, 27], k = [1, 28], N = [1, 29], S = [1, 30], M = [1, 31], C = [1, 32], Y = [1, 33], H = [1, 34], Z = [1, 35], at = [1, 36], U = [1, 37], G = [1, 38], q = [1, 39], O = [1, 41], $ = [1, 42], K = [1, 43], j = [1, 44], rt = [1, 45], D = [1, 46], E = [1, 4, 5, 13, 14, 16, 18, 21, 23, 29, 30, 31, 33, 35, 36, 37, 38, 39, 41, 43, 44, 46, 47, 48, 49, 50, 52, 53, 55, 60, 61, 62, 63, 71], A = [2, 71], X = [4, 5, 16, 50, 52, 53], tt = [4, 5, 13, 14, 16, 18, 21, 23, 29, 30, 31, 33, 35, 36, 37, 38, 39, 41, 43, 44, 46, 50, 52, 53, 55, 60, 61, 62, 63, 71], R = [4, 5, 13, 14, 16, 18, 21, 23, 29, 30, 31, 33, 35, 36, 37, 38, 39, 41, 43, 44, 46, 49, 50, 52, 53, 55, 60, 61, 62, 63, 71], Vt = [4, 5, 13, 14, 16, 18, 21, 23, 29, 30, 31, 33, 35, 36, 37, 38, 39, 41, 43, 44, 46, 48, 50, 52, 53, 55, 60, 61, 62, 63, 71], Zt = [4, 5, 13, 14, 16, 18, 21, 23, 29, 30, 31, 33, 35, 36, 37, 38, 39, 41, 43, 44, 46, 47, 50, 52, 53, 55, 60, 61, 62, 63, 71], ot = [69, 70, 71], lt = [1, 127], Yt = {
9
- trace: /* @__PURE__ */ f(function() {
10
- }, "trace"),
11
- yy: {},
12
- symbols_: { error: 2, start: 3, SPACE: 4, NEWLINE: 5, SD: 6, document: 7, line: 8, statement: 9, box_section: 10, box_line: 11, participant_statement: 12, create: 13, box: 14, restOfLine: 15, end: 16, signal: 17, autonumber: 18, NUM: 19, off: 20, activate: 21, actor: 22, deactivate: 23, note_statement: 24, links_statement: 25, link_statement: 26, properties_statement: 27, details_statement: 28, title: 29, legacy_title: 30, acc_title: 31, acc_title_value: 32, acc_descr: 33, acc_descr_value: 34, acc_descr_multiline_value: 35, loop: 36, rect: 37, opt: 38, alt: 39, else_sections: 40, par: 41, par_sections: 42, par_over: 43, critical: 44, option_sections: 45, break: 46, option: 47, and: 48, else: 49, participant: 50, AS: 51, participant_actor: 52, destroy: 53, actor_with_config: 54, note: 55, placement: 56, text2: 57, over: 58, actor_pair: 59, links: 60, link: 61, properties: 62, details: 63, spaceList: 64, ",": 65, left_of: 66, right_of: 67, signaltype: 68, "+": 69, "-": 70, ACTOR: 71, config_object: 72, CONFIG_START: 73, CONFIG_CONTENT: 74, CONFIG_END: 75, SOLID_OPEN_ARROW: 76, DOTTED_OPEN_ARROW: 77, SOLID_ARROW: 78, BIDIRECTIONAL_SOLID_ARROW: 79, DOTTED_ARROW: 80, BIDIRECTIONAL_DOTTED_ARROW: 81, SOLID_CROSS: 82, DOTTED_CROSS: 83, SOLID_POINT: 84, DOTTED_POINT: 85, TXT: 86, $accept: 0, $end: 1 },
13
- terminals_: { 2: "error", 4: "SPACE", 5: "NEWLINE", 6: "SD", 13: "create", 14: "box", 15: "restOfLine", 16: "end", 18: "autonumber", 19: "NUM", 20: "off", 21: "activate", 23: "deactivate", 29: "title", 30: "legacy_title", 31: "acc_title", 32: "acc_title_value", 33: "acc_descr", 34: "acc_descr_value", 35: "acc_descr_multiline_value", 36: "loop", 37: "rect", 38: "opt", 39: "alt", 41: "par", 43: "par_over", 44: "critical", 46: "break", 47: "option", 48: "and", 49: "else", 50: "participant", 51: "AS", 52: "participant_actor", 53: "destroy", 55: "note", 58: "over", 60: "links", 61: "link", 62: "properties", 63: "details", 65: ",", 66: "left_of", 67: "right_of", 69: "+", 70: "-", 71: "ACTOR", 73: "CONFIG_START", 74: "CONFIG_CONTENT", 75: "CONFIG_END", 76: "SOLID_OPEN_ARROW", 77: "DOTTED_OPEN_ARROW", 78: "SOLID_ARROW", 79: "BIDIRECTIONAL_SOLID_ARROW", 80: "DOTTED_ARROW", 81: "BIDIRECTIONAL_DOTTED_ARROW", 82: "SOLID_CROSS", 83: "DOTTED_CROSS", 84: "SOLID_POINT", 85: "DOTTED_POINT", 86: "TXT" },
14
- productions_: [0, [3, 2], [3, 2], [3, 2], [7, 0], [7, 2], [8, 2], [8, 1], [8, 1], [10, 0], [10, 2], [11, 2], [11, 1], [11, 1], [9, 1], [9, 2], [9, 4], [9, 2], [9, 4], [9, 3], [9, 3], [9, 2], [9, 3], [9, 3], [9, 2], [9, 2], [9, 2], [9, 2], [9, 2], [9, 1], [9, 1], [9, 2], [9, 2], [9, 1], [9, 4], [9, 4], [9, 4], [9, 4], [9, 4], [9, 4], [9, 4], [9, 4], [45, 1], [45, 4], [42, 1], [42, 4], [40, 1], [40, 4], [12, 5], [12, 3], [12, 5], [12, 3], [12, 3], [12, 3], [24, 4], [24, 4], [25, 3], [26, 3], [27, 3], [28, 3], [64, 2], [64, 1], [59, 3], [59, 1], [56, 1], [56, 1], [17, 5], [17, 5], [17, 4], [54, 2], [72, 3], [22, 1], [68, 1], [68, 1], [68, 1], [68, 1], [68, 1], [68, 1], [68, 1], [68, 1], [68, 1], [68, 1], [57, 1]],
15
- performAction: /* @__PURE__ */ f(function(v, _, L, m, B, d, It) {
16
- var u = d.length - 1;
17
- switch (B) {
18
- case 3:
19
- return m.apply(d[u]), d[u];
20
- case 4:
21
- case 9:
22
- this.$ = [];
23
- break;
24
- case 5:
25
- case 10:
26
- d[u - 1].push(d[u]), this.$ = d[u - 1];
27
- break;
28
- case 6:
29
- case 7:
30
- case 11:
31
- case 12:
32
- this.$ = d[u];
33
- break;
34
- case 8:
35
- case 13:
36
- this.$ = [];
37
- break;
38
- case 15:
39
- d[u].type = "createParticipant", this.$ = d[u];
40
- break;
41
- case 16:
42
- d[u - 1].unshift({ type: "boxStart", boxData: m.parseBoxData(d[u - 2]) }), d[u - 1].push({ type: "boxEnd", boxText: d[u - 2] }), this.$ = d[u - 1];
43
- break;
44
- case 18:
45
- this.$ = { type: "sequenceIndex", sequenceIndex: Number(d[u - 2]), sequenceIndexStep: Number(d[u - 1]), sequenceVisible: !0, signalType: m.LINETYPE.AUTONUMBER };
46
- break;
47
- case 19:
48
- this.$ = { type: "sequenceIndex", sequenceIndex: Number(d[u - 1]), sequenceIndexStep: 1, sequenceVisible: !0, signalType: m.LINETYPE.AUTONUMBER };
49
- break;
50
- case 20:
51
- this.$ = { type: "sequenceIndex", sequenceVisible: !1, signalType: m.LINETYPE.AUTONUMBER };
52
- break;
53
- case 21:
54
- this.$ = { type: "sequenceIndex", sequenceVisible: !0, signalType: m.LINETYPE.AUTONUMBER };
55
- break;
56
- case 22:
57
- this.$ = { type: "activeStart", signalType: m.LINETYPE.ACTIVE_START, actor: d[u - 1].actor };
58
- break;
59
- case 23:
60
- this.$ = { type: "activeEnd", signalType: m.LINETYPE.ACTIVE_END, actor: d[u - 1].actor };
61
- break;
62
- case 29:
63
- m.setDiagramTitle(d[u].substring(6)), this.$ = d[u].substring(6);
64
- break;
65
- case 30:
66
- m.setDiagramTitle(d[u].substring(7)), this.$ = d[u].substring(7);
67
- break;
68
- case 31:
69
- this.$ = d[u].trim(), m.setAccTitle(this.$);
70
- break;
71
- case 32:
72
- case 33:
73
- this.$ = d[u].trim(), m.setAccDescription(this.$);
74
- break;
75
- case 34:
76
- d[u - 1].unshift({ type: "loopStart", loopText: m.parseMessage(d[u - 2]), signalType: m.LINETYPE.LOOP_START }), d[u - 1].push({ type: "loopEnd", loopText: d[u - 2], signalType: m.LINETYPE.LOOP_END }), this.$ = d[u - 1];
77
- break;
78
- case 35:
79
- d[u - 1].unshift({ type: "rectStart", color: m.parseMessage(d[u - 2]), signalType: m.LINETYPE.RECT_START }), d[u - 1].push({ type: "rectEnd", color: m.parseMessage(d[u - 2]), signalType: m.LINETYPE.RECT_END }), this.$ = d[u - 1];
80
- break;
81
- case 36:
82
- d[u - 1].unshift({ type: "optStart", optText: m.parseMessage(d[u - 2]), signalType: m.LINETYPE.OPT_START }), d[u - 1].push({ type: "optEnd", optText: m.parseMessage(d[u - 2]), signalType: m.LINETYPE.OPT_END }), this.$ = d[u - 1];
83
- break;
84
- case 37:
85
- d[u - 1].unshift({ type: "altStart", altText: m.parseMessage(d[u - 2]), signalType: m.LINETYPE.ALT_START }), d[u - 1].push({ type: "altEnd", signalType: m.LINETYPE.ALT_END }), this.$ = d[u - 1];
86
- break;
87
- case 38:
88
- d[u - 1].unshift({ type: "parStart", parText: m.parseMessage(d[u - 2]), signalType: m.LINETYPE.PAR_START }), d[u - 1].push({ type: "parEnd", signalType: m.LINETYPE.PAR_END }), this.$ = d[u - 1];
89
- break;
90
- case 39:
91
- d[u - 1].unshift({ type: "parStart", parText: m.parseMessage(d[u - 2]), signalType: m.LINETYPE.PAR_OVER_START }), d[u - 1].push({ type: "parEnd", signalType: m.LINETYPE.PAR_END }), this.$ = d[u - 1];
92
- break;
93
- case 40:
94
- d[u - 1].unshift({ type: "criticalStart", criticalText: m.parseMessage(d[u - 2]), signalType: m.LINETYPE.CRITICAL_START }), d[u - 1].push({ type: "criticalEnd", signalType: m.LINETYPE.CRITICAL_END }), this.$ = d[u - 1];
95
- break;
96
- case 41:
97
- d[u - 1].unshift({ type: "breakStart", breakText: m.parseMessage(d[u - 2]), signalType: m.LINETYPE.BREAK_START }), d[u - 1].push({ type: "breakEnd", optText: m.parseMessage(d[u - 2]), signalType: m.LINETYPE.BREAK_END }), this.$ = d[u - 1];
98
- break;
99
- case 43:
100
- this.$ = d[u - 3].concat([{ type: "option", optionText: m.parseMessage(d[u - 1]), signalType: m.LINETYPE.CRITICAL_OPTION }, d[u]]);
101
- break;
102
- case 45:
103
- this.$ = d[u - 3].concat([{ type: "and", parText: m.parseMessage(d[u - 1]), signalType: m.LINETYPE.PAR_AND }, d[u]]);
104
- break;
105
- case 47:
106
- this.$ = d[u - 3].concat([{ type: "else", altText: m.parseMessage(d[u - 1]), signalType: m.LINETYPE.ALT_ELSE }, d[u]]);
107
- break;
108
- case 48:
109
- d[u - 3].draw = "participant", d[u - 3].type = "addParticipant", d[u - 3].description = m.parseMessage(d[u - 1]), this.$ = d[u - 3];
110
- break;
111
- case 49:
112
- d[u - 1].draw = "participant", d[u - 1].type = "addParticipant", this.$ = d[u - 1];
113
- break;
114
- case 50:
115
- d[u - 3].draw = "actor", d[u - 3].type = "addParticipant", d[u - 3].description = m.parseMessage(d[u - 1]), this.$ = d[u - 3];
116
- break;
117
- case 51:
118
- d[u - 1].draw = "actor", d[u - 1].type = "addParticipant", this.$ = d[u - 1];
119
- break;
120
- case 52:
121
- d[u - 1].type = "destroyParticipant", this.$ = d[u - 1];
122
- break;
123
- case 53:
124
- d[u - 1].draw = "participant", d[u - 1].type = "addParticipant", this.$ = d[u - 1];
125
- break;
126
- case 54:
127
- this.$ = [d[u - 1], { type: "addNote", placement: d[u - 2], actor: d[u - 1].actor, text: d[u] }];
128
- break;
129
- case 55:
130
- d[u - 2] = [].concat(d[u - 1], d[u - 1]).slice(0, 2), d[u - 2][0] = d[u - 2][0].actor, d[u - 2][1] = d[u - 2][1].actor, this.$ = [d[u - 1], { type: "addNote", placement: m.PLACEMENT.OVER, actor: d[u - 2].slice(0, 2), text: d[u] }];
131
- break;
132
- case 56:
133
- this.$ = [d[u - 1], { type: "addLinks", actor: d[u - 1].actor, text: d[u] }];
134
- break;
135
- case 57:
136
- this.$ = [d[u - 1], { type: "addALink", actor: d[u - 1].actor, text: d[u] }];
137
- break;
138
- case 58:
139
- this.$ = [d[u - 1], { type: "addProperties", actor: d[u - 1].actor, text: d[u] }];
140
- break;
141
- case 59:
142
- this.$ = [d[u - 1], { type: "addDetails", actor: d[u - 1].actor, text: d[u] }];
143
- break;
144
- case 62:
145
- this.$ = [d[u - 2], d[u]];
146
- break;
147
- case 63:
148
- this.$ = d[u];
149
- break;
150
- case 64:
151
- this.$ = m.PLACEMENT.LEFTOF;
152
- break;
153
- case 65:
154
- this.$ = m.PLACEMENT.RIGHTOF;
155
- break;
156
- case 66:
157
- this.$ = [
158
- d[u - 4],
159
- d[u - 1],
160
- { type: "addMessage", from: d[u - 4].actor, to: d[u - 1].actor, signalType: d[u - 3], msg: d[u], activate: !0 },
161
- { type: "activeStart", signalType: m.LINETYPE.ACTIVE_START, actor: d[u - 1].actor }
162
- ];
163
- break;
164
- case 67:
165
- this.$ = [
166
- d[u - 4],
167
- d[u - 1],
168
- { type: "addMessage", from: d[u - 4].actor, to: d[u - 1].actor, signalType: d[u - 3], msg: d[u] },
169
- { type: "activeEnd", signalType: m.LINETYPE.ACTIVE_END, actor: d[u - 4].actor }
170
- ];
171
- break;
172
- case 68:
173
- this.$ = [d[u - 3], d[u - 1], { type: "addMessage", from: d[u - 3].actor, to: d[u - 1].actor, signalType: d[u - 2], msg: d[u] }];
174
- break;
175
- case 69:
176
- this.$ = {
177
- type: "addParticipant",
178
- actor: d[u - 1],
179
- config: d[u]
180
- };
181
- break;
182
- case 70:
183
- this.$ = d[u - 1].trim();
184
- break;
185
- case 71:
186
- this.$ = { type: "addParticipant", actor: d[u] };
187
- break;
188
- case 72:
189
- this.$ = m.LINETYPE.SOLID_OPEN;
190
- break;
191
- case 73:
192
- this.$ = m.LINETYPE.DOTTED_OPEN;
193
- break;
194
- case 74:
195
- this.$ = m.LINETYPE.SOLID;
196
- break;
197
- case 75:
198
- this.$ = m.LINETYPE.BIDIRECTIONAL_SOLID;
199
- break;
200
- case 76:
201
- this.$ = m.LINETYPE.DOTTED;
202
- break;
203
- case 77:
204
- this.$ = m.LINETYPE.BIDIRECTIONAL_DOTTED;
205
- break;
206
- case 78:
207
- this.$ = m.LINETYPE.SOLID_CROSS;
208
- break;
209
- case 79:
210
- this.$ = m.LINETYPE.DOTTED_CROSS;
211
- break;
212
- case 80:
213
- this.$ = m.LINETYPE.SOLID_POINT;
214
- break;
215
- case 81:
216
- this.$ = m.LINETYPE.DOTTED_POINT;
217
- break;
218
- case 82:
219
- this.$ = m.parseMessage(d[u].trim().substring(1));
220
- break;
221
- }
222
- }, "anonymous"),
223
- table: [{ 3: 1, 4: t, 5: n, 6: s }, { 1: [3] }, { 3: 5, 4: t, 5: n, 6: s }, { 3: 6, 4: t, 5: n, 6: s }, e([1, 4, 5, 13, 14, 18, 21, 23, 29, 30, 31, 33, 35, 36, 37, 38, 39, 41, 43, 44, 46, 50, 52, 53, 55, 60, 61, 62, 63, 71], r, { 7: 7 }), { 1: [2, 1] }, { 1: [2, 2] }, { 1: [2, 3], 4: i, 5: c, 8: 8, 9: 10, 12: 12, 13: h, 14: o, 17: 15, 18: a, 21: p, 22: 40, 23: g, 24: 19, 25: 20, 26: 21, 27: 22, 28: 23, 29: x, 30: y, 31: b, 33: w, 35: k, 36: N, 37: S, 38: M, 39: C, 41: Y, 43: H, 44: Z, 46: at, 50: U, 52: G, 53: q, 55: O, 60: $, 61: K, 62: j, 63: rt, 71: D }, e(E, [2, 5]), { 9: 47, 12: 12, 13: h, 14: o, 17: 15, 18: a, 21: p, 22: 40, 23: g, 24: 19, 25: 20, 26: 21, 27: 22, 28: 23, 29: x, 30: y, 31: b, 33: w, 35: k, 36: N, 37: S, 38: M, 39: C, 41: Y, 43: H, 44: Z, 46: at, 50: U, 52: G, 53: q, 55: O, 60: $, 61: K, 62: j, 63: rt, 71: D }, e(E, [2, 7]), e(E, [2, 8]), e(E, [2, 14]), { 12: 48, 50: U, 52: G, 53: q }, { 15: [1, 49] }, { 5: [1, 50] }, { 5: [1, 53], 19: [1, 51], 20: [1, 52] }, { 22: 54, 71: D }, { 22: 55, 71: D }, { 5: [1, 56] }, { 5: [1, 57] }, { 5: [1, 58] }, { 5: [1, 59] }, { 5: [1, 60] }, e(E, [2, 29]), e(E, [2, 30]), { 32: [1, 61] }, { 34: [1, 62] }, e(E, [2, 33]), { 15: [1, 63] }, { 15: [1, 64] }, { 15: [1, 65] }, { 15: [1, 66] }, { 15: [1, 67] }, { 15: [1, 68] }, { 15: [1, 69] }, { 15: [1, 70] }, { 22: 71, 54: 72, 71: [1, 73] }, { 22: 74, 71: D }, { 22: 75, 71: D }, { 68: 76, 76: [1, 77], 77: [1, 78], 78: [1, 79], 79: [1, 80], 80: [1, 81], 81: [1, 82], 82: [1, 83], 83: [1, 84], 84: [1, 85], 85: [1, 86] }, { 56: 87, 58: [1, 88], 66: [1, 89], 67: [1, 90] }, { 22: 91, 71: D }, { 22: 92, 71: D }, { 22: 93, 71: D }, { 22: 94, 71: D }, e([5, 51, 65, 76, 77, 78, 79, 80, 81, 82, 83, 84, 85, 86], A), e(E, [2, 6]), e(E, [2, 15]), e(X, [2, 9], { 10: 95 }), e(E, [2, 17]), { 5: [1, 97], 19: [1, 96] }, { 5: [1, 98] }, e(E, [2, 21]), { 5: [1, 99] }, { 5: [1, 100] }, e(E, [2, 24]), e(E, [2, 25]), e(E, [2, 26]), e(E, [2, 27]), e(E, [2, 28]), e(E, [2, 31]), e(E, [2, 32]), e(tt, r, { 7: 101 }), e(tt, r, { 7: 102 }), e(tt, r, { 7: 103 }), e(R, r, { 40: 104, 7: 105 }), e(Vt, r, { 42: 106, 7: 107 }), e(Vt, r, { 7: 107, 42: 108 }), e(Zt, r, { 45: 109, 7: 110 }), e(tt, r, { 7: 111 }), { 5: [1, 113], 51: [1, 112] }, { 5: [1, 114] }, e([5, 51], A, { 72: 115, 73: [1, 116] }), { 5: [1, 118], 51: [1, 117] }, { 5: [1, 119] }, { 22: 122, 69: [1, 120], 70: [1, 121], 71: D }, e(ot, [2, 72]), e(ot, [2, 73]), e(ot, [2, 74]), e(ot, [2, 75]), e(ot, [2, 76]), e(ot, [2, 77]), e(ot, [2, 78]), e(ot, [2, 79]), e(ot, [2, 80]), e(ot, [2, 81]), { 22: 123, 71: D }, { 22: 125, 59: 124, 71: D }, { 71: [2, 64] }, { 71: [2, 65] }, { 57: 126, 86: lt }, { 57: 128, 86: lt }, { 57: 129, 86: lt }, { 57: 130, 86: lt }, { 4: [1, 133], 5: [1, 135], 11: 132, 12: 134, 16: [1, 131], 50: U, 52: G, 53: q }, { 5: [1, 136] }, e(E, [2, 19]), e(E, [2, 20]), e(E, [2, 22]), e(E, [2, 23]), { 4: i, 5: c, 8: 8, 9: 10, 12: 12, 13: h, 14: o, 16: [1, 137], 17: 15, 18: a, 21: p, 22: 40, 23: g, 24: 19, 25: 20, 26: 21, 27: 22, 28: 23, 29: x, 30: y, 31: b, 33: w, 35: k, 36: N, 37: S, 38: M, 39: C, 41: Y, 43: H, 44: Z, 46: at, 50: U, 52: G, 53: q, 55: O, 60: $, 61: K, 62: j, 63: rt, 71: D }, { 4: i, 5: c, 8: 8, 9: 10, 12: 12, 13: h, 14: o, 16: [1, 138], 17: 15, 18: a, 21: p, 22: 40, 23: g, 24: 19, 25: 20, 26: 21, 27: 22, 28: 23, 29: x, 30: y, 31: b, 33: w, 35: k, 36: N, 37: S, 38: M, 39: C, 41: Y, 43: H, 44: Z, 46: at, 50: U, 52: G, 53: q, 55: O, 60: $, 61: K, 62: j, 63: rt, 71: D }, { 4: i, 5: c, 8: 8, 9: 10, 12: 12, 13: h, 14: o, 16: [1, 139], 17: 15, 18: a, 21: p, 22: 40, 23: g, 24: 19, 25: 20, 26: 21, 27: 22, 28: 23, 29: x, 30: y, 31: b, 33: w, 35: k, 36: N, 37: S, 38: M, 39: C, 41: Y, 43: H, 44: Z, 46: at, 50: U, 52: G, 53: q, 55: O, 60: $, 61: K, 62: j, 63: rt, 71: D }, { 16: [1, 140] }, { 4: i, 5: c, 8: 8, 9: 10, 12: 12, 13: h, 14: o, 16: [2, 46], 17: 15, 18: a, 21: p, 22: 40, 23: g, 24: 19, 25: 20, 26: 21, 27: 22, 28: 23, 29: x, 30: y, 31: b, 33: w, 35: k, 36: N, 37: S, 38: M, 39: C, 41: Y, 43: H, 44: Z, 46: at, 49: [1, 141], 50: U, 52: G, 53: q, 55: O, 60: $, 61: K, 62: j, 63: rt, 71: D }, { 16: [1, 142] }, { 4: i, 5: c, 8: 8, 9: 10, 12: 12, 13: h, 14: o, 16: [2, 44], 17: 15, 18: a, 21: p, 22: 40, 23: g, 24: 19, 25: 20, 26: 21, 27: 22, 28: 23, 29: x, 30: y, 31: b, 33: w, 35: k, 36: N, 37: S, 38: M, 39: C, 41: Y, 43: H, 44: Z, 46: at, 48: [1, 143], 50: U, 52: G, 53: q, 55: O, 60: $, 61: K, 62: j, 63: rt, 71: D }, { 16: [1, 144] }, { 16: [1, 145] }, { 4: i, 5: c, 8: 8, 9: 10, 12: 12, 13: h, 14: o, 16: [2, 42], 17: 15, 18: a, 21: p, 22: 40, 23: g, 24: 19, 25: 20, 26: 21, 27: 22, 28: 23, 29: x, 30: y, 31: b, 33: w, 35: k, 36: N, 37: S, 38: M, 39: C, 41: Y, 43: H, 44: Z, 46: at, 47: [1, 146], 50: U, 52: G, 53: q, 55: O, 60: $, 61: K, 62: j, 63: rt, 71: D }, { 4: i, 5: c, 8: 8, 9: 10, 12: 12, 13: h, 14: o, 16: [1, 147], 17: 15, 18: a, 21: p, 22: 40, 23: g, 24: 19, 25: 20, 26: 21, 27: 22, 28: 23, 29: x, 30: y, 31: b, 33: w, 35: k, 36: N, 37: S, 38: M, 39: C, 41: Y, 43: H, 44: Z, 46: at, 50: U, 52: G, 53: q, 55: O, 60: $, 61: K, 62: j, 63: rt, 71: D }, { 15: [1, 148] }, e(E, [2, 49]), e(E, [2, 53]), { 5: [2, 69] }, { 74: [1, 149] }, { 15: [1, 150] }, e(E, [2, 51]), e(E, [2, 52]), { 22: 151, 71: D }, { 22: 152, 71: D }, { 57: 153, 86: lt }, { 57: 154, 86: lt }, { 57: 155, 86: lt }, { 65: [1, 156], 86: [2, 63] }, { 5: [2, 56] }, { 5: [2, 82] }, { 5: [2, 57] }, { 5: [2, 58] }, { 5: [2, 59] }, e(E, [2, 16]), e(X, [2, 10]), { 12: 157, 50: U, 52: G, 53: q }, e(X, [2, 12]), e(X, [2, 13]), e(E, [2, 18]), e(E, [2, 34]), e(E, [2, 35]), e(E, [2, 36]), e(E, [2, 37]), { 15: [1, 158] }, e(E, [2, 38]), { 15: [1, 159] }, e(E, [2, 39]), e(E, [2, 40]), { 15: [1, 160] }, e(E, [2, 41]), { 5: [1, 161] }, { 75: [1, 162] }, { 5: [1, 163] }, { 57: 164, 86: lt }, { 57: 165, 86: lt }, { 5: [2, 68] }, { 5: [2, 54] }, { 5: [2, 55] }, { 22: 166, 71: D }, e(X, [2, 11]), e(R, r, { 7: 105, 40: 167 }), e(Vt, r, { 7: 107, 42: 168 }), e(Zt, r, { 7: 110, 45: 169 }), e(E, [2, 48]), { 5: [2, 70] }, e(E, [2, 50]), { 5: [2, 66] }, { 5: [2, 67] }, { 86: [2, 62] }, { 16: [2, 47] }, { 16: [2, 45] }, { 16: [2, 43] }],
224
- defaultActions: { 5: [2, 1], 6: [2, 2], 89: [2, 64], 90: [2, 65], 115: [2, 69], 126: [2, 56], 127: [2, 82], 128: [2, 57], 129: [2, 58], 130: [2, 59], 153: [2, 68], 154: [2, 54], 155: [2, 55], 162: [2, 70], 164: [2, 66], 165: [2, 67], 166: [2, 62], 167: [2, 47], 168: [2, 45], 169: [2, 43] },
225
- parseError: /* @__PURE__ */ f(function(v, _) {
226
- if (_.recoverable)
227
- this.trace(v);
228
- else {
229
- var L = new Error(v);
230
- throw L.hash = _, L;
231
- }
232
- }, "parseError"),
233
- parse: /* @__PURE__ */ f(function(v) {
234
- var _ = this, L = [0], m = [], B = [null], d = [], It = this.table, u = "", kt = 0, $t = 0, Te = 2, jt = 1, Ee = d.slice.call(arguments, 1), W = Object.create(this.lexer), ft = { yy: {} };
235
- for (var Wt in this.yy)
236
- Object.prototype.hasOwnProperty.call(this.yy, Wt) && (ft.yy[Wt] = this.yy[Wt]);
237
- W.setInput(v, ft.yy), ft.yy.lexer = W, ft.yy.parser = this, typeof W.yylloc > "u" && (W.yylloc = {});
238
- var Ft = W.yylloc;
239
- d.push(Ft);
240
- var be = W.options && W.options.ranges;
241
- typeof ft.yy.parseError == "function" ? this.parseError = ft.yy.parseError : this.parseError = Object.getPrototypeOf(this).parseError;
242
- function me(et) {
243
- L.length = L.length - 2 * et, B.length = B.length - et, d.length = d.length - et;
244
- }
245
- f(me, "popStack");
246
- function te() {
247
- var et;
248
- return et = m.pop() || W.lex() || jt, typeof et != "number" && (et instanceof Array && (m = et, et = m.pop()), et = _.symbols_[et] || et), et;
249
- }
250
- f(te, "lex");
251
- for (var J, yt, it, qt, bt = {}, Pt, ht, ee, Nt; ; ) {
252
- if (yt = L[L.length - 1], this.defaultActions[yt] ? it = this.defaultActions[yt] : ((J === null || typeof J > "u") && (J = te()), it = It[yt] && It[yt][J]), typeof it > "u" || !it.length || !it[0]) {
253
- var zt = "";
254
- Nt = [];
255
- for (Pt in It[yt])
256
- this.terminals_[Pt] && Pt > Te && Nt.push("'" + this.terminals_[Pt] + "'");
257
- W.showPosition ? zt = "Parse error on line " + (kt + 1) + `:
258
- ` + W.showPosition() + `
259
- Expecting ` + Nt.join(", ") + ", got '" + (this.terminals_[J] || J) + "'" : zt = "Parse error on line " + (kt + 1) + ": Unexpected " + (J == jt ? "end of input" : "'" + (this.terminals_[J] || J) + "'"), this.parseError(zt, {
260
- text: W.match,
261
- token: this.terminals_[J] || J,
262
- line: W.yylineno,
263
- loc: Ft,
264
- expected: Nt
265
- });
266
- }
267
- if (it[0] instanceof Array && it.length > 1)
268
- throw new Error("Parse Error: multiple actions possible at state: " + yt + ", token: " + J);
269
- switch (it[0]) {
270
- case 1:
271
- L.push(J), B.push(W.yytext), d.push(W.yylloc), L.push(it[1]), J = null, $t = W.yyleng, u = W.yytext, kt = W.yylineno, Ft = W.yylloc;
272
- break;
273
- case 2:
274
- if (ht = this.productions_[it[1]][1], bt.$ = B[B.length - ht], bt._$ = {
275
- first_line: d[d.length - (ht || 1)].first_line,
276
- last_line: d[d.length - 1].last_line,
277
- first_column: d[d.length - (ht || 1)].first_column,
278
- last_column: d[d.length - 1].last_column
279
- }, be && (bt._$.range = [
280
- d[d.length - (ht || 1)].range[0],
281
- d[d.length - 1].range[1]
282
- ]), qt = this.performAction.apply(bt, [
283
- u,
284
- $t,
285
- kt,
286
- ft.yy,
287
- it[1],
288
- B,
289
- d
290
- ].concat(Ee)), typeof qt < "u")
291
- return qt;
292
- ht && (L = L.slice(0, -1 * ht * 2), B = B.slice(0, -1 * ht), d = d.slice(0, -1 * ht)), L.push(this.productions_[it[1]][0]), B.push(bt.$), d.push(bt._$), ee = It[L[L.length - 2]][L[L.length - 1]], L.push(ee);
293
- break;
294
- case 3:
295
- return !0;
296
- }
297
- }
298
- return !0;
299
- }, "parse")
300
- }, ye = /* @__PURE__ */ function() {
301
- var pt = {
302
- EOF: 1,
303
- parseError: /* @__PURE__ */ f(function(_, L) {
304
- if (this.yy.parser)
305
- this.yy.parser.parseError(_, L);
306
- else
307
- throw new Error(_);
308
- }, "parseError"),
309
- // resets the lexer, sets new input
310
- setInput: /* @__PURE__ */ f(function(v, _) {
311
- return this.yy = _ || this.yy || {}, this._input = v, this._more = this._backtrack = this.done = !1, this.yylineno = this.yyleng = 0, this.yytext = this.matched = this.match = "", this.conditionStack = ["INITIAL"], this.yylloc = {
312
- first_line: 1,
313
- first_column: 0,
314
- last_line: 1,
315
- last_column: 0
316
- }, this.options.ranges && (this.yylloc.range = [0, 0]), this.offset = 0, this;
317
- }, "setInput"),
318
- // consumes and returns one char from the input
319
- input: /* @__PURE__ */ f(function() {
320
- var v = this._input[0];
321
- this.yytext += v, this.yyleng++, this.offset++, this.match += v, this.matched += v;
322
- var _ = v.match(/(?:\r\n?|\n).*/g);
323
- return _ ? (this.yylineno++, this.yylloc.last_line++) : this.yylloc.last_column++, this.options.ranges && this.yylloc.range[1]++, this._input = this._input.slice(1), v;
324
- }, "input"),
325
- // unshifts one char (or a string) into the input
326
- unput: /* @__PURE__ */ f(function(v) {
327
- var _ = v.length, L = v.split(/(?:\r\n?|\n)/g);
328
- this._input = v + this._input, this.yytext = this.yytext.substr(0, this.yytext.length - _), this.offset -= _;
329
- var m = this.match.split(/(?:\r\n?|\n)/g);
330
- this.match = this.match.substr(0, this.match.length - 1), this.matched = this.matched.substr(0, this.matched.length - 1), L.length - 1 && (this.yylineno -= L.length - 1);
331
- var B = this.yylloc.range;
332
- return this.yylloc = {
333
- first_line: this.yylloc.first_line,
334
- last_line: this.yylineno + 1,
335
- first_column: this.yylloc.first_column,
336
- last_column: L ? (L.length === m.length ? this.yylloc.first_column : 0) + m[m.length - L.length].length - L[0].length : this.yylloc.first_column - _
337
- }, this.options.ranges && (this.yylloc.range = [B[0], B[0] + this.yyleng - _]), this.yyleng = this.yytext.length, this;
338
- }, "unput"),
339
- // When called from action, caches matched text and appends it on next action
340
- more: /* @__PURE__ */ f(function() {
341
- return this._more = !0, this;
342
- }, "more"),
343
- // When called from action, signals the lexer that this rule fails to match the input, so the next matching rule (regex) should be tested instead.
344
- reject: /* @__PURE__ */ f(function() {
345
- if (this.options.backtrack_lexer)
346
- this._backtrack = !0;
347
- else
348
- 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).
349
- ` + this.showPosition(), {
350
- text: "",
351
- token: null,
352
- line: this.yylineno
353
- });
354
- return this;
355
- }, "reject"),
356
- // retain first n characters of the match
357
- less: /* @__PURE__ */ f(function(v) {
358
- this.unput(this.match.slice(v));
359
- }, "less"),
360
- // displays already matched input, i.e. for error messages
361
- pastInput: /* @__PURE__ */ f(function() {
362
- var v = this.matched.substr(0, this.matched.length - this.match.length);
363
- return (v.length > 20 ? "..." : "") + v.substr(-20).replace(/\n/g, "");
364
- }, "pastInput"),
365
- // displays upcoming input, i.e. for error messages
366
- upcomingInput: /* @__PURE__ */ f(function() {
367
- var v = this.match;
368
- return v.length < 20 && (v += this._input.substr(0, 20 - v.length)), (v.substr(0, 20) + (v.length > 20 ? "..." : "")).replace(/\n/g, "");
369
- }, "upcomingInput"),
370
- // displays the character position where the lexing error occurred, i.e. for error messages
371
- showPosition: /* @__PURE__ */ f(function() {
372
- var v = this.pastInput(), _ = new Array(v.length + 1).join("-");
373
- return v + this.upcomingInput() + `
374
- ` + _ + "^";
375
- }, "showPosition"),
376
- // test the lexed token: return FALSE when not a match, otherwise return token
377
- test_match: /* @__PURE__ */ f(function(v, _) {
378
- var L, m, B;
379
- if (this.options.backtrack_lexer && (B = {
380
- yylineno: this.yylineno,
381
- yylloc: {
382
- first_line: this.yylloc.first_line,
383
- last_line: this.last_line,
384
- first_column: this.yylloc.first_column,
385
- last_column: this.yylloc.last_column
386
- },
387
- yytext: this.yytext,
388
- match: this.match,
389
- matches: this.matches,
390
- matched: this.matched,
391
- yyleng: this.yyleng,
392
- offset: this.offset,
393
- _more: this._more,
394
- _input: this._input,
395
- yy: this.yy,
396
- conditionStack: this.conditionStack.slice(0),
397
- done: this.done
398
- }, this.options.ranges && (B.yylloc.range = this.yylloc.range.slice(0))), m = v[0].match(/(?:\r\n?|\n).*/g), m && (this.yylineno += m.length), this.yylloc = {
399
- first_line: this.yylloc.last_line,
400
- last_line: this.yylineno + 1,
401
- first_column: this.yylloc.last_column,
402
- last_column: m ? m[m.length - 1].length - m[m.length - 1].match(/\r?\n?/)[0].length : this.yylloc.last_column + v[0].length
403
- }, this.yytext += v[0], this.match += v[0], this.matches = v, 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(v[0].length), this.matched += v[0], L = this.performAction.call(this, this.yy, this, _, this.conditionStack[this.conditionStack.length - 1]), this.done && this._input && (this.done = !1), L)
404
- return L;
405
- if (this._backtrack) {
406
- for (var d in B)
407
- this[d] = B[d];
408
- return !1;
409
- }
410
- return !1;
411
- }, "test_match"),
412
- // return next match in input
413
- next: /* @__PURE__ */ f(function() {
414
- if (this.done)
415
- return this.EOF;
416
- this._input || (this.done = !0);
417
- var v, _, L, m;
418
- this._more || (this.yytext = "", this.match = "");
419
- for (var B = this._currentRules(), d = 0; d < B.length; d++)
420
- if (L = this._input.match(this.rules[B[d]]), L && (!_ || L[0].length > _[0].length)) {
421
- if (_ = L, m = d, this.options.backtrack_lexer) {
422
- if (v = this.test_match(L, B[d]), v !== !1)
423
- return v;
424
- if (this._backtrack) {
425
- _ = !1;
426
- continue;
427
- } else
428
- return !1;
429
- } else if (!this.options.flex)
430
- break;
431
- }
432
- return _ ? (v = this.test_match(_, B[m]), v !== !1 ? v : !1) : this._input === "" ? this.EOF : this.parseError("Lexical error on line " + (this.yylineno + 1) + `. Unrecognized text.
433
- ` + this.showPosition(), {
434
- text: "",
435
- token: null,
436
- line: this.yylineno
437
- });
438
- }, "next"),
439
- // return next match that has a token
440
- lex: /* @__PURE__ */ f(function() {
441
- var _ = this.next();
442
- return _ || this.lex();
443
- }, "lex"),
444
- // activates a new lexer condition state (pushes the new lexer condition state onto the condition stack)
445
- begin: /* @__PURE__ */ f(function(_) {
446
- this.conditionStack.push(_);
447
- }, "begin"),
448
- // pop the previously active lexer condition state off the condition stack
449
- popState: /* @__PURE__ */ f(function() {
450
- var _ = this.conditionStack.length - 1;
451
- return _ > 0 ? this.conditionStack.pop() : this.conditionStack[0];
452
- }, "popState"),
453
- // produce the lexer rule set which is active for the currently active lexer condition state
454
- _currentRules: /* @__PURE__ */ f(function() {
455
- return this.conditionStack.length && this.conditionStack[this.conditionStack.length - 1] ? this.conditions[this.conditionStack[this.conditionStack.length - 1]].rules : this.conditions.INITIAL.rules;
456
- }, "_currentRules"),
457
- // return the currently active lexer condition state; when an index argument is provided it produces the N-th previous condition state, if available
458
- topState: /* @__PURE__ */ f(function(_) {
459
- return _ = this.conditionStack.length - 1 - Math.abs(_ || 0), _ >= 0 ? this.conditionStack[_] : "INITIAL";
460
- }, "topState"),
461
- // alias for begin(condition)
462
- pushState: /* @__PURE__ */ f(function(_) {
463
- this.begin(_);
464
- }, "pushState"),
465
- // return the number of states currently on the stack
466
- stateStackSize: /* @__PURE__ */ f(function() {
467
- return this.conditionStack.length;
468
- }, "stateStackSize"),
469
- options: { "case-insensitive": !0 },
470
- performAction: /* @__PURE__ */ f(function(_, L, m, B) {
471
- switch (m) {
472
- case 0:
473
- return 5;
474
- case 1:
475
- break;
476
- case 2:
477
- break;
478
- case 3:
479
- break;
480
- case 4:
481
- break;
482
- case 5:
483
- break;
484
- case 6:
485
- return 19;
486
- case 7:
487
- return this.begin("CONFIG"), 73;
488
- case 8:
489
- return 74;
490
- case 9:
491
- return this.popState(), this.popState(), 75;
492
- case 10:
493
- return L.yytext = L.yytext.trim(), 71;
494
- case 11:
495
- return L.yytext = L.yytext.trim(), this.begin("ALIAS"), 71;
496
- case 12:
497
- return this.begin("LINE"), 14;
498
- case 13:
499
- return this.begin("ID"), 50;
500
- case 14:
501
- return this.begin("ID"), 52;
502
- case 15:
503
- return 13;
504
- case 16:
505
- return this.begin("ID"), 53;
506
- case 17:
507
- return L.yytext = L.yytext.trim(), this.begin("ALIAS"), 71;
508
- case 18:
509
- return this.popState(), this.popState(), this.begin("LINE"), 51;
510
- case 19:
511
- return this.popState(), this.popState(), 5;
512
- case 20:
513
- return this.begin("LINE"), 36;
514
- case 21:
515
- return this.begin("LINE"), 37;
516
- case 22:
517
- return this.begin("LINE"), 38;
518
- case 23:
519
- return this.begin("LINE"), 39;
520
- case 24:
521
- return this.begin("LINE"), 49;
522
- case 25:
523
- return this.begin("LINE"), 41;
524
- case 26:
525
- return this.begin("LINE"), 43;
526
- case 27:
527
- return this.begin("LINE"), 48;
528
- case 28:
529
- return this.begin("LINE"), 44;
530
- case 29:
531
- return this.begin("LINE"), 47;
532
- case 30:
533
- return this.begin("LINE"), 46;
534
- case 31:
535
- return this.popState(), 15;
536
- case 32:
537
- return 16;
538
- case 33:
539
- return 66;
540
- case 34:
541
- return 67;
542
- case 35:
543
- return 60;
544
- case 36:
545
- return 61;
546
- case 37:
547
- return 62;
548
- case 38:
549
- return 63;
550
- case 39:
551
- return 58;
552
- case 40:
553
- return 55;
554
- case 41:
555
- return this.begin("ID"), 21;
556
- case 42:
557
- return this.begin("ID"), 23;
558
- case 43:
559
- return 29;
560
- case 44:
561
- return 30;
562
- case 45:
563
- return this.begin("acc_title"), 31;
564
- case 46:
565
- return this.popState(), "acc_title_value";
566
- case 47:
567
- return this.begin("acc_descr"), 33;
568
- case 48:
569
- return this.popState(), "acc_descr_value";
570
- case 49:
571
- this.begin("acc_descr_multiline");
572
- break;
573
- case 50:
574
- this.popState();
575
- break;
576
- case 51:
577
- return "acc_descr_multiline_value";
578
- case 52:
579
- return 6;
580
- case 53:
581
- return 18;
582
- case 54:
583
- return 20;
584
- case 55:
585
- return 65;
586
- case 56:
587
- return 5;
588
- case 57:
589
- return L.yytext = L.yytext.trim(), 71;
590
- case 58:
591
- return 78;
592
- case 59:
593
- return 79;
594
- case 60:
595
- return 80;
596
- case 61:
597
- return 81;
598
- case 62:
599
- return 76;
600
- case 63:
601
- return 77;
602
- case 64:
603
- return 82;
604
- case 65:
605
- return 83;
606
- case 66:
607
- return 84;
608
- case 67:
609
- return 85;
610
- case 68:
611
- return 86;
612
- case 69:
613
- return 86;
614
- case 70:
615
- return 69;
616
- case 71:
617
- return 70;
618
- case 72:
619
- return 5;
620
- case 73:
621
- return "INVALID";
622
- }
623
- }, "anonymous"),
624
- rules: [/^(?:[\n]+)/i, /^(?:\s+)/i, /^(?:((?!\n)\s)+)/i, /^(?:#[^\n]*)/i, /^(?:%(?!\{)[^\n]*)/i, /^(?:[^\}]%%[^\n]*)/i, /^(?:[0-9]+(?=[ \n]+))/i, /^(?:@\{)/i, /^(?:[^\}]+)/i, /^(?:\})/i, /^(?:[^\<->\->:\n,;@\s]+(?=@\{))/i, /^(?:[^\<->\->:\n,;@]+?([\-]*[^\<->\->:\n,;@]+?)*?(?=((?!\n)\s)+as(?!\n)\s|[#\n;]|$))/i, /^(?:box\b)/i, /^(?:participant\b)/i, /^(?:actor\b)/i, /^(?:create\b)/i, /^(?:destroy\b)/i, /^(?:[^<\->\->:\n,;]+?([\-]*[^<\->\->:\n,;]+?)*?(?=((?!\n)\s)+as(?!\n)\s|[#\n;]|$))/i, /^(?:as\b)/i, /^(?:(?:))/i, /^(?:loop\b)/i, /^(?:rect\b)/i, /^(?:opt\b)/i, /^(?:alt\b)/i, /^(?:else\b)/i, /^(?:par\b)/i, /^(?:par_over\b)/i, /^(?:and\b)/i, /^(?:critical\b)/i, /^(?:option\b)/i, /^(?:break\b)/i, /^(?:(?:[:]?(?:no)?wrap)?[^#\n;]*)/i, /^(?:end\b)/i, /^(?:left of\b)/i, /^(?:right of\b)/i, /^(?:links\b)/i, /^(?:link\b)/i, /^(?:properties\b)/i, /^(?:details\b)/i, /^(?:over\b)/i, /^(?:note\b)/i, /^(?:activate\b)/i, /^(?:deactivate\b)/i, /^(?:title\s[^#\n;]+)/i, /^(?:title:\s[^#\n;]+)/i, /^(?:accTitle\s*:\s*)/i, /^(?:(?!\n||)*[^\n]*)/i, /^(?:accDescr\s*:\s*)/i, /^(?:(?!\n||)*[^\n]*)/i, /^(?:accDescr\s*\{\s*)/i, /^(?:[\}])/i, /^(?:[^\}]*)/i, /^(?:sequenceDiagram\b)/i, /^(?:autonumber\b)/i, /^(?:off\b)/i, /^(?:,)/i, /^(?:;)/i, /^(?:[^+<\->\->:\n,;]+((?!(-x|--x|-\)|--\)))[\-]*[^\+<\->\->:\n,;]+)*)/i, /^(?:->>)/i, /^(?:<<->>)/i, /^(?:-->>)/i, /^(?:<<-->>)/i, /^(?:->)/i, /^(?:-->)/i, /^(?:-[x])/i, /^(?:--[x])/i, /^(?:-[\)])/i, /^(?:--[\)])/i, /^(?::(?:(?:no)?wrap)?[^#\n;]*)/i, /^(?::)/i, /^(?:\+)/i, /^(?:-)/i, /^(?:$)/i, /^(?:.)/i],
625
- conditions: { acc_descr_multiline: { rules: [50, 51], inclusive: !1 }, acc_descr: { rules: [48], inclusive: !1 }, acc_title: { rules: [46], inclusive: !1 }, ID: { rules: [2, 3, 7, 10, 11, 17], inclusive: !1 }, ALIAS: { rules: [2, 3, 18, 19], inclusive: !1 }, LINE: { rules: [2, 3, 31], inclusive: !1 }, CONFIG: { rules: [8, 9], inclusive: !1 }, CONFIG_DATA: { rules: [], inclusive: !1 }, INITIAL: { rules: [0, 1, 3, 4, 5, 6, 12, 13, 14, 15, 16, 20, 21, 22, 23, 24, 25, 26, 27, 28, 29, 30, 32, 33, 34, 35, 36, 37, 38, 39, 40, 41, 42, 43, 44, 45, 47, 49, 52, 53, 54, 55, 56, 57, 58, 59, 60, 61, 62, 63, 64, 65, 66, 67, 68, 69, 70, 71, 72, 73], inclusive: !0 } }
626
- };
627
- return pt;
628
- }();
629
- Yt.lexer = ye;
630
- function _t() {
631
- this.yy = {};
632
- }
633
- return f(_t, "Parser"), _t.prototype = Yt, Yt.Parser = _t, new _t();
634
- }();
635
- Ut.parser = Ut;
636
- var Ve = Ut, Ye = {
637
- SOLID: 0,
638
- DOTTED: 1,
639
- NOTE: 2,
640
- SOLID_CROSS: 3,
641
- DOTTED_CROSS: 4,
642
- SOLID_OPEN: 5,
643
- DOTTED_OPEN: 6,
644
- LOOP_START: 10,
645
- LOOP_END: 11,
646
- ALT_START: 12,
647
- ALT_ELSE: 13,
648
- ALT_END: 14,
649
- OPT_START: 15,
650
- OPT_END: 16,
651
- ACTIVE_START: 17,
652
- ACTIVE_END: 18,
653
- PAR_START: 19,
654
- PAR_AND: 20,
655
- PAR_END: 21,
656
- RECT_START: 22,
657
- RECT_END: 23,
658
- SOLID_POINT: 24,
659
- DOTTED_POINT: 25,
660
- AUTONUMBER: 26,
661
- CRITICAL_START: 27,
662
- CRITICAL_OPTION: 28,
663
- CRITICAL_END: 29,
664
- BREAK_START: 30,
665
- BREAK_END: 31,
666
- PAR_OVER_START: 32,
667
- BIDIRECTIONAL_SOLID: 33,
668
- BIDIRECTIONAL_DOTTED: 34
669
- }, We = {
670
- FILLED: 0,
671
- OPEN: 1
672
- }, Fe = {
673
- LEFTOF: 0,
674
- RIGHTOF: 1,
675
- OVER: 2
676
- }, Rt = {
677
- ACTOR: "actor",
678
- BOUNDARY: "boundary",
679
- COLLECTIONS: "collections",
680
- CONTROL: "control",
681
- DATABASE: "database",
682
- ENTITY: "entity",
683
- PARTICIPANT: "participant",
684
- QUEUE: "queue"
685
- }, wt, qe = (wt = class {
686
- constructor() {
687
- this.state = new Be(() => ({
688
- prevActor: void 0,
689
- actors: /* @__PURE__ */ new Map(),
690
- createdActors: /* @__PURE__ */ new Map(),
691
- destroyedActors: /* @__PURE__ */ new Map(),
692
- boxes: [],
693
- messages: [],
694
- notes: [],
695
- sequenceNumbersEnabled: !1,
696
- wrapEnabled: void 0,
697
- currentBox: void 0,
698
- lastCreated: void 0,
699
- lastDestroyed: void 0
700
- })), this.setAccTitle = se, this.setAccDescription = Ie, this.setDiagramTitle = Le, this.getAccTitle = Ae, this.getAccDescription = _e, this.getDiagramTitle = ke, this.apply = this.apply.bind(this), this.parseBoxData = this.parseBoxData.bind(this), this.parseMessage = this.parseMessage.bind(this), this.clear(), this.setWrap(st().wrap), this.LINETYPE = Ye, this.ARROWTYPE = We, this.PLACEMENT = Fe;
701
- }
702
- addBox(t) {
703
- this.state.records.boxes.push({
704
- name: t.text,
705
- wrap: t.wrap ?? this.autoWrap(),
706
- fill: t.color,
707
- actorKeys: []
708
- }), this.state.records.currentBox = this.state.records.boxes.slice(-1)[0];
709
- }
710
- addActor(t, n, s, r, i) {
711
- let c = this.state.records.currentBox, h;
712
- if (i !== void 0) {
713
- let a;
714
- i.includes(`
715
- `) ? a = i + `
716
- ` : a = `{
717
- ` + i + `
718
- }`, h = Pe(a, { schema: Ne });
719
- }
720
- r = (h == null ? void 0 : h.type) ?? r;
721
- const o = this.state.records.actors.get(t);
722
- if (o) {
723
- if (this.state.records.currentBox && o.box && this.state.records.currentBox !== o.box)
724
- throw new Error(
725
- `A same participant should only be defined in one Box: ${o.name} can't be in '${o.box.name}' and in '${this.state.records.currentBox.name}' at the same time.`
726
- );
727
- if (c = o.box ? o.box : this.state.records.currentBox, o.box = c, o && n === o.name && s == null)
728
- return;
729
- }
730
- if ((s == null ? void 0 : s.text) == null && (s = { text: n, type: r }), (r == null || s.text == null) && (s = { text: n, type: r }), this.state.records.actors.set(t, {
731
- box: c,
732
- name: n,
733
- description: s.text,
734
- wrap: s.wrap ?? this.autoWrap(),
735
- prevActor: this.state.records.prevActor,
736
- links: {},
737
- properties: {},
738
- actorCnt: null,
739
- rectData: null,
740
- type: r ?? "participant"
741
- }), this.state.records.prevActor) {
742
- const a = this.state.records.actors.get(this.state.records.prevActor);
743
- a && (a.nextActor = t);
744
- }
745
- this.state.records.currentBox && this.state.records.currentBox.actorKeys.push(t), this.state.records.prevActor = t;
746
- }
747
- activationCount(t) {
748
- let n, s = 0;
749
- if (!t)
750
- return 0;
751
- for (n = 0; n < this.state.records.messages.length; n++)
752
- this.state.records.messages[n].type === this.LINETYPE.ACTIVE_START && this.state.records.messages[n].from === t && s++, this.state.records.messages[n].type === this.LINETYPE.ACTIVE_END && this.state.records.messages[n].from === t && s--;
753
- return s;
754
- }
755
- addMessage(t, n, s, r) {
756
- this.state.records.messages.push({
757
- id: this.state.records.messages.length.toString(),
758
- from: t,
759
- to: n,
760
- message: s.text,
761
- wrap: s.wrap ?? this.autoWrap(),
762
- answer: r
763
- });
764
- }
765
- addSignal(t, n, s, r, i = !1) {
766
- if (r === this.LINETYPE.ACTIVE_END && this.activationCount(t ?? "") < 1) {
767
- const h = new Error("Trying to inactivate an inactive participant (" + t + ")");
768
- throw h.hash = {
769
- text: "->>-",
770
- token: "->>-",
771
- line: "1",
772
- loc: { first_line: 1, last_line: 1, first_column: 1, last_column: 1 },
773
- expected: ["'ACTIVE_PARTICIPANT'"]
774
- }, h;
775
- }
776
- return this.state.records.messages.push({
777
- id: this.state.records.messages.length.toString(),
778
- from: t,
779
- to: n,
780
- message: (s == null ? void 0 : s.text) ?? "",
781
- wrap: (s == null ? void 0 : s.wrap) ?? this.autoWrap(),
782
- type: r,
783
- activate: i
784
- }), !0;
785
- }
786
- hasAtLeastOneBox() {
787
- return this.state.records.boxes.length > 0;
788
- }
789
- hasAtLeastOneBoxWithTitle() {
790
- return this.state.records.boxes.some((t) => t.name);
791
- }
792
- getMessages() {
793
- return this.state.records.messages;
794
- }
795
- getBoxes() {
796
- return this.state.records.boxes;
797
- }
798
- getActors() {
799
- return this.state.records.actors;
800
- }
801
- getCreatedActors() {
802
- return this.state.records.createdActors;
803
- }
804
- getDestroyedActors() {
805
- return this.state.records.destroyedActors;
806
- }
807
- getActor(t) {
808
- return this.state.records.actors.get(t);
809
- }
810
- getActorKeys() {
811
- return [...this.state.records.actors.keys()];
812
- }
813
- enableSequenceNumbers() {
814
- this.state.records.sequenceNumbersEnabled = !0;
815
- }
816
- disableSequenceNumbers() {
817
- this.state.records.sequenceNumbersEnabled = !1;
818
- }
819
- showSequenceNumbers() {
820
- return this.state.records.sequenceNumbersEnabled;
821
- }
822
- setWrap(t) {
823
- this.state.records.wrapEnabled = t;
824
- }
825
- extractWrap(t) {
826
- if (t === void 0)
827
- return {};
828
- t = t.trim();
829
- const n = /^:?wrap:/.exec(t) !== null ? !0 : /^:?nowrap:/.exec(t) !== null ? !1 : void 0;
830
- return { cleanedText: (n === void 0 ? t : t.replace(/^:?(?:no)?wrap:/, "")).trim(), wrap: n };
831
- }
832
- autoWrap() {
833
- var t;
834
- return this.state.records.wrapEnabled !== void 0 ? this.state.records.wrapEnabled : ((t = st().sequence) == null ? void 0 : t.wrap) ?? !1;
835
- }
836
- clear() {
837
- this.state.reset(), Se();
838
- }
839
- parseMessage(t) {
840
- const n = t.trim(), { wrap: s, cleanedText: r } = this.extractWrap(n), i = {
841
- text: r,
842
- wrap: s
843
- };
844
- return Q.debug(`parseMessage: ${JSON.stringify(i)}`), i;
845
- }
846
- // We expect the box statement to be color first then description
847
- // The color can be rgb,rgba,hsl,hsla, or css code names #hex codes are not supported for now because of the way the char # is handled
848
- // We extract first segment as color, the rest of the line is considered as text
849
- parseBoxData(t) {
850
- const n = /^((?:rgba?|hsla?)\s*\(.*\)|\w*)(.*)$/.exec(t);
851
- let s = n != null && n[1] ? n[1].trim() : "transparent", r = n != null && n[2] ? n[2].trim() : void 0;
852
- if (window != null && window.CSS)
853
- window.CSS.supports("color", s) || (s = "transparent", r = t.trim());
854
- else {
855
- const h = new Option().style;
856
- h.color = s, h.color !== s && (s = "transparent", r = t.trim());
857
- }
858
- const { wrap: i, cleanedText: c } = this.extractWrap(r);
859
- return {
860
- text: c ? St(c, st()) : void 0,
861
- color: s,
862
- wrap: i
863
- };
864
- }
865
- addNote(t, n, s) {
866
- const r = {
867
- actor: t,
868
- placement: n,
869
- message: s.text,
870
- wrap: s.wrap ?? this.autoWrap()
871
- }, i = [].concat(t, t);
872
- this.state.records.notes.push(r), this.state.records.messages.push({
873
- id: this.state.records.messages.length.toString(),
874
- from: i[0],
875
- to: i[1],
876
- message: s.text,
877
- wrap: s.wrap ?? this.autoWrap(),
878
- type: this.LINETYPE.NOTE,
879
- placement: n
880
- });
881
- }
882
- addLinks(t, n) {
883
- const s = this.getActor(t);
884
- try {
885
- let r = St(n.text, st());
886
- r = r.replace(/&equals;/g, "="), r = r.replace(/&amp;/g, "&");
887
- const i = JSON.parse(r);
888
- this.insertLinks(s, i);
889
- } catch (r) {
890
- Q.error("error while parsing actor link text", r);
891
- }
892
- }
893
- addALink(t, n) {
894
- const s = this.getActor(t);
895
- try {
896
- const r = {};
897
- let i = St(n.text, st());
898
- const c = i.indexOf("@");
899
- i = i.replace(/&equals;/g, "="), i = i.replace(/&amp;/g, "&");
900
- const h = i.slice(0, c - 1).trim(), o = i.slice(c + 1).trim();
901
- r[h] = o, this.insertLinks(s, r);
902
- } catch (r) {
903
- Q.error("error while parsing actor link text", r);
904
- }
905
- }
906
- insertLinks(t, n) {
907
- if (t.links == null)
908
- t.links = n;
909
- else
910
- for (const s in n)
911
- t.links[s] = n[s];
912
- }
913
- addProperties(t, n) {
914
- const s = this.getActor(t);
915
- try {
916
- const r = St(n.text, st()), i = JSON.parse(r);
917
- this.insertProperties(s, i);
918
- } catch (r) {
919
- Q.error("error while parsing actor properties text", r);
920
- }
921
- }
922
- insertProperties(t, n) {
923
- if (t.properties == null)
924
- t.properties = n;
925
- else
926
- for (const s in n)
927
- t.properties[s] = n[s];
928
- }
929
- boxEnd() {
930
- this.state.records.currentBox = void 0;
931
- }
932
- addDetails(t, n) {
933
- const s = this.getActor(t), r = document.getElementById(n.text);
934
- try {
935
- const i = r.innerHTML, c = JSON.parse(i);
936
- c.properties && this.insertProperties(s, c.properties), c.links && this.insertLinks(s, c.links);
937
- } catch (i) {
938
- Q.error("error while parsing actor details text", i);
939
- }
940
- }
941
- getActorProperty(t, n) {
942
- if ((t == null ? void 0 : t.properties) !== void 0)
943
- return t.properties[n];
944
- }
945
- // eslint-disable-next-line @typescript-eslint/no-explicit-any, @typescript-eslint/no-redundant-type-constituents
946
- apply(t) {
947
- if (Array.isArray(t))
948
- t.forEach((n) => {
949
- this.apply(n);
950
- });
951
- else
952
- switch (t.type) {
953
- case "sequenceIndex":
954
- this.state.records.messages.push({
955
- id: this.state.records.messages.length.toString(),
956
- from: void 0,
957
- to: void 0,
958
- message: {
959
- start: t.sequenceIndex,
960
- step: t.sequenceIndexStep,
961
- visible: t.sequenceVisible
962
- },
963
- wrap: !1,
964
- type: t.signalType
965
- });
966
- break;
967
- case "addParticipant":
968
- this.addActor(t.actor, t.actor, t.description, t.draw, t.config);
969
- break;
970
- case "createParticipant":
971
- if (this.state.records.actors.has(t.actor))
972
- throw new Error(
973
- "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"
974
- );
975
- this.state.records.lastCreated = t.actor, this.addActor(t.actor, t.actor, t.description, t.draw, t.config), this.state.records.createdActors.set(t.actor, this.state.records.messages.length);
976
- break;
977
- case "destroyParticipant":
978
- this.state.records.lastDestroyed = t.actor, this.state.records.destroyedActors.set(t.actor, this.state.records.messages.length);
979
- break;
980
- case "activeStart":
981
- this.addSignal(t.actor, void 0, void 0, t.signalType);
982
- break;
983
- case "activeEnd":
984
- this.addSignal(t.actor, void 0, void 0, t.signalType);
985
- break;
986
- case "addNote":
987
- this.addNote(t.actor, t.placement, t.text);
988
- break;
989
- case "addLinks":
990
- this.addLinks(t.actor, t.text);
991
- break;
992
- case "addALink":
993
- this.addALink(t.actor, t.text);
994
- break;
995
- case "addProperties":
996
- this.addProperties(t.actor, t.text);
997
- break;
998
- case "addDetails":
999
- this.addDetails(t.actor, t.text);
1000
- break;
1001
- case "addMessage":
1002
- if (this.state.records.lastCreated) {
1003
- if (t.to !== this.state.records.lastCreated)
1004
- throw new Error(
1005
- "The created participant " + this.state.records.lastCreated.name + " does not have an associated creating message after its declaration. Please check the sequence diagram."
1006
- );
1007
- this.state.records.lastCreated = void 0;
1008
- } else if (this.state.records.lastDestroyed) {
1009
- if (t.to !== this.state.records.lastDestroyed && t.from !== this.state.records.lastDestroyed)
1010
- throw new Error(
1011
- "The destroyed participant " + this.state.records.lastDestroyed.name + " does not have an associated destroying message after its declaration. Please check the sequence diagram."
1012
- );
1013
- this.state.records.lastDestroyed = void 0;
1014
- }
1015
- this.addSignal(t.from, t.to, t.msg, t.signalType, t.activate);
1016
- break;
1017
- case "boxStart":
1018
- this.addBox(t.boxData);
1019
- break;
1020
- case "boxEnd":
1021
- this.boxEnd();
1022
- break;
1023
- case "loopStart":
1024
- this.addSignal(void 0, void 0, t.loopText, t.signalType);
1025
- break;
1026
- case "loopEnd":
1027
- this.addSignal(void 0, void 0, void 0, t.signalType);
1028
- break;
1029
- case "rectStart":
1030
- this.addSignal(void 0, void 0, t.color, t.signalType);
1031
- break;
1032
- case "rectEnd":
1033
- this.addSignal(void 0, void 0, void 0, t.signalType);
1034
- break;
1035
- case "optStart":
1036
- this.addSignal(void 0, void 0, t.optText, t.signalType);
1037
- break;
1038
- case "optEnd":
1039
- this.addSignal(void 0, void 0, void 0, t.signalType);
1040
- break;
1041
- case "altStart":
1042
- this.addSignal(void 0, void 0, t.altText, t.signalType);
1043
- break;
1044
- case "else":
1045
- this.addSignal(void 0, void 0, t.altText, t.signalType);
1046
- break;
1047
- case "altEnd":
1048
- this.addSignal(void 0, void 0, void 0, t.signalType);
1049
- break;
1050
- case "setAccTitle":
1051
- se(t.text);
1052
- break;
1053
- case "parStart":
1054
- this.addSignal(void 0, void 0, t.parText, t.signalType);
1055
- break;
1056
- case "and":
1057
- this.addSignal(void 0, void 0, t.parText, t.signalType);
1058
- break;
1059
- case "parEnd":
1060
- this.addSignal(void 0, void 0, void 0, t.signalType);
1061
- break;
1062
- case "criticalStart":
1063
- this.addSignal(void 0, void 0, t.criticalText, t.signalType);
1064
- break;
1065
- case "option":
1066
- this.addSignal(void 0, void 0, t.optionText, t.signalType);
1067
- break;
1068
- case "criticalEnd":
1069
- this.addSignal(void 0, void 0, void 0, t.signalType);
1070
- break;
1071
- case "breakStart":
1072
- this.addSignal(void 0, void 0, t.breakText, t.signalType);
1073
- break;
1074
- case "breakEnd":
1075
- this.addSignal(void 0, void 0, void 0, t.signalType);
1076
- break;
1077
- }
1078
- }
1079
- getConfig() {
1080
- return st().sequence;
1081
- }
1082
- }, f(wt, "SequenceDB"), wt), ze = /* @__PURE__ */ f((e) => `.actor {
1083
- stroke: ${e.actorBorder};
1084
- fill: ${e.actorBkg};
1085
- }
1086
-
1087
- text.actor > tspan {
1088
- fill: ${e.actorTextColor};
1089
- stroke: none;
1090
- }
1091
-
1092
- .actor-line {
1093
- stroke: ${e.actorLineColor};
1094
- }
1095
-
1096
- .innerArc {
1097
- stroke-width: 1.5;
1098
- stroke-dasharray: none;
1099
- }
1100
-
1101
- .messageLine0 {
1102
- stroke-width: 1.5;
1103
- stroke-dasharray: none;
1104
- stroke: ${e.signalColor};
1105
- }
1106
-
1107
- .messageLine1 {
1108
- stroke-width: 1.5;
1109
- stroke-dasharray: 2, 2;
1110
- stroke: ${e.signalColor};
1111
- }
1112
-
1113
- #arrowhead path {
1114
- fill: ${e.signalColor};
1115
- stroke: ${e.signalColor};
1116
- }
1117
-
1118
- .sequenceNumber {
1119
- fill: ${e.sequenceNumberColor};
1120
- }
1121
-
1122
- #sequencenumber {
1123
- fill: ${e.signalColor};
1124
- }
1125
-
1126
- #crosshead path {
1127
- fill: ${e.signalColor};
1128
- stroke: ${e.signalColor};
1129
- }
1130
-
1131
- .messageText {
1132
- fill: ${e.signalTextColor};
1133
- stroke: none;
1134
- }
1135
-
1136
- .labelBox {
1137
- stroke: ${e.labelBoxBorderColor};
1138
- fill: ${e.labelBoxBkgColor};
1139
- }
1140
-
1141
- .labelText, .labelText > tspan {
1142
- fill: ${e.labelTextColor};
1143
- stroke: none;
1144
- }
1145
-
1146
- .loopText, .loopText > tspan {
1147
- fill: ${e.loopTextColor};
1148
- stroke: none;
1149
- }
1150
-
1151
- .loopLine {
1152
- stroke-width: 2px;
1153
- stroke-dasharray: 2, 2;
1154
- stroke: ${e.labelBoxBorderColor};
1155
- fill: ${e.labelBoxBorderColor};
1156
- }
1157
-
1158
- .note {
1159
- //stroke: #decc93;
1160
- stroke: ${e.noteBorderColor};
1161
- fill: ${e.noteBkgColor};
1162
- }
1163
-
1164
- .noteText, .noteText > tspan {
1165
- fill: ${e.noteTextColor};
1166
- stroke: none;
1167
- }
1168
-
1169
- .activation0 {
1170
- fill: ${e.activationBkgColor};
1171
- stroke: ${e.activationBorderColor};
1172
- }
1173
-
1174
- .activation1 {
1175
- fill: ${e.activationBkgColor};
1176
- stroke: ${e.activationBorderColor};
1177
- }
1178
-
1179
- .activation2 {
1180
- fill: ${e.activationBkgColor};
1181
- stroke: ${e.activationBorderColor};
1182
- }
1183
-
1184
- .actorPopupMenu {
1185
- position: absolute;
1186
- }
1187
-
1188
- .actorPopupMenuPanel {
1189
- position: absolute;
1190
- fill: ${e.actorBkg};
1191
- box-shadow: 0px 8px 16px 0px rgba(0,0,0,0.2);
1192
- filter: drop-shadow(3px 5px 2px rgb(0 0 0 / 0.4));
1193
- }
1194
- .actor-man line {
1195
- stroke: ${e.actorBorder};
1196
- fill: ${e.actorBkg};
1197
- }
1198
- .actor-man circle, line {
1199
- stroke: ${e.actorBorder};
1200
- fill: ${e.actorBkg};
1201
- stroke-width: 2px;
1202
- }
1203
-
1204
- `, "getStyles"), He = ze, Tt = 18 * 2, gt = "actor-top", xt = "actor-bottom", Ct = "actor-box", ut = "actor-man", Lt = /* @__PURE__ */ f(function(e, t) {
1205
- return we(e, t);
1206
- }, "drawRect"), Ue = /* @__PURE__ */ f(function(e, t, n, s, r) {
1207
- if (t.links === void 0 || t.links === null || Object.keys(t.links).length === 0)
1208
- return { height: 0, width: 0 };
1209
- const i = t.links, c = t.actorCnt, h = t.rectData;
1210
- var o = "none";
1211
- r && (o = "block !important");
1212
- const a = e.append("g");
1213
- a.attr("id", "actor" + c + "_popup"), a.attr("class", "actorPopupMenu"), a.attr("display", o);
1214
- var p = "";
1215
- h.class !== void 0 && (p = " " + h.class);
1216
- let g = h.width > n ? h.width : n;
1217
- const x = a.append("rect");
1218
- if (x.attr("class", "actorPopupMenuPanel" + p), x.attr("x", h.x), x.attr("y", h.height), x.attr("fill", h.fill), x.attr("stroke", h.stroke), x.attr("width", g), x.attr("height", h.height), x.attr("rx", h.rx), x.attr("ry", h.ry), i != null) {
1219
- var y = 20;
1220
- for (let k in i) {
1221
- var b = a.append("a"), w = re.sanitizeUrl(i[k]);
1222
- b.attr("xlink:href", w), b.attr("target", "_blank"), us(s)(
1223
- k,
1224
- b,
1225
- h.x + 10,
1226
- h.height + y,
1227
- g,
1228
- 20,
1229
- { class: "actor" },
1230
- s
1231
- ), y += 30;
1232
- }
1233
- }
1234
- return x.attr("height", y), { height: h.height + y, width: g };
1235
- }, "drawPopup"), Ot = /* @__PURE__ */ f(function(e) {
1236
- return "var pu = document.getElementById('" + e + "'); if (pu != null) { pu.style.display = pu.style.display == 'block' ? 'none' : 'block'; }";
1237
- }, "popupMenuToggle"), Dt = /* @__PURE__ */ f(async function(e, t, n = null) {
1238
- let s = e.append("foreignObject");
1239
- const r = await ie(t.text, Ht()), c = s.append("xhtml:div").attr("style", "width: fit-content;").attr("xmlns", "http://www.w3.org/1999/xhtml").html(r).node().getBoundingClientRect();
1240
- if (s.attr("height", Math.round(c.height)).attr("width", Math.round(c.width)), t.class === "noteText") {
1241
- const h = e.node().firstChild;
1242
- h.setAttribute("height", c.height + 2 * t.textMargin);
1243
- const o = h.getBBox();
1244
- s.attr("x", Math.round(o.x + o.width / 2 - c.width / 2)).attr("y", Math.round(o.y + o.height / 2 - c.height / 2));
1245
- } else if (n) {
1246
- let { startx: h, stopx: o, starty: a } = n;
1247
- if (h > o) {
1248
- const p = h;
1249
- h = o, o = p;
1250
- }
1251
- s.attr("x", Math.round(h + Math.abs(h - o) / 2 - c.width / 2)), t.class === "loopText" ? s.attr("y", Math.round(a)) : s.attr("y", Math.round(a - c.height));
1252
- }
1253
- return [s];
1254
- }, "drawKatex"), vt = /* @__PURE__ */ f(function(e, t) {
1255
- let n = 0, s = 0;
1256
- const r = t.text.split(I.lineBreakRegex), [i, c] = ne(t.fontSize);
1257
- let h = [], o = 0, a = /* @__PURE__ */ f(() => t.y, "yfunc");
1258
- if (t.valign !== void 0 && t.textMargin !== void 0 && t.textMargin > 0)
1259
- switch (t.valign) {
1260
- case "top":
1261
- case "start":
1262
- a = /* @__PURE__ */ f(() => Math.round(t.y + t.textMargin), "yfunc");
1263
- break;
1264
- case "middle":
1265
- case "center":
1266
- a = /* @__PURE__ */ f(() => Math.round(t.y + (n + s + t.textMargin) / 2), "yfunc");
1267
- break;
1268
- case "bottom":
1269
- case "end":
1270
- a = /* @__PURE__ */ f(() => Math.round(
1271
- t.y + (n + s + 2 * t.textMargin) - t.textMargin
1272
- ), "yfunc");
1273
- break;
1274
- }
1275
- if (t.anchor !== void 0 && t.textMargin !== void 0 && t.width !== void 0)
1276
- switch (t.anchor) {
1277
- case "left":
1278
- case "start":
1279
- t.x = Math.round(t.x + t.textMargin), t.anchor = "start", t.dominantBaseline = "middle", t.alignmentBaseline = "middle";
1280
- break;
1281
- case "middle":
1282
- case "center":
1283
- t.x = Math.round(t.x + t.width / 2), t.anchor = "middle", t.dominantBaseline = "middle", t.alignmentBaseline = "middle";
1284
- break;
1285
- case "right":
1286
- case "end":
1287
- t.x = Math.round(t.x + t.width - t.textMargin), t.anchor = "end", t.dominantBaseline = "middle", t.alignmentBaseline = "middle";
1288
- break;
1289
- }
1290
- for (let [p, g] of r.entries()) {
1291
- t.textMargin !== void 0 && t.textMargin === 0 && i !== void 0 && (o = p * i);
1292
- const x = e.append("text");
1293
- x.attr("x", t.x), x.attr("y", a()), t.anchor !== void 0 && x.attr("text-anchor", t.anchor).attr("dominant-baseline", t.dominantBaseline).attr("alignment-baseline", t.alignmentBaseline), t.fontFamily !== void 0 && x.style("font-family", t.fontFamily), c !== void 0 && x.style("font-size", c), t.fontWeight !== void 0 && x.style("font-weight", t.fontWeight), t.fill !== void 0 && x.attr("fill", t.fill), t.class !== void 0 && x.attr("class", t.class), t.dy !== void 0 ? x.attr("dy", t.dy) : o !== 0 && x.attr("dy", o);
1294
- const y = g || Oe;
1295
- if (t.tspan) {
1296
- const b = x.append("tspan");
1297
- b.attr("x", t.x), t.fill !== void 0 && b.attr("fill", t.fill), b.text(y);
1298
- } else
1299
- x.text(y);
1300
- t.valign !== void 0 && t.textMargin !== void 0 && t.textMargin > 0 && (s += (x._groups || x)[0][0].getBBox().height, n = s), h.push(x);
1301
- }
1302
- return h;
1303
- }, "drawText"), oe = /* @__PURE__ */ f(function(e, t) {
1304
- function n(r, i, c, h, o) {
1305
- return r + "," + i + " " + (r + c) + "," + i + " " + (r + c) + "," + (i + h - o) + " " + (r + c - o * 1.2) + "," + (i + h) + " " + r + "," + (i + h);
1306
- }
1307
- f(n, "genPoints");
1308
- const s = e.append("polygon");
1309
- return s.attr("points", n(t.x, t.y, t.width, t.height, 7)), s.attr("class", "labelBox"), t.y = t.y + t.height / 2, vt(e, t), s;
1310
- }, "drawLabel"), P = -1, ce = /* @__PURE__ */ f((e, t, n, s) => {
1311
- e.select && n.forEach((r) => {
1312
- const i = t.get(r), c = e.select("#actor" + i.actorCnt);
1313
- !s.mirrorActors && i.stopy ? c.attr("y2", i.stopy + i.height / 2) : s.mirrorActors && c.attr("y2", i.stopy);
1314
- });
1315
- }, "fixLifeLineHeights"), Ge = /* @__PURE__ */ f(function(e, t, n, s) {
1316
- var y, b;
1317
- const r = s ? t.stopy : t.starty, i = t.x + t.width / 2, c = r + t.height, h = e.append("g").lower();
1318
- var o = h;
1319
- s || (P++, Object.keys(t.links || {}).length && !n.forceMenus && o.attr("onclick", Ot(`actor${P}_popup`)).attr("cursor", "pointer"), o.append("line").attr("id", "actor" + P).attr("x1", i).attr("y1", c).attr("x2", i).attr("y2", 2e3).attr("class", "actor-line 200").attr("stroke-width", "0.5px").attr("stroke", "#999").attr("name", t.name), o = h.append("g"), t.actorCnt = P, t.links != null && o.attr("id", "root-" + P));
1320
- const a = ct();
1321
- var p = "actor";
1322
- (y = t.properties) != null && y.class ? p = t.properties.class : a.fill = "#eaeaea", s ? p += ` ${xt}` : p += ` ${gt}`, a.x = t.x, a.y = r, a.width = t.width, a.height = t.height, a.class = p, a.rx = 3, a.ry = 3, a.name = t.name;
1323
- const g = Lt(o, a);
1324
- if (t.rectData = a, (b = t.properties) != null && b.icon) {
1325
- const w = t.properties.icon.trim();
1326
- w.charAt(0) === "@" ? Jt(o, a.x + a.width - 20, a.y + 10, w.substr(1)) : Qt(o, a.x + a.width - 20, a.y + 10, w);
1327
- }
1328
- dt(n, z(t.description))(
1329
- t.description,
1330
- o,
1331
- a.x,
1332
- a.y,
1333
- a.width,
1334
- a.height,
1335
- { class: `actor ${Ct}` },
1336
- n
1337
- );
1338
- let x = t.height;
1339
- if (g.node) {
1340
- const w = g.node().getBBox();
1341
- t.height = w.height, x = w.height;
1342
- }
1343
- return x;
1344
- }, "drawActorTypeParticipant"), Ke = /* @__PURE__ */ f(function(e, t, n, s) {
1345
- var w, k;
1346
- const r = s ? t.stopy : t.starty, i = t.x + t.width / 2, c = r + t.height, h = e.append("g").lower();
1347
- var o = h;
1348
- s || (P++, Object.keys(t.links || {}).length && !n.forceMenus && o.attr("onclick", Ot(`actor${P}_popup`)).attr("cursor", "pointer"), o.append("line").attr("id", "actor" + P).attr("x1", i).attr("y1", c).attr("x2", i).attr("y2", 2e3).attr("class", "actor-line 200").attr("stroke-width", "0.5px").attr("stroke", "#999").attr("name", t.name), o = h.append("g"), t.actorCnt = P, t.links != null && o.attr("id", "root-" + P));
1349
- const a = ct();
1350
- var p = "actor";
1351
- (w = t.properties) != null && w.class ? p = t.properties.class : a.fill = "#eaeaea", s ? p += ` ${xt}` : p += ` ${gt}`, a.x = t.x, a.y = r, a.width = t.width, a.height = t.height, a.class = p, a.name = t.name;
1352
- const g = 6, x = {
1353
- ...a,
1354
- x: a.x + -g,
1355
- y: a.y + +g,
1356
- class: "actor"
1357
- }, y = Lt(o, a);
1358
- if (Lt(o, x), t.rectData = a, (k = t.properties) != null && k.icon) {
1359
- const N = t.properties.icon.trim();
1360
- N.charAt(0) === "@" ? Jt(o, a.x + a.width - 20, a.y + 10, N.substr(1)) : Qt(o, a.x + a.width - 20, a.y + 10, N);
1361
- }
1362
- dt(n, z(t.description))(
1363
- t.description,
1364
- o,
1365
- a.x - g,
1366
- a.y + g,
1367
- a.width,
1368
- a.height,
1369
- { class: `actor ${Ct}` },
1370
- n
1371
- );
1372
- let b = t.height;
1373
- if (y.node) {
1374
- const N = y.node().getBBox();
1375
- t.height = N.height, b = N.height;
1376
- }
1377
- return b;
1378
- }, "drawActorTypeCollections"), Xe = /* @__PURE__ */ f(function(e, t, n, s) {
1379
- var N, S;
1380
- const r = s ? t.stopy : t.starty, i = t.x + t.width / 2, c = r + t.height, h = e.append("g").lower();
1381
- let o = h;
1382
- s || (P++, Object.keys(t.links || {}).length && !n.forceMenus && o.attr("onclick", Ot(`actor${P}_popup`)).attr("cursor", "pointer"), o.append("line").attr("id", "actor" + P).attr("x1", i).attr("y1", c).attr("x2", i).attr("y2", 2e3).attr("class", "actor-line 200").attr("stroke-width", "0.5px").attr("stroke", "#999").attr("name", t.name), o = h.append("g"), t.actorCnt = P, t.links != null && o.attr("id", "root-" + P));
1383
- const a = ct();
1384
- let p = "actor";
1385
- (N = t.properties) != null && N.class ? p = t.properties.class : a.fill = "#eaeaea", s ? p += ` ${xt}` : p += ` ${gt}`, a.x = t.x, a.y = r, a.width = t.width, a.height = t.height, a.class = p, a.name = t.name;
1386
- const g = a.height / 2, x = g / (2.5 + a.height / 50), y = o.append("g"), b = o.append("g");
1387
- if (y.append("path").attr(
1388
- "d",
1389
- `M ${a.x},${a.y + g}
1390
- a ${x},${g} 0 0 0 0,${a.height}
1391
- h ${a.width - 2 * x}
1392
- a ${x},${g} 0 0 0 0,-${a.height}
1393
- Z
1394
- `
1395
- ).attr("class", p), b.append("path").attr(
1396
- "d",
1397
- `M ${a.x},${a.y + g}
1398
- a ${x},${g} 0 0 0 0,${a.height}`
1399
- ).attr("stroke", "#666").attr("stroke-width", "1px").attr("class", p), y.attr("transform", `translate(${x}, ${-(a.height / 2)})`), b.attr("transform", `translate(${a.width - x}, ${-a.height / 2})`), t.rectData = a, (S = t.properties) != null && S.icon) {
1400
- const M = t.properties.icon.trim(), C = a.x + a.width - 20, Y = a.y + 10;
1401
- M.charAt(0) === "@" ? Jt(o, C, Y, M.substr(1)) : Qt(o, C, Y, M);
1402
- }
1403
- dt(n, z(t.description))(
1404
- t.description,
1405
- o,
1406
- a.x,
1407
- a.y,
1408
- a.width,
1409
- a.height,
1410
- { class: `actor ${Ct}` },
1411
- n
1412
- );
1413
- let w = t.height;
1414
- const k = y.select("path:last-child");
1415
- if (k.node()) {
1416
- const M = k.node().getBBox();
1417
- t.height = M.height, w = M.height;
1418
- }
1419
- return w;
1420
- }, "drawActorTypeQueue"), Je = /* @__PURE__ */ f(function(e, t, n, s) {
1421
- var w;
1422
- const r = s ? t.stopy : t.starty, i = t.x + t.width / 2, c = r + 75, h = e.append("g").lower();
1423
- s || (P++, h.append("line").attr("id", "actor" + P).attr("x1", i).attr("y1", c).attr("x2", i).attr("y2", 2e3).attr("class", "actor-line 200").attr("stroke-width", "0.5px").attr("stroke", "#999").attr("name", t.name), t.actorCnt = P);
1424
- const o = e.append("g");
1425
- let a = ut;
1426
- s ? a += ` ${xt}` : a += ` ${gt}`, o.attr("class", a), o.attr("name", t.name);
1427
- const p = ct();
1428
- p.x = t.x, p.y = r, p.fill = "#eaeaea", p.width = t.width, p.height = t.height, p.class = "actor";
1429
- const g = t.x + t.width / 2, x = r + 30, y = 18;
1430
- o.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"), o.append("circle").attr("cx", g).attr("cy", x).attr("r", y).attr("fill", "#eaeaf7").attr("stroke", "#666").attr("stroke-width", 1.2), o.append("line").attr("marker-end", "url(#filled-head-control)").attr("transform", `translate(${g}, ${x - y})`);
1431
- const b = o.node().getBBox();
1432
- return t.height = b.height + 2 * (((w = n == null ? void 0 : n.sequence) == null ? void 0 : w.labelBoxHeight) ?? 0), dt(n, z(t.description))(
1433
- t.description,
1434
- o,
1435
- p.x,
1436
- p.y + y + (s ? 5 : 10),
1437
- p.width,
1438
- p.height,
1439
- { class: `actor ${ut}` },
1440
- n
1441
- ), t.height;
1442
- }, "drawActorTypeControl"), Qe = /* @__PURE__ */ f(function(e, t, n, s) {
1443
- var w;
1444
- const r = s ? t.stopy : t.starty, i = t.x + t.width / 2, c = r + 75, h = e.append("g").lower(), o = e.append("g");
1445
- let a = ut;
1446
- s ? a += ` ${xt}` : a += ` ${gt}`, o.attr("class", a), o.attr("name", t.name);
1447
- const p = ct();
1448
- p.x = t.x, p.y = r, p.fill = "#eaeaea", p.width = t.width, p.height = t.height, p.class = "actor";
1449
- const g = t.x + t.width / 2, x = r + (s ? 10 : 25), y = 18;
1450
- o.append("circle").attr("cx", g).attr("cy", x).attr("r", y).attr("width", t.width).attr("height", t.height), o.append("line").attr("x1", g - y).attr("x2", g + y).attr("y1", x + y).attr("y2", x + y).attr("stroke", "#333").attr("stroke-width", 2);
1451
- const b = o.node().getBBox();
1452
- return t.height = b.height + (((w = n == null ? void 0 : n.sequence) == null ? void 0 : w.labelBoxHeight) ?? 0), s || (P++, h.append("line").attr("id", "actor" + P).attr("x1", i).attr("y1", c).attr("x2", i).attr("y2", 2e3).attr("class", "actor-line 200").attr("stroke-width", "0.5px").attr("stroke", "#999").attr("name", t.name), t.actorCnt = P), dt(n, z(t.description))(
1453
- t.description,
1454
- o,
1455
- p.x,
1456
- p.y + (s ? (x - r + y - 5) / 2 : (x + y - r) / 2),
1457
- p.width,
1458
- p.height,
1459
- { class: `actor ${ut}` },
1460
- n
1461
- ), s ? o.attr("transform", `translate(0, ${y / 2})`) : o.attr("transform", `translate(0, ${y / 2})`), t.height;
1462
- }, "drawActorTypeEntity"), Ze = /* @__PURE__ */ f(function(e, t, n, s) {
1463
- var S;
1464
- const r = s ? t.stopy : t.starty, i = t.x + t.width / 2, c = r + t.height + 2 * n.boxTextMargin, h = e.append("g").lower();
1465
- let o = h;
1466
- s || (P++, Object.keys(t.links || {}).length && !n.forceMenus && o.attr("onclick", Ot(`actor${P}_popup`)).attr("cursor", "pointer"), o.append("line").attr("id", "actor" + P).attr("x1", i).attr("y1", c).attr("x2", i).attr("y2", 2e3).attr("class", "actor-line 200").attr("stroke-width", "0.5px").attr("stroke", "#999").attr("name", t.name), o = h.append("g"), t.actorCnt = P, t.links != null && o.attr("id", "root-" + P));
1467
- const a = ct();
1468
- let p = "actor";
1469
- (S = t.properties) != null && S.class ? p = t.properties.class : a.fill = "#eaeaea", s ? p += ` ${xt}` : p += ` ${gt}`, a.x = t.x, a.y = r, a.width = t.width, a.height = t.height, a.class = p, a.name = t.name, a.x = t.x, a.y = r;
1470
- const g = a.width / 4, x = a.width / 4, y = g / 2, b = y / (2.5 + g / 50), w = o.append("g"), k = `
1471
- M ${a.x},${a.y + b}
1472
- a ${y},${b} 0 0 0 ${g},0
1473
- a ${y},${b} 0 0 0 -${g},0
1474
- l 0,${x - 2 * b}
1475
- a ${y},${b} 0 0 0 ${g},0
1476
- l 0,-${x - 2 * b}
1477
- `;
1478
- w.append("path").attr("d", k).attr("fill", "#eaeaea").attr("stroke", "#000").attr("stroke-width", 1).attr("class", p), s ? w.attr("transform", `translate(${g * 1.5}, ${a.height / 4 - 2 * b})`) : w.attr("transform", `translate(${g * 1.5}, ${(a.height + b) / 4})`), t.rectData = a, dt(n, z(t.description))(
1479
- t.description,
1480
- o,
1481
- a.x,
1482
- a.y + (s ? (a.height + x) / 4 : (a.height + b) / 2),
1483
- a.width,
1484
- a.height,
1485
- { class: `actor ${Ct}` },
1486
- n
1487
- );
1488
- const N = w.select("path:last-child");
1489
- if (N.node()) {
1490
- const M = N.node().getBBox();
1491
- t.height = M.height + (n.sequence.labelBoxHeight ?? 0);
1492
- }
1493
- return t.height;
1494
- }, "drawActorTypeDatabase"), $e = /* @__PURE__ */ f(function(e, t, n, s) {
1495
- const r = s ? t.stopy : t.starty, i = t.x + t.width / 2, c = r + 80, h = 30, o = e.append("g").lower();
1496
- s || (P++, o.append("line").attr("id", "actor" + P).attr("x1", i).attr("y1", c).attr("x2", i).attr("y2", 2e3).attr("class", "actor-line 200").attr("stroke-width", "0.5px").attr("stroke", "#999").attr("name", t.name), t.actorCnt = P);
1497
- const a = e.append("g");
1498
- let p = ut;
1499
- s ? p += ` ${xt}` : p += ` ${gt}`, a.attr("class", p), a.attr("name", t.name);
1500
- const g = ct();
1501
- g.x = t.x, g.y = r, g.fill = "#eaeaea", g.width = t.width, g.height = t.height, g.class = "actor", a.append("line").attr("id", "actor-man-torso" + P).attr("x1", t.x + t.width / 2 - h * 2.5).attr("y1", r + 10).attr("x2", t.x + t.width / 2 - 15).attr("y2", r + 10), a.append("line").attr("id", "actor-man-arms" + P).attr("x1", t.x + t.width / 2 - h * 2.5).attr("y1", r + 0).attr("x2", t.x + t.width / 2 - h * 2.5).attr("y2", r + 20), a.append("circle").attr("cx", t.x + t.width / 2).attr("cy", r + 10).attr("r", h);
1502
- const x = a.node().getBBox();
1503
- return t.height = x.height + (n.sequence.labelBoxHeight ?? 0), dt(n, z(t.description))(
1504
- t.description,
1505
- a,
1506
- g.x,
1507
- g.y + (s ? h / 2 - 4 : h / 2 + 3),
1508
- g.width,
1509
- g.height,
1510
- { class: `actor ${ut}` },
1511
- n
1512
- ), s ? a.attr("transform", `translate(0,${h / 2 + 7})`) : a.attr("transform", `translate(0,${h / 2 + 7})`), t.height;
1513
- }, "drawActorTypeBoundary"), je = /* @__PURE__ */ f(function(e, t, n, s) {
1514
- const r = s ? t.stopy : t.starty, i = t.x + t.width / 2, c = r + 80, h = e.append("g").lower();
1515
- s || (P++, h.append("line").attr("id", "actor" + P).attr("x1", i).attr("y1", c).attr("x2", i).attr("y2", 2e3).attr("class", "actor-line 200").attr("stroke-width", "0.5px").attr("stroke", "#999").attr("name", t.name), t.actorCnt = P);
1516
- const o = e.append("g");
1517
- let a = ut;
1518
- s ? a += ` ${xt}` : a += ` ${gt}`, o.attr("class", a), o.attr("name", t.name);
1519
- const p = ct();
1520
- p.x = t.x, p.y = r, p.fill = "#eaeaea", p.width = t.width, p.height = t.height, p.class = "actor", p.rx = 3, p.ry = 3, o.append("line").attr("id", "actor-man-torso" + P).attr("x1", i).attr("y1", r + 25).attr("x2", i).attr("y2", r + 45), o.append("line").attr("id", "actor-man-arms" + P).attr("x1", i - Tt / 2).attr("y1", r + 33).attr("x2", i + Tt / 2).attr("y2", r + 33), o.append("line").attr("x1", i - Tt / 2).attr("y1", r + 60).attr("x2", i).attr("y2", r + 45), o.append("line").attr("x1", i).attr("y1", r + 45).attr("x2", i + Tt / 2 - 2).attr("y2", r + 60);
1521
- const g = o.append("circle");
1522
- g.attr("cx", t.x + t.width / 2), g.attr("cy", r + 10), g.attr("r", 15), g.attr("width", t.width), g.attr("height", t.height);
1523
- const x = o.node().getBBox();
1524
- return t.height = x.height, dt(n, z(t.description))(
1525
- t.description,
1526
- o,
1527
- p.x,
1528
- p.y + 35,
1529
- p.width,
1530
- p.height,
1531
- { class: `actor ${ut}` },
1532
- n
1533
- ), t.height;
1534
- }, "drawActorTypeActor"), ts = /* @__PURE__ */ f(async function(e, t, n, s) {
1535
- switch (t.type) {
1536
- case "actor":
1537
- return await je(e, t, n, s);
1538
- case "participant":
1539
- return await Ge(e, t, n, s);
1540
- case "boundary":
1541
- return await $e(e, t, n, s);
1542
- case "control":
1543
- return await Je(e, t, n, s);
1544
- case "entity":
1545
- return await Qe(e, t, n, s);
1546
- case "database":
1547
- return await Ze(e, t, n, s);
1548
- case "collections":
1549
- return await Ke(e, t, n, s);
1550
- case "queue":
1551
- return await Xe(e, t, n, s);
1552
- }
1553
- }, "drawActor"), es = /* @__PURE__ */ f(function(e, t, n) {
1554
- const r = e.append("g");
1555
- le(r, t), t.name && dt(n)(
1556
- t.name,
1557
- r,
1558
- t.x,
1559
- t.y + n.boxTextMargin + (t.textMaxHeight || 0) / 2,
1560
- t.width,
1561
- 0,
1562
- { class: "text" },
1563
- n
1564
- ), r.lower();
1565
- }, "drawBox"), ss = /* @__PURE__ */ f(function(e) {
1566
- return e.append("g");
1567
- }, "anchorElement"), as = /* @__PURE__ */ f(function(e, t, n, s, r) {
1568
- const i = ct(), c = t.anchored;
1569
- i.x = t.startx, i.y = t.starty, i.class = "activation" + r % 3, i.width = t.stopx - t.startx, i.height = n - t.starty, Lt(c, i);
1570
- }, "drawActivation"), rs = /* @__PURE__ */ f(async function(e, t, n, s) {
1571
- const {
1572
- boxMargin: r,
1573
- boxTextMargin: i,
1574
- labelBoxHeight: c,
1575
- labelBoxWidth: h,
1576
- messageFontFamily: o,
1577
- messageFontSize: a,
1578
- messageFontWeight: p
1579
- } = s, g = e.append("g"), x = /* @__PURE__ */ f(function(w, k, N, S) {
1580
- return g.append("line").attr("x1", w).attr("y1", k).attr("x2", N).attr("y2", S).attr("class", "loopLine");
1581
- }, "drawLoopLine");
1582
- x(t.startx, t.starty, t.stopx, t.starty), x(t.stopx, t.starty, t.stopx, t.stopy), x(t.startx, t.stopy, t.stopx, t.stopy), x(t.startx, t.starty, t.startx, t.stopy), t.sections !== void 0 && t.sections.forEach(function(w) {
1583
- x(t.startx, w.y, t.stopx, w.y).style(
1584
- "stroke-dasharray",
1585
- "3, 3"
1586
- );
1587
- });
1588
- let y = Xt();
1589
- y.text = n, y.x = t.startx, y.y = t.starty, y.fontFamily = o, y.fontSize = a, y.fontWeight = p, y.anchor = "middle", y.valign = "middle", y.tspan = !1, y.width = h || 50, y.height = c || 20, y.textMargin = i, y.class = "labelText", oe(g, y), y = he(), y.text = t.title, y.x = t.startx + h / 2 + (t.stopx - t.startx) / 2, y.y = t.starty + r + i, y.anchor = "middle", y.valign = "middle", y.textMargin = i, y.class = "loopText", y.fontFamily = o, y.fontSize = a, y.fontWeight = p, y.wrap = !0;
1590
- let b = z(y.text) ? await Dt(g, y, t) : vt(g, y);
1591
- if (t.sectionTitles !== void 0) {
1592
- for (const [w, k] of Object.entries(t.sectionTitles))
1593
- if (k.message) {
1594
- y.text = k.message, y.x = t.startx + (t.stopx - t.startx) / 2, y.y = t.sections[w].y + r + i, y.class = "loopText", y.anchor = "middle", y.valign = "middle", y.tspan = !1, y.fontFamily = o, y.fontSize = a, y.fontWeight = p, y.wrap = t.wrap, z(y.text) ? (t.starty = t.sections[w].y, await Dt(g, y, t)) : vt(g, y);
1595
- let N = Math.round(
1596
- b.map((S) => (S._groups || S)[0][0].getBBox().height).reduce((S, M) => S + M)
1597
- );
1598
- t.sections[w].height += N - (r + i);
1599
- }
1600
- }
1601
- return t.height = Math.round(t.stopy - t.starty), g;
1602
- }, "drawLoop"), le = /* @__PURE__ */ f(function(e, t) {
1603
- ve(e, t);
1604
- }, "drawBackgroundRect"), is = /* @__PURE__ */ f(function(e) {
1605
- e.append("defs").append("symbol").attr("id", "database").attr("fill-rule", "evenodd").attr("clip-rule", "evenodd").append("path").attr("transform", "scale(.5)").attr(
1606
- "d",
1607
- "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"
1608
- );
1609
- }, "insertDatabaseIcon"), ns = /* @__PURE__ */ f(function(e) {
1610
- e.append("defs").append("symbol").attr("id", "computer").attr("width", "24").attr("height", "24").append("path").attr("transform", "scale(.5)").attr(
1611
- "d",
1612
- "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"
1613
- );
1614
- }, "insertComputerIcon"), os = /* @__PURE__ */ f(function(e) {
1615
- e.append("defs").append("symbol").attr("id", "clock").attr("width", "24").attr("height", "24").append("path").attr("transform", "scale(.5)").attr(
1616
- "d",
1617
- "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"
1618
- );
1619
- }, "insertClockIcon"), cs = /* @__PURE__ */ f(function(e) {
1620
- 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");
1621
- }, "insertArrowHead"), ls = /* @__PURE__ */ f(function(e) {
1622
- 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");
1623
- }, "insertArrowFilledHead"), hs = /* @__PURE__ */ f(function(e) {
1624
- 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);
1625
- }, "insertSequenceNumber"), ds = /* @__PURE__ */ f(function(e) {
1626
- 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");
1627
- }, "insertArrowCrossHead"), he = /* @__PURE__ */ f(function() {
1628
- return {
1629
- x: 0,
1630
- y: 0,
1631
- fill: void 0,
1632
- anchor: void 0,
1633
- style: "#666",
1634
- width: void 0,
1635
- height: void 0,
1636
- textMargin: 0,
1637
- rx: 0,
1638
- ry: 0,
1639
- tspan: !0,
1640
- valign: void 0
1641
- };
1642
- }, "getTextObj"), ps = /* @__PURE__ */ f(function() {
1643
- return {
1644
- x: 0,
1645
- y: 0,
1646
- fill: "#EDF2AE",
1647
- stroke: "#666",
1648
- width: 100,
1649
- anchor: "start",
1650
- height: 100,
1651
- rx: 0,
1652
- ry: 0
1653
- };
1654
- }, "getNoteRect"), dt = /* @__PURE__ */ function() {
1655
- function e(i, c, h, o, a, p, g) {
1656
- const x = c.append("text").attr("x", h + a / 2).attr("y", o + p / 2 + 5).style("text-anchor", "middle").text(i);
1657
- r(x, g);
1658
- }
1659
- f(e, "byText");
1660
- function t(i, c, h, o, a, p, g, x) {
1661
- const { actorFontSize: y, actorFontFamily: b, actorFontWeight: w } = x, [k, N] = ne(y), S = i.split(I.lineBreakRegex);
1662
- for (let M = 0; M < S.length; M++) {
1663
- const C = M * k - k * (S.length - 1) / 2, Y = c.append("text").attr("x", h + a / 2).attr("y", o).style("text-anchor", "middle").style("font-size", N).style("font-weight", w).style("font-family", b);
1664
- Y.append("tspan").attr("x", h + a / 2).attr("dy", C).text(S[M]), Y.attr("y", o + p / 2).attr("dominant-baseline", "central").attr("alignment-baseline", "central"), r(Y, g);
1665
- }
1666
- }
1667
- f(t, "byTspan");
1668
- function n(i, c, h, o, a, p, g, x) {
1669
- const y = c.append("switch"), w = y.append("foreignObject").attr("x", h).attr("y", o).attr("width", a).attr("height", p).append("xhtml:div").style("display", "table").style("height", "100%").style("width", "100%");
1670
- w.append("div").style("display", "table-cell").style("text-align", "center").style("vertical-align", "middle").text(i), t(i, y, h, o, a, p, g, x), r(w, g);
1671
- }
1672
- f(n, "byFo");
1673
- async function s(i, c, h, o, a, p, g, x) {
1674
- const y = await At(i, Ht()), b = c.append("switch"), k = b.append("foreignObject").attr("x", h + a / 2 - y.width / 2).attr("y", o + p / 2 - y.height / 2).attr("width", y.width).attr("height", y.height).append("xhtml:div").style("height", "100%").style("width", "100%");
1675
- k.append("div").style("text-align", "center").style("vertical-align", "middle").html(await ie(i, Ht())), t(i, b, h, o, a, p, g, x), r(k, g);
1676
- }
1677
- f(s, "byKatex");
1678
- function r(i, c) {
1679
- for (const h in c)
1680
- c.hasOwnProperty(h) && i.attr(h, c[h]);
1681
- }
1682
- return f(r, "_setTextAttrs"), function(i, c = !1) {
1683
- return c ? s : i.textPlacement === "fo" ? n : i.textPlacement === "old" ? e : t;
1684
- };
1685
- }(), us = /* @__PURE__ */ function() {
1686
- function e(r, i, c, h, o, a, p) {
1687
- const g = i.append("text").attr("x", c).attr("y", h).style("text-anchor", "start").text(r);
1688
- s(g, p);
1689
- }
1690
- f(e, "byText");
1691
- function t(r, i, c, h, o, a, p, g) {
1692
- const { actorFontSize: x, actorFontFamily: y, actorFontWeight: b } = g, w = r.split(I.lineBreakRegex);
1693
- for (let k = 0; k < w.length; k++) {
1694
- const N = k * x - x * (w.length - 1) / 2, S = i.append("text").attr("x", c).attr("y", h).style("text-anchor", "start").style("font-size", x).style("font-weight", b).style("font-family", y);
1695
- S.append("tspan").attr("x", c).attr("dy", N).text(w[k]), S.attr("y", h + a / 2).attr("dominant-baseline", "central").attr("alignment-baseline", "central"), s(S, p);
1696
- }
1697
- }
1698
- f(t, "byTspan");
1699
- function n(r, i, c, h, o, a, p, g) {
1700
- const x = i.append("switch"), b = x.append("foreignObject").attr("x", c).attr("y", h).attr("width", o).attr("height", a).append("xhtml:div").style("display", "table").style("height", "100%").style("width", "100%");
1701
- b.append("div").style("display", "table-cell").style("text-align", "center").style("vertical-align", "middle").text(r), t(r, x, c, h, o, a, p, g), s(b, p);
1702
- }
1703
- f(n, "byFo");
1704
- function s(r, i) {
1705
- for (const c in i)
1706
- i.hasOwnProperty(c) && r.attr(c, i[c]);
1707
- }
1708
- return f(s, "_setTextAttrs"), function(r) {
1709
- return r.textPlacement === "fo" ? n : r.textPlacement === "old" ? e : t;
1710
- };
1711
- }(), V = {
1712
- drawRect: Lt,
1713
- drawText: vt,
1714
- drawLabel: oe,
1715
- drawActor: ts,
1716
- drawBox: es,
1717
- drawPopup: Ue,
1718
- anchorElement: ss,
1719
- drawActivation: as,
1720
- drawLoop: rs,
1721
- drawBackgroundRect: le,
1722
- insertArrowHead: cs,
1723
- insertArrowFilledHead: ls,
1724
- insertSequenceNumber: hs,
1725
- insertArrowCrossHead: ds,
1726
- insertDatabaseIcon: is,
1727
- insertComputerIcon: ns,
1728
- insertClockIcon: os,
1729
- getTextObj: he,
1730
- getNoteRect: ps,
1731
- fixLifeLineHeights: ce,
1732
- sanitizeUrl: re.sanitizeUrl
1733
- }, l = {}, T = {
1734
- data: {
1735
- startx: void 0,
1736
- stopx: void 0,
1737
- starty: void 0,
1738
- stopy: void 0
1739
- },
1740
- verticalPos: 0,
1741
- sequenceItems: [],
1742
- activations: [],
1743
- models: {
1744
- getHeight: /* @__PURE__ */ f(function() {
1745
- return Math.max.apply(
1746
- null,
1747
- this.actors.length === 0 ? [0] : this.actors.map((e) => e.height || 0)
1748
- ) + (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));
1749
- }, "getHeight"),
1750
- clear: /* @__PURE__ */ f(function() {
1751
- this.actors = [], this.boxes = [], this.loops = [], this.messages = [], this.notes = [];
1752
- }, "clear"),
1753
- addBox: /* @__PURE__ */ f(function(e) {
1754
- this.boxes.push(e);
1755
- }, "addBox"),
1756
- addActor: /* @__PURE__ */ f(function(e) {
1757
- this.actors.push(e);
1758
- }, "addActor"),
1759
- addLoop: /* @__PURE__ */ f(function(e) {
1760
- this.loops.push(e);
1761
- }, "addLoop"),
1762
- addMessage: /* @__PURE__ */ f(function(e) {
1763
- this.messages.push(e);
1764
- }, "addMessage"),
1765
- addNote: /* @__PURE__ */ f(function(e) {
1766
- this.notes.push(e);
1767
- }, "addNote"),
1768
- lastActor: /* @__PURE__ */ f(function() {
1769
- return this.actors[this.actors.length - 1];
1770
- }, "lastActor"),
1771
- lastLoop: /* @__PURE__ */ f(function() {
1772
- return this.loops[this.loops.length - 1];
1773
- }, "lastLoop"),
1774
- lastMessage: /* @__PURE__ */ f(function() {
1775
- return this.messages[this.messages.length - 1];
1776
- }, "lastMessage"),
1777
- lastNote: /* @__PURE__ */ f(function() {
1778
- return this.notes[this.notes.length - 1];
1779
- }, "lastNote"),
1780
- actors: [],
1781
- boxes: [],
1782
- loops: [],
1783
- messages: [],
1784
- notes: []
1785
- },
1786
- init: /* @__PURE__ */ f(function() {
1787
- this.sequenceItems = [], this.activations = [], this.models.clear(), this.data = {
1788
- startx: void 0,
1789
- stopx: void 0,
1790
- starty: void 0,
1791
- stopy: void 0
1792
- }, this.verticalPos = 0, ue(st());
1793
- }, "init"),
1794
- updateVal: /* @__PURE__ */ f(function(e, t, n, s) {
1795
- e[t] === void 0 ? e[t] = n : e[t] = s(n, e[t]);
1796
- }, "updateVal"),
1797
- updateBounds: /* @__PURE__ */ f(function(e, t, n, s) {
1798
- const r = this;
1799
- let i = 0;
1800
- function c(h) {
1801
- return /* @__PURE__ */ f(function(a) {
1802
- i++;
1803
- const p = r.sequenceItems.length - i + 1;
1804
- r.updateVal(a, "starty", t - p * l.boxMargin, Math.min), r.updateVal(a, "stopy", s + p * l.boxMargin, Math.max), r.updateVal(T.data, "startx", e - p * l.boxMargin, Math.min), r.updateVal(T.data, "stopx", n + p * l.boxMargin, Math.max), h !== "activation" && (r.updateVal(a, "startx", e - p * l.boxMargin, Math.min), r.updateVal(a, "stopx", n + p * l.boxMargin, Math.max), r.updateVal(T.data, "starty", t - p * l.boxMargin, Math.min), r.updateVal(T.data, "stopy", s + p * l.boxMargin, Math.max));
1805
- }, "updateItemBounds");
1806
- }
1807
- f(c, "updateFn"), this.sequenceItems.forEach(c()), this.activations.forEach(c("activation"));
1808
- }, "updateBounds"),
1809
- insert: /* @__PURE__ */ f(function(e, t, n, s) {
1810
- const r = I.getMin(e, n), i = I.getMax(e, n), c = I.getMin(t, s), h = I.getMax(t, s);
1811
- this.updateVal(T.data, "startx", r, Math.min), this.updateVal(T.data, "starty", c, Math.min), this.updateVal(T.data, "stopx", i, Math.max), this.updateVal(T.data, "stopy", h, Math.max), this.updateBounds(r, c, i, h);
1812
- }, "insert"),
1813
- newActivation: /* @__PURE__ */ f(function(e, t, n) {
1814
- const s = n.get(e.from), r = Bt(e.from).length || 0, i = s.x + s.width / 2 + (r - 1) * l.activationWidth / 2;
1815
- this.activations.push({
1816
- startx: i,
1817
- starty: this.verticalPos + 2,
1818
- stopx: i + l.activationWidth,
1819
- stopy: void 0,
1820
- actor: e.from,
1821
- anchored: V.anchorElement(t)
1822
- });
1823
- }, "newActivation"),
1824
- endActivation: /* @__PURE__ */ f(function(e) {
1825
- const t = this.activations.map(function(n) {
1826
- return n.actor;
1827
- }).lastIndexOf(e.from);
1828
- return this.activations.splice(t, 1)[0];
1829
- }, "endActivation"),
1830
- createLoop: /* @__PURE__ */ f(function(e = { message: void 0, wrap: !1, width: void 0 }, t) {
1831
- return {
1832
- startx: void 0,
1833
- starty: this.verticalPos,
1834
- stopx: void 0,
1835
- stopy: void 0,
1836
- title: e.message,
1837
- wrap: e.wrap,
1838
- width: e.width,
1839
- height: 0,
1840
- fill: t
1841
- };
1842
- }, "createLoop"),
1843
- newLoop: /* @__PURE__ */ f(function(e = { message: void 0, wrap: !1, width: void 0 }, t) {
1844
- this.sequenceItems.push(this.createLoop(e, t));
1845
- }, "newLoop"),
1846
- endLoop: /* @__PURE__ */ f(function() {
1847
- return this.sequenceItems.pop();
1848
- }, "endLoop"),
1849
- isLoopOverlap: /* @__PURE__ */ f(function() {
1850
- return this.sequenceItems.length ? this.sequenceItems[this.sequenceItems.length - 1].overlap : !1;
1851
- }, "isLoopOverlap"),
1852
- addSectionToLoop: /* @__PURE__ */ f(function(e) {
1853
- const t = this.sequenceItems.pop();
1854
- t.sections = t.sections || [], t.sectionTitles = t.sectionTitles || [], t.sections.push({ y: T.getVerticalPos(), height: 0 }), t.sectionTitles.push(e), this.sequenceItems.push(t);
1855
- }, "addSectionToLoop"),
1856
- saveVerticalPos: /* @__PURE__ */ f(function() {
1857
- this.isLoopOverlap() && (this.savedVerticalPos = this.verticalPos);
1858
- }, "saveVerticalPos"),
1859
- resetVerticalPos: /* @__PURE__ */ f(function() {
1860
- this.isLoopOverlap() && (this.verticalPos = this.savedVerticalPos);
1861
- }, "resetVerticalPos"),
1862
- bumpVerticalPos: /* @__PURE__ */ f(function(e) {
1863
- this.verticalPos = this.verticalPos + e, this.data.stopy = I.getMax(this.data.stopy, this.verticalPos);
1864
- }, "bumpVerticalPos"),
1865
- getVerticalPos: /* @__PURE__ */ f(function() {
1866
- return this.verticalPos;
1867
- }, "getVerticalPos"),
1868
- getBounds: /* @__PURE__ */ f(function() {
1869
- return { bounds: this.data, models: this.models };
1870
- }, "getBounds")
1871
- }, gs = /* @__PURE__ */ f(async function(e, t) {
1872
- T.bumpVerticalPos(l.boxMargin), t.height = l.boxMargin, t.starty = T.getVerticalPos();
1873
- const n = ct();
1874
- n.x = t.startx, n.y = t.starty, n.width = t.width || l.width, n.class = "note";
1875
- const s = e.append("g"), r = V.drawRect(s, n), i = Xt();
1876
- i.x = t.startx, i.y = t.starty, i.width = n.width, i.dy = "1em", i.text = t.message, i.class = "noteText", i.fontFamily = l.noteFontFamily, i.fontSize = l.noteFontSize, i.fontWeight = l.noteFontWeight, i.anchor = l.noteAlign, i.textMargin = l.noteMargin, i.valign = "center";
1877
- const c = z(i.text) ? await Dt(s, i) : vt(s, i), h = Math.round(
1878
- c.map((o) => (o._groups || o)[0][0].getBBox().height).reduce((o, a) => o + a)
1879
- );
1880
- r.attr("height", h + 2 * l.noteMargin), t.height += h + 2 * l.noteMargin, T.bumpVerticalPos(h + 2 * l.noteMargin), t.stopy = t.starty + h + 2 * l.noteMargin, t.stopx = t.startx + n.width, T.insert(t.startx, t.starty, t.stopx, t.stopy), T.models.addNote(t);
1881
- }, "drawNote"), Et = /* @__PURE__ */ f((e) => ({
1882
- fontFamily: e.messageFontFamily,
1883
- fontSize: e.messageFontSize,
1884
- fontWeight: e.messageFontWeight
1885
- }), "messageFont"), mt = /* @__PURE__ */ f((e) => ({
1886
- fontFamily: e.noteFontFamily,
1887
- fontSize: e.noteFontSize,
1888
- fontWeight: e.noteFontWeight
1889
- }), "noteFont"), Gt = /* @__PURE__ */ f((e) => ({
1890
- fontFamily: e.actorFontFamily,
1891
- fontSize: e.actorFontSize,
1892
- fontWeight: e.actorFontWeight
1893
- }), "actorFont");
1894
- async function de(e, t) {
1895
- T.bumpVerticalPos(10);
1896
- const { startx: n, stopx: s, message: r } = t, i = I.splitBreaks(r).length, c = z(r), h = c ? await At(r, st()) : F.calculateTextDimensions(r, Et(l));
1897
- if (!c) {
1898
- const g = h.height / i;
1899
- t.height += g, T.bumpVerticalPos(g);
1900
- }
1901
- let o, a = h.height - 10;
1902
- const p = h.width;
1903
- if (n === s) {
1904
- o = T.getVerticalPos() + a, l.rightAngles || (a += l.boxMargin, o = T.getVerticalPos() + a), a += 30;
1905
- const g = I.getMax(p / 2, l.width / 2);
1906
- T.insert(
1907
- n - g,
1908
- T.getVerticalPos() - 10 + a,
1909
- s + g,
1910
- T.getVerticalPos() + 30 + a
1911
- );
1912
- } else
1913
- a += l.boxMargin, o = T.getVerticalPos() + a, T.insert(n, o - 10, s, o);
1914
- return T.bumpVerticalPos(a), t.height += a, t.stopy = t.starty + t.height, T.insert(t.fromBounds, t.starty, t.toBounds, t.stopy), o;
1915
- }
1916
- f(de, "boundMessage");
1917
- var xs = /* @__PURE__ */ f(async function(e, t, n, s) {
1918
- const { startx: r, stopx: i, starty: c, message: h, type: o, sequenceIndex: a, sequenceVisible: p } = t, g = F.calculateTextDimensions(h, Et(l)), x = Xt();
1919
- x.x = r, x.y = c + 10, x.width = i - r, x.class = "messageText", x.dy = "1em", x.text = h, x.fontFamily = l.messageFontFamily, x.fontSize = l.messageFontSize, x.fontWeight = l.messageFontWeight, x.anchor = l.messageAlign, x.valign = "center", x.textMargin = l.wrapPadding, x.tspan = !1, z(x.text) ? await Dt(e, x, { startx: r, stopx: i, starty: n }) : vt(e, x);
1920
- const y = g.width;
1921
- let b;
1922
- r === i ? l.rightAngles ? b = e.append("path").attr(
1923
- "d",
1924
- `M ${r},${n} H ${r + I.getMax(l.width / 2, y / 2)} V ${n + 25} H ${r}`
1925
- ) : b = e.append("path").attr(
1926
- "d",
1927
- "M " + r + "," + n + " C " + (r + 60) + "," + (n - 10) + " " + (r + 60) + "," + (n + 30) + " " + r + "," + (n + 20)
1928
- ) : (b = e.append("line"), b.attr("x1", r), b.attr("y1", n), b.attr("x2", i), b.attr("y2", n)), o === s.db.LINETYPE.DOTTED || o === s.db.LINETYPE.DOTTED_CROSS || o === s.db.LINETYPE.DOTTED_POINT || o === s.db.LINETYPE.DOTTED_OPEN || o === s.db.LINETYPE.BIDIRECTIONAL_DOTTED ? (b.style("stroke-dasharray", "3, 3"), b.attr("class", "messageLine1")) : b.attr("class", "messageLine0");
1929
- let w = "";
1930
- l.arrowMarkerAbsolute && (w = Ce(!0)), b.attr("stroke-width", 2), b.attr("stroke", "none"), b.style("fill", "none"), (o === s.db.LINETYPE.SOLID || o === s.db.LINETYPE.DOTTED) && b.attr("marker-end", "url(" + w + "#arrowhead)"), (o === s.db.LINETYPE.BIDIRECTIONAL_SOLID || o === s.db.LINETYPE.BIDIRECTIONAL_DOTTED) && (b.attr("marker-start", "url(" + w + "#arrowhead)"), b.attr("marker-end", "url(" + w + "#arrowhead)")), (o === s.db.LINETYPE.SOLID_POINT || o === s.db.LINETYPE.DOTTED_POINT) && b.attr("marker-end", "url(" + w + "#filled-head)"), (o === s.db.LINETYPE.SOLID_CROSS || o === s.db.LINETYPE.DOTTED_CROSS) && b.attr("marker-end", "url(" + w + "#crosshead)"), (p || l.showSequenceNumbers) && ((o === s.db.LINETYPE.BIDIRECTIONAL_SOLID || o === s.db.LINETYPE.BIDIRECTIONAL_DOTTED) && (r < i ? b.attr("x1", r + 2 * 6) : b.attr("x1", r + 6)), e.append("line").attr("x1", r).attr("y1", n).attr("x2", r).attr("y2", n).attr("stroke-width", 0).attr("marker-start", "url(" + w + "#sequencenumber)"), e.append("text").attr("x", r).attr("y", n + 4).attr("font-family", "sans-serif").attr("font-size", "12px").attr("text-anchor", "middle").attr("class", "sequenceNumber").text(a));
1931
- }, "drawMessage"), fs = /* @__PURE__ */ f(function(e, t, n, s, r, i, c) {
1932
- let h = 0, o = 0, a, p = 0;
1933
- for (const g of s) {
1934
- const x = t.get(g), y = x.box;
1935
- a && a != y && (c || T.models.addBox(a), o += l.boxMargin + a.margin), y && y != a && (c || (y.x = h + o, y.y = r), o += y.margin), x.width = x.width || l.width, x.height = I.getMax(x.height || l.height, l.height), x.margin = x.margin || l.actorMargin, p = I.getMax(p, x.height), n.get(x.name) && (o += x.width / 2), x.x = h + o, x.starty = T.getVerticalPos(), T.insert(x.x, r, x.x + x.width, x.height), h += x.width + o, x.box && (x.box.width = h + y.margin - x.box.x), o = x.margin, a = x.box, T.models.addActor(x);
1936
- }
1937
- a && !c && T.models.addBox(a), T.bumpVerticalPos(p);
1938
- }, "addActorRenderingData"), Kt = /* @__PURE__ */ f(async function(e, t, n, s) {
1939
- if (s) {
1940
- let r = 0;
1941
- T.bumpVerticalPos(l.boxMargin * 2);
1942
- for (const i of n) {
1943
- const c = t.get(i);
1944
- c.stopy || (c.stopy = T.getVerticalPos());
1945
- const h = await V.drawActor(e, c, l, !0);
1946
- r = I.getMax(r, h);
1947
- }
1948
- T.bumpVerticalPos(r + l.boxMargin);
1949
- } else
1950
- for (const r of n) {
1951
- const i = t.get(r);
1952
- await V.drawActor(e, i, l, !1);
1953
- }
1954
- }, "drawActors"), pe = /* @__PURE__ */ f(function(e, t, n, s) {
1955
- let r = 0, i = 0;
1956
- for (const c of n) {
1957
- const h = t.get(c), o = Ts(h), a = V.drawPopup(
1958
- e,
1959
- h,
1960
- o,
1961
- l,
1962
- l.forceMenus,
1963
- s
1964
- );
1965
- a.height > r && (r = a.height), a.width + h.x > i && (i = a.width + h.x);
1966
- }
1967
- return { maxHeight: r, maxWidth: i };
1968
- }, "drawActorsPopup"), ue = /* @__PURE__ */ f(function(e) {
1969
- Re(l, e), e.fontFamily && (l.actorFontFamily = l.noteFontFamily = l.messageFontFamily = e.fontFamily), e.fontSize && (l.actorFontSize = l.noteFontSize = l.messageFontSize = e.fontSize), e.fontWeight && (l.actorFontWeight = l.noteFontWeight = l.messageFontWeight = e.fontWeight);
1970
- }, "setConf"), Bt = /* @__PURE__ */ f(function(e) {
1971
- return T.activations.filter(function(t) {
1972
- return t.actor === e;
1973
- });
1974
- }, "actorActivations"), ae = /* @__PURE__ */ f(function(e, t) {
1975
- const n = t.get(e), s = Bt(e), r = s.reduce(
1976
- function(c, h) {
1977
- return I.getMin(c, h.startx);
1978
- },
1979
- n.x + n.width / 2 - 1
1980
- ), i = s.reduce(
1981
- function(c, h) {
1982
- return I.getMax(c, h.stopx);
1983
- },
1984
- n.x + n.width / 2 + 1
1985
- );
1986
- return [r, i];
1987
- }, "activationBounds");
1988
- function nt(e, t, n, s, r) {
1989
- T.bumpVerticalPos(n);
1990
- let i = s;
1991
- if (t.id && t.message && e[t.id]) {
1992
- const c = e[t.id].width, h = Et(l);
1993
- t.message = F.wrapLabel(`[${t.message}]`, c - 2 * l.wrapPadding, h), t.width = c, t.wrap = !0;
1994
- const o = F.calculateTextDimensions(t.message, h), a = I.getMax(o.height, l.labelBoxHeight);
1995
- i = s + a, Q.debug(`${a} - ${t.message}`);
1996
- }
1997
- r(t), T.bumpVerticalPos(i);
1998
- }
1999
- f(nt, "adjustLoopHeightForWrap");
2000
- function ge(e, t, n, s, r, i, c) {
2001
- function h(p, g) {
2002
- p.x < r.get(e.from).x ? (T.insert(
2003
- t.stopx - g,
2004
- t.starty,
2005
- t.startx,
2006
- t.stopy + p.height / 2 + l.noteMargin
2007
- ), t.stopx = t.stopx + g) : (T.insert(
2008
- t.startx,
2009
- t.starty,
2010
- t.stopx + g,
2011
- t.stopy + p.height / 2 + l.noteMargin
2012
- ), t.stopx = t.stopx - g);
2013
- }
2014
- f(h, "receiverAdjustment");
2015
- function o(p, g) {
2016
- p.x < r.get(e.to).x ? (T.insert(
2017
- t.startx - g,
2018
- t.starty,
2019
- t.stopx,
2020
- t.stopy + p.height / 2 + l.noteMargin
2021
- ), t.startx = t.startx + g) : (T.insert(
2022
- t.stopx,
2023
- t.starty,
2024
- t.startx + g,
2025
- t.stopy + p.height / 2 + l.noteMargin
2026
- ), t.startx = t.startx - g);
2027
- }
2028
- f(o, "senderAdjustment");
2029
- const a = [
2030
- Rt.ACTOR,
2031
- Rt.CONTROL,
2032
- Rt.ENTITY,
2033
- Rt.DATABASE
2034
- ];
2035
- if (i.get(e.to) == s) {
2036
- const p = r.get(e.to), g = a.includes(p.type) ? Tt / 2 + 3 : p.width / 2 + 3;
2037
- h(p, g), p.starty = n - p.height / 2, T.bumpVerticalPos(p.height / 2);
2038
- } else if (c.get(e.from) == s) {
2039
- const p = r.get(e.from);
2040
- if (l.mirrorActors) {
2041
- const g = a.includes(p.type) ? Tt / 2 : p.width / 2;
2042
- o(p, g);
2043
- }
2044
- p.stopy = n - p.height / 2, T.bumpVerticalPos(p.height / 2);
2045
- } else if (c.get(e.to) == s) {
2046
- const p = r.get(e.to);
2047
- if (l.mirrorActors) {
2048
- const g = a.includes(p.type) ? Tt / 2 + 3 : p.width / 2 + 3;
2049
- h(p, g);
2050
- }
2051
- p.stopy = n - p.height / 2, T.bumpVerticalPos(p.height / 2);
2052
- }
2053
- }
2054
- f(ge, "adjustCreatedDestroyedData");
2055
- var ys = /* @__PURE__ */ f(async function(e, t, n, s) {
2056
- const { securityLevel: r, sequence: i } = st();
2057
- l = i;
2058
- let c;
2059
- r === "sandbox" && (c = Mt("#i" + t));
2060
- const h = r === "sandbox" ? Mt(c.nodes()[0].contentDocument.body) : Mt("body"), o = r === "sandbox" ? c.nodes()[0].contentDocument : document;
2061
- T.init(), Q.debug(s.db);
2062
- const a = r === "sandbox" ? h.select(`[id="${t}"]`) : Mt(`[id="${t}"]`), p = s.db.getActors(), g = s.db.getCreatedActors(), x = s.db.getDestroyedActors(), y = s.db.getBoxes();
2063
- let b = s.db.getActorKeys();
2064
- const w = s.db.getMessages(), k = s.db.getDiagramTitle(), N = s.db.hasAtLeastOneBox(), S = s.db.hasAtLeastOneBoxWithTitle(), M = await xe(p, w, s);
2065
- if (l.height = await fe(p, M, y), V.insertComputerIcon(a), V.insertDatabaseIcon(a), V.insertClockIcon(a), N && (T.bumpVerticalPos(l.boxMargin), S && T.bumpVerticalPos(y[0].textMaxHeight)), l.hideUnusedParticipants === !0) {
2066
- const E = /* @__PURE__ */ new Set();
2067
- w.forEach((A) => {
2068
- E.add(A.from), E.add(A.to);
2069
- }), b = b.filter((A) => E.has(A));
2070
- }
2071
- fs(a, p, g, b, 0, w, !1);
2072
- const C = await ms(w, p, M, s);
2073
- V.insertArrowHead(a), V.insertArrowCrossHead(a), V.insertArrowFilledHead(a), V.insertSequenceNumber(a);
2074
- function Y(E, A) {
2075
- const X = T.endActivation(E);
2076
- X.starty + 18 > A && (X.starty = A - 6, A += 12), V.drawActivation(
2077
- a,
2078
- X,
2079
- A,
2080
- l,
2081
- Bt(E.from).length
2082
- ), T.insert(X.startx, A - 10, X.stopx, A);
2083
- }
2084
- f(Y, "activeEnd");
2085
- let H = 1, Z = 1;
2086
- const at = [], U = [];
2087
- let G = 0;
2088
- for (const E of w) {
2089
- let A, X, tt;
2090
- switch (E.type) {
2091
- case s.db.LINETYPE.NOTE:
2092
- T.resetVerticalPos(), X = E.noteModel, await gs(a, X);
2093
- break;
2094
- case s.db.LINETYPE.ACTIVE_START:
2095
- T.newActivation(E, a, p);
2096
- break;
2097
- case s.db.LINETYPE.ACTIVE_END:
2098
- Y(E, T.getVerticalPos());
2099
- break;
2100
- case s.db.LINETYPE.LOOP_START:
2101
- nt(
2102
- C,
2103
- E,
2104
- l.boxMargin,
2105
- l.boxMargin + l.boxTextMargin,
2106
- (R) => T.newLoop(R)
2107
- );
2108
- break;
2109
- case s.db.LINETYPE.LOOP_END:
2110
- A = T.endLoop(), await V.drawLoop(a, A, "loop", l), T.bumpVerticalPos(A.stopy - T.getVerticalPos()), T.models.addLoop(A);
2111
- break;
2112
- case s.db.LINETYPE.RECT_START:
2113
- nt(
2114
- C,
2115
- E,
2116
- l.boxMargin,
2117
- l.boxMargin,
2118
- (R) => T.newLoop(void 0, R.message)
2119
- );
2120
- break;
2121
- case s.db.LINETYPE.RECT_END:
2122
- A = T.endLoop(), U.push(A), T.models.addLoop(A), T.bumpVerticalPos(A.stopy - T.getVerticalPos());
2123
- break;
2124
- case s.db.LINETYPE.OPT_START:
2125
- nt(
2126
- C,
2127
- E,
2128
- l.boxMargin,
2129
- l.boxMargin + l.boxTextMargin,
2130
- (R) => T.newLoop(R)
2131
- );
2132
- break;
2133
- case s.db.LINETYPE.OPT_END:
2134
- A = T.endLoop(), await V.drawLoop(a, A, "opt", l), T.bumpVerticalPos(A.stopy - T.getVerticalPos()), T.models.addLoop(A);
2135
- break;
2136
- case s.db.LINETYPE.ALT_START:
2137
- nt(
2138
- C,
2139
- E,
2140
- l.boxMargin,
2141
- l.boxMargin + l.boxTextMargin,
2142
- (R) => T.newLoop(R)
2143
- );
2144
- break;
2145
- case s.db.LINETYPE.ALT_ELSE:
2146
- nt(
2147
- C,
2148
- E,
2149
- l.boxMargin + l.boxTextMargin,
2150
- l.boxMargin,
2151
- (R) => T.addSectionToLoop(R)
2152
- );
2153
- break;
2154
- case s.db.LINETYPE.ALT_END:
2155
- A = T.endLoop(), await V.drawLoop(a, A, "alt", l), T.bumpVerticalPos(A.stopy - T.getVerticalPos()), T.models.addLoop(A);
2156
- break;
2157
- case s.db.LINETYPE.PAR_START:
2158
- case s.db.LINETYPE.PAR_OVER_START:
2159
- nt(
2160
- C,
2161
- E,
2162
- l.boxMargin,
2163
- l.boxMargin + l.boxTextMargin,
2164
- (R) => T.newLoop(R)
2165
- ), T.saveVerticalPos();
2166
- break;
2167
- case s.db.LINETYPE.PAR_AND:
2168
- nt(
2169
- C,
2170
- E,
2171
- l.boxMargin + l.boxTextMargin,
2172
- l.boxMargin,
2173
- (R) => T.addSectionToLoop(R)
2174
- );
2175
- break;
2176
- case s.db.LINETYPE.PAR_END:
2177
- A = T.endLoop(), await V.drawLoop(a, A, "par", l), T.bumpVerticalPos(A.stopy - T.getVerticalPos()), T.models.addLoop(A);
2178
- break;
2179
- case s.db.LINETYPE.AUTONUMBER:
2180
- H = E.message.start || H, Z = E.message.step || Z, E.message.visible ? s.db.enableSequenceNumbers() : s.db.disableSequenceNumbers();
2181
- break;
2182
- case s.db.LINETYPE.CRITICAL_START:
2183
- nt(
2184
- C,
2185
- E,
2186
- l.boxMargin,
2187
- l.boxMargin + l.boxTextMargin,
2188
- (R) => T.newLoop(R)
2189
- );
2190
- break;
2191
- case s.db.LINETYPE.CRITICAL_OPTION:
2192
- nt(
2193
- C,
2194
- E,
2195
- l.boxMargin + l.boxTextMargin,
2196
- l.boxMargin,
2197
- (R) => T.addSectionToLoop(R)
2198
- );
2199
- break;
2200
- case s.db.LINETYPE.CRITICAL_END:
2201
- A = T.endLoop(), await V.drawLoop(a, A, "critical", l), T.bumpVerticalPos(A.stopy - T.getVerticalPos()), T.models.addLoop(A);
2202
- break;
2203
- case s.db.LINETYPE.BREAK_START:
2204
- nt(
2205
- C,
2206
- E,
2207
- l.boxMargin,
2208
- l.boxMargin + l.boxTextMargin,
2209
- (R) => T.newLoop(R)
2210
- );
2211
- break;
2212
- case s.db.LINETYPE.BREAK_END:
2213
- A = T.endLoop(), await V.drawLoop(a, A, "break", l), T.bumpVerticalPos(A.stopy - T.getVerticalPos()), T.models.addLoop(A);
2214
- break;
2215
- default:
2216
- try {
2217
- tt = E.msgModel, tt.starty = T.getVerticalPos(), tt.sequenceIndex = H, tt.sequenceVisible = s.db.showSequenceNumbers();
2218
- const R = await de(a, tt);
2219
- ge(
2220
- E,
2221
- tt,
2222
- R,
2223
- G,
2224
- p,
2225
- g,
2226
- x
2227
- ), at.push({ messageModel: tt, lineStartY: R }), T.models.addMessage(tt);
2228
- } catch (R) {
2229
- Q.error("error while drawing message", R);
2230
- }
2231
- }
2232
- [
2233
- s.db.LINETYPE.SOLID_OPEN,
2234
- s.db.LINETYPE.DOTTED_OPEN,
2235
- s.db.LINETYPE.SOLID,
2236
- s.db.LINETYPE.DOTTED,
2237
- s.db.LINETYPE.SOLID_CROSS,
2238
- s.db.LINETYPE.DOTTED_CROSS,
2239
- s.db.LINETYPE.SOLID_POINT,
2240
- s.db.LINETYPE.DOTTED_POINT,
2241
- s.db.LINETYPE.BIDIRECTIONAL_SOLID,
2242
- s.db.LINETYPE.BIDIRECTIONAL_DOTTED
2243
- ].includes(E.type) && (H = H + Z), G++;
2244
- }
2245
- Q.debug("createdActors", g), Q.debug("destroyedActors", x), await Kt(a, p, b, !1);
2246
- for (const E of at)
2247
- await xs(a, E.messageModel, E.lineStartY, s);
2248
- l.mirrorActors && await Kt(a, p, b, !0), U.forEach((E) => V.drawBackgroundRect(a, E)), ce(a, p, b, l);
2249
- for (const E of T.models.boxes) {
2250
- E.height = T.getVerticalPos() - E.y, T.insert(E.x, E.y, E.x + E.width, E.height);
2251
- const A = l.boxMargin * 2;
2252
- E.startx = E.x - A, E.starty = E.y - A * 0.25, E.stopx = E.startx + E.width + 2 * A, E.stopy = E.starty + E.height + A * 0.75, E.stroke = "rgb(0,0,0, 0.5)", V.drawBox(a, E, l);
2253
- }
2254
- N && T.bumpVerticalPos(l.boxMargin);
2255
- const q = pe(a, p, b, o), { bounds: O } = T.getBounds();
2256
- O.startx === void 0 && (O.startx = 0), O.starty === void 0 && (O.starty = 0), O.stopx === void 0 && (O.stopx = 0), O.stopy === void 0 && (O.stopy = 0);
2257
- let $ = O.stopy - O.starty;
2258
- $ < q.maxHeight && ($ = q.maxHeight);
2259
- let K = $ + 2 * l.diagramMarginY;
2260
- l.mirrorActors && (K = K - l.boxMargin + l.bottomMarginAdj);
2261
- let j = O.stopx - O.startx;
2262
- j < q.maxWidth && (j = q.maxWidth);
2263
- const rt = j + 2 * l.diagramMarginX;
2264
- k && a.append("text").text(k).attr("x", (O.stopx - O.startx) / 2 - 2 * l.diagramMarginX).attr("y", -25), De(a, K, rt, l.useMaxWidth);
2265
- const D = k ? 40 : 0;
2266
- a.attr(
2267
- "viewBox",
2268
- O.startx - l.diagramMarginX + " -" + (l.diagramMarginY + D) + " " + rt + " " + (K + D)
2269
- ), Q.debug("models:", T.models);
2270
- }, "draw");
2271
- async function xe(e, t, n) {
2272
- const s = {};
2273
- for (const r of t)
2274
- if (e.get(r.to) && e.get(r.from)) {
2275
- const i = e.get(r.to);
2276
- if (r.placement === n.db.PLACEMENT.LEFTOF && !i.prevActor || r.placement === n.db.PLACEMENT.RIGHTOF && !i.nextActor)
2277
- continue;
2278
- const c = r.placement !== void 0, h = !c, o = c ? mt(l) : Et(l), a = r.wrap ? F.wrapLabel(r.message, l.width - 2 * l.wrapPadding, o) : r.message, g = (z(a) ? await At(r.message, st()) : F.calculateTextDimensions(a, o)).width + 2 * l.wrapPadding;
2279
- h && r.from === i.nextActor ? s[r.to] = I.getMax(
2280
- s[r.to] || 0,
2281
- g
2282
- ) : h && r.from === i.prevActor ? s[r.from] = I.getMax(
2283
- s[r.from] || 0,
2284
- g
2285
- ) : h && r.from === r.to ? (s[r.from] = I.getMax(
2286
- s[r.from] || 0,
2287
- g / 2
2288
- ), s[r.to] = I.getMax(
2289
- s[r.to] || 0,
2290
- g / 2
2291
- )) : r.placement === n.db.PLACEMENT.RIGHTOF ? s[r.from] = I.getMax(
2292
- s[r.from] || 0,
2293
- g
2294
- ) : r.placement === n.db.PLACEMENT.LEFTOF ? s[i.prevActor] = I.getMax(
2295
- s[i.prevActor] || 0,
2296
- g
2297
- ) : r.placement === n.db.PLACEMENT.OVER && (i.prevActor && (s[i.prevActor] = I.getMax(
2298
- s[i.prevActor] || 0,
2299
- g / 2
2300
- )), i.nextActor && (s[r.from] = I.getMax(
2301
- s[r.from] || 0,
2302
- g / 2
2303
- )));
2304
- }
2305
- return Q.debug("maxMessageWidthPerActor:", s), s;
2306
- }
2307
- f(xe, "getMaxMessageWidthPerActor");
2308
- var Ts = /* @__PURE__ */ f(function(e) {
2309
- let t = 0;
2310
- const n = Gt(l);
2311
- for (const s in e.links) {
2312
- const i = F.calculateTextDimensions(s, n).width + 2 * l.wrapPadding + 2 * l.boxMargin;
2313
- t < i && (t = i);
2314
- }
2315
- return t;
2316
- }, "getRequiredPopupWidth");
2317
- async function fe(e, t, n) {
2318
- let s = 0;
2319
- for (const i of e.keys()) {
2320
- const c = e.get(i);
2321
- c.wrap && (c.description = F.wrapLabel(
2322
- c.description,
2323
- l.width - 2 * l.wrapPadding,
2324
- Gt(l)
2325
- ));
2326
- const h = z(c.description) ? await At(c.description, st()) : F.calculateTextDimensions(c.description, Gt(l));
2327
- c.width = c.wrap ? l.width : I.getMax(l.width, h.width + 2 * l.wrapPadding), c.height = c.wrap ? I.getMax(h.height, l.height) : l.height, s = I.getMax(s, c.height);
2328
- }
2329
- for (const i in t) {
2330
- const c = e.get(i);
2331
- if (!c)
2332
- continue;
2333
- const h = e.get(c.nextActor);
2334
- if (!h) {
2335
- const g = t[i] + l.actorMargin - c.width / 2;
2336
- c.margin = I.getMax(g, l.actorMargin);
2337
- continue;
2338
- }
2339
- const a = t[i] + l.actorMargin - c.width / 2 - h.width / 2;
2340
- c.margin = I.getMax(a, l.actorMargin);
2341
- }
2342
- let r = 0;
2343
- return n.forEach((i) => {
2344
- const c = Et(l);
2345
- let h = i.actorKeys.reduce((g, x) => g += e.get(x).width + (e.get(x).margin || 0), 0);
2346
- const o = l.boxMargin * 8;
2347
- h += o, h -= 2 * l.boxTextMargin, i.wrap && (i.name = F.wrapLabel(i.name, h - 2 * l.wrapPadding, c));
2348
- const a = F.calculateTextDimensions(i.name, c);
2349
- r = I.getMax(a.height, r);
2350
- const p = I.getMax(h, a.width + 2 * l.wrapPadding);
2351
- if (i.margin = l.boxTextMargin, h < p) {
2352
- const g = (p - h) / 2;
2353
- i.margin += g;
2354
- }
2355
- }), n.forEach((i) => i.textMaxHeight = r), I.getMax(s, l.height);
2356
- }
2357
- f(fe, "calculateActorMargins");
2358
- var Es = /* @__PURE__ */ f(async function(e, t, n) {
2359
- const s = t.get(e.from), r = t.get(e.to), i = s.x, c = r.x, h = e.wrap && e.message;
2360
- let o = z(e.message) ? await At(e.message, st()) : F.calculateTextDimensions(
2361
- h ? F.wrapLabel(e.message, l.width, mt(l)) : e.message,
2362
- mt(l)
2363
- );
2364
- const a = {
2365
- width: h ? l.width : I.getMax(l.width, o.width + 2 * l.noteMargin),
2366
- height: 0,
2367
- startx: s.x,
2368
- stopx: 0,
2369
- starty: 0,
2370
- stopy: 0,
2371
- message: e.message
2372
- };
2373
- return e.placement === n.db.PLACEMENT.RIGHTOF ? (a.width = h ? I.getMax(l.width, o.width) : I.getMax(
2374
- s.width / 2 + r.width / 2,
2375
- o.width + 2 * l.noteMargin
2376
- ), a.startx = i + (s.width + l.actorMargin) / 2) : e.placement === n.db.PLACEMENT.LEFTOF ? (a.width = h ? I.getMax(l.width, o.width + 2 * l.noteMargin) : I.getMax(
2377
- s.width / 2 + r.width / 2,
2378
- o.width + 2 * l.noteMargin
2379
- ), a.startx = i - a.width + (s.width - l.actorMargin) / 2) : e.to === e.from ? (o = F.calculateTextDimensions(
2380
- h ? F.wrapLabel(e.message, I.getMax(l.width, s.width), mt(l)) : e.message,
2381
- mt(l)
2382
- ), a.width = h ? I.getMax(l.width, s.width) : I.getMax(s.width, l.width, o.width + 2 * l.noteMargin), a.startx = i + (s.width - a.width) / 2) : (a.width = Math.abs(i + s.width / 2 - (c + r.width / 2)) + l.actorMargin, a.startx = i < c ? i + s.width / 2 - l.actorMargin / 2 : c + r.width / 2 - l.actorMargin / 2), h && (a.message = F.wrapLabel(
2383
- e.message,
2384
- a.width - 2 * l.wrapPadding,
2385
- mt(l)
2386
- )), Q.debug(
2387
- `NM:[${a.startx},${a.stopx},${a.starty},${a.stopy}:${a.width},${a.height}=${e.message}]`
2388
- ), a;
2389
- }, "buildNoteModel"), bs = /* @__PURE__ */ f(function(e, t, n) {
2390
- if (![
2391
- n.db.LINETYPE.SOLID_OPEN,
2392
- n.db.LINETYPE.DOTTED_OPEN,
2393
- n.db.LINETYPE.SOLID,
2394
- n.db.LINETYPE.DOTTED,
2395
- n.db.LINETYPE.SOLID_CROSS,
2396
- n.db.LINETYPE.DOTTED_CROSS,
2397
- n.db.LINETYPE.SOLID_POINT,
2398
- n.db.LINETYPE.DOTTED_POINT,
2399
- n.db.LINETYPE.BIDIRECTIONAL_SOLID,
2400
- n.db.LINETYPE.BIDIRECTIONAL_DOTTED
2401
- ].includes(e.type))
2402
- return {};
2403
- const [s, r] = ae(e.from, t), [i, c] = ae(e.to, t), h = s <= i;
2404
- let o = h ? r : s, a = h ? i : c;
2405
- const p = Math.abs(i - c) > 2, g = /* @__PURE__ */ f((w) => h ? -w : w, "adjustValue");
2406
- e.from === e.to ? a = o : (e.activate && !p && (a += g(l.activationWidth / 2 - 1)), [n.db.LINETYPE.SOLID_OPEN, n.db.LINETYPE.DOTTED_OPEN].includes(e.type) || (a += g(3)), [n.db.LINETYPE.BIDIRECTIONAL_SOLID, n.db.LINETYPE.BIDIRECTIONAL_DOTTED].includes(
2407
- e.type
2408
- ) && (o -= g(3)));
2409
- const x = [s, r, i, c], y = Math.abs(o - a);
2410
- e.wrap && e.message && (e.message = F.wrapLabel(
2411
- e.message,
2412
- I.getMax(y + 2 * l.wrapPadding, l.width),
2413
- Et(l)
2414
- ));
2415
- const b = F.calculateTextDimensions(e.message, Et(l));
2416
- return {
2417
- width: I.getMax(
2418
- e.wrap ? 0 : b.width + 2 * l.wrapPadding,
2419
- y + 2 * l.wrapPadding,
2420
- l.width
2421
- ),
2422
- height: 0,
2423
- startx: o,
2424
- stopx: a,
2425
- starty: 0,
2426
- stopy: 0,
2427
- message: e.message,
2428
- type: e.type,
2429
- wrap: e.wrap,
2430
- fromBounds: Math.min.apply(null, x),
2431
- toBounds: Math.max.apply(null, x)
2432
- };
2433
- }, "buildMessageModel"), ms = /* @__PURE__ */ f(async function(e, t, n, s) {
2434
- const r = {}, i = [];
2435
- let c, h, o;
2436
- for (const a of e) {
2437
- switch (a.type) {
2438
- case s.db.LINETYPE.LOOP_START:
2439
- case s.db.LINETYPE.ALT_START:
2440
- case s.db.LINETYPE.OPT_START:
2441
- case s.db.LINETYPE.PAR_START:
2442
- case s.db.LINETYPE.PAR_OVER_START:
2443
- case s.db.LINETYPE.CRITICAL_START:
2444
- case s.db.LINETYPE.BREAK_START:
2445
- i.push({
2446
- id: a.id,
2447
- msg: a.message,
2448
- from: Number.MAX_SAFE_INTEGER,
2449
- to: Number.MIN_SAFE_INTEGER,
2450
- width: 0
2451
- });
2452
- break;
2453
- case s.db.LINETYPE.ALT_ELSE:
2454
- case s.db.LINETYPE.PAR_AND:
2455
- case s.db.LINETYPE.CRITICAL_OPTION:
2456
- a.message && (c = i.pop(), r[c.id] = c, r[a.id] = c, i.push(c));
2457
- break;
2458
- case s.db.LINETYPE.LOOP_END:
2459
- case s.db.LINETYPE.ALT_END:
2460
- case s.db.LINETYPE.OPT_END:
2461
- case s.db.LINETYPE.PAR_END:
2462
- case s.db.LINETYPE.CRITICAL_END:
2463
- case s.db.LINETYPE.BREAK_END:
2464
- c = i.pop(), r[c.id] = c;
2465
- break;
2466
- case s.db.LINETYPE.ACTIVE_START:
2467
- {
2468
- const g = t.get(a.from ? a.from : a.to.actor), x = Bt(a.from ? a.from : a.to.actor).length, y = g.x + g.width / 2 + (x - 1) * l.activationWidth / 2, b = {
2469
- startx: y,
2470
- stopx: y + l.activationWidth,
2471
- actor: a.from,
2472
- enabled: !0
2473
- };
2474
- T.activations.push(b);
2475
- }
2476
- break;
2477
- case s.db.LINETYPE.ACTIVE_END:
2478
- {
2479
- const g = T.activations.map((x) => x.actor).lastIndexOf(a.from);
2480
- T.activations.splice(g, 1).splice(0, 1);
2481
- }
2482
- break;
2483
- }
2484
- a.placement !== void 0 ? (h = await Es(a, t, s), a.noteModel = h, i.forEach((g) => {
2485
- c = g, c.from = I.getMin(c.from, h.startx), c.to = I.getMax(c.to, h.startx + h.width), c.width = I.getMax(c.width, Math.abs(c.from - c.to)) - l.labelBoxWidth;
2486
- })) : (o = bs(a, t, s), a.msgModel = o, o.startx && o.stopx && i.length > 0 && i.forEach((g) => {
2487
- if (c = g, o.startx === o.stopx) {
2488
- const x = t.get(a.from), y = t.get(a.to);
2489
- c.from = I.getMin(
2490
- x.x - o.width / 2,
2491
- x.x - x.width / 2,
2492
- c.from
2493
- ), c.to = I.getMax(
2494
- y.x + o.width / 2,
2495
- y.x + x.width / 2,
2496
- c.to
2497
- ), c.width = I.getMax(c.width, Math.abs(c.to - c.from)) - l.labelBoxWidth;
2498
- } else
2499
- c.from = I.getMin(o.startx, c.from), c.to = I.getMax(o.stopx, c.to), c.width = I.getMax(c.width, o.width) - l.labelBoxWidth;
2500
- }));
2501
- }
2502
- return T.activations = [], Q.debug("Loop type widths:", r), r;
2503
- }, "calculateLoopBounds"), ws = {
2504
- bounds: T,
2505
- drawActors: Kt,
2506
- drawActorsPopup: pe,
2507
- setConf: ue,
2508
- draw: ys
2509
- }, As = {
2510
- parser: Ve,
2511
- get db() {
2512
- return new qe();
2513
- },
2514
- renderer: ws,
2515
- styles: He,
2516
- init: /* @__PURE__ */ f((e) => {
2517
- e.sequence || (e.sequence = {}), e.wrap && (e.sequence.wrap = e.wrap, Me({ sequence: { wrap: e.wrap } }));
2518
- }, "init")
2519
- };
2520
- export {
2521
- As as diagram
2522
- };